mui-tel-input 5.1.1 → 5.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/mui-tel-input.es.js +600 -589
- package/package.json +1 -1
package/dist/mui-tel-input.es.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as C, jsxs as V, Fragment as
|
|
1
|
+
import { jsx as C, jsxs as V, Fragment as De } from "react/jsx-runtime";
|
|
2
2
|
import m from "react";
|
|
3
3
|
import { styled as J } from "@mui/material/styles";
|
|
4
|
-
import
|
|
5
|
-
import { grey as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
const
|
|
4
|
+
import _t from "@mui/material/IconButton";
|
|
5
|
+
import { grey as xn } from "@mui/material/colors";
|
|
6
|
+
import Me from "@mui/material/Typography";
|
|
7
|
+
import On from "@mui/material/MenuItem";
|
|
8
|
+
import En from "@mui/material/ListItemIcon";
|
|
9
|
+
import Sn from "@mui/material/ListItemText";
|
|
10
|
+
import Tn from "@mui/material/Menu";
|
|
11
|
+
import Fn from "@mui/material/InputAdornment";
|
|
12
|
+
import wn from "@mui/material/TextField";
|
|
13
|
+
const Dn = {
|
|
14
14
|
Flag: J("span")(() => ({
|
|
15
15
|
display: "flex",
|
|
16
16
|
alignItems: "center"
|
|
17
17
|
}))
|
|
18
|
-
},
|
|
18
|
+
}, Re = "MuiTelInput-Flag", _e = ({ isoCode: t, children: n }) => /* @__PURE__ */ C(Dn.Flag, { "data-testid": t, className: Re, children: n }), q = "en", St = {
|
|
19
19
|
EU: [
|
|
20
20
|
"AD",
|
|
21
21
|
"AL",
|
|
@@ -272,72 +272,82 @@ const wn = {
|
|
|
272
272
|
"ZW"
|
|
273
273
|
]
|
|
274
274
|
}, Tt = { 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(?: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]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\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])|3\\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|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|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]|22"], "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{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[025-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", "[24-689]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-689]"]]]], BL: ["590", "00", "590\\d{6}|(?: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]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:395|76[018])\\d|475[0-5])\\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)?", "(?:[2-467]\\d\\d|8001)\\d{5}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[23]|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-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37)", "4(?:02|37)0|[34]00"]], ["(\\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-8]\\d|90)\\d{8}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|50|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|73)|90[25])[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(?:00|2[125-9]|33|44|66|77|88)|622)[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|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|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]\\d{8}|[1-68]\\d{6}", [7, 9], [["(\\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{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "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], [["(\\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{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[2-9]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[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[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]", "(?:10|2[0-57-9])(?:10|9[56])", "10(?:10|9[56])|2[0-57-9](?:100|9[56])"], "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])", "(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}", [10, 11], [["(\\d{3})(\\d{7})", "$1 $2", ["6"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|91"]], ["(\\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", "[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}", [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|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|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], [["(\\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", ["(?:1[3-79]|[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, 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-79])|(?:(?: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-2]))|(?: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{6}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[56]|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", "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{6}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "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]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:395|76[018])\\d|475[0-5])\\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", "(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}", [6, 7, 8, 9], [["(\\d{2})(\\d{2})(\\d{2,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", ["[67]"], "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-5]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "(?:[2-489]\\d|55)\\d{6}", [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]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13], [["(\\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", "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], [["(\\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}"], ["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]], 0, 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", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\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}|[257-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", ["[36]|4(?:2[09]|7[01])", "[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"], "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", ["[257-9]"], "0$1"]], "0", 0, "(000[259]\\d{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", ["60|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, "33|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", ["30[013-9]"], "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-7]|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", "(?:[245]\\d|33|77|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]"], "(8-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "8 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(8-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(8-$1)", 1]], "8", 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-489]|3[5-9]|9)|8(?:0[89]|92)", "5(?:2(?:[2-49]|8[235-9])|3[5-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-2]|5[01]|8[0-3]))\\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{6}|(?: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]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:395|76[018])\\d|475[0-5])\\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", ["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]"], "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{6}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "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]", "1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\\d)\\d{8}", [10, 11], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"], 0, 1], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 $3 $4", ["1(?:33|5[56]|81)"], 0, 1], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 $3 $4", ["1"], 0, 1]], "01", 0, "0(?:[12]|4[45])|1", 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[047]"]]]], 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", "2[0-24-9]\\d{8}|[78]\\d{10,13}|[7-9]\\d{9}|[1-9]\\d{7}|[124-7]\\d{6}", [7, 8, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["78"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|9(?:0[3-9]|[1-9])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[3-7]|8[2-9]"], "0$1"], ["(\\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", "(?:444|(?:55|8\\d)\\d|666)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-68]"]]]], 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|80\\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[16]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2689]"], "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[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-5]|76(?:2[27]|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, "3[04-689]|[489]", 0, "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], SA: ["966", "00", "92\\d{7}|(?:[15]|8\\d)\\d{8}", [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{3,4})", "$1 $2 $3", ["81"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "(?:[1-6]|[7-9]\\d\\d)\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "800\\d{4}|(?:[249]\\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], [["(\\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-8]|[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]|77|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|68|[78]\\d)\\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-8]"]]]], 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}|[89]00\\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-39]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-5]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "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|[69]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2679]"]]], 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[1-5]"]], ["(\\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{7}", [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", ["6"], "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, [["(?:5056(?:[0-35-9]\\d|4[468])|7302[01]\\d)\\d{4}|(?:472[24]|505[2-57-9]|983[289])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[0149]|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-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|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-389]|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}"]]], 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", "810", "(?:20|33|[5-79]\\d|88)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], 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], 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)\\d{4}|8\\d{5}(?:\\d{3})?", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[478]"]], ["(\\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", "[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9], [["(\\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", ["[23]"], "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", "(?: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])\\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|63|[79]\\d)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[79]"], "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}|[35-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[35-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]], 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, 0, 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}"]]] } };
|
|
275
|
-
function
|
|
275
|
+
function Mn(t) {
|
|
276
276
|
return typeof t == "object" && !Array.isArray(t) && t !== null;
|
|
277
277
|
}
|
|
278
|
-
const
|
|
278
|
+
const Rn = Object.keys, B = Tt.countries, _n = Rn(B), Ln = "US";
|
|
279
279
|
function S(t, n) {
|
|
280
280
|
const e = Array.isArray(t);
|
|
281
281
|
return n ? e && t.length > 0 : e;
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function kn(t, n) {
|
|
284
284
|
return t.find((e) => n.includes(e)) || null;
|
|
285
285
|
}
|
|
286
286
|
function tt(t) {
|
|
287
287
|
return B[t]?.[0];
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
return t ||
|
|
289
|
+
function Gn(t) {
|
|
290
|
+
return t || Ln;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Lt(t, n) {
|
|
293
293
|
return [...new Set(n.concat(t))];
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Bn(t) {
|
|
296
296
|
return t.flatMap((n) => St[n]);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Le(t, n) {
|
|
299
299
|
return t.filter((e) => n.includes(e));
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function ke(t, n) {
|
|
302
302
|
return S(n, !0) ? t.filter((e) => !n.includes(e)) : t;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function jn(t, n) {
|
|
305
305
|
const { onlyCountries: e, excludedCountries: r, continents: d, preferredCountries: i } = n;
|
|
306
306
|
if (S(e, !0)) {
|
|
307
|
-
const u =
|
|
308
|
-
return S(i, !0) ?
|
|
307
|
+
const u = Le(t, e);
|
|
308
|
+
return S(i, !0) ? Lt(u, i) : u;
|
|
309
309
|
}
|
|
310
|
-
const a = S(d, !0) ?
|
|
311
|
-
return S(r, !0) ?
|
|
310
|
+
const a = S(d, !0) ? Bn(d) : t, o = S(i, !0) ? Lt(a, i) : a;
|
|
311
|
+
return S(r, !0) ? ke(o, r) : o;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function Ge(t, n) {
|
|
314
314
|
return t.some((e) => St[e].includes(n));
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function Un(t, n) {
|
|
317
317
|
return [...t].sort((e, r) => {
|
|
318
318
|
const d = n.of(e), i = n.of(r);
|
|
319
319
|
return d.localeCompare(i);
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
|
-
const
|
|
322
|
+
const Wn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAeCAYAAABXNvynAAAMeGlDQ1BEaXNwbGF5AABIiZVXd1ST9xp+vpGEhBFGQEBG2EsQ2UNmmIKCbBBHSAIEQoghQcU9ahWtWxw40bqLViuodaJWrRbBbR1FLSqVWtQ6Ubl/JKD13nvuue85ye89z+95n3d838nJC3DfCBUKGWkIlMlVyrT4aH5Obh6f9RAU2ODAAG5CUYUiKjU1GQB6z8+MAF5dAwEAlz2FCoUM/58ZiyUVIoDIB1AgrhCVAcRxgF4jUihVADMfgMM4lUIFMKcB4ClzcvMA5jIAvCKNvw0Ar0DjHwbAU2akCQBmC6CjJxQqiwCD2wD4laIiFWDwHoC3XCyVA9wBAMJFxUIxwJUBGFBWVi4GuCsBuFaKihQA9ziAoILPNIv+oV/Qpy8UFvX5mr4AADox0gqFTDjh/xzN/7Yymbo3hzMAvWJlQhoAHkDcKC1PSgOgBxCd8oJhKQCMAeKNVKyZO0ByitUJmRo+aSWqEOQBMANIb7EwJgmAFUDGyWXDkrV4QaE0LhGAIUCOl6oSMwCYA+QcSUVsupazQVmeps1FNhQqBVFa/KxQCWhz3VWXZkZp9Z8XSxK1+pRBVXFGNgAOQDlWSrOGATAAKK+K0vQkLWdwVbFgWC9HqU7LBOAIUGkSeXy0Rp+qLFTGpWn51WUVvf1SG4qlicO0/l5VcUaCZj7UKZEwNl3TC9UikUdl9upIKnKSe3sRS2JiNb1TjyXyzHStzhuFKjpNE0tzFLJULZ+2l8ji0wDYA7RfRWW6NpbOUikztM+ILlSoUjM0ddJVJcIhqZp66EVIhgAx4EMNPgpQjhJImzsbO8HX3sRBCCWKIIGnFumNyIYQSsghRDqq8CfkkKCiLy4aQighQSXk+NCHar49UQghlKiEBBUoxUMoUYYkyCCBGkpIIO/LloXfoYT037ILwYcI5ZChHEpI/wvei35CoiBAshZR92bkc3uZzFhmDDOBGcd0oy3pcDqUTqbD6Ug6nPahg+jg3j4+8RkPGa2M+4yrjDbGzdHSGcovqhyKNqi1M5Sg4PNZ0M60D+1PR9NhdDgdDD5tRlvCk/ajg+goOoIOpf3pYAi0dauh/GKGX3Tw2dPQ8tjebJLdjx3Jdv0y0sDdwL9PRQL5P+ajqbWgb96Cvpsv8ws+m74Y5Uj6kknNofZRZ6gT1DnqMNUIPnWMOkBdoI5QjZ+9Xb9DiaK+bGmQQI5SyCD9t3xCbU4lJKjw3und4f1ec6eSjFcBgKBcMUEpLSpW8aMUCpmEnygXeQ3g+3j7+AA5uXl8zc/Xi+EgABBmFz5hM38Dwo719PT8+Akbcgz4PhDgHPyEuQYBRrrA2YMitbJSg9EAwAAHXPBgARs4wBWe8EEAQhGJWAxBCjKQi1EQoRhlUGIcJmE6ZmMeFmE5VmM9NmEbvsNeNOIwTuAnnEcLruIW2tCOJ+jCK3QTBMEi9AkTwoKwJZwID8KHCCLCiVgimUgjcokxRBEhJ9TEJGImMY9YQqwmNhLbie+Jg8QJ4hzRStwk7hEdxHPiHUmReiSPtCadyYFkEBlFJpEZ5EiyiBxLVpGzyAXkSrKO3EU2kCfI8+RVso18Qr6kQOlSZpQd5UkFUQIqhcqjCiklNYWqpmqoOqqeOkSdoS5TbVQn9ZZm0iY0n/akQ+kEOpMW0WPpKfR8ejW9jW6gT9GX6Xt0F/2Roc+wYngwQhiJjBxGEWMcYzajhrGFsZ9xmnGV0c54xWQyzZguzEBmAjOXWcKcyJzPXMvczTzObGU+YL5ksVgWLA9WGCuFJWSpWLNZq1i7WMdYl1jtrDc6ujq2Oj46cTp5OnKdGTo1Ojt0jupc0nmk0802ZDuxQ9gpbDF7AnshezP7EPsiu53dzTHiuHDCOBmcEs50zkpOPec05zbnha6urr1usO5wXanuNN2Vunt0z+re032rZ6znrifQy9dT6y3Q26p3XO+m3gt9fX1n/Uj9PH2V/gL97fon9e/qvzEwMfAySDQQG0w1qDVoMLhk8JTL5jpxo7ijuFXcGu4+7kVupyHb0NlQYCg0nGJYa3jQ8LrhSyMTo0FGKUZlRvONdhidM3pszDJ2No41FhvPMt5kfNL4gQll4mAiMBGZzDTZbHLapJ3H5LnwEnklvHm873jNvC5TY1M/0yzT8aa1pkdM28woM2ezRDOZ2UKzvWbXzN71s+4X1U/Sb26/+n6X+r02728eaS4xrzbfbX7V/J0F3yLWotRisUWjxR1L2tLdcrjlOMt1lqctO/vz+of2F/Wv7r+3/69WpJW7VZrVRKtNVhesXlrbWMdbK6xXWZ+07rQxs4m0KbFZZnPUpsPWxDbcVmq7zPaY7R98U34UX8ZfyT/F77KzskuwU9tttGu267Z3sc+0n2G/2/6OA8chyKHQYZlDk0OXo63jUMdJjjsdf3ViOwU5FTutcDrj9NrZxTnb+WvnRufHLuYuiS5VLjtdbrvqu0a4jnWtc73ixnQLcit1W+vW4k66+7sXu9e6X/QgPQI8pB5rPVoHMAYED5APqBtw3VPPM8qz0nOn5z0vM69krxlejV5PBzoOzBu4eOCZgR+9/b1l3pu9bw0yHjRk0IxBhwY993H3EfnU+lzx1feN853qe8D3mZ+Hn8Rvnd8NfxP/of5f+zf5fwgIDFAG1Ad0BDoGjglcE3g9iBeUGjQ/6GwwIzg6eGrw4eC3IQEhqpC9IX+FeoaWhu4IfTzYZbBk8ObBD8Lsw4RhG8PawvnhY8I3hLdF2EUII+oi7kc6RIojt0Q+inKLKonaFfU02jtaGb0/+rUgRDBZcDyGiomPqY5pjjWOzYxdHXs3zj6uKG5nXFe8f/zE+OMJjISkhMUJ1xOtE0WJ2xO7hgQOmTzkVJJeUnrS6qT7ye7JyuRDQ8mhQ4YuHXp7mNMw+bDGFKQkpixNuZPqkjo29cfhzOGpw2uHP0wblDYp7Uy6Sfro9B3przKiMxZm3Mp0zVRnNmVxs/Kztme9zo7JXpLdljMwZ3LO+VzLXGnugTxWXlbelryXI2JHLB/Rnu+fPzv/2kiXkeNHnhtlOUo26sho7mjh6H1jGGOyx+wY816YIqwTvixILFhT0CUSiFaInogjxcvEHZIwyRLJo8KwwiWFj4vCipYWdRRHFNcUd0oF0tXSZyUJJetLXpemlG4t7ZFly3aX6ZSNKTsoN5aXyk+V25SPL29VeChmK9rGhoxdPrZLmaTcUkFUjKw4oOKpFKoLalf1V+p7leGVtZVvxmWN2zfeaLx8/IUJ7hPmTnhUFVf17UR6omhi0yS7SdMn3ZscNXnjFGJKwZSmqQ5TZ01tnxY/bdt0zvTS6b/M8J6xZMbfM7NnHpplPWvarAdfxX+1c7bBbOXs61+Hfr1+Dj1HOqd5ru/cVXM/Vourf57nPa9m3vv5ovk/fzPom5Xf9CwoXNC8MGDhukXMRfJF1xZHLN62xGhJ1ZIHS4cubVjGX1a97O/lo5efq/GrWb+Cs0K9om1l8soDqxxXLVr1fnXx6qu10bW711itmbvm9Vrx2kvrItfVr7deP2/9uw3SDTc2xm9sqHOuq9nE3FS56eHmrM1nvg36dvsWyy3ztnzYKt/ati1t26ntgdu377DasXAnuVO9s2NX/q6W72K+O1DvWb9xt9nueXuwR73nj+/HfH9tb9Lepn1B++p/cPphzX6T/dUNRMOEhq7G4sa2A7kHWg8OOdh0KPTQ/h+9ftx62O5w7RHTIwuPco7OOtpzrOrYy+OK450nik48aBrddOtkzskrp4afaj6ddPrsT3E/nTwTdebY2bCzh8+FnDv4c9DPjecDzjdc8L+w/xf/X/Y3BzQ3XAy8eKAluOVQ6+DWo5ciLp24HHP5pyuJV85fHXa19VrmtRvX86+33RDfeHxTdvPZr5W/dt+adptxu/qO4Z2au1Z3635z+213W0DbkXsx9y7cT79/64HowZPfK35/3z7rof7Dmke2j7Y/9nl8uCOuo+WPEX+0P1E86e6c/afRn2ueuj794a/Ivy505XS1P1M+63k+/4XFi61/+/3d9DL15d1XZa+6X1e/sXiz7W3Q2zPvst896h73nvV+5Qe3D4c+Jn283VPW06MQKoUAAAoAWVgIPN8K6OcCJi0AZ4RmFwQAEJr9FdD8B/nPvmZfBAAEAPU8YHgnILgO7NkMOBcC3HwgVR/ICAbp69v30VpFoa+PRksvGmDc7el54QywlgIfFvX0dNf19HzYBFC3geNyzQ4KAExDYEPih4KyAvwH0+ynn/X45QmQvr5++PL8F6mCkLerjl90AAAACXBIWXMAAAsTAAALEwEAmpwYAAAE92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjItMDMtMTJUMTQ6MTY6NTArMDE6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIyLTAzLTIwVDEwOjIyOjUxKzAxOjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIyLTAzLTIwVDEwOjIyOjUxKzAxOjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpmZDY2ZDIzMC1mMDk3LTRhMjUtODkxNi1mN2YxMmQ2NTRhNjkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ZmQ2NmQyMzAtZjA5Ny00YTI1LTg5MTYtZjdmMTJkNjU0YTY5IiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6ZmQ2NmQyMzAtZjA5Ny00YTI1LTg5MTYtZjdmMTJkNjU0YTY5Ij4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpmZDY2ZDIzMC1mMDk3LTRhMjUtODkxNi1mN2YxMmQ2NTRhNjkiIHN0RXZ0OndoZW49IjIwMjItMDMtMTJUMTQ6MTY6NTArMDE6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChNYWNpbnRvc2gpIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PjHOcacAAAMOSURBVFiFzZixa1NBHMe/FxOIryWNNUkjJCYQkhJKU2oXsdJowU7t6KZroYNDB7eOgn+Dg0t10MmhrhUUEelm2hDaUmibQBtbQxuaI5JHn4O8cHe59/LuRY3fJbnj97vf5373vSOEzC8t4+W9mcUNzfcc/6mSw9H38U9rzx4d1ndJ9e27xa3Q0It+QznR1MbHjEfsbL1Bu35XjZflqtYBgPLMwgpZX/9gWEbYqN6gCAxofzVPjKWU1jyU0pos0MnYSddFBQa0rh1nY1lpmjbskSWJgbKOpBJJgy3OFmTjZcedSiQNuxyrDVBKaxxwt6R6g6LeoEglksZ4bozcvnO3PW91zOa8uVY6k8Z4boykM2lpvKxpLIenI8NmAwAwNTmB8dwYAQDN78Pcgznp5mQQU5MTiMdiAIB4LIbpfL4jT1bTnOMsIR6t1edZ7Zy7pCa06E0xbzqfb8OaOt4/4NbqVptSWlN+Jczjn529z83TZgtfv3zm7MHChgODXPxmoWjsHewT1ZeGFL5tXSplADg5/U7CoYhhWsOU3tJRKm1zDYgmE0SELVcq2N3ZRTgUUX5SXQGzsoNOZTJE8/s6YEVbqcj20rEyRjxENr9ZKHLFvT4vUpkMiSYTfxwWkACzYOx3Ur20LLRZKBp6S2+PNb+vw7PdYMWGWDWoZ0uwkllA5ute5NgSweEhaed7FbuubCxKCixLYo9TZg9Zd4HfnhYvptW6srHYHCmw6sXIZkc5WL2lgzZbXIwI7fSUxOY4toSVstlR4vV5ublSadvY29nhLiLAQ9tdYjvZAlu9GFawektHuVLhwGWd7uZTu+6Tw3LZ1U7F3wUAOFhWN0aiEE/BKrabXFlCBRYAjqrHEO0Rj8XgDwSVaysDXw+NdMw56ZYM+tpVv2p5deAfp1Wc1C/aY5WjZaFps4Wj6rFqefce9geCaNbP3KT2lOv6WXNbsNfcnt/hfy1POBJd7TeEU50fVlevPB3wFH/mbj3pN4wTRdbePCTzS8t4fTOQLs8srBiD/sf9hpKJXDRfmX8G/gKUwMkA3my/NwAAAABJRU5ErkJggg==", kt = {
|
|
323
323
|
AC: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 513 342'%3e%3cpath fill='%230052B4' d='M0 0h513v342H0z'/%3e%3cpath fill='white' d='M440.1 181.1c-.1 39.2-6.4 81.4-57.4 101.5-51.1-20.1-57.3-62.3-57.4-101.5h114.8z'/%3e%3cpath fill='%2329DBFF' d='M439.6 197.7c-2.8 34.9-12.4 67.4-57 85-44.4-17.6-54.5-51.2-56.9-84.9'/%3e%3cpath fill='white' d='M437.8 214.1c-3.2 24.3-16.7 53.5-55.1 68.6-38.4-15.1-50.5-42.5-55.1-68.4'/%3e%3cpath fill='%2329DBFF' d='M434.2 230.3c-5.7 17.7-19.3 39.4-51.3 52.8-32-12.6-45.2-33.8-51.4-53'/%3e%3cpath fill='white' d='M426.7 246.9c-6.5 11.3-17.7 25.4-44 35.9-27.5-11.5-37.4-25.3-44-36.1'/%3e%3cpath fill='%2329DBFF' d='M412.4 265.1c-8.1 7.2-12 11.2-29.6 17.9-20.1-7.9-22.6-11.6-29.2-17.5'/%3e%3cpath fill='%235CC85C' d='M383.3 231.6c-.2-.2-27.9 35.7-27.9 35.7-1.8-1.3-10-9.5-13.3-15l41.3-50.1 40.2 49.7c-3.9 6.5-11.4 13.6-13.2 15M382.6 85.3l-26.5 45h53z'/%3e%3cellipse transform='rotate(-82.3 291.431 225.686)' fill='%23F7A226' cx='291.4' cy='225.7' rx='48.7' ry='15.7'/%3e%3cellipse transform='rotate(-68.099 303.087 164.67)' fill='%23DDC7AB' cx='303.1' cy='164.7' rx='11.7' ry='7.2'/%3e%3cellipse transform='rotate(-81.738 291.697 271.697)' fill='%23DDC7AB' cx='291.7' cy='271.7' rx='11.4' ry='3.3'/%3e%3cellipse transform='matrix(.9986 -.05353 .05353 .9986 -13.992 16.424)' fill='%23DDC7AB' cx='299.6' cy='269.4' rx='3.3' ry='11'/%3e%3cellipse transform='rotate(-21.518 314.54 201.06)' fill='%23DDC7AB' cx='314.5' cy='201.1' rx='4.1' ry='13.7'/%3e%3cellipse transform='rotate(-21.518 317.511 178.077)' fill='%23DDC7AB' cx='317.5' cy='178.1' rx='13.7' ry='4.1'/%3e%3cellipse transform='rotate(-7.7 473.781 225.857)' fill='%23F7A226' cx='473.6' cy='225.9' rx='15.7' ry='48.7'/%3e%3cellipse transform='rotate(-21.901 462.057 164.866)' fill='%23DDC7AB' cx='462' cy='164.9' rx='7.2' ry='11.7'/%3e%3cellipse transform='rotate(-8.27 473.27 271.908)' fill='%23DDC7AB' cx='473.4' cy='271.9' rx='3.3' ry='11.4'/%3e%3cellipse transform='matrix(.05353 -.9986 .9986 .05353 171.34 719.998)' fill='%23DDC7AB' cx='465.5' cy='269.6' rx='11' ry='3.3'/%3e%3cellipse transform='rotate(-68.482 450.552 201.247)' fill='%23DDC7AB' cx='450.6' cy='201.2' rx='13.7' ry='4.1'/%3e%3cellipse transform='rotate(-68.482 447.58 178.265)' fill='%23DDC7AB' cx='447.6' cy='178.3' rx='4.1' ry='13.7'/%3e%3cpath fill='%23B0C6CC' d='M373.3 130.3L356.1 155l17.8 26.1H396l4.7-25.4-5.4-25.4z'/%3e%3cpath fill='white' d='M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z'/%3e%3cpath fill='%23D80027' d='M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z'/%3e%3cpath fill='%232E52B2' d='M256 22.7v30.7h-46.1z'/%3e%3cpath fill='%23D80027' d='M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6l-77.8-53.3h22.6l62.5 42.3v11z'/%3e%3c/svg%3e",
|
|
324
324
|
TA: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 341.3'%3e%3cpath fill='%230052B4' d='M0 0h512v341.3H0z'/%3e%3cpath fill='white' d='M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z'/%3e%3cg fill='%23D80027'%3e%3cpath d='M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z'/%3e%3cpath d='M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z'/%3e%3c/g%3e%3cpath fill='%232E52B2' d='M256 22.7v30.7h-46.1z'/%3e%3cpath d='M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z' fill='%23D80027'/%3e%3cpath fill='%232E52B2' d='M256 22.7v30.7h-46.1z'/%3e%3cpath d='M0 170.7v-15.1l57.4-38.2H80zm256 0v-15.1l-57.4-38.2H176z' fill='%23D80027'/%3e%3cpath fill='%2329DBFF' d='M448.9 169.5c0 9.6-.3 29.6-1.4 39.2-4.1 34.9-23.5 68.8-62.1 85.9-45.3-17.9-60.8-51-64.9-85.9-1.1-9.6-1.5-19.4-1.5-29l.3-47.1h129.2l.4 36.9z'/%3e%3cpath fill='white' d='M447.5 208.7c-.2 1.6-.4 3.3-.6 4.9-4.8 33.1-22.9 65.4-61.5 81-43.2-17-59.4-47.9-64.2-81-.2-1.6-.4-3.2-.6-4.9'/%3e%3cpath fill='%2329DBFF' d='M385.4 251.7l-22.9-43h45.8z'/%3e%3cpath fill='white' d='M385.4 165.8l-22.9 42.9h45.8z'/%3e%3cellipse fill='%23FFBE57' cx='474.8' cy='236.8' rx='16.8' ry='43.3'/%3e%3cellipse fill='%23FFBE57' cx='295.3' cy='236.8' rx='16.8' ry='43.3'/%3e%3cpath fill='white' d='M385.4 31.5l-33.4 44h68.5zM315.5 280s33.8 29.5 69.9 29.5 67.1-29.5 67.1-29.5l8.5 14.6S439.2 326 385.4 326 307 294.6 307 294.6l8.5-14.6z'/%3e%3cellipse fill='%23A5A5A5' cx='386.3' cy='104.3' rx='34.3' ry='23.3'/%3e%3c/svg%3e"
|
|
325
|
-
},
|
|
326
|
-
TA:
|
|
327
|
-
AC:
|
|
328
|
-
}[t] : `https://flagcdn.com/w40/${t.toLowerCase()}.webp`, Ft = ({
|
|
325
|
+
}, Hn = (t) => t === "TA" || t === "AC" ? {
|
|
326
|
+
TA: kt.TA,
|
|
327
|
+
AC: kt.AC
|
|
328
|
+
}[t] : `https://flagcdn.com/w40/${t.toLowerCase()}.webp`, Ft = "MuiTelInput-FlagImg", wt = ({
|
|
329
329
|
isoCode: t,
|
|
330
330
|
countryName: n
|
|
331
331
|
}) => ({
|
|
332
|
-
src:
|
|
332
|
+
src: Hn(t),
|
|
333
333
|
loading: "lazy",
|
|
334
334
|
width: 26,
|
|
335
|
-
alt: n
|
|
336
|
-
|
|
335
|
+
alt: n,
|
|
336
|
+
className: Ft
|
|
337
|
+
}), Vn = (t, { countryName: n }) => /* @__PURE__ */ C("img", { ...wt({ isoCode: t, countryName: n }) }), Zn = /* @__PURE__ */ C(
|
|
338
|
+
"img",
|
|
339
|
+
{
|
|
340
|
+
src: Wn,
|
|
341
|
+
loading: "lazy",
|
|
342
|
+
width: 26,
|
|
343
|
+
alt: "unknown",
|
|
344
|
+
className: Ft
|
|
345
|
+
}
|
|
346
|
+
);
|
|
337
347
|
function G(...t) {
|
|
338
348
|
process.env.NODE_ENV !== "production" && console.error(...t);
|
|
339
349
|
}
|
|
340
|
-
function
|
|
350
|
+
function Be(t = q) {
|
|
341
351
|
try {
|
|
342
352
|
return new Intl.DisplayNames(t, {
|
|
343
353
|
type: "region"
|
|
@@ -348,14 +358,14 @@ function Ge(t = q) {
|
|
|
348
358
|
});
|
|
349
359
|
}
|
|
350
360
|
}
|
|
351
|
-
const
|
|
352
|
-
CallingCodeSplitted: J(
|
|
353
|
-
borderRight: `1px solid ${
|
|
361
|
+
const Yn = {
|
|
362
|
+
CallingCodeSplitted: J(Me)({
|
|
363
|
+
borderRight: `1px solid ${xn[300]}`,
|
|
354
364
|
paddingRight: 10,
|
|
355
365
|
cursor: "default",
|
|
356
366
|
pointerEvents: "none"
|
|
357
367
|
})
|
|
358
|
-
}, yt = "MuiTelInput-IconButton",
|
|
368
|
+
}, yt = "MuiTelInput-IconButton", zn = ({
|
|
359
369
|
disableDropdown: t = !1,
|
|
360
370
|
forceCallingCode: n = !1,
|
|
361
371
|
langOfCountryName: e = q,
|
|
@@ -365,17 +375,17 @@ const Zn = {
|
|
|
365
375
|
isoCode: a,
|
|
366
376
|
...o
|
|
367
377
|
}) => {
|
|
368
|
-
const u = m.useMemo(() =>
|
|
378
|
+
const u = m.useMemo(() => Be(e), [e]), l = /* @__PURE__ */ C(_e, { isoCode: a, children: a ? d(a, {
|
|
369
379
|
countryName: u.of(a) || "",
|
|
370
380
|
isSelected: !0,
|
|
371
|
-
imgProps:
|
|
381
|
+
imgProps: wt({
|
|
372
382
|
isoCode: a,
|
|
373
383
|
countryName: u.of(a) || ""
|
|
374
384
|
})
|
|
375
385
|
}) : i });
|
|
376
|
-
return /* @__PURE__ */ V(
|
|
386
|
+
return /* @__PURE__ */ V(De, { children: [
|
|
377
387
|
t ? /* @__PURE__ */ C(
|
|
378
|
-
|
|
388
|
+
_t,
|
|
379
389
|
{
|
|
380
390
|
tabIndex: -1,
|
|
381
391
|
className: yt,
|
|
@@ -386,7 +396,7 @@ const Zn = {
|
|
|
386
396
|
children: l
|
|
387
397
|
}
|
|
388
398
|
) : /* @__PURE__ */ C(
|
|
389
|
-
|
|
399
|
+
_t,
|
|
390
400
|
{
|
|
391
401
|
...o,
|
|
392
402
|
"aria-label": "Select country",
|
|
@@ -398,26 +408,26 @@ const Zn = {
|
|
|
398
408
|
children: l
|
|
399
409
|
}
|
|
400
410
|
),
|
|
401
|
-
n && a ? /* @__PURE__ */ V(
|
|
411
|
+
n && a ? /* @__PURE__ */ V(Yn.CallingCodeSplitted, { children: [
|
|
402
412
|
"+",
|
|
403
413
|
tt(a)
|
|
404
414
|
] }) : null
|
|
405
415
|
] });
|
|
406
|
-
},
|
|
407
|
-
ListItemIcon: J(
|
|
416
|
+
}, Gt = {
|
|
417
|
+
ListItemIcon: J(En)({
|
|
408
418
|
marginRight: "10px"
|
|
409
419
|
}),
|
|
410
|
-
ListItemText: J(
|
|
420
|
+
ListItemText: J(Sn)({
|
|
411
421
|
marginRight: "10px"
|
|
412
422
|
})
|
|
413
|
-
},
|
|
423
|
+
}, je = "MuiTelInput-MenuItem", Ue = "MuiTelInput-ListItemIcon-flag", We = "MuiTelInput-ListItemText-country", He = "MuiTelInput-Typography-calling-code", Xn = ({
|
|
414
424
|
isoCode: t,
|
|
415
425
|
onSelectCountry: n,
|
|
416
426
|
countryName: e,
|
|
417
427
|
getFlagElement: r,
|
|
418
428
|
...d
|
|
419
429
|
}) => /* @__PURE__ */ V(
|
|
420
|
-
|
|
430
|
+
On,
|
|
421
431
|
{
|
|
422
432
|
...d,
|
|
423
433
|
onClick: (a) => {
|
|
@@ -425,20 +435,20 @@ const Zn = {
|
|
|
425
435
|
},
|
|
426
436
|
role: "option",
|
|
427
437
|
"data-testid": `option-${t}`,
|
|
428
|
-
className:
|
|
438
|
+
className: je,
|
|
429
439
|
children: [
|
|
430
|
-
/* @__PURE__ */ C(
|
|
440
|
+
/* @__PURE__ */ C(Gt.ListItemIcon, { className: Ue, children: /* @__PURE__ */ C(_e, { isoCode: t, children: r(t, {
|
|
431
441
|
countryName: e,
|
|
432
442
|
isSelected: !1,
|
|
433
|
-
imgProps:
|
|
443
|
+
imgProps: wt({ isoCode: t, countryName: e })
|
|
434
444
|
}) }) }),
|
|
435
|
-
/* @__PURE__ */ C(
|
|
445
|
+
/* @__PURE__ */ C(Gt.ListItemText, { className: We, children: e }),
|
|
436
446
|
/* @__PURE__ */ V(
|
|
437
|
-
|
|
447
|
+
Me,
|
|
438
448
|
{
|
|
439
449
|
variant: "body2",
|
|
440
450
|
color: "text.secondary",
|
|
441
|
-
className:
|
|
451
|
+
className: He,
|
|
442
452
|
children: [
|
|
443
453
|
"+",
|
|
444
454
|
B[t]?.[0]
|
|
@@ -447,35 +457,35 @@ const Zn = {
|
|
|
447
457
|
)
|
|
448
458
|
]
|
|
449
459
|
}
|
|
450
|
-
),
|
|
460
|
+
), Kn = m.memo(Xn), Qn = [], Jn = [], qn = [], tr = [], Ve = "MuiTelInput-Menu", er = ({
|
|
451
461
|
anchorEl: t,
|
|
452
462
|
isoCode: n,
|
|
453
463
|
onSelectCountry: e,
|
|
454
|
-
excludedCountries: r =
|
|
455
|
-
onlyCountries: d =
|
|
464
|
+
excludedCountries: r = Qn,
|
|
465
|
+
onlyCountries: d = Jn,
|
|
456
466
|
langOfCountryName: i = q,
|
|
457
|
-
continents: a =
|
|
458
|
-
preferredCountries: o =
|
|
467
|
+
continents: a = qn,
|
|
468
|
+
preferredCountries: o = tr,
|
|
459
469
|
className: u,
|
|
460
470
|
getFlagElement: l,
|
|
461
471
|
...$
|
|
462
472
|
}) => {
|
|
463
|
-
const c = m.useMemo(() =>
|
|
464
|
-
|
|
473
|
+
const c = m.useMemo(() => Be(i), [i]), f = Un(
|
|
474
|
+
_n,
|
|
465
475
|
c
|
|
466
|
-
), h =
|
|
476
|
+
), h = jn(f, {
|
|
467
477
|
onlyCountries: d,
|
|
468
478
|
excludedCountries: r,
|
|
469
479
|
continents: a,
|
|
470
480
|
preferredCountries: o
|
|
471
481
|
});
|
|
472
482
|
return /* @__PURE__ */ C(
|
|
473
|
-
|
|
483
|
+
Tn,
|
|
474
484
|
{
|
|
475
485
|
anchorEl: t,
|
|
476
486
|
open: !!t,
|
|
477
487
|
id: "select-country",
|
|
478
|
-
className: `${
|
|
488
|
+
className: `${Ve} ${u || ""}`,
|
|
479
489
|
MenuListProps: {
|
|
480
490
|
role: "listbox",
|
|
481
491
|
"aria-activedescendant": n ? `country-${n}` : "",
|
|
@@ -483,7 +493,7 @@ const Zn = {
|
|
|
483
493
|
},
|
|
484
494
|
...$,
|
|
485
495
|
children: h.map((g) => /* @__PURE__ */ C(
|
|
486
|
-
|
|
496
|
+
Kn,
|
|
487
497
|
{
|
|
488
498
|
onSelectCountry: e,
|
|
489
499
|
isoCode: g,
|
|
@@ -497,17 +507,17 @@ const Zn = {
|
|
|
497
507
|
}
|
|
498
508
|
);
|
|
499
509
|
};
|
|
500
|
-
function
|
|
510
|
+
function nr(t) {
|
|
501
511
|
const { length: n } = t.value;
|
|
502
512
|
t.setSelectionRange(n, n);
|
|
503
513
|
}
|
|
504
|
-
function
|
|
505
|
-
typeof n == "function" ? n(t) : n &&
|
|
514
|
+
function st(t, n) {
|
|
515
|
+
typeof n == "function" ? n(t) : n && Mn(n) && "current" in n && (n.current = t);
|
|
506
516
|
}
|
|
507
|
-
function
|
|
517
|
+
function Ze(t, n) {
|
|
508
518
|
return t.replace(n, "");
|
|
509
519
|
}
|
|
510
|
-
function
|
|
520
|
+
function rr(t) {
|
|
511
521
|
const {
|
|
512
522
|
defaultCountry: n,
|
|
513
523
|
onlyCountries: e,
|
|
@@ -517,7 +527,7 @@ function nr(t) {
|
|
|
517
527
|
} = t;
|
|
518
528
|
m.useEffect(() => {
|
|
519
529
|
if (e && r) {
|
|
520
|
-
const a =
|
|
530
|
+
const a = kn(
|
|
521
531
|
e,
|
|
522
532
|
r
|
|
523
533
|
);
|
|
@@ -543,7 +553,7 @@ function nr(t) {
|
|
|
543
553
|
);
|
|
544
554
|
}, [n, i]);
|
|
545
555
|
}
|
|
546
|
-
function
|
|
556
|
+
function Ye(t, n) {
|
|
547
557
|
var e = Array.prototype.slice.call(n);
|
|
548
558
|
return e.push(Tt), t.apply(this, e);
|
|
549
559
|
}
|
|
@@ -555,26 +565,26 @@ function pt(t) {
|
|
|
555
565
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
556
566
|
}, pt(t);
|
|
557
567
|
}
|
|
558
|
-
function
|
|
568
|
+
function Bt(t, n) {
|
|
559
569
|
for (var e = 0; e < n.length; e++) {
|
|
560
570
|
var r = n[e];
|
|
561
571
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
562
572
|
}
|
|
563
573
|
}
|
|
564
|
-
function
|
|
565
|
-
return n &&
|
|
574
|
+
function dr(t, n, e) {
|
|
575
|
+
return n && Bt(t.prototype, n), e && Bt(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
566
576
|
}
|
|
567
|
-
function
|
|
577
|
+
function ir(t, n) {
|
|
568
578
|
if (!(t instanceof n))
|
|
569
579
|
throw new TypeError("Cannot call a class as a function");
|
|
570
580
|
}
|
|
571
|
-
function
|
|
581
|
+
function ar(t, n) {
|
|
572
582
|
if (typeof n != "function" && n !== null)
|
|
573
583
|
throw new TypeError("Super expression must either be null or a function");
|
|
574
584
|
t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), n && Z(t, n);
|
|
575
585
|
}
|
|
576
|
-
function
|
|
577
|
-
var n =
|
|
586
|
+
function or(t) {
|
|
587
|
+
var n = Xe();
|
|
578
588
|
return function() {
|
|
579
589
|
var r = Y(t), d;
|
|
580
590
|
if (n) {
|
|
@@ -582,17 +592,17 @@ function ar(t) {
|
|
|
582
592
|
d = Reflect.construct(r, arguments, i);
|
|
583
593
|
} else
|
|
584
594
|
d = r.apply(this, arguments);
|
|
585
|
-
return
|
|
595
|
+
return ur(this, d);
|
|
586
596
|
};
|
|
587
597
|
}
|
|
588
|
-
function
|
|
598
|
+
function ur(t, n) {
|
|
589
599
|
if (n && (pt(n) === "object" || typeof n == "function"))
|
|
590
600
|
return n;
|
|
591
601
|
if (n !== void 0)
|
|
592
602
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
593
|
-
return
|
|
603
|
+
return ze(t);
|
|
594
604
|
}
|
|
595
|
-
function
|
|
605
|
+
function ze(t) {
|
|
596
606
|
if (t === void 0)
|
|
597
607
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
598
608
|
return t;
|
|
@@ -600,7 +610,7 @@ function Ye(t) {
|
|
|
600
610
|
function vt(t) {
|
|
601
611
|
var n = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
602
612
|
return vt = function(r) {
|
|
603
|
-
if (r === null || !
|
|
613
|
+
if (r === null || !lr(r))
|
|
604
614
|
return r;
|
|
605
615
|
if (typeof r != "function")
|
|
606
616
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -616,14 +626,14 @@ function vt(t) {
|
|
|
616
626
|
}, vt(t);
|
|
617
627
|
}
|
|
618
628
|
function K(t, n, e) {
|
|
619
|
-
return
|
|
629
|
+
return Xe() ? K = Reflect.construct : K = function(d, i, a) {
|
|
620
630
|
var o = [null];
|
|
621
631
|
o.push.apply(o, i);
|
|
622
632
|
var u = Function.bind.apply(d, o), l = new u();
|
|
623
633
|
return a && Z(l, a.prototype), l;
|
|
624
634
|
}, K.apply(null, arguments);
|
|
625
635
|
}
|
|
626
|
-
function
|
|
636
|
+
function Xe() {
|
|
627
637
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
628
638
|
return !1;
|
|
629
639
|
if (typeof Proxy == "function")
|
|
@@ -635,7 +645,7 @@ function ze() {
|
|
|
635
645
|
return !1;
|
|
636
646
|
}
|
|
637
647
|
}
|
|
638
|
-
function
|
|
648
|
+
function lr(t) {
|
|
639
649
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
640
650
|
}
|
|
641
651
|
function Z(t, n) {
|
|
@@ -649,15 +659,15 @@ function Y(t) {
|
|
|
649
659
|
}, Y(t);
|
|
650
660
|
}
|
|
651
661
|
var E = /* @__PURE__ */ function(t) {
|
|
652
|
-
|
|
653
|
-
var n =
|
|
662
|
+
ar(e, t);
|
|
663
|
+
var n = or(e);
|
|
654
664
|
function e(r) {
|
|
655
665
|
var d;
|
|
656
|
-
return
|
|
666
|
+
return ir(this, e), d = n.call(this, r), Object.setPrototypeOf(ze(d), e.prototype), d.name = d.constructor.name, d;
|
|
657
667
|
}
|
|
658
|
-
return
|
|
659
|
-
}(/* @__PURE__ */ vt(Error)),
|
|
660
|
-
function
|
|
668
|
+
return dr(e);
|
|
669
|
+
}(/* @__PURE__ */ vt(Error)), Dt = 2, $r = 17, sr = 3, N = "0-90-9٠-٩۰-۹", fr = "-‐-―−ー-", cr = "//", hr = "..", gr = " ", mr = "()()[]\\[\\]", yr = "~⁓∼~", x = "".concat(fr).concat(cr).concat(hr).concat(gr).concat(mr).concat(yr), rt = "++";
|
|
670
|
+
function jt(t, n) {
|
|
661
671
|
t = t.split("-"), n = n.split("-");
|
|
662
672
|
for (var e = t[0].split("."), r = n[0].split("."), d = 0; d < 3; d++) {
|
|
663
673
|
var i = Number(e[d]), a = Number(r[d]);
|
|
@@ -672,9 +682,9 @@ function Bt(t, n) {
|
|
|
672
682
|
}
|
|
673
683
|
return t[1] && n[1] ? t[1] > n[1] ? 1 : t[1] < n[1] ? -1 : 0 : !t[1] && n[1] ? 1 : t[1] && !n[1] ? -1 : 0;
|
|
674
684
|
}
|
|
675
|
-
var
|
|
685
|
+
var pr = {}.constructor;
|
|
676
686
|
function R(t) {
|
|
677
|
-
return t != null && t.constructor ===
|
|
687
|
+
return t != null && t.constructor === pr;
|
|
678
688
|
}
|
|
679
689
|
function Ct(t) {
|
|
680
690
|
"@babel/helpers - typeof";
|
|
@@ -688,18 +698,18 @@ function dt(t, n) {
|
|
|
688
698
|
if (!(t instanceof n))
|
|
689
699
|
throw new TypeError("Cannot call a class as a function");
|
|
690
700
|
}
|
|
691
|
-
function
|
|
701
|
+
function Ut(t, n) {
|
|
692
702
|
for (var e = 0; e < n.length; e++) {
|
|
693
703
|
var r = n[e];
|
|
694
704
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
695
705
|
}
|
|
696
706
|
}
|
|
697
707
|
function it(t, n, e) {
|
|
698
|
-
return n &&
|
|
708
|
+
return n && Ut(t.prototype, n), e && Ut(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
699
709
|
}
|
|
700
|
-
var
|
|
710
|
+
var vr = "1.2.0", Cr = "1.7.35", Wt = " ext. ", Nr = /^\d+$/, v = /* @__PURE__ */ function() {
|
|
701
711
|
function t(n) {
|
|
702
|
-
dt(this, t),
|
|
712
|
+
dt(this, t), Ir(n), this.metadata = n, Ke.call(this, n);
|
|
703
713
|
}
|
|
704
714
|
return it(t, [{
|
|
705
715
|
key: "getCountries",
|
|
@@ -752,14 +762,14 @@ var pr = "1.2.0", vr = "1.7.35", Ut = " ext. ", Cr = /^\d+$/, v = /* @__PURE__ *
|
|
|
752
762
|
}, {
|
|
753
763
|
key: "selectNumberingPlan",
|
|
754
764
|
value: function(e, r) {
|
|
755
|
-
if (e &&
|
|
765
|
+
if (e && Nr.test(e) && (r = e, e = null), e && e !== "001") {
|
|
756
766
|
if (!this.hasCountry(e))
|
|
757
767
|
throw new Error("Unknown country: ".concat(e));
|
|
758
|
-
this.numberingPlan = new
|
|
768
|
+
this.numberingPlan = new Ht(this.getCountryMetadata(e), this);
|
|
759
769
|
} else if (r) {
|
|
760
770
|
if (!this.hasCallingCode(r))
|
|
761
771
|
throw new Error("Unknown calling code: ".concat(r));
|
|
762
|
-
this.numberingPlan = new
|
|
772
|
+
this.numberingPlan = new Ht(this.getNumberingPlanMetadata(r), this);
|
|
763
773
|
} else
|
|
764
774
|
this.numberingPlan = void 0;
|
|
765
775
|
return this;
|
|
@@ -883,9 +893,9 @@ var pr = "1.2.0", vr = "1.7.35", Ut = " ext. ", Cr = /^\d+$/, v = /* @__PURE__ *
|
|
|
883
893
|
return this.numberingPlan !== void 0;
|
|
884
894
|
}
|
|
885
895
|
}]), t;
|
|
886
|
-
}(),
|
|
896
|
+
}(), Ht = /* @__PURE__ */ function() {
|
|
887
897
|
function t(n, e) {
|
|
888
|
-
dt(this, t), this.globalMetadataObject = e, this.metadata = n,
|
|
898
|
+
dt(this, t), this.globalMetadataObject = e, this.metadata = n, Ke.call(this, e.metadata);
|
|
889
899
|
}
|
|
890
900
|
return it(t, [{
|
|
891
901
|
key: "callingCode",
|
|
@@ -942,7 +952,7 @@ var pr = "1.2.0", vr = "1.7.35", Ut = " ext. ", Cr = /^\d+$/, v = /* @__PURE__ *
|
|
|
942
952
|
value: function() {
|
|
943
953
|
var e = this, r = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
|
|
944
954
|
return r.map(function(d) {
|
|
945
|
-
return new
|
|
955
|
+
return new br(d, e);
|
|
946
956
|
});
|
|
947
957
|
}
|
|
948
958
|
}, {
|
|
@@ -1010,16 +1020,16 @@ var pr = "1.2.0", vr = "1.7.35", Ut = " ext. ", Cr = /^\d+$/, v = /* @__PURE__ *
|
|
|
1010
1020
|
}, {
|
|
1011
1021
|
key: "type",
|
|
1012
1022
|
value: function(e) {
|
|
1013
|
-
if (this.hasTypes() &&
|
|
1014
|
-
return new
|
|
1023
|
+
if (this.hasTypes() && Vt(this.types(), e))
|
|
1024
|
+
return new Ar(Vt(this.types(), e), this);
|
|
1015
1025
|
}
|
|
1016
1026
|
}, {
|
|
1017
1027
|
key: "ext",
|
|
1018
1028
|
value: function() {
|
|
1019
|
-
return this.v1 || this.v2 ?
|
|
1029
|
+
return this.v1 || this.v2 ? Wt : this.metadata[13] || Wt;
|
|
1020
1030
|
}
|
|
1021
1031
|
}]), t;
|
|
1022
|
-
}(),
|
|
1032
|
+
}(), br = /* @__PURE__ */ function() {
|
|
1023
1033
|
function t(n, e) {
|
|
1024
1034
|
dt(this, t), this._format = n, this.metadata = e;
|
|
1025
1035
|
}
|
|
@@ -1058,7 +1068,7 @@ var pr = "1.2.0", vr = "1.7.35", Ut = " ext. ", Cr = /^\d+$/, v = /* @__PURE__ *
|
|
|
1058
1068
|
key: "usesNationalPrefix",
|
|
1059
1069
|
value: function() {
|
|
1060
1070
|
return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
|
|
1061
|
-
!
|
|
1071
|
+
!Pr.test(this.nationalPrefixFormattingRule()));
|
|
1062
1072
|
}
|
|
1063
1073
|
}, {
|
|
1064
1074
|
key: "internationalFormat",
|
|
@@ -1066,7 +1076,7 @@ var pr = "1.2.0", vr = "1.7.35", Ut = " ext. ", Cr = /^\d+$/, v = /* @__PURE__ *
|
|
|
1066
1076
|
return this._format[5] || this.format();
|
|
1067
1077
|
}
|
|
1068
1078
|
}]), t;
|
|
1069
|
-
}(),
|
|
1079
|
+
}(), Pr = /^\(?\$1\)?$/, Ar = /* @__PURE__ */ function() {
|
|
1070
1080
|
function t(n, e) {
|
|
1071
1081
|
dt(this, t), this.type = n, this.metadata = e;
|
|
1072
1082
|
}
|
|
@@ -1083,7 +1093,7 @@ var pr = "1.2.0", vr = "1.7.35", Ut = " ext. ", Cr = /^\d+$/, v = /* @__PURE__ *
|
|
|
1083
1093
|
}
|
|
1084
1094
|
}]), t;
|
|
1085
1095
|
}();
|
|
1086
|
-
function
|
|
1096
|
+
function Vt(t, n) {
|
|
1087
1097
|
switch (n) {
|
|
1088
1098
|
case "FIXED_LINE":
|
|
1089
1099
|
return t[0];
|
|
@@ -1107,52 +1117,52 @@ function Ht(t, n) {
|
|
|
1107
1117
|
return t[9];
|
|
1108
1118
|
}
|
|
1109
1119
|
}
|
|
1110
|
-
function
|
|
1120
|
+
function Ir(t) {
|
|
1111
1121
|
if (!t)
|
|
1112
1122
|
throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
|
|
1113
1123
|
if (!R(t) || !R(t.countries))
|
|
1114
|
-
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(R(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " +
|
|
1124
|
+
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(R(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " + xr(t) + ": " + t, "."));
|
|
1115
1125
|
}
|
|
1116
|
-
var
|
|
1126
|
+
var xr = function(n) {
|
|
1117
1127
|
return Ct(n);
|
|
1118
1128
|
};
|
|
1119
|
-
function
|
|
1129
|
+
function Mt(t, n) {
|
|
1120
1130
|
if (n = new v(n), n.hasCountry(t))
|
|
1121
1131
|
return n.country(t).countryCallingCode();
|
|
1122
1132
|
throw new Error("Unknown country: ".concat(t));
|
|
1123
1133
|
}
|
|
1124
|
-
function
|
|
1134
|
+
function Or(t, n) {
|
|
1125
1135
|
return n.countries.hasOwnProperty(t);
|
|
1126
1136
|
}
|
|
1127
|
-
function
|
|
1137
|
+
function Ke(t) {
|
|
1128
1138
|
var n = t.version;
|
|
1129
|
-
typeof n == "number" ? (this.v1 = n === 1, this.v2 = n === 2, this.v3 = n === 3, this.v4 = n === 4) : n ?
|
|
1139
|
+
typeof n == "number" ? (this.v1 = n === 1, this.v2 = n === 2, this.v3 = n === 3, this.v4 = n === 4) : n ? jt(n, vr) === -1 ? this.v2 = !0 : jt(n, Cr) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
1130
1140
|
}
|
|
1131
|
-
var
|
|
1141
|
+
var Er = ";ext=", k = function(n) {
|
|
1132
1142
|
return "([".concat(N, "]{1,").concat(n, "})");
|
|
1133
1143
|
};
|
|
1134
|
-
function
|
|
1135
|
-
var n = "20", e = "15", r = "9", d = "6", i = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", o = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", $ = "[- ]+", c = "[ \\t]*",
|
|
1144
|
+
function Qe(t) {
|
|
1145
|
+
var n = "20", e = "15", r = "9", d = "6", i = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", o = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", $ = "[- ]+", c = "[ \\t]*", f = "(?:,{2}|;)", h = Er + k(n), g = i + u + a + k(n) + o, b = i + l + a + k(r) + o, p = $ + k(d) + "#", D = c + f + a + k(e) + o, j = c + "(?:,)+" + a + k(r) + o;
|
|
1136
1146
|
return h + "|" + g + "|" + b + "|" + p + "|" + D + "|" + j;
|
|
1137
1147
|
}
|
|
1138
|
-
var
|
|
1139
|
-
"(?:" +
|
|
1148
|
+
var Sr = "[" + N + "]{" + Dt + "}", Tr = "[" + rt + "]{0,1}(?:[" + x + "]*[" + N + "]){3,}[" + x + N + "]*", Fr = new RegExp("^[" + rt + "]{0,1}(?:[" + x + "]*[" + N + "]){1,2}$", "i"), wr = Tr + // Phone number extensions
|
|
1149
|
+
"(?:" + Qe() + ")?", Dr = new RegExp(
|
|
1140
1150
|
// Either a short two-digit-only phone number
|
|
1141
|
-
"^" +
|
|
1151
|
+
"^" + Sr + "$|^" + wr + "$",
|
|
1142
1152
|
"i"
|
|
1143
1153
|
);
|
|
1144
1154
|
function Nt(t) {
|
|
1145
|
-
return t.length >=
|
|
1146
|
-
}
|
|
1147
|
-
function Dr(t) {
|
|
1148
|
-
return Tr.test(t);
|
|
1155
|
+
return t.length >= Dt && Dr.test(t);
|
|
1149
1156
|
}
|
|
1150
|
-
var Vt = new RegExp("(?:" + Ke() + ")$", "i");
|
|
1151
1157
|
function Mr(t) {
|
|
1152
|
-
|
|
1158
|
+
return Fr.test(t);
|
|
1159
|
+
}
|
|
1160
|
+
var Zt = new RegExp("(?:" + Qe() + ")$", "i");
|
|
1161
|
+
function Rr(t) {
|
|
1162
|
+
var n = t.search(Zt);
|
|
1153
1163
|
if (n < 0)
|
|
1154
1164
|
return {};
|
|
1155
|
-
for (var e = t.slice(0, n), r = t.match(
|
|
1165
|
+
for (var e = t.slice(0, n), r = t.match(Zt), d = 1; d < r.length; ) {
|
|
1156
1166
|
if (r[d])
|
|
1157
1167
|
return {
|
|
1158
1168
|
number: e,
|
|
@@ -1161,11 +1171,11 @@ function Mr(t) {
|
|
|
1161
1171
|
d++;
|
|
1162
1172
|
}
|
|
1163
1173
|
}
|
|
1164
|
-
function
|
|
1174
|
+
function _r(t, n) {
|
|
1165
1175
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1166
1176
|
if (e)
|
|
1167
1177
|
return (e = e.call(t)).next.bind(e);
|
|
1168
|
-
if (Array.isArray(t) || (e =
|
|
1178
|
+
if (Array.isArray(t) || (e = Lr(t)) || n && t && typeof t.length == "number") {
|
|
1169
1179
|
e && (t = e);
|
|
1170
1180
|
var r = 0;
|
|
1171
1181
|
return function() {
|
|
@@ -1175,24 +1185,24 @@ function Rr(t, n) {
|
|
|
1175
1185
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1176
1186
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1177
1187
|
}
|
|
1178
|
-
function
|
|
1188
|
+
function Lr(t, n) {
|
|
1179
1189
|
if (t) {
|
|
1180
1190
|
if (typeof t == "string")
|
|
1181
|
-
return
|
|
1191
|
+
return Yt(t, n);
|
|
1182
1192
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1183
1193
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1184
1194
|
return Array.from(t);
|
|
1185
1195
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1186
|
-
return
|
|
1196
|
+
return Yt(t, n);
|
|
1187
1197
|
}
|
|
1188
1198
|
}
|
|
1189
|
-
function
|
|
1199
|
+
function Yt(t, n) {
|
|
1190
1200
|
(n == null || n > t.length) && (n = t.length);
|
|
1191
1201
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
1192
1202
|
r[e] = t[e];
|
|
1193
1203
|
return r;
|
|
1194
1204
|
}
|
|
1195
|
-
var
|
|
1205
|
+
var kr = {
|
|
1196
1206
|
0: "0",
|
|
1197
1207
|
1: "1",
|
|
1198
1208
|
2: "2",
|
|
@@ -1264,21 +1274,21 @@ var Lr = {
|
|
|
1264
1274
|
"۹": "9"
|
|
1265
1275
|
// Eastern-Arabic digit 9
|
|
1266
1276
|
};
|
|
1267
|
-
function
|
|
1268
|
-
return
|
|
1277
|
+
function Je(t) {
|
|
1278
|
+
return kr[t];
|
|
1269
1279
|
}
|
|
1270
1280
|
function et(t) {
|
|
1271
|
-
for (var n = "", e =
|
|
1272
|
-
var d = r.value, i =
|
|
1281
|
+
for (var n = "", e = _r(t.split("")), r; !(r = e()).done; ) {
|
|
1282
|
+
var d = r.value, i = Je(d);
|
|
1273
1283
|
i && (n += i);
|
|
1274
1284
|
}
|
|
1275
1285
|
return n;
|
|
1276
1286
|
}
|
|
1277
|
-
function
|
|
1287
|
+
function Gr(t, n) {
|
|
1278
1288
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1279
1289
|
if (e)
|
|
1280
1290
|
return (e = e.call(t)).next.bind(e);
|
|
1281
|
-
if (Array.isArray(t) || (e =
|
|
1291
|
+
if (Array.isArray(t) || (e = Br(t)) || n && t && typeof t.length == "number") {
|
|
1282
1292
|
e && (t = e);
|
|
1283
1293
|
var r = 0;
|
|
1284
1294
|
return function() {
|
|
@@ -1288,31 +1298,31 @@ function kr(t, n) {
|
|
|
1288
1298
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1289
1299
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1290
1300
|
}
|
|
1291
|
-
function
|
|
1301
|
+
function Br(t, n) {
|
|
1292
1302
|
if (t) {
|
|
1293
1303
|
if (typeof t == "string")
|
|
1294
|
-
return
|
|
1304
|
+
return zt(t, n);
|
|
1295
1305
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1296
1306
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1297
1307
|
return Array.from(t);
|
|
1298
1308
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1299
|
-
return
|
|
1309
|
+
return zt(t, n);
|
|
1300
1310
|
}
|
|
1301
1311
|
}
|
|
1302
|
-
function
|
|
1312
|
+
function zt(t, n) {
|
|
1303
1313
|
(n == null || n > t.length) && (n = t.length);
|
|
1304
1314
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
1305
1315
|
r[e] = t[e];
|
|
1306
1316
|
return r;
|
|
1307
1317
|
}
|
|
1308
|
-
function
|
|
1309
|
-
for (var n = "", e =
|
|
1318
|
+
function Xt(t) {
|
|
1319
|
+
for (var n = "", e = Gr(t.split("")), r; !(r = e()).done; ) {
|
|
1310
1320
|
var d = r.value;
|
|
1311
|
-
n +=
|
|
1321
|
+
n += jr(d, n) || "";
|
|
1312
1322
|
}
|
|
1313
1323
|
return n;
|
|
1314
1324
|
}
|
|
1315
|
-
function
|
|
1325
|
+
function jr(t, n, e) {
|
|
1316
1326
|
if (t === "+") {
|
|
1317
1327
|
if (n) {
|
|
1318
1328
|
typeof e == "function" && e("end");
|
|
@@ -1320,13 +1330,13 @@ function Br(t, n, e) {
|
|
|
1320
1330
|
}
|
|
1321
1331
|
return "+";
|
|
1322
1332
|
}
|
|
1323
|
-
return
|
|
1333
|
+
return Je(t);
|
|
1324
1334
|
}
|
|
1325
|
-
function
|
|
1335
|
+
function Ur(t, n) {
|
|
1326
1336
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1327
1337
|
if (e)
|
|
1328
1338
|
return (e = e.call(t)).next.bind(e);
|
|
1329
|
-
if (Array.isArray(t) || (e =
|
|
1339
|
+
if (Array.isArray(t) || (e = Wr(t)) || n && t && typeof t.length == "number") {
|
|
1330
1340
|
e && (t = e);
|
|
1331
1341
|
var r = 0;
|
|
1332
1342
|
return function() {
|
|
@@ -1336,25 +1346,25 @@ function jr(t, n) {
|
|
|
1336
1346
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1337
1347
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1338
1348
|
}
|
|
1339
|
-
function
|
|
1349
|
+
function Wr(t, n) {
|
|
1340
1350
|
if (t) {
|
|
1341
1351
|
if (typeof t == "string")
|
|
1342
|
-
return
|
|
1352
|
+
return Kt(t, n);
|
|
1343
1353
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1344
1354
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1345
1355
|
return Array.from(t);
|
|
1346
1356
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1347
|
-
return
|
|
1357
|
+
return Kt(t, n);
|
|
1348
1358
|
}
|
|
1349
1359
|
}
|
|
1350
|
-
function
|
|
1360
|
+
function Kt(t, n) {
|
|
1351
1361
|
(n == null || n > t.length) && (n = t.length);
|
|
1352
1362
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
1353
1363
|
r[e] = t[e];
|
|
1354
1364
|
return r;
|
|
1355
1365
|
}
|
|
1356
|
-
function
|
|
1357
|
-
for (var e = t.slice(), r =
|
|
1366
|
+
function Hr(t, n) {
|
|
1367
|
+
for (var e = t.slice(), r = Ur(n), d; !(d = r()).done; ) {
|
|
1358
1368
|
var i = d.value;
|
|
1359
1369
|
t.indexOf(i) < 0 && e.push(i);
|
|
1360
1370
|
}
|
|
@@ -1363,23 +1373,23 @@ function Wr(t, n) {
|
|
|
1363
1373
|
});
|
|
1364
1374
|
}
|
|
1365
1375
|
function at(t, n) {
|
|
1366
|
-
return
|
|
1376
|
+
return qe(t, void 0, n);
|
|
1367
1377
|
}
|
|
1368
|
-
function
|
|
1378
|
+
function qe(t, n, e) {
|
|
1369
1379
|
var r = e.type(n), d = r && r.possibleLengths() || e.possibleLengths();
|
|
1370
1380
|
if (!d)
|
|
1371
1381
|
return "IS_POSSIBLE";
|
|
1372
1382
|
if (n === "FIXED_LINE_OR_MOBILE") {
|
|
1373
1383
|
if (!e.type("FIXED_LINE"))
|
|
1374
|
-
return
|
|
1384
|
+
return qe(t, "MOBILE", e);
|
|
1375
1385
|
var i = e.type("MOBILE");
|
|
1376
|
-
i && (d =
|
|
1386
|
+
i && (d = Hr(d, i.possibleLengths()));
|
|
1377
1387
|
} else if (n && !r)
|
|
1378
1388
|
return "INVALID_LENGTH";
|
|
1379
1389
|
var a = t.length, o = d[0];
|
|
1380
1390
|
return o === a ? "IS_POSSIBLE" : o > a ? "TOO_SHORT" : d[d.length - 1] < a ? "TOO_LONG" : d.indexOf(a, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
|
1381
1391
|
}
|
|
1382
|
-
function
|
|
1392
|
+
function Vr(t, n, e) {
|
|
1383
1393
|
if (n === void 0 && (n = {}), e = new v(e), n.v2) {
|
|
1384
1394
|
if (!t.countryCallingCode)
|
|
1385
1395
|
throw new Error("Invalid phone number object passed");
|
|
@@ -1398,12 +1408,12 @@ function Hr(t, n, e) {
|
|
|
1398
1408
|
}
|
|
1399
1409
|
}
|
|
1400
1410
|
if (e.possibleLengths())
|
|
1401
|
-
return
|
|
1411
|
+
return tn(t.phone || t.nationalNumber, e);
|
|
1402
1412
|
if (t.countryCallingCode && e.isNonGeographicCallingCode(t.countryCallingCode))
|
|
1403
1413
|
return !0;
|
|
1404
1414
|
throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
|
|
1405
1415
|
}
|
|
1406
|
-
function
|
|
1416
|
+
function tn(t, n) {
|
|
1407
1417
|
switch (at(t, n)) {
|
|
1408
1418
|
case "IS_POSSIBLE":
|
|
1409
1419
|
return !0;
|
|
@@ -1414,11 +1424,11 @@ function qe(t, n) {
|
|
|
1414
1424
|
function T(t, n) {
|
|
1415
1425
|
return t = t || "", new RegExp("^(?:" + n + ")$").test(t);
|
|
1416
1426
|
}
|
|
1417
|
-
function
|
|
1427
|
+
function Zr(t, n) {
|
|
1418
1428
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1419
1429
|
if (e)
|
|
1420
1430
|
return (e = e.call(t)).next.bind(e);
|
|
1421
|
-
if (Array.isArray(t) || (e =
|
|
1431
|
+
if (Array.isArray(t) || (e = Yr(t)) || n && t && typeof t.length == "number") {
|
|
1422
1432
|
e && (t = e);
|
|
1423
1433
|
var r = 0;
|
|
1424
1434
|
return function() {
|
|
@@ -1428,63 +1438,63 @@ function Vr(t, n) {
|
|
|
1428
1438
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1429
1439
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1430
1440
|
}
|
|
1431
|
-
function
|
|
1441
|
+
function Yr(t, n) {
|
|
1432
1442
|
if (t) {
|
|
1433
1443
|
if (typeof t == "string")
|
|
1434
|
-
return
|
|
1444
|
+
return Qt(t, n);
|
|
1435
1445
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1436
1446
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1437
1447
|
return Array.from(t);
|
|
1438
1448
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1439
|
-
return
|
|
1449
|
+
return Qt(t, n);
|
|
1440
1450
|
}
|
|
1441
1451
|
}
|
|
1442
|
-
function
|
|
1452
|
+
function Qt(t, n) {
|
|
1443
1453
|
(n == null || n > t.length) && (n = t.length);
|
|
1444
1454
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
1445
1455
|
r[e] = t[e];
|
|
1446
1456
|
return r;
|
|
1447
1457
|
}
|
|
1448
|
-
var
|
|
1458
|
+
var zr = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
|
1449
1459
|
function ot(t, n, e) {
|
|
1450
1460
|
if (n = n || {}, !(!t.country && !t.countryCallingCode)) {
|
|
1451
1461
|
e = new v(e), e.selectNumberingPlan(t.country, t.countryCallingCode);
|
|
1452
1462
|
var r = n.v2 ? t.nationalNumber : t.phone;
|
|
1453
1463
|
if (T(r, e.nationalNumberPattern())) {
|
|
1454
|
-
if (
|
|
1455
|
-
return e.type("MOBILE") && e.type("MOBILE").pattern() === "" || !e.type("MOBILE") ||
|
|
1456
|
-
for (var d =
|
|
1464
|
+
if (ft(r, "FIXED_LINE", e))
|
|
1465
|
+
return e.type("MOBILE") && e.type("MOBILE").pattern() === "" || !e.type("MOBILE") || ft(r, "MOBILE", e) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
1466
|
+
for (var d = Zr(zr), i; !(i = d()).done; ) {
|
|
1457
1467
|
var a = i.value;
|
|
1458
|
-
if (
|
|
1468
|
+
if (ft(r, a, e))
|
|
1459
1469
|
return a;
|
|
1460
1470
|
}
|
|
1461
1471
|
}
|
|
1462
1472
|
}
|
|
1463
1473
|
}
|
|
1464
|
-
function
|
|
1474
|
+
function ft(t, n, e) {
|
|
1465
1475
|
return n = e.type(n), !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(t.length) < 0 ? !1 : T(t, n.pattern());
|
|
1466
1476
|
}
|
|
1467
|
-
function
|
|
1477
|
+
function Xr(t, n, e) {
|
|
1468
1478
|
if (n = n || {}, e = new v(e), e.selectNumberingPlan(t.country, t.countryCallingCode), e.hasTypes())
|
|
1469
1479
|
return ot(t, n, e.metadata) !== void 0;
|
|
1470
1480
|
var r = n.v2 ? t.nationalNumber : t.phone;
|
|
1471
1481
|
return T(r, e.nationalNumberPattern());
|
|
1472
1482
|
}
|
|
1473
|
-
function
|
|
1483
|
+
function Kr(t, n, e) {
|
|
1474
1484
|
var r = new v(e), d = r.getCountryCodesForCallingCode(t);
|
|
1475
1485
|
return d ? d.filter(function(i) {
|
|
1476
|
-
return
|
|
1486
|
+
return Qr(n, i, e);
|
|
1477
1487
|
}) : [];
|
|
1478
1488
|
}
|
|
1479
|
-
function
|
|
1489
|
+
function Qr(t, n, e) {
|
|
1480
1490
|
var r = new v(e);
|
|
1481
1491
|
return r.selectNumberingPlan(n), r.numberingPlan.possibleLengths().indexOf(t.length) >= 0;
|
|
1482
1492
|
}
|
|
1483
|
-
function
|
|
1493
|
+
function en(t) {
|
|
1484
1494
|
return t.replace(new RegExp("[".concat(x, "]+"), "g"), " ").trim();
|
|
1485
1495
|
}
|
|
1486
|
-
var
|
|
1487
|
-
function
|
|
1496
|
+
var nn = /(\$\d)/;
|
|
1497
|
+
function rn(t, n, e) {
|
|
1488
1498
|
var r = e.useInternationalFormat, d = e.withNationalPrefix;
|
|
1489
1499
|
e.carrierCode, e.metadata;
|
|
1490
1500
|
var i = t.replace(new RegExp(n.pattern()), r ? n.internationalFormat() : (
|
|
@@ -1501,19 +1511,19 @@ function nn(t, n, e) {
|
|
|
1501
1511
|
// ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
|
|
1502
1512
|
// : format.format()
|
|
1503
1513
|
// )
|
|
1504
|
-
d && n.nationalPrefixFormattingRule() ? n.format().replace(
|
|
1514
|
+
d && n.nationalPrefixFormattingRule() ? n.format().replace(nn, n.nationalPrefixFormattingRule()) : n.format()
|
|
1505
1515
|
));
|
|
1506
|
-
return r ?
|
|
1516
|
+
return r ? en(i) : i;
|
|
1507
1517
|
}
|
|
1508
|
-
var
|
|
1509
|
-
function
|
|
1518
|
+
var Jr = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
1519
|
+
function qr(t, n, e) {
|
|
1510
1520
|
var r = new v(e);
|
|
1511
1521
|
if (r.selectNumberingPlan(t, n), r.defaultIDDPrefix())
|
|
1512
1522
|
return r.defaultIDDPrefix();
|
|
1513
|
-
if (
|
|
1523
|
+
if (Jr.test(r.IDDPrefix()))
|
|
1514
1524
|
return r.IDDPrefix();
|
|
1515
1525
|
}
|
|
1516
|
-
function
|
|
1526
|
+
function td(t) {
|
|
1517
1527
|
var n = t.number, e = t.ext;
|
|
1518
1528
|
if (!n)
|
|
1519
1529
|
return "";
|
|
@@ -1521,11 +1531,11 @@ function qr(t) {
|
|
|
1521
1531
|
throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
|
|
1522
1532
|
return "tel:".concat(n).concat(e ? ";ext=" + e : "");
|
|
1523
1533
|
}
|
|
1524
|
-
function
|
|
1534
|
+
function ed(t, n) {
|
|
1525
1535
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1526
1536
|
if (e)
|
|
1527
1537
|
return (e = e.call(t)).next.bind(e);
|
|
1528
|
-
if (Array.isArray(t) || (e =
|
|
1538
|
+
if (Array.isArray(t) || (e = nd(t)) || n && t && typeof t.length == "number") {
|
|
1529
1539
|
e && (t = e);
|
|
1530
1540
|
var r = 0;
|
|
1531
1541
|
return function() {
|
|
@@ -1535,24 +1545,24 @@ function td(t, n) {
|
|
|
1535
1545
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1536
1546
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1537
1547
|
}
|
|
1538
|
-
function
|
|
1548
|
+
function nd(t, n) {
|
|
1539
1549
|
if (t) {
|
|
1540
1550
|
if (typeof t == "string")
|
|
1541
|
-
return
|
|
1551
|
+
return Jt(t, n);
|
|
1542
1552
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1543
1553
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1544
1554
|
return Array.from(t);
|
|
1545
1555
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1546
|
-
return
|
|
1556
|
+
return Jt(t, n);
|
|
1547
1557
|
}
|
|
1548
1558
|
}
|
|
1549
|
-
function
|
|
1559
|
+
function Jt(t, n) {
|
|
1550
1560
|
(n == null || n > t.length) && (n = t.length);
|
|
1551
1561
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
1552
1562
|
r[e] = t[e];
|
|
1553
1563
|
return r;
|
|
1554
1564
|
}
|
|
1555
|
-
function
|
|
1565
|
+
function qt(t, n) {
|
|
1556
1566
|
var e = Object.keys(t);
|
|
1557
1567
|
if (Object.getOwnPropertySymbols) {
|
|
1558
1568
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -1562,27 +1572,27 @@ function Jt(t, n) {
|
|
|
1562
1572
|
}
|
|
1563
1573
|
return e;
|
|
1564
1574
|
}
|
|
1565
|
-
function
|
|
1575
|
+
function te(t) {
|
|
1566
1576
|
for (var n = 1; n < arguments.length; n++) {
|
|
1567
1577
|
var e = arguments[n] != null ? arguments[n] : {};
|
|
1568
|
-
n % 2 ?
|
|
1569
|
-
|
|
1570
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) :
|
|
1578
|
+
n % 2 ? qt(Object(e), !0).forEach(function(r) {
|
|
1579
|
+
rd(t, r, e[r]);
|
|
1580
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : qt(Object(e)).forEach(function(r) {
|
|
1571
1581
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
|
|
1572
1582
|
});
|
|
1573
1583
|
}
|
|
1574
1584
|
return t;
|
|
1575
1585
|
}
|
|
1576
|
-
function
|
|
1586
|
+
function rd(t, n, e) {
|
|
1577
1587
|
return n in t ? Object.defineProperty(t, n, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = e, t;
|
|
1578
1588
|
}
|
|
1579
|
-
var
|
|
1589
|
+
var ee = {
|
|
1580
1590
|
formatExtension: function(n, e, r) {
|
|
1581
1591
|
return "".concat(n).concat(r.ext()).concat(e);
|
|
1582
1592
|
}
|
|
1583
1593
|
};
|
|
1584
|
-
function
|
|
1585
|
-
if (e ? e =
|
|
1594
|
+
function dd(t, n, e, r) {
|
|
1595
|
+
if (e ? e = te(te({}, ee), e) : e = ee, r = new v(r), t.country && t.country !== "001") {
|
|
1586
1596
|
if (!r.hasCountry(t.country))
|
|
1587
1597
|
throw new Error("Unknown country: ".concat(t.country));
|
|
1588
1598
|
r.country(t.country);
|
|
@@ -1599,30 +1609,30 @@ function rd(t, n, e, r) {
|
|
|
1599
1609
|
case "E.164":
|
|
1600
1610
|
return "+".concat(d).concat(i);
|
|
1601
1611
|
case "RFC3966":
|
|
1602
|
-
return
|
|
1612
|
+
return td({
|
|
1603
1613
|
number: "+".concat(d).concat(i),
|
|
1604
1614
|
ext: t.ext
|
|
1605
1615
|
});
|
|
1606
1616
|
case "IDD":
|
|
1607
1617
|
if (!e.fromCountry)
|
|
1608
1618
|
return;
|
|
1609
|
-
var o =
|
|
1619
|
+
var o = ad(i, t.carrierCode, d, e.fromCountry, r);
|
|
1610
1620
|
return ct(o, t.ext, r, e.formatExtension);
|
|
1611
1621
|
default:
|
|
1612
1622
|
throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(n, '"'));
|
|
1613
1623
|
}
|
|
1614
1624
|
}
|
|
1615
1625
|
function nt(t, n, e, r, d) {
|
|
1616
|
-
var i =
|
|
1617
|
-
return i ?
|
|
1626
|
+
var i = id(r.formats(), t);
|
|
1627
|
+
return i ? rn(t, i, {
|
|
1618
1628
|
useInternationalFormat: e === "INTERNATIONAL",
|
|
1619
1629
|
withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && d && d.nationalPrefix === !1),
|
|
1620
1630
|
carrierCode: n,
|
|
1621
1631
|
metadata: r
|
|
1622
1632
|
}) : t;
|
|
1623
1633
|
}
|
|
1624
|
-
function
|
|
1625
|
-
for (var e =
|
|
1634
|
+
function id(t, n) {
|
|
1635
|
+
for (var e = ed(t), r; !(r = e()).done; ) {
|
|
1626
1636
|
var d = r.value;
|
|
1627
1637
|
if (d.leadingDigitsPatterns().length > 0) {
|
|
1628
1638
|
var i = d.leadingDigitsPatterns()[d.leadingDigitsPatterns().length - 1];
|
|
@@ -1636,17 +1646,17 @@ function dd(t, n) {
|
|
|
1636
1646
|
function ct(t, n, e, r) {
|
|
1637
1647
|
return n ? r(t, n, e) : t;
|
|
1638
1648
|
}
|
|
1639
|
-
function
|
|
1640
|
-
var i =
|
|
1649
|
+
function ad(t, n, e, r, d) {
|
|
1650
|
+
var i = Mt(r, d.metadata);
|
|
1641
1651
|
if (i === e) {
|
|
1642
1652
|
var a = nt(t, n, "NATIONAL", d);
|
|
1643
1653
|
return e === "1" ? e + " " + a : a;
|
|
1644
1654
|
}
|
|
1645
|
-
var o =
|
|
1655
|
+
var o = qr(r, void 0, d.metadata);
|
|
1646
1656
|
if (o)
|
|
1647
1657
|
return "".concat(o, " ").concat(e, " ").concat(nt(t, null, "INTERNATIONAL", d));
|
|
1648
1658
|
}
|
|
1649
|
-
function
|
|
1659
|
+
function ne(t, n) {
|
|
1650
1660
|
var e = Object.keys(t);
|
|
1651
1661
|
if (Object.getOwnPropertySymbols) {
|
|
1652
1662
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -1656,47 +1666,47 @@ function ee(t, n) {
|
|
|
1656
1666
|
}
|
|
1657
1667
|
return e;
|
|
1658
1668
|
}
|
|
1659
|
-
function
|
|
1669
|
+
function re(t) {
|
|
1660
1670
|
for (var n = 1; n < arguments.length; n++) {
|
|
1661
1671
|
var e = arguments[n] != null ? arguments[n] : {};
|
|
1662
|
-
n % 2 ?
|
|
1663
|
-
|
|
1664
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) :
|
|
1672
|
+
n % 2 ? ne(Object(e), !0).forEach(function(r) {
|
|
1673
|
+
od(t, r, e[r]);
|
|
1674
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : ne(Object(e)).forEach(function(r) {
|
|
1665
1675
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
|
|
1666
1676
|
});
|
|
1667
1677
|
}
|
|
1668
1678
|
return t;
|
|
1669
1679
|
}
|
|
1670
|
-
function
|
|
1680
|
+
function od(t, n, e) {
|
|
1671
1681
|
return n in t ? Object.defineProperty(t, n, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = e, t;
|
|
1672
1682
|
}
|
|
1673
|
-
function
|
|
1683
|
+
function ud(t, n) {
|
|
1674
1684
|
if (!(t instanceof n))
|
|
1675
1685
|
throw new TypeError("Cannot call a class as a function");
|
|
1676
1686
|
}
|
|
1677
|
-
function
|
|
1687
|
+
function de(t, n) {
|
|
1678
1688
|
for (var e = 0; e < n.length; e++) {
|
|
1679
1689
|
var r = n[e];
|
|
1680
1690
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
1681
1691
|
}
|
|
1682
1692
|
}
|
|
1683
|
-
function
|
|
1684
|
-
return n &&
|
|
1693
|
+
function ld(t, n, e) {
|
|
1694
|
+
return n && de(t.prototype, n), e && de(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
1685
1695
|
}
|
|
1686
|
-
var
|
|
1696
|
+
var dn = /* @__PURE__ */ function() {
|
|
1687
1697
|
function t(n, e, r) {
|
|
1688
|
-
if (
|
|
1698
|
+
if (ud(this, t), !n)
|
|
1689
1699
|
throw new TypeError("`country` or `countryCallingCode` not passed");
|
|
1690
1700
|
if (!e)
|
|
1691
1701
|
throw new TypeError("`nationalNumber` not passed");
|
|
1692
1702
|
if (!r)
|
|
1693
1703
|
throw new TypeError("`metadata` not passed");
|
|
1694
|
-
var d =
|
|
1704
|
+
var d = sd(n, r), i = d.country, a = d.countryCallingCode;
|
|
1695
1705
|
this.country = i, this.countryCallingCode = a, this.nationalNumber = e, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
|
|
1696
1706
|
return r;
|
|
1697
1707
|
};
|
|
1698
1708
|
}
|
|
1699
|
-
return
|
|
1709
|
+
return ld(t, [{
|
|
1700
1710
|
key: "setExt",
|
|
1701
1711
|
value: function(e) {
|
|
1702
1712
|
this.ext = e;
|
|
@@ -1704,19 +1714,19 @@ var rn = /* @__PURE__ */ function() {
|
|
|
1704
1714
|
}, {
|
|
1705
1715
|
key: "getPossibleCountries",
|
|
1706
1716
|
value: function() {
|
|
1707
|
-
return this.country ? [this.country] :
|
|
1717
|
+
return this.country ? [this.country] : Kr(this.countryCallingCode, this.nationalNumber, this.getMetadata());
|
|
1708
1718
|
}
|
|
1709
1719
|
}, {
|
|
1710
1720
|
key: "isPossible",
|
|
1711
1721
|
value: function() {
|
|
1712
|
-
return
|
|
1722
|
+
return Vr(this, {
|
|
1713
1723
|
v2: !0
|
|
1714
1724
|
}, this.getMetadata());
|
|
1715
1725
|
}
|
|
1716
1726
|
}, {
|
|
1717
1727
|
key: "isValid",
|
|
1718
1728
|
value: function() {
|
|
1719
|
-
return
|
|
1729
|
+
return Xr(this, {
|
|
1720
1730
|
v2: !0
|
|
1721
1731
|
}, this.getMetadata());
|
|
1722
1732
|
}
|
|
@@ -1755,7 +1765,7 @@ var rn = /* @__PURE__ */ function() {
|
|
|
1755
1765
|
}, {
|
|
1756
1766
|
key: "format",
|
|
1757
1767
|
value: function(e, r) {
|
|
1758
|
-
return
|
|
1768
|
+
return dd(this, e, r ? re(re({}, r), {}, {
|
|
1759
1769
|
v2: !0
|
|
1760
1770
|
}) : {
|
|
1761
1771
|
v2: !0
|
|
@@ -1777,18 +1787,18 @@ var rn = /* @__PURE__ */ function() {
|
|
|
1777
1787
|
return this.format("RFC3966", e);
|
|
1778
1788
|
}
|
|
1779
1789
|
}]), t;
|
|
1780
|
-
}(),
|
|
1790
|
+
}(), $d = function(n) {
|
|
1781
1791
|
return /^[A-Z]{2}$/.test(n);
|
|
1782
1792
|
};
|
|
1783
|
-
function
|
|
1793
|
+
function sd(t, n) {
|
|
1784
1794
|
var e, r, d = new v(n);
|
|
1785
|
-
return
|
|
1795
|
+
return $d(t) ? (e = t, d.selectNumberingPlan(e), r = d.countryCallingCode()) : r = t, {
|
|
1786
1796
|
country: e,
|
|
1787
1797
|
countryCallingCode: r
|
|
1788
1798
|
};
|
|
1789
1799
|
}
|
|
1790
1800
|
var fd = new RegExp("([" + N + "])");
|
|
1791
|
-
function
|
|
1801
|
+
function an(t, n, e, r) {
|
|
1792
1802
|
if (n) {
|
|
1793
1803
|
var d = new v(r);
|
|
1794
1804
|
d.selectNumberingPlan(n, e);
|
|
@@ -1832,11 +1842,11 @@ function bt(t, n) {
|
|
|
1832
1842
|
function Pt(t, n) {
|
|
1833
1843
|
var e = bt(t, n), r = e.carrierCode, d = e.nationalNumber;
|
|
1834
1844
|
if (d !== t) {
|
|
1835
|
-
if (!
|
|
1845
|
+
if (!cd(t, d, n))
|
|
1836
1846
|
return {
|
|
1837
1847
|
nationalNumber: t
|
|
1838
1848
|
};
|
|
1839
|
-
if (n.possibleLengths() && !
|
|
1849
|
+
if (n.possibleLengths() && !hd(d, n))
|
|
1840
1850
|
return {
|
|
1841
1851
|
nationalNumber: t
|
|
1842
1852
|
};
|
|
@@ -1846,10 +1856,10 @@ function Pt(t, n) {
|
|
|
1846
1856
|
carrierCode: r
|
|
1847
1857
|
};
|
|
1848
1858
|
}
|
|
1849
|
-
function
|
|
1859
|
+
function cd(t, n, e) {
|
|
1850
1860
|
return !(T(t, e.nationalNumberPattern()) && !T(n, e.nationalNumberPattern()));
|
|
1851
1861
|
}
|
|
1852
|
-
function
|
|
1862
|
+
function hd(t, n) {
|
|
1853
1863
|
switch (at(t, n)) {
|
|
1854
1864
|
case "TOO_SHORT":
|
|
1855
1865
|
case "INVALID_LENGTH":
|
|
@@ -1858,8 +1868,8 @@ function cd(t, n) {
|
|
|
1858
1868
|
return !0;
|
|
1859
1869
|
}
|
|
1860
1870
|
}
|
|
1861
|
-
function
|
|
1862
|
-
var d = n ?
|
|
1871
|
+
function on(t, n, e, r) {
|
|
1872
|
+
var d = n ? Mt(n, r) : e;
|
|
1863
1873
|
if (t.indexOf(d) === 0) {
|
|
1864
1874
|
r = new v(r), r.selectNumberingPlan(n, e);
|
|
1865
1875
|
var i = t.slice(d.length), a = Pt(i, r), o = a.nationalNumber, u = Pt(t, r), l = u.nationalNumber;
|
|
@@ -1873,17 +1883,17 @@ function an(t, n, e, r) {
|
|
|
1873
1883
|
number: t
|
|
1874
1884
|
};
|
|
1875
1885
|
}
|
|
1876
|
-
function
|
|
1886
|
+
function un(t, n, e, r) {
|
|
1877
1887
|
if (!t)
|
|
1878
1888
|
return {};
|
|
1879
1889
|
var d;
|
|
1880
1890
|
if (t[0] !== "+") {
|
|
1881
|
-
var i =
|
|
1891
|
+
var i = an(t, n, e, r);
|
|
1882
1892
|
if (i && i !== t)
|
|
1883
1893
|
d = !0, t = "+" + i;
|
|
1884
1894
|
else {
|
|
1885
1895
|
if (n || e) {
|
|
1886
|
-
var a =
|
|
1896
|
+
var a = on(t, n, e, r), o = a.countryCallingCode, u = a.number;
|
|
1887
1897
|
if (o)
|
|
1888
1898
|
return {
|
|
1889
1899
|
countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
|
|
@@ -1901,7 +1911,7 @@ function on(t, n, e, r) {
|
|
|
1901
1911
|
if (t[1] === "0")
|
|
1902
1912
|
return {};
|
|
1903
1913
|
r = new v(r);
|
|
1904
|
-
for (var l = 2; l - 1 <=
|
|
1914
|
+
for (var l = 2; l - 1 <= sr && l <= t.length; ) {
|
|
1905
1915
|
var $ = t.slice(1, l);
|
|
1906
1916
|
if (r.hasCallingCode($))
|
|
1907
1917
|
return r.selectNumberingPlan($), {
|
|
@@ -1913,11 +1923,11 @@ function on(t, n, e, r) {
|
|
|
1913
1923
|
}
|
|
1914
1924
|
return {};
|
|
1915
1925
|
}
|
|
1916
|
-
function
|
|
1926
|
+
function gd(t, n) {
|
|
1917
1927
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
1918
1928
|
if (e)
|
|
1919
1929
|
return (e = e.call(t)).next.bind(e);
|
|
1920
|
-
if (Array.isArray(t) || (e =
|
|
1930
|
+
if (Array.isArray(t) || (e = md(t)) || n && t && typeof t.length == "number") {
|
|
1921
1931
|
e && (t = e);
|
|
1922
1932
|
var r = 0;
|
|
1923
1933
|
return function() {
|
|
@@ -1927,27 +1937,27 @@ function hd(t, n) {
|
|
|
1927
1937
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1928
1938
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1929
1939
|
}
|
|
1930
|
-
function
|
|
1940
|
+
function md(t, n) {
|
|
1931
1941
|
if (t) {
|
|
1932
1942
|
if (typeof t == "string")
|
|
1933
|
-
return
|
|
1943
|
+
return ie(t, n);
|
|
1934
1944
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
1935
1945
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
1936
1946
|
return Array.from(t);
|
|
1937
1947
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
1938
|
-
return
|
|
1948
|
+
return ie(t, n);
|
|
1939
1949
|
}
|
|
1940
1950
|
}
|
|
1941
|
-
function
|
|
1951
|
+
function ie(t, n) {
|
|
1942
1952
|
(n == null || n > t.length) && (n = t.length);
|
|
1943
1953
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
1944
1954
|
r[e] = t[e];
|
|
1945
1955
|
return r;
|
|
1946
1956
|
}
|
|
1947
|
-
function
|
|
1957
|
+
function ln(t, n) {
|
|
1948
1958
|
var e = n.countries, r = n.defaultCountry, d = n.metadata;
|
|
1949
1959
|
d = new v(d);
|
|
1950
|
-
for (var i = [], a =
|
|
1960
|
+
for (var i = [], a = gd(e), o; !(o = a()).done; ) {
|
|
1951
1961
|
var u = o.value;
|
|
1952
1962
|
if (d.country(u), d.leadingDigits()) {
|
|
1953
1963
|
if (t && t.search(d.leadingDigits()) === 0)
|
|
@@ -1966,21 +1976,21 @@ function un(t, n) {
|
|
|
1966
1976
|
if (i.length > 0)
|
|
1967
1977
|
return i[0];
|
|
1968
1978
|
}
|
|
1969
|
-
var
|
|
1970
|
-
function
|
|
1979
|
+
var yd = !1;
|
|
1980
|
+
function $n(t, n) {
|
|
1971
1981
|
var e = n.nationalNumber, r = n.defaultCountry, d = n.metadata;
|
|
1972
|
-
if (
|
|
1982
|
+
if (yd && d.isNonGeographicCallingCode(t))
|
|
1973
1983
|
return "001";
|
|
1974
1984
|
var i = d.getCountryCodesForCallingCode(t);
|
|
1975
1985
|
if (i)
|
|
1976
|
-
return i.length === 1 ? i[0] :
|
|
1986
|
+
return i.length === 1 ? i[0] : ln(e, {
|
|
1977
1987
|
countries: i,
|
|
1978
1988
|
defaultCountry: r,
|
|
1979
1989
|
metadata: d.metadata
|
|
1980
1990
|
});
|
|
1981
1991
|
}
|
|
1982
|
-
var
|
|
1983
|
-
function
|
|
1992
|
+
var sn = "+", pd = "[\\-\\.\\(\\)]?", ae = "([" + N + "]|" + pd + ")", vd = "^\\" + sn + ae + "*[" + N + "]" + ae + "*$", Cd = new RegExp(vd, "g"), At = N, Nd = "[" + At + "]+((\\-)*[" + At + "])*", bd = "a-zA-Z", Pd = "[" + bd + "]+((\\-)*[" + At + "])*", Ad = "^(" + Nd + "\\.)*" + Pd + "\\.?$", Id = new RegExp(Ad, "g"), oe = "tel:", It = ";phone-context=", xd = ";isub=";
|
|
1993
|
+
function Od(t) {
|
|
1984
1994
|
var n = t.indexOf(It);
|
|
1985
1995
|
if (n < 0)
|
|
1986
1996
|
return null;
|
|
@@ -1990,112 +2000,112 @@ function xd(t) {
|
|
|
1990
2000
|
var r = t.indexOf(";", e);
|
|
1991
2001
|
return r >= 0 ? t.substring(e, r) : t.substring(e);
|
|
1992
2002
|
}
|
|
1993
|
-
function
|
|
1994
|
-
return t === null ? !0 : t.length === 0 ? !1 :
|
|
2003
|
+
function Ed(t) {
|
|
2004
|
+
return t === null ? !0 : t.length === 0 ? !1 : Cd.test(t) || Id.test(t);
|
|
1995
2005
|
}
|
|
1996
|
-
function
|
|
1997
|
-
var e = n.extractFormattedPhoneNumber, r =
|
|
1998
|
-
if (!
|
|
2006
|
+
function Sd(t, n) {
|
|
2007
|
+
var e = n.extractFormattedPhoneNumber, r = Od(t);
|
|
2008
|
+
if (!Ed(r))
|
|
1999
2009
|
throw new E("NOT_A_NUMBER");
|
|
2000
2010
|
var d;
|
|
2001
2011
|
if (r === null)
|
|
2002
2012
|
d = e(t) || "";
|
|
2003
2013
|
else {
|
|
2004
|
-
d = "", r.charAt(0) ===
|
|
2005
|
-
var i = t.indexOf(
|
|
2006
|
-
i >= 0 ? a = i +
|
|
2014
|
+
d = "", r.charAt(0) === sn && (d += r);
|
|
2015
|
+
var i = t.indexOf(oe), a;
|
|
2016
|
+
i >= 0 ? a = i + oe.length : a = 0;
|
|
2007
2017
|
var o = t.indexOf(It);
|
|
2008
2018
|
d += t.substring(a, o);
|
|
2009
2019
|
}
|
|
2010
|
-
var u = d.indexOf(
|
|
2020
|
+
var u = d.indexOf(xd);
|
|
2011
2021
|
if (u > 0 && (d = d.substring(0, u)), d !== "")
|
|
2012
2022
|
return d;
|
|
2013
2023
|
}
|
|
2014
|
-
var
|
|
2024
|
+
var Td = 250, Fd = new RegExp("[" + rt + N + "]"), wd = new RegExp("[^" + N + "#]+$");
|
|
2015
2025
|
function xt(t, n, e) {
|
|
2016
2026
|
if (n = n || {}, e = new v(e), n.defaultCountry && !e.hasCountry(n.defaultCountry))
|
|
2017
2027
|
throw n.v2 ? new E("INVALID_COUNTRY") : new Error("Unknown country: ".concat(n.defaultCountry));
|
|
2018
|
-
var r =
|
|
2028
|
+
var r = Md(t, n.v2, n.extract), d = r.number, i = r.ext, a = r.error;
|
|
2019
2029
|
if (!d) {
|
|
2020
2030
|
if (n.v2)
|
|
2021
2031
|
throw a === "TOO_SHORT" ? new E("TOO_SHORT") : new E("NOT_A_NUMBER");
|
|
2022
2032
|
return {};
|
|
2023
2033
|
}
|
|
2024
|
-
var o =
|
|
2034
|
+
var o = _d(d, n.defaultCountry, n.defaultCallingCode, e), u = o.country, l = o.nationalNumber, $ = o.countryCallingCode, c = o.countryCallingCodeSource, f = o.carrierCode;
|
|
2025
2035
|
if (!e.hasSelectedNumberingPlan()) {
|
|
2026
2036
|
if (n.v2)
|
|
2027
2037
|
throw new E("INVALID_COUNTRY");
|
|
2028
2038
|
return {};
|
|
2029
2039
|
}
|
|
2030
|
-
if (!l || l.length <
|
|
2040
|
+
if (!l || l.length < Dt) {
|
|
2031
2041
|
if (n.v2)
|
|
2032
2042
|
throw new E("TOO_SHORT");
|
|
2033
2043
|
return {};
|
|
2034
2044
|
}
|
|
2035
|
-
if (l.length >
|
|
2045
|
+
if (l.length > $r) {
|
|
2036
2046
|
if (n.v2)
|
|
2037
2047
|
throw new E("TOO_LONG");
|
|
2038
2048
|
return {};
|
|
2039
2049
|
}
|
|
2040
2050
|
if (n.v2) {
|
|
2041
|
-
var h = new
|
|
2042
|
-
return u && (h.country = u),
|
|
2051
|
+
var h = new dn($, l, e.metadata);
|
|
2052
|
+
return u && (h.country = u), f && (h.carrierCode = f), i && (h.ext = i), h.__countryCallingCodeSource = c, h;
|
|
2043
2053
|
}
|
|
2044
2054
|
var g = (n.extended ? e.hasSelectedNumberingPlan() : u) ? T(l, e.nationalNumberPattern()) : !1;
|
|
2045
2055
|
return n.extended ? {
|
|
2046
2056
|
country: u,
|
|
2047
2057
|
countryCallingCode: $,
|
|
2048
|
-
carrierCode:
|
|
2058
|
+
carrierCode: f,
|
|
2049
2059
|
valid: g,
|
|
2050
|
-
possible: g ? !0 : !!(n.extended === !0 && e.possibleLengths() &&
|
|
2060
|
+
possible: g ? !0 : !!(n.extended === !0 && e.possibleLengths() && tn(l, e)),
|
|
2051
2061
|
phone: l,
|
|
2052
2062
|
ext: i
|
|
2053
|
-
} : g ?
|
|
2063
|
+
} : g ? Rd(u, l, i) : {};
|
|
2054
2064
|
}
|
|
2055
|
-
function
|
|
2065
|
+
function Dd(t, n, e) {
|
|
2056
2066
|
if (t) {
|
|
2057
|
-
if (t.length >
|
|
2067
|
+
if (t.length > Td) {
|
|
2058
2068
|
if (e)
|
|
2059
2069
|
throw new E("TOO_LONG");
|
|
2060
2070
|
return;
|
|
2061
2071
|
}
|
|
2062
2072
|
if (n === !1)
|
|
2063
2073
|
return t;
|
|
2064
|
-
var r = t.search(
|
|
2074
|
+
var r = t.search(Fd);
|
|
2065
2075
|
if (!(r < 0))
|
|
2066
|
-
return t.slice(r).replace(
|
|
2076
|
+
return t.slice(r).replace(wd, "");
|
|
2067
2077
|
}
|
|
2068
2078
|
}
|
|
2069
|
-
function
|
|
2070
|
-
var r =
|
|
2079
|
+
function Md(t, n, e) {
|
|
2080
|
+
var r = Sd(t, {
|
|
2071
2081
|
extractFormattedPhoneNumber: function(a) {
|
|
2072
|
-
return
|
|
2082
|
+
return Dd(a, e, n);
|
|
2073
2083
|
}
|
|
2074
2084
|
});
|
|
2075
2085
|
if (!r)
|
|
2076
2086
|
return {};
|
|
2077
2087
|
if (!Nt(r))
|
|
2078
|
-
return
|
|
2088
|
+
return Mr(r) ? {
|
|
2079
2089
|
error: "TOO_SHORT"
|
|
2080
2090
|
} : {};
|
|
2081
|
-
var d =
|
|
2091
|
+
var d = Rr(r);
|
|
2082
2092
|
return d.ext ? d : {
|
|
2083
2093
|
number: r
|
|
2084
2094
|
};
|
|
2085
2095
|
}
|
|
2086
|
-
function
|
|
2096
|
+
function Rd(t, n, e) {
|
|
2087
2097
|
var r = {
|
|
2088
2098
|
country: t,
|
|
2089
2099
|
phone: n
|
|
2090
2100
|
};
|
|
2091
2101
|
return e && (r.ext = e), r;
|
|
2092
2102
|
}
|
|
2093
|
-
function
|
|
2094
|
-
var d =
|
|
2103
|
+
function _d(t, n, e, r) {
|
|
2104
|
+
var d = un(Xt(t), n, e, r.metadata), i = d.countryCallingCodeSource, a = d.countryCallingCode, o = d.number, u;
|
|
2095
2105
|
if (a)
|
|
2096
2106
|
r.selectNumberingPlan(a);
|
|
2097
2107
|
else if (o && (n || e))
|
|
2098
|
-
r.selectNumberingPlan(n, e), n && (u = n), a = e ||
|
|
2108
|
+
r.selectNumberingPlan(n, e), n && (u = n), a = e || Mt(n, r.metadata);
|
|
2099
2109
|
else
|
|
2100
2110
|
return {};
|
|
2101
2111
|
if (!o)
|
|
@@ -2103,12 +2113,12 @@ function Rd(t, n, e, r) {
|
|
|
2103
2113
|
countryCallingCodeSource: i,
|
|
2104
2114
|
countryCallingCode: a
|
|
2105
2115
|
};
|
|
2106
|
-
var l = Pt(
|
|
2116
|
+
var l = Pt(Xt(o), r), $ = l.nationalNumber, c = l.carrierCode, f = $n(a, {
|
|
2107
2117
|
nationalNumber: $,
|
|
2108
2118
|
defaultCountry: n,
|
|
2109
2119
|
metadata: r
|
|
2110
2120
|
});
|
|
2111
|
-
return
|
|
2121
|
+
return f && (u = f, f === "001" || r.country(u)), {
|
|
2112
2122
|
country: u,
|
|
2113
2123
|
countryCallingCode: a,
|
|
2114
2124
|
countryCallingCodeSource: i,
|
|
@@ -2116,7 +2126,7 @@ function Rd(t, n, e, r) {
|
|
|
2116
2126
|
carrierCode: c
|
|
2117
2127
|
};
|
|
2118
2128
|
}
|
|
2119
|
-
function
|
|
2129
|
+
function ue(t, n) {
|
|
2120
2130
|
var e = Object.keys(t);
|
|
2121
2131
|
if (Object.getOwnPropertySymbols) {
|
|
2122
2132
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -2126,26 +2136,26 @@ function oe(t, n) {
|
|
|
2126
2136
|
}
|
|
2127
2137
|
return e;
|
|
2128
2138
|
}
|
|
2129
|
-
function
|
|
2139
|
+
function le(t) {
|
|
2130
2140
|
for (var n = 1; n < arguments.length; n++) {
|
|
2131
2141
|
var e = arguments[n] != null ? arguments[n] : {};
|
|
2132
|
-
n % 2 ?
|
|
2133
|
-
|
|
2134
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) :
|
|
2142
|
+
n % 2 ? ue(Object(e), !0).forEach(function(r) {
|
|
2143
|
+
Ld(t, r, e[r]);
|
|
2144
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : ue(Object(e)).forEach(function(r) {
|
|
2135
2145
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
|
|
2136
2146
|
});
|
|
2137
2147
|
}
|
|
2138
2148
|
return t;
|
|
2139
2149
|
}
|
|
2140
|
-
function
|
|
2150
|
+
function Ld(t, n, e) {
|
|
2141
2151
|
return n in t ? Object.defineProperty(t, n, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = e, t;
|
|
2142
2152
|
}
|
|
2143
|
-
function
|
|
2144
|
-
return xt(t,
|
|
2153
|
+
function kd(t, n, e) {
|
|
2154
|
+
return xt(t, le(le({}, n), {}, {
|
|
2145
2155
|
v2: !0
|
|
2146
2156
|
}), e);
|
|
2147
2157
|
}
|
|
2148
|
-
function
|
|
2158
|
+
function $e(t, n) {
|
|
2149
2159
|
var e = Object.keys(t);
|
|
2150
2160
|
if (Object.getOwnPropertySymbols) {
|
|
2151
2161
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -2155,45 +2165,45 @@ function le(t, n) {
|
|
|
2155
2165
|
}
|
|
2156
2166
|
return e;
|
|
2157
2167
|
}
|
|
2158
|
-
function
|
|
2168
|
+
function Gd(t) {
|
|
2159
2169
|
for (var n = 1; n < arguments.length; n++) {
|
|
2160
2170
|
var e = arguments[n] != null ? arguments[n] : {};
|
|
2161
|
-
n % 2 ?
|
|
2162
|
-
|
|
2163
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) :
|
|
2171
|
+
n % 2 ? $e(Object(e), !0).forEach(function(r) {
|
|
2172
|
+
Bd(t, r, e[r]);
|
|
2173
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : $e(Object(e)).forEach(function(r) {
|
|
2164
2174
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
|
|
2165
2175
|
});
|
|
2166
2176
|
}
|
|
2167
2177
|
return t;
|
|
2168
2178
|
}
|
|
2169
|
-
function
|
|
2179
|
+
function Bd(t, n, e) {
|
|
2170
2180
|
return n in t ? Object.defineProperty(t, n, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = e, t;
|
|
2171
2181
|
}
|
|
2172
|
-
function
|
|
2173
|
-
return
|
|
2182
|
+
function jd(t, n) {
|
|
2183
|
+
return Vd(t) || Hd(t, n) || Wd(t, n) || Ud();
|
|
2174
2184
|
}
|
|
2175
|
-
function
|
|
2185
|
+
function Ud() {
|
|
2176
2186
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2177
2187
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2178
2188
|
}
|
|
2179
|
-
function
|
|
2189
|
+
function Wd(t, n) {
|
|
2180
2190
|
if (t) {
|
|
2181
2191
|
if (typeof t == "string")
|
|
2182
|
-
return
|
|
2192
|
+
return se(t, n);
|
|
2183
2193
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
2184
2194
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
2185
2195
|
return Array.from(t);
|
|
2186
2196
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
2187
|
-
return
|
|
2197
|
+
return se(t, n);
|
|
2188
2198
|
}
|
|
2189
2199
|
}
|
|
2190
|
-
function
|
|
2200
|
+
function se(t, n) {
|
|
2191
2201
|
(n == null || n > t.length) && (n = t.length);
|
|
2192
2202
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
2193
2203
|
r[e] = t[e];
|
|
2194
2204
|
return r;
|
|
2195
2205
|
}
|
|
2196
|
-
function
|
|
2206
|
+
function Hd(t, n) {
|
|
2197
2207
|
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2198
2208
|
if (e != null) {
|
|
2199
2209
|
var r = [], d = !0, i = !1, a, o;
|
|
@@ -2213,18 +2223,18 @@ function Wd(t, n) {
|
|
|
2213
2223
|
return r;
|
|
2214
2224
|
}
|
|
2215
2225
|
}
|
|
2216
|
-
function
|
|
2226
|
+
function Vd(t) {
|
|
2217
2227
|
if (Array.isArray(t))
|
|
2218
2228
|
return t;
|
|
2219
2229
|
}
|
|
2220
|
-
function
|
|
2221
|
-
var n = Array.prototype.slice.call(t), e =
|
|
2230
|
+
function Zd(t) {
|
|
2231
|
+
var n = Array.prototype.slice.call(t), e = jd(n, 4), r = e[0], d = e[1], i = e[2], a = e[3], o, u, l;
|
|
2222
2232
|
if (typeof r == "string")
|
|
2223
2233
|
o = r;
|
|
2224
2234
|
else
|
|
2225
2235
|
throw new TypeError("A text for parsing must be a string.");
|
|
2226
2236
|
if (!d || typeof d == "string")
|
|
2227
|
-
a ? (u = i, l = a) : (u = void 0, l = i), d && (u =
|
|
2237
|
+
a ? (u = i, l = a) : (u = void 0, l = i), d && (u = Gd({
|
|
2228
2238
|
defaultCountry: d
|
|
2229
2239
|
}, u));
|
|
2230
2240
|
else if (R(d))
|
|
@@ -2247,32 +2257,32 @@ function fe(t, n) {
|
|
|
2247
2257
|
}
|
|
2248
2258
|
return e;
|
|
2249
2259
|
}
|
|
2250
|
-
function
|
|
2260
|
+
function ce(t) {
|
|
2251
2261
|
for (var n = 1; n < arguments.length; n++) {
|
|
2252
2262
|
var e = arguments[n] != null ? arguments[n] : {};
|
|
2253
2263
|
n % 2 ? fe(Object(e), !0).forEach(function(r) {
|
|
2254
|
-
|
|
2264
|
+
Yd(t, r, e[r]);
|
|
2255
2265
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : fe(Object(e)).forEach(function(r) {
|
|
2256
2266
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
|
|
2257
2267
|
});
|
|
2258
2268
|
}
|
|
2259
2269
|
return t;
|
|
2260
2270
|
}
|
|
2261
|
-
function
|
|
2271
|
+
function Yd(t, n, e) {
|
|
2262
2272
|
return n in t ? Object.defineProperty(t, n, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = e, t;
|
|
2263
2273
|
}
|
|
2264
|
-
function
|
|
2265
|
-
n && n.defaultCountry && !
|
|
2274
|
+
function zd(t, n, e) {
|
|
2275
|
+
n && n.defaultCountry && !Or(n.defaultCountry, e) && (n = ce(ce({}, n), {}, {
|
|
2266
2276
|
defaultCountry: void 0
|
|
2267
2277
|
}));
|
|
2268
2278
|
try {
|
|
2269
|
-
return
|
|
2279
|
+
return kd(t, n, e);
|
|
2270
2280
|
} catch (r) {
|
|
2271
2281
|
if (!(r instanceof E))
|
|
2272
2282
|
throw r;
|
|
2273
2283
|
}
|
|
2274
2284
|
}
|
|
2275
|
-
function
|
|
2285
|
+
function he(t, n) {
|
|
2276
2286
|
var e = Object.keys(t);
|
|
2277
2287
|
if (Object.getOwnPropertySymbols) {
|
|
2278
2288
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -2282,47 +2292,47 @@ function ce(t, n) {
|
|
|
2282
2292
|
}
|
|
2283
2293
|
return e;
|
|
2284
2294
|
}
|
|
2285
|
-
function
|
|
2295
|
+
function ge(t) {
|
|
2286
2296
|
for (var n = 1; n < arguments.length; n++) {
|
|
2287
2297
|
var e = arguments[n] != null ? arguments[n] : {};
|
|
2288
|
-
n % 2 ?
|
|
2289
|
-
|
|
2290
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) :
|
|
2298
|
+
n % 2 ? he(Object(e), !0).forEach(function(r) {
|
|
2299
|
+
Xd(t, r, e[r]);
|
|
2300
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : he(Object(e)).forEach(function(r) {
|
|
2291
2301
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
|
|
2292
2302
|
});
|
|
2293
2303
|
}
|
|
2294
2304
|
return t;
|
|
2295
2305
|
}
|
|
2296
|
-
function
|
|
2306
|
+
function Xd(t, n, e) {
|
|
2297
2307
|
return n in t ? Object.defineProperty(t, n, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = e, t;
|
|
2298
2308
|
}
|
|
2299
|
-
function
|
|
2300
|
-
var t =
|
|
2301
|
-
e =
|
|
2309
|
+
function Kd() {
|
|
2310
|
+
var t = Zd(arguments), n = t.text, e = t.options, r = t.metadata;
|
|
2311
|
+
e = ge(ge({}, e), {}, {
|
|
2302
2312
|
extract: !1
|
|
2303
2313
|
});
|
|
2304
|
-
var d =
|
|
2314
|
+
var d = zd(n, e, r);
|
|
2305
2315
|
return d && d.isValid() || !1;
|
|
2306
2316
|
}
|
|
2307
|
-
function
|
|
2317
|
+
function Qd(t, n) {
|
|
2308
2318
|
if (!(t instanceof n))
|
|
2309
2319
|
throw new TypeError("Cannot call a class as a function");
|
|
2310
2320
|
}
|
|
2311
|
-
function
|
|
2321
|
+
function me(t, n) {
|
|
2312
2322
|
for (var e = 0; e < n.length; e++) {
|
|
2313
2323
|
var r = n[e];
|
|
2314
2324
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
2315
2325
|
}
|
|
2316
2326
|
}
|
|
2317
|
-
function
|
|
2318
|
-
return n &&
|
|
2327
|
+
function Jd(t, n, e) {
|
|
2328
|
+
return n && me(t.prototype, n), e && me(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
2319
2329
|
}
|
|
2320
|
-
var
|
|
2330
|
+
var qd = /* @__PURE__ */ function() {
|
|
2321
2331
|
function t(n) {
|
|
2322
2332
|
var e = n.onCountryChange, r = n.onCallingCodeChange;
|
|
2323
|
-
|
|
2333
|
+
Qd(this, t), this.onCountryChange = e, this.onCallingCodeChange = r;
|
|
2324
2334
|
}
|
|
2325
|
-
return
|
|
2335
|
+
return Jd(t, [{
|
|
2326
2336
|
key: "reset",
|
|
2327
2337
|
value: function(e) {
|
|
2328
2338
|
var r = e.country, d = e.callingCode;
|
|
@@ -2390,11 +2400,11 @@ var Jd = /* @__PURE__ */ function() {
|
|
|
2390
2400
|
}
|
|
2391
2401
|
}]), t;
|
|
2392
2402
|
}();
|
|
2393
|
-
function
|
|
2403
|
+
function ti(t, n) {
|
|
2394
2404
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2395
2405
|
if (e)
|
|
2396
2406
|
return (e = e.call(t)).next.bind(e);
|
|
2397
|
-
if (Array.isArray(t) || (e =
|
|
2407
|
+
if (Array.isArray(t) || (e = ei(t)) || n && t && typeof t.length == "number") {
|
|
2398
2408
|
e && (t = e);
|
|
2399
2409
|
var r = 0;
|
|
2400
2410
|
return function() {
|
|
@@ -2404,18 +2414,18 @@ function qd(t, n) {
|
|
|
2404
2414
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2405
2415
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2406
2416
|
}
|
|
2407
|
-
function
|
|
2417
|
+
function ei(t, n) {
|
|
2408
2418
|
if (t) {
|
|
2409
2419
|
if (typeof t == "string")
|
|
2410
|
-
return
|
|
2420
|
+
return ye(t, n);
|
|
2411
2421
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
2412
2422
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
2413
2423
|
return Array.from(t);
|
|
2414
2424
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
2415
|
-
return
|
|
2425
|
+
return ye(t, n);
|
|
2416
2426
|
}
|
|
2417
2427
|
}
|
|
2418
|
-
function
|
|
2428
|
+
function ye(t, n) {
|
|
2419
2429
|
(n == null || n > t.length) && (n = t.length);
|
|
2420
2430
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
2421
2431
|
r[e] = t[e];
|
|
@@ -2429,10 +2439,10 @@ function Q(t, n) {
|
|
|
2429
2439
|
n & 1 && (e += t), n >>= 1, t += t;
|
|
2430
2440
|
return e + t;
|
|
2431
2441
|
}
|
|
2432
|
-
function
|
|
2433
|
-
return t[n] === ")" && n++,
|
|
2442
|
+
function pe(t, n) {
|
|
2443
|
+
return t[n] === ")" && n++, ni(t.slice(0, n));
|
|
2434
2444
|
}
|
|
2435
|
-
function
|
|
2445
|
+
function ni(t) {
|
|
2436
2446
|
for (var n = [], e = 0; e < t.length; )
|
|
2437
2447
|
t[e] === "(" ? n.push(e) : t[e] === ")" && n.pop(), e++;
|
|
2438
2448
|
var r = 0, d = "";
|
|
@@ -2443,8 +2453,8 @@ function ei(t) {
|
|
|
2443
2453
|
}
|
|
2444
2454
|
return d;
|
|
2445
2455
|
}
|
|
2446
|
-
function
|
|
2447
|
-
for (var r =
|
|
2456
|
+
function ri(t, n, e) {
|
|
2457
|
+
for (var r = ti(e.split("")), d; !(d = r()).done; ) {
|
|
2448
2458
|
var i = d.value;
|
|
2449
2459
|
if (t.slice(n + 1).search(ht) < 0)
|
|
2450
2460
|
return;
|
|
@@ -2452,22 +2462,22 @@ function ni(t, n, e) {
|
|
|
2452
2462
|
}
|
|
2453
2463
|
return [t, n];
|
|
2454
2464
|
}
|
|
2455
|
-
function
|
|
2465
|
+
function di(t, n, e) {
|
|
2456
2466
|
var r = e.metadata, d = e.shouldTryNationalPrefixFormattingRule, i = e.getSeparatorAfterNationalPrefix, a = new RegExp("^(?:".concat(n.pattern(), ")$"));
|
|
2457
2467
|
if (a.test(t.nationalSignificantNumber))
|
|
2458
|
-
return
|
|
2468
|
+
return ai(t, n, {
|
|
2459
2469
|
metadata: r,
|
|
2460
2470
|
shouldTryNationalPrefixFormattingRule: d,
|
|
2461
2471
|
getSeparatorAfterNationalPrefix: i
|
|
2462
2472
|
});
|
|
2463
2473
|
}
|
|
2464
|
-
function
|
|
2474
|
+
function ii(t, n) {
|
|
2465
2475
|
return at(t, n) === "IS_POSSIBLE";
|
|
2466
2476
|
}
|
|
2467
|
-
function
|
|
2477
|
+
function ai(t, n, e) {
|
|
2468
2478
|
var r = e.metadata, d = e.shouldTryNationalPrefixFormattingRule, i = e.getSeparatorAfterNationalPrefix;
|
|
2469
2479
|
if (t.nationalSignificantNumber, t.international, t.nationalPrefix, t.carrierCode, d(n)) {
|
|
2470
|
-
var a =
|
|
2480
|
+
var a = ve(t, n, {
|
|
2471
2481
|
useNationalPrefixFormattingRule: !0,
|
|
2472
2482
|
getSeparatorAfterNationalPrefix: i,
|
|
2473
2483
|
metadata: r
|
|
@@ -2475,43 +2485,43 @@ function ii(t, n, e) {
|
|
|
2475
2485
|
if (a)
|
|
2476
2486
|
return a;
|
|
2477
2487
|
}
|
|
2478
|
-
return
|
|
2488
|
+
return ve(t, n, {
|
|
2479
2489
|
useNationalPrefixFormattingRule: !1,
|
|
2480
2490
|
getSeparatorAfterNationalPrefix: i,
|
|
2481
2491
|
metadata: r
|
|
2482
2492
|
});
|
|
2483
2493
|
}
|
|
2484
|
-
function
|
|
2485
|
-
var r = e.metadata, d = e.useNationalPrefixFormattingRule, i = e.getSeparatorAfterNationalPrefix, a =
|
|
2494
|
+
function ve(t, n, e) {
|
|
2495
|
+
var r = e.metadata, d = e.useNationalPrefixFormattingRule, i = e.getSeparatorAfterNationalPrefix, a = rn(t.nationalSignificantNumber, n, {
|
|
2486
2496
|
carrierCode: t.carrierCode,
|
|
2487
2497
|
useInternationalFormat: t.international,
|
|
2488
2498
|
withNationalPrefix: d,
|
|
2489
2499
|
metadata: r
|
|
2490
2500
|
});
|
|
2491
|
-
if (d || (t.nationalPrefix ? a = t.nationalPrefix + i(n) + a : t.complexPrefixBeforeNationalSignificantNumber && (a = t.complexPrefixBeforeNationalSignificantNumber + " " + a)),
|
|
2501
|
+
if (d || (t.nationalPrefix ? a = t.nationalPrefix + i(n) + a : t.complexPrefixBeforeNationalSignificantNumber && (a = t.complexPrefixBeforeNationalSignificantNumber + " " + a)), oi(a, t))
|
|
2492
2502
|
return a;
|
|
2493
2503
|
}
|
|
2494
|
-
function
|
|
2504
|
+
function oi(t, n) {
|
|
2495
2505
|
return et(t) === n.getNationalDigits();
|
|
2496
2506
|
}
|
|
2497
|
-
function
|
|
2507
|
+
function ui(t, n) {
|
|
2498
2508
|
if (!(t instanceof n))
|
|
2499
2509
|
throw new TypeError("Cannot call a class as a function");
|
|
2500
2510
|
}
|
|
2501
|
-
function
|
|
2511
|
+
function Ce(t, n) {
|
|
2502
2512
|
for (var e = 0; e < n.length; e++) {
|
|
2503
2513
|
var r = n[e];
|
|
2504
2514
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
2505
2515
|
}
|
|
2506
2516
|
}
|
|
2507
|
-
function
|
|
2508
|
-
return n &&
|
|
2517
|
+
function li(t, n, e) {
|
|
2518
|
+
return n && Ce(t.prototype, n), e && Ce(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
2509
2519
|
}
|
|
2510
|
-
var
|
|
2520
|
+
var $i = /* @__PURE__ */ function() {
|
|
2511
2521
|
function t() {
|
|
2512
|
-
|
|
2522
|
+
ui(this, t);
|
|
2513
2523
|
}
|
|
2514
|
-
return
|
|
2524
|
+
return li(t, [{
|
|
2515
2525
|
key: "parse",
|
|
2516
2526
|
value: function(e) {
|
|
2517
2527
|
if (this.context = [{
|
|
@@ -2549,7 +2559,7 @@ var li = /* @__PURE__ */ function() {
|
|
|
2549
2559
|
value: function(e) {
|
|
2550
2560
|
if (!e)
|
|
2551
2561
|
throw new Error("Pattern is required");
|
|
2552
|
-
var r = e.match(
|
|
2562
|
+
var r = e.match(ci);
|
|
2553
2563
|
if (!r) {
|
|
2554
2564
|
if (fi.test(e))
|
|
2555
2565
|
throw new Error("Illegal characters found in a pattern: ".concat(e));
|
|
@@ -2596,7 +2606,7 @@ var li = /* @__PURE__ */ function() {
|
|
|
2596
2606
|
throw new Error('"]" operator must be preceded by "[" operator');
|
|
2597
2607
|
this.endContext(), this.getContext().instructions.push({
|
|
2598
2608
|
op: "[]",
|
|
2599
|
-
args:
|
|
2609
|
+
args: si(i)
|
|
2600
2610
|
});
|
|
2601
2611
|
break;
|
|
2602
2612
|
default:
|
|
@@ -2606,7 +2616,7 @@ var li = /* @__PURE__ */ function() {
|
|
|
2606
2616
|
}
|
|
2607
2617
|
}]), t;
|
|
2608
2618
|
}();
|
|
2609
|
-
function
|
|
2619
|
+
function si(t) {
|
|
2610
2620
|
for (var n = [], e = 0; e < t.length; ) {
|
|
2611
2621
|
if (t[e] === "-") {
|
|
2612
2622
|
if (e === 0 || e === t.length - 1)
|
|
@@ -2619,18 +2629,18 @@ function $i(t) {
|
|
|
2619
2629
|
}
|
|
2620
2630
|
return n;
|
|
2621
2631
|
}
|
|
2622
|
-
var fi = /[\(\)\[\]\?\:\|]/,
|
|
2632
|
+
var fi = /[\(\)\[\]\?\:\|]/, ci = new RegExp(
|
|
2623
2633
|
// any of:
|
|
2624
2634
|
"(\\||\\(\\?\\:|\\)|\\[|\\])"
|
|
2625
2635
|
);
|
|
2626
2636
|
function gt(t) {
|
|
2627
2637
|
return t.length === 1 ? t[0] : t;
|
|
2628
2638
|
}
|
|
2629
|
-
function
|
|
2639
|
+
function Ne(t, n) {
|
|
2630
2640
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2631
2641
|
if (e)
|
|
2632
2642
|
return (e = e.call(t)).next.bind(e);
|
|
2633
|
-
if (Array.isArray(t) || (e =
|
|
2643
|
+
if (Array.isArray(t) || (e = hi(t)) || n && t && typeof t.length == "number") {
|
|
2634
2644
|
e && (t = e);
|
|
2635
2645
|
var r = 0;
|
|
2636
2646
|
return function() {
|
|
@@ -2640,41 +2650,41 @@ function Ce(t, n) {
|
|
|
2640
2650
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2641
2651
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2642
2652
|
}
|
|
2643
|
-
function
|
|
2653
|
+
function hi(t, n) {
|
|
2644
2654
|
if (t) {
|
|
2645
2655
|
if (typeof t == "string")
|
|
2646
|
-
return
|
|
2656
|
+
return be(t, n);
|
|
2647
2657
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
2648
2658
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
2649
2659
|
return Array.from(t);
|
|
2650
2660
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
2651
|
-
return
|
|
2661
|
+
return be(t, n);
|
|
2652
2662
|
}
|
|
2653
2663
|
}
|
|
2654
|
-
function
|
|
2664
|
+
function be(t, n) {
|
|
2655
2665
|
(n == null || n > t.length) && (n = t.length);
|
|
2656
2666
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
2657
2667
|
r[e] = t[e];
|
|
2658
2668
|
return r;
|
|
2659
2669
|
}
|
|
2660
|
-
function
|
|
2670
|
+
function gi(t, n) {
|
|
2661
2671
|
if (!(t instanceof n))
|
|
2662
2672
|
throw new TypeError("Cannot call a class as a function");
|
|
2663
2673
|
}
|
|
2664
|
-
function
|
|
2674
|
+
function Pe(t, n) {
|
|
2665
2675
|
for (var e = 0; e < n.length; e++) {
|
|
2666
2676
|
var r = n[e];
|
|
2667
2677
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
2668
2678
|
}
|
|
2669
2679
|
}
|
|
2670
|
-
function
|
|
2671
|
-
return n &&
|
|
2680
|
+
function mi(t, n, e) {
|
|
2681
|
+
return n && Pe(t.prototype, n), e && Pe(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
2672
2682
|
}
|
|
2673
|
-
var
|
|
2683
|
+
var yi = /* @__PURE__ */ function() {
|
|
2674
2684
|
function t(n) {
|
|
2675
|
-
|
|
2685
|
+
gi(this, t), this.matchTree = new $i().parse(n);
|
|
2676
2686
|
}
|
|
2677
|
-
return
|
|
2687
|
+
return mi(t, [{
|
|
2678
2688
|
key: "match",
|
|
2679
2689
|
value: function(e) {
|
|
2680
2690
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, d = r.allowOverflow;
|
|
@@ -2739,21 +2749,21 @@ function Ot(t, n, e) {
|
|
|
2739
2749
|
}
|
|
2740
2750
|
switch (n.op) {
|
|
2741
2751
|
case "|":
|
|
2742
|
-
for (var u, l =
|
|
2743
|
-
var c = $.value,
|
|
2744
|
-
if (
|
|
2745
|
-
if (
|
|
2746
|
-
return
|
|
2747
|
-
if (
|
|
2752
|
+
for (var u, l = Ne(n.args), $; !($ = l()).done; ) {
|
|
2753
|
+
var c = $.value, f = Ot(t, c, e);
|
|
2754
|
+
if (f) {
|
|
2755
|
+
if (f.overflow)
|
|
2756
|
+
return f;
|
|
2757
|
+
if (f.match)
|
|
2748
2758
|
return {
|
|
2749
2759
|
match: !0,
|
|
2750
|
-
matchedChars:
|
|
2760
|
+
matchedChars: f.matchedChars
|
|
2751
2761
|
};
|
|
2752
|
-
if (
|
|
2762
|
+
if (f.partialMatch)
|
|
2753
2763
|
u = !0;
|
|
2754
2764
|
else
|
|
2755
2765
|
throw new Error(`Unsupported match result:
|
|
2756
|
-
`.concat(JSON.stringify(
|
|
2766
|
+
`.concat(JSON.stringify(f, null, 2)));
|
|
2757
2767
|
}
|
|
2758
2768
|
}
|
|
2759
2769
|
return u ? {
|
|
@@ -2761,7 +2771,7 @@ function Ot(t, n, e) {
|
|
|
2761
2771
|
// matchedChars: ...
|
|
2762
2772
|
} : void 0;
|
|
2763
2773
|
case "[]":
|
|
2764
|
-
for (var h =
|
|
2774
|
+
for (var h = Ne(n.args), g; !(g = h()).done; ) {
|
|
2765
2775
|
var b = g.value;
|
|
2766
2776
|
if (t[0] === b)
|
|
2767
2777
|
return t.length === 1 ? {
|
|
@@ -2779,11 +2789,11 @@ function Ot(t, n, e) {
|
|
|
2779
2789
|
throw new Error("Unsupported instruction tree: ".concat(n));
|
|
2780
2790
|
}
|
|
2781
2791
|
}
|
|
2782
|
-
function
|
|
2792
|
+
function Ae(t, n) {
|
|
2783
2793
|
var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2784
2794
|
if (e)
|
|
2785
2795
|
return (e = e.call(t)).next.bind(e);
|
|
2786
|
-
if (Array.isArray(t) || (e =
|
|
2796
|
+
if (Array.isArray(t) || (e = pi(t)) || n && t && typeof t.length == "number") {
|
|
2787
2797
|
e && (t = e);
|
|
2788
2798
|
var r = 0;
|
|
2789
2799
|
return function() {
|
|
@@ -2793,47 +2803,47 @@ function Pe(t, n) {
|
|
|
2793
2803
|
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2794
2804
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2795
2805
|
}
|
|
2796
|
-
function
|
|
2806
|
+
function pi(t, n) {
|
|
2797
2807
|
if (t) {
|
|
2798
2808
|
if (typeof t == "string")
|
|
2799
|
-
return
|
|
2809
|
+
return Ie(t, n);
|
|
2800
2810
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
2801
2811
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
2802
2812
|
return Array.from(t);
|
|
2803
2813
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
2804
|
-
return
|
|
2814
|
+
return Ie(t, n);
|
|
2805
2815
|
}
|
|
2806
2816
|
}
|
|
2807
|
-
function
|
|
2817
|
+
function Ie(t, n) {
|
|
2808
2818
|
(n == null || n > t.length) && (n = t.length);
|
|
2809
2819
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
2810
2820
|
r[e] = t[e];
|
|
2811
2821
|
return r;
|
|
2812
2822
|
}
|
|
2813
|
-
function
|
|
2823
|
+
function vi(t, n) {
|
|
2814
2824
|
if (!(t instanceof n))
|
|
2815
2825
|
throw new TypeError("Cannot call a class as a function");
|
|
2816
2826
|
}
|
|
2817
|
-
function
|
|
2827
|
+
function xe(t, n) {
|
|
2818
2828
|
for (var e = 0; e < n.length; e++) {
|
|
2819
2829
|
var r = n[e];
|
|
2820
2830
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
2821
2831
|
}
|
|
2822
2832
|
}
|
|
2823
|
-
function
|
|
2824
|
-
return n &&
|
|
2833
|
+
function Ci(t, n, e) {
|
|
2834
|
+
return n && xe(t.prototype, n), e && xe(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
2825
2835
|
}
|
|
2826
|
-
var Et = "9",
|
|
2836
|
+
var Et = "9", Ni = 15, bi = Q(Et, Ni), Pi = /[- ]/, Ai = function() {
|
|
2827
2837
|
return /\[([^\[\]])*\]/g;
|
|
2828
|
-
},
|
|
2838
|
+
}, Ii = function() {
|
|
2829
2839
|
return /\d(?=[^,}][^,}])/g;
|
|
2830
|
-
},
|
|
2840
|
+
}, xi = new RegExp("[" + x + "]*\\$1[" + x + "]*(\\$\\d[" + x + "]*)*$"), Oe = 3, Oi = /* @__PURE__ */ function() {
|
|
2831
2841
|
function t(n) {
|
|
2832
2842
|
n.state;
|
|
2833
2843
|
var e = n.metadata;
|
|
2834
|
-
|
|
2844
|
+
vi(this, t), this.metadata = e, this.resetFormat();
|
|
2835
2845
|
}
|
|
2836
|
-
return
|
|
2846
|
+
return Ci(t, [{
|
|
2837
2847
|
key: "resetFormat",
|
|
2838
2848
|
value: function() {
|
|
2839
2849
|
this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
|
|
@@ -2853,9 +2863,9 @@ var Et = "9", Ci = 15, Ni = Q(Et, Ci), bi = /[- ]/, Pi = function() {
|
|
|
2853
2863
|
key: "format",
|
|
2854
2864
|
value: function(e, r) {
|
|
2855
2865
|
var d = this;
|
|
2856
|
-
if (
|
|
2857
|
-
for (var i =
|
|
2858
|
-
var o = a.value, u =
|
|
2866
|
+
if (ii(r.nationalSignificantNumber, this.metadata))
|
|
2867
|
+
for (var i = Ae(this.matchingFormats), a; !(a = i()).done; ) {
|
|
2868
|
+
var o = a.value, u = di(r, o, {
|
|
2859
2869
|
metadata: this.metadata,
|
|
2860
2870
|
shouldTryNationalPrefixFormattingRule: function($) {
|
|
2861
2871
|
return d.shouldTryNationalPrefixFormattingRule($, {
|
|
@@ -2883,7 +2893,7 @@ var Et = "9", Ci = 15, Ni = Q(Et, Ci), bi = /[- ]/, Pi = function() {
|
|
|
2883
2893
|
}, {
|
|
2884
2894
|
key: "narrowDownMatchingFormats",
|
|
2885
2895
|
value: function(e) {
|
|
2886
|
-
var r = this, d = e.nationalSignificantNumber, i = e.nationalPrefix, a = e.international, o = d, u = o.length -
|
|
2896
|
+
var r = this, d = e.nationalSignificantNumber, i = e.nationalPrefix, a = e.international, o = d, u = o.length - Oe;
|
|
2887
2897
|
u < 0 && (u = 0), this.matchingFormats = this.matchingFormats.filter(function(l) {
|
|
2888
2898
|
return r.formatSuits(l, a, i) && r.formatMatches(l, o, u);
|
|
2889
2899
|
}), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
|
|
@@ -2902,9 +2912,9 @@ var Et = "9", Ci = 15, Ni = Q(Et, Ci), bi = /[- ]/, Pi = function() {
|
|
|
2902
2912
|
return !0;
|
|
2903
2913
|
d = Math.min(d, i - 1);
|
|
2904
2914
|
var a = e.leadingDigitsPatterns()[d];
|
|
2905
|
-
if (r.length <
|
|
2915
|
+
if (r.length < Oe)
|
|
2906
2916
|
try {
|
|
2907
|
-
return new
|
|
2917
|
+
return new yi(a).match(r, {
|
|
2908
2918
|
allowOverflow: !0
|
|
2909
2919
|
}) !== void 0;
|
|
2910
2920
|
} catch (o) {
|
|
@@ -2922,10 +2932,10 @@ var Et = "9", Ci = 15, Ni = Q(Et, Ci), bi = /[- ]/, Pi = function() {
|
|
|
2922
2932
|
value: function(e) {
|
|
2923
2933
|
for (var r = this, d = function() {
|
|
2924
2934
|
var l = a.value;
|
|
2925
|
-
return r.chosenFormat === l ? "break" :
|
|
2935
|
+
return r.chosenFormat === l ? "break" : xi.test(r.getFormatFormat(l, e.international)) ? r.createTemplateForFormat(l, e) ? (r.chosenFormat = l, "break") : (r.matchingFormats = r.matchingFormats.filter(function($) {
|
|
2926
2936
|
return $ !== l;
|
|
2927
2937
|
}), "continue") : "continue";
|
|
2928
|
-
}, i =
|
|
2938
|
+
}, i = Ae(this.matchingFormats.slice()), a; !(a = i()).done; ) {
|
|
2929
2939
|
var o = d();
|
|
2930
2940
|
if (o === "break")
|
|
2931
2941
|
break;
|
|
@@ -2944,7 +2954,7 @@ var Et = "9", Ci = 15, Ni = Q(Et, Ci), bi = /[- ]/, Pi = function() {
|
|
|
2944
2954
|
}, {
|
|
2945
2955
|
key: "getSeparatorAfterNationalPrefix",
|
|
2946
2956
|
value: function(e) {
|
|
2947
|
-
return this.isNANP || e && e.nationalPrefixFormattingRule() &&
|
|
2957
|
+
return this.isNANP || e && e.nationalPrefixFormattingRule() && Pi.test(e.nationalPrefixFormattingRule()) ? " " : "";
|
|
2948
2958
|
}
|
|
2949
2959
|
}, {
|
|
2950
2960
|
key: "getInternationalPrefixBeforeCountryCallingCode",
|
|
@@ -2960,7 +2970,7 @@ var Et = "9", Ci = 15, Ni = Q(Et, Ci), bi = /[- ]/, Pi = function() {
|
|
|
2960
2970
|
spacing: !1
|
|
2961
2971
|
}) : ""; d < i.length + e.getDigitsWithoutInternationalPrefix().length; )
|
|
2962
2972
|
r = this.template.indexOf(I, r + 1), d++;
|
|
2963
|
-
return
|
|
2973
|
+
return pe(this.template, r + 1);
|
|
2964
2974
|
}
|
|
2965
2975
|
}
|
|
2966
2976
|
}, {
|
|
@@ -2979,34 +2989,34 @@ var Et = "9", Ci = 15, Ni = Q(Et, Ci), bi = /[- ]/, Pi = function() {
|
|
|
2979
2989
|
key: "getTemplateForFormat",
|
|
2980
2990
|
value: function(e, r) {
|
|
2981
2991
|
var d = r.nationalSignificantNumber, i = r.international, a = r.nationalPrefix, o = r.complexPrefixBeforeNationalSignificantNumber, u = e.pattern();
|
|
2982
|
-
u = u.replace(
|
|
2983
|
-
var l =
|
|
2992
|
+
u = u.replace(Ai(), "\\d").replace(Ii(), "\\d");
|
|
2993
|
+
var l = bi.match(u)[0];
|
|
2984
2994
|
if (!(d.length > l.length)) {
|
|
2985
2995
|
var $ = new RegExp("^" + u + "$"), c = d.replace(/\d/g, Et);
|
|
2986
2996
|
$.test(c) && (l = c);
|
|
2987
|
-
var
|
|
2997
|
+
var f = this.getFormatFormat(e, i), h;
|
|
2988
2998
|
if (this.shouldTryNationalPrefixFormattingRule(e, {
|
|
2989
2999
|
international: i,
|
|
2990
3000
|
nationalPrefix: a
|
|
2991
3001
|
})) {
|
|
2992
|
-
var g =
|
|
2993
|
-
if (et(e.nationalPrefixFormattingRule()) === (a || "") + et("$1") && (
|
|
3002
|
+
var g = f.replace(nn, e.nationalPrefixFormattingRule());
|
|
3003
|
+
if (et(e.nationalPrefixFormattingRule()) === (a || "") + et("$1") && (f = g, h = !0, a))
|
|
2994
3004
|
for (var b = a.length; b > 0; )
|
|
2995
|
-
|
|
3005
|
+
f = f.replace(/\d/, I), b--;
|
|
2996
3006
|
}
|
|
2997
|
-
var p = l.replace(new RegExp(u),
|
|
2998
|
-
return h || (o ? p = Q(I, o.length) + " " + p : a && (p = Q(I, a.length) + this.getSeparatorAfterNationalPrefix(e) + p)), i && (p =
|
|
3007
|
+
var p = l.replace(new RegExp(u), f).replace(new RegExp(Et, "g"), I);
|
|
3008
|
+
return h || (o ? p = Q(I, o.length) + " " + p : a && (p = Q(I, a.length) + this.getSeparatorAfterNationalPrefix(e) + p)), i && (p = en(p)), p;
|
|
2999
3009
|
}
|
|
3000
3010
|
}
|
|
3001
3011
|
}, {
|
|
3002
3012
|
key: "formatNextNationalNumberDigits",
|
|
3003
3013
|
value: function(e) {
|
|
3004
|
-
var r =
|
|
3014
|
+
var r = ri(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, e);
|
|
3005
3015
|
if (!r) {
|
|
3006
3016
|
this.resetFormat();
|
|
3007
3017
|
return;
|
|
3008
3018
|
}
|
|
3009
|
-
return this.populatedNationalNumberTemplate = r[0], this.populatedNationalNumberTemplatePosition = r[1],
|
|
3019
|
+
return this.populatedNationalNumberTemplate = r[0], this.populatedNationalNumberTemplatePosition = r[1], pe(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
|
|
3010
3020
|
}
|
|
3011
3021
|
}, {
|
|
3012
3022
|
key: "shouldTryNationalPrefixFormattingRule",
|
|
@@ -3021,30 +3031,30 @@ var Et = "9", Ci = 15, Ni = Q(Et, Ci), bi = /[- ]/, Pi = function() {
|
|
|
3021
3031
|
}]), t;
|
|
3022
3032
|
}();
|
|
3023
3033
|
function fn(t, n) {
|
|
3024
|
-
return
|
|
3034
|
+
return Fi(t) || Ti(t, n) || Si(t, n) || Ei();
|
|
3025
3035
|
}
|
|
3026
|
-
function
|
|
3036
|
+
function Ei() {
|
|
3027
3037
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3028
3038
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3029
3039
|
}
|
|
3030
|
-
function
|
|
3040
|
+
function Si(t, n) {
|
|
3031
3041
|
if (t) {
|
|
3032
3042
|
if (typeof t == "string")
|
|
3033
|
-
return
|
|
3043
|
+
return Ee(t, n);
|
|
3034
3044
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
3035
3045
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
3036
3046
|
return Array.from(t);
|
|
3037
3047
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
3038
|
-
return
|
|
3048
|
+
return Ee(t, n);
|
|
3039
3049
|
}
|
|
3040
3050
|
}
|
|
3041
|
-
function
|
|
3051
|
+
function Ee(t, n) {
|
|
3042
3052
|
(n == null || n > t.length) && (n = t.length);
|
|
3043
3053
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
3044
3054
|
r[e] = t[e];
|
|
3045
3055
|
return r;
|
|
3046
3056
|
}
|
|
3047
|
-
function
|
|
3057
|
+
function Ti(t, n) {
|
|
3048
3058
|
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
3049
3059
|
if (e != null) {
|
|
3050
3060
|
var r = [], d = !0, i = !1, a, o;
|
|
@@ -3064,32 +3074,32 @@ function Si(t, n) {
|
|
|
3064
3074
|
return r;
|
|
3065
3075
|
}
|
|
3066
3076
|
}
|
|
3067
|
-
function
|
|
3077
|
+
function Fi(t) {
|
|
3068
3078
|
if (Array.isArray(t))
|
|
3069
3079
|
return t;
|
|
3070
3080
|
}
|
|
3071
|
-
function
|
|
3081
|
+
function wi(t, n) {
|
|
3072
3082
|
if (!(t instanceof n))
|
|
3073
3083
|
throw new TypeError("Cannot call a class as a function");
|
|
3074
3084
|
}
|
|
3075
|
-
function
|
|
3085
|
+
function Se(t, n) {
|
|
3076
3086
|
for (var e = 0; e < n.length; e++) {
|
|
3077
3087
|
var r = n[e];
|
|
3078
3088
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
3079
3089
|
}
|
|
3080
3090
|
}
|
|
3081
|
-
function
|
|
3082
|
-
return n &&
|
|
3091
|
+
function Di(t, n, e) {
|
|
3092
|
+
return n && Se(t.prototype, n), e && Se(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3083
3093
|
}
|
|
3084
|
-
var
|
|
3094
|
+
var Mi = "[" + x + N + "]+", Ri = new RegExp("^" + Mi + "$", "i"), _i = "(?:[" + rt + "][" + x + N + "]*|[" + x + N + "]+)", Li = new RegExp("[^" + x + N + "]+.*$"), ki = /[^\d\[\]]/, Gi = /* @__PURE__ */ function() {
|
|
3085
3095
|
function t(n) {
|
|
3086
3096
|
var e = n.defaultCountry, r = n.defaultCallingCode, d = n.metadata, i = n.onNationalSignificantNumberChange;
|
|
3087
|
-
|
|
3097
|
+
wi(this, t), this.defaultCountry = e, this.defaultCallingCode = r, this.metadata = d, this.onNationalSignificantNumberChange = i;
|
|
3088
3098
|
}
|
|
3089
|
-
return
|
|
3099
|
+
return Di(t, [{
|
|
3090
3100
|
key: "input",
|
|
3091
3101
|
value: function(e, r) {
|
|
3092
|
-
var d =
|
|
3102
|
+
var d = Ui(e), i = fn(d, 2), a = i[0], o = i[1], u = et(a), l;
|
|
3093
3103
|
return o && (r.digits || (r.startInternationalNumber(), u || (l = !0))), u && this.inputDigits(u, r), {
|
|
3094
3104
|
digits: u,
|
|
3095
3105
|
justLeadingPlus: l
|
|
@@ -3124,7 +3134,7 @@ var Di = "[" + x + N + "]+", Mi = new RegExp("^" + Di + "$", "i"), Ri = "(?:[" +
|
|
|
3124
3134
|
}, {
|
|
3125
3135
|
key: "extractCountryCallingCode",
|
|
3126
3136
|
value: function(e) {
|
|
3127
|
-
var r =
|
|
3137
|
+
var r = un("+" + e.getDigitsWithoutInternationalPrefix(), this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = r.countryCallingCode, i = r.number;
|
|
3128
3138
|
if (d)
|
|
3129
3139
|
return e.setCallingCode(d), e.update({
|
|
3130
3140
|
nationalSignificantNumber: i
|
|
@@ -3136,7 +3146,7 @@ var Di = "[" + x + N + "]+", Mi = new RegExp("^" + Di + "$", "i"), Ri = "(?:[" +
|
|
|
3136
3146
|
if (e) {
|
|
3137
3147
|
this.hasSelectedNumberingPlan = !0;
|
|
3138
3148
|
var r = e._nationalPrefixForParsing();
|
|
3139
|
-
this.couldPossiblyExtractAnotherNationalSignificantNumber = r &&
|
|
3149
|
+
this.couldPossiblyExtractAnotherNationalSignificantNumber = r && ki.test(r);
|
|
3140
3150
|
} else
|
|
3141
3151
|
this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
|
|
3142
3152
|
}
|
|
@@ -3206,7 +3216,7 @@ var Di = "[" + x + N + "]+", Mi = new RegExp("^" + Di + "$", "i"), Ri = "(?:[" +
|
|
|
3206
3216
|
value: function(e) {
|
|
3207
3217
|
var r = e.international, d = e.IDDPrefix, i = e.digits;
|
|
3208
3218
|
if (e.nationalSignificantNumber, !(r || d)) {
|
|
3209
|
-
var a =
|
|
3219
|
+
var a = an(i, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
|
|
3210
3220
|
if (a !== void 0 && a !== i)
|
|
3211
3221
|
return e.update({
|
|
3212
3222
|
IDDPrefix: i.slice(0, i.length - a.length)
|
|
@@ -3220,7 +3230,7 @@ var Di = "[" + x + N + "]+", Mi = new RegExp("^" + Di + "$", "i"), Ri = "(?:[" +
|
|
|
3220
3230
|
key: "fixMissingPlus",
|
|
3221
3231
|
value: function(e) {
|
|
3222
3232
|
if (!e.international) {
|
|
3223
|
-
var r =
|
|
3233
|
+
var r = on(e.digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = r.countryCallingCode;
|
|
3224
3234
|
if (r.number, d)
|
|
3225
3235
|
return e.update({
|
|
3226
3236
|
missingPlus: !0
|
|
@@ -3245,47 +3255,47 @@ var Di = "[" + x + N + "]+", Mi = new RegExp("^" + Di + "$", "i"), Ri = "(?:[" +
|
|
|
3245
3255
|
}
|
|
3246
3256
|
}]), t;
|
|
3247
3257
|
}();
|
|
3248
|
-
function
|
|
3249
|
-
var n = t.search(
|
|
3258
|
+
function Bi(t) {
|
|
3259
|
+
var n = t.search(_i);
|
|
3250
3260
|
if (!(n < 0)) {
|
|
3251
3261
|
t = t.slice(n);
|
|
3252
3262
|
var e;
|
|
3253
|
-
return t[0] === "+" && (e = !0, t = t.slice(1)), t = t.replace(
|
|
3263
|
+
return t[0] === "+" && (e = !0, t = t.slice(1)), t = t.replace(Li, ""), e && (t = "+" + t), t;
|
|
3254
3264
|
}
|
|
3255
3265
|
}
|
|
3256
|
-
function
|
|
3257
|
-
var n =
|
|
3266
|
+
function ji(t) {
|
|
3267
|
+
var n = Bi(t) || "";
|
|
3258
3268
|
return n[0] === "+" ? [n.slice(1), !0] : [n];
|
|
3259
3269
|
}
|
|
3260
|
-
function
|
|
3261
|
-
var n =
|
|
3262
|
-
return
|
|
3270
|
+
function Ui(t) {
|
|
3271
|
+
var n = ji(t), e = fn(n, 2), r = e[0], d = e[1];
|
|
3272
|
+
return Ri.test(r) || (r = ""), [r, d];
|
|
3263
3273
|
}
|
|
3264
|
-
function
|
|
3265
|
-
return
|
|
3274
|
+
function Wi(t, n) {
|
|
3275
|
+
return Yi(t) || Zi(t, n) || Vi(t, n) || Hi();
|
|
3266
3276
|
}
|
|
3267
|
-
function
|
|
3277
|
+
function Hi() {
|
|
3268
3278
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3269
3279
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3270
3280
|
}
|
|
3271
|
-
function
|
|
3281
|
+
function Vi(t, n) {
|
|
3272
3282
|
if (t) {
|
|
3273
3283
|
if (typeof t == "string")
|
|
3274
|
-
return
|
|
3284
|
+
return Te(t, n);
|
|
3275
3285
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
3276
3286
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
3277
3287
|
return Array.from(t);
|
|
3278
3288
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
3279
|
-
return
|
|
3289
|
+
return Te(t, n);
|
|
3280
3290
|
}
|
|
3281
3291
|
}
|
|
3282
|
-
function
|
|
3292
|
+
function Te(t, n) {
|
|
3283
3293
|
(n == null || n > t.length) && (n = t.length);
|
|
3284
3294
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
3285
3295
|
r[e] = t[e];
|
|
3286
3296
|
return r;
|
|
3287
3297
|
}
|
|
3288
|
-
function
|
|
3298
|
+
function Zi(t, n) {
|
|
3289
3299
|
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
3290
3300
|
if (e != null) {
|
|
3291
3301
|
var r = [], d = !0, i = !1, a, o;
|
|
@@ -3305,30 +3315,30 @@ function Vi(t, n) {
|
|
|
3305
3315
|
return r;
|
|
3306
3316
|
}
|
|
3307
3317
|
}
|
|
3308
|
-
function
|
|
3318
|
+
function Yi(t) {
|
|
3309
3319
|
if (Array.isArray(t))
|
|
3310
3320
|
return t;
|
|
3311
3321
|
}
|
|
3312
|
-
function
|
|
3322
|
+
function zi(t, n) {
|
|
3313
3323
|
if (!(t instanceof n))
|
|
3314
3324
|
throw new TypeError("Cannot call a class as a function");
|
|
3315
3325
|
}
|
|
3316
|
-
function
|
|
3326
|
+
function Fe(t, n) {
|
|
3317
3327
|
for (var e = 0; e < n.length; e++) {
|
|
3318
3328
|
var r = n[e];
|
|
3319
3329
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
3320
3330
|
}
|
|
3321
3331
|
}
|
|
3322
|
-
function
|
|
3323
|
-
return n &&
|
|
3332
|
+
function Xi(t, n, e) {
|
|
3333
|
+
return n && Fe(t.prototype, n), e && Fe(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3324
3334
|
}
|
|
3325
|
-
var
|
|
3335
|
+
var cn = /* @__PURE__ */ function() {
|
|
3326
3336
|
function t(n, e) {
|
|
3327
|
-
|
|
3328
|
-
var r = this.getCountryAndCallingCode(n), d =
|
|
3337
|
+
zi(this, t), this.metadata = new v(e);
|
|
3338
|
+
var r = this.getCountryAndCallingCode(n), d = Wi(r, 2), i = d[0], a = d[1];
|
|
3329
3339
|
this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
|
|
3330
3340
|
}
|
|
3331
|
-
return
|
|
3341
|
+
return Xi(t, [{
|
|
3332
3342
|
key: "getCountryAndCallingCode",
|
|
3333
3343
|
value: function(e) {
|
|
3334
3344
|
var r, d;
|
|
@@ -3361,17 +3371,17 @@ var sn = /* @__PURE__ */ function() {
|
|
|
3361
3371
|
key: "reset",
|
|
3362
3372
|
value: function() {
|
|
3363
3373
|
var e = this;
|
|
3364
|
-
return this.state = new
|
|
3374
|
+
return this.state = new qd({
|
|
3365
3375
|
onCountryChange: function(d) {
|
|
3366
3376
|
e.country = d;
|
|
3367
3377
|
},
|
|
3368
3378
|
onCallingCodeChange: function(d, i) {
|
|
3369
3379
|
e.metadata.selectNumberingPlan(i, d), e.formatter.reset(e.metadata.numberingPlan, e.state), e.parser.reset(e.metadata.numberingPlan);
|
|
3370
3380
|
}
|
|
3371
|
-
}), this.formatter = new
|
|
3381
|
+
}), this.formatter = new Oi({
|
|
3372
3382
|
state: this.state,
|
|
3373
3383
|
metadata: this.metadata
|
|
3374
|
-
}), this.parser = new
|
|
3384
|
+
}), this.parser = new Gi({
|
|
3375
3385
|
defaultCountry: this.defaultCountry,
|
|
3376
3386
|
defaultCallingCode: this.defaultCallingCode,
|
|
3377
3387
|
metadata: this.metadata,
|
|
@@ -3487,7 +3497,7 @@ var sn = /* @__PURE__ */ function() {
|
|
|
3487
3497
|
}, {
|
|
3488
3498
|
key: "determineTheCountry",
|
|
3489
3499
|
value: function() {
|
|
3490
|
-
this.state.setCountry(
|
|
3500
|
+
this.state.setCountry($n(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
|
|
3491
3501
|
nationalNumber: this.state.nationalSignificantNumber,
|
|
3492
3502
|
defaultCountry: this.defaultCountry,
|
|
3493
3503
|
metadata: this.metadata
|
|
@@ -3540,7 +3550,7 @@ var sn = /* @__PURE__ */ function() {
|
|
|
3540
3550
|
o.selectNumberingPlan(a);
|
|
3541
3551
|
var u = o.numberingPlan.callingCode(), l = this.metadata.getCountryCodesForCallingCode(u);
|
|
3542
3552
|
if (l.length > 1) {
|
|
3543
|
-
var $ =
|
|
3553
|
+
var $ = ln(r, {
|
|
3544
3554
|
countries: l,
|
|
3545
3555
|
defaultCountry: this.defaultCountry,
|
|
3546
3556
|
metadata: this.metadata.metadata
|
|
@@ -3548,7 +3558,7 @@ var sn = /* @__PURE__ */ function() {
|
|
|
3548
3558
|
$ && (a = $);
|
|
3549
3559
|
}
|
|
3550
3560
|
}
|
|
3551
|
-
var c = new
|
|
3561
|
+
var c = new dn(a || i, r, this.metadata.metadata);
|
|
3552
3562
|
return d && (c.carrierCode = d), c;
|
|
3553
3563
|
}
|
|
3554
3564
|
}
|
|
@@ -3604,39 +3614,39 @@ var sn = /* @__PURE__ */ function() {
|
|
|
3604
3614
|
}
|
|
3605
3615
|
}]), t;
|
|
3606
3616
|
}();
|
|
3607
|
-
function
|
|
3608
|
-
return
|
|
3617
|
+
function Ki() {
|
|
3618
|
+
return Ye(Kd, arguments);
|
|
3609
3619
|
}
|
|
3610
3620
|
function _(t) {
|
|
3611
|
-
return
|
|
3621
|
+
return cn.call(this, t, Tt);
|
|
3612
3622
|
}
|
|
3613
|
-
_.prototype = Object.create(
|
|
3623
|
+
_.prototype = Object.create(cn.prototype, {});
|
|
3614
3624
|
_.prototype.constructor = _;
|
|
3615
|
-
function
|
|
3616
|
-
return
|
|
3625
|
+
function Qi(t, n) {
|
|
3626
|
+
return e1(t) || t1(t, n) || qi(t, n) || Ji();
|
|
3617
3627
|
}
|
|
3618
|
-
function
|
|
3628
|
+
function Ji() {
|
|
3619
3629
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3620
3630
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3621
3631
|
}
|
|
3622
|
-
function
|
|
3632
|
+
function qi(t, n) {
|
|
3623
3633
|
if (t) {
|
|
3624
3634
|
if (typeof t == "string")
|
|
3625
|
-
return
|
|
3635
|
+
return we(t, n);
|
|
3626
3636
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
3627
3637
|
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
3628
3638
|
return Array.from(t);
|
|
3629
3639
|
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
3630
|
-
return
|
|
3640
|
+
return we(t, n);
|
|
3631
3641
|
}
|
|
3632
3642
|
}
|
|
3633
|
-
function
|
|
3643
|
+
function we(t, n) {
|
|
3634
3644
|
(n == null || n > t.length) && (n = t.length);
|
|
3635
3645
|
for (var e = 0, r = new Array(n); e < n; e++)
|
|
3636
3646
|
r[e] = t[e];
|
|
3637
3647
|
return r;
|
|
3638
3648
|
}
|
|
3639
|
-
function
|
|
3649
|
+
function t1(t, n) {
|
|
3640
3650
|
var e = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
3641
3651
|
if (e != null) {
|
|
3642
3652
|
var r = [], d = !0, i = !1, a, o;
|
|
@@ -3656,17 +3666,17 @@ function qi(t, n) {
|
|
|
3656
3666
|
return r;
|
|
3657
3667
|
}
|
|
3658
3668
|
}
|
|
3659
|
-
function
|
|
3669
|
+
function e1(t) {
|
|
3660
3670
|
if (Array.isArray(t))
|
|
3661
3671
|
return t;
|
|
3662
3672
|
}
|
|
3663
|
-
function
|
|
3664
|
-
var t =
|
|
3673
|
+
function n1() {
|
|
3674
|
+
var t = r1(arguments), n = t.input, e = t.options, r = t.metadata;
|
|
3665
3675
|
if (n.phone)
|
|
3666
3676
|
return ot(n, e, r);
|
|
3667
3677
|
}
|
|
3668
|
-
function
|
|
3669
|
-
var n = Array.prototype.slice.call(t), e =
|
|
3678
|
+
function r1(t) {
|
|
3679
|
+
var n = Array.prototype.slice.call(t), e = Qi(n, 4), r = e[0], d = e[1], i = e[2], a = e[3], o, u = {}, l;
|
|
3670
3680
|
if (typeof r == "string")
|
|
3671
3681
|
R(d) ? (i ? (u = d, l = i) : l = d, Nt(r) ? o = xt(r, void 0, l) : o = {}) : (a ? (u = i, l = a) : l = i, Nt(r) ? o = xt(r, {
|
|
3672
3682
|
defaultCountry: d
|
|
@@ -3681,8 +3691,8 @@ function n1(t) {
|
|
|
3681
3691
|
metadata: l
|
|
3682
3692
|
};
|
|
3683
3693
|
}
|
|
3684
|
-
function
|
|
3685
|
-
return
|
|
3694
|
+
function p1() {
|
|
3695
|
+
return Ye(n1, arguments);
|
|
3686
3696
|
}
|
|
3687
3697
|
function mt(t) {
|
|
3688
3698
|
const { defaultCountry: n, initialValue: e, disableFormatting: r, forceCallingCode: d } = t, i = n ? `+${B[n]?.[0]}` : "", a = new _(n);
|
|
@@ -3694,11 +3704,11 @@ function mt(t) {
|
|
|
3694
3704
|
isoCode: a.getCountry() || n || null
|
|
3695
3705
|
};
|
|
3696
3706
|
}
|
|
3697
|
-
function
|
|
3707
|
+
function d1(t, n) {
|
|
3698
3708
|
const { excludedCountries: e, onlyCountries: r, continents: d } = n;
|
|
3699
|
-
return !(S(e, !0) && e.includes(t) || S(r) && !r.includes(t) || S(d) && !
|
|
3709
|
+
return !(S(e, !0) && e.includes(t) || S(r) && !r.includes(t) || S(d) && !Ge(d, t));
|
|
3700
3710
|
}
|
|
3701
|
-
function
|
|
3711
|
+
function i1({
|
|
3702
3712
|
value: t,
|
|
3703
3713
|
onChange: n,
|
|
3704
3714
|
defaultCountry: e,
|
|
@@ -3710,27 +3720,27 @@ function d1({
|
|
|
3710
3720
|
}) {
|
|
3711
3721
|
const u = m.useRef(
|
|
3712
3722
|
e || null
|
|
3713
|
-
), l = m.useRef(new _(e)), $ = m.useRef(null), [c,
|
|
3723
|
+
), l = m.useRef(new _(e)), $ = m.useRef(null), [c, f] = m.useState(e), [h, g] = m.useState(() => mt({
|
|
3714
3724
|
initialValue: t,
|
|
3715
3725
|
defaultCountry: e,
|
|
3716
3726
|
disableFormatting: a,
|
|
3717
3727
|
forceCallingCode: o
|
|
3718
|
-
})), [b, p] = m.useState(t), D = (
|
|
3728
|
+
})), [b, p] = m.useState(t), D = (s) => ({
|
|
3719
3729
|
countryCallingCode: l.current.getCallingCode() || null,
|
|
3720
3730
|
countryCode: l.current.getCountry() || null,
|
|
3721
3731
|
nationalNumber: l.current.getNationalNumber(),
|
|
3722
3732
|
numberType: l.current.getNumber()?.getType() ?? null,
|
|
3723
3733
|
numberValue: l.current.getNumberValue() || null,
|
|
3724
|
-
reason:
|
|
3725
|
-
}), j = (
|
|
3734
|
+
reason: s
|
|
3735
|
+
}), j = (s) => s && d1(s, {
|
|
3726
3736
|
onlyCountries: r,
|
|
3727
3737
|
excludedCountries: d,
|
|
3728
3738
|
continents: i
|
|
3729
|
-
}), U = (
|
|
3739
|
+
}), U = (s) => (l.current.reset(), l.current.input(s)), ut = (s) => s.startsWith("+") || s === "" ? s : `+${s}`, lt = (s, O) => `+${tt(O)}${s}`, $t = (s) => {
|
|
3730
3740
|
const O = o ? lt(
|
|
3731
|
-
|
|
3741
|
+
s.target.value,
|
|
3732
3742
|
h.isoCode
|
|
3733
|
-
) : ut(
|
|
3743
|
+
) : ut(s.target.value), F = U(O), M = l.current.getCountry(), A = o ? (
|
|
3734
3744
|
// always the same country, can't change
|
|
3735
3745
|
h.isoCode
|
|
3736
3746
|
) : M || u.current, P = l.current.getNumberValue() || "";
|
|
@@ -3758,13 +3768,13 @@ function d1({
|
|
|
3758
3768
|
m.useEffect(() => {
|
|
3759
3769
|
if (t !== b) {
|
|
3760
3770
|
p(t);
|
|
3761
|
-
const
|
|
3771
|
+
const s = mt({
|
|
3762
3772
|
initialValue: t,
|
|
3763
3773
|
defaultCountry: e,
|
|
3764
3774
|
forceCallingCode: o,
|
|
3765
3775
|
disableFormatting: a
|
|
3766
3776
|
});
|
|
3767
|
-
u.current =
|
|
3777
|
+
u.current = s.isoCode, g(s);
|
|
3768
3778
|
}
|
|
3769
3779
|
}, [
|
|
3770
3780
|
t,
|
|
@@ -3774,15 +3784,15 @@ function d1({
|
|
|
3774
3784
|
a
|
|
3775
3785
|
]), m.useEffect(() => {
|
|
3776
3786
|
if (e !== c) {
|
|
3777
|
-
|
|
3778
|
-
const { inputValue:
|
|
3787
|
+
f(e), l.current = new _(e);
|
|
3788
|
+
const { inputValue: s, isoCode: O } = mt({
|
|
3779
3789
|
initialValue: "",
|
|
3780
3790
|
defaultCountry: e,
|
|
3781
3791
|
forceCallingCode: o,
|
|
3782
3792
|
disableFormatting: a
|
|
3783
3793
|
});
|
|
3784
|
-
p(
|
|
3785
|
-
inputValue:
|
|
3794
|
+
p(s), l.current.input(s), u.current = l.current.getCountry() || null, n?.(s, D("country")), g({
|
|
3795
|
+
inputValue: s,
|
|
3786
3796
|
isoCode: O
|
|
3787
3797
|
});
|
|
3788
3798
|
}
|
|
@@ -3793,22 +3803,22 @@ function d1({
|
|
|
3793
3803
|
o,
|
|
3794
3804
|
a
|
|
3795
3805
|
]);
|
|
3796
|
-
const z = (
|
|
3797
|
-
if (
|
|
3806
|
+
const z = (s) => {
|
|
3807
|
+
if (s === h.isoCode)
|
|
3798
3808
|
return;
|
|
3799
|
-
const O = B[
|
|
3809
|
+
const O = B[s]?.[0], { inputValue: F, isoCode: M } = h;
|
|
3800
3810
|
let A = F;
|
|
3801
3811
|
if (M) {
|
|
3802
3812
|
const w = `+${tt(M)}`;
|
|
3803
|
-
A = F.startsWith(w) ?
|
|
3813
|
+
A = F.startsWith(w) ? Ze(F, w) : "";
|
|
3804
3814
|
}
|
|
3805
3815
|
let P = `+${O}${A}`;
|
|
3806
3816
|
a || (P = U(P)), n?.(P, {
|
|
3807
3817
|
...D("country"),
|
|
3808
3818
|
// Some country have the same calling code, so we choose what the user has selected
|
|
3809
|
-
countryCode:
|
|
3810
|
-
}), u.current =
|
|
3811
|
-
isoCode:
|
|
3819
|
+
countryCode: s
|
|
3820
|
+
}), u.current = s, p(P), g({
|
|
3821
|
+
isoCode: s,
|
|
3812
3822
|
inputValue: P
|
|
3813
3823
|
});
|
|
3814
3824
|
};
|
|
@@ -3820,28 +3830,28 @@ function d1({
|
|
|
3820
3830
|
inputRef: $
|
|
3821
3831
|
};
|
|
3822
3832
|
}
|
|
3823
|
-
function
|
|
3833
|
+
function v1(t, n) {
|
|
3824
3834
|
const e = new _();
|
|
3825
3835
|
e.input(t);
|
|
3826
3836
|
const r = e.getCountry();
|
|
3827
|
-
if (!r || n?.continents && n.continents.length > 0 && !
|
|
3837
|
+
if (!r || n?.continents && n.continents.length > 0 && !Ge(n.continents, r))
|
|
3828
3838
|
return !1;
|
|
3829
3839
|
if (n?.onlyCountries && n.onlyCountries.length > 0) {
|
|
3830
|
-
const [d] =
|
|
3840
|
+
const [d] = Le([r], n.onlyCountries);
|
|
3831
3841
|
if (!d)
|
|
3832
3842
|
return !1;
|
|
3833
3843
|
}
|
|
3834
3844
|
if (n?.excludedCountries && n.excludedCountries.length > 0) {
|
|
3835
|
-
const [d] =
|
|
3845
|
+
const [d] = ke(
|
|
3836
3846
|
[r],
|
|
3837
3847
|
n.excludedCountries
|
|
3838
3848
|
);
|
|
3839
3849
|
if (!d)
|
|
3840
3850
|
return !1;
|
|
3841
3851
|
}
|
|
3842
|
-
return
|
|
3852
|
+
return Ki(t);
|
|
3843
3853
|
}
|
|
3844
|
-
const
|
|
3854
|
+
const hn = "MuiTelInput-TextField", C1 = m.forwardRef(
|
|
3845
3855
|
(t, n) => {
|
|
3846
3856
|
const {
|
|
3847
3857
|
forceCallingCode: e = !1,
|
|
@@ -3854,7 +3864,7 @@ const cn = "MuiTelInput-TextField", v1 = m.forwardRef(
|
|
|
3854
3864
|
value: l = "",
|
|
3855
3865
|
inputProps: $,
|
|
3856
3866
|
InputProps: c,
|
|
3857
|
-
inputRef:
|
|
3867
|
+
inputRef: f,
|
|
3858
3868
|
disabled: h,
|
|
3859
3869
|
onChange: g,
|
|
3860
3870
|
disableDropdown: b,
|
|
@@ -3865,12 +3875,12 @@ const cn = "MuiTelInput-TextField", v1 = m.forwardRef(
|
|
|
3865
3875
|
preferredCountries: ut,
|
|
3866
3876
|
MenuProps: lt,
|
|
3867
3877
|
className: $t,
|
|
3868
|
-
getFlagElement: z =
|
|
3869
|
-
unknownFlagElement:
|
|
3878
|
+
getFlagElement: z = Vn,
|
|
3879
|
+
unknownFlagElement: s = Zn,
|
|
3870
3880
|
...O
|
|
3871
|
-
} = t, F = m.useRef(null), [M, A] = m.useState(null), P = e ?
|
|
3872
|
-
|
|
3873
|
-
const { onInputChange: W, onCountryChange: w, inputRef: L, isoCode: X, inputValue:
|
|
3881
|
+
} = t, F = m.useRef(null), [M, A] = m.useState(null), P = e ? Gn(i) : i;
|
|
3882
|
+
rr(t);
|
|
3883
|
+
const { onInputChange: W, onCountryChange: w, inputRef: L, isoCode: X, inputValue: Rt } = i1({
|
|
3874
3884
|
forceCallingCode: e,
|
|
3875
3885
|
defaultCountry: P,
|
|
3876
3886
|
value: l ?? "",
|
|
@@ -3879,63 +3889,63 @@ const cn = "MuiTelInput-TextField", v1 = m.forwardRef(
|
|
|
3879
3889
|
onlyCountries: r,
|
|
3880
3890
|
disableFormatting: p,
|
|
3881
3891
|
continents: U
|
|
3882
|
-
}),
|
|
3892
|
+
}), gn = (y) => {
|
|
3883
3893
|
y.preventDefault(), (!h || !b) && A(F.current);
|
|
3884
|
-
}, gn = (y) => {
|
|
3885
|
-
A(null), w(y), D && L.current && L.current.focus();
|
|
3886
3894
|
}, mn = (y) => {
|
|
3887
|
-
L.current &&
|
|
3895
|
+
A(null), w(y), D && L.current && L.current.focus();
|
|
3888
3896
|
}, yn = (y) => {
|
|
3897
|
+
L.current && nr(L.current), o?.(y);
|
|
3898
|
+
}, pn = (y) => {
|
|
3889
3899
|
const H = L.current;
|
|
3890
3900
|
H.setSelectionRange(0, H.value.length), a?.(y);
|
|
3891
|
-
},
|
|
3901
|
+
}, vn = (y) => {
|
|
3892
3902
|
if (u) {
|
|
3893
3903
|
u(y);
|
|
3894
3904
|
return;
|
|
3895
3905
|
}
|
|
3896
3906
|
const H = window.getSelection();
|
|
3897
3907
|
if (H) {
|
|
3898
|
-
const
|
|
3899
|
-
y.clipboardData.setData("text/plain",
|
|
3908
|
+
const In = H.toString().replaceAll(" ", "");
|
|
3909
|
+
y.clipboardData.setData("text/plain", In), y.preventDefault();
|
|
3900
3910
|
}
|
|
3901
|
-
}, vn = (y) => {
|
|
3902
|
-
L.current = y, c?.inputRef && ft(y, c.inputRef), s && ft(y, s);
|
|
3903
3911
|
}, Cn = (y) => {
|
|
3904
|
-
|
|
3905
|
-
}, Nn = () => {
|
|
3912
|
+
L.current = y, c?.inputRef && st(y, c.inputRef), f && st(y, f);
|
|
3913
|
+
}, Nn = (y) => {
|
|
3914
|
+
F.current = y, n && st(y, n);
|
|
3915
|
+
}, bn = () => {
|
|
3906
3916
|
A(null);
|
|
3907
|
-
},
|
|
3917
|
+
}, Pn = X ? `+${tt(X)}` : "", An = e ? (
|
|
3908
3918
|
// We removed the isoCode but no necessarily the space after
|
|
3909
|
-
|
|
3910
|
-
) :
|
|
3911
|
-
return /* @__PURE__ */ V(
|
|
3919
|
+
Ze(Rt, Pn).trimStart()
|
|
3920
|
+
) : Rt;
|
|
3921
|
+
return /* @__PURE__ */ V(De, { children: [
|
|
3912
3922
|
/* @__PURE__ */ C(
|
|
3913
|
-
|
|
3923
|
+
wn,
|
|
3914
3924
|
{
|
|
3915
3925
|
type: "tel",
|
|
3916
3926
|
disabled: h,
|
|
3917
|
-
value:
|
|
3918
|
-
ref:
|
|
3919
|
-
onDoubleClick:
|
|
3920
|
-
inputRef:
|
|
3921
|
-
className: `${
|
|
3927
|
+
value: An,
|
|
3928
|
+
ref: Nn,
|
|
3929
|
+
onDoubleClick: pn,
|
|
3930
|
+
inputRef: Cn,
|
|
3931
|
+
className: `${hn} ${$t || ""}`,
|
|
3922
3932
|
onChange: W,
|
|
3923
3933
|
inputProps: {
|
|
3924
|
-
onCopy:
|
|
3934
|
+
onCopy: vn,
|
|
3925
3935
|
...$
|
|
3926
3936
|
},
|
|
3927
|
-
onFocus:
|
|
3937
|
+
onFocus: yn,
|
|
3928
3938
|
InputProps: {
|
|
3929
|
-
startAdornment: /* @__PURE__ */ C(
|
|
3930
|
-
|
|
3939
|
+
startAdornment: /* @__PURE__ */ C(Fn, { position: "start", sx: { flexShrink: 0 }, children: /* @__PURE__ */ C(
|
|
3940
|
+
zn,
|
|
3931
3941
|
{
|
|
3932
3942
|
isFlagsMenuOpened: !!M,
|
|
3933
3943
|
isoCode: X,
|
|
3934
3944
|
forceCallingCode: e,
|
|
3935
|
-
onClick:
|
|
3945
|
+
onClick: gn,
|
|
3936
3946
|
disabled: h,
|
|
3937
3947
|
getFlagElement: z,
|
|
3938
|
-
unknownFlagElement:
|
|
3948
|
+
unknownFlagElement: s,
|
|
3939
3949
|
disableDropdown: !!b
|
|
3940
3950
|
}
|
|
3941
3951
|
) }),
|
|
@@ -3945,7 +3955,7 @@ const cn = "MuiTelInput-TextField", v1 = m.forwardRef(
|
|
|
3945
3955
|
}
|
|
3946
3956
|
),
|
|
3947
3957
|
b ? null : /* @__PURE__ */ C(
|
|
3948
|
-
|
|
3958
|
+
er,
|
|
3949
3959
|
{
|
|
3950
3960
|
onlyCountries: r,
|
|
3951
3961
|
excludedCountries: d,
|
|
@@ -3953,30 +3963,31 @@ const cn = "MuiTelInput-TextField", v1 = m.forwardRef(
|
|
|
3953
3963
|
anchorEl: M,
|
|
3954
3964
|
isoCode: X,
|
|
3955
3965
|
preferredCountries: ut,
|
|
3956
|
-
onClose:
|
|
3966
|
+
onClose: bn,
|
|
3957
3967
|
langOfCountryName: j,
|
|
3958
|
-
onSelectCountry:
|
|
3968
|
+
onSelectCountry: mn,
|
|
3959
3969
|
getFlagElement: z,
|
|
3960
3970
|
...lt
|
|
3961
3971
|
}
|
|
3962
3972
|
)
|
|
3963
3973
|
] });
|
|
3964
3974
|
}
|
|
3965
|
-
),
|
|
3966
|
-
textField:
|
|
3967
|
-
|
|
3975
|
+
), N1 = {
|
|
3976
|
+
textField: hn,
|
|
3977
|
+
flagContainer: Re,
|
|
3978
|
+
flagImg: Ft,
|
|
3968
3979
|
flagButton: yt,
|
|
3969
|
-
menu:
|
|
3970
|
-
menuItem:
|
|
3971
|
-
listItemIconFlag:
|
|
3972
|
-
listItemTextCountry:
|
|
3973
|
-
callingCode:
|
|
3980
|
+
menu: Ve,
|
|
3981
|
+
menuItem: je,
|
|
3982
|
+
listItemIconFlag: Ue,
|
|
3983
|
+
listItemTextCountry: We,
|
|
3984
|
+
callingCode: He
|
|
3974
3985
|
};
|
|
3975
3986
|
export {
|
|
3976
3987
|
_ as AsYouType,
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3988
|
+
C1 as MuiTelInput,
|
|
3989
|
+
N1 as classes,
|
|
3990
|
+
p1 as getNumberType,
|
|
3991
|
+
v1 as matchIsValidTel,
|
|
3992
|
+
hn as textFieldClass
|
|
3982
3993
|
};
|