firebase 10.11.1-dataconnect-preview.f2ddc3d7b → 10.11.1-dataconnect-preview.42eb5e521

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/app/dist/esm/index.esm.js +1 -1
  2. package/app/dist/index.cjs.js +1 -1
  3. package/app/dist/index.mjs +1 -1
  4. package/compat/app/dist/esm/index.esm.js +1 -1
  5. package/compat/app/dist/index.cjs.js +1 -1
  6. package/compat/app/dist/index.mjs +1 -1
  7. package/compat/dist/esm/index.esm.js +2 -2
  8. package/compat/dist/index.node.cjs +2 -2
  9. package/compat/dist/index.rn.cjs.js +2 -2
  10. package/firebase-analytics-compat.js +1 -1
  11. package/firebase-analytics.js +1 -1
  12. package/firebase-app-check-compat.js +1 -1
  13. package/firebase-app-check.js +1 -1
  14. package/firebase-app-compat.js +2 -2
  15. package/firebase-app.js +5 -5
  16. package/firebase-auth-compat.js +1 -1
  17. package/firebase-auth-cordova.js +1 -1
  18. package/firebase-auth-web-extension.js +1 -1
  19. package/firebase-auth.js +1 -1
  20. package/firebase-compat.js +3 -3
  21. package/firebase-data-connect.js +1 -1
  22. package/firebase-database-compat.js +1 -1
  23. package/firebase-database.js +1 -1
  24. package/firebase-firestore-compat.js +1 -1
  25. package/firebase-firestore-lite.js +1 -1
  26. package/firebase-firestore.js +1 -1
  27. package/firebase-functions-compat.js +1 -1
  28. package/firebase-functions.js +1 -1
  29. package/firebase-installations-compat.js +1 -1
  30. package/firebase-installations.js +1 -1
  31. package/firebase-messaging-compat.js +1 -1
  32. package/firebase-messaging-sw.js +1 -1
  33. package/firebase-messaging.js +1 -1
  34. package/firebase-performance-compat.js +1 -1
  35. package/firebase-performance-standalone-compat.es2017.js +21 -21
  36. package/firebase-performance-standalone-compat.js +1 -1
  37. package/firebase-performance.js +1 -1
  38. package/firebase-remote-config-compat.js +1 -1
  39. package/firebase-remote-config.js +1 -1
  40. package/firebase-storage-compat.js +1 -1
  41. package/firebase-storage.js +1 -1
  42. package/package.json +28 -28
@@ -30,7 +30,7 @@
30
30
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31
31
  * See the License for the specific language governing permissions and
32
32
  * limitations under the License.
33
- */const e=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},t={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){const i=e[t],a=t+1<e.length,o=a?e[t+1]:0,s=t+2<e.length,c=s?e[t+2]:0,l=i>>2,u=(3&i)<<4|o>>4;let p=(15&o)<<2|c>>6,d=63&c;s||(d=64,a||(p=64)),r.push(n[l],n[u],n[p],n[d])}return r.join("")},encodeString(t,n){return this.HAS_NATIVE_SUPPORT&&!n?btoa(t):this.encodeByteArray(e(t),n)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){const a=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{const a=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&o)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const r=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let t=0;t<e.length;){const a=r[e.charAt(t++)],o=t<e.length?r[e.charAt(t)]:0;++t;const s=t<e.length?r[e.charAt(t)]:64;++t;const c=t<e.length?r[e.charAt(t)]:64;if(++t,null==a||null==o||null==s||null==c)throw new n;const l=a<<2|o>>4;if(i.push(l),64!==s){const e=o<<4&240|s>>2;if(i.push(e),64!==c){const e=s<<6&192|c;i.push(e)}}}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class n extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const r=function(n){return function(n){const r=e(n);return t.encodeByteArray(r,!0)}(n).replace(/\./g,"")};function i(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(const n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=i(e[n],t[n]));return e}
33
+ */const e=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},t={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){const i=e[t],a=t+1<e.length,o=a?e[t+1]:0,s=t+2<e.length,c=s?e[t+2]:0,l=i>>2,u=(3&i)<<4|o>>4;let p=(15&o)<<2|c>>6,h=63&c;s||(h=64,a||(p=64)),r.push(n[l],n[u],n[p],n[h])}return r.join("")},encodeString(t,n){return this.HAS_NATIVE_SUPPORT&&!n?btoa(t):this.encodeByteArray(e(t),n)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){const a=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{const a=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&o)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const r=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let t=0;t<e.length;){const a=r[e.charAt(t++)],o=t<e.length?r[e.charAt(t)]:0;++t;const s=t<e.length?r[e.charAt(t)]:64;++t;const c=t<e.length?r[e.charAt(t)]:64;if(++t,null==a||null==o||null==s||null==c)throw new n;const l=a<<2|o>>4;if(i.push(l),64!==s){const e=o<<4&240|s>>2;if(i.push(e),64!==c){const e=s<<6&192|c;i.push(e)}}}return i},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class n extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const r=function(n){return function(n){const r=e(n);return t.encodeByteArray(r,!0)}(n).replace(/\./g,"")};function i(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(const n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=i(e[n],t[n]));return e}
34
34
  /**
35
35
  * @license
36
36
  * Copyright 2022 Google LLC
@@ -81,7 +81,7 @@ function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window
81
81
  * See the License for the specific language governing permissions and
82
82
  * limitations under the License.
83
83
  */
84
- class l{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}function u(){try{return"object"==typeof indexedDB}catch(e){return!1}}function p(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}}))}class d extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,d.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,f.prototype.create)}}class f{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],a=i?function(e,t){return e.replace(h,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(i,n):"Error",o=`${this.serviceName}: ${a} (${r}).`;return new d(r,o,n)}}const h=/\{\$([^}]+)}/g;
84
+ class l{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}function u(){try{return"object"==typeof indexedDB}catch(e){return!1}}function p(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}}))}class h extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,h.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,d.prototype.create)}}class d{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],a=i?function(e,t){return e.replace(f,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(i,n):"Error",o=`${this.serviceName}: ${a} (${r}).`;return new h(r,o,n)}}const f=/\{\$([^}]+)}/g;
85
85
  /**
86
86
  * @license
87
87
  * Copyright 2017 Google LLC
@@ -194,7 +194,7 @@ class l{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Pr
194
194
  * See the License for the specific language governing permissions and
195
195
  * limitations under the License.
196
196
  */
197
- class W{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const K="@firebase/app",J="0.10.2-dataconnect-preview.f2ddc3d7b",G=new D("@firebase/app"),Y="[DEFAULT]",X={[K]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},Z=new Map,Q=new Map,ee=new Map;function te(e,t){try{e.container.addComponent(t)}catch(n){G.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function ne(e){const t=e.name;if(ee.has(t))return G.debug(`There were multiple attempts to register component ${t}.`),!1;ee.set(t,e);for(const t of Z.values())te(t,e);for(const t of Q.values())te(t,e);return!0}function re(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function ie(e){return void 0!==e.options}
197
+ class W{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const K="@firebase/app",J="0.10.2-dataconnect-preview.42eb5e521",G=new D("@firebase/app"),Y="[DEFAULT]",X={[K]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},Z=new Map,Q=new Map,ee=new Map;function te(e,t){try{e.container.addComponent(t)}catch(n){G.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function ne(e){const t=e.name;if(ee.has(t))return G.debug(`There were multiple attempts to register component ${t}.`),!1;ee.set(t,e);for(const t of Z.values())te(t,e);for(const t of Q.values())te(t,e);return!0}function re(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function ie(e){return void 0!==e.options}
198
198
  /**
199
199
  * @license
200
200
  * Copyright 2019 Google LLC
@@ -211,7 +211,7 @@ class W{constructor(e){this.container=e}getPlatformInfoString(){return this.cont
211
211
  * See the License for the specific language governing permissions and
212
212
  * limitations under the License.
213
213
  */
214
- const ae=new f("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});
214
+ const ae=new d("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});
215
215
  /**
216
216
  * @license
217
217
  * Copyright 2019 Google LLC
@@ -260,7 +260,7 @@ class oe{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e)
260
260
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
261
261
  * See the License for the specific language governing permissions and
262
262
  * limitations under the License.
263
- */const ce="10.11.1-dataconnect-preview.f2ddc3d7b";function le(e,t={}){let n=e;if("object"!=typeof t){t={name:t}}const r=Object.assign({name:Y,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!=typeof i||!i)throw ae.create("bad-app-name",{appName:String(i)});if(n||(n=c()),!n)throw ae.create("no-options");const a=Z.get(i);if(a){if(m(n,a.options)&&m(r,a.config))return a;throw ae.create("duplicate-app",{appName:i})}const o=new y(i);for(const e of ee.values())o.addComponent(e);const s=new oe(n,r,o);return Z.set(i,s),s}async function ue(e){let t=!1;const n=e.name;if(Z.has(n))t=!0,Z.delete(n);else if(Q.has(n)){e.decRefCount()<=0&&(Q.delete(n),t=!0)}t&&(await Promise.all(e.container.getProviders().map((e=>e.delete()))),e.isDeleted=!0)}function pe(e,t,n){var r;let i=null!==(r=X[e])&&void 0!==r?r:e;n&&(i+=`-${n}`);const a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){const e=[`Unable to register library "${i}" with version "${t}":`];return a&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void G.warn(e.join(" "))}ne(new v(`${i}-version`,(()=>({library:i,version:t})),"VERSION"))}function de(e,t){if(null!==e&&"function"!=typeof e)throw ae.create("invalid-log-argument");!function(e,t){for(const n of E){let r=null;t&&t.level&&(r=S[t.level]),n.userLogHandler=null===e?null:(t,n,...i)=>{const a=i.map((e=>{if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}})).filter((e=>e)).join(" ");n>=(null!=r?r:t.logLevel)&&e({level:I[n].toLowerCase(),message:a,args:i,type:t.name})}}}(e,t)}function fe(e){var t;t=e,E.forEach((e=>{e.setLogLevel(t)}))}
263
+ */const ce="10.11.1-dataconnect-preview.42eb5e521";function le(e,t={}){let n=e;if("object"!=typeof t){t={name:t}}const r=Object.assign({name:Y,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!=typeof i||!i)throw ae.create("bad-app-name",{appName:String(i)});if(n||(n=c()),!n)throw ae.create("no-options");const a=Z.get(i);if(a){if(m(n,a.options)&&m(r,a.config))return a;throw ae.create("duplicate-app",{appName:i})}const o=new y(i);for(const e of ee.values())o.addComponent(e);const s=new oe(n,r,o);return Z.set(i,s),s}async function ue(e){let t=!1;const n=e.name;if(Z.has(n))t=!0,Z.delete(n);else if(Q.has(n)){e.decRefCount()<=0&&(Q.delete(n),t=!0)}t&&(await Promise.all(e.container.getProviders().map((e=>e.delete()))),e.isDeleted=!0)}function pe(e,t,n){var r;let i=null!==(r=X[e])&&void 0!==r?r:e;n&&(i+=`-${n}`);const a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){const e=[`Unable to register library "${i}" with version "${t}":`];return a&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void G.warn(e.join(" "))}ne(new v(`${i}-version`,(()=>({library:i,version:t})),"VERSION"))}function he(e,t){if(null!==e&&"function"!=typeof e)throw ae.create("invalid-log-argument");!function(e,t){for(const n of E){let r=null;t&&t.level&&(r=S[t.level]),n.userLogHandler=null===e?null:(t,n,...i)=>{const a=i.map((e=>{if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}})).filter((e=>e)).join(" ");n>=(null!=r?r:t.logLevel)&&e({level:I[n].toLowerCase(),message:a,args:i,type:t.name})}}}(e,t)}function de(e){var t;t=e,E.forEach((e=>{e.setLogLevel(t)}))}
264
264
  /**
265
265
  * @license
266
266
  * Copyright 2021 Google LLC
@@ -276,7 +276,7 @@ class oe{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e)
276
276
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
277
277
  * See the License for the specific language governing permissions and
278
278
  * limitations under the License.
279
- */const he="firebase-heartbeat-store";let ge=null;function me(){return ge||(ge=V("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(he)}catch(e){console.warn(e)}}}).catch((e=>{throw ae.create("idb-open",{originalErrorMessage:e.message})}))),ge}async function be(e,t){try{const n=(await me()).transaction(he,"readwrite"),r=n.objectStore(he);await r.put(t,ve(e)),await n.done}catch(e){if(e instanceof d)G.warn(e.message);else{const t=ae.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});G.warn(t.message)}}}function ve(e){return`${e.name}!${e.options.appId}`}
279
+ */const fe="firebase-heartbeat-store";let ge=null;function me(){return ge||(ge=V("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(fe)}catch(e){console.warn(e)}}}).catch((e=>{throw ae.create("idb-open",{originalErrorMessage:e.message})}))),ge}async function be(e,t){try{const n=(await me()).transaction(fe,"readwrite"),r=n.objectStore(fe);await r.put(t,ve(e)),await n.done}catch(e){if(e instanceof h)G.warn(e.message);else{const t=ae.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});G.warn(t.message)}}}function ve(e){return`${e.name}!${e.options.appId}`}
280
280
  /**
281
281
  * @license
282
282
  * Copyright 2021 Google LLC
@@ -292,7 +292,7 @@ class oe{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e)
292
292
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
293
293
  * See the License for the specific language governing permissions and
294
294
  * limitations under the License.
295
- */class _e{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new ye(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=we();if((null!=(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||(this._heartbeatsCache=await this._heartbeatsCachePromise,null!=(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))&&this._heartbeatsCache.lastSentHeartbeatDate!==r&&!this._heartbeatsCache.heartbeats.some((e=>e.date===r)))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var e;if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=we(),{heartbeatsToSend:n,unsentEntries:i}=function(e,t=1024){const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),Ee(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Ee(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),a=r(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),a}}function we(){return(new Date).toISOString().substring(0,10)}class ye{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!u()&&p().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await me()).transaction(he),n=await t.objectStore(he).get(ve(e));return await t.done,n}catch(e){if(e instanceof d)G.warn(e.message);else{const t=ae.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});G.warn(t.message)}}}(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return be(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return be(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function Ee(e){return r(JSON.stringify({version:2,heartbeats:e})).length}
295
+ */class _e{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new ye(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=we();if((null!=(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||(this._heartbeatsCache=await this._heartbeatsCachePromise,null!=(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))&&this._heartbeatsCache.lastSentHeartbeatDate!==r&&!this._heartbeatsCache.heartbeats.some((e=>e.date===r)))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var e;if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=we(),{heartbeatsToSend:n,unsentEntries:i}=function(e,t=1024){const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),Ee(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Ee(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),a=r(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),a}}function we(){return(new Date).toISOString().substring(0,10)}class ye{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!u()&&p().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await me()).transaction(fe),n=await t.objectStore(fe).get(ve(e));return await t.done,n}catch(e){if(e instanceof h)G.warn(e.message);else{const t=ae.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});G.warn(t.message)}}}(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return be(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return be(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function Ee(e){return r(JSON.stringify({version:2,heartbeats:e})).length}
296
296
  /**
297
297
  * @license
298
298
  * Copyright 2019 Google LLC
@@ -308,7 +308,7 @@ class oe{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e)
308
308
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
309
309
  * See the License for the specific language governing permissions and
310
310
  * limitations under the License.
311
- */var Ie;Ie="",ne(new v("platform-logger",(e=>new W(e)),"PRIVATE")),ne(new v("heartbeat",(e=>new _e(e)),"PRIVATE")),pe(K,J,Ie),pe(K,J,"esm2017"),pe("fire-js","");var Se=Object.freeze({__proto__:null,SDK_VERSION:ce,_DEFAULT_ENTRY_NAME:Y,_addComponent:te,_addOrOverwriteComponent:function(e,t){e.container.addOrOverwriteComponent(t)},_apps:Z,_clearComponents:function(){ee.clear()},_components:ee,_getProvider:re,_isFirebaseApp:ie,_isFirebaseServerApp:function(e){return void 0!==e.settings},_registerComponent:ne,_removeServiceInstance:function(e,t,n="[DEFAULT]"){re(e,t).clearInstance(n)},_serverApps:Q,deleteApp:ue,getApp:function(e="[DEFAULT]"){const t=Z.get(e);if(!t&&e===Y&&c())return le();if(!t)throw ae.create("no-app",{appName:e});return t},getApps:function(){return Array.from(Z.values())},initializeApp:le,initializeServerApp:function(e,t){if("object"==typeof self&&self.self===self)throw ae.create("invalid-server-app-environment");let n;void 0===t.automaticDataCollectionEnabled&&(t.automaticDataCollectionEnabled=!1),n=ie(e)?e.options:e;const r=Object.assign(Object.assign({},t),n);if(void 0!==r.releaseOnDeref&&delete r.releaseOnDeref,void 0!==t.releaseOnDeref&&"undefined"==typeof FinalizationRegistry)throw ae.create("finalization-registry-not-supported",{});const i=""+(a=JSON.stringify(r),[...a].reduce(((e,t)=>Math.imul(31,e)+t.charCodeAt(0)|0),0));var a;const o=Q.get(i);if(o)return o.incRefCount(t.releaseOnDeref),o;const s=new y(i);for(const e of ee.values())s.addComponent(e);const c=new se(n,t,i,s);return Q.set(i,c),c},onLog:de,registerVersion:pe,setLogLevel:fe,FirebaseError:d});
311
+ */var Ie;Ie="",ne(new v("platform-logger",(e=>new W(e)),"PRIVATE")),ne(new v("heartbeat",(e=>new _e(e)),"PRIVATE")),pe(K,J,Ie),pe(K,J,"esm2017"),pe("fire-js","");var Se=Object.freeze({__proto__:null,SDK_VERSION:ce,_DEFAULT_ENTRY_NAME:Y,_addComponent:te,_addOrOverwriteComponent:function(e,t){e.container.addOrOverwriteComponent(t)},_apps:Z,_clearComponents:function(){ee.clear()},_components:ee,_getProvider:re,_isFirebaseApp:ie,_isFirebaseServerApp:function(e){return void 0!==e.settings},_registerComponent:ne,_removeServiceInstance:function(e,t,n="[DEFAULT]"){re(e,t).clearInstance(n)},_serverApps:Q,deleteApp:ue,getApp:function(e="[DEFAULT]"){const t=Z.get(e);if(!t&&e===Y&&c())return le();if(!t)throw ae.create("no-app",{appName:e});return t},getApps:function(){return Array.from(Z.values())},initializeApp:le,initializeServerApp:function(e,t){if("object"==typeof self&&self.self===self)throw ae.create("invalid-server-app-environment");let n;void 0===t.automaticDataCollectionEnabled&&(t.automaticDataCollectionEnabled=!1),n=ie(e)?e.options:e;const r=Object.assign(Object.assign({},t),n);if(void 0!==r.releaseOnDeref&&delete r.releaseOnDeref,void 0!==t.releaseOnDeref&&"undefined"==typeof FinalizationRegistry)throw ae.create("finalization-registry-not-supported",{});const i=""+(a=JSON.stringify(r),[...a].reduce(((e,t)=>Math.imul(31,e)+t.charCodeAt(0)|0),0));var a;const o=Q.get(i);if(o)return o.incRefCount(t.releaseOnDeref),o;const s=new y(i);for(const e of ee.values())s.addComponent(e);const c=new se(n,t,i,s);return Q.set(i,c),c},onLog:he,registerVersion:pe,setLogLevel:de,FirebaseError:h});
312
312
  /**
313
313
  * @license
314
314
  * Copyright 2019 Google LLC
@@ -340,7 +340,7 @@ class oe{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e)
340
340
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
341
341
  * See the License for the specific language governing permissions and
342
342
  * limitations under the License.
343
- */const Te=new f("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."});
343
+ */const Te=new d("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."});
344
344
  /**
345
345
  * @license
346
346
  * Copyright 2019 Google LLC
@@ -357,7 +357,7 @@ class oe{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e)
357
357
  * See the License for the specific language governing permissions and
358
358
  * limitations under the License.
359
359
  */
360
- function Ae(e){const t={},n={__esModule:!0,initializeApp:function(r,i={}){const a=le(r,i);if(g(t,a.name))return t[a.name];const o=new e(a,n);return t[a.name]=o,o},app:r,registerVersion:pe,setLogLevel:fe,onLog:de,apps:null,SDK_VERSION:ce,INTERNAL:{registerComponent:function(t){const a=t.name,o=a.replace("-compat","");if(ne(t)&&"PUBLIC"===t.type){const s=(e=r())=>{if("function"!=typeof e[o])throw Te.create("invalid-app-argument",{appName:a});return e[o]()};void 0!==t.serviceProps&&i(s,t.serviceProps),n[o]=s,e.prototype[o]=function(...e){return this._getService.bind(this,a).apply(this,t.multipleInstances?e:[])}}return"PUBLIC"===t.type?n[o]:null},removeApp:function(e){delete t[e]},useAsService:function(e,t){if("serverAuth"===t)return null;return t},modularAPIs:Se}};function r(e){if(!g(t,e=e||Y))throw Te.create("no-app",{appName:e});return t[e]}return n.default=n,Object.defineProperty(n,"apps",{get:function(){return Object.keys(t).map((e=>t[e]))}}),r.App=e,n}
360
+ function Ae(e){const t={},n={__esModule:!0,initializeApp:function(r,i={}){const a=le(r,i);if(g(t,a.name))return t[a.name];const o=new e(a,n);return t[a.name]=o,o},app:r,registerVersion:pe,setLogLevel:de,onLog:he,apps:null,SDK_VERSION:ce,INTERNAL:{registerComponent:function(t){const a=t.name,o=a.replace("-compat","");if(ne(t)&&"PUBLIC"===t.type){const s=(e=r())=>{if("function"!=typeof e[o])throw Te.create("invalid-app-argument",{appName:a});return e[o]()};void 0!==t.serviceProps&&i(s,t.serviceProps),n[o]=s,e.prototype[o]=function(...e){return this._getService.bind(this,a).apply(this,t.multipleInstances?e:[])}}return"PUBLIC"===t.type?n[o]:null},removeApp:function(e){delete t[e]},useAsService:function(e,t){if("serverAuth"===t)return null;return t},modularAPIs:Se}};function r(e){if(!g(t,e=e||Y))throw Te.create("no-app",{appName:e});return t[e]}return n.default=n,Object.defineProperty(n,"apps",{get:function(){return Object.keys(t).map((e=>t[e]))}}),r.App=e,n}
361
361
  /**
362
362
  * @license
363
363
  * Copyright 2019 Google LLC
@@ -407,7 +407,7 @@ const De=function(){const e=Ae(Ce);e.SDK_VERSION=`${e.SDK_VERSION}_LITE`;const t
407
407
  * See the License for the specific language governing permissions and
408
408
  * limitations under the License.
409
409
  */
410
- function(e){pe("@firebase/app-compat","0.2.32-dataconnect-preview.f2ddc3d7b",e)}("lite");
410
+ function(e){pe("@firebase/app-compat","0.2.32-dataconnect-preview.42eb5e521",e)}("lite");
411
411
  /**
412
412
  * @license
413
413
  * Copyright 2020 Google LLC
@@ -424,7 +424,7 @@ function(e){pe("@firebase/app-compat","0.2.32-dataconnect-preview.f2ddc3d7b",e)}
424
424
  * See the License for the specific language governing permissions and
425
425
  * limitations under the License.
426
426
  */
427
- De.registerVersion("firebase","10.11.1-dataconnect-preview.f2ddc3d7b","app-compat");const Oe="@firebase/installations",Ne="0.6.6-dataconnect-preview.f2ddc3d7b",ke=1e4,Le=`w:${Ne}`,Me="FIS_v2",Re=36e5,Pe=new f("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function Be(e){return e instanceof d&&e.code.includes("request-failed")}
427
+ De.registerVersion("firebase","10.11.1-dataconnect-preview.42eb5e521","app-compat");const Oe="@firebase/installations",Ne="0.6.6-dataconnect-preview.42eb5e521",ke=1e4,Le=`w:${Ne}`,Me="FIS_v2",Re=36e5,Pe=new d("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function Be(e){return e instanceof h&&e.code.includes("request-failed")}
428
428
  /**
429
429
  * @license
430
430
  * Copyright 2019 Google LLC
@@ -652,7 +652,7 @@ async function pt(e,t=!1){const n=e;await async function(e){const{registrationPr
652
652
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
653
653
  * See the License for the specific language governing permissions and
654
654
  * limitations under the License.
655
- */(n);return(await ct(n,t)).token}function dt(e){return Pe.create("missing-app-config-values",{valueName:e})}
655
+ */(n);return(await ct(n,t)).token}function ht(e){return Pe.create("missing-app-config-values",{valueName:e})}
656
656
  /**
657
657
  * @license
658
658
  * Copyright 2020 Google LLC
@@ -668,7 +668,7 @@ async function pt(e,t=!1){const n=e;await async function(e){const{registrationPr
668
668
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
669
669
  * See the License for the specific language governing permissions and
670
670
  * limitations under the License.
671
- */const ft="installations",ht=e=>{const t=re(e.getProvider("app").getImmediate(),ft).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await rt(t);return r?r.catch(console.error):ct(t).catch(console.error),n.fid}(t),getToken:e=>pt(t,e)}};ne(new v(ft,(e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw dt("App Configuration");if(!e.name)throw dt("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw dt(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:re(t,"heartbeat"),_delete:()=>Promise.resolve()}}),"PUBLIC")),ne(new v("installations-internal",ht,"PRIVATE")),pe(Oe,Ne),pe(Oe,Ne,"esm2017");const gt="@firebase/performance",mt="0.6.6-dataconnect-preview.f2ddc3d7b",bt=mt,vt="FB-PERF-TRACE-MEASURE",_t="_wt_",wt="_fcp",yt="_fid",Et="@firebase/performance/config",It="@firebase/performance/configexpire",St="Performance",Ct=new f("performance",St,{"trace started":"Trace {$traceName} was started before.","trace stopped":"Trace {$traceName} is not running.","nonpositive trace startTime":"Trace {$traceName} startTime should be positive.","nonpositive trace duration":"Trace {$traceName} duration should be positive.","no window":"Window is not available.","no app id":"App id is not available.","no project id":"Project id is not available.","no api key":"Api key is not available.","invalid cc log":"Attempted to queue invalid cc event","FB not default":"Performance can only start when Firebase app instance is the default one.","RC response not ok":"RC response is not ok","invalid attribute name":"Attribute name {$attributeName} is invalid.","invalid attribute value":"Attribute value {$attributeValue} is invalid.","invalid custom metric name":"Custom metric name {$customMetricName} is invalid","invalid String merger input":"Input for String merger is invalid, contact support team to resolve.","already initialized":"initializePerformance() has already been called with different options. To avoid this error, call initializePerformance() with the same options as when it was originally called, or call getPerformance() to return the already initialized instance."}),Tt=new D(St);
671
+ */const dt="installations",ft=e=>{const t=re(e.getProvider("app").getImmediate(),dt).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await rt(t);return r?r.catch(console.error):ct(t).catch(console.error),n.fid}(t),getToken:e=>pt(t,e)}};ne(new v(dt,(e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw ht("App Configuration");if(!e.name)throw ht("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw ht(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:re(t,"heartbeat"),_delete:()=>Promise.resolve()}}),"PUBLIC")),ne(new v("installations-internal",ft,"PRIVATE")),pe(Oe,Ne),pe(Oe,Ne,"esm2017");const gt="@firebase/performance",mt="0.6.6-dataconnect-preview.42eb5e521",bt=mt,vt="FB-PERF-TRACE-MEASURE",_t="_wt_",wt="_fcp",yt="_fid",Et="@firebase/performance/config",It="@firebase/performance/configexpire",St="Performance",Ct=new d("performance",St,{"trace started":"Trace {$traceName} was started before.","trace stopped":"Trace {$traceName} is not running.","nonpositive trace startTime":"Trace {$traceName} startTime should be positive.","nonpositive trace duration":"Trace {$traceName} duration should be positive.","no window":"Window is not available.","no app id":"App id is not available.","no project id":"Project id is not available.","no api key":"Api key is not available.","invalid cc log":"Attempted to queue invalid cc event","FB not default":"Performance can only start when Firebase app instance is the default one.","RC response not ok":"RC response is not ok","invalid attribute name":"Attribute name {$attributeName} is invalid.","invalid attribute value":"Attribute value {$attributeValue} is invalid.","invalid custom metric name":"Custom metric name {$customMetricName} is invalid","invalid String merger input":"Input for String merger is invalid, contact support team to resolve.","already initialized":"initializePerformance() has already been called with different options. To avoid this error, call initializePerformance() with the same options as when it was originally called, or call getPerformance() to return the already initialized instance."}),Tt=new D(St);
672
672
  /**
673
673
  * @license
674
674
  * Copyright 2020 Google LLC
@@ -832,7 +832,7 @@ const Ht="0.0.1",zt={loggingEnabled:!0},xt="FIREBASE_INSTALLATIONS_AUTH";functio
832
832
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
833
833
  * See the License for the specific language governing permissions and
834
834
  * limitations under the License.
835
- */const dn=["_fp",wt,yt];
835
+ */const hn=["_fp",wt,yt];
836
836
  /**
837
837
  * @license
838
838
  * Copyright 2020 Google LLC
@@ -849,7 +849,7 @@ const Ht="0.0.1",zt={loggingEnabled:!0},xt="FIREBASE_INSTALLATIONS_AUTH";functio
849
849
  * See the License for the specific language governing permissions and
850
850
  * limitations under the License.
851
851
  */
852
- class fn{constructor(e,t,n=!1,r){this.performanceController=e,this.name=t,this.isAuto=n,this.state=1,this.customAttributes={},this.counters={},this.api=kt.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark=`FB-PERF-TRACE-START-${this.randomId}-${this.name}`,this.traceStopMark=`FB-PERF-TRACE-STOP-${this.randomId}-${this.name}`,this.traceMeasure=r||`FB-PERF-TRACE-MEASURE-${this.randomId}-${this.name}`,r&&this.calculateTraceMetrics())}start(){if(1!==this.state)throw Ct.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2}stop(){if(2!==this.state)throw Ct.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),cn(this)}record(e,t,n){if(e<=0)throw Ct.create("nonpositive trace startTime",{traceName:this.name});if(t<=0)throw Ct.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*t),this.startTimeUs=Math.floor(1e3*e),n&&n.attributes&&(this.customAttributes=Object.assign({},n.attributes)),n&&n.metrics)for(const e of Object.keys(n.metrics))isNaN(Number(n.metrics[e]))||(this.counters[e]=Math.floor(Number(n.metrics[e])));cn(this)}incrementMetric(e,t=1){void 0===this.counters[e]?this.putMetric(e,t):this.putMetric(e,this.counters[e]+t)}putMetric(e,t){if(!function(e,t){return!(0===e.length||e.length>100)&&(t&&t.startsWith(_t)&&dn.indexOf(e)>-1||!e.startsWith("_"))}(e,this.name))throw Ct.create("invalid custom metric name",{customMetricName:e});this.counters[e]=function(e){const t=Math.floor(e);return t<e&&Tt.info(`Metric value should be an Integer, setting the value as : ${t}.`),t}(null!=t?t:0)}getMetric(e){return this.counters[e]||0}putAttribute(e,t){const n=function(e){return!(0===e.length||e.length>40)&&(!Bt.some((t=>e.startsWith(t)))&&!!e.match(Ft))}(e),r=function(e){return 0!==e.length&&e.length<=100}(t);if(n&&r)this.customAttributes[e]=t;else{if(!n)throw Ct.create("invalid attribute name",{attributeName:e});if(!r)throw Ct.create("invalid attribute value",{attributeValue:t})}}getAttribute(e){return this.customAttributes[e]}removeAttribute(e){void 0!==this.customAttributes[e]&&delete this.customAttributes[e]}getAttributes(){return Object.assign({},this.customAttributes)}setStartTime(e){this.startTimeUs=e}setDuration(e){this.durationUs=e}calculateTraceMetrics(){const e=this.api.getEntriesByName(this.traceMeasure),t=e&&e[0];t&&(this.durationUs=Math.floor(1e3*t.duration),this.startTimeUs=Math.floor(1e3*(t.startTime+this.api.getTimeOrigin())))}static createOobTrace(e,t,n,r){const i=kt.getInstance().getUrl();if(!i)return;const a=new fn(e,_t+i,!0),o=Math.floor(1e3*kt.getInstance().getTimeOrigin());a.setStartTime(o),t&&t[0]&&(a.setDuration(Math.floor(1e3*t[0].duration)),a.putMetric("domInteractive",Math.floor(1e3*t[0].domInteractive)),a.putMetric("domContentLoadedEventEnd",Math.floor(1e3*t[0].domContentLoadedEventEnd)),a.putMetric("loadEventEnd",Math.floor(1e3*t[0].loadEventEnd)));if(n){const e=n.find((e=>"first-paint"===e.name));e&&e.startTime&&a.putMetric("_fp",Math.floor(1e3*e.startTime));const t=n.find((e=>"first-contentful-paint"===e.name));t&&t.startTime&&a.putMetric(wt,Math.floor(1e3*t.startTime)),r&&a.putMetric(yt,Math.floor(1e3*r))}cn(a)}static createUserTimingTrace(e,t){cn(new fn(e,t,!1,t))}}
852
+ class dn{constructor(e,t,n=!1,r){this.performanceController=e,this.name=t,this.isAuto=n,this.state=1,this.customAttributes={},this.counters={},this.api=kt.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark=`FB-PERF-TRACE-START-${this.randomId}-${this.name}`,this.traceStopMark=`FB-PERF-TRACE-STOP-${this.randomId}-${this.name}`,this.traceMeasure=r||`FB-PERF-TRACE-MEASURE-${this.randomId}-${this.name}`,r&&this.calculateTraceMetrics())}start(){if(1!==this.state)throw Ct.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2}stop(){if(2!==this.state)throw Ct.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),cn(this)}record(e,t,n){if(e<=0)throw Ct.create("nonpositive trace startTime",{traceName:this.name});if(t<=0)throw Ct.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*t),this.startTimeUs=Math.floor(1e3*e),n&&n.attributes&&(this.customAttributes=Object.assign({},n.attributes)),n&&n.metrics)for(const e of Object.keys(n.metrics))isNaN(Number(n.metrics[e]))||(this.counters[e]=Math.floor(Number(n.metrics[e])));cn(this)}incrementMetric(e,t=1){void 0===this.counters[e]?this.putMetric(e,t):this.putMetric(e,this.counters[e]+t)}putMetric(e,t){if(!function(e,t){return!(0===e.length||e.length>100)&&(t&&t.startsWith(_t)&&hn.indexOf(e)>-1||!e.startsWith("_"))}(e,this.name))throw Ct.create("invalid custom metric name",{customMetricName:e});this.counters[e]=function(e){const t=Math.floor(e);return t<e&&Tt.info(`Metric value should be an Integer, setting the value as : ${t}.`),t}(null!=t?t:0)}getMetric(e){return this.counters[e]||0}putAttribute(e,t){const n=function(e){return!(0===e.length||e.length>40)&&(!Bt.some((t=>e.startsWith(t)))&&!!e.match(Ft))}(e),r=function(e){return 0!==e.length&&e.length<=100}(t);if(n&&r)this.customAttributes[e]=t;else{if(!n)throw Ct.create("invalid attribute name",{attributeName:e});if(!r)throw Ct.create("invalid attribute value",{attributeValue:t})}}getAttribute(e){return this.customAttributes[e]}removeAttribute(e){void 0!==this.customAttributes[e]&&delete this.customAttributes[e]}getAttributes(){return Object.assign({},this.customAttributes)}setStartTime(e){this.startTimeUs=e}setDuration(e){this.durationUs=e}calculateTraceMetrics(){const e=this.api.getEntriesByName(this.traceMeasure),t=e&&e[0];t&&(this.durationUs=Math.floor(1e3*t.duration),this.startTimeUs=Math.floor(1e3*(t.startTime+this.api.getTimeOrigin())))}static createOobTrace(e,t,n,r){const i=kt.getInstance().getUrl();if(!i)return;const a=new dn(e,_t+i,!0),o=Math.floor(1e3*kt.getInstance().getTimeOrigin());a.setStartTime(o),t&&t[0]&&(a.setDuration(Math.floor(1e3*t[0].duration)),a.putMetric("domInteractive",Math.floor(1e3*t[0].domInteractive)),a.putMetric("domContentLoadedEventEnd",Math.floor(1e3*t[0].domContentLoadedEventEnd)),a.putMetric("loadEventEnd",Math.floor(1e3*t[0].loadEventEnd)));if(n){const e=n.find((e=>"first-paint"===e.name));e&&e.startTime&&a.putMetric("_fp",Math.floor(1e3*e.startTime));const t=n.find((e=>"first-contentful-paint"===e.name));t&&t.startTime&&a.putMetric(wt,Math.floor(1e3*t.startTime)),r&&a.putMetric(yt,Math.floor(1e3*r))}cn(a)}static createUserTimingTrace(e,t){cn(new dn(e,t,!1,t))}}
853
853
  /**
854
854
  * @license
855
855
  * Copyright 2020 Google LLC
@@ -865,7 +865,7 @@ class fn{constructor(e,t,n=!1,r){this.performanceController=e,this.name=t,this.i
865
865
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
866
866
  * See the License for the specific language governing permissions and
867
867
  * limitations under the License.
868
- */function hn(e,t){const n=t;if(!n||void 0===n.responseStart)return;const r=kt.getInstance().getTimeOrigin(),i=Math.floor(1e3*(n.startTime+r)),a=n.responseStart?Math.floor(1e3*(n.responseStart-n.startTime)):void 0,o=Math.floor(1e3*(n.responseEnd-n.startTime));!function(e){const t=Rt.getInstance();if(!t.instrumentationEnabled)return;const n=e.url,r=t.logEndPointUrl.split("?")[0],i=t.flTransportEndpointUrl.split("?")[0];n!==r&&n!==i&&t.loggingEnabled&&t.logNetworkAfterSampling&&setTimeout((()=>sn(e,0)),0)}({performanceController:e,url:n.name&&n.name.split("?")[0],responsePayloadBytes:n.transferSize,startTimeUs:i,timeToResponseInitiatedUs:a,timeToResponseCompletedUs:o})}
868
+ */function fn(e,t){const n=t;if(!n||void 0===n.responseStart)return;const r=kt.getInstance().getTimeOrigin(),i=Math.floor(1e3*(n.startTime+r)),a=n.responseStart?Math.floor(1e3*(n.responseStart-n.startTime)):void 0,o=Math.floor(1e3*(n.responseEnd-n.startTime));!function(e){const t=Rt.getInstance();if(!t.instrumentationEnabled)return;const n=e.url,r=t.logEndPointUrl.split("?")[0],i=t.flTransportEndpointUrl.split("?")[0];n!==r&&n!==i&&t.loggingEnabled&&t.logNetworkAfterSampling&&setTimeout((()=>sn(e,0)),0)}({performanceController:e,url:n.name&&n.name.split("?")[0],responsePayloadBytes:n.transferSize,startTimeUs:i,timeToResponseInitiatedUs:a,timeToResponseCompletedUs:o})}
869
869
  /**
870
870
  * @license
871
871
  * Copyright 2020 Google LLC
@@ -881,7 +881,7 @@ class fn{constructor(e,t,n=!1,r){this.performanceController=e,this.name=t,this.i
881
881
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
882
882
  * See the License for the specific language governing permissions and
883
883
  * limitations under the License.
884
- */function gn(e){Lt()&&(setTimeout((()=>function(e){const t=kt.getInstance(),n=t.getEntriesByType("navigation"),r=t.getEntriesByType("paint");if(t.onFirstInputDelay){let i=setTimeout((()=>{fn.createOobTrace(e,n,r),i=void 0}),5e3);t.onFirstInputDelay((t=>{i&&(clearTimeout(i),fn.createOobTrace(e,n,r,t))}))}else fn.createOobTrace(e,n,r)}(e)),0),setTimeout((()=>function(e){const t=kt.getInstance(),n=t.getEntriesByType("resource");for(const t of n)hn(e,t);t.setupObserver("resource",(t=>hn(e,t)))}(e)),0),setTimeout((()=>function(e){const t=kt.getInstance(),n=t.getEntriesByType("measure");for(const t of n)mn(e,t);t.setupObserver("measure",(t=>mn(e,t)))}(e)),0))}function mn(e,t){const n=t.name;n.substring(0,vt.length)!==vt&&fn.createUserTimingTrace(e,n)}
884
+ */function gn(e){Lt()&&(setTimeout((()=>function(e){const t=kt.getInstance(),n=t.getEntriesByType("navigation"),r=t.getEntriesByType("paint");if(t.onFirstInputDelay){let i=setTimeout((()=>{dn.createOobTrace(e,n,r),i=void 0}),5e3);t.onFirstInputDelay((t=>{i&&(clearTimeout(i),dn.createOobTrace(e,n,r,t))}))}else dn.createOobTrace(e,n,r)}(e)),0),setTimeout((()=>function(e){const t=kt.getInstance(),n=t.getEntriesByType("resource");for(const t of n)fn(e,t);t.setupObserver("resource",(t=>fn(e,t)))}(e)),0),setTimeout((()=>function(e){const t=kt.getInstance(),n=t.getEntriesByType("measure");for(const t of n)mn(e,t);t.setupObserver("measure",(t=>mn(e,t)))}(e)),0))}function mn(e,t){const n=t.name;n.substring(0,vt.length)!==vt&&dn.createUserTimingTrace(e,n)}
885
885
  /**
886
886
  * @license
887
887
  * Copyright 2020 Google LLC
@@ -930,7 +930,7 @@ class fn{constructor(e,t,n=!1,r){this.performanceController=e,this.name=t,this.i
930
930
  * See the License for the specific language governing permissions and
931
931
  * limitations under the License.
932
932
  */
933
- class vn{constructor(e,t){this.app=e,this._delegate=t}get instrumentationEnabled(){return this._delegate.instrumentationEnabled}set instrumentationEnabled(e){this._delegate.instrumentationEnabled=e}get dataCollectionEnabled(){return this._delegate.dataCollectionEnabled}set dataCollectionEnabled(e){this._delegate.dataCollectionEnabled=e}trace(e){return function(e,t){var n;return e=(n=e)&&n._delegate?n._delegate:n,new fn(e,t)}(this._delegate,e)}}function _n(e){const t=e.getProvider("app-compat").getImmediate(),n=e.getProvider("performance").getImmediate();return new vn(t,n)}
933
+ class vn{constructor(e,t){this.app=e,this._delegate=t}get instrumentationEnabled(){return this._delegate.instrumentationEnabled}set instrumentationEnabled(e){this._delegate.instrumentationEnabled=e}get dataCollectionEnabled(){return this._delegate.dataCollectionEnabled}set dataCollectionEnabled(e){this._delegate.dataCollectionEnabled=e}trace(e){return function(e,t){var n;return e=(n=e)&&n._delegate?n._delegate:n,new dn(e,t)}(this._delegate,e)}}function _n(e){const t=e.getProvider("app-compat").getImmediate(),n=e.getProvider("performance").getImmediate();return new vn(t,n)}
934
934
  /**
935
935
  * @license
936
936
  * Copyright 2020 Google LLC
@@ -947,7 +947,7 @@ class vn{constructor(e,t){this.app=e,this._delegate=t}get instrumentationEnabled
947
947
  * See the License for the specific language governing permissions and
948
948
  * limitations under the License.
949
949
  */
950
- var wn;(wn=De).INTERNAL.registerComponent(new v("performance-compat",_n,"PUBLIC")),wn.registerVersion("@firebase/performance-compat","0.2.6-dataconnect-preview.f2ddc3d7b");
950
+ var wn;(wn=De).INTERNAL.registerComponent(new v("performance-compat",_n,"PUBLIC")),wn.registerVersion("@firebase/performance-compat","0.2.6-dataconnect-preview.42eb5e521");
951
951
  /**
952
952
  * @license
953
953
  * Copyright 2019 Google LLC
@@ -964,5 +964,5 @@ var wn;(wn=De).INTERNAL.registerComponent(new v("performance-compat",_n,"PUBLIC"
964
964
  * See the License for the specific language governing permissions and
965
965
  * limitations under the License.
966
966
  */
967
- return De.registerVersion("firebase","10.11.1-dataconnect-preview.f2ddc3d7b","compat-lite"),De}));
967
+ return De.registerVersion("firebase","10.11.1-dataconnect-preview.42eb5e521","compat-lite"),De}));
968
968
  //# sourceMappingURL=firebase-performance-standalone-compat.es2017.js.map