@feedmepos/mf-payment 1.1.0-beta.1 → 1.1.0-beta.3
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/{PayoutAccount-BHJpjUqD.js → PayoutAccount-Dm__V5FS.js} +5 -5
- package/dist/{PayoutAccount-DCkf_1yL.js → PayoutAccount-aXUZqVC4.js} +360 -360
- package/dist/{PayoutAccountSetting-Bk-g7ucZ.js → PayoutAccountSetting-EbYjEXDF.js} +3 -3
- package/dist/{Restaurant-D2qq84VL.js → Restaurant-DLM9C8nc.js} +4 -4
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-hJAJYKmE.js +33 -0
- package/dist/{RestaurantSetting-DAtrtX6S.js → RestaurantSetting-GoDOJmXC.js} +3 -3
- package/dist/{Settlement-Cx1tc5wt.js → Settlement-BCGCz02p.js} +3 -3
- package/dist/Settlement-CsLlypA1.js +445 -0
- package/dist/{SettlementTransactions-C82DyYlO.js → SettlementTransactions-BXDX1-4U.js} +3 -3
- package/dist/SettlementTransactions-DtbZ2BMA.js +291 -0
- package/dist/{Terminal-Az2k8E6F.js → Terminal-BhZitu-W.js} +5 -5
- package/dist/{TerminalSetting-C-xlLYXa.js → TerminalSetting-lTAsTN8h.js} +3 -3
- package/dist/{Transaction-Y_mc0yQv.js → Transaction-AwhwSbRY.js} +5 -5
- package/dist/Transaction-CCTdVAZg.js +250 -0
- package/dist/TransactionOld-DLjym0JG.js +99 -0
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-dwwesT4_.js → TransactionTable.vue_vue_type_script_setup_true_lang-xSb40MKu.js} +83 -78
- package/dist/{app-OBp4HaEY.js → app-348rfspt.js} +936 -649
- package/dist/app.d.ts +292 -0
- package/dist/app.js +4 -3
- package/dist/{assets-pLBp82yE.js → assets-CizBCu1u.js} +57 -43
- package/dist/{grafana-hv7inD36.js → grafana-NU2yqPXT.js} +1 -1
- package/dist/{index-DD5mEX0D.js → index-BDCzfWFu.js} +1 -1
- package/dist/{index-oM4Z9ffu.js → index-D9Cv_ZfD.js} +1 -1
- package/dist/{index-DGKxdJVj.js → index-DEvTHjDK.js} +2812 -2814
- package/dist/{index-CFYD8Dv4.js → index-Dvg8rPAD.js} +1 -1
- package/dist/{index-Cqq3p9PP.js → index-GlBLcdqs.js} +1 -1
- package/dist/{index-1xF00w89.js → index-OD8n4-_f.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-C9tnqgzY.js → index.vue_vue_type_script_setup_true_lang-D-xbKBxe.js} +1 -1
- package/dist/model/transaction.d.ts +2 -0
- package/dist/package.json +8 -7
- package/dist/{payout-account-DPaS3dIs.js → payout-account-5sqoL9UC.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +8 -7
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-p4qddIbp.js +0 -33
- package/dist/Settlement-BVIsszEJ.js +0 -447
- package/dist/SettlementTransactions-CeN4SRWa.js +0 -291
- package/dist/Transaction-CC8hc8_r.js +0 -250
- package/dist/TransactionOld-BxhI-wwm.js +0 -99
@@ -1,9 +1,295 @@
|
|
1
1
|
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn, useRoute as Fn } from "vue-router";
|
2
|
-
import { computed as Lt, watch as
|
3
|
-
import { useCoreStore as
|
4
|
-
import { defineStore as
|
5
|
-
import { components as
|
6
|
-
const
|
2
|
+
import { computed as Lt, watch as Z, defineComponent as Ut, ref as xn, resolveComponent as Bt, openBlock as Ft, createBlock as xt, h as Hn, onMounted as jn, onBeforeMount as Gn, unref as Vn } from "vue";
|
3
|
+
import { useCoreStore as Ve, useI18n as Wn } from "@feedmepos/mf-common";
|
4
|
+
import { defineStore as zn } from "pinia";
|
5
|
+
import { components as $n } from "@feedmepos/ui-library";
|
6
|
+
const Zn = {
|
7
|
+
select: "Select filter entity",
|
8
|
+
restaurant: "Restaurant",
|
9
|
+
device: "Device",
|
10
|
+
payout_account: "Payout Account"
|
11
|
+
}, Jn = {
|
12
|
+
payout_account: "Payout Account",
|
13
|
+
transaction: "Transactions",
|
14
|
+
"transaction-new": "Transactions",
|
15
|
+
settlement: "Settlements"
|
16
|
+
}, Yn = {
|
17
|
+
title: "Settlements",
|
18
|
+
description: "Settlements are the finalization of financial transactions, transferring funds to complete payments.",
|
19
|
+
export: "Export",
|
20
|
+
table: {
|
21
|
+
id: "Settlement ID",
|
22
|
+
bank: "Bank",
|
23
|
+
account: "Account No",
|
24
|
+
created_at: "Created At",
|
25
|
+
sales_amount: "Sales Amount",
|
26
|
+
fee: "Fee",
|
27
|
+
settlement_amount: "Settlement Amount"
|
28
|
+
},
|
29
|
+
dialog: {
|
30
|
+
title: "Settlements Transactions",
|
31
|
+
search: "Search Transactions ...",
|
32
|
+
info: {
|
33
|
+
transaction: {
|
34
|
+
title: "Transaction Info",
|
35
|
+
for: "For",
|
36
|
+
reference: "Reference",
|
37
|
+
count: "Transaction"
|
38
|
+
},
|
39
|
+
bank: {
|
40
|
+
title: "Bank Info",
|
41
|
+
for: "Bank",
|
42
|
+
name: "Name",
|
43
|
+
number: "Number"
|
44
|
+
},
|
45
|
+
payout: {
|
46
|
+
title: "Payout Info",
|
47
|
+
amount: "Amount",
|
48
|
+
fee: "Fee",
|
49
|
+
payout: "Payout"
|
50
|
+
}
|
51
|
+
},
|
52
|
+
fiuu: {
|
53
|
+
id: "Transaction ID",
|
54
|
+
type: "Type",
|
55
|
+
transaction_at: "Transaction At",
|
56
|
+
sales_amount: "Sales Amount",
|
57
|
+
fee: "Fee",
|
58
|
+
settlement_amount: "Settlement Amount"
|
59
|
+
},
|
60
|
+
feedme: {
|
61
|
+
id: "Transaction ID",
|
62
|
+
pay_id: "Pay ID",
|
63
|
+
gateway: "Gateway",
|
64
|
+
method: "Method",
|
65
|
+
status: "Status",
|
66
|
+
type: "Type",
|
67
|
+
transaction_at: "Transaction At",
|
68
|
+
sales_amount: "Sales Amount",
|
69
|
+
fee: "Fee",
|
70
|
+
settlement_amount: "Settlement Amount"
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}, Xn = {
|
74
|
+
title: "Transactions",
|
75
|
+
description: "Transactions are purchases or payments made over the internet using electronic methods like cards or digital wallets.",
|
76
|
+
restaurant: "Restaurant",
|
77
|
+
status: "Status",
|
78
|
+
search: {
|
79
|
+
title: "Search",
|
80
|
+
placeholder: "Search Transactions ..."
|
81
|
+
},
|
82
|
+
button: {
|
83
|
+
export: "Export"
|
84
|
+
},
|
85
|
+
table: {
|
86
|
+
id: "Transaction ID",
|
87
|
+
pay_id: "Pay ID",
|
88
|
+
bill_seq: "Bill Seq No",
|
89
|
+
gateway: "Gateway",
|
90
|
+
method: "Method",
|
91
|
+
type: "Type",
|
92
|
+
status: "Status",
|
93
|
+
source: "Source",
|
94
|
+
transaction_at: "Transaction At",
|
95
|
+
sales_amount: "Sales Amount",
|
96
|
+
actions: "Actions"
|
97
|
+
}
|
98
|
+
}, Kn = {
|
99
|
+
title: "Payout Account",
|
100
|
+
description: "A Payout Account is an account used to receive payments or disbursements, such as earnings or refunds, typically linked to a bank.",
|
101
|
+
button: {
|
102
|
+
apply: "Apply"
|
103
|
+
},
|
104
|
+
table: {
|
105
|
+
type: "Type",
|
106
|
+
name: "Name",
|
107
|
+
status: "Status",
|
108
|
+
active: "Active?",
|
109
|
+
bank: "Bank Details",
|
110
|
+
pic: "Person In-Charge (PIC)"
|
111
|
+
},
|
112
|
+
dialog: {
|
113
|
+
view_title: " View Payout Account",
|
114
|
+
title: "Apply Payout Account",
|
115
|
+
button: {
|
116
|
+
remove: "Remove",
|
117
|
+
submit: "Submit"
|
118
|
+
},
|
119
|
+
fields: {
|
120
|
+
type: "Type",
|
121
|
+
for: "For",
|
122
|
+
for_placeholder: "Select store",
|
123
|
+
name: "Name",
|
124
|
+
phone: "Phone No",
|
125
|
+
email: "Email",
|
126
|
+
bank: "Bank",
|
127
|
+
bank_type: "Type",
|
128
|
+
bank_account: "Account Number",
|
129
|
+
bank_holder: "Holder Name"
|
130
|
+
},
|
131
|
+
document: {
|
132
|
+
ssm: "SSM Certificate ( Form D )",
|
133
|
+
bank: "Bank Statement w/ Holder Name",
|
134
|
+
exterior: "Exterior Photo"
|
135
|
+
},
|
136
|
+
section: {
|
137
|
+
account: "Account",
|
138
|
+
bank: "Bank Info",
|
139
|
+
pic: "Key Person",
|
140
|
+
document: "Legal Documents"
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}, qn = {
|
144
|
+
components: Zn,
|
145
|
+
routes: Jn,
|
146
|
+
settlements: Yn,
|
147
|
+
transactions: Xn,
|
148
|
+
payout_account: Kn
|
149
|
+
}, Qn = {
|
150
|
+
select: "选择筛选对象",
|
151
|
+
restaurant: "餐厅",
|
152
|
+
device: "设备",
|
153
|
+
payout_account: "结算账户"
|
154
|
+
}, er = {
|
155
|
+
payout_account: "结算账户",
|
156
|
+
transaction: "交易订单",
|
157
|
+
"transaction-new": "交易订单",
|
158
|
+
settlement: "交易结算"
|
159
|
+
}, tr = {
|
160
|
+
title: "交易结算",
|
161
|
+
description: "交易结算是金融交易的最终处理,交易流水的详细,完成付款的资金转移。",
|
162
|
+
export: "导出",
|
163
|
+
table: {
|
164
|
+
id: "结算ID",
|
165
|
+
bank: "银行",
|
166
|
+
account: "账户号码",
|
167
|
+
created_at: "结算时间",
|
168
|
+
sales_amount: "营业金额",
|
169
|
+
fee: "服务费用",
|
170
|
+
settlement_amount: "结算金额"
|
171
|
+
},
|
172
|
+
dialog: {
|
173
|
+
title: "结算订单详细",
|
174
|
+
search: "查询订单 ...",
|
175
|
+
info: {
|
176
|
+
transaction: {
|
177
|
+
title: "交易详细",
|
178
|
+
for: "于",
|
179
|
+
reference: "相关",
|
180
|
+
count: "数量"
|
181
|
+
},
|
182
|
+
bank: {
|
183
|
+
title: "银行详细",
|
184
|
+
for: "银行",
|
185
|
+
name: "名称",
|
186
|
+
number: "号码"
|
187
|
+
},
|
188
|
+
payout: {
|
189
|
+
title: "结算详细",
|
190
|
+
amount: "营业金额",
|
191
|
+
fee: "服务费",
|
192
|
+
payout: "结算金额"
|
193
|
+
}
|
194
|
+
},
|
195
|
+
fiuu: {
|
196
|
+
id: "交易ID",
|
197
|
+
type: "类型",
|
198
|
+
transaction_at: "交易时间",
|
199
|
+
sales_amount: "营业金额",
|
200
|
+
fee: "服务费",
|
201
|
+
settlement_amount: "结算金额"
|
202
|
+
},
|
203
|
+
feedme: {
|
204
|
+
id: "交易ID",
|
205
|
+
pay_id: "订单ID",
|
206
|
+
gateway: "支付网关",
|
207
|
+
method: "支付方法",
|
208
|
+
status: "状态",
|
209
|
+
type: "类型",
|
210
|
+
transaction_at: "交易时间",
|
211
|
+
sales_amount: "营业金额",
|
212
|
+
fee: "服务费",
|
213
|
+
settlement_amount: "结算金额"
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}, nr = {
|
217
|
+
title: "交易订单",
|
218
|
+
description: "交易订单是使用卡或数字钱包等电子方式通过互联网进行的购买或付款。",
|
219
|
+
restaurant: "餐厅",
|
220
|
+
status: "状态",
|
221
|
+
search: {
|
222
|
+
title: "查询",
|
223
|
+
placeholder: "查询订单 ..."
|
224
|
+
},
|
225
|
+
button: {
|
226
|
+
export: "导出"
|
227
|
+
},
|
228
|
+
table: {
|
229
|
+
id: "交易ID",
|
230
|
+
pay_id: "支付ID",
|
231
|
+
bill_seq: "订单序列号",
|
232
|
+
gateway: "支付网关",
|
233
|
+
method: "支付方法",
|
234
|
+
type: "支付类型",
|
235
|
+
status: "状态",
|
236
|
+
source: "源",
|
237
|
+
transaction_at: "交易时间",
|
238
|
+
sales_amount: "交易金额",
|
239
|
+
actions: "操作"
|
240
|
+
}
|
241
|
+
}, rr = {
|
242
|
+
title: "结算账户",
|
243
|
+
description: "结算账户是用于接收付款或支出的账户,例如收入或退款,通常与银行关联。",
|
244
|
+
button: {
|
245
|
+
apply: "申请"
|
246
|
+
},
|
247
|
+
table: {
|
248
|
+
type: "类型",
|
249
|
+
name: "名称",
|
250
|
+
status: "状态",
|
251
|
+
active: "活跃?",
|
252
|
+
bank: "银行详情",
|
253
|
+
pic: "负责人 (PIC)"
|
254
|
+
},
|
255
|
+
dialog: {
|
256
|
+
view_title: " 查看结算账户",
|
257
|
+
title: "申请结算账户",
|
258
|
+
button: {
|
259
|
+
remove: "删除",
|
260
|
+
submit: "提交"
|
261
|
+
},
|
262
|
+
fields: {
|
263
|
+
type: "类型",
|
264
|
+
for: "于",
|
265
|
+
for_placeholder: "选择商户/餐厅",
|
266
|
+
name: "名称",
|
267
|
+
phone: "电话号码",
|
268
|
+
email: "电子邮箱",
|
269
|
+
bank: "银行",
|
270
|
+
bank_type: "账户类型",
|
271
|
+
bank_account: "账户号码",
|
272
|
+
bank_holder: "持有人名称"
|
273
|
+
},
|
274
|
+
document: {
|
275
|
+
ssm: "SSM营业证书(Form D)",
|
276
|
+
bank: "银行对账单(含持有人姓名)",
|
277
|
+
exterior: "营业户外照片"
|
278
|
+
},
|
279
|
+
section: {
|
280
|
+
account: "账户讯息",
|
281
|
+
bank: "银行讯息",
|
282
|
+
pic: "负责人讯息",
|
283
|
+
document: "法律文件"
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}, ir = {
|
287
|
+
components: Qn,
|
288
|
+
routes: er,
|
289
|
+
settlements: tr,
|
290
|
+
transactions: nr,
|
291
|
+
payout_account: rr
|
292
|
+
}, le = [
|
7
293
|
{
|
8
294
|
path: "/admin/restaurants",
|
9
295
|
name: "mf-payment-admin.restaurant",
|
@@ -11,7 +297,7 @@ const le = [
|
|
11
297
|
sidebarDisplay: "Restaurants",
|
12
298
|
section: "payment-gateway"
|
13
299
|
},
|
14
|
-
component: () => import("./Restaurant-
|
300
|
+
component: () => import("./Restaurant-DLM9C8nc.js")
|
15
301
|
},
|
16
302
|
{
|
17
303
|
path: "/admin/restaurants/:restaurantId",
|
@@ -20,7 +306,7 @@ const le = [
|
|
20
306
|
meta: {
|
21
307
|
parent: "mf-payment-admin.restaurant"
|
22
308
|
},
|
23
|
-
component: () => import("./RestaurantSetting-
|
309
|
+
component: () => import("./RestaurantSetting-GoDOJmXC.js")
|
24
310
|
},
|
25
311
|
{
|
26
312
|
path: "/admin/payout-accounts",
|
@@ -29,7 +315,7 @@ const le = [
|
|
29
315
|
sidebarDisplay: "Payout Accounts",
|
30
316
|
section: "payment-gateway"
|
31
317
|
},
|
32
|
-
component: () => import("./PayoutAccount-
|
318
|
+
component: () => import("./PayoutAccount-Dm__V5FS.js")
|
33
319
|
},
|
34
320
|
{
|
35
321
|
path: "/admin/payout-accounts/:accountId",
|
@@ -38,7 +324,7 @@ const le = [
|
|
38
324
|
meta: {
|
39
325
|
parent: "mf-payment-admin.payout-account"
|
40
326
|
},
|
41
|
-
component: () => import("./PayoutAccountSetting-
|
327
|
+
component: () => import("./PayoutAccountSetting-EbYjEXDF.js")
|
42
328
|
},
|
43
329
|
{
|
44
330
|
path: "/admin/terminal/pos",
|
@@ -47,7 +333,7 @@ const le = [
|
|
47
333
|
sidebarDisplay: "POS",
|
48
334
|
section: "device"
|
49
335
|
},
|
50
|
-
component: () => import("./Terminal-
|
336
|
+
component: () => import("./Terminal-BhZitu-W.js"),
|
51
337
|
props: {
|
52
338
|
type: "POS"
|
53
339
|
}
|
@@ -59,7 +345,7 @@ const le = [
|
|
59
345
|
sidebarDisplay: "Kiosks",
|
60
346
|
section: "device"
|
61
347
|
},
|
62
|
-
component: () => import("./Terminal-
|
348
|
+
component: () => import("./Terminal-BhZitu-W.js"),
|
63
349
|
props: {
|
64
350
|
type: "KIOSK"
|
65
351
|
}
|
@@ -71,7 +357,7 @@ const le = [
|
|
71
357
|
sidebarDisplay: "Terminals",
|
72
358
|
section: "device"
|
73
359
|
},
|
74
|
-
component: () => import("./Terminal-
|
360
|
+
component: () => import("./Terminal-BhZitu-W.js"),
|
75
361
|
props: {
|
76
362
|
type: "TERMINAL"
|
77
363
|
}
|
@@ -83,7 +369,7 @@ const le = [
|
|
83
369
|
meta: {
|
84
370
|
parent: "mf-payment-admin.pos"
|
85
371
|
},
|
86
|
-
component: () => import("./TerminalSetting-
|
372
|
+
component: () => import("./TerminalSetting-lTAsTN8h.js")
|
87
373
|
},
|
88
374
|
{
|
89
375
|
path: "/admin/terminal/kiosk/:terminalId",
|
@@ -92,7 +378,7 @@ const le = [
|
|
92
378
|
meta: {
|
93
379
|
parent: "mf-payment-admin.kiosk"
|
94
380
|
},
|
95
|
-
component: () => import("./TerminalSetting-
|
381
|
+
component: () => import("./TerminalSetting-lTAsTN8h.js")
|
96
382
|
},
|
97
383
|
{
|
98
384
|
path: "/admin/terminal/terminal/:terminalId",
|
@@ -101,7 +387,7 @@ const le = [
|
|
101
387
|
meta: {
|
102
388
|
parent: "mf-payment-admin.terminal"
|
103
389
|
},
|
104
|
-
component: () => import("./TerminalSetting-
|
390
|
+
component: () => import("./TerminalSetting-lTAsTN8h.js")
|
105
391
|
},
|
106
392
|
{
|
107
393
|
path: "/admin/transaction",
|
@@ -109,7 +395,7 @@ const le = [
|
|
109
395
|
meta: {
|
110
396
|
sidebarDisplay: "Transactions"
|
111
397
|
},
|
112
|
-
component: () => import("./Transaction-
|
398
|
+
component: () => import("./Transaction-AwhwSbRY.js")
|
113
399
|
},
|
114
400
|
{
|
115
401
|
path: "/admin/settlement",
|
@@ -117,7 +403,7 @@ const le = [
|
|
117
403
|
meta: {
|
118
404
|
sidebarDisplay: "Settlements"
|
119
405
|
},
|
120
|
-
component: () => import("./Settlement-
|
406
|
+
component: () => import("./Settlement-BCGCz02p.js")
|
121
407
|
},
|
122
408
|
{
|
123
409
|
path: "/admin/settlement/:settlementId",
|
@@ -126,7 +412,7 @@ const le = [
|
|
126
412
|
meta: {
|
127
413
|
parent: "mf-payment-admin.settlement"
|
128
414
|
},
|
129
|
-
component: () => import("./SettlementTransactions-
|
415
|
+
component: () => import("./SettlementTransactions-BXDX1-4U.js")
|
130
416
|
}
|
131
417
|
], We = [
|
132
418
|
{
|
@@ -136,46 +422,46 @@ const le = [
|
|
136
422
|
{
|
137
423
|
path: "/payout-account",
|
138
424
|
name: "mf-payment-payout-account",
|
139
|
-
component: () => import("./PayoutAccount-
|
425
|
+
component: () => import("./PayoutAccount-aXUZqVC4.js"),
|
140
426
|
meta: {
|
141
|
-
sidebarDisplay: "
|
427
|
+
sidebarDisplay: "i18n:routes.payout_account"
|
142
428
|
}
|
143
429
|
},
|
144
430
|
{
|
145
431
|
path: "/transaction-old",
|
146
432
|
name: "mf-payment-old-transaction",
|
147
|
-
component: () => import("./TransactionOld-
|
433
|
+
component: () => import("./TransactionOld-DLjym0JG.js"),
|
148
434
|
meta: {
|
149
|
-
sidebarDisplay: "
|
435
|
+
sidebarDisplay: "i18n:routes.transaction"
|
150
436
|
}
|
151
437
|
},
|
152
438
|
{
|
153
439
|
path: "/transaction",
|
154
440
|
name: "mf-payment-transaction",
|
155
|
-
component: () => import("./Transaction-
|
441
|
+
component: () => import("./Transaction-CCTdVAZg.js"),
|
156
442
|
meta: {
|
157
|
-
sidebarDisplay: "
|
443
|
+
sidebarDisplay: "i18n:routes.transaction-new",
|
158
444
|
sidebarNew: !0
|
159
445
|
}
|
160
446
|
},
|
161
447
|
{
|
162
448
|
path: "/settlement",
|
163
449
|
name: "mf-payment-settlement",
|
164
|
-
component: () => import("./Settlement-
|
450
|
+
component: () => import("./Settlement-CsLlypA1.js"),
|
165
451
|
meta: {
|
166
|
-
sidebarDisplay: "
|
452
|
+
sidebarDisplay: "i18n:routes.settlement"
|
167
453
|
}
|
168
454
|
},
|
169
455
|
{
|
170
456
|
path: "/settlement/:settlementId",
|
171
457
|
name: "mf-payment-settlement-transaction",
|
172
458
|
props: !0,
|
173
|
-
component: () => import("./SettlementTransactions-
|
459
|
+
component: () => import("./SettlementTransactions-DtbZ2BMA.js"),
|
174
460
|
meta: {
|
175
461
|
parent: "mf-payment-settlement"
|
176
462
|
}
|
177
463
|
}
|
178
|
-
],
|
464
|
+
], sr = zn("mf-payment-iframe", () => {
|
179
465
|
const n = {
|
180
466
|
isIframe: !1
|
181
467
|
}, e = Lt(() => n);
|
@@ -187,7 +473,7 @@ const le = [
|
|
187
473
|
init: t
|
188
474
|
};
|
189
475
|
});
|
190
|
-
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_d2b46566-cdd2-4da6-a553-5df2367d87be", npm_package_devDependencies_ts_node: "^10.9.1", npm_package_dependencies_zod: "^3.23.8", npm_package_dependencies_dinero_js: "^1.9.1", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies_jest: "^29.6.3", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v22.14.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_d2b46566-cdd2-4da6-a553-5df2367d87be", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_Si6zxALdUInjVjAyY9zrXWiOEC8Atp3tDB54", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies_sass: "1.32.12", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_dependencies_jspdf: "^2.5.1", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies_change_case: "^4.1.2", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_package_dependencies__feedmepos_mf_common: "^1.8.21", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "710", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.3.9", npm_package_scripts_postinstall: "yarn --cwd .. && yarn --cwd ../package/common && yarn --cwd ../package/entity", npm_config_feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: 'Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.', npm_package_devDependencies_typescript: "~5.4.0", npm_package_devDependencies_tailwindcss: "^3.4.14", npm_package_dependencies_i18next: "^21.8.8", npm_package_dependencies__casl_ability: "^3.2.0", npm_package_scripts_build_only_dev: "yarn build:mf:dev && yarn build:dts && yarn build-types && cp package.json ./dist", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_dependencies_xlsx: "^0.18.5", npm_package_dependencies_google_maps: "^4.3.3", npm_package_scripts_build_only_prod: "yarn build:mf:prod && yarn build:dts && yarn build-types && cp package.json ./dist", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250309.1.0", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", npm_package_scripts_dev: "vite --mode dev", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_scripts_prod: "vite --mode prod", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.7/x64", JOURNAL_STREAM: "8:6624", GITHUB_WORKFLOW: "payment-mf-portal-dev", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", npm_package_module: "./dist/app.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_config_registry: "https://registry.yarnpkg.com", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13918490302", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c4165d4c72a7ad82b94b35ff46ac6e777165eb43", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_exports___import: "./dist/app.js", npm_config_ignore_scripts: "", GITHUB_WORKFLOW_REF: "feedmepos/payment-service/.github/workflows/payment-mf-portal-dev.yaml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6NTM4M2U5MGUtNDYyMC00YTQyLWFmMTMtYjQwOWIzZjU1MTAyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzI2IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46NTM4M2U5MGUtNDYyMC00YTQyLWFmMTMtYjQwOWIzZjU1MTAyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzI2IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiMzM5MWI0NjItZmVlYS00YWYwLTkwYjktNzY3ODdmZjU5ZWNlIiwic2lkIjoiMjI5YjJlZTYtYTZhMS00MjVlLTgyYTktZWVjMzc5NDkxMTgzIiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcImM0MTY1ZDRjNzJhN2FkODJiOTRiMzVmZjQ2YWM2ZTc3NzE2NWViNDNcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTM5MTg0OTAzMDJcIixcInJ1bl9udW1iZXJcIjpcIjE0NFwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCJjNDE2NWQ0YzcyYTdhZDgyYjk0YjM1ZmY0NmFjNmU3NzcxNjVlYjQzXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJjNDE2NWQ0YzcyYTdhZDgyYjk0YjM1ZmY0NmFjNmU3NzcxNjVlYjQzXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI1MzgzZTkwZS00NjIwLTRhNDItYWYxMy1iNDA5YjNmNTUxMDIuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDIyODU0MzcsImV4cCI6MTc0MjMwODIzN30.Fg9aOzjU68ptUSHqLPkyxAWV3UeFRF5kVrFQC0PFogHN9TzZmdp5tQiuj0yvWhjk82VvU5Tq13Sh38y4QENiNrGm0Iw1ZonmOxD43eEieVqGTPNfZdj2BxJliM7WoFepKdARPi7MQ2-pymTMMxSFSeuikygGy_QgP7zNjuca39cKi7BJwjp03kZif91v_vCjAZMFEq96vOG6BiGlQcmn6Uk9HvLL4qSXc1-AAxQf1U-UxxkwXhS3CDYuQFQc0DkvlJsde071KDZq7lEEYyTRJMpXi3WLx96-cff7DA-jVGvxjJ8rIDBahXJS6kFyMZ2jezVm6IAQ7DLlN2pRb1uBAA", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1742286092160-0.3080656005895879:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1742286092001-0.4653794616059381:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1742286091844-0.3528187099226008:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_9871439e-09c6-41dc-b4b1-cef0f24f64ac", INVOCATION_ID: "504e351c509844a7b7b135861919a925", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_devDependencies__types_jsurl: "^0.1.2", npm_package_dependencies_file_saver: "^2.0.5", npm_package_scripts_deploy_dev: "yarn build-only:dev && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_name: "@feedmepos/mf-payment", GITHUB_ACTION: "__run", GITHUB_RUN_NUMBER: "144", GITHUB_TRIGGERING_ACTOR: "Oskang09", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_scripts_deploy_prod: "yarn build-only:prod && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 489", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:dev", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^2.2.3", npm_package_scripts_test: "jest", npm_config_version_git_message: "v%s", GITHUB_REPOSITORY_ID: "690979260", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:mf:dev", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_version: "1.1.0-beta.1", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:dev"],"original":["deploy:dev"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_config__feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_WORKSPACE: "/home/runner/work/payment-service/payment-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "c4165d4c72a7ad82b94b35ff46ac6e777165eb43", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_dependencies_vue_router: "^4.2.5", npm_package_exports___style: "./dist/style.css", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Oskang09", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_strict_ssl: "true", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_firebase: "^10.14.0", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_d2b46566-cdd2-4da6-a553-5df2367d87be", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/payment-service/payment-service/mf-portal", GITHUB_ACTOR_ID: "15674107", RUNNER_WORKSPACE: "/home/runner/work/payment-service", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://pipelinesghubeus11.actions.githubusercontent.com/uhMzCspeMtZD05BczWutTDpLRkQb1I4q0fwG0tss4R7H4Wpw9s/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/5383e90e-4620-4a42-af13-b409b3f55102/jobs/e07742bd-189a-5079-918b-43f8b2f94b89/idtoken?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_d2b46566-cdd2-4da6-a553-5df2367d87be", npm_package_dependencies_qrcode_vue: "^3.6.0", npm_package_exports___types: "./dist/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_config_save_prefix: "^", npm_config_ignore_optional: "", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_devDependencies_cd: "^0.3.3", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", INIT_CWD: "/home/runner/work/payment-service/payment-service/mf-portal", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_d2b46566-cdd2-4da6-a553-5df2367d87be", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.23", NODE_ENV: "production", ENVIRONMENT: "development", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" };
|
476
|
+
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_20c3b992-0c0b-48f4-b338-8135edda858a", npm_package_devDependencies_ts_node: "^10.9.1", npm_package_dependencies_zod: "^3.23.8", npm_package_dependencies_dinero_js: "^1.9.1", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies_jest: "^29.6.3", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v22.14.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_20c3b992-0c0b-48f4-b338-8135edda858a", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_H8wAiyKR2krVZ68F529PuvlSQb9ph8253aox", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies_sass: "1.32.12", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_dependencies_jspdf: "^2.5.1", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies_change_case: "^4.1.2", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_package_dependencies__feedmepos_mf_common: "^1.11.6", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "711", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.3.9", npm_package_scripts_postinstall: "yarn --cwd .. && yarn --cwd ../package/common && yarn --cwd ../package/entity", npm_config_feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: 'Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.', npm_package_devDependencies_typescript: "~5.4.0", npm_package_devDependencies_tailwindcss: "^3.4.14", npm_package_dependencies_i18next: "^21.8.8", npm_package_dependencies__casl_ability: "^3.2.0", npm_package_scripts_build_only_dev: "yarn build:mf:dev && yarn build:dts && yarn build-types && cp package.json ./dist", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_dependencies_xlsx: "^0.18.5", npm_package_dependencies_google_maps: "^4.3.3", npm_package_scripts_build_only_prod: "yarn build:mf:prod && yarn build:dts && yarn build-types && cp package.json ./dist", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250309.1.0", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", npm_package_scripts_dev: "vite --mode dev", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_scripts_prod: "vite --mode prod", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.7/x64", JOURNAL_STREAM: "8:6112", GITHUB_WORKFLOW: "payment-mf-portal-dev", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", npm_package_module: "./dist/app.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_config_registry: "https://registry.yarnpkg.com", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13941013784", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "30c75d63971e098a18ad08904b77de0678baf9a2", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_exports___import: "./dist/app.js", npm_config_ignore_scripts: "", GITHUB_WORKFLOW_REF: "feedmepos/payment-service/.github/workflows/payment-mf-portal-dev.yaml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6NDEwNjdlMjQtMmJmOS00YmNkLWJkMzktNDhhYjNhOWI3M2IxOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzMxIERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46NDEwNjdlMjQtMmJmOS00YmNkLWJkMzktNDhhYjNhOWI3M2IxOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzMxIiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiYzkzNmZkZTItNjE3Ni00YTYzLWIwMjAtNDdiNDg0MmQwYmVlIiwic2lkIjoiM2QxYzdlMmMtNWRmMi00ZjJiLWJhODctYmI2N2Q1NDUyNzY1IiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcIjMwYzc1ZDYzOTcxZTA5OGExOGFkMDg5MDRiNzdkZTA2NzhiYWY5YTJcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTM5NDEwMTM3ODRcIixcInJ1bl9udW1iZXJcIjpcIjE0OFwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCIzMGM3NWQ2Mzk3MWUwOThhMThhZDA4OTA0Yjc3ZGUwNjc4YmFmOWEyXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIzMGM3NWQ2Mzk3MWUwOThhMThhZDA4OTA0Yjc3ZGUwNjc4YmFmOWEyXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI0MTA2N2UyNC0yYmY5LTRiY2QtYmQzOS00OGFiM2E5YjczYjEuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDIzNjgzMjcsImV4cCI6MTc0MjM5MTEyN30.XC7CZ_VGNrLq55bYEEq7e-ojhCf1lF446YSE6C2vtd1wXvNjObNYeqdAugQF6kKj_t2ZQJ8OE9y9I91teFpl6fHF0hxsYNqfB9r2cPRquG9SsZNRWwIBmE0YLb4l6ysY0OTIbqhACBhuF-QyX5_iP1T3ibqV-z5_pivOikRNd-qwtmTXE6sxkzNZSR7arkoW4EGpuSuYdJiiIS8gG7qur6M2ThYDzjz8eYKbJQuSkQImfYj_HU4Zyq18Vmrulh-VoEOo2k0bYAACuP-ccZB4JCNBTtxJDf1DsMe0eszwsuGJ_QHtu-nPDNHYiWP33RqcNKjZZHZsSi4FFwVdGVTZQQ", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1742368971170-0.652880635143968:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1742368971012-0.383490901966258:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1742368970853-0.8311704939347975:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_fd81da49-e087-4a82-a12e-d6911575529d", INVOCATION_ID: "f796425da39547be8f810ee2f7dc6277", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_devDependencies__types_jsurl: "^0.1.2", npm_package_dependencies_file_saver: "^2.0.5", npm_package_scripts_deploy_dev: "yarn build-only:dev && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_name: "@feedmepos/mf-payment", GITHUB_ACTION: "__run", GITHUB_RUN_NUMBER: "148", GITHUB_TRIGGERING_ACTOR: "Oskang09", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_scripts_deploy_prod: "yarn build-only:prod && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 404", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:dev", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^2.2.3", npm_package_scripts_test: "jest", npm_config_version_git_message: "v%s", GITHUB_REPOSITORY_ID: "690979260", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:mf:dev", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_version: "1.1.0-beta.3", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:dev"],"original":["deploy:dev"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_package_dependencies_vue_i18n: "10.0.5", npm_config__feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_WORKSPACE: "/home/runner/work/payment-service/payment-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "30c75d63971e098a18ad08904b77de0678baf9a2", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_dependencies_vue_router: "^4.2.5", npm_package_exports___style: "./dist/style.css", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Oskang09", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_strict_ssl: "true", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_firebase: "^10.14.0", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_20c3b992-0c0b-48f4-b338-8135edda858a", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/payment-service/payment-service/mf-portal", GITHUB_ACTOR_ID: "15674107", RUNNER_WORKSPACE: "/home/runner/work/payment-service", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://pipelinesghubeus11.actions.githubusercontent.com/uhMzCspeMtZD05BczWutTDpLRkQb1I4q0fwG0tss4R7H4Wpw9s/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/41067e24-2bf9-4bcd-bd39-48ab3a9b73b1/jobs/e07742bd-189a-5079-918b-43f8b2f94b89/idtoken?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_20c3b992-0c0b-48f4-b338-8135edda858a", npm_package_dependencies_qrcode_vue: "^3.6.0", npm_package_exports___types: "./dist/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_config_save_prefix: "^", npm_config_ignore_optional: "", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_devDependencies_cd: "^0.3.3", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", INIT_CWD: "/home/runner/work/payment-service/payment-service/mf-portal", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_20c3b992-0c0b-48f4-b338-8135edda858a", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.23", NODE_ENV: "production", ENVIRONMENT: "development", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" };
|
191
477
|
/**
|
192
478
|
* @license
|
193
479
|
* Copyright 2017 Google LLC
|
@@ -204,7 +490,7 @@ var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_sta
|
|
204
490
|
* See the License for the specific language governing permissions and
|
205
491
|
* limitations under the License.
|
206
492
|
*/
|
207
|
-
const
|
493
|
+
const Ht = function(n) {
|
208
494
|
const e = [];
|
209
495
|
let t = 0;
|
210
496
|
for (let r = 0; r < n.length; r++) {
|
@@ -212,7 +498,7 @@ const xt = function(n) {
|
|
212
498
|
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);
|
213
499
|
}
|
214
500
|
return e;
|
215
|
-
},
|
501
|
+
}, ar = function(n) {
|
216
502
|
const e = [];
|
217
503
|
let t = 0, r = 0;
|
218
504
|
for (; t < n.length; ) {
|
@@ -231,7 +517,7 @@ const xt = function(n) {
|
|
231
517
|
}
|
232
518
|
}
|
233
519
|
return e.join("");
|
234
|
-
},
|
520
|
+
}, jt = {
|
235
521
|
/**
|
236
522
|
* Maps bytes to characters.
|
237
523
|
*/
|
@@ -290,9 +576,9 @@ const xt = function(n) {
|
|
290
576
|
this.init_();
|
291
577
|
const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
292
578
|
for (let i = 0; i < n.length; i += 3) {
|
293
|
-
const s = n[i], a = i + 1 < n.length, c = a ? n[i + 1] : 0, o = i + 2 < n.length, l = o ? n[i + 2] : 0,
|
579
|
+
const s = n[i], a = i + 1 < n.length, c = a ? n[i + 1] : 0, o = i + 2 < n.length, l = o ? n[i + 2] : 0, d = s >> 2, h = (s & 3) << 4 | c >> 4;
|
294
580
|
let m = (c & 15) << 2 | l >> 6, v = l & 63;
|
295
|
-
o || (v = 64, a || (m = 64)), r.push(t[
|
581
|
+
o || (v = 64, a || (m = 64)), r.push(t[d], t[h], t[m], t[v]);
|
296
582
|
}
|
297
583
|
return r.join("");
|
298
584
|
},
|
@@ -305,7 +591,7 @@ const xt = function(n) {
|
|
305
591
|
* @return The base64 encoded string.
|
306
592
|
*/
|
307
593
|
encodeString(n, e) {
|
308
|
-
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(
|
594
|
+
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(Ht(n), e);
|
309
595
|
},
|
310
596
|
/**
|
311
597
|
* Base64-decode a string.
|
@@ -316,7 +602,7 @@ const xt = function(n) {
|
|
316
602
|
* @return string representing the decoded value.
|
317
603
|
*/
|
318
604
|
decodeString(n, e) {
|
319
|
-
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) :
|
605
|
+
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : ar(this.decodeStringToByteArray(n, e));
|
320
606
|
},
|
321
607
|
/**
|
322
608
|
* Base64-decode a string.
|
@@ -341,14 +627,14 @@ const xt = function(n) {
|
|
341
627
|
++i;
|
342
628
|
const l = i < n.length ? t[n.charAt(i)] : 64;
|
343
629
|
++i;
|
344
|
-
const
|
345
|
-
if (++i, s == null || c == null || l == null ||
|
346
|
-
throw new
|
630
|
+
const h = i < n.length ? t[n.charAt(i)] : 64;
|
631
|
+
if (++i, s == null || c == null || l == null || h == null)
|
632
|
+
throw new or();
|
347
633
|
const m = s << 2 | c >> 4;
|
348
634
|
if (r.push(m), l !== 64) {
|
349
635
|
const v = c << 4 & 240 | l >> 2;
|
350
|
-
if (r.push(v),
|
351
|
-
const F = l << 6 & 192 |
|
636
|
+
if (r.push(v), h !== 64) {
|
637
|
+
const F = l << 6 & 192 | h;
|
352
638
|
r.push(F);
|
353
639
|
}
|
354
640
|
}
|
@@ -368,19 +654,19 @@ const xt = function(n) {
|
|
368
654
|
}
|
369
655
|
}
|
370
656
|
};
|
371
|
-
class
|
657
|
+
class or extends Error {
|
372
658
|
constructor() {
|
373
659
|
super(...arguments), this.name = "DecodeBase64StringError";
|
374
660
|
}
|
375
661
|
}
|
376
|
-
const
|
377
|
-
const e =
|
378
|
-
return
|
662
|
+
const cr = function(n) {
|
663
|
+
const e = Ht(n);
|
664
|
+
return jt.encodeByteArray(e, !0);
|
379
665
|
}, de = function(n) {
|
380
|
-
return
|
381
|
-
},
|
666
|
+
return cr(n).replace(/\./g, "");
|
667
|
+
}, Gt = function(n) {
|
382
668
|
try {
|
383
|
-
return
|
669
|
+
return jt.decodeString(n, !0);
|
384
670
|
} catch (e) {
|
385
671
|
console.error("base64Decode failed: ", e);
|
386
672
|
}
|
@@ -402,7 +688,7 @@ const Yn = function(n) {
|
|
402
688
|
* See the License for the specific language governing permissions and
|
403
689
|
* limitations under the License.
|
404
690
|
*/
|
405
|
-
function
|
691
|
+
function lr() {
|
406
692
|
if (typeof self < "u")
|
407
693
|
return self;
|
408
694
|
if (typeof window < "u")
|
@@ -427,13 +713,13 @@ function Xn() {
|
|
427
713
|
* See the License for the specific language governing permissions and
|
428
714
|
* limitations under the License.
|
429
715
|
*/
|
430
|
-
const
|
716
|
+
const dr = () => lr().__FIREBASE_DEFAULTS__, ur = () => {
|
431
717
|
if (typeof process > "u" || typeof ot > "u")
|
432
718
|
return;
|
433
719
|
const n = ot.__FIREBASE_DEFAULTS__;
|
434
720
|
if (n)
|
435
721
|
return JSON.parse(n);
|
436
|
-
},
|
722
|
+
}, hr = () => {
|
437
723
|
if (typeof document > "u")
|
438
724
|
return;
|
439
725
|
let n;
|
@@ -442,20 +728,20 @@ const Kn = () => Xn().__FIREBASE_DEFAULTS__, qn = () => {
|
|
442
728
|
} catch {
|
443
729
|
return;
|
444
730
|
}
|
445
|
-
const e = n &&
|
731
|
+
const e = n && Gt(n[1]);
|
446
732
|
return e && JSON.parse(e);
|
447
733
|
}, ze = () => {
|
448
734
|
try {
|
449
|
-
return
|
735
|
+
return dr() || ur() || hr();
|
450
736
|
} catch (n) {
|
451
737
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
|
452
738
|
return;
|
453
739
|
}
|
454
|
-
},
|
740
|
+
}, Vt = (n) => {
|
455
741
|
var e, t;
|
456
742
|
return (t = (e = ze()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
|
457
|
-
},
|
458
|
-
const e =
|
743
|
+
}, Wa = (n) => {
|
744
|
+
const e = Vt(n);
|
459
745
|
if (!e)
|
460
746
|
return;
|
461
747
|
const t = e.lastIndexOf(":");
|
@@ -486,7 +772,7 @@ const Kn = () => Xn().__FIREBASE_DEFAULTS__, qn = () => {
|
|
486
772
|
* See the License for the specific language governing permissions and
|
487
773
|
* limitations under the License.
|
488
774
|
*/
|
489
|
-
class
|
775
|
+
class pr {
|
490
776
|
constructor() {
|
491
777
|
this.reject = () => {
|
492
778
|
}, this.resolve = () => {
|
@@ -522,7 +808,7 @@ class er {
|
|
522
808
|
* See the License for the specific language governing permissions and
|
523
809
|
* limitations under the License.
|
524
810
|
*/
|
525
|
-
function
|
811
|
+
function za(n, e) {
|
526
812
|
if (n.uid)
|
527
813
|
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
|
528
814
|
const t = {
|
@@ -570,33 +856,33 @@ function Da(n, e) {
|
|
570
856
|
function f() {
|
571
857
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
572
858
|
}
|
573
|
-
function
|
859
|
+
function mr() {
|
574
860
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
575
861
|
// just to deal with this case would probably be a bad idea.
|
576
862
|
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f());
|
577
863
|
}
|
578
|
-
function
|
864
|
+
function fr() {
|
579
865
|
return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
|
580
866
|
}
|
581
|
-
function
|
867
|
+
function _r() {
|
582
868
|
const n = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
|
583
869
|
return typeof n == "object" && n.id !== void 0;
|
584
870
|
}
|
585
|
-
function
|
871
|
+
function gr() {
|
586
872
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
587
873
|
}
|
588
|
-
function
|
874
|
+
function vr() {
|
589
875
|
const n = f();
|
590
876
|
return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
|
591
877
|
}
|
592
|
-
function
|
878
|
+
function Ir() {
|
593
879
|
try {
|
594
880
|
return typeof indexedDB == "object";
|
595
881
|
} catch {
|
596
882
|
return !1;
|
597
883
|
}
|
598
884
|
}
|
599
|
-
function
|
885
|
+
function br() {
|
600
886
|
return new Promise((n, e) => {
|
601
887
|
try {
|
602
888
|
let t = !0;
|
@@ -630,10 +916,10 @@ function or() {
|
|
630
916
|
* See the License for the specific language governing permissions and
|
631
917
|
* limitations under the License.
|
632
918
|
*/
|
633
|
-
const
|
919
|
+
const yr = "FirebaseError";
|
634
920
|
class M extends Error {
|
635
921
|
constructor(e, t, r) {
|
636
|
-
super(t), this.code = e, this.customData = r, this.name =
|
922
|
+
super(t), this.code = e, this.customData = r, this.name = yr, Object.setPrototypeOf(this, M.prototype), Error.captureStackTrace && Error.captureStackTrace(this, q.prototype.create);
|
637
923
|
}
|
638
924
|
}
|
639
925
|
class q {
|
@@ -641,18 +927,18 @@ class q {
|
|
641
927
|
this.service = e, this.serviceName = t, this.errors = r;
|
642
928
|
}
|
643
929
|
create(e, ...t) {
|
644
|
-
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ?
|
930
|
+
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? Er(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
|
645
931
|
return new M(i, c, r);
|
646
932
|
}
|
647
933
|
}
|
648
|
-
function
|
649
|
-
return n.replace(
|
934
|
+
function Er(n, e) {
|
935
|
+
return n.replace(Tr, (t, r) => {
|
650
936
|
const i = e[r];
|
651
937
|
return i != null ? String(i) : `<${r}?>`;
|
652
938
|
});
|
653
939
|
}
|
654
|
-
const
|
655
|
-
function
|
940
|
+
const Tr = /\{\$([^}]+)}/g;
|
941
|
+
function wr(n) {
|
656
942
|
for (const e in n)
|
657
943
|
if (Object.prototype.hasOwnProperty.call(n, e))
|
658
944
|
return !1;
|
@@ -704,11 +990,11 @@ function Q(n) {
|
|
704
990
|
}) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
|
705
991
|
return e.length ? "&" + e.join("&") : "";
|
706
992
|
}
|
707
|
-
function
|
708
|
-
const t = new
|
993
|
+
function kr(n, e) {
|
994
|
+
const t = new Rr(n, e);
|
709
995
|
return t.subscribe.bind(t);
|
710
996
|
}
|
711
|
-
class
|
997
|
+
class Rr {
|
712
998
|
/**
|
713
999
|
* @param executor Function which can make calls to a single Observer
|
714
1000
|
* as a proxy.
|
@@ -746,7 +1032,7 @@ class pr {
|
|
746
1032
|
let i;
|
747
1033
|
if (e === void 0 && t === void 0 && r === void 0)
|
748
1034
|
throw new Error("Missing Observer.");
|
749
|
-
|
1035
|
+
Sr(e, [
|
750
1036
|
"next",
|
751
1037
|
"error",
|
752
1038
|
"complete"
|
@@ -754,7 +1040,7 @@ class pr {
|
|
754
1040
|
next: e,
|
755
1041
|
error: t,
|
756
1042
|
complete: r
|
757
|
-
}, i.next === void 0 && (i.next =
|
1043
|
+
}, i.next === void 0 && (i.next = Re), i.error === void 0 && (i.error = Re), i.complete === void 0 && (i.complete = Re);
|
758
1044
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
759
1045
|
return this.finalized && this.task.then(() => {
|
760
1046
|
try {
|
@@ -792,7 +1078,7 @@ class pr {
|
|
792
1078
|
}));
|
793
1079
|
}
|
794
1080
|
}
|
795
|
-
function
|
1081
|
+
function Sr(n, e) {
|
796
1082
|
if (typeof n != "object" || n === null)
|
797
1083
|
return !1;
|
798
1084
|
for (const t of e)
|
@@ -800,7 +1086,7 @@ function fr(n, e) {
|
|
800
1086
|
return !0;
|
801
1087
|
return !1;
|
802
1088
|
}
|
803
|
-
function
|
1089
|
+
function Re() {
|
804
1090
|
}
|
805
1091
|
/**
|
806
1092
|
* @license
|
@@ -877,7 +1163,7 @@ const L = "[DEFAULT]";
|
|
877
1163
|
* See the License for the specific language governing permissions and
|
878
1164
|
* limitations under the License.
|
879
1165
|
*/
|
880
|
-
class
|
1166
|
+
class Ar {
|
881
1167
|
constructor(e, t) {
|
882
1168
|
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();
|
883
1169
|
}
|
@@ -888,7 +1174,7 @@ class mr {
|
|
888
1174
|
get(e) {
|
889
1175
|
const t = this.normalizeInstanceIdentifier(e);
|
890
1176
|
if (!this.instancesDeferred.has(t)) {
|
891
|
-
const r = new
|
1177
|
+
const r = new pr();
|
892
1178
|
if (this.instancesDeferred.set(t, r), this.isInitialized(t) || this.shouldAutoInitialize())
|
893
1179
|
try {
|
894
1180
|
const i = this.getOrInitializeService({
|
@@ -928,7 +1214,7 @@ class mr {
|
|
928
1214
|
if (this.component)
|
929
1215
|
throw Error(`Component for ${this.name} has already been provided`);
|
930
1216
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
931
|
-
if (
|
1217
|
+
if (Nr(e))
|
932
1218
|
try {
|
933
1219
|
this.getOrInitializeService({ instanceIdentifier: L });
|
934
1220
|
} catch {
|
@@ -1015,7 +1301,7 @@ class mr {
|
|
1015
1301
|
getOrInitializeService({ instanceIdentifier: e, options: t = {} }) {
|
1016
1302
|
let r = this.instances.get(e);
|
1017
1303
|
if (!r && this.component && (r = this.component.instanceFactory(this.container, {
|
1018
|
-
instanceIdentifier:
|
1304
|
+
instanceIdentifier: Or(e),
|
1019
1305
|
options: t
|
1020
1306
|
}), this.instances.set(e, r), this.instancesOptions.set(e, t), this.invokeOnInitCallbacks(r, e), this.component.onInstanceCreated))
|
1021
1307
|
try {
|
@@ -1031,10 +1317,10 @@ class mr {
|
|
1031
1317
|
return !!this.component && this.component.instantiationMode !== "EXPLICIT";
|
1032
1318
|
}
|
1033
1319
|
}
|
1034
|
-
function
|
1320
|
+
function Or(n) {
|
1035
1321
|
return n === L ? void 0 : n;
|
1036
1322
|
}
|
1037
|
-
function
|
1323
|
+
function Nr(n) {
|
1038
1324
|
return n.instantiationMode === "EAGER";
|
1039
1325
|
}
|
1040
1326
|
/**
|
@@ -1053,7 +1339,7 @@ function gr(n) {
|
|
1053
1339
|
* See the License for the specific language governing permissions and
|
1054
1340
|
* limitations under the License.
|
1055
1341
|
*/
|
1056
|
-
class
|
1342
|
+
class Cr {
|
1057
1343
|
constructor(e) {
|
1058
1344
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
1059
1345
|
}
|
@@ -1085,7 +1371,7 @@ class vr {
|
|
1085
1371
|
getProvider(e) {
|
1086
1372
|
if (this.providers.has(e))
|
1087
1373
|
return this.providers.get(e);
|
1088
|
-
const t = new
|
1374
|
+
const t = new Ar(e, this);
|
1089
1375
|
return this.providers.set(e, t), t;
|
1090
1376
|
}
|
1091
1377
|
getProviders() {
|
@@ -1108,33 +1394,33 @@ class vr {
|
|
1108
1394
|
* See the License for the specific language governing permissions and
|
1109
1395
|
* limitations under the License.
|
1110
1396
|
*/
|
1111
|
-
var
|
1397
|
+
var p;
|
1112
1398
|
(function(n) {
|
1113
1399
|
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";
|
1114
|
-
})(
|
1115
|
-
const
|
1116
|
-
debug:
|
1117
|
-
verbose:
|
1118
|
-
info:
|
1119
|
-
warn:
|
1120
|
-
error:
|
1121
|
-
silent:
|
1122
|
-
},
|
1123
|
-
[
|
1124
|
-
[
|
1125
|
-
[
|
1126
|
-
[
|
1127
|
-
[
|
1128
|
-
},
|
1400
|
+
})(p || (p = {}));
|
1401
|
+
const Dr = {
|
1402
|
+
debug: p.DEBUG,
|
1403
|
+
verbose: p.VERBOSE,
|
1404
|
+
info: p.INFO,
|
1405
|
+
warn: p.WARN,
|
1406
|
+
error: p.ERROR,
|
1407
|
+
silent: p.SILENT
|
1408
|
+
}, Pr = p.INFO, Mr = {
|
1409
|
+
[p.DEBUG]: "log",
|
1410
|
+
[p.VERBOSE]: "log",
|
1411
|
+
[p.INFO]: "info",
|
1412
|
+
[p.WARN]: "warn",
|
1413
|
+
[p.ERROR]: "error"
|
1414
|
+
}, Lr = (n, e, ...t) => {
|
1129
1415
|
if (e < n.logLevel)
|
1130
1416
|
return;
|
1131
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(), i =
|
1417
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), i = Mr[e];
|
1132
1418
|
if (i)
|
1133
1419
|
console[i](`[${r}] ${n.name}:`, ...t);
|
1134
1420
|
else
|
1135
1421
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
1136
1422
|
};
|
1137
|
-
class
|
1423
|
+
class $t {
|
1138
1424
|
/**
|
1139
1425
|
* Gives you an instance of a Logger to capture messages according to
|
1140
1426
|
* Firebase's logging scheme.
|
@@ -1142,19 +1428,19 @@ class Zt {
|
|
1142
1428
|
* @param name The name that the logs will be associated with
|
1143
1429
|
*/
|
1144
1430
|
constructor(e) {
|
1145
|
-
this.name = e, this._logLevel =
|
1431
|
+
this.name = e, this._logLevel = Pr, this._logHandler = Lr, this._userLogHandler = null;
|
1146
1432
|
}
|
1147
1433
|
get logLevel() {
|
1148
1434
|
return this._logLevel;
|
1149
1435
|
}
|
1150
1436
|
set logLevel(e) {
|
1151
|
-
if (!(e in
|
1437
|
+
if (!(e in p))
|
1152
1438
|
throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);
|
1153
1439
|
this._logLevel = e;
|
1154
1440
|
}
|
1155
1441
|
// Workaround for setter/getter having to be the same type.
|
1156
1442
|
setLogLevel(e) {
|
1157
|
-
this._logLevel = typeof e == "string" ?
|
1443
|
+
this._logLevel = typeof e == "string" ? Dr[e] : e;
|
1158
1444
|
}
|
1159
1445
|
get logHandler() {
|
1160
1446
|
return this._logHandler;
|
@@ -1174,24 +1460,24 @@ class Zt {
|
|
1174
1460
|
* The functions below are all based on the `console` interface
|
1175
1461
|
*/
|
1176
1462
|
debug(...e) {
|
1177
|
-
this._userLogHandler && this._userLogHandler(this,
|
1463
|
+
this._userLogHandler && this._userLogHandler(this, p.DEBUG, ...e), this._logHandler(this, p.DEBUG, ...e);
|
1178
1464
|
}
|
1179
1465
|
log(...e) {
|
1180
|
-
this._userLogHandler && this._userLogHandler(this,
|
1466
|
+
this._userLogHandler && this._userLogHandler(this, p.VERBOSE, ...e), this._logHandler(this, p.VERBOSE, ...e);
|
1181
1467
|
}
|
1182
1468
|
info(...e) {
|
1183
|
-
this._userLogHandler && this._userLogHandler(this,
|
1469
|
+
this._userLogHandler && this._userLogHandler(this, p.INFO, ...e), this._logHandler(this, p.INFO, ...e);
|
1184
1470
|
}
|
1185
1471
|
warn(...e) {
|
1186
|
-
this._userLogHandler && this._userLogHandler(this,
|
1472
|
+
this._userLogHandler && this._userLogHandler(this, p.WARN, ...e), this._logHandler(this, p.WARN, ...e);
|
1187
1473
|
}
|
1188
1474
|
error(...e) {
|
1189
|
-
this._userLogHandler && this._userLogHandler(this,
|
1475
|
+
this._userLogHandler && this._userLogHandler(this, p.ERROR, ...e), this._logHandler(this, p.ERROR, ...e);
|
1190
1476
|
}
|
1191
1477
|
}
|
1192
|
-
const
|
1478
|
+
const Ur = (n, e) => e.some((t) => n instanceof t);
|
1193
1479
|
let lt, dt;
|
1194
|
-
function
|
1480
|
+
function Br() {
|
1195
1481
|
return lt || (lt = [
|
1196
1482
|
IDBDatabase,
|
1197
1483
|
IDBObjectStore,
|
@@ -1200,31 +1486,31 @@ function wr() {
|
|
1200
1486
|
IDBTransaction
|
1201
1487
|
]);
|
1202
1488
|
}
|
1203
|
-
function
|
1489
|
+
function Fr() {
|
1204
1490
|
return dt || (dt = [
|
1205
1491
|
IDBCursor.prototype.advance,
|
1206
1492
|
IDBCursor.prototype.continue,
|
1207
1493
|
IDBCursor.prototype.continuePrimaryKey
|
1208
1494
|
]);
|
1209
1495
|
}
|
1210
|
-
const
|
1211
|
-
function
|
1496
|
+
const Zt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap();
|
1497
|
+
function xr(n) {
|
1212
1498
|
const e = new Promise((t, r) => {
|
1213
1499
|
const i = () => {
|
1214
1500
|
n.removeEventListener("success", s), n.removeEventListener("error", a);
|
1215
1501
|
}, s = () => {
|
1216
|
-
t(
|
1502
|
+
t(C(n.result)), i();
|
1217
1503
|
}, a = () => {
|
1218
1504
|
r(n.error), i();
|
1219
1505
|
};
|
1220
1506
|
n.addEventListener("success", s), n.addEventListener("error", a);
|
1221
1507
|
});
|
1222
1508
|
return e.then((t) => {
|
1223
|
-
t instanceof IDBCursor &&
|
1509
|
+
t instanceof IDBCursor && Zt.set(t, n);
|
1224
1510
|
}).catch(() => {
|
1225
|
-
}),
|
1511
|
+
}), $e.set(e, n), e;
|
1226
1512
|
}
|
1227
|
-
function
|
1513
|
+
function Hr(n) {
|
1228
1514
|
if (Le.has(n))
|
1229
1515
|
return;
|
1230
1516
|
const e = new Promise((t, r) => {
|
@@ -1249,7 +1535,7 @@ let Ue = {
|
|
1249
1535
|
if (e === "store")
|
1250
1536
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
1251
1537
|
}
|
1252
|
-
return
|
1538
|
+
return C(n[e]);
|
1253
1539
|
},
|
1254
1540
|
set(n, e, t) {
|
1255
1541
|
return n[e] = t, !0;
|
@@ -1258,35 +1544,35 @@ let Ue = {
|
|
1258
1544
|
return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
|
1259
1545
|
}
|
1260
1546
|
};
|
1261
|
-
function
|
1547
|
+
function jr(n) {
|
1262
1548
|
Ue = n(Ue);
|
1263
1549
|
}
|
1264
|
-
function
|
1550
|
+
function Gr(n) {
|
1265
1551
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
1266
1552
|
const r = n.call(Ae(this), e, ...t);
|
1267
|
-
return Jt.set(r, e.sort ? e.sort() : [e]),
|
1268
|
-
} :
|
1269
|
-
return n.apply(Ae(this), e),
|
1553
|
+
return Jt.set(r, e.sort ? e.sort() : [e]), C(r);
|
1554
|
+
} : Fr().includes(n) ? function(...e) {
|
1555
|
+
return n.apply(Ae(this), e), C(Zt.get(this));
|
1270
1556
|
} : function(...e) {
|
1271
|
-
return
|
1557
|
+
return C(n.apply(Ae(this), e));
|
1272
1558
|
};
|
1273
1559
|
}
|
1274
|
-
function
|
1275
|
-
return typeof n == "function" ?
|
1560
|
+
function Vr(n) {
|
1561
|
+
return typeof n == "function" ? Gr(n) : (n instanceof IDBTransaction && Hr(n), Ur(n, Br()) ? new Proxy(n, Ue) : n);
|
1276
1562
|
}
|
1277
|
-
function
|
1563
|
+
function C(n) {
|
1278
1564
|
if (n instanceof IDBRequest)
|
1279
|
-
return
|
1565
|
+
return xr(n);
|
1280
1566
|
if (Se.has(n))
|
1281
1567
|
return Se.get(n);
|
1282
|
-
const e =
|
1283
|
-
return e !== n && (Se.set(n, e),
|
1568
|
+
const e = Vr(n);
|
1569
|
+
return e !== n && (Se.set(n, e), $e.set(e, n)), e;
|
1284
1570
|
}
|
1285
|
-
const Ae = (n) =>
|
1286
|
-
function
|
1287
|
-
const a = indexedDB.open(n, e), c =
|
1571
|
+
const Ae = (n) => $e.get(n);
|
1572
|
+
function Wr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
1573
|
+
const a = indexedDB.open(n, e), c = C(a);
|
1288
1574
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
1289
|
-
r(
|
1575
|
+
r(C(a.result), o.oldVersion, o.newVersion, C(a.transaction), o);
|
1290
1576
|
}), t && a.addEventListener("blocked", (o) => t(
|
1291
1577
|
// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
|
1292
1578
|
o.oldVersion,
|
@@ -1297,16 +1583,16 @@ function Nr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
1297
1583
|
}).catch(() => {
|
1298
1584
|
}), c;
|
1299
1585
|
}
|
1300
|
-
const
|
1586
|
+
const zr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Oe = /* @__PURE__ */ new Map();
|
1301
1587
|
function ut(n, e) {
|
1302
1588
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
1303
1589
|
return;
|
1304
1590
|
if (Oe.get(e))
|
1305
1591
|
return Oe.get(e);
|
1306
|
-
const t = e.replace(/FromIndex$/, ""), r = e !== t, i =
|
1592
|
+
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = $r.includes(t);
|
1307
1593
|
if (
|
1308
1594
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
1309
|
-
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i ||
|
1595
|
+
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || zr.includes(t))
|
1310
1596
|
)
|
1311
1597
|
return;
|
1312
1598
|
const s = async function(a, ...c) {
|
@@ -1319,7 +1605,7 @@ function ut(n, e) {
|
|
1319
1605
|
};
|
1320
1606
|
return Oe.set(e, s), s;
|
1321
1607
|
}
|
1322
|
-
|
1608
|
+
jr((n) => ({
|
1323
1609
|
...n,
|
1324
1610
|
get: (e, t, r) => ut(e, t) || n.get(e, t, r),
|
1325
1611
|
has: (e, t) => !!ut(e, t) || n.has(e, t)
|
@@ -1340,7 +1626,7 @@ Ar((n) => ({
|
|
1340
1626
|
* See the License for the specific language governing permissions and
|
1341
1627
|
* limitations under the License.
|
1342
1628
|
*/
|
1343
|
-
class
|
1629
|
+
class Zr {
|
1344
1630
|
constructor(e) {
|
1345
1631
|
this.container = e;
|
1346
1632
|
}
|
@@ -1348,7 +1634,7 @@ class Mr {
|
|
1348
1634
|
// auth token refresh, and installations will send this string.
|
1349
1635
|
getPlatformInfoString() {
|
1350
1636
|
return this.container.getProviders().map((t) => {
|
1351
|
-
if (
|
1637
|
+
if (Jr(t)) {
|
1352
1638
|
const r = t.getImmediate();
|
1353
1639
|
return `${r.library}/${r.version}`;
|
1354
1640
|
} else
|
@@ -1356,7 +1642,7 @@ class Mr {
|
|
1356
1642
|
}).filter((t) => t).join(" ");
|
1357
1643
|
}
|
1358
1644
|
}
|
1359
|
-
function
|
1645
|
+
function Jr(n) {
|
1360
1646
|
const e = n.getComponent();
|
1361
1647
|
return (e == null ? void 0 : e.type) === "VERSION";
|
1362
1648
|
}
|
@@ -1377,7 +1663,7 @@ const Be = "@firebase/app", ht = "0.10.13";
|
|
1377
1663
|
* See the License for the specific language governing permissions and
|
1378
1664
|
* limitations under the License.
|
1379
1665
|
*/
|
1380
|
-
const T = new
|
1666
|
+
const T = new $t("@firebase/app"), Yr = "@firebase/app-compat", Xr = "@firebase/analytics-compat", Kr = "@firebase/analytics", qr = "@firebase/app-check-compat", Qr = "@firebase/app-check", ei = "@firebase/auth", ti = "@firebase/auth-compat", ni = "@firebase/database", ri = "@firebase/data-connect", ii = "@firebase/database-compat", si = "@firebase/functions", ai = "@firebase/functions-compat", oi = "@firebase/installations", ci = "@firebase/installations-compat", li = "@firebase/messaging", di = "@firebase/messaging-compat", ui = "@firebase/performance", hi = "@firebase/performance-compat", pi = "@firebase/remote-config", mi = "@firebase/remote-config-compat", fi = "@firebase/storage", _i = "@firebase/storage-compat", gi = "@firebase/firestore", vi = "@firebase/vertexai-preview", Ii = "@firebase/firestore-compat", bi = "firebase", yi = "10.14.1";
|
1381
1667
|
/**
|
1382
1668
|
* @license
|
1383
1669
|
* Copyright 2019 Google LLC
|
@@ -1394,35 +1680,35 @@ const T = new Zt("@firebase/app"), Ur = "@firebase/app-compat", Br = "@firebase/
|
|
1394
1680
|
* See the License for the specific language governing permissions and
|
1395
1681
|
* limitations under the License.
|
1396
1682
|
*/
|
1397
|
-
const Fe = "[DEFAULT]",
|
1683
|
+
const Fe = "[DEFAULT]", Ei = {
|
1398
1684
|
[Be]: "fire-core",
|
1399
|
-
[
|
1400
|
-
[
|
1401
|
-
[
|
1402
|
-
[
|
1403
|
-
[
|
1404
|
-
[
|
1405
|
-
[
|
1406
|
-
[
|
1407
|
-
[
|
1408
|
-
[
|
1409
|
-
[
|
1410
|
-
[
|
1411
|
-
[
|
1412
|
-
[
|
1413
|
-
[
|
1414
|
-
[
|
1415
|
-
[
|
1416
|
-
[
|
1417
|
-
[
|
1418
|
-
[
|
1419
|
-
[
|
1420
|
-
[
|
1421
|
-
[
|
1422
|
-
[
|
1423
|
-
[
|
1685
|
+
[Yr]: "fire-core-compat",
|
1686
|
+
[Kr]: "fire-analytics",
|
1687
|
+
[Xr]: "fire-analytics-compat",
|
1688
|
+
[Qr]: "fire-app-check",
|
1689
|
+
[qr]: "fire-app-check-compat",
|
1690
|
+
[ei]: "fire-auth",
|
1691
|
+
[ti]: "fire-auth-compat",
|
1692
|
+
[ni]: "fire-rtdb",
|
1693
|
+
[ri]: "fire-data-connect",
|
1694
|
+
[ii]: "fire-rtdb-compat",
|
1695
|
+
[si]: "fire-fn",
|
1696
|
+
[ai]: "fire-fn-compat",
|
1697
|
+
[oi]: "fire-iid",
|
1698
|
+
[ci]: "fire-iid-compat",
|
1699
|
+
[li]: "fire-fcm",
|
1700
|
+
[di]: "fire-fcm-compat",
|
1701
|
+
[ui]: "fire-perf",
|
1702
|
+
[hi]: "fire-perf-compat",
|
1703
|
+
[pi]: "fire-rc",
|
1704
|
+
[mi]: "fire-rc-compat",
|
1705
|
+
[fi]: "fire-gcs",
|
1706
|
+
[_i]: "fire-gcs-compat",
|
1707
|
+
[gi]: "fire-fst",
|
1708
|
+
[Ii]: "fire-fst-compat",
|
1709
|
+
[vi]: "fire-vertex",
|
1424
1710
|
"fire-js": "fire-js",
|
1425
|
-
[
|
1711
|
+
[bi]: "fire-js-all"
|
1426
1712
|
};
|
1427
1713
|
/**
|
1428
1714
|
* @license
|
@@ -1440,7 +1726,7 @@ const Fe = "[DEFAULT]", li = {
|
|
1440
1726
|
* See the License for the specific language governing permissions and
|
1441
1727
|
* limitations under the License.
|
1442
1728
|
*/
|
1443
|
-
const he = /* @__PURE__ */ new Map(),
|
1729
|
+
const he = /* @__PURE__ */ new Map(), Ti = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ new Map();
|
1444
1730
|
function pt(n, e) {
|
1445
1731
|
try {
|
1446
1732
|
n.container.addComponent(e);
|
@@ -1450,12 +1736,12 @@ function pt(n, e) {
|
|
1450
1736
|
}
|
1451
1737
|
function Y(n) {
|
1452
1738
|
const e = n.name;
|
1453
|
-
if (
|
1739
|
+
if (xe.has(e))
|
1454
1740
|
return T.debug(`There were multiple attempts to register component ${e}.`), !1;
|
1455
|
-
|
1741
|
+
xe.set(e, n);
|
1456
1742
|
for (const t of he.values())
|
1457
1743
|
pt(t, n);
|
1458
|
-
for (const t of
|
1744
|
+
for (const t of Ti.values())
|
1459
1745
|
pt(t, n);
|
1460
1746
|
return !0;
|
1461
1747
|
}
|
@@ -1482,7 +1768,7 @@ function I(n) {
|
|
1482
1768
|
* See the License for the specific language governing permissions and
|
1483
1769
|
* limitations under the License.
|
1484
1770
|
*/
|
1485
|
-
const
|
1771
|
+
const wi = {
|
1486
1772
|
"no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
1487
1773
|
"bad-app-name": "Illegal App name: '{$appName}'",
|
1488
1774
|
"duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
|
@@ -1497,7 +1783,7 @@ const ui = {
|
|
1497
1783
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
1498
1784
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
1499
1785
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
1500
|
-
}, D = new q("app", "Firebase",
|
1786
|
+
}, D = new q("app", "Firebase", wi);
|
1501
1787
|
/**
|
1502
1788
|
* @license
|
1503
1789
|
* Copyright 2019 Google LLC
|
@@ -1514,7 +1800,7 @@ const ui = {
|
|
1514
1800
|
* See the License for the specific language governing permissions and
|
1515
1801
|
* limitations under the License.
|
1516
1802
|
*/
|
1517
|
-
class
|
1803
|
+
class ki {
|
1518
1804
|
constructor(e, t, r) {
|
1519
1805
|
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(
|
1520
1806
|
"app",
|
@@ -1572,7 +1858,7 @@ class hi {
|
|
1572
1858
|
* See the License for the specific language governing permissions and
|
1573
1859
|
* limitations under the License.
|
1574
1860
|
*/
|
1575
|
-
const ee =
|
1861
|
+
const ee = yi;
|
1576
1862
|
function Xt(n, e = {}) {
|
1577
1863
|
let t = n;
|
1578
1864
|
typeof e != "object" && (e = { name: e });
|
@@ -1592,13 +1878,13 @@ function Xt(n, e = {}) {
|
|
1592
1878
|
return s;
|
1593
1879
|
throw D.create("duplicate-app", { appName: i });
|
1594
1880
|
}
|
1595
|
-
const a = new
|
1596
|
-
for (const o of
|
1881
|
+
const a = new Cr(i);
|
1882
|
+
for (const o of xe.values())
|
1597
1883
|
a.addComponent(o);
|
1598
|
-
const c = new
|
1884
|
+
const c = new ki(t, r, a);
|
1599
1885
|
return he.set(i, c), c;
|
1600
1886
|
}
|
1601
|
-
function
|
1887
|
+
function Ri(n = Fe) {
|
1602
1888
|
const e = he.get(n);
|
1603
1889
|
if (!e && n === Fe && Wt())
|
1604
1890
|
return Xt();
|
@@ -1606,9 +1892,9 @@ function pi(n = Fe) {
|
|
1606
1892
|
throw D.create("no-app", { appName: n });
|
1607
1893
|
return e;
|
1608
1894
|
}
|
1609
|
-
function
|
1895
|
+
function H(n, e, t) {
|
1610
1896
|
var r;
|
1611
|
-
let i = (r =
|
1897
|
+
let i = (r = Ei[n]) !== null && r !== void 0 ? r : n;
|
1612
1898
|
t && (i += `-${t}`);
|
1613
1899
|
const s = i.match(/\s|\//), a = e.match(/\s|\//);
|
1614
1900
|
if (s || a) {
|
@@ -1641,10 +1927,10 @@ function x(n, e, t) {
|
|
1641
1927
|
* See the License for the specific language governing permissions and
|
1642
1928
|
* limitations under the License.
|
1643
1929
|
*/
|
1644
|
-
const
|
1645
|
-
let
|
1930
|
+
const Si = "firebase-heartbeat-database", Ai = 1, X = "firebase-heartbeat-store";
|
1931
|
+
let Ne = null;
|
1646
1932
|
function Kt() {
|
1647
|
-
return
|
1933
|
+
return Ne || (Ne = Wr(Si, Ai, {
|
1648
1934
|
upgrade: (n, e) => {
|
1649
1935
|
switch (e) {
|
1650
1936
|
case 0:
|
@@ -1659,9 +1945,9 @@ function Kt() {
|
|
1659
1945
|
throw D.create("idb-open", {
|
1660
1946
|
originalErrorMessage: n.message
|
1661
1947
|
});
|
1662
|
-
})),
|
1948
|
+
})), Ne;
|
1663
1949
|
}
|
1664
|
-
async function
|
1950
|
+
async function Oi(n) {
|
1665
1951
|
try {
|
1666
1952
|
const t = (await Kt()).transaction(X), r = await t.objectStore(X).get(qt(n));
|
1667
1953
|
return await t.done, r;
|
@@ -1676,7 +1962,7 @@ async function _i(n) {
|
|
1676
1962
|
}
|
1677
1963
|
}
|
1678
1964
|
}
|
1679
|
-
async function
|
1965
|
+
async function mt(n, e) {
|
1680
1966
|
try {
|
1681
1967
|
const r = (await Kt()).transaction(X, "readwrite");
|
1682
1968
|
await r.objectStore(X).put(e, qt(n)), await r.done;
|
@@ -1710,12 +1996,12 @@ function qt(n) {
|
|
1710
1996
|
* See the License for the specific language governing permissions and
|
1711
1997
|
* limitations under the License.
|
1712
1998
|
*/
|
1713
|
-
const
|
1714
|
-
class
|
1999
|
+
const Ni = 1024, Ci = 30 * 24 * 60 * 60 * 1e3;
|
2000
|
+
class Di {
|
1715
2001
|
constructor(e) {
|
1716
2002
|
this.container = e, this._heartbeatsCache = null;
|
1717
2003
|
const t = this.container.getProvider("app").getImmediate();
|
1718
|
-
this._storage = new
|
2004
|
+
this._storage = new Mi(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
|
1719
2005
|
}
|
1720
2006
|
/**
|
1721
2007
|
* Called to report a heartbeat. The function will generate
|
@@ -1727,10 +2013,10 @@ class Ii {
|
|
1727
2013
|
async triggerHeartbeat() {
|
1728
2014
|
var e, t;
|
1729
2015
|
try {
|
1730
|
-
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s =
|
2016
|
+
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = ft();
|
1731
2017
|
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) => {
|
1732
2018
|
const c = new Date(a.date).valueOf();
|
1733
|
-
return Date.now() - c <=
|
2019
|
+
return Date.now() - c <= Ci;
|
1734
2020
|
}), this._storage.overwrite(this._heartbeatsCache));
|
1735
2021
|
} catch (r) {
|
1736
2022
|
T.warn(r);
|
@@ -1748,17 +2034,17 @@ class Ii {
|
|
1748
2034
|
try {
|
1749
2035
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
1750
2036
|
return "";
|
1751
|
-
const t =
|
2037
|
+
const t = ft(), { heartbeatsToSend: r, unsentEntries: i } = Pi(this._heartbeatsCache.heartbeats), s = de(JSON.stringify({ version: 2, heartbeats: r }));
|
1752
2038
|
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;
|
1753
2039
|
} catch (t) {
|
1754
2040
|
return T.warn(t), "";
|
1755
2041
|
}
|
1756
2042
|
}
|
1757
2043
|
}
|
1758
|
-
function
|
2044
|
+
function ft() {
|
1759
2045
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
1760
2046
|
}
|
1761
|
-
function
|
2047
|
+
function Pi(n, e = Ni) {
|
1762
2048
|
const t = [];
|
1763
2049
|
let r = n.slice();
|
1764
2050
|
for (const i of n) {
|
@@ -1782,19 +2068,19 @@ function bi(n, e = gi) {
|
|
1782
2068
|
unsentEntries: r
|
1783
2069
|
};
|
1784
2070
|
}
|
1785
|
-
class
|
2071
|
+
class Mi {
|
1786
2072
|
constructor(e) {
|
1787
2073
|
this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
1788
2074
|
}
|
1789
2075
|
async runIndexedDBEnvironmentCheck() {
|
1790
|
-
return
|
2076
|
+
return Ir() ? br().then(() => !0).catch(() => !1) : !1;
|
1791
2077
|
}
|
1792
2078
|
/**
|
1793
2079
|
* Read all heartbeats.
|
1794
2080
|
*/
|
1795
2081
|
async read() {
|
1796
2082
|
if (await this._canUseIndexedDBPromise) {
|
1797
|
-
const t = await
|
2083
|
+
const t = await Oi(this.app);
|
1798
2084
|
return t != null && t.heartbeats ? t : { heartbeats: [] };
|
1799
2085
|
} else
|
1800
2086
|
return { heartbeats: [] };
|
@@ -1804,7 +2090,7 @@ class yi {
|
|
1804
2090
|
var t;
|
1805
2091
|
if (await this._canUseIndexedDBPromise) {
|
1806
2092
|
const i = await this.read();
|
1807
|
-
return
|
2093
|
+
return mt(this.app, {
|
1808
2094
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
1809
2095
|
heartbeats: e.heartbeats
|
1810
2096
|
});
|
@@ -1816,7 +2102,7 @@ class yi {
|
|
1816
2102
|
var t;
|
1817
2103
|
if (await this._canUseIndexedDBPromise) {
|
1818
2104
|
const i = await this.read();
|
1819
|
-
return
|
2105
|
+
return mt(this.app, {
|
1820
2106
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
1821
2107
|
heartbeats: [
|
1822
2108
|
...i.heartbeats,
|
@@ -1849,21 +2135,21 @@ function _t(n) {
|
|
1849
2135
|
* See the License for the specific language governing permissions and
|
1850
2136
|
* limitations under the License.
|
1851
2137
|
*/
|
1852
|
-
function
|
2138
|
+
function Li(n) {
|
1853
2139
|
Y(new W(
|
1854
2140
|
"platform-logger",
|
1855
|
-
(e) => new
|
2141
|
+
(e) => new Zr(e),
|
1856
2142
|
"PRIVATE"
|
1857
2143
|
/* ComponentType.PRIVATE */
|
1858
2144
|
)), Y(new W(
|
1859
2145
|
"heartbeat",
|
1860
|
-
(e) => new
|
2146
|
+
(e) => new Di(e),
|
1861
2147
|
"PRIVATE"
|
1862
2148
|
/* ComponentType.PRIVATE */
|
1863
|
-
)),
|
2149
|
+
)), H(Be, ht, n), H(Be, ht, "esm2017"), H("fire-js", "");
|
1864
2150
|
}
|
1865
|
-
|
1866
|
-
var
|
2151
|
+
Li("");
|
2152
|
+
var Ui = "firebase", Bi = "10.14.1";
|
1867
2153
|
/**
|
1868
2154
|
* @license
|
1869
2155
|
* Copyright 2020 Google LLC
|
@@ -1880,7 +2166,7 @@ var Ti = "firebase", wi = "10.14.1";
|
|
1880
2166
|
* See the License for the specific language governing permissions and
|
1881
2167
|
* limitations under the License.
|
1882
2168
|
*/
|
1883
|
-
|
2169
|
+
H(Ui, Bi, "app");
|
1884
2170
|
var gt = function() {
|
1885
2171
|
return gt = Object.assign || function(e) {
|
1886
2172
|
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
@@ -1890,7 +2176,7 @@ var gt = function() {
|
|
1890
2176
|
return e;
|
1891
2177
|
}, gt.apply(this, arguments);
|
1892
2178
|
};
|
1893
|
-
function
|
2179
|
+
function Ze(n, e) {
|
1894
2180
|
var t = {};
|
1895
2181
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
1896
2182
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -1903,7 +2189,7 @@ function Qt() {
|
|
1903
2189
|
"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."
|
1904
2190
|
};
|
1905
2191
|
}
|
1906
|
-
const
|
2192
|
+
const Fi = Qt, en = new q("auth", "Firebase", Qt());
|
1907
2193
|
/**
|
1908
2194
|
* @license
|
1909
2195
|
* Copyright 2020 Google LLC
|
@@ -1920,12 +2206,12 @@ const Ri = Qt, en = new q("auth", "Firebase", Qt());
|
|
1920
2206
|
* See the License for the specific language governing permissions and
|
1921
2207
|
* limitations under the License.
|
1922
2208
|
*/
|
1923
|
-
const pe = new
|
1924
|
-
function
|
1925
|
-
pe.logLevel <=
|
2209
|
+
const pe = new $t("@firebase/auth");
|
2210
|
+
function xi(n, ...e) {
|
2211
|
+
pe.logLevel <= p.WARN && pe.warn(`Auth (${ee}): ${n}`, ...e);
|
1926
2212
|
}
|
1927
2213
|
function se(n, ...e) {
|
1928
|
-
pe.logLevel <=
|
2214
|
+
pe.logLevel <= p.ERROR && pe.error(`Auth (${ee}): ${n}`, ...e);
|
1929
2215
|
}
|
1930
2216
|
/**
|
1931
2217
|
* @license
|
@@ -1950,7 +2236,7 @@ function _(n, ...e) {
|
|
1950
2236
|
return Je(n, ...e);
|
1951
2237
|
}
|
1952
2238
|
function tn(n, e, t) {
|
1953
|
-
const r = Object.assign(Object.assign({},
|
2239
|
+
const r = Object.assign(Object.assign({}, Fi()), { [e]: t });
|
1954
2240
|
return new q("auth", "Firebase", r).create(e, {
|
1955
2241
|
appName: n.name
|
1956
2242
|
});
|
@@ -1965,7 +2251,7 @@ function Je(n, ...e) {
|
|
1965
2251
|
}
|
1966
2252
|
return en.create(n, ...e);
|
1967
2253
|
}
|
1968
|
-
function
|
2254
|
+
function u(n, e, ...t) {
|
1969
2255
|
if (!n)
|
1970
2256
|
throw Je(e, ...t);
|
1971
2257
|
}
|
@@ -1973,7 +2259,7 @@ function b(n) {
|
|
1973
2259
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
1974
2260
|
throw se(e), new Error(e);
|
1975
2261
|
}
|
1976
|
-
function
|
2262
|
+
function k(n, e) {
|
1977
2263
|
n || b(e);
|
1978
2264
|
}
|
1979
2265
|
/**
|
@@ -1992,11 +2278,11 @@ function R(n, e) {
|
|
1992
2278
|
* See the License for the specific language governing permissions and
|
1993
2279
|
* limitations under the License.
|
1994
2280
|
*/
|
1995
|
-
function
|
2281
|
+
function He() {
|
1996
2282
|
var n;
|
1997
2283
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
1998
2284
|
}
|
1999
|
-
function
|
2285
|
+
function Hi() {
|
2000
2286
|
return vt() === "http:" || vt() === "https:";
|
2001
2287
|
}
|
2002
2288
|
function vt() {
|
@@ -2019,15 +2305,15 @@ function vt() {
|
|
2019
2305
|
* See the License for the specific language governing permissions and
|
2020
2306
|
* limitations under the License.
|
2021
2307
|
*/
|
2022
|
-
function
|
2308
|
+
function ji() {
|
2023
2309
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
2024
2310
|
// This is especially true for Cordova apps which have unreliable
|
2025
2311
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
2026
2312
|
// installed which overwrites the native navigator.onLine value and
|
2027
2313
|
// defines navigator.connection.
|
2028
|
-
(
|
2314
|
+
(Hi() || _r() || "connection" in navigator) ? navigator.onLine : !0;
|
2029
2315
|
}
|
2030
|
-
function
|
2316
|
+
function Gi() {
|
2031
2317
|
if (typeof navigator > "u")
|
2032
2318
|
return null;
|
2033
2319
|
const n = navigator;
|
@@ -2057,10 +2343,10 @@ function Oi() {
|
|
2057
2343
|
*/
|
2058
2344
|
class te {
|
2059
2345
|
constructor(e, t) {
|
2060
|
-
this.shortDelay = e, this.longDelay = t,
|
2346
|
+
this.shortDelay = e, this.longDelay = t, k(t > e, "Short delay should be less than long delay!"), this.isMobile = mr() || gr();
|
2061
2347
|
}
|
2062
2348
|
get() {
|
2063
|
-
return
|
2349
|
+
return ji() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
2064
2350
|
}
|
2065
2351
|
}
|
2066
2352
|
/**
|
@@ -2080,7 +2366,7 @@ class te {
|
|
2080
2366
|
* limitations under the License.
|
2081
2367
|
*/
|
2082
2368
|
function Ye(n, e) {
|
2083
|
-
|
2369
|
+
k(n.emulator, "Emulator should always be set here");
|
2084
2370
|
const { url: t } = n.emulator;
|
2085
2371
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
2086
2372
|
}
|
@@ -2154,7 +2440,7 @@ class nn {
|
|
2154
2440
|
* See the License for the specific language governing permissions and
|
2155
2441
|
* limitations under the License.
|
2156
2442
|
*/
|
2157
|
-
const
|
2443
|
+
const Vi = {
|
2158
2444
|
// Custom token errors.
|
2159
2445
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
2160
2446
|
// This can only happen if the SDK sends a bad request.
|
@@ -2245,11 +2531,11 @@ const Ci = {
|
|
2245
2531
|
* See the License for the specific language governing permissions and
|
2246
2532
|
* limitations under the License.
|
2247
2533
|
*/
|
2248
|
-
const
|
2534
|
+
const Wi = new te(3e4, 6e4);
|
2249
2535
|
function ve(n, e) {
|
2250
2536
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
2251
2537
|
}
|
2252
|
-
async function
|
2538
|
+
async function $(n, e, t, r, i = {}) {
|
2253
2539
|
return rn(n, i, async () => {
|
2254
2540
|
let s = {}, a = {};
|
2255
2541
|
r && (e === "GET" ? a = r : s = {
|
@@ -2267,14 +2553,14 @@ async function Z(n, e, t, r, i = {}) {
|
|
2267
2553
|
method: e,
|
2268
2554
|
headers: o
|
2269
2555
|
}, s);
|
2270
|
-
return
|
2556
|
+
return fr() || (l.referrerPolicy = "no-referrer"), nn.fetch()(an(n, n.config.apiHost, t, c), l);
|
2271
2557
|
});
|
2272
2558
|
}
|
2273
2559
|
async function rn(n, e, t) {
|
2274
2560
|
n._canInitEmulator = !1;
|
2275
|
-
const r = Object.assign(Object.assign({},
|
2561
|
+
const r = Object.assign(Object.assign({}, Vi), e);
|
2276
2562
|
try {
|
2277
|
-
const i = new
|
2563
|
+
const i = new zi(n), s = await Promise.race([
|
2278
2564
|
t(),
|
2279
2565
|
i.promise
|
2280
2566
|
]);
|
@@ -2292,10 +2578,10 @@ async function rn(n, e, t) {
|
|
2292
2578
|
throw ie(n, "email-already-in-use", a);
|
2293
2579
|
if (o === "USER_DISABLED")
|
2294
2580
|
throw ie(n, "user-disabled", a);
|
2295
|
-
const
|
2581
|
+
const d = r[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
|
2296
2582
|
if (l)
|
2297
|
-
throw tn(n,
|
2298
|
-
w(n,
|
2583
|
+
throw tn(n, d, l);
|
2584
|
+
w(n, d);
|
2299
2585
|
}
|
2300
2586
|
} catch (i) {
|
2301
2587
|
if (i instanceof M)
|
@@ -2304,7 +2590,7 @@ async function rn(n, e, t) {
|
|
2304
2590
|
}
|
2305
2591
|
}
|
2306
2592
|
async function sn(n, e, t, r, i = {}) {
|
2307
|
-
const s = await
|
2593
|
+
const s = await $(n, e, t, r, i);
|
2308
2594
|
return "mfaPendingCredential" in s && w(n, "multi-factor-auth-required", {
|
2309
2595
|
_serverResponse: s
|
2310
2596
|
}), s;
|
@@ -2313,14 +2599,14 @@ function an(n, e, t, r) {
|
|
2313
2599
|
const i = `${e}${t}?${r}`;
|
2314
2600
|
return n.config.emulator ? Ye(n.config, i) : `${n.config.apiScheme}://${i}`;
|
2315
2601
|
}
|
2316
|
-
class
|
2602
|
+
class zi {
|
2317
2603
|
constructor(e) {
|
2318
2604
|
this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
|
2319
2605
|
this.timer = setTimeout(() => r(_(
|
2320
2606
|
this.auth,
|
2321
2607
|
"network-request-failed"
|
2322
2608
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
2323
|
-
)),
|
2609
|
+
)), Wi.get());
|
2324
2610
|
});
|
2325
2611
|
}
|
2326
2612
|
clearNetworkTimeout() {
|
@@ -2351,11 +2637,11 @@ function ie(n, e, t) {
|
|
2351
2637
|
* See the License for the specific language governing permissions and
|
2352
2638
|
* limitations under the License.
|
2353
2639
|
*/
|
2354
|
-
async function
|
2355
|
-
return
|
2640
|
+
async function $i(n, e) {
|
2641
|
+
return $(n, "POST", "/v1/accounts:delete", e);
|
2356
2642
|
}
|
2357
2643
|
async function on(n, e) {
|
2358
|
-
return
|
2644
|
+
return $(n, "POST", "/v1/accounts:lookup", e);
|
2359
2645
|
}
|
2360
2646
|
/**
|
2361
2647
|
* @license
|
@@ -2382,9 +2668,9 @@ function J(n) {
|
|
2382
2668
|
} catch {
|
2383
2669
|
}
|
2384
2670
|
}
|
2385
|
-
async function
|
2671
|
+
async function Zi(n, e = !1) {
|
2386
2672
|
const t = z(n), r = await t.getIdToken(e), i = Xe(r);
|
2387
|
-
|
2673
|
+
u(
|
2388
2674
|
i && i.exp && i.auth_time && i.iat,
|
2389
2675
|
t.auth,
|
2390
2676
|
"internal-error"
|
@@ -2394,14 +2680,14 @@ async function Mi(n, e = !1) {
|
|
2394
2680
|
return {
|
2395
2681
|
claims: i,
|
2396
2682
|
token: r,
|
2397
|
-
authTime: J(
|
2398
|
-
issuedAtTime: J(
|
2399
|
-
expirationTime: J(
|
2683
|
+
authTime: J(Ce(i.auth_time)),
|
2684
|
+
issuedAtTime: J(Ce(i.iat)),
|
2685
|
+
expirationTime: J(Ce(i.exp)),
|
2400
2686
|
signInProvider: a || null,
|
2401
2687
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
2402
2688
|
};
|
2403
2689
|
}
|
2404
|
-
function
|
2690
|
+
function Ce(n) {
|
2405
2691
|
return Number(n) * 1e3;
|
2406
2692
|
}
|
2407
2693
|
function Xe(n) {
|
@@ -2409,7 +2695,7 @@ function Xe(n) {
|
|
2409
2695
|
if (e === void 0 || t === void 0 || r === void 0)
|
2410
2696
|
return se("JWT malformed, contained fewer than 3 sections"), null;
|
2411
2697
|
try {
|
2412
|
-
const i =
|
2698
|
+
const i = Gt(t);
|
2413
2699
|
return i ? JSON.parse(i) : (se("Failed to decode base64 JWT payload"), null);
|
2414
2700
|
} catch (i) {
|
2415
2701
|
return se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
@@ -2417,15 +2703,15 @@ function Xe(n) {
|
|
2417
2703
|
}
|
2418
2704
|
function It(n) {
|
2419
2705
|
const e = Xe(n);
|
2420
|
-
return
|
2706
|
+
return u(
|
2421
2707
|
e,
|
2422
2708
|
"internal-error"
|
2423
2709
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2424
|
-
),
|
2710
|
+
), u(
|
2425
2711
|
typeof e.exp < "u",
|
2426
2712
|
"internal-error"
|
2427
2713
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2428
|
-
),
|
2714
|
+
), u(
|
2429
2715
|
typeof e.iat < "u",
|
2430
2716
|
"internal-error"
|
2431
2717
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -2453,10 +2739,10 @@ async function K(n, e, t = !1) {
|
|
2453
2739
|
try {
|
2454
2740
|
return await e;
|
2455
2741
|
} catch (r) {
|
2456
|
-
throw r instanceof M &&
|
2742
|
+
throw r instanceof M && Ji(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
|
2457
2743
|
}
|
2458
2744
|
}
|
2459
|
-
function
|
2745
|
+
function Ji({ code: n }) {
|
2460
2746
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
2461
2747
|
}
|
2462
2748
|
/**
|
@@ -2475,7 +2761,7 @@ function Li({ code: n }) {
|
|
2475
2761
|
* See the License for the specific language governing permissions and
|
2476
2762
|
* limitations under the License.
|
2477
2763
|
*/
|
2478
|
-
class
|
2764
|
+
class Yi {
|
2479
2765
|
constructor(e) {
|
2480
2766
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
2481
2767
|
}
|
@@ -2537,7 +2823,7 @@ class Ui {
|
|
2537
2823
|
* See the License for the specific language governing permissions and
|
2538
2824
|
* limitations under the License.
|
2539
2825
|
*/
|
2540
|
-
class
|
2826
|
+
class je {
|
2541
2827
|
constructor(e, t) {
|
2542
2828
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
2543
2829
|
}
|
@@ -2570,10 +2856,10 @@ class Ve {
|
|
2570
2856
|
* See the License for the specific language governing permissions and
|
2571
2857
|
* limitations under the License.
|
2572
2858
|
*/
|
2573
|
-
async function
|
2859
|
+
async function me(n) {
|
2574
2860
|
var e;
|
2575
2861
|
const t = n.auth, r = await n.getIdToken(), i = await K(n, on(t, { idToken: r }));
|
2576
|
-
|
2862
|
+
u(
|
2577
2863
|
i == null ? void 0 : i.users.length,
|
2578
2864
|
t,
|
2579
2865
|
"internal-error"
|
@@ -2581,7 +2867,7 @@ async function fe(n) {
|
|
2581
2867
|
);
|
2582
2868
|
const s = i.users[0];
|
2583
2869
|
n._notifyReloadListener(s);
|
2584
|
-
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], c =
|
2870
|
+
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], c = Ki(n.providerData, a), o = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = o ? l : !1, h = {
|
2585
2871
|
uid: s.localId,
|
2586
2872
|
displayName: s.displayName || null,
|
2587
2873
|
photoURL: s.photoUrl || null,
|
@@ -2590,21 +2876,21 @@ async function fe(n) {
|
|
2590
2876
|
phoneNumber: s.phoneNumber || null,
|
2591
2877
|
tenantId: s.tenantId || null,
|
2592
2878
|
providerData: c,
|
2593
|
-
metadata: new
|
2594
|
-
isAnonymous:
|
2879
|
+
metadata: new je(s.createdAt, s.lastLoginAt),
|
2880
|
+
isAnonymous: d
|
2595
2881
|
};
|
2596
|
-
Object.assign(n,
|
2882
|
+
Object.assign(n, h);
|
2597
2883
|
}
|
2598
|
-
async function
|
2884
|
+
async function Xi(n) {
|
2599
2885
|
const e = z(n);
|
2600
|
-
await
|
2886
|
+
await me(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
2601
2887
|
}
|
2602
|
-
function
|
2888
|
+
function Ki(n, e) {
|
2603
2889
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
2604
2890
|
}
|
2605
2891
|
function cn(n) {
|
2606
2892
|
return n.map((e) => {
|
2607
|
-
var { providerId: t } = e, r =
|
2893
|
+
var { providerId: t } = e, r = Ze(e, ["providerId"]);
|
2608
2894
|
return {
|
2609
2895
|
providerId: t,
|
2610
2896
|
uid: r.rawId || "",
|
@@ -2631,7 +2917,7 @@ function cn(n) {
|
|
2631
2917
|
* See the License for the specific language governing permissions and
|
2632
2918
|
* limitations under the License.
|
2633
2919
|
*/
|
2634
|
-
async function
|
2920
|
+
async function qi(n, e) {
|
2635
2921
|
const t = await rn(n, {}, async () => {
|
2636
2922
|
const r = Q({
|
2637
2923
|
grant_type: "refresh_token",
|
@@ -2652,8 +2938,8 @@ async function ji(n, e) {
|
|
2652
2938
|
refreshToken: t.refresh_token
|
2653
2939
|
};
|
2654
2940
|
}
|
2655
|
-
async function
|
2656
|
-
return
|
2941
|
+
async function Qi(n, e) {
|
2942
|
+
return $(n, "POST", "/v2/accounts:revokeToken", ve(n, e));
|
2657
2943
|
}
|
2658
2944
|
/**
|
2659
2945
|
* @license
|
@@ -2671,7 +2957,7 @@ async function xi(n, e) {
|
|
2671
2957
|
* See the License for the specific language governing permissions and
|
2672
2958
|
* limitations under the License.
|
2673
2959
|
*/
|
2674
|
-
class
|
2960
|
+
class j {
|
2675
2961
|
constructor() {
|
2676
2962
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
2677
2963
|
}
|
@@ -2679,15 +2965,15 @@ class V {
|
|
2679
2965
|
return !this.expirationTime || Date.now() > this.expirationTime - 3e4;
|
2680
2966
|
}
|
2681
2967
|
updateFromServerResponse(e) {
|
2682
|
-
|
2968
|
+
u(
|
2683
2969
|
e.idToken,
|
2684
2970
|
"internal-error"
|
2685
2971
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2686
|
-
),
|
2972
|
+
), u(
|
2687
2973
|
typeof e.idToken < "u",
|
2688
2974
|
"internal-error"
|
2689
2975
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2690
|
-
),
|
2976
|
+
), u(
|
2691
2977
|
typeof e.refreshToken < "u",
|
2692
2978
|
"internal-error"
|
2693
2979
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -2696,7 +2982,7 @@ class V {
|
|
2696
2982
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, t);
|
2697
2983
|
}
|
2698
2984
|
updateFromIdToken(e) {
|
2699
|
-
|
2985
|
+
u(
|
2700
2986
|
e.length !== 0,
|
2701
2987
|
"internal-error"
|
2702
2988
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -2705,7 +2991,7 @@ class V {
|
|
2705
2991
|
this.updateTokensAndExpiration(e, null, t);
|
2706
2992
|
}
|
2707
2993
|
async getToken(e, t = !1) {
|
2708
|
-
return !t && this.accessToken && !this.isExpired ? this.accessToken : (
|
2994
|
+
return !t && this.accessToken && !this.isExpired ? this.accessToken : (u(
|
2709
2995
|
this.refreshToken,
|
2710
2996
|
e,
|
2711
2997
|
"user-token-expired"
|
@@ -2716,19 +3002,19 @@ class V {
|
|
2716
3002
|
this.refreshToken = null;
|
2717
3003
|
}
|
2718
3004
|
async refresh(e, t) {
|
2719
|
-
const { accessToken: r, refreshToken: i, expiresIn: s } = await
|
3005
|
+
const { accessToken: r, refreshToken: i, expiresIn: s } = await qi(e, t);
|
2720
3006
|
this.updateTokensAndExpiration(r, i, Number(s));
|
2721
3007
|
}
|
2722
3008
|
updateTokensAndExpiration(e, t, r) {
|
2723
3009
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
|
2724
3010
|
}
|
2725
3011
|
static fromJSON(e, t) {
|
2726
|
-
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new
|
2727
|
-
return r && (
|
3012
|
+
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new j();
|
3013
|
+
return r && (u(typeof r == "string", "internal-error", {
|
2728
3014
|
appName: e
|
2729
|
-
}), a.refreshToken = r), i && (
|
3015
|
+
}), a.refreshToken = r), i && (u(typeof i == "string", "internal-error", {
|
2730
3016
|
appName: e
|
2731
|
-
}), a.accessToken = i), s && (
|
3017
|
+
}), a.accessToken = i), s && (u(typeof s == "number", "internal-error", {
|
2732
3018
|
appName: e
|
2733
3019
|
}), a.expirationTime = s), a;
|
2734
3020
|
}
|
@@ -2743,7 +3029,7 @@ class V {
|
|
2743
3029
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
2744
3030
|
}
|
2745
3031
|
_clone() {
|
2746
|
-
return Object.assign(new
|
3032
|
+
return Object.assign(new j(), this.toJSON());
|
2747
3033
|
}
|
2748
3034
|
_performRefresh() {
|
2749
3035
|
return b("not implemented");
|
@@ -2765,17 +3051,17 @@ class V {
|
|
2765
3051
|
* See the License for the specific language governing permissions and
|
2766
3052
|
* limitations under the License.
|
2767
3053
|
*/
|
2768
|
-
function
|
2769
|
-
|
3054
|
+
function R(n, e) {
|
3055
|
+
u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
|
2770
3056
|
}
|
2771
3057
|
class y {
|
2772
3058
|
constructor(e) {
|
2773
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
2774
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
3059
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = Ze(e, ["uid", "auth", "stsTokenManager"]);
|
3060
|
+
this.providerId = "firebase", this.proactiveRefresh = new Yi(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 je(s.createdAt || void 0, s.lastLoginAt || void 0);
|
2775
3061
|
}
|
2776
3062
|
async getIdToken(e) {
|
2777
3063
|
const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
|
2778
|
-
return
|
3064
|
+
return u(
|
2779
3065
|
t,
|
2780
3066
|
this.auth,
|
2781
3067
|
"internal-error"
|
@@ -2783,13 +3069,13 @@ class y {
|
|
2783
3069
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
2784
3070
|
}
|
2785
3071
|
getIdTokenResult(e) {
|
2786
|
-
return
|
3072
|
+
return Zi(this, e);
|
2787
3073
|
}
|
2788
3074
|
reload() {
|
2789
|
-
return
|
3075
|
+
return Xi(this);
|
2790
3076
|
}
|
2791
3077
|
_assign(e) {
|
2792
|
-
this !== e && (
|
3078
|
+
this !== e && (u(
|
2793
3079
|
this.uid === e.uid,
|
2794
3080
|
this.auth,
|
2795
3081
|
"internal-error"
|
@@ -2801,7 +3087,7 @@ class y {
|
|
2801
3087
|
return t.metadata._copy(this.metadata), t;
|
2802
3088
|
}
|
2803
3089
|
_onReload(e) {
|
2804
|
-
|
3090
|
+
u(
|
2805
3091
|
!this.reloadListener,
|
2806
3092
|
this.auth,
|
2807
3093
|
"internal-error"
|
@@ -2819,13 +3105,13 @@ class y {
|
|
2819
3105
|
}
|
2820
3106
|
async _updateTokensIfNecessary(e, t = !1) {
|
2821
3107
|
let r = !1;
|
2822
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
3108
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await me(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
2823
3109
|
}
|
2824
3110
|
async delete() {
|
2825
3111
|
if (I(this.auth.app))
|
2826
3112
|
return Promise.reject(P(this.auth));
|
2827
3113
|
const e = await this.getIdToken();
|
2828
|
-
return await K(this,
|
3114
|
+
return await K(this, $i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
2829
3115
|
}
|
2830
3116
|
toJSON() {
|
2831
3117
|
return Object.assign(Object.assign({
|
@@ -2852,37 +3138,37 @@ class y {
|
|
2852
3138
|
return this.stsTokenManager.refreshToken || "";
|
2853
3139
|
}
|
2854
3140
|
static _fromJSON(e, t) {
|
2855
|
-
var r, i, s, a, c, o, l,
|
2856
|
-
const
|
2857
|
-
|
3141
|
+
var r, i, s, a, c, o, l, d;
|
3142
|
+
const h = (r = t.displayName) !== null && r !== void 0 ? r : void 0, m = (i = t.email) !== null && i !== void 0 ? i : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, F = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, tt = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, Ee = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, nt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, rt = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: Te, emailVerified: it, isAnonymous: st, providerData: we, stsTokenManager: at } = t;
|
3143
|
+
u(
|
2858
3144
|
Te && at,
|
2859
3145
|
e,
|
2860
3146
|
"internal-error"
|
2861
3147
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2862
3148
|
);
|
2863
|
-
const Pn =
|
2864
|
-
|
3149
|
+
const Pn = j.fromJSON(this.name, at);
|
3150
|
+
u(
|
2865
3151
|
typeof Te == "string",
|
2866
3152
|
e,
|
2867
3153
|
"internal-error"
|
2868
3154
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2869
|
-
),
|
3155
|
+
), R(h, e.name), R(m, e.name), u(
|
2870
3156
|
typeof it == "boolean",
|
2871
3157
|
e,
|
2872
3158
|
"internal-error"
|
2873
3159
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2874
|
-
),
|
3160
|
+
), u(
|
2875
3161
|
typeof st == "boolean",
|
2876
3162
|
e,
|
2877
3163
|
"internal-error"
|
2878
3164
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2879
|
-
),
|
2880
|
-
const
|
3165
|
+
), R(v, e.name), R(F, e.name), R(tt, e.name), R(Ee, e.name), R(nt, e.name), R(rt, e.name);
|
3166
|
+
const ke = new y({
|
2881
3167
|
uid: Te,
|
2882
3168
|
auth: e,
|
2883
3169
|
email: m,
|
2884
3170
|
emailVerified: it,
|
2885
|
-
displayName:
|
3171
|
+
displayName: h,
|
2886
3172
|
isAnonymous: st,
|
2887
3173
|
photoURL: F,
|
2888
3174
|
phoneNumber: v,
|
@@ -2891,7 +3177,7 @@ class y {
|
|
2891
3177
|
createdAt: nt,
|
2892
3178
|
lastLoginAt: rt
|
2893
3179
|
});
|
2894
|
-
return we && Array.isArray(we) && (
|
3180
|
+
return we && Array.isArray(we) && (ke.providerData = we.map((Mn) => Object.assign({}, Mn))), Ee && (ke._redirectEventId = Ee), ke;
|
2895
3181
|
}
|
2896
3182
|
/**
|
2897
3183
|
* Initialize a User from an idToken server response
|
@@ -2899,7 +3185,7 @@ class y {
|
|
2899
3185
|
* @param idTokenResponse
|
2900
3186
|
*/
|
2901
3187
|
static async _fromIdTokenResponse(e, t, r = !1) {
|
2902
|
-
const i = new
|
3188
|
+
const i = new j();
|
2903
3189
|
i.updateFromServerResponse(t);
|
2904
3190
|
const s = new y({
|
2905
3191
|
uid: t.localId,
|
@@ -2907,7 +3193,7 @@ class y {
|
|
2907
3193
|
stsTokenManager: i,
|
2908
3194
|
isAnonymous: r
|
2909
3195
|
});
|
2910
|
-
return await
|
3196
|
+
return await me(s), s;
|
2911
3197
|
}
|
2912
3198
|
/**
|
2913
3199
|
* Initialize a User from an idToken server response
|
@@ -2916,12 +3202,12 @@ class y {
|
|
2916
3202
|
*/
|
2917
3203
|
static async _fromGetAccountInfoResponse(e, t, r) {
|
2918
3204
|
const i = t.users[0];
|
2919
|
-
|
3205
|
+
u(
|
2920
3206
|
i.localId !== void 0,
|
2921
3207
|
"internal-error"
|
2922
3208
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2923
3209
|
);
|
2924
|
-
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new
|
3210
|
+
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new j();
|
2925
3211
|
c.updateFromIdToken(r);
|
2926
3212
|
const o = new y({
|
2927
3213
|
uid: i.localId,
|
@@ -2937,7 +3223,7 @@ class y {
|
|
2937
3223
|
phoneNumber: i.phoneNumber || null,
|
2938
3224
|
tenantId: i.tenantId || null,
|
2939
3225
|
providerData: s,
|
2940
|
-
metadata: new
|
3226
|
+
metadata: new je(i.createdAt, i.lastLoginAt),
|
2941
3227
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
2942
3228
|
};
|
2943
3229
|
return Object.assign(o, l), o;
|
@@ -2961,9 +3247,9 @@ class y {
|
|
2961
3247
|
*/
|
2962
3248
|
const bt = /* @__PURE__ */ new Map();
|
2963
3249
|
function E(n) {
|
2964
|
-
|
3250
|
+
k(n instanceof Function, "Expected a class definition");
|
2965
3251
|
let e = bt.get(n);
|
2966
|
-
return e ? (
|
3252
|
+
return e ? (k(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), bt.set(n, e), e);
|
2967
3253
|
}
|
2968
3254
|
/**
|
2969
3255
|
* @license
|
@@ -3024,7 +3310,7 @@ const yt = ln;
|
|
3024
3310
|
function ae(n, e, t) {
|
3025
3311
|
return `firebase:${n}:${e}:${t}`;
|
3026
3312
|
}
|
3027
|
-
class
|
3313
|
+
class G {
|
3028
3314
|
constructor(e, t, r) {
|
3029
3315
|
this.persistence = e, this.auth = t, this.userKey = r;
|
3030
3316
|
const { config: i, name: s } = this.auth;
|
@@ -3055,7 +3341,7 @@ class H {
|
|
3055
3341
|
}
|
3056
3342
|
static async create(e, t, r = "authUser") {
|
3057
3343
|
if (!t.length)
|
3058
|
-
return new
|
3344
|
+
return new G(E(yt), e, r);
|
3059
3345
|
const i = (await Promise.all(t.map(async (l) => {
|
3060
3346
|
if (await l._isAvailable())
|
3061
3347
|
return l;
|
@@ -3065,22 +3351,22 @@ class H {
|
|
3065
3351
|
let c = null;
|
3066
3352
|
for (const l of t)
|
3067
3353
|
try {
|
3068
|
-
const
|
3069
|
-
if (
|
3070
|
-
const
|
3071
|
-
l !== s && (c =
|
3354
|
+
const d = await l._get(a);
|
3355
|
+
if (d) {
|
3356
|
+
const h = y._fromJSON(e, d);
|
3357
|
+
l !== s && (c = h), s = l;
|
3072
3358
|
break;
|
3073
3359
|
}
|
3074
3360
|
} catch {
|
3075
3361
|
}
|
3076
3362
|
const o = i.filter((l) => l._shouldAllowMigration);
|
3077
|
-
return !s._shouldAllowMigration || !o.length ? new
|
3363
|
+
return !s._shouldAllowMigration || !o.length ? new G(s, e, r) : (s = o[0], c && await s._set(a, c.toJSON()), await Promise.all(t.map(async (l) => {
|
3078
3364
|
if (l !== s)
|
3079
3365
|
try {
|
3080
3366
|
await l._remove(a);
|
3081
3367
|
} catch {
|
3082
3368
|
}
|
3083
|
-
})), new
|
3369
|
+
})), new G(s, e, r));
|
3084
3370
|
}
|
3085
3371
|
}
|
3086
3372
|
/**
|
@@ -3113,7 +3399,7 @@ function Et(n) {
|
|
3113
3399
|
return "Firefox";
|
3114
3400
|
if (e.includes("silk/"))
|
3115
3401
|
return "Silk";
|
3116
|
-
if (
|
3402
|
+
if (fn(e))
|
3117
3403
|
return "Blackberry";
|
3118
3404
|
if (_n(e))
|
3119
3405
|
return "Webos";
|
@@ -3121,7 +3407,7 @@ function Et(n) {
|
|
3121
3407
|
return "Safari";
|
3122
3408
|
if ((e.includes("chrome/") || hn(e)) && !e.includes("edge/"))
|
3123
3409
|
return "Chrome";
|
3124
|
-
if (
|
3410
|
+
if (mn(e))
|
3125
3411
|
return "Android";
|
3126
3412
|
{
|
3127
3413
|
const t = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, r = n.match(t);
|
@@ -3143,10 +3429,10 @@ function hn(n = f()) {
|
|
3143
3429
|
function pn(n = f()) {
|
3144
3430
|
return /iemobile/i.test(n);
|
3145
3431
|
}
|
3146
|
-
function
|
3432
|
+
function mn(n = f()) {
|
3147
3433
|
return /android/i.test(n);
|
3148
3434
|
}
|
3149
|
-
function
|
3435
|
+
function fn(n = f()) {
|
3150
3436
|
return /blackberry/i.test(n);
|
3151
3437
|
}
|
3152
3438
|
function _n(n = f()) {
|
@@ -3155,15 +3441,15 @@ function _n(n = f()) {
|
|
3155
3441
|
function Ke(n = f()) {
|
3156
3442
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
3157
3443
|
}
|
3158
|
-
function
|
3444
|
+
function es(n = f()) {
|
3159
3445
|
var e;
|
3160
3446
|
return Ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
3161
3447
|
}
|
3162
|
-
function
|
3163
|
-
return
|
3448
|
+
function ts() {
|
3449
|
+
return vr() && document.documentMode === 10;
|
3164
3450
|
}
|
3165
3451
|
function gn(n = f()) {
|
3166
|
-
return Ke(n) ||
|
3452
|
+
return Ke(n) || mn(n) || _n(n) || fn(n) || /windows phone/i.test(n) || pn(n);
|
3167
3453
|
}
|
3168
3454
|
/**
|
3169
3455
|
* @license
|
@@ -3212,7 +3498,7 @@ function vn(n, e = []) {
|
|
3212
3498
|
* See the License for the specific language governing permissions and
|
3213
3499
|
* limitations under the License.
|
3214
3500
|
*/
|
3215
|
-
class
|
3501
|
+
class ns {
|
3216
3502
|
constructor(e) {
|
3217
3503
|
this.auth = e, this.queue = [];
|
3218
3504
|
}
|
@@ -3267,8 +3553,8 @@ class Gi {
|
|
3267
3553
|
* See the License for the specific language governing permissions and
|
3268
3554
|
* limitations under the License.
|
3269
3555
|
*/
|
3270
|
-
async function
|
3271
|
-
return
|
3556
|
+
async function rs(n, e = {}) {
|
3557
|
+
return $(n, "GET", "/v2/passwordPolicy", ve(n, e));
|
3272
3558
|
}
|
3273
3559
|
/**
|
3274
3560
|
* @license
|
@@ -3286,12 +3572,12 @@ async function Wi(n, e = {}) {
|
|
3286
3572
|
* See the License for the specific language governing permissions and
|
3287
3573
|
* limitations under the License.
|
3288
3574
|
*/
|
3289
|
-
const
|
3290
|
-
class
|
3575
|
+
const is = 6;
|
3576
|
+
class ss {
|
3291
3577
|
constructor(e) {
|
3292
3578
|
var t, r, i, s;
|
3293
3579
|
const a = e.customStrengthOptions;
|
3294
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t :
|
3580
|
+
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t : is, 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;
|
3295
3581
|
}
|
3296
3582
|
validatePassword(e) {
|
3297
3583
|
var t, r, i, s, a, c;
|
@@ -3374,14 +3660,14 @@ class Zi {
|
|
3374
3660
|
* See the License for the specific language governing permissions and
|
3375
3661
|
* limitations under the License.
|
3376
3662
|
*/
|
3377
|
-
class
|
3663
|
+
class as {
|
3378
3664
|
constructor(e, t, r, i) {
|
3379
|
-
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 Tt(this), this.idTokenSubscription = new Tt(this), this.beforeStateQueue = new
|
3665
|
+
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 Tt(this), this.idTokenSubscription = new Tt(this), this.beforeStateQueue = new ns(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 = en, 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;
|
3380
3666
|
}
|
3381
3667
|
_initializeWithPersistence(e, t) {
|
3382
3668
|
return t && (this._popupRedirectResolver = E(t)), this._initializationPromise = this.queue(async () => {
|
3383
3669
|
var r, i;
|
3384
|
-
if (!this._deleted && (this.persistenceManager = await
|
3670
|
+
if (!this._deleted && (this.persistenceManager = await G.create(this, e), !this._deleted)) {
|
3385
3671
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
3386
3672
|
try {
|
3387
3673
|
await this._popupRedirectResolver._initialize(this);
|
@@ -3444,7 +3730,7 @@ class $i {
|
|
3444
3730
|
}
|
3445
3731
|
return i ? this.reloadAndSetCurrentUserOrClear(i) : this.directlySetCurrentUser(null);
|
3446
3732
|
}
|
3447
|
-
return
|
3733
|
+
return u(
|
3448
3734
|
this._popupRedirectResolver,
|
3449
3735
|
this,
|
3450
3736
|
"argument-error"
|
@@ -3462,7 +3748,7 @@ class $i {
|
|
3462
3748
|
}
|
3463
3749
|
async reloadAndSetCurrentUserOrClear(e) {
|
3464
3750
|
try {
|
3465
|
-
await
|
3751
|
+
await me(e);
|
3466
3752
|
} catch (t) {
|
3467
3753
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
3468
3754
|
return this.directlySetCurrentUser(null);
|
@@ -3470,7 +3756,7 @@ class $i {
|
|
3470
3756
|
return this.directlySetCurrentUser(e);
|
3471
3757
|
}
|
3472
3758
|
useDeviceLanguage() {
|
3473
|
-
this.languageCode =
|
3759
|
+
this.languageCode = Gi();
|
3474
3760
|
}
|
3475
3761
|
async _delete() {
|
3476
3762
|
this._deleted = !0;
|
@@ -3479,7 +3765,7 @@ class $i {
|
|
3479
3765
|
if (I(this.app))
|
3480
3766
|
return Promise.reject(P(this));
|
3481
3767
|
const t = e ? z(e) : null;
|
3482
|
-
return t &&
|
3768
|
+
return t && u(
|
3483
3769
|
t.auth.config.apiKey === this.config.apiKey,
|
3484
3770
|
this,
|
3485
3771
|
"invalid-user-token"
|
@@ -3488,7 +3774,7 @@ class $i {
|
|
3488
3774
|
}
|
3489
3775
|
async _updateCurrentUser(e, t = !1) {
|
3490
3776
|
if (!this._deleted)
|
3491
|
-
return e &&
|
3777
|
+
return e && u(
|
3492
3778
|
this.tenantId === e.tenantId,
|
3493
3779
|
this,
|
3494
3780
|
"tenant-id-mismatch"
|
@@ -3521,7 +3807,7 @@ class $i {
|
|
3521
3807
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
3522
3808
|
}
|
3523
3809
|
async _updatePasswordPolicy() {
|
3524
|
-
const e = await
|
3810
|
+
const e = await rs(this), t = new ss(e);
|
3525
3811
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
3526
3812
|
}
|
3527
3813
|
_getPersistence() {
|
@@ -3561,7 +3847,7 @@ class $i {
|
|
3561
3847
|
token: e,
|
3562
3848
|
idToken: t
|
3563
3849
|
};
|
3564
|
-
this.tenantId != null && (r.tenantId = this.tenantId), await
|
3850
|
+
this.tenantId != null && (r.tenantId = this.tenantId), await Qi(this, r);
|
3565
3851
|
}
|
3566
3852
|
}
|
3567
3853
|
toJSON() {
|
@@ -3580,12 +3866,12 @@ class $i {
|
|
3580
3866
|
async getOrInitRedirectPersistenceManager(e) {
|
3581
3867
|
if (!this.redirectPersistenceManager) {
|
3582
3868
|
const t = e && E(e) || this._popupRedirectResolver;
|
3583
|
-
|
3869
|
+
u(
|
3584
3870
|
t,
|
3585
3871
|
this,
|
3586
3872
|
"argument-error"
|
3587
3873
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
3588
|
-
), this.redirectPersistenceManager = await
|
3874
|
+
), this.redirectPersistenceManager = await G.create(
|
3589
3875
|
this,
|
3590
3876
|
[E(t._redirectPersistence)],
|
3591
3877
|
"redirectUser"
|
@@ -3635,7 +3921,7 @@ class $i {
|
|
3635
3921
|
const s = typeof t == "function" ? t : t.next.bind(t);
|
3636
3922
|
let a = !1;
|
3637
3923
|
const c = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
3638
|
-
if (
|
3924
|
+
if (u(
|
3639
3925
|
c,
|
3640
3926
|
this,
|
3641
3927
|
"internal-error"
|
@@ -3666,7 +3952,7 @@ class $i {
|
|
3666
3952
|
return this.operations = this.operations.then(e, e), this.operations;
|
3667
3953
|
}
|
3668
3954
|
get assertedPersistence() {
|
3669
|
-
return
|
3955
|
+
return u(
|
3670
3956
|
this.persistenceManager,
|
3671
3957
|
this,
|
3672
3958
|
"internal-error"
|
@@ -3704,7 +3990,7 @@ class $i {
|
|
3704
3990
|
async _getAppCheckToken() {
|
3705
3991
|
var e;
|
3706
3992
|
const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
3707
|
-
return t != null && t.error &&
|
3993
|
+
return t != null && t.error && xi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
3708
3994
|
}
|
3709
3995
|
}
|
3710
3996
|
function Ie(n) {
|
@@ -3712,10 +3998,10 @@ function Ie(n) {
|
|
3712
3998
|
}
|
3713
3999
|
class Tt {
|
3714
4000
|
constructor(e) {
|
3715
|
-
this.auth = e, this.observer = null, this.addObserver =
|
4001
|
+
this.auth = e, this.observer = null, this.addObserver = kr((t) => this.observer = t);
|
3716
4002
|
}
|
3717
4003
|
get next() {
|
3718
|
-
return
|
4004
|
+
return u(
|
3719
4005
|
this.observer,
|
3720
4006
|
this.auth,
|
3721
4007
|
"internal-error"
|
@@ -3747,16 +4033,16 @@ let qe = {
|
|
3747
4033
|
recaptchaEnterpriseScript: "",
|
3748
4034
|
gapiScript: ""
|
3749
4035
|
};
|
3750
|
-
function
|
4036
|
+
function os(n) {
|
3751
4037
|
qe = n;
|
3752
4038
|
}
|
3753
|
-
function
|
4039
|
+
function cs(n) {
|
3754
4040
|
return qe.loadJS(n);
|
3755
4041
|
}
|
3756
|
-
function
|
4042
|
+
function ls() {
|
3757
4043
|
return qe.gapiScript;
|
3758
4044
|
}
|
3759
|
-
function
|
4045
|
+
function ds(n) {
|
3760
4046
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
3761
4047
|
}
|
3762
4048
|
/**
|
@@ -3775,7 +4061,7 @@ function Ki(n) {
|
|
3775
4061
|
* See the License for the specific language governing permissions and
|
3776
4062
|
* limitations under the License.
|
3777
4063
|
*/
|
3778
|
-
function
|
4064
|
+
function us(n, e) {
|
3779
4065
|
const t = Yt(n, "auth");
|
3780
4066
|
if (t.isInitialized()) {
|
3781
4067
|
const i = t.getImmediate(), s = t.getOptions();
|
@@ -3789,36 +4075,36 @@ function qi(n, e) {
|
|
3789
4075
|
}
|
3790
4076
|
return t.initialize({ options: e });
|
3791
4077
|
}
|
3792
|
-
function
|
4078
|
+
function hs(n, e) {
|
3793
4079
|
const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(E);
|
3794
4080
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
3795
4081
|
}
|
3796
|
-
function
|
4082
|
+
function ps(n, e, t) {
|
3797
4083
|
const r = Ie(n);
|
3798
|
-
|
4084
|
+
u(
|
3799
4085
|
r._canInitEmulator,
|
3800
4086
|
r,
|
3801
4087
|
"emulator-config-failed"
|
3802
4088
|
/* AuthErrorCode.EMULATOR_CONFIG_FAILED */
|
3803
|
-
),
|
4089
|
+
), u(
|
3804
4090
|
/^https?:\/\//.test(e),
|
3805
4091
|
r,
|
3806
4092
|
"invalid-emulator-scheme"
|
3807
4093
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
3808
4094
|
);
|
3809
|
-
const i = !1, s = In(e), { host: a, port: c } =
|
4095
|
+
const i = !1, s = In(e), { host: a, port: c } = ms(e), o = c === null ? "" : `:${c}`;
|
3810
4096
|
r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
3811
4097
|
host: a,
|
3812
4098
|
port: c,
|
3813
4099
|
protocol: s.replace(":", ""),
|
3814
4100
|
options: Object.freeze({ disableWarnings: i })
|
3815
|
-
}),
|
4101
|
+
}), fs();
|
3816
4102
|
}
|
3817
4103
|
function In(n) {
|
3818
4104
|
const e = n.indexOf(":");
|
3819
4105
|
return e < 0 ? "" : n.substr(0, e + 1);
|
3820
4106
|
}
|
3821
|
-
function
|
4107
|
+
function ms(n) {
|
3822
4108
|
const e = In(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
3823
4109
|
if (!t)
|
3824
4110
|
return { host: "", port: null };
|
@@ -3837,7 +4123,7 @@ function wt(n) {
|
|
3837
4123
|
const e = Number(n);
|
3838
4124
|
return isNaN(e) ? null : e;
|
3839
4125
|
}
|
3840
|
-
function
|
4126
|
+
function fs() {
|
3841
4127
|
function n() {
|
3842
4128
|
const e = document.createElement("p"), t = e.style;
|
3843
4129
|
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);
|
@@ -3902,7 +4188,7 @@ class bn {
|
|
3902
4188
|
* See the License for the specific language governing permissions and
|
3903
4189
|
* limitations under the License.
|
3904
4190
|
*/
|
3905
|
-
async function
|
4191
|
+
async function V(n, e) {
|
3906
4192
|
return sn(n, "POST", "/v1/accounts:signInWithIdp", ve(n, e));
|
3907
4193
|
}
|
3908
4194
|
/**
|
@@ -3921,7 +4207,7 @@ async function G(n, e) {
|
|
3921
4207
|
* See the License for the specific language governing permissions and
|
3922
4208
|
* limitations under the License.
|
3923
4209
|
*/
|
3924
|
-
const
|
4210
|
+
const _s = "http://localhost";
|
3925
4211
|
class U extends bn {
|
3926
4212
|
constructor() {
|
3927
4213
|
super(...arguments), this.pendingToken = null;
|
@@ -3956,7 +4242,7 @@ class U extends bn {
|
|
3956
4242
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
3957
4243
|
*/
|
3958
4244
|
static fromJSON(e) {
|
3959
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
4245
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = Ze(t, ["providerId", "signInMethod"]);
|
3960
4246
|
if (!r || !i)
|
3961
4247
|
return null;
|
3962
4248
|
const a = new U(r, i);
|
@@ -3965,21 +4251,21 @@ class U extends bn {
|
|
3965
4251
|
/** @internal */
|
3966
4252
|
_getIdTokenResponse(e) {
|
3967
4253
|
const t = this.buildRequest();
|
3968
|
-
return
|
4254
|
+
return V(e, t);
|
3969
4255
|
}
|
3970
4256
|
/** @internal */
|
3971
4257
|
_linkToIdToken(e, t) {
|
3972
4258
|
const r = this.buildRequest();
|
3973
|
-
return r.idToken = t,
|
4259
|
+
return r.idToken = t, V(e, r);
|
3974
4260
|
}
|
3975
4261
|
/** @internal */
|
3976
4262
|
_getReauthenticationResolver(e) {
|
3977
4263
|
const t = this.buildRequest();
|
3978
|
-
return t.autoCreate = !1,
|
4264
|
+
return t.autoCreate = !1, V(e, t);
|
3979
4265
|
}
|
3980
4266
|
buildRequest() {
|
3981
4267
|
const e = {
|
3982
|
-
requestUri:
|
4268
|
+
requestUri: _s,
|
3983
4269
|
returnSecureToken: !0
|
3984
4270
|
};
|
3985
4271
|
if (this.pendingToken)
|
@@ -4306,7 +4592,7 @@ O.PROVIDER_ID = "github.com";
|
|
4306
4592
|
* See the License for the specific language governing permissions and
|
4307
4593
|
* limitations under the License.
|
4308
4594
|
*/
|
4309
|
-
class
|
4595
|
+
class N extends ne {
|
4310
4596
|
constructor() {
|
4311
4597
|
super(
|
4312
4598
|
"twitter.com"
|
@@ -4321,8 +4607,8 @@ class C extends ne {
|
|
4321
4607
|
*/
|
4322
4608
|
static credential(e, t) {
|
4323
4609
|
return U._fromParams({
|
4324
|
-
providerId:
|
4325
|
-
signInMethod:
|
4610
|
+
providerId: N.PROVIDER_ID,
|
4611
|
+
signInMethod: N.TWITTER_SIGN_IN_METHOD,
|
4326
4612
|
oauthToken: e,
|
4327
4613
|
oauthTokenSecret: t
|
4328
4614
|
});
|
@@ -4333,7 +4619,7 @@ class C extends ne {
|
|
4333
4619
|
* @param userCredential - The user credential.
|
4334
4620
|
*/
|
4335
4621
|
static credentialFromResult(e) {
|
4336
|
-
return
|
4622
|
+
return N.credentialFromTaggedObject(e);
|
4337
4623
|
}
|
4338
4624
|
/**
|
4339
4625
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
@@ -4342,7 +4628,7 @@ class C extends ne {
|
|
4342
4628
|
* @param userCredential - The user credential.
|
4343
4629
|
*/
|
4344
4630
|
static credentialFromError(e) {
|
4345
|
-
return
|
4631
|
+
return N.credentialFromTaggedObject(e.customData || {});
|
4346
4632
|
}
|
4347
4633
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
4348
4634
|
if (!e)
|
@@ -4351,14 +4637,14 @@ class C extends ne {
|
|
4351
4637
|
if (!t || !r)
|
4352
4638
|
return null;
|
4353
4639
|
try {
|
4354
|
-
return
|
4640
|
+
return N.credential(t, r);
|
4355
4641
|
} catch {
|
4356
4642
|
return null;
|
4357
4643
|
}
|
4358
4644
|
}
|
4359
4645
|
}
|
4360
|
-
|
4361
|
-
|
4646
|
+
N.TWITTER_SIGN_IN_METHOD = "twitter.com";
|
4647
|
+
N.PROVIDER_ID = "twitter.com";
|
4362
4648
|
/**
|
4363
4649
|
* @license
|
4364
4650
|
* Copyright 2020 Google LLC
|
@@ -4380,7 +4666,7 @@ class B {
|
|
4380
4666
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
4381
4667
|
}
|
4382
4668
|
static async _fromIdTokenResponse(e, t, r, i = !1) {
|
4383
|
-
const s = await y._fromIdTokenResponse(e, r, i), a =
|
4669
|
+
const s = await y._fromIdTokenResponse(e, r, i), a = kt(r);
|
4384
4670
|
return new B({
|
4385
4671
|
user: s,
|
4386
4672
|
providerId: a,
|
@@ -4394,7 +4680,7 @@ class B {
|
|
4394
4680
|
/* reload */
|
4395
4681
|
!0
|
4396
4682
|
);
|
4397
|
-
const i =
|
4683
|
+
const i = kt(r);
|
4398
4684
|
return new B({
|
4399
4685
|
user: e,
|
4400
4686
|
providerId: i,
|
@@ -4403,7 +4689,7 @@ class B {
|
|
4403
4689
|
});
|
4404
4690
|
}
|
4405
4691
|
}
|
4406
|
-
function
|
4692
|
+
function kt(n) {
|
4407
4693
|
return n.providerId ? n.providerId : "phoneNumber" in n ? "phone" : null;
|
4408
4694
|
}
|
4409
4695
|
/**
|
@@ -4422,10 +4708,10 @@ function Rt(n) {
|
|
4422
4708
|
* See the License for the specific language governing permissions and
|
4423
4709
|
* limitations under the License.
|
4424
4710
|
*/
|
4425
|
-
class
|
4711
|
+
class fe extends M {
|
4426
4712
|
constructor(e, t, r, i) {
|
4427
4713
|
var s;
|
4428
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
4714
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, fe.prototype), this.customData = {
|
4429
4715
|
appName: e.name,
|
4430
4716
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
4431
4717
|
_serverResponse: t.customData._serverResponse,
|
@@ -4433,15 +4719,15 @@ class me extends M {
|
|
4433
4719
|
};
|
4434
4720
|
}
|
4435
4721
|
static _fromErrorAndOperation(e, t, r, i) {
|
4436
|
-
return new
|
4722
|
+
return new fe(e, t, r, i);
|
4437
4723
|
}
|
4438
4724
|
}
|
4439
4725
|
function En(n, e, t, r) {
|
4440
4726
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
4441
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
4727
|
+
throw s.code === "auth/multi-factor-auth-required" ? fe._fromErrorAndOperation(n, s, e, r) : s;
|
4442
4728
|
});
|
4443
4729
|
}
|
4444
|
-
async function
|
4730
|
+
async function gs(n, e, t = !1) {
|
4445
4731
|
const r = await K(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
4446
4732
|
return B._forOperation(n, "link", r);
|
4447
4733
|
}
|
@@ -4461,28 +4747,28 @@ async function is(n, e, t = !1) {
|
|
4461
4747
|
* See the License for the specific language governing permissions and
|
4462
4748
|
* limitations under the License.
|
4463
4749
|
*/
|
4464
|
-
async function
|
4750
|
+
async function vs(n, e, t = !1) {
|
4465
4751
|
const { auth: r } = n;
|
4466
4752
|
if (I(r.app))
|
4467
4753
|
return Promise.reject(P(r));
|
4468
4754
|
const i = "reauthenticate";
|
4469
4755
|
try {
|
4470
4756
|
const s = await K(n, En(r, i, e, n), t);
|
4471
|
-
|
4757
|
+
u(
|
4472
4758
|
s.idToken,
|
4473
4759
|
r,
|
4474
4760
|
"internal-error"
|
4475
4761
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4476
4762
|
);
|
4477
4763
|
const a = Xe(s.idToken);
|
4478
|
-
|
4764
|
+
u(
|
4479
4765
|
a,
|
4480
4766
|
r,
|
4481
4767
|
"internal-error"
|
4482
4768
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4483
4769
|
);
|
4484
4770
|
const { sub: c } = a;
|
4485
|
-
return
|
4771
|
+
return u(
|
4486
4772
|
n.uid === c,
|
4487
4773
|
r,
|
4488
4774
|
"user-mismatch"
|
@@ -4512,7 +4798,7 @@ async function ss(n, e, t = !1) {
|
|
4512
4798
|
* See the License for the specific language governing permissions and
|
4513
4799
|
* limitations under the License.
|
4514
4800
|
*/
|
4515
|
-
async function
|
4801
|
+
async function Is(n, e, t = !1) {
|
4516
4802
|
if (I(n.app))
|
4517
4803
|
return Promise.reject(P(n));
|
4518
4804
|
const r = "signIn", i = await En(n, r, e), s = await B._fromIdTokenResponse(n, r, i);
|
@@ -4534,7 +4820,7 @@ async function as(n, e, t = !1) {
|
|
4534
4820
|
* See the License for the specific language governing permissions and
|
4535
4821
|
* limitations under the License.
|
4536
4822
|
*/
|
4537
|
-
async function
|
4823
|
+
async function bs(n, e) {
|
4538
4824
|
return sn(n, "POST", "/v1/accounts:signInWithCustomToken", ve(n, e));
|
4539
4825
|
}
|
4540
4826
|
/**
|
@@ -4553,19 +4839,19 @@ async function os(n, e) {
|
|
4553
4839
|
* See the License for the specific language governing permissions and
|
4554
4840
|
* limitations under the License.
|
4555
4841
|
*/
|
4556
|
-
async function
|
4842
|
+
async function ys(n, e) {
|
4557
4843
|
if (I(n.app))
|
4558
4844
|
return Promise.reject(P(n));
|
4559
|
-
const t = Ie(n), r = await
|
4845
|
+
const t = Ie(n), r = await bs(t, {
|
4560
4846
|
token: e,
|
4561
4847
|
returnSecureToken: !0
|
4562
4848
|
}), i = await B._fromIdTokenResponse(t, "signIn", r);
|
4563
4849
|
return await t._updateCurrentUser(i.user), i;
|
4564
4850
|
}
|
4565
|
-
function
|
4851
|
+
function Es(n, e, t, r) {
|
4566
4852
|
return z(n).onIdTokenChanged(e, t, r);
|
4567
4853
|
}
|
4568
|
-
function
|
4854
|
+
function Ts(n, e, t) {
|
4569
4855
|
return z(n).beforeAuthStateChanged(e, t);
|
4570
4856
|
}
|
4571
4857
|
const _e = "__sak";
|
@@ -4626,7 +4912,7 @@ class Tn {
|
|
4626
4912
|
* See the License for the specific language governing permissions and
|
4627
4913
|
* limitations under the License.
|
4628
4914
|
*/
|
4629
|
-
const
|
4915
|
+
const ws = 1e3, ks = 10;
|
4630
4916
|
class wn extends Tn {
|
4631
4917
|
constructor() {
|
4632
4918
|
super(
|
@@ -4654,7 +4940,7 @@ class wn extends Tn {
|
|
4654
4940
|
const a = this.storage.getItem(r);
|
4655
4941
|
!t && this.localCache[r] === a || this.notifyListeners(r, a);
|
4656
4942
|
}, s = this.storage.getItem(r);
|
4657
|
-
|
4943
|
+
ts() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, ks) : i();
|
4658
4944
|
}
|
4659
4945
|
notifyListeners(e, t) {
|
4660
4946
|
this.localCache[e] = t;
|
@@ -4676,7 +4962,7 @@ class wn extends Tn {
|
|
4676
4962
|
!0
|
4677
4963
|
);
|
4678
4964
|
});
|
4679
|
-
},
|
4965
|
+
}, ws);
|
4680
4966
|
}
|
4681
4967
|
stopPolling() {
|
4682
4968
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -4706,7 +4992,7 @@ class wn extends Tn {
|
|
4706
4992
|
}
|
4707
4993
|
}
|
4708
4994
|
wn.type = "LOCAL";
|
4709
|
-
const
|
4995
|
+
const Rs = wn;
|
4710
4996
|
/**
|
4711
4997
|
* @license
|
4712
4998
|
* Copyright 2020 Google LLC
|
@@ -4723,7 +5009,7 @@ const ps = wn;
|
|
4723
5009
|
* See the License for the specific language governing permissions and
|
4724
5010
|
* limitations under the License.
|
4725
5011
|
*/
|
4726
|
-
class
|
5012
|
+
class kn extends Tn {
|
4727
5013
|
constructor() {
|
4728
5014
|
super(
|
4729
5015
|
() => window.sessionStorage,
|
@@ -4736,8 +5022,8 @@ class Rn extends Tn {
|
|
4736
5022
|
_removeListener(e, t) {
|
4737
5023
|
}
|
4738
5024
|
}
|
4739
|
-
|
4740
|
-
const
|
5025
|
+
kn.type = "SESSION";
|
5026
|
+
const Rn = kn;
|
4741
5027
|
/**
|
4742
5028
|
* @license
|
4743
5029
|
* Copyright 2019 Google LLC
|
@@ -4754,7 +5040,7 @@ const kn = Rn;
|
|
4754
5040
|
* See the License for the specific language governing permissions and
|
4755
5041
|
* limitations under the License.
|
4756
5042
|
*/
|
4757
|
-
function
|
5043
|
+
function Ss(n) {
|
4758
5044
|
return Promise.all(n.map(async (e) => {
|
4759
5045
|
try {
|
4760
5046
|
return {
|
@@ -4824,7 +5110,7 @@ class be {
|
|
4824
5110
|
eventId: r,
|
4825
5111
|
eventType: i
|
4826
5112
|
});
|
4827
|
-
const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await
|
5113
|
+
const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await Ss(c);
|
4828
5114
|
t.ports[0].postMessage({
|
4829
5115
|
status: "done",
|
4830
5116
|
eventId: r,
|
@@ -4892,7 +5178,7 @@ function Qe(n = "", e = 10) {
|
|
4892
5178
|
* See the License for the specific language governing permissions and
|
4893
5179
|
* limitations under the License.
|
4894
5180
|
*/
|
4895
|
-
class
|
5181
|
+
class As {
|
4896
5182
|
constructor(e) {
|
4897
5183
|
this.target = e, this.handlers = /* @__PURE__ */ new Set();
|
4898
5184
|
}
|
@@ -4928,7 +5214,7 @@ class ms {
|
|
4928
5214
|
return new Promise((c, o) => {
|
4929
5215
|
const l = Qe("", 20);
|
4930
5216
|
i.port1.start();
|
4931
|
-
const
|
5217
|
+
const d = setTimeout(() => {
|
4932
5218
|
o(new Error(
|
4933
5219
|
"unsupported_event"
|
4934
5220
|
/* _MessageError.UNSUPPORTED_EVENT */
|
@@ -4936,12 +5222,12 @@ class ms {
|
|
4936
5222
|
}, r);
|
4937
5223
|
a = {
|
4938
5224
|
messageChannel: i,
|
4939
|
-
onMessage(
|
4940
|
-
const m =
|
5225
|
+
onMessage(h) {
|
5226
|
+
const m = h;
|
4941
5227
|
if (m.data.eventId === l)
|
4942
5228
|
switch (m.data.status) {
|
4943
5229
|
case "ack":
|
4944
|
-
clearTimeout(
|
5230
|
+
clearTimeout(d), s = setTimeout(
|
4945
5231
|
() => {
|
4946
5232
|
o(new Error(
|
4947
5233
|
"timeout"
|
@@ -4956,7 +5242,7 @@ class ms {
|
|
4956
5242
|
clearTimeout(s), c(m.data.response);
|
4957
5243
|
break;
|
4958
5244
|
default:
|
4959
|
-
clearTimeout(
|
5245
|
+
clearTimeout(d), clearTimeout(s), o(new Error(
|
4960
5246
|
"invalid_response"
|
4961
5247
|
/* _MessageError.INVALID_RESPONSE */
|
4962
5248
|
));
|
@@ -4992,7 +5278,7 @@ class ms {
|
|
4992
5278
|
function g() {
|
4993
5279
|
return window;
|
4994
5280
|
}
|
4995
|
-
function
|
5281
|
+
function Os(n) {
|
4996
5282
|
g().location.href = n;
|
4997
5283
|
}
|
4998
5284
|
/**
|
@@ -5014,7 +5300,7 @@ function _s(n) {
|
|
5014
5300
|
function Sn() {
|
5015
5301
|
return typeof g().WorkerGlobalScope < "u" && typeof g().importScripts == "function";
|
5016
5302
|
}
|
5017
|
-
async function
|
5303
|
+
async function Ns() {
|
5018
5304
|
if (!(navigator != null && navigator.serviceWorker))
|
5019
5305
|
return null;
|
5020
5306
|
try {
|
@@ -5023,11 +5309,11 @@ async function gs() {
|
|
5023
5309
|
return null;
|
5024
5310
|
}
|
5025
5311
|
}
|
5026
|
-
function
|
5312
|
+
function Cs() {
|
5027
5313
|
var n;
|
5028
5314
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
5029
5315
|
}
|
5030
|
-
function
|
5316
|
+
function Ds() {
|
5031
5317
|
return Sn() ? self : null;
|
5032
5318
|
}
|
5033
5319
|
/**
|
@@ -5046,7 +5332,7 @@ function Is() {
|
|
5046
5332
|
* See the License for the specific language governing permissions and
|
5047
5333
|
* limitations under the License.
|
5048
5334
|
*/
|
5049
|
-
const An = "firebaseLocalStorageDb",
|
5335
|
+
const An = "firebaseLocalStorageDb", Ps = 1, ge = "firebaseLocalStorage", On = "fbase_key";
|
5050
5336
|
class re {
|
5051
5337
|
constructor(e) {
|
5052
5338
|
this.request = e;
|
@@ -5064,12 +5350,12 @@ class re {
|
|
5064
5350
|
function ye(n, e) {
|
5065
5351
|
return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
|
5066
5352
|
}
|
5067
|
-
function
|
5353
|
+
function Ms() {
|
5068
5354
|
const n = indexedDB.deleteDatabase(An);
|
5069
5355
|
return new re(n).toPromise();
|
5070
5356
|
}
|
5071
|
-
function
|
5072
|
-
const n = indexedDB.open(An,
|
5357
|
+
function Ge() {
|
5358
|
+
const n = indexedDB.open(An, Ps);
|
5073
5359
|
return new Promise((e, t) => {
|
5074
5360
|
n.addEventListener("error", () => {
|
5075
5361
|
t(n.error);
|
@@ -5082,18 +5368,18 @@ function He() {
|
|
5082
5368
|
}
|
5083
5369
|
}), n.addEventListener("success", async () => {
|
5084
5370
|
const r = n.result;
|
5085
|
-
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await
|
5371
|
+
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ms(), e(await Ge()));
|
5086
5372
|
});
|
5087
5373
|
});
|
5088
5374
|
}
|
5089
|
-
async function
|
5375
|
+
async function Rt(n, e, t) {
|
5090
5376
|
const r = ye(n, !0).put({
|
5091
5377
|
[On]: e,
|
5092
5378
|
value: t
|
5093
5379
|
});
|
5094
5380
|
return new re(r).toPromise();
|
5095
5381
|
}
|
5096
|
-
async function
|
5382
|
+
async function Ls(n, e) {
|
5097
5383
|
const t = ye(n, !1).get(e), r = await new re(t).toPromise();
|
5098
5384
|
return r === void 0 ? null : r.value;
|
5099
5385
|
}
|
@@ -5101,15 +5387,15 @@ function St(n, e) {
|
|
5101
5387
|
const t = ye(n, !0).delete(e);
|
5102
5388
|
return new re(t).toPromise();
|
5103
5389
|
}
|
5104
|
-
const
|
5105
|
-
class
|
5390
|
+
const Us = 800, Bs = 3;
|
5391
|
+
class Nn {
|
5106
5392
|
constructor() {
|
5107
5393
|
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(() => {
|
5108
5394
|
}, () => {
|
5109
5395
|
});
|
5110
5396
|
}
|
5111
5397
|
async _openDb() {
|
5112
|
-
return this.db ? this.db : (this.db = await
|
5398
|
+
return this.db ? this.db : (this.db = await Ge(), this.db);
|
5113
5399
|
}
|
5114
5400
|
async _withRetries(e) {
|
5115
5401
|
let t = 0;
|
@@ -5118,7 +5404,7 @@ class Cn {
|
|
5118
5404
|
const r = await this._openDb();
|
5119
5405
|
return await e(r);
|
5120
5406
|
} catch (r) {
|
5121
|
-
if (t++ >
|
5407
|
+
if (t++ > Bs)
|
5122
5408
|
throw r;
|
5123
5409
|
this.db && (this.db.close(), this.db = void 0);
|
5124
5410
|
}
|
@@ -5134,7 +5420,7 @@ class Cn {
|
|
5134
5420
|
* As the worker we should listen to events from the main window.
|
5135
5421
|
*/
|
5136
5422
|
async initializeReceiver() {
|
5137
|
-
this.receiver = be._getInstance(
|
5423
|
+
this.receiver = be._getInstance(Ds()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
5138
5424
|
keyProcessed: (await this._poll()).includes(t.key)
|
5139
5425
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
5140
5426
|
"keyChanged"
|
@@ -5150,9 +5436,9 @@ class Cn {
|
|
5150
5436
|
*/
|
5151
5437
|
async initializeSender() {
|
5152
5438
|
var e, t;
|
5153
|
-
if (this.activeServiceWorker = await
|
5439
|
+
if (this.activeServiceWorker = await Ns(), !this.activeServiceWorker)
|
5154
5440
|
return;
|
5155
|
-
this.sender = new
|
5441
|
+
this.sender = new As(this.activeServiceWorker);
|
5156
5442
|
const r = await this.sender._send(
|
5157
5443
|
"ping",
|
5158
5444
|
{},
|
@@ -5174,7 +5460,7 @@ class Cn {
|
|
5174
5460
|
* @param key - Storage key which changed.
|
5175
5461
|
*/
|
5176
5462
|
async notifyServiceWorker(e) {
|
5177
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
5463
|
+
if (!(!this.sender || !this.activeServiceWorker || Cs() !== this.activeServiceWorker))
|
5178
5464
|
try {
|
5179
5465
|
await this.sender._send(
|
5180
5466
|
"keyChanged",
|
@@ -5190,8 +5476,8 @@ class Cn {
|
|
5190
5476
|
try {
|
5191
5477
|
if (!indexedDB)
|
5192
5478
|
return !1;
|
5193
|
-
const e = await
|
5194
|
-
return await
|
5479
|
+
const e = await Ge();
|
5480
|
+
return await Rt(e, _e, "1"), await St(e, _e), !0;
|
5195
5481
|
} catch {
|
5196
5482
|
}
|
5197
5483
|
return !1;
|
@@ -5205,10 +5491,10 @@ class Cn {
|
|
5205
5491
|
}
|
5206
5492
|
}
|
5207
5493
|
async _set(e, t) {
|
5208
|
-
return this._withPendingWrite(async () => (await this._withRetries((r) =>
|
5494
|
+
return this._withPendingWrite(async () => (await this._withRetries((r) => Rt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
5209
5495
|
}
|
5210
5496
|
async _get(e) {
|
5211
|
-
const t = await this._withRetries((r) =>
|
5497
|
+
const t = await this._withRetries((r) => Ls(r, e));
|
5212
5498
|
return this.localCache[e] = t, t;
|
5213
5499
|
}
|
5214
5500
|
async _remove(e) {
|
@@ -5239,7 +5525,7 @@ class Cn {
|
|
5239
5525
|
i(t);
|
5240
5526
|
}
|
5241
5527
|
startPolling() {
|
5242
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
5528
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Us);
|
5243
5529
|
}
|
5244
5530
|
stopPolling() {
|
5245
5531
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -5251,8 +5537,8 @@ class Cn {
|
|
5251
5537
|
this.listeners[e] && (this.listeners[e].delete(t), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
|
5252
5538
|
}
|
5253
5539
|
}
|
5254
|
-
|
5255
|
-
const
|
5540
|
+
Nn.type = "LOCAL";
|
5541
|
+
const Fs = Nn;
|
5256
5542
|
new te(3e4, 6e4);
|
5257
5543
|
/**
|
5258
5544
|
* @license
|
@@ -5270,8 +5556,8 @@ new te(3e4, 6e4);
|
|
5270
5556
|
* See the License for the specific language governing permissions and
|
5271
5557
|
* limitations under the License.
|
5272
5558
|
*/
|
5273
|
-
function
|
5274
|
-
return e ? E(e) : (
|
5559
|
+
function xs(n, e) {
|
5560
|
+
return e ? E(e) : (u(
|
5275
5561
|
n._popupRedirectResolver,
|
5276
5562
|
n,
|
5277
5563
|
"argument-error"
|
@@ -5303,13 +5589,13 @@ class et extends bn {
|
|
5303
5589
|
), this.params = e;
|
5304
5590
|
}
|
5305
5591
|
_getIdTokenResponse(e) {
|
5306
|
-
return
|
5592
|
+
return V(e, this._buildIdpRequest());
|
5307
5593
|
}
|
5308
5594
|
_linkToIdToken(e, t) {
|
5309
|
-
return
|
5595
|
+
return V(e, this._buildIdpRequest(t));
|
5310
5596
|
}
|
5311
5597
|
_getReauthenticationResolver(e) {
|
5312
|
-
return
|
5598
|
+
return V(e, this._buildIdpRequest());
|
5313
5599
|
}
|
5314
5600
|
_buildIdpRequest(e) {
|
5315
5601
|
const t = {
|
@@ -5324,26 +5610,26 @@ class et extends bn {
|
|
5324
5610
|
return e && (t.idToken = e), t;
|
5325
5611
|
}
|
5326
5612
|
}
|
5327
|
-
function
|
5328
|
-
return
|
5613
|
+
function Hs(n) {
|
5614
|
+
return Is(n.auth, new et(n), n.bypassAuthState);
|
5329
5615
|
}
|
5330
|
-
function
|
5616
|
+
function js(n) {
|
5331
5617
|
const { auth: e, user: t } = n;
|
5332
|
-
return
|
5618
|
+
return u(
|
5333
5619
|
t,
|
5334
5620
|
e,
|
5335
5621
|
"internal-error"
|
5336
5622
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5337
|
-
),
|
5623
|
+
), vs(t, new et(n), n.bypassAuthState);
|
5338
5624
|
}
|
5339
|
-
async function
|
5625
|
+
async function Gs(n) {
|
5340
5626
|
const { auth: e, user: t } = n;
|
5341
|
-
return
|
5627
|
+
return u(
|
5342
5628
|
t,
|
5343
5629
|
e,
|
5344
5630
|
"internal-error"
|
5345
5631
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5346
|
-
),
|
5632
|
+
), gs(t, new et(n), n.bypassAuthState);
|
5347
5633
|
}
|
5348
5634
|
/**
|
5349
5635
|
* @license
|
@@ -5361,7 +5647,7 @@ async function Os(n) {
|
|
5361
5647
|
* See the License for the specific language governing permissions and
|
5362
5648
|
* limitations under the License.
|
5363
5649
|
*/
|
5364
|
-
class
|
5650
|
+
class Cn {
|
5365
5651
|
constructor(e, t, r, i, s = !1) {
|
5366
5652
|
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];
|
5367
5653
|
}
|
@@ -5403,13 +5689,13 @@ class Nn {
|
|
5403
5689
|
switch (e) {
|
5404
5690
|
case "signInViaPopup":
|
5405
5691
|
case "signInViaRedirect":
|
5406
|
-
return
|
5692
|
+
return Hs;
|
5407
5693
|
case "linkViaPopup":
|
5408
5694
|
case "linkViaRedirect":
|
5409
|
-
return
|
5695
|
+
return Gs;
|
5410
5696
|
case "reauthViaPopup":
|
5411
5697
|
case "reauthViaRedirect":
|
5412
|
-
return
|
5698
|
+
return js;
|
5413
5699
|
default:
|
5414
5700
|
w(
|
5415
5701
|
this.auth,
|
@@ -5419,10 +5705,10 @@ class Nn {
|
|
5419
5705
|
}
|
5420
5706
|
}
|
5421
5707
|
resolve(e) {
|
5422
|
-
|
5708
|
+
k(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
|
5423
5709
|
}
|
5424
5710
|
reject(e) {
|
5425
|
-
|
5711
|
+
k(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
|
5426
5712
|
}
|
5427
5713
|
unregisterAndCleanUp() {
|
5428
5714
|
this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
|
@@ -5444,14 +5730,14 @@ class Nn {
|
|
5444
5730
|
* See the License for the specific language governing permissions and
|
5445
5731
|
* limitations under the License.
|
5446
5732
|
*/
|
5447
|
-
const
|
5448
|
-
class
|
5733
|
+
const Vs = new te(2e3, 1e4);
|
5734
|
+
class x extends Cn {
|
5449
5735
|
constructor(e, t, r, i, s) {
|
5450
|
-
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null,
|
5736
|
+
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, x.currentPopupAction && x.currentPopupAction.cancel(), x.currentPopupAction = this;
|
5451
5737
|
}
|
5452
5738
|
async executeNotNull() {
|
5453
5739
|
const e = await this.execute();
|
5454
|
-
return
|
5740
|
+
return u(
|
5455
5741
|
e,
|
5456
5742
|
this.auth,
|
5457
5743
|
"internal-error"
|
@@ -5459,7 +5745,7 @@ class j extends Nn {
|
|
5459
5745
|
), e;
|
5460
5746
|
}
|
5461
5747
|
async onExecution() {
|
5462
|
-
|
5748
|
+
k(this.filter.length === 1, "Popup operations only handle one event");
|
5463
5749
|
const e = Qe();
|
5464
5750
|
this.authWindow = await this.resolver._openPopup(
|
5465
5751
|
this.auth,
|
@@ -5489,7 +5775,7 @@ class j extends Nn {
|
|
5489
5775
|
));
|
5490
5776
|
}
|
5491
5777
|
cleanUp() {
|
5492
|
-
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null,
|
5778
|
+
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, x.currentPopupAction = null;
|
5493
5779
|
}
|
5494
5780
|
pollUserCancellation() {
|
5495
5781
|
const e = () => {
|
@@ -5508,12 +5794,12 @@ class j extends Nn {
|
|
5508
5794
|
);
|
5509
5795
|
return;
|
5510
5796
|
}
|
5511
|
-
this.pollId = window.setTimeout(e,
|
5797
|
+
this.pollId = window.setTimeout(e, Vs.get());
|
5512
5798
|
};
|
5513
5799
|
e();
|
5514
5800
|
}
|
5515
5801
|
}
|
5516
|
-
|
5802
|
+
x.currentPopupAction = null;
|
5517
5803
|
/**
|
5518
5804
|
* @license
|
5519
5805
|
* Copyright 2020 Google LLC
|
@@ -5530,8 +5816,8 @@ j.currentPopupAction = null;
|
|
5530
5816
|
* See the License for the specific language governing permissions and
|
5531
5817
|
* limitations under the License.
|
5532
5818
|
*/
|
5533
|
-
const
|
5534
|
-
class
|
5819
|
+
const Ws = "pendingRedirect", oe = /* @__PURE__ */ new Map();
|
5820
|
+
class zs extends Cn {
|
5535
5821
|
constructor(e, t, r = !1) {
|
5536
5822
|
super(e, [
|
5537
5823
|
"signInViaRedirect",
|
@@ -5549,7 +5835,7 @@ class Ds extends Nn {
|
|
5549
5835
|
let e = oe.get(this.auth._key());
|
5550
5836
|
if (!e) {
|
5551
5837
|
try {
|
5552
|
-
const r = await
|
5838
|
+
const r = await $s(this.resolver, this.auth) ? await super.execute() : null;
|
5553
5839
|
e = () => Promise.resolve(r);
|
5554
5840
|
} catch (t) {
|
5555
5841
|
e = () => Promise.reject(t);
|
@@ -5577,26 +5863,26 @@ class Ds extends Nn {
|
|
5577
5863
|
cleanUp() {
|
5578
5864
|
}
|
5579
5865
|
}
|
5580
|
-
async function
|
5581
|
-
const t =
|
5866
|
+
async function $s(n, e) {
|
5867
|
+
const t = Ys(e), r = Js(n);
|
5582
5868
|
if (!await r._isAvailable())
|
5583
5869
|
return !1;
|
5584
5870
|
const i = await r._get(t) === "true";
|
5585
5871
|
return await r._remove(t), i;
|
5586
5872
|
}
|
5587
|
-
function
|
5873
|
+
function Zs(n, e) {
|
5588
5874
|
oe.set(n._key(), e);
|
5589
5875
|
}
|
5590
|
-
function
|
5876
|
+
function Js(n) {
|
5591
5877
|
return E(n._redirectPersistence);
|
5592
5878
|
}
|
5593
|
-
function
|
5594
|
-
return ae(
|
5879
|
+
function Ys(n) {
|
5880
|
+
return ae(Ws, n.config.apiKey, n.name);
|
5595
5881
|
}
|
5596
|
-
async function
|
5882
|
+
async function Xs(n, e, t = !1) {
|
5597
5883
|
if (I(n.app))
|
5598
5884
|
return Promise.reject(P(n));
|
5599
|
-
const r = Ie(n), i =
|
5885
|
+
const r = Ie(n), i = xs(r, e), a = await new zs(r, i, t).execute();
|
5600
5886
|
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
5601
5887
|
}
|
5602
5888
|
/**
|
@@ -5615,8 +5901,8 @@ async function Bs(n, e, t = !1) {
|
|
5615
5901
|
* See the License for the specific language governing permissions and
|
5616
5902
|
* limitations under the License.
|
5617
5903
|
*/
|
5618
|
-
const
|
5619
|
-
class
|
5904
|
+
const Ks = 10 * 60 * 1e3;
|
5905
|
+
class qs {
|
5620
5906
|
constructor(e) {
|
5621
5907
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
5622
5908
|
}
|
@@ -5632,7 +5918,7 @@ class js {
|
|
5632
5918
|
let t = !1;
|
5633
5919
|
return this.consumers.forEach((r) => {
|
5634
5920
|
this.isEventForConsumer(e, r) && (t = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
|
5635
|
-
}), this.hasHandledPotentialRedirect || !
|
5921
|
+
}), this.hasHandledPotentialRedirect || !Qs(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
5636
5922
|
}
|
5637
5923
|
sendToConsumer(e, t) {
|
5638
5924
|
var r;
|
@@ -5647,7 +5933,7 @@ class js {
|
|
5647
5933
|
return t.filter.includes(e.type) && r;
|
5648
5934
|
}
|
5649
5935
|
hasEventBeenHandled(e) {
|
5650
|
-
return Date.now() - this.lastProcessedEventTime >=
|
5936
|
+
return Date.now() - this.lastProcessedEventTime >= Ks && this.cachedEventUids.clear(), this.cachedEventUids.has(At(e));
|
5651
5937
|
}
|
5652
5938
|
saveEventToCache(e) {
|
5653
5939
|
this.cachedEventUids.add(At(e)), this.lastProcessedEventTime = Date.now();
|
@@ -5659,7 +5945,7 @@ function At(n) {
|
|
5659
5945
|
function Dn({ type: n, error: e }) {
|
5660
5946
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
5661
5947
|
}
|
5662
|
-
function
|
5948
|
+
function Qs(n) {
|
5663
5949
|
switch (n.type) {
|
5664
5950
|
case "signInViaRedirect":
|
5665
5951
|
case "linkViaRedirect":
|
@@ -5687,8 +5973,8 @@ function xs(n) {
|
|
5687
5973
|
* See the License for the specific language governing permissions and
|
5688
5974
|
* limitations under the License.
|
5689
5975
|
*/
|
5690
|
-
async function
|
5691
|
-
return
|
5976
|
+
async function ea(n, e = {}) {
|
5977
|
+
return $(n, "GET", "/v1/projects", e);
|
5692
5978
|
}
|
5693
5979
|
/**
|
5694
5980
|
* @license
|
@@ -5706,14 +5992,14 @@ async function Vs(n, e = {}) {
|
|
5706
5992
|
* See the License for the specific language governing permissions and
|
5707
5993
|
* limitations under the License.
|
5708
5994
|
*/
|
5709
|
-
const
|
5710
|
-
async function
|
5995
|
+
const ta = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, na = /^https?/;
|
5996
|
+
async function ra(n) {
|
5711
5997
|
if (n.config.emulator)
|
5712
5998
|
return;
|
5713
|
-
const { authorizedDomains: e } = await
|
5999
|
+
const { authorizedDomains: e } = await ea(n);
|
5714
6000
|
for (const t of e)
|
5715
6001
|
try {
|
5716
|
-
if (
|
6002
|
+
if (ia(t))
|
5717
6003
|
return;
|
5718
6004
|
} catch {
|
5719
6005
|
}
|
@@ -5723,15 +6009,15 @@ async function Ws(n) {
|
|
5723
6009
|
/* AuthErrorCode.INVALID_ORIGIN */
|
5724
6010
|
);
|
5725
6011
|
}
|
5726
|
-
function
|
5727
|
-
const e =
|
6012
|
+
function ia(n) {
|
6013
|
+
const e = He(), { protocol: t, hostname: r } = new URL(e);
|
5728
6014
|
if (n.startsWith("chrome-extension://")) {
|
5729
6015
|
const a = new URL(n);
|
5730
6016
|
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
5731
6017
|
}
|
5732
|
-
if (!
|
6018
|
+
if (!na.test(t))
|
5733
6019
|
return !1;
|
5734
|
-
if (
|
6020
|
+
if (ta.test(n))
|
5735
6021
|
return r === n;
|
5736
6022
|
const i = n.replace(/\./g, "\\.");
|
5737
6023
|
return new RegExp("^(.+\\." + i + "|" + i + ")$", "i").test(r);
|
@@ -5752,7 +6038,7 @@ function zs(n) {
|
|
5752
6038
|
* See the License for the specific language governing permissions and
|
5753
6039
|
* limitations under the License.
|
5754
6040
|
*/
|
5755
|
-
const
|
6041
|
+
const sa = new te(3e4, 6e4);
|
5756
6042
|
function Ot() {
|
5757
6043
|
const n = g().___jsl;
|
5758
6044
|
if (n != null && n.H) {
|
@@ -5762,7 +6048,7 @@ function Ot() {
|
|
5762
6048
|
n.CP[t] = null;
|
5763
6049
|
}
|
5764
6050
|
}
|
5765
|
-
function
|
6051
|
+
function aa(n) {
|
5766
6052
|
return new Promise((e, t) => {
|
5767
6053
|
var r, i, s;
|
5768
6054
|
function a() {
|
@@ -5777,7 +6063,7 @@ function $s(n) {
|
|
5777
6063
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5778
6064
|
));
|
5779
6065
|
},
|
5780
|
-
timeout:
|
6066
|
+
timeout: sa.get()
|
5781
6067
|
});
|
5782
6068
|
}
|
5783
6069
|
if (!((i = (r = g().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
@@ -5785,22 +6071,22 @@ function $s(n) {
|
|
5785
6071
|
else if (!((s = g().gapi) === null || s === void 0) && s.load)
|
5786
6072
|
a();
|
5787
6073
|
else {
|
5788
|
-
const c =
|
6074
|
+
const c = ds("iframefcb");
|
5789
6075
|
return g()[c] = () => {
|
5790
6076
|
gapi.load ? a() : t(_(
|
5791
6077
|
n,
|
5792
6078
|
"network-request-failed"
|
5793
6079
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5794
6080
|
));
|
5795
|
-
},
|
6081
|
+
}, cs(`${ls()}?onload=${c}`).catch((o) => t(o));
|
5796
6082
|
}
|
5797
6083
|
}).catch((e) => {
|
5798
6084
|
throw ce = null, e;
|
5799
6085
|
});
|
5800
6086
|
}
|
5801
6087
|
let ce = null;
|
5802
|
-
function
|
5803
|
-
return ce = ce ||
|
6088
|
+
function oa(n) {
|
6089
|
+
return ce = ce || aa(n), ce;
|
5804
6090
|
}
|
5805
6091
|
/**
|
5806
6092
|
* @license
|
@@ -5818,7 +6104,7 @@ function Js(n) {
|
|
5818
6104
|
* See the License for the specific language governing permissions and
|
5819
6105
|
* limitations under the License.
|
5820
6106
|
*/
|
5821
|
-
const
|
6107
|
+
const ca = new te(5e3, 15e3), la = "__/auth/iframe", da = "emulator/auth/iframe", ua = {
|
5822
6108
|
style: {
|
5823
6109
|
position: "absolute",
|
5824
6110
|
top: "-100px",
|
@@ -5827,41 +6113,41 @@ const Ys = new te(5e3, 15e3), Xs = "__/auth/iframe", Ks = "emulator/auth/iframe"
|
|
5827
6113
|
},
|
5828
6114
|
"aria-hidden": "true",
|
5829
6115
|
tabindex: "-1"
|
5830
|
-
},
|
6116
|
+
}, ha = /* @__PURE__ */ new Map([
|
5831
6117
|
["identitytoolkit.googleapis.com", "p"],
|
5832
6118
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
5833
6119
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
5834
6120
|
// test
|
5835
6121
|
]);
|
5836
|
-
function
|
6122
|
+
function pa(n) {
|
5837
6123
|
const e = n.config;
|
5838
|
-
|
6124
|
+
u(
|
5839
6125
|
e.authDomain,
|
5840
6126
|
n,
|
5841
6127
|
"auth-domain-config-required"
|
5842
6128
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
5843
6129
|
);
|
5844
|
-
const t = e.emulator ? Ye(e,
|
6130
|
+
const t = e.emulator ? Ye(e, da) : `https://${n.config.authDomain}/${la}`, r = {
|
5845
6131
|
apiKey: e.apiKey,
|
5846
6132
|
appName: n.name,
|
5847
6133
|
v: ee
|
5848
|
-
}, i =
|
6134
|
+
}, i = ha.get(n.config.apiHost);
|
5849
6135
|
i && (r.eid = i);
|
5850
6136
|
const s = n._getFrameworks();
|
5851
6137
|
return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
|
5852
6138
|
}
|
5853
|
-
async function
|
5854
|
-
const e = await
|
5855
|
-
return
|
6139
|
+
async function ma(n) {
|
6140
|
+
const e = await oa(n), t = g().gapi;
|
6141
|
+
return u(
|
5856
6142
|
t,
|
5857
6143
|
n,
|
5858
6144
|
"internal-error"
|
5859
6145
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5860
6146
|
), e.open({
|
5861
6147
|
where: document.body,
|
5862
|
-
url:
|
6148
|
+
url: pa(n),
|
5863
6149
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
5864
|
-
attributes:
|
6150
|
+
attributes: ua,
|
5865
6151
|
dontclear: !0
|
5866
6152
|
}, (r) => new Promise(async (i, s) => {
|
5867
6153
|
await r.restyle({
|
@@ -5874,7 +6160,7 @@ async function ta(n) {
|
|
5874
6160
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5875
6161
|
), c = g().setTimeout(() => {
|
5876
6162
|
s(a);
|
5877
|
-
},
|
6163
|
+
}, ca.get());
|
5878
6164
|
function o() {
|
5879
6165
|
g().clearTimeout(c), i(r);
|
5880
6166
|
}
|
@@ -5899,13 +6185,13 @@ async function ta(n) {
|
|
5899
6185
|
* See the License for the specific language governing permissions and
|
5900
6186
|
* limitations under the License.
|
5901
6187
|
*/
|
5902
|
-
const
|
6188
|
+
const fa = {
|
5903
6189
|
location: "yes",
|
5904
6190
|
resizable: "yes",
|
5905
6191
|
statusbar: "yes",
|
5906
6192
|
toolbar: "no"
|
5907
|
-
},
|
5908
|
-
class
|
6193
|
+
}, _a = 500, ga = 600, va = "_blank", Ia = "http://localhost";
|
6194
|
+
class Nt {
|
5909
6195
|
constructor(e) {
|
5910
6196
|
this.window = e, this.associatedEvent = null;
|
5911
6197
|
}
|
@@ -5917,33 +6203,33 @@ class Ct {
|
|
5917
6203
|
}
|
5918
6204
|
}
|
5919
6205
|
}
|
5920
|
-
function
|
6206
|
+
function ba(n, e, t, r = _a, i = ga) {
|
5921
6207
|
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
5922
6208
|
let c = "";
|
5923
|
-
const o = Object.assign(Object.assign({},
|
6209
|
+
const o = Object.assign(Object.assign({}, fa), {
|
5924
6210
|
width: r.toString(),
|
5925
6211
|
height: i.toString(),
|
5926
6212
|
top: s,
|
5927
6213
|
left: a
|
5928
6214
|
}), l = f().toLowerCase();
|
5929
|
-
t && (c = hn(l) ?
|
5930
|
-
const
|
5931
|
-
if (
|
5932
|
-
return
|
5933
|
-
const
|
5934
|
-
|
5935
|
-
|
6215
|
+
t && (c = hn(l) ? va : t), dn(l) && (e = e || Ia, o.scrollbars = "yes");
|
6216
|
+
const d = Object.entries(o).reduce((m, [v, F]) => `${m}${v}=${F},`, "");
|
6217
|
+
if (es(l) && c !== "_self")
|
6218
|
+
return ya(e || "", c), new Nt(null);
|
6219
|
+
const h = window.open(e || "", c, d);
|
6220
|
+
u(
|
6221
|
+
h,
|
5936
6222
|
n,
|
5937
6223
|
"popup-blocked"
|
5938
6224
|
/* AuthErrorCode.POPUP_BLOCKED */
|
5939
6225
|
);
|
5940
6226
|
try {
|
5941
|
-
|
6227
|
+
h.focus();
|
5942
6228
|
} catch {
|
5943
6229
|
}
|
5944
|
-
return new
|
6230
|
+
return new Nt(h);
|
5945
6231
|
}
|
5946
|
-
function
|
6232
|
+
function ya(n, e) {
|
5947
6233
|
const t = document.createElement("a");
|
5948
6234
|
t.href = n, t.target = e;
|
5949
6235
|
const r = document.createEvent("MouseEvent");
|
@@ -5965,14 +6251,14 @@ function ca(n, e) {
|
|
5965
6251
|
* See the License for the specific language governing permissions and
|
5966
6252
|
* limitations under the License.
|
5967
6253
|
*/
|
5968
|
-
const
|
5969
|
-
async function
|
5970
|
-
|
6254
|
+
const Ea = "__/auth/handler", Ta = "emulator/auth/handler", wa = encodeURIComponent("fac");
|
6255
|
+
async function Ct(n, e, t, r, i, s) {
|
6256
|
+
u(
|
5971
6257
|
n.config.authDomain,
|
5972
6258
|
n,
|
5973
6259
|
"auth-domain-config-required"
|
5974
6260
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
5975
|
-
),
|
6261
|
+
), u(
|
5976
6262
|
n.config.apiKey,
|
5977
6263
|
n,
|
5978
6264
|
"invalid-api-key"
|
@@ -5987,23 +6273,23 @@ async function Nt(n, e, t, r, i, s) {
|
|
5987
6273
|
eventId: i
|
5988
6274
|
};
|
5989
6275
|
if (e instanceof yn) {
|
5990
|
-
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "",
|
5991
|
-
for (const [
|
5992
|
-
a[
|
6276
|
+
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", wr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
6277
|
+
for (const [d, h] of Object.entries({}))
|
6278
|
+
a[d] = h;
|
5993
6279
|
}
|
5994
6280
|
if (e instanceof ne) {
|
5995
|
-
const
|
5996
|
-
|
6281
|
+
const d = e.getScopes().filter((h) => h !== "");
|
6282
|
+
d.length > 0 && (a.scopes = d.join(","));
|
5997
6283
|
}
|
5998
6284
|
n.tenantId && (a.tid = n.tenantId);
|
5999
6285
|
const c = a;
|
6000
|
-
for (const
|
6001
|
-
c[
|
6002
|
-
const o = await n._getAppCheckToken(), l = o ? `#${
|
6003
|
-
return `${
|
6286
|
+
for (const d of Object.keys(c))
|
6287
|
+
c[d] === void 0 && delete c[d];
|
6288
|
+
const o = await n._getAppCheckToken(), l = o ? `#${wa}=${encodeURIComponent(o)}` : "";
|
6289
|
+
return `${ka(n)}?${Q(c).slice(1)}${l}`;
|
6004
6290
|
}
|
6005
|
-
function
|
6006
|
-
return n.emulator ? Ye(n,
|
6291
|
+
function ka({ config: n }) {
|
6292
|
+
return n.emulator ? Ye(n, Ta) : `https://${n.authDomain}/${Ea}`;
|
6007
6293
|
}
|
6008
6294
|
/**
|
6009
6295
|
* @license
|
@@ -6022,29 +6308,29 @@ function ha({ config: n }) {
|
|
6022
6308
|
* limitations under the License.
|
6023
6309
|
*/
|
6024
6310
|
const De = "webStorageSupport";
|
6025
|
-
class
|
6311
|
+
class Ra {
|
6026
6312
|
constructor() {
|
6027
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence =
|
6313
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Rn, this._completeRedirectFn = Xs, this._overrideRedirectResult = Zs;
|
6028
6314
|
}
|
6029
6315
|
// Wrapping in async even though we don't await anywhere in order
|
6030
6316
|
// to make sure errors are raised as promise rejections
|
6031
6317
|
async _openPopup(e, t, r, i) {
|
6032
6318
|
var s;
|
6033
|
-
|
6034
|
-
const a = await
|
6035
|
-
return
|
6319
|
+
k((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
6320
|
+
const a = await Ct(e, t, r, He(), i);
|
6321
|
+
return ba(e, a, Qe());
|
6036
6322
|
}
|
6037
6323
|
async _openRedirect(e, t, r, i) {
|
6038
6324
|
await this._originValidation(e);
|
6039
|
-
const s = await
|
6040
|
-
return
|
6325
|
+
const s = await Ct(e, t, r, He(), i);
|
6326
|
+
return Os(s), new Promise(() => {
|
6041
6327
|
});
|
6042
6328
|
}
|
6043
6329
|
_initialize(e) {
|
6044
6330
|
const t = e._key();
|
6045
6331
|
if (this.eventManagers[t]) {
|
6046
6332
|
const { manager: i, promise: s } = this.eventManagers[t];
|
6047
|
-
return i ? Promise.resolve(i) : (
|
6333
|
+
return i ? Promise.resolve(i) : (k(s, "If manager is not set, promise should be"), s);
|
6048
6334
|
}
|
6049
6335
|
const r = this.initAndGetManager(e);
|
6050
6336
|
return this.eventManagers[t] = { promise: r }, r.catch(() => {
|
@@ -6052,8 +6338,8 @@ class pa {
|
|
6052
6338
|
}), r;
|
6053
6339
|
}
|
6054
6340
|
async initAndGetManager(e) {
|
6055
|
-
const t = await
|
6056
|
-
return t.register("authEvent", (i) => (
|
6341
|
+
const t = await ma(e), r = new qs(e);
|
6342
|
+
return t.register("authEvent", (i) => (u(
|
6057
6343
|
i == null ? void 0 : i.authEvent,
|
6058
6344
|
e,
|
6059
6345
|
"invalid-auth-event"
|
@@ -6076,13 +6362,13 @@ class pa {
|
|
6076
6362
|
}
|
6077
6363
|
_originValidation(e) {
|
6078
6364
|
const t = e._key();
|
6079
|
-
return this.originValidationPromises[t] || (this.originValidationPromises[t] =
|
6365
|
+
return this.originValidationPromises[t] || (this.originValidationPromises[t] = ra(e)), this.originValidationPromises[t];
|
6080
6366
|
}
|
6081
6367
|
get _shouldInitProactively() {
|
6082
6368
|
return gn() || un() || Ke();
|
6083
6369
|
}
|
6084
6370
|
}
|
6085
|
-
const
|
6371
|
+
const Sa = Ra;
|
6086
6372
|
var Dt = "@firebase/auth", Pt = "1.7.9";
|
6087
6373
|
/**
|
6088
6374
|
* @license
|
@@ -6100,7 +6386,7 @@ var Dt = "@firebase/auth", Pt = "1.7.9";
|
|
6100
6386
|
* See the License for the specific language governing permissions and
|
6101
6387
|
* limitations under the License.
|
6102
6388
|
*/
|
6103
|
-
class
|
6389
|
+
class Aa {
|
6104
6390
|
constructor(e) {
|
6105
6391
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
6106
6392
|
}
|
@@ -6125,7 +6411,7 @@ class ma {
|
|
6125
6411
|
t && (this.internalListeners.delete(e), t(), this.updateProactiveRefresh());
|
6126
6412
|
}
|
6127
6413
|
assertAuthConfigured() {
|
6128
|
-
|
6414
|
+
u(
|
6129
6415
|
this.auth._initializationPromise,
|
6130
6416
|
"dependent-sdk-initialized-before-auth"
|
6131
6417
|
/* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
|
@@ -6151,7 +6437,7 @@ class ma {
|
|
6151
6437
|
* See the License for the specific language governing permissions and
|
6152
6438
|
* limitations under the License.
|
6153
6439
|
*/
|
6154
|
-
function
|
6440
|
+
function Oa(n) {
|
6155
6441
|
switch (n) {
|
6156
6442
|
case "Node":
|
6157
6443
|
return "node";
|
@@ -6167,12 +6453,12 @@ function _a(n) {
|
|
6167
6453
|
return;
|
6168
6454
|
}
|
6169
6455
|
}
|
6170
|
-
function
|
6456
|
+
function Na(n) {
|
6171
6457
|
Y(new W(
|
6172
6458
|
"auth",
|
6173
6459
|
(e, { options: t }) => {
|
6174
6460
|
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
6175
|
-
|
6461
|
+
u(a && !a.includes(":"), "invalid-api-key", { appName: r.name });
|
6176
6462
|
const o = {
|
6177
6463
|
apiKey: a,
|
6178
6464
|
authDomain: c,
|
@@ -6181,8 +6467,8 @@ function ga(n) {
|
|
6181
6467
|
tokenApiHost: "securetoken.googleapis.com",
|
6182
6468
|
apiScheme: "https",
|
6183
6469
|
sdkClientVersion: vn(n)
|
6184
|
-
}, l = new
|
6185
|
-
return
|
6470
|
+
}, l = new as(r, i, s, o);
|
6471
|
+
return hs(l, t), l;
|
6186
6472
|
},
|
6187
6473
|
"PUBLIC"
|
6188
6474
|
/* ComponentType.PUBLIC */
|
@@ -6201,14 +6487,14 @@ function ga(n) {
|
|
6201
6487
|
"auth"
|
6202
6488
|
/* _ComponentName.AUTH */
|
6203
6489
|
).getImmediate());
|
6204
|
-
return ((r) => new
|
6490
|
+
return ((r) => new Aa(r))(t);
|
6205
6491
|
},
|
6206
6492
|
"PRIVATE"
|
6207
6493
|
/* ComponentType.PRIVATE */
|
6208
6494
|
).setInstantiationMode(
|
6209
6495
|
"EXPLICIT"
|
6210
6496
|
/* InstantiationMode.EXPLICIT */
|
6211
|
-
)),
|
6497
|
+
)), H(Dt, Pt, Oa(n)), H(Dt, Pt, "esm2017");
|
6212
6498
|
}
|
6213
6499
|
/**
|
6214
6500
|
* @license
|
@@ -6226,11 +6512,11 @@ function ga(n) {
|
|
6226
6512
|
* See the License for the specific language governing permissions and
|
6227
6513
|
* limitations under the License.
|
6228
6514
|
*/
|
6229
|
-
const
|
6515
|
+
const Ca = 5 * 60, Da = zt("authIdTokenMaxAge") || Ca;
|
6230
6516
|
let Mt = null;
|
6231
|
-
const
|
6517
|
+
const Pa = (n) => async (e) => {
|
6232
6518
|
const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
6233
|
-
if (r && r >
|
6519
|
+
if (r && r > Da)
|
6234
6520
|
return;
|
6235
6521
|
const i = t == null ? void 0 : t.token;
|
6236
6522
|
Mt !== i && (Mt = i, await fetch(n, {
|
@@ -6240,33 +6526,33 @@ const ba = (n) => async (e) => {
|
|
6240
6526
|
} : {}
|
6241
6527
|
}));
|
6242
6528
|
};
|
6243
|
-
function
|
6529
|
+
function Ma(n = Ri()) {
|
6244
6530
|
const e = Yt(n, "auth");
|
6245
6531
|
if (e.isInitialized())
|
6246
6532
|
return e.getImmediate();
|
6247
|
-
const t =
|
6248
|
-
popupRedirectResolver:
|
6533
|
+
const t = us(n, {
|
6534
|
+
popupRedirectResolver: Sa,
|
6249
6535
|
persistence: [
|
6536
|
+
Fs,
|
6250
6537
|
Rs,
|
6251
|
-
|
6252
|
-
kn
|
6538
|
+
Rn
|
6253
6539
|
]
|
6254
6540
|
}), r = zt("authTokenSyncURL");
|
6255
6541
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
6256
6542
|
const s = new URL(r, location.origin);
|
6257
6543
|
if (location.origin === s.origin) {
|
6258
|
-
const a =
|
6259
|
-
|
6544
|
+
const a = Pa(s.toString());
|
6545
|
+
Ts(t, a, () => a(t.currentUser)), Es(t, (c) => a(c));
|
6260
6546
|
}
|
6261
6547
|
}
|
6262
|
-
const i =
|
6263
|
-
return i &&
|
6548
|
+
const i = Vt("auth");
|
6549
|
+
return i && ps(t, `http://${i}`), t;
|
6264
6550
|
}
|
6265
|
-
function
|
6551
|
+
function La() {
|
6266
6552
|
var n, e;
|
6267
6553
|
return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
|
6268
6554
|
}
|
6269
|
-
|
6555
|
+
os({
|
6270
6556
|
loadJS(n) {
|
6271
6557
|
return new Promise((e, t) => {
|
6272
6558
|
const r = document.createElement("script");
|
@@ -6276,84 +6562,73 @@ Ji({
|
|
6276
6562
|
/* AuthErrorCode.INTERNAL_ERROR */
|
6277
6563
|
);
|
6278
6564
|
s.customData = i, t(s);
|
6279
|
-
}, r.type = "text/javascript", r.charset = "UTF-8",
|
6565
|
+
}, r.type = "text/javascript", r.charset = "UTF-8", La().appendChild(r);
|
6280
6566
|
});
|
6281
6567
|
},
|
6282
6568
|
gapiScript: "https://apis.google.com/js/api.js",
|
6283
6569
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
6284
6570
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
6285
6571
|
});
|
6286
|
-
|
6572
|
+
Na(
|
6287
6573
|
"Browser"
|
6288
6574
|
/* ClientPlatform.BROWSER */
|
6289
6575
|
);
|
6290
|
-
const
|
6576
|
+
const Ua = Ln({
|
6291
6577
|
history: Un(),
|
6292
6578
|
routes: [...We, ...le]
|
6293
6579
|
});
|
6294
6580
|
let Pe, Me;
|
6295
|
-
|
6581
|
+
Ua.beforeEach(async (n) => {
|
6296
6582
|
const {
|
6297
6583
|
sessionUser: e,
|
6298
6584
|
currentRestaurant: t,
|
6299
6585
|
currentBusiness: r,
|
6300
6586
|
readRestaurants: i,
|
6301
6587
|
changeRestaurant: s
|
6302
|
-
} =
|
6588
|
+
} = Ve();
|
6303
6589
|
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (Pe || (Pe = new Promise((a) => {
|
6304
|
-
const c =
|
6590
|
+
const c = Z(e, (o) => {
|
6305
6591
|
var l;
|
6306
6592
|
o && (c(), a(((l = e.value) == null ? void 0 : l.isInternal) ?? !1));
|
6307
6593
|
});
|
6308
6594
|
})), Pe) : !r.value || !t.value ? (Me || (Me = Promise.all([
|
6309
6595
|
new Promise(async (a) => {
|
6310
|
-
const c =
|
6596
|
+
const c = Z(r, (o) => {
|
6311
6597
|
o && (c(), a(!0));
|
6312
6598
|
});
|
6313
6599
|
}),
|
6314
6600
|
new Promise(async (a) => {
|
6315
|
-
const c =
|
6601
|
+
const c = Z(t, (l) => {
|
6316
6602
|
l && (c(), a(!0));
|
6317
6603
|
}), o = await i();
|
6318
6604
|
await s(o == null ? void 0 : o.at(0));
|
6319
6605
|
})
|
6320
6606
|
]).then((a) => !0)), Me) : !0;
|
6321
6607
|
});
|
6322
|
-
const
|
6608
|
+
const Ba = /* @__PURE__ */ Ut({
|
6323
6609
|
__name: "AppSidebar",
|
6324
6610
|
setup(n) {
|
6325
|
-
const e =
|
6326
|
-
|
6327
|
-
let
|
6328
|
-
t.currentRoute.value.meta.parent && (
|
6611
|
+
const e = Ve(), t = Bn(), { t: r } = Wn(), i = xn(t.currentRoute.value.name);
|
6612
|
+
Z(t.currentRoute, () => {
|
6613
|
+
let l = t.currentRoute.value.name;
|
6614
|
+
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
6329
6615
|
});
|
6330
|
-
const
|
6331
|
-
var
|
6332
|
-
if (!((
|
6616
|
+
const s = We.map((l) => {
|
6617
|
+
var m;
|
6618
|
+
if (!((m = l.meta) != null && m.sidebarDisplay))
|
6333
6619
|
return;
|
6334
|
-
const l = {
|
6335
|
-
label:
|
6336
|
-
value:
|
6620
|
+
const d = l.meta.sidebarDisplay, h = {
|
6621
|
+
label: d.startsWith("i18n:") ? r(d.replaceAll("i18n:", "")) : d,
|
6622
|
+
value: l.name,
|
6337
6623
|
action: () => {
|
6338
|
-
if (t.currentRoute.value.name !==
|
6339
|
-
return t.push({ name:
|
6624
|
+
if (t.currentRoute.value.name !== l.name)
|
6625
|
+
return t.push({ name: l.name });
|
6340
6626
|
}
|
6341
6627
|
};
|
6342
|
-
return
|
6343
|
-
}).filter((
|
6344
|
-
var
|
6345
|
-
if ((
|
6346
|
-
return {
|
6347
|
-
label: o.meta.sidebarDisplay,
|
6348
|
-
value: o.name,
|
6349
|
-
action: () => {
|
6350
|
-
if (t.currentRoute.value.name !== o.name)
|
6351
|
-
return t.push({ name: o.name });
|
6352
|
-
}
|
6353
|
-
};
|
6354
|
-
}).filter((o) => !!o), a = (o) => le.map((l) => {
|
6355
|
-
var u;
|
6356
|
-
if ((u = l.meta) != null && u.sidebarDisplay && l.meta.section === o)
|
6628
|
+
return l.meta.sidebarNew && (h.badge = () => Hn($n.FmPill, { label: "New" })), h;
|
6629
|
+
}).filter((l) => !!l), a = le.map((l) => {
|
6630
|
+
var d;
|
6631
|
+
if ((d = l.meta) != null && d.sidebarDisplay && !l.meta.section)
|
6357
6632
|
return {
|
6358
6633
|
label: l.meta.sidebarDisplay,
|
6359
6634
|
value: l.name,
|
@@ -6362,87 +6637,99 @@ const wa = /* @__PURE__ */ Ut({
|
|
6362
6637
|
return t.push({ name: l.name });
|
6363
6638
|
}
|
6364
6639
|
};
|
6365
|
-
}).filter((l) => !!l), c =
|
6366
|
-
var
|
6367
|
-
|
6368
|
-
|
6640
|
+
}).filter((l) => !!l), c = (l) => le.map((d) => {
|
6641
|
+
var h;
|
6642
|
+
if ((h = d.meta) != null && h.sidebarDisplay && d.meta.section === l)
|
6643
|
+
return {
|
6644
|
+
label: d.meta.sidebarDisplay,
|
6645
|
+
value: d.name,
|
6646
|
+
action: () => {
|
6647
|
+
if (t.currentRoute.value.name !== d.name)
|
6648
|
+
return t.push({ name: d.name });
|
6649
|
+
}
|
6650
|
+
};
|
6651
|
+
}).filter((d) => !!d), o = Lt(() => {
|
6652
|
+
var d;
|
6653
|
+
const l = [...s];
|
6654
|
+
return (d = e.sessionUser.value) != null && d.isInternal && (l.push({
|
6369
6655
|
label: "",
|
6370
6656
|
value: "divider",
|
6371
6657
|
disabled: !0
|
6372
|
-
}),
|
6658
|
+
}), l.push({
|
6373
6659
|
label: "Devices",
|
6374
6660
|
icon: "desktop_windows",
|
6375
6661
|
value: "divider",
|
6376
6662
|
disabled: !0
|
6377
|
-
}),
|
6663
|
+
}), l.push(...c("device")), l.push({
|
6378
6664
|
label: "",
|
6379
6665
|
value: "divider",
|
6380
6666
|
disabled: !0
|
6381
|
-
}),
|
6667
|
+
}), l.push({
|
6382
6668
|
label: "Payment Gateway",
|
6383
6669
|
icon: "account_balance",
|
6384
6670
|
value: "divider",
|
6385
6671
|
disabled: !0
|
6386
|
-
}),
|
6672
|
+
}), l.push(...c("payment-gateway")), l.push({
|
6387
6673
|
label: "",
|
6388
6674
|
value: "divider",
|
6389
6675
|
disabled: !0
|
6390
|
-
}),
|
6676
|
+
}), l.push({
|
6391
6677
|
label: "General",
|
6392
6678
|
icon: "admin_panel_settings",
|
6393
6679
|
value: "divider",
|
6394
6680
|
disabled: !0
|
6395
|
-
}),
|
6681
|
+
}), l.push(...a)), l;
|
6396
6682
|
});
|
6397
|
-
return (
|
6398
|
-
const
|
6399
|
-
return Ft(),
|
6400
|
-
modelValue:
|
6401
|
-
"onUpdate:modelValue":
|
6402
|
-
items:
|
6683
|
+
return (l, d) => {
|
6684
|
+
const h = Bt("FmCollapsibleTabs");
|
6685
|
+
return Ft(), xt(h, {
|
6686
|
+
modelValue: i.value,
|
6687
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => i.value = m),
|
6688
|
+
items: o.value,
|
6403
6689
|
class: "py-16 px-8 w-[240px]"
|
6404
6690
|
}, null, 8, ["modelValue", "items"]);
|
6405
6691
|
};
|
6406
6692
|
}
|
6407
6693
|
});
|
6408
|
-
var
|
6409
|
-
const
|
6694
|
+
var Fa = { authClientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com" };
|
6695
|
+
const $a = /* @__PURE__ */ Ut({
|
6410
6696
|
__name: "App",
|
6411
6697
|
setup(n) {
|
6412
|
-
const { state: e } =
|
6698
|
+
const { state: e } = sr(), t = Ve(), r = Fn(), i = Xt(Fa.firebase);
|
6413
6699
|
async function s() {
|
6414
6700
|
const a = t.sessionUser.value;
|
6415
6701
|
if (!a || !a.token) return;
|
6416
|
-
const c = await a.getCustomToken(), o =
|
6417
|
-
await
|
6702
|
+
const c = await a.getCustomToken(), o = Ma(i);
|
6703
|
+
await ys(o, c);
|
6418
6704
|
}
|
6419
|
-
return s(),
|
6705
|
+
return s(), Z(t.sessionUser, s), jn(() => {
|
6420
6706
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
6421
|
-
}),
|
6422
|
-
t.registerSidebarComponent(
|
6707
|
+
}), Gn(() => {
|
6708
|
+
t.registerSidebarComponent(Ba);
|
6423
6709
|
}), (a, c) => {
|
6424
6710
|
const o = Bt("RouterView");
|
6425
|
-
return Ft(),
|
6426
|
-
key:
|
6711
|
+
return Ft(), xt(o, {
|
6712
|
+
key: Vn(r).path
|
6427
6713
|
});
|
6428
6714
|
};
|
6429
6715
|
}
|
6430
|
-
}),
|
6431
|
-
|
6432
|
-
|
6433
|
-
];
|
6716
|
+
}), Za = {
|
6717
|
+
"en-US": qn,
|
6718
|
+
"zh-CN": ir
|
6719
|
+
}, Ja = [...le, ...We];
|
6434
6720
|
export {
|
6435
6721
|
W as C,
|
6436
6722
|
M as F,
|
6437
6723
|
ee as S,
|
6438
6724
|
Y as _,
|
6439
6725
|
Yt as a,
|
6440
|
-
|
6441
|
-
|
6442
|
-
|
6726
|
+
Wa as b,
|
6727
|
+
Ri as c,
|
6728
|
+
za as d,
|
6443
6729
|
gt as e,
|
6444
|
-
|
6730
|
+
Ja as f,
|
6445
6731
|
z as g,
|
6446
|
-
|
6447
|
-
|
6732
|
+
$a as h,
|
6733
|
+
Za as i,
|
6734
|
+
H as r
|
6448
6735
|
};
|