@feedmepos/mf-payment 1.1.7 → 1.1.8-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PayoutAccount-CAdClj2Y.js → PayoutAccount-8i57shlX.js} +3 -3
- package/dist/{PayoutAccount-C362ShA8.js → PayoutAccount-D7-wVu54.js} +5 -5
- package/dist/{PayoutAccountSetting-Cbl5b1Jr.js → PayoutAccountSetting-CMKwrL4M.js} +3 -3
- package/dist/{Restaurant-ClDu-bSv.js → Restaurant-CRacG00G.js} +4 -4
- package/dist/{RestaurantSetting-D5h5RoHf.js → RestaurantSetting-D8gT0OLI.js} +3 -3
- package/dist/Settlement-ChZcWUR2.js +454 -0
- package/dist/Settlement-HpncV_wh.js +219 -0
- package/dist/{SettlementTransactions-Cpaq8K6x.js → SettlementTransactions-B4foya_u.js} +75 -69
- package/dist/{SettlementTransactions-DIvLOEw6.js → SettlementTransactions-Qi1y0ELt.js} +80 -78
- package/dist/{Terminal-Cmed6xrj.js → Terminal-CPxZpDko.js} +6 -6
- package/dist/TerminalSetting-BTjY6R2k.js +497 -0
- package/dist/{Transaction-BQn5rvxe.js → Transaction-BRsEkW-X.js} +6 -6
- package/dist/{Transaction-8m9pEyyX.js → Transaction-DOJeGqKs.js} +52 -47
- package/dist/{TransactionOld-CX-Odthg.js → TransactionOld-ytcLv_RQ.js} +5 -5
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BX7YIl4i.js → TransactionTable.vue_vue_type_script_setup_true_lang-BadRdWve.js} +12 -8
- package/dist/api/settlement/index.d.ts +1 -1
- package/dist/api/terminal/index.d.ts +4 -0
- package/dist/api/transaction/index.d.ts +1 -1
- package/dist/{app-QYQdqlqy.js → app-BTvVE_p8.js} +465 -459
- package/dist/app.d.ts +6 -0
- package/dist/app.js +1 -1
- package/dist/{assets-Da-9jPqG.js → assets-D3eyomsS.js} +49 -52
- package/dist/{grafana-BDr-LF8O.js → grafana-pHGBuON2.js} +7 -7
- package/dist/{index-Dg0Vf3qd.js → index-C3jOMHIB.js} +1 -1
- package/dist/{index-DbBsTEVS.js → index-DcXXLPgu.js} +1 -1
- package/dist/{index-Dq07OgOJ.js → index-DgF6PpqL.js} +9 -1
- package/dist/{index-0Dl-qVTd.js → index-DztkVnZ_.js} +29 -29
- package/dist/{index-DFq7xhNQ.js → index-GGA88cxn.js} +1 -1
- package/dist/{index-DTH2dIPG.js → index-Qf0lEeEt.js} +796 -796
- package/dist/{index.vue_vue_type_script_setup_true_lang-JHB8s5dZ.js → index.vue_vue_type_script_setup_true_lang-BfPw3DTP.js} +1 -1
- package/dist/model/transaction.d.ts +3 -0
- package/dist/package.json +1 -1
- package/dist/{payout-account--IA1DbB5.js → payout-account-G2OxuB1T.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +87 -0
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +87 -0
- package/package.json +1 -1
- package/dist/Settlement-B06tIr4_.js +0 -445
- package/dist/Settlement-C2BVxmir.js +0 -219
- package/dist/TerminalSetting-BrTRbBF7.js +0 -389
@@ -1,19 +1,19 @@
|
|
1
|
-
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn, useRoute as
|
2
|
-
import { computed as Lt, watch as
|
3
|
-
import { useCoreStore as
|
1
|
+
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn, useRoute as Fn } from "vue-router";
|
2
|
+
import { computed as Lt, watch as $, defineComponent as Ut, ref as xn, resolveComponent as Bt, openBlock as Ft, createBlock as xt, h as Hn, onMounted as Gn, onBeforeMount as Vn, unref as jn } from "vue";
|
3
|
+
import { useCoreStore as je, useI18n as Wn } from "@feedmepos/mf-common";
|
4
4
|
import { defineStore as zn } from "pinia";
|
5
|
-
import { components as
|
6
|
-
const
|
5
|
+
import { components as Zn } from "@feedmepos/ui-library";
|
6
|
+
const $n = {
|
7
7
|
select: "Select filter entity",
|
8
8
|
restaurant: "Restaurant",
|
9
9
|
device: "Device",
|
10
10
|
payout_account: "Payout Account"
|
11
|
-
},
|
11
|
+
}, Jn = {
|
12
12
|
payout_account: "Payout Account",
|
13
13
|
transaction: "Transactions",
|
14
14
|
"transaction-new": "Transactions",
|
15
15
|
settlement: "Settlements"
|
16
|
-
},
|
16
|
+
}, Yn = {
|
17
17
|
title: "Settlements",
|
18
18
|
description: "Settlements are the finalization of financial transactions, transferring funds to complete payments.",
|
19
19
|
export: "Export",
|
@@ -28,6 +28,7 @@ const Jn = {
|
|
28
28
|
},
|
29
29
|
dialog: {
|
30
30
|
title: "Settlements Transactions",
|
31
|
+
date: "Date",
|
31
32
|
search: "Search Transactions ...",
|
32
33
|
info: {
|
33
34
|
transaction: {
|
@@ -64,13 +65,14 @@ const Jn = {
|
|
64
65
|
method: "Method",
|
65
66
|
status: "Status",
|
66
67
|
type: "Type",
|
68
|
+
payFor: "For",
|
67
69
|
transaction_at: "Transaction At",
|
68
70
|
sales_amount: "Sales Amount",
|
69
71
|
fee: "Fee",
|
70
72
|
settlement_amount: "Settlement Amount"
|
71
73
|
}
|
72
74
|
}
|
73
|
-
},
|
75
|
+
}, Xn = {
|
74
76
|
title: "Transactions",
|
75
77
|
description: "Transactions are purchases or payments made over the internet using electronic methods like cards or digital wallets.",
|
76
78
|
restaurant: "Restaurant",
|
@@ -92,6 +94,7 @@ const Jn = {
|
|
92
94
|
type: "Type",
|
93
95
|
status: "Status",
|
94
96
|
source: "Source",
|
97
|
+
restaurant: "Restaurant",
|
95
98
|
transaction_at: "Transaction At",
|
96
99
|
sales_amount: "Sales Amount",
|
97
100
|
actions: "Actions"
|
@@ -142,10 +145,10 @@ const Jn = {
|
|
142
145
|
}
|
143
146
|
}
|
144
147
|
}, qn = {
|
145
|
-
components:
|
146
|
-
routes:
|
147
|
-
settlements:
|
148
|
-
transactions:
|
148
|
+
components: $n,
|
149
|
+
routes: Jn,
|
150
|
+
settlements: Yn,
|
151
|
+
transactions: Xn,
|
149
152
|
payout_account: Kn
|
150
153
|
}, Qn = {
|
151
154
|
select: "选择筛选对象",
|
@@ -172,6 +175,7 @@ const Jn = {
|
|
172
175
|
},
|
173
176
|
dialog: {
|
174
177
|
title: "结算订单详细",
|
178
|
+
date: "日期",
|
175
179
|
search: "查询订单 ...",
|
176
180
|
info: {
|
177
181
|
transaction: {
|
@@ -208,6 +212,7 @@ const Jn = {
|
|
208
212
|
method: "支付方法",
|
209
213
|
status: "状态",
|
210
214
|
type: "类型",
|
215
|
+
payFor: "于",
|
211
216
|
transaction_at: "交易时间",
|
212
217
|
sales_amount: "营业金额",
|
213
218
|
fee: "服务费",
|
@@ -235,6 +240,7 @@ const Jn = {
|
|
235
240
|
method: "支付方法",
|
236
241
|
type: "支付类型",
|
237
242
|
status: "状态",
|
243
|
+
restaurant: "餐厅",
|
238
244
|
source: "源",
|
239
245
|
transaction_at: "交易时间",
|
240
246
|
sales_amount: "交易金额",
|
@@ -299,7 +305,7 @@ const Jn = {
|
|
299
305
|
sidebarDisplay: "Restaurants",
|
300
306
|
section: "payment-gateway"
|
301
307
|
},
|
302
|
-
component: () => import("./Restaurant-
|
308
|
+
component: () => import("./Restaurant-CRacG00G.js")
|
303
309
|
},
|
304
310
|
{
|
305
311
|
path: "/admin/restaurants/:restaurantId",
|
@@ -308,7 +314,7 @@ const Jn = {
|
|
308
314
|
meta: {
|
309
315
|
parent: "mf-payment-admin.restaurant"
|
310
316
|
},
|
311
|
-
component: () => import("./RestaurantSetting-
|
317
|
+
component: () => import("./RestaurantSetting-D8gT0OLI.js")
|
312
318
|
},
|
313
319
|
{
|
314
320
|
path: "/admin/payout-accounts",
|
@@ -317,7 +323,7 @@ const Jn = {
|
|
317
323
|
sidebarDisplay: "Payout Accounts",
|
318
324
|
section: "payment-gateway"
|
319
325
|
},
|
320
|
-
component: () => import("./PayoutAccount-
|
326
|
+
component: () => import("./PayoutAccount-D7-wVu54.js")
|
321
327
|
},
|
322
328
|
{
|
323
329
|
path: "/admin/payout-accounts/:accountId",
|
@@ -326,7 +332,7 @@ const Jn = {
|
|
326
332
|
meta: {
|
327
333
|
parent: "mf-payment-admin.payout-account"
|
328
334
|
},
|
329
|
-
component: () => import("./PayoutAccountSetting-
|
335
|
+
component: () => import("./PayoutAccountSetting-CMKwrL4M.js")
|
330
336
|
},
|
331
337
|
{
|
332
338
|
path: "/admin/terminal/pos",
|
@@ -335,7 +341,7 @@ const Jn = {
|
|
335
341
|
sidebarDisplay: "POS",
|
336
342
|
section: "device"
|
337
343
|
},
|
338
|
-
component: () => import("./Terminal-
|
344
|
+
component: () => import("./Terminal-CPxZpDko.js"),
|
339
345
|
props: {
|
340
346
|
type: "POS"
|
341
347
|
}
|
@@ -347,7 +353,7 @@ const Jn = {
|
|
347
353
|
sidebarDisplay: "Kiosks",
|
348
354
|
section: "device"
|
349
355
|
},
|
350
|
-
component: () => import("./Terminal-
|
356
|
+
component: () => import("./Terminal-CPxZpDko.js"),
|
351
357
|
props: {
|
352
358
|
type: "KIOSK"
|
353
359
|
}
|
@@ -359,7 +365,7 @@ const Jn = {
|
|
359
365
|
sidebarDisplay: "Terminals",
|
360
366
|
section: "device"
|
361
367
|
},
|
362
|
-
component: () => import("./Terminal-
|
368
|
+
component: () => import("./Terminal-CPxZpDko.js"),
|
363
369
|
props: {
|
364
370
|
type: "TERMINAL"
|
365
371
|
}
|
@@ -371,7 +377,7 @@ const Jn = {
|
|
371
377
|
meta: {
|
372
378
|
parent: "mf-payment-admin.pos"
|
373
379
|
},
|
374
|
-
component: () => import("./TerminalSetting-
|
380
|
+
component: () => import("./TerminalSetting-BTjY6R2k.js")
|
375
381
|
},
|
376
382
|
{
|
377
383
|
path: "/admin/terminal/kiosk/:terminalId",
|
@@ -380,7 +386,7 @@ const Jn = {
|
|
380
386
|
meta: {
|
381
387
|
parent: "mf-payment-admin.kiosk"
|
382
388
|
},
|
383
|
-
component: () => import("./TerminalSetting-
|
389
|
+
component: () => import("./TerminalSetting-BTjY6R2k.js")
|
384
390
|
},
|
385
391
|
{
|
386
392
|
path: "/admin/terminal/terminal/:terminalId",
|
@@ -389,7 +395,7 @@ const Jn = {
|
|
389
395
|
meta: {
|
390
396
|
parent: "mf-payment-admin.terminal"
|
391
397
|
},
|
392
|
-
component: () => import("./TerminalSetting-
|
398
|
+
component: () => import("./TerminalSetting-BTjY6R2k.js")
|
393
399
|
},
|
394
400
|
{
|
395
401
|
path: "/admin/transaction",
|
@@ -397,7 +403,7 @@ const Jn = {
|
|
397
403
|
meta: {
|
398
404
|
sidebarDisplay: "Transactions"
|
399
405
|
},
|
400
|
-
component: () => import("./Transaction-
|
406
|
+
component: () => import("./Transaction-DOJeGqKs.js")
|
401
407
|
},
|
402
408
|
{
|
403
409
|
path: "/admin/settlement",
|
@@ -405,7 +411,7 @@ const Jn = {
|
|
405
411
|
meta: {
|
406
412
|
sidebarDisplay: "Settlements"
|
407
413
|
},
|
408
|
-
component: () => import("./Settlement-
|
414
|
+
component: () => import("./Settlement-HpncV_wh.js")
|
409
415
|
},
|
410
416
|
{
|
411
417
|
path: "/admin/settlement/:settlementId",
|
@@ -414,9 +420,9 @@ const Jn = {
|
|
414
420
|
meta: {
|
415
421
|
parent: "mf-payment-admin.settlement"
|
416
422
|
},
|
417
|
-
component: () => import("./SettlementTransactions-
|
423
|
+
component: () => import("./SettlementTransactions-Qi1y0ELt.js")
|
418
424
|
}
|
419
|
-
],
|
425
|
+
], We = [
|
420
426
|
{
|
421
427
|
path: "",
|
422
428
|
redirect: { name: "mf-payment-payout-account" }
|
@@ -424,7 +430,7 @@ const Jn = {
|
|
424
430
|
{
|
425
431
|
path: "/payout-account",
|
426
432
|
name: "mf-payment-payout-account",
|
427
|
-
component: () => import("./PayoutAccount-
|
433
|
+
component: () => import("./PayoutAccount-8i57shlX.js"),
|
428
434
|
meta: {
|
429
435
|
sidebarDisplay: "i18n:routes.payout_account"
|
430
436
|
}
|
@@ -432,7 +438,7 @@ const Jn = {
|
|
432
438
|
{
|
433
439
|
path: "/transaction-old",
|
434
440
|
name: "mf-payment-old-transaction",
|
435
|
-
component: () => import("./TransactionOld-
|
441
|
+
component: () => import("./TransactionOld-ytcLv_RQ.js"),
|
436
442
|
meta: {
|
437
443
|
sidebarDisplay: "i18n:routes.transaction"
|
438
444
|
}
|
@@ -440,7 +446,7 @@ const Jn = {
|
|
440
446
|
{
|
441
447
|
path: "/transaction",
|
442
448
|
name: "mf-payment-transaction",
|
443
|
-
component: () => import("./Transaction-
|
449
|
+
component: () => import("./Transaction-BRsEkW-X.js"),
|
444
450
|
meta: {
|
445
451
|
sidebarDisplay: "i18n:routes.transaction-new",
|
446
452
|
sidebarNew: !0
|
@@ -449,7 +455,7 @@ const Jn = {
|
|
449
455
|
{
|
450
456
|
path: "/settlement",
|
451
457
|
name: "mf-payment-settlement",
|
452
|
-
component: () => import("./Settlement-
|
458
|
+
component: () => import("./Settlement-ChZcWUR2.js"),
|
453
459
|
meta: {
|
454
460
|
sidebarDisplay: "i18n:routes.settlement"
|
455
461
|
}
|
@@ -458,7 +464,7 @@ const Jn = {
|
|
458
464
|
path: "/settlement/:settlementId",
|
459
465
|
name: "mf-payment-settlement-transaction",
|
460
466
|
props: !0,
|
461
|
-
component: () => import("./SettlementTransactions-
|
467
|
+
component: () => import("./SettlementTransactions-B4foya_u.js"),
|
462
468
|
meta: {
|
463
469
|
parent: "mf-payment-settlement"
|
464
470
|
}
|
@@ -475,7 +481,7 @@ const Jn = {
|
|
475
481
|
init: t
|
476
482
|
};
|
477
483
|
});
|
478
|
-
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_b1bfaa6b-9428-4636-b1f7-8c457b1e3d6e", 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_b1bfaa6b-9428-4636-b1f7-8c457b1e3d6e", 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_zPh03bcHZme6anGJMwgEoTYqVZVsuB2a3gGf", 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: "20250330.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:6405", GITHUB_WORKFLOW: "payment-mf-portal-prod", _: "/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: "14217035783", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "cd52576f87c446415617b21bc8301415c08dbc4c", 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-prod.yaml@refs/heads/main", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6MmRjOTQ5MTktMzU4MS00Njc1LWFkY2ItOWU3MzlkMjQyYWNhOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xNDI5IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46MmRjOTQ5MTktMzU4MS00Njc1LWFkY2ItOWU3MzlkMjQyYWNhOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xNDI5IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiOGVjZGU5MWMtNDRlYS00YTA1LWE3Y2ItN2JhZTAzMjJjNDc5Iiwic2lkIjoiOTA0YjU1ZDctOTgwMi00ZWU5LWIxNWItODQxYjNjNDkzOTk4IiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjN9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwic2hhXCI6XCJjZDUyNTc2Zjg3YzQ0NjQxNTYxN2IyMWJjODMwMTQxNWMwOGRiYzRjXCIsXCJyZXBvc2l0b3J5XCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlXCIsXCJyZXBvc2l0b3J5X293bmVyXCI6XCJmZWVkbWVwb3NcIixcInJlcG9zaXRvcnlfb3duZXJfaWRcIjpcIjU0ODMxNTE1XCIsXCJydW5faWRcIjpcIjE0MjE3MDM1NzgzXCIsXCJydW5fbnVtYmVyXCI6XCI0M1wiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLXByb2RcIixcImhlYWRfcmVmXCI6XCJcIixcImJhc2VfcmVmXCI6XCJcIixcImV2ZW50X25hbWVcIjpcInB1c2hcIixcInJlZl9wcm90ZWN0ZWRcIjpcImZhbHNlXCIsXCJyZWZfdHlwZVwiOlwiYnJhbmNoXCIsXCJ3b3JrZmxvd19yZWZcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2UvLmdpdGh1Yi93b3JrZmxvd3MvcGF5bWVudC1tZi1wb3J0YWwtcHJvZC55YW1sQHJlZnMvaGVhZHMvbWFpblwiLFwid29ya2Zsb3dfc2hhXCI6XCJjZDUyNTc2Zjg3YzQ0NjQxNTYxN2IyMWJjODMwMTQxNWMwOGRiYzRjXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLXByb2QueWFtbEByZWZzL2hlYWRzL21haW5cIixcImpvYl93b3JrZmxvd19zaGFcIjpcImNkNTI1NzZmODdjNDQ2NDE1NjE3YjIxYmM4MzAxNDE1YzA4ZGJjNGNcIixcInJ1bm5lcl9lbnZpcm9ubWVudFwiOlwiZ2l0aHViLWhvc3RlZFwifSIsIm9pZGNfc3ViIjoicmVwbzpmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlOnJlZjpyZWZzL2hlYWRzL21haW4iLCJvcmNoaWQiOiIyZGM5NDkxOS0zNTgxLTQ2NzUtYWRjYi05ZTczOWQyNDJhY2EuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDM1ODc5NTgsImV4cCI6MTc0MzYxMDc1OH0.os1v-KPryFC-uif215j_TswG1LFXtECslhoe_0Ee1PTxYUMbARPKzqC-XP0R89OzMrfKIzNrQHI0dj1bA8UfLOJ-sDQWaq1KttTjN5e6fjqx84mEIqghbpO57dC5aUe0Xrp90Q5OS9w5QFgLq6CDruRYv6gXs0CAA7W6yzWxnxeAnLJfrd2uK4DuaKnBEPg3rDO00cjf2v0tYZyPpTqWQWgGGTqvoP7slGKNPbTg9R6_i4klhX22g694jtjpc1e46w_hLa3q9DwEWqAsVUHKkywsg0ENImXlKovY9x153uCWamtsIdj7fDKeXsw6tXkSZjeB_ssjODigyZDrnPA-zw", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1743588599535-0.7008992481500267:/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--1743588599376-0.5576510677251285:/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--1743588599215-0.27115225693618994:/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_4d87b932-2ca0-44a7-b1b9-f2bcc980730e", INVOCATION_ID: "aa9b256620094180a19f1a9ea97a72d7", 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: "43", 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 237", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "main", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:prod", 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:prod", 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.7", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:prod"],"original":["deploy:prod"]}', 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: "cd52576f87c446415617b21bc8301415c08dbc4c", 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/main", 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_b1bfaa6b-9428-4636-b1f7-8c457b1e3d6e", 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/2dc94919-3581-4675-adcb-9e739d242aca/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_b1bfaa6b-9428-4636-b1f7-8c457b1e3d6e", 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_b1bfaa6b-9428-4636-b1f7-8c457b1e3d6e", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.1.0", NODE_ENV: "production", ENVIRONMENT: "production", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-253402", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MESSAGING_SENDER_ID: "128512026847", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", ASSET_STORAGE_BUCKET: "static.feedme.cc", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" };
|
484
|
+
var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_befd0351-0282-4042-99fa-baf2e6617042", 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_befd0351-0282-4042-99fa-baf2e6617042", 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_PMWfXVhtR0dIWABN79EYv2RSIk7uUZ08zQvM", 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: "707", 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: "20250413.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.8/x64", JOURNAL_STREAM: "8:5803", 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: "14568152020", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "164acc58e40ca57ad3575085080561e6e05cf85b", 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.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6NWQ2ZGMwNDktZTBmYS00M2U1LWE2YTMtYmE2YTExZmU0OWUwOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xNDg2IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46NWQ2ZGMwNDktZTBmYS00M2U1LWE2YTMtYmE2YTExZmU0OWUwOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xNDg2IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiMzRhNDYwYzEtNWQ0ZS00ZjU0LThlZDYtYTlmNWE4YTU2Mjc2Iiwic2lkIjoiZWY0OThkZmEtNmMyMS00YjFlLWJkMTktNjhjZmI3MGUwYzE3IiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcIjE2NGFjYzU4ZTQwY2E1N2FkMzU3NTA4NTA4MDU2MWU2ZTA1Y2Y4NWJcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTQ1NjgxNTIwMjBcIixcInJ1bl9udW1iZXJcIjpcIjE2OVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCIxNjRhY2M1OGU0MGNhNTdhZDM1NzUwODUwODA1NjFlNmUwNWNmODViXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCIxNjRhY2M1OGU0MGNhNTdhZDM1NzUwODUwODA1NjFlNmUwNWNmODViXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI1ZDZkYzA0OS1lMGZhLTQzZTUtYTZhMy1iYTZhMTFmZTQ5ZTAuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDUyMTM4NzUsImV4cCI6MTc0NTIzNjY3NX0.UibkZUJIiHq1P8fIzHtMLrAzzGx5CuakQ2SFJxtCNcaZ492wQ43uESTy8uvuTZA4f2WnZ9liZDyvvjILVouwRvII6Ezqj06Pjp_21UiD8Lw_2HOFweFBR60Zt_qkKCysF8B7d2ZMlqJy46YC0SGlveek-qaat1QfhZZ5BQQBOqg-YtwDCjIw-q34xmZeJ3odNPjn5F-xuVVfz03qKgT7Q32MAIk7Gng_2by8H0cng8Bs1aiyH0gz6S7UtwlFdjKdaLt_60gLvcwBLpxmFFxq8Ft8EqGSs6bBpnilUbbxc5M1zqQWDEFaCnDABBYfC8M7NATwU5oHf2B8SJpsN98Ylw", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1745214525119-0.5485530735761259:/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--1745214524954-0.8142685117134834:/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--1745214524788-0.23056283635059338:/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_f2451148-1cfd-45ff-80ba-a74ee4ae8175", INVOCATION_ID: "7667fe764cb641e1b7256e17a09ed69e", 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: "169", 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 340", 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.8-beta.1", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:dev"],"original":["deploy:dev"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_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: "164acc58e40ca57ad3575085080561e6e05cf85b", 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_befd0351-0282-4042-99fa-baf2e6617042", 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/5d6dc049-e0fa-43e5-a6a3-ba6a11fe49e0/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_befd0351-0282-4042-99fa-baf2e6617042", 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_befd0351-0282-4042-99fa-baf2e6617042", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.1.0", 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" };
|
479
485
|
/**
|
480
486
|
* @license
|
481
487
|
* Copyright 2017 Google LLC
|
@@ -492,7 +498,7 @@ var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_sta
|
|
492
498
|
* See the License for the specific language governing permissions and
|
493
499
|
* limitations under the License.
|
494
500
|
*/
|
495
|
-
const
|
501
|
+
const Ht = function(n) {
|
496
502
|
const e = [];
|
497
503
|
let t = 0;
|
498
504
|
for (let r = 0; r < n.length; r++) {
|
@@ -519,7 +525,7 @@ const jt = function(n) {
|
|
519
525
|
}
|
520
526
|
}
|
521
527
|
return e.join("");
|
522
|
-
},
|
528
|
+
}, Gt = {
|
523
529
|
/**
|
524
530
|
* Maps bytes to characters.
|
525
531
|
*/
|
@@ -579,8 +585,8 @@ const jt = function(n) {
|
|
579
585
|
const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
|
580
586
|
for (let i = 0; i < n.length; i += 3) {
|
581
587
|
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;
|
582
|
-
let
|
583
|
-
o || (
|
588
|
+
let f = (c & 15) << 2 | l >> 6, v = l & 63;
|
589
|
+
o || (v = 64, a || (f = 64)), r.push(t[d], t[h], t[f], t[v]);
|
584
590
|
}
|
585
591
|
return r.join("");
|
586
592
|
},
|
@@ -593,7 +599,7 @@ const jt = function(n) {
|
|
593
599
|
* @return The base64 encoded string.
|
594
600
|
*/
|
595
601
|
encodeString(n, e) {
|
596
|
-
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(
|
602
|
+
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(Ht(n), e);
|
597
603
|
},
|
598
604
|
/**
|
599
605
|
* Base64-decode a string.
|
@@ -632,12 +638,12 @@ const jt = function(n) {
|
|
632
638
|
const h = i < n.length ? t[n.charAt(i)] : 64;
|
633
639
|
if (++i, s == null || c == null || l == null || h == null)
|
634
640
|
throw new or();
|
635
|
-
const
|
636
|
-
if (r.push(
|
637
|
-
const
|
638
|
-
if (r.push(
|
639
|
-
const
|
640
|
-
r.push(
|
641
|
+
const f = s << 2 | c >> 4;
|
642
|
+
if (r.push(f), l !== 64) {
|
643
|
+
const v = c << 4 & 240 | l >> 2;
|
644
|
+
if (r.push(v), h !== 64) {
|
645
|
+
const F = l << 6 & 192 | h;
|
646
|
+
r.push(F);
|
641
647
|
}
|
642
648
|
}
|
643
649
|
}
|
@@ -662,13 +668,13 @@ class or extends Error {
|
|
662
668
|
}
|
663
669
|
}
|
664
670
|
const cr = function(n) {
|
665
|
-
const e =
|
666
|
-
return
|
671
|
+
const e = Ht(n);
|
672
|
+
return Gt.encodeByteArray(e, !0);
|
667
673
|
}, de = function(n) {
|
668
674
|
return cr(n).replace(/\./g, "");
|
669
|
-
},
|
675
|
+
}, Vt = function(n) {
|
670
676
|
try {
|
671
|
-
return
|
677
|
+
return Gt.decodeString(n, !0);
|
672
678
|
} catch (e) {
|
673
679
|
console.error("base64Decode failed: ", e);
|
674
680
|
}
|
@@ -730,7 +736,7 @@ const dr = () => lr().__FIREBASE_DEFAULTS__, ur = () => {
|
|
730
736
|
} catch {
|
731
737
|
return;
|
732
738
|
}
|
733
|
-
const e = n &&
|
739
|
+
const e = n && Vt(n[1]);
|
734
740
|
return e && JSON.parse(e);
|
735
741
|
}, ze = () => {
|
736
742
|
try {
|
@@ -739,11 +745,11 @@ const dr = () => lr().__FIREBASE_DEFAULTS__, ur = () => {
|
|
739
745
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
|
740
746
|
return;
|
741
747
|
}
|
742
|
-
},
|
748
|
+
}, jt = (n) => {
|
743
749
|
var e, t;
|
744
750
|
return (t = (e = ze()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
|
745
|
-
},
|
746
|
-
const e =
|
751
|
+
}, Wa = (n) => {
|
752
|
+
const e = jt(n);
|
747
753
|
if (!e)
|
748
754
|
return;
|
749
755
|
const t = e.lastIndexOf(":");
|
@@ -751,7 +757,7 @@ const dr = () => lr().__FIREBASE_DEFAULTS__, ur = () => {
|
|
751
757
|
throw new Error(`Invalid host ${e} with no separate hostname and port!`);
|
752
758
|
const r = parseInt(e.substring(t + 1), 10);
|
753
759
|
return e[0] === "[" ? [e.substring(1, t - 1), r] : [e.substring(0, t), r];
|
754
|
-
},
|
760
|
+
}, Wt = () => {
|
755
761
|
var n;
|
756
762
|
return (n = ze()) === null || n === void 0 ? void 0 : n.config;
|
757
763
|
}, zt = (n) => {
|
@@ -855,15 +861,15 @@ function za(n, e) {
|
|
855
861
|
* See the License for the specific language governing permissions and
|
856
862
|
* limitations under the License.
|
857
863
|
*/
|
858
|
-
function
|
864
|
+
function m() {
|
859
865
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
860
866
|
}
|
861
|
-
function
|
867
|
+
function fr() {
|
862
868
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
863
869
|
// just to deal with this case would probably be a bad idea.
|
864
|
-
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(
|
870
|
+
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(m());
|
865
871
|
}
|
866
|
-
function
|
872
|
+
function mr() {
|
867
873
|
return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
|
868
874
|
}
|
869
875
|
function _r() {
|
@@ -873,18 +879,18 @@ function _r() {
|
|
873
879
|
function gr() {
|
874
880
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
875
881
|
}
|
876
|
-
function
|
877
|
-
const n =
|
882
|
+
function vr() {
|
883
|
+
const n = m();
|
878
884
|
return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
|
879
885
|
}
|
880
|
-
function
|
886
|
+
function Ir() {
|
881
887
|
try {
|
882
888
|
return typeof indexedDB == "object";
|
883
889
|
} catch {
|
884
890
|
return !1;
|
885
891
|
}
|
886
892
|
}
|
887
|
-
function
|
893
|
+
function br() {
|
888
894
|
return new Promise((n, e) => {
|
889
895
|
try {
|
890
896
|
let t = !0;
|
@@ -934,13 +940,13 @@ class q {
|
|
934
940
|
}
|
935
941
|
}
|
936
942
|
function Er(n, e) {
|
937
|
-
return n.replace(
|
943
|
+
return n.replace(wr, (t, r) => {
|
938
944
|
const i = e[r];
|
939
945
|
return i != null ? String(i) : `<${r}?>`;
|
940
946
|
});
|
941
947
|
}
|
942
|
-
const
|
943
|
-
function
|
948
|
+
const wr = /\{\$([^}]+)}/g;
|
949
|
+
function Tr(n) {
|
944
950
|
for (const e in n)
|
945
951
|
if (Object.prototype.hasOwnProperty.call(n, e))
|
946
952
|
return !1;
|
@@ -992,11 +998,11 @@ function Q(n) {
|
|
992
998
|
}) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
|
993
999
|
return e.length ? "&" + e.join("&") : "";
|
994
1000
|
}
|
995
|
-
function
|
996
|
-
const t = new
|
1001
|
+
function kr(n, e) {
|
1002
|
+
const t = new Rr(n, e);
|
997
1003
|
return t.subscribe.bind(t);
|
998
1004
|
}
|
999
|
-
class
|
1005
|
+
class Rr {
|
1000
1006
|
/**
|
1001
1007
|
* @param executor Function which can make calls to a single Observer
|
1002
1008
|
* as a proxy.
|
@@ -1042,7 +1048,7 @@ class kr {
|
|
1042
1048
|
next: e,
|
1043
1049
|
error: t,
|
1044
1050
|
complete: r
|
1045
|
-
}, i.next === void 0 && (i.next =
|
1051
|
+
}, i.next === void 0 && (i.next = Re), i.error === void 0 && (i.error = Re), i.complete === void 0 && (i.complete = Re);
|
1046
1052
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
1047
1053
|
return this.finalized && this.task.then(() => {
|
1048
1054
|
try {
|
@@ -1088,7 +1094,7 @@ function Sr(n, e) {
|
|
1088
1094
|
return !0;
|
1089
1095
|
return !1;
|
1090
1096
|
}
|
1091
|
-
function
|
1097
|
+
function Re() {
|
1092
1098
|
}
|
1093
1099
|
/**
|
1094
1100
|
* @license
|
@@ -1109,7 +1115,7 @@ function ke() {
|
|
1109
1115
|
function z(n) {
|
1110
1116
|
return n && n._delegate ? n._delegate : n;
|
1111
1117
|
}
|
1112
|
-
class
|
1118
|
+
class W {
|
1113
1119
|
/**
|
1114
1120
|
*
|
1115
1121
|
* @param name The public service name, e.g. app, auth, firestore, database
|
@@ -1422,7 +1428,7 @@ const Dr = {
|
|
1422
1428
|
else
|
1423
1429
|
throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
|
1424
1430
|
};
|
1425
|
-
class
|
1431
|
+
class Zt {
|
1426
1432
|
/**
|
1427
1433
|
* Gives you an instance of a Logger to capture messages according to
|
1428
1434
|
* Firebase's logging scheme.
|
@@ -1488,15 +1494,15 @@ function Br() {
|
|
1488
1494
|
IDBTransaction
|
1489
1495
|
]);
|
1490
1496
|
}
|
1491
|
-
function
|
1497
|
+
function Fr() {
|
1492
1498
|
return dt || (dt = [
|
1493
1499
|
IDBCursor.prototype.advance,
|
1494
1500
|
IDBCursor.prototype.continue,
|
1495
1501
|
IDBCursor.prototype.continuePrimaryKey
|
1496
1502
|
]);
|
1497
1503
|
}
|
1498
|
-
const
|
1499
|
-
function
|
1504
|
+
const $t = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap();
|
1505
|
+
function xr(n) {
|
1500
1506
|
const e = new Promise((t, r) => {
|
1501
1507
|
const i = () => {
|
1502
1508
|
n.removeEventListener("success", s), n.removeEventListener("error", a);
|
@@ -1508,11 +1514,11 @@ function Wr(n) {
|
|
1508
1514
|
n.addEventListener("success", s), n.addEventListener("error", a);
|
1509
1515
|
});
|
1510
1516
|
return e.then((t) => {
|
1511
|
-
t instanceof IDBCursor &&
|
1517
|
+
t instanceof IDBCursor && $t.set(t, n);
|
1512
1518
|
}).catch(() => {
|
1513
|
-
}),
|
1519
|
+
}), Ze.set(e, n), e;
|
1514
1520
|
}
|
1515
|
-
function
|
1521
|
+
function Hr(n) {
|
1516
1522
|
if (Le.has(n))
|
1517
1523
|
return;
|
1518
1524
|
const e = new Promise((t, r) => {
|
@@ -1533,7 +1539,7 @@ let Ue = {
|
|
1533
1539
|
if (e === "done")
|
1534
1540
|
return Le.get(n);
|
1535
1541
|
if (e === "objectStoreNames")
|
1536
|
-
return n.objectStoreNames ||
|
1542
|
+
return n.objectStoreNames || Jt.get(n);
|
1537
1543
|
if (e === "store")
|
1538
1544
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
1539
1545
|
}
|
@@ -1546,32 +1552,32 @@ let Ue = {
|
|
1546
1552
|
return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
|
1547
1553
|
}
|
1548
1554
|
};
|
1549
|
-
function
|
1555
|
+
function Gr(n) {
|
1550
1556
|
Ue = n(Ue);
|
1551
1557
|
}
|
1552
|
-
function
|
1558
|
+
function Vr(n) {
|
1553
1559
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
1554
1560
|
const r = n.call(Ae(this), e, ...t);
|
1555
|
-
return
|
1556
|
-
} :
|
1557
|
-
return n.apply(Ae(this), e), C(
|
1561
|
+
return Jt.set(r, e.sort ? e.sort() : [e]), C(r);
|
1562
|
+
} : Fr().includes(n) ? function(...e) {
|
1563
|
+
return n.apply(Ae(this), e), C($t.get(this));
|
1558
1564
|
} : function(...e) {
|
1559
1565
|
return C(n.apply(Ae(this), e));
|
1560
1566
|
};
|
1561
1567
|
}
|
1562
|
-
function
|
1563
|
-
return typeof n == "function" ?
|
1568
|
+
function jr(n) {
|
1569
|
+
return typeof n == "function" ? Vr(n) : (n instanceof IDBTransaction && Hr(n), Ur(n, Br()) ? new Proxy(n, Ue) : n);
|
1564
1570
|
}
|
1565
1571
|
function C(n) {
|
1566
1572
|
if (n instanceof IDBRequest)
|
1567
|
-
return
|
1573
|
+
return xr(n);
|
1568
1574
|
if (Se.has(n))
|
1569
1575
|
return Se.get(n);
|
1570
|
-
const e =
|
1571
|
-
return e !== n && (Se.set(n, e),
|
1576
|
+
const e = jr(n);
|
1577
|
+
return e !== n && (Se.set(n, e), Ze.set(e, n)), e;
|
1572
1578
|
}
|
1573
|
-
const Ae = (n) =>
|
1574
|
-
function
|
1579
|
+
const Ae = (n) => Ze.get(n);
|
1580
|
+
function Wr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
1575
1581
|
const a = indexedDB.open(n, e), c = C(a);
|
1576
1582
|
return r && a.addEventListener("upgradeneeded", (o) => {
|
1577
1583
|
r(C(a.result), o.oldVersion, o.newVersion, C(a.transaction), o);
|
@@ -1585,13 +1591,13 @@ function Gr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
1585
1591
|
}).catch(() => {
|
1586
1592
|
}), c;
|
1587
1593
|
}
|
1588
|
-
const zr = ["get", "getKey", "getAll", "getAllKeys", "count"],
|
1594
|
+
const zr = ["get", "getKey", "getAll", "getAllKeys", "count"], Zr = ["put", "add", "delete", "clear"], Oe = /* @__PURE__ */ new Map();
|
1589
1595
|
function ut(n, e) {
|
1590
1596
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
1591
1597
|
return;
|
1592
1598
|
if (Oe.get(e))
|
1593
1599
|
return Oe.get(e);
|
1594
|
-
const t = e.replace(/FromIndex$/, ""), r = e !== t, i =
|
1600
|
+
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = Zr.includes(t);
|
1595
1601
|
if (
|
1596
1602
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
1597
1603
|
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || zr.includes(t))
|
@@ -1607,7 +1613,7 @@ function ut(n, e) {
|
|
1607
1613
|
};
|
1608
1614
|
return Oe.set(e, s), s;
|
1609
1615
|
}
|
1610
|
-
|
1616
|
+
Gr((n) => ({
|
1611
1617
|
...n,
|
1612
1618
|
get: (e, t, r) => ut(e, t) || n.get(e, t, r),
|
1613
1619
|
has: (e, t) => !!ut(e, t) || n.has(e, t)
|
@@ -1628,7 +1634,7 @@ Fr((n) => ({
|
|
1628
1634
|
* See the License for the specific language governing permissions and
|
1629
1635
|
* limitations under the License.
|
1630
1636
|
*/
|
1631
|
-
class
|
1637
|
+
class $r {
|
1632
1638
|
constructor(e) {
|
1633
1639
|
this.container = e;
|
1634
1640
|
}
|
@@ -1636,7 +1642,7 @@ class Jr {
|
|
1636
1642
|
// auth token refresh, and installations will send this string.
|
1637
1643
|
getPlatformInfoString() {
|
1638
1644
|
return this.container.getProviders().map((t) => {
|
1639
|
-
if (
|
1645
|
+
if (Jr(t)) {
|
1640
1646
|
const r = t.getImmediate();
|
1641
1647
|
return `${r.library}/${r.version}`;
|
1642
1648
|
} else
|
@@ -1644,7 +1650,7 @@ class Jr {
|
|
1644
1650
|
}).filter((t) => t).join(" ");
|
1645
1651
|
}
|
1646
1652
|
}
|
1647
|
-
function
|
1653
|
+
function Jr(n) {
|
1648
1654
|
const e = n.getComponent();
|
1649
1655
|
return (e == null ? void 0 : e.type) === "VERSION";
|
1650
1656
|
}
|
@@ -1665,7 +1671,7 @@ const Be = "@firebase/app", ht = "0.10.13";
|
|
1665
1671
|
* See the License for the specific language governing permissions and
|
1666
1672
|
* limitations under the License.
|
1667
1673
|
*/
|
1668
|
-
const
|
1674
|
+
const w = new Zt("@firebase/app"), Yr = "@firebase/app-compat", Xr = "@firebase/analytics-compat", Kr = "@firebase/analytics", qr = "@firebase/app-check-compat", Qr = "@firebase/app-check", ei = "@firebase/auth", ti = "@firebase/auth-compat", ni = "@firebase/database", ri = "@firebase/data-connect", ii = "@firebase/database-compat", si = "@firebase/functions", ai = "@firebase/functions-compat", oi = "@firebase/installations", ci = "@firebase/installations-compat", li = "@firebase/messaging", di = "@firebase/messaging-compat", ui = "@firebase/performance", hi = "@firebase/performance-compat", pi = "@firebase/remote-config", fi = "@firebase/remote-config-compat", mi = "@firebase/storage", _i = "@firebase/storage-compat", gi = "@firebase/firestore", vi = "@firebase/vertexai-preview", Ii = "@firebase/firestore-compat", bi = "firebase", yi = "10.14.1";
|
1669
1675
|
/**
|
1670
1676
|
* @license
|
1671
1677
|
* Copyright 2019 Google LLC
|
@@ -1682,11 +1688,11 @@ const T = new $t("@firebase/app"), Xr = "@firebase/app-compat", Yr = "@firebase/
|
|
1682
1688
|
* See the License for the specific language governing permissions and
|
1683
1689
|
* limitations under the License.
|
1684
1690
|
*/
|
1685
|
-
const
|
1691
|
+
const Fe = "[DEFAULT]", Ei = {
|
1686
1692
|
[Be]: "fire-core",
|
1687
|
-
[
|
1693
|
+
[Yr]: "fire-core-compat",
|
1688
1694
|
[Kr]: "fire-analytics",
|
1689
|
-
[
|
1695
|
+
[Xr]: "fire-analytics-compat",
|
1690
1696
|
[Qr]: "fire-app-check",
|
1691
1697
|
[qr]: "fire-app-check-compat",
|
1692
1698
|
[ei]: "fire-auth",
|
@@ -1703,14 +1709,14 @@ const xe = "[DEFAULT]", Ei = {
|
|
1703
1709
|
[ui]: "fire-perf",
|
1704
1710
|
[hi]: "fire-perf-compat",
|
1705
1711
|
[pi]: "fire-rc",
|
1706
|
-
[
|
1707
|
-
[
|
1712
|
+
[fi]: "fire-rc-compat",
|
1713
|
+
[mi]: "fire-gcs",
|
1708
1714
|
[_i]: "fire-gcs-compat",
|
1709
1715
|
[gi]: "fire-fst",
|
1710
|
-
[
|
1711
|
-
[
|
1716
|
+
[Ii]: "fire-fst-compat",
|
1717
|
+
[vi]: "fire-vertex",
|
1712
1718
|
"fire-js": "fire-js",
|
1713
|
-
[
|
1719
|
+
[bi]: "fire-js-all"
|
1714
1720
|
};
|
1715
1721
|
/**
|
1716
1722
|
* @license
|
@@ -1728,30 +1734,30 @@ const xe = "[DEFAULT]", Ei = {
|
|
1728
1734
|
* See the License for the specific language governing permissions and
|
1729
1735
|
* limitations under the License.
|
1730
1736
|
*/
|
1731
|
-
const he = /* @__PURE__ */ new Map(),
|
1737
|
+
const he = /* @__PURE__ */ new Map(), wi = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ new Map();
|
1732
1738
|
function pt(n, e) {
|
1733
1739
|
try {
|
1734
1740
|
n.container.addComponent(e);
|
1735
1741
|
} catch (t) {
|
1736
|
-
|
1742
|
+
w.debug(`Component ${e.name} failed to register with FirebaseApp ${n.name}`, t);
|
1737
1743
|
}
|
1738
1744
|
}
|
1739
|
-
function
|
1745
|
+
function Y(n) {
|
1740
1746
|
const e = n.name;
|
1741
|
-
if (
|
1742
|
-
return
|
1743
|
-
|
1747
|
+
if (xe.has(e))
|
1748
|
+
return w.debug(`There were multiple attempts to register component ${e}.`), !1;
|
1749
|
+
xe.set(e, n);
|
1744
1750
|
for (const t of he.values())
|
1745
1751
|
pt(t, n);
|
1746
|
-
for (const t of
|
1752
|
+
for (const t of wi.values())
|
1747
1753
|
pt(t, n);
|
1748
1754
|
return !0;
|
1749
1755
|
}
|
1750
|
-
function
|
1756
|
+
function Yt(n, e) {
|
1751
1757
|
const t = n.container.getProvider("heartbeat").getImmediate({ optional: !0 });
|
1752
1758
|
return t && t.triggerHeartbeat(), n.container.getProvider(e);
|
1753
1759
|
}
|
1754
|
-
function
|
1760
|
+
function I(n) {
|
1755
1761
|
return n.settings !== void 0;
|
1756
1762
|
}
|
1757
1763
|
/**
|
@@ -1770,7 +1776,7 @@ function v(n) {
|
|
1770
1776
|
* See the License for the specific language governing permissions and
|
1771
1777
|
* limitations under the License.
|
1772
1778
|
*/
|
1773
|
-
const
|
1779
|
+
const Ti = {
|
1774
1780
|
"no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
1775
1781
|
"bad-app-name": "Illegal App name: '{$appName}'",
|
1776
1782
|
"duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
|
@@ -1785,7 +1791,7 @@ const wi = {
|
|
1785
1791
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
1786
1792
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
1787
1793
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
1788
|
-
}, D = new q("app", "Firebase",
|
1794
|
+
}, D = new q("app", "Firebase", Ti);
|
1789
1795
|
/**
|
1790
1796
|
* @license
|
1791
1797
|
* Copyright 2019 Google LLC
|
@@ -1802,9 +1808,9 @@ const wi = {
|
|
1802
1808
|
* See the License for the specific language governing permissions and
|
1803
1809
|
* limitations under the License.
|
1804
1810
|
*/
|
1805
|
-
class
|
1811
|
+
class ki {
|
1806
1812
|
constructor(e, t, r) {
|
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
|
1813
|
+
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(
|
1808
1814
|
"app",
|
1809
1815
|
() => this,
|
1810
1816
|
"PUBLIC"
|
@@ -1861,15 +1867,15 @@ class Ri {
|
|
1861
1867
|
* limitations under the License.
|
1862
1868
|
*/
|
1863
1869
|
const ee = yi;
|
1864
|
-
function
|
1870
|
+
function Xt(n, e = {}) {
|
1865
1871
|
let t = n;
|
1866
1872
|
typeof e != "object" && (e = { name: e });
|
1867
|
-
const r = Object.assign({ name:
|
1873
|
+
const r = Object.assign({ name: Fe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
|
1868
1874
|
if (typeof i != "string" || !i)
|
1869
1875
|
throw D.create("bad-app-name", {
|
1870
1876
|
appName: String(i)
|
1871
1877
|
});
|
1872
|
-
if (t || (t =
|
1878
|
+
if (t || (t = Wt()), !t)
|
1873
1879
|
throw D.create(
|
1874
1880
|
"no-options"
|
1875
1881
|
/* AppError.NO_OPTIONS */
|
@@ -1881,20 +1887,20 @@ function Yt(n, e = {}) {
|
|
1881
1887
|
throw D.create("duplicate-app", { appName: i });
|
1882
1888
|
}
|
1883
1889
|
const a = new Cr(i);
|
1884
|
-
for (const o of
|
1890
|
+
for (const o of xe.values())
|
1885
1891
|
a.addComponent(o);
|
1886
|
-
const c = new
|
1892
|
+
const c = new ki(t, r, a);
|
1887
1893
|
return he.set(i, c), c;
|
1888
1894
|
}
|
1889
|
-
function
|
1895
|
+
function Ri(n = Fe) {
|
1890
1896
|
const e = he.get(n);
|
1891
|
-
if (!e && n ===
|
1892
|
-
return
|
1897
|
+
if (!e && n === Fe && Wt())
|
1898
|
+
return Xt();
|
1893
1899
|
if (!e)
|
1894
1900
|
throw D.create("no-app", { appName: n });
|
1895
1901
|
return e;
|
1896
1902
|
}
|
1897
|
-
function
|
1903
|
+
function H(n, e, t) {
|
1898
1904
|
var r;
|
1899
1905
|
let i = (r = Ei[n]) !== null && r !== void 0 ? r : n;
|
1900
1906
|
t && (i += `-${t}`);
|
@@ -1903,10 +1909,10 @@ function j(n, e, t) {
|
|
1903
1909
|
const c = [
|
1904
1910
|
`Unable to register library "${i}" with version "${e}":`
|
1905
1911
|
];
|
1906
|
-
s && c.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),
|
1912
|
+
s && c.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), w.warn(c.join(" "));
|
1907
1913
|
return;
|
1908
1914
|
}
|
1909
|
-
|
1915
|
+
Y(new W(
|
1910
1916
|
`${i}-version`,
|
1911
1917
|
() => ({ library: i, version: e }),
|
1912
1918
|
"VERSION"
|
@@ -1929,15 +1935,15 @@ function j(n, e, t) {
|
|
1929
1935
|
* See the License for the specific language governing permissions and
|
1930
1936
|
* limitations under the License.
|
1931
1937
|
*/
|
1932
|
-
const Si = "firebase-heartbeat-database", Ai = 1,
|
1938
|
+
const Si = "firebase-heartbeat-database", Ai = 1, X = "firebase-heartbeat-store";
|
1933
1939
|
let Ne = null;
|
1934
1940
|
function Kt() {
|
1935
|
-
return Ne || (Ne =
|
1941
|
+
return Ne || (Ne = Wr(Si, Ai, {
|
1936
1942
|
upgrade: (n, e) => {
|
1937
1943
|
switch (e) {
|
1938
1944
|
case 0:
|
1939
1945
|
try {
|
1940
|
-
n.createObjectStore(
|
1946
|
+
n.createObjectStore(X);
|
1941
1947
|
} catch (t) {
|
1942
1948
|
console.warn(t);
|
1943
1949
|
}
|
@@ -1951,31 +1957,31 @@ function Kt() {
|
|
1951
1957
|
}
|
1952
1958
|
async function Oi(n) {
|
1953
1959
|
try {
|
1954
|
-
const t = (await Kt()).transaction(
|
1960
|
+
const t = (await Kt()).transaction(X), r = await t.objectStore(X).get(qt(n));
|
1955
1961
|
return await t.done, r;
|
1956
1962
|
} catch (e) {
|
1957
1963
|
if (e instanceof M)
|
1958
|
-
|
1964
|
+
w.warn(e.message);
|
1959
1965
|
else {
|
1960
1966
|
const t = D.create("idb-get", {
|
1961
1967
|
originalErrorMessage: e == null ? void 0 : e.message
|
1962
1968
|
});
|
1963
|
-
|
1969
|
+
w.warn(t.message);
|
1964
1970
|
}
|
1965
1971
|
}
|
1966
1972
|
}
|
1967
|
-
async function
|
1973
|
+
async function ft(n, e) {
|
1968
1974
|
try {
|
1969
|
-
const r = (await Kt()).transaction(
|
1970
|
-
await r.objectStore(
|
1975
|
+
const r = (await Kt()).transaction(X, "readwrite");
|
1976
|
+
await r.objectStore(X).put(e, qt(n)), await r.done;
|
1971
1977
|
} catch (t) {
|
1972
1978
|
if (t instanceof M)
|
1973
|
-
|
1979
|
+
w.warn(t.message);
|
1974
1980
|
else {
|
1975
1981
|
const r = D.create("idb-set", {
|
1976
1982
|
originalErrorMessage: t == null ? void 0 : t.message
|
1977
1983
|
});
|
1978
|
-
|
1984
|
+
w.warn(r.message);
|
1979
1985
|
}
|
1980
1986
|
}
|
1981
1987
|
}
|
@@ -2015,13 +2021,13 @@ class Di {
|
|
2015
2021
|
async triggerHeartbeat() {
|
2016
2022
|
var e, t;
|
2017
2023
|
try {
|
2018
|
-
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s =
|
2024
|
+
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = mt();
|
2019
2025
|
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) => {
|
2020
2026
|
const c = new Date(a.date).valueOf();
|
2021
2027
|
return Date.now() - c <= Ci;
|
2022
2028
|
}), this._storage.overwrite(this._heartbeatsCache));
|
2023
2029
|
} catch (r) {
|
2024
|
-
|
2030
|
+
w.warn(r);
|
2025
2031
|
}
|
2026
2032
|
}
|
2027
2033
|
/**
|
@@ -2036,14 +2042,14 @@ class Di {
|
|
2036
2042
|
try {
|
2037
2043
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
2038
2044
|
return "";
|
2039
|
-
const t =
|
2045
|
+
const t = mt(), { heartbeatsToSend: r, unsentEntries: i } = Pi(this._heartbeatsCache.heartbeats), s = de(JSON.stringify({ version: 2, heartbeats: r }));
|
2040
2046
|
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;
|
2041
2047
|
} catch (t) {
|
2042
|
-
return
|
2048
|
+
return w.warn(t), "";
|
2043
2049
|
}
|
2044
2050
|
}
|
2045
2051
|
}
|
2046
|
-
function
|
2052
|
+
function mt() {
|
2047
2053
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
2048
2054
|
}
|
2049
2055
|
function Pi(n, e = Ni) {
|
@@ -2075,7 +2081,7 @@ class Mi {
|
|
2075
2081
|
this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
2076
2082
|
}
|
2077
2083
|
async runIndexedDBEnvironmentCheck() {
|
2078
|
-
return
|
2084
|
+
return Ir() ? br().then(() => !0).catch(() => !1) : !1;
|
2079
2085
|
}
|
2080
2086
|
/**
|
2081
2087
|
* Read all heartbeats.
|
@@ -2092,7 +2098,7 @@ class Mi {
|
|
2092
2098
|
var t;
|
2093
2099
|
if (await this._canUseIndexedDBPromise) {
|
2094
2100
|
const i = await this.read();
|
2095
|
-
return
|
2101
|
+
return ft(this.app, {
|
2096
2102
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
2097
2103
|
heartbeats: e.heartbeats
|
2098
2104
|
});
|
@@ -2104,7 +2110,7 @@ class Mi {
|
|
2104
2110
|
var t;
|
2105
2111
|
if (await this._canUseIndexedDBPromise) {
|
2106
2112
|
const i = await this.read();
|
2107
|
-
return
|
2113
|
+
return ft(this.app, {
|
2108
2114
|
lastSentHeartbeatDate: (t = e.lastSentHeartbeatDate) !== null && t !== void 0 ? t : i.lastSentHeartbeatDate,
|
2109
2115
|
heartbeats: [
|
2110
2116
|
...i.heartbeats,
|
@@ -2138,17 +2144,17 @@ function _t(n) {
|
|
2138
2144
|
* limitations under the License.
|
2139
2145
|
*/
|
2140
2146
|
function Li(n) {
|
2141
|
-
|
2147
|
+
Y(new W(
|
2142
2148
|
"platform-logger",
|
2143
|
-
(e) => new
|
2149
|
+
(e) => new $r(e),
|
2144
2150
|
"PRIVATE"
|
2145
2151
|
/* ComponentType.PRIVATE */
|
2146
|
-
)),
|
2152
|
+
)), Y(new W(
|
2147
2153
|
"heartbeat",
|
2148
2154
|
(e) => new Di(e),
|
2149
2155
|
"PRIVATE"
|
2150
2156
|
/* ComponentType.PRIVATE */
|
2151
|
-
)),
|
2157
|
+
)), H(Be, ht, n), H(Be, ht, "esm2017"), H("fire-js", "");
|
2152
2158
|
}
|
2153
2159
|
Li("");
|
2154
2160
|
var Ui = "firebase", Bi = "10.14.1";
|
@@ -2168,7 +2174,7 @@ var Ui = "firebase", Bi = "10.14.1";
|
|
2168
2174
|
* See the License for the specific language governing permissions and
|
2169
2175
|
* limitations under the License.
|
2170
2176
|
*/
|
2171
|
-
|
2177
|
+
H(Ui, Bi, "app");
|
2172
2178
|
var gt = function() {
|
2173
2179
|
return gt = Object.assign || function(e) {
|
2174
2180
|
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
@@ -2178,7 +2184,7 @@ var gt = function() {
|
|
2178
2184
|
return e;
|
2179
2185
|
}, gt.apply(this, arguments);
|
2180
2186
|
};
|
2181
|
-
function
|
2187
|
+
function $e(n, e) {
|
2182
2188
|
var t = {};
|
2183
2189
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
|
2184
2190
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
@@ -2191,7 +2197,7 @@ function Qt() {
|
|
2191
2197
|
"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."
|
2192
2198
|
};
|
2193
2199
|
}
|
2194
|
-
const
|
2200
|
+
const Fi = Qt, en = new q("auth", "Firebase", Qt());
|
2195
2201
|
/**
|
2196
2202
|
* @license
|
2197
2203
|
* Copyright 2020 Google LLC
|
@@ -2208,8 +2214,8 @@ const xi = Qt, en = new q("auth", "Firebase", Qt());
|
|
2208
2214
|
* See the License for the specific language governing permissions and
|
2209
2215
|
* limitations under the License.
|
2210
2216
|
*/
|
2211
|
-
const pe = new
|
2212
|
-
function
|
2217
|
+
const pe = new Zt("@firebase/auth");
|
2218
|
+
function xi(n, ...e) {
|
2213
2219
|
pe.logLevel <= p.WARN && pe.warn(`Auth (${ee}): ${n}`, ...e);
|
2214
2220
|
}
|
2215
2221
|
function se(n, ...e) {
|
@@ -2231,14 +2237,14 @@ function se(n, ...e) {
|
|
2231
2237
|
* See the License for the specific language governing permissions and
|
2232
2238
|
* limitations under the License.
|
2233
2239
|
*/
|
2234
|
-
function
|
2235
|
-
throw
|
2240
|
+
function T(n, ...e) {
|
2241
|
+
throw Je(n, ...e);
|
2236
2242
|
}
|
2237
2243
|
function _(n, ...e) {
|
2238
|
-
return
|
2244
|
+
return Je(n, ...e);
|
2239
2245
|
}
|
2240
2246
|
function tn(n, e, t) {
|
2241
|
-
const r = Object.assign(Object.assign({},
|
2247
|
+
const r = Object.assign(Object.assign({}, Fi()), { [e]: t });
|
2242
2248
|
return new q("auth", "Firebase", r).create(e, {
|
2243
2249
|
appName: n.name
|
2244
2250
|
});
|
@@ -2246,7 +2252,7 @@ function tn(n, e, t) {
|
|
2246
2252
|
function P(n) {
|
2247
2253
|
return tn(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
2248
2254
|
}
|
2249
|
-
function
|
2255
|
+
function Je(n, ...e) {
|
2250
2256
|
if (typeof n != "string") {
|
2251
2257
|
const t = e[0], r = [...e.slice(1)];
|
2252
2258
|
return r[0] && (r[0].appName = n.name), n._errorFactory.create(t, ...r);
|
@@ -2255,14 +2261,14 @@ function Ze(n, ...e) {
|
|
2255
2261
|
}
|
2256
2262
|
function u(n, e, ...t) {
|
2257
2263
|
if (!n)
|
2258
|
-
throw
|
2264
|
+
throw Je(e, ...t);
|
2259
2265
|
}
|
2260
|
-
function
|
2266
|
+
function b(n) {
|
2261
2267
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
2262
2268
|
throw se(e), new Error(e);
|
2263
2269
|
}
|
2264
|
-
function
|
2265
|
-
n ||
|
2270
|
+
function k(n, e) {
|
2271
|
+
n || b(e);
|
2266
2272
|
}
|
2267
2273
|
/**
|
2268
2274
|
* @license
|
@@ -2280,14 +2286,14 @@ function R(n, e) {
|
|
2280
2286
|
* See the License for the specific language governing permissions and
|
2281
2287
|
* limitations under the License.
|
2282
2288
|
*/
|
2283
|
-
function
|
2289
|
+
function He() {
|
2284
2290
|
var n;
|
2285
2291
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
2286
2292
|
}
|
2287
|
-
function
|
2288
|
-
return
|
2293
|
+
function Hi() {
|
2294
|
+
return vt() === "http:" || vt() === "https:";
|
2289
2295
|
}
|
2290
|
-
function
|
2296
|
+
function vt() {
|
2291
2297
|
var n;
|
2292
2298
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.protocol) || null;
|
2293
2299
|
}
|
@@ -2307,15 +2313,15 @@ function bt() {
|
|
2307
2313
|
* See the License for the specific language governing permissions and
|
2308
2314
|
* limitations under the License.
|
2309
2315
|
*/
|
2310
|
-
function
|
2316
|
+
function Gi() {
|
2311
2317
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
2312
2318
|
// This is especially true for Cordova apps which have unreliable
|
2313
2319
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
2314
2320
|
// installed which overwrites the native navigator.onLine value and
|
2315
2321
|
// defines navigator.connection.
|
2316
|
-
(
|
2322
|
+
(Hi() || _r() || "connection" in navigator) ? navigator.onLine : !0;
|
2317
2323
|
}
|
2318
|
-
function
|
2324
|
+
function Vi() {
|
2319
2325
|
if (typeof navigator > "u")
|
2320
2326
|
return null;
|
2321
2327
|
const n = navigator;
|
@@ -2345,10 +2351,10 @@ function Hi() {
|
|
2345
2351
|
*/
|
2346
2352
|
class te {
|
2347
2353
|
constructor(e, t) {
|
2348
|
-
this.shortDelay = e, this.longDelay = t,
|
2354
|
+
this.shortDelay = e, this.longDelay = t, k(t > e, "Short delay should be less than long delay!"), this.isMobile = fr() || gr();
|
2349
2355
|
}
|
2350
2356
|
get() {
|
2351
|
-
return
|
2357
|
+
return Gi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
2352
2358
|
}
|
2353
2359
|
}
|
2354
2360
|
/**
|
@@ -2367,8 +2373,8 @@ class te {
|
|
2367
2373
|
* See the License for the specific language governing permissions and
|
2368
2374
|
* limitations under the License.
|
2369
2375
|
*/
|
2370
|
-
function
|
2371
|
-
|
2376
|
+
function Ye(n, e) {
|
2377
|
+
k(n.emulator, "Emulator should always be set here");
|
2372
2378
|
const { url: t } = n.emulator;
|
2373
2379
|
return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
|
2374
2380
|
}
|
@@ -2401,7 +2407,7 @@ class nn {
|
|
2401
2407
|
return globalThis.fetch;
|
2402
2408
|
if (typeof fetch < "u")
|
2403
2409
|
return fetch;
|
2404
|
-
|
2410
|
+
b("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
2405
2411
|
}
|
2406
2412
|
static headers() {
|
2407
2413
|
if (this.headersImpl)
|
@@ -2412,7 +2418,7 @@ class nn {
|
|
2412
2418
|
return globalThis.Headers;
|
2413
2419
|
if (typeof Headers < "u")
|
2414
2420
|
return Headers;
|
2415
|
-
|
2421
|
+
b("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
2416
2422
|
}
|
2417
2423
|
static response() {
|
2418
2424
|
if (this.responseImpl)
|
@@ -2423,7 +2429,7 @@ class nn {
|
|
2423
2429
|
return globalThis.Response;
|
2424
2430
|
if (typeof Response < "u")
|
2425
2431
|
return Response;
|
2426
|
-
|
2432
|
+
b("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
|
2427
2433
|
}
|
2428
2434
|
}
|
2429
2435
|
/**
|
@@ -2442,7 +2448,7 @@ class nn {
|
|
2442
2448
|
* See the License for the specific language governing permissions and
|
2443
2449
|
* limitations under the License.
|
2444
2450
|
*/
|
2445
|
-
const
|
2451
|
+
const ji = {
|
2446
2452
|
// Custom token errors.
|
2447
2453
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
2448
2454
|
// This can only happen if the SDK sends a bad request.
|
@@ -2533,11 +2539,11 @@ const Vi = {
|
|
2533
2539
|
* See the License for the specific language governing permissions and
|
2534
2540
|
* limitations under the License.
|
2535
2541
|
*/
|
2536
|
-
const
|
2537
|
-
function
|
2542
|
+
const Wi = new te(3e4, 6e4);
|
2543
|
+
function ve(n, e) {
|
2538
2544
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
2539
2545
|
}
|
2540
|
-
async function
|
2546
|
+
async function Z(n, e, t, r, i = {}) {
|
2541
2547
|
return rn(n, i, async () => {
|
2542
2548
|
let s = {}, a = {};
|
2543
2549
|
r && (e === "GET" ? a = r : s = {
|
@@ -2555,12 +2561,12 @@ async function $(n, e, t, r, i = {}) {
|
|
2555
2561
|
method: e,
|
2556
2562
|
headers: o
|
2557
2563
|
}, s);
|
2558
|
-
return
|
2564
|
+
return mr() || (l.referrerPolicy = "no-referrer"), nn.fetch()(an(n, n.config.apiHost, t, c), l);
|
2559
2565
|
});
|
2560
2566
|
}
|
2561
2567
|
async function rn(n, e, t) {
|
2562
2568
|
n._canInitEmulator = !1;
|
2563
|
-
const r = Object.assign(Object.assign({},
|
2569
|
+
const r = Object.assign(Object.assign({}, ji), e);
|
2564
2570
|
try {
|
2565
2571
|
const i = new zi(n), s = await Promise.race([
|
2566
2572
|
t(),
|
@@ -2583,23 +2589,23 @@ async function rn(n, e, t) {
|
|
2583
2589
|
const d = r[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
|
2584
2590
|
if (l)
|
2585
2591
|
throw tn(n, d, l);
|
2586
|
-
|
2592
|
+
T(n, d);
|
2587
2593
|
}
|
2588
2594
|
} catch (i) {
|
2589
2595
|
if (i instanceof M)
|
2590
2596
|
throw i;
|
2591
|
-
|
2597
|
+
T(n, "network-request-failed", { message: String(i) });
|
2592
2598
|
}
|
2593
2599
|
}
|
2594
2600
|
async function sn(n, e, t, r, i = {}) {
|
2595
|
-
const s = await
|
2596
|
-
return "mfaPendingCredential" in s &&
|
2601
|
+
const s = await Z(n, e, t, r, i);
|
2602
|
+
return "mfaPendingCredential" in s && T(n, "multi-factor-auth-required", {
|
2597
2603
|
_serverResponse: s
|
2598
2604
|
}), s;
|
2599
2605
|
}
|
2600
2606
|
function an(n, e, t, r) {
|
2601
2607
|
const i = `${e}${t}?${r}`;
|
2602
|
-
return n.config.emulator ?
|
2608
|
+
return n.config.emulator ? Ye(n.config, i) : `${n.config.apiScheme}://${i}`;
|
2603
2609
|
}
|
2604
2610
|
class zi {
|
2605
2611
|
constructor(e) {
|
@@ -2608,7 +2614,7 @@ class zi {
|
|
2608
2614
|
this.auth,
|
2609
2615
|
"network-request-failed"
|
2610
2616
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
2611
|
-
)),
|
2617
|
+
)), Wi.get());
|
2612
2618
|
});
|
2613
2619
|
}
|
2614
2620
|
clearNetworkTimeout() {
|
@@ -2639,11 +2645,11 @@ function ie(n, e, t) {
|
|
2639
2645
|
* See the License for the specific language governing permissions and
|
2640
2646
|
* limitations under the License.
|
2641
2647
|
*/
|
2642
|
-
async function
|
2643
|
-
return
|
2648
|
+
async function Zi(n, e) {
|
2649
|
+
return Z(n, "POST", "/v1/accounts:delete", e);
|
2644
2650
|
}
|
2645
2651
|
async function on(n, e) {
|
2646
|
-
return
|
2652
|
+
return Z(n, "POST", "/v1/accounts:lookup", e);
|
2647
2653
|
}
|
2648
2654
|
/**
|
2649
2655
|
* @license
|
@@ -2661,7 +2667,7 @@ async function on(n, e) {
|
|
2661
2667
|
* See the License for the specific language governing permissions and
|
2662
2668
|
* limitations under the License.
|
2663
2669
|
*/
|
2664
|
-
function
|
2670
|
+
function J(n) {
|
2665
2671
|
if (n)
|
2666
2672
|
try {
|
2667
2673
|
const e = new Date(Number(n));
|
@@ -2670,8 +2676,8 @@ function Z(n) {
|
|
2670
2676
|
} catch {
|
2671
2677
|
}
|
2672
2678
|
}
|
2673
|
-
async function
|
2674
|
-
const t = z(n), r = await t.getIdToken(e), i =
|
2679
|
+
async function $i(n, e = !1) {
|
2680
|
+
const t = z(n), r = await t.getIdToken(e), i = Xe(r);
|
2675
2681
|
u(
|
2676
2682
|
i && i.exp && i.auth_time && i.iat,
|
2677
2683
|
t.auth,
|
@@ -2682,9 +2688,9 @@ async function Ji(n, e = !1) {
|
|
2682
2688
|
return {
|
2683
2689
|
claims: i,
|
2684
2690
|
token: r,
|
2685
|
-
authTime:
|
2686
|
-
issuedAtTime:
|
2687
|
-
expirationTime:
|
2691
|
+
authTime: J(Ce(i.auth_time)),
|
2692
|
+
issuedAtTime: J(Ce(i.iat)),
|
2693
|
+
expirationTime: J(Ce(i.exp)),
|
2688
2694
|
signInProvider: a || null,
|
2689
2695
|
signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
|
2690
2696
|
};
|
@@ -2692,19 +2698,19 @@ async function Ji(n, e = !1) {
|
|
2692
2698
|
function Ce(n) {
|
2693
2699
|
return Number(n) * 1e3;
|
2694
2700
|
}
|
2695
|
-
function
|
2701
|
+
function Xe(n) {
|
2696
2702
|
const [e, t, r] = n.split(".");
|
2697
2703
|
if (e === void 0 || t === void 0 || r === void 0)
|
2698
2704
|
return se("JWT malformed, contained fewer than 3 sections"), null;
|
2699
2705
|
try {
|
2700
|
-
const i =
|
2706
|
+
const i = Vt(t);
|
2701
2707
|
return i ? JSON.parse(i) : (se("Failed to decode base64 JWT payload"), null);
|
2702
2708
|
} catch (i) {
|
2703
2709
|
return se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
2704
2710
|
}
|
2705
2711
|
}
|
2706
|
-
function
|
2707
|
-
const e =
|
2712
|
+
function It(n) {
|
2713
|
+
const e = Xe(n);
|
2708
2714
|
return u(
|
2709
2715
|
e,
|
2710
2716
|
"internal-error"
|
@@ -2741,10 +2747,10 @@ async function K(n, e, t = !1) {
|
|
2741
2747
|
try {
|
2742
2748
|
return await e;
|
2743
2749
|
} catch (r) {
|
2744
|
-
throw r instanceof M &&
|
2750
|
+
throw r instanceof M && Ji(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
|
2745
2751
|
}
|
2746
2752
|
}
|
2747
|
-
function
|
2753
|
+
function Ji({ code: n }) {
|
2748
2754
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
2749
2755
|
}
|
2750
2756
|
/**
|
@@ -2763,7 +2769,7 @@ function Zi({ code: n }) {
|
|
2763
2769
|
* See the License for the specific language governing permissions and
|
2764
2770
|
* limitations under the License.
|
2765
2771
|
*/
|
2766
|
-
class
|
2772
|
+
class Yi {
|
2767
2773
|
constructor(e) {
|
2768
2774
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
2769
2775
|
}
|
@@ -2825,12 +2831,12 @@ class Xi {
|
|
2825
2831
|
* See the License for the specific language governing permissions and
|
2826
2832
|
* limitations under the License.
|
2827
2833
|
*/
|
2828
|
-
class
|
2834
|
+
class Ge {
|
2829
2835
|
constructor(e, t) {
|
2830
2836
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
2831
2837
|
}
|
2832
2838
|
_initializeTime() {
|
2833
|
-
this.lastSignInTime =
|
2839
|
+
this.lastSignInTime = J(this.lastLoginAt), this.creationTime = J(this.createdAt);
|
2834
2840
|
}
|
2835
2841
|
_copy(e) {
|
2836
2842
|
this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
|
@@ -2858,7 +2864,7 @@ class Fe {
|
|
2858
2864
|
* See the License for the specific language governing permissions and
|
2859
2865
|
* limitations under the License.
|
2860
2866
|
*/
|
2861
|
-
async function
|
2867
|
+
async function fe(n) {
|
2862
2868
|
var e;
|
2863
2869
|
const t = n.auth, r = await n.getIdToken(), i = await K(n, on(t, { idToken: r }));
|
2864
2870
|
u(
|
@@ -2878,21 +2884,21 @@ async function me(n) {
|
|
2878
2884
|
phoneNumber: s.phoneNumber || null,
|
2879
2885
|
tenantId: s.tenantId || null,
|
2880
2886
|
providerData: c,
|
2881
|
-
metadata: new
|
2887
|
+
metadata: new Ge(s.createdAt, s.lastLoginAt),
|
2882
2888
|
isAnonymous: d
|
2883
2889
|
};
|
2884
2890
|
Object.assign(n, h);
|
2885
2891
|
}
|
2886
|
-
async function
|
2892
|
+
async function Xi(n) {
|
2887
2893
|
const e = z(n);
|
2888
|
-
await
|
2894
|
+
await fe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
2889
2895
|
}
|
2890
2896
|
function Ki(n, e) {
|
2891
2897
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
2892
2898
|
}
|
2893
2899
|
function cn(n) {
|
2894
2900
|
return n.map((e) => {
|
2895
|
-
var { providerId: t } = e, r =
|
2901
|
+
var { providerId: t } = e, r = $e(e, ["providerId"]);
|
2896
2902
|
return {
|
2897
2903
|
providerId: t,
|
2898
2904
|
uid: r.rawId || "",
|
@@ -2941,7 +2947,7 @@ async function qi(n, e) {
|
|
2941
2947
|
};
|
2942
2948
|
}
|
2943
2949
|
async function Qi(n, e) {
|
2944
|
-
return
|
2950
|
+
return Z(n, "POST", "/v2/accounts:revokeToken", ve(n, e));
|
2945
2951
|
}
|
2946
2952
|
/**
|
2947
2953
|
* @license
|
@@ -2959,7 +2965,7 @@ async function Qi(n, e) {
|
|
2959
2965
|
* See the License for the specific language governing permissions and
|
2960
2966
|
* limitations under the License.
|
2961
2967
|
*/
|
2962
|
-
class
|
2968
|
+
class G {
|
2963
2969
|
constructor() {
|
2964
2970
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
2965
2971
|
}
|
@@ -2980,7 +2986,7 @@ class F {
|
|
2980
2986
|
"internal-error"
|
2981
2987
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2982
2988
|
);
|
2983
|
-
const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) :
|
2989
|
+
const t = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : It(e.idToken);
|
2984
2990
|
this.updateTokensAndExpiration(e.idToken, e.refreshToken, t);
|
2985
2991
|
}
|
2986
2992
|
updateFromIdToken(e) {
|
@@ -2989,7 +2995,7 @@ class F {
|
|
2989
2995
|
"internal-error"
|
2990
2996
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2991
2997
|
);
|
2992
|
-
const t =
|
2998
|
+
const t = It(e);
|
2993
2999
|
this.updateTokensAndExpiration(e, null, t);
|
2994
3000
|
}
|
2995
3001
|
async getToken(e, t = !1) {
|
@@ -3011,7 +3017,7 @@ class F {
|
|
3011
3017
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
|
3012
3018
|
}
|
3013
3019
|
static fromJSON(e, t) {
|
3014
|
-
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new
|
3020
|
+
const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new G();
|
3015
3021
|
return r && (u(typeof r == "string", "internal-error", {
|
3016
3022
|
appName: e
|
3017
3023
|
}), a.refreshToken = r), i && (u(typeof i == "string", "internal-error", {
|
@@ -3031,10 +3037,10 @@ class F {
|
|
3031
3037
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
3032
3038
|
}
|
3033
3039
|
_clone() {
|
3034
|
-
return Object.assign(new
|
3040
|
+
return Object.assign(new G(), this.toJSON());
|
3035
3041
|
}
|
3036
3042
|
_performRefresh() {
|
3037
|
-
return
|
3043
|
+
return b("not implemented");
|
3038
3044
|
}
|
3039
3045
|
}
|
3040
3046
|
/**
|
@@ -3053,13 +3059,13 @@ class F {
|
|
3053
3059
|
* See the License for the specific language governing permissions and
|
3054
3060
|
* limitations under the License.
|
3055
3061
|
*/
|
3056
|
-
function
|
3062
|
+
function R(n, e) {
|
3057
3063
|
u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
|
3058
3064
|
}
|
3059
3065
|
class y {
|
3060
3066
|
constructor(e) {
|
3061
|
-
var { uid: t, auth: r, stsTokenManager: i } = e, s =
|
3062
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
3067
|
+
var { uid: t, auth: r, stsTokenManager: i } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
|
3068
|
+
this.providerId = "firebase", this.proactiveRefresh = new Yi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ge(s.createdAt || void 0, s.lastLoginAt || void 0);
|
3063
3069
|
}
|
3064
3070
|
async getIdToken(e) {
|
3065
3071
|
const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
|
@@ -3071,10 +3077,10 @@ class y {
|
|
3071
3077
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
3072
3078
|
}
|
3073
3079
|
getIdTokenResult(e) {
|
3074
|
-
return
|
3080
|
+
return $i(this, e);
|
3075
3081
|
}
|
3076
3082
|
reload() {
|
3077
|
-
return
|
3083
|
+
return Xi(this);
|
3078
3084
|
}
|
3079
3085
|
_assign(e) {
|
3080
3086
|
this !== e && (u(
|
@@ -3107,13 +3113,13 @@ class y {
|
|
3107
3113
|
}
|
3108
3114
|
async _updateTokensIfNecessary(e, t = !1) {
|
3109
3115
|
let r = !1;
|
3110
|
-
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await
|
3116
|
+
e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await fe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
|
3111
3117
|
}
|
3112
3118
|
async delete() {
|
3113
|
-
if (
|
3119
|
+
if (I(this.auth.app))
|
3114
3120
|
return Promise.reject(P(this.auth));
|
3115
3121
|
const e = await this.getIdToken();
|
3116
|
-
return await K(this,
|
3122
|
+
return await K(this, Zi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
3117
3123
|
}
|
3118
3124
|
toJSON() {
|
3119
3125
|
return Object.assign(Object.assign({
|
@@ -3141,20 +3147,20 @@ class y {
|
|
3141
3147
|
}
|
3142
3148
|
static _fromJSON(e, t) {
|
3143
3149
|
var r, i, s, a, c, o, l, d;
|
3144
|
-
const h = (r = t.displayName) !== null && r !== void 0 ? r : void 0,
|
3150
|
+
const h = (r = t.displayName) !== null && r !== void 0 ? r : void 0, f = (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: we, emailVerified: it, isAnonymous: st, providerData: Te, stsTokenManager: at } = t;
|
3145
3151
|
u(
|
3146
|
-
|
3152
|
+
we && at,
|
3147
3153
|
e,
|
3148
3154
|
"internal-error"
|
3149
3155
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3150
3156
|
);
|
3151
|
-
const Pn =
|
3157
|
+
const Pn = G.fromJSON(this.name, at);
|
3152
3158
|
u(
|
3153
|
-
typeof
|
3159
|
+
typeof we == "string",
|
3154
3160
|
e,
|
3155
3161
|
"internal-error"
|
3156
3162
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3157
|
-
),
|
3163
|
+
), R(h, e.name), R(f, e.name), u(
|
3158
3164
|
typeof it == "boolean",
|
3159
3165
|
e,
|
3160
3166
|
"internal-error"
|
@@ -3164,22 +3170,22 @@ class y {
|
|
3164
3170
|
e,
|
3165
3171
|
"internal-error"
|
3166
3172
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3167
|
-
),
|
3168
|
-
const
|
3169
|
-
uid:
|
3173
|
+
), R(v, e.name), R(F, e.name), R(tt, e.name), R(Ee, e.name), R(nt, e.name), R(rt, e.name);
|
3174
|
+
const ke = new y({
|
3175
|
+
uid: we,
|
3170
3176
|
auth: e,
|
3171
|
-
email:
|
3177
|
+
email: f,
|
3172
3178
|
emailVerified: it,
|
3173
3179
|
displayName: h,
|
3174
3180
|
isAnonymous: st,
|
3175
|
-
photoURL:
|
3176
|
-
phoneNumber:
|
3181
|
+
photoURL: F,
|
3182
|
+
phoneNumber: v,
|
3177
3183
|
tenantId: tt,
|
3178
3184
|
stsTokenManager: Pn,
|
3179
3185
|
createdAt: nt,
|
3180
3186
|
lastLoginAt: rt
|
3181
3187
|
});
|
3182
|
-
return
|
3188
|
+
return Te && Array.isArray(Te) && (ke.providerData = Te.map((Mn) => Object.assign({}, Mn))), Ee && (ke._redirectEventId = Ee), ke;
|
3183
3189
|
}
|
3184
3190
|
/**
|
3185
3191
|
* Initialize a User from an idToken server response
|
@@ -3187,7 +3193,7 @@ class y {
|
|
3187
3193
|
* @param idTokenResponse
|
3188
3194
|
*/
|
3189
3195
|
static async _fromIdTokenResponse(e, t, r = !1) {
|
3190
|
-
const i = new
|
3196
|
+
const i = new G();
|
3191
3197
|
i.updateFromServerResponse(t);
|
3192
3198
|
const s = new y({
|
3193
3199
|
uid: t.localId,
|
@@ -3195,7 +3201,7 @@ class y {
|
|
3195
3201
|
stsTokenManager: i,
|
3196
3202
|
isAnonymous: r
|
3197
3203
|
});
|
3198
|
-
return await
|
3204
|
+
return await fe(s), s;
|
3199
3205
|
}
|
3200
3206
|
/**
|
3201
3207
|
* Initialize a User from an idToken server response
|
@@ -3209,7 +3215,7 @@ class y {
|
|
3209
3215
|
"internal-error"
|
3210
3216
|
/* AuthErrorCode.INTERNAL_ERROR */
|
3211
3217
|
);
|
3212
|
-
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new
|
3218
|
+
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new G();
|
3213
3219
|
c.updateFromIdToken(r);
|
3214
3220
|
const o = new y({
|
3215
3221
|
uid: i.localId,
|
@@ -3225,7 +3231,7 @@ class y {
|
|
3225
3231
|
phoneNumber: i.phoneNumber || null,
|
3226
3232
|
tenantId: i.tenantId || null,
|
3227
3233
|
providerData: s,
|
3228
|
-
metadata: new
|
3234
|
+
metadata: new Ge(i.createdAt, i.lastLoginAt),
|
3229
3235
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
3230
3236
|
};
|
3231
3237
|
return Object.assign(o, l), o;
|
@@ -3247,11 +3253,11 @@ class y {
|
|
3247
3253
|
* See the License for the specific language governing permissions and
|
3248
3254
|
* limitations under the License.
|
3249
3255
|
*/
|
3250
|
-
const
|
3256
|
+
const bt = /* @__PURE__ */ new Map();
|
3251
3257
|
function E(n) {
|
3252
|
-
|
3253
|
-
let e =
|
3254
|
-
return e ? (
|
3258
|
+
k(n instanceof Function, "Expected a class definition");
|
3259
|
+
let e = bt.get(n);
|
3260
|
+
return e ? (k(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), bt.set(n, e), e);
|
3255
3261
|
}
|
3256
3262
|
/**
|
3257
3263
|
* @license
|
@@ -3312,7 +3318,7 @@ const yt = ln;
|
|
3312
3318
|
function ae(n, e, t) {
|
3313
3319
|
return `firebase:${n}:${e}:${t}`;
|
3314
3320
|
}
|
3315
|
-
class
|
3321
|
+
class V {
|
3316
3322
|
constructor(e, t, r) {
|
3317
3323
|
this.persistence = e, this.auth = t, this.userKey = r;
|
3318
3324
|
const { config: i, name: s } = this.auth;
|
@@ -3343,7 +3349,7 @@ class H {
|
|
3343
3349
|
}
|
3344
3350
|
static async create(e, t, r = "authUser") {
|
3345
3351
|
if (!t.length)
|
3346
|
-
return new
|
3352
|
+
return new V(E(yt), e, r);
|
3347
3353
|
const i = (await Promise.all(t.map(async (l) => {
|
3348
3354
|
if (await l._isAvailable())
|
3349
3355
|
return l;
|
@@ -3362,13 +3368,13 @@ class H {
|
|
3362
3368
|
} catch {
|
3363
3369
|
}
|
3364
3370
|
const o = i.filter((l) => l._shouldAllowMigration);
|
3365
|
-
return !s._shouldAllowMigration || !o.length ? new
|
3371
|
+
return !s._shouldAllowMigration || !o.length ? new V(s, e, r) : (s = o[0], c && await s._set(a, c.toJSON()), await Promise.all(t.map(async (l) => {
|
3366
3372
|
if (l !== s)
|
3367
3373
|
try {
|
3368
3374
|
await l._remove(a);
|
3369
3375
|
} catch {
|
3370
3376
|
}
|
3371
|
-
})), new
|
3377
|
+
})), new V(s, e, r));
|
3372
3378
|
}
|
3373
3379
|
}
|
3374
3380
|
/**
|
@@ -3401,7 +3407,7 @@ function Et(n) {
|
|
3401
3407
|
return "Firefox";
|
3402
3408
|
if (e.includes("silk/"))
|
3403
3409
|
return "Silk";
|
3404
|
-
if (
|
3410
|
+
if (mn(e))
|
3405
3411
|
return "Blackberry";
|
3406
3412
|
if (_n(e))
|
3407
3413
|
return "Webos";
|
@@ -3409,7 +3415,7 @@ function Et(n) {
|
|
3409
3415
|
return "Safari";
|
3410
3416
|
if ((e.includes("chrome/") || hn(e)) && !e.includes("edge/"))
|
3411
3417
|
return "Chrome";
|
3412
|
-
if (
|
3418
|
+
if (fn(e))
|
3413
3419
|
return "Android";
|
3414
3420
|
{
|
3415
3421
|
const t = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, r = n.match(t);
|
@@ -3418,40 +3424,40 @@ function Et(n) {
|
|
3418
3424
|
}
|
3419
3425
|
return "Other";
|
3420
3426
|
}
|
3421
|
-
function dn(n =
|
3427
|
+
function dn(n = m()) {
|
3422
3428
|
return /firefox\//i.test(n);
|
3423
3429
|
}
|
3424
|
-
function un(n =
|
3430
|
+
function un(n = m()) {
|
3425
3431
|
const e = n.toLowerCase();
|
3426
3432
|
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
|
3427
3433
|
}
|
3428
|
-
function hn(n =
|
3434
|
+
function hn(n = m()) {
|
3429
3435
|
return /crios\//i.test(n);
|
3430
3436
|
}
|
3431
|
-
function pn(n =
|
3437
|
+
function pn(n = m()) {
|
3432
3438
|
return /iemobile/i.test(n);
|
3433
3439
|
}
|
3434
|
-
function
|
3440
|
+
function fn(n = m()) {
|
3435
3441
|
return /android/i.test(n);
|
3436
3442
|
}
|
3437
|
-
function
|
3443
|
+
function mn(n = m()) {
|
3438
3444
|
return /blackberry/i.test(n);
|
3439
3445
|
}
|
3440
|
-
function _n(n =
|
3446
|
+
function _n(n = m()) {
|
3441
3447
|
return /webos/i.test(n);
|
3442
3448
|
}
|
3443
|
-
function Ke(n =
|
3449
|
+
function Ke(n = m()) {
|
3444
3450
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
3445
3451
|
}
|
3446
|
-
function es(n =
|
3452
|
+
function es(n = m()) {
|
3447
3453
|
var e;
|
3448
3454
|
return Ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
3449
3455
|
}
|
3450
3456
|
function ts() {
|
3451
|
-
return
|
3457
|
+
return vr() && document.documentMode === 10;
|
3452
3458
|
}
|
3453
|
-
function gn(n =
|
3454
|
-
return Ke(n) ||
|
3459
|
+
function gn(n = m()) {
|
3460
|
+
return Ke(n) || fn(n) || _n(n) || mn(n) || /windows phone/i.test(n) || pn(n);
|
3455
3461
|
}
|
3456
3462
|
/**
|
3457
3463
|
* @license
|
@@ -3469,14 +3475,14 @@ function gn(n = f()) {
|
|
3469
3475
|
* See the License for the specific language governing permissions and
|
3470
3476
|
* limitations under the License.
|
3471
3477
|
*/
|
3472
|
-
function
|
3478
|
+
function vn(n, e = []) {
|
3473
3479
|
let t;
|
3474
3480
|
switch (n) {
|
3475
3481
|
case "Browser":
|
3476
|
-
t = Et(
|
3482
|
+
t = Et(m());
|
3477
3483
|
break;
|
3478
3484
|
case "Worker":
|
3479
|
-
t = `${Et(
|
3485
|
+
t = `${Et(m())}-${n}`;
|
3480
3486
|
break;
|
3481
3487
|
default:
|
3482
3488
|
t = n;
|
@@ -3556,7 +3562,7 @@ class ns {
|
|
3556
3562
|
* limitations under the License.
|
3557
3563
|
*/
|
3558
3564
|
async function rs(n, e = {}) {
|
3559
|
-
return
|
3565
|
+
return Z(n, "GET", "/v2/passwordPolicy", ve(n, e));
|
3560
3566
|
}
|
3561
3567
|
/**
|
3562
3568
|
* @license
|
@@ -3664,12 +3670,12 @@ class ss {
|
|
3664
3670
|
*/
|
3665
3671
|
class as {
|
3666
3672
|
constructor(e, t, r, i) {
|
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
|
3673
|
+
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 wt(this), this.idTokenSubscription = new wt(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;
|
3668
3674
|
}
|
3669
3675
|
_initializeWithPersistence(e, t) {
|
3670
3676
|
return t && (this._popupRedirectResolver = E(t)), this._initializationPromise = this.queue(async () => {
|
3671
3677
|
var r, i;
|
3672
|
-
if (!this._deleted && (this.persistenceManager = await
|
3678
|
+
if (!this._deleted && (this.persistenceManager = await V.create(this, e), !this._deleted)) {
|
3673
3679
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
3674
3680
|
try {
|
3675
3681
|
await this._popupRedirectResolver._initialize(this);
|
@@ -3708,7 +3714,7 @@ class as {
|
|
3708
3714
|
}
|
3709
3715
|
async initializeCurrentUser(e) {
|
3710
3716
|
var t;
|
3711
|
-
if (
|
3717
|
+
if (I(this.app)) {
|
3712
3718
|
const a = this.app.settings.authIdToken;
|
3713
3719
|
return a ? new Promise((c) => {
|
3714
3720
|
setTimeout(() => this.initializeCurrentUserFromIdToken(a).then(c, c));
|
@@ -3750,7 +3756,7 @@ class as {
|
|
3750
3756
|
}
|
3751
3757
|
async reloadAndSetCurrentUserOrClear(e) {
|
3752
3758
|
try {
|
3753
|
-
await
|
3759
|
+
await fe(e);
|
3754
3760
|
} catch (t) {
|
3755
3761
|
if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
|
3756
3762
|
return this.directlySetCurrentUser(null);
|
@@ -3758,13 +3764,13 @@ class as {
|
|
3758
3764
|
return this.directlySetCurrentUser(e);
|
3759
3765
|
}
|
3760
3766
|
useDeviceLanguage() {
|
3761
|
-
this.languageCode =
|
3767
|
+
this.languageCode = Vi();
|
3762
3768
|
}
|
3763
3769
|
async _delete() {
|
3764
3770
|
this._deleted = !0;
|
3765
3771
|
}
|
3766
3772
|
async updateCurrentUser(e) {
|
3767
|
-
if (
|
3773
|
+
if (I(this.app))
|
3768
3774
|
return Promise.reject(P(this));
|
3769
3775
|
const t = e ? z(e) : null;
|
3770
3776
|
return t && u(
|
@@ -3786,14 +3792,14 @@ class as {
|
|
3786
3792
|
});
|
3787
3793
|
}
|
3788
3794
|
async signOut() {
|
3789
|
-
return
|
3795
|
+
return I(this.app) ? Promise.reject(P(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
|
3790
3796
|
null,
|
3791
3797
|
/* skipBeforeStateCallbacks */
|
3792
3798
|
!0
|
3793
3799
|
));
|
3794
3800
|
}
|
3795
3801
|
setPersistence(e) {
|
3796
|
-
return
|
3802
|
+
return I(this.app) ? Promise.reject(P(this)) : this.queue(async () => {
|
3797
3803
|
await this.assertedPersistence.setPersistence(E(e));
|
3798
3804
|
});
|
3799
3805
|
}
|
@@ -3873,7 +3879,7 @@ class as {
|
|
3873
3879
|
this,
|
3874
3880
|
"argument-error"
|
3875
3881
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
3876
|
-
), this.redirectPersistenceManager = await
|
3882
|
+
), this.redirectPersistenceManager = await V.create(
|
3877
3883
|
this,
|
3878
3884
|
[E(t._redirectPersistence)],
|
3879
3885
|
"redirectUser"
|
@@ -3962,7 +3968,7 @@ class as {
|
|
3962
3968
|
), this.persistenceManager;
|
3963
3969
|
}
|
3964
3970
|
_logFramework(e) {
|
3965
|
-
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion =
|
3971
|
+
!e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = vn(this.config.clientPlatform, this._getFrameworks()));
|
3966
3972
|
}
|
3967
3973
|
_getFrameworks() {
|
3968
3974
|
return this.frameworks;
|
@@ -3992,15 +3998,15 @@ class as {
|
|
3992
3998
|
async _getAppCheckToken() {
|
3993
3999
|
var e;
|
3994
4000
|
const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
3995
|
-
return t != null && t.error &&
|
4001
|
+
return t != null && t.error && xi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
3996
4002
|
}
|
3997
4003
|
}
|
3998
|
-
function
|
4004
|
+
function Ie(n) {
|
3999
4005
|
return z(n);
|
4000
4006
|
}
|
4001
|
-
class
|
4007
|
+
class wt {
|
4002
4008
|
constructor(e) {
|
4003
|
-
this.auth = e, this.observer = null, this.addObserver =
|
4009
|
+
this.auth = e, this.observer = null, this.addObserver = kr((t) => this.observer = t);
|
4004
4010
|
}
|
4005
4011
|
get next() {
|
4006
4012
|
return u(
|
@@ -4064,12 +4070,12 @@ function ds(n) {
|
|
4064
4070
|
* limitations under the License.
|
4065
4071
|
*/
|
4066
4072
|
function us(n, e) {
|
4067
|
-
const t =
|
4073
|
+
const t = Yt(n, "auth");
|
4068
4074
|
if (t.isInitialized()) {
|
4069
4075
|
const i = t.getImmediate(), s = t.getOptions();
|
4070
4076
|
if (ue(s, e ?? {}))
|
4071
4077
|
return i;
|
4072
|
-
|
4078
|
+
T(
|
4073
4079
|
i,
|
4074
4080
|
"already-initialized"
|
4075
4081
|
/* AuthErrorCode.ALREADY_INITIALIZED */
|
@@ -4082,7 +4088,7 @@ function hs(n, e) {
|
|
4082
4088
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
4083
4089
|
}
|
4084
4090
|
function ps(n, e, t) {
|
4085
|
-
const r =
|
4091
|
+
const r = Ie(n);
|
4086
4092
|
u(
|
4087
4093
|
r._canInitEmulator,
|
4088
4094
|
r,
|
@@ -4094,38 +4100,38 @@ function ps(n, e, t) {
|
|
4094
4100
|
"invalid-emulator-scheme"
|
4095
4101
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
4096
4102
|
);
|
4097
|
-
const i = !1, s =
|
4103
|
+
const i = !1, s = In(e), { host: a, port: c } = fs(e), o = c === null ? "" : `:${c}`;
|
4098
4104
|
r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
4099
4105
|
host: a,
|
4100
4106
|
port: c,
|
4101
4107
|
protocol: s.replace(":", ""),
|
4102
4108
|
options: Object.freeze({ disableWarnings: i })
|
4103
|
-
}),
|
4109
|
+
}), ms();
|
4104
4110
|
}
|
4105
|
-
function
|
4111
|
+
function In(n) {
|
4106
4112
|
const e = n.indexOf(":");
|
4107
4113
|
return e < 0 ? "" : n.substr(0, e + 1);
|
4108
4114
|
}
|
4109
|
-
function
|
4110
|
-
const e =
|
4115
|
+
function fs(n) {
|
4116
|
+
const e = In(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
4111
4117
|
if (!t)
|
4112
4118
|
return { host: "", port: null };
|
4113
4119
|
const r = t[2].split("@").pop() || "", i = /^(\[[^\]]+\])(:|$)/.exec(r);
|
4114
4120
|
if (i) {
|
4115
4121
|
const s = i[1];
|
4116
|
-
return { host: s, port:
|
4122
|
+
return { host: s, port: Tt(r.substr(s.length + 1)) };
|
4117
4123
|
} else {
|
4118
4124
|
const [s, a] = r.split(":");
|
4119
|
-
return { host: s, port:
|
4125
|
+
return { host: s, port: Tt(a) };
|
4120
4126
|
}
|
4121
4127
|
}
|
4122
|
-
function
|
4128
|
+
function Tt(n) {
|
4123
4129
|
if (!n)
|
4124
4130
|
return null;
|
4125
4131
|
const e = Number(n);
|
4126
4132
|
return isNaN(e) ? null : e;
|
4127
4133
|
}
|
4128
|
-
function
|
4134
|
+
function ms() {
|
4129
4135
|
function n() {
|
4130
4136
|
const e = document.createElement("p"), t = e.style;
|
4131
4137
|
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);
|
@@ -4148,7 +4154,7 @@ function fs() {
|
|
4148
4154
|
* See the License for the specific language governing permissions and
|
4149
4155
|
* limitations under the License.
|
4150
4156
|
*/
|
4151
|
-
class
|
4157
|
+
class bn {
|
4152
4158
|
/** @internal */
|
4153
4159
|
constructor(e, t) {
|
4154
4160
|
this.providerId = e, this.signInMethod = t;
|
@@ -4159,19 +4165,19 @@ class In {
|
|
4159
4165
|
* @returns a JSON-serializable representation of this object.
|
4160
4166
|
*/
|
4161
4167
|
toJSON() {
|
4162
|
-
return
|
4168
|
+
return b("not implemented");
|
4163
4169
|
}
|
4164
4170
|
/** @internal */
|
4165
4171
|
_getIdTokenResponse(e) {
|
4166
|
-
return
|
4172
|
+
return b("not implemented");
|
4167
4173
|
}
|
4168
4174
|
/** @internal */
|
4169
4175
|
_linkToIdToken(e, t) {
|
4170
|
-
return
|
4176
|
+
return b("not implemented");
|
4171
4177
|
}
|
4172
4178
|
/** @internal */
|
4173
4179
|
_getReauthenticationResolver(e) {
|
4174
|
-
return
|
4180
|
+
return b("not implemented");
|
4175
4181
|
}
|
4176
4182
|
}
|
4177
4183
|
/**
|
@@ -4190,8 +4196,8 @@ class In {
|
|
4190
4196
|
* See the License for the specific language governing permissions and
|
4191
4197
|
* limitations under the License.
|
4192
4198
|
*/
|
4193
|
-
async function
|
4194
|
-
return sn(n, "POST", "/v1/accounts:signInWithIdp",
|
4199
|
+
async function j(n, e) {
|
4200
|
+
return sn(n, "POST", "/v1/accounts:signInWithIdp", ve(n, e));
|
4195
4201
|
}
|
4196
4202
|
/**
|
4197
4203
|
* @license
|
@@ -4210,14 +4216,14 @@ async function V(n, e) {
|
|
4210
4216
|
* limitations under the License.
|
4211
4217
|
*/
|
4212
4218
|
const _s = "http://localhost";
|
4213
|
-
class U extends
|
4219
|
+
class U extends bn {
|
4214
4220
|
constructor() {
|
4215
4221
|
super(...arguments), this.pendingToken = null;
|
4216
4222
|
}
|
4217
4223
|
/** @internal */
|
4218
4224
|
static _fromParams(e) {
|
4219
4225
|
const t = new U(e.providerId, e.signInMethod);
|
4220
|
-
return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) :
|
4226
|
+
return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : T(
|
4221
4227
|
"argument-error"
|
4222
4228
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
4223
4229
|
), t;
|
@@ -4244,7 +4250,7 @@ class U extends In {
|
|
4244
4250
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
4245
4251
|
*/
|
4246
4252
|
static fromJSON(e) {
|
4247
|
-
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s =
|
4253
|
+
const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = $e(t, ["providerId", "signInMethod"]);
|
4248
4254
|
if (!r || !i)
|
4249
4255
|
return null;
|
4250
4256
|
const a = new U(r, i);
|
@@ -4253,17 +4259,17 @@ class U extends In {
|
|
4253
4259
|
/** @internal */
|
4254
4260
|
_getIdTokenResponse(e) {
|
4255
4261
|
const t = this.buildRequest();
|
4256
|
-
return
|
4262
|
+
return j(e, t);
|
4257
4263
|
}
|
4258
4264
|
/** @internal */
|
4259
4265
|
_linkToIdToken(e, t) {
|
4260
4266
|
const r = this.buildRequest();
|
4261
|
-
return r.idToken = t,
|
4267
|
+
return r.idToken = t, j(e, r);
|
4262
4268
|
}
|
4263
4269
|
/** @internal */
|
4264
4270
|
_getReauthenticationResolver(e) {
|
4265
4271
|
const t = this.buildRequest();
|
4266
|
-
return t.autoCreate = !1,
|
4272
|
+
return t.autoCreate = !1, j(e, t);
|
4267
4273
|
}
|
4268
4274
|
buildRequest() {
|
4269
4275
|
const e = {
|
@@ -4668,7 +4674,7 @@ class B {
|
|
4668
4674
|
this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
|
4669
4675
|
}
|
4670
4676
|
static async _fromIdTokenResponse(e, t, r, i = !1) {
|
4671
|
-
const s = await y._fromIdTokenResponse(e, r, i), a =
|
4677
|
+
const s = await y._fromIdTokenResponse(e, r, i), a = kt(r);
|
4672
4678
|
return new B({
|
4673
4679
|
user: s,
|
4674
4680
|
providerId: a,
|
@@ -4682,7 +4688,7 @@ class B {
|
|
4682
4688
|
/* reload */
|
4683
4689
|
!0
|
4684
4690
|
);
|
4685
|
-
const i =
|
4691
|
+
const i = kt(r);
|
4686
4692
|
return new B({
|
4687
4693
|
user: e,
|
4688
4694
|
providerId: i,
|
@@ -4691,7 +4697,7 @@ class B {
|
|
4691
4697
|
});
|
4692
4698
|
}
|
4693
4699
|
}
|
4694
|
-
function
|
4700
|
+
function kt(n) {
|
4695
4701
|
return n.providerId ? n.providerId : "phoneNumber" in n ? "phone" : null;
|
4696
4702
|
}
|
4697
4703
|
/**
|
@@ -4710,10 +4716,10 @@ function Rt(n) {
|
|
4710
4716
|
* See the License for the specific language governing permissions and
|
4711
4717
|
* limitations under the License.
|
4712
4718
|
*/
|
4713
|
-
class
|
4719
|
+
class me extends M {
|
4714
4720
|
constructor(e, t, r, i) {
|
4715
4721
|
var s;
|
4716
|
-
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this,
|
4722
|
+
super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, me.prototype), this.customData = {
|
4717
4723
|
appName: e.name,
|
4718
4724
|
tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
|
4719
4725
|
_serverResponse: t.customData._serverResponse,
|
@@ -4721,12 +4727,12 @@ class fe extends M {
|
|
4721
4727
|
};
|
4722
4728
|
}
|
4723
4729
|
static _fromErrorAndOperation(e, t, r, i) {
|
4724
|
-
return new
|
4730
|
+
return new me(e, t, r, i);
|
4725
4731
|
}
|
4726
4732
|
}
|
4727
4733
|
function En(n, e, t, r) {
|
4728
4734
|
return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
|
4729
|
-
throw s.code === "auth/multi-factor-auth-required" ?
|
4735
|
+
throw s.code === "auth/multi-factor-auth-required" ? me._fromErrorAndOperation(n, s, e, r) : s;
|
4730
4736
|
});
|
4731
4737
|
}
|
4732
4738
|
async function gs(n, e, t = !1) {
|
@@ -4749,9 +4755,9 @@ async function gs(n, e, t = !1) {
|
|
4749
4755
|
* See the License for the specific language governing permissions and
|
4750
4756
|
* limitations under the License.
|
4751
4757
|
*/
|
4752
|
-
async function
|
4758
|
+
async function vs(n, e, t = !1) {
|
4753
4759
|
const { auth: r } = n;
|
4754
|
-
if (
|
4760
|
+
if (I(r.app))
|
4755
4761
|
return Promise.reject(P(r));
|
4756
4762
|
const i = "reauthenticate";
|
4757
4763
|
try {
|
@@ -4762,7 +4768,7 @@ async function bs(n, e, t = !1) {
|
|
4762
4768
|
"internal-error"
|
4763
4769
|
/* AuthErrorCode.INTERNAL_ERROR */
|
4764
4770
|
);
|
4765
|
-
const a =
|
4771
|
+
const a = Xe(s.idToken);
|
4766
4772
|
u(
|
4767
4773
|
a,
|
4768
4774
|
r,
|
@@ -4777,7 +4783,7 @@ async function bs(n, e, t = !1) {
|
|
4777
4783
|
/* AuthErrorCode.USER_MISMATCH */
|
4778
4784
|
), B._forOperation(n, i, s);
|
4779
4785
|
} catch (s) {
|
4780
|
-
throw (s == null ? void 0 : s.code) === "auth/user-not-found" &&
|
4786
|
+
throw (s == null ? void 0 : s.code) === "auth/user-not-found" && T(
|
4781
4787
|
r,
|
4782
4788
|
"user-mismatch"
|
4783
4789
|
/* AuthErrorCode.USER_MISMATCH */
|
@@ -4800,8 +4806,8 @@ async function bs(n, e, t = !1) {
|
|
4800
4806
|
* See the License for the specific language governing permissions and
|
4801
4807
|
* limitations under the License.
|
4802
4808
|
*/
|
4803
|
-
async function
|
4804
|
-
if (
|
4809
|
+
async function Is(n, e, t = !1) {
|
4810
|
+
if (I(n.app))
|
4805
4811
|
return Promise.reject(P(n));
|
4806
4812
|
const r = "signIn", i = await En(n, r, e), s = await B._fromIdTokenResponse(n, r, i);
|
4807
4813
|
return t || await n._updateCurrentUser(s.user), s;
|
@@ -4822,8 +4828,8 @@ async function vs(n, e, t = !1) {
|
|
4822
4828
|
* See the License for the specific language governing permissions and
|
4823
4829
|
* limitations under the License.
|
4824
4830
|
*/
|
4825
|
-
async function
|
4826
|
-
return sn(n, "POST", "/v1/accounts:signInWithCustomToken",
|
4831
|
+
async function bs(n, e) {
|
4832
|
+
return sn(n, "POST", "/v1/accounts:signInWithCustomToken", ve(n, e));
|
4827
4833
|
}
|
4828
4834
|
/**
|
4829
4835
|
* @license
|
@@ -4842,9 +4848,9 @@ async function Is(n, e) {
|
|
4842
4848
|
* limitations under the License.
|
4843
4849
|
*/
|
4844
4850
|
async function ys(n, e) {
|
4845
|
-
if (
|
4851
|
+
if (I(n.app))
|
4846
4852
|
return Promise.reject(P(n));
|
4847
|
-
const t =
|
4853
|
+
const t = Ie(n), r = await bs(t, {
|
4848
4854
|
token: e,
|
4849
4855
|
returnSecureToken: !0
|
4850
4856
|
}), i = await B._fromIdTokenResponse(t, "signIn", r);
|
@@ -4853,7 +4859,7 @@ async function ys(n, e) {
|
|
4853
4859
|
function Es(n, e, t, r) {
|
4854
4860
|
return z(n).onIdTokenChanged(e, t, r);
|
4855
4861
|
}
|
4856
|
-
function
|
4862
|
+
function ws(n, e, t) {
|
4857
4863
|
return z(n).beforeAuthStateChanged(e, t);
|
4858
4864
|
}
|
4859
4865
|
const _e = "__sak";
|
@@ -4873,7 +4879,7 @@ const _e = "__sak";
|
|
4873
4879
|
* See the License for the specific language governing permissions and
|
4874
4880
|
* limitations under the License.
|
4875
4881
|
*/
|
4876
|
-
class
|
4882
|
+
class wn {
|
4877
4883
|
constructor(e, t) {
|
4878
4884
|
this.storageRetriever = e, this.type = t;
|
4879
4885
|
}
|
@@ -4914,8 +4920,8 @@ class Tn {
|
|
4914
4920
|
* See the License for the specific language governing permissions and
|
4915
4921
|
* limitations under the License.
|
4916
4922
|
*/
|
4917
|
-
const
|
4918
|
-
class
|
4923
|
+
const Ts = 1e3, ks = 10;
|
4924
|
+
class Tn extends wn {
|
4919
4925
|
constructor() {
|
4920
4926
|
super(
|
4921
4927
|
() => window.localStorage,
|
@@ -4942,7 +4948,7 @@ class wn extends Tn {
|
|
4942
4948
|
const a = this.storage.getItem(r);
|
4943
4949
|
!t && this.localCache[r] === a || this.notifyListeners(r, a);
|
4944
4950
|
}, s = this.storage.getItem(r);
|
4945
|
-
ts() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i,
|
4951
|
+
ts() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, ks) : i();
|
4946
4952
|
}
|
4947
4953
|
notifyListeners(e, t) {
|
4948
4954
|
this.localCache[e] = t;
|
@@ -4964,7 +4970,7 @@ class wn extends Tn {
|
|
4964
4970
|
!0
|
4965
4971
|
);
|
4966
4972
|
});
|
4967
|
-
},
|
4973
|
+
}, Ts);
|
4968
4974
|
}
|
4969
4975
|
stopPolling() {
|
4970
4976
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -4993,8 +4999,8 @@ class wn extends Tn {
|
|
4993
4999
|
await super._remove(e), delete this.localCache[e];
|
4994
5000
|
}
|
4995
5001
|
}
|
4996
|
-
|
4997
|
-
const
|
5002
|
+
Tn.type = "LOCAL";
|
5003
|
+
const Rs = Tn;
|
4998
5004
|
/**
|
4999
5005
|
* @license
|
5000
5006
|
* Copyright 2020 Google LLC
|
@@ -5011,7 +5017,7 @@ const ks = wn;
|
|
5011
5017
|
* See the License for the specific language governing permissions and
|
5012
5018
|
* limitations under the License.
|
5013
5019
|
*/
|
5014
|
-
class
|
5020
|
+
class kn extends wn {
|
5015
5021
|
constructor() {
|
5016
5022
|
super(
|
5017
5023
|
() => window.sessionStorage,
|
@@ -5024,8 +5030,8 @@ class Rn extends Tn {
|
|
5024
5030
|
_removeListener(e, t) {
|
5025
5031
|
}
|
5026
5032
|
}
|
5027
|
-
|
5028
|
-
const
|
5033
|
+
kn.type = "SESSION";
|
5034
|
+
const Rn = kn;
|
5029
5035
|
/**
|
5030
5036
|
* @license
|
5031
5037
|
* Copyright 2019 Google LLC
|
@@ -5073,7 +5079,7 @@ function Ss(n) {
|
|
5073
5079
|
* See the License for the specific language governing permissions and
|
5074
5080
|
* limitations under the License.
|
5075
5081
|
*/
|
5076
|
-
class
|
5082
|
+
class be {
|
5077
5083
|
constructor(e) {
|
5078
5084
|
this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
|
5079
5085
|
}
|
@@ -5087,7 +5093,7 @@ class Ie {
|
|
5087
5093
|
const t = this.receivers.find((i) => i.isListeningto(e));
|
5088
5094
|
if (t)
|
5089
5095
|
return t;
|
5090
|
-
const r = new
|
5096
|
+
const r = new be(e);
|
5091
5097
|
return this.receivers.push(r), r;
|
5092
5098
|
}
|
5093
5099
|
isListeningto(e) {
|
@@ -5141,7 +5147,7 @@ class Ie {
|
|
5141
5147
|
this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
|
5142
5148
|
}
|
5143
5149
|
}
|
5144
|
-
|
5150
|
+
be.receivers = [];
|
5145
5151
|
/**
|
5146
5152
|
* @license
|
5147
5153
|
* Copyright 2020 Google LLC
|
@@ -5225,9 +5231,9 @@ class As {
|
|
5225
5231
|
a = {
|
5226
5232
|
messageChannel: i,
|
5227
5233
|
onMessage(h) {
|
5228
|
-
const
|
5229
|
-
if (
|
5230
|
-
switch (
|
5234
|
+
const f = h;
|
5235
|
+
if (f.data.eventId === l)
|
5236
|
+
switch (f.data.status) {
|
5231
5237
|
case "ack":
|
5232
5238
|
clearTimeout(d), s = setTimeout(
|
5233
5239
|
() => {
|
@@ -5241,7 +5247,7 @@ class As {
|
|
5241
5247
|
);
|
5242
5248
|
break;
|
5243
5249
|
case "done":
|
5244
|
-
clearTimeout(s), c(
|
5250
|
+
clearTimeout(s), c(f.data.response);
|
5245
5251
|
break;
|
5246
5252
|
default:
|
5247
5253
|
clearTimeout(d), clearTimeout(s), o(new Error(
|
@@ -5356,7 +5362,7 @@ function Ms() {
|
|
5356
5362
|
const n = indexedDB.deleteDatabase(An);
|
5357
5363
|
return new re(n).toPromise();
|
5358
5364
|
}
|
5359
|
-
function
|
5365
|
+
function Ve() {
|
5360
5366
|
const n = indexedDB.open(An, Ps);
|
5361
5367
|
return new Promise((e, t) => {
|
5362
5368
|
n.addEventListener("error", () => {
|
@@ -5370,11 +5376,11 @@ function He() {
|
|
5370
5376
|
}
|
5371
5377
|
}), n.addEventListener("success", async () => {
|
5372
5378
|
const r = n.result;
|
5373
|
-
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ms(), e(await
|
5379
|
+
r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ms(), e(await Ve()));
|
5374
5380
|
});
|
5375
5381
|
});
|
5376
5382
|
}
|
5377
|
-
async function
|
5383
|
+
async function Rt(n, e, t) {
|
5378
5384
|
const r = ye(n, !0).put({
|
5379
5385
|
[On]: e,
|
5380
5386
|
value: t
|
@@ -5397,7 +5403,7 @@ class Nn {
|
|
5397
5403
|
});
|
5398
5404
|
}
|
5399
5405
|
async _openDb() {
|
5400
|
-
return this.db ? this.db : (this.db = await
|
5406
|
+
return this.db ? this.db : (this.db = await Ve(), this.db);
|
5401
5407
|
}
|
5402
5408
|
async _withRetries(e) {
|
5403
5409
|
let t = 0;
|
@@ -5422,7 +5428,7 @@ class Nn {
|
|
5422
5428
|
* As the worker we should listen to events from the main window.
|
5423
5429
|
*/
|
5424
5430
|
async initializeReceiver() {
|
5425
|
-
this.receiver =
|
5431
|
+
this.receiver = be._getInstance(Ds()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
5426
5432
|
keyProcessed: (await this._poll()).includes(t.key)
|
5427
5433
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
5428
5434
|
"keyChanged"
|
@@ -5478,8 +5484,8 @@ class Nn {
|
|
5478
5484
|
try {
|
5479
5485
|
if (!indexedDB)
|
5480
5486
|
return !1;
|
5481
|
-
const e = await
|
5482
|
-
return await
|
5487
|
+
const e = await Ve();
|
5488
|
+
return await Rt(e, _e, "1"), await St(e, _e), !0;
|
5483
5489
|
} catch {
|
5484
5490
|
}
|
5485
5491
|
return !1;
|
@@ -5493,7 +5499,7 @@ class Nn {
|
|
5493
5499
|
}
|
5494
5500
|
}
|
5495
5501
|
async _set(e, t) {
|
5496
|
-
return this._withPendingWrite(async () => (await this._withRetries((r) =>
|
5502
|
+
return this._withPendingWrite(async () => (await this._withRetries((r) => Rt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
5497
5503
|
}
|
5498
5504
|
async _get(e) {
|
5499
5505
|
const t = await this._withRetries((r) => Ls(r, e));
|
@@ -5540,7 +5546,7 @@ class Nn {
|
|
5540
5546
|
}
|
5541
5547
|
}
|
5542
5548
|
Nn.type = "LOCAL";
|
5543
|
-
const
|
5549
|
+
const Fs = Nn;
|
5544
5550
|
new te(3e4, 6e4);
|
5545
5551
|
/**
|
5546
5552
|
* @license
|
@@ -5558,7 +5564,7 @@ new te(3e4, 6e4);
|
|
5558
5564
|
* See the License for the specific language governing permissions and
|
5559
5565
|
* limitations under the License.
|
5560
5566
|
*/
|
5561
|
-
function
|
5567
|
+
function xs(n, e) {
|
5562
5568
|
return e ? E(e) : (u(
|
5563
5569
|
n._popupRedirectResolver,
|
5564
5570
|
n,
|
@@ -5582,7 +5588,7 @@ function Ws(n, e) {
|
|
5582
5588
|
* See the License for the specific language governing permissions and
|
5583
5589
|
* limitations under the License.
|
5584
5590
|
*/
|
5585
|
-
class et extends
|
5591
|
+
class et extends bn {
|
5586
5592
|
constructor(e) {
|
5587
5593
|
super(
|
5588
5594
|
"custom",
|
@@ -5591,13 +5597,13 @@ class et extends In {
|
|
5591
5597
|
), this.params = e;
|
5592
5598
|
}
|
5593
5599
|
_getIdTokenResponse(e) {
|
5594
|
-
return
|
5600
|
+
return j(e, this._buildIdpRequest());
|
5595
5601
|
}
|
5596
5602
|
_linkToIdToken(e, t) {
|
5597
|
-
return
|
5603
|
+
return j(e, this._buildIdpRequest(t));
|
5598
5604
|
}
|
5599
5605
|
_getReauthenticationResolver(e) {
|
5600
|
-
return
|
5606
|
+
return j(e, this._buildIdpRequest());
|
5601
5607
|
}
|
5602
5608
|
_buildIdpRequest(e) {
|
5603
5609
|
const t = {
|
@@ -5612,19 +5618,19 @@ class et extends In {
|
|
5612
5618
|
return e && (t.idToken = e), t;
|
5613
5619
|
}
|
5614
5620
|
}
|
5615
|
-
function
|
5616
|
-
return
|
5621
|
+
function Hs(n) {
|
5622
|
+
return Is(n.auth, new et(n), n.bypassAuthState);
|
5617
5623
|
}
|
5618
|
-
function
|
5624
|
+
function Gs(n) {
|
5619
5625
|
const { auth: e, user: t } = n;
|
5620
5626
|
return u(
|
5621
5627
|
t,
|
5622
5628
|
e,
|
5623
5629
|
"internal-error"
|
5624
5630
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5625
|
-
),
|
5631
|
+
), vs(t, new et(n), n.bypassAuthState);
|
5626
5632
|
}
|
5627
|
-
async function
|
5633
|
+
async function Vs(n) {
|
5628
5634
|
const { auth: e, user: t } = n;
|
5629
5635
|
return u(
|
5630
5636
|
t,
|
@@ -5691,15 +5697,15 @@ class Cn {
|
|
5691
5697
|
switch (e) {
|
5692
5698
|
case "signInViaPopup":
|
5693
5699
|
case "signInViaRedirect":
|
5694
|
-
return
|
5700
|
+
return Hs;
|
5695
5701
|
case "linkViaPopup":
|
5696
5702
|
case "linkViaRedirect":
|
5697
|
-
return
|
5703
|
+
return Vs;
|
5698
5704
|
case "reauthViaPopup":
|
5699
5705
|
case "reauthViaRedirect":
|
5700
|
-
return
|
5706
|
+
return Gs;
|
5701
5707
|
default:
|
5702
|
-
|
5708
|
+
T(
|
5703
5709
|
this.auth,
|
5704
5710
|
"internal-error"
|
5705
5711
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -5707,10 +5713,10 @@ class Cn {
|
|
5707
5713
|
}
|
5708
5714
|
}
|
5709
5715
|
resolve(e) {
|
5710
|
-
|
5716
|
+
k(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
|
5711
5717
|
}
|
5712
5718
|
reject(e) {
|
5713
|
-
|
5719
|
+
k(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
|
5714
5720
|
}
|
5715
5721
|
unregisterAndCleanUp() {
|
5716
5722
|
this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
|
@@ -5732,10 +5738,10 @@ class Cn {
|
|
5732
5738
|
* See the License for the specific language governing permissions and
|
5733
5739
|
* limitations under the License.
|
5734
5740
|
*/
|
5735
|
-
const
|
5736
|
-
class
|
5741
|
+
const js = new te(2e3, 1e4);
|
5742
|
+
class x extends Cn {
|
5737
5743
|
constructor(e, t, r, i, s) {
|
5738
|
-
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null,
|
5744
|
+
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, x.currentPopupAction && x.currentPopupAction.cancel(), x.currentPopupAction = this;
|
5739
5745
|
}
|
5740
5746
|
async executeNotNull() {
|
5741
5747
|
const e = await this.execute();
|
@@ -5747,7 +5753,7 @@ class W extends Cn {
|
|
5747
5753
|
), e;
|
5748
5754
|
}
|
5749
5755
|
async onExecution() {
|
5750
|
-
|
5756
|
+
k(this.filter.length === 1, "Popup operations only handle one event");
|
5751
5757
|
const e = Qe();
|
5752
5758
|
this.authWindow = await this.resolver._openPopup(
|
5753
5759
|
this.auth,
|
@@ -5777,7 +5783,7 @@ class W extends Cn {
|
|
5777
5783
|
));
|
5778
5784
|
}
|
5779
5785
|
cleanUp() {
|
5780
|
-
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null,
|
5786
|
+
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, x.currentPopupAction = null;
|
5781
5787
|
}
|
5782
5788
|
pollUserCancellation() {
|
5783
5789
|
const e = () => {
|
@@ -5796,12 +5802,12 @@ class W extends Cn {
|
|
5796
5802
|
);
|
5797
5803
|
return;
|
5798
5804
|
}
|
5799
|
-
this.pollId = window.setTimeout(e,
|
5805
|
+
this.pollId = window.setTimeout(e, js.get());
|
5800
5806
|
};
|
5801
5807
|
e();
|
5802
5808
|
}
|
5803
5809
|
}
|
5804
|
-
|
5810
|
+
x.currentPopupAction = null;
|
5805
5811
|
/**
|
5806
5812
|
* @license
|
5807
5813
|
* Copyright 2020 Google LLC
|
@@ -5818,7 +5824,7 @@ W.currentPopupAction = null;
|
|
5818
5824
|
* See the License for the specific language governing permissions and
|
5819
5825
|
* limitations under the License.
|
5820
5826
|
*/
|
5821
|
-
const
|
5827
|
+
const Ws = "pendingRedirect", oe = /* @__PURE__ */ new Map();
|
5822
5828
|
class zs extends Cn {
|
5823
5829
|
constructor(e, t, r = !1) {
|
5824
5830
|
super(e, [
|
@@ -5837,7 +5843,7 @@ class zs extends Cn {
|
|
5837
5843
|
let e = oe.get(this.auth._key());
|
5838
5844
|
if (!e) {
|
5839
5845
|
try {
|
5840
|
-
const r = await
|
5846
|
+
const r = await Zs(this.resolver, this.auth) ? await super.execute() : null;
|
5841
5847
|
e = () => Promise.resolve(r);
|
5842
5848
|
} catch (t) {
|
5843
5849
|
e = () => Promise.reject(t);
|
@@ -5865,26 +5871,26 @@ class zs extends Cn {
|
|
5865
5871
|
cleanUp() {
|
5866
5872
|
}
|
5867
5873
|
}
|
5868
|
-
async function
|
5869
|
-
const t =
|
5874
|
+
async function Zs(n, e) {
|
5875
|
+
const t = Ys(e), r = Js(n);
|
5870
5876
|
if (!await r._isAvailable())
|
5871
5877
|
return !1;
|
5872
5878
|
const i = await r._get(t) === "true";
|
5873
5879
|
return await r._remove(t), i;
|
5874
5880
|
}
|
5875
|
-
function
|
5881
|
+
function $s(n, e) {
|
5876
5882
|
oe.set(n._key(), e);
|
5877
5883
|
}
|
5878
|
-
function
|
5884
|
+
function Js(n) {
|
5879
5885
|
return E(n._redirectPersistence);
|
5880
5886
|
}
|
5881
|
-
function
|
5882
|
-
return ae(
|
5887
|
+
function Ys(n) {
|
5888
|
+
return ae(Ws, n.config.apiKey, n.name);
|
5883
5889
|
}
|
5884
|
-
async function
|
5885
|
-
if (
|
5890
|
+
async function Xs(n, e, t = !1) {
|
5891
|
+
if (I(n.app))
|
5886
5892
|
return Promise.reject(P(n));
|
5887
|
-
const r =
|
5893
|
+
const r = Ie(n), i = xs(r, e), a = await new zs(r, i, t).execute();
|
5888
5894
|
return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
|
5889
5895
|
}
|
5890
5896
|
/**
|
@@ -5976,7 +5982,7 @@ function Qs(n) {
|
|
5976
5982
|
* limitations under the License.
|
5977
5983
|
*/
|
5978
5984
|
async function ea(n, e = {}) {
|
5979
|
-
return
|
5985
|
+
return Z(n, "GET", "/v1/projects", e);
|
5980
5986
|
}
|
5981
5987
|
/**
|
5982
5988
|
* @license
|
@@ -6005,14 +6011,14 @@ async function ra(n) {
|
|
6005
6011
|
return;
|
6006
6012
|
} catch {
|
6007
6013
|
}
|
6008
|
-
|
6014
|
+
T(
|
6009
6015
|
n,
|
6010
6016
|
"unauthorized-domain"
|
6011
6017
|
/* AuthErrorCode.INVALID_ORIGIN */
|
6012
6018
|
);
|
6013
6019
|
}
|
6014
6020
|
function ia(n) {
|
6015
|
-
const e =
|
6021
|
+
const e = He(), { protocol: t, hostname: r } = new URL(e);
|
6016
6022
|
if (n.startsWith("chrome-extension://")) {
|
6017
6023
|
const a = new URL(n);
|
6018
6024
|
return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
|
@@ -6129,7 +6135,7 @@ function pa(n) {
|
|
6129
6135
|
"auth-domain-config-required"
|
6130
6136
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
6131
6137
|
);
|
6132
|
-
const t = e.emulator ?
|
6138
|
+
const t = e.emulator ? Ye(e, da) : `https://${n.config.authDomain}/${la}`, r = {
|
6133
6139
|
apiKey: e.apiKey,
|
6134
6140
|
appName: n.name,
|
6135
6141
|
v: ee
|
@@ -6138,7 +6144,7 @@ function pa(n) {
|
|
6138
6144
|
const s = n._getFrameworks();
|
6139
6145
|
return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
|
6140
6146
|
}
|
6141
|
-
async function
|
6147
|
+
async function fa(n) {
|
6142
6148
|
const e = await oa(n), t = g().gapi;
|
6143
6149
|
return u(
|
6144
6150
|
t,
|
@@ -6187,12 +6193,12 @@ async function ma(n) {
|
|
6187
6193
|
* See the License for the specific language governing permissions and
|
6188
6194
|
* limitations under the License.
|
6189
6195
|
*/
|
6190
|
-
const
|
6196
|
+
const ma = {
|
6191
6197
|
location: "yes",
|
6192
6198
|
resizable: "yes",
|
6193
6199
|
statusbar: "yes",
|
6194
6200
|
toolbar: "no"
|
6195
|
-
}, _a = 500, ga = 600,
|
6201
|
+
}, _a = 500, ga = 600, va = "_blank", Ia = "http://localhost";
|
6196
6202
|
class Nt {
|
6197
6203
|
constructor(e) {
|
6198
6204
|
this.window = e, this.associatedEvent = null;
|
@@ -6205,17 +6211,17 @@ class Nt {
|
|
6205
6211
|
}
|
6206
6212
|
}
|
6207
6213
|
}
|
6208
|
-
function
|
6214
|
+
function ba(n, e, t, r = _a, i = ga) {
|
6209
6215
|
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
6210
6216
|
let c = "";
|
6211
|
-
const o = Object.assign(Object.assign({},
|
6217
|
+
const o = Object.assign(Object.assign({}, ma), {
|
6212
6218
|
width: r.toString(),
|
6213
6219
|
height: i.toString(),
|
6214
6220
|
top: s,
|
6215
6221
|
left: a
|
6216
|
-
}), l =
|
6217
|
-
t && (c = hn(l) ?
|
6218
|
-
const d = Object.entries(o).reduce((
|
6222
|
+
}), l = m().toLowerCase();
|
6223
|
+
t && (c = hn(l) ? va : t), dn(l) && (e = e || Ia, o.scrollbars = "yes");
|
6224
|
+
const d = Object.entries(o).reduce((f, [v, F]) => `${f}${v}=${F},`, "");
|
6219
6225
|
if (es(l) && c !== "_self")
|
6220
6226
|
return ya(e || "", c), new Nt(null);
|
6221
6227
|
const h = window.open(e || "", c, d);
|
@@ -6253,7 +6259,7 @@ function ya(n, e) {
|
|
6253
6259
|
* See the License for the specific language governing permissions and
|
6254
6260
|
* limitations under the License.
|
6255
6261
|
*/
|
6256
|
-
const Ea = "__/auth/handler",
|
6262
|
+
const Ea = "__/auth/handler", wa = "emulator/auth/handler", Ta = encodeURIComponent("fac");
|
6257
6263
|
async function Ct(n, e, t, r, i, s) {
|
6258
6264
|
u(
|
6259
6265
|
n.config.authDomain,
|
@@ -6275,7 +6281,7 @@ async function Ct(n, e, t, r, i, s) {
|
|
6275
6281
|
eventId: i
|
6276
6282
|
};
|
6277
6283
|
if (e instanceof yn) {
|
6278
|
-
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "",
|
6284
|
+
e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", Tr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
|
6279
6285
|
for (const [d, h] of Object.entries({}))
|
6280
6286
|
a[d] = h;
|
6281
6287
|
}
|
@@ -6287,11 +6293,11 @@ async function Ct(n, e, t, r, i, s) {
|
|
6287
6293
|
const c = a;
|
6288
6294
|
for (const d of Object.keys(c))
|
6289
6295
|
c[d] === void 0 && delete c[d];
|
6290
|
-
const o = await n._getAppCheckToken(), l = o ? `#${
|
6291
|
-
return `${
|
6296
|
+
const o = await n._getAppCheckToken(), l = o ? `#${Ta}=${encodeURIComponent(o)}` : "";
|
6297
|
+
return `${ka(n)}?${Q(c).slice(1)}${l}`;
|
6292
6298
|
}
|
6293
|
-
function
|
6294
|
-
return n.emulator ?
|
6299
|
+
function ka({ config: n }) {
|
6300
|
+
return n.emulator ? Ye(n, wa) : `https://${n.authDomain}/${Ea}`;
|
6295
6301
|
}
|
6296
6302
|
/**
|
6297
6303
|
* @license
|
@@ -6310,21 +6316,21 @@ function Ra({ config: n }) {
|
|
6310
6316
|
* limitations under the License.
|
6311
6317
|
*/
|
6312
6318
|
const De = "webStorageSupport";
|
6313
|
-
class
|
6319
|
+
class Ra {
|
6314
6320
|
constructor() {
|
6315
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence =
|
6321
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Rn, this._completeRedirectFn = Xs, this._overrideRedirectResult = $s;
|
6316
6322
|
}
|
6317
6323
|
// Wrapping in async even though we don't await anywhere in order
|
6318
6324
|
// to make sure errors are raised as promise rejections
|
6319
6325
|
async _openPopup(e, t, r, i) {
|
6320
6326
|
var s;
|
6321
|
-
|
6322
|
-
const a = await Ct(e, t, r,
|
6323
|
-
return
|
6327
|
+
k((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
6328
|
+
const a = await Ct(e, t, r, He(), i);
|
6329
|
+
return ba(e, a, Qe());
|
6324
6330
|
}
|
6325
6331
|
async _openRedirect(e, t, r, i) {
|
6326
6332
|
await this._originValidation(e);
|
6327
|
-
const s = await Ct(e, t, r,
|
6333
|
+
const s = await Ct(e, t, r, He(), i);
|
6328
6334
|
return Os(s), new Promise(() => {
|
6329
6335
|
});
|
6330
6336
|
}
|
@@ -6332,7 +6338,7 @@ class ka {
|
|
6332
6338
|
const t = e._key();
|
6333
6339
|
if (this.eventManagers[t]) {
|
6334
6340
|
const { manager: i, promise: s } = this.eventManagers[t];
|
6335
|
-
return i ? Promise.resolve(i) : (
|
6341
|
+
return i ? Promise.resolve(i) : (k(s, "If manager is not set, promise should be"), s);
|
6336
6342
|
}
|
6337
6343
|
const r = this.initAndGetManager(e);
|
6338
6344
|
return this.eventManagers[t] = { promise: r }, r.catch(() => {
|
@@ -6340,7 +6346,7 @@ class ka {
|
|
6340
6346
|
}), r;
|
6341
6347
|
}
|
6342
6348
|
async initAndGetManager(e) {
|
6343
|
-
const t = await
|
6349
|
+
const t = await fa(e), r = new qs(e);
|
6344
6350
|
return t.register("authEvent", (i) => (u(
|
6345
6351
|
i == null ? void 0 : i.authEvent,
|
6346
6352
|
e,
|
@@ -6355,7 +6361,7 @@ class ka {
|
|
6355
6361
|
this.iframes[e._key()].send(De, { type: De }, (i) => {
|
6356
6362
|
var s;
|
6357
6363
|
const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[De];
|
6358
|
-
a !== void 0 && t(!!a),
|
6364
|
+
a !== void 0 && t(!!a), T(
|
6359
6365
|
e,
|
6360
6366
|
"internal-error"
|
6361
6367
|
/* AuthErrorCode.INTERNAL_ERROR */
|
@@ -6370,7 +6376,7 @@ class ka {
|
|
6370
6376
|
return gn() || un() || Ke();
|
6371
6377
|
}
|
6372
6378
|
}
|
6373
|
-
const Sa =
|
6379
|
+
const Sa = Ra;
|
6374
6380
|
var Dt = "@firebase/auth", Pt = "1.7.9";
|
6375
6381
|
/**
|
6376
6382
|
* @license
|
@@ -6456,7 +6462,7 @@ function Oa(n) {
|
|
6456
6462
|
}
|
6457
6463
|
}
|
6458
6464
|
function Na(n) {
|
6459
|
-
|
6465
|
+
Y(new W(
|
6460
6466
|
"auth",
|
6461
6467
|
(e, { options: t }) => {
|
6462
6468
|
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
|
@@ -6468,7 +6474,7 @@ function Na(n) {
|
|
6468
6474
|
apiHost: "identitytoolkit.googleapis.com",
|
6469
6475
|
tokenApiHost: "securetoken.googleapis.com",
|
6470
6476
|
apiScheme: "https",
|
6471
|
-
sdkClientVersion:
|
6477
|
+
sdkClientVersion: vn(n)
|
6472
6478
|
}, l = new as(r, i, s, o);
|
6473
6479
|
return hs(l, t), l;
|
6474
6480
|
},
|
@@ -6482,10 +6488,10 @@ function Na(n) {
|
|
6482
6488
|
"auth-internal"
|
6483
6489
|
/* _ComponentName.AUTH_INTERNAL */
|
6484
6490
|
).initialize();
|
6485
|
-
})),
|
6491
|
+
})), Y(new W(
|
6486
6492
|
"auth-internal",
|
6487
6493
|
(e) => {
|
6488
|
-
const t =
|
6494
|
+
const t = Ie(e.getProvider(
|
6489
6495
|
"auth"
|
6490
6496
|
/* _ComponentName.AUTH */
|
6491
6497
|
).getImmediate());
|
@@ -6496,7 +6502,7 @@ function Na(n) {
|
|
6496
6502
|
).setInstantiationMode(
|
6497
6503
|
"EXPLICIT"
|
6498
6504
|
/* InstantiationMode.EXPLICIT */
|
6499
|
-
)),
|
6505
|
+
)), H(Dt, Pt, Oa(n)), H(Dt, Pt, "esm2017");
|
6500
6506
|
}
|
6501
6507
|
/**
|
6502
6508
|
* @license
|
@@ -6528,26 +6534,26 @@ const Pa = (n) => async (e) => {
|
|
6528
6534
|
} : {}
|
6529
6535
|
}));
|
6530
6536
|
};
|
6531
|
-
function Ma(n =
|
6532
|
-
const e =
|
6537
|
+
function Ma(n = Ri()) {
|
6538
|
+
const e = Yt(n, "auth");
|
6533
6539
|
if (e.isInitialized())
|
6534
6540
|
return e.getImmediate();
|
6535
6541
|
const t = us(n, {
|
6536
6542
|
popupRedirectResolver: Sa,
|
6537
6543
|
persistence: [
|
6538
|
-
|
6539
|
-
|
6540
|
-
|
6544
|
+
Fs,
|
6545
|
+
Rs,
|
6546
|
+
Rn
|
6541
6547
|
]
|
6542
6548
|
}), r = zt("authTokenSyncURL");
|
6543
6549
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
6544
6550
|
const s = new URL(r, location.origin);
|
6545
6551
|
if (location.origin === s.origin) {
|
6546
6552
|
const a = Pa(s.toString());
|
6547
|
-
|
6553
|
+
ws(t, a, () => a(t.currentUser)), Es(t, (c) => a(c));
|
6548
6554
|
}
|
6549
6555
|
}
|
6550
|
-
const i =
|
6556
|
+
const i = jt("auth");
|
6551
6557
|
return i && ps(t, `http://${i}`), t;
|
6552
6558
|
}
|
6553
6559
|
function La() {
|
@@ -6577,7 +6583,7 @@ Na(
|
|
6577
6583
|
);
|
6578
6584
|
const Ua = Ln({
|
6579
6585
|
history: Un(),
|
6580
|
-
routes: [...
|
6586
|
+
routes: [...We, ...le]
|
6581
6587
|
});
|
6582
6588
|
let Pe, Me;
|
6583
6589
|
Ua.beforeEach(async (n) => {
|
@@ -6587,20 +6593,20 @@ Ua.beforeEach(async (n) => {
|
|
6587
6593
|
currentBusiness: r,
|
6588
6594
|
readRestaurants: i,
|
6589
6595
|
changeRestaurant: s
|
6590
|
-
} =
|
6596
|
+
} = je();
|
6591
6597
|
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (Pe || (Pe = new Promise((a) => {
|
6592
|
-
const c =
|
6598
|
+
const c = $(e, (o) => {
|
6593
6599
|
var l;
|
6594
6600
|
o && (c(), a(((l = e.value) == null ? void 0 : l.isInternal) ?? !1));
|
6595
6601
|
});
|
6596
6602
|
})), Pe) : !r.value || !t.value ? (Me || (Me = Promise.all([
|
6597
6603
|
new Promise(async (a) => {
|
6598
|
-
const c =
|
6604
|
+
const c = $(r, (o) => {
|
6599
6605
|
o && (c(), a(!0));
|
6600
6606
|
});
|
6601
6607
|
}),
|
6602
6608
|
new Promise(async (a) => {
|
6603
|
-
const c =
|
6609
|
+
const c = $(t, (l) => {
|
6604
6610
|
l && (c(), a(!0));
|
6605
6611
|
}), o = await i();
|
6606
6612
|
await s(o == null ? void 0 : o.at(0));
|
@@ -6610,14 +6616,14 @@ Ua.beforeEach(async (n) => {
|
|
6610
6616
|
const Ba = /* @__PURE__ */ Ut({
|
6611
6617
|
__name: "AppSidebar",
|
6612
6618
|
setup(n) {
|
6613
|
-
const e =
|
6614
|
-
|
6619
|
+
const e = je(), t = Bn(), { t: r } = Wn(), i = xn(t.currentRoute.value.name);
|
6620
|
+
$(t.currentRoute, () => {
|
6615
6621
|
let l = t.currentRoute.value.name;
|
6616
6622
|
t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
|
6617
6623
|
});
|
6618
|
-
const s =
|
6619
|
-
var
|
6620
|
-
if (!((
|
6624
|
+
const s = We.map((l) => {
|
6625
|
+
var f;
|
6626
|
+
if (!((f = l.meta) != null && f.sidebarDisplay))
|
6621
6627
|
return;
|
6622
6628
|
const d = l.meta.sidebarDisplay, h = {
|
6623
6629
|
label: d.startsWith("i18n:") ? r(d.replaceAll("i18n:", "")) : d,
|
@@ -6627,7 +6633,7 @@ const Ba = /* @__PURE__ */ Ut({
|
|
6627
6633
|
return t.push({ name: l.name });
|
6628
6634
|
}
|
6629
6635
|
};
|
6630
|
-
return l.meta.sidebarNew && (h.badge = () =>
|
6636
|
+
return l.meta.sidebarNew && (h.badge = () => Hn(Zn.FmPill, { label: "New" })), h;
|
6631
6637
|
}).filter((l) => !!l), a = le.map((l) => {
|
6632
6638
|
var d;
|
6633
6639
|
if ((d = l.meta) != null && d.sidebarDisplay && !l.meta.section)
|
@@ -6684,54 +6690,54 @@ const Ba = /* @__PURE__ */ Ut({
|
|
6684
6690
|
});
|
6685
6691
|
return (l, d) => {
|
6686
6692
|
const h = Bt("FmCollapsibleTabs");
|
6687
|
-
return
|
6693
|
+
return Ft(), xt(h, {
|
6688
6694
|
modelValue: i.value,
|
6689
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
6695
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => i.value = f),
|
6690
6696
|
items: o.value,
|
6691
6697
|
class: "py-16 px-8 w-[240px]"
|
6692
6698
|
}, null, 8, ["modelValue", "items"]);
|
6693
6699
|
};
|
6694
6700
|
}
|
6695
6701
|
});
|
6696
|
-
var
|
6697
|
-
const
|
6702
|
+
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" };
|
6703
|
+
const Za = /* @__PURE__ */ Ut({
|
6698
6704
|
__name: "App",
|
6699
6705
|
setup(n) {
|
6700
|
-
const { state: e } = sr(), t =
|
6706
|
+
const { state: e } = sr(), t = je(), r = Fn(), i = Xt(Fa.firebase);
|
6701
6707
|
async function s() {
|
6702
6708
|
const a = t.sessionUser.value;
|
6703
6709
|
if (!a || !a.token) return;
|
6704
6710
|
const c = await a.getCustomToken(), o = Ma(i);
|
6705
6711
|
await ys(o, c);
|
6706
6712
|
}
|
6707
|
-
return s(),
|
6713
|
+
return s(), $(t.sessionUser, s), Gn(() => {
|
6708
6714
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
6709
|
-
}),
|
6715
|
+
}), Vn(() => {
|
6710
6716
|
t.registerSidebarComponent(Ba);
|
6711
6717
|
}), (a, c) => {
|
6712
6718
|
const o = Bt("RouterView");
|
6713
|
-
return
|
6714
|
-
key:
|
6719
|
+
return Ft(), xt(o, {
|
6720
|
+
key: jn(r).path
|
6715
6721
|
});
|
6716
6722
|
};
|
6717
6723
|
}
|
6718
|
-
}),
|
6724
|
+
}), $a = {
|
6719
6725
|
"en-US": qn,
|
6720
6726
|
"zh-CN": ir
|
6721
|
-
},
|
6727
|
+
}, Ja = [...le, ...We];
|
6722
6728
|
export {
|
6723
|
-
|
6729
|
+
W as C,
|
6724
6730
|
M as F,
|
6725
6731
|
ee as S,
|
6726
|
-
|
6727
|
-
|
6728
|
-
|
6729
|
-
|
6732
|
+
Y as _,
|
6733
|
+
Yt as a,
|
6734
|
+
Wa as b,
|
6735
|
+
Ri as c,
|
6730
6736
|
za as d,
|
6731
6737
|
gt as e,
|
6732
|
-
|
6738
|
+
Ja as f,
|
6733
6739
|
z as g,
|
6734
|
-
|
6735
|
-
|
6736
|
-
|
6740
|
+
Za as h,
|
6741
|
+
$a as i,
|
6742
|
+
H as r
|
6737
6743
|
};
|