@incodetech/web 2.0.0-alpha.1 → 2.0.0-alpha.2

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 (116) hide show
  1. package/.turbo/turbo-build.log +58 -0
  2. package/.turbo/turbo-coverage.log +23 -0
  3. package/.turbo/turbo-format.log +6 -0
  4. package/.turbo/turbo-lint$colon$fix.log +6 -0
  5. package/.turbo/turbo-lint.log +6 -0
  6. package/.turbo/turbo-test.log +1033 -0
  7. package/.turbo/turbo-typecheck.log +5 -0
  8. package/coverage/base.css +224 -0
  9. package/coverage/block-navigation.js +87 -0
  10. package/coverage/email/email.tsx.html +850 -0
  11. package/coverage/email/emailInput.tsx.html +340 -0
  12. package/coverage/email/index.html +131 -0
  13. package/coverage/favicon.png +0 -0
  14. package/coverage/flow/flow.tsx.html +961 -0
  15. package/coverage/flow/flowCompleted.tsx.html +448 -0
  16. package/coverage/flow/flowInit.ts.html +367 -0
  17. package/coverage/flow/flowStart.tsx.html +208 -0
  18. package/coverage/flow/index.html +221 -0
  19. package/coverage/flow/preloadFlow.ts.html +598 -0
  20. package/coverage/flow/unsupportedModule.tsx.html +202 -0
  21. package/coverage/flow/useFlowInitialization.ts.html +469 -0
  22. package/coverage/flow/useModuleLoader.ts.html +361 -0
  23. package/coverage/hooks/index.html +116 -0
  24. package/coverage/hooks/useManager.ts.html +205 -0
  25. package/coverage/index.html +401 -0
  26. package/coverage/permissions/boldWithArrow.tsx.html +208 -0
  27. package/coverage/permissions/denied.tsx.html +172 -0
  28. package/coverage/permissions/deniedAndroid.tsx.html +253 -0
  29. package/coverage/permissions/deniedDesktop.tsx.html +277 -0
  30. package/coverage/permissions/deniedIOS.tsx.html +304 -0
  31. package/coverage/permissions/deniedInstructions.tsx.html +142 -0
  32. package/coverage/permissions/iconWrapper.tsx.html +130 -0
  33. package/coverage/permissions/index.html +251 -0
  34. package/coverage/permissions/learnMore.tsx.html +340 -0
  35. package/coverage/permissions/numberedStep.tsx.html +127 -0
  36. package/coverage/permissions/permissions.tsx.html +289 -0
  37. package/coverage/phone/index.html +116 -0
  38. package/coverage/phone/phoneInput.tsx.html +832 -0
  39. package/coverage/prettify.css +1 -0
  40. package/coverage/prettify.js +2 -0
  41. package/coverage/selfie/index.html +131 -0
  42. package/coverage/selfie/selfie.tsx.html +334 -0
  43. package/coverage/selfie/tutorial.tsx.html +214 -0
  44. package/coverage/shared/baseTutorial/baseTutorial.tsx.html +250 -0
  45. package/coverage/shared/baseTutorial/index.html +131 -0
  46. package/coverage/shared/baseTutorial/replaceBaseTutorial.ts.html +289 -0
  47. package/coverage/shared/button/button.tsx.html +226 -0
  48. package/coverage/shared/button/index.html +116 -0
  49. package/coverage/shared/componentRoot/incodeComponent.tsx.html +121 -0
  50. package/coverage/shared/componentRoot/index.html +116 -0
  51. package/coverage/shared/countries/countries.ts.html +502 -0
  52. package/coverage/shared/countries/index.html +116 -0
  53. package/coverage/shared/icons/chevronDown.tsx.html +151 -0
  54. package/coverage/shared/icons/index.html +131 -0
  55. package/coverage/shared/icons/successIcon.tsx.html +163 -0
  56. package/coverage/shared/loader/index.html +116 -0
  57. package/coverage/shared/loader/loadingIcon.tsx.html +286 -0
  58. package/coverage/shared/otpInput/index.html +116 -0
  59. package/coverage/shared/otpInput/otpInput.tsx.html +808 -0
  60. package/coverage/shared/page/index.html +146 -0
  61. package/coverage/shared/page/page.tsx.html +358 -0
  62. package/coverage/shared/page/pageUiConfig.ts.html +277 -0
  63. package/coverage/shared/page/verifiedByIncode.tsx.html +310 -0
  64. package/coverage/shared/spacer/index.html +116 -0
  65. package/coverage/shared/spacer/spacer.tsx.html +349 -0
  66. package/coverage/shared/spinner/index.html +116 -0
  67. package/coverage/shared/spinner/spinner.tsx.html +280 -0
  68. package/coverage/shared/title/index.html +116 -0
  69. package/coverage/shared/title/title.tsx.html +121 -0
  70. package/coverage/shared/uiConfig/index.html +116 -0
  71. package/coverage/shared/uiConfig/uiConfig.ts.html +193 -0
  72. package/coverage/shared/webComponent/incodeModule.ts.html +172 -0
  73. package/coverage/shared/webComponent/index.html +131 -0
  74. package/coverage/shared/webComponent/registerIncodeElement.ts.html +130 -0
  75. package/coverage/sort-arrow-sprite.png +0 -0
  76. package/coverage/sorter.js +210 -0
  77. package/coverage/styles/cn.tsx.html +148 -0
  78. package/coverage/styles/fetchTheme.ts.html +349 -0
  79. package/coverage/styles/index.html +131 -0
  80. package/dist/asset-manifest.json +18 -0
  81. package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
  82. package/dist/button-DeMZ_34N.js +266 -0
  83. package/dist/button.css +335 -0
  84. package/dist/email/email.es.js +145 -0
  85. package/dist/email/styles.css +123 -0
  86. package/dist/flow/flow.es.js +9 -0
  87. package/dist/flow/styles.css +204 -0
  88. package/dist/flow-ZK6OBsa3.js +568 -0
  89. package/dist/incodeModule-BF5MX9GT.js +243 -0
  90. package/dist/incodeModule.css +119 -0
  91. package/dist/index.es.js +101 -0
  92. package/dist/otpInput-BUrV4IAF.js +151 -0
  93. package/dist/otpInput.css +167 -0
  94. package/dist/phone/phone.es.js +3442 -0
  95. package/dist/phone/styles.css +305 -0
  96. package/dist/selfie/selfie.es.js +893 -0
  97. package/dist/selfie/styles.css +1163 -0
  98. package/dist/selfieTutorial-C-u5GufD.js +29 -0
  99. package/dist/styles/core.css +1013 -0
  100. package/dist/styles/tokens.css +543 -0
  101. package/dist/successIcon.css +4 -0
  102. package/dist/title-ng7q7YDh.js +2161 -0
  103. package/dist/title.css +38 -0
  104. package/dist/types/core.d.ts +1 -0
  105. package/dist/types/email/email.d.ts +2 -0
  106. package/dist/types/email.d.ts +50 -0
  107. package/dist/types/flow/flow.d.ts +2 -0
  108. package/dist/types/flow.d.ts +46 -0
  109. package/dist/types/index.d.ts +223 -0
  110. package/dist/types/phone/phone.d.ts +2 -0
  111. package/dist/types/phone.d.ts +51 -0
  112. package/dist/types/selfie/selfie.d.ts +2 -0
  113. package/dist/types/selfie.d.ts +24 -0
  114. package/dist/types/styles/core.d.ts +1 -0
  115. package/dist/vendor-preact-CK0WeTOR.js +584 -0
  116. package/package.json +17 -17
@@ -0,0 +1,3442 @@
1
+ import { u as s, S as $e, a as Ct, B as Pt } from "../button-DeMZ_34N.js";
2
+ import { createPhoneManager as St } from "@incodetech/core/phone";
3
+ import { d as w, A as It, y as re, k as Ce } from "../vendor-preact-CK0WeTOR.js";
4
+ import { a as Et, I as xt, P as Pe } from "../incodeModule-BF5MX9GT.js";
5
+ import { O as Tt } from "../otpInput-BUrV4IAF.js";
6
+ /* empty css */
7
+ const rt = { 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", "(?:[025-7]\\d|44)\\d{6}", [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", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|3[3-7]|5[12]|87)\\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}"], 0, 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]|33|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", "(?:[27]\\d{3}|8776)\\d{4}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[278]"]]]], 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, "528[89]"], 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", "(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|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{3}|800)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "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", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\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}"], 0, 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", ["[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["1(?:6|8[06])", "1(?:6|8[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", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33622|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", ["2(?:[0367]|4[3-8])"]], ["(\\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", ["2(?:[0367]|4[3-8])"]], ["(\\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]"]]], 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{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:[19]|2[2-46-9]|3[3-9])|8(?:0[89]|92)"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8"], "0$1"], ["(\\d{3})(\\d{6})", "$1-$2", ["[5-7]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\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}"]]], 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", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\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}"], 0, 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", "(?:596\\d|7091)\\d{5}|(?:69|[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", ["(?: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", "(?: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", "[45]\\d{5}|(?:708|8\\d\\d)\\d{6}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "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", "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,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", ["[26]1|3[289]|4[1246-8]|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, 0, [["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}", [10]], ["9\\d{9}", [10]], ["8(?:0[04]|108\\d{3})\\d{7}"], ["80[39]\\d{7}", [10]], ["808\\d{7}", [10]]], "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|30|[689]\\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-59]|61)", "5(?:[0-59]|61[06])", "5(?:[0-59]|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, [["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?: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-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|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-247]|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]|33|44|66|77|88)[2-9]\\d{6}"], 0, 0, 0, ["305209\\d{4}"]]], 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|51"]], ["(\\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})|50\\d{3})\\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}"]]] } };
8
+ function dt(e, t) {
9
+ var n = Array.prototype.slice.call(t);
10
+ return n.push(rt), e.apply(this, n);
11
+ }
12
+ function Se(e, t) {
13
+ e = e.split("-"), t = t.split("-");
14
+ for (var n = e[0].split("."), r = t[0].split("."), d = 0; d < 3; d++) {
15
+ var i = Number(n[d]), a = Number(r[d]);
16
+ if (i > a) return 1;
17
+ if (a > i) return -1;
18
+ if (!isNaN(i) && isNaN(a)) return 1;
19
+ if (isNaN(i) && !isNaN(a)) return -1;
20
+ }
21
+ return e[1] && t[1] ? e[1] > t[1] ? 1 : e[1] < t[1] ? -1 : 0 : !e[1] && t[1] ? 1 : e[1] && !t[1] ? -1 : 0;
22
+ }
23
+ var At = {}.constructor;
24
+ function x(e) {
25
+ return e != null && e.constructor === At;
26
+ }
27
+ function F(e) {
28
+ "@babel/helpers - typeof";
29
+ return F = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
30
+ return typeof t;
31
+ } : function(t) {
32
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
33
+ }, F(e);
34
+ }
35
+ function Z(e, t) {
36
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
37
+ }
38
+ function Ft(e, t) {
39
+ for (var n = 0; n < t.length; n++) {
40
+ var r = t[n];
41
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, wt(r.key), r);
42
+ }
43
+ }
44
+ function J(e, t, n) {
45
+ return t && Ft(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
46
+ }
47
+ function wt(e) {
48
+ var t = _t(e, "string");
49
+ return F(t) == "symbol" ? t : t + "";
50
+ }
51
+ function _t(e, t) {
52
+ if (F(e) != "object" || !e) return e;
53
+ var n = e[Symbol.toPrimitive];
54
+ if (n !== void 0) {
55
+ var r = n.call(e, t);
56
+ if (F(r) != "object") return r;
57
+ throw new TypeError("@@toPrimitive must return a primitive value.");
58
+ }
59
+ return String(e);
60
+ }
61
+ var Ot = "1.2.0", Rt = "1.7.35", Ie = " ext. ", Dt = /^\d+$/, g = /* @__PURE__ */ (function() {
62
+ function e(t) {
63
+ Z(this, e), it(t), this.metadata = t, at.call(this, t);
64
+ }
65
+ return J(e, [{
66
+ key: "getCountries",
67
+ value: function() {
68
+ return Object.keys(this.metadata.countries).filter(function(n) {
69
+ return n !== "001";
70
+ });
71
+ }
72
+ }, {
73
+ key: "getCountryMetadata",
74
+ value: function(n) {
75
+ return this.metadata.countries[n];
76
+ }
77
+ }, {
78
+ key: "nonGeographic",
79
+ value: function() {
80
+ if (!(this.v1 || this.v2 || this.v3))
81
+ return this.metadata.nonGeographic || this.metadata.nonGeographical;
82
+ }
83
+ }, {
84
+ key: "hasCountry",
85
+ value: function(n) {
86
+ return this.getCountryMetadata(n) !== void 0;
87
+ }
88
+ }, {
89
+ key: "hasCallingCode",
90
+ value: function(n) {
91
+ if (this.getCountryCodesForCallingCode(n))
92
+ return !0;
93
+ if (this.nonGeographic()) {
94
+ if (this.nonGeographic()[n])
95
+ return !0;
96
+ } else {
97
+ var r = this.countryCallingCodes()[n];
98
+ if (r && r.length === 1 && r[0] === "001")
99
+ return !0;
100
+ }
101
+ }
102
+ }, {
103
+ key: "isNonGeographicCallingCode",
104
+ value: function(n) {
105
+ return this.nonGeographic() ? !!this.nonGeographic()[n] : !this.getCountryCodesForCallingCode(n);
106
+ }
107
+ // Deprecated.
108
+ }, {
109
+ key: "country",
110
+ value: function(n) {
111
+ return this.selectNumberingPlan(n);
112
+ }
113
+ }, {
114
+ key: "selectNumberingPlan",
115
+ value: function(n, r) {
116
+ if (n && Dt.test(n) && (r = n, n = null), n && n !== "001") {
117
+ if (!this.hasCountry(n))
118
+ throw new Error("Unknown country: ".concat(n));
119
+ this.numberingPlan = new Ee(this.getCountryMetadata(n), this);
120
+ } else if (r) {
121
+ if (!this.hasCallingCode(r))
122
+ throw new Error("Unknown calling code: ".concat(r));
123
+ this.numberingPlan = new Ee(this.getNumberingPlanMetadata(r), this);
124
+ } else
125
+ this.numberingPlan = void 0;
126
+ return this;
127
+ }
128
+ }, {
129
+ key: "getCountryCodesForCallingCode",
130
+ value: function(n) {
131
+ var r = this.countryCallingCodes()[n];
132
+ if (r)
133
+ return r.length === 1 && r[0].length === 3 ? void 0 : r;
134
+ }
135
+ }, {
136
+ key: "getCountryCodeForCallingCode",
137
+ value: function(n) {
138
+ var r = this.getCountryCodesForCallingCode(n);
139
+ if (r)
140
+ return r[0];
141
+ }
142
+ }, {
143
+ key: "getNumberingPlanMetadata",
144
+ value: function(n) {
145
+ var r = this.getCountryCodeForCallingCode(n);
146
+ if (r)
147
+ return this.getCountryMetadata(r);
148
+ if (this.nonGeographic()) {
149
+ var d = this.nonGeographic()[n];
150
+ if (d)
151
+ return d;
152
+ } else {
153
+ var i = this.countryCallingCodes()[n];
154
+ if (i && i.length === 1 && i[0] === "001")
155
+ return this.metadata.countries["001"];
156
+ }
157
+ }
158
+ // Deprecated.
159
+ }, {
160
+ key: "countryCallingCode",
161
+ value: function() {
162
+ return this.numberingPlan.callingCode();
163
+ }
164
+ // Deprecated.
165
+ }, {
166
+ key: "IDDPrefix",
167
+ value: function() {
168
+ return this.numberingPlan.IDDPrefix();
169
+ }
170
+ // Deprecated.
171
+ }, {
172
+ key: "defaultIDDPrefix",
173
+ value: function() {
174
+ return this.numberingPlan.defaultIDDPrefix();
175
+ }
176
+ // Deprecated.
177
+ }, {
178
+ key: "nationalNumberPattern",
179
+ value: function() {
180
+ return this.numberingPlan.nationalNumberPattern();
181
+ }
182
+ // Deprecated.
183
+ }, {
184
+ key: "possibleLengths",
185
+ value: function() {
186
+ return this.numberingPlan.possibleLengths();
187
+ }
188
+ // Deprecated.
189
+ }, {
190
+ key: "formats",
191
+ value: function() {
192
+ return this.numberingPlan.formats();
193
+ }
194
+ // Deprecated.
195
+ }, {
196
+ key: "nationalPrefixForParsing",
197
+ value: function() {
198
+ return this.numberingPlan.nationalPrefixForParsing();
199
+ }
200
+ // Deprecated.
201
+ }, {
202
+ key: "nationalPrefixTransformRule",
203
+ value: function() {
204
+ return this.numberingPlan.nationalPrefixTransformRule();
205
+ }
206
+ // Deprecated.
207
+ }, {
208
+ key: "leadingDigits",
209
+ value: function() {
210
+ return this.numberingPlan.leadingDigits();
211
+ }
212
+ // Deprecated.
213
+ }, {
214
+ key: "hasTypes",
215
+ value: function() {
216
+ return this.numberingPlan.hasTypes();
217
+ }
218
+ // Deprecated.
219
+ }, {
220
+ key: "type",
221
+ value: function(n) {
222
+ return this.numberingPlan.type(n);
223
+ }
224
+ // Deprecated.
225
+ }, {
226
+ key: "ext",
227
+ value: function() {
228
+ return this.numberingPlan.ext();
229
+ }
230
+ }, {
231
+ key: "countryCallingCodes",
232
+ value: function() {
233
+ return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
234
+ }
235
+ // Deprecated.
236
+ }, {
237
+ key: "chooseCountryByCountryCallingCode",
238
+ value: function(n) {
239
+ return this.selectNumberingPlan(n);
240
+ }
241
+ }, {
242
+ key: "hasSelectedNumberingPlan",
243
+ value: function() {
244
+ return this.numberingPlan !== void 0;
245
+ }
246
+ }]);
247
+ })(), Ee = /* @__PURE__ */ (function() {
248
+ function e(t, n) {
249
+ Z(this, e), this.globalMetadataObject = n, this.metadata = t, at.call(this, n.metadata);
250
+ }
251
+ return J(e, [{
252
+ key: "callingCode",
253
+ value: function() {
254
+ return this.metadata[0];
255
+ }
256
+ // Formatting information for regions which share
257
+ // a country calling code is contained by only one region
258
+ // for performance reasons. For example, for NANPA region
259
+ // ("North American Numbering Plan Administration",
260
+ // which includes USA, Canada, Cayman Islands, Bahamas, etc)
261
+ // it will be contained in the metadata for `US`.
262
+ }, {
263
+ key: "getDefaultCountryMetadataForRegion",
264
+ value: function() {
265
+ return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
266
+ }
267
+ // Is always present.
268
+ }, {
269
+ key: "IDDPrefix",
270
+ value: function() {
271
+ if (!(this.v1 || this.v2))
272
+ return this.metadata[1];
273
+ }
274
+ // Is only present when a country supports multiple IDD prefixes.
275
+ }, {
276
+ key: "defaultIDDPrefix",
277
+ value: function() {
278
+ if (!(this.v1 || this.v2))
279
+ return this.metadata[12];
280
+ }
281
+ }, {
282
+ key: "nationalNumberPattern",
283
+ value: function() {
284
+ return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
285
+ }
286
+ // "possible length" data is always present in Google's metadata.
287
+ }, {
288
+ key: "possibleLengths",
289
+ value: function() {
290
+ if (!this.v1)
291
+ return this.metadata[this.v2 ? 2 : 3];
292
+ }
293
+ }, {
294
+ key: "_getFormats",
295
+ value: function(n) {
296
+ return n[this.v1 ? 2 : this.v2 ? 3 : 4];
297
+ }
298
+ // For countries of the same region (e.g. NANPA)
299
+ // formats are all stored in the "main" country for that region.
300
+ // E.g. "RU" and "KZ", "US" and "CA".
301
+ }, {
302
+ key: "formats",
303
+ value: function() {
304
+ var n = this, r = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
305
+ return r.map(function(d) {
306
+ return new jt(d, n);
307
+ });
308
+ }
309
+ }, {
310
+ key: "nationalPrefix",
311
+ value: function() {
312
+ return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
313
+ }
314
+ }, {
315
+ key: "_getNationalPrefixFormattingRule",
316
+ value: function(n) {
317
+ return n[this.v1 ? 4 : this.v2 ? 5 : 6];
318
+ }
319
+ // For countries of the same region (e.g. NANPA)
320
+ // national prefix formatting rule is stored in the "main" country for that region.
321
+ // E.g. "RU" and "KZ", "US" and "CA".
322
+ }, {
323
+ key: "nationalPrefixFormattingRule",
324
+ value: function() {
325
+ return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
326
+ }
327
+ }, {
328
+ key: "_nationalPrefixForParsing",
329
+ value: function() {
330
+ return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
331
+ }
332
+ }, {
333
+ key: "nationalPrefixForParsing",
334
+ value: function() {
335
+ return this._nationalPrefixForParsing() || this.nationalPrefix();
336
+ }
337
+ }, {
338
+ key: "nationalPrefixTransformRule",
339
+ value: function() {
340
+ return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
341
+ }
342
+ }, {
343
+ key: "_getNationalPrefixIsOptionalWhenFormatting",
344
+ value: function() {
345
+ return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
346
+ }
347
+ // For countries of the same region (e.g. NANPA)
348
+ // "national prefix is optional when formatting" flag is
349
+ // stored in the "main" country for that region.
350
+ // E.g. "RU" and "KZ", "US" and "CA".
351
+ }, {
352
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
353
+ value: function() {
354
+ return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
355
+ }
356
+ }, {
357
+ key: "leadingDigits",
358
+ value: function() {
359
+ return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
360
+ }
361
+ }, {
362
+ key: "types",
363
+ value: function() {
364
+ return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
365
+ }
366
+ }, {
367
+ key: "hasTypes",
368
+ value: function() {
369
+ return this.types() && this.types().length === 0 ? !1 : !!this.types();
370
+ }
371
+ }, {
372
+ key: "type",
373
+ value: function(n) {
374
+ if (this.hasTypes() && xe(this.types(), n))
375
+ return new Mt(xe(this.types(), n), this);
376
+ }
377
+ }, {
378
+ key: "ext",
379
+ value: function() {
380
+ return this.v1 || this.v2 ? Ie : this.metadata[13] || Ie;
381
+ }
382
+ }]);
383
+ })(), jt = /* @__PURE__ */ (function() {
384
+ function e(t, n) {
385
+ Z(this, e), this._format = t, this.metadata = n;
386
+ }
387
+ return J(e, [{
388
+ key: "pattern",
389
+ value: function() {
390
+ return this._format[0];
391
+ }
392
+ }, {
393
+ key: "format",
394
+ value: function() {
395
+ return this._format[1];
396
+ }
397
+ }, {
398
+ key: "leadingDigitsPatterns",
399
+ value: function() {
400
+ return this._format[2] || [];
401
+ }
402
+ }, {
403
+ key: "nationalPrefixFormattingRule",
404
+ value: function() {
405
+ return this._format[3] || this.metadata.nationalPrefixFormattingRule();
406
+ }
407
+ }, {
408
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
409
+ value: function() {
410
+ return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
411
+ }
412
+ }, {
413
+ key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
414
+ value: function() {
415
+ return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
416
+ }
417
+ // Checks whether national prefix formatting rule contains national prefix.
418
+ }, {
419
+ key: "usesNationalPrefix",
420
+ value: function() {
421
+ return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
422
+ !Lt.test(this.nationalPrefixFormattingRule()));
423
+ }
424
+ }, {
425
+ key: "internationalFormat",
426
+ value: function() {
427
+ return this._format[5] || this.format();
428
+ }
429
+ }]);
430
+ })(), Lt = /^\(?\$1\)?$/, Mt = /* @__PURE__ */ (function() {
431
+ function e(t, n) {
432
+ Z(this, e), this.type = t, this.metadata = n;
433
+ }
434
+ return J(e, [{
435
+ key: "pattern",
436
+ value: function() {
437
+ return this.metadata.v1 ? this.type : this.type[0];
438
+ }
439
+ }, {
440
+ key: "possibleLengths",
441
+ value: function() {
442
+ if (!this.metadata.v1)
443
+ return this.type[1] || this.metadata.possibleLengths();
444
+ }
445
+ }]);
446
+ })();
447
+ function xe(e, t) {
448
+ switch (t) {
449
+ case "FIXED_LINE":
450
+ return e[0];
451
+ case "MOBILE":
452
+ return e[1];
453
+ case "TOLL_FREE":
454
+ return e[2];
455
+ case "PREMIUM_RATE":
456
+ return e[3];
457
+ case "PERSONAL_NUMBER":
458
+ return e[4];
459
+ case "VOICEMAIL":
460
+ return e[5];
461
+ case "UAN":
462
+ return e[6];
463
+ case "PAGER":
464
+ return e[7];
465
+ case "VOIP":
466
+ return e[8];
467
+ case "SHARED_COST":
468
+ return e[9];
469
+ }
470
+ }
471
+ function it(e) {
472
+ if (!e)
473
+ throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
474
+ if (!x(e) || !x(e.countries))
475
+ 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(x(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + kt(e) + ": " + e, "."));
476
+ }
477
+ var kt = function(t) {
478
+ return F(t);
479
+ };
480
+ function Q(e, t) {
481
+ if (t = new g(t), t.hasCountry(e))
482
+ return t.selectNumberingPlan(e).countryCallingCode();
483
+ throw new Error("Unknown country: ".concat(e));
484
+ }
485
+ function Gt(e, t) {
486
+ return t.countries.hasOwnProperty(e);
487
+ }
488
+ function at(e) {
489
+ var t = e.version;
490
+ typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? Se(t, Ot) === -1 ? this.v2 = !0 : Se(t, Rt) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
491
+ }
492
+ function z(e, t, n) {
493
+ return Bt(e, t, void 0, n);
494
+ }
495
+ function Bt(e, t, n, r) {
496
+ t && (r = new g(r.metadata), r.selectNumberingPlan(t));
497
+ var d = r.type(n), i = d && d.possibleLengths() || r.possibleLengths();
498
+ if (!i)
499
+ return "IS_POSSIBLE";
500
+ var a = e.length, o = i[0];
501
+ return o === a ? "IS_POSSIBLE" : o > a ? "TOO_SHORT" : i[i.length - 1] < a ? "TOO_LONG" : i.indexOf(a, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
502
+ }
503
+ function Ut(e, t, n) {
504
+ if (t === void 0 && (t = {}), n = new g(n), t.v2) {
505
+ if (!e.countryCallingCode)
506
+ throw new Error("Invalid phone number object passed");
507
+ n.selectNumberingPlan(e.countryCallingCode);
508
+ } else {
509
+ if (!e.phone)
510
+ return !1;
511
+ if (e.country) {
512
+ if (!n.hasCountry(e.country))
513
+ throw new Error("Unknown country: ".concat(e.country));
514
+ n.selectNumberingPlan(e.country);
515
+ } else {
516
+ if (!e.countryCallingCode)
517
+ throw new Error("Invalid phone number object passed");
518
+ n.selectNumberingPlan(e.countryCallingCode);
519
+ }
520
+ }
521
+ if (n.possibleLengths())
522
+ return ot(e.phone || e.nationalNumber, e.country, n);
523
+ if (e.countryCallingCode && n.isNonGeographicCallingCode(e.countryCallingCode))
524
+ return !0;
525
+ throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
526
+ }
527
+ function ot(e, t, n) {
528
+ switch (z(e, t, n)) {
529
+ case "IS_POSSIBLE":
530
+ return !0;
531
+ // This library ignores "local-only" phone numbers (for simplicity).
532
+ // See the readme for more info on what are "local-only" phone numbers.
533
+ // case 'IS_POSSIBLE_LOCAL_ONLY':
534
+ // return !isInternational
535
+ default:
536
+ return !1;
537
+ }
538
+ }
539
+ function E(e, t) {
540
+ return e = e || "", new RegExp("^(?:" + t + ")$").test(e);
541
+ }
542
+ function Ht(e, t) {
543
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
544
+ if (n) return (n = n.call(e)).next.bind(n);
545
+ if (Array.isArray(e) || (n = Wt(e)) || t) {
546
+ n && (e = n);
547
+ var r = 0;
548
+ return function() {
549
+ return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
550
+ };
551
+ }
552
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
553
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
554
+ }
555
+ function Wt(e, t) {
556
+ if (e) {
557
+ if (typeof e == "string") return Te(e, t);
558
+ var n = {}.toString.call(e).slice(8, -1);
559
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Te(e, t) : void 0;
560
+ }
561
+ }
562
+ function Te(e, t) {
563
+ (t == null || t > e.length) && (t = e.length);
564
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
565
+ return r;
566
+ }
567
+ var Vt = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
568
+ function ye(e, t, n) {
569
+ if (t = t || {}, !(!e.country && !e.countryCallingCode)) {
570
+ n = new g(n), n.selectNumberingPlan(e.country, e.countryCallingCode);
571
+ var r = t.v2 ? e.nationalNumber : e.phone;
572
+ if (E(r, n.nationalNumberPattern())) {
573
+ if (de(r, "FIXED_LINE", n))
574
+ return n.type("MOBILE") && n.type("MOBILE").pattern() === "" || !n.type("MOBILE") || de(r, "MOBILE", n) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
575
+ for (var d = Ht(Vt), i; !(i = d()).done; ) {
576
+ var a = i.value;
577
+ if (de(r, a, n))
578
+ return a;
579
+ }
580
+ }
581
+ }
582
+ }
583
+ function de(e, t, n) {
584
+ return t = n.type(t), !t || !t.pattern() || t.possibleLengths() && t.possibleLengths().indexOf(e.length) < 0 ? !1 : E(e, t.pattern());
585
+ }
586
+ function Kt(e, t, n) {
587
+ if (t = t || {}, n = new g(n), n.selectNumberingPlan(e.country, e.countryCallingCode), n.hasTypes())
588
+ return ye(e, t, n.metadata) !== void 0;
589
+ var r = t.v2 ? e.nationalNumber : e.phone;
590
+ return E(r, n.nationalNumberPattern());
591
+ }
592
+ function Yt(e, t, n) {
593
+ var r = new g(n), d = r.getCountryCodesForCallingCode(e);
594
+ return d ? d.filter(function(i) {
595
+ return Xt(t, i, n);
596
+ }) : [];
597
+ }
598
+ function Xt(e, t, n) {
599
+ var r = new g(n);
600
+ return r.selectNumberingPlan(t), r.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
601
+ }
602
+ var pe = 2, Zt = 17, Jt = 3, v = "0-90-9٠-٩۰-۹", Qt = "-‐-―−ー-", zt = "//", qt = "..", en = "  ­​⁠ ", tn = "()()[]\\[\\]", nn = "~⁓∼~", S = "".concat(Qt).concat(zt).concat(qt).concat(en).concat(tn).concat(nn), q = "++", rn = new RegExp("([" + v + "])");
603
+ function $t(e, t, n, r) {
604
+ if (t) {
605
+ var d = new g(r);
606
+ d.selectNumberingPlan(t, n);
607
+ var i = new RegExp(d.IDDPrefix());
608
+ if (e.search(i) === 0) {
609
+ e = e.slice(e.match(i)[0].length);
610
+ var a = e.match(rn);
611
+ if (!(a && a[1] != null && a[1].length > 0 && a[1] === "0"))
612
+ return e;
613
+ }
614
+ }
615
+ }
616
+ function ue(e, t) {
617
+ if (e && t.numberingPlan.nationalPrefixForParsing()) {
618
+ var n = new RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(e);
619
+ if (r) {
620
+ var d, i, a = r.length - 1, o = a > 0 && r[a];
621
+ if (t.nationalPrefixTransformRule() && o)
622
+ d = e.replace(n, t.nationalPrefixTransformRule()), a > 1 && (i = r[1]);
623
+ else {
624
+ var $ = r[0];
625
+ d = e.slice($.length), o && (i = r[1]);
626
+ }
627
+ var u;
628
+ if (o) {
629
+ var l = e.indexOf(r[1]), c = e.slice(0, l);
630
+ c === t.numberingPlan.nationalPrefix() && (u = t.numberingPlan.nationalPrefix());
631
+ } else
632
+ u = r[0];
633
+ return {
634
+ nationalNumber: d,
635
+ nationalPrefix: u,
636
+ carrierCode: i
637
+ };
638
+ }
639
+ }
640
+ return {
641
+ nationalNumber: e
642
+ };
643
+ }
644
+ function dn(e, t) {
645
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
646
+ if (n) return (n = n.call(e)).next.bind(n);
647
+ if (Array.isArray(e) || (n = an(e)) || t) {
648
+ n && (e = n);
649
+ var r = 0;
650
+ return function() {
651
+ return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
652
+ };
653
+ }
654
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
655
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
656
+ }
657
+ function an(e, t) {
658
+ if (e) {
659
+ if (typeof e == "string") return Ae(e, t);
660
+ var n = {}.toString.call(e).slice(8, -1);
661
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ae(e, t) : void 0;
662
+ }
663
+ }
664
+ function Ae(e, t) {
665
+ (t == null || t > e.length) && (t = e.length);
666
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
667
+ return r;
668
+ }
669
+ function ut(e, t) {
670
+ var n = t.countries, r = t.metadata;
671
+ r = new g(r);
672
+ for (var d = dn(n), i; !(i = d()).done; ) {
673
+ var a = i.value;
674
+ if (r.selectNumberingPlan(a), r.leadingDigits()) {
675
+ if (e && e.search(r.leadingDigits()) === 0)
676
+ return a;
677
+ } else if (ye({
678
+ phone: e,
679
+ country: a
680
+ }, void 0, r.metadata))
681
+ return a;
682
+ }
683
+ }
684
+ function ve(e, t) {
685
+ var n = t.nationalNumber, r = t.metadata, d = r.getCountryCodesForCallingCode(e);
686
+ if (d)
687
+ return d.length === 1 ? d[0] : ut(n, {
688
+ countries: d,
689
+ metadata: r.metadata
690
+ });
691
+ }
692
+ function le(e, t, n) {
693
+ var r = ue(e, n), d = r.carrierCode, i = r.nationalNumber;
694
+ if (i !== e) {
695
+ if (!on(e, i, n))
696
+ return {
697
+ nationalNumber: e
698
+ };
699
+ if (n.numberingPlan.possibleLengths() && (t || (t = ve(n.numberingPlan.callingCode(), {
700
+ nationalNumber: i,
701
+ metadata: n
702
+ })), !$n(i, t, n)))
703
+ return {
704
+ nationalNumber: e
705
+ };
706
+ }
707
+ return {
708
+ nationalNumber: i,
709
+ carrierCode: d
710
+ };
711
+ }
712
+ function on(e, t, n) {
713
+ return !(E(e, n.nationalNumberPattern()) && !E(t, n.nationalNumberPattern()));
714
+ }
715
+ function $n(e, t, n) {
716
+ switch (z(e, t, n)) {
717
+ case "TOO_SHORT":
718
+ case "INVALID_LENGTH":
719
+ return !1;
720
+ default:
721
+ return !0;
722
+ }
723
+ }
724
+ function lt(e, t, n, r, d) {
725
+ var i = t || n ? Q(t || n, d) : r;
726
+ if (e.indexOf(i) === 0) {
727
+ d = new g(d), d.selectNumberingPlan(t || n, i);
728
+ var a = e.slice(i.length), o = le(a, t, d), $ = o.nationalNumber, u = le(e, t, d), l = u.nationalNumber;
729
+ if (!E(l, d.nationalNumberPattern()) && E($, d.nationalNumberPattern()) || z(l, t, d) === "TOO_LONG")
730
+ return {
731
+ countryCallingCode: i,
732
+ number: a
733
+ };
734
+ }
735
+ return {
736
+ number: e
737
+ };
738
+ }
739
+ function be(e, t, n, r, d) {
740
+ if (!e)
741
+ return {};
742
+ var i;
743
+ if (e[0] !== "+") {
744
+ var a = $t(e, t || n, r, d);
745
+ if (a && a !== e)
746
+ i = !0, e = "+" + a;
747
+ else {
748
+ if (t || n || r) {
749
+ var o = lt(e, t, n, r, d), $ = o.countryCallingCode, u = o.number;
750
+ if ($)
751
+ return {
752
+ countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
753
+ countryCallingCode: $,
754
+ number: u
755
+ };
756
+ }
757
+ return {
758
+ // No need to set it to `UNSPECIFIED`. It can be just `undefined`.
759
+ // countryCallingCodeSource: 'UNSPECIFIED',
760
+ number: e
761
+ };
762
+ }
763
+ }
764
+ if (e[1] === "0")
765
+ return {};
766
+ d = new g(d);
767
+ for (var l = 2; l - 1 <= Jt && l <= e.length; ) {
768
+ var c = e.slice(1, l);
769
+ if (d.hasCallingCode(c))
770
+ return d.selectNumberingPlan(c), {
771
+ countryCallingCodeSource: i ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
772
+ countryCallingCode: c,
773
+ number: e.slice(l)
774
+ };
775
+ l++;
776
+ }
777
+ return {};
778
+ }
779
+ function st(e) {
780
+ return e.replace(new RegExp("[".concat(S, "]+"), "g"), " ").trim();
781
+ }
782
+ var ft = /(\$\d)/;
783
+ function ct(e, t, n) {
784
+ var r = n.useInternationalFormat, d = n.withNationalPrefix;
785
+ n.carrierCode, n.metadata;
786
+ var i = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : (
787
+ // This library doesn't use `domestic_carrier_code_formatting_rule`,
788
+ // because that one is only used when formatting phone numbers
789
+ // for dialing from a mobile phone, and this is not a dialing library.
790
+ // carrierCode && format.domesticCarrierCodeFormattingRule()
791
+ // // First, replace the $CC in the formatting rule with the desired carrier code.
792
+ // // Then, replace the $FG in the formatting rule with the first group
793
+ // // and the carrier code combined in the appropriate way.
794
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
795
+ // : (
796
+ // withNationalPrefix && format.nationalPrefixFormattingRule()
797
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
798
+ // : format.format()
799
+ // )
800
+ d && t.nationalPrefixFormattingRule() ? t.format().replace(ft, t.nationalPrefixFormattingRule()) : t.format()
801
+ ));
802
+ return r ? st(i) : i;
803
+ }
804
+ var un = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
805
+ function ln(e, t, n) {
806
+ var r = new g(n);
807
+ if (r.selectNumberingPlan(e, t), r.defaultIDDPrefix())
808
+ return r.defaultIDDPrefix();
809
+ if (un.test(r.IDDPrefix()))
810
+ return r.IDDPrefix();
811
+ }
812
+ var sn = ";ext=", A = function(t) {
813
+ return "([".concat(v, "]{1,").concat(t, "})");
814
+ };
815
+ function ht(e) {
816
+ var t = "20", n = "15", r = "9", d = "6", i = "[  \\t,]*", a = "[:\\..]?[  \\t,-]*", o = "#?", $ = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", u = "(?:[xx##~~]|int|int)", l = "[- ]+", c = "[  \\t]*", f = "(?:,{2}|;)", m = sn + A(t), y = i + $ + a + A(t) + o, N = i + u + a + A(r) + o, b = l + A(d) + "#", ee = c + f + a + A(n) + o, te = c + "(?:,)+" + a + A(r) + o;
817
+ return m + "|" + y + "|" + N + "|" + b + "|" + ee + "|" + te;
818
+ }
819
+ var fn = "[" + v + "]{" + pe + "}", cn = "[" + q + "]{0,1}(?:[" + S + "]*[" + v + "]){3,}[" + S + v + "]*", hn = new RegExp("^[" + q + "]{0,1}(?:[" + S + "]*[" + v + "]){1,2}$", "i"), mn = cn + // Phone number extensions
820
+ "(?:" + ht() + ")?", gn = new RegExp(
821
+ // Either a short two-digit-only phone number
822
+ "^" + fn + "$|^" + mn + "$",
823
+ "i"
824
+ );
825
+ function yn(e) {
826
+ return e.length >= pe && gn.test(e);
827
+ }
828
+ function pn(e) {
829
+ return hn.test(e);
830
+ }
831
+ function vn(e) {
832
+ var t = e.number, n = e.ext;
833
+ if (!t)
834
+ return "";
835
+ if (t[0] !== "+")
836
+ throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
837
+ return "tel:".concat(t).concat(n ? ";ext=" + n : "");
838
+ }
839
+ var Fe = {
840
+ formatExtension: function(t, n, r) {
841
+ return "".concat(t).concat(r.ext()).concat(n);
842
+ }
843
+ };
844
+ function bn(e, t, n, r) {
845
+ if (n ? n = Pn({}, Fe, n) : n = Fe, r = new g(r), e.country && e.country !== "001") {
846
+ if (!r.hasCountry(e.country))
847
+ throw new Error("Unknown country: ".concat(e.country));
848
+ r.selectNumberingPlan(e.country);
849
+ } else if (e.countryCallingCode)
850
+ r.selectNumberingPlan(e.countryCallingCode);
851
+ else return e.phone || "";
852
+ var d = r.countryCallingCode(), i = n.v2 ? e.nationalNumber : e.phone, a;
853
+ switch (t) {
854
+ case "NATIONAL":
855
+ return i ? (a = Y(i, e.carrierCode, "NATIONAL", r, n), ie(a, e.ext, r, n.formatExtension)) : "";
856
+ case "INTERNATIONAL":
857
+ return i ? (a = Y(i, null, "INTERNATIONAL", r, n), a = "+".concat(d, " ").concat(a), ie(a, e.ext, r, n.formatExtension)) : "+".concat(d);
858
+ case "E.164":
859
+ return "+".concat(d).concat(i);
860
+ case "RFC3966":
861
+ return vn({
862
+ number: "+".concat(d).concat(i),
863
+ ext: e.ext
864
+ });
865
+ // For reference, here's Google's IDD formatter:
866
+ // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
867
+ // Not saying that this IDD formatter replicates it 1:1, but it seems to work.
868
+ // Who would even need to format phone numbers in IDD format anyway?
869
+ case "IDD":
870
+ if (!n.fromCountry)
871
+ return;
872
+ var o = Cn(i, e.carrierCode, d, n.fromCountry, r);
873
+ return ie(o, e.ext, r, n.formatExtension);
874
+ default:
875
+ throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
876
+ }
877
+ }
878
+ function Y(e, t, n, r, d) {
879
+ var i = Nn(r.formats(), e);
880
+ return i ? ct(e, i, {
881
+ useInternationalFormat: n === "INTERNATIONAL",
882
+ withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && d && d.nationalPrefix === !1),
883
+ carrierCode: t,
884
+ metadata: r
885
+ }) : e;
886
+ }
887
+ function Nn(e, t) {
888
+ return Sn(e, function(n) {
889
+ if (n.leadingDigitsPatterns().length > 0) {
890
+ var r = n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length - 1];
891
+ if (t.search(r) !== 0)
892
+ return !1;
893
+ }
894
+ return E(t, n.pattern());
895
+ });
896
+ }
897
+ function ie(e, t, n, r) {
898
+ return t ? r(e, t, n) : e;
899
+ }
900
+ function Cn(e, t, n, r, d) {
901
+ var i = Q(r, d.metadata);
902
+ if (i === n) {
903
+ var a = Y(e, t, "NATIONAL", d);
904
+ return n === "1" ? n + " " + a : a;
905
+ }
906
+ var o = ln(r, void 0, d.metadata);
907
+ if (o)
908
+ return "".concat(o, " ").concat(n, " ").concat(Y(e, null, "INTERNATIONAL", d));
909
+ }
910
+ function Pn() {
911
+ for (var e = 1, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
912
+ n[r] = arguments[r];
913
+ for (; e < n.length; ) {
914
+ if (n[e])
915
+ for (var d in n[e])
916
+ n[0][d] = n[e][d];
917
+ e++;
918
+ }
919
+ return n[0];
920
+ }
921
+ function Sn(e, t) {
922
+ for (var n = 0; n < e.length; ) {
923
+ if (t(e[n]))
924
+ return e[n];
925
+ n++;
926
+ }
927
+ }
928
+ function _(e) {
929
+ "@babel/helpers - typeof";
930
+ return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
931
+ return typeof t;
932
+ } : function(t) {
933
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
934
+ }, _(e);
935
+ }
936
+ function we(e, t) {
937
+ var n = Object.keys(e);
938
+ if (Object.getOwnPropertySymbols) {
939
+ var r = Object.getOwnPropertySymbols(e);
940
+ t && (r = r.filter(function(d) {
941
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
942
+ })), n.push.apply(n, r);
943
+ }
944
+ return n;
945
+ }
946
+ function _e(e) {
947
+ for (var t = 1; t < arguments.length; t++) {
948
+ var n = arguments[t] != null ? arguments[t] : {};
949
+ t % 2 ? we(Object(n), !0).forEach(function(r) {
950
+ In(e, r, n[r]);
951
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : we(Object(n)).forEach(function(r) {
952
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
953
+ });
954
+ }
955
+ return e;
956
+ }
957
+ function In(e, t, n) {
958
+ return (t = mt(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
959
+ }
960
+ function En(e, t) {
961
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
962
+ }
963
+ function xn(e, t) {
964
+ for (var n = 0; n < t.length; n++) {
965
+ var r = t[n];
966
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, mt(r.key), r);
967
+ }
968
+ }
969
+ function Tn(e, t, n) {
970
+ return t && xn(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
971
+ }
972
+ function mt(e) {
973
+ var t = An(e, "string");
974
+ return _(t) == "symbol" ? t : t + "";
975
+ }
976
+ function An(e, t) {
977
+ if (_(e) != "object" || !e) return e;
978
+ var n = e[Symbol.toPrimitive];
979
+ if (n !== void 0) {
980
+ var r = n.call(e, t);
981
+ if (_(r) != "object") return r;
982
+ throw new TypeError("@@toPrimitive must return a primitive value.");
983
+ }
984
+ return String(e);
985
+ }
986
+ var gt = /* @__PURE__ */ (function() {
987
+ function e(t, n, r) {
988
+ if (En(this, e), !t)
989
+ throw new TypeError("First argument is required");
990
+ if (typeof t != "string")
991
+ throw new TypeError("First argument must be a string");
992
+ if (t[0] === "+" && !n)
993
+ throw new TypeError("`metadata` argument not passed");
994
+ if (x(n) && x(n.countries)) {
995
+ r = n;
996
+ var d = t;
997
+ if (!_n.test(d))
998
+ throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
999
+ var i = be(d, void 0, void 0, void 0, r), a = i.countryCallingCode, o = i.number;
1000
+ if (n = o, t = a, !n)
1001
+ throw new Error("Invalid `number` argument passed: too short");
1002
+ }
1003
+ if (!n)
1004
+ throw new TypeError("`nationalNumber` argument is required");
1005
+ if (typeof n != "string")
1006
+ throw new TypeError("`nationalNumber` argument must be a string");
1007
+ it(r);
1008
+ var $ = wn(t, r), u = $.country, l = $.countryCallingCode;
1009
+ this.country = u, this.countryCallingCode = l, this.nationalNumber = n, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
1010
+ return r;
1011
+ };
1012
+ }
1013
+ return Tn(e, [{
1014
+ key: "setExt",
1015
+ value: function(n) {
1016
+ this.ext = n;
1017
+ }
1018
+ }, {
1019
+ key: "getPossibleCountries",
1020
+ value: function() {
1021
+ return this.country ? [this.country] : Yt(this.countryCallingCode, this.nationalNumber, this.getMetadata());
1022
+ }
1023
+ }, {
1024
+ key: "isPossible",
1025
+ value: function() {
1026
+ return Ut(this, {
1027
+ v2: !0
1028
+ }, this.getMetadata());
1029
+ }
1030
+ }, {
1031
+ key: "isValid",
1032
+ value: function() {
1033
+ return Kt(this, {
1034
+ v2: !0
1035
+ }, this.getMetadata());
1036
+ }
1037
+ }, {
1038
+ key: "isNonGeographic",
1039
+ value: function() {
1040
+ var n = new g(this.getMetadata());
1041
+ return n.isNonGeographicCallingCode(this.countryCallingCode);
1042
+ }
1043
+ }, {
1044
+ key: "isEqual",
1045
+ value: function(n) {
1046
+ return this.number === n.number && this.ext === n.ext;
1047
+ }
1048
+ // This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
1049
+ // but later it was found out that it doesn't include the possible `TOO_SHORT` result
1050
+ // returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
1051
+ // so eventually I simply commented out this method from the `PhoneNumber` class
1052
+ // and just left the `validatePhoneNumberLength()` function, even though that one would require
1053
+ // and additional step to also validate the actual country / calling code of the phone number.
1054
+ // validateLength() {
1055
+ // const metadata = new Metadata(this.getMetadata())
1056
+ // metadata.selectNumberingPlan(this.countryCallingCode)
1057
+ // const result = checkNumberLength(this.nationalNumber, metadata)
1058
+ // if (result !== 'IS_POSSIBLE') {
1059
+ // return result
1060
+ // }
1061
+ // }
1062
+ }, {
1063
+ key: "getType",
1064
+ value: function() {
1065
+ return ye(this, {
1066
+ v2: !0
1067
+ }, this.getMetadata());
1068
+ }
1069
+ }, {
1070
+ key: "format",
1071
+ value: function(n, r) {
1072
+ return bn(this, n, r ? _e(_e({}, r), {}, {
1073
+ v2: !0
1074
+ }) : {
1075
+ v2: !0
1076
+ }, this.getMetadata());
1077
+ }
1078
+ }, {
1079
+ key: "formatNational",
1080
+ value: function(n) {
1081
+ return this.format("NATIONAL", n);
1082
+ }
1083
+ }, {
1084
+ key: "formatInternational",
1085
+ value: function(n) {
1086
+ return this.format("INTERNATIONAL", n);
1087
+ }
1088
+ }, {
1089
+ key: "getURI",
1090
+ value: function(n) {
1091
+ return this.format("RFC3966", n);
1092
+ }
1093
+ }]);
1094
+ })(), Fn = function(t) {
1095
+ return /^[A-Z]{2}$/.test(t);
1096
+ };
1097
+ function wn(e, t) {
1098
+ var n, r, d = new g(t);
1099
+ return Fn(e) ? (n = e, d.selectNumberingPlan(n), r = d.countryCallingCode()) : r = e, {
1100
+ country: n,
1101
+ countryCallingCode: r
1102
+ };
1103
+ }
1104
+ var _n = /^\+\d+$/;
1105
+ function se(e) {
1106
+ "@babel/helpers - typeof";
1107
+ return se = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1108
+ return typeof t;
1109
+ } : function(t) {
1110
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1111
+ }, se(e);
1112
+ }
1113
+ function On(e, t, n) {
1114
+ return Object.defineProperty(e, "prototype", { writable: !1 }), e;
1115
+ }
1116
+ function Rn(e, t) {
1117
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1118
+ }
1119
+ function Dn(e, t, n) {
1120
+ return t = R(t), jn(e, Ne() ? Reflect.construct(t, n || [], R(e).constructor) : t.apply(e, n));
1121
+ }
1122
+ function jn(e, t) {
1123
+ if (t && (se(t) == "object" || typeof t == "function")) return t;
1124
+ if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1125
+ return Ln(e);
1126
+ }
1127
+ function Ln(e) {
1128
+ if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1129
+ return e;
1130
+ }
1131
+ function Mn(e, t) {
1132
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
1133
+ e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && O(e, t);
1134
+ }
1135
+ function fe(e) {
1136
+ var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1137
+ return fe = function(r) {
1138
+ if (r === null || !Gn(r)) return r;
1139
+ if (typeof r != "function") throw new TypeError("Super expression must either be null or a function");
1140
+ if (t !== void 0) {
1141
+ if (t.has(r)) return t.get(r);
1142
+ t.set(r, d);
1143
+ }
1144
+ function d() {
1145
+ return kn(r, arguments, R(this).constructor);
1146
+ }
1147
+ return d.prototype = Object.create(r.prototype, { constructor: { value: d, enumerable: !1, writable: !0, configurable: !0 } }), O(d, r);
1148
+ }, fe(e);
1149
+ }
1150
+ function kn(e, t, n) {
1151
+ if (Ne()) return Reflect.construct.apply(null, arguments);
1152
+ var r = [null];
1153
+ r.push.apply(r, t);
1154
+ var d = new (e.bind.apply(e, r))();
1155
+ return n && O(d, n.prototype), d;
1156
+ }
1157
+ function Ne() {
1158
+ try {
1159
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1160
+ }));
1161
+ } catch {
1162
+ }
1163
+ return (Ne = function() {
1164
+ return !!e;
1165
+ })();
1166
+ }
1167
+ function Gn(e) {
1168
+ try {
1169
+ return Function.toString.call(e).indexOf("[native code]") !== -1;
1170
+ } catch {
1171
+ return typeof e == "function";
1172
+ }
1173
+ }
1174
+ function O(e, t) {
1175
+ return O = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
1176
+ return n.__proto__ = r, n;
1177
+ }, O(e, t);
1178
+ }
1179
+ function R(e) {
1180
+ return R = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1181
+ return t.__proto__ || Object.getPrototypeOf(t);
1182
+ }, R(e);
1183
+ }
1184
+ var I = /* @__PURE__ */ (function(e) {
1185
+ function t(n) {
1186
+ var r;
1187
+ return Rn(this, t), r = Dn(this, t, [n]), Object.setPrototypeOf(r, t.prototype), r.name = r.constructor.name, r;
1188
+ }
1189
+ return Mn(t, e), On(t);
1190
+ })(/* @__PURE__ */ fe(Error)), Oe = new RegExp("(?:" + ht() + ")$", "i");
1191
+ function Bn(e) {
1192
+ var t = e.search(Oe);
1193
+ if (t < 0)
1194
+ return {};
1195
+ for (var n = e.slice(0, t), r = e.match(Oe), d = 1; d < r.length; ) {
1196
+ if (r[d])
1197
+ return {
1198
+ number: n,
1199
+ ext: r[d]
1200
+ };
1201
+ d++;
1202
+ }
1203
+ }
1204
+ function Un(e, t) {
1205
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1206
+ if (n) return (n = n.call(e)).next.bind(n);
1207
+ if (Array.isArray(e) || (n = Hn(e)) || t) {
1208
+ n && (e = n);
1209
+ var r = 0;
1210
+ return function() {
1211
+ return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
1212
+ };
1213
+ }
1214
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1215
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1216
+ }
1217
+ function Hn(e, t) {
1218
+ if (e) {
1219
+ if (typeof e == "string") return Re(e, t);
1220
+ var n = {}.toString.call(e).slice(8, -1);
1221
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Re(e, t) : void 0;
1222
+ }
1223
+ }
1224
+ function Re(e, t) {
1225
+ (t == null || t > e.length) && (t = e.length);
1226
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1227
+ return r;
1228
+ }
1229
+ var Wn = {
1230
+ 0: "0",
1231
+ 1: "1",
1232
+ 2: "2",
1233
+ 3: "3",
1234
+ 4: "4",
1235
+ 5: "5",
1236
+ 6: "6",
1237
+ 7: "7",
1238
+ 8: "8",
1239
+ 9: "9",
1240
+ "0": "0",
1241
+ // Fullwidth digit 0
1242
+ "1": "1",
1243
+ // Fullwidth digit 1
1244
+ "2": "2",
1245
+ // Fullwidth digit 2
1246
+ "3": "3",
1247
+ // Fullwidth digit 3
1248
+ "4": "4",
1249
+ // Fullwidth digit 4
1250
+ "5": "5",
1251
+ // Fullwidth digit 5
1252
+ "6": "6",
1253
+ // Fullwidth digit 6
1254
+ "7": "7",
1255
+ // Fullwidth digit 7
1256
+ "8": "8",
1257
+ // Fullwidth digit 8
1258
+ "9": "9",
1259
+ // Fullwidth digit 9
1260
+ "٠": "0",
1261
+ // Arabic-indic digit 0
1262
+ "١": "1",
1263
+ // Arabic-indic digit 1
1264
+ "٢": "2",
1265
+ // Arabic-indic digit 2
1266
+ "٣": "3",
1267
+ // Arabic-indic digit 3
1268
+ "٤": "4",
1269
+ // Arabic-indic digit 4
1270
+ "٥": "5",
1271
+ // Arabic-indic digit 5
1272
+ "٦": "6",
1273
+ // Arabic-indic digit 6
1274
+ "٧": "7",
1275
+ // Arabic-indic digit 7
1276
+ "٨": "8",
1277
+ // Arabic-indic digit 8
1278
+ "٩": "9",
1279
+ // Arabic-indic digit 9
1280
+ "۰": "0",
1281
+ // Eastern-Arabic digit 0
1282
+ "۱": "1",
1283
+ // Eastern-Arabic digit 1
1284
+ "۲": "2",
1285
+ // Eastern-Arabic digit 2
1286
+ "۳": "3",
1287
+ // Eastern-Arabic digit 3
1288
+ "۴": "4",
1289
+ // Eastern-Arabic digit 4
1290
+ "۵": "5",
1291
+ // Eastern-Arabic digit 5
1292
+ "۶": "6",
1293
+ // Eastern-Arabic digit 6
1294
+ "۷": "7",
1295
+ // Eastern-Arabic digit 7
1296
+ "۸": "8",
1297
+ // Eastern-Arabic digit 8
1298
+ "۹": "9"
1299
+ // Eastern-Arabic digit 9
1300
+ };
1301
+ function yt(e) {
1302
+ return Wn[e];
1303
+ }
1304
+ function X(e) {
1305
+ for (var t = "", n = Un(e.split("")), r; !(r = n()).done; ) {
1306
+ var d = r.value, i = yt(d);
1307
+ i && (t += i);
1308
+ }
1309
+ return t;
1310
+ }
1311
+ function Vn(e, t) {
1312
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1313
+ if (n) return (n = n.call(e)).next.bind(n);
1314
+ if (Array.isArray(e) || (n = Kn(e)) || t) {
1315
+ n && (e = n);
1316
+ var r = 0;
1317
+ return function() {
1318
+ return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
1319
+ };
1320
+ }
1321
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1322
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1323
+ }
1324
+ function Kn(e, t) {
1325
+ if (e) {
1326
+ if (typeof e == "string") return De(e, t);
1327
+ var n = {}.toString.call(e).slice(8, -1);
1328
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? De(e, t) : void 0;
1329
+ }
1330
+ }
1331
+ function De(e, t) {
1332
+ (t == null || t > e.length) && (t = e.length);
1333
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1334
+ return r;
1335
+ }
1336
+ function je(e) {
1337
+ for (var t = "", n = Vn(e.split("")), r; !(r = n()).done; ) {
1338
+ var d = r.value;
1339
+ t += Yn(d, t) || "";
1340
+ }
1341
+ return t;
1342
+ }
1343
+ function Yn(e, t, n) {
1344
+ return e === "+" ? t ? void 0 : "+" : yt(e);
1345
+ }
1346
+ var pt = "+", Xn = "[\\-\\.\\(\\)]?", Le = "([" + v + "]|" + Xn + ")", Zn = "^\\" + pt + Le + "*[" + v + "]" + Le + "*$", Jn = new RegExp(Zn, "g"), ce = v, Qn = "[" + ce + "]+((\\-)*[" + ce + "])*", zn = "a-zA-Z", qn = "[" + zn + "]+((\\-)*[" + ce + "])*", er = "^(" + Qn + "\\.)*" + qn + "\\.?$", tr = new RegExp(er, "g"), Me = "tel:", he = ";phone-context=", nr = ";isub=";
1347
+ function rr(e) {
1348
+ var t = e.indexOf(he);
1349
+ if (t < 0)
1350
+ return null;
1351
+ var n = t + he.length;
1352
+ if (n >= e.length)
1353
+ return "";
1354
+ var r = e.indexOf(";", n);
1355
+ return r >= 0 ? e.substring(n, r) : e.substring(n);
1356
+ }
1357
+ function dr(e) {
1358
+ return e === null ? !0 : e.length === 0 ? !1 : Jn.test(e) || tr.test(e);
1359
+ }
1360
+ function ir(e, t) {
1361
+ var n = t.extractFormattedPhoneNumber, r = rr(e);
1362
+ if (!dr(r))
1363
+ throw new I("NOT_A_NUMBER");
1364
+ var d;
1365
+ if (r === null)
1366
+ d = n(e) || "";
1367
+ else {
1368
+ d = "", r.charAt(0) === pt && (d += r);
1369
+ var i = e.indexOf(Me), a;
1370
+ i >= 0 ? a = i + Me.length : a = 0;
1371
+ var o = e.indexOf(he);
1372
+ d += e.substring(a, o);
1373
+ }
1374
+ var $ = d.indexOf(nr);
1375
+ if ($ > 0 && (d = d.substring(0, $)), d !== "")
1376
+ return d;
1377
+ }
1378
+ var ar = 250, or = new RegExp("[" + q + v + "]"), $r = new RegExp("[^" + v + "#]+$");
1379
+ function ur(e, t, n) {
1380
+ if (t = t || {}, n = new g(n), t.defaultCountry && !n.hasCountry(t.defaultCountry))
1381
+ throw t.v2 ? new I("INVALID_COUNTRY") : new Error("Unknown country: ".concat(t.defaultCountry));
1382
+ var r = sr(e, t.v2, t.extract), d = r.number, i = r.ext, a = r.error;
1383
+ if (!d) {
1384
+ if (t.v2)
1385
+ throw a === "TOO_SHORT" ? new I("TOO_SHORT") : new I("NOT_A_NUMBER");
1386
+ return {};
1387
+ }
1388
+ var o = cr(d, t.defaultCountry, t.defaultCallingCode, n), $ = o.country, u = o.nationalNumber, l = o.countryCallingCode, c = o.countryCallingCodeSource, f = o.carrierCode;
1389
+ if (!n.hasSelectedNumberingPlan()) {
1390
+ if (t.v2)
1391
+ throw new I("INVALID_COUNTRY");
1392
+ return {};
1393
+ }
1394
+ if (!u || u.length < pe) {
1395
+ if (t.v2)
1396
+ throw new I("TOO_SHORT");
1397
+ return {};
1398
+ }
1399
+ if (u.length > Zt) {
1400
+ if (t.v2)
1401
+ throw new I("TOO_LONG");
1402
+ return {};
1403
+ }
1404
+ if (t.v2) {
1405
+ var m = new gt(l, u, n.metadata);
1406
+ return $ && (m.country = $), f && (m.carrierCode = f), i && (m.ext = i), m.__countryCallingCodeSource = c, m;
1407
+ }
1408
+ var y = (t.extended ? n.hasSelectedNumberingPlan() : $) ? E(u, n.nationalNumberPattern()) : !1;
1409
+ return t.extended ? {
1410
+ country: $,
1411
+ countryCallingCode: l,
1412
+ carrierCode: f,
1413
+ valid: y,
1414
+ possible: y ? !0 : !!(t.extended === !0 && n.possibleLengths() && ot(u, $, n)),
1415
+ phone: u,
1416
+ ext: i
1417
+ } : y ? fr($, u, i) : {};
1418
+ }
1419
+ function lr(e, t, n) {
1420
+ if (e) {
1421
+ if (e.length > ar) {
1422
+ if (n)
1423
+ throw new I("TOO_LONG");
1424
+ return;
1425
+ }
1426
+ if (t === !1)
1427
+ return e;
1428
+ var r = e.search(or);
1429
+ if (!(r < 0))
1430
+ return e.slice(r).replace($r, "");
1431
+ }
1432
+ }
1433
+ function sr(e, t, n) {
1434
+ var r = ir(e, {
1435
+ extractFormattedPhoneNumber: function(a) {
1436
+ return lr(a, n, t);
1437
+ }
1438
+ });
1439
+ if (!r)
1440
+ return {};
1441
+ if (!yn(r))
1442
+ return pn(r) ? {
1443
+ error: "TOO_SHORT"
1444
+ } : {};
1445
+ var d = Bn(r);
1446
+ return d.ext ? d : {
1447
+ number: r
1448
+ };
1449
+ }
1450
+ function fr(e, t, n) {
1451
+ var r = {
1452
+ country: e,
1453
+ phone: t
1454
+ };
1455
+ return n && (r.ext = n), r;
1456
+ }
1457
+ function cr(e, t, n, r) {
1458
+ var d = be(je(e), void 0, t, n, r.metadata), i = d.countryCallingCodeSource, a = d.countryCallingCode, o = d.number, $;
1459
+ if (a)
1460
+ r.selectNumberingPlan(a);
1461
+ else if (o && (t || n))
1462
+ r.selectNumberingPlan(t, n), t && ($ = t), a = n || Q(t, r.metadata);
1463
+ else return {};
1464
+ if (!o)
1465
+ return {
1466
+ countryCallingCodeSource: i,
1467
+ countryCallingCode: a
1468
+ };
1469
+ var u = le(je(o), $, r), l = u.nationalNumber, c = u.carrierCode, f = ve(a, {
1470
+ nationalNumber: l,
1471
+ metadata: r
1472
+ });
1473
+ return f && ($ = f, f === "001" || r.selectNumberingPlan($)), {
1474
+ country: $,
1475
+ countryCallingCode: a,
1476
+ countryCallingCodeSource: i,
1477
+ nationalNumber: l,
1478
+ carrierCode: c
1479
+ };
1480
+ }
1481
+ function D(e) {
1482
+ "@babel/helpers - typeof";
1483
+ return D = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1484
+ return typeof t;
1485
+ } : function(t) {
1486
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1487
+ }, D(e);
1488
+ }
1489
+ function ke(e, t) {
1490
+ var n = Object.keys(e);
1491
+ if (Object.getOwnPropertySymbols) {
1492
+ var r = Object.getOwnPropertySymbols(e);
1493
+ t && (r = r.filter(function(d) {
1494
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
1495
+ })), n.push.apply(n, r);
1496
+ }
1497
+ return n;
1498
+ }
1499
+ function Ge(e) {
1500
+ for (var t = 1; t < arguments.length; t++) {
1501
+ var n = arguments[t] != null ? arguments[t] : {};
1502
+ t % 2 ? ke(Object(n), !0).forEach(function(r) {
1503
+ hr(e, r, n[r]);
1504
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ke(Object(n)).forEach(function(r) {
1505
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1506
+ });
1507
+ }
1508
+ return e;
1509
+ }
1510
+ function hr(e, t, n) {
1511
+ return (t = mr(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
1512
+ }
1513
+ function mr(e) {
1514
+ var t = gr(e, "string");
1515
+ return D(t) == "symbol" ? t : t + "";
1516
+ }
1517
+ function gr(e, t) {
1518
+ if (D(e) != "object" || !e) return e;
1519
+ var n = e[Symbol.toPrimitive];
1520
+ if (n !== void 0) {
1521
+ var r = n.call(e, t);
1522
+ if (D(r) != "object") return r;
1523
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1524
+ }
1525
+ return (t === "string" ? String : Number)(e);
1526
+ }
1527
+ function yr(e, t, n) {
1528
+ return ur(e, Ge(Ge({}, t), {}, {
1529
+ v2: !0
1530
+ }), n);
1531
+ }
1532
+ function j(e) {
1533
+ "@babel/helpers - typeof";
1534
+ return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1535
+ return typeof t;
1536
+ } : function(t) {
1537
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1538
+ }, j(e);
1539
+ }
1540
+ function Be(e, t) {
1541
+ var n = Object.keys(e);
1542
+ if (Object.getOwnPropertySymbols) {
1543
+ var r = Object.getOwnPropertySymbols(e);
1544
+ t && (r = r.filter(function(d) {
1545
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
1546
+ })), n.push.apply(n, r);
1547
+ }
1548
+ return n;
1549
+ }
1550
+ function pr(e) {
1551
+ for (var t = 1; t < arguments.length; t++) {
1552
+ var n = arguments[t] != null ? arguments[t] : {};
1553
+ t % 2 ? Be(Object(n), !0).forEach(function(r) {
1554
+ vr(e, r, n[r]);
1555
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Be(Object(n)).forEach(function(r) {
1556
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1557
+ });
1558
+ }
1559
+ return e;
1560
+ }
1561
+ function vr(e, t, n) {
1562
+ return (t = br(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
1563
+ }
1564
+ function br(e) {
1565
+ var t = Nr(e, "string");
1566
+ return j(t) == "symbol" ? t : t + "";
1567
+ }
1568
+ function Nr(e, t) {
1569
+ if (j(e) != "object" || !e) return e;
1570
+ var n = e[Symbol.toPrimitive];
1571
+ if (n !== void 0) {
1572
+ var r = n.call(e, t);
1573
+ if (j(r) != "object") return r;
1574
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1575
+ }
1576
+ return (t === "string" ? String : Number)(e);
1577
+ }
1578
+ function Cr(e, t) {
1579
+ return Er(e) || Ir(e, t) || Sr(e, t) || Pr();
1580
+ }
1581
+ function Pr() {
1582
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1583
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1584
+ }
1585
+ function Sr(e, t) {
1586
+ if (e) {
1587
+ if (typeof e == "string") return Ue(e, t);
1588
+ var n = {}.toString.call(e).slice(8, -1);
1589
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ue(e, t) : void 0;
1590
+ }
1591
+ }
1592
+ function Ue(e, t) {
1593
+ (t == null || t > e.length) && (t = e.length);
1594
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1595
+ return r;
1596
+ }
1597
+ function Ir(e, t) {
1598
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1599
+ if (n != null) {
1600
+ var r, d, i, a, o = [], $ = !0, u = !1;
1601
+ try {
1602
+ if (i = (n = n.call(e)).next, t !== 0) for (; !($ = (r = i.call(n)).done) && (o.push(r.value), o.length !== t); $ = !0) ;
1603
+ } catch (l) {
1604
+ u = !0, d = l;
1605
+ } finally {
1606
+ try {
1607
+ if (!$ && n.return != null && (a = n.return(), Object(a) !== a)) return;
1608
+ } finally {
1609
+ if (u) throw d;
1610
+ }
1611
+ }
1612
+ return o;
1613
+ }
1614
+ }
1615
+ function Er(e) {
1616
+ if (Array.isArray(e)) return e;
1617
+ }
1618
+ function xr(e) {
1619
+ var t = Array.prototype.slice.call(e), n = Cr(t, 4), r = n[0], d = n[1], i = n[2], a = n[3], o, $, u;
1620
+ if (typeof r == "string")
1621
+ o = r;
1622
+ else throw new TypeError("A text for parsing must be a string.");
1623
+ if (!d || typeof d == "string")
1624
+ a ? ($ = i, u = a) : ($ = void 0, u = i), d && ($ = pr({
1625
+ defaultCountry: d
1626
+ }, $));
1627
+ else if (x(d))
1628
+ i ? ($ = d, u = i) : u = d;
1629
+ else throw new Error("Invalid second argument: ".concat(d));
1630
+ return {
1631
+ text: o,
1632
+ options: $,
1633
+ metadata: u
1634
+ };
1635
+ }
1636
+ function L(e) {
1637
+ "@babel/helpers - typeof";
1638
+ return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1639
+ return typeof t;
1640
+ } : function(t) {
1641
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1642
+ }, L(e);
1643
+ }
1644
+ function He(e, t) {
1645
+ var n = Object.keys(e);
1646
+ if (Object.getOwnPropertySymbols) {
1647
+ var r = Object.getOwnPropertySymbols(e);
1648
+ t && (r = r.filter(function(d) {
1649
+ return Object.getOwnPropertyDescriptor(e, d).enumerable;
1650
+ })), n.push.apply(n, r);
1651
+ }
1652
+ return n;
1653
+ }
1654
+ function We(e) {
1655
+ for (var t = 1; t < arguments.length; t++) {
1656
+ var n = arguments[t] != null ? arguments[t] : {};
1657
+ t % 2 ? He(Object(n), !0).forEach(function(r) {
1658
+ Tr(e, r, n[r]);
1659
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : He(Object(n)).forEach(function(r) {
1660
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1661
+ });
1662
+ }
1663
+ return e;
1664
+ }
1665
+ function Tr(e, t, n) {
1666
+ return (t = Ar(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
1667
+ }
1668
+ function Ar(e) {
1669
+ var t = Fr(e, "string");
1670
+ return L(t) == "symbol" ? t : t + "";
1671
+ }
1672
+ function Fr(e, t) {
1673
+ if (L(e) != "object" || !e) return e;
1674
+ var n = e[Symbol.toPrimitive];
1675
+ if (n !== void 0) {
1676
+ var r = n.call(e, t);
1677
+ if (L(r) != "object") return r;
1678
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1679
+ }
1680
+ return (t === "string" ? String : Number)(e);
1681
+ }
1682
+ function wr(e, t, n) {
1683
+ t && t.defaultCountry && !Gt(t.defaultCountry, n) && (t = We(We({}, t), {}, {
1684
+ defaultCountry: void 0
1685
+ }));
1686
+ try {
1687
+ return yr(e, t, n);
1688
+ } catch (r) {
1689
+ if (!(r instanceof I)) throw r;
1690
+ }
1691
+ }
1692
+ function _r() {
1693
+ var e = xr(arguments), t = e.text, n = e.options, r = e.metadata;
1694
+ return wr(t, n, r);
1695
+ }
1696
+ function M(e) {
1697
+ "@babel/helpers - typeof";
1698
+ return M = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1699
+ return typeof t;
1700
+ } : function(t) {
1701
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1702
+ }, M(e);
1703
+ }
1704
+ function Or(e, t) {
1705
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1706
+ }
1707
+ function Rr(e, t) {
1708
+ for (var n = 0; n < t.length; n++) {
1709
+ var r = t[n];
1710
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, jr(r.key), r);
1711
+ }
1712
+ }
1713
+ function Dr(e, t, n) {
1714
+ return t && Rr(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1715
+ }
1716
+ function jr(e) {
1717
+ var t = Lr(e, "string");
1718
+ return M(t) == "symbol" ? t : t + "";
1719
+ }
1720
+ function Lr(e, t) {
1721
+ if (M(e) != "object" || !e) return e;
1722
+ var n = e[Symbol.toPrimitive];
1723
+ if (n !== void 0) {
1724
+ var r = n.call(e, t);
1725
+ if (M(r) != "object") return r;
1726
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1727
+ }
1728
+ return String(e);
1729
+ }
1730
+ var Mr = /* @__PURE__ */ (function() {
1731
+ function e(t) {
1732
+ var n = t.onCountryChange, r = t.onCallingCodeChange;
1733
+ Or(this, e), this.onCountryChange = n, this.onCallingCodeChange = r;
1734
+ }
1735
+ return Dr(e, [{
1736
+ key: "reset",
1737
+ value: function(n) {
1738
+ var r = n.country, d = n.callingCode;
1739
+ this.international = !1, this.missingPlus = !1, this.IDDPrefix = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(r, d);
1740
+ }
1741
+ }, {
1742
+ key: "resetNationalSignificantNumber",
1743
+ value: function() {
1744
+ this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberIsModified = !1, this.nationalPrefix = void 0, this.carrierCode = void 0, this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = void 0;
1745
+ }
1746
+ }, {
1747
+ key: "update",
1748
+ value: function(n) {
1749
+ for (var r = 0, d = Object.keys(n); r < d.length; r++) {
1750
+ var i = d[r];
1751
+ this[i] = n[i];
1752
+ }
1753
+ }
1754
+ }, {
1755
+ key: "initCountryAndCallingCode",
1756
+ value: function(n, r) {
1757
+ this.setCountry(n), this.setCallingCode(r);
1758
+ }
1759
+ }, {
1760
+ key: "setCountry",
1761
+ value: function(n) {
1762
+ this.country = n, this.onCountryChange(n);
1763
+ }
1764
+ }, {
1765
+ key: "setCallingCode",
1766
+ value: function(n) {
1767
+ this.callingCode = n, this.onCallingCodeChange(n, this.country);
1768
+ }
1769
+ }, {
1770
+ key: "startInternationalNumber",
1771
+ value: function(n, r) {
1772
+ this.international = !0, this.initCountryAndCallingCode(n, r);
1773
+ }
1774
+ }, {
1775
+ key: "appendDigits",
1776
+ value: function(n) {
1777
+ this.digits += n;
1778
+ }
1779
+ }, {
1780
+ key: "appendNationalSignificantNumberDigits",
1781
+ value: function(n) {
1782
+ this.nationalSignificantNumber += n;
1783
+ }
1784
+ /**
1785
+ * Returns the part of `this.digits` that corresponds to the national number.
1786
+ * Basically, all digits that have been input by the user, except for the
1787
+ * international prefix and the country calling code part
1788
+ * (if the number is an international one).
1789
+ * @return {string}
1790
+ */
1791
+ }, {
1792
+ key: "getNationalDigits",
1793
+ value: function() {
1794
+ return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits;
1795
+ }
1796
+ }, {
1797
+ key: "getDigitsWithoutInternationalPrefix",
1798
+ value: function() {
1799
+ return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits;
1800
+ }
1801
+ }]);
1802
+ })();
1803
+ function kr(e, t) {
1804
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1805
+ if (n) return (n = n.call(e)).next.bind(n);
1806
+ if (Array.isArray(e) || (n = Gr(e)) || t) {
1807
+ n && (e = n);
1808
+ var r = 0;
1809
+ return function() {
1810
+ return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
1811
+ };
1812
+ }
1813
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1814
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1815
+ }
1816
+ function Gr(e, t) {
1817
+ if (e) {
1818
+ if (typeof e == "string") return Ve(e, t);
1819
+ var n = {}.toString.call(e).slice(8, -1);
1820
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ve(e, t) : void 0;
1821
+ }
1822
+ }
1823
+ function Ve(e, t) {
1824
+ (t == null || t > e.length) && (t = e.length);
1825
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1826
+ return r;
1827
+ }
1828
+ var P = "x", ae = new RegExp(P);
1829
+ function V(e, t) {
1830
+ if (t < 1)
1831
+ return "";
1832
+ for (var n = ""; t > 1; )
1833
+ t & 1 && (n += e), t >>= 1, e += e;
1834
+ return n + e;
1835
+ }
1836
+ function Ke(e, t) {
1837
+ return e[t] === ")" && t++, Br(e.slice(0, t));
1838
+ }
1839
+ function Br(e) {
1840
+ for (var t = [], n = 0; n < e.length; )
1841
+ e[n] === "(" ? t.push(n) : e[n] === ")" && t.pop(), n++;
1842
+ var r = 0, d = "";
1843
+ t.push(e.length);
1844
+ for (var i = 0, a = t; i < a.length; i++) {
1845
+ var o = a[i];
1846
+ d += e.slice(r, o), r = o + 1;
1847
+ }
1848
+ return d;
1849
+ }
1850
+ function Ur(e, t, n) {
1851
+ for (var r = kr(n.split("")), d; !(d = r()).done; ) {
1852
+ var i = d.value;
1853
+ if (e.slice(t + 1).search(ae) < 0)
1854
+ return;
1855
+ t = e.search(ae), e = e.replace(ae, i);
1856
+ }
1857
+ return [e, t];
1858
+ }
1859
+ function Hr(e, t, n) {
1860
+ var r = n.metadata, d = n.shouldTryNationalPrefixFormattingRule, i = n.getSeparatorAfterNationalPrefix, a = new RegExp("^(?:".concat(t.pattern(), ")$"));
1861
+ if (a.test(e.nationalSignificantNumber))
1862
+ return Vr(e, t, {
1863
+ metadata: r,
1864
+ shouldTryNationalPrefixFormattingRule: d,
1865
+ getSeparatorAfterNationalPrefix: i
1866
+ });
1867
+ }
1868
+ function Wr(e, t, n) {
1869
+ return z(e, t, n) === "IS_POSSIBLE";
1870
+ }
1871
+ function Vr(e, t, n) {
1872
+ var r = n.metadata, d = n.shouldTryNationalPrefixFormattingRule, i = n.getSeparatorAfterNationalPrefix;
1873
+ if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, d(t)) {
1874
+ var a = Ye(e, t, {
1875
+ useNationalPrefixFormattingRule: !0,
1876
+ getSeparatorAfterNationalPrefix: i,
1877
+ metadata: r
1878
+ });
1879
+ if (a)
1880
+ return a;
1881
+ }
1882
+ return Ye(e, t, {
1883
+ useNationalPrefixFormattingRule: !1,
1884
+ getSeparatorAfterNationalPrefix: i,
1885
+ metadata: r
1886
+ });
1887
+ }
1888
+ function Ye(e, t, n) {
1889
+ var r = n.metadata, d = n.useNationalPrefixFormattingRule, i = n.getSeparatorAfterNationalPrefix, a = ct(e.nationalSignificantNumber, t, {
1890
+ carrierCode: e.carrierCode,
1891
+ useInternationalFormat: e.international,
1892
+ withNationalPrefix: d,
1893
+ metadata: r
1894
+ });
1895
+ if (d || (e.nationalPrefix ? a = e.nationalPrefix + i(t) + a : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (a = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + a)), Kr(a, e))
1896
+ return a;
1897
+ }
1898
+ function Kr(e, t) {
1899
+ return X(e) === t.getNationalDigits();
1900
+ }
1901
+ function k(e) {
1902
+ "@babel/helpers - typeof";
1903
+ return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1904
+ return typeof t;
1905
+ } : function(t) {
1906
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1907
+ }, k(e);
1908
+ }
1909
+ function Yr(e, t) {
1910
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1911
+ }
1912
+ function Xr(e, t) {
1913
+ for (var n = 0; n < t.length; n++) {
1914
+ var r = t[n];
1915
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Jr(r.key), r);
1916
+ }
1917
+ }
1918
+ function Zr(e, t, n) {
1919
+ return t && Xr(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1920
+ }
1921
+ function Jr(e) {
1922
+ var t = Qr(e, "string");
1923
+ return k(t) == "symbol" ? t : t + "";
1924
+ }
1925
+ function Qr(e, t) {
1926
+ if (k(e) != "object" || !e) return e;
1927
+ var n = e[Symbol.toPrimitive];
1928
+ if (n !== void 0) {
1929
+ var r = n.call(e, t);
1930
+ if (k(r) != "object") return r;
1931
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1932
+ }
1933
+ return String(e);
1934
+ }
1935
+ var zr = /* @__PURE__ */ (function() {
1936
+ function e() {
1937
+ Yr(this, e);
1938
+ }
1939
+ return Zr(e, [{
1940
+ key: "parse",
1941
+ value: function(n) {
1942
+ if (this.context = [{
1943
+ or: !0,
1944
+ instructions: []
1945
+ }], this.parsePattern(n), this.context.length !== 1)
1946
+ throw new Error("Non-finalized contexts left when pattern parse ended");
1947
+ var r = this.context[0], d = r.branches, i = r.instructions;
1948
+ if (d)
1949
+ return {
1950
+ op: "|",
1951
+ args: d.concat([oe(i)])
1952
+ };
1953
+ if (i.length === 0)
1954
+ throw new Error("Pattern is required");
1955
+ return i.length === 1 ? i[0] : i;
1956
+ }
1957
+ }, {
1958
+ key: "startContext",
1959
+ value: function(n) {
1960
+ this.context.push(n);
1961
+ }
1962
+ }, {
1963
+ key: "endContext",
1964
+ value: function() {
1965
+ this.context.pop();
1966
+ }
1967
+ }, {
1968
+ key: "getContext",
1969
+ value: function() {
1970
+ return this.context[this.context.length - 1];
1971
+ }
1972
+ }, {
1973
+ key: "parsePattern",
1974
+ value: function(n) {
1975
+ if (!n)
1976
+ throw new Error("Pattern is required");
1977
+ var r = n.match(td);
1978
+ if (!r) {
1979
+ if (ed.test(n))
1980
+ throw new Error("Illegal characters found in a pattern: ".concat(n));
1981
+ this.getContext().instructions = this.getContext().instructions.concat(n.split(""));
1982
+ return;
1983
+ }
1984
+ var d = r[1], i = n.slice(0, r.index), a = n.slice(r.index + d.length);
1985
+ switch (d) {
1986
+ case "(?:":
1987
+ i && this.parsePattern(i), this.startContext({
1988
+ or: !0,
1989
+ instructions: [],
1990
+ branches: []
1991
+ });
1992
+ break;
1993
+ case ")":
1994
+ if (!this.getContext().or)
1995
+ throw new Error('")" operator must be preceded by "(?:" operator');
1996
+ if (i && this.parsePattern(i), this.getContext().instructions.length === 0)
1997
+ throw new Error('No instructions found after "|" operator in an "or" group');
1998
+ var o = this.getContext(), $ = o.branches;
1999
+ $.push(oe(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
2000
+ op: "|",
2001
+ args: $
2002
+ });
2003
+ break;
2004
+ case "|":
2005
+ if (!this.getContext().or)
2006
+ throw new Error('"|" operator can only be used inside "or" groups');
2007
+ if (i && this.parsePattern(i), !this.getContext().branches)
2008
+ if (this.context.length === 1)
2009
+ this.getContext().branches = [];
2010
+ else
2011
+ throw new Error('"branches" not found in an "or" group context');
2012
+ this.getContext().branches.push(oe(this.getContext().instructions)), this.getContext().instructions = [];
2013
+ break;
2014
+ case "[":
2015
+ i && this.parsePattern(i), this.startContext({
2016
+ oneOfSet: !0
2017
+ });
2018
+ break;
2019
+ case "]":
2020
+ if (!this.getContext().oneOfSet)
2021
+ throw new Error('"]" operator must be preceded by "[" operator');
2022
+ this.endContext(), this.getContext().instructions.push({
2023
+ op: "[]",
2024
+ args: qr(i)
2025
+ });
2026
+ break;
2027
+ /* istanbul ignore next */
2028
+ default:
2029
+ throw new Error("Unknown operator: ".concat(d));
2030
+ }
2031
+ a && this.parsePattern(a);
2032
+ }
2033
+ }]);
2034
+ })();
2035
+ function qr(e) {
2036
+ for (var t = [], n = 0; n < e.length; ) {
2037
+ if (e[n] === "-") {
2038
+ if (n === 0 || n === e.length - 1)
2039
+ throw new Error("Couldn't parse a one-of set pattern: ".concat(e));
2040
+ for (var r = e[n - 1].charCodeAt(0) + 1, d = e[n + 1].charCodeAt(0) - 1, i = r; i <= d; )
2041
+ t.push(String.fromCharCode(i)), i++;
2042
+ } else
2043
+ t.push(e[n]);
2044
+ n++;
2045
+ }
2046
+ return t;
2047
+ }
2048
+ var ed = /[\(\)\[\]\?\:\|]/, td = new RegExp(
2049
+ // any of:
2050
+ "(\\||\\(\\?\\:|\\)|\\[|\\])"
2051
+ );
2052
+ function oe(e) {
2053
+ return e.length === 1 ? e[0] : e;
2054
+ }
2055
+ function Xe(e, t) {
2056
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2057
+ if (n) return (n = n.call(e)).next.bind(n);
2058
+ if (Array.isArray(e) || (n = nd(e)) || t) {
2059
+ n && (e = n);
2060
+ var r = 0;
2061
+ return function() {
2062
+ return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
2063
+ };
2064
+ }
2065
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2066
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2067
+ }
2068
+ function nd(e, t) {
2069
+ if (e) {
2070
+ if (typeof e == "string") return Ze(e, t);
2071
+ var n = {}.toString.call(e).slice(8, -1);
2072
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ze(e, t) : void 0;
2073
+ }
2074
+ }
2075
+ function Ze(e, t) {
2076
+ (t == null || t > e.length) && (t = e.length);
2077
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
2078
+ return r;
2079
+ }
2080
+ function G(e) {
2081
+ "@babel/helpers - typeof";
2082
+ return G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2083
+ return typeof t;
2084
+ } : function(t) {
2085
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2086
+ }, G(e);
2087
+ }
2088
+ function rd(e, t) {
2089
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2090
+ }
2091
+ function dd(e, t) {
2092
+ for (var n = 0; n < t.length; n++) {
2093
+ var r = t[n];
2094
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ad(r.key), r);
2095
+ }
2096
+ }
2097
+ function id(e, t, n) {
2098
+ return t && dd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2099
+ }
2100
+ function ad(e) {
2101
+ var t = od(e, "string");
2102
+ return G(t) == "symbol" ? t : t + "";
2103
+ }
2104
+ function od(e, t) {
2105
+ if (G(e) != "object" || !e) return e;
2106
+ var n = e[Symbol.toPrimitive];
2107
+ if (n !== void 0) {
2108
+ var r = n.call(e, t);
2109
+ if (G(r) != "object") return r;
2110
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2111
+ }
2112
+ return String(e);
2113
+ }
2114
+ var $d = /* @__PURE__ */ (function() {
2115
+ function e(t) {
2116
+ rd(this, e), this.matchTree = new zr().parse(t);
2117
+ }
2118
+ return id(e, [{
2119
+ key: "match",
2120
+ value: function(n) {
2121
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, d = r.allowOverflow;
2122
+ if (!n)
2123
+ throw new Error("String is required");
2124
+ var i = me(n.split(""), this.matchTree, !0);
2125
+ if (i && i.match && delete i.matchedChars, !(i && i.overflow && !d))
2126
+ return i;
2127
+ }
2128
+ }]);
2129
+ })();
2130
+ function me(e, t, n) {
2131
+ if (typeof t == "string") {
2132
+ var r = e.join("");
2133
+ return t.indexOf(r) === 0 ? e.length === t.length ? {
2134
+ match: !0,
2135
+ matchedChars: e
2136
+ } : {
2137
+ partialMatch: !0
2138
+ // matchedChars: characters
2139
+ } : r.indexOf(t) === 0 ? n && e.length > t.length ? {
2140
+ overflow: !0
2141
+ } : {
2142
+ match: !0,
2143
+ matchedChars: e.slice(0, t.length)
2144
+ } : void 0;
2145
+ }
2146
+ if (Array.isArray(t)) {
2147
+ for (var d = e.slice(), i = 0; i < t.length; ) {
2148
+ var a = t[i], o = me(d, a, n && i === t.length - 1);
2149
+ if (o) {
2150
+ if (o.overflow)
2151
+ return o;
2152
+ if (o.match) {
2153
+ if (d = d.slice(o.matchedChars.length), d.length === 0)
2154
+ return i === t.length - 1 ? {
2155
+ match: !0,
2156
+ matchedChars: e
2157
+ } : {
2158
+ partialMatch: !0
2159
+ // matchedChars: characters
2160
+ };
2161
+ } else {
2162
+ if (o.partialMatch)
2163
+ return {
2164
+ partialMatch: !0
2165
+ // matchedChars: characters
2166
+ };
2167
+ throw new Error(`Unsupported match result:
2168
+ `.concat(JSON.stringify(o, null, 2)));
2169
+ }
2170
+ } else return;
2171
+ i++;
2172
+ }
2173
+ return n ? {
2174
+ overflow: !0
2175
+ } : {
2176
+ match: !0,
2177
+ matchedChars: e.slice(0, e.length - d.length)
2178
+ };
2179
+ }
2180
+ switch (t.op) {
2181
+ case "|":
2182
+ for (var $, u = Xe(t.args), l; !(l = u()).done; ) {
2183
+ var c = l.value, f = me(e, c, n);
2184
+ if (f) {
2185
+ if (f.overflow)
2186
+ return f;
2187
+ if (f.match)
2188
+ return {
2189
+ match: !0,
2190
+ matchedChars: f.matchedChars
2191
+ };
2192
+ if (f.partialMatch)
2193
+ $ = !0;
2194
+ else
2195
+ throw new Error(`Unsupported match result:
2196
+ `.concat(JSON.stringify(f, null, 2)));
2197
+ }
2198
+ }
2199
+ return $ ? {
2200
+ partialMatch: !0
2201
+ // matchedChars: ...
2202
+ } : void 0;
2203
+ case "[]":
2204
+ for (var m = Xe(t.args), y; !(y = m()).done; ) {
2205
+ var N = y.value;
2206
+ if (e[0] === N)
2207
+ return e.length === 1 ? {
2208
+ match: !0,
2209
+ matchedChars: e
2210
+ } : n ? {
2211
+ overflow: !0
2212
+ } : {
2213
+ match: !0,
2214
+ matchedChars: [N]
2215
+ };
2216
+ }
2217
+ return;
2218
+ /* istanbul ignore next */
2219
+ default:
2220
+ throw new Error("Unsupported instruction tree: ".concat(t));
2221
+ }
2222
+ }
2223
+ function B(e) {
2224
+ "@babel/helpers - typeof";
2225
+ return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2226
+ return typeof t;
2227
+ } : function(t) {
2228
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2229
+ }, B(e);
2230
+ }
2231
+ function Je(e, t) {
2232
+ var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2233
+ if (n) return (n = n.call(e)).next.bind(n);
2234
+ if (Array.isArray(e) || (n = ud(e)) || t) {
2235
+ n && (e = n);
2236
+ var r = 0;
2237
+ return function() {
2238
+ return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
2239
+ };
2240
+ }
2241
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2242
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2243
+ }
2244
+ function ud(e, t) {
2245
+ if (e) {
2246
+ if (typeof e == "string") return Qe(e, t);
2247
+ var n = {}.toString.call(e).slice(8, -1);
2248
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Qe(e, t) : void 0;
2249
+ }
2250
+ }
2251
+ function Qe(e, t) {
2252
+ (t == null || t > e.length) && (t = e.length);
2253
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
2254
+ return r;
2255
+ }
2256
+ function ld(e, t) {
2257
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2258
+ }
2259
+ function sd(e, t) {
2260
+ for (var n = 0; n < t.length; n++) {
2261
+ var r = t[n];
2262
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, cd(r.key), r);
2263
+ }
2264
+ }
2265
+ function fd(e, t, n) {
2266
+ return t && sd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2267
+ }
2268
+ function cd(e) {
2269
+ var t = hd(e, "string");
2270
+ return B(t) == "symbol" ? t : t + "";
2271
+ }
2272
+ function hd(e, t) {
2273
+ if (B(e) != "object" || !e) return e;
2274
+ var n = e[Symbol.toPrimitive];
2275
+ if (n !== void 0) {
2276
+ var r = n.call(e, t);
2277
+ if (B(r) != "object") return r;
2278
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2279
+ }
2280
+ return String(e);
2281
+ }
2282
+ var ge = "9", md = 15, gd = V(ge, md), yd = /[- ]/, pd = function() {
2283
+ return /\[([^\[\]])*\]/g;
2284
+ }, vd = function() {
2285
+ return /\d(?=[^,}][^,}])/g;
2286
+ }, bd = new RegExp("[" + S + "]*\\$1[" + S + "]*(\\$\\d[" + S + "]*)*$"), ze = 3, Nd = /* @__PURE__ */ (function() {
2287
+ function e(t) {
2288
+ t.state;
2289
+ var n = t.metadata;
2290
+ ld(this, e), this.metadata = n, this.resetFormat();
2291
+ }
2292
+ return fd(e, [{
2293
+ key: "resetFormat",
2294
+ value: function() {
2295
+ this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
2296
+ }
2297
+ }, {
2298
+ key: "reset",
2299
+ value: function(n, r) {
2300
+ this.resetFormat(), n ? (this.isNANP = n.callingCode() === "1", this.matchingFormats = n.formats(), r.nationalSignificantNumber && this.narrowDownMatchingFormats(r)) : (this.isNANP = void 0, this.matchingFormats = []);
2301
+ }
2302
+ /**
2303
+ * Formats an updated phone number.
2304
+ * @param {string} nextDigits — Additional phone number digits.
2305
+ * @param {object} state — `AsYouType` state.
2306
+ * @return {[string]} Returns undefined if the updated phone number can't be formatted using any of the available formats.
2307
+ */
2308
+ }, {
2309
+ key: "format",
2310
+ value: function(n, r) {
2311
+ var d = this;
2312
+ if (Wr(r.nationalSignificantNumber, r.country, this.metadata))
2313
+ for (var i = Je(this.matchingFormats), a; !(a = i()).done; ) {
2314
+ var o = a.value, $ = Hr(r, o, {
2315
+ metadata: this.metadata,
2316
+ shouldTryNationalPrefixFormattingRule: function(l) {
2317
+ return d.shouldTryNationalPrefixFormattingRule(l, {
2318
+ international: r.international,
2319
+ nationalPrefix: r.nationalPrefix
2320
+ });
2321
+ },
2322
+ getSeparatorAfterNationalPrefix: function(l) {
2323
+ return d.getSeparatorAfterNationalPrefix(l);
2324
+ }
2325
+ });
2326
+ if ($)
2327
+ return this.resetFormat(), this.chosenFormat = o, this.setNationalNumberTemplate($.replace(/\d/g, P), r), this.populatedNationalNumberTemplate = $, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(P), $;
2328
+ }
2329
+ return this.formatNationalNumberWithNextDigits(n, r);
2330
+ }
2331
+ // Formats the next phone number digits.
2332
+ }, {
2333
+ key: "formatNationalNumberWithNextDigits",
2334
+ value: function(n, r) {
2335
+ var d = this.chosenFormat, i = this.chooseFormat(r);
2336
+ if (i)
2337
+ return i === d ? this.formatNextNationalNumberDigits(n) : this.formatNextNationalNumberDigits(r.getNationalDigits());
2338
+ }
2339
+ }, {
2340
+ key: "narrowDownMatchingFormats",
2341
+ value: function(n) {
2342
+ var r = this, d = n.nationalSignificantNumber, i = n.nationalPrefix, a = n.international, o = d, $ = o.length - ze;
2343
+ $ < 0 && ($ = 0), this.matchingFormats = this.matchingFormats.filter(function(u) {
2344
+ return r.formatSuits(u, a, i) && r.formatMatches(u, o, $);
2345
+ }), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
2346
+ }
2347
+ }, {
2348
+ key: "formatSuits",
2349
+ value: function(n, r, d) {
2350
+ return !(d && !n.usesNationalPrefix() && // !format.domesticCarrierCodeFormattingRule() &&
2351
+ !n.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !r && !d && n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat());
2352
+ }
2353
+ }, {
2354
+ key: "formatMatches",
2355
+ value: function(n, r, d) {
2356
+ var i = n.leadingDigitsPatterns().length;
2357
+ if (i === 0)
2358
+ return !0;
2359
+ d = Math.min(d, i - 1);
2360
+ var a = n.leadingDigitsPatterns()[d];
2361
+ if (r.length < ze)
2362
+ try {
2363
+ return new $d(a).match(r, {
2364
+ allowOverflow: !0
2365
+ }) !== void 0;
2366
+ } catch (o) {
2367
+ return console.error(o), !0;
2368
+ }
2369
+ return new RegExp("^(".concat(a, ")")).test(r);
2370
+ }
2371
+ }, {
2372
+ key: "getFormatFormat",
2373
+ value: function(n, r) {
2374
+ return r ? n.internationalFormat() : n.format();
2375
+ }
2376
+ }, {
2377
+ key: "chooseFormat",
2378
+ value: function(n) {
2379
+ for (var r = this, d = function() {
2380
+ var u = o.value;
2381
+ return r.chosenFormat === u ? 0 : bd.test(r.getFormatFormat(u, n.international)) ? r.createTemplateForFormat(u, n) ? (r.chosenFormat = u, 0) : (r.matchingFormats = r.matchingFormats.filter(function(l) {
2382
+ return l !== u;
2383
+ }), 1) : 1;
2384
+ }, i, a = Je(this.matchingFormats.slice()), o; !(o = a()).done && (i = d(), i !== 0); )
2385
+ ;
2386
+ return this.chosenFormat || this.resetFormat(), this.chosenFormat;
2387
+ }
2388
+ }, {
2389
+ key: "createTemplateForFormat",
2390
+ value: function(n, r) {
2391
+ if (!(n.pattern().indexOf("|") >= 0)) {
2392
+ var d = this.getTemplateForFormat(n, r);
2393
+ if (d)
2394
+ return this.setNationalNumberTemplate(d, r), !0;
2395
+ }
2396
+ }
2397
+ }, {
2398
+ key: "getSeparatorAfterNationalPrefix",
2399
+ value: function(n) {
2400
+ return this.isNANP || n && n.nationalPrefixFormattingRule() && yd.test(n.nationalPrefixFormattingRule()) ? " " : "";
2401
+ }
2402
+ }, {
2403
+ key: "getInternationalPrefixBeforeCountryCallingCode",
2404
+ value: function(n, r) {
2405
+ var d = n.IDDPrefix, i = n.missingPlus;
2406
+ return d ? r && r.spacing === !1 ? d : d + " " : i ? "" : "+";
2407
+ }
2408
+ }, {
2409
+ key: "getTemplate",
2410
+ value: function(n) {
2411
+ if (this.template) {
2412
+ for (var r = -1, d = 0, i = n.international ? this.getInternationalPrefixBeforeCountryCallingCode(n, {
2413
+ spacing: !1
2414
+ }) : ""; d < i.length + n.getDigitsWithoutInternationalPrefix().length; )
2415
+ r = this.template.indexOf(P, r + 1), d++;
2416
+ return Ke(this.template, r + 1);
2417
+ }
2418
+ }
2419
+ }, {
2420
+ key: "setNationalNumberTemplate",
2421
+ value: function(n, r) {
2422
+ this.nationalNumberTemplate = n, this.populatedNationalNumberTemplate = n, this.populatedNationalNumberTemplatePosition = -1, r.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g, P) + V(P, r.callingCode.length) + " " + n : this.template = n;
2423
+ }
2424
+ /**
2425
+ * Generates formatting template for a national phone number,
2426
+ * optionally containing a national prefix, for a format.
2427
+ * @param {Format} format
2428
+ * @param {string} nationalPrefix
2429
+ * @return {string}
2430
+ */
2431
+ }, {
2432
+ key: "getTemplateForFormat",
2433
+ value: function(n, r) {
2434
+ var d = r.nationalSignificantNumber, i = r.international, a = r.nationalPrefix, o = r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, $ = n.pattern();
2435
+ $ = $.replace(pd(), "\\d").replace(vd(), "\\d");
2436
+ var u = gd.match($)[0];
2437
+ if (!(d.length > u.length)) {
2438
+ var l = new RegExp("^" + $ + "$"), c = d.replace(/\d/g, ge);
2439
+ l.test(c) && (u = c);
2440
+ var f = this.getFormatFormat(n, i), m;
2441
+ if (this.shouldTryNationalPrefixFormattingRule(n, {
2442
+ international: i,
2443
+ nationalPrefix: a
2444
+ })) {
2445
+ var y = f.replace(ft, n.nationalPrefixFormattingRule());
2446
+ if (X(n.nationalPrefixFormattingRule()) === (a || "") + X("$1") && (f = y, m = !0, a))
2447
+ for (var N = a.length; N > 0; )
2448
+ f = f.replace(/\d/, P), N--;
2449
+ }
2450
+ var b = u.replace(new RegExp($), f).replace(new RegExp(ge, "g"), P);
2451
+ return m || (o ? b = V(P, o.length) + " " + b : a && (b = V(P, a.length) + this.getSeparatorAfterNationalPrefix(n) + b)), i && (b = st(b)), b;
2452
+ }
2453
+ }
2454
+ }, {
2455
+ key: "formatNextNationalNumberDigits",
2456
+ value: function(n) {
2457
+ var r = Ur(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, n);
2458
+ if (!r) {
2459
+ this.resetFormat();
2460
+ return;
2461
+ }
2462
+ return this.populatedNationalNumberTemplate = r[0], this.populatedNationalNumberTemplatePosition = r[1], Ke(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
2463
+ }
2464
+ }, {
2465
+ key: "shouldTryNationalPrefixFormattingRule",
2466
+ value: function(n, r) {
2467
+ var d = r.international, i = r.nationalPrefix;
2468
+ if (n.nationalPrefixFormattingRule()) {
2469
+ var a = n.usesNationalPrefix();
2470
+ if (a && i || !a && !d)
2471
+ return !0;
2472
+ }
2473
+ }
2474
+ }]);
2475
+ })();
2476
+ function U(e) {
2477
+ "@babel/helpers - typeof";
2478
+ return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2479
+ return typeof t;
2480
+ } : function(t) {
2481
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2482
+ }, U(e);
2483
+ }
2484
+ function vt(e, t) {
2485
+ return Id(e) || Sd(e, t) || Pd(e, t) || Cd();
2486
+ }
2487
+ function Cd() {
2488
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2489
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2490
+ }
2491
+ function Pd(e, t) {
2492
+ if (e) {
2493
+ if (typeof e == "string") return qe(e, t);
2494
+ var n = {}.toString.call(e).slice(8, -1);
2495
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? qe(e, t) : void 0;
2496
+ }
2497
+ }
2498
+ function qe(e, t) {
2499
+ (t == null || t > e.length) && (t = e.length);
2500
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
2501
+ return r;
2502
+ }
2503
+ function Sd(e, t) {
2504
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2505
+ if (n != null) {
2506
+ var r, d, i, a, o = [], $ = !0, u = !1;
2507
+ try {
2508
+ if (i = (n = n.call(e)).next, t !== 0) for (; !($ = (r = i.call(n)).done) && (o.push(r.value), o.length !== t); $ = !0) ;
2509
+ } catch (l) {
2510
+ u = !0, d = l;
2511
+ } finally {
2512
+ try {
2513
+ if (!$ && n.return != null && (a = n.return(), Object(a) !== a)) return;
2514
+ } finally {
2515
+ if (u) throw d;
2516
+ }
2517
+ }
2518
+ return o;
2519
+ }
2520
+ }
2521
+ function Id(e) {
2522
+ if (Array.isArray(e)) return e;
2523
+ }
2524
+ function Ed(e, t) {
2525
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2526
+ }
2527
+ function xd(e, t) {
2528
+ for (var n = 0; n < t.length; n++) {
2529
+ var r = t[n];
2530
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ad(r.key), r);
2531
+ }
2532
+ }
2533
+ function Td(e, t, n) {
2534
+ return t && xd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2535
+ }
2536
+ function Ad(e) {
2537
+ var t = Fd(e, "string");
2538
+ return U(t) == "symbol" ? t : t + "";
2539
+ }
2540
+ function Fd(e, t) {
2541
+ if (U(e) != "object" || !e) return e;
2542
+ var n = e[Symbol.toPrimitive];
2543
+ if (n !== void 0) {
2544
+ var r = n.call(e, t);
2545
+ if (U(r) != "object") return r;
2546
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2547
+ }
2548
+ return String(e);
2549
+ }
2550
+ var wd = "[" + S + v + "]+", _d = new RegExp("^" + wd + "$", "i"), Od = "(?:[" + q + "][" + S + v + "]*|[" + S + v + "]+)", Rd = new RegExp("[^" + S + v + "]+.*$"), Dd = /[^\d\[\]]/, jd = /* @__PURE__ */ (function() {
2551
+ function e(t) {
2552
+ var n = t.defaultCountry, r = t.defaultCallingCode, d = t.metadata, i = t.onNationalSignificantNumberChange;
2553
+ Ed(this, e), this.defaultCountry = n, this.defaultCallingCode = r, this.metadata = d, this.onNationalSignificantNumberChange = i;
2554
+ }
2555
+ return Td(e, [{
2556
+ key: "input",
2557
+ value: function(n, r) {
2558
+ var d = kd(n), i = vt(d, 2), a = i[0], o = i[1], $ = X(a), u;
2559
+ return o && (r.digits || (r.startInternationalNumber(void 0, void 0), $ || (u = !0))), $ && this.inputDigits($, r), {
2560
+ digits: $,
2561
+ justLeadingPlus: u
2562
+ };
2563
+ }
2564
+ /**
2565
+ * Inputs "next" phone number digits.
2566
+ * @param {string} digits
2567
+ * @return {string} [formattedNumber] Formatted national phone number (if it can be formatted at this stage). Returning `undefined` means "don't format the national phone number at this stage".
2568
+ */
2569
+ }, {
2570
+ key: "inputDigits",
2571
+ value: function(n, r) {
2572
+ var d = r.digits, i = d.length < 3 && d.length + n.length >= 3;
2573
+ if (r.appendDigits(n), i && this.extractIddPrefix(r), this.isWaitingForCountryCallingCode(r)) {
2574
+ if (!this.extractCountryCallingCode(r))
2575
+ return;
2576
+ } else
2577
+ r.appendNationalSignificantNumberDigits(n);
2578
+ r.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(r.getNationalDigits(), function(a) {
2579
+ return r.update(a);
2580
+ });
2581
+ }
2582
+ }, {
2583
+ key: "isWaitingForCountryCallingCode",
2584
+ value: function(n) {
2585
+ var r = n.international, d = n.callingCode;
2586
+ return r && !d;
2587
+ }
2588
+ // Extracts a country calling code from a number
2589
+ // being entered in internatonal format.
2590
+ }, {
2591
+ key: "extractCountryCallingCode",
2592
+ value: function(n) {
2593
+ var r = be("+" + n.getDigitsWithoutInternationalPrefix(), n.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = r.countryCallingCode, i = r.number;
2594
+ if (d)
2595
+ return n.setCallingCode(d), n.update({
2596
+ nationalSignificantNumber: i
2597
+ }), !0;
2598
+ }
2599
+ }, {
2600
+ key: "reset",
2601
+ value: function(n) {
2602
+ if (n) {
2603
+ this.hasSelectedNumberingPlan = !0;
2604
+ var r = n._nationalPrefixForParsing();
2605
+ this.couldPossiblyExtractAnotherNationalSignificantNumber = r && Dd.test(r);
2606
+ } else
2607
+ this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
2608
+ }
2609
+ /**
2610
+ * Extracts a national (significant) number from user input.
2611
+ * Google's library is different in that it only applies `national_prefix_for_parsing`
2612
+ * and doesn't apply `national_prefix_transform_rule` after that.
2613
+ * https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539
2614
+ * @return {boolean} [extracted]
2615
+ */
2616
+ }, {
2617
+ key: "extractNationalSignificantNumber",
2618
+ value: function(n, r) {
2619
+ if (this.hasSelectedNumberingPlan) {
2620
+ var d = ue(n, this.metadata), i = d.nationalPrefix, a = d.nationalNumber, o = d.carrierCode;
2621
+ if (a !== n)
2622
+ return this.onExtractedNationalNumber(i, o, a, n, r), !0;
2623
+ }
2624
+ }
2625
+ /**
2626
+ * In Google's code this function is called "attempt to extract longer NDD".
2627
+ * "Some national prefixes are a substring of others", they say.
2628
+ * @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.
2629
+ */
2630
+ }, {
2631
+ key: "extractAnotherNationalSignificantNumber",
2632
+ value: function(n, r, d) {
2633
+ if (!this.hasExtractedNationalSignificantNumber)
2634
+ return this.extractNationalSignificantNumber(n, d);
2635
+ if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
2636
+ var i = ue(n, this.metadata), a = i.nationalPrefix, o = i.nationalNumber, $ = i.carrierCode;
2637
+ if (o !== r)
2638
+ return this.onExtractedNationalNumber(a, $, o, n, d), !0;
2639
+ }
2640
+ }
2641
+ }, {
2642
+ key: "onExtractedNationalNumber",
2643
+ value: function(n, r, d, i, a) {
2644
+ var o = !1, $, u = i.lastIndexOf(d);
2645
+ if (u < 0 || u !== i.length - d.length)
2646
+ o = !0;
2647
+ else {
2648
+ var l = i.slice(0, u);
2649
+ l && l !== n && ($ = l);
2650
+ }
2651
+ a({
2652
+ nationalPrefix: n,
2653
+ carrierCode: r,
2654
+ nationalSignificantNumber: d,
2655
+ nationalSignificantNumberIsModified: o,
2656
+ prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix: $
2657
+ }), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
2658
+ }
2659
+ }, {
2660
+ key: "reExtractNationalSignificantNumber",
2661
+ value: function(n) {
2662
+ if (this.extractAnotherNationalSignificantNumber(n.getNationalDigits(), n.nationalSignificantNumber, function(r) {
2663
+ return n.update(r);
2664
+ }))
2665
+ return !0;
2666
+ if (this.extractIddPrefix(n))
2667
+ return this.extractCallingCodeAndNationalSignificantNumber(n), !0;
2668
+ if (this.fixMissingPlus(n))
2669
+ return this.extractCallingCodeAndNationalSignificantNumber(n), !0;
2670
+ }
2671
+ }, {
2672
+ key: "extractIddPrefix",
2673
+ value: function(n) {
2674
+ var r = n.international, d = n.IDDPrefix, i = n.digits;
2675
+ if (n.nationalSignificantNumber, !(r || d)) {
2676
+ var a = $t(i, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
2677
+ if (a !== void 0 && a !== i)
2678
+ return n.update({
2679
+ IDDPrefix: i.slice(0, i.length - a.length)
2680
+ }), this.startInternationalNumber(n, {
2681
+ country: void 0,
2682
+ callingCode: void 0
2683
+ }), !0;
2684
+ }
2685
+ }
2686
+ }, {
2687
+ key: "fixMissingPlus",
2688
+ value: function(n) {
2689
+ if (!n.international) {
2690
+ var r = lt(n.digits, n.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = r.countryCallingCode;
2691
+ if (d)
2692
+ return n.update({
2693
+ missingPlus: !0
2694
+ }), this.startInternationalNumber(n, {
2695
+ country: n.country,
2696
+ callingCode: d
2697
+ }), !0;
2698
+ }
2699
+ }
2700
+ }, {
2701
+ key: "startInternationalNumber",
2702
+ value: function(n, r) {
2703
+ var d = r.country, i = r.callingCode;
2704
+ n.startInternationalNumber(d, i), n.nationalSignificantNumber && (n.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0);
2705
+ }
2706
+ }, {
2707
+ key: "extractCallingCodeAndNationalSignificantNumber",
2708
+ value: function(n) {
2709
+ this.extractCountryCallingCode(n) && this.extractNationalSignificantNumber(n.getNationalDigits(), function(r) {
2710
+ return n.update(r);
2711
+ });
2712
+ }
2713
+ }]);
2714
+ })();
2715
+ function Ld(e) {
2716
+ var t = e.search(Od);
2717
+ if (!(t < 0)) {
2718
+ e = e.slice(t);
2719
+ var n;
2720
+ return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(Rd, ""), n && (e = "+" + e), e;
2721
+ }
2722
+ }
2723
+ function Md(e) {
2724
+ var t = Ld(e) || "";
2725
+ return t[0] === "+" ? [t.slice(1), !0] : [t];
2726
+ }
2727
+ function kd(e) {
2728
+ var t = Md(e), n = vt(t, 2), r = n[0], d = n[1];
2729
+ return _d.test(r) || (r = ""), [r, d];
2730
+ }
2731
+ function H(e) {
2732
+ "@babel/helpers - typeof";
2733
+ return H = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2734
+ return typeof t;
2735
+ } : function(t) {
2736
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2737
+ }, H(e);
2738
+ }
2739
+ function Gd(e, t) {
2740
+ return Wd(e) || Hd(e, t) || Ud(e, t) || Bd();
2741
+ }
2742
+ function Bd() {
2743
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2744
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2745
+ }
2746
+ function Ud(e, t) {
2747
+ if (e) {
2748
+ if (typeof e == "string") return et(e, t);
2749
+ var n = {}.toString.call(e).slice(8, -1);
2750
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? et(e, t) : void 0;
2751
+ }
2752
+ }
2753
+ function et(e, t) {
2754
+ (t == null || t > e.length) && (t = e.length);
2755
+ for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
2756
+ return r;
2757
+ }
2758
+ function Hd(e, t) {
2759
+ var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2760
+ if (n != null) {
2761
+ var r, d, i, a, o = [], $ = !0, u = !1;
2762
+ try {
2763
+ if (i = (n = n.call(e)).next, t !== 0) for (; !($ = (r = i.call(n)).done) && (o.push(r.value), o.length !== t); $ = !0) ;
2764
+ } catch (l) {
2765
+ u = !0, d = l;
2766
+ } finally {
2767
+ try {
2768
+ if (!$ && n.return != null && (a = n.return(), Object(a) !== a)) return;
2769
+ } finally {
2770
+ if (u) throw d;
2771
+ }
2772
+ }
2773
+ return o;
2774
+ }
2775
+ }
2776
+ function Wd(e) {
2777
+ if (Array.isArray(e)) return e;
2778
+ }
2779
+ function Vd(e, t) {
2780
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2781
+ }
2782
+ function Kd(e, t) {
2783
+ for (var n = 0; n < t.length; n++) {
2784
+ var r = t[n];
2785
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Xd(r.key), r);
2786
+ }
2787
+ }
2788
+ function Yd(e, t, n) {
2789
+ return t && Kd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2790
+ }
2791
+ function Xd(e) {
2792
+ var t = Zd(e, "string");
2793
+ return H(t) == "symbol" ? t : t + "";
2794
+ }
2795
+ function Zd(e, t) {
2796
+ if (H(e) != "object" || !e) return e;
2797
+ var n = e[Symbol.toPrimitive];
2798
+ if (n !== void 0) {
2799
+ var r = n.call(e, t);
2800
+ if (H(r) != "object") return r;
2801
+ throw new TypeError("@@toPrimitive must return a primitive value.");
2802
+ }
2803
+ return String(e);
2804
+ }
2805
+ var bt = /* @__PURE__ */ (function() {
2806
+ function e(t, n) {
2807
+ Vd(this, e), this.metadata = new g(n);
2808
+ var r = this.getCountryAndCallingCode(t), d = Gd(r, 2), i = d[0], a = d[1];
2809
+ this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
2810
+ }
2811
+ return Yd(e, [{
2812
+ key: "getCountryAndCallingCode",
2813
+ value: function(n) {
2814
+ var r, d;
2815
+ return n && (x(n) ? (r = n.defaultCountry, d = n.defaultCallingCode) : r = n), r && !this.metadata.hasCountry(r) && (r = void 0), [r, d];
2816
+ }
2817
+ /**
2818
+ * Inputs "next" phone number characters.
2819
+ * @param {string} text
2820
+ * @return {string} Formatted phone number characters that have been input so far.
2821
+ */
2822
+ }, {
2823
+ key: "input",
2824
+ value: function(n) {
2825
+ var r = this.parser.input(n, this.state), d = r.digits, i = r.justLeadingPlus;
2826
+ if (i)
2827
+ this.formattedOutput = "+";
2828
+ else if (d) {
2829
+ this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state);
2830
+ var a;
2831
+ if (this.metadata.hasSelectedNumberingPlan() && (a = this.formatter.format(d, this.state)), a === void 0 && this.parser.reExtractNationalSignificantNumber(this.state)) {
2832
+ this.determineTheCountryIfNeeded();
2833
+ var o = this.state.getNationalDigits();
2834
+ o && (a = this.formatter.format(o, this.state));
2835
+ }
2836
+ this.formattedOutput = a ? this.getFullNumber(a) : this.getNonFormattedNumber();
2837
+ }
2838
+ return this.formattedOutput;
2839
+ }
2840
+ }, {
2841
+ key: "reset",
2842
+ value: function() {
2843
+ var n = this;
2844
+ return this.state = new Mr({
2845
+ onCountryChange: function(d) {
2846
+ n.country = d;
2847
+ },
2848
+ onCallingCodeChange: function(d, i) {
2849
+ n.metadata.selectNumberingPlan(i, d), n.formatter.reset(n.metadata.numberingPlan, n.state), n.parser.reset(n.metadata.numberingPlan);
2850
+ }
2851
+ }), this.formatter = new Nd({
2852
+ state: this.state,
2853
+ metadata: this.metadata
2854
+ }), this.parser = new jd({
2855
+ defaultCountry: this.defaultCountry,
2856
+ defaultCallingCode: this.defaultCallingCode,
2857
+ metadata: this.metadata,
2858
+ state: this.state,
2859
+ onNationalSignificantNumberChange: function() {
2860
+ n.determineTheCountryIfNeeded(), n.formatter.reset(n.metadata.numberingPlan, n.state);
2861
+ }
2862
+ }), this.state.reset({
2863
+ country: this.defaultCountry,
2864
+ callingCode: this.defaultCallingCode
2865
+ }), this.formattedOutput = "", this;
2866
+ }
2867
+ /**
2868
+ * Returns `true` if the phone number is being input in international format.
2869
+ * In other words, returns `true` if and only if the parsed phone number starts with a `"+"`.
2870
+ * @return {boolean}
2871
+ */
2872
+ }, {
2873
+ key: "isInternational",
2874
+ value: function() {
2875
+ return this.state.international;
2876
+ }
2877
+ /**
2878
+ * Returns the "calling code" part of the phone number when it's being input
2879
+ * in an international format.
2880
+ * If no valid calling code has been entered so far, returns `undefined`.
2881
+ * @return {string} [callingCode]
2882
+ */
2883
+ }, {
2884
+ key: "getCallingCode",
2885
+ value: function() {
2886
+ if (this.isInternational())
2887
+ return this.state.callingCode;
2888
+ }
2889
+ // A legacy alias.
2890
+ }, {
2891
+ key: "getCountryCallingCode",
2892
+ value: function() {
2893
+ return this.getCallingCode();
2894
+ }
2895
+ /**
2896
+ * Returns a two-letter country code of the phone number.
2897
+ * Returns `undefined` for "non-geographic" phone numbering plans.
2898
+ * Returns `undefined` if no phone number has been input yet.
2899
+ * @return {string} [country]
2900
+ */
2901
+ }, {
2902
+ key: "getCountry",
2903
+ value: function() {
2904
+ var n = this.state.digits;
2905
+ if (n)
2906
+ return this._getCountry();
2907
+ }
2908
+ /**
2909
+ * Returns a two-letter country code of the phone number.
2910
+ * Returns `undefined` for "non-geographic" phone numbering plans.
2911
+ * @return {string} [country]
2912
+ */
2913
+ }, {
2914
+ key: "_getCountry",
2915
+ value: function() {
2916
+ var n = this.state.country;
2917
+ return n;
2918
+ }
2919
+ }, {
2920
+ key: "determineTheCountryIfNeeded",
2921
+ value: function() {
2922
+ (!this.state.country || this.isCountryCallingCodeAmbiguous()) && this.determineTheCountry();
2923
+ }
2924
+ // Prepends `+CountryCode ` in case of an international phone number
2925
+ }, {
2926
+ key: "getFullNumber",
2927
+ value: function(n) {
2928
+ var r = this;
2929
+ if (this.isInternational()) {
2930
+ var d = function(o) {
2931
+ return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state, {
2932
+ spacing: !!o
2933
+ }) + o;
2934
+ }, i = this.state.callingCode;
2935
+ return d(i ? n ? "".concat(i, " ").concat(n) : i : "".concat(this.state.getDigitsWithoutInternationalPrefix()));
2936
+ }
2937
+ return n;
2938
+ }
2939
+ }, {
2940
+ key: "getNonFormattedNationalNumberWithPrefix",
2941
+ value: function() {
2942
+ var n = this.state, r = n.nationalSignificantNumber, d = n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, i = n.nationalPrefix, a = r, o = d || i;
2943
+ return o && (a = o + a), a;
2944
+ }
2945
+ }, {
2946
+ key: "getNonFormattedNumber",
2947
+ value: function() {
2948
+ var n = this.state.nationalSignificantNumberIsModified;
2949
+ return this.getFullNumber(n ? this.state.getNationalDigits() : this.getNonFormattedNationalNumberWithPrefix());
2950
+ }
2951
+ }, {
2952
+ key: "getNonFormattedTemplate",
2953
+ value: function() {
2954
+ var n = this.getNonFormattedNumber();
2955
+ if (n)
2956
+ return n.replace(/[\+\d]/g, P);
2957
+ }
2958
+ }, {
2959
+ key: "isCountryCallingCodeAmbiguous",
2960
+ value: function() {
2961
+ var n = this.state.callingCode, r = this.metadata.getCountryCodesForCallingCode(n);
2962
+ return r && r.length > 1;
2963
+ }
2964
+ // Determines the exact country of the phone number
2965
+ // entered so far based on the country phone code
2966
+ // and the national phone number.
2967
+ }, {
2968
+ key: "determineTheCountry",
2969
+ value: function() {
2970
+ this.state.setCountry(ve(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
2971
+ nationalNumber: this.state.nationalSignificantNumber,
2972
+ metadata: this.metadata
2973
+ }));
2974
+ }
2975
+ /**
2976
+ * Returns a E.164 phone number value for the user's input.
2977
+ *
2978
+ * For example, for country `"US"` and input `"(222) 333-4444"`
2979
+ * it will return `"+12223334444"`.
2980
+ *
2981
+ * For international phone number input, it will also auto-correct
2982
+ * some minor errors such as using a national prefix when writing
2983
+ * an international phone number. For example, if the user inputs
2984
+ * `"+44 0 7400 000000"` then it will return an auto-corrected
2985
+ * `"+447400000000"` phone number value.
2986
+ *
2987
+ * Will return `undefined` if no digits have been input,
2988
+ * or when inputting a phone number in national format and no
2989
+ * default country or default "country calling code" have been set.
2990
+ *
2991
+ * @return {string} [value]
2992
+ */
2993
+ }, {
2994
+ key: "getNumberValue",
2995
+ value: function() {
2996
+ var n = this.state, r = n.digits, d = n.callingCode, i = n.country, a = n.nationalSignificantNumber;
2997
+ if (r) {
2998
+ if (this.isInternational())
2999
+ return d ? "+" + d + a : "+" + r;
3000
+ if (i || d) {
3001
+ var o = i ? this.metadata.countryCallingCode() : d;
3002
+ return "+" + o + a;
3003
+ }
3004
+ }
3005
+ }
3006
+ /**
3007
+ * Returns an instance of `PhoneNumber` class.
3008
+ * Will return `undefined` if no national (significant) number
3009
+ * digits have been entered so far, or if no `defaultCountry` has been
3010
+ * set and the user enters a phone number not in international format.
3011
+ */
3012
+ }, {
3013
+ key: "getNumber",
3014
+ value: function() {
3015
+ var n = this.state, r = n.nationalSignificantNumber, d = n.carrierCode, i = n.callingCode, a = this._getCountry();
3016
+ if (r && !(!a && !i)) {
3017
+ if (a && a === this.defaultCountry) {
3018
+ var o = new g(this.metadata.metadata);
3019
+ o.selectNumberingPlan(a);
3020
+ var $ = o.numberingPlan.callingCode(), u = this.metadata.getCountryCodesForCallingCode($);
3021
+ if (u.length > 1) {
3022
+ var l = ut(r, {
3023
+ countries: u,
3024
+ metadata: this.metadata.metadata
3025
+ });
3026
+ l && (a = l);
3027
+ }
3028
+ }
3029
+ var c = new gt(a || i, r, this.metadata.metadata);
3030
+ return d && (c.carrierCode = d), c;
3031
+ }
3032
+ }
3033
+ /**
3034
+ * Returns `true` if the phone number is "possible".
3035
+ * Is just a shortcut for `PhoneNumber.isPossible()`.
3036
+ * @return {boolean}
3037
+ */
3038
+ }, {
3039
+ key: "isPossible",
3040
+ value: function() {
3041
+ var n = this.getNumber();
3042
+ return n ? n.isPossible() : !1;
3043
+ }
3044
+ /**
3045
+ * Returns `true` if the phone number is "valid".
3046
+ * Is just a shortcut for `PhoneNumber.isValid()`.
3047
+ * @return {boolean}
3048
+ */
3049
+ }, {
3050
+ key: "isValid",
3051
+ value: function() {
3052
+ var n = this.getNumber();
3053
+ return n ? n.isValid() : !1;
3054
+ }
3055
+ /**
3056
+ * @deprecated
3057
+ * This method is used in `react-phone-number-input/source/input-control.js`
3058
+ * in versions before `3.0.16`.
3059
+ */
3060
+ }, {
3061
+ key: "getNationalNumber",
3062
+ value: function() {
3063
+ return this.state.nationalSignificantNumber;
3064
+ }
3065
+ /**
3066
+ * Returns the phone number characters entered by the user.
3067
+ * @return {string}
3068
+ */
3069
+ }, {
3070
+ key: "getChars",
3071
+ value: function() {
3072
+ return (this.state.international ? "+" : "") + this.state.digits;
3073
+ }
3074
+ /**
3075
+ * Returns the template for the formatted phone number.
3076
+ * @return {string}
3077
+ */
3078
+ }, {
3079
+ key: "getTemplate",
3080
+ value: function() {
3081
+ return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || "";
3082
+ }
3083
+ }]);
3084
+ })();
3085
+ function tt() {
3086
+ return dt(_r, arguments);
3087
+ }
3088
+ function W(e) {
3089
+ return bt.call(this, e, rt);
3090
+ }
3091
+ W.prototype = Object.create(bt.prototype, {});
3092
+ W.prototype.constructor = W;
3093
+ function Jd() {
3094
+ return dt(Q, arguments);
3095
+ }
3096
+ const Qd = {
3097
+ MX: { emoji: "🇲🇽", name: "Mexico" },
3098
+ US: { emoji: "🇺🇸", name: "United States" },
3099
+ CA: { emoji: "🇨🇦", name: "Canada" },
3100
+ GB: { emoji: "🇬🇧", name: "United Kingdom" },
3101
+ DE: { emoji: "🇩🇪", name: "Germany" },
3102
+ FR: { emoji: "🇫🇷", name: "France" },
3103
+ ES: { emoji: "🇪🇸", name: "Spain" },
3104
+ IT: { emoji: "🇮🇹", name: "Italy" },
3105
+ BR: { emoji: "🇧🇷", name: "Brazil" },
3106
+ AR: { emoji: "🇦🇷", name: "Argentina" },
3107
+ CO: { emoji: "🇨🇴", name: "Colombia" },
3108
+ CL: { emoji: "🇨🇱", name: "Chile" },
3109
+ PE: { emoji: "🇵🇪", name: "Peru" },
3110
+ AU: { emoji: "🇦🇺", name: "Australia" },
3111
+ NZ: { emoji: "🇳🇿", name: "New Zealand" },
3112
+ JP: { emoji: "🇯🇵", name: "Japan" },
3113
+ KR: { emoji: "🇰🇷", name: "South Korea" },
3114
+ CN: { emoji: "🇨🇳", name: "China" },
3115
+ IN: { emoji: "🇮🇳", name: "India" },
3116
+ RU: { emoji: "🇷🇺", name: "Russia" },
3117
+ ZA: { emoji: "🇿🇦", name: "South Africa" },
3118
+ NG: { emoji: "🇳🇬", name: "Nigeria" },
3119
+ EG: { emoji: "🇪🇬", name: "Egypt" },
3120
+ AE: { emoji: "🇦🇪", name: "United Arab Emirates" },
3121
+ SA: { emoji: "🇸🇦", name: "Saudi Arabia" },
3122
+ IL: { emoji: "🇮🇱", name: "Israel" },
3123
+ TR: { emoji: "🇹🇷", name: "Turkey" },
3124
+ NL: { emoji: "🇳🇱", name: "Netherlands" },
3125
+ BE: { emoji: "🇧🇪", name: "Belgium" },
3126
+ CH: { emoji: "🇨🇭", name: "Switzerland" },
3127
+ AT: { emoji: "🇦🇹", name: "Austria" },
3128
+ SE: { emoji: "🇸🇪", name: "Sweden" },
3129
+ NO: { emoji: "🇳🇴", name: "Norway" },
3130
+ DK: { emoji: "🇩🇰", name: "Denmark" },
3131
+ FI: { emoji: "🇫🇮", name: "Finland" },
3132
+ PL: { emoji: "🇵🇱", name: "Poland" },
3133
+ PT: { emoji: "🇵🇹", name: "Portugal" },
3134
+ IE: { emoji: "🇮🇪", name: "Ireland" },
3135
+ GR: { emoji: "🇬🇷", name: "Greece" },
3136
+ CZ: { emoji: "🇨🇿", name: "Czechia" },
3137
+ HU: { emoji: "🇭🇺", name: "Hungary" },
3138
+ RO: { emoji: "🇷🇴", name: "Romania" },
3139
+ UA: { emoji: "🇺🇦", name: "Ukraine" },
3140
+ PH: { emoji: "🇵🇭", name: "Philippines" },
3141
+ ID: { emoji: "🇮🇩", name: "Indonesia" },
3142
+ MY: { emoji: "🇲🇾", name: "Malaysia" },
3143
+ SG: { emoji: "🇸🇬", name: "Singapore" },
3144
+ TH: { emoji: "🇹🇭", name: "Thailand" },
3145
+ VN: { emoji: "🇻🇳", name: "Vietnam" },
3146
+ PK: { emoji: "🇵🇰", name: "Pakistan" },
3147
+ BD: { emoji: "🇧🇩", name: "Bangladesh" },
3148
+ HK: { emoji: "🇭🇰", name: "Hong Kong" },
3149
+ TW: { emoji: "🇹🇼", name: "Taiwan" },
3150
+ VE: { emoji: "🇻🇪", name: "Venezuela" },
3151
+ EC: { emoji: "🇪🇨", name: "Ecuador" },
3152
+ GT: { emoji: "🇬🇹", name: "Guatemala" },
3153
+ CR: { emoji: "🇨🇷", name: "Costa Rica" },
3154
+ PA: { emoji: "🇵🇦", name: "Panama" },
3155
+ DO: { emoji: "🇩🇴", name: "Dominican Republic" },
3156
+ PR: { emoji: "🇵🇷", name: "Puerto Rico" },
3157
+ CU: { emoji: "🇨🇺", name: "Cuba" },
3158
+ JM: { emoji: "🇯🇲", name: "Jamaica" },
3159
+ HN: { emoji: "🇭🇳", name: "Honduras" },
3160
+ SV: { emoji: "🇸🇻", name: "El Salvador" },
3161
+ NI: { emoji: "🇳🇮", name: "Nicaragua" },
3162
+ BO: { emoji: "🇧🇴", name: "Bolivia" },
3163
+ PY: { emoji: "🇵🇾", name: "Paraguay" },
3164
+ UY: { emoji: "🇺🇾", name: "Uruguay" },
3165
+ KE: { emoji: "🇰🇪", name: "Kenya" },
3166
+ GH: { emoji: "🇬🇭", name: "Ghana" },
3167
+ MA: { emoji: "🇲🇦", name: "Morocco" },
3168
+ TN: { emoji: "🇹🇳", name: "Tunisia" },
3169
+ KW: { emoji: "🇰🇼", name: "Kuwait" },
3170
+ QA: { emoji: "🇶🇦", name: "Qatar" },
3171
+ BH: { emoji: "🇧🇭", name: "Bahrain" },
3172
+ OM: { emoji: "🇴🇲", name: "Oman" },
3173
+ JO: { emoji: "🇯🇴", name: "Jordan" },
3174
+ LB: { emoji: "🇱🇧", name: "Lebanon" },
3175
+ RS: { emoji: "🇷🇸", name: "Serbia" },
3176
+ HR: { emoji: "🇭🇷", name: "Croatia" },
3177
+ SK: { emoji: "🇸🇰", name: "Slovakia" },
3178
+ SI: { emoji: "🇸🇮", name: "Slovenia" },
3179
+ BG: { emoji: "🇧🇬", name: "Bulgaria" },
3180
+ LT: { emoji: "🇱🇹", name: "Lithuania" },
3181
+ LV: { emoji: "🇱🇻", name: "Latvia" },
3182
+ EE: { emoji: "🇪🇪", name: "Estonia" },
3183
+ IS: { emoji: "🇮🇸", name: "Iceland" },
3184
+ LU: { emoji: "🇱🇺", name: "Luxembourg" },
3185
+ MT: { emoji: "🇲🇹", name: "Malta" },
3186
+ CY: { emoji: "🇨🇾", name: "Cyprus" }
3187
+ };
3188
+ function zd(e) {
3189
+ try {
3190
+ return `+${Jd(e)}`;
3191
+ } catch {
3192
+ return "";
3193
+ }
3194
+ }
3195
+ const K = Object.entries(Qd).map(([e, t]) => ({
3196
+ code: e,
3197
+ emoji: t.emoji,
3198
+ name: t.name,
3199
+ callingCode: zd(e)
3200
+ })).filter((e) => e.callingCode !== "").sort((e, t) => e.name.localeCompare(t.name));
3201
+ function nt(e) {
3202
+ if (e)
3203
+ return K.find(
3204
+ (t) => t.code === e || t.code === e.toUpperCase()
3205
+ );
3206
+ }
3207
+ const qd = ({ class: e }) => /* @__PURE__ */ s(
3208
+ "svg",
3209
+ {
3210
+ width: "24",
3211
+ height: "24",
3212
+ viewBox: "0 0 24 24",
3213
+ fill: "none",
3214
+ xmlns: "http://www.w3.org/2000/svg",
3215
+ class: e,
3216
+ "aria-hidden": "true",
3217
+ children: /* @__PURE__ */ s(
3218
+ "path",
3219
+ {
3220
+ d: "M4.76734 9.18066C4.39163 8.77605 4.41468 8.14342 4.8191 7.76758C5.22371 7.39187 5.85635 7.41491 6.23219 7.81934L11.9998 14.0312L17.7673 7.81934L17.8406 7.74805C18.2212 7.41355 18.8011 7.41532 19.1804 7.76758C19.5849 8.14341 19.6079 8.77605 19.2322 9.18066L12.7322 16.1807C12.543 16.3842 12.2777 16.5 11.9998 16.5C11.7218 16.5 11.4565 16.3842 11.2673 16.1807L4.76734 9.18066Z",
3221
+ fill: "currentColor"
3222
+ }
3223
+ )
3224
+ }
3225
+ ), ei = ({
3226
+ countryCode: e,
3227
+ prefilledPhone: t,
3228
+ phoneError: n,
3229
+ optinEnabled: r = !1,
3230
+ disabled: d = !1,
3231
+ onPhoneChange: i,
3232
+ onOptInChange: a
3233
+ }) => {
3234
+ const [o, $] = w(
3235
+ null
3236
+ ), [u, l] = w(!1), [c, f] = w(""), [m, y] = w(!1), N = It(null);
3237
+ re(() => {
3238
+ const h = nt(e);
3239
+ $(h || K.find((p) => p.code === "US") || K[0]);
3240
+ }, [e]), re(() => {
3241
+ if (t && o) {
3242
+ const h = t.startsWith("+") ? t : `+${t}`, p = tt(h);
3243
+ if (p?.isValid()) {
3244
+ if (p.country && p.country !== o.code) {
3245
+ const T = nt(p.country);
3246
+ T && $(T);
3247
+ }
3248
+ const ne = new W(p.country).input(p.nationalNumber);
3249
+ f(ne), i(h, !0);
3250
+ }
3251
+ }
3252
+ }, [t, o]), re(() => {
3253
+ const h = (p) => {
3254
+ N.current && !N.current.contains(p.target) && l(!1);
3255
+ };
3256
+ return u && document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
3257
+ }, [u]);
3258
+ const b = (h, p) => {
3259
+ const C = `${p.callingCode}${h.replace(/\D/g, "")}`;
3260
+ try {
3261
+ const T = tt(
3262
+ C,
3263
+ p.code
3264
+ )?.isValid() ?? !1;
3265
+ i(C, T);
3266
+ } catch {
3267
+ i(C, !1);
3268
+ }
3269
+ }, ee = (h) => {
3270
+ const C = h.target.value;
3271
+ if (o) {
3272
+ const T = new W(o.code).input(C);
3273
+ f(T), b(C, o);
3274
+ } else
3275
+ f(C);
3276
+ }, te = (h) => {
3277
+ $(h), l(!1), c && b(c, h);
3278
+ }, Nt = (h) => {
3279
+ const C = h.target.checked;
3280
+ y(C), a?.(C);
3281
+ };
3282
+ return /* @__PURE__ */ s("div", { class: "IncodePhoneInput", children: /* @__PURE__ */ s("div", { class: "IncodePhoneInputContainer", children: [
3283
+ /* @__PURE__ */ s("div", { class: "IncodePhoneInputRow", children: [
3284
+ /* @__PURE__ */ s(
3285
+ "div",
3286
+ {
3287
+ class: `IncodePhoneCountrySelector ${u ? "IncodePhoneCountrySelectorOpen" : ""} ${d ? "IncodePhoneCountrySelectorDisabled" : ""}`,
3288
+ ref: N,
3289
+ children: [
3290
+ /* @__PURE__ */ s(
3291
+ "button",
3292
+ {
3293
+ type: "button",
3294
+ class: "IncodePhoneCountryButton",
3295
+ onClick: () => {
3296
+ d || l(!u);
3297
+ },
3298
+ disabled: d,
3299
+ "aria-expanded": u,
3300
+ "aria-haspopup": "listbox",
3301
+ "data-testid": "phone-country-selector",
3302
+ children: [
3303
+ /* @__PURE__ */ s("span", { class: "IncodePhoneCountryFlag", "aria-hidden": "true", children: o?.emoji }),
3304
+ /* @__PURE__ */ s("span", { class: "IncodePhoneCountryCode", children: o?.callingCode }),
3305
+ /* @__PURE__ */ s(
3306
+ qd,
3307
+ {
3308
+ class: `IncodePhoneCountryArrow ${u ? "IncodePhoneCountryArrowUp" : ""}`
3309
+ }
3310
+ )
3311
+ ]
3312
+ }
3313
+ ),
3314
+ u && /* @__PURE__ */ s("div", { class: "IncodePhoneCountryDropdown", children: K.map((h) => /* @__PURE__ */ s(
3315
+ "button",
3316
+ {
3317
+ type: "button",
3318
+ class: `IncodePhoneCountryOption ${o?.code === h.code ? "IncodePhoneCountryOptionSelected" : ""}`,
3319
+ onClick: () => te(h),
3320
+ children: [
3321
+ /* @__PURE__ */ s("span", { class: "IncodePhoneCountryFlag", "aria-hidden": "true", children: h.emoji }),
3322
+ /* @__PURE__ */ s("span", { class: "IncodePhoneCountryOptionCode", children: h.callingCode }),
3323
+ /* @__PURE__ */ s("span", { class: "IncodePhoneCountryOptionName", children: h.name })
3324
+ ]
3325
+ },
3326
+ h.code
3327
+ )) })
3328
+ ]
3329
+ }
3330
+ ),
3331
+ /* @__PURE__ */ s(
3332
+ "div",
3333
+ {
3334
+ class: `IncodePhoneInputWrapper ${n ? "IncodePhoneInputWrapperError" : ""} ${d ? "IncodePhoneInputWrapperDisabled" : ""}`,
3335
+ children: /* @__PURE__ */ s(
3336
+ "input",
3337
+ {
3338
+ type: "tel",
3339
+ value: c,
3340
+ onInput: ee,
3341
+ placeholder: "(123) 456-7890",
3342
+ disabled: d,
3343
+ class: "IncodePhoneInputField",
3344
+ "data-testid": "phone-input"
3345
+ }
3346
+ )
3347
+ }
3348
+ )
3349
+ ] }),
3350
+ n && /* @__PURE__ */ s(Ce, { children: [
3351
+ /* @__PURE__ */ s($e, { size: 8 }),
3352
+ /* @__PURE__ */ s("p", { class: "IncodePhoneInputError", "data-testid": "phone-error", children: n })
3353
+ ] }),
3354
+ r && /* @__PURE__ */ s(Ce, { children: [
3355
+ /* @__PURE__ */ s($e, { size: 16 }),
3356
+ /* @__PURE__ */ s("label", { class: "IncodePhoneInputOptIn", children: [
3357
+ /* @__PURE__ */ s(
3358
+ "input",
3359
+ {
3360
+ type: "checkbox",
3361
+ checked: m,
3362
+ onChange: Nt,
3363
+ "data-testid": "phone-optin"
3364
+ }
3365
+ ),
3366
+ /* @__PURE__ */ s("span", { children: "I agree to receive SMS notifications" })
3367
+ ] })
3368
+ ] })
3369
+ ] }) });
3370
+ }, ti = ({ config: e, onFinish: t, onError: n }) => {
3371
+ const [r, d] = Ct(() => {
3372
+ if (!e)
3373
+ throw new Error("Phone config is required");
3374
+ return St({ config: e });
3375
+ }), [i, a] = w(!1);
3376
+ if (r.status === "idle" || r.status === "loadingPrefill" || r.status === "inputting" || r.status === "submitting" || r.status === "sendingOtp") {
3377
+ const $ = r.status === "idle" || r.status === "loadingPrefill" || r.status === "submitting" || r.status === "sendingOtp", u = r.status === "inputting" ? r.countryCode : "US", l = r.status === "inputting" ? r.phonePrefix : "+1", c = r.status === "inputting" ? r.prefilledPhone : void 0, f = r.status === "inputting" ? r.phoneError : void 0;
3378
+ return /* @__PURE__ */ s(
3379
+ Pe,
3380
+ {
3381
+ className: "IncodePhonePage",
3382
+ title: "Verify Phone",
3383
+ subtitle: e.otpVerification ? "We will send you a verification code" : void 0,
3384
+ children: [
3385
+ /* @__PURE__ */ s(
3386
+ ei,
3387
+ {
3388
+ countryCode: u,
3389
+ phonePrefix: l,
3390
+ prefilledPhone: c,
3391
+ phoneError: f,
3392
+ optinEnabled: e.optinEnabled,
3393
+ disabled: $,
3394
+ onPhoneChange: (m, y) => {
3395
+ d.setPhoneNumber(m, y), a(y);
3396
+ },
3397
+ onOptInChange: (m) => d.setOptInGranted(m)
3398
+ }
3399
+ ),
3400
+ /* @__PURE__ */ s($e, {}),
3401
+ /* @__PURE__ */ s(
3402
+ Pt,
3403
+ {
3404
+ onClick: () => d.submit(),
3405
+ disabled: !i,
3406
+ isLoading: $,
3407
+ "data-testid": "phone-submit",
3408
+ children: "Continue"
3409
+ }
3410
+ )
3411
+ ]
3412
+ }
3413
+ );
3414
+ }
3415
+ if (r.status === "awaitingOtp" || r.status === "verifyingOtp" || r.status === "otpError") {
3416
+ const $ = r.status === "verifyingOtp";
3417
+ return /* @__PURE__ */ s(
3418
+ Pe,
3419
+ {
3420
+ className: "IncodePhonePage IncodePhoneOtpPage",
3421
+ title: "Enter Verification Code",
3422
+ children: /* @__PURE__ */ s(
3423
+ Tt,
3424
+ {
3425
+ resendTimer: r.status === "awaitingOtp" ? r.resendTimer : 0,
3426
+ canResend: r.status === "awaitingOtp" ? r.canResend : !1,
3427
+ error: r.status === "otpError" ? r.error : void 0,
3428
+ onSubmit: (u) => d.submitOtp(u),
3429
+ onResend: () => d.resendOtp(),
3430
+ onBack: () => d.back(),
3431
+ isLoading: $
3432
+ }
3433
+ )
3434
+ }
3435
+ );
3436
+ }
3437
+ return r.status === "success" ? (t?.(), null) : (r.status === "error" && n?.(r.error), null);
3438
+ }, ni = ({ config: e, onFinish: t, onError: n }) => /* @__PURE__ */ s(xt, { children: e ? /* @__PURE__ */ s(ti, { config: e, onFinish: t, onError: n }) : null });
3439
+ Et(ni, "incode-phone");
3440
+ export {
3441
+ ni as Phone
3442
+ };