@feedmepos/mf-connect 0.1.73-prod → 0.1.75-prod

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 (93) hide show
  1. package/dist/{Analytic-B1W9EOk7.js → Analytic-DUEvJYDp.js} +11 -11
  2. package/dist/{App-Bdf0nl59.js → App-DYprmn8y.js} +7 -7
  3. package/dist/{Bin-CbfpIfVr.js → Bin-2Rk6Xq3_.js} +8 -8
  4. package/dist/{Broadcast-vuYGNulD.js → Broadcast-CjLQtCYq.js} +8 -8
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CImqySbX.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-j_mrCB0-.js} +6 -6
  6. package/dist/{Card-DHF1XqjW.js → Card-Nvb2bMYu.js} +18 -18
  7. package/dist/{Collections-BIMKG7_n.js → Collections-CWSK6IrK.js} +7 -7
  8. package/dist/{Credit-WIdPS8S7.js → Credit-DvH-Dl3G.js} +8 -8
  9. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bdj5fWXV.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-2z373aLJ.js} +36 -33
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CT98kjU_.js → EffectSheet.vue_vue_type_style_index_0_lang-BJtgROR-.js} +7 -7
  11. package/dist/{Experience-1wdYeoH4.js → Experience-IUi4k8hW.js} +8 -8
  12. package/dist/{Game-B1AymuDu.js → Game-DazUj4ey.js} +9 -9
  13. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js → ImageInput.vue_vue_type_script_setup_true_lang-D_bjZnDb.js} +44 -43
  14. package/dist/{Index-DvALk6U2.js → Index-BH_USKnN.js} +10 -10
  15. package/dist/{Marketing-CXO2CCnd.js → Marketing-C8vrSSVl.js} +6 -6
  16. package/dist/{Member-Cy4gIjVX.js → Member-CDn4aNMc.js} +10 -10
  17. package/dist/{MemberList-Cn9Vq2ju.js → MemberList-CCqh5_5q.js} +25 -25
  18. package/dist/{MemberTransactions-BihHL2f-.js → MemberTransactions-B-KMuPKv.js} +1 -1
  19. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-B_MnLb-p.js → MessageInput.vue_vue_type_script_setup_true_lang-BsHROUsQ.js} +4750 -4751
  20. package/dist/{Mission-CqJOvxSl.js → Mission-BVNGD2_t.js} +9 -9
  21. package/dist/{Overview-3dm9ZLF3.js → Overview-B0-d6Etz.js} +19 -19
  22. package/dist/{Point-CutXdajU.js → Point-Py0HmgNJ.js} +8 -8
  23. package/dist/{Promotion-BVrD0SHM.js → Promotion-DD1vORIo.js} +9 -9
  24. package/dist/{Queue-CMOKwBqW.js → Queue-BgijP6U_.js} +10 -10
  25. package/dist/{Record-DVIEw8NX.js → Record-BkeU8cPZ.js} +8 -8
  26. package/dist/{Reward-C83nQRHE.js → Reward-C7QrUqwC.js} +16 -16
  27. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Cg3sohaO.js → RewardGroup.vue_vue_type_script_setup_true_lang-CPu1mt3q.js} +12 -12
  28. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Ato9W1JG.js → RuleGroup.vue_vue_type_script_setup_true_lang-BcwKLWYK.js} +15 -15
  29. package/dist/{Segment-D_8jLxTB.js → Segment-DewclEb5.js} +23 -23
  30. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-MuGGj7i8.js → SelectItems.vue_vue_type_script_setup_true_lang-BD3SnaqX.js} +2 -2
  31. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CYbrjziq.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C50jqGKS.js} +12 -12
  32. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CfeVNZfQ.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B0PbKee9.js} +3 -3
  33. package/dist/{Setting-zIKdWJmf.js → Setting-CRx8nEir.js} +14 -14
  34. package/dist/{SettingAdvertisements-eosmP0yl.js → SettingAdvertisements-BSVD1jDZ.js} +12 -12
  35. package/dist/{Store-D37krB41.js → Store-Yp4PCYfn.js} +21 -21
  36. package/dist/{StoreRewards-DfaQh6jt.js → StoreRewards-DdlPqqgw.js} +15 -15
  37. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CB9UPQgn.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BhllzKIH.js} +19 -19
  38. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DEF-E7UE.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CYlmLezR.js} +1 -1
  39. package/dist/{Tier-CXtOsuM7.js → Tier-CacLJi_w.js} +21 -21
  40. package/dist/{Title-DwIoPsyY.js → Title-ChEdSy2e.js} +20 -20
  41. package/dist/{Transaction-BSBw0I28.js → Transaction-DzKPGg0z.js} +2 -2
  42. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D6dbora6.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BMFHV1rf.js} +6 -6
  43. package/dist/{Voucher-2CN1u3xX.js → Voucher-BY968ZWi.js} +12 -12
  44. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DQhR3F2V.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Dz00eJ9H.js} +12 -12
  45. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-aepurQpJ.js → ZodTextField.vue_vue_type_script_setup_true_lang-D2tee21e.js} +2 -2
  46. package/dist/{app-DzgN8VIL.js → app-BCpSaWo1.js} +1270 -840
  47. package/dist/{app-BJ03c7VA.js → app-DSrIQ4DD.js} +1 -1
  48. package/dist/app.js +1 -1
  49. package/dist/{business-DHDEmRpm.js → business-BUwrUiZd.js} +1 -1
  50. package/dist/{campaign-5vw3rg2H.js → campaign-C6r437Sl.js} +8 -8
  51. package/dist/{campaign-D0DcANeM.js → campaign-DRsLRoE_.js} +1 -1
  52. package/dist/{campaign.enum-CaT5mTE0.js → campaign.enum-DEVSDx1x.js} +1 -1
  53. package/dist/{campaign.fn-DPOcjdLA.js → campaign.fn-B4L_dDfB.js} +98 -98
  54. package/dist/{collectible.enum-CuY7aop-.js → collectible.enum-NmGkgbtx.js} +1 -1
  55. package/dist/{collection.fn-bdTbWWPw.js → collection.fn-DGxXkrKR.js} +2 -2
  56. package/dist/{dto-t86DacsS.js → dto-DkzC4UXh.js} +4 -4
  57. package/dist/{effect-CDCRS-kI.js → effect-CCkLz54g.js} +1 -1
  58. package/dist/{email-addresses-CNs57ODc.js → email-addresses-BI-hzqNp.js} +1 -1
  59. package/dist/{export-C-3TWsuT.js → export-CWdRRO2G.js} +3 -3
  60. package/dist/{helper-DiBQFbCE.js → helper-D_42I-gp.js} +1 -1
  61. package/dist/{index-CS4xzfCG.js → index-Bm1wYU16.js} +3 -3
  62. package/dist/{index-QSH3daDr.js → index-BrJL6ynS.js} +1 -1
  63. package/dist/{index-DnmOhAQZ.js → index-BzG4v0vX.js} +1 -1
  64. package/dist/{index-ci1qyKyk.js → index-CenoStQr.js} +57 -57
  65. package/dist/{index-AvhR3-S9.js → index-CjY4xs6I.js} +1 -1
  66. package/dist/{index-DRuvN39L.js → index-CjpGoDUN.js} +1 -1
  67. package/dist/{index-B_oEglSK.js → index-DAzFTh99.js} +3 -3
  68. package/dist/{index-Bqkf2I3B.js → index-DlgXjTqT.js} +2 -2
  69. package/dist/{index-Bqsb58iC.js → index-DuxdcE2l.js} +1 -1
  70. package/dist/{index-axIFdus9.js → index-Dv4rV3ao.js} +1023 -1023
  71. package/dist/{index-Cu7z7W2Y.js → index-GaIw_UC9.js} +1 -1
  72. package/dist/{index-Bvt6zMHd.js → index-dEHBqn4i.js} +4 -4
  73. package/dist/{index-BWiv5ujB.js → index-vp_gMtjn.js} +1 -1
  74. package/dist/{index.esm2017-K7B_CFZ2.js → index.esm2017-BzWkzxKj.js} +1 -1
  75. package/dist/{loading-BvwX4SYP.js → loading-CmNICqjK.js} +1 -1
  76. package/dist/{membership-q6KoGHzP.js → membership-DprK3B6Y.js} +3 -3
  77. package/dist/{money-Dw1tcq03.js → money-Dg_iubf-.js} +1 -1
  78. package/dist/{number-DZ5j2LNK.js → number-Ca2cdigB.js} +1 -1
  79. package/dist/{objectid-AbTCXTJX.js → objectid-D1ROVHbY.js} +1 -1
  80. package/dist/{plugins-B2AJLYGy.js → plugins-mrq2iOcI.js} +3 -3
  81. package/dist/{reward-5Jz1gKqp.js → reward-CVYK2q-L.js} +1 -1
  82. package/dist/{rule-CTVL3d0Z.js → rule-BXbTGISB.js} +3 -3
  83. package/dist/{rule-builder-DAbB538t.js → rule-builder-BRzmaFCC.js} +1 -1
  84. package/dist/{template-xPFGoucw.js → template-CtPwWw0c.js} +5 -5
  85. package/dist/{timezone-Dqkk-GNG.js → timezone-B64oxXr_.js} +1 -1
  86. package/dist/trigger-Cg7nb88O.js +213 -0
  87. package/dist/user-mcrAB16z.js +55 -0
  88. package/dist/{vue-i18n-Fa1iNSCc.js → vue-i18n-BbxdiSSM.js} +357 -357
  89. package/dist/{xlsx-CLNs_XIM.js → xlsx-X5xo5NGx.js} +1 -1
  90. package/dist/{zod-Bg2FbC-D.js → zod-DrrudjoP.js} +32 -31
  91. package/package.json +1 -1
  92. package/dist/trigger-CLQBTBFM.js +0 -144
  93. package/dist/user-B9ACiV1H.js +0 -54
@@ -1,6 +1,6 @@
1
- import { withPermission as T, Permission as x } from "@feedmepos/mf-common";
2
- import { defineAsyncComponent as C } from "vue";
3
- const Me = {
1
+ import { withPermission as C, Permission as x } from "@feedmepos/mf-common";
2
+ import { defineAsyncComponent as T } from "vue";
3
+ const Ne = {
4
4
  common: {
5
5
  submit: "Submit",
6
6
  confirm: "Confirm",
@@ -11,13 +11,18 @@ const Me = {
11
11
  edit: "Edit",
12
12
  add: "Add",
13
13
  optional: "Optional",
14
+ optionalLabel: "(optional)",
14
15
  location: "Location",
15
16
  allLocations: "All locations",
16
17
  back: "Back",
17
18
  next: "Next",
18
19
  startDate: "Start date",
19
20
  endDate: "End date",
20
- to: "to"
21
+ to: "to",
22
+ imageInput: {
23
+ recommendedSize: "Recommended: 950px x 600px",
24
+ accepts: "Accepts {accept}"
25
+ }
21
26
  },
22
27
  template: {
23
28
  general: "General",
@@ -35,6 +40,8 @@ const Me = {
35
40
  voucher_usage_configuration: "Voucher usage configuration",
36
41
  notify_audience: "Notify audience",
37
42
  notify_message: "Notify message",
43
+ redemption: "Redemption",
44
+ code: "Code",
38
45
  earning_type: "Earning type",
39
46
  validity_configuration: "Validity configuration",
40
47
  mission_participation: "Mission participation",
@@ -50,6 +57,7 @@ const Me = {
50
57
  voucher_name: "Voucher name",
51
58
  voucher_description: "Voucher description",
52
59
  voucher_image: "Voucher image",
60
+ campaign_image: "Promotion Image",
53
61
  target_location: "Target location",
54
62
  send_notification: "Send notification",
55
63
  notification_message: "Notification message",
@@ -223,7 +231,45 @@ const Me = {
223
231
  create_campaign_title: "Create {typeName} Campaign"
224
232
  },
225
233
  trigger: {
226
- description: "Define the conditions that must be met to activate a reward."
234
+ description: "Define the conditions that must be met to activate a reward.",
235
+ options: {
236
+ BILL_COMPLETED: {
237
+ name: "Bill complete",
238
+ description: "Reward customers upon the completion of their bill."
239
+ },
240
+ FEEDBACK: {
241
+ name: "Feedback",
242
+ description: "Reward customers for providing feedback."
243
+ },
244
+ GAME_COMPLETED: {
245
+ name: "Game complete",
246
+ description: "Reward customers upon the completion of a game."
247
+ },
248
+ MAKING_ORDER: {
249
+ name: "Making order",
250
+ description: "Reward customers upon the creation of their order."
251
+ },
252
+ MEMBERSHIP_JOINED: {
253
+ name: "Member joined",
254
+ description: "Trigger rewards when customers join your membership program."
255
+ },
256
+ SCHEDULE: {
257
+ name: "Schedule",
258
+ description: "Set rewards to be triggered at specific times or dates."
259
+ },
260
+ SIMPLE_CLAIM: {
261
+ name: "Simple claim",
262
+ description: "Activate rewards when customers claim an offer."
263
+ },
264
+ TIER_UPGRADED: {
265
+ name: "Tier upgrade",
266
+ description: "Activate rewards when their membership tier gets upgraded."
267
+ },
268
+ ISSUE_REWARD: {
269
+ name: "Issue reward",
270
+ description: "Triggers whenever customer receives a reward in any kind."
271
+ }
272
+ }
227
273
  },
228
274
  mission: {
229
275
  title: "Mission",
@@ -271,6 +317,46 @@ const Me = {
271
317
  success: "Broadcast {action} successfully"
272
318
  }
273
319
  },
320
+ messageInput: {
321
+ whatsappUnavailable: "WhatsApp channel is not available. Please set up a WhatsApp number with 'Marketing' purpose",
322
+ manageWhatsappChannel: "Manage WhatsApp Channel",
323
+ refreshAfterSetup: "Refresh this page after setting up.",
324
+ whatsappMessage: "WhatsApp Message",
325
+ whatsappMessageDescription: "Create and edit your WhatsApp message content. You can use variables to personalise your message.",
326
+ editWhatsappMessage: "Edit WhatsApp Message",
327
+ addMessage: "Add message",
328
+ previewMessage: "Preview message"
329
+ },
330
+ emailEditor: {
331
+ header: "Email editor",
332
+ editEmail: "Edit email",
333
+ emailTitle: "Email title"
334
+ },
335
+ messageOptions: {
336
+ user: {
337
+ name: "User name",
338
+ birthday: "Birthday",
339
+ joinAt: "Join at",
340
+ expiringVouchers: {
341
+ days7: "Expiring vouchers in 7 days",
342
+ days30: "Expiring vouchers in 30 days",
343
+ days90: "Expiring vouchers in 90 days"
344
+ },
345
+ tier: "User tier",
346
+ point: "User experience",
347
+ gender: "Gender",
348
+ phoneNumber: "Phone Number"
349
+ },
350
+ transaction: {
351
+ amount: "Reward amount"
352
+ },
353
+ collectible: {
354
+ name: "Reward name"
355
+ },
356
+ membership: {
357
+ url: "Membership URL"
358
+ }
359
+ },
274
360
  promotion: {
275
361
  title: "Promotion",
276
362
  typeLabel: "{type} promotion",
@@ -1224,7 +1310,7 @@ const Me = {
1224
1310
  effect_required: "Effect is required"
1225
1311
  }
1226
1312
  }, Be = {
1227
- connect: Me,
1313
+ connect: Ne,
1228
1314
  connectZod: De,
1229
1315
  connectZodCustom: Le
1230
1316
  }, je = {
@@ -1237,12 +1323,17 @@ const Me = {
1237
1323
  edit: "编辑",
1238
1324
  add: "添加",
1239
1325
  optional: "可选",
1326
+ optionalLabel: "(可选)",
1240
1327
  back: "返回",
1241
1328
  next: "下一步",
1242
1329
  submit: "提交",
1243
1330
  startDate: "开始日期",
1244
1331
  endDate: "结束日期",
1245
- to: "至"
1332
+ to: "至",
1333
+ imageInput: {
1334
+ recommendedSize: "建议尺寸:950px x 600px",
1335
+ accepts: "支持格式 {accept}"
1336
+ }
1246
1337
  },
1247
1338
  template: {
1248
1339
  general: "常规",
@@ -1260,6 +1351,8 @@ const Me = {
1260
1351
  voucher_usage_configuration: "优惠券使用配置",
1261
1352
  notify_audience: "通知受众",
1262
1353
  notify_message: "通知消息",
1354
+ redemption: "兑换",
1355
+ code: "代码",
1263
1356
  earning_type: "获取类型",
1264
1357
  validity_configuration: "有效期配置",
1265
1358
  mission_participation: "任务参与",
@@ -1275,6 +1368,7 @@ const Me = {
1275
1368
  voucher_name: "优惠券名称",
1276
1369
  voucher_description: "优惠券描述",
1277
1370
  voucher_image: "优惠券图片",
1371
+ campaign_image: "促销活动图片",
1278
1372
  target_location: "目标位置",
1279
1373
  send_notification: "发送通知",
1280
1374
  notification_message: "通知消息",
@@ -1435,7 +1529,45 @@ const Me = {
1435
1529
  create_campaign_title: "创建{typeName}活动"
1436
1530
  },
1437
1531
  trigger: {
1438
- description: "设定激活奖励所需满足的条件。"
1532
+ description: "设定激活奖励所需满足的条件。",
1533
+ options: {
1534
+ BILL_COMPLETED: {
1535
+ name: "账单完成",
1536
+ description: "在帐单完成时奖励客户。"
1537
+ },
1538
+ FEEDBACK: {
1539
+ name: "反馈",
1540
+ description: "奖励提供反馈的客户。"
1541
+ },
1542
+ GAME_COMPLETED: {
1543
+ name: "游戏完成",
1544
+ description: "客户完成游戏后奖励。"
1545
+ },
1546
+ MAKING_ORDER: {
1547
+ name: "下单",
1548
+ description: "客户创建订单时奖励。"
1549
+ },
1550
+ MEMBERSHIP_JOINED: {
1551
+ name: "加入会员",
1552
+ description: "客户加入会员计划时触发奖励。"
1553
+ },
1554
+ SCHEDULE: {
1555
+ name: "定时",
1556
+ description: "在指定时间或日期触发奖励。"
1557
+ },
1558
+ SIMPLE_CLAIM: {
1559
+ name: "直接领取",
1560
+ description: "客户领取优惠时激活奖励。"
1561
+ },
1562
+ TIER_UPGRADED: {
1563
+ name: "等级升级",
1564
+ description: "客户会员等级升级时激活奖励。"
1565
+ },
1566
+ ISSUE_REWARD: {
1567
+ name: "发放奖励",
1568
+ description: "客户收到任何奖励时触发。"
1569
+ }
1570
+ }
1439
1571
  },
1440
1572
  mission: {
1441
1573
  title: "任务",
@@ -1483,6 +1615,46 @@ const Me = {
1483
1615
  success: "广播{action}成功"
1484
1616
  }
1485
1617
  },
1618
+ messageInput: {
1619
+ whatsappUnavailable: "WhatsApp 频道不可用。请设置一个具有「营销」用途的 WhatsApp 号码",
1620
+ manageWhatsappChannel: "管理 WhatsApp 频道",
1621
+ refreshAfterSetup: "设置完成后请刷新此页面",
1622
+ whatsappMessage: "WhatsApp 消息",
1623
+ whatsappMessageDescription: "创建并编辑您的 WhatsApp 消息内容。您可以使用变量来个性化您的消息。",
1624
+ editWhatsappMessage: "编辑 WhatsApp 消息",
1625
+ addMessage: "添加消息",
1626
+ previewMessage: "预览消息"
1627
+ },
1628
+ emailEditor: {
1629
+ header: "电子邮件编辑器",
1630
+ editEmail: "编辑电子邮件",
1631
+ emailTitle: "邮件标题"
1632
+ },
1633
+ messageOptions: {
1634
+ user: {
1635
+ name: "用户姓名",
1636
+ birthday: "生日",
1637
+ joinAt: "加入日期",
1638
+ expiringVouchers: {
1639
+ days7: "7天内到期的优惠券",
1640
+ days30: "30天内到期的优惠券",
1641
+ days90: "90天内到期的优惠券"
1642
+ },
1643
+ tier: "用户等级",
1644
+ point: "用户经验",
1645
+ gender: "性别",
1646
+ phoneNumber: "手机号码"
1647
+ },
1648
+ transaction: {
1649
+ amount: "奖励金额"
1650
+ },
1651
+ collectible: {
1652
+ name: "奖励名称"
1653
+ },
1654
+ membership: {
1655
+ url: "会员链接"
1656
+ }
1657
+ },
1486
1658
  promotion: {
1487
1659
  title: "促销",
1488
1660
  typeLabel: "{type} 促销",
@@ -2282,7 +2454,7 @@ const Me = {
2282
2454
  with: "且",
2283
2455
  removeConfirm: "您确定要删除此折扣吗?"
2284
2456
  }
2285
- }, Ve = {
2457
+ }, Ue = {
2286
2458
  errors: {
2287
2459
  invalid_type: "预期输入为{{expected}},而输入为{{received}}",
2288
2460
  invalid_type_received_undefined: "必填",
@@ -2394,7 +2566,7 @@ const Me = {
2394
2566
  map: "字典",
2395
2567
  set: "集合"
2396
2568
  }
2397
- }, Ue = {
2569
+ }, Ve = {
2398
2570
  timeframe: {
2399
2571
  end_before_start: "结束日期必须晚于或等于开始日期"
2400
2572
  },
@@ -2412,8 +2584,8 @@ const Me = {
2412
2584
  }
2413
2585
  }, Ze = {
2414
2586
  connect: je,
2415
- connectZod: Ve,
2416
- connectZodCustom: Ue
2587
+ connectZod: Ue,
2588
+ connectZodCustom: Ve
2417
2589
  }, qe = {
2418
2590
  campaign: {
2419
2591
  common: {
@@ -2524,6 +2696,46 @@ const Me = {
2524
2696
  success: "บรอดแคสต์ {action} สำเร็จ"
2525
2697
  }
2526
2698
  },
2699
+ messageInput: {
2700
+ whatsappUnavailable: "ช่องทาง WhatsApp ยังไม่พร้อมใช้งาน กรุณาตั้งค่าหมายเลข WhatsApp ให้มีวัตถุประสงค์ 'Marketing'",
2701
+ manageWhatsappChannel: "จัดการช่อง WhatsApp",
2702
+ refreshAfterSetup: "รีเฟรชหน้านี้หลังจากตั้งค่าเสร็จแล้ว",
2703
+ whatsappMessage: "ข้อความ WhatsApp",
2704
+ whatsappMessageDescription: "สร้างและแก้ไขเนื้อหาข้อความ WhatsApp ของคุณ คุณสามารถใช้ตัวแปรเพื่อปรับแต่งข้อความของคุณ",
2705
+ editWhatsappMessage: "แก้ไขข้อความ WhatsApp",
2706
+ addMessage: "เพิ่มข้อความ",
2707
+ previewMessage: "ดูตัวอย่างข้อความ"
2708
+ },
2709
+ emailEditor: {
2710
+ header: "ตัวแก้ไขอีเมล",
2711
+ editEmail: "แก้ไขอีเมล",
2712
+ emailTitle: "หัวเรื่องอีเมล"
2713
+ },
2714
+ messageOptions: {
2715
+ user: {
2716
+ name: "ชื่อผู้ใช้",
2717
+ birthday: "วันเกิด",
2718
+ joinAt: "วันที่เข้าร่วม",
2719
+ expiringVouchers: {
2720
+ days7: "คูปองที่ใกล้หมดอายุใน 7 วัน",
2721
+ days30: "คูปองที่ใกล้หมดอายุใน 30 วัน",
2722
+ days90: "คูปองที่ใกล้หมดอายุใน 90 วัน"
2723
+ },
2724
+ tier: "ระดับผู้ใช้",
2725
+ point: "ประสบการณ์ผู้ใช้",
2726
+ gender: "เพศ",
2727
+ phoneNumber: "หมายเลขโทรศัพท์"
2728
+ },
2729
+ transaction: {
2730
+ amount: "จำนวนรางวัล"
2731
+ },
2732
+ collectible: {
2733
+ name: "ชื่อรางวัล"
2734
+ },
2735
+ membership: {
2736
+ url: "URL สมาชิก"
2737
+ }
2738
+ },
2527
2739
  promotion: {
2528
2740
  title: "โปรโมชัน",
2529
2741
  typeLabel: "{type} โปรโมชัน",
@@ -2566,7 +2778,45 @@ const Me = {
2566
2778
  }
2567
2779
  },
2568
2780
  trigger: {
2569
- description: "กำหนดเงื่อนไขที่ต้องปฏิบัติตามเพื่อเปิดใช้รางวัล"
2781
+ description: "กำหนดเงื่อนไขที่ต้องปฏิบัติตามเพื่อเปิดใช้รางวัล",
2782
+ options: {
2783
+ BILL_COMPLETED: {
2784
+ name: "ชำระเงินเรียบร้อย",
2785
+ description: "มอบรางวัลลูกค้าเมื่อชำระเงินเรียบร้อย"
2786
+ },
2787
+ FEEDBACK: {
2788
+ name: "ฟีดแบค",
2789
+ description: "มอบรางวัลลูกค้าที่ให้เฟีดแบค"
2790
+ },
2791
+ GAME_COMPLETED: {
2792
+ name: "เล่นเกมเสร็จสิ้น",
2793
+ description: "มอบรางวัลลูกค้าเมื่อเล่นเกมเสร็จสิ้น"
2794
+ },
2795
+ MAKING_ORDER: {
2796
+ name: "สั่งอาหาร",
2797
+ description: "มอบรางวัลลูกค้าเมื่อสร้างออเดอร์"
2798
+ },
2799
+ MEMBERSHIP_JOINED: {
2800
+ name: "เข้าร่วมเป็นสมาชิก",
2801
+ description: "เปิดใช้รางวัลเมื่อลูกค้าเข้าร่วมโปรแกรมสมาชิกของคุณ"
2802
+ },
2803
+ SCHEDULE: {
2804
+ name: "ตามเวลาที่กำหนด",
2805
+ description: "ตั้งรางวัลให้เปิดใช้ตามเวลาหรือวันที่ที่กำหนด"
2806
+ },
2807
+ SIMPLE_CLAIM: {
2808
+ name: "เคลมสิทธิ์",
2809
+ description: "เปิดใช้รางวัลเมื่อลูกค้าเคลมสิทธิ์"
2810
+ },
2811
+ TIER_UPGRADED: {
2812
+ name: "อัปเกรดระดับชั้น",
2813
+ description: "เปิดใช้รางวัลเมื่อระดับชั้นสมาชิกถูกอัปเกรด"
2814
+ },
2815
+ ISSUE_REWARD: {
2816
+ name: "มอบรางวัล",
2817
+ description: "เปิดใช้ทุกครั้งที่ลูกค้าได้รับรางวัลไม่ว่าจะเป็นประเภทใด"
2818
+ }
2819
+ }
2570
2820
  },
2571
2821
  earningOption: {
2572
2822
  type: {
@@ -3229,13 +3479,18 @@ const Me = {
3229
3479
  edit: "แก้ไข",
3230
3480
  add: "เพิ่ม",
3231
3481
  optional: "ไม่บังคับ",
3482
+ optionalLabel: "(ไม่บังคับ)",
3232
3483
  location: "สาขา",
3233
3484
  allLocations: "ทุกสาขา",
3234
3485
  back: "ย้อนกลับ",
3235
3486
  next: "ถัดไป",
3236
3487
  startDate: "วันที่เริ่มต้น",
3237
3488
  endDate: "วันที่สิ้นสุด",
3238
- to: "ถึง"
3489
+ to: "ถึง",
3490
+ imageInput: {
3491
+ recommendedSize: "แนะนำ: 950px x 600px",
3492
+ accepts: "รองรับ {accept}"
3493
+ }
3239
3494
  },
3240
3495
  template: {
3241
3496
  general: "ทั่วไป",
@@ -3253,6 +3508,8 @@ const Me = {
3253
3508
  voucher_usage_configuration: "การตั้งค่าการใช้บัตรกำนัล",
3254
3509
  notify_audience: "แจ้งกลุ่มเป้าหมาย",
3255
3510
  notify_message: "ข้อความแจ้ง",
3511
+ redemption: "การแลก",
3512
+ code: "รหัส",
3256
3513
  earning_type: "ประเภทการได้รับ",
3257
3514
  validity_configuration: "การตั้งค่าความถูกต้อง",
3258
3515
  mission_participation: "การเข้าร่วม Mission",
@@ -3268,6 +3525,7 @@ const Me = {
3268
3525
  voucher_name: "ชื่อบัตรกำนัล",
3269
3526
  voucher_description: "คำอธิบายบัตรกำนัล",
3270
3527
  voucher_image: "รูปภาพบัตรกำนัล",
3528
+ campaign_image: "รูปภาพโปรโมชั่น",
3271
3529
  target_location: "สาขาเป้าหมาย",
3272
3530
  send_notification: "ส่งการแจ้งเตือน",
3273
3531
  notification_message: "ข้อความแจ้งเตือน",
@@ -3508,7 +3766,7 @@ const Me = {
3508
3766
  with: "พร้อม",
3509
3767
  removeConfirm: "คุณแน่ใจหรือไม่ว่าต้องการลบส่วนลดนี้?"
3510
3768
  }
3511
- }, $e = {
3769
+ }, Ge = {
3512
3770
  invalid_type: "คาดหวัง {{expected}} แต่ได้รับ {{received}}",
3513
3771
  errors: {
3514
3772
  invalid_type: "คาดหวัง {{expected}} แต่ได้รับ {{received}}",
@@ -3621,7 +3879,7 @@ const Me = {
3621
3879
  map: "แมป",
3622
3880
  set: "เซ็ต"
3623
3881
  }
3624
- }, Ge = {
3882
+ }, We = {
3625
3883
  timeframe: {
3626
3884
  end_before_start: "วันสิ้นสุดต้องอยู่หลังหรือเท่ากับวันเริ่มต้น"
3627
3885
  },
@@ -3637,11 +3895,11 @@ const Me = {
3637
3895
  reward_threshold_unique: "เกณฑ์รางวัลต้องไม่ซ้ำกัน",
3638
3896
  effect_required: "จำเป็นต้องระบุผล"
3639
3897
  }
3640
- }, Fe = {
3898
+ }, $e = {
3641
3899
  connect: qe,
3642
- connectZod: $e,
3643
- connectZodCustom: Ge
3644
- }, We = {
3900
+ connectZod: Ge,
3901
+ connectZodCustom: We
3902
+ }, Fe = {
3645
3903
  common: {
3646
3904
  confirm: "確認",
3647
3905
  cancel: "取消",
@@ -3651,12 +3909,17 @@ const Me = {
3651
3909
  edit: "編輯",
3652
3910
  add: "添加",
3653
3911
  optional: "可選",
3912
+ optionalLabel: "(可選)",
3654
3913
  back: "返回",
3655
3914
  next: "下一步",
3656
3915
  submit: "提交",
3657
3916
  startDate: "開始日期",
3658
3917
  endDate: "結束日期",
3659
- to: "至"
3918
+ to: "至",
3919
+ imageInput: {
3920
+ recommendedSize: "建議尺寸:950px x 600px",
3921
+ accepts: "支援格式 {accept}"
3922
+ }
3660
3923
  },
3661
3924
  template: {
3662
3925
  general: "常規",
@@ -3674,6 +3937,8 @@ const Me = {
3674
3937
  voucher_usage_configuration: "優惠券使用配置",
3675
3938
  notify_audience: "通知受眾",
3676
3939
  notify_message: "通知消息",
3940
+ redemption: "兀換",
3941
+ code: "代碼",
3677
3942
  earning_type: "獲取類型",
3678
3943
  validity_configuration: "有效期配置",
3679
3944
  mission_participation: "任務參與",
@@ -3689,6 +3954,7 @@ const Me = {
3689
3954
  voucher_name: "優惠券名稱",
3690
3955
  voucher_description: "優惠券描述",
3691
3956
  voucher_image: "優惠券圖片",
3957
+ campaign_image: "促銷活動圖片",
3692
3958
  target_location: "目標位置",
3693
3959
  send_notification: "發送通知",
3694
3960
  notification_message: "通知消息",
@@ -3849,7 +4115,45 @@ const Me = {
3849
4115
  create_campaign_title: "創建{typeName}活動"
3850
4116
  },
3851
4117
  trigger: {
3852
- description: "設定啟用獎勵所需滿足的條件。"
4118
+ description: "設定啟用獎勵所需滿足的條件。",
4119
+ options: {
4120
+ BILL_COMPLETED: {
4121
+ name: "賬單完成",
4122
+ description: "帳單完成時獎勵客戶。"
4123
+ },
4124
+ FEEDBACK: {
4125
+ name: "回饋",
4126
+ description: "獎勵提供回饋的客戶。"
4127
+ },
4128
+ GAME_COMPLETED: {
4129
+ name: "遊戲完成",
4130
+ description: "客戶完成遊戲時獎勵。"
4131
+ },
4132
+ MAKING_ORDER: {
4133
+ name: "建立訂單",
4134
+ description: "客戶建立訂單時獎勵。"
4135
+ },
4136
+ MEMBERSHIP_JOINED: {
4137
+ name: "加入會員",
4138
+ description: "客戶加入會員計畫時觸發獎勵。"
4139
+ },
4140
+ SCHEDULE: {
4141
+ name: "排程",
4142
+ description: "在指定時間或日期觸發獎勵。"
4143
+ },
4144
+ SIMPLE_CLAIM: {
4145
+ name: "簡單領取",
4146
+ description: "客戶領取優惠時啟用獎勵。"
4147
+ },
4148
+ TIER_UPGRADED: {
4149
+ name: "等級升級",
4150
+ description: "會員等級升級時啟用獎勵。"
4151
+ },
4152
+ ISSUE_REWARD: {
4153
+ name: "發放獎勵",
4154
+ description: "客戶收到任何獎勵時觸發。"
4155
+ }
4156
+ }
3853
4157
  },
3854
4158
  mission: {
3855
4159
  title: "任務",
@@ -3897,6 +4201,46 @@ const Me = {
3897
4201
  success: "廣播{action}成功"
3898
4202
  }
3899
4203
  },
4204
+ messageInput: {
4205
+ whatsappUnavailable: "WhatsApp 頻道不可用。請設定一個具有「行銷」用途的 WhatsApp 號碼",
4206
+ manageWhatsappChannel: "管理 WhatsApp 頻道",
4207
+ refreshAfterSetup: "設定完成後請重新整理此頁面",
4208
+ whatsappMessage: "WhatsApp 訊息",
4209
+ whatsappMessageDescription: "建立並編輯您的 WhatsApp 訊息內容。您可以使用變數來個人化您的訊息。",
4210
+ editWhatsappMessage: "編輯 WhatsApp 訊息",
4211
+ addMessage: "新增訊息",
4212
+ previewMessage: "預覽訊息"
4213
+ },
4214
+ emailEditor: {
4215
+ header: "電子郵件編輯器",
4216
+ editEmail: "編輯電子郵件",
4217
+ emailTitle: "郵件標題"
4218
+ },
4219
+ messageOptions: {
4220
+ user: {
4221
+ name: "用戶姓名",
4222
+ birthday: "生日",
4223
+ joinAt: "加入日期",
4224
+ expiringVouchers: {
4225
+ days7: "7天內到期的優惠券",
4226
+ days30: "30天內到期的優惠券",
4227
+ days90: "90天內到期的優惠券"
4228
+ },
4229
+ tier: "用戶等級",
4230
+ point: "用戶經驗",
4231
+ gender: "性別",
4232
+ phoneNumber: "手機號碼"
4233
+ },
4234
+ transaction: {
4235
+ amount: "獎勵金額"
4236
+ },
4237
+ collectible: {
4238
+ name: "獎勵名稱"
4239
+ },
4240
+ membership: {
4241
+ url: "會員連結"
4242
+ }
4243
+ },
3900
4244
  promotion: {
3901
4245
  title: "促銷",
3902
4246
  typeLabel: "{type} 促銷",
@@ -4815,7 +5159,7 @@ const Me = {
4815
5159
  effect_required: "效果是必需的"
4816
5160
  }
4817
5161
  }, ze = {
4818
- connect: We,
5162
+ connect: Fe,
4819
5163
  connectZod: He,
4820
5164
  connectZodCustom: Ye
4821
5165
  }, Ke = {
@@ -4829,13 +5173,18 @@ const Me = {
4829
5173
  edit: "Edit",
4830
5174
  add: "追加",
4831
5175
  optional: "Optional",
5176
+ optionalLabel: "(任意)",
4832
5177
  location: "位置: ",
4833
5178
  allLocations: "すべての場所",
4834
5179
  back: "戻る",
4835
5180
  next: "次へ",
4836
5181
  startDate: "開始日",
4837
5182
  endDate: "終了日",
4838
- to: "〜"
5183
+ to: "〜",
5184
+ imageInput: {
5185
+ recommendedSize: "推奨サイズ:950px x 600px",
5186
+ accepts: "対応形式 {accept}"
5187
+ }
4839
5188
  },
4840
5189
  template: {
4841
5190
  general: "General",
@@ -4853,6 +5202,8 @@ const Me = {
4853
5202
  voucher_usage_configuration: "Voucher usage configuration",
4854
5203
  notify_audience: "Notify audience",
4855
5204
  notify_message: "Notify message",
5205
+ redemption: "履消",
5206
+ code: "コード",
4856
5207
  earning_type: "Earning type",
4857
5208
  validity_configuration: "Validity configuration",
4858
5209
  mission_participation: "Mission participation",
@@ -4868,6 +5219,7 @@ const Me = {
4868
5219
  voucher_name: "Voucher name",
4869
5220
  voucher_description: "Voucher description",
4870
5221
  voucher_image: "Voucher image",
5222
+ campaign_image: "プロモーション画像",
4871
5223
  target_location: "Target location",
4872
5224
  send_notification: "Send notification",
4873
5225
  notification_message: "Notification message",
@@ -5006,7 +5358,45 @@ const Me = {
5006
5358
  create_campaign_title: "{typeName}キャンペーンを作成"
5007
5359
  },
5008
5360
  trigger: {
5009
- description: "報酬を有効にするために満たすべき条件を定義します。"
5361
+ description: "報酬を有効にするために満たすべき条件を定義します。",
5362
+ options: {
5363
+ BILL_COMPLETED: {
5364
+ name: "会計完了",
5365
+ description: "会計完了時にお客様へ報酬。"
5366
+ },
5367
+ FEEDBACK: {
5368
+ name: "フィードバック",
5369
+ description: "フィードバックを提供したお客様に報酬。"
5370
+ },
5371
+ GAME_COMPLETED: {
5372
+ name: "ゲーム完了",
5373
+ description: "ゲーム完了時にお客様へ報酬。"
5374
+ },
5375
+ MAKING_ORDER: {
5376
+ name: "注文作成",
5377
+ description: "お客様が注文を作成した際に報酬。"
5378
+ },
5379
+ MEMBERSHIP_JOINED: {
5380
+ name: "会員登録",
5381
+ description: "お客様が会員プログラムに参加した際に報酬。"
5382
+ },
5383
+ SCHEDULE: {
5384
+ name: "スケジュール",
5385
+ description: "指定した時刻または日付に報酬をトリガー。"
5386
+ },
5387
+ SIMPLE_CLAIM: {
5388
+ name: "シンプルクレーム",
5389
+ description: "お客様がオファーをクレームした際に報酬を有効化。"
5390
+ },
5391
+ TIER_UPGRADED: {
5392
+ name: "ティアアップグレード",
5393
+ description: "会員ティアがアップグレードされた際に報酬を有効化。"
5394
+ },
5395
+ ISSUE_REWARD: {
5396
+ name: "報酬発行",
5397
+ description: "お客様が何らかの報酬を受け取るたびにトリガー。"
5398
+ }
5399
+ }
5010
5400
  },
5011
5401
  mission: {
5012
5402
  title: "ミッション",
@@ -5054,6 +5444,46 @@ const Me = {
5054
5444
  success: "{action} を正常にブロードキャストしました"
5055
5445
  }
5056
5446
  },
5447
+ messageInput: {
5448
+ whatsappUnavailable: "WhatsApp チャンネルは利用できません。「マーケティング」目的の WhatsApp 番号を設定してください",
5449
+ manageWhatsappChannel: "WhatsApp チャンネルを管理する",
5450
+ refreshAfterSetup: "設定後にこのページを更新してください。",
5451
+ whatsappMessage: "WhatsApp メッセージ",
5452
+ whatsappMessageDescription: "WhatsApp メッセージの内容を作成・編集できます。変数を使用してメッセージをパーソナライズできます。",
5453
+ editWhatsappMessage: "WhatsApp メッセージを編集する",
5454
+ addMessage: "メッセージを追加",
5455
+ previewMessage: "メッセージをプレビュー"
5456
+ },
5457
+ emailEditor: {
5458
+ header: "メールエディター",
5459
+ editEmail: "メールを編集",
5460
+ emailTitle: "メールのタイトル"
5461
+ },
5462
+ messageOptions: {
5463
+ user: {
5464
+ name: "ユーザー名",
5465
+ birthday: "誕生日",
5466
+ joinAt: "参加日",
5467
+ expiringVouchers: {
5468
+ days7: "7日以内に期限切れのバウチャー",
5469
+ days30: "30日以内に期限切れのバウチャー",
5470
+ days90: "90日以内に期限切れのバウチャー"
5471
+ },
5472
+ tier: "ユーザーランク",
5473
+ point: "ユーザー経験値",
5474
+ gender: "性別",
5475
+ phoneNumber: "電話番号"
5476
+ },
5477
+ transaction: {
5478
+ amount: "報酬金額"
5479
+ },
5480
+ collectible: {
5481
+ name: "報酬名"
5482
+ },
5483
+ membership: {
5484
+ url: "メンバーシップ URL"
5485
+ }
5486
+ },
5057
5487
  promotion: {
5058
5488
  title: "プロモーション",
5059
5489
  typeLabel: "{type} プロモーション",
@@ -5877,7 +6307,7 @@ const Me = {
5877
6307
  with: "笠件",
5878
6308
  removeConfirm: "この割引を削除してもよいですか?"
5879
6309
  }
5880
- }, Xe = {
6310
+ }, Je = {
5881
6311
  invalid_type: "予想{{expected}}、受信{{received}}",
5882
6312
  errors: {
5883
6313
  invalid_type: "予想{{expected}}、受信{{received}}",
@@ -5990,7 +6420,7 @@ const Me = {
5990
6420
  map: "地図",
5991
6421
  set: "セット"
5992
6422
  }
5993
- }, Je = {
6423
+ }, Xe = {
5994
6424
  timeframe: {
5995
6425
  end_before_start: "終了日は開始日以降か同じである必要があります"
5996
6426
  },
@@ -6008,48 +6438,48 @@ const Me = {
6008
6438
  }
6009
6439
  }, Qe = {
6010
6440
  connect: Ke,
6011
- connectZod: Xe,
6012
- connectZodCustom: Je
6441
+ connectZod: Je,
6442
+ connectZodCustom: Xe
6013
6443
  };
6014
6444
  var b;
6015
- (function(i) {
6016
- i.assertEqual = (r) => r;
6017
- function e(r) {
6445
+ (function(a) {
6446
+ a.assertEqual = (n) => n;
6447
+ function e(n) {
6018
6448
  }
6019
- i.assertIs = e;
6020
- function t(r) {
6449
+ a.assertIs = e;
6450
+ function t(n) {
6021
6451
  throw new Error();
6022
6452
  }
6023
- i.assertNever = t, i.arrayToEnum = (r) => {
6024
- const n = {};
6025
- for (const o of r)
6026
- n[o] = o;
6027
- return n;
6028
- }, i.getValidEnumValues = (r) => {
6029
- const n = i.objectKeys(r).filter((s) => typeof r[r[s]] != "number"), o = {};
6030
- for (const s of n)
6031
- o[s] = r[s];
6032
- return i.objectValues(o);
6033
- }, i.objectValues = (r) => i.objectKeys(r).map(function(n) {
6034
- return r[n];
6035
- }), i.objectKeys = typeof Object.keys == "function" ? (r) => Object.keys(r) : (r) => {
6036
- const n = [];
6037
- for (const o in r)
6038
- Object.prototype.hasOwnProperty.call(r, o) && n.push(o);
6039
- return n;
6040
- }, i.find = (r, n) => {
6041
- for (const o of r)
6042
- if (n(o))
6453
+ a.assertNever = t, a.arrayToEnum = (n) => {
6454
+ const r = {};
6455
+ for (const o of n)
6456
+ r[o] = o;
6457
+ return r;
6458
+ }, a.getValidEnumValues = (n) => {
6459
+ const r = a.objectKeys(n).filter((s) => typeof n[n[s]] != "number"), o = {};
6460
+ for (const s of r)
6461
+ o[s] = n[s];
6462
+ return a.objectValues(o);
6463
+ }, a.objectValues = (n) => a.objectKeys(n).map(function(r) {
6464
+ return n[r];
6465
+ }), a.objectKeys = typeof Object.keys == "function" ? (n) => Object.keys(n) : (n) => {
6466
+ const r = [];
6467
+ for (const o in n)
6468
+ Object.prototype.hasOwnProperty.call(n, o) && r.push(o);
6469
+ return r;
6470
+ }, a.find = (n, r) => {
6471
+ for (const o of n)
6472
+ if (r(o))
6043
6473
  return o;
6044
- }, i.isInteger = typeof Number.isInteger == "function" ? (r) => Number.isInteger(r) : (r) => typeof r == "number" && isFinite(r) && Math.floor(r) === r;
6045
- function a(r, n = " | ") {
6046
- return r.map((o) => typeof o == "string" ? `'${o}'` : o).join(n);
6474
+ }, a.isInteger = typeof Number.isInteger == "function" ? (n) => Number.isInteger(n) : (n) => typeof n == "number" && isFinite(n) && Math.floor(n) === n;
6475
+ function i(n, r = " | ") {
6476
+ return n.map((o) => typeof o == "string" ? `'${o}'` : o).join(r);
6047
6477
  }
6048
- i.joinValues = a, i.jsonStringifyReplacer = (r, n) => typeof n == "bigint" ? n.toString() : n;
6478
+ a.joinValues = i, a.jsonStringifyReplacer = (n, r) => typeof r == "bigint" ? r.toString() : r;
6049
6479
  })(b || (b = {}));
6050
6480
  var be;
6051
- (function(i) {
6052
- i.mergeShapes = (e, t) => ({
6481
+ (function(a) {
6482
+ a.mergeShapes = (e, t) => ({
6053
6483
  ...e,
6054
6484
  ...t
6055
6485
  // second overwrites first
@@ -6076,14 +6506,14 @@ const l = b.arrayToEnum([
6076
6506
  "never",
6077
6507
  "map",
6078
6508
  "set"
6079
- ]), L = (i) => {
6080
- switch (typeof i) {
6509
+ ]), L = (a) => {
6510
+ switch (typeof a) {
6081
6511
  case "undefined":
6082
6512
  return l.undefined;
6083
6513
  case "string":
6084
6514
  return l.string;
6085
6515
  case "number":
6086
- return isNaN(i) ? l.nan : l.number;
6516
+ return isNaN(a) ? l.nan : l.number;
6087
6517
  case "boolean":
6088
6518
  return l.boolean;
6089
6519
  case "function":
@@ -6093,7 +6523,7 @@ const l = b.arrayToEnum([
6093
6523
  case "symbol":
6094
6524
  return l.symbol;
6095
6525
  case "object":
6096
- return Array.isArray(i) ? l.array : i === null ? l.null : i.then && typeof i.then == "function" && i.catch && typeof i.catch == "function" ? l.promise : typeof Map < "u" && i instanceof Map ? l.map : typeof Set < "u" && i instanceof Set ? l.set : typeof Date < "u" && i instanceof Date ? l.date : l.object;
6526
+ return Array.isArray(a) ? l.array : a === null ? l.null : a.then && typeof a.then == "function" && a.catch && typeof a.catch == "function" ? l.promise : typeof Map < "u" && a instanceof Map ? l.map : typeof Set < "u" && a instanceof Set ? l.set : typeof Date < "u" && a instanceof Date ? l.date : l.object;
6097
6527
  default:
6098
6528
  return l.unknown;
6099
6529
  }
@@ -6114,13 +6544,13 @@ const l = b.arrayToEnum([
6114
6544
  "invalid_intersection_types",
6115
6545
  "not_multiple_of",
6116
6546
  "not_finite"
6117
- ]), et = (i) => JSON.stringify(i, null, 2).replace(/"([^"]+)":/g, "$1:");
6547
+ ]), et = (a) => JSON.stringify(a, null, 2).replace(/"([^"]+)":/g, "$1:");
6118
6548
  class O extends Error {
6119
6549
  constructor(e) {
6120
- super(), this.issues = [], this.addIssue = (a) => {
6121
- this.issues = [...this.issues, a];
6122
- }, this.addIssues = (a = []) => {
6123
- this.issues = [...this.issues, ...a];
6550
+ super(), this.issues = [], this.addIssue = (i) => {
6551
+ this.issues = [...this.issues, i];
6552
+ }, this.addIssues = (i = []) => {
6553
+ this.issues = [...this.issues, ...i];
6124
6554
  };
6125
6555
  const t = new.target.prototype;
6126
6556
  Object.setPrototypeOf ? Object.setPrototypeOf(this, t) : this.__proto__ = t, this.name = "ZodError", this.issues = e;
@@ -6129,27 +6559,27 @@ class O extends Error {
6129
6559
  return this.issues;
6130
6560
  }
6131
6561
  format(e) {
6132
- const t = e || function(n) {
6133
- return n.message;
6134
- }, a = { _errors: [] }, r = (n) => {
6135
- for (const o of n.issues)
6562
+ const t = e || function(r) {
6563
+ return r.message;
6564
+ }, i = { _errors: [] }, n = (r) => {
6565
+ for (const o of r.issues)
6136
6566
  if (o.code === "invalid_union")
6137
- o.unionErrors.map(r);
6567
+ o.unionErrors.map(n);
6138
6568
  else if (o.code === "invalid_return_type")
6139
- r(o.returnTypeError);
6569
+ n(o.returnTypeError);
6140
6570
  else if (o.code === "invalid_arguments")
6141
- r(o.argumentsError);
6571
+ n(o.argumentsError);
6142
6572
  else if (o.path.length === 0)
6143
- a._errors.push(t(o));
6573
+ i._errors.push(t(o));
6144
6574
  else {
6145
- let s = a, m = 0;
6575
+ let s = i, m = 0;
6146
6576
  for (; m < o.path.length; ) {
6147
6577
  const d = o.path[m];
6148
6578
  m === o.path.length - 1 ? (s[d] = s[d] || { _errors: [] }, s[d]._errors.push(t(o))) : s[d] = s[d] || { _errors: [] }, s = s[d], m++;
6149
6579
  }
6150
6580
  }
6151
6581
  };
6152
- return r(this), a;
6582
+ return n(this), i;
6153
6583
  }
6154
6584
  toString() {
6155
6585
  return this.message;
@@ -6161,36 +6591,36 @@ class O extends Error {
6161
6591
  return this.issues.length === 0;
6162
6592
  }
6163
6593
  flatten(e = (t) => t.message) {
6164
- const t = {}, a = [];
6165
- for (const r of this.issues)
6166
- r.path.length > 0 ? (t[r.path[0]] = t[r.path[0]] || [], t[r.path[0]].push(e(r))) : a.push(e(r));
6167
- return { formErrors: a, fieldErrors: t };
6594
+ const t = {}, i = [];
6595
+ for (const n of this.issues)
6596
+ n.path.length > 0 ? (t[n.path[0]] = t[n.path[0]] || [], t[n.path[0]].push(e(n))) : i.push(e(n));
6597
+ return { formErrors: i, fieldErrors: t };
6168
6598
  }
6169
6599
  get formErrors() {
6170
6600
  return this.flatten();
6171
6601
  }
6172
6602
  }
6173
- O.create = (i) => new O(i);
6174
- const Y = (i, e) => {
6603
+ O.create = (a) => new O(a);
6604
+ const Y = (a, e) => {
6175
6605
  let t;
6176
- switch (i.code) {
6606
+ switch (a.code) {
6177
6607
  case c.invalid_type:
6178
- i.received === l.undefined ? t = "Required" : t = `Expected ${i.expected}, received ${i.received}`;
6608
+ a.received === l.undefined ? t = "Required" : t = `Expected ${a.expected}, received ${a.received}`;
6179
6609
  break;
6180
6610
  case c.invalid_literal:
6181
- t = `Invalid literal value, expected ${JSON.stringify(i.expected, b.jsonStringifyReplacer)}`;
6611
+ t = `Invalid literal value, expected ${JSON.stringify(a.expected, b.jsonStringifyReplacer)}`;
6182
6612
  break;
6183
6613
  case c.unrecognized_keys:
6184
- t = `Unrecognized key(s) in object: ${b.joinValues(i.keys, ", ")}`;
6614
+ t = `Unrecognized key(s) in object: ${b.joinValues(a.keys, ", ")}`;
6185
6615
  break;
6186
6616
  case c.invalid_union:
6187
6617
  t = "Invalid input";
6188
6618
  break;
6189
6619
  case c.invalid_union_discriminator:
6190
- t = `Invalid discriminator value. Expected ${b.joinValues(i.options)}`;
6620
+ t = `Invalid discriminator value. Expected ${b.joinValues(a.options)}`;
6191
6621
  break;
6192
6622
  case c.invalid_enum_value:
6193
- t = `Invalid enum value. Expected ${b.joinValues(i.options)}, received '${i.received}'`;
6623
+ t = `Invalid enum value. Expected ${b.joinValues(a.options)}, received '${a.received}'`;
6194
6624
  break;
6195
6625
  case c.invalid_arguments:
6196
6626
  t = "Invalid function arguments";
@@ -6202,13 +6632,13 @@ const Y = (i, e) => {
6202
6632
  t = "Invalid date";
6203
6633
  break;
6204
6634
  case c.invalid_string:
6205
- typeof i.validation == "object" ? "includes" in i.validation ? (t = `Invalid input: must include "${i.validation.includes}"`, typeof i.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${i.validation.position}`)) : "startsWith" in i.validation ? t = `Invalid input: must start with "${i.validation.startsWith}"` : "endsWith" in i.validation ? t = `Invalid input: must end with "${i.validation.endsWith}"` : b.assertNever(i.validation) : i.validation !== "regex" ? t = `Invalid ${i.validation}` : t = "Invalid";
6635
+ typeof a.validation == "object" ? "includes" in a.validation ? (t = `Invalid input: must include "${a.validation.includes}"`, typeof a.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${a.validation.position}`)) : "startsWith" in a.validation ? t = `Invalid input: must start with "${a.validation.startsWith}"` : "endsWith" in a.validation ? t = `Invalid input: must end with "${a.validation.endsWith}"` : b.assertNever(a.validation) : a.validation !== "regex" ? t = `Invalid ${a.validation}` : t = "Invalid";
6206
6636
  break;
6207
6637
  case c.too_small:
6208
- i.type === "array" ? t = `Array must contain ${i.exact ? "exactly" : i.inclusive ? "at least" : "more than"} ${i.minimum} element(s)` : i.type === "string" ? t = `String must contain ${i.exact ? "exactly" : i.inclusive ? "at least" : "over"} ${i.minimum} character(s)` : i.type === "number" ? t = `Number must be ${i.exact ? "exactly equal to " : i.inclusive ? "greater than or equal to " : "greater than "}${i.minimum}` : i.type === "date" ? t = `Date must be ${i.exact ? "exactly equal to " : i.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(i.minimum))}` : t = "Invalid input";
6638
+ a.type === "array" ? t = `Array must contain ${a.exact ? "exactly" : a.inclusive ? "at least" : "more than"} ${a.minimum} element(s)` : a.type === "string" ? t = `String must contain ${a.exact ? "exactly" : a.inclusive ? "at least" : "over"} ${a.minimum} character(s)` : a.type === "number" ? t = `Number must be ${a.exact ? "exactly equal to " : a.inclusive ? "greater than or equal to " : "greater than "}${a.minimum}` : a.type === "date" ? t = `Date must be ${a.exact ? "exactly equal to " : a.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(a.minimum))}` : t = "Invalid input";
6209
6639
  break;
6210
6640
  case c.too_big:
6211
- i.type === "array" ? t = `Array must contain ${i.exact ? "exactly" : i.inclusive ? "at most" : "less than"} ${i.maximum} element(s)` : i.type === "string" ? t = `String must contain ${i.exact ? "exactly" : i.inclusive ? "at most" : "under"} ${i.maximum} character(s)` : i.type === "number" ? t = `Number must be ${i.exact ? "exactly" : i.inclusive ? "less than or equal to" : "less than"} ${i.maximum}` : i.type === "bigint" ? t = `BigInt must be ${i.exact ? "exactly" : i.inclusive ? "less than or equal to" : "less than"} ${i.maximum}` : i.type === "date" ? t = `Date must be ${i.exact ? "exactly" : i.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(i.maximum))}` : t = "Invalid input";
6641
+ a.type === "array" ? t = `Array must contain ${a.exact ? "exactly" : a.inclusive ? "at most" : "less than"} ${a.maximum} element(s)` : a.type === "string" ? t = `String must contain ${a.exact ? "exactly" : a.inclusive ? "at most" : "under"} ${a.maximum} character(s)` : a.type === "number" ? t = `Number must be ${a.exact ? "exactly" : a.inclusive ? "less than or equal to" : "less than"} ${a.maximum}` : a.type === "bigint" ? t = `BigInt must be ${a.exact ? "exactly" : a.inclusive ? "less than or equal to" : "less than"} ${a.maximum}` : a.type === "date" ? t = `Date must be ${a.exact ? "exactly" : a.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(a.maximum))}` : t = "Invalid input";
6212
6642
  break;
6213
6643
  case c.custom:
6214
6644
  t = "Invalid input";
@@ -6217,52 +6647,52 @@ const Y = (i, e) => {
6217
6647
  t = "Intersection results could not be merged";
6218
6648
  break;
6219
6649
  case c.not_multiple_of:
6220
- t = `Number must be a multiple of ${i.multipleOf}`;
6650
+ t = `Number must be a multiple of ${a.multipleOf}`;
6221
6651
  break;
6222
6652
  case c.not_finite:
6223
6653
  t = "Number must be finite";
6224
6654
  break;
6225
6655
  default:
6226
- t = e.defaultError, b.assertNever(i);
6656
+ t = e.defaultError, b.assertNever(a);
6227
6657
  }
6228
6658
  return { message: t };
6229
6659
  };
6230
- let Se = Y;
6231
- function tt(i) {
6232
- Se = i;
6660
+ let Ae = Y;
6661
+ function tt(a) {
6662
+ Ae = a;
6233
6663
  }
6234
6664
  function ce() {
6235
- return Se;
6665
+ return Ae;
6236
6666
  }
6237
- const de = (i) => {
6238
- const { data: e, path: t, errorMaps: a, issueData: r } = i, n = [...t, ...r.path || []], o = {
6239
- ...r,
6240
- path: n
6667
+ const de = (a) => {
6668
+ const { data: e, path: t, errorMaps: i, issueData: n } = a, r = [...t, ...n.path || []], o = {
6669
+ ...n,
6670
+ path: r
6241
6671
  };
6242
6672
  let s = "";
6243
- const m = a.filter((d) => !!d).slice().reverse();
6673
+ const m = i.filter((d) => !!d).slice().reverse();
6244
6674
  for (const d of m)
6245
6675
  s = d(o, { data: e, defaultError: s }).message;
6246
6676
  return {
6247
- ...r,
6248
- path: n,
6249
- message: r.message || s
6677
+ ...n,
6678
+ path: r,
6679
+ message: n.message || s
6250
6680
  };
6251
- }, it = [];
6252
- function u(i, e) {
6681
+ }, at = [];
6682
+ function u(a, e) {
6253
6683
  const t = de({
6254
6684
  issueData: e,
6255
- data: i.data,
6256
- path: i.path,
6685
+ data: a.data,
6686
+ path: a.path,
6257
6687
  errorMaps: [
6258
- i.common.contextualErrorMap,
6259
- i.schemaErrorMap,
6688
+ a.common.contextualErrorMap,
6689
+ a.schemaErrorMap,
6260
6690
  ce(),
6261
6691
  Y
6262
6692
  // then global default map
6263
- ].filter((a) => !!a)
6693
+ ].filter((i) => !!i)
6264
6694
  });
6265
- i.common.issues.push(t);
6695
+ a.common.issues.push(t);
6266
6696
  }
6267
6697
  class R {
6268
6698
  constructor() {
@@ -6275,71 +6705,71 @@ class R {
6275
6705
  this.value !== "aborted" && (this.value = "aborted");
6276
6706
  }
6277
6707
  static mergeArray(e, t) {
6278
- const a = [];
6279
- for (const r of t) {
6280
- if (r.status === "aborted")
6708
+ const i = [];
6709
+ for (const n of t) {
6710
+ if (n.status === "aborted")
6281
6711
  return g;
6282
- r.status === "dirty" && e.dirty(), a.push(r.value);
6712
+ n.status === "dirty" && e.dirty(), i.push(n.value);
6283
6713
  }
6284
- return { status: e.value, value: a };
6714
+ return { status: e.value, value: i };
6285
6715
  }
6286
6716
  static async mergeObjectAsync(e, t) {
6287
- const a = [];
6288
- for (const r of t)
6289
- a.push({
6290
- key: await r.key,
6291
- value: await r.value
6717
+ const i = [];
6718
+ for (const n of t)
6719
+ i.push({
6720
+ key: await n.key,
6721
+ value: await n.value
6292
6722
  });
6293
- return R.mergeObjectSync(e, a);
6723
+ return R.mergeObjectSync(e, i);
6294
6724
  }
6295
6725
  static mergeObjectSync(e, t) {
6296
- const a = {};
6297
- for (const r of t) {
6298
- const { key: n, value: o } = r;
6299
- if (n.status === "aborted" || o.status === "aborted")
6726
+ const i = {};
6727
+ for (const n of t) {
6728
+ const { key: r, value: o } = n;
6729
+ if (r.status === "aborted" || o.status === "aborted")
6300
6730
  return g;
6301
- n.status === "dirty" && e.dirty(), o.status === "dirty" && e.dirty(), n.value !== "__proto__" && (typeof o.value < "u" || r.alwaysSet) && (a[n.value] = o.value);
6731
+ r.status === "dirty" && e.dirty(), o.status === "dirty" && e.dirty(), r.value !== "__proto__" && (typeof o.value < "u" || n.alwaysSet) && (i[r.value] = o.value);
6302
6732
  }
6303
- return { status: e.value, value: a };
6733
+ return { status: e.value, value: i };
6304
6734
  }
6305
6735
  }
6306
6736
  const g = Object.freeze({
6307
6737
  status: "aborted"
6308
- }), Ae = (i) => ({ status: "dirty", value: i }), S = (i) => ({ status: "valid", value: i }), xe = (i) => i.status === "aborted", we = (i) => i.status === "dirty", z = (i) => i.status === "valid", le = (i) => typeof Promise < "u" && i instanceof Promise;
6738
+ }), Se = (a) => ({ status: "dirty", value: a }), A = (a) => ({ status: "valid", value: a }), xe = (a) => a.status === "aborted", we = (a) => a.status === "dirty", z = (a) => a.status === "valid", le = (a) => typeof Promise < "u" && a instanceof Promise;
6309
6739
  var p;
6310
- (function(i) {
6311
- i.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, i.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
6740
+ (function(a) {
6741
+ a.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, a.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
6312
6742
  })(p || (p = {}));
6313
- class I {
6314
- constructor(e, t, a, r) {
6315
- this._cachedPath = [], this.parent = e, this.data = t, this._path = a, this._key = r;
6743
+ class M {
6744
+ constructor(e, t, i, n) {
6745
+ this._cachedPath = [], this.parent = e, this.data = t, this._path = i, this._key = n;
6316
6746
  }
6317
6747
  get path() {
6318
6748
  return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
6319
6749
  }
6320
6750
  }
6321
- const Te = (i, e) => {
6751
+ const Ce = (a, e) => {
6322
6752
  if (z(e))
6323
6753
  return { success: !0, data: e.value };
6324
- if (!i.common.issues.length)
6754
+ if (!a.common.issues.length)
6325
6755
  throw new Error("Validation failed but no issues detected.");
6326
6756
  return {
6327
6757
  success: !1,
6328
6758
  get error() {
6329
6759
  if (this._error)
6330
6760
  return this._error;
6331
- const t = new O(i.common.issues);
6761
+ const t = new O(a.common.issues);
6332
6762
  return this._error = t, this._error;
6333
6763
  }
6334
6764
  };
6335
6765
  };
6336
- function h(i) {
6337
- if (!i)
6766
+ function h(a) {
6767
+ if (!a)
6338
6768
  return {};
6339
- const { errorMap: e, invalid_type_error: t, required_error: a, description: r } = i;
6340
- if (e && (t || a))
6769
+ const { errorMap: e, invalid_type_error: t, required_error: i, description: n } = a;
6770
+ if (e && (t || i))
6341
6771
  throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
6342
- return e ? { errorMap: e, description: r } : { errorMap: (o, s) => o.code !== "invalid_type" ? { message: s.defaultError } : typeof s.data > "u" ? { message: a ?? s.defaultError } : { message: t ?? s.defaultError }, description: r };
6772
+ return e ? { errorMap: e, description: n } : { errorMap: (o, s) => o.code !== "invalid_type" ? { message: s.defaultError } : typeof s.data > "u" ? { message: i ?? s.defaultError } : { message: t ?? s.defaultError }, description: n };
6343
6773
  }
6344
6774
  class v {
6345
6775
  constructor(e) {
@@ -6385,17 +6815,17 @@ class v {
6385
6815
  return Promise.resolve(t);
6386
6816
  }
6387
6817
  parse(e, t) {
6388
- const a = this.safeParse(e, t);
6389
- if (a.success)
6390
- return a.data;
6391
- throw a.error;
6818
+ const i = this.safeParse(e, t);
6819
+ if (i.success)
6820
+ return i.data;
6821
+ throw i.error;
6392
6822
  }
6393
6823
  safeParse(e, t) {
6394
- var a;
6395
- const r = {
6824
+ var i;
6825
+ const n = {
6396
6826
  common: {
6397
6827
  issues: [],
6398
- async: (a = t == null ? void 0 : t.async) !== null && a !== void 0 ? a : !1,
6828
+ async: (i = t == null ? void 0 : t.async) !== null && i !== void 0 ? i : !1,
6399
6829
  contextualErrorMap: t == null ? void 0 : t.errorMap
6400
6830
  },
6401
6831
  path: (t == null ? void 0 : t.path) || [],
@@ -6403,17 +6833,17 @@ class v {
6403
6833
  parent: null,
6404
6834
  data: e,
6405
6835
  parsedType: L(e)
6406
- }, n = this._parseSync({ data: e, path: r.path, parent: r });
6407
- return Te(r, n);
6836
+ }, r = this._parseSync({ data: e, path: n.path, parent: n });
6837
+ return Ce(n, r);
6408
6838
  }
6409
6839
  async parseAsync(e, t) {
6410
- const a = await this.safeParseAsync(e, t);
6411
- if (a.success)
6412
- return a.data;
6413
- throw a.error;
6840
+ const i = await this.safeParseAsync(e, t);
6841
+ if (i.success)
6842
+ return i.data;
6843
+ throw i.error;
6414
6844
  }
6415
6845
  async safeParseAsync(e, t) {
6416
- const a = {
6846
+ const i = {
6417
6847
  common: {
6418
6848
  issues: [],
6419
6849
  contextualErrorMap: t == null ? void 0 : t.errorMap,
@@ -6424,24 +6854,24 @@ class v {
6424
6854
  parent: null,
6425
6855
  data: e,
6426
6856
  parsedType: L(e)
6427
- }, r = this._parse({ data: e, path: a.path, parent: a }), n = await (le(r) ? r : Promise.resolve(r));
6428
- return Te(a, n);
6857
+ }, n = this._parse({ data: e, path: i.path, parent: i }), r = await (le(n) ? n : Promise.resolve(n));
6858
+ return Ce(i, r);
6429
6859
  }
6430
6860
  refine(e, t) {
6431
- const a = (r) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(r) : t;
6432
- return this._refinement((r, n) => {
6433
- const o = e(r), s = () => n.addIssue({
6861
+ const i = (n) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(n) : t;
6862
+ return this._refinement((n, r) => {
6863
+ const o = e(n), s = () => r.addIssue({
6434
6864
  code: c.custom,
6435
- ...a(r)
6865
+ ...i(n)
6436
6866
  });
6437
6867
  return typeof Promise < "u" && o instanceof Promise ? o.then((m) => m ? !0 : (s(), !1)) : o ? !0 : (s(), !1);
6438
6868
  });
6439
6869
  }
6440
6870
  refinement(e, t) {
6441
- return this._refinement((a, r) => e(a) ? !0 : (r.addIssue(typeof t == "function" ? t(a, r) : t), !1));
6871
+ return this._refinement((i, n) => e(i) ? !0 : (n.addIssue(typeof t == "function" ? t(i, n) : t), !1));
6442
6872
  }
6443
6873
  _refinement(e) {
6444
- return new P({
6874
+ return new k({
6445
6875
  schema: this,
6446
6876
  typeName: _.ZodEffects,
6447
6877
  effect: { type: "refinement", refinement: e }
@@ -6451,16 +6881,16 @@ class v {
6451
6881
  return this._refinement(e);
6452
6882
  }
6453
6883
  optional() {
6454
- return M.create(this, this._def);
6884
+ return N.create(this, this._def);
6455
6885
  }
6456
6886
  nullable() {
6457
- return $.create(this, this._def);
6887
+ return G.create(this, this._def);
6458
6888
  }
6459
6889
  nullish() {
6460
6890
  return this.nullable().optional();
6461
6891
  }
6462
6892
  array() {
6463
- return k.create(this, this._def);
6893
+ return I.create(this, this._def);
6464
6894
  }
6465
6895
  promise() {
6466
6896
  return H.create(this, this._def);
@@ -6472,7 +6902,7 @@ class v {
6472
6902
  return ee.create(this, e, this._def);
6473
6903
  }
6474
6904
  transform(e) {
6475
- return new P({
6905
+ return new k({
6476
6906
  ...h(this._def),
6477
6907
  schema: this,
6478
6908
  typeName: _.ZodEffects,
@@ -6481,7 +6911,7 @@ class v {
6481
6911
  }
6482
6912
  default(e) {
6483
6913
  const t = typeof e == "function" ? e : () => e;
6484
- return new ne({
6914
+ return new re({
6485
6915
  ...h(this._def),
6486
6916
  innerType: this,
6487
6917
  defaultValue: t,
@@ -6524,142 +6954,142 @@ class v {
6524
6954
  return this.safeParse(null).success;
6525
6955
  }
6526
6956
  }
6527
- const at = /^c[^\s-]{8,}$/i, rt = /^[a-z][a-z0-9]*$/, nt = /^[0-9A-HJKMNP-TV-Z]{26}$/, ot = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, st = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, ct = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
6957
+ const it = /^c[^\s-]{8,}$/i, nt = /^[a-z][a-z0-9]*$/, rt = /^[0-9A-HJKMNP-TV-Z]{26}$/, ot = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, st = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, ct = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
6528
6958
  let ye;
6529
- const dt = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/, lt = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, ut = (i) => i.precision ? i.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${i.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${i.precision}}Z$`) : i.precision === 0 ? i.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$") : i.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");
6530
- function mt(i, e) {
6531
- return !!((e === "v4" || !e) && dt.test(i) || (e === "v6" || !e) && lt.test(i));
6959
+ const dt = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/, lt = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, ut = (a) => a.precision ? a.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${a.precision}}Z$`) : a.precision === 0 ? a.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$") : a.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");
6960
+ function mt(a, e) {
6961
+ return !!((e === "v4" || !e) && dt.test(a) || (e === "v6" || !e) && lt.test(a));
6532
6962
  }
6533
6963
  class E extends v {
6534
6964
  _parse(e) {
6535
6965
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== l.string) {
6536
- const n = this._getOrReturnCtx(e);
6966
+ const r = this._getOrReturnCtx(e);
6537
6967
  return u(
6538
- n,
6968
+ r,
6539
6969
  {
6540
6970
  code: c.invalid_type,
6541
6971
  expected: l.string,
6542
- received: n.parsedType
6972
+ received: r.parsedType
6543
6973
  }
6544
6974
  //
6545
6975
  ), g;
6546
6976
  }
6547
- const a = new R();
6548
- let r;
6549
- for (const n of this._def.checks)
6550
- if (n.kind === "min")
6551
- e.data.length < n.value && (r = this._getOrReturnCtx(e, r), u(r, {
6977
+ const i = new R();
6978
+ let n;
6979
+ for (const r of this._def.checks)
6980
+ if (r.kind === "min")
6981
+ e.data.length < r.value && (n = this._getOrReturnCtx(e, n), u(n, {
6552
6982
  code: c.too_small,
6553
- minimum: n.value,
6983
+ minimum: r.value,
6554
6984
  type: "string",
6555
6985
  inclusive: !0,
6556
6986
  exact: !1,
6557
- message: n.message
6558
- }), a.dirty());
6559
- else if (n.kind === "max")
6560
- e.data.length > n.value && (r = this._getOrReturnCtx(e, r), u(r, {
6987
+ message: r.message
6988
+ }), i.dirty());
6989
+ else if (r.kind === "max")
6990
+ e.data.length > r.value && (n = this._getOrReturnCtx(e, n), u(n, {
6561
6991
  code: c.too_big,
6562
- maximum: n.value,
6992
+ maximum: r.value,
6563
6993
  type: "string",
6564
6994
  inclusive: !0,
6565
6995
  exact: !1,
6566
- message: n.message
6567
- }), a.dirty());
6568
- else if (n.kind === "length") {
6569
- const o = e.data.length > n.value, s = e.data.length < n.value;
6570
- (o || s) && (r = this._getOrReturnCtx(e, r), o ? u(r, {
6996
+ message: r.message
6997
+ }), i.dirty());
6998
+ else if (r.kind === "length") {
6999
+ const o = e.data.length > r.value, s = e.data.length < r.value;
7000
+ (o || s) && (n = this._getOrReturnCtx(e, n), o ? u(n, {
6571
7001
  code: c.too_big,
6572
- maximum: n.value,
7002
+ maximum: r.value,
6573
7003
  type: "string",
6574
7004
  inclusive: !0,
6575
7005
  exact: !0,
6576
- message: n.message
6577
- }) : s && u(r, {
7006
+ message: r.message
7007
+ }) : s && u(n, {
6578
7008
  code: c.too_small,
6579
- minimum: n.value,
7009
+ minimum: r.value,
6580
7010
  type: "string",
6581
7011
  inclusive: !0,
6582
7012
  exact: !0,
6583
- message: n.message
6584
- }), a.dirty());
6585
- } else if (n.kind === "email")
6586
- st.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
7013
+ message: r.message
7014
+ }), i.dirty());
7015
+ } else if (r.kind === "email")
7016
+ st.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
6587
7017
  validation: "email",
6588
7018
  code: c.invalid_string,
6589
- message: n.message
6590
- }), a.dirty());
6591
- else if (n.kind === "emoji")
6592
- ye || (ye = new RegExp(ct, "u")), ye.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
7019
+ message: r.message
7020
+ }), i.dirty());
7021
+ else if (r.kind === "emoji")
7022
+ ye || (ye = new RegExp(ct, "u")), ye.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
6593
7023
  validation: "emoji",
6594
7024
  code: c.invalid_string,
6595
- message: n.message
6596
- }), a.dirty());
6597
- else if (n.kind === "uuid")
6598
- ot.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
7025
+ message: r.message
7026
+ }), i.dirty());
7027
+ else if (r.kind === "uuid")
7028
+ ot.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
6599
7029
  validation: "uuid",
6600
7030
  code: c.invalid_string,
6601
- message: n.message
6602
- }), a.dirty());
6603
- else if (n.kind === "cuid")
6604
- at.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
7031
+ message: r.message
7032
+ }), i.dirty());
7033
+ else if (r.kind === "cuid")
7034
+ it.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
6605
7035
  validation: "cuid",
6606
7036
  code: c.invalid_string,
6607
- message: n.message
6608
- }), a.dirty());
6609
- else if (n.kind === "cuid2")
6610
- rt.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
7037
+ message: r.message
7038
+ }), i.dirty());
7039
+ else if (r.kind === "cuid2")
7040
+ nt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
6611
7041
  validation: "cuid2",
6612
7042
  code: c.invalid_string,
6613
- message: n.message
6614
- }), a.dirty());
6615
- else if (n.kind === "ulid")
6616
- nt.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
7043
+ message: r.message
7044
+ }), i.dirty());
7045
+ else if (r.kind === "ulid")
7046
+ rt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
6617
7047
  validation: "ulid",
6618
7048
  code: c.invalid_string,
6619
- message: n.message
6620
- }), a.dirty());
6621
- else if (n.kind === "url")
7049
+ message: r.message
7050
+ }), i.dirty());
7051
+ else if (r.kind === "url")
6622
7052
  try {
6623
7053
  new URL(e.data);
6624
7054
  } catch {
6625
- r = this._getOrReturnCtx(e, r), u(r, {
7055
+ n = this._getOrReturnCtx(e, n), u(n, {
6626
7056
  validation: "url",
6627
7057
  code: c.invalid_string,
6628
- message: n.message
6629
- }), a.dirty();
7058
+ message: r.message
7059
+ }), i.dirty();
6630
7060
  }
6631
- else n.kind === "regex" ? (n.regex.lastIndex = 0, n.regex.test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
7061
+ else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
6632
7062
  validation: "regex",
6633
7063
  code: c.invalid_string,
6634
- message: n.message
6635
- }), a.dirty())) : n.kind === "trim" ? e.data = e.data.trim() : n.kind === "includes" ? e.data.includes(n.value, n.position) || (r = this._getOrReturnCtx(e, r), u(r, {
7064
+ message: r.message
7065
+ }), i.dirty())) : r.kind === "trim" ? e.data = e.data.trim() : r.kind === "includes" ? e.data.includes(r.value, r.position) || (n = this._getOrReturnCtx(e, n), u(n, {
6636
7066
  code: c.invalid_string,
6637
- validation: { includes: n.value, position: n.position },
6638
- message: n.message
6639
- }), a.dirty()) : n.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : n.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : n.kind === "startsWith" ? e.data.startsWith(n.value) || (r = this._getOrReturnCtx(e, r), u(r, {
7067
+ validation: { includes: r.value, position: r.position },
7068
+ message: r.message
7069
+ }), i.dirty()) : r.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : r.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : r.kind === "startsWith" ? e.data.startsWith(r.value) || (n = this._getOrReturnCtx(e, n), u(n, {
6640
7070
  code: c.invalid_string,
6641
- validation: { startsWith: n.value },
6642
- message: n.message
6643
- }), a.dirty()) : n.kind === "endsWith" ? e.data.endsWith(n.value) || (r = this._getOrReturnCtx(e, r), u(r, {
7071
+ validation: { startsWith: r.value },
7072
+ message: r.message
7073
+ }), i.dirty()) : r.kind === "endsWith" ? e.data.endsWith(r.value) || (n = this._getOrReturnCtx(e, n), u(n, {
6644
7074
  code: c.invalid_string,
6645
- validation: { endsWith: n.value },
6646
- message: n.message
6647
- }), a.dirty()) : n.kind === "datetime" ? ut(n).test(e.data) || (r = this._getOrReturnCtx(e, r), u(r, {
7075
+ validation: { endsWith: r.value },
7076
+ message: r.message
7077
+ }), i.dirty()) : r.kind === "datetime" ? ut(r).test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
6648
7078
  code: c.invalid_string,
6649
7079
  validation: "datetime",
6650
- message: n.message
6651
- }), a.dirty()) : n.kind === "ip" ? mt(e.data, n.version) || (r = this._getOrReturnCtx(e, r), u(r, {
7080
+ message: r.message
7081
+ }), i.dirty()) : r.kind === "ip" ? mt(e.data, r.version) || (n = this._getOrReturnCtx(e, n), u(n, {
6652
7082
  validation: "ip",
6653
7083
  code: c.invalid_string,
6654
- message: n.message
6655
- }), a.dirty()) : b.assertNever(n);
6656
- return { status: a.value, value: e.data };
7084
+ message: r.message
7085
+ }), i.dirty()) : b.assertNever(r);
7086
+ return { status: i.value, value: e.data };
6657
7087
  }
6658
- _regex(e, t, a) {
6659
- return this.refinement((r) => e.test(r), {
7088
+ _regex(e, t, i) {
7089
+ return this.refinement((n) => e.test(n), {
6660
7090
  validation: t,
6661
7091
  code: c.invalid_string,
6662
- ...p.errToObj(a)
7092
+ ...p.errToObj(i)
6663
7093
  });
6664
7094
  }
6665
7095
  _addCheck(e) {
@@ -6821,18 +7251,18 @@ class E extends v {
6821
7251
  return e;
6822
7252
  }
6823
7253
  }
6824
- E.create = (i) => {
7254
+ E.create = (a) => {
6825
7255
  var e;
6826
7256
  return new E({
6827
7257
  checks: [],
6828
7258
  typeName: _.ZodString,
6829
- coerce: (e = i == null ? void 0 : i.coerce) !== null && e !== void 0 ? e : !1,
6830
- ...h(i)
7259
+ coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
7260
+ ...h(a)
6831
7261
  });
6832
7262
  };
6833
- function pt(i, e) {
6834
- const t = (i.toString().split(".")[1] || "").length, a = (e.toString().split(".")[1] || "").length, r = t > a ? t : a, n = parseInt(i.toFixed(r).replace(".", "")), o = parseInt(e.toFixed(r).replace(".", ""));
6835
- return n % o / Math.pow(10, r);
7263
+ function pt(a, e) {
7264
+ const t = (a.toString().split(".")[1] || "").length, i = (e.toString().split(".")[1] || "").length, n = t > i ? t : i, r = parseInt(a.toFixed(n).replace(".", "")), o = parseInt(e.toFixed(n).replace(".", ""));
7265
+ return r % o / Math.pow(10, n);
6836
7266
  }
6837
7267
  class B extends v {
6838
7268
  constructor() {
@@ -6840,44 +7270,44 @@ class B extends v {
6840
7270
  }
6841
7271
  _parse(e) {
6842
7272
  if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== l.number) {
6843
- const n = this._getOrReturnCtx(e);
6844
- return u(n, {
7273
+ const r = this._getOrReturnCtx(e);
7274
+ return u(r, {
6845
7275
  code: c.invalid_type,
6846
7276
  expected: l.number,
6847
- received: n.parsedType
7277
+ received: r.parsedType
6848
7278
  }), g;
6849
7279
  }
6850
- let a;
6851
- const r = new R();
6852
- for (const n of this._def.checks)
6853
- n.kind === "int" ? b.isInteger(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
7280
+ let i;
7281
+ const n = new R();
7282
+ for (const r of this._def.checks)
7283
+ r.kind === "int" ? b.isInteger(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
6854
7284
  code: c.invalid_type,
6855
7285
  expected: "integer",
6856
7286
  received: "float",
6857
- message: n.message
6858
- }), r.dirty()) : n.kind === "min" ? (n.inclusive ? e.data < n.value : e.data <= n.value) && (a = this._getOrReturnCtx(e, a), u(a, {
7287
+ message: r.message
7288
+ }), n.dirty()) : r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
6859
7289
  code: c.too_small,
6860
- minimum: n.value,
7290
+ minimum: r.value,
6861
7291
  type: "number",
6862
- inclusive: n.inclusive,
7292
+ inclusive: r.inclusive,
6863
7293
  exact: !1,
6864
- message: n.message
6865
- }), r.dirty()) : n.kind === "max" ? (n.inclusive ? e.data > n.value : e.data >= n.value) && (a = this._getOrReturnCtx(e, a), u(a, {
7294
+ message: r.message
7295
+ }), n.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
6866
7296
  code: c.too_big,
6867
- maximum: n.value,
7297
+ maximum: r.value,
6868
7298
  type: "number",
6869
- inclusive: n.inclusive,
7299
+ inclusive: r.inclusive,
6870
7300
  exact: !1,
6871
- message: n.message
6872
- }), r.dirty()) : n.kind === "multipleOf" ? pt(e.data, n.value) !== 0 && (a = this._getOrReturnCtx(e, a), u(a, {
7301
+ message: r.message
7302
+ }), n.dirty()) : r.kind === "multipleOf" ? pt(e.data, r.value) !== 0 && (i = this._getOrReturnCtx(e, i), u(i, {
6873
7303
  code: c.not_multiple_of,
6874
- multipleOf: n.value,
6875
- message: n.message
6876
- }), r.dirty()) : n.kind === "finite" ? Number.isFinite(e.data) || (a = this._getOrReturnCtx(e, a), u(a, {
7304
+ multipleOf: r.value,
7305
+ message: r.message
7306
+ }), n.dirty()) : r.kind === "finite" ? Number.isFinite(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
6877
7307
  code: c.not_finite,
6878
- message: n.message
6879
- }), r.dirty()) : b.assertNever(n);
6880
- return { status: r.value, value: e.data };
7308
+ message: r.message
7309
+ }), n.dirty()) : b.assertNever(r);
7310
+ return { status: n.value, value: e.data };
6881
7311
  }
6882
7312
  gte(e, t) {
6883
7313
  return this.setLimit("min", e, !0, p.toString(t));
@@ -6891,7 +7321,7 @@ class B extends v {
6891
7321
  lt(e, t) {
6892
7322
  return this.setLimit("max", e, !1, p.toString(t));
6893
7323
  }
6894
- setLimit(e, t, a, r) {
7324
+ setLimit(e, t, i, n) {
6895
7325
  return new B({
6896
7326
  ...this._def,
6897
7327
  checks: [
@@ -6899,8 +7329,8 @@ class B extends v {
6899
7329
  {
6900
7330
  kind: e,
6901
7331
  value: t,
6902
- inclusive: a,
6903
- message: p.toString(r)
7332
+ inclusive: i,
7333
+ message: p.toString(n)
6904
7334
  }
6905
7335
  ]
6906
7336
  });
@@ -6992,19 +7422,19 @@ class B extends v {
6992
7422
  }
6993
7423
  get isFinite() {
6994
7424
  let e = null, t = null;
6995
- for (const a of this._def.checks) {
6996
- if (a.kind === "finite" || a.kind === "int" || a.kind === "multipleOf")
7425
+ for (const i of this._def.checks) {
7426
+ if (i.kind === "finite" || i.kind === "int" || i.kind === "multipleOf")
6997
7427
  return !0;
6998
- a.kind === "min" ? (t === null || a.value > t) && (t = a.value) : a.kind === "max" && (e === null || a.value < e) && (e = a.value);
7428
+ i.kind === "min" ? (t === null || i.value > t) && (t = i.value) : i.kind === "max" && (e === null || i.value < e) && (e = i.value);
6999
7429
  }
7000
7430
  return Number.isFinite(t) && Number.isFinite(e);
7001
7431
  }
7002
7432
  }
7003
- B.create = (i) => new B({
7433
+ B.create = (a) => new B({
7004
7434
  checks: [],
7005
7435
  typeName: _.ZodNumber,
7006
- coerce: (i == null ? void 0 : i.coerce) || !1,
7007
- ...h(i)
7436
+ coerce: (a == null ? void 0 : a.coerce) || !1,
7437
+ ...h(a)
7008
7438
  });
7009
7439
  class j extends v {
7010
7440
  constructor() {
@@ -7012,34 +7442,34 @@ class j extends v {
7012
7442
  }
7013
7443
  _parse(e) {
7014
7444
  if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !== l.bigint) {
7015
- const n = this._getOrReturnCtx(e);
7016
- return u(n, {
7445
+ const r = this._getOrReturnCtx(e);
7446
+ return u(r, {
7017
7447
  code: c.invalid_type,
7018
7448
  expected: l.bigint,
7019
- received: n.parsedType
7449
+ received: r.parsedType
7020
7450
  }), g;
7021
7451
  }
7022
- let a;
7023
- const r = new R();
7024
- for (const n of this._def.checks)
7025
- n.kind === "min" ? (n.inclusive ? e.data < n.value : e.data <= n.value) && (a = this._getOrReturnCtx(e, a), u(a, {
7452
+ let i;
7453
+ const n = new R();
7454
+ for (const r of this._def.checks)
7455
+ r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
7026
7456
  code: c.too_small,
7027
7457
  type: "bigint",
7028
- minimum: n.value,
7029
- inclusive: n.inclusive,
7030
- message: n.message
7031
- }), r.dirty()) : n.kind === "max" ? (n.inclusive ? e.data > n.value : e.data >= n.value) && (a = this._getOrReturnCtx(e, a), u(a, {
7458
+ minimum: r.value,
7459
+ inclusive: r.inclusive,
7460
+ message: r.message
7461
+ }), n.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
7032
7462
  code: c.too_big,
7033
7463
  type: "bigint",
7034
- maximum: n.value,
7035
- inclusive: n.inclusive,
7036
- message: n.message
7037
- }), r.dirty()) : n.kind === "multipleOf" ? e.data % n.value !== BigInt(0) && (a = this._getOrReturnCtx(e, a), u(a, {
7464
+ maximum: r.value,
7465
+ inclusive: r.inclusive,
7466
+ message: r.message
7467
+ }), n.dirty()) : r.kind === "multipleOf" ? e.data % r.value !== BigInt(0) && (i = this._getOrReturnCtx(e, i), u(i, {
7038
7468
  code: c.not_multiple_of,
7039
- multipleOf: n.value,
7040
- message: n.message
7041
- }), r.dirty()) : b.assertNever(n);
7042
- return { status: r.value, value: e.data };
7469
+ multipleOf: r.value,
7470
+ message: r.message
7471
+ }), n.dirty()) : b.assertNever(r);
7472
+ return { status: n.value, value: e.data };
7043
7473
  }
7044
7474
  gte(e, t) {
7045
7475
  return this.setLimit("min", e, !0, p.toString(t));
@@ -7053,7 +7483,7 @@ class j extends v {
7053
7483
  lt(e, t) {
7054
7484
  return this.setLimit("max", e, !1, p.toString(t));
7055
7485
  }
7056
- setLimit(e, t, a, r) {
7486
+ setLimit(e, t, i, n) {
7057
7487
  return new j({
7058
7488
  ...this._def,
7059
7489
  checks: [
@@ -7061,8 +7491,8 @@ class j extends v {
7061
7491
  {
7062
7492
  kind: e,
7063
7493
  value: t,
7064
- inclusive: a,
7065
- message: p.toString(r)
7494
+ inclusive: i,
7495
+ message: p.toString(n)
7066
7496
  }
7067
7497
  ]
7068
7498
  });
@@ -7125,69 +7555,69 @@ class j extends v {
7125
7555
  return e;
7126
7556
  }
7127
7557
  }
7128
- j.create = (i) => {
7558
+ j.create = (a) => {
7129
7559
  var e;
7130
7560
  return new j({
7131
7561
  checks: [],
7132
7562
  typeName: _.ZodBigInt,
7133
- coerce: (e = i == null ? void 0 : i.coerce) !== null && e !== void 0 ? e : !1,
7134
- ...h(i)
7563
+ coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
7564
+ ...h(a)
7135
7565
  });
7136
7566
  };
7137
7567
  class K extends v {
7138
7568
  _parse(e) {
7139
7569
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== l.boolean) {
7140
- const a = this._getOrReturnCtx(e);
7141
- return u(a, {
7570
+ const i = this._getOrReturnCtx(e);
7571
+ return u(i, {
7142
7572
  code: c.invalid_type,
7143
7573
  expected: l.boolean,
7144
- received: a.parsedType
7574
+ received: i.parsedType
7145
7575
  }), g;
7146
7576
  }
7147
- return S(e.data);
7577
+ return A(e.data);
7148
7578
  }
7149
7579
  }
7150
- K.create = (i) => new K({
7580
+ K.create = (a) => new K({
7151
7581
  typeName: _.ZodBoolean,
7152
- coerce: (i == null ? void 0 : i.coerce) || !1,
7153
- ...h(i)
7582
+ coerce: (a == null ? void 0 : a.coerce) || !1,
7583
+ ...h(a)
7154
7584
  });
7155
7585
  class Z extends v {
7156
7586
  _parse(e) {
7157
7587
  if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== l.date) {
7158
- const n = this._getOrReturnCtx(e);
7159
- return u(n, {
7588
+ const r = this._getOrReturnCtx(e);
7589
+ return u(r, {
7160
7590
  code: c.invalid_type,
7161
7591
  expected: l.date,
7162
- received: n.parsedType
7592
+ received: r.parsedType
7163
7593
  }), g;
7164
7594
  }
7165
7595
  if (isNaN(e.data.getTime())) {
7166
- const n = this._getOrReturnCtx(e);
7167
- return u(n, {
7596
+ const r = this._getOrReturnCtx(e);
7597
+ return u(r, {
7168
7598
  code: c.invalid_date
7169
7599
  }), g;
7170
7600
  }
7171
- const a = new R();
7172
- let r;
7173
- for (const n of this._def.checks)
7174
- n.kind === "min" ? e.data.getTime() < n.value && (r = this._getOrReturnCtx(e, r), u(r, {
7601
+ const i = new R();
7602
+ let n;
7603
+ for (const r of this._def.checks)
7604
+ r.kind === "min" ? e.data.getTime() < r.value && (n = this._getOrReturnCtx(e, n), u(n, {
7175
7605
  code: c.too_small,
7176
- message: n.message,
7606
+ message: r.message,
7177
7607
  inclusive: !0,
7178
7608
  exact: !1,
7179
- minimum: n.value,
7609
+ minimum: r.value,
7180
7610
  type: "date"
7181
- }), a.dirty()) : n.kind === "max" ? e.data.getTime() > n.value && (r = this._getOrReturnCtx(e, r), u(r, {
7611
+ }), i.dirty()) : r.kind === "max" ? e.data.getTime() > r.value && (n = this._getOrReturnCtx(e, n), u(n, {
7182
7612
  code: c.too_big,
7183
- message: n.message,
7613
+ message: r.message,
7184
7614
  inclusive: !0,
7185
7615
  exact: !1,
7186
- maximum: n.value,
7616
+ maximum: r.value,
7187
7617
  type: "date"
7188
- }), a.dirty()) : b.assertNever(n);
7618
+ }), i.dirty()) : b.assertNever(r);
7189
7619
  return {
7190
- status: a.value,
7620
+ status: i.value,
7191
7621
  value: new Date(e.data.getTime())
7192
7622
  };
7193
7623
  }
@@ -7224,86 +7654,86 @@ class Z extends v {
7224
7654
  return e != null ? new Date(e) : null;
7225
7655
  }
7226
7656
  }
7227
- Z.create = (i) => new Z({
7657
+ Z.create = (a) => new Z({
7228
7658
  checks: [],
7229
- coerce: (i == null ? void 0 : i.coerce) || !1,
7659
+ coerce: (a == null ? void 0 : a.coerce) || !1,
7230
7660
  typeName: _.ZodDate,
7231
- ...h(i)
7661
+ ...h(a)
7232
7662
  });
7233
7663
  class ue extends v {
7234
7664
  _parse(e) {
7235
7665
  if (this._getType(e) !== l.symbol) {
7236
- const a = this._getOrReturnCtx(e);
7237
- return u(a, {
7666
+ const i = this._getOrReturnCtx(e);
7667
+ return u(i, {
7238
7668
  code: c.invalid_type,
7239
7669
  expected: l.symbol,
7240
- received: a.parsedType
7670
+ received: i.parsedType
7241
7671
  }), g;
7242
7672
  }
7243
- return S(e.data);
7673
+ return A(e.data);
7244
7674
  }
7245
7675
  }
7246
- ue.create = (i) => new ue({
7676
+ ue.create = (a) => new ue({
7247
7677
  typeName: _.ZodSymbol,
7248
- ...h(i)
7678
+ ...h(a)
7249
7679
  });
7250
- class X extends v {
7680
+ class J extends v {
7251
7681
  _parse(e) {
7252
7682
  if (this._getType(e) !== l.undefined) {
7253
- const a = this._getOrReturnCtx(e);
7254
- return u(a, {
7683
+ const i = this._getOrReturnCtx(e);
7684
+ return u(i, {
7255
7685
  code: c.invalid_type,
7256
7686
  expected: l.undefined,
7257
- received: a.parsedType
7687
+ received: i.parsedType
7258
7688
  }), g;
7259
7689
  }
7260
- return S(e.data);
7690
+ return A(e.data);
7261
7691
  }
7262
7692
  }
7263
- X.create = (i) => new X({
7693
+ J.create = (a) => new J({
7264
7694
  typeName: _.ZodUndefined,
7265
- ...h(i)
7695
+ ...h(a)
7266
7696
  });
7267
- class J extends v {
7697
+ class X extends v {
7268
7698
  _parse(e) {
7269
7699
  if (this._getType(e) !== l.null) {
7270
- const a = this._getOrReturnCtx(e);
7271
- return u(a, {
7700
+ const i = this._getOrReturnCtx(e);
7701
+ return u(i, {
7272
7702
  code: c.invalid_type,
7273
7703
  expected: l.null,
7274
- received: a.parsedType
7704
+ received: i.parsedType
7275
7705
  }), g;
7276
7706
  }
7277
- return S(e.data);
7707
+ return A(e.data);
7278
7708
  }
7279
7709
  }
7280
- J.create = (i) => new J({
7710
+ X.create = (a) => new X({
7281
7711
  typeName: _.ZodNull,
7282
- ...h(i)
7712
+ ...h(a)
7283
7713
  });
7284
- class W extends v {
7714
+ class F extends v {
7285
7715
  constructor() {
7286
7716
  super(...arguments), this._any = !0;
7287
7717
  }
7288
7718
  _parse(e) {
7289
- return S(e.data);
7719
+ return A(e.data);
7290
7720
  }
7291
7721
  }
7292
- W.create = (i) => new W({
7722
+ F.create = (a) => new F({
7293
7723
  typeName: _.ZodAny,
7294
- ...h(i)
7724
+ ...h(a)
7295
7725
  });
7296
- class U extends v {
7726
+ class V extends v {
7297
7727
  constructor() {
7298
7728
  super(...arguments), this._unknown = !0;
7299
7729
  }
7300
7730
  _parse(e) {
7301
- return S(e.data);
7731
+ return A(e.data);
7302
7732
  }
7303
7733
  }
7304
- U.create = (i) => new U({
7734
+ V.create = (a) => new V({
7305
7735
  typeName: _.ZodUnknown,
7306
- ...h(i)
7736
+ ...h(a)
7307
7737
  });
7308
7738
  class D extends v {
7309
7739
  _parse(e) {
@@ -7315,84 +7745,84 @@ class D extends v {
7315
7745
  }), g;
7316
7746
  }
7317
7747
  }
7318
- D.create = (i) => new D({
7748
+ D.create = (a) => new D({
7319
7749
  typeName: _.ZodNever,
7320
- ...h(i)
7750
+ ...h(a)
7321
7751
  });
7322
7752
  class me extends v {
7323
7753
  _parse(e) {
7324
7754
  if (this._getType(e) !== l.undefined) {
7325
- const a = this._getOrReturnCtx(e);
7326
- return u(a, {
7755
+ const i = this._getOrReturnCtx(e);
7756
+ return u(i, {
7327
7757
  code: c.invalid_type,
7328
7758
  expected: l.void,
7329
- received: a.parsedType
7759
+ received: i.parsedType
7330
7760
  }), g;
7331
7761
  }
7332
- return S(e.data);
7762
+ return A(e.data);
7333
7763
  }
7334
7764
  }
7335
- me.create = (i) => new me({
7765
+ me.create = (a) => new me({
7336
7766
  typeName: _.ZodVoid,
7337
- ...h(i)
7767
+ ...h(a)
7338
7768
  });
7339
- class k extends v {
7769
+ class I extends v {
7340
7770
  _parse(e) {
7341
- const { ctx: t, status: a } = this._processInputParams(e), r = this._def;
7771
+ const { ctx: t, status: i } = this._processInputParams(e), n = this._def;
7342
7772
  if (t.parsedType !== l.array)
7343
7773
  return u(t, {
7344
7774
  code: c.invalid_type,
7345
7775
  expected: l.array,
7346
7776
  received: t.parsedType
7347
7777
  }), g;
7348
- if (r.exactLength !== null) {
7349
- const o = t.data.length > r.exactLength.value, s = t.data.length < r.exactLength.value;
7778
+ if (n.exactLength !== null) {
7779
+ const o = t.data.length > n.exactLength.value, s = t.data.length < n.exactLength.value;
7350
7780
  (o || s) && (u(t, {
7351
7781
  code: o ? c.too_big : c.too_small,
7352
- minimum: s ? r.exactLength.value : void 0,
7353
- maximum: o ? r.exactLength.value : void 0,
7782
+ minimum: s ? n.exactLength.value : void 0,
7783
+ maximum: o ? n.exactLength.value : void 0,
7354
7784
  type: "array",
7355
7785
  inclusive: !0,
7356
7786
  exact: !0,
7357
- message: r.exactLength.message
7358
- }), a.dirty());
7787
+ message: n.exactLength.message
7788
+ }), i.dirty());
7359
7789
  }
7360
- if (r.minLength !== null && t.data.length < r.minLength.value && (u(t, {
7790
+ if (n.minLength !== null && t.data.length < n.minLength.value && (u(t, {
7361
7791
  code: c.too_small,
7362
- minimum: r.minLength.value,
7792
+ minimum: n.minLength.value,
7363
7793
  type: "array",
7364
7794
  inclusive: !0,
7365
7795
  exact: !1,
7366
- message: r.minLength.message
7367
- }), a.dirty()), r.maxLength !== null && t.data.length > r.maxLength.value && (u(t, {
7796
+ message: n.minLength.message
7797
+ }), i.dirty()), n.maxLength !== null && t.data.length > n.maxLength.value && (u(t, {
7368
7798
  code: c.too_big,
7369
- maximum: r.maxLength.value,
7799
+ maximum: n.maxLength.value,
7370
7800
  type: "array",
7371
7801
  inclusive: !0,
7372
7802
  exact: !1,
7373
- message: r.maxLength.message
7374
- }), a.dirty()), t.common.async)
7375
- return Promise.all([...t.data].map((o, s) => r.type._parseAsync(new I(t, o, t.path, s)))).then((o) => R.mergeArray(a, o));
7376
- const n = [...t.data].map((o, s) => r.type._parseSync(new I(t, o, t.path, s)));
7377
- return R.mergeArray(a, n);
7803
+ message: n.maxLength.message
7804
+ }), i.dirty()), t.common.async)
7805
+ return Promise.all([...t.data].map((o, s) => n.type._parseAsync(new M(t, o, t.path, s)))).then((o) => R.mergeArray(i, o));
7806
+ const r = [...t.data].map((o, s) => n.type._parseSync(new M(t, o, t.path, s)));
7807
+ return R.mergeArray(i, r);
7378
7808
  }
7379
7809
  get element() {
7380
7810
  return this._def.type;
7381
7811
  }
7382
7812
  min(e, t) {
7383
- return new k({
7813
+ return new I({
7384
7814
  ...this._def,
7385
7815
  minLength: { value: e, message: p.toString(t) }
7386
7816
  });
7387
7817
  }
7388
7818
  max(e, t) {
7389
- return new k({
7819
+ return new I({
7390
7820
  ...this._def,
7391
7821
  maxLength: { value: e, message: p.toString(t) }
7392
7822
  });
7393
7823
  }
7394
7824
  length(e, t) {
7395
- return new k({
7825
+ return new I({
7396
7826
  ...this._def,
7397
7827
  exactLength: { value: e, message: p.toString(t) }
7398
7828
  });
@@ -7401,29 +7831,29 @@ class k extends v {
7401
7831
  return this.min(1, e);
7402
7832
  }
7403
7833
  }
7404
- k.create = (i, e) => new k({
7405
- type: i,
7834
+ I.create = (a, e) => new I({
7835
+ type: a,
7406
7836
  minLength: null,
7407
7837
  maxLength: null,
7408
7838
  exactLength: null,
7409
7839
  typeName: _.ZodArray,
7410
7840
  ...h(e)
7411
7841
  });
7412
- function G(i) {
7413
- if (i instanceof w) {
7842
+ function W(a) {
7843
+ if (a instanceof w) {
7414
7844
  const e = {};
7415
- for (const t in i.shape) {
7416
- const a = i.shape[t];
7417
- e[t] = M.create(G(a));
7845
+ for (const t in a.shape) {
7846
+ const i = a.shape[t];
7847
+ e[t] = N.create(W(i));
7418
7848
  }
7419
7849
  return new w({
7420
- ...i._def,
7850
+ ...a._def,
7421
7851
  shape: () => e
7422
7852
  });
7423
- } else return i instanceof k ? new k({
7424
- ...i._def,
7425
- type: G(i.element)
7426
- }) : i instanceof M ? M.create(G(i.unwrap())) : i instanceof $ ? $.create(G(i.unwrap())) : i instanceof N ? N.create(i.items.map((e) => G(e))) : i;
7853
+ } else return a instanceof I ? new I({
7854
+ ...a._def,
7855
+ type: W(a.element)
7856
+ }) : a instanceof N ? N.create(W(a.unwrap())) : a instanceof G ? G.create(W(a.unwrap())) : a instanceof P ? P.create(a.items.map((e) => W(e))) : a;
7427
7857
  }
7428
7858
  class w extends v {
7429
7859
  constructor() {
@@ -7444,17 +7874,17 @@ class w extends v {
7444
7874
  received: d.parsedType
7445
7875
  }), g;
7446
7876
  }
7447
- const { status: a, ctx: r } = this._processInputParams(e), { shape: n, keys: o } = this._getCached(), s = [];
7877
+ const { status: i, ctx: n } = this._processInputParams(e), { shape: r, keys: o } = this._getCached(), s = [];
7448
7878
  if (!(this._def.catchall instanceof D && this._def.unknownKeys === "strip"))
7449
- for (const d in r.data)
7879
+ for (const d in n.data)
7450
7880
  o.includes(d) || s.push(d);
7451
7881
  const m = [];
7452
7882
  for (const d of o) {
7453
- const y = n[d], A = r.data[d];
7883
+ const y = r[d], S = n.data[d];
7454
7884
  m.push({
7455
7885
  key: { status: "valid", value: d },
7456
- value: y._parse(new I(r, A, r.path, d)),
7457
- alwaysSet: d in r.data
7886
+ value: y._parse(new M(n, S, n.path, d)),
7887
+ alwaysSet: d in n.data
7458
7888
  });
7459
7889
  }
7460
7890
  if (this._def.catchall instanceof D) {
@@ -7463,40 +7893,40 @@ class w extends v {
7463
7893
  for (const y of s)
7464
7894
  m.push({
7465
7895
  key: { status: "valid", value: y },
7466
- value: { status: "valid", value: r.data[y] }
7896
+ value: { status: "valid", value: n.data[y] }
7467
7897
  });
7468
7898
  else if (d === "strict")
7469
- s.length > 0 && (u(r, {
7899
+ s.length > 0 && (u(n, {
7470
7900
  code: c.unrecognized_keys,
7471
7901
  keys: s
7472
- }), a.dirty());
7902
+ }), i.dirty());
7473
7903
  else if (d !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
7474
7904
  } else {
7475
7905
  const d = this._def.catchall;
7476
7906
  for (const y of s) {
7477
- const A = r.data[y];
7907
+ const S = n.data[y];
7478
7908
  m.push({
7479
7909
  key: { status: "valid", value: y },
7480
7910
  value: d._parse(
7481
- new I(r, A, r.path, y)
7911
+ new M(n, S, n.path, y)
7482
7912
  //, ctx.child(key), value, getParsedType(value)
7483
7913
  ),
7484
- alwaysSet: y in r.data
7914
+ alwaysSet: y in n.data
7485
7915
  });
7486
7916
  }
7487
7917
  }
7488
- return r.common.async ? Promise.resolve().then(async () => {
7918
+ return n.common.async ? Promise.resolve().then(async () => {
7489
7919
  const d = [];
7490
7920
  for (const y of m) {
7491
- const A = await y.key;
7921
+ const S = await y.key;
7492
7922
  d.push({
7493
- key: A,
7923
+ key: S,
7494
7924
  value: await y.value,
7495
7925
  alwaysSet: y.alwaysSet
7496
7926
  });
7497
7927
  }
7498
7928
  return d;
7499
- }).then((d) => R.mergeObjectSync(a, d)) : R.mergeObjectSync(a, m);
7929
+ }).then((d) => R.mergeObjectSync(i, d)) : R.mergeObjectSync(i, m);
7500
7930
  }
7501
7931
  get shape() {
7502
7932
  return this._def.shape();
@@ -7506,9 +7936,9 @@ class w extends v {
7506
7936
  ...this._def,
7507
7937
  unknownKeys: "strict",
7508
7938
  ...e !== void 0 ? {
7509
- errorMap: (t, a) => {
7510
- var r, n, o, s;
7511
- const m = (o = (n = (r = this._def).errorMap) === null || n === void 0 ? void 0 : n.call(r, t, a).message) !== null && o !== void 0 ? o : a.defaultError;
7939
+ errorMap: (t, i) => {
7940
+ var n, r, o, s;
7941
+ const m = (o = (r = (n = this._def).errorMap) === null || r === void 0 ? void 0 : r.call(n, t, i).message) !== null && o !== void 0 ? o : i.defaultError;
7512
7942
  return t.code === "unrecognized_keys" ? {
7513
7943
  message: (s = p.errToObj(e).message) !== null && s !== void 0 ? s : m
7514
7944
  } : {
@@ -7639,8 +8069,8 @@ class w extends v {
7639
8069
  }
7640
8070
  pick(e) {
7641
8071
  const t = {};
7642
- return b.objectKeys(e).forEach((a) => {
7643
- e[a] && this.shape[a] && (t[a] = this.shape[a]);
8072
+ return b.objectKeys(e).forEach((i) => {
8073
+ e[i] && this.shape[i] && (t[i] = this.shape[i]);
7644
8074
  }), new w({
7645
8075
  ...this._def,
7646
8076
  shape: () => t
@@ -7648,8 +8078,8 @@ class w extends v {
7648
8078
  }
7649
8079
  omit(e) {
7650
8080
  const t = {};
7651
- return b.objectKeys(this.shape).forEach((a) => {
7652
- e[a] || (t[a] = this.shape[a]);
8081
+ return b.objectKeys(this.shape).forEach((i) => {
8082
+ e[i] || (t[i] = this.shape[i]);
7653
8083
  }), new w({
7654
8084
  ...this._def,
7655
8085
  shape: () => t
@@ -7659,13 +8089,13 @@ class w extends v {
7659
8089
  * @deprecated
7660
8090
  */
7661
8091
  deepPartial() {
7662
- return G(this);
8092
+ return W(this);
7663
8093
  }
7664
8094
  partial(e) {
7665
8095
  const t = {};
7666
- return b.objectKeys(this.shape).forEach((a) => {
7667
- const r = this.shape[a];
7668
- e && !e[a] ? t[a] = r : t[a] = r.optional();
8096
+ return b.objectKeys(this.shape).forEach((i) => {
8097
+ const n = this.shape[i];
8098
+ e && !e[i] ? t[i] = n : t[i] = n.optional();
7669
8099
  }), new w({
7670
8100
  ...this._def,
7671
8101
  shape: () => t
@@ -7673,14 +8103,14 @@ class w extends v {
7673
8103
  }
7674
8104
  required(e) {
7675
8105
  const t = {};
7676
- return b.objectKeys(this.shape).forEach((a) => {
7677
- if (e && !e[a])
7678
- t[a] = this.shape[a];
8106
+ return b.objectKeys(this.shape).forEach((i) => {
8107
+ if (e && !e[i])
8108
+ t[i] = this.shape[i];
7679
8109
  else {
7680
- let n = this.shape[a];
7681
- for (; n instanceof M; )
7682
- n = n._def.innerType;
7683
- t[a] = n;
8110
+ let r = this.shape[i];
8111
+ for (; r instanceof N; )
8112
+ r = r._def.innerType;
8113
+ t[i] = r;
7684
8114
  }
7685
8115
  }), new w({
7686
8116
  ...this._def,
@@ -7691,22 +8121,22 @@ class w extends v {
7691
8121
  return Ee(b.objectKeys(this.shape));
7692
8122
  }
7693
8123
  }
7694
- w.create = (i, e) => new w({
7695
- shape: () => i,
8124
+ w.create = (a, e) => new w({
8125
+ shape: () => a,
7696
8126
  unknownKeys: "strip",
7697
8127
  catchall: D.create(),
7698
8128
  typeName: _.ZodObject,
7699
8129
  ...h(e)
7700
8130
  });
7701
- w.strictCreate = (i, e) => new w({
7702
- shape: () => i,
8131
+ w.strictCreate = (a, e) => new w({
8132
+ shape: () => a,
7703
8133
  unknownKeys: "strict",
7704
8134
  catchall: D.create(),
7705
8135
  typeName: _.ZodObject,
7706
8136
  ...h(e)
7707
8137
  });
7708
- w.lazycreate = (i, e) => new w({
7709
- shape: i,
8138
+ w.lazycreate = (a, e) => new w({
8139
+ shape: a,
7710
8140
  unknownKeys: "strip",
7711
8141
  catchall: D.create(),
7712
8142
  typeName: _.ZodObject,
@@ -7714,22 +8144,22 @@ w.lazycreate = (i, e) => new w({
7714
8144
  });
7715
8145
  class Q extends v {
7716
8146
  _parse(e) {
7717
- const { ctx: t } = this._processInputParams(e), a = this._def.options;
7718
- function r(n) {
7719
- for (const s of n)
8147
+ const { ctx: t } = this._processInputParams(e), i = this._def.options;
8148
+ function n(r) {
8149
+ for (const s of r)
7720
8150
  if (s.result.status === "valid")
7721
8151
  return s.result;
7722
- for (const s of n)
8152
+ for (const s of r)
7723
8153
  if (s.result.status === "dirty")
7724
8154
  return t.common.issues.push(...s.ctx.common.issues), s.result;
7725
- const o = n.map((s) => new O(s.ctx.common.issues));
8155
+ const o = r.map((s) => new O(s.ctx.common.issues));
7726
8156
  return u(t, {
7727
8157
  code: c.invalid_union,
7728
8158
  unionErrors: o
7729
8159
  }), g;
7730
8160
  }
7731
8161
  if (t.common.async)
7732
- return Promise.all(a.map(async (n) => {
8162
+ return Promise.all(i.map(async (r) => {
7733
8163
  const o = {
7734
8164
  ...t,
7735
8165
  common: {
@@ -7739,18 +8169,18 @@ class Q extends v {
7739
8169
  parent: null
7740
8170
  };
7741
8171
  return {
7742
- result: await n._parseAsync({
8172
+ result: await r._parseAsync({
7743
8173
  data: t.data,
7744
8174
  path: t.path,
7745
8175
  parent: o
7746
8176
  }),
7747
8177
  ctx: o
7748
8178
  };
7749
- })).then(r);
8179
+ })).then(n);
7750
8180
  {
7751
- let n;
8181
+ let r;
7752
8182
  const o = [];
7753
- for (const m of a) {
8183
+ for (const m of i) {
7754
8184
  const d = {
7755
8185
  ...t,
7756
8186
  common: {
@@ -7765,10 +8195,10 @@ class Q extends v {
7765
8195
  });
7766
8196
  if (y.status === "valid")
7767
8197
  return y;
7768
- y.status === "dirty" && !n && (n = { result: y, ctx: d }), d.common.issues.length && o.push(d.common.issues);
8198
+ y.status === "dirty" && !r && (r = { result: y, ctx: d }), d.common.issues.length && o.push(d.common.issues);
7769
8199
  }
7770
- if (n)
7771
- return t.common.issues.push(...n.ctx.common.issues), n.result;
8200
+ if (r)
8201
+ return t.common.issues.push(...r.ctx.common.issues), r.result;
7772
8202
  const s = o.map((m) => new O(m));
7773
8203
  return u(t, {
7774
8204
  code: c.invalid_union,
@@ -7780,12 +8210,12 @@ class Q extends v {
7780
8210
  return this._def.options;
7781
8211
  }
7782
8212
  }
7783
- Q.create = (i, e) => new Q({
7784
- options: i,
8213
+ Q.create = (a, e) => new Q({
8214
+ options: a,
7785
8215
  typeName: _.ZodUnion,
7786
8216
  ...h(e)
7787
8217
  });
7788
- const se = (i) => i instanceof ie ? se(i.schema) : i instanceof P ? se(i.innerType()) : i instanceof ae ? [i.value] : i instanceof V ? i.options : i instanceof re ? Object.keys(i.enum) : i instanceof ne ? se(i._def.innerType) : i instanceof X ? [void 0] : i instanceof J ? [null] : null;
8218
+ const se = (a) => a instanceof ae ? se(a.schema) : a instanceof k ? se(a.innerType()) : a instanceof ie ? [a.value] : a instanceof U ? a.options : a instanceof ne ? Object.keys(a.enum) : a instanceof re ? se(a._def.innerType) : a instanceof J ? [void 0] : a instanceof X ? [null] : null;
7789
8219
  class he extends v {
7790
8220
  _parse(e) {
7791
8221
  const { ctx: t } = this._processInputParams(e);
@@ -7795,19 +8225,19 @@ class he extends v {
7795
8225
  expected: l.object,
7796
8226
  received: t.parsedType
7797
8227
  }), g;
7798
- const a = this.discriminator, r = t.data[a], n = this.optionsMap.get(r);
7799
- return n ? t.common.async ? n._parseAsync({
8228
+ const i = this.discriminator, n = t.data[i], r = this.optionsMap.get(n);
8229
+ return r ? t.common.async ? r._parseAsync({
7800
8230
  data: t.data,
7801
8231
  path: t.path,
7802
8232
  parent: t
7803
- }) : n._parseSync({
8233
+ }) : r._parseSync({
7804
8234
  data: t.data,
7805
8235
  path: t.path,
7806
8236
  parent: t
7807
8237
  }) : (u(t, {
7808
8238
  code: c.invalid_union_discriminator,
7809
8239
  options: Array.from(this.optionsMap.keys()),
7810
- path: [a]
8240
+ path: [i]
7811
8241
  }), g);
7812
8242
  }
7813
8243
  get discriminator() {
@@ -7827,136 +8257,136 @@ class he extends v {
7827
8257
  * @param types an array of object schemas
7828
8258
  * @param params
7829
8259
  */
7830
- static create(e, t, a) {
7831
- const r = /* @__PURE__ */ new Map();
7832
- for (const n of t) {
7833
- const o = se(n.shape[e]);
8260
+ static create(e, t, i) {
8261
+ const n = /* @__PURE__ */ new Map();
8262
+ for (const r of t) {
8263
+ const o = se(r.shape[e]);
7834
8264
  if (!o)
7835
8265
  throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
7836
8266
  for (const s of o) {
7837
- if (r.has(s))
8267
+ if (n.has(s))
7838
8268
  throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);
7839
- r.set(s, n);
8269
+ n.set(s, r);
7840
8270
  }
7841
8271
  }
7842
8272
  return new he({
7843
8273
  typeName: _.ZodDiscriminatedUnion,
7844
8274
  discriminator: e,
7845
8275
  options: t,
7846
- optionsMap: r,
7847
- ...h(a)
8276
+ optionsMap: n,
8277
+ ...h(i)
7848
8278
  });
7849
8279
  }
7850
8280
  }
7851
- function Re(i, e) {
7852
- const t = L(i), a = L(e);
7853
- if (i === e)
7854
- return { valid: !0, data: i };
7855
- if (t === l.object && a === l.object) {
7856
- const r = b.objectKeys(e), n = b.objectKeys(i).filter((s) => r.indexOf(s) !== -1), o = { ...i, ...e };
7857
- for (const s of n) {
7858
- const m = Re(i[s], e[s]);
8281
+ function Re(a, e) {
8282
+ const t = L(a), i = L(e);
8283
+ if (a === e)
8284
+ return { valid: !0, data: a };
8285
+ if (t === l.object && i === l.object) {
8286
+ const n = b.objectKeys(e), r = b.objectKeys(a).filter((s) => n.indexOf(s) !== -1), o = { ...a, ...e };
8287
+ for (const s of r) {
8288
+ const m = Re(a[s], e[s]);
7859
8289
  if (!m.valid)
7860
8290
  return { valid: !1 };
7861
8291
  o[s] = m.data;
7862
8292
  }
7863
8293
  return { valid: !0, data: o };
7864
- } else if (t === l.array && a === l.array) {
7865
- if (i.length !== e.length)
8294
+ } else if (t === l.array && i === l.array) {
8295
+ if (a.length !== e.length)
7866
8296
  return { valid: !1 };
7867
- const r = [];
7868
- for (let n = 0; n < i.length; n++) {
7869
- const o = i[n], s = e[n], m = Re(o, s);
8297
+ const n = [];
8298
+ for (let r = 0; r < a.length; r++) {
8299
+ const o = a[r], s = e[r], m = Re(o, s);
7870
8300
  if (!m.valid)
7871
8301
  return { valid: !1 };
7872
- r.push(m.data);
8302
+ n.push(m.data);
7873
8303
  }
7874
- return { valid: !0, data: r };
7875
- } else return t === l.date && a === l.date && +i == +e ? { valid: !0, data: i } : { valid: !1 };
8304
+ return { valid: !0, data: n };
8305
+ } else return t === l.date && i === l.date && +a == +e ? { valid: !0, data: a } : { valid: !1 };
7876
8306
  }
7877
8307
  class ee extends v {
7878
8308
  _parse(e) {
7879
- const { status: t, ctx: a } = this._processInputParams(e), r = (n, o) => {
7880
- if (xe(n) || xe(o))
8309
+ const { status: t, ctx: i } = this._processInputParams(e), n = (r, o) => {
8310
+ if (xe(r) || xe(o))
7881
8311
  return g;
7882
- const s = Re(n.value, o.value);
7883
- return s.valid ? ((we(n) || we(o)) && t.dirty(), { status: t.value, value: s.data }) : (u(a, {
8312
+ const s = Re(r.value, o.value);
8313
+ return s.valid ? ((we(r) || we(o)) && t.dirty(), { status: t.value, value: s.data }) : (u(i, {
7884
8314
  code: c.invalid_intersection_types
7885
8315
  }), g);
7886
8316
  };
7887
- return a.common.async ? Promise.all([
8317
+ return i.common.async ? Promise.all([
7888
8318
  this._def.left._parseAsync({
7889
- data: a.data,
7890
- path: a.path,
7891
- parent: a
8319
+ data: i.data,
8320
+ path: i.path,
8321
+ parent: i
7892
8322
  }),
7893
8323
  this._def.right._parseAsync({
7894
- data: a.data,
7895
- path: a.path,
7896
- parent: a
8324
+ data: i.data,
8325
+ path: i.path,
8326
+ parent: i
7897
8327
  })
7898
- ]).then(([n, o]) => r(n, o)) : r(this._def.left._parseSync({
7899
- data: a.data,
7900
- path: a.path,
7901
- parent: a
8328
+ ]).then(([r, o]) => n(r, o)) : n(this._def.left._parseSync({
8329
+ data: i.data,
8330
+ path: i.path,
8331
+ parent: i
7902
8332
  }), this._def.right._parseSync({
7903
- data: a.data,
7904
- path: a.path,
7905
- parent: a
8333
+ data: i.data,
8334
+ path: i.path,
8335
+ parent: i
7906
8336
  }));
7907
8337
  }
7908
8338
  }
7909
- ee.create = (i, e, t) => new ee({
7910
- left: i,
8339
+ ee.create = (a, e, t) => new ee({
8340
+ left: a,
7911
8341
  right: e,
7912
8342
  typeName: _.ZodIntersection,
7913
8343
  ...h(t)
7914
8344
  });
7915
- class N extends v {
8345
+ class P extends v {
7916
8346
  _parse(e) {
7917
- const { status: t, ctx: a } = this._processInputParams(e);
7918
- if (a.parsedType !== l.array)
7919
- return u(a, {
8347
+ const { status: t, ctx: i } = this._processInputParams(e);
8348
+ if (i.parsedType !== l.array)
8349
+ return u(i, {
7920
8350
  code: c.invalid_type,
7921
8351
  expected: l.array,
7922
- received: a.parsedType
8352
+ received: i.parsedType
7923
8353
  }), g;
7924
- if (a.data.length < this._def.items.length)
7925
- return u(a, {
8354
+ if (i.data.length < this._def.items.length)
8355
+ return u(i, {
7926
8356
  code: c.too_small,
7927
8357
  minimum: this._def.items.length,
7928
8358
  inclusive: !0,
7929
8359
  exact: !1,
7930
8360
  type: "array"
7931
8361
  }), g;
7932
- !this._def.rest && a.data.length > this._def.items.length && (u(a, {
8362
+ !this._def.rest && i.data.length > this._def.items.length && (u(i, {
7933
8363
  code: c.too_big,
7934
8364
  maximum: this._def.items.length,
7935
8365
  inclusive: !0,
7936
8366
  exact: !1,
7937
8367
  type: "array"
7938
8368
  }), t.dirty());
7939
- const n = [...a.data].map((o, s) => {
8369
+ const r = [...i.data].map((o, s) => {
7940
8370
  const m = this._def.items[s] || this._def.rest;
7941
- return m ? m._parse(new I(a, o, a.path, s)) : null;
8371
+ return m ? m._parse(new M(i, o, i.path, s)) : null;
7942
8372
  }).filter((o) => !!o);
7943
- return a.common.async ? Promise.all(n).then((o) => R.mergeArray(t, o)) : R.mergeArray(t, n);
8373
+ return i.common.async ? Promise.all(r).then((o) => R.mergeArray(t, o)) : R.mergeArray(t, r);
7944
8374
  }
7945
8375
  get items() {
7946
8376
  return this._def.items;
7947
8377
  }
7948
8378
  rest(e) {
7949
- return new N({
8379
+ return new P({
7950
8380
  ...this._def,
7951
8381
  rest: e
7952
8382
  });
7953
8383
  }
7954
8384
  }
7955
- N.create = (i, e) => {
7956
- if (!Array.isArray(i))
8385
+ P.create = (a, e) => {
8386
+ if (!Array.isArray(a))
7957
8387
  throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
7958
- return new N({
7959
- items: i,
8388
+ return new P({
8389
+ items: a,
7960
8390
  typeName: _.ZodTuple,
7961
8391
  rest: null,
7962
8392
  ...h(e)
@@ -7970,30 +8400,30 @@ class te extends v {
7970
8400
  return this._def.valueType;
7971
8401
  }
7972
8402
  _parse(e) {
7973
- const { status: t, ctx: a } = this._processInputParams(e);
7974
- if (a.parsedType !== l.object)
7975
- return u(a, {
8403
+ const { status: t, ctx: i } = this._processInputParams(e);
8404
+ if (i.parsedType !== l.object)
8405
+ return u(i, {
7976
8406
  code: c.invalid_type,
7977
8407
  expected: l.object,
7978
- received: a.parsedType
8408
+ received: i.parsedType
7979
8409
  }), g;
7980
- const r = [], n = this._def.keyType, o = this._def.valueType;
7981
- for (const s in a.data)
7982
- r.push({
7983
- key: n._parse(new I(a, s, a.path, s)),
7984
- value: o._parse(new I(a, a.data[s], a.path, s))
8410
+ const n = [], r = this._def.keyType, o = this._def.valueType;
8411
+ for (const s in i.data)
8412
+ n.push({
8413
+ key: r._parse(new M(i, s, i.path, s)),
8414
+ value: o._parse(new M(i, i.data[s], i.path, s))
7985
8415
  });
7986
- return a.common.async ? R.mergeObjectAsync(t, r) : R.mergeObjectSync(t, r);
8416
+ return i.common.async ? R.mergeObjectAsync(t, n) : R.mergeObjectSync(t, n);
7987
8417
  }
7988
8418
  get element() {
7989
8419
  return this._def.valueType;
7990
8420
  }
7991
- static create(e, t, a) {
8421
+ static create(e, t, i) {
7992
8422
  return t instanceof v ? new te({
7993
8423
  keyType: e,
7994
8424
  valueType: t,
7995
8425
  typeName: _.ZodRecord,
7996
- ...h(a)
8426
+ ...h(i)
7997
8427
  }) : new te({
7998
8428
  keyType: E.create(),
7999
8429
  valueType: e,
@@ -8010,18 +8440,18 @@ class pe extends v {
8010
8440
  return this._def.valueType;
8011
8441
  }
8012
8442
  _parse(e) {
8013
- const { status: t, ctx: a } = this._processInputParams(e);
8014
- if (a.parsedType !== l.map)
8015
- return u(a, {
8443
+ const { status: t, ctx: i } = this._processInputParams(e);
8444
+ if (i.parsedType !== l.map)
8445
+ return u(i, {
8016
8446
  code: c.invalid_type,
8017
8447
  expected: l.map,
8018
- received: a.parsedType
8448
+ received: i.parsedType
8019
8449
  }), g;
8020
- const r = this._def.keyType, n = this._def.valueType, o = [...a.data.entries()].map(([s, m], d) => ({
8021
- key: r._parse(new I(a, s, a.path, [d, "key"])),
8022
- value: n._parse(new I(a, m, a.path, [d, "value"]))
8450
+ const n = this._def.keyType, r = this._def.valueType, o = [...i.data.entries()].map(([s, m], d) => ({
8451
+ key: n._parse(new M(i, s, i.path, [d, "key"])),
8452
+ value: r._parse(new M(i, m, i.path, [d, "value"]))
8023
8453
  }));
8024
- if (a.common.async) {
8454
+ if (i.common.async) {
8025
8455
  const s = /* @__PURE__ */ new Map();
8026
8456
  return Promise.resolve().then(async () => {
8027
8457
  for (const m of o) {
@@ -8044,38 +8474,38 @@ class pe extends v {
8044
8474
  }
8045
8475
  }
8046
8476
  }
8047
- pe.create = (i, e, t) => new pe({
8477
+ pe.create = (a, e, t) => new pe({
8048
8478
  valueType: e,
8049
- keyType: i,
8479
+ keyType: a,
8050
8480
  typeName: _.ZodMap,
8051
8481
  ...h(t)
8052
8482
  });
8053
8483
  class q extends v {
8054
8484
  _parse(e) {
8055
- const { status: t, ctx: a } = this._processInputParams(e);
8056
- if (a.parsedType !== l.set)
8057
- return u(a, {
8485
+ const { status: t, ctx: i } = this._processInputParams(e);
8486
+ if (i.parsedType !== l.set)
8487
+ return u(i, {
8058
8488
  code: c.invalid_type,
8059
8489
  expected: l.set,
8060
- received: a.parsedType
8490
+ received: i.parsedType
8061
8491
  }), g;
8062
- const r = this._def;
8063
- r.minSize !== null && a.data.size < r.minSize.value && (u(a, {
8492
+ const n = this._def;
8493
+ n.minSize !== null && i.data.size < n.minSize.value && (u(i, {
8064
8494
  code: c.too_small,
8065
- minimum: r.minSize.value,
8495
+ minimum: n.minSize.value,
8066
8496
  type: "set",
8067
8497
  inclusive: !0,
8068
8498
  exact: !1,
8069
- message: r.minSize.message
8070
- }), t.dirty()), r.maxSize !== null && a.data.size > r.maxSize.value && (u(a, {
8499
+ message: n.minSize.message
8500
+ }), t.dirty()), n.maxSize !== null && i.data.size > n.maxSize.value && (u(i, {
8071
8501
  code: c.too_big,
8072
- maximum: r.maxSize.value,
8502
+ maximum: n.maxSize.value,
8073
8503
  type: "set",
8074
8504
  inclusive: !0,
8075
8505
  exact: !1,
8076
- message: r.maxSize.message
8506
+ message: n.maxSize.message
8077
8507
  }), t.dirty());
8078
- const n = this._def.valueType;
8508
+ const r = this._def.valueType;
8079
8509
  function o(m) {
8080
8510
  const d = /* @__PURE__ */ new Set();
8081
8511
  for (const y of m) {
@@ -8085,8 +8515,8 @@ class q extends v {
8085
8515
  }
8086
8516
  return { status: t.value, value: d };
8087
8517
  }
8088
- const s = [...a.data.values()].map((m, d) => n._parse(new I(a, m, a.path, d)));
8089
- return a.common.async ? Promise.all(s).then((m) => o(m)) : o(s);
8518
+ const s = [...i.data.values()].map((m, d) => r._parse(new M(i, m, i.path, d)));
8519
+ return i.common.async ? Promise.all(s).then((m) => o(m)) : o(s);
8090
8520
  }
8091
8521
  min(e, t) {
8092
8522
  return new q({
@@ -8107,14 +8537,14 @@ class q extends v {
8107
8537
  return this.min(1, e);
8108
8538
  }
8109
8539
  }
8110
- q.create = (i, e) => new q({
8111
- valueType: i,
8540
+ q.create = (a, e) => new q({
8541
+ valueType: a,
8112
8542
  minSize: null,
8113
8543
  maxSize: null,
8114
8544
  typeName: _.ZodSet,
8115
8545
  ...h(e)
8116
8546
  });
8117
- class F extends v {
8547
+ class $ extends v {
8118
8548
  constructor() {
8119
8549
  super(...arguments), this.validate = this.implement;
8120
8550
  }
@@ -8126,7 +8556,7 @@ class F extends v {
8126
8556
  expected: l.function,
8127
8557
  received: t.parsedType
8128
8558
  }), g;
8129
- function a(s, m) {
8559
+ function i(s, m) {
8130
8560
  return de({
8131
8561
  data: s,
8132
8562
  path: t.path,
@@ -8142,7 +8572,7 @@ class F extends v {
8142
8572
  }
8143
8573
  });
8144
8574
  }
8145
- function r(s, m) {
8575
+ function n(s, m) {
8146
8576
  return de({
8147
8577
  data: s,
8148
8578
  path: t.path,
@@ -8158,27 +8588,27 @@ class F extends v {
8158
8588
  }
8159
8589
  });
8160
8590
  }
8161
- const n = { errorMap: t.common.contextualErrorMap }, o = t.data;
8591
+ const r = { errorMap: t.common.contextualErrorMap }, o = t.data;
8162
8592
  if (this._def.returns instanceof H) {
8163
8593
  const s = this;
8164
- return S(async function(...m) {
8165
- const d = new O([]), y = await s._def.args.parseAsync(m, n).catch((ve) => {
8166
- throw d.addIssue(a(m, ve)), d;
8167
- }), A = await Reflect.apply(o, this, y);
8168
- return await s._def.returns._def.type.parseAsync(A, n).catch((ve) => {
8169
- throw d.addIssue(r(A, ve)), d;
8594
+ return A(async function(...m) {
8595
+ const d = new O([]), y = await s._def.args.parseAsync(m, r).catch((ve) => {
8596
+ throw d.addIssue(i(m, ve)), d;
8597
+ }), S = await Reflect.apply(o, this, y);
8598
+ return await s._def.returns._def.type.parseAsync(S, r).catch((ve) => {
8599
+ throw d.addIssue(n(S, ve)), d;
8170
8600
  });
8171
8601
  });
8172
8602
  } else {
8173
8603
  const s = this;
8174
- return S(function(...m) {
8175
- const d = s._def.args.safeParse(m, n);
8604
+ return A(function(...m) {
8605
+ const d = s._def.args.safeParse(m, r);
8176
8606
  if (!d.success)
8177
- throw new O([a(m, d.error)]);
8178
- const y = Reflect.apply(o, this, d.data), A = s._def.returns.safeParse(y, n);
8179
- if (!A.success)
8180
- throw new O([r(y, A.error)]);
8181
- return A.data;
8607
+ throw new O([i(m, d.error)]);
8608
+ const y = Reflect.apply(o, this, d.data), S = s._def.returns.safeParse(y, r);
8609
+ if (!S.success)
8610
+ throw new O([n(y, S.error)]);
8611
+ return S.data;
8182
8612
  });
8183
8613
  }
8184
8614
  }
@@ -8189,13 +8619,13 @@ class F extends v {
8189
8619
  return this._def.returns;
8190
8620
  }
8191
8621
  args(...e) {
8192
- return new F({
8622
+ return new $({
8193
8623
  ...this._def,
8194
- args: N.create(e).rest(U.create())
8624
+ args: P.create(e).rest(V.create())
8195
8625
  });
8196
8626
  }
8197
8627
  returns(e) {
8198
- return new F({
8628
+ return new $({
8199
8629
  ...this._def,
8200
8630
  returns: e
8201
8631
  });
@@ -8206,16 +8636,16 @@ class F extends v {
8206
8636
  strictImplement(e) {
8207
8637
  return this.parse(e);
8208
8638
  }
8209
- static create(e, t, a) {
8210
- return new F({
8211
- args: e || N.create([]).rest(U.create()),
8212
- returns: t || U.create(),
8639
+ static create(e, t, i) {
8640
+ return new $({
8641
+ args: e || P.create([]).rest(V.create()),
8642
+ returns: t || V.create(),
8213
8643
  typeName: _.ZodFunction,
8214
- ...h(a)
8644
+ ...h(i)
8215
8645
  });
8216
8646
  }
8217
8647
  }
8218
- class ie extends v {
8648
+ class ae extends v {
8219
8649
  get schema() {
8220
8650
  return this._def.getter();
8221
8651
  }
@@ -8224,12 +8654,12 @@ class ie extends v {
8224
8654
  return this._def.getter()._parse({ data: t.data, path: t.path, parent: t });
8225
8655
  }
8226
8656
  }
8227
- ie.create = (i, e) => new ie({
8228
- getter: i,
8657
+ ae.create = (a, e) => new ae({
8658
+ getter: a,
8229
8659
  typeName: _.ZodLazy,
8230
8660
  ...h(e)
8231
8661
  });
8232
- class ae extends v {
8662
+ class ie extends v {
8233
8663
  _parse(e) {
8234
8664
  if (e.data !== this._def.value) {
8235
8665
  const t = this._getOrReturnCtx(e);
@@ -8245,37 +8675,37 @@ class ae extends v {
8245
8675
  return this._def.value;
8246
8676
  }
8247
8677
  }
8248
- ae.create = (i, e) => new ae({
8249
- value: i,
8678
+ ie.create = (a, e) => new ie({
8679
+ value: a,
8250
8680
  typeName: _.ZodLiteral,
8251
8681
  ...h(e)
8252
8682
  });
8253
- function Ee(i, e) {
8254
- return new V({
8255
- values: i,
8683
+ function Ee(a, e) {
8684
+ return new U({
8685
+ values: a,
8256
8686
  typeName: _.ZodEnum,
8257
8687
  ...h(e)
8258
8688
  });
8259
8689
  }
8260
- class V extends v {
8690
+ class U extends v {
8261
8691
  _parse(e) {
8262
8692
  if (typeof e.data != "string") {
8263
- const t = this._getOrReturnCtx(e), a = this._def.values;
8693
+ const t = this._getOrReturnCtx(e), i = this._def.values;
8264
8694
  return u(t, {
8265
- expected: b.joinValues(a),
8695
+ expected: b.joinValues(i),
8266
8696
  received: t.parsedType,
8267
8697
  code: c.invalid_type
8268
8698
  }), g;
8269
8699
  }
8270
8700
  if (this._def.values.indexOf(e.data) === -1) {
8271
- const t = this._getOrReturnCtx(e), a = this._def.values;
8701
+ const t = this._getOrReturnCtx(e), i = this._def.values;
8272
8702
  return u(t, {
8273
8703
  received: t.data,
8274
8704
  code: c.invalid_enum_value,
8275
- options: a
8705
+ options: i
8276
8706
  }), g;
8277
8707
  }
8278
- return S(e.data);
8708
+ return A(e.data);
8279
8709
  }
8280
8710
  get options() {
8281
8711
  return this._def.values;
@@ -8299,40 +8729,40 @@ class V extends v {
8299
8729
  return e;
8300
8730
  }
8301
8731
  extract(e) {
8302
- return V.create(e);
8732
+ return U.create(e);
8303
8733
  }
8304
8734
  exclude(e) {
8305
- return V.create(this.options.filter((t) => !e.includes(t)));
8735
+ return U.create(this.options.filter((t) => !e.includes(t)));
8306
8736
  }
8307
8737
  }
8308
- V.create = Ee;
8309
- class re extends v {
8738
+ U.create = Ee;
8739
+ class ne extends v {
8310
8740
  _parse(e) {
8311
- const t = b.getValidEnumValues(this._def.values), a = this._getOrReturnCtx(e);
8312
- if (a.parsedType !== l.string && a.parsedType !== l.number) {
8313
- const r = b.objectValues(t);
8314
- return u(a, {
8315
- expected: b.joinValues(r),
8316
- received: a.parsedType,
8741
+ const t = b.getValidEnumValues(this._def.values), i = this._getOrReturnCtx(e);
8742
+ if (i.parsedType !== l.string && i.parsedType !== l.number) {
8743
+ const n = b.objectValues(t);
8744
+ return u(i, {
8745
+ expected: b.joinValues(n),
8746
+ received: i.parsedType,
8317
8747
  code: c.invalid_type
8318
8748
  }), g;
8319
8749
  }
8320
8750
  if (t.indexOf(e.data) === -1) {
8321
- const r = b.objectValues(t);
8322
- return u(a, {
8323
- received: a.data,
8751
+ const n = b.objectValues(t);
8752
+ return u(i, {
8753
+ received: i.data,
8324
8754
  code: c.invalid_enum_value,
8325
- options: r
8755
+ options: n
8326
8756
  }), g;
8327
8757
  }
8328
- return S(e.data);
8758
+ return A(e.data);
8329
8759
  }
8330
8760
  get enum() {
8331
8761
  return this._def.values;
8332
8762
  }
8333
8763
  }
8334
- re.create = (i, e) => new re({
8335
- values: i,
8764
+ ne.create = (a, e) => new ne({
8765
+ values: a,
8336
8766
  typeName: _.ZodNativeEnum,
8337
8767
  ...h(e)
8338
8768
  });
@@ -8348,19 +8778,19 @@ class H extends v {
8348
8778
  expected: l.promise,
8349
8779
  received: t.parsedType
8350
8780
  }), g;
8351
- const a = t.parsedType === l.promise ? t.data : Promise.resolve(t.data);
8352
- return S(a.then((r) => this._def.type.parseAsync(r, {
8781
+ const i = t.parsedType === l.promise ? t.data : Promise.resolve(t.data);
8782
+ return A(i.then((n) => this._def.type.parseAsync(n, {
8353
8783
  path: t.path,
8354
8784
  errorMap: t.common.contextualErrorMap
8355
8785
  })));
8356
8786
  }
8357
8787
  }
8358
- H.create = (i, e) => new H({
8359
- type: i,
8788
+ H.create = (a, e) => new H({
8789
+ type: a,
8360
8790
  typeName: _.ZodPromise,
8361
8791
  ...h(e)
8362
8792
  });
8363
- class P extends v {
8793
+ class k extends v {
8364
8794
  innerType() {
8365
8795
  return this._def.schema;
8366
8796
  }
@@ -8368,110 +8798,110 @@ class P extends v {
8368
8798
  return this._def.schema._def.typeName === _.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
8369
8799
  }
8370
8800
  _parse(e) {
8371
- const { status: t, ctx: a } = this._processInputParams(e), r = this._def.effect || null, n = {
8801
+ const { status: t, ctx: i } = this._processInputParams(e), n = this._def.effect || null, r = {
8372
8802
  addIssue: (o) => {
8373
- u(a, o), o.fatal ? t.abort() : t.dirty();
8803
+ u(i, o), o.fatal ? t.abort() : t.dirty();
8374
8804
  },
8375
8805
  get path() {
8376
- return a.path;
8806
+ return i.path;
8377
8807
  }
8378
8808
  };
8379
- if (n.addIssue = n.addIssue.bind(n), r.type === "preprocess") {
8380
- const o = r.transform(a.data, n);
8381
- return a.common.issues.length ? {
8809
+ if (r.addIssue = r.addIssue.bind(r), n.type === "preprocess") {
8810
+ const o = n.transform(i.data, r);
8811
+ return i.common.issues.length ? {
8382
8812
  status: "dirty",
8383
- value: a.data
8384
- } : a.common.async ? Promise.resolve(o).then((s) => this._def.schema._parseAsync({
8813
+ value: i.data
8814
+ } : i.common.async ? Promise.resolve(o).then((s) => this._def.schema._parseAsync({
8385
8815
  data: s,
8386
- path: a.path,
8387
- parent: a
8816
+ path: i.path,
8817
+ parent: i
8388
8818
  })) : this._def.schema._parseSync({
8389
8819
  data: o,
8390
- path: a.path,
8391
- parent: a
8820
+ path: i.path,
8821
+ parent: i
8392
8822
  });
8393
8823
  }
8394
- if (r.type === "refinement") {
8824
+ if (n.type === "refinement") {
8395
8825
  const o = (s) => {
8396
- const m = r.refinement(s, n);
8397
- if (a.common.async)
8826
+ const m = n.refinement(s, r);
8827
+ if (i.common.async)
8398
8828
  return Promise.resolve(m);
8399
8829
  if (m instanceof Promise)
8400
8830
  throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
8401
8831
  return s;
8402
8832
  };
8403
- if (a.common.async === !1) {
8833
+ if (i.common.async === !1) {
8404
8834
  const s = this._def.schema._parseSync({
8405
- data: a.data,
8406
- path: a.path,
8407
- parent: a
8835
+ data: i.data,
8836
+ path: i.path,
8837
+ parent: i
8408
8838
  });
8409
8839
  return s.status === "aborted" ? g : (s.status === "dirty" && t.dirty(), o(s.value), { status: t.value, value: s.value });
8410
8840
  } else
8411
- return this._def.schema._parseAsync({ data: a.data, path: a.path, parent: a }).then((s) => s.status === "aborted" ? g : (s.status === "dirty" && t.dirty(), o(s.value).then(() => ({ status: t.value, value: s.value }))));
8841
+ return this._def.schema._parseAsync({ data: i.data, path: i.path, parent: i }).then((s) => s.status === "aborted" ? g : (s.status === "dirty" && t.dirty(), o(s.value).then(() => ({ status: t.value, value: s.value }))));
8412
8842
  }
8413
- if (r.type === "transform")
8414
- if (a.common.async === !1) {
8843
+ if (n.type === "transform")
8844
+ if (i.common.async === !1) {
8415
8845
  const o = this._def.schema._parseSync({
8416
- data: a.data,
8417
- path: a.path,
8418
- parent: a
8846
+ data: i.data,
8847
+ path: i.path,
8848
+ parent: i
8419
8849
  });
8420
8850
  if (!z(o))
8421
8851
  return o;
8422
- const s = r.transform(o.value, n);
8852
+ const s = n.transform(o.value, r);
8423
8853
  if (s instanceof Promise)
8424
8854
  throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
8425
8855
  return { status: t.value, value: s };
8426
8856
  } else
8427
- return this._def.schema._parseAsync({ data: a.data, path: a.path, parent: a }).then((o) => z(o) ? Promise.resolve(r.transform(o.value, n)).then((s) => ({ status: t.value, value: s })) : o);
8428
- b.assertNever(r);
8857
+ return this._def.schema._parseAsync({ data: i.data, path: i.path, parent: i }).then((o) => z(o) ? Promise.resolve(n.transform(o.value, r)).then((s) => ({ status: t.value, value: s })) : o);
8858
+ b.assertNever(n);
8429
8859
  }
8430
8860
  }
8431
- P.create = (i, e, t) => new P({
8432
- schema: i,
8861
+ k.create = (a, e, t) => new k({
8862
+ schema: a,
8433
8863
  typeName: _.ZodEffects,
8434
8864
  effect: e,
8435
8865
  ...h(t)
8436
8866
  });
8437
- P.createWithPreprocess = (i, e, t) => new P({
8867
+ k.createWithPreprocess = (a, e, t) => new k({
8438
8868
  schema: e,
8439
- effect: { type: "preprocess", transform: i },
8869
+ effect: { type: "preprocess", transform: a },
8440
8870
  typeName: _.ZodEffects,
8441
8871
  ...h(t)
8442
8872
  });
8443
- class M extends v {
8873
+ class N extends v {
8444
8874
  _parse(e) {
8445
- return this._getType(e) === l.undefined ? S(void 0) : this._def.innerType._parse(e);
8875
+ return this._getType(e) === l.undefined ? A(void 0) : this._def.innerType._parse(e);
8446
8876
  }
8447
8877
  unwrap() {
8448
8878
  return this._def.innerType;
8449
8879
  }
8450
8880
  }
8451
- M.create = (i, e) => new M({
8452
- innerType: i,
8881
+ N.create = (a, e) => new N({
8882
+ innerType: a,
8453
8883
  typeName: _.ZodOptional,
8454
8884
  ...h(e)
8455
8885
  });
8456
- class $ extends v {
8886
+ class G extends v {
8457
8887
  _parse(e) {
8458
- return this._getType(e) === l.null ? S(null) : this._def.innerType._parse(e);
8888
+ return this._getType(e) === l.null ? A(null) : this._def.innerType._parse(e);
8459
8889
  }
8460
8890
  unwrap() {
8461
8891
  return this._def.innerType;
8462
8892
  }
8463
8893
  }
8464
- $.create = (i, e) => new $({
8465
- innerType: i,
8894
+ G.create = (a, e) => new G({
8895
+ innerType: a,
8466
8896
  typeName: _.ZodNullable,
8467
8897
  ...h(e)
8468
8898
  });
8469
- class ne extends v {
8899
+ class re extends v {
8470
8900
  _parse(e) {
8471
8901
  const { ctx: t } = this._processInputParams(e);
8472
- let a = t.data;
8473
- return t.parsedType === l.undefined && (a = this._def.defaultValue()), this._def.innerType._parse({
8474
- data: a,
8902
+ let i = t.data;
8903
+ return t.parsedType === l.undefined && (i = this._def.defaultValue()), this._def.innerType._parse({
8904
+ data: i,
8475
8905
  path: t.path,
8476
8906
  parent: t
8477
8907
  });
@@ -8480,42 +8910,42 @@ class ne extends v {
8480
8910
  return this._def.innerType;
8481
8911
  }
8482
8912
  }
8483
- ne.create = (i, e) => new ne({
8484
- innerType: i,
8913
+ re.create = (a, e) => new re({
8914
+ innerType: a,
8485
8915
  typeName: _.ZodDefault,
8486
8916
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
8487
8917
  ...h(e)
8488
8918
  });
8489
8919
  class _e extends v {
8490
8920
  _parse(e) {
8491
- const { ctx: t } = this._processInputParams(e), a = {
8921
+ const { ctx: t } = this._processInputParams(e), i = {
8492
8922
  ...t,
8493
8923
  common: {
8494
8924
  ...t.common,
8495
8925
  issues: []
8496
8926
  }
8497
- }, r = this._def.innerType._parse({
8498
- data: a.data,
8499
- path: a.path,
8927
+ }, n = this._def.innerType._parse({
8928
+ data: i.data,
8929
+ path: i.path,
8500
8930
  parent: {
8501
- ...a
8931
+ ...i
8502
8932
  }
8503
8933
  });
8504
- return le(r) ? r.then((n) => ({
8934
+ return le(n) ? n.then((r) => ({
8505
8935
  status: "valid",
8506
- value: n.status === "valid" ? n.value : this._def.catchValue({
8936
+ value: r.status === "valid" ? r.value : this._def.catchValue({
8507
8937
  get error() {
8508
- return new O(a.common.issues);
8938
+ return new O(i.common.issues);
8509
8939
  },
8510
- input: a.data
8940
+ input: i.data
8511
8941
  })
8512
8942
  })) : {
8513
8943
  status: "valid",
8514
- value: r.status === "valid" ? r.value : this._def.catchValue({
8944
+ value: n.status === "valid" ? n.value : this._def.catchValue({
8515
8945
  get error() {
8516
- return new O(a.common.issues);
8946
+ return new O(i.common.issues);
8517
8947
  },
8518
- input: a.data
8948
+ input: i.data
8519
8949
  })
8520
8950
  };
8521
8951
  }
@@ -8523,8 +8953,8 @@ class _e extends v {
8523
8953
  return this._def.innerType;
8524
8954
  }
8525
8955
  }
8526
- _e.create = (i, e) => new _e({
8527
- innerType: i,
8956
+ _e.create = (a, e) => new _e({
8957
+ innerType: a,
8528
8958
  typeName: _.ZodCatch,
8529
8959
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
8530
8960
  ...h(e)
@@ -8532,26 +8962,26 @@ _e.create = (i, e) => new _e({
8532
8962
  class fe extends v {
8533
8963
  _parse(e) {
8534
8964
  if (this._getType(e) !== l.nan) {
8535
- const a = this._getOrReturnCtx(e);
8536
- return u(a, {
8965
+ const i = this._getOrReturnCtx(e);
8966
+ return u(i, {
8537
8967
  code: c.invalid_type,
8538
8968
  expected: l.nan,
8539
- received: a.parsedType
8969
+ received: i.parsedType
8540
8970
  }), g;
8541
8971
  }
8542
8972
  return { status: "valid", value: e.data };
8543
8973
  }
8544
8974
  }
8545
- fe.create = (i) => new fe({
8975
+ fe.create = (a) => new fe({
8546
8976
  typeName: _.ZodNaN,
8547
- ...h(i)
8977
+ ...h(a)
8548
8978
  });
8549
8979
  const _t = Symbol("zod_brand");
8550
8980
  class Oe extends v {
8551
8981
  _parse(e) {
8552
- const { ctx: t } = this._processInputParams(e), a = t.data;
8982
+ const { ctx: t } = this._processInputParams(e), i = t.data;
8553
8983
  return this._def.type._parse({
8554
- data: a,
8984
+ data: i,
8555
8985
  path: t.path,
8556
8986
  parent: t
8557
8987
  });
@@ -8562,33 +8992,33 @@ class Oe extends v {
8562
8992
  }
8563
8993
  class oe extends v {
8564
8994
  _parse(e) {
8565
- const { status: t, ctx: a } = this._processInputParams(e);
8566
- if (a.common.async)
8995
+ const { status: t, ctx: i } = this._processInputParams(e);
8996
+ if (i.common.async)
8567
8997
  return (async () => {
8568
- const n = await this._def.in._parseAsync({
8569
- data: a.data,
8570
- path: a.path,
8571
- parent: a
8998
+ const r = await this._def.in._parseAsync({
8999
+ data: i.data,
9000
+ path: i.path,
9001
+ parent: i
8572
9002
  });
8573
- return n.status === "aborted" ? g : n.status === "dirty" ? (t.dirty(), Ae(n.value)) : this._def.out._parseAsync({
8574
- data: n.value,
8575
- path: a.path,
8576
- parent: a
9003
+ return r.status === "aborted" ? g : r.status === "dirty" ? (t.dirty(), Se(r.value)) : this._def.out._parseAsync({
9004
+ data: r.value,
9005
+ path: i.path,
9006
+ parent: i
8577
9007
  });
8578
9008
  })();
8579
9009
  {
8580
- const r = this._def.in._parseSync({
8581
- data: a.data,
8582
- path: a.path,
8583
- parent: a
9010
+ const n = this._def.in._parseSync({
9011
+ data: i.data,
9012
+ path: i.path,
9013
+ parent: i
8584
9014
  });
8585
- return r.status === "aborted" ? g : r.status === "dirty" ? (t.dirty(), {
9015
+ return n.status === "aborted" ? g : n.status === "dirty" ? (t.dirty(), {
8586
9016
  status: "dirty",
8587
- value: r.value
9017
+ value: n.value
8588
9018
  }) : this._def.out._parseSync({
8589
- data: r.value,
8590
- path: a.path,
8591
- parent: a
9019
+ data: n.value,
9020
+ path: i.path,
9021
+ parent: i
8592
9022
  });
8593
9023
  }
8594
9024
  }
@@ -8606,48 +9036,48 @@ class ge extends v {
8606
9036
  return z(t) && (t.value = Object.freeze(t.value)), t;
8607
9037
  }
8608
9038
  }
8609
- ge.create = (i, e) => new ge({
8610
- innerType: i,
9039
+ ge.create = (a, e) => new ge({
9040
+ innerType: a,
8611
9041
  typeName: _.ZodReadonly,
8612
9042
  ...h(e)
8613
9043
  });
8614
- const ke = (i, e = {}, t) => i ? W.create().superRefine((a, r) => {
8615
- var n, o;
8616
- if (!i(a)) {
8617
- const s = typeof e == "function" ? e(a) : typeof e == "string" ? { message: e } : e, m = (o = (n = s.fatal) !== null && n !== void 0 ? n : t) !== null && o !== void 0 ? o : !0, d = typeof s == "string" ? { message: s } : s;
8618
- r.addIssue({ code: "custom", ...d, fatal: m });
9044
+ const Ie = (a, e = {}, t) => a ? F.create().superRefine((i, n) => {
9045
+ var r, o;
9046
+ if (!a(i)) {
9047
+ const s = typeof e == "function" ? e(i) : typeof e == "string" ? { message: e } : e, m = (o = (r = s.fatal) !== null && r !== void 0 ? r : t) !== null && o !== void 0 ? o : !0, d = typeof s == "string" ? { message: s } : s;
9048
+ n.addIssue({ code: "custom", ...d, fatal: m });
8619
9049
  }
8620
- }) : W.create(), ft = {
9050
+ }) : F.create(), ft = {
8621
9051
  object: w.lazycreate
8622
9052
  };
8623
9053
  var _;
8624
- (function(i) {
8625
- i.ZodString = "ZodString", i.ZodNumber = "ZodNumber", i.ZodNaN = "ZodNaN", i.ZodBigInt = "ZodBigInt", i.ZodBoolean = "ZodBoolean", i.ZodDate = "ZodDate", i.ZodSymbol = "ZodSymbol", i.ZodUndefined = "ZodUndefined", i.ZodNull = "ZodNull", i.ZodAny = "ZodAny", i.ZodUnknown = "ZodUnknown", i.ZodNever = "ZodNever", i.ZodVoid = "ZodVoid", i.ZodArray = "ZodArray", i.ZodObject = "ZodObject", i.ZodUnion = "ZodUnion", i.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", i.ZodIntersection = "ZodIntersection", i.ZodTuple = "ZodTuple", i.ZodRecord = "ZodRecord", i.ZodMap = "ZodMap", i.ZodSet = "ZodSet", i.ZodFunction = "ZodFunction", i.ZodLazy = "ZodLazy", i.ZodLiteral = "ZodLiteral", i.ZodEnum = "ZodEnum", i.ZodEffects = "ZodEffects", i.ZodNativeEnum = "ZodNativeEnum", i.ZodOptional = "ZodOptional", i.ZodNullable = "ZodNullable", i.ZodDefault = "ZodDefault", i.ZodCatch = "ZodCatch", i.ZodPromise = "ZodPromise", i.ZodBranded = "ZodBranded", i.ZodPipeline = "ZodPipeline", i.ZodReadonly = "ZodReadonly";
9054
+ (function(a) {
9055
+ a.ZodString = "ZodString", a.ZodNumber = "ZodNumber", a.ZodNaN = "ZodNaN", a.ZodBigInt = "ZodBigInt", a.ZodBoolean = "ZodBoolean", a.ZodDate = "ZodDate", a.ZodSymbol = "ZodSymbol", a.ZodUndefined = "ZodUndefined", a.ZodNull = "ZodNull", a.ZodAny = "ZodAny", a.ZodUnknown = "ZodUnknown", a.ZodNever = "ZodNever", a.ZodVoid = "ZodVoid", a.ZodArray = "ZodArray", a.ZodObject = "ZodObject", a.ZodUnion = "ZodUnion", a.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", a.ZodIntersection = "ZodIntersection", a.ZodTuple = "ZodTuple", a.ZodRecord = "ZodRecord", a.ZodMap = "ZodMap", a.ZodSet = "ZodSet", a.ZodFunction = "ZodFunction", a.ZodLazy = "ZodLazy", a.ZodLiteral = "ZodLiteral", a.ZodEnum = "ZodEnum", a.ZodEffects = "ZodEffects", a.ZodNativeEnum = "ZodNativeEnum", a.ZodOptional = "ZodOptional", a.ZodNullable = "ZodNullable", a.ZodDefault = "ZodDefault", a.ZodCatch = "ZodCatch", a.ZodPromise = "ZodPromise", a.ZodBranded = "ZodBranded", a.ZodPipeline = "ZodPipeline", a.ZodReadonly = "ZodReadonly";
8626
9056
  })(_ || (_ = {}));
8627
- const gt = (i, e = {
8628
- message: `Input not instance of ${i.name}`
8629
- }) => ke((t) => t instanceof i, e), Pe = E.create, Ie = B.create, ht = fe.create, vt = j.create, Ne = K.create, yt = Z.create, bt = ue.create, xt = X.create, wt = J.create, Rt = W.create, Tt = U.create, Ct = D.create, St = me.create, At = k.create, Et = w.create, Ot = w.strictCreate, kt = Q.create, Pt = he.create, It = ee.create, Nt = N.create, Mt = te.create, Dt = pe.create, Lt = q.create, Bt = F.create, jt = ie.create, Vt = ae.create, Ut = V.create, Zt = re.create, qt = H.create, Ce = P.create, $t = M.create, Gt = $.create, Ft = P.createWithPreprocess, Wt = oe.create, Ht = () => Pe().optional(), Yt = () => Ie().optional(), zt = () => Ne().optional(), Kt = {
8630
- string: (i) => E.create({ ...i, coerce: !0 }),
8631
- number: (i) => B.create({ ...i, coerce: !0 }),
8632
- boolean: (i) => K.create({
8633
- ...i,
9057
+ const gt = (a, e = {
9058
+ message: `Input not instance of ${a.name}`
9059
+ }) => Ie((t) => t instanceof a, e), ke = E.create, Me = B.create, ht = fe.create, vt = j.create, Pe = K.create, yt = Z.create, bt = ue.create, xt = J.create, wt = X.create, Rt = F.create, Ct = V.create, Tt = D.create, At = me.create, St = I.create, Et = w.create, Ot = w.strictCreate, It = Q.create, kt = he.create, Mt = ee.create, Pt = P.create, Nt = te.create, Dt = pe.create, Lt = q.create, Bt = $.create, jt = ae.create, Ut = ie.create, Vt = U.create, Zt = ne.create, qt = H.create, Te = k.create, Gt = N.create, Wt = G.create, $t = k.createWithPreprocess, Ft = oe.create, Ht = () => ke().optional(), Yt = () => Me().optional(), zt = () => Pe().optional(), Kt = {
9060
+ string: (a) => E.create({ ...a, coerce: !0 }),
9061
+ number: (a) => B.create({ ...a, coerce: !0 }),
9062
+ boolean: (a) => K.create({
9063
+ ...a,
8634
9064
  coerce: !0
8635
9065
  }),
8636
- bigint: (i) => j.create({ ...i, coerce: !0 }),
8637
- date: (i) => Z.create({ ...i, coerce: !0 })
8638
- }, Xt = g;
8639
- var Jt = /* @__PURE__ */ Object.freeze({
9066
+ bigint: (a) => j.create({ ...a, coerce: !0 }),
9067
+ date: (a) => Z.create({ ...a, coerce: !0 })
9068
+ }, Jt = g;
9069
+ var Xt = /* @__PURE__ */ Object.freeze({
8640
9070
  __proto__: null,
8641
9071
  defaultErrorMap: Y,
8642
9072
  setErrorMap: tt,
8643
9073
  getErrorMap: ce,
8644
9074
  makeIssue: de,
8645
- EMPTY_PATH: it,
9075
+ EMPTY_PATH: at,
8646
9076
  addIssueToContext: u,
8647
9077
  ParseStatus: R,
8648
9078
  INVALID: g,
8649
- DIRTY: Ae,
8650
- OK: S,
9079
+ DIRTY: Se,
9080
+ OK: A,
8651
9081
  isAborted: xe,
8652
9082
  isDirty: we,
8653
9083
  isValid: z,
@@ -8667,39 +9097,39 @@ var Jt = /* @__PURE__ */ Object.freeze({
8667
9097
  ZodBoolean: K,
8668
9098
  ZodDate: Z,
8669
9099
  ZodSymbol: ue,
8670
- ZodUndefined: X,
8671
- ZodNull: J,
8672
- ZodAny: W,
8673
- ZodUnknown: U,
9100
+ ZodUndefined: J,
9101
+ ZodNull: X,
9102
+ ZodAny: F,
9103
+ ZodUnknown: V,
8674
9104
  ZodNever: D,
8675
9105
  ZodVoid: me,
8676
- ZodArray: k,
9106
+ ZodArray: I,
8677
9107
  ZodObject: w,
8678
9108
  ZodUnion: Q,
8679
9109
  ZodDiscriminatedUnion: he,
8680
9110
  ZodIntersection: ee,
8681
- ZodTuple: N,
9111
+ ZodTuple: P,
8682
9112
  ZodRecord: te,
8683
9113
  ZodMap: pe,
8684
9114
  ZodSet: q,
8685
- ZodFunction: F,
8686
- ZodLazy: ie,
8687
- ZodLiteral: ae,
8688
- ZodEnum: V,
8689
- ZodNativeEnum: re,
9115
+ ZodFunction: $,
9116
+ ZodLazy: ae,
9117
+ ZodLiteral: ie,
9118
+ ZodEnum: U,
9119
+ ZodNativeEnum: ne,
8690
9120
  ZodPromise: H,
8691
- ZodEffects: P,
8692
- ZodTransformer: P,
8693
- ZodOptional: M,
8694
- ZodNullable: $,
8695
- ZodDefault: ne,
9121
+ ZodEffects: k,
9122
+ ZodTransformer: k,
9123
+ ZodOptional: N,
9124
+ ZodNullable: G,
9125
+ ZodDefault: re,
8696
9126
  ZodCatch: _e,
8697
9127
  ZodNaN: fe,
8698
9128
  BRAND: _t,
8699
9129
  ZodBranded: Oe,
8700
9130
  ZodPipeline: oe,
8701
9131
  ZodReadonly: ge,
8702
- custom: ke,
9132
+ custom: Ie,
8703
9133
  Schema: v,
8704
9134
  ZodSchema: v,
8705
9135
  late: ft,
@@ -8708,45 +9138,45 @@ var Jt = /* @__PURE__ */ Object.freeze({
8708
9138
  },
8709
9139
  coerce: Kt,
8710
9140
  any: Rt,
8711
- array: At,
9141
+ array: St,
8712
9142
  bigint: vt,
8713
- boolean: Ne,
9143
+ boolean: Pe,
8714
9144
  date: yt,
8715
- discriminatedUnion: Pt,
8716
- effect: Ce,
8717
- enum: Ut,
9145
+ discriminatedUnion: kt,
9146
+ effect: Te,
9147
+ enum: Vt,
8718
9148
  function: Bt,
8719
9149
  instanceof: gt,
8720
- intersection: It,
9150
+ intersection: Mt,
8721
9151
  lazy: jt,
8722
- literal: Vt,
9152
+ literal: Ut,
8723
9153
  map: Dt,
8724
9154
  nan: ht,
8725
9155
  nativeEnum: Zt,
8726
- never: Ct,
9156
+ never: Tt,
8727
9157
  null: wt,
8728
- nullable: Gt,
8729
- number: Ie,
9158
+ nullable: Wt,
9159
+ number: Me,
8730
9160
  object: Et,
8731
9161
  oboolean: zt,
8732
9162
  onumber: Yt,
8733
- optional: $t,
9163
+ optional: Gt,
8734
9164
  ostring: Ht,
8735
- pipeline: Wt,
8736
- preprocess: Ft,
9165
+ pipeline: Ft,
9166
+ preprocess: $t,
8737
9167
  promise: qt,
8738
- record: Mt,
9168
+ record: Nt,
8739
9169
  set: Lt,
8740
9170
  strictObject: Ot,
8741
- string: Pe,
9171
+ string: ke,
8742
9172
  symbol: bt,
8743
- transformer: Ce,
8744
- tuple: Nt,
9173
+ transformer: Te,
9174
+ tuple: Pt,
8745
9175
  undefined: xt,
8746
- union: kt,
8747
- unknown: Tt,
8748
- void: St,
8749
- NEVER: Xt,
9176
+ union: It,
9177
+ unknown: Ct,
9178
+ void: At,
9179
+ NEVER: Jt,
8750
9180
  ZodIssueCode: c,
8751
9181
  quotelessJson: et,
8752
9182
  ZodError: O
@@ -8787,7 +9217,7 @@ const Qt = [
8787
9217
  "REWARD_TEMPLATE",
8788
9218
  "QUEUE",
8789
9219
  "BIN"
8790
- ].map((i) => `$connect-${i}`), ei = Jt.enum(Qt), f = ei.Enum, ri = [
9220
+ ].map((a) => `$connect-${a}`), ea = Xt.enum(Qt), f = ea.Enum, na = [
8791
9221
  {
8792
9222
  path: "",
8793
9223
  name: f["$connect-DASHBOARD"],
@@ -8801,8 +9231,8 @@ const Qt = [
8801
9231
  {
8802
9232
  path: "/analytic",
8803
9233
  name: f["$connect-ANALYTIC"],
8804
- component: T(
8805
- C(() => import("./Analytic-B1W9EOk7.js"))
9234
+ component: C(
9235
+ T(() => import("./Analytic-DUEvJYDp.js"))
8806
9236
  ),
8807
9237
  meta: {
8808
9238
  validationManifest: {
@@ -8826,8 +9256,8 @@ const Qt = [
8826
9256
  {
8827
9257
  path: "/campaign/promotion",
8828
9258
  name: f["$connect-CAMPAIGN_PROMOTION"],
8829
- component: T(
8830
- C(() => import("./Promotion-BVrD0SHM.js"))
9259
+ component: C(
9260
+ T(() => import("./Promotion-DD1vORIo.js"))
8831
9261
  ),
8832
9262
  meta: {
8833
9263
  validationManifest: {
@@ -8847,8 +9277,8 @@ const Qt = [
8847
9277
  {
8848
9278
  path: "/campaign/voucher",
8849
9279
  name: f["$connect-CAMPAIGN_VOUCHER"],
8850
- component: T(
8851
- C(() => import("./Voucher-2CN1u3xX.js"))
9280
+ component: C(
9281
+ T(() => import("./Voucher-BY968ZWi.js"))
8852
9282
  ),
8853
9283
  meta: {
8854
9284
  validationManifest: {
@@ -8864,9 +9294,9 @@ const Qt = [
8864
9294
  {
8865
9295
  path: "/campaign/voucher/:id/collections",
8866
9296
  name: f["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
8867
- component: T(
8868
- C(
8869
- () => import("./Collections-BIMKG7_n.js")
9297
+ component: C(
9298
+ T(
9299
+ () => import("./Collections-CWSK6IrK.js")
8870
9300
  )
8871
9301
  ),
8872
9302
  meta: {
@@ -8885,8 +9315,8 @@ const Qt = [
8885
9315
  {
8886
9316
  path: "/campaign/broadcast",
8887
9317
  name: f["$connect-CAMPAIGN_BROADCAST"],
8888
- component: T(
8889
- C(() => import("./Broadcast-vuYGNulD.js"))
9318
+ component: C(
9319
+ T(() => import("./Broadcast-CjLQtCYq.js"))
8890
9320
  ),
8891
9321
  meta: {
8892
9322
  validationManifest: {
@@ -8904,8 +9334,8 @@ const Qt = [
8904
9334
  {
8905
9335
  path: "/program",
8906
9336
  // component: () => import('@/layouts/MainLayout.vue'),
8907
- component: T(
8908
- C(() => import("./MainLayout-B1aJoR95.js"))
9337
+ component: C(
9338
+ T(() => import("./MainLayout-B1aJoR95.js"))
8909
9339
  ),
8910
9340
  meta: {
8911
9341
  validationManifest: {
@@ -8923,44 +9353,44 @@ const Qt = [
8923
9353
  {
8924
9354
  path: "/program/tier",
8925
9355
  name: f["$connect-PROGRAM_TIER"],
8926
- component: () => import("./Tier-CXtOsuM7.js")
9356
+ component: () => import("./Tier-CacLJi_w.js")
8927
9357
  },
8928
9358
  {
8929
9359
  path: "/program/title",
8930
9360
  name: f["$connect-PROGRAM_TITLE"],
8931
- component: () => import("./Title-DwIoPsyY.js")
9361
+ component: () => import("./Title-ChEdSy2e.js")
8932
9362
  },
8933
9363
  {
8934
9364
  path: "/program/experience",
8935
9365
  name: f["$connect-PROGRAM_EXPERIENCE"],
8936
- component: () => import("./Experience-1wdYeoH4.js")
9366
+ component: () => import("./Experience-IUi4k8hW.js")
8937
9367
  },
8938
9368
  {
8939
9369
  path: "/program/point",
8940
9370
  name: f["$connect-PROGRAM_POINT"],
8941
- component: () => import("./Point-CutXdajU.js")
9371
+ component: () => import("./Point-Py0HmgNJ.js")
8942
9372
  },
8943
9373
  {
8944
9374
  path: "/program/credit",
8945
9375
  name: f["$connect-PROGRAM_CREDIT"],
8946
- component: () => import("./Credit-WIdPS8S7.js")
9376
+ component: () => import("./Credit-DvH-Dl3G.js")
8947
9377
  },
8948
9378
  {
8949
9379
  path: "/program/game",
8950
9380
  name: f["$connect-PROGRAM_GAME"],
8951
- component: () => import("./Game-B1AymuDu.js")
9381
+ component: () => import("./Game-DazUj4ey.js")
8952
9382
  },
8953
9383
  {
8954
9384
  path: "mission",
8955
9385
  name: f["$connect-PROGRAM_MISSION"],
8956
- component: () => import("./Mission-CqJOvxSl.js")
9386
+ component: () => import("./Mission-BVNGD2_t.js")
8957
9387
  }
8958
9388
  ]
8959
9389
  },
8960
9390
  {
8961
9391
  path: "/loyalty",
8962
- component: T(
8963
- C(() => import("./MainLayout-B1aJoR95.js"))
9392
+ component: C(
9393
+ T(() => import("./MainLayout-B1aJoR95.js"))
8964
9394
  ),
8965
9395
  meta: {
8966
9396
  validationManifest: {
@@ -8978,7 +9408,7 @@ const Qt = [
8978
9408
  {
8979
9409
  path: "/loyalty/member",
8980
9410
  name: f["$connect-LOYALTY_MEMBER"],
8981
- component: () => import("./Member-Cy4gIjVX.js"),
9411
+ component: () => import("./Member-CDn4aNMc.js"),
8982
9412
  redirect: {
8983
9413
  name: f["$connect-LOYALTY_MEMBER_OVERVIEW"]
8984
9414
  },
@@ -8991,32 +9421,32 @@ const Qt = [
8991
9421
  {
8992
9422
  path: "/loyalty/member/list",
8993
9423
  name: f["$connect-LOYALTY_MEMBER_LIST"],
8994
- component: () => import("./MemberList-Cn9Vq2ju.js")
9424
+ component: () => import("./MemberList-CCqh5_5q.js")
8995
9425
  },
8996
9426
  {
8997
9427
  path: "/loyalty/member/transactions/:id",
8998
9428
  name: f["$connect-LOYALTY_MEMBER_TRANSACTIONS"],
8999
- component: () => import("./MemberTransactions-BihHL2f-.js")
9429
+ component: () => import("./MemberTransactions-B-KMuPKv.js")
9000
9430
  }
9001
9431
  ]
9002
9432
  },
9003
9433
  {
9004
9434
  path: "/loyalty/segment",
9005
9435
  name: f["$connect-LOYALTY_SEGMENT"],
9006
- component: () => import("./Segment-D_8jLxTB.js")
9436
+ component: () => import("./Segment-DewclEb5.js")
9007
9437
  },
9008
9438
  {
9009
9439
  path: "/loyalty/card",
9010
9440
  name: f["$connect-LOYALTY_CARD"],
9011
- component: () => import("./Card-DHF1XqjW.js")
9441
+ component: () => import("./Card-Nvb2bMYu.js")
9012
9442
  }
9013
9443
  ]
9014
9444
  },
9015
9445
  {
9016
9446
  path: "/referral",
9017
9447
  redirect: { name: f["$connect-REFERRAL"] },
9018
- component: T(
9019
- C(() => import("./MainLayout-B1aJoR95.js"))
9448
+ component: C(
9449
+ T(() => import("./MainLayout-B1aJoR95.js"))
9020
9450
  ),
9021
9451
  meta: {
9022
9452
  validationManifest: {
@@ -9032,7 +9462,7 @@ const Qt = [
9032
9462
  {
9033
9463
  path: "/referral",
9034
9464
  name: f["$connect-REFERRAL"],
9035
- component: () => import("./Index-DvALk6U2.js"),
9465
+ component: () => import("./Index-BH_USKnN.js"),
9036
9466
  redirect: {
9037
9467
  name: f["$connect-REFERRAL_OVERVIEW"]
9038
9468
  },
@@ -9040,12 +9470,12 @@ const Qt = [
9040
9470
  {
9041
9471
  path: "/referral",
9042
9472
  name: f["$connect-REFERRAL_OVERVIEW"],
9043
- component: () => import("./Overview-3dm9ZLF3.js")
9473
+ component: () => import("./Overview-B0-d6Etz.js")
9044
9474
  },
9045
9475
  {
9046
9476
  path: "/referral/record",
9047
9477
  name: f["$connect-REFERRAL_RECORD"],
9048
- component: () => import("./Record-DVIEw8NX.js")
9478
+ component: () => import("./Record-BkeU8cPZ.js")
9049
9479
  }
9050
9480
  ]
9051
9481
  }
@@ -9053,8 +9483,8 @@ const Qt = [
9053
9483
  },
9054
9484
  {
9055
9485
  path: "/store",
9056
- component: T(
9057
- C(() => import("./MainLayout-B1aJoR95.js"))
9486
+ component: C(
9487
+ T(() => import("./MainLayout-B1aJoR95.js"))
9058
9488
  ),
9059
9489
  meta: {
9060
9490
  validationManifest: {
@@ -9070,7 +9500,7 @@ const Qt = [
9070
9500
  {
9071
9501
  path: "/store",
9072
9502
  name: f["$connect-STORE"],
9073
- component: () => import("./Store-D37krB41.js")
9503
+ component: () => import("./Store-Yp4PCYfn.js")
9074
9504
  },
9075
9505
  {
9076
9506
  path: "/store/rewards",
@@ -9079,12 +9509,12 @@ const Qt = [
9079
9509
  {
9080
9510
  path: "/store/rewards",
9081
9511
  name: f["$connect-STORE_REWARDS"],
9082
- component: () => import("./StoreRewards-DfaQh6jt.js")
9512
+ component: () => import("./StoreRewards-DdlPqqgw.js")
9083
9513
  },
9084
9514
  {
9085
9515
  path: "/store/rewards/:id/collections",
9086
9516
  name: f["$connect-STORE_REWARD_COLLECTIONS"],
9087
- component: () => import("./Collections-BIMKG7_n.js")
9517
+ component: () => import("./Collections-CWSK6IrK.js")
9088
9518
  }
9089
9519
  ]
9090
9520
  }
@@ -9092,8 +9522,8 @@ const Qt = [
9092
9522
  },
9093
9523
  {
9094
9524
  path: "/transaction",
9095
- component: T(
9096
- C(() => import("./MainLayout-B1aJoR95.js"))
9525
+ component: C(
9526
+ T(() => import("./MainLayout-B1aJoR95.js"))
9097
9527
  ),
9098
9528
  meta: {
9099
9529
  validationManifest: {
@@ -9109,14 +9539,14 @@ const Qt = [
9109
9539
  {
9110
9540
  path: "/transaction",
9111
9541
  name: f["$connect-TRANSACTION"],
9112
- component: () => import("./Transaction-BSBw0I28.js")
9542
+ component: () => import("./Transaction-DzKPGg0z.js")
9113
9543
  }
9114
9544
  ]
9115
9545
  },
9116
9546
  {
9117
9547
  path: "/marketing",
9118
- component: T(
9119
- C(() => import("./MainLayout-B1aJoR95.js"))
9548
+ component: C(
9549
+ T(() => import("./MainLayout-B1aJoR95.js"))
9120
9550
  ),
9121
9551
  meta: {
9122
9552
  validationManifest: {
@@ -9132,14 +9562,14 @@ const Qt = [
9132
9562
  {
9133
9563
  path: "/marketing",
9134
9564
  name: f["$connect-MARKETING"],
9135
- component: () => import("./Marketing-CXO2CCnd.js")
9565
+ component: () => import("./Marketing-C8vrSSVl.js")
9136
9566
  }
9137
9567
  ]
9138
9568
  },
9139
9569
  {
9140
9570
  path: "/reward",
9141
- component: T(
9142
- C(() => import("./MainLayout-B1aJoR95.js"))
9571
+ component: C(
9572
+ T(() => import("./MainLayout-B1aJoR95.js"))
9143
9573
  ),
9144
9574
  meta: {
9145
9575
  validationManifest: {
@@ -9155,14 +9585,14 @@ const Qt = [
9155
9585
  {
9156
9586
  path: "/reward",
9157
9587
  name: f["$connect-REWARD_TEMPLATE"],
9158
- component: () => import("./Reward-C83nQRHE.js")
9588
+ component: () => import("./Reward-C7QrUqwC.js")
9159
9589
  }
9160
9590
  ]
9161
9591
  },
9162
9592
  {
9163
9593
  path: "/setting",
9164
- component: T(
9165
- C(() => import("./MainLayout-B1aJoR95.js"))
9594
+ component: C(
9595
+ T(() => import("./MainLayout-B1aJoR95.js"))
9166
9596
  ),
9167
9597
  meta: {
9168
9598
  validationManifest: {
@@ -9178,19 +9608,19 @@ const Qt = [
9178
9608
  {
9179
9609
  path: "/setting",
9180
9610
  name: f["$connect-SETTING"],
9181
- component: () => import("./Setting-zIKdWJmf.js")
9611
+ component: () => import("./Setting-CRx8nEir.js")
9182
9612
  },
9183
9613
  {
9184
9614
  path: "/setting/advertisements",
9185
9615
  name: f["$connect-SETTING_ADVERTISEMENTS"],
9186
- component: () => import("./SettingAdvertisements-eosmP0yl.js")
9616
+ component: () => import("./SettingAdvertisements-BSVD1jDZ.js")
9187
9617
  }
9188
9618
  ]
9189
9619
  },
9190
9620
  {
9191
9621
  path: "/bin",
9192
- component: T(
9193
- C(() => import("./MainLayout-B1aJoR95.js"))
9622
+ component: C(
9623
+ T(() => import("./MainLayout-B1aJoR95.js"))
9194
9624
  ),
9195
9625
  meta: {
9196
9626
  validationManifest: {
@@ -9206,14 +9636,14 @@ const Qt = [
9206
9636
  {
9207
9637
  path: "/bin",
9208
9638
  name: f["$connect-BIN"],
9209
- component: () => import("./Bin-CbfpIfVr.js")
9639
+ component: () => import("./Bin-2Rk6Xq3_.js")
9210
9640
  }
9211
9641
  ]
9212
9642
  },
9213
9643
  {
9214
9644
  path: "/queue",
9215
- component: T(
9216
- C(() => import("./MainLayout-B1aJoR95.js"))
9645
+ component: C(
9646
+ T(() => import("./MainLayout-B1aJoR95.js"))
9217
9647
  ),
9218
9648
  meta: {
9219
9649
  validationManifest: {
@@ -9229,24 +9659,24 @@ const Qt = [
9229
9659
  {
9230
9660
  path: "/queue",
9231
9661
  name: f["$connect-QUEUE"],
9232
- component: () => import("./Queue-CMOKwBqW.js")
9662
+ component: () => import("./Queue-BgijP6U_.js")
9233
9663
  }
9234
9664
  ]
9235
9665
  }
9236
- ], ni = {
9666
+ ], ra = {
9237
9667
  "en-US": Be,
9238
9668
  "zh-CN": Ze,
9239
- "th-TH": Fe,
9669
+ "th-TH": $e,
9240
9670
  "zh-Hant": ze,
9241
9671
  "ja-JP": Qe
9242
- }, oi = () => import("./App-Bdf0nl59.js").then((i) => i.default);
9672
+ }, oa = () => import("./App-DYprmn8y.js").then((a) => a.default);
9243
9673
  export {
9244
- oi as F,
9674
+ oa as F,
9245
9675
  f as R,
9246
9676
  c as Z,
9247
9677
  l as a,
9248
9678
  Y as e,
9249
- ni as i,
9250
- ri as r,
9251
- Jt as z
9679
+ ra as i,
9680
+ na as r,
9681
+ Xt as z
9252
9682
  };