@feedmepos/mf-financing 0.0.8 → 0.0.20-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRouter as bn, createWebHistory as wn, useRoute as En } from "vue-router";
2
- import { computed as Tn, defineComponent as Sn, watch as An, onMounted as Cn, resolveComponent as Pn, openBlock as kn, createBlock as Rn, unref as On } from "vue";
2
+ import { computed as Tn, defineComponent as Sn, watch as An, onMounted as kn, resolveComponent as Cn, openBlock as Rn, createBlock as Pn, unref as On } from "vue";
3
3
  import { defineStore as Nn } from "pinia";
4
4
  import { useCoreStore as Dn } from "@feedmepos/mf-common";
5
5
  const Ln = {
@@ -8,16 +8,21 @@ const Ln = {
8
8
  application: "Application"
9
9
  },
10
10
  components: {
11
- restaurant: "Restaurant",
12
11
  select: "Select"
13
12
  },
14
- infoCard: {
15
- title: "Apply for financing for your pos system",
16
- description: "Upgrade your business operations today without draining your vital cash reserves. By financing your Point of Sale system, you transform a heavy upfront cost into manageable, predictable monthly payments, allowing you to keep your working capital free for inventory, marketing, and unexpected expenses. This smart investment strategy gives you immediate access to top-tier technology that streamlines efficiency and drives sales, effectively letting the system pay for itself through the growth it generates."
17
- },
18
13
  stepper: {
19
14
  title: "POS Financing Pre-requisites",
20
15
  description: "Complete the steps below to get your POS financing ready.",
16
+ eligibility: {
17
+ errors: {
18
+ gatewayGrab: "Grab payment gateway is not configured",
19
+ gatewaySoftspace: "Softspace payment gateway is not configured",
20
+ generic: "Failed to check eligibility. Please try again."
21
+ },
22
+ actions: {
23
+ setupPayoutAccount: "Setup Payout Account"
24
+ }
25
+ },
21
26
  steps: {
22
27
  eligibility: {
23
28
  title: "Checking Eligibility",
@@ -39,26 +44,19 @@ const Ln = {
39
44
  }
40
45
  },
41
46
  dashboard: {
42
- totalLoan: "Total Loan Amount",
43
- totalPaid: "Total Paid",
44
- remainingBalance: "Remaining Balance",
45
- repaymentProgress: "Repayment Progress",
46
47
  payments: "Payments",
47
- completed: "Completed",
48
- upcomingPayments: "Upcoming Payments",
49
- dueDate: "Due Date",
50
- allPaid: "Congratulations! All payments completed.",
51
- paymentHistory: "Payment History",
52
48
  table: {
53
- dueDate: "Due Date",
54
- amount: "Amount",
55
- status: "Status",
56
- paidDate: "Paid Date"
49
+ date: "Date",
50
+ referenceId: "Reference ID",
51
+ type: "Type",
52
+ amount: "Amount"
57
53
  },
58
- status: {
59
- pending: "Pending",
60
- paid: "Paid",
61
- overdue: "Overdue"
54
+ transactionType: {
55
+ deposit: "Wallet: Manual Deposit",
56
+ repaymentBalance: "Repayment: Wallet",
57
+ arrearsRepaymentBalance: "Arrears Payback: Wallet",
58
+ repaymentSales: "Repayment: Sales",
59
+ arrearsRepaymentSales: "Arrears Payback: Sales"
62
60
  },
63
61
  principalLoan: "Principal Loan",
64
62
  paidAmount: "Paid Amount",
@@ -66,41 +64,42 @@ const Ln = {
66
64
  lastUpdated: "Last Updated"
67
65
  },
68
66
  apply: {
69
- title: "Apply for Financing",
67
+ title: "Financing application form",
70
68
  description: "Fill in the details below to apply for financing.",
71
69
  sections: {
72
70
  business: "Business Information",
73
- contact: "Contact Information",
74
- loan: "Loan Details",
75
- documents: "Required Documents"
71
+ businessDocument: "Business Document",
72
+ documents: "Bank Statements",
73
+ signature: "Declaration & Signature"
76
74
  },
77
75
  fields: {
78
76
  businessName: "Business Name",
79
77
  businessNamePlaceholder: "Enter your business name",
80
78
  registrationNumber: "Business Registration Number",
81
- registrationNumberPlaceholder: "Enter registration number",
82
- contactName: "Contact Name",
83
- contactNamePlaceholder: "Enter contact name",
84
- contactEmail: "Email Address",
85
- contactEmailPlaceholder: "Enter email address",
86
- contactPhone: "Phone Number",
87
- contactPhonePlaceholder: "Enter phone number",
88
- loanAmount: "Loan Amount",
89
- loanAmountPlaceholder: "Enter loan amount",
90
- loanPurpose: "Loan Purpose",
91
- loanPurposePlaceholder: "Describe the purpose of the loan",
92
- ssmCertificate: "SSM Certificate",
93
- bankStatement: "Bank Statement (Last 3 months)",
94
- financialStatement: "Financial Statement"
79
+ registrationNumberPlaceholder: "Enter registration number (e.g. 202001012345)",
80
+ businessAddress: "Business Address",
81
+ businessAddressPlaceholder: "Enter your full business address",
82
+ taxIdentificationNo: "Tax Identification No. (TIN)",
83
+ taxIdentificationNoPlaceholder: "Enter your TIN number",
84
+ businessRegistration: "Business Registration",
85
+ bankStatement: "Bank Statement",
86
+ signature: "Signature",
87
+ signatoryName: "Signatory Name",
88
+ signatoryPosition: "Signatory Position"
95
89
  },
90
+ success: "Application submitted successfully",
96
91
  errors: {
97
92
  required: "This field is required",
98
- invalidEmail: "Please enter a valid email address",
99
- invalidAmount: "Please enter a valid amount"
93
+ businessRegistrationRequired: "Please upload your business registration document",
94
+ bankStatementRequired: "Please upload at least one bank statement",
95
+ signatureRequired: "Please provide your signature",
96
+ submissionFailed: "Failed to submit application. Please try again.",
97
+ noRestaurant: "No restaurant selected. Please select a restaurant first."
100
98
  },
101
99
  buttons: {
102
100
  cancel: "Cancel",
103
- submit: "Submit Application"
101
+ submit: "Submit Application",
102
+ addBankStatement: "Add Another Bank Statement"
104
103
  },
105
104
  confirm: {
106
105
  title: "Confirm Submission",
@@ -108,6 +107,17 @@ const Ln = {
108
107
  cancel: "Cancel",
109
108
  confirm: "Submit"
110
109
  }
110
+ },
111
+ upload: {
112
+ preview: "Preview"
113
+ },
114
+ signature: {
115
+ clearSignature: "Clear Signature",
116
+ clickToAdd: "Click to add signature",
117
+ dialogTitle: "Signature",
118
+ saveBefore: "Please save your signature before closing",
119
+ clear: "Clear",
120
+ saveSignature: "Save Signature"
111
121
  }
112
122
  }, Mn = {
113
123
  financing: Ln
@@ -117,23 +127,28 @@ const Ln = {
117
127
  application: "申请"
118
128
  },
119
129
  components: {
120
- restaurant: "餐厅",
121
130
  select: "选择"
122
131
  },
123
- infoCard: {
124
- title: "为您的POS系统申请融资",
125
- description: "立即升级您的业务运营,而不会耗尽您的重要现金储备。通过为您的销售点系统融资,您可以将沉重的预付成本转化为可管理的、可预测的每月付款,让您的工作资本可以自由用于库存、营销和意外支出。这种明智的投资策略让您立即获得简化效率并推动销售的顶级技术,有效地让系统通过其产生的增长来支付自身。"
126
- },
127
132
  stepper: {
128
133
  title: "POS融资先决条件",
129
134
  description: "完成以下步骤以准备好您的POS融资。",
135
+ eligibility: {
136
+ errors: {
137
+ gatewayGrab: "Grab支付网关未设置",
138
+ gatewaySoftspace: "Softspace支付网关未设置",
139
+ generic: "无法检查资格。请重试。"
140
+ },
141
+ actions: {
142
+ setupPayoutAccount: "设置收款账户"
143
+ }
144
+ },
130
145
  steps: {
131
146
  eligibility: {
132
147
  title: "检查资格",
133
148
  description: "验证您的收款账户和支付网关"
134
149
  },
135
150
  apply: {
136
- title: "申请融资",
151
+ title: "融资申请提交",
137
152
  description: "提交您的申请",
138
153
  button: "提交申请"
139
154
  },
@@ -148,26 +163,19 @@ const Ln = {
148
163
  }
149
164
  },
150
165
  dashboard: {
151
- totalLoan: "贷款总额",
152
- totalPaid: "已支付总额",
153
- remainingBalance: "剩余余额",
154
- repaymentProgress: "还款进度",
155
166
  payments: "期数",
156
- completed: "已完成",
157
- upcomingPayments: "即将到期的付款",
158
- dueDate: "到期日",
159
- allPaid: "恭喜!所有付款已完成。",
160
- paymentHistory: "付款历史",
161
167
  table: {
162
- dueDate: "到期日",
163
- amount: "金额",
164
- status: "状态",
165
- paidDate: "付款日期"
168
+ date: "日期",
169
+ referenceId: "参考编号",
170
+ type: "类型",
171
+ amount: "金额"
166
172
  },
167
- status: {
168
- pending: "待付款",
169
- paid: "已付款",
170
- overdue: "逾期"
173
+ transactionType: {
174
+ deposit: "钱包:手动存款",
175
+ repaymentBalance: "还款:钱包",
176
+ arrearsRepaymentBalance: "欠款偿还:钱包",
177
+ repaymentSales: "还款:销售",
178
+ arrearsRepaymentSales: "欠款偿还:销售"
171
179
  },
172
180
  principalLoan: "本金贷款",
173
181
  paidAmount: "已付金额",
@@ -175,41 +183,42 @@ const Ln = {
175
183
  lastUpdated: "最后更新"
176
184
  },
177
185
  apply: {
178
- title: "申请融资",
186
+ title: "融资申请表",
179
187
  description: "填写以下详情以申请融资。",
180
188
  sections: {
181
189
  business: "商业信息",
182
- contact: "联系信息",
183
- loan: "贷款详情",
184
- documents: "所需文件"
190
+ businessDocument: "商业文件",
191
+ documents: "银行对账单",
192
+ signature: "声明与签名"
185
193
  },
186
194
  fields: {
187
195
  businessName: "商业名称",
188
196
  businessNamePlaceholder: "输入您的商业名称",
189
197
  registrationNumber: "商业注册号码",
190
- registrationNumberPlaceholder: "输入注册号码",
191
- contactName: "联系人姓名",
192
- contactNamePlaceholder: "输入联系人姓名",
193
- contactEmail: "电子邮件地址",
194
- contactEmailPlaceholder: "输入电子邮件地址",
195
- contactPhone: "电话号码",
196
- contactPhonePlaceholder: "输入电话号码",
197
- loanAmount: "贷款金额",
198
- loanAmountPlaceholder: "输入贷款金额",
199
- loanPurpose: "贷款用途",
200
- loanPurposePlaceholder: "描述贷款用途",
201
- ssmCertificate: "SSM证书",
202
- bankStatement: "银行对账单(最近3个月)",
203
- financialStatement: "财务报表"
198
+ registrationNumberPlaceholder: "输入注册号码(例如:202001012345)",
199
+ businessAddress: "商业地址",
200
+ businessAddressPlaceholder: "输入您的完整商业地址",
201
+ taxIdentificationNo: "税务识别号 (TIN)",
202
+ taxIdentificationNoPlaceholder: "输入您的税务识别号",
203
+ businessRegistration: "商业注册文件",
204
+ bankStatement: "银行对账单",
205
+ signature: "签名",
206
+ signatoryName: "签署人姓名",
207
+ signatoryPosition: "签署人职位"
204
208
  },
209
+ success: "申请提交成功",
205
210
  errors: {
206
211
  required: "此字段为必填项",
207
- invalidEmail: "请输入有效的电子邮件地址",
208
- invalidAmount: "请输入有效的金额"
212
+ businessRegistrationRequired: "请上传您的商业注册文件",
213
+ bankStatementRequired: "请上传至少一份银行对账单",
214
+ signatureRequired: "请提供您的签名",
215
+ submissionFailed: "提交申请失败。请重试。",
216
+ noRestaurant: "未选择餐厅。请先选择一个餐厅。"
209
217
  },
210
218
  buttons: {
211
219
  cancel: "取消",
212
- submit: "提交申请"
220
+ submit: "提交申请",
221
+ addBankStatement: "添加另一份银行对账单"
213
222
  },
214
223
  confirm: {
215
224
  title: "确认提交",
@@ -217,6 +226,17 @@ const Ln = {
217
226
  cancel: "取消",
218
227
  confirm: "提交"
219
228
  }
229
+ },
230
+ upload: {
231
+ preview: "预览"
232
+ },
233
+ signature: {
234
+ clearSignature: "清除签名",
235
+ clickToAdd: "点击添加签名",
236
+ dialogTitle: "签名",
237
+ saveBefore: "请在关闭前保存您的签名",
238
+ clear: "清除",
239
+ saveSignature: "保存签名"
220
240
  }
221
241
  }, xn = {
222
242
  financing: Un
@@ -228,7 +248,7 @@ const Ln = {
228
248
  {
229
249
  path: "/application",
230
250
  name: "mf-financing-application",
231
- component: () => import("./Application-Dso_sbxU.js"),
251
+ component: () => import("./Application-BvrkS3zh.js"),
232
252
  meta: {
233
253
  sidebarDisplay: "i18n:financing.routes.application"
234
254
  }
@@ -236,7 +256,7 @@ const Ln = {
236
256
  {
237
257
  path: "/application/submission",
238
258
  name: "mf-financing-application-submission",
239
- component: () => import("./Submission-BdBXosJD.js")
259
+ component: () => import("./Submission-BvbhttQO.js")
240
260
  }
241
261
  ];
242
262
  bn({
@@ -295,7 +315,7 @@ const At = function(n) {
295
315
  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);
296
316
  }
297
317
  return e;
298
- }, Hn = function(n) {
318
+ }, $n = function(n) {
299
319
  const e = [];
300
320
  let t = 0, r = 0;
301
321
  for (; t < n.length; ) {
@@ -314,7 +334,7 @@ const At = function(n) {
314
334
  }
315
335
  }
316
336
  return e.join("");
317
- }, Ct = {
337
+ }, kt = {
318
338
  /**
319
339
  * Maps bytes to characters.
320
340
  */
@@ -399,7 +419,7 @@ const At = function(n) {
399
419
  * @return string representing the decoded value.
400
420
  */
401
421
  decodeString(n, e) {
402
- return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : Hn(this.decodeStringToByteArray(n, e));
422
+ return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : $n(this.decodeStringToByteArray(n, e));
403
423
  },
404
424
  /**
405
425
  * Base64-decode a string.
@@ -426,7 +446,7 @@ const At = function(n) {
426
446
  ++i;
427
447
  const f = i < n.length ? t[n.charAt(i)] : 64;
428
448
  if (++i, s == null || c == null || l == null || f == null)
429
- throw new $n();
449
+ throw new Hn();
430
450
  const m = s << 2 | c >> 4;
431
451
  if (r.push(m), l !== 64) {
432
452
  const v = c << 4 & 240 | l >> 2;
@@ -451,19 +471,19 @@ const At = function(n) {
451
471
  }
452
472
  }
453
473
  };
454
- class $n extends Error {
474
+ class Hn extends Error {
455
475
  constructor() {
456
476
  super(...arguments), this.name = "DecodeBase64StringError";
457
477
  }
458
478
  }
459
479
  const Vn = function(n) {
460
480
  const e = At(n);
461
- return Ct.encodeByteArray(e, !0);
462
- }, Pt = function(n) {
481
+ return kt.encodeByteArray(e, !0);
482
+ }, Ct = function(n) {
463
483
  return Vn(n).replace(/\./g, "");
464
- }, kt = function(n) {
484
+ }, Rt = function(n) {
465
485
  try {
466
- return Ct.decodeString(n, !0);
486
+ return kt.decodeString(n, !0);
467
487
  } catch (e) {
468
488
  console.error("base64Decode failed: ", e);
469
489
  }
@@ -525,7 +545,7 @@ const Wn = () => jn().__FIREBASE_DEFAULTS__, zn = () => {
525
545
  } catch {
526
546
  return;
527
547
  }
528
- const e = n && kt(n[1]);
548
+ const e = n && Rt(n[1]);
529
549
  return e && JSON.parse(e);
530
550
  }, Be = () => {
531
551
  try {
@@ -537,7 +557,7 @@ const Wn = () => jn().__FIREBASE_DEFAULTS__, zn = () => {
537
557
  }, qn = (n) => {
538
558
  var e, t;
539
559
  return (t = (e = Be()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
540
- }, Rt = () => {
560
+ }, Pt = () => {
541
561
  var n;
542
562
  return (n = Be()) === null || n === void 0 ? void 0 : n.config;
543
563
  }, Ot = (n) => {
@@ -1236,7 +1256,7 @@ function yr() {
1236
1256
  IDBCursor.prototype.continuePrimaryKey
1237
1257
  ]);
1238
1258
  }
1239
- const Dt = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap();
1259
+ const Dt = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap();
1240
1260
  function Ir(n) {
1241
1261
  const e = new Promise((t, r) => {
1242
1262
  const i = () => {
@@ -1254,7 +1274,7 @@ function Ir(n) {
1254
1274
  }), Fe.set(e, n), e;
1255
1275
  }
1256
1276
  function br(n) {
1257
- if (Re.has(n))
1277
+ if (Pe.has(n))
1258
1278
  return;
1259
1279
  const e = new Promise((t, r) => {
1260
1280
  const i = () => {
@@ -1266,13 +1286,13 @@ function br(n) {
1266
1286
  };
1267
1287
  n.addEventListener("complete", s), n.addEventListener("error", o), n.addEventListener("abort", o);
1268
1288
  });
1269
- Re.set(n, e);
1289
+ Pe.set(n, e);
1270
1290
  }
1271
1291
  let Oe = {
1272
1292
  get(n, e, t) {
1273
1293
  if (n instanceof IDBTransaction) {
1274
1294
  if (e === "done")
1275
- return Re.get(n);
1295
+ return Pe.get(n);
1276
1296
  if (e === "objectStoreNames")
1277
1297
  return n.objectStoreNames || Lt.get(n);
1278
1298
  if (e === "store")
@@ -1326,13 +1346,13 @@ function Sr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
1326
1346
  }).catch(() => {
1327
1347
  }), c;
1328
1348
  }
1329
- const Ar = ["get", "getKey", "getAll", "getAllKeys", "count"], Cr = ["put", "add", "delete", "clear"], Ae = /* @__PURE__ */ new Map();
1349
+ const Ar = ["get", "getKey", "getAll", "getAllKeys", "count"], kr = ["put", "add", "delete", "clear"], Ae = /* @__PURE__ */ new Map();
1330
1350
  function rt(n, e) {
1331
1351
  if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
1332
1352
  return;
1333
1353
  if (Ae.get(e))
1334
1354
  return Ae.get(e);
1335
- const t = e.replace(/FromIndex$/, ""), r = e !== t, i = Cr.includes(t);
1355
+ const t = e.replace(/FromIndex$/, ""), r = e !== t, i = kr.includes(t);
1336
1356
  if (
1337
1357
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
1338
1358
  !(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Ar.includes(t))
@@ -1369,7 +1389,7 @@ wr((n) => ({
1369
1389
  * See the License for the specific language governing permissions and
1370
1390
  * limitations under the License.
1371
1391
  */
1372
- class Pr {
1392
+ class Cr {
1373
1393
  constructor(e) {
1374
1394
  this.container = e;
1375
1395
  }
@@ -1377,7 +1397,7 @@ class Pr {
1377
1397
  // auth token refresh, and installations will send this string.
1378
1398
  getPlatformInfoString() {
1379
1399
  return this.container.getProviders().map((t) => {
1380
- if (kr(t)) {
1400
+ if (Rr(t)) {
1381
1401
  const r = t.getImmediate();
1382
1402
  return `${r.library}/${r.version}`;
1383
1403
  } else
@@ -1385,7 +1405,7 @@ class Pr {
1385
1405
  }).filter((t) => t).join(" ");
1386
1406
  }
1387
1407
  }
1388
- function kr(n) {
1408
+ function Rr(n) {
1389
1409
  const e = n.getComponent();
1390
1410
  return (e == null ? void 0 : e.type) === "VERSION";
1391
1411
  }
@@ -1406,7 +1426,7 @@ const Ne = "@firebase/app", it = "0.10.13";
1406
1426
  * See the License for the specific language governing permissions and
1407
1427
  * limitations under the License.
1408
1428
  */
1409
- const E = new Nt("@firebase/app"), Rr = "@firebase/app-compat", Or = "@firebase/analytics-compat", Nr = "@firebase/analytics", Dr = "@firebase/app-check-compat", Lr = "@firebase/app-check", Mr = "@firebase/auth", Ur = "@firebase/auth-compat", xr = "@firebase/database", Br = "@firebase/data-connect", Fr = "@firebase/database-compat", Hr = "@firebase/functions", $r = "@firebase/functions-compat", Vr = "@firebase/installations", jr = "@firebase/installations-compat", Wr = "@firebase/messaging", zr = "@firebase/messaging-compat", Gr = "@firebase/performance", qr = "@firebase/performance-compat", Kr = "@firebase/remote-config", Jr = "@firebase/remote-config-compat", Yr = "@firebase/storage", Xr = "@firebase/storage-compat", Qr = "@firebase/firestore", Zr = "@firebase/vertexai-preview", ei = "@firebase/firestore-compat", ti = "firebase", ni = "10.14.1";
1429
+ const E = new Nt("@firebase/app"), Pr = "@firebase/app-compat", Or = "@firebase/analytics-compat", Nr = "@firebase/analytics", Dr = "@firebase/app-check-compat", Lr = "@firebase/app-check", Mr = "@firebase/auth", Ur = "@firebase/auth-compat", xr = "@firebase/database", Br = "@firebase/data-connect", Fr = "@firebase/database-compat", $r = "@firebase/functions", Hr = "@firebase/functions-compat", Vr = "@firebase/installations", jr = "@firebase/installations-compat", Wr = "@firebase/messaging", zr = "@firebase/messaging-compat", Gr = "@firebase/performance", qr = "@firebase/performance-compat", Kr = "@firebase/remote-config", Jr = "@firebase/remote-config-compat", Yr = "@firebase/storage", Xr = "@firebase/storage-compat", Qr = "@firebase/firestore", Zr = "@firebase/vertexai-preview", ei = "@firebase/firestore-compat", ti = "firebase", ni = "10.14.1";
1410
1430
  /**
1411
1431
  * @license
1412
1432
  * Copyright 2019 Google LLC
@@ -1425,7 +1445,7 @@ const E = new Nt("@firebase/app"), Rr = "@firebase/app-compat", Or = "@firebase/
1425
1445
  */
1426
1446
  const De = "[DEFAULT]", ri = {
1427
1447
  [Ne]: "fire-core",
1428
- [Rr]: "fire-core-compat",
1448
+ [Pr]: "fire-core-compat",
1429
1449
  [Nr]: "fire-analytics",
1430
1450
  [Or]: "fire-analytics-compat",
1431
1451
  [Lr]: "fire-app-check",
@@ -1435,8 +1455,8 @@ const De = "[DEFAULT]", ri = {
1435
1455
  [xr]: "fire-rtdb",
1436
1456
  [Br]: "fire-data-connect",
1437
1457
  [Fr]: "fire-rtdb-compat",
1438
- [Hr]: "fire-fn",
1439
- [$r]: "fire-fn-compat",
1458
+ [$r]: "fire-fn",
1459
+ [Hr]: "fire-fn-compat",
1440
1460
  [Vr]: "fire-iid",
1441
1461
  [jr]: "fire-iid-compat",
1442
1462
  [Wr]: "fire-fcm",
@@ -1610,7 +1630,7 @@ function Ut(n, e = {}) {
1610
1630
  throw N.create("bad-app-name", {
1611
1631
  appName: String(i)
1612
1632
  });
1613
- if (t || (t = Rt()), !t)
1633
+ if (t || (t = Pt()), !t)
1614
1634
  throw N.create(
1615
1635
  "no-options"
1616
1636
  /* AppError.NO_OPTIONS */
@@ -1629,13 +1649,13 @@ function Ut(n, e = {}) {
1629
1649
  }
1630
1650
  function ai(n = De) {
1631
1651
  const e = le.get(n);
1632
- if (!e && n === De && Rt())
1652
+ if (!e && n === De && Pt())
1633
1653
  return Ut();
1634
1654
  if (!e)
1635
1655
  throw N.create("no-app", { appName: n });
1636
1656
  return e;
1637
1657
  }
1638
- function H(n, e, t) {
1658
+ function $(n, e, t) {
1639
1659
  var r;
1640
1660
  let i = (r = ri[n]) !== null && r !== void 0 ? r : n;
1641
1661
  t && (i += `-${t}`);
@@ -1671,9 +1691,9 @@ function H(n, e, t) {
1671
1691
  * limitations under the License.
1672
1692
  */
1673
1693
  const ci = "firebase-heartbeat-database", li = 1, J = "firebase-heartbeat-store";
1674
- let Ce = null;
1694
+ let ke = null;
1675
1695
  function xt() {
1676
- return Ce || (Ce = Sr(ci, li, {
1696
+ return ke || (ke = Sr(ci, li, {
1677
1697
  upgrade: (n, e) => {
1678
1698
  switch (e) {
1679
1699
  case 0:
@@ -1688,7 +1708,7 @@ function xt() {
1688
1708
  throw N.create("idb-open", {
1689
1709
  originalErrorMessage: n.message
1690
1710
  });
1691
- })), Ce;
1711
+ })), ke;
1692
1712
  }
1693
1713
  async function ui(n) {
1694
1714
  try {
@@ -1777,7 +1797,7 @@ class fi {
1777
1797
  try {
1778
1798
  if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
1779
1799
  return "";
1780
- const t = at(), { heartbeatsToSend: r, unsentEntries: i } = pi(this._heartbeatsCache.heartbeats), s = Pt(JSON.stringify({ version: 2, heartbeats: r }));
1800
+ const t = at(), { heartbeatsToSend: r, unsentEntries: i } = pi(this._heartbeatsCache.heartbeats), s = Ct(JSON.stringify({ version: 2, heartbeats: r }));
1781
1801
  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;
1782
1802
  } catch (t) {
1783
1803
  return E.warn(t), "";
@@ -1857,7 +1877,7 @@ class mi {
1857
1877
  }
1858
1878
  }
1859
1879
  function ct(n) {
1860
- return Pt(
1880
+ return Ct(
1861
1881
  // heartbeatsCache wrapper properties
1862
1882
  JSON.stringify({ version: 2, heartbeats: n })
1863
1883
  ).length;
@@ -1881,7 +1901,7 @@ function ct(n) {
1881
1901
  function gi(n) {
1882
1902
  K(new W(
1883
1903
  "platform-logger",
1884
- (e) => new Pr(e),
1904
+ (e) => new Cr(e),
1885
1905
  "PRIVATE"
1886
1906
  /* ComponentType.PRIVATE */
1887
1907
  )), K(new W(
@@ -1889,7 +1909,7 @@ function gi(n) {
1889
1909
  (e) => new fi(e),
1890
1910
  "PRIVATE"
1891
1911
  /* ComponentType.PRIVATE */
1892
- )), H(Ne, it, n), H(Ne, it, "esm2017"), H("fire-js", "");
1912
+ )), $(Ne, it, n), $(Ne, it, "esm2017"), $("fire-js", "");
1893
1913
  }
1894
1914
  gi("");
1895
1915
  var _i = "firebase", vi = "10.14.1";
@@ -1909,8 +1929,8 @@ var _i = "firebase", vi = "10.14.1";
1909
1929
  * See the License for the specific language governing permissions and
1910
1930
  * limitations under the License.
1911
1931
  */
1912
- H(_i, vi, "app");
1913
- function He(n, e) {
1932
+ $(_i, vi, "app");
1933
+ function $e(n, e) {
1914
1934
  var t = {};
1915
1935
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
1916
1936
  if (n != null && typeof Object.getOwnPropertySymbols == "function")
@@ -1923,7 +1943,7 @@ function Ft() {
1923
1943
  "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."
1924
1944
  };
1925
1945
  }
1926
- const yi = Ft, Ht = new X("auth", "Firebase", Ft());
1946
+ const yi = Ft, $t = new X("auth", "Firebase", Ft());
1927
1947
  /**
1928
1948
  * @license
1929
1949
  * Copyright 2020 Google LLC
@@ -1964,30 +1984,30 @@ function ie(n, ...e) {
1964
1984
  * limitations under the License.
1965
1985
  */
1966
1986
  function T(n, ...e) {
1967
- throw $e(n, ...e);
1987
+ throw He(n, ...e);
1968
1988
  }
1969
1989
  function g(n, ...e) {
1970
- return $e(n, ...e);
1990
+ return He(n, ...e);
1971
1991
  }
1972
- function $t(n, e, t) {
1992
+ function Ht(n, e, t) {
1973
1993
  const r = Object.assign(Object.assign({}, yi()), { [e]: t });
1974
1994
  return new X("auth", "Firebase", r).create(e, {
1975
1995
  appName: n.name
1976
1996
  });
1977
1997
  }
1978
1998
  function D(n) {
1979
- return $t(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
1999
+ return Ht(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
1980
2000
  }
1981
- function $e(n, ...e) {
2001
+ function He(n, ...e) {
1982
2002
  if (typeof n != "string") {
1983
2003
  const t = e[0], r = [...e.slice(1)];
1984
2004
  return r[0] && (r[0].appName = n.name), n._errorFactory.create(t, ...r);
1985
2005
  }
1986
- return Ht.create(n, ...e);
2006
+ return $t.create(n, ...e);
1987
2007
  }
1988
2008
  function u(n, e, ...t) {
1989
2009
  if (!n)
1990
- throw $e(e, ...t);
2010
+ throw He(e, ...t);
1991
2011
  }
1992
2012
  function I(n) {
1993
2013
  const e = "INTERNAL ASSERTION FAILED: " + n;
@@ -2314,7 +2334,7 @@ async function jt(n, e, t) {
2314
2334
  throw re(n, "user-disabled", o);
2315
2335
  const d = r[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
2316
2336
  if (l)
2317
- throw $t(n, d, l);
2337
+ throw Ht(n, d, l);
2318
2338
  T(n, d);
2319
2339
  }
2320
2340
  } catch (i) {
@@ -2371,7 +2391,7 @@ function re(n, e, t) {
2371
2391
  * See the License for the specific language governing permissions and
2372
2392
  * limitations under the License.
2373
2393
  */
2374
- async function Ci(n, e) {
2394
+ async function ki(n, e) {
2375
2395
  return G(n, "POST", "/v1/accounts:delete", e);
2376
2396
  }
2377
2397
  async function Gt(n, e) {
@@ -2402,7 +2422,7 @@ function q(n) {
2402
2422
  } catch {
2403
2423
  }
2404
2424
  }
2405
- async function Pi(n, e = !1) {
2425
+ async function Ci(n, e = !1) {
2406
2426
  const t = z(n), r = await t.getIdToken(e), i = je(r);
2407
2427
  u(
2408
2428
  i && i.exp && i.auth_time && i.iat,
@@ -2414,14 +2434,14 @@ async function Pi(n, e = !1) {
2414
2434
  return {
2415
2435
  claims: i,
2416
2436
  token: r,
2417
- authTime: q(Pe(i.auth_time)),
2418
- issuedAtTime: q(Pe(i.iat)),
2419
- expirationTime: q(Pe(i.exp)),
2437
+ authTime: q(Ce(i.auth_time)),
2438
+ issuedAtTime: q(Ce(i.iat)),
2439
+ expirationTime: q(Ce(i.exp)),
2420
2440
  signInProvider: o || null,
2421
2441
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
2422
2442
  };
2423
2443
  }
2424
- function Pe(n) {
2444
+ function Ce(n) {
2425
2445
  return Number(n) * 1e3;
2426
2446
  }
2427
2447
  function je(n) {
@@ -2429,7 +2449,7 @@ function je(n) {
2429
2449
  if (e === void 0 || t === void 0 || r === void 0)
2430
2450
  return ie("JWT malformed, contained fewer than 3 sections"), null;
2431
2451
  try {
2432
- const i = kt(t);
2452
+ const i = Rt(t);
2433
2453
  return i ? JSON.parse(i) : (ie("Failed to decode base64 JWT payload"), null);
2434
2454
  } catch (i) {
2435
2455
  return ie("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
@@ -2473,10 +2493,10 @@ async function Y(n, e, t = !1) {
2473
2493
  try {
2474
2494
  return await e;
2475
2495
  } catch (r) {
2476
- throw r instanceof L && ki(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2496
+ throw r instanceof L && Ri(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2477
2497
  }
2478
2498
  }
2479
- function ki({ code: n }) {
2499
+ function Ri({ code: n }) {
2480
2500
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
2481
2501
  }
2482
2502
  /**
@@ -2495,7 +2515,7 @@ function ki({ code: n }) {
2495
2515
  * See the License for the specific language governing permissions and
2496
2516
  * limitations under the License.
2497
2517
  */
2498
- class Ri {
2518
+ class Pi {
2499
2519
  constructor(e) {
2500
2520
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
2501
2521
  }
@@ -2624,7 +2644,7 @@ function Ni(n, e) {
2624
2644
  }
2625
2645
  function qt(n) {
2626
2646
  return n.map((e) => {
2627
- var { providerId: t } = e, r = He(e, ["providerId"]);
2647
+ var { providerId: t } = e, r = $e(e, ["providerId"]);
2628
2648
  return {
2629
2649
  providerId: t,
2630
2650
  uid: r.rawId || "",
@@ -2691,7 +2711,7 @@ async function Li(n, e) {
2691
2711
  * See the License for the specific language governing permissions and
2692
2712
  * limitations under the License.
2693
2713
  */
2694
- class $ {
2714
+ class H {
2695
2715
  constructor() {
2696
2716
  this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
2697
2717
  }
@@ -2743,7 +2763,7 @@ class $ {
2743
2763
  this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
2744
2764
  }
2745
2765
  static fromJSON(e, t) {
2746
- const { refreshToken: r, accessToken: i, expirationTime: s } = t, o = new $();
2766
+ const { refreshToken: r, accessToken: i, expirationTime: s } = t, o = new H();
2747
2767
  return r && (u(typeof r == "string", "internal-error", {
2748
2768
  appName: e
2749
2769
  }), o.refreshToken = r), i && (u(typeof i == "string", "internal-error", {
@@ -2763,7 +2783,7 @@ class $ {
2763
2783
  this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
2764
2784
  }
2765
2785
  _clone() {
2766
- return Object.assign(new $(), this.toJSON());
2786
+ return Object.assign(new H(), this.toJSON());
2767
2787
  }
2768
2788
  _performRefresh() {
2769
2789
  return I("not implemented");
@@ -2790,8 +2810,8 @@ function A(n, e) {
2790
2810
  }
2791
2811
  class b {
2792
2812
  constructor(e) {
2793
- var { uid: t, auth: r, stsTokenManager: i } = e, s = He(e, ["uid", "auth", "stsTokenManager"]);
2794
- this.providerId = "firebase", this.proactiveRefresh = new Ri(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 Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
2813
+ var { uid: t, auth: r, stsTokenManager: i } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
2814
+ this.providerId = "firebase", this.proactiveRefresh = new Pi(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 Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
2795
2815
  }
2796
2816
  async getIdToken(e) {
2797
2817
  const t = await Y(this, this.stsTokenManager.getToken(this.auth, e));
@@ -2803,7 +2823,7 @@ class b {
2803
2823
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
2804
2824
  }
2805
2825
  getIdTokenResult(e) {
2806
- return Pi(this, e);
2826
+ return Ci(this, e);
2807
2827
  }
2808
2828
  reload() {
2809
2829
  return Oi(this);
@@ -2845,7 +2865,7 @@ class b {
2845
2865
  if (y(this.auth.app))
2846
2866
  return Promise.reject(D(this.auth));
2847
2867
  const e = await this.getIdToken();
2848
- return await Y(this, Ci(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
2868
+ return await Y(this, ki(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
2849
2869
  }
2850
2870
  toJSON() {
2851
2871
  return Object.assign(Object.assign({
@@ -2880,7 +2900,7 @@ class b {
2880
2900
  "internal-error"
2881
2901
  /* AuthErrorCode.INTERNAL_ERROR */
2882
2902
  );
2883
- const yn = $.fromJSON(this.name, Ze);
2903
+ const yn = H.fromJSON(this.name, Ze);
2884
2904
  u(
2885
2905
  typeof Ie == "string",
2886
2906
  e,
@@ -2919,7 +2939,7 @@ class b {
2919
2939
  * @param idTokenResponse
2920
2940
  */
2921
2941
  static async _fromIdTokenResponse(e, t, r = !1) {
2922
- const i = new $();
2942
+ const i = new H();
2923
2943
  i.updateFromServerResponse(t);
2924
2944
  const s = new b({
2925
2945
  uid: t.localId,
@@ -2941,7 +2961,7 @@ class b {
2941
2961
  "internal-error"
2942
2962
  /* AuthErrorCode.INTERNAL_ERROR */
2943
2963
  );
2944
- const s = i.providerUserInfo !== void 0 ? qt(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), c = new $();
2964
+ const s = i.providerUserInfo !== void 0 ? qt(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), c = new H();
2945
2965
  c.updateFromIdToken(r);
2946
2966
  const a = new b({
2947
2967
  uid: i.localId,
@@ -3307,7 +3327,7 @@ async function Bi(n, e = {}) {
3307
3327
  * limitations under the License.
3308
3328
  */
3309
3329
  const Fi = 6;
3310
- class Hi {
3330
+ class $i {
3311
3331
  constructor(e) {
3312
3332
  var t, r, i, s;
3313
3333
  const o = e.customStrengthOptions;
@@ -3394,9 +3414,9 @@ class Hi {
3394
3414
  * See the License for the specific language governing permissions and
3395
3415
  * limitations under the License.
3396
3416
  */
3397
- class $i {
3417
+ class Hi {
3398
3418
  constructor(e, t, r, i) {
3399
- 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 pt(this), this.idTokenSubscription = new pt(this), this.beforeStateQueue = new xi(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 = Ht, 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;
3419
+ 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 pt(this), this.idTokenSubscription = new pt(this), this.beforeStateQueue = new xi(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 = $t, 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;
3400
3420
  }
3401
3421
  _initializeWithPersistence(e, t) {
3402
3422
  return t && (this._popupRedirectResolver = w(t)), this._initializationPromise = this.queue(async () => {
@@ -3541,7 +3561,7 @@ class $i {
3541
3561
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
3542
3562
  }
3543
3563
  async _updatePasswordPolicy() {
3544
- const e = await Bi(this), t = new Hi(e);
3564
+ const e = await Bi(this), t = new $i(e);
3545
3565
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
3546
3566
  }
3547
3567
  _getPersistence() {
@@ -3976,7 +3996,7 @@ class U extends on {
3976
3996
  * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
3977
3997
  */
3978
3998
  static fromJSON(e) {
3979
- const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = He(t, ["providerId", "signInMethod"]);
3999
+ const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = t, s = $e(t, ["providerId", "signInMethod"]);
3980
4000
  if (!r || !i)
3981
4001
  return null;
3982
4002
  const o = new U(r, i);
@@ -4115,7 +4135,7 @@ class te extends an {
4115
4135
  * See the License for the specific language governing permissions and
4116
4136
  * limitations under the License.
4117
4137
  */
4118
- class C extends te {
4138
+ class k extends te {
4119
4139
  constructor() {
4120
4140
  super(
4121
4141
  "facebook.com"
@@ -4136,8 +4156,8 @@ class C extends te {
4136
4156
  */
4137
4157
  static credential(e) {
4138
4158
  return U._fromParams({
4139
- providerId: C.PROVIDER_ID,
4140
- signInMethod: C.FACEBOOK_SIGN_IN_METHOD,
4159
+ providerId: k.PROVIDER_ID,
4160
+ signInMethod: k.FACEBOOK_SIGN_IN_METHOD,
4141
4161
  accessToken: e
4142
4162
  });
4143
4163
  }
@@ -4147,7 +4167,7 @@ class C extends te {
4147
4167
  * @param userCredential - The user credential.
4148
4168
  */
4149
4169
  static credentialFromResult(e) {
4150
- return C.credentialFromTaggedObject(e);
4170
+ return k.credentialFromTaggedObject(e);
4151
4171
  }
4152
4172
  /**
4153
4173
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4156,20 +4176,20 @@ class C extends te {
4156
4176
  * @param userCredential - The user credential.
4157
4177
  */
4158
4178
  static credentialFromError(e) {
4159
- return C.credentialFromTaggedObject(e.customData || {});
4179
+ return k.credentialFromTaggedObject(e.customData || {});
4160
4180
  }
4161
4181
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4162
4182
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
4163
4183
  return null;
4164
4184
  try {
4165
- return C.credential(e.oauthAccessToken);
4185
+ return k.credential(e.oauthAccessToken);
4166
4186
  } catch {
4167
4187
  return null;
4168
4188
  }
4169
4189
  }
4170
4190
  }
4171
- C.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
4172
- C.PROVIDER_ID = "facebook.com";
4191
+ k.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
4192
+ k.PROVIDER_ID = "facebook.com";
4173
4193
  /**
4174
4194
  * @license
4175
4195
  * Copyright 2020 Google LLC
@@ -4186,7 +4206,7 @@ C.PROVIDER_ID = "facebook.com";
4186
4206
  * See the License for the specific language governing permissions and
4187
4207
  * limitations under the License.
4188
4208
  */
4189
- class P extends te {
4209
+ class C extends te {
4190
4210
  constructor() {
4191
4211
  super(
4192
4212
  "google.com"
@@ -4208,8 +4228,8 @@ class P extends te {
4208
4228
  */
4209
4229
  static credential(e, t) {
4210
4230
  return U._fromParams({
4211
- providerId: P.PROVIDER_ID,
4212
- signInMethod: P.GOOGLE_SIGN_IN_METHOD,
4231
+ providerId: C.PROVIDER_ID,
4232
+ signInMethod: C.GOOGLE_SIGN_IN_METHOD,
4213
4233
  idToken: e,
4214
4234
  accessToken: t
4215
4235
  });
@@ -4220,7 +4240,7 @@ class P extends te {
4220
4240
  * @param userCredential - The user credential.
4221
4241
  */
4222
4242
  static credentialFromResult(e) {
4223
- return P.credentialFromTaggedObject(e);
4243
+ return C.credentialFromTaggedObject(e);
4224
4244
  }
4225
4245
  /**
4226
4246
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4229,7 +4249,7 @@ class P extends te {
4229
4249
  * @param userCredential - The user credential.
4230
4250
  */
4231
4251
  static credentialFromError(e) {
4232
- return P.credentialFromTaggedObject(e.customData || {});
4252
+ return C.credentialFromTaggedObject(e.customData || {});
4233
4253
  }
4234
4254
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4235
4255
  if (!e)
@@ -4238,14 +4258,14 @@ class P extends te {
4238
4258
  if (!t && !r)
4239
4259
  return null;
4240
4260
  try {
4241
- return P.credential(t, r);
4261
+ return C.credential(t, r);
4242
4262
  } catch {
4243
4263
  return null;
4244
4264
  }
4245
4265
  }
4246
4266
  }
4247
- P.GOOGLE_SIGN_IN_METHOD = "google.com";
4248
- P.PROVIDER_ID = "google.com";
4267
+ C.GOOGLE_SIGN_IN_METHOD = "google.com";
4268
+ C.PROVIDER_ID = "google.com";
4249
4269
  /**
4250
4270
  * @license
4251
4271
  * Copyright 2020 Google LLC
@@ -4262,7 +4282,7 @@ P.PROVIDER_ID = "google.com";
4262
4282
  * See the License for the specific language governing permissions and
4263
4283
  * limitations under the License.
4264
4284
  */
4265
- class k extends te {
4285
+ class R extends te {
4266
4286
  constructor() {
4267
4287
  super(
4268
4288
  "github.com"
@@ -4276,8 +4296,8 @@ class k extends te {
4276
4296
  */
4277
4297
  static credential(e) {
4278
4298
  return U._fromParams({
4279
- providerId: k.PROVIDER_ID,
4280
- signInMethod: k.GITHUB_SIGN_IN_METHOD,
4299
+ providerId: R.PROVIDER_ID,
4300
+ signInMethod: R.GITHUB_SIGN_IN_METHOD,
4281
4301
  accessToken: e
4282
4302
  });
4283
4303
  }
@@ -4287,7 +4307,7 @@ class k extends te {
4287
4307
  * @param userCredential - The user credential.
4288
4308
  */
4289
4309
  static credentialFromResult(e) {
4290
- return k.credentialFromTaggedObject(e);
4310
+ return R.credentialFromTaggedObject(e);
4291
4311
  }
4292
4312
  /**
4293
4313
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4296,20 +4316,20 @@ class k extends te {
4296
4316
  * @param userCredential - The user credential.
4297
4317
  */
4298
4318
  static credentialFromError(e) {
4299
- return k.credentialFromTaggedObject(e.customData || {});
4319
+ return R.credentialFromTaggedObject(e.customData || {});
4300
4320
  }
4301
4321
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4302
4322
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
4303
4323
  return null;
4304
4324
  try {
4305
- return k.credential(e.oauthAccessToken);
4325
+ return R.credential(e.oauthAccessToken);
4306
4326
  } catch {
4307
4327
  return null;
4308
4328
  }
4309
4329
  }
4310
4330
  }
4311
- k.GITHUB_SIGN_IN_METHOD = "github.com";
4312
- k.PROVIDER_ID = "github.com";
4331
+ R.GITHUB_SIGN_IN_METHOD = "github.com";
4332
+ R.PROVIDER_ID = "github.com";
4313
4333
  /**
4314
4334
  * @license
4315
4335
  * Copyright 2020 Google LLC
@@ -4326,7 +4346,7 @@ k.PROVIDER_ID = "github.com";
4326
4346
  * See the License for the specific language governing permissions and
4327
4347
  * limitations under the License.
4328
4348
  */
4329
- class R extends te {
4349
+ class P extends te {
4330
4350
  constructor() {
4331
4351
  super(
4332
4352
  "twitter.com"
@@ -4341,8 +4361,8 @@ class R extends te {
4341
4361
  */
4342
4362
  static credential(e, t) {
4343
4363
  return U._fromParams({
4344
- providerId: R.PROVIDER_ID,
4345
- signInMethod: R.TWITTER_SIGN_IN_METHOD,
4364
+ providerId: P.PROVIDER_ID,
4365
+ signInMethod: P.TWITTER_SIGN_IN_METHOD,
4346
4366
  oauthToken: e,
4347
4367
  oauthTokenSecret: t
4348
4368
  });
@@ -4353,7 +4373,7 @@ class R extends te {
4353
4373
  * @param userCredential - The user credential.
4354
4374
  */
4355
4375
  static credentialFromResult(e) {
4356
- return R.credentialFromTaggedObject(e);
4376
+ return P.credentialFromTaggedObject(e);
4357
4377
  }
4358
4378
  /**
4359
4379
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4362,7 +4382,7 @@ class R extends te {
4362
4382
  * @param userCredential - The user credential.
4363
4383
  */
4364
4384
  static credentialFromError(e) {
4365
- return R.credentialFromTaggedObject(e.customData || {});
4385
+ return P.credentialFromTaggedObject(e.customData || {});
4366
4386
  }
4367
4387
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4368
4388
  if (!e)
@@ -4371,14 +4391,14 @@ class R extends te {
4371
4391
  if (!t || !r)
4372
4392
  return null;
4373
4393
  try {
4374
- return R.credential(t, r);
4394
+ return P.credential(t, r);
4375
4395
  } catch {
4376
4396
  return null;
4377
4397
  }
4378
4398
  }
4379
4399
  }
4380
- R.TWITTER_SIGN_IN_METHOD = "twitter.com";
4381
- R.PROVIDER_ID = "twitter.com";
4400
+ P.TWITTER_SIGN_IN_METHOD = "twitter.com";
4401
+ P.PROVIDER_ID = "twitter.com";
4382
4402
  /**
4383
4403
  * @license
4384
4404
  * Copyright 2020 Google LLC
@@ -5569,7 +5589,7 @@ class As extends _n {
5569
5589
  let e = oe.get(this.auth._key());
5570
5590
  if (!e) {
5571
5591
  try {
5572
- const r = await Cs(this.resolver, this.auth) ? await super.execute() : null;
5592
+ const r = await ks(this.resolver, this.auth) ? await super.execute() : null;
5573
5593
  e = () => Promise.resolve(r);
5574
5594
  } catch (t) {
5575
5595
  e = () => Promise.reject(t);
@@ -5597,20 +5617,20 @@ class As extends _n {
5597
5617
  cleanUp() {
5598
5618
  }
5599
5619
  }
5600
- async function Cs(n, e) {
5601
- const t = Rs(e), r = ks(n);
5620
+ async function ks(n, e) {
5621
+ const t = Ps(e), r = Rs(n);
5602
5622
  if (!await r._isAvailable())
5603
5623
  return !1;
5604
5624
  const i = await r._get(t) === "true";
5605
5625
  return await r._remove(t), i;
5606
5626
  }
5607
- function Ps(n, e) {
5627
+ function Cs(n, e) {
5608
5628
  oe.set(n._key(), e);
5609
5629
  }
5610
- function ks(n) {
5630
+ function Rs(n) {
5611
5631
  return w(n._redirectPersistence);
5612
5632
  }
5613
- function Rs(n) {
5633
+ function Ps(n) {
5614
5634
  return se(Ss, n.config.apiKey, n.name);
5615
5635
  }
5616
5636
  async function Os(n, e, t = !1) {
@@ -5772,7 +5792,7 @@ function Fs(n) {
5772
5792
  * See the License for the specific language governing permissions and
5773
5793
  * limitations under the License.
5774
5794
  */
5775
- const Hs = new ee(3e4, 6e4);
5795
+ const $s = new ee(3e4, 6e4);
5776
5796
  function It() {
5777
5797
  const n = _().___jsl;
5778
5798
  if (n != null && n.H) {
@@ -5782,7 +5802,7 @@ function It() {
5782
5802
  n.CP[t] = null;
5783
5803
  }
5784
5804
  }
5785
- function $s(n) {
5805
+ function Hs(n) {
5786
5806
  return new Promise((e, t) => {
5787
5807
  var r, i, s;
5788
5808
  function o() {
@@ -5797,7 +5817,7 @@ function $s(n) {
5797
5817
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
5798
5818
  ));
5799
5819
  },
5800
- timeout: Hs.get()
5820
+ timeout: $s.get()
5801
5821
  });
5802
5822
  }
5803
5823
  if (!((i = (r = _().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
@@ -5820,7 +5840,7 @@ function $s(n) {
5820
5840
  }
5821
5841
  let ae = null;
5822
5842
  function Vs(n) {
5823
- return ae = ae || $s(n), ae;
5843
+ return ae = ae || Hs(n), ae;
5824
5844
  }
5825
5845
  /**
5826
5846
  * @license
@@ -6041,10 +6061,10 @@ function oo({ config: n }) {
6041
6061
  * See the License for the specific language governing permissions and
6042
6062
  * limitations under the License.
6043
6063
  */
6044
- const ke = "webStorageSupport";
6064
+ const Re = "webStorageSupport";
6045
6065
  class ao {
6046
6066
  constructor() {
6047
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = hn, this._completeRedirectFn = Os, this._overrideRedirectResult = Ps;
6067
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = hn, this._completeRedirectFn = Os, this._overrideRedirectResult = Cs;
6048
6068
  }
6049
6069
  // Wrapping in async even though we don't await anywhere in order
6050
6070
  // to make sure errors are raised as promise rejections
@@ -6084,9 +6104,9 @@ class ao {
6084
6104
  }), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
6085
6105
  }
6086
6106
  _isIframeWebStorageSupported(e, t) {
6087
- this.iframes[e._key()].send(ke, { type: ke }, (i) => {
6107
+ this.iframes[e._key()].send(Re, { type: Re }, (i) => {
6088
6108
  var s;
6089
- const o = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[ke];
6109
+ const o = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Re];
6090
6110
  o !== void 0 && t(!!o), T(
6091
6111
  e,
6092
6112
  "internal-error"
@@ -6201,7 +6221,7 @@ function ho(n) {
6201
6221
  tokenApiHost: "securetoken.googleapis.com",
6202
6222
  apiScheme: "https",
6203
6223
  sdkClientVersion: rn(n)
6204
- }, l = new $i(r, i, s, a);
6224
+ }, l = new Hi(r, i, s, a);
6205
6225
  return qi(l, t), l;
6206
6226
  },
6207
6227
  "PUBLIC"
@@ -6228,7 +6248,7 @@ function ho(n) {
6228
6248
  ).setInstantiationMode(
6229
6249
  "EXPLICIT"
6230
6250
  /* InstantiationMode.EXPLICIT */
6231
- )), H(Et, Tt, uo(n)), H(Et, Tt, "esm2017");
6251
+ )), $(Et, Tt, uo(n)), $(Et, Tt, "esm2017");
6232
6252
  }
6233
6253
  /**
6234
6254
  * @license
@@ -6307,7 +6327,7 @@ ho(
6307
6327
  "Browser"
6308
6328
  /* ClientPlatform.BROWSER */
6309
6329
  );
6310
- var vo = { authClientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", 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" } };
6330
+ var vo = { 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" } };
6311
6331
  const Eo = /* @__PURE__ */ Sn({
6312
6332
  __name: "App",
6313
6333
  setup(n) {
@@ -6318,11 +6338,11 @@ const Eo = /* @__PURE__ */ Sn({
6318
6338
  const c = await o.getCustomToken(), a = go(i);
6319
6339
  await ns(a, c);
6320
6340
  }
6321
- return s(), An(e.sessionUser, s), Cn(() => {
6341
+ return s(), An(e.sessionUser, s), kn(() => {
6322
6342
  t.isIframe && parent.postMessage({ event: "ready" }, "*");
6323
6343
  }), (o, c) => {
6324
- const a = Pn("RouterView");
6325
- return kn(), Rn(a, {
6344
+ const a = Cn("RouterView");
6345
+ return Rn(), Pn(a, {
6326
6346
  key: On(r).path
6327
6347
  });
6328
6348
  };