@feedmepos/mf-payment 1.1.0-beta.2 → 1.1.0-beta.4
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-BpMu58oE.js → PayoutAccount-CZKUEPbN.js} +5 -5
- package/dist/{PayoutAccount-z-gdodfR.js → PayoutAccount-Ts2Z2raZ.js} +3 -3
- package/dist/{PayoutAccountSetting-jZJu4WWL.js → PayoutAccountSetting-DqSSSnQE.js} +3 -3
- package/dist/{Restaurant-DfBX5uPS.js → Restaurant-BCXBIILv.js} +4 -4
- package/dist/{RestaurantSetting-KPtRoif-.js → RestaurantSetting-4_3HIw6v.js} +3 -3
- package/dist/{Settlement-DbMQAA0_.js → Settlement-TZDo1dnJ.js} +3 -3
- package/dist/{Settlement-smC2PDKA.js → Settlement-Ts42OzTc.js} +3 -3
- package/dist/{SettlementTransactions-Cw9DnODr.js → SettlementTransactions-C_H47ljE.js} +3 -3
- package/dist/{SettlementTransactions-Bs8Il-GO.js → SettlementTransactions-Dyn6UWKB.js} +3 -3
- package/dist/{Terminal-HLOGtr0x.js → Terminal-C3tx-emu.js} +5 -5
- package/dist/{TerminalSetting-DraCszpQ.js → TerminalSetting-DpZucaIJ.js} +3 -3
- package/dist/{Transaction-B8cHQbbP.js → Transaction-5WAW_UKm.js} +6 -6
- package/dist/{Transaction-_CB4VTT9.js → Transaction-iINu8lva.js} +5 -5
- package/dist/{TransactionOld-BhzUSu5h.js → TransactionOld-B6kAsyZm.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-UcnQKwQ5.js → TransactionTable.vue_vue_type_script_setup_true_lang-DawAkV40.js} +98 -89
- package/dist/{app-DWRPKvx2.js → app-RfKpnd0a.js} +670 -654
- package/dist/app.d.ts +16 -0
- package/dist/app.js +1 -1
- package/dist/{assets-BImh8bhR.js → assets-ChfqPf_m.js} +58 -44
- package/dist/{grafana-CPOGSE20.js → grafana-CH6R4WrA.js} +1 -1
- package/dist/{index-DuSw-EaU.js → index-BePu4ThV.js} +1 -1
- package/dist/{index-DtT3I2PI.js → index-CCgcqFYk.js} +1 -1
- package/dist/{index-8eCaI4jI.js → index-CQWyIXv7.js} +1 -1
- package/dist/{index-D5DlMaeB.js → index-CgwJFiRk.js} +1 -1
- package/dist/{index-CNZFZxie.js → index-DXP4-wA7.js} +1 -1
- package/dist/{index-eznEOmAe.js → index-h18ASkaN.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DNXWZt8k.js → index.vue_vue_type_script_setup_true_lang-CZU8RNiB.js} +1 -1
- package/dist/model/transaction.d.ts +2 -0
- package/dist/package.json +1 -1
- package/dist/{payout-account-CjDkY3wf.js → payout-account-0OIjt3Zv.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,14 +1,19 @@
|
|
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
|
2
|
+
import { computed as Lt, watch as Z, defineComponent as Ut, ref as jn, resolveComponent as Bt, openBlock as Ft, createBlock as jt, h as xn, onMounted as Hn, 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
6
|
const Zn = {
|
7
7
|
select: "Select filter entity",
|
8
8
|
restaurant: "Restaurant",
|
9
9
|
device: "Device",
|
10
10
|
payout_account: "Payout Account"
|
11
|
-
},
|
11
|
+
}, Jn = {
|
12
|
+
payout_account: "Payout Account",
|
13
|
+
transaction: "Transactions",
|
14
|
+
"transaction-new": "Transactions",
|
15
|
+
settlement: "Settlements"
|
16
|
+
}, Xn = {
|
12
17
|
title: "Settlements",
|
13
18
|
description: "Settlements are the finalization of financial transactions, transferring funds to complete payments.",
|
14
19
|
export: "Export",
|
@@ -65,7 +70,7 @@ const Zn = {
|
|
65
70
|
settlement_amount: "Settlement Amount"
|
66
71
|
}
|
67
72
|
}
|
68
|
-
},
|
73
|
+
}, Yn = {
|
69
74
|
title: "Transactions",
|
70
75
|
description: "Transactions are purchases or payments made over the internet using electronic methods like cards or digital wallets.",
|
71
76
|
restaurant: "Restaurant",
|
@@ -80,16 +85,18 @@ const Zn = {
|
|
80
85
|
table: {
|
81
86
|
id: "Transaction ID",
|
82
87
|
pay_id: "Pay ID",
|
88
|
+
gateway_id: "Gateway ID",
|
83
89
|
bill_seq: "Bill Seq No",
|
84
90
|
gateway: "Gateway",
|
85
91
|
method: "Method",
|
86
92
|
type: "Type",
|
87
93
|
status: "Status",
|
94
|
+
source: "Source",
|
88
95
|
transaction_at: "Transaction At",
|
89
96
|
sales_amount: "Sales Amount",
|
90
97
|
actions: "Actions"
|
91
98
|
}
|
92
|
-
},
|
99
|
+
}, Kn = {
|
93
100
|
title: "Payout Account",
|
94
101
|
description: "A Payout Account is an account used to receive payments or disbursements, such as earnings or refunds, typically linked to a bank.",
|
95
102
|
button: {
|
@@ -134,17 +141,23 @@ const Zn = {
|
|
134
141
|
document: "Legal Documents"
|
135
142
|
}
|
136
143
|
}
|
137
|
-
},
|
144
|
+
}, qn = {
|
138
145
|
components: Zn,
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
146
|
+
routes: Jn,
|
147
|
+
settlements: Xn,
|
148
|
+
transactions: Yn,
|
149
|
+
payout_account: Kn
|
150
|
+
}, Qn = {
|
143
151
|
select: "选择筛选对象",
|
144
152
|
restaurant: "餐厅",
|
145
153
|
device: "设备",
|
146
154
|
payout_account: "结算账户"
|
147
|
-
},
|
155
|
+
}, er = {
|
156
|
+
payout_account: "结算账户",
|
157
|
+
transaction: "交易订单",
|
158
|
+
"transaction-new": "交易订单",
|
159
|
+
settlement: "交易结算"
|
160
|
+
}, tr = {
|
148
161
|
title: "交易结算",
|
149
162
|
description: "交易结算是金融交易的最终处理,交易流水的详细,完成付款的资金转移。",
|
150
163
|
export: "导出",
|
@@ -201,7 +214,7 @@ const Zn = {
|
|
201
214
|
settlement_amount: "结算金额"
|
202
215
|
}
|
203
216
|
}
|
204
|
-
},
|
217
|
+
}, nr = {
|
205
218
|
title: "交易订单",
|
206
219
|
description: "交易订单是使用卡或数字钱包等电子方式通过互联网进行的购买或付款。",
|
207
220
|
restaurant: "餐厅",
|
@@ -216,16 +229,18 @@ const Zn = {
|
|
216
229
|
table: {
|
217
230
|
id: "交易ID",
|
218
231
|
pay_id: "支付ID",
|
232
|
+
gateway_id: "网关ID",
|
219
233
|
bill_seq: "订单序列号",
|
220
234
|
gateway: "支付网关",
|
221
235
|
method: "支付方法",
|
222
236
|
type: "支付类型",
|
223
237
|
status: "状态",
|
238
|
+
source: "源",
|
224
239
|
transaction_at: "交易时间",
|
225
240
|
sales_amount: "交易金额",
|
226
241
|
actions: "操作"
|
227
242
|
}
|
228
|
-
},
|
243
|
+
}, rr = {
|
229
244
|
title: "结算账户",
|
230
245
|
description: "结算账户是用于接收付款或支出的账户,例如收入或退款,通常与银行关联。",
|
231
246
|
button: {
|
@@ -270,11 +285,12 @@ const Zn = {
|
|
270
285
|
document: "法律文件"
|
271
286
|
}
|
272
287
|
}
|
273
|
-
},
|
274
|
-
components:
|
275
|
-
|
276
|
-
|
277
|
-
|
288
|
+
}, ir = {
|
289
|
+
components: Qn,
|
290
|
+
routes: er,
|
291
|
+
settlements: tr,
|
292
|
+
transactions: nr,
|
293
|
+
payout_account: rr
|
278
294
|
}, le = [
|
279
295
|
{
|
280
296
|
path: "/admin/restaurants",
|
@@ -283,7 +299,7 @@ const Zn = {
|
|
283
299
|
sidebarDisplay: "Restaurants",
|
284
300
|
section: "payment-gateway"
|
285
301
|
},
|
286
|
-
component: () => import("./Restaurant-
|
302
|
+
component: () => import("./Restaurant-BCXBIILv.js")
|
287
303
|
},
|
288
304
|
{
|
289
305
|
path: "/admin/restaurants/:restaurantId",
|
@@ -292,7 +308,7 @@ const Zn = {
|
|
292
308
|
meta: {
|
293
309
|
parent: "mf-payment-admin.restaurant"
|
294
310
|
},
|
295
|
-
component: () => import("./RestaurantSetting-
|
311
|
+
component: () => import("./RestaurantSetting-4_3HIw6v.js")
|
296
312
|
},
|
297
313
|
{
|
298
314
|
path: "/admin/payout-accounts",
|
@@ -301,7 +317,7 @@ const Zn = {
|
|
301
317
|
sidebarDisplay: "Payout Accounts",
|
302
318
|
section: "payment-gateway"
|
303
319
|
},
|
304
|
-
component: () => import("./PayoutAccount-
|
320
|
+
component: () => import("./PayoutAccount-CZKUEPbN.js")
|
305
321
|
},
|
306
322
|
{
|
307
323
|
path: "/admin/payout-accounts/:accountId",
|
@@ -310,7 +326,7 @@ const Zn = {
|
|
310
326
|
meta: {
|
311
327
|
parent: "mf-payment-admin.payout-account"
|
312
328
|
},
|
313
|
-
component: () => import("./PayoutAccountSetting-
|
329
|
+
component: () => import("./PayoutAccountSetting-DqSSSnQE.js")
|
314
330
|
},
|
315
331
|
{
|
316
332
|
path: "/admin/terminal/pos",
|
@@ -319,7 +335,7 @@ const Zn = {
|
|
319
335
|
sidebarDisplay: "POS",
|
320
336
|
section: "device"
|
321
337
|
},
|
322
|
-
component: () => import("./Terminal-
|
338
|
+
component: () => import("./Terminal-C3tx-emu.js"),
|
323
339
|
props: {
|
324
340
|
type: "POS"
|
325
341
|
}
|
@@ -331,7 +347,7 @@ const Zn = {
|
|
331
347
|
sidebarDisplay: "Kiosks",
|
332
348
|
section: "device"
|
333
349
|
},
|
334
|
-
component: () => import("./Terminal-
|
350
|
+
component: () => import("./Terminal-C3tx-emu.js"),
|
335
351
|
props: {
|
336
352
|
type: "KIOSK"
|
337
353
|
}
|
@@ -343,7 +359,7 @@ const Zn = {
|
|
343
359
|
sidebarDisplay: "Terminals",
|
344
360
|
section: "device"
|
345
361
|
},
|
346
|
-
component: () => import("./Terminal-
|
362
|
+
component: () => import("./Terminal-C3tx-emu.js"),
|
347
363
|
props: {
|
348
364
|
type: "TERMINAL"
|
349
365
|
}
|
@@ -355,7 +371,7 @@ const Zn = {
|
|
355
371
|
meta: {
|
356
372
|
parent: "mf-payment-admin.pos"
|
357
373
|
},
|
358
|
-
component: () => import("./TerminalSetting-
|
374
|
+
component: () => import("./TerminalSetting-DpZucaIJ.js")
|
359
375
|
},
|
360
376
|
{
|
361
377
|
path: "/admin/terminal/kiosk/:terminalId",
|
@@ -364,7 +380,7 @@ const Zn = {
|
|
364
380
|
meta: {
|
365
381
|
parent: "mf-payment-admin.kiosk"
|
366
382
|
},
|
367
|
-
component: () => import("./TerminalSetting-
|
383
|
+
component: () => import("./TerminalSetting-DpZucaIJ.js")
|
368
384
|
},
|
369
385
|
{
|
370
386
|
path: "/admin/terminal/terminal/:terminalId",
|
@@ -373,7 +389,7 @@ const Zn = {
|
|
373
389
|
meta: {
|
374
390
|
parent: "mf-payment-admin.terminal"
|
375
391
|
},
|
376
|
-
component: () => import("./TerminalSetting-
|
392
|
+
component: () => import("./TerminalSetting-DpZucaIJ.js")
|
377
393
|
},
|
378
394
|
{
|
379
395
|
path: "/admin/transaction",
|
@@ -381,7 +397,7 @@ const Zn = {
|
|
381
397
|
meta: {
|
382
398
|
sidebarDisplay: "Transactions"
|
383
399
|
},
|
384
|
-
component: () => import("./Transaction-
|
400
|
+
component: () => import("./Transaction-iINu8lva.js")
|
385
401
|
},
|
386
402
|
{
|
387
403
|
path: "/admin/settlement",
|
@@ -389,7 +405,7 @@ const Zn = {
|
|
389
405
|
meta: {
|
390
406
|
sidebarDisplay: "Settlements"
|
391
407
|
},
|
392
|
-
component: () => import("./Settlement-
|
408
|
+
component: () => import("./Settlement-TZDo1dnJ.js")
|
393
409
|
},
|
394
410
|
{
|
395
411
|
path: "/admin/settlement/:settlementId",
|
@@ -398,7 +414,7 @@ const Zn = {
|
|
398
414
|
meta: {
|
399
415
|
parent: "mf-payment-admin.settlement"
|
400
416
|
},
|
401
|
-
component: () => import("./SettlementTransactions-
|
417
|
+
component: () => import("./SettlementTransactions-Dyn6UWKB.js")
|
402
418
|
}
|
403
419
|
], We = [
|
404
420
|
{
|
@@ -408,46 +424,46 @@ const Zn = {
|
|
408
424
|
{
|
409
425
|
path: "/payout-account",
|
410
426
|
name: "mf-payment-payout-account",
|
411
|
-
component: () => import("./PayoutAccount-
|
427
|
+
component: () => import("./PayoutAccount-Ts2Z2raZ.js"),
|
412
428
|
meta: {
|
413
|
-
sidebarDisplay: "
|
429
|
+
sidebarDisplay: "i18n:routes.payout_account"
|
414
430
|
}
|
415
431
|
},
|
416
432
|
{
|
417
433
|
path: "/transaction-old",
|
418
434
|
name: "mf-payment-old-transaction",
|
419
|
-
component: () => import("./TransactionOld-
|
435
|
+
component: () => import("./TransactionOld-B6kAsyZm.js"),
|
420
436
|
meta: {
|
421
|
-
sidebarDisplay: "
|
437
|
+
sidebarDisplay: "i18n:routes.transaction"
|
422
438
|
}
|
423
439
|
},
|
424
440
|
{
|
425
441
|
path: "/transaction",
|
426
442
|
name: "mf-payment-transaction",
|
427
|
-
component: () => import("./Transaction-
|
443
|
+
component: () => import("./Transaction-5WAW_UKm.js"),
|
428
444
|
meta: {
|
429
|
-
sidebarDisplay: "
|
445
|
+
sidebarDisplay: "i18n:routes.transaction-new",
|
430
446
|
sidebarNew: !0
|
431
447
|
}
|
432
448
|
},
|
433
449
|
{
|
434
450
|
path: "/settlement",
|
435
451
|
name: "mf-payment-settlement",
|
436
|
-
component: () => import("./Settlement-
|
452
|
+
component: () => import("./Settlement-Ts42OzTc.js"),
|
437
453
|
meta: {
|
438
|
-
sidebarDisplay: "
|
454
|
+
sidebarDisplay: "i18n:routes.settlement"
|
439
455
|
}
|
440
456
|
},
|
441
457
|
{
|
442
458
|
path: "/settlement/:settlementId",
|
443
459
|
name: "mf-payment-settlement-transaction",
|
444
460
|
props: !0,
|
445
|
-
component: () => import("./SettlementTransactions-
|
461
|
+
component: () => import("./SettlementTransactions-C_H47ljE.js"),
|
446
462
|
meta: {
|
447
463
|
parent: "mf-payment-settlement"
|
448
464
|
}
|
449
465
|
}
|
450
|
-
],
|
466
|
+
], sr = zn("mf-payment-iframe", () => {
|
451
467
|
const n = {
|
452
468
|
isIframe: !1
|
453
469
|
}, e = Lt(() => n);
|
@@ -459,7 +475,7 @@ const Zn = {
|
|
459
475
|
init: t
|
460
476
|
};
|
461
477
|
});
|
462
|
-
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_87b15eec-8de8-4c91-819c-f9fbabc7691f", 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_87b15eec-8de8-4c91-819c-f9fbabc7691f", 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_AfQtBhC9yphVOmKZeH0pJdxjLcHRqc1bc4es", 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: "714", 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:6138", 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: "13922172776", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "767e7afb433e255e9404dd55eccc04cc9f009b48", 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.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6N2YwMDhiMzQtZjBjYi00ZDg1LTgzNjctMzEyZjgxODg5MzE2OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzI5IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46N2YwMDhiMzQtZjBjYi00ZDg1LTgzNjctMzEyZjgxODg5MzE2OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzI5IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiNmVjYmIwZjktMWE2Yy00NDU1LWFjOGUtNGMwNDc0NDg5ODRhIiwic2lkIjoiN2FlYmIzODUtNzgzZi00ZmJlLThmOWEtZjIzOTZhNzc1MWI2IiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcIjc2N2U3YWZiNDMzZTI1NWU5NDA0ZGQ1NWVjY2MwNGNjOWYwMDliNDhcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTM5MjIxNzI3NzZcIixcInJ1bl9udW1iZXJcIjpcIjE0NlwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCI3NjdlN2FmYjQzM2UyNTVlOTQwNGRkNTVlY2NjMDRjYzlmMDA5YjQ4XCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI3NjdlN2FmYjQzM2UyNTVlOTQwNGRkNTVlY2NjMDRjYzlmMDA5YjQ4XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI3ZjAwOGIzNC1mMGNiLTRkODUtODM2Ny0zMTJmODE4ODkzMTYuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDIyOTY5NzcsImV4cCI6MTc0MjMxOTc3N30.OOKMNsFraeUCJlpmZD3gTAxTdf9lHCZlfj_HEtzA2tRA4bGdidLdMlsXmORBZ5j06lB4MVjBv-ZQQOVCMvu5wx5lqBPUMiYUxzTGKG20liT23NW58a8CGKaEjv_Vq4w3YZVIniaP9PS2qHvzBmvwofdmUh_eVv4-LQhMOw7JWCArqDWgwsSa2C63A1xIS-ZFUuPlsX60sypeQ7_0jhRnLG3xKVyLAgQyTHcZY0nheUx2MXCmaeA26Uy8uMxdTLqHzAQHwciBp1TzHob7PEqFlLJauiQzxUf6v6TfaSJEx2rRk9OV4kAZNHeYLPGECI_q8Hhod2L9zDBWDr6tZ4YjtQ", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1742297629522-0.3002916058976224:/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--1742297629366-0.5060425940480151:/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--1742297629205-0.3115261064996848:/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_df4fcce8-fcd8-4515-9a1f-056ea32ebc67", INVOCATION_ID: "a2f68627a15c4711a18929f7f7a1ad40", 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: "146", 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 39", 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.2", 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: "767e7afb433e255e9404dd55eccc04cc9f009b48", 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_87b15eec-8de8-4c91-819c-f9fbabc7691f", 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/7f008b34-f0cb-4d85-8367-312f81889316/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_87b15eec-8de8-4c91-819c-f9fbabc7691f", 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_87b15eec-8de8-4c91-819c-f9fbabc7691f", 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" };
|
478
|
+
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_312cf15c-2ead-41b9-917a-4b774bb75569", 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_312cf15c-2ead-41b9-917a-4b774bb75569", 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_TnkbX5LZMoE2IiZwgBWLIvG7aZzvg40tCfip", 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: "709", 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:6225", 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: "13944367719", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "874864a29a8d01cd62bccc8276314d8a16a13c8f", 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.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6MWE4YmQwYTMtMWUyNC00ZmMyLTg2YmMtNTFlZTNlOGViNTE3OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzQ2IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46MWE4YmQwYTMtMWUyNC00ZmMyLTg2YmMtNTFlZTNlOGViNTE3OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzQ2IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiNjY3YTU2NjAtYmNmZi00NjE3LTgyNTItMjg0ZDdkYWIzNzVjIiwic2lkIjoiMjc3MDRjMTgtYTJiNy00NmMxLWJjOTctMjVlMDhiZTgxZDIyIiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcIjg3NDg2NGEyOWE4ZDAxY2Q2MmJjY2M4Mjc2MzE0ZDhhMTZhMTNjOGZcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTM5NDQzNjc3MTlcIixcInJ1bl9udW1iZXJcIjpcIjE0OVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCI4NzQ4NjRhMjlhOGQwMWNkNjJiY2NjODI3NjMxNGQ4YTE2YTEzYzhmXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI4NzQ4NjRhMjlhOGQwMWNkNjJiY2NjODI3NjMxNGQ4YTE2YTEzYzhmXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiIxYThiZDBhMy0xZTI0LTRmYzItODZiYy01MWVlM2U4ZWI1MTcuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDIzNzk2NjksImV4cCI6MTc0MjQwMjQ2OX0.dXP2o6P70ly6RhJrFqwJEOZv67dFcBS6mz7OhsOlR3fBWlVpB-XaF-48LjnMkCklQRjyzsM-VDWCT1kkC1dyZfkjqwEcG363aii2pvewx-KR3WQsLkZey7MDuF4r4TnzHWHA8B1OYriJKxToR6Rfsy9UVNkl1qWjgH9mnhCiFTo_Pu_AXrnGN49KvHb2fyrp0XMsnv4syYqlHUxY9hi1jOOqkkjRFeTeIKJJUpGrmoCCnC_x9WhwjKU4esSK5FzKZAoN4gvQpEaKzR6LKhq-qA2ucv3p1NmX_B53glca4e2FzcMgGq8Qbt92PwUyetFqQdQH6Fmt1rUuC7ykBeSjtw", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1742380305693-0.8896783176314889:/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--1742380305537-0.8856494691544541:/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--1742380305381-0.9488952872582228:/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_432261ed-90c8-4cf5-b88b-34f5d5b5c46e", INVOCATION_ID: "06c0c2a5c8704583964836065a677503", 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: "149", 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 410", 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.4", 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: "874864a29a8d01cd62bccc8276314d8a16a13c8f", 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_312cf15c-2ead-41b9-917a-4b774bb75569", 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/1a8bd0a3-1e24-4fc2-86bc-51ee3e8eb517/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_312cf15c-2ead-41b9-917a-4b774bb75569", 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_312cf15c-2ead-41b9-917a-4b774bb75569", 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" };
|
463
479
|
/**
|
464
480
|
* @license
|
465
481
|
* Copyright 2017 Google LLC
|
@@ -476,7 +492,7 @@ var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_sta
|
|
476
492
|
* See the License for the specific language governing permissions and
|
477
493
|
* limitations under the License.
|
478
494
|
*/
|
479
|
-
const
|
495
|
+
const xt = function(n) {
|
480
496
|
const e = [];
|
481
497
|
let t = 0;
|
482
498
|
for (let r = 0; r < n.length; r++) {
|
@@ -484,7 +500,7 @@ const jt = function(n) {
|
|
484
500
|
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);
|
485
501
|
}
|
486
502
|
return e;
|
487
|
-
},
|
503
|
+
}, ar = function(n) {
|
488
504
|
const e = [];
|
489
505
|
let t = 0, r = 0;
|
490
506
|
for (; t < n.length; ) {
|
@@ -562,9 +578,9 @@ const jt = function(n) {
|
|
562
578
|
this.init_();
|
563
579
|
const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
564
580
|
for (let i = 0; i < n.length; i += 3) {
|
565
|
-
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,
|
581
|
+
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;
|
566
582
|
let m = (c & 15) << 2 | l >> 6, v = l & 63;
|
567
|
-
o || (v = 64, a || (m = 64)), r.push(t[
|
583
|
+
o || (v = 64, a || (m = 64)), r.push(t[d], t[h], t[m], t[v]);
|
568
584
|
}
|
569
585
|
return r.join("");
|
570
586
|
},
|
@@ -577,7 +593,7 @@ const jt = function(n) {
|
|
577
593
|
* @return The base64 encoded string.
|
578
594
|
*/
|
579
595
|
encodeString(n, e) {
|
580
|
-
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(
|
596
|
+
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(xt(n), e);
|
581
597
|
},
|
582
598
|
/**
|
583
599
|
* Base64-decode a string.
|
@@ -588,7 +604,7 @@ const jt = function(n) {
|
|
588
604
|
* @return string representing the decoded value.
|
589
605
|
*/
|
590
606
|
decodeString(n, e) {
|
591
|
-
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) :
|
607
|
+
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : ar(this.decodeStringToByteArray(n, e));
|
592
608
|
},
|
593
609
|
/**
|
594
610
|
* Base64-decode a string.
|
@@ -613,14 +629,14 @@ const jt = function(n) {
|
|
613
629
|
++i;
|
614
630
|
const l = i < n.length ? t[n.charAt(i)] : 64;
|
615
631
|
++i;
|
616
|
-
const
|
617
|
-
if (++i, s == null || c == null || l == null ||
|
618
|
-
throw new
|
632
|
+
const h = i < n.length ? t[n.charAt(i)] : 64;
|
633
|
+
if (++i, s == null || c == null || l == null || h == null)
|
634
|
+
throw new or();
|
619
635
|
const m = s << 2 | c >> 4;
|
620
636
|
if (r.push(m), l !== 64) {
|
621
637
|
const v = c << 4 & 240 | l >> 2;
|
622
|
-
if (r.push(v),
|
623
|
-
const F = l << 6 & 192 |
|
638
|
+
if (r.push(v), h !== 64) {
|
639
|
+
const F = l << 6 & 192 | h;
|
624
640
|
r.push(F);
|
625
641
|
}
|
626
642
|
}
|
@@ -640,17 +656,17 @@ const jt = function(n) {
|
|
640
656
|
}
|
641
657
|
}
|
642
658
|
};
|
643
|
-
class
|
659
|
+
class or extends Error {
|
644
660
|
constructor() {
|
645
661
|
super(...arguments), this.name = "DecodeBase64StringError";
|
646
662
|
}
|
647
663
|
}
|
648
|
-
const
|
649
|
-
const e =
|
664
|
+
const cr = function(n) {
|
665
|
+
const e = xt(n);
|
650
666
|
return Ht.encodeByteArray(e, !0);
|
651
667
|
}, de = function(n) {
|
652
|
-
return
|
653
|
-
},
|
668
|
+
return cr(n).replace(/\./g, "");
|
669
|
+
}, Gt = function(n) {
|
654
670
|
try {
|
655
671
|
return Ht.decodeString(n, !0);
|
656
672
|
} catch (e) {
|
@@ -674,7 +690,7 @@ const sr = function(n) {
|
|
674
690
|
* See the License for the specific language governing permissions and
|
675
691
|
* limitations under the License.
|
676
692
|
*/
|
677
|
-
function
|
693
|
+
function lr() {
|
678
694
|
if (typeof self < "u")
|
679
695
|
return self;
|
680
696
|
if (typeof window < "u")
|
@@ -699,13 +715,13 @@ function ar() {
|
|
699
715
|
* See the License for the specific language governing permissions and
|
700
716
|
* limitations under the License.
|
701
717
|
*/
|
702
|
-
const
|
718
|
+
const dr = () => lr().__FIREBASE_DEFAULTS__, ur = () => {
|
703
719
|
if (typeof process > "u" || typeof ot > "u")
|
704
720
|
return;
|
705
721
|
const n = ot.__FIREBASE_DEFAULTS__;
|
706
722
|
if (n)
|
707
723
|
return JSON.parse(n);
|
708
|
-
},
|
724
|
+
}, hr = () => {
|
709
725
|
if (typeof document > "u")
|
710
726
|
return;
|
711
727
|
let n;
|
@@ -714,20 +730,20 @@ const or = () => ar().__FIREBASE_DEFAULTS__, cr = () => {
|
|
714
730
|
} catch {
|
715
731
|
return;
|
716
732
|
}
|
717
|
-
const e = n &&
|
733
|
+
const e = n && Gt(n[1]);
|
718
734
|
return e && JSON.parse(e);
|
719
735
|
}, ze = () => {
|
720
736
|
try {
|
721
|
-
return
|
737
|
+
return dr() || ur() || hr();
|
722
738
|
} catch (n) {
|
723
739
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
|
724
740
|
return;
|
725
741
|
}
|
726
|
-
},
|
742
|
+
}, Vt = (n) => {
|
727
743
|
var e, t;
|
728
744
|
return (t = (e = ze()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
|
729
|
-
},
|
730
|
-
const e =
|
745
|
+
}, Wa = (n) => {
|
746
|
+
const e = Vt(n);
|
731
747
|
if (!e)
|
732
748
|
return;
|
733
749
|
const t = e.lastIndexOf(":");
|
@@ -758,7 +774,7 @@ const or = () => ar().__FIREBASE_DEFAULTS__, cr = () => {
|
|
758
774
|
* See the License for the specific language governing permissions and
|
759
775
|
* limitations under the License.
|
760
776
|
*/
|
761
|
-
class
|
777
|
+
class pr {
|
762
778
|
constructor() {
|
763
779
|
this.reject = () => {
|
764
780
|
}, this.resolve = () => {
|
@@ -794,7 +810,7 @@ class dr {
|
|
794
810
|
* See the License for the specific language governing permissions and
|
795
811
|
* limitations under the License.
|
796
812
|
*/
|
797
|
-
function
|
813
|
+
function za(n, e) {
|
798
814
|
if (n.uid)
|
799
815
|
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
|
800
816
|
const t = {
|
@@ -842,33 +858,33 @@ function Va(n, e) {
|
|
842
858
|
function f() {
|
843
859
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
844
860
|
}
|
845
|
-
function
|
861
|
+
function mr() {
|
846
862
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
847
863
|
// just to deal with this case would probably be a bad idea.
|
848
864
|
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f());
|
849
865
|
}
|
850
|
-
function
|
866
|
+
function fr() {
|
851
867
|
return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
|
852
868
|
}
|
853
|
-
function
|
869
|
+
function _r() {
|
854
870
|
const n = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
|
855
871
|
return typeof n == "object" && n.id !== void 0;
|
856
872
|
}
|
857
|
-
function
|
873
|
+
function gr() {
|
858
874
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
859
875
|
}
|
860
|
-
function
|
876
|
+
function vr() {
|
861
877
|
const n = f();
|
862
878
|
return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
|
863
879
|
}
|
864
|
-
function
|
880
|
+
function Ir() {
|
865
881
|
try {
|
866
882
|
return typeof indexedDB == "object";
|
867
883
|
} catch {
|
868
884
|
return !1;
|
869
885
|
}
|
870
886
|
}
|
871
|
-
function
|
887
|
+
function br() {
|
872
888
|
return new Promise((n, e) => {
|
873
889
|
try {
|
874
890
|
let t = !0;
|
@@ -902,10 +918,10 @@ function gr() {
|
|
902
918
|
* See the License for the specific language governing permissions and
|
903
919
|
* limitations under the License.
|
904
920
|
*/
|
905
|
-
const
|
921
|
+
const yr = "FirebaseError";
|
906
922
|
class M extends Error {
|
907
923
|
constructor(e, t, r) {
|
908
|
-
super(t), this.code = e, this.customData = r, this.name =
|
924
|
+
super(t), this.code = e, this.customData = r, this.name = yr, Object.setPrototypeOf(this, M.prototype), Error.captureStackTrace && Error.captureStackTrace(this, q.prototype.create);
|
909
925
|
}
|
910
926
|
}
|
911
927
|
class q {
|
@@ -913,18 +929,18 @@ class q {
|
|
913
929
|
this.service = e, this.serviceName = t, this.errors = r;
|
914
930
|
}
|
915
931
|
create(e, ...t) {
|
916
|
-
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ?
|
932
|
+
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? Er(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
|
917
933
|
return new M(i, c, r);
|
918
934
|
}
|
919
935
|
}
|
920
|
-
function
|
921
|
-
return n.replace(
|
936
|
+
function Er(n, e) {
|
937
|
+
return n.replace(Tr, (t, r) => {
|
922
938
|
const i = e[r];
|
923
939
|
return i != null ? String(i) : `<${r}?>`;
|
924
940
|
});
|
925
941
|
}
|
926
|
-
const
|
927
|
-
function
|
942
|
+
const Tr = /\{\$([^}]+)}/g;
|
943
|
+
function wr(n) {
|
928
944
|
for (const e in n)
|
929
945
|
if (Object.prototype.hasOwnProperty.call(n, e))
|
930
946
|
return !1;
|
@@ -976,11 +992,11 @@ function Q(n) {
|
|
976
992
|
}) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
|
977
993
|
return e.length ? "&" + e.join("&") : "";
|
978
994
|
}
|
979
|
-
function
|
980
|
-
const t = new
|
995
|
+
function kr(n, e) {
|
996
|
+
const t = new Rr(n, e);
|
981
997
|
return t.subscribe.bind(t);
|
982
998
|
}
|
983
|
-
class
|
999
|
+
class Rr {
|
984
1000
|
/**
|
985
1001
|
* @param executor Function which can make calls to a single Observer
|
986
1002
|
* as a proxy.
|
@@ -1018,7 +1034,7 @@ class Tr {
|
|
1018
1034
|
let i;
|
1019
1035
|
if (e === void 0 && t === void 0 && r === void 0)
|
1020
1036
|
throw new Error("Missing Observer.");
|
1021
|
-
|
1037
|
+
Sr(e, [
|
1022
1038
|
"next",
|
1023
1039
|
"error",
|
1024
1040
|
"complete"
|
@@ -1026,7 +1042,7 @@ class Tr {
|
|
1026
1042
|
next: e,
|
1027
1043
|
error: t,
|
1028
1044
|
complete: r
|
1029
|
-
}, i.next === void 0 && (i.next =
|
1045
|
+
}, i.next === void 0 && (i.next = Re), i.error === void 0 && (i.error = Re), i.complete === void 0 && (i.complete = Re);
|
1030
1046
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
1031
1047
|
return this.finalized && this.task.then(() => {
|
1032
1048
|
try {
|
@@ -1064,7 +1080,7 @@ class Tr {
|
|
1064
1080
|
}));
|
1065
1081
|
}
|
1066
1082
|
}
|
1067
|
-
function
|
1083
|
+
function Sr(n, e) {
|
1068
1084
|
if (typeof n != "object" || n === null)
|
1069
1085
|
return !1;
|
1070
1086
|
for (const t of e)
|
@@ -1072,7 +1088,7 @@ function wr(n, e) {
|
|
1072
1088
|
return !0;
|
1073
1089
|
return !1;
|
1074
1090
|
}
|
1075
|
-
function
|
1091
|
+
function Re() {
|
1076
1092
|
}
|
1077
1093
|
/**
|
1078
1094
|
* @license
|
@@ -1149,7 +1165,7 @@ const L = "[DEFAULT]";
|
|
1149
1165
|
* See the License for the specific language governing permissions and
|
1150
1166
|
* limitations under the License.
|
1151
1167
|
*/
|
1152
|
-
class
|
1168
|
+
class Ar {
|
1153
1169
|
constructor(e, t) {
|
1154
1170
|
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();
|
1155
1171
|
}
|
@@ -1160,7 +1176,7 @@ class Rr {
|
|
1160
1176
|
get(e) {
|
1161
1177
|
const t = this.normalizeInstanceIdentifier(e);
|
1162
1178
|
if (!this.instancesDeferred.has(t)) {
|
1163
|
-
const r = new
|
1179
|
+
const r = new pr();
|
1164
1180
|
if (this.instancesDeferred.set(t, r), this.isInitialized(t) || this.shouldAutoInitialize())
|
1165
1181
|
try {
|
1166
1182
|
const i = this.getOrInitializeService({
|
@@ -1200,7 +1216,7 @@ class Rr {
|
|
1200
1216
|
if (this.component)
|
1201
1217
|
throw Error(`Component for ${this.name} has already been provided`);
|
1202
1218
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
1203
|
-
if (
|
1219
|
+
if (Cr(e))
|
1204
1220
|
try {
|
1205
1221
|
this.getOrInitializeService({ instanceIdentifier: L });
|
1206
1222
|
} catch {
|
@@ -1287,7 +1303,7 @@ class Rr {
|
|
1287
1303
|
getOrInitializeService({ instanceIdentifier: e, options: t = {} }) {
|
1288
1304
|
let r = this.instances.get(e);
|
1289
1305
|
if (!r && this.component && (r = this.component.instanceFactory(this.container, {
|
1290
|
-
instanceIdentifier:
|
1306
|
+
instanceIdentifier: Or(e),
|
1291
1307
|
options: t
|
1292
1308
|
}), this.instances.set(e, r), this.instancesOptions.set(e, t), this.invokeOnInitCallbacks(r, e), this.component.onInstanceCreated))
|
1293
1309
|
try {
|
@@ -1303,10 +1319,10 @@ class Rr {
|
|
1303
1319
|
return !!this.component && this.component.instantiationMode !== "EXPLICIT";
|
1304
1320
|
}
|
1305
1321
|
}
|
1306
|
-
function
|
1322
|
+
function Or(n) {
|
1307
1323
|
return n === L ? void 0 : n;
|
1308
1324
|
}
|
1309
|
-
function
|
1325
|
+
function Cr(n) {
|
1310
1326
|
return n.instantiationMode === "EAGER";
|
1311
1327
|
}
|
1312
1328
|
/**
|
@@ -1325,7 +1341,7 @@ function Sr(n) {
|
|
1325
1341
|
* See the License for the specific language governing permissions and
|
1326
1342
|
* limitations under the License.
|
1327
1343
|
*/
|
1328
|
-
class
|
1344
|
+
class Nr {
|
1329
1345
|
constructor(e) {
|
1330
1346
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
1331
1347
|
}
|
@@ -1357,7 +1373,7 @@ class Ar {
|
|
1357
1373
|
getProvider(e) {
|
1358
1374
|
if (this.providers.has(e))
|
1359
1375
|
return this.providers.get(e);
|
1360
|
-
const t = new
|
1376
|
+
const t = new Ar(e, this);
|
1361
1377
|
return this.providers.set(e, t), t;
|
1362
1378
|
}
|
1363
1379
|
getProviders() {
|
@@ -1380,33 +1396,33 @@ class Ar {
|
|
1380
1396
|
* See the License for the specific language governing permissions and
|
1381
1397
|
* limitations under the License.
|
1382
1398
|
*/
|
1383
|
-
var
|
1399
|
+
var p;
|
1384
1400
|
(function(n) {
|
1385
1401
|
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";
|
1386
|
-
})(
|
1387
|
-
const
|
1388
|
-
debug:
|
1389
|
-
verbose:
|
1390
|
-
info:
|
1391
|
-
warn:
|
1392
|
-
error:
|
1393
|
-
silent:
|
1394
|
-
},
|
1395
|
-
[
|
1396
|
-
[
|
1397
|
-
[
|
1398
|
-
[
|
1399
|
-
[
|
1400
|
-
},
|
1402
|
+
})(p || (p = {}));
|
1403
|
+
const Dr = {
|
1404
|
+
debug: p.DEBUG,
|
1405
|
+
verbose: p.VERBOSE,
|
1406
|
+
info: p.INFO,
|
1407
|
+
warn: p.WARN,
|
1408
|
+
error: p.ERROR,
|
1409
|
+
silent: p.SILENT
|
1410
|
+
}, Pr = p.INFO, Mr = {
|
1411
|
+
[p.DEBUG]: "log",
|
1412
|
+
[p.VERBOSE]: "log",
|
1413
|
+
[p.INFO]: "info",
|
1414
|
+
[p.WARN]: "warn",
|
1415
|
+
[p.ERROR]: "error"
|
1416
|
+
}, Lr = (n, e, ...t) => {
|
1401
1417
|
if (e < n.logLevel)
|
1402
1418
|
return;
|
1403
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(), i =
|
1419
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), i = Mr[e];
|
1404
1420
|
if (i)
|
1405
1421
|
console[i](`[${r}] ${n.name}:`, ...t);
|
1406
1422
|
else
|
1407
1423
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
1408
1424
|
};
|
1409
|
-
class
|
1425
|
+
class $t {
|
1410
1426
|
/**
|
1411
1427
|
* Gives you an instance of a Logger to capture messages according to
|
1412
1428
|
* Firebase's logging scheme.
|
@@ -1414,19 +1430,19 @@ class Zt {
|
|
1414
1430
|
* @param name The name that the logs will be associated with
|
1415
1431
|
*/
|
1416
1432
|
constructor(e) {
|
1417
|
-
this.name = e, this._logLevel =
|
1433
|
+
this.name = e, this._logLevel = Pr, this._logHandler = Lr, this._userLogHandler = null;
|
1418
1434
|
}
|
1419
1435
|
get logLevel() {
|
1420
1436
|
return this._logLevel;
|
1421
1437
|
}
|
1422
1438
|
set logLevel(e) {
|
1423
|
-
if (!(e in
|
1439
|
+
if (!(e in p))
|
1424
1440
|
throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);
|
1425
1441
|
this._logLevel = e;
|
1426
1442
|
}
|
1427
1443
|
// Workaround for setter/getter having to be the same type.
|
1428
1444
|
setLogLevel(e) {
|
1429
|
-
this._logLevel = typeof e == "string" ?
|
1445
|
+
this._logLevel = typeof e == "string" ? Dr[e] : e;
|
1430
1446
|
}
|
1431
1447
|
get logHandler() {
|
1432
1448
|
return this._logHandler;
|
@@ -1446,24 +1462,24 @@ class Zt {
|
|
1446
1462
|
* The functions below are all based on the `console` interface
|
1447
1463
|
*/
|
1448
1464
|
debug(...e) {
|
1449
|
-
this._userLogHandler && this._userLogHandler(this,
|
1465
|
+
this._userLogHandler && this._userLogHandler(this, p.DEBUG, ...e), this._logHandler(this, p.DEBUG, ...e);
|
1450
1466
|
}
|
1451
1467
|
log(...e) {
|
1452
|
-
this._userLogHandler && this._userLogHandler(this,
|
1468
|
+
this._userLogHandler && this._userLogHandler(this, p.VERBOSE, ...e), this._logHandler(this, p.VERBOSE, ...e);
|
1453
1469
|
}
|
1454
1470
|
info(...e) {
|
1455
|
-
this._userLogHandler && this._userLogHandler(this,
|
1471
|
+
this._userLogHandler && this._userLogHandler(this, p.INFO, ...e), this._logHandler(this, p.INFO, ...e);
|
1456
1472
|
}
|
1457
1473
|
warn(...e) {
|
1458
|
-
this._userLogHandler && this._userLogHandler(this,
|
1474
|
+
this._userLogHandler && this._userLogHandler(this, p.WARN, ...e), this._logHandler(this, p.WARN, ...e);
|
1459
1475
|
}
|
1460
1476
|
error(...e) {
|
1461
|
-
this._userLogHandler && this._userLogHandler(this,
|
1477
|
+
this._userLogHandler && this._userLogHandler(this, p.ERROR, ...e), this._logHandler(this, p.ERROR, ...e);
|
1462
1478
|
}
|
1463
1479
|
}
|
1464
|
-
const
|
1480
|
+
const Ur = (n, e) => e.some((t) => n instanceof t);
|
1465
1481
|
let lt, dt;
|
1466
|
-
function
|
1482
|
+
function Br() {
|
1467
1483
|
return lt || (lt = [
|
1468
1484
|
IDBDatabase,
|
1469
1485
|
IDBObjectStore,
|
@@ -1472,31 +1488,31 @@ function Mr() {
|
|
1472
1488
|
IDBTransaction
|
1473
1489
|
]);
|
1474
1490
|
}
|
1475
|
-
function
|
1491
|
+
function Fr() {
|
1476
1492
|
return dt || (dt = [
|
1477
1493
|
IDBCursor.prototype.advance,
|
1478
1494
|
IDBCursor.prototype.continue,
|
1479
1495
|
IDBCursor.prototype.continuePrimaryKey
|
1480
1496
|
]);
|
1481
1497
|
}
|
1482
|
-
const
|
1483
|
-
function
|
1498
|
+
const Zt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap();
|
1499
|
+
function jr(n) {
|
1484
1500
|
const e = new Promise((t, r) => {
|
1485
1501
|
const i = () => {
|
1486
1502
|
n.removeEventListener("success", s), n.removeEventListener("error", a);
|
1487
1503
|
}, s = () => {
|
1488
|
-
t(
|
1504
|
+
t(N(n.result)), i();
|
1489
1505
|
}, a = () => {
|
1490
1506
|
r(n.error), i();
|
1491
1507
|
};
|
1492
1508
|
n.addEventListener("success", s), n.addEventListener("error", a);
|
1493
1509
|
});
|
1494
1510
|
return e.then((t) => {
|
1495
|
-
t instanceof IDBCursor &&
|
1511
|
+
t instanceof IDBCursor && Zt.set(t, n);
|
1496
1512
|
}).catch(() => {
|
1497
|
-
}),
|
1513
|
+
}), $e.set(e, n), e;
|
1498
1514
|
}
|
1499
|
-
function
|
1515
|
+
function xr(n) {
|
1500
1516
|
if (Le.has(n))
|
1501
1517
|
return;
|
1502
1518
|
const e = new Promise((t, r) => {
|
@@ -1521,7 +1537,7 @@ let Ue = {
|
|
1521
1537
|
if (e === "store")
|
1522
1538
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
1523
1539
|
}
|
1524
|
-
return
|
1540
|
+
return N(n[e]);
|
1525
1541
|
},
|
1526
1542
|
set(n, e, t) {
|
1527
1543
|
return n[e] = t, !0;
|
@@ -1530,35 +1546,35 @@ let Ue = {
|
|
1530
1546
|
return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
|
1531
1547
|
}
|
1532
1548
|
};
|
1533
|
-
function
|
1549
|
+
function Hr(n) {
|
1534
1550
|
Ue = n(Ue);
|
1535
1551
|
}
|
1536
|
-
function
|
1552
|
+
function Gr(n) {
|
1537
1553
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
1538
1554
|
const r = n.call(Ae(this), e, ...t);
|
1539
|
-
return Jt.set(r, e.sort ? e.sort() : [e]),
|
1540
|
-
} :
|
1541
|
-
return n.apply(Ae(this), e),
|
1555
|
+
return Jt.set(r, e.sort ? e.sort() : [e]), N(r);
|
1556
|
+
} : Fr().includes(n) ? function(...e) {
|
1557
|
+
return n.apply(Ae(this), e), N(Zt.get(this));
|
1542
1558
|
} : function(...e) {
|
1543
|
-
return
|
1559
|
+
return N(n.apply(Ae(this), e));
|
1544
1560
|
};
|
1545
1561
|
}
|
1546
|
-
function
|
1547
|
-
return typeof n == "function" ?
|
1562
|
+
function Vr(n) {
|
1563
|
+
return typeof n == "function" ? Gr(n) : (n instanceof IDBTransaction && xr(n), Ur(n, Br()) ? new Proxy(n, Ue) : n);
|
1548
1564
|
}
|
1549
|
-
function
|
1565
|
+
function N(n) {
|
1550
1566
|
if (n instanceof IDBRequest)
|
1551
|
-
return
|
1567
|
+
return jr(n);
|
1552
1568
|
if (Se.has(n))
|
1553
1569
|
return Se.get(n);
|
1554
|
-
const e =
|
1555
|
-
return e !== n && (Se.set(n, e),
|
1570
|
+
const e = Vr(n);
|
1571
|
+
return e !== n && (Se.set(n, e), $e.set(e, n)), e;
|
1556
1572
|
}
|
1557
|
-
const Ae = (n) =>
|
1558
|
-
function
|
1559
|
-
const a = indexedDB.open(n, e), c =
|
1573
|
+
const Ae = (n) => $e.get(n);
|
1574
|
+
function Wr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
1575
|
+
const a = indexedDB.open(n, e), c = N(a);
|
1560
1576
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
1561
|
-
r(
|
1577
|
+
r(N(a.result), o.oldVersion, o.newVersion, N(a.transaction), o);
|
1562
1578
|
}), t && a.addEventListener("blocked", (o) => t(
|
1563
1579
|
// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
|
1564
1580
|
o.oldVersion,
|
@@ -1569,16 +1585,16 @@ function Hr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
1569
1585
|
}).catch(() => {
|
1570
1586
|
}), c;
|
1571
1587
|
}
|
1572
|
-
const
|
1588
|
+
const zr = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Oe = /* @__PURE__ */ new Map();
|
1573
1589
|
function ut(n, e) {
|
1574
1590
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
1575
1591
|
return;
|
1576
1592
|
if (Oe.get(e))
|
1577
1593
|
return Oe.get(e);
|
1578
|
-
const t = e.replace(/FromIndex$/, ""), r = e !== t, i =
|
1594
|
+
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = $r.includes(t);
|
1579
1595
|
if (
|
1580
1596
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
1581
|
-
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i ||
|
1597
|
+
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || zr.includes(t))
|
1582
1598
|
)
|
1583
1599
|
return;
|
1584
1600
|
const s = async function(a, ...c) {
|
@@ -1591,7 +1607,7 @@ function ut(n, e) {
|
|
1591
1607
|
};
|
1592
1608
|
return Oe.set(e, s), s;
|
1593
1609
|
}
|
1594
|
-
|
1610
|
+
Hr((n) => ({
|
1595
1611
|
...n,
|
1596
1612
|
get: (e, t, r) => ut(e, t) || n.get(e, t, r),
|
1597
1613
|
has: (e, t) => !!ut(e, t) || n.has(e, t)
|
@@ -1612,7 +1628,7 @@ Fr((n) => ({
|
|
1612
1628
|
* See the License for the specific language governing permissions and
|
1613
1629
|
* limitations under the License.
|
1614
1630
|
*/
|
1615
|
-
class
|
1631
|
+
class Zr {
|
1616
1632
|
constructor(e) {
|
1617
1633
|
this.container = e;
|
1618
1634
|
}
|
@@ -1620,7 +1636,7 @@ class Wr {
|
|
1620
1636
|
// auth token refresh, and installations will send this string.
|
1621
1637
|
getPlatformInfoString() {
|
1622
1638
|
return this.container.getProviders().map((t) => {
|
1623
|
-
if (
|
1639
|
+
if (Jr(t)) {
|
1624
1640
|
const r = t.getImmediate();
|
1625
1641
|
return `${r.library}/${r.version}`;
|
1626
1642
|
} else
|
@@ -1628,7 +1644,7 @@ class Wr {
|
|
1628
1644
|
}).filter((t) => t).join(" ");
|
1629
1645
|
}
|
1630
1646
|
}
|
1631
|
-
function
|
1647
|
+
function Jr(n) {
|
1632
1648
|
const e = n.getComponent();
|
1633
1649
|
return (e == null ? void 0 : e.type) === "VERSION";
|
1634
1650
|
}
|
@@ -1649,7 +1665,7 @@ const Be = "@firebase/app", ht = "0.10.13";
|
|
1649
1665
|
* See the License for the specific language governing permissions and
|
1650
1666
|
* limitations under the License.
|
1651
1667
|
*/
|
1652
|
-
const T = new
|
1668
|
+
const T = new $t("@firebase/app"), Xr = "@firebase/app-compat", Yr = "@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";
|
1653
1669
|
/**
|
1654
1670
|
* @license
|
1655
1671
|
* Copyright 2019 Google LLC
|
@@ -1666,35 +1682,35 @@ const T = new Zt("@firebase/app"), Zr = "@firebase/app-compat", $r = "@firebase/
|
|
1666
1682
|
* See the License for the specific language governing permissions and
|
1667
1683
|
* limitations under the License.
|
1668
1684
|
*/
|
1669
|
-
const Fe = "[DEFAULT]",
|
1685
|
+
const Fe = "[DEFAULT]", Ei = {
|
1670
1686
|
[Be]: "fire-core",
|
1671
|
-
[
|
1672
|
-
[
|
1673
|
-
[
|
1674
|
-
[
|
1675
|
-
[
|
1676
|
-
[
|
1677
|
-
[
|
1678
|
-
[
|
1679
|
-
[
|
1680
|
-
[
|
1681
|
-
[
|
1682
|
-
[
|
1683
|
-
[
|
1684
|
-
[
|
1685
|
-
[
|
1686
|
-
[
|
1687
|
-
[
|
1688
|
-
[
|
1689
|
-
[
|
1690
|
-
[
|
1691
|
-
[
|
1692
|
-
[
|
1693
|
-
[
|
1694
|
-
[
|
1695
|
-
[
|
1687
|
+
[Xr]: "fire-core-compat",
|
1688
|
+
[Kr]: "fire-analytics",
|
1689
|
+
[Yr]: "fire-analytics-compat",
|
1690
|
+
[Qr]: "fire-app-check",
|
1691
|
+
[qr]: "fire-app-check-compat",
|
1692
|
+
[ei]: "fire-auth",
|
1693
|
+
[ti]: "fire-auth-compat",
|
1694
|
+
[ni]: "fire-rtdb",
|
1695
|
+
[ri]: "fire-data-connect",
|
1696
|
+
[ii]: "fire-rtdb-compat",
|
1697
|
+
[si]: "fire-fn",
|
1698
|
+
[ai]: "fire-fn-compat",
|
1699
|
+
[oi]: "fire-iid",
|
1700
|
+
[ci]: "fire-iid-compat",
|
1701
|
+
[li]: "fire-fcm",
|
1702
|
+
[di]: "fire-fcm-compat",
|
1703
|
+
[ui]: "fire-perf",
|
1704
|
+
[hi]: "fire-perf-compat",
|
1705
|
+
[pi]: "fire-rc",
|
1706
|
+
[mi]: "fire-rc-compat",
|
1707
|
+
[fi]: "fire-gcs",
|
1708
|
+
[_i]: "fire-gcs-compat",
|
1709
|
+
[gi]: "fire-fst",
|
1710
|
+
[Ii]: "fire-fst-compat",
|
1711
|
+
[vi]: "fire-vertex",
|
1696
1712
|
"fire-js": "fire-js",
|
1697
|
-
[
|
1713
|
+
[bi]: "fire-js-all"
|
1698
1714
|
};
|
1699
1715
|
/**
|
1700
1716
|
* @license
|
@@ -1712,7 +1728,7 @@ const Fe = "[DEFAULT]", Ii = {
|
|
1712
1728
|
* See the License for the specific language governing permissions and
|
1713
1729
|
* limitations under the License.
|
1714
1730
|
*/
|
1715
|
-
const he = /* @__PURE__ */ new Map(),
|
1731
|
+
const he = /* @__PURE__ */ new Map(), Ti = /* @__PURE__ */ new Map(), je = /* @__PURE__ */ new Map();
|
1716
1732
|
function pt(n, e) {
|
1717
1733
|
try {
|
1718
1734
|
n.container.addComponent(e);
|
@@ -1722,12 +1738,12 @@ function pt(n, e) {
|
|
1722
1738
|
}
|
1723
1739
|
function X(n) {
|
1724
1740
|
const e = n.name;
|
1725
|
-
if (
|
1741
|
+
if (je.has(e))
|
1726
1742
|
return T.debug(`There were multiple attempts to register component ${e}.`), !1;
|
1727
|
-
|
1743
|
+
je.set(e, n);
|
1728
1744
|
for (const t of he.values())
|
1729
1745
|
pt(t, n);
|
1730
|
-
for (const t of
|
1746
|
+
for (const t of Ti.values())
|
1731
1747
|
pt(t, n);
|
1732
1748
|
return !0;
|
1733
1749
|
}
|
@@ -1754,7 +1770,7 @@ function I(n) {
|
|
1754
1770
|
* See the License for the specific language governing permissions and
|
1755
1771
|
* limitations under the License.
|
1756
1772
|
*/
|
1757
|
-
const
|
1773
|
+
const wi = {
|
1758
1774
|
"no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
1759
1775
|
"bad-app-name": "Illegal App name: '{$appName}'",
|
1760
1776
|
"duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
|
@@ -1769,7 +1785,7 @@ const yi = {
|
|
1769
1785
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
1770
1786
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
1771
1787
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
1772
|
-
}, D = new q("app", "Firebase",
|
1788
|
+
}, D = new q("app", "Firebase", wi);
|
1773
1789
|
/**
|
1774
1790
|
* @license
|
1775
1791
|
* Copyright 2019 Google LLC
|
@@ -1786,7 +1802,7 @@ const yi = {
|
|
1786
1802
|
* See the License for the specific language governing permissions and
|
1787
1803
|
* limitations under the License.
|
1788
1804
|
*/
|
1789
|
-
class
|
1805
|
+
class ki {
|
1790
1806
|
constructor(e, t, r) {
|
1791
1807
|
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(
|
1792
1808
|
"app",
|
@@ -1844,7 +1860,7 @@ class Ei {
|
|
1844
1860
|
* See the License for the specific language governing permissions and
|
1845
1861
|
* limitations under the License.
|
1846
1862
|
*/
|
1847
|
-
const ee =
|
1863
|
+
const ee = yi;
|
1848
1864
|
function Yt(n, e = {}) {
|
1849
1865
|
let t = n;
|
1850
1866
|
typeof e != "object" && (e = { name: e });
|
@@ -1864,13 +1880,13 @@ function Yt(n, e = {}) {
|
|
1864
1880
|
return s;
|
1865
1881
|
throw D.create("duplicate-app", { appName: i });
|
1866
1882
|
}
|
1867
|
-
const a = new
|
1868
|
-
for (const o of
|
1883
|
+
const a = new Nr(i);
|
1884
|
+
for (const o of je.values())
|
1869
1885
|
a.addComponent(o);
|
1870
|
-
const c = new
|
1886
|
+
const c = new ki(t, r, a);
|
1871
1887
|
return he.set(i, c), c;
|
1872
1888
|
}
|
1873
|
-
function
|
1889
|
+
function Ri(n = Fe) {
|
1874
1890
|
const e = he.get(n);
|
1875
1891
|
if (!e && n === Fe && Wt())
|
1876
1892
|
return Yt();
|
@@ -1878,9 +1894,9 @@ function Ti(n = Fe) {
|
|
1878
1894
|
throw D.create("no-app", { appName: n });
|
1879
1895
|
return e;
|
1880
1896
|
}
|
1881
|
-
function
|
1897
|
+
function x(n, e, t) {
|
1882
1898
|
var r;
|
1883
|
-
let i = (r =
|
1899
|
+
let i = (r = Ei[n]) !== null && r !== void 0 ? r : n;
|
1884
1900
|
t && (i += `-${t}`);
|
1885
1901
|
const s = i.match(/\s|\//), a = e.match(/\s|\//);
|
1886
1902
|
if (s || a) {
|
@@ -1913,10 +1929,10 @@ function j(n, e, t) {
|
|
1913
1929
|
* See the License for the specific language governing permissions and
|
1914
1930
|
* limitations under the License.
|
1915
1931
|
*/
|
1916
|
-
const
|
1917
|
-
let
|
1932
|
+
const Si = "firebase-heartbeat-database", Ai = 1, Y = "firebase-heartbeat-store";
|
1933
|
+
let Ce = null;
|
1918
1934
|
function Kt() {
|
1919
|
-
return
|
1935
|
+
return Ce || (Ce = Wr(Si, Ai, {
|
1920
1936
|
upgrade: (n, e) => {
|
1921
1937
|
switch (e) {
|
1922
1938
|
case 0:
|
@@ -1931,9 +1947,9 @@ function Kt() {
|
|
1931
1947
|
throw D.create("idb-open", {
|
1932
1948
|
originalErrorMessage: n.message
|
1933
1949
|
});
|
1934
|
-
})),
|
1950
|
+
})), Ce;
|
1935
1951
|
}
|
1936
|
-
async function
|
1952
|
+
async function Oi(n) {
|
1937
1953
|
try {
|
1938
1954
|
const t = (await Kt()).transaction(Y), r = await t.objectStore(Y).get(qt(n));
|
1939
1955
|
return await t.done, r;
|
@@ -1948,7 +1964,7 @@ async function ki(n) {
|
|
1948
1964
|
}
|
1949
1965
|
}
|
1950
1966
|
}
|
1951
|
-
async function
|
1967
|
+
async function mt(n, e) {
|
1952
1968
|
try {
|
1953
1969
|
const r = (await Kt()).transaction(Y, "readwrite");
|
1954
1970
|
await r.objectStore(Y).put(e, qt(n)), await r.done;
|
@@ -1982,12 +1998,12 @@ function qt(n) {
|
|
1982
1998
|
* See the License for the specific language governing permissions and
|
1983
1999
|
* limitations under the License.
|
1984
2000
|
*/
|
1985
|
-
const
|
1986
|
-
class
|
2001
|
+
const Ci = 1024, Ni = 30 * 24 * 60 * 60 * 1e3;
|
2002
|
+
class Di {
|
1987
2003
|
constructor(e) {
|
1988
2004
|
this.container = e, this._heartbeatsCache = null;
|
1989
2005
|
const t = this.container.getProvider("app").getImmediate();
|
1990
|
-
this._storage = new
|
2006
|
+
this._storage = new Mi(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
|
1991
2007
|
}
|
1992
2008
|
/**
|
1993
2009
|
* Called to report a heartbeat. The function will generate
|
@@ -1999,10 +2015,10 @@ class Oi {
|
|
1999
2015
|
async triggerHeartbeat() {
|
2000
2016
|
var e, t;
|
2001
2017
|
try {
|
2002
|
-
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s =
|
2018
|
+
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = ft();
|
2003
2019
|
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) => {
|
2004
2020
|
const c = new Date(a.date).valueOf();
|
2005
|
-
return Date.now() - c <=
|
2021
|
+
return Date.now() - c <= Ni;
|
2006
2022
|
}), this._storage.overwrite(this._heartbeatsCache));
|
2007
2023
|
} catch (r) {
|
2008
2024
|
T.warn(r);
|
@@ -2020,17 +2036,17 @@ class Oi {
|
|
2020
2036
|
try {
|
2021
2037
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
2022
2038
|
return "";
|
2023
|
-
const t =
|
2039
|
+
const t = ft(), { heartbeatsToSend: r, unsentEntries: i } = Pi(this._heartbeatsCache.heartbeats), s = de(JSON.stringify({ version: 2, heartbeats: r }));
|
2024
2040
|
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;
|
2025
2041
|
} catch (t) {
|
2026
2042
|
return T.warn(t), "";
|
2027
2043
|
}
|
2028
2044
|
}
|
2029
2045
|
}
|
2030
|
-
function
|
2046
|
+
function ft() {
|
2031
2047
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
2032
2048
|
}
|
2033
|
-
function
|
2049
|
+
function Pi(n, e = Ci) {
|
2034
2050
|
const t = [];
|
2035
2051
|
let r = n.slice();
|
2036
2052
|
for (const i of n) {
|
@@ -2054,19 +2070,19 @@ function Ni(n, e = Si) {
|
|
2054
2070
|
unsentEntries: r
|
2055
2071
|
};
|
2056
2072
|
}
|
2057
|
-
class
|
2073
|
+
class Mi {
|
2058
2074
|
constructor(e) {
|
2059
2075
|
this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
2060
2076
|
}
|
2061
2077
|
async runIndexedDBEnvironmentCheck() {
|
2062
|
-
return
|
2078
|
+
return Ir() ? br().then(() => !0).catch(() => !1) : !1;
|
2063
2079
|
}
|
2064
2080
|
/**
|
2065
2081
|
* Read all heartbeats.
|
2066
2082
|
*/
|
2067
2083
|
async read() {
|
2068
2084
|
if (await this._canUseIndexedDBPromise) {
|
2069
|
-
const t = await
|
2085
|
+
const t = await Oi(this.app);
|
2070
2086
|
return t != null && t.heartbeats ? t : { heartbeats: [] };
|
2071
2087
|
} else
|
2072
2088
|
return { heartbeats: [] };
|
@@ -2076,7 +2092,7 @@ class Ci {
|
|
2076
2092
|
var t;
|
2077
2093
|
if (await this._canUseIndexedDBPromise) {
|
2078
2094
|
const i = await this.read();
|
2079
|
-
return
|
2095
|
+
return mt(this.app, {
|
2080
2096
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
2081
2097
|
heartbeats: e.heartbeats
|
2082
2098
|
});
|
@@ -2088,7 +2104,7 @@ class Ci {
|
|
2088
2104
|
var t;
|
2089
2105
|
if (await this._canUseIndexedDBPromise) {
|
2090
2106
|
const i = await this.read();
|
2091
|
-
return
|
2107
|
+
return mt(this.app, {
|
2092
2108
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
2093
2109
|
heartbeats: [
|
2094
2110
|
...i.heartbeats,
|
@@ -2121,21 +2137,21 @@ function _t(n) {
|
|
2121
2137
|
* See the License for the specific language governing permissions and
|
2122
2138
|
* limitations under the License.
|
2123
2139
|
*/
|
2124
|
-
function
|
2140
|
+
function Li(n) {
|
2125
2141
|
X(new W(
|
2126
2142
|
"platform-logger",
|
2127
|
-
(e) => new
|
2143
|
+
(e) => new Zr(e),
|
2128
2144
|
"PRIVATE"
|
2129
2145
|
/* ComponentType.PRIVATE */
|
2130
2146
|
)), X(new W(
|
2131
2147
|
"heartbeat",
|
2132
|
-
(e) => new
|
2148
|
+
(e) => new Di(e),
|
2133
2149
|
"PRIVATE"
|
2134
2150
|
/* ComponentType.PRIVATE */
|
2135
|
-
)),
|
2151
|
+
)), x(Be, ht, n), x(Be, ht, "esm2017"), x("fire-js", "");
|
2136
2152
|
}
|
2137
|
-
|
2138
|
-
var
|
2153
|
+
Li("");
|
2154
|
+
var Ui = "firebase", Bi = "10.14.1";
|
2139
2155
|
/**
|
2140
2156
|
* @license
|
2141
2157
|
* Copyright 2020 Google LLC
|
@@ -2152,7 +2168,7 @@ var Pi = "firebase", Mi = "10.14.1";
|
|
2152
2168
|
* See the License for the specific language governing permissions and
|
2153
2169
|
* limitations under the License.
|
2154
2170
|
*/
|
2155
|
-
|
2171
|
+
x(Ui, Bi, "app");
|
2156
2172
|
var gt = function() {
|
2157
2173
|
return gt = Object.assign || function(e) {
|
2158
2174
|
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
@@ -2162,7 +2178,7 @@ var gt = function() {
|
|
2162
2178
|
return e;
|
2163
2179
|
}, gt.apply(this, arguments);
|
2164
2180
|
};
|
2165
|
-
function
|
2181
|
+
function Ze(n, e) {
|
2166
2182
|
var t = {};
|
2167
2183
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
2168
2184
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -2175,7 +2191,7 @@ function Qt() {
|
|
2175
2191
|
"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."
|
2176
2192
|
};
|
2177
2193
|
}
|
2178
|
-
const
|
2194
|
+
const Fi = Qt, en = new q("auth", "Firebase", Qt());
|
2179
2195
|
/**
|
2180
2196
|
* @license
|
2181
2197
|
* Copyright 2020 Google LLC
|
@@ -2192,12 +2208,12 @@ const Li = Qt, en = new q("auth", "Firebase", Qt());
|
|
2192
2208
|
* See the License for the specific language governing permissions and
|
2193
2209
|
* limitations under the License.
|
2194
2210
|
*/
|
2195
|
-
const pe = new
|
2196
|
-
function
|
2197
|
-
pe.logLevel <=
|
2211
|
+
const pe = new $t("@firebase/auth");
|
2212
|
+
function ji(n, ...e) {
|
2213
|
+
pe.logLevel <= p.WARN && pe.warn(`Auth (${ee}): ${n}`, ...e);
|
2198
2214
|
}
|
2199
2215
|
function se(n, ...e) {
|
2200
|
-
pe.logLevel <=
|
2216
|
+
pe.logLevel <= p.ERROR && pe.error(`Auth (${ee}): ${n}`, ...e);
|
2201
2217
|
}
|
2202
2218
|
/**
|
2203
2219
|
* @license
|
@@ -2222,7 +2238,7 @@ function _(n, ...e) {
|
|
2222
2238
|
return Je(n, ...e);
|
2223
2239
|
}
|
2224
2240
|
function tn(n, e, t) {
|
2225
|
-
const r = Object.assign(Object.assign({},
|
2241
|
+
const r = Object.assign(Object.assign({}, Fi()), { [e]: t });
|
2226
2242
|
return new q("auth", "Firebase", r).create(e, {
|
2227
2243
|
appName: n.name
|
2228
2244
|
});
|
@@ -2237,7 +2253,7 @@ function Je(n, ...e) {
|
|
2237
2253
|
}
|
2238
2254
|
return en.create(n, ...e);
|
2239
2255
|
}
|
2240
|
-
function
|
2256
|
+
function u(n, e, ...t) {
|
2241
2257
|
if (!n)
|
2242
2258
|
throw Je(e, ...t);
|
2243
2259
|
}
|
@@ -2245,7 +2261,7 @@ function b(n) {
|
|
2245
2261
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
2246
2262
|
throw se(e), new Error(e);
|
2247
2263
|
}
|
2248
|
-
function
|
2264
|
+
function k(n, e) {
|
2249
2265
|
n || b(e);
|
2250
2266
|
}
|
2251
2267
|
/**
|
@@ -2264,11 +2280,11 @@ function R(n, e) {
|
|
2264
2280
|
* See the License for the specific language governing permissions and
|
2265
2281
|
* limitations under the License.
|
2266
2282
|
*/
|
2267
|
-
function
|
2283
|
+
function xe() {
|
2268
2284
|
var n;
|
2269
2285
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
2270
2286
|
}
|
2271
|
-
function
|
2287
|
+
function xi() {
|
2272
2288
|
return vt() === "http:" || vt() === "https:";
|
2273
2289
|
}
|
2274
2290
|
function vt() {
|
@@ -2291,15 +2307,15 @@ function vt() {
|
|
2291
2307
|
* See the License for the specific language governing permissions and
|
2292
2308
|
* limitations under the License.
|
2293
2309
|
*/
|
2294
|
-
function
|
2310
|
+
function Hi() {
|
2295
2311
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
2296
2312
|
// This is especially true for Cordova apps which have unreliable
|
2297
2313
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
2298
2314
|
// installed which overwrites the native navigator.onLine value and
|
2299
2315
|
// defines navigator.connection.
|
2300
|
-
(
|
2316
|
+
(xi() || _r() || "connection" in navigator) ? navigator.onLine : !0;
|
2301
2317
|
}
|
2302
|
-
function
|
2318
|
+
function Gi() {
|
2303
2319
|
if (typeof navigator > "u")
|
2304
2320
|
return null;
|
2305
2321
|
const n = navigator;
|
@@ -2329,10 +2345,10 @@ function xi() {
|
|
2329
2345
|
*/
|
2330
2346
|
class te {
|
2331
2347
|
constructor(e, t) {
|
2332
|
-
this.shortDelay = e, this.longDelay = t,
|
2348
|
+
this.shortDelay = e, this.longDelay = t, k(t > e, "Short delay should be less than long delay!"), this.isMobile = mr() || gr();
|
2333
2349
|
}
|
2334
2350
|
get() {
|
2335
|
-
return
|
2351
|
+
return Hi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
2336
2352
|
}
|
2337
2353
|
}
|
2338
2354
|
/**
|
@@ -2352,7 +2368,7 @@ class te {
|
|
2352
2368
|
* limitations under the License.
|
2353
2369
|
*/
|
2354
2370
|
function Xe(n, e) {
|
2355
|
-
|
2371
|
+
k(n.emulator, "Emulator should always be set here");
|
2356
2372
|
const { url: t } = n.emulator;
|
2357
2373
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
2358
2374
|
}
|
@@ -2426,7 +2442,7 @@ class nn {
|
|
2426
2442
|
* See the License for the specific language governing permissions and
|
2427
2443
|
* limitations under the License.
|
2428
2444
|
*/
|
2429
|
-
const
|
2445
|
+
const Vi = {
|
2430
2446
|
// Custom token errors.
|
2431
2447
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
2432
2448
|
// This can only happen if the SDK sends a bad request.
|
@@ -2517,11 +2533,11 @@ const ji = {
|
|
2517
2533
|
* See the License for the specific language governing permissions and
|
2518
2534
|
* limitations under the License.
|
2519
2535
|
*/
|
2520
|
-
const
|
2536
|
+
const Wi = new te(3e4, 6e4);
|
2521
2537
|
function ve(n, e) {
|
2522
2538
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
2523
2539
|
}
|
2524
|
-
async function
|
2540
|
+
async function $(n, e, t, r, i = {}) {
|
2525
2541
|
return rn(n, i, async () => {
|
2526
2542
|
let s = {}, a = {};
|
2527
2543
|
r && (e === "GET" ? a = r : s = {
|
@@ -2539,14 +2555,14 @@ async function Z(n, e, t, r, i = {}) {
|
|
2539
2555
|
method: e,
|
2540
2556
|
headers: o
|
2541
2557
|
}, s);
|
2542
|
-
return
|
2558
|
+
return fr() || (l.referrerPolicy = "no-referrer"), nn.fetch()(an(n, n.config.apiHost, t, c), l);
|
2543
2559
|
});
|
2544
2560
|
}
|
2545
2561
|
async function rn(n, e, t) {
|
2546
2562
|
n._canInitEmulator = !1;
|
2547
|
-
const r = Object.assign(Object.assign({},
|
2563
|
+
const r = Object.assign(Object.assign({}, Vi), e);
|
2548
2564
|
try {
|
2549
|
-
const i = new
|
2565
|
+
const i = new zi(n), s = await Promise.race([
|
2550
2566
|
t(),
|
2551
2567
|
i.promise
|
2552
2568
|
]);
|
@@ -2564,10 +2580,10 @@ async function rn(n, e, t) {
|
|
2564
2580
|
throw ie(n, "email-already-in-use", a);
|
2565
2581
|
if (o === "USER_DISABLED")
|
2566
2582
|
throw ie(n, "user-disabled", a);
|
2567
|
-
const
|
2583
|
+
const d = r[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
|
2568
2584
|
if (l)
|
2569
|
-
throw tn(n,
|
2570
|
-
w(n,
|
2585
|
+
throw tn(n, d, l);
|
2586
|
+
w(n, d);
|
2571
2587
|
}
|
2572
2588
|
} catch (i) {
|
2573
2589
|
if (i instanceof M)
|
@@ -2576,7 +2592,7 @@ async function rn(n, e, t) {
|
|
2576
2592
|
}
|
2577
2593
|
}
|
2578
2594
|
async function sn(n, e, t, r, i = {}) {
|
2579
|
-
const s = await
|
2595
|
+
const s = await $(n, e, t, r, i);
|
2580
2596
|
return "mfaPendingCredential" in s && w(n, "multi-factor-auth-required", {
|
2581
2597
|
_serverResponse: s
|
2582
2598
|
}), s;
|
@@ -2585,14 +2601,14 @@ function an(n, e, t, r) {
|
|
2585
2601
|
const i = `${e}${t}?${r}`;
|
2586
2602
|
return n.config.emulator ? Xe(n.config, i) : `${n.config.apiScheme}://${i}`;
|
2587
2603
|
}
|
2588
|
-
class
|
2604
|
+
class zi {
|
2589
2605
|
constructor(e) {
|
2590
2606
|
this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
|
2591
2607
|
this.timer = setTimeout(() => r(_(
|
2592
2608
|
this.auth,
|
2593
2609
|
"network-request-failed"
|
2594
2610
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
2595
|
-
)),
|
2611
|
+
)), Wi.get());
|
2596
2612
|
});
|
2597
2613
|
}
|
2598
2614
|
clearNetworkTimeout() {
|
@@ -2623,11 +2639,11 @@ function ie(n, e, t) {
|
|
2623
2639
|
* See the License for the specific language governing permissions and
|
2624
2640
|
* limitations under the License.
|
2625
2641
|
*/
|
2626
|
-
async function
|
2627
|
-
return
|
2642
|
+
async function $i(n, e) {
|
2643
|
+
return $(n, "POST", "/v1/accounts:delete", e);
|
2628
2644
|
}
|
2629
2645
|
async function on(n, e) {
|
2630
|
-
return
|
2646
|
+
return $(n, "POST", "/v1/accounts:lookup", e);
|
2631
2647
|
}
|
2632
2648
|
/**
|
2633
2649
|
* @license
|
@@ -2654,9 +2670,9 @@ function J(n) {
|
|
2654
2670
|
} catch {
|
2655
2671
|
}
|
2656
2672
|
}
|
2657
|
-
async function
|
2673
|
+
async function Zi(n, e = !1) {
|
2658
2674
|
const t = z(n), r = await t.getIdToken(e), i = Ye(r);
|
2659
|
-
|
2675
|
+
u(
|
2660
2676
|
i && i.exp && i.auth_time && i.iat,
|
2661
2677
|
t.auth,
|
2662
2678
|
"internal-error"
|
@@ -2666,14 +2682,14 @@ async function Wi(n, e = !1) {
|
|
2666
2682
|
return {
|
2667
2683
|
claims: i,
|
2668
2684
|
token: r,
|
2669
|
-
authTime: J(
|
2670
|
-
issuedAtTime: J(
|
2671
|
-
expirationTime: J(
|
2685
|
+
authTime: J(Ne(i.auth_time)),
|
2686
|
+
issuedAtTime: J(Ne(i.iat)),
|
2687
|
+
expirationTime: J(Ne(i.exp)),
|
2672
2688
|
signInProvider: a || null,
|
2673
2689
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
2674
2690
|
};
|
2675
2691
|
}
|
2676
|
-
function
|
2692
|
+
function Ne(n) {
|
2677
2693
|
return Number(n) * 1e3;
|
2678
2694
|
}
|
2679
2695
|
function Ye(n) {
|
@@ -2681,7 +2697,7 @@ function Ye(n) {
|
|
2681
2697
|
if (e === void 0 || t === void 0 || r === void 0)
|
2682
2698
|
return se("JWT malformed, contained fewer than 3 sections"), null;
|
2683
2699
|
try {
|
2684
|
-
const i =
|
2700
|
+
const i = Gt(t);
|
2685
2701
|
return i ? JSON.parse(i) : (se("Failed to decode base64 JWT payload"), null);
|
2686
2702
|
} catch (i) {
|
2687
2703
|
return se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
@@ -2689,15 +2705,15 @@ function Ye(n) {
|
|
2689
2705
|
}
|
2690
2706
|
function It(n) {
|
2691
2707
|
const e = Ye(n);
|
2692
|
-
return
|
2708
|
+
return u(
|
2693
2709
|
e,
|
2694
2710
|
"internal-error"
|
2695
2711
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2696
|
-
),
|
2712
|
+
), u(
|
2697
2713
|
typeof e.exp < "u",
|
2698
2714
|
"internal-error"
|
2699
2715
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2700
|
-
),
|
2716
|
+
), u(
|
2701
2717
|
typeof e.iat < "u",
|
2702
2718
|
"internal-error"
|
2703
2719
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -2725,10 +2741,10 @@ async function K(n, e, t = !1) {
|
|
2725
2741
|
try {
|
2726
2742
|
return await e;
|
2727
2743
|
} catch (r) {
|
2728
|
-
throw r instanceof M &&
|
2744
|
+
throw r instanceof M && Ji(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
|
2729
2745
|
}
|
2730
2746
|
}
|
2731
|
-
function
|
2747
|
+
function Ji({ code: n }) {
|
2732
2748
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
2733
2749
|
}
|
2734
2750
|
/**
|
@@ -2747,7 +2763,7 @@ function zi({ code: n }) {
|
|
2747
2763
|
* See the License for the specific language governing permissions and
|
2748
2764
|
* limitations under the License.
|
2749
2765
|
*/
|
2750
|
-
class
|
2766
|
+
class Xi {
|
2751
2767
|
constructor(e) {
|
2752
2768
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
2753
2769
|
}
|
@@ -2842,10 +2858,10 @@ class He {
|
|
2842
2858
|
* See the License for the specific language governing permissions and
|
2843
2859
|
* limitations under the License.
|
2844
2860
|
*/
|
2845
|
-
async function
|
2861
|
+
async function me(n) {
|
2846
2862
|
var e;
|
2847
2863
|
const t = n.auth, r = await n.getIdToken(), i = await K(n, on(t, { idToken: r }));
|
2848
|
-
|
2864
|
+
u(
|
2849
2865
|
i == null ? void 0 : i.users.length,
|
2850
2866
|
t,
|
2851
2867
|
"internal-error"
|
@@ -2853,7 +2869,7 @@ async function fe(n) {
|
|
2853
2869
|
);
|
2854
2870
|
const s = i.users[0];
|
2855
2871
|
n._notifyReloadListener(s);
|
2856
|
-
const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], c =
|
2872
|
+
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 = {
|
2857
2873
|
uid: s.localId,
|
2858
2874
|
displayName: s.displayName || null,
|
2859
2875
|
photoURL: s.photoUrl || null,
|
@@ -2863,20 +2879,20 @@ async function fe(n) {
|
|
2863
2879
|
tenantId: s.tenantId || null,
|
2864
2880
|
providerData: c,
|
2865
2881
|
metadata: new He(s.createdAt, s.lastLoginAt),
|
2866
|
-
isAnonymous:
|
2882
|
+
isAnonymous: d
|
2867
2883
|
};
|
2868
|
-
Object.assign(n,
|
2884
|
+
Object.assign(n, h);
|
2869
2885
|
}
|
2870
|
-
async function
|
2886
|
+
async function Yi(n) {
|
2871
2887
|
const e = z(n);
|
2872
|
-
await
|
2888
|
+
await me(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
2873
2889
|
}
|
2874
|
-
function
|
2890
|
+
function Ki(n, e) {
|
2875
2891
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
2876
2892
|
}
|
2877
2893
|
function cn(n) {
|
2878
2894
|
return n.map((e) => {
|
2879
|
-
var { providerId: t } = e, r =
|
2895
|
+
var { providerId: t } = e, r = Ze(e, ["providerId"]);
|
2880
2896
|
return {
|
2881
2897
|
providerId: t,
|
2882
2898
|
uid: r.rawId || "",
|
@@ -2903,7 +2919,7 @@ function cn(n) {
|
|
2903
2919
|
* See the License for the specific language governing permissions and
|
2904
2920
|
* limitations under the License.
|
2905
2921
|
*/
|
2906
|
-
async function
|
2922
|
+
async function qi(n, e) {
|
2907
2923
|
const t = await rn(n, {}, async () => {
|
2908
2924
|
const r = Q({
|
2909
2925
|
grant_type: "refresh_token",
|
@@ -2924,8 +2940,8 @@ async function Xi(n, e) {
|
|
2924
2940
|
refreshToken: t.refresh_token
|
2925
2941
|
};
|
2926
2942
|
}
|
2927
|
-
async function
|
2928
|
-
return
|
2943
|
+
async function Qi(n, e) {
|
2944
|
+
return $(n, "POST", "/v2/accounts:revokeToken", ve(n, e));
|
2929
2945
|
}
|
2930
2946
|
/**
|
2931
2947
|
* @license
|
@@ -2951,15 +2967,15 @@ class H {
|
|
2951
2967
|
return !this.expirationTime || Date.now() > this.expirationTime - 3e4;
|
2952
2968
|
}
|
2953
2969
|
updateFromServerResponse(e) {
|
2954
|
-
|
2970
|
+
u(
|
2955
2971
|
e.idToken,
|
2956
2972
|
"internal-error"
|
2957
2973
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2958
|
-
),
|
2974
|
+
), u(
|
2959
2975
|
typeof e.idToken < "u",
|
2960
2976
|
"internal-error"
|
2961
2977
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2962
|
-
),
|
2978
|
+
), u(
|
2963
2979
|
typeof e.refreshToken < "u",
|
2964
2980
|
"internal-error"
|
2965
2981
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -2968,7 +2984,7 @@ class H {
|
|
2968
2984
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, t);
|
2969
2985
|
}
|
2970
2986
|
updateFromIdToken(e) {
|
2971
|
-
|
2987
|
+
u(
|
2972
2988
|
e.length !== 0,
|
2973
2989
|
"internal-error"
|
2974
2990
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -2977,7 +2993,7 @@ class H {
|
|
2977
2993
|
this.updateTokensAndExpiration(e, null, t);
|
2978
2994
|
}
|
2979
2995
|
async getToken(e, t = !1) {
|
2980
|
-
return !t && this.accessToken && !this.isExpired ? this.accessToken : (
|
2996
|
+
return !t && this.accessToken && !this.isExpired ? this.accessToken : (u(
|
2981
2997
|
this.refreshToken,
|
2982
2998
|
e,
|
2983
2999
|
"user-token-expired"
|
@@ -2988,7 +3004,7 @@ class H {
|
|
2988
3004
|
this.refreshToken = null;
|
2989
3005
|
}
|
2990
3006
|
async refresh(e, t) {
|
2991
|
-
const { accessToken: r, refreshToken: i, expiresIn: s } = await
|
3007
|
+
const { accessToken: r, refreshToken: i, expiresIn: s } = await qi(e, t);
|
2992
3008
|
this.updateTokensAndExpiration(r, i, Number(s));
|
2993
3009
|
}
|
2994
3010
|
updateTokensAndExpiration(e, t, r) {
|
@@ -2996,11 +3012,11 @@ class H {
|
|
2996
3012
|
}
|
2997
3013
|
static fromJSON(e, t) {
|
2998
3014
|
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new H();
|
2999
|
-
return r && (
|
3015
|
+
return r && (u(typeof r == "string", "internal-error", {
|
3000
3016
|
appName: e
|
3001
|
-
}), a.refreshToken = r), i && (
|
3017
|
+
}), a.refreshToken = r), i && (u(typeof i == "string", "internal-error", {
|
3002
3018
|
appName: e
|
3003
|
-
}), a.accessToken = i), s && (
|
3019
|
+
}), a.accessToken = i), s && (u(typeof s == "number", "internal-error", {
|
3004
3020
|
appName: e
|
3005
3021
|
}), a.expirationTime = s), a;
|
3006
3022
|
}
|
@@ -3037,17 +3053,17 @@ class H {
|
|
3037
3053
|
* See the License for the specific language governing permissions and
|
3038
3054
|
* limitations under the License.
|
3039
3055
|
*/
|
3040
|
-
function
|
3041
|
-
|
3056
|
+
function R(n, e) {
|
3057
|
+
u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
|
3042
3058
|
}
|
3043
3059
|
class y {
|
3044
3060
|
constructor(e) {
|
3045
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
3046
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
3061
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = Ze(e, ["uid", "auth", "stsTokenManager"]);
|
3062
|
+
this.providerId = "firebase", this.proactiveRefresh = new Xi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new He(s.createdAt || void 0, s.lastLoginAt || void 0);
|
3047
3063
|
}
|
3048
3064
|
async getIdToken(e) {
|
3049
3065
|
const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
|
3050
|
-
return
|
3066
|
+
return u(
|
3051
3067
|
t,
|
3052
3068
|
this.auth,
|
3053
3069
|
"internal-error"
|
@@ -3055,13 +3071,13 @@ class y {
|
|
3055
3071
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
3056
3072
|
}
|
3057
3073
|
getIdTokenResult(e) {
|
3058
|
-
return
|
3074
|
+
return Zi(this, e);
|
3059
3075
|
}
|
3060
3076
|
reload() {
|
3061
|
-
return
|
3077
|
+
return Yi(this);
|
3062
3078
|
}
|
3063
3079
|
_assign(e) {
|
3064
|
-
this !== e && (
|
3080
|
+
this !== e && (u(
|
3065
3081
|
this.uid === e.uid,
|
3066
3082
|
this.auth,
|
3067
3083
|
"internal-error"
|
@@ -3073,7 +3089,7 @@ class y {
|
|
3073
3089
|
return t.metadata._copy(this.metadata), t;
|
3074
3090
|
}
|
3075
3091
|
_onReload(e) {
|
3076
|
-
|
3092
|
+
u(
|
3077
3093
|
!this.reloadListener,
|
3078
3094
|
this.auth,
|
3079
3095
|
"internal-error"
|
@@ -3091,13 +3107,13 @@ class y {
|
|
3091
3107
|
}
|
3092
3108
|
async _updateTokensIfNecessary(e, t = !1) {
|
3093
3109
|
let r = !1;
|
3094
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
3110
|
+
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);
|
3095
3111
|
}
|
3096
3112
|
async delete() {
|
3097
3113
|
if (I(this.auth.app))
|
3098
3114
|
return Promise.reject(P(this.auth));
|
3099
3115
|
const e = await this.getIdToken();
|
3100
|
-
return await K(this,
|
3116
|
+
return await K(this, $i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
3101
3117
|
}
|
3102
3118
|
toJSON() {
|
3103
3119
|
return Object.assign(Object.assign({
|
@@ -3124,37 +3140,37 @@ class y {
|
|
3124
3140
|
return this.stsTokenManager.refreshToken || "";
|
3125
3141
|
}
|
3126
3142
|
static _fromJSON(e, t) {
|
3127
|
-
var r, i, s, a, c, o, l,
|
3128
|
-
const
|
3129
|
-
|
3143
|
+
var r, i, s, a, c, o, l, d;
|
3144
|
+
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;
|
3145
|
+
u(
|
3130
3146
|
Te && at,
|
3131
3147
|
e,
|
3132
3148
|
"internal-error"
|
3133
3149
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3134
3150
|
);
|
3135
3151
|
const Pn = H.fromJSON(this.name, at);
|
3136
|
-
|
3152
|
+
u(
|
3137
3153
|
typeof Te == "string",
|
3138
3154
|
e,
|
3139
3155
|
"internal-error"
|
3140
3156
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3141
|
-
),
|
3157
|
+
), R(h, e.name), R(m, e.name), u(
|
3142
3158
|
typeof it == "boolean",
|
3143
3159
|
e,
|
3144
3160
|
"internal-error"
|
3145
3161
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3146
|
-
),
|
3162
|
+
), u(
|
3147
3163
|
typeof st == "boolean",
|
3148
3164
|
e,
|
3149
3165
|
"internal-error"
|
3150
3166
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3151
|
-
),
|
3152
|
-
const
|
3167
|
+
), R(v, e.name), R(F, e.name), R(tt, e.name), R(Ee, e.name), R(nt, e.name), R(rt, e.name);
|
3168
|
+
const ke = new y({
|
3153
3169
|
uid: Te,
|
3154
3170
|
auth: e,
|
3155
3171
|
email: m,
|
3156
3172
|
emailVerified: it,
|
3157
|
-
displayName:
|
3173
|
+
displayName: h,
|
3158
3174
|
isAnonymous: st,
|
3159
3175
|
photoURL: F,
|
3160
3176
|
phoneNumber: v,
|
@@ -3163,7 +3179,7 @@ class y {
|
|
3163
3179
|
createdAt: nt,
|
3164
3180
|
lastLoginAt: rt
|
3165
3181
|
});
|
3166
|
-
return we && Array.isArray(we) && (
|
3182
|
+
return we && Array.isArray(we) && (ke.providerData = we.map((Mn) => Object.assign({}, Mn))), Ee && (ke._redirectEventId = Ee), ke;
|
3167
3183
|
}
|
3168
3184
|
/**
|
3169
3185
|
* Initialize a User from an idToken server response
|
@@ -3179,7 +3195,7 @@ class y {
|
|
3179
3195
|
stsTokenManager: i,
|
3180
3196
|
isAnonymous: r
|
3181
3197
|
});
|
3182
|
-
return await
|
3198
|
+
return await me(s), s;
|
3183
3199
|
}
|
3184
3200
|
/**
|
3185
3201
|
* Initialize a User from an idToken server response
|
@@ -3188,7 +3204,7 @@ class y {
|
|
3188
3204
|
*/
|
3189
3205
|
static async _fromGetAccountInfoResponse(e, t, r) {
|
3190
3206
|
const i = t.users[0];
|
3191
|
-
|
3207
|
+
u(
|
3192
3208
|
i.localId !== void 0,
|
3193
3209
|
"internal-error"
|
3194
3210
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -3233,9 +3249,9 @@ class y {
|
|
3233
3249
|
*/
|
3234
3250
|
const bt = /* @__PURE__ */ new Map();
|
3235
3251
|
function E(n) {
|
3236
|
-
|
3252
|
+
k(n instanceof Function, "Expected a class definition");
|
3237
3253
|
let e = bt.get(n);
|
3238
|
-
return e ? (
|
3254
|
+
return e ? (k(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), bt.set(n, e), e);
|
3239
3255
|
}
|
3240
3256
|
/**
|
3241
3257
|
* @license
|
@@ -3296,7 +3312,7 @@ const yt = ln;
|
|
3296
3312
|
function ae(n, e, t) {
|
3297
3313
|
return `firebase:${n}:${e}:${t}`;
|
3298
3314
|
}
|
3299
|
-
class
|
3315
|
+
class G {
|
3300
3316
|
constructor(e, t, r) {
|
3301
3317
|
this.persistence = e, this.auth = t, this.userKey = r;
|
3302
3318
|
const { config: i, name: s } = this.auth;
|
@@ -3327,7 +3343,7 @@ class V {
|
|
3327
3343
|
}
|
3328
3344
|
static async create(e, t, r = "authUser") {
|
3329
3345
|
if (!t.length)
|
3330
|
-
return new
|
3346
|
+
return new G(E(yt), e, r);
|
3331
3347
|
const i = (await Promise.all(t.map(async (l) => {
|
3332
3348
|
if (await l._isAvailable())
|
3333
3349
|
return l;
|
@@ -3337,22 +3353,22 @@ class V {
|
|
3337
3353
|
let c = null;
|
3338
3354
|
for (const l of t)
|
3339
3355
|
try {
|
3340
|
-
const
|
3341
|
-
if (
|
3342
|
-
const
|
3343
|
-
l !== s && (c =
|
3356
|
+
const d = await l._get(a);
|
3357
|
+
if (d) {
|
3358
|
+
const h = y._fromJSON(e, d);
|
3359
|
+
l !== s && (c = h), s = l;
|
3344
3360
|
break;
|
3345
3361
|
}
|
3346
3362
|
} catch {
|
3347
3363
|
}
|
3348
3364
|
const o = i.filter((l) => l._shouldAllowMigration);
|
3349
|
-
return !s._shouldAllowMigration || !o.length ? new
|
3365
|
+
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) => {
|
3350
3366
|
if (l !== s)
|
3351
3367
|
try {
|
3352
3368
|
await l._remove(a);
|
3353
3369
|
} catch {
|
3354
3370
|
}
|
3355
|
-
})), new
|
3371
|
+
})), new G(s, e, r));
|
3356
3372
|
}
|
3357
3373
|
}
|
3358
3374
|
/**
|
@@ -3385,7 +3401,7 @@ function Et(n) {
|
|
3385
3401
|
return "Firefox";
|
3386
3402
|
if (e.includes("silk/"))
|
3387
3403
|
return "Silk";
|
3388
|
-
if (
|
3404
|
+
if (fn(e))
|
3389
3405
|
return "Blackberry";
|
3390
3406
|
if (_n(e))
|
3391
3407
|
return "Webos";
|
@@ -3393,7 +3409,7 @@ function Et(n) {
|
|
3393
3409
|
return "Safari";
|
3394
3410
|
if ((e.includes("chrome/") || hn(e)) && !e.includes("edge/"))
|
3395
3411
|
return "Chrome";
|
3396
|
-
if (
|
3412
|
+
if (mn(e))
|
3397
3413
|
return "Android";
|
3398
3414
|
{
|
3399
3415
|
const t = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, r = n.match(t);
|
@@ -3415,10 +3431,10 @@ function hn(n = f()) {
|
|
3415
3431
|
function pn(n = f()) {
|
3416
3432
|
return /iemobile/i.test(n);
|
3417
3433
|
}
|
3418
|
-
function
|
3434
|
+
function mn(n = f()) {
|
3419
3435
|
return /android/i.test(n);
|
3420
3436
|
}
|
3421
|
-
function
|
3437
|
+
function fn(n = f()) {
|
3422
3438
|
return /blackberry/i.test(n);
|
3423
3439
|
}
|
3424
3440
|
function _n(n = f()) {
|
@@ -3427,15 +3443,15 @@ function _n(n = f()) {
|
|
3427
3443
|
function Ke(n = f()) {
|
3428
3444
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
3429
3445
|
}
|
3430
|
-
function
|
3446
|
+
function es(n = f()) {
|
3431
3447
|
var e;
|
3432
3448
|
return Ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
3433
3449
|
}
|
3434
|
-
function
|
3435
|
-
return
|
3450
|
+
function ts() {
|
3451
|
+
return vr() && document.documentMode === 10;
|
3436
3452
|
}
|
3437
3453
|
function gn(n = f()) {
|
3438
|
-
return Ke(n) ||
|
3454
|
+
return Ke(n) || mn(n) || _n(n) || fn(n) || /windows phone/i.test(n) || pn(n);
|
3439
3455
|
}
|
3440
3456
|
/**
|
3441
3457
|
* @license
|
@@ -3484,7 +3500,7 @@ function vn(n, e = []) {
|
|
3484
3500
|
* See the License for the specific language governing permissions and
|
3485
3501
|
* limitations under the License.
|
3486
3502
|
*/
|
3487
|
-
class
|
3503
|
+
class ns {
|
3488
3504
|
constructor(e) {
|
3489
3505
|
this.auth = e, this.queue = [];
|
3490
3506
|
}
|
@@ -3539,8 +3555,8 @@ class Qi {
|
|
3539
3555
|
* See the License for the specific language governing permissions and
|
3540
3556
|
* limitations under the License.
|
3541
3557
|
*/
|
3542
|
-
async function
|
3543
|
-
return
|
3558
|
+
async function rs(n, e = {}) {
|
3559
|
+
return $(n, "GET", "/v2/passwordPolicy", ve(n, e));
|
3544
3560
|
}
|
3545
3561
|
/**
|
3546
3562
|
* @license
|
@@ -3558,12 +3574,12 @@ async function es(n, e = {}) {
|
|
3558
3574
|
* See the License for the specific language governing permissions and
|
3559
3575
|
* limitations under the License.
|
3560
3576
|
*/
|
3561
|
-
const
|
3562
|
-
class
|
3577
|
+
const is = 6;
|
3578
|
+
class ss {
|
3563
3579
|
constructor(e) {
|
3564
3580
|
var t, r, i, s;
|
3565
3581
|
const a = e.customStrengthOptions;
|
3566
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t :
|
3582
|
+
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;
|
3567
3583
|
}
|
3568
3584
|
validatePassword(e) {
|
3569
3585
|
var t, r, i, s, a, c;
|
@@ -3646,14 +3662,14 @@ class ns {
|
|
3646
3662
|
* See the License for the specific language governing permissions and
|
3647
3663
|
* limitations under the License.
|
3648
3664
|
*/
|
3649
|
-
class
|
3665
|
+
class as {
|
3650
3666
|
constructor(e, t, r, i) {
|
3651
|
-
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
|
3667
|
+
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;
|
3652
3668
|
}
|
3653
3669
|
_initializeWithPersistence(e, t) {
|
3654
3670
|
return t && (this._popupRedirectResolver = E(t)), this._initializationPromise = this.queue(async () => {
|
3655
3671
|
var r, i;
|
3656
|
-
if (!this._deleted && (this.persistenceManager = await
|
3672
|
+
if (!this._deleted && (this.persistenceManager = await G.create(this, e), !this._deleted)) {
|
3657
3673
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
3658
3674
|
try {
|
3659
3675
|
await this._popupRedirectResolver._initialize(this);
|
@@ -3716,7 +3732,7 @@ class rs {
|
|
3716
3732
|
}
|
3717
3733
|
return i ? this.reloadAndSetCurrentUserOrClear(i) : this.directlySetCurrentUser(null);
|
3718
3734
|
}
|
3719
|
-
return
|
3735
|
+
return u(
|
3720
3736
|
this._popupRedirectResolver,
|
3721
3737
|
this,
|
3722
3738
|
"argument-error"
|
@@ -3734,7 +3750,7 @@ class rs {
|
|
3734
3750
|
}
|
3735
3751
|
async reloadAndSetCurrentUserOrClear(e) {
|
3736
3752
|
try {
|
3737
|
-
await
|
3753
|
+
await me(e);
|
3738
3754
|
} catch (t) {
|
3739
3755
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
3740
3756
|
return this.directlySetCurrentUser(null);
|
@@ -3742,7 +3758,7 @@ class rs {
|
|
3742
3758
|
return this.directlySetCurrentUser(e);
|
3743
3759
|
}
|
3744
3760
|
useDeviceLanguage() {
|
3745
|
-
this.languageCode =
|
3761
|
+
this.languageCode = Gi();
|
3746
3762
|
}
|
3747
3763
|
async _delete() {
|
3748
3764
|
this._deleted = !0;
|
@@ -3751,7 +3767,7 @@ class rs {
|
|
3751
3767
|
if (I(this.app))
|
3752
3768
|
return Promise.reject(P(this));
|
3753
3769
|
const t = e ? z(e) : null;
|
3754
|
-
return t &&
|
3770
|
+
return t && u(
|
3755
3771
|
t.auth.config.apiKey === this.config.apiKey,
|
3756
3772
|
this,
|
3757
3773
|
"invalid-user-token"
|
@@ -3760,7 +3776,7 @@ class rs {
|
|
3760
3776
|
}
|
3761
3777
|
async _updateCurrentUser(e, t = !1) {
|
3762
3778
|
if (!this._deleted)
|
3763
|
-
return e &&
|
3779
|
+
return e && u(
|
3764
3780
|
this.tenantId === e.tenantId,
|
3765
3781
|
this,
|
3766
3782
|
"tenant-id-mismatch"
|
@@ -3793,7 +3809,7 @@ class rs {
|
|
3793
3809
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
3794
3810
|
}
|
3795
3811
|
async _updatePasswordPolicy() {
|
3796
|
-
const e = await
|
3812
|
+
const e = await rs(this), t = new ss(e);
|
3797
3813
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
3798
3814
|
}
|
3799
3815
|
_getPersistence() {
|
@@ -3833,7 +3849,7 @@ class rs {
|
|
3833
3849
|
token: e,
|
3834
3850
|
idToken: t
|
3835
3851
|
};
|
3836
|
-
this.tenantId != null && (r.tenantId = this.tenantId), await
|
3852
|
+
this.tenantId != null && (r.tenantId = this.tenantId), await Qi(this, r);
|
3837
3853
|
}
|
3838
3854
|
}
|
3839
3855
|
toJSON() {
|
@@ -3852,12 +3868,12 @@ class rs {
|
|
3852
3868
|
async getOrInitRedirectPersistenceManager(e) {
|
3853
3869
|
if (!this.redirectPersistenceManager) {
|
3854
3870
|
const t = e && E(e) || this._popupRedirectResolver;
|
3855
|
-
|
3871
|
+
u(
|
3856
3872
|
t,
|
3857
3873
|
this,
|
3858
3874
|
"argument-error"
|
3859
3875
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
3860
|
-
), this.redirectPersistenceManager = await
|
3876
|
+
), this.redirectPersistenceManager = await G.create(
|
3861
3877
|
this,
|
3862
3878
|
[E(t._redirectPersistence)],
|
3863
3879
|
"redirectUser"
|
@@ -3907,7 +3923,7 @@ class rs {
|
|
3907
3923
|
const s = typeof t == "function" ? t : t.next.bind(t);
|
3908
3924
|
let a = !1;
|
3909
3925
|
const c = this._isInitialized ? Promise.resolve() : this._initializationPromise;
|
3910
|
-
if (
|
3926
|
+
if (u(
|
3911
3927
|
c,
|
3912
3928
|
this,
|
3913
3929
|
"internal-error"
|
@@ -3938,7 +3954,7 @@ class rs {
|
|
3938
3954
|
return this.operations = this.operations.then(e, e), this.operations;
|
3939
3955
|
}
|
3940
3956
|
get assertedPersistence() {
|
3941
|
-
return
|
3957
|
+
return u(
|
3942
3958
|
this.persistenceManager,
|
3943
3959
|
this,
|
3944
3960
|
"internal-error"
|
@@ -3976,7 +3992,7 @@ class rs {
|
|
3976
3992
|
async _getAppCheckToken() {
|
3977
3993
|
var e;
|
3978
3994
|
const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
3979
|
-
return t != null && t.error &&
|
3995
|
+
return t != null && t.error && ji(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
3980
3996
|
}
|
3981
3997
|
}
|
3982
3998
|
function Ie(n) {
|
@@ -3984,10 +4000,10 @@ function Ie(n) {
|
|
3984
4000
|
}
|
3985
4001
|
class Tt {
|
3986
4002
|
constructor(e) {
|
3987
|
-
this.auth = e, this.observer = null, this.addObserver =
|
4003
|
+
this.auth = e, this.observer = null, this.addObserver = kr((t) => this.observer = t);
|
3988
4004
|
}
|
3989
4005
|
get next() {
|
3990
|
-
return
|
4006
|
+
return u(
|
3991
4007
|
this.observer,
|
3992
4008
|
this.auth,
|
3993
4009
|
"internal-error"
|
@@ -4019,16 +4035,16 @@ let qe = {
|
|
4019
4035
|
recaptchaEnterpriseScript: "",
|
4020
4036
|
gapiScript: ""
|
4021
4037
|
};
|
4022
|
-
function
|
4038
|
+
function os(n) {
|
4023
4039
|
qe = n;
|
4024
4040
|
}
|
4025
|
-
function
|
4041
|
+
function cs(n) {
|
4026
4042
|
return qe.loadJS(n);
|
4027
4043
|
}
|
4028
|
-
function
|
4044
|
+
function ls() {
|
4029
4045
|
return qe.gapiScript;
|
4030
4046
|
}
|
4031
|
-
function
|
4047
|
+
function ds(n) {
|
4032
4048
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
4033
4049
|
}
|
4034
4050
|
/**
|
@@ -4047,7 +4063,7 @@ function os(n) {
|
|
4047
4063
|
* See the License for the specific language governing permissions and
|
4048
4064
|
* limitations under the License.
|
4049
4065
|
*/
|
4050
|
-
function
|
4066
|
+
function us(n, e) {
|
4051
4067
|
const t = Xt(n, "auth");
|
4052
4068
|
if (t.isInitialized()) {
|
4053
4069
|
const i = t.getImmediate(), s = t.getOptions();
|
@@ -4061,36 +4077,36 @@ function cs(n, e) {
|
|
4061
4077
|
}
|
4062
4078
|
return t.initialize({ options: e });
|
4063
4079
|
}
|
4064
|
-
function
|
4080
|
+
function hs(n, e) {
|
4065
4081
|
const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(E);
|
4066
4082
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
4067
4083
|
}
|
4068
|
-
function
|
4084
|
+
function ps(n, e, t) {
|
4069
4085
|
const r = Ie(n);
|
4070
|
-
|
4086
|
+
u(
|
4071
4087
|
r._canInitEmulator,
|
4072
4088
|
r,
|
4073
4089
|
"emulator-config-failed"
|
4074
4090
|
/* AuthErrorCode.EMULATOR_CONFIG_FAILED */
|
4075
|
-
),
|
4091
|
+
), u(
|
4076
4092
|
/^https?:\/\//.test(e),
|
4077
4093
|
r,
|
4078
4094
|
"invalid-emulator-scheme"
|
4079
4095
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
4080
4096
|
);
|
4081
|
-
const i = !1, s = In(e), { host: a, port: c } =
|
4097
|
+
const i = !1, s = In(e), { host: a, port: c } = ms(e), o = c === null ? "" : `:${c}`;
|
4082
4098
|
r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
4083
4099
|
host: a,
|
4084
4100
|
port: c,
|
4085
4101
|
protocol: s.replace(":", ""),
|
4086
4102
|
options: Object.freeze({ disableWarnings: i })
|
4087
|
-
}),
|
4103
|
+
}), fs();
|
4088
4104
|
}
|
4089
4105
|
function In(n) {
|
4090
4106
|
const e = n.indexOf(":");
|
4091
4107
|
return e < 0 ? "" : n.substr(0, e + 1);
|
4092
4108
|
}
|
4093
|
-
function
|
4109
|
+
function ms(n) {
|
4094
4110
|
const e = In(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
4095
4111
|
if (!t)
|
4096
4112
|
return { host: "", port: null };
|
@@ -4109,7 +4125,7 @@ function wt(n) {
|
|
4109
4125
|
const e = Number(n);
|
4110
4126
|
return isNaN(e) ? null : e;
|
4111
4127
|
}
|
4112
|
-
function
|
4128
|
+
function fs() {
|
4113
4129
|
function n() {
|
4114
4130
|
const e = document.createElement("p"), t = e.style;
|
4115
4131
|
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);
|
@@ -4174,7 +4190,7 @@ class bn {
|
|
4174
4190
|
* See the License for the specific language governing permissions and
|
4175
4191
|
* limitations under the License.
|
4176
4192
|
*/
|
4177
|
-
async function
|
4193
|
+
async function V(n, e) {
|
4178
4194
|
return sn(n, "POST", "/v1/accounts:signInWithIdp", ve(n, e));
|
4179
4195
|
}
|
4180
4196
|
/**
|
@@ -4193,7 +4209,7 @@ async function G(n, e) {
|
|
4193
4209
|
* See the License for the specific language governing permissions and
|
4194
4210
|
* limitations under the License.
|
4195
4211
|
*/
|
4196
|
-
const
|
4212
|
+
const _s = "http://localhost";
|
4197
4213
|
class U extends bn {
|
4198
4214
|
constructor() {
|
4199
4215
|
super(...arguments), this.pendingToken = null;
|
@@ -4228,7 +4244,7 @@ class U extends bn {
|
|
4228
4244
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
4229
4245
|
*/
|
4230
4246
|
static fromJSON(e) {
|
4231
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
4247
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = Ze(t, ["providerId", "signInMethod"]);
|
4232
4248
|
if (!r || !i)
|
4233
4249
|
return null;
|
4234
4250
|
const a = new U(r, i);
|
@@ -4237,21 +4253,21 @@ class U extends bn {
|
|
4237
4253
|
/** @internal */
|
4238
4254
|
_getIdTokenResponse(e) {
|
4239
4255
|
const t = this.buildRequest();
|
4240
|
-
return
|
4256
|
+
return V(e, t);
|
4241
4257
|
}
|
4242
4258
|
/** @internal */
|
4243
4259
|
_linkToIdToken(e, t) {
|
4244
4260
|
const r = this.buildRequest();
|
4245
|
-
return r.idToken = t,
|
4261
|
+
return r.idToken = t, V(e, r);
|
4246
4262
|
}
|
4247
4263
|
/** @internal */
|
4248
4264
|
_getReauthenticationResolver(e) {
|
4249
4265
|
const t = this.buildRequest();
|
4250
|
-
return t.autoCreate = !1,
|
4266
|
+
return t.autoCreate = !1, V(e, t);
|
4251
4267
|
}
|
4252
4268
|
buildRequest() {
|
4253
4269
|
const e = {
|
4254
|
-
requestUri:
|
4270
|
+
requestUri: _s,
|
4255
4271
|
returnSecureToken: !0
|
4256
4272
|
};
|
4257
4273
|
if (this.pendingToken)
|
@@ -4578,7 +4594,7 @@ O.PROVIDER_ID = "github.com";
|
|
4578
4594
|
* See the License for the specific language governing permissions and
|
4579
4595
|
* limitations under the License.
|
4580
4596
|
*/
|
4581
|
-
class
|
4597
|
+
class C extends ne {
|
4582
4598
|
constructor() {
|
4583
4599
|
super(
|
4584
4600
|
"twitter.com"
|
@@ -4593,8 +4609,8 @@ class N extends ne {
|
|
4593
4609
|
*/
|
4594
4610
|
static credential(e, t) {
|
4595
4611
|
return U._fromParams({
|
4596
|
-
providerId:
|
4597
|
-
signInMethod:
|
4612
|
+
providerId: C.PROVIDER_ID,
|
4613
|
+
signInMethod: C.TWITTER_SIGN_IN_METHOD,
|
4598
4614
|
oauthToken: e,
|
4599
4615
|
oauthTokenSecret: t
|
4600
4616
|
});
|
@@ -4605,7 +4621,7 @@ class N extends ne {
|
|
4605
4621
|
* @param userCredential - The user credential.
|
4606
4622
|
*/
|
4607
4623
|
static credentialFromResult(e) {
|
4608
|
-
return
|
4624
|
+
return C.credentialFromTaggedObject(e);
|
4609
4625
|
}
|
4610
4626
|
/**
|
4611
4627
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
@@ -4614,7 +4630,7 @@ class N extends ne {
|
|
4614
4630
|
* @param userCredential - The user credential.
|
4615
4631
|
*/
|
4616
4632
|
static credentialFromError(e) {
|
4617
|
-
return
|
4633
|
+
return C.credentialFromTaggedObject(e.customData || {});
|
4618
4634
|
}
|
4619
4635
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
4620
4636
|
if (!e)
|
@@ -4623,14 +4639,14 @@ class N extends ne {
|
|
4623
4639
|
if (!t || !r)
|
4624
4640
|
return null;
|
4625
4641
|
try {
|
4626
|
-
return
|
4642
|
+
return C.credential(t, r);
|
4627
4643
|
} catch {
|
4628
4644
|
return null;
|
4629
4645
|
}
|
4630
4646
|
}
|
4631
4647
|
}
|
4632
|
-
|
4633
|
-
|
4648
|
+
C.TWITTER_SIGN_IN_METHOD = "twitter.com";
|
4649
|
+
C.PROVIDER_ID = "twitter.com";
|
4634
4650
|
/**
|
4635
4651
|
* @license
|
4636
4652
|
* Copyright 2020 Google LLC
|
@@ -4652,7 +4668,7 @@ class B {
|
|
4652
4668
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
4653
4669
|
}
|
4654
4670
|
static async _fromIdTokenResponse(e, t, r, i = !1) {
|
4655
|
-
const s = await y._fromIdTokenResponse(e, r, i), a =
|
4671
|
+
const s = await y._fromIdTokenResponse(e, r, i), a = kt(r);
|
4656
4672
|
return new B({
|
4657
4673
|
user: s,
|
4658
4674
|
providerId: a,
|
@@ -4666,7 +4682,7 @@ class B {
|
|
4666
4682
|
/* reload */
|
4667
4683
|
!0
|
4668
4684
|
);
|
4669
|
-
const i =
|
4685
|
+
const i = kt(r);
|
4670
4686
|
return new B({
|
4671
4687
|
user: e,
|
4672
4688
|
providerId: i,
|
@@ -4675,7 +4691,7 @@ class B {
|
|
4675
4691
|
});
|
4676
4692
|
}
|
4677
4693
|
}
|
4678
|
-
function
|
4694
|
+
function kt(n) {
|
4679
4695
|
return n.providerId ? n.providerId : "phoneNumber" in n ? "phone" : null;
|
4680
4696
|
}
|
4681
4697
|
/**
|
@@ -4694,10 +4710,10 @@ function Rt(n) {
|
|
4694
4710
|
* See the License for the specific language governing permissions and
|
4695
4711
|
* limitations under the License.
|
4696
4712
|
*/
|
4697
|
-
class
|
4713
|
+
class fe extends M {
|
4698
4714
|
constructor(e, t, r, i) {
|
4699
4715
|
var s;
|
4700
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
4716
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, fe.prototype), this.customData = {
|
4701
4717
|
appName: e.name,
|
4702
4718
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
4703
4719
|
_serverResponse: t.customData._serverResponse,
|
@@ -4705,15 +4721,15 @@ class me extends M {
|
|
4705
4721
|
};
|
4706
4722
|
}
|
4707
4723
|
static _fromErrorAndOperation(e, t, r, i) {
|
4708
|
-
return new
|
4724
|
+
return new fe(e, t, r, i);
|
4709
4725
|
}
|
4710
4726
|
}
|
4711
4727
|
function En(n, e, t, r) {
|
4712
4728
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
4713
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
4729
|
+
throw s.code === "auth/multi-factor-auth-required" ? fe._fromErrorAndOperation(n, s, e, r) : s;
|
4714
4730
|
});
|
4715
4731
|
}
|
4716
|
-
async function
|
4732
|
+
async function gs(n, e, t = !1) {
|
4717
4733
|
const r = await K(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
4718
4734
|
return B._forOperation(n, "link", r);
|
4719
4735
|
}
|
@@ -4733,28 +4749,28 @@ async function fs(n, e, t = !1) {
|
|
4733
4749
|
* See the License for the specific language governing permissions and
|
4734
4750
|
* limitations under the License.
|
4735
4751
|
*/
|
4736
|
-
async function
|
4752
|
+
async function vs(n, e, t = !1) {
|
4737
4753
|
const { auth: r } = n;
|
4738
4754
|
if (I(r.app))
|
4739
4755
|
return Promise.reject(P(r));
|
4740
4756
|
const i = "reauthenticate";
|
4741
4757
|
try {
|
4742
4758
|
const s = await K(n, En(r, i, e, n), t);
|
4743
|
-
|
4759
|
+
u(
|
4744
4760
|
s.idToken,
|
4745
4761
|
r,
|
4746
4762
|
"internal-error"
|
4747
4763
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4748
4764
|
);
|
4749
4765
|
const a = Ye(s.idToken);
|
4750
|
-
|
4766
|
+
u(
|
4751
4767
|
a,
|
4752
4768
|
r,
|
4753
4769
|
"internal-error"
|
4754
4770
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4755
4771
|
);
|
4756
4772
|
const { sub: c } = a;
|
4757
|
-
return
|
4773
|
+
return u(
|
4758
4774
|
n.uid === c,
|
4759
4775
|
r,
|
4760
4776
|
"user-mismatch"
|
@@ -4784,7 +4800,7 @@ async function ms(n, e, t = !1) {
|
|
4784
4800
|
* See the License for the specific language governing permissions and
|
4785
4801
|
* limitations under the License.
|
4786
4802
|
*/
|
4787
|
-
async function
|
4803
|
+
async function Is(n, e, t = !1) {
|
4788
4804
|
if (I(n.app))
|
4789
4805
|
return Promise.reject(P(n));
|
4790
4806
|
const r = "signIn", i = await En(n, r, e), s = await B._fromIdTokenResponse(n, r, i);
|
@@ -4806,7 +4822,7 @@ async function _s(n, e, t = !1) {
|
|
4806
4822
|
* See the License for the specific language governing permissions and
|
4807
4823
|
* limitations under the License.
|
4808
4824
|
*/
|
4809
|
-
async function
|
4825
|
+
async function bs(n, e) {
|
4810
4826
|
return sn(n, "POST", "/v1/accounts:signInWithCustomToken", ve(n, e));
|
4811
4827
|
}
|
4812
4828
|
/**
|
@@ -4825,19 +4841,19 @@ async function gs(n, e) {
|
|
4825
4841
|
* See the License for the specific language governing permissions and
|
4826
4842
|
* limitations under the License.
|
4827
4843
|
*/
|
4828
|
-
async function
|
4844
|
+
async function ys(n, e) {
|
4829
4845
|
if (I(n.app))
|
4830
4846
|
return Promise.reject(P(n));
|
4831
|
-
const t = Ie(n), r = await
|
4847
|
+
const t = Ie(n), r = await bs(t, {
|
4832
4848
|
token: e,
|
4833
4849
|
returnSecureToken: !0
|
4834
4850
|
}), i = await B._fromIdTokenResponse(t, "signIn", r);
|
4835
4851
|
return await t._updateCurrentUser(i.user), i;
|
4836
4852
|
}
|
4837
|
-
function
|
4853
|
+
function Es(n, e, t, r) {
|
4838
4854
|
return z(n).onIdTokenChanged(e, t, r);
|
4839
4855
|
}
|
4840
|
-
function
|
4856
|
+
function Ts(n, e, t) {
|
4841
4857
|
return z(n).beforeAuthStateChanged(e, t);
|
4842
4858
|
}
|
4843
4859
|
const _e = "__sak";
|
@@ -4898,7 +4914,7 @@ class Tn {
|
|
4898
4914
|
* See the License for the specific language governing permissions and
|
4899
4915
|
* limitations under the License.
|
4900
4916
|
*/
|
4901
|
-
const
|
4917
|
+
const ws = 1e3, ks = 10;
|
4902
4918
|
class wn extends Tn {
|
4903
4919
|
constructor() {
|
4904
4920
|
super(
|
@@ -4926,7 +4942,7 @@ class wn extends Tn {
|
|
4926
4942
|
const a = this.storage.getItem(r);
|
4927
4943
|
!t && this.localCache[r] === a || this.notifyListeners(r, a);
|
4928
4944
|
}, s = this.storage.getItem(r);
|
4929
|
-
|
4945
|
+
ts() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, ks) : i();
|
4930
4946
|
}
|
4931
4947
|
notifyListeners(e, t) {
|
4932
4948
|
this.localCache[e] = t;
|
@@ -4948,7 +4964,7 @@ class wn extends Tn {
|
|
4948
4964
|
!0
|
4949
4965
|
);
|
4950
4966
|
});
|
4951
|
-
},
|
4967
|
+
}, ws);
|
4952
4968
|
}
|
4953
4969
|
stopPolling() {
|
4954
4970
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -4978,7 +4994,7 @@ class wn extends Tn {
|
|
4978
4994
|
}
|
4979
4995
|
}
|
4980
4996
|
wn.type = "LOCAL";
|
4981
|
-
const
|
4997
|
+
const Rs = wn;
|
4982
4998
|
/**
|
4983
4999
|
* @license
|
4984
5000
|
* Copyright 2020 Google LLC
|
@@ -4995,7 +5011,7 @@ const Ts = wn;
|
|
4995
5011
|
* See the License for the specific language governing permissions and
|
4996
5012
|
* limitations under the License.
|
4997
5013
|
*/
|
4998
|
-
class
|
5014
|
+
class kn extends Tn {
|
4999
5015
|
constructor() {
|
5000
5016
|
super(
|
5001
5017
|
() => window.sessionStorage,
|
@@ -5008,8 +5024,8 @@ class Rn extends Tn {
|
|
5008
5024
|
_removeListener(e, t) {
|
5009
5025
|
}
|
5010
5026
|
}
|
5011
|
-
|
5012
|
-
const
|
5027
|
+
kn.type = "SESSION";
|
5028
|
+
const Rn = kn;
|
5013
5029
|
/**
|
5014
5030
|
* @license
|
5015
5031
|
* Copyright 2019 Google LLC
|
@@ -5026,7 +5042,7 @@ const kn = Rn;
|
|
5026
5042
|
* See the License for the specific language governing permissions and
|
5027
5043
|
* limitations under the License.
|
5028
5044
|
*/
|
5029
|
-
function
|
5045
|
+
function Ss(n) {
|
5030
5046
|
return Promise.all(n.map(async (e) => {
|
5031
5047
|
try {
|
5032
5048
|
return {
|
@@ -5096,7 +5112,7 @@ class be {
|
|
5096
5112
|
eventId: r,
|
5097
5113
|
eventType: i
|
5098
5114
|
});
|
5099
|
-
const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await
|
5115
|
+
const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await Ss(c);
|
5100
5116
|
t.ports[0].postMessage({
|
5101
5117
|
status: "done",
|
5102
5118
|
eventId: r,
|
@@ -5164,7 +5180,7 @@ function Qe(n = "", e = 10) {
|
|
5164
5180
|
* See the License for the specific language governing permissions and
|
5165
5181
|
* limitations under the License.
|
5166
5182
|
*/
|
5167
|
-
class
|
5183
|
+
class As {
|
5168
5184
|
constructor(e) {
|
5169
5185
|
this.target = e, this.handlers = /* @__PURE__ */ new Set();
|
5170
5186
|
}
|
@@ -5200,7 +5216,7 @@ class Rs {
|
|
5200
5216
|
return new Promise((c, o) => {
|
5201
5217
|
const l = Qe("", 20);
|
5202
5218
|
i.port1.start();
|
5203
|
-
const
|
5219
|
+
const d = setTimeout(() => {
|
5204
5220
|
o(new Error(
|
5205
5221
|
"unsupported_event"
|
5206
5222
|
/* _MessageError.UNSUPPORTED_EVENT */
|
@@ -5208,12 +5224,12 @@ class Rs {
|
|
5208
5224
|
}, r);
|
5209
5225
|
a = {
|
5210
5226
|
messageChannel: i,
|
5211
|
-
onMessage(
|
5212
|
-
const m =
|
5227
|
+
onMessage(h) {
|
5228
|
+
const m = h;
|
5213
5229
|
if (m.data.eventId === l)
|
5214
5230
|
switch (m.data.status) {
|
5215
5231
|
case "ack":
|
5216
|
-
clearTimeout(
|
5232
|
+
clearTimeout(d), s = setTimeout(
|
5217
5233
|
() => {
|
5218
5234
|
o(new Error(
|
5219
5235
|
"timeout"
|
@@ -5228,7 +5244,7 @@ class Rs {
|
|
5228
5244
|
clearTimeout(s), c(m.data.response);
|
5229
5245
|
break;
|
5230
5246
|
default:
|
5231
|
-
clearTimeout(
|
5247
|
+
clearTimeout(d), clearTimeout(s), o(new Error(
|
5232
5248
|
"invalid_response"
|
5233
5249
|
/* _MessageError.INVALID_RESPONSE */
|
5234
5250
|
));
|
@@ -5264,7 +5280,7 @@ class Rs {
|
|
5264
5280
|
function g() {
|
5265
5281
|
return window;
|
5266
5282
|
}
|
5267
|
-
function
|
5283
|
+
function Os(n) {
|
5268
5284
|
g().location.href = n;
|
5269
5285
|
}
|
5270
5286
|
/**
|
@@ -5286,7 +5302,7 @@ function ks(n) {
|
|
5286
5302
|
function Sn() {
|
5287
5303
|
return typeof g().WorkerGlobalScope < "u" && typeof g().importScripts == "function";
|
5288
5304
|
}
|
5289
|
-
async function
|
5305
|
+
async function Cs() {
|
5290
5306
|
if (!(navigator != null && navigator.serviceWorker))
|
5291
5307
|
return null;
|
5292
5308
|
try {
|
@@ -5295,11 +5311,11 @@ async function Ss() {
|
|
5295
5311
|
return null;
|
5296
5312
|
}
|
5297
5313
|
}
|
5298
|
-
function
|
5314
|
+
function Ns() {
|
5299
5315
|
var n;
|
5300
5316
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
5301
5317
|
}
|
5302
|
-
function
|
5318
|
+
function Ds() {
|
5303
5319
|
return Sn() ? self : null;
|
5304
5320
|
}
|
5305
5321
|
/**
|
@@ -5318,7 +5334,7 @@ function Os() {
|
|
5318
5334
|
* See the License for the specific language governing permissions and
|
5319
5335
|
* limitations under the License.
|
5320
5336
|
*/
|
5321
|
-
const An = "firebaseLocalStorageDb",
|
5337
|
+
const An = "firebaseLocalStorageDb", Ps = 1, ge = "firebaseLocalStorage", On = "fbase_key";
|
5322
5338
|
class re {
|
5323
5339
|
constructor(e) {
|
5324
5340
|
this.request = e;
|
@@ -5336,12 +5352,12 @@ class re {
|
|
5336
5352
|
function ye(n, e) {
|
5337
5353
|
return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
|
5338
5354
|
}
|
5339
|
-
function
|
5355
|
+
function Ms() {
|
5340
5356
|
const n = indexedDB.deleteDatabase(An);
|
5341
5357
|
return new re(n).toPromise();
|
5342
5358
|
}
|
5343
|
-
function
|
5344
|
-
const n = indexedDB.open(An,
|
5359
|
+
function Ge() {
|
5360
|
+
const n = indexedDB.open(An, Ps);
|
5345
5361
|
return new Promise((e, t) => {
|
5346
5362
|
n.addEventListener("error", () => {
|
5347
5363
|
t(n.error);
|
@@ -5354,18 +5370,18 @@ function Ve() {
|
|
5354
5370
|
}
|
5355
5371
|
}), n.addEventListener("success", async () => {
|
5356
5372
|
const r = n.result;
|
5357
|
-
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await
|
5373
|
+
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ms(), e(await Ge()));
|
5358
5374
|
});
|
5359
5375
|
});
|
5360
5376
|
}
|
5361
|
-
async function
|
5377
|
+
async function Rt(n, e, t) {
|
5362
5378
|
const r = ye(n, !0).put({
|
5363
5379
|
[On]: e,
|
5364
5380
|
value: t
|
5365
5381
|
});
|
5366
5382
|
return new re(r).toPromise();
|
5367
5383
|
}
|
5368
|
-
async function
|
5384
|
+
async function Ls(n, e) {
|
5369
5385
|
const t = ye(n, !1).get(e), r = await new re(t).toPromise();
|
5370
5386
|
return r === void 0 ? null : r.value;
|
5371
5387
|
}
|
@@ -5373,15 +5389,15 @@ function St(n, e) {
|
|
5373
5389
|
const t = ye(n, !0).delete(e);
|
5374
5390
|
return new re(t).toPromise();
|
5375
5391
|
}
|
5376
|
-
const
|
5377
|
-
class
|
5392
|
+
const Us = 800, Bs = 3;
|
5393
|
+
class Cn {
|
5378
5394
|
constructor() {
|
5379
5395
|
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(() => {
|
5380
5396
|
}, () => {
|
5381
5397
|
});
|
5382
5398
|
}
|
5383
5399
|
async _openDb() {
|
5384
|
-
return this.db ? this.db : (this.db = await
|
5400
|
+
return this.db ? this.db : (this.db = await Ge(), this.db);
|
5385
5401
|
}
|
5386
5402
|
async _withRetries(e) {
|
5387
5403
|
let t = 0;
|
@@ -5390,7 +5406,7 @@ class Nn {
|
|
5390
5406
|
const r = await this._openDb();
|
5391
5407
|
return await e(r);
|
5392
5408
|
} catch (r) {
|
5393
|
-
if (t++ >
|
5409
|
+
if (t++ > Bs)
|
5394
5410
|
throw r;
|
5395
5411
|
this.db && (this.db.close(), this.db = void 0);
|
5396
5412
|
}
|
@@ -5406,7 +5422,7 @@ class Nn {
|
|
5406
5422
|
* As the worker we should listen to events from the main window.
|
5407
5423
|
*/
|
5408
5424
|
async initializeReceiver() {
|
5409
|
-
this.receiver = be._getInstance(
|
5425
|
+
this.receiver = be._getInstance(Ds()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
5410
5426
|
keyProcessed: (await this._poll()).includes(t.key)
|
5411
5427
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
5412
5428
|
"keyChanged"
|
@@ -5422,9 +5438,9 @@ class Nn {
|
|
5422
5438
|
*/
|
5423
5439
|
async initializeSender() {
|
5424
5440
|
var e, t;
|
5425
|
-
if (this.activeServiceWorker = await
|
5441
|
+
if (this.activeServiceWorker = await Cs(), !this.activeServiceWorker)
|
5426
5442
|
return;
|
5427
|
-
this.sender = new
|
5443
|
+
this.sender = new As(this.activeServiceWorker);
|
5428
5444
|
const r = await this.sender._send(
|
5429
5445
|
"ping",
|
5430
5446
|
{},
|
@@ -5446,7 +5462,7 @@ class Nn {
|
|
5446
5462
|
* @param key - Storage key which changed.
|
5447
5463
|
*/
|
5448
5464
|
async notifyServiceWorker(e) {
|
5449
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
5465
|
+
if (!(!this.sender || !this.activeServiceWorker || Ns() !== this.activeServiceWorker))
|
5450
5466
|
try {
|
5451
5467
|
await this.sender._send(
|
5452
5468
|
"keyChanged",
|
@@ -5462,8 +5478,8 @@ class Nn {
|
|
5462
5478
|
try {
|
5463
5479
|
if (!indexedDB)
|
5464
5480
|
return !1;
|
5465
|
-
const e = await
|
5466
|
-
return await
|
5481
|
+
const e = await Ge();
|
5482
|
+
return await Rt(e, _e, "1"), await St(e, _e), !0;
|
5467
5483
|
} catch {
|
5468
5484
|
}
|
5469
5485
|
return !1;
|
@@ -5477,10 +5493,10 @@ class Nn {
|
|
5477
5493
|
}
|
5478
5494
|
}
|
5479
5495
|
async _set(e, t) {
|
5480
|
-
return this._withPendingWrite(async () => (await this._withRetries((r) =>
|
5496
|
+
return this._withPendingWrite(async () => (await this._withRetries((r) => Rt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
5481
5497
|
}
|
5482
5498
|
async _get(e) {
|
5483
|
-
const t = await this._withRetries((r) =>
|
5499
|
+
const t = await this._withRetries((r) => Ls(r, e));
|
5484
5500
|
return this.localCache[e] = t, t;
|
5485
5501
|
}
|
5486
5502
|
async _remove(e) {
|
@@ -5511,7 +5527,7 @@ class Nn {
|
|
5511
5527
|
i(t);
|
5512
5528
|
}
|
5513
5529
|
startPolling() {
|
5514
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
5530
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Us);
|
5515
5531
|
}
|
5516
5532
|
stopPolling() {
|
5517
5533
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -5523,8 +5539,8 @@ class Nn {
|
|
5523
5539
|
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();
|
5524
5540
|
}
|
5525
5541
|
}
|
5526
|
-
|
5527
|
-
const
|
5542
|
+
Cn.type = "LOCAL";
|
5543
|
+
const Fs = Cn;
|
5528
5544
|
new te(3e4, 6e4);
|
5529
5545
|
/**
|
5530
5546
|
* @license
|
@@ -5542,8 +5558,8 @@ new te(3e4, 6e4);
|
|
5542
5558
|
* See the License for the specific language governing permissions and
|
5543
5559
|
* limitations under the License.
|
5544
5560
|
*/
|
5545
|
-
function
|
5546
|
-
return e ? E(e) : (
|
5561
|
+
function js(n, e) {
|
5562
|
+
return e ? E(e) : (u(
|
5547
5563
|
n._popupRedirectResolver,
|
5548
5564
|
n,
|
5549
5565
|
"argument-error"
|
@@ -5575,13 +5591,13 @@ class et extends bn {
|
|
5575
5591
|
), this.params = e;
|
5576
5592
|
}
|
5577
5593
|
_getIdTokenResponse(e) {
|
5578
|
-
return
|
5594
|
+
return V(e, this._buildIdpRequest());
|
5579
5595
|
}
|
5580
5596
|
_linkToIdToken(e, t) {
|
5581
|
-
return
|
5597
|
+
return V(e, this._buildIdpRequest(t));
|
5582
5598
|
}
|
5583
5599
|
_getReauthenticationResolver(e) {
|
5584
|
-
return
|
5600
|
+
return V(e, this._buildIdpRequest());
|
5585
5601
|
}
|
5586
5602
|
_buildIdpRequest(e) {
|
5587
5603
|
const t = {
|
@@ -5596,26 +5612,26 @@ class et extends bn {
|
|
5596
5612
|
return e && (t.idToken = e), t;
|
5597
5613
|
}
|
5598
5614
|
}
|
5599
|
-
function
|
5600
|
-
return
|
5615
|
+
function xs(n) {
|
5616
|
+
return Is(n.auth, new et(n), n.bypassAuthState);
|
5601
5617
|
}
|
5602
|
-
function
|
5618
|
+
function Hs(n) {
|
5603
5619
|
const { auth: e, user: t } = n;
|
5604
|
-
return
|
5620
|
+
return u(
|
5605
5621
|
t,
|
5606
5622
|
e,
|
5607
5623
|
"internal-error"
|
5608
5624
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5609
|
-
),
|
5625
|
+
), vs(t, new et(n), n.bypassAuthState);
|
5610
5626
|
}
|
5611
|
-
async function
|
5627
|
+
async function Gs(n) {
|
5612
5628
|
const { auth: e, user: t } = n;
|
5613
|
-
return
|
5629
|
+
return u(
|
5614
5630
|
t,
|
5615
5631
|
e,
|
5616
5632
|
"internal-error"
|
5617
5633
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5618
|
-
),
|
5634
|
+
), gs(t, new et(n), n.bypassAuthState);
|
5619
5635
|
}
|
5620
5636
|
/**
|
5621
5637
|
* @license
|
@@ -5633,7 +5649,7 @@ async function xs(n) {
|
|
5633
5649
|
* See the License for the specific language governing permissions and
|
5634
5650
|
* limitations under the License.
|
5635
5651
|
*/
|
5636
|
-
class
|
5652
|
+
class Nn {
|
5637
5653
|
constructor(e, t, r, i, s = !1) {
|
5638
5654
|
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];
|
5639
5655
|
}
|
@@ -5675,13 +5691,13 @@ class Cn {
|
|
5675
5691
|
switch (e) {
|
5676
5692
|
case "signInViaPopup":
|
5677
5693
|
case "signInViaRedirect":
|
5678
|
-
return
|
5694
|
+
return xs;
|
5679
5695
|
case "linkViaPopup":
|
5680
5696
|
case "linkViaRedirect":
|
5681
|
-
return
|
5697
|
+
return Gs;
|
5682
5698
|
case "reauthViaPopup":
|
5683
5699
|
case "reauthViaRedirect":
|
5684
|
-
return
|
5700
|
+
return Hs;
|
5685
5701
|
default:
|
5686
5702
|
w(
|
5687
5703
|
this.auth,
|
@@ -5691,10 +5707,10 @@ class Cn {
|
|
5691
5707
|
}
|
5692
5708
|
}
|
5693
5709
|
resolve(e) {
|
5694
|
-
|
5710
|
+
k(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
|
5695
5711
|
}
|
5696
5712
|
reject(e) {
|
5697
|
-
|
5713
|
+
k(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
|
5698
5714
|
}
|
5699
5715
|
unregisterAndCleanUp() {
|
5700
5716
|
this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
|
@@ -5716,14 +5732,14 @@ class Cn {
|
|
5716
5732
|
* See the License for the specific language governing permissions and
|
5717
5733
|
* limitations under the License.
|
5718
5734
|
*/
|
5719
|
-
const
|
5720
|
-
class
|
5735
|
+
const Vs = new te(2e3, 1e4);
|
5736
|
+
class j extends Nn {
|
5721
5737
|
constructor(e, t, r, i, s) {
|
5722
|
-
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null,
|
5738
|
+
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, j.currentPopupAction && j.currentPopupAction.cancel(), j.currentPopupAction = this;
|
5723
5739
|
}
|
5724
5740
|
async executeNotNull() {
|
5725
5741
|
const e = await this.execute();
|
5726
|
-
return
|
5742
|
+
return u(
|
5727
5743
|
e,
|
5728
5744
|
this.auth,
|
5729
5745
|
"internal-error"
|
@@ -5731,7 +5747,7 @@ class x extends Cn {
|
|
5731
5747
|
), e;
|
5732
5748
|
}
|
5733
5749
|
async onExecution() {
|
5734
|
-
|
5750
|
+
k(this.filter.length === 1, "Popup operations only handle one event");
|
5735
5751
|
const e = Qe();
|
5736
5752
|
this.authWindow = await this.resolver._openPopup(
|
5737
5753
|
this.auth,
|
@@ -5761,7 +5777,7 @@ class x extends Cn {
|
|
5761
5777
|
));
|
5762
5778
|
}
|
5763
5779
|
cleanUp() {
|
5764
|
-
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null,
|
5780
|
+
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, j.currentPopupAction = null;
|
5765
5781
|
}
|
5766
5782
|
pollUserCancellation() {
|
5767
5783
|
const e = () => {
|
@@ -5780,12 +5796,12 @@ class x extends Cn {
|
|
5780
5796
|
);
|
5781
5797
|
return;
|
5782
5798
|
}
|
5783
|
-
this.pollId = window.setTimeout(e,
|
5799
|
+
this.pollId = window.setTimeout(e, Vs.get());
|
5784
5800
|
};
|
5785
5801
|
e();
|
5786
5802
|
}
|
5787
5803
|
}
|
5788
|
-
|
5804
|
+
j.currentPopupAction = null;
|
5789
5805
|
/**
|
5790
5806
|
* @license
|
5791
5807
|
* Copyright 2020 Google LLC
|
@@ -5802,8 +5818,8 @@ x.currentPopupAction = null;
|
|
5802
5818
|
* See the License for the specific language governing permissions and
|
5803
5819
|
* limitations under the License.
|
5804
5820
|
*/
|
5805
|
-
const
|
5806
|
-
class
|
5821
|
+
const Ws = "pendingRedirect", oe = /* @__PURE__ */ new Map();
|
5822
|
+
class zs extends Nn {
|
5807
5823
|
constructor(e, t, r = !1) {
|
5808
5824
|
super(e, [
|
5809
5825
|
"signInViaRedirect",
|
@@ -5821,7 +5837,7 @@ class Vs extends Cn {
|
|
5821
5837
|
let e = oe.get(this.auth._key());
|
5822
5838
|
if (!e) {
|
5823
5839
|
try {
|
5824
|
-
const r = await
|
5840
|
+
const r = await $s(this.resolver, this.auth) ? await super.execute() : null;
|
5825
5841
|
e = () => Promise.resolve(r);
|
5826
5842
|
} catch (t) {
|
5827
5843
|
e = () => Promise.reject(t);
|
@@ -5849,26 +5865,26 @@ class Vs extends Cn {
|
|
5849
5865
|
cleanUp() {
|
5850
5866
|
}
|
5851
5867
|
}
|
5852
|
-
async function
|
5853
|
-
const t =
|
5868
|
+
async function $s(n, e) {
|
5869
|
+
const t = Xs(e), r = Js(n);
|
5854
5870
|
if (!await r._isAvailable())
|
5855
5871
|
return !1;
|
5856
5872
|
const i = await r._get(t) === "true";
|
5857
5873
|
return await r._remove(t), i;
|
5858
5874
|
}
|
5859
|
-
function
|
5875
|
+
function Zs(n, e) {
|
5860
5876
|
oe.set(n._key(), e);
|
5861
5877
|
}
|
5862
|
-
function
|
5878
|
+
function Js(n) {
|
5863
5879
|
return E(n._redirectPersistence);
|
5864
5880
|
}
|
5865
|
-
function
|
5866
|
-
return ae(
|
5881
|
+
function Xs(n) {
|
5882
|
+
return ae(Ws, n.config.apiKey, n.name);
|
5867
5883
|
}
|
5868
|
-
async function
|
5884
|
+
async function Ys(n, e, t = !1) {
|
5869
5885
|
if (I(n.app))
|
5870
5886
|
return Promise.reject(P(n));
|
5871
|
-
const r = Ie(n), i =
|
5887
|
+
const r = Ie(n), i = js(r, e), a = await new zs(r, i, t).execute();
|
5872
5888
|
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
5873
5889
|
}
|
5874
5890
|
/**
|
@@ -5887,8 +5903,8 @@ async function $s(n, e, t = !1) {
|
|
5887
5903
|
* See the License for the specific language governing permissions and
|
5888
5904
|
* limitations under the License.
|
5889
5905
|
*/
|
5890
|
-
const
|
5891
|
-
class
|
5906
|
+
const Ks = 10 * 60 * 1e3;
|
5907
|
+
class qs {
|
5892
5908
|
constructor(e) {
|
5893
5909
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
5894
5910
|
}
|
@@ -5904,7 +5920,7 @@ class Xs {
|
|
5904
5920
|
let t = !1;
|
5905
5921
|
return this.consumers.forEach((r) => {
|
5906
5922
|
this.isEventForConsumer(e, r) && (t = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
|
5907
|
-
}), this.hasHandledPotentialRedirect || !
|
5923
|
+
}), this.hasHandledPotentialRedirect || !Qs(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
5908
5924
|
}
|
5909
5925
|
sendToConsumer(e, t) {
|
5910
5926
|
var r;
|
@@ -5919,7 +5935,7 @@ class Xs {
|
|
5919
5935
|
return t.filter.includes(e.type) && r;
|
5920
5936
|
}
|
5921
5937
|
hasEventBeenHandled(e) {
|
5922
|
-
return Date.now() - this.lastProcessedEventTime >=
|
5938
|
+
return Date.now() - this.lastProcessedEventTime >= Ks && this.cachedEventUids.clear(), this.cachedEventUids.has(At(e));
|
5923
5939
|
}
|
5924
5940
|
saveEventToCache(e) {
|
5925
5941
|
this.cachedEventUids.add(At(e)), this.lastProcessedEventTime = Date.now();
|
@@ -5931,7 +5947,7 @@ function At(n) {
|
|
5931
5947
|
function Dn({ type: n, error: e }) {
|
5932
5948
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
5933
5949
|
}
|
5934
|
-
function
|
5950
|
+
function Qs(n) {
|
5935
5951
|
switch (n.type) {
|
5936
5952
|
case "signInViaRedirect":
|
5937
5953
|
case "linkViaRedirect":
|
@@ -5959,8 +5975,8 @@ function Ys(n) {
|
|
5959
5975
|
* See the License for the specific language governing permissions and
|
5960
5976
|
* limitations under the License.
|
5961
5977
|
*/
|
5962
|
-
async function
|
5963
|
-
return
|
5978
|
+
async function ea(n, e = {}) {
|
5979
|
+
return $(n, "GET", "/v1/projects", e);
|
5964
5980
|
}
|
5965
5981
|
/**
|
5966
5982
|
* @license
|
@@ -5978,14 +5994,14 @@ async function Ks(n, e = {}) {
|
|
5978
5994
|
* See the License for the specific language governing permissions and
|
5979
5995
|
* limitations under the License.
|
5980
5996
|
*/
|
5981
|
-
const
|
5982
|
-
async function
|
5997
|
+
const ta = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, na = /^https?/;
|
5998
|
+
async function ra(n) {
|
5983
5999
|
if (n.config.emulator)
|
5984
6000
|
return;
|
5985
|
-
const { authorizedDomains: e } = await
|
6001
|
+
const { authorizedDomains: e } = await ea(n);
|
5986
6002
|
for (const t of e)
|
5987
6003
|
try {
|
5988
|
-
if (
|
6004
|
+
if (ia(t))
|
5989
6005
|
return;
|
5990
6006
|
} catch {
|
5991
6007
|
}
|
@@ -5995,15 +6011,15 @@ async function ea(n) {
|
|
5995
6011
|
/* AuthErrorCode.INVALID_ORIGIN */
|
5996
6012
|
);
|
5997
6013
|
}
|
5998
|
-
function
|
5999
|
-
const e =
|
6014
|
+
function ia(n) {
|
6015
|
+
const e = xe(), { protocol: t, hostname: r } = new URL(e);
|
6000
6016
|
if (n.startsWith("chrome-extension://")) {
|
6001
6017
|
const a = new URL(n);
|
6002
6018
|
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
6003
6019
|
}
|
6004
|
-
if (!
|
6020
|
+
if (!na.test(t))
|
6005
6021
|
return !1;
|
6006
|
-
if (
|
6022
|
+
if (ta.test(n))
|
6007
6023
|
return r === n;
|
6008
6024
|
const i = n.replace(/\./g, "\\.");
|
6009
6025
|
return new RegExp("^(.+\\." + i + "|" + i + ")$", "i").test(r);
|
@@ -6024,7 +6040,7 @@ function ta(n) {
|
|
6024
6040
|
* See the License for the specific language governing permissions and
|
6025
6041
|
* limitations under the License.
|
6026
6042
|
*/
|
6027
|
-
const
|
6043
|
+
const sa = new te(3e4, 6e4);
|
6028
6044
|
function Ot() {
|
6029
6045
|
const n = g().___jsl;
|
6030
6046
|
if (n != null && n.H) {
|
@@ -6034,7 +6050,7 @@ function Ot() {
|
|
6034
6050
|
n.CP[t] = null;
|
6035
6051
|
}
|
6036
6052
|
}
|
6037
|
-
function
|
6053
|
+
function aa(n) {
|
6038
6054
|
return new Promise((e, t) => {
|
6039
6055
|
var r, i, s;
|
6040
6056
|
function a() {
|
@@ -6049,7 +6065,7 @@ function ra(n) {
|
|
6049
6065
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
6050
6066
|
));
|
6051
6067
|
},
|
6052
|
-
timeout:
|
6068
|
+
timeout: sa.get()
|
6053
6069
|
});
|
6054
6070
|
}
|
6055
6071
|
if (!((i = (r = g().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
@@ -6057,22 +6073,22 @@ function ra(n) {
|
|
6057
6073
|
else if (!((s = g().gapi) === null || s === void 0) && s.load)
|
6058
6074
|
a();
|
6059
6075
|
else {
|
6060
|
-
const c =
|
6076
|
+
const c = ds("iframefcb");
|
6061
6077
|
return g()[c] = () => {
|
6062
6078
|
gapi.load ? a() : t(_(
|
6063
6079
|
n,
|
6064
6080
|
"network-request-failed"
|
6065
6081
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
6066
6082
|
));
|
6067
|
-
},
|
6083
|
+
}, cs(`${ls()}?onload=${c}`).catch((o) => t(o));
|
6068
6084
|
}
|
6069
6085
|
}).catch((e) => {
|
6070
6086
|
throw ce = null, e;
|
6071
6087
|
});
|
6072
6088
|
}
|
6073
6089
|
let ce = null;
|
6074
|
-
function
|
6075
|
-
return ce = ce ||
|
6090
|
+
function oa(n) {
|
6091
|
+
return ce = ce || aa(n), ce;
|
6076
6092
|
}
|
6077
6093
|
/**
|
6078
6094
|
* @license
|
@@ -6090,7 +6106,7 @@ function ia(n) {
|
|
6090
6106
|
* See the License for the specific language governing permissions and
|
6091
6107
|
* limitations under the License.
|
6092
6108
|
*/
|
6093
|
-
const
|
6109
|
+
const ca = new te(5e3, 15e3), la = "__/auth/iframe", da = "emulator/auth/iframe", ua = {
|
6094
6110
|
style: {
|
6095
6111
|
position: "absolute",
|
6096
6112
|
top: "-100px",
|
@@ -6099,41 +6115,41 @@ const sa = new te(5e3, 15e3), aa = "__/auth/iframe", oa = "emulator/auth/iframe"
|
|
6099
6115
|
},
|
6100
6116
|
"aria-hidden": "true",
|
6101
6117
|
tabindex: "-1"
|
6102
|
-
},
|
6118
|
+
}, ha = /* @__PURE__ */ new Map([
|
6103
6119
|
["identitytoolkit.googleapis.com", "p"],
|
6104
6120
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
6105
6121
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
6106
6122
|
// test
|
6107
6123
|
]);
|
6108
|
-
function
|
6124
|
+
function pa(n) {
|
6109
6125
|
const e = n.config;
|
6110
|
-
|
6126
|
+
u(
|
6111
6127
|
e.authDomain,
|
6112
6128
|
n,
|
6113
6129
|
"auth-domain-config-required"
|
6114
6130
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
6115
6131
|
);
|
6116
|
-
const t = e.emulator ? Xe(e,
|
6132
|
+
const t = e.emulator ? Xe(e, da) : `https://${n.config.authDomain}/${la}`, r = {
|
6117
6133
|
apiKey: e.apiKey,
|
6118
6134
|
appName: n.name,
|
6119
6135
|
v: ee
|
6120
|
-
}, i =
|
6136
|
+
}, i = ha.get(n.config.apiHost);
|
6121
6137
|
i && (r.eid = i);
|
6122
6138
|
const s = n._getFrameworks();
|
6123
6139
|
return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
|
6124
6140
|
}
|
6125
|
-
async function
|
6126
|
-
const e = await
|
6127
|
-
return
|
6141
|
+
async function ma(n) {
|
6142
|
+
const e = await oa(n), t = g().gapi;
|
6143
|
+
return u(
|
6128
6144
|
t,
|
6129
6145
|
n,
|
6130
6146
|
"internal-error"
|
6131
6147
|
/* AuthErrorCode.INTERNAL_ERROR */
|
6132
6148
|
), e.open({
|
6133
6149
|
where: document.body,
|
6134
|
-
url:
|
6150
|
+
url: pa(n),
|
6135
6151
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
6136
|
-
attributes:
|
6152
|
+
attributes: ua,
|
6137
6153
|
dontclear: !0
|
6138
6154
|
}, (r) => new Promise(async (i, s) => {
|
6139
6155
|
await r.restyle({
|
@@ -6146,7 +6162,7 @@ async function ua(n) {
|
|
6146
6162
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
6147
6163
|
), c = g().setTimeout(() => {
|
6148
6164
|
s(a);
|
6149
|
-
},
|
6165
|
+
}, ca.get());
|
6150
6166
|
function o() {
|
6151
6167
|
g().clearTimeout(c), i(r);
|
6152
6168
|
}
|
@@ -6171,13 +6187,13 @@ async function ua(n) {
|
|
6171
6187
|
* See the License for the specific language governing permissions and
|
6172
6188
|
* limitations under the License.
|
6173
6189
|
*/
|
6174
|
-
const
|
6190
|
+
const fa = {
|
6175
6191
|
location: "yes",
|
6176
6192
|
resizable: "yes",
|
6177
6193
|
statusbar: "yes",
|
6178
6194
|
toolbar: "no"
|
6179
|
-
},
|
6180
|
-
class
|
6195
|
+
}, _a = 500, ga = 600, va = "_blank", Ia = "http://localhost";
|
6196
|
+
class Ct {
|
6181
6197
|
constructor(e) {
|
6182
6198
|
this.window = e, this.associatedEvent = null;
|
6183
6199
|
}
|
@@ -6189,33 +6205,33 @@ class Nt {
|
|
6189
6205
|
}
|
6190
6206
|
}
|
6191
6207
|
}
|
6192
|
-
function
|
6208
|
+
function ba(n, e, t, r = _a, i = ga) {
|
6193
6209
|
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
6194
6210
|
let c = "";
|
6195
|
-
const o = Object.assign(Object.assign({},
|
6211
|
+
const o = Object.assign(Object.assign({}, fa), {
|
6196
6212
|
width: r.toString(),
|
6197
6213
|
height: i.toString(),
|
6198
6214
|
top: s,
|
6199
6215
|
left: a
|
6200
6216
|
}), l = f().toLowerCase();
|
6201
|
-
t && (c = hn(l) ?
|
6202
|
-
const
|
6203
|
-
if (
|
6204
|
-
return
|
6205
|
-
const
|
6206
|
-
|
6207
|
-
|
6217
|
+
t && (c = hn(l) ? va : t), dn(l) && (e = e || Ia, o.scrollbars = "yes");
|
6218
|
+
const d = Object.entries(o).reduce((m, [v, F]) => `${m}${v}=${F},`, "");
|
6219
|
+
if (es(l) && c !== "_self")
|
6220
|
+
return ya(e || "", c), new Ct(null);
|
6221
|
+
const h = window.open(e || "", c, d);
|
6222
|
+
u(
|
6223
|
+
h,
|
6208
6224
|
n,
|
6209
6225
|
"popup-blocked"
|
6210
6226
|
/* AuthErrorCode.POPUP_BLOCKED */
|
6211
6227
|
);
|
6212
6228
|
try {
|
6213
|
-
|
6229
|
+
h.focus();
|
6214
6230
|
} catch {
|
6215
6231
|
}
|
6216
|
-
return new
|
6232
|
+
return new Ct(h);
|
6217
6233
|
}
|
6218
|
-
function
|
6234
|
+
function ya(n, e) {
|
6219
6235
|
const t = document.createElement("a");
|
6220
6236
|
t.href = n, t.target = e;
|
6221
6237
|
const r = document.createEvent("MouseEvent");
|
@@ -6237,14 +6253,14 @@ function va(n, e) {
|
|
6237
6253
|
* See the License for the specific language governing permissions and
|
6238
6254
|
* limitations under the License.
|
6239
6255
|
*/
|
6240
|
-
const
|
6241
|
-
async function
|
6242
|
-
|
6256
|
+
const Ea = "__/auth/handler", Ta = "emulator/auth/handler", wa = encodeURIComponent("fac");
|
6257
|
+
async function Nt(n, e, t, r, i, s) {
|
6258
|
+
u(
|
6243
6259
|
n.config.authDomain,
|
6244
6260
|
n,
|
6245
6261
|
"auth-domain-config-required"
|
6246
6262
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
6247
|
-
),
|
6263
|
+
), u(
|
6248
6264
|
n.config.apiKey,
|
6249
6265
|
n,
|
6250
6266
|
"invalid-api-key"
|
@@ -6259,23 +6275,23 @@ async function Ct(n, e, t, r, i, s) {
|
|
6259
6275
|
eventId: i
|
6260
6276
|
};
|
6261
6277
|
if (e instanceof yn) {
|
6262
|
-
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "",
|
6263
|
-
for (const [
|
6264
|
-
a[
|
6278
|
+
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", wr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
6279
|
+
for (const [d, h] of Object.entries({}))
|
6280
|
+
a[d] = h;
|
6265
6281
|
}
|
6266
6282
|
if (e instanceof ne) {
|
6267
|
-
const
|
6268
|
-
|
6283
|
+
const d = e.getScopes().filter((h) => h !== "");
|
6284
|
+
d.length > 0 && (a.scopes = d.join(","));
|
6269
6285
|
}
|
6270
6286
|
n.tenantId && (a.tid = n.tenantId);
|
6271
6287
|
const c = a;
|
6272
|
-
for (const
|
6273
|
-
c[
|
6274
|
-
const o = await n._getAppCheckToken(), l = o ? `#${
|
6275
|
-
return `${
|
6288
|
+
for (const d of Object.keys(c))
|
6289
|
+
c[d] === void 0 && delete c[d];
|
6290
|
+
const o = await n._getAppCheckToken(), l = o ? `#${wa}=${encodeURIComponent(o)}` : "";
|
6291
|
+
return `${ka(n)}?${Q(c).slice(1)}${l}`;
|
6276
6292
|
}
|
6277
|
-
function
|
6278
|
-
return n.emulator ? Xe(n,
|
6293
|
+
function ka({ config: n }) {
|
6294
|
+
return n.emulator ? Xe(n, Ta) : `https://${n.authDomain}/${Ea}`;
|
6279
6295
|
}
|
6280
6296
|
/**
|
6281
6297
|
* @license
|
@@ -6294,29 +6310,29 @@ function Ea({ config: n }) {
|
|
6294
6310
|
* limitations under the License.
|
6295
6311
|
*/
|
6296
6312
|
const De = "webStorageSupport";
|
6297
|
-
class
|
6313
|
+
class Ra {
|
6298
6314
|
constructor() {
|
6299
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence =
|
6315
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Rn, this._completeRedirectFn = Ys, this._overrideRedirectResult = Zs;
|
6300
6316
|
}
|
6301
6317
|
// Wrapping in async even though we don't await anywhere in order
|
6302
6318
|
// to make sure errors are raised as promise rejections
|
6303
6319
|
async _openPopup(e, t, r, i) {
|
6304
6320
|
var s;
|
6305
|
-
|
6306
|
-
const a = await
|
6307
|
-
return
|
6321
|
+
k((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
6322
|
+
const a = await Nt(e, t, r, xe(), i);
|
6323
|
+
return ba(e, a, Qe());
|
6308
6324
|
}
|
6309
6325
|
async _openRedirect(e, t, r, i) {
|
6310
6326
|
await this._originValidation(e);
|
6311
|
-
const s = await
|
6312
|
-
return
|
6327
|
+
const s = await Nt(e, t, r, xe(), i);
|
6328
|
+
return Os(s), new Promise(() => {
|
6313
6329
|
});
|
6314
6330
|
}
|
6315
6331
|
_initialize(e) {
|
6316
6332
|
const t = e._key();
|
6317
6333
|
if (this.eventManagers[t]) {
|
6318
6334
|
const { manager: i, promise: s } = this.eventManagers[t];
|
6319
|
-
return i ? Promise.resolve(i) : (
|
6335
|
+
return i ? Promise.resolve(i) : (k(s, "If manager is not set, promise should be"), s);
|
6320
6336
|
}
|
6321
6337
|
const r = this.initAndGetManager(e);
|
6322
6338
|
return this.eventManagers[t] = { promise: r }, r.catch(() => {
|
@@ -6324,8 +6340,8 @@ class Ta {
|
|
6324
6340
|
}), r;
|
6325
6341
|
}
|
6326
6342
|
async initAndGetManager(e) {
|
6327
|
-
const t = await
|
6328
|
-
return t.register("authEvent", (i) => (
|
6343
|
+
const t = await ma(e), r = new qs(e);
|
6344
|
+
return t.register("authEvent", (i) => (u(
|
6329
6345
|
i == null ? void 0 : i.authEvent,
|
6330
6346
|
e,
|
6331
6347
|
"invalid-auth-event"
|
@@ -6348,13 +6364,13 @@ class Ta {
|
|
6348
6364
|
}
|
6349
6365
|
_originValidation(e) {
|
6350
6366
|
const t = e._key();
|
6351
|
-
return this.originValidationPromises[t] || (this.originValidationPromises[t] =
|
6367
|
+
return this.originValidationPromises[t] || (this.originValidationPromises[t] = ra(e)), this.originValidationPromises[t];
|
6352
6368
|
}
|
6353
6369
|
get _shouldInitProactively() {
|
6354
6370
|
return gn() || un() || Ke();
|
6355
6371
|
}
|
6356
6372
|
}
|
6357
|
-
const
|
6373
|
+
const Sa = Ra;
|
6358
6374
|
var Dt = "@firebase/auth", Pt = "1.7.9";
|
6359
6375
|
/**
|
6360
6376
|
* @license
|
@@ -6372,7 +6388,7 @@ var Dt = "@firebase/auth", Pt = "1.7.9";
|
|
6372
6388
|
* See the License for the specific language governing permissions and
|
6373
6389
|
* limitations under the License.
|
6374
6390
|
*/
|
6375
|
-
class
|
6391
|
+
class Aa {
|
6376
6392
|
constructor(e) {
|
6377
6393
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
6378
6394
|
}
|
@@ -6397,7 +6413,7 @@ class Ra {
|
|
6397
6413
|
t && (this.internalListeners.delete(e), t(), this.updateProactiveRefresh());
|
6398
6414
|
}
|
6399
6415
|
assertAuthConfigured() {
|
6400
|
-
|
6416
|
+
u(
|
6401
6417
|
this.auth._initializationPromise,
|
6402
6418
|
"dependent-sdk-initialized-before-auth"
|
6403
6419
|
/* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */
|
@@ -6423,7 +6439,7 @@ class Ra {
|
|
6423
6439
|
* See the License for the specific language governing permissions and
|
6424
6440
|
* limitations under the License.
|
6425
6441
|
*/
|
6426
|
-
function
|
6442
|
+
function Oa(n) {
|
6427
6443
|
switch (n) {
|
6428
6444
|
case "Node":
|
6429
6445
|
return "node";
|
@@ -6439,12 +6455,12 @@ function ka(n) {
|
|
6439
6455
|
return;
|
6440
6456
|
}
|
6441
6457
|
}
|
6442
|
-
function
|
6458
|
+
function Ca(n) {
|
6443
6459
|
X(new W(
|
6444
6460
|
"auth",
|
6445
6461
|
(e, { options: t }) => {
|
6446
6462
|
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
6447
|
-
|
6463
|
+
u(a && !a.includes(":"), "invalid-api-key", { appName: r.name });
|
6448
6464
|
const o = {
|
6449
6465
|
apiKey: a,
|
6450
6466
|
authDomain: c,
|
@@ -6453,8 +6469,8 @@ function Sa(n) {
|
|
6453
6469
|
tokenApiHost: "securetoken.googleapis.com",
|
6454
6470
|
apiScheme: "https",
|
6455
6471
|
sdkClientVersion: vn(n)
|
6456
|
-
}, l = new
|
6457
|
-
return
|
6472
|
+
}, l = new as(r, i, s, o);
|
6473
|
+
return hs(l, t), l;
|
6458
6474
|
},
|
6459
6475
|
"PUBLIC"
|
6460
6476
|
/* ComponentType.PUBLIC */
|
@@ -6473,14 +6489,14 @@ function Sa(n) {
|
|
6473
6489
|
"auth"
|
6474
6490
|
/* _ComponentName.AUTH */
|
6475
6491
|
).getImmediate());
|
6476
|
-
return ((r) => new
|
6492
|
+
return ((r) => new Aa(r))(t);
|
6477
6493
|
},
|
6478
6494
|
"PRIVATE"
|
6479
6495
|
/* ComponentType.PRIVATE */
|
6480
6496
|
).setInstantiationMode(
|
6481
6497
|
"EXPLICIT"
|
6482
6498
|
/* InstantiationMode.EXPLICIT */
|
6483
|
-
)),
|
6499
|
+
)), x(Dt, Pt, Oa(n)), x(Dt, Pt, "esm2017");
|
6484
6500
|
}
|
6485
6501
|
/**
|
6486
6502
|
* @license
|
@@ -6498,11 +6514,11 @@ function Sa(n) {
|
|
6498
6514
|
* See the License for the specific language governing permissions and
|
6499
6515
|
* limitations under the License.
|
6500
6516
|
*/
|
6501
|
-
const
|
6517
|
+
const Na = 5 * 60, Da = zt("authIdTokenMaxAge") || Na;
|
6502
6518
|
let Mt = null;
|
6503
|
-
const
|
6519
|
+
const Pa = (n) => async (e) => {
|
6504
6520
|
const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
6505
|
-
if (r && r >
|
6521
|
+
if (r && r > Da)
|
6506
6522
|
return;
|
6507
6523
|
const i = t == null ? void 0 : t.token;
|
6508
6524
|
Mt !== i && (Mt = i, await fetch(n, {
|
@@ -6512,33 +6528,33 @@ const Na = (n) => async (e) => {
|
|
6512
6528
|
} : {}
|
6513
6529
|
}));
|
6514
6530
|
};
|
6515
|
-
function
|
6531
|
+
function Ma(n = Ri()) {
|
6516
6532
|
const e = Xt(n, "auth");
|
6517
6533
|
if (e.isInitialized())
|
6518
6534
|
return e.getImmediate();
|
6519
|
-
const t =
|
6520
|
-
popupRedirectResolver:
|
6535
|
+
const t = us(n, {
|
6536
|
+
popupRedirectResolver: Sa,
|
6521
6537
|
persistence: [
|
6522
|
-
|
6523
|
-
|
6524
|
-
|
6538
|
+
Fs,
|
6539
|
+
Rs,
|
6540
|
+
Rn
|
6525
6541
|
]
|
6526
6542
|
}), r = zt("authTokenSyncURL");
|
6527
6543
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
6528
6544
|
const s = new URL(r, location.origin);
|
6529
6545
|
if (location.origin === s.origin) {
|
6530
|
-
const a =
|
6531
|
-
|
6546
|
+
const a = Pa(s.toString());
|
6547
|
+
Ts(t, a, () => a(t.currentUser)), Es(t, (c) => a(c));
|
6532
6548
|
}
|
6533
6549
|
}
|
6534
|
-
const i =
|
6535
|
-
return i &&
|
6550
|
+
const i = Vt("auth");
|
6551
|
+
return i && ps(t, `http://${i}`), t;
|
6536
6552
|
}
|
6537
|
-
function
|
6553
|
+
function La() {
|
6538
6554
|
var n, e;
|
6539
6555
|
return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
|
6540
6556
|
}
|
6541
|
-
|
6557
|
+
os({
|
6542
6558
|
loadJS(n) {
|
6543
6559
|
return new Promise((e, t) => {
|
6544
6560
|
const r = document.createElement("script");
|
@@ -6548,84 +6564,73 @@ is({
|
|
6548
6564
|
/* AuthErrorCode.INTERNAL_ERROR */
|
6549
6565
|
);
|
6550
6566
|
s.customData = i, t(s);
|
6551
|
-
}, r.type = "text/javascript", r.charset = "UTF-8",
|
6567
|
+
}, r.type = "text/javascript", r.charset = "UTF-8", La().appendChild(r);
|
6552
6568
|
});
|
6553
6569
|
},
|
6554
6570
|
gapiScript: "https://apis.google.com/js/api.js",
|
6555
6571
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
6556
6572
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
6557
6573
|
});
|
6558
|
-
|
6574
|
+
Ca(
|
6559
6575
|
"Browser"
|
6560
6576
|
/* ClientPlatform.BROWSER */
|
6561
6577
|
);
|
6562
|
-
const
|
6578
|
+
const Ua = Ln({
|
6563
6579
|
history: Un(),
|
6564
6580
|
routes: [...We, ...le]
|
6565
6581
|
});
|
6566
6582
|
let Pe, Me;
|
6567
|
-
|
6583
|
+
Ua.beforeEach(async (n) => {
|
6568
6584
|
const {
|
6569
6585
|
sessionUser: e,
|
6570
6586
|
currentRestaurant: t,
|
6571
6587
|
currentBusiness: r,
|
6572
6588
|
readRestaurants: i,
|
6573
6589
|
changeRestaurant: s
|
6574
|
-
} =
|
6590
|
+
} = Ve();
|
6575
6591
|
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (Pe || (Pe = new Promise((a) => {
|
6576
|
-
const c =
|
6592
|
+
const c = Z(e, (o) => {
|
6577
6593
|
var l;
|
6578
6594
|
o && (c(), a(((l = e.value) == null ? void 0 : l.isInternal) ?? !1));
|
6579
6595
|
});
|
6580
6596
|
})), Pe) : !r.value || !t.value ? (Me || (Me = Promise.all([
|
6581
6597
|
new Promise(async (a) => {
|
6582
|
-
const c =
|
6598
|
+
const c = Z(r, (o) => {
|
6583
6599
|
o && (c(), a(!0));
|
6584
6600
|
});
|
6585
6601
|
}),
|
6586
6602
|
new Promise(async (a) => {
|
6587
|
-
const c =
|
6603
|
+
const c = Z(t, (l) => {
|
6588
6604
|
l && (c(), a(!0));
|
6589
6605
|
}), o = await i();
|
6590
6606
|
await s(o == null ? void 0 : o.at(0));
|
6591
6607
|
})
|
6592
6608
|
]).then((a) => !0)), Me) : !0;
|
6593
6609
|
});
|
6594
|
-
const
|
6610
|
+
const Ba = /* @__PURE__ */ Ut({
|
6595
6611
|
__name: "AppSidebar",
|
6596
6612
|
setup(n) {
|
6597
|
-
const e =
|
6598
|
-
|
6599
|
-
let
|
6600
|
-
t.currentRoute.value.meta.parent && (
|
6613
|
+
const e = Ve(), t = Bn(), { t: r } = Wn(), i = jn(t.currentRoute.value.name);
|
6614
|
+
Z(t.currentRoute, () => {
|
6615
|
+
let l = t.currentRoute.value.name;
|
6616
|
+
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
6601
6617
|
});
|
6602
|
-
const
|
6603
|
-
var
|
6604
|
-
if (!((
|
6618
|
+
const s = We.map((l) => {
|
6619
|
+
var m;
|
6620
|
+
if (!((m = l.meta) != null && m.sidebarDisplay))
|
6605
6621
|
return;
|
6606
|
-
const l = {
|
6607
|
-
label:
|
6608
|
-
value:
|
6622
|
+
const d = l.meta.sidebarDisplay, h = {
|
6623
|
+
label: d.startsWith("i18n:") ? r(d.replaceAll("i18n:", "")) : d,
|
6624
|
+
value: l.name,
|
6609
6625
|
action: () => {
|
6610
|
-
if (t.currentRoute.value.name !==
|
6611
|
-
return t.push({ name:
|
6626
|
+
if (t.currentRoute.value.name !== l.name)
|
6627
|
+
return t.push({ name: l.name });
|
6612
6628
|
}
|
6613
6629
|
};
|
6614
|
-
return
|
6615
|
-
}).filter((
|
6616
|
-
var
|
6617
|
-
if ((
|
6618
|
-
return {
|
6619
|
-
label: o.meta.sidebarDisplay,
|
6620
|
-
value: o.name,
|
6621
|
-
action: () => {
|
6622
|
-
if (t.currentRoute.value.name !== o.name)
|
6623
|
-
return t.push({ name: o.name });
|
6624
|
-
}
|
6625
|
-
};
|
6626
|
-
}).filter((o) => !!o), a = (o) => le.map((l) => {
|
6627
|
-
var u;
|
6628
|
-
if ((u = l.meta) != null && u.sidebarDisplay && l.meta.section === o)
|
6630
|
+
return l.meta.sidebarNew && (h.badge = () => xn($n.FmPill, { label: "New" })), h;
|
6631
|
+
}).filter((l) => !!l), a = le.map((l) => {
|
6632
|
+
var d;
|
6633
|
+
if ((d = l.meta) != null && d.sidebarDisplay && !l.meta.section)
|
6629
6634
|
return {
|
6630
6635
|
label: l.meta.sidebarDisplay,
|
6631
6636
|
value: l.name,
|
@@ -6634,88 +6639,99 @@ const Ma = /* @__PURE__ */ Ut({
|
|
6634
6639
|
return t.push({ name: l.name });
|
6635
6640
|
}
|
6636
6641
|
};
|
6637
|
-
}).filter((l) => !!l), c =
|
6638
|
-
var
|
6639
|
-
|
6640
|
-
|
6642
|
+
}).filter((l) => !!l), c = (l) => le.map((d) => {
|
6643
|
+
var h;
|
6644
|
+
if ((h = d.meta) != null && h.sidebarDisplay && d.meta.section === l)
|
6645
|
+
return {
|
6646
|
+
label: d.meta.sidebarDisplay,
|
6647
|
+
value: d.name,
|
6648
|
+
action: () => {
|
6649
|
+
if (t.currentRoute.value.name !== d.name)
|
6650
|
+
return t.push({ name: d.name });
|
6651
|
+
}
|
6652
|
+
};
|
6653
|
+
}).filter((d) => !!d), o = Lt(() => {
|
6654
|
+
var d;
|
6655
|
+
const l = [...s];
|
6656
|
+
return (d = e.sessionUser.value) != null && d.isInternal && (l.push({
|
6641
6657
|
label: "",
|
6642
6658
|
value: "divider",
|
6643
6659
|
disabled: !0
|
6644
|
-
}),
|
6660
|
+
}), l.push({
|
6645
6661
|
label: "Devices",
|
6646
6662
|
icon: "desktop_windows",
|
6647
6663
|
value: "divider",
|
6648
6664
|
disabled: !0
|
6649
|
-
}),
|
6665
|
+
}), l.push(...c("device")), l.push({
|
6650
6666
|
label: "",
|
6651
6667
|
value: "divider",
|
6652
6668
|
disabled: !0
|
6653
|
-
}),
|
6669
|
+
}), l.push({
|
6654
6670
|
label: "Payment Gateway",
|
6655
6671
|
icon: "account_balance",
|
6656
6672
|
value: "divider",
|
6657
6673
|
disabled: !0
|
6658
|
-
}),
|
6674
|
+
}), l.push(...c("payment-gateway")), l.push({
|
6659
6675
|
label: "",
|
6660
6676
|
value: "divider",
|
6661
6677
|
disabled: !0
|
6662
|
-
}),
|
6678
|
+
}), l.push({
|
6663
6679
|
label: "General",
|
6664
6680
|
icon: "admin_panel_settings",
|
6665
6681
|
value: "divider",
|
6666
6682
|
disabled: !0
|
6667
|
-
}),
|
6683
|
+
}), l.push(...a)), l;
|
6668
6684
|
});
|
6669
|
-
return (
|
6670
|
-
const
|
6671
|
-
return Ft(),
|
6672
|
-
modelValue:
|
6673
|
-
"onUpdate:modelValue":
|
6674
|
-
items:
|
6685
|
+
return (l, d) => {
|
6686
|
+
const h = Bt("FmCollapsibleTabs");
|
6687
|
+
return Ft(), jt(h, {
|
6688
|
+
modelValue: i.value,
|
6689
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => i.value = m),
|
6690
|
+
items: o.value,
|
6675
6691
|
class: "py-16 px-8 w-[240px]"
|
6676
6692
|
}, null, 8, ["modelValue", "items"]);
|
6677
6693
|
};
|
6678
6694
|
}
|
6679
6695
|
});
|
6680
|
-
var
|
6681
|
-
const
|
6696
|
+
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" };
|
6697
|
+
const $a = /* @__PURE__ */ Ut({
|
6682
6698
|
__name: "App",
|
6683
6699
|
setup(n) {
|
6684
|
-
const { state: e } =
|
6700
|
+
const { state: e } = sr(), t = Ve(), r = Fn(), i = Yt(Fa.firebase);
|
6685
6701
|
async function s() {
|
6686
6702
|
const a = t.sessionUser.value;
|
6687
6703
|
if (!a || !a.token) return;
|
6688
|
-
const c = await a.getCustomToken(), o =
|
6689
|
-
await
|
6704
|
+
const c = await a.getCustomToken(), o = Ma(i);
|
6705
|
+
await ys(o, c);
|
6690
6706
|
}
|
6691
|
-
return s(),
|
6707
|
+
return s(), Z(t.sessionUser, s), Hn(() => {
|
6692
6708
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
6693
|
-
}),
|
6694
|
-
t.registerSidebarComponent(
|
6709
|
+
}), Gn(() => {
|
6710
|
+
t.registerSidebarComponent(Ba);
|
6695
6711
|
}), (a, c) => {
|
6696
6712
|
const o = Bt("RouterView");
|
6697
|
-
return Ft(),
|
6698
|
-
key:
|
6713
|
+
return Ft(), jt(o, {
|
6714
|
+
key: Vn(r).path
|
6699
6715
|
});
|
6700
6716
|
};
|
6701
6717
|
}
|
6702
|
-
}),
|
6703
|
-
"en-US":
|
6704
|
-
"zh-CN":
|
6705
|
-
},
|
6718
|
+
}), Za = {
|
6719
|
+
"en-US": qn,
|
6720
|
+
"zh-CN": ir
|
6721
|
+
}, Ja = [...le, ...We];
|
6706
6722
|
export {
|
6707
6723
|
W as C,
|
6708
6724
|
M as F,
|
6709
6725
|
ee as S,
|
6710
6726
|
X as _,
|
6711
6727
|
Xt as a,
|
6712
|
-
|
6713
|
-
|
6714
|
-
|
6728
|
+
Wa as b,
|
6729
|
+
Ri as c,
|
6730
|
+
za as d,
|
6715
6731
|
gt as e,
|
6716
|
-
|
6732
|
+
Ja as f,
|
6717
6733
|
z as g,
|
6718
|
-
|
6719
|
-
|
6720
|
-
|
6734
|
+
$a as h,
|
6735
|
+
Za as i,
|
6736
|
+
x as r
|
6721
6737
|
};
|