@voxie/contacts.js 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -37
- package/dist/browser.d.ts +16 -0
- package/dist/config.d.ts +20 -0
- package/dist/contacts.js +39 -3462
- package/dist/index.d.ts +42 -0
- package/dist/index.js +3559 -0
- package/dist/pop-up.d.ts +23 -0
- package/package.json +15 -14
- package/dist/index.css +0 -1
package/dist/contacts.js
CHANGED
|
@@ -1,3343 +1,30 @@
|
|
|
1
|
-
const te = { 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, [["(?:(?:2(?:(?:[0-26-9]\\d|3[0-8]|5[0135-9])\\d|4(?:[02-9]\\d|10))|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90))|7(?:[013-57-9]\\d|2[0-8])\\d)\\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)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[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}", [9]], ["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-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|[24-689])\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-689]"]], ["(\\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", "[17]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-68]|7[246]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|7"]]]], 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-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-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-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-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]|31)"], "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-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\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|83)|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]|8[124-6])\\d|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,10}|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", ["3"]]], 0, 0, 0, 0, 0, 0, [["0669[0-79]\\d{1,6}|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[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}", [6, 7, 8, 9, 10, 11]], ["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|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", ["7"], "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|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[269]|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(?:2[2-46-9]|3[3-9]|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(?: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])|(?:4[067]|5[03])\\d)\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-8]|5[0-5]|8[0-7]))\\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]|6\\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", ["6"], "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]|68|[78]\\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", "[267]\\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", ["[267]"]], ["(\\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{8}", [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", ["[0-57-9]"]]], 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)|5056(?:[0-35-9]\\d|4[0-68]))\\d{4}|(?:2742|305[3-9]|(?:472|983)[2-47-9]|505[2-57-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[0135-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-47-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-29])|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}|(?:[49]\\d|80)\\d{5}", [6, 7, 8, 9, 10, 11, 12, 13], [["(\\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}"]]] } };
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
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;
|
|
16
|
-
}
|
|
17
|
-
var xe = {}.constructor;
|
|
18
|
-
function N(e) {
|
|
19
|
-
return e != null && e.constructor === xe;
|
|
20
|
-
}
|
|
21
|
-
function S(e) {
|
|
22
|
-
"@babel/helpers - typeof";
|
|
23
|
-
return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
24
|
-
return typeof t;
|
|
25
|
-
} : function(t) {
|
|
26
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
27
|
-
}, S(e);
|
|
28
|
-
}
|
|
29
|
-
function Z(e, t) {
|
|
30
|
-
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
31
|
-
}
|
|
32
|
-
function Ce(e, t) {
|
|
33
|
-
for (var r = 0; r < t.length; r++) {
|
|
34
|
-
var n = t[r];
|
|
35
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Ne(n.key), n);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
function J(e, t, r) {
|
|
39
|
-
return t && Ce(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
40
|
-
}
|
|
41
|
-
function Ne(e) {
|
|
42
|
-
var t = Pe(e, "string");
|
|
43
|
-
return S(t) == "symbol" ? t : t + "";
|
|
44
|
-
}
|
|
45
|
-
function Pe(e, t) {
|
|
46
|
-
if (S(e) != "object" || !e) return e;
|
|
47
|
-
var r = e[Symbol.toPrimitive];
|
|
48
|
-
if (r !== void 0) {
|
|
49
|
-
var n = r.call(e, t);
|
|
50
|
-
if (S(n) != "object") return n;
|
|
51
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
52
|
-
}
|
|
53
|
-
return String(e);
|
|
54
|
-
}
|
|
55
|
-
var Se = "1.2.0", Ee = "1.7.35", xt = " ext. ", we = /^\d+$/, c = /* @__PURE__ */ (function() {
|
|
56
|
-
function e(t) {
|
|
57
|
-
Z(this, e), re(t), this.metadata = t, ne.call(this, t);
|
|
58
|
-
}
|
|
59
|
-
return J(e, [{
|
|
60
|
-
key: "getCountries",
|
|
61
|
-
value: function() {
|
|
62
|
-
return Object.keys(this.metadata.countries).filter(function(r) {
|
|
63
|
-
return r !== "001";
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}, {
|
|
67
|
-
key: "getCountryMetadata",
|
|
68
|
-
value: function(r) {
|
|
69
|
-
return this.metadata.countries[r];
|
|
70
|
-
}
|
|
71
|
-
}, {
|
|
72
|
-
key: "nonGeographic",
|
|
73
|
-
value: function() {
|
|
74
|
-
if (!(this.v1 || this.v2 || this.v3))
|
|
75
|
-
return this.metadata.nonGeographic || this.metadata.nonGeographical;
|
|
76
|
-
}
|
|
77
|
-
}, {
|
|
78
|
-
key: "hasCountry",
|
|
79
|
-
value: function(r) {
|
|
80
|
-
return this.getCountryMetadata(r) !== void 0;
|
|
81
|
-
}
|
|
82
|
-
}, {
|
|
83
|
-
key: "hasCallingCode",
|
|
84
|
-
value: function(r) {
|
|
85
|
-
if (this.getCountryCodesForCallingCode(r))
|
|
86
|
-
return !0;
|
|
87
|
-
if (this.nonGeographic()) {
|
|
88
|
-
if (this.nonGeographic()[r])
|
|
89
|
-
return !0;
|
|
90
|
-
} else {
|
|
91
|
-
var n = this.countryCallingCodes()[r];
|
|
92
|
-
if (n && n.length === 1 && n[0] === "001")
|
|
93
|
-
return !0;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}, {
|
|
97
|
-
key: "isNonGeographicCallingCode",
|
|
98
|
-
value: function(r) {
|
|
99
|
-
return this.nonGeographic() ? !!this.nonGeographic()[r] : !this.getCountryCodesForCallingCode(r);
|
|
100
|
-
}
|
|
101
|
-
// Deprecated.
|
|
102
|
-
}, {
|
|
103
|
-
key: "country",
|
|
104
|
-
value: function(r) {
|
|
105
|
-
return this.selectNumberingPlan(r);
|
|
106
|
-
}
|
|
107
|
-
}, {
|
|
108
|
-
key: "selectNumberingPlan",
|
|
109
|
-
value: function(r, n) {
|
|
110
|
-
if (r && we.test(r) && (n = r, r = null), r && r !== "001") {
|
|
111
|
-
if (!this.hasCountry(r))
|
|
112
|
-
throw new Error("Unknown country: ".concat(r));
|
|
113
|
-
this.numberingPlan = new Ct(this.getCountryMetadata(r), this);
|
|
114
|
-
} else if (n) {
|
|
115
|
-
if (!this.hasCallingCode(n))
|
|
116
|
-
throw new Error("Unknown calling code: ".concat(n));
|
|
117
|
-
this.numberingPlan = new Ct(this.getNumberingPlanMetadata(n), this);
|
|
118
|
-
} else
|
|
119
|
-
this.numberingPlan = void 0;
|
|
120
|
-
return this;
|
|
121
|
-
}
|
|
122
|
-
}, {
|
|
123
|
-
key: "getCountryCodesForCallingCode",
|
|
124
|
-
value: function(r) {
|
|
125
|
-
var n = this.countryCallingCodes()[r];
|
|
126
|
-
if (n)
|
|
127
|
-
return n.length === 1 && n[0].length === 3 ? void 0 : n;
|
|
128
|
-
}
|
|
129
|
-
}, {
|
|
130
|
-
key: "getCountryCodeForCallingCode",
|
|
131
|
-
value: function(r) {
|
|
132
|
-
var n = this.getCountryCodesForCallingCode(r);
|
|
133
|
-
if (n)
|
|
134
|
-
return n[0];
|
|
135
|
-
}
|
|
136
|
-
}, {
|
|
137
|
-
key: "getNumberingPlanMetadata",
|
|
138
|
-
value: function(r) {
|
|
139
|
-
var n = this.getCountryCodeForCallingCode(r);
|
|
140
|
-
if (n)
|
|
141
|
-
return this.getCountryMetadata(n);
|
|
142
|
-
if (this.nonGeographic()) {
|
|
143
|
-
var d = this.nonGeographic()[r];
|
|
144
|
-
if (d)
|
|
145
|
-
return d;
|
|
146
|
-
} else {
|
|
147
|
-
var i = this.countryCallingCodes()[r];
|
|
148
|
-
if (i && i.length === 1 && i[0] === "001")
|
|
149
|
-
return this.metadata.countries["001"];
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
// Deprecated.
|
|
153
|
-
}, {
|
|
154
|
-
key: "countryCallingCode",
|
|
155
|
-
value: function() {
|
|
156
|
-
return this.numberingPlan.callingCode();
|
|
157
|
-
}
|
|
158
|
-
// Deprecated.
|
|
159
|
-
}, {
|
|
160
|
-
key: "IDDPrefix",
|
|
161
|
-
value: function() {
|
|
162
|
-
return this.numberingPlan.IDDPrefix();
|
|
163
|
-
}
|
|
164
|
-
// Deprecated.
|
|
165
|
-
}, {
|
|
166
|
-
key: "defaultIDDPrefix",
|
|
167
|
-
value: function() {
|
|
168
|
-
return this.numberingPlan.defaultIDDPrefix();
|
|
169
|
-
}
|
|
170
|
-
// Deprecated.
|
|
171
|
-
}, {
|
|
172
|
-
key: "nationalNumberPattern",
|
|
173
|
-
value: function() {
|
|
174
|
-
return this.numberingPlan.nationalNumberPattern();
|
|
175
|
-
}
|
|
176
|
-
// Deprecated.
|
|
177
|
-
}, {
|
|
178
|
-
key: "possibleLengths",
|
|
179
|
-
value: function() {
|
|
180
|
-
return this.numberingPlan.possibleLengths();
|
|
181
|
-
}
|
|
182
|
-
// Deprecated.
|
|
183
|
-
}, {
|
|
184
|
-
key: "formats",
|
|
185
|
-
value: function() {
|
|
186
|
-
return this.numberingPlan.formats();
|
|
187
|
-
}
|
|
188
|
-
// Deprecated.
|
|
189
|
-
}, {
|
|
190
|
-
key: "nationalPrefixForParsing",
|
|
191
|
-
value: function() {
|
|
192
|
-
return this.numberingPlan.nationalPrefixForParsing();
|
|
193
|
-
}
|
|
194
|
-
// Deprecated.
|
|
195
|
-
}, {
|
|
196
|
-
key: "nationalPrefixTransformRule",
|
|
197
|
-
value: function() {
|
|
198
|
-
return this.numberingPlan.nationalPrefixTransformRule();
|
|
199
|
-
}
|
|
200
|
-
// Deprecated.
|
|
201
|
-
}, {
|
|
202
|
-
key: "leadingDigits",
|
|
203
|
-
value: function() {
|
|
204
|
-
return this.numberingPlan.leadingDigits();
|
|
205
|
-
}
|
|
206
|
-
// Deprecated.
|
|
207
|
-
}, {
|
|
208
|
-
key: "hasTypes",
|
|
209
|
-
value: function() {
|
|
210
|
-
return this.numberingPlan.hasTypes();
|
|
211
|
-
}
|
|
212
|
-
// Deprecated.
|
|
213
|
-
}, {
|
|
214
|
-
key: "type",
|
|
215
|
-
value: function(r) {
|
|
216
|
-
return this.numberingPlan.type(r);
|
|
217
|
-
}
|
|
218
|
-
// Deprecated.
|
|
219
|
-
}, {
|
|
220
|
-
key: "ext",
|
|
221
|
-
value: function() {
|
|
222
|
-
return this.numberingPlan.ext();
|
|
223
|
-
}
|
|
224
|
-
}, {
|
|
225
|
-
key: "countryCallingCodes",
|
|
226
|
-
value: function() {
|
|
227
|
-
return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
|
|
228
|
-
}
|
|
229
|
-
// Deprecated.
|
|
230
|
-
}, {
|
|
231
|
-
key: "chooseCountryByCountryCallingCode",
|
|
232
|
-
value: function(r) {
|
|
233
|
-
return this.selectNumberingPlan(r);
|
|
234
|
-
}
|
|
235
|
-
}, {
|
|
236
|
-
key: "hasSelectedNumberingPlan",
|
|
237
|
-
value: function() {
|
|
238
|
-
return this.numberingPlan !== void 0;
|
|
239
|
-
}
|
|
240
|
-
}]);
|
|
241
|
-
})(), Ct = /* @__PURE__ */ (function() {
|
|
242
|
-
function e(t, r) {
|
|
243
|
-
Z(this, e), this.globalMetadataObject = r, this.metadata = t, ne.call(this, r.metadata);
|
|
244
|
-
}
|
|
245
|
-
return J(e, [{
|
|
246
|
-
key: "callingCode",
|
|
247
|
-
value: function() {
|
|
248
|
-
return this.metadata[0];
|
|
249
|
-
}
|
|
250
|
-
// Formatting information for regions which share
|
|
251
|
-
// a country calling code is contained by only one region
|
|
252
|
-
// for performance reasons. For example, for NANPA region
|
|
253
|
-
// ("North American Numbering Plan Administration",
|
|
254
|
-
// which includes USA, Canada, Cayman Islands, Bahamas, etc)
|
|
255
|
-
// it will be contained in the metadata for `US`.
|
|
256
|
-
}, {
|
|
257
|
-
key: "getDefaultCountryMetadataForRegion",
|
|
258
|
-
value: function() {
|
|
259
|
-
return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
|
|
260
|
-
}
|
|
261
|
-
// Is always present.
|
|
262
|
-
}, {
|
|
263
|
-
key: "IDDPrefix",
|
|
264
|
-
value: function() {
|
|
265
|
-
if (!(this.v1 || this.v2))
|
|
266
|
-
return this.metadata[1];
|
|
267
|
-
}
|
|
268
|
-
// Is only present when a country supports multiple IDD prefixes.
|
|
269
|
-
}, {
|
|
270
|
-
key: "defaultIDDPrefix",
|
|
271
|
-
value: function() {
|
|
272
|
-
if (!(this.v1 || this.v2))
|
|
273
|
-
return this.metadata[12];
|
|
274
|
-
}
|
|
275
|
-
}, {
|
|
276
|
-
key: "nationalNumberPattern",
|
|
277
|
-
value: function() {
|
|
278
|
-
return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
|
|
279
|
-
}
|
|
280
|
-
// "possible length" data is always present in Google's metadata.
|
|
281
|
-
}, {
|
|
282
|
-
key: "possibleLengths",
|
|
283
|
-
value: function() {
|
|
284
|
-
if (!this.v1)
|
|
285
|
-
return this.metadata[this.v2 ? 2 : 3];
|
|
286
|
-
}
|
|
287
|
-
}, {
|
|
288
|
-
key: "_getFormats",
|
|
289
|
-
value: function(r) {
|
|
290
|
-
return r[this.v1 ? 2 : this.v2 ? 3 : 4];
|
|
291
|
-
}
|
|
292
|
-
// For countries of the same region (e.g. NANPA)
|
|
293
|
-
// formats are all stored in the "main" country for that region.
|
|
294
|
-
// E.g. "RU" and "KZ", "US" and "CA".
|
|
295
|
-
}, {
|
|
296
|
-
key: "formats",
|
|
297
|
-
value: function() {
|
|
298
|
-
var r = this, n = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
|
|
299
|
-
return n.map(function(d) {
|
|
300
|
-
return new _e(d, r);
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
}, {
|
|
304
|
-
key: "nationalPrefix",
|
|
305
|
-
value: function() {
|
|
306
|
-
return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
|
|
307
|
-
}
|
|
308
|
-
}, {
|
|
309
|
-
key: "_getNationalPrefixFormattingRule",
|
|
310
|
-
value: function(r) {
|
|
311
|
-
return r[this.v1 ? 4 : this.v2 ? 5 : 6];
|
|
312
|
-
}
|
|
313
|
-
// For countries of the same region (e.g. NANPA)
|
|
314
|
-
// national prefix formatting rule is stored in the "main" country for that region.
|
|
315
|
-
// E.g. "RU" and "KZ", "US" and "CA".
|
|
316
|
-
}, {
|
|
317
|
-
key: "nationalPrefixFormattingRule",
|
|
318
|
-
value: function() {
|
|
319
|
-
return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
|
|
320
|
-
}
|
|
321
|
-
}, {
|
|
322
|
-
key: "_nationalPrefixForParsing",
|
|
323
|
-
value: function() {
|
|
324
|
-
return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
|
|
325
|
-
}
|
|
326
|
-
}, {
|
|
327
|
-
key: "nationalPrefixForParsing",
|
|
328
|
-
value: function() {
|
|
329
|
-
return this._nationalPrefixForParsing() || this.nationalPrefix();
|
|
330
|
-
}
|
|
331
|
-
}, {
|
|
332
|
-
key: "nationalPrefixTransformRule",
|
|
333
|
-
value: function() {
|
|
334
|
-
return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
|
|
335
|
-
}
|
|
336
|
-
}, {
|
|
337
|
-
key: "_getNationalPrefixIsOptionalWhenFormatting",
|
|
338
|
-
value: function() {
|
|
339
|
-
return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
|
|
340
|
-
}
|
|
341
|
-
// For countries of the same region (e.g. NANPA)
|
|
342
|
-
// "national prefix is optional when formatting" flag is
|
|
343
|
-
// stored in the "main" country for that region.
|
|
344
|
-
// E.g. "RU" and "KZ", "US" and "CA".
|
|
345
|
-
}, {
|
|
346
|
-
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
|
347
|
-
value: function() {
|
|
348
|
-
return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
|
|
349
|
-
}
|
|
350
|
-
}, {
|
|
351
|
-
key: "leadingDigits",
|
|
352
|
-
value: function() {
|
|
353
|
-
return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
|
|
354
|
-
}
|
|
355
|
-
}, {
|
|
356
|
-
key: "types",
|
|
357
|
-
value: function() {
|
|
358
|
-
return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
|
|
359
|
-
}
|
|
360
|
-
}, {
|
|
361
|
-
key: "hasTypes",
|
|
362
|
-
value: function() {
|
|
363
|
-
return this.types() && this.types().length === 0 ? !1 : !!this.types();
|
|
364
|
-
}
|
|
365
|
-
}, {
|
|
366
|
-
key: "type",
|
|
367
|
-
value: function(r) {
|
|
368
|
-
if (this.hasTypes() && Nt(this.types(), r))
|
|
369
|
-
return new Te(Nt(this.types(), r), this);
|
|
370
|
-
}
|
|
371
|
-
}, {
|
|
372
|
-
key: "ext",
|
|
373
|
-
value: function() {
|
|
374
|
-
return this.v1 || this.v2 ? xt : this.metadata[13] || xt;
|
|
375
|
-
}
|
|
376
|
-
}]);
|
|
377
|
-
})(), _e = /* @__PURE__ */ (function() {
|
|
378
|
-
function e(t, r) {
|
|
379
|
-
Z(this, e), this._format = t, this.metadata = r;
|
|
380
|
-
}
|
|
381
|
-
return J(e, [{
|
|
382
|
-
key: "pattern",
|
|
383
|
-
value: function() {
|
|
384
|
-
return this._format[0];
|
|
385
|
-
}
|
|
386
|
-
}, {
|
|
387
|
-
key: "format",
|
|
388
|
-
value: function() {
|
|
389
|
-
return this._format[1];
|
|
390
|
-
}
|
|
391
|
-
}, {
|
|
392
|
-
key: "leadingDigitsPatterns",
|
|
393
|
-
value: function() {
|
|
394
|
-
return this._format[2] || [];
|
|
395
|
-
}
|
|
396
|
-
}, {
|
|
397
|
-
key: "nationalPrefixFormattingRule",
|
|
398
|
-
value: function() {
|
|
399
|
-
return this._format[3] || this.metadata.nationalPrefixFormattingRule();
|
|
400
|
-
}
|
|
401
|
-
}, {
|
|
402
|
-
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
|
403
|
-
value: function() {
|
|
404
|
-
return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
|
|
405
|
-
}
|
|
406
|
-
}, {
|
|
407
|
-
key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
|
|
408
|
-
value: function() {
|
|
409
|
-
return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
|
|
410
|
-
}
|
|
411
|
-
// Checks whether national prefix formatting rule contains national prefix.
|
|
412
|
-
}, {
|
|
413
|
-
key: "usesNationalPrefix",
|
|
414
|
-
value: function() {
|
|
415
|
-
return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
|
|
416
|
-
!Ie.test(this.nationalPrefixFormattingRule()));
|
|
417
|
-
}
|
|
418
|
-
}, {
|
|
419
|
-
key: "internationalFormat",
|
|
420
|
-
value: function() {
|
|
421
|
-
return this._format[5] || this.format();
|
|
422
|
-
}
|
|
423
|
-
}]);
|
|
424
|
-
})(), Ie = /^\(?\$1\)?$/, Te = /* @__PURE__ */ (function() {
|
|
425
|
-
function e(t, r) {
|
|
426
|
-
Z(this, e), this.type = t, this.metadata = r;
|
|
427
|
-
}
|
|
428
|
-
return J(e, [{
|
|
429
|
-
key: "pattern",
|
|
430
|
-
value: function() {
|
|
431
|
-
return this.metadata.v1 ? this.type : this.type[0];
|
|
432
|
-
}
|
|
433
|
-
}, {
|
|
434
|
-
key: "possibleLengths",
|
|
435
|
-
value: function() {
|
|
436
|
-
if (!this.metadata.v1)
|
|
437
|
-
return this.type[1] || this.metadata.possibleLengths();
|
|
438
|
-
}
|
|
439
|
-
}]);
|
|
440
|
-
})();
|
|
441
|
-
function Nt(e, t) {
|
|
442
|
-
switch (t) {
|
|
443
|
-
case "FIXED_LINE":
|
|
444
|
-
return e[0];
|
|
445
|
-
case "MOBILE":
|
|
446
|
-
return e[1];
|
|
447
|
-
case "TOLL_FREE":
|
|
448
|
-
return e[2];
|
|
449
|
-
case "PREMIUM_RATE":
|
|
450
|
-
return e[3];
|
|
451
|
-
case "PERSONAL_NUMBER":
|
|
452
|
-
return e[4];
|
|
453
|
-
case "VOICEMAIL":
|
|
454
|
-
return e[5];
|
|
455
|
-
case "UAN":
|
|
456
|
-
return e[6];
|
|
457
|
-
case "PAGER":
|
|
458
|
-
return e[7];
|
|
459
|
-
case "VOIP":
|
|
460
|
-
return e[8];
|
|
461
|
-
case "SHARED_COST":
|
|
462
|
-
return e[9];
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
function re(e) {
|
|
466
|
-
if (!e)
|
|
467
|
-
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
468
|
-
if (!N(e) || !N(e.countries))
|
|
469
|
-
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(N(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + Ae(e) + ": " + e, "."));
|
|
470
|
-
}
|
|
471
|
-
var Ae = function(t) {
|
|
472
|
-
return S(t);
|
|
473
|
-
};
|
|
474
|
-
function ft(e, t) {
|
|
475
|
-
if (t = new c(t), t.hasCountry(e))
|
|
476
|
-
return t.country(e).countryCallingCode();
|
|
477
|
-
throw new Error("Unknown country: ".concat(e));
|
|
478
|
-
}
|
|
479
|
-
function Fe(e, t) {
|
|
480
|
-
return t.countries.hasOwnProperty(e);
|
|
481
|
-
}
|
|
482
|
-
function ne(e) {
|
|
483
|
-
var t = e.version;
|
|
484
|
-
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? bt(t, Se) === -1 ? this.v2 = !0 : bt(t, Ee) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
485
|
-
}
|
|
486
|
-
function z(e, t) {
|
|
487
|
-
return Oe(e, void 0, t);
|
|
488
|
-
}
|
|
489
|
-
function Oe(e, t, r) {
|
|
490
|
-
var n = r.type(t), d = n && n.possibleLengths() || r.possibleLengths();
|
|
491
|
-
if (!d)
|
|
492
|
-
return "IS_POSSIBLE";
|
|
493
|
-
var i = e.length, a = d[0];
|
|
494
|
-
return a === i ? "IS_POSSIBLE" : a > i ? "TOO_SHORT" : d[d.length - 1] < i ? "TOO_LONG" : d.indexOf(i, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
|
495
|
-
}
|
|
496
|
-
function Re(e, t, r) {
|
|
497
|
-
if (t === void 0 && (t = {}), r = new c(r), t.v2) {
|
|
498
|
-
if (!e.countryCallingCode)
|
|
499
|
-
throw new Error("Invalid phone number object passed");
|
|
500
|
-
r.selectNumberingPlan(e.countryCallingCode);
|
|
501
|
-
} else {
|
|
502
|
-
if (!e.phone)
|
|
503
|
-
return !1;
|
|
504
|
-
if (e.country) {
|
|
505
|
-
if (!r.hasCountry(e.country))
|
|
506
|
-
throw new Error("Unknown country: ".concat(e.country));
|
|
507
|
-
r.country(e.country);
|
|
508
|
-
} else {
|
|
509
|
-
if (!e.countryCallingCode)
|
|
510
|
-
throw new Error("Invalid phone number object passed");
|
|
511
|
-
r.selectNumberingPlan(e.countryCallingCode);
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
if (r.possibleLengths())
|
|
515
|
-
return de(e.phone || e.nationalNumber, r);
|
|
516
|
-
if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode))
|
|
517
|
-
return !0;
|
|
518
|
-
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
|
519
|
-
}
|
|
520
|
-
function de(e, t) {
|
|
521
|
-
switch (z(e, t)) {
|
|
522
|
-
case "IS_POSSIBLE":
|
|
523
|
-
return !0;
|
|
524
|
-
// This library ignores "local-only" phone numbers (for simplicity).
|
|
525
|
-
// See the readme for more info on what are "local-only" phone numbers.
|
|
526
|
-
// case 'IS_POSSIBLE_LOCAL_ONLY':
|
|
527
|
-
// return !isInternational
|
|
528
|
-
default:
|
|
529
|
-
return !1;
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
function C(e, t) {
|
|
533
|
-
return e = e || "", new RegExp("^(?:" + t + ")$").test(e);
|
|
534
|
-
}
|
|
535
|
-
function ke(e, t) {
|
|
536
|
-
var r = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
537
|
-
if (r) return (r = r.call(e)).next.bind(r);
|
|
538
|
-
if (Array.isArray(e) || (r = Le(e)) || t) {
|
|
539
|
-
r && (e = r);
|
|
540
|
-
var n = 0;
|
|
541
|
-
return function() {
|
|
542
|
-
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
543
|
-
};
|
|
544
|
-
}
|
|
545
|
-
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
546
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
547
|
-
}
|
|
548
|
-
function Le(e, t) {
|
|
549
|
-
if (e) {
|
|
550
|
-
if (typeof e == "string") return Pt(e, t);
|
|
551
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
552
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Pt(e, t) : void 0;
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
function Pt(e, t) {
|
|
556
|
-
(t == null || t > e.length) && (t = e.length);
|
|
557
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
558
|
-
return n;
|
|
559
|
-
}
|
|
560
|
-
var Me = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
|
561
|
-
function ct(e, t, r) {
|
|
562
|
-
if (t = t || {}, !(!e.country && !e.countryCallingCode)) {
|
|
563
|
-
r = new c(r), r.selectNumberingPlan(e.country, e.countryCallingCode);
|
|
564
|
-
var n = t.v2 ? e.nationalNumber : e.phone;
|
|
565
|
-
if (C(n, r.nationalNumberPattern())) {
|
|
566
|
-
if (tt(n, "FIXED_LINE", r))
|
|
567
|
-
return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || tt(n, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
568
|
-
for (var d = ke(Me), i; !(i = d()).done; ) {
|
|
569
|
-
var a = i.value;
|
|
570
|
-
if (tt(n, a, r))
|
|
571
|
-
return a;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
function tt(e, t, r) {
|
|
577
|
-
return t = r.type(t), !t || !t.pattern() || t.possibleLengths() && t.possibleLengths().indexOf(e.length) < 0 ? !1 : C(e, t.pattern());
|
|
578
|
-
}
|
|
579
|
-
function De(e, t, r) {
|
|
580
|
-
if (t = t || {}, r = new c(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes())
|
|
581
|
-
return ct(e, t, r.metadata) !== void 0;
|
|
582
|
-
var n = t.v2 ? e.nationalNumber : e.phone;
|
|
583
|
-
return C(n, r.nationalNumberPattern());
|
|
584
|
-
}
|
|
585
|
-
function je(e, t, r) {
|
|
586
|
-
var n = new c(r), d = n.getCountryCodesForCallingCode(e);
|
|
587
|
-
return d ? d.filter(function(i) {
|
|
588
|
-
return Be(t, i, r);
|
|
589
|
-
}) : [];
|
|
590
|
-
}
|
|
591
|
-
function Be(e, t, r) {
|
|
592
|
-
var n = new c(r);
|
|
593
|
-
return n.selectNumberingPlan(t), n.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
|
594
|
-
}
|
|
595
|
-
var ht = 2, Ge = 17, Ue = 3, m = "0-90-9٠-٩۰-۹", He = "-‐-―−ー-", We = "//", Ve = "..", Ke = " ", Xe = "()()[]\\[\\]", Ye = "~⁓∼~", p = "".concat(He).concat(We).concat(Ve).concat(Ke).concat(Xe).concat(Ye), q = "++", Ze = new RegExp("([" + m + "])");
|
|
596
|
-
function ie(e, t, r, n) {
|
|
597
|
-
if (t) {
|
|
598
|
-
var d = new c(n);
|
|
599
|
-
d.selectNumberingPlan(t, r);
|
|
600
|
-
var i = new RegExp(d.IDDPrefix());
|
|
601
|
-
if (e.search(i) === 0) {
|
|
602
|
-
e = e.slice(e.match(i)[0].length);
|
|
603
|
-
var a = e.match(Ze);
|
|
604
|
-
if (!(a && a[1] != null && a[1].length > 0 && a[1] === "0"))
|
|
605
|
-
return e;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
function dt(e, t) {
|
|
610
|
-
if (e && t.numberingPlan.nationalPrefixForParsing()) {
|
|
611
|
-
var r = new RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), n = r.exec(e);
|
|
612
|
-
if (n) {
|
|
613
|
-
var d, i, a = n.length - 1, o = a > 0 && n[a];
|
|
614
|
-
if (t.nationalPrefixTransformRule() && o)
|
|
615
|
-
d = e.replace(r, t.nationalPrefixTransformRule()), a > 1 && (i = n[1]);
|
|
616
|
-
else {
|
|
617
|
-
var u = n[0];
|
|
618
|
-
d = e.slice(u.length), o && (i = n[1]);
|
|
619
|
-
}
|
|
620
|
-
var $;
|
|
621
|
-
if (o) {
|
|
622
|
-
var l = e.indexOf(n[1]), f = e.slice(0, l);
|
|
623
|
-
f === t.numberingPlan.nationalPrefix() && ($ = t.numberingPlan.nationalPrefix());
|
|
624
|
-
} else
|
|
625
|
-
$ = n[0];
|
|
626
|
-
return {
|
|
627
|
-
nationalNumber: d,
|
|
628
|
-
nationalPrefix: $,
|
|
629
|
-
carrierCode: i
|
|
630
|
-
};
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
return {
|
|
634
|
-
nationalNumber: e
|
|
635
|
-
};
|
|
636
|
-
}
|
|
637
|
-
function it(e, t) {
|
|
638
|
-
var r = dt(e, t), n = r.carrierCode, d = r.nationalNumber;
|
|
639
|
-
if (d !== e) {
|
|
640
|
-
if (!Je(e, d, t))
|
|
641
|
-
return {
|
|
642
|
-
nationalNumber: e
|
|
643
|
-
};
|
|
644
|
-
if (t.possibleLengths() && !ze(d, t))
|
|
645
|
-
return {
|
|
646
|
-
nationalNumber: e
|
|
647
|
-
};
|
|
648
|
-
}
|
|
649
|
-
return {
|
|
650
|
-
nationalNumber: d,
|
|
651
|
-
carrierCode: n
|
|
652
|
-
};
|
|
653
|
-
}
|
|
654
|
-
function Je(e, t, r) {
|
|
655
|
-
return !(C(e, r.nationalNumberPattern()) && !C(t, r.nationalNumberPattern()));
|
|
656
|
-
}
|
|
657
|
-
function ze(e, t) {
|
|
658
|
-
switch (z(e, t)) {
|
|
659
|
-
case "TOO_SHORT":
|
|
660
|
-
case "INVALID_LENGTH":
|
|
661
|
-
return !1;
|
|
662
|
-
default:
|
|
663
|
-
return !0;
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
function ae(e, t, r, n) {
|
|
667
|
-
var d = t ? ft(t, n) : r;
|
|
668
|
-
if (e.indexOf(d) === 0) {
|
|
669
|
-
n = new c(n), n.selectNumberingPlan(t, r);
|
|
670
|
-
var i = e.slice(d.length), a = it(i, n), o = a.nationalNumber, u = it(e, n), $ = u.nationalNumber;
|
|
671
|
-
if (!C($, n.nationalNumberPattern()) && C(o, n.nationalNumberPattern()) || z($, n) === "TOO_LONG")
|
|
672
|
-
return {
|
|
673
|
-
countryCallingCode: d,
|
|
674
|
-
number: i
|
|
675
|
-
};
|
|
676
|
-
}
|
|
677
|
-
return {
|
|
678
|
-
number: e
|
|
679
|
-
};
|
|
680
|
-
}
|
|
681
|
-
function mt(e, t, r, n) {
|
|
682
|
-
if (!e)
|
|
683
|
-
return {};
|
|
684
|
-
var d;
|
|
685
|
-
if (e[0] !== "+") {
|
|
686
|
-
var i = ie(e, t, r, n);
|
|
687
|
-
if (i && i !== e)
|
|
688
|
-
d = !0, e = "+" + i;
|
|
689
|
-
else {
|
|
690
|
-
if (t || r) {
|
|
691
|
-
var a = ae(e, t, r, n), o = a.countryCallingCode, u = a.number;
|
|
692
|
-
if (o)
|
|
693
|
-
return {
|
|
694
|
-
countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
|
|
695
|
-
countryCallingCode: o,
|
|
696
|
-
number: u
|
|
697
|
-
};
|
|
698
|
-
}
|
|
699
|
-
return {
|
|
700
|
-
// No need to set it to `UNSPECIFIED`. It can be just `undefined`.
|
|
701
|
-
// countryCallingCodeSource: 'UNSPECIFIED',
|
|
702
|
-
number: e
|
|
703
|
-
};
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
if (e[1] === "0")
|
|
707
|
-
return {};
|
|
708
|
-
n = new c(n);
|
|
709
|
-
for (var $ = 2; $ - 1 <= Ue && $ <= e.length; ) {
|
|
710
|
-
var l = e.slice(1, $);
|
|
711
|
-
if (n.hasCallingCode(l))
|
|
712
|
-
return n.selectNumberingPlan(l), {
|
|
713
|
-
countryCallingCodeSource: d ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
|
|
714
|
-
countryCallingCode: l,
|
|
715
|
-
number: e.slice($)
|
|
716
|
-
};
|
|
717
|
-
$++;
|
|
718
|
-
}
|
|
719
|
-
return {};
|
|
720
|
-
}
|
|
721
|
-
function oe(e) {
|
|
722
|
-
return e.replace(new RegExp("[".concat(p, "]+"), "g"), " ").trim();
|
|
723
|
-
}
|
|
724
|
-
var ue = /(\$\d)/;
|
|
725
|
-
function $e(e, t, r) {
|
|
726
|
-
var n = r.useInternationalFormat, d = r.withNationalPrefix;
|
|
727
|
-
r.carrierCode, r.metadata;
|
|
728
|
-
var i = e.replace(new RegExp(t.pattern()), n ? t.internationalFormat() : (
|
|
729
|
-
// This library doesn't use `domestic_carrier_code_formatting_rule`,
|
|
730
|
-
// because that one is only used when formatting phone numbers
|
|
731
|
-
// for dialing from a mobile phone, and this is not a dialing library.
|
|
732
|
-
// carrierCode && format.domesticCarrierCodeFormattingRule()
|
|
733
|
-
// // First, replace the $CC in the formatting rule with the desired carrier code.
|
|
734
|
-
// // Then, replace the $FG in the formatting rule with the first group
|
|
735
|
-
// // and the carrier code combined in the appropriate way.
|
|
736
|
-
// ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
|
|
737
|
-
// : (
|
|
738
|
-
// withNationalPrefix && format.nationalPrefixFormattingRule()
|
|
739
|
-
// ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
|
|
740
|
-
// : format.format()
|
|
741
|
-
// )
|
|
742
|
-
d && t.nationalPrefixFormattingRule() ? t.format().replace(ue, t.nationalPrefixFormattingRule()) : t.format()
|
|
743
|
-
));
|
|
744
|
-
return n ? oe(i) : i;
|
|
745
|
-
}
|
|
746
|
-
var qe = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
747
|
-
function Qe(e, t, r) {
|
|
748
|
-
var n = new c(r);
|
|
749
|
-
if (n.selectNumberingPlan(e, t), n.defaultIDDPrefix())
|
|
750
|
-
return n.defaultIDDPrefix();
|
|
751
|
-
if (qe.test(n.IDDPrefix()))
|
|
752
|
-
return n.IDDPrefix();
|
|
753
|
-
}
|
|
754
|
-
var tr = ";ext=", P = function(t) {
|
|
755
|
-
return "([".concat(m, "]{1,").concat(t, "})");
|
|
756
|
-
};
|
|
757
|
-
function le(e) {
|
|
758
|
-
var t = "20", r = "15", n = "9", d = "6", i = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", o = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", $ = "(?:[xx##~~]|int|int)", l = "[- ]+", f = "[ \\t]*", s = "(?:,{2}|;)", h = tr + P(t), g = i + u + a + P(t) + o, b = i + $ + a + P(n) + o, v = l + P(d) + "#", W = f + s + a + P(r) + o, V = f + "(?:,)+" + a + P(n) + o;
|
|
759
|
-
return h + "|" + g + "|" + b + "|" + v + "|" + W + "|" + V;
|
|
760
|
-
}
|
|
761
|
-
var er = "[" + m + "]{" + ht + "}", rr = "[" + q + "]{0,1}(?:[" + p + "]*[" + m + "]){3,}[" + p + m + "]*", nr = new RegExp("^[" + q + "]{0,1}(?:[" + p + "]*[" + m + "]){1,2}$", "i"), dr = rr + // Phone number extensions
|
|
762
|
-
"(?:" + le() + ")?", ir = new RegExp(
|
|
763
|
-
// Either a short two-digit-only phone number
|
|
764
|
-
"^" + er + "$|^" + dr + "$",
|
|
765
|
-
"i"
|
|
766
|
-
);
|
|
767
|
-
function ar(e) {
|
|
768
|
-
return e.length >= ht && ir.test(e);
|
|
769
|
-
}
|
|
770
|
-
function or(e) {
|
|
771
|
-
return nr.test(e);
|
|
772
|
-
}
|
|
773
|
-
function ur(e) {
|
|
774
|
-
var t = e.number, r = e.ext;
|
|
775
|
-
if (!t)
|
|
776
|
-
return "";
|
|
777
|
-
if (t[0] !== "+")
|
|
778
|
-
throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
|
|
779
|
-
return "tel:".concat(t).concat(r ? ";ext=" + r : "");
|
|
780
|
-
}
|
|
781
|
-
function T(e) {
|
|
782
|
-
"@babel/helpers - typeof";
|
|
783
|
-
return T = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
784
|
-
return typeof t;
|
|
785
|
-
} : function(t) {
|
|
786
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
787
|
-
}, T(e);
|
|
788
|
-
}
|
|
789
|
-
function $r(e, t) {
|
|
790
|
-
var r = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
791
|
-
if (r) return (r = r.call(e)).next.bind(r);
|
|
792
|
-
if (Array.isArray(e) || (r = lr(e)) || t) {
|
|
793
|
-
r && (e = r);
|
|
794
|
-
var n = 0;
|
|
795
|
-
return function() {
|
|
796
|
-
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
797
|
-
};
|
|
798
|
-
}
|
|
799
|
-
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
800
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
801
|
-
}
|
|
802
|
-
function lr(e, t) {
|
|
803
|
-
if (e) {
|
|
804
|
-
if (typeof e == "string") return St(e, t);
|
|
805
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
806
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? St(e, t) : void 0;
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
function St(e, t) {
|
|
810
|
-
(t == null || t > e.length) && (t = e.length);
|
|
811
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
812
|
-
return n;
|
|
813
|
-
}
|
|
814
|
-
function Et(e, t) {
|
|
815
|
-
var r = Object.keys(e);
|
|
816
|
-
if (Object.getOwnPropertySymbols) {
|
|
817
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
818
|
-
t && (n = n.filter(function(d) {
|
|
819
|
-
return Object.getOwnPropertyDescriptor(e, d).enumerable;
|
|
820
|
-
})), r.push.apply(r, n);
|
|
821
|
-
}
|
|
822
|
-
return r;
|
|
823
|
-
}
|
|
824
|
-
function wt(e) {
|
|
825
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
826
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
827
|
-
t % 2 ? Et(Object(r), !0).forEach(function(n) {
|
|
828
|
-
sr(e, n, r[n]);
|
|
829
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Et(Object(r)).forEach(function(n) {
|
|
830
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
return e;
|
|
834
|
-
}
|
|
835
|
-
function sr(e, t, r) {
|
|
836
|
-
return (t = fr(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
837
|
-
}
|
|
838
|
-
function fr(e) {
|
|
839
|
-
var t = cr(e, "string");
|
|
840
|
-
return T(t) == "symbol" ? t : t + "";
|
|
841
|
-
}
|
|
842
|
-
function cr(e, t) {
|
|
843
|
-
if (T(e) != "object" || !e) return e;
|
|
844
|
-
var r = e[Symbol.toPrimitive];
|
|
845
|
-
if (r !== void 0) {
|
|
846
|
-
var n = r.call(e, t);
|
|
847
|
-
if (T(n) != "object") return n;
|
|
848
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
849
|
-
}
|
|
850
|
-
return (t === "string" ? String : Number)(e);
|
|
851
|
-
}
|
|
852
|
-
var _t = {
|
|
853
|
-
formatExtension: function(t, r, n) {
|
|
854
|
-
return "".concat(t).concat(n.ext()).concat(r);
|
|
855
|
-
}
|
|
856
|
-
};
|
|
857
|
-
function hr(e, t, r, n) {
|
|
858
|
-
if (r ? r = wt(wt({}, _t), r) : r = _t, n = new c(n), e.country && e.country !== "001") {
|
|
859
|
-
if (!n.hasCountry(e.country))
|
|
860
|
-
throw new Error("Unknown country: ".concat(e.country));
|
|
861
|
-
n.country(e.country);
|
|
862
|
-
} else if (e.countryCallingCode)
|
|
863
|
-
n.selectNumberingPlan(e.countryCallingCode);
|
|
864
|
-
else return e.phone || "";
|
|
865
|
-
var d = n.countryCallingCode(), i = r.v2 ? e.nationalNumber : e.phone, a;
|
|
866
|
-
switch (t) {
|
|
867
|
-
case "NATIONAL":
|
|
868
|
-
return i ? (a = X(i, e.carrierCode, "NATIONAL", n, r), et(a, e.ext, n, r.formatExtension)) : "";
|
|
869
|
-
case "INTERNATIONAL":
|
|
870
|
-
return i ? (a = X(i, null, "INTERNATIONAL", n, r), a = "+".concat(d, " ").concat(a), et(a, e.ext, n, r.formatExtension)) : "+".concat(d);
|
|
871
|
-
case "E.164":
|
|
872
|
-
return "+".concat(d).concat(i);
|
|
873
|
-
case "RFC3966":
|
|
874
|
-
return ur({
|
|
875
|
-
number: "+".concat(d).concat(i),
|
|
876
|
-
ext: e.ext
|
|
877
|
-
});
|
|
878
|
-
// For reference, here's Google's IDD formatter:
|
|
879
|
-
// https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
|
|
880
|
-
// Not saying that this IDD formatter replicates it 1:1, but it seems to work.
|
|
881
|
-
// Who would even need to format phone numbers in IDD format anyway?
|
|
882
|
-
case "IDD":
|
|
883
|
-
if (!r.fromCountry)
|
|
884
|
-
return;
|
|
885
|
-
var o = gr(i, e.carrierCode, d, r.fromCountry, n);
|
|
886
|
-
return et(o, e.ext, n, r.formatExtension);
|
|
887
|
-
default:
|
|
888
|
-
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
function X(e, t, r, n, d) {
|
|
892
|
-
var i = mr(n.formats(), e);
|
|
893
|
-
return i ? $e(e, i, {
|
|
894
|
-
useInternationalFormat: r === "INTERNATIONAL",
|
|
895
|
-
withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && d && d.nationalPrefix === !1),
|
|
896
|
-
carrierCode: t,
|
|
897
|
-
metadata: n
|
|
898
|
-
}) : e;
|
|
899
|
-
}
|
|
900
|
-
function mr(e, t) {
|
|
901
|
-
for (var r = $r(e), n; !(n = r()).done; ) {
|
|
902
|
-
var d = n.value;
|
|
903
|
-
if (d.leadingDigitsPatterns().length > 0) {
|
|
904
|
-
var i = d.leadingDigitsPatterns()[d.leadingDigitsPatterns().length - 1];
|
|
905
|
-
if (t.search(i) !== 0)
|
|
906
|
-
continue;
|
|
907
|
-
}
|
|
908
|
-
if (C(t, d.pattern()))
|
|
909
|
-
return d;
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
function et(e, t, r, n) {
|
|
913
|
-
return t ? n(e, t, r) : e;
|
|
914
|
-
}
|
|
915
|
-
function gr(e, t, r, n, d) {
|
|
916
|
-
var i = ft(n, d.metadata);
|
|
917
|
-
if (i === r) {
|
|
918
|
-
var a = X(e, t, "NATIONAL", d);
|
|
919
|
-
return r === "1" ? r + " " + a : a;
|
|
920
|
-
}
|
|
921
|
-
var o = Qe(n, void 0, d.metadata);
|
|
922
|
-
if (o)
|
|
923
|
-
return "".concat(o, " ").concat(r, " ").concat(X(e, null, "INTERNATIONAL", d));
|
|
924
|
-
}
|
|
925
|
-
function A(e) {
|
|
926
|
-
"@babel/helpers - typeof";
|
|
927
|
-
return A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
928
|
-
return typeof t;
|
|
929
|
-
} : function(t) {
|
|
930
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
931
|
-
}, A(e);
|
|
932
|
-
}
|
|
933
|
-
function It(e, t) {
|
|
934
|
-
var r = Object.keys(e);
|
|
935
|
-
if (Object.getOwnPropertySymbols) {
|
|
936
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
937
|
-
t && (n = n.filter(function(d) {
|
|
938
|
-
return Object.getOwnPropertyDescriptor(e, d).enumerable;
|
|
939
|
-
})), r.push.apply(r, n);
|
|
940
|
-
}
|
|
941
|
-
return r;
|
|
942
|
-
}
|
|
943
|
-
function Tt(e) {
|
|
944
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
945
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
946
|
-
t % 2 ? It(Object(r), !0).forEach(function(n) {
|
|
947
|
-
vr(e, n, r[n]);
|
|
948
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : It(Object(r)).forEach(function(n) {
|
|
949
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
950
|
-
});
|
|
951
|
-
}
|
|
952
|
-
return e;
|
|
953
|
-
}
|
|
954
|
-
function vr(e, t, r) {
|
|
955
|
-
return (t = se(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
956
|
-
}
|
|
957
|
-
function yr(e, t) {
|
|
958
|
-
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
959
|
-
}
|
|
960
|
-
function pr(e, t) {
|
|
961
|
-
for (var r = 0; r < t.length; r++) {
|
|
962
|
-
var n = t[r];
|
|
963
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, se(n.key), n);
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
function br(e, t, r) {
|
|
967
|
-
return t && pr(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
968
|
-
}
|
|
969
|
-
function se(e) {
|
|
970
|
-
var t = xr(e, "string");
|
|
971
|
-
return A(t) == "symbol" ? t : t + "";
|
|
972
|
-
}
|
|
973
|
-
function xr(e, t) {
|
|
974
|
-
if (A(e) != "object" || !e) return e;
|
|
975
|
-
var r = e[Symbol.toPrimitive];
|
|
976
|
-
if (r !== void 0) {
|
|
977
|
-
var n = r.call(e, t);
|
|
978
|
-
if (A(n) != "object") return n;
|
|
979
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
980
|
-
}
|
|
981
|
-
return String(e);
|
|
982
|
-
}
|
|
983
|
-
var fe = /* @__PURE__ */ (function() {
|
|
984
|
-
function e(t, r, n) {
|
|
985
|
-
if (yr(this, e), !t)
|
|
986
|
-
throw new TypeError("First argument is required");
|
|
987
|
-
if (typeof t != "string")
|
|
988
|
-
throw new TypeError("First argument must be a string");
|
|
989
|
-
if (t[0] === "+" && !r)
|
|
990
|
-
throw new TypeError("`metadata` argument not passed");
|
|
991
|
-
if (N(r) && N(r.countries)) {
|
|
992
|
-
n = r;
|
|
993
|
-
var d = t;
|
|
994
|
-
if (!Pr.test(d))
|
|
995
|
-
throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
|
|
996
|
-
var i = mt(d, void 0, void 0, n), a = i.countryCallingCode, o = i.number;
|
|
997
|
-
if (r = o, t = a, !r)
|
|
998
|
-
throw new Error("Invalid `number` argument passed: too short");
|
|
999
|
-
}
|
|
1000
|
-
if (!r)
|
|
1001
|
-
throw new TypeError("`nationalNumber` argument is required");
|
|
1002
|
-
if (typeof r != "string")
|
|
1003
|
-
throw new TypeError("`nationalNumber` argument must be a string");
|
|
1004
|
-
re(n);
|
|
1005
|
-
var u = Nr(t, n), $ = u.country, l = u.countryCallingCode;
|
|
1006
|
-
this.country = $, this.countryCallingCode = l, this.nationalNumber = r, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
|
|
1007
|
-
return n;
|
|
1008
|
-
};
|
|
1009
|
-
}
|
|
1010
|
-
return br(e, [{
|
|
1011
|
-
key: "setExt",
|
|
1012
|
-
value: function(r) {
|
|
1013
|
-
this.ext = r;
|
|
1014
|
-
}
|
|
1015
|
-
}, {
|
|
1016
|
-
key: "getPossibleCountries",
|
|
1017
|
-
value: function() {
|
|
1018
|
-
return this.country ? [this.country] : je(this.countryCallingCode, this.nationalNumber, this.getMetadata());
|
|
1019
|
-
}
|
|
1020
|
-
}, {
|
|
1021
|
-
key: "isPossible",
|
|
1022
|
-
value: function() {
|
|
1023
|
-
return Re(this, {
|
|
1024
|
-
v2: !0
|
|
1025
|
-
}, this.getMetadata());
|
|
1026
|
-
}
|
|
1027
|
-
}, {
|
|
1028
|
-
key: "isValid",
|
|
1029
|
-
value: function() {
|
|
1030
|
-
return De(this, {
|
|
1031
|
-
v2: !0
|
|
1032
|
-
}, this.getMetadata());
|
|
1033
|
-
}
|
|
1034
|
-
}, {
|
|
1035
|
-
key: "isNonGeographic",
|
|
1036
|
-
value: function() {
|
|
1037
|
-
var r = new c(this.getMetadata());
|
|
1038
|
-
return r.isNonGeographicCallingCode(this.countryCallingCode);
|
|
1039
|
-
}
|
|
1040
|
-
}, {
|
|
1041
|
-
key: "isEqual",
|
|
1042
|
-
value: function(r) {
|
|
1043
|
-
return this.number === r.number && this.ext === r.ext;
|
|
1044
|
-
}
|
|
1045
|
-
// This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
|
|
1046
|
-
// but later it was found out that it doesn't include the possible `TOO_SHORT` result
|
|
1047
|
-
// returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
|
|
1048
|
-
// so eventually I simply commented out this method from the `PhoneNumber` class
|
|
1049
|
-
// and just left the `validatePhoneNumberLength()` function, even though that one would require
|
|
1050
|
-
// and additional step to also validate the actual country / calling code of the phone number.
|
|
1051
|
-
// validateLength() {
|
|
1052
|
-
// const metadata = new Metadata(this.getMetadata())
|
|
1053
|
-
// metadata.selectNumberingPlan(this.countryCallingCode)
|
|
1054
|
-
// const result = checkNumberLength(this.nationalNumber, metadata)
|
|
1055
|
-
// if (result !== 'IS_POSSIBLE') {
|
|
1056
|
-
// return result
|
|
1057
|
-
// }
|
|
1058
|
-
// }
|
|
1059
|
-
}, {
|
|
1060
|
-
key: "getType",
|
|
1061
|
-
value: function() {
|
|
1062
|
-
return ct(this, {
|
|
1063
|
-
v2: !0
|
|
1064
|
-
}, this.getMetadata());
|
|
1065
|
-
}
|
|
1066
|
-
}, {
|
|
1067
|
-
key: "format",
|
|
1068
|
-
value: function(r, n) {
|
|
1069
|
-
return hr(this, r, n ? Tt(Tt({}, n), {}, {
|
|
1070
|
-
v2: !0
|
|
1071
|
-
}) : {
|
|
1072
|
-
v2: !0
|
|
1073
|
-
}, this.getMetadata());
|
|
1074
|
-
}
|
|
1075
|
-
}, {
|
|
1076
|
-
key: "formatNational",
|
|
1077
|
-
value: function(r) {
|
|
1078
|
-
return this.format("NATIONAL", r);
|
|
1079
|
-
}
|
|
1080
|
-
}, {
|
|
1081
|
-
key: "formatInternational",
|
|
1082
|
-
value: function(r) {
|
|
1083
|
-
return this.format("INTERNATIONAL", r);
|
|
1084
|
-
}
|
|
1085
|
-
}, {
|
|
1086
|
-
key: "getURI",
|
|
1087
|
-
value: function(r) {
|
|
1088
|
-
return this.format("RFC3966", r);
|
|
1089
|
-
}
|
|
1090
|
-
}]);
|
|
1091
|
-
})(), Cr = function(t) {
|
|
1092
|
-
return /^[A-Z]{2}$/.test(t);
|
|
1093
|
-
};
|
|
1094
|
-
function Nr(e, t) {
|
|
1095
|
-
var r, n, d = new c(t);
|
|
1096
|
-
return Cr(e) ? (r = e, d.selectNumberingPlan(r), n = d.countryCallingCode()) : n = e, {
|
|
1097
|
-
country: r,
|
|
1098
|
-
countryCallingCode: n
|
|
1099
|
-
};
|
|
1100
|
-
}
|
|
1101
|
-
var Pr = /^\+\d+$/;
|
|
1102
|
-
function at(e) {
|
|
1103
|
-
"@babel/helpers - typeof";
|
|
1104
|
-
return at = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1105
|
-
return typeof t;
|
|
1106
|
-
} : function(t) {
|
|
1107
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1108
|
-
}, at(e);
|
|
1109
|
-
}
|
|
1110
|
-
function Sr(e, t, r) {
|
|
1111
|
-
return Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1112
|
-
}
|
|
1113
|
-
function Er(e, t) {
|
|
1114
|
-
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
1115
|
-
}
|
|
1116
|
-
function wr(e, t, r) {
|
|
1117
|
-
return t = O(t), _r(e, gt() ? Reflect.construct(t, r || [], O(e).constructor) : t.apply(e, r));
|
|
1118
|
-
}
|
|
1119
|
-
function _r(e, t) {
|
|
1120
|
-
if (t && (at(t) == "object" || typeof t == "function")) return t;
|
|
1121
|
-
if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
1122
|
-
return Ir(e);
|
|
1123
|
-
}
|
|
1124
|
-
function Ir(e) {
|
|
1125
|
-
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1126
|
-
return e;
|
|
1127
|
-
}
|
|
1128
|
-
function Tr(e, t) {
|
|
1129
|
-
if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
|
|
1130
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && F(e, t);
|
|
1131
|
-
}
|
|
1132
|
-
function ot(e) {
|
|
1133
|
-
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
1134
|
-
return ot = function(n) {
|
|
1135
|
-
if (n === null || !Fr(n)) return n;
|
|
1136
|
-
if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
|
|
1137
|
-
if (t !== void 0) {
|
|
1138
|
-
if (t.has(n)) return t.get(n);
|
|
1139
|
-
t.set(n, d);
|
|
1140
|
-
}
|
|
1141
|
-
function d() {
|
|
1142
|
-
return Ar(n, arguments, O(this).constructor);
|
|
1143
|
-
}
|
|
1144
|
-
return d.prototype = Object.create(n.prototype, { constructor: { value: d, enumerable: !1, writable: !0, configurable: !0 } }), F(d, n);
|
|
1145
|
-
}, ot(e);
|
|
1146
|
-
}
|
|
1147
|
-
function Ar(e, t, r) {
|
|
1148
|
-
if (gt()) return Reflect.construct.apply(null, arguments);
|
|
1149
|
-
var n = [null];
|
|
1150
|
-
n.push.apply(n, t);
|
|
1151
|
-
var d = new (e.bind.apply(e, n))();
|
|
1152
|
-
return r && F(d, r.prototype), d;
|
|
1153
|
-
}
|
|
1154
|
-
function gt() {
|
|
1155
|
-
try {
|
|
1156
|
-
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
1157
|
-
}));
|
|
1158
|
-
} catch (t) {
|
|
1159
|
-
}
|
|
1160
|
-
return (gt = function() {
|
|
1161
|
-
return !!e;
|
|
1162
|
-
})();
|
|
1163
|
-
}
|
|
1164
|
-
function Fr(e) {
|
|
1165
|
-
try {
|
|
1166
|
-
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
1167
|
-
} catch (t) {
|
|
1168
|
-
return typeof e == "function";
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
function F(e, t) {
|
|
1172
|
-
return F = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
|
|
1173
|
-
return r.__proto__ = n, r;
|
|
1174
|
-
}, F(e, t);
|
|
1175
|
-
}
|
|
1176
|
-
function O(e) {
|
|
1177
|
-
return O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
|
|
1178
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
1179
|
-
}, O(e);
|
|
1180
|
-
}
|
|
1181
|
-
var x = /* @__PURE__ */ (function(e) {
|
|
1182
|
-
function t(r) {
|
|
1183
|
-
var n;
|
|
1184
|
-
return Er(this, t), n = wr(this, t, [r]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
|
|
1185
|
-
}
|
|
1186
|
-
return Tr(t, e), Sr(t);
|
|
1187
|
-
})(/* @__PURE__ */ ot(Error)), At = new RegExp("(?:" + le() + ")$", "i");
|
|
1188
|
-
function Or(e) {
|
|
1189
|
-
var t = e.search(At);
|
|
1190
|
-
if (t < 0)
|
|
1191
|
-
return {};
|
|
1192
|
-
for (var r = e.slice(0, t), n = e.match(At), d = 1; d < n.length; ) {
|
|
1193
|
-
if (n[d])
|
|
1194
|
-
return {
|
|
1195
|
-
number: r,
|
|
1196
|
-
ext: n[d]
|
|
1197
|
-
};
|
|
1198
|
-
d++;
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
function Rr(e, t) {
|
|
1202
|
-
var r = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
1203
|
-
if (r) return (r = r.call(e)).next.bind(r);
|
|
1204
|
-
if (Array.isArray(e) || (r = kr(e)) || t) {
|
|
1205
|
-
r && (e = r);
|
|
1206
|
-
var n = 0;
|
|
1207
|
-
return function() {
|
|
1208
|
-
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
1209
|
-
};
|
|
1210
|
-
}
|
|
1211
|
-
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1212
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1213
|
-
}
|
|
1214
|
-
function kr(e, t) {
|
|
1215
|
-
if (e) {
|
|
1216
|
-
if (typeof e == "string") return Ft(e, t);
|
|
1217
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
1218
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Ft(e, t) : void 0;
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
function Ft(e, t) {
|
|
1222
|
-
(t == null || t > e.length) && (t = e.length);
|
|
1223
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
1224
|
-
return n;
|
|
1225
|
-
}
|
|
1226
|
-
var Lr = {
|
|
1227
|
-
0: "0",
|
|
1228
|
-
1: "1",
|
|
1229
|
-
2: "2",
|
|
1230
|
-
3: "3",
|
|
1231
|
-
4: "4",
|
|
1232
|
-
5: "5",
|
|
1233
|
-
6: "6",
|
|
1234
|
-
7: "7",
|
|
1235
|
-
8: "8",
|
|
1236
|
-
9: "9",
|
|
1237
|
-
"0": "0",
|
|
1238
|
-
// Fullwidth digit 0
|
|
1239
|
-
"1": "1",
|
|
1240
|
-
// Fullwidth digit 1
|
|
1241
|
-
"2": "2",
|
|
1242
|
-
// Fullwidth digit 2
|
|
1243
|
-
"3": "3",
|
|
1244
|
-
// Fullwidth digit 3
|
|
1245
|
-
"4": "4",
|
|
1246
|
-
// Fullwidth digit 4
|
|
1247
|
-
"5": "5",
|
|
1248
|
-
// Fullwidth digit 5
|
|
1249
|
-
"6": "6",
|
|
1250
|
-
// Fullwidth digit 6
|
|
1251
|
-
"7": "7",
|
|
1252
|
-
// Fullwidth digit 7
|
|
1253
|
-
"8": "8",
|
|
1254
|
-
// Fullwidth digit 8
|
|
1255
|
-
"9": "9",
|
|
1256
|
-
// Fullwidth digit 9
|
|
1257
|
-
"٠": "0",
|
|
1258
|
-
// Arabic-indic digit 0
|
|
1259
|
-
"١": "1",
|
|
1260
|
-
// Arabic-indic digit 1
|
|
1261
|
-
"٢": "2",
|
|
1262
|
-
// Arabic-indic digit 2
|
|
1263
|
-
"٣": "3",
|
|
1264
|
-
// Arabic-indic digit 3
|
|
1265
|
-
"٤": "4",
|
|
1266
|
-
// Arabic-indic digit 4
|
|
1267
|
-
"٥": "5",
|
|
1268
|
-
// Arabic-indic digit 5
|
|
1269
|
-
"٦": "6",
|
|
1270
|
-
// Arabic-indic digit 6
|
|
1271
|
-
"٧": "7",
|
|
1272
|
-
// Arabic-indic digit 7
|
|
1273
|
-
"٨": "8",
|
|
1274
|
-
// Arabic-indic digit 8
|
|
1275
|
-
"٩": "9",
|
|
1276
|
-
// Arabic-indic digit 9
|
|
1277
|
-
"۰": "0",
|
|
1278
|
-
// Eastern-Arabic digit 0
|
|
1279
|
-
"۱": "1",
|
|
1280
|
-
// Eastern-Arabic digit 1
|
|
1281
|
-
"۲": "2",
|
|
1282
|
-
// Eastern-Arabic digit 2
|
|
1283
|
-
"۳": "3",
|
|
1284
|
-
// Eastern-Arabic digit 3
|
|
1285
|
-
"۴": "4",
|
|
1286
|
-
// Eastern-Arabic digit 4
|
|
1287
|
-
"۵": "5",
|
|
1288
|
-
// Eastern-Arabic digit 5
|
|
1289
|
-
"۶": "6",
|
|
1290
|
-
// Eastern-Arabic digit 6
|
|
1291
|
-
"۷": "7",
|
|
1292
|
-
// Eastern-Arabic digit 7
|
|
1293
|
-
"۸": "8",
|
|
1294
|
-
// Eastern-Arabic digit 8
|
|
1295
|
-
"۹": "9"
|
|
1296
|
-
// Eastern-Arabic digit 9
|
|
1297
|
-
};
|
|
1298
|
-
function ce(e) {
|
|
1299
|
-
return Lr[e];
|
|
1300
|
-
}
|
|
1301
|
-
function Y(e) {
|
|
1302
|
-
for (var t = "", r = Rr(e.split("")), n; !(n = r()).done; ) {
|
|
1303
|
-
var d = n.value, i = ce(d);
|
|
1304
|
-
i && (t += i);
|
|
1305
|
-
}
|
|
1306
|
-
return t;
|
|
1307
|
-
}
|
|
1308
|
-
function Mr(e, t) {
|
|
1309
|
-
var r = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
1310
|
-
if (r) return (r = r.call(e)).next.bind(r);
|
|
1311
|
-
if (Array.isArray(e) || (r = Dr(e)) || t) {
|
|
1312
|
-
r && (e = r);
|
|
1313
|
-
var n = 0;
|
|
1314
|
-
return function() {
|
|
1315
|
-
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
1316
|
-
};
|
|
1317
|
-
}
|
|
1318
|
-
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1319
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1320
|
-
}
|
|
1321
|
-
function Dr(e, t) {
|
|
1322
|
-
if (e) {
|
|
1323
|
-
if (typeof e == "string") return Ot(e, t);
|
|
1324
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
1325
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Ot(e, t) : void 0;
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
function Ot(e, t) {
|
|
1329
|
-
(t == null || t > e.length) && (t = e.length);
|
|
1330
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
1331
|
-
return n;
|
|
1332
|
-
}
|
|
1333
|
-
function Rt(e) {
|
|
1334
|
-
for (var t = "", r = Mr(e.split("")), n; !(n = r()).done; ) {
|
|
1335
|
-
var d = n.value;
|
|
1336
|
-
t += jr(d, t) || "";
|
|
1337
|
-
}
|
|
1338
|
-
return t;
|
|
1339
|
-
}
|
|
1340
|
-
function jr(e, t, r) {
|
|
1341
|
-
return e === "+" ? t ? void 0 : "+" : ce(e);
|
|
1342
|
-
}
|
|
1343
|
-
function Br(e, t) {
|
|
1344
|
-
var r = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
1345
|
-
if (r) return (r = r.call(e)).next.bind(r);
|
|
1346
|
-
if (Array.isArray(e) || (r = Gr(e)) || t) {
|
|
1347
|
-
r && (e = r);
|
|
1348
|
-
var n = 0;
|
|
1349
|
-
return function() {
|
|
1350
|
-
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
1351
|
-
};
|
|
1352
|
-
}
|
|
1353
|
-
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1354
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1355
|
-
}
|
|
1356
|
-
function Gr(e, t) {
|
|
1357
|
-
if (e) {
|
|
1358
|
-
if (typeof e == "string") return kt(e, t);
|
|
1359
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
1360
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? kt(e, t) : void 0;
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
function kt(e, t) {
|
|
1364
|
-
(t == null || t > e.length) && (t = e.length);
|
|
1365
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
1366
|
-
return n;
|
|
1367
|
-
}
|
|
1368
|
-
function he(e, t) {
|
|
1369
|
-
var r = t.countries;
|
|
1370
|
-
t.defaultCountry;
|
|
1371
|
-
var n = t.metadata;
|
|
1372
|
-
n = new c(n);
|
|
1373
|
-
for (var d = Br(r), i; !(i = d()).done; ) {
|
|
1374
|
-
var a = i.value;
|
|
1375
|
-
if (n.country(a), n.leadingDigits()) {
|
|
1376
|
-
if (e && e.search(n.leadingDigits()) === 0)
|
|
1377
|
-
return a;
|
|
1378
|
-
} else if (ct({
|
|
1379
|
-
phone: e,
|
|
1380
|
-
country: a
|
|
1381
|
-
}, void 0, n.metadata))
|
|
1382
|
-
return a;
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
function me(e, t) {
|
|
1386
|
-
var r = t.nationalNumber, n = t.defaultCountry, d = t.metadata, i = d.getCountryCodesForCallingCode(e);
|
|
1387
|
-
if (i)
|
|
1388
|
-
return i.length === 1 ? i[0] : he(r, {
|
|
1389
|
-
countries: i,
|
|
1390
|
-
defaultCountry: n,
|
|
1391
|
-
metadata: d.metadata
|
|
1392
|
-
});
|
|
1393
|
-
}
|
|
1394
|
-
var ge = "+", Ur = "[\\-\\.\\(\\)]?", Lt = "([" + m + "]|" + Ur + ")", Hr = "^\\" + ge + Lt + "*[" + m + "]" + Lt + "*$", Wr = new RegExp(Hr, "g"), ut = m, Vr = "[" + ut + "]+((\\-)*[" + ut + "])*", Kr = "a-zA-Z", Xr = "[" + Kr + "]+((\\-)*[" + ut + "])*", Yr = "^(" + Vr + "\\.)*" + Xr + "\\.?$", Zr = new RegExp(Yr, "g"), Mt = "tel:", $t = ";phone-context=", Jr = ";isub=";
|
|
1395
|
-
function zr(e) {
|
|
1396
|
-
var t = e.indexOf($t);
|
|
1397
|
-
if (t < 0)
|
|
1398
|
-
return null;
|
|
1399
|
-
var r = t + $t.length;
|
|
1400
|
-
if (r >= e.length)
|
|
1401
|
-
return "";
|
|
1402
|
-
var n = e.indexOf(";", r);
|
|
1403
|
-
return n >= 0 ? e.substring(r, n) : e.substring(r);
|
|
1404
|
-
}
|
|
1405
|
-
function qr(e) {
|
|
1406
|
-
return e === null ? !0 : e.length === 0 ? !1 : Wr.test(e) || Zr.test(e);
|
|
1407
|
-
}
|
|
1408
|
-
function Qr(e, t) {
|
|
1409
|
-
var r = t.extractFormattedPhoneNumber, n = zr(e);
|
|
1410
|
-
if (!qr(n))
|
|
1411
|
-
throw new x("NOT_A_NUMBER");
|
|
1412
|
-
var d;
|
|
1413
|
-
if (n === null)
|
|
1414
|
-
d = r(e) || "";
|
|
1415
|
-
else {
|
|
1416
|
-
d = "", n.charAt(0) === ge && (d += n);
|
|
1417
|
-
var i = e.indexOf(Mt), a;
|
|
1418
|
-
i >= 0 ? a = i + Mt.length : a = 0;
|
|
1419
|
-
var o = e.indexOf($t);
|
|
1420
|
-
d += e.substring(a, o);
|
|
1421
|
-
}
|
|
1422
|
-
var u = d.indexOf(Jr);
|
|
1423
|
-
if (u > 0 && (d = d.substring(0, u)), d !== "")
|
|
1424
|
-
return d;
|
|
1425
|
-
}
|
|
1426
|
-
var tn = 250, en = new RegExp("[" + q + m + "]"), rn = new RegExp("[^" + m + "#]+$");
|
|
1427
|
-
function nn(e, t, r) {
|
|
1428
|
-
if (t = t || {}, r = new c(r), t.defaultCountry && !r.hasCountry(t.defaultCountry))
|
|
1429
|
-
throw t.v2 ? new x("INVALID_COUNTRY") : new Error("Unknown country: ".concat(t.defaultCountry));
|
|
1430
|
-
var n = an(e, t.v2, t.extract), d = n.number, i = n.ext, a = n.error;
|
|
1431
|
-
if (!d) {
|
|
1432
|
-
if (t.v2)
|
|
1433
|
-
throw a === "TOO_SHORT" ? new x("TOO_SHORT") : new x("NOT_A_NUMBER");
|
|
1434
|
-
return {};
|
|
1435
|
-
}
|
|
1436
|
-
var o = un(d, t.defaultCountry, t.defaultCallingCode, r), u = o.country, $ = o.nationalNumber, l = o.countryCallingCode, f = o.countryCallingCodeSource, s = o.carrierCode;
|
|
1437
|
-
if (!r.hasSelectedNumberingPlan()) {
|
|
1438
|
-
if (t.v2)
|
|
1439
|
-
throw new x("INVALID_COUNTRY");
|
|
1440
|
-
return {};
|
|
1441
|
-
}
|
|
1442
|
-
if (!$ || $.length < ht) {
|
|
1443
|
-
if (t.v2)
|
|
1444
|
-
throw new x("TOO_SHORT");
|
|
1445
|
-
return {};
|
|
1446
|
-
}
|
|
1447
|
-
if ($.length > Ge) {
|
|
1448
|
-
if (t.v2)
|
|
1449
|
-
throw new x("TOO_LONG");
|
|
1450
|
-
return {};
|
|
1451
|
-
}
|
|
1452
|
-
if (t.v2) {
|
|
1453
|
-
var h = new fe(l, $, r.metadata);
|
|
1454
|
-
return u && (h.country = u), s && (h.carrierCode = s), i && (h.ext = i), h.__countryCallingCodeSource = f, h;
|
|
1455
|
-
}
|
|
1456
|
-
var g = (t.extended ? r.hasSelectedNumberingPlan() : u) ? C($, r.nationalNumberPattern()) : !1;
|
|
1457
|
-
return t.extended ? {
|
|
1458
|
-
country: u,
|
|
1459
|
-
countryCallingCode: l,
|
|
1460
|
-
carrierCode: s,
|
|
1461
|
-
valid: g,
|
|
1462
|
-
possible: g ? !0 : !!(t.extended === !0 && r.possibleLengths() && de($, r)),
|
|
1463
|
-
phone: $,
|
|
1464
|
-
ext: i
|
|
1465
|
-
} : g ? on(u, $, i) : {};
|
|
1466
|
-
}
|
|
1467
|
-
function dn(e, t, r) {
|
|
1468
|
-
if (e) {
|
|
1469
|
-
if (e.length > tn) {
|
|
1470
|
-
if (r)
|
|
1471
|
-
throw new x("TOO_LONG");
|
|
1472
|
-
return;
|
|
1473
|
-
}
|
|
1474
|
-
if (t === !1)
|
|
1475
|
-
return e;
|
|
1476
|
-
var n = e.search(en);
|
|
1477
|
-
if (!(n < 0))
|
|
1478
|
-
return e.slice(n).replace(rn, "");
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1481
|
-
function an(e, t, r) {
|
|
1482
|
-
var n = Qr(e, {
|
|
1483
|
-
extractFormattedPhoneNumber: function(a) {
|
|
1484
|
-
return dn(a, r, t);
|
|
1485
|
-
}
|
|
1486
|
-
});
|
|
1487
|
-
if (!n)
|
|
1488
|
-
return {};
|
|
1489
|
-
if (!ar(n))
|
|
1490
|
-
return or(n) ? {
|
|
1491
|
-
error: "TOO_SHORT"
|
|
1492
|
-
} : {};
|
|
1493
|
-
var d = Or(n);
|
|
1494
|
-
return d.ext ? d : {
|
|
1495
|
-
number: n
|
|
1496
|
-
};
|
|
1497
|
-
}
|
|
1498
|
-
function on(e, t, r) {
|
|
1499
|
-
var n = {
|
|
1500
|
-
country: e,
|
|
1501
|
-
phone: t
|
|
1502
|
-
};
|
|
1503
|
-
return r && (n.ext = r), n;
|
|
1504
|
-
}
|
|
1505
|
-
function un(e, t, r, n) {
|
|
1506
|
-
var d = mt(Rt(e), t, r, n.metadata), i = d.countryCallingCodeSource, a = d.countryCallingCode, o = d.number, u;
|
|
1507
|
-
if (a)
|
|
1508
|
-
n.selectNumberingPlan(a);
|
|
1509
|
-
else if (o && (t || r))
|
|
1510
|
-
n.selectNumberingPlan(t, r), t && (u = t), a = r || ft(t, n.metadata);
|
|
1511
|
-
else return {};
|
|
1512
|
-
if (!o)
|
|
1513
|
-
return {
|
|
1514
|
-
countryCallingCodeSource: i,
|
|
1515
|
-
countryCallingCode: a
|
|
1516
|
-
};
|
|
1517
|
-
var $ = it(Rt(o), n), l = $.nationalNumber, f = $.carrierCode, s = me(a, {
|
|
1518
|
-
nationalNumber: l,
|
|
1519
|
-
defaultCountry: t,
|
|
1520
|
-
metadata: n
|
|
1521
|
-
});
|
|
1522
|
-
return s && (u = s, s === "001" || n.country(u)), {
|
|
1523
|
-
country: u,
|
|
1524
|
-
countryCallingCode: a,
|
|
1525
|
-
countryCallingCodeSource: i,
|
|
1526
|
-
nationalNumber: l,
|
|
1527
|
-
carrierCode: f
|
|
1528
|
-
};
|
|
1529
|
-
}
|
|
1530
|
-
function R(e) {
|
|
1531
|
-
"@babel/helpers - typeof";
|
|
1532
|
-
return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1533
|
-
return typeof t;
|
|
1534
|
-
} : function(t) {
|
|
1535
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1536
|
-
}, R(e);
|
|
1537
|
-
}
|
|
1538
|
-
function Dt(e, t) {
|
|
1539
|
-
var r = Object.keys(e);
|
|
1540
|
-
if (Object.getOwnPropertySymbols) {
|
|
1541
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
1542
|
-
t && (n = n.filter(function(d) {
|
|
1543
|
-
return Object.getOwnPropertyDescriptor(e, d).enumerable;
|
|
1544
|
-
})), r.push.apply(r, n);
|
|
1545
|
-
}
|
|
1546
|
-
return r;
|
|
1547
|
-
}
|
|
1548
|
-
function jt(e) {
|
|
1549
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1550
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
1551
|
-
t % 2 ? Dt(Object(r), !0).forEach(function(n) {
|
|
1552
|
-
$n(e, n, r[n]);
|
|
1553
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Dt(Object(r)).forEach(function(n) {
|
|
1554
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
1555
|
-
});
|
|
1556
|
-
}
|
|
1557
|
-
return e;
|
|
1558
|
-
}
|
|
1559
|
-
function $n(e, t, r) {
|
|
1560
|
-
return (t = ln(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
1561
|
-
}
|
|
1562
|
-
function ln(e) {
|
|
1563
|
-
var t = sn(e, "string");
|
|
1564
|
-
return R(t) == "symbol" ? t : t + "";
|
|
1565
|
-
}
|
|
1566
|
-
function sn(e, t) {
|
|
1567
|
-
if (R(e) != "object" || !e) return e;
|
|
1568
|
-
var r = e[Symbol.toPrimitive];
|
|
1569
|
-
if (r !== void 0) {
|
|
1570
|
-
var n = r.call(e, t);
|
|
1571
|
-
if (R(n) != "object") return n;
|
|
1572
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1573
|
-
}
|
|
1574
|
-
return (t === "string" ? String : Number)(e);
|
|
1575
|
-
}
|
|
1576
|
-
function ve(e, t, r) {
|
|
1577
|
-
return nn(e, jt(jt({}, t), {}, {
|
|
1578
|
-
v2: !0
|
|
1579
|
-
}), r);
|
|
1580
|
-
}
|
|
1581
|
-
function k(e) {
|
|
1582
|
-
"@babel/helpers - typeof";
|
|
1583
|
-
return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1584
|
-
return typeof t;
|
|
1585
|
-
} : function(t) {
|
|
1586
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1587
|
-
}, k(e);
|
|
1588
|
-
}
|
|
1589
|
-
function Bt(e, t) {
|
|
1590
|
-
var r = Object.keys(e);
|
|
1591
|
-
if (Object.getOwnPropertySymbols) {
|
|
1592
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
1593
|
-
t && (n = n.filter(function(d) {
|
|
1594
|
-
return Object.getOwnPropertyDescriptor(e, d).enumerable;
|
|
1595
|
-
})), r.push.apply(r, n);
|
|
1596
|
-
}
|
|
1597
|
-
return r;
|
|
1598
|
-
}
|
|
1599
|
-
function fn(e) {
|
|
1600
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1601
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
1602
|
-
t % 2 ? Bt(Object(r), !0).forEach(function(n) {
|
|
1603
|
-
cn(e, n, r[n]);
|
|
1604
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Bt(Object(r)).forEach(function(n) {
|
|
1605
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
1606
|
-
});
|
|
1607
|
-
}
|
|
1608
|
-
return e;
|
|
1609
|
-
}
|
|
1610
|
-
function cn(e, t, r) {
|
|
1611
|
-
return (t = hn(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
1612
|
-
}
|
|
1613
|
-
function hn(e) {
|
|
1614
|
-
var t = mn(e, "string");
|
|
1615
|
-
return k(t) == "symbol" ? t : t + "";
|
|
1616
|
-
}
|
|
1617
|
-
function mn(e, t) {
|
|
1618
|
-
if (k(e) != "object" || !e) return e;
|
|
1619
|
-
var r = e[Symbol.toPrimitive];
|
|
1620
|
-
if (r !== void 0) {
|
|
1621
|
-
var n = r.call(e, t);
|
|
1622
|
-
if (k(n) != "object") return n;
|
|
1623
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1624
|
-
}
|
|
1625
|
-
return (t === "string" ? String : Number)(e);
|
|
1626
|
-
}
|
|
1627
|
-
function gn(e, t) {
|
|
1628
|
-
return bn(e) || pn(e, t) || yn(e, t) || vn();
|
|
1629
|
-
}
|
|
1630
|
-
function vn() {
|
|
1631
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1632
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1633
|
-
}
|
|
1634
|
-
function yn(e, t) {
|
|
1635
|
-
if (e) {
|
|
1636
|
-
if (typeof e == "string") return Gt(e, t);
|
|
1637
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
1638
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Gt(e, t) : void 0;
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
function Gt(e, t) {
|
|
1642
|
-
(t == null || t > e.length) && (t = e.length);
|
|
1643
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
1644
|
-
return n;
|
|
1645
|
-
}
|
|
1646
|
-
function pn(e, t) {
|
|
1647
|
-
var r = e == null ? null : typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
1648
|
-
if (r != null) {
|
|
1649
|
-
var n, d, i, a, o = [], u = !0, $ = !1;
|
|
1650
|
-
try {
|
|
1651
|
-
if (i = (r = r.call(e)).next, t !== 0) for (; !(u = (n = i.call(r)).done) && (o.push(n.value), o.length !== t); u = !0) ;
|
|
1652
|
-
} catch (l) {
|
|
1653
|
-
$ = !0, d = l;
|
|
1654
|
-
} finally {
|
|
1655
|
-
try {
|
|
1656
|
-
if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
|
|
1657
|
-
} finally {
|
|
1658
|
-
if ($) throw d;
|
|
1659
|
-
}
|
|
1660
|
-
}
|
|
1661
|
-
return o;
|
|
1662
|
-
}
|
|
1663
|
-
}
|
|
1664
|
-
function bn(e) {
|
|
1665
|
-
if (Array.isArray(e)) return e;
|
|
1666
|
-
}
|
|
1667
|
-
function ye(e) {
|
|
1668
|
-
var t = Array.prototype.slice.call(e), r = gn(t, 4), n = r[0], d = r[1], i = r[2], a = r[3], o, u, $;
|
|
1669
|
-
if (typeof n == "string")
|
|
1670
|
-
o = n;
|
|
1671
|
-
else throw new TypeError("A text for parsing must be a string.");
|
|
1672
|
-
if (!d || typeof d == "string")
|
|
1673
|
-
a ? (u = i, $ = a) : (u = void 0, $ = i), d && (u = fn({
|
|
1674
|
-
defaultCountry: d
|
|
1675
|
-
}, u));
|
|
1676
|
-
else if (N(d))
|
|
1677
|
-
i ? (u = d, $ = i) : $ = d;
|
|
1678
|
-
else throw new Error("Invalid second argument: ".concat(d));
|
|
1679
|
-
return {
|
|
1680
|
-
text: o,
|
|
1681
|
-
options: u,
|
|
1682
|
-
metadata: $
|
|
1683
|
-
};
|
|
1684
|
-
}
|
|
1685
|
-
function xn() {
|
|
1686
|
-
var e = ye(arguments), t = e.text, r = e.options, n = e.metadata;
|
|
1687
|
-
return ve(t, r, n);
|
|
1688
|
-
}
|
|
1689
|
-
function L(e) {
|
|
1690
|
-
"@babel/helpers - typeof";
|
|
1691
|
-
return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1692
|
-
return typeof t;
|
|
1693
|
-
} : function(t) {
|
|
1694
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1695
|
-
}, L(e);
|
|
1696
|
-
}
|
|
1697
|
-
function Ut(e, t) {
|
|
1698
|
-
var r = Object.keys(e);
|
|
1699
|
-
if (Object.getOwnPropertySymbols) {
|
|
1700
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
1701
|
-
t && (n = n.filter(function(d) {
|
|
1702
|
-
return Object.getOwnPropertyDescriptor(e, d).enumerable;
|
|
1703
|
-
})), r.push.apply(r, n);
|
|
1704
|
-
}
|
|
1705
|
-
return r;
|
|
1706
|
-
}
|
|
1707
|
-
function Ht(e) {
|
|
1708
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1709
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
1710
|
-
t % 2 ? Ut(Object(r), !0).forEach(function(n) {
|
|
1711
|
-
Cn(e, n, r[n]);
|
|
1712
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ut(Object(r)).forEach(function(n) {
|
|
1713
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
1714
|
-
});
|
|
1715
|
-
}
|
|
1716
|
-
return e;
|
|
1717
|
-
}
|
|
1718
|
-
function Cn(e, t, r) {
|
|
1719
|
-
return (t = Nn(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
1720
|
-
}
|
|
1721
|
-
function Nn(e) {
|
|
1722
|
-
var t = Pn(e, "string");
|
|
1723
|
-
return L(t) == "symbol" ? t : t + "";
|
|
1724
|
-
}
|
|
1725
|
-
function Pn(e, t) {
|
|
1726
|
-
if (L(e) != "object" || !e) return e;
|
|
1727
|
-
var r = e[Symbol.toPrimitive];
|
|
1728
|
-
if (r !== void 0) {
|
|
1729
|
-
var n = r.call(e, t);
|
|
1730
|
-
if (L(n) != "object") return n;
|
|
1731
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1732
|
-
}
|
|
1733
|
-
return (t === "string" ? String : Number)(e);
|
|
1734
|
-
}
|
|
1735
|
-
function Sn(e, t, r) {
|
|
1736
|
-
t && t.defaultCountry && !Fe(t.defaultCountry, r) && (t = Ht(Ht({}, t), {}, {
|
|
1737
|
-
defaultCountry: void 0
|
|
1738
|
-
}));
|
|
1739
|
-
try {
|
|
1740
|
-
return ve(e, t, r);
|
|
1741
|
-
} catch (n) {
|
|
1742
|
-
if (!(n instanceof x)) throw n;
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
|
-
function En() {
|
|
1746
|
-
var e = ye(arguments), t = e.text, r = e.options, n = e.metadata;
|
|
1747
|
-
return Sn(t, r, n);
|
|
1748
|
-
}
|
|
1749
|
-
function M(e) {
|
|
1750
|
-
"@babel/helpers - typeof";
|
|
1751
|
-
return M = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1752
|
-
return typeof t;
|
|
1753
|
-
} : function(t) {
|
|
1754
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1755
|
-
}, M(e);
|
|
1756
|
-
}
|
|
1757
|
-
function wn(e, t) {
|
|
1758
|
-
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
1759
|
-
}
|
|
1760
|
-
function _n(e, t) {
|
|
1761
|
-
for (var r = 0; r < t.length; r++) {
|
|
1762
|
-
var n = t[r];
|
|
1763
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Tn(n.key), n);
|
|
1764
|
-
}
|
|
1765
|
-
}
|
|
1766
|
-
function In(e, t, r) {
|
|
1767
|
-
return t && _n(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1768
|
-
}
|
|
1769
|
-
function Tn(e) {
|
|
1770
|
-
var t = An(e, "string");
|
|
1771
|
-
return M(t) == "symbol" ? t : t + "";
|
|
1772
|
-
}
|
|
1773
|
-
function An(e, t) {
|
|
1774
|
-
if (M(e) != "object" || !e) return e;
|
|
1775
|
-
var r = e[Symbol.toPrimitive];
|
|
1776
|
-
if (r !== void 0) {
|
|
1777
|
-
var n = r.call(e, t);
|
|
1778
|
-
if (M(n) != "object") return n;
|
|
1779
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1780
|
-
}
|
|
1781
|
-
return String(e);
|
|
1782
|
-
}
|
|
1783
|
-
var Fn = /* @__PURE__ */ (function() {
|
|
1784
|
-
function e(t) {
|
|
1785
|
-
var r = t.onCountryChange, n = t.onCallingCodeChange;
|
|
1786
|
-
wn(this, e), this.onCountryChange = r, this.onCallingCodeChange = n;
|
|
1787
|
-
}
|
|
1788
|
-
return In(e, [{
|
|
1789
|
-
key: "reset",
|
|
1790
|
-
value: function(r) {
|
|
1791
|
-
var n = r.country, d = r.callingCode;
|
|
1792
|
-
this.international = !1, this.missingPlus = !1, this.IDDPrefix = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(n, d);
|
|
1793
|
-
}
|
|
1794
|
-
}, {
|
|
1795
|
-
key: "resetNationalSignificantNumber",
|
|
1796
|
-
value: function() {
|
|
1797
|
-
this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberMatchesInput = !0, this.nationalPrefix = void 0, this.carrierCode = void 0, this.complexPrefixBeforeNationalSignificantNumber = void 0;
|
|
1798
|
-
}
|
|
1799
|
-
}, {
|
|
1800
|
-
key: "update",
|
|
1801
|
-
value: function(r) {
|
|
1802
|
-
for (var n = 0, d = Object.keys(r); n < d.length; n++) {
|
|
1803
|
-
var i = d[n];
|
|
1804
|
-
this[i] = r[i];
|
|
1805
|
-
}
|
|
1806
|
-
}
|
|
1807
|
-
}, {
|
|
1808
|
-
key: "initCountryAndCallingCode",
|
|
1809
|
-
value: function(r, n) {
|
|
1810
|
-
this.setCountry(r), this.setCallingCode(n);
|
|
1811
|
-
}
|
|
1812
|
-
}, {
|
|
1813
|
-
key: "setCountry",
|
|
1814
|
-
value: function(r) {
|
|
1815
|
-
this.country = r, this.onCountryChange(r);
|
|
1816
|
-
}
|
|
1817
|
-
}, {
|
|
1818
|
-
key: "setCallingCode",
|
|
1819
|
-
value: function(r) {
|
|
1820
|
-
this.callingCode = r, this.onCallingCodeChange(r, this.country);
|
|
1821
|
-
}
|
|
1822
|
-
}, {
|
|
1823
|
-
key: "startInternationalNumber",
|
|
1824
|
-
value: function(r, n) {
|
|
1825
|
-
this.international = !0, this.initCountryAndCallingCode(r, n);
|
|
1826
|
-
}
|
|
1827
|
-
}, {
|
|
1828
|
-
key: "appendDigits",
|
|
1829
|
-
value: function(r) {
|
|
1830
|
-
this.digits += r;
|
|
1831
|
-
}
|
|
1832
|
-
}, {
|
|
1833
|
-
key: "appendNationalSignificantNumberDigits",
|
|
1834
|
-
value: function(r) {
|
|
1835
|
-
this.nationalSignificantNumber += r;
|
|
1836
|
-
}
|
|
1837
|
-
/**
|
|
1838
|
-
* Returns the part of `this.digits` that corresponds to the national number.
|
|
1839
|
-
* Basically, all digits that have been input by the user, except for the
|
|
1840
|
-
* international prefix and the country calling code part
|
|
1841
|
-
* (if the number is an international one).
|
|
1842
|
-
* @return {string}
|
|
1843
|
-
*/
|
|
1844
|
-
}, {
|
|
1845
|
-
key: "getNationalDigits",
|
|
1846
|
-
value: function() {
|
|
1847
|
-
return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits;
|
|
1848
|
-
}
|
|
1849
|
-
}, {
|
|
1850
|
-
key: "getDigitsWithoutInternationalPrefix",
|
|
1851
|
-
value: function() {
|
|
1852
|
-
return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits;
|
|
1853
|
-
}
|
|
1854
|
-
}]);
|
|
1855
|
-
})();
|
|
1856
|
-
function On(e, t) {
|
|
1857
|
-
var r = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
1858
|
-
if (r) return (r = r.call(e)).next.bind(r);
|
|
1859
|
-
if (Array.isArray(e) || (r = Rn(e)) || t) {
|
|
1860
|
-
r && (e = r);
|
|
1861
|
-
var n = 0;
|
|
1862
|
-
return function() {
|
|
1863
|
-
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
1864
|
-
};
|
|
1865
|
-
}
|
|
1866
|
-
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1867
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1868
|
-
}
|
|
1869
|
-
function Rn(e, t) {
|
|
1870
|
-
if (e) {
|
|
1871
|
-
if (typeof e == "string") return Wt(e, t);
|
|
1872
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
1873
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Wt(e, t) : void 0;
|
|
1874
|
-
}
|
|
1875
|
-
}
|
|
1876
|
-
function Wt(e, t) {
|
|
1877
|
-
(t == null || t > e.length) && (t = e.length);
|
|
1878
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
1879
|
-
return n;
|
|
1880
|
-
}
|
|
1881
|
-
var y = "x", rt = new RegExp(y);
|
|
1882
|
-
function K(e, t) {
|
|
1883
|
-
if (t < 1)
|
|
1884
|
-
return "";
|
|
1885
|
-
for (var r = ""; t > 1; )
|
|
1886
|
-
t & 1 && (r += e), t >>= 1, e += e;
|
|
1887
|
-
return r + e;
|
|
1888
|
-
}
|
|
1889
|
-
function Vt(e, t) {
|
|
1890
|
-
return e[t] === ")" && t++, kn(e.slice(0, t));
|
|
1891
|
-
}
|
|
1892
|
-
function kn(e) {
|
|
1893
|
-
for (var t = [], r = 0; r < e.length; )
|
|
1894
|
-
e[r] === "(" ? t.push(r) : e[r] === ")" && t.pop(), r++;
|
|
1895
|
-
var n = 0, d = "";
|
|
1896
|
-
t.push(e.length);
|
|
1897
|
-
for (var i = 0, a = t; i < a.length; i++) {
|
|
1898
|
-
var o = a[i];
|
|
1899
|
-
d += e.slice(n, o), n = o + 1;
|
|
1900
|
-
}
|
|
1901
|
-
return d;
|
|
1902
|
-
}
|
|
1903
|
-
function Ln(e, t, r) {
|
|
1904
|
-
for (var n = On(r.split("")), d; !(d = n()).done; ) {
|
|
1905
|
-
var i = d.value;
|
|
1906
|
-
if (e.slice(t + 1).search(rt) < 0)
|
|
1907
|
-
return;
|
|
1908
|
-
t = e.search(rt), e = e.replace(rt, i);
|
|
1909
|
-
}
|
|
1910
|
-
return [e, t];
|
|
1911
|
-
}
|
|
1912
|
-
function Mn(e, t, r) {
|
|
1913
|
-
var n = r.metadata, d = r.shouldTryNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix, a = new RegExp("^(?:".concat(t.pattern(), ")$"));
|
|
1914
|
-
if (a.test(e.nationalSignificantNumber))
|
|
1915
|
-
return jn(e, t, {
|
|
1916
|
-
metadata: n,
|
|
1917
|
-
shouldTryNationalPrefixFormattingRule: d,
|
|
1918
|
-
getSeparatorAfterNationalPrefix: i
|
|
1919
|
-
});
|
|
1920
|
-
}
|
|
1921
|
-
function Dn(e, t) {
|
|
1922
|
-
return z(e, t) === "IS_POSSIBLE";
|
|
1923
|
-
}
|
|
1924
|
-
function jn(e, t, r) {
|
|
1925
|
-
var n = r.metadata, d = r.shouldTryNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix;
|
|
1926
|
-
if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, d(t)) {
|
|
1927
|
-
var a = Kt(e, t, {
|
|
1928
|
-
useNationalPrefixFormattingRule: !0,
|
|
1929
|
-
getSeparatorAfterNationalPrefix: i,
|
|
1930
|
-
metadata: n
|
|
1931
|
-
});
|
|
1932
|
-
if (a)
|
|
1933
|
-
return a;
|
|
1934
|
-
}
|
|
1935
|
-
return Kt(e, t, {
|
|
1936
|
-
useNationalPrefixFormattingRule: !1,
|
|
1937
|
-
getSeparatorAfterNationalPrefix: i,
|
|
1938
|
-
metadata: n
|
|
1939
|
-
});
|
|
1940
|
-
}
|
|
1941
|
-
function Kt(e, t, r) {
|
|
1942
|
-
var n = r.metadata, d = r.useNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix, a = $e(e.nationalSignificantNumber, t, {
|
|
1943
|
-
carrierCode: e.carrierCode,
|
|
1944
|
-
useInternationalFormat: e.international,
|
|
1945
|
-
withNationalPrefix: d,
|
|
1946
|
-
metadata: n
|
|
1947
|
-
});
|
|
1948
|
-
if (d || (e.nationalPrefix ? a = e.nationalPrefix + i(t) + a : e.complexPrefixBeforeNationalSignificantNumber && (a = e.complexPrefixBeforeNationalSignificantNumber + " " + a)), Bn(a, e))
|
|
1949
|
-
return a;
|
|
1950
|
-
}
|
|
1951
|
-
function Bn(e, t) {
|
|
1952
|
-
return Y(e) === t.getNationalDigits();
|
|
1953
|
-
}
|
|
1954
|
-
function D(e) {
|
|
1955
|
-
"@babel/helpers - typeof";
|
|
1956
|
-
return D = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1957
|
-
return typeof t;
|
|
1958
|
-
} : function(t) {
|
|
1959
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1960
|
-
}, D(e);
|
|
1961
|
-
}
|
|
1962
|
-
function Gn(e, t) {
|
|
1963
|
-
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
1964
|
-
}
|
|
1965
|
-
function Un(e, t) {
|
|
1966
|
-
for (var r = 0; r < t.length; r++) {
|
|
1967
|
-
var n = t[r];
|
|
1968
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Wn(n.key), n);
|
|
1969
|
-
}
|
|
1970
|
-
}
|
|
1971
|
-
function Hn(e, t, r) {
|
|
1972
|
-
return t && Un(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1973
|
-
}
|
|
1974
|
-
function Wn(e) {
|
|
1975
|
-
var t = Vn(e, "string");
|
|
1976
|
-
return D(t) == "symbol" ? t : t + "";
|
|
1977
|
-
}
|
|
1978
|
-
function Vn(e, t) {
|
|
1979
|
-
if (D(e) != "object" || !e) return e;
|
|
1980
|
-
var r = e[Symbol.toPrimitive];
|
|
1981
|
-
if (r !== void 0) {
|
|
1982
|
-
var n = r.call(e, t);
|
|
1983
|
-
if (D(n) != "object") return n;
|
|
1984
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1985
|
-
}
|
|
1986
|
-
return String(e);
|
|
1987
|
-
}
|
|
1988
|
-
var Kn = /* @__PURE__ */ (function() {
|
|
1989
|
-
function e() {
|
|
1990
|
-
Gn(this, e);
|
|
1991
|
-
}
|
|
1992
|
-
return Hn(e, [{
|
|
1993
|
-
key: "parse",
|
|
1994
|
-
value: function(r) {
|
|
1995
|
-
if (this.context = [{
|
|
1996
|
-
or: !0,
|
|
1997
|
-
instructions: []
|
|
1998
|
-
}], this.parsePattern(r), this.context.length !== 1)
|
|
1999
|
-
throw new Error("Non-finalized contexts left when pattern parse ended");
|
|
2000
|
-
var n = this.context[0], d = n.branches, i = n.instructions;
|
|
2001
|
-
if (d)
|
|
2002
|
-
return {
|
|
2003
|
-
op: "|",
|
|
2004
|
-
args: d.concat([nt(i)])
|
|
2005
|
-
};
|
|
2006
|
-
if (i.length === 0)
|
|
2007
|
-
throw new Error("Pattern is required");
|
|
2008
|
-
return i.length === 1 ? i[0] : i;
|
|
2009
|
-
}
|
|
2010
|
-
}, {
|
|
2011
|
-
key: "startContext",
|
|
2012
|
-
value: function(r) {
|
|
2013
|
-
this.context.push(r);
|
|
2014
|
-
}
|
|
2015
|
-
}, {
|
|
2016
|
-
key: "endContext",
|
|
2017
|
-
value: function() {
|
|
2018
|
-
this.context.pop();
|
|
2019
|
-
}
|
|
2020
|
-
}, {
|
|
2021
|
-
key: "getContext",
|
|
2022
|
-
value: function() {
|
|
2023
|
-
return this.context[this.context.length - 1];
|
|
2024
|
-
}
|
|
2025
|
-
}, {
|
|
2026
|
-
key: "parsePattern",
|
|
2027
|
-
value: function(r) {
|
|
2028
|
-
if (!r)
|
|
2029
|
-
throw new Error("Pattern is required");
|
|
2030
|
-
var n = r.match(Zn);
|
|
2031
|
-
if (!n) {
|
|
2032
|
-
if (Yn.test(r))
|
|
2033
|
-
throw new Error("Illegal characters found in a pattern: ".concat(r));
|
|
2034
|
-
this.getContext().instructions = this.getContext().instructions.concat(r.split(""));
|
|
2035
|
-
return;
|
|
2036
|
-
}
|
|
2037
|
-
var d = n[1], i = r.slice(0, n.index), a = r.slice(n.index + d.length);
|
|
2038
|
-
switch (d) {
|
|
2039
|
-
case "(?:":
|
|
2040
|
-
i && this.parsePattern(i), this.startContext({
|
|
2041
|
-
or: !0,
|
|
2042
|
-
instructions: [],
|
|
2043
|
-
branches: []
|
|
2044
|
-
});
|
|
2045
|
-
break;
|
|
2046
|
-
case ")":
|
|
2047
|
-
if (!this.getContext().or)
|
|
2048
|
-
throw new Error('")" operator must be preceded by "(?:" operator');
|
|
2049
|
-
if (i && this.parsePattern(i), this.getContext().instructions.length === 0)
|
|
2050
|
-
throw new Error('No instructions found after "|" operator in an "or" group');
|
|
2051
|
-
var o = this.getContext(), u = o.branches;
|
|
2052
|
-
u.push(nt(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
|
|
2053
|
-
op: "|",
|
|
2054
|
-
args: u
|
|
2055
|
-
});
|
|
2056
|
-
break;
|
|
2057
|
-
case "|":
|
|
2058
|
-
if (!this.getContext().or)
|
|
2059
|
-
throw new Error('"|" operator can only be used inside "or" groups');
|
|
2060
|
-
if (i && this.parsePattern(i), !this.getContext().branches)
|
|
2061
|
-
if (this.context.length === 1)
|
|
2062
|
-
this.getContext().branches = [];
|
|
2063
|
-
else
|
|
2064
|
-
throw new Error('"branches" not found in an "or" group context');
|
|
2065
|
-
this.getContext().branches.push(nt(this.getContext().instructions)), this.getContext().instructions = [];
|
|
2066
|
-
break;
|
|
2067
|
-
case "[":
|
|
2068
|
-
i && this.parsePattern(i), this.startContext({
|
|
2069
|
-
oneOfSet: !0
|
|
2070
|
-
});
|
|
2071
|
-
break;
|
|
2072
|
-
case "]":
|
|
2073
|
-
if (!this.getContext().oneOfSet)
|
|
2074
|
-
throw new Error('"]" operator must be preceded by "[" operator');
|
|
2075
|
-
this.endContext(), this.getContext().instructions.push({
|
|
2076
|
-
op: "[]",
|
|
2077
|
-
args: Xn(i)
|
|
2078
|
-
});
|
|
2079
|
-
break;
|
|
2080
|
-
/* istanbul ignore next */
|
|
2081
|
-
default:
|
|
2082
|
-
throw new Error("Unknown operator: ".concat(d));
|
|
2083
|
-
}
|
|
2084
|
-
a && this.parsePattern(a);
|
|
2085
|
-
}
|
|
2086
|
-
}]);
|
|
2087
|
-
})();
|
|
2088
|
-
function Xn(e) {
|
|
2089
|
-
for (var t = [], r = 0; r < e.length; ) {
|
|
2090
|
-
if (e[r] === "-") {
|
|
2091
|
-
if (r === 0 || r === e.length - 1)
|
|
2092
|
-
throw new Error("Couldn't parse a one-of set pattern: ".concat(e));
|
|
2093
|
-
for (var n = e[r - 1].charCodeAt(0) + 1, d = e[r + 1].charCodeAt(0) - 1, i = n; i <= d; )
|
|
2094
|
-
t.push(String.fromCharCode(i)), i++;
|
|
2095
|
-
} else
|
|
2096
|
-
t.push(e[r]);
|
|
2097
|
-
r++;
|
|
2098
|
-
}
|
|
2099
|
-
return t;
|
|
2100
|
-
}
|
|
2101
|
-
var Yn = /[\(\)\[\]\?\:\|]/, Zn = new RegExp(
|
|
2102
|
-
// any of:
|
|
2103
|
-
"(\\||\\(\\?\\:|\\)|\\[|\\])"
|
|
2104
|
-
);
|
|
2105
|
-
function nt(e) {
|
|
2106
|
-
return e.length === 1 ? e[0] : e;
|
|
2107
|
-
}
|
|
2108
|
-
function Xt(e, t) {
|
|
2109
|
-
var r = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
2110
|
-
if (r) return (r = r.call(e)).next.bind(r);
|
|
2111
|
-
if (Array.isArray(e) || (r = Jn(e)) || t) {
|
|
2112
|
-
r && (e = r);
|
|
2113
|
-
var n = 0;
|
|
2114
|
-
return function() {
|
|
2115
|
-
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
2116
|
-
};
|
|
2117
|
-
}
|
|
2118
|
-
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2119
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2120
|
-
}
|
|
2121
|
-
function Jn(e, t) {
|
|
2122
|
-
if (e) {
|
|
2123
|
-
if (typeof e == "string") return Yt(e, t);
|
|
2124
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
2125
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Yt(e, t) : void 0;
|
|
2126
|
-
}
|
|
2127
|
-
}
|
|
2128
|
-
function Yt(e, t) {
|
|
2129
|
-
(t == null || t > e.length) && (t = e.length);
|
|
2130
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
2131
|
-
return n;
|
|
2132
|
-
}
|
|
2133
|
-
function j(e) {
|
|
2134
|
-
"@babel/helpers - typeof";
|
|
2135
|
-
return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2136
|
-
return typeof t;
|
|
2137
|
-
} : function(t) {
|
|
2138
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2139
|
-
}, j(e);
|
|
2140
|
-
}
|
|
2141
|
-
function zn(e, t) {
|
|
2142
|
-
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2143
|
-
}
|
|
2144
|
-
function qn(e, t) {
|
|
2145
|
-
for (var r = 0; r < t.length; r++) {
|
|
2146
|
-
var n = t[r];
|
|
2147
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, td(n.key), n);
|
|
2148
|
-
}
|
|
2149
|
-
}
|
|
2150
|
-
function Qn(e, t, r) {
|
|
2151
|
-
return t && qn(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2152
|
-
}
|
|
2153
|
-
function td(e) {
|
|
2154
|
-
var t = ed(e, "string");
|
|
2155
|
-
return j(t) == "symbol" ? t : t + "";
|
|
2156
|
-
}
|
|
2157
|
-
function ed(e, t) {
|
|
2158
|
-
if (j(e) != "object" || !e) return e;
|
|
2159
|
-
var r = e[Symbol.toPrimitive];
|
|
2160
|
-
if (r !== void 0) {
|
|
2161
|
-
var n = r.call(e, t);
|
|
2162
|
-
if (j(n) != "object") return n;
|
|
2163
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2164
|
-
}
|
|
2165
|
-
return String(e);
|
|
2166
|
-
}
|
|
2167
|
-
var rd = /* @__PURE__ */ (function() {
|
|
2168
|
-
function e(t) {
|
|
2169
|
-
zn(this, e), this.matchTree = new Kn().parse(t);
|
|
2170
|
-
}
|
|
2171
|
-
return Qn(e, [{
|
|
2172
|
-
key: "match",
|
|
2173
|
-
value: function(r) {
|
|
2174
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, d = n.allowOverflow;
|
|
2175
|
-
if (!r)
|
|
2176
|
-
throw new Error("String is required");
|
|
2177
|
-
var i = lt(r.split(""), this.matchTree, !0);
|
|
2178
|
-
if (i && i.match && delete i.matchedChars, !(i && i.overflow && !d))
|
|
2179
|
-
return i;
|
|
2180
|
-
}
|
|
2181
|
-
}]);
|
|
2182
|
-
})();
|
|
2183
|
-
function lt(e, t, r) {
|
|
2184
|
-
if (typeof t == "string") {
|
|
2185
|
-
var n = e.join("");
|
|
2186
|
-
return t.indexOf(n) === 0 ? e.length === t.length ? {
|
|
2187
|
-
match: !0,
|
|
2188
|
-
matchedChars: e
|
|
2189
|
-
} : {
|
|
2190
|
-
partialMatch: !0
|
|
2191
|
-
// matchedChars: characters
|
|
2192
|
-
} : n.indexOf(t) === 0 ? r && e.length > t.length ? {
|
|
2193
|
-
overflow: !0
|
|
2194
|
-
} : {
|
|
2195
|
-
match: !0,
|
|
2196
|
-
matchedChars: e.slice(0, t.length)
|
|
2197
|
-
} : void 0;
|
|
2198
|
-
}
|
|
2199
|
-
if (Array.isArray(t)) {
|
|
2200
|
-
for (var d = e.slice(), i = 0; i < t.length; ) {
|
|
2201
|
-
var a = t[i], o = lt(d, a, r && i === t.length - 1);
|
|
2202
|
-
if (o) {
|
|
2203
|
-
if (o.overflow)
|
|
2204
|
-
return o;
|
|
2205
|
-
if (o.match) {
|
|
2206
|
-
if (d = d.slice(o.matchedChars.length), d.length === 0)
|
|
2207
|
-
return i === t.length - 1 ? {
|
|
2208
|
-
match: !0,
|
|
2209
|
-
matchedChars: e
|
|
2210
|
-
} : {
|
|
2211
|
-
partialMatch: !0
|
|
2212
|
-
// matchedChars: characters
|
|
2213
|
-
};
|
|
2214
|
-
} else {
|
|
2215
|
-
if (o.partialMatch)
|
|
2216
|
-
return {
|
|
2217
|
-
partialMatch: !0
|
|
2218
|
-
// matchedChars: characters
|
|
2219
|
-
};
|
|
2220
|
-
throw new Error(`Unsupported match result:
|
|
2221
|
-
`.concat(JSON.stringify(o, null, 2)));
|
|
2222
|
-
}
|
|
2223
|
-
} else return;
|
|
2224
|
-
i++;
|
|
2225
|
-
}
|
|
2226
|
-
return r ? {
|
|
2227
|
-
overflow: !0
|
|
2228
|
-
} : {
|
|
2229
|
-
match: !0,
|
|
2230
|
-
matchedChars: e.slice(0, e.length - d.length)
|
|
2231
|
-
};
|
|
2232
|
-
}
|
|
2233
|
-
switch (t.op) {
|
|
2234
|
-
case "|":
|
|
2235
|
-
for (var u, $ = Xt(t.args), l; !(l = $()).done; ) {
|
|
2236
|
-
var f = l.value, s = lt(e, f, r);
|
|
2237
|
-
if (s) {
|
|
2238
|
-
if (s.overflow)
|
|
2239
|
-
return s;
|
|
2240
|
-
if (s.match)
|
|
2241
|
-
return {
|
|
2242
|
-
match: !0,
|
|
2243
|
-
matchedChars: s.matchedChars
|
|
2244
|
-
};
|
|
2245
|
-
if (s.partialMatch)
|
|
2246
|
-
u = !0;
|
|
2247
|
-
else
|
|
2248
|
-
throw new Error(`Unsupported match result:
|
|
2249
|
-
`.concat(JSON.stringify(s, null, 2)));
|
|
2250
|
-
}
|
|
2251
|
-
}
|
|
2252
|
-
return u ? {
|
|
2253
|
-
partialMatch: !0
|
|
2254
|
-
// matchedChars: ...
|
|
2255
|
-
} : void 0;
|
|
2256
|
-
case "[]":
|
|
2257
|
-
for (var h = Xt(t.args), g; !(g = h()).done; ) {
|
|
2258
|
-
var b = g.value;
|
|
2259
|
-
if (e[0] === b)
|
|
2260
|
-
return e.length === 1 ? {
|
|
2261
|
-
match: !0,
|
|
2262
|
-
matchedChars: e
|
|
2263
|
-
} : r ? {
|
|
2264
|
-
overflow: !0
|
|
2265
|
-
} : {
|
|
2266
|
-
match: !0,
|
|
2267
|
-
matchedChars: [b]
|
|
2268
|
-
};
|
|
2269
|
-
}
|
|
2270
|
-
return;
|
|
2271
|
-
/* istanbul ignore next */
|
|
2272
|
-
default:
|
|
2273
|
-
throw new Error("Unsupported instruction tree: ".concat(t));
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
function B(e) {
|
|
2277
|
-
"@babel/helpers - typeof";
|
|
2278
|
-
return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2279
|
-
return typeof t;
|
|
2280
|
-
} : function(t) {
|
|
2281
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2282
|
-
}, B(e);
|
|
2283
|
-
}
|
|
2284
|
-
function Zt(e, t) {
|
|
2285
|
-
var r = typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
2286
|
-
if (r) return (r = r.call(e)).next.bind(r);
|
|
2287
|
-
if (Array.isArray(e) || (r = nd(e)) || t) {
|
|
2288
|
-
r && (e = r);
|
|
2289
|
-
var n = 0;
|
|
2290
|
-
return function() {
|
|
2291
|
-
return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
|
|
2292
|
-
};
|
|
2293
|
-
}
|
|
2294
|
-
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2295
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2296
|
-
}
|
|
2297
|
-
function nd(e, t) {
|
|
2298
|
-
if (e) {
|
|
2299
|
-
if (typeof e == "string") return Jt(e, t);
|
|
2300
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
2301
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Jt(e, t) : void 0;
|
|
2302
|
-
}
|
|
2303
|
-
}
|
|
2304
|
-
function Jt(e, t) {
|
|
2305
|
-
(t == null || t > e.length) && (t = e.length);
|
|
2306
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
2307
|
-
return n;
|
|
2308
|
-
}
|
|
2309
|
-
function dd(e, t) {
|
|
2310
|
-
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2311
|
-
}
|
|
2312
|
-
function id(e, t) {
|
|
2313
|
-
for (var r = 0; r < t.length; r++) {
|
|
2314
|
-
var n = t[r];
|
|
2315
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, od(n.key), n);
|
|
2316
|
-
}
|
|
2317
|
-
}
|
|
2318
|
-
function ad(e, t, r) {
|
|
2319
|
-
return t && id(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2320
|
-
}
|
|
2321
|
-
function od(e) {
|
|
2322
|
-
var t = ud(e, "string");
|
|
2323
|
-
return B(t) == "symbol" ? t : t + "";
|
|
2324
|
-
}
|
|
2325
|
-
function ud(e, t) {
|
|
2326
|
-
if (B(e) != "object" || !e) return e;
|
|
2327
|
-
var r = e[Symbol.toPrimitive];
|
|
2328
|
-
if (r !== void 0) {
|
|
2329
|
-
var n = r.call(e, t);
|
|
2330
|
-
if (B(n) != "object") return n;
|
|
2331
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2332
|
-
}
|
|
2333
|
-
return String(e);
|
|
2334
|
-
}
|
|
2335
|
-
var st = "9", $d = 15, ld = K(st, $d), sd = /[- ]/, fd = function() {
|
|
2336
|
-
return /\[([^\[\]])*\]/g;
|
|
2337
|
-
}, cd = function() {
|
|
2338
|
-
return /\d(?=[^,}][^,}])/g;
|
|
2339
|
-
}, hd = new RegExp("[" + p + "]*\\$1[" + p + "]*(\\$\\d[" + p + "]*)*$"), zt = 3, md = /* @__PURE__ */ (function() {
|
|
2340
|
-
function e(t) {
|
|
2341
|
-
t.state;
|
|
2342
|
-
var r = t.metadata;
|
|
2343
|
-
dd(this, e), this.metadata = r, this.resetFormat();
|
|
2344
|
-
}
|
|
2345
|
-
return ad(e, [{
|
|
2346
|
-
key: "resetFormat",
|
|
2347
|
-
value: function() {
|
|
2348
|
-
this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
|
|
2349
|
-
}
|
|
2350
|
-
}, {
|
|
2351
|
-
key: "reset",
|
|
2352
|
-
value: function(r, n) {
|
|
2353
|
-
this.resetFormat(), r ? (this.isNANP = r.callingCode() === "1", this.matchingFormats = r.formats(), n.nationalSignificantNumber && this.narrowDownMatchingFormats(n)) : (this.isNANP = void 0, this.matchingFormats = []);
|
|
2354
|
-
}
|
|
2355
|
-
/**
|
|
2356
|
-
* Formats an updated phone number.
|
|
2357
|
-
* @param {string} nextDigits — Additional phone number digits.
|
|
2358
|
-
* @param {object} state — `AsYouType` state.
|
|
2359
|
-
* @return {[string]} Returns undefined if the updated phone number can't be formatted using any of the available formats.
|
|
2360
|
-
*/
|
|
2361
|
-
}, {
|
|
2362
|
-
key: "format",
|
|
2363
|
-
value: function(r, n) {
|
|
2364
|
-
var d = this;
|
|
2365
|
-
if (Dn(n.nationalSignificantNumber, this.metadata))
|
|
2366
|
-
for (var i = Zt(this.matchingFormats), a; !(a = i()).done; ) {
|
|
2367
|
-
var o = a.value, u = Mn(n, o, {
|
|
2368
|
-
metadata: this.metadata,
|
|
2369
|
-
shouldTryNationalPrefixFormattingRule: function(l) {
|
|
2370
|
-
return d.shouldTryNationalPrefixFormattingRule(l, {
|
|
2371
|
-
international: n.international,
|
|
2372
|
-
nationalPrefix: n.nationalPrefix
|
|
2373
|
-
});
|
|
2374
|
-
},
|
|
2375
|
-
getSeparatorAfterNationalPrefix: function(l) {
|
|
2376
|
-
return d.getSeparatorAfterNationalPrefix(l);
|
|
2377
|
-
}
|
|
2378
|
-
});
|
|
2379
|
-
if (u)
|
|
2380
|
-
return this.resetFormat(), this.chosenFormat = o, this.setNationalNumberTemplate(u.replace(/\d/g, y), n), this.populatedNationalNumberTemplate = u, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(y), u;
|
|
2381
|
-
}
|
|
2382
|
-
return this.formatNationalNumberWithNextDigits(r, n);
|
|
2383
|
-
}
|
|
2384
|
-
// Formats the next phone number digits.
|
|
2385
|
-
}, {
|
|
2386
|
-
key: "formatNationalNumberWithNextDigits",
|
|
2387
|
-
value: function(r, n) {
|
|
2388
|
-
var d = this.chosenFormat, i = this.chooseFormat(n);
|
|
2389
|
-
if (i)
|
|
2390
|
-
return i === d ? this.formatNextNationalNumberDigits(r) : this.formatNextNationalNumberDigits(n.getNationalDigits());
|
|
2391
|
-
}
|
|
2392
|
-
}, {
|
|
2393
|
-
key: "narrowDownMatchingFormats",
|
|
2394
|
-
value: function(r) {
|
|
2395
|
-
var n = this, d = r.nationalSignificantNumber, i = r.nationalPrefix, a = r.international, o = d, u = o.length - zt;
|
|
2396
|
-
u < 0 && (u = 0), this.matchingFormats = this.matchingFormats.filter(function($) {
|
|
2397
|
-
return n.formatSuits($, a, i) && n.formatMatches($, o, u);
|
|
2398
|
-
}), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
|
|
2399
|
-
}
|
|
2400
|
-
}, {
|
|
2401
|
-
key: "formatSuits",
|
|
2402
|
-
value: function(r, n, d) {
|
|
2403
|
-
return !(d && !r.usesNationalPrefix() && // !format.domesticCarrierCodeFormattingRule() &&
|
|
2404
|
-
!r.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !n && !d && r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat());
|
|
2405
|
-
}
|
|
2406
|
-
}, {
|
|
2407
|
-
key: "formatMatches",
|
|
2408
|
-
value: function(r, n, d) {
|
|
2409
|
-
var i = r.leadingDigitsPatterns().length;
|
|
2410
|
-
if (i === 0)
|
|
2411
|
-
return !0;
|
|
2412
|
-
d = Math.min(d, i - 1);
|
|
2413
|
-
var a = r.leadingDigitsPatterns()[d];
|
|
2414
|
-
if (n.length < zt)
|
|
2415
|
-
try {
|
|
2416
|
-
return new rd(a).match(n, {
|
|
2417
|
-
allowOverflow: !0
|
|
2418
|
-
}) !== void 0;
|
|
2419
|
-
} catch (o) {
|
|
2420
|
-
return console.error(o), !0;
|
|
2421
|
-
}
|
|
2422
|
-
return new RegExp("^(".concat(a, ")")).test(n);
|
|
2423
|
-
}
|
|
2424
|
-
}, {
|
|
2425
|
-
key: "getFormatFormat",
|
|
2426
|
-
value: function(r, n) {
|
|
2427
|
-
return n ? r.internationalFormat() : r.format();
|
|
2428
|
-
}
|
|
2429
|
-
}, {
|
|
2430
|
-
key: "chooseFormat",
|
|
2431
|
-
value: function(r) {
|
|
2432
|
-
for (var n = this, d = function() {
|
|
2433
|
-
var $ = o.value;
|
|
2434
|
-
return n.chosenFormat === $ ? 0 : hd.test(n.getFormatFormat($, r.international)) ? n.createTemplateForFormat($, r) ? (n.chosenFormat = $, 0) : (n.matchingFormats = n.matchingFormats.filter(function(l) {
|
|
2435
|
-
return l !== $;
|
|
2436
|
-
}), 1) : 1;
|
|
2437
|
-
}, i, a = Zt(this.matchingFormats.slice()), o; !(o = a()).done && (i = d(), i !== 0); )
|
|
2438
|
-
;
|
|
2439
|
-
return this.chosenFormat || this.resetFormat(), this.chosenFormat;
|
|
2440
|
-
}
|
|
2441
|
-
}, {
|
|
2442
|
-
key: "createTemplateForFormat",
|
|
2443
|
-
value: function(r, n) {
|
|
2444
|
-
if (!(r.pattern().indexOf("|") >= 0)) {
|
|
2445
|
-
var d = this.getTemplateForFormat(r, n);
|
|
2446
|
-
if (d)
|
|
2447
|
-
return this.setNationalNumberTemplate(d, n), !0;
|
|
2448
|
-
}
|
|
2449
|
-
}
|
|
2450
|
-
}, {
|
|
2451
|
-
key: "getSeparatorAfterNationalPrefix",
|
|
2452
|
-
value: function(r) {
|
|
2453
|
-
return this.isNANP || r && r.nationalPrefixFormattingRule() && sd.test(r.nationalPrefixFormattingRule()) ? " " : "";
|
|
2454
|
-
}
|
|
2455
|
-
}, {
|
|
2456
|
-
key: "getInternationalPrefixBeforeCountryCallingCode",
|
|
2457
|
-
value: function(r, n) {
|
|
2458
|
-
var d = r.IDDPrefix, i = r.missingPlus;
|
|
2459
|
-
return d ? n && n.spacing === !1 ? d : d + " " : i ? "" : "+";
|
|
2460
|
-
}
|
|
2461
|
-
}, {
|
|
2462
|
-
key: "getTemplate",
|
|
2463
|
-
value: function(r) {
|
|
2464
|
-
if (this.template) {
|
|
2465
|
-
for (var n = -1, d = 0, i = r.international ? this.getInternationalPrefixBeforeCountryCallingCode(r, {
|
|
2466
|
-
spacing: !1
|
|
2467
|
-
}) : ""; d < i.length + r.getDigitsWithoutInternationalPrefix().length; )
|
|
2468
|
-
n = this.template.indexOf(y, n + 1), d++;
|
|
2469
|
-
return Vt(this.template, n + 1);
|
|
2470
|
-
}
|
|
2471
|
-
}
|
|
2472
|
-
}, {
|
|
2473
|
-
key: "setNationalNumberTemplate",
|
|
2474
|
-
value: function(r, n) {
|
|
2475
|
-
this.nationalNumberTemplate = r, this.populatedNationalNumberTemplate = r, this.populatedNationalNumberTemplatePosition = -1, n.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g, y) + K(y, n.callingCode.length) + " " + r : this.template = r;
|
|
2476
|
-
}
|
|
2477
|
-
/**
|
|
2478
|
-
* Generates formatting template for a national phone number,
|
|
2479
|
-
* optionally containing a national prefix, for a format.
|
|
2480
|
-
* @param {Format} format
|
|
2481
|
-
* @param {string} nationalPrefix
|
|
2482
|
-
* @return {string}
|
|
2483
|
-
*/
|
|
2484
|
-
}, {
|
|
2485
|
-
key: "getTemplateForFormat",
|
|
2486
|
-
value: function(r, n) {
|
|
2487
|
-
var d = n.nationalSignificantNumber, i = n.international, a = n.nationalPrefix, o = n.complexPrefixBeforeNationalSignificantNumber, u = r.pattern();
|
|
2488
|
-
u = u.replace(fd(), "\\d").replace(cd(), "\\d");
|
|
2489
|
-
var $ = ld.match(u)[0];
|
|
2490
|
-
if (!(d.length > $.length)) {
|
|
2491
|
-
var l = new RegExp("^" + u + "$"), f = d.replace(/\d/g, st);
|
|
2492
|
-
l.test(f) && ($ = f);
|
|
2493
|
-
var s = this.getFormatFormat(r, i), h;
|
|
2494
|
-
if (this.shouldTryNationalPrefixFormattingRule(r, {
|
|
2495
|
-
international: i,
|
|
2496
|
-
nationalPrefix: a
|
|
2497
|
-
})) {
|
|
2498
|
-
var g = s.replace(ue, r.nationalPrefixFormattingRule());
|
|
2499
|
-
if (Y(r.nationalPrefixFormattingRule()) === (a || "") + Y("$1") && (s = g, h = !0, a))
|
|
2500
|
-
for (var b = a.length; b > 0; )
|
|
2501
|
-
s = s.replace(/\d/, y), b--;
|
|
2502
|
-
}
|
|
2503
|
-
var v = $.replace(new RegExp(u), s).replace(new RegExp(st, "g"), y);
|
|
2504
|
-
return h || (o ? v = K(y, o.length) + " " + v : a && (v = K(y, a.length) + this.getSeparatorAfterNationalPrefix(r) + v)), i && (v = oe(v)), v;
|
|
2505
|
-
}
|
|
2506
|
-
}
|
|
2507
|
-
}, {
|
|
2508
|
-
key: "formatNextNationalNumberDigits",
|
|
2509
|
-
value: function(r) {
|
|
2510
|
-
var n = Ln(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, r);
|
|
2511
|
-
if (!n) {
|
|
2512
|
-
this.resetFormat();
|
|
2513
|
-
return;
|
|
2514
|
-
}
|
|
2515
|
-
return this.populatedNationalNumberTemplate = n[0], this.populatedNationalNumberTemplatePosition = n[1], Vt(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
|
|
2516
|
-
}
|
|
2517
|
-
}, {
|
|
2518
|
-
key: "shouldTryNationalPrefixFormattingRule",
|
|
2519
|
-
value: function(r, n) {
|
|
2520
|
-
var d = n.international, i = n.nationalPrefix;
|
|
2521
|
-
if (r.nationalPrefixFormattingRule()) {
|
|
2522
|
-
var a = r.usesNationalPrefix();
|
|
2523
|
-
if (a && i || !a && !d)
|
|
2524
|
-
return !0;
|
|
2525
|
-
}
|
|
2526
|
-
}
|
|
2527
|
-
}]);
|
|
2528
|
-
})();
|
|
2529
|
-
function G(e) {
|
|
2530
|
-
"@babel/helpers - typeof";
|
|
2531
|
-
return G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2532
|
-
return typeof t;
|
|
2533
|
-
} : function(t) {
|
|
2534
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2535
|
-
}, G(e);
|
|
2536
|
-
}
|
|
2537
|
-
function pe(e, t) {
|
|
2538
|
-
return pd(e) || yd(e, t) || vd(e, t) || gd();
|
|
2539
|
-
}
|
|
2540
|
-
function gd() {
|
|
2541
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2542
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2543
|
-
}
|
|
2544
|
-
function vd(e, t) {
|
|
2545
|
-
if (e) {
|
|
2546
|
-
if (typeof e == "string") return qt(e, t);
|
|
2547
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
2548
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? qt(e, t) : void 0;
|
|
2549
|
-
}
|
|
2550
|
-
}
|
|
2551
|
-
function qt(e, t) {
|
|
2552
|
-
(t == null || t > e.length) && (t = e.length);
|
|
2553
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
2554
|
-
return n;
|
|
2555
|
-
}
|
|
2556
|
-
function yd(e, t) {
|
|
2557
|
-
var r = e == null ? null : typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
2558
|
-
if (r != null) {
|
|
2559
|
-
var n, d, i, a, o = [], u = !0, $ = !1;
|
|
2560
|
-
try {
|
|
2561
|
-
if (i = (r = r.call(e)).next, t !== 0) for (; !(u = (n = i.call(r)).done) && (o.push(n.value), o.length !== t); u = !0) ;
|
|
2562
|
-
} catch (l) {
|
|
2563
|
-
$ = !0, d = l;
|
|
2564
|
-
} finally {
|
|
2565
|
-
try {
|
|
2566
|
-
if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
|
|
2567
|
-
} finally {
|
|
2568
|
-
if ($) throw d;
|
|
2569
|
-
}
|
|
2570
|
-
}
|
|
2571
|
-
return o;
|
|
2572
|
-
}
|
|
2573
|
-
}
|
|
2574
|
-
function pd(e) {
|
|
2575
|
-
if (Array.isArray(e)) return e;
|
|
2576
|
-
}
|
|
2577
|
-
function bd(e, t) {
|
|
2578
|
-
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2579
|
-
}
|
|
2580
|
-
function xd(e, t) {
|
|
2581
|
-
for (var r = 0; r < t.length; r++) {
|
|
2582
|
-
var n = t[r];
|
|
2583
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Nd(n.key), n);
|
|
2584
|
-
}
|
|
2585
|
-
}
|
|
2586
|
-
function Cd(e, t, r) {
|
|
2587
|
-
return t && xd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2588
|
-
}
|
|
2589
|
-
function Nd(e) {
|
|
2590
|
-
var t = Pd(e, "string");
|
|
2591
|
-
return G(t) == "symbol" ? t : t + "";
|
|
2592
|
-
}
|
|
2593
|
-
function Pd(e, t) {
|
|
2594
|
-
if (G(e) != "object" || !e) return e;
|
|
2595
|
-
var r = e[Symbol.toPrimitive];
|
|
2596
|
-
if (r !== void 0) {
|
|
2597
|
-
var n = r.call(e, t);
|
|
2598
|
-
if (G(n) != "object") return n;
|
|
2599
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2600
|
-
}
|
|
2601
|
-
return String(e);
|
|
2602
|
-
}
|
|
2603
|
-
var Sd = "[" + p + m + "]+", Ed = new RegExp("^" + Sd + "$", "i"), wd = "(?:[" + q + "][" + p + m + "]*|[" + p + m + "]+)", _d = new RegExp("[^" + p + m + "]+.*$"), Id = /[^\d\[\]]/, Td = /* @__PURE__ */ (function() {
|
|
2604
|
-
function e(t) {
|
|
2605
|
-
var r = t.defaultCountry, n = t.defaultCallingCode, d = t.metadata, i = t.onNationalSignificantNumberChange;
|
|
2606
|
-
bd(this, e), this.defaultCountry = r, this.defaultCallingCode = n, this.metadata = d, this.onNationalSignificantNumberChange = i;
|
|
2607
|
-
}
|
|
2608
|
-
return Cd(e, [{
|
|
2609
|
-
key: "input",
|
|
2610
|
-
value: function(r, n) {
|
|
2611
|
-
var d = Od(r), i = pe(d, 2), a = i[0], o = i[1], u = Y(a), $;
|
|
2612
|
-
return o && (n.digits || (n.startInternationalNumber(), u || ($ = !0))), u && this.inputDigits(u, n), {
|
|
2613
|
-
digits: u,
|
|
2614
|
-
justLeadingPlus: $
|
|
2615
|
-
};
|
|
2616
|
-
}
|
|
2617
|
-
/**
|
|
2618
|
-
* Inputs "next" phone number digits.
|
|
2619
|
-
* @param {string} digits
|
|
2620
|
-
* @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".
|
|
2621
|
-
*/
|
|
2622
|
-
}, {
|
|
2623
|
-
key: "inputDigits",
|
|
2624
|
-
value: function(r, n) {
|
|
2625
|
-
var d = n.digits, i = d.length < 3 && d.length + r.length >= 3;
|
|
2626
|
-
if (n.appendDigits(r), i && this.extractIddPrefix(n), this.isWaitingForCountryCallingCode(n)) {
|
|
2627
|
-
if (!this.extractCountryCallingCode(n))
|
|
2628
|
-
return;
|
|
2629
|
-
} else
|
|
2630
|
-
n.appendNationalSignificantNumberDigits(r);
|
|
2631
|
-
n.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(n.getNationalDigits(), function(a) {
|
|
2632
|
-
return n.update(a);
|
|
2633
|
-
});
|
|
2634
|
-
}
|
|
2635
|
-
}, {
|
|
2636
|
-
key: "isWaitingForCountryCallingCode",
|
|
2637
|
-
value: function(r) {
|
|
2638
|
-
var n = r.international, d = r.callingCode;
|
|
2639
|
-
return n && !d;
|
|
2640
|
-
}
|
|
2641
|
-
// Extracts a country calling code from a number
|
|
2642
|
-
// being entered in internatonal format.
|
|
2643
|
-
}, {
|
|
2644
|
-
key: "extractCountryCallingCode",
|
|
2645
|
-
value: function(r) {
|
|
2646
|
-
var n = mt("+" + r.getDigitsWithoutInternationalPrefix(), this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = n.countryCallingCode, i = n.number;
|
|
2647
|
-
if (d)
|
|
2648
|
-
return r.setCallingCode(d), r.update({
|
|
2649
|
-
nationalSignificantNumber: i
|
|
2650
|
-
}), !0;
|
|
2651
|
-
}
|
|
2652
|
-
}, {
|
|
2653
|
-
key: "reset",
|
|
2654
|
-
value: function(r) {
|
|
2655
|
-
if (r) {
|
|
2656
|
-
this.hasSelectedNumberingPlan = !0;
|
|
2657
|
-
var n = r._nationalPrefixForParsing();
|
|
2658
|
-
this.couldPossiblyExtractAnotherNationalSignificantNumber = n && Id.test(n);
|
|
2659
|
-
} else
|
|
2660
|
-
this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
|
|
2661
|
-
}
|
|
2662
|
-
/**
|
|
2663
|
-
* Extracts a national (significant) number from user input.
|
|
2664
|
-
* Google's library is different in that it only applies `national_prefix_for_parsing`
|
|
2665
|
-
* and doesn't apply `national_prefix_transform_rule` after that.
|
|
2666
|
-
* https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539
|
|
2667
|
-
* @return {boolean} [extracted]
|
|
2668
|
-
*/
|
|
2669
|
-
}, {
|
|
2670
|
-
key: "extractNationalSignificantNumber",
|
|
2671
|
-
value: function(r, n) {
|
|
2672
|
-
if (this.hasSelectedNumberingPlan) {
|
|
2673
|
-
var d = dt(r, this.metadata), i = d.nationalPrefix, a = d.nationalNumber, o = d.carrierCode;
|
|
2674
|
-
if (a !== r)
|
|
2675
|
-
return this.onExtractedNationalNumber(i, o, a, r, n), !0;
|
|
2676
|
-
}
|
|
2677
|
-
}
|
|
2678
|
-
/**
|
|
2679
|
-
* In Google's code this function is called "attempt to extract longer NDD".
|
|
2680
|
-
* "Some national prefixes are a substring of others", they say.
|
|
2681
|
-
* @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.
|
|
2682
|
-
*/
|
|
2683
|
-
}, {
|
|
2684
|
-
key: "extractAnotherNationalSignificantNumber",
|
|
2685
|
-
value: function(r, n, d) {
|
|
2686
|
-
if (!this.hasExtractedNationalSignificantNumber)
|
|
2687
|
-
return this.extractNationalSignificantNumber(r, d);
|
|
2688
|
-
if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
|
|
2689
|
-
var i = dt(r, this.metadata), a = i.nationalPrefix, o = i.nationalNumber, u = i.carrierCode;
|
|
2690
|
-
if (o !== n)
|
|
2691
|
-
return this.onExtractedNationalNumber(a, u, o, r, d), !0;
|
|
2692
|
-
}
|
|
2693
|
-
}
|
|
2694
|
-
}, {
|
|
2695
|
-
key: "onExtractedNationalNumber",
|
|
2696
|
-
value: function(r, n, d, i, a) {
|
|
2697
|
-
var o, u, $ = i.lastIndexOf(d);
|
|
2698
|
-
if ($ >= 0 && $ === i.length - d.length) {
|
|
2699
|
-
u = !0;
|
|
2700
|
-
var l = i.slice(0, $);
|
|
2701
|
-
l !== r && (o = l);
|
|
2702
|
-
}
|
|
2703
|
-
a({
|
|
2704
|
-
nationalPrefix: r,
|
|
2705
|
-
carrierCode: n,
|
|
2706
|
-
nationalSignificantNumber: d,
|
|
2707
|
-
nationalSignificantNumberMatchesInput: u,
|
|
2708
|
-
complexPrefixBeforeNationalSignificantNumber: o
|
|
2709
|
-
}), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
|
|
2710
|
-
}
|
|
2711
|
-
}, {
|
|
2712
|
-
key: "reExtractNationalSignificantNumber",
|
|
2713
|
-
value: function(r) {
|
|
2714
|
-
if (this.extractAnotherNationalSignificantNumber(r.getNationalDigits(), r.nationalSignificantNumber, function(n) {
|
|
2715
|
-
return r.update(n);
|
|
2716
|
-
}))
|
|
2717
|
-
return !0;
|
|
2718
|
-
if (this.extractIddPrefix(r))
|
|
2719
|
-
return this.extractCallingCodeAndNationalSignificantNumber(r), !0;
|
|
2720
|
-
if (this.fixMissingPlus(r))
|
|
2721
|
-
return this.extractCallingCodeAndNationalSignificantNumber(r), !0;
|
|
2722
|
-
}
|
|
2723
|
-
}, {
|
|
2724
|
-
key: "extractIddPrefix",
|
|
2725
|
-
value: function(r) {
|
|
2726
|
-
var n = r.international, d = r.IDDPrefix, i = r.digits;
|
|
2727
|
-
if (r.nationalSignificantNumber, !(n || d)) {
|
|
2728
|
-
var a = ie(i, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
|
|
2729
|
-
if (a !== void 0 && a !== i)
|
|
2730
|
-
return r.update({
|
|
2731
|
-
IDDPrefix: i.slice(0, i.length - a.length)
|
|
2732
|
-
}), this.startInternationalNumber(r, {
|
|
2733
|
-
country: void 0,
|
|
2734
|
-
callingCode: void 0
|
|
2735
|
-
}), !0;
|
|
2736
|
-
}
|
|
2737
|
-
}
|
|
2738
|
-
}, {
|
|
2739
|
-
key: "fixMissingPlus",
|
|
2740
|
-
value: function(r) {
|
|
2741
|
-
if (!r.international) {
|
|
2742
|
-
var n = ae(r.digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = n.countryCallingCode;
|
|
2743
|
-
if (n.number, d)
|
|
2744
|
-
return r.update({
|
|
2745
|
-
missingPlus: !0
|
|
2746
|
-
}), this.startInternationalNumber(r, {
|
|
2747
|
-
country: r.country,
|
|
2748
|
-
callingCode: d
|
|
2749
|
-
}), !0;
|
|
2750
|
-
}
|
|
2751
|
-
}
|
|
2752
|
-
}, {
|
|
2753
|
-
key: "startInternationalNumber",
|
|
2754
|
-
value: function(r, n) {
|
|
2755
|
-
var d = n.country, i = n.callingCode;
|
|
2756
|
-
r.startInternationalNumber(d, i), r.nationalSignificantNumber && (r.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0);
|
|
2757
|
-
}
|
|
2758
|
-
}, {
|
|
2759
|
-
key: "extractCallingCodeAndNationalSignificantNumber",
|
|
2760
|
-
value: function(r) {
|
|
2761
|
-
this.extractCountryCallingCode(r) && this.extractNationalSignificantNumber(r.getNationalDigits(), function(n) {
|
|
2762
|
-
return r.update(n);
|
|
2763
|
-
});
|
|
2764
|
-
}
|
|
2765
|
-
}]);
|
|
2766
|
-
})();
|
|
2767
|
-
function Ad(e) {
|
|
2768
|
-
var t = e.search(wd);
|
|
2769
|
-
if (!(t < 0)) {
|
|
2770
|
-
e = e.slice(t);
|
|
2771
|
-
var r;
|
|
2772
|
-
return e[0] === "+" && (r = !0, e = e.slice(1)), e = e.replace(_d, ""), r && (e = "+" + e), e;
|
|
2773
|
-
}
|
|
2774
|
-
}
|
|
2775
|
-
function Fd(e) {
|
|
2776
|
-
var t = Ad(e) || "";
|
|
2777
|
-
return t[0] === "+" ? [t.slice(1), !0] : [t];
|
|
2778
|
-
}
|
|
2779
|
-
function Od(e) {
|
|
2780
|
-
var t = Fd(e), r = pe(t, 2), n = r[0], d = r[1];
|
|
2781
|
-
return Ed.test(n) || (n = ""), [n, d];
|
|
2782
|
-
}
|
|
2783
|
-
function U(e) {
|
|
2784
|
-
"@babel/helpers - typeof";
|
|
2785
|
-
return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2786
|
-
return typeof t;
|
|
2787
|
-
} : function(t) {
|
|
2788
|
-
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2789
|
-
}, U(e);
|
|
2790
|
-
}
|
|
2791
|
-
function Rd(e, t) {
|
|
2792
|
-
return Dd(e) || Md(e, t) || Ld(e, t) || kd();
|
|
2793
|
-
}
|
|
2794
|
-
function kd() {
|
|
2795
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2796
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2797
|
-
}
|
|
2798
|
-
function Ld(e, t) {
|
|
2799
|
-
if (e) {
|
|
2800
|
-
if (typeof e == "string") return Qt(e, t);
|
|
2801
|
-
var r = {}.toString.call(e).slice(8, -1);
|
|
2802
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Qt(e, t) : void 0;
|
|
2803
|
-
}
|
|
2804
|
-
}
|
|
2805
|
-
function Qt(e, t) {
|
|
2806
|
-
(t == null || t > e.length) && (t = e.length);
|
|
2807
|
-
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
2808
|
-
return n;
|
|
2809
|
-
}
|
|
2810
|
-
function Md(e, t) {
|
|
2811
|
-
var r = e == null ? null : typeof Symbol != "undefined" && e[Symbol.iterator] || e["@@iterator"];
|
|
2812
|
-
if (r != null) {
|
|
2813
|
-
var n, d, i, a, o = [], u = !0, $ = !1;
|
|
2814
|
-
try {
|
|
2815
|
-
if (i = (r = r.call(e)).next, t !== 0) for (; !(u = (n = i.call(r)).done) && (o.push(n.value), o.length !== t); u = !0) ;
|
|
2816
|
-
} catch (l) {
|
|
2817
|
-
$ = !0, d = l;
|
|
2818
|
-
} finally {
|
|
2819
|
-
try {
|
|
2820
|
-
if (!u && r.return != null && (a = r.return(), Object(a) !== a)) return;
|
|
2821
|
-
} finally {
|
|
2822
|
-
if ($) throw d;
|
|
2823
|
-
}
|
|
2824
|
-
}
|
|
2825
|
-
return o;
|
|
2826
|
-
}
|
|
2827
|
-
}
|
|
2828
|
-
function Dd(e) {
|
|
2829
|
-
if (Array.isArray(e)) return e;
|
|
2830
|
-
}
|
|
2831
|
-
function jd(e, t) {
|
|
2832
|
-
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2833
|
-
}
|
|
2834
|
-
function Bd(e, t) {
|
|
2835
|
-
for (var r = 0; r < t.length; r++) {
|
|
2836
|
-
var n = t[r];
|
|
2837
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Ud(n.key), n);
|
|
2838
|
-
}
|
|
2839
|
-
}
|
|
2840
|
-
function Gd(e, t, r) {
|
|
2841
|
-
return t && Bd(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
2842
|
-
}
|
|
2843
|
-
function Ud(e) {
|
|
2844
|
-
var t = Hd(e, "string");
|
|
2845
|
-
return U(t) == "symbol" ? t : t + "";
|
|
2846
|
-
}
|
|
2847
|
-
function Hd(e, t) {
|
|
2848
|
-
if (U(e) != "object" || !e) return e;
|
|
2849
|
-
var r = e[Symbol.toPrimitive];
|
|
2850
|
-
if (r !== void 0) {
|
|
2851
|
-
var n = r.call(e, t);
|
|
2852
|
-
if (U(n) != "object") return n;
|
|
2853
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2854
|
-
}
|
|
2855
|
-
return String(e);
|
|
2856
|
-
}
|
|
2857
|
-
var be = /* @__PURE__ */ (function() {
|
|
2858
|
-
function e(t, r) {
|
|
2859
|
-
jd(this, e), this.metadata = new c(r);
|
|
2860
|
-
var n = this.getCountryAndCallingCode(t), d = Rd(n, 2), i = d[0], a = d[1];
|
|
2861
|
-
this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
|
|
2862
|
-
}
|
|
2863
|
-
return Gd(e, [{
|
|
2864
|
-
key: "getCountryAndCallingCode",
|
|
2865
|
-
value: function(r) {
|
|
2866
|
-
var n, d;
|
|
2867
|
-
return r && (N(r) ? (n = r.defaultCountry, d = r.defaultCallingCode) : n = r), n && !this.metadata.hasCountry(n) && (n = void 0), [n, d];
|
|
2868
|
-
}
|
|
2869
|
-
/**
|
|
2870
|
-
* Inputs "next" phone number characters.
|
|
2871
|
-
* @param {string} text
|
|
2872
|
-
* @return {string} Formatted phone number characters that have been input so far.
|
|
2873
|
-
*/
|
|
2874
|
-
}, {
|
|
2875
|
-
key: "input",
|
|
2876
|
-
value: function(r) {
|
|
2877
|
-
var n = this.parser.input(r, this.state), d = n.digits, i = n.justLeadingPlus;
|
|
2878
|
-
if (i)
|
|
2879
|
-
this.formattedOutput = "+";
|
|
2880
|
-
else if (d) {
|
|
2881
|
-
this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state);
|
|
2882
|
-
var a;
|
|
2883
|
-
if (this.metadata.hasSelectedNumberingPlan() && (a = this.formatter.format(d, this.state)), a === void 0 && this.parser.reExtractNationalSignificantNumber(this.state)) {
|
|
2884
|
-
this.determineTheCountryIfNeeded();
|
|
2885
|
-
var o = this.state.getNationalDigits();
|
|
2886
|
-
o && (a = this.formatter.format(o, this.state));
|
|
2887
|
-
}
|
|
2888
|
-
this.formattedOutput = a ? this.getFullNumber(a) : this.getNonFormattedNumber();
|
|
2889
|
-
}
|
|
2890
|
-
return this.formattedOutput;
|
|
2891
|
-
}
|
|
2892
|
-
}, {
|
|
2893
|
-
key: "reset",
|
|
2894
|
-
value: function() {
|
|
2895
|
-
var r = this;
|
|
2896
|
-
return this.state = new Fn({
|
|
2897
|
-
onCountryChange: function(d) {
|
|
2898
|
-
r.country = d;
|
|
2899
|
-
},
|
|
2900
|
-
onCallingCodeChange: function(d, i) {
|
|
2901
|
-
r.metadata.selectNumberingPlan(i, d), r.formatter.reset(r.metadata.numberingPlan, r.state), r.parser.reset(r.metadata.numberingPlan);
|
|
2902
|
-
}
|
|
2903
|
-
}), this.formatter = new md({
|
|
2904
|
-
state: this.state,
|
|
2905
|
-
metadata: this.metadata
|
|
2906
|
-
}), this.parser = new Td({
|
|
2907
|
-
defaultCountry: this.defaultCountry,
|
|
2908
|
-
defaultCallingCode: this.defaultCallingCode,
|
|
2909
|
-
metadata: this.metadata,
|
|
2910
|
-
state: this.state,
|
|
2911
|
-
onNationalSignificantNumberChange: function() {
|
|
2912
|
-
r.determineTheCountryIfNeeded(), r.formatter.reset(r.metadata.numberingPlan, r.state);
|
|
2913
|
-
}
|
|
2914
|
-
}), this.state.reset({
|
|
2915
|
-
country: this.defaultCountry,
|
|
2916
|
-
callingCode: this.defaultCallingCode
|
|
2917
|
-
}), this.formattedOutput = "", this;
|
|
2918
|
-
}
|
|
2919
|
-
/**
|
|
2920
|
-
* Returns `true` if the phone number is being input in international format.
|
|
2921
|
-
* In other words, returns `true` if and only if the parsed phone number starts with a `"+"`.
|
|
2922
|
-
* @return {boolean}
|
|
2923
|
-
*/
|
|
2924
|
-
}, {
|
|
2925
|
-
key: "isInternational",
|
|
2926
|
-
value: function() {
|
|
2927
|
-
return this.state.international;
|
|
2928
|
-
}
|
|
2929
|
-
/**
|
|
2930
|
-
* Returns the "calling code" part of the phone number when it's being input
|
|
2931
|
-
* in an international format.
|
|
2932
|
-
* If no valid calling code has been entered so far, returns `undefined`.
|
|
2933
|
-
* @return {string} [callingCode]
|
|
2934
|
-
*/
|
|
2935
|
-
}, {
|
|
2936
|
-
key: "getCallingCode",
|
|
2937
|
-
value: function() {
|
|
2938
|
-
if (this.isInternational())
|
|
2939
|
-
return this.state.callingCode;
|
|
2940
|
-
}
|
|
2941
|
-
// A legacy alias.
|
|
2942
|
-
}, {
|
|
2943
|
-
key: "getCountryCallingCode",
|
|
2944
|
-
value: function() {
|
|
2945
|
-
return this.getCallingCode();
|
|
2946
|
-
}
|
|
2947
|
-
/**
|
|
2948
|
-
* Returns a two-letter country code of the phone number.
|
|
2949
|
-
* Returns `undefined` for "non-geographic" phone numbering plans.
|
|
2950
|
-
* Returns `undefined` if no phone number has been input yet.
|
|
2951
|
-
* @return {string} [country]
|
|
2952
|
-
*/
|
|
2953
|
-
}, {
|
|
2954
|
-
key: "getCountry",
|
|
2955
|
-
value: function() {
|
|
2956
|
-
var r = this.state.digits;
|
|
2957
|
-
if (r)
|
|
2958
|
-
return this._getCountry();
|
|
2959
|
-
}
|
|
2960
|
-
/**
|
|
2961
|
-
* Returns a two-letter country code of the phone number.
|
|
2962
|
-
* Returns `undefined` for "non-geographic" phone numbering plans.
|
|
2963
|
-
* @return {string} [country]
|
|
2964
|
-
*/
|
|
2965
|
-
}, {
|
|
2966
|
-
key: "_getCountry",
|
|
2967
|
-
value: function() {
|
|
2968
|
-
var r = this.state.country;
|
|
2969
|
-
return r;
|
|
2970
|
-
}
|
|
2971
|
-
}, {
|
|
2972
|
-
key: "determineTheCountryIfNeeded",
|
|
2973
|
-
value: function() {
|
|
2974
|
-
(!this.state.country || this.isCountryCallingCodeAmbiguous()) && this.determineTheCountry();
|
|
2975
|
-
}
|
|
2976
|
-
// Prepends `+CountryCode ` in case of an international phone number
|
|
2977
|
-
}, {
|
|
2978
|
-
key: "getFullNumber",
|
|
2979
|
-
value: function(r) {
|
|
2980
|
-
var n = this;
|
|
2981
|
-
if (this.isInternational()) {
|
|
2982
|
-
var d = function(o) {
|
|
2983
|
-
return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state, {
|
|
2984
|
-
spacing: !!o
|
|
2985
|
-
}) + o;
|
|
2986
|
-
}, i = this.state.callingCode;
|
|
2987
|
-
return d(i ? r ? "".concat(i, " ").concat(r) : i : "".concat(this.state.getDigitsWithoutInternationalPrefix()));
|
|
2988
|
-
}
|
|
2989
|
-
return r;
|
|
2990
|
-
}
|
|
2991
|
-
}, {
|
|
2992
|
-
key: "getNonFormattedNationalNumberWithPrefix",
|
|
2993
|
-
value: function() {
|
|
2994
|
-
var r = this.state, n = r.nationalSignificantNumber, d = r.complexPrefixBeforeNationalSignificantNumber, i = r.nationalPrefix, a = n, o = d || i;
|
|
2995
|
-
return o && (a = o + a), a;
|
|
2996
|
-
}
|
|
2997
|
-
}, {
|
|
2998
|
-
key: "getNonFormattedNumber",
|
|
2999
|
-
value: function() {
|
|
3000
|
-
var r = this.state.nationalSignificantNumberMatchesInput;
|
|
3001
|
-
return this.getFullNumber(r ? this.getNonFormattedNationalNumberWithPrefix() : this.state.getNationalDigits());
|
|
3002
|
-
}
|
|
3003
|
-
}, {
|
|
3004
|
-
key: "getNonFormattedTemplate",
|
|
3005
|
-
value: function() {
|
|
3006
|
-
var r = this.getNonFormattedNumber();
|
|
3007
|
-
if (r)
|
|
3008
|
-
return r.replace(/[\+\d]/g, y);
|
|
3009
|
-
}
|
|
3010
|
-
}, {
|
|
3011
|
-
key: "isCountryCallingCodeAmbiguous",
|
|
3012
|
-
value: function() {
|
|
3013
|
-
var r = this.state.callingCode, n = this.metadata.getCountryCodesForCallingCode(r);
|
|
3014
|
-
return n && n.length > 1;
|
|
3015
|
-
}
|
|
3016
|
-
// Determines the country of the phone number
|
|
3017
|
-
// entered so far based on the country phone code
|
|
3018
|
-
// and the national phone number.
|
|
3019
|
-
}, {
|
|
3020
|
-
key: "determineTheCountry",
|
|
3021
|
-
value: function() {
|
|
3022
|
-
this.state.setCountry(me(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
|
|
3023
|
-
nationalNumber: this.state.nationalSignificantNumber,
|
|
3024
|
-
defaultCountry: this.defaultCountry,
|
|
3025
|
-
metadata: this.metadata
|
|
3026
|
-
}));
|
|
3027
|
-
}
|
|
3028
|
-
/**
|
|
3029
|
-
* Returns a E.164 phone number value for the user's input.
|
|
3030
|
-
*
|
|
3031
|
-
* For example, for country `"US"` and input `"(222) 333-4444"`
|
|
3032
|
-
* it will return `"+12223334444"`.
|
|
3033
|
-
*
|
|
3034
|
-
* For international phone number input, it will also auto-correct
|
|
3035
|
-
* some minor errors such as using a national prefix when writing
|
|
3036
|
-
* an international phone number. For example, if the user inputs
|
|
3037
|
-
* `"+44 0 7400 000000"` then it will return an auto-corrected
|
|
3038
|
-
* `"+447400000000"` phone number value.
|
|
3039
|
-
*
|
|
3040
|
-
* Will return `undefined` if no digits have been input,
|
|
3041
|
-
* or when inputting a phone number in national format and no
|
|
3042
|
-
* default country or default "country calling code" have been set.
|
|
3043
|
-
*
|
|
3044
|
-
* @return {string} [value]
|
|
3045
|
-
*/
|
|
3046
|
-
}, {
|
|
3047
|
-
key: "getNumberValue",
|
|
3048
|
-
value: function() {
|
|
3049
|
-
var r = this.state, n = r.digits, d = r.callingCode, i = r.country, a = r.nationalSignificantNumber;
|
|
3050
|
-
if (n) {
|
|
3051
|
-
if (this.isInternational())
|
|
3052
|
-
return d ? "+" + d + a : "+" + n;
|
|
3053
|
-
if (i || d) {
|
|
3054
|
-
var o = i ? this.metadata.countryCallingCode() : d;
|
|
3055
|
-
return "+" + o + a;
|
|
3056
|
-
}
|
|
3057
|
-
}
|
|
3058
|
-
}
|
|
3059
|
-
/**
|
|
3060
|
-
* Returns an instance of `PhoneNumber` class.
|
|
3061
|
-
* Will return `undefined` if no national (significant) number
|
|
3062
|
-
* digits have been entered so far, or if no `defaultCountry` has been
|
|
3063
|
-
* set and the user enters a phone number not in international format.
|
|
3064
|
-
*/
|
|
3065
|
-
}, {
|
|
3066
|
-
key: "getNumber",
|
|
3067
|
-
value: function() {
|
|
3068
|
-
var r = this.state, n = r.nationalSignificantNumber, d = r.carrierCode, i = r.callingCode, a = this._getCountry();
|
|
3069
|
-
if (n && !(!a && !i)) {
|
|
3070
|
-
if (a && a === this.defaultCountry) {
|
|
3071
|
-
var o = new c(this.metadata.metadata);
|
|
3072
|
-
o.selectNumberingPlan(a);
|
|
3073
|
-
var u = o.numberingPlan.callingCode(), $ = this.metadata.getCountryCodesForCallingCode(u);
|
|
3074
|
-
if ($.length > 1) {
|
|
3075
|
-
var l = he(n, {
|
|
3076
|
-
countries: $,
|
|
3077
|
-
defaultCountry: this.defaultCountry,
|
|
3078
|
-
metadata: this.metadata.metadata
|
|
3079
|
-
});
|
|
3080
|
-
l && (a = l);
|
|
3081
|
-
}
|
|
3082
|
-
}
|
|
3083
|
-
var f = new fe(a || i, n, this.metadata.metadata);
|
|
3084
|
-
return d && (f.carrierCode = d), f;
|
|
3085
|
-
}
|
|
3086
|
-
}
|
|
3087
|
-
/**
|
|
3088
|
-
* Returns `true` if the phone number is "possible".
|
|
3089
|
-
* Is just a shortcut for `PhoneNumber.isPossible()`.
|
|
3090
|
-
* @return {boolean}
|
|
3091
|
-
*/
|
|
3092
|
-
}, {
|
|
3093
|
-
key: "isPossible",
|
|
3094
|
-
value: function() {
|
|
3095
|
-
var r = this.getNumber();
|
|
3096
|
-
return r ? r.isPossible() : !1;
|
|
3097
|
-
}
|
|
3098
|
-
/**
|
|
3099
|
-
* Returns `true` if the phone number is "valid".
|
|
3100
|
-
* Is just a shortcut for `PhoneNumber.isValid()`.
|
|
3101
|
-
* @return {boolean}
|
|
3102
|
-
*/
|
|
3103
|
-
}, {
|
|
3104
|
-
key: "isValid",
|
|
3105
|
-
value: function() {
|
|
3106
|
-
var r = this.getNumber();
|
|
3107
|
-
return r ? r.isValid() : !1;
|
|
3108
|
-
}
|
|
3109
|
-
/**
|
|
3110
|
-
* @deprecated
|
|
3111
|
-
* This method is used in `react-phone-number-input/source/input-control.js`
|
|
3112
|
-
* in versions before `3.0.16`.
|
|
3113
|
-
*/
|
|
3114
|
-
}, {
|
|
3115
|
-
key: "getNationalNumber",
|
|
3116
|
-
value: function() {
|
|
3117
|
-
return this.state.nationalSignificantNumber;
|
|
3118
|
-
}
|
|
3119
|
-
/**
|
|
3120
|
-
* Returns the phone number characters entered by the user.
|
|
3121
|
-
* @return {string}
|
|
3122
|
-
*/
|
|
3123
|
-
}, {
|
|
3124
|
-
key: "getChars",
|
|
3125
|
-
value: function() {
|
|
3126
|
-
return (this.state.international ? "+" : "") + this.state.digits;
|
|
3127
|
-
}
|
|
3128
|
-
/**
|
|
3129
|
-
* Returns the template for the formatted phone number.
|
|
3130
|
-
* @return {string}
|
|
3131
|
-
*/
|
|
3132
|
-
}, {
|
|
3133
|
-
key: "getTemplate",
|
|
3134
|
-
value: function() {
|
|
3135
|
-
return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || "";
|
|
3136
|
-
}
|
|
3137
|
-
}]);
|
|
3138
|
-
})();
|
|
3139
|
-
function Wd() {
|
|
3140
|
-
return ee(xn, arguments);
|
|
3141
|
-
}
|
|
3142
|
-
function Vd() {
|
|
3143
|
-
return ee(En, arguments);
|
|
3144
|
-
}
|
|
3145
|
-
function H(e) {
|
|
3146
|
-
return be.call(this, e, te);
|
|
3147
|
-
}
|
|
3148
|
-
H.prototype = Object.create(be.prototype, {});
|
|
3149
|
-
H.prototype.constructor = H;
|
|
3150
|
-
function Kd(e, t) {
|
|
3151
|
-
return t = t || {}, new Promise(function(r, n) {
|
|
3152
|
-
var d = new XMLHttpRequest(), i = [], a = [], o = {}, u = function() {
|
|
3153
|
-
return { ok: (d.status / 100 | 0) == 2, statusText: d.statusText, status: d.status, url: d.responseURL, text: function() {
|
|
3154
|
-
return Promise.resolve(d.responseText);
|
|
3155
|
-
}, json: function() {
|
|
3156
|
-
return Promise.resolve(d.responseText).then(JSON.parse);
|
|
3157
|
-
}, blob: function() {
|
|
3158
|
-
return Promise.resolve(new Blob([d.response]));
|
|
3159
|
-
}, clone: u, headers: { keys: function() {
|
|
3160
|
-
return i;
|
|
3161
|
-
}, entries: function() {
|
|
3162
|
-
return a;
|
|
3163
|
-
}, get: function(l) {
|
|
3164
|
-
return o[l.toLowerCase()];
|
|
3165
|
-
}, has: function(l) {
|
|
3166
|
-
return l.toLowerCase() in o;
|
|
3167
|
-
} } };
|
|
3168
|
-
};
|
|
3169
|
-
for (var $ in d.open(t.method || "get", e, !0), d.onload = function() {
|
|
3170
|
-
d.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(l, f, s) {
|
|
3171
|
-
i.push(f = f.toLowerCase()), a.push([f, s]), o[f] = o[f] ? o[f] + "," + s : s;
|
|
3172
|
-
}), r(u());
|
|
3173
|
-
}, d.onerror = n, d.withCredentials = t.credentials == "include", t.headers) d.setRequestHeader($, t.headers[$]);
|
|
3174
|
-
d.send(t.body || null);
|
|
3175
|
-
});
|
|
3176
|
-
}
|
|
3177
|
-
const Xd = {
|
|
3178
|
-
services: {
|
|
3179
|
-
connect: "https://connect.voxie.com"
|
|
3180
|
-
}
|
|
3181
|
-
};
|
|
3182
|
-
class Yd {
|
|
3183
|
-
constructor(t, r, n) {
|
|
3184
|
-
var i;
|
|
3185
|
-
if (this.closed = !0, this.termsVisible = !1, this.classes = {
|
|
3186
|
-
toggle: {
|
|
3187
|
-
base: "vx-open vx-inline-block vx-origin-bottom-right vx-rounded-2xl vx-border vx-border-white/60 vx-bg-slate-100/70 vx-p-2 vx-pb-0 vx-shadow-md vx-backdrop-blur-md",
|
|
3188
|
-
open: "vx-opacity-100",
|
|
3189
|
-
closed: "vx-scale-1 vx-opacity-0 vx-invisible vx-translate-y-4"
|
|
3190
|
-
},
|
|
3191
|
-
btn: {
|
|
3192
|
-
base: "vx-group vx-relative vx-h-14 vx-w-14 vx-cursor-pointer vx-overflow-hidden vx-rounded-2xl vx-border vx-text-white vx-shadow-md vx-backdrop-blur-md vx-transition-all vx-duration-300 active:vx-scale-95 active:vx-opacity-80",
|
|
3193
|
-
open: "vx-border-neutral-800 vx-bg-neutral-800 hover:vx-bg-neutral-600",
|
|
3194
|
-
closed: "vx-bg-slate-100/70 vx-border-white/60"
|
|
3195
|
-
},
|
|
3196
|
-
icon: {
|
|
3197
|
-
base: "vx-absolute vx-left-1/2 vx-top-1/2 mt-[2px] -vx-translate-x-1/2 -vx-translate-y-1/2 vx-fill-neutral-800 vx-transition-all vx-duration-300 group-hover:vx-fill-neutral-600 group-active:vx-fill-neutral-800",
|
|
3198
|
-
open: "vx-scale-200 vx-h-full vx-opacity-0",
|
|
3199
|
-
closed: "vx-w-full vx-z-10"
|
|
3200
|
-
},
|
|
3201
|
-
xmark: {
|
|
3202
|
-
base: "vx-absolute vx-left-1/2 vx-top-1/2 vx-mt-[2px] -vx-translate-x-1/2 -vx-translate-y-1/2 vx-transition-all vx-duration-300 vx-w-4 vx-h-4",
|
|
3203
|
-
open: "vx-z-back vx-opacity-100 vx-fill-white",
|
|
3204
|
-
closed: "vx-z-0 vx-opacity-0"
|
|
3205
|
-
}
|
|
3206
|
-
}, this.addStyles = () => {
|
|
3207
|
-
const a = document.createElement("style");
|
|
3208
|
-
a.innerHTML = this.styles(), document.head.appendChild(a);
|
|
3209
|
-
}, this.assignElements = () => {
|
|
3210
|
-
this.elements.toggle = document.getElementById("vx-toggle"), this.elements.terms = document.getElementById("vx-terms"), this.elements.btn = document.getElementById("vx-btn"), this.elements.icon = document.getElementById("vx-icon"), this.elements.xmark = document.getElementById("vx-xmark"), this.elements.form = document.getElementById("vx-form"), this.elements.submit = document.getElementById(
|
|
3211
|
-
"vx-submit"
|
|
3212
|
-
);
|
|
3213
|
-
}, this.setBindings = () => {
|
|
3214
|
-
var a, o, u;
|
|
3215
|
-
this.elements.btn && (this.elements.btn.onclick = () => this.toggle()), (a = this.elements.terms) == null || a.addEventListener(
|
|
3216
|
-
"click",
|
|
3217
|
-
($) => $.target && this.toggleTerms()
|
|
3218
|
-
), (o = document.getElementById("vx-phone-number__input")) == null || o.addEventListener(
|
|
3219
|
-
"keypress",
|
|
3220
|
-
($) => $.target instanceof HTMLInputElement && ($.target.value = new H("US").input($.target.value))
|
|
3221
|
-
), (u = document.getElementById("vx-phone-number__input")) == null || u.addEventListener(
|
|
3222
|
-
"paste",
|
|
3223
|
-
($) => $.target instanceof HTMLInputElement && ($.target.value = new H("US").input($.target.value))
|
|
3224
|
-
), this.elements.submit && this.elements.form && (this.elements.form.onsubmit = async ($) => {
|
|
3225
|
-
var g, b, v, W, V;
|
|
3226
|
-
$.preventDefault();
|
|
3227
|
-
const l = new FormData($.target);
|
|
3228
|
-
let f = (g = l.get("vx-first-name")) == null ? void 0 : g.toString();
|
|
3229
|
-
const s = Vd(
|
|
3230
|
-
((b = l.get("vx-phone-number")) == null ? void 0 : b.toString()) || "",
|
|
3231
|
-
"US"
|
|
3232
|
-
);
|
|
3233
|
-
let h = !1;
|
|
3234
|
-
if (f != null && f.length > 0 && s != null && s.isPossible()) {
|
|
3235
|
-
if (f = f.replace(/[^a-zA-Z0-9]+/g, ""), f.length > 0 ? h = await this.captureFn(s.format("E.164"), {
|
|
3236
|
-
firstName: f
|
|
3237
|
-
}) : h = await this.captureFn(s.format("E.164")), h) {
|
|
3238
|
-
const E = document.querySelector("#vx-phone-number p");
|
|
3239
|
-
E && (E.textContent = "");
|
|
3240
|
-
const w = document.getElementById("vx-pop-up__title");
|
|
3241
|
-
w && (w.innerHTML = "Chat soon <span class='vx-pop-up__wave vx-pl-1'>👋</span>");
|
|
3242
|
-
const _ = document.getElementById("vx-pop-up__msg");
|
|
3243
|
-
_ && (_.textContent = "Thanks for signing up. We will be in touch shortly.");
|
|
3244
|
-
const I = document.getElementById("vx-first-name__input");
|
|
3245
|
-
I == null || I.setAttribute("disabled", "disabled");
|
|
3246
|
-
const Q = document.getElementById(
|
|
3247
|
-
"vx-phone-number__input"
|
|
3248
|
-
);
|
|
3249
|
-
Q == null || Q.setAttribute("disabled", "disabled"), (v = this.elements.btn) == null || v.setAttribute("disabled", "disabled"), this.elements.submit && (this.elements.submit.disabled = !0);
|
|
3250
|
-
const yt = document.querySelector(
|
|
3251
|
-
`#${(W = this.elements.submit) == null ? void 0 : W.id} span`
|
|
3252
|
-
);
|
|
3253
|
-
yt && (yt.textContent = "Thanks"), setTimeout(() => {
|
|
3254
|
-
this.close(), this.elements.btn && (this.elements.btn.style.cssText = "opacity: 0"), setTimeout(() => {
|
|
3255
|
-
var pt;
|
|
3256
|
-
(pt = this.elements.container) == null || pt.remove();
|
|
3257
|
-
}, 1e3);
|
|
3258
|
-
}, 5e3);
|
|
3259
|
-
}
|
|
3260
|
-
} else if (f == null || f.length == 0)
|
|
3261
|
-
(V = document.getElementById("vx-first-name__input")) == null || V.setAttribute("required", "required");
|
|
3262
|
-
else if (!(s != null && s.isPossible())) {
|
|
3263
|
-
const E = document.querySelector("#vx-phone-number p");
|
|
3264
|
-
if (E) {
|
|
3265
|
-
const w = (_, I) => Math.floor(Math.random() * (I - _) + _);
|
|
3266
|
-
E.textContent = `Please provide your number in (555) ${w(
|
|
3267
|
-
100,
|
|
3268
|
-
999
|
|
3269
|
-
)}-${w(1e3, 9999)} format.`;
|
|
3270
|
-
}
|
|
3271
|
-
}
|
|
3272
|
-
});
|
|
3273
|
-
}, this.toggle = () => this.closed ? this.open() : this.close(), this.toggleTerms = () => this.termsVisible ? this.closeTerms() : this.openTerms(), this.setClasses = (a, ...o) => a && a.setAttribute("class", o.join(" ")), this.close = () => {
|
|
3274
|
-
this.setClasses(
|
|
3275
|
-
this.elements.toggle,
|
|
3276
|
-
this.classes.toggle.base,
|
|
3277
|
-
this.classes.toggle.closed
|
|
3278
|
-
), this.setClasses(
|
|
3279
|
-
this.elements.btn,
|
|
3280
|
-
this.classes.btn.base,
|
|
3281
|
-
this.classes.btn.closed
|
|
3282
|
-
), this.setClasses(
|
|
3283
|
-
this.elements.icon,
|
|
3284
|
-
this.classes.icon.base,
|
|
3285
|
-
this.classes.icon.closed
|
|
3286
|
-
), this.setClasses(
|
|
3287
|
-
this.elements.xmark,
|
|
3288
|
-
this.classes.xmark.base,
|
|
3289
|
-
this.classes.xmark.closed
|
|
3290
|
-
), this.closed = !0;
|
|
3291
|
-
}, this.open = () => {
|
|
3292
|
-
this.setClasses(
|
|
3293
|
-
this.elements.toggle,
|
|
3294
|
-
this.classes.toggle.base,
|
|
3295
|
-
this.classes.toggle.open
|
|
3296
|
-
), this.setClasses(
|
|
3297
|
-
this.elements.btn,
|
|
3298
|
-
this.classes.btn.base,
|
|
3299
|
-
this.classes.btn.open
|
|
3300
|
-
), this.setClasses(
|
|
3301
|
-
this.elements.icon,
|
|
3302
|
-
this.classes.icon.base,
|
|
3303
|
-
this.classes.icon.open
|
|
3304
|
-
), this.setClasses(
|
|
3305
|
-
this.elements.xmark,
|
|
3306
|
-
this.classes.xmark.base,
|
|
3307
|
-
this.classes.xmark.open
|
|
3308
|
-
), this.closed = !1;
|
|
3309
|
-
}, this.openTerms = () => {
|
|
3310
|
-
this.setClasses(
|
|
3311
|
-
document.getElementById("vx-terms-arrow"),
|
|
3312
|
-
"transition vx-mt-0.5",
|
|
3313
|
-
"vx-rotate-180"
|
|
3314
|
-
), this.setClasses(document.getElementById("vx-terms-content"), "vx-mt-3", ""), this.termsVisible = !0;
|
|
3315
|
-
}, this.closeTerms = () => {
|
|
3316
|
-
this.setClasses(
|
|
3317
|
-
document.getElementById("vx-terms-arrow"),
|
|
3318
|
-
"transition vx-mt-0.5",
|
|
3319
|
-
""
|
|
3320
|
-
), this.setClasses(
|
|
3321
|
-
document.getElementById("vx-terms-content"),
|
|
3322
|
-
"vx-mt-3",
|
|
3323
|
-
"vx-hidden"
|
|
3324
|
-
), this.termsVisible = !1;
|
|
3325
|
-
}, this.auto = (a) => {
|
|
3326
|
-
setTimeout(() => this.open(), a != null ? a : 1500);
|
|
3327
|
-
}, this.html = () => `<div id='vx-pop-up' class='vx-float-right vx-fixed vx-bottom-0 vx-right-0' style='visibility: hidden'>
|
|
1
|
+
(function(S){typeof define=="function"&&define.amd?define(S):S()})((function(){"use strict";const S={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,[["(?:(?:2(?:(?:[0-26-9]\\d|3[0-8]|5[0135-9])\\d|4(?:[02-9]\\d|10))|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90))|7(?:[013-57-9]\\d|2[0-8])\\d)\\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)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[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}",[9]],["4(?:79[01]|83[0-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-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|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\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-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-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-389]|94[0-478])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-37-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-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\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|83)|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]|8[124-6])\\d|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,10}|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",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|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[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["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|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",["7"],"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|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|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(?:2[2-46-9]|3[3-9]|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(?: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])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-8]|5[0-5]|8[0-7]))\\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]|6\\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",["6"],"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","[267]\\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",["[267]"]],["(\\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{8}",[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",["[0-57-9]"]]],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)|5056(?:[0-35-9]\\d|4[0-68]))\\d{4}|(?:2742|305[3-9]|(?:472|983)[2-47-9]|505[2-57-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[0135-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-47-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-29])|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}"]]]}};function yt(e,t){var r=Array.prototype.slice.call(t);return r.push(S),e.apply(this,r)}function bt(e,t){e=e.split("-"),t=t.split("-");for(var r=e[0].split("."),n=t[0].split("."),i=0;i<3;i++){var a=Number(r[i]),d=Number(n[i]);if(a>d)return 1;if(d>a)return-1;if(!isNaN(a)&&isNaN(d))return 1;if(isNaN(a)&&!isNaN(d))return-1}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}var xe={}.constructor;function C(e){return e!=null&&e.constructor===xe}function N(e){"@babel/helpers - typeof";return N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(e)}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ce(n.key),n)}}function K(e,t,r){return t&&we(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ce(e){var t=Ne(e,"string");return N(t)=="symbol"?t:t+""}function Ne(e,t){if(N(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(N(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pe="1.2.0",Se="1.7.35",xt=" ext. ",Ee=/^\d+$/,f=(function(){function e(t){V(this,e),Nt(t),this.metadata=t,Pt.call(this,t)}return K(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(r){return r!=="001"})}},{key:"getCountryMetadata",value:function(r){return this.metadata.countries[r]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(r){return this.getCountryMetadata(r)!==void 0}},{key:"hasCallingCode",value:function(r){if(this.getCountryCodesForCallingCode(r))return!0;if(this.nonGeographic()){if(this.nonGeographic()[r])return!0}else{var n=this.countryCallingCodes()[r];if(n&&n.length===1&&n[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(r){return this.nonGeographic()?!!this.nonGeographic()[r]:!this.getCountryCodesForCallingCode(r)}},{key:"country",value:function(r){return this.selectNumberingPlan(r)}},{key:"selectNumberingPlan",value:function(r,n){if(r&&Ee.test(r)&&(n=r,r=null),r&&r!=="001"){if(!this.hasCountry(r))throw new Error("Unknown country: ".concat(r));this.numberingPlan=new wt(this.getCountryMetadata(r),this)}else if(n){if(!this.hasCallingCode(n))throw new Error("Unknown calling code: ".concat(n));this.numberingPlan=new wt(this.getNumberingPlanMetadata(n),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(r){var n=this.countryCallingCodes()[r];if(n)return n.length===1&&n[0].length===3?void 0:n}},{key:"getCountryCodeForCallingCode",value:function(r){var n=this.getCountryCodesForCallingCode(r);if(n)return n[0]}},{key:"getNumberingPlanMetadata",value:function(r){var n=this.getCountryCodeForCallingCode(r);if(n)return this.getCountryMetadata(n);if(this.nonGeographic()){var i=this.nonGeographic()[r];if(i)return i}else{var a=this.countryCallingCodes()[r];if(a&&a.length===1&&a[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(r){return this.numberingPlan.type(r)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(r){return this.selectNumberingPlan(r)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),wt=(function(){function e(t,r){V(this,e),this.globalMetadataObject=r,this.metadata=t,Pt.call(this,r.metadata)}return K(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(r){return r[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var r=this,n=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return n.map(function(i){return new _e(i,r)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(r){return r[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(r){if(this.hasTypes()&&Ct(this.types(),r))return new Te(Ct(this.types(),r),this)}},{key:"ext",value:function(){return this.v1||this.v2?xt:this.metadata[13]||xt}}])})(),_e=(function(){function e(t,r){V(this,e),this._format=t,this.metadata=r}return K(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!Ie.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),Ie=/^\(?\$1\)?$/,Te=(function(){function e(t,r){V(this,e),this.type=t,this.metadata=r}return K(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function Ct(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function Nt(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!C(e)||!C(e.countries))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(C(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Ae(e)+": "+e,"."))}var Ae=function(t){return N(t)};function tt(e,t){if(t=new f(t),t.hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function Fe(e,t){return t.countries.hasOwnProperty(e)}function Pt(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?bt(t,Pe)===-1?this.v2=!0:bt(t,Se)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function z(e,t){return ke(e,void 0,t)}function ke(e,t,r){var n=r.type(t),i=n&&n.possibleLengths()||r.possibleLengths();if(!i)return"IS_POSSIBLE";var a=e.length,d=i[0];return d===a?"IS_POSSIBLE":d>a?"TOO_SHORT":i[i.length-1]<a?"TOO_LONG":i.indexOf(a,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Oe(e,t,r){if(t===void 0&&(t={}),r=new f(r),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return St(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function St(e,t){switch(z(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function w(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Re(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Le(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Le(e,t){if(e){if(typeof e=="string")return Et(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Et(e,t):void 0}}function Et(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Me=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function et(e,t,r){if(t=t||{},!(!e.country&&!e.countryCallingCode)){r=new f(r),r.selectNumberingPlan(e.country,e.countryCallingCode);var n=t.v2?e.nationalNumber:e.phone;if(w(n,r.nationalNumberPattern())){if(rt(n,"FIXED_LINE",r))return r.type("MOBILE")&&r.type("MOBILE").pattern()===""||!r.type("MOBILE")||rt(n,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var i=Re(Me),a;!(a=i()).done;){var d=a.value;if(rt(n,d,r))return d}}}}function rt(e,t,r){return t=r.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:w(e,t.pattern())}function De(e,t,r){if(t=t||{},r=new f(r),r.selectNumberingPlan(e.country,e.countryCallingCode),r.hasTypes())return et(e,t,r.metadata)!==void 0;var n=t.v2?e.nationalNumber:e.phone;return w(n,r.nationalNumberPattern())}function je(e,t,r){var n=new f(r),i=n.getCountryCodesForCallingCode(e);return i?i.filter(function(a){return Be(t,a,r)}):[]}function Be(e,t,r){var n=new f(r);return n.selectNumberingPlan(t),n.numberingPlan.possibleLengths().indexOf(e.length)>=0}var nt=2,Ge=17,Ue=3,m="0-90-9٠-٩۰-۹",He="-‐-―−ー-",We="//",Ve="..",Ke=" ",ze="()()[]\\[\\]",Xe="~⁓∼~",g="".concat(He).concat(We).concat(Ve).concat(Ke).concat(ze).concat(Xe),X="++",Ye=new RegExp("(["+m+"])");function _t(e,t,r,n){if(t){var i=new f(n);i.selectNumberingPlan(t,r);var a=new RegExp(i.IDDPrefix());if(e.search(a)===0){e=e.slice(e.match(a)[0].length);var d=e.match(Ye);if(!(d&&d[1]!=null&&d[1].length>0&&d[1]==="0"))return e}}}function it(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=r.exec(e);if(n){var i,a,d=n.length-1,o=d>0&&n[d];if(t.nationalPrefixTransformRule()&&o)i=e.replace(r,t.nationalPrefixTransformRule()),d>1&&(a=n[1]);else{var l=n[0];i=e.slice(l.length),o&&(a=n[1])}var s;if(o){var u=e.indexOf(n[1]),c=e.slice(0,u);c===t.numberingPlan.nationalPrefix()&&(s=t.numberingPlan.nationalPrefix())}else s=n[0];return{nationalNumber:i,nationalPrefix:s,carrierCode:a}}}return{nationalNumber:e}}function at(e,t){var r=it(e,t),n=r.carrierCode,i=r.nationalNumber;if(i!==e){if(!Ze(e,i,t))return{nationalNumber:e};if(t.possibleLengths()&&!Je(i,t))return{nationalNumber:e}}return{nationalNumber:i,carrierCode:n}}function Ze(e,t,r){return!(w(e,r.nationalNumberPattern())&&!w(t,r.nationalNumberPattern()))}function Je(e,t){switch(z(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function It(e,t,r,n){var i=t?tt(t,n):r;if(e.indexOf(i)===0){n=new f(n),n.selectNumberingPlan(t,r);var a=e.slice(i.length),d=at(a,n),o=d.nationalNumber,l=at(e,n),s=l.nationalNumber;if(!w(s,n.nationalNumberPattern())&&w(o,n.nationalNumberPattern())||z(s,n)==="TOO_LONG")return{countryCallingCode:i,number:a}}return{number:e}}function dt(e,t,r,n){if(!e)return{};var i;if(e[0]!=="+"){var a=_t(e,t,r,n);if(a&&a!==e)i=!0,e="+"+a;else{if(t||r){var d=It(e,t,r,n),o=d.countryCallingCode,l=d.number;if(o)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:o,number:l}}return{number:e}}}if(e[1]==="0")return{};n=new f(n);for(var s=2;s-1<=Ue&&s<=e.length;){var u=e.slice(1,s);if(n.hasCallingCode(u))return n.selectNumberingPlan(u),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(s)};s++}return{}}function Tt(e){return e.replace(new RegExp("[".concat(g,"]+"),"g")," ").trim()}var At=/(\$\d)/;function Ft(e,t,r){var n=r.useInternationalFormat,i=r.withNationalPrefix;r.carrierCode,r.metadata;var a=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(At,t.nationalPrefixFormattingRule()):t.format());return n?Tt(a):a}var qe=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Qe(e,t,r){var n=new f(r);if(n.selectNumberingPlan(e,t),n.defaultIDDPrefix())return n.defaultIDDPrefix();if(qe.test(n.IDDPrefix()))return n.IDDPrefix()}var tr=";ext=",P=function(t){return"([".concat(m,"]{1,").concat(t,"})")};function kt(e){var t="20",r="15",n="9",i="6",a="[ \\t,]*",d="[:\\..]?[ \\t,-]*",o="#?",l="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",s="(?:[xx##~~]|int|int)",u="[- ]+",c="[ \\t]*",$="(?:,{2}|;)",v=tr+P(t),h=a+l+d+P(t)+o,x=a+s+d+P(n)+o,p=u+P(i)+"#",q=c+$+d+P(r)+o,Q=c+"(?:,)+"+d+P(n)+o;return v+"|"+h+"|"+x+"|"+p+"|"+q+"|"+Q}var er="["+m+"]{"+nt+"}",rr="["+X+"]{0,1}(?:["+g+"]*["+m+"]){3,}["+g+m+"]*",nr=new RegExp("^["+X+"]{0,1}(?:["+g+"]*["+m+"]){1,2}$","i"),ir=rr+"(?:"+kt()+")?",ar=new RegExp("^"+er+"$|^"+ir+"$","i");function dr(e){return e.length>=nt&&ar.test(e)}function or(e){return nr.test(e)}function lr(e){var t=e.number,r=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(r?";ext="+r:"")}function E(e){"@babel/helpers - typeof";return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E(e)}function sr(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=ur(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ur(e,t){if(e){if(typeof e=="string")return Ot(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ot(e,t):void 0}}function Ot(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rt(Object(r),!0).forEach(function(n){$r(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $r(e,t,r){return(t=cr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cr(e){var t=fr(e,"string");return E(t)=="symbol"?t:t+""}function fr(e,t){if(E(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(E(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mt={formatExtension:function(t,r,n){return"".concat(t).concat(n.ext()).concat(r)}};function vr(e,t,r,n){if(r?r=Lt(Lt({},Mt),r):r=Mt,n=new f(n),e.country&&e.country!=="001"){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else if(e.countryCallingCode)n.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var i=n.countryCallingCode(),a=r.v2?e.nationalNumber:e.phone,d;switch(t){case"NATIONAL":return a?(d=Y(a,e.carrierCode,"NATIONAL",n,r),ot(d,e.ext,n,r.formatExtension)):"";case"INTERNATIONAL":return a?(d=Y(a,null,"INTERNATIONAL",n,r),d="+".concat(i," ").concat(d),ot(d,e.ext,n,r.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(a);case"RFC3966":return lr({number:"+".concat(i).concat(a),ext:e.ext});case"IDD":if(!r.fromCountry)return;var o=hr(a,e.carrierCode,i,r.fromCountry,n);return ot(o,e.ext,n,r.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Y(e,t,r,n,i){var a=mr(n.formats(),e);return a?Ft(e,a,{useInternationalFormat:r==="INTERNATIONAL",withNationalPrefix:!(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:t,metadata:n}):e}function mr(e,t){for(var r=sr(e),n;!(n=r()).done;){var i=n.value;if(i.leadingDigitsPatterns().length>0){var a=i.leadingDigitsPatterns()[i.leadingDigitsPatterns().length-1];if(t.search(a)!==0)continue}if(w(t,i.pattern()))return i}}function ot(e,t,r,n){return t?n(e,t,r):e}function hr(e,t,r,n,i){var a=tt(n,i.metadata);if(a===r){var d=Y(e,t,"NATIONAL",i);return r==="1"?r+" "+d:d}var o=Qe(n,void 0,i.metadata);if(o)return"".concat(o," ").concat(r," ").concat(Y(e,null,"INTERNATIONAL",i))}function _(e){"@babel/helpers - typeof";return _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(e)}function Dt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dt(Object(r),!0).forEach(function(n){pr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pr(e,t,r){return(t=Bt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bt(n.key),n)}}function br(e,t,r){return t&&yr(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bt(e){var t=xr(e,"string");return _(t)=="symbol"?t:t+""}function xr(e,t){if(_(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gt=(function(){function e(t,r,n){if(gr(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!r)throw new TypeError("`metadata` argument not passed");if(C(r)&&C(r.countries)){n=r;var i=t;if(!Nr.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=dt(i,void 0,void 0,n),d=a.countryCallingCode,o=a.number;if(r=o,t=d,!r)throw new Error("Invalid `number` argument passed: too short")}if(!r)throw new TypeError("`nationalNumber` argument is required");if(typeof r!="string")throw new TypeError("`nationalNumber` argument must be a string");Nt(n);var l=Cr(t,n),s=l.country,u=l.countryCallingCode;this.country=s,this.countryCallingCode=u,this.nationalNumber=r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}}return br(e,[{key:"setExt",value:function(r){this.ext=r}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:je(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return Oe(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return De(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var r=new f(this.getMetadata());return r.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(r){return this.number===r.number&&this.ext===r.ext}},{key:"getType",value:function(){return et(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(r,n){return vr(this,r,n?jt(jt({},n),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(r){return this.format("NATIONAL",r)}},{key:"formatInternational",value:function(r){return this.format("INTERNATIONAL",r)}},{key:"getURI",value:function(r){return this.format("RFC3966",r)}}])})(),wr=function(t){return/^[A-Z]{2}$/.test(t)};function Cr(e,t){var r,n,i=new f(t);return wr(e)?(r=e,i.selectNumberingPlan(r),n=i.countryCallingCode()):n=e,{country:r,countryCallingCode:n}}var Nr=/^\+\d+$/;function lt(e){"@babel/helpers - typeof";return lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lt(e)}function Pr(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function Sr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Er(e,t,r){return t=T(t),_r(e,ut()?Reflect.construct(t,r||[],T(e).constructor):t.apply(e,r))}function _r(e,t){if(t&&(lt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ir(e)}function Ir(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}function st(e){var t=typeof Map=="function"?new Map:void 0;return st=function(n){if(n===null||!Fr(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return Ar(n,arguments,T(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),I(i,n)},st(e)}function Ar(e,t,r){if(ut())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&I(i,r.prototype),i}function ut(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ut=function(){return!!e})()}function Fr(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}function I(e,t){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},I(e,t)}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(e)}var b=(function(e){function t(r){var n;return Sr(this,t),n=Er(this,t,[r]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return Tr(t,e),Pr(t)})(st(Error)),Ut=new RegExp("(?:"+kt()+")$","i");function kr(e){var t=e.search(Ut);if(t<0)return{};for(var r=e.slice(0,t),n=e.match(Ut),i=1;i<n.length;){if(n[i])return{number:r,ext:n[i]};i++}}function Or(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Rr(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rr(e,t){if(e){if(typeof e=="string")return Ht(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ht(e,t):void 0}}function Ht(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Lr={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function Wt(e){return Lr[e]}function Z(e){for(var t="",r=Or(e.split("")),n;!(n=r()).done;){var i=n.value,a=Wt(i);a&&(t+=a)}return t}function Mr(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Dr(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dr(e,t){if(e){if(typeof e=="string")return Vt(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vt(e,t):void 0}}function Vt(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Kt(e){for(var t="",r=Mr(e.split("")),n;!(n=r()).done;){var i=n.value;t+=jr(i,t)||""}return t}function jr(e,t,r){return e==="+"?t?void 0:"+":Wt(e)}function Br(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Gr(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gr(e,t){if(e){if(typeof e=="string")return zt(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zt(e,t):void 0}}function zt(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Xt(e,t){var r=t.countries;t.defaultCountry;var n=t.metadata;n=new f(n);for(var i=Br(r),a;!(a=i()).done;){var d=a.value;if(n.country(d),n.leadingDigits()){if(e&&e.search(n.leadingDigits())===0)return d}else if(et({phone:e,country:d},void 0,n.metadata))return d}}function Yt(e,t){var r=t.nationalNumber,n=t.defaultCountry,i=t.metadata,a=i.getCountryCodesForCallingCode(e);if(a)return a.length===1?a[0]:Xt(r,{countries:a,defaultCountry:n,metadata:i.metadata})}var Zt="+",Ur="[\\-\\.\\(\\)]?",Jt="(["+m+"]|"+Ur+")",Hr="^\\"+Zt+Jt+"*["+m+"]"+Jt+"*$",Wr=new RegExp(Hr,"g"),$t=m,Vr="["+$t+"]+((\\-)*["+$t+"])*",Kr="a-zA-Z",zr="["+Kr+"]+((\\-)*["+$t+"])*",Xr="^("+Vr+"\\.)*"+zr+"\\.?$",Yr=new RegExp(Xr,"g"),qt="tel:",ct=";phone-context=",Zr=";isub=";function Jr(e){var t=e.indexOf(ct);if(t<0)return null;var r=t+ct.length;if(r>=e.length)return"";var n=e.indexOf(";",r);return n>=0?e.substring(r,n):e.substring(r)}function qr(e){return e===null?!0:e.length===0?!1:Wr.test(e)||Yr.test(e)}function Qr(e,t){var r=t.extractFormattedPhoneNumber,n=Jr(e);if(!qr(n))throw new b("NOT_A_NUMBER");var i;if(n===null)i=r(e)||"";else{i="",n.charAt(0)===Zt&&(i+=n);var a=e.indexOf(qt),d;a>=0?d=a+qt.length:d=0;var o=e.indexOf(ct);i+=e.substring(d,o)}var l=i.indexOf(Zr);if(l>0&&(i=i.substring(0,l)),i!=="")return i}var tn=250,en=new RegExp("["+X+m+"]"),rn=new RegExp("[^"+m+"#]+$");function nn(e,t,r){if(t=t||{},r=new f(r),t.defaultCountry&&!r.hasCountry(t.defaultCountry))throw t.v2?new b("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var n=dn(e,t.v2,t.extract),i=n.number,a=n.ext,d=n.error;if(!i){if(t.v2)throw d==="TOO_SHORT"?new b("TOO_SHORT"):new b("NOT_A_NUMBER");return{}}var o=ln(i,t.defaultCountry,t.defaultCallingCode,r),l=o.country,s=o.nationalNumber,u=o.countryCallingCode,c=o.countryCallingCodeSource,$=o.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new b("INVALID_COUNTRY");return{}}if(!s||s.length<nt){if(t.v2)throw new b("TOO_SHORT");return{}}if(s.length>Ge){if(t.v2)throw new b("TOO_LONG");return{}}if(t.v2){var v=new Gt(u,s,r.metadata);return l&&(v.country=l),$&&(v.carrierCode=$),a&&(v.ext=a),v.__countryCallingCodeSource=c,v}var h=(t.extended?r.hasSelectedNumberingPlan():l)?w(s,r.nationalNumberPattern()):!1;return t.extended?{country:l,countryCallingCode:u,carrierCode:$,valid:h,possible:h?!0:!!(t.extended===!0&&r.possibleLengths()&&St(s,r)),phone:s,ext:a}:h?on(l,s,a):{}}function an(e,t,r){if(e){if(e.length>tn){if(r)throw new b("TOO_LONG");return}if(t===!1)return e;var n=e.search(en);if(!(n<0))return e.slice(n).replace(rn,"")}}function dn(e,t,r){var n=Qr(e,{extractFormattedPhoneNumber:function(d){return an(d,r,t)}});if(!n)return{};if(!dr(n))return or(n)?{error:"TOO_SHORT"}:{};var i=kr(n);return i.ext?i:{number:n}}function on(e,t,r){var n={country:e,phone:t};return r&&(n.ext=r),n}function ln(e,t,r,n){var i=dt(Kt(e),t,r,n.metadata),a=i.countryCallingCodeSource,d=i.countryCallingCode,o=i.number,l;if(d)n.selectNumberingPlan(d);else if(o&&(t||r))n.selectNumberingPlan(t,r),t&&(l=t),d=r||tt(t,n.metadata);else return{};if(!o)return{countryCallingCodeSource:a,countryCallingCode:d};var s=at(Kt(o),n),u=s.nationalNumber,c=s.carrierCode,$=Yt(d,{nationalNumber:u,defaultCountry:t,metadata:n});return $&&(l=$,$==="001"||n.country(l)),{country:l,countryCallingCode:d,countryCallingCodeSource:a,nationalNumber:u,carrierCode:c}}function A(e){"@babel/helpers - typeof";return A=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(e)}function Qt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qt(Object(r),!0).forEach(function(n){sn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sn(e,t,r){return(t=un(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function un(e){var t=$n(e,"string");return A(t)=="symbol"?t:t+""}function $n(e,t){if(A(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(A(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ee(e,t,r){return nn(e,te(te({},t),{},{v2:!0}),r)}function F(e){"@babel/helpers - typeof";return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(e)}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?re(Object(r),!0).forEach(function(n){fn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fn(e,t,r){return(t=vn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vn(e){var t=mn(e,"string");return F(t)=="symbol"?t:t+""}function mn(e,t){if(F(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(F(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hn(e,t){return bn(e)||yn(e,t)||gn(e,t)||pn()}function pn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gn(e,t){if(e){if(typeof e=="string")return ne(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ne(e,t):void 0}}function ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yn(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,d,o=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(u){s=!0,i=u}finally{try{if(!l&&r.return!=null&&(d=r.return(),Object(d)!==d))return}finally{if(s)throw i}}return o}}function bn(e){if(Array.isArray(e))return e}function ie(e){var t=Array.prototype.slice.call(e),r=hn(t,4),n=r[0],i=r[1],a=r[2],d=r[3],o,l,s;if(typeof n=="string")o=n;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")d?(l=a,s=d):(l=void 0,s=a),i&&(l=cn({defaultCountry:i},l));else if(C(i))a?(l=i,s=a):s=i;else throw new Error("Invalid second argument: ".concat(i));return{text:o,options:l,metadata:s}}function xn(){var e=ie(arguments),t=e.text,r=e.options,n=e.metadata;return ee(t,r,n)}function k(e){"@babel/helpers - typeof";return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(e)}function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ae(Object(r),!0).forEach(function(n){wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wn(e,t,r){return(t=Cn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cn(e){var t=Nn(e,"string");return k(t)=="symbol"?t:t+""}function Nn(e,t){if(k(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(k(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pn(e,t,r){t&&t.defaultCountry&&!Fe(t.defaultCountry,r)&&(t=de(de({},t),{},{defaultCountry:void 0}));try{return ee(e,t,r)}catch(n){if(!(n instanceof b))throw n}}function Sn(){var e=ie(arguments),t=e.text,r=e.options,n=e.metadata;return Pn(t,r,n)}function O(e){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}function En(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tn(n.key),n)}}function In(e,t,r){return t&&_n(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tn(e){var t=An(e,"string");return O(t)=="symbol"?t:t+""}function An(e,t){if(O(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(O(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fn=(function(){function e(t){var r=t.onCountryChange,n=t.onCallingCodeChange;En(this,e),this.onCountryChange=r,this.onCallingCodeChange=n}return In(e,[{key:"reset",value:function(r){var n=r.country,i=r.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(n,i)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(r){for(var n=0,i=Object.keys(r);n<i.length;n++){var a=i[n];this[a]=r[a]}}},{key:"initCountryAndCallingCode",value:function(r,n){this.setCountry(r),this.setCallingCode(n)}},{key:"setCountry",value:function(r){this.country=r,this.onCountryChange(r)}},{key:"setCallingCode",value:function(r){this.callingCode=r,this.onCallingCodeChange(r,this.country)}},{key:"startInternationalNumber",value:function(r,n){this.international=!0,this.initCountryAndCallingCode(r,n)}},{key:"appendDigits",value:function(r){this.digits+=r}},{key:"appendNationalSignificantNumberDigits",value:function(r){this.nationalSignificantNumber+=r}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])})();function kn(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=On(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function On(e,t){if(e){if(typeof e=="string")return oe(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oe(e,t):void 0}}function oe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var y="x",ft=new RegExp(y);function J(e,t){if(t<1)return"";for(var r="";t>1;)t&1&&(r+=e),t>>=1,e+=e;return r+e}function le(e,t){return e[t]===")"&&t++,Rn(e.slice(0,t))}function Rn(e){for(var t=[],r=0;r<e.length;)e[r]==="("?t.push(r):e[r]===")"&&t.pop(),r++;var n=0,i="";t.push(e.length);for(var a=0,d=t;a<d.length;a++){var o=d[a];i+=e.slice(n,o),n=o+1}return i}function Ln(e,t,r){for(var n=kn(r.split("")),i;!(i=n()).done;){var a=i.value;if(e.slice(t+1).search(ft)<0)return;t=e.search(ft),e=e.replace(ft,a)}return[e,t]}function Mn(e,t,r){var n=r.metadata,i=r.shouldTryNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix,d=new RegExp("^(?:".concat(t.pattern(),")$"));if(d.test(e.nationalSignificantNumber))return jn(e,t,{metadata:n,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:a})}function Dn(e,t){return z(e,t)==="IS_POSSIBLE"}function jn(e,t,r){var n=r.metadata,i=r.shouldTryNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,i(t)){var d=se(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:n});if(d)return d}return se(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:n})}function se(e,t,r){var n=r.metadata,i=r.useNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix,d=Ft(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:i,metadata:n});if(i||(e.nationalPrefix?d=e.nationalPrefix+a(t)+d:e.complexPrefixBeforeNationalSignificantNumber&&(d=e.complexPrefixBeforeNationalSignificantNumber+" "+d)),Bn(d,e))return d}function Bn(e,t){return Z(e)===t.getNationalDigits()}function R(e){"@babel/helpers - typeof";return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(e)}function Gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Un(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Wn(n.key),n)}}function Hn(e,t,r){return t&&Un(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wn(e){var t=Vn(e,"string");return R(t)=="symbol"?t:t+""}function Vn(e,t){if(R(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(R(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kn=(function(){function e(){Gn(this,e)}return Hn(e,[{key:"parse",value:function(r){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(r),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var n=this.context[0],i=n.branches,a=n.instructions;if(i)return{op:"|",args:i.concat([vt(a)])};if(a.length===0)throw new Error("Pattern is required");return a.length===1?a[0]:a}},{key:"startContext",value:function(r){this.context.push(r)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(r){if(!r)throw new Error("Pattern is required");var n=r.match(Yn);if(!n){if(Xn.test(r))throw new Error("Illegal characters found in a pattern: ".concat(r));this.getContext().instructions=this.getContext().instructions.concat(r.split(""));return}var i=n[1],a=r.slice(0,n.index),d=r.slice(n.index+i.length);switch(i){case"(?:":a&&this.parsePattern(a),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(a&&this.parsePattern(a),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var o=this.getContext(),l=o.branches;l.push(vt(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:l});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(a&&this.parsePattern(a),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(vt(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":a&&this.parsePattern(a),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:zn(a)});break;default:throw new Error("Unknown operator: ".concat(i))}d&&this.parsePattern(d)}}])})();function zn(e){for(var t=[],r=0;r<e.length;){if(e[r]==="-"){if(r===0||r===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var n=e[r-1].charCodeAt(0)+1,i=e[r+1].charCodeAt(0)-1,a=n;a<=i;)t.push(String.fromCharCode(a)),a++}else t.push(e[r]);r++}return t}var Xn=/[\(\)\[\]\?\:\|]/,Yn=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function vt(e){return e.length===1?e[0]:e}function ue(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Zn(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zn(e,t){if(e){if(typeof e=="string")return $e(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$e(e,t):void 0}}function $e(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function L(e){"@babel/helpers - typeof";return L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L(e)}function Jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ti(n.key),n)}}function Qn(e,t,r){return t&&qn(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ti(e){var t=ei(e,"string");return L(t)=="symbol"?t:t+""}function ei(e,t){if(L(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(L(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ri=(function(){function e(t){Jn(this,e),this.matchTree=new Kn().parse(t)}return Qn(e,[{key:"match",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.allowOverflow;if(!r)throw new Error("String is required");var a=mt(r.split(""),this.matchTree,!0);if(a&&a.match&&delete a.matchedChars,!(a&&a.overflow&&!i))return a}}])})();function mt(e,t,r){if(typeof t=="string"){var n=e.join("");return t.indexOf(n)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:n.indexOf(t)===0?r&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var i=e.slice(),a=0;a<t.length;){var d=t[a],o=mt(i,d,r&&a===t.length-1);if(o){if(o.overflow)return o;if(o.match){if(i=i.slice(o.matchedChars.length),i.length===0)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(o.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
|
|
10
|
+
`.concat(JSON.stringify(o,null,2)))}}else return;a++}return r?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-i.length)}}switch(t.op){case"|":for(var l,s=ue(t.args),u;!(u=s()).done;){var c=u.value,$=mt(e,c,r);if($){if($.overflow)return $;if($.match)return{match:!0,matchedChars:$.matchedChars};if($.partialMatch)l=!0;else throw new Error(`Unsupported match result:
|
|
11
|
+
`.concat(JSON.stringify($,null,2)))}}return l?{partialMatch:!0}:void 0;case"[]":for(var v=ue(t.args),h;!(h=v()).done;){var x=h.value;if(e[0]===x)return e.length===1?{match:!0,matchedChars:e}:r?{overflow:!0}:{match:!0,matchedChars:[x]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function M(e){"@babel/helpers - typeof";return M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M(e)}function ce(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=ni(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ni(e,t){if(e){if(typeof e=="string")return fe(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fe(e,t):void 0}}function fe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ii(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ai(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oi(n.key),n)}}function di(e,t,r){return t&&ai(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oi(e){var t=li(e,"string");return M(t)=="symbol"?t:t+""}function li(e,t){if(M(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(M(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ht="9",si=15,ui=J(ht,si),$i=/[- ]/,ci=function(){return/\[([^\[\]])*\]/g},fi=function(){return/\d(?=[^,}][^,}])/g},vi=new RegExp("["+g+"]*\\$1["+g+"]*(\\$\\d["+g+"]*)*$"),ve=3,mi=(function(){function e(t){t.state;var r=t.metadata;ii(this,e),this.metadata=r,this.resetFormat()}return di(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(r,n){this.resetFormat(),r?(this.isNANP=r.callingCode()==="1",this.matchingFormats=r.formats(),n.nationalSignificantNumber&&this.narrowDownMatchingFormats(n)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(r,n){var i=this;if(Dn(n.nationalSignificantNumber,this.metadata))for(var a=ce(this.matchingFormats),d;!(d=a()).done;){var o=d.value,l=Mn(n,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(u){return i.shouldTryNationalPrefixFormattingRule(u,{international:n.international,nationalPrefix:n.nationalPrefix})},getSeparatorAfterNationalPrefix:function(u){return i.getSeparatorAfterNationalPrefix(u)}});if(l)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(l.replace(/\d/g,y),n),this.populatedNationalNumberTemplate=l,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(y),l}return this.formatNationalNumberWithNextDigits(r,n)}},{key:"formatNationalNumberWithNextDigits",value:function(r,n){var i=this.chosenFormat,a=this.chooseFormat(n);if(a)return a===i?this.formatNextNationalNumberDigits(r):this.formatNextNationalNumberDigits(n.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(r){var n=this,i=r.nationalSignificantNumber,a=r.nationalPrefix,d=r.international,o=i,l=o.length-ve;l<0&&(l=0),this.matchingFormats=this.matchingFormats.filter(function(s){return n.formatSuits(s,d,a)&&n.formatMatches(s,o,l)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(r,n,i){return!(i&&!r.usesNationalPrefix()&&!r.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!n&&!i&&r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(r,n,i){var a=r.leadingDigitsPatterns().length;if(a===0)return!0;i=Math.min(i,a-1);var d=r.leadingDigitsPatterns()[i];if(n.length<ve)try{return new ri(d).match(n,{allowOverflow:!0})!==void 0}catch(o){return console.error(o),!0}return new RegExp("^(".concat(d,")")).test(n)}},{key:"getFormatFormat",value:function(r,n){return n?r.internationalFormat():r.format()}},{key:"chooseFormat",value:function(r){for(var n=this,i=function(){var s=o.value;return n.chosenFormat===s?0:vi.test(n.getFormatFormat(s,r.international))?n.createTemplateForFormat(s,r)?(n.chosenFormat=s,0):(n.matchingFormats=n.matchingFormats.filter(function(u){return u!==s}),1):1},a,d=ce(this.matchingFormats.slice()),o;!(o=d()).done&&(a=i(),a!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(r,n){if(!(r.pattern().indexOf("|")>=0)){var i=this.getTemplateForFormat(r,n);if(i)return this.setNationalNumberTemplate(i,n),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(r){return this.isNANP||r&&r.nationalPrefixFormattingRule()&&$i.test(r.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(r,n){var i=r.IDDPrefix,a=r.missingPlus;return i?n&&n.spacing===!1?i:i+" ":a?"":"+"}},{key:"getTemplate",value:function(r){if(this.template){for(var n=-1,i=0,a=r.international?this.getInternationalPrefixBeforeCountryCallingCode(r,{spacing:!1}):"";i<a.length+r.getDigitsWithoutInternationalPrefix().length;)n=this.template.indexOf(y,n+1),i++;return le(this.template,n+1)}}},{key:"setNationalNumberTemplate",value:function(r,n){this.nationalNumberTemplate=r,this.populatedNationalNumberTemplate=r,this.populatedNationalNumberTemplatePosition=-1,n.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g,y)+J(y,n.callingCode.length)+" "+r:this.template=r}},{key:"getTemplateForFormat",value:function(r,n){var i=n.nationalSignificantNumber,a=n.international,d=n.nationalPrefix,o=n.complexPrefixBeforeNationalSignificantNumber,l=r.pattern();l=l.replace(ci(),"\\d").replace(fi(),"\\d");var s=ui.match(l)[0];if(!(i.length>s.length)){var u=new RegExp("^"+l+"$"),c=i.replace(/\d/g,ht);u.test(c)&&(s=c);var $=this.getFormatFormat(r,a),v;if(this.shouldTryNationalPrefixFormattingRule(r,{international:a,nationalPrefix:d})){var h=$.replace(At,r.nationalPrefixFormattingRule());if(Z(r.nationalPrefixFormattingRule())===(d||"")+Z("$1")&&($=h,v=!0,d))for(var x=d.length;x>0;)$=$.replace(/\d/,y),x--}var p=s.replace(new RegExp(l),$).replace(new RegExp(ht,"g"),y);return v||(o?p=J(y,o.length)+" "+p:d&&(p=J(y,d.length)+this.getSeparatorAfterNationalPrefix(r)+p)),a&&(p=Tt(p)),p}}},{key:"formatNextNationalNumberDigits",value:function(r){var n=Ln(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,r);if(!n){this.resetFormat();return}return this.populatedNationalNumberTemplate=n[0],this.populatedNationalNumberTemplatePosition=n[1],le(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(r,n){var i=n.international,a=n.nationalPrefix;if(r.nationalPrefixFormattingRule()){var d=r.usesNationalPrefix();if(d&&a||!d&&!i)return!0}}}])})();function D(e){"@babel/helpers - typeof";return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(e)}function me(e,t){return yi(e)||gi(e,t)||pi(e,t)||hi()}function hi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pi(e,t){if(e){if(typeof e=="string")return he(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?he(e,t):void 0}}function he(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function gi(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,d,o=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(u){s=!0,i=u}finally{try{if(!l&&r.return!=null&&(d=r.return(),Object(d)!==d))return}finally{if(s)throw i}}return o}}function yi(e){if(Array.isArray(e))return e}function bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ci(n.key),n)}}function wi(e,t,r){return t&&xi(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ci(e){var t=Ni(e,"string");return D(t)=="symbol"?t:t+""}function Ni(e,t){if(D(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(D(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pi="["+g+m+"]+",Si=new RegExp("^"+Pi+"$","i"),Ei="(?:["+X+"]["+g+m+"]*|["+g+m+"]+)",_i=new RegExp("[^"+g+m+"]+.*$"),Ii=/[^\d\[\]]/,Ti=(function(){function e(t){var r=t.defaultCountry,n=t.defaultCallingCode,i=t.metadata,a=t.onNationalSignificantNumberChange;bi(this,e),this.defaultCountry=r,this.defaultCallingCode=n,this.metadata=i,this.onNationalSignificantNumberChange=a}return wi(e,[{key:"input",value:function(r,n){var i=ki(r),a=me(i,2),d=a[0],o=a[1],l=Z(d),s;return o&&(n.digits||(n.startInternationalNumber(),l||(s=!0))),l&&this.inputDigits(l,n),{digits:l,justLeadingPlus:s}}},{key:"inputDigits",value:function(r,n){var i=n.digits,a=i.length<3&&i.length+r.length>=3;if(n.appendDigits(r),a&&this.extractIddPrefix(n),this.isWaitingForCountryCallingCode(n)){if(!this.extractCountryCallingCode(n))return}else n.appendNationalSignificantNumberDigits(r);n.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(n.getNationalDigits(),function(d){return n.update(d)})}},{key:"isWaitingForCountryCallingCode",value:function(r){var n=r.international,i=r.callingCode;return n&&!i}},{key:"extractCountryCallingCode",value:function(r){var n=dt("+"+r.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=n.countryCallingCode,a=n.number;if(i)return r.setCallingCode(i),r.update({nationalSignificantNumber:a}),!0}},{key:"reset",value:function(r){if(r){this.hasSelectedNumberingPlan=!0;var n=r._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=n&&Ii.test(n)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(r,n){if(this.hasSelectedNumberingPlan){var i=it(r,this.metadata),a=i.nationalPrefix,d=i.nationalNumber,o=i.carrierCode;if(d!==r)return this.onExtractedNationalNumber(a,o,d,r,n),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(r,n,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(r,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var a=it(r,this.metadata),d=a.nationalPrefix,o=a.nationalNumber,l=a.carrierCode;if(o!==n)return this.onExtractedNationalNumber(d,l,o,r,i),!0}}},{key:"onExtractedNationalNumber",value:function(r,n,i,a,d){var o,l,s=a.lastIndexOf(i);if(s>=0&&s===a.length-i.length){l=!0;var u=a.slice(0,s);u!==r&&(o=u)}d({nationalPrefix:r,carrierCode:n,nationalSignificantNumber:i,nationalSignificantNumberMatchesInput:l,complexPrefixBeforeNationalSignificantNumber:o}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(r){if(this.extractAnotherNationalSignificantNumber(r.getNationalDigits(),r.nationalSignificantNumber,function(n){return r.update(n)}))return!0;if(this.extractIddPrefix(r))return this.extractCallingCodeAndNationalSignificantNumber(r),!0;if(this.fixMissingPlus(r))return this.extractCallingCodeAndNationalSignificantNumber(r),!0}},{key:"extractIddPrefix",value:function(r){var n=r.international,i=r.IDDPrefix,a=r.digits;if(r.nationalSignificantNumber,!(n||i)){var d=_t(a,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(d!==void 0&&d!==a)return r.update({IDDPrefix:a.slice(0,a.length-d.length)}),this.startInternationalNumber(r,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(r){if(!r.international){var n=It(r.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=n.countryCallingCode;if(n.number,i)return r.update({missingPlus:!0}),this.startInternationalNumber(r,{country:r.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(r,n){var i=n.country,a=n.callingCode;r.startInternationalNumber(i,a),r.nationalSignificantNumber&&(r.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(r){this.extractCountryCallingCode(r)&&this.extractNationalSignificantNumber(r.getNationalDigits(),function(n){return r.update(n)})}}])})();function Ai(e){var t=e.search(Ei);if(!(t<0)){e=e.slice(t);var r;return e[0]==="+"&&(r=!0,e=e.slice(1)),e=e.replace(_i,""),r&&(e="+"+e),e}}function Fi(e){var t=Ai(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function ki(e){var t=Fi(e),r=me(t,2),n=r[0],i=r[1];return Si.test(n)||(n=""),[n,i]}function j(e){"@babel/helpers - typeof";return j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(e)}function Oi(e,t){return Di(e)||Mi(e,t)||Li(e,t)||Ri()}function Ri(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Li(e,t){if(e){if(typeof e=="string")return pe(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pe(e,t):void 0}}function pe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Mi(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,d,o=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(u){s=!0,i=u}finally{try{if(!l&&r.return!=null&&(d=r.return(),Object(d)!==d))return}finally{if(s)throw i}}return o}}function Di(e){if(Array.isArray(e))return e}function ji(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ui(n.key),n)}}function Gi(e,t,r){return t&&Bi(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ui(e){var t=Hi(e,"string");return j(t)=="symbol"?t:t+""}function Hi(e,t){if(j(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(j(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ge=(function(){function e(t,r){ji(this,e),this.metadata=new f(r);var n=this.getCountryAndCallingCode(t),i=Oi(n,2),a=i[0],d=i[1];this.defaultCountry=a,this.defaultCallingCode=d,this.reset()}return Gi(e,[{key:"getCountryAndCallingCode",value:function(r){var n,i;return r&&(C(r)?(n=r.defaultCountry,i=r.defaultCallingCode):n=r),n&&!this.metadata.hasCountry(n)&&(n=void 0),[n,i]}},{key:"input",value:function(r){var n=this.parser.input(r,this.state),i=n.digits,a=n.justLeadingPlus;if(a)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var d;if(this.metadata.hasSelectedNumberingPlan()&&(d=this.formatter.format(i,this.state)),d===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var o=this.state.getNationalDigits();o&&(d=this.formatter.format(o,this.state))}this.formattedOutput=d?this.getFullNumber(d):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var r=this;return this.state=new Fn({onCountryChange:function(i){r.country=i},onCallingCodeChange:function(i,a){r.metadata.selectNumberingPlan(a,i),r.formatter.reset(r.metadata.numberingPlan,r.state),r.parser.reset(r.metadata.numberingPlan)}}),this.formatter=new mi({state:this.state,metadata:this.metadata}),this.parser=new Ti({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){r.determineTheCountryIfNeeded(),r.formatter.reset(r.metadata.numberingPlan,r.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var r=this.state.digits;if(r)return this._getCountry()}},{key:"_getCountry",value:function(){var r=this.state.country;return r}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(r){var n=this;if(this.isInternational()){var i=function(o){return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state,{spacing:!!o})+o},a=this.state.callingCode;return i(a?r?"".concat(a," ").concat(r):a:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return r}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var r=this.state,n=r.nationalSignificantNumber,i=r.complexPrefixBeforeNationalSignificantNumber,a=r.nationalPrefix,d=n,o=i||a;return o&&(d=o+d),d}},{key:"getNonFormattedNumber",value:function(){var r=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(r?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var r=this.getNonFormattedNumber();if(r)return r.replace(/[\+\d]/g,y)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var r=this.state.callingCode,n=this.metadata.getCountryCodesForCallingCode(r);return n&&n.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(Yt(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var r=this.state,n=r.digits,i=r.callingCode,a=r.country,d=r.nationalSignificantNumber;if(n){if(this.isInternational())return i?"+"+i+d:"+"+n;if(a||i){var o=a?this.metadata.countryCallingCode():i;return"+"+o+d}}}},{key:"getNumber",value:function(){var r=this.state,n=r.nationalSignificantNumber,i=r.carrierCode,a=r.callingCode,d=this._getCountry();if(n&&!(!d&&!a)){if(d&&d===this.defaultCountry){var o=new f(this.metadata.metadata);o.selectNumberingPlan(d);var l=o.numberingPlan.callingCode(),s=this.metadata.getCountryCodesForCallingCode(l);if(s.length>1){var u=Xt(n,{countries:s,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});u&&(d=u)}}var c=new Gt(d||a,n,this.metadata.metadata);return i&&(c.carrierCode=i),c}}},{key:"isPossible",value:function(){var r=this.getNumber();return r?r.isPossible():!1}},{key:"isValid",value:function(){var r=this.getNumber();return r?r.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])})();function Wi(){return yt(xn,arguments)}function Vi(){return yt(Sn,arguments)}function B(e){return ge.call(this,e,S)}B.prototype=Object.create(ge.prototype,{}),B.prototype.constructor=B;function Ki(e,t){return t=t||{},new Promise(function(r,n){var i=new XMLHttpRequest,a=[],d=[],o={},l=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return a},entries:function(){return d},get:function(u){return o[u.toLowerCase()]},has:function(u){return u.toLowerCase()in o}}}};for(var s in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(u,c,$){a.push(c=c.toLowerCase()),d.push([c,$]),o[c]=o[c]?o[c]+","+$:$}),r(l())},i.onerror=n,i.withCredentials=t.credentials=="include",t.headers)i.setRequestHeader(s,t.headers[s]);i.send(t.body||null)})}const zi={services:{connect:"https://connect.voxie.com"}},Xi='/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial}}}@layer theme{:root,:host{--vx-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--vx-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--vx-color-sky-500:oklch(68.5% .169 237.323);--vx-color-blue-500:oklch(62.3% .214 259.815);--vx-color-pink-500:oklch(65.6% .241 354.308);--vx-color-pink-600:oklch(59.2% .249 .584);--vx-color-slate-50:oklch(98.4% .003 247.858);--vx-color-slate-100:oklch(96.8% .007 247.896);--vx-color-slate-200:oklch(92.9% .013 255.508);--vx-color-slate-300:oklch(86.9% .022 252.894);--vx-color-slate-400:oklch(70.4% .04 256.788);--vx-color-slate-500:oklch(55.4% .046 257.417);--vx-color-slate-600:oklch(44.6% .043 257.281);--vx-color-slate-700:oklch(37.2% .044 257.287);--vx-color-neutral-100:oklch(97% 0 0);--vx-color-neutral-500:oklch(55.6% 0 0);--vx-color-neutral-600:oklch(43.9% 0 0);--vx-color-neutral-800:oklch(26.9% 0 0);--vx-color-white:#fff;--vx-spacing:.25rem;--vx-text-xs:.75rem;--vx-text-xs--line-height:calc(1/.75);--vx-text-sm:.875rem;--vx-text-sm--line-height:calc(1.25/.875);--vx-text-base:1rem;--vx-text-base--line-height: 1.5 ;--vx-font-weight-normal:400;--vx-font-weight-medium:500;--vx-font-weight-semibold:600;--vx-font-weight-bold:700;--vx-leading-snug:1.375;--vx-radius-sm:.25rem;--vx-radius-md:.375rem;--vx-radius-lg:.5rem;--vx-radius-2xl:1rem;--vx-blur-md:12px;--vx-default-transition-duration:.15s;--vx-default-transition-timing-function:cubic-bezier(.4,0,.2,1);--vx-default-font-family:var(--vx-font-sans);--vx-default-mono-font-family:var(--vx-font-mono);--vx-container-panel:258px;--vx-z-index-back:-1}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--vx-default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--vx-default-font-feature-settings,normal);font-variation-settings:var(--vx-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--vx-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--vx-default-mono-font-feature-settings,normal);font-variation-settings:var(--vx-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.vx\\:invisible{visibility:hidden!important}.vx\\:absolute{position:absolute!important}.vx\\:fixed{position:fixed!important}.vx\\:relative{position:relative!important}.vx\\:top-1\\/2{top:50%!important}.vx\\:right-0{right:calc(var(--vx-spacing)*0)!important}.vx\\:right-8{right:calc(var(--vx-spacing)*8)!important}.vx\\:bottom-0{bottom:calc(var(--vx-spacing)*0)!important}.vx\\:bottom-8{bottom:calc(var(--vx-spacing)*8)!important}.vx\\:left-1\\/2{left:50%!important}.vx\\:z-0{z-index:0!important}.vx\\:z-10{z-index:10!important}.vx\\:z-back{z-index:var(--vx-z-index-back)!important}.vx\\:float-right{float:right!important}.vx\\:-mx-2{margin-inline:calc(var(--vx-spacing)*-2)!important}.vx\\:my-2{margin-block:calc(var(--vx-spacing)*2)!important}.vx\\:mt-0\\.5{margin-top:calc(var(--vx-spacing)*.5)!important}.vx\\:mt-1{margin-top:calc(var(--vx-spacing)*1)!important}.vx\\:mt-2{margin-top:calc(var(--vx-spacing)*2)!important}.vx\\:mt-3{margin-top:calc(var(--vx-spacing)*3)!important}.vx\\:mt-5{margin-top:calc(var(--vx-spacing)*5)!important}.vx\\:mt-\\[2px\\]{margin-top:2px!important}.vx\\:-mb-2{margin-bottom:calc(var(--vx-spacing)*-2)!important}.vx\\:mb-0{margin-bottom:calc(var(--vx-spacing)*0)!important}.vx\\:mb-1{margin-bottom:calc(var(--vx-spacing)*1)!important}.vx\\:block{display:block!important}.vx\\:flex{display:flex!important}.vx\\:inline-block{display:inline-block!important}.vx\\:h-4{height:calc(var(--vx-spacing)*4)!important}.vx\\:h-14{height:calc(var(--vx-spacing)*14)!important}.vx\\:h-full{height:100%!important}.vx\\:w-4{width:calc(var(--vx-spacing)*4)!important}.vx\\:w-14{width:calc(var(--vx-spacing)*14)!important}.vx\\:w-full{width:100%!important}.vx\\:max-w-panel{max-width:var(--vx-container-panel)!important}.vx\\:origin-bottom-right{transform-origin:100% 100%!important}.vx\\:-translate-x-1\\/2{--tw-translate-x: -50% !important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.vx\\:-translate-y-1\\/2{--tw-translate-y: -50% !important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.vx\\:translate-y-4{--tw-translate-y:calc(var(--vx-spacing)*4)!important;translate:var(--tw-translate-x)var(--tw-translate-y)!important}.vx\\:scale-1{--tw-scale-x:1%!important;--tw-scale-y:1%!important;--tw-scale-z:1%!important;scale:var(--tw-scale-x)var(--tw-scale-y)!important}.vx\\:scale-200{--tw-scale-x:200%!important;--tw-scale-y:200%!important;--tw-scale-z:200%!important;scale:var(--tw-scale-x)var(--tw-scale-y)!important}.vx\\:rotate-180{rotate:180deg!important}.vx\\:cursor-pointer{cursor:pointer!important}.vx\\:flex-col{flex-direction:column!important}.vx\\:items-end{align-items:flex-end!important}.vx\\:items-start{align-items:flex-start!important}.vx\\:gap-2{gap:calc(var(--vx-spacing)*2)!important}.vx\\:self-start{align-self:flex-start!important}.vx\\:overflow-hidden{overflow:hidden!important}.vx\\:rounded-2xl{border-radius:var(--vx-radius-2xl)!important}.vx\\:rounded-lg{border-radius:var(--vx-radius-lg)!important}.vx\\:rounded-md{border-radius:var(--vx-radius-md)!important}.vx\\:rounded-sm{border-radius:var(--vx-radius-sm)!important}.vx\\:border{border-style:var(--tw-border-style)!important;border-width:1px!important}.vx\\:border-neutral-800{border-color:var(--vx-color-neutral-800)!important}.vx\\:border-slate-300{border-color:var(--vx-color-slate-300)!important}.vx\\:border-white\\/60{border-color:var(--vx-color-white)!important}@supports (color:color-mix(in lab,red,red)){.vx\\:border-white\\/60{border-color:color-mix(in oklab,var(--vx-color-white)60%,transparent)!important}}.vx\\:bg-neutral-800{background-color:var(--vx-color-neutral-800)!important}.vx\\:bg-slate-100\\/70{background-color:var(--vx-color-slate-100)!important}@supports (color:color-mix(in lab,red,red)){.vx\\:bg-slate-100\\/70{background-color:color-mix(in oklab,var(--vx-color-slate-100)70%,transparent)!important}}.vx\\:bg-white{background-color:var(--vx-color-white)!important}.vx\\:fill-neutral-800{fill:var(--vx-color-neutral-800)!important}.vx\\:fill-white{fill:var(--vx-color-white)!important}.vx\\:p-2{padding:calc(var(--vx-spacing)*2)!important}.vx\\:p-8{padding:calc(var(--vx-spacing)*8)!important}.vx\\:px-2{padding-inline:calc(var(--vx-spacing)*2)!important}.vx\\:px-3{padding-inline:calc(var(--vx-spacing)*3)!important}.vx\\:py-1{padding-block:calc(var(--vx-spacing)*1)!important}.vx\\:py-2{padding-block:calc(var(--vx-spacing)*2)!important}.vx\\:pt-1{padding-top:calc(var(--vx-spacing)*1)!important}.vx\\:pb-0{padding-bottom:calc(var(--vx-spacing)*0)!important}.vx\\:pb-2{padding-bottom:calc(var(--vx-spacing)*2)!important}.vx\\:pl-1{padding-left:calc(var(--vx-spacing)*1)!important}.vx\\:text-center{text-align:center!important}.vx\\:font-sans{font-family:var(--vx-font-sans)!important}.vx\\:text-base{font-size:var(--vx-text-base)!important;line-height:var(--tw-leading,var(--vx-text-base--line-height))!important}.vx\\:text-sm{font-size:var(--vx-text-sm)!important;line-height:var(--tw-leading,var(--vx-text-sm--line-height))!important}.vx\\:text-xs{font-size:var(--vx-text-xs)!important;line-height:var(--tw-leading,var(--vx-text-xs--line-height))!important}.vx\\:leading-snug{--tw-leading:var(--vx-leading-snug)!important;line-height:var(--vx-leading-snug)!important}.vx\\:font-bold{--tw-font-weight:var(--vx-font-weight-bold)!important;font-weight:var(--vx-font-weight-bold)!important}.vx\\:font-medium{--tw-font-weight:var(--vx-font-weight-medium)!important;font-weight:var(--vx-font-weight-medium)!important}.vx\\:font-normal{--tw-font-weight:var(--vx-font-weight-normal)!important;font-weight:var(--vx-font-weight-normal)!important}.vx\\:font-semibold{--tw-font-weight:var(--vx-font-weight-semibold)!important;font-weight:var(--vx-font-weight-semibold)!important}.vx\\:text-neutral-500{color:var(--vx-color-neutral-500)!important}.vx\\:text-neutral-600{color:var(--vx-color-neutral-600)!important}.vx\\:text-pink-600{color:var(--vx-color-pink-600)!important}.vx\\:text-slate-600{color:var(--vx-color-slate-600)!important}.vx\\:text-slate-700{color:var(--vx-color-slate-700)!important}.vx\\:text-white{color:var(--vx-color-white)!important}.vx\\:underline{text-decoration-line:underline!important}.vx\\:placeholder-slate-400::placeholder{color:var(--vx-color-slate-400)!important}.vx\\:opacity-0{opacity:0!important}.vx\\:opacity-100{opacity:1!important}.vx\\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.vx\\:shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.vx\\:backdrop-blur-md{--tw-backdrop-blur:blur(var(--vx-blur-md))!important;-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)!important;backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)!important}.vx\\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events!important;transition-timing-function:var(--tw-ease,var(--vx-default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--vx-default-transition-duration))!important}.vx\\:transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--vx-default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--vx-default-transition-duration))!important}.vx\\:duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}@media (hover:hover){.vx\\:group-hover\\:fill-neutral-600:is(:where(.vx\\:group):hover *){fill:var(--vx-color-neutral-600)!important}}.vx\\:group-active\\:fill-neutral-800:is(:where(.vx\\:group):active *){fill:var(--vx-color-neutral-800)!important}.vx\\:invalid\\:border-pink-500:invalid{border-color:var(--vx-color-pink-500)!important}.vx\\:invalid\\:text-pink-600:invalid{color:var(--vx-color-pink-600)!important}@media (hover:hover){.vx\\:hover\\:bg-neutral-100:hover{background-color:var(--vx-color-neutral-100)!important}.vx\\:hover\\:bg-neutral-600:hover{background-color:var(--vx-color-neutral-600)!important}.vx\\:hover\\:text-blue-500:hover{color:var(--vx-color-blue-500)!important}}.vx\\:focus\\:border-sky-500:focus{border-color:var(--vx-color-sky-500)!important}.vx\\:focus\\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.vx\\:focus\\:ring-sky-500:focus{--tw-ring-color:var(--vx-color-sky-500)!important}.vx\\:focus\\:outline-hidden:focus{--tw-outline-style:none!important;outline-style:none!important}@media (forced-colors:active){.vx\\:focus\\:outline-hidden:focus{outline-offset:2px!important;outline:2px solid #0000!important}}.vx\\:focus\\:invalid\\:border-pink-500:focus:invalid{border-color:var(--vx-color-pink-500)!important}.vx\\:focus\\:invalid\\:ring-pink-500:focus:invalid{--tw-ring-color:var(--vx-color-pink-500)!important}.vx\\:active\\:scale-95:active{--tw-scale-x:95%!important;--tw-scale-y:95%!important;--tw-scale-z:95%!important;scale:var(--tw-scale-x)var(--tw-scale-y)!important}.vx\\:active\\:opacity-80:active{opacity:.8!important}.vx\\:disabled\\:scale-100:disabled{--tw-scale-x:100%!important;--tw-scale-y:100%!important;--tw-scale-z:100%!important;scale:var(--tw-scale-x)var(--tw-scale-y)!important}.vx\\:disabled\\:cursor-not-allowed:disabled{cursor:not-allowed!important}.vx\\:disabled\\:border-slate-200:disabled{border-color:var(--vx-color-slate-200)!important}.vx\\:disabled\\:bg-slate-50:disabled{background-color:var(--vx-color-slate-50)!important}.vx\\:disabled\\:text-slate-500:disabled{color:var(--vx-color-slate-500)!important}.vx\\:disabled\\:opacity-60:disabled{opacity:.6!important}.vx\\:disabled\\:shadow-none:disabled{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}@media (hover:hover){.vx\\:disabled\\:hover\\:bg-neutral-800:disabled:hover{background-color:var(--vx-color-neutral-800)!important}}}.vx-pop-up__wave{transform-origin:70% 70%;animation-name:vx-wave-animation;animation-duration:2s;animation-iteration-count:2;display:inline-block;scale:1.25}@keyframes vx-wave-animation{0%{transform:rotate(0)}10%{transform:rotate(14deg)}20%{transform:rotate(-8deg)}30%{transform:rotate(14deg)}40%{transform:rotate(-4deg)}50%{transform:rotate(10deg)}60%{transform:rotate(0)}to{transform:rotate(0)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}';class Yi{constructor(t,r,n){var a;if(this.closed=!0,this.termsVisible=!1,this.classes={toggle:{base:"vx-open vx:inline-block vx:origin-bottom-right vx:rounded-2xl vx:border vx:border-white/60 vx:bg-slate-100/70 vx:p-2 vx:pb-0 vx:shadow-md vx:backdrop-blur-md",open:"vx:opacity-100",closed:"vx:scale-1 vx:opacity-0 vx:invisible vx:translate-y-4"},btn:{base:"vx:group vx:relative vx:h-14 vx:w-14 vx:cursor-pointer vx:overflow-hidden vx:rounded-2xl vx:border vx:text-white vx:shadow-md vx:backdrop-blur-md vx:transition-all vx:duration-300 vx:active:scale-95 vx:active:opacity-80",open:"vx:border-neutral-800 vx:bg-neutral-800 vx:hover:bg-neutral-600",closed:"vx:bg-slate-100/70 vx:border-white/60"},icon:{base:"vx:absolute vx:left-1/2 vx:top-1/2 mt-[2px] vx:-translate-x-1/2 vx:-translate-y-1/2 vx:fill-neutral-800 vx:transition-all vx:duration-300 vx:group-hover:fill-neutral-600 vx:group-active:fill-neutral-800",open:"vx:scale-200 vx:h-full vx:opacity-0",closed:"vx:w-full vx:z-10"},xmark:{base:"vx:absolute vx:left-1/2 vx:top-1/2 vx:mt-[2px] vx:-translate-x-1/2 vx:-translate-y-1/2 vx:transition-all vx:duration-300 vx:w-4 vx:h-4",open:"vx:z-back vx:opacity-100 vx:fill-white",closed:"vx:z-0 vx:opacity-0"}},this.addStyles=()=>{if(typeof document=="undefined")return;const d="voxie-contacts-styles";if(document.getElementById(d))return;const o=document.createElement("style");o.id=d,o.textContent=Xi,document.head.appendChild(o)},this.assignElements=()=>{this.elements.toggle=document.getElementById("vx-toggle"),this.elements.terms=document.getElementById("vx-terms"),this.elements.btn=document.getElementById("vx-btn"),this.elements.icon=document.getElementById("vx-icon"),this.elements.xmark=document.getElementById("vx-xmark"),this.elements.form=document.getElementById("vx-form"),this.elements.submit=document.getElementById("vx-submit")},this.setBindings=()=>{var d,o,l;this.elements.btn&&(this.elements.btn.onclick=()=>this.toggle()),(d=this.elements.terms)==null||d.addEventListener("click",s=>s.target&&this.toggleTerms()),(o=document.getElementById("vx-phone-number__input"))==null||o.addEventListener("keypress",s=>s.target instanceof HTMLInputElement&&(s.target.value=new B("US").input(s.target.value))),(l=document.getElementById("vx-phone-number__input"))==null||l.addEventListener("paste",s=>s.target instanceof HTMLInputElement&&(s.target.value=new B("US").input(s.target.value))),this.elements.submit&&this.elements.form&&(this.elements.form.onsubmit=async s=>{var h,x,p,q,Q;s.preventDefault();const u=new FormData(s.target);let c=(h=u.get("vx-first-name"))==null?void 0:h.toString();const $=Vi(((x=u.get("vx-phone-number"))==null?void 0:x.toString())||"","US");let v=!1;if(c!=null&&c.length>0&&$!=null&&$.isPossible()){if(c=c.replace(/[^a-zA-Z0-9]+/g,""),c.length>0?v=await this.captureFn($.format("E.164"),{firstName:c}):v=await this.captureFn($.format("E.164")),v){const G=document.querySelector("#vx-phone-number p");G&&(G.textContent="");const U=document.getElementById("vx-pop-up__title");U&&(U.innerHTML="Chat soon <span class='vx-pop-up__wave vx:pl-1'>👋</span>");const H=document.getElementById("vx-pop-up__msg");H&&(H.textContent="Thanks for signing up. We will be in touch shortly.");const W=document.getElementById("vx-first-name__input");W==null||W.setAttribute("disabled","disabled");const gt=document.getElementById("vx-phone-number__input");gt==null||gt.setAttribute("disabled","disabled"),(p=this.elements.btn)==null||p.setAttribute("disabled","disabled"),this.elements.submit&&(this.elements.submit.disabled=!0);const ye=document.querySelector(`#${(q=this.elements.submit)==null?void 0:q.id} span`);ye&&(ye.textContent="Thanks"),setTimeout(()=>{this.close(),this.elements.btn&&(this.elements.btn.style.cssText="opacity: 0"),setTimeout(()=>{var be;(be=this.elements.container)==null||be.remove()},1e3)},5e3)}}else if(c==null||c.length==0)(Q=document.getElementById("vx-first-name__input"))==null||Q.setAttribute("required","required");else if(!($!=null&&$.isPossible())){const G=document.querySelector("#vx-phone-number p");if(G){const U=(H,W)=>Math.floor(Math.random()*(W-H)+H);G.textContent=`Please provide your number in (555) ${U(100,999)}-${U(1e3,9999)} format.`}}})},this.toggle=()=>this.closed?this.open():this.close(),this.toggleTerms=()=>this.termsVisible?this.closeTerms():this.openTerms(),this.setClasses=(d,...o)=>d&&d.setAttribute("class",o.join(" ")),this.close=()=>{this.setClasses(this.elements.toggle,this.classes.toggle.base,this.classes.toggle.closed),this.setClasses(this.elements.btn,this.classes.btn.base,this.classes.btn.closed),this.setClasses(this.elements.icon,this.classes.icon.base,this.classes.icon.closed),this.setClasses(this.elements.xmark,this.classes.xmark.base,this.classes.xmark.closed),this.closed=!0},this.open=()=>{this.setClasses(this.elements.toggle,this.classes.toggle.base,this.classes.toggle.open),this.setClasses(this.elements.btn,this.classes.btn.base,this.classes.btn.open),this.setClasses(this.elements.icon,this.classes.icon.base,this.classes.icon.open),this.setClasses(this.elements.xmark,this.classes.xmark.base,this.classes.xmark.open),this.closed=!1},this.openTerms=()=>{this.setClasses(document.getElementById("vx-terms-arrow"),"transition vx:mt-0.5","vx:rotate-180");const d=document.getElementById("vx-terms-content");d&&(d.style.display="block"),this.termsVisible=!0},this.closeTerms=()=>{this.setClasses(document.getElementById("vx-terms-arrow"),"transition vx:mt-0.5","");const d=document.getElementById("vx-terms-content");d&&(d.style.display="none"),this.termsVisible=!1},this.auto=d=>{setTimeout(()=>this.open(),d!=null?d:1500)},this.html=()=>`<div id='vx-pop-up' class='vx:float-right vx:fixed vx:bottom-0 vx:right-0' style='visibility: hidden'>
|
|
3328
15
|
<script src='https://kit.fontawesome.com/06f511676f.js' crossorigin='anonymous'><\/script>
|
|
3329
16
|
<div
|
|
3330
17
|
id='vx-panel'
|
|
3331
|
-
class='vx
|
|
18
|
+
class='vx:relative vx:bottom-8 vx:right-8 vx:flex vx:flex-col vx:items-end vx:gap-2 vx:duration-300 vx:max-w-panel'
|
|
3332
19
|
>
|
|
3333
20
|
<div
|
|
3334
21
|
id='vx-toggle'
|
|
3335
22
|
style='transition: visibility 0s, all 0.2s ease-in-out;'
|
|
3336
23
|
>
|
|
3337
|
-
<div class='vx
|
|
3338
|
-
<div class='vx
|
|
24
|
+
<div class='vx:rounded-lg vx:bg-white vx:p-8 vx:shadow'>
|
|
25
|
+
<div class='vx:mb-1 vx:flex vx:gap-2'>
|
|
3339
26
|
<h2
|
|
3340
|
-
class='vx
|
|
27
|
+
class='vx:text-base vx:font-bold'
|
|
3341
28
|
id='vx-pop-up__title'
|
|
3342
29
|
>
|
|
3343
30
|
Keep in Touch
|
|
@@ -3347,7 +34,7 @@ class Yd {
|
|
|
3347
34
|
width='16'
|
|
3348
35
|
height='24'
|
|
3349
36
|
viewBox='0 0 512 512'
|
|
3350
|
-
class='vx
|
|
37
|
+
class='vx:self-start'
|
|
3351
38
|
>
|
|
3352
39
|
<!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
|
|
3353
40
|
<path d='M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64h96v80c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L309.3 416H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64z'/>
|
|
@@ -3355,48 +42,48 @@ class Yd {
|
|
|
3355
42
|
</div>
|
|
3356
43
|
<p
|
|
3357
44
|
id='vx-pop-up__msg'
|
|
3358
|
-
class='vx
|
|
45
|
+
class='vx:text-slate-600 vx:text-xs'
|
|
3359
46
|
>
|
|
3360
47
|
Would you like to receive special offers via text?
|
|
3361
48
|
</p>
|
|
3362
|
-
<form id='vx-form' class='vx
|
|
49
|
+
<form id='vx-form' class='vx:mt-5'>
|
|
3363
50
|
<label
|
|
3364
51
|
id='vx-first-name'
|
|
3365
|
-
class='vx
|
|
52
|
+
class='vx:block vx:my-2'
|
|
3366
53
|
for='vx-first-name'
|
|
3367
54
|
>
|
|
3368
|
-
<span class='vx
|
|
55
|
+
<span class='vx:block vx:text-xs vx:font-medium vx:text-slate-700'>First Name *</span>
|
|
3369
56
|
<input
|
|
3370
57
|
type='text'
|
|
3371
58
|
id='vx-first-name__input'
|
|
3372
59
|
name='vx-first-name'
|
|
3373
|
-
class='vx
|
|
60
|
+
class='vx:mt-1 vx:block vx:w-full vx:px-3 vx:py-2 vx:bg-white vx:border vx:border-slate-300 vx:rounded-md vx:text-sm vx:placeholder-slate-400 vx:focus:outline-hidden vx:focus:border-sky-500 vx:focus:ring-1 vx:focus:ring-sky-500 vx:disabled:bg-slate-50 vx:disabled:text-slate-500 vx:disabled:border-slate-200 vx:disabled:shadow-none vx:invalid:border-pink-500 vx:invalid:text-pink-600 vx:focus:invalid:border-pink-500 vx:focus:invalid:ring-pink-500'
|
|
3374
61
|
/>
|
|
3375
62
|
</label>
|
|
3376
63
|
<label id='vx-phone-number' for='vx-phone-number'
|
|
3377
|
-
class='vx
|
|
3378
|
-
<span class='vx
|
|
64
|
+
class='vx:block vx:my-2'>
|
|
65
|
+
<span class='vx:block vx:text-xs vx:font-medium vx:text-slate-700'
|
|
3379
66
|
)}'>Phone Number *</span>
|
|
3380
|
-
<p class='vx
|
|
67
|
+
<p class='vx:text-xs vx:font-normal vx:text-pink-600')}'></p>
|
|
3381
68
|
<input
|
|
3382
69
|
type='tel'
|
|
3383
70
|
id='vx-phone-number__input'
|
|
3384
71
|
name='vx-phone-number'
|
|
3385
|
-
class='vx
|
|
72
|
+
class='vx:mt-1 vx:block vx:w-full vx:px-3 vx:py-2 vx:bg-white vx:border vx:border-slate-300 vx:rounded-md vx:text-sm vx:placeholder-slate-400 vx:focus:outline-hidden vx:focus:border-sky-500 vx:focus:ring-1 vx:focus:ring-sky-500 vx:disabled:bg-slate-50 vx:disabled:text-slate-500 vx:disabled:border-slate-200 vx:disabled:shadow-none vx:invalid:border-pink-500 vx:invalid:text-pink-600 vx:focus:invalid:border-pink-500 vx:focus:invalid:ring-pink-500'
|
|
3386
73
|
/>
|
|
3387
74
|
</label>
|
|
3388
75
|
<button
|
|
3389
76
|
id='vx-submit'
|
|
3390
77
|
type='submit'
|
|
3391
|
-
class='vx
|
|
78
|
+
class='vx:transition vx:rounded-lg vx:bg-neutral-800 vx:w-full vx:pb-2 vx:pt-1 vx:mt-2 vx:hover:bg-neutral-600 vx:active:scale-95 vx:active:opacity-80 vx:disabled:scale-100 vx:disabled:cursor-not-allowed vx:disabled:opacity-60 vx:disabled:hover:bg-neutral-800 vx:focus:outline-hidden vx:focus:border-sky-500 vx:focus:ring-1 vx:focus:ring-sky-500'
|
|
3392
79
|
>
|
|
3393
|
-
<span class='vx
|
|
80
|
+
<span class='vx:text-xs vx:font-semibold vx:text-white'>Sign Up</span>
|
|
3394
81
|
</button>
|
|
3395
82
|
</form>
|
|
3396
83
|
|
|
3397
|
-
<div class='vx
|
|
84
|
+
<div class='vx:text-xs vx:leading-snug vx:text-neutral-500'>
|
|
3398
85
|
<div
|
|
3399
|
-
class='
|
|
86
|
+
class='vx:-mx-2 vx:mt-3 vx:-mb-2 vx:flex vx:cursor-pointer vx:items-start vx:gap-2 vx:rounded-sm vx:px-2 vx:py-1 vx:transition vx:hover:bg-neutral-100'
|
|
3400
87
|
id='vx-terms'
|
|
3401
88
|
>
|
|
3402
89
|
<div>By submitting you agree to the following terms:</div>
|
|
@@ -3406,7 +93,7 @@ class Yd {
|
|
|
3406
93
|
width='12'
|
|
3407
94
|
height='9'
|
|
3408
95
|
viewBox='0 0 384 512'
|
|
3409
|
-
class='transition vx
|
|
96
|
+
class='transition vx:mt-0.5'
|
|
3410
97
|
>
|
|
3411
98
|
<!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. -->
|
|
3412
99
|
<path d='M201 337c-9.4 9.4-24.6 9.4-33.9 0L7 177c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l143 143L327 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L201 337z'/>
|
|
@@ -3414,13 +101,14 @@ class Yd {
|
|
|
3414
101
|
</div>
|
|
3415
102
|
<p
|
|
3416
103
|
id='vx-terms-content'
|
|
3417
|
-
class='vx
|
|
104
|
+
class='vx:mt-3 vx:mb-0 vx:text-xs'
|
|
105
|
+
style='display: none'
|
|
3418
106
|
>
|
|
3419
107
|
You authorize ${this.name} to send text messages with offers & other
|
|
3420
108
|
information, possibly using automated technology, to the number you
|
|
3421
109
|
provided. Message/data rates apply. Consent is not a condition of
|
|
3422
110
|
purchase. Use is subject to <a
|
|
3423
|
-
class='vx
|
|
111
|
+
class='vx:underline vx:hover:text-blue-500'
|
|
3424
112
|
href='${this.terms}'
|
|
3425
113
|
target='_blank'
|
|
3426
114
|
>terms</a>.
|
|
@@ -3428,8 +116,8 @@ class Yd {
|
|
|
3428
116
|
</div>
|
|
3429
117
|
|
|
3430
118
|
</div>
|
|
3431
|
-
<div class='vx
|
|
3432
|
-
Powered by <span class='vx
|
|
119
|
+
<div class='vx:py-2 vx:font-sans vx:text-xs vx:text-neutral-600 vx:text-center'>
|
|
120
|
+
Powered by <span class='vx:font-bold'>Voxie</span>
|
|
3433
121
|
</div>
|
|
3434
122
|
</div>
|
|
3435
123
|
|
|
@@ -3457,115 +145,4 @@ class Yd {
|
|
|
3457
145
|
</svg>
|
|
3458
146
|
<i id='vx-i'></i>
|
|
3459
147
|
</button>
|
|
3460
|
-
</div>`, this.
|
|
3461
|
-
.vx-pop-up__wave {
|
|
3462
|
-
animation-name: vx-wave-animation;
|
|
3463
|
-
animation-duration: 2s;
|
|
3464
|
-
animation-iteration-count: 2;
|
|
3465
|
-
transform-origin: 70% 70%;
|
|
3466
|
-
display: inline-block;
|
|
3467
|
-
scale: 1.25;
|
|
3468
|
-
}
|
|
3469
|
-
|
|
3470
|
-
@keyframes vx-wave-animation {
|
|
3471
|
-
0% { transform: rotate( 0.0deg) }
|
|
3472
|
-
10% { transform: rotate(14.0deg) }
|
|
3473
|
-
20% { transform: rotate(-8.0deg) }
|
|
3474
|
-
30% { transform: rotate(14.0deg) }
|
|
3475
|
-
40% { transform: rotate(-4.0deg) }
|
|
3476
|
-
50% { transform: rotate(10.0deg) }
|
|
3477
|
-
60% { transform: rotate( 0.0deg) }
|
|
3478
|
-
100% { transform: rotate( 0.0deg) }
|
|
3479
|
-
}
|
|
3480
|
-
`, this.captureFn = t, r)
|
|
3481
|
-
this.name = r;
|
|
3482
|
-
else
|
|
3483
|
-
throw new Error("name required for pop-up");
|
|
3484
|
-
if (n)
|
|
3485
|
-
this.terms = n;
|
|
3486
|
-
else
|
|
3487
|
-
throw new Error("terms required for pop-up");
|
|
3488
|
-
this.elements = {
|
|
3489
|
-
container: null,
|
|
3490
|
-
toggle: null,
|
|
3491
|
-
terms: null,
|
|
3492
|
-
btn: null,
|
|
3493
|
-
icon: null,
|
|
3494
|
-
xmark: null,
|
|
3495
|
-
form: null,
|
|
3496
|
-
submit: null
|
|
3497
|
-
};
|
|
3498
|
-
const d = document.createElement("div");
|
|
3499
|
-
this.elements.container = d, d.innerHTML = this.html(), document.body.appendChild(d), this.addStyles(), this.assignElements(), this.setBindings(), this.close(), (i = document.getElementById("vx-pop-up")) == null || i.setAttribute("style", "");
|
|
3500
|
-
}
|
|
3501
|
-
}
|
|
3502
|
-
class vt {
|
|
3503
|
-
constructor(t, r) {
|
|
3504
|
-
this.authorization = t, this.connectBaseUri = r;
|
|
3505
|
-
}
|
|
3506
|
-
static init(t) {
|
|
3507
|
-
var r;
|
|
3508
|
-
return new vt(
|
|
3509
|
-
`Basic ${btoa(`${t.publicKeyId}:${t.publicSecret}`)}`,
|
|
3510
|
-
(r = t.connectBaseUri) != null ? r : Xd.services.connect
|
|
3511
|
-
);
|
|
3512
|
-
}
|
|
3513
|
-
async capture(t, r) {
|
|
3514
|
-
try {
|
|
3515
|
-
const n = Wd(t, "US");
|
|
3516
|
-
return n.isPossible() ? (await Kd(`${this.connectBaseUri}/capture/contact`, {
|
|
3517
|
-
headers: {
|
|
3518
|
-
Authorization: this.authorization,
|
|
3519
|
-
"Content-Type": "application/json"
|
|
3520
|
-
},
|
|
3521
|
-
method: "POST",
|
|
3522
|
-
body: JSON.stringify({
|
|
3523
|
-
phone: n.format("E.164"),
|
|
3524
|
-
email: (r == null ? void 0 : r.email) || null,
|
|
3525
|
-
first_name: (r == null ? void 0 : r.firstName) || null,
|
|
3526
|
-
last_name: (r == null ? void 0 : r.lastName) || null,
|
|
3527
|
-
time_zone: (r == null ? void 0 : r.timeZone) || null,
|
|
3528
|
-
tags: (r == null ? void 0 : r.tags) || null,
|
|
3529
|
-
custom_attributes: (r == null ? void 0 : r.customAttributes) || null,
|
|
3530
|
-
subscription_statuses: (r == null ? void 0 : r.subscriptionStatuses) || null,
|
|
3531
|
-
group_id: (r == null ? void 0 : r.groupId) || null
|
|
3532
|
-
})
|
|
3533
|
-
}), !0) : !1;
|
|
3534
|
-
} catch (n) {
|
|
3535
|
-
return n instanceof x ? console.error(`${t} must be in E.164 format.`) : console.error(n), !1;
|
|
3536
|
-
}
|
|
3537
|
-
}
|
|
3538
|
-
popUp(t) {
|
|
3539
|
-
return new Yd(
|
|
3540
|
-
async (r, n) => this.capture(r, n),
|
|
3541
|
-
t.name,
|
|
3542
|
-
t.terms
|
|
3543
|
-
);
|
|
3544
|
-
}
|
|
3545
|
-
share(t, r, n) {
|
|
3546
|
-
const d = (i, a) => {
|
|
3547
|
-
const o = {};
|
|
3548
|
-
if (i.firstName) {
|
|
3549
|
-
const u = t.elements.namedItem(i.firstName);
|
|
3550
|
-
o.firstName = u.value;
|
|
3551
|
-
}
|
|
3552
|
-
if (i.lastName) {
|
|
3553
|
-
const u = t.elements.namedItem(i.lastName);
|
|
3554
|
-
o.lastName = u.value;
|
|
3555
|
-
}
|
|
3556
|
-
if (i.email) {
|
|
3557
|
-
const u = t.elements.namedItem(i.email);
|
|
3558
|
-
o.email = u.value;
|
|
3559
|
-
}
|
|
3560
|
-
return a && (a.tags && (o.tags = a.tags), a.customAttributes && (o.customAttributes = a.customAttributes), a.subscriptionStatuses && (o.subscriptionStatuses = a.subscriptionStatuses), a.groupId && (o.groupId = a.groupId)), o;
|
|
3561
|
-
};
|
|
3562
|
-
t.addEventListener(
|
|
3563
|
-
"submit",
|
|
3564
|
-
async (i) => {
|
|
3565
|
-
const a = t.elements.namedItem(r.phone);
|
|
3566
|
-
await this.capture(a.value, d(r, n));
|
|
3567
|
-
}
|
|
3568
|
-
);
|
|
3569
|
-
}
|
|
3570
|
-
}
|
|
3571
|
-
window.Voxie = vt;
|
|
148
|
+
</div>`,this.captureFn=t,r)this.name=r;else throw new Error("name required for pop-up");if(n)this.terms=n;else throw new Error("terms required for pop-up");this.elements={container:null,toggle:null,terms:null,btn:null,icon:null,xmark:null,form:null,submit:null};const i=document.createElement("div");this.elements.container=i,i.innerHTML=this.html(),document.body.appendChild(i),this.addStyles(),this.assignElements(),this.setBindings(),this.close(),(a=document.getElementById("vx-pop-up"))==null||a.setAttribute("style","")}}class pt{constructor(t,r){this.authorization=t,this.connectBaseUri=r}static init(t){var r;return new pt(`Basic ${btoa(`${t.publicKeyId}:${t.publicSecret}`)}`,(r=t.connectBaseUri)!=null?r:zi.services.connect)}async capture(t,r){try{const n=Wi(t,"US");return n.isPossible()?(await Ki(`${this.connectBaseUri}/capture/contact`,{headers:{Authorization:this.authorization,"Content-Type":"application/json"},method:"POST",body:JSON.stringify({phone:n.format("E.164"),email:(r==null?void 0:r.email)||null,first_name:(r==null?void 0:r.firstName)||null,last_name:(r==null?void 0:r.lastName)||null,time_zone:(r==null?void 0:r.timeZone)||null,tags:(r==null?void 0:r.tags)||null,custom_attributes:(r==null?void 0:r.customAttributes)||null,subscription_statuses:(r==null?void 0:r.subscriptionStatuses)||null,group_id:(r==null?void 0:r.groupId)||null})}),!0):!1}catch(n){return n instanceof b?console.error(`${t} must be in E.164 format.`):console.error(n),!1}}popUp(t){return new Yi(async(r,n)=>this.capture(r,n),t.name,t.terms)}share(t,r,n){const i=(a,d)=>{const o={};if(a.firstName){const l=t.elements.namedItem(a.firstName);o.firstName=l.value}if(a.lastName){const l=t.elements.namedItem(a.lastName);o.lastName=l.value}if(a.email){const l=t.elements.namedItem(a.email);o.email=l.value}return d&&(d.tags&&(o.tags=d.tags),d.customAttributes&&(o.customAttributes=d.customAttributes),d.subscriptionStatuses&&(o.subscriptionStatuses=d.subscriptionStatuses),d.groupId&&(o.groupId=d.groupId)),o};t.addEventListener("submit",async a=>{const d=t.elements.namedItem(r.phone);await this.capture(d.value,i(r,n))})}}window.Voxie=pt}));
|