@feedmepos/mf-connect 0.1.11-prod → 0.1.13-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 (80) hide show
  1. package/dist/{Analytic-Bbt1kP2U.js → Analytic-CBEDTJ94.js} +9 -9
  2. package/dist/{App-CVA65EVC.js → App-BcrQs0nE.js} +6 -6
  3. package/dist/{Broadcast-BJXK8OE5.js → Broadcast-ClM81ght.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DDEx0cK9.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CTwScH9I.js} +7 -7
  5. package/dist/{Card-DFiUkfYj.js → Card-B7_nUT03.js} +15 -15
  6. package/dist/{Collections-qVnvveUf.js → Collections-N7LIfZ2D.js} +5 -5
  7. package/dist/{Credit-BWHTbAG-.js → Credit-DC6pzGIR.js} +8 -8
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-4_cHlWUJ.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DCwaUg09.js} +28 -28
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DLgZd4HU.js → EffectSheet.vue_vue_type_style_index_0_lang-D2qCLBp3.js} +6 -6
  10. package/dist/{Experience-BmGSus53.js → Experience-ClJWQLEB.js} +8 -8
  11. package/dist/{Game-49w7XN5k.js → Game-BznCxZXt.js} +8 -8
  12. package/dist/{Index-D-7hsAaE.js → Index-D27v-Lqw.js} +9 -9
  13. package/dist/{Marketing-DtbJxS_j.js → Marketing-FvYJ_Lt-.js} +5 -5
  14. package/dist/{Member-jZks4pw_.js → Member-CQYj0FQK.js} +4 -4
  15. package/dist/{MemberList-BqO54kPC.js → MemberList-UIZANV1T.js} +14 -14
  16. package/dist/{MemberTransactions-CLK7VmPw.js → MemberTransactions-JKLzrvh6.js} +1 -1
  17. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-ef2Qrdvd.js → MessageInput.vue_vue_type_script_setup_true_lang-_72tx6g3.js} +2 -2
  18. package/dist/{Mission-LGC1CGrB.js → Mission-LwSpobZu.js} +8 -8
  19. package/dist/{Overview-Dm_ycoqZ.js → Overview-PXshmkPD.js} +17 -17
  20. package/dist/{Point-BBNJ9cc5.js → Point-uaIRQMRW.js} +8 -8
  21. package/dist/{Promotion-DFh9IEmP.js → Promotion-qjos6ksl.js} +9 -9
  22. package/dist/{Record-oBmJTn3G.js → Record-qqPaVdrx.js} +6 -6
  23. package/dist/{Reward-DR_HzrrM.js → Reward-BC6GJ4kD.js} +14 -14
  24. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Du_0o2b9.js → RewardGroup.vue_vue_type_script_setup_true_lang-CF7hNZIU.js} +11 -11
  25. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CxXugphA.js → RuleGroup.vue_vue_type_script_setup_true_lang-DQ8rQIwv.js} +13 -13
  26. package/dist/{Segment-DjyHLWZC.js → Segment-B5E2FdYc.js} +13 -13
  27. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-stTwgie4.js → SelectItems.vue_vue_type_script_setup_true_lang-Dqz3uAze.js} +2 -2
  28. package/dist/{Setting-a7Tw-3ht.js → Setting-CA9PQVKp.js} +8 -8
  29. package/dist/{Store-HWGWswEm.js → Store-irRFotGI.js} +188 -184
  30. package/dist/{StoreRewards-s4cX1bFH.js → StoreRewards-CcJ8MMvp.js} +12 -12
  31. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Dq4qIXZu.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CcNjdcMX.js} +18 -18
  32. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BQpbScyf.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-2i2fDWDC.js} +1 -1
  33. package/dist/{Tier-C7kiLjzE.js → Tier-CdxK-QtB.js} +19 -19
  34. package/dist/{Title-BPv1ZiHg.js → Title-Ci_NXdrD.js} +19 -19
  35. package/dist/{Transaction-HdR7RiGY.js → Transaction-ChKg7UTd.js} +2 -2
  36. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D3VgIQb-.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B3INK4Ue.js} +6 -6
  37. package/dist/{Voucher-Y5Lh5xms.js → Voucher-CDlHku1x.js} +11 -11
  38. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CFKID7mS.js → VoucherEditor.vue_vue_type_script_setup_true_lang-D9wqrTVc.js} +10 -10
  39. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-6asSbt53.js → ZodTextField.vue_vue_type_script_setup_true_lang-Di6QPzfu.js} +1 -1
  40. package/dist/{app-MbHo43vs.js → app-B9MkUjRo.js} +1799 -795
  41. package/dist/{app-Bh2mviM1.js → app-BmT3kZJr.js} +1 -1
  42. package/dist/app.js +1 -1
  43. package/dist/{business-DMzeDNMd.js → business-1nKmKs9l.js} +1 -1
  44. package/dist/{campaign-2swZVVbi.js → campaign-xn4PhDSV.js} +2 -2
  45. package/dist/{campaign.enum-CHI6p9lH.js → campaign.enum-KwZQ6yBR.js} +1 -1
  46. package/dist/{campaign.fn-DNwV5ZWO.js → campaign.fn-CVj38fae.js} +33 -33
  47. package/dist/{collectible.enum-Y3ALLTcR.js → collectible.enum-DojcTb50.js} +1 -1
  48. package/dist/{collection.fn-CfvnmVQa.js → collection.fn-Bv2EZuA3.js} +2 -2
  49. package/dist/{dto-DseG41FR.js → dto-DP9kIlr_.js} +10 -10
  50. package/dist/{effect-BH4hGy1N.js → effect-47JS4i8Q.js} +1 -1
  51. package/dist/{email-addresses-doOfKmSj.js → email-addresses-C6Jvh8MK.js} +1 -1
  52. package/dist/{export-DGrsZa4F.js → export-BdPv7Hej.js} +3 -3
  53. package/dist/{helper-3ohDu5Tn.js → helper-Di0AEV1F.js} +1 -1
  54. package/dist/{index-CVlbqA1t.js → index-BPkcvPHp.js} +1 -1
  55. package/dist/{index-CKji0U5N.js → index-BUjGxHkM.js} +3 -3
  56. package/dist/{index-B8HMoADH.js → index-BZg5tj39.js} +3 -3
  57. package/dist/{index-D5CHO7oc.js → index-Be9fjCVp.js} +1 -1
  58. package/dist/{index-C-ozJGq6.js → index-CDmiwLKd.js} +1 -1
  59. package/dist/{index-CDT7BpQ3.js → index-CPjDZrsE.js} +1 -1
  60. package/dist/{index-BUzeShnL.js → index-CVsuhUpe.js} +7 -7
  61. package/dist/{index-CKfeyWFN.js → index-D5LMqy6S.js} +1 -1
  62. package/dist/{index-rYTZxC9p.js → index-DHb0pIVR.js} +2 -2
  63. package/dist/{index-BWwF7uuk.js → index-Dd0IgwOF.js} +9 -7
  64. package/dist/{index-BXw9yi-G.js → index-YAoPUv6z.js} +1 -1
  65. package/dist/{index-wBdTUnZ6.js → index-gYvuI9Nk.js} +3 -3
  66. package/dist/{index.esm2017-D-hthfW3.js → index.esm2017-C-O-0X0H.js} +1 -1
  67. package/dist/{loading-DQnXnCXT.js → loading-E0zwe5lq.js} +4 -4
  68. package/dist/{membership-C3envHTy.js → membership-OECc9rWj.js} +3 -3
  69. package/dist/{money-Dm7B8wUJ.js → money-CVSdH00t.js} +1 -1
  70. package/dist/{number-Swjcamr8.js → number-Iu6cix1k.js} +1 -1
  71. package/dist/{objectid-xH_8eWzr.js → objectid-B16Lk1pC.js} +5 -5
  72. package/dist/{reward-DOggYNm3.js → reward-BH_1xbHQ.js} +1 -1
  73. package/dist/{rule-BQy3e3DE.js → rule-CbkzOdR3.js} +3 -3
  74. package/dist/{rule-builder-CPWmw5lP.js → rule-builder-WIEeIoXD.js} +1 -1
  75. package/dist/{template-Dprn2jD_.js → template-Dlo0YPQp.js} +4 -4
  76. package/dist/{trigger-BUY-zCBi.js → trigger-BMknrXKj.js} +4 -4
  77. package/dist/{usePagination-CEQLUMQ7.js → usePagination-B9K_XXDC.js} +1 -1
  78. package/dist/{user-DIK4sBIA.js → user-CuX5BIg5.js} +1 -1
  79. package/dist/{vue-i18n-B7ledd-g.js → vue-i18n-CrVlAF7z.js} +165 -165
  80. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { withPermission as R, Permission as x } from "@feedmepos/mf-common";
2
- import { defineAsyncComponent as k } from "vue";
3
- const Pe = {
1
+ import { withPermission as k, Permission as x } from "@feedmepos/mf-common";
2
+ import { defineAsyncComponent as R } from "vue";
3
+ const Me = {
4
4
  common: {
5
5
  submit: "Submit",
6
6
  confirm: "Confirm",
@@ -795,7 +795,7 @@ const Pe = {
795
795
  reward: "reward(s)",
796
796
  criteria: "criteria(s)",
797
797
  reward_tier: "configured tier(s)",
798
- referee_join_reward_description: "Reward will be given to the referrer when the referee successfully joins the program and meets the criteria",
798
+ referee_join_reward_description: "Reward will be given to the referee when the referee successfully joins the program and meets the criteria",
799
799
  referral_tier_description: "Referer will receive rewards after referee completed all criteria"
800
800
  },
801
801
  reward: {
@@ -1001,7 +1001,7 @@ const Pe = {
1001
1001
  effect_required: "Effect is required"
1002
1002
  }
1003
1003
  }, De = {
1004
- connect: Pe,
1004
+ connect: Me,
1005
1005
  connectZod: Le,
1006
1006
  connectZodCustom: je
1007
1007
  }, Ze = {
@@ -2768,42 +2768,1045 @@ const Pe = {
2768
2768
  }
2769
2769
  }, qe = {
2770
2770
  connect: Ue
2771
+ }, Ge = {
2772
+ common: {
2773
+ confirm: "確認",
2774
+ cancel: "取消",
2775
+ save: "保存",
2776
+ delete: "刪除",
2777
+ edit: "編輯",
2778
+ add: "添加",
2779
+ optional: "可選"
2780
+ },
2781
+ template: {
2782
+ general: "常規",
2783
+ trigger: "觸發器",
2784
+ general_information: "基本信息",
2785
+ discount: "折扣",
2786
+ terms_conditions: "條款和條件",
2787
+ time_limitation: "時間限制",
2788
+ target_audience: "目標受眾",
2789
+ game_configuration: "遊戲配置",
2790
+ location: "位置",
2791
+ voucher_detail: "優惠券詳情",
2792
+ spending_criteria: "消費標準",
2793
+ feedback_criteria: "反饋標準",
2794
+ voucher_usage_configuration: "優惠券使用配置",
2795
+ notify_audience: "通知受眾",
2796
+ notify_message: "通知消息",
2797
+ earning_type: "獲取類型",
2798
+ validity_configuration: "有效期配置",
2799
+ mission_participation: "任務參與",
2800
+ configure_reward: "配置獎勵",
2801
+ content: "內容",
2802
+ broadcast_configuration: "廣播配置",
2803
+ game_type: "遊戲類型",
2804
+ reward_pool: "獎勵池",
2805
+ configuration: "配置",
2806
+ campaign_name: "活動名稱",
2807
+ campaign_description: "活動描述",
2808
+ campaign_period: "活動週期",
2809
+ voucher_name: "優惠券名稱",
2810
+ voucher_description: "優惠券描述",
2811
+ voucher_image: "優惠券圖片",
2812
+ target_location: "目標位置",
2813
+ send_notification: "發送通知",
2814
+ notification_message: "通知消息",
2815
+ min_spend: "最低消費",
2816
+ select_game: "選擇您希望客户參與的遊戲",
2817
+ configure_reward_type: "配置給予客户的獎勵類型和權重",
2818
+ configure_reward_customer: "配置給予客户的獎勵類型",
2819
+ max_per_user: "每個用户最大領取次數",
2820
+ usage_count: "使用次數",
2821
+ max_distribute: "最大發放次數",
2822
+ cooldown: "冷卻時間",
2823
+ validity_option: {
2824
+ title: "有效期選項",
2825
+ date_range: "日期範圍",
2826
+ custom: "自定義",
2827
+ expire: "過期",
2828
+ after_day: "天數",
2829
+ days: "天",
2830
+ expire_follow_first_receive: "過期時間從首次接收開始計算",
2831
+ expires_on_same_day: "當天過期"
2832
+ },
2833
+ enable_transfer: "啓用轉讓",
2834
+ rule: {
2835
+ time: {
2836
+ all_time: "所有時間",
2837
+ custom: "自定義日期/時間",
2838
+ confirm_remove: "您確定要關閉自定義條件嗎?這將刪除您設置的所有規則。"
2839
+ },
2840
+ audience: {
2841
+ all: "所有受眾",
2842
+ member_segment: "會員分組",
2843
+ custom_audience: "自定義受眾",
2844
+ confirm_remove: "您確定要更改受眾類型嗎?這將刪除您設置的所有規則。"
2845
+ }
2846
+ }
2847
+ },
2848
+ campaign: {
2849
+ common: {
2850
+ createCampaign: "創建活動",
2851
+ search: "搜索",
2852
+ location: "位置:",
2853
+ noResults: "未找到結果",
2854
+ remove: {
2855
+ confirm: "您確定要刪除{name}嗎?",
2856
+ removing: "正在刪除{name}",
2857
+ removed: "{name}已成功刪除"
2858
+ },
2859
+ actions: {
2860
+ remove: "刪除",
2861
+ send: "發送",
2862
+ share: "分享"
2863
+ },
2864
+ effect_required: "效果是必需的",
2865
+ unsaved_changes: "您確定要丟棄這些更改嗎?",
2866
+ unsaved_changes_confirm: "確定",
2867
+ unsaved_changes_cancel: "取消",
2868
+ save: "保存",
2869
+ cancel: "取消",
2870
+ summary: "活動摘要",
2871
+ campaign_name: "活動名稱",
2872
+ campaign_period: "活動週期",
2873
+ next_schedule_at: "下次計劃時間",
2874
+ discount_type: "折扣類型",
2875
+ discount_amount: "折扣金額",
2876
+ discount_percentage: "折扣百分比",
2877
+ all_locations: "所有位置",
2878
+ available_at: "可用位置",
2879
+ always: "總是",
2880
+ no_location: "無位置",
2881
+ status: {
2882
+ active: "進行中",
2883
+ upcoming: "即將推出",
2884
+ expired: "已結束"
2885
+ }
2886
+ },
2887
+ mission: {
2888
+ title: "任務",
2889
+ create: "創建任務",
2890
+ confirmDelete: "您確定要刪除{name}嗎?",
2891
+ removing: "正在刪除{name}",
2892
+ removed: "成功刪除{name}",
2893
+ updating: "正在更新任務",
2894
+ updated: "任務更新成功",
2895
+ creating: "正在創建任務",
2896
+ created: "任務創建成功",
2897
+ location: "位置:",
2898
+ createProgram: "創建您的任務",
2899
+ description: "任務功能為購物增添了趣味元素,鼓勵客户更多地參與。",
2900
+ createButton: "創建任務",
2901
+ type: "任務類型",
2902
+ received: "已領取"
2903
+ },
2904
+ broadcast: {
2905
+ title: "廣播",
2906
+ messageSent: "{count}已發送",
2907
+ create: {
2908
+ title: "創建您的廣播活動",
2909
+ description: "廣播允許您向所有客户發送短信,通知他們有關新交易、活動或重要更新的信息。",
2910
+ button: "創建廣播活動"
2911
+ },
2912
+ update: {
2913
+ creating: "正在創建廣播",
2914
+ updating: "正在更新廣播",
2915
+ success: "廣播{action}成功"
2916
+ }
2917
+ },
2918
+ promotion: {
2919
+ title: "促銷",
2920
+ typeLabel: "{type} 促銷",
2921
+ create: {
2922
+ title: "創建促銷活動",
2923
+ description: "限時提供的特別優惠或交易,以鼓勵用户參與和購買。促銷通常對所有符合條件的用户開放,無需特定代碼,並在促銷期間由商家應用。",
2924
+ button: "創建促銷活動"
2925
+ },
2926
+ update: {
2927
+ creating: "正在創建促銷",
2928
+ updating: "正在更新促銷",
2929
+ success: "促銷{action}成功"
2930
+ }
2931
+ },
2932
+ voucher: {
2933
+ title: "代金券",
2934
+ claimed: "{count} 已領取",
2935
+ unlimited: "無限制",
2936
+ updateConfirm: {
2937
+ title: "確認",
2938
+ message: "這將更改所有未來的代金券?您想更新之前領取的代金券的到期日期和折扣嗎?",
2939
+ updateAll: "全部更新",
2940
+ updateFuture: "僅更新未來"
2941
+ },
2942
+ create: {
2943
+ title: "創建代金券活動",
2944
+ description: "用户可以兑換以獲得未來購買折扣的數字優惠券。用户通常需要領取並應用代金券才能享受折扣。",
2945
+ button: "創建代金券活動"
2946
+ },
2947
+ update: {
2948
+ creating: "正在創建代金券",
2949
+ updating: "正在更新代金券",
2950
+ success: "代金券{action}成功"
2951
+ },
2952
+ share: {
2953
+ error: "無法分享非簡單領取的代金券。",
2954
+ errorTitle: "分享代金券",
2955
+ errorButton: "確定",
2956
+ success: "代金券鏈接已複製到剪貼板"
2957
+ }
2958
+ }
2959
+ },
2960
+ promotion: {
2961
+ createCampaign: "創建活動",
2962
+ promotionTitle: "促銷標題",
2963
+ status: "狀態",
2964
+ type: "類型",
2965
+ summary: "摘要",
2966
+ actions: "操作",
2967
+ confirmRemove: "您確定要刪除{name}嗎?",
2968
+ removing: "正在刪除{name}",
2969
+ removedSuccessfully: "成功刪除{name}",
2970
+ updating: "正在更新促銷",
2971
+ creating: "正在創建促銷",
2972
+ updatedSuccessfully: "促銷更新成功",
2973
+ createdSuccessfully: "促銷創建成功",
2974
+ title: "促銷",
2975
+ search: "搜索",
2976
+ location: "位置:",
2977
+ createPromotionCampaign: "創建促銷活動",
2978
+ description: "限時提供的特別優惠或交易,以鼓勵用户參與和購買。促銷通常對所有符合條件的用户開放,無需特定代碼,並在促銷期間由商家應用。"
2979
+ },
2980
+ voucher: {
2981
+ createCampaign: "創建活動",
2982
+ voucherTitle: "代金券標題",
2983
+ status: "狀態",
2984
+ summary: "摘要",
2985
+ quota: "配額",
2986
+ claimed: "已領取",
2987
+ actions: "操作",
2988
+ remove: "移除",
2989
+ send: "發送",
2990
+ share: "分享",
2991
+ confirmRemove: "您確定要刪除{name}嗎?",
2992
+ removing: "正在刪除{name}",
2993
+ removedSuccessfully: "成功刪除{name}",
2994
+ updating: "正在更新代金券",
2995
+ creating: "正在創建代金券",
2996
+ updatedSuccessfully: "代金券更新成功",
2997
+ createdSuccessfully: "代金券創建成功",
2998
+ title: "代金券",
2999
+ search: "搜索",
3000
+ location: "位置:",
3001
+ createVoucherCampaign: "創建代金券活動",
3002
+ description: "用户可以兑換以獲得未來購買折扣的數字優惠券。用户通常需要領取並應用代金券才能享受折扣。"
3003
+ },
3004
+ navigation: {
3005
+ analytic: "分析",
3006
+ campaign: "活動",
3007
+ promotion: "促銷",
3008
+ voucher: "代金券",
3009
+ broadcast: "廣播",
3010
+ program: "程序",
3011
+ tier: "等級",
3012
+ title: "頭銜",
3013
+ experience: "經驗",
3014
+ point: "點數",
3015
+ credit: "積分",
3016
+ game: "遊戲",
3017
+ loyalty: "忠誠度",
3018
+ member: "會員",
3019
+ segments: "分組",
3020
+ card: "會員卡",
3021
+ store: "商店",
3022
+ transaction: "交易",
3023
+ setting: "設置",
3024
+ mission: "任務",
3025
+ auditLogs: "審計日誌",
3026
+ referral: "推薦"
3027
+ },
3028
+ loyalty: {
3029
+ card: {
3030
+ title: "會員卡",
3031
+ premium_label: "高級",
3032
+ actions: {
3033
+ create: "創建會員卡",
3034
+ manage_design: "管理設計",
3035
+ add: "添加會員卡"
3036
+ },
3037
+ empty_state: {
3038
+ title: "創建會員卡",
3039
+ description: "跟蹤和管理會員卡,以保持客户對您的業務的參與。",
3040
+ premium_cta: "升級到高級版,享受所有功能。"
3041
+ },
3042
+ table: {
3043
+ card_number: "卡號",
3044
+ redeemed_by: "兑換者",
3045
+ phone: "電話",
3046
+ created_at: "創建於",
3047
+ bundle: "捆綁",
3048
+ redeemed_at: "兑換於",
3049
+ actions: "操作"
3050
+ }
3051
+ },
3052
+ member: {
3053
+ title: "會員交易",
3054
+ tabs: {
3055
+ member_list: "會員列表"
3056
+ }
3057
+ },
3058
+ segment: {
3059
+ title: "分組",
3060
+ actions: {
3061
+ refresh: "刷新分組",
3062
+ add: "添加分組",
3063
+ remove: "移除"
3064
+ },
3065
+ table: {
3066
+ name: "名稱",
3067
+ total_customers: "此細分中的總客户數",
3068
+ customer_percentage: "客户百分比",
3069
+ actions: "操作"
3070
+ },
3071
+ mobile: {
3072
+ total_customers: "總客户數:{count}",
3073
+ customer_percentage: "客户百分比:{percentage}%"
3074
+ }
3075
+ }
3076
+ },
3077
+ program: {
3078
+ common: {
3079
+ create: "創建程序",
3080
+ search: "搜索",
3081
+ location: "位置:",
3082
+ used: "已使用:{count}",
3083
+ actions: {
3084
+ create: "創建{type}程序",
3085
+ delete: "刪除"
3086
+ },
3087
+ table: {
3088
+ title: "程序標題",
3089
+ status: "狀態",
3090
+ summary: "摘要",
3091
+ actions: "操作",
3092
+ type: "類型"
3093
+ },
3094
+ remove: {
3095
+ confirm: "您確定要刪除{name}嗎?",
3096
+ removing: "正在刪除{name}",
3097
+ removed: "成功刪除{name}"
3098
+ },
3099
+ update: {
3100
+ creating: "正在創建{type}程序",
3101
+ updating: "正在更新{type}程序",
3102
+ success: "{type}程序{action}成功"
3103
+ }
3104
+ },
3105
+ experience: {
3106
+ title: "經驗",
3107
+ empty_state: {
3108
+ title: "創建經驗計劃",
3109
+ description: "經驗幫助客户獲得會員等級。客户互動和消費越多,他們的會員等級就越高,解鎖更多獎勵和福利。"
3110
+ },
3111
+ received: "獲得的經驗:{count}"
3112
+ },
3113
+ game: {
3114
+ title: "遊戲",
3115
+ empty_state: {
3116
+ title: "創建您的遊戲計劃",
3117
+ description: "遊戲功能為購物增添了趣味元素,鼓勵客户更多地參與。"
3118
+ },
3119
+ token_received: "獲得的代幣:{count}"
3120
+ },
3121
+ credit: {
3122
+ title: "點數"
3123
+ },
3124
+ point: {
3125
+ title: "點數",
3126
+ empty_state: {
3127
+ title: "創建您的點數計劃",
3128
+ description: "點數是客户可以賺取並用於購買捆綁商品的虛擬點數。"
3129
+ },
3130
+ point_received: "獲得的點數:{count}",
3131
+ used: "{count} 已使用"
3132
+ },
3133
+ tier: {
3134
+ title: "等級",
3135
+ empty_state: {
3136
+ title: "創建等級計劃",
3137
+ description: "通過加入您的會員活動,為您的會員提供獨家福利和獎勵。您可以選擇希望您的忠誠度等級提供的內容。"
3138
+ },
3139
+ actions: {
3140
+ add: "添加等級",
3141
+ season_setting: "季節設置"
3142
+ },
3143
+ update: {
3144
+ range_discontinuous: {
3145
+ previous: `等級範圍不連續。
3146
+ 之前的範圍:{name} [{from} - {to}]。
3147
+ 您想將之前的範圍更新為 [{from} - {newTo}] 嗎?`,
3148
+ next: `等級範圍不連續。
3149
+ 下一個範圍:{name} [{from} - {to}]。
3150
+ 您想將下一個範圍更新為 [{newFrom} - {to}] 嗎?`
3151
+ }
3152
+ },
3153
+ remove: {
3154
+ confirm: "您確定要刪除此等級嗎?",
3155
+ title: "刪除等級",
3156
+ next_range: "更新下一個範圍",
3157
+ range_discontinuous: {
3158
+ previous: `等級範圍不連續。
3159
+ 之前的範圍:{name} [{from} - {to}]。
3160
+ 您想將之前的範圍更新為 [{from} - {newTo}] 嗎?`,
3161
+ next: `等級範圍不連續。
3162
+ 下一個範圍:{name} [{from} - {to}]。
3163
+ 您想將下一個範圍更新為 [{newFrom} - {to}] 嗎?`
3164
+ }
3165
+ },
3166
+ benefit: {
3167
+ add: "添加福利",
3168
+ no_linked: "無關聯福利",
3169
+ update: {
3170
+ title: "更新福利",
3171
+ success: "福利創建成功"
3172
+ }
3173
+ },
3174
+ expression: {
3175
+ title: "等級過期規則",
3176
+ description: "設置等級過期規則",
3177
+ change_to: "改變為",
3178
+ deduct_by: "扣除",
3179
+ deduct_percentage: "扣除百分比",
3180
+ value: "值",
3181
+ value_greater_than_or_equal: "值必須大於或等於{value}",
3182
+ value_less_than_or_equal: "值必須小於或等於{value}",
3183
+ value_between: "值必須在{from}和{to}之間",
3184
+ value_less_than: "值必須小於{value}"
3185
+ },
3186
+ card: {
3187
+ count: "{count} 會員"
3188
+ }
3189
+ },
3190
+ title: {
3191
+ title: "頭銜",
3192
+ empty_state: {
3193
+ title: "創建頭銜計劃",
3194
+ description: "創建頭銜計劃,創建獨特的忠誠度頭銜以個性化會員體驗。通過有趣的頭銜吸引客户,以增強忠誠度計劃的遊戲化。"
3195
+ },
3196
+ actions: {
3197
+ add: "添加頭銜"
3198
+ },
3199
+ update: {
3200
+ creating: "創建頭銜",
3201
+ updating: "更新頭銜",
3202
+ success: "頭銜{action}成功"
3203
+ },
3204
+ remove: {
3205
+ confirm: "您確定要刪除此頭銜嗎?",
3206
+ title: "刪除頭銜",
3207
+ deleting: "正在刪除頭銜",
3208
+ success: "頭銜已刪除"
3209
+ },
3210
+ benefit: {
3211
+ add: "添加福利",
3212
+ no_linked: "無關聯福利",
3213
+ update: {
3214
+ title: "更新福利",
3215
+ success: "福利創建成功"
3216
+ },
3217
+ voucher_update: {
3218
+ title: "確認",
3219
+ message: "這將更改所有未來的代金券?您想更新之前領取的代金券的到期日期和折扣嗎?",
3220
+ update_all: "全部更新",
3221
+ update_future: "僅更新未來"
3222
+ }
3223
+ },
3224
+ table: {
3225
+ title: "頭銜",
3226
+ program_title: "計劃標題",
3227
+ status: "狀態",
3228
+ type: "類型",
3229
+ summary: "摘要",
3230
+ actions: "操作"
3231
+ },
3232
+ search: "搜索",
3233
+ location: "位置:",
3234
+ addBenefit: "添加福利",
3235
+ noDescription: "無描述",
3236
+ descriptionLimit: "{name} 描述不應超過 200 個字符。",
3237
+ availability: "可用性",
3238
+ internalOnly: "僅內部",
3239
+ notShown: "{name} 不會顯示給客户",
3240
+ submit: "提交",
3241
+ cancel: "取消",
3242
+ imageLabel: "{name} 圖片"
3243
+ },
3244
+ mission: {
3245
+ title: "任務",
3246
+ empty_state: {
3247
+ title: "創建您的任務活動",
3248
+ description: "任務是允許客户完成任務以賺取獎勵的活動。"
3249
+ }
3250
+ }
3251
+ },
3252
+ analytic: {
3253
+ title: "分析",
3254
+ addGroup: "添加組",
3255
+ search: "搜索",
3256
+ summary: {
3257
+ title: "連接摘要",
3258
+ totalCampaign: "總活動",
3259
+ totalProgram: "總計劃",
3260
+ totalMember: "總會員"
3261
+ },
3262
+ emptyState: {
3263
+ title: "創建活動組以跟蹤績效",
3264
+ description: "通過創建組開始組織您的活動和促銷。組允許您彙總多個代金券、促銷或其他獎勵的績效指標。",
3265
+ action: "創建組"
3266
+ }
3267
+ },
3268
+ marketing: {
3269
+ title: "營銷材料",
3270
+ create: "創建營銷材料",
3271
+ search: "搜索",
3272
+ table: {
3273
+ name: "名稱",
3274
+ campaign: "活動",
3275
+ createdDate: "創建日期",
3276
+ actions: "操作"
3277
+ },
3278
+ delete: {
3279
+ confirm: "您確定要刪除{name}嗎?",
3280
+ removing: "正在刪除{name}",
3281
+ success: "{name}已成功刪除"
3282
+ },
3283
+ emptyState: {
3284
+ title: "創建營銷材料",
3285
+ description: "通過我們的AI驅動工具輕鬆提升您的營銷工作。為您想要的平台生成驚人的圖像和引人注目的標題。",
3286
+ action: "添加材料"
3287
+ },
3288
+ noResults: "未找到結果"
3289
+ },
3290
+ auditLogs: {
3291
+ title: "審計日誌"
3292
+ },
3293
+ setting: {
3294
+ title: "設置",
3295
+ basicInfo: {
3296
+ title: "基本信息",
3297
+ membershipTitle: "會員頭銜",
3298
+ memberAppUrl: "會員應用URL"
3299
+ },
3300
+ counterApp: {
3301
+ title: "計數器應用",
3302
+ linkDevice: "鏈接設備",
3303
+ device: {
3304
+ activationDate: "激活日期:",
3305
+ linkedLocation: "關聯位置:"
3306
+ }
3307
+ },
3308
+ advertisement: {
3309
+ title: "廣告",
3310
+ subtitle: "這將在FeedMe訂購應用上顯示"
3311
+ },
3312
+ sms: {
3313
+ title: "短信",
3314
+ brandName: "品牌名稱",
3315
+ messageFormat: "RM 0 {brand}: 您的客户消息",
3316
+ welcomeMessage: "您好,您已被邀請加入會員"
3317
+ },
3318
+ freeCredit: {
3319
+ title: "免費積分作為折扣",
3320
+ posVersion: "*POS v6.56或更高版本",
3321
+ description: "啓用後,這將允許免費積分在賬單中用作折扣(POS >=v6.56)"
3322
+ },
3323
+ memberCard: {
3324
+ title: "會員卡",
3325
+ description: "允許會員通過會員應用綁定卡"
3326
+ },
3327
+ location: {
3328
+ title: "激活位置",
3329
+ selectLabel: "選擇餐廳"
3330
+ },
3331
+ summary: {
3332
+ title: "忠誠度設置摘要",
3333
+ name: "名稱",
3334
+ advertisement: "廣告",
3335
+ noAds: "無廣告",
3336
+ freeCredit: "免費積分作為折扣",
3337
+ enabled: "已啓用",
3338
+ disabled: "已禁用",
3339
+ locations: "激活位置",
3340
+ allLocations: "所有位置"
3341
+ },
3342
+ action: {
3343
+ update: "更新"
3344
+ }
3345
+ },
3346
+ transaction: {
3347
+ title: "交易",
3348
+ tabs: {
3349
+ collection: "收藏",
3350
+ store: "商店"
3351
+ }
3352
+ },
3353
+ store: {
3354
+ title: "商店",
3355
+ setting: {
3356
+ title: "商店設置",
3357
+ company: {
3358
+ legal_info: "公司法律信息",
3359
+ name: "公司名稱",
3360
+ reg_no: "註冊號碼",
3361
+ tax_reg_no: "税務登記號碼",
3362
+ tax: "税務",
3363
+ phone: "電話號碼",
3364
+ address: {
3365
+ title: "地址",
3366
+ line1: "地址行1",
3367
+ line2: "地址行2",
3368
+ city: "城市",
3369
+ postcode: "郵政編碼",
3370
+ state: "州/省",
3371
+ country: "國家"
3372
+ }
3373
+ },
3374
+ stripe: {
3375
+ title: "Stripe集成"
3376
+ },
3377
+ update: {
3378
+ message: "正在更新商店設置",
3379
+ success: "商店設置更新成功"
3380
+ }
3381
+ },
3382
+ actions: {
3383
+ setting: "商店設置",
3384
+ manageReward: "管理獎勵",
3385
+ addCategory: "添加類別",
3386
+ addBundle: "添加配套"
3387
+ },
3388
+ category: {
3389
+ label: "類別",
3390
+ setup: {
3391
+ title: "請先設置您的商店設置,然後再添加類別。",
3392
+ action: "去設置",
3393
+ button: "更新商店設置"
3394
+ },
3395
+ add: "添加類別",
3396
+ edit: "編輯類別",
3397
+ remove: {
3398
+ confirm: "您確定要刪除類別嗎?",
3399
+ title: "刪除類別"
3400
+ },
3401
+ update: {
3402
+ deleting: "正在刪除類別",
3403
+ creating: "正在創建類別",
3404
+ updating: "正在更新類別",
3405
+ success: {
3406
+ deleted: "類別刪除成功",
3407
+ created: "類別創建成功",
3408
+ updated: "類別更新成功"
3409
+ }
3410
+ }
3411
+ },
3412
+ bundle: {
3413
+ title: "商店捆綁",
3414
+ description: "添加您希望用户在此處消費和獲取的項目。它可以是一堆代金券、福利、體驗等!",
3415
+ delete: {
3416
+ confirm: "您確定要刪除此捆綁嗎?",
3417
+ title: "刪除捆綁"
3418
+ },
3419
+ update: {
3420
+ error: "意外錯誤",
3421
+ deleting: "正在刪除捆綁",
3422
+ creating: "正在創建捆綁",
3423
+ updating: "正在更新捆綁",
3424
+ success: {
3425
+ deleted: "捆綁刪除成功",
3426
+ created: "捆綁創建成功",
3427
+ updated: "捆綁更新成功"
3428
+ }
3429
+ },
3430
+ edit: {
3431
+ title: "編輯捆綁",
3432
+ create: "創建捆綁",
3433
+ basicInformation: "基本信息",
3434
+ bundleName: "捆綁名稱",
3435
+ bundleImage: "捆綁圖片",
3436
+ bundlePrice: "捆綁價格",
3437
+ bundleValue: "捆綁價值",
3438
+ originalPrice: "原價",
3439
+ originalPriceHelper: "留空或設置為0以禁用原價",
3440
+ pointNeeded: "所需積分",
3441
+ subscriptionSettings: "訂閲設置",
3442
+ stripePriceId: "Stripe價格ID",
3443
+ subscriptionValidity: "訂閲有效期(天)",
3444
+ submit: "提交",
3445
+ cancel: "取消",
3446
+ advanceSetting: "高級設置",
3447
+ credit: "點數",
3448
+ normalCredit: "普通積分",
3449
+ freeCredit: "免費積分",
3450
+ taxes: "税費",
3451
+ taxCharge: {
3452
+ title: "税費({type})",
3453
+ inclusive: "含税",
3454
+ exclusive: "不含税"
3455
+ },
3456
+ totalPrice: "總價",
3457
+ internalBundle: "內部配套",
3458
+ internalBundleDescription: "內部配套將在FeedMe會員應用中隱藏",
3459
+ hideInPos: "在POS中隱藏",
3460
+ hideInPosDescription: "配套將在FeedMe POS中隱藏",
3461
+ maxPerUser: "用户最大購買量",
3462
+ bundleReward: {
3463
+ title: "配套獎勵",
3464
+ description: "讓您的會員知道他們可以從此配套中獲得什麼",
3465
+ table: {
3466
+ title: "獎勵標題",
3467
+ type: "獎勵類型",
3468
+ description: "描述"
3469
+ }
3470
+ }
3471
+ }
3472
+ }
3473
+ },
3474
+ storeRewards: {
3475
+ title: "商店獎勵",
3476
+ remove: {
3477
+ message: "You cannot remove a title here, please remove it at the Program > Title section.",
3478
+ title: "Delete reward",
3479
+ action: "Go to title section"
3480
+ },
3481
+ edit: {
3482
+ message: "You cannot edit a title here, please edit it at the Program > Title section.",
3483
+ title: "Update reward",
3484
+ action: "Go to title section"
3485
+ },
3486
+ description: "為您的客户創建和管理獎勵。",
3487
+ type: {
3488
+ label: "獎勵類型:{type}",
3489
+ all: "全部"
3490
+ },
3491
+ search: "搜索",
3492
+ delete: {
3493
+ confirm: "您確定要刪除此獎勵嗎?",
3494
+ title: "刪除獎勵",
3495
+ message: "正在刪除獎勵",
3496
+ success: "獎勵已刪除"
3497
+ },
3498
+ update: {
3499
+ message: "正在更新獎勵",
3500
+ success: "獎勵更新成功"
3501
+ },
3502
+ empty: {
3503
+ title: "創建獎勵",
3504
+ description: "為您的客户創建獎勵,以便他們在捆綁中兑換。",
3505
+ action: "創建獎勵"
3506
+ },
3507
+ create: "創建獎勵",
3508
+ table: {
3509
+ name: "名稱",
3510
+ type: "類型",
3511
+ validity: "有效期",
3512
+ used: "已使用",
3513
+ actions: "操作"
3514
+ }
3515
+ },
3516
+ prompt: {
3517
+ confirm: "確認",
3518
+ cancel: "取消"
3519
+ },
3520
+ editTierSheet: {
3521
+ add: "添加",
3522
+ create: "創建等級",
3523
+ basicInformation: "基本信息",
3524
+ tierName: "等級名稱",
3525
+ tierImage: "等級圖片",
3526
+ experienceThreshold: "經驗閾值",
3527
+ minExperience: "最小經驗",
3528
+ maxExperience: "最大經驗",
3529
+ actions: "操作",
3530
+ submit: "提交",
3531
+ cancel: "取消"
3532
+ },
3533
+ referral: {
3534
+ title: "推薦計劃",
3535
+ actions: {
3536
+ create: "創建推薦",
3537
+ manage_reward: "管理獎勵",
3538
+ terms: "條款和條件",
3539
+ manage_criteria: "管理條件",
3540
+ add_referral_tier: "添加推薦等級"
3541
+ },
3542
+ tabs: {
3543
+ overview: "概覽",
3544
+ record: "記錄"
3545
+ },
3546
+ referral_tier_title: "設置成功推薦的獎勵",
3547
+ referral_tier_description: "在所選推薦等級內為每個步驟添加和自定義獎勵。",
3548
+ add_referral_tier: "添加推薦等級",
3549
+ overview: {
3550
+ title: "概覽",
3551
+ total_joined: "總加入人數",
3552
+ total_redeem: "總兑換次數",
3553
+ total_referee: "總被推薦人數",
3554
+ pending: "待處理"
3555
+ },
3556
+ how_it_works: {
3557
+ title: "運作方式",
3558
+ generate_link: "生成鏈接",
3559
+ generate_link_for_member: "為會員生成鏈接",
3560
+ referee_join_reward: "被推薦人加入獎勵",
3561
+ referee_meet_criteria: "被推薦人滿足條件",
3562
+ referer_get_reward: "推薦人獲得獎勵",
3563
+ reward: "獎勵",
3564
+ criteria: "條件",
3565
+ reward_tier: "獎勵等級",
3566
+ referee_join_reward_description: "被推薦人將在被推薦人成功加入計劃並滿足條件時獲得獎勵",
3567
+ referral_tier_description: "推薦人將在被推薦人完成所有條件後獲得獎勵"
3568
+ },
3569
+ reward: {
3570
+ add_count: "添加次數",
3571
+ table: {
3572
+ count: "推薦次數",
3573
+ reward: "獎勵"
3574
+ },
3575
+ remove_referral_tier: "刪除推薦等級",
3576
+ confirm_remove_referral_tier: "您確定要刪除此推薦等級嗎?",
3577
+ remove_referral_count: "刪除推薦次數",
3578
+ confirm_remove_referral_count: "您確定要刪除此推薦次數嗎?"
3579
+ },
3580
+ editReferralTierSheet: {
3581
+ create: "創建推薦等級",
3582
+ edit: "編輯推薦等級",
3583
+ target_audience: "目標受眾",
3584
+ name: "名稱"
3585
+ },
3586
+ editReferralCountSheet: {
3587
+ add: "添加推薦次數",
3588
+ edit: "編輯推薦次數",
3589
+ referrer_reward: "推薦人獎勵",
3590
+ min_referral_count: "最小推薦次數",
3591
+ max_referral_count: "最大推薦次數",
3592
+ max_referral_count_description: "當最大推薦次數未設置時,將默認無限"
3593
+ },
3594
+ refereeRewardSheet: {
3595
+ referee_reward: "被推薦人獎勵"
3596
+ },
3597
+ referral_count: {
3598
+ title: "推薦次數",
3599
+ update: {
3600
+ range_discontinuous: {
3601
+ previous: `推薦次數範圍不連續。
3602
+ 之前的範圍:{name} [{from} - {to}]。
3603
+ 您想將之前的範圍更新為 [{from} - {newTo}] 嗎?`,
3604
+ next: `推薦次數範圍不連續。
3605
+ 下一個範圍:{name} [{from} - {to}]。
3606
+ 您想將下一個範圍更新為 [{newFrom} - {to}] 嗎?`
3607
+ }
3608
+ },
3609
+ remove: {
3610
+ confirm: "您確定要刪除此推薦次數嗎?",
3611
+ title: "刪除推薦次數",
3612
+ next_range: "更新下一個範圍",
3613
+ range_discontinuous: {
3614
+ previous: `推薦次數範圍不連續。
3615
+ 之前的範圍:{name} [{from} - {to}]。
3616
+ 您想將之前的範圍更新為 [{from} - {newTo}] 嗎?`,
3617
+ next: `推薦次數範圍不連續。
3618
+ 下一個範圍:{name} [{from} - {to}]。
3619
+ 您想將下一個範圍更新為 [{newFrom} - {to}] 嗎?`
3620
+ }
3621
+ }
3622
+ },
3623
+ term_and_condition: {
3624
+ confirm_remove: "您確定要刪除條款和條件嗎?"
3625
+ },
3626
+ record: {
3627
+ referer_info: "推薦人信息",
3628
+ referee_info: "被推薦人信息",
3629
+ referee_criteria: "被推薦人條件",
3630
+ status: "狀態"
3631
+ }
3632
+ },
3633
+ reward: {
3634
+ title: "獎勵",
3635
+ description: "為成功推薦的客户提供獎勵",
3636
+ table: {
3637
+ title: "獎勵標題",
3638
+ type: "獎勵類型",
3639
+ description: "描述"
3640
+ }
3641
+ }
3642
+ }, ze = {
3643
+ errors: {
3644
+ invalid_type: "預期輸入為{{expected}},而輸入為{{received}}",
3645
+ invalid_type_received_undefined: "必填",
3646
+ invalid_type_received_null: "必填",
3647
+ invalid_literal: "錯誤的字面量值,請輸入 {{expected}}",
3648
+ unrecognized_keys: "對象中的鍵無法識別: {{- keys}}",
3649
+ invalid_union: "不滿足聯合類型中的選項",
3650
+ invalid_union_discriminator: "標識值無法被區分。請輸入 {{- options}}",
3651
+ invalid_enum_value: "錯誤的枚舉值 '{{received}}'。請輸入 {{- options}}",
3652
+ invalid_arguments: "錯誤的函數參數格式",
3653
+ invalid_return_type: "錯誤的函數返回值格式",
3654
+ invalid_date: "錯誤的日期格式",
3655
+ custom: "錯誤的輸入格式",
3656
+ invalid_intersection_types: "交叉類型結果無法被合併",
3657
+ not_multiple_of: "數值必須是 {{multipleOf}} 的倍數",
3658
+ not_finite: "數值必須有限",
3659
+ invalid_string: {
3660
+ email: "錯誤的{{validation}}格式",
3661
+ url: "錯誤的{{validation}}格式",
3662
+ uuid: "錯誤的{{validation}}格式",
3663
+ cuid: "錯誤的{{validation}}格式",
3664
+ regex: "錯誤的格式",
3665
+ datetime: "錯誤的{{validation}}格式",
3666
+ startsWith: '文本必須以 "{{startsWith}}" 開頭',
3667
+ endsWith: '文本必須以 "{{endsWith}}" 結尾'
3668
+ },
3669
+ too_small: {
3670
+ array: {
3671
+ exact: "數組元素必須為 {{minimum}} 個",
3672
+ inclusive: "數組元素不得少於 {{minimum}} 個",
3673
+ not_inclusive: "數組元素必須超過 {{minimum}} 個"
3674
+ },
3675
+ string: {
3676
+ exact: "文本長度必須為 {{minimum}} 個字符",
3677
+ inclusive: "文本長度不得少於 {{minimum}} 個字符",
3678
+ not_inclusive: "文本長度必須超過 {{minimum}} 個字符"
3679
+ },
3680
+ number: {
3681
+ exact: "數值必須為 {{minimum}}",
3682
+ inclusive: "數值不得小於 {{minimum}}",
3683
+ not_inclusive: "數值必須大於 {{minimum}}"
3684
+ },
3685
+ set: {
3686
+ exact: "錯誤的輸入格式",
3687
+ inclusive: "錯誤的輸入格式",
3688
+ not_inclusive: "錯誤的輸入格式"
3689
+ },
3690
+ date: {
3691
+ exact: "日期必須為 {{- minimum, datetime}}",
3692
+ inclusive: "日期不得晚於 {{- minimum, datetime}}",
3693
+ not_inclusive: "日期必須早於 {{- minimum, datetime}}"
3694
+ }
3695
+ },
3696
+ too_big: {
3697
+ array: {
3698
+ exact: "數組元素必須為 {{maximum}} 個",
3699
+ inclusive: "數組元素不得多於 {{maximum}} 個",
3700
+ not_inclusive: "數組元素必須少於 {{maximum}} 個"
3701
+ },
3702
+ string: {
3703
+ exact: "文本長度必須為 {{maximum}} 個字符",
3704
+ inclusive: "文本長度不得多於 {{maximum}} 個字符",
3705
+ not_inclusive: "文本長度必須少於 {{maximum}} 個字符"
3706
+ },
3707
+ number: {
3708
+ exact: "數值必須為 {{maximum}}",
3709
+ inclusive: "數值不得大於 {{maximum}}",
3710
+ not_inclusive: "數值必須小於 {{maximum}}"
3711
+ },
3712
+ set: {
3713
+ exact: "錯誤的輸入格式",
3714
+ inclusive: "錯誤的輸入格式",
3715
+ not_inclusive: "錯誤的輸入格式"
3716
+ },
3717
+ date: {
3718
+ exact: "日期必須為 {{- maximum, datetime}}",
3719
+ inclusive: "日期不得早於 {{- maximum, datetime}}",
3720
+ not_inclusive: "日期必須晚於 {{- maximum, datetime}}"
3721
+ }
3722
+ }
3723
+ },
3724
+ validations: {
3725
+ email: "郵件",
3726
+ url: "鏈接",
3727
+ uuid: "uuid",
3728
+ cuid: "cuid",
3729
+ regex: "正則表達式",
3730
+ datetime: "日期時間"
3731
+ },
3732
+ types: {
3733
+ function: "函數",
3734
+ number: "數字",
3735
+ string: "字符串",
3736
+ nan: "非數",
3737
+ integer: "整數",
3738
+ float: "浮點數",
3739
+ boolean: "布爾值",
3740
+ date: "日期",
3741
+ bigint: "大整數",
3742
+ undefined: "未定義",
3743
+ symbol: "符號",
3744
+ null: "空對象",
3745
+ array: "數組",
3746
+ object: "對象",
3747
+ unknown: "未知",
3748
+ promise: "Promise",
3749
+ void: "空",
3750
+ never: "不存在",
3751
+ map: "字典",
3752
+ set: "集合"
3753
+ }
3754
+ }, We = {
3755
+ timeframe: {
3756
+ end_before_start: "結束日期必須晚於或等於開始日期"
3757
+ },
3758
+ campaign: {
3759
+ rule_required: "當觸發類型為 '{type}' 時,需要一個規則",
3760
+ earning_amount_exceed: "收益金額必須小於 {max}(任務的最大收集量)",
3761
+ credit_validity_required: "信用活動需要一個有效期選項(必須是免費信用)",
3762
+ mission_first_receive: "任務活動必須遵循首次接收",
3763
+ schedule_period_required: "計劃觸發需要設置一個活動期",
3764
+ active_period_invalid: "活動期規則無效",
3765
+ fixed_earning_required: "非賬單完成活動需要固定收益選項",
3766
+ reward_threshold_range: "獎勵閾值必須在任務結束範圍內",
3767
+ reward_threshold_unique: "獎勵閾值必須是唯一的",
3768
+ effect_required: "效果是必需的"
3769
+ }
3770
+ }, Ye = {
3771
+ connect: Ge,
3772
+ connectZod: ze,
3773
+ connectZodCustom: We
2771
3774
  };
2772
3775
  var b;
2773
3776
  (function(a) {
2774
- a.assertEqual = (r) => r;
2775
- function e(r) {
3777
+ a.assertEqual = (n) => n;
3778
+ function e(n) {
2776
3779
  }
2777
3780
  a.assertIs = e;
2778
- function t(r) {
3781
+ function t(n) {
2779
3782
  throw new Error();
2780
3783
  }
2781
- a.assertNever = t, a.arrayToEnum = (r) => {
2782
- const i = {};
2783
- for (const s of r)
2784
- i[s] = s;
2785
- return i;
2786
- }, a.getValidEnumValues = (r) => {
2787
- const i = a.objectKeys(r).filter((o) => typeof r[r[o]] != "number"), s = {};
2788
- for (const o of i)
2789
- s[o] = r[o];
3784
+ a.assertNever = t, a.arrayToEnum = (n) => {
3785
+ const r = {};
3786
+ for (const s of n)
3787
+ r[s] = s;
3788
+ return r;
3789
+ }, a.getValidEnumValues = (n) => {
3790
+ const r = a.objectKeys(n).filter((o) => typeof n[n[o]] != "number"), s = {};
3791
+ for (const o of r)
3792
+ s[o] = n[o];
2790
3793
  return a.objectValues(s);
2791
- }, a.objectValues = (r) => a.objectKeys(r).map(function(i) {
2792
- return r[i];
2793
- }), a.objectKeys = typeof Object.keys == "function" ? (r) => Object.keys(r) : (r) => {
2794
- const i = [];
2795
- for (const s in r)
2796
- Object.prototype.hasOwnProperty.call(r, s) && i.push(s);
2797
- return i;
2798
- }, a.find = (r, i) => {
2799
- for (const s of r)
2800
- if (i(s))
3794
+ }, a.objectValues = (n) => a.objectKeys(n).map(function(r) {
3795
+ return n[r];
3796
+ }), a.objectKeys = typeof Object.keys == "function" ? (n) => Object.keys(n) : (n) => {
3797
+ const r = [];
3798
+ for (const s in n)
3799
+ Object.prototype.hasOwnProperty.call(n, s) && r.push(s);
3800
+ return r;
3801
+ }, a.find = (n, r) => {
3802
+ for (const s of n)
3803
+ if (r(s))
2801
3804
  return s;
2802
- }, a.isInteger = typeof Number.isInteger == "function" ? (r) => Number.isInteger(r) : (r) => typeof r == "number" && isFinite(r) && Math.floor(r) === r;
2803
- function n(r, i = " | ") {
2804
- return r.map((s) => typeof s == "string" ? `'${s}'` : s).join(i);
3805
+ }, a.isInteger = typeof Number.isInteger == "function" ? (n) => Number.isInteger(n) : (n) => typeof n == "number" && isFinite(n) && Math.floor(n) === n;
3806
+ function i(n, r = " | ") {
3807
+ return n.map((s) => typeof s == "string" ? `'${s}'` : s).join(r);
2805
3808
  }
2806
- a.joinValues = n, a.jsonStringifyReplacer = (r, i) => typeof i == "bigint" ? i.toString() : i;
3809
+ a.joinValues = i, a.jsonStringifyReplacer = (n, r) => typeof r == "bigint" ? r.toString() : r;
2807
3810
  })(b || (b = {}));
2808
3811
  var be;
2809
3812
  (function(a) {
@@ -2813,7 +3816,7 @@ var be;
2813
3816
  // second overwrites first
2814
3817
  });
2815
3818
  })(be || (be = {}));
2816
- const u = b.arrayToEnum([
3819
+ const l = b.arrayToEnum([
2817
3820
  "string",
2818
3821
  "nan",
2819
3822
  "number",
@@ -2837,23 +3840,23 @@ const u = b.arrayToEnum([
2837
3840
  ]), j = (a) => {
2838
3841
  switch (typeof a) {
2839
3842
  case "undefined":
2840
- return u.undefined;
3843
+ return l.undefined;
2841
3844
  case "string":
2842
- return u.string;
3845
+ return l.string;
2843
3846
  case "number":
2844
- return isNaN(a) ? u.nan : u.number;
3847
+ return isNaN(a) ? l.nan : l.number;
2845
3848
  case "boolean":
2846
- return u.boolean;
3849
+ return l.boolean;
2847
3850
  case "function":
2848
- return u.function;
3851
+ return l.function;
2849
3852
  case "bigint":
2850
- return u.bigint;
3853
+ return l.bigint;
2851
3854
  case "symbol":
2852
- return u.symbol;
3855
+ return l.symbol;
2853
3856
  case "object":
2854
- return Array.isArray(a) ? u.array : a === null ? u.null : a.then && typeof a.then == "function" && a.catch && typeof a.catch == "function" ? u.promise : typeof Map < "u" && a instanceof Map ? u.map : typeof Set < "u" && a instanceof Set ? u.set : typeof Date < "u" && a instanceof Date ? u.date : u.object;
3857
+ 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;
2855
3858
  default:
2856
- return u.unknown;
3859
+ return l.unknown;
2857
3860
  }
2858
3861
  }, c = b.arrayToEnum([
2859
3862
  "invalid_type",
@@ -2872,13 +3875,13 @@ const u = b.arrayToEnum([
2872
3875
  "invalid_intersection_types",
2873
3876
  "not_multiple_of",
2874
3877
  "not_finite"
2875
- ]), Ge = (a) => JSON.stringify(a, null, 2).replace(/"([^"]+)":/g, "$1:");
3878
+ ]), Fe = (a) => JSON.stringify(a, null, 2).replace(/"([^"]+)":/g, "$1:");
2876
3879
  class E extends Error {
2877
3880
  constructor(e) {
2878
- super(), this.issues = [], this.addIssue = (n) => {
2879
- this.issues = [...this.issues, n];
2880
- }, this.addIssues = (n = []) => {
2881
- this.issues = [...this.issues, ...n];
3881
+ super(), this.issues = [], this.addIssue = (i) => {
3882
+ this.issues = [...this.issues, i];
3883
+ }, this.addIssues = (i = []) => {
3884
+ this.issues = [...this.issues, ...i];
2882
3885
  };
2883
3886
  const t = new.target.prototype;
2884
3887
  Object.setPrototypeOf ? Object.setPrototypeOf(this, t) : this.__proto__ = t, this.name = "ZodError", this.issues = e;
@@ -2887,27 +3890,27 @@ class E extends Error {
2887
3890
  return this.issues;
2888
3891
  }
2889
3892
  format(e) {
2890
- const t = e || function(i) {
2891
- return i.message;
2892
- }, n = { _errors: [] }, r = (i) => {
2893
- for (const s of i.issues)
3893
+ const t = e || function(r) {
3894
+ return r.message;
3895
+ }, i = { _errors: [] }, n = (r) => {
3896
+ for (const s of r.issues)
2894
3897
  if (s.code === "invalid_union")
2895
- s.unionErrors.map(r);
3898
+ s.unionErrors.map(n);
2896
3899
  else if (s.code === "invalid_return_type")
2897
- r(s.returnTypeError);
3900
+ n(s.returnTypeError);
2898
3901
  else if (s.code === "invalid_arguments")
2899
- r(s.argumentsError);
3902
+ n(s.argumentsError);
2900
3903
  else if (s.path.length === 0)
2901
- n._errors.push(t(s));
3904
+ i._errors.push(t(s));
2902
3905
  else {
2903
- let o = n, m = 0;
3906
+ let o = i, m = 0;
2904
3907
  for (; m < s.path.length; ) {
2905
3908
  const d = s.path[m];
2906
3909
  m === s.path.length - 1 ? (o[d] = o[d] || { _errors: [] }, o[d]._errors.push(t(s))) : o[d] = o[d] || { _errors: [] }, o = o[d], m++;
2907
3910
  }
2908
3911
  }
2909
3912
  };
2910
- return r(this), n;
3913
+ return n(this), i;
2911
3914
  }
2912
3915
  toString() {
2913
3916
  return this.message;
@@ -2919,10 +3922,10 @@ class E extends Error {
2919
3922
  return this.issues.length === 0;
2920
3923
  }
2921
3924
  flatten(e = (t) => t.message) {
2922
- const t = {}, n = [];
2923
- for (const r of this.issues)
2924
- r.path.length > 0 ? (t[r.path[0]] = t[r.path[0]] || [], t[r.path[0]].push(e(r))) : n.push(e(r));
2925
- return { formErrors: n, fieldErrors: t };
3925
+ const t = {}, i = [];
3926
+ for (const n of this.issues)
3927
+ n.path.length > 0 ? (t[n.path[0]] = t[n.path[0]] || [], t[n.path[0]].push(e(n))) : i.push(e(n));
3928
+ return { formErrors: i, fieldErrors: t };
2926
3929
  }
2927
3930
  get formErrors() {
2928
3931
  return this.flatten();
@@ -2933,7 +3936,7 @@ const F = (a, e) => {
2933
3936
  let t;
2934
3937
  switch (a.code) {
2935
3938
  case c.invalid_type:
2936
- a.received === u.undefined ? t = "Required" : t = `Expected ${a.expected}, received ${a.received}`;
3939
+ a.received === l.undefined ? t = "Required" : t = `Expected ${a.expected}, received ${a.received}`;
2937
3940
  break;
2938
3941
  case c.invalid_literal:
2939
3942
  t = `Invalid literal value, expected ${JSON.stringify(a.expected, b.jsonStringifyReplacer)}`;
@@ -2985,29 +3988,29 @@ const F = (a, e) => {
2985
3988
  }
2986
3989
  return { message: t };
2987
3990
  };
2988
- let ke = F;
2989
- function ze(a) {
2990
- ke = a;
3991
+ let Re = F;
3992
+ function He(a) {
3993
+ Re = a;
2991
3994
  }
2992
3995
  function ce() {
2993
- return ke;
3996
+ return Re;
2994
3997
  }
2995
3998
  const de = (a) => {
2996
- const { data: e, path: t, errorMaps: n, issueData: r } = a, i = [...t, ...r.path || []], s = {
2997
- ...r,
2998
- path: i
3999
+ const { data: e, path: t, errorMaps: i, issueData: n } = a, r = [...t, ...n.path || []], s = {
4000
+ ...n,
4001
+ path: r
2999
4002
  };
3000
4003
  let o = "";
3001
- const m = n.filter((d) => !!d).slice().reverse();
4004
+ const m = i.filter((d) => !!d).slice().reverse();
3002
4005
  for (const d of m)
3003
4006
  o = d(s, { data: e, defaultError: o }).message;
3004
4007
  return {
3005
- ...r,
3006
- path: i,
3007
- message: r.message || o
4008
+ ...n,
4009
+ path: r,
4010
+ message: n.message || o
3008
4011
  };
3009
- }, We = [];
3010
- function l(a, e) {
4012
+ }, Je = [];
4013
+ function u(a, e) {
3011
4014
  const t = de({
3012
4015
  issueData: e,
3013
4016
  data: a.data,
@@ -3018,7 +4021,7 @@ function l(a, e) {
3018
4021
  ce(),
3019
4022
  F
3020
4023
  // then global default map
3021
- ].filter((n) => !!n)
4024
+ ].filter((i) => !!i)
3022
4025
  });
3023
4026
  a.common.issues.push(t);
3024
4027
  }
@@ -3033,44 +4036,44 @@ class T {
3033
4036
  this.value !== "aborted" && (this.value = "aborted");
3034
4037
  }
3035
4038
  static mergeArray(e, t) {
3036
- const n = [];
3037
- for (const r of t) {
3038
- if (r.status === "aborted")
4039
+ const i = [];
4040
+ for (const n of t) {
4041
+ if (n.status === "aborted")
3039
4042
  return h;
3040
- r.status === "dirty" && e.dirty(), n.push(r.value);
4043
+ n.status === "dirty" && e.dirty(), i.push(n.value);
3041
4044
  }
3042
- return { status: e.value, value: n };
4045
+ return { status: e.value, value: i };
3043
4046
  }
3044
4047
  static async mergeObjectAsync(e, t) {
3045
- const n = [];
3046
- for (const r of t)
3047
- n.push({
3048
- key: await r.key,
3049
- value: await r.value
4048
+ const i = [];
4049
+ for (const n of t)
4050
+ i.push({
4051
+ key: await n.key,
4052
+ value: await n.value
3050
4053
  });
3051
- return T.mergeObjectSync(e, n);
4054
+ return T.mergeObjectSync(e, i);
3052
4055
  }
3053
4056
  static mergeObjectSync(e, t) {
3054
- const n = {};
3055
- for (const r of t) {
3056
- const { key: i, value: s } = r;
3057
- if (i.status === "aborted" || s.status === "aborted")
4057
+ const i = {};
4058
+ for (const n of t) {
4059
+ const { key: r, value: s } = n;
4060
+ if (r.status === "aborted" || s.status === "aborted")
3058
4061
  return h;
3059
- i.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), i.value !== "__proto__" && (typeof s.value < "u" || r.alwaysSet) && (n[i.value] = s.value);
4062
+ r.status === "dirty" && e.dirty(), s.status === "dirty" && e.dirty(), r.value !== "__proto__" && (typeof s.value < "u" || n.alwaysSet) && (i[r.value] = s.value);
3060
4063
  }
3061
- return { status: e.value, value: n };
4064
+ return { status: e.value, value: i };
3062
4065
  }
3063
4066
  }
3064
4067
  const h = Object.freeze({
3065
4068
  status: "aborted"
3066
- }), Se = (a) => ({ status: "dirty", value: a }), C = (a) => ({ status: "valid", value: a }), xe = (a) => a.status === "aborted", we = (a) => a.status === "dirty", H = (a) => a.status === "valid", ue = (a) => typeof Promise < "u" && a instanceof Promise;
4069
+ }), Se = (a) => ({ status: "dirty", value: a }), C = (a) => ({ status: "valid", value: a }), xe = (a) => a.status === "aborted", we = (a) => a.status === "dirty", H = (a) => a.status === "valid", le = (a) => typeof Promise < "u" && a instanceof Promise;
3067
4070
  var p;
3068
4071
  (function(a) {
3069
4072
  a.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, a.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
3070
4073
  })(p || (p = {}));
3071
4074
  class N {
3072
- constructor(e, t, n, r) {
3073
- this._cachedPath = [], this.parent = e, this.data = t, this._path = n, this._key = r;
4075
+ constructor(e, t, i, n) {
4076
+ this._cachedPath = [], this.parent = e, this.data = t, this._path = i, this._key = n;
3074
4077
  }
3075
4078
  get path() {
3076
4079
  return this._cachedPath.length || (this._key instanceof Array ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
@@ -3091,13 +4094,13 @@ const Ce = (a, e) => {
3091
4094
  }
3092
4095
  };
3093
4096
  };
3094
- function _(a) {
4097
+ function g(a) {
3095
4098
  if (!a)
3096
4099
  return {};
3097
- const { errorMap: e, invalid_type_error: t, required_error: n, description: r } = a;
3098
- if (e && (t || n))
4100
+ const { errorMap: e, invalid_type_error: t, required_error: i, description: n } = a;
4101
+ if (e && (t || i))
3099
4102
  throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);
3100
- return e ? { errorMap: e, description: r } : { errorMap: (s, o) => s.code !== "invalid_type" ? { message: o.defaultError } : typeof o.data > "u" ? { message: n ?? o.defaultError } : { message: t ?? o.defaultError }, description: r };
4103
+ return e ? { errorMap: e, description: n } : { errorMap: (s, o) => s.code !== "invalid_type" ? { message: o.defaultError } : typeof o.data > "u" ? { message: i ?? o.defaultError } : { message: t ?? o.defaultError }, description: n };
3101
4104
  }
3102
4105
  class v {
3103
4106
  constructor(e) {
@@ -3134,7 +4137,7 @@ class v {
3134
4137
  }
3135
4138
  _parseSync(e) {
3136
4139
  const t = this._parse(e);
3137
- if (ue(t))
4140
+ if (le(t))
3138
4141
  throw new Error("Synchronous parse encountered promise.");
3139
4142
  return t;
3140
4143
  }
@@ -3143,17 +4146,17 @@ class v {
3143
4146
  return Promise.resolve(t);
3144
4147
  }
3145
4148
  parse(e, t) {
3146
- const n = this.safeParse(e, t);
3147
- if (n.success)
3148
- return n.data;
3149
- throw n.error;
4149
+ const i = this.safeParse(e, t);
4150
+ if (i.success)
4151
+ return i.data;
4152
+ throw i.error;
3150
4153
  }
3151
4154
  safeParse(e, t) {
3152
- var n;
3153
- const r = {
4155
+ var i;
4156
+ const n = {
3154
4157
  common: {
3155
4158
  issues: [],
3156
- async: (n = t == null ? void 0 : t.async) !== null && n !== void 0 ? n : !1,
4159
+ async: (i = t == null ? void 0 : t.async) !== null && i !== void 0 ? i : !1,
3157
4160
  contextualErrorMap: t == null ? void 0 : t.errorMap
3158
4161
  },
3159
4162
  path: (t == null ? void 0 : t.path) || [],
@@ -3161,17 +4164,17 @@ class v {
3161
4164
  parent: null,
3162
4165
  data: e,
3163
4166
  parsedType: j(e)
3164
- }, i = this._parseSync({ data: e, path: r.path, parent: r });
3165
- return Ce(r, i);
4167
+ }, r = this._parseSync({ data: e, path: n.path, parent: n });
4168
+ return Ce(n, r);
3166
4169
  }
3167
4170
  async parseAsync(e, t) {
3168
- const n = await this.safeParseAsync(e, t);
3169
- if (n.success)
3170
- return n.data;
3171
- throw n.error;
4171
+ const i = await this.safeParseAsync(e, t);
4172
+ if (i.success)
4173
+ return i.data;
4174
+ throw i.error;
3172
4175
  }
3173
4176
  async safeParseAsync(e, t) {
3174
- const n = {
4177
+ const i = {
3175
4178
  common: {
3176
4179
  issues: [],
3177
4180
  contextualErrorMap: t == null ? void 0 : t.errorMap,
@@ -3182,21 +4185,21 @@ class v {
3182
4185
  parent: null,
3183
4186
  data: e,
3184
4187
  parsedType: j(e)
3185
- }, r = this._parse({ data: e, path: n.path, parent: n }), i = await (ue(r) ? r : Promise.resolve(r));
3186
- return Ce(n, i);
4188
+ }, n = this._parse({ data: e, path: i.path, parent: i }), r = await (le(n) ? n : Promise.resolve(n));
4189
+ return Ce(i, r);
3187
4190
  }
3188
4191
  refine(e, t) {
3189
- const n = (r) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(r) : t;
3190
- return this._refinement((r, i) => {
3191
- const s = e(r), o = () => i.addIssue({
4192
+ const i = (n) => typeof t == "string" || typeof t > "u" ? { message: t } : typeof t == "function" ? t(n) : t;
4193
+ return this._refinement((n, r) => {
4194
+ const s = e(n), o = () => r.addIssue({
3192
4195
  code: c.custom,
3193
- ...n(r)
4196
+ ...i(n)
3194
4197
  });
3195
4198
  return typeof Promise < "u" && s instanceof Promise ? s.then((m) => m ? !0 : (o(), !1)) : s ? !0 : (o(), !1);
3196
4199
  });
3197
4200
  }
3198
4201
  refinement(e, t) {
3199
- return this._refinement((n, r) => e(n) ? !0 : (r.addIssue(typeof t == "function" ? t(n, r) : t), !1));
4202
+ return this._refinement((i, n) => e(i) ? !0 : (n.addIssue(typeof t == "function" ? t(i, n) : t), !1));
3200
4203
  }
3201
4204
  _refinement(e) {
3202
4205
  return new I({
@@ -3209,7 +4212,7 @@ class v {
3209
4212
  return this._refinement(e);
3210
4213
  }
3211
4214
  optional() {
3212
- return P.create(this, this._def);
4215
+ return M.create(this, this._def);
3213
4216
  }
3214
4217
  nullable() {
3215
4218
  return q.create(this, this._def);
@@ -3231,7 +4234,7 @@ class v {
3231
4234
  }
3232
4235
  transform(e) {
3233
4236
  return new I({
3234
- ..._(this._def),
4237
+ ...g(this._def),
3235
4238
  schema: this,
3236
4239
  typeName: f.ZodEffects,
3237
4240
  effect: { type: "transform", transform: e }
@@ -3239,8 +4242,8 @@ class v {
3239
4242
  }
3240
4243
  default(e) {
3241
4244
  const t = typeof e == "function" ? e : () => e;
3242
- return new ie({
3243
- ..._(this._def),
4245
+ return new re({
4246
+ ...g(this._def),
3244
4247
  innerType: this,
3245
4248
  defaultValue: t,
3246
4249
  typeName: f.ZodDefault
@@ -3250,13 +4253,13 @@ class v {
3250
4253
  return new Ee({
3251
4254
  typeName: f.ZodBranded,
3252
4255
  type: this,
3253
- ..._(this._def)
4256
+ ...g(this._def)
3254
4257
  });
3255
4258
  }
3256
4259
  catch(e) {
3257
4260
  const t = typeof e == "function" ? e : () => e;
3258
4261
  return new fe({
3259
- ..._(this._def),
4262
+ ...g(this._def),
3260
4263
  innerType: this,
3261
4264
  catchValue: t,
3262
4265
  typeName: f.ZodCatch
@@ -3273,7 +4276,7 @@ class v {
3273
4276
  return se.create(this, e);
3274
4277
  }
3275
4278
  readonly() {
3276
- return ge.create(this);
4279
+ return _e.create(this);
3277
4280
  }
3278
4281
  isOptional() {
3279
4282
  return this.safeParse(void 0).success;
@@ -3282,142 +4285,142 @@ class v {
3282
4285
  return this.safeParse(null).success;
3283
4286
  }
3284
4287
  }
3285
- const Ye = /^c[^\s-]{8,}$/i, Fe = /^[a-z][a-z0-9]*$/, He = /^[0-9A-HJKMNP-TV-Z]{26}$/, Je = /^[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, Xe = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ke = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
4288
+ const Xe = /^c[^\s-]{8,}$/i, Ke = /^[a-z][a-z0-9]*$/, Qe = /^[0-9A-HJKMNP-TV-Z]{26}$/, et = /^[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, tt = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, at = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
3286
4289
  let ye;
3287
- const Qe = /^(((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}))$/, et = /^(([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})))$/, tt = (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$");
3288
- function at(a, e) {
3289
- return !!((e === "v4" || !e) && Qe.test(a) || (e === "v6" || !e) && et.test(a));
4290
+ const it = /^(((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}))$/, nt = /^(([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})))$/, rt = (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$");
4291
+ function st(a, e) {
4292
+ return !!((e === "v4" || !e) && it.test(a) || (e === "v6" || !e) && nt.test(a));
3290
4293
  }
3291
4294
  class A extends v {
3292
4295
  _parse(e) {
3293
- if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== u.string) {
3294
- const i = this._getOrReturnCtx(e);
3295
- return l(
3296
- i,
4296
+ if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== l.string) {
4297
+ const r = this._getOrReturnCtx(e);
4298
+ return u(
4299
+ r,
3297
4300
  {
3298
4301
  code: c.invalid_type,
3299
- expected: u.string,
3300
- received: i.parsedType
4302
+ expected: l.string,
4303
+ received: r.parsedType
3301
4304
  }
3302
4305
  //
3303
4306
  ), h;
3304
4307
  }
3305
- const n = new T();
3306
- let r;
3307
- for (const i of this._def.checks)
3308
- if (i.kind === "min")
3309
- e.data.length < i.value && (r = this._getOrReturnCtx(e, r), l(r, {
4308
+ const i = new T();
4309
+ let n;
4310
+ for (const r of this._def.checks)
4311
+ if (r.kind === "min")
4312
+ e.data.length < r.value && (n = this._getOrReturnCtx(e, n), u(n, {
3310
4313
  code: c.too_small,
3311
- minimum: i.value,
4314
+ minimum: r.value,
3312
4315
  type: "string",
3313
4316
  inclusive: !0,
3314
4317
  exact: !1,
3315
- message: i.message
3316
- }), n.dirty());
3317
- else if (i.kind === "max")
3318
- e.data.length > i.value && (r = this._getOrReturnCtx(e, r), l(r, {
4318
+ message: r.message
4319
+ }), i.dirty());
4320
+ else if (r.kind === "max")
4321
+ e.data.length > r.value && (n = this._getOrReturnCtx(e, n), u(n, {
3319
4322
  code: c.too_big,
3320
- maximum: i.value,
4323
+ maximum: r.value,
3321
4324
  type: "string",
3322
4325
  inclusive: !0,
3323
4326
  exact: !1,
3324
- message: i.message
3325
- }), n.dirty());
3326
- else if (i.kind === "length") {
3327
- const s = e.data.length > i.value, o = e.data.length < i.value;
3328
- (s || o) && (r = this._getOrReturnCtx(e, r), s ? l(r, {
4327
+ message: r.message
4328
+ }), i.dirty());
4329
+ else if (r.kind === "length") {
4330
+ const s = e.data.length > r.value, o = e.data.length < r.value;
4331
+ (s || o) && (n = this._getOrReturnCtx(e, n), s ? u(n, {
3329
4332
  code: c.too_big,
3330
- maximum: i.value,
4333
+ maximum: r.value,
3331
4334
  type: "string",
3332
4335
  inclusive: !0,
3333
4336
  exact: !0,
3334
- message: i.message
3335
- }) : o && l(r, {
4337
+ message: r.message
4338
+ }) : o && u(n, {
3336
4339
  code: c.too_small,
3337
- minimum: i.value,
4340
+ minimum: r.value,
3338
4341
  type: "string",
3339
4342
  inclusive: !0,
3340
4343
  exact: !0,
3341
- message: i.message
3342
- }), n.dirty());
3343
- } else if (i.kind === "email")
3344
- Xe.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
4344
+ message: r.message
4345
+ }), i.dirty());
4346
+ } else if (r.kind === "email")
4347
+ tt.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
3345
4348
  validation: "email",
3346
4349
  code: c.invalid_string,
3347
- message: i.message
3348
- }), n.dirty());
3349
- else if (i.kind === "emoji")
3350
- ye || (ye = new RegExp(Ke, "u")), ye.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
4350
+ message: r.message
4351
+ }), i.dirty());
4352
+ else if (r.kind === "emoji")
4353
+ ye || (ye = new RegExp(at, "u")), ye.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
3351
4354
  validation: "emoji",
3352
4355
  code: c.invalid_string,
3353
- message: i.message
3354
- }), n.dirty());
3355
- else if (i.kind === "uuid")
3356
- Je.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
4356
+ message: r.message
4357
+ }), i.dirty());
4358
+ else if (r.kind === "uuid")
4359
+ et.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
3357
4360
  validation: "uuid",
3358
4361
  code: c.invalid_string,
3359
- message: i.message
3360
- }), n.dirty());
3361
- else if (i.kind === "cuid")
3362
- Ye.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
4362
+ message: r.message
4363
+ }), i.dirty());
4364
+ else if (r.kind === "cuid")
4365
+ Xe.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
3363
4366
  validation: "cuid",
3364
4367
  code: c.invalid_string,
3365
- message: i.message
3366
- }), n.dirty());
3367
- else if (i.kind === "cuid2")
3368
- Fe.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
4368
+ message: r.message
4369
+ }), i.dirty());
4370
+ else if (r.kind === "cuid2")
4371
+ Ke.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
3369
4372
  validation: "cuid2",
3370
4373
  code: c.invalid_string,
3371
- message: i.message
3372
- }), n.dirty());
3373
- else if (i.kind === "ulid")
3374
- He.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
4374
+ message: r.message
4375
+ }), i.dirty());
4376
+ else if (r.kind === "ulid")
4377
+ Qe.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
3375
4378
  validation: "ulid",
3376
4379
  code: c.invalid_string,
3377
- message: i.message
3378
- }), n.dirty());
3379
- else if (i.kind === "url")
4380
+ message: r.message
4381
+ }), i.dirty());
4382
+ else if (r.kind === "url")
3380
4383
  try {
3381
4384
  new URL(e.data);
3382
4385
  } catch {
3383
- r = this._getOrReturnCtx(e, r), l(r, {
4386
+ n = this._getOrReturnCtx(e, n), u(n, {
3384
4387
  validation: "url",
3385
4388
  code: c.invalid_string,
3386
- message: i.message
3387
- }), n.dirty();
4389
+ message: r.message
4390
+ }), i.dirty();
3388
4391
  }
3389
- else i.kind === "regex" ? (i.regex.lastIndex = 0, i.regex.test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
4392
+ else r.kind === "regex" ? (r.regex.lastIndex = 0, r.regex.test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
3390
4393
  validation: "regex",
3391
4394
  code: c.invalid_string,
3392
- message: i.message
3393
- }), n.dirty())) : i.kind === "trim" ? e.data = e.data.trim() : i.kind === "includes" ? e.data.includes(i.value, i.position) || (r = this._getOrReturnCtx(e, r), l(r, {
4395
+ message: r.message
4396
+ }), 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, {
3394
4397
  code: c.invalid_string,
3395
- validation: { includes: i.value, position: i.position },
3396
- message: i.message
3397
- }), n.dirty()) : i.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : i.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : i.kind === "startsWith" ? e.data.startsWith(i.value) || (r = this._getOrReturnCtx(e, r), l(r, {
4398
+ validation: { includes: r.value, position: r.position },
4399
+ message: r.message
4400
+ }), 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, {
3398
4401
  code: c.invalid_string,
3399
- validation: { startsWith: i.value },
3400
- message: i.message
3401
- }), n.dirty()) : i.kind === "endsWith" ? e.data.endsWith(i.value) || (r = this._getOrReturnCtx(e, r), l(r, {
4402
+ validation: { startsWith: r.value },
4403
+ message: r.message
4404
+ }), i.dirty()) : r.kind === "endsWith" ? e.data.endsWith(r.value) || (n = this._getOrReturnCtx(e, n), u(n, {
3402
4405
  code: c.invalid_string,
3403
- validation: { endsWith: i.value },
3404
- message: i.message
3405
- }), n.dirty()) : i.kind === "datetime" ? tt(i).test(e.data) || (r = this._getOrReturnCtx(e, r), l(r, {
4406
+ validation: { endsWith: r.value },
4407
+ message: r.message
4408
+ }), i.dirty()) : r.kind === "datetime" ? rt(r).test(e.data) || (n = this._getOrReturnCtx(e, n), u(n, {
3406
4409
  code: c.invalid_string,
3407
4410
  validation: "datetime",
3408
- message: i.message
3409
- }), n.dirty()) : i.kind === "ip" ? at(e.data, i.version) || (r = this._getOrReturnCtx(e, r), l(r, {
4411
+ message: r.message
4412
+ }), i.dirty()) : r.kind === "ip" ? st(e.data, r.version) || (n = this._getOrReturnCtx(e, n), u(n, {
3410
4413
  validation: "ip",
3411
4414
  code: c.invalid_string,
3412
- message: i.message
3413
- }), n.dirty()) : b.assertNever(i);
3414
- return { status: n.value, value: e.data };
4415
+ message: r.message
4416
+ }), i.dirty()) : b.assertNever(r);
4417
+ return { status: i.value, value: e.data };
3415
4418
  }
3416
- _regex(e, t, n) {
3417
- return this.refinement((r) => e.test(r), {
4419
+ _regex(e, t, i) {
4420
+ return this.refinement((n) => e.test(n), {
3418
4421
  validation: t,
3419
4422
  code: c.invalid_string,
3420
- ...p.errToObj(n)
4423
+ ...p.errToObj(i)
3421
4424
  });
3422
4425
  }
3423
4426
  _addCheck(e) {
@@ -3585,57 +4588,57 @@ A.create = (a) => {
3585
4588
  checks: [],
3586
4589
  typeName: f.ZodString,
3587
4590
  coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
3588
- ..._(a)
4591
+ ...g(a)
3589
4592
  });
3590
4593
  };
3591
- function nt(a, e) {
3592
- const t = (a.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, r = t > n ? t : n, i = parseInt(a.toFixed(r).replace(".", "")), s = parseInt(e.toFixed(r).replace(".", ""));
3593
- return i % s / Math.pow(10, r);
4594
+ function ot(a, e) {
4595
+ const t = (a.toString().split(".")[1] || "").length, i = (e.toString().split(".")[1] || "").length, n = t > i ? t : i, r = parseInt(a.toFixed(n).replace(".", "")), s = parseInt(e.toFixed(n).replace(".", ""));
4596
+ return r % s / Math.pow(10, n);
3594
4597
  }
3595
4598
  class D extends v {
3596
4599
  constructor() {
3597
4600
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
3598
4601
  }
3599
4602
  _parse(e) {
3600
- if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== u.number) {
3601
- const i = this._getOrReturnCtx(e);
3602
- return l(i, {
4603
+ if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== l.number) {
4604
+ const r = this._getOrReturnCtx(e);
4605
+ return u(r, {
3603
4606
  code: c.invalid_type,
3604
- expected: u.number,
3605
- received: i.parsedType
4607
+ expected: l.number,
4608
+ received: r.parsedType
3606
4609
  }), h;
3607
4610
  }
3608
- let n;
3609
- const r = new T();
3610
- for (const i of this._def.checks)
3611
- i.kind === "int" ? b.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), l(n, {
4611
+ let i;
4612
+ const n = new T();
4613
+ for (const r of this._def.checks)
4614
+ r.kind === "int" ? b.isInteger(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
3612
4615
  code: c.invalid_type,
3613
4616
  expected: "integer",
3614
4617
  received: "float",
3615
- message: i.message
3616
- }), r.dirty()) : i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (n = this._getOrReturnCtx(e, n), l(n, {
4618
+ message: r.message
4619
+ }), n.dirty()) : r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
3617
4620
  code: c.too_small,
3618
- minimum: i.value,
4621
+ minimum: r.value,
3619
4622
  type: "number",
3620
- inclusive: i.inclusive,
4623
+ inclusive: r.inclusive,
3621
4624
  exact: !1,
3622
- message: i.message
3623
- }), r.dirty()) : i.kind === "max" ? (i.inclusive ? e.data > i.value : e.data >= i.value) && (n = this._getOrReturnCtx(e, n), l(n, {
4625
+ message: r.message
4626
+ }), n.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
3624
4627
  code: c.too_big,
3625
- maximum: i.value,
4628
+ maximum: r.value,
3626
4629
  type: "number",
3627
- inclusive: i.inclusive,
4630
+ inclusive: r.inclusive,
3628
4631
  exact: !1,
3629
- message: i.message
3630
- }), r.dirty()) : i.kind === "multipleOf" ? nt(e.data, i.value) !== 0 && (n = this._getOrReturnCtx(e, n), l(n, {
4632
+ message: r.message
4633
+ }), n.dirty()) : r.kind === "multipleOf" ? ot(e.data, r.value) !== 0 && (i = this._getOrReturnCtx(e, i), u(i, {
3631
4634
  code: c.not_multiple_of,
3632
- multipleOf: i.value,
3633
- message: i.message
3634
- }), r.dirty()) : i.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), l(n, {
4635
+ multipleOf: r.value,
4636
+ message: r.message
4637
+ }), n.dirty()) : r.kind === "finite" ? Number.isFinite(e.data) || (i = this._getOrReturnCtx(e, i), u(i, {
3635
4638
  code: c.not_finite,
3636
- message: i.message
3637
- }), r.dirty()) : b.assertNever(i);
3638
- return { status: r.value, value: e.data };
4639
+ message: r.message
4640
+ }), n.dirty()) : b.assertNever(r);
4641
+ return { status: n.value, value: e.data };
3639
4642
  }
3640
4643
  gte(e, t) {
3641
4644
  return this.setLimit("min", e, !0, p.toString(t));
@@ -3649,7 +4652,7 @@ class D extends v {
3649
4652
  lt(e, t) {
3650
4653
  return this.setLimit("max", e, !1, p.toString(t));
3651
4654
  }
3652
- setLimit(e, t, n, r) {
4655
+ setLimit(e, t, i, n) {
3653
4656
  return new D({
3654
4657
  ...this._def,
3655
4658
  checks: [
@@ -3657,8 +4660,8 @@ class D extends v {
3657
4660
  {
3658
4661
  kind: e,
3659
4662
  value: t,
3660
- inclusive: n,
3661
- message: p.toString(r)
4663
+ inclusive: i,
4664
+ message: p.toString(n)
3662
4665
  }
3663
4666
  ]
3664
4667
  });
@@ -3750,10 +4753,10 @@ class D extends v {
3750
4753
  }
3751
4754
  get isFinite() {
3752
4755
  let e = null, t = null;
3753
- for (const n of this._def.checks) {
3754
- if (n.kind === "finite" || n.kind === "int" || n.kind === "multipleOf")
4756
+ for (const i of this._def.checks) {
4757
+ if (i.kind === "finite" || i.kind === "int" || i.kind === "multipleOf")
3755
4758
  return !0;
3756
- n.kind === "min" ? (t === null || n.value > t) && (t = n.value) : n.kind === "max" && (e === null || n.value < e) && (e = n.value);
4759
+ i.kind === "min" ? (t === null || i.value > t) && (t = i.value) : i.kind === "max" && (e === null || i.value < e) && (e = i.value);
3757
4760
  }
3758
4761
  return Number.isFinite(t) && Number.isFinite(e);
3759
4762
  }
@@ -3762,42 +4765,42 @@ D.create = (a) => new D({
3762
4765
  checks: [],
3763
4766
  typeName: f.ZodNumber,
3764
4767
  coerce: (a == null ? void 0 : a.coerce) || !1,
3765
- ..._(a)
4768
+ ...g(a)
3766
4769
  });
3767
4770
  class Z extends v {
3768
4771
  constructor() {
3769
4772
  super(...arguments), this.min = this.gte, this.max = this.lte;
3770
4773
  }
3771
4774
  _parse(e) {
3772
- if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !== u.bigint) {
3773
- const i = this._getOrReturnCtx(e);
3774
- return l(i, {
4775
+ if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !== l.bigint) {
4776
+ const r = this._getOrReturnCtx(e);
4777
+ return u(r, {
3775
4778
  code: c.invalid_type,
3776
- expected: u.bigint,
3777
- received: i.parsedType
4779
+ expected: l.bigint,
4780
+ received: r.parsedType
3778
4781
  }), h;
3779
4782
  }
3780
- let n;
3781
- const r = new T();
3782
- for (const i of this._def.checks)
3783
- i.kind === "min" ? (i.inclusive ? e.data < i.value : e.data <= i.value) && (n = this._getOrReturnCtx(e, n), l(n, {
4783
+ let i;
4784
+ const n = new T();
4785
+ for (const r of this._def.checks)
4786
+ r.kind === "min" ? (r.inclusive ? e.data < r.value : e.data <= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
3784
4787
  code: c.too_small,
3785
4788
  type: "bigint",
3786
- minimum: i.value,
3787
- inclusive: i.inclusive,
3788
- message: i.message
3789
- }), r.dirty()) : i.kind === "max" ? (i.inclusive ? e.data > i.value : e.data >= i.value) && (n = this._getOrReturnCtx(e, n), l(n, {
4789
+ minimum: r.value,
4790
+ inclusive: r.inclusive,
4791
+ message: r.message
4792
+ }), n.dirty()) : r.kind === "max" ? (r.inclusive ? e.data > r.value : e.data >= r.value) && (i = this._getOrReturnCtx(e, i), u(i, {
3790
4793
  code: c.too_big,
3791
4794
  type: "bigint",
3792
- maximum: i.value,
3793
- inclusive: i.inclusive,
3794
- message: i.message
3795
- }), r.dirty()) : i.kind === "multipleOf" ? e.data % i.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n), l(n, {
4795
+ maximum: r.value,
4796
+ inclusive: r.inclusive,
4797
+ message: r.message
4798
+ }), n.dirty()) : r.kind === "multipleOf" ? e.data % r.value !== BigInt(0) && (i = this._getOrReturnCtx(e, i), u(i, {
3796
4799
  code: c.not_multiple_of,
3797
- multipleOf: i.value,
3798
- message: i.message
3799
- }), r.dirty()) : b.assertNever(i);
3800
- return { status: r.value, value: e.data };
4800
+ multipleOf: r.value,
4801
+ message: r.message
4802
+ }), n.dirty()) : b.assertNever(r);
4803
+ return { status: n.value, value: e.data };
3801
4804
  }
3802
4805
  gte(e, t) {
3803
4806
  return this.setLimit("min", e, !0, p.toString(t));
@@ -3811,7 +4814,7 @@ class Z extends v {
3811
4814
  lt(e, t) {
3812
4815
  return this.setLimit("max", e, !1, p.toString(t));
3813
4816
  }
3814
- setLimit(e, t, n, r) {
4817
+ setLimit(e, t, i, n) {
3815
4818
  return new Z({
3816
4819
  ...this._def,
3817
4820
  checks: [
@@ -3819,8 +4822,8 @@ class Z extends v {
3819
4822
  {
3820
4823
  kind: e,
3821
4824
  value: t,
3822
- inclusive: n,
3823
- message: p.toString(r)
4825
+ inclusive: i,
4826
+ message: p.toString(n)
3824
4827
  }
3825
4828
  ]
3826
4829
  });
@@ -3889,17 +4892,17 @@ Z.create = (a) => {
3889
4892
  checks: [],
3890
4893
  typeName: f.ZodBigInt,
3891
4894
  coerce: (e = a == null ? void 0 : a.coerce) !== null && e !== void 0 ? e : !1,
3892
- ..._(a)
4895
+ ...g(a)
3893
4896
  });
3894
4897
  };
3895
4898
  class J extends v {
3896
4899
  _parse(e) {
3897
- if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== u.boolean) {
3898
- const n = this._getOrReturnCtx(e);
3899
- return l(n, {
4900
+ if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== l.boolean) {
4901
+ const i = this._getOrReturnCtx(e);
4902
+ return u(i, {
3900
4903
  code: c.invalid_type,
3901
- expected: u.boolean,
3902
- received: n.parsedType
4904
+ expected: l.boolean,
4905
+ received: i.parsedType
3903
4906
  }), h;
3904
4907
  }
3905
4908
  return C(e.data);
@@ -3908,44 +4911,44 @@ class J extends v {
3908
4911
  J.create = (a) => new J({
3909
4912
  typeName: f.ZodBoolean,
3910
4913
  coerce: (a == null ? void 0 : a.coerce) || !1,
3911
- ..._(a)
4914
+ ...g(a)
3912
4915
  });
3913
4916
  class B extends v {
3914
4917
  _parse(e) {
3915
- if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== u.date) {
3916
- const i = this._getOrReturnCtx(e);
3917
- return l(i, {
4918
+ if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== l.date) {
4919
+ const r = this._getOrReturnCtx(e);
4920
+ return u(r, {
3918
4921
  code: c.invalid_type,
3919
- expected: u.date,
3920
- received: i.parsedType
4922
+ expected: l.date,
4923
+ received: r.parsedType
3921
4924
  }), h;
3922
4925
  }
3923
4926
  if (isNaN(e.data.getTime())) {
3924
- const i = this._getOrReturnCtx(e);
3925
- return l(i, {
4927
+ const r = this._getOrReturnCtx(e);
4928
+ return u(r, {
3926
4929
  code: c.invalid_date
3927
4930
  }), h;
3928
4931
  }
3929
- const n = new T();
3930
- let r;
3931
- for (const i of this._def.checks)
3932
- i.kind === "min" ? e.data.getTime() < i.value && (r = this._getOrReturnCtx(e, r), l(r, {
4932
+ const i = new T();
4933
+ let n;
4934
+ for (const r of this._def.checks)
4935
+ r.kind === "min" ? e.data.getTime() < r.value && (n = this._getOrReturnCtx(e, n), u(n, {
3933
4936
  code: c.too_small,
3934
- message: i.message,
4937
+ message: r.message,
3935
4938
  inclusive: !0,
3936
4939
  exact: !1,
3937
- minimum: i.value,
4940
+ minimum: r.value,
3938
4941
  type: "date"
3939
- }), n.dirty()) : i.kind === "max" ? e.data.getTime() > i.value && (r = this._getOrReturnCtx(e, r), l(r, {
4942
+ }), i.dirty()) : r.kind === "max" ? e.data.getTime() > r.value && (n = this._getOrReturnCtx(e, n), u(n, {
3940
4943
  code: c.too_big,
3941
- message: i.message,
4944
+ message: r.message,
3942
4945
  inclusive: !0,
3943
4946
  exact: !1,
3944
- maximum: i.value,
4947
+ maximum: r.value,
3945
4948
  type: "date"
3946
- }), n.dirty()) : b.assertNever(i);
4949
+ }), i.dirty()) : b.assertNever(r);
3947
4950
  return {
3948
- status: n.value,
4951
+ status: i.value,
3949
4952
  value: new Date(e.data.getTime())
3950
4953
  };
3951
4954
  }
@@ -3986,33 +4989,33 @@ B.create = (a) => new B({
3986
4989
  checks: [],
3987
4990
  coerce: (a == null ? void 0 : a.coerce) || !1,
3988
4991
  typeName: f.ZodDate,
3989
- ..._(a)
4992
+ ...g(a)
3990
4993
  });
3991
- class le extends v {
4994
+ class ue extends v {
3992
4995
  _parse(e) {
3993
- if (this._getType(e) !== u.symbol) {
3994
- const n = this._getOrReturnCtx(e);
3995
- return l(n, {
4996
+ if (this._getType(e) !== l.symbol) {
4997
+ const i = this._getOrReturnCtx(e);
4998
+ return u(i, {
3996
4999
  code: c.invalid_type,
3997
- expected: u.symbol,
3998
- received: n.parsedType
5000
+ expected: l.symbol,
5001
+ received: i.parsedType
3999
5002
  }), h;
4000
5003
  }
4001
5004
  return C(e.data);
4002
5005
  }
4003
5006
  }
4004
- le.create = (a) => new le({
5007
+ ue.create = (a) => new ue({
4005
5008
  typeName: f.ZodSymbol,
4006
- ..._(a)
5009
+ ...g(a)
4007
5010
  });
4008
5011
  class X extends v {
4009
5012
  _parse(e) {
4010
- if (this._getType(e) !== u.undefined) {
4011
- const n = this._getOrReturnCtx(e);
4012
- return l(n, {
5013
+ if (this._getType(e) !== l.undefined) {
5014
+ const i = this._getOrReturnCtx(e);
5015
+ return u(i, {
4013
5016
  code: c.invalid_type,
4014
- expected: u.undefined,
4015
- received: n.parsedType
5017
+ expected: l.undefined,
5018
+ received: i.parsedType
4016
5019
  }), h;
4017
5020
  }
4018
5021
  return C(e.data);
@@ -4020,16 +5023,16 @@ class X extends v {
4020
5023
  }
4021
5024
  X.create = (a) => new X({
4022
5025
  typeName: f.ZodUndefined,
4023
- ..._(a)
5026
+ ...g(a)
4024
5027
  });
4025
5028
  class K extends v {
4026
5029
  _parse(e) {
4027
- if (this._getType(e) !== u.null) {
4028
- const n = this._getOrReturnCtx(e);
4029
- return l(n, {
5030
+ if (this._getType(e) !== l.null) {
5031
+ const i = this._getOrReturnCtx(e);
5032
+ return u(i, {
4030
5033
  code: c.invalid_type,
4031
- expected: u.null,
4032
- received: n.parsedType
5034
+ expected: l.null,
5035
+ received: i.parsedType
4033
5036
  }), h;
4034
5037
  }
4035
5038
  return C(e.data);
@@ -4037,7 +5040,7 @@ class K extends v {
4037
5040
  }
4038
5041
  K.create = (a) => new K({
4039
5042
  typeName: f.ZodNull,
4040
- ..._(a)
5043
+ ...g(a)
4041
5044
  });
4042
5045
  class W extends v {
4043
5046
  constructor() {
@@ -4049,7 +5052,7 @@ class W extends v {
4049
5052
  }
4050
5053
  W.create = (a) => new W({
4051
5054
  typeName: f.ZodAny,
4052
- ..._(a)
5055
+ ...g(a)
4053
5056
  });
4054
5057
  class $ extends v {
4055
5058
  constructor() {
@@ -4061,30 +5064,30 @@ class $ extends v {
4061
5064
  }
4062
5065
  $.create = (a) => new $({
4063
5066
  typeName: f.ZodUnknown,
4064
- ..._(a)
5067
+ ...g(a)
4065
5068
  });
4066
5069
  class L extends v {
4067
5070
  _parse(e) {
4068
5071
  const t = this._getOrReturnCtx(e);
4069
- return l(t, {
5072
+ return u(t, {
4070
5073
  code: c.invalid_type,
4071
- expected: u.never,
5074
+ expected: l.never,
4072
5075
  received: t.parsedType
4073
5076
  }), h;
4074
5077
  }
4075
5078
  }
4076
5079
  L.create = (a) => new L({
4077
5080
  typeName: f.ZodNever,
4078
- ..._(a)
5081
+ ...g(a)
4079
5082
  });
4080
5083
  class me extends v {
4081
5084
  _parse(e) {
4082
- if (this._getType(e) !== u.undefined) {
4083
- const n = this._getOrReturnCtx(e);
4084
- return l(n, {
5085
+ if (this._getType(e) !== l.undefined) {
5086
+ const i = this._getOrReturnCtx(e);
5087
+ return u(i, {
4085
5088
  code: c.invalid_type,
4086
- expected: u.void,
4087
- received: n.parsedType
5089
+ expected: l.void,
5090
+ received: i.parsedType
4088
5091
  }), h;
4089
5092
  }
4090
5093
  return C(e.data);
@@ -4092,47 +5095,47 @@ class me extends v {
4092
5095
  }
4093
5096
  me.create = (a) => new me({
4094
5097
  typeName: f.ZodVoid,
4095
- ..._(a)
5098
+ ...g(a)
4096
5099
  });
4097
5100
  class O extends v {
4098
5101
  _parse(e) {
4099
- const { ctx: t, status: n } = this._processInputParams(e), r = this._def;
4100
- if (t.parsedType !== u.array)
4101
- return l(t, {
5102
+ const { ctx: t, status: i } = this._processInputParams(e), n = this._def;
5103
+ if (t.parsedType !== l.array)
5104
+ return u(t, {
4102
5105
  code: c.invalid_type,
4103
- expected: u.array,
5106
+ expected: l.array,
4104
5107
  received: t.parsedType
4105
5108
  }), h;
4106
- if (r.exactLength !== null) {
4107
- const s = t.data.length > r.exactLength.value, o = t.data.length < r.exactLength.value;
4108
- (s || o) && (l(t, {
5109
+ if (n.exactLength !== null) {
5110
+ const s = t.data.length > n.exactLength.value, o = t.data.length < n.exactLength.value;
5111
+ (s || o) && (u(t, {
4109
5112
  code: s ? c.too_big : c.too_small,
4110
- minimum: o ? r.exactLength.value : void 0,
4111
- maximum: s ? r.exactLength.value : void 0,
5113
+ minimum: o ? n.exactLength.value : void 0,
5114
+ maximum: s ? n.exactLength.value : void 0,
4112
5115
  type: "array",
4113
5116
  inclusive: !0,
4114
5117
  exact: !0,
4115
- message: r.exactLength.message
4116
- }), n.dirty());
5118
+ message: n.exactLength.message
5119
+ }), i.dirty());
4117
5120
  }
4118
- if (r.minLength !== null && t.data.length < r.minLength.value && (l(t, {
5121
+ if (n.minLength !== null && t.data.length < n.minLength.value && (u(t, {
4119
5122
  code: c.too_small,
4120
- minimum: r.minLength.value,
5123
+ minimum: n.minLength.value,
4121
5124
  type: "array",
4122
5125
  inclusive: !0,
4123
5126
  exact: !1,
4124
- message: r.minLength.message
4125
- }), n.dirty()), r.maxLength !== null && t.data.length > r.maxLength.value && (l(t, {
5127
+ message: n.minLength.message
5128
+ }), i.dirty()), n.maxLength !== null && t.data.length > n.maxLength.value && (u(t, {
4126
5129
  code: c.too_big,
4127
- maximum: r.maxLength.value,
5130
+ maximum: n.maxLength.value,
4128
5131
  type: "array",
4129
5132
  inclusive: !0,
4130
5133
  exact: !1,
4131
- message: r.maxLength.message
4132
- }), n.dirty()), t.common.async)
4133
- return Promise.all([...t.data].map((s, o) => r.type._parseAsync(new N(t, s, t.path, o)))).then((s) => T.mergeArray(n, s));
4134
- const i = [...t.data].map((s, o) => r.type._parseSync(new N(t, s, t.path, o)));
4135
- return T.mergeArray(n, i);
5134
+ message: n.maxLength.message
5135
+ }), i.dirty()), t.common.async)
5136
+ return Promise.all([...t.data].map((s, o) => n.type._parseAsync(new N(t, s, t.path, o)))).then((s) => T.mergeArray(i, s));
5137
+ const r = [...t.data].map((s, o) => n.type._parseSync(new N(t, s, t.path, o)));
5138
+ return T.mergeArray(i, r);
4136
5139
  }
4137
5140
  get element() {
4138
5141
  return this._def.type;
@@ -4165,14 +5168,14 @@ O.create = (a, e) => new O({
4165
5168
  maxLength: null,
4166
5169
  exactLength: null,
4167
5170
  typeName: f.ZodArray,
4168
- ..._(e)
5171
+ ...g(e)
4169
5172
  });
4170
5173
  function G(a) {
4171
5174
  if (a instanceof w) {
4172
5175
  const e = {};
4173
5176
  for (const t in a.shape) {
4174
- const n = a.shape[t];
4175
- e[t] = P.create(G(n));
5177
+ const i = a.shape[t];
5178
+ e[t] = M.create(G(i));
4176
5179
  }
4177
5180
  return new w({
4178
5181
  ...a._def,
@@ -4181,7 +5184,7 @@ function G(a) {
4181
5184
  } else return a instanceof O ? new O({
4182
5185
  ...a._def,
4183
5186
  type: G(a.element)
4184
- }) : a instanceof P ? P.create(G(a.unwrap())) : a instanceof q ? q.create(G(a.unwrap())) : a instanceof M ? M.create(a.items.map((e) => G(e))) : a;
5187
+ }) : a instanceof M ? M.create(G(a.unwrap())) : a instanceof q ? q.create(G(a.unwrap())) : a instanceof P ? P.create(a.items.map((e) => G(e))) : a;
4185
5188
  }
4186
5189
  class w extends v {
4187
5190
  constructor() {
@@ -4194,25 +5197,25 @@ class w extends v {
4194
5197
  return this._cached = { shape: e, keys: t };
4195
5198
  }
4196
5199
  _parse(e) {
4197
- if (this._getType(e) !== u.object) {
5200
+ if (this._getType(e) !== l.object) {
4198
5201
  const d = this._getOrReturnCtx(e);
4199
- return l(d, {
5202
+ return u(d, {
4200
5203
  code: c.invalid_type,
4201
- expected: u.object,
5204
+ expected: l.object,
4202
5205
  received: d.parsedType
4203
5206
  }), h;
4204
5207
  }
4205
- const { status: n, ctx: r } = this._processInputParams(e), { shape: i, keys: s } = this._getCached(), o = [];
5208
+ const { status: i, ctx: n } = this._processInputParams(e), { shape: r, keys: s } = this._getCached(), o = [];
4206
5209
  if (!(this._def.catchall instanceof L && this._def.unknownKeys === "strip"))
4207
- for (const d in r.data)
5210
+ for (const d in n.data)
4208
5211
  s.includes(d) || o.push(d);
4209
5212
  const m = [];
4210
5213
  for (const d of s) {
4211
- const y = i[d], S = r.data[d];
5214
+ const y = r[d], S = n.data[d];
4212
5215
  m.push({
4213
5216
  key: { status: "valid", value: d },
4214
- value: y._parse(new N(r, S, r.path, d)),
4215
- alwaysSet: d in r.data
5217
+ value: y._parse(new N(n, S, n.path, d)),
5218
+ alwaysSet: d in n.data
4216
5219
  });
4217
5220
  }
4218
5221
  if (this._def.catchall instanceof L) {
@@ -4221,29 +5224,29 @@ class w extends v {
4221
5224
  for (const y of o)
4222
5225
  m.push({
4223
5226
  key: { status: "valid", value: y },
4224
- value: { status: "valid", value: r.data[y] }
5227
+ value: { status: "valid", value: n.data[y] }
4225
5228
  });
4226
5229
  else if (d === "strict")
4227
- o.length > 0 && (l(r, {
5230
+ o.length > 0 && (u(n, {
4228
5231
  code: c.unrecognized_keys,
4229
5232
  keys: o
4230
- }), n.dirty());
5233
+ }), i.dirty());
4231
5234
  else if (d !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
4232
5235
  } else {
4233
5236
  const d = this._def.catchall;
4234
5237
  for (const y of o) {
4235
- const S = r.data[y];
5238
+ const S = n.data[y];
4236
5239
  m.push({
4237
5240
  key: { status: "valid", value: y },
4238
5241
  value: d._parse(
4239
- new N(r, S, r.path, y)
5242
+ new N(n, S, n.path, y)
4240
5243
  //, ctx.child(key), value, getParsedType(value)
4241
5244
  ),
4242
- alwaysSet: y in r.data
5245
+ alwaysSet: y in n.data
4243
5246
  });
4244
5247
  }
4245
5248
  }
4246
- return r.common.async ? Promise.resolve().then(async () => {
5249
+ return n.common.async ? Promise.resolve().then(async () => {
4247
5250
  const d = [];
4248
5251
  for (const y of m) {
4249
5252
  const S = await y.key;
@@ -4254,7 +5257,7 @@ class w extends v {
4254
5257
  });
4255
5258
  }
4256
5259
  return d;
4257
- }).then((d) => T.mergeObjectSync(n, d)) : T.mergeObjectSync(n, m);
5260
+ }).then((d) => T.mergeObjectSync(i, d)) : T.mergeObjectSync(i, m);
4258
5261
  }
4259
5262
  get shape() {
4260
5263
  return this._def.shape();
@@ -4264,9 +5267,9 @@ class w extends v {
4264
5267
  ...this._def,
4265
5268
  unknownKeys: "strict",
4266
5269
  ...e !== void 0 ? {
4267
- errorMap: (t, n) => {
4268
- var r, i, s, o;
4269
- const m = (s = (i = (r = this._def).errorMap) === null || i === void 0 ? void 0 : i.call(r, t, n).message) !== null && s !== void 0 ? s : n.defaultError;
5270
+ errorMap: (t, i) => {
5271
+ var n, r, s, o;
5272
+ const m = (s = (r = (n = this._def).errorMap) === null || r === void 0 ? void 0 : r.call(n, t, i).message) !== null && s !== void 0 ? s : i.defaultError;
4270
5273
  return t.code === "unrecognized_keys" ? {
4271
5274
  message: (o = p.errToObj(e).message) !== null && o !== void 0 ? o : m
4272
5275
  } : {
@@ -4397,8 +5400,8 @@ class w extends v {
4397
5400
  }
4398
5401
  pick(e) {
4399
5402
  const t = {};
4400
- return b.objectKeys(e).forEach((n) => {
4401
- e[n] && this.shape[n] && (t[n] = this.shape[n]);
5403
+ return b.objectKeys(e).forEach((i) => {
5404
+ e[i] && this.shape[i] && (t[i] = this.shape[i]);
4402
5405
  }), new w({
4403
5406
  ...this._def,
4404
5407
  shape: () => t
@@ -4406,8 +5409,8 @@ class w extends v {
4406
5409
  }
4407
5410
  omit(e) {
4408
5411
  const t = {};
4409
- return b.objectKeys(this.shape).forEach((n) => {
4410
- e[n] || (t[n] = this.shape[n]);
5412
+ return b.objectKeys(this.shape).forEach((i) => {
5413
+ e[i] || (t[i] = this.shape[i]);
4411
5414
  }), new w({
4412
5415
  ...this._def,
4413
5416
  shape: () => t
@@ -4421,9 +5424,9 @@ class w extends v {
4421
5424
  }
4422
5425
  partial(e) {
4423
5426
  const t = {};
4424
- return b.objectKeys(this.shape).forEach((n) => {
4425
- const r = this.shape[n];
4426
- e && !e[n] ? t[n] = r : t[n] = r.optional();
5427
+ return b.objectKeys(this.shape).forEach((i) => {
5428
+ const n = this.shape[i];
5429
+ e && !e[i] ? t[i] = n : t[i] = n.optional();
4427
5430
  }), new w({
4428
5431
  ...this._def,
4429
5432
  shape: () => t
@@ -4431,14 +5434,14 @@ class w extends v {
4431
5434
  }
4432
5435
  required(e) {
4433
5436
  const t = {};
4434
- return b.objectKeys(this.shape).forEach((n) => {
4435
- if (e && !e[n])
4436
- t[n] = this.shape[n];
5437
+ return b.objectKeys(this.shape).forEach((i) => {
5438
+ if (e && !e[i])
5439
+ t[i] = this.shape[i];
4437
5440
  else {
4438
- let i = this.shape[n];
4439
- for (; i instanceof P; )
4440
- i = i._def.innerType;
4441
- t[n] = i;
5441
+ let r = this.shape[i];
5442
+ for (; r instanceof M; )
5443
+ r = r._def.innerType;
5444
+ t[i] = r;
4442
5445
  }
4443
5446
  }), new w({
4444
5447
  ...this._def,
@@ -4454,40 +5457,40 @@ w.create = (a, e) => new w({
4454
5457
  unknownKeys: "strip",
4455
5458
  catchall: L.create(),
4456
5459
  typeName: f.ZodObject,
4457
- ..._(e)
5460
+ ...g(e)
4458
5461
  });
4459
5462
  w.strictCreate = (a, e) => new w({
4460
5463
  shape: () => a,
4461
5464
  unknownKeys: "strict",
4462
5465
  catchall: L.create(),
4463
5466
  typeName: f.ZodObject,
4464
- ..._(e)
5467
+ ...g(e)
4465
5468
  });
4466
5469
  w.lazycreate = (a, e) => new w({
4467
5470
  shape: a,
4468
5471
  unknownKeys: "strip",
4469
5472
  catchall: L.create(),
4470
5473
  typeName: f.ZodObject,
4471
- ..._(e)
5474
+ ...g(e)
4472
5475
  });
4473
5476
  class Q extends v {
4474
5477
  _parse(e) {
4475
- const { ctx: t } = this._processInputParams(e), n = this._def.options;
4476
- function r(i) {
4477
- for (const o of i)
5478
+ const { ctx: t } = this._processInputParams(e), i = this._def.options;
5479
+ function n(r) {
5480
+ for (const o of r)
4478
5481
  if (o.result.status === "valid")
4479
5482
  return o.result;
4480
- for (const o of i)
5483
+ for (const o of r)
4481
5484
  if (o.result.status === "dirty")
4482
5485
  return t.common.issues.push(...o.ctx.common.issues), o.result;
4483
- const s = i.map((o) => new E(o.ctx.common.issues));
4484
- return l(t, {
5486
+ const s = r.map((o) => new E(o.ctx.common.issues));
5487
+ return u(t, {
4485
5488
  code: c.invalid_union,
4486
5489
  unionErrors: s
4487
5490
  }), h;
4488
5491
  }
4489
5492
  if (t.common.async)
4490
- return Promise.all(n.map(async (i) => {
5493
+ return Promise.all(i.map(async (r) => {
4491
5494
  const s = {
4492
5495
  ...t,
4493
5496
  common: {
@@ -4497,18 +5500,18 @@ class Q extends v {
4497
5500
  parent: null
4498
5501
  };
4499
5502
  return {
4500
- result: await i._parseAsync({
5503
+ result: await r._parseAsync({
4501
5504
  data: t.data,
4502
5505
  path: t.path,
4503
5506
  parent: s
4504
5507
  }),
4505
5508
  ctx: s
4506
5509
  };
4507
- })).then(r);
5510
+ })).then(n);
4508
5511
  {
4509
- let i;
5512
+ let r;
4510
5513
  const s = [];
4511
- for (const m of n) {
5514
+ for (const m of i) {
4512
5515
  const d = {
4513
5516
  ...t,
4514
5517
  common: {
@@ -4523,12 +5526,12 @@ class Q extends v {
4523
5526
  });
4524
5527
  if (y.status === "valid")
4525
5528
  return y;
4526
- y.status === "dirty" && !i && (i = { result: y, ctx: d }), d.common.issues.length && s.push(d.common.issues);
5529
+ y.status === "dirty" && !r && (r = { result: y, ctx: d }), d.common.issues.length && s.push(d.common.issues);
4527
5530
  }
4528
- if (i)
4529
- return t.common.issues.push(...i.ctx.common.issues), i.result;
5531
+ if (r)
5532
+ return t.common.issues.push(...r.ctx.common.issues), r.result;
4530
5533
  const o = s.map((m) => new E(m));
4531
- return l(t, {
5534
+ return u(t, {
4532
5535
  code: c.invalid_union,
4533
5536
  unionErrors: o
4534
5537
  }), h;
@@ -4541,31 +5544,31 @@ class Q extends v {
4541
5544
  Q.create = (a, e) => new Q({
4542
5545
  options: a,
4543
5546
  typeName: f.ZodUnion,
4544
- ..._(e)
5547
+ ...g(e)
4545
5548
  });
4546
- const oe = (a) => a instanceof ae ? oe(a.schema) : a instanceof I ? oe(a.innerType()) : a instanceof ne ? [a.value] : a instanceof V ? a.options : a instanceof re ? Object.keys(a.enum) : a instanceof ie ? oe(a._def.innerType) : a instanceof X ? [void 0] : a instanceof K ? [null] : null;
4547
- class _e extends v {
5549
+ const oe = (a) => a instanceof ae ? oe(a.schema) : a instanceof I ? oe(a.innerType()) : a instanceof ie ? [a.value] : a instanceof V ? a.options : a instanceof ne ? Object.keys(a.enum) : a instanceof re ? oe(a._def.innerType) : a instanceof X ? [void 0] : a instanceof K ? [null] : null;
5550
+ class ge extends v {
4548
5551
  _parse(e) {
4549
5552
  const { ctx: t } = this._processInputParams(e);
4550
- if (t.parsedType !== u.object)
4551
- return l(t, {
5553
+ if (t.parsedType !== l.object)
5554
+ return u(t, {
4552
5555
  code: c.invalid_type,
4553
- expected: u.object,
5556
+ expected: l.object,
4554
5557
  received: t.parsedType
4555
5558
  }), h;
4556
- const n = this.discriminator, r = t.data[n], i = this.optionsMap.get(r);
4557
- return i ? t.common.async ? i._parseAsync({
5559
+ const i = this.discriminator, n = t.data[i], r = this.optionsMap.get(n);
5560
+ return r ? t.common.async ? r._parseAsync({
4558
5561
  data: t.data,
4559
5562
  path: t.path,
4560
5563
  parent: t
4561
- }) : i._parseSync({
5564
+ }) : r._parseSync({
4562
5565
  data: t.data,
4563
5566
  path: t.path,
4564
5567
  parent: t
4565
- }) : (l(t, {
5568
+ }) : (u(t, {
4566
5569
  code: c.invalid_union_discriminator,
4567
5570
  options: Array.from(this.optionsMap.keys()),
4568
- path: [n]
5571
+ path: [i]
4569
5572
  }), h);
4570
5573
  }
4571
5574
  get discriminator() {
@@ -4585,82 +5588,82 @@ class _e extends v {
4585
5588
  * @param types an array of object schemas
4586
5589
  * @param params
4587
5590
  */
4588
- static create(e, t, n) {
4589
- const r = /* @__PURE__ */ new Map();
4590
- for (const i of t) {
4591
- const s = oe(i.shape[e]);
5591
+ static create(e, t, i) {
5592
+ const n = /* @__PURE__ */ new Map();
5593
+ for (const r of t) {
5594
+ const s = oe(r.shape[e]);
4592
5595
  if (!s)
4593
5596
  throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
4594
5597
  for (const o of s) {
4595
- if (r.has(o))
5598
+ if (n.has(o))
4596
5599
  throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);
4597
- r.set(o, i);
5600
+ n.set(o, r);
4598
5601
  }
4599
5602
  }
4600
- return new _e({
5603
+ return new ge({
4601
5604
  typeName: f.ZodDiscriminatedUnion,
4602
5605
  discriminator: e,
4603
5606
  options: t,
4604
- optionsMap: r,
4605
- ..._(n)
5607
+ optionsMap: n,
5608
+ ...g(i)
4606
5609
  });
4607
5610
  }
4608
5611
  }
4609
5612
  function Te(a, e) {
4610
- const t = j(a), n = j(e);
5613
+ const t = j(a), i = j(e);
4611
5614
  if (a === e)
4612
5615
  return { valid: !0, data: a };
4613
- if (t === u.object && n === u.object) {
4614
- const r = b.objectKeys(e), i = b.objectKeys(a).filter((o) => r.indexOf(o) !== -1), s = { ...a, ...e };
4615
- for (const o of i) {
5616
+ if (t === l.object && i === l.object) {
5617
+ const n = b.objectKeys(e), r = b.objectKeys(a).filter((o) => n.indexOf(o) !== -1), s = { ...a, ...e };
5618
+ for (const o of r) {
4616
5619
  const m = Te(a[o], e[o]);
4617
5620
  if (!m.valid)
4618
5621
  return { valid: !1 };
4619
5622
  s[o] = m.data;
4620
5623
  }
4621
5624
  return { valid: !0, data: s };
4622
- } else if (t === u.array && n === u.array) {
5625
+ } else if (t === l.array && i === l.array) {
4623
5626
  if (a.length !== e.length)
4624
5627
  return { valid: !1 };
4625
- const r = [];
4626
- for (let i = 0; i < a.length; i++) {
4627
- const s = a[i], o = e[i], m = Te(s, o);
5628
+ const n = [];
5629
+ for (let r = 0; r < a.length; r++) {
5630
+ const s = a[r], o = e[r], m = Te(s, o);
4628
5631
  if (!m.valid)
4629
5632
  return { valid: !1 };
4630
- r.push(m.data);
5633
+ n.push(m.data);
4631
5634
  }
4632
- return { valid: !0, data: r };
4633
- } else return t === u.date && n === u.date && +a == +e ? { valid: !0, data: a } : { valid: !1 };
5635
+ return { valid: !0, data: n };
5636
+ } else return t === l.date && i === l.date && +a == +e ? { valid: !0, data: a } : { valid: !1 };
4634
5637
  }
4635
5638
  class ee extends v {
4636
5639
  _parse(e) {
4637
- const { status: t, ctx: n } = this._processInputParams(e), r = (i, s) => {
4638
- if (xe(i) || xe(s))
5640
+ const { status: t, ctx: i } = this._processInputParams(e), n = (r, s) => {
5641
+ if (xe(r) || xe(s))
4639
5642
  return h;
4640
- const o = Te(i.value, s.value);
4641
- return o.valid ? ((we(i) || we(s)) && t.dirty(), { status: t.value, value: o.data }) : (l(n, {
5643
+ const o = Te(r.value, s.value);
5644
+ return o.valid ? ((we(r) || we(s)) && t.dirty(), { status: t.value, value: o.data }) : (u(i, {
4642
5645
  code: c.invalid_intersection_types
4643
5646
  }), h);
4644
5647
  };
4645
- return n.common.async ? Promise.all([
5648
+ return i.common.async ? Promise.all([
4646
5649
  this._def.left._parseAsync({
4647
- data: n.data,
4648
- path: n.path,
4649
- parent: n
5650
+ data: i.data,
5651
+ path: i.path,
5652
+ parent: i
4650
5653
  }),
4651
5654
  this._def.right._parseAsync({
4652
- data: n.data,
4653
- path: n.path,
4654
- parent: n
5655
+ data: i.data,
5656
+ path: i.path,
5657
+ parent: i
4655
5658
  })
4656
- ]).then(([i, s]) => r(i, s)) : r(this._def.left._parseSync({
4657
- data: n.data,
4658
- path: n.path,
4659
- parent: n
5659
+ ]).then(([r, s]) => n(r, s)) : n(this._def.left._parseSync({
5660
+ data: i.data,
5661
+ path: i.path,
5662
+ parent: i
4660
5663
  }), this._def.right._parseSync({
4661
- data: n.data,
4662
- path: n.path,
4663
- parent: n
5664
+ data: i.data,
5665
+ path: i.path,
5666
+ parent: i
4664
5667
  }));
4665
5668
  }
4666
5669
  }
@@ -4668,56 +5671,56 @@ ee.create = (a, e, t) => new ee({
4668
5671
  left: a,
4669
5672
  right: e,
4670
5673
  typeName: f.ZodIntersection,
4671
- ..._(t)
5674
+ ...g(t)
4672
5675
  });
4673
- class M extends v {
5676
+ class P extends v {
4674
5677
  _parse(e) {
4675
- const { status: t, ctx: n } = this._processInputParams(e);
4676
- if (n.parsedType !== u.array)
4677
- return l(n, {
5678
+ const { status: t, ctx: i } = this._processInputParams(e);
5679
+ if (i.parsedType !== l.array)
5680
+ return u(i, {
4678
5681
  code: c.invalid_type,
4679
- expected: u.array,
4680
- received: n.parsedType
5682
+ expected: l.array,
5683
+ received: i.parsedType
4681
5684
  }), h;
4682
- if (n.data.length < this._def.items.length)
4683
- return l(n, {
5685
+ if (i.data.length < this._def.items.length)
5686
+ return u(i, {
4684
5687
  code: c.too_small,
4685
5688
  minimum: this._def.items.length,
4686
5689
  inclusive: !0,
4687
5690
  exact: !1,
4688
5691
  type: "array"
4689
5692
  }), h;
4690
- !this._def.rest && n.data.length > this._def.items.length && (l(n, {
5693
+ !this._def.rest && i.data.length > this._def.items.length && (u(i, {
4691
5694
  code: c.too_big,
4692
5695
  maximum: this._def.items.length,
4693
5696
  inclusive: !0,
4694
5697
  exact: !1,
4695
5698
  type: "array"
4696
5699
  }), t.dirty());
4697
- const i = [...n.data].map((s, o) => {
5700
+ const r = [...i.data].map((s, o) => {
4698
5701
  const m = this._def.items[o] || this._def.rest;
4699
- return m ? m._parse(new N(n, s, n.path, o)) : null;
5702
+ return m ? m._parse(new N(i, s, i.path, o)) : null;
4700
5703
  }).filter((s) => !!s);
4701
- return n.common.async ? Promise.all(i).then((s) => T.mergeArray(t, s)) : T.mergeArray(t, i);
5704
+ return i.common.async ? Promise.all(r).then((s) => T.mergeArray(t, s)) : T.mergeArray(t, r);
4702
5705
  }
4703
5706
  get items() {
4704
5707
  return this._def.items;
4705
5708
  }
4706
5709
  rest(e) {
4707
- return new M({
5710
+ return new P({
4708
5711
  ...this._def,
4709
5712
  rest: e
4710
5713
  });
4711
5714
  }
4712
5715
  }
4713
- M.create = (a, e) => {
5716
+ P.create = (a, e) => {
4714
5717
  if (!Array.isArray(a))
4715
5718
  throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
4716
- return new M({
5719
+ return new P({
4717
5720
  items: a,
4718
5721
  typeName: f.ZodTuple,
4719
5722
  rest: null,
4720
- ..._(e)
5723
+ ...g(e)
4721
5724
  });
4722
5725
  };
4723
5726
  class te extends v {
@@ -4728,35 +5731,35 @@ class te extends v {
4728
5731
  return this._def.valueType;
4729
5732
  }
4730
5733
  _parse(e) {
4731
- const { status: t, ctx: n } = this._processInputParams(e);
4732
- if (n.parsedType !== u.object)
4733
- return l(n, {
5734
+ const { status: t, ctx: i } = this._processInputParams(e);
5735
+ if (i.parsedType !== l.object)
5736
+ return u(i, {
4734
5737
  code: c.invalid_type,
4735
- expected: u.object,
4736
- received: n.parsedType
5738
+ expected: l.object,
5739
+ received: i.parsedType
4737
5740
  }), h;
4738
- const r = [], i = this._def.keyType, s = this._def.valueType;
4739
- for (const o in n.data)
4740
- r.push({
4741
- key: i._parse(new N(n, o, n.path, o)),
4742
- value: s._parse(new N(n, n.data[o], n.path, o))
5741
+ const n = [], r = this._def.keyType, s = this._def.valueType;
5742
+ for (const o in i.data)
5743
+ n.push({
5744
+ key: r._parse(new N(i, o, i.path, o)),
5745
+ value: s._parse(new N(i, i.data[o], i.path, o))
4743
5746
  });
4744
- return n.common.async ? T.mergeObjectAsync(t, r) : T.mergeObjectSync(t, r);
5747
+ return i.common.async ? T.mergeObjectAsync(t, n) : T.mergeObjectSync(t, n);
4745
5748
  }
4746
5749
  get element() {
4747
5750
  return this._def.valueType;
4748
5751
  }
4749
- static create(e, t, n) {
5752
+ static create(e, t, i) {
4750
5753
  return t instanceof v ? new te({
4751
5754
  keyType: e,
4752
5755
  valueType: t,
4753
5756
  typeName: f.ZodRecord,
4754
- ..._(n)
5757
+ ...g(i)
4755
5758
  }) : new te({
4756
5759
  keyType: A.create(),
4757
5760
  valueType: e,
4758
5761
  typeName: f.ZodRecord,
4759
- ..._(t)
5762
+ ...g(t)
4760
5763
  });
4761
5764
  }
4762
5765
  }
@@ -4768,18 +5771,18 @@ class pe extends v {
4768
5771
  return this._def.valueType;
4769
5772
  }
4770
5773
  _parse(e) {
4771
- const { status: t, ctx: n } = this._processInputParams(e);
4772
- if (n.parsedType !== u.map)
4773
- return l(n, {
5774
+ const { status: t, ctx: i } = this._processInputParams(e);
5775
+ if (i.parsedType !== l.map)
5776
+ return u(i, {
4774
5777
  code: c.invalid_type,
4775
- expected: u.map,
4776
- received: n.parsedType
5778
+ expected: l.map,
5779
+ received: i.parsedType
4777
5780
  }), h;
4778
- const r = this._def.keyType, i = this._def.valueType, s = [...n.data.entries()].map(([o, m], d) => ({
4779
- key: r._parse(new N(n, o, n.path, [d, "key"])),
4780
- value: i._parse(new N(n, m, n.path, [d, "value"]))
5781
+ const n = this._def.keyType, r = this._def.valueType, s = [...i.data.entries()].map(([o, m], d) => ({
5782
+ key: n._parse(new N(i, o, i.path, [d, "key"])),
5783
+ value: r._parse(new N(i, m, i.path, [d, "value"]))
4781
5784
  }));
4782
- if (n.common.async) {
5785
+ if (i.common.async) {
4783
5786
  const o = /* @__PURE__ */ new Map();
4784
5787
  return Promise.resolve().then(async () => {
4785
5788
  for (const m of s) {
@@ -4806,34 +5809,34 @@ pe.create = (a, e, t) => new pe({
4806
5809
  valueType: e,
4807
5810
  keyType: a,
4808
5811
  typeName: f.ZodMap,
4809
- ..._(t)
5812
+ ...g(t)
4810
5813
  });
4811
5814
  class U extends v {
4812
5815
  _parse(e) {
4813
- const { status: t, ctx: n } = this._processInputParams(e);
4814
- if (n.parsedType !== u.set)
4815
- return l(n, {
5816
+ const { status: t, ctx: i } = this._processInputParams(e);
5817
+ if (i.parsedType !== l.set)
5818
+ return u(i, {
4816
5819
  code: c.invalid_type,
4817
- expected: u.set,
4818
- received: n.parsedType
5820
+ expected: l.set,
5821
+ received: i.parsedType
4819
5822
  }), h;
4820
- const r = this._def;
4821
- r.minSize !== null && n.data.size < r.minSize.value && (l(n, {
5823
+ const n = this._def;
5824
+ n.minSize !== null && i.data.size < n.minSize.value && (u(i, {
4822
5825
  code: c.too_small,
4823
- minimum: r.minSize.value,
5826
+ minimum: n.minSize.value,
4824
5827
  type: "set",
4825
5828
  inclusive: !0,
4826
5829
  exact: !1,
4827
- message: r.minSize.message
4828
- }), t.dirty()), r.maxSize !== null && n.data.size > r.maxSize.value && (l(n, {
5830
+ message: n.minSize.message
5831
+ }), t.dirty()), n.maxSize !== null && i.data.size > n.maxSize.value && (u(i, {
4829
5832
  code: c.too_big,
4830
- maximum: r.maxSize.value,
5833
+ maximum: n.maxSize.value,
4831
5834
  type: "set",
4832
5835
  inclusive: !0,
4833
5836
  exact: !1,
4834
- message: r.maxSize.message
5837
+ message: n.maxSize.message
4835
5838
  }), t.dirty());
4836
- const i = this._def.valueType;
5839
+ const r = this._def.valueType;
4837
5840
  function s(m) {
4838
5841
  const d = /* @__PURE__ */ new Set();
4839
5842
  for (const y of m) {
@@ -4843,8 +5846,8 @@ class U extends v {
4843
5846
  }
4844
5847
  return { status: t.value, value: d };
4845
5848
  }
4846
- const o = [...n.data.values()].map((m, d) => i._parse(new N(n, m, n.path, d)));
4847
- return n.common.async ? Promise.all(o).then((m) => s(m)) : s(o);
5849
+ const o = [...i.data.values()].map((m, d) => r._parse(new N(i, m, i.path, d)));
5850
+ return i.common.async ? Promise.all(o).then((m) => s(m)) : s(o);
4848
5851
  }
4849
5852
  min(e, t) {
4850
5853
  return new U({
@@ -4870,7 +5873,7 @@ U.create = (a, e) => new U({
4870
5873
  minSize: null,
4871
5874
  maxSize: null,
4872
5875
  typeName: f.ZodSet,
4873
- ..._(e)
5876
+ ...g(e)
4874
5877
  });
4875
5878
  class z extends v {
4876
5879
  constructor() {
@@ -4878,13 +5881,13 @@ class z extends v {
4878
5881
  }
4879
5882
  _parse(e) {
4880
5883
  const { ctx: t } = this._processInputParams(e);
4881
- if (t.parsedType !== u.function)
4882
- return l(t, {
5884
+ if (t.parsedType !== l.function)
5885
+ return u(t, {
4883
5886
  code: c.invalid_type,
4884
- expected: u.function,
5887
+ expected: l.function,
4885
5888
  received: t.parsedType
4886
5889
  }), h;
4887
- function n(o, m) {
5890
+ function i(o, m) {
4888
5891
  return de({
4889
5892
  data: o,
4890
5893
  path: t.path,
@@ -4900,7 +5903,7 @@ class z extends v {
4900
5903
  }
4901
5904
  });
4902
5905
  }
4903
- function r(o, m) {
5906
+ function n(o, m) {
4904
5907
  return de({
4905
5908
  data: o,
4906
5909
  path: t.path,
@@ -4916,26 +5919,26 @@ class z extends v {
4916
5919
  }
4917
5920
  });
4918
5921
  }
4919
- const i = { errorMap: t.common.contextualErrorMap }, s = t.data;
5922
+ const r = { errorMap: t.common.contextualErrorMap }, s = t.data;
4920
5923
  if (this._def.returns instanceof Y) {
4921
5924
  const o = this;
4922
5925
  return C(async function(...m) {
4923
- const d = new E([]), y = await o._def.args.parseAsync(m, i).catch((ve) => {
4924
- throw d.addIssue(n(m, ve)), d;
5926
+ const d = new E([]), y = await o._def.args.parseAsync(m, r).catch((ve) => {
5927
+ throw d.addIssue(i(m, ve)), d;
4925
5928
  }), S = await Reflect.apply(s, this, y);
4926
- return await o._def.returns._def.type.parseAsync(S, i).catch((ve) => {
4927
- throw d.addIssue(r(S, ve)), d;
5929
+ return await o._def.returns._def.type.parseAsync(S, r).catch((ve) => {
5930
+ throw d.addIssue(n(S, ve)), d;
4928
5931
  });
4929
5932
  });
4930
5933
  } else {
4931
5934
  const o = this;
4932
5935
  return C(function(...m) {
4933
- const d = o._def.args.safeParse(m, i);
5936
+ const d = o._def.args.safeParse(m, r);
4934
5937
  if (!d.success)
4935
- throw new E([n(m, d.error)]);
4936
- const y = Reflect.apply(s, this, d.data), S = o._def.returns.safeParse(y, i);
5938
+ throw new E([i(m, d.error)]);
5939
+ const y = Reflect.apply(s, this, d.data), S = o._def.returns.safeParse(y, r);
4937
5940
  if (!S.success)
4938
- throw new E([r(y, S.error)]);
5941
+ throw new E([n(y, S.error)]);
4939
5942
  return S.data;
4940
5943
  });
4941
5944
  }
@@ -4949,7 +5952,7 @@ class z extends v {
4949
5952
  args(...e) {
4950
5953
  return new z({
4951
5954
  ...this._def,
4952
- args: M.create(e).rest($.create())
5955
+ args: P.create(e).rest($.create())
4953
5956
  });
4954
5957
  }
4955
5958
  returns(e) {
@@ -4964,12 +5967,12 @@ class z extends v {
4964
5967
  strictImplement(e) {
4965
5968
  return this.parse(e);
4966
5969
  }
4967
- static create(e, t, n) {
5970
+ static create(e, t, i) {
4968
5971
  return new z({
4969
- args: e || M.create([]).rest($.create()),
5972
+ args: e || P.create([]).rest($.create()),
4970
5973
  returns: t || $.create(),
4971
5974
  typeName: f.ZodFunction,
4972
- ..._(n)
5975
+ ...g(i)
4973
5976
  });
4974
5977
  }
4975
5978
  }
@@ -4985,13 +5988,13 @@ class ae extends v {
4985
5988
  ae.create = (a, e) => new ae({
4986
5989
  getter: a,
4987
5990
  typeName: f.ZodLazy,
4988
- ..._(e)
5991
+ ...g(e)
4989
5992
  });
4990
- class ne extends v {
5993
+ class ie extends v {
4991
5994
  _parse(e) {
4992
5995
  if (e.data !== this._def.value) {
4993
5996
  const t = this._getOrReturnCtx(e);
4994
- return l(t, {
5997
+ return u(t, {
4995
5998
  received: t.data,
4996
5999
  code: c.invalid_literal,
4997
6000
  expected: this._def.value
@@ -5003,34 +6006,34 @@ class ne extends v {
5003
6006
  return this._def.value;
5004
6007
  }
5005
6008
  }
5006
- ne.create = (a, e) => new ne({
6009
+ ie.create = (a, e) => new ie({
5007
6010
  value: a,
5008
6011
  typeName: f.ZodLiteral,
5009
- ..._(e)
6012
+ ...g(e)
5010
6013
  });
5011
6014
  function Ae(a, e) {
5012
6015
  return new V({
5013
6016
  values: a,
5014
6017
  typeName: f.ZodEnum,
5015
- ..._(e)
6018
+ ...g(e)
5016
6019
  });
5017
6020
  }
5018
6021
  class V extends v {
5019
6022
  _parse(e) {
5020
6023
  if (typeof e.data != "string") {
5021
- const t = this._getOrReturnCtx(e), n = this._def.values;
5022
- return l(t, {
5023
- expected: b.joinValues(n),
6024
+ const t = this._getOrReturnCtx(e), i = this._def.values;
6025
+ return u(t, {
6026
+ expected: b.joinValues(i),
5024
6027
  received: t.parsedType,
5025
6028
  code: c.invalid_type
5026
6029
  }), h;
5027
6030
  }
5028
6031
  if (this._def.values.indexOf(e.data) === -1) {
5029
- const t = this._getOrReturnCtx(e), n = this._def.values;
5030
- return l(t, {
6032
+ const t = this._getOrReturnCtx(e), i = this._def.values;
6033
+ return u(t, {
5031
6034
  received: t.data,
5032
6035
  code: c.invalid_enum_value,
5033
- options: n
6036
+ options: i
5034
6037
  }), h;
5035
6038
  }
5036
6039
  return C(e.data);
@@ -5064,23 +6067,23 @@ class V extends v {
5064
6067
  }
5065
6068
  }
5066
6069
  V.create = Ae;
5067
- class re extends v {
6070
+ class ne extends v {
5068
6071
  _parse(e) {
5069
- const t = b.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
5070
- if (n.parsedType !== u.string && n.parsedType !== u.number) {
5071
- const r = b.objectValues(t);
5072
- return l(n, {
5073
- expected: b.joinValues(r),
5074
- received: n.parsedType,
6072
+ const t = b.getValidEnumValues(this._def.values), i = this._getOrReturnCtx(e);
6073
+ if (i.parsedType !== l.string && i.parsedType !== l.number) {
6074
+ const n = b.objectValues(t);
6075
+ return u(i, {
6076
+ expected: b.joinValues(n),
6077
+ received: i.parsedType,
5075
6078
  code: c.invalid_type
5076
6079
  }), h;
5077
6080
  }
5078
6081
  if (t.indexOf(e.data) === -1) {
5079
- const r = b.objectValues(t);
5080
- return l(n, {
5081
- received: n.data,
6082
+ const n = b.objectValues(t);
6083
+ return u(i, {
6084
+ received: i.data,
5082
6085
  code: c.invalid_enum_value,
5083
- options: r
6086
+ options: n
5084
6087
  }), h;
5085
6088
  }
5086
6089
  return C(e.data);
@@ -5089,10 +6092,10 @@ class re extends v {
5089
6092
  return this._def.values;
5090
6093
  }
5091
6094
  }
5092
- re.create = (a, e) => new re({
6095
+ ne.create = (a, e) => new ne({
5093
6096
  values: a,
5094
6097
  typeName: f.ZodNativeEnum,
5095
- ..._(e)
6098
+ ...g(e)
5096
6099
  });
5097
6100
  class Y extends v {
5098
6101
  unwrap() {
@@ -5100,14 +6103,14 @@ class Y extends v {
5100
6103
  }
5101
6104
  _parse(e) {
5102
6105
  const { ctx: t } = this._processInputParams(e);
5103
- if (t.parsedType !== u.promise && t.common.async === !1)
5104
- return l(t, {
6106
+ if (t.parsedType !== l.promise && t.common.async === !1)
6107
+ return u(t, {
5105
6108
  code: c.invalid_type,
5106
- expected: u.promise,
6109
+ expected: l.promise,
5107
6110
  received: t.parsedType
5108
6111
  }), h;
5109
- const n = t.parsedType === u.promise ? t.data : Promise.resolve(t.data);
5110
- return C(n.then((r) => this._def.type.parseAsync(r, {
6112
+ const i = t.parsedType === l.promise ? t.data : Promise.resolve(t.data);
6113
+ return C(i.then((n) => this._def.type.parseAsync(n, {
5111
6114
  path: t.path,
5112
6115
  errorMap: t.common.contextualErrorMap
5113
6116
  })));
@@ -5116,7 +6119,7 @@ class Y extends v {
5116
6119
  Y.create = (a, e) => new Y({
5117
6120
  type: a,
5118
6121
  typeName: f.ZodPromise,
5119
- ..._(e)
6122
+ ...g(e)
5120
6123
  });
5121
6124
  class I extends v {
5122
6125
  innerType() {
@@ -5126,94 +6129,94 @@ class I extends v {
5126
6129
  return this._def.schema._def.typeName === f.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
5127
6130
  }
5128
6131
  _parse(e) {
5129
- const { status: t, ctx: n } = this._processInputParams(e), r = this._def.effect || null, i = {
6132
+ const { status: t, ctx: i } = this._processInputParams(e), n = this._def.effect || null, r = {
5130
6133
  addIssue: (s) => {
5131
- l(n, s), s.fatal ? t.abort() : t.dirty();
6134
+ u(i, s), s.fatal ? t.abort() : t.dirty();
5132
6135
  },
5133
6136
  get path() {
5134
- return n.path;
6137
+ return i.path;
5135
6138
  }
5136
6139
  };
5137
- if (i.addIssue = i.addIssue.bind(i), r.type === "preprocess") {
5138
- const s = r.transform(n.data, i);
5139
- return n.common.issues.length ? {
6140
+ if (r.addIssue = r.addIssue.bind(r), n.type === "preprocess") {
6141
+ const s = n.transform(i.data, r);
6142
+ return i.common.issues.length ? {
5140
6143
  status: "dirty",
5141
- value: n.data
5142
- } : n.common.async ? Promise.resolve(s).then((o) => this._def.schema._parseAsync({
6144
+ value: i.data
6145
+ } : i.common.async ? Promise.resolve(s).then((o) => this._def.schema._parseAsync({
5143
6146
  data: o,
5144
- path: n.path,
5145
- parent: n
6147
+ path: i.path,
6148
+ parent: i
5146
6149
  })) : this._def.schema._parseSync({
5147
6150
  data: s,
5148
- path: n.path,
5149
- parent: n
6151
+ path: i.path,
6152
+ parent: i
5150
6153
  });
5151
6154
  }
5152
- if (r.type === "refinement") {
6155
+ if (n.type === "refinement") {
5153
6156
  const s = (o) => {
5154
- const m = r.refinement(o, i);
5155
- if (n.common.async)
6157
+ const m = n.refinement(o, r);
6158
+ if (i.common.async)
5156
6159
  return Promise.resolve(m);
5157
6160
  if (m instanceof Promise)
5158
6161
  throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");
5159
6162
  return o;
5160
6163
  };
5161
- if (n.common.async === !1) {
6164
+ if (i.common.async === !1) {
5162
6165
  const o = this._def.schema._parseSync({
5163
- data: n.data,
5164
- path: n.path,
5165
- parent: n
6166
+ data: i.data,
6167
+ path: i.path,
6168
+ parent: i
5166
6169
  });
5167
6170
  return o.status === "aborted" ? h : (o.status === "dirty" && t.dirty(), s(o.value), { status: t.value, value: o.value });
5168
6171
  } else
5169
- return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((o) => o.status === "aborted" ? h : (o.status === "dirty" && t.dirty(), s(o.value).then(() => ({ status: t.value, value: o.value }))));
6172
+ return this._def.schema._parseAsync({ data: i.data, path: i.path, parent: i }).then((o) => o.status === "aborted" ? h : (o.status === "dirty" && t.dirty(), s(o.value).then(() => ({ status: t.value, value: o.value }))));
5170
6173
  }
5171
- if (r.type === "transform")
5172
- if (n.common.async === !1) {
6174
+ if (n.type === "transform")
6175
+ if (i.common.async === !1) {
5173
6176
  const s = this._def.schema._parseSync({
5174
- data: n.data,
5175
- path: n.path,
5176
- parent: n
6177
+ data: i.data,
6178
+ path: i.path,
6179
+ parent: i
5177
6180
  });
5178
6181
  if (!H(s))
5179
6182
  return s;
5180
- const o = r.transform(s.value, i);
6183
+ const o = n.transform(s.value, r);
5181
6184
  if (o instanceof Promise)
5182
6185
  throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");
5183
6186
  return { status: t.value, value: o };
5184
6187
  } else
5185
- return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((s) => H(s) ? Promise.resolve(r.transform(s.value, i)).then((o) => ({ status: t.value, value: o })) : s);
5186
- b.assertNever(r);
6188
+ return this._def.schema._parseAsync({ data: i.data, path: i.path, parent: i }).then((s) => H(s) ? Promise.resolve(n.transform(s.value, r)).then((o) => ({ status: t.value, value: o })) : s);
6189
+ b.assertNever(n);
5187
6190
  }
5188
6191
  }
5189
6192
  I.create = (a, e, t) => new I({
5190
6193
  schema: a,
5191
6194
  typeName: f.ZodEffects,
5192
6195
  effect: e,
5193
- ..._(t)
6196
+ ...g(t)
5194
6197
  });
5195
6198
  I.createWithPreprocess = (a, e, t) => new I({
5196
6199
  schema: e,
5197
6200
  effect: { type: "preprocess", transform: a },
5198
6201
  typeName: f.ZodEffects,
5199
- ..._(t)
6202
+ ...g(t)
5200
6203
  });
5201
- class P extends v {
6204
+ class M extends v {
5202
6205
  _parse(e) {
5203
- return this._getType(e) === u.undefined ? C(void 0) : this._def.innerType._parse(e);
6206
+ return this._getType(e) === l.undefined ? C(void 0) : this._def.innerType._parse(e);
5204
6207
  }
5205
6208
  unwrap() {
5206
6209
  return this._def.innerType;
5207
6210
  }
5208
6211
  }
5209
- P.create = (a, e) => new P({
6212
+ M.create = (a, e) => new M({
5210
6213
  innerType: a,
5211
6214
  typeName: f.ZodOptional,
5212
- ..._(e)
6215
+ ...g(e)
5213
6216
  });
5214
6217
  class q extends v {
5215
6218
  _parse(e) {
5216
- return this._getType(e) === u.null ? C(null) : this._def.innerType._parse(e);
6219
+ return this._getType(e) === l.null ? C(null) : this._def.innerType._parse(e);
5217
6220
  }
5218
6221
  unwrap() {
5219
6222
  return this._def.innerType;
@@ -5222,14 +6225,14 @@ class q extends v {
5222
6225
  q.create = (a, e) => new q({
5223
6226
  innerType: a,
5224
6227
  typeName: f.ZodNullable,
5225
- ..._(e)
6228
+ ...g(e)
5226
6229
  });
5227
- class ie extends v {
6230
+ class re extends v {
5228
6231
  _parse(e) {
5229
6232
  const { ctx: t } = this._processInputParams(e);
5230
- let n = t.data;
5231
- return t.parsedType === u.undefined && (n = this._def.defaultValue()), this._def.innerType._parse({
5232
- data: n,
6233
+ let i = t.data;
6234
+ return t.parsedType === l.undefined && (i = this._def.defaultValue()), this._def.innerType._parse({
6235
+ data: i,
5233
6236
  path: t.path,
5234
6237
  parent: t
5235
6238
  });
@@ -5238,42 +6241,42 @@ class ie extends v {
5238
6241
  return this._def.innerType;
5239
6242
  }
5240
6243
  }
5241
- ie.create = (a, e) => new ie({
6244
+ re.create = (a, e) => new re({
5242
6245
  innerType: a,
5243
6246
  typeName: f.ZodDefault,
5244
6247
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
5245
- ..._(e)
6248
+ ...g(e)
5246
6249
  });
5247
6250
  class fe extends v {
5248
6251
  _parse(e) {
5249
- const { ctx: t } = this._processInputParams(e), n = {
6252
+ const { ctx: t } = this._processInputParams(e), i = {
5250
6253
  ...t,
5251
6254
  common: {
5252
6255
  ...t.common,
5253
6256
  issues: []
5254
6257
  }
5255
- }, r = this._def.innerType._parse({
5256
- data: n.data,
5257
- path: n.path,
6258
+ }, n = this._def.innerType._parse({
6259
+ data: i.data,
6260
+ path: i.path,
5258
6261
  parent: {
5259
- ...n
6262
+ ...i
5260
6263
  }
5261
6264
  });
5262
- return ue(r) ? r.then((i) => ({
6265
+ return le(n) ? n.then((r) => ({
5263
6266
  status: "valid",
5264
- value: i.status === "valid" ? i.value : this._def.catchValue({
6267
+ value: r.status === "valid" ? r.value : this._def.catchValue({
5265
6268
  get error() {
5266
- return new E(n.common.issues);
6269
+ return new E(i.common.issues);
5267
6270
  },
5268
- input: n.data
6271
+ input: i.data
5269
6272
  })
5270
6273
  })) : {
5271
6274
  status: "valid",
5272
- value: r.status === "valid" ? r.value : this._def.catchValue({
6275
+ value: n.status === "valid" ? n.value : this._def.catchValue({
5273
6276
  get error() {
5274
- return new E(n.common.issues);
6277
+ return new E(i.common.issues);
5275
6278
  },
5276
- input: n.data
6279
+ input: i.data
5277
6280
  })
5278
6281
  };
5279
6282
  }
@@ -5285,16 +6288,16 @@ fe.create = (a, e) => new fe({
5285
6288
  innerType: a,
5286
6289
  typeName: f.ZodCatch,
5287
6290
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
5288
- ..._(e)
6291
+ ...g(e)
5289
6292
  });
5290
6293
  class he extends v {
5291
6294
  _parse(e) {
5292
- if (this._getType(e) !== u.nan) {
5293
- const n = this._getOrReturnCtx(e);
5294
- return l(n, {
6295
+ if (this._getType(e) !== l.nan) {
6296
+ const i = this._getOrReturnCtx(e);
6297
+ return u(i, {
5295
6298
  code: c.invalid_type,
5296
- expected: u.nan,
5297
- received: n.parsedType
6299
+ expected: l.nan,
6300
+ received: i.parsedType
5298
6301
  }), h;
5299
6302
  }
5300
6303
  return { status: "valid", value: e.data };
@@ -5302,14 +6305,14 @@ class he extends v {
5302
6305
  }
5303
6306
  he.create = (a) => new he({
5304
6307
  typeName: f.ZodNaN,
5305
- ..._(a)
6308
+ ...g(a)
5306
6309
  });
5307
- const rt = Symbol("zod_brand");
6310
+ const ct = Symbol("zod_brand");
5308
6311
  class Ee extends v {
5309
6312
  _parse(e) {
5310
- const { ctx: t } = this._processInputParams(e), n = t.data;
6313
+ const { ctx: t } = this._processInputParams(e), i = t.data;
5311
6314
  return this._def.type._parse({
5312
- data: n,
6315
+ data: i,
5313
6316
  path: t.path,
5314
6317
  parent: t
5315
6318
  });
@@ -5320,33 +6323,33 @@ class Ee extends v {
5320
6323
  }
5321
6324
  class se extends v {
5322
6325
  _parse(e) {
5323
- const { status: t, ctx: n } = this._processInputParams(e);
5324
- if (n.common.async)
6326
+ const { status: t, ctx: i } = this._processInputParams(e);
6327
+ if (i.common.async)
5325
6328
  return (async () => {
5326
- const i = await this._def.in._parseAsync({
5327
- data: n.data,
5328
- path: n.path,
5329
- parent: n
6329
+ const r = await this._def.in._parseAsync({
6330
+ data: i.data,
6331
+ path: i.path,
6332
+ parent: i
5330
6333
  });
5331
- return i.status === "aborted" ? h : i.status === "dirty" ? (t.dirty(), Se(i.value)) : this._def.out._parseAsync({
5332
- data: i.value,
5333
- path: n.path,
5334
- parent: n
6334
+ return r.status === "aborted" ? h : r.status === "dirty" ? (t.dirty(), Se(r.value)) : this._def.out._parseAsync({
6335
+ data: r.value,
6336
+ path: i.path,
6337
+ parent: i
5335
6338
  });
5336
6339
  })();
5337
6340
  {
5338
- const r = this._def.in._parseSync({
5339
- data: n.data,
5340
- path: n.path,
5341
- parent: n
6341
+ const n = this._def.in._parseSync({
6342
+ data: i.data,
6343
+ path: i.path,
6344
+ parent: i
5342
6345
  });
5343
- return r.status === "aborted" ? h : r.status === "dirty" ? (t.dirty(), {
6346
+ return n.status === "aborted" ? h : n.status === "dirty" ? (t.dirty(), {
5344
6347
  status: "dirty",
5345
- value: r.value
6348
+ value: n.value
5346
6349
  }) : this._def.out._parseSync({
5347
- data: r.value,
5348
- path: n.path,
5349
- parent: n
6350
+ data: n.value,
6351
+ path: i.path,
6352
+ parent: i
5350
6353
  });
5351
6354
  }
5352
6355
  }
@@ -5358,33 +6361,33 @@ class se extends v {
5358
6361
  });
5359
6362
  }
5360
6363
  }
5361
- class ge extends v {
6364
+ class _e extends v {
5362
6365
  _parse(e) {
5363
6366
  const t = this._def.innerType._parse(e);
5364
6367
  return H(t) && (t.value = Object.freeze(t.value)), t;
5365
6368
  }
5366
6369
  }
5367
- ge.create = (a, e) => new ge({
6370
+ _e.create = (a, e) => new _e({
5368
6371
  innerType: a,
5369
6372
  typeName: f.ZodReadonly,
5370
- ..._(e)
6373
+ ...g(e)
5371
6374
  });
5372
- const Oe = (a, e = {}, t) => a ? W.create().superRefine((n, r) => {
5373
- var i, s;
5374
- if (!a(n)) {
5375
- const o = typeof e == "function" ? e(n) : typeof e == "string" ? { message: e } : e, m = (s = (i = o.fatal) !== null && i !== void 0 ? i : t) !== null && s !== void 0 ? s : !0, d = typeof o == "string" ? { message: o } : o;
5376
- r.addIssue({ code: "custom", ...d, fatal: m });
6375
+ const Oe = (a, e = {}, t) => a ? W.create().superRefine((i, n) => {
6376
+ var r, s;
6377
+ if (!a(i)) {
6378
+ const o = typeof e == "function" ? e(i) : typeof e == "string" ? { message: e } : e, m = (s = (r = o.fatal) !== null && r !== void 0 ? r : t) !== null && s !== void 0 ? s : !0, d = typeof o == "string" ? { message: o } : o;
6379
+ n.addIssue({ code: "custom", ...d, fatal: m });
5377
6380
  }
5378
- }) : W.create(), it = {
6381
+ }) : W.create(), dt = {
5379
6382
  object: w.lazycreate
5380
6383
  };
5381
6384
  var f;
5382
6385
  (function(a) {
5383
6386
  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";
5384
6387
  })(f || (f = {}));
5385
- const st = (a, e = {
6388
+ const lt = (a, e = {
5386
6389
  message: `Input not instance of ${a.name}`
5387
- }) => Oe((t) => t instanceof a, e), Ie = A.create, Ne = D.create, ot = he.create, ct = Z.create, Me = J.create, dt = B.create, ut = le.create, lt = X.create, mt = K.create, pt = W.create, ft = $.create, ht = L.create, gt = me.create, _t = O.create, vt = w.create, yt = w.strictCreate, bt = Q.create, xt = _e.create, wt = ee.create, Tt = M.create, Ct = te.create, Rt = pe.create, kt = U.create, St = z.create, At = ae.create, Et = ne.create, Ot = V.create, It = re.create, Nt = Y.create, Re = I.create, Mt = P.create, Pt = q.create, Lt = I.createWithPreprocess, jt = se.create, Dt = () => Ie().optional(), Zt = () => Ne().optional(), Vt = () => Me().optional(), $t = {
6390
+ }) => Oe((t) => t instanceof a, e), Ie = A.create, Ne = D.create, ut = he.create, mt = Z.create, Pe = J.create, pt = B.create, ft = ue.create, ht = X.create, _t = K.create, gt = W.create, vt = $.create, yt = L.create, bt = me.create, xt = O.create, wt = w.create, Tt = w.strictCreate, Ct = Q.create, kt = ge.create, Rt = ee.create, St = P.create, At = te.create, Et = pe.create, Ot = U.create, It = z.create, Nt = ae.create, Pt = ie.create, Mt = V.create, Lt = ne.create, jt = Y.create, ke = I.create, Dt = M.create, Zt = q.create, Vt = I.createWithPreprocess, $t = se.create, Bt = () => Ie().optional(), Ut = () => Ne().optional(), qt = () => Pe().optional(), Gt = {
5388
6391
  string: (a) => A.create({ ...a, coerce: !0 }),
5389
6392
  number: (a) => D.create({ ...a, coerce: !0 }),
5390
6393
  boolean: (a) => J.create({
@@ -5393,15 +6396,15 @@ const st = (a, e = {
5393
6396
  }),
5394
6397
  bigint: (a) => Z.create({ ...a, coerce: !0 }),
5395
6398
  date: (a) => B.create({ ...a, coerce: !0 })
5396
- }, Bt = h;
5397
- var Ut = /* @__PURE__ */ Object.freeze({
6399
+ }, zt = h;
6400
+ var Wt = /* @__PURE__ */ Object.freeze({
5398
6401
  __proto__: null,
5399
6402
  defaultErrorMap: F,
5400
- setErrorMap: ze,
6403
+ setErrorMap: He,
5401
6404
  getErrorMap: ce,
5402
6405
  makeIssue: de,
5403
- EMPTY_PATH: We,
5404
- addIssueToContext: l,
6406
+ EMPTY_PATH: Je,
6407
+ addIssueToContext: u,
5405
6408
  ParseStatus: T,
5406
6409
  INVALID: h,
5407
6410
  DIRTY: Se,
@@ -5409,14 +6412,14 @@ var Ut = /* @__PURE__ */ Object.freeze({
5409
6412
  isAborted: xe,
5410
6413
  isDirty: we,
5411
6414
  isValid: H,
5412
- isAsync: ue,
6415
+ isAsync: le,
5413
6416
  get util() {
5414
6417
  return b;
5415
6418
  },
5416
6419
  get objectUtil() {
5417
6420
  return be;
5418
6421
  },
5419
- ZodParsedType: u,
6422
+ ZodParsedType: l,
5420
6423
  getParsedType: j,
5421
6424
  ZodType: v,
5422
6425
  ZodString: A,
@@ -5424,7 +6427,7 @@ var Ut = /* @__PURE__ */ Object.freeze({
5424
6427
  ZodBigInt: Z,
5425
6428
  ZodBoolean: J,
5426
6429
  ZodDate: B,
5427
- ZodSymbol: le,
6430
+ ZodSymbol: ue,
5428
6431
  ZodUndefined: X,
5429
6432
  ZodNull: K,
5430
6433
  ZodAny: W,
@@ -5434,82 +6437,82 @@ var Ut = /* @__PURE__ */ Object.freeze({
5434
6437
  ZodArray: O,
5435
6438
  ZodObject: w,
5436
6439
  ZodUnion: Q,
5437
- ZodDiscriminatedUnion: _e,
6440
+ ZodDiscriminatedUnion: ge,
5438
6441
  ZodIntersection: ee,
5439
- ZodTuple: M,
6442
+ ZodTuple: P,
5440
6443
  ZodRecord: te,
5441
6444
  ZodMap: pe,
5442
6445
  ZodSet: U,
5443
6446
  ZodFunction: z,
5444
6447
  ZodLazy: ae,
5445
- ZodLiteral: ne,
6448
+ ZodLiteral: ie,
5446
6449
  ZodEnum: V,
5447
- ZodNativeEnum: re,
6450
+ ZodNativeEnum: ne,
5448
6451
  ZodPromise: Y,
5449
6452
  ZodEffects: I,
5450
6453
  ZodTransformer: I,
5451
- ZodOptional: P,
6454
+ ZodOptional: M,
5452
6455
  ZodNullable: q,
5453
- ZodDefault: ie,
6456
+ ZodDefault: re,
5454
6457
  ZodCatch: fe,
5455
6458
  ZodNaN: he,
5456
- BRAND: rt,
6459
+ BRAND: ct,
5457
6460
  ZodBranded: Ee,
5458
6461
  ZodPipeline: se,
5459
- ZodReadonly: ge,
6462
+ ZodReadonly: _e,
5460
6463
  custom: Oe,
5461
6464
  Schema: v,
5462
6465
  ZodSchema: v,
5463
- late: it,
6466
+ late: dt,
5464
6467
  get ZodFirstPartyTypeKind() {
5465
6468
  return f;
5466
6469
  },
5467
- coerce: $t,
5468
- any: pt,
5469
- array: _t,
5470
- bigint: ct,
5471
- boolean: Me,
5472
- date: dt,
5473
- discriminatedUnion: xt,
5474
- effect: Re,
5475
- enum: Ot,
5476
- function: St,
5477
- instanceof: st,
5478
- intersection: wt,
5479
- lazy: At,
5480
- literal: Et,
5481
- map: Rt,
5482
- nan: ot,
5483
- nativeEnum: It,
5484
- never: ht,
5485
- null: mt,
5486
- nullable: Pt,
6470
+ coerce: Gt,
6471
+ any: gt,
6472
+ array: xt,
6473
+ bigint: mt,
6474
+ boolean: Pe,
6475
+ date: pt,
6476
+ discriminatedUnion: kt,
6477
+ effect: ke,
6478
+ enum: Mt,
6479
+ function: It,
6480
+ instanceof: lt,
6481
+ intersection: Rt,
6482
+ lazy: Nt,
6483
+ literal: Pt,
6484
+ map: Et,
6485
+ nan: ut,
6486
+ nativeEnum: Lt,
6487
+ never: yt,
6488
+ null: _t,
6489
+ nullable: Zt,
5487
6490
  number: Ne,
5488
- object: vt,
5489
- oboolean: Vt,
5490
- onumber: Zt,
5491
- optional: Mt,
5492
- ostring: Dt,
5493
- pipeline: jt,
5494
- preprocess: Lt,
5495
- promise: Nt,
5496
- record: Ct,
5497
- set: kt,
5498
- strictObject: yt,
6491
+ object: wt,
6492
+ oboolean: qt,
6493
+ onumber: Ut,
6494
+ optional: Dt,
6495
+ ostring: Bt,
6496
+ pipeline: $t,
6497
+ preprocess: Vt,
6498
+ promise: jt,
6499
+ record: At,
6500
+ set: Ot,
6501
+ strictObject: Tt,
5499
6502
  string: Ie,
5500
- symbol: ut,
5501
- transformer: Re,
5502
- tuple: Tt,
5503
- undefined: lt,
5504
- union: bt,
5505
- unknown: ft,
5506
- void: gt,
5507
- NEVER: Bt,
6503
+ symbol: ft,
6504
+ transformer: ke,
6505
+ tuple: St,
6506
+ undefined: ht,
6507
+ union: Ct,
6508
+ unknown: vt,
6509
+ void: bt,
6510
+ NEVER: zt,
5508
6511
  ZodIssueCode: c,
5509
- quotelessJson: Ge,
6512
+ quotelessJson: Fe,
5510
6513
  ZodError: E
5511
6514
  });
5512
- const qt = [
6515
+ const Yt = [
5513
6516
  "DASHBOARD",
5514
6517
  "ANALYTIC",
5515
6518
  "CAMPAIGN",
@@ -5542,21 +6545,21 @@ const qt = [
5542
6545
  "REFERRAL_OVERVIEW",
5543
6546
  "REFERRAL_RECORD",
5544
6547
  "REWARD_TEMPLATE"
5545
- ].map((a) => `$connect-${a}`), Gt = Ut.enum(qt), g = Gt.Enum, Ft = [
6548
+ ].map((a) => `$connect-${a}`), Ft = Wt.enum(Yt), _ = Ft.Enum, Kt = [
5546
6549
  {
5547
6550
  path: "",
5548
- name: g["$connect-DASHBOARD"],
5549
- redirect: { name: g["$connect-ANALYTIC"] }
6551
+ name: _["$connect-DASHBOARD"],
6552
+ redirect: { name: _["$connect-ANALYTIC"] }
5550
6553
  },
5551
6554
  {
5552
6555
  path: "/analytic",
5553
6556
  component: () => import("./MainLayout-DpZC6o3R.js"),
5554
- redirect: { name: g["$connect-ANALYTIC"] },
6557
+ redirect: { name: _["$connect-ANALYTIC"] },
5555
6558
  children: [
5556
6559
  {
5557
6560
  path: "/analytic",
5558
- name: g["$connect-ANALYTIC"],
5559
- component: R(k(() => import("./Analytic-Bbt1kP2U.js"))),
6561
+ name: _["$connect-ANALYTIC"],
6562
+ component: k(R(() => import("./Analytic-CBEDTJ94.js"))),
5560
6563
  meta: {
5561
6564
  validationManifest: {
5562
6565
  requiredCaslPermissions: [
@@ -5572,14 +6575,14 @@ const qt = [
5572
6575
  },
5573
6576
  {
5574
6577
  path: "/campaign",
5575
- name: g["$connect-CAMPAIGN"],
5576
- redirect: g["$connect-CAMPAIGN_PROMOTION"],
6578
+ name: _["$connect-CAMPAIGN"],
6579
+ redirect: _["$connect-CAMPAIGN_PROMOTION"],
5577
6580
  component: () => import("./MainLayout-DpZC6o3R.js"),
5578
6581
  children: [
5579
6582
  {
5580
6583
  path: "/campaign/promotion",
5581
- name: g["$connect-CAMPAIGN_PROMOTION"],
5582
- component: R(k(() => import("./Promotion-DFh9IEmP.js"))),
6584
+ name: _["$connect-CAMPAIGN_PROMOTION"],
6585
+ component: k(R(() => import("./Promotion-qjos6ksl.js"))),
5583
6586
  meta: {
5584
6587
  validationManifest: {
5585
6588
  requiredCaslPermissions: [
@@ -5593,12 +6596,12 @@ const qt = [
5593
6596
  },
5594
6597
  {
5595
6598
  path: "/campaign/voucher",
5596
- redirect: { name: g["$connect-CAMPAIGN_VOUCHER"] },
6599
+ redirect: { name: _["$connect-CAMPAIGN_VOUCHER"] },
5597
6600
  children: [
5598
6601
  {
5599
6602
  path: "/campaign/voucher",
5600
- name: g["$connect-CAMPAIGN_VOUCHER"],
5601
- component: R(k(() => import("./Voucher-Y5Lh5xms.js"))),
6603
+ name: _["$connect-CAMPAIGN_VOUCHER"],
6604
+ component: k(R(() => import("./Voucher-CDlHku1x.js"))),
5602
6605
  meta: {
5603
6606
  validationManifest: {
5604
6607
  requiredCaslPermissions: [
@@ -5612,8 +6615,8 @@ const qt = [
5612
6615
  },
5613
6616
  {
5614
6617
  path: "/campaign/voucher/:id/collections",
5615
- name: g["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
5616
- component: R(k(() => import("./Collections-qVnvveUf.js"))),
6618
+ name: _["$connect-CAMPAIGN_VOUCHER_COLLECTIONS"],
6619
+ component: k(R(() => import("./Collections-N7LIfZ2D.js"))),
5617
6620
  meta: {
5618
6621
  validationManifest: {
5619
6622
  requiredCaslPermissions: [
@@ -5629,8 +6632,8 @@ const qt = [
5629
6632
  },
5630
6633
  {
5631
6634
  path: "/campaign/broadcast",
5632
- name: g["$connect-CAMPAIGN_BROADCAST"],
5633
- component: R(k(() => import("./Broadcast-BJXK8OE5.js"))),
6635
+ name: _["$connect-CAMPAIGN_BROADCAST"],
6636
+ component: k(R(() => import("./Broadcast-ClM81ght.js"))),
5634
6637
  meta: {
5635
6638
  validationManifest: {
5636
6639
  requiredCaslPermissions: [
@@ -5647,7 +6650,7 @@ const qt = [
5647
6650
  {
5648
6651
  path: "/program",
5649
6652
  // component: () => import('@/layouts/MainLayout.vue'),
5650
- component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
6653
+ component: k(R(() => import("./MainLayout-DpZC6o3R.js"))),
5651
6654
  meta: {
5652
6655
  validationManifest: {
5653
6656
  requiredCaslPermissions: [
@@ -5658,49 +6661,49 @@ const qt = [
5658
6661
  ]
5659
6662
  }
5660
6663
  },
5661
- name: g["$connect-PROGRAM"],
5662
- redirect: g["$connect-PROGRAM_TIER"],
6664
+ name: _["$connect-PROGRAM"],
6665
+ redirect: _["$connect-PROGRAM_TIER"],
5663
6666
  children: [
5664
6667
  {
5665
6668
  path: "/program/tier",
5666
- name: g["$connect-PROGRAM_TIER"],
5667
- component: () => import("./Tier-C7kiLjzE.js")
6669
+ name: _["$connect-PROGRAM_TIER"],
6670
+ component: () => import("./Tier-CdxK-QtB.js")
5668
6671
  },
5669
6672
  {
5670
6673
  path: "/program/title",
5671
- name: g["$connect-PROGRAM_TITLE"],
5672
- component: () => import("./Title-BPv1ZiHg.js")
6674
+ name: _["$connect-PROGRAM_TITLE"],
6675
+ component: () => import("./Title-Ci_NXdrD.js")
5673
6676
  },
5674
6677
  {
5675
6678
  path: "/program/experience",
5676
- name: g["$connect-PROGRAM_EXPERIENCE"],
5677
- component: () => import("./Experience-BmGSus53.js")
6679
+ name: _["$connect-PROGRAM_EXPERIENCE"],
6680
+ component: () => import("./Experience-ClJWQLEB.js")
5678
6681
  },
5679
6682
  {
5680
6683
  path: "/program/point",
5681
- name: g["$connect-PROGRAM_POINT"],
5682
- component: () => import("./Point-BBNJ9cc5.js")
6684
+ name: _["$connect-PROGRAM_POINT"],
6685
+ component: () => import("./Point-uaIRQMRW.js")
5683
6686
  },
5684
6687
  {
5685
6688
  path: "/program/credit",
5686
- name: g["$connect-PROGRAM_CREDIT"],
5687
- component: () => import("./Credit-BWHTbAG-.js")
6689
+ name: _["$connect-PROGRAM_CREDIT"],
6690
+ component: () => import("./Credit-DC6pzGIR.js")
5688
6691
  },
5689
6692
  {
5690
6693
  path: "/program/game",
5691
- name: g["$connect-PROGRAM_GAME"],
5692
- component: () => import("./Game-49w7XN5k.js")
6694
+ name: _["$connect-PROGRAM_GAME"],
6695
+ component: () => import("./Game-BznCxZXt.js")
5693
6696
  },
5694
6697
  {
5695
6698
  path: "mission",
5696
- name: g["$connect-PROGRAM_MISSION"],
5697
- component: () => import("./Mission-LGC1CGrB.js")
6699
+ name: _["$connect-PROGRAM_MISSION"],
6700
+ component: () => import("./Mission-LwSpobZu.js")
5698
6701
  }
5699
6702
  ]
5700
6703
  },
5701
6704
  {
5702
6705
  path: "/loyalty",
5703
- component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
6706
+ component: k(R(() => import("./MainLayout-DpZC6o3R.js"))),
5704
6707
  meta: {
5705
6708
  validationManifest: {
5706
6709
  requiredCaslPermissions: [
@@ -5711,50 +6714,50 @@ const qt = [
5711
6714
  ]
5712
6715
  }
5713
6716
  },
5714
- name: g["$connect-LOYALTY"],
5715
- redirect: g["$connect-LOYALTY_MEMBER"],
6717
+ name: _["$connect-LOYALTY"],
6718
+ redirect: _["$connect-LOYALTY_MEMBER"],
5716
6719
  children: [
5717
6720
  {
5718
6721
  path: "/loyalty/member",
5719
- name: g["$connect-LOYALTY_MEMBER"],
5720
- component: () => import("./Member-jZks4pw_.js"),
6722
+ name: _["$connect-LOYALTY_MEMBER"],
6723
+ component: () => import("./Member-CQYj0FQK.js"),
5721
6724
  redirect: {
5722
- name: g["$connect-LOYALTY_MEMBER_OVERVIEW"]
6725
+ name: _["$connect-LOYALTY_MEMBER_OVERVIEW"]
5723
6726
  },
5724
6727
  children: [
5725
6728
  {
5726
6729
  path: "/loyalty/member",
5727
- name: g["$connect-LOYALTY_MEMBER_OVERVIEW"],
6730
+ name: _["$connect-LOYALTY_MEMBER_OVERVIEW"],
5728
6731
  component: () => import("./MemberOverview-C2n9oJZh.js")
5729
6732
  },
5730
6733
  {
5731
6734
  path: "/loyalty/member/list",
5732
- name: g["$connect-LOYALTY_MEMBER_LIST"],
5733
- component: () => import("./MemberList-BqO54kPC.js")
6735
+ name: _["$connect-LOYALTY_MEMBER_LIST"],
6736
+ component: () => import("./MemberList-UIZANV1T.js")
5734
6737
  },
5735
6738
  {
5736
6739
  path: "/loyalty/member/transactions/:id",
5737
- name: g["$connect-LOYALTY_MEMBER_TRANSACTIONS"],
5738
- component: () => import("./MemberTransactions-CLK7VmPw.js")
6740
+ name: _["$connect-LOYALTY_MEMBER_TRANSACTIONS"],
6741
+ component: () => import("./MemberTransactions-JKLzrvh6.js")
5739
6742
  }
5740
6743
  ]
5741
6744
  },
5742
6745
  {
5743
6746
  path: "/loyalty/segment",
5744
- name: g["$connect-LOYALTY_SEGMENT"],
5745
- component: () => import("./Segment-DjyHLWZC.js")
6747
+ name: _["$connect-LOYALTY_SEGMENT"],
6748
+ component: () => import("./Segment-B5E2FdYc.js")
5746
6749
  },
5747
6750
  {
5748
6751
  path: "/loyalty/card",
5749
- name: g["$connect-LOYALTY_CARD"],
5750
- component: () => import("./Card-DFiUkfYj.js")
6752
+ name: _["$connect-LOYALTY_CARD"],
6753
+ component: () => import("./Card-B7_nUT03.js")
5751
6754
  }
5752
6755
  ]
5753
6756
  },
5754
6757
  {
5755
6758
  path: "/referral",
5756
- redirect: { name: g["$connect-REFERRAL"] },
5757
- component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
6759
+ redirect: { name: _["$connect-REFERRAL"] },
6760
+ component: k(R(() => import("./MainLayout-DpZC6o3R.js"))),
5758
6761
  meta: {
5759
6762
  validationManifest: {
5760
6763
  requiredCaslPermissions: [
@@ -5768,21 +6771,21 @@ const qt = [
5768
6771
  children: [
5769
6772
  {
5770
6773
  path: "/referral",
5771
- name: g["$connect-REFERRAL"],
5772
- component: () => import("./Index-D-7hsAaE.js"),
6774
+ name: _["$connect-REFERRAL"],
6775
+ component: () => import("./Index-D27v-Lqw.js"),
5773
6776
  redirect: {
5774
- name: g["$connect-REFERRAL_OVERVIEW"]
6777
+ name: _["$connect-REFERRAL_OVERVIEW"]
5775
6778
  },
5776
6779
  children: [
5777
6780
  {
5778
6781
  path: "/referral",
5779
- name: g["$connect-REFERRAL_OVERVIEW"],
5780
- component: () => import("./Overview-Dm_ycoqZ.js")
6782
+ name: _["$connect-REFERRAL_OVERVIEW"],
6783
+ component: () => import("./Overview-PXshmkPD.js")
5781
6784
  },
5782
6785
  {
5783
6786
  path: "/referral/record",
5784
- name: g["$connect-REFERRAL_RECORD"],
5785
- component: () => import("./Record-oBmJTn3G.js")
6787
+ name: _["$connect-REFERRAL_RECORD"],
6788
+ component: () => import("./Record-qqPaVdrx.js")
5786
6789
  }
5787
6790
  ]
5788
6791
  }
@@ -5790,7 +6793,7 @@ const qt = [
5790
6793
  },
5791
6794
  {
5792
6795
  path: "/store",
5793
- component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
6796
+ component: k(R(() => import("./MainLayout-DpZC6o3R.js"))),
5794
6797
  meta: {
5795
6798
  validationManifest: {
5796
6799
  requiredCaslPermissions: [
@@ -5804,22 +6807,22 @@ const qt = [
5804
6807
  children: [
5805
6808
  {
5806
6809
  path: "/store",
5807
- name: g["$connect-STORE"],
5808
- component: () => import("./Store-HWGWswEm.js")
6810
+ name: _["$connect-STORE"],
6811
+ component: () => import("./Store-irRFotGI.js")
5809
6812
  },
5810
6813
  {
5811
6814
  path: "/store/rewards",
5812
- redirect: { name: g["$connect-STORE_REWARDS"] },
6815
+ redirect: { name: _["$connect-STORE_REWARDS"] },
5813
6816
  children: [
5814
6817
  {
5815
6818
  path: "/store/rewards",
5816
- name: g["$connect-STORE_REWARDS"],
5817
- component: () => import("./StoreRewards-s4cX1bFH.js")
6819
+ name: _["$connect-STORE_REWARDS"],
6820
+ component: () => import("./StoreRewards-CcJ8MMvp.js")
5818
6821
  },
5819
6822
  {
5820
6823
  path: "/store/rewards/:id/collections",
5821
- name: g["$connect-STORE_REWARD_COLLECTIONS"],
5822
- component: () => import("./Collections-qVnvveUf.js")
6824
+ name: _["$connect-STORE_REWARD_COLLECTIONS"],
6825
+ component: () => import("./Collections-N7LIfZ2D.js")
5823
6826
  }
5824
6827
  ]
5825
6828
  }
@@ -5827,7 +6830,7 @@ const qt = [
5827
6830
  },
5828
6831
  {
5829
6832
  path: "/transaction",
5830
- component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
6833
+ component: k(R(() => import("./MainLayout-DpZC6o3R.js"))),
5831
6834
  meta: {
5832
6835
  validationManifest: {
5833
6836
  requiredCaslPermissions: [
@@ -5841,14 +6844,14 @@ const qt = [
5841
6844
  children: [
5842
6845
  {
5843
6846
  path: "/transaction",
5844
- name: g["$connect-TRANSACTION"],
5845
- component: () => import("./Transaction-HdR7RiGY.js")
6847
+ name: _["$connect-TRANSACTION"],
6848
+ component: () => import("./Transaction-ChKg7UTd.js")
5846
6849
  }
5847
6850
  ]
5848
6851
  },
5849
6852
  {
5850
6853
  path: "/marketing",
5851
- component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
6854
+ component: k(R(() => import("./MainLayout-DpZC6o3R.js"))),
5852
6855
  meta: {
5853
6856
  validationManifest: {
5854
6857
  requiredCaslPermissions: [
@@ -5862,14 +6865,14 @@ const qt = [
5862
6865
  children: [
5863
6866
  {
5864
6867
  path: "/marketing",
5865
- name: g["$connect-MARKETING"],
5866
- component: () => import("./Marketing-DtbJxS_j.js")
6868
+ name: _["$connect-MARKETING"],
6869
+ component: () => import("./Marketing-FvYJ_Lt-.js")
5867
6870
  }
5868
6871
  ]
5869
6872
  },
5870
6873
  {
5871
6874
  path: "/reward",
5872
- component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
6875
+ component: k(R(() => import("./MainLayout-DpZC6o3R.js"))),
5873
6876
  meta: {
5874
6877
  validationManifest: {
5875
6878
  requiredCaslPermissions: [
@@ -5883,14 +6886,14 @@ const qt = [
5883
6886
  children: [
5884
6887
  {
5885
6888
  path: "/reward",
5886
- name: g["$connect-REWARD_TEMPLATE"],
5887
- component: () => import("./Reward-DR_HzrrM.js")
6889
+ name: _["$connect-REWARD_TEMPLATE"],
6890
+ component: () => import("./Reward-BC6GJ4kD.js")
5888
6891
  }
5889
6892
  ]
5890
6893
  },
5891
6894
  {
5892
6895
  path: "/setting",
5893
- component: R(k(() => import("./MainLayout-DpZC6o3R.js"))),
6896
+ component: k(R(() => import("./MainLayout-DpZC6o3R.js"))),
5894
6897
  meta: {
5895
6898
  validationManifest: {
5896
6899
  requiredCaslPermissions: [
@@ -5904,23 +6907,24 @@ const qt = [
5904
6907
  children: [
5905
6908
  {
5906
6909
  path: "/setting",
5907
- name: g["$connect-SETTING"],
5908
- component: () => import("./Setting-a7Tw-3ht.js")
6910
+ name: _["$connect-SETTING"],
6911
+ component: () => import("./Setting-CA9PQVKp.js")
5909
6912
  }
5910
6913
  ]
5911
6914
  }
5912
- ], Ht = {
6915
+ ], Qt = {
5913
6916
  "en-US": De,
5914
6917
  "zh-CN": Be,
5915
- "th-TH": qe
5916
- }, Jt = () => import("./App-CVA65EVC.js").then((a) => a.default);
6918
+ "th-TH": qe,
6919
+ "zh-Hant": Ye
6920
+ }, ea = () => import("./App-BcrQs0nE.js").then((a) => a.default);
5917
6921
  export {
5918
- Jt as F,
5919
- g as R,
6922
+ ea as F,
6923
+ _ as R,
5920
6924
  c as Z,
5921
- u as a,
6925
+ l as a,
5922
6926
  F as e,
5923
- Ht as i,
5924
- Ft as r,
5925
- Ut as z
6927
+ Qt as i,
6928
+ Kt as r,
6929
+ Wt as z
5926
6930
  };