@feedmepos/mf-connect 0.1.38-beta.9 → 0.1.38-beta.91

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 (162) hide show
  1. package/dist/{Analytic-3MN2saaU.js → Analytic-Drbkm5By.js} +31 -32
  2. package/dist/{App-Co8X5Wdy.js → App-C0cdcG5i.js} +741 -728
  3. package/dist/AuditLogs-BZZLtf2u.js +2013 -0
  4. package/dist/{Bin-8a56ZDib.js → Bin-DRV5lRmj.js} +10 -10
  5. package/dist/Broadcast-C90FN2LB.js +266 -0
  6. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BVXlfq31.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CsdxwjCn.js} +6 -6
  7. package/dist/{Card-B8_09LJu.js → Card-CWF84A1O.js} +145 -140
  8. package/dist/Collections-ja0gMaFf.js +540 -0
  9. package/dist/Credit-D8U2AJgq.js +260 -0
  10. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
  11. package/dist/DateInput.vue_vue_type_script_setup_true_lang-BN4Q5Y3l.js +54 -0
  12. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js → DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js} +1 -1
  13. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-YR62BvBG.js +3120 -0
  14. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BVbhDMqH.js +351 -0
  15. package/dist/Experience-DDXLGizu.js +259 -0
  16. package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-Dng61jiL.js} +1 -1
  17. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
  18. package/dist/FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js +52 -0
  19. package/dist/Game-CMOilzsW.js +330 -0
  20. package/dist/Grab-tPVQB39R.js +300 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-BbtEXO4b.js} +49 -48
  22. package/dist/{Index-DLF71mx_.js → Index-Ch7wiShF.js} +54 -54
  23. package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-DLO0jj6Z.js +48 -0
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CplyhUFF.js} +1 -1
  25. package/dist/{MainLayout-B1aJoR95.js → MainLayout-BMqnfxHh.js} +1 -1
  26. package/dist/Marketing-C0weDg-u.js +236 -0
  27. package/dist/MarketingMaterialEdit-BD-SyXVQ.js +1036 -0
  28. package/dist/{Member-Bkw4aqtv.js → Member-Bpf0amjr.js} +38 -37
  29. package/dist/{MemberList-a3PdVYB3.js → MemberList-cWYPEpL4.js} +485 -489
  30. package/dist/{MemberTransactions-CPDBd-n3.js → MemberTransactions-vzRUVwpO.js} +1 -1
  31. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-pbN8pN1m.js → MessageInput.vue_vue_type_script_setup_true_lang-DY3L9CvB.js} +10392 -9967
  32. package/dist/Mission-HRwIp1QY.js +334 -0
  33. package/dist/{Overview-De97NDoe.js → Overview-D9cfX4Kr.js} +34 -34
  34. package/dist/Point-Dz-Z0_m9.js +262 -0
  35. package/dist/Promotion-Csb0bdI6.js +397 -0
  36. package/dist/{Queue-ISVZxCE2.js → Queue-CAVKh9bK.js} +18 -18
  37. package/dist/{Record-2FMByNC6.js → Record-bPnIoHnT.js} +15 -14
  38. package/dist/Review-D2DfvLqJ.js +621 -0
  39. package/dist/ReviewFacebookCallback-CI7V3xbp.js +243 -0
  40. package/dist/ReviewGoogleCallback-LA2S8FLZ.js +213 -0
  41. package/dist/{Reward-DPRyQ37x.js → Reward-DdHF5Pr7.js} +16 -16
  42. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Ba7-3bL-.js → RewardGroup.vue_vue_type_script_setup_true_lang-DyZhWnI4.js} +13 -14
  43. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-B0OSLJVN.js +1912 -0
  44. package/dist/Segment-DV1zcWF7.js +1015 -0
  45. package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DZbyDVid.js → SelectItems.vue_vue_type_script_setup_true_lang-Df1HE9sL.js} +23 -23
  46. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-ioMFYIwK.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C0K9giqI.js} +12 -12
  47. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-CzJL8Xl0.js +226 -0
  48. package/dist/Setting-DZiZy8A5.js +2039 -0
  49. package/dist/SettingAdvertisements-Bb9shWVJ.js +264 -0
  50. package/dist/Store-mymtMyho.js +1996 -0
  51. package/dist/StoreRewards-jcjZfSv7.js +537 -0
  52. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B-b5_TFL.js +1130 -0
  53. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-sCa1J_hq.js +7007 -0
  54. package/dist/{Tier-CwRj0oJ1.js → Tier-Ba6aHC3R.js} +562 -480
  55. package/dist/{Title-EII5OxSP.js → Title-C4uKD8E1.js} +151 -149
  56. package/dist/{Transaction-1MTkAfej.js → Transaction-Bf2uG6co.js} +2 -2
  57. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BlQVWQHJ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C3ttU-bw.js} +7 -7
  58. package/dist/Voucher-Lsc2pKCk.js +421 -0
  59. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-MA7tsTm-.js +421 -0
  60. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CTeGK4bk.js → ZodTextField.vue_vue_type_script_setup_true_lang-DEDavbCx.js} +2 -2
  61. package/dist/app-BRrGcz9U.js +59647 -0
  62. package/dist/app.js +1 -1
  63. package/dist/{business-DjnN-J4U.js → business-TBSvPv65.js} +11 -8
  64. package/dist/campaign-CL95CZkI.js +219 -0
  65. package/dist/campaign-DxcuYXB7.js +254 -0
  66. package/dist/campaign.enum-DRydaoy9.js +26 -0
  67. package/dist/campaign.fn-BsoUwQ5N.js +776 -0
  68. package/dist/{collectible.enum-r6N115Lu.js → collectible.enum-CpTbpumt.js} +1 -1
  69. package/dist/{collection.fn-CSsfVv26.js → collection.fn-BNrPdDIr.js} +2 -2
  70. package/dist/dto-BGrkIVqX.js +222 -0
  71. package/dist/duplicateCampaign-DBaFROXd.js +51 -0
  72. package/dist/effect-fonU-1xO.js +89 -0
  73. package/dist/{email-addresses-D8uheCCF.js → email-addresses-WeV5Gvxa.js} +2 -2
  74. package/dist/{export-Ver6WiX6.js → export-DDXf8yf_.js} +4 -4
  75. package/dist/{helper-Bg4xoFbh.js → helper-DwnzJKxo.js} +22 -7
  76. package/dist/index-10x-WMiS.js +30289 -0
  77. package/dist/index-9Wt89ReU.js +3625 -0
  78. package/dist/{index-Bb0CHeNx.js → index-Brh5FXQ7.js} +3 -3
  79. package/dist/index-BxxNZQUc.js +8910 -0
  80. package/dist/{index-hJUxCNsF.js → index-CDAMmPIn.js} +1 -1
  81. package/dist/{index-CNhr0_Zx.js → index-Cg1vzNzf.js} +617 -191
  82. package/dist/{index-BZZ4iF4-.js → index-Cl7QnFc4.js} +23 -12
  83. package/dist/index-CuvNtC_M.js +61 -0
  84. package/dist/{index-BPQyQc4q.js → index-Cvw-xFek.js} +1 -1
  85. package/dist/index-DCJ_r_e2.js +85 -0
  86. package/dist/{index-Dn_bmcns.js → index-DLG8B-TK.js} +3 -3
  87. package/dist/{index-D4JOeJJJ.js → index-DWhh_u0L.js} +1 -1
  88. package/dist/index-DsQJTvKe.js +28900 -0
  89. package/dist/index-oR7xhhIt.js +48 -0
  90. package/dist/{index.esm2017-hK1Mi9yY.js → index.esm2017-CFvohTUs.js} +122 -122
  91. package/dist/{loading-kIQFOTwH.js → loading-DiD8J1Jc.js} +4 -3
  92. package/dist/{lodash-B5I3zXaY.js → lodash-BJgKlNEt.js} +1 -1
  93. package/dist/{membership--xR-HZoa.js → membership-C8HuK9_K.js} +38 -18
  94. package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
  95. package/dist/{money-c-ITXnlg.js → money-DXl1-c0l.js} +1 -1
  96. package/dist/{number-DfZSBLOY.js → number-C6RGu6qp.js} +1 -1
  97. package/dist/objectid-8Boc1xMT.js +145 -0
  98. package/dist/{campaign-BpJ1O6KS.js → plugins-CxBcRdUi.js} +677 -699
  99. package/dist/remy-D_Deb3ue.js +13 -0
  100. package/dist/{reward-CE0ifMHS.js → reward-CEh2CA9Z.js} +1 -1
  101. package/dist/{rule-DrjdmpaB.js → rule-DEfU8NOO.js} +505 -487
  102. package/dist/rule-builder-BZIx2IzX.js +102 -0
  103. package/dist/string-Gcy5IM_H.js +32 -0
  104. package/dist/style.css +11 -2
  105. package/dist/template-Ba8NxY41.js +188 -0
  106. package/dist/timezone-DUqMvcwo.js +1156 -0
  107. package/dist/trigger-KQ-DPHv-.js +213 -0
  108. package/dist/useMarketingMaterialActions-DSI7Fpu9.js +96 -0
  109. package/dist/usePagination-BeTADCIt.js +220 -0
  110. package/dist/{user-Cl3IotYV.js → user-DN6_QE2j.js} +15 -14
  111. package/dist/vue-i18n-B4dOYJz4.js +2365 -0
  112. package/dist/{xlsx-BDBzdOuM.js → xlsx-BDFTkXYe.js} +1 -1
  113. package/dist/{zod-Bg2FbC-D.js → zod-B8WJKIxe.js} +32 -31
  114. package/package.json +14 -6
  115. package/dist/AuditLogs-DTq6IAuc.js +0 -1887
  116. package/dist/Broadcast-UreS5Kiq.js +0 -227
  117. package/dist/Collections-B0I5ULxR.js +0 -465
  118. package/dist/Credit-B4Ad8DWP.js +0 -222
  119. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
  120. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DjgACf9F.js +0 -2185
  121. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-y5JnuIev.js +0 -347
  122. package/dist/Experience-xO5KpTTm.js +0 -223
  123. package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
  124. package/dist/Game-ChgrVvz5.js +0 -278
  125. package/dist/Marketing-BlmRXSGl.js +0 -20073
  126. package/dist/Mission-B07wK0HX.js +0 -296
  127. package/dist/Point-Ckj9QIeH.js +0 -226
  128. package/dist/Promotion-aGNCOeRN.js +0 -289
  129. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DWj-421v.js +0 -1751
  130. package/dist/Segment-CRMNJ11X.js +0 -882
  131. package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cfp8XXdO.js +0 -147
  132. package/dist/Setting-c0FWRZsD.js +0 -1936
  133. package/dist/Store-Bm1_15s8.js +0 -1842
  134. package/dist/StoreRewards-BCQHHfay.js +0 -423
  135. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CfTF2l-D.js +0 -1029
  136. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-rvhoxo0w.js +0 -139
  137. package/dist/Voucher-CYvjCb-v.js +0 -384
  138. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-63Jr71dJ.js +0 -419
  139. package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
  140. package/dist/app-BJLHk8ao.js +0 -33357
  141. package/dist/app-BzIk1ojT.js +0 -7086
  142. package/dist/campaign-BHNS5kXt.js +0 -96
  143. package/dist/campaign.enum-CJDWE_Om.js +0 -20
  144. package/dist/campaign.fn-C0HQE9uh.js +0 -758
  145. package/dist/dto-Byq51uVH.js +0 -214
  146. package/dist/effect-Do3yTM-_.js +0 -78
  147. package/dist/index-B1V9UnI9.js +0 -76
  148. package/dist/index-BM9CWjC6.js +0 -38
  149. package/dist/index-CsaQJMAR.js +0 -66
  150. package/dist/index-D6VxioBg.js +0 -30038
  151. package/dist/index-DGKlRWn3.js +0 -32260
  152. package/dist/index-DLKyOu7W.js +0 -8861
  153. package/dist/index-DyYF6HYL.js +0 -121
  154. package/dist/index-UXtH44XQ.js +0 -3120
  155. package/dist/objectid-DKbha9-x.js +0 -145
  156. package/dist/plugins-DtakupKW.js +0 -208
  157. package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
  158. package/dist/rule-builder-B_hCyq3x.js +0 -89
  159. package/dist/template-WI4a-lFY.js +0 -190
  160. package/dist/trigger-DieDHht3.js +0 -144
  161. package/dist/usePagination-BeF5K3M7.js +0 -223
  162. package/dist/vue-i18n-DKh0SMhL.js +0 -2365
@@ -0,0 +1,3625 @@
1
+ import { z as e, F as o, m as _, a as w, b as Qt, c as ye, d as en } from "./index-10x-WMiS.js";
2
+ import { F as $t } from "./campaign.enum-DRydaoy9.js";
3
+ import { a as U, b as tn, c as nn, d as ie, F as st, e as S, f as dn, g as lt, h as D, i as ut } from "./index-BxxNZQUc.js";
4
+ import { F as ct } from "./collectible.enum-CpTbpumt.js";
5
+ import "vue";
6
+ const rn = { version: 4, country_calling_codes: { 1: ["US", "AG", "AI", "AS", "BB", "BM", "BS", "CA", "DM", "DO", "GD", "GU", "JM", "KN", "KY", "LC", "MP", "MS", "PR", "SX", "TC", "TT", "VC", "VG", "VI"], 7: ["RU", "KZ"], 20: ["EG"], 27: ["ZA"], 30: ["GR"], 31: ["NL"], 32: ["BE"], 33: ["FR"], 34: ["ES"], 36: ["HU"], 39: ["IT", "VA"], 40: ["RO"], 41: ["CH"], 43: ["AT"], 44: ["GB", "GG", "IM", "JE"], 45: ["DK"], 46: ["SE"], 47: ["NO", "SJ"], 48: ["PL"], 49: ["DE"], 51: ["PE"], 52: ["MX"], 53: ["CU"], 54: ["AR"], 55: ["BR"], 56: ["CL"], 57: ["CO"], 58: ["VE"], 60: ["MY"], 61: ["AU", "CC", "CX"], 62: ["ID"], 63: ["PH"], 64: ["NZ"], 65: ["SG"], 66: ["TH"], 81: ["JP"], 82: ["KR"], 84: ["VN"], 86: ["CN"], 90: ["TR"], 91: ["IN"], 92: ["PK"], 93: ["AF"], 94: ["LK"], 95: ["MM"], 98: ["IR"], 211: ["SS"], 212: ["MA", "EH"], 213: ["DZ"], 216: ["TN"], 218: ["LY"], 220: ["GM"], 221: ["SN"], 222: ["MR"], 223: ["ML"], 224: ["GN"], 225: ["CI"], 226: ["BF"], 227: ["NE"], 228: ["TG"], 229: ["BJ"], 230: ["MU"], 231: ["LR"], 232: ["SL"], 233: ["GH"], 234: ["NG"], 235: ["TD"], 236: ["CF"], 237: ["CM"], 238: ["CV"], 239: ["ST"], 240: ["GQ"], 241: ["GA"], 242: ["CG"], 243: ["CD"], 244: ["AO"], 245: ["GW"], 246: ["IO"], 247: ["AC"], 248: ["SC"], 249: ["SD"], 250: ["RW"], 251: ["ET"], 252: ["SO"], 253: ["DJ"], 254: ["KE"], 255: ["TZ"], 256: ["UG"], 257: ["BI"], 258: ["MZ"], 260: ["ZM"], 261: ["MG"], 262: ["RE", "YT"], 263: ["ZW"], 264: ["NA"], 265: ["MW"], 266: ["LS"], 267: ["BW"], 268: ["SZ"], 269: ["KM"], 290: ["SH", "TA"], 291: ["ER"], 297: ["AW"], 298: ["FO"], 299: ["GL"], 350: ["GI"], 351: ["PT"], 352: ["LU"], 353: ["IE"], 354: ["IS"], 355: ["AL"], 356: ["MT"], 357: ["CY"], 358: ["FI", "AX"], 359: ["BG"], 370: ["LT"], 371: ["LV"], 372: ["EE"], 373: ["MD"], 374: ["AM"], 375: ["BY"], 376: ["AD"], 377: ["MC"], 378: ["SM"], 380: ["UA"], 381: ["RS"], 382: ["ME"], 383: ["XK"], 385: ["HR"], 386: ["SI"], 387: ["BA"], 389: ["MK"], 420: ["CZ"], 421: ["SK"], 423: ["LI"], 500: ["FK"], 501: ["BZ"], 502: ["GT"], 503: ["SV"], 504: ["HN"], 505: ["NI"], 506: ["CR"], 507: ["PA"], 508: ["PM"], 509: ["HT"], 590: ["GP", "BL", "MF"], 591: ["BO"], 592: ["GY"], 593: ["EC"], 594: ["GF"], 595: ["PY"], 596: ["MQ"], 597: ["SR"], 598: ["UY"], 599: ["CW", "BQ"], 670: ["TL"], 672: ["NF"], 673: ["BN"], 674: ["NR"], 675: ["PG"], 676: ["TO"], 677: ["SB"], 678: ["VU"], 679: ["FJ"], 680: ["PW"], 681: ["WF"], 682: ["CK"], 683: ["NU"], 685: ["WS"], 686: ["KI"], 687: ["NC"], 688: ["TV"], 689: ["PF"], 690: ["TK"], 691: ["FM"], 692: ["MH"], 850: ["KP"], 852: ["HK"], 853: ["MO"], 855: ["KH"], 856: ["LA"], 880: ["BD"], 886: ["TW"], 960: ["MV"], 961: ["LB"], 962: ["JO"], 963: ["SY"], 964: ["IQ"], 965: ["KW"], 966: ["SA"], 967: ["YE"], 968: ["OM"], 970: ["PS"], 971: ["AE"], 972: ["IL"], 973: ["BH"], 974: ["QA"], 975: ["BT"], 976: ["MN"], 977: ["NP"], 992: ["TJ"], 993: ["TM"], 994: ["AZ"], 995: ["GE"], 996: ["KG"], 998: ["UZ"] }, countries: { AC: ["247", "00", "(?:[01589]\\d|[46])\\d{4}", [5, 6]], AD: ["376", "00", "(?:1|6\\d)\\d{7}|[135-9]\\d{5}", [6, 8, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["[135-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["1"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]]], AE: ["971", "00", "(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"], ["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]], "0"], AF: ["93", "00", "[2-7]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"]], "0"], AG: ["1", "011", "(?:268|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([457]\\d{6})$|1", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2457]\\d{6})$|1", "264$1", 0, "264"], AL: ["355", "00", "(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}", [6, 7, 8, 9], [["(\\d{3})(\\d{3,4})", "$1 $2", ["80|9"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["4[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2358][2-5]|4"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["[23578]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["6"], "0$1"]], "0"], AM: ["374", "00", "(?:[1-489]\\d|55|60|77)\\d{6}", [8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[89]0"], "0 $1"], ["(\\d{3})(\\d{5})", "$1 $2", ["2|3[12]"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["1|47"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[3-9]"], "0$1"]], "0"], AO: ["244", "00", "[29]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[29]"]]]], AR: ["54", "00", "(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}", [10, 11], [["(\\d{4})(\\d{2})(\\d{4})", "$1 $2-$3", ["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])", "2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["1"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2-$3", ["[23]"], "0$1", 1], ["(\\d)(\\d{4})(\\d{2})(\\d{4})", "$2 15-$3-$4", ["9(?:2[2-469]|3[3-578])", "9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))", "9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 15-$3-$4", ["91"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d{3})(\\d{3})(\\d{5})", "$1-$2-$3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 15-$3-$4", ["9"], "0$1", 0, "$1 $2 $3-$4"]], "0", 0, "0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?", "9$1"], AS: ["1", "011", "(?:[58]\\d\\d|684|900)\\d{7}", [10], 0, "1", 0, "([267]\\d{6})$|1", "684$1", 0, "684"], AT: ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]", "(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], AU: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "(183[12])|0", 0, 0, 0, [["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], AW: ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], AX: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], AZ: ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365[45]|46", "1[28]|2|365(?:4|5[02])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], BA: ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], BB: ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "246$1", 0, "246"], BD: ["880", "00", "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]|2[23]"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], BE: ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], BF: ["226", "00", "[024-7]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-7]"]]]], BG: ["359", "00", "00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9, 12], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], BH: ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[02-4679]"]]]], BI: ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], BJ: ["229", "00", "(?:01\\d|8)\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], BL: ["590", "00", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], ["8[129]\\d{7}"], 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "441$1", 0, "441"], BN: ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], BO: ["591", "00(?:1\\d)?", "8001\\d{5}|(?:[2-467]\\d|50)\\d{6}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[235]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], BQ: ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], BR: ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37|86)", "300|4(?:0(?:0|20)|370|864)"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], BS: ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([3-8]\\d{6})$|1", "242$1", 0, "242"], BT: ["975", "00", "[178]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]]], BW: ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], BY: ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], BZ: ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], CA: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CD: ["243", "00", "(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["5"], "0$1"]], "0"], CF: ["236", "00", "8776\\d{4}|(?:[27]\\d|61)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-8]"]]]], CG: ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], CH: ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], CI: ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], CK: ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], CL: ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["60|809"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9(?:10|[2-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], CM: ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]", "(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "(1(?:[12]\\d|79)\\d\\d)|0", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["46"]], ["(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|9[14]"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0([3579]|4(?:[14]4|56))?"], CR: ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], CU: ["53", "119", "(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["[56]"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], CV: ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], CW: ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], CX: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CY: ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], CZ: ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], DE: ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|3[13])"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], DJ: ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], DK: ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], DM: ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "767$1", 0, "767"], DO: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8001|8[024]9"], DZ: ["213", "00", "(?:[1-4]|[5-79]\\d|80)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["9"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-8]"], "0$1"]], "0"], EC: ["593", "00", "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", [8, 9, 10, 11], [["(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)", 0, "$1-$2-$3"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], "0"], EE: ["372", "00", "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88", "[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]], ["(\\d{4})(\\d{3,4})", "$1 $2", ["[45]|8(?:00|[1-49])", "[45]|8(?:00[1-9]|[1-49])"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], EG: ["20", "00", "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", [8, 9, 10], [["(\\d)(\\d{7,8})", "$1 $2", ["[23]"], "0$1"], ["(\\d{2})(\\d{6,7})", "$1 $2", ["1[35]|[4-6]|8[2468]|9[235-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{8})", "$1 $2", ["1"], "0$1"]], "0"], EH: ["212", "00", "[5-8]\\d{8}", [9], 0, "0", 0, 0, 0, 0, 0, [["528[89]\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"], ["80[0-7]\\d{6}"], ["89\\d{7}"], 0, 0, 0, 0, ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]], ER: ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], ES: ["34", "00", "[5-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]]], ET: ["251", "00", "(?:11|[2-579]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-579]"], "0$1"]], "0"], FI: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{5})", "$1", ["20[2-59]"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["(?:[1-3]0|[68])0|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[14]|2[09]|50|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"], ["(\\d)(\\d{4,9})", "$1 $2", ["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], FJ: ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], FK: ["500", "00", "[2-7]\\d{4}", [5]], FM: ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], FO: ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{6})", "$1", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], FR: ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], GA: ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1"], GB: ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, "0|180020", 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], GD: ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "473$1", 0, "473"], GE: ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], GF: ["594", "00", "(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|80[6-9]|9[47]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "([25-9]\\d{5})$|0|180020", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], GH: ["233", "00", "[235]\\d{8}|800\\d{5,6}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2358]"], "0$1"]], "0"], GI: ["350", "00", "(?:[25]\\d|60)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], GL: ["299", "00", "(?:19|[2-689]\\d|70)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]]], GM: ["220", "00", "[2-9]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], GN: ["224", "00", "722\\d{6}|(?:3|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]]], GP: ["590", "00", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|80[6-9]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], ["8[129]\\d{7}"], 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], GQ: ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], GR: ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], GT: ["502", "00", "80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-8]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "671$1", 0, "671"], GW: ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], GY: ["592", "001", "(?:[2-8]\\d{3}|9008)\\d{3}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], HN: ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], HR: ["385", "00", "[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}", [7, 8, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6|7[245]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-57]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "[2-589]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-589]"]]]], HU: ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], ID: ["62", "00[89]", "00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], IE: ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], IL: ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], IM: ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([25-8]\\d{5})$|0|180020", "1624$1", 0, "74576|(?:16|7[56])24"], IN: ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807", "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["16|[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["18[06]", "18[06]0"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], IO: ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], IQ: ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], IR: ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], IS: ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], IT: ["39", "00", "0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]|43"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[03]"]]], 0, 0, 0, 0, 0, 0, [["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], ["3[2-8]\\d{9,10}", [11, 12]], 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], JE: ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([0-24-8]\\d{5})$|0|180020", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], JM: ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], JO: ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[47]"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["3|4(?:2[09]|7[01])|6[1-9]", "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[25-9]"], "0$1"]], "0", 0, "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0", "$1"], KE: ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], KG: ["996", "00", "8\\d{9}|[235-9]\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], KH: ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], KI: ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], KM: ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], KN: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "869$1", 0, "869"], KP: ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], KR: ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[36]0|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], KW: ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "345$1", 0, "345"], KZ: ["7", "810", "8\\d{13}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "7", 0, "8~10"], LA: ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["3"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], LB: ["961", "00", "[27-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "([2-8]\\d{6})$|1", "758$1", 0, "758"], LI: ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "(1001)|0"], LK: ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], LR: ["231", "00", "(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["4[67]|[56]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-578]"], "0$1"]], "0"], LS: ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], LT: ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(0-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(0-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(0-$1)", 1]], "0", 0, "[08]"], LU: ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["20"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["20"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], LV: ["371", "00", "(?:[268]\\d|78|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2679]|8[01]"]]]], LY: ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], MA: ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{4})(\\d{5})", "$1-$2", ["892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8(?:0[0-7]|9)"], "0$1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[5-8]"], "0$1"]], "0", 0, 0, 0, 0, "[5-8]"], MC: ["377", "00", "(?:[3489]|[67]\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[67]"], "0$1"]], "0"], MD: ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], ME: ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], MF: ["590", "00", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], ["8[129]\\d{7}"], 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "([24-9]\\d{6})$|0", "20$1"], MH: ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], MK: ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], ML: ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], MM: ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|452|678|86", "[12]|452|6788|86"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], MN: ["976", "001", "[12]\\d{7,9}|[5-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[12]1"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[5-9]"]], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[12]2[1-3]"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["[12](?:27|3[2-8]|4[2-68]|5[1-4689])", "[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["[12]"], "0$1"]], "0"], MO: ["853", "00", "0800\\d{3}|(?:28|[68]\\d)\\d{6}", [7, 8], [["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], MP: ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "670$1", 0, "670"], MQ: ["596", "00", "7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|8(?:0[6-9]|[36])"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], MR: ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], MS: ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "([34]\\d{6})$|1", "664$1", 0, "664"], MT: ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], MU: ["230", "0(?:0|[24-7]0|3[03])", "(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[57]"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 0, 0, 0, 0, 0, 0, 0, "020"], MV: ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[34679]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "(?:[1289]\\d|31|77)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], MX: ["52", "0[09]", "[2-9]\\d{9}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MY: ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1(?:[367]|80)"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], MZ: ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-79]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], NA: ["264", "00", "[68]\\d{7,8}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["87"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], NC: ["687", "00", "(?:050|[2-57-9]\\d\\d)\\d{3}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[02-57-9]"]]]], NE: ["227", "00", "[027-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["08"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[089]|2[013]|7[0467]"]]]], NF: ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], NG: ["234", "009", "(?:20|9\\d)\\d{8}|[78]\\d{9,13}", [10, 11, 12, 13, 14], [["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["20[129]"], "0$1"], ["(\\d{4})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], NI: ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], NL: ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], NO: ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], NP: ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[24-9]"]]]], NU: ["683", "00", "(?:[4-7]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|8|90", "50(?:[0367]|88)|8|90"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[589]"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], PA: ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], PE: ["51", "00|19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, "00", " Anexo "], PF: ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], PG: ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[78]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], PH: ["63", "00", "(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["2"], "(0$1)"], ["(\\d{4})(\\d{4,6})", "$1 $2", ["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2", "3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"], "(0$1)"], ["(\\d{5})(\\d{4})", "$1 $2", ["346|4(?:27|9[35])|883", "3469|4(?:279|9(?:30|56))|8834"], "(0$1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|8[2-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["1"]]], "0"], PK: ["92", "00", "122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,7})", "$1 $2 $3", ["[89]0"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["1"]], ["(\\d{3})(\\d{6,7})", "$1 $2", ["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])", "9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"], "(0$1)"], ["(\\d{2})(\\d{7,8})", "$1 $2", ["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"], "(0$1)"], ["(\\d{5})(\\d{5})", "$1 $2", ["58"], "(0$1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[24-9]"], "(0$1)"]], "0"], PL: ["48", "00", "(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|20|64"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["64"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]]], PM: ["508", "00", "[78]\\d{8}|[2-9]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], PR: ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], PS: ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], PT: ["351", "00", "1693\\d{5}|(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["16|[236-9]"]]]], PW: ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], PY: ["595", "00", "[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["3[289]|4[246-8]|61|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], QA: ["974", "00", "800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}", [7, 8, 9, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["2[136]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "709\\d{6}|(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], RO: ["40", "00", "(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}", [6, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], ["(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[236-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], RS: ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], RU: ["7", "810", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, "[3489]", 0, "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], SA: ["966", "00", "(?:[15]\\d|800|92)\\d{7}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "[6-9]\\d{6}|[1-6]\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "(?:[2489]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], SD: ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], SE: ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], SG: ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], SH: ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], SI: ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], SJ: ["47", "00", "0\\d{4}|(?:[489]\\d|79)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], SK: ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], SL: ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], SM: ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], SN: ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], SO: ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\d{7})", "$1 $2", ["(?:2|90)4|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[348]|64|79|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|7[67]|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|[6-8]\\d|90)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-9]"]]]], SS: ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], ST: ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], SV: ["503", "00", "[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[25-7]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], SX: ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "(5\\d{6})$|1", "721$1", 0, "721"], SY: ["963", "00", "[1-359]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-4]|5[1-3]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[59]"], "0$1", 1]], "0"], SZ: ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], TA: ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], TC: ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "([2-479]\\d{6})$|1", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|[3689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], TG: ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], TH: ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], TJ: ["992", "810", "(?:[0-57-9]\\d|66)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3(?:[1245]|3[12])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["\\d"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], TK: ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], TL: ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], TM: ["993", "810", "(?:[1-6]\\d|71)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[67]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TN: ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], TO: ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], TR: ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-579]|61)", "5(?:[0-579]|61[06])", "5(?:[0-579]|61[06]1)"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], TT: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-46-8]\\d{6})$|1", "868$1", 0, "868"], TV: ["688", "00", "(?:2|7\\d\\d|90)\\d{4}", [5, 6, 7], [["(\\d{2})(\\d{3})", "$1 $2", ["2"]], ["(\\d{2})(\\d{4})", "$1 $2", ["90"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], TW: ["886", "0(?:0[25-79]|19)", "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}", [7, 8, 9, 10, 11], [["(\\d{2})(\\d)(\\d{4})", "$1 $2 $3", ["202"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[258]0"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]", "[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, "#"], TZ: ["255", "00[056]", "(?:[25-8]\\d|41|90)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["5"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], "0"], UA: ["380", "00", "[89]\\d{9}|[3-9]\\d{8}", [9, 10], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]", "6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])", "3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|89|9[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "0~0"], UG: ["256", "00[057]", "800\\d{6}|(?:[29]0|[347]\\d)\\d{7}", [9], [["(\\d{4})(\\d{5})", "$1 $2", ["202", "2024"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[27-9]|4(?:6[45]|[7-9])"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[34]"], "0$1"]], "0"], US: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [10], [["(\\d{3})(\\d{4})", "$1-$2", ["310"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{4,5})", "$1", ["21"]], ["(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "00", "(?:20|33|[5-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]]], VA: ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11, 12], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "784$1", 0, "784"], VE: ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], VG: ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-578]\\d{6})$|1", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "340$1", 0, "340"], VN: ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["80"], "0$1", 1], ["(\\d{4})(\\d{4,6})", "$1 $2", ["1"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[357-9]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], VU: ["678", "00", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], WF: ["681", "00", "(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[47-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], WS: ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], XK: ["383", "00", "2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2|39"], "0$1"], ["(\\d{2})(\\d{7,10})", "$1 $2", ["3"], "0$1"]], "0"], YE: ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7(?:[24-6]|8[0-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"], ["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"], ["80\\d{7}"], 0, 0, 0, 0, 0, ["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]], ZA: ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], ZM: ["260", "00", "800\\d{6}|(?:21|[579]\\d|63)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[579]"], "0$1"]], "0"], ZW: ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "0$1"]], "0"] }, nonGeographic: { 800: ["800", 0, "(?:00|[1-9]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:00|[1-9]\\d)\\d{6}"]]], 808: ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], 870: ["870", 0, "7\\d{11}|[235-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"], 0, 0, 0, 0, 0, 0, ["2\\d{8}", [9]]]], 878: ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], 881: ["881", 0, "6\\d{9}|[0-36-9]\\d{8}", [9, 10], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], ["(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], 0, 0, 0, 0, 0, 0, [0, ["6\\d{9}|[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["49"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["1[36]|9"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["16"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|23|3(?:[15]|4[57])|4|5[12]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-35]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, ["348[57]\\d{7}", [11]], 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]], 883: ["883", 0, "(?:[1-4]\\d|51)\\d{6,10}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,8})", "$1 $2 $3", ["[14]|2[24-689]|3[02-689]|51[24-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["21"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[235]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]], 888: ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], 979: ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
7
+ function on(t, n) {
8
+ var d = Array.prototype.slice.call(n);
9
+ return d.push(rn), t.apply(this, d);
10
+ }
11
+ function Le(t, n) {
12
+ t = t.split("-"), n = n.split("-");
13
+ for (var d = t[0].split("."), r = n[0].split("."), i = 0; i < 3; i++) {
14
+ var a = Number(d[i]), $ = Number(r[i]);
15
+ if (a > $) return 1;
16
+ if ($ > a) return -1;
17
+ if (!isNaN(a) && isNaN($)) return 1;
18
+ if (isNaN(a) && !isNaN($)) return -1;
19
+ }
20
+ return t[1] && n[1] ? t[1] > n[1] ? 1 : t[1] < n[1] ? -1 : 0 : !t[1] && n[1] ? 1 : t[1] && !n[1] ? -1 : 0;
21
+ }
22
+ var an = {}.constructor;
23
+ function j(t) {
24
+ return t != null && t.constructor === an;
25
+ }
26
+ function B(t) {
27
+ "@babel/helpers - typeof";
28
+ return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
29
+ return typeof n;
30
+ } : function(n) {
31
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
32
+ }, B(t);
33
+ }
34
+ function oe(t, n) {
35
+ if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
36
+ }
37
+ function $n(t, n) {
38
+ for (var d = 0; d < n.length; d++) {
39
+ var r = n[d];
40
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, sn(r.key), r);
41
+ }
42
+ }
43
+ function ae(t, n, d) {
44
+ return n && $n(t.prototype, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
45
+ }
46
+ function sn(t) {
47
+ var n = ln(t, "string");
48
+ return B(n) == "symbol" ? n : n + "";
49
+ }
50
+ function ln(t, n) {
51
+ if (B(t) != "object" || !t) return t;
52
+ var d = t[Symbol.toPrimitive];
53
+ if (d !== void 0) {
54
+ var r = d.call(t, n);
55
+ if (B(r) != "object") return r;
56
+ throw new TypeError("@@toPrimitive must return a primitive value.");
57
+ }
58
+ return String(t);
59
+ }
60
+ var un = "1.2.0", cn = "1.7.35", we = " ext. ", mn = /^\d+$/, y = /* @__PURE__ */ function() {
61
+ function t(n) {
62
+ oe(this, t), mt(n), this.metadata = n, ft.call(this, n);
63
+ }
64
+ return ae(t, [{
65
+ key: "getCountries",
66
+ value: function() {
67
+ return Object.keys(this.metadata.countries).filter(function(d) {
68
+ return d !== "001";
69
+ });
70
+ }
71
+ }, {
72
+ key: "getCountryMetadata",
73
+ value: function(d) {
74
+ return this.metadata.countries[d];
75
+ }
76
+ }, {
77
+ key: "nonGeographic",
78
+ value: function() {
79
+ if (!(this.v1 || this.v2 || this.v3))
80
+ return this.metadata.nonGeographic || this.metadata.nonGeographical;
81
+ }
82
+ }, {
83
+ key: "hasCountry",
84
+ value: function(d) {
85
+ return this.getCountryMetadata(d) !== void 0;
86
+ }
87
+ }, {
88
+ key: "hasCallingCode",
89
+ value: function(d) {
90
+ if (this.getCountryCodesForCallingCode(d))
91
+ return !0;
92
+ if (this.nonGeographic()) {
93
+ if (this.nonGeographic()[d])
94
+ return !0;
95
+ } else {
96
+ var r = this.countryCallingCodes()[d];
97
+ if (r && r.length === 1 && r[0] === "001")
98
+ return !0;
99
+ }
100
+ }
101
+ }, {
102
+ key: "isNonGeographicCallingCode",
103
+ value: function(d) {
104
+ return this.nonGeographic() ? !!this.nonGeographic()[d] : !this.getCountryCodesForCallingCode(d);
105
+ }
106
+ // Deprecated.
107
+ }, {
108
+ key: "country",
109
+ value: function(d) {
110
+ return this.selectNumberingPlan(d);
111
+ }
112
+ }, {
113
+ key: "selectNumberingPlan",
114
+ value: function(d, r) {
115
+ if (d && mn.test(d) && (r = d, d = null), d && d !== "001") {
116
+ if (!this.hasCountry(d))
117
+ throw new Error("Unknown country: ".concat(d));
118
+ this.numberingPlan = new je(this.getCountryMetadata(d), this);
119
+ } else if (r) {
120
+ if (!this.hasCallingCode(r))
121
+ throw new Error("Unknown calling code: ".concat(r));
122
+ this.numberingPlan = new je(this.getNumberingPlanMetadata(r), this);
123
+ } else
124
+ this.numberingPlan = void 0;
125
+ return this;
126
+ }
127
+ }, {
128
+ key: "getCountryCodesForCallingCode",
129
+ value: function(d) {
130
+ var r = this.countryCallingCodes()[d];
131
+ if (r)
132
+ return r.length === 1 && r[0].length === 3 ? void 0 : r;
133
+ }
134
+ }, {
135
+ key: "getCountryCodeForCallingCode",
136
+ value: function(d) {
137
+ var r = this.getCountryCodesForCallingCode(d);
138
+ if (r)
139
+ return r[0];
140
+ }
141
+ }, {
142
+ key: "getNumberingPlanMetadata",
143
+ value: function(d) {
144
+ var r = this.getCountryCodeForCallingCode(d);
145
+ if (r)
146
+ return this.getCountryMetadata(r);
147
+ if (this.nonGeographic()) {
148
+ var i = this.nonGeographic()[d];
149
+ if (i)
150
+ return i;
151
+ } else {
152
+ var a = this.countryCallingCodes()[d];
153
+ if (a && a.length === 1 && a[0] === "001")
154
+ return this.metadata.countries["001"];
155
+ }
156
+ }
157
+ // Deprecated.
158
+ }, {
159
+ key: "countryCallingCode",
160
+ value: function() {
161
+ return this.numberingPlan.callingCode();
162
+ }
163
+ // Deprecated.
164
+ }, {
165
+ key: "IDDPrefix",
166
+ value: function() {
167
+ return this.numberingPlan.IDDPrefix();
168
+ }
169
+ // Deprecated.
170
+ }, {
171
+ key: "defaultIDDPrefix",
172
+ value: function() {
173
+ return this.numberingPlan.defaultIDDPrefix();
174
+ }
175
+ // Deprecated.
176
+ }, {
177
+ key: "nationalNumberPattern",
178
+ value: function() {
179
+ return this.numberingPlan.nationalNumberPattern();
180
+ }
181
+ // Deprecated.
182
+ }, {
183
+ key: "possibleLengths",
184
+ value: function() {
185
+ return this.numberingPlan.possibleLengths();
186
+ }
187
+ // Deprecated.
188
+ }, {
189
+ key: "formats",
190
+ value: function() {
191
+ return this.numberingPlan.formats();
192
+ }
193
+ // Deprecated.
194
+ }, {
195
+ key: "nationalPrefixForParsing",
196
+ value: function() {
197
+ return this.numberingPlan.nationalPrefixForParsing();
198
+ }
199
+ // Deprecated.
200
+ }, {
201
+ key: "nationalPrefixTransformRule",
202
+ value: function() {
203
+ return this.numberingPlan.nationalPrefixTransformRule();
204
+ }
205
+ // Deprecated.
206
+ }, {
207
+ key: "leadingDigits",
208
+ value: function() {
209
+ return this.numberingPlan.leadingDigits();
210
+ }
211
+ // Deprecated.
212
+ }, {
213
+ key: "hasTypes",
214
+ value: function() {
215
+ return this.numberingPlan.hasTypes();
216
+ }
217
+ // Deprecated.
218
+ }, {
219
+ key: "type",
220
+ value: function(d) {
221
+ return this.numberingPlan.type(d);
222
+ }
223
+ // Deprecated.
224
+ }, {
225
+ key: "ext",
226
+ value: function() {
227
+ return this.numberingPlan.ext();
228
+ }
229
+ }, {
230
+ key: "countryCallingCodes",
231
+ value: function() {
232
+ return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
233
+ }
234
+ // Deprecated.
235
+ }, {
236
+ key: "chooseCountryByCountryCallingCode",
237
+ value: function(d) {
238
+ return this.selectNumberingPlan(d);
239
+ }
240
+ }, {
241
+ key: "hasSelectedNumberingPlan",
242
+ value: function() {
243
+ return this.numberingPlan !== void 0;
244
+ }
245
+ }]);
246
+ }(), je = /* @__PURE__ */ function() {
247
+ function t(n, d) {
248
+ oe(this, t), this.globalMetadataObject = d, this.metadata = n, ft.call(this, d.metadata);
249
+ }
250
+ return ae(t, [{
251
+ key: "callingCode",
252
+ value: function() {
253
+ return this.metadata[0];
254
+ }
255
+ // Formatting information for regions which share
256
+ // a country calling code is contained by only one region
257
+ // for performance reasons. For example, for NANPA region
258
+ // ("North American Numbering Plan Administration",
259
+ // which includes USA, Canada, Cayman Islands, Bahamas, etc)
260
+ // it will be contained in the metadata for `US`.
261
+ }, {
262
+ key: "getDefaultCountryMetadataForRegion",
263
+ value: function() {
264
+ return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
265
+ }
266
+ // Is always present.
267
+ }, {
268
+ key: "IDDPrefix",
269
+ value: function() {
270
+ if (!(this.v1 || this.v2))
271
+ return this.metadata[1];
272
+ }
273
+ // Is only present when a country supports multiple IDD prefixes.
274
+ }, {
275
+ key: "defaultIDDPrefix",
276
+ value: function() {
277
+ if (!(this.v1 || this.v2))
278
+ return this.metadata[12];
279
+ }
280
+ }, {
281
+ key: "nationalNumberPattern",
282
+ value: function() {
283
+ return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
284
+ }
285
+ // "possible length" data is always present in Google's metadata.
286
+ }, {
287
+ key: "possibleLengths",
288
+ value: function() {
289
+ if (!this.v1)
290
+ return this.metadata[this.v2 ? 2 : 3];
291
+ }
292
+ }, {
293
+ key: "_getFormats",
294
+ value: function(d) {
295
+ return d[this.v1 ? 2 : this.v2 ? 3 : 4];
296
+ }
297
+ // For countries of the same region (e.g. NANPA)
298
+ // formats are all stored in the "main" country for that region.
299
+ // E.g. "RU" and "KZ", "US" and "CA".
300
+ }, {
301
+ key: "formats",
302
+ value: function() {
303
+ var d = this, r = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
304
+ return r.map(function(i) {
305
+ return new fn(i, d);
306
+ });
307
+ }
308
+ }, {
309
+ key: "nationalPrefix",
310
+ value: function() {
311
+ return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
312
+ }
313
+ }, {
314
+ key: "_getNationalPrefixFormattingRule",
315
+ value: function(d) {
316
+ return d[this.v1 ? 4 : this.v2 ? 5 : 6];
317
+ }
318
+ // For countries of the same region (e.g. NANPA)
319
+ // national prefix formatting rule is stored in the "main" country for that region.
320
+ // E.g. "RU" and "KZ", "US" and "CA".
321
+ }, {
322
+ key: "nationalPrefixFormattingRule",
323
+ value: function() {
324
+ return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
325
+ }
326
+ }, {
327
+ key: "_nationalPrefixForParsing",
328
+ value: function() {
329
+ return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
330
+ }
331
+ }, {
332
+ key: "nationalPrefixForParsing",
333
+ value: function() {
334
+ return this._nationalPrefixForParsing() || this.nationalPrefix();
335
+ }
336
+ }, {
337
+ key: "nationalPrefixTransformRule",
338
+ value: function() {
339
+ return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
340
+ }
341
+ }, {
342
+ key: "_getNationalPrefixIsOptionalWhenFormatting",
343
+ value: function() {
344
+ return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
345
+ }
346
+ // For countries of the same region (e.g. NANPA)
347
+ // "national prefix is optional when formatting" flag is
348
+ // stored in the "main" country for that region.
349
+ // E.g. "RU" and "KZ", "US" and "CA".
350
+ }, {
351
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
352
+ value: function() {
353
+ return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
354
+ }
355
+ }, {
356
+ key: "leadingDigits",
357
+ value: function() {
358
+ return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
359
+ }
360
+ }, {
361
+ key: "types",
362
+ value: function() {
363
+ return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
364
+ }
365
+ }, {
366
+ key: "hasTypes",
367
+ value: function() {
368
+ return this.types() && this.types().length === 0 ? !1 : !!this.types();
369
+ }
370
+ }, {
371
+ key: "type",
372
+ value: function(d) {
373
+ if (this.hasTypes() && Be(this.types(), d))
374
+ return new pn(Be(this.types(), d), this);
375
+ }
376
+ }, {
377
+ key: "ext",
378
+ value: function() {
379
+ return this.v1 || this.v2 ? we : this.metadata[13] || we;
380
+ }
381
+ }]);
382
+ }(), fn = /* @__PURE__ */ function() {
383
+ function t(n, d) {
384
+ oe(this, t), this._format = n, this.metadata = d;
385
+ }
386
+ return ae(t, [{
387
+ key: "pattern",
388
+ value: function() {
389
+ return this._format[0];
390
+ }
391
+ }, {
392
+ key: "format",
393
+ value: function() {
394
+ return this._format[1];
395
+ }
396
+ }, {
397
+ key: "leadingDigitsPatterns",
398
+ value: function() {
399
+ return this._format[2] || [];
400
+ }
401
+ }, {
402
+ key: "nationalPrefixFormattingRule",
403
+ value: function() {
404
+ return this._format[3] || this.metadata.nationalPrefixFormattingRule();
405
+ }
406
+ }, {
407
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
408
+ value: function() {
409
+ return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
410
+ }
411
+ }, {
412
+ key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
413
+ value: function() {
414
+ return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
415
+ }
416
+ // Checks whether national prefix formatting rule contains national prefix.
417
+ }, {
418
+ key: "usesNationalPrefix",
419
+ value: function() {
420
+ return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
421
+ !gn.test(this.nationalPrefixFormattingRule()));
422
+ }
423
+ }, {
424
+ key: "internationalFormat",
425
+ value: function() {
426
+ return this._format[5] || this.format();
427
+ }
428
+ }]);
429
+ }(), gn = /^\(?\$1\)?$/, pn = /* @__PURE__ */ function() {
430
+ function t(n, d) {
431
+ oe(this, t), this.type = n, this.metadata = d;
432
+ }
433
+ return ae(t, [{
434
+ key: "pattern",
435
+ value: function() {
436
+ return this.metadata.v1 ? this.type : this.type[0];
437
+ }
438
+ }, {
439
+ key: "possibleLengths",
440
+ value: function() {
441
+ if (!this.metadata.v1)
442
+ return this.type[1] || this.metadata.possibleLengths();
443
+ }
444
+ }]);
445
+ }();
446
+ function Be(t, n) {
447
+ switch (n) {
448
+ case "FIXED_LINE":
449
+ return t[0];
450
+ case "MOBILE":
451
+ return t[1];
452
+ case "TOLL_FREE":
453
+ return t[2];
454
+ case "PREMIUM_RATE":
455
+ return t[3];
456
+ case "PERSONAL_NUMBER":
457
+ return t[4];
458
+ case "VOICEMAIL":
459
+ return t[5];
460
+ case "UAN":
461
+ return t[6];
462
+ case "PAGER":
463
+ return t[7];
464
+ case "VOIP":
465
+ return t[8];
466
+ case "SHARED_COST":
467
+ return t[9];
468
+ }
469
+ }
470
+ function mt(t) {
471
+ if (!t)
472
+ throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
473
+ if (!j(t) || !j(t.countries))
474
+ throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(j(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " + bn(t) + ": " + t, "."));
475
+ }
476
+ var bn = function(n) {
477
+ return B(n);
478
+ };
479
+ function Pe(t, n) {
480
+ if (n = new y(n), n.hasCountry(t))
481
+ return n.selectNumberingPlan(t).countryCallingCode();
482
+ throw new Error("Unknown country: ".concat(t));
483
+ }
484
+ function yn(t, n) {
485
+ return n.countries.hasOwnProperty(t);
486
+ }
487
+ function ft(t) {
488
+ var n = t.version;
489
+ typeof n == "number" ? (this.v1 = n === 1, this.v2 = n === 2, this.v3 = n === 3, this.v4 = n === 4) : n ? Le(n, un) === -1 ? this.v2 = !0 : Le(n, cn) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
490
+ }
491
+ function Ie(t, n, d) {
492
+ return _n(t, n, void 0, d);
493
+ }
494
+ function _n(t, n, d, r) {
495
+ n && (r = new y(r.metadata), r.selectNumberingPlan(n));
496
+ var i = r.type(d), a = i && i.possibleLengths() || r.possibleLengths();
497
+ if (!a)
498
+ return "IS_POSSIBLE";
499
+ var $ = t.length, s = a[0];
500
+ return s === $ ? "IS_POSSIBLE" : s > $ ? "TOO_SHORT" : a[a.length - 1] < $ ? "TOO_LONG" : a.indexOf($, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
501
+ }
502
+ function En(t, n, d) {
503
+ if (n === void 0 && (n = {}), d = new y(d), n.v2) {
504
+ if (!t.countryCallingCode)
505
+ throw new Error("Invalid phone number object passed");
506
+ d.selectNumberingPlan(t.countryCallingCode);
507
+ } else {
508
+ if (!t.phone)
509
+ return !1;
510
+ if (t.country) {
511
+ if (!d.hasCountry(t.country))
512
+ throw new Error("Unknown country: ".concat(t.country));
513
+ d.selectNumberingPlan(t.country);
514
+ } else {
515
+ if (!t.countryCallingCode)
516
+ throw new Error("Invalid phone number object passed");
517
+ d.selectNumberingPlan(t.countryCallingCode);
518
+ }
519
+ }
520
+ if (d.possibleLengths())
521
+ return gt(t.phone || t.nationalNumber, t.country, d);
522
+ if (t.countryCallingCode && d.isNonGeographicCallingCode(t.countryCallingCode))
523
+ return !0;
524
+ throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
525
+ }
526
+ function gt(t, n, d) {
527
+ switch (Ie(t, n, d)) {
528
+ case "IS_POSSIBLE":
529
+ return !0;
530
+ default:
531
+ return !1;
532
+ }
533
+ }
534
+ function A(t, n) {
535
+ return t = t || "", new RegExp("^(?:" + n + ")$").test(t);
536
+ }
537
+ function hn(t, n) {
538
+ var d = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
539
+ if (d) return (d = d.call(t)).next.bind(d);
540
+ if (Array.isArray(t) || (d = vn(t)) || n) {
541
+ d && (t = d);
542
+ var r = 0;
543
+ return function() {
544
+ return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] };
545
+ };
546
+ }
547
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
548
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
549
+ }
550
+ function vn(t, n) {
551
+ if (t) {
552
+ if (typeof t == "string") return Ue(t, n);
553
+ var d = {}.toString.call(t).slice(8, -1);
554
+ return d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set" ? Array.from(t) : d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d) ? Ue(t, n) : void 0;
555
+ }
556
+ }
557
+ function Ue(t, n) {
558
+ (n == null || n > t.length) && (n = t.length);
559
+ for (var d = 0, r = Array(n); d < n; d++) r[d] = t[d];
560
+ return r;
561
+ }
562
+ var Cn = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
563
+ function Ne(t, n, d) {
564
+ if (n = n || {}, !(!t.country && !t.countryCallingCode)) {
565
+ d = new y(d), d.selectNumberingPlan(t.country, t.countryCallingCode);
566
+ var r = n.v2 ? t.nationalNumber : t.phone;
567
+ if (A(r, d.nationalNumberPattern())) {
568
+ if (ge(r, "FIXED_LINE", d))
569
+ return d.type("MOBILE") && d.type("MOBILE").pattern() === "" || !d.type("MOBILE") || ge(r, "MOBILE", d) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
570
+ for (var i = hn(Cn), a; !(a = i()).done; ) {
571
+ var $ = a.value;
572
+ if (ge(r, $, d))
573
+ return $;
574
+ }
575
+ }
576
+ }
577
+ }
578
+ function ge(t, n, d) {
579
+ var r = d.type(n);
580
+ return !r || !r.pattern() || r.possibleLengths() && r.possibleLengths().indexOf(t.length) < 0 ? !1 : A(t, r.pattern());
581
+ }
582
+ function Pn(t, n, d) {
583
+ if (n = n || {}, d = new y(d), d.selectNumberingPlan(t.country, t.countryCallingCode), d.hasTypes())
584
+ return Ne(t, n, d.metadata) !== void 0;
585
+ var r = n.v2 ? t.nationalNumber : t.phone;
586
+ return A(r, d.nationalNumberPattern());
587
+ }
588
+ function In(t, n, d) {
589
+ var r = new y(d), i = r.getCountryCodesForCallingCode(t);
590
+ return i ? i.filter(function(a) {
591
+ return Nn(n, a, d);
592
+ }) : [];
593
+ }
594
+ function Nn(t, n, d) {
595
+ var r = new y(d);
596
+ return r.selectNumberingPlan(n), r.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
597
+ }
598
+ var Re = 2, Rn = 17, Fn = 3, h = "0-90-9٠-٩۰-۹", An = "-‐-―−ー-", Tn = "//", Sn = "..", On = "  ­​⁠ ", Mn = "()()[]\\[\\]", xn = "~⁓∼~", ee = "".concat(An).concat(Tn).concat(Sn).concat(On).concat(Mn).concat(xn), Fe = "++", Dn = new RegExp("([" + h + "])");
599
+ function Ln(t, n, d, r) {
600
+ if (n) {
601
+ var i = new y(r);
602
+ i.selectNumberingPlan(n, d);
603
+ var a = new RegExp(i.IDDPrefix());
604
+ if (t.search(a) === 0) {
605
+ t = t.slice(t.match(a)[0].length);
606
+ var $ = t.match(Dn);
607
+ if (!($ && $[1] != null && $[1].length > 0 && $[1] === "0"))
608
+ return t;
609
+ }
610
+ }
611
+ }
612
+ function wn(t, n) {
613
+ if (t && n.numberingPlan.nationalPrefixForParsing()) {
614
+ var d = new RegExp("^(?:" + n.numberingPlan.nationalPrefixForParsing() + ")"), r = d.exec(t);
615
+ if (r) {
616
+ var i, a, $ = r.length - 1, s = $ > 0 && r[$];
617
+ if (n.nationalPrefixTransformRule() && s)
618
+ i = t.replace(d, n.nationalPrefixTransformRule()), $ > 1 && (a = r[1]);
619
+ else {
620
+ var l = r[0];
621
+ i = t.slice(l.length), s && (a = r[1]);
622
+ }
623
+ var u;
624
+ if (s) {
625
+ var p = t.indexOf(r[1]), E = t.slice(0, p);
626
+ E === n.numberingPlan.nationalPrefix() && (u = n.numberingPlan.nationalPrefix());
627
+ } else
628
+ u = r[0];
629
+ return {
630
+ nationalNumber: i,
631
+ nationalPrefix: u,
632
+ carrierCode: a
633
+ };
634
+ }
635
+ }
636
+ return {
637
+ nationalNumber: t
638
+ };
639
+ }
640
+ function jn(t, n) {
641
+ var d = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
642
+ if (d) return (d = d.call(t)).next.bind(d);
643
+ if (Array.isArray(t) || (d = Bn(t)) || n) {
644
+ d && (t = d);
645
+ var r = 0;
646
+ return function() {
647
+ return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] };
648
+ };
649
+ }
650
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
651
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
652
+ }
653
+ function Bn(t, n) {
654
+ if (t) {
655
+ if (typeof t == "string") return Ge(t, n);
656
+ var d = {}.toString.call(t).slice(8, -1);
657
+ return d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set" ? Array.from(t) : d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d) ? Ge(t, n) : void 0;
658
+ }
659
+ }
660
+ function Ge(t, n) {
661
+ (n == null || n > t.length) && (n = t.length);
662
+ for (var d = 0, r = Array(n); d < n; d++) r[d] = t[d];
663
+ return r;
664
+ }
665
+ function Un(t, n) {
666
+ var d = n.countries, r = n.metadata;
667
+ r = new y(r);
668
+ for (var i = jn(d), a; !(a = i()).done; ) {
669
+ var $ = a.value;
670
+ if (r.selectNumberingPlan($), r.leadingDigits()) {
671
+ if (t && t.search(r.leadingDigits()) === 0)
672
+ return $;
673
+ } else if (Ne({
674
+ phone: t,
675
+ country: $
676
+ }, void 0, r.metadata))
677
+ return $;
678
+ }
679
+ }
680
+ function pt(t, n) {
681
+ var d = n.nationalNumber, r = n.metadata, i = r.getCountryCodesForCallingCode(t);
682
+ if (i)
683
+ return i.length === 1 ? i[0] : Un(d, {
684
+ countries: i,
685
+ metadata: r.metadata
686
+ });
687
+ }
688
+ function _e(t, n, d) {
689
+ var r = wn(t, d), i = r.carrierCode, a = r.nationalNumber;
690
+ if (a !== t) {
691
+ if (!Gn(t, a, d))
692
+ return {
693
+ nationalNumber: t
694
+ };
695
+ if (d.numberingPlan.possibleLengths() && (n || (n = pt(d.numberingPlan.callingCode(), {
696
+ nationalNumber: a,
697
+ metadata: d
698
+ })), !kn(a, n, d)))
699
+ return {
700
+ nationalNumber: t
701
+ };
702
+ }
703
+ return {
704
+ nationalNumber: a,
705
+ carrierCode: i
706
+ };
707
+ }
708
+ function Gn(t, n, d) {
709
+ return !(A(t, d.nationalNumberPattern()) && !A(n, d.nationalNumberPattern()));
710
+ }
711
+ function kn(t, n, d) {
712
+ switch (Ie(t, n, d)) {
713
+ case "TOO_SHORT":
714
+ case "INVALID_LENGTH":
715
+ return !1;
716
+ default:
717
+ return !0;
718
+ }
719
+ }
720
+ function Hn(t, n, d, r, i) {
721
+ var a = d ? Pe(d, i) : r;
722
+ if (t.indexOf(a) === 0) {
723
+ i = new y(i), i.selectNumberingPlan(d, a);
724
+ var $ = t.slice(a.length), s = _e($, n, i), l = s.nationalNumber, u = _e(t, n, i), p = u.nationalNumber;
725
+ if (!A(p, i.nationalNumberPattern()) && A(l, i.nationalNumberPattern()) || Ie(p, n, i) === "TOO_LONG")
726
+ return {
727
+ countryCallingCode: a,
728
+ number: $
729
+ };
730
+ }
731
+ return {
732
+ number: t
733
+ };
734
+ }
735
+ function bt(t, n, d, r, i) {
736
+ if (!t)
737
+ return {};
738
+ var a;
739
+ if (t[0] !== "+") {
740
+ var $ = Ln(t, d, r, i);
741
+ if ($ && $ !== t)
742
+ a = !0, t = "+" + $;
743
+ else {
744
+ if (d || r) {
745
+ var s = Hn(t, n, d, r, i), l = s.countryCallingCode, u = s.number;
746
+ if (l)
747
+ return {
748
+ countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
749
+ countryCallingCode: l,
750
+ number: u
751
+ };
752
+ }
753
+ return {
754
+ // No need to set it to `UNSPECIFIED`. It can be just `undefined`.
755
+ // countryCallingCodeSource: 'UNSPECIFIED',
756
+ number: t
757
+ };
758
+ }
759
+ }
760
+ if (t[1] === "0")
761
+ return {};
762
+ i = new y(i);
763
+ for (var p = 2; p - 1 <= Fn && p <= t.length; ) {
764
+ var E = t.slice(1, p);
765
+ if (i.hasCallingCode(E))
766
+ return i.selectNumberingPlan(E), {
767
+ countryCallingCodeSource: a ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
768
+ countryCallingCode: E,
769
+ number: t.slice(p)
770
+ };
771
+ p++;
772
+ }
773
+ return {};
774
+ }
775
+ function Vn(t) {
776
+ return t.replace(new RegExp("[".concat(ee, "]+"), "g"), " ").trim();
777
+ }
778
+ var Kn = /(\$\d)/;
779
+ function Wn(t, n, d) {
780
+ var r = d.useInternationalFormat, i = d.withNationalPrefix, a = t.replace(new RegExp(n.pattern()), r ? n.internationalFormat() : (
781
+ // This library doesn't use `domestic_carrier_code_formatting_rule`,
782
+ // because that one is only used when formatting phone numbers
783
+ // for dialing from a mobile phone, and this is not a dialing library.
784
+ // carrierCode && format.domesticCarrierCodeFormattingRule()
785
+ // // First, replace the $CC in the formatting rule with the desired carrier code.
786
+ // // Then, replace the $FG in the formatting rule with the first group
787
+ // // and the carrier code combined in the appropriate way.
788
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
789
+ // : (
790
+ // withNationalPrefix && format.nationalPrefixFormattingRule()
791
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
792
+ // : format.format()
793
+ // )
794
+ i && n.nationalPrefixFormattingRule() ? n.format().replace(Kn, n.nationalPrefixFormattingRule()) : n.format()
795
+ ));
796
+ return r ? Vn(a) : a;
797
+ }
798
+ var zn = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
799
+ function Yn(t, n, d) {
800
+ var r = new y(d);
801
+ if (r.selectNumberingPlan(t, n), r.defaultIDDPrefix())
802
+ return r.defaultIDDPrefix();
803
+ if (zn.test(r.IDDPrefix()))
804
+ return r.IDDPrefix();
805
+ }
806
+ var qn = ";ext=", L = function(n) {
807
+ return "([".concat(h, "]{1,").concat(n, "})");
808
+ };
809
+ function yt(t) {
810
+ var n = "20", d = "15", r = "9", i = "6", a = "[  \\t,]*", $ = "[:\\..]?[  \\t,-]*", s = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", u = "(?:[xx##~~]|int|int)", p = "[- ]+", E = "[  \\t]*", I = "(?:,{2}|;)", O = qn + L(n), V = a + l + $ + L(n) + s, qt = a + u + $ + L(r) + s, Xt = p + L(i) + "#", Jt = E + I + $ + L(d) + s, Zt = E + "(?:,)+" + $ + L(r) + s;
811
+ return O + "|" + V + "|" + qt + "|" + Xt + "|" + Jt + "|" + Zt;
812
+ }
813
+ var Xn = "[" + h + "]{" + Re + "}", Jn = "[" + Fe + "]{0,1}(?:[" + ee + "]*[" + h + "]){3,}[" + ee + h + "]*", Zn = new RegExp("^[" + Fe + "]{0,1}(?:[" + ee + "]*[" + h + "]){1,2}$", "i"), Qn = Jn + // Phone number extensions
814
+ "(?:" + yt() + ")?", ed = new RegExp(
815
+ // Either a short two-digit-only phone number
816
+ "^" + Xn + "$|^" + Qn + "$",
817
+ "i"
818
+ );
819
+ function td(t) {
820
+ return t.length >= Re && ed.test(t);
821
+ }
822
+ function nd(t) {
823
+ return Zn.test(t);
824
+ }
825
+ function dd(t) {
826
+ var n = t.number, d = t.ext;
827
+ if (!n)
828
+ return "";
829
+ if (n[0] !== "+")
830
+ throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
831
+ return "tel:".concat(n).concat(d ? ";ext=" + d : "");
832
+ }
833
+ var ke = {
834
+ formatExtension: function(n, d, r) {
835
+ return "".concat(n).concat(r.ext()).concat(d);
836
+ }
837
+ };
838
+ function rd(t, n, d, r) {
839
+ if (d ? d = ad({}, ke, d) : d = ke, r = new y(r), t.country && t.country !== "001") {
840
+ if (!r.hasCountry(t.country))
841
+ throw new Error("Unknown country: ".concat(t.country));
842
+ r.selectNumberingPlan(t.country);
843
+ } else if (t.countryCallingCode)
844
+ r.selectNumberingPlan(t.countryCallingCode);
845
+ else return t.phone || "";
846
+ var i = r.countryCallingCode(), a = d.v2 ? t.nationalNumber : t.phone, $;
847
+ switch (n) {
848
+ case "NATIONAL":
849
+ return a ? ($ = te(a, t.carrierCode, "NATIONAL", r, d), pe($, t.ext, r, d.formatExtension)) : "";
850
+ case "INTERNATIONAL":
851
+ return a ? ($ = te(a, null, "INTERNATIONAL", r, d), $ = "+".concat(i, " ").concat($), pe($, t.ext, r, d.formatExtension)) : "+".concat(i);
852
+ case "E.164":
853
+ return "+".concat(i).concat(a);
854
+ case "RFC3966":
855
+ return dd({
856
+ number: "+".concat(i).concat(a),
857
+ ext: t.ext
858
+ });
859
+ case "IDD":
860
+ if (!d.fromCountry)
861
+ return;
862
+ var s = od(a, t.carrierCode, i, d.fromCountry, r);
863
+ return s ? pe(s, t.ext, r, d.formatExtension) : void 0;
864
+ default:
865
+ throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(n, '"'));
866
+ }
867
+ }
868
+ function te(t, n, d, r, i) {
869
+ var a = id(r.formats(), t);
870
+ return a ? Wn(t, a, {
871
+ useInternationalFormat: d === "INTERNATIONAL",
872
+ withNationalPrefix: !(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && i && i.nationalPrefix === !1),
873
+ carrierCode: n,
874
+ metadata: r
875
+ }) : t;
876
+ }
877
+ function id(t, n) {
878
+ return $d(t, function(d) {
879
+ if (d.leadingDigitsPatterns().length > 0) {
880
+ var r = d.leadingDigitsPatterns()[d.leadingDigitsPatterns().length - 1];
881
+ if (n.search(r) !== 0)
882
+ return !1;
883
+ }
884
+ return A(n, d.pattern());
885
+ });
886
+ }
887
+ function pe(t, n, d, r) {
888
+ return n ? r(t, n, d) : t;
889
+ }
890
+ function od(t, n, d, r, i) {
891
+ var a = Pe(r, i.metadata);
892
+ if (a === d) {
893
+ var $ = te(t, n, "NATIONAL", i);
894
+ return d === "1" ? d + " " + $ : $;
895
+ }
896
+ var s = Yn(r, void 0, i.metadata);
897
+ if (s)
898
+ return "".concat(s, " ").concat(d, " ").concat(te(t, null, "INTERNATIONAL", i));
899
+ }
900
+ function ad() {
901
+ for (var t = 1, n = arguments.length, d = new Array(n), r = 0; r < n; r++)
902
+ d[r] = arguments[r];
903
+ for (; t < d.length; ) {
904
+ if (d[t])
905
+ for (var i in d[t])
906
+ d[0][i] = d[t][i];
907
+ t++;
908
+ }
909
+ return d[0];
910
+ }
911
+ function $d(t, n) {
912
+ for (var d = 0; d < t.length; ) {
913
+ if (n(t[d]))
914
+ return t[d];
915
+ d++;
916
+ }
917
+ }
918
+ function K(t) {
919
+ "@babel/helpers - typeof";
920
+ return K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
921
+ return typeof n;
922
+ } : function(n) {
923
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
924
+ }, K(t);
925
+ }
926
+ function He(t, n) {
927
+ var d = Object.keys(t);
928
+ if (Object.getOwnPropertySymbols) {
929
+ var r = Object.getOwnPropertySymbols(t);
930
+ n && (r = r.filter(function(i) {
931
+ return Object.getOwnPropertyDescriptor(t, i).enumerable;
932
+ })), d.push.apply(d, r);
933
+ }
934
+ return d;
935
+ }
936
+ function Ve(t) {
937
+ for (var n = 1; n < arguments.length; n++) {
938
+ var d = arguments[n] != null ? arguments[n] : {};
939
+ n % 2 ? He(Object(d), !0).forEach(function(r) {
940
+ sd(t, r, d[r]);
941
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : He(Object(d)).forEach(function(r) {
942
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(d, r));
943
+ });
944
+ }
945
+ return t;
946
+ }
947
+ function sd(t, n, d) {
948
+ return (n = _t(n)) in t ? Object.defineProperty(t, n, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = d, t;
949
+ }
950
+ function ld(t, n) {
951
+ if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
952
+ }
953
+ function ud(t, n) {
954
+ for (var d = 0; d < n.length; d++) {
955
+ var r = n[d];
956
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, _t(r.key), r);
957
+ }
958
+ }
959
+ function cd(t, n, d) {
960
+ return n && ud(t.prototype, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
961
+ }
962
+ function _t(t) {
963
+ var n = md(t, "string");
964
+ return K(n) == "symbol" ? n : n + "";
965
+ }
966
+ function md(t, n) {
967
+ if (K(t) != "object" || !t) return t;
968
+ var d = t[Symbol.toPrimitive];
969
+ if (d !== void 0) {
970
+ var r = d.call(t, n || "default");
971
+ if (K(r) != "object") return r;
972
+ throw new TypeError("@@toPrimitive must return a primitive value.");
973
+ }
974
+ return (n === "string" ? String : Number)(t);
975
+ }
976
+ var fd = /* @__PURE__ */ function() {
977
+ function t(n, d, r) {
978
+ if (ld(this, t), !n)
979
+ throw new TypeError("First argument is required");
980
+ if (typeof n != "string")
981
+ throw new TypeError("First argument must be a string");
982
+ if (n[0] === "+" && !d)
983
+ throw new TypeError("`metadata` argument not passed");
984
+ if (j(d) && j(d.countries)) {
985
+ r = d;
986
+ var i = n;
987
+ if (!bd.test(i))
988
+ throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
989
+ var a = bt(i, void 0, void 0, void 0, r), $ = a.countryCallingCode, s = a.number;
990
+ if (d = s, n = $, !d)
991
+ throw new Error("Invalid `number` argument passed: too short");
992
+ }
993
+ if (!d)
994
+ throw new TypeError("`nationalNumber` argument is required");
995
+ if (typeof d != "string")
996
+ throw new TypeError("`nationalNumber` argument must be a string");
997
+ mt(r);
998
+ var l = pd(n, r), u = l.country, p = l.countryCallingCode;
999
+ this.country = u, this.countryCallingCode = p, this.nationalNumber = d, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
1000
+ return r;
1001
+ };
1002
+ }
1003
+ return cd(t, [{
1004
+ key: "setExt",
1005
+ value: function(d) {
1006
+ this.ext = d;
1007
+ }
1008
+ }, {
1009
+ key: "getPossibleCountries",
1010
+ value: function() {
1011
+ return this.country ? [this.country] : In(this.countryCallingCode, this.nationalNumber, this.getMetadata());
1012
+ }
1013
+ }, {
1014
+ key: "isPossible",
1015
+ value: function() {
1016
+ return En(this, {
1017
+ v2: !0
1018
+ }, this.getMetadata());
1019
+ }
1020
+ }, {
1021
+ key: "isValid",
1022
+ value: function() {
1023
+ return Pn(this, {
1024
+ v2: !0
1025
+ }, this.getMetadata());
1026
+ }
1027
+ }, {
1028
+ key: "isNonGeographic",
1029
+ value: function() {
1030
+ var d = new y(this.getMetadata());
1031
+ return d.isNonGeographicCallingCode(this.countryCallingCode);
1032
+ }
1033
+ }, {
1034
+ key: "isEqual",
1035
+ value: function(d) {
1036
+ return this.number === d.number && this.ext === d.ext;
1037
+ }
1038
+ // This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
1039
+ // but later it was found out that it doesn't include the possible `TOO_SHORT` result
1040
+ // returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
1041
+ // so eventually I simply commented out this method from the `PhoneNumber` class
1042
+ // and just left the `validatePhoneNumberLength()` function, even though that one would require
1043
+ // and additional step to also validate the actual country / calling code of the phone number.
1044
+ // validateLength() {
1045
+ // const metadata = new Metadata(this.getMetadata())
1046
+ // metadata.selectNumberingPlan(this.countryCallingCode)
1047
+ // const result = checkNumberLength(this.nationalNumber, metadata)
1048
+ // if (result !== 'IS_POSSIBLE') {
1049
+ // return result
1050
+ // }
1051
+ // }
1052
+ }, {
1053
+ key: "getType",
1054
+ value: function() {
1055
+ return Ne(this, {
1056
+ v2: !0
1057
+ }, this.getMetadata());
1058
+ }
1059
+ }, {
1060
+ key: "format",
1061
+ value: function(d, r) {
1062
+ return rd(this, d, r ? Ve(Ve({}, r), {}, {
1063
+ v2: !0
1064
+ }) : {
1065
+ v2: !0
1066
+ }, this.getMetadata());
1067
+ }
1068
+ }, {
1069
+ key: "formatNational",
1070
+ value: function(d) {
1071
+ return this.format("NATIONAL", d);
1072
+ }
1073
+ }, {
1074
+ key: "formatInternational",
1075
+ value: function(d) {
1076
+ return this.format("INTERNATIONAL", d);
1077
+ }
1078
+ }, {
1079
+ key: "getURI",
1080
+ value: function(d) {
1081
+ return this.format("RFC3966", d);
1082
+ }
1083
+ }]);
1084
+ }(), gd = function(n) {
1085
+ return /^[A-Z]{2}$/.test(n);
1086
+ };
1087
+ function pd(t, n) {
1088
+ var d, r, i = new y(n);
1089
+ return gd(t) ? (d = t, i.selectNumberingPlan(d), r = i.countryCallingCode()) : r = t, {
1090
+ country: d,
1091
+ countryCallingCode: r
1092
+ };
1093
+ }
1094
+ var bd = /^\+\d+$/;
1095
+ function Ee(t) {
1096
+ "@babel/helpers - typeof";
1097
+ return Ee = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
1098
+ return typeof n;
1099
+ } : function(n) {
1100
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
1101
+ }, Ee(t);
1102
+ }
1103
+ function yd(t, n, d) {
1104
+ return Object.defineProperty(t, "prototype", { writable: !1 }), t;
1105
+ }
1106
+ function _d(t, n) {
1107
+ if (!(t instanceof n)) throw new TypeError("Cannot call a class as a function");
1108
+ }
1109
+ function Ed(t, n, d) {
1110
+ return n = z(n), hd(t, Ae() ? Reflect.construct(n, d || [], z(t).constructor) : n.apply(t, d));
1111
+ }
1112
+ function hd(t, n) {
1113
+ if (n && (Ee(n) == "object" || typeof n == "function")) return n;
1114
+ if (n !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1115
+ return vd(t);
1116
+ }
1117
+ function vd(t) {
1118
+ if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1119
+ return t;
1120
+ }
1121
+ function Cd(t, n) {
1122
+ if (typeof n != "function" && n !== null) throw new TypeError("Super expression must either be null or a function");
1123
+ t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), n && W(t, n);
1124
+ }
1125
+ function he(t) {
1126
+ var n = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1127
+ return he = function(r) {
1128
+ if (r === null || !Id(r)) return r;
1129
+ if (typeof r != "function") throw new TypeError("Super expression must either be null or a function");
1130
+ if (n !== void 0) {
1131
+ if (n.has(r)) return n.get(r);
1132
+ n.set(r, i);
1133
+ }
1134
+ function i() {
1135
+ return Pd(r, arguments, z(this).constructor);
1136
+ }
1137
+ return i.prototype = Object.create(r.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), W(i, r);
1138
+ }, he(t);
1139
+ }
1140
+ function Pd(t, n, d) {
1141
+ if (Ae()) return Reflect.construct.apply(null, arguments);
1142
+ var r = [null];
1143
+ r.push.apply(r, n);
1144
+ var i = new (t.bind.apply(t, r))();
1145
+ return d && W(i, d.prototype), i;
1146
+ }
1147
+ function Ae() {
1148
+ try {
1149
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1150
+ }));
1151
+ } catch {
1152
+ }
1153
+ return (Ae = function() {
1154
+ return !!t;
1155
+ })();
1156
+ }
1157
+ function Id(t) {
1158
+ try {
1159
+ return Function.toString.call(t).indexOf("[native code]") !== -1;
1160
+ } catch {
1161
+ return typeof t == "function";
1162
+ }
1163
+ }
1164
+ function W(t, n) {
1165
+ return W = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(d, r) {
1166
+ return d.__proto__ = r, d;
1167
+ }, W(t, n);
1168
+ }
1169
+ function z(t) {
1170
+ return z = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
1171
+ return n.__proto__ || Object.getPrototypeOf(n);
1172
+ }, z(t);
1173
+ }
1174
+ var N = /* @__PURE__ */ function(t) {
1175
+ function n(d) {
1176
+ var r;
1177
+ return _d(this, n), r = Ed(this, n, [d]), Object.setPrototypeOf(r, n.prototype), r.name = r.constructor.name, r;
1178
+ }
1179
+ return Cd(n, t), yd(n);
1180
+ }(/* @__PURE__ */ he(Error)), Ke = new RegExp("(?:" + yt() + ")$", "i");
1181
+ function Nd(t) {
1182
+ var n = t.search(Ke);
1183
+ if (n < 0)
1184
+ return {};
1185
+ for (var d = t.slice(0, n), r = t.match(Ke), i = 1; i < r.length; ) {
1186
+ if (r[i])
1187
+ return {
1188
+ number: d,
1189
+ ext: r[i]
1190
+ };
1191
+ i++;
1192
+ }
1193
+ }
1194
+ var Rd = {
1195
+ 0: "0",
1196
+ 1: "1",
1197
+ 2: "2",
1198
+ 3: "3",
1199
+ 4: "4",
1200
+ 5: "5",
1201
+ 6: "6",
1202
+ 7: "7",
1203
+ 8: "8",
1204
+ 9: "9",
1205
+ "0": "0",
1206
+ // Fullwidth digit 0
1207
+ "1": "1",
1208
+ // Fullwidth digit 1
1209
+ "2": "2",
1210
+ // Fullwidth digit 2
1211
+ "3": "3",
1212
+ // Fullwidth digit 3
1213
+ "4": "4",
1214
+ // Fullwidth digit 4
1215
+ "5": "5",
1216
+ // Fullwidth digit 5
1217
+ "6": "6",
1218
+ // Fullwidth digit 6
1219
+ "7": "7",
1220
+ // Fullwidth digit 7
1221
+ "8": "8",
1222
+ // Fullwidth digit 8
1223
+ "9": "9",
1224
+ // Fullwidth digit 9
1225
+ "٠": "0",
1226
+ // Arabic-indic digit 0
1227
+ "١": "1",
1228
+ // Arabic-indic digit 1
1229
+ "٢": "2",
1230
+ // Arabic-indic digit 2
1231
+ "٣": "3",
1232
+ // Arabic-indic digit 3
1233
+ "٤": "4",
1234
+ // Arabic-indic digit 4
1235
+ "٥": "5",
1236
+ // Arabic-indic digit 5
1237
+ "٦": "6",
1238
+ // Arabic-indic digit 6
1239
+ "٧": "7",
1240
+ // Arabic-indic digit 7
1241
+ "٨": "8",
1242
+ // Arabic-indic digit 8
1243
+ "٩": "9",
1244
+ // Arabic-indic digit 9
1245
+ "۰": "0",
1246
+ // Eastern-Arabic digit 0
1247
+ "۱": "1",
1248
+ // Eastern-Arabic digit 1
1249
+ "۲": "2",
1250
+ // Eastern-Arabic digit 2
1251
+ "۳": "3",
1252
+ // Eastern-Arabic digit 3
1253
+ "۴": "4",
1254
+ // Eastern-Arabic digit 4
1255
+ "۵": "5",
1256
+ // Eastern-Arabic digit 5
1257
+ "۶": "6",
1258
+ // Eastern-Arabic digit 6
1259
+ "۷": "7",
1260
+ // Eastern-Arabic digit 7
1261
+ "۸": "8",
1262
+ // Eastern-Arabic digit 8
1263
+ "۹": "9"
1264
+ // Eastern-Arabic digit 9
1265
+ };
1266
+ function Fd(t) {
1267
+ return Rd[t];
1268
+ }
1269
+ function Ad(t, n) {
1270
+ var d = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1271
+ if (d) return (d = d.call(t)).next.bind(d);
1272
+ if (Array.isArray(t) || (d = Td(t)) || n) {
1273
+ d && (t = d);
1274
+ var r = 0;
1275
+ return function() {
1276
+ return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] };
1277
+ };
1278
+ }
1279
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1280
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1281
+ }
1282
+ function Td(t, n) {
1283
+ if (t) {
1284
+ if (typeof t == "string") return We(t, n);
1285
+ var d = {}.toString.call(t).slice(8, -1);
1286
+ return d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set" ? Array.from(t) : d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d) ? We(t, n) : void 0;
1287
+ }
1288
+ }
1289
+ function We(t, n) {
1290
+ (n == null || n > t.length) && (n = t.length);
1291
+ for (var d = 0, r = Array(n); d < n; d++) r[d] = t[d];
1292
+ return r;
1293
+ }
1294
+ function ze(t) {
1295
+ for (var n = "", d = Ad(t.split("")), r; !(r = d()).done; ) {
1296
+ var i = r.value;
1297
+ n += Sd(i, n) || "";
1298
+ }
1299
+ return n;
1300
+ }
1301
+ function Sd(t, n, d) {
1302
+ return t === "+" ? n ? void 0 : "+" : Fd(t);
1303
+ }
1304
+ var Et = "+", Od = "[\\-\\.\\(\\)]?", Ye = "([" + h + "]|" + Od + ")", Md = "^\\" + Et + Ye + "*[" + h + "]" + Ye + "*$", xd = new RegExp(Md, "g"), ve = h, Dd = "[" + ve + "]+((\\-)*[" + ve + "])*", Ld = "a-zA-Z", wd = "[" + Ld + "]+((\\-)*[" + ve + "])*", jd = "^(" + Dd + "\\.)*" + wd + "\\.?$", Bd = new RegExp(jd, "g"), qe = "tel:", Ce = ";phone-context=", Ud = ";isub=";
1305
+ function Gd(t) {
1306
+ var n = t.indexOf(Ce);
1307
+ if (n < 0)
1308
+ return null;
1309
+ var d = n + Ce.length;
1310
+ if (d >= t.length)
1311
+ return "";
1312
+ var r = t.indexOf(";", d);
1313
+ return r >= 0 ? t.substring(d, r) : t.substring(d);
1314
+ }
1315
+ function kd(t) {
1316
+ return t === null ? !0 : t.length === 0 ? !1 : xd.test(t) || Bd.test(t);
1317
+ }
1318
+ function Hd(t, n) {
1319
+ var d = n.extractFormattedPhoneNumber, r = Gd(t);
1320
+ if (!kd(r))
1321
+ throw new N("NOT_A_NUMBER");
1322
+ var i;
1323
+ if (r === null)
1324
+ i = d(t) || "";
1325
+ else {
1326
+ i = "", r.charAt(0) === Et && (i += r);
1327
+ var a = t.indexOf(qe), $;
1328
+ a >= 0 ? $ = a + qe.length : $ = 0;
1329
+ var s = t.indexOf(Ce);
1330
+ i += t.substring($, s);
1331
+ }
1332
+ var l = i.indexOf(Ud);
1333
+ if (l > 0 && (i = i.substring(0, l)), i !== "")
1334
+ return i;
1335
+ }
1336
+ var Vd = 250, Kd = new RegExp("[" + Fe + h + "]"), Wd = new RegExp("[^" + h + "#]+$");
1337
+ function zd(t, n, d) {
1338
+ if (n = n || {}, d = new y(d), n.defaultCountry && !d.hasCountry(n.defaultCountry))
1339
+ throw n.v2 ? new N("INVALID_COUNTRY") : new Error("Unknown country: ".concat(n.defaultCountry));
1340
+ var r = qd(t, n.v2, n.extract), i = r.number, a = r.ext, $ = r.error;
1341
+ if (!i) {
1342
+ if (n.v2)
1343
+ throw $ === "TOO_SHORT" ? new N("TOO_SHORT") : new N("NOT_A_NUMBER");
1344
+ return {};
1345
+ }
1346
+ var s = Jd(i, n.defaultCountry, n.defaultCallingCode, d), l = s.country, u = s.nationalNumber, p = s.countryCallingCode, E = s.countryCallingCodeSource, I = s.carrierCode;
1347
+ if (!d.hasSelectedNumberingPlan()) {
1348
+ if (n.v2)
1349
+ throw new N("INVALID_COUNTRY");
1350
+ return {};
1351
+ }
1352
+ if (!u || u.length < Re) {
1353
+ if (n.v2)
1354
+ throw new N("TOO_SHORT");
1355
+ return {};
1356
+ }
1357
+ if (u.length > Rn) {
1358
+ if (n.v2)
1359
+ throw new N("TOO_LONG");
1360
+ return {};
1361
+ }
1362
+ if (n.v2) {
1363
+ var O = new fd(p, u, d.metadata);
1364
+ return l && (O.country = l), I && (O.carrierCode = I), a && (O.ext = a), O.__countryCallingCodeSource = E, O;
1365
+ }
1366
+ var V = (n.extended ? d.hasSelectedNumberingPlan() : l) ? A(u, d.nationalNumberPattern()) : !1;
1367
+ return n.extended ? {
1368
+ country: l,
1369
+ countryCallingCode: p,
1370
+ carrierCode: I,
1371
+ valid: V,
1372
+ possible: V ? !0 : !!(n.extended === !0 && d.possibleLengths() && gt(u, l, d)),
1373
+ phone: u,
1374
+ ext: a
1375
+ } : V ? Xd(l, u, a) : {};
1376
+ }
1377
+ function Yd(t, n, d) {
1378
+ if (t) {
1379
+ if (t.length > Vd) {
1380
+ if (d)
1381
+ throw new N("TOO_LONG");
1382
+ return;
1383
+ }
1384
+ if (n === !1)
1385
+ return t;
1386
+ var r = t.search(Kd);
1387
+ if (!(r < 0))
1388
+ return t.slice(r).replace(Wd, "");
1389
+ }
1390
+ }
1391
+ function qd(t, n, d) {
1392
+ var r = Hd(t, {
1393
+ extractFormattedPhoneNumber: function($) {
1394
+ return Yd($, d, n);
1395
+ }
1396
+ });
1397
+ if (!r)
1398
+ return {};
1399
+ if (!td(r))
1400
+ return nd(r) ? {
1401
+ error: "TOO_SHORT"
1402
+ } : {};
1403
+ var i = Nd(r);
1404
+ return i.ext ? i : {
1405
+ number: r
1406
+ };
1407
+ }
1408
+ function Xd(t, n, d) {
1409
+ var r = {
1410
+ country: t,
1411
+ phone: n
1412
+ };
1413
+ return d && (r.ext = d), r;
1414
+ }
1415
+ function Jd(t, n, d, r) {
1416
+ var i = bt(ze(t), void 0, n, d, r.metadata), a = i.countryCallingCodeSource, $ = i.countryCallingCode, s = i.number, l;
1417
+ if ($)
1418
+ r.selectNumberingPlan($);
1419
+ else if (s && (n || d))
1420
+ r.selectNumberingPlan(n, d), n && (l = n), $ = d || Pe(n, r.metadata);
1421
+ else return {};
1422
+ if (!s)
1423
+ return {
1424
+ countryCallingCodeSource: a,
1425
+ countryCallingCode: $
1426
+ };
1427
+ var u = _e(ze(s), l, r), p = u.nationalNumber, E = u.carrierCode, I = pt($, {
1428
+ nationalNumber: p,
1429
+ metadata: r
1430
+ });
1431
+ return I && (l = I, I === "001" || r.selectNumberingPlan(l)), {
1432
+ country: l,
1433
+ countryCallingCode: $,
1434
+ countryCallingCodeSource: a,
1435
+ nationalNumber: p,
1436
+ carrierCode: E
1437
+ };
1438
+ }
1439
+ function Y(t) {
1440
+ "@babel/helpers - typeof";
1441
+ return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
1442
+ return typeof n;
1443
+ } : function(n) {
1444
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
1445
+ }, Y(t);
1446
+ }
1447
+ function Xe(t, n) {
1448
+ var d = Object.keys(t);
1449
+ if (Object.getOwnPropertySymbols) {
1450
+ var r = Object.getOwnPropertySymbols(t);
1451
+ n && (r = r.filter(function(i) {
1452
+ return Object.getOwnPropertyDescriptor(t, i).enumerable;
1453
+ })), d.push.apply(d, r);
1454
+ }
1455
+ return d;
1456
+ }
1457
+ function Je(t) {
1458
+ for (var n = 1; n < arguments.length; n++) {
1459
+ var d = arguments[n] != null ? arguments[n] : {};
1460
+ n % 2 ? Xe(Object(d), !0).forEach(function(r) {
1461
+ Zd(t, r, d[r]);
1462
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : Xe(Object(d)).forEach(function(r) {
1463
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(d, r));
1464
+ });
1465
+ }
1466
+ return t;
1467
+ }
1468
+ function Zd(t, n, d) {
1469
+ return (n = Qd(n)) in t ? Object.defineProperty(t, n, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = d, t;
1470
+ }
1471
+ function Qd(t) {
1472
+ var n = er(t, "string");
1473
+ return Y(n) == "symbol" ? n : n + "";
1474
+ }
1475
+ function er(t, n) {
1476
+ if (Y(t) != "object" || !t) return t;
1477
+ var d = t[Symbol.toPrimitive];
1478
+ if (d !== void 0) {
1479
+ var r = d.call(t, n || "default");
1480
+ if (Y(r) != "object") return r;
1481
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1482
+ }
1483
+ return (n === "string" ? String : Number)(t);
1484
+ }
1485
+ function tr(t, n, d) {
1486
+ return zd(t, Je(Je({}, n), {}, {
1487
+ v2: !0
1488
+ }), d);
1489
+ }
1490
+ function q(t) {
1491
+ "@babel/helpers - typeof";
1492
+ return q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
1493
+ return typeof n;
1494
+ } : function(n) {
1495
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
1496
+ }, q(t);
1497
+ }
1498
+ function Ze(t, n) {
1499
+ var d = Object.keys(t);
1500
+ if (Object.getOwnPropertySymbols) {
1501
+ var r = Object.getOwnPropertySymbols(t);
1502
+ n && (r = r.filter(function(i) {
1503
+ return Object.getOwnPropertyDescriptor(t, i).enumerable;
1504
+ })), d.push.apply(d, r);
1505
+ }
1506
+ return d;
1507
+ }
1508
+ function nr(t) {
1509
+ for (var n = 1; n < arguments.length; n++) {
1510
+ var d = arguments[n] != null ? arguments[n] : {};
1511
+ n % 2 ? Ze(Object(d), !0).forEach(function(r) {
1512
+ dr(t, r, d[r]);
1513
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : Ze(Object(d)).forEach(function(r) {
1514
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(d, r));
1515
+ });
1516
+ }
1517
+ return t;
1518
+ }
1519
+ function dr(t, n, d) {
1520
+ return (n = rr(n)) in t ? Object.defineProperty(t, n, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = d, t;
1521
+ }
1522
+ function rr(t) {
1523
+ var n = ir(t, "string");
1524
+ return q(n) == "symbol" ? n : n + "";
1525
+ }
1526
+ function ir(t, n) {
1527
+ if (q(t) != "object" || !t) return t;
1528
+ var d = t[Symbol.toPrimitive];
1529
+ if (d !== void 0) {
1530
+ var r = d.call(t, n || "default");
1531
+ if (q(r) != "object") return r;
1532
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1533
+ }
1534
+ return (n === "string" ? String : Number)(t);
1535
+ }
1536
+ function or(t, n) {
1537
+ return lr(t) || sr(t, n) || $r(t, n) || ar();
1538
+ }
1539
+ function ar() {
1540
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1541
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1542
+ }
1543
+ function $r(t, n) {
1544
+ if (t) {
1545
+ if (typeof t == "string") return Qe(t, n);
1546
+ var d = {}.toString.call(t).slice(8, -1);
1547
+ return d === "Object" && t.constructor && (d = t.constructor.name), d === "Map" || d === "Set" ? Array.from(t) : d === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d) ? Qe(t, n) : void 0;
1548
+ }
1549
+ }
1550
+ function Qe(t, n) {
1551
+ (n == null || n > t.length) && (n = t.length);
1552
+ for (var d = 0, r = Array(n); d < n; d++) r[d] = t[d];
1553
+ return r;
1554
+ }
1555
+ function sr(t, n) {
1556
+ var d = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
1557
+ if (d != null) {
1558
+ var r, i, a, $, s = [], l = !0, u = !1;
1559
+ try {
1560
+ if (a = (d = d.call(t)).next, n !== 0) for (; !(l = (r = a.call(d)).done) && (s.push(r.value), s.length !== n); l = !0) ;
1561
+ } catch (p) {
1562
+ u = !0, i = p;
1563
+ } finally {
1564
+ try {
1565
+ if (!l && d.return != null && ($ = d.return(), Object($) !== $)) return;
1566
+ } finally {
1567
+ if (u) throw i;
1568
+ }
1569
+ }
1570
+ return s;
1571
+ }
1572
+ }
1573
+ function lr(t) {
1574
+ if (Array.isArray(t)) return t;
1575
+ }
1576
+ function ur(t) {
1577
+ var n = Array.prototype.slice.call(t), d = or(n, 4), r = d[0], i = d[1], a = d[2], $ = d[3], s, l, u;
1578
+ if (typeof r == "string")
1579
+ s = r;
1580
+ else throw new TypeError("A text for parsing must be a string.");
1581
+ if (!i || typeof i == "string")
1582
+ $ ? (l = a, u = $) : (l = void 0, u = a), i && (l = nr({
1583
+ defaultCountry: i
1584
+ }, l));
1585
+ else if (j(i))
1586
+ a ? (l = i, u = a) : u = i;
1587
+ else throw new Error("Invalid second argument: ".concat(i));
1588
+ return {
1589
+ text: s,
1590
+ options: l,
1591
+ metadata: u
1592
+ };
1593
+ }
1594
+ function X(t) {
1595
+ "@babel/helpers - typeof";
1596
+ return X = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
1597
+ return typeof n;
1598
+ } : function(n) {
1599
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
1600
+ }, X(t);
1601
+ }
1602
+ function et(t, n) {
1603
+ var d = Object.keys(t);
1604
+ if (Object.getOwnPropertySymbols) {
1605
+ var r = Object.getOwnPropertySymbols(t);
1606
+ n && (r = r.filter(function(i) {
1607
+ return Object.getOwnPropertyDescriptor(t, i).enumerable;
1608
+ })), d.push.apply(d, r);
1609
+ }
1610
+ return d;
1611
+ }
1612
+ function tt(t) {
1613
+ for (var n = 1; n < arguments.length; n++) {
1614
+ var d = arguments[n] != null ? arguments[n] : {};
1615
+ n % 2 ? et(Object(d), !0).forEach(function(r) {
1616
+ cr(t, r, d[r]);
1617
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : et(Object(d)).forEach(function(r) {
1618
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(d, r));
1619
+ });
1620
+ }
1621
+ return t;
1622
+ }
1623
+ function cr(t, n, d) {
1624
+ return (n = mr(n)) in t ? Object.defineProperty(t, n, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = d, t;
1625
+ }
1626
+ function mr(t) {
1627
+ var n = fr(t, "string");
1628
+ return X(n) == "symbol" ? n : n + "";
1629
+ }
1630
+ function fr(t, n) {
1631
+ if (X(t) != "object" || !t) return t;
1632
+ var d = t[Symbol.toPrimitive];
1633
+ if (d !== void 0) {
1634
+ var r = d.call(t, n || "default");
1635
+ if (X(r) != "object") return r;
1636
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1637
+ }
1638
+ return (n === "string" ? String : Number)(t);
1639
+ }
1640
+ function gr(t, n, d) {
1641
+ n && n.defaultCountry && !yn(n.defaultCountry, d) && (n = tt(tt({}, n), {}, {
1642
+ defaultCountry: void 0
1643
+ }));
1644
+ try {
1645
+ return tr(t, n, d);
1646
+ } catch (r) {
1647
+ if (!(r instanceof N)) throw r;
1648
+ }
1649
+ }
1650
+ function J(t) {
1651
+ "@babel/helpers - typeof";
1652
+ return J = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
1653
+ return typeof n;
1654
+ } : function(n) {
1655
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
1656
+ }, J(t);
1657
+ }
1658
+ function nt(t, n) {
1659
+ var d = Object.keys(t);
1660
+ if (Object.getOwnPropertySymbols) {
1661
+ var r = Object.getOwnPropertySymbols(t);
1662
+ n && (r = r.filter(function(i) {
1663
+ return Object.getOwnPropertyDescriptor(t, i).enumerable;
1664
+ })), d.push.apply(d, r);
1665
+ }
1666
+ return d;
1667
+ }
1668
+ function dt(t) {
1669
+ for (var n = 1; n < arguments.length; n++) {
1670
+ var d = arguments[n] != null ? arguments[n] : {};
1671
+ n % 2 ? nt(Object(d), !0).forEach(function(r) {
1672
+ pr(t, r, d[r]);
1673
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(d)) : nt(Object(d)).forEach(function(r) {
1674
+ Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(d, r));
1675
+ });
1676
+ }
1677
+ return t;
1678
+ }
1679
+ function pr(t, n, d) {
1680
+ return (n = br(n)) in t ? Object.defineProperty(t, n, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = d, t;
1681
+ }
1682
+ function br(t) {
1683
+ var n = yr(t, "string");
1684
+ return J(n) == "symbol" ? n : n + "";
1685
+ }
1686
+ function yr(t, n) {
1687
+ if (J(t) != "object" || !t) return t;
1688
+ var d = t[Symbol.toPrimitive];
1689
+ if (d !== void 0) {
1690
+ var r = d.call(t, n || "default");
1691
+ if (J(r) != "object") return r;
1692
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1693
+ }
1694
+ return (n === "string" ? String : Number)(t);
1695
+ }
1696
+ function _r() {
1697
+ var t = ur(arguments), n = t.text, d = t.options, r = t.metadata;
1698
+ d = dt(dt({}, d), {}, {
1699
+ extract: !1
1700
+ });
1701
+ var i = gr(n, d, r);
1702
+ return i && i.isValid() || !1;
1703
+ }
1704
+ function Er() {
1705
+ return on(_r, arguments);
1706
+ }
1707
+ const m = e.enum([
1708
+ "NEW_MEMBERS",
1709
+ "AT_RISK_MEMBERS",
1710
+ "TOP_MEMBERS",
1711
+ "ACTIVE_MEMBERS"
1712
+ ]);
1713
+ m.options;
1714
+ const Y0 = [
1715
+ m.enum.NEW_MEMBERS,
1716
+ m.enum.AT_RISK_MEMBERS,
1717
+ m.enum.TOP_MEMBERS,
1718
+ m.enum.ACTIVE_MEMBERS
1719
+ ], Z = {
1720
+ [m.enum.NEW_MEMBERS]: "New Members",
1721
+ [m.enum.AT_RISK_MEMBERS]: "At-Risk Members",
1722
+ [m.enum.TOP_MEMBERS]: "Top Members",
1723
+ [m.enum.ACTIVE_MEMBERS]: "Active Members"
1724
+ }, Q = {
1725
+ [m.enum.NEW_MEMBERS]: "connect.loyalty.segment.default_segments.new_members.description",
1726
+ [m.enum.AT_RISK_MEMBERS]: "connect.loyalty.segment.default_segments.at_risk_members.description",
1727
+ [m.enum.TOP_MEMBERS]: "connect.loyalty.segment.default_segments.top_members.description",
1728
+ [m.enum.ACTIVE_MEMBERS]: "connect.loyalty.segment.default_segments.active_members.description"
1729
+ }, T = {
1730
+ newJoinDays: 30,
1731
+ atRiskMinVisitCount: 2,
1732
+ atRiskLastVisitDays: 60,
1733
+ topMinVisitCount: 3,
1734
+ topMinAvgBillSize: 50,
1735
+ topMaxAvgVisitFrequencyDays: 14,
1736
+ activeMinVisitCount: 2,
1737
+ activeLastVisitDays: 30
1738
+ };
1739
+ function x(t, n, d) {
1740
+ return {
1741
+ name: t,
1742
+ property: n,
1743
+ conditions: d,
1744
+ negated: !1
1745
+ };
1746
+ }
1747
+ function R(t, n, d) {
1748
+ return {
1749
+ name: t,
1750
+ rules: d,
1751
+ logic: n
1752
+ };
1753
+ }
1754
+ function be(t, n, d) {
1755
+ const r = `${t}_today`, i = `${t}_within_last_${d}_days`;
1756
+ return R(t, `${r} || ${i}`, {
1757
+ [r]: x(r, n, {
1758
+ _isRange: {
1759
+ op: "this",
1760
+ unit: "day",
1761
+ ignoreYear: !1
1762
+ }
1763
+ }),
1764
+ [i]: x(i, n, {
1765
+ _isRange: {
1766
+ op: "last",
1767
+ unit: "day",
1768
+ x: d,
1769
+ ignoreYear: !1
1770
+ }
1771
+ })
1772
+ });
1773
+ }
1774
+ const b = {
1775
+ g_join_recent_30: be(
1776
+ "g_join_recent_30",
1777
+ "user.joinAt",
1778
+ T.newJoinDays
1779
+ ),
1780
+ r_at_risk_visit_count_min: x(
1781
+ "r_at_risk_visit_count_min",
1782
+ "user.stats.visitCount",
1783
+ { _moreThanOrEqual: T.atRiskMinVisitCount }
1784
+ ),
1785
+ g_last_visit_recent_60: be(
1786
+ "g_last_visit_recent_60",
1787
+ "user.stats.lastVisit",
1788
+ T.atRiskLastVisitDays
1789
+ ),
1790
+ r_top_visit_count_min: x(
1791
+ "r_top_visit_count_min",
1792
+ "user.stats.visitCount",
1793
+ { _moreThanOrEqual: T.topMinVisitCount }
1794
+ ),
1795
+ r_avg_bill_top: x("r_avg_bill_top", "user.stats.avgBillSize", {
1796
+ _moreThanOrEqual: T.topMinAvgBillSize
1797
+ }),
1798
+ r_avg_visit_frequency_top: x(
1799
+ "r_avg_visit_frequency_top",
1800
+ "user.stats.avgVisitFrequency",
1801
+ {
1802
+ _lessThanOrEqual: T.topMaxAvgVisitFrequencyDays
1803
+ }
1804
+ ),
1805
+ r_active_visit_count_min: x(
1806
+ "r_active_visit_count_min",
1807
+ "user.stats.visitCount",
1808
+ { _moreThanOrEqual: T.activeMinVisitCount }
1809
+ ),
1810
+ g_last_visit_recent_30: be(
1811
+ "g_last_visit_recent_30",
1812
+ "user.stats.lastVisit",
1813
+ T.activeLastVisitDays
1814
+ )
1815
+ }, rt = R(
1816
+ "g_not_at_risk",
1817
+ "!r_at_risk_visit_count_min || g_last_visit_recent_60",
1818
+ {
1819
+ r_at_risk_visit_count_min: b.r_at_risk_visit_count_min,
1820
+ g_last_visit_recent_60: b.g_last_visit_recent_60
1821
+ }
1822
+ ), hr = R(
1823
+ "g_top_value",
1824
+ "r_avg_bill_top || r_avg_visit_frequency_top",
1825
+ {
1826
+ r_avg_bill_top: b.r_avg_bill_top,
1827
+ r_avg_visit_frequency_top: b.r_avg_visit_frequency_top
1828
+ }
1829
+ ), vr = R(
1830
+ "g_not_top",
1831
+ "!r_top_visit_count_min || g_not_top_value",
1832
+ {
1833
+ r_top_visit_count_min: b.r_top_visit_count_min,
1834
+ g_not_top_value: R(
1835
+ "g_not_top_value",
1836
+ "!r_avg_bill_top && !r_avg_visit_frequency_top",
1837
+ {
1838
+ r_avg_bill_top: b.r_avg_bill_top,
1839
+ r_avg_visit_frequency_top: b.r_avg_visit_frequency_top
1840
+ }
1841
+ )
1842
+ }
1843
+ );
1844
+ m.enum.NEW_MEMBERS + "", m.enum.NEW_MEMBERS, Z[m.enum.NEW_MEMBERS], Q[m.enum.NEW_MEMBERS], R("g_default_new_members", "g_join_recent_30", {
1845
+ g_join_recent_30: b.g_join_recent_30
1846
+ }), m.enum.AT_RISK_MEMBERS + "", m.enum.AT_RISK_MEMBERS, Z[m.enum.AT_RISK_MEMBERS], Q[m.enum.AT_RISK_MEMBERS], R(
1847
+ "g_default_at_risk_members",
1848
+ "!g_join_recent_30 && r_at_risk_visit_count_min && !g_last_visit_recent_60",
1849
+ {
1850
+ g_join_recent_30: b.g_join_recent_30,
1851
+ r_at_risk_visit_count_min: b.r_at_risk_visit_count_min,
1852
+ g_last_visit_recent_60: b.g_last_visit_recent_60
1853
+ }
1854
+ ), m.enum.TOP_MEMBERS + "", m.enum.TOP_MEMBERS, Z[m.enum.TOP_MEMBERS], Q[m.enum.TOP_MEMBERS], R(
1855
+ "g_default_top_members",
1856
+ "!g_join_recent_30 && g_not_at_risk && r_top_visit_count_min && g_top_value",
1857
+ {
1858
+ g_join_recent_30: b.g_join_recent_30,
1859
+ g_not_at_risk: rt,
1860
+ r_top_visit_count_min: b.r_top_visit_count_min,
1861
+ g_top_value: hr
1862
+ }
1863
+ ), m.enum.ACTIVE_MEMBERS + "", m.enum.ACTIVE_MEMBERS, Z[m.enum.ACTIVE_MEMBERS], Q[m.enum.ACTIVE_MEMBERS], R(
1864
+ "g_default_active_members",
1865
+ "!g_join_recent_30 && g_not_at_risk && g_not_top && r_active_visit_count_min && g_last_visit_recent_30",
1866
+ {
1867
+ g_join_recent_30: b.g_join_recent_30,
1868
+ g_not_at_risk: rt,
1869
+ g_not_top: vr,
1870
+ r_active_visit_count_min: b.r_active_visit_count_min,
1871
+ g_last_visit_recent_30: b.g_last_visit_recent_30
1872
+ }
1873
+ );
1874
+ const Cr = {
1875
+ collectionName: "Segmentations",
1876
+ transform: {
1877
+ _id: "oid",
1878
+ business: "oid"
1879
+ }
1880
+ }, Pr = e.enum(["DYNAMIC", "STATIC"]), q0 = e.object({
1881
+ _id: o,
1882
+ rule: U,
1883
+ name: e.string().min(1),
1884
+ description: e.string().nullish(),
1885
+ business: o,
1886
+ members: e.array(o),
1887
+ memberCount: e.number().optional(),
1888
+ lastUpdated: e.coerce.date().nullish(),
1889
+ type: Pr.nullish(),
1890
+ isActive: e.boolean().nullish(),
1891
+ importFile: e.string().nullish(),
1892
+ defaultKey: m.nullish()
1893
+ }).describe(_.describe(Cr));
1894
+ e.object({
1895
+ businessId: e.string(),
1896
+ segmentId: e.string().optional(),
1897
+ queueName: e.string(),
1898
+ runId: e.string(),
1899
+ queued: e.boolean(),
1900
+ reason: e.literal("in-progress").optional()
1901
+ });
1902
+ const Ir = e.object({
1903
+ id: e.union([e.string(), e.number()]),
1904
+ businessId: e.string(),
1905
+ segmentId: e.string().optional(),
1906
+ queueName: e.string(),
1907
+ state: e.string(),
1908
+ runId: e.string().optional(),
1909
+ createdAt: e.coerce.date()
1910
+ });
1911
+ e.object({
1912
+ businessId: e.string(),
1913
+ inProgress: e.boolean(),
1914
+ jobs: e.array(Ir)
1915
+ });
1916
+ const Nr = e.enum([
1917
+ "PORTAL",
1918
+ "BENEFIT",
1919
+ "STORE",
1920
+ "ORDER",
1921
+ "BILL",
1922
+ "BILL_DISCOUNT",
1923
+ "CASHBACK",
1924
+ "FEEDBACK",
1925
+ "CYCLE",
1926
+ "COUNTER",
1927
+ "GAME",
1928
+ "COUNTER_CONSUME",
1929
+ "STAMP_REWARD",
1930
+ "STAMP_CARRY_FORWARD",
1931
+ "STAMP_MAX_REACHED",
1932
+ "POS_CLAIM",
1933
+ "MEMBER_APP-CLAIM",
1934
+ "MEMBER_APP-TRANSFER",
1935
+ "FEEDVIBE_APP-CLAIM",
1936
+ "REFERRAL",
1937
+ "REFERRAL_REWARD",
1938
+ "ORDER_APP-CLAIM",
1939
+ "ORDER_APP-APPLY"
1940
+ ]), $e = e.string(), se = e.record(e.string(), e.any()).nullish(), Rr = {
1941
+ collectionName: "Transactions",
1942
+ transform: {
1943
+ _id: "oid",
1944
+ user: "oid",
1945
+ collectible: "oid",
1946
+ collection: "oid",
1947
+ business: "oid",
1948
+ refundedFrom: "oid",
1949
+ createdAt: "date"
1950
+ },
1951
+ lookups: {
1952
+ user: {
1953
+ fromCollection: "UsersV2",
1954
+ as: "pf_user"
1955
+ },
1956
+ collectible: {
1957
+ fromCollection: "CollectibleConfigs",
1958
+ as: "pf_collectible"
1959
+ },
1960
+ collection: {
1961
+ fromCollection: "Collections",
1962
+ as: "pf_collection"
1963
+ }
1964
+ }
1965
+ }, ht = e.object({
1966
+ _id: o,
1967
+ user: o.nullable(),
1968
+ collectible: o,
1969
+ collection: o,
1970
+ business: o,
1971
+ amount: e.number(),
1972
+ expiryAmount: e.array(e.lazy(() => Te)),
1973
+ from: e.lazy(() => F),
1974
+ to: e.lazy(() => F),
1975
+ source: $e,
1976
+ ref: e.string(),
1977
+ refunded: e.boolean().optional(),
1978
+ refundedFrom: o.optional(),
1979
+ metadata: se,
1980
+ createdAt: e.coerce.date().optional(),
1981
+ pf_user: e.any().optional(),
1982
+ pf_collectible: e.any().optional(),
1983
+ pf_collection: e.any().optional(),
1984
+ totalAmount: e.number().optional()
1985
+ }).describe(_.describe(Rr));
1986
+ e.object({
1987
+ amount: e.number(),
1988
+ expiryAmount: e.array(e.lazy(() => Te)),
1989
+ collection: e.lazy(() => ne),
1990
+ source: $e,
1991
+ ref: e.string(),
1992
+ from: e.lazy(() => F).optional(),
1993
+ to: e.lazy(() => F),
1994
+ metadata: se,
1995
+ refunded: e.boolean().optional(),
1996
+ refundedFrom: o.optional()
1997
+ });
1998
+ e.object({
1999
+ id: e.string()
2000
+ });
2001
+ Nr.options;
2002
+ const re = class re {
2003
+ constructor(n) {
2004
+ this.redemptionCode = n.generate(), this.expiredAt = new Date(Date.now() + re.EXPIRY_TIME);
2005
+ }
2006
+ };
2007
+ re.EXPIRY_TIME = 5 * 60 * 1e3;
2008
+ let it = re;
2009
+ const vt = e.enum(["NORMAL", "EXPIRABLE"]), Te = e.object({
2010
+ _id: o,
2011
+ amount: e.number(),
2012
+ expiredAt: e.coerce.date()
2013
+ }), F = e.object({
2014
+ balance: e.number(),
2015
+ expiryBalance: e.array(Te).optional()
2016
+ }), Fr = {
2017
+ collectionName: "Collections",
2018
+ transform: {
2019
+ _id: "oid",
2020
+ business: "oid",
2021
+ collectible: "oid",
2022
+ user: "oid",
2023
+ deactivatedAt: "date"
2024
+ },
2025
+ lookups: {
2026
+ user: {
2027
+ as: "pf_user",
2028
+ fromCollection: "UsersV2"
2029
+ },
2030
+ collectible: {
2031
+ as: "pf_collectible",
2032
+ fromCollection: "CollectibleConfigs"
2033
+ }
2034
+ }
2035
+ }, Ar = e.object({
2036
+ redemptionCode: e.string(),
2037
+ expiredAt: e.coerce.date()
2038
+ }), ne = e.object({
2039
+ _id: o,
2040
+ business: o,
2041
+ user: o.nullish(),
2042
+ code: e.string().optional(),
2043
+ collectible: o,
2044
+ type: ct,
2045
+ extras: tn.nullish(),
2046
+ options: nn,
2047
+ ref: e.string().nullish(),
2048
+ deactivatedAt: e.date().nullish(),
2049
+ redemption: Ar.optional(),
2050
+ pf_user: e.any().optional(),
2051
+ pf_collectible: e.any().optional(),
2052
+ pf_campaign: e.any().optional()
2053
+ }).merge(F).describe(_.describe(Fr)), G = e.object({
2054
+ amount: e.number(),
2055
+ ref: e.string(),
2056
+ source: $e,
2057
+ metadata: se
2058
+ });
2059
+ G.extend({
2060
+ code: e.string().optional(),
2061
+ collectible: o,
2062
+ channelConfig: ie.nullish(),
2063
+ business: o,
2064
+ user: o.nullable()
2065
+ });
2066
+ G.extend({
2067
+ codes: e.array(e.string()),
2068
+ collectible: o,
2069
+ channelConfig: ie.nullish(),
2070
+ business: o,
2071
+ user: o.nullable()
2072
+ });
2073
+ G.extend({
2074
+ user: o,
2075
+ business: o,
2076
+ collectible: o,
2077
+ expiredAt: e.date({ coerce: !0 }).nullish()
2078
+ });
2079
+ G.extend({
2080
+ id: o,
2081
+ code: e.string().optional(),
2082
+ type: vt.optional(),
2083
+ skipValidateOption: e.boolean().optional()
2084
+ });
2085
+ e.object({
2086
+ collection: o,
2087
+ to: o,
2088
+ ref: e.string(),
2089
+ source: $e,
2090
+ metadata: se
2091
+ });
2092
+ const Tr = e.object({
2093
+ length: e.coerce.number().optional(),
2094
+ charset: e.string(),
2095
+ prefix: e.string().optional(),
2096
+ suffix: e.string().optional(),
2097
+ pattern: e.string().optional()
2098
+ });
2099
+ e.object({
2100
+ quantity: e.number(),
2101
+ code: e.string(),
2102
+ codeConfig: Tr
2103
+ });
2104
+ const X0 = e.object({
2105
+ amount: e.coerce.number().min(1).max(1e7).multipleOf(0.01, "Amount must be maximum of two decimal places (0.00)"),
2106
+ day: e.coerce.number().min(1).max(9999),
2107
+ remark: e.string().optional()
2108
+ }), J0 = e.object({
2109
+ amount: e.coerce.number().min(1),
2110
+ remark: e.string().optional()
2111
+ }), Z0 = e.object({
2112
+ amount: e.coerce.number().min(1),
2113
+ day: e.coerce.number().min(1).max(9999).optional(),
2114
+ remark: e.string().optional()
2115
+ }), Q0 = e.object({
2116
+ amount: e.coerce.number().min(1),
2117
+ remark: e.string().optional()
2118
+ });
2119
+ G.extend({
2120
+ business: e.string(),
2121
+ user: e.string(),
2122
+ type: vt.optional()
2123
+ });
2124
+ G.extend({
2125
+ business: e.string(),
2126
+ user: e.string(),
2127
+ channelConfig: ie.nullish()
2128
+ });
2129
+ const e1 = e.object({
2130
+ memberId: e.array(o).min(1),
2131
+ amount: e.coerce.number().min(1).max(9999).optional(),
2132
+ ref: e.string().optional()
2133
+ });
2134
+ e.object({
2135
+ userId: o
2136
+ });
2137
+ e.lazy(
2138
+ () => le.omit({ password: !0 }).extend({
2139
+ coin: e.lazy(() => F),
2140
+ point: e.lazy(() => F),
2141
+ credit: e.lazy(() => F),
2142
+ voucherCount: e.number(),
2143
+ gameCount: e.number(),
2144
+ tier: e.lazy(() => F),
2145
+ titles: e.lazy(() => e.array(ne)),
2146
+ collection: e.record(ct, e.array(ne)).nullish()
2147
+ })
2148
+ );
2149
+ e.object({
2150
+ userId: o
2151
+ });
2152
+ const t1 = e.object({
2153
+ _id: e.string(),
2154
+ name: e.string(),
2155
+ phoneNumber: e.string().optional(),
2156
+ photoUrl: e.string().nullish()
2157
+ }), Sr = e.enum([
2158
+ "REGISTER",
2159
+ "UPDATE_PHONE"
2160
+ ]), Or = e.object({
2161
+ name: e.string(),
2162
+ id: e.string()
2163
+ }), Mr = e.object({
2164
+ lastVisit: e.coerce.date(),
2165
+ topupCount: e.number(),
2166
+ // { [productId]: count }
2167
+ products: e.record(e.string(), e.number()),
2168
+ visitCount: e.number(),
2169
+ avgVisitFrequency: e.number(),
2170
+ avgBillSize: e.number(),
2171
+ feedbackCount: e.number(),
2172
+ lastSeasonTierEarned: e.number().optional(),
2173
+ lastSeasonPointEarned: e.number().optional()
2174
+ }), xr = e.object({
2175
+ name: e.string(),
2176
+ address: e.string(),
2177
+ coordinates: e.array(e.number())
2178
+ }), Dr = {
2179
+ collectionName: "UsersV2",
2180
+ transform: {
2181
+ _id: "oid",
2182
+ business: "oid"
2183
+ },
2184
+ lookups: {
2185
+ segment: {
2186
+ as: "pf_segment",
2187
+ fromCollection: "Segments"
2188
+ }
2189
+ }
2190
+ }, le = e.object({
2191
+ // user meta
2192
+ _id: o,
2193
+ name: e.string(),
2194
+ birthday: e.coerce.date().nullish(),
2195
+ gender: e.enum(["MALE", "FEMALE"]).nullish(),
2196
+ address: e.array(xr).nullish(),
2197
+ email: e.string().email().nullish(),
2198
+ phoneNumber: e.string().refine((t) => Er(t)),
2199
+ externalMemberId: e.string().optional(),
2200
+ cardNo: e.string().optional(),
2201
+ joinAt: e.coerce.date().nullish(),
2202
+ photoUrl: e.string().nullish(),
2203
+ location: o.nullish(),
2204
+ // member meta
2205
+ business: o,
2206
+ stats: Mr,
2207
+ // segment
2208
+ segment: e.array(o),
2209
+ member: e.boolean(),
2210
+ // pf_segment: z
2211
+ // .array(z.lazy(() => FdoSegment))
2212
+ // .describe(
2213
+ // zm
2214
+ // .mongo()
2215
+ // .populate({
2216
+ // fromCollection: 'Segment',
2217
+ // localField: 'segment',
2218
+ // as: 'pf_segment',
2219
+ // })
2220
+ // .build(),
2221
+ // )
2222
+ // .optional(),
2223
+ expiringVouchers: e.object({
2224
+ days7: e.number(),
2225
+ days30: e.number(),
2226
+ days90: e.number()
2227
+ }).and(e.record(e.string(), e.number())).optional(),
2228
+ lastReadAt: e.coerce.date().nullish(),
2229
+ importCollection: e.record(e.string(), e.any()).optional(),
2230
+ // referral feature
2231
+ referralCode: e.string().optional(),
2232
+ parentReferralCode: e.string().optional(),
2233
+ password: e.string().optional(),
2234
+ birthdayUpdateCount: e.number().optional(),
2235
+ authProvider: e.array(Or).optional()
2236
+ }).describe(_.describe(Dr)), Lr = e.object({
2237
+ id: o,
2238
+ expiredAt: e.coerce.number().min(0, "Expire in days must be greater than 0").max(9999, "Expire in days must not exceed 9999")
2239
+ }), n1 = e.object({
2240
+ titles: e.array(Lr).optional(),
2241
+ tier: e.number().optional(),
2242
+ experience: e.number().optional(),
2243
+ cardNo: e.string().optional()
2244
+ });
2245
+ e.object({
2246
+ phoneNumber: e.string(),
2247
+ password: e.string(),
2248
+ business: e.string()
2249
+ });
2250
+ e.object({
2251
+ _id: o,
2252
+ name: e.string().optional(),
2253
+ birthday: e.coerce.date().optional(),
2254
+ gender: e.enum(["MALE", "FEMALE"]).optional(),
2255
+ email: e.string().email().optional()
2256
+ });
2257
+ e.object({
2258
+ phoneNumber: e.string(),
2259
+ newPhoneNumber: e.string()
2260
+ });
2261
+ e.object({
2262
+ token: e.string(),
2263
+ password: e.string(),
2264
+ business: e.string()
2265
+ });
2266
+ e.object({
2267
+ id: e.string(),
2268
+ password: e.string(),
2269
+ business: e.string()
2270
+ });
2271
+ e.object({
2272
+ phoneNumber: e.string(),
2273
+ business: e.string()
2274
+ });
2275
+ e.object({
2276
+ phoneNumber: e.string(),
2277
+ otp: e.string(),
2278
+ business: e.string(),
2279
+ type: Sr
2280
+ });
2281
+ e.object({
2282
+ provider: e.string(),
2283
+ oauthToken: e.string(),
2284
+ business: e.string()
2285
+ });
2286
+ e.object({
2287
+ location: o,
2288
+ memberId: o,
2289
+ nettTotal: w,
2290
+ remark: e.string().optional()
2291
+ });
2292
+ const wr = e.enum(["COUNTER", "POS"]);
2293
+ e.object({
2294
+ id: e.string(),
2295
+ userId: e.string(),
2296
+ name: e.string().nullish(),
2297
+ birthday: e.string().nullish(),
2298
+ phoneNumber: e.string().nullish(),
2299
+ balance: e.number().nullish(),
2300
+ level: e.number().nullish(),
2301
+ mostPurchasedItems: e.array(e.string()).nullish()
2302
+ });
2303
+ const jr = {
2304
+ collectionName: "Bills"
2305
+ }, Ct = e.object({
2306
+ _id: e.string(),
2307
+ items: e.record(e.string(), e.number()).nullish(),
2308
+ // business: z.string(),
2309
+ // adjustments: z.record(FdoBillAdjustment),
2310
+ // refundedFrom: z.string().nullish(),
2311
+ user: e.string().nullish(),
2312
+ memberid: e.string().nullish(),
2313
+ // roundToNearest: z.number().nullish(),
2314
+ nettTotal: w,
2315
+ // activeItems: z.array(z.string()),
2316
+ remark: e.string().nullish(),
2317
+ createdAt: e.coerce.date(),
2318
+ completedAt: e.coerce.date(),
2319
+ refunded: e.boolean().nullish(),
2320
+ refundRecord: e.array(e.string()).nullish(),
2321
+ location: e.string(),
2322
+ channel: wr.optional()
2323
+ }).transform((t) => ({
2324
+ ...t,
2325
+ createdTime: t.createdAt,
2326
+ completedTime: t.completedAt,
2327
+ get amount() {
2328
+ return t.nettTotal.amount / 10 ** t.nettTotal.precision;
2329
+ }
2330
+ })).describe(_.describe(jr)), Br = e.object({
2331
+ _id: e.string(),
2332
+ rating: e.coerce.number(),
2333
+ user: e.string(),
2334
+ restaurant: e.string(),
2335
+ message: e.string(),
2336
+ submittedAt: e.coerce.date()
2337
+ }), f = e.enum([
2338
+ "SIMPLE_CLAIM",
2339
+ "LINK_CLAIM",
2340
+ "BILL_COMPLETED",
2341
+ "BILL_REFUNDED",
2342
+ "SCHEDULE",
2343
+ "BIRTHDAY",
2344
+ "FEEDBACK",
2345
+ "ENTER_SEGMENT",
2346
+ "MEMBERSHIP_JOINED",
2347
+ "TIER_UPGRADED",
2348
+ "MAKING_ORDER",
2349
+ "ISSUE_REWARD",
2350
+ "MEMBER_REWARD",
2351
+ "GAME_COMPLETED",
2352
+ "PAGINATE_SCHEDULE",
2353
+ "REFERRAL_ADDED",
2354
+ "MEMBER_IMPORTED",
2355
+ "SEGMENTATION_IMPORTED"
2356
+ ]), d1 = f.extract([
2357
+ "BILL_COMPLETED",
2358
+ "FEEDBACK",
2359
+ "GAME_COMPLETED",
2360
+ "MAKING_ORDER",
2361
+ "MEMBERSHIP_JOINED",
2362
+ "SCHEDULE",
2363
+ "SIMPLE_CLAIM",
2364
+ "TIER_UPGRADED",
2365
+ "ISSUE_REWARD"
2366
+ ]);
2367
+ e.enum(["START_OF", "BEFORE"]);
2368
+ e.enum(["WEEK", "MONTH"]);
2369
+ const Ur = e.enum([
2370
+ "WAITING",
2371
+ "ACTIVE",
2372
+ "COMPLETED",
2373
+ "FAILED"
2374
+ ]), g = e.object({
2375
+ // type: F_EVENT_TYPE,
2376
+ rule: U.optional()
2377
+ }), Gr = g.extend({
2378
+ type: e.literal(f.enum.BILL_COMPLETED)
2379
+ }), kr = g.extend({
2380
+ type: e.literal(f.enum.FEEDBACK)
2381
+ }), Hr = g.extend({
2382
+ type: e.literal(f.enum.SIMPLE_CLAIM)
2383
+ });
2384
+ g.extend({
2385
+ type: e.literal(f.enum.ENTER_SEGMENT),
2386
+ segment: e.string()
2387
+ });
2388
+ const Vr = g.extend({
2389
+ type: e.literal(f.enum.MEMBER_REWARD)
2390
+ }), Kr = g.extend({
2391
+ type: e.literal(f.enum.SCHEDULE)
2392
+ // option: FdoCronRule,
2393
+ }), Wr = g.extend({
2394
+ type: e.literal(f.enum.MEMBERSHIP_JOINED)
2395
+ }), zr = g.extend({
2396
+ type: e.literal(f.enum.TIER_UPGRADED)
2397
+ }), Yr = g.extend({
2398
+ type: e.literal(f.enum.MAKING_ORDER)
2399
+ }), qr = g.extend({
2400
+ type: e.literal(f.enum.ISSUE_REWARD)
2401
+ }), Xr = g.extend({
2402
+ type: e.literal(f.enum.GAME_COMPLETED)
2403
+ });
2404
+ g.extend({
2405
+ type: e.literal(f.enum.REFERRAL_ADDED)
2406
+ });
2407
+ g.extend({
2408
+ type: e.literal(f.enum.MEMBER_IMPORTED)
2409
+ });
2410
+ const Jr = e.discriminatedUnion("type", [
2411
+ Hr,
2412
+ Gr,
2413
+ Kr,
2414
+ kr,
2415
+ Wr,
2416
+ zr,
2417
+ Yr,
2418
+ qr,
2419
+ Vr,
2420
+ Xr
2421
+ ]);
2422
+ e.object({
2423
+ _id: o,
2424
+ type: f,
2425
+ ref: e.string(),
2426
+ status: Ur.optional(),
2427
+ context: e.record(e.string(), e.any()).optional(),
2428
+ failedReason: e.any().optional()
2429
+ }).describe(JSON.stringify({ collectionName: "EventLogs" }));
2430
+ const v = e.object({
2431
+ type: f,
2432
+ context: e.any(),
2433
+ businessIds: e.array(o).optional(),
2434
+ campaignIds: e.array(o).optional(),
2435
+ slackWebhookUrl: e.string().optional(),
2436
+ emittedAt: e.coerce.date().default(/* @__PURE__ */ new Date())
2437
+ }), Zr = v.extend({
2438
+ type: e.literal(f.enum.BILL_COMPLETED),
2439
+ context: e.object({
2440
+ bill: Ct,
2441
+ rawBill: e.any()
2442
+ })
2443
+ }), Qr = v.extend({
2444
+ type: e.literal(f.enum.BILL_REFUNDED),
2445
+ context: e.object({
2446
+ bill: Ct,
2447
+ rawBill: e.any()
2448
+ })
2449
+ }), e0 = v.extend({
2450
+ type: e.literal(f.enum.SCHEDULE),
2451
+ context: e.object({
2452
+ triggeredAt: e.coerce.date()
2453
+ })
2454
+ }), t0 = v.extend({
2455
+ type: e.literal(f.enum.PAGINATE_SCHEDULE),
2456
+ context: e.object({
2457
+ triggeredAt: e.coerce.date(),
2458
+ business: o,
2459
+ skip: e.coerce.number(),
2460
+ limit: e.coerce.number()
2461
+ })
2462
+ }), n0 = v.extend({
2463
+ type: e.literal(f.enum.FEEDBACK),
2464
+ context: e.object({
2465
+ feedback: Br
2466
+ })
2467
+ }), d0 = v.extend({
2468
+ type: e.literal(f.enum.MEMBERSHIP_JOINED),
2469
+ context: e.object({
2470
+ user: le
2471
+ })
2472
+ }), r0 = v.extend({
2473
+ type: e.literal(f.enum.TIER_UPGRADED),
2474
+ context: e.object({
2475
+ transaction: ht
2476
+ })
2477
+ }), i0 = v.extend({
2478
+ type: e.literal(f.enum.ISSUE_REWARD),
2479
+ context: e.object({
2480
+ transaction: ht,
2481
+ collection: ne
2482
+ })
2483
+ }), o0 = v.extend({
2484
+ type: e.literal(f.enum.REFERRAL_ADDED),
2485
+ context: e.object({
2486
+ user: le
2487
+ })
2488
+ }), Pt = e.object({
2489
+ ref: o,
2490
+ originalName: e.string(),
2491
+ mimeType: e.string(),
2492
+ size: e.number(),
2493
+ fbFilePath: e.string(),
2494
+ isFbFileDeleted: e.boolean().nullish()
2495
+ }), a0 = e.object({
2496
+ resetCollectionExpiryBalance: e.boolean().nullish()
2497
+ }), $0 = v.extend({
2498
+ type: e.literal(f.enum.MEMBER_IMPORTED),
2499
+ context: e.object({
2500
+ business: e.string(),
2501
+ file: Pt,
2502
+ config: a0.optional()
2503
+ })
2504
+ }), s0 = v.extend({
2505
+ type: e.literal(f.enum.SEGMENTATION_IMPORTED),
2506
+ context: e.object({
2507
+ business: e.string(),
2508
+ segment: e.string(),
2509
+ file: Pt
2510
+ })
2511
+ });
2512
+ e.discriminatedUnion("type", [
2513
+ Zr,
2514
+ Qr,
2515
+ e0,
2516
+ n0,
2517
+ d0,
2518
+ r0,
2519
+ i0,
2520
+ t0,
2521
+ o0,
2522
+ $0,
2523
+ s0
2524
+ ]);
2525
+ const l0 = e.object({
2526
+ from: e.coerce.number(),
2527
+ to: e.coerce.number().optional()
2528
+ }).superRefine((t, n) => {
2529
+ t.from && t.to && t.from > t.to && n.addIssue({
2530
+ code: "custom",
2531
+ message: "Max experience must be more than min experience"
2532
+ });
2533
+ }), u0 = e.enum(["MULTIPLIER", "FIXED"]);
2534
+ e.object({
2535
+ type: u0
2536
+ });
2537
+ const c0 = e.object({
2538
+ _id: o.optional(),
2539
+ rule: U,
2540
+ tierExpression: e.string().nullish(),
2541
+ expExpression: e.string().nullish()
2542
+ }), Se = e.object({
2543
+ _id: o,
2544
+ name: e.string().min(1),
2545
+ image: e.string().nullish(),
2546
+ option: l0,
2547
+ cycleOptions: e.array(e.lazy(() => c0)).nullish(),
2548
+ member_count: e.number().optional()
2549
+ });
2550
+ Se.partial({
2551
+ _id: !0
2552
+ });
2553
+ const r1 = Se.partial({
2554
+ _id: !0
2555
+ }), m0 = e.object({
2556
+ icon: e.string(),
2557
+ label: e.string(),
2558
+ value: e.string()
2559
+ }), f0 = e.object({
2560
+ gatewayKey: e.enum([
2561
+ "REVENUE_MONSTER",
2562
+ "FEEDME",
2563
+ "FEEDME_MEMBER_CREDIT",
2564
+ "RAZER_MERCHANT_SERVICE",
2565
+ "E_GHL",
2566
+ "FEEDME_TERMINAL",
2567
+ "MACAU_PASS",
2568
+ "NETS",
2569
+ "FEEDME_CARD"
2570
+ ]),
2571
+ checkoutUrl: e.string().optional(),
2572
+ checkoutId: e.string().optional(),
2573
+ callbackUrl: e.string().optional(),
2574
+ vcode: e.string().optional(),
2575
+ merchantId: e.string().optional(),
2576
+ amount: e.string().optional(),
2577
+ currency: e.string().optional(),
2578
+ returnUrl: e.string().optional(),
2579
+ notifyUrl: e.string().optional(),
2580
+ url: e.string().optional(),
2581
+ channels: e.array(m0).optional(),
2582
+ transactionId: e.string().optional()
2583
+ }), g0 = e.object({
2584
+ url: e.string(),
2585
+ transactionId: e.string()
2586
+ });
2587
+ e.object({
2588
+ trx: e.lazy(() => St),
2589
+ onlineTrx: f0.optional().or(g0),
2590
+ url: e.string().optional()
2591
+ });
2592
+ e.object({
2593
+ remaining: e.number().nullish(),
2594
+ isSoldOut: e.boolean()
2595
+ });
2596
+ const It = e.enum(["POS", "APP", "ADMIN"]), Nt = e.enum(["topupCount"]), p0 = e.object({
2597
+ line1: e.string(),
2598
+ line2: e.string().optional(),
2599
+ state: e.string(),
2600
+ city: e.string(),
2601
+ postcode: e.string(),
2602
+ country: e.string()
2603
+ }), Rt = e.object({
2604
+ name: e.string(),
2605
+ regNo: e.string(),
2606
+ address: p0,
2607
+ phoneNo: e.string(),
2608
+ sstRegNo: e.string().optional()
2609
+ }), Ft = e.object({
2610
+ systemCode: e.string(),
2611
+ inclusive: e.boolean()
2612
+ }), b0 = e.object({
2613
+ id: o,
2614
+ dayToExpire: e.number().max(9999, "Max expiry is 9999 days")
2615
+ }), y0 = e.object({
2616
+ normal: e.coerce.number(),
2617
+ free: e.object({
2618
+ day: e.coerce.number(),
2619
+ amount: e.coerce.number(),
2620
+ remark: e.string().nullish()
2621
+ }).nullish()
2622
+ }), _0 = e.object({
2623
+ systemCode: e.string(),
2624
+ taxCode: e.string()
2625
+ }), E0 = e.object({
2626
+ name: e.string(),
2627
+ systemCode: e.string(),
2628
+ taxCode: e.string(),
2629
+ rate: Qt,
2630
+ total: w
2631
+ });
2632
+ e.object({
2633
+ canPurchase: e.boolean(),
2634
+ reason: e.string()
2635
+ });
2636
+ e.object({
2637
+ type: Nt
2638
+ });
2639
+ e.object({
2640
+ type: Nt,
2641
+ min: e.number().nullish(),
2642
+ max: e.number().nullish()
2643
+ });
2644
+ const h0 = e.object({
2645
+ options: e.object({
2646
+ maxReceive: e.number().min(1).nullish(),
2647
+ maxPerUser: e.number().min(1).nullish()
2648
+ }),
2649
+ rule: U.nullish()
2650
+ }), v0 = (t, n) => {
2651
+ const d = t;
2652
+ d.isFeedvibe && ye.Dinero.fromFdoDinero(d.price).toUnit() < 1 && n.addIssue({
2653
+ code: "custom",
2654
+ path: ["price"],
2655
+ message: "Price must be at least RM1"
2656
+ });
2657
+ }, At = e.object({
2658
+ _id: e.string(),
2659
+ isFeedvibe: e.boolean().nullish(),
2660
+ // conditions: z.array(FdoTopupCountCondition),
2661
+ image: e.string().nullish(),
2662
+ rule: U.nullish(),
2663
+ name: e.string().min(1, "Name is required"),
2664
+ price: w,
2665
+ originalPrice: w.nullish(),
2666
+ // new field to indicate coinPrice
2667
+ coinPrice: e.number().nullish(),
2668
+ titles: e.array(b0),
2669
+ credit: y0,
2670
+ taxes: e.array(_0),
2671
+ taxTotals: e.array(E0),
2672
+ priceWithTaxes: w.nullish(),
2673
+ vouchers: e.array(o),
2674
+ _inclusiveTaxes: e.array(Ft).nullish(),
2675
+ _taxSystem: e.array(e.string()).nullish(),
2676
+ stripePriceId: e.string().nullish(),
2677
+ subscriptionValidity: e.number().min(1, "Must be at least 1 day").max(365, "Maximum is 365").nullish(),
2678
+ redeemWithCode: e.boolean().nullish(),
2679
+ internal: e.boolean().optional(),
2680
+ hideInPos: e.boolean().optional(),
2681
+ // Distribution tracking: running counter of units purchased
2682
+ distributed: e.coerce.number().optional(),
2683
+ config: h0.optional(),
2684
+ pf_titles: e.array(e.any()).optional(),
2685
+ pf_vouchers: e.array(e.any()).optional(),
2686
+ pf_credit: e.number().optional()
2687
+ }).superRefine((t, n) => {
2688
+ var d, r;
2689
+ t.stripePriceId && !t.subscriptionValidity && n.addIssue({
2690
+ code: "custom",
2691
+ message: "Validity is required when stripePriceId is provided",
2692
+ path: ["subscriptionValidity"]
2693
+ }), t.originalPrice && t.originalPrice.amount && t.originalPrice.amount < t.price.amount && n.addIssue({
2694
+ code: "custom",
2695
+ message: "Original price must be greater than price",
2696
+ path: ["originalPrice"]
2697
+ }), t.price.amount < 0 && n.addIssue({
2698
+ code: "custom",
2699
+ path: ["price"],
2700
+ message: "Price cannot be less than 0"
2701
+ }), t.coinPrice && t.coinPrice < 0 && n.addIssue({
2702
+ code: "custom",
2703
+ path: ["coinPrice"],
2704
+ message: "Point price cannot be less than 0"
2705
+ }), t.credit.normal < 0 && n.addIssue({
2706
+ code: "custom",
2707
+ path: ["credit", "normal"],
2708
+ message: "Normal credit cannot be less than 0"
2709
+ }), t.credit.free && (t.credit.free.amount < 0 && n.addIssue({
2710
+ code: "custom",
2711
+ path: ["credit", "free", "amount"],
2712
+ message: "Free credit cannot be less than 0"
2713
+ }), t.credit.free.amount && t.credit.free.day < 0 && n.addIssue({
2714
+ code: "custom",
2715
+ path: ["credit", "free", "day"],
2716
+ message: "Expiry must be at least 0 (expire same day)"
2717
+ })), t.credit.normal && t.coinPrice && n.addIssue({
2718
+ code: "custom",
2719
+ message: "Bundle redeem with point cannot set normal credit.",
2720
+ path: ["credit", "normal"]
2721
+ }), t.credit.normal > ye.Dinero.fromFdoDinero(t.price).toUnit() && n.addIssue({
2722
+ code: "custom",
2723
+ message: `Normal credit cannot be more than price. Max: ${ye.Dinero.fromFdoDinero(
2724
+ t.price
2725
+ ).toUnit()}`,
2726
+ path: ["credit", "normal"]
2727
+ }), t.titles.length > 0 && t.titles.some((i) => i.dayToExpire < 0) && n.addIssue({
2728
+ code: "custom",
2729
+ path: ["titles"],
2730
+ message: "Title expiry must be at least 0 day (expire same day)"
2731
+ }), (((r = (d = t.config) == null ? void 0 : d.options) == null ? void 0 : r.maxPerUser) || 0) < 0 && n.addIssue({
2732
+ code: "custom",
2733
+ path: ["config.options.maxPerUser"],
2734
+ message: "Max purchase per user cannot be negative"
2735
+ });
2736
+ }).superRefine(v0), Tt = e.object({
2737
+ name: e.string(),
2738
+ bundles: e.array(At)
2739
+ });
2740
+ e.object({
2741
+ _id: e.string(),
2742
+ name: e.string(),
2743
+ expiredAt: e.string()
2744
+ });
2745
+ const C0 = e.object({
2746
+ apiKey: e.string(),
2747
+ webhookSecret: e.string()
2748
+ }), P0 = e.object({
2749
+ company: Rt.nullish(),
2750
+ inclusiveTaxes: e.array(Ft).nullish(),
2751
+ stripe: C0.nullable().optional()
2752
+ }), I0 = {
2753
+ collectionName: "Stores",
2754
+ transform: {
2755
+ _id: "oid",
2756
+ business: "oid"
2757
+ }
2758
+ };
2759
+ P0.extend({
2760
+ _id: o,
2761
+ business: o,
2762
+ categories: e.array(Tt),
2763
+ priorityBundleIds: e.array(e.string()).optional()
2764
+ }).describe(_.describe(I0));
2765
+ const N0 = e.object({
2766
+ refundedAt: e.coerce.date(),
2767
+ reason: e.string(),
2768
+ transactions: e.array(o)
2769
+ }), Oe = e.object({
2770
+ type: e.enum([
2771
+ "ONLINE",
2772
+ "OFFLINE",
2773
+ "COIN",
2774
+ "STRIPE",
2775
+ "CARD",
2776
+ "FEEDVIBE",
2777
+ "ADMIN"
2778
+ ]),
2779
+ extra: e.string().nullish(),
2780
+ gateway: e.string().nullish(),
2781
+ method: e.string().nullish()
2782
+ }), R0 = {
2783
+ collectionName: "StoreTransactions",
2784
+ transform: {
2785
+ _id: "oid",
2786
+ business: "oid",
2787
+ location: "oid",
2788
+ member: "oid",
2789
+ transactions: "oid"
2790
+ },
2791
+ lookups: {
2792
+ member: {
2793
+ fromCollection: "UsersV2",
2794
+ as: "pf_member"
2795
+ }
2796
+ }
2797
+ }, F0 = e.enum([
2798
+ "PENDING_PAYMENT",
2799
+ "PENDING_TRANSACTION",
2800
+ "COMPLETED",
2801
+ "REFUNDED",
2802
+ "PAYMENT_EXPIRED",
2803
+ "PAYMENT_CANCEL"
2804
+ ]), St = e.object({
2805
+ _id: o,
2806
+ source: It,
2807
+ // can be memberStorePurchase
2808
+ ref: e.string(),
2809
+ business: o,
2810
+ company: Rt,
2811
+ location: o.optional(),
2812
+ member: o,
2813
+ // createdAt: z.coerce.date(),
2814
+ bundle: At,
2815
+ transactions: e.array(o),
2816
+ // array of transaction id (voucher, credit, title)
2817
+ status: F0,
2818
+ refund: N0.nullish(),
2819
+ paymentType: Oe.nullish(),
2820
+ paymentRef: e.string().nullish(),
2821
+ previousPaymentRefs: e.array(e.string()).optional(),
2822
+ paymentUrl: e.string().optional(),
2823
+ webhookUrl: e.string().optional(),
2824
+ webhookSent: e.boolean().optional(),
2825
+ quantity: e.number().optional(),
2826
+ pf_transactions: e.array(e.any()).optional(),
2827
+ pf_member: e.any().optional(),
2828
+ pf_location: e.any().optional(),
2829
+ pf_ref: e.any().optional()
2830
+ }).describe(_.describe(R0));
2831
+ e.object({
2832
+ bundle: o,
2833
+ member: e.string(),
2834
+ ref: e.string(),
2835
+ paymentType: Oe.nullish(),
2836
+ withCoin: e.boolean().optional(),
2837
+ card: e.string().optional(),
2838
+ location: o.optional(),
2839
+ source: It,
2840
+ webhookUrl: e.string().optional(),
2841
+ quantity: e.coerce.number().int().min(1).max(10).optional()
2842
+ });
2843
+ e.object({
2844
+ transactionId: e.string()
2845
+ });
2846
+ e.object({
2847
+ transactionId: e.string(),
2848
+ paymentType: Oe
2849
+ });
2850
+ e.object({
2851
+ categories: e.array(Tt)
2852
+ });
2853
+ e.object({
2854
+ id: o,
2855
+ reason: e.string(),
2856
+ location: o.optional()
2857
+ });
2858
+ e.object({
2859
+ _id: o,
2860
+ business: o,
2861
+ user: o,
2862
+ bundleId: e.string(),
2863
+ transaction: e.array(o),
2864
+ subscriptionId: e.string(),
2865
+ expiredAt: e.coerce.date()
2866
+ }).describe(
2867
+ _.describe({
2868
+ collectionName: "StoreSubscriptions",
2869
+ transform: {
2870
+ _id: "oid",
2871
+ business: "oid",
2872
+ user: "oid",
2873
+ transaction: "oid",
2874
+ expiredAt: "date"
2875
+ }
2876
+ })
2877
+ );
2878
+ e.object({
2879
+ member: e.string(),
2880
+ subscriptionId: e.string()
2881
+ });
2882
+ const A0 = {
2883
+ collectionName: "Cards",
2884
+ transform: {
2885
+ _id: "oid",
2886
+ business: "oid",
2887
+ member: "oid",
2888
+ redeemedAt: "date"
2889
+ },
2890
+ lookups: {
2891
+ business: {
2892
+ as: "business",
2893
+ fromCollection: "Business"
2894
+ },
2895
+ member: {
2896
+ as: "pf_member",
2897
+ fromCollection: "UsersV2"
2898
+ }
2899
+ }
2900
+ };
2901
+ e.object({
2902
+ _id: o,
2903
+ business: o,
2904
+ serialNumber: e.string(),
2905
+ setCardOnBind: e.boolean().nullish(),
2906
+ redeemedAt: e.date().nullish(),
2907
+ member: o.nullish(),
2908
+ design: e.string().nullish(),
2909
+ bundle: e.string().nullish(),
2910
+ subscriptionBundle: e.string().nullish(),
2911
+ pf_member: e.lazy(() => le).nullish(),
2912
+ pf_transaction: e.lazy(() => St).nullish()
2913
+ }).describe(_.describe(A0));
2914
+ const T0 = e.object({
2915
+ length: e.coerce.number().optional(),
2916
+ charset: e.string(),
2917
+ prefix: e.string().optional(),
2918
+ suffix: e.string().optional(),
2919
+ pattern: e.string().optional()
2920
+ });
2921
+ e.object({
2922
+ quantity: e.number(),
2923
+ code: e.string(),
2924
+ codeConfig: T0,
2925
+ setCardOnBind: e.boolean().optional(),
2926
+ design: e.string().nullish(),
2927
+ bundle: e.string().optional(),
2928
+ subscriptionBundle: e.string().optional()
2929
+ });
2930
+ const S0 = e.enum(["SMS", "WHATSAPP", "EMAIL"]), k = e.object({
2931
+ channel: S0,
2932
+ variables: e.array(e.string()),
2933
+ title: e.string().nullish(),
2934
+ design: e.any(),
2935
+ content: e.string(),
2936
+ language: e.string(),
2937
+ imageUrl: e.string().nullish()
2938
+ }).superRefine((t, n) => {
2939
+ t.content.length == 0 && n.addIssue({
2940
+ code: e.ZodIssueCode.custom,
2941
+ message: "Content is required"
2942
+ });
2943
+ const d = /{{(.*?)}}/g, r = [...t.content.matchAll(d)].map(($) => $[1]), i = t.variables, a = r.filter(($) => i.indexOf($) < 0);
2944
+ a.length && n.addIssue({
2945
+ code: e.ZodIssueCode.custom,
2946
+ message: "Invalid variable(s): " + a.join(", ")
2947
+ });
2948
+ });
2949
+ function i1(t, n) {
2950
+ return t.replace(/{{(.*?)}}/g, (d, r) => {
2951
+ const a = r.trim().split(".").reduce(($, s) => ($ != null ? $[s] : null) ?? null, n);
2952
+ return a !== null ? a : d;
2953
+ });
2954
+ }
2955
+ const Me = e.enum(["NO_REWARD", "VOUCHER", "LOYALTY"]), xe = e.number().min(0, "Weight need to be at least 0"), De = e.number().int("Must be integer").min(0, "Threshold need to be at least 0"), Ot = e.object({
2956
+ type: e.literal(Me.enum.NO_REWARD),
2957
+ collectible: e.null(),
2958
+ weight: xe
2959
+ }), Mt = e.object({
2960
+ type: e.literal(Me.enum.VOUCHER),
2961
+ collectible: o,
2962
+ collectibleConfig: e.lazy(() => st._def.right.options[0]),
2963
+ earningOption: e.lazy(() => S)
2964
+ }), ue = e.object({
2965
+ type: e.literal(Me.enum.LOYALTY),
2966
+ collectible: o,
2967
+ earningOption: e.lazy(() => S),
2968
+ validityOption: e.lazy(() => dn)
2969
+ }), xt = Mt.extend({
2970
+ weight: xe
2971
+ }), Dt = ue.extend({
2972
+ weight: e.number().min(0, "Weight need to be at least 0")
2973
+ }), o1 = ue.extend({
2974
+ validityOption: lt,
2975
+ weight: xe
2976
+ }), O0 = e.discriminatedUnion("type", [
2977
+ xt,
2978
+ Dt,
2979
+ Ot
2980
+ ]), ot = e.discriminatedUnion("type", [
2981
+ xt.extend({
2982
+ collectible: o.nullish(),
2983
+ business: o.nullish()
2984
+ }),
2985
+ Dt.extend({
2986
+ collectible: o.nullish(),
2987
+ business: o.nullish()
2988
+ }),
2989
+ Ot
2990
+ ]), Lt = Mt.extend({
2991
+ threshold: De
2992
+ }), wt = ue.extend({
2993
+ threshold: De
2994
+ }), a1 = ue.extend({
2995
+ validityOption: lt,
2996
+ threshold: De
2997
+ }), jt = e.discriminatedUnion("type", [
2998
+ Lt,
2999
+ wt
3000
+ ]), M0 = e.discriminatedUnion("type", [
3001
+ Lt.extend({
3002
+ collectible: o.nullish(),
3003
+ business: o.nullish()
3004
+ }),
3005
+ wt.extend({
3006
+ collectible: o.nullish(),
3007
+ collectibleConfig: st.nullish(),
3008
+ business: o.nullish()
3009
+ })
3010
+ ]), x0 = {
3011
+ collectionName: "Locations",
3012
+ transform: {
3013
+ _id: "oid",
3014
+ business: "oid"
3015
+ }
3016
+ }, Bt = e.object({
3017
+ _id: o,
3018
+ business: o,
3019
+ name: e.string(),
3020
+ code: e.string().nullish(),
3021
+ otp: e.string().nullish(),
3022
+ otpExpiredAt: e.coerce.date().nullish(),
3023
+ apiToken: e.string().nullish(),
3024
+ customAttribute: e.record(e.any()).nullish()
3025
+ }).describe(_.describe(x0));
3026
+ e.object({
3027
+ _id: o,
3028
+ name: e.string(),
3029
+ location: o,
3030
+ os: e.string(),
3031
+ apiToken: e.string().nullish()
3032
+ }).describe(
3033
+ _.describe({
3034
+ collectionName: "LocationDevices",
3035
+ transform: {
3036
+ _id: "oid",
3037
+ location: "oid"
3038
+ }
3039
+ })
3040
+ );
3041
+ const $1 = e.object({
3042
+ _id: e.string(),
3043
+ name: e.string()
3044
+ }), D0 = e.enum(["PROGRESSIVE", "STAMP"]), L0 = e.object({
3045
+ type: D0,
3046
+ end: e.number().int().min(0, "Threshold need to be at least 1"),
3047
+ rewards: e.array(e.lazy(() => jt)).nullish()
3048
+ }).superRefine((t, n) => {
3049
+ t.type == "STAMP" && t.end > 40 && (n.addIssue({
3050
+ code: "custom",
3051
+ path: [],
3052
+ message: "Stamp mission can have at most 40 threshold"
3053
+ }), n.addIssue({
3054
+ code: "custom",
3055
+ path: ["end"],
3056
+ message: "Stamp mission can have at most 40 threshold"
3057
+ }));
3058
+ }), ce = e.object({
3059
+ totalCount: e.number().optional(),
3060
+ totalCountPerUser: e.number().optional()
3061
+ }), M = e.object({
3062
+ periods: e.array(
3063
+ e.object({
3064
+ startTime: e.string(),
3065
+ endTime: e.string()
3066
+ })
3067
+ )
3068
+ }), me = e.object({
3069
+ startTime: e.string(),
3070
+ // ISO 8601 date string
3071
+ endTime: e.string(),
3072
+ // ISO 8601 date string
3073
+ eaterType: e.enum(["all", "new", "existing"]),
3074
+ minBasketAmount: e.number().optional(),
3075
+ bundleQuantity: e.number().optional(),
3076
+ workingHour: e.object({
3077
+ mon: M.optional(),
3078
+ tue: M.optional(),
3079
+ wed: M.optional(),
3080
+ thu: M.optional(),
3081
+ fri: M.optional(),
3082
+ sat: M.optional(),
3083
+ sun: M.optional()
3084
+ }).optional()
3085
+ }), w0 = e.object({
3086
+ type: e.enum(["items", "category", "order"]),
3087
+ objectIDs: e.array(e.string()).optional()
3088
+ }), fe = e.object({
3089
+ type: e.enum([
3090
+ "net",
3091
+ // dollar off
3092
+ "percentage",
3093
+ // percentage off
3094
+ "bundleSameFixPrice",
3095
+ // bundle fix price (same item)
3096
+ "bundleDiffFixPrice",
3097
+ // bundle fix price (different items)
3098
+ "bundleSameNet",
3099
+ // bundle dollar off (same item)
3100
+ "bundleDiffNet",
3101
+ // bundle dollar off (different items)
3102
+ "bundleSamePercentage",
3103
+ // bundle percentage off (same item)
3104
+ "bundleDiffPercentage",
3105
+ // bundle percentage off (different items)
3106
+ "delivery",
3107
+ // delivery fee off
3108
+ "freeItem"
3109
+ // free item
3110
+ ]),
3111
+ value: e.number(),
3112
+ cap: e.number().optional(),
3113
+ // for percentage off campaigns
3114
+ scope: w0
3115
+ });
3116
+ e.object({
3117
+ merchantID: e.string().optional(),
3118
+ name: e.string().max(256),
3119
+ quotas: ce.optional(),
3120
+ conditions: me,
3121
+ discount: fe,
3122
+ customTag: e.string().max(22).optional()
3123
+ });
3124
+ e.object({
3125
+ id: e.string()
3126
+ });
3127
+ e.object({
3128
+ merchantID: e.string().optional(),
3129
+ name: e.string().max(256).optional(),
3130
+ quotas: ce.optional(),
3131
+ conditions: me.optional(),
3132
+ discount: fe.optional(),
3133
+ customTag: e.string().max(22).optional()
3134
+ });
3135
+ const at = e.object({
3136
+ id: e.string(),
3137
+ merchantID: e.string(),
3138
+ name: e.string(),
3139
+ quotas: ce.optional(),
3140
+ conditions: me,
3141
+ discount: fe,
3142
+ customTag: e.string().optional(),
3143
+ status: e.enum(["ongoing", "upcoming", "expired", "cancelled"]).optional(),
3144
+ createdAt: e.string().optional(),
3145
+ updatedAt: e.string().optional()
3146
+ });
3147
+ e.object({
3148
+ ongoing: e.array(at),
3149
+ upcoming: e.array(at)
3150
+ });
3151
+ e.object({
3152
+ merchantID: e.string()
3153
+ });
3154
+ e.object({
3155
+ target: e.string(),
3156
+ reason: e.string(),
3157
+ message: e.string()
3158
+ });
3159
+ const j0 = {
3160
+ collectionName: "Groups",
3161
+ transform: {
3162
+ _id: "oid",
3163
+ business: "oid"
3164
+ },
3165
+ lookups: {
3166
+ business: {
3167
+ fromCollection: "Businesses",
3168
+ as: "pf_business"
3169
+ },
3170
+ pf_campaigns: {
3171
+ fromCollection: "Campaigns",
3172
+ as: "pf_campaigns",
3173
+ localField: "_id",
3174
+ foreignField: "group"
3175
+ }
3176
+ }
3177
+ }, s1 = e.object({
3178
+ _id: o,
3179
+ name: e.string().min(1).max(300),
3180
+ business: o,
3181
+ pf_campaigns: e.array(e.any()).optional()
3182
+ }).describe(_.describe(j0)), B0 = e.object({
3183
+ from: e.string().email().nullish(),
3184
+ name: e.string().min(1).max(50).nullish()
3185
+ }), U0 = e.object({
3186
+ _id: e.string(),
3187
+ url: e.string(),
3188
+ targetLocation: e.array(o).nullish(),
3189
+ // null/empty = all locations
3190
+ order: e.number().optional()
3191
+ }), Ut = e.object({
3192
+ type: e.literal($t.enum.MEMBERSHIP),
3193
+ business: o,
3194
+ name: e.string().min(1).max(50),
3195
+ image: e.string().nullish(),
3196
+ url: e.string().nullish(),
3197
+ tiers: e.array(e.lazy(() => Se)),
3198
+ titles: e.array(o),
3199
+ tierCycleEnable: e.boolean().optional(),
3200
+ tierCycle: e.lazy(() => U).nullish(),
3201
+ welcomeMessage: k.optional(),
3202
+ advertisements: e.union([e.array(e.string()), e.array(U0)]).optional(),
3203
+ cardEnable: e.boolean().optional(),
3204
+ autoRevertReward: e.boolean().optional(),
3205
+ design: e.array(
3206
+ e.object({
3207
+ _id: o,
3208
+ image: e.string()
3209
+ })
3210
+ ).optional(),
3211
+ targetLocation: e.array(o).nullish(),
3212
+ brand: e.string().nullish(),
3213
+ email: B0.nullish(),
3214
+ freeCreditAsDiscount: e.boolean().optional(),
3215
+ pf_title: e.array(e.lazy(() => D)).optional(),
3216
+ pf_targetLocation: e.array(e.lazy(() => Bt)).optional(),
3217
+ allowedPhoneCountries: e.union([
3218
+ e.array(e.string().regex(/^\+\d{1,4}$/)),
3219
+ e.null()
3220
+ ]).optional(),
3221
+ // new structure
3222
+ group: e.string().nullish(),
3223
+ templateId: o.nullish()
3224
+ }), c = $t.exclude(["MEMBERSHIP"]), C = e.object({
3225
+ _id: o.nullish(),
3226
+ type: c,
3227
+ // common information
3228
+ business: o,
3229
+ name: e.string().min(1).max(50),
3230
+ image: e.string().nullish(),
3231
+ description: e.string().max(500).nullish(),
3232
+ timeframeOptions: ut.superRefine((t, n) => {
3233
+ t.start && t.end && t.end < t.start && n.addIssue({
3234
+ code: "custom",
3235
+ path: [],
3236
+ params: {
3237
+ i18n: "connectZodCustom:timeframe.end_before_start"
3238
+ }
3239
+ });
3240
+ }).nullish(),
3241
+ targetLocation: e.array(o).nullish(),
3242
+ event: Jr,
3243
+ config: ie.nullish(),
3244
+ currentReceive: e.coerce.number().optional(),
3245
+ // new group structure
3246
+ group: o.nullish(),
3247
+ templateId: o.nullish(),
3248
+ pf_targetLocation: e.array(e.lazy(() => Bt)).optional(),
3249
+ deletedAt: e.coerce.date().optional()
3250
+ }), P = {
3251
+ [c.enum.VOUCHER]: [
3252
+ "BILL_COMPLETED",
3253
+ "FEEDBACK",
3254
+ "MEMBERSHIP_JOINED",
3255
+ "TIER_UPGRADED",
3256
+ "SCHEDULE",
3257
+ "SIMPLE_CLAIM"
3258
+ ],
3259
+ [c.enum.PROMOTION]: ["MAKING_ORDER"],
3260
+ [c.enum.GRAB]: ["MAKING_ORDER"],
3261
+ [c.enum.POINT]: [
3262
+ "BILL_COMPLETED",
3263
+ "FEEDBACK",
3264
+ "MEMBERSHIP_JOINED",
3265
+ "TIER_UPGRADED",
3266
+ "SCHEDULE"
3267
+ ],
3268
+ [c.enum.CREDIT]: [
3269
+ "BILL_COMPLETED",
3270
+ "FEEDBACK",
3271
+ "MEMBERSHIP_JOINED",
3272
+ "TIER_UPGRADED",
3273
+ "SCHEDULE"
3274
+ ],
3275
+ [c.enum.BROADCAST]: [
3276
+ "SCHEDULE",
3277
+ "ISSUE_REWARD",
3278
+ "FEEDBACK"
3279
+ ],
3280
+ [c.enum.COIN]: [
3281
+ "BILL_COMPLETED",
3282
+ "FEEDBACK",
3283
+ "MEMBERSHIP_JOINED",
3284
+ "TIER_UPGRADED",
3285
+ "SCHEDULE"
3286
+ ],
3287
+ [c.enum.REWARD_POOL]: ["GAME_COMPLETED"],
3288
+ [c.enum.GAME]: [
3289
+ "BILL_COMPLETED",
3290
+ "FEEDBACK",
3291
+ "MEMBERSHIP_JOINED",
3292
+ "TIER_UPGRADED",
3293
+ "SCHEDULE",
3294
+ "SIMPLE_CLAIM"
3295
+ ],
3296
+ [c.enum.MISSION]: [
3297
+ "BILL_COMPLETED",
3298
+ "FEEDBACK",
3299
+ "SCHEDULE"
3300
+ ]
3301
+ }, Gt = C.extend({
3302
+ type: e.literal(c.enum.VOUCHER),
3303
+ // event
3304
+ code: e.string().min(0).max(15).regex(/^[A-Za-z0-9\-_.@]*$/, {
3305
+ message: "Code can only contain letters, numbers, and - _ . @"
3306
+ }).optional(),
3307
+ event: g.merge(
3308
+ e.object({
3309
+ type: e.enum(P[c.enum.VOUCHER])
3310
+ })
3311
+ ),
3312
+ earningOption: S.default({
3313
+ amount: 1,
3314
+ type: "FIXED"
3315
+ }),
3316
+ collectible: o,
3317
+ hideInApp: e.boolean().optional(),
3318
+ notify: e.boolean().optional(),
3319
+ notifyMessage: e.lazy(() => k).optional(),
3320
+ notifyCampaign: o.nullish(),
3321
+ pf_collectible: e.lazy(() => D).optional(),
3322
+ pf_notifyCampaign: e.lazy(() => H).optional()
3323
+ }), G0 = e.object({
3324
+ gameType: e.string()
3325
+ }), kt = C.extend({
3326
+ type: e.literal(c.enum.PROMOTION),
3327
+ // event
3328
+ event: g.merge(
3329
+ e.object({
3330
+ type: e.enum(P[c.enum.PROMOTION])
3331
+ })
3332
+ ),
3333
+ effect: e.custom().superRefine((t, n) => {
3334
+ t || n.addIssue({
3335
+ code: "custom",
3336
+ path: [],
3337
+ params: {
3338
+ i18n: "connectZodCustom:campaign.effect_required"
3339
+ }
3340
+ });
3341
+ }),
3342
+ gameConfig: G0.nullish()
3343
+ }), Ht = C.extend({
3344
+ type: e.literal(c.enum.POINT),
3345
+ // event
3346
+ event: g.merge(
3347
+ e.object({
3348
+ type: e.enum(P[c.enum.POINT])
3349
+ })
3350
+ ),
3351
+ earningOption: S,
3352
+ collectible: o,
3353
+ notify: e.boolean().optional(),
3354
+ notifyMessage: e.lazy(() => k).optional(),
3355
+ notifyCampaign: o.nullish(),
3356
+ pf_collectible: e.lazy(() => D).optional(),
3357
+ pf_notifyCampaign: e.lazy(() => H).optional()
3358
+ }), Vt = C.extend({
3359
+ type: e.literal(c.enum.CREDIT),
3360
+ // event
3361
+ event: g.merge(
3362
+ e.object({
3363
+ type: e.enum(P[c.enum.CREDIT])
3364
+ })
3365
+ ),
3366
+ earningOption: S,
3367
+ collectible: o,
3368
+ notify: e.boolean().optional(),
3369
+ notifyMessage: e.lazy(() => k).optional(),
3370
+ notifyCampaign: o.nullish(),
3371
+ pf_collectible: e.lazy(() => D).optional(),
3372
+ pf_notifyCampaign: e.lazy(() => H).optional()
3373
+ }), H = C.extend({
3374
+ type: e.literal(c.enum.BROADCAST),
3375
+ // event
3376
+ event: g.merge(
3377
+ e.object({
3378
+ type: e.enum(P[c.enum.BROADCAST])
3379
+ })
3380
+ ),
3381
+ message: k,
3382
+ linkedCampaign: o.nullish()
3383
+ }), Kt = C.extend({
3384
+ type: e.literal(c.enum.COIN),
3385
+ // event
3386
+ event: g.merge(
3387
+ e.object({
3388
+ type: e.enum(P[c.enum.COIN])
3389
+ })
3390
+ ),
3391
+ earningOption: S,
3392
+ collectible: o,
3393
+ notify: e.boolean().optional(),
3394
+ notifyMessage: e.lazy(() => k).optional(),
3395
+ notifyCampaign: o.nullish(),
3396
+ pf_collectible: e.lazy(() => D).optional(),
3397
+ pf_notifyCampaign: e.lazy(() => H).optional()
3398
+ }), de = C.extend({
3399
+ type: e.literal(c.enum.REWARD_POOL),
3400
+ // event
3401
+ event: g.merge(
3402
+ e.object({
3403
+ type: e.enum(P[c.enum.REWARD_POOL])
3404
+ })
3405
+ ),
3406
+ rewards: e.array(e.lazy(() => O0)).min(1, "Requires at least 1 reward")
3407
+ }), Wt = C.extend({
3408
+ type: e.literal(c.enum.GAME),
3409
+ // event
3410
+ event: g.merge(
3411
+ e.object({
3412
+ type: e.enum(P[c.enum.GAME])
3413
+ })
3414
+ ),
3415
+ earningOption: S,
3416
+ collectible: o,
3417
+ game: e.lazy(() => de).optional(),
3418
+ pf_collectible: e.lazy(() => D).optional(),
3419
+ rewardPool: o.optional()
3420
+ }), zt = C.extend({
3421
+ type: e.literal(c.enum.MISSION),
3422
+ event: g.merge(
3423
+ e.object({
3424
+ type: e.enum(P[c.enum.MISSION])
3425
+ })
3426
+ ),
3427
+ earningOption: S,
3428
+ collectible: o,
3429
+ pf_collectible: e.lazy(() => D).optional(),
3430
+ mission: e.lazy(() => L0),
3431
+ rewards: e.array(e.lazy(() => jt)).min(1, "Requires at least 1 reward")
3432
+ }), Yt = C.omit({
3433
+ timeframeOptions: !0
3434
+ }).extend({
3435
+ type: e.literal(c.enum.GRAB),
3436
+ event: g.merge(
3437
+ e.object({
3438
+ type: e.enum(P[c.enum.GRAB])
3439
+ })
3440
+ ),
3441
+ business: o,
3442
+ name: e.string().min(1).max(50),
3443
+ targetLocation: e.array(o).nullish(),
3444
+ group: e.string().nullish(),
3445
+ templateId: o.nullish(),
3446
+ // Grab specific fields
3447
+ conditions: me,
3448
+ quotas: ce,
3449
+ discount: fe,
3450
+ grabCampaignMeta: e.array(
3451
+ e.object({
3452
+ locationId: e.string(),
3453
+ campaignId: e.string()
3454
+ })
3455
+ ).optional(),
3456
+ // Make timeframeOptions required (remove .nullish() from parent)
3457
+ timeframeOptions: ut.superRefine((t, n) => {
3458
+ (!t.start || !t.end) && n.addIssue({
3459
+ code: "custom",
3460
+ path: [],
3461
+ params: {
3462
+ i18n: { key: "timeframe.required" }
3463
+ }
3464
+ }), t.start && t.end && t.end < t.start && n.addIssue({
3465
+ code: "custom",
3466
+ path: [],
3467
+ params: {
3468
+ i18n: { key: "timeframe.end_before_start" }
3469
+ }
3470
+ });
3471
+ })
3472
+ }), k0 = {
3473
+ collectionName: "Campaigns",
3474
+ transform: {
3475
+ _id: "oid",
3476
+ business: "oid",
3477
+ collectible: "oid",
3478
+ templateId: "oid",
3479
+ group: "oid",
3480
+ notifyCampaign: "oid",
3481
+ linkedCampaign: "oid",
3482
+ rewardPool: "oid"
3483
+ },
3484
+ lookups: {
3485
+ business: {
3486
+ fromCollection: "Businesses",
3487
+ as: "pf_business"
3488
+ },
3489
+ targetLocation: {
3490
+ fromCollection: "Locations",
3491
+ as: "pf_targetLocation"
3492
+ },
3493
+ collectible: {
3494
+ fromCollection: "CollectibleConfigs",
3495
+ as: "pf_collectible"
3496
+ },
3497
+ titles: {
3498
+ fromCollection: "CollectibleConfigs",
3499
+ as: "pf_title"
3500
+ },
3501
+ templateId: {
3502
+ fromCollection: "Templates",
3503
+ as: "template"
3504
+ },
3505
+ notifyCampaign: {
3506
+ fromCollection: "Campaigns",
3507
+ as: "pf_notifyCampaign"
3508
+ },
3509
+ rewardPool: {
3510
+ fromCollection: "Campaigns",
3511
+ as: "game"
3512
+ }
3513
+ }
3514
+ }, l1 = e.object({ _id: o }).and(
3515
+ e.discriminatedUnion("type", [
3516
+ Ut,
3517
+ Gt,
3518
+ kt,
3519
+ Ht,
3520
+ Vt,
3521
+ H,
3522
+ Kt,
3523
+ de,
3524
+ Wt,
3525
+ zt,
3526
+ Yt
3527
+ ])
3528
+ ).describe(_.describe(k0)), u1 = e.discriminatedUnion("type", [
3529
+ Gt.extend({
3530
+ business: o.nullish()
3531
+ }),
3532
+ kt.extend({
3533
+ business: o.nullish()
3534
+ }),
3535
+ Ht.extend({
3536
+ business: o.nullish()
3537
+ }),
3538
+ Vt.extend({
3539
+ business: o.nullish()
3540
+ }),
3541
+ H.extend({
3542
+ business: o.nullish()
3543
+ }),
3544
+ Kt.extend({
3545
+ business: o.nullish()
3546
+ }),
3547
+ de.extend({
3548
+ rewards: e.array(e.lazy(() => ot)).min(1, "Requires at least 1 reward")
3549
+ }),
3550
+ Wt.extend({
3551
+ business: o.nullish(),
3552
+ game: de.extend({
3553
+ business: o.nullish(),
3554
+ rewards: e.array(e.lazy(() => ot)).min(1, "Requires at least 1 reward")
3555
+ })
3556
+ }),
3557
+ zt.extend({
3558
+ business: o.nullish(),
3559
+ rewards: e.array(e.lazy(() => M0)).min(1, "Requires at least 1 reward")
3560
+ }),
3561
+ Yt.extend({
3562
+ business: o.nullish()
3563
+ })
3564
+ ]);
3565
+ Ut.pick({
3566
+ business: !0,
3567
+ name: !0,
3568
+ image: !0,
3569
+ // url: true,
3570
+ tiers: !0,
3571
+ // titles: true,
3572
+ cardEnable: !0,
3573
+ // design: true,
3574
+ targetLocation: !0,
3575
+ brand: !0,
3576
+ email: !0,
3577
+ freeCreditAsDiscount: !0,
3578
+ allowedPhoneCountries: !0,
3579
+ pf_title: !0,
3580
+ pf_targetLocation: !0
3581
+ }).extend({
3582
+ allowedPhoneCountryDetails: e.array(en).nullish()
3583
+ });
3584
+ export {
3585
+ L0 as A,
3586
+ Er as B,
3587
+ ht as C,
3588
+ Q as D,
3589
+ ne as E,
3590
+ r1 as F,
3591
+ Jr as G,
3592
+ le as H,
3593
+ t1 as I,
3594
+ $1 as J,
3595
+ P as K,
3596
+ i1 as L,
3597
+ Ut as M,
3598
+ Ur as N,
3599
+ c as a,
3600
+ e1 as b,
3601
+ f as c,
3602
+ n1 as d,
3603
+ Z0 as e,
3604
+ X0 as f,
3605
+ Q0 as g,
3606
+ J0 as h,
3607
+ q0 as i,
3608
+ Pr as j,
3609
+ Y0 as k,
3610
+ l1 as l,
3611
+ d1 as m,
3612
+ P0 as n,
3613
+ Rt as o,
3614
+ p0 as p,
3615
+ At as q,
3616
+ It as r,
3617
+ Nr as s,
3618
+ s1 as t,
3619
+ u1 as u,
3620
+ o1 as v,
3621
+ ot as w,
3622
+ D0 as x,
3623
+ a1 as y,
3624
+ M0 as z
3625
+ };