@feedmepos/mf-payment 1.5.0-dev → 1.5.1
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.
- package/dist/{OnboardForm-Do6ar3sx.js → OnboardForm-B1CUhfcf.js} +1 -1
- package/dist/{OnboardForm-Cc6JOr09.js → OnboardForm-BZzPn2e6.js} +1 -1
- package/dist/{PayoutAccount-ChGlsZ-O.js → PayoutAccount-BWiAJkvR.js} +1 -1
- package/dist/{PayoutAccount--1J5ubvX.js → PayoutAccount-DyukM49K.js} +1 -1
- package/dist/{app-D6U0uODp.js → app-Bx6EdPRX.js} +504 -504
- package/dist/app.js +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-CVYMFqu9.js → payout-account-D0SSJ463.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createRouter as
|
|
3
|
-
import { computed as
|
|
4
|
-
import { useCoreStore as je, useI18n as
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import { components as
|
|
7
|
-
const
|
|
1
|
+
import { routes as Nn, i18nMessages as Ln } from "@feedmepos/mf-financing";
|
|
2
|
+
import { createRouter as Mn, createWebHistory as Un, useRouter as xn, useRoute as Bn } from "vue-router";
|
|
3
|
+
import { computed as Nt, watch as q, defineComponent as Lt, ref as Fn, resolveComponent as Mt, openBlock as Ut, createBlock as xt, h as $n, onMounted as Hn, onBeforeMount as Vn, unref as jn } from "vue";
|
|
4
|
+
import { useCoreStore as je, useI18n as Wn } from "@feedmepos/mf-common";
|
|
5
|
+
import { defineStore as zn } from "pinia";
|
|
6
|
+
import { components as Gn } from "@feedmepos/ui-library";
|
|
7
|
+
const qn = {
|
|
8
8
|
components: {
|
|
9
9
|
select: "Select filter entity",
|
|
10
10
|
restaurant: "Restaurant",
|
|
@@ -179,9 +179,9 @@ const Kn = {
|
|
|
179
179
|
service2: "SoftPOS Card Payment"
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
+
}, Kn = {
|
|
183
|
+
payment: qn
|
|
182
184
|
}, Jn = {
|
|
183
|
-
payment: Kn
|
|
184
|
-
}, Yn = {
|
|
185
185
|
components: {
|
|
186
186
|
select: "选择筛选对象",
|
|
187
187
|
restaurant: "餐厅",
|
|
@@ -356,8 +356,8 @@ const Kn = {
|
|
|
356
356
|
service2: "SoftPOS银行卡支付"
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
},
|
|
360
|
-
payment:
|
|
359
|
+
}, Yn = {
|
|
360
|
+
payment: Jn
|
|
361
361
|
}, K = [
|
|
362
362
|
{
|
|
363
363
|
path: "/admin/restaurants",
|
|
@@ -384,7 +384,7 @@ const Kn = {
|
|
|
384
384
|
sidebarDisplay: "Payout Accounts",
|
|
385
385
|
section: "payment-gateway"
|
|
386
386
|
},
|
|
387
|
-
component: () => import("./PayoutAccount-
|
|
387
|
+
component: () => import("./PayoutAccount-BWiAJkvR.js")
|
|
388
388
|
},
|
|
389
389
|
{
|
|
390
390
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -411,7 +411,7 @@ const Kn = {
|
|
|
411
411
|
meta: {
|
|
412
412
|
parent: "mf-payment-admin.onboard-submission"
|
|
413
413
|
},
|
|
414
|
-
component: () => import("./OnboardForm-
|
|
414
|
+
component: () => import("./OnboardForm-B1CUhfcf.js")
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
417
|
path: "/admin/terminal/pos",
|
|
@@ -517,7 +517,7 @@ const Kn = {
|
|
|
517
517
|
{
|
|
518
518
|
path: "/payout-account",
|
|
519
519
|
name: "mf-payment-payout-account",
|
|
520
|
-
component: () => import("./PayoutAccount
|
|
520
|
+
component: () => import("./PayoutAccount-DyukM49K.js"),
|
|
521
521
|
meta: {
|
|
522
522
|
sidebarDisplay: "i18n:payment.routes.payout_account"
|
|
523
523
|
}
|
|
@@ -535,7 +535,7 @@ const Kn = {
|
|
|
535
535
|
path: "/onboard-submission/:type/:submission?",
|
|
536
536
|
name: "mf-payment-onboard-submission-form",
|
|
537
537
|
props: !0,
|
|
538
|
-
component: () => import("./OnboardForm-
|
|
538
|
+
component: () => import("./OnboardForm-BZzPn2e6.js"),
|
|
539
539
|
meta: {
|
|
540
540
|
parent: "mf-payment-onboard-submission"
|
|
541
541
|
}
|
|
@@ -573,29 +573,29 @@ const Kn = {
|
|
|
573
573
|
meta: {
|
|
574
574
|
parent: "mf-payment-settlement"
|
|
575
575
|
}
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
path: "/financing",
|
|
579
|
-
name: "mf-payment-financing",
|
|
580
|
-
component: Ln,
|
|
581
|
-
meta: {
|
|
582
|
-
useChildrenRoutes: !0
|
|
583
|
-
},
|
|
584
|
-
children: Nt.map((n) => ({
|
|
585
|
-
...n,
|
|
586
|
-
meta: {
|
|
587
|
-
...n.meta,
|
|
588
|
-
section: "financing"
|
|
589
|
-
},
|
|
590
|
-
path: `/financing${n.path}`
|
|
591
|
-
}))
|
|
592
576
|
}
|
|
577
|
+
// {
|
|
578
|
+
// path: "/financing",
|
|
579
|
+
// name: "mf-payment-financing",
|
|
580
|
+
// component: FinacingApp,
|
|
581
|
+
// meta: {
|
|
582
|
+
// useChildrenRoutes: true,
|
|
583
|
+
// },
|
|
584
|
+
// children: financingRoutes.map((route) => ({
|
|
585
|
+
// ...route,
|
|
586
|
+
// meta: {
|
|
587
|
+
// ...route.meta,
|
|
588
|
+
// section: "financing",
|
|
589
|
+
// },
|
|
590
|
+
// path: `/financing${route.path}`,
|
|
591
|
+
// })),
|
|
592
|
+
// },
|
|
593
593
|
];
|
|
594
|
-
console.log(
|
|
595
|
-
const
|
|
594
|
+
console.log(Nn);
|
|
595
|
+
const Xn = zn("mf-payment-iframe", () => {
|
|
596
596
|
const n = {
|
|
597
597
|
isIframe: !1
|
|
598
|
-
}, e =
|
|
598
|
+
}, e = Nt(() => n);
|
|
599
599
|
function t(r) {
|
|
600
600
|
n.isIframe = r;
|
|
601
601
|
}
|
|
@@ -644,7 +644,7 @@ const Bt = function(n) {
|
|
|
644
644
|
i < 128 ? e[t++] = i : i < 2048 ? (e[t++] = i >> 6 | 192, e[t++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < n.length && (n.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (n.charCodeAt(++r) & 1023), e[t++] = i >> 18 | 240, e[t++] = i >> 12 & 63 | 128, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128) : (e[t++] = i >> 12 | 224, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128);
|
|
645
645
|
}
|
|
646
646
|
return e;
|
|
647
|
-
},
|
|
647
|
+
}, Qn = function(n) {
|
|
648
648
|
const e = [];
|
|
649
649
|
let t = 0, r = 0;
|
|
650
650
|
for (; t < n.length; ) {
|
|
@@ -663,7 +663,7 @@ const Bt = function(n) {
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
return e.join("");
|
|
666
|
-
},
|
|
666
|
+
}, Ft = {
|
|
667
667
|
/**
|
|
668
668
|
* Maps bytes to characters.
|
|
669
669
|
*/
|
|
@@ -748,7 +748,7 @@ const Bt = function(n) {
|
|
|
748
748
|
* @return string representing the decoded value.
|
|
749
749
|
*/
|
|
750
750
|
decodeString(n, e) {
|
|
751
|
-
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) :
|
|
751
|
+
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : Qn(this.decodeStringToByteArray(n, e));
|
|
752
752
|
},
|
|
753
753
|
/**
|
|
754
754
|
* Base64-decode a string.
|
|
@@ -775,13 +775,13 @@ const Bt = function(n) {
|
|
|
775
775
|
++i;
|
|
776
776
|
const d = i < n.length ? t[n.charAt(i)] : 64;
|
|
777
777
|
if (++i, s == null || c == null || l == null || d == null)
|
|
778
|
-
throw new
|
|
778
|
+
throw new Zn();
|
|
779
779
|
const p = s << 2 | c >> 4;
|
|
780
780
|
if (r.push(p), l !== 64) {
|
|
781
781
|
const m = c << 4 & 240 | l >> 2;
|
|
782
782
|
if (r.push(m), d !== 64) {
|
|
783
|
-
const
|
|
784
|
-
r.push(
|
|
783
|
+
const B = l << 6 & 192 | d;
|
|
784
|
+
r.push(B);
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
}
|
|
@@ -800,19 +800,19 @@ const Bt = function(n) {
|
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
|
-
class
|
|
803
|
+
class Zn extends Error {
|
|
804
804
|
constructor() {
|
|
805
805
|
super(...arguments), this.name = "DecodeBase64StringError";
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
const
|
|
808
|
+
const er = function(n) {
|
|
809
809
|
const e = Bt(n);
|
|
810
|
-
return
|
|
810
|
+
return Ft.encodeByteArray(e, !0);
|
|
811
|
+
}, $t = function(n) {
|
|
812
|
+
return er(n).replace(/\./g, "");
|
|
811
813
|
}, Ht = function(n) {
|
|
812
|
-
return tr(n).replace(/\./g, "");
|
|
813
|
-
}, Vt = function(n) {
|
|
814
814
|
try {
|
|
815
|
-
return
|
|
815
|
+
return Ft.decodeString(n, !0);
|
|
816
816
|
} catch (e) {
|
|
817
817
|
console.error("base64Decode failed: ", e);
|
|
818
818
|
}
|
|
@@ -834,7 +834,7 @@ const tr = function(n) {
|
|
|
834
834
|
* See the License for the specific language governing permissions and
|
|
835
835
|
* limitations under the License.
|
|
836
836
|
*/
|
|
837
|
-
function
|
|
837
|
+
function tr() {
|
|
838
838
|
if (typeof self < "u")
|
|
839
839
|
return self;
|
|
840
840
|
if (typeof window < "u")
|
|
@@ -859,13 +859,13 @@ function nr() {
|
|
|
859
859
|
* See the License for the specific language governing permissions and
|
|
860
860
|
* limitations under the License.
|
|
861
861
|
*/
|
|
862
|
-
const
|
|
862
|
+
const nr = () => tr().__FIREBASE_DEFAULTS__, rr = () => {
|
|
863
863
|
if (typeof process > "u" || typeof process.env > "u")
|
|
864
864
|
return;
|
|
865
865
|
const n = process.env.__FIREBASE_DEFAULTS__;
|
|
866
866
|
if (n)
|
|
867
867
|
return JSON.parse(n);
|
|
868
|
-
},
|
|
868
|
+
}, ir = () => {
|
|
869
869
|
if (typeof document > "u")
|
|
870
870
|
return;
|
|
871
871
|
let n;
|
|
@@ -874,22 +874,22 @@ const rr = () => nr().__FIREBASE_DEFAULTS__, ir = () => {
|
|
|
874
874
|
} catch {
|
|
875
875
|
return;
|
|
876
876
|
}
|
|
877
|
-
const e = n &&
|
|
877
|
+
const e = n && Ht(n[1]);
|
|
878
878
|
return e && JSON.parse(e);
|
|
879
879
|
}, We = () => {
|
|
880
880
|
try {
|
|
881
|
-
return
|
|
881
|
+
return nr() || rr() || ir();
|
|
882
882
|
} catch (n) {
|
|
883
883
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
|
|
884
884
|
return;
|
|
885
885
|
}
|
|
886
|
-
},
|
|
886
|
+
}, sr = (n) => {
|
|
887
887
|
var e, t;
|
|
888
888
|
return (t = (e = We()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
|
|
889
|
-
},
|
|
889
|
+
}, Vt = () => {
|
|
890
890
|
var n;
|
|
891
891
|
return (n = We()) === null || n === void 0 ? void 0 : n.config;
|
|
892
|
-
},
|
|
892
|
+
}, jt = (n) => {
|
|
893
893
|
var e;
|
|
894
894
|
return (e = We()) === null || e === void 0 ? void 0 : e[`_${n}`];
|
|
895
895
|
};
|
|
@@ -909,7 +909,7 @@ const rr = () => nr().__FIREBASE_DEFAULTS__, ir = () => {
|
|
|
909
909
|
* See the License for the specific language governing permissions and
|
|
910
910
|
* limitations under the License.
|
|
911
911
|
*/
|
|
912
|
-
class
|
|
912
|
+
class ar {
|
|
913
913
|
constructor() {
|
|
914
914
|
this.reject = () => {
|
|
915
915
|
}, this.resolve = () => {
|
|
@@ -948,33 +948,33 @@ class or {
|
|
|
948
948
|
function g() {
|
|
949
949
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function or() {
|
|
952
952
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
|
953
953
|
// just to deal with this case would probably be a bad idea.
|
|
954
954
|
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(g());
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function cr() {
|
|
957
957
|
return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function lr() {
|
|
960
960
|
const n = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
|
|
961
961
|
return typeof n == "object" && n.id !== void 0;
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function ur() {
|
|
964
964
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function dr() {
|
|
967
967
|
const n = g();
|
|
968
968
|
return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function hr() {
|
|
971
971
|
try {
|
|
972
972
|
return typeof indexedDB == "object";
|
|
973
973
|
} catch {
|
|
974
974
|
return !1;
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function fr() {
|
|
978
978
|
return new Promise((n, e) => {
|
|
979
979
|
try {
|
|
980
980
|
let t = !0;
|
|
@@ -1008,10 +1008,10 @@ function pr() {
|
|
|
1008
1008
|
* See the License for the specific language governing permissions and
|
|
1009
1009
|
* limitations under the License.
|
|
1010
1010
|
*/
|
|
1011
|
-
const
|
|
1011
|
+
const pr = "FirebaseError";
|
|
1012
1012
|
class L extends Error {
|
|
1013
1013
|
constructor(e, t, r) {
|
|
1014
|
-
super(t), this.code = e, this.customData = r, this.name =
|
|
1014
|
+
super(t), this.code = e, this.customData = r, this.name = pr, Object.setPrototypeOf(this, L.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Z.prototype.create);
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
1017
|
class Z {
|
|
@@ -1019,18 +1019,18 @@ class Z {
|
|
|
1019
1019
|
this.service = e, this.serviceName = t, this.errors = r;
|
|
1020
1020
|
}
|
|
1021
1021
|
create(e, ...t) {
|
|
1022
|
-
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ?
|
|
1022
|
+
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? mr(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
|
|
1023
1023
|
return new L(i, c, r);
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1027
|
-
return n.replace(
|
|
1026
|
+
function mr(n, e) {
|
|
1027
|
+
return n.replace(gr, (t, r) => {
|
|
1028
1028
|
const i = e[r];
|
|
1029
1029
|
return i != null ? String(i) : `<${r}?>`;
|
|
1030
1030
|
});
|
|
1031
1031
|
}
|
|
1032
|
-
const
|
|
1033
|
-
function
|
|
1032
|
+
const gr = /\{\$([^}]+)}/g;
|
|
1033
|
+
function _r(n) {
|
|
1034
1034
|
for (const e in n)
|
|
1035
1035
|
if (Object.prototype.hasOwnProperty.call(n, e))
|
|
1036
1036
|
return !1;
|
|
@@ -1082,11 +1082,11 @@ function ee(n) {
|
|
|
1082
1082
|
}) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
|
|
1083
1083
|
return e.length ? "&" + e.join("&") : "";
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1086
|
-
const t = new
|
|
1085
|
+
function yr(n, e) {
|
|
1086
|
+
const t = new vr(n, e);
|
|
1087
1087
|
return t.subscribe.bind(t);
|
|
1088
1088
|
}
|
|
1089
|
-
class
|
|
1089
|
+
class vr {
|
|
1090
1090
|
/**
|
|
1091
1091
|
* @param executor Function which can make calls to a single Observer
|
|
1092
1092
|
* as a proxy.
|
|
@@ -1124,7 +1124,7 @@ class br {
|
|
|
1124
1124
|
let i;
|
|
1125
1125
|
if (e === void 0 && t === void 0 && r === void 0)
|
|
1126
1126
|
throw new Error("Missing Observer.");
|
|
1127
|
-
|
|
1127
|
+
br(e, [
|
|
1128
1128
|
"next",
|
|
1129
1129
|
"error",
|
|
1130
1130
|
"complete"
|
|
@@ -1170,7 +1170,7 @@ class br {
|
|
|
1170
1170
|
}));
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function br(n, e) {
|
|
1174
1174
|
if (typeof n != "object" || n === null)
|
|
1175
1175
|
return !1;
|
|
1176
1176
|
for (const t of e)
|
|
@@ -1255,7 +1255,7 @@ const M = "[DEFAULT]";
|
|
|
1255
1255
|
* See the License for the specific language governing permissions and
|
|
1256
1256
|
* limitations under the License.
|
|
1257
1257
|
*/
|
|
1258
|
-
class
|
|
1258
|
+
class Ir {
|
|
1259
1259
|
constructor(e, t) {
|
|
1260
1260
|
this.name = e, this.container = t, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
|
|
1261
1261
|
}
|
|
@@ -1266,7 +1266,7 @@ class wr {
|
|
|
1266
1266
|
get(e) {
|
|
1267
1267
|
const t = this.normalizeInstanceIdentifier(e);
|
|
1268
1268
|
if (!this.instancesDeferred.has(t)) {
|
|
1269
|
-
const r = new
|
|
1269
|
+
const r = new ar();
|
|
1270
1270
|
if (this.instancesDeferred.set(t, r), this.isInitialized(t) || this.shouldAutoInitialize())
|
|
1271
1271
|
try {
|
|
1272
1272
|
const i = this.getOrInitializeService({
|
|
@@ -1306,7 +1306,7 @@ class wr {
|
|
|
1306
1306
|
if (this.component)
|
|
1307
1307
|
throw Error(`Component for ${this.name} has already been provided`);
|
|
1308
1308
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
|
1309
|
-
if (
|
|
1309
|
+
if (Er(e))
|
|
1310
1310
|
try {
|
|
1311
1311
|
this.getOrInitializeService({ instanceIdentifier: M });
|
|
1312
1312
|
} catch {
|
|
@@ -1393,7 +1393,7 @@ class wr {
|
|
|
1393
1393
|
getOrInitializeService({ instanceIdentifier: e, options: t = {} }) {
|
|
1394
1394
|
let r = this.instances.get(e);
|
|
1395
1395
|
if (!r && this.component && (r = this.component.instanceFactory(this.container, {
|
|
1396
|
-
instanceIdentifier:
|
|
1396
|
+
instanceIdentifier: wr(e),
|
|
1397
1397
|
options: t
|
|
1398
1398
|
}), this.instances.set(e, r), this.instancesOptions.set(e, t), this.invokeOnInitCallbacks(r, e), this.component.onInstanceCreated))
|
|
1399
1399
|
try {
|
|
@@ -1409,10 +1409,10 @@ class wr {
|
|
|
1409
1409
|
return !!this.component && this.component.instantiationMode !== "EXPLICIT";
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1412
|
+
function wr(n) {
|
|
1413
1413
|
return n === M ? void 0 : n;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function Er(n) {
|
|
1416
1416
|
return n.instantiationMode === "EAGER";
|
|
1417
1417
|
}
|
|
1418
1418
|
/**
|
|
@@ -1431,7 +1431,7 @@ function Tr(n) {
|
|
|
1431
1431
|
* See the License for the specific language governing permissions and
|
|
1432
1432
|
* limitations under the License.
|
|
1433
1433
|
*/
|
|
1434
|
-
class
|
|
1434
|
+
class Tr {
|
|
1435
1435
|
constructor(e) {
|
|
1436
1436
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
|
1437
1437
|
}
|
|
@@ -1463,7 +1463,7 @@ class Sr {
|
|
|
1463
1463
|
getProvider(e) {
|
|
1464
1464
|
if (this.providers.has(e))
|
|
1465
1465
|
return this.providers.get(e);
|
|
1466
|
-
const t = new
|
|
1466
|
+
const t = new Ir(e, this);
|
|
1467
1467
|
return this.providers.set(e, t), t;
|
|
1468
1468
|
}
|
|
1469
1469
|
getProviders() {
|
|
@@ -1490,14 +1490,14 @@ var f;
|
|
|
1490
1490
|
(function(n) {
|
|
1491
1491
|
n[n.DEBUG = 0] = "DEBUG", n[n.VERBOSE = 1] = "VERBOSE", n[n.INFO = 2] = "INFO", n[n.WARN = 3] = "WARN", n[n.ERROR = 4] = "ERROR", n[n.SILENT = 5] = "SILENT";
|
|
1492
1492
|
})(f || (f = {}));
|
|
1493
|
-
const
|
|
1493
|
+
const Sr = {
|
|
1494
1494
|
debug: f.DEBUG,
|
|
1495
1495
|
verbose: f.VERBOSE,
|
|
1496
1496
|
info: f.INFO,
|
|
1497
1497
|
warn: f.WARN,
|
|
1498
1498
|
error: f.ERROR,
|
|
1499
1499
|
silent: f.SILENT
|
|
1500
|
-
},
|
|
1500
|
+
}, kr = f.INFO, Ar = {
|
|
1501
1501
|
[f.DEBUG]: "log",
|
|
1502
1502
|
[f.VERBOSE]: "log",
|
|
1503
1503
|
[f.INFO]: "info",
|
|
@@ -1506,13 +1506,13 @@ const kr = {
|
|
|
1506
1506
|
}, Rr = (n, e, ...t) => {
|
|
1507
1507
|
if (e < n.logLevel)
|
|
1508
1508
|
return;
|
|
1509
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(), i =
|
|
1509
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), i = Ar[e];
|
|
1510
1510
|
if (i)
|
|
1511
1511
|
console[i](`[${r}] ${n.name}:`, ...t);
|
|
1512
1512
|
else
|
|
1513
1513
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
|
1514
1514
|
};
|
|
1515
|
-
class
|
|
1515
|
+
class Wt {
|
|
1516
1516
|
/**
|
|
1517
1517
|
* Gives you an instance of a Logger to capture messages according to
|
|
1518
1518
|
* Firebase's logging scheme.
|
|
@@ -1520,7 +1520,7 @@ class zt {
|
|
|
1520
1520
|
* @param name The name that the logs will be associated with
|
|
1521
1521
|
*/
|
|
1522
1522
|
constructor(e) {
|
|
1523
|
-
this.name = e, this._logLevel =
|
|
1523
|
+
this.name = e, this._logLevel = kr, this._logHandler = Rr, this._userLogHandler = null;
|
|
1524
1524
|
}
|
|
1525
1525
|
get logLevel() {
|
|
1526
1526
|
return this._logLevel;
|
|
@@ -1532,7 +1532,7 @@ class zt {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
// Workaround for setter/getter having to be the same type.
|
|
1534
1534
|
setLogLevel(e) {
|
|
1535
|
-
this._logLevel = typeof e == "string" ?
|
|
1535
|
+
this._logLevel = typeof e == "string" ? Sr[e] : e;
|
|
1536
1536
|
}
|
|
1537
1537
|
get logHandler() {
|
|
1538
1538
|
return this._logHandler;
|
|
@@ -1567,9 +1567,9 @@ class zt {
|
|
|
1567
1567
|
this._userLogHandler && this._userLogHandler(this, f.ERROR, ...e), this._logHandler(this, f.ERROR, ...e);
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
|
-
const
|
|
1570
|
+
const Cr = (n, e) => e.some((t) => n instanceof t);
|
|
1571
1571
|
let ot, ct;
|
|
1572
|
-
function
|
|
1572
|
+
function Pr() {
|
|
1573
1573
|
return ot || (ot = [
|
|
1574
1574
|
IDBDatabase,
|
|
1575
1575
|
IDBObjectStore,
|
|
@@ -1578,15 +1578,15 @@ function Or() {
|
|
|
1578
1578
|
IDBTransaction
|
|
1579
1579
|
]);
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function Or() {
|
|
1582
1582
|
return ct || (ct = [
|
|
1583
1583
|
IDBCursor.prototype.advance,
|
|
1584
1584
|
IDBCursor.prototype.continue,
|
|
1585
1585
|
IDBCursor.prototype.continuePrimaryKey
|
|
1586
1586
|
]);
|
|
1587
1587
|
}
|
|
1588
|
-
const
|
|
1589
|
-
function
|
|
1588
|
+
const zt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap();
|
|
1589
|
+
function Dr(n) {
|
|
1590
1590
|
const e = new Promise((t, r) => {
|
|
1591
1591
|
const i = () => {
|
|
1592
1592
|
n.removeEventListener("success", s), n.removeEventListener("error", a);
|
|
@@ -1598,11 +1598,11 @@ function Nr(n) {
|
|
|
1598
1598
|
n.addEventListener("success", s), n.addEventListener("error", a);
|
|
1599
1599
|
});
|
|
1600
1600
|
return e.then((t) => {
|
|
1601
|
-
t instanceof IDBCursor &&
|
|
1601
|
+
t instanceof IDBCursor && zt.set(t, n);
|
|
1602
1602
|
}).catch(() => {
|
|
1603
1603
|
}), ze.set(e, n), e;
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function Nr(n) {
|
|
1606
1606
|
if (Me.has(n))
|
|
1607
1607
|
return;
|
|
1608
1608
|
const e = new Promise((t, r) => {
|
|
@@ -1623,7 +1623,7 @@ let Ue = {
|
|
|
1623
1623
|
if (e === "done")
|
|
1624
1624
|
return Me.get(n);
|
|
1625
1625
|
if (e === "objectStoreNames")
|
|
1626
|
-
return n.objectStoreNames ||
|
|
1626
|
+
return n.objectStoreNames || Gt.get(n);
|
|
1627
1627
|
if (e === "store")
|
|
1628
1628
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
|
1629
1629
|
}
|
|
@@ -1636,32 +1636,32 @@ let Ue = {
|
|
|
1636
1636
|
return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
|
|
1637
1637
|
}
|
|
1638
1638
|
};
|
|
1639
|
-
function
|
|
1639
|
+
function Lr(n) {
|
|
1640
1640
|
Ue = n(Ue);
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function Mr(n) {
|
|
1643
1643
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
|
1644
|
-
const r = n.call(
|
|
1645
|
-
return
|
|
1646
|
-
} :
|
|
1647
|
-
return n.apply(
|
|
1644
|
+
const r = n.call(Re(this), e, ...t);
|
|
1645
|
+
return Gt.set(r, e.sort ? e.sort() : [e]), O(r);
|
|
1646
|
+
} : Or().includes(n) ? function(...e) {
|
|
1647
|
+
return n.apply(Re(this), e), O(zt.get(this));
|
|
1648
1648
|
} : function(...e) {
|
|
1649
|
-
return O(n.apply(
|
|
1649
|
+
return O(n.apply(Re(this), e));
|
|
1650
1650
|
};
|
|
1651
1651
|
}
|
|
1652
|
-
function
|
|
1653
|
-
return typeof n == "function" ?
|
|
1652
|
+
function Ur(n) {
|
|
1653
|
+
return typeof n == "function" ? Mr(n) : (n instanceof IDBTransaction && Nr(n), Cr(n, Pr()) ? new Proxy(n, Ue) : n);
|
|
1654
1654
|
}
|
|
1655
1655
|
function O(n) {
|
|
1656
1656
|
if (n instanceof IDBRequest)
|
|
1657
|
-
return
|
|
1657
|
+
return Dr(n);
|
|
1658
1658
|
if (Ae.has(n))
|
|
1659
1659
|
return Ae.get(n);
|
|
1660
|
-
const e =
|
|
1660
|
+
const e = Ur(n);
|
|
1661
1661
|
return e !== n && (Ae.set(n, e), ze.set(e, n)), e;
|
|
1662
1662
|
}
|
|
1663
|
-
const
|
|
1664
|
-
function
|
|
1663
|
+
const Re = (n) => ze.get(n);
|
|
1664
|
+
function xr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
1665
1665
|
const a = indexedDB.open(n, e), c = O(a);
|
|
1666
1666
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
|
1667
1667
|
r(O(a.result), o.oldVersion, o.newVersion, O(a.transaction), o);
|
|
@@ -1675,13 +1675,13 @@ function Fr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
|
1675
1675
|
}).catch(() => {
|
|
1676
1676
|
}), c;
|
|
1677
1677
|
}
|
|
1678
|
-
const Br = ["get", "getKey", "getAll", "getAllKeys", "count"],
|
|
1678
|
+
const Br = ["get", "getKey", "getAll", "getAllKeys", "count"], Fr = ["put", "add", "delete", "clear"], Ce = /* @__PURE__ */ new Map();
|
|
1679
1679
|
function lt(n, e) {
|
|
1680
1680
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
|
1681
1681
|
return;
|
|
1682
|
-
if (
|
|
1683
|
-
return
|
|
1684
|
-
const t = e.replace(/FromIndex$/, ""), r = e !== t, i =
|
|
1682
|
+
if (Ce.get(e))
|
|
1683
|
+
return Ce.get(e);
|
|
1684
|
+
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = Fr.includes(t);
|
|
1685
1685
|
if (
|
|
1686
1686
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
1687
1687
|
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Br.includes(t))
|
|
@@ -1695,9 +1695,9 @@ function lt(n, e) {
|
|
|
1695
1695
|
i && o.done
|
|
1696
1696
|
]))[0];
|
|
1697
1697
|
};
|
|
1698
|
-
return
|
|
1698
|
+
return Ce.set(e, s), s;
|
|
1699
1699
|
}
|
|
1700
|
-
|
|
1700
|
+
Lr((n) => ({
|
|
1701
1701
|
...n,
|
|
1702
1702
|
get: (e, t, r) => lt(e, t) || n.get(e, t, r),
|
|
1703
1703
|
has: (e, t) => !!lt(e, t) || n.has(e, t)
|
|
@@ -1718,7 +1718,7 @@ Mr((n) => ({
|
|
|
1718
1718
|
* See the License for the specific language governing permissions and
|
|
1719
1719
|
* limitations under the License.
|
|
1720
1720
|
*/
|
|
1721
|
-
class
|
|
1721
|
+
class $r {
|
|
1722
1722
|
constructor(e) {
|
|
1723
1723
|
this.container = e;
|
|
1724
1724
|
}
|
|
@@ -1726,7 +1726,7 @@ class Hr {
|
|
|
1726
1726
|
// auth token refresh, and installations will send this string.
|
|
1727
1727
|
getPlatformInfoString() {
|
|
1728
1728
|
return this.container.getProviders().map((t) => {
|
|
1729
|
-
if (
|
|
1729
|
+
if (Hr(t)) {
|
|
1730
1730
|
const r = t.getImmediate();
|
|
1731
1731
|
return `${r.library}/${r.version}`;
|
|
1732
1732
|
} else
|
|
@@ -1734,7 +1734,7 @@ class Hr {
|
|
|
1734
1734
|
}).filter((t) => t).join(" ");
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
function
|
|
1737
|
+
function Hr(n) {
|
|
1738
1738
|
const e = n.getComponent();
|
|
1739
1739
|
return (e == null ? void 0 : e.type) === "VERSION";
|
|
1740
1740
|
}
|
|
@@ -1755,7 +1755,7 @@ const xe = "@firebase/app", ut = "0.10.13";
|
|
|
1755
1755
|
* See the License for the specific language governing permissions and
|
|
1756
1756
|
* limitations under the License.
|
|
1757
1757
|
*/
|
|
1758
|
-
const E = new
|
|
1758
|
+
const E = new Wt("@firebase/app"), Vr = "@firebase/app-compat", jr = "@firebase/analytics-compat", Wr = "@firebase/analytics", zr = "@firebase/app-check-compat", Gr = "@firebase/app-check", qr = "@firebase/auth", Kr = "@firebase/auth-compat", Jr = "@firebase/database", Yr = "@firebase/data-connect", Xr = "@firebase/database-compat", Qr = "@firebase/functions", Zr = "@firebase/functions-compat", ei = "@firebase/installations", ti = "@firebase/installations-compat", ni = "@firebase/messaging", ri = "@firebase/messaging-compat", ii = "@firebase/performance", si = "@firebase/performance-compat", ai = "@firebase/remote-config", oi = "@firebase/remote-config-compat", ci = "@firebase/storage", li = "@firebase/storage-compat", ui = "@firebase/firestore", di = "@firebase/vertexai-preview", hi = "@firebase/firestore-compat", fi = "firebase", pi = "10.14.1";
|
|
1759
1759
|
/**
|
|
1760
1760
|
* @license
|
|
1761
1761
|
* Copyright 2019 Google LLC
|
|
@@ -1772,35 +1772,35 @@ const E = new zt("@firebase/app"), jr = "@firebase/app-compat", Wr = "@firebase/
|
|
|
1772
1772
|
* See the License for the specific language governing permissions and
|
|
1773
1773
|
* limitations under the License.
|
|
1774
1774
|
*/
|
|
1775
|
-
const
|
|
1775
|
+
const Be = "[DEFAULT]", mi = {
|
|
1776
1776
|
[xe]: "fire-core",
|
|
1777
|
-
[
|
|
1778
|
-
[
|
|
1779
|
-
[
|
|
1780
|
-
[
|
|
1781
|
-
[
|
|
1782
|
-
[
|
|
1783
|
-
[
|
|
1784
|
-
[
|
|
1785
|
-
[
|
|
1786
|
-
[
|
|
1787
|
-
[
|
|
1788
|
-
[
|
|
1789
|
-
[
|
|
1790
|
-
[
|
|
1791
|
-
[
|
|
1792
|
-
[
|
|
1793
|
-
[
|
|
1794
|
-
[
|
|
1795
|
-
[
|
|
1796
|
-
[
|
|
1797
|
-
[
|
|
1798
|
-
[
|
|
1799
|
-
[
|
|
1800
|
-
[
|
|
1801
|
-
[
|
|
1777
|
+
[Vr]: "fire-core-compat",
|
|
1778
|
+
[Wr]: "fire-analytics",
|
|
1779
|
+
[jr]: "fire-analytics-compat",
|
|
1780
|
+
[Gr]: "fire-app-check",
|
|
1781
|
+
[zr]: "fire-app-check-compat",
|
|
1782
|
+
[qr]: "fire-auth",
|
|
1783
|
+
[Kr]: "fire-auth-compat",
|
|
1784
|
+
[Jr]: "fire-rtdb",
|
|
1785
|
+
[Yr]: "fire-data-connect",
|
|
1786
|
+
[Xr]: "fire-rtdb-compat",
|
|
1787
|
+
[Qr]: "fire-fn",
|
|
1788
|
+
[Zr]: "fire-fn-compat",
|
|
1789
|
+
[ei]: "fire-iid",
|
|
1790
|
+
[ti]: "fire-iid-compat",
|
|
1791
|
+
[ni]: "fire-fcm",
|
|
1792
|
+
[ri]: "fire-fcm-compat",
|
|
1793
|
+
[ii]: "fire-perf",
|
|
1794
|
+
[si]: "fire-perf-compat",
|
|
1795
|
+
[ai]: "fire-rc",
|
|
1796
|
+
[oi]: "fire-rc-compat",
|
|
1797
|
+
[ci]: "fire-gcs",
|
|
1798
|
+
[li]: "fire-gcs-compat",
|
|
1799
|
+
[ui]: "fire-fst",
|
|
1800
|
+
[hi]: "fire-fst-compat",
|
|
1801
|
+
[di]: "fire-vertex",
|
|
1802
1802
|
"fire-js": "fire-js",
|
|
1803
|
-
[
|
|
1803
|
+
[fi]: "fire-js-all"
|
|
1804
1804
|
};
|
|
1805
1805
|
/**
|
|
1806
1806
|
* @license
|
|
@@ -1818,7 +1818,7 @@ const Fe = "[DEFAULT]", gi = {
|
|
|
1818
1818
|
* See the License for the specific language governing permissions and
|
|
1819
1819
|
* limitations under the License.
|
|
1820
1820
|
*/
|
|
1821
|
-
const he = /* @__PURE__ */ new Map(),
|
|
1821
|
+
const he = /* @__PURE__ */ new Map(), gi = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Map();
|
|
1822
1822
|
function dt(n, e) {
|
|
1823
1823
|
try {
|
|
1824
1824
|
n.container.addComponent(e);
|
|
@@ -1828,16 +1828,16 @@ function dt(n, e) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
function Y(n) {
|
|
1830
1830
|
const e = n.name;
|
|
1831
|
-
if (
|
|
1831
|
+
if (Fe.has(e))
|
|
1832
1832
|
return E.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
1833
|
-
|
|
1833
|
+
Fe.set(e, n);
|
|
1834
1834
|
for (const t of he.values())
|
|
1835
1835
|
dt(t, n);
|
|
1836
|
-
for (const t of
|
|
1836
|
+
for (const t of gi.values())
|
|
1837
1837
|
dt(t, n);
|
|
1838
1838
|
return !0;
|
|
1839
1839
|
}
|
|
1840
|
-
function
|
|
1840
|
+
function qt(n, e) {
|
|
1841
1841
|
const t = n.container.getProvider("heartbeat").getImmediate({ optional: !0 });
|
|
1842
1842
|
return t && t.triggerHeartbeat(), n.container.getProvider(e);
|
|
1843
1843
|
}
|
|
@@ -1860,7 +1860,7 @@ function v(n) {
|
|
|
1860
1860
|
* See the License for the specific language governing permissions and
|
|
1861
1861
|
* limitations under the License.
|
|
1862
1862
|
*/
|
|
1863
|
-
const
|
|
1863
|
+
const _i = {
|
|
1864
1864
|
"no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
|
1865
1865
|
"bad-app-name": "Illegal App name: '{$appName}'",
|
|
1866
1866
|
"duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
|
|
@@ -1875,7 +1875,7 @@ const yi = {
|
|
|
1875
1875
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
1876
1876
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
1877
1877
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
|
1878
|
-
}, D = new Z("app", "Firebase",
|
|
1878
|
+
}, D = new Z("app", "Firebase", _i);
|
|
1879
1879
|
/**
|
|
1880
1880
|
* @license
|
|
1881
1881
|
* Copyright 2019 Google LLC
|
|
@@ -1892,7 +1892,7 @@ const yi = {
|
|
|
1892
1892
|
* See the License for the specific language governing permissions and
|
|
1893
1893
|
* limitations under the License.
|
|
1894
1894
|
*/
|
|
1895
|
-
class
|
|
1895
|
+
class yi {
|
|
1896
1896
|
constructor(e, t, r) {
|
|
1897
1897
|
this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, t), this._name = t.name, this._automaticDataCollectionEnabled = t.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new W(
|
|
1898
1898
|
"app",
|
|
@@ -1950,16 +1950,16 @@ class vi {
|
|
|
1950
1950
|
* See the License for the specific language governing permissions and
|
|
1951
1951
|
* limitations under the License.
|
|
1952
1952
|
*/
|
|
1953
|
-
const te =
|
|
1954
|
-
function
|
|
1953
|
+
const te = pi;
|
|
1954
|
+
function Kt(n, e = {}) {
|
|
1955
1955
|
let t = n;
|
|
1956
1956
|
typeof e != "object" && (e = { name: e });
|
|
1957
|
-
const r = Object.assign({ name:
|
|
1957
|
+
const r = Object.assign({ name: Be, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
|
1958
1958
|
if (typeof i != "string" || !i)
|
|
1959
1959
|
throw D.create("bad-app-name", {
|
|
1960
1960
|
appName: String(i)
|
|
1961
1961
|
});
|
|
1962
|
-
if (t || (t =
|
|
1962
|
+
if (t || (t = Vt()), !t)
|
|
1963
1963
|
throw D.create(
|
|
1964
1964
|
"no-options"
|
|
1965
1965
|
/* AppError.NO_OPTIONS */
|
|
@@ -1970,23 +1970,23 @@ function Jt(n, e = {}) {
|
|
|
1970
1970
|
return s;
|
|
1971
1971
|
throw D.create("duplicate-app", { appName: i });
|
|
1972
1972
|
}
|
|
1973
|
-
const a = new
|
|
1974
|
-
for (const o of
|
|
1973
|
+
const a = new Tr(i);
|
|
1974
|
+
for (const o of Fe.values())
|
|
1975
1975
|
a.addComponent(o);
|
|
1976
|
-
const c = new
|
|
1976
|
+
const c = new yi(t, r, a);
|
|
1977
1977
|
return he.set(i, c), c;
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function vi(n = Be) {
|
|
1980
1980
|
const e = he.get(n);
|
|
1981
|
-
if (!e && n ===
|
|
1982
|
-
return
|
|
1981
|
+
if (!e && n === Be && Vt())
|
|
1982
|
+
return Kt();
|
|
1983
1983
|
if (!e)
|
|
1984
1984
|
throw D.create("no-app", { appName: n });
|
|
1985
1985
|
return e;
|
|
1986
1986
|
}
|
|
1987
1987
|
function $(n, e, t) {
|
|
1988
1988
|
var r;
|
|
1989
|
-
let i = (r =
|
|
1989
|
+
let i = (r = mi[n]) !== null && r !== void 0 ? r : n;
|
|
1990
1990
|
t && (i += `-${t}`);
|
|
1991
1991
|
const s = i.match(/\s|\//), a = e.match(/\s|\//);
|
|
1992
1992
|
if (s || a) {
|
|
@@ -2019,10 +2019,10 @@ function $(n, e, t) {
|
|
|
2019
2019
|
* See the License for the specific language governing permissions and
|
|
2020
2020
|
* limitations under the License.
|
|
2021
2021
|
*/
|
|
2022
|
-
const
|
|
2022
|
+
const bi = "firebase-heartbeat-database", Ii = 1, X = "firebase-heartbeat-store";
|
|
2023
2023
|
let Pe = null;
|
|
2024
|
-
function
|
|
2025
|
-
return Pe || (Pe =
|
|
2024
|
+
function Jt() {
|
|
2025
|
+
return Pe || (Pe = xr(bi, Ii, {
|
|
2026
2026
|
upgrade: (n, e) => {
|
|
2027
2027
|
switch (e) {
|
|
2028
2028
|
case 0:
|
|
@@ -2039,9 +2039,9 @@ function Yt() {
|
|
|
2039
2039
|
});
|
|
2040
2040
|
})), Pe;
|
|
2041
2041
|
}
|
|
2042
|
-
async function
|
|
2042
|
+
async function wi(n) {
|
|
2043
2043
|
try {
|
|
2044
|
-
const t = (await
|
|
2044
|
+
const t = (await Jt()).transaction(X), r = await t.objectStore(X).get(Yt(n));
|
|
2045
2045
|
return await t.done, r;
|
|
2046
2046
|
} catch (e) {
|
|
2047
2047
|
if (e instanceof L)
|
|
@@ -2056,8 +2056,8 @@ async function Ei(n) {
|
|
|
2056
2056
|
}
|
|
2057
2057
|
async function ht(n, e) {
|
|
2058
2058
|
try {
|
|
2059
|
-
const r = (await
|
|
2060
|
-
await r.objectStore(X).put(e,
|
|
2059
|
+
const r = (await Jt()).transaction(X, "readwrite");
|
|
2060
|
+
await r.objectStore(X).put(e, Yt(n)), await r.done;
|
|
2061
2061
|
} catch (t) {
|
|
2062
2062
|
if (t instanceof L)
|
|
2063
2063
|
E.warn(t.message);
|
|
@@ -2069,7 +2069,7 @@ async function ht(n, e) {
|
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
2071
|
}
|
|
2072
|
-
function
|
|
2072
|
+
function Yt(n) {
|
|
2073
2073
|
return `${n.name}!${n.options.appId}`;
|
|
2074
2074
|
}
|
|
2075
2075
|
/**
|
|
@@ -2088,12 +2088,12 @@ function Xt(n) {
|
|
|
2088
2088
|
* See the License for the specific language governing permissions and
|
|
2089
2089
|
* limitations under the License.
|
|
2090
2090
|
*/
|
|
2091
|
-
const
|
|
2092
|
-
class
|
|
2091
|
+
const Ei = 1024, Ti = 30 * 24 * 60 * 60 * 1e3;
|
|
2092
|
+
class Si {
|
|
2093
2093
|
constructor(e) {
|
|
2094
2094
|
this.container = e, this._heartbeatsCache = null;
|
|
2095
2095
|
const t = this.container.getProvider("app").getImmediate();
|
|
2096
|
-
this._storage = new
|
|
2096
|
+
this._storage = new Ai(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
|
|
2097
2097
|
}
|
|
2098
2098
|
/**
|
|
2099
2099
|
* Called to report a heartbeat. The function will generate
|
|
@@ -2108,7 +2108,7 @@ class ki {
|
|
|
2108
2108
|
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = ft();
|
|
2109
2109
|
return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((t = this._heartbeatsCache) === null || t === void 0 ? void 0 : t.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === s || this._heartbeatsCache.heartbeats.some((a) => a.date === s) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: s, agent: i }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((a) => {
|
|
2110
2110
|
const c = new Date(a.date).valueOf();
|
|
2111
|
-
return Date.now() - c <=
|
|
2111
|
+
return Date.now() - c <= Ti;
|
|
2112
2112
|
}), this._storage.overwrite(this._heartbeatsCache));
|
|
2113
2113
|
} catch (r) {
|
|
2114
2114
|
E.warn(r);
|
|
@@ -2126,7 +2126,7 @@ class ki {
|
|
|
2126
2126
|
try {
|
|
2127
2127
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
|
2128
2128
|
return "";
|
|
2129
|
-
const t = ft(), { heartbeatsToSend: r, unsentEntries: i } =
|
|
2129
|
+
const t = ft(), { heartbeatsToSend: r, unsentEntries: i } = ki(this._heartbeatsCache.heartbeats), s = $t(JSON.stringify({ version: 2, heartbeats: r }));
|
|
2130
2130
|
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)), s;
|
|
2131
2131
|
} catch (t) {
|
|
2132
2132
|
return E.warn(t), "";
|
|
@@ -2136,7 +2136,7 @@ class ki {
|
|
|
2136
2136
|
function ft() {
|
|
2137
2137
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
|
2138
2138
|
}
|
|
2139
|
-
function
|
|
2139
|
+
function ki(n, e = Ei) {
|
|
2140
2140
|
const t = [];
|
|
2141
2141
|
let r = n.slice();
|
|
2142
2142
|
for (const i of n) {
|
|
@@ -2160,19 +2160,19 @@ function Ai(n, e = Ti) {
|
|
|
2160
2160
|
unsentEntries: r
|
|
2161
2161
|
};
|
|
2162
2162
|
}
|
|
2163
|
-
class
|
|
2163
|
+
class Ai {
|
|
2164
2164
|
constructor(e) {
|
|
2165
2165
|
this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
|
2166
2166
|
}
|
|
2167
2167
|
async runIndexedDBEnvironmentCheck() {
|
|
2168
|
-
return
|
|
2168
|
+
return hr() ? fr().then(() => !0).catch(() => !1) : !1;
|
|
2169
2169
|
}
|
|
2170
2170
|
/**
|
|
2171
2171
|
* Read all heartbeats.
|
|
2172
2172
|
*/
|
|
2173
2173
|
async read() {
|
|
2174
2174
|
if (await this._canUseIndexedDBPromise) {
|
|
2175
|
-
const t = await
|
|
2175
|
+
const t = await wi(this.app);
|
|
2176
2176
|
return t != null && t.heartbeats ? t : { heartbeats: [] };
|
|
2177
2177
|
} else
|
|
2178
2178
|
return { heartbeats: [] };
|
|
@@ -2206,7 +2206,7 @@ class Ci {
|
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
2208
|
function pt(n) {
|
|
2209
|
-
return
|
|
2209
|
+
return $t(
|
|
2210
2210
|
// heartbeatsCache wrapper properties
|
|
2211
2211
|
JSON.stringify({ version: 2, heartbeats: n })
|
|
2212
2212
|
).length;
|
|
@@ -2230,18 +2230,18 @@ function pt(n) {
|
|
|
2230
2230
|
function Ri(n) {
|
|
2231
2231
|
Y(new W(
|
|
2232
2232
|
"platform-logger",
|
|
2233
|
-
(e) => new
|
|
2233
|
+
(e) => new $r(e),
|
|
2234
2234
|
"PRIVATE"
|
|
2235
2235
|
/* ComponentType.PRIVATE */
|
|
2236
2236
|
)), Y(new W(
|
|
2237
2237
|
"heartbeat",
|
|
2238
|
-
(e) => new
|
|
2238
|
+
(e) => new Si(e),
|
|
2239
2239
|
"PRIVATE"
|
|
2240
2240
|
/* ComponentType.PRIVATE */
|
|
2241
2241
|
)), $(xe, ut, n), $(xe, ut, "esm2017"), $("fire-js", "");
|
|
2242
2242
|
}
|
|
2243
2243
|
Ri("");
|
|
2244
|
-
var
|
|
2244
|
+
var Ci = "firebase", Pi = "10.14.1";
|
|
2245
2245
|
/**
|
|
2246
2246
|
* @license
|
|
2247
2247
|
* Copyright 2020 Google LLC
|
|
@@ -2258,7 +2258,7 @@ var Pi = "firebase", Oi = "10.14.1";
|
|
|
2258
2258
|
* See the License for the specific language governing permissions and
|
|
2259
2259
|
* limitations under the License.
|
|
2260
2260
|
*/
|
|
2261
|
-
$(
|
|
2261
|
+
$(Ci, Pi, "app");
|
|
2262
2262
|
var mt = function() {
|
|
2263
2263
|
return mt = Object.assign || function(e) {
|
|
2264
2264
|
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
|
@@ -2276,12 +2276,12 @@ function Ge(n, e) {
|
|
|
2276
2276
|
e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(n, r[i]) && (t[r[i]] = n[r[i]]);
|
|
2277
2277
|
return t;
|
|
2278
2278
|
}
|
|
2279
|
-
function
|
|
2279
|
+
function Xt() {
|
|
2280
2280
|
return {
|
|
2281
2281
|
"dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
|
|
2282
2282
|
};
|
|
2283
2283
|
}
|
|
2284
|
-
const
|
|
2284
|
+
const Oi = Xt, Qt = new Z("auth", "Firebase", Xt());
|
|
2285
2285
|
/**
|
|
2286
2286
|
* @license
|
|
2287
2287
|
* Copyright 2020 Google LLC
|
|
@@ -2298,8 +2298,8 @@ const Di = Qt, Zt = new Z("auth", "Firebase", Qt());
|
|
|
2298
2298
|
* See the License for the specific language governing permissions and
|
|
2299
2299
|
* limitations under the License.
|
|
2300
2300
|
*/
|
|
2301
|
-
const fe = new
|
|
2302
|
-
function
|
|
2301
|
+
const fe = new Wt("@firebase/auth");
|
|
2302
|
+
function Di(n, ...e) {
|
|
2303
2303
|
fe.logLevel <= f.WARN && fe.warn(`Auth (${te}): ${n}`, ...e);
|
|
2304
2304
|
}
|
|
2305
2305
|
function ae(n, ...e) {
|
|
@@ -2327,21 +2327,21 @@ function T(n, ...e) {
|
|
|
2327
2327
|
function _(n, ...e) {
|
|
2328
2328
|
return qe(n, ...e);
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2331
|
-
const r = Object.assign(Object.assign({},
|
|
2330
|
+
function Zt(n, e, t) {
|
|
2331
|
+
const r = Object.assign(Object.assign({}, Oi()), { [e]: t });
|
|
2332
2332
|
return new Z("auth", "Firebase", r).create(e, {
|
|
2333
2333
|
appName: n.name
|
|
2334
2334
|
});
|
|
2335
2335
|
}
|
|
2336
2336
|
function N(n) {
|
|
2337
|
-
return
|
|
2337
|
+
return Zt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
|
2338
2338
|
}
|
|
2339
2339
|
function qe(n, ...e) {
|
|
2340
2340
|
if (typeof n != "string") {
|
|
2341
2341
|
const t = e[0], r = [...e.slice(1)];
|
|
2342
2342
|
return r[0] && (r[0].appName = n.name), n._errorFactory.create(t, ...r);
|
|
2343
2343
|
}
|
|
2344
|
-
return
|
|
2344
|
+
return Qt.create(n, ...e);
|
|
2345
2345
|
}
|
|
2346
2346
|
function h(n, e, ...t) {
|
|
2347
2347
|
if (!n)
|
|
@@ -2374,7 +2374,7 @@ function $e() {
|
|
|
2374
2374
|
var n;
|
|
2375
2375
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
|
2376
2376
|
}
|
|
2377
|
-
function
|
|
2377
|
+
function Ni() {
|
|
2378
2378
|
return gt() === "http:" || gt() === "https:";
|
|
2379
2379
|
}
|
|
2380
2380
|
function gt() {
|
|
@@ -2397,15 +2397,15 @@ function gt() {
|
|
|
2397
2397
|
* See the License for the specific language governing permissions and
|
|
2398
2398
|
* limitations under the License.
|
|
2399
2399
|
*/
|
|
2400
|
-
function
|
|
2400
|
+
function Li() {
|
|
2401
2401
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
|
2402
2402
|
// This is especially true for Cordova apps which have unreliable
|
|
2403
2403
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
|
2404
2404
|
// installed which overwrites the native navigator.onLine value and
|
|
2405
2405
|
// defines navigator.connection.
|
|
2406
|
-
(
|
|
2406
|
+
(Ni() || lr() || "connection" in navigator) ? navigator.onLine : !0;
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function Mi() {
|
|
2409
2409
|
if (typeof navigator > "u")
|
|
2410
2410
|
return null;
|
|
2411
2411
|
const n = navigator;
|
|
@@ -2435,10 +2435,10 @@ function Ui() {
|
|
|
2435
2435
|
*/
|
|
2436
2436
|
class ne {
|
|
2437
2437
|
constructor(e, t) {
|
|
2438
|
-
this.shortDelay = e, this.longDelay = t, S(t > e, "Short delay should be less than long delay!"), this.isMobile =
|
|
2438
|
+
this.shortDelay = e, this.longDelay = t, S(t > e, "Short delay should be less than long delay!"), this.isMobile = or() || ur();
|
|
2439
2439
|
}
|
|
2440
2440
|
get() {
|
|
2441
|
-
return
|
|
2441
|
+
return Li() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
|
2442
2442
|
}
|
|
2443
2443
|
}
|
|
2444
2444
|
/**
|
|
@@ -2478,7 +2478,7 @@ function Ke(n, e) {
|
|
|
2478
2478
|
* See the License for the specific language governing permissions and
|
|
2479
2479
|
* limitations under the License.
|
|
2480
2480
|
*/
|
|
2481
|
-
class
|
|
2481
|
+
class en {
|
|
2482
2482
|
static initialize(e, t, r) {
|
|
2483
2483
|
this.fetchImpl = e, t && (this.headersImpl = t), r && (this.responseImpl = r);
|
|
2484
2484
|
}
|
|
@@ -2532,7 +2532,7 @@ class tn {
|
|
|
2532
2532
|
* See the License for the specific language governing permissions and
|
|
2533
2533
|
* limitations under the License.
|
|
2534
2534
|
*/
|
|
2535
|
-
const
|
|
2535
|
+
const Ui = {
|
|
2536
2536
|
// Custom token errors.
|
|
2537
2537
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
|
2538
2538
|
// This can only happen if the SDK sends a bad request.
|
|
@@ -2623,12 +2623,12 @@ const xi = {
|
|
|
2623
2623
|
* See the License for the specific language governing permissions and
|
|
2624
2624
|
* limitations under the License.
|
|
2625
2625
|
*/
|
|
2626
|
-
const
|
|
2626
|
+
const xi = new ne(3e4, 6e4);
|
|
2627
2627
|
function ye(n, e) {
|
|
2628
2628
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
|
2629
2629
|
}
|
|
2630
2630
|
async function G(n, e, t, r, i = {}) {
|
|
2631
|
-
return
|
|
2631
|
+
return tn(n, i, async () => {
|
|
2632
2632
|
let s = {}, a = {};
|
|
2633
2633
|
r && (e === "GET" ? a = r : s = {
|
|
2634
2634
|
body: JSON.stringify(r)
|
|
@@ -2645,12 +2645,12 @@ async function G(n, e, t, r, i = {}) {
|
|
|
2645
2645
|
method: e,
|
|
2646
2646
|
headers: o
|
|
2647
2647
|
}, s);
|
|
2648
|
-
return
|
|
2648
|
+
return cr() || (l.referrerPolicy = "no-referrer"), en.fetch()(rn(n, n.config.apiHost, t, c), l);
|
|
2649
2649
|
});
|
|
2650
2650
|
}
|
|
2651
|
-
async function
|
|
2651
|
+
async function tn(n, e, t) {
|
|
2652
2652
|
n._canInitEmulator = !1;
|
|
2653
|
-
const r = Object.assign(Object.assign({},
|
|
2653
|
+
const r = Object.assign(Object.assign({}, Ui), e);
|
|
2654
2654
|
try {
|
|
2655
2655
|
const i = new Bi(n), s = await Promise.race([
|
|
2656
2656
|
t(),
|
|
@@ -2672,7 +2672,7 @@ async function nn(n, e, t) {
|
|
|
2672
2672
|
throw se(n, "user-disabled", a);
|
|
2673
2673
|
const u = r[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
|
|
2674
2674
|
if (l)
|
|
2675
|
-
throw
|
|
2675
|
+
throw Zt(n, u, l);
|
|
2676
2676
|
T(n, u);
|
|
2677
2677
|
}
|
|
2678
2678
|
} catch (i) {
|
|
@@ -2681,13 +2681,13 @@ async function nn(n, e, t) {
|
|
|
2681
2681
|
T(n, "network-request-failed", { message: String(i) });
|
|
2682
2682
|
}
|
|
2683
2683
|
}
|
|
2684
|
-
async function
|
|
2684
|
+
async function nn(n, e, t, r, i = {}) {
|
|
2685
2685
|
const s = await G(n, e, t, r, i);
|
|
2686
2686
|
return "mfaPendingCredential" in s && T(n, "multi-factor-auth-required", {
|
|
2687
2687
|
_serverResponse: s
|
|
2688
2688
|
}), s;
|
|
2689
2689
|
}
|
|
2690
|
-
function
|
|
2690
|
+
function rn(n, e, t, r) {
|
|
2691
2691
|
const i = `${e}${t}?${r}`;
|
|
2692
2692
|
return n.config.emulator ? Ke(n.config, i) : `${n.config.apiScheme}://${i}`;
|
|
2693
2693
|
}
|
|
@@ -2698,7 +2698,7 @@ class Bi {
|
|
|
2698
2698
|
this.auth,
|
|
2699
2699
|
"network-request-failed"
|
|
2700
2700
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
2701
|
-
)),
|
|
2701
|
+
)), xi.get());
|
|
2702
2702
|
});
|
|
2703
2703
|
}
|
|
2704
2704
|
clearNetworkTimeout() {
|
|
@@ -2729,10 +2729,10 @@ function se(n, e, t) {
|
|
|
2729
2729
|
* See the License for the specific language governing permissions and
|
|
2730
2730
|
* limitations under the License.
|
|
2731
2731
|
*/
|
|
2732
|
-
async function
|
|
2732
|
+
async function Fi(n, e) {
|
|
2733
2733
|
return G(n, "POST", "/v1/accounts:delete", e);
|
|
2734
2734
|
}
|
|
2735
|
-
async function
|
|
2735
|
+
async function sn(n, e) {
|
|
2736
2736
|
return G(n, "POST", "/v1/accounts:lookup", e);
|
|
2737
2737
|
}
|
|
2738
2738
|
/**
|
|
@@ -2760,7 +2760,7 @@ function J(n) {
|
|
|
2760
2760
|
} catch {
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
2763
|
-
async function
|
|
2763
|
+
async function $i(n, e = !1) {
|
|
2764
2764
|
const t = z(n), r = await t.getIdToken(e), i = Je(r);
|
|
2765
2765
|
h(
|
|
2766
2766
|
i && i.exp && i.auth_time && i.iat,
|
|
@@ -2787,7 +2787,7 @@ function Je(n) {
|
|
|
2787
2787
|
if (e === void 0 || t === void 0 || r === void 0)
|
|
2788
2788
|
return ae("JWT malformed, contained fewer than 3 sections"), null;
|
|
2789
2789
|
try {
|
|
2790
|
-
const i =
|
|
2790
|
+
const i = Ht(t);
|
|
2791
2791
|
return i ? JSON.parse(i) : (ae("Failed to decode base64 JWT payload"), null);
|
|
2792
2792
|
} catch (i) {
|
|
2793
2793
|
return ae("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
|
@@ -2831,10 +2831,10 @@ async function Q(n, e, t = !1) {
|
|
|
2831
2831
|
try {
|
|
2832
2832
|
return await e;
|
|
2833
2833
|
} catch (r) {
|
|
2834
|
-
throw r instanceof L &&
|
|
2834
|
+
throw r instanceof L && Hi(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
2837
|
-
function
|
|
2837
|
+
function Hi({ code: n }) {
|
|
2838
2838
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
|
2839
2839
|
}
|
|
2840
2840
|
/**
|
|
@@ -2853,7 +2853,7 @@ function Vi({ code: n }) {
|
|
|
2853
2853
|
* See the License for the specific language governing permissions and
|
|
2854
2854
|
* limitations under the License.
|
|
2855
2855
|
*/
|
|
2856
|
-
class
|
|
2856
|
+
class Vi {
|
|
2857
2857
|
constructor(e) {
|
|
2858
2858
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
|
2859
2859
|
}
|
|
@@ -2950,7 +2950,7 @@ class He {
|
|
|
2950
2950
|
*/
|
|
2951
2951
|
async function pe(n) {
|
|
2952
2952
|
var e;
|
|
2953
|
-
const t = n.auth, r = await n.getIdToken(), i = await Q(n,
|
|
2953
|
+
const t = n.auth, r = await n.getIdToken(), i = await Q(n, sn(t, { idToken: r }));
|
|
2954
2954
|
h(
|
|
2955
2955
|
i == null ? void 0 : i.users.length,
|
|
2956
2956
|
t,
|
|
@@ -2959,7 +2959,7 @@ async function pe(n) {
|
|
|
2959
2959
|
);
|
|
2960
2960
|
const s = i.users[0];
|
|
2961
2961
|
n._notifyReloadListener(s);
|
|
2962
|
-
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ?
|
|
2962
|
+
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? an(s.providerUserInfo) : [], c = Wi(n.providerData, a), o = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), u = o ? l : !1, d = {
|
|
2963
2963
|
uid: s.localId,
|
|
2964
2964
|
displayName: s.displayName || null,
|
|
2965
2965
|
photoURL: s.photoUrl || null,
|
|
@@ -2973,14 +2973,14 @@ async function pe(n) {
|
|
|
2973
2973
|
};
|
|
2974
2974
|
Object.assign(n, d);
|
|
2975
2975
|
}
|
|
2976
|
-
async function
|
|
2976
|
+
async function ji(n) {
|
|
2977
2977
|
const e = z(n);
|
|
2978
2978
|
await pe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
|
2979
2979
|
}
|
|
2980
|
-
function
|
|
2980
|
+
function Wi(n, e) {
|
|
2981
2981
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
|
2982
2982
|
}
|
|
2983
|
-
function
|
|
2983
|
+
function an(n) {
|
|
2984
2984
|
return n.map((e) => {
|
|
2985
2985
|
var { providerId: t } = e, r = Ge(e, ["providerId"]);
|
|
2986
2986
|
return {
|
|
@@ -3009,16 +3009,16 @@ function on(n) {
|
|
|
3009
3009
|
* See the License for the specific language governing permissions and
|
|
3010
3010
|
* limitations under the License.
|
|
3011
3011
|
*/
|
|
3012
|
-
async function
|
|
3013
|
-
const t = await
|
|
3012
|
+
async function zi(n, e) {
|
|
3013
|
+
const t = await tn(n, {}, async () => {
|
|
3014
3014
|
const r = ee({
|
|
3015
3015
|
grant_type: "refresh_token",
|
|
3016
3016
|
refresh_token: e
|
|
3017
|
-
}).slice(1), { tokenApiHost: i, apiKey: s } = n.config, a =
|
|
3017
|
+
}).slice(1), { tokenApiHost: i, apiKey: s } = n.config, a = rn(n, i, "/v1/token", `key=${s}`), c = await n._getAdditionalHeaders();
|
|
3018
3018
|
return c[
|
|
3019
3019
|
"Content-Type"
|
|
3020
3020
|
/* HttpHeader.CONTENT_TYPE */
|
|
3021
|
-
] = "application/x-www-form-urlencoded",
|
|
3021
|
+
] = "application/x-www-form-urlencoded", en.fetch()(a, {
|
|
3022
3022
|
method: "POST",
|
|
3023
3023
|
headers: c,
|
|
3024
3024
|
body: r
|
|
@@ -3030,7 +3030,7 @@ async function Gi(n, e) {
|
|
|
3030
3030
|
refreshToken: t.refresh_token
|
|
3031
3031
|
};
|
|
3032
3032
|
}
|
|
3033
|
-
async function
|
|
3033
|
+
async function Gi(n, e) {
|
|
3034
3034
|
return G(n, "POST", "/v2/accounts:revokeToken", ye(n, e));
|
|
3035
3035
|
}
|
|
3036
3036
|
/**
|
|
@@ -3094,7 +3094,7 @@ class H {
|
|
|
3094
3094
|
this.refreshToken = null;
|
|
3095
3095
|
}
|
|
3096
3096
|
async refresh(e, t) {
|
|
3097
|
-
const { accessToken: r, refreshToken: i, expiresIn: s } = await
|
|
3097
|
+
const { accessToken: r, refreshToken: i, expiresIn: s } = await zi(e, t);
|
|
3098
3098
|
this.updateTokensAndExpiration(r, i, Number(s));
|
|
3099
3099
|
}
|
|
3100
3100
|
updateTokensAndExpiration(e, t, r) {
|
|
@@ -3149,7 +3149,7 @@ function k(n, e) {
|
|
|
3149
3149
|
class I {
|
|
3150
3150
|
constructor(e) {
|
|
3151
3151
|
var { uid: t, auth: r, stsTokenManager: i } = e, s = Ge(e, ["uid", "auth", "stsTokenManager"]);
|
|
3152
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
|
3152
|
+
this.providerId = "firebase", this.proactiveRefresh = new Vi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new He(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
3153
3153
|
}
|
|
3154
3154
|
async getIdToken(e) {
|
|
3155
3155
|
const t = await Q(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -3161,10 +3161,10 @@ class I {
|
|
|
3161
3161
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
|
3162
3162
|
}
|
|
3163
3163
|
getIdTokenResult(e) {
|
|
3164
|
-
return
|
|
3164
|
+
return $i(this, e);
|
|
3165
3165
|
}
|
|
3166
3166
|
reload() {
|
|
3167
|
-
return
|
|
3167
|
+
return ji(this);
|
|
3168
3168
|
}
|
|
3169
3169
|
_assign(e) {
|
|
3170
3170
|
this !== e && (h(
|
|
@@ -3203,7 +3203,7 @@ class I {
|
|
|
3203
3203
|
if (v(this.auth.app))
|
|
3204
3204
|
return Promise.reject(N(this.auth));
|
|
3205
3205
|
const e = await this.getIdToken();
|
|
3206
|
-
return await Q(this,
|
|
3206
|
+
return await Q(this, Fi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
3207
3207
|
}
|
|
3208
3208
|
toJSON() {
|
|
3209
3209
|
return Object.assign(Object.assign({
|
|
@@ -3231,14 +3231,14 @@ class I {
|
|
|
3231
3231
|
}
|
|
3232
3232
|
static _fromJSON(e, t) {
|
|
3233
3233
|
var r, i, s, a, c, o, l, u;
|
|
3234
|
-
const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, p = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0,
|
|
3234
|
+
const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, p = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, B = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, et = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, we = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, tt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, nt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Ee, emailVerified: rt, isAnonymous: it, providerData: Te, stsTokenManager: st } = t;
|
|
3235
3235
|
h(
|
|
3236
3236
|
Ee && st,
|
|
3237
3237
|
e,
|
|
3238
3238
|
"internal-error"
|
|
3239
3239
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3240
3240
|
);
|
|
3241
|
-
const
|
|
3241
|
+
const On = H.fromJSON(this.name, st);
|
|
3242
3242
|
h(
|
|
3243
3243
|
typeof Ee == "string",
|
|
3244
3244
|
e,
|
|
@@ -3254,7 +3254,7 @@ class I {
|
|
|
3254
3254
|
e,
|
|
3255
3255
|
"internal-error"
|
|
3256
3256
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3257
|
-
), k(m, e.name), k(
|
|
3257
|
+
), k(m, e.name), k(B, e.name), k(et, e.name), k(we, e.name), k(tt, e.name), k(nt, e.name);
|
|
3258
3258
|
const Se = new I({
|
|
3259
3259
|
uid: Ee,
|
|
3260
3260
|
auth: e,
|
|
@@ -3262,14 +3262,14 @@ class I {
|
|
|
3262
3262
|
emailVerified: rt,
|
|
3263
3263
|
displayName: d,
|
|
3264
3264
|
isAnonymous: it,
|
|
3265
|
-
photoURL:
|
|
3265
|
+
photoURL: B,
|
|
3266
3266
|
phoneNumber: m,
|
|
3267
3267
|
tenantId: et,
|
|
3268
|
-
stsTokenManager:
|
|
3268
|
+
stsTokenManager: On,
|
|
3269
3269
|
createdAt: tt,
|
|
3270
3270
|
lastLoginAt: nt
|
|
3271
3271
|
});
|
|
3272
|
-
return Te && Array.isArray(Te) && (Se.providerData = Te.map((
|
|
3272
|
+
return Te && Array.isArray(Te) && (Se.providerData = Te.map((Dn) => Object.assign({}, Dn))), we && (Se._redirectEventId = we), Se;
|
|
3273
3273
|
}
|
|
3274
3274
|
/**
|
|
3275
3275
|
* Initialize a User from an idToken server response
|
|
@@ -3299,7 +3299,7 @@ class I {
|
|
|
3299
3299
|
"internal-error"
|
|
3300
3300
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3301
3301
|
);
|
|
3302
|
-
const s = i.providerUserInfo !== void 0 ?
|
|
3302
|
+
const s = i.providerUserInfo !== void 0 ? an(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new H();
|
|
3303
3303
|
c.updateFromIdToken(r);
|
|
3304
3304
|
const o = new I({
|
|
3305
3305
|
uid: i.localId,
|
|
@@ -3359,7 +3359,7 @@ function w(n) {
|
|
|
3359
3359
|
* See the License for the specific language governing permissions and
|
|
3360
3360
|
* limitations under the License.
|
|
3361
3361
|
*/
|
|
3362
|
-
class
|
|
3362
|
+
class on {
|
|
3363
3363
|
constructor() {
|
|
3364
3364
|
this.type = "NONE", this.storage = {};
|
|
3365
3365
|
}
|
|
@@ -3381,8 +3381,8 @@ class cn {
|
|
|
3381
3381
|
_removeListener(e, t) {
|
|
3382
3382
|
}
|
|
3383
3383
|
}
|
|
3384
|
-
|
|
3385
|
-
const vt =
|
|
3384
|
+
on.type = "NONE";
|
|
3385
|
+
const vt = on;
|
|
3386
3386
|
/**
|
|
3387
3387
|
* @license
|
|
3388
3388
|
* Copyright 2019 Google LLC
|
|
@@ -3481,25 +3481,25 @@ function bt(n) {
|
|
|
3481
3481
|
const e = n.toLowerCase();
|
|
3482
3482
|
if (e.includes("opera/") || e.includes("opr/") || e.includes("opios/"))
|
|
3483
3483
|
return "Opera";
|
|
3484
|
-
if (
|
|
3484
|
+
if (dn(e))
|
|
3485
3485
|
return "IEMobile";
|
|
3486
3486
|
if (e.includes("msie") || e.includes("trident/"))
|
|
3487
3487
|
return "IE";
|
|
3488
3488
|
if (e.includes("edge/"))
|
|
3489
3489
|
return "Edge";
|
|
3490
|
-
if (
|
|
3490
|
+
if (cn(e))
|
|
3491
3491
|
return "Firefox";
|
|
3492
3492
|
if (e.includes("silk/"))
|
|
3493
3493
|
return "Silk";
|
|
3494
|
-
if (
|
|
3494
|
+
if (fn(e))
|
|
3495
3495
|
return "Blackberry";
|
|
3496
|
-
if (
|
|
3496
|
+
if (pn(e))
|
|
3497
3497
|
return "Webos";
|
|
3498
|
-
if (
|
|
3498
|
+
if (ln(e))
|
|
3499
3499
|
return "Safari";
|
|
3500
|
-
if ((e.includes("chrome/") ||
|
|
3500
|
+
if ((e.includes("chrome/") || un(e)) && !e.includes("edge/"))
|
|
3501
3501
|
return "Chrome";
|
|
3502
|
-
if (
|
|
3502
|
+
if (hn(e))
|
|
3503
3503
|
return "Android";
|
|
3504
3504
|
{
|
|
3505
3505
|
const t = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, r = n.match(t);
|
|
@@ -3508,40 +3508,40 @@ function bt(n) {
|
|
|
3508
3508
|
}
|
|
3509
3509
|
return "Other";
|
|
3510
3510
|
}
|
|
3511
|
-
function
|
|
3511
|
+
function cn(n = g()) {
|
|
3512
3512
|
return /firefox\//i.test(n);
|
|
3513
3513
|
}
|
|
3514
|
-
function
|
|
3514
|
+
function ln(n = g()) {
|
|
3515
3515
|
const e = n.toLowerCase();
|
|
3516
3516
|
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
|
|
3517
3517
|
}
|
|
3518
|
-
function
|
|
3518
|
+
function un(n = g()) {
|
|
3519
3519
|
return /crios\//i.test(n);
|
|
3520
3520
|
}
|
|
3521
|
-
function
|
|
3521
|
+
function dn(n = g()) {
|
|
3522
3522
|
return /iemobile/i.test(n);
|
|
3523
3523
|
}
|
|
3524
|
-
function
|
|
3524
|
+
function hn(n = g()) {
|
|
3525
3525
|
return /android/i.test(n);
|
|
3526
3526
|
}
|
|
3527
|
-
function
|
|
3527
|
+
function fn(n = g()) {
|
|
3528
3528
|
return /blackberry/i.test(n);
|
|
3529
3529
|
}
|
|
3530
|
-
function
|
|
3530
|
+
function pn(n = g()) {
|
|
3531
3531
|
return /webos/i.test(n);
|
|
3532
3532
|
}
|
|
3533
3533
|
function Ye(n = g()) {
|
|
3534
3534
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
|
3535
3535
|
}
|
|
3536
|
-
function
|
|
3536
|
+
function qi(n = g()) {
|
|
3537
3537
|
var e;
|
|
3538
3538
|
return Ye(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
|
3539
3539
|
}
|
|
3540
|
-
function
|
|
3541
|
-
return
|
|
3540
|
+
function Ki() {
|
|
3541
|
+
return dr() && document.documentMode === 10;
|
|
3542
3542
|
}
|
|
3543
|
-
function
|
|
3544
|
-
return Ye(n) ||
|
|
3543
|
+
function mn(n = g()) {
|
|
3544
|
+
return Ye(n) || hn(n) || pn(n) || fn(n) || /windows phone/i.test(n) || dn(n);
|
|
3545
3545
|
}
|
|
3546
3546
|
/**
|
|
3547
3547
|
* @license
|
|
@@ -3559,7 +3559,7 @@ function gn(n = g()) {
|
|
|
3559
3559
|
* See the License for the specific language governing permissions and
|
|
3560
3560
|
* limitations under the License.
|
|
3561
3561
|
*/
|
|
3562
|
-
function
|
|
3562
|
+
function gn(n, e = []) {
|
|
3563
3563
|
let t;
|
|
3564
3564
|
switch (n) {
|
|
3565
3565
|
case "Browser":
|
|
@@ -3590,7 +3590,7 @@ function _n(n, e = []) {
|
|
|
3590
3590
|
* See the License for the specific language governing permissions and
|
|
3591
3591
|
* limitations under the License.
|
|
3592
3592
|
*/
|
|
3593
|
-
class
|
|
3593
|
+
class Ji {
|
|
3594
3594
|
constructor(e) {
|
|
3595
3595
|
this.auth = e, this.queue = [];
|
|
3596
3596
|
}
|
|
@@ -3645,7 +3645,7 @@ class Yi {
|
|
|
3645
3645
|
* See the License for the specific language governing permissions and
|
|
3646
3646
|
* limitations under the License.
|
|
3647
3647
|
*/
|
|
3648
|
-
async function
|
|
3648
|
+
async function Yi(n, e = {}) {
|
|
3649
3649
|
return G(n, "GET", "/v2/passwordPolicy", ye(n, e));
|
|
3650
3650
|
}
|
|
3651
3651
|
/**
|
|
@@ -3664,12 +3664,12 @@ async function Xi(n, e = {}) {
|
|
|
3664
3664
|
* See the License for the specific language governing permissions and
|
|
3665
3665
|
* limitations under the License.
|
|
3666
3666
|
*/
|
|
3667
|
-
const
|
|
3668
|
-
class
|
|
3667
|
+
const Xi = 6;
|
|
3668
|
+
class Qi {
|
|
3669
3669
|
constructor(e) {
|
|
3670
3670
|
var t, r, i, s;
|
|
3671
3671
|
const a = e.customStrengthOptions;
|
|
3672
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t :
|
|
3672
|
+
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t : Xi, a.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = a.maxPasswordLength), a.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = a.containsLowercaseCharacter), a.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = a.containsUppercaseCharacter), a.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = a.containsNumericCharacter), a.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = a.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (i = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && i !== void 0 ? i : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
|
|
3673
3673
|
}
|
|
3674
3674
|
validatePassword(e) {
|
|
3675
3675
|
var t, r, i, s, a, c;
|
|
@@ -3752,9 +3752,9 @@ class Zi {
|
|
|
3752
3752
|
* See the License for the specific language governing permissions and
|
|
3753
3753
|
* limitations under the License.
|
|
3754
3754
|
*/
|
|
3755
|
-
class
|
|
3755
|
+
class Zi {
|
|
3756
3756
|
constructor(e, t, r, i) {
|
|
3757
|
-
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new It(this), this.idTokenSubscription = new It(this), this.beforeStateQueue = new
|
|
3757
|
+
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new It(this), this.idTokenSubscription = new It(this), this.beforeStateQueue = new Ji(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Qt, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
|
|
3758
3758
|
}
|
|
3759
3759
|
_initializeWithPersistence(e, t) {
|
|
3760
3760
|
return t && (this._popupRedirectResolver = w(t)), this._initializationPromise = this.queue(async () => {
|
|
@@ -3790,7 +3790,7 @@ class es {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
async initializeCurrentUserFromIdToken(e) {
|
|
3792
3792
|
try {
|
|
3793
|
-
const t = await
|
|
3793
|
+
const t = await sn(this, { idToken: e }), r = await I._fromGetAccountInfoResponse(this, t, e);
|
|
3794
3794
|
await this.directlySetCurrentUser(r);
|
|
3795
3795
|
} catch (t) {
|
|
3796
3796
|
console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
|
|
@@ -3848,7 +3848,7 @@ class es {
|
|
|
3848
3848
|
return this.directlySetCurrentUser(e);
|
|
3849
3849
|
}
|
|
3850
3850
|
useDeviceLanguage() {
|
|
3851
|
-
this.languageCode =
|
|
3851
|
+
this.languageCode = Mi();
|
|
3852
3852
|
}
|
|
3853
3853
|
async _delete() {
|
|
3854
3854
|
this._deleted = !0;
|
|
@@ -3899,7 +3899,7 @@ class es {
|
|
|
3899
3899
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
|
3900
3900
|
}
|
|
3901
3901
|
async _updatePasswordPolicy() {
|
|
3902
|
-
const e = await
|
|
3902
|
+
const e = await Yi(this), t = new Qi(e);
|
|
3903
3903
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
|
3904
3904
|
}
|
|
3905
3905
|
_getPersistence() {
|
|
@@ -3939,7 +3939,7 @@ class es {
|
|
|
3939
3939
|
token: e,
|
|
3940
3940
|
idToken: t
|
|
3941
3941
|
};
|
|
3942
|
-
this.tenantId != null && (r.tenantId = this.tenantId), await
|
|
3942
|
+
this.tenantId != null && (r.tenantId = this.tenantId), await Gi(this, r);
|
|
3943
3943
|
}
|
|
3944
3944
|
}
|
|
3945
3945
|
toJSON() {
|
|
@@ -4052,7 +4052,7 @@ class es {
|
|
|
4052
4052
|
), this.persistenceManager;
|
|
4053
4053
|
}
|
|
4054
4054
|
_logFramework(e) {
|
|
4055
|
-
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion =
|
|
4055
|
+
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = gn(this.config.clientPlatform, this._getFrameworks()));
|
|
4056
4056
|
}
|
|
4057
4057
|
_getFrameworks() {
|
|
4058
4058
|
return this.frameworks;
|
|
@@ -4082,7 +4082,7 @@ class es {
|
|
|
4082
4082
|
async _getAppCheckToken() {
|
|
4083
4083
|
var e;
|
|
4084
4084
|
const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
|
4085
|
-
return t != null && t.error &&
|
|
4085
|
+
return t != null && t.error && Di(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
4088
|
function ve(n) {
|
|
@@ -4090,7 +4090,7 @@ function ve(n) {
|
|
|
4090
4090
|
}
|
|
4091
4091
|
class It {
|
|
4092
4092
|
constructor(e) {
|
|
4093
|
-
this.auth = e, this.observer = null, this.addObserver =
|
|
4093
|
+
this.auth = e, this.observer = null, this.addObserver = yr((t) => this.observer = t);
|
|
4094
4094
|
}
|
|
4095
4095
|
get next() {
|
|
4096
4096
|
return h(
|
|
@@ -4125,16 +4125,16 @@ let Xe = {
|
|
|
4125
4125
|
recaptchaEnterpriseScript: "",
|
|
4126
4126
|
gapiScript: ""
|
|
4127
4127
|
};
|
|
4128
|
-
function
|
|
4128
|
+
function es(n) {
|
|
4129
4129
|
Xe = n;
|
|
4130
4130
|
}
|
|
4131
|
-
function
|
|
4131
|
+
function ts(n) {
|
|
4132
4132
|
return Xe.loadJS(n);
|
|
4133
4133
|
}
|
|
4134
|
-
function
|
|
4134
|
+
function ns() {
|
|
4135
4135
|
return Xe.gapiScript;
|
|
4136
4136
|
}
|
|
4137
|
-
function
|
|
4137
|
+
function rs(n) {
|
|
4138
4138
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
4139
4139
|
}
|
|
4140
4140
|
/**
|
|
@@ -4153,8 +4153,8 @@ function is(n) {
|
|
|
4153
4153
|
* See the License for the specific language governing permissions and
|
|
4154
4154
|
* limitations under the License.
|
|
4155
4155
|
*/
|
|
4156
|
-
function
|
|
4157
|
-
const t =
|
|
4156
|
+
function is(n, e) {
|
|
4157
|
+
const t = qt(n, "auth");
|
|
4158
4158
|
if (t.isInitialized()) {
|
|
4159
4159
|
const i = t.getImmediate(), s = t.getOptions();
|
|
4160
4160
|
if (de(s, e ?? {}))
|
|
@@ -4167,11 +4167,11 @@ function ss(n, e) {
|
|
|
4167
4167
|
}
|
|
4168
4168
|
return t.initialize({ options: e });
|
|
4169
4169
|
}
|
|
4170
|
-
function
|
|
4170
|
+
function ss(n, e) {
|
|
4171
4171
|
const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(w);
|
|
4172
4172
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
|
4173
4173
|
}
|
|
4174
|
-
function
|
|
4174
|
+
function as(n, e, t) {
|
|
4175
4175
|
const r = ve(n);
|
|
4176
4176
|
h(
|
|
4177
4177
|
r._canInitEmulator,
|
|
@@ -4184,20 +4184,20 @@ function os(n, e, t) {
|
|
|
4184
4184
|
"invalid-emulator-scheme"
|
|
4185
4185
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
4186
4186
|
);
|
|
4187
|
-
const i = !1, s =
|
|
4187
|
+
const i = !1, s = _n(e), { host: a, port: c } = os(e), o = c === null ? "" : `:${c}`;
|
|
4188
4188
|
r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
|
4189
4189
|
host: a,
|
|
4190
4190
|
port: c,
|
|
4191
4191
|
protocol: s.replace(":", ""),
|
|
4192
4192
|
options: Object.freeze({ disableWarnings: i })
|
|
4193
|
-
}),
|
|
4193
|
+
}), cs();
|
|
4194
4194
|
}
|
|
4195
|
-
function
|
|
4195
|
+
function _n(n) {
|
|
4196
4196
|
const e = n.indexOf(":");
|
|
4197
4197
|
return e < 0 ? "" : n.substr(0, e + 1);
|
|
4198
4198
|
}
|
|
4199
|
-
function
|
|
4200
|
-
const e =
|
|
4199
|
+
function os(n) {
|
|
4200
|
+
const e = _n(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
|
4201
4201
|
if (!t)
|
|
4202
4202
|
return { host: "", port: null };
|
|
4203
4203
|
const r = t[2].split("@").pop() || "", i = /^(\[[^\]]+\])(:|$)/.exec(r);
|
|
@@ -4215,7 +4215,7 @@ function wt(n) {
|
|
|
4215
4215
|
const e = Number(n);
|
|
4216
4216
|
return isNaN(e) ? null : e;
|
|
4217
4217
|
}
|
|
4218
|
-
function
|
|
4218
|
+
function cs() {
|
|
4219
4219
|
function n() {
|
|
4220
4220
|
const e = document.createElement("p"), t = e.style;
|
|
4221
4221
|
e.innerText = "Running in emulator mode. Do not use with production credentials.", t.position = "fixed", t.width = "100%", t.backgroundColor = "#ffffff", t.border = ".1em solid #000000", t.color = "#b50000", t.bottom = "0px", t.left = "0px", t.margin = "0px", t.zIndex = "10000", t.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
|
|
@@ -4238,7 +4238,7 @@ function ls() {
|
|
|
4238
4238
|
* See the License for the specific language governing permissions and
|
|
4239
4239
|
* limitations under the License.
|
|
4240
4240
|
*/
|
|
4241
|
-
class
|
|
4241
|
+
class yn {
|
|
4242
4242
|
/** @internal */
|
|
4243
4243
|
constructor(e, t) {
|
|
4244
4244
|
this.providerId = e, this.signInMethod = t;
|
|
@@ -4281,7 +4281,7 @@ class vn {
|
|
|
4281
4281
|
* limitations under the License.
|
|
4282
4282
|
*/
|
|
4283
4283
|
async function j(n, e) {
|
|
4284
|
-
return
|
|
4284
|
+
return nn(n, "POST", "/v1/accounts:signInWithIdp", ye(n, e));
|
|
4285
4285
|
}
|
|
4286
4286
|
/**
|
|
4287
4287
|
* @license
|
|
@@ -4299,8 +4299,8 @@ async function j(n, e) {
|
|
|
4299
4299
|
* See the License for the specific language governing permissions and
|
|
4300
4300
|
* limitations under the License.
|
|
4301
4301
|
*/
|
|
4302
|
-
const
|
|
4303
|
-
class U extends
|
|
4302
|
+
const ls = "http://localhost";
|
|
4303
|
+
class U extends yn {
|
|
4304
4304
|
constructor() {
|
|
4305
4305
|
super(...arguments), this.pendingToken = null;
|
|
4306
4306
|
}
|
|
@@ -4357,7 +4357,7 @@ class U extends vn {
|
|
|
4357
4357
|
}
|
|
4358
4358
|
buildRequest() {
|
|
4359
4359
|
const e = {
|
|
4360
|
-
requestUri:
|
|
4360
|
+
requestUri: ls,
|
|
4361
4361
|
returnSecureToken: !0
|
|
4362
4362
|
};
|
|
4363
4363
|
if (this.pendingToken)
|
|
@@ -4385,7 +4385,7 @@ class U extends vn {
|
|
|
4385
4385
|
* See the License for the specific language governing permissions and
|
|
4386
4386
|
* limitations under the License.
|
|
4387
4387
|
*/
|
|
4388
|
-
class
|
|
4388
|
+
class vn {
|
|
4389
4389
|
/**
|
|
4390
4390
|
* Constructor for generic OAuth providers.
|
|
4391
4391
|
*
|
|
@@ -4438,7 +4438,7 @@ class bn {
|
|
|
4438
4438
|
* See the License for the specific language governing permissions and
|
|
4439
4439
|
* limitations under the License.
|
|
4440
4440
|
*/
|
|
4441
|
-
class re extends
|
|
4441
|
+
class re extends vn {
|
|
4442
4442
|
constructor() {
|
|
4443
4443
|
super(...arguments), this.scopes = [];
|
|
4444
4444
|
}
|
|
@@ -4544,7 +4544,7 @@ A.PROVIDER_ID = "facebook.com";
|
|
|
4544
4544
|
* See the License for the specific language governing permissions and
|
|
4545
4545
|
* limitations under the License.
|
|
4546
4546
|
*/
|
|
4547
|
-
class
|
|
4547
|
+
class R extends re {
|
|
4548
4548
|
constructor() {
|
|
4549
4549
|
super(
|
|
4550
4550
|
"google.com"
|
|
@@ -4566,8 +4566,8 @@ class C extends re {
|
|
|
4566
4566
|
*/
|
|
4567
4567
|
static credential(e, t) {
|
|
4568
4568
|
return U._fromParams({
|
|
4569
|
-
providerId:
|
|
4570
|
-
signInMethod:
|
|
4569
|
+
providerId: R.PROVIDER_ID,
|
|
4570
|
+
signInMethod: R.GOOGLE_SIGN_IN_METHOD,
|
|
4571
4571
|
idToken: e,
|
|
4572
4572
|
accessToken: t
|
|
4573
4573
|
});
|
|
@@ -4578,7 +4578,7 @@ class C extends re {
|
|
|
4578
4578
|
* @param userCredential - The user credential.
|
|
4579
4579
|
*/
|
|
4580
4580
|
static credentialFromResult(e) {
|
|
4581
|
-
return
|
|
4581
|
+
return R.credentialFromTaggedObject(e);
|
|
4582
4582
|
}
|
|
4583
4583
|
/**
|
|
4584
4584
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -4587,7 +4587,7 @@ class C extends re {
|
|
|
4587
4587
|
* @param userCredential - The user credential.
|
|
4588
4588
|
*/
|
|
4589
4589
|
static credentialFromError(e) {
|
|
4590
|
-
return
|
|
4590
|
+
return R.credentialFromTaggedObject(e.customData || {});
|
|
4591
4591
|
}
|
|
4592
4592
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
4593
4593
|
if (!e)
|
|
@@ -4596,14 +4596,14 @@ class C extends re {
|
|
|
4596
4596
|
if (!t && !r)
|
|
4597
4597
|
return null;
|
|
4598
4598
|
try {
|
|
4599
|
-
return
|
|
4599
|
+
return R.credential(t, r);
|
|
4600
4600
|
} catch {
|
|
4601
4601
|
return null;
|
|
4602
4602
|
}
|
|
4603
4603
|
}
|
|
4604
4604
|
}
|
|
4605
|
-
|
|
4606
|
-
|
|
4605
|
+
R.GOOGLE_SIGN_IN_METHOD = "google.com";
|
|
4606
|
+
R.PROVIDER_ID = "google.com";
|
|
4607
4607
|
/**
|
|
4608
4608
|
* @license
|
|
4609
4609
|
* Copyright 2020 Google LLC
|
|
@@ -4620,7 +4620,7 @@ C.PROVIDER_ID = "google.com";
|
|
|
4620
4620
|
* See the License for the specific language governing permissions and
|
|
4621
4621
|
* limitations under the License.
|
|
4622
4622
|
*/
|
|
4623
|
-
class
|
|
4623
|
+
class C extends re {
|
|
4624
4624
|
constructor() {
|
|
4625
4625
|
super(
|
|
4626
4626
|
"github.com"
|
|
@@ -4634,8 +4634,8 @@ class R extends re {
|
|
|
4634
4634
|
*/
|
|
4635
4635
|
static credential(e) {
|
|
4636
4636
|
return U._fromParams({
|
|
4637
|
-
providerId:
|
|
4638
|
-
signInMethod:
|
|
4637
|
+
providerId: C.PROVIDER_ID,
|
|
4638
|
+
signInMethod: C.GITHUB_SIGN_IN_METHOD,
|
|
4639
4639
|
accessToken: e
|
|
4640
4640
|
});
|
|
4641
4641
|
}
|
|
@@ -4645,7 +4645,7 @@ class R extends re {
|
|
|
4645
4645
|
* @param userCredential - The user credential.
|
|
4646
4646
|
*/
|
|
4647
4647
|
static credentialFromResult(e) {
|
|
4648
|
-
return
|
|
4648
|
+
return C.credentialFromTaggedObject(e);
|
|
4649
4649
|
}
|
|
4650
4650
|
/**
|
|
4651
4651
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
|
@@ -4654,20 +4654,20 @@ class R extends re {
|
|
|
4654
4654
|
* @param userCredential - The user credential.
|
|
4655
4655
|
*/
|
|
4656
4656
|
static credentialFromError(e) {
|
|
4657
|
-
return
|
|
4657
|
+
return C.credentialFromTaggedObject(e.customData || {});
|
|
4658
4658
|
}
|
|
4659
4659
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
|
4660
4660
|
if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
|
|
4661
4661
|
return null;
|
|
4662
4662
|
try {
|
|
4663
|
-
return
|
|
4663
|
+
return C.credential(e.oauthAccessToken);
|
|
4664
4664
|
} catch {
|
|
4665
4665
|
return null;
|
|
4666
4666
|
}
|
|
4667
4667
|
}
|
|
4668
4668
|
}
|
|
4669
|
-
|
|
4670
|
-
|
|
4669
|
+
C.GITHUB_SIGN_IN_METHOD = "github.com";
|
|
4670
|
+
C.PROVIDER_ID = "github.com";
|
|
4671
4671
|
/**
|
|
4672
4672
|
* @license
|
|
4673
4673
|
* Copyright 2020 Google LLC
|
|
@@ -4814,12 +4814,12 @@ class me extends L {
|
|
|
4814
4814
|
return new me(e, t, r, i);
|
|
4815
4815
|
}
|
|
4816
4816
|
}
|
|
4817
|
-
function
|
|
4817
|
+
function bn(n, e, t, r) {
|
|
4818
4818
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
|
4819
4819
|
throw s.code === "auth/multi-factor-auth-required" ? me._fromErrorAndOperation(n, s, e, r) : s;
|
|
4820
4820
|
});
|
|
4821
4821
|
}
|
|
4822
|
-
async function
|
|
4822
|
+
async function us(n, e, t = !1) {
|
|
4823
4823
|
const r = await Q(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
|
4824
4824
|
return x._forOperation(n, "link", r);
|
|
4825
4825
|
}
|
|
@@ -4839,13 +4839,13 @@ async function ds(n, e, t = !1) {
|
|
|
4839
4839
|
* See the License for the specific language governing permissions and
|
|
4840
4840
|
* limitations under the License.
|
|
4841
4841
|
*/
|
|
4842
|
-
async function
|
|
4842
|
+
async function ds(n, e, t = !1) {
|
|
4843
4843
|
const { auth: r } = n;
|
|
4844
4844
|
if (v(r.app))
|
|
4845
4845
|
return Promise.reject(N(r));
|
|
4846
4846
|
const i = "reauthenticate";
|
|
4847
4847
|
try {
|
|
4848
|
-
const s = await Q(n,
|
|
4848
|
+
const s = await Q(n, bn(r, i, e, n), t);
|
|
4849
4849
|
h(
|
|
4850
4850
|
s.idToken,
|
|
4851
4851
|
r,
|
|
@@ -4890,10 +4890,10 @@ async function hs(n, e, t = !1) {
|
|
|
4890
4890
|
* See the License for the specific language governing permissions and
|
|
4891
4891
|
* limitations under the License.
|
|
4892
4892
|
*/
|
|
4893
|
-
async function
|
|
4893
|
+
async function hs(n, e, t = !1) {
|
|
4894
4894
|
if (v(n.app))
|
|
4895
4895
|
return Promise.reject(N(n));
|
|
4896
|
-
const r = "signIn", i = await
|
|
4896
|
+
const r = "signIn", i = await bn(n, r, e), s = await x._fromIdTokenResponse(n, r, i);
|
|
4897
4897
|
return t || await n._updateCurrentUser(s.user), s;
|
|
4898
4898
|
}
|
|
4899
4899
|
/**
|
|
@@ -4912,8 +4912,8 @@ async function fs(n, e, t = !1) {
|
|
|
4912
4912
|
* See the License for the specific language governing permissions and
|
|
4913
4913
|
* limitations under the License.
|
|
4914
4914
|
*/
|
|
4915
|
-
async function
|
|
4916
|
-
return
|
|
4915
|
+
async function fs(n, e) {
|
|
4916
|
+
return nn(n, "POST", "/v1/accounts:signInWithCustomToken", ye(n, e));
|
|
4917
4917
|
}
|
|
4918
4918
|
/**
|
|
4919
4919
|
* @license
|
|
@@ -4931,19 +4931,19 @@ async function ps(n, e) {
|
|
|
4931
4931
|
* See the License for the specific language governing permissions and
|
|
4932
4932
|
* limitations under the License.
|
|
4933
4933
|
*/
|
|
4934
|
-
async function
|
|
4934
|
+
async function ps(n, e) {
|
|
4935
4935
|
if (v(n.app))
|
|
4936
4936
|
return Promise.reject(N(n));
|
|
4937
|
-
const t = ve(n), r = await
|
|
4937
|
+
const t = ve(n), r = await fs(t, {
|
|
4938
4938
|
token: e,
|
|
4939
4939
|
returnSecureToken: !0
|
|
4940
4940
|
}), i = await x._fromIdTokenResponse(t, "signIn", r);
|
|
4941
4941
|
return await t._updateCurrentUser(i.user), i;
|
|
4942
4942
|
}
|
|
4943
|
-
function
|
|
4943
|
+
function ms(n, e, t, r) {
|
|
4944
4944
|
return z(n).onIdTokenChanged(e, t, r);
|
|
4945
4945
|
}
|
|
4946
|
-
function
|
|
4946
|
+
function gs(n, e, t) {
|
|
4947
4947
|
return z(n).beforeAuthStateChanged(e, t);
|
|
4948
4948
|
}
|
|
4949
4949
|
const ge = "__sak";
|
|
@@ -4963,7 +4963,7 @@ const ge = "__sak";
|
|
|
4963
4963
|
* See the License for the specific language governing permissions and
|
|
4964
4964
|
* limitations under the License.
|
|
4965
4965
|
*/
|
|
4966
|
-
class
|
|
4966
|
+
class In {
|
|
4967
4967
|
constructor(e, t) {
|
|
4968
4968
|
this.storageRetriever = e, this.type = t;
|
|
4969
4969
|
}
|
|
@@ -5004,14 +5004,14 @@ class wn {
|
|
|
5004
5004
|
* See the License for the specific language governing permissions and
|
|
5005
5005
|
* limitations under the License.
|
|
5006
5006
|
*/
|
|
5007
|
-
const
|
|
5008
|
-
class
|
|
5007
|
+
const _s = 1e3, ys = 10;
|
|
5008
|
+
class wn extends In {
|
|
5009
5009
|
constructor() {
|
|
5010
5010
|
super(
|
|
5011
5011
|
() => window.localStorage,
|
|
5012
5012
|
"LOCAL"
|
|
5013
5013
|
/* PersistenceType.LOCAL */
|
|
5014
|
-
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.fallbackToPolling =
|
|
5014
|
+
), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.fallbackToPolling = mn(), this._shouldAllowMigration = !0;
|
|
5015
5015
|
}
|
|
5016
5016
|
forAllChangedKeys(e) {
|
|
5017
5017
|
for (const t of Object.keys(this.listeners)) {
|
|
@@ -5032,7 +5032,7 @@ class En extends wn {
|
|
|
5032
5032
|
const a = this.storage.getItem(r);
|
|
5033
5033
|
!t && this.localCache[r] === a || this.notifyListeners(r, a);
|
|
5034
5034
|
}, s = this.storage.getItem(r);
|
|
5035
|
-
|
|
5035
|
+
Ki() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, ys) : i();
|
|
5036
5036
|
}
|
|
5037
5037
|
notifyListeners(e, t) {
|
|
5038
5038
|
this.localCache[e] = t;
|
|
@@ -5054,7 +5054,7 @@ class En extends wn {
|
|
|
5054
5054
|
!0
|
|
5055
5055
|
);
|
|
5056
5056
|
});
|
|
5057
|
-
},
|
|
5057
|
+
}, _s);
|
|
5058
5058
|
}
|
|
5059
5059
|
stopPolling() {
|
|
5060
5060
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -5083,8 +5083,8 @@ class En extends wn {
|
|
|
5083
5083
|
await super._remove(e), delete this.localCache[e];
|
|
5084
5084
|
}
|
|
5085
5085
|
}
|
|
5086
|
-
|
|
5087
|
-
const
|
|
5086
|
+
wn.type = "LOCAL";
|
|
5087
|
+
const vs = wn;
|
|
5088
5088
|
/**
|
|
5089
5089
|
* @license
|
|
5090
5090
|
* Copyright 2020 Google LLC
|
|
@@ -5101,7 +5101,7 @@ const bs = En;
|
|
|
5101
5101
|
* See the License for the specific language governing permissions and
|
|
5102
5102
|
* limitations under the License.
|
|
5103
5103
|
*/
|
|
5104
|
-
class
|
|
5104
|
+
class En extends In {
|
|
5105
5105
|
constructor() {
|
|
5106
5106
|
super(
|
|
5107
5107
|
() => window.sessionStorage,
|
|
@@ -5114,8 +5114,8 @@ class Tn extends wn {
|
|
|
5114
5114
|
_removeListener(e, t) {
|
|
5115
5115
|
}
|
|
5116
5116
|
}
|
|
5117
|
-
|
|
5118
|
-
const
|
|
5117
|
+
En.type = "SESSION";
|
|
5118
|
+
const Tn = En;
|
|
5119
5119
|
/**
|
|
5120
5120
|
* @license
|
|
5121
5121
|
* Copyright 2019 Google LLC
|
|
@@ -5132,7 +5132,7 @@ const Sn = Tn;
|
|
|
5132
5132
|
* See the License for the specific language governing permissions and
|
|
5133
5133
|
* limitations under the License.
|
|
5134
5134
|
*/
|
|
5135
|
-
function
|
|
5135
|
+
function bs(n) {
|
|
5136
5136
|
return Promise.all(n.map(async (e) => {
|
|
5137
5137
|
try {
|
|
5138
5138
|
return {
|
|
@@ -5202,7 +5202,7 @@ class be {
|
|
|
5202
5202
|
eventId: r,
|
|
5203
5203
|
eventType: i
|
|
5204
5204
|
});
|
|
5205
|
-
const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await
|
|
5205
|
+
const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await bs(c);
|
|
5206
5206
|
t.ports[0].postMessage({
|
|
5207
5207
|
status: "done",
|
|
5208
5208
|
eventId: r,
|
|
@@ -5270,7 +5270,7 @@ function Qe(n = "", e = 10) {
|
|
|
5270
5270
|
* See the License for the specific language governing permissions and
|
|
5271
5271
|
* limitations under the License.
|
|
5272
5272
|
*/
|
|
5273
|
-
class
|
|
5273
|
+
class Is {
|
|
5274
5274
|
constructor(e) {
|
|
5275
5275
|
this.target = e, this.handlers = /* @__PURE__ */ new Set();
|
|
5276
5276
|
}
|
|
@@ -5370,7 +5370,7 @@ class ws {
|
|
|
5370
5370
|
function y() {
|
|
5371
5371
|
return window;
|
|
5372
5372
|
}
|
|
5373
|
-
function
|
|
5373
|
+
function ws(n) {
|
|
5374
5374
|
y().location.href = n;
|
|
5375
5375
|
}
|
|
5376
5376
|
/**
|
|
@@ -5389,10 +5389,10 @@ function Es(n) {
|
|
|
5389
5389
|
* See the License for the specific language governing permissions and
|
|
5390
5390
|
* limitations under the License.
|
|
5391
5391
|
*/
|
|
5392
|
-
function
|
|
5392
|
+
function Sn() {
|
|
5393
5393
|
return typeof y().WorkerGlobalScope < "u" && typeof y().importScripts == "function";
|
|
5394
5394
|
}
|
|
5395
|
-
async function
|
|
5395
|
+
async function Es() {
|
|
5396
5396
|
if (!(navigator != null && navigator.serviceWorker))
|
|
5397
5397
|
return null;
|
|
5398
5398
|
try {
|
|
@@ -5401,12 +5401,12 @@ async function Ts() {
|
|
|
5401
5401
|
return null;
|
|
5402
5402
|
}
|
|
5403
5403
|
}
|
|
5404
|
-
function
|
|
5404
|
+
function Ts() {
|
|
5405
5405
|
var n;
|
|
5406
5406
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
|
5407
5407
|
}
|
|
5408
|
-
function
|
|
5409
|
-
return
|
|
5408
|
+
function Ss() {
|
|
5409
|
+
return Sn() ? self : null;
|
|
5410
5410
|
}
|
|
5411
5411
|
/**
|
|
5412
5412
|
* @license
|
|
@@ -5424,7 +5424,7 @@ function ks() {
|
|
|
5424
5424
|
* See the License for the specific language governing permissions and
|
|
5425
5425
|
* limitations under the License.
|
|
5426
5426
|
*/
|
|
5427
|
-
const
|
|
5427
|
+
const kn = "firebaseLocalStorageDb", ks = 1, _e = "firebaseLocalStorage", An = "fbase_key";
|
|
5428
5428
|
class ie {
|
|
5429
5429
|
constructor(e) {
|
|
5430
5430
|
this.request = e;
|
|
@@ -5442,31 +5442,31 @@ class ie {
|
|
|
5442
5442
|
function Ie(n, e) {
|
|
5443
5443
|
return n.transaction([_e], e ? "readwrite" : "readonly").objectStore(_e);
|
|
5444
5444
|
}
|
|
5445
|
-
function
|
|
5446
|
-
const n = indexedDB.deleteDatabase(
|
|
5445
|
+
function As() {
|
|
5446
|
+
const n = indexedDB.deleteDatabase(kn);
|
|
5447
5447
|
return new ie(n).toPromise();
|
|
5448
5448
|
}
|
|
5449
5449
|
function Ve() {
|
|
5450
|
-
const n = indexedDB.open(
|
|
5450
|
+
const n = indexedDB.open(kn, ks);
|
|
5451
5451
|
return new Promise((e, t) => {
|
|
5452
5452
|
n.addEventListener("error", () => {
|
|
5453
5453
|
t(n.error);
|
|
5454
5454
|
}), n.addEventListener("upgradeneeded", () => {
|
|
5455
5455
|
const r = n.result;
|
|
5456
5456
|
try {
|
|
5457
|
-
r.createObjectStore(_e, { keyPath:
|
|
5457
|
+
r.createObjectStore(_e, { keyPath: An });
|
|
5458
5458
|
} catch (i) {
|
|
5459
5459
|
t(i);
|
|
5460
5460
|
}
|
|
5461
5461
|
}), n.addEventListener("success", async () => {
|
|
5462
5462
|
const r = n.result;
|
|
5463
|
-
r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await
|
|
5463
|
+
r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await As(), e(await Ve()));
|
|
5464
5464
|
});
|
|
5465
5465
|
});
|
|
5466
5466
|
}
|
|
5467
5467
|
async function Tt(n, e, t) {
|
|
5468
5468
|
const r = Ie(n, !0).put({
|
|
5469
|
-
[
|
|
5469
|
+
[An]: e,
|
|
5470
5470
|
value: t
|
|
5471
5471
|
});
|
|
5472
5472
|
return new ie(r).toPromise();
|
|
@@ -5479,7 +5479,7 @@ function St(n, e) {
|
|
|
5479
5479
|
const t = Ie(n, !0).delete(e);
|
|
5480
5480
|
return new ie(t).toPromise();
|
|
5481
5481
|
}
|
|
5482
|
-
const
|
|
5482
|
+
const Cs = 800, Ps = 3;
|
|
5483
5483
|
class Rn {
|
|
5484
5484
|
constructor() {
|
|
5485
5485
|
this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
|
|
@@ -5496,7 +5496,7 @@ class Rn {
|
|
|
5496
5496
|
const r = await this._openDb();
|
|
5497
5497
|
return await e(r);
|
|
5498
5498
|
} catch (r) {
|
|
5499
|
-
if (t++ >
|
|
5499
|
+
if (t++ > Ps)
|
|
5500
5500
|
throw r;
|
|
5501
5501
|
this.db && (this.db.close(), this.db = void 0);
|
|
5502
5502
|
}
|
|
@@ -5506,13 +5506,13 @@ class Rn {
|
|
|
5506
5506
|
* postMessage interface to send these events to the worker ourselves.
|
|
5507
5507
|
*/
|
|
5508
5508
|
async initializeServiceWorkerMessaging() {
|
|
5509
|
-
return
|
|
5509
|
+
return Sn() ? this.initializeReceiver() : this.initializeSender();
|
|
5510
5510
|
}
|
|
5511
5511
|
/**
|
|
5512
5512
|
* As the worker we should listen to events from the main window.
|
|
5513
5513
|
*/
|
|
5514
5514
|
async initializeReceiver() {
|
|
5515
|
-
this.receiver = be._getInstance(
|
|
5515
|
+
this.receiver = be._getInstance(Ss()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
|
5516
5516
|
keyProcessed: (await this._poll()).includes(t.key)
|
|
5517
5517
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
|
5518
5518
|
"keyChanged"
|
|
@@ -5528,9 +5528,9 @@ class Rn {
|
|
|
5528
5528
|
*/
|
|
5529
5529
|
async initializeSender() {
|
|
5530
5530
|
var e, t;
|
|
5531
|
-
if (this.activeServiceWorker = await
|
|
5531
|
+
if (this.activeServiceWorker = await Es(), !this.activeServiceWorker)
|
|
5532
5532
|
return;
|
|
5533
|
-
this.sender = new
|
|
5533
|
+
this.sender = new Is(this.activeServiceWorker);
|
|
5534
5534
|
const r = await this.sender._send(
|
|
5535
5535
|
"ping",
|
|
5536
5536
|
{},
|
|
@@ -5552,7 +5552,7 @@ class Rn {
|
|
|
5552
5552
|
* @param key - Storage key which changed.
|
|
5553
5553
|
*/
|
|
5554
5554
|
async notifyServiceWorker(e) {
|
|
5555
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
|
5555
|
+
if (!(!this.sender || !this.activeServiceWorker || Ts() !== this.activeServiceWorker))
|
|
5556
5556
|
try {
|
|
5557
5557
|
await this.sender._send(
|
|
5558
5558
|
"keyChanged",
|
|
@@ -5617,7 +5617,7 @@ class Rn {
|
|
|
5617
5617
|
i(t);
|
|
5618
5618
|
}
|
|
5619
5619
|
startPolling() {
|
|
5620
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
5620
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Cs);
|
|
5621
5621
|
}
|
|
5622
5622
|
stopPolling() {
|
|
5623
5623
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -5630,7 +5630,7 @@ class Rn {
|
|
|
5630
5630
|
}
|
|
5631
5631
|
}
|
|
5632
5632
|
Rn.type = "LOCAL";
|
|
5633
|
-
const
|
|
5633
|
+
const Os = Rn;
|
|
5634
5634
|
new ne(3e4, 6e4);
|
|
5635
5635
|
/**
|
|
5636
5636
|
* @license
|
|
@@ -5648,7 +5648,7 @@ new ne(3e4, 6e4);
|
|
|
5648
5648
|
* See the License for the specific language governing permissions and
|
|
5649
5649
|
* limitations under the License.
|
|
5650
5650
|
*/
|
|
5651
|
-
function
|
|
5651
|
+
function Ds(n, e) {
|
|
5652
5652
|
return e ? w(e) : (h(
|
|
5653
5653
|
n._popupRedirectResolver,
|
|
5654
5654
|
n,
|
|
@@ -5672,7 +5672,7 @@ function Ns(n, e) {
|
|
|
5672
5672
|
* See the License for the specific language governing permissions and
|
|
5673
5673
|
* limitations under the License.
|
|
5674
5674
|
*/
|
|
5675
|
-
class Ze extends
|
|
5675
|
+
class Ze extends yn {
|
|
5676
5676
|
constructor(e) {
|
|
5677
5677
|
super(
|
|
5678
5678
|
"custom",
|
|
@@ -5702,26 +5702,26 @@ class Ze extends vn {
|
|
|
5702
5702
|
return e && (t.idToken = e), t;
|
|
5703
5703
|
}
|
|
5704
5704
|
}
|
|
5705
|
-
function
|
|
5706
|
-
return
|
|
5705
|
+
function Ns(n) {
|
|
5706
|
+
return hs(n.auth, new Ze(n), n.bypassAuthState);
|
|
5707
5707
|
}
|
|
5708
|
-
function
|
|
5708
|
+
function Ls(n) {
|
|
5709
5709
|
const { auth: e, user: t } = n;
|
|
5710
5710
|
return h(
|
|
5711
5711
|
t,
|
|
5712
5712
|
e,
|
|
5713
5713
|
"internal-error"
|
|
5714
5714
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5715
|
-
),
|
|
5715
|
+
), ds(t, new Ze(n), n.bypassAuthState);
|
|
5716
5716
|
}
|
|
5717
|
-
async function
|
|
5717
|
+
async function Ms(n) {
|
|
5718
5718
|
const { auth: e, user: t } = n;
|
|
5719
5719
|
return h(
|
|
5720
5720
|
t,
|
|
5721
5721
|
e,
|
|
5722
5722
|
"internal-error"
|
|
5723
5723
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5724
|
-
),
|
|
5724
|
+
), us(t, new Ze(n), n.bypassAuthState);
|
|
5725
5725
|
}
|
|
5726
5726
|
/**
|
|
5727
5727
|
* @license
|
|
@@ -5739,7 +5739,7 @@ async function Us(n) {
|
|
|
5739
5739
|
* See the License for the specific language governing permissions and
|
|
5740
5740
|
* limitations under the License.
|
|
5741
5741
|
*/
|
|
5742
|
-
class
|
|
5742
|
+
class Cn {
|
|
5743
5743
|
constructor(e, t, r, i, s = !1) {
|
|
5744
5744
|
this.auth = e, this.resolver = r, this.user = i, this.bypassAuthState = s, this.pendingPromise = null, this.eventManager = null, this.filter = Array.isArray(t) ? t : [t];
|
|
5745
5745
|
}
|
|
@@ -5781,13 +5781,13 @@ class Pn {
|
|
|
5781
5781
|
switch (e) {
|
|
5782
5782
|
case "signInViaPopup":
|
|
5783
5783
|
case "signInViaRedirect":
|
|
5784
|
-
return
|
|
5784
|
+
return Ns;
|
|
5785
5785
|
case "linkViaPopup":
|
|
5786
5786
|
case "linkViaRedirect":
|
|
5787
|
-
return
|
|
5787
|
+
return Ms;
|
|
5788
5788
|
case "reauthViaPopup":
|
|
5789
5789
|
case "reauthViaRedirect":
|
|
5790
|
-
return
|
|
5790
|
+
return Ls;
|
|
5791
5791
|
default:
|
|
5792
5792
|
T(
|
|
5793
5793
|
this.auth,
|
|
@@ -5822,10 +5822,10 @@ class Pn {
|
|
|
5822
5822
|
* See the License for the specific language governing permissions and
|
|
5823
5823
|
* limitations under the License.
|
|
5824
5824
|
*/
|
|
5825
|
-
const
|
|
5826
|
-
class
|
|
5825
|
+
const Us = new ne(2e3, 1e4);
|
|
5826
|
+
class F extends Cn {
|
|
5827
5827
|
constructor(e, t, r, i, s) {
|
|
5828
|
-
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null,
|
|
5828
|
+
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, F.currentPopupAction && F.currentPopupAction.cancel(), F.currentPopupAction = this;
|
|
5829
5829
|
}
|
|
5830
5830
|
async executeNotNull() {
|
|
5831
5831
|
const e = await this.execute();
|
|
@@ -5867,7 +5867,7 @@ class B extends Pn {
|
|
|
5867
5867
|
));
|
|
5868
5868
|
}
|
|
5869
5869
|
cleanUp() {
|
|
5870
|
-
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null,
|
|
5870
|
+
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, F.currentPopupAction = null;
|
|
5871
5871
|
}
|
|
5872
5872
|
pollUserCancellation() {
|
|
5873
5873
|
const e = () => {
|
|
@@ -5886,12 +5886,12 @@ class B extends Pn {
|
|
|
5886
5886
|
);
|
|
5887
5887
|
return;
|
|
5888
5888
|
}
|
|
5889
|
-
this.pollId = window.setTimeout(e,
|
|
5889
|
+
this.pollId = window.setTimeout(e, Us.get());
|
|
5890
5890
|
};
|
|
5891
5891
|
e();
|
|
5892
5892
|
}
|
|
5893
5893
|
}
|
|
5894
|
-
|
|
5894
|
+
F.currentPopupAction = null;
|
|
5895
5895
|
/**
|
|
5896
5896
|
* @license
|
|
5897
5897
|
* Copyright 2020 Google LLC
|
|
@@ -5908,8 +5908,8 @@ B.currentPopupAction = null;
|
|
|
5908
5908
|
* See the License for the specific language governing permissions and
|
|
5909
5909
|
* limitations under the License.
|
|
5910
5910
|
*/
|
|
5911
|
-
const
|
|
5912
|
-
class Bs extends
|
|
5911
|
+
const xs = "pendingRedirect", ce = /* @__PURE__ */ new Map();
|
|
5912
|
+
class Bs extends Cn {
|
|
5913
5913
|
constructor(e, t, r = !1) {
|
|
5914
5914
|
super(e, [
|
|
5915
5915
|
"signInViaRedirect",
|
|
@@ -5927,7 +5927,7 @@ class Bs extends Pn {
|
|
|
5927
5927
|
let e = ce.get(this.auth._key());
|
|
5928
5928
|
if (!e) {
|
|
5929
5929
|
try {
|
|
5930
|
-
const r = await
|
|
5930
|
+
const r = await Fs(this.resolver, this.auth) ? await super.execute() : null;
|
|
5931
5931
|
e = () => Promise.resolve(r);
|
|
5932
5932
|
} catch (t) {
|
|
5933
5933
|
e = () => Promise.reject(t);
|
|
@@ -5955,26 +5955,26 @@ class Bs extends Pn {
|
|
|
5955
5955
|
cleanUp() {
|
|
5956
5956
|
}
|
|
5957
5957
|
}
|
|
5958
|
-
async function
|
|
5959
|
-
const t =
|
|
5958
|
+
async function Fs(n, e) {
|
|
5959
|
+
const t = Vs(e), r = Hs(n);
|
|
5960
5960
|
if (!await r._isAvailable())
|
|
5961
5961
|
return !1;
|
|
5962
5962
|
const i = await r._get(t) === "true";
|
|
5963
5963
|
return await r._remove(t), i;
|
|
5964
5964
|
}
|
|
5965
|
-
function
|
|
5965
|
+
function $s(n, e) {
|
|
5966
5966
|
ce.set(n._key(), e);
|
|
5967
5967
|
}
|
|
5968
|
-
function
|
|
5968
|
+
function Hs(n) {
|
|
5969
5969
|
return w(n._redirectPersistence);
|
|
5970
5970
|
}
|
|
5971
|
-
function
|
|
5972
|
-
return oe(
|
|
5971
|
+
function Vs(n) {
|
|
5972
|
+
return oe(xs, n.config.apiKey, n.name);
|
|
5973
5973
|
}
|
|
5974
|
-
async function
|
|
5974
|
+
async function js(n, e, t = !1) {
|
|
5975
5975
|
if (v(n.app))
|
|
5976
5976
|
return Promise.reject(N(n));
|
|
5977
|
-
const r = ve(n), i =
|
|
5977
|
+
const r = ve(n), i = Ds(r, e), a = await new Bs(r, i, t).execute();
|
|
5978
5978
|
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
|
5979
5979
|
}
|
|
5980
5980
|
/**
|
|
@@ -5993,8 +5993,8 @@ async function Ws(n, e, t = !1) {
|
|
|
5993
5993
|
* See the License for the specific language governing permissions and
|
|
5994
5994
|
* limitations under the License.
|
|
5995
5995
|
*/
|
|
5996
|
-
const
|
|
5997
|
-
class
|
|
5996
|
+
const Ws = 10 * 60 * 1e3;
|
|
5997
|
+
class zs {
|
|
5998
5998
|
constructor(e) {
|
|
5999
5999
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
|
6000
6000
|
}
|
|
@@ -6010,11 +6010,11 @@ class Gs {
|
|
|
6010
6010
|
let t = !1;
|
|
6011
6011
|
return this.consumers.forEach((r) => {
|
|
6012
6012
|
this.isEventForConsumer(e, r) && (t = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
|
|
6013
|
-
}), this.hasHandledPotentialRedirect || !
|
|
6013
|
+
}), this.hasHandledPotentialRedirect || !Gs(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
|
6014
6014
|
}
|
|
6015
6015
|
sendToConsumer(e, t) {
|
|
6016
6016
|
var r;
|
|
6017
|
-
if (e.error && !
|
|
6017
|
+
if (e.error && !Pn(e)) {
|
|
6018
6018
|
const i = ((r = e.error.code) === null || r === void 0 ? void 0 : r.split("auth/")[1]) || "internal-error";
|
|
6019
6019
|
t.onError(_(this.auth, i));
|
|
6020
6020
|
} else
|
|
@@ -6025,7 +6025,7 @@ class Gs {
|
|
|
6025
6025
|
return t.filter.includes(e.type) && r;
|
|
6026
6026
|
}
|
|
6027
6027
|
hasEventBeenHandled(e) {
|
|
6028
|
-
return Date.now() - this.lastProcessedEventTime >=
|
|
6028
|
+
return Date.now() - this.lastProcessedEventTime >= Ws && this.cachedEventUids.clear(), this.cachedEventUids.has(kt(e));
|
|
6029
6029
|
}
|
|
6030
6030
|
saveEventToCache(e) {
|
|
6031
6031
|
this.cachedEventUids.add(kt(e)), this.lastProcessedEventTime = Date.now();
|
|
@@ -6034,17 +6034,17 @@ class Gs {
|
|
|
6034
6034
|
function kt(n) {
|
|
6035
6035
|
return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
|
|
6036
6036
|
}
|
|
6037
|
-
function
|
|
6037
|
+
function Pn({ type: n, error: e }) {
|
|
6038
6038
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
|
6039
6039
|
}
|
|
6040
|
-
function
|
|
6040
|
+
function Gs(n) {
|
|
6041
6041
|
switch (n.type) {
|
|
6042
6042
|
case "signInViaRedirect":
|
|
6043
6043
|
case "linkViaRedirect":
|
|
6044
6044
|
case "reauthViaRedirect":
|
|
6045
6045
|
return !0;
|
|
6046
6046
|
case "unknown":
|
|
6047
|
-
return
|
|
6047
|
+
return Pn(n);
|
|
6048
6048
|
default:
|
|
6049
6049
|
return !1;
|
|
6050
6050
|
}
|
|
@@ -6065,7 +6065,7 @@ function qs(n) {
|
|
|
6065
6065
|
* See the License for the specific language governing permissions and
|
|
6066
6066
|
* limitations under the License.
|
|
6067
6067
|
*/
|
|
6068
|
-
async function
|
|
6068
|
+
async function qs(n, e = {}) {
|
|
6069
6069
|
return G(n, "GET", "/v1/projects", e);
|
|
6070
6070
|
}
|
|
6071
6071
|
/**
|
|
@@ -6084,14 +6084,14 @@ async function Ks(n, e = {}) {
|
|
|
6084
6084
|
* See the License for the specific language governing permissions and
|
|
6085
6085
|
* limitations under the License.
|
|
6086
6086
|
*/
|
|
6087
|
-
const
|
|
6088
|
-
async function
|
|
6087
|
+
const Ks = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Js = /^https?/;
|
|
6088
|
+
async function Ys(n) {
|
|
6089
6089
|
if (n.config.emulator)
|
|
6090
6090
|
return;
|
|
6091
|
-
const { authorizedDomains: e } = await
|
|
6091
|
+
const { authorizedDomains: e } = await qs(n);
|
|
6092
6092
|
for (const t of e)
|
|
6093
6093
|
try {
|
|
6094
|
-
if (
|
|
6094
|
+
if (Xs(t))
|
|
6095
6095
|
return;
|
|
6096
6096
|
} catch {
|
|
6097
6097
|
}
|
|
@@ -6101,15 +6101,15 @@ async function Xs(n) {
|
|
|
6101
6101
|
/* AuthErrorCode.INVALID_ORIGIN */
|
|
6102
6102
|
);
|
|
6103
6103
|
}
|
|
6104
|
-
function
|
|
6104
|
+
function Xs(n) {
|
|
6105
6105
|
const e = $e(), { protocol: t, hostname: r } = new URL(e);
|
|
6106
6106
|
if (n.startsWith("chrome-extension://")) {
|
|
6107
6107
|
const a = new URL(n);
|
|
6108
6108
|
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
|
6109
6109
|
}
|
|
6110
|
-
if (!
|
|
6110
|
+
if (!Js.test(t))
|
|
6111
6111
|
return !1;
|
|
6112
|
-
if (
|
|
6112
|
+
if (Ks.test(n))
|
|
6113
6113
|
return r === n;
|
|
6114
6114
|
const i = n.replace(/\./g, "\\.");
|
|
6115
6115
|
return new RegExp("^(.+\\." + i + "|" + i + ")$", "i").test(r);
|
|
@@ -6130,7 +6130,7 @@ function Qs(n) {
|
|
|
6130
6130
|
* See the License for the specific language governing permissions and
|
|
6131
6131
|
* limitations under the License.
|
|
6132
6132
|
*/
|
|
6133
|
-
const
|
|
6133
|
+
const Qs = new ne(3e4, 6e4);
|
|
6134
6134
|
function At() {
|
|
6135
6135
|
const n = y().___jsl;
|
|
6136
6136
|
if (n != null && n.H) {
|
|
@@ -6140,7 +6140,7 @@ function At() {
|
|
|
6140
6140
|
n.CP[t] = null;
|
|
6141
6141
|
}
|
|
6142
6142
|
}
|
|
6143
|
-
function
|
|
6143
|
+
function Zs(n) {
|
|
6144
6144
|
return new Promise((e, t) => {
|
|
6145
6145
|
var r, i, s;
|
|
6146
6146
|
function a() {
|
|
@@ -6155,7 +6155,7 @@ function ea(n) {
|
|
|
6155
6155
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
6156
6156
|
));
|
|
6157
6157
|
},
|
|
6158
|
-
timeout:
|
|
6158
|
+
timeout: Qs.get()
|
|
6159
6159
|
});
|
|
6160
6160
|
}
|
|
6161
6161
|
if (!((i = (r = y().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
|
@@ -6163,22 +6163,22 @@ function ea(n) {
|
|
|
6163
6163
|
else if (!((s = y().gapi) === null || s === void 0) && s.load)
|
|
6164
6164
|
a();
|
|
6165
6165
|
else {
|
|
6166
|
-
const c =
|
|
6166
|
+
const c = rs("iframefcb");
|
|
6167
6167
|
return y()[c] = () => {
|
|
6168
6168
|
gapi.load ? a() : t(_(
|
|
6169
6169
|
n,
|
|
6170
6170
|
"network-request-failed"
|
|
6171
6171
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
6172
6172
|
));
|
|
6173
|
-
},
|
|
6173
|
+
}, ts(`${ns()}?onload=${c}`).catch((o) => t(o));
|
|
6174
6174
|
}
|
|
6175
6175
|
}).catch((e) => {
|
|
6176
6176
|
throw le = null, e;
|
|
6177
6177
|
});
|
|
6178
6178
|
}
|
|
6179
6179
|
let le = null;
|
|
6180
|
-
function
|
|
6181
|
-
return le = le ||
|
|
6180
|
+
function ea(n) {
|
|
6181
|
+
return le = le || Zs(n), le;
|
|
6182
6182
|
}
|
|
6183
6183
|
/**
|
|
6184
6184
|
* @license
|
|
@@ -6196,7 +6196,7 @@ function ta(n) {
|
|
|
6196
6196
|
* See the License for the specific language governing permissions and
|
|
6197
6197
|
* limitations under the License.
|
|
6198
6198
|
*/
|
|
6199
|
-
const
|
|
6199
|
+
const ta = new ne(5e3, 15e3), na = "__/auth/iframe", ra = "emulator/auth/iframe", ia = {
|
|
6200
6200
|
style: {
|
|
6201
6201
|
position: "absolute",
|
|
6202
6202
|
top: "-100px",
|
|
@@ -6205,13 +6205,13 @@ const na = new ne(5e3, 15e3), ra = "__/auth/iframe", ia = "emulator/auth/iframe"
|
|
|
6205
6205
|
},
|
|
6206
6206
|
"aria-hidden": "true",
|
|
6207
6207
|
tabindex: "-1"
|
|
6208
|
-
},
|
|
6208
|
+
}, sa = /* @__PURE__ */ new Map([
|
|
6209
6209
|
["identitytoolkit.googleapis.com", "p"],
|
|
6210
6210
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
|
6211
6211
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
|
6212
6212
|
// test
|
|
6213
6213
|
]);
|
|
6214
|
-
function
|
|
6214
|
+
function aa(n) {
|
|
6215
6215
|
const e = n.config;
|
|
6216
6216
|
h(
|
|
6217
6217
|
e.authDomain,
|
|
@@ -6219,17 +6219,17 @@ function oa(n) {
|
|
|
6219
6219
|
"auth-domain-config-required"
|
|
6220
6220
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
6221
6221
|
);
|
|
6222
|
-
const t = e.emulator ? Ke(e,
|
|
6222
|
+
const t = e.emulator ? Ke(e, ra) : `https://${n.config.authDomain}/${na}`, r = {
|
|
6223
6223
|
apiKey: e.apiKey,
|
|
6224
6224
|
appName: n.name,
|
|
6225
6225
|
v: te
|
|
6226
|
-
}, i =
|
|
6226
|
+
}, i = sa.get(n.config.apiHost);
|
|
6227
6227
|
i && (r.eid = i);
|
|
6228
6228
|
const s = n._getFrameworks();
|
|
6229
6229
|
return s.length && (r.fw = s.join(",")), `${t}?${ee(r).slice(1)}`;
|
|
6230
6230
|
}
|
|
6231
|
-
async function
|
|
6232
|
-
const e = await
|
|
6231
|
+
async function oa(n) {
|
|
6232
|
+
const e = await ea(n), t = y().gapi;
|
|
6233
6233
|
return h(
|
|
6234
6234
|
t,
|
|
6235
6235
|
n,
|
|
@@ -6237,9 +6237,9 @@ async function ca(n) {
|
|
|
6237
6237
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6238
6238
|
), e.open({
|
|
6239
6239
|
where: document.body,
|
|
6240
|
-
url:
|
|
6240
|
+
url: aa(n),
|
|
6241
6241
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
|
6242
|
-
attributes:
|
|
6242
|
+
attributes: ia,
|
|
6243
6243
|
dontclear: !0
|
|
6244
6244
|
}, (r) => new Promise(async (i, s) => {
|
|
6245
6245
|
await r.restyle({
|
|
@@ -6252,7 +6252,7 @@ async function ca(n) {
|
|
|
6252
6252
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
6253
6253
|
), c = y().setTimeout(() => {
|
|
6254
6254
|
s(a);
|
|
6255
|
-
},
|
|
6255
|
+
}, ta.get());
|
|
6256
6256
|
function o() {
|
|
6257
6257
|
y().clearTimeout(c), i(r);
|
|
6258
6258
|
}
|
|
@@ -6277,13 +6277,13 @@ async function ca(n) {
|
|
|
6277
6277
|
* See the License for the specific language governing permissions and
|
|
6278
6278
|
* limitations under the License.
|
|
6279
6279
|
*/
|
|
6280
|
-
const
|
|
6280
|
+
const ca = {
|
|
6281
6281
|
location: "yes",
|
|
6282
6282
|
resizable: "yes",
|
|
6283
6283
|
statusbar: "yes",
|
|
6284
6284
|
toolbar: "no"
|
|
6285
|
-
},
|
|
6286
|
-
class
|
|
6285
|
+
}, la = 500, ua = 600, da = "_blank", ha = "http://localhost";
|
|
6286
|
+
class Rt {
|
|
6287
6287
|
constructor(e) {
|
|
6288
6288
|
this.window = e, this.associatedEvent = null;
|
|
6289
6289
|
}
|
|
@@ -6295,19 +6295,19 @@ class Ct {
|
|
|
6295
6295
|
}
|
|
6296
6296
|
}
|
|
6297
6297
|
}
|
|
6298
|
-
function
|
|
6298
|
+
function fa(n, e, t, r = la, i = ua) {
|
|
6299
6299
|
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
|
6300
6300
|
let c = "";
|
|
6301
|
-
const o = Object.assign(Object.assign({},
|
|
6301
|
+
const o = Object.assign(Object.assign({}, ca), {
|
|
6302
6302
|
width: r.toString(),
|
|
6303
6303
|
height: i.toString(),
|
|
6304
6304
|
top: s,
|
|
6305
6305
|
left: a
|
|
6306
6306
|
}), l = g().toLowerCase();
|
|
6307
|
-
t && (c =
|
|
6308
|
-
const u = Object.entries(o).reduce((p, [m,
|
|
6309
|
-
if (
|
|
6310
|
-
return
|
|
6307
|
+
t && (c = un(l) ? da : t), cn(l) && (e = e || ha, o.scrollbars = "yes");
|
|
6308
|
+
const u = Object.entries(o).reduce((p, [m, B]) => `${p}${m}=${B},`, "");
|
|
6309
|
+
if (qi(l) && c !== "_self")
|
|
6310
|
+
return pa(e || "", c), new Rt(null);
|
|
6311
6311
|
const d = window.open(e || "", c, u);
|
|
6312
6312
|
h(
|
|
6313
6313
|
d,
|
|
@@ -6319,9 +6319,9 @@ function pa(n, e, t, r = ua, i = da) {
|
|
|
6319
6319
|
d.focus();
|
|
6320
6320
|
} catch {
|
|
6321
6321
|
}
|
|
6322
|
-
return new
|
|
6322
|
+
return new Rt(d);
|
|
6323
6323
|
}
|
|
6324
|
-
function
|
|
6324
|
+
function pa(n, e) {
|
|
6325
6325
|
const t = document.createElement("a");
|
|
6326
6326
|
t.href = n, t.target = e;
|
|
6327
6327
|
const r = document.createEvent("MouseEvent");
|
|
@@ -6343,8 +6343,8 @@ function ma(n, e) {
|
|
|
6343
6343
|
* See the License for the specific language governing permissions and
|
|
6344
6344
|
* limitations under the License.
|
|
6345
6345
|
*/
|
|
6346
|
-
const
|
|
6347
|
-
async function
|
|
6346
|
+
const ma = "__/auth/handler", ga = "emulator/auth/handler", _a = encodeURIComponent("fac");
|
|
6347
|
+
async function Ct(n, e, t, r, i, s) {
|
|
6348
6348
|
h(
|
|
6349
6349
|
n.config.authDomain,
|
|
6350
6350
|
n,
|
|
@@ -6364,8 +6364,8 @@ async function Rt(n, e, t, r, i, s) {
|
|
|
6364
6364
|
v: te,
|
|
6365
6365
|
eventId: i
|
|
6366
6366
|
};
|
|
6367
|
-
if (e instanceof
|
|
6368
|
-
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "",
|
|
6367
|
+
if (e instanceof vn) {
|
|
6368
|
+
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", _r(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
6369
6369
|
for (const [u, d] of Object.entries({}))
|
|
6370
6370
|
a[u] = d;
|
|
6371
6371
|
}
|
|
@@ -6377,11 +6377,11 @@ async function Rt(n, e, t, r, i, s) {
|
|
|
6377
6377
|
const c = a;
|
|
6378
6378
|
for (const u of Object.keys(c))
|
|
6379
6379
|
c[u] === void 0 && delete c[u];
|
|
6380
|
-
const o = await n._getAppCheckToken(), l = o ? `#${
|
|
6381
|
-
return `${
|
|
6380
|
+
const o = await n._getAppCheckToken(), l = o ? `#${_a}=${encodeURIComponent(o)}` : "";
|
|
6381
|
+
return `${ya(n)}?${ee(c).slice(1)}${l}`;
|
|
6382
6382
|
}
|
|
6383
|
-
function
|
|
6384
|
-
return n.emulator ? Ke(n,
|
|
6383
|
+
function ya({ config: n }) {
|
|
6384
|
+
return n.emulator ? Ke(n, ga) : `https://${n.authDomain}/${ma}`;
|
|
6385
6385
|
}
|
|
6386
6386
|
/**
|
|
6387
6387
|
* @license
|
|
@@ -6400,22 +6400,22 @@ function va({ config: n }) {
|
|
|
6400
6400
|
* limitations under the License.
|
|
6401
6401
|
*/
|
|
6402
6402
|
const De = "webStorageSupport";
|
|
6403
|
-
class
|
|
6403
|
+
class va {
|
|
6404
6404
|
constructor() {
|
|
6405
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence =
|
|
6405
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Tn, this._completeRedirectFn = js, this._overrideRedirectResult = $s;
|
|
6406
6406
|
}
|
|
6407
6407
|
// Wrapping in async even though we don't await anywhere in order
|
|
6408
6408
|
// to make sure errors are raised as promise rejections
|
|
6409
6409
|
async _openPopup(e, t, r, i) {
|
|
6410
6410
|
var s;
|
|
6411
6411
|
S((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
6412
|
-
const a = await
|
|
6413
|
-
return
|
|
6412
|
+
const a = await Ct(e, t, r, $e(), i);
|
|
6413
|
+
return fa(e, a, Qe());
|
|
6414
6414
|
}
|
|
6415
6415
|
async _openRedirect(e, t, r, i) {
|
|
6416
6416
|
await this._originValidation(e);
|
|
6417
|
-
const s = await
|
|
6418
|
-
return
|
|
6417
|
+
const s = await Ct(e, t, r, $e(), i);
|
|
6418
|
+
return ws(s), new Promise(() => {
|
|
6419
6419
|
});
|
|
6420
6420
|
}
|
|
6421
6421
|
_initialize(e) {
|
|
@@ -6430,7 +6430,7 @@ class ba {
|
|
|
6430
6430
|
}), r;
|
|
6431
6431
|
}
|
|
6432
6432
|
async initAndGetManager(e) {
|
|
6433
|
-
const t = await
|
|
6433
|
+
const t = await oa(e), r = new zs(e);
|
|
6434
6434
|
return t.register("authEvent", (i) => (h(
|
|
6435
6435
|
i == null ? void 0 : i.authEvent,
|
|
6436
6436
|
e,
|
|
@@ -6454,13 +6454,13 @@ class ba {
|
|
|
6454
6454
|
}
|
|
6455
6455
|
_originValidation(e) {
|
|
6456
6456
|
const t = e._key();
|
|
6457
|
-
return this.originValidationPromises[t] || (this.originValidationPromises[t] =
|
|
6457
|
+
return this.originValidationPromises[t] || (this.originValidationPromises[t] = Ys(e)), this.originValidationPromises[t];
|
|
6458
6458
|
}
|
|
6459
6459
|
get _shouldInitProactively() {
|
|
6460
|
-
return
|
|
6460
|
+
return mn() || ln() || Ye();
|
|
6461
6461
|
}
|
|
6462
6462
|
}
|
|
6463
|
-
const
|
|
6463
|
+
const ba = va;
|
|
6464
6464
|
var Pt = "@firebase/auth", Ot = "1.7.9";
|
|
6465
6465
|
/**
|
|
6466
6466
|
* @license
|
|
@@ -6478,7 +6478,7 @@ var Pt = "@firebase/auth", Ot = "1.7.9";
|
|
|
6478
6478
|
* See the License for the specific language governing permissions and
|
|
6479
6479
|
* limitations under the License.
|
|
6480
6480
|
*/
|
|
6481
|
-
class
|
|
6481
|
+
class Ia {
|
|
6482
6482
|
constructor(e) {
|
|
6483
6483
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
|
6484
6484
|
}
|
|
@@ -6529,7 +6529,7 @@ class wa {
|
|
|
6529
6529
|
* See the License for the specific language governing permissions and
|
|
6530
6530
|
* limitations under the License.
|
|
6531
6531
|
*/
|
|
6532
|
-
function
|
|
6532
|
+
function wa(n) {
|
|
6533
6533
|
switch (n) {
|
|
6534
6534
|
case "Node":
|
|
6535
6535
|
return "node";
|
|
@@ -6545,7 +6545,7 @@ function Ea(n) {
|
|
|
6545
6545
|
return;
|
|
6546
6546
|
}
|
|
6547
6547
|
}
|
|
6548
|
-
function
|
|
6548
|
+
function Ea(n) {
|
|
6549
6549
|
Y(new W(
|
|
6550
6550
|
"auth",
|
|
6551
6551
|
(e, { options: t }) => {
|
|
@@ -6558,9 +6558,9 @@ function Ta(n) {
|
|
|
6558
6558
|
apiHost: "identitytoolkit.googleapis.com",
|
|
6559
6559
|
tokenApiHost: "securetoken.googleapis.com",
|
|
6560
6560
|
apiScheme: "https",
|
|
6561
|
-
sdkClientVersion:
|
|
6562
|
-
}, l = new
|
|
6563
|
-
return
|
|
6561
|
+
sdkClientVersion: gn(n)
|
|
6562
|
+
}, l = new Zi(r, i, s, o);
|
|
6563
|
+
return ss(l, t), l;
|
|
6564
6564
|
},
|
|
6565
6565
|
"PUBLIC"
|
|
6566
6566
|
/* ComponentType.PUBLIC */
|
|
@@ -6579,14 +6579,14 @@ function Ta(n) {
|
|
|
6579
6579
|
"auth"
|
|
6580
6580
|
/* _ComponentName.AUTH */
|
|
6581
6581
|
).getImmediate());
|
|
6582
|
-
return ((r) => new
|
|
6582
|
+
return ((r) => new Ia(r))(t);
|
|
6583
6583
|
},
|
|
6584
6584
|
"PRIVATE"
|
|
6585
6585
|
/* ComponentType.PRIVATE */
|
|
6586
6586
|
).setInstantiationMode(
|
|
6587
6587
|
"EXPLICIT"
|
|
6588
6588
|
/* InstantiationMode.EXPLICIT */
|
|
6589
|
-
)), $(Pt, Ot,
|
|
6589
|
+
)), $(Pt, Ot, wa(n)), $(Pt, Ot, "esm2017");
|
|
6590
6590
|
}
|
|
6591
6591
|
/**
|
|
6592
6592
|
* @license
|
|
@@ -6604,11 +6604,11 @@ function Ta(n) {
|
|
|
6604
6604
|
* See the License for the specific language governing permissions and
|
|
6605
6605
|
* limitations under the License.
|
|
6606
6606
|
*/
|
|
6607
|
-
const
|
|
6607
|
+
const Ta = 5 * 60, Sa = jt("authIdTokenMaxAge") || Ta;
|
|
6608
6608
|
let Dt = null;
|
|
6609
|
-
const
|
|
6609
|
+
const ka = (n) => async (e) => {
|
|
6610
6610
|
const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
|
6611
|
-
if (r && r >
|
|
6611
|
+
if (r && r > Sa)
|
|
6612
6612
|
return;
|
|
6613
6613
|
const i = t == null ? void 0 : t.token;
|
|
6614
6614
|
Dt !== i && (Dt = i, await fetch(n, {
|
|
@@ -6618,33 +6618,33 @@ const Aa = (n) => async (e) => {
|
|
|
6618
6618
|
} : {}
|
|
6619
6619
|
}));
|
|
6620
6620
|
};
|
|
6621
|
-
function
|
|
6622
|
-
const e =
|
|
6621
|
+
function Aa(n = vi()) {
|
|
6622
|
+
const e = qt(n, "auth");
|
|
6623
6623
|
if (e.isInitialized())
|
|
6624
6624
|
return e.getImmediate();
|
|
6625
|
-
const t =
|
|
6626
|
-
popupRedirectResolver:
|
|
6625
|
+
const t = is(n, {
|
|
6626
|
+
popupRedirectResolver: ba,
|
|
6627
6627
|
persistence: [
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6628
|
+
Os,
|
|
6629
|
+
vs,
|
|
6630
|
+
Tn
|
|
6631
6631
|
]
|
|
6632
|
-
}), r =
|
|
6632
|
+
}), r = jt("authTokenSyncURL");
|
|
6633
6633
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
|
6634
6634
|
const s = new URL(r, location.origin);
|
|
6635
6635
|
if (location.origin === s.origin) {
|
|
6636
|
-
const a =
|
|
6637
|
-
|
|
6636
|
+
const a = ka(s.toString());
|
|
6637
|
+
gs(t, a, () => a(t.currentUser)), ms(t, (c) => a(c));
|
|
6638
6638
|
}
|
|
6639
6639
|
}
|
|
6640
|
-
const i =
|
|
6641
|
-
return i &&
|
|
6640
|
+
const i = sr("auth");
|
|
6641
|
+
return i && as(t, `http://${i}`), t;
|
|
6642
6642
|
}
|
|
6643
6643
|
function Ra() {
|
|
6644
6644
|
var n, e;
|
|
6645
6645
|
return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
|
|
6646
6646
|
}
|
|
6647
|
-
|
|
6647
|
+
es({
|
|
6648
6648
|
loadJS(n) {
|
|
6649
6649
|
return new Promise((e, t) => {
|
|
6650
6650
|
const r = document.createElement("script");
|
|
@@ -6661,12 +6661,12 @@ ts({
|
|
|
6661
6661
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
|
6662
6662
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
|
6663
6663
|
});
|
|
6664
|
-
|
|
6664
|
+
Ea(
|
|
6665
6665
|
"Browser"
|
|
6666
6666
|
/* ClientPlatform.BROWSER */
|
|
6667
6667
|
);
|
|
6668
|
-
const
|
|
6669
|
-
history:
|
|
6668
|
+
const Ca = Mn({
|
|
6669
|
+
history: Un(),
|
|
6670
6670
|
routes: [
|
|
6671
6671
|
...ue,
|
|
6672
6672
|
...K,
|
|
@@ -6678,7 +6678,7 @@ const Pa = Un({
|
|
|
6678
6678
|
]
|
|
6679
6679
|
});
|
|
6680
6680
|
let Ne, Le;
|
|
6681
|
-
|
|
6681
|
+
Ca.beforeEach(async (n) => {
|
|
6682
6682
|
const {
|
|
6683
6683
|
sessionUser: e,
|
|
6684
6684
|
currentRestaurant: t,
|
|
@@ -6715,10 +6715,10 @@ Pa.beforeEach(async (n) => {
|
|
|
6715
6715
|
})
|
|
6716
6716
|
]).then((a) => !0)), Le) : !0;
|
|
6717
6717
|
});
|
|
6718
|
-
const
|
|
6718
|
+
const Pa = /* @__PURE__ */ Lt({
|
|
6719
6719
|
__name: "AppSidebar",
|
|
6720
6720
|
setup(n) {
|
|
6721
|
-
const e = je(), t =
|
|
6721
|
+
const e = je(), t = xn(), { t: r } = Wn(), i = Fn(t.currentRoute.value.name);
|
|
6722
6722
|
q(t.currentRoute, () => {
|
|
6723
6723
|
let l = t.currentRoute.value.name;
|
|
6724
6724
|
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
|
@@ -6735,7 +6735,7 @@ const Oa = /* @__PURE__ */ Mt({
|
|
|
6735
6735
|
return t.push({ name: l.name });
|
|
6736
6736
|
}
|
|
6737
6737
|
};
|
|
6738
|
-
return l.meta.sidebarNew && (d.badge = () =>
|
|
6738
|
+
return l.meta.sidebarNew && (d.badge = () => $n(Gn.FmPill, { label: "New" })), d;
|
|
6739
6739
|
}).filter((l) => !!l);
|
|
6740
6740
|
function a(l, u) {
|
|
6741
6741
|
return l.map((d) => {
|
|
@@ -6763,7 +6763,7 @@ const Oa = /* @__PURE__ */ Mt({
|
|
|
6763
6763
|
return t.push({ name: l.name });
|
|
6764
6764
|
}
|
|
6765
6765
|
};
|
|
6766
|
-
}).filter((l) => !!l), o =
|
|
6766
|
+
}).filter((l) => !!l), o = Nt(() => {
|
|
6767
6767
|
var u, d;
|
|
6768
6768
|
const l = [...s];
|
|
6769
6769
|
return l.push({
|
|
@@ -6805,8 +6805,8 @@ const Oa = /* @__PURE__ */ Mt({
|
|
|
6805
6805
|
}), l.push(...c)), l;
|
|
6806
6806
|
});
|
|
6807
6807
|
return (l, u) => {
|
|
6808
|
-
const d =
|
|
6809
|
-
return
|
|
6808
|
+
const d = Mt("FmCollapsibleTabs");
|
|
6809
|
+
return Ut(), xt(d, {
|
|
6810
6810
|
modelValue: i.value,
|
|
6811
6811
|
"onUpdate:modelValue": u[0] || (u[0] = (p) => i.value = p),
|
|
6812
6812
|
items: o.value,
|
|
@@ -6815,30 +6815,30 @@ const Oa = /* @__PURE__ */ Mt({
|
|
|
6815
6815
|
};
|
|
6816
6816
|
}
|
|
6817
6817
|
});
|
|
6818
|
-
var
|
|
6819
|
-
const Ba = /* @__PURE__ */
|
|
6818
|
+
var Oa = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" } };
|
|
6819
|
+
const Ba = /* @__PURE__ */ Lt({
|
|
6820
6820
|
__name: "App",
|
|
6821
6821
|
setup(n) {
|
|
6822
|
-
const { state: e } =
|
|
6822
|
+
const { state: e } = Xn(), t = je(), r = Bn(), i = Kt(Oa.firebase);
|
|
6823
6823
|
async function s() {
|
|
6824
6824
|
const a = t.sessionUser.value;
|
|
6825
6825
|
if (!a || !a.token) return;
|
|
6826
|
-
const c = await a.getCustomToken(), o =
|
|
6827
|
-
await
|
|
6826
|
+
const c = await a.getCustomToken(), o = Aa(i);
|
|
6827
|
+
await ps(o, c);
|
|
6828
6828
|
}
|
|
6829
|
-
return s(), q(t.sessionUser, s),
|
|
6829
|
+
return s(), q(t.sessionUser, s), Hn(() => {
|
|
6830
6830
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
|
6831
|
-
}),
|
|
6832
|
-
t.registerSidebarComponent(
|
|
6831
|
+
}), Vn(() => {
|
|
6832
|
+
t.registerSidebarComponent(Pa);
|
|
6833
6833
|
}), (a, c) => {
|
|
6834
|
-
const o =
|
|
6835
|
-
return
|
|
6836
|
-
key:
|
|
6834
|
+
const o = Mt("RouterView");
|
|
6835
|
+
return Ut(), xt(o, {
|
|
6836
|
+
key: jn(r).path
|
|
6837
6837
|
});
|
|
6838
6838
|
};
|
|
6839
6839
|
}
|
|
6840
|
-
}),
|
|
6841
|
-
const n = [{ "en-US":
|
|
6840
|
+
}), Fa = () => {
|
|
6841
|
+
const n = [{ "en-US": Kn, "zh-CN": Yn }, Ln], e = new Set(
|
|
6842
6842
|
n.flatMap((t) => Object.keys(t))
|
|
6843
6843
|
);
|
|
6844
6844
|
return Array.from(e).reduce(
|
|
@@ -6851,10 +6851,10 @@ const Ba = /* @__PURE__ */ Mt({
|
|
|
6851
6851
|
},
|
|
6852
6852
|
{}
|
|
6853
6853
|
);
|
|
6854
|
-
},
|
|
6854
|
+
}, $a = [...K, ...ue];
|
|
6855
6855
|
export {
|
|
6856
6856
|
mt as _,
|
|
6857
6857
|
Ba as a,
|
|
6858
|
-
|
|
6859
|
-
|
|
6858
|
+
Fa as i,
|
|
6859
|
+
$a as r
|
|
6860
6860
|
};
|