@feedmepos/mf-payment 1.0.28-beta.2 → 1.1.0-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.
Files changed (80) hide show
  1. package/dist/{PDFViewer-xrBtzrlR.js → PDFViewer-BQfgFexr.js} +2 -1
  2. package/dist/{PayoutAccount-CBh520Qd.js → PayoutAccount-BHJpjUqD.js} +5 -5
  3. package/dist/{PayoutAccount-BnHoTtMi.js → PayoutAccount-DCkf_1yL.js} +5 -4
  4. package/dist/PayoutAccountSetting-Bk-g7ucZ.js +723 -0
  5. package/dist/{Restaurant-Hg88M5VI.js → Restaurant-D2qq84VL.js} +56 -54
  6. package/dist/{RestaurantSetting-B-wc4YDK.js → RestaurantSetting-DAtrtX6S.js} +3 -3
  7. package/dist/{Settlement-BGS6kLTS.js → Settlement-BVIsszEJ.js} +37 -34
  8. package/dist/{Settlement-Ce2W2XDS.js → Settlement-Cx1tc5wt.js} +9 -8
  9. package/dist/{SettlementTransactions-DACSkgFS.js → SettlementTransactions-C82DyYlO.js} +14 -14
  10. package/dist/{SettlementTransactions-CFS-4VBi.js → SettlementTransactions-CeN4SRWa.js} +39 -39
  11. package/dist/{Terminal-yfS0o6id.js → Terminal-Az2k8E6F.js} +323 -342
  12. package/dist/{TerminalSetting-NvYoH1FN.js → TerminalSetting-C-xlLYXa.js} +27 -27
  13. package/dist/Transaction-CC8hc8_r.js +250 -0
  14. package/dist/{Transaction-DOkGYxU_.js → Transaction-Y_mc0yQv.js} +123 -105
  15. package/dist/{TransactionOld-zxpmzUzh.js → TransactionOld-BxhI-wwm.js} +7 -7
  16. package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-dwwesT4_.js +304 -0
  17. package/dist/api/payout/index.d.ts +5 -1
  18. package/dist/api/terminal/index.d.ts +6 -10
  19. package/dist/api/transaction/index.d.ts +12 -11
  20. package/dist/{app-U2zosiYM.js → app-OBp4HaEY.js} +873 -811
  21. package/dist/app.js +1 -1
  22. package/dist/{assets-C5ikBqta.js → assets-pLBp82yE.js} +208 -58
  23. package/dist/components/SourceSelector.vue.d.ts +12 -0
  24. package/dist/{grafana-Bf91brqK.js → grafana-hv7inD36.js} +1 -1
  25. package/dist/{index-GteStxtj.js → index-1xF00w89.js} +1 -1
  26. package/dist/{index-BBoi9wDz.js → index-CFYD8Dv4.js} +1 -1
  27. package/dist/index-Cqq3p9PP.js +66 -0
  28. package/dist/{index-B5xc12hq.js → index-DD5mEX0D.js} +1 -1
  29. package/dist/{index-D8J1GO2q.js → index-DGKxdJVj.js} +8164 -8082
  30. package/dist/index-oM4Z9ffu.js +45 -0
  31. package/dist/{index.vue_vue_type_script_setup_true_lang-DZwLItyk.js → index.vue_vue_type_script_setup_true_lang-C9tnqgzY.js} +8 -7
  32. package/dist/model/payout-account.d.ts +1 -1
  33. package/dist/model/transaction.d.ts +13 -5
  34. package/dist/package.json +2 -2
  35. package/dist/{payout-account-BKcgcf9C.js → payout-account-DPaS3dIs.js} +2 -2
  36. package/dist/router/index.d.ts +1 -0
  37. package/dist/stores/payoutAccount.d.ts +4 -4
  38. package/dist/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  40. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +133 -0
  41. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +133 -0
  42. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  43. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  44. package/dist/views/admin/payout-account/tabs/cell/Actions.vue.d.ts +8 -0
  45. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +10 -23
  46. package/dist/views/admin/{terminal-transaction/TerminalTransaction.vue.d.ts → payout-account/tabs/gateway/MacauPassGateway.vue.d.ts} +1 -1
  47. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  48. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
  49. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  50. package/dist/views/admin/terminal/Terminal.vue.d.ts +4 -1
  51. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
  52. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +2 -2
  53. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +2 -2
  54. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
  55. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +2 -2
  56. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +2 -0
  57. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  58. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +16 -16
  59. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +8 -8
  60. package/dist/views/{admin/terminal-transaction → transaction}/cell/Actions.vue.d.ts +3 -3
  61. package/package.json +2 -2
  62. package/dist/PayoutAccountSetting-xC8_JQLN.js +0 -426
  63. package/dist/TerminalTransaction-BulIYAWj.js +0 -333
  64. package/dist/TerminalTransaction-HMmRqtr1.js +0 -589
  65. package/dist/Transaction-B1u_AbEJ.js +0 -247
  66. package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-DEPASHaN.js +0 -159
  67. package/dist/components/PayoutAccountSelector.vue.d.ts +0 -23
  68. package/dist/index-6CRJVoBq.js +0 -52
  69. package/dist/index-Cti5gi62.js +0 -77
  70. package/dist/index-l27QvtNB.js +0 -40
  71. package/dist/transaction-CxXve4F4.js +0 -136
  72. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +0 -50
  73. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +0 -52
  74. package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
  75. package/dist/views/admin/terminal-transaction/cell/Method.vue.d.ts +0 -7
  76. package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +0 -7
  77. package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +0 -2
  78. package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
  79. package/dist/views/terminal-transaction/cell/Method.vue.d.ts +0 -7
  80. package/dist/views/terminal-transaction/cell/Status.vue.d.ts +0 -7
@@ -1,16 +1,17 @@
1
- import { createRouter as Ln, createWebHistory as Un, useRouter as Bn } from "vue-router";
2
- import { computed as Lt, watch as Z, defineComponent as Ut, ref as Fn, resolveComponent as Bt, openBlock as Ft, createBlock as Ht, h as Hn, onMounted as jn, onBeforeMount as Vn } from "vue";
3
- import { useCoreStore as xe } from "@feedmepos/mf-common";
4
- import { defineStore as xn } from "pinia";
5
- import { components as Wn } from "@feedmepos/ui-library";
6
- const We = [
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 jn, resolveComponent as Bt, openBlock as Ft, createBlock as jt, h as xn, onMounted as Vn, onBeforeMount as Hn, unref as Gn } from "vue";
3
+ import { useCoreStore as Ge } from "@feedmepos/mf-common";
4
+ import { defineStore as Wn } from "pinia";
5
+ import { components as zn } from "@feedmepos/ui-library";
6
+ const le = [
7
7
  {
8
8
  path: "/admin/restaurants",
9
9
  name: "mf-payment-admin.restaurant",
10
10
  meta: {
11
- sidebarDisplay: "Restaurants"
11
+ sidebarDisplay: "Restaurants",
12
+ section: "payment-gateway"
12
13
  },
13
- component: () => import("./Restaurant-Hg88M5VI.js")
14
+ component: () => import("./Restaurant-D2qq84VL.js")
14
15
  },
15
16
  {
16
17
  path: "/admin/restaurants/:restaurantId",
@@ -19,15 +20,16 @@ const We = [
19
20
  meta: {
20
21
  parent: "mf-payment-admin.restaurant"
21
22
  },
22
- component: () => import("./RestaurantSetting-B-wc4YDK.js")
23
+ component: () => import("./RestaurantSetting-DAtrtX6S.js")
23
24
  },
24
25
  {
25
26
  path: "/admin/payout-accounts",
26
27
  name: "mf-payment-admin.payout-account",
27
28
  meta: {
28
- sidebarDisplay: "Payout Accounts"
29
+ sidebarDisplay: "Payout Accounts",
30
+ section: "payment-gateway"
29
31
  },
30
- component: () => import("./PayoutAccount-CBh520Qd.js")
32
+ component: () => import("./PayoutAccount-BHJpjUqD.js")
31
33
  },
32
34
  {
33
35
  path: "/admin/payout-accounts/:accountId",
@@ -36,40 +38,78 @@ const We = [
36
38
  meta: {
37
39
  parent: "mf-payment-admin.payout-account"
38
40
  },
39
- component: () => import("./PayoutAccountSetting-xC8_JQLN.js")
41
+ component: () => import("./PayoutAccountSetting-Bk-g7ucZ.js")
42
+ },
43
+ {
44
+ path: "/admin/terminal/pos",
45
+ name: "mf-payment-admin.pos",
46
+ meta: {
47
+ sidebarDisplay: "POS",
48
+ section: "device"
49
+ },
50
+ component: () => import("./Terminal-Az2k8E6F.js"),
51
+ props: {
52
+ type: "POS"
53
+ }
40
54
  },
41
55
  {
42
- path: "/admin/terminal",
56
+ path: "/admin/terminal/kiosk",
57
+ name: "mf-payment-admin.kiosk",
58
+ meta: {
59
+ sidebarDisplay: "Kiosks",
60
+ section: "device"
61
+ },
62
+ component: () => import("./Terminal-Az2k8E6F.js"),
63
+ props: {
64
+ type: "KIOSK"
65
+ }
66
+ },
67
+ {
68
+ path: "/admin/terminal/terminal",
43
69
  name: "mf-payment-admin.terminal",
44
70
  meta: {
45
- sidebarDisplay: "Terminals"
71
+ sidebarDisplay: "Terminals",
72
+ section: "device"
46
73
  },
47
- component: () => import("./Terminal-yfS0o6id.js")
74
+ component: () => import("./Terminal-Az2k8E6F.js"),
75
+ props: {
76
+ type: "TERMINAL"
77
+ }
48
78
  },
49
79
  {
50
- path: "/admin/terminal/:terminalId",
51
- name: "mf-payment-admin.terminal-setting",
80
+ path: "/admin/terminal/pos/:terminalId",
81
+ name: "mf-payment-admin.pos-setting",
52
82
  props: !0,
53
83
  meta: {
54
- parent: "mf-payment-admin.terminal"
84
+ parent: "mf-payment-admin.pos"
55
85
  },
56
- component: () => import("./TerminalSetting-NvYoH1FN.js")
86
+ component: () => import("./TerminalSetting-C-xlLYXa.js")
57
87
  },
58
88
  {
59
- path: "/admin/terminal-transaction",
60
- name: "mf-payment-admin.terminal-transaction",
89
+ path: "/admin/terminal/kiosk/:terminalId",
90
+ name: "mf-payment-admin.kiosk-setting",
91
+ props: !0,
61
92
  meta: {
62
- sidebarDisplay: "Terminal Transactions"
93
+ parent: "mf-payment-admin.kiosk"
63
94
  },
64
- component: () => import("./TerminalTransaction-HMmRqtr1.js")
95
+ component: () => import("./TerminalSetting-C-xlLYXa.js")
96
+ },
97
+ {
98
+ path: "/admin/terminal/terminal/:terminalId",
99
+ name: "mf-payment-admin.terminal-setting",
100
+ props: !0,
101
+ meta: {
102
+ parent: "mf-payment-admin.terminal"
103
+ },
104
+ component: () => import("./TerminalSetting-C-xlLYXa.js")
65
105
  },
66
106
  {
67
107
  path: "/admin/transaction",
68
108
  name: "mf-payment-admin.transaction",
69
109
  meta: {
70
- sidebarDisplay: "Online Transactions"
110
+ sidebarDisplay: "Transactions"
71
111
  },
72
- component: () => import("./Transaction-DOkGYxU_.js")
112
+ component: () => import("./Transaction-Y_mc0yQv.js")
73
113
  },
74
114
  {
75
115
  path: "/admin/settlement",
@@ -77,7 +117,7 @@ const We = [
77
117
  meta: {
78
118
  sidebarDisplay: "Settlements"
79
119
  },
80
- component: () => import("./Settlement-Ce2W2XDS.js")
120
+ component: () => import("./Settlement-Cx1tc5wt.js")
81
121
  },
82
122
  {
83
123
  path: "/admin/settlement/:settlementId",
@@ -86,9 +126,9 @@ const We = [
86
126
  meta: {
87
127
  parent: "mf-payment-admin.settlement"
88
128
  },
89
- component: () => import("./SettlementTransactions-DACSkgFS.js")
129
+ component: () => import("./SettlementTransactions-C82DyYlO.js")
90
130
  }
91
- ], Ge = [
131
+ ], We = [
92
132
  {
93
133
  path: "",
94
134
  redirect: { name: "mf-payment-payout-account" }
@@ -96,7 +136,7 @@ const We = [
96
136
  {
97
137
  path: "/payout-account",
98
138
  name: "mf-payment-payout-account",
99
- component: () => import("./PayoutAccount-BnHoTtMi.js"),
139
+ component: () => import("./PayoutAccount-DCkf_1yL.js"),
100
140
  meta: {
101
141
  sidebarDisplay: "Payout Accounts"
102
142
  }
@@ -104,33 +144,24 @@ const We = [
104
144
  {
105
145
  path: "/transaction-old",
106
146
  name: "mf-payment-old-transaction",
107
- component: () => import("./TransactionOld-zxpmzUzh.js"),
147
+ component: () => import("./TransactionOld-BxhI-wwm.js"),
108
148
  meta: {
109
149
  sidebarDisplay: "Transactions"
110
150
  }
111
151
  },
112
- {
113
- path: "/terminal-tranasction",
114
- name: "mf-payment-terminal-transaction",
115
- meta: {
116
- sidebarDisplay: "Terminal Transactions",
117
- sidebarNew: !0
118
- },
119
- component: () => import("./TerminalTransaction-BulIYAWj.js")
120
- },
121
152
  {
122
153
  path: "/transaction",
123
154
  name: "mf-payment-transaction",
124
- component: () => import("./Transaction-B1u_AbEJ.js"),
155
+ component: () => import("./Transaction-CC8hc8_r.js"),
125
156
  meta: {
126
- sidebarDisplay: "Online Transactions",
157
+ sidebarDisplay: "Transactions",
127
158
  sidebarNew: !0
128
159
  }
129
160
  },
130
161
  {
131
162
  path: "/settlement",
132
163
  name: "mf-payment-settlement",
133
- component: () => import("./Settlement-BGS6kLTS.js"),
164
+ component: () => import("./Settlement-BVIsszEJ.js"),
134
165
  meta: {
135
166
  sidebarDisplay: "Settlements"
136
167
  }
@@ -139,12 +170,12 @@ const We = [
139
170
  path: "/settlement/:settlementId",
140
171
  name: "mf-payment-settlement-transaction",
141
172
  props: !0,
142
- component: () => import("./SettlementTransactions-CFS-4VBi.js"),
173
+ component: () => import("./SettlementTransactions-CeN4SRWa.js"),
143
174
  meta: {
144
175
  parent: "mf-payment-settlement"
145
176
  }
146
177
  }
147
- ], Gn = xn("mf-payment-iframe", () => {
178
+ ], Zn = Wn("mf-payment-iframe", () => {
148
179
  const n = {
149
180
  isIframe: !1
150
181
  }, e = Lt(() => n);
@@ -156,7 +187,7 @@ const We = [
156
187
  init: t
157
188
  };
158
189
  });
159
- var at = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_1c96846f-c258-4179-b00d-42b81b383c01", 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_1c96846f-c258-4179-b00d-42b81b383c01", 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_heqRrJIs9vqKt810L2Q7XKVo7oi7d53pwYAr", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies_sass: "1.32.12", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_dependencies_jspdf: "^2.5.1", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies_change_case: "^4.1.2", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_package_dependencies__feedmepos_mf_common: "^1.8.21", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "708", 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: "20250302.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.6/x64", JOURNAL_STREAM: "8:5959", 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: "13757315669", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f5826b568bae08e961a8add782f43084701f508b", 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.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6Nzc5MDVkNjktNmNkYS00NjVkLWFkZTItMmZkYzA1NWY3NDYyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMjgxIERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46Nzc5MDVkNjktNmNkYS00NjVkLWFkZTItMmZkYzA1NWY3NDYyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMjgxIiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiNTc5YmFiZDAtN2M1OS00ZTY2LWE2MzUtMzE5MWQyYjQ3MzkxIiwic2lkIjoiNjAyY2EyZTAtYWRkYy00NDJkLTgyMTYtMzkwMmNkOTFiODNlIiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcImY1ODI2YjU2OGJhZTA4ZTk2MWE4YWRkNzgyZjQzMDg0NzAxZjUwOGJcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTM3NTczMTU2NjlcIixcInJ1bl9udW1iZXJcIjpcIjE0MlwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCJmNTgyNmI1NjhiYWUwOGU5NjFhOGFkZDc4MmY0MzA4NDcwMWY1MDhiXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJmNTgyNmI1NjhiYWUwOGU5NjFhOGFkZDc4MmY0MzA4NDcwMWY1MDhiXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI3NzkwNWQ2OS02Y2RhLTQ2NWQtYWRlMi0yZmRjMDU1Zjc0NjIuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDE1ODI3ODQsImV4cCI6MTc0MTYwNTU4NH0.VaD7IQeuntTKTyUwkc4JLA1QHikK4iB12vWrbSB7g5MeyFB00yel1H1Nqnwe-bVbuyUijYb2_2Vr_hFE-phJAbl5td94nqHk0ZNj8FAOfYNciOtLS-BGBwJq6ypnpA-2fTEk1jmIVEebWL66u86a1L7MJGeaUwl0wfSfXO7S0_QKc2WyyjTkOFJf1jHzbb4YZ2ogKRk4lXesfvOmcVlf5GV6iX9GHHKo5xceiz54Tla1V2wswlWVxaCMsxCf2R34L8dFv6F0RvXNSDlRKLpZjprmWEq6Jr3_RH4lj3CDMeU2R1FvkuyCHpffrnO0Gk3HnIpjLW0obZAluH6eL6uGAg", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1741583438978-0.18567478541621996:/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--1741583438816-0.0639242788082055:/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--1741583438656-0.29630086933983923:/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_05898e13-9b2f-423a-b569-4a71d8eb0872", INVOCATION_ID: "659c772d8e224ad78bd15611b65ba57d", 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: "142", 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 255", 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.0.28-beta.2", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:dev"],"original":["deploy:dev"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_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: "f5826b568bae08e961a8add782f43084701f508b", 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_1c96846f-c258-4179-b00d-42b81b383c01", 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/77905d69-6cda-465d-ade2-2fdc055f7462/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_1c96846f-c258-4179-b00d-42b81b383c01", npm_package_dependencies_qrcode_vue: "^3.6.0", npm_package_exports___types: "./dist/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_config_save_prefix: "^", npm_config_ignore_optional: "", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_devDependencies_cd: "^0.3.3", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", INIT_CWD: "/home/runner/work/payment-service/payment-service/mf-portal", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_1c96846f-c258-4179-b00d-42b81b383c01", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.16", 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" };
190
+ var ot = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_d2b46566-cdd2-4da6-a553-5df2367d87be", npm_package_devDependencies_ts_node: "^10.9.1", npm_package_dependencies_zod: "^3.23.8", npm_package_dependencies_dinero_js: "^1.9.1", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies_jest: "^29.6.3", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v22.14.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_d2b46566-cdd2-4da6-a553-5df2367d87be", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_Si6zxALdUInjVjAyY9zrXWiOEC8Atp3tDB54", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies_sass: "1.32.12", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_dependencies_jspdf: "^2.5.1", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies_change_case: "^4.1.2", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.13", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_package_dependencies__feedmepos_mf_common: "^1.8.21", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "710", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.3.9", npm_package_scripts_postinstall: "yarn --cwd .. && yarn --cwd ../package/common && yarn --cwd ../package/entity", npm_config_feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: 'Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.', npm_package_devDependencies_typescript: "~5.4.0", npm_package_devDependencies_tailwindcss: "^3.4.14", npm_package_dependencies_i18next: "^21.8.8", npm_package_dependencies__casl_ability: "^3.2.0", npm_package_scripts_build_only_dev: "yarn build:mf:dev && yarn build:dts && yarn build-types && cp package.json ./dist", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_dependencies_xlsx: "^0.18.5", npm_package_dependencies_google_maps: "^4.3.3", npm_package_scripts_build_only_prod: "yarn build:mf:prod && yarn build:dts && yarn build-types && cp package.json ./dist", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250309.1.0", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", npm_package_scripts_dev: "vite --mode dev", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_scripts_prod: "vite --mode prod", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.7/x64", JOURNAL_STREAM: "8:6624", GITHUB_WORKFLOW: "payment-mf-portal-dev", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", npm_package_module: "./dist/app.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_config_registry: "https://registry.yarnpkg.com", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13918490302", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "c4165d4c72a7ad82b94b35ff46ac6e777165eb43", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_exports___import: "./dist/app.js", npm_config_ignore_scripts: "", GITHUB_WORKFLOW_REF: "feedmepos/payment-service/.github/workflows/payment-mf-portal-dev.yaml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6NTM4M2U5MGUtNDYyMC00YTQyLWFmMTMtYjQwOWIzZjU1MTAyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzI2IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46NTM4M2U5MGUtNDYyMC00YTQyLWFmMTMtYjQwOWIzZjU1MTAyOmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMzI2IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiMzM5MWI0NjItZmVlYS00YWYwLTkwYjktNzY3ODdmZjU5ZWNlIiwic2lkIjoiMjI5YjJlZTYtYTZhMS00MjVlLTgyYTktZWVjMzc5NDkxMTgzIiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcImM0MTY1ZDRjNzJhN2FkODJiOTRiMzVmZjQ2YWM2ZTc3NzE2NWViNDNcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTM5MTg0OTAzMDJcIixcInJ1bl9udW1iZXJcIjpcIjE0NFwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCJjNDE2NWQ0YzcyYTdhZDgyYjk0YjM1ZmY0NmFjNmU3NzcxNjVlYjQzXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJjNDE2NWQ0YzcyYTdhZDgyYjk0YjM1ZmY0NmFjNmU3NzcxNjVlYjQzXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI1MzgzZTkwZS00NjIwLTRhNDItYWYxMy1iNDA5YjNmNTUxMDIuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3NDIyODU0MzcsImV4cCI6MTc0MjMwODIzN30.Fg9aOzjU68ptUSHqLPkyxAWV3UeFRF5kVrFQC0PFogHN9TzZmdp5tQiuj0yvWhjk82VvU5Tq13Sh38y4QENiNrGm0Iw1ZonmOxD43eEieVqGTPNfZdj2BxJliM7WoFepKdARPi7MQ2-pymTMMxSFSeuikygGy_QgP7zNjuca39cKi7BJwjp03kZif91v_vCjAZMFEq96vOG6BiGlQcmn6Uk9HvLL4qSXc1-AAxQf1U-UxxkwXhS3CDYuQFQc0DkvlJsde071KDZq7lEEYyTRJMpXi3WLx96-cff7DA-jVGvxjJ8rIDBahXJS6kFyMZ2jezVm6IAQ7DLlN2pRb1uBAA", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1742286092160-0.3080656005895879:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1742286092001-0.4653794616059381:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1742286091844-0.3528187099226008:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_9871439e-09c6-41dc-b4b1-cef0f24f64ac", INVOCATION_ID: "504e351c509844a7b7b135861919a925", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_devDependencies__types_jsurl: "^0.1.2", npm_package_dependencies_file_saver: "^2.0.5", npm_package_scripts_deploy_dev: "yarn build-only:dev && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_name: "@feedmepos/mf-payment", GITHUB_ACTION: "__run", GITHUB_RUN_NUMBER: "144", GITHUB_TRIGGERING_ACTOR: "Oskang09", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_scripts_deploy_prod: "yarn build-only:prod && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 489", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:dev", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^2.2.3", npm_package_scripts_test: "jest", npm_config_version_git_message: "v%s", GITHUB_REPOSITORY_ID: "690979260", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:mf:dev", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_version: "1.1.0-beta.1", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:dev"],"original":["deploy:dev"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_config__feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_WORKSPACE: "/home/runner/work/payment-service/payment-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "c4165d4c72a7ad82b94b35ff46ac6e777165eb43", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_dependencies_vue_router: "^4.2.5", npm_package_exports___style: "./dist/style.css", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Oskang09", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_strict_ssl: "true", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_firebase: "^10.14.0", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_d2b46566-cdd2-4da6-a553-5df2367d87be", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/payment-service/payment-service/mf-portal", GITHUB_ACTOR_ID: "15674107", RUNNER_WORKSPACE: "/home/runner/work/payment-service", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://pipelinesghubeus11.actions.githubusercontent.com/uhMzCspeMtZD05BczWutTDpLRkQb1I4q0fwG0tss4R7H4Wpw9s/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/5383e90e-4620-4a42-af13-b409b3f55102/jobs/e07742bd-189a-5079-918b-43f8b2f94b89/idtoken?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_d2b46566-cdd2-4da6-a553-5df2367d87be", npm_package_dependencies_qrcode_vue: "^3.6.0", npm_package_exports___types: "./dist/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_config_save_prefix: "^", npm_config_ignore_optional: "", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_devDependencies_cd: "^0.3.3", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", INIT_CWD: "/home/runner/work/payment-service/payment-service/mf-portal", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_d2b46566-cdd2-4da6-a553-5df2367d87be", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.23", NODE_ENV: "production", ENVIRONMENT: "development", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" };
160
191
  /**
161
192
  * @license
162
193
  * Copyright 2017 Google LLC
@@ -173,7 +204,7 @@ var at = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_sta
173
204
  * See the License for the specific language governing permissions and
174
205
  * limitations under the License.
175
206
  */
176
- const jt = function(n) {
207
+ const xt = function(n) {
177
208
  const e = [];
178
209
  let t = 0;
179
210
  for (let r = 0; r < n.length; r++) {
@@ -181,7 +212,7 @@ const jt = function(n) {
181
212
  i < 128 ? e[t++] = i : i < 2048 ? (e[t++] = i >> 6 | 192, e[t++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < n.length && (n.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (n.charCodeAt(++r) & 1023), e[t++] = i >> 18 | 240, e[t++] = i >> 12 & 63 | 128, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128) : (e[t++] = i >> 12 | 224, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128);
182
213
  }
183
214
  return e;
184
- }, zn = function(n) {
215
+ }, $n = function(n) {
185
216
  const e = [];
186
217
  let t = 0, r = 0;
187
218
  for (; t < n.length; ) {
@@ -192,11 +223,11 @@ const jt = function(n) {
192
223
  const s = n[t++];
193
224
  e[r++] = String.fromCharCode((i & 31) << 6 | s & 63);
194
225
  } else if (i > 239 && i < 365) {
195
- const s = n[t++], o = n[t++], a = n[t++], c = ((i & 7) << 18 | (s & 63) << 12 | (o & 63) << 6 | a & 63) - 65536;
196
- e[r++] = String.fromCharCode(55296 + (c >> 10)), e[r++] = String.fromCharCode(56320 + (c & 1023));
226
+ const s = n[t++], a = n[t++], c = n[t++], o = ((i & 7) << 18 | (s & 63) << 12 | (a & 63) << 6 | c & 63) - 65536;
227
+ e[r++] = String.fromCharCode(55296 + (o >> 10)), e[r++] = String.fromCharCode(56320 + (o & 1023));
197
228
  } else {
198
- const s = n[t++], o = n[t++];
199
- e[r++] = String.fromCharCode((i & 15) << 12 | (s & 63) << 6 | o & 63);
229
+ const s = n[t++], a = n[t++];
230
+ e[r++] = String.fromCharCode((i & 15) << 12 | (s & 63) << 6 | a & 63);
200
231
  }
201
232
  }
202
233
  return e.join("");
@@ -259,9 +290,9 @@ const jt = function(n) {
259
290
  this.init_();
260
291
  const t = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
261
292
  for (let i = 0; i < n.length; i += 3) {
262
- const s = n[i], o = i + 1 < n.length, a = o ? n[i + 1] : 0, c = i + 2 < n.length, l = c ? n[i + 2] : 0, u = s >> 2, p = (s & 3) << 4 | a >> 4;
263
- let m = (a & 15) << 2 | l >> 6, v = l & 63;
264
- c || (v = 64, o || (m = 64)), r.push(t[u], t[p], t[m], t[v]);
293
+ const s = n[i], a = i + 1 < n.length, c = a ? n[i + 1] : 0, o = i + 2 < n.length, l = o ? n[i + 2] : 0, u = s >> 2, p = (s & 3) << 4 | c >> 4;
294
+ let m = (c & 15) << 2 | l >> 6, v = l & 63;
295
+ o || (v = 64, a || (m = 64)), r.push(t[u], t[p], t[m], t[v]);
265
296
  }
266
297
  return r.join("");
267
298
  },
@@ -274,7 +305,7 @@ const jt = function(n) {
274
305
  * @return The base64 encoded string.
275
306
  */
276
307
  encodeString(n, e) {
277
- return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(jt(n), e);
308
+ return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(xt(n), e);
278
309
  },
279
310
  /**
280
311
  * Base64-decode a string.
@@ -285,7 +316,7 @@ const jt = function(n) {
285
316
  * @return string representing the decoded value.
286
317
  */
287
318
  decodeString(n, e) {
288
- return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : zn(this.decodeStringToByteArray(n, e));
319
+ return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : $n(this.decodeStringToByteArray(n, e));
289
320
  },
290
321
  /**
291
322
  * Base64-decode a string.
@@ -306,16 +337,16 @@ const jt = function(n) {
306
337
  this.init_();
307
338
  const t = e ? this.charToByteMapWebSafe_ : this.charToByteMap_, r = [];
308
339
  for (let i = 0; i < n.length; ) {
309
- const s = t[n.charAt(i++)], a = i < n.length ? t[n.charAt(i)] : 0;
340
+ const s = t[n.charAt(i++)], c = i < n.length ? t[n.charAt(i)] : 0;
310
341
  ++i;
311
342
  const l = i < n.length ? t[n.charAt(i)] : 64;
312
343
  ++i;
313
344
  const p = i < n.length ? t[n.charAt(i)] : 64;
314
- if (++i, s == null || a == null || l == null || p == null)
315
- throw new $n();
316
- const m = s << 2 | a >> 4;
345
+ if (++i, s == null || c == null || l == null || p == null)
346
+ throw new Jn();
347
+ const m = s << 2 | c >> 4;
317
348
  if (r.push(m), l !== 64) {
318
- const v = a << 4 & 240 | l >> 2;
349
+ const v = c << 4 & 240 | l >> 2;
319
350
  if (r.push(v), p !== 64) {
320
351
  const F = l << 6 & 192 | p;
321
352
  r.push(F);
@@ -337,17 +368,17 @@ const jt = function(n) {
337
368
  }
338
369
  }
339
370
  };
340
- class $n extends Error {
371
+ class Jn extends Error {
341
372
  constructor() {
342
373
  super(...arguments), this.name = "DecodeBase64StringError";
343
374
  }
344
375
  }
345
- const Zn = function(n) {
346
- const e = jt(n);
376
+ const Yn = function(n) {
377
+ const e = xt(n);
347
378
  return Vt.encodeByteArray(e, !0);
348
- }, le = function(n) {
349
- return Zn(n).replace(/\./g, "");
350
- }, xt = function(n) {
379
+ }, de = function(n) {
380
+ return Yn(n).replace(/\./g, "");
381
+ }, Ht = function(n) {
351
382
  try {
352
383
  return Vt.decodeString(n, !0);
353
384
  } catch (e) {
@@ -371,7 +402,7 @@ const Zn = function(n) {
371
402
  * See the License for the specific language governing permissions and
372
403
  * limitations under the License.
373
404
  */
374
- function Jn() {
405
+ function Xn() {
375
406
  if (typeof self < "u")
376
407
  return self;
377
408
  if (typeof window < "u")
@@ -396,13 +427,13 @@ function Jn() {
396
427
  * See the License for the specific language governing permissions and
397
428
  * limitations under the License.
398
429
  */
399
- const Yn = () => Jn().__FIREBASE_DEFAULTS__, Xn = () => {
400
- if (typeof process > "u" || typeof at > "u")
430
+ const Kn = () => Xn().__FIREBASE_DEFAULTS__, qn = () => {
431
+ if (typeof process > "u" || typeof ot > "u")
401
432
  return;
402
- const n = at.__FIREBASE_DEFAULTS__;
433
+ const n = ot.__FIREBASE_DEFAULTS__;
403
434
  if (n)
404
435
  return JSON.parse(n);
405
- }, Kn = () => {
436
+ }, Qn = () => {
406
437
  if (typeof document > "u")
407
438
  return;
408
439
  let n;
@@ -411,20 +442,20 @@ const Yn = () => Jn().__FIREBASE_DEFAULTS__, Xn = () => {
411
442
  } catch {
412
443
  return;
413
444
  }
414
- const e = n && xt(n[1]);
445
+ const e = n && Ht(n[1]);
415
446
  return e && JSON.parse(e);
416
447
  }, ze = () => {
417
448
  try {
418
- return Yn() || Xn() || Kn();
449
+ return Kn() || qn() || Qn();
419
450
  } catch (n) {
420
451
  console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
421
452
  return;
422
453
  }
423
- }, Wt = (n) => {
454
+ }, Gt = (n) => {
424
455
  var e, t;
425
456
  return (t = (e = ze()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
426
- }, No = (n) => {
427
- const e = Wt(n);
457
+ }, Na = (n) => {
458
+ const e = Gt(n);
428
459
  if (!e)
429
460
  return;
430
461
  const t = e.lastIndexOf(":");
@@ -432,7 +463,7 @@ const Yn = () => Jn().__FIREBASE_DEFAULTS__, Xn = () => {
432
463
  throw new Error(`Invalid host ${e} with no separate hostname and port!`);
433
464
  const r = parseInt(e.substring(t + 1), 10);
434
465
  return e[0] === "[" ? [e.substring(1, t - 1), r] : [e.substring(0, t), r];
435
- }, Gt = () => {
466
+ }, Wt = () => {
436
467
  var n;
437
468
  return (n = ze()) === null || n === void 0 ? void 0 : n.config;
438
469
  }, zt = (n) => {
@@ -455,7 +486,7 @@ const Yn = () => Jn().__FIREBASE_DEFAULTS__, Xn = () => {
455
486
  * See the License for the specific language governing permissions and
456
487
  * limitations under the License.
457
488
  */
458
- class qn {
489
+ class er {
459
490
  constructor() {
460
491
  this.reject = () => {
461
492
  }, this.resolve = () => {
@@ -491,7 +522,7 @@ class qn {
491
522
  * See the License for the specific language governing permissions and
492
523
  * limitations under the License.
493
524
  */
494
- function Co(n, e) {
525
+ function Da(n, e) {
495
526
  if (n.uid)
496
527
  throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
497
528
  const t = {
@@ -500,7 +531,7 @@ function Co(n, e) {
500
531
  }, r = e || "demo-project", i = n.iat || 0, s = n.sub || n.user_id;
501
532
  if (!s)
502
533
  throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");
503
- const o = Object.assign({
534
+ const a = Object.assign({
504
535
  // Set all required fields to decent defaults
505
536
  iss: `https://securetoken.google.com/${r}`,
506
537
  aud: r,
@@ -515,8 +546,8 @@ function Co(n, e) {
515
546
  }
516
547
  }, n);
517
548
  return [
518
- le(JSON.stringify(t)),
519
- le(JSON.stringify(o)),
549
+ de(JSON.stringify(t)),
550
+ de(JSON.stringify(a)),
520
551
  ""
521
552
  ].join(".");
522
553
  }
@@ -539,33 +570,33 @@ function Co(n, e) {
539
570
  function f() {
540
571
  return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
541
572
  }
542
- function Qn() {
573
+ function tr() {
543
574
  return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
544
575
  // just to deal with this case would probably be a bad idea.
545
576
  !!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f());
546
577
  }
547
- function er() {
578
+ function nr() {
548
579
  return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
549
580
  }
550
- function tr() {
581
+ function rr() {
551
582
  const n = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
552
583
  return typeof n == "object" && n.id !== void 0;
553
584
  }
554
- function nr() {
585
+ function ir() {
555
586
  return typeof navigator == "object" && navigator.product === "ReactNative";
556
587
  }
557
- function rr() {
588
+ function sr() {
558
589
  const n = f();
559
590
  return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
560
591
  }
561
- function ir() {
592
+ function ar() {
562
593
  try {
563
594
  return typeof indexedDB == "object";
564
595
  } catch {
565
596
  return !1;
566
597
  }
567
598
  }
568
- function sr() {
599
+ function or() {
569
600
  return new Promise((n, e) => {
570
601
  try {
571
602
  let t = !0;
@@ -599,10 +630,10 @@ function sr() {
599
630
  * See the License for the specific language governing permissions and
600
631
  * limitations under the License.
601
632
  */
602
- const or = "FirebaseError";
633
+ const cr = "FirebaseError";
603
634
  class M extends Error {
604
635
  constructor(e, t, r) {
605
- super(t), this.code = e, this.customData = r, this.name = or, Object.setPrototypeOf(this, M.prototype), Error.captureStackTrace && Error.captureStackTrace(this, q.prototype.create);
636
+ super(t), this.code = e, this.customData = r, this.name = cr, Object.setPrototypeOf(this, M.prototype), Error.captureStackTrace && Error.captureStackTrace(this, q.prototype.create);
606
637
  }
607
638
  }
608
639
  class q {
@@ -610,35 +641,35 @@ class q {
610
641
  this.service = e, this.serviceName = t, this.errors = r;
611
642
  }
612
643
  create(e, ...t) {
613
- const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], o = s ? ar(s, r) : "Error", a = `${this.serviceName}: ${o} (${i}).`;
614
- return new M(i, a, r);
644
+ const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? lr(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
645
+ return new M(i, c, r);
615
646
  }
616
647
  }
617
- function ar(n, e) {
618
- return n.replace(cr, (t, r) => {
648
+ function lr(n, e) {
649
+ return n.replace(dr, (t, r) => {
619
650
  const i = e[r];
620
651
  return i != null ? String(i) : `<${r}?>`;
621
652
  });
622
653
  }
623
- const cr = /\{\$([^}]+)}/g;
624
- function lr(n) {
654
+ const dr = /\{\$([^}]+)}/g;
655
+ function ur(n) {
625
656
  for (const e in n)
626
657
  if (Object.prototype.hasOwnProperty.call(n, e))
627
658
  return !1;
628
659
  return !0;
629
660
  }
630
- function de(n, e) {
661
+ function ue(n, e) {
631
662
  if (n === e)
632
663
  return !0;
633
664
  const t = Object.keys(n), r = Object.keys(e);
634
665
  for (const i of t) {
635
666
  if (!r.includes(i))
636
667
  return !1;
637
- const s = n[i], o = e[i];
638
- if (ct(s) && ct(o)) {
639
- if (!de(s, o))
668
+ const s = n[i], a = e[i];
669
+ if (ct(s) && ct(a)) {
670
+ if (!ue(s, a))
640
671
  return !1;
641
- } else if (s !== o)
672
+ } else if (s !== a)
642
673
  return !1;
643
674
  }
644
675
  for (const i of r)
@@ -673,11 +704,11 @@ function Q(n) {
673
704
  }) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
674
705
  return e.length ? "&" + e.join("&") : "";
675
706
  }
676
- function dr(n, e) {
677
- const t = new ur(n, e);
707
+ function hr(n, e) {
708
+ const t = new pr(n, e);
678
709
  return t.subscribe.bind(t);
679
710
  }
680
- class ur {
711
+ class pr {
681
712
  /**
682
713
  * @param executor Function which can make calls to a single Observer
683
714
  * as a proxy.
@@ -715,7 +746,7 @@ class ur {
715
746
  let i;
716
747
  if (e === void 0 && t === void 0 && r === void 0)
717
748
  throw new Error("Missing Observer.");
718
- hr(e, [
749
+ fr(e, [
719
750
  "next",
720
751
  "error",
721
752
  "complete"
@@ -723,7 +754,7 @@ class ur {
723
754
  next: e,
724
755
  error: t,
725
756
  complete: r
726
- }, i.next === void 0 && (i.next = Re), i.error === void 0 && (i.error = Re), i.complete === void 0 && (i.complete = Re);
757
+ }, i.next === void 0 && (i.next = ke), i.error === void 0 && (i.error = ke), i.complete === void 0 && (i.complete = ke);
727
758
  const s = this.unsubscribeOne.bind(this, this.observers.length);
728
759
  return this.finalized && this.task.then(() => {
729
760
  try {
@@ -761,7 +792,7 @@ class ur {
761
792
  }));
762
793
  }
763
794
  }
764
- function hr(n, e) {
795
+ function fr(n, e) {
765
796
  if (typeof n != "object" || n === null)
766
797
  return !1;
767
798
  for (const t of e)
@@ -769,7 +800,7 @@ function hr(n, e) {
769
800
  return !0;
770
801
  return !1;
771
802
  }
772
- function Re() {
803
+ function ke() {
773
804
  }
774
805
  /**
775
806
  * @license
@@ -790,7 +821,7 @@ function Re() {
790
821
  function z(n) {
791
822
  return n && n._delegate ? n._delegate : n;
792
823
  }
793
- class G {
824
+ class W {
794
825
  /**
795
826
  *
796
827
  * @param name The public service name, e.g. app, auth, firestore, database
@@ -846,7 +877,7 @@ const L = "[DEFAULT]";
846
877
  * See the License for the specific language governing permissions and
847
878
  * limitations under the License.
848
879
  */
849
- class pr {
880
+ class mr {
850
881
  constructor(e, t) {
851
882
  this.name = e, this.container = t, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
852
883
  }
@@ -857,7 +888,7 @@ class pr {
857
888
  get(e) {
858
889
  const t = this.normalizeInstanceIdentifier(e);
859
890
  if (!this.instancesDeferred.has(t)) {
860
- const r = new qn();
891
+ const r = new er();
861
892
  if (this.instancesDeferred.set(t, r), this.isInitialized(t) || this.shouldAutoInitialize())
862
893
  try {
863
894
  const i = this.getOrInitializeService({
@@ -897,7 +928,7 @@ class pr {
897
928
  if (this.component)
898
929
  throw Error(`Component for ${this.name} has already been provided`);
899
930
  if (this.component = e, !!this.shouldAutoInitialize()) {
900
- if (mr(e))
931
+ if (gr(e))
901
932
  try {
902
933
  this.getOrInitializeService({ instanceIdentifier: L });
903
934
  } catch {
@@ -945,9 +976,9 @@ class pr {
945
976
  instanceIdentifier: r,
946
977
  options: t
947
978
  });
948
- for (const [s, o] of this.instancesDeferred.entries()) {
949
- const a = this.normalizeInstanceIdentifier(s);
950
- r === a && o.resolve(i);
979
+ for (const [s, a] of this.instancesDeferred.entries()) {
980
+ const c = this.normalizeInstanceIdentifier(s);
981
+ r === c && a.resolve(i);
951
982
  }
952
983
  return i;
953
984
  }
@@ -963,8 +994,8 @@ class pr {
963
994
  var r;
964
995
  const i = this.normalizeInstanceIdentifier(t), s = (r = this.onInitCallbacks.get(i)) !== null && r !== void 0 ? r : /* @__PURE__ */ new Set();
965
996
  s.add(e), this.onInitCallbacks.set(i, s);
966
- const o = this.instances.get(i);
967
- return o && e(o, i), () => {
997
+ const a = this.instances.get(i);
998
+ return a && e(a, i), () => {
968
999
  s.delete(e);
969
1000
  };
970
1001
  }
@@ -984,7 +1015,7 @@ class pr {
984
1015
  getOrInitializeService({ instanceIdentifier: e, options: t = {} }) {
985
1016
  let r = this.instances.get(e);
986
1017
  if (!r && this.component && (r = this.component.instanceFactory(this.container, {
987
- instanceIdentifier: fr(e),
1018
+ instanceIdentifier: _r(e),
988
1019
  options: t
989
1020
  }), this.instances.set(e, r), this.instancesOptions.set(e, t), this.invokeOnInitCallbacks(r, e), this.component.onInstanceCreated))
990
1021
  try {
@@ -1000,10 +1031,10 @@ class pr {
1000
1031
  return !!this.component && this.component.instantiationMode !== "EXPLICIT";
1001
1032
  }
1002
1033
  }
1003
- function fr(n) {
1034
+ function _r(n) {
1004
1035
  return n === L ? void 0 : n;
1005
1036
  }
1006
- function mr(n) {
1037
+ function gr(n) {
1007
1038
  return n.instantiationMode === "EAGER";
1008
1039
  }
1009
1040
  /**
@@ -1022,7 +1053,7 @@ function mr(n) {
1022
1053
  * See the License for the specific language governing permissions and
1023
1054
  * limitations under the License.
1024
1055
  */
1025
- class _r {
1056
+ class vr {
1026
1057
  constructor(e) {
1027
1058
  this.name = e, this.providers = /* @__PURE__ */ new Map();
1028
1059
  }
@@ -1054,7 +1085,7 @@ class _r {
1054
1085
  getProvider(e) {
1055
1086
  if (this.providers.has(e))
1056
1087
  return this.providers.get(e);
1057
- const t = new pr(e, this);
1088
+ const t = new mr(e, this);
1058
1089
  return this.providers.set(e, t), t;
1059
1090
  }
1060
1091
  getProviders() {
@@ -1081,29 +1112,29 @@ var h;
1081
1112
  (function(n) {
1082
1113
  n[n.DEBUG = 0] = "DEBUG", n[n.VERBOSE = 1] = "VERBOSE", n[n.INFO = 2] = "INFO", n[n.WARN = 3] = "WARN", n[n.ERROR = 4] = "ERROR", n[n.SILENT = 5] = "SILENT";
1083
1114
  })(h || (h = {}));
1084
- const gr = {
1115
+ const Ir = {
1085
1116
  debug: h.DEBUG,
1086
1117
  verbose: h.VERBOSE,
1087
1118
  info: h.INFO,
1088
1119
  warn: h.WARN,
1089
1120
  error: h.ERROR,
1090
1121
  silent: h.SILENT
1091
- }, vr = h.INFO, Ir = {
1122
+ }, br = h.INFO, yr = {
1092
1123
  [h.DEBUG]: "log",
1093
1124
  [h.VERBOSE]: "log",
1094
1125
  [h.INFO]: "info",
1095
1126
  [h.WARN]: "warn",
1096
1127
  [h.ERROR]: "error"
1097
- }, br = (n, e, ...t) => {
1128
+ }, Er = (n, e, ...t) => {
1098
1129
  if (e < n.logLevel)
1099
1130
  return;
1100
- const r = (/* @__PURE__ */ new Date()).toISOString(), i = Ir[e];
1131
+ const r = (/* @__PURE__ */ new Date()).toISOString(), i = yr[e];
1101
1132
  if (i)
1102
1133
  console[i](`[${r}] ${n.name}:`, ...t);
1103
1134
  else
1104
1135
  throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
1105
1136
  };
1106
- class $t {
1137
+ class Zt {
1107
1138
  /**
1108
1139
  * Gives you an instance of a Logger to capture messages according to
1109
1140
  * Firebase's logging scheme.
@@ -1111,7 +1142,7 @@ class $t {
1111
1142
  * @param name The name that the logs will be associated with
1112
1143
  */
1113
1144
  constructor(e) {
1114
- this.name = e, this._logLevel = vr, this._logHandler = br, this._userLogHandler = null;
1145
+ this.name = e, this._logLevel = br, this._logHandler = Er, this._userLogHandler = null;
1115
1146
  }
1116
1147
  get logLevel() {
1117
1148
  return this._logLevel;
@@ -1123,7 +1154,7 @@ class $t {
1123
1154
  }
1124
1155
  // Workaround for setter/getter having to be the same type.
1125
1156
  setLogLevel(e) {
1126
- this._logLevel = typeof e == "string" ? gr[e] : e;
1157
+ this._logLevel = typeof e == "string" ? Ir[e] : e;
1127
1158
  }
1128
1159
  get logHandler() {
1129
1160
  return this._logHandler;
@@ -1158,9 +1189,9 @@ class $t {
1158
1189
  this._userLogHandler && this._userLogHandler(this, h.ERROR, ...e), this._logHandler(this, h.ERROR, ...e);
1159
1190
  }
1160
1191
  }
1161
- const yr = (n, e) => e.some((t) => n instanceof t);
1192
+ const Tr = (n, e) => e.some((t) => n instanceof t);
1162
1193
  let lt, dt;
1163
- function Er() {
1194
+ function wr() {
1164
1195
  return lt || (lt = [
1165
1196
  IDBDatabase,
1166
1197
  IDBObjectStore,
@@ -1169,56 +1200,56 @@ function Er() {
1169
1200
  IDBTransaction
1170
1201
  ]);
1171
1202
  }
1172
- function Tr() {
1203
+ function Rr() {
1173
1204
  return dt || (dt = [
1174
1205
  IDBCursor.prototype.advance,
1175
1206
  IDBCursor.prototype.continue,
1176
1207
  IDBCursor.prototype.continuePrimaryKey
1177
1208
  ]);
1178
1209
  }
1179
- const Zt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap();
1180
- function wr(n) {
1210
+ const $t = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap();
1211
+ function kr(n) {
1181
1212
  const e = new Promise((t, r) => {
1182
1213
  const i = () => {
1183
- n.removeEventListener("success", s), n.removeEventListener("error", o);
1214
+ n.removeEventListener("success", s), n.removeEventListener("error", a);
1184
1215
  }, s = () => {
1185
- t(C(n.result)), i();
1186
- }, o = () => {
1216
+ t(N(n.result)), i();
1217
+ }, a = () => {
1187
1218
  r(n.error), i();
1188
1219
  };
1189
- n.addEventListener("success", s), n.addEventListener("error", o);
1220
+ n.addEventListener("success", s), n.addEventListener("error", a);
1190
1221
  });
1191
1222
  return e.then((t) => {
1192
- t instanceof IDBCursor && Zt.set(t, n);
1223
+ t instanceof IDBCursor && $t.set(t, n);
1193
1224
  }).catch(() => {
1194
- }), $e.set(e, n), e;
1225
+ }), Ze.set(e, n), e;
1195
1226
  }
1196
- function Rr(n) {
1197
- if (Me.has(n))
1227
+ function Sr(n) {
1228
+ if (Le.has(n))
1198
1229
  return;
1199
1230
  const e = new Promise((t, r) => {
1200
1231
  const i = () => {
1201
- n.removeEventListener("complete", s), n.removeEventListener("error", o), n.removeEventListener("abort", o);
1232
+ n.removeEventListener("complete", s), n.removeEventListener("error", a), n.removeEventListener("abort", a);
1202
1233
  }, s = () => {
1203
1234
  t(), i();
1204
- }, o = () => {
1235
+ }, a = () => {
1205
1236
  r(n.error || new DOMException("AbortError", "AbortError")), i();
1206
1237
  };
1207
- n.addEventListener("complete", s), n.addEventListener("error", o), n.addEventListener("abort", o);
1238
+ n.addEventListener("complete", s), n.addEventListener("error", a), n.addEventListener("abort", a);
1208
1239
  });
1209
- Me.set(n, e);
1240
+ Le.set(n, e);
1210
1241
  }
1211
- let Le = {
1242
+ let Ue = {
1212
1243
  get(n, e, t) {
1213
1244
  if (n instanceof IDBTransaction) {
1214
1245
  if (e === "done")
1215
- return Me.get(n);
1246
+ return Le.get(n);
1216
1247
  if (e === "objectStoreNames")
1217
1248
  return n.objectStoreNames || Jt.get(n);
1218
1249
  if (e === "store")
1219
1250
  return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
1220
1251
  }
1221
- return C(n[e]);
1252
+ return N(n[e]);
1222
1253
  },
1223
1254
  set(n, e, t) {
1224
1255
  return n[e] = t, !0;
@@ -1227,68 +1258,68 @@ let Le = {
1227
1258
  return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
1228
1259
  }
1229
1260
  };
1230
- function kr(n) {
1231
- Le = n(Le);
1232
- }
1233
1261
  function Ar(n) {
1262
+ Ue = n(Ue);
1263
+ }
1264
+ function Or(n) {
1234
1265
  return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
1235
1266
  const r = n.call(Ae(this), e, ...t);
1236
- return Jt.set(r, e.sort ? e.sort() : [e]), C(r);
1237
- } : Tr().includes(n) ? function(...e) {
1238
- return n.apply(Ae(this), e), C(Zt.get(this));
1267
+ return Jt.set(r, e.sort ? e.sort() : [e]), N(r);
1268
+ } : Rr().includes(n) ? function(...e) {
1269
+ return n.apply(Ae(this), e), N($t.get(this));
1239
1270
  } : function(...e) {
1240
- return C(n.apply(Ae(this), e));
1271
+ return N(n.apply(Ae(this), e));
1241
1272
  };
1242
1273
  }
1243
- function Sr(n) {
1244
- return typeof n == "function" ? Ar(n) : (n instanceof IDBTransaction && Rr(n), yr(n, Er()) ? new Proxy(n, Le) : n);
1274
+ function Cr(n) {
1275
+ return typeof n == "function" ? Or(n) : (n instanceof IDBTransaction && Sr(n), Tr(n, wr()) ? new Proxy(n, Ue) : n);
1245
1276
  }
1246
- function C(n) {
1277
+ function N(n) {
1247
1278
  if (n instanceof IDBRequest)
1248
- return wr(n);
1249
- if (ke.has(n))
1250
- return ke.get(n);
1251
- const e = Sr(n);
1252
- return e !== n && (ke.set(n, e), $e.set(e, n)), e;
1253
- }
1254
- const Ae = (n) => $e.get(n);
1255
- function Or(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
1256
- const o = indexedDB.open(n, e), a = C(o);
1257
- return r && o.addEventListener("upgradeneeded", (c) => {
1258
- r(C(o.result), c.oldVersion, c.newVersion, C(o.transaction), c);
1259
- }), t && o.addEventListener("blocked", (c) => t(
1279
+ return kr(n);
1280
+ if (Se.has(n))
1281
+ return Se.get(n);
1282
+ const e = Cr(n);
1283
+ return e !== n && (Se.set(n, e), Ze.set(e, n)), e;
1284
+ }
1285
+ const Ae = (n) => Ze.get(n);
1286
+ function Nr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
1287
+ const a = indexedDB.open(n, e), c = N(a);
1288
+ return r && a.addEventListener("upgradeneeded", (o) => {
1289
+ r(N(a.result), o.oldVersion, o.newVersion, N(a.transaction), o);
1290
+ }), t && a.addEventListener("blocked", (o) => t(
1260
1291
  // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405
1261
- c.oldVersion,
1262
- c.newVersion,
1263
- c
1264
- )), a.then((c) => {
1265
- s && c.addEventListener("close", () => s()), i && c.addEventListener("versionchange", (l) => i(l.oldVersion, l.newVersion, l));
1292
+ o.oldVersion,
1293
+ o.newVersion,
1294
+ o
1295
+ )), c.then((o) => {
1296
+ s && o.addEventListener("close", () => s()), i && o.addEventListener("versionchange", (l) => i(l.oldVersion, l.newVersion, l));
1266
1297
  }).catch(() => {
1267
- }), a;
1298
+ }), c;
1268
1299
  }
1269
- const Nr = ["get", "getKey", "getAll", "getAllKeys", "count"], Cr = ["put", "add", "delete", "clear"], Se = /* @__PURE__ */ new Map();
1300
+ const Dr = ["get", "getKey", "getAll", "getAllKeys", "count"], Pr = ["put", "add", "delete", "clear"], Oe = /* @__PURE__ */ new Map();
1270
1301
  function ut(n, e) {
1271
1302
  if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
1272
1303
  return;
1273
- if (Se.get(e))
1274
- return Se.get(e);
1275
- const t = e.replace(/FromIndex$/, ""), r = e !== t, i = Cr.includes(t);
1304
+ if (Oe.get(e))
1305
+ return Oe.get(e);
1306
+ const t = e.replace(/FromIndex$/, ""), r = e !== t, i = Pr.includes(t);
1276
1307
  if (
1277
1308
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
1278
- !(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Nr.includes(t))
1309
+ !(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Dr.includes(t))
1279
1310
  )
1280
1311
  return;
1281
- const s = async function(o, ...a) {
1282
- const c = this.transaction(o, i ? "readwrite" : "readonly");
1283
- let l = c.store;
1284
- return r && (l = l.index(a.shift())), (await Promise.all([
1285
- l[t](...a),
1286
- i && c.done
1312
+ const s = async function(a, ...c) {
1313
+ const o = this.transaction(a, i ? "readwrite" : "readonly");
1314
+ let l = o.store;
1315
+ return r && (l = l.index(c.shift())), (await Promise.all([
1316
+ l[t](...c),
1317
+ i && o.done
1287
1318
  ]))[0];
1288
1319
  };
1289
- return Se.set(e, s), s;
1320
+ return Oe.set(e, s), s;
1290
1321
  }
1291
- kr((n) => ({
1322
+ Ar((n) => ({
1292
1323
  ...n,
1293
1324
  get: (e, t, r) => ut(e, t) || n.get(e, t, r),
1294
1325
  has: (e, t) => !!ut(e, t) || n.has(e, t)
@@ -1309,7 +1340,7 @@ kr((n) => ({
1309
1340
  * See the License for the specific language governing permissions and
1310
1341
  * limitations under the License.
1311
1342
  */
1312
- class Dr {
1343
+ class Mr {
1313
1344
  constructor(e) {
1314
1345
  this.container = e;
1315
1346
  }
@@ -1317,7 +1348,7 @@ class Dr {
1317
1348
  // auth token refresh, and installations will send this string.
1318
1349
  getPlatformInfoString() {
1319
1350
  return this.container.getProviders().map((t) => {
1320
- if (Pr(t)) {
1351
+ if (Lr(t)) {
1321
1352
  const r = t.getImmediate();
1322
1353
  return `${r.library}/${r.version}`;
1323
1354
  } else
@@ -1325,11 +1356,11 @@ class Dr {
1325
1356
  }).filter((t) => t).join(" ");
1326
1357
  }
1327
1358
  }
1328
- function Pr(n) {
1359
+ function Lr(n) {
1329
1360
  const e = n.getComponent();
1330
1361
  return (e == null ? void 0 : e.type) === "VERSION";
1331
1362
  }
1332
- const Ue = "@firebase/app", ht = "0.10.13";
1363
+ const Be = "@firebase/app", ht = "0.10.13";
1333
1364
  /**
1334
1365
  * @license
1335
1366
  * Copyright 2019 Google LLC
@@ -1346,7 +1377,7 @@ const Ue = "@firebase/app", ht = "0.10.13";
1346
1377
  * See the License for the specific language governing permissions and
1347
1378
  * limitations under the License.
1348
1379
  */
1349
- const T = new $t("@firebase/app"), Mr = "@firebase/app-compat", Lr = "@firebase/analytics-compat", Ur = "@firebase/analytics", Br = "@firebase/app-check-compat", Fr = "@firebase/app-check", Hr = "@firebase/auth", jr = "@firebase/auth-compat", Vr = "@firebase/database", xr = "@firebase/data-connect", Wr = "@firebase/database-compat", Gr = "@firebase/functions", zr = "@firebase/functions-compat", $r = "@firebase/installations", Zr = "@firebase/installations-compat", Jr = "@firebase/messaging", Yr = "@firebase/messaging-compat", Xr = "@firebase/performance", Kr = "@firebase/performance-compat", qr = "@firebase/remote-config", Qr = "@firebase/remote-config-compat", ei = "@firebase/storage", ti = "@firebase/storage-compat", ni = "@firebase/firestore", ri = "@firebase/vertexai-preview", ii = "@firebase/firestore-compat", si = "firebase", oi = "10.14.1";
1380
+ const T = new Zt("@firebase/app"), Ur = "@firebase/app-compat", Br = "@firebase/analytics-compat", Fr = "@firebase/analytics", jr = "@firebase/app-check-compat", xr = "@firebase/app-check", Vr = "@firebase/auth", Hr = "@firebase/auth-compat", Gr = "@firebase/database", Wr = "@firebase/data-connect", zr = "@firebase/database-compat", Zr = "@firebase/functions", $r = "@firebase/functions-compat", Jr = "@firebase/installations", Yr = "@firebase/installations-compat", Xr = "@firebase/messaging", Kr = "@firebase/messaging-compat", qr = "@firebase/performance", Qr = "@firebase/performance-compat", ei = "@firebase/remote-config", ti = "@firebase/remote-config-compat", ni = "@firebase/storage", ri = "@firebase/storage-compat", ii = "@firebase/firestore", si = "@firebase/vertexai-preview", ai = "@firebase/firestore-compat", oi = "firebase", ci = "10.14.1";
1350
1381
  /**
1351
1382
  * @license
1352
1383
  * Copyright 2019 Google LLC
@@ -1363,35 +1394,35 @@ const T = new $t("@firebase/app"), Mr = "@firebase/app-compat", Lr = "@firebase/
1363
1394
  * See the License for the specific language governing permissions and
1364
1395
  * limitations under the License.
1365
1396
  */
1366
- const Be = "[DEFAULT]", ai = {
1367
- [Ue]: "fire-core",
1368
- [Mr]: "fire-core-compat",
1369
- [Ur]: "fire-analytics",
1370
- [Lr]: "fire-analytics-compat",
1371
- [Fr]: "fire-app-check",
1372
- [Br]: "fire-app-check-compat",
1373
- [Hr]: "fire-auth",
1374
- [jr]: "fire-auth-compat",
1375
- [Vr]: "fire-rtdb",
1376
- [xr]: "fire-data-connect",
1377
- [Wr]: "fire-rtdb-compat",
1378
- [Gr]: "fire-fn",
1379
- [zr]: "fire-fn-compat",
1380
- [$r]: "fire-iid",
1381
- [Zr]: "fire-iid-compat",
1382
- [Jr]: "fire-fcm",
1383
- [Yr]: "fire-fcm-compat",
1384
- [Xr]: "fire-perf",
1385
- [Kr]: "fire-perf-compat",
1386
- [qr]: "fire-rc",
1387
- [Qr]: "fire-rc-compat",
1388
- [ei]: "fire-gcs",
1389
- [ti]: "fire-gcs-compat",
1390
- [ni]: "fire-fst",
1391
- [ii]: "fire-fst-compat",
1392
- [ri]: "fire-vertex",
1397
+ const Fe = "[DEFAULT]", li = {
1398
+ [Be]: "fire-core",
1399
+ [Ur]: "fire-core-compat",
1400
+ [Fr]: "fire-analytics",
1401
+ [Br]: "fire-analytics-compat",
1402
+ [xr]: "fire-app-check",
1403
+ [jr]: "fire-app-check-compat",
1404
+ [Vr]: "fire-auth",
1405
+ [Hr]: "fire-auth-compat",
1406
+ [Gr]: "fire-rtdb",
1407
+ [Wr]: "fire-data-connect",
1408
+ [zr]: "fire-rtdb-compat",
1409
+ [Zr]: "fire-fn",
1410
+ [$r]: "fire-fn-compat",
1411
+ [Jr]: "fire-iid",
1412
+ [Yr]: "fire-iid-compat",
1413
+ [Xr]: "fire-fcm",
1414
+ [Kr]: "fire-fcm-compat",
1415
+ [qr]: "fire-perf",
1416
+ [Qr]: "fire-perf-compat",
1417
+ [ei]: "fire-rc",
1418
+ [ti]: "fire-rc-compat",
1419
+ [ni]: "fire-gcs",
1420
+ [ri]: "fire-gcs-compat",
1421
+ [ii]: "fire-fst",
1422
+ [ai]: "fire-fst-compat",
1423
+ [si]: "fire-vertex",
1393
1424
  "fire-js": "fire-js",
1394
- [si]: "fire-js-all"
1425
+ [oi]: "fire-js-all"
1395
1426
  };
1396
1427
  /**
1397
1428
  * @license
@@ -1409,7 +1440,7 @@ const Be = "[DEFAULT]", ai = {
1409
1440
  * See the License for the specific language governing permissions and
1410
1441
  * limitations under the License.
1411
1442
  */
1412
- const ue = /* @__PURE__ */ new Map(), ci = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Map();
1443
+ const he = /* @__PURE__ */ new Map(), di = /* @__PURE__ */ new Map(), je = /* @__PURE__ */ new Map();
1413
1444
  function pt(n, e) {
1414
1445
  try {
1415
1446
  n.container.addComponent(e);
@@ -1419,12 +1450,12 @@ function pt(n, e) {
1419
1450
  }
1420
1451
  function Y(n) {
1421
1452
  const e = n.name;
1422
- if (Fe.has(e))
1453
+ if (je.has(e))
1423
1454
  return T.debug(`There were multiple attempts to register component ${e}.`), !1;
1424
- Fe.set(e, n);
1425
- for (const t of ue.values())
1455
+ je.set(e, n);
1456
+ for (const t of he.values())
1426
1457
  pt(t, n);
1427
- for (const t of ci.values())
1458
+ for (const t of di.values())
1428
1459
  pt(t, n);
1429
1460
  return !0;
1430
1461
  }
@@ -1451,7 +1482,7 @@ function I(n) {
1451
1482
  * See the License for the specific language governing permissions and
1452
1483
  * limitations under the License.
1453
1484
  */
1454
- const li = {
1485
+ const ui = {
1455
1486
  "no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
1456
1487
  "bad-app-name": "Illegal App name: '{$appName}'",
1457
1488
  "duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
@@ -1466,7 +1497,7 @@ const li = {
1466
1497
  "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
1467
1498
  "finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
1468
1499
  "invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
1469
- }, D = new q("app", "Firebase", li);
1500
+ }, D = new q("app", "Firebase", ui);
1470
1501
  /**
1471
1502
  * @license
1472
1503
  * Copyright 2019 Google LLC
@@ -1483,9 +1514,9 @@ const li = {
1483
1514
  * See the License for the specific language governing permissions and
1484
1515
  * limitations under the License.
1485
1516
  */
1486
- class di {
1517
+ class hi {
1487
1518
  constructor(e, t, r) {
1488
- 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 G(
1519
+ 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(
1489
1520
  "app",
1490
1521
  () => this,
1491
1522
  "PUBLIC"
@@ -1541,53 +1572,53 @@ class di {
1541
1572
  * See the License for the specific language governing permissions and
1542
1573
  * limitations under the License.
1543
1574
  */
1544
- const ee = oi;
1575
+ const ee = ci;
1545
1576
  function Xt(n, e = {}) {
1546
1577
  let t = n;
1547
1578
  typeof e != "object" && (e = { name: e });
1548
- const r = Object.assign({ name: Be, automaticDataCollectionEnabled: !1 }, e), i = r.name;
1579
+ const r = Object.assign({ name: Fe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
1549
1580
  if (typeof i != "string" || !i)
1550
1581
  throw D.create("bad-app-name", {
1551
1582
  appName: String(i)
1552
1583
  });
1553
- if (t || (t = Gt()), !t)
1584
+ if (t || (t = Wt()), !t)
1554
1585
  throw D.create(
1555
1586
  "no-options"
1556
1587
  /* AppError.NO_OPTIONS */
1557
1588
  );
1558
- const s = ue.get(i);
1589
+ const s = he.get(i);
1559
1590
  if (s) {
1560
- if (de(t, s.options) && de(r, s.config))
1591
+ if (ue(t, s.options) && ue(r, s.config))
1561
1592
  return s;
1562
1593
  throw D.create("duplicate-app", { appName: i });
1563
1594
  }
1564
- const o = new _r(i);
1565
- for (const c of Fe.values())
1566
- o.addComponent(c);
1567
- const a = new di(t, r, o);
1568
- return ue.set(i, a), a;
1595
+ const a = new vr(i);
1596
+ for (const o of je.values())
1597
+ a.addComponent(o);
1598
+ const c = new hi(t, r, a);
1599
+ return he.set(i, c), c;
1569
1600
  }
1570
- function ui(n = Be) {
1571
- const e = ue.get(n);
1572
- if (!e && n === Be && Gt())
1601
+ function pi(n = Fe) {
1602
+ const e = he.get(n);
1603
+ if (!e && n === Fe && Wt())
1573
1604
  return Xt();
1574
1605
  if (!e)
1575
1606
  throw D.create("no-app", { appName: n });
1576
1607
  return e;
1577
1608
  }
1578
- function j(n, e, t) {
1609
+ function x(n, e, t) {
1579
1610
  var r;
1580
- let i = (r = ai[n]) !== null && r !== void 0 ? r : n;
1611
+ let i = (r = li[n]) !== null && r !== void 0 ? r : n;
1581
1612
  t && (i += `-${t}`);
1582
- const s = i.match(/\s|\//), o = e.match(/\s|\//);
1583
- if (s || o) {
1584
- const a = [
1613
+ const s = i.match(/\s|\//), a = e.match(/\s|\//);
1614
+ if (s || a) {
1615
+ const c = [
1585
1616
  `Unable to register library "${i}" with version "${e}":`
1586
1617
  ];
1587
- s && a.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && o && a.push("and"), o && a.push(`version name "${e}" contains illegal characters (whitespace or "/")`), T.warn(a.join(" "));
1618
+ 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 "/")`), T.warn(c.join(" "));
1588
1619
  return;
1589
1620
  }
1590
- Y(new G(
1621
+ Y(new W(
1591
1622
  `${i}-version`,
1592
1623
  () => ({ library: i, version: e }),
1593
1624
  "VERSION"
@@ -1610,10 +1641,10 @@ function j(n, e, t) {
1610
1641
  * See the License for the specific language governing permissions and
1611
1642
  * limitations under the License.
1612
1643
  */
1613
- const hi = "firebase-heartbeat-database", pi = 1, X = "firebase-heartbeat-store";
1614
- let Oe = null;
1644
+ const fi = "firebase-heartbeat-database", mi = 1, X = "firebase-heartbeat-store";
1645
+ let Ce = null;
1615
1646
  function Kt() {
1616
- return Oe || (Oe = Or(hi, pi, {
1647
+ return Ce || (Ce = Nr(fi, mi, {
1617
1648
  upgrade: (n, e) => {
1618
1649
  switch (e) {
1619
1650
  case 0:
@@ -1628,9 +1659,9 @@ function Kt() {
1628
1659
  throw D.create("idb-open", {
1629
1660
  originalErrorMessage: n.message
1630
1661
  });
1631
- })), Oe;
1662
+ })), Ce;
1632
1663
  }
1633
- async function fi(n) {
1664
+ async function _i(n) {
1634
1665
  try {
1635
1666
  const t = (await Kt()).transaction(X), r = await t.objectStore(X).get(qt(n));
1636
1667
  return await t.done, r;
@@ -1679,12 +1710,12 @@ function qt(n) {
1679
1710
  * See the License for the specific language governing permissions and
1680
1711
  * limitations under the License.
1681
1712
  */
1682
- const mi = 1024, _i = 30 * 24 * 60 * 60 * 1e3;
1683
- class gi {
1713
+ const gi = 1024, vi = 30 * 24 * 60 * 60 * 1e3;
1714
+ class Ii {
1684
1715
  constructor(e) {
1685
1716
  this.container = e, this._heartbeatsCache = null;
1686
1717
  const t = this.container.getProvider("app").getImmediate();
1687
- this._storage = new Ii(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
1718
+ this._storage = new yi(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
1688
1719
  }
1689
1720
  /**
1690
1721
  * Called to report a heartbeat. The function will generate
@@ -1697,9 +1728,9 @@ class gi {
1697
1728
  var e, t;
1698
1729
  try {
1699
1730
  const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = mt();
1700
- 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((o) => o.date === s) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: s, agent: i }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((o) => {
1701
- const a = new Date(o.date).valueOf();
1702
- return Date.now() - a <= _i;
1731
+ return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((t = this._heartbeatsCache) === null || t === void 0 ? void 0 : t.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === s || this._heartbeatsCache.heartbeats.some((a) => a.date === s) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: s, agent: i }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((a) => {
1732
+ const c = new Date(a.date).valueOf();
1733
+ return Date.now() - c <= vi;
1703
1734
  }), this._storage.overwrite(this._heartbeatsCache));
1704
1735
  } catch (r) {
1705
1736
  T.warn(r);
@@ -1717,7 +1748,7 @@ class gi {
1717
1748
  try {
1718
1749
  if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
1719
1750
  return "";
1720
- const t = mt(), { heartbeatsToSend: r, unsentEntries: i } = vi(this._heartbeatsCache.heartbeats), s = le(JSON.stringify({ version: 2, heartbeats: r }));
1751
+ const t = mt(), { heartbeatsToSend: r, unsentEntries: i } = bi(this._heartbeatsCache.heartbeats), s = de(JSON.stringify({ version: 2, heartbeats: r }));
1721
1752
  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;
1722
1753
  } catch (t) {
1723
1754
  return T.warn(t), "";
@@ -1727,11 +1758,11 @@ class gi {
1727
1758
  function mt() {
1728
1759
  return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
1729
1760
  }
1730
- function vi(n, e = mi) {
1761
+ function bi(n, e = gi) {
1731
1762
  const t = [];
1732
1763
  let r = n.slice();
1733
1764
  for (const i of n) {
1734
- const s = t.find((o) => o.agent === i.agent);
1765
+ const s = t.find((a) => a.agent === i.agent);
1735
1766
  if (s) {
1736
1767
  if (s.dates.push(i.date), _t(t) > e) {
1737
1768
  s.dates.pop();
@@ -1751,19 +1782,19 @@ function vi(n, e = mi) {
1751
1782
  unsentEntries: r
1752
1783
  };
1753
1784
  }
1754
- class Ii {
1785
+ class yi {
1755
1786
  constructor(e) {
1756
1787
  this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
1757
1788
  }
1758
1789
  async runIndexedDBEnvironmentCheck() {
1759
- return ir() ? sr().then(() => !0).catch(() => !1) : !1;
1790
+ return ar() ? or().then(() => !0).catch(() => !1) : !1;
1760
1791
  }
1761
1792
  /**
1762
1793
  * Read all heartbeats.
1763
1794
  */
1764
1795
  async read() {
1765
1796
  if (await this._canUseIndexedDBPromise) {
1766
- const t = await fi(this.app);
1797
+ const t = await _i(this.app);
1767
1798
  return t != null && t.heartbeats ? t : { heartbeats: [] };
1768
1799
  } else
1769
1800
  return { heartbeats: [] };
@@ -1797,7 +1828,7 @@ class Ii {
1797
1828
  }
1798
1829
  }
1799
1830
  function _t(n) {
1800
- return le(
1831
+ return de(
1801
1832
  // heartbeatsCache wrapper properties
1802
1833
  JSON.stringify({ version: 2, heartbeats: n })
1803
1834
  ).length;
@@ -1818,21 +1849,21 @@ function _t(n) {
1818
1849
  * See the License for the specific language governing permissions and
1819
1850
  * limitations under the License.
1820
1851
  */
1821
- function bi(n) {
1822
- Y(new G(
1852
+ function Ei(n) {
1853
+ Y(new W(
1823
1854
  "platform-logger",
1824
- (e) => new Dr(e),
1855
+ (e) => new Mr(e),
1825
1856
  "PRIVATE"
1826
1857
  /* ComponentType.PRIVATE */
1827
- )), Y(new G(
1858
+ )), Y(new W(
1828
1859
  "heartbeat",
1829
- (e) => new gi(e),
1860
+ (e) => new Ii(e),
1830
1861
  "PRIVATE"
1831
1862
  /* ComponentType.PRIVATE */
1832
- )), j(Ue, ht, n), j(Ue, ht, "esm2017"), j("fire-js", "");
1863
+ )), x(Be, ht, n), x(Be, ht, "esm2017"), x("fire-js", "");
1833
1864
  }
1834
- bi("");
1835
- var yi = "firebase", Ei = "10.14.1";
1865
+ Ei("");
1866
+ var Ti = "firebase", wi = "10.14.1";
1836
1867
  /**
1837
1868
  * @license
1838
1869
  * Copyright 2020 Google LLC
@@ -1849,7 +1880,7 @@ var yi = "firebase", Ei = "10.14.1";
1849
1880
  * See the License for the specific language governing permissions and
1850
1881
  * limitations under the License.
1851
1882
  */
1852
- j(yi, Ei, "app");
1883
+ x(Ti, wi, "app");
1853
1884
  var gt = function() {
1854
1885
  return gt = Object.assign || function(e) {
1855
1886
  for (var t, r = 1, i = arguments.length; r < i; r++) {
@@ -1859,7 +1890,7 @@ var gt = function() {
1859
1890
  return e;
1860
1891
  }, gt.apply(this, arguments);
1861
1892
  };
1862
- function Ze(n, e) {
1893
+ function $e(n, e) {
1863
1894
  var t = {};
1864
1895
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
1865
1896
  if (n != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1872,7 +1903,7 @@ function Qt() {
1872
1903
  "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."
1873
1904
  };
1874
1905
  }
1875
- const Ti = Qt, en = new q("auth", "Firebase", Qt());
1906
+ const Ri = Qt, en = new q("auth", "Firebase", Qt());
1876
1907
  /**
1877
1908
  * @license
1878
1909
  * Copyright 2020 Google LLC
@@ -1889,12 +1920,12 @@ const Ti = Qt, en = new q("auth", "Firebase", Qt());
1889
1920
  * See the License for the specific language governing permissions and
1890
1921
  * limitations under the License.
1891
1922
  */
1892
- const he = new $t("@firebase/auth");
1893
- function wi(n, ...e) {
1894
- he.logLevel <= h.WARN && he.warn(`Auth (${ee}): ${n}`, ...e);
1923
+ const pe = new Zt("@firebase/auth");
1924
+ function ki(n, ...e) {
1925
+ pe.logLevel <= h.WARN && pe.warn(`Auth (${ee}): ${n}`, ...e);
1895
1926
  }
1896
1927
  function se(n, ...e) {
1897
- he.logLevel <= h.ERROR && he.error(`Auth (${ee}): ${n}`, ...e);
1928
+ pe.logLevel <= h.ERROR && pe.error(`Auth (${ee}): ${n}`, ...e);
1898
1929
  }
1899
1930
  /**
1900
1931
  * @license
@@ -1919,7 +1950,7 @@ function _(n, ...e) {
1919
1950
  return Je(n, ...e);
1920
1951
  }
1921
1952
  function tn(n, e, t) {
1922
- const r = Object.assign(Object.assign({}, Ti()), { [e]: t });
1953
+ const r = Object.assign(Object.assign({}, Ri()), { [e]: t });
1923
1954
  return new q("auth", "Firebase", r).create(e, {
1924
1955
  appName: n.name
1925
1956
  });
@@ -1961,11 +1992,11 @@ function R(n, e) {
1961
1992
  * See the License for the specific language governing permissions and
1962
1993
  * limitations under the License.
1963
1994
  */
1964
- function He() {
1995
+ function xe() {
1965
1996
  var n;
1966
1997
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
1967
1998
  }
1968
- function Ri() {
1999
+ function Si() {
1969
2000
  return vt() === "http:" || vt() === "https:";
1970
2001
  }
1971
2002
  function vt() {
@@ -1988,15 +2019,15 @@ function vt() {
1988
2019
  * See the License for the specific language governing permissions and
1989
2020
  * limitations under the License.
1990
2021
  */
1991
- function ki() {
2022
+ function Ai() {
1992
2023
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
1993
2024
  // This is especially true for Cordova apps which have unreliable
1994
2025
  // navigator.onLine behavior unless cordova-plugin-network-information is
1995
2026
  // installed which overwrites the native navigator.onLine value and
1996
2027
  // defines navigator.connection.
1997
- (Ri() || tr() || "connection" in navigator) ? navigator.onLine : !0;
2028
+ (Si() || rr() || "connection" in navigator) ? navigator.onLine : !0;
1998
2029
  }
1999
- function Ai() {
2030
+ function Oi() {
2000
2031
  if (typeof navigator > "u")
2001
2032
  return null;
2002
2033
  const n = navigator;
@@ -2026,10 +2057,10 @@ function Ai() {
2026
2057
  */
2027
2058
  class te {
2028
2059
  constructor(e, t) {
2029
- this.shortDelay = e, this.longDelay = t, R(t > e, "Short delay should be less than long delay!"), this.isMobile = Qn() || nr();
2060
+ this.shortDelay = e, this.longDelay = t, R(t > e, "Short delay should be less than long delay!"), this.isMobile = tr() || ir();
2030
2061
  }
2031
2062
  get() {
2032
- return ki() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
2063
+ return Ai() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
2033
2064
  }
2034
2065
  }
2035
2066
  /**
@@ -2123,7 +2154,7 @@ class nn {
2123
2154
  * See the License for the specific language governing permissions and
2124
2155
  * limitations under the License.
2125
2156
  */
2126
- const Si = {
2157
+ const Ci = {
2127
2158
  // Custom token errors.
2128
2159
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
2129
2160
  // This can only happen if the SDK sends a bad request.
@@ -2214,54 +2245,54 @@ const Si = {
2214
2245
  * See the License for the specific language governing permissions and
2215
2246
  * limitations under the License.
2216
2247
  */
2217
- const Oi = new te(3e4, 6e4);
2218
- function ge(n, e) {
2248
+ const Ni = new te(3e4, 6e4);
2249
+ function ve(n, e) {
2219
2250
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
2220
2251
  }
2221
- async function $(n, e, t, r, i = {}) {
2252
+ async function Z(n, e, t, r, i = {}) {
2222
2253
  return rn(n, i, async () => {
2223
- let s = {}, o = {};
2224
- r && (e === "GET" ? o = r : s = {
2254
+ let s = {}, a = {};
2255
+ r && (e === "GET" ? a = r : s = {
2225
2256
  body: JSON.stringify(r)
2226
2257
  });
2227
- const a = Q(Object.assign({ key: n.config.apiKey }, o)).slice(1), c = await n._getAdditionalHeaders();
2228
- c[
2258
+ const c = Q(Object.assign({ key: n.config.apiKey }, a)).slice(1), o = await n._getAdditionalHeaders();
2259
+ o[
2229
2260
  "Content-Type"
2230
2261
  /* HttpHeader.CONTENT_TYPE */
2231
- ] = "application/json", n.languageCode && (c[
2262
+ ] = "application/json", n.languageCode && (o[
2232
2263
  "X-Firebase-Locale"
2233
2264
  /* HttpHeader.X_FIREBASE_LOCALE */
2234
2265
  ] = n.languageCode);
2235
2266
  const l = Object.assign({
2236
2267
  method: e,
2237
- headers: c
2268
+ headers: o
2238
2269
  }, s);
2239
- return er() || (l.referrerPolicy = "no-referrer"), nn.fetch()(on(n, n.config.apiHost, t, a), l);
2270
+ return nr() || (l.referrerPolicy = "no-referrer"), nn.fetch()(an(n, n.config.apiHost, t, c), l);
2240
2271
  });
2241
2272
  }
2242
2273
  async function rn(n, e, t) {
2243
2274
  n._canInitEmulator = !1;
2244
- const r = Object.assign(Object.assign({}, Si), e);
2275
+ const r = Object.assign(Object.assign({}, Ci), e);
2245
2276
  try {
2246
- const i = new Ni(n), s = await Promise.race([
2277
+ const i = new Di(n), s = await Promise.race([
2247
2278
  t(),
2248
2279
  i.promise
2249
2280
  ]);
2250
2281
  i.clearNetworkTimeout();
2251
- const o = await s.json();
2252
- if ("needConfirmation" in o)
2253
- throw ie(n, "account-exists-with-different-credential", o);
2254
- if (s.ok && !("errorMessage" in o))
2255
- return o;
2282
+ const a = await s.json();
2283
+ if ("needConfirmation" in a)
2284
+ throw ie(n, "account-exists-with-different-credential", a);
2285
+ if (s.ok && !("errorMessage" in a))
2286
+ return a;
2256
2287
  {
2257
- const a = s.ok ? o.errorMessage : o.error.message, [c, l] = a.split(" : ");
2258
- if (c === "FEDERATED_USER_ID_ALREADY_LINKED")
2259
- throw ie(n, "credential-already-in-use", o);
2260
- if (c === "EMAIL_EXISTS")
2261
- throw ie(n, "email-already-in-use", o);
2262
- if (c === "USER_DISABLED")
2263
- throw ie(n, "user-disabled", o);
2264
- const u = r[c] || c.toLowerCase().replace(/[_\s]+/g, "-");
2288
+ const c = s.ok ? a.errorMessage : a.error.message, [o, l] = c.split(" : ");
2289
+ if (o === "FEDERATED_USER_ID_ALREADY_LINKED")
2290
+ throw ie(n, "credential-already-in-use", a);
2291
+ if (o === "EMAIL_EXISTS")
2292
+ throw ie(n, "email-already-in-use", a);
2293
+ if (o === "USER_DISABLED")
2294
+ throw ie(n, "user-disabled", a);
2295
+ const u = r[o] || o.toLowerCase().replace(/[_\s]+/g, "-");
2265
2296
  if (l)
2266
2297
  throw tn(n, u, l);
2267
2298
  w(n, u);
@@ -2273,23 +2304,23 @@ async function rn(n, e, t) {
2273
2304
  }
2274
2305
  }
2275
2306
  async function sn(n, e, t, r, i = {}) {
2276
- const s = await $(n, e, t, r, i);
2307
+ const s = await Z(n, e, t, r, i);
2277
2308
  return "mfaPendingCredential" in s && w(n, "multi-factor-auth-required", {
2278
2309
  _serverResponse: s
2279
2310
  }), s;
2280
2311
  }
2281
- function on(n, e, t, r) {
2312
+ function an(n, e, t, r) {
2282
2313
  const i = `${e}${t}?${r}`;
2283
2314
  return n.config.emulator ? Ye(n.config, i) : `${n.config.apiScheme}://${i}`;
2284
2315
  }
2285
- class Ni {
2316
+ class Di {
2286
2317
  constructor(e) {
2287
2318
  this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
2288
2319
  this.timer = setTimeout(() => r(_(
2289
2320
  this.auth,
2290
2321
  "network-request-failed"
2291
2322
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
2292
- )), Oi.get());
2323
+ )), Ni.get());
2293
2324
  });
2294
2325
  }
2295
2326
  clearNetworkTimeout() {
@@ -2320,11 +2351,11 @@ function ie(n, e, t) {
2320
2351
  * See the License for the specific language governing permissions and
2321
2352
  * limitations under the License.
2322
2353
  */
2323
- async function Ci(n, e) {
2324
- return $(n, "POST", "/v1/accounts:delete", e);
2354
+ async function Pi(n, e) {
2355
+ return Z(n, "POST", "/v1/accounts:delete", e);
2325
2356
  }
2326
- async function an(n, e) {
2327
- return $(n, "POST", "/v1/accounts:lookup", e);
2357
+ async function on(n, e) {
2358
+ return Z(n, "POST", "/v1/accounts:lookup", e);
2328
2359
  }
2329
2360
  /**
2330
2361
  * @license
@@ -2351,7 +2382,7 @@ function J(n) {
2351
2382
  } catch {
2352
2383
  }
2353
2384
  }
2354
- async function Di(n, e = !1) {
2385
+ async function Mi(n, e = !1) {
2355
2386
  const t = z(n), r = await t.getIdToken(e), i = Xe(r);
2356
2387
  d(
2357
2388
  i && i.exp && i.auth_time && i.iat,
@@ -2359,14 +2390,14 @@ async function Di(n, e = !1) {
2359
2390
  "internal-error"
2360
2391
  /* AuthErrorCode.INTERNAL_ERROR */
2361
2392
  );
2362
- const s = typeof i.firebase == "object" ? i.firebase : void 0, o = s == null ? void 0 : s.sign_in_provider;
2393
+ const s = typeof i.firebase == "object" ? i.firebase : void 0, a = s == null ? void 0 : s.sign_in_provider;
2363
2394
  return {
2364
2395
  claims: i,
2365
2396
  token: r,
2366
2397
  authTime: J(Ne(i.auth_time)),
2367
2398
  issuedAtTime: J(Ne(i.iat)),
2368
2399
  expirationTime: J(Ne(i.exp)),
2369
- signInProvider: o || null,
2400
+ signInProvider: a || null,
2370
2401
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
2371
2402
  };
2372
2403
  }
@@ -2378,7 +2409,7 @@ function Xe(n) {
2378
2409
  if (e === void 0 || t === void 0 || r === void 0)
2379
2410
  return se("JWT malformed, contained fewer than 3 sections"), null;
2380
2411
  try {
2381
- const i = xt(t);
2412
+ const i = Ht(t);
2382
2413
  return i ? JSON.parse(i) : (se("Failed to decode base64 JWT payload"), null);
2383
2414
  } catch (i) {
2384
2415
  return se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
@@ -2422,10 +2453,10 @@ async function K(n, e, t = !1) {
2422
2453
  try {
2423
2454
  return await e;
2424
2455
  } catch (r) {
2425
- throw r instanceof M && Pi(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2456
+ throw r instanceof M && Li(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2426
2457
  }
2427
2458
  }
2428
- function Pi({ code: n }) {
2459
+ function Li({ code: n }) {
2429
2460
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
2430
2461
  }
2431
2462
  /**
@@ -2444,7 +2475,7 @@ function Pi({ code: n }) {
2444
2475
  * See the License for the specific language governing permissions and
2445
2476
  * limitations under the License.
2446
2477
  */
2447
- class Mi {
2478
+ class Ui {
2448
2479
  constructor(e) {
2449
2480
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
2450
2481
  }
@@ -2506,7 +2537,7 @@ class Mi {
2506
2537
  * See the License for the specific language governing permissions and
2507
2538
  * limitations under the License.
2508
2539
  */
2509
- class je {
2540
+ class Ve {
2510
2541
  constructor(e, t) {
2511
2542
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
2512
2543
  }
@@ -2539,9 +2570,9 @@ class je {
2539
2570
  * See the License for the specific language governing permissions and
2540
2571
  * limitations under the License.
2541
2572
  */
2542
- async function pe(n) {
2573
+ async function fe(n) {
2543
2574
  var e;
2544
- const t = n.auth, r = await n.getIdToken(), i = await K(n, an(t, { idToken: r }));
2575
+ const t = n.auth, r = await n.getIdToken(), i = await K(n, on(t, { idToken: r }));
2545
2576
  d(
2546
2577
  i == null ? void 0 : i.users.length,
2547
2578
  t,
@@ -2550,7 +2581,7 @@ async function pe(n) {
2550
2581
  );
2551
2582
  const s = i.users[0];
2552
2583
  n._notifyReloadListener(s);
2553
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], a = Ui(n.providerData, o), c = n.isAnonymous, l = !(n.email && s.passwordHash) && !(a != null && a.length), u = c ? l : !1, p = {
2584
+ const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], c = Fi(n.providerData, a), o = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), u = o ? l : !1, p = {
2554
2585
  uid: s.localId,
2555
2586
  displayName: s.displayName || null,
2556
2587
  photoURL: s.photoUrl || null,
@@ -2558,22 +2589,22 @@ async function pe(n) {
2558
2589
  emailVerified: s.emailVerified || !1,
2559
2590
  phoneNumber: s.phoneNumber || null,
2560
2591
  tenantId: s.tenantId || null,
2561
- providerData: a,
2562
- metadata: new je(s.createdAt, s.lastLoginAt),
2592
+ providerData: c,
2593
+ metadata: new Ve(s.createdAt, s.lastLoginAt),
2563
2594
  isAnonymous: u
2564
2595
  };
2565
2596
  Object.assign(n, p);
2566
2597
  }
2567
- async function Li(n) {
2598
+ async function Bi(n) {
2568
2599
  const e = z(n);
2569
- await pe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
2600
+ await fe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
2570
2601
  }
2571
- function Ui(n, e) {
2602
+ function Fi(n, e) {
2572
2603
  return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
2573
2604
  }
2574
2605
  function cn(n) {
2575
2606
  return n.map((e) => {
2576
- var { providerId: t } = e, r = Ze(e, ["providerId"]);
2607
+ var { providerId: t } = e, r = $e(e, ["providerId"]);
2577
2608
  return {
2578
2609
  providerId: t,
2579
2610
  uid: r.rawId || "",
@@ -2600,18 +2631,18 @@ function cn(n) {
2600
2631
  * See the License for the specific language governing permissions and
2601
2632
  * limitations under the License.
2602
2633
  */
2603
- async function Bi(n, e) {
2634
+ async function ji(n, e) {
2604
2635
  const t = await rn(n, {}, async () => {
2605
2636
  const r = Q({
2606
2637
  grant_type: "refresh_token",
2607
2638
  refresh_token: e
2608
- }).slice(1), { tokenApiHost: i, apiKey: s } = n.config, o = on(n, i, "/v1/token", `key=${s}`), a = await n._getAdditionalHeaders();
2609
- return a[
2639
+ }).slice(1), { tokenApiHost: i, apiKey: s } = n.config, a = an(n, i, "/v1/token", `key=${s}`), c = await n._getAdditionalHeaders();
2640
+ return c[
2610
2641
  "Content-Type"
2611
2642
  /* HttpHeader.CONTENT_TYPE */
2612
- ] = "application/x-www-form-urlencoded", nn.fetch()(o, {
2643
+ ] = "application/x-www-form-urlencoded", nn.fetch()(a, {
2613
2644
  method: "POST",
2614
- headers: a,
2645
+ headers: c,
2615
2646
  body: r
2616
2647
  });
2617
2648
  });
@@ -2621,8 +2652,8 @@ async function Bi(n, e) {
2621
2652
  refreshToken: t.refresh_token
2622
2653
  };
2623
2654
  }
2624
- async function Fi(n, e) {
2625
- return $(n, "POST", "/v2/accounts:revokeToken", ge(n, e));
2655
+ async function xi(n, e) {
2656
+ return Z(n, "POST", "/v2/accounts:revokeToken", ve(n, e));
2626
2657
  }
2627
2658
  /**
2628
2659
  * @license
@@ -2685,21 +2716,21 @@ class V {
2685
2716
  this.refreshToken = null;
2686
2717
  }
2687
2718
  async refresh(e, t) {
2688
- const { accessToken: r, refreshToken: i, expiresIn: s } = await Bi(e, t);
2719
+ const { accessToken: r, refreshToken: i, expiresIn: s } = await ji(e, t);
2689
2720
  this.updateTokensAndExpiration(r, i, Number(s));
2690
2721
  }
2691
2722
  updateTokensAndExpiration(e, t, r) {
2692
2723
  this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
2693
2724
  }
2694
2725
  static fromJSON(e, t) {
2695
- const { refreshToken: r, accessToken: i, expirationTime: s } = t, o = new V();
2726
+ const { refreshToken: r, accessToken: i, expirationTime: s } = t, a = new V();
2696
2727
  return r && (d(typeof r == "string", "internal-error", {
2697
2728
  appName: e
2698
- }), o.refreshToken = r), i && (d(typeof i == "string", "internal-error", {
2729
+ }), a.refreshToken = r), i && (d(typeof i == "string", "internal-error", {
2699
2730
  appName: e
2700
- }), o.accessToken = i), s && (d(typeof s == "number", "internal-error", {
2731
+ }), a.accessToken = i), s && (d(typeof s == "number", "internal-error", {
2701
2732
  appName: e
2702
- }), o.expirationTime = s), o;
2733
+ }), a.expirationTime = s), a;
2703
2734
  }
2704
2735
  toJSON() {
2705
2736
  return {
@@ -2739,8 +2770,8 @@ function k(n, e) {
2739
2770
  }
2740
2771
  class y {
2741
2772
  constructor(e) {
2742
- var { uid: t, auth: r, stsTokenManager: i } = e, s = Ze(e, ["uid", "auth", "stsTokenManager"]);
2743
- this.providerId = "firebase", this.proactiveRefresh = new Mi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new je(s.createdAt || void 0, s.lastLoginAt || void 0);
2773
+ var { uid: t, auth: r, stsTokenManager: i } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
2774
+ this.providerId = "firebase", this.proactiveRefresh = new Ui(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 Ve(s.createdAt || void 0, s.lastLoginAt || void 0);
2744
2775
  }
2745
2776
  async getIdToken(e) {
2746
2777
  const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
@@ -2752,10 +2783,10 @@ class y {
2752
2783
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
2753
2784
  }
2754
2785
  getIdTokenResult(e) {
2755
- return Di(this, e);
2786
+ return Mi(this, e);
2756
2787
  }
2757
2788
  reload() {
2758
- return Li(this);
2789
+ return Bi(this);
2759
2790
  }
2760
2791
  _assign(e) {
2761
2792
  this !== e && (d(
@@ -2788,13 +2819,13 @@ class y {
2788
2819
  }
2789
2820
  async _updateTokensIfNecessary(e, t = !1) {
2790
2821
  let r = !1;
2791
- e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await pe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
2822
+ 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);
2792
2823
  }
2793
2824
  async delete() {
2794
2825
  if (I(this.auth.app))
2795
2826
  return Promise.reject(P(this.auth));
2796
2827
  const e = await this.getIdToken();
2797
- return await K(this, Ci(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
2828
+ return await K(this, Pi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
2798
2829
  }
2799
2830
  toJSON() {
2800
2831
  return Object.assign(Object.assign({
@@ -2821,17 +2852,17 @@ class y {
2821
2852
  return this.stsTokenManager.refreshToken || "";
2822
2853
  }
2823
2854
  static _fromJSON(e, t) {
2824
- var r, i, s, o, a, c, l, u;
2825
- const p = (r = t.displayName) !== null && r !== void 0 ? r : void 0, m = (i = t.email) !== null && i !== void 0 ? i : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, F = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, tt = (a = t.tenantId) !== null && a !== void 0 ? a : void 0, ye = (c = t._redirectEventId) !== null && c !== void 0 ? c : void 0, nt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, rt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Ee, emailVerified: it, isAnonymous: st, providerData: Te, stsTokenManager: ot } = t;
2855
+ var r, i, s, a, c, o, l, u;
2856
+ const p = (r = t.displayName) !== null && r !== void 0 ? r : void 0, m = (i = t.email) !== null && i !== void 0 ? i : void 0, v = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, F = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, tt = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, Ee = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, nt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, rt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Te, emailVerified: it, isAnonymous: st, providerData: we, stsTokenManager: at } = t;
2826
2857
  d(
2827
- Ee && ot,
2858
+ Te && at,
2828
2859
  e,
2829
2860
  "internal-error"
2830
2861
  /* AuthErrorCode.INTERNAL_ERROR */
2831
2862
  );
2832
- const Pn = V.fromJSON(this.name, ot);
2863
+ const Pn = V.fromJSON(this.name, at);
2833
2864
  d(
2834
- typeof Ee == "string",
2865
+ typeof Te == "string",
2835
2866
  e,
2836
2867
  "internal-error"
2837
2868
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -2845,9 +2876,9 @@ class y {
2845
2876
  e,
2846
2877
  "internal-error"
2847
2878
  /* AuthErrorCode.INTERNAL_ERROR */
2848
- ), k(v, e.name), k(F, e.name), k(tt, e.name), k(ye, e.name), k(nt, e.name), k(rt, e.name);
2849
- const we = new y({
2850
- uid: Ee,
2879
+ ), k(v, e.name), k(F, e.name), k(tt, e.name), k(Ee, e.name), k(nt, e.name), k(rt, e.name);
2880
+ const Re = new y({
2881
+ uid: Te,
2851
2882
  auth: e,
2852
2883
  email: m,
2853
2884
  emailVerified: it,
@@ -2860,7 +2891,7 @@ class y {
2860
2891
  createdAt: nt,
2861
2892
  lastLoginAt: rt
2862
2893
  });
2863
- return Te && Array.isArray(Te) && (we.providerData = Te.map((Mn) => Object.assign({}, Mn))), ye && (we._redirectEventId = ye), we;
2894
+ return we && Array.isArray(we) && (Re.providerData = we.map((Mn) => Object.assign({}, Mn))), Ee && (Re._redirectEventId = Ee), Re;
2864
2895
  }
2865
2896
  /**
2866
2897
  * Initialize a User from an idToken server response
@@ -2876,7 +2907,7 @@ class y {
2876
2907
  stsTokenManager: i,
2877
2908
  isAnonymous: r
2878
2909
  });
2879
- return await pe(s), s;
2910
+ return await fe(s), s;
2880
2911
  }
2881
2912
  /**
2882
2913
  * Initialize a User from an idToken server response
@@ -2890,13 +2921,13 @@ class y {
2890
2921
  "internal-error"
2891
2922
  /* AuthErrorCode.INTERNAL_ERROR */
2892
2923
  );
2893
- const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), a = new V();
2894
- a.updateFromIdToken(r);
2895
- const c = new y({
2924
+ const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], a = !(i.email && i.passwordHash) && !(s != null && s.length), c = new V();
2925
+ c.updateFromIdToken(r);
2926
+ const o = new y({
2896
2927
  uid: i.localId,
2897
2928
  auth: e,
2898
- stsTokenManager: a,
2899
- isAnonymous: o
2929
+ stsTokenManager: c,
2930
+ isAnonymous: a
2900
2931
  }), l = {
2901
2932
  uid: i.localId,
2902
2933
  displayName: i.displayName || null,
@@ -2906,10 +2937,10 @@ class y {
2906
2937
  phoneNumber: i.phoneNumber || null,
2907
2938
  tenantId: i.tenantId || null,
2908
2939
  providerData: s,
2909
- metadata: new je(i.createdAt, i.lastLoginAt),
2940
+ metadata: new Ve(i.createdAt, i.lastLoginAt),
2910
2941
  isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
2911
2942
  };
2912
- return Object.assign(c, l), c;
2943
+ return Object.assign(o, l), o;
2913
2944
  }
2914
2945
  }
2915
2946
  /**
@@ -2990,14 +3021,14 @@ const yt = ln;
2990
3021
  * See the License for the specific language governing permissions and
2991
3022
  * limitations under the License.
2992
3023
  */
2993
- function oe(n, e, t) {
3024
+ function ae(n, e, t) {
2994
3025
  return `firebase:${n}:${e}:${t}`;
2995
3026
  }
2996
- class x {
3027
+ class H {
2997
3028
  constructor(e, t, r) {
2998
3029
  this.persistence = e, this.auth = t, this.userKey = r;
2999
3030
  const { config: i, name: s } = this.auth;
3000
- this.fullUserKey = oe(this.userKey, i.apiKey, s), this.fullPersistenceKey = oe("persistence", i.apiKey, s), this.boundEventHandler = t._onStorageEvent.bind(t), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
3031
+ this.fullUserKey = ae(this.userKey, i.apiKey, s), this.fullPersistenceKey = ae("persistence", i.apiKey, s), this.boundEventHandler = t._onStorageEvent.bind(t), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
3001
3032
  }
3002
3033
  setCurrentUser(e) {
3003
3034
  return this.persistence._set(this.fullUserKey, e.toJSON());
@@ -3024,32 +3055,32 @@ class x {
3024
3055
  }
3025
3056
  static async create(e, t, r = "authUser") {
3026
3057
  if (!t.length)
3027
- return new x(E(yt), e, r);
3058
+ return new H(E(yt), e, r);
3028
3059
  const i = (await Promise.all(t.map(async (l) => {
3029
3060
  if (await l._isAvailable())
3030
3061
  return l;
3031
3062
  }))).filter((l) => l);
3032
3063
  let s = i[0] || E(yt);
3033
- const o = oe(r, e.config.apiKey, e.name);
3034
- let a = null;
3064
+ const a = ae(r, e.config.apiKey, e.name);
3065
+ let c = null;
3035
3066
  for (const l of t)
3036
3067
  try {
3037
- const u = await l._get(o);
3068
+ const u = await l._get(a);
3038
3069
  if (u) {
3039
3070
  const p = y._fromJSON(e, u);
3040
- l !== s && (a = p), s = l;
3071
+ l !== s && (c = p), s = l;
3041
3072
  break;
3042
3073
  }
3043
3074
  } catch {
3044
3075
  }
3045
- const c = i.filter((l) => l._shouldAllowMigration);
3046
- return !s._shouldAllowMigration || !c.length ? new x(s, e, r) : (s = c[0], a && await s._set(o, a.toJSON()), await Promise.all(t.map(async (l) => {
3076
+ const o = i.filter((l) => l._shouldAllowMigration);
3077
+ return !s._shouldAllowMigration || !o.length ? new H(s, e, r) : (s = o[0], c && await s._set(a, c.toJSON()), await Promise.all(t.map(async (l) => {
3047
3078
  if (l !== s)
3048
3079
  try {
3049
- await l._remove(o);
3080
+ await l._remove(a);
3050
3081
  } catch {
3051
3082
  }
3052
- })), new x(s, e, r));
3083
+ })), new H(s, e, r));
3053
3084
  }
3054
3085
  }
3055
3086
  /**
@@ -3124,12 +3155,12 @@ function _n(n = f()) {
3124
3155
  function Ke(n = f()) {
3125
3156
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
3126
3157
  }
3127
- function Hi(n = f()) {
3158
+ function Vi(n = f()) {
3128
3159
  var e;
3129
3160
  return Ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
3130
3161
  }
3131
- function ji() {
3132
- return rr() && document.documentMode === 10;
3162
+ function Hi() {
3163
+ return sr() && document.documentMode === 10;
3133
3164
  }
3134
3165
  function gn(n = f()) {
3135
3166
  return Ke(n) || fn(n) || _n(n) || mn(n) || /windows phone/i.test(n) || pn(n);
@@ -3181,17 +3212,17 @@ function vn(n, e = []) {
3181
3212
  * See the License for the specific language governing permissions and
3182
3213
  * limitations under the License.
3183
3214
  */
3184
- class Vi {
3215
+ class Gi {
3185
3216
  constructor(e) {
3186
3217
  this.auth = e, this.queue = [];
3187
3218
  }
3188
3219
  pushCallback(e, t) {
3189
- const r = (s) => new Promise((o, a) => {
3220
+ const r = (s) => new Promise((a, c) => {
3190
3221
  try {
3191
- const c = e(s);
3192
- o(c);
3193
- } catch (c) {
3194
- a(c);
3222
+ const o = e(s);
3223
+ a(o);
3224
+ } catch (o) {
3225
+ c(o);
3195
3226
  }
3196
3227
  });
3197
3228
  r.onAbort = t, this.queue.push(r);
@@ -3236,8 +3267,8 @@ class Vi {
3236
3267
  * See the License for the specific language governing permissions and
3237
3268
  * limitations under the License.
3238
3269
  */
3239
- async function xi(n, e = {}) {
3240
- return $(n, "GET", "/v2/passwordPolicy", ge(n, e));
3270
+ async function Wi(n, e = {}) {
3271
+ return Z(n, "GET", "/v2/passwordPolicy", ve(n, e));
3241
3272
  }
3242
3273
  /**
3243
3274
  * @license
@@ -3255,20 +3286,20 @@ async function xi(n, e = {}) {
3255
3286
  * See the License for the specific language governing permissions and
3256
3287
  * limitations under the License.
3257
3288
  */
3258
- const Wi = 6;
3259
- class Gi {
3289
+ const zi = 6;
3290
+ class Zi {
3260
3291
  constructor(e) {
3261
3292
  var t, r, i, s;
3262
- const o = e.customStrengthOptions;
3263
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Wi, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (i = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && i !== void 0 ? i : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
3293
+ const a = e.customStrengthOptions;
3294
+ this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t : zi, a.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = a.maxPasswordLength), a.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = a.containsLowercaseCharacter), a.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = a.containsUppercaseCharacter), a.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = a.containsNumericCharacter), a.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = a.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (i = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && i !== void 0 ? i : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
3264
3295
  }
3265
3296
  validatePassword(e) {
3266
- var t, r, i, s, o, a;
3267
- const c = {
3297
+ var t, r, i, s, a, c;
3298
+ const o = {
3268
3299
  isValid: !0,
3269
3300
  passwordPolicy: this
3270
3301
  };
3271
- return this.validatePasswordLengthOptions(e, c), this.validatePasswordCharacterOptions(e, c), c.isValid && (c.isValid = (t = c.meetsMinPasswordLength) !== null && t !== void 0 ? t : !0), c.isValid && (c.isValid = (r = c.meetsMaxPasswordLength) !== null && r !== void 0 ? r : !0), c.isValid && (c.isValid = (i = c.containsLowercaseLetter) !== null && i !== void 0 ? i : !0), c.isValid && (c.isValid = (s = c.containsUppercaseLetter) !== null && s !== void 0 ? s : !0), c.isValid && (c.isValid = (o = c.containsNumericCharacter) !== null && o !== void 0 ? o : !0), c.isValid && (c.isValid = (a = c.containsNonAlphanumericCharacter) !== null && a !== void 0 ? a : !0), c;
3302
+ return this.validatePasswordLengthOptions(e, o), this.validatePasswordCharacterOptions(e, o), o.isValid && (o.isValid = (t = o.meetsMinPasswordLength) !== null && t !== void 0 ? t : !0), o.isValid && (o.isValid = (r = o.meetsMaxPasswordLength) !== null && r !== void 0 ? r : !0), o.isValid && (o.isValid = (i = o.containsLowercaseLetter) !== null && i !== void 0 ? i : !0), o.isValid && (o.isValid = (s = o.containsUppercaseLetter) !== null && s !== void 0 ? s : !0), o.isValid && (o.isValid = (a = o.containsNumericCharacter) !== null && a !== void 0 ? a : !0), o.isValid && (o.isValid = (c = o.containsNonAlphanumericCharacter) !== null && c !== void 0 ? c : !0), o;
3272
3303
  }
3273
3304
  /**
3274
3305
  * Validates that the password meets the length options for the policy.
@@ -3343,14 +3374,14 @@ class Gi {
3343
3374
  * See the License for the specific language governing permissions and
3344
3375
  * limitations under the License.
3345
3376
  */
3346
- class zi {
3377
+ class $i {
3347
3378
  constructor(e, t, r, i) {
3348
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Tt(this), this.idTokenSubscription = new Tt(this), this.beforeStateQueue = new Vi(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;
3379
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Tt(this), this.idTokenSubscription = new Tt(this), this.beforeStateQueue = new Gi(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;
3349
3380
  }
3350
3381
  _initializeWithPersistence(e, t) {
3351
3382
  return t && (this._popupRedirectResolver = E(t)), this._initializationPromise = this.queue(async () => {
3352
3383
  var r, i;
3353
- if (!this._deleted && (this.persistenceManager = await x.create(this, e), !this._deleted)) {
3384
+ if (!this._deleted && (this.persistenceManager = await H.create(this, e), !this._deleted)) {
3354
3385
  if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
3355
3386
  try {
3356
3387
  await this._popupRedirectResolver._initialize(this);
@@ -3381,7 +3412,7 @@ class zi {
3381
3412
  }
3382
3413
  async initializeCurrentUserFromIdToken(e) {
3383
3414
  try {
3384
- const t = await an(this, { idToken: e }), r = await y._fromGetAccountInfoResponse(this, t, e);
3415
+ const t = await on(this, { idToken: e }), r = await y._fromGetAccountInfoResponse(this, t, e);
3385
3416
  await this.directlySetCurrentUser(r);
3386
3417
  } catch (t) {
3387
3418
  console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
@@ -3390,17 +3421,17 @@ class zi {
3390
3421
  async initializeCurrentUser(e) {
3391
3422
  var t;
3392
3423
  if (I(this.app)) {
3393
- const o = this.app.settings.authIdToken;
3394
- return o ? new Promise((a) => {
3395
- setTimeout(() => this.initializeCurrentUserFromIdToken(o).then(a, a));
3424
+ const a = this.app.settings.authIdToken;
3425
+ return a ? new Promise((c) => {
3426
+ setTimeout(() => this.initializeCurrentUserFromIdToken(a).then(c, c));
3396
3427
  }) : this.directlySetCurrentUser(null);
3397
3428
  }
3398
3429
  const r = await this.assertedPersistence.getCurrentUser();
3399
3430
  let i = r, s = !1;
3400
3431
  if (e && this.config.authDomain) {
3401
3432
  await this.getOrInitRedirectPersistenceManager();
3402
- const o = (t = this.redirectUser) === null || t === void 0 ? void 0 : t._redirectEventId, a = i == null ? void 0 : i._redirectEventId, c = await this.tryRedirectSignIn(e);
3403
- (!o || o === a) && (c != null && c.user) && (i = c.user, s = !0);
3433
+ const a = (t = this.redirectUser) === null || t === void 0 ? void 0 : t._redirectEventId, c = i == null ? void 0 : i._redirectEventId, o = await this.tryRedirectSignIn(e);
3434
+ (!a || a === c) && (o != null && o.user) && (i = o.user, s = !0);
3404
3435
  }
3405
3436
  if (!i)
3406
3437
  return this.directlySetCurrentUser(null);
@@ -3408,8 +3439,8 @@ class zi {
3408
3439
  if (s)
3409
3440
  try {
3410
3441
  await this.beforeStateQueue.runMiddleware(i);
3411
- } catch (o) {
3412
- i = r, this._popupRedirectResolver._overrideRedirectResult(this, () => Promise.reject(o));
3442
+ } catch (a) {
3443
+ i = r, this._popupRedirectResolver._overrideRedirectResult(this, () => Promise.reject(a));
3413
3444
  }
3414
3445
  return i ? this.reloadAndSetCurrentUserOrClear(i) : this.directlySetCurrentUser(null);
3415
3446
  }
@@ -3431,7 +3462,7 @@ class zi {
3431
3462
  }
3432
3463
  async reloadAndSetCurrentUserOrClear(e) {
3433
3464
  try {
3434
- await pe(e);
3465
+ await fe(e);
3435
3466
  } catch (t) {
3436
3467
  if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
3437
3468
  return this.directlySetCurrentUser(null);
@@ -3439,7 +3470,7 @@ class zi {
3439
3470
  return this.directlySetCurrentUser(e);
3440
3471
  }
3441
3472
  useDeviceLanguage() {
3442
- this.languageCode = Ai();
3473
+ this.languageCode = Oi();
3443
3474
  }
3444
3475
  async _delete() {
3445
3476
  this._deleted = !0;
@@ -3490,7 +3521,7 @@ class zi {
3490
3521
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
3491
3522
  }
3492
3523
  async _updatePasswordPolicy() {
3493
- const e = await xi(this), t = new Gi(e);
3524
+ const e = await Wi(this), t = new Zi(e);
3494
3525
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
3495
3526
  }
3496
3527
  _getPersistence() {
@@ -3530,7 +3561,7 @@ class zi {
3530
3561
  token: e,
3531
3562
  idToken: t
3532
3563
  };
3533
- this.tenantId != null && (r.tenantId = this.tenantId), await Fi(this, r);
3564
+ this.tenantId != null && (r.tenantId = this.tenantId), await xi(this, r);
3534
3565
  }
3535
3566
  }
3536
3567
  toJSON() {
@@ -3554,7 +3585,7 @@ class zi {
3554
3585
  this,
3555
3586
  "argument-error"
3556
3587
  /* AuthErrorCode.ARGUMENT_ERROR */
3557
- ), this.redirectPersistenceManager = await x.create(
3588
+ ), this.redirectPersistenceManager = await H.create(
3558
3589
  this,
3559
3590
  [E(t._redirectPersistence)],
3560
3591
  "redirectUser"
@@ -3602,24 +3633,24 @@ class zi {
3602
3633
  return () => {
3603
3634
  };
3604
3635
  const s = typeof t == "function" ? t : t.next.bind(t);
3605
- let o = !1;
3606
- const a = this._isInitialized ? Promise.resolve() : this._initializationPromise;
3636
+ let a = !1;
3637
+ const c = this._isInitialized ? Promise.resolve() : this._initializationPromise;
3607
3638
  if (d(
3608
- a,
3639
+ c,
3609
3640
  this,
3610
3641
  "internal-error"
3611
3642
  /* AuthErrorCode.INTERNAL_ERROR */
3612
- ), a.then(() => {
3613
- o || s(this.currentUser);
3643
+ ), c.then(() => {
3644
+ a || s(this.currentUser);
3614
3645
  }), typeof t == "function") {
3615
- const c = e.addObserver(t, r, i);
3646
+ const o = e.addObserver(t, r, i);
3616
3647
  return () => {
3617
- o = !0, c();
3648
+ a = !0, o();
3618
3649
  };
3619
3650
  } else {
3620
- const c = e.addObserver(t);
3651
+ const o = e.addObserver(t);
3621
3652
  return () => {
3622
- o = !0, c();
3653
+ a = !0, o();
3623
3654
  };
3624
3655
  }
3625
3656
  }
@@ -3673,15 +3704,15 @@ class zi {
3673
3704
  async _getAppCheckToken() {
3674
3705
  var e;
3675
3706
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
3676
- return t != null && t.error && wi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
3707
+ return t != null && t.error && ki(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
3677
3708
  }
3678
3709
  }
3679
- function ve(n) {
3710
+ function Ie(n) {
3680
3711
  return z(n);
3681
3712
  }
3682
3713
  class Tt {
3683
3714
  constructor(e) {
3684
- this.auth = e, this.observer = null, this.addObserver = dr((t) => this.observer = t);
3715
+ this.auth = e, this.observer = null, this.addObserver = hr((t) => this.observer = t);
3685
3716
  }
3686
3717
  get next() {
3687
3718
  return d(
@@ -3716,16 +3747,16 @@ let qe = {
3716
3747
  recaptchaEnterpriseScript: "",
3717
3748
  gapiScript: ""
3718
3749
  };
3719
- function $i(n) {
3750
+ function Ji(n) {
3720
3751
  qe = n;
3721
3752
  }
3722
- function Zi(n) {
3753
+ function Yi(n) {
3723
3754
  return qe.loadJS(n);
3724
3755
  }
3725
- function Ji() {
3756
+ function Xi() {
3726
3757
  return qe.gapiScript;
3727
3758
  }
3728
- function Yi(n) {
3759
+ function Ki(n) {
3729
3760
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
3730
3761
  }
3731
3762
  /**
@@ -3744,11 +3775,11 @@ function Yi(n) {
3744
3775
  * See the License for the specific language governing permissions and
3745
3776
  * limitations under the License.
3746
3777
  */
3747
- function Xi(n, e) {
3778
+ function qi(n, e) {
3748
3779
  const t = Yt(n, "auth");
3749
3780
  if (t.isInitialized()) {
3750
3781
  const i = t.getImmediate(), s = t.getOptions();
3751
- if (de(s, e ?? {}))
3782
+ if (ue(s, e ?? {}))
3752
3783
  return i;
3753
3784
  w(
3754
3785
  i,
@@ -3758,12 +3789,12 @@ function Xi(n, e) {
3758
3789
  }
3759
3790
  return t.initialize({ options: e });
3760
3791
  }
3761
- function Ki(n, e) {
3792
+ function Qi(n, e) {
3762
3793
  const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(E);
3763
3794
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
3764
3795
  }
3765
- function qi(n, e, t) {
3766
- const r = ve(n);
3796
+ function es(n, e, t) {
3797
+ const r = Ie(n);
3767
3798
  d(
3768
3799
  r._canInitEmulator,
3769
3800
  r,
@@ -3775,19 +3806,19 @@ function qi(n, e, t) {
3775
3806
  "invalid-emulator-scheme"
3776
3807
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
3777
3808
  );
3778
- const i = !1, s = In(e), { host: o, port: a } = Qi(e), c = a === null ? "" : `:${a}`;
3779
- r.config.emulator = { url: `${s}//${o}${c}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
3780
- host: o,
3781
- port: a,
3809
+ const i = !1, s = In(e), { host: a, port: c } = ts(e), o = c === null ? "" : `:${c}`;
3810
+ r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
3811
+ host: a,
3812
+ port: c,
3782
3813
  protocol: s.replace(":", ""),
3783
3814
  options: Object.freeze({ disableWarnings: i })
3784
- }), es();
3815
+ }), ns();
3785
3816
  }
3786
3817
  function In(n) {
3787
3818
  const e = n.indexOf(":");
3788
3819
  return e < 0 ? "" : n.substr(0, e + 1);
3789
3820
  }
3790
- function Qi(n) {
3821
+ function ts(n) {
3791
3822
  const e = In(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
3792
3823
  if (!t)
3793
3824
  return { host: "", port: null };
@@ -3796,8 +3827,8 @@ function Qi(n) {
3796
3827
  const s = i[1];
3797
3828
  return { host: s, port: wt(r.substr(s.length + 1)) };
3798
3829
  } else {
3799
- const [s, o] = r.split(":");
3800
- return { host: s, port: wt(o) };
3830
+ const [s, a] = r.split(":");
3831
+ return { host: s, port: wt(a) };
3801
3832
  }
3802
3833
  }
3803
3834
  function wt(n) {
@@ -3806,7 +3837,7 @@ function wt(n) {
3806
3837
  const e = Number(n);
3807
3838
  return isNaN(e) ? null : e;
3808
3839
  }
3809
- function es() {
3840
+ function ns() {
3810
3841
  function n() {
3811
3842
  const e = document.createElement("p"), t = e.style;
3812
3843
  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);
@@ -3871,8 +3902,8 @@ class bn {
3871
3902
  * See the License for the specific language governing permissions and
3872
3903
  * limitations under the License.
3873
3904
  */
3874
- async function W(n, e) {
3875
- return sn(n, "POST", "/v1/accounts:signInWithIdp", ge(n, e));
3905
+ async function G(n, e) {
3906
+ return sn(n, "POST", "/v1/accounts:signInWithIdp", ve(n, e));
3876
3907
  }
3877
3908
  /**
3878
3909
  * @license
@@ -3890,7 +3921,7 @@ async function W(n, e) {
3890
3921
  * See the License for the specific language governing permissions and
3891
3922
  * limitations under the License.
3892
3923
  */
3893
- const ts = "http://localhost";
3924
+ const rs = "http://localhost";
3894
3925
  class U extends bn {
3895
3926
  constructor() {
3896
3927
  super(...arguments), this.pendingToken = null;
@@ -3925,30 +3956,30 @@ class U extends bn {
3925
3956
  * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
3926
3957
  */
3927
3958
  static fromJSON(e) {
3928
- const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = Ze(t, ["providerId", "signInMethod"]);
3959
+ const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = $e(t, ["providerId", "signInMethod"]);
3929
3960
  if (!r || !i)
3930
3961
  return null;
3931
- const o = new U(r, i);
3932
- return o.idToken = s.idToken || void 0, o.accessToken = s.accessToken || void 0, o.secret = s.secret, o.nonce = s.nonce, o.pendingToken = s.pendingToken || null, o;
3962
+ const a = new U(r, i);
3963
+ return a.idToken = s.idToken || void 0, a.accessToken = s.accessToken || void 0, a.secret = s.secret, a.nonce = s.nonce, a.pendingToken = s.pendingToken || null, a;
3933
3964
  }
3934
3965
  /** @internal */
3935
3966
  _getIdTokenResponse(e) {
3936
3967
  const t = this.buildRequest();
3937
- return W(e, t);
3968
+ return G(e, t);
3938
3969
  }
3939
3970
  /** @internal */
3940
3971
  _linkToIdToken(e, t) {
3941
3972
  const r = this.buildRequest();
3942
- return r.idToken = t, W(e, r);
3973
+ return r.idToken = t, G(e, r);
3943
3974
  }
3944
3975
  /** @internal */
3945
3976
  _getReauthenticationResolver(e) {
3946
3977
  const t = this.buildRequest();
3947
- return t.autoCreate = !1, W(e, t);
3978
+ return t.autoCreate = !1, G(e, t);
3948
3979
  }
3949
3980
  buildRequest() {
3950
3981
  const e = {
3951
- requestUri: ts,
3982
+ requestUri: rs,
3952
3983
  returnSecureToken: !0
3953
3984
  };
3954
3985
  if (this.pendingToken)
@@ -4064,7 +4095,7 @@ class ne extends yn {
4064
4095
  * See the License for the specific language governing permissions and
4065
4096
  * limitations under the License.
4066
4097
  */
4067
- class A extends ne {
4098
+ class S extends ne {
4068
4099
  constructor() {
4069
4100
  super(
4070
4101
  "facebook.com"
@@ -4085,8 +4116,8 @@ class A extends ne {
4085
4116
  */
4086
4117
  static credential(e) {
4087
4118
  return U._fromParams({
4088
- providerId: A.PROVIDER_ID,
4089
- signInMethod: A.FACEBOOK_SIGN_IN_METHOD,
4119
+ providerId: S.PROVIDER_ID,
4120
+ signInMethod: S.FACEBOOK_SIGN_IN_METHOD,
4090
4121
  accessToken: e
4091
4122
  });
4092
4123
  }
@@ -4096,7 +4127,7 @@ class A extends ne {
4096
4127
  * @param userCredential - The user credential.
4097
4128
  */
4098
4129
  static credentialFromResult(e) {
4099
- return A.credentialFromTaggedObject(e);
4130
+ return S.credentialFromTaggedObject(e);
4100
4131
  }
4101
4132
  /**
4102
4133
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4105,20 +4136,20 @@ class A extends ne {
4105
4136
  * @param userCredential - The user credential.
4106
4137
  */
4107
4138
  static credentialFromError(e) {
4108
- return A.credentialFromTaggedObject(e.customData || {});
4139
+ return S.credentialFromTaggedObject(e.customData || {});
4109
4140
  }
4110
4141
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4111
4142
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
4112
4143
  return null;
4113
4144
  try {
4114
- return A.credential(e.oauthAccessToken);
4145
+ return S.credential(e.oauthAccessToken);
4115
4146
  } catch {
4116
4147
  return null;
4117
4148
  }
4118
4149
  }
4119
4150
  }
4120
- A.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
4121
- A.PROVIDER_ID = "facebook.com";
4151
+ S.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
4152
+ S.PROVIDER_ID = "facebook.com";
4122
4153
  /**
4123
4154
  * @license
4124
4155
  * Copyright 2020 Google LLC
@@ -4135,7 +4166,7 @@ A.PROVIDER_ID = "facebook.com";
4135
4166
  * See the License for the specific language governing permissions and
4136
4167
  * limitations under the License.
4137
4168
  */
4138
- class S extends ne {
4169
+ class A extends ne {
4139
4170
  constructor() {
4140
4171
  super(
4141
4172
  "google.com"
@@ -4157,8 +4188,8 @@ class S extends ne {
4157
4188
  */
4158
4189
  static credential(e, t) {
4159
4190
  return U._fromParams({
4160
- providerId: S.PROVIDER_ID,
4161
- signInMethod: S.GOOGLE_SIGN_IN_METHOD,
4191
+ providerId: A.PROVIDER_ID,
4192
+ signInMethod: A.GOOGLE_SIGN_IN_METHOD,
4162
4193
  idToken: e,
4163
4194
  accessToken: t
4164
4195
  });
@@ -4169,7 +4200,7 @@ class S extends ne {
4169
4200
  * @param userCredential - The user credential.
4170
4201
  */
4171
4202
  static credentialFromResult(e) {
4172
- return S.credentialFromTaggedObject(e);
4203
+ return A.credentialFromTaggedObject(e);
4173
4204
  }
4174
4205
  /**
4175
4206
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4178,7 +4209,7 @@ class S extends ne {
4178
4209
  * @param userCredential - The user credential.
4179
4210
  */
4180
4211
  static credentialFromError(e) {
4181
- return S.credentialFromTaggedObject(e.customData || {});
4212
+ return A.credentialFromTaggedObject(e.customData || {});
4182
4213
  }
4183
4214
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4184
4215
  if (!e)
@@ -4187,14 +4218,14 @@ class S extends ne {
4187
4218
  if (!t && !r)
4188
4219
  return null;
4189
4220
  try {
4190
- return S.credential(t, r);
4221
+ return A.credential(t, r);
4191
4222
  } catch {
4192
4223
  return null;
4193
4224
  }
4194
4225
  }
4195
4226
  }
4196
- S.GOOGLE_SIGN_IN_METHOD = "google.com";
4197
- S.PROVIDER_ID = "google.com";
4227
+ A.GOOGLE_SIGN_IN_METHOD = "google.com";
4228
+ A.PROVIDER_ID = "google.com";
4198
4229
  /**
4199
4230
  * @license
4200
4231
  * Copyright 2020 Google LLC
@@ -4275,7 +4306,7 @@ O.PROVIDER_ID = "github.com";
4275
4306
  * See the License for the specific language governing permissions and
4276
4307
  * limitations under the License.
4277
4308
  */
4278
- class N extends ne {
4309
+ class C extends ne {
4279
4310
  constructor() {
4280
4311
  super(
4281
4312
  "twitter.com"
@@ -4290,8 +4321,8 @@ class N extends ne {
4290
4321
  */
4291
4322
  static credential(e, t) {
4292
4323
  return U._fromParams({
4293
- providerId: N.PROVIDER_ID,
4294
- signInMethod: N.TWITTER_SIGN_IN_METHOD,
4324
+ providerId: C.PROVIDER_ID,
4325
+ signInMethod: C.TWITTER_SIGN_IN_METHOD,
4295
4326
  oauthToken: e,
4296
4327
  oauthTokenSecret: t
4297
4328
  });
@@ -4302,7 +4333,7 @@ class N extends ne {
4302
4333
  * @param userCredential - The user credential.
4303
4334
  */
4304
4335
  static credentialFromResult(e) {
4305
- return N.credentialFromTaggedObject(e);
4336
+ return C.credentialFromTaggedObject(e);
4306
4337
  }
4307
4338
  /**
4308
4339
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4311,7 +4342,7 @@ class N extends ne {
4311
4342
  * @param userCredential - The user credential.
4312
4343
  */
4313
4344
  static credentialFromError(e) {
4314
- return N.credentialFromTaggedObject(e.customData || {});
4345
+ return C.credentialFromTaggedObject(e.customData || {});
4315
4346
  }
4316
4347
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4317
4348
  if (!e)
@@ -4320,14 +4351,14 @@ class N extends ne {
4320
4351
  if (!t || !r)
4321
4352
  return null;
4322
4353
  try {
4323
- return N.credential(t, r);
4354
+ return C.credential(t, r);
4324
4355
  } catch {
4325
4356
  return null;
4326
4357
  }
4327
4358
  }
4328
4359
  }
4329
- N.TWITTER_SIGN_IN_METHOD = "twitter.com";
4330
- N.PROVIDER_ID = "twitter.com";
4360
+ C.TWITTER_SIGN_IN_METHOD = "twitter.com";
4361
+ C.PROVIDER_ID = "twitter.com";
4331
4362
  /**
4332
4363
  * @license
4333
4364
  * Copyright 2020 Google LLC
@@ -4349,10 +4380,10 @@ class B {
4349
4380
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
4350
4381
  }
4351
4382
  static async _fromIdTokenResponse(e, t, r, i = !1) {
4352
- const s = await y._fromIdTokenResponse(e, r, i), o = Rt(r);
4383
+ const s = await y._fromIdTokenResponse(e, r, i), a = Rt(r);
4353
4384
  return new B({
4354
4385
  user: s,
4355
- providerId: o,
4386
+ providerId: a,
4356
4387
  _tokenResponse: r,
4357
4388
  operationType: t
4358
4389
  });
@@ -4391,10 +4422,10 @@ function Rt(n) {
4391
4422
  * See the License for the specific language governing permissions and
4392
4423
  * limitations under the License.
4393
4424
  */
4394
- class fe extends M {
4425
+ class me extends M {
4395
4426
  constructor(e, t, r, i) {
4396
4427
  var s;
4397
- super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, fe.prototype), this.customData = {
4428
+ super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, me.prototype), this.customData = {
4398
4429
  appName: e.name,
4399
4430
  tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
4400
4431
  _serverResponse: t.customData._serverResponse,
@@ -4402,15 +4433,15 @@ class fe extends M {
4402
4433
  };
4403
4434
  }
4404
4435
  static _fromErrorAndOperation(e, t, r, i) {
4405
- return new fe(e, t, r, i);
4436
+ return new me(e, t, r, i);
4406
4437
  }
4407
4438
  }
4408
4439
  function En(n, e, t, r) {
4409
4440
  return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
4410
- throw s.code === "auth/multi-factor-auth-required" ? fe._fromErrorAndOperation(n, s, e, r) : s;
4441
+ throw s.code === "auth/multi-factor-auth-required" ? me._fromErrorAndOperation(n, s, e, r) : s;
4411
4442
  });
4412
4443
  }
4413
- async function ns(n, e, t = !1) {
4444
+ async function is(n, e, t = !1) {
4414
4445
  const r = await K(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
4415
4446
  return B._forOperation(n, "link", r);
4416
4447
  }
@@ -4430,7 +4461,7 @@ async function ns(n, e, t = !1) {
4430
4461
  * See the License for the specific language governing permissions and
4431
4462
  * limitations under the License.
4432
4463
  */
4433
- async function rs(n, e, t = !1) {
4464
+ async function ss(n, e, t = !1) {
4434
4465
  const { auth: r } = n;
4435
4466
  if (I(r.app))
4436
4467
  return Promise.reject(P(r));
@@ -4443,16 +4474,16 @@ async function rs(n, e, t = !1) {
4443
4474
  "internal-error"
4444
4475
  /* AuthErrorCode.INTERNAL_ERROR */
4445
4476
  );
4446
- const o = Xe(s.idToken);
4477
+ const a = Xe(s.idToken);
4447
4478
  d(
4448
- o,
4479
+ a,
4449
4480
  r,
4450
4481
  "internal-error"
4451
4482
  /* AuthErrorCode.INTERNAL_ERROR */
4452
4483
  );
4453
- const { sub: a } = o;
4484
+ const { sub: c } = a;
4454
4485
  return d(
4455
- n.uid === a,
4486
+ n.uid === c,
4456
4487
  r,
4457
4488
  "user-mismatch"
4458
4489
  /* AuthErrorCode.USER_MISMATCH */
@@ -4481,7 +4512,7 @@ async function rs(n, e, t = !1) {
4481
4512
  * See the License for the specific language governing permissions and
4482
4513
  * limitations under the License.
4483
4514
  */
4484
- async function is(n, e, t = !1) {
4515
+ async function as(n, e, t = !1) {
4485
4516
  if (I(n.app))
4486
4517
  return Promise.reject(P(n));
4487
4518
  const r = "signIn", i = await En(n, r, e), s = await B._fromIdTokenResponse(n, r, i);
@@ -4503,8 +4534,8 @@ async function is(n, e, t = !1) {
4503
4534
  * See the License for the specific language governing permissions and
4504
4535
  * limitations under the License.
4505
4536
  */
4506
- async function ss(n, e) {
4507
- return sn(n, "POST", "/v1/accounts:signInWithCustomToken", ge(n, e));
4537
+ async function os(n, e) {
4538
+ return sn(n, "POST", "/v1/accounts:signInWithCustomToken", ve(n, e));
4508
4539
  }
4509
4540
  /**
4510
4541
  * @license
@@ -4522,22 +4553,22 @@ async function ss(n, e) {
4522
4553
  * See the License for the specific language governing permissions and
4523
4554
  * limitations under the License.
4524
4555
  */
4525
- async function os(n, e) {
4556
+ async function cs(n, e) {
4526
4557
  if (I(n.app))
4527
4558
  return Promise.reject(P(n));
4528
- const t = ve(n), r = await ss(t, {
4559
+ const t = Ie(n), r = await os(t, {
4529
4560
  token: e,
4530
4561
  returnSecureToken: !0
4531
4562
  }), i = await B._fromIdTokenResponse(t, "signIn", r);
4532
4563
  return await t._updateCurrentUser(i.user), i;
4533
4564
  }
4534
- function as(n, e, t, r) {
4565
+ function ls(n, e, t, r) {
4535
4566
  return z(n).onIdTokenChanged(e, t, r);
4536
4567
  }
4537
- function cs(n, e, t) {
4568
+ function ds(n, e, t) {
4538
4569
  return z(n).beforeAuthStateChanged(e, t);
4539
4570
  }
4540
- const me = "__sak";
4571
+ const _e = "__sak";
4541
4572
  /**
4542
4573
  * @license
4543
4574
  * Copyright 2019 Google LLC
@@ -4560,7 +4591,7 @@ class Tn {
4560
4591
  }
4561
4592
  _isAvailable() {
4562
4593
  try {
4563
- return this.storage ? (this.storage.setItem(me, "1"), this.storage.removeItem(me), Promise.resolve(!0)) : Promise.resolve(!1);
4594
+ return this.storage ? (this.storage.setItem(_e, "1"), this.storage.removeItem(_e), Promise.resolve(!0)) : Promise.resolve(!1);
4564
4595
  } catch {
4565
4596
  return Promise.resolve(!1);
4566
4597
  }
@@ -4595,7 +4626,7 @@ class Tn {
4595
4626
  * See the License for the specific language governing permissions and
4596
4627
  * limitations under the License.
4597
4628
  */
4598
- const ls = 1e3, ds = 10;
4629
+ const us = 1e3, hs = 10;
4599
4630
  class wn extends Tn {
4600
4631
  constructor() {
4601
4632
  super(
@@ -4612,18 +4643,18 @@ class wn extends Tn {
4612
4643
  }
4613
4644
  onStorageEvent(e, t = !1) {
4614
4645
  if (!e.key) {
4615
- this.forAllChangedKeys((o, a, c) => {
4616
- this.notifyListeners(o, c);
4646
+ this.forAllChangedKeys((a, c, o) => {
4647
+ this.notifyListeners(a, o);
4617
4648
  });
4618
4649
  return;
4619
4650
  }
4620
4651
  const r = e.key;
4621
4652
  t ? this.detachListener() : this.stopPolling();
4622
4653
  const i = () => {
4623
- const o = this.storage.getItem(r);
4624
- !t && this.localCache[r] === o || this.notifyListeners(r, o);
4654
+ const a = this.storage.getItem(r);
4655
+ !t && this.localCache[r] === a || this.notifyListeners(r, a);
4625
4656
  }, s = this.storage.getItem(r);
4626
- ji() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, ds) : i();
4657
+ Hi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, hs) : i();
4627
4658
  }
4628
4659
  notifyListeners(e, t) {
4629
4660
  this.localCache[e] = t;
@@ -4645,7 +4676,7 @@ class wn extends Tn {
4645
4676
  !0
4646
4677
  );
4647
4678
  });
4648
- }, ls);
4679
+ }, us);
4649
4680
  }
4650
4681
  stopPolling() {
4651
4682
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -4675,7 +4706,7 @@ class wn extends Tn {
4675
4706
  }
4676
4707
  }
4677
4708
  wn.type = "LOCAL";
4678
- const us = wn;
4709
+ const ps = wn;
4679
4710
  /**
4680
4711
  * @license
4681
4712
  * Copyright 2020 Google LLC
@@ -4723,7 +4754,7 @@ const kn = Rn;
4723
4754
  * See the License for the specific language governing permissions and
4724
4755
  * limitations under the License.
4725
4756
  */
4726
- function hs(n) {
4757
+ function fs(n) {
4727
4758
  return Promise.all(n.map(async (e) => {
4728
4759
  try {
4729
4760
  return {
@@ -4754,7 +4785,7 @@ function hs(n) {
4754
4785
  * See the License for the specific language governing permissions and
4755
4786
  * limitations under the License.
4756
4787
  */
4757
- class Ie {
4788
+ class be {
4758
4789
  constructor(e) {
4759
4790
  this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
4760
4791
  }
@@ -4768,7 +4799,7 @@ class Ie {
4768
4799
  const t = this.receivers.find((i) => i.isListeningto(e));
4769
4800
  if (t)
4770
4801
  return t;
4771
- const r = new Ie(e);
4802
+ const r = new be(e);
4772
4803
  return this.receivers.push(r), r;
4773
4804
  }
4774
4805
  isListeningto(e) {
@@ -4785,20 +4816,20 @@ class Ie {
4785
4816
  *
4786
4817
  */
4787
4818
  async handleEvent(e) {
4788
- const t = e, { eventId: r, eventType: i, data: s } = t.data, o = this.handlersMap[i];
4789
- if (!(o != null && o.size))
4819
+ const t = e, { eventId: r, eventType: i, data: s } = t.data, a = this.handlersMap[i];
4820
+ if (!(a != null && a.size))
4790
4821
  return;
4791
4822
  t.ports[0].postMessage({
4792
4823
  status: "ack",
4793
4824
  eventId: r,
4794
4825
  eventType: i
4795
4826
  });
4796
- const a = Array.from(o).map(async (l) => l(t.origin, s)), c = await hs(a);
4827
+ const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await fs(c);
4797
4828
  t.ports[0].postMessage({
4798
4829
  status: "done",
4799
4830
  eventId: r,
4800
4831
  eventType: i,
4801
- response: c
4832
+ response: o
4802
4833
  });
4803
4834
  }
4804
4835
  /**
@@ -4822,7 +4853,7 @@ class Ie {
4822
4853
  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);
4823
4854
  }
4824
4855
  }
4825
- Ie.receivers = [];
4856
+ be.receivers = [];
4826
4857
  /**
4827
4858
  * @license
4828
4859
  * Copyright 2020 Google LLC
@@ -4861,7 +4892,7 @@ function Qe(n = "", e = 10) {
4861
4892
  * See the License for the specific language governing permissions and
4862
4893
  * limitations under the License.
4863
4894
  */
4864
- class ps {
4895
+ class ms {
4865
4896
  constructor(e) {
4866
4897
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
4867
4898
  }
@@ -4893,17 +4924,17 @@ class ps {
4893
4924
  "connection_unavailable"
4894
4925
  /* _MessageError.CONNECTION_UNAVAILABLE */
4895
4926
  );
4896
- let s, o;
4897
- return new Promise((a, c) => {
4927
+ let s, a;
4928
+ return new Promise((c, o) => {
4898
4929
  const l = Qe("", 20);
4899
4930
  i.port1.start();
4900
4931
  const u = setTimeout(() => {
4901
- c(new Error(
4932
+ o(new Error(
4902
4933
  "unsupported_event"
4903
4934
  /* _MessageError.UNSUPPORTED_EVENT */
4904
4935
  ));
4905
4936
  }, r);
4906
- o = {
4937
+ a = {
4907
4938
  messageChannel: i,
4908
4939
  onMessage(p) {
4909
4940
  const m = p;
@@ -4912,7 +4943,7 @@ class ps {
4912
4943
  case "ack":
4913
4944
  clearTimeout(u), s = setTimeout(
4914
4945
  () => {
4915
- c(new Error(
4946
+ o(new Error(
4916
4947
  "timeout"
4917
4948
  /* _MessageError.TIMEOUT */
4918
4949
  ));
@@ -4922,23 +4953,23 @@ class ps {
4922
4953
  );
4923
4954
  break;
4924
4955
  case "done":
4925
- clearTimeout(s), a(m.data.response);
4956
+ clearTimeout(s), c(m.data.response);
4926
4957
  break;
4927
4958
  default:
4928
- clearTimeout(u), clearTimeout(s), c(new Error(
4959
+ clearTimeout(u), clearTimeout(s), o(new Error(
4929
4960
  "invalid_response"
4930
4961
  /* _MessageError.INVALID_RESPONSE */
4931
4962
  ));
4932
4963
  break;
4933
4964
  }
4934
4965
  }
4935
- }, this.handlers.add(o), i.port1.addEventListener("message", o.onMessage), this.target.postMessage({
4966
+ }, this.handlers.add(a), i.port1.addEventListener("message", a.onMessage), this.target.postMessage({
4936
4967
  eventType: e,
4937
4968
  eventId: l,
4938
4969
  data: t
4939
4970
  }, [i.port2]);
4940
4971
  }).finally(() => {
4941
- o && this.removeMessageHandler(o);
4972
+ a && this.removeMessageHandler(a);
4942
4973
  });
4943
4974
  }
4944
4975
  }
@@ -4961,7 +4992,7 @@ class ps {
4961
4992
  function g() {
4962
4993
  return window;
4963
4994
  }
4964
- function fs(n) {
4995
+ function _s(n) {
4965
4996
  g().location.href = n;
4966
4997
  }
4967
4998
  /**
@@ -4980,10 +5011,10 @@ function fs(n) {
4980
5011
  * See the License for the specific language governing permissions and
4981
5012
  * limitations under the License.
4982
5013
  */
4983
- function An() {
5014
+ function Sn() {
4984
5015
  return typeof g().WorkerGlobalScope < "u" && typeof g().importScripts == "function";
4985
5016
  }
4986
- async function ms() {
5017
+ async function gs() {
4987
5018
  if (!(navigator != null && navigator.serviceWorker))
4988
5019
  return null;
4989
5020
  try {
@@ -4992,12 +5023,12 @@ async function ms() {
4992
5023
  return null;
4993
5024
  }
4994
5025
  }
4995
- function _s() {
5026
+ function vs() {
4996
5027
  var n;
4997
5028
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
4998
5029
  }
4999
- function gs() {
5000
- return An() ? self : null;
5030
+ function Is() {
5031
+ return Sn() ? self : null;
5001
5032
  }
5002
5033
  /**
5003
5034
  * @license
@@ -5015,7 +5046,7 @@ function gs() {
5015
5046
  * See the License for the specific language governing permissions and
5016
5047
  * limitations under the License.
5017
5048
  */
5018
- const Sn = "firebaseLocalStorageDb", vs = 1, _e = "firebaseLocalStorage", On = "fbase_key";
5049
+ const An = "firebaseLocalStorageDb", bs = 1, ge = "firebaseLocalStorage", On = "fbase_key";
5019
5050
  class re {
5020
5051
  constructor(e) {
5021
5052
  this.request = e;
@@ -5030,55 +5061,55 @@ class re {
5030
5061
  });
5031
5062
  }
5032
5063
  }
5033
- function be(n, e) {
5034
- return n.transaction([_e], e ? "readwrite" : "readonly").objectStore(_e);
5064
+ function ye(n, e) {
5065
+ return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
5035
5066
  }
5036
- function Is() {
5037
- const n = indexedDB.deleteDatabase(Sn);
5067
+ function ys() {
5068
+ const n = indexedDB.deleteDatabase(An);
5038
5069
  return new re(n).toPromise();
5039
5070
  }
5040
- function Ve() {
5041
- const n = indexedDB.open(Sn, vs);
5071
+ function He() {
5072
+ const n = indexedDB.open(An, bs);
5042
5073
  return new Promise((e, t) => {
5043
5074
  n.addEventListener("error", () => {
5044
5075
  t(n.error);
5045
5076
  }), n.addEventListener("upgradeneeded", () => {
5046
5077
  const r = n.result;
5047
5078
  try {
5048
- r.createObjectStore(_e, { keyPath: On });
5079
+ r.createObjectStore(ge, { keyPath: On });
5049
5080
  } catch (i) {
5050
5081
  t(i);
5051
5082
  }
5052
5083
  }), n.addEventListener("success", async () => {
5053
5084
  const r = n.result;
5054
- r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await Is(), e(await Ve()));
5085
+ r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await ys(), e(await He()));
5055
5086
  });
5056
5087
  });
5057
5088
  }
5058
5089
  async function kt(n, e, t) {
5059
- const r = be(n, !0).put({
5090
+ const r = ye(n, !0).put({
5060
5091
  [On]: e,
5061
5092
  value: t
5062
5093
  });
5063
5094
  return new re(r).toPromise();
5064
5095
  }
5065
- async function bs(n, e) {
5066
- const t = be(n, !1).get(e), r = await new re(t).toPromise();
5096
+ async function Es(n, e) {
5097
+ const t = ye(n, !1).get(e), r = await new re(t).toPromise();
5067
5098
  return r === void 0 ? null : r.value;
5068
5099
  }
5069
- function At(n, e) {
5070
- const t = be(n, !0).delete(e);
5100
+ function St(n, e) {
5101
+ const t = ye(n, !0).delete(e);
5071
5102
  return new re(t).toPromise();
5072
5103
  }
5073
- const ys = 800, Es = 3;
5074
- class Nn {
5104
+ const Ts = 800, ws = 3;
5105
+ class Cn {
5075
5106
  constructor() {
5076
5107
  this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
5077
5108
  }, () => {
5078
5109
  });
5079
5110
  }
5080
5111
  async _openDb() {
5081
- return this.db ? this.db : (this.db = await Ve(), this.db);
5112
+ return this.db ? this.db : (this.db = await He(), this.db);
5082
5113
  }
5083
5114
  async _withRetries(e) {
5084
5115
  let t = 0;
@@ -5087,7 +5118,7 @@ class Nn {
5087
5118
  const r = await this._openDb();
5088
5119
  return await e(r);
5089
5120
  } catch (r) {
5090
- if (t++ > Es)
5121
+ if (t++ > ws)
5091
5122
  throw r;
5092
5123
  this.db && (this.db.close(), this.db = void 0);
5093
5124
  }
@@ -5097,13 +5128,13 @@ class Nn {
5097
5128
  * postMessage interface to send these events to the worker ourselves.
5098
5129
  */
5099
5130
  async initializeServiceWorkerMessaging() {
5100
- return An() ? this.initializeReceiver() : this.initializeSender();
5131
+ return Sn() ? this.initializeReceiver() : this.initializeSender();
5101
5132
  }
5102
5133
  /**
5103
5134
  * As the worker we should listen to events from the main window.
5104
5135
  */
5105
5136
  async initializeReceiver() {
5106
- this.receiver = Ie._getInstance(gs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
5137
+ this.receiver = be._getInstance(Is()), this.receiver._subscribe("keyChanged", async (e, t) => ({
5107
5138
  keyProcessed: (await this._poll()).includes(t.key)
5108
5139
  })), this.receiver._subscribe("ping", async (e, t) => [
5109
5140
  "keyChanged"
@@ -5119,9 +5150,9 @@ class Nn {
5119
5150
  */
5120
5151
  async initializeSender() {
5121
5152
  var e, t;
5122
- if (this.activeServiceWorker = await ms(), !this.activeServiceWorker)
5153
+ if (this.activeServiceWorker = await gs(), !this.activeServiceWorker)
5123
5154
  return;
5124
- this.sender = new ps(this.activeServiceWorker);
5155
+ this.sender = new ms(this.activeServiceWorker);
5125
5156
  const r = await this.sender._send(
5126
5157
  "ping",
5127
5158
  {},
@@ -5143,7 +5174,7 @@ class Nn {
5143
5174
  * @param key - Storage key which changed.
5144
5175
  */
5145
5176
  async notifyServiceWorker(e) {
5146
- if (!(!this.sender || !this.activeServiceWorker || _s() !== this.activeServiceWorker))
5177
+ if (!(!this.sender || !this.activeServiceWorker || vs() !== this.activeServiceWorker))
5147
5178
  try {
5148
5179
  await this.sender._send(
5149
5180
  "keyChanged",
@@ -5159,8 +5190,8 @@ class Nn {
5159
5190
  try {
5160
5191
  if (!indexedDB)
5161
5192
  return !1;
5162
- const e = await Ve();
5163
- return await kt(e, me, "1"), await At(e, me), !0;
5193
+ const e = await He();
5194
+ return await kt(e, _e, "1"), await St(e, _e), !0;
5164
5195
  } catch {
5165
5196
  }
5166
5197
  return !1;
@@ -5177,15 +5208,15 @@ class Nn {
5177
5208
  return this._withPendingWrite(async () => (await this._withRetries((r) => kt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
5178
5209
  }
5179
5210
  async _get(e) {
5180
- const t = await this._withRetries((r) => bs(r, e));
5211
+ const t = await this._withRetries((r) => Es(r, e));
5181
5212
  return this.localCache[e] = t, t;
5182
5213
  }
5183
5214
  async _remove(e) {
5184
- return this._withPendingWrite(async () => (await this._withRetries((t) => At(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
5215
+ return this._withPendingWrite(async () => (await this._withRetries((t) => St(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
5185
5216
  }
5186
5217
  async _poll() {
5187
5218
  const e = await this._withRetries((i) => {
5188
- const s = be(i, !1).getAll();
5219
+ const s = ye(i, !1).getAll();
5189
5220
  return new re(s).toPromise();
5190
5221
  });
5191
5222
  if (!e)
@@ -5208,7 +5239,7 @@ class Nn {
5208
5239
  i(t);
5209
5240
  }
5210
5241
  startPolling() {
5211
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), ys);
5242
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Ts);
5212
5243
  }
5213
5244
  stopPolling() {
5214
5245
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -5220,8 +5251,8 @@ class Nn {
5220
5251
  this.listeners[e] && (this.listeners[e].delete(t), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
5221
5252
  }
5222
5253
  }
5223
- Nn.type = "LOCAL";
5224
- const Ts = Nn;
5254
+ Cn.type = "LOCAL";
5255
+ const Rs = Cn;
5225
5256
  new te(3e4, 6e4);
5226
5257
  /**
5227
5258
  * @license
@@ -5239,7 +5270,7 @@ new te(3e4, 6e4);
5239
5270
  * See the License for the specific language governing permissions and
5240
5271
  * limitations under the License.
5241
5272
  */
5242
- function ws(n, e) {
5273
+ function ks(n, e) {
5243
5274
  return e ? E(e) : (d(
5244
5275
  n._popupRedirectResolver,
5245
5276
  n,
@@ -5272,13 +5303,13 @@ class et extends bn {
5272
5303
  ), this.params = e;
5273
5304
  }
5274
5305
  _getIdTokenResponse(e) {
5275
- return W(e, this._buildIdpRequest());
5306
+ return G(e, this._buildIdpRequest());
5276
5307
  }
5277
5308
  _linkToIdToken(e, t) {
5278
- return W(e, this._buildIdpRequest(t));
5309
+ return G(e, this._buildIdpRequest(t));
5279
5310
  }
5280
5311
  _getReauthenticationResolver(e) {
5281
- return W(e, this._buildIdpRequest());
5312
+ return G(e, this._buildIdpRequest());
5282
5313
  }
5283
5314
  _buildIdpRequest(e) {
5284
5315
  const t = {
@@ -5293,26 +5324,26 @@ class et extends bn {
5293
5324
  return e && (t.idToken = e), t;
5294
5325
  }
5295
5326
  }
5296
- function Rs(n) {
5297
- return is(n.auth, new et(n), n.bypassAuthState);
5327
+ function Ss(n) {
5328
+ return as(n.auth, new et(n), n.bypassAuthState);
5298
5329
  }
5299
- function ks(n) {
5330
+ function As(n) {
5300
5331
  const { auth: e, user: t } = n;
5301
5332
  return d(
5302
5333
  t,
5303
5334
  e,
5304
5335
  "internal-error"
5305
5336
  /* AuthErrorCode.INTERNAL_ERROR */
5306
- ), rs(t, new et(n), n.bypassAuthState);
5337
+ ), ss(t, new et(n), n.bypassAuthState);
5307
5338
  }
5308
- async function As(n) {
5339
+ async function Os(n) {
5309
5340
  const { auth: e, user: t } = n;
5310
5341
  return d(
5311
5342
  t,
5312
5343
  e,
5313
5344
  "internal-error"
5314
5345
  /* AuthErrorCode.INTERNAL_ERROR */
5315
- ), ns(t, new et(n), n.bypassAuthState);
5346
+ ), is(t, new et(n), n.bypassAuthState);
5316
5347
  }
5317
5348
  /**
5318
5349
  * @license
@@ -5330,7 +5361,7 @@ async function As(n) {
5330
5361
  * See the License for the specific language governing permissions and
5331
5362
  * limitations under the License.
5332
5363
  */
5333
- class Cn {
5364
+ class Nn {
5334
5365
  constructor(e, t, r, i, s = !1) {
5335
5366
  this.auth = e, this.resolver = r, this.user = i, this.bypassAuthState = s, this.pendingPromise = null, this.eventManager = null, this.filter = Array.isArray(t) ? t : [t];
5336
5367
  }
@@ -5345,12 +5376,12 @@ class Cn {
5345
5376
  });
5346
5377
  }
5347
5378
  async onAuthEvent(e) {
5348
- const { urlResponse: t, sessionId: r, postBody: i, tenantId: s, error: o, type: a } = e;
5349
- if (o) {
5350
- this.reject(o);
5379
+ const { urlResponse: t, sessionId: r, postBody: i, tenantId: s, error: a, type: c } = e;
5380
+ if (a) {
5381
+ this.reject(a);
5351
5382
  return;
5352
5383
  }
5353
- const c = {
5384
+ const o = {
5354
5385
  auth: this.auth,
5355
5386
  requestUri: t,
5356
5387
  sessionId: r,
@@ -5360,7 +5391,7 @@ class Cn {
5360
5391
  bypassAuthState: this.bypassAuthState
5361
5392
  };
5362
5393
  try {
5363
- this.resolve(await this.getIdpTask(a)(c));
5394
+ this.resolve(await this.getIdpTask(c)(o));
5364
5395
  } catch (l) {
5365
5396
  this.reject(l);
5366
5397
  }
@@ -5372,13 +5403,13 @@ class Cn {
5372
5403
  switch (e) {
5373
5404
  case "signInViaPopup":
5374
5405
  case "signInViaRedirect":
5375
- return Rs;
5406
+ return Ss;
5376
5407
  case "linkViaPopup":
5377
5408
  case "linkViaRedirect":
5378
- return As;
5409
+ return Os;
5379
5410
  case "reauthViaPopup":
5380
5411
  case "reauthViaRedirect":
5381
- return ks;
5412
+ return As;
5382
5413
  default:
5383
5414
  w(
5384
5415
  this.auth,
@@ -5413,10 +5444,10 @@ class Cn {
5413
5444
  * See the License for the specific language governing permissions and
5414
5445
  * limitations under the License.
5415
5446
  */
5416
- const Ss = new te(2e3, 1e4);
5417
- class H extends Cn {
5447
+ const Cs = new te(2e3, 1e4);
5448
+ class j extends Nn {
5418
5449
  constructor(e, t, r, i, s) {
5419
- super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, H.currentPopupAction && H.currentPopupAction.cancel(), H.currentPopupAction = this;
5450
+ super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, j.currentPopupAction && j.currentPopupAction.cancel(), j.currentPopupAction = this;
5420
5451
  }
5421
5452
  async executeNotNull() {
5422
5453
  const e = await this.execute();
@@ -5458,7 +5489,7 @@ class H extends Cn {
5458
5489
  ));
5459
5490
  }
5460
5491
  cleanUp() {
5461
- this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, H.currentPopupAction = null;
5492
+ this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, j.currentPopupAction = null;
5462
5493
  }
5463
5494
  pollUserCancellation() {
5464
5495
  const e = () => {
@@ -5477,12 +5508,12 @@ class H extends Cn {
5477
5508
  );
5478
5509
  return;
5479
5510
  }
5480
- this.pollId = window.setTimeout(e, Ss.get());
5511
+ this.pollId = window.setTimeout(e, Cs.get());
5481
5512
  };
5482
5513
  e();
5483
5514
  }
5484
5515
  }
5485
- H.currentPopupAction = null;
5516
+ j.currentPopupAction = null;
5486
5517
  /**
5487
5518
  * @license
5488
5519
  * Copyright 2020 Google LLC
@@ -5499,8 +5530,8 @@ H.currentPopupAction = null;
5499
5530
  * See the License for the specific language governing permissions and
5500
5531
  * limitations under the License.
5501
5532
  */
5502
- const Os = "pendingRedirect", ae = /* @__PURE__ */ new Map();
5503
- class Ns extends Cn {
5533
+ const Ns = "pendingRedirect", oe = /* @__PURE__ */ new Map();
5534
+ class Ds extends Nn {
5504
5535
  constructor(e, t, r = !1) {
5505
5536
  super(e, [
5506
5537
  "signInViaRedirect",
@@ -5515,17 +5546,17 @@ class Ns extends Cn {
5515
5546
  * just return it.
5516
5547
  */
5517
5548
  async execute() {
5518
- let e = ae.get(this.auth._key());
5549
+ let e = oe.get(this.auth._key());
5519
5550
  if (!e) {
5520
5551
  try {
5521
- const r = await Cs(this.resolver, this.auth) ? await super.execute() : null;
5552
+ const r = await Ps(this.resolver, this.auth) ? await super.execute() : null;
5522
5553
  e = () => Promise.resolve(r);
5523
5554
  } catch (t) {
5524
5555
  e = () => Promise.reject(t);
5525
5556
  }
5526
- ae.set(this.auth._key(), e);
5557
+ oe.set(this.auth._key(), e);
5527
5558
  }
5528
- return this.bypassAuthState || ae.set(this.auth._key(), () => Promise.resolve(null)), e();
5559
+ return this.bypassAuthState || oe.set(this.auth._key(), () => Promise.resolve(null)), e();
5529
5560
  }
5530
5561
  async onAuthEvent(e) {
5531
5562
  if (e.type === "signInViaRedirect")
@@ -5546,27 +5577,27 @@ class Ns extends Cn {
5546
5577
  cleanUp() {
5547
5578
  }
5548
5579
  }
5549
- async function Cs(n, e) {
5550
- const t = Ms(e), r = Ps(n);
5580
+ async function Ps(n, e) {
5581
+ const t = Us(e), r = Ls(n);
5551
5582
  if (!await r._isAvailable())
5552
5583
  return !1;
5553
5584
  const i = await r._get(t) === "true";
5554
5585
  return await r._remove(t), i;
5555
5586
  }
5556
- function Ds(n, e) {
5557
- ae.set(n._key(), e);
5587
+ function Ms(n, e) {
5588
+ oe.set(n._key(), e);
5558
5589
  }
5559
- function Ps(n) {
5590
+ function Ls(n) {
5560
5591
  return E(n._redirectPersistence);
5561
5592
  }
5562
- function Ms(n) {
5563
- return oe(Os, n.config.apiKey, n.name);
5593
+ function Us(n) {
5594
+ return ae(Ns, n.config.apiKey, n.name);
5564
5595
  }
5565
- async function Ls(n, e, t = !1) {
5596
+ async function Bs(n, e, t = !1) {
5566
5597
  if (I(n.app))
5567
5598
  return Promise.reject(P(n));
5568
- const r = ve(n), i = ws(r, e), o = await new Ns(r, i, t).execute();
5569
- return o && !t && (delete o.user._redirectEventId, await r._persistUserIfCurrent(o.user), await r._setRedirectUser(null, e)), o;
5599
+ const r = Ie(n), i = ks(r, e), a = await new Ds(r, i, t).execute();
5600
+ return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
5570
5601
  }
5571
5602
  /**
5572
5603
  * @license
@@ -5584,8 +5615,8 @@ async function Ls(n, e, t = !1) {
5584
5615
  * See the License for the specific language governing permissions and
5585
5616
  * limitations under the License.
5586
5617
  */
5587
- const Us = 10 * 60 * 1e3;
5588
- class Bs {
5618
+ const Fs = 10 * 60 * 1e3;
5619
+ class js {
5589
5620
  constructor(e) {
5590
5621
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
5591
5622
  }
@@ -5601,7 +5632,7 @@ class Bs {
5601
5632
  let t = !1;
5602
5633
  return this.consumers.forEach((r) => {
5603
5634
  this.isEventForConsumer(e, r) && (t = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
5604
- }), this.hasHandledPotentialRedirect || !Fs(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
5635
+ }), this.hasHandledPotentialRedirect || !xs(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
5605
5636
  }
5606
5637
  sendToConsumer(e, t) {
5607
5638
  var r;
@@ -5616,19 +5647,19 @@ class Bs {
5616
5647
  return t.filter.includes(e.type) && r;
5617
5648
  }
5618
5649
  hasEventBeenHandled(e) {
5619
- return Date.now() - this.lastProcessedEventTime >= Us && this.cachedEventUids.clear(), this.cachedEventUids.has(St(e));
5650
+ return Date.now() - this.lastProcessedEventTime >= Fs && this.cachedEventUids.clear(), this.cachedEventUids.has(At(e));
5620
5651
  }
5621
5652
  saveEventToCache(e) {
5622
- this.cachedEventUids.add(St(e)), this.lastProcessedEventTime = Date.now();
5653
+ this.cachedEventUids.add(At(e)), this.lastProcessedEventTime = Date.now();
5623
5654
  }
5624
5655
  }
5625
- function St(n) {
5656
+ function At(n) {
5626
5657
  return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
5627
5658
  }
5628
5659
  function Dn({ type: n, error: e }) {
5629
5660
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
5630
5661
  }
5631
- function Fs(n) {
5662
+ function xs(n) {
5632
5663
  switch (n.type) {
5633
5664
  case "signInViaRedirect":
5634
5665
  case "linkViaRedirect":
@@ -5656,8 +5687,8 @@ function Fs(n) {
5656
5687
  * See the License for the specific language governing permissions and
5657
5688
  * limitations under the License.
5658
5689
  */
5659
- async function Hs(n, e = {}) {
5660
- return $(n, "GET", "/v1/projects", e);
5690
+ async function Vs(n, e = {}) {
5691
+ return Z(n, "GET", "/v1/projects", e);
5661
5692
  }
5662
5693
  /**
5663
5694
  * @license
@@ -5675,14 +5706,14 @@ async function Hs(n, e = {}) {
5675
5706
  * See the License for the specific language governing permissions and
5676
5707
  * limitations under the License.
5677
5708
  */
5678
- const js = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Vs = /^https?/;
5679
- async function xs(n) {
5709
+ const Hs = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Gs = /^https?/;
5710
+ async function Ws(n) {
5680
5711
  if (n.config.emulator)
5681
5712
  return;
5682
- const { authorizedDomains: e } = await Hs(n);
5713
+ const { authorizedDomains: e } = await Vs(n);
5683
5714
  for (const t of e)
5684
5715
  try {
5685
- if (Ws(t))
5716
+ if (zs(t))
5686
5717
  return;
5687
5718
  } catch {
5688
5719
  }
@@ -5692,15 +5723,15 @@ async function xs(n) {
5692
5723
  /* AuthErrorCode.INVALID_ORIGIN */
5693
5724
  );
5694
5725
  }
5695
- function Ws(n) {
5696
- const e = He(), { protocol: t, hostname: r } = new URL(e);
5726
+ function zs(n) {
5727
+ const e = xe(), { protocol: t, hostname: r } = new URL(e);
5697
5728
  if (n.startsWith("chrome-extension://")) {
5698
- const o = new URL(n);
5699
- return o.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === r;
5729
+ const a = new URL(n);
5730
+ return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
5700
5731
  }
5701
- if (!Vs.test(t))
5732
+ if (!Gs.test(t))
5702
5733
  return !1;
5703
- if (js.test(n))
5734
+ if (Hs.test(n))
5704
5735
  return r === n;
5705
5736
  const i = n.replace(/\./g, "\\.");
5706
5737
  return new RegExp("^(.+\\." + i + "|" + i + ")$", "i").test(r);
@@ -5721,7 +5752,7 @@ function Ws(n) {
5721
5752
  * See the License for the specific language governing permissions and
5722
5753
  * limitations under the License.
5723
5754
  */
5724
- const Gs = new te(3e4, 6e4);
5755
+ const Zs = new te(3e4, 6e4);
5725
5756
  function Ot() {
5726
5757
  const n = g().___jsl;
5727
5758
  if (n != null && n.H) {
@@ -5731,10 +5762,10 @@ function Ot() {
5731
5762
  n.CP[t] = null;
5732
5763
  }
5733
5764
  }
5734
- function zs(n) {
5765
+ function $s(n) {
5735
5766
  return new Promise((e, t) => {
5736
5767
  var r, i, s;
5737
- function o() {
5768
+ function a() {
5738
5769
  Ot(), gapi.load("gapi.iframes", {
5739
5770
  callback: () => {
5740
5771
  e(gapi.iframes.getContext());
@@ -5746,30 +5777,30 @@ function zs(n) {
5746
5777
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
5747
5778
  ));
5748
5779
  },
5749
- timeout: Gs.get()
5780
+ timeout: Zs.get()
5750
5781
  });
5751
5782
  }
5752
5783
  if (!((i = (r = g().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
5753
5784
  e(gapi.iframes.getContext());
5754
5785
  else if (!((s = g().gapi) === null || s === void 0) && s.load)
5755
- o();
5786
+ a();
5756
5787
  else {
5757
- const a = Yi("iframefcb");
5758
- return g()[a] = () => {
5759
- gapi.load ? o() : t(_(
5788
+ const c = Ki("iframefcb");
5789
+ return g()[c] = () => {
5790
+ gapi.load ? a() : t(_(
5760
5791
  n,
5761
5792
  "network-request-failed"
5762
5793
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
5763
5794
  ));
5764
- }, Zi(`${Ji()}?onload=${a}`).catch((c) => t(c));
5795
+ }, Yi(`${Xi()}?onload=${c}`).catch((o) => t(o));
5765
5796
  }
5766
5797
  }).catch((e) => {
5767
5798
  throw ce = null, e;
5768
5799
  });
5769
5800
  }
5770
5801
  let ce = null;
5771
- function $s(n) {
5772
- return ce = ce || zs(n), ce;
5802
+ function Js(n) {
5803
+ return ce = ce || $s(n), ce;
5773
5804
  }
5774
5805
  /**
5775
5806
  * @license
@@ -5787,7 +5818,7 @@ function $s(n) {
5787
5818
  * See the License for the specific language governing permissions and
5788
5819
  * limitations under the License.
5789
5820
  */
5790
- const Zs = new te(5e3, 15e3), Js = "__/auth/iframe", Ys = "emulator/auth/iframe", Xs = {
5821
+ const Ys = new te(5e3, 15e3), Xs = "__/auth/iframe", Ks = "emulator/auth/iframe", qs = {
5791
5822
  style: {
5792
5823
  position: "absolute",
5793
5824
  top: "-100px",
@@ -5796,13 +5827,13 @@ const Zs = new te(5e3, 15e3), Js = "__/auth/iframe", Ys = "emulator/auth/iframe"
5796
5827
  },
5797
5828
  "aria-hidden": "true",
5798
5829
  tabindex: "-1"
5799
- }, Ks = /* @__PURE__ */ new Map([
5830
+ }, Qs = /* @__PURE__ */ new Map([
5800
5831
  ["identitytoolkit.googleapis.com", "p"],
5801
5832
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
5802
5833
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
5803
5834
  // test
5804
5835
  ]);
5805
- function qs(n) {
5836
+ function ea(n) {
5806
5837
  const e = n.config;
5807
5838
  d(
5808
5839
  e.authDomain,
@@ -5810,17 +5841,17 @@ function qs(n) {
5810
5841
  "auth-domain-config-required"
5811
5842
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
5812
5843
  );
5813
- const t = e.emulator ? Ye(e, Ys) : `https://${n.config.authDomain}/${Js}`, r = {
5844
+ const t = e.emulator ? Ye(e, Ks) : `https://${n.config.authDomain}/${Xs}`, r = {
5814
5845
  apiKey: e.apiKey,
5815
5846
  appName: n.name,
5816
5847
  v: ee
5817
- }, i = Ks.get(n.config.apiHost);
5848
+ }, i = Qs.get(n.config.apiHost);
5818
5849
  i && (r.eid = i);
5819
5850
  const s = n._getFrameworks();
5820
5851
  return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
5821
5852
  }
5822
- async function Qs(n) {
5823
- const e = await $s(n), t = g().gapi;
5853
+ async function ta(n) {
5854
+ const e = await Js(n), t = g().gapi;
5824
5855
  return d(
5825
5856
  t,
5826
5857
  n,
@@ -5828,27 +5859,27 @@ async function Qs(n) {
5828
5859
  /* AuthErrorCode.INTERNAL_ERROR */
5829
5860
  ), e.open({
5830
5861
  where: document.body,
5831
- url: qs(n),
5862
+ url: ea(n),
5832
5863
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
5833
- attributes: Xs,
5864
+ attributes: qs,
5834
5865
  dontclear: !0
5835
5866
  }, (r) => new Promise(async (i, s) => {
5836
5867
  await r.restyle({
5837
5868
  // Prevent iframe from closing on mouse out.
5838
5869
  setHideOnLeave: !1
5839
5870
  });
5840
- const o = _(
5871
+ const a = _(
5841
5872
  n,
5842
5873
  "network-request-failed"
5843
5874
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
5844
- ), a = g().setTimeout(() => {
5845
- s(o);
5846
- }, Zs.get());
5847
- function c() {
5848
- g().clearTimeout(a), i(r);
5875
+ ), c = g().setTimeout(() => {
5876
+ s(a);
5877
+ }, Ys.get());
5878
+ function o() {
5879
+ g().clearTimeout(c), i(r);
5849
5880
  }
5850
- r.ping(c).then(c, () => {
5851
- s(o);
5881
+ r.ping(o).then(o, () => {
5882
+ s(a);
5852
5883
  });
5853
5884
  }));
5854
5885
  }
@@ -5868,13 +5899,13 @@ async function Qs(n) {
5868
5899
  * See the License for the specific language governing permissions and
5869
5900
  * limitations under the License.
5870
5901
  */
5871
- const eo = {
5902
+ const na = {
5872
5903
  location: "yes",
5873
5904
  resizable: "yes",
5874
5905
  statusbar: "yes",
5875
5906
  toolbar: "no"
5876
- }, to = 500, no = 600, ro = "_blank", io = "http://localhost";
5877
- class Nt {
5907
+ }, ra = 500, ia = 600, sa = "_blank", aa = "http://localhost";
5908
+ class Ct {
5878
5909
  constructor(e) {
5879
5910
  this.window = e, this.associatedEvent = null;
5880
5911
  }
@@ -5886,20 +5917,20 @@ class Nt {
5886
5917
  }
5887
5918
  }
5888
5919
  }
5889
- function so(n, e, t, r = to, i = no) {
5890
- const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), o = Math.max((window.screen.availWidth - r) / 2, 0).toString();
5891
- let a = "";
5892
- const c = Object.assign(Object.assign({}, eo), {
5920
+ function oa(n, e, t, r = ra, i = ia) {
5921
+ const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
5922
+ let c = "";
5923
+ const o = Object.assign(Object.assign({}, na), {
5893
5924
  width: r.toString(),
5894
5925
  height: i.toString(),
5895
5926
  top: s,
5896
- left: o
5927
+ left: a
5897
5928
  }), l = f().toLowerCase();
5898
- t && (a = hn(l) ? ro : t), dn(l) && (e = e || io, c.scrollbars = "yes");
5899
- const u = Object.entries(c).reduce((m, [v, F]) => `${m}${v}=${F},`, "");
5900
- if (Hi(l) && a !== "_self")
5901
- return oo(e || "", a), new Nt(null);
5902
- const p = window.open(e || "", a, u);
5929
+ t && (c = hn(l) ? sa : t), dn(l) && (e = e || aa, o.scrollbars = "yes");
5930
+ const u = Object.entries(o).reduce((m, [v, F]) => `${m}${v}=${F},`, "");
5931
+ if (Vi(l) && c !== "_self")
5932
+ return ca(e || "", c), new Ct(null);
5933
+ const p = window.open(e || "", c, u);
5903
5934
  d(
5904
5935
  p,
5905
5936
  n,
@@ -5910,9 +5941,9 @@ function so(n, e, t, r = to, i = no) {
5910
5941
  p.focus();
5911
5942
  } catch {
5912
5943
  }
5913
- return new Nt(p);
5944
+ return new Ct(p);
5914
5945
  }
5915
- function oo(n, e) {
5946
+ function ca(n, e) {
5916
5947
  const t = document.createElement("a");
5917
5948
  t.href = n, t.target = e;
5918
5949
  const r = document.createEvent("MouseEvent");
@@ -5934,8 +5965,8 @@ function oo(n, e) {
5934
5965
  * See the License for the specific language governing permissions and
5935
5966
  * limitations under the License.
5936
5967
  */
5937
- const ao = "__/auth/handler", co = "emulator/auth/handler", lo = encodeURIComponent("fac");
5938
- async function Ct(n, e, t, r, i, s) {
5968
+ const la = "__/auth/handler", da = "emulator/auth/handler", ua = encodeURIComponent("fac");
5969
+ async function Nt(n, e, t, r, i, s) {
5939
5970
  d(
5940
5971
  n.config.authDomain,
5941
5972
  n,
@@ -5947,7 +5978,7 @@ async function Ct(n, e, t, r, i, s) {
5947
5978
  "invalid-api-key"
5948
5979
  /* AuthErrorCode.INVALID_API_KEY */
5949
5980
  );
5950
- const o = {
5981
+ const a = {
5951
5982
  apiKey: n.config.apiKey,
5952
5983
  appName: n.name,
5953
5984
  authType: t,
@@ -5956,23 +5987,23 @@ async function Ct(n, e, t, r, i, s) {
5956
5987
  eventId: i
5957
5988
  };
5958
5989
  if (e instanceof yn) {
5959
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", lr(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
5990
+ e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", ur(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
5960
5991
  for (const [u, p] of Object.entries({}))
5961
- o[u] = p;
5992
+ a[u] = p;
5962
5993
  }
5963
5994
  if (e instanceof ne) {
5964
5995
  const u = e.getScopes().filter((p) => p !== "");
5965
- u.length > 0 && (o.scopes = u.join(","));
5996
+ u.length > 0 && (a.scopes = u.join(","));
5966
5997
  }
5967
- n.tenantId && (o.tid = n.tenantId);
5968
- const a = o;
5969
- for (const u of Object.keys(a))
5970
- a[u] === void 0 && delete a[u];
5971
- const c = await n._getAppCheckToken(), l = c ? `#${lo}=${encodeURIComponent(c)}` : "";
5972
- return `${uo(n)}?${Q(a).slice(1)}${l}`;
5998
+ n.tenantId && (a.tid = n.tenantId);
5999
+ const c = a;
6000
+ for (const u of Object.keys(c))
6001
+ c[u] === void 0 && delete c[u];
6002
+ const o = await n._getAppCheckToken(), l = o ? `#${ua}=${encodeURIComponent(o)}` : "";
6003
+ return `${ha(n)}?${Q(c).slice(1)}${l}`;
5973
6004
  }
5974
- function uo({ config: n }) {
5975
- return n.emulator ? Ye(n, co) : `https://${n.authDomain}/${ao}`;
6005
+ function ha({ config: n }) {
6006
+ return n.emulator ? Ye(n, da) : `https://${n.authDomain}/${la}`;
5976
6007
  }
5977
6008
  /**
5978
6009
  * @license
@@ -5990,23 +6021,23 @@ function uo({ config: n }) {
5990
6021
  * See the License for the specific language governing permissions and
5991
6022
  * limitations under the License.
5992
6023
  */
5993
- const Ce = "webStorageSupport";
5994
- class ho {
6024
+ const De = "webStorageSupport";
6025
+ class pa {
5995
6026
  constructor() {
5996
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = Ls, this._overrideRedirectResult = Ds;
6027
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = Bs, this._overrideRedirectResult = Ms;
5997
6028
  }
5998
6029
  // Wrapping in async even though we don't await anywhere in order
5999
6030
  // to make sure errors are raised as promise rejections
6000
6031
  async _openPopup(e, t, r, i) {
6001
6032
  var s;
6002
6033
  R((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
6003
- const o = await Ct(e, t, r, He(), i);
6004
- return so(e, o, Qe());
6034
+ const a = await Nt(e, t, r, xe(), i);
6035
+ return oa(e, a, Qe());
6005
6036
  }
6006
6037
  async _openRedirect(e, t, r, i) {
6007
6038
  await this._originValidation(e);
6008
- const s = await Ct(e, t, r, He(), i);
6009
- return fs(s), new Promise(() => {
6039
+ const s = await Nt(e, t, r, xe(), i);
6040
+ return _s(s), new Promise(() => {
6010
6041
  });
6011
6042
  }
6012
6043
  _initialize(e) {
@@ -6021,7 +6052,7 @@ class ho {
6021
6052
  }), r;
6022
6053
  }
6023
6054
  async initAndGetManager(e) {
6024
- const t = await Qs(e), r = new Bs(e);
6055
+ const t = await ta(e), r = new js(e);
6025
6056
  return t.register("authEvent", (i) => (d(
6026
6057
  i == null ? void 0 : i.authEvent,
6027
6058
  e,
@@ -6033,10 +6064,10 @@ class ho {
6033
6064
  }), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
6034
6065
  }
6035
6066
  _isIframeWebStorageSupported(e, t) {
6036
- this.iframes[e._key()].send(Ce, { type: Ce }, (i) => {
6067
+ this.iframes[e._key()].send(De, { type: De }, (i) => {
6037
6068
  var s;
6038
- const o = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Ce];
6039
- o !== void 0 && t(!!o), w(
6069
+ const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[De];
6070
+ a !== void 0 && t(!!a), w(
6040
6071
  e,
6041
6072
  "internal-error"
6042
6073
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -6045,13 +6076,13 @@ class ho {
6045
6076
  }
6046
6077
  _originValidation(e) {
6047
6078
  const t = e._key();
6048
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = xs(e)), this.originValidationPromises[t];
6079
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Ws(e)), this.originValidationPromises[t];
6049
6080
  }
6050
6081
  get _shouldInitProactively() {
6051
6082
  return gn() || un() || Ke();
6052
6083
  }
6053
6084
  }
6054
- const po = ho;
6085
+ const fa = pa;
6055
6086
  var Dt = "@firebase/auth", Pt = "1.7.9";
6056
6087
  /**
6057
6088
  * @license
@@ -6069,7 +6100,7 @@ var Dt = "@firebase/auth", Pt = "1.7.9";
6069
6100
  * See the License for the specific language governing permissions and
6070
6101
  * limitations under the License.
6071
6102
  */
6072
- class fo {
6103
+ class ma {
6073
6104
  constructor(e) {
6074
6105
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
6075
6106
  }
@@ -6120,7 +6151,7 @@ class fo {
6120
6151
  * See the License for the specific language governing permissions and
6121
6152
  * limitations under the License.
6122
6153
  */
6123
- function mo(n) {
6154
+ function _a(n) {
6124
6155
  switch (n) {
6125
6156
  case "Node":
6126
6157
  return "node";
@@ -6136,22 +6167,22 @@ function mo(n) {
6136
6167
  return;
6137
6168
  }
6138
6169
  }
6139
- function _o(n) {
6140
- Y(new G(
6170
+ function ga(n) {
6171
+ Y(new W(
6141
6172
  "auth",
6142
6173
  (e, { options: t }) => {
6143
- const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: o, authDomain: a } = r.options;
6144
- d(o && !o.includes(":"), "invalid-api-key", { appName: r.name });
6145
- const c = {
6146
- apiKey: o,
6147
- authDomain: a,
6174
+ const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
6175
+ d(a && !a.includes(":"), "invalid-api-key", { appName: r.name });
6176
+ const o = {
6177
+ apiKey: a,
6178
+ authDomain: c,
6148
6179
  clientPlatform: n,
6149
6180
  apiHost: "identitytoolkit.googleapis.com",
6150
6181
  tokenApiHost: "securetoken.googleapis.com",
6151
6182
  apiScheme: "https",
6152
6183
  sdkClientVersion: vn(n)
6153
- }, l = new zi(r, i, s, c);
6154
- return Ki(l, t), l;
6184
+ }, l = new $i(r, i, s, o);
6185
+ return Qi(l, t), l;
6155
6186
  },
6156
6187
  "PUBLIC"
6157
6188
  /* ComponentType.PUBLIC */
@@ -6163,21 +6194,21 @@ function _o(n) {
6163
6194
  "auth-internal"
6164
6195
  /* _ComponentName.AUTH_INTERNAL */
6165
6196
  ).initialize();
6166
- })), Y(new G(
6197
+ })), Y(new W(
6167
6198
  "auth-internal",
6168
6199
  (e) => {
6169
- const t = ve(e.getProvider(
6200
+ const t = Ie(e.getProvider(
6170
6201
  "auth"
6171
6202
  /* _ComponentName.AUTH */
6172
6203
  ).getImmediate());
6173
- return ((r) => new fo(r))(t);
6204
+ return ((r) => new ma(r))(t);
6174
6205
  },
6175
6206
  "PRIVATE"
6176
6207
  /* ComponentType.PRIVATE */
6177
6208
  ).setInstantiationMode(
6178
6209
  "EXPLICIT"
6179
6210
  /* InstantiationMode.EXPLICIT */
6180
- )), j(Dt, Pt, mo(n)), j(Dt, Pt, "esm2017");
6211
+ )), x(Dt, Pt, _a(n)), x(Dt, Pt, "esm2017");
6181
6212
  }
6182
6213
  /**
6183
6214
  * @license
@@ -6195,11 +6226,11 @@ function _o(n) {
6195
6226
  * See the License for the specific language governing permissions and
6196
6227
  * limitations under the License.
6197
6228
  */
6198
- const go = 5 * 60, vo = zt("authIdTokenMaxAge") || go;
6229
+ const va = 5 * 60, Ia = zt("authIdTokenMaxAge") || va;
6199
6230
  let Mt = null;
6200
- const Io = (n) => async (e) => {
6231
+ const ba = (n) => async (e) => {
6201
6232
  const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
6202
- if (r && r > vo)
6233
+ if (r && r > Ia)
6203
6234
  return;
6204
6235
  const i = t == null ? void 0 : t.token;
6205
6236
  Mt !== i && (Mt = i, await fetch(n, {
@@ -6209,33 +6240,33 @@ const Io = (n) => async (e) => {
6209
6240
  } : {}
6210
6241
  }));
6211
6242
  };
6212
- function bo(n = ui()) {
6243
+ function ya(n = pi()) {
6213
6244
  const e = Yt(n, "auth");
6214
6245
  if (e.isInitialized())
6215
6246
  return e.getImmediate();
6216
- const t = Xi(n, {
6217
- popupRedirectResolver: po,
6247
+ const t = qi(n, {
6248
+ popupRedirectResolver: fa,
6218
6249
  persistence: [
6219
- Ts,
6220
- us,
6250
+ Rs,
6251
+ ps,
6221
6252
  kn
6222
6253
  ]
6223
6254
  }), r = zt("authTokenSyncURL");
6224
6255
  if (r && typeof isSecureContext == "boolean" && isSecureContext) {
6225
6256
  const s = new URL(r, location.origin);
6226
6257
  if (location.origin === s.origin) {
6227
- const o = Io(s.toString());
6228
- cs(t, o, () => o(t.currentUser)), as(t, (a) => o(a));
6258
+ const a = ba(s.toString());
6259
+ ds(t, a, () => a(t.currentUser)), ls(t, (c) => a(c));
6229
6260
  }
6230
6261
  }
6231
- const i = Wt("auth");
6232
- return i && qi(t, `http://${i}`), t;
6262
+ const i = Gt("auth");
6263
+ return i && es(t, `http://${i}`), t;
6233
6264
  }
6234
- function yo() {
6265
+ function Ea() {
6235
6266
  var n, e;
6236
6267
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
6237
6268
  }
6238
- $i({
6269
+ Ji({
6239
6270
  loadJS(n) {
6240
6271
  return new Promise((e, t) => {
6241
6272
  const r = document.createElement("script");
@@ -6245,142 +6276,173 @@ $i({
6245
6276
  /* AuthErrorCode.INTERNAL_ERROR */
6246
6277
  );
6247
6278
  s.customData = i, t(s);
6248
- }, r.type = "text/javascript", r.charset = "UTF-8", yo().appendChild(r);
6279
+ }, r.type = "text/javascript", r.charset = "UTF-8", Ea().appendChild(r);
6249
6280
  });
6250
6281
  },
6251
6282
  gapiScript: "https://apis.google.com/js/api.js",
6252
6283
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
6253
6284
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
6254
6285
  });
6255
- _o(
6286
+ ga(
6256
6287
  "Browser"
6257
6288
  /* ClientPlatform.BROWSER */
6258
6289
  );
6259
- const Eo = Ln({
6290
+ const Ta = Ln({
6260
6291
  history: Un(),
6261
- routes: [...Ge, ...We]
6292
+ routes: [...We, ...le]
6262
6293
  });
6263
- let De, Pe;
6264
- Eo.beforeEach(async (n) => {
6294
+ let Pe, Me;
6295
+ Ta.beforeEach(async (n) => {
6265
6296
  const {
6266
6297
  sessionUser: e,
6267
6298
  currentRestaurant: t,
6268
6299
  currentBusiness: r,
6269
6300
  readRestaurants: i,
6270
6301
  changeRestaurant: s
6271
- } = xe();
6272
- return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (De || (De = new Promise((o) => {
6273
- const a = Z(e, (c) => {
6302
+ } = Ge();
6303
+ return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (Pe || (Pe = new Promise((a) => {
6304
+ const c = $(e, (o) => {
6274
6305
  var l;
6275
- c && (a(), o(((l = e.value) == null ? void 0 : l.isInternal) ?? !1));
6306
+ o && (c(), a(((l = e.value) == null ? void 0 : l.isInternal) ?? !1));
6276
6307
  });
6277
- })), De) : !r.value || !t.value ? (Pe || (Pe = Promise.all([
6278
- new Promise(async (o) => {
6279
- const a = Z(r, (c) => {
6280
- c && (a(), o(!0));
6308
+ })), Pe) : !r.value || !t.value ? (Me || (Me = Promise.all([
6309
+ new Promise(async (a) => {
6310
+ const c = $(r, (o) => {
6311
+ o && (c(), a(!0));
6281
6312
  });
6282
6313
  }),
6283
- new Promise(async (o) => {
6284
- const a = Z(t, (l) => {
6285
- l && (a(), o(!0));
6286
- }), c = await i();
6287
- await s(c == null ? void 0 : c.at(0));
6314
+ new Promise(async (a) => {
6315
+ const c = $(t, (l) => {
6316
+ l && (c(), a(!0));
6317
+ }), o = await i();
6318
+ await s(o == null ? void 0 : o.at(0));
6288
6319
  })
6289
- ]).then((o) => !0)), Pe) : !0;
6320
+ ]).then((a) => !0)), Me) : !0;
6290
6321
  });
6291
- const To = /* @__PURE__ */ Ut({
6322
+ const wa = /* @__PURE__ */ Ut({
6292
6323
  __name: "AppSidebar",
6293
6324
  setup(n) {
6294
- const e = xe(), t = Bn(), r = Fn(t.currentRoute.value.name);
6295
- Z(t.currentRoute, () => {
6296
- let a = t.currentRoute.value.name;
6297
- t.currentRoute.value.meta.parent && (a = t.currentRoute.value.meta.parent), r.value = a;
6325
+ const e = Ge(), t = Bn(), r = jn(t.currentRoute.value.name);
6326
+ $(t.currentRoute, () => {
6327
+ let o = t.currentRoute.value.name;
6328
+ t.currentRoute.value.meta.parent && (o = t.currentRoute.value.meta.parent), r.value = o;
6298
6329
  });
6299
- const i = Ge.map((a) => {
6300
- var l;
6301
- if (!((l = a.meta) != null && l.sidebarDisplay))
6330
+ const i = We.map((o) => {
6331
+ var u;
6332
+ if (!((u = o.meta) != null && u.sidebarDisplay))
6302
6333
  return;
6303
- const c = {
6304
- label: a.meta.sidebarDisplay,
6305
- value: a.name,
6334
+ const l = {
6335
+ label: o.meta.sidebarDisplay,
6336
+ value: o.name,
6306
6337
  action: () => {
6307
- if (t.currentRoute.value.name !== a.name)
6308
- return t.push({ name: a.name });
6338
+ if (t.currentRoute.value.name !== o.name)
6339
+ return t.push({ name: o.name });
6309
6340
  }
6310
6341
  };
6311
- return a.meta.sidebarNew && (c.badge = () => Hn(Wn.FmPill, { label: "New" })), c;
6312
- }).filter((a) => !!a), s = We.map((a) => {
6313
- var c;
6314
- if ((c = a.meta) != null && c.sidebarDisplay)
6342
+ return o.meta.sidebarNew && (l.badge = () => xn(zn.FmPill, { label: "New" })), l;
6343
+ }).filter((o) => !!o), s = le.map((o) => {
6344
+ var l;
6345
+ if ((l = o.meta) != null && l.sidebarDisplay && !o.meta.section)
6346
+ return {
6347
+ label: o.meta.sidebarDisplay,
6348
+ value: o.name,
6349
+ action: () => {
6350
+ if (t.currentRoute.value.name !== o.name)
6351
+ return t.push({ name: o.name });
6352
+ }
6353
+ };
6354
+ }).filter((o) => !!o), a = (o) => le.map((l) => {
6355
+ var u;
6356
+ if ((u = l.meta) != null && u.sidebarDisplay && l.meta.section === o)
6315
6357
  return {
6316
- label: a.meta.sidebarDisplay,
6317
- value: a.name,
6358
+ label: l.meta.sidebarDisplay,
6359
+ value: l.name,
6318
6360
  action: () => {
6319
- if (t.currentRoute.value.name !== a.name)
6320
- return t.push({ name: a.name });
6361
+ if (t.currentRoute.value.name !== l.name)
6362
+ return t.push({ name: l.name });
6321
6363
  }
6322
6364
  };
6323
- }).filter((a) => !!a), o = Lt(() => {
6324
- var c;
6325
- const a = [...i];
6326
- return (c = e.sessionUser.value) != null && c.isInternal && (a.push({
6365
+ }).filter((l) => !!l), c = Lt(() => {
6366
+ var l;
6367
+ const o = [...i];
6368
+ return (l = e.sessionUser.value) != null && l.isInternal && (o.push({
6369
+ label: "",
6370
+ value: "divider",
6371
+ disabled: !0
6372
+ }), o.push({
6373
+ label: "Devices",
6374
+ icon: "desktop_windows",
6375
+ value: "divider",
6376
+ disabled: !0
6377
+ }), o.push(...a("device")), o.push({
6327
6378
  label: "",
6328
6379
  value: "divider",
6329
6380
  disabled: !0
6330
- }), a.push({
6331
- label: "Admin Panel",
6381
+ }), o.push({
6382
+ label: "Payment Gateway",
6383
+ icon: "account_balance",
6384
+ value: "divider",
6385
+ disabled: !0
6386
+ }), o.push(...a("payment-gateway")), o.push({
6387
+ label: "",
6388
+ value: "divider",
6389
+ disabled: !0
6390
+ }), o.push({
6391
+ label: "General",
6332
6392
  icon: "admin_panel_settings",
6333
6393
  value: "divider",
6334
6394
  disabled: !0
6335
- }), a.push(...s)), a;
6395
+ }), o.push(...s)), o;
6336
6396
  });
6337
- return (a, c) => {
6338
- const l = Bt("FmCollapsibleTabs");
6339
- return Ft(), Ht(l, {
6397
+ return (o, l) => {
6398
+ const u = Bt("FmCollapsibleTabs");
6399
+ return Ft(), jt(u, {
6340
6400
  modelValue: r.value,
6341
- "onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
6342
- items: o.value,
6401
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => r.value = p),
6402
+ items: c.value,
6343
6403
  class: "py-16 px-8 w-[240px]"
6344
6404
  }, null, 8, ["modelValue", "items"]);
6345
6405
  };
6346
6406
  }
6347
6407
  });
6348
- var wo = { 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" };
6349
- const Do = /* @__PURE__ */ Ut({
6408
+ var Ra = { 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" };
6409
+ const Pa = /* @__PURE__ */ Ut({
6350
6410
  __name: "App",
6351
6411
  setup(n) {
6352
- const { state: e } = Gn(), t = xe(), r = Xt(wo.firebase);
6353
- async function i() {
6354
- const s = t.sessionUser.value;
6355
- if (!s || !s.token) return;
6356
- const o = await s.getCustomToken(), a = bo(r);
6357
- await os(a, o);
6412
+ const { state: e } = Zn(), t = Ge(), r = Fn(), i = Xt(Ra.firebase);
6413
+ async function s() {
6414
+ const a = t.sessionUser.value;
6415
+ if (!a || !a.token) return;
6416
+ const c = await a.getCustomToken(), o = ya(i);
6417
+ await cs(o, c);
6358
6418
  }
6359
- return i(), Z(t.sessionUser, i), jn(() => {
6419
+ return s(), $(t.sessionUser, s), Vn(() => {
6360
6420
  e.isIframe && parent.postMessage({ event: "ready" }, "*");
6361
- }), Vn(() => {
6362
- t.registerSidebarComponent(To);
6363
- }), (s, o) => {
6364
- const a = Bt("RouterView");
6365
- return Ft(), Ht(a);
6421
+ }), Hn(() => {
6422
+ t.registerSidebarComponent(wa);
6423
+ }), (a, c) => {
6424
+ const o = Bt("RouterView");
6425
+ return Ft(), jt(o, {
6426
+ key: Gn(r).path
6427
+ });
6366
6428
  };
6367
6429
  }
6368
- }), Po = [
6369
- ...We,
6370
- ...Ge
6430
+ }), Ma = [
6431
+ ...le,
6432
+ ...We
6371
6433
  ];
6372
6434
  export {
6373
- G as C,
6435
+ W as C,
6374
6436
  M as F,
6375
6437
  ee as S,
6376
6438
  Y as _,
6377
6439
  Yt as a,
6378
- No as b,
6379
- ui as c,
6380
- Co as d,
6440
+ Na as b,
6441
+ pi as c,
6442
+ Da as d,
6381
6443
  gt as e,
6382
- Po as f,
6444
+ Ma as f,
6383
6445
  z as g,
6384
- Do as h,
6385
- j as r
6446
+ Pa as h,
6447
+ x as r
6386
6448
  };