@feedmepos/mf-settings 0.0.51 → 0.0.52-prod

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 (27) hide show
  1. package/dist/App-2c0e7dc6.js +22089 -0
  2. package/dist/Business-8f1f703c.js +11975 -0
  3. package/dist/{CreateBusiness-2a4f54d4.js → CreateBusiness-5da625ee.js} +11 -11
  4. package/dist/FoodCourt-57b90140.js +71535 -0
  5. package/dist/{actionButton-cc6bcf01.js → FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js} +25 -25
  6. package/dist/{ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-e9712a4d.js} +63 -63
  7. package/dist/{Tagging-5ba0d4ec.js → Tagging-0487e189.js} +6402 -6404
  8. package/dist/TemplateBuilder-3e34e9e8.js +27 -0
  9. package/dist/_commonjs-dynamic-modules-bed80856.js +6 -0
  10. package/dist/{app-6a6102be.js → app-e351b342.js} +358 -40
  11. package/dist/app.js +2 -2
  12. package/dist/apps/mf-settings/src/api/foodCourt.d.ts +1 -1
  13. package/dist/apps/mf-settings/src/api/restaurant.d.ts +2 -2
  14. package/dist/apps/mf-settings/src/app.d.ts +1 -0
  15. package/dist/apps/mf-settings/src/components/business/RestaurantForm.vue.d.ts +1 -1
  16. package/dist/apps/mf-settings/src/components/foodcourt/foodCourt.d.ts +1 -1
  17. package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
  18. package/dist/{business-9a4e5bd7.js → business-4073e305.js} +1 -1
  19. package/dist/{loading-84215dce.js → index-95f69047.js} +467 -468
  20. package/dist/{index.esm2017-c60b1ce5.js → map-54b71412.js} +561 -444
  21. package/dist/{createForm-681e977a.js → object-8ac0c0d8.js} +18 -19
  22. package/package.json +3 -3
  23. package/dist/App-b3a895b0.js +0 -4352
  24. package/dist/Business-189e288f.js +0 -3893
  25. package/dist/FoodCourt-561cd7e3.js +0 -47798
  26. package/dist/TemplateBuilder-54a34178.js +0 -27
  27. package/dist/index-1eb3cc0a.js +0 -17754
@@ -1,24 +1,116 @@
1
1
  import { ref as ot } from "vue";
2
- const oe = ot(null), Zr = () => oe.value;
3
- function Qr(t) {
4
- oe.value || (oe.value = t);
2
+ function Zr(t, e) {
3
+ var n = {};
4
+ for (var r in t)
5
+ Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
6
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
7
+ for (var s = 0, r = Object.getOwnPropertySymbols(t); s < r.length; s++)
8
+ e.indexOf(r[s]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[s]) && (n[r[s]] = t[r[s]]);
9
+ return n;
5
10
  }
6
- const es = Object.freeze({
7
- jb: {
8
- lat: 1.492659,
9
- lng: 103.7413591
11
+ function Qr(t, e, n, r) {
12
+ function s(o) {
13
+ return o instanceof n ? o : new n(function(i) {
14
+ i(o);
15
+ });
10
16
  }
11
- });
12
- function ts(t) {
13
- return [t.lng, t.lat];
17
+ return new (n || (n = Promise))(function(o, i) {
18
+ function c(u) {
19
+ try {
20
+ a(r.next(u));
21
+ } catch (p) {
22
+ i(p);
23
+ }
24
+ }
25
+ function l(u) {
26
+ try {
27
+ a(r.throw(u));
28
+ } catch (p) {
29
+ i(p);
30
+ }
31
+ }
32
+ function a(u) {
33
+ u.done ? o(u.value) : s(u.value).then(c, l);
34
+ }
35
+ a((r = r.apply(t, e || [])).next());
36
+ });
14
37
  }
15
- function ns(t) {
16
- if (t.length !== 2)
17
- throw Error("Invalid coordinate array");
18
- return {
19
- lat: t[1],
20
- lng: t[0]
21
- };
38
+ function es(t, e) {
39
+ var n = { label: 0, sent: function() {
40
+ if (o[0] & 1)
41
+ throw o[1];
42
+ return o[1];
43
+ }, trys: [], ops: [] }, r, s, o, i = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
44
+ return i.next = c(0), i.throw = c(1), i.return = c(2), typeof Symbol == "function" && (i[Symbol.iterator] = function() {
45
+ return this;
46
+ }), i;
47
+ function c(a) {
48
+ return function(u) {
49
+ return l([a, u]);
50
+ };
51
+ }
52
+ function l(a) {
53
+ if (r)
54
+ throw new TypeError("Generator is already executing.");
55
+ for (; i && (i = 0, a[0] && (n = 0)), n; )
56
+ try {
57
+ if (r = 1, s && (o = a[0] & 2 ? s.return : a[0] ? s.throw || ((o = s.return) && o.call(s), 0) : s.next) && !(o = o.call(s, a[1])).done)
58
+ return o;
59
+ switch (s = 0, o && (a = [a[0] & 2, o.value]), a[0]) {
60
+ case 0:
61
+ case 1:
62
+ o = a;
63
+ break;
64
+ case 4:
65
+ return n.label++, { value: a[1], done: !1 };
66
+ case 5:
67
+ n.label++, s = a[1], a = [0];
68
+ continue;
69
+ case 7:
70
+ a = n.ops.pop(), n.trys.pop();
71
+ continue;
72
+ default:
73
+ if (o = n.trys, !(o = o.length > 0 && o[o.length - 1]) && (a[0] === 6 || a[0] === 2)) {
74
+ n = 0;
75
+ continue;
76
+ }
77
+ if (a[0] === 3 && (!o || a[1] > o[0] && a[1] < o[3])) {
78
+ n.label = a[1];
79
+ break;
80
+ }
81
+ if (a[0] === 6 && n.label < o[1]) {
82
+ n.label = o[1], o = a;
83
+ break;
84
+ }
85
+ if (o && n.label < o[2]) {
86
+ n.label = o[2], n.ops.push(a);
87
+ break;
88
+ }
89
+ o[2] && n.ops.pop(), n.trys.pop();
90
+ continue;
91
+ }
92
+ a = e.call(t, n);
93
+ } catch (u) {
94
+ a = [6, u], s = 0;
95
+ } finally {
96
+ r = o = 0;
97
+ }
98
+ if (a[0] & 5)
99
+ throw a[1];
100
+ return { value: a[0] ? a[1] : void 0, done: !0 };
101
+ }
102
+ }
103
+ function ts(t) {
104
+ var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
105
+ if (n)
106
+ return n.call(t);
107
+ if (t && typeof t.length == "number")
108
+ return {
109
+ next: function() {
110
+ return t && r >= t.length && (t = void 0), { value: t && t[r++], done: !t };
111
+ }
112
+ };
113
+ throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
22
114
  }
23
115
  /**
24
116
  * @license
@@ -71,8 +163,8 @@ const Be = function(t) {
71
163
  const o = t[n++];
72
164
  e[r++] = String.fromCharCode((s & 31) << 6 | o & 63);
73
165
  } else if (s > 239 && s < 365) {
74
- const o = t[n++], i = t[n++], a = t[n++], c = ((s & 7) << 18 | (o & 63) << 12 | (i & 63) << 6 | a & 63) - 65536;
75
- e[r++] = String.fromCharCode(55296 + (c >> 10)), e[r++] = String.fromCharCode(56320 + (c & 1023));
166
+ const o = t[n++], i = t[n++], c = t[n++], l = ((s & 7) << 18 | (o & 63) << 12 | (i & 63) << 6 | c & 63) - 65536;
167
+ e[r++] = String.fromCharCode(55296 + (l >> 10)), e[r++] = String.fromCharCode(56320 + (l & 1023));
76
168
  } else {
77
169
  const o = t[n++], i = t[n++];
78
170
  e[r++] = String.fromCharCode((s & 15) << 12 | (o & 63) << 6 | i & 63);
@@ -138,9 +230,9 @@ const Be = function(t) {
138
230
  this.init_();
139
231
  const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
140
232
  for (let s = 0; s < t.length; s += 3) {
141
- const o = t[s], i = s + 1 < t.length, a = i ? t[s + 1] : 0, c = s + 2 < t.length, l = c ? t[s + 2] : 0, g = o >> 2, f = (o & 3) << 4 | a >> 4;
142
- let p = (a & 15) << 2 | l >> 6, m = l & 63;
143
- c || (m = 64, i || (p = 64)), r.push(n[g], n[f], n[p], n[m]);
233
+ const o = t[s], i = s + 1 < t.length, c = i ? t[s + 1] : 0, l = s + 2 < t.length, a = l ? t[s + 2] : 0, u = o >> 2, p = (o & 3) << 4 | c >> 4;
234
+ let g = (c & 15) << 2 | a >> 6, m = a & 63;
235
+ l || (m = 64, i || (g = 64)), r.push(n[u], n[p], n[g], n[m]);
144
236
  }
145
237
  return r.join("");
146
238
  },
@@ -185,19 +277,19 @@ const Be = function(t) {
185
277
  this.init_();
186
278
  const n = e ? this.charToByteMapWebSafe_ : this.charToByteMap_, r = [];
187
279
  for (let s = 0; s < t.length; ) {
188
- const o = n[t.charAt(s++)], a = s < t.length ? n[t.charAt(s)] : 0;
280
+ const o = n[t.charAt(s++)], c = s < t.length ? n[t.charAt(s)] : 0;
189
281
  ++s;
190
- const l = s < t.length ? n[t.charAt(s)] : 64;
282
+ const a = s < t.length ? n[t.charAt(s)] : 64;
191
283
  ++s;
192
- const f = s < t.length ? n[t.charAt(s)] : 64;
193
- if (++s, o == null || a == null || l == null || f == null)
284
+ const p = s < t.length ? n[t.charAt(s)] : 64;
285
+ if (++s, o == null || c == null || a == null || p == null)
194
286
  throw new at();
195
- const p = o << 2 | a >> 4;
196
- if (r.push(p), l !== 64) {
197
- const m = a << 4 & 240 | l >> 2;
198
- if (r.push(m), f !== 64) {
199
- const w = l << 6 & 192 | f;
200
- r.push(w);
287
+ const g = o << 2 | c >> 4;
288
+ if (r.push(g), a !== 64) {
289
+ const m = c << 4 & 240 | a >> 2;
290
+ if (r.push(m), p !== 64) {
291
+ const E = a << 6 & 192 | p;
292
+ r.push(E);
201
293
  }
202
294
  }
203
295
  }
@@ -311,10 +403,10 @@ const ht = () => ut().__FIREBASE_DEFAULTS__, dt = () => {
311
403
  throw new Error(`Invalid host ${e} with no separate hostname and port!`);
312
404
  const r = parseInt(e.substring(n + 1), 10);
313
405
  return e[0] === "[" ? [e.substring(1, n - 1), r] : [e.substring(0, n), r];
314
- }, Ue = () => {
406
+ }, Pe = () => {
315
407
  var t;
316
408
  return (t = K()) === null || t === void 0 ? void 0 : t.config;
317
- }, rs = (t) => {
409
+ }, ns = (t) => {
318
410
  var e;
319
411
  return (e = K()) === null || e === void 0 ? void 0 : e[`_${t}`];
320
412
  };
@@ -370,7 +462,7 @@ class mt {
370
462
  * See the License for the specific language governing permissions and
371
463
  * limitations under the License.
372
464
  */
373
- function _t(t, e) {
465
+ function bt(t, e) {
374
466
  if (t.uid)
375
467
  throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
376
468
  const n = {
@@ -392,11 +484,11 @@ function _t(t, e) {
392
484
  sign_in_provider: "custom",
393
485
  identities: {}
394
486
  }
395
- }, t), a = "";
487
+ }, t), c = "";
396
488
  return [
397
489
  q(JSON.stringify(n)),
398
490
  q(JSON.stringify(i)),
399
- a
491
+ c
400
492
  ].join(".");
401
493
  }
402
494
  /**
@@ -415,15 +507,15 @@ function _t(t, e) {
415
507
  * See the License for the specific language governing permissions and
416
508
  * limitations under the License.
417
509
  */
418
- function Pe() {
510
+ function Ue() {
419
511
  return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
420
512
  }
421
- function ss() {
513
+ function rs() {
422
514
  return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
423
515
  // just to deal with this case would probably be a bad idea.
424
- !!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Pe());
516
+ !!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ue());
425
517
  }
426
- function bt() {
518
+ function _t() {
427
519
  var t;
428
520
  const e = (t = K()) === null || t === void 0 ? void 0 : t.forceEnvironment;
429
521
  if (e === "node")
@@ -436,15 +528,15 @@ function bt() {
436
528
  return !1;
437
529
  }
438
530
  }
439
- function os() {
531
+ function ss() {
440
532
  const t = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
441
533
  return typeof t == "object" && t.id !== void 0;
442
534
  }
443
- function is() {
535
+ function os() {
444
536
  return typeof navigator == "object" && navigator.product === "ReactNative";
445
537
  }
446
- function as() {
447
- const t = Pe();
538
+ function is() {
539
+ const t = Ue();
448
540
  return t.indexOf("MSIE ") >= 0 || t.indexOf("Trident/") >= 0;
449
541
  }
450
542
  function yt() {
@@ -454,7 +546,7 @@ function yt() {
454
546
  return !1;
455
547
  }
456
548
  }
457
- function Et() {
549
+ function wt() {
458
550
  return new Promise((t, e) => {
459
551
  try {
460
552
  let n = !0;
@@ -488,10 +580,10 @@ function Et() {
488
580
  * See the License for the specific language governing permissions and
489
581
  * limitations under the License.
490
582
  */
491
- const wt = "FirebaseError";
583
+ const Et = "FirebaseError";
492
584
  class x extends Error {
493
585
  constructor(e, n, r) {
494
- super(n), this.code = e, this.customData = r, this.name = wt, Object.setPrototypeOf(this, x.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Le.prototype.create);
586
+ super(n), this.code = e, this.customData = r, this.name = Et, Object.setPrototypeOf(this, x.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Le.prototype.create);
495
587
  }
496
588
  }
497
589
  class Le {
@@ -499,24 +591,24 @@ class Le {
499
591
  this.service = e, this.serviceName = n, this.errors = r;
500
592
  }
501
593
  create(e, ...n) {
502
- const r = n[0] || {}, s = `${this.service}/${e}`, o = this.errors[e], i = o ? It(o, r) : "Error", a = `${this.serviceName}: ${i} (${s}).`;
503
- return new x(s, a, r);
594
+ const r = n[0] || {}, s = `${this.service}/${e}`, o = this.errors[e], i = o ? It(o, r) : "Error", c = `${this.serviceName}: ${i} (${s}).`;
595
+ return new x(s, c, r);
504
596
  }
505
597
  }
506
598
  function It(t, e) {
507
- return t.replace(Rt, (n, r) => {
599
+ return t.replace(vt, (n, r) => {
508
600
  const s = e[r];
509
601
  return s != null ? String(s) : `<${r}?>`;
510
602
  });
511
603
  }
512
- const Rt = /\{\$([^}]+)}/g;
513
- function cs(t) {
604
+ const vt = /\{\$([^}]+)}/g;
605
+ function as(t) {
514
606
  for (const e in t)
515
607
  if (Object.prototype.hasOwnProperty.call(t, e))
516
608
  return !1;
517
609
  return !0;
518
610
  }
519
- function ie(t, e) {
611
+ function oe(t, e) {
520
612
  if (t === e)
521
613
  return !0;
522
614
  const n = Object.keys(t), r = Object.keys(e);
@@ -524,8 +616,8 @@ function ie(t, e) {
524
616
  if (!r.includes(s))
525
617
  return !1;
526
618
  const o = t[s], i = e[s];
527
- if (Ee(o) && Ee(i)) {
528
- if (!ie(o, i))
619
+ if (we(o) && we(i)) {
620
+ if (!oe(o, i))
529
621
  return !1;
530
622
  } else if (o !== i)
531
623
  return !1;
@@ -535,7 +627,7 @@ function ie(t, e) {
535
627
  return !1;
536
628
  return !0;
537
629
  }
538
- function Ee(t) {
630
+ function we(t) {
539
631
  return t !== null && typeof t == "object";
540
632
  }
541
633
  /**
@@ -554,7 +646,7 @@ function Ee(t) {
554
646
  * See the License for the specific language governing permissions and
555
647
  * limitations under the License.
556
648
  */
557
- function ls(t) {
649
+ function cs(t) {
558
650
  const e = [];
559
651
  for (const [n, r] of Object.entries(t))
560
652
  Array.isArray(r) ? r.forEach((s) => {
@@ -562,7 +654,7 @@ function ls(t) {
562
654
  }) : e.push(encodeURIComponent(n) + "=" + encodeURIComponent(r));
563
655
  return e.length ? "&" + e.join("&") : "";
564
656
  }
565
- function us(t, e) {
657
+ function ls(t, e) {
566
658
  const n = new Tt(t, e);
567
659
  return n.subscribe.bind(n);
568
660
  }
@@ -604,7 +696,7 @@ class Tt {
604
696
  let s;
605
697
  if (e === void 0 && n === void 0 && r === void 0)
606
698
  throw new Error("Missing Observer.");
607
- At(e, [
699
+ Rt(e, [
608
700
  "next",
609
701
  "error",
610
702
  "complete"
@@ -650,7 +742,7 @@ class Tt {
650
742
  }));
651
743
  }
652
744
  }
653
- function At(t, e) {
745
+ function Rt(t, e) {
654
746
  if (typeof t != "object" || t === null)
655
747
  return !1;
656
748
  for (const n of e)
@@ -676,7 +768,7 @@ function Z() {
676
768
  * See the License for the specific language governing permissions and
677
769
  * limitations under the License.
678
770
  */
679
- function U(t) {
771
+ function P(t) {
680
772
  return t && t._delegate ? t._delegate : t;
681
773
  }
682
774
  class $ {
@@ -718,7 +810,7 @@ class $ {
718
810
  * See the License for the specific language governing permissions and
719
811
  * limitations under the License.
720
812
  */
721
- const C = "[DEFAULT]";
813
+ const O = "[DEFAULT]";
722
814
  /**
723
815
  * @license
724
816
  * Copyright 2019 Google LLC
@@ -735,7 +827,7 @@ const C = "[DEFAULT]";
735
827
  * See the License for the specific language governing permissions and
736
828
  * limitations under the License.
737
829
  */
738
- class vt {
830
+ class At {
739
831
  constructor(e, n) {
740
832
  this.name = e, this.container = n, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
741
833
  }
@@ -786,9 +878,9 @@ class vt {
786
878
  if (this.component)
787
879
  throw Error(`Component for ${this.name} has already been provided`);
788
880
  if (this.component = e, !!this.shouldAutoInitialize()) {
789
- if (Ct(e))
881
+ if (Ot(e))
790
882
  try {
791
- this.getOrInitializeService({ instanceIdentifier: C });
883
+ this.getOrInitializeService({ instanceIdentifier: O });
792
884
  } catch {
793
885
  }
794
886
  for (const [n, r] of this.instancesDeferred.entries()) {
@@ -803,7 +895,7 @@ class vt {
803
895
  }
804
896
  }
805
897
  }
806
- clearInstance(e = C) {
898
+ clearInstance(e = O) {
807
899
  this.instancesDeferred.delete(e), this.instancesOptions.delete(e), this.instances.delete(e);
808
900
  }
809
901
  // app.delete() will call this method on every provider to delete the services
@@ -818,10 +910,10 @@ class vt {
818
910
  isComponentSet() {
819
911
  return this.component != null;
820
912
  }
821
- isInitialized(e = C) {
913
+ isInitialized(e = O) {
822
914
  return this.instances.has(e);
823
915
  }
824
- getOptions(e = C) {
916
+ getOptions(e = O) {
825
917
  return this.instancesOptions.get(e) || {};
826
918
  }
827
919
  initialize(e = {}) {
@@ -835,8 +927,8 @@ class vt {
835
927
  options: n
836
928
  });
837
929
  for (const [o, i] of this.instancesDeferred.entries()) {
838
- const a = this.normalizeInstanceIdentifier(o);
839
- r === a && i.resolve(s);
930
+ const c = this.normalizeInstanceIdentifier(o);
931
+ r === c && i.resolve(s);
840
932
  }
841
933
  return s;
842
934
  }
@@ -882,17 +974,17 @@ class vt {
882
974
  }
883
975
  return r || null;
884
976
  }
885
- normalizeInstanceIdentifier(e = C) {
886
- return this.component ? this.component.multipleInstances ? e : C : e;
977
+ normalizeInstanceIdentifier(e = O) {
978
+ return this.component ? this.component.multipleInstances ? e : O : e;
887
979
  }
888
980
  shouldAutoInitialize() {
889
981
  return !!this.component && this.component.instantiationMode !== "EXPLICIT";
890
982
  }
891
983
  }
892
984
  function Dt(t) {
893
- return t === C ? void 0 : t;
985
+ return t === O ? void 0 : t;
894
986
  }
895
- function Ct(t) {
987
+ function Ot(t) {
896
988
  return t.instantiationMode === "EAGER";
897
989
  }
898
990
  /**
@@ -911,7 +1003,7 @@ function Ct(t) {
911
1003
  * See the License for the specific language governing permissions and
912
1004
  * limitations under the License.
913
1005
  */
914
- class Ot {
1006
+ class Ct {
915
1007
  constructor(e) {
916
1008
  this.name = e, this.providers = /* @__PURE__ */ new Map();
917
1009
  }
@@ -943,7 +1035,7 @@ class Ot {
943
1035
  getProvider(e) {
944
1036
  if (this.providers.has(e))
945
1037
  return this.providers.get(e);
946
- const n = new vt(e, this);
1038
+ const n = new At(e, this);
947
1039
  return this.providers.set(e, n), n;
948
1040
  }
949
1041
  getProviders() {
@@ -966,27 +1058,27 @@ class Ot {
966
1058
  * See the License for the specific language governing permissions and
967
1059
  * limitations under the License.
968
1060
  */
969
- var u;
1061
+ var h;
970
1062
  (function(t) {
971
1063
  t[t.DEBUG = 0] = "DEBUG", t[t.VERBOSE = 1] = "VERBOSE", t[t.INFO = 2] = "INFO", t[t.WARN = 3] = "WARN", t[t.ERROR = 4] = "ERROR", t[t.SILENT = 5] = "SILENT";
972
- })(u || (u = {}));
1064
+ })(h || (h = {}));
973
1065
  const St = {
974
- debug: u.DEBUG,
975
- verbose: u.VERBOSE,
976
- info: u.INFO,
977
- warn: u.WARN,
978
- error: u.ERROR,
979
- silent: u.SILENT
980
- }, Nt = u.INFO, kt = {
981
- [u.DEBUG]: "log",
982
- [u.VERBOSE]: "log",
983
- [u.INFO]: "info",
984
- [u.WARN]: "warn",
985
- [u.ERROR]: "error"
1066
+ debug: h.DEBUG,
1067
+ verbose: h.VERBOSE,
1068
+ info: h.INFO,
1069
+ warn: h.WARN,
1070
+ error: h.ERROR,
1071
+ silent: h.SILENT
1072
+ }, kt = h.INFO, Nt = {
1073
+ [h.DEBUG]: "log",
1074
+ [h.VERBOSE]: "log",
1075
+ [h.INFO]: "info",
1076
+ [h.WARN]: "warn",
1077
+ [h.ERROR]: "error"
986
1078
  }, Bt = (t, e, ...n) => {
987
1079
  if (e < t.logLevel)
988
1080
  return;
989
- const r = (/* @__PURE__ */ new Date()).toISOString(), s = kt[e];
1081
+ const r = (/* @__PURE__ */ new Date()).toISOString(), s = Nt[e];
990
1082
  if (s)
991
1083
  console[s](`[${r}] ${t.name}:`, ...n);
992
1084
  else
@@ -1000,13 +1092,13 @@ class xt {
1000
1092
  * @param name The name that the logs will be associated with
1001
1093
  */
1002
1094
  constructor(e) {
1003
- this.name = e, this._logLevel = Nt, this._logHandler = Bt, this._userLogHandler = null;
1095
+ this.name = e, this._logLevel = kt, this._logHandler = Bt, this._userLogHandler = null;
1004
1096
  }
1005
1097
  get logLevel() {
1006
1098
  return this._logLevel;
1007
1099
  }
1008
1100
  set logLevel(e) {
1009
- if (!(e in u))
1101
+ if (!(e in h))
1010
1102
  throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);
1011
1103
  this._logLevel = e;
1012
1104
  }
@@ -1032,25 +1124,25 @@ class xt {
1032
1124
  * The functions below are all based on the `console` interface
1033
1125
  */
1034
1126
  debug(...e) {
1035
- this._userLogHandler && this._userLogHandler(this, u.DEBUG, ...e), this._logHandler(this, u.DEBUG, ...e);
1127
+ this._userLogHandler && this._userLogHandler(this, h.DEBUG, ...e), this._logHandler(this, h.DEBUG, ...e);
1036
1128
  }
1037
1129
  log(...e) {
1038
- this._userLogHandler && this._userLogHandler(this, u.VERBOSE, ...e), this._logHandler(this, u.VERBOSE, ...e);
1130
+ this._userLogHandler && this._userLogHandler(this, h.VERBOSE, ...e), this._logHandler(this, h.VERBOSE, ...e);
1039
1131
  }
1040
1132
  info(...e) {
1041
- this._userLogHandler && this._userLogHandler(this, u.INFO, ...e), this._logHandler(this, u.INFO, ...e);
1133
+ this._userLogHandler && this._userLogHandler(this, h.INFO, ...e), this._logHandler(this, h.INFO, ...e);
1042
1134
  }
1043
1135
  warn(...e) {
1044
- this._userLogHandler && this._userLogHandler(this, u.WARN, ...e), this._logHandler(this, u.WARN, ...e);
1136
+ this._userLogHandler && this._userLogHandler(this, h.WARN, ...e), this._logHandler(this, h.WARN, ...e);
1045
1137
  }
1046
1138
  error(...e) {
1047
- this._userLogHandler && this._userLogHandler(this, u.ERROR, ...e), this._logHandler(this, u.ERROR, ...e);
1139
+ this._userLogHandler && this._userLogHandler(this, h.ERROR, ...e), this._logHandler(this, h.ERROR, ...e);
1048
1140
  }
1049
1141
  }
1050
- const Ut = (t, e) => e.some((n) => t instanceof n);
1051
- let we, Ie;
1052
- function Pt() {
1053
- return we || (we = [
1142
+ const Pt = (t, e) => e.some((n) => t instanceof n);
1143
+ let Ee, Ie;
1144
+ function Ut() {
1145
+ return Ee || (Ee = [
1054
1146
  IDBDatabase,
1055
1147
  IDBObjectStore,
1056
1148
  IDBIndex,
@@ -1065,13 +1157,13 @@ function Lt() {
1065
1157
  IDBCursor.prototype.continuePrimaryKey
1066
1158
  ]);
1067
1159
  }
1068
- const Me = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap();
1160
+ const Me = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap();
1069
1161
  function Mt(t) {
1070
1162
  const e = new Promise((n, r) => {
1071
1163
  const s = () => {
1072
1164
  t.removeEventListener("success", o), t.removeEventListener("error", i);
1073
1165
  }, o = () => {
1074
- n(A(t.result)), s();
1166
+ n(R(t.result)), s();
1075
1167
  }, i = () => {
1076
1168
  r(t.error), s();
1077
1169
  };
@@ -1083,7 +1175,7 @@ function Mt(t) {
1083
1175
  }), fe.set(e, t), e;
1084
1176
  }
1085
1177
  function $t(t) {
1086
- if (ae.has(t))
1178
+ if (ie.has(t))
1087
1179
  return;
1088
1180
  const e = new Promise((n, r) => {
1089
1181
  const s = () => {
@@ -1095,19 +1187,19 @@ function $t(t) {
1095
1187
  };
1096
1188
  t.addEventListener("complete", o), t.addEventListener("error", i), t.addEventListener("abort", i);
1097
1189
  });
1098
- ae.set(t, e);
1190
+ ie.set(t, e);
1099
1191
  }
1100
- let ce = {
1192
+ let ae = {
1101
1193
  get(t, e, n) {
1102
1194
  if (t instanceof IDBTransaction) {
1103
1195
  if (e === "done")
1104
- return ae.get(t);
1196
+ return ie.get(t);
1105
1197
  if (e === "objectStoreNames")
1106
1198
  return t.objectStoreNames || $e.get(t);
1107
1199
  if (e === "store")
1108
1200
  return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
1109
1201
  }
1110
- return A(t[e]);
1202
+ return R(t[e]);
1111
1203
  },
1112
1204
  set(t, e, n) {
1113
1205
  return t[e] = n, !0;
@@ -1116,23 +1208,23 @@ let ce = {
1116
1208
  return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
1117
1209
  }
1118
1210
  };
1119
- function Ft(t) {
1120
- ce = t(ce);
1121
- }
1122
1211
  function Ht(t) {
1212
+ ae = t(ae);
1213
+ }
1214
+ function Ft(t) {
1123
1215
  return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
1124
1216
  const r = t.call(ee(this), e, ...n);
1125
- return $e.set(r, e.sort ? e.sort() : [e]), A(r);
1217
+ return $e.set(r, e.sort ? e.sort() : [e]), R(r);
1126
1218
  } : Lt().includes(t) ? function(...e) {
1127
- return t.apply(ee(this), e), A(Me.get(this));
1219
+ return t.apply(ee(this), e), R(Me.get(this));
1128
1220
  } : function(...e) {
1129
- return A(t.apply(ee(this), e));
1221
+ return R(t.apply(ee(this), e));
1130
1222
  };
1131
1223
  }
1132
1224
  function jt(t) {
1133
- return typeof t == "function" ? Ht(t) : (t instanceof IDBTransaction && $t(t), Ut(t, Pt()) ? new Proxy(t, ce) : t);
1225
+ return typeof t == "function" ? Ft(t) : (t instanceof IDBTransaction && $t(t), Pt(t, Ut()) ? new Proxy(t, ae) : t);
1134
1226
  }
1135
- function A(t) {
1227
+ function R(t) {
1136
1228
  if (t instanceof IDBRequest)
1137
1229
  return Mt(t);
1138
1230
  if (Q.has(t))
@@ -1142,21 +1234,21 @@ function A(t) {
1142
1234
  }
1143
1235
  const ee = (t) => fe.get(t);
1144
1236
  function Vt(t, e, { blocked: n, upgrade: r, blocking: s, terminated: o } = {}) {
1145
- const i = indexedDB.open(t, e), a = A(i);
1146
- return r && i.addEventListener("upgradeneeded", (c) => {
1147
- r(A(i.result), c.oldVersion, c.newVersion, A(i.transaction), c);
1148
- }), n && i.addEventListener("blocked", (c) => n(
1237
+ const i = indexedDB.open(t, e), c = R(i);
1238
+ return r && i.addEventListener("upgradeneeded", (l) => {
1239
+ r(R(i.result), l.oldVersion, l.newVersion, R(i.transaction), l);
1240
+ }), n && i.addEventListener("blocked", (l) => n(
1149
1241
  // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
1150
- c.oldVersion,
1151
- c.newVersion,
1152
- c
1153
- )), a.then((c) => {
1154
- o && c.addEventListener("close", () => o()), s && c.addEventListener("versionchange", (l) => s(l.oldVersion, l.newVersion, l));
1242
+ l.oldVersion,
1243
+ l.newVersion,
1244
+ l
1245
+ )), c.then((l) => {
1246
+ o && l.addEventListener("close", () => o()), s && l.addEventListener("versionchange", (a) => s(a.oldVersion, a.newVersion, a));
1155
1247
  }).catch(() => {
1156
- }), a;
1248
+ }), c;
1157
1249
  }
1158
1250
  const zt = ["get", "getKey", "getAll", "getAllKeys", "count"], Wt = ["put", "add", "delete", "clear"], te = /* @__PURE__ */ new Map();
1159
- function Re(t, e) {
1251
+ function ve(t, e) {
1160
1252
  if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
1161
1253
  return;
1162
1254
  if (te.get(e))
@@ -1167,20 +1259,20 @@ function Re(t, e) {
1167
1259
  !(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(s || zt.includes(n))
1168
1260
  )
1169
1261
  return;
1170
- const o = async function(i, ...a) {
1171
- const c = this.transaction(i, s ? "readwrite" : "readonly");
1172
- let l = c.store;
1173
- return r && (l = l.index(a.shift())), (await Promise.all([
1174
- l[n](...a),
1175
- s && c.done
1262
+ const o = async function(i, ...c) {
1263
+ const l = this.transaction(i, s ? "readwrite" : "readonly");
1264
+ let a = l.store;
1265
+ return r && (a = a.index(c.shift())), (await Promise.all([
1266
+ a[n](...c),
1267
+ s && l.done
1176
1268
  ]))[0];
1177
1269
  };
1178
1270
  return te.set(e, o), o;
1179
1271
  }
1180
- Ft((t) => ({
1272
+ Ht((t) => ({
1181
1273
  ...t,
1182
- get: (e, n, r) => Re(e, n) || t.get(e, n, r),
1183
- has: (e, n) => !!Re(e, n) || t.has(e, n)
1274
+ get: (e, n, r) => ve(e, n) || t.get(e, n, r),
1275
+ has: (e, n) => !!ve(e, n) || t.has(e, n)
1184
1276
  }));
1185
1277
  /**
1186
1278
  * @license
@@ -1218,7 +1310,7 @@ function Gt(t) {
1218
1310
  const e = t.getComponent();
1219
1311
  return (e == null ? void 0 : e.type) === "VERSION";
1220
1312
  }
1221
- const le = "@firebase/app", Te = "0.9.13";
1313
+ const ce = "@firebase/app", Te = "0.9.13";
1222
1314
  /**
1223
1315
  * @license
1224
1316
  * Copyright 2019 Google LLC
@@ -1235,7 +1327,7 @@ const le = "@firebase/app", Te = "0.9.13";
1235
1327
  * See the License for the specific language governing permissions and
1236
1328
  * limitations under the License.
1237
1329
  */
1238
- const S = new xt("@firebase/app"), Kt = "@firebase/app-compat", Xt = "@firebase/analytics-compat", Jt = "@firebase/analytics", Yt = "@firebase/app-check-compat", Zt = "@firebase/app-check", Qt = "@firebase/auth", en = "@firebase/auth-compat", tn = "@firebase/database", nn = "@firebase/database-compat", rn = "@firebase/functions", sn = "@firebase/functions-compat", on = "@firebase/installations", an = "@firebase/installations-compat", cn = "@firebase/messaging", ln = "@firebase/messaging-compat", un = "@firebase/performance", hn = "@firebase/performance-compat", dn = "@firebase/remote-config", fn = "@firebase/remote-config-compat", pn = "@firebase/storage", gn = "@firebase/storage-compat", mn = "@firebase/firestore", _n = "@firebase/firestore-compat", bn = "firebase", yn = "9.23.0";
1330
+ const S = new xt("@firebase/app"), Kt = "@firebase/app-compat", Xt = "@firebase/analytics-compat", Jt = "@firebase/analytics", Yt = "@firebase/app-check-compat", Zt = "@firebase/app-check", Qt = "@firebase/auth", en = "@firebase/auth-compat", tn = "@firebase/database", nn = "@firebase/database-compat", rn = "@firebase/functions", sn = "@firebase/functions-compat", on = "@firebase/installations", an = "@firebase/installations-compat", cn = "@firebase/messaging", ln = "@firebase/messaging-compat", un = "@firebase/performance", hn = "@firebase/performance-compat", dn = "@firebase/remote-config", fn = "@firebase/remote-config-compat", pn = "@firebase/storage", gn = "@firebase/storage-compat", mn = "@firebase/firestore", bn = "@firebase/firestore-compat", _n = "firebase", yn = "9.23.0";
1239
1331
  /**
1240
1332
  * @license
1241
1333
  * Copyright 2019 Google LLC
@@ -1252,8 +1344,8 @@ const S = new xt("@firebase/app"), Kt = "@firebase/app-compat", Xt = "@firebase/
1252
1344
  * See the License for the specific language governing permissions and
1253
1345
  * limitations under the License.
1254
1346
  */
1255
- const ue = "[DEFAULT]", En = {
1256
- [le]: "fire-core",
1347
+ const le = "[DEFAULT]", wn = {
1348
+ [ce]: "fire-core",
1257
1349
  [Kt]: "fire-core-compat",
1258
1350
  [Jt]: "fire-analytics",
1259
1351
  [Xt]: "fire-analytics-compat",
@@ -1276,9 +1368,9 @@ const ue = "[DEFAULT]", En = {
1276
1368
  [pn]: "fire-gcs",
1277
1369
  [gn]: "fire-gcs-compat",
1278
1370
  [mn]: "fire-fst",
1279
- [_n]: "fire-fst-compat",
1371
+ [bn]: "fire-fst-compat",
1280
1372
  "fire-js": "fire-js",
1281
- [bn]: "fire-js-all"
1373
+ [_n]: "fire-js-all"
1282
1374
  };
1283
1375
  /**
1284
1376
  * @license
@@ -1296,8 +1388,8 @@ const ue = "[DEFAULT]", En = {
1296
1388
  * See the License for the specific language governing permissions and
1297
1389
  * limitations under the License.
1298
1390
  */
1299
- const F = /* @__PURE__ */ new Map(), he = /* @__PURE__ */ new Map();
1300
- function wn(t, e) {
1391
+ const H = /* @__PURE__ */ new Map(), ue = /* @__PURE__ */ new Map();
1392
+ function En(t, e) {
1301
1393
  try {
1302
1394
  t.container.addComponent(e);
1303
1395
  } catch (n) {
@@ -1306,11 +1398,11 @@ function wn(t, e) {
1306
1398
  }
1307
1399
  function G(t) {
1308
1400
  const e = t.name;
1309
- if (he.has(e))
1401
+ if (ue.has(e))
1310
1402
  return S.debug(`There were multiple attempts to register component ${e}.`), !1;
1311
- he.set(e, t);
1312
- for (const n of F.values())
1313
- wn(n, t);
1403
+ ue.set(e, t);
1404
+ for (const n of H.values())
1405
+ En(n, t);
1314
1406
  return !0;
1315
1407
  }
1316
1408
  function In(t, e) {
@@ -1333,7 +1425,7 @@ function In(t, e) {
1333
1425
  * See the License for the specific language governing permissions and
1334
1426
  * limitations under the License.
1335
1427
  */
1336
- const Rn = {
1428
+ const vn = {
1337
1429
  "no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
1338
1430
  "bad-app-name": "Illegal App name: '{$appName}",
1339
1431
  "duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
@@ -1345,7 +1437,7 @@ const Rn = {
1345
1437
  "idb-get": "Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",
1346
1438
  "idb-set": "Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",
1347
1439
  "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."
1348
- }, v = new Le("app", "Firebase", Rn);
1440
+ }, A = new Le("app", "Firebase", vn);
1349
1441
  /**
1350
1442
  * @license
1351
1443
  * Copyright 2019 Google LLC
@@ -1401,7 +1493,7 @@ class Tn {
1401
1493
  */
1402
1494
  checkDestroyed() {
1403
1495
  if (this.isDeleted)
1404
- throw v.create("app-deleted", { appName: this._name });
1496
+ throw A.create("app-deleted", { appName: this._name });
1405
1497
  }
1406
1498
  }
1407
1499
  /**
@@ -1420,53 +1512,53 @@ class Tn {
1420
1512
  * See the License for the specific language governing permissions and
1421
1513
  * limitations under the License.
1422
1514
  */
1423
- const An = yn;
1424
- function vn(t, e = {}) {
1515
+ const Rn = yn;
1516
+ function An(t, e = {}) {
1425
1517
  let n = t;
1426
1518
  typeof e != "object" && (e = { name: e });
1427
- const r = Object.assign({ name: ue, automaticDataCollectionEnabled: !1 }, e), s = r.name;
1519
+ const r = Object.assign({ name: le, automaticDataCollectionEnabled: !1 }, e), s = r.name;
1428
1520
  if (typeof s != "string" || !s)
1429
- throw v.create("bad-app-name", {
1521
+ throw A.create("bad-app-name", {
1430
1522
  appName: String(s)
1431
1523
  });
1432
- if (n || (n = Ue()), !n)
1433
- throw v.create(
1524
+ if (n || (n = Pe()), !n)
1525
+ throw A.create(
1434
1526
  "no-options"
1435
1527
  /* AppError.NO_OPTIONS */
1436
1528
  );
1437
- const o = F.get(s);
1529
+ const o = H.get(s);
1438
1530
  if (o) {
1439
- if (ie(n, o.options) && ie(r, o.config))
1531
+ if (oe(n, o.options) && oe(r, o.config))
1440
1532
  return o;
1441
- throw v.create("duplicate-app", { appName: s });
1442
- }
1443
- const i = new Ot(s);
1444
- for (const c of he.values())
1445
- i.addComponent(c);
1446
- const a = new Tn(n, r, i);
1447
- return F.set(s, a), a;
1448
- }
1449
- function Dn(t = ue) {
1450
- const e = F.get(t);
1451
- if (!e && t === ue && Ue())
1452
- return vn();
1533
+ throw A.create("duplicate-app", { appName: s });
1534
+ }
1535
+ const i = new Ct(s);
1536
+ for (const l of ue.values())
1537
+ i.addComponent(l);
1538
+ const c = new Tn(n, r, i);
1539
+ return H.set(s, c), c;
1540
+ }
1541
+ function Dn(t = le) {
1542
+ const e = H.get(t);
1543
+ if (!e && t === le && Pe())
1544
+ return An();
1453
1545
  if (!e)
1454
- throw v.create("no-app", { appName: t });
1546
+ throw A.create("no-app", { appName: t });
1455
1547
  return e;
1456
1548
  }
1457
- function hs() {
1458
- return Array.from(F.values());
1549
+ function us() {
1550
+ return Array.from(H.values());
1459
1551
  }
1460
1552
  function L(t, e, n) {
1461
1553
  var r;
1462
- let s = (r = En[t]) !== null && r !== void 0 ? r : t;
1554
+ let s = (r = wn[t]) !== null && r !== void 0 ? r : t;
1463
1555
  n && (s += `-${n}`);
1464
1556
  const o = s.match(/\s|\//), i = e.match(/\s|\//);
1465
1557
  if (o || i) {
1466
- const a = [
1558
+ const c = [
1467
1559
  `Unable to register library "${s}" with version "${e}":`
1468
1560
  ];
1469
- o && a.push(`library name "${s}" contains illegal characters (whitespace or "/")`), o && i && a.push("and"), i && a.push(`version name "${e}" contains illegal characters (whitespace or "/")`), S.warn(a.join(" "));
1561
+ o && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), o && i && c.push("and"), i && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), S.warn(c.join(" "));
1470
1562
  return;
1471
1563
  }
1472
1564
  G(new $(
@@ -1492,52 +1584,52 @@ function L(t, e, n) {
1492
1584
  * See the License for the specific language governing permissions and
1493
1585
  * limitations under the License.
1494
1586
  */
1495
- const Cn = "firebase-heartbeat-database", On = 1, H = "firebase-heartbeat-store";
1587
+ const On = "firebase-heartbeat-database", Cn = 1, F = "firebase-heartbeat-store";
1496
1588
  let ne = null;
1497
- function Fe() {
1498
- return ne || (ne = Vt(Cn, On, {
1589
+ function He() {
1590
+ return ne || (ne = Vt(On, Cn, {
1499
1591
  upgrade: (t, e) => {
1500
1592
  switch (e) {
1501
1593
  case 0:
1502
- t.createObjectStore(H);
1594
+ t.createObjectStore(F);
1503
1595
  }
1504
1596
  }
1505
1597
  }).catch((t) => {
1506
- throw v.create("idb-open", {
1598
+ throw A.create("idb-open", {
1507
1599
  originalErrorMessage: t.message
1508
1600
  });
1509
1601
  })), ne;
1510
1602
  }
1511
1603
  async function Sn(t) {
1512
1604
  try {
1513
- return await (await Fe()).transaction(H).objectStore(H).get(He(t));
1605
+ return await (await He()).transaction(F).objectStore(F).get(Fe(t));
1514
1606
  } catch (e) {
1515
1607
  if (e instanceof x)
1516
1608
  S.warn(e.message);
1517
1609
  else {
1518
- const n = v.create("idb-get", {
1610
+ const n = A.create("idb-get", {
1519
1611
  originalErrorMessage: e == null ? void 0 : e.message
1520
1612
  });
1521
1613
  S.warn(n.message);
1522
1614
  }
1523
1615
  }
1524
1616
  }
1525
- async function Ae(t, e) {
1617
+ async function Re(t, e) {
1526
1618
  try {
1527
- const r = (await Fe()).transaction(H, "readwrite");
1528
- await r.objectStore(H).put(e, He(t)), await r.done;
1619
+ const r = (await He()).transaction(F, "readwrite");
1620
+ await r.objectStore(F).put(e, Fe(t)), await r.done;
1529
1621
  } catch (n) {
1530
1622
  if (n instanceof x)
1531
1623
  S.warn(n.message);
1532
1624
  else {
1533
- const r = v.create("idb-set", {
1625
+ const r = A.create("idb-set", {
1534
1626
  originalErrorMessage: n == null ? void 0 : n.message
1535
1627
  });
1536
1628
  S.warn(r.message);
1537
1629
  }
1538
1630
  }
1539
1631
  }
1540
- function He(t) {
1632
+ function Fe(t) {
1541
1633
  return `${t.name}!${t.options.appId}`;
1542
1634
  }
1543
1635
  /**
@@ -1556,12 +1648,12 @@ function He(t) {
1556
1648
  * See the License for the specific language governing permissions and
1557
1649
  * limitations under the License.
1558
1650
  */
1559
- const Nn = 1024, kn = 30 * 24 * 60 * 60 * 1e3;
1651
+ const kn = 1024, Nn = 30 * 24 * 60 * 60 * 1e3;
1560
1652
  class Bn {
1561
1653
  constructor(e) {
1562
1654
  this.container = e, this._heartbeatsCache = null;
1563
1655
  const n = this.container.getProvider("app").getImmediate();
1564
- this._storage = new Un(n), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
1656
+ this._storage = new Pn(n), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
1565
1657
  }
1566
1658
  /**
1567
1659
  * Called to report a heartbeat. The function will generate
@@ -1571,11 +1663,11 @@ class Bn {
1571
1663
  * already logged, subsequent calls to this function in the same day will be ignored.
1572
1664
  */
1573
1665
  async triggerHeartbeat() {
1574
- const n = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), r = ve();
1666
+ const n = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), r = Ae();
1575
1667
  if (this._heartbeatsCache === null && (this._heartbeatsCache = await this._heartbeatsCachePromise), !(this._heartbeatsCache.lastSentHeartbeatDate === r || this._heartbeatsCache.heartbeats.some((s) => s.date === r)))
1576
1668
  return this._heartbeatsCache.heartbeats.push({ date: r, agent: n }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((s) => {
1577
1669
  const o = new Date(s.date).valueOf();
1578
- return Date.now() - o <= kn;
1670
+ return Date.now() - o <= Nn;
1579
1671
  }), this._storage.overwrite(this._heartbeatsCache);
1580
1672
  }
1581
1673
  /**
@@ -1588,14 +1680,14 @@ class Bn {
1588
1680
  async getHeartbeatsHeader() {
1589
1681
  if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, this._heartbeatsCache === null || this._heartbeatsCache.heartbeats.length === 0)
1590
1682
  return "";
1591
- const e = ve(), { heartbeatsToSend: n, unsentEntries: r } = xn(this._heartbeatsCache.heartbeats), s = q(JSON.stringify({ version: 2, heartbeats: n }));
1683
+ const e = Ae(), { heartbeatsToSend: n, unsentEntries: r } = xn(this._heartbeatsCache.heartbeats), s = q(JSON.stringify({ version: 2, heartbeats: n }));
1592
1684
  return this._heartbeatsCache.lastSentHeartbeatDate = e, r.length > 0 ? (this._heartbeatsCache.heartbeats = r, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), s;
1593
1685
  }
1594
1686
  }
1595
- function ve() {
1687
+ function Ae() {
1596
1688
  return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
1597
1689
  }
1598
- function xn(t, e = Nn) {
1690
+ function xn(t, e = kn) {
1599
1691
  const n = [];
1600
1692
  let r = t.slice();
1601
1693
  for (const s of t) {
@@ -1619,12 +1711,12 @@ function xn(t, e = Nn) {
1619
1711
  unsentEntries: r
1620
1712
  };
1621
1713
  }
1622
- class Un {
1714
+ class Pn {
1623
1715
  constructor(e) {
1624
1716
  this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
1625
1717
  }
1626
1718
  async runIndexedDBEnvironmentCheck() {
1627
- return yt() ? Et().then(() => !0).catch(() => !1) : !1;
1719
+ return yt() ? wt().then(() => !0).catch(() => !1) : !1;
1628
1720
  }
1629
1721
  /**
1630
1722
  * Read all heartbeats.
@@ -1637,7 +1729,7 @@ class Un {
1637
1729
  var n;
1638
1730
  if (await this._canUseIndexedDBPromise) {
1639
1731
  const s = await this.read();
1640
- return Ae(this.app, {
1732
+ return Re(this.app, {
1641
1733
  lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
1642
1734
  heartbeats: e.heartbeats
1643
1735
  });
@@ -1649,7 +1741,7 @@ class Un {
1649
1741
  var n;
1650
1742
  if (await this._canUseIndexedDBPromise) {
1651
1743
  const s = await this.read();
1652
- return Ae(this.app, {
1744
+ return Re(this.app, {
1653
1745
  lastSentHeartbeatDate: (n = e.lastSentHeartbeatDate) !== null && n !== void 0 ? n : s.lastSentHeartbeatDate,
1654
1746
  heartbeats: [
1655
1747
  ...s.heartbeats,
@@ -1682,7 +1774,7 @@ function De(t) {
1682
1774
  * See the License for the specific language governing permissions and
1683
1775
  * limitations under the License.
1684
1776
  */
1685
- function Pn(t) {
1777
+ function Un(t) {
1686
1778
  G(new $(
1687
1779
  "platform-logger",
1688
1780
  (e) => new qt(e),
@@ -1693,9 +1785,9 @@ function Pn(t) {
1693
1785
  (e) => new Bn(e),
1694
1786
  "PRIVATE"
1695
1787
  /* ComponentType.PRIVATE */
1696
- )), L(le, Te, t), L(le, Te, "esm2017"), L("fire-js", "");
1788
+ )), L(ce, Te, t), L(ce, Te, "esm2017"), L("fire-js", "");
1697
1789
  }
1698
- Pn("");
1790
+ Un("");
1699
1791
  /**
1700
1792
  * @license
1701
1793
  * Copyright 2017 Google LLC
@@ -1729,7 +1821,7 @@ const je = "firebasestorage.googleapis.com", Ve = "storageBucket", Ln = 2 * 60 *
1729
1821
  * See the License for the specific language governing permissions and
1730
1822
  * limitations under the License.
1731
1823
  */
1732
- class d extends x {
1824
+ class f extends x {
1733
1825
  /**
1734
1826
  * @param code - A `StorageErrorCode` string to be prefixed with 'storage/' and
1735
1827
  * added to the end of the message.
@@ -1737,7 +1829,7 @@ class d extends x {
1737
1829
  * @param status_ - Corresponding HTTP Status Code
1738
1830
  */
1739
1831
  constructor(e, n, r = 0) {
1740
- super(re(e), `Firebase Storage: ${n} (${re(e)})`), this.status_ = r, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this, d.prototype);
1832
+ super(re(e), `Firebase Storage: ${n} (${re(e)})`), this.status_ = r, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this, f.prototype);
1741
1833
  }
1742
1834
  get status() {
1743
1835
  return this.status_;
@@ -1762,71 +1854,71 @@ class d extends x {
1762
1854
  ${this.customData.serverResponse}` : this.message = this._baseMessage;
1763
1855
  }
1764
1856
  }
1765
- var h;
1857
+ var d;
1766
1858
  (function(t) {
1767
1859
  t.UNKNOWN = "unknown", t.OBJECT_NOT_FOUND = "object-not-found", t.BUCKET_NOT_FOUND = "bucket-not-found", t.PROJECT_NOT_FOUND = "project-not-found", t.QUOTA_EXCEEDED = "quota-exceeded", t.UNAUTHENTICATED = "unauthenticated", t.UNAUTHORIZED = "unauthorized", t.UNAUTHORIZED_APP = "unauthorized-app", t.RETRY_LIMIT_EXCEEDED = "retry-limit-exceeded", t.INVALID_CHECKSUM = "invalid-checksum", t.CANCELED = "canceled", t.INVALID_EVENT_NAME = "invalid-event-name", t.INVALID_URL = "invalid-url", t.INVALID_DEFAULT_BUCKET = "invalid-default-bucket", t.NO_DEFAULT_BUCKET = "no-default-bucket", t.CANNOT_SLICE_BLOB = "cannot-slice-blob", t.SERVER_FILE_WRONG_SIZE = "server-file-wrong-size", t.NO_DOWNLOAD_URL = "no-download-url", t.INVALID_ARGUMENT = "invalid-argument", t.INVALID_ARGUMENT_COUNT = "invalid-argument-count", t.APP_DELETED = "app-deleted", t.INVALID_ROOT_OPERATION = "invalid-root-operation", t.INVALID_FORMAT = "invalid-format", t.INTERNAL_ERROR = "internal-error", t.UNSUPPORTED_ENVIRONMENT = "unsupported-environment";
1768
- })(h || (h = {}));
1860
+ })(d || (d = {}));
1769
1861
  function re(t) {
1770
1862
  return "storage/" + t;
1771
1863
  }
1772
1864
  function pe() {
1773
1865
  const t = "An unknown error occurred, please check the error payload for server response.";
1774
- return new d(h.UNKNOWN, t);
1866
+ return new f(d.UNKNOWN, t);
1775
1867
  }
1776
1868
  function $n(t) {
1777
- return new d(h.OBJECT_NOT_FOUND, "Object '" + t + "' does not exist.");
1869
+ return new f(d.OBJECT_NOT_FOUND, "Object '" + t + "' does not exist.");
1778
1870
  }
1779
- function Fn(t) {
1780
- return new d(h.QUOTA_EXCEEDED, "Quota for bucket '" + t + "' exceeded, please view quota on https://firebase.google.com/pricing/.");
1871
+ function Hn(t) {
1872
+ return new f(d.QUOTA_EXCEEDED, "Quota for bucket '" + t + "' exceeded, please view quota on https://firebase.google.com/pricing/.");
1781
1873
  }
1782
- function Hn() {
1874
+ function Fn() {
1783
1875
  const t = "User is not authenticated, please authenticate using Firebase Authentication and try again.";
1784
- return new d(h.UNAUTHENTICATED, t);
1876
+ return new f(d.UNAUTHENTICATED, t);
1785
1877
  }
1786
1878
  function jn() {
1787
- return new d(h.UNAUTHORIZED_APP, "This app does not have permission to access Firebase Storage on this project.");
1879
+ return new f(d.UNAUTHORIZED_APP, "This app does not have permission to access Firebase Storage on this project.");
1788
1880
  }
1789
1881
  function Vn(t) {
1790
- return new d(h.UNAUTHORIZED, "User does not have permission to access '" + t + "'.");
1882
+ return new f(d.UNAUTHORIZED, "User does not have permission to access '" + t + "'.");
1791
1883
  }
1792
1884
  function zn() {
1793
- return new d(h.RETRY_LIMIT_EXCEEDED, "Max retry time for operation exceeded, please try again.");
1885
+ return new f(d.RETRY_LIMIT_EXCEEDED, "Max retry time for operation exceeded, please try again.");
1794
1886
  }
1795
1887
  function Wn() {
1796
- return new d(h.CANCELED, "User canceled the upload/download.");
1888
+ return new f(d.CANCELED, "User canceled the upload/download.");
1797
1889
  }
1798
1890
  function qn(t) {
1799
- return new d(h.INVALID_URL, "Invalid URL '" + t + "'.");
1891
+ return new f(d.INVALID_URL, "Invalid URL '" + t + "'.");
1800
1892
  }
1801
1893
  function Gn(t) {
1802
- return new d(h.INVALID_DEFAULT_BUCKET, "Invalid default bucket '" + t + "'.");
1894
+ return new f(d.INVALID_DEFAULT_BUCKET, "Invalid default bucket '" + t + "'.");
1803
1895
  }
1804
1896
  function Kn() {
1805
- return new d(h.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + Ve + "' property when initializing the app?");
1897
+ return new f(d.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + Ve + "' property when initializing the app?");
1806
1898
  }
1807
1899
  function Xn() {
1808
- return new d(h.CANNOT_SLICE_BLOB, "Cannot slice blob for upload. Please retry the upload.");
1900
+ return new f(d.CANNOT_SLICE_BLOB, "Cannot slice blob for upload. Please retry the upload.");
1809
1901
  }
1810
1902
  function Jn() {
1811
- return new d(h.NO_DOWNLOAD_URL, "The given file does not have any download URLs.");
1903
+ return new f(d.NO_DOWNLOAD_URL, "The given file does not have any download URLs.");
1812
1904
  }
1813
1905
  function Yn(t) {
1814
- return new d(h.UNSUPPORTED_ENVIRONMENT, `${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);
1906
+ return new f(d.UNSUPPORTED_ENVIRONMENT, `${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);
1815
1907
  }
1816
- function de(t) {
1817
- return new d(h.INVALID_ARGUMENT, t);
1908
+ function he(t) {
1909
+ return new f(d.INVALID_ARGUMENT, t);
1818
1910
  }
1819
1911
  function ze() {
1820
- return new d(h.APP_DELETED, "The Firebase app was deleted.");
1912
+ return new f(d.APP_DELETED, "The Firebase app was deleted.");
1821
1913
  }
1822
1914
  function Zn(t) {
1823
- return new d(h.INVALID_ROOT_OPERATION, "The operation '" + t + "' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");
1915
+ return new f(d.INVALID_ROOT_OPERATION, "The operation '" + t + "' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");
1824
1916
  }
1825
1917
  function M(t, e) {
1826
- return new d(h.INVALID_FORMAT, "String does not match format '" + t + "': " + e);
1918
+ return new f(d.INVALID_FORMAT, "String does not match format '" + t + "': " + e);
1827
1919
  }
1828
- function P(t) {
1829
- throw new d(h.INTERNAL_ERROR, "Internal error: " + t);
1920
+ function U(t) {
1921
+ throw new f(d.INTERNAL_ERROR, "Internal error: " + t);
1830
1922
  }
1831
1923
  /**
1832
1924
  * @license
@@ -1844,7 +1936,7 @@ function P(t) {
1844
1936
  * See the License for the specific language governing permissions and
1845
1937
  * limitations under the License.
1846
1938
  */
1847
- class E {
1939
+ class w {
1848
1940
  constructor(e, n) {
1849
1941
  this.bucket = e, this.path_ = n;
1850
1942
  }
@@ -1864,9 +1956,9 @@ class E {
1864
1956
  static makeFromBucketSpec(e, n) {
1865
1957
  let r;
1866
1958
  try {
1867
- r = E.makeFromUrl(e, n);
1959
+ r = w.makeFromUrl(e, n);
1868
1960
  } catch {
1869
- return new E(e, "");
1961
+ return new w(e, "");
1870
1962
  }
1871
1963
  if (r.path === "")
1872
1964
  return r;
@@ -1878,21 +1970,21 @@ class E {
1878
1970
  function o(y) {
1879
1971
  y.path.charAt(y.path.length - 1) === "/" && (y.path_ = y.path_.slice(0, -1));
1880
1972
  }
1881
- const i = "(/(.*))?$", a = new RegExp("^gs://" + s + i, "i"), c = { bucket: 1, path: 3 };
1882
- function l(y) {
1973
+ const i = "(/(.*))?$", c = new RegExp("^gs://" + s + i, "i"), l = { bucket: 1, path: 3 };
1974
+ function a(y) {
1883
1975
  y.path_ = decodeURIComponent(y.path);
1884
1976
  }
1885
- const g = "v[A-Za-z0-9_]+", f = n.replace(/[.]/g, "\\."), p = "(/([^?#]*).*)?$", m = new RegExp(`^https?://${f}/${g}/b/${s}/o${p}`, "i"), w = { bucket: 1, path: 3 }, k = n === je ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, b = "([^?#]*)", B = new RegExp(`^https?://${k}/${s}/${b}`, "i"), I = [
1886
- { regex: a, indices: c, postModify: o },
1977
+ const u = "v[A-Za-z0-9_]+", p = n.replace(/[.]/g, "\\."), g = "(/([^?#]*).*)?$", m = new RegExp(`^https?://${p}/${u}/b/${s}/o${g}`, "i"), E = { bucket: 1, path: 3 }, N = n === je ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, _ = "([^?#]*)", B = new RegExp(`^https?://${N}/${s}/${_}`, "i"), I = [
1978
+ { regex: c, indices: l, postModify: o },
1887
1979
  {
1888
1980
  regex: m,
1889
- indices: w,
1890
- postModify: l
1981
+ indices: E,
1982
+ postModify: a
1891
1983
  },
1892
1984
  {
1893
1985
  regex: B,
1894
1986
  indices: { bucket: 1, path: 2 },
1895
- postModify: l
1987
+ postModify: a
1896
1988
  }
1897
1989
  ];
1898
1990
  for (let y = 0; y < I.length; y++) {
@@ -1900,7 +1992,7 @@ class E {
1900
1992
  if (J) {
1901
1993
  const st = J[V.indices.bucket];
1902
1994
  let Y = J[V.indices.path];
1903
- Y || (Y = ""), r = new E(st, Y), V.postModify(r);
1995
+ Y || (Y = ""), r = new w(st, Y), V.postModify(r);
1904
1996
  break;
1905
1997
  }
1906
1998
  }
@@ -1938,46 +2030,46 @@ class Qn {
1938
2030
  * limitations under the License.
1939
2031
  */
1940
2032
  function er(t, e, n) {
1941
- let r = 1, s = null, o = null, i = !1, a = 0;
1942
- function c() {
1943
- return a === 2;
2033
+ let r = 1, s = null, o = null, i = !1, c = 0;
2034
+ function l() {
2035
+ return c === 2;
1944
2036
  }
1945
- let l = !1;
1946
- function g(...b) {
1947
- l || (l = !0, e.apply(null, b));
2037
+ let a = !1;
2038
+ function u(..._) {
2039
+ a || (a = !0, e.apply(null, _));
1948
2040
  }
1949
- function f(b) {
2041
+ function p(_) {
1950
2042
  s = setTimeout(() => {
1951
- s = null, t(m, c());
1952
- }, b);
2043
+ s = null, t(m, l());
2044
+ }, _);
1953
2045
  }
1954
- function p() {
2046
+ function g() {
1955
2047
  o && clearTimeout(o);
1956
2048
  }
1957
- function m(b, ...B) {
1958
- if (l) {
1959
- p();
2049
+ function m(_, ...B) {
2050
+ if (a) {
2051
+ g();
1960
2052
  return;
1961
2053
  }
1962
- if (b) {
1963
- p(), g.call(null, b, ...B);
2054
+ if (_) {
2055
+ g(), u.call(null, _, ...B);
1964
2056
  return;
1965
2057
  }
1966
- if (c() || i) {
1967
- p(), g.call(null, b, ...B);
2058
+ if (l() || i) {
2059
+ g(), u.call(null, _, ...B);
1968
2060
  return;
1969
2061
  }
1970
2062
  r < 64 && (r *= 2);
1971
2063
  let I;
1972
- a === 1 ? (a = 2, I = 0) : I = (r + Math.random()) * 1e3, f(I);
2064
+ c === 1 ? (c = 2, I = 0) : I = (r + Math.random()) * 1e3, p(I);
1973
2065
  }
1974
- let w = !1;
1975
- function k(b) {
1976
- w || (w = !0, p(), !l && (s !== null ? (b || (a = 2), clearTimeout(s), f(0)) : b || (a = 1)));
2066
+ let E = !1;
2067
+ function N(_) {
2068
+ E || (E = !0, g(), !a && (s !== null ? (_ || (c = 2), clearTimeout(s), p(0)) : _ || (c = 1)));
1977
2069
  }
1978
- return f(0), o = setTimeout(() => {
1979
- i = !0, k(!0);
1980
- }, n), k;
2070
+ return p(0), o = setTimeout(() => {
2071
+ i = !0, N(!0);
2072
+ }, n), N;
1981
2073
  }
1982
2074
  function tr(t) {
1983
2075
  t(!1);
@@ -2007,17 +2099,17 @@ function rr(t) {
2007
2099
  function ge(t) {
2008
2100
  return typeof t == "string" || t instanceof String;
2009
2101
  }
2010
- function Ce(t) {
2102
+ function Oe(t) {
2011
2103
  return me() && t instanceof Blob;
2012
2104
  }
2013
2105
  function me() {
2014
- return typeof Blob < "u" && !bt();
2106
+ return typeof Blob < "u" && !_t();
2015
2107
  }
2016
- function Oe(t, e, n, r) {
2108
+ function Ce(t, e, n, r) {
2017
2109
  if (r < e)
2018
- throw de(`Invalid value for '${t}'. Expected ${e} or greater.`);
2110
+ throw he(`Invalid value for '${t}'. Expected ${e} or greater.`);
2019
2111
  if (r > n)
2020
- throw de(`Invalid value for '${t}'. Expected ${n} or less.`);
2112
+ throw he(`Invalid value for '${t}'. Expected ${n} or less.`);
2021
2113
  }
2022
2114
  /**
2023
2115
  * @license
@@ -2065,10 +2157,10 @@ function We(t) {
2065
2157
  * See the License for the specific language governing permissions and
2066
2158
  * limitations under the License.
2067
2159
  */
2068
- var O;
2160
+ var C;
2069
2161
  (function(t) {
2070
2162
  t[t.NO_ERROR = 0] = "NO_ERROR", t[t.NETWORK_ERROR = 1] = "NETWORK_ERROR", t[t.ABORT = 2] = "ABORT";
2071
- })(O || (O = {}));
2163
+ })(C || (C = {}));
2072
2164
  /**
2073
2165
  * @license
2074
2166
  * Copyright 2022 Google LLC
@@ -2111,9 +2203,9 @@ function sr(t, e) {
2111
2203
  * limitations under the License.
2112
2204
  */
2113
2205
  class or {
2114
- constructor(e, n, r, s, o, i, a, c, l, g, f, p = !0) {
2115
- this.url_ = e, this.method_ = n, this.headers_ = r, this.body_ = s, this.successCodes_ = o, this.additionalRetryCodes_ = i, this.callback_ = a, this.errorCallback_ = c, this.timeout_ = l, this.progressCallback_ = g, this.connectionFactory_ = f, this.retry = p, this.pendingConnection_ = null, this.backoffId_ = null, this.canceled_ = !1, this.appDelete_ = !1, this.promise_ = new Promise((m, w) => {
2116
- this.resolve_ = m, this.reject_ = w, this.start_();
2206
+ constructor(e, n, r, s, o, i, c, l, a, u, p, g = !0) {
2207
+ this.url_ = e, this.method_ = n, this.headers_ = r, this.body_ = s, this.successCodes_ = o, this.additionalRetryCodes_ = i, this.callback_ = c, this.errorCallback_ = l, this.timeout_ = a, this.progressCallback_ = u, this.connectionFactory_ = p, this.retry = g, this.pendingConnection_ = null, this.backoffId_ = null, this.canceled_ = !1, this.appDelete_ = !1, this.promise_ = new Promise((m, E) => {
2208
+ this.resolve_ = m, this.reject_ = E, this.start_();
2117
2209
  });
2118
2210
  }
2119
2211
  /**
@@ -2127,39 +2219,39 @@ class or {
2127
2219
  }
2128
2220
  const o = this.connectionFactory_();
2129
2221
  this.pendingConnection_ = o;
2130
- const i = (a) => {
2131
- const c = a.loaded, l = a.lengthComputable ? a.total : -1;
2132
- this.progressCallback_ !== null && this.progressCallback_(c, l);
2222
+ const i = (c) => {
2223
+ const l = c.loaded, a = c.lengthComputable ? c.total : -1;
2224
+ this.progressCallback_ !== null && this.progressCallback_(l, a);
2133
2225
  };
2134
2226
  this.progressCallback_ !== null && o.addUploadProgressListener(i), o.send(this.url_, this.method_, this.body_, this.headers_).then(() => {
2135
2227
  this.progressCallback_ !== null && o.removeUploadProgressListener(i), this.pendingConnection_ = null;
2136
- const a = o.getErrorCode() === O.NO_ERROR, c = o.getStatus();
2137
- if (!a || sr(c, this.additionalRetryCodes_) && this.retry) {
2138
- const g = o.getErrorCode() === O.ABORT;
2139
- r(!1, new z(!1, null, g));
2228
+ const c = o.getErrorCode() === C.NO_ERROR, l = o.getStatus();
2229
+ if (!c || sr(l, this.additionalRetryCodes_) && this.retry) {
2230
+ const u = o.getErrorCode() === C.ABORT;
2231
+ r(!1, new z(!1, null, u));
2140
2232
  return;
2141
2233
  }
2142
- const l = this.successCodes_.indexOf(c) !== -1;
2143
- r(!0, new z(l, o));
2234
+ const a = this.successCodes_.indexOf(l) !== -1;
2235
+ r(!0, new z(a, o));
2144
2236
  });
2145
2237
  }, n = (r, s) => {
2146
- const o = this.resolve_, i = this.reject_, a = s.connection;
2238
+ const o = this.resolve_, i = this.reject_, c = s.connection;
2147
2239
  if (s.wasSuccessCode)
2148
2240
  try {
2149
- const c = this.callback_(a, a.getResponse());
2150
- nr(c) ? o(c) : o();
2151
- } catch (c) {
2152
- i(c);
2241
+ const l = this.callback_(c, c.getResponse());
2242
+ nr(l) ? o(l) : o();
2243
+ } catch (l) {
2244
+ i(l);
2153
2245
  }
2154
- else if (a !== null) {
2155
- const c = pe();
2156
- c.serverResponse = a.getErrorText(), this.errorCallback_ ? i(this.errorCallback_(a, c)) : i(c);
2246
+ else if (c !== null) {
2247
+ const l = pe();
2248
+ l.serverResponse = c.getErrorText(), this.errorCallback_ ? i(this.errorCallback_(c, l)) : i(l);
2157
2249
  } else if (s.canceled) {
2158
- const c = this.appDelete_ ? ze() : Wn();
2159
- i(c);
2250
+ const l = this.appDelete_ ? ze() : Wn();
2251
+ i(l);
2160
2252
  } else {
2161
- const c = zn();
2162
- i(c);
2253
+ const l = zn();
2254
+ i(l);
2163
2255
  }
2164
2256
  };
2165
2257
  this.canceled_ ? n(!1, new z(!1, null, !0)) : this.backoffId_ = er(e, n, this.timeout_);
@@ -2191,8 +2283,8 @@ function lr(t, e) {
2191
2283
  e !== null && (t["X-Firebase-AppCheck"] = e);
2192
2284
  }
2193
2285
  function ur(t, e, n, r, s, o, i = !0) {
2194
- const a = We(t.urlParams), c = t.url + a, l = Object.assign({}, t.headers);
2195
- return cr(l, e), ir(l, n), ar(l, o), lr(l, r), new or(c, t.method, l, t.body, t.successCodes, t.additionalRetryCodes, t.handler, t.errorHandler, t.timeout, t.progressCallback, s, i);
2286
+ const c = We(t.urlParams), l = t.url + c, a = Object.assign({}, t.headers);
2287
+ return cr(a, e), ir(a, n), ar(a, o), lr(a, r), new or(l, t.method, a, t.body, t.successCodes, t.additionalRetryCodes, t.handler, t.errorHandler, t.timeout, t.progressCallback, s, i);
2196
2288
  }
2197
2289
  /**
2198
2290
  * @license
@@ -2223,7 +2315,7 @@ function dr(...t) {
2223
2315
  } else {
2224
2316
  if (me())
2225
2317
  return new Blob(t);
2226
- throw new d(h.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
2318
+ throw new f(d.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
2227
2319
  }
2228
2320
  }
2229
2321
  function fr(t, e, n) {
@@ -2266,7 +2358,7 @@ function pr(t) {
2266
2358
  * See the License for the specific language governing permissions and
2267
2359
  * limitations under the License.
2268
2360
  */
2269
- const R = {
2361
+ const v = {
2270
2362
  /**
2271
2363
  * Indicates the string should be interpreted "raw", that is, as normal text.
2272
2364
  * The string will be interpreted as UTF-16, then uploaded as a UTF-8 byte
@@ -2307,13 +2399,13 @@ class se {
2307
2399
  }
2308
2400
  function gr(t, e) {
2309
2401
  switch (t) {
2310
- case R.RAW:
2402
+ case v.RAW:
2311
2403
  return new se(qe(e));
2312
- case R.BASE64:
2313
- case R.BASE64URL:
2404
+ case v.BASE64:
2405
+ case v.BASE64URL:
2314
2406
  return new se(Ge(t, e));
2315
- case R.DATA_URL:
2316
- return new se(_r(e), br(e));
2407
+ case v.DATA_URL:
2408
+ return new se(br(e), _r(e));
2317
2409
  }
2318
2410
  throw pe();
2319
2411
  }
@@ -2342,19 +2434,19 @@ function mr(t) {
2342
2434
  try {
2343
2435
  e = decodeURIComponent(t);
2344
2436
  } catch {
2345
- throw M(R.DATA_URL, "Malformed data URL.");
2437
+ throw M(v.DATA_URL, "Malformed data URL.");
2346
2438
  }
2347
2439
  return qe(e);
2348
2440
  }
2349
2441
  function Ge(t, e) {
2350
2442
  switch (t) {
2351
- case R.BASE64: {
2443
+ case v.BASE64: {
2352
2444
  const s = e.indexOf("-") !== -1, o = e.indexOf("_") !== -1;
2353
2445
  if (s || o)
2354
2446
  throw M(t, "Invalid character '" + (s ? "-" : "_") + "' found: is it base64url encoded?");
2355
2447
  break;
2356
2448
  }
2357
- case R.BASE64URL: {
2449
+ case v.BASE64URL: {
2358
2450
  const s = e.indexOf("+") !== -1, o = e.indexOf("/") !== -1;
2359
2451
  if (s || o)
2360
2452
  throw M(t, "Invalid character '" + (s ? "+" : "/") + "' found: is it base64 encoded?");
@@ -2378,16 +2470,16 @@ class Ke {
2378
2470
  this.base64 = !1, this.contentType = null;
2379
2471
  const n = e.match(/^data:([^,]+)?,/);
2380
2472
  if (n === null)
2381
- throw M(R.DATA_URL, "Must be formatted 'data:[<mediatype>][;base64],<data>");
2473
+ throw M(v.DATA_URL, "Must be formatted 'data:[<mediatype>][;base64],<data>");
2382
2474
  const r = n[1] || null;
2383
2475
  r != null && (this.base64 = yr(r, ";base64"), this.contentType = this.base64 ? r.substring(0, r.length - 7) : r), this.rest = e.substring(e.indexOf(",") + 1);
2384
2476
  }
2385
2477
  }
2386
- function _r(t) {
2478
+ function br(t) {
2387
2479
  const e = new Ke(t);
2388
- return e.base64 ? Ge(R.BASE64, e.rest) : mr(e.rest);
2480
+ return e.base64 ? Ge(v.BASE64, e.rest) : mr(e.rest);
2389
2481
  }
2390
- function br(t) {
2482
+ function _r(t) {
2391
2483
  return new Ke(t).contentType;
2392
2484
  }
2393
2485
  function yr(t, e) {
@@ -2412,7 +2504,7 @@ function yr(t, e) {
2412
2504
  class T {
2413
2505
  constructor(e, n) {
2414
2506
  let r = 0, s = "";
2415
- Ce(e) ? (this.data_ = e, r = e.size, s = e.type) : e instanceof ArrayBuffer ? (n ? this.data_ = new Uint8Array(e) : (this.data_ = new Uint8Array(e.byteLength), this.data_.set(new Uint8Array(e))), r = this.data_.length) : e instanceof Uint8Array && (n ? this.data_ = e : (this.data_ = new Uint8Array(e.length), this.data_.set(e)), r = e.length), this.size_ = r, this.type_ = s;
2507
+ Oe(e) ? (this.data_ = e, r = e.size, s = e.type) : e instanceof ArrayBuffer ? (n ? this.data_ = new Uint8Array(e) : (this.data_ = new Uint8Array(e.byteLength), this.data_.set(new Uint8Array(e))), r = this.data_.length) : e instanceof Uint8Array && (n ? this.data_ = e : (this.data_ = new Uint8Array(e.length), this.data_.set(e)), r = e.length), this.size_ = r, this.type_ = s;
2416
2508
  }
2417
2509
  size() {
2418
2510
  return this.size_;
@@ -2421,7 +2513,7 @@ class T {
2421
2513
  return this.type_;
2422
2514
  }
2423
2515
  slice(e, n) {
2424
- if (Ce(this.data_)) {
2516
+ if (Oe(this.data_)) {
2425
2517
  const r = this.data_, s = fr(r, e, n);
2426
2518
  return s === null ? null : new T(s);
2427
2519
  } else {
@@ -2434,7 +2526,7 @@ class T {
2434
2526
  const n = e.map((r) => r instanceof T ? r.data_ : r);
2435
2527
  return new T(dr.apply(null, n));
2436
2528
  } else {
2437
- const n = e.map((i) => ge(i) ? gr(R.RAW, i).data : i.data_);
2529
+ const n = e.map((i) => ge(i) ? gr(v.RAW, i).data : i.data_);
2438
2530
  let r = 0;
2439
2531
  n.forEach((i) => {
2440
2532
  r += i.byteLength;
@@ -2442,8 +2534,8 @@ class T {
2442
2534
  const s = new Uint8Array(r);
2443
2535
  let o = 0;
2444
2536
  return n.forEach((i) => {
2445
- for (let a = 0; a < i.length; a++)
2446
- s[o++] = i[a];
2537
+ for (let c = 0; c < i.length; c++)
2538
+ s[o++] = i[c];
2447
2539
  }), new T(s, !0);
2448
2540
  }
2449
2541
  }
@@ -2492,13 +2584,13 @@ function Xe(t) {
2492
2584
  * See the License for the specific language governing permissions and
2493
2585
  * limitations under the License.
2494
2586
  */
2495
- function Er(t) {
2587
+ function wr(t) {
2496
2588
  if (t.length === 0)
2497
2589
  return null;
2498
2590
  const e = t.lastIndexOf("/");
2499
2591
  return e === -1 ? "" : t.slice(0, e);
2500
2592
  }
2501
- function wr(t, e) {
2593
+ function Er(t, e) {
2502
2594
  const n = e.split("/").filter((r) => r.length > 0).join("/");
2503
2595
  return t.length === 0 ? n : t + "/" + n;
2504
2596
  }
@@ -2525,39 +2617,39 @@ function Je(t) {
2525
2617
  function Ir(t, e) {
2526
2618
  return e;
2527
2619
  }
2528
- class _ {
2620
+ class b {
2529
2621
  constructor(e, n, r, s) {
2530
2622
  this.server = e, this.local = n || e, this.writable = !!r, this.xform = s || Ir;
2531
2623
  }
2532
2624
  }
2533
2625
  let W = null;
2534
- function Rr(t) {
2626
+ function vr(t) {
2535
2627
  return !ge(t) || t.length < 2 ? t : Je(t);
2536
2628
  }
2537
2629
  function Ye() {
2538
2630
  if (W)
2539
2631
  return W;
2540
2632
  const t = [];
2541
- t.push(new _("bucket")), t.push(new _("generation")), t.push(new _("metageneration")), t.push(new _("name", "fullPath", !0));
2633
+ t.push(new b("bucket")), t.push(new b("generation")), t.push(new b("metageneration")), t.push(new b("name", "fullPath", !0));
2542
2634
  function e(o, i) {
2543
- return Rr(i);
2635
+ return vr(i);
2544
2636
  }
2545
- const n = new _("name");
2637
+ const n = new b("name");
2546
2638
  n.xform = e, t.push(n);
2547
2639
  function r(o, i) {
2548
2640
  return i !== void 0 ? Number(i) : i;
2549
2641
  }
2550
- const s = new _("size");
2551
- return s.xform = r, t.push(s), t.push(new _("timeCreated")), t.push(new _("updated")), t.push(new _("md5Hash", null, !0)), t.push(new _("cacheControl", null, !0)), t.push(new _("contentDisposition", null, !0)), t.push(new _("contentEncoding", null, !0)), t.push(new _("contentLanguage", null, !0)), t.push(new _("contentType", null, !0)), t.push(new _("metadata", "customMetadata", !0)), W = t, W;
2642
+ const s = new b("size");
2643
+ return s.xform = r, t.push(s), t.push(new b("timeCreated")), t.push(new b("updated")), t.push(new b("md5Hash", null, !0)), t.push(new b("cacheControl", null, !0)), t.push(new b("contentDisposition", null, !0)), t.push(new b("contentEncoding", null, !0)), t.push(new b("contentLanguage", null, !0)), t.push(new b("contentType", null, !0)), t.push(new b("metadata", "customMetadata", !0)), W = t, W;
2552
2644
  }
2553
2645
  function Tr(t, e) {
2554
2646
  function n() {
2555
- const r = t.bucket, s = t.fullPath, o = new E(r, s);
2647
+ const r = t.bucket, s = t.fullPath, o = new w(r, s);
2556
2648
  return e._makeStorageReference(o);
2557
2649
  }
2558
2650
  Object.defineProperty(t, "ref", { get: n });
2559
2651
  }
2560
- function Ar(t, e, n) {
2652
+ function Rr(t, e, n) {
2561
2653
  const r = {};
2562
2654
  r.type = "file";
2563
2655
  const s = n.length;
@@ -2569,9 +2661,9 @@ function Ar(t, e, n) {
2569
2661
  }
2570
2662
  function Ze(t, e, n) {
2571
2663
  const r = Xe(e);
2572
- return r === null ? null : Ar(t, r, n);
2664
+ return r === null ? null : Rr(t, r, n);
2573
2665
  }
2574
- function vr(t, e, n, r) {
2666
+ function Ar(t, e, n, r) {
2575
2667
  const s = Xe(e);
2576
2668
  if (s === null || !ge(s.downloadTokens))
2577
2669
  return null;
@@ -2579,12 +2671,12 @@ function vr(t, e, n, r) {
2579
2671
  if (o.length === 0)
2580
2672
  return null;
2581
2673
  const i = encodeURIComponent;
2582
- return o.split(",").map((l) => {
2583
- const g = t.bucket, f = t.fullPath, p = "/b/" + i(g) + "/o/" + i(f), m = j(p, n, r), w = We({
2674
+ return o.split(",").map((a) => {
2675
+ const u = t.bucket, p = t.fullPath, g = "/b/" + i(u) + "/o/" + i(p), m = j(g, n, r), E = We({
2584
2676
  alt: "media",
2585
- token: l
2677
+ token: a
2586
2678
  });
2587
- return m + w;
2679
+ return m + E;
2588
2680
  })[0];
2589
2681
  }
2590
2682
  function Dr(t, e) {
@@ -2620,28 +2712,28 @@ function Qe(t) {
2620
2712
  if (!t)
2621
2713
  throw pe();
2622
2714
  }
2623
- function Cr(t, e) {
2715
+ function Or(t, e) {
2624
2716
  function n(r, s) {
2625
2717
  const o = Ze(t, s, e);
2626
2718
  return Qe(o !== null), o;
2627
2719
  }
2628
2720
  return n;
2629
2721
  }
2630
- function Or(t, e) {
2722
+ function Cr(t, e) {
2631
2723
  function n(r, s) {
2632
2724
  const o = Ze(t, s, e);
2633
- return Qe(o !== null), vr(o, s, t.host, t._protocol);
2725
+ return Qe(o !== null), Ar(o, s, t.host, t._protocol);
2634
2726
  }
2635
2727
  return n;
2636
2728
  }
2637
2729
  function et(t) {
2638
2730
  function e(n, r) {
2639
2731
  let s;
2640
- return n.getStatus() === 401 ? /* This exact message string is the only consistent part of the */ /* server's error response that identifies it as an App Check error. */ n.getErrorText().includes("Firebase App Check token is invalid") ? s = jn() : s = Hn() : n.getStatus() === 402 ? s = Fn(t.bucket) : n.getStatus() === 403 ? s = Vn(t.path) : s = r, s.status = n.getStatus(), s.serverResponse = r.serverResponse, s;
2732
+ return n.getStatus() === 401 ? /* This exact message string is the only consistent part of the */ /* server's error response that identifies it as an App Check error. */ n.getErrorText().includes("Firebase App Check token is invalid") ? s = jn() : s = Fn() : n.getStatus() === 402 ? s = Hn(t.bucket) : n.getStatus() === 403 ? s = Vn(t.path) : s = r, s.status = n.getStatus(), s.serverResponse = r.serverResponse, s;
2641
2733
  }
2642
2734
  return e;
2643
2735
  }
2644
- function _e(t) {
2736
+ function be(t) {
2645
2737
  const e = et(t);
2646
2738
  function n(r, s) {
2647
2739
  let o = e(r, s);
@@ -2650,23 +2742,23 @@ function _e(t) {
2650
2742
  return n;
2651
2743
  }
2652
2744
  function Sr(t, e, n) {
2653
- const r = e.fullServerUrl(), s = j(r, t.host, t._protocol) + "?alt=media", o = "GET", i = t.maxOperationRetryTime, a = new X(s, o, (c, l) => l, i);
2654
- return a.errorHandler = _e(e), n !== void 0 && (a.headers.Range = `bytes=0-${n}`, a.successCodes = [
2745
+ const r = e.fullServerUrl(), s = j(r, t.host, t._protocol) + "?alt=media", o = "GET", i = t.maxOperationRetryTime, c = new X(s, o, (l, a) => a, i);
2746
+ return c.errorHandler = be(e), n !== void 0 && (c.headers.Range = `bytes=0-${n}`, c.successCodes = [
2655
2747
  200,
2656
2748
  206
2657
2749
  /* Partial Content */
2658
- ]), a;
2750
+ ]), c;
2659
2751
  }
2660
- function Nr(t, e, n) {
2661
- const r = e.fullServerUrl(), s = j(r, t.host, t._protocol), o = "GET", i = t.maxOperationRetryTime, a = new X(s, o, Or(t, n), i);
2662
- return a.errorHandler = _e(e), a;
2752
+ function kr(t, e, n) {
2753
+ const r = e.fullServerUrl(), s = j(r, t.host, t._protocol), o = "GET", i = t.maxOperationRetryTime, c = new X(s, o, Cr(t, n), i);
2754
+ return c.errorHandler = be(e), c;
2663
2755
  }
2664
- function kr(t, e) {
2756
+ function Nr(t, e) {
2665
2757
  const n = e.fullServerUrl(), r = j(n, t.host, t._protocol), s = "DELETE", o = t.maxOperationRetryTime;
2666
- function i(c, l) {
2758
+ function i(l, a) {
2667
2759
  }
2668
- const a = new X(r, s, i, o);
2669
- return a.successCodes = [200, 204], a.errorHandler = _e(e), a;
2760
+ const c = new X(r, s, i, o);
2761
+ return c.successCodes = [200, 204], c.errorHandler = be(e), c;
2670
2762
  }
2671
2763
  function Br(t, e) {
2672
2764
  return t && t.contentType || e && e.type() || "application/octet-stream";
@@ -2675,39 +2767,39 @@ function xr(t, e, n) {
2675
2767
  const r = Object.assign({}, n);
2676
2768
  return r.fullPath = t.path, r.size = e.size(), r.contentType || (r.contentType = Br(null, e)), r;
2677
2769
  }
2678
- function Ur(t, e, n, r, s) {
2770
+ function Pr(t, e, n, r, s) {
2679
2771
  const o = e.bucketOnlyServerUrl(), i = {
2680
2772
  "X-Goog-Upload-Protocol": "multipart"
2681
2773
  };
2682
- function a() {
2774
+ function c() {
2683
2775
  let I = "";
2684
2776
  for (let y = 0; y < 2; y++)
2685
2777
  I = I + Math.random().toString().slice(2);
2686
2778
  return I;
2687
2779
  }
2688
- const c = a();
2689
- i["Content-Type"] = "multipart/related; boundary=" + c;
2690
- const l = xr(e, r, s), g = Dr(l, n), f = "--" + c + `\r
2780
+ const l = c();
2781
+ i["Content-Type"] = "multipart/related; boundary=" + l;
2782
+ const a = xr(e, r, s), u = Dr(a, n), p = "--" + l + `\r
2691
2783
  Content-Type: application/json; charset=utf-8\r
2692
2784
  \r
2693
- ` + g + `\r
2694
- --` + c + `\r
2695
- Content-Type: ` + l.contentType + `\r
2785
+ ` + u + `\r
2786
+ --` + l + `\r
2787
+ Content-Type: ` + a.contentType + `\r
2696
2788
  \r
2697
- `, p = `\r
2698
- --` + c + "--", m = T.getBlob(f, r, p);
2789
+ `, g = `\r
2790
+ --` + l + "--", m = T.getBlob(p, r, g);
2699
2791
  if (m === null)
2700
2792
  throw Xn();
2701
- const w = { name: l.fullPath }, k = j(o, t.host, t._protocol), b = "POST", B = t.maxUploadRetryTime, D = new X(k, b, Cr(t, n), B);
2702
- return D.urlParams = w, D.headers = i, D.body = m.uploadData(), D.errorHandler = et(e), D;
2793
+ const E = { name: a.fullPath }, N = j(o, t.host, t._protocol), _ = "POST", B = t.maxUploadRetryTime, D = new X(N, _, Or(t, n), B);
2794
+ return D.urlParams = E, D.headers = i, D.body = m.uploadData(), D.errorHandler = et(e), D;
2703
2795
  }
2704
2796
  class tt {
2705
2797
  constructor() {
2706
- this.sent_ = !1, this.xhr_ = new XMLHttpRequest(), this.initXhr(), this.errorCode_ = O.NO_ERROR, this.sendPromise_ = new Promise((e) => {
2798
+ this.sent_ = !1, this.xhr_ = new XMLHttpRequest(), this.initXhr(), this.errorCode_ = C.NO_ERROR, this.sendPromise_ = new Promise((e) => {
2707
2799
  this.xhr_.addEventListener("abort", () => {
2708
- this.errorCode_ = O.ABORT, e();
2800
+ this.errorCode_ = C.ABORT, e();
2709
2801
  }), this.xhr_.addEventListener("error", () => {
2710
- this.errorCode_ = O.NETWORK_ERROR, e();
2802
+ this.errorCode_ = C.NETWORK_ERROR, e();
2711
2803
  }), this.xhr_.addEventListener("load", () => {
2712
2804
  e();
2713
2805
  });
@@ -2715,7 +2807,7 @@ class tt {
2715
2807
  }
2716
2808
  send(e, n, r, s) {
2717
2809
  if (this.sent_)
2718
- throw P("cannot .send() more than once");
2810
+ throw U("cannot .send() more than once");
2719
2811
  if (this.sent_ = !0, this.xhr_.open(n, e, !0), s !== void 0)
2720
2812
  for (const o in s)
2721
2813
  s.hasOwnProperty(o) && this.xhr_.setRequestHeader(o, s[o].toString());
@@ -2723,12 +2815,12 @@ class tt {
2723
2815
  }
2724
2816
  getErrorCode() {
2725
2817
  if (!this.sent_)
2726
- throw P("cannot .getErrorCode() before sending");
2818
+ throw U("cannot .getErrorCode() before sending");
2727
2819
  return this.errorCode_;
2728
2820
  }
2729
2821
  getStatus() {
2730
2822
  if (!this.sent_)
2731
- throw P("cannot .getStatus() before sending");
2823
+ throw U("cannot .getStatus() before sending");
2732
2824
  try {
2733
2825
  return this.xhr_.status;
2734
2826
  } catch {
@@ -2737,12 +2829,12 @@ class tt {
2737
2829
  }
2738
2830
  getResponse() {
2739
2831
  if (!this.sent_)
2740
- throw P("cannot .getResponse() before sending");
2832
+ throw U("cannot .getResponse() before sending");
2741
2833
  return this.xhr_.response;
2742
2834
  }
2743
2835
  getErrorText() {
2744
2836
  if (!this.sent_)
2745
- throw P("cannot .getErrorText() before sending");
2837
+ throw U("cannot .getErrorText() before sending");
2746
2838
  return this.xhr_.statusText;
2747
2839
  }
2748
2840
  /** Aborts the request. */
@@ -2759,13 +2851,13 @@ class tt {
2759
2851
  this.xhr_.upload != null && this.xhr_.upload.removeEventListener("progress", e);
2760
2852
  }
2761
2853
  }
2762
- class Pr extends tt {
2854
+ class Ur extends tt {
2763
2855
  initXhr() {
2764
2856
  this.xhr_.responseType = "text";
2765
2857
  }
2766
2858
  }
2767
- function be() {
2768
- return new Pr();
2859
+ function _e() {
2860
+ return new Ur();
2769
2861
  }
2770
2862
  class Lr extends tt {
2771
2863
  initXhr() {
@@ -2791,9 +2883,9 @@ function Mr() {
2791
2883
  * See the License for the specific language governing permissions and
2792
2884
  * limitations under the License.
2793
2885
  */
2794
- class N {
2886
+ class k {
2795
2887
  constructor(e, n) {
2796
- this._service = e, n instanceof E ? this._location = n : this._location = E.makeFromUrl(n, e.host);
2888
+ this._service = e, n instanceof w ? this._location = n : this._location = w.makeFromUrl(n, e.host);
2797
2889
  }
2798
2890
  /**
2799
2891
  * Returns the URL for the bucket and path this object references,
@@ -2804,13 +2896,13 @@ class N {
2804
2896
  return "gs://" + this._location.bucket + "/" + this._location.path;
2805
2897
  }
2806
2898
  _newRef(e, n) {
2807
- return new N(e, n);
2899
+ return new k(e, n);
2808
2900
  }
2809
2901
  /**
2810
2902
  * A reference to the root of this object's bucket.
2811
2903
  */
2812
2904
  get root() {
2813
- const e = new E(this._location.bucket, "");
2905
+ const e = new w(this._location.bucket, "");
2814
2906
  return this._newRef(this._service, e);
2815
2907
  }
2816
2908
  /**
@@ -2843,11 +2935,11 @@ class N {
2843
2935
  * this reference is the root.
2844
2936
  */
2845
2937
  get parent() {
2846
- const e = Er(this._location.path);
2938
+ const e = wr(this._location.path);
2847
2939
  if (e === null)
2848
2940
  return null;
2849
- const n = new E(this._location.bucket, e);
2850
- return new N(this._service, n);
2941
+ const n = new w(this._location.bucket, e);
2942
+ return new k(this._service, n);
2851
2943
  }
2852
2944
  /**
2853
2945
  * Utility function to throw an error in methods that do not accept a root reference.
@@ -2865,18 +2957,18 @@ function $r(t, e) {
2865
2957
  r.slice(0, e)
2866
2958
  ) : r);
2867
2959
  }
2868
- function Fr(t, e, n) {
2960
+ function Hr(t, e, n) {
2869
2961
  t._throwIfRoot("uploadBytes");
2870
- const r = Ur(t.storage, t._location, Ye(), new T(e, !0), n);
2871
- return t.storage.makeRequestWithTokens(r, be).then((s) => ({
2962
+ const r = Pr(t.storage, t._location, Ye(), new T(e, !0), n);
2963
+ return t.storage.makeRequestWithTokens(r, _e).then((s) => ({
2872
2964
  metadata: s,
2873
2965
  ref: t
2874
2966
  }));
2875
2967
  }
2876
- function Hr(t) {
2968
+ function Fr(t) {
2877
2969
  t._throwIfRoot("getDownloadURL");
2878
- const e = Nr(t.storage, t._location, Ye());
2879
- return t.storage.makeRequestWithTokens(e, be).then((n) => {
2970
+ const e = kr(t.storage, t._location, Ye());
2971
+ return t.storage.makeRequestWithTokens(e, _e).then((n) => {
2880
2972
  if (n === null)
2881
2973
  throw Jn();
2882
2974
  return n;
@@ -2884,12 +2976,12 @@ function Hr(t) {
2884
2976
  }
2885
2977
  function jr(t) {
2886
2978
  t._throwIfRoot("deleteObject");
2887
- const e = kr(t.storage, t._location);
2888
- return t.storage.makeRequestWithTokens(e, be);
2979
+ const e = Nr(t.storage, t._location);
2980
+ return t.storage.makeRequestWithTokens(e, _e);
2889
2981
  }
2890
2982
  function Vr(t, e) {
2891
- const n = wr(t._location.path, e), r = new E(t._location.bucket, n);
2892
- return new N(t.storage, r);
2983
+ const n = Er(t._location.path, e), r = new w(t._location.bucket, n);
2984
+ return new k(t.storage, r);
2893
2985
  }
2894
2986
  /**
2895
2987
  * @license
@@ -2911,14 +3003,14 @@ function zr(t) {
2911
3003
  return /^[A-Za-z]+:\/\//.test(t);
2912
3004
  }
2913
3005
  function Wr(t, e) {
2914
- return new N(t, e);
3006
+ return new k(t, e);
2915
3007
  }
2916
3008
  function nt(t, e) {
2917
3009
  if (t instanceof ye) {
2918
3010
  const n = t;
2919
3011
  if (n._bucket == null)
2920
3012
  throw Kn();
2921
- const r = new N(n, n._bucket);
3013
+ const r = new k(n, n._bucket);
2922
3014
  return e != null ? nt(r, e) : r;
2923
3015
  } else
2924
3016
  return e !== void 0 ? Vr(t, e) : t;
@@ -2927,22 +3019,22 @@ function qr(t, e) {
2927
3019
  if (e && zr(e)) {
2928
3020
  if (t instanceof ye)
2929
3021
  return Wr(t, e);
2930
- throw de("To use ref(service, url), the first argument must be a Storage instance.");
3022
+ throw he("To use ref(service, url), the first argument must be a Storage instance.");
2931
3023
  } else
2932
3024
  return nt(t, e);
2933
3025
  }
2934
3026
  function Se(t, e) {
2935
3027
  const n = e == null ? void 0 : e[Ve];
2936
- return n == null ? null : E.makeFromBucketSpec(n, t);
3028
+ return n == null ? null : w.makeFromBucketSpec(n, t);
2937
3029
  }
2938
3030
  function Gr(t, e, n, r = {}) {
2939
3031
  t.host = `${e}:${n}`, t._protocol = "http";
2940
3032
  const { mockUserToken: s } = r;
2941
- s && (t._overrideAuthToken = typeof s == "string" ? s : _t(s, t.app.options.projectId));
3033
+ s && (t._overrideAuthToken = typeof s == "string" ? s : bt(s, t.app.options.projectId));
2942
3034
  }
2943
3035
  class ye {
2944
3036
  constructor(e, n, r, s, o) {
2945
- this.app = e, this._authProvider = n, this._appCheckProvider = r, this._url = s, this._firebaseVersion = o, this._bucket = null, this._host = je, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = Ln, this._maxUploadRetryTime = Mn, this._requests = /* @__PURE__ */ new Set(), s != null ? this._bucket = E.makeFromBucketSpec(s, this._host) : this._bucket = Se(this._host, this.app.options);
3037
+ this.app = e, this._authProvider = n, this._appCheckProvider = r, this._url = s, this._firebaseVersion = o, this._bucket = null, this._host = je, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = Ln, this._maxUploadRetryTime = Mn, this._requests = /* @__PURE__ */ new Set(), s != null ? this._bucket = w.makeFromBucketSpec(s, this._host) : this._bucket = Se(this._host, this.app.options);
2946
3038
  }
2947
3039
  /**
2948
3040
  * The host string for this service, in the form of `host` or
@@ -2952,7 +3044,7 @@ class ye {
2952
3044
  return this._host;
2953
3045
  }
2954
3046
  set host(e) {
2955
- this._host = e, this._url != null ? this._bucket = E.makeFromBucketSpec(this._url, e) : this._bucket = Se(e, this.app.options);
3047
+ this._host = e, this._url != null ? this._bucket = w.makeFromBucketSpec(this._url, e) : this._bucket = Se(e, this.app.options);
2956
3048
  }
2957
3049
  /**
2958
3050
  * The maximum time to retry uploads in milliseconds.
@@ -2961,7 +3053,7 @@ class ye {
2961
3053
  return this._maxUploadRetryTime;
2962
3054
  }
2963
3055
  set maxUploadRetryTime(e) {
2964
- Oe(
3056
+ Ce(
2965
3057
  "time",
2966
3058
  /* minValue=*/
2967
3059
  0,
@@ -2978,7 +3070,7 @@ class ye {
2978
3070
  return this._maxOperationRetryTime;
2979
3071
  }
2980
3072
  set maxOperationRetryTime(e) {
2981
- Oe(
3073
+ Ce(
2982
3074
  "time",
2983
3075
  /* minValue=*/
2984
3076
  0,
@@ -3013,7 +3105,7 @@ class ye {
3013
3105
  * at the given Location.
3014
3106
  */
3015
3107
  _makeStorageReference(e) {
3016
- return new N(this, e);
3108
+ return new k(this, e);
3017
3109
  }
3018
3110
  /**
3019
3111
  * @param requestInfo - HTTP RequestInfo object
@@ -3035,7 +3127,7 @@ class ye {
3035
3127
  return this._makeRequest(e, n, r, s).getPromise();
3036
3128
  }
3037
3129
  }
3038
- const Ne = "@firebase/storage", ke = "0.11.2";
3130
+ const ke = "@firebase/storage", Ne = "0.11.2";
3039
3131
  /**
3040
3132
  * @license
3041
3133
  * Copyright 2020 Google LLC
@@ -3053,20 +3145,20 @@ const Ne = "@firebase/storage", ke = "0.11.2";
3053
3145
  * limitations under the License.
3054
3146
  */
3055
3147
  const rt = "storage";
3056
- function ds(t, e, n) {
3057
- return t = U(t), Fr(t, e, n);
3148
+ function hs(t, e, n) {
3149
+ return t = P(t), Hr(t, e, n);
3058
3150
  }
3059
- function fs(t) {
3060
- return t = U(t), Hr(t);
3151
+ function ds(t) {
3152
+ return t = P(t), Fr(t);
3061
3153
  }
3062
- function ps(t) {
3063
- return t = U(t), jr(t);
3154
+ function fs(t) {
3155
+ return t = P(t), jr(t);
3064
3156
  }
3065
- function gs(t, e) {
3066
- return t = U(t), qr(t, e);
3157
+ function ps(t, e) {
3158
+ return t = P(t), qr(t, e);
3067
3159
  }
3068
- function ms(t = Dn(), e) {
3069
- t = U(t);
3160
+ function gs(t = Dn(), e) {
3161
+ t = P(t);
3070
3162
  const r = In(t, rt).getImmediate({
3071
3163
  identifier: e
3072
3164
  }), s = gt("storage");
@@ -3091,12 +3183,12 @@ function Kr(t, e, n, r = {}) {
3091
3183
  * See the License for the specific language governing permissions and
3092
3184
  * limitations under the License.
3093
3185
  */
3094
- function _s(t, e) {
3095
- return t = U(t), $r(t, e);
3186
+ function ms(t, e) {
3187
+ return t = P(t), $r(t, e);
3096
3188
  }
3097
3189
  function Xr(t, { instanceIdentifier: e }) {
3098
3190
  const n = t.getProvider("app").getImmediate(), r = t.getProvider("auth-internal"), s = t.getProvider("app-check-internal");
3099
- return new ye(n, r, s, e, An);
3191
+ return new ye(n, r, s, e, Rn);
3100
3192
  }
3101
3193
  function Jr() {
3102
3194
  G(new $(
@@ -3104,44 +3196,69 @@ function Jr() {
3104
3196
  Xr,
3105
3197
  "PUBLIC"
3106
3198
  /* ComponentType.PUBLIC */
3107
- ).setMultipleInstances(!0)), L(Ne, ke, ""), L(Ne, ke, "esm2017");
3199
+ ).setMultipleInstances(!0)), L(ke, Ne, ""), L(ke, Ne, "esm2017");
3108
3200
  }
3109
3201
  Jr();
3202
+ const de = ot(null), bs = () => de.value;
3203
+ function _s(t) {
3204
+ de.value || (de.value = t);
3205
+ }
3206
+ const ys = Object.freeze({
3207
+ jb: {
3208
+ lat: 1.492659,
3209
+ lng: 103.7413591
3210
+ }
3211
+ });
3212
+ function ws(t) {
3213
+ return [t.lng, t.lat];
3214
+ }
3215
+ function Es(t) {
3216
+ if (t.length !== 2)
3217
+ throw Error("Invalid coordinate array");
3218
+ return {
3219
+ lat: t[1],
3220
+ lng: t[0]
3221
+ };
3222
+ }
3110
3223
  export {
3111
- _s as A,
3112
- ds as B,
3224
+ ps as A,
3225
+ ms as B,
3113
3226
  $ as C,
3114
- fs as D,
3227
+ hs as D,
3115
3228
  Le as E,
3116
3229
  x as F,
3117
- ps as G,
3118
- u as L,
3119
- An as S,
3230
+ ds as G,
3231
+ fs as H,
3232
+ ys as I,
3233
+ Es as J,
3234
+ ws as K,
3235
+ h as L,
3236
+ Rn as S,
3120
3237
  G as _,
3121
- is as a,
3122
- os as b,
3123
- U as c,
3124
- us as d,
3238
+ os as a,
3239
+ ss as b,
3240
+ P as c,
3241
+ ls as d,
3125
3242
  In as e,
3126
3243
  pt as f,
3127
- rs as g,
3244
+ ns as g,
3128
3245
  Dn as h,
3129
- ss as i,
3130
- Pe as j,
3131
- ie as k,
3132
- xt as l,
3133
- lt as m,
3134
- as as n,
3135
- cs as o,
3136
- hs as p,
3137
- ls as q,
3246
+ rs as i,
3247
+ Zr as j,
3248
+ Ue as k,
3249
+ oe as l,
3250
+ xt as m,
3251
+ lt as n,
3252
+ is as o,
3253
+ as as p,
3254
+ cs as q,
3138
3255
  L as r,
3139
- vn as s,
3140
- ms as t,
3141
- Zr as u,
3142
- Qr as v,
3143
- es as w,
3144
- ns as x,
3145
- ts as y,
3146
- gs as z
3256
+ us as s,
3257
+ An as t,
3258
+ gs as u,
3259
+ bs as v,
3260
+ _s as w,
3261
+ Qr as x,
3262
+ es as y,
3263
+ ts as z
3147
3264
  };