PageSourceSearch

https://www.ayalamalls.com/firebase-messaging-sw.js

js ayalamalls.com collected 2026-10-02 10:45:16 UTC 96,202 bytes, 795 lines download raw bytes

1!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return l}));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])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;function c(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function l(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return o}
1)),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return c}));var r=n(0),i=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var 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};
2/**
3 * @license
4 * Copyright 2017 Google LLC
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *   http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18/**
19 * @license
20 * Copyright 2017 Google LLC
21 *
22 * Licensed under the Apache License, Version 2.0 (the "License");
23 * you may not use this file except in compliance with the License.
24 * You may obtain a copy of the License at
25 *
26 *   http://www.apache.org/licenses/LICENSE-2.0
27 *
28 * Unless required by applicable law or agreed to in writing, software
29 * distributed under the License is distributed on an "AS IS" BASIS,
30 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 * See the License for the specific language governing permissions and
32 * limitations under the License.
33 */
34function o(e){return s(void 0,e)}function s(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=s(e[n],t[n]));return e}
35/**
36 * @license
37 * Copyright 2017 Google LLC
38 *
39 * Licensed under the Apache License, Version 2.0 (the "License");
40 * you may not use this file except in compliance with the License.
41 * You may obtain a copy of the License at
42 *
43 *   http://www.apache.org/licenses/LICENSE-2.0
44 *
45 * Unless required by applicable law or agreed to in writing, software
46 * distributed under the License is distributed on an "AS IS" BASIS,
47 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
48 * See the License for the specific language governing permissions and
49 * limitations under the License.
50 */
51var a=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),"function"==typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}},e}();
52/**
53 * @license
54 * Copyright 2021 Google LLC
55 *
56 * Licensed under the Apache License, Version 2.0 (the "License");
57 * you may not use this file except in compliance with the License.
58 * You may obtain a copy of the License at
59 *
60 *   http://www.apache.org/licenses/LICENSE-2.0
61 *
62 * Unless required by applicable law or agreed to in writing, software
63 * distributed under the License is distributed on an "AS IS" BASIS,
64 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
65 * See the License for the specific language governing permissions and
66 * limitations under the License.
67 */function c(){try{return"[object process]"===Object.prototype.toString.call(e.process)}catch(e){return!1}}function u(){return"object"==typeof self&&self.self===self}
68/**
69 * @license
70 * Copyright 2017 Google LLC
71 *
72 * Licensed under the Apache License, Version 2.0 (the "License");
73 * you may not use this file except in compliance with the License.
74 * You may obtain a copy of the License at
75 *
76 *   http://www.apache.org/licenses/LICENSE-2.0
77 *
78 * Unless required by applicable law or agreed to in writing, software
79 * distributed under the License is distributed on an "AS IS" BASIS,
80 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
81 * See the License for the specific language governing permissions and
82 * limitations under the License.
83 */
84var l=function(e){function t(n,r,i){var o=e.call(this,r)||this;return o.code=n,o.customData=i,o.name="FirebaseError",Object.setPrototypeOf(o,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,f.prototype.create),o}return Object(r.c)(t,e),t}(Error),f=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t[0]||{},i=this.service+"/"+e,o=this.errors[e],s=o?p(o,r):"Error",a=this.serviceName+": "+s+" ("+i+").",c=new l(i,a,r);return c},e}();function p(e,t){return e.replace(d,(function(e,n){var r=t[n];return null!=r?String(r):"<"+n+"?>"}))}var d=/\{\$([^}]+)}/g;
85/**
86 * @license
87 * Copyright 2017 Google LLC
88 *
89 * Licensed under the Apache License, Version 2.0 (the "License");
90 * you may not use this file except in compliance with the License.
91 * You may obtain a copy of the License at
92 *
93 *   http://www.apache.org/licenses/LICENSE-2.0
94 *
95 * Unless required by applicable law or agreed to in writing, software
96 * distributed under the License is distributed on an "AS IS" BASIS,
97 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
98 * See the License for the specific language governing permissions and
99 * limitations under the License.
100 */
101/**
102 * @license
103 * Copyright 2017 Google LLC
104 *
105 * Licensed under the Apache License, Version 2.0 (the "License");
106 * you may not use this file except in compliance with the License.
107 * You may obtain a copy of the License at
108 *
109 *   http://www.apache.org/licenses/LICENSE-2.0
110 *
111 * Unless required by applicable law or agreed to in writing, software
112 * distributed under the License is distributed on an "AS IS" BASIS,
113 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
114 * See the License for the specific language governing permissions and
115 * limitations under the License.
116 */
117function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}
118/**
119 * @license
120 * Copyright 2017 Google LLC
121 *
122 * Licensed under the Apache License, Version 2.0 (the "License");
123 * you may not use this file except in compliance with the License.
124 * You may obtain a copy of the License at
125 *
126 *   http://www.apache.org/licenses/LICENSE-2.0
127 *
128 * Unless required by applicable law or agreed to in writing, software
129 * distributed under the License is distributed on an "AS IS" BASIS,
130 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
131 * See the License for the specific language governing permissions and
132 * limitations under the License.
133 */
134!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()}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("string"==typeof e)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(r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}var o,s,a=this.chain_[0],c=this.chain_[1],u=this.chain_[2],l=this.chain_[3],f=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=l^c&(u^l),s=1518500249):(o=c^u^l,s=1859775393):r<60?(o=c&u|l&(c|u),s=2400959708):(o=c^u^l,s=3395469782);i=(a<<5|a>>>27)+o+f+s+n[r]&4294967295;f=l,l=u,u=4294967295&(c<<30|c>>>2),c=a,a=i}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+c&4294967295,this.chain_[2]=this.chain_[2]+u&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+f&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<t;){if(0===o)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"==typeof e){for(;r<t;)if(i[o]=e.charCodeAt(r),++r,++o===this.blockSize){this.compress_(i),o=0;break}}else for(;r<t;)if(i[o]=e[r],++r,++o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=t}},e.prototype.digest=function(){var e=[],t=8*this.total_;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]=255&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e}}();function b(e,t){var n=new v(e,t);return n.subscribe.bind(n)}var v=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()}
134)),this.close()},e.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=0,r=t;n<r.length;n++){var i=r[n];if(i in e&&"function"==typeof e[i])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=g),void 0===r.error&&(r.error=g),void 0===r.complete&&(r.complete=g);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}})),this.observers.push(r),o},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&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(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}}))},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))},e}();function g(){}
135/**
136 * @license
137 * Copyright 2017 Google LLC
138 *
139 * Licensed under the Apache License, Version 2.0 (the "License");
140 * you may not use this file except in compliance with the License.
141 * You may obtain a copy of the License at
142 *
143 *   http://www.apache.org/licenses/LICENSE-2.0
144 *
145 * Unless required by applicable law or agreed to in writing, software
146 * distributed under the License is distributed on an "AS IS" BASIS,
147 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
148 * See the License for the specific language governing permissions and
149 * limitations under the License.
150 */}).call(this,n(3))},function(e,t,n){!function(e){"use strict";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,o=new Promise((function(o,s){n(i=e[t].apply(e,r)).then(o,s)}));return o.request=i,o}function i(e,t,n){var i=r(e,t,n);return i.then((function(e){if(e)return new l(e,i.request)}))}function o(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 s(e,t,n,i){i.forEach((function(i){i in n.prototype&&(e.prototype[i]=function(){return r(this[t],i,arguments)})}))}function a(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 u(e){this._index=e}function l(e,t){this._cursor=e,this._request=t}function f(e){this._store=e}function p(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)}}))}function d(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new p(n)}function h(e){this._db=e}o(u,"_index",["name","keyPath","multiEntry","unique"]),s(u,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),c(u,"_index",IDBIndex,["openCursor","o
150penKeyCursor"]),o(l,"_cursor",["direction","key","primaryKey","value"]),s(l,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(e){e in IDBCursor.prototype&&(l.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 l(e,t._request)}))}))})})),f.prototype.createIndex=function(){return new u(this._store.createIndex.apply(this._store,arguments))},f.prototype.index=function(){return new u(this._store.index.apply(this._store,arguments))},o(f,"_store",["name","keyPath","indexNames","autoIncrement"]),s(f,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),c(f,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),a(f,"_store",IDBObjectStore,["deleteIndex"]),p.prototype.objectStore=function(){return new f(this._tx.objectStore.apply(this._tx,arguments))},o(p,"_tx",["objectStoreNames","mode"]),a(p,"_tx",IDBTransaction,["abort"]),d.prototype.createObjectStore=function(){return new f(this._db.createObjectStore.apply(this._db,arguments))},o(d,"_db",["name","version","objectStoreNames"]),a(d,"_db",IDBDatabase,["deleteObjectStore","close"]),h.prototype.transaction=function(){return new p(this._db.transaction.apply(this._db,arguments))},o(h,"_db",["name","version","objectStoreNames"]),a(h,"_db",IDBDatabase,["close"]),["openCursor","o
150penKeyCursor"].forEach((function(e){[f,u].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,o=i[e].apply(i,n.slice(0,-1));o.onsuccess=function(){r(o.result)}})}))})),[u,f].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){e?(r.push(e.value),void 0===t||r.length!=t?e.continue():i(r)):i(r)}))}))})})),e.openDb=function(e,t,n){var i=r(indexedDB,"open",[e,t]),o=i.request;return o&&(o.onupgradeneeded=function(e){n&&n(new d(o.result,e.oldVersion,o.transaction))}),i.then((function(e){return new h(e)}))},e.deleteDb=function(e){return r(indexedDB,"deleteDatabase",[e])},Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(1),o=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}(),s=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 i.a;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(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}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;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}
151/**
152 * @license
153 * Copyright 2019 Google LLC
154 *
155 * Licensed under the Apache License, Version 2.0 (the "License");
156 * you may not use this file except in compliance with the License.
157 * You may obtain a copy of the License at
158 *
159 *   http://www.apache.org/licenses/LICENSE-2.0
160 *
161 * Unless required by applicable law or agreed to in writing, software
162 * distributed under the License is distributed on an "AS IS" BASIS,
163 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
164 * See the License for the specific language governing permissions and
165 * limitations under the License.
166 */(e))try{this.getOrInitializeService({instanceIdentifier:"[DEFAULT]"})}catch(e){}try{for(var i=Object(r.g)(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var s=Object(r.e)(o.value,2),a=s[0],c=s[1],u=this.normalizeInstanceIdentifier(a);try{var l=this.getOrInitializeService({instanceIdentifier:u});c.resolve(l)}catch(e){}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}},e.prototype.clearInstance=function(e){void 0===e&&(e="[DEFAULT]"),this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return Object(r.b)(this,void 0,void 0,(function(){var e;return Object(r.d)(this,(function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(Object(r.f)(Object(r.f)([],Object(r.e)(e.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()})))),Object(r.e)(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 null!=this.component},e.prototype.isInitialized=function(e){return void 0===e&&(e="[DEFAULT]"),this.instances.has(e)},e.prototype.getOptions=function(e){return void 0===e&&(e="[DEFAULT]"),this.instancesOptions.get(e)||{}},e.prototype.initialize=function(e){var t,n;void 0===e&&(e={});var i=e.options,o=void 0===i?{}:i,s=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(s))throw Error(this.name+"("+s+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var a=this.getOrInitializeService({instanceIdentifier:s,options:o});try{for(var c=Object(r.g)(this.instancesDeferred.entries()),u=c.next();!u.done;u=c.next()){var l=Object(r.e)(u.value,2),f=l[0],p=l[1];s===this.normalizeInstanceIdentifier(f)&&p.resolve(a)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return a},e.prototype.onInit=function(e,t){var n,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);var o=this.instances.get(r);return o&&e(o,r),function(){i.delete(e)}},e.prototype.invokeOnInitCallbacks=function(e,t){var n,i,o=this.onInitCallbacks.get(t);if(o)try{for(var s=Object(r.g)(o),a=s.next();!a.done;a=s.next()){var c=a.value;try{c(e,t)}catch(e){}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}},e.prototype.getOrInitializeService=function(e){var t,n=e.instanceIdentifier,r=e.options,i=void 0===r?{}:r,o=this.instances.get(n);if(!o&&this.component&&(o=this.component.instanceFactory(this.container,{instanceIdentifier:(t=n,"[DEFAULT]"===t?void 0:t),options:i}),this.instances.set(n,o),this.instancesOptions.set(n,i),this.invokeOnInitCallbacks(o,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,o)}catch(e){}return o||null},e.prototype.normalizeInstanceIdentifier=function(e){return void 0===e&&(e="[DEFAULT]"),this.component?this.component.multipleInstances?e:"[DEFAULT]":e},e.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},e}();var a,c=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 new 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 s(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();
167/*! *****************************************************************************
168Copyright (c) Microsoft Corporation. All rights reserved.
169Licensed under the Apache License, Version 2.0 (the "License");
169 you may not use
170this file except in compliance with the License. You may obtain a copy of the
171License at http://www.apache.org/licenses/LICENSE-2.0
172
173THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
174KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
175WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
176MERCHANTABLITY OR NON-INFRINGEMENT.
177
178See the Apache Version 2.0 License for specific language governing permissions
179and limitations under the License.
180***************************************************************************** */function u(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}
181/**
182 * @license
183 * Copyright 2017 Google LLC
184 *
185 * Licensed under the Apache License, Version 2.0 (the "License");
186 * you may not use this file except in compliance with the License.
187 * You may obtain a copy of the License at
188 *
189 *   http://www.apache.org/licenses/LICENSE-2.0
190 *
191 * Unless required by applicable law or agreed to in writing, software
192 * distributed under the License is distributed on an "AS IS" BASIS,
193 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
194 * See the License for the specific language governing permissions and
195 * limitations under the License.
196 */var l,f=[];!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"}(l||(l={}));var p,d={debug:l.DEBUG,verbose:l.VERBOSE,info:l.INFO,warn:l.WARN,error:l.ERROR,silent:l.SILENT},h=l.INFO,b=((a={})[l.DEBUG]="log",a[l.VERBOSE]="log",a[l.INFO]="info",a[l.WARN]="warn",a[l.ERROR]="error",a),v=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(t<e.logLevel)){var i=(new Date).toISOString(),o=b[t];if(!o)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[o].apply(console,u(["["+i+"]  "+e.name+":"],n))}},g=function(){function e(e){this.name=e,this._logLevel=h,this._logHandler=v,this._userLogHandler=null,f.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in l))throw new TypeError('Invalid value "'+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),e.prototype.setLogLevel=function(e){this._logLevel="string"==typeof e?d[e]:e},Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new 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(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,u([this,l.DEBUG],e)),this._logHandler.apply(this,u([this,l.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,u([this,l.VERBOSE],e)),this._logHandler.apply(this,u([this,l.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,u([this,l.INFO],e)),this._logHandler.apply(this,u([this,l.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,u([this,l.WARN],e)),this._logHandler.apply(this,u([this,l.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,u([this,l.ERROR],e)),this._logHandler.apply(this,u([this,l.ERROR],e))},e}();function y(e){f.forEach((function(t){t.setLogLevel(e)}))}var m,w=((p={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",p["bad-app-name"]="Illegal App name: '{$appName}",p["duplicate-app"]="Firebase App named '{$appName}' already exists",p["app-deleted"]="Firebase App named '{$appName}' already deleted",p["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",p["invalid-log-argument"]="First argument to `onLog` must be null or a function.",p),O=new i.b("app","Firebase",w),j=((m={})["@firebase/app"]="fire-core",m["@firebase/analytics"]="fire-analytics",m["@firebase/app-check"]="fire-app-check",m["@firebase/auth"]="fire-auth",m["@firebase/database"]="fire-rtdb",m["@firebase/functions"]="fire-fn",m["@firebase/installations"]="fire-iid",m["@firebase/messaging"]="fire-fcm",m["@firebase/performance"]="fire-perf",m["@firebase/remote-config"]="fire-rc",m["@firebase/storage"]="fire-g
196cs",m["@firebase/firestore"]="fire-fst",m["fire-js"]="fire-js",m["firebase-wrapper"]="fire-js-all",m),_=new g("@firebase/app"),k=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_=Object(i.f)(e),this.container=new c(t.name),this._addComponent(new o("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},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;void 0===t&&(t="[DEFAULT]"),this.checkDestroyed_();var r=this.container.getProvider(e);return r.isInitialized()||"EXPLICIT"!==(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)||r.initialize(),r.getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t="[DEFAULT]"),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){_.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 O.create("app-deleted",{appName:this.name_})},e}();k.prototype.name&&k.prototype.options||k.prototype.delete||console.log("dc");
197/**
198 * @license
199 * Copyright 2019 Google LLC
200 *
201 * Licensed under the Apache License, Version 2.0 (the "License");
202 * you may not use this file except in compliance with the License.
203 * You may obtain a copy of the License at
204 *
205 *   http://www.apache.org/licenses/LICENSE-2.0
206 *
207 * Unless required by applicable law or agreed to in writing, software
208 * distributed under the License is distributed on an "AS IS" BASIS,
209 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
210 * See the License for the specific language governing permissions and
211 * limitations under the License.
212 */
213function I(e){var t={},n=new Map,r={__esModule:!0,initializeApp:function(n,o){void 0===o&&(o={});if("object"!=typeof o||null===o){o={name:o}}var s=o;void 0===s.name&&(s.name="[DEFAULT]");var a=s.name;if("string"!=typeof a||!a)throw O.create("bad-app-name",{appName:String(a)});if(Object(i.d)(t,a))throw O.create("duplicate-app",{appName:a});var c=new e(n,s,r);return t[a]=c,c},app:s,registerVersion:function(e,t,n){var r,i=null!==(r=j[e])&&void 0!==r?r:e;n&&(i+="-"+n);var s=i.match(/\s|\//),c=t.match(/\s|\//);if(s||c){var u=['Unable to register library "'+i+'" with version "'+t+'":'];return s&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),s&&c&&u.push("and"),c&&u.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void _.warn(u.join(" "))}a(new o(i+"-version",(function(){return{library:i,version:t}}),"VERSION"))},setLogLevel:y,onLog:function(e,t){if(null!==e&&"function"!=typeof e)throw O.create("invalid-log-argument");!function(e,t){for(var n=function(n){var r=null;t&&t.level&&(r=d[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var s=i.map((function(e){if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}})).filter((function(e){return e})).join(" ");n>=(null!=r?r:t.logLevel)&&e({level:l[n].toLowerCase(),message:s,args:i,type:t.name})}},r=0,i=f;r<i.length;r++){n(i[r])}}
214/**
215 * @license
216 * Copyright 2019 Google LLC
217 *
218 * Licensed under the Apache License, Version 2.0 (the "License");
219 * you may not use this file except in compliance with the License.
220 * You may obtain a copy of the License at
221 *
222 *   http://www.apache.org/licenses/LICENSE-2.0
223 *
224 * Unless required by applicable law or agreed to in writing, software
225 * distributed under the License is distributed on an "AS IS" BASIS,
226 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
227 * See the License for the specific language governing permissions and
228 * limitations under the License.
229 */(e,t)},apps:null,SDK_VERSION:"8.10.0",INTERNAL:{registerComponent:a,removeApp:function(e){delete t[e]},components:n,useAsService:function(e,t){if("serverAuth"===t)return null;return t}}};function s(e){if(e=e||"[DEFAULT]",!Object(i.d)(t,e))throw O.create("no-app",{appName:e});return t[e]}function a(o){var a=o.name;if(n.has(a))return _.debug("There were multiple attempts to register component "+a+"."),"PUBLIC"===o.type?r[a]:null;if(n.set(a,o),"PUBLIC"===o.type){var c=function(e){if(void 0===e&&(e=s()),"function"!=typeof e[a])throw O.create("invalid-app-argument",{appName:a});return e[a]()};void 0!==o.serviceProps&&Object(i.g)(c,o.serviceProps),r[a]=c,e.prototype[a]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._getService.bind(this,a);return n.apply(this,o.multipleInstances?e:[])}}for(var u=0,l=Object.keys(t);u<l.length;u++){var f=l[u];t[f]._addComponent(o)}return"PUBLIC"===o.type?r[a]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(t).map((function(e){return t[e]}))}}),s.App=e,r}
230/**
231 * @license
232 * Copyright 2019 Google LLC
233 *
234 * Licensed under the Apache License, Version 2.0 (the "License");
235 * you may not use this file except in compliance with the License.
236 * You may obtain a copy of the License at
237 *
238 *   http://www.apache.org/licenses/LICENSE-2.0
239 *
240 * Unless required by applicable law or agreed to in writing, software
241 * distributed under the License is distributed on an "AS IS" BASIS,
242 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
243 * See the License for the specific language governing permissions and
244 * limitations under the License.
245 */var S=function e(){var t=I(k);return t.INTERNAL=Object(r.a)(Object(r.a)({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){Object(i.g)(t,e)},createSubscribe:i.e,ErrorFactory:i.b,deepExtend:i.g}),t}(),C=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}
246/**
247 * @license
248 * Copyright 2019 Google LLC
249 *
250 * Licensed under the Apache License, Version 2.0 (the "License");
251 * you may not use this file except in compliance with the License.
252 * You may obtain a copy of the License at
253 *
254 *   http://www.apache.org/licenses/LICENSE-2.0
255 *
256 * Unless required by applicable law or agreed to in writing, software
257 * distributed under the License is distributed on an "AS IS" BASIS,
258 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
259 * See the License for the specific language governing permissions and
260 * limitations under the License.
261 */(e)){var t=e.getImmediate();return t.library+"/"+t.version}return null})).filter((function(e){return e})).join(" ")},e}();
262/**
263 * @license
264 * Copyright 2019 Google LLC
265 *
266 * Licensed under the Apache License, Version 2.0 (the "License");
267 * you may not use this file except in compliance with the License.
268 * You may obtain a copy of the License at
269 *
270 *   http://www.apache.org/licenses/LICENSE-2.0
271 *
272 * Unless required by applicable law or agreed to in writing, software
273 * distributed under the License is distributed on an "AS IS" BASIS,
274 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
275 * See the License for the specific language governing permissions and
276 * limitations under the License.
277 */
278/**
279 * @license
280 * Copyright 2017 Google LLC
281 *
282 * Licensed under the Apache License, Version 2.0 (the "License");
283 * you may not use this file except in compliance with the License.
284 * You may obtain a copy of the License at
285 *
286 *   http://www.apache.org/licenses/LICENSE-2.0
287 *
288 * Unless required by applicable law or agreed to in writing, softw
288are
289 * distributed under the License is distributed on an "AS IS" BASIS,
290 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
291 * See the License for the specific language governing permissions and
292 * limitations under the License.
293 */
294if(Object(i.h)()&&void 0!==self.firebase){_.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var E=self.firebase.SDK_VERSION;E&&E.indexOf("LITE")>=0&&_.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var D=S.initializeApp;S.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Object(i.i)()&&_.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/@rollup/plugin-node-resolve\n      '),D.apply(void 0,e)};var T,P,N=S;(T=N).INTERNAL.registerComponent(new o("platform-logger",(function(e){return new C(e)}),"PRIVATE")),T.registerVersion("@firebase/app","0.6.30",P),T.registerVersion("fire-js","");var A=N;
295/**
296 * @license
297 * Copyright 2018 Google LLC
298 *
299 * Licensed under the Apache License, Version 2.0 (the "License");
300 * you may not use this file except in compliance with the License.
301 * You may obtain a copy of the License at
302 *
303 *   http://www.apache.org/licenses/LICENSE-2.0
304 *
305 * Unless required by applicable law or agreed to in writing, software
306 * distributed under the License is distributed on an "AS IS" BASIS,
307 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
308 * See the License for the specific language governing permissions and
309 * limitations under the License.
310 */
311A.registerVersion("firebase","8.10.1","app"),A.SDK_VERSION="8.10.1";var L,M=n(2),x=((L={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',L["not-registered"]="Firebase Installation is not registered.",L["installation-not-found"]="Firebase Installation not found.",L["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',L["app-offline"]="Could not process request. Application offline.",L["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",L),R=new i.b("installations","Installations",x);function K(e){return e instanceof i.c&&e.code.includes("request-failed")}
312/**
313 * @license
314 * Copyright 2019 Google LLC
315 *
316 * Licensed under the Apache License, Version 2.0 (the "License");
317 * you may not use this file except in compliance with the License.
318 * You may obtain a copy of the License at
319 *
320 *   http://www.apache.org/licenses/LICENSE-2.0
321 *
322 * Unless required by applicable law or agreed to in writing, software
323 * distributed under the License is distributed on an "AS IS" BASIS,
324 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
325 * See the License for the specific language governing permissions and
326 * limitations under the License.
327 */function F(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+e.projectId+"/installations"}function z(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}function B(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,t.json()];case 1:return n=r.sent(),i=n.error,[2,R.create("request-failed",{requestName:e,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})]}}))}))}function H(e){var t=e.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function U(e,t){var n=t.refreshToken,r=H(e);return r.append("Authorization",function(e){return"FIS_v2 "+e}
328/**
329 * @license
330 * Copyright 2019 Google LLC
331 *
332 * Licensed under the Apache License, Version 2.0 (the "License");
333 * you may not use this file except in compliance with the License.
334 * You may obtain a copy of the License at
335 *
336 *   http://www.apache.org/licenses/LICENSE-2.0
337 *
338 * Unless required by applicable law or agreed to in writing, software
339 * distributed under the License is distributed on an "AS IS" BASIS,
340 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
341 * See the License for the specific language governing permissions and
342 * limitations under the License.
343 */(n)),r}function V(e){return Object(r.b)(this,void 0,void 0,(function(){var t;return Object(r.d)(this,(function(n){switch(n.label){case 0:return[4,e()];case 1:return(t=n.sent()).status>=500&&t.status<600?[2,e()]:[2,t]}}))}))}function W(e,t){var n=t.fid;return Object(r.b)(this,void 0,void 0,(function(){var t,i,o,s,a,c;return Object(r.d)(this,(function(r){switch(r.label){case 0:return t=F(e),i=H(e),o={fid:n,authVersion:"FIS_v2",appId:e.appId,sdkVersion:"w:0.4.32"},s={method:"POST",headers:i,body:JSON.stringify(o)},[4,V((function(){return fetch(t,s)}))];case 1:return(a=r.sent()).ok?[4,a.json()]:[3,3];case 2:return c=r.sent(),[2,{fid:c.fid||n,registrationStatus:2,refreshToken:c.refreshToken,authToken:z(c.authToken)}];case 3:return[4,B("Create Installation",a)];case 4:throw r.sent()}}))}))}
344/**
345 * @license
346 * Copyright 2020 Google LLC
347 *
348 * Licensed under the Apache License, Version 2.0 (the "License");
349 * you may not use this file except in compliance with the License.
350 * You may obtain a copy of the License at
351 *
352 *   http://www.apache.org/licenses/LICENSE-2.0
353 *
354 * Unless required by applicable law or agreed to in writing, software
355 * distributed under the License is distributed on an "AS IS" BASIS,
356 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
357 * See the License for the specific language governing permissions and
358 * limitations under the License.
359 */function q(e){return new Promise((function(t){setTimeout(t,e)}))}
360/**
361 * @license
362 * Copyright 2019 Google LLC
363 *
364 * Licensed under the Apache License, Version 2.0 (the "License");
365 * you may not use this file except in compliance with the License.
366 * You may obtain a copy of the License at
367 *
368 *   http://www.apache.org/licenses/LICENSE-2.0
369 *
370 * Unless required by applicable law or agreed to in writing, software
371 * distributed under the License is distributed on an "AS IS" BASIS,
372 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
373 * See the License for the specific language governing permissions and
374 * limitations under the License.
375 */
376/**
377 * @license
378 * Copyright 2019 Google LLC
379 *
380 * Licensed under the Apache License, Version 2.0 (the "License");
381 * you may not use this file except in compliance with the License.
382 * You may obtain a copy of the License at
383 *
384 *   http://www.apache.org/licenses/LICENSE-2.0
385 *
386 * Unless required by applicable law or agreed to in writing, software
387 * distributed under the License is distributed on an "AS IS" BASIS,
388 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
389 * See the License for the specific language governing permissions and
390 * limitations under the License.
391 */
392var $=/^[cdef][\w-]{21}$/;function G(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){return(t=e,btoa(String.fromCharCode.apply(String,Object(r.f)([],Object(r.e)(t)))).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var t}
393/**
394 * @license
395 * Copyright 2019 Google LLC
396 *
397 * Licensed under the Apache License, Version 2.0 (the "License");
398 * you may not use this file except in compliance with the License.
399 * You may obtain a copy of the License at
400 *
401 *   http://www.apache.org/licenses/LICENSE-2.0
402 *
403 * Unless required by applicable law or agreed to in writing, software
404 * distributed under the License is distributed on an "AS IS" BASIS,
405 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
406 * See the License for the specific language governing permissions and
407 * limitations under the License.
408 */(e);return $.test(t)?t:""}catch(e){return""}}function J(e){return e.appName+"!"+e.appId}
409/**
410 * @license
411 * Copyright 2019 Google LLC
412 *
413 * Licensed under the Apache License, Version 2.0 (the "License");
414 * you may not use this file except in compliance with the License.
415 * You may obtain a copy of the License at
416 *
417 *   http://www.apache.org/licenses/LICENSE-2.0
418 *
419 * Unless required by applicable law or agreed to in writing, software
420 * distributed under the License is distributed on an "AS IS" BASIS,
421 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
422 * See the License for the specific language governing permissions and
423 * limitations under the License.
424 */var Y=new Map;function X(e,t){var n=J(e);Z(n,t),function(e,t){var n=ee();n&&n.postMessage({key:e,fid:t});te()}(n,t)}function Z(e,t){var n,i,o=Y.get(e);if(o)try{for(var s=Object(r.g)(o),a=s.next();!a.done;a=s.next()){(0,a.value)(t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}var Q=null;function ee(){return!Q&&"BroadcastChannel"in self&&((Q=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){Z(e.data.key,e.data.fid)}),Q}function te(){0===Y.size&&Q&&(Q.close(),Q=null)}
425/**
426 * @license
427 * Copyright 2019 Google LLC
428 *
429 * Licensed under the Apache License, Version 2.0 (the "License");
430 * you may not use this file except in compliance with the License.
431 * You may obtain a copy of the License at
432 *
433 *   http://www.apache.org/licenses/LICENSE-2.0
434 *
435 * Unless required by applicable law or agreed to in writing, software
436 * distributed under the License is distributed on an "AS IS" BASIS,
437 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
438 * See the License for the specific language governing permissions and
439 * limitations under the License.
440 */var ne,re,ie="firebase-installations-store",oe=null;function se(){return oe||(oe=Object(M.openDb)("firebase-installations-database",1,(function(e){switch(e.oldVersion){case 0:e.createObjectStore(ie)}}))),oe}function ae(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o,s,a;return Object(r.d)(this,(function(r){switch(r.label){case 0:return n=J(e),[4,se()];case 1:return i=r.sent(),o=i.transaction(ie,"readwrite"),[4,(s=o.objectStore(ie)).get(n)];case 2:return a=r.sent(),[4,s.put(t,n)];case 3:return r.sent(),[4,o.complete];case 4:return r.sent(),a&&a.fid===t.fid||X(e,t.fid),[2,t]}}))}))}function ce(e){return Object(r.b)(this,void 0,void 0,(function(){var t,n,i;return Object(r.d)(this,(function(r){switch(r.label){case 0:return t=J(e),[4,se()];case 1:return n=r.sent(),[4,(i=n.transaction(ie,"readwrite")).objectStore(ie).delete(t)];case 2:return r.sent(),[4,i.complete];case 3:return r.sent(),[2]}}))}))}function ue(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o,s,a,c;return Object(r.d)(this,(function(r){switch(r.label){case 0:return n=J(e),[4,se()];case 1:return i=r.sent(),o=i.transaction(ie,"readwrite"),[4,(s=o.objectStore(ie)).get(n)];case 2:return a=r.sent(),void 0!==(c=t(a))?[3,4]:[4,s.delete(n)];case 3:return r.sent(),[3,6];case 4:return[4,s.put(c,n)];case 5:r.sent(),r.label=6;case 6:return[4,o.complete];case 7:return r.sent(),!c||a&&a.fid===c.fid||X(e,c.fid),[2,c]}}))}))}
441/**
442 * @license
443 * Copyright 2019 Google LLC
444 *
445 * Licensed under the Apache License, Version 2.0 (the "License");
446 * you may not use this file except in compliance with the License.
447 * You may obtain a copy of the License at
448 *
449 *   http://www.apache.org/licenses/LICENSE-2.0
450 *
451 * Unless required by applicable law or agreed to in writing, software
452 * distributed under the License is distributed on an "AS IS" BASIS,
453 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
454 * See the License for the specific language governing permissions and
455 * limitations under the License.
456 */function le(e){return Object(r.b)(this,void 0,void 0,(function(){var t,n,i;return Object(r.d)(this,(function(o){switch(o.label){case 0:return[4,ue(e,(function(n){var i=function(e){return de(e||{fid:G(),registrationStatus:0})}(n),o=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine){var n=Promise.reject(R.create("app-offline"));return{installationEntry:t,registrationPromise:n}}var i={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},o=function(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,7]),[4,W(e,t)];case 1:return n=r.sent(),[2,ae(e,n)];case 2:return K(i=r.sent())&&409===i.customData.serverCode?[4,ce(e)]:[3,4];case 3:return r.sent(),[3,6];case 4:return[4,ae(e,{fid:t.fid,registrationStatus:0})];case 5:r.sent(),r.label=6;case 6:throw i;case 7:return[2]}}
456))}))}(e,i);return{installationEntry:i,registrationPromise:o}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:fe(e)}:{installationEntry:t}}(e,i);return t=o.registrationPromise,o.installationEntry}))];case 1:return""!==(n=o.sent()).fid?[3,3]:(i={},[4,t]);case 2:return[2,(i.installationEntry=o.sent(),i)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}}))}))}function fe(e){return Object(r.b)(this,void 0,void 0,(function(){var t,n,i,o;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,pe(e)];case 1:t=r.sent(),r.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,q(100)];case 3:return r.sent(),[4,pe(e)];case 4:return t=r.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,le(e)];case 6:return n=r.sent(),i=n.installationEntry,(o=n.registrationPromise)?[2,o]:[2,i];case 7:return[2,t]}}))}))}function pe(e){return ue(e,(function(e){if(!e)throw R.create("installation-not-found");return de(e)}))}function de(e){return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t;
457/**
458 * @license
459 * Copyright 2019 Google LLC
460 *
461 * Licensed under the Apache License, Version 2.0 (the "License");
462 * you may not use this file except in compliance with the License.
463 * You may obtain a copy of the License at
464 *
465 *   http://www.apache.org/licenses/LICENSE-2.0
466 *
467 * Unless required by applicable law or agreed to in writing, software
468 * distributed under the License is distributed on an "AS IS" BASIS,
469 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
470 * See the License for the specific language governing permissions and
471 * limitations under the License.
472 */}function he(e,t){var n=e.appConfig,i=e.platformLoggerProvider;return Object(r.b)(this,void 0,void 0,(function(){var e,o,s,a,c,u,l;return Object(r.d)(this,(function(r){switch(r.label){case 0:return e=function(e,t){var n=t.fid;return F(e)+"/"+n+"/authTokens:generate"}
473/**
474 * @license
475 * Copyright 2019 Google LLC
476 *
477 * Licensed under the Apache License, Version 2.0 (the "License");
478 * you may not use this file except in compliance with the License.
479 * You may obtain a copy of the License at
480 *
481 *   http://www.apache.org/licenses/LICENSE-2.0
482 *
483 * Unless required by applicable law or agreed to in writing, software
484 * distributed under the License is distributed on an "AS IS" BASIS,
485 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
486 * See the License for the specific language governing permissions and
487 * limitations under the License.
488 */(n,t),o=U(n,t),(s=i.getImmediate({optional:!0}))&&o.append("x-firebase-client",s.getPlatformInfoString()),a={installation:{sdkVersion:"w:0.4.32"}},c={method:"POST",headers:o,body:JSON.stringify(a)},[4,V((function(){return fetch(e,c)}))];case 1:return(u=r.sent()).ok?[4,u.json()]:[3,3];case 2:return l=r.sent(),[2,z(l)];case 3:return[4,B("Generate Auth Token",u)];case 4:throw r.sent()}}))}))}function be(e,t){return void 0===t&&(t=!1),Object(r.b)(this,void 0,void 0,(function(){var n,i,o;return Object(r.d)(this,(function(s){switch(s.label){case 0:return[4,ue(e.appConfig,(function(i){if(!ge(i))throw R.create("not-registered");var o=i.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(e)}(o))return i;if(1===o.requestStatus)return n=function(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,ve(e.appConfig)];case 1:n=r.sent(),r.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,q(100)];case 3:return r.sent(),[4,ve(e.appConfig)];case 4:return n=r.sent(),[3,2];case 5:return 0===(i=n.authToken).requestStatus?[2,be(e,t)]:[2,i]}}))}))}(e,t),i;if(!navigator.onLine)throw R.create("app-offline");var s=function(e){var t={requestStatus:1,requestTime:Date.now()};return Object(r.a)(Object(r.a)({},e),{authToken:t})}(i);return n=function(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o;return Object(r.d)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,8]),[4,he(e,t)];case 1:return n=s.sent(),o=Object(r.a)(Object(r.a)({},t),{authToken:n}),[4,ae(e.appConfig,o)];case 2:return s.sent(),[2,n];case 3:return!K(i=s.sent())||401!==i.customData.serverCode&&404!==i.customData.serverCode?[3,5]:[4,ce(e.appConfig)];case 4:return s.sent(),[3,7];case 5:return o=Object(r.a)(Object(r.a)({},t),{authToken:{requestStatus:0}}),[4,ae(e.appConfig,o)];case 6:s.sent(),s.label=7;case 7:throw i;case 8:return[2]}}
488))}))}(e,s),s}))];case 1:return i=s.sent(),n?[4,n]:[3,3];case 2:return o=s.sent(),[3,4];case 3:o=i.authToken,s.label=4;case 4:return[2,o]}}))}))}function ve(e){return ue(e,(function(e){if(!ge(e))throw R.create("not-registered");var t,n=e.authToken;return 1===(t=n).requestStatus&&t.requestTime+1e4<Date.now()?Object(r.a)(Object(r.a)({},e),{authToken:{requestStatus:0}}):e}))}function ge(e){return void 0!==e&&2===e.registrationStatus}function ye(e){return Object(r.b)(this,void 0,void 0,(function(){var t;return Object(r.d)(this,(function(n){switch(n.label){case 0:return[4,le(e)];case 1:return(t=n.sent().registrationPromise)?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))}
489/**
490 * @license
491 * Copyright 2019 Google LLC
492 *
493 * Licensed under the Apache License, Version 2.0 (the "License");
494 * you may not use this file except in compliance with the License.
495 * You may obtain a copy of the License at
496 *
497 *   http://www.apache.org/licenses/LICENSE-2.0
498 *
499 * Unless required by applicable law or agreed to in writing, software
500 * distributed under the License is distributed on an "AS IS" BASIS,
501 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
502 * See the License for the specific language governing permissions and
503 * limitations under the License.
504 */function me(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o,s;return Object(r.d)(this,(function(r){switch(r.label){case 0:return n=function(e,t){var n=t.fid;return F(e)+"/"+n}
505/**
506 * @license
507 * Copyright 2019 Google LLC
508 *
509 * Licensed under the Apache License, Version 2.0 (the "License");
510 * you may not use this file except in compliance with the License.
511 * You may obtain a copy of the License at
512 *
513 *   http://www.apache.org/licenses/LICENSE-2.0
514 *
515 * Unless required by applicable law or agreed to in writing, software
516 * distributed under the License is distributed on an "AS IS" BASIS,
517 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
518 * See the License for the specific language governing permissions and
519 * limitations under the License.
520 */(e,t),i=U(e,t),o={method:"DELETE",headers:i},[4,V((function(){return fetch(n,o)}))];case 1:return(s=r.sent()).ok?[3,3]:[4,B("Delete Installation",s)];case 2:throw r.sent();case 3:return[2]}}
520))}))}
521/**
522 * @license
523 * Copyright 2019 Google LLC
524 *
525 * Licensed under the Apache License, Version 2.0 (the "License");
526 * you may not use this file except in compliance with the License.
527 * You may obtain a copy of the License at
528 *
529 *   http://www.apache.org/licenses/LICENSE-2.0
530 *
531 * Unless required by applicable law or agreed to in writing, software
532 * distributed under the License is distributed on an "AS IS" BASIS,
533 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
534 * See the License for the specific language governing permissions and
535 * limitations under the License.
536 */
537function we(e,t){var n=e.appConfig;return function(e,t){ee();var n=J(e),r=Y.get(n);r||(r=new Set,Y.set(n,r)),r.add(t)}(n,t),function(){!function(e,t){var n=J(e),r=Y.get(n);r&&(r.delete(t),0===r.size&&Y.delete(n),te())}(n,t)}}
538/**
539 * @license
540 * Copyright 2019 Google LLC
541 *
542 * Licensed under the Apache License, Version 2.0 (the "License");
543 * you may not use this file except in compliance with the License.
544 * You may obtain a copy of the License at
545 *
546 *   http://www.apache.org/licenses/LICENSE-2.0
547 *
548 * Unless required by applicable law or agreed to in writing, software
549 * distributed under the License is distributed on an "AS IS" BASIS,
550 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
551 * See the License for the specific language governing permissions and
552 * limitations under the License.
553 */function Oe(e){return R.create("missing-app-config-values",{valueName:e})}
554/**
555 * @license
556 * Copyright 2019 Google LLC
557 *
558 * Licensed under the Apache License, Version 2.0 (the "License");
559 * you may not use this file except in compliance with the License.
560 * You may obtain a copy of the License at
561 *
562 *   http://www.apache.org/licenses/LICENSE-2.0
563 *
564 * Unless required by applicable law or agreed to in writing, software
565 * distributed under the License is distributed on an "AS IS" BASIS,
566 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
567 * See the License for the specific language governing permissions and
568 * limitations under the License.
569 */(ne=A).INTERNAL.registerComponent(new o("installations",(function(e){var t=e.getProvider("app").getImmediate(),n={appConfig:function(e){var t,n;if(!e||!e.options)throw Oe("App Configuration");if(!e.name)throw Oe("App Name");try{for(var i=Object(r.g)(["projectId","apiKey","appId"]),o=i.next();!o.done;o=i.next()){var s=o.value;if(!e.options[s])throw Oe(s)}}catch(e){t={error:e}}finally{try{o&&!o.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}}(t),platformLoggerProvider:e.getProvider("platform-logger")};return{app:t,getId:function(){
570/**
571 * @license
572 * Copyright 2019 Google LLC
573 *
574 * Licensed under the Apache License, Version 2.0 (the "License");
575 * you may not use this file except in compliance with the License.
576 * You may obtain a copy of the License at
577 *
578 *   http://www.apache.org/licenses/LICENSE-2.0
579 *
580 * Unless required by applicable law or agreed to in writing, software
581 * distributed under the License is distributed on an "AS IS" BASIS,
582 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
583 * See the License for the specific language governing permissions and
584 * limitations under the License.
585 */return function(e){return Object(r.b)(this,void 0,void 0,(function(){var t,n,i;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,le(e.appConfig)];case 1:return t=r.sent(),n=t.installationEntry,(i=t.registrationPromise)?i.catch(console.error):be(e).catch(console.error),[2,n.fid]}}))}))}
586/**
587 * @license
588 * Copyright 2019 Google LLC
589 *
590 * Licensed under the Apache License, Version 2.0 (the "License");
591 * you may not use this file except in compliance with the License.
592 * You may obtain a copy of the License at
593 *
594 *   http://www.apache.org/licenses/LICENSE-2.0
595 *
596 * Unless required by applicable law or agreed to in writing, software
597 * distributed under the License is distributed on an "AS IS" BASIS,
598 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
599 * See the License for the specific language governing permissions and
600 * limitations under the License.
601 */(n)},getToken:function(e){return function(e,t){return void 0===t&&(t=!1),Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(n){switch(n.label){case 0:return[4,ye(e.appConfig)];case 1:return n.sent(),[4,be(e,t)];case 2:return[2,n.sent().token]}}))}))}(n,e)},delete:function(){return function(e){return Object(r.b)(this,void 0,void 0,(function(){var t,n;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,ue(t=e.appConfig,(function(e){if(!e||0!==e.registrationStatus)return e}))];case 1:if(!(n=r.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw R.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw R.create("app-offline");case 3:return[4,me(t,n)];case 4:return r.sent(),[4,ce(t)];case 5:r.sent(),r.label=6;case 6:return[2]}}
601))}))}(n)},onIdChange:function(e){return we(n,e)}}}),"PUBLIC")),ne.registerVersion("@firebase/installations","0.4.32");var je,_e=((re={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',re["only-available-in-window"]="This method is available in a Window context.",re["only-available-in-sw"]="This method is available in a service worker context.",re["permission-default"]="The notification permission was not granted and dismissed instead.",re["permission-blocked"]="The notification permission was not granted and blocked instead.",re["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",re["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",re["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",re["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",re["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",re["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",re["token-update-no-token"]="FCM returned no token when updating the user to push.",re["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.",re["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",re["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",re["invalid-vapid-key"]="The public VAPID key must be a string.",re["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.",re),ke=new i.b("messaging","Messaging",_e),Ie="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4";
602/**
603 * @license
604 * Copyright 2017 Google LLC
605 *
606 * Licensed under the Apache License, Version 2.0 (the "License");
607 * you may not use this file except in compliance with the License.
608 * You may obtain a copy of the License at
609 *
610 *   http://www.apache.org/licenses/LICENSE-2.0
611 *
612 * Unless required by applicable law or agreed to in writing, software
613 * distributed under the License is distributed on an "AS IS" BASIS,
614 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
615 * See the License for the specific language governing permissions and
616 * limitations under the License.
617 */
618function Se(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,Object(r.f)([],Object(r.e)(t)))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Ce(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}
619/**
620 * @license
621 * Copyright 2019 Google LLC
622 *
623 * Licensed under the Apache License, Version 2.0 (the "License");
624 * you may not use this file except in compliance with the License.
625 * You may obtain a copy of the License at
626 *
627 *   http://www.apache.org/licenses/LICENSE-2.0
628 *
629 * Unless required by applicable law or agreed to in writing, software
630 * distributed under the License is distributed on an "AS IS" BASIS,
631 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
632 * See the License for the specific language governing permissions and
633 * limitations under the License.
634 */!function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(je||(je={}));function Ee(e){return Object(r.b)(this,void 0,void 0,(function(){var t,n,i=this;return Object(r.d)(this,(function(o){switch(o.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(t=o.sent(),!t.map((function(e){return e.name})).includes("fcm_token_details_db"))return[2,null];o.label=2;case 2:return n=null,[4,Object(M.openDb)("fcm_token_details_db",5,(function(t){return Object(r.b)(i,void 0,void 0,(function(){var i,o,s,a;return Object(r.d)(this,(function(r){switch(r.label){case 0:return t.oldVersion<2?[2]:t.objectStoreNames.contains("fcm_token_object_Store")?[4,(i=t.transaction.objectStore("fcm_token_object_Store")).index("fcmSenderId").get(e)]:[2];case 1:return o=r.sent(),[4,i.clear()];case 2:if(r.sent(),!o)return[2];if(2===t.oldVersion){if(!(s=o).auth||!s.p256dh||!s.endpoint)return[2];n={token:s.fcmToken,createTime:null!==(a=s.createTime)&&void 0!==a?a:Date.now(),subscriptionOptions:{auth:s.auth,p256dh:s.p256dh,endpoint:s.endpoint,swScope:s.swScope,vapidKey:"string"==typeof s.vapidKey?s.vapidKey:Se(s.vapidKey)}}}else(3===t.oldVersion||4===t.oldVersion)&&(n={token:(s=o).fcmToken,createTime:s.createTime,subscriptionOptions:{auth:Se(s.auth),p256dh:Se(s.p256dh),endpoint:s.endpoint,swScope:s.swScope,vapidKey:Se(s.vapidKey)}});return[2]}}
634))}))}))];case 3:return o.sent().close(),[4,Object(M.deleteDb)("fcm_token_details_db")];case 4:return o.sent(),[4,Object(M.deleteDb)("fcm_vapid_details_db")];case 5:return o.sent(),[4,Object(M.deleteDb)("undefined")];case 6:return o.sent(),[2,De(n)?n:null]}}))}))}function De(e){if(!e||!e.subscriptionOptions)return!1;var t=e.subscriptionOptions;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}
635/**
636 * @license
637 * Copyright 2019 Google LLC
638 *
639 * Licensed under the Apache License, Version 2.0 (the "License");
640 * you may not use this file except in compliance with the License.
641 * You may obtain a copy of the License at
642 *
643 *   http://www.apache.org/licenses/LICENSE-2.0
644 *
645 * Unless required by applicable law or agreed to in writing, software
646 * distributed under the License is distributed on an "AS IS" BASIS,
647 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
648 * See the License for the specific language governing permissions and
649 * limitations under the License.
650 */var Te=null;function Pe(){return Te||(Te=Object(M.openDb)("firebase-messaging-database",1,(function(e){switch(e.oldVersion){case 0:e.createObjectStore("firebase-messaging-store")}}))),Te}function Ne(e){return Object(r.b)(this,void 0,void 0,(function(){var t,n,i;return Object(r.d)(this,(function(r){switch(r.label){case 0:return t=Me(e),[4,Pe()];case 1:return[4,r.sent().transaction("firebase-messaging-store").objectStore("firebase-messaging-store").get(t)];case 2:return(n=r.sent())?[2,n]:[3,3];case 3:return[4,Ee(e.appConfig.senderId)];case 4:return(i=r.sent())?[4,Ae(e,i)]:[3,6];case 5:return r.sent(),[2,i];case 6:return[2]}}
650))}))}function Ae(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o;return Object(r.d)(this,(function(r){switch(r.label){case 0:return n=Me(e),[4,Pe()];case 1:return i=r.sent(),[4,(o=i.transaction("firebase-messaging-store","readwrite")).objectStore("firebase-messaging-store").put(t,n)];case 2:return r.sent(),[4,o.complete];case 3:return r.sent(),[2,t]}}))}))}function Le(e){return Object(r.b)(this,void 0,void 0,(function(){var t,n,i;return Object(r.d)(this,(function(r){switch(r.label){case 0:return t=Me(e),[4,Pe()];case 1:return n=r.sent(),[4,(i=n.transaction("firebase-messaging-store","readwrite")).objectStore("firebase-messaging-store").delete(t)];case 2:return r.sent(),[4,i.complete];case 3:return r.sent(),[2]}}))}))}function Me(e){return e.appConfig.appId}
651/**
652 * @license
653 * Copyright 2019 Google LLC
654 *
655 * Licensed under the Apache License, Version 2.0 (the "License");
656 * you may not use this file except in compliance with the License.
657 * You may obtain a copy of the License at
658 *
659 *   http://www.apache.org/licenses/LICENSE-2.0
660 *
661 * Unless required by applicable law or agreed to in writing, software
662 * distributed under the License is distributed on an "AS IS" BASIS,
663 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
664 * See the License for the specific language governing permissions and
665 * limitations under the License.
666 */function xe(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o,s,a,c;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,ze(e)];case 1:n=r.sent(),i=Be(t),o={method:"POST",headers:n,body:JSON.stringify(i)},r.label=2;case 2:return r.trys.push([2,5,,6]),[4,fetch(Fe(e.appConfig),o)];case 3:return[4,r.sent().json()];case 4:return s=r.sent(),[3,6];case 5:throw a=r.sent(),ke.create("token-subscribe-failed",{errorInfo:a});case 6:if(s.error)throw c=s.error.message,ke.create("token-subscribe-failed",{errorInfo:c});if(!s.token)throw ke.create("token-subscribe-no-token");return[2,s.token]}}))}))}function Re(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o,s,a,c;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,ze(e)];case 1:n=r.sent(),i=Be(t.subscriptionOptions),o={method:"PATCH",headers:n,body:JSON.stringify(i)},r.label=2;case 2:return r.trys.push([2,5,,6]),[4,fetch(Fe(e.appConfig)+"/"+t.token,o)];case 3:return[4,r.sent().json()];case 4:return s=r.sent(),[3,6];case 5:throw a=r.sent(),ke.create("token-update-failed",{errorInfo:a});case 6:if(s.error)throw c=s.error.message,ke.create("token-update-failed",{errorInfo:c});if(!s.token)throw ke.create("token-update-no-token");return[2,s.token]}}))}))}function Ke(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i,o,s,a;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,ze(e)];case 1:n=r.sent(),i={method:"DELETE",headers:n},r.label=2;case 2:return r.trys.push([2,5,,6]),[4,fetch(Fe(e.appConfig)+"/"+t,i)];case 3:return[4,r.sent().json()];case 4:if((o=r.sent()).error)throw s=o.error.message,ke.create("token-unsubscribe-failed",{errorInfo:s});return[3,6];case 5:throw a=r.sent(),ke.create("token-unsubscribe-failed",{errorInfo:a});case 6:return[2]}}
666))}))}function Fe(e){return"https://fcmregistrations.googleapis.com/v1/projects/"+e.projectId+"/registrations"}function ze(e){var t=e.appConfig,n=e.installations;return Object(r.b)(this,void 0,void 0,(function(){var e;return Object(r.d)(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 Be(e){var t=e.p256dh,n=e.auth,r=e.endpoint,i=e.vapidKey,o={web:{endpoint:r,auth:n,p256dh:t}};return i!==Ie&&(o.web.applicationPubKey=i),o}
667/**
668 * @license
669 * Copyright 2019 Google LLC
670 *
671 * Licensed under the Apache License, Version 2.0 (the "License");
672 * you may not use this file except in compliance with the License.
673 * You may obtain a copy of the License at
674 *
675 *   http://www.apache.org/licenses/LICENSE-2.0
676 *
677 * Unless required by applicable law or agreed to in writing, software
678 * distributed under the License is distributed on an "AS IS" BASIS,
679 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
680 * See the License for the specific language governing permissions and
681 * limitations under the License.
682 */function He(e,t,n){return Object(r.b)(this,void 0,void 0,(function(){var i,o,s,a;return Object(r.d)(this,(function(r){switch(r.label){case 0:if("granted"!==Notification.permission)throw ke.create("permission-blocked");return[4,qe(t,n)];case 1:return i=r.sent(),[4,Ne(e)];case 2:return o=r.sent(),s={vapidKey:n,swScope:t.scope,endpoint:i.endpoint,auth:Se(i.getKey("auth")),p256dh:Se(i.getKey("p256dh"))},o?[3,3]:[2,We(e,s)];case 3:if(c=o.subscriptionOptions,l=(u=s).vapidKey===c.vapidKey,f=u.endpoint===c.endpoint,p=u.auth===c.auth,d=u.p256dh===c.p256dh,l&&f&&p&&d)return[3,8];r.label=4;case 4:return r.trys.push([4,6,,7]),[4,Ke(e,o.token)];case 5:return r.sent(),[3,7];case 6:return a=r.sent(),console.warn(a),[3,7];case 7:return[2,We(e,s)];case 8:return Date.now()>=o.createTime+6048e5?[2,Ve({token:o.token,createTime:Date.now(),subscriptionOptions:s},e,t)]:[2,o.token];case 9:return[2]}var c,u,l,f,p,d;
683/**
684 * @license
685 * Copyright 2020 Google LLC
686 *
687 * Licensed under the Apache License, Version 2.0 (the "License");
688 * you may not use this file except in compliance with the License.
689 * You may obtain a copy of the License at
690 *
691 *   http://www.apache.org/licenses/LICENSE-2.0
692 *
693 * Unless required by applicable law or agreed to in writing, software
694 * distributed under the License is distributed on an "AS IS" BASIS,
695 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
696 * See the License for the specific language governing permissions and
697 * limitations under the License.
698 */}))}))}function Ue(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,Ne(e)];case 1:return(n=r.sent())?[4,Ke(e,n.token)]:[3,4];case 2:return r.sent(),[4,Le(e)];case 3:r.sent(),r.label=4;case 4:return[4,t.pushManager.getSubscription()];case 5:return(i=r.sent())?[2,i.unsubscribe()]:[2,!0]}}))}))}function Ve(e,t,n){return Object(r.b)(this,void 0,void 0,(function(){var i,o,s;return Object(r.d)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,5]),[4,Re(t,e)];case 1:return i=a.sent(),o=Object(r.a)(Object(r.a)({},e),{token:i,createTime:Date.now()}),[4,Ae(t,o)];case 2:return a.sent(),[2,i];case 3:return s=a.sent(),[4,Ue(t,n)];case 4:throw a.sent(),s;case 5:return[2]}}
698))}))}function We(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n,i;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,xe(e,t)];case 1:return n=r.sent(),i={token:n,createTime:Date.now(),subscriptionOptions:t},[4,Ae(e,i)];case 2:return r.sent(),[2,i.token]}}))}))}function qe(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,e.pushManager.getSubscription()];case 1:return(n=r.sent())?[2,n]:[2,e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Ce(t)})]}}))}))}
699/**
700 * @license
701 * Copyright 2019 Google LLC
702 *
703 * Licensed under the Apache License, Version 2.0 (the "License");
704 * you may not use this file except in compliance with the License.
705 * You may obtain a copy of the License at
706 *
707 *   http://www.apache.org/licenses/LICENSE-2.0
708 *
709 * Unless required by applicable law or agreed to in writing, software
710 * distributed under the License is distributed on an "AS IS" BASIS,
711 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
712 * See the License for the specific language governing permissions and
713 * limitations under the License.
714 */
715function $e(e){return"object"==typeof e&&!!e&&"google.c.a.c_id"in e}
716/**
717 * @license
718 * Copyright 2019 Google LLC
719 *
720 * Licensed under the Apache License, Version 2.0 (the "License");
721 * you may not use this file except in compliance with the License.
722 * You may obtain a copy of the License at
723 *
724 *   http://www.apache.org/licenses/LICENSE-2.0
725 *
726 * Unless required by applicable law or agreed to in writing, software
727 * distributed under the License is distributed on an "AS IS" BASIS,
728 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
729 * See the License for the specific language governing permissions and
730 * limitations under the License.
731 */function Ge(e){return new Promise((function(t){setTimeout(t,e)}))}
732/**
733 * @license
734 * Copyright 2017 Google LLC
735 *
736 * Licensed under the Apache License, Version 2.0 (the "License");
737 * you may not use this file except in compliance with the License.
738 * You may obtain a copy of the License at
739 *
740 *   http://www.apache.org/licenses/LICENSE-2.0
741 *
742 * Unless required by applicable law or agreed to in writing, software
743 * distributed under the License is distributed on an "AS IS" BASIS,
744 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
745 * See the License for the specific language governing permissions and
746 * limitations under the License.
747 */var Je=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||"function"!=typeof e)throw ke.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 Object(r.b)(this,void 0,void 0,(function(){var n;return Object(r.d)(this,(function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,Ne(this.firebaseDependencies)];case 1:n=r.sent(),this.vapidKey=null!==(t=null===(e=null==n?void 0:n.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==t?t:Ie,r.label=2;case 2:return[2,He(this.firebaseDependencies,self.registration,this.vapidKey)]}}))}))},e.prototype.deleteToken=function(){return Ue(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw ke.create("only-available-in-window")},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw ke.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw ke.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(){throw ke.create("only-available-in-window")},e.prototype.onMessage=function(){throw ke.create("only-available-in-window")},e.prototype.onTokenRefresh=function(){throw ke.create("only-available-in-window")},e.prototype.onPush=function(e){return Object(r.b)(this,void 0,void 0,(function(){var t,n,i,o;return Object(r.d)(this,(function(r){switch(r.label){case 0:return(t=function(e){var t=e.data;if(!t)return null;try{return t.json()}catch(e){return null}}(e))?[4,Qe()]:(console.debug("FirebaseMessaging: failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return function(e){return e.some((function(e){return"visible"===e.visibilityState&&!e.url.startsWith("chrome-extension://")}))}
747(n=r.sent())?[2,Ze(n,t)]:(i=!1,t.notification?[4,et(Ye(t))]:[3,3]);case 2:r.sent(),i=!0,r.label=3;case 3:return!0===i&&!1===this.isOnBackgroundMessageUsed?[2]:(this.bgMessageHandler&&(o=function(e){var t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcm_message_id};return function(e,t){if(!t.notification)return;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)}(t,e),function(e,t){if(!t.data)return;e.data=t.data}(t,e),function(e,t){if(!t.fcmOptions)return;e.fcmOptions={};var n=t.fcmOptions.link;n&&(e.fcmOptions.link=n);var r=t.fcmOptions.analytics_label;r&&(e.fcmOptions.analyticsLabel=r)}(t,e),t}(t),"function"==typeof this.bgMessageHandler?this.bgMessageHandler(o):this.bgMessageHandler.next(o)),[4,Ge(1e3)]);case 4:return r.sent(),[2]}}))}))},e.prototype.onSubChange=function(e){var t,n;return Object(r.b)(this,void 0,void 0,(function(){var i;return Object(r.d)(this,(function(r){switch(r.label){case 0:return e.newSubscription?[3,2]:[4,Ue(this.firebaseDependencies,self.registration)];case 1:return r.sent(),[2];case 2:return[4,Ne(this.firebaseDependencies)];case 3:return i=r.sent(),[4,Ue(this.firebaseDependencies,self.registration)];case 4:return r.sent(),[4,He(this.firebaseDependencies,self.registration,null!==(n=null===(t=null==i?void 0:i.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==n?n:Ie)];case 5:return r.sent(),[2]}}))}))},e.prototype.onNotificationClick=function(e){var t,n;return Object(r.b)(this,void 0,void 0,(function(){var i,o,s,a,c;return Object(r.d)(this,(function(r){switch(r.label){case 0:return(i=null===(n=null===(t=e.notification)||void 0===t?void 0:t.data)||void 0===n?void 0:n.FCM_MSG)?e.action?[2]:(e.stopImmediatePropagation(),e.notification.close(),(o=function(e){var t,n,r,i=null!==(n=null===(t=e.fcmOptions)||void 0===t?void 0:t.link)&&void 0!==n?n:null===(r=e.notification)||void 0===r?void 0:r.click_action;if(i)return i;return $e(e.data)?self.location.origin:null}
748/**
749 * @license
750 * Copyright 2017 Google LLC
751 *
752 * Licensed under the Apache License, Version 2.0 (the "License");
753 * you may not use this file except in compliance with the License.
754 * You may obtain a copy of the License at
755 *
756 *   http://www.apache.org/licenses/LICENSE-2.0
757 *
758 * Unless required by applicable law or agreed to in writing, software
759 * distributed under the License is distributed on an "AS IS" BASIS,
760 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
761 * See the License for the specific language governing permissions and
762 * limitations under the License.
763 */(i))?(s=new URL(o,self.location.href),a=new URL(self.location.origin),s.host!==a.host?[2]:[4,Xe(s)]):[2]):[2];case 1:return(c=r.sent())?[3,4]:[4,self.clients.openWindow(o)];case 2:return c=r.sent(),[4,Ge(3e3)];case 3:return r.sent(),[3,6];case 4:return[4,c.focus()];case 5:c=r.sent(),r.label=6;case 6:return c?(i.messageType=je.NOTIFICATION_CLICKED,i.isFirebaseMessaging=!0,[2,c.postMessage(i)]):[2]}}))}))},e}();function Ye(e){var t,n=Object(r.a)({},e.notification);return n.data=((t={}).FCM_MSG=e,t),n}function Xe(e){return Object(r.b)(this,void 0,void 0,(function(){var t,n,i,o,s,a,c;return Object(r.d)(this,(function(u){switch(u.label){case 0:return[4,Qe()];case 1:t=u.sent();try{for(n=Object(r.g)(t),i=n.next();!i.done;i=n.next())if(o=i.value,s=new URL(o.url,self.location.href),e.host===s.host)return[2,o]}catch(e){a={error:e}}finally{try{i&&!i.done&&(c=n.return)&&c.call(n)}finally{if(a)throw a.error}}return[2,null]}}))}))}function Ze(e,t){var n,i;t.isFirebaseMessaging=!0,t.messageType=je.PUSH_RECEIVED;try{for(var o=Object(r.g)(e),s=o.next();!s.done;s=o.next()){s.value.postMessage(t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}function Qe(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function et(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(null!==(t=e.title)&&void 0!==t?t:"",e)}var tt=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}
763,enumerable:!1,configurable:!0}),e.prototype.messageEventListener=function(e){return Object(r.b)(this,void 0,void 0,(function(){var t,n;return Object(r.d)(this,(function(r){switch(r.label){case 0:return(t=e.data).isFirebaseMessaging?(this.onMessageCallback&&t.messageType===je.PUSH_RECEIVED&&("function"==typeof this.onMessageCallback?this.onMessageCallback(function(e){return delete e.messageType,delete e.isFirebaseMessaging,e}
764/**
765 * @license
766 * Copyright 2019 Google LLC
767 *
768 * Licensed under the Apache License, Version 2.0 (the "License");
769 * you may not use this file except in compliance with the License.
770 * You may obtain a copy of the License at
771 *
772 *   http://www.apache.org/licenses/LICENSE-2.0
773 *
774 * Unless required by applicable law or agreed to in writing, software
775 * distributed under the License is distributed on an "AS IS" BASIS,
776 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
777 * See the License for the specific language governing permissions and
778 * limitations under the License.
779 */(Object.assign({},t))):this.onMessageCallback.next(Object.assign({},t))),$e(n=t.data)&&"1"===n["google.c.a.e"]?[4,this.logEvent(t.messageType,n)]:[3,2]):[2];case 1:r.sent(),r.label=2;case 2:return[2]}}
779))}))},e.prototype.getVapidKey=function(){return this.vapidKey},e.prototype.getSwReg=function(){return this.swRegistration},e.prototype.getToken=function(e){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(t){switch(t.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:t.sent(),t.label=2;case 2:if("granted"!==Notification.permission)throw ke.create("permission-blocked");return[4,this.updateVapidKey(null==e?void 0:e.vapidKey)];case 3:return t.sent(),[4,this.updateSwReg(null==e?void 0:e.serviceWorkerRegistration)];case 4:return t.sent(),[2,He(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}}))}))},e.prototype.updateVapidKey=function(e){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(t){return e?this.vapidKey=e:this.vapidKey||(this.vapidKey=Ie),[2]}))}))},e.prototype.updateSwReg=function(e){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(t){switch(t.label){case 0:return e||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:t.sent(),t.label=2;case 2:if(!e&&this.swRegistration)return[2];if(!(e instanceof ServiceWorkerRegistration))throw ke.create("invalid-sw-registration");return this.swRegistration=e,[2]}}))}))},e.prototype.registerDefaultSw=function(){return Object(r.b)(this,void 0,void 0,(function(){var e,t;return Object(r.d)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 1:return e.swRegistration=n.sent(),this.swRegistration.update().catch((function(){})),[3,3];case 2:throw t=n.sent(),ke.create("failed-service-worker-registration",{browserErrorMessage:t.message});case 3:return[2]}}
779))}))},e.prototype.deleteToken=function(){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(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,Ue(this.firebaseDependencies,this.swRegistration)]}}))}))},e.prototype.requestPermission=function(){return Object(r.b)(this,void 0,void 0,(function(){var e;return Object(r.d)(this,(function(t){switch(t.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(e=t.sent()))return[2];throw"denied"===e?ke.create("permission-blocked"):ke.create("permission-default")}}))}))},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw ke.create("use-vapid-key-after-get-token");if("string"!=typeof e||0===e.length)throw ke.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw ke.create("invalid-sw-registration");if(this.swRegistration)throw ke.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 ke.create("only-available-in-sw")},e.prototype.onBackgroundMessage=function(){throw ke.create("only-available-in-sw")},e.prototype.onTokenRefresh=function(){return function(){}},e.prototype.logEvent=function(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n;return Object(r.d)(this,(function(r){switch(r.label){case 0:return n=function(e){switch(e){case je.NOTIFICATION_CLICKED:return"notification_open";case je.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(e),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return r.sent().logEvent(n,{message_id:t["google.c.a.c_id"],message_name:t["google.c.a.c_l"],message_time:t["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}}))}))},e}();function nt(e){return ke.create("missing-app-config-values",{valueName:e})}
780/**
781 * @license
782 * Copyright 2017 Google LLC
783 *
784 * Licensed under the Apache License, Version 2.0 (the "License");
785 * you may not use this file except in compliance with the License.
786 * You may obtain a copy of the License at
787 *
788 *   http://www.apache.org/licenses/LICENSE-2.0
789 *
790 * Unless required by applicable law or agreed to in writing, software
791 * distributed under the License is distributed on an "AS IS" BASIS,
792 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
793 * See the License for the specific language governing permissions and
794 * limitations under the License.
795 */var rt={isSupported:it};function it(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}A.INTERNAL.registerComponent(new o("messaging",(function(e){var t=e.getProvider("app").getImmediate(),n={app:t,appConfig:function(e){var t,n;if(!e||!e.options)throw nt("App Configuration Object");if(!e.name)throw nt("App Name");var i=e.options;try{for(var o=Object(r.g)(["projectId","apiKey","appId","messagingSenderId"]),s=o.next();!s.done;s=o.next()){var a=s.value;if(!i[a])throw nt(a)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return{appName:e.name,projectId:i.projectId,apiKey:i.apiKey,appId:i.appId,senderId:i.messagingSenderId}}(t),installations:e.getProvider("installations").getImmediate(),analyticsProvider:e.getProvider("analytics-internal")};if(!it())throw ke.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new Je(n):new tt(n)}),"PUBLIC").setServiceProps(rt));
795A.initializeApp({apiKey:"AIzaSyDdbSmAl0Kd79WRvaU3PtZ0oCOF9yRF6kk",authDomain:"sticky-ff90e.firebaseapp.com",databaseURL:"https://sticky-ff90e.firebaseio.com",projectId:"sticky-ff90e",storageBucket:"sticky-ff90e.appspot.com",messagingSenderId:"420760138957",appId:"1:420760138957:web:d384ceb4c9fae0f3"}),A.messaging()}]);

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.