@odus/checkout 1.5.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +2 -2
- package/dist/phone.js +757 -710
- package/dist/shared.js +2 -2
- package/package.json +2 -2
package/dist/phone.js
CHANGED
|
@@ -868,7 +868,7 @@ var s = (e, t, n) => {
|
|
|
868
868
|
BF: [
|
|
869
869
|
"226",
|
|
870
870
|
"00",
|
|
871
|
-
"
|
|
871
|
+
"[024-7]\\d{7}",
|
|
872
872
|
[8],
|
|
873
873
|
[[
|
|
874
874
|
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
|
|
@@ -979,7 +979,7 @@ var s = (e, t, n) => {
|
|
|
979
979
|
BL: [
|
|
980
980
|
"590",
|
|
981
981
|
"00",
|
|
982
|
-
"
|
|
982
|
+
"7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
|
|
983
983
|
[9],
|
|
984
984
|
0,
|
|
985
985
|
"0",
|
|
@@ -989,10 +989,10 @@ var s = (e, t, n) => {
|
|
|
989
989
|
0,
|
|
990
990
|
0,
|
|
991
991
|
[
|
|
992
|
-
["
|
|
993
|
-
["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])
|
|
992
|
+
["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],
|
|
993
|
+
["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],
|
|
994
994
|
["80[0-5]\\d{6}"],
|
|
995
|
-
|
|
995
|
+
["8[129]\\d{7}"],
|
|
996
996
|
0,
|
|
997
997
|
0,
|
|
998
998
|
0,
|
|
@@ -1027,18 +1027,18 @@ var s = (e, t, n) => {
|
|
|
1027
1027
|
BO: [
|
|
1028
1028
|
"591",
|
|
1029
1029
|
"00(?:1\\d)?",
|
|
1030
|
-
"
|
|
1030
|
+
"(?:[2-7]\\d\\d|8001)\\d{5}",
|
|
1031
1031
|
[8, 9],
|
|
1032
1032
|
[
|
|
1033
1033
|
[
|
|
1034
1034
|
"(\\d)(\\d{7})",
|
|
1035
1035
|
"$1 $2",
|
|
1036
|
-
["[
|
|
1036
|
+
["[23]|4[46]|50"]
|
|
1037
1037
|
],
|
|
1038
1038
|
[
|
|
1039
1039
|
"(\\d{8})",
|
|
1040
1040
|
"$1",
|
|
1041
|
-
["[
|
|
1041
|
+
["[5-7]"]
|
|
1042
1042
|
],
|
|
1043
1043
|
[
|
|
1044
1044
|
"(\\d{3})(\\d{2})(\\d{4})",
|
|
@@ -1357,12 +1357,12 @@ var s = (e, t, n) => {
|
|
|
1357
1357
|
CF: [
|
|
1358
1358
|
"236",
|
|
1359
1359
|
"00",
|
|
1360
|
-
"(?:[27]\\d
|
|
1360
|
+
"8776\\d{4}|(?:[27]\\d|61)\\d{6}",
|
|
1361
1361
|
[8],
|
|
1362
1362
|
[[
|
|
1363
1363
|
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
|
|
1364
1364
|
"$1 $2 $3 $4",
|
|
1365
|
-
["[
|
|
1365
|
+
["[26-8]"]
|
|
1366
1366
|
]]
|
|
1367
1367
|
],
|
|
1368
1368
|
CG: [
|
|
@@ -2183,12 +2183,12 @@ var s = (e, t, n) => {
|
|
|
2183
2183
|
ET: [
|
|
2184
2184
|
"251",
|
|
2185
2185
|
"00",
|
|
2186
|
-
"(?:11|[2-
|
|
2186
|
+
"(?:11|[2-57-9]\\d)\\d{7}",
|
|
2187
2187
|
[9],
|
|
2188
2188
|
[[
|
|
2189
2189
|
"(\\d{2})(\\d{3})(\\d{4})",
|
|
2190
2190
|
"$1 $2 $3",
|
|
2191
|
-
["[1-
|
|
2191
|
+
["[1-57-9]"],
|
|
2192
2192
|
"0$1"
|
|
2193
2193
|
]],
|
|
2194
2194
|
"0"
|
|
@@ -2491,12 +2491,12 @@ var s = (e, t, n) => {
|
|
|
2491
2491
|
GF: [
|
|
2492
2492
|
"594",
|
|
2493
2493
|
"00",
|
|
2494
|
-
"(?:
|
|
2494
|
+
"(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",
|
|
2495
2495
|
[9],
|
|
2496
2496
|
[[
|
|
2497
2497
|
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
2498
2498
|
"$1 $2 $3 $4",
|
|
2499
|
-
["[5-7]|9[47]"],
|
|
2499
|
+
["[5-7]|80[6-9]|9[47]"],
|
|
2500
2500
|
"0$1"
|
|
2501
2501
|
], [
|
|
2502
2502
|
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
@@ -2537,7 +2537,7 @@ var s = (e, t, n) => {
|
|
|
2537
2537
|
GH: [
|
|
2538
2538
|
"233",
|
|
2539
2539
|
"00",
|
|
2540
|
-
"
|
|
2540
|
+
"[235]\\d{8}|800\\d{5,6}",
|
|
2541
2541
|
[8, 9],
|
|
2542
2542
|
[[
|
|
2543
2543
|
"(\\d{3})(\\d{5})",
|
|
@@ -2547,7 +2547,7 @@ var s = (e, t, n) => {
|
|
|
2547
2547
|
], [
|
|
2548
2548
|
"(\\d{2})(\\d{3})(\\d{4})",
|
|
2549
2549
|
"$1 $2 $3",
|
|
2550
|
-
["[
|
|
2550
|
+
["[2358]"],
|
|
2551
2551
|
"0$1"
|
|
2552
2552
|
]],
|
|
2553
2553
|
"0"
|
|
@@ -2603,12 +2603,12 @@ var s = (e, t, n) => {
|
|
|
2603
2603
|
GP: [
|
|
2604
2604
|
"590",
|
|
2605
2605
|
"00",
|
|
2606
|
-
"
|
|
2606
|
+
"7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
|
|
2607
2607
|
[9],
|
|
2608
2608
|
[[
|
|
2609
2609
|
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
2610
2610
|
"$1 $2 $3 $4",
|
|
2611
|
-
["[5-79]"],
|
|
2611
|
+
["[5-79]|80[6-9]"],
|
|
2612
2612
|
"0$1"
|
|
2613
2613
|
], [
|
|
2614
2614
|
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
@@ -2623,10 +2623,10 @@ var s = (e, t, n) => {
|
|
|
2623
2623
|
0,
|
|
2624
2624
|
0,
|
|
2625
2625
|
[
|
|
2626
|
-
["
|
|
2627
|
-
["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])
|
|
2626
|
+
["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],
|
|
2627
|
+
["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],
|
|
2628
2628
|
["80[0-5]\\d{6}"],
|
|
2629
|
-
|
|
2629
|
+
["8[129]\\d{7}"],
|
|
2630
2630
|
0,
|
|
2631
2631
|
0,
|
|
2632
2632
|
0,
|
|
@@ -3153,9 +3153,9 @@ var s = (e, t, n) => {
|
|
|
3153
3153
|
"(\\d{3})(\\d{3})(\\d{4})",
|
|
3154
3154
|
"$1 $2 $3",
|
|
3155
3155
|
[
|
|
3156
|
-
"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]|
|
|
3157
|
-
"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(?:(?:
|
|
3158
|
-
"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(?:
|
|
3156
|
+
"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]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]",
|
|
3157
|
+
"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(?:(?: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)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]",
|
|
3158
|
+
"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(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|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]"
|
|
3159
3159
|
],
|
|
3160
3160
|
"0$1",
|
|
3161
3161
|
1
|
|
@@ -3164,9 +3164,9 @@ var s = (e, t, n) => {
|
|
|
3164
3164
|
"(\\d{4})(\\d{3})(\\d{3})",
|
|
3165
3165
|
"$1 $2 $3",
|
|
3166
3166
|
[
|
|
3167
|
-
"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]|
|
|
3168
|
-
"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[
|
|
3169
|
-
"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[
|
|
3167
|
+
"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]|3[129]|5[29]|6[02-5]|70)|807",
|
|
3168
|
+
"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(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|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]",
|
|
3169
|
+
"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|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]"
|
|
3170
3170
|
],
|
|
3171
3171
|
"0$1",
|
|
3172
3172
|
1
|
|
@@ -3769,7 +3769,7 @@ var s = (e, t, n) => {
|
|
|
3769
3769
|
KZ: [
|
|
3770
3770
|
"7",
|
|
3771
3771
|
"810",
|
|
3772
|
-
"
|
|
3772
|
+
"8\\d{13}|[78]\\d{9}",
|
|
3773
3773
|
[10, 14],
|
|
3774
3774
|
0,
|
|
3775
3775
|
"8",
|
|
@@ -3777,7 +3777,7 @@ var s = (e, t, n) => {
|
|
|
3777
3777
|
0,
|
|
3778
3778
|
0,
|
|
3779
3779
|
0,
|
|
3780
|
-
"
|
|
3780
|
+
"7",
|
|
3781
3781
|
0,
|
|
3782
3782
|
"8~10"
|
|
3783
3783
|
],
|
|
@@ -4005,7 +4005,12 @@ var s = (e, t, n) => {
|
|
|
4005
4005
|
[
|
|
4006
4006
|
"(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
|
|
4007
4007
|
"$1 $2 $3 $4",
|
|
4008
|
-
["
|
|
4008
|
+
["20"]
|
|
4009
|
+
],
|
|
4010
|
+
[
|
|
4011
|
+
"(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
|
|
4012
|
+
"$1 $2 $3 $4",
|
|
4013
|
+
["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]
|
|
4009
4014
|
],
|
|
4010
4015
|
[
|
|
4011
4016
|
"(\\d{3})(\\d{2})(\\d{3})",
|
|
@@ -4025,12 +4030,7 @@ var s = (e, t, n) => {
|
|
|
4025
4030
|
[
|
|
4026
4031
|
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
|
|
4027
4032
|
"$1 $2 $3 $4 $5",
|
|
4028
|
-
["
|
|
4029
|
-
],
|
|
4030
|
-
[
|
|
4031
|
-
"(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
|
|
4032
|
-
"$1 $2 $3 $4",
|
|
4033
|
-
["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]
|
|
4033
|
+
["20"]
|
|
4034
4034
|
]
|
|
4035
4035
|
],
|
|
4036
4036
|
0,
|
|
@@ -4162,7 +4162,7 @@ var s = (e, t, n) => {
|
|
|
4162
4162
|
MF: [
|
|
4163
4163
|
"590",
|
|
4164
4164
|
"00",
|
|
4165
|
-
"
|
|
4165
|
+
"7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
|
|
4166
4166
|
[9],
|
|
4167
4167
|
0,
|
|
4168
4168
|
"0",
|
|
@@ -4172,10 +4172,10 @@ var s = (e, t, n) => {
|
|
|
4172
4172
|
0,
|
|
4173
4173
|
0,
|
|
4174
4174
|
[
|
|
4175
|
-
["
|
|
4176
|
-
["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])
|
|
4175
|
+
["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],
|
|
4176
|
+
["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],
|
|
4177
4177
|
["80[0-5]\\d{6}"],
|
|
4178
|
-
|
|
4178
|
+
["8[129]\\d{7}"],
|
|
4179
4179
|
0,
|
|
4180
4180
|
0,
|
|
4181
4181
|
0,
|
|
@@ -4331,7 +4331,7 @@ var s = (e, t, n) => {
|
|
|
4331
4331
|
[
|
|
4332
4332
|
"(\\d{2})(\\d{2})(\\d{4})",
|
|
4333
4333
|
"$1 $2 $3",
|
|
4334
|
-
["[
|
|
4334
|
+
["11|2[16]"],
|
|
4335
4335
|
"0$1"
|
|
4336
4336
|
],
|
|
4337
4337
|
[
|
|
@@ -4391,7 +4391,7 @@ var s = (e, t, n) => {
|
|
|
4391
4391
|
MQ: [
|
|
4392
4392
|
"596",
|
|
4393
4393
|
"00",
|
|
4394
|
-
"
|
|
4394
|
+
"7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
|
|
4395
4395
|
[9],
|
|
4396
4396
|
[[
|
|
4397
4397
|
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
@@ -5226,7 +5226,7 @@ var s = (e, t, n) => {
|
|
|
5226
5226
|
[
|
|
5227
5227
|
"(\\d{2})(\\d{2})(\\d{3})",
|
|
5228
5228
|
"$1 $2 $3",
|
|
5229
|
-
["(?: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"]
|
|
5229
|
+
["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]
|
|
5230
5230
|
],
|
|
5231
5231
|
[
|
|
5232
5232
|
"(\\d{3})(\\d{2})(\\d{2,3})",
|
|
@@ -5253,13 +5253,13 @@ var s = (e, t, n) => {
|
|
|
5253
5253
|
PM: [
|
|
5254
5254
|
"508",
|
|
5255
5255
|
"00",
|
|
5256
|
-
"[
|
|
5256
|
+
"[78]\\d{8}|[2-9]\\d{5}",
|
|
5257
5257
|
[6, 9],
|
|
5258
5258
|
[
|
|
5259
5259
|
[
|
|
5260
5260
|
"(\\d{2})(\\d{2})(\\d{2})",
|
|
5261
5261
|
"$1 $2 $3",
|
|
5262
|
-
["[
|
|
5262
|
+
["[2-9]"],
|
|
5263
5263
|
"0$1"
|
|
5264
5264
|
],
|
|
5265
5265
|
[
|
|
@@ -5445,7 +5445,7 @@ var s = (e, t, n) => {
|
|
|
5445
5445
|
0,
|
|
5446
5446
|
0,
|
|
5447
5447
|
[
|
|
5448
|
-
["
|
|
5448
|
+
["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],
|
|
5449
5449
|
["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],
|
|
5450
5450
|
["80\\d{7}"],
|
|
5451
5451
|
["89[1-37-9]\\d{6}"],
|
|
@@ -5578,14 +5578,8 @@ var s = (e, t, n) => {
|
|
|
5578
5578
|
0,
|
|
5579
5579
|
0,
|
|
5580
5580
|
0,
|
|
5581
|
+
"[3489]",
|
|
5581
5582
|
0,
|
|
5582
|
-
[
|
|
5583
|
-
["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}", [10]],
|
|
5584
|
-
["9\\d{9}", [10]],
|
|
5585
|
-
["8(?:0[04]|108\\d{3})\\d{7}"],
|
|
5586
|
-
["80[39]\\d{7}", [10]],
|
|
5587
|
-
["808\\d{7}", [10]]
|
|
5588
|
-
],
|
|
5589
5583
|
"8~10"
|
|
5590
5584
|
],
|
|
5591
5585
|
RW: [
|
|
@@ -5926,7 +5920,7 @@ var s = (e, t, n) => {
|
|
|
5926
5920
|
],
|
|
5927
5921
|
[
|
|
5928
5922
|
"(\\d)(\\d{3})(\\d{3})(\\d{2})",
|
|
5929
|
-
"$1
|
|
5923
|
+
"$1 $2 $3 $4",
|
|
5930
5924
|
["2"],
|
|
5931
5925
|
"0$1"
|
|
5932
5926
|
],
|
|
@@ -5938,7 +5932,7 @@ var s = (e, t, n) => {
|
|
|
5938
5932
|
],
|
|
5939
5933
|
[
|
|
5940
5934
|
"(\\d{2})(\\d{3})(\\d{2})(\\d{2})",
|
|
5941
|
-
"$1
|
|
5935
|
+
"$1 $2 $3 $4",
|
|
5942
5936
|
["[3-5]"],
|
|
5943
5937
|
"0$1"
|
|
5944
5938
|
]
|
|
@@ -6019,19 +6013,19 @@ var s = (e, t, n) => {
|
|
|
6019
6013
|
["[15]|2[0-79]|3[0-46-8]|4[0-7]"]
|
|
6020
6014
|
],
|
|
6021
6015
|
[
|
|
6022
|
-
"(\\d)(\\d{7})",
|
|
6016
|
+
"(\\d{2})(\\d{5,7})",
|
|
6023
6017
|
"$1 $2",
|
|
6024
|
-
["
|
|
6018
|
+
["1|28|9[2-9]"]
|
|
6025
6019
|
],
|
|
6026
6020
|
[
|
|
6027
|
-
"(\\d
|
|
6028
|
-
"$1 $2
|
|
6029
|
-
["[
|
|
6021
|
+
"(\\d)(\\d{7})",
|
|
6022
|
+
"$1 $2",
|
|
6023
|
+
["[267]|904"]
|
|
6030
6024
|
],
|
|
6031
6025
|
[
|
|
6032
|
-
"(\\d{2})(\\d{
|
|
6033
|
-
"$1 $2",
|
|
6034
|
-
["
|
|
6026
|
+
"(\\d{2})(\\d{3})(\\d{4})",
|
|
6027
|
+
"$1 $2 $3",
|
|
6028
|
+
["[346-9]"]
|
|
6035
6029
|
]
|
|
6036
6030
|
],
|
|
6037
6031
|
"0"
|
|
@@ -6039,7 +6033,7 @@ var s = (e, t, n) => {
|
|
|
6039
6033
|
SR: [
|
|
6040
6034
|
"597",
|
|
6041
6035
|
"00",
|
|
6042
|
-
"(?:[2-5]|[6-
|
|
6036
|
+
"(?:[2-5]|[6-9]\\d)\\d{5}",
|
|
6043
6037
|
[6, 7],
|
|
6044
6038
|
[
|
|
6045
6039
|
[
|
|
@@ -6187,7 +6181,7 @@ var s = (e, t, n) => {
|
|
|
6187
6181
|
TD: [
|
|
6188
6182
|
"235",
|
|
6189
6183
|
"00|16",
|
|
6190
|
-
"(?:22|
|
|
6184
|
+
"(?:22|[3689]\\d|77)\\d{6}",
|
|
6191
6185
|
[8],
|
|
6192
6186
|
[[
|
|
6193
6187
|
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
|
|
@@ -6396,11 +6390,7 @@ var s = (e, t, n) => {
|
|
|
6396
6390
|
[
|
|
6397
6391
|
"(\\d{3})(\\d{3})(\\d{2})(\\d{2})",
|
|
6398
6392
|
"$1 $2 $3 $4",
|
|
6399
|
-
[
|
|
6400
|
-
"5(?:[0-59]|61)",
|
|
6401
|
-
"5(?:[0-59]|61[06])",
|
|
6402
|
-
"5(?:[0-59]|61[06]1)"
|
|
6403
|
-
],
|
|
6393
|
+
["5[0-79]"],
|
|
6404
6394
|
"0$1",
|
|
6405
6395
|
1
|
|
6406
6396
|
],
|
|
@@ -6479,16 +6469,34 @@ var s = (e, t, n) => {
|
|
|
6479
6469
|
["202"],
|
|
6480
6470
|
"0$1"
|
|
6481
6471
|
],
|
|
6472
|
+
[
|
|
6473
|
+
"(\\d{3})(\\d{5})",
|
|
6474
|
+
"$1 $2",
|
|
6475
|
+
["826"],
|
|
6476
|
+
"0$1"
|
|
6477
|
+
],
|
|
6478
|
+
[
|
|
6479
|
+
"(\\d{3})(\\d{2})(\\d{3})",
|
|
6480
|
+
"$1 $2 $3",
|
|
6481
|
+
["83"],
|
|
6482
|
+
"0$1"
|
|
6483
|
+
],
|
|
6484
|
+
[
|
|
6485
|
+
"(\\d{2})(\\d{2})(\\d{4})",
|
|
6486
|
+
"$1 $2 $3",
|
|
6487
|
+
["82"],
|
|
6488
|
+
"0$1"
|
|
6489
|
+
],
|
|
6482
6490
|
[
|
|
6483
6491
|
"(\\d{2})(\\d{3})(\\d{3,4})",
|
|
6484
6492
|
"$1 $2 $3",
|
|
6485
|
-
["[
|
|
6493
|
+
["[25]0|37|49|8[09]"],
|
|
6486
6494
|
"0$1"
|
|
6487
6495
|
],
|
|
6488
6496
|
[
|
|
6489
6497
|
"(\\d)(\\d{3,4})(\\d{4})",
|
|
6490
6498
|
"$1 $2 $3",
|
|
6491
|
-
["[23568]|4(?:0[02-48]|[1-
|
|
6499
|
+
["[23568]|4(?:0[02-48]|[1-478])|7[1-9]", "[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],
|
|
6492
6500
|
"0$1"
|
|
6493
6501
|
],
|
|
6494
6502
|
[
|
|
@@ -6639,7 +6647,7 @@ var s = (e, t, n) => {
|
|
|
6639
6647
|
0,
|
|
6640
6648
|
0,
|
|
6641
6649
|
[
|
|
6642
|
-
["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-
|
|
6650
|
+
["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],
|
|
6643
6651
|
[""],
|
|
6644
6652
|
["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],
|
|
6645
6653
|
["900[2-9]\\d{6}"],
|
|
@@ -6816,14 +6824,14 @@ var s = (e, t, n) => {
|
|
|
6816
6824
|
[
|
|
6817
6825
|
"(\\d{4})(\\d{4,6})",
|
|
6818
6826
|
"$1 $2",
|
|
6819
|
-
["1"],
|
|
6827
|
+
["1(?:2[02]|[89])"],
|
|
6820
6828
|
0,
|
|
6821
6829
|
1
|
|
6822
6830
|
],
|
|
6823
6831
|
[
|
|
6824
6832
|
"(\\d{2})(\\d{3})(\\d{2})(\\d{2})",
|
|
6825
6833
|
"$1 $2 $3 $4",
|
|
6826
|
-
["6"],
|
|
6834
|
+
["1[26]|6"],
|
|
6827
6835
|
"0$1",
|
|
6828
6836
|
1
|
|
6829
6837
|
],
|
|
@@ -6969,7 +6977,7 @@ var s = (e, t, n) => {
|
|
|
6969
6977
|
YT: [
|
|
6970
6978
|
"262",
|
|
6971
6979
|
"00",
|
|
6972
|
-
"7093\\d{5}|(?:80|9\\d)\\d{7}
|
|
6980
|
+
"(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",
|
|
6973
6981
|
[9],
|
|
6974
6982
|
0,
|
|
6975
6983
|
"0",
|
|
@@ -6979,7 +6987,7 @@ var s = (e, t, n) => {
|
|
|
6979
6987
|
0,
|
|
6980
6988
|
0,
|
|
6981
6989
|
[
|
|
6982
|
-
["
|
|
6990
|
+
["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],
|
|
6983
6991
|
["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],
|
|
6984
6992
|
["80\\d{7}"],
|
|
6985
6993
|
0,
|
|
@@ -7302,7 +7310,7 @@ var s = (e, t, n) => {
|
|
|
7302
7310
|
[
|
|
7303
7311
|
"(\\d{2})(\\d{4})(\\d{4})",
|
|
7304
7312
|
"$1 $2 $3",
|
|
7305
|
-
["10|23|3(?:[15]|4[57])|4|
|
|
7313
|
+
["10|23|3(?:[15]|4[57])|4|5[12]"]
|
|
7306
7314
|
],
|
|
7307
7315
|
[
|
|
7308
7316
|
"(\\d{3})(\\d{4})(\\d{4})",
|
|
@@ -7323,7 +7331,7 @@ var s = (e, t, n) => {
|
|
|
7323
7331
|
0,
|
|
7324
7332
|
[
|
|
7325
7333
|
0,
|
|
7326
|
-
["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|
|
|
7334
|
+
["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}", [
|
|
7327
7335
|
7,
|
|
7328
7336
|
8,
|
|
7329
7337
|
9,
|
|
@@ -7468,46 +7476,52 @@ function f(e) {
|
|
|
7468
7476
|
return e != null && e.constructor === d;
|
|
7469
7477
|
}
|
|
7470
7478
|
//#endregion
|
|
7479
|
+
//#region node_modules/libphonenumber-js/es6/helpers/isCallingCode.js
|
|
7480
|
+
var p = /^\d+$/;
|
|
7481
|
+
function m(e) {
|
|
7482
|
+
return p.test(e);
|
|
7483
|
+
}
|
|
7484
|
+
//#endregion
|
|
7471
7485
|
//#region node_modules/libphonenumber-js/es6/metadata.js
|
|
7472
|
-
function
|
|
7486
|
+
function h(e) {
|
|
7473
7487
|
"@babel/helpers - typeof";
|
|
7474
|
-
return
|
|
7488
|
+
return h = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7475
7489
|
return typeof e;
|
|
7476
7490
|
} : function(e) {
|
|
7477
7491
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7478
|
-
},
|
|
7492
|
+
}, h(e);
|
|
7479
7493
|
}
|
|
7480
|
-
function
|
|
7494
|
+
function g(e, t) {
|
|
7481
7495
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
7482
7496
|
}
|
|
7483
|
-
function
|
|
7497
|
+
function ee(e, t) {
|
|
7484
7498
|
for (var n = 0; n < t.length; n++) {
|
|
7485
7499
|
var r = t[n];
|
|
7486
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
7500
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, te(r.key), r);
|
|
7487
7501
|
}
|
|
7488
7502
|
}
|
|
7489
|
-
function
|
|
7490
|
-
return t &&
|
|
7503
|
+
function _(e, t, n) {
|
|
7504
|
+
return t && ee(e.prototype, t), n && ee(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
7491
7505
|
}
|
|
7492
|
-
function
|
|
7493
|
-
var t =
|
|
7494
|
-
return
|
|
7506
|
+
function te(e) {
|
|
7507
|
+
var t = ne(e, "string");
|
|
7508
|
+
return h(t) == "symbol" ? t : t + "";
|
|
7495
7509
|
}
|
|
7496
|
-
function
|
|
7497
|
-
if (
|
|
7510
|
+
function ne(e, t) {
|
|
7511
|
+
if (h(e) != "object" || !e) return e;
|
|
7498
7512
|
var n = e[Symbol.toPrimitive];
|
|
7499
7513
|
if (n !== void 0) {
|
|
7500
7514
|
var r = n.call(e, t || "default");
|
|
7501
|
-
if (
|
|
7515
|
+
if (h(r) != "object") return r;
|
|
7502
7516
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
7503
7517
|
}
|
|
7504
7518
|
return (t === "string" ? String : Number)(e);
|
|
7505
7519
|
}
|
|
7506
|
-
var
|
|
7520
|
+
var re = "1.2.0", ie = "1.7.35", ae = " ext. ", v = /*#__PURE__*/ function() {
|
|
7507
7521
|
function e(t) {
|
|
7508
|
-
|
|
7522
|
+
g(this, e), de(t), this.metadata = t, he.call(this, t);
|
|
7509
7523
|
}
|
|
7510
|
-
return
|
|
7524
|
+
return _(e, [
|
|
7511
7525
|
{
|
|
7512
7526
|
key: "getCountries",
|
|
7513
7527
|
value: function() {
|
|
@@ -7561,12 +7575,14 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7561
7575
|
{
|
|
7562
7576
|
key: "selectNumberingPlan",
|
|
7563
7577
|
value: function(e, t) {
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7578
|
+
var n, r;
|
|
7579
|
+
if (e && (m(e) ? r = e : n = e), t && (r = t), n && n !== "001") {
|
|
7580
|
+
var i = this.getCountryMetadata(n);
|
|
7581
|
+
if (!i) throw Error(`Unknown country: ${n}`);
|
|
7582
|
+
this.numberingPlan = new oe(i, this);
|
|
7583
|
+
} else if (r) {
|
|
7584
|
+
if (!this.hasCallingCode(r)) throw Error(`Unknown calling code: ${r}`);
|
|
7585
|
+
this.numberingPlan = new oe(this.getNumberingPlanMetadata(r), this);
|
|
7570
7586
|
} else this.numberingPlan = void 0;
|
|
7571
7587
|
return this;
|
|
7572
7588
|
}
|
|
@@ -7692,9 +7708,9 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7692
7708
|
]);
|
|
7693
7709
|
}(), oe = /*#__PURE__*/ function() {
|
|
7694
7710
|
function e(t, n) {
|
|
7695
|
-
|
|
7711
|
+
g(this, e), this.globalMetadataObject = n, this.metadata = t, he.call(this, n.metadata);
|
|
7696
7712
|
}
|
|
7697
|
-
return
|
|
7713
|
+
return _(e, [
|
|
7698
7714
|
{
|
|
7699
7715
|
key: "callingCode",
|
|
7700
7716
|
value: function() {
|
|
@@ -7702,11 +7718,17 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7702
7718
|
}
|
|
7703
7719
|
},
|
|
7704
7720
|
{
|
|
7705
|
-
key: "
|
|
7721
|
+
key: "_getDefaultCountryMetadataForThisCallingCode",
|
|
7706
7722
|
value: function() {
|
|
7707
7723
|
return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
|
|
7708
7724
|
}
|
|
7709
7725
|
},
|
|
7726
|
+
{
|
|
7727
|
+
key: "getDefaultCountryMetadataForRegion",
|
|
7728
|
+
value: function() {
|
|
7729
|
+
return this._getDefaultCountryMetadataForThisCallingCode();
|
|
7730
|
+
}
|
|
7731
|
+
},
|
|
7710
7732
|
{
|
|
7711
7733
|
key: "IDDPrefix",
|
|
7712
7734
|
value: function() {
|
|
@@ -7741,7 +7763,7 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7741
7763
|
key: "formats",
|
|
7742
7764
|
value: function() {
|
|
7743
7765
|
var e = this;
|
|
7744
|
-
return (this._getFormats(this.metadata) || this._getFormats(this.
|
|
7766
|
+
return (this._getFormats(this.metadata) || this._getFormats(this._getDefaultCountryMetadataForThisCallingCode()) || []).map(function(t) {
|
|
7745
7767
|
return new se(t, e);
|
|
7746
7768
|
});
|
|
7747
7769
|
}
|
|
@@ -7761,7 +7783,7 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7761
7783
|
{
|
|
7762
7784
|
key: "nationalPrefixFormattingRule",
|
|
7763
7785
|
value: function() {
|
|
7764
|
-
return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.
|
|
7786
|
+
return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode());
|
|
7765
7787
|
}
|
|
7766
7788
|
},
|
|
7767
7789
|
{
|
|
@@ -7791,7 +7813,7 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7791
7813
|
{
|
|
7792
7814
|
key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
|
|
7793
7815
|
value: function() {
|
|
7794
|
-
return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.
|
|
7816
|
+
return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode());
|
|
7795
7817
|
}
|
|
7796
7818
|
},
|
|
7797
7819
|
{
|
|
@@ -7821,15 +7843,15 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7821
7843
|
{
|
|
7822
7844
|
key: "ext",
|
|
7823
7845
|
value: function() {
|
|
7824
|
-
return this.v1 || this.v2 ?
|
|
7846
|
+
return this.v1 || this.v2 ? ae : this.metadata[13] || ae;
|
|
7825
7847
|
}
|
|
7826
7848
|
}
|
|
7827
7849
|
]);
|
|
7828
7850
|
}(), se = /*#__PURE__*/ function() {
|
|
7829
7851
|
function e(t, n) {
|
|
7830
|
-
|
|
7852
|
+
g(this, e), this._format = t, this.metadata = n;
|
|
7831
7853
|
}
|
|
7832
|
-
return
|
|
7854
|
+
return _(e, [
|
|
7833
7855
|
{
|
|
7834
7856
|
key: "pattern",
|
|
7835
7857
|
value: function() {
|
|
@@ -7881,9 +7903,9 @@ var ne = "1.2.0", re = "1.7.35", ie = " ext. ", ae = /^\d+$/, _ = /*#__PURE__*/
|
|
|
7881
7903
|
]);
|
|
7882
7904
|
}(), ce = /^\(?\$1\)?$/, le = /*#__PURE__*/ function() {
|
|
7883
7905
|
function e(t, n) {
|
|
7884
|
-
|
|
7906
|
+
g(this, e), this.type = t, this.metadata = n;
|
|
7885
7907
|
}
|
|
7886
|
-
return
|
|
7908
|
+
return _(e, [{
|
|
7887
7909
|
key: "pattern",
|
|
7888
7910
|
value: function() {
|
|
7889
7911
|
return this.metadata.v1 ? this.type : this.type[0];
|
|
@@ -7915,25 +7937,26 @@ function de(e) {
|
|
|
7915
7937
|
}
|
|
7916
7938
|
/* istanbul ignore next */
|
|
7917
7939
|
var fe = function(e) {
|
|
7918
|
-
return
|
|
7940
|
+
return h(e);
|
|
7919
7941
|
};
|
|
7920
|
-
function
|
|
7921
|
-
|
|
7942
|
+
function pe(e, t) {
|
|
7943
|
+
var n = new v(t);
|
|
7944
|
+
if (n.hasCountry(e)) return n.selectNumberingPlan(e).countryCallingCode();
|
|
7922
7945
|
throw Error(`Unknown country: ${e}`);
|
|
7923
7946
|
}
|
|
7924
|
-
function
|
|
7947
|
+
function me(e, t) {
|
|
7925
7948
|
return t.countries.hasOwnProperty(e);
|
|
7926
7949
|
}
|
|
7927
|
-
function
|
|
7950
|
+
function he(e) {
|
|
7928
7951
|
var t = e.version;
|
|
7929
|
-
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? u(t,
|
|
7952
|
+
typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? u(t, re) === -1 ? this.v2 = !0 : u(t, ie) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
|
|
7930
7953
|
}
|
|
7931
7954
|
//#endregion
|
|
7932
7955
|
//#region node_modules/libphonenumber-js/es6/helpers/mergeArrays.js
|
|
7933
|
-
function
|
|
7956
|
+
function ge(e, t) {
|
|
7934
7957
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
7935
7958
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
7936
|
-
if (Array.isArray(e) || (n =
|
|
7959
|
+
if (Array.isArray(e) || (n = _e(e)) || t && e && typeof e.length == "number") {
|
|
7937
7960
|
n && (e = n);
|
|
7938
7961
|
var r = 0;
|
|
7939
7962
|
return function() {
|
|
@@ -7945,20 +7968,20 @@ function he(e, t) {
|
|
|
7945
7968
|
}
|
|
7946
7969
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7947
7970
|
}
|
|
7948
|
-
function
|
|
7971
|
+
function _e(e, t) {
|
|
7949
7972
|
if (e) {
|
|
7950
|
-
if (typeof e == "string") return
|
|
7973
|
+
if (typeof e == "string") return ve(e, t);
|
|
7951
7974
|
var n = {}.toString.call(e).slice(8, -1);
|
|
7952
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
7975
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ve(e, t) : void 0;
|
|
7953
7976
|
}
|
|
7954
7977
|
}
|
|
7955
|
-
function
|
|
7978
|
+
function ve(e, t) {
|
|
7956
7979
|
(t == null || t > e.length) && (t = e.length);
|
|
7957
7980
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
7958
7981
|
return r;
|
|
7959
7982
|
}
|
|
7960
|
-
function
|
|
7961
|
-
for (var n = e.slice(), r =
|
|
7983
|
+
function ye(e, t) {
|
|
7984
|
+
for (var n = e.slice(), r = ge(t), i; !(i = r()).done;) {
|
|
7962
7985
|
var a = i.value;
|
|
7963
7986
|
e.indexOf(a) < 0 && n.push(a);
|
|
7964
7987
|
}
|
|
@@ -7969,43 +7992,46 @@ function ve(e, t) {
|
|
|
7969
7992
|
//#endregion
|
|
7970
7993
|
//#region node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js
|
|
7971
7994
|
function y(e, t, n) {
|
|
7972
|
-
return
|
|
7995
|
+
return be(e, void 0, t, n);
|
|
7973
7996
|
}
|
|
7974
|
-
function
|
|
7975
|
-
|
|
7976
|
-
var i = r.type(
|
|
7997
|
+
function be(e, t, n, r) {
|
|
7998
|
+
n && (r = new v(r.metadata), r.selectNumberingPlan(n));
|
|
7999
|
+
var i = r.type(t), a = i && i.possibleLengths() || r.possibleLengths();
|
|
7977
8000
|
if (!a) return "IS_POSSIBLE";
|
|
7978
|
-
if (
|
|
8001
|
+
if (t === "FIXED_LINE_OR_MOBILE") {
|
|
7979
8002
|
/* istanbul ignore next */
|
|
7980
|
-
if (!r.type("FIXED_LINE")) return
|
|
8003
|
+
if (!r.type("FIXED_LINE")) return be(e, "MOBILE", n, r);
|
|
7981
8004
|
var o = r.type("MOBILE");
|
|
7982
|
-
o && (a =
|
|
7983
|
-
} else if (
|
|
8005
|
+
o && (a = ye(a, o.possibleLengths()));
|
|
8006
|
+
} else if (t && !i) return "INVALID_LENGTH";
|
|
7984
8007
|
var s = e.length, c = a[0];
|
|
7985
8008
|
return c === s ? "IS_POSSIBLE" : c > s ? "TOO_SHORT" : a[a.length - 1] < s ? "TOO_LONG" : a.indexOf(s, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
|
7986
8009
|
}
|
|
7987
8010
|
//#endregion
|
|
7988
8011
|
//#region node_modules/libphonenumber-js/es6/isPossible.js
|
|
7989
|
-
function
|
|
7990
|
-
|
|
8012
|
+
function xe(e, t, n) {
|
|
8013
|
+
/* istanbul ignore if */
|
|
8014
|
+
t === void 0 && (t = {});
|
|
8015
|
+
var r = new v(n);
|
|
8016
|
+
if (t.v2) {
|
|
7991
8017
|
if (!e.countryCallingCode) throw Error("Invalid phone number object passed");
|
|
7992
|
-
|
|
8018
|
+
r.selectNumberingPlan(e.country || e.countryCallingCode);
|
|
7993
8019
|
} else {
|
|
7994
8020
|
if (!e.phone) return !1;
|
|
7995
8021
|
if (e.country) {
|
|
7996
|
-
if (!
|
|
7997
|
-
|
|
8022
|
+
if (!r.hasCountry(e.country)) throw Error(`Unknown country: ${e.country}`);
|
|
8023
|
+
r.selectNumberingPlan(e.country);
|
|
7998
8024
|
} else {
|
|
7999
8025
|
if (!e.countryCallingCode) throw Error("Invalid phone number object passed");
|
|
8000
|
-
|
|
8026
|
+
r.selectNumberingPlan(e.countryCallingCode);
|
|
8001
8027
|
}
|
|
8002
8028
|
}
|
|
8003
|
-
if (
|
|
8004
|
-
if (e.countryCallingCode &&
|
|
8029
|
+
if (r.possibleLengths()) return Se(e.phone || e.nationalNumber, r);
|
|
8030
|
+
if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode)) return !0;
|
|
8005
8031
|
throw Error("Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.");
|
|
8006
8032
|
}
|
|
8007
|
-
function
|
|
8008
|
-
switch (y(e,
|
|
8033
|
+
function Se(e, t) {
|
|
8034
|
+
switch (y(e, void 0, t)) {
|
|
8009
8035
|
case "IS_POSSIBLE": return !0;
|
|
8010
8036
|
default: return !1;
|
|
8011
8037
|
}
|
|
@@ -8017,10 +8043,10 @@ function b(e, t) {
|
|
|
8017
8043
|
}
|
|
8018
8044
|
//#endregion
|
|
8019
8045
|
//#region node_modules/libphonenumber-js/es6/helpers/getNumberType.js
|
|
8020
|
-
function
|
|
8046
|
+
function Ce(e, t) {
|
|
8021
8047
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
8022
8048
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
8023
|
-
if (Array.isArray(e) || (n =
|
|
8049
|
+
if (Array.isArray(e) || (n = we(e)) || t && e && typeof e.length == "number") {
|
|
8024
8050
|
n && (e = n);
|
|
8025
8051
|
var r = 0;
|
|
8026
8052
|
return function() {
|
|
@@ -8032,19 +8058,19 @@ function Se(e, t) {
|
|
|
8032
8058
|
}
|
|
8033
8059
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8034
8060
|
}
|
|
8035
|
-
function
|
|
8061
|
+
function we(e, t) {
|
|
8036
8062
|
if (e) {
|
|
8037
|
-
if (typeof e == "string") return
|
|
8063
|
+
if (typeof e == "string") return Te(e, t);
|
|
8038
8064
|
var n = {}.toString.call(e).slice(8, -1);
|
|
8039
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
8065
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Te(e, t) : void 0;
|
|
8040
8066
|
}
|
|
8041
8067
|
}
|
|
8042
|
-
function
|
|
8068
|
+
function Te(e, t) {
|
|
8043
8069
|
(t == null || t > e.length) && (t = e.length);
|
|
8044
8070
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
8045
8071
|
return r;
|
|
8046
8072
|
}
|
|
8047
|
-
var
|
|
8073
|
+
var Ee = [
|
|
8048
8074
|
"MOBILE",
|
|
8049
8075
|
"PREMIUM_RATE",
|
|
8050
8076
|
"TOLL_FREE",
|
|
@@ -8055,57 +8081,77 @@ var Te = [
|
|
|
8055
8081
|
"UAN",
|
|
8056
8082
|
"VOICEMAIL"
|
|
8057
8083
|
];
|
|
8058
|
-
function
|
|
8084
|
+
function De(e, t, n) {
|
|
8059
8085
|
if (t ||= {}, !(!e.country && !e.countryCallingCode)) {
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8086
|
+
var r = new v(n);
|
|
8087
|
+
r.selectNumberingPlan(e.country || e.countryCallingCode);
|
|
8088
|
+
var i = t.v2 ? e.nationalNumber : e.phone;
|
|
8089
|
+
if (b(i, r.nationalNumberPattern())) {
|
|
8090
|
+
if (Oe(i, "FIXED_LINE", r)) return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || Oe(i, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
8091
|
+
for (var a = Ce(Ee), o; !(o = a()).done;) {
|
|
8092
|
+
var s = o.value;
|
|
8093
|
+
if (Oe(i, s, r)) return s;
|
|
8067
8094
|
}
|
|
8068
8095
|
}
|
|
8069
8096
|
}
|
|
8070
8097
|
}
|
|
8071
|
-
function
|
|
8072
|
-
|
|
8098
|
+
function Oe(e, t, n) {
|
|
8099
|
+
var r = n.type(t);
|
|
8100
|
+
return !r || !r.pattern() || r.possibleLengths() && r.possibleLengths().indexOf(e.length) < 0 ? !1 : b(e, r.pattern());
|
|
8073
8101
|
}
|
|
8074
8102
|
//#endregion
|
|
8075
8103
|
//#region node_modules/libphonenumber-js/es6/isValid.js
|
|
8076
|
-
function
|
|
8077
|
-
|
|
8104
|
+
function ke(e, t, n) {
|
|
8105
|
+
t ||= {};
|
|
8106
|
+
var r = new v(n);
|
|
8107
|
+
return r.selectNumberingPlan(e.country || e.countryCallingCode), r.hasTypes() ? De(e, t, r.metadata) !== void 0 : b(t.v2 ? e.nationalNumber : e.phone, r.nationalNumberPattern());
|
|
8108
|
+
}
|
|
8109
|
+
//#endregion
|
|
8110
|
+
//#region node_modules/libphonenumber-js/es6/helpers/isCountryCode.js
|
|
8111
|
+
var Ae = /^[A-Z]{2}$/;
|
|
8112
|
+
function je(e) {
|
|
8113
|
+
return Ae.test(e);
|
|
8114
|
+
}
|
|
8115
|
+
//#endregion
|
|
8116
|
+
//#region node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js
|
|
8117
|
+
var Me = !1;
|
|
8118
|
+
function Ne(e, t) {
|
|
8119
|
+
var n, r, i = new v(t);
|
|
8120
|
+
return je(e) ? (n = e, i.selectNumberingPlan(n), r = i.countryCallingCode()) : (r = e, Me && i.isNonGeographicCallingCode(r) && (n = "001")), {
|
|
8121
|
+
country: n,
|
|
8122
|
+
callingCode: r
|
|
8123
|
+
};
|
|
8078
8124
|
}
|
|
8079
8125
|
//#endregion
|
|
8080
8126
|
//#region node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js
|
|
8081
|
-
function
|
|
8082
|
-
var r = new
|
|
8127
|
+
function Pe(e, t, n) {
|
|
8128
|
+
var r = new v(n).getCountryCodesForCallingCode(e);
|
|
8083
8129
|
return r ? r.filter(function(e) {
|
|
8084
|
-
return
|
|
8130
|
+
return Fe(t, e, n);
|
|
8085
8131
|
}) : [];
|
|
8086
8132
|
}
|
|
8087
|
-
function
|
|
8088
|
-
var r = new
|
|
8133
|
+
function Fe(e, t, n) {
|
|
8134
|
+
var r = new v(n);
|
|
8089
8135
|
return r.selectNumberingPlan(t), r.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
|
8090
8136
|
}
|
|
8091
8137
|
//#endregion
|
|
8092
8138
|
//#region node_modules/libphonenumber-js/es6/constants.js
|
|
8093
|
-
var x = "0-90-9٠-٩۰-۹", S = "-‐-―−ー-//.. \xA0 ()()[]\\[\\]~⁓∼~", C = "++",
|
|
8094
|
-
function
|
|
8139
|
+
var x = "0-90-9٠-٩۰-۹", S = "-‐-―−ー-//.. \xA0 ()()[]\\[\\]~⁓∼~", C = "++", Ie = RegExp("([" + x + "])");
|
|
8140
|
+
function Le(e, t, n, r) {
|
|
8095
8141
|
if (t) {
|
|
8096
|
-
var i = new
|
|
8097
|
-
i.selectNumberingPlan(t
|
|
8142
|
+
var i = new v(r);
|
|
8143
|
+
i.selectNumberingPlan(t || n);
|
|
8098
8144
|
var a = new RegExp(i.IDDPrefix());
|
|
8099
8145
|
if (e.search(a) === 0) {
|
|
8100
8146
|
e = e.slice(e.match(a)[0].length);
|
|
8101
|
-
var o = e.match(
|
|
8147
|
+
var o = e.match(Ie);
|
|
8102
8148
|
if (!(o && o[1] != null && o[1].length > 0 && o[1] === "0")) return e;
|
|
8103
8149
|
}
|
|
8104
8150
|
}
|
|
8105
8151
|
}
|
|
8106
8152
|
//#endregion
|
|
8107
8153
|
//#region node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js
|
|
8108
|
-
function
|
|
8154
|
+
function Re(e, t) {
|
|
8109
8155
|
if (e && t.numberingPlan.nationalPrefixForParsing()) {
|
|
8110
8156
|
var n = RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(e);
|
|
8111
8157
|
if (r) {
|
|
@@ -8131,10 +8177,10 @@ function Ne(e, t) {
|
|
|
8131
8177
|
}
|
|
8132
8178
|
//#endregion
|
|
8133
8179
|
//#region node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js
|
|
8134
|
-
function
|
|
8180
|
+
function ze(e, t) {
|
|
8135
8181
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
8136
8182
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
8137
|
-
if (Array.isArray(e) || (n =
|
|
8183
|
+
if (Array.isArray(e) || (n = Be(e)) || t && e && typeof e.length == "number") {
|
|
8138
8184
|
n && (e = n);
|
|
8139
8185
|
var r = 0;
|
|
8140
8186
|
return function() {
|
|
@@ -8146,26 +8192,24 @@ function Pe(e, t) {
|
|
|
8146
8192
|
}
|
|
8147
8193
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8148
8194
|
}
|
|
8149
|
-
function
|
|
8195
|
+
function Be(e, t) {
|
|
8150
8196
|
if (e) {
|
|
8151
|
-
if (typeof e == "string") return
|
|
8197
|
+
if (typeof e == "string") return Ve(e, t);
|
|
8152
8198
|
var n = {}.toString.call(e).slice(8, -1);
|
|
8153
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
8199
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Ve(e, t) : void 0;
|
|
8154
8200
|
}
|
|
8155
8201
|
}
|
|
8156
|
-
function
|
|
8202
|
+
function Ve(e, t) {
|
|
8157
8203
|
(t == null || t > e.length) && (t = e.length);
|
|
8158
8204
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
8159
8205
|
return r;
|
|
8160
8206
|
}
|
|
8161
|
-
function
|
|
8162
|
-
var n = t
|
|
8163
|
-
r = new _(r);
|
|
8164
|
-
for (var i = Pe(n), a; !(a = i()).done;) {
|
|
8207
|
+
function He(e, t, n) {
|
|
8208
|
+
for (var r = new v(n), i = ze(t), a; !(a = i()).done;) {
|
|
8165
8209
|
var o = a.value;
|
|
8166
8210
|
if (r.selectNumberingPlan(o), r.leadingDigits()) {
|
|
8167
8211
|
if (e && e.search(r.leadingDigits()) === 0) return o;
|
|
8168
|
-
} else if (
|
|
8212
|
+
} else if (De({
|
|
8169
8213
|
phone: e,
|
|
8170
8214
|
country: o
|
|
8171
8215
|
}, void 0, r.metadata)) return o;
|
|
@@ -8173,33 +8217,30 @@ function Le(e, t) {
|
|
|
8173
8217
|
}
|
|
8174
8218
|
//#endregion
|
|
8175
8219
|
//#region node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js
|
|
8176
|
-
var
|
|
8177
|
-
function
|
|
8220
|
+
var Ue = !1;
|
|
8221
|
+
function We(e, t) {
|
|
8178
8222
|
var n = t.nationalNumber, r = t.metadata;
|
|
8179
8223
|
/* istanbul ignore if */
|
|
8180
|
-
if (
|
|
8224
|
+
if (Ue && r.isNonGeographicCallingCode(e)) return "001";
|
|
8181
8225
|
var i = r.getCountryCodesForCallingCode(e);
|
|
8182
|
-
if (i) return i.length === 1 ? i[0] :
|
|
8183
|
-
countries: i,
|
|
8184
|
-
metadata: r.metadata
|
|
8185
|
-
});
|
|
8226
|
+
if (i) return i.length === 1 ? i[0] : He(n, i, r.metadata);
|
|
8186
8227
|
}
|
|
8187
8228
|
//#endregion
|
|
8188
8229
|
//#region node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js
|
|
8189
|
-
function
|
|
8190
|
-
var r =
|
|
8191
|
-
return a !== e && (!
|
|
8230
|
+
function Ge(e, t, n) {
|
|
8231
|
+
var r = Re(e, n), i = r.carrierCode, a = r.nationalNumber;
|
|
8232
|
+
return a !== e && (!Ke(e, a, n) || n.numberingPlan.possibleLengths() && (t ||= We(n.numberingPlan.callingCode(), {
|
|
8192
8233
|
nationalNumber: a,
|
|
8193
8234
|
metadata: n
|
|
8194
|
-
}), !
|
|
8235
|
+
}), !qe(a, t, n))) ? { nationalNumber: e } : {
|
|
8195
8236
|
nationalNumber: a,
|
|
8196
8237
|
carrierCode: i
|
|
8197
8238
|
};
|
|
8198
8239
|
}
|
|
8199
|
-
function
|
|
8240
|
+
function Ke(e, t, n) {
|
|
8200
8241
|
return !(b(e, n.nationalNumberPattern()) && !b(t, n.nationalNumberPattern()));
|
|
8201
8242
|
}
|
|
8202
|
-
function
|
|
8243
|
+
function qe(e, t, n) {
|
|
8203
8244
|
switch (y(e, t, n)) {
|
|
8204
8245
|
case "TOO_SHORT":
|
|
8205
8246
|
case "INVALID_LENGTH": return !1;
|
|
@@ -8208,14 +8249,16 @@ function He(e, t, n) {
|
|
|
8208
8249
|
}
|
|
8209
8250
|
//#endregion
|
|
8210
8251
|
//#region node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js
|
|
8211
|
-
function
|
|
8212
|
-
|
|
8252
|
+
function Je(e, t, n, r, i) {
|
|
8253
|
+
if (!(t || n || r)) return { number: e };
|
|
8254
|
+
var a = t || n ? pe(t || n, i) : r;
|
|
8213
8255
|
if (e.indexOf(a) === 0) {
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8256
|
+
var o = new v(i);
|
|
8257
|
+
o.selectNumberingPlan(t || n || r);
|
|
8258
|
+
var s = e.slice(a.length), c = Ge(s, void 0, o).nationalNumber, l = Ge(e, void 0, o).nationalNumber;
|
|
8259
|
+
if (!b(l, o.nationalNumberPattern()) && b(c, o.nationalNumberPattern()) || y(l, void 0, o) === "TOO_LONG") return {
|
|
8217
8260
|
countryCallingCode: a,
|
|
8218
|
-
number:
|
|
8261
|
+
number: s
|
|
8219
8262
|
};
|
|
8220
8263
|
}
|
|
8221
8264
|
return { number: e };
|
|
@@ -8226,11 +8269,11 @@ function w(e, t, n, r, i) {
|
|
|
8226
8269
|
if (!e) return {};
|
|
8227
8270
|
var a;
|
|
8228
8271
|
if (e[0] !== "+") {
|
|
8229
|
-
var o =
|
|
8272
|
+
var o = Le(e, t || n, r, i);
|
|
8230
8273
|
if (o && o !== e) a = !0, e = "+" + o;
|
|
8231
8274
|
else {
|
|
8232
8275
|
if (t || n || r) {
|
|
8233
|
-
var s =
|
|
8276
|
+
var s = Je(e, t, n, r, i), c = s.countryCallingCode, l = s.number;
|
|
8234
8277
|
if (c) return {
|
|
8235
8278
|
countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
|
|
8236
8279
|
countryCallingCode: c,
|
|
@@ -8241,61 +8284,60 @@ function w(e, t, n, r, i) {
|
|
|
8241
8284
|
}
|
|
8242
8285
|
}
|
|
8243
8286
|
if (e[1] === "0") return {};
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
if (i.hasCallingCode(d)) return i.selectNumberingPlan(d), {
|
|
8287
|
+
for (var u = new v(i), d = 2; d - 1 <= 3 && d <= e.length;) {
|
|
8288
|
+
var f = e.slice(1, d);
|
|
8289
|
+
if (u.hasCallingCode(f)) return u.selectNumberingPlan(f), {
|
|
8248
8290
|
countryCallingCodeSource: a ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
|
|
8249
|
-
countryCallingCode:
|
|
8250
|
-
number: e.slice(
|
|
8291
|
+
countryCallingCode: f,
|
|
8292
|
+
number: e.slice(d)
|
|
8251
8293
|
};
|
|
8252
|
-
|
|
8294
|
+
d++;
|
|
8253
8295
|
}
|
|
8254
8296
|
return {};
|
|
8255
8297
|
}
|
|
8256
8298
|
//#endregion
|
|
8257
8299
|
//#region node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js
|
|
8258
|
-
function
|
|
8300
|
+
function Ye(e) {
|
|
8259
8301
|
return e.replace(RegExp(`[${S}]+`, "g"), " ").trim();
|
|
8260
8302
|
}
|
|
8261
8303
|
//#endregion
|
|
8262
8304
|
//#region node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js
|
|
8263
|
-
var
|
|
8264
|
-
function
|
|
8305
|
+
var Xe = /(\$\d)/;
|
|
8306
|
+
function Ze(e, t, n) {
|
|
8265
8307
|
var r = n.useInternationalFormat, i = n.withNationalPrefix;
|
|
8266
8308
|
n.carrierCode, n.metadata;
|
|
8267
|
-
var a = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : i && t.nationalPrefixFormattingRule() ? t.format().replace(
|
|
8268
|
-
return r ?
|
|
8309
|
+
var a = e.replace(new RegExp(t.pattern()), r ? t.internationalFormat() : i && t.nationalPrefixFormattingRule() ? t.format().replace(Xe, t.nationalPrefixFormattingRule()) : t.format());
|
|
8310
|
+
return r ? Ye(a) : a;
|
|
8269
8311
|
}
|
|
8270
8312
|
//#endregion
|
|
8271
8313
|
//#region node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js
|
|
8272
|
-
var
|
|
8273
|
-
function
|
|
8274
|
-
var r = new
|
|
8275
|
-
if (r.selectNumberingPlan(e
|
|
8276
|
-
if (
|
|
8314
|
+
var Qe = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
8315
|
+
function $e(e, t, n) {
|
|
8316
|
+
var r = new v(n);
|
|
8317
|
+
if (r.selectNumberingPlan(e || t), r.defaultIDDPrefix()) return r.defaultIDDPrefix();
|
|
8318
|
+
if (Qe.test(r.IDDPrefix())) return r.IDDPrefix();
|
|
8277
8319
|
}
|
|
8278
8320
|
//#endregion
|
|
8279
8321
|
//#region node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js
|
|
8280
|
-
var
|
|
8322
|
+
var et = ";ext=", T = function(e) {
|
|
8281
8323
|
return `([${x}]{1,${e}})`;
|
|
8282
8324
|
};
|
|
8283
|
-
function
|
|
8284
|
-
var t = "20", n = "15", r = "9", i = "6", a = "[ \xA0\\t,]*", o = "[:\\..]?[ \xA0\\t,-]*", s = "#?", c = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", d = "[ \xA0\\t]*", f = "(?:,{2}|;)", p =
|
|
8285
|
-
return p + "|" + m + "|" + h + "|" + g + "|" + ee + "|" +
|
|
8325
|
+
function tt(e) {
|
|
8326
|
+
var t = "20", n = "15", r = "9", i = "6", a = "[ \xA0\\t,]*", o = "[:\\..]?[ \xA0\\t,-]*", s = "#?", c = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", u = "[- ]+", d = "[ \xA0\\t]*", f = "(?:,{2}|;)", p = et + T(t), m = a + c + o + T(t) + s, h = a + l + o + T(r) + s, g = u + T(i) + "#", ee = d + f + o + T(n) + s, _ = d + "(?:,)+" + o + T(r) + s;
|
|
8327
|
+
return p + "|" + m + "|" + h + "|" + g + "|" + ee + "|" + _;
|
|
8286
8328
|
}
|
|
8287
8329
|
//#endregion
|
|
8288
8330
|
//#region node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js
|
|
8289
|
-
var
|
|
8290
|
-
function
|
|
8291
|
-
return e.length >= 2 &&
|
|
8331
|
+
var nt = "[" + x + "]{2}", rt = "[" + C + "]{0,1}(?:[" + S + "]*[" + x + "]){3,}[" + S + x + "]*", it = RegExp("^[" + C + "]{0,1}(?:[" + S + "]*[" + x + "]){1,2}$", "i"), at = rt + "(?:" + tt() + ")?", ot = RegExp("^" + nt + "$|^" + at + "$", "i");
|
|
8332
|
+
function st(e) {
|
|
8333
|
+
return e.length >= 2 && ot.test(e);
|
|
8292
8334
|
}
|
|
8293
|
-
function
|
|
8294
|
-
return
|
|
8335
|
+
function ct(e) {
|
|
8336
|
+
return it.test(e);
|
|
8295
8337
|
}
|
|
8296
8338
|
//#endregion
|
|
8297
8339
|
//#region node_modules/libphonenumber-js/es6/helpers/RFC3966.js
|
|
8298
|
-
function
|
|
8340
|
+
function lt(e) {
|
|
8299
8341
|
var t = e.number, n = e.ext;
|
|
8300
8342
|
if (!t) return "";
|
|
8301
8343
|
if (t[0] !== "+") throw Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");
|
|
@@ -8303,42 +8345,44 @@ function it(e) {
|
|
|
8303
8345
|
}
|
|
8304
8346
|
//#endregion
|
|
8305
8347
|
//#region node_modules/libphonenumber-js/es6/format.js
|
|
8306
|
-
var
|
|
8348
|
+
var ut = { formatExtension: function(e, t, n) {
|
|
8307
8349
|
return `${e}${n.ext()}${t}`;
|
|
8308
8350
|
} };
|
|
8309
|
-
function
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8351
|
+
function dt(e, t, n, r) {
|
|
8352
|
+
n = n ? mt({}, ut, n) : ut;
|
|
8353
|
+
var i = new v(r);
|
|
8354
|
+
if (e.country && e.country !== "001") {
|
|
8355
|
+
if (!i.hasCountry(e.country)) throw Error(`Unknown country: ${e.country}`);
|
|
8356
|
+
i.selectNumberingPlan(e.country);
|
|
8357
|
+
} else if (e.countryCallingCode) i.selectNumberingPlan(e.countryCallingCode);
|
|
8314
8358
|
else return e.phone || "";
|
|
8315
|
-
var
|
|
8359
|
+
var a = i.countryCallingCode(), o = n.v2 ? e.nationalNumber : e.phone, s;
|
|
8316
8360
|
switch (t) {
|
|
8317
|
-
case "NATIONAL": return
|
|
8318
|
-
case "INTERNATIONAL": return
|
|
8319
|
-
case "E.164": return `+${
|
|
8320
|
-
case "RFC3966": return
|
|
8321
|
-
number: `+${
|
|
8361
|
+
case "NATIONAL": return o ? (s = E(o, e.carrierCode, "NATIONAL", i, n), D(s, e.ext, i, n.formatExtension)) : "";
|
|
8362
|
+
case "INTERNATIONAL": return o ? (s = E(o, null, "INTERNATIONAL", i, n), s = `+${a} ${s}`, D(s, e.ext, i, n.formatExtension)) : `+${a}`;
|
|
8363
|
+
case "E.164": return `+${a}${o}`;
|
|
8364
|
+
case "RFC3966": return lt({
|
|
8365
|
+
number: `+${a}${o}`,
|
|
8322
8366
|
ext: e.ext
|
|
8323
8367
|
});
|
|
8324
8368
|
case "IDD":
|
|
8325
8369
|
if (!n.fromCountry) return;
|
|
8326
|
-
var
|
|
8327
|
-
return
|
|
8370
|
+
var c = pt(o, e.carrierCode, a, n.fromCountry, i);
|
|
8371
|
+
return c ? D(c, e.ext, i, n.formatExtension) : void 0;
|
|
8328
8372
|
default: throw Error(`Unknown "format" argument passed to "formatNumber()": "${t}"`);
|
|
8329
8373
|
}
|
|
8330
8374
|
}
|
|
8331
8375
|
function E(e, t, n, r, i) {
|
|
8332
|
-
var a =
|
|
8333
|
-
return a ?
|
|
8376
|
+
var a = ft(r.formats(), e);
|
|
8377
|
+
return a ? Ze(e, a, {
|
|
8334
8378
|
useInternationalFormat: n === "INTERNATIONAL",
|
|
8335
8379
|
withNationalPrefix: !(a.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && i && i.nationalPrefix === !1),
|
|
8336
8380
|
carrierCode: t,
|
|
8337
8381
|
metadata: r
|
|
8338
8382
|
}) : e;
|
|
8339
8383
|
}
|
|
8340
|
-
function
|
|
8341
|
-
return
|
|
8384
|
+
function ft(e, t) {
|
|
8385
|
+
return ht(e, function(e) {
|
|
8342
8386
|
if (e.leadingDigitsPatterns().length > 0) {
|
|
8343
8387
|
var n = e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length - 1];
|
|
8344
8388
|
if (t.search(n) !== 0) return !1;
|
|
@@ -8349,22 +8393,22 @@ function st(e, t) {
|
|
|
8349
8393
|
function D(e, t, n, r) {
|
|
8350
8394
|
return t ? r(e, t, n) : e;
|
|
8351
8395
|
}
|
|
8352
|
-
function
|
|
8353
|
-
if (
|
|
8396
|
+
function pt(e, t, n, r, i) {
|
|
8397
|
+
if (pe(r, i.metadata) === n) {
|
|
8354
8398
|
var a = E(e, t, "NATIONAL", i);
|
|
8355
8399
|
return n === "1" ? n + " " + a : a;
|
|
8356
8400
|
}
|
|
8357
|
-
var o =
|
|
8401
|
+
var o = $e(r, void 0, i.metadata);
|
|
8358
8402
|
if (o) return `${o} ${n} ${E(e, null, "INTERNATIONAL", i)}`;
|
|
8359
8403
|
}
|
|
8360
|
-
function
|
|
8404
|
+
function mt() {
|
|
8361
8405
|
for (var e = 1, t = [...arguments]; e < t.length;) {
|
|
8362
8406
|
if (t[e]) for (var n in t[e]) t[0][n] = t[e][n];
|
|
8363
8407
|
e++;
|
|
8364
8408
|
}
|
|
8365
8409
|
return t[0];
|
|
8366
8410
|
}
|
|
8367
|
-
function
|
|
8411
|
+
function ht(e, t) {
|
|
8368
8412
|
for (var n = 0; n < e.length;) {
|
|
8369
8413
|
if (t(e[n])) return e[n];
|
|
8370
8414
|
n++;
|
|
@@ -8380,7 +8424,7 @@ function O(e) {
|
|
|
8380
8424
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8381
8425
|
}, O(e);
|
|
8382
8426
|
}
|
|
8383
|
-
function
|
|
8427
|
+
function gt(e, t) {
|
|
8384
8428
|
var n = Object.keys(e);
|
|
8385
8429
|
if (Object.getOwnPropertySymbols) {
|
|
8386
8430
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -8390,42 +8434,42 @@ function dt(e, t) {
|
|
|
8390
8434
|
}
|
|
8391
8435
|
return n;
|
|
8392
8436
|
}
|
|
8393
|
-
function
|
|
8437
|
+
function _t(e) {
|
|
8394
8438
|
for (var t = 1; t < arguments.length; t++) {
|
|
8395
8439
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
8396
|
-
t % 2 ?
|
|
8397
|
-
|
|
8398
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
8440
|
+
t % 2 ? gt(Object(n), !0).forEach(function(t) {
|
|
8441
|
+
vt(e, t, n[t]);
|
|
8442
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : gt(Object(n)).forEach(function(t) {
|
|
8399
8443
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
8400
8444
|
});
|
|
8401
8445
|
}
|
|
8402
8446
|
return e;
|
|
8403
8447
|
}
|
|
8404
|
-
function
|
|
8405
|
-
return (t =
|
|
8448
|
+
function vt(e, t, n) {
|
|
8449
|
+
return (t = St(t)) in e ? Object.defineProperty(e, t, {
|
|
8406
8450
|
value: n,
|
|
8407
8451
|
enumerable: !0,
|
|
8408
8452
|
configurable: !0,
|
|
8409
8453
|
writable: !0
|
|
8410
8454
|
}) : e[t] = n, e;
|
|
8411
8455
|
}
|
|
8412
|
-
function
|
|
8456
|
+
function yt(e, t) {
|
|
8413
8457
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
8414
8458
|
}
|
|
8415
|
-
function
|
|
8459
|
+
function bt(e, t) {
|
|
8416
8460
|
for (var n = 0; n < t.length; n++) {
|
|
8417
8461
|
var r = t[n];
|
|
8418
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
8462
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, St(r.key), r);
|
|
8419
8463
|
}
|
|
8420
8464
|
}
|
|
8421
|
-
function
|
|
8422
|
-
return t &&
|
|
8465
|
+
function xt(e, t, n) {
|
|
8466
|
+
return t && bt(e.prototype, t), n && bt(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
8423
8467
|
}
|
|
8424
|
-
function
|
|
8425
|
-
var t =
|
|
8468
|
+
function St(e) {
|
|
8469
|
+
var t = Ct(e, "string");
|
|
8426
8470
|
return O(t) == "symbol" ? t : t + "";
|
|
8427
8471
|
}
|
|
8428
|
-
function
|
|
8472
|
+
function Ct(e, t) {
|
|
8429
8473
|
if (O(e) != "object" || !e) return e;
|
|
8430
8474
|
var n = e[Symbol.toPrimitive];
|
|
8431
8475
|
if (n !== void 0) {
|
|
@@ -8435,27 +8479,27 @@ function vt(e, t) {
|
|
|
8435
8479
|
}
|
|
8436
8480
|
return (t === "string" ? String : Number)(e);
|
|
8437
8481
|
}
|
|
8438
|
-
var
|
|
8482
|
+
var k = /*#__PURE__*/ function() {
|
|
8439
8483
|
function e(t, n, r) {
|
|
8440
|
-
if (
|
|
8484
|
+
if (yt(this, e), !t) throw TypeError("First argument is required");
|
|
8441
8485
|
if (typeof t != "string") throw TypeError("First argument must be a string");
|
|
8442
8486
|
if (t[0] === "+" && !n) throw TypeError("`metadata` argument not passed");
|
|
8443
8487
|
if (f(n) && f(n.countries)) {
|
|
8444
8488
|
r = n;
|
|
8445
8489
|
var i = t;
|
|
8446
|
-
if (!
|
|
8490
|
+
if (!wt.test(i)) throw Error("Invalid `number` argument passed: must consist of a \"+\" followed by digits");
|
|
8447
8491
|
var a = w(i, void 0, void 0, void 0, r), o = a.countryCallingCode;
|
|
8448
8492
|
if (n = a.number, t = o, !n) throw Error("Invalid `number` argument passed: too short");
|
|
8449
8493
|
}
|
|
8450
8494
|
if (!n) throw TypeError("`nationalNumber` argument is required");
|
|
8451
8495
|
if (typeof n != "string") throw TypeError("`nationalNumber` argument must be a string");
|
|
8452
8496
|
de(r);
|
|
8453
|
-
var s =
|
|
8497
|
+
var s = Ne(t, r), c = s.country, l = s.callingCode;
|
|
8454
8498
|
this.country = c, this.countryCallingCode = l, this.nationalNumber = n, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
|
|
8455
8499
|
return r;
|
|
8456
8500
|
};
|
|
8457
8501
|
}
|
|
8458
|
-
return
|
|
8502
|
+
return xt(e, [
|
|
8459
8503
|
{
|
|
8460
8504
|
key: "setExt",
|
|
8461
8505
|
value: function(e) {
|
|
@@ -8465,25 +8509,25 @@ var yt = !1, bt = /*#__PURE__*/ function() {
|
|
|
8465
8509
|
{
|
|
8466
8510
|
key: "getPossibleCountries",
|
|
8467
8511
|
value: function() {
|
|
8468
|
-
return this.country ? [this.country] :
|
|
8512
|
+
return this.country ? [this.country] : Pe(this.countryCallingCode, this.nationalNumber, this.getMetadata());
|
|
8469
8513
|
}
|
|
8470
8514
|
},
|
|
8471
8515
|
{
|
|
8472
8516
|
key: "isPossible",
|
|
8473
8517
|
value: function() {
|
|
8474
|
-
return
|
|
8518
|
+
return xe(this, { v2: !0 }, this.getMetadata());
|
|
8475
8519
|
}
|
|
8476
8520
|
},
|
|
8477
8521
|
{
|
|
8478
8522
|
key: "isValid",
|
|
8479
8523
|
value: function() {
|
|
8480
|
-
return
|
|
8524
|
+
return ke(this, { v2: !0 }, this.getMetadata());
|
|
8481
8525
|
}
|
|
8482
8526
|
},
|
|
8483
8527
|
{
|
|
8484
8528
|
key: "isNonGeographic",
|
|
8485
8529
|
value: function() {
|
|
8486
|
-
return new
|
|
8530
|
+
return new v(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode);
|
|
8487
8531
|
}
|
|
8488
8532
|
},
|
|
8489
8533
|
{
|
|
@@ -8495,13 +8539,13 @@ var yt = !1, bt = /*#__PURE__*/ function() {
|
|
|
8495
8539
|
{
|
|
8496
8540
|
key: "getType",
|
|
8497
8541
|
value: function() {
|
|
8498
|
-
return
|
|
8542
|
+
return De(this, { v2: !0 }, this.getMetadata());
|
|
8499
8543
|
}
|
|
8500
8544
|
},
|
|
8501
8545
|
{
|
|
8502
8546
|
key: "format",
|
|
8503
8547
|
value: function(e, t) {
|
|
8504
|
-
return
|
|
8548
|
+
return dt(this, e, t ? _t(_t({}, t), {}, { v2: !0 }) : { v2: !0 }, this.getMetadata());
|
|
8505
8549
|
}
|
|
8506
8550
|
},
|
|
8507
8551
|
{
|
|
@@ -8523,136 +8567,126 @@ var yt = !1, bt = /*#__PURE__*/ function() {
|
|
|
8523
8567
|
}
|
|
8524
8568
|
}
|
|
8525
8569
|
]);
|
|
8526
|
-
}(),
|
|
8527
|
-
return /^[A-Z]{2}$/.test(e);
|
|
8528
|
-
};
|
|
8529
|
-
function St(e, t) {
|
|
8530
|
-
var n, r, i = new _(t);
|
|
8531
|
-
return xt(e) ? (n = e, i.selectNumberingPlan(n), r = i.countryCallingCode()) : (r = e, yt && i.isNonGeographicCallingCode(r) && (n = "001")), {
|
|
8532
|
-
country: n,
|
|
8533
|
-
countryCallingCode: r
|
|
8534
|
-
};
|
|
8535
|
-
}
|
|
8536
|
-
var Ct = /^\+\d+$/;
|
|
8570
|
+
}(), wt = /^\+\d+$/;
|
|
8537
8571
|
//#endregion
|
|
8538
8572
|
//#region node_modules/libphonenumber-js/es6/ParseError.js
|
|
8539
|
-
function
|
|
8573
|
+
function A(e) {
|
|
8540
8574
|
"@babel/helpers - typeof";
|
|
8541
|
-
return
|
|
8575
|
+
return A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8542
8576
|
return typeof e;
|
|
8543
8577
|
} : function(e) {
|
|
8544
8578
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8545
|
-
},
|
|
8579
|
+
}, A(e);
|
|
8546
8580
|
}
|
|
8547
|
-
function
|
|
8581
|
+
function Tt(e, t) {
|
|
8548
8582
|
for (var n = 0; n < t.length; n++) {
|
|
8549
8583
|
var r = t[n];
|
|
8550
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
8584
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Dt(r.key), r);
|
|
8551
8585
|
}
|
|
8552
8586
|
}
|
|
8553
|
-
function
|
|
8554
|
-
return t &&
|
|
8587
|
+
function Et(e, t, n) {
|
|
8588
|
+
return t && Tt(e.prototype, t), n && Tt(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
8555
8589
|
}
|
|
8556
|
-
function
|
|
8557
|
-
var t =
|
|
8558
|
-
return
|
|
8590
|
+
function Dt(e) {
|
|
8591
|
+
var t = Ot(e, "string");
|
|
8592
|
+
return A(t) == "symbol" ? t : t + "";
|
|
8559
8593
|
}
|
|
8560
|
-
function
|
|
8561
|
-
if (
|
|
8594
|
+
function Ot(e, t) {
|
|
8595
|
+
if (A(e) != "object" || !e) return e;
|
|
8562
8596
|
var n = e[Symbol.toPrimitive];
|
|
8563
8597
|
if (n !== void 0) {
|
|
8564
8598
|
var r = n.call(e, t || "default");
|
|
8565
|
-
if (
|
|
8599
|
+
if (A(r) != "object") return r;
|
|
8566
8600
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
8567
8601
|
}
|
|
8568
8602
|
return (t === "string" ? String : Number)(e);
|
|
8569
8603
|
}
|
|
8570
|
-
function
|
|
8604
|
+
function kt(e, t) {
|
|
8571
8605
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
8572
8606
|
}
|
|
8573
|
-
function
|
|
8574
|
-
return t =
|
|
8607
|
+
function At(e, t, n) {
|
|
8608
|
+
return t = P(t), jt(e, M() ? Reflect.construct(t, n || [], P(e).constructor) : t.apply(e, n));
|
|
8575
8609
|
}
|
|
8576
|
-
function
|
|
8577
|
-
if (t && (
|
|
8610
|
+
function jt(e, t) {
|
|
8611
|
+
if (t && (A(t) == "object" || typeof t == "function")) return t;
|
|
8578
8612
|
if (t !== void 0) throw TypeError("Derived constructors may only return object or undefined");
|
|
8579
|
-
return
|
|
8613
|
+
return Mt(e);
|
|
8580
8614
|
}
|
|
8581
|
-
function
|
|
8615
|
+
function Mt(e) {
|
|
8582
8616
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8583
8617
|
return e;
|
|
8584
8618
|
}
|
|
8585
|
-
function
|
|
8619
|
+
function Nt(e, t) {
|
|
8586
8620
|
if (typeof t != "function" && t !== null) throw TypeError("Super expression must either be null or a function");
|
|
8587
8621
|
e.prototype = Object.create(t && t.prototype, { constructor: {
|
|
8588
8622
|
value: e,
|
|
8589
8623
|
writable: !0,
|
|
8590
8624
|
configurable: !0
|
|
8591
|
-
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
8625
|
+
} }), Object.defineProperty(e, "prototype", { writable: !1 }), t && N(e, t);
|
|
8592
8626
|
}
|
|
8593
|
-
function
|
|
8627
|
+
function j(e) {
|
|
8594
8628
|
var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
8595
|
-
return
|
|
8596
|
-
if (e === null || !
|
|
8629
|
+
return j = function(e) {
|
|
8630
|
+
if (e === null || !Ft(e)) return e;
|
|
8597
8631
|
if (typeof e != "function") throw TypeError("Super expression must either be null or a function");
|
|
8598
8632
|
if (t !== void 0) {
|
|
8599
8633
|
if (t.has(e)) return t.get(e);
|
|
8600
8634
|
t.set(e, n);
|
|
8601
8635
|
}
|
|
8602
8636
|
function n() {
|
|
8603
|
-
return Pt(e, arguments,
|
|
8637
|
+
return Pt(e, arguments, P(this).constructor);
|
|
8604
8638
|
}
|
|
8605
8639
|
return n.prototype = Object.create(e.prototype, { constructor: {
|
|
8606
8640
|
value: n,
|
|
8607
8641
|
enumerable: !1,
|
|
8608
8642
|
writable: !0,
|
|
8609
8643
|
configurable: !0
|
|
8610
|
-
} }),
|
|
8611
|
-
},
|
|
8644
|
+
} }), N(n, e);
|
|
8645
|
+
}, j(e);
|
|
8612
8646
|
}
|
|
8613
8647
|
function Pt(e, t, n) {
|
|
8614
|
-
if (
|
|
8648
|
+
if (M()) return Reflect.construct.apply(null, arguments);
|
|
8615
8649
|
var r = [null];
|
|
8616
8650
|
r.push.apply(r, t);
|
|
8617
8651
|
var i = new (e.bind.apply(e, r))();
|
|
8618
|
-
return n &&
|
|
8652
|
+
return n && N(i, n.prototype), i;
|
|
8619
8653
|
}
|
|
8620
|
-
function
|
|
8654
|
+
function M() {
|
|
8621
8655
|
try {
|
|
8622
8656
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
8623
8657
|
} catch {}
|
|
8624
|
-
return (
|
|
8658
|
+
return (M = function() {
|
|
8625
8659
|
return !!e;
|
|
8626
8660
|
})();
|
|
8627
8661
|
}
|
|
8628
|
-
function
|
|
8662
|
+
function Ft(e) {
|
|
8629
8663
|
try {
|
|
8630
8664
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
8631
8665
|
} catch {
|
|
8632
8666
|
return typeof e == "function";
|
|
8633
8667
|
}
|
|
8634
8668
|
}
|
|
8635
|
-
function
|
|
8636
|
-
return
|
|
8669
|
+
function N(e, t) {
|
|
8670
|
+
return N = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
8637
8671
|
return e.__proto__ = t, e;
|
|
8638
|
-
},
|
|
8672
|
+
}, N(e, t);
|
|
8639
8673
|
}
|
|
8640
|
-
function
|
|
8641
|
-
return
|
|
8674
|
+
function P(e) {
|
|
8675
|
+
return P = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
8642
8676
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
8643
|
-
},
|
|
8677
|
+
}, P(e);
|
|
8644
8678
|
}
|
|
8645
|
-
var
|
|
8679
|
+
var F = /*#__PURE__*/ function(e) {
|
|
8646
8680
|
function t(e) {
|
|
8647
8681
|
var n;
|
|
8648
|
-
return
|
|
8682
|
+
return kt(this, t), n = At(this, t, [e]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
|
|
8649
8683
|
}
|
|
8650
|
-
return
|
|
8651
|
-
}(/*#__PURE__*/
|
|
8652
|
-
function
|
|
8653
|
-
var t = e.search(
|
|
8684
|
+
return Nt(t, e), Et(t);
|
|
8685
|
+
}(/*#__PURE__*/ j(Error)), It = RegExp("(?:" + tt() + ")$", "i");
|
|
8686
|
+
function Lt(e) {
|
|
8687
|
+
var t = e.search(It);
|
|
8654
8688
|
if (t < 0) return {};
|
|
8655
|
-
for (var n = e.slice(0, t), r = e.match(
|
|
8689
|
+
for (var n = e.slice(0, t), r = e.match(It), i = 1; i < r.length;) {
|
|
8656
8690
|
if (r[i]) return {
|
|
8657
8691
|
number: n,
|
|
8658
8692
|
ext: r[i]
|
|
@@ -8662,10 +8696,10 @@ function Rt(e) {
|
|
|
8662
8696
|
}
|
|
8663
8697
|
//#endregion
|
|
8664
8698
|
//#region node_modules/libphonenumber-js/es6/helpers/parseDigits.js
|
|
8665
|
-
function
|
|
8699
|
+
function Rt(e, t) {
|
|
8666
8700
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
8667
8701
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
8668
|
-
if (Array.isArray(e) || (n =
|
|
8702
|
+
if (Array.isArray(e) || (n = zt(e)) || t && e && typeof e.length == "number") {
|
|
8669
8703
|
n && (e = n);
|
|
8670
8704
|
var r = 0;
|
|
8671
8705
|
return function() {
|
|
@@ -8677,19 +8711,19 @@ function zt(e, t) {
|
|
|
8677
8711
|
}
|
|
8678
8712
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8679
8713
|
}
|
|
8680
|
-
function
|
|
8714
|
+
function zt(e, t) {
|
|
8681
8715
|
if (e) {
|
|
8682
|
-
if (typeof e == "string") return
|
|
8716
|
+
if (typeof e == "string") return Bt(e, t);
|
|
8683
8717
|
var n = {}.toString.call(e).slice(8, -1);
|
|
8684
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
8718
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Bt(e, t) : void 0;
|
|
8685
8719
|
}
|
|
8686
8720
|
}
|
|
8687
|
-
function
|
|
8721
|
+
function Bt(e, t) {
|
|
8688
8722
|
(t == null || t > e.length) && (t = e.length);
|
|
8689
8723
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
8690
8724
|
return r;
|
|
8691
8725
|
}
|
|
8692
|
-
var
|
|
8726
|
+
var Vt = {
|
|
8693
8727
|
0: "0",
|
|
8694
8728
|
1: "1",
|
|
8695
8729
|
2: "2",
|
|
@@ -8731,22 +8765,22 @@ var Ht = {
|
|
|
8731
8765
|
"۸": "8",
|
|
8732
8766
|
"۹": "9"
|
|
8733
8767
|
};
|
|
8734
|
-
function
|
|
8735
|
-
return
|
|
8768
|
+
function Ht(e) {
|
|
8769
|
+
return Vt[e];
|
|
8736
8770
|
}
|
|
8737
|
-
function
|
|
8738
|
-
for (var t = "", n =
|
|
8739
|
-
var i = r.value, a =
|
|
8771
|
+
function I(e) {
|
|
8772
|
+
for (var t = "", n = Rt(e.split("")), r; !(r = n()).done;) {
|
|
8773
|
+
var i = r.value, a = Ht(i);
|
|
8740
8774
|
a && (t += a);
|
|
8741
8775
|
}
|
|
8742
8776
|
return t;
|
|
8743
8777
|
}
|
|
8744
8778
|
//#endregion
|
|
8745
8779
|
//#region node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js
|
|
8746
|
-
function
|
|
8780
|
+
function Ut(e, t) {
|
|
8747
8781
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
8748
8782
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
8749
|
-
if (Array.isArray(e) || (n =
|
|
8783
|
+
if (Array.isArray(e) || (n = Wt(e)) || t && e && typeof e.length == "number") {
|
|
8750
8784
|
n && (e = n);
|
|
8751
8785
|
var r = 0;
|
|
8752
8786
|
return function() {
|
|
@@ -8758,26 +8792,26 @@ function Wt(e, t) {
|
|
|
8758
8792
|
}
|
|
8759
8793
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8760
8794
|
}
|
|
8761
|
-
function
|
|
8795
|
+
function Wt(e, t) {
|
|
8762
8796
|
if (e) {
|
|
8763
|
-
if (typeof e == "string") return
|
|
8797
|
+
if (typeof e == "string") return Gt(e, t);
|
|
8764
8798
|
var n = {}.toString.call(e).slice(8, -1);
|
|
8765
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
8799
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Gt(e, t) : void 0;
|
|
8766
8800
|
}
|
|
8767
8801
|
}
|
|
8768
|
-
function
|
|
8802
|
+
function Gt(e, t) {
|
|
8769
8803
|
(t == null || t > e.length) && (t = e.length);
|
|
8770
8804
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
8771
8805
|
return r;
|
|
8772
8806
|
}
|
|
8773
|
-
function
|
|
8774
|
-
for (var t = "", n =
|
|
8807
|
+
function Kt(e) {
|
|
8808
|
+
for (var t = "", n = Ut(e.split("")), r; !(r = n()).done;) {
|
|
8775
8809
|
var i = r.value;
|
|
8776
|
-
t +=
|
|
8810
|
+
t += qt(i, t) || "";
|
|
8777
8811
|
}
|
|
8778
8812
|
return t;
|
|
8779
8813
|
}
|
|
8780
|
-
function
|
|
8814
|
+
function qt(e, t, n) {
|
|
8781
8815
|
if (e === "+") {
|
|
8782
8816
|
if (t) {
|
|
8783
8817
|
typeof n == "function" && n("end");
|
|
@@ -8785,111 +8819,113 @@ function Jt(e, t, n) {
|
|
|
8785
8819
|
}
|
|
8786
8820
|
return "+";
|
|
8787
8821
|
}
|
|
8788
|
-
return
|
|
8822
|
+
return Ht(e);
|
|
8789
8823
|
}
|
|
8790
|
-
var
|
|
8791
|
-
function
|
|
8792
|
-
var t = e.indexOf(
|
|
8824
|
+
var Jt = "([" + x + "]|[\\-\\.\\(\\)]?)", Yt = "^\\+" + Jt + "*[" + x + "]" + Jt + "*$", Xt = new RegExp(Yt, "g"), Zt = x, Qt = "[" + Zt + "]+((\\-)*[" + Zt + "])*", $t = "[a-zA-Z]+((\\-)*[" + Zt + "])*", en = "^(" + Qt + "\\.)*" + $t + "\\.?$", tn = new RegExp(en, "g"), nn = "tel:", rn = ";phone-context=", an = ";isub=";
|
|
8825
|
+
function on(e) {
|
|
8826
|
+
var t = e.indexOf(rn);
|
|
8793
8827
|
if (t < 0) return null;
|
|
8794
|
-
var n = t +
|
|
8828
|
+
var n = t + rn.length;
|
|
8795
8829
|
if (n >= e.length) return "";
|
|
8796
8830
|
var r = e.indexOf(";", n);
|
|
8797
8831
|
return r >= 0 ? e.substring(n, r) : e.substring(n);
|
|
8798
8832
|
}
|
|
8799
|
-
function
|
|
8800
|
-
return e === null ? !0 : e.length === 0 ? !1 :
|
|
8833
|
+
function sn(e) {
|
|
8834
|
+
return e === null ? !0 : e.length === 0 ? !1 : Xt.test(e) || tn.test(e);
|
|
8801
8835
|
}
|
|
8802
8836
|
//#endregion
|
|
8803
8837
|
//#region node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js
|
|
8804
|
-
function
|
|
8805
|
-
var n = t.extractFormattedPhoneNumber, r =
|
|
8806
|
-
if (!
|
|
8838
|
+
function cn(e, t) {
|
|
8839
|
+
var n = t.extractFormattedPhoneNumber, r = on(e);
|
|
8840
|
+
if (!sn(r)) throw new F("NOT_A_NUMBER");
|
|
8807
8841
|
var i;
|
|
8808
8842
|
if (r === null) i = n(e) || "";
|
|
8809
8843
|
else {
|
|
8810
8844
|
i = "", r.charAt(0) === "+" && (i += r);
|
|
8811
|
-
var a = e.indexOf(nn), o = a >= 0 ? a + nn.length : 0, s = e.indexOf(
|
|
8845
|
+
var a = e.indexOf(nn), o = a >= 0 ? a + nn.length : 0, s = e.indexOf(rn);
|
|
8812
8846
|
i += e.substring(o, s);
|
|
8813
8847
|
}
|
|
8814
|
-
var c = i.indexOf(
|
|
8848
|
+
var c = i.indexOf(an);
|
|
8815
8849
|
if (c > 0 && (i = i.substring(0, c)), i !== "") return i;
|
|
8816
8850
|
}
|
|
8817
8851
|
//#endregion
|
|
8818
8852
|
//#region node_modules/libphonenumber-js/es6/parse.js
|
|
8819
|
-
var
|
|
8820
|
-
function
|
|
8821
|
-
|
|
8822
|
-
var r =
|
|
8823
|
-
if (!
|
|
8824
|
-
|
|
8853
|
+
var ln = 250, un = RegExp("[" + C + x + "]"), dn = RegExp("[^" + x + "#]+$"), fn = !1;
|
|
8854
|
+
function pn(e, t, n) {
|
|
8855
|
+
t ||= {};
|
|
8856
|
+
var r = new v(n);
|
|
8857
|
+
if (t.defaultCountry && !r.hasCountry(t.defaultCountry)) throw t.v2 ? new F("INVALID_COUNTRY") : Error(`Unknown country: ${t.defaultCountry}`);
|
|
8858
|
+
var i = hn(e, t.v2, t.extract), a = i.number, o = i.ext, s = i.error;
|
|
8859
|
+
if (!a) {
|
|
8860
|
+
if (t.v2) throw s === "TOO_SHORT" ? new F("TOO_SHORT") : new F("NOT_A_NUMBER");
|
|
8825
8861
|
return {};
|
|
8826
8862
|
}
|
|
8827
|
-
var
|
|
8828
|
-
if (!
|
|
8829
|
-
if (t.v2) throw new
|
|
8863
|
+
var c = _n(a, t.defaultCountry, t.defaultCallingCode, r), l = c.country, u = c.nationalNumber, d = c.countryCallingCode, f = c.countryCallingCodeSource, p = c.carrierCode;
|
|
8864
|
+
if (!r.hasSelectedNumberingPlan()) {
|
|
8865
|
+
if (t.v2) throw new F("INVALID_COUNTRY");
|
|
8830
8866
|
return {};
|
|
8831
8867
|
}
|
|
8832
|
-
if (!
|
|
8868
|
+
if (!u || u.length < 2) {
|
|
8833
8869
|
/* istanbul ignore if */
|
|
8834
|
-
if (t.v2) throw new
|
|
8870
|
+
if (t.v2) throw new F("TOO_SHORT");
|
|
8835
8871
|
return {};
|
|
8836
8872
|
}
|
|
8837
|
-
if (
|
|
8838
|
-
if (t.v2) throw new
|
|
8873
|
+
if (u.length > 17) {
|
|
8874
|
+
if (t.v2) throw new F("TOO_LONG");
|
|
8839
8875
|
return {};
|
|
8840
8876
|
}
|
|
8841
8877
|
if (t.v2) {
|
|
8842
|
-
var
|
|
8843
|
-
return
|
|
8878
|
+
var m = new k(d, u, r.metadata);
|
|
8879
|
+
return l && (m.country = l), p && (m.carrierCode = p), o && (m.ext = o), m.__countryCallingCodeSource = f, m;
|
|
8844
8880
|
}
|
|
8845
|
-
var
|
|
8881
|
+
var h = (t.extended ? r.hasSelectedNumberingPlan() : l) ? b(u, r.nationalNumberPattern()) : !1;
|
|
8846
8882
|
return t.extended ? {
|
|
8847
|
-
country:
|
|
8848
|
-
countryCallingCode:
|
|
8849
|
-
carrierCode:
|
|
8850
|
-
valid:
|
|
8851
|
-
possible:
|
|
8852
|
-
phone:
|
|
8853
|
-
ext:
|
|
8854
|
-
} :
|
|
8883
|
+
country: l,
|
|
8884
|
+
countryCallingCode: d,
|
|
8885
|
+
carrierCode: p,
|
|
8886
|
+
valid: h,
|
|
8887
|
+
possible: h ? !0 : !!(t.extended === !0 && r.possibleLengths() && Se(u, r)),
|
|
8888
|
+
phone: u,
|
|
8889
|
+
ext: o
|
|
8890
|
+
} : h ? gn(l, u, o) : {};
|
|
8855
8891
|
}
|
|
8856
|
-
function
|
|
8892
|
+
function mn(e, t, n) {
|
|
8857
8893
|
if (e) {
|
|
8858
|
-
if (e.length >
|
|
8859
|
-
if (n) throw new
|
|
8894
|
+
if (e.length > ln) {
|
|
8895
|
+
if (n) throw new F("TOO_LONG");
|
|
8860
8896
|
return;
|
|
8861
8897
|
}
|
|
8862
8898
|
if (t === !1) return e;
|
|
8863
|
-
var r = e.search(
|
|
8864
|
-
if (!(r < 0)) return e.slice(r).replace(
|
|
8899
|
+
var r = e.search(un);
|
|
8900
|
+
if (!(r < 0)) return e.slice(r).replace(dn, "");
|
|
8865
8901
|
}
|
|
8866
8902
|
}
|
|
8867
|
-
function
|
|
8868
|
-
var r =
|
|
8869
|
-
return
|
|
8903
|
+
function hn(e, t, n) {
|
|
8904
|
+
var r = cn(e, { extractFormattedPhoneNumber: function(e) {
|
|
8905
|
+
return mn(e, n, t);
|
|
8870
8906
|
} });
|
|
8871
8907
|
if (!r) return {};
|
|
8872
|
-
if (!
|
|
8873
|
-
var i =
|
|
8908
|
+
if (!st(r)) return ct(r) ? { error: "TOO_SHORT" } : {};
|
|
8909
|
+
var i = Lt(r);
|
|
8874
8910
|
return i.ext ? i : { number: r };
|
|
8875
8911
|
}
|
|
8876
|
-
function
|
|
8912
|
+
function gn(e, t, n) {
|
|
8877
8913
|
var r = {
|
|
8878
8914
|
country: e,
|
|
8879
8915
|
phone: t
|
|
8880
8916
|
};
|
|
8881
8917
|
return n && (r.ext = n), r;
|
|
8882
8918
|
}
|
|
8883
|
-
function
|
|
8884
|
-
var i = w(
|
|
8919
|
+
function _n(e, t, n, r) {
|
|
8920
|
+
var i = w(Kt(e), void 0, t, n, r.metadata), a = i.countryCallingCodeSource, o = i.countryCallingCode, s = i.number, c;
|
|
8885
8921
|
if (o) r.selectNumberingPlan(o);
|
|
8886
|
-
else if (s && (t || n)) r.selectNumberingPlan(t, n),
|
|
8922
|
+
else if (s && (t || n)) t ? (c = t, r.selectNumberingPlan(t), o = r.numberingPlan.callingCode()) : (r.selectNumberingPlan(n), o = n, fn && r.isNonGeographicCallingCode(o) && (c = "001"));
|
|
8887
8923
|
else return {};
|
|
8888
8924
|
if (!s) return {
|
|
8889
8925
|
countryCallingCodeSource: a,
|
|
8890
8926
|
countryCallingCode: o
|
|
8891
8927
|
};
|
|
8892
|
-
var l =
|
|
8928
|
+
var l = Ge(Kt(s), void 0, r), u = l.nationalNumber, d = l.carrierCode, f = We(o, {
|
|
8893
8929
|
nationalNumber: u,
|
|
8894
8930
|
metadata: r
|
|
8895
8931
|
});
|
|
@@ -8903,15 +8939,15 @@ function gn(e, t, n, r) {
|
|
|
8903
8939
|
}
|
|
8904
8940
|
//#endregion
|
|
8905
8941
|
//#region node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js
|
|
8906
|
-
function
|
|
8942
|
+
function L(e) {
|
|
8907
8943
|
"@babel/helpers - typeof";
|
|
8908
|
-
return
|
|
8944
|
+
return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8909
8945
|
return typeof e;
|
|
8910
8946
|
} : function(e) {
|
|
8911
8947
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8912
|
-
},
|
|
8948
|
+
}, L(e);
|
|
8913
8949
|
}
|
|
8914
|
-
function
|
|
8950
|
+
function vn(e, t) {
|
|
8915
8951
|
var n = Object.keys(e);
|
|
8916
8952
|
if (Object.getOwnPropertySymbols) {
|
|
8917
8953
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -8921,53 +8957,53 @@ function _n(e, t) {
|
|
|
8921
8957
|
}
|
|
8922
8958
|
return n;
|
|
8923
8959
|
}
|
|
8924
|
-
function
|
|
8960
|
+
function yn(e) {
|
|
8925
8961
|
for (var t = 1; t < arguments.length; t++) {
|
|
8926
8962
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
8927
|
-
t % 2 ?
|
|
8928
|
-
|
|
8929
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
8963
|
+
t % 2 ? vn(Object(n), !0).forEach(function(t) {
|
|
8964
|
+
bn(e, t, n[t]);
|
|
8965
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vn(Object(n)).forEach(function(t) {
|
|
8930
8966
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
8931
8967
|
});
|
|
8932
8968
|
}
|
|
8933
8969
|
return e;
|
|
8934
8970
|
}
|
|
8935
|
-
function
|
|
8936
|
-
return (t =
|
|
8971
|
+
function bn(e, t, n) {
|
|
8972
|
+
return (t = xn(t)) in e ? Object.defineProperty(e, t, {
|
|
8937
8973
|
value: n,
|
|
8938
8974
|
enumerable: !0,
|
|
8939
8975
|
configurable: !0,
|
|
8940
8976
|
writable: !0
|
|
8941
8977
|
}) : e[t] = n, e;
|
|
8942
8978
|
}
|
|
8943
|
-
function
|
|
8944
|
-
var t =
|
|
8945
|
-
return
|
|
8979
|
+
function xn(e) {
|
|
8980
|
+
var t = Sn(e, "string");
|
|
8981
|
+
return L(t) == "symbol" ? t : t + "";
|
|
8946
8982
|
}
|
|
8947
|
-
function
|
|
8948
|
-
if (
|
|
8983
|
+
function Sn(e, t) {
|
|
8984
|
+
if (L(e) != "object" || !e) return e;
|
|
8949
8985
|
var n = e[Symbol.toPrimitive];
|
|
8950
8986
|
if (n !== void 0) {
|
|
8951
8987
|
var r = n.call(e, t || "default");
|
|
8952
|
-
if (
|
|
8988
|
+
if (L(r) != "object") return r;
|
|
8953
8989
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
8954
8990
|
}
|
|
8955
8991
|
return (t === "string" ? String : Number)(e);
|
|
8956
8992
|
}
|
|
8957
|
-
function
|
|
8958
|
-
return
|
|
8993
|
+
function Cn(e, t, n) {
|
|
8994
|
+
return pn(e, yn(yn({}, t), {}, { v2: !0 }), n);
|
|
8959
8995
|
}
|
|
8960
8996
|
//#endregion
|
|
8961
8997
|
//#region node_modules/libphonenumber-js/es6/normalizeArguments.js
|
|
8962
|
-
function
|
|
8998
|
+
function R(e) {
|
|
8963
8999
|
"@babel/helpers - typeof";
|
|
8964
|
-
return
|
|
9000
|
+
return R = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8965
9001
|
return typeof e;
|
|
8966
9002
|
} : function(e) {
|
|
8967
9003
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8968
|
-
},
|
|
9004
|
+
}, R(e);
|
|
8969
9005
|
}
|
|
8970
|
-
function
|
|
9006
|
+
function wn(e, t) {
|
|
8971
9007
|
var n = Object.keys(e);
|
|
8972
9008
|
if (Object.getOwnPropertySymbols) {
|
|
8973
9009
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -8977,58 +9013,58 @@ function Cn(e, t) {
|
|
|
8977
9013
|
}
|
|
8978
9014
|
return n;
|
|
8979
9015
|
}
|
|
8980
|
-
function
|
|
9016
|
+
function Tn(e) {
|
|
8981
9017
|
for (var t = 1; t < arguments.length; t++) {
|
|
8982
9018
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
8983
|
-
t % 2 ?
|
|
8984
|
-
|
|
8985
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
9019
|
+
t % 2 ? wn(Object(n), !0).forEach(function(t) {
|
|
9020
|
+
En(e, t, n[t]);
|
|
9021
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : wn(Object(n)).forEach(function(t) {
|
|
8986
9022
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
8987
9023
|
});
|
|
8988
9024
|
}
|
|
8989
9025
|
return e;
|
|
8990
9026
|
}
|
|
8991
|
-
function
|
|
8992
|
-
return (t =
|
|
9027
|
+
function En(e, t, n) {
|
|
9028
|
+
return (t = Dn(t)) in e ? Object.defineProperty(e, t, {
|
|
8993
9029
|
value: n,
|
|
8994
9030
|
enumerable: !0,
|
|
8995
9031
|
configurable: !0,
|
|
8996
9032
|
writable: !0
|
|
8997
9033
|
}) : e[t] = n, e;
|
|
8998
9034
|
}
|
|
8999
|
-
function
|
|
9000
|
-
var t =
|
|
9001
|
-
return
|
|
9035
|
+
function Dn(e) {
|
|
9036
|
+
var t = On(e, "string");
|
|
9037
|
+
return R(t) == "symbol" ? t : t + "";
|
|
9002
9038
|
}
|
|
9003
|
-
function
|
|
9004
|
-
if (
|
|
9039
|
+
function On(e, t) {
|
|
9040
|
+
if (R(e) != "object" || !e) return e;
|
|
9005
9041
|
var n = e[Symbol.toPrimitive];
|
|
9006
9042
|
if (n !== void 0) {
|
|
9007
9043
|
var r = n.call(e, t || "default");
|
|
9008
|
-
if (
|
|
9044
|
+
if (R(r) != "object") return r;
|
|
9009
9045
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
9010
9046
|
}
|
|
9011
9047
|
return (t === "string" ? String : Number)(e);
|
|
9012
9048
|
}
|
|
9013
|
-
function
|
|
9014
|
-
return
|
|
9049
|
+
function kn(e, t) {
|
|
9050
|
+
return Pn(e) || Nn(e, t) || jn(e, t) || An();
|
|
9015
9051
|
}
|
|
9016
|
-
function
|
|
9052
|
+
function An() {
|
|
9017
9053
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9018
9054
|
}
|
|
9019
|
-
function
|
|
9055
|
+
function jn(e, t) {
|
|
9020
9056
|
if (e) {
|
|
9021
|
-
if (typeof e == "string") return
|
|
9057
|
+
if (typeof e == "string") return Mn(e, t);
|
|
9022
9058
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9023
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9059
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Mn(e, t) : void 0;
|
|
9024
9060
|
}
|
|
9025
9061
|
}
|
|
9026
|
-
function
|
|
9062
|
+
function Mn(e, t) {
|
|
9027
9063
|
(t == null || t > e.length) && (t = e.length);
|
|
9028
9064
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9029
9065
|
return r;
|
|
9030
9066
|
}
|
|
9031
|
-
function
|
|
9067
|
+
function Nn(e, t) {
|
|
9032
9068
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9033
9069
|
if (n != null) {
|
|
9034
9070
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -9049,14 +9085,14 @@ function Mn(e, t) {
|
|
|
9049
9085
|
return s;
|
|
9050
9086
|
}
|
|
9051
9087
|
}
|
|
9052
|
-
function
|
|
9088
|
+
function Pn(e) {
|
|
9053
9089
|
if (Array.isArray(e)) return e;
|
|
9054
9090
|
}
|
|
9055
|
-
function
|
|
9056
|
-
var t =
|
|
9091
|
+
function Fn(e) {
|
|
9092
|
+
var t = kn(Array.prototype.slice.call(e), 4), n = t[0], r = t[1], i = t[2], a = t[3], o, s, c;
|
|
9057
9093
|
if (typeof n == "string") o = n;
|
|
9058
9094
|
else throw TypeError("A text for parsing must be a string.");
|
|
9059
|
-
if (!r || typeof r == "string") a ? (s = i, c = a) : (s = void 0, c = i), r && (s =
|
|
9095
|
+
if (!r || typeof r == "string") a ? (s = i, c = a) : (s = void 0, c = i), r && (s = Tn({ defaultCountry: r }, s));
|
|
9060
9096
|
else if (f(r)) i ? (s = r, c = i) : c = r;
|
|
9061
9097
|
else throw Error(`Invalid second argument: ${r}`);
|
|
9062
9098
|
return {
|
|
@@ -9067,15 +9103,15 @@ function Pn(e) {
|
|
|
9067
9103
|
}
|
|
9068
9104
|
//#endregion
|
|
9069
9105
|
//#region node_modules/libphonenumber-js/es6/parsePhoneNumber_.js
|
|
9070
|
-
function
|
|
9106
|
+
function z(e) {
|
|
9071
9107
|
"@babel/helpers - typeof";
|
|
9072
|
-
return
|
|
9108
|
+
return z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9073
9109
|
return typeof e;
|
|
9074
9110
|
} : function(e) {
|
|
9075
9111
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9076
|
-
},
|
|
9112
|
+
}, z(e);
|
|
9077
9113
|
}
|
|
9078
|
-
function
|
|
9114
|
+
function In(e, t) {
|
|
9079
9115
|
var n = Object.keys(e);
|
|
9080
9116
|
if (Object.getOwnPropertySymbols) {
|
|
9081
9117
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -9085,96 +9121,96 @@ function Fn(e, t) {
|
|
|
9085
9121
|
}
|
|
9086
9122
|
return n;
|
|
9087
9123
|
}
|
|
9088
|
-
function
|
|
9124
|
+
function Ln(e) {
|
|
9089
9125
|
for (var t = 1; t < arguments.length; t++) {
|
|
9090
9126
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
9091
|
-
t % 2 ?
|
|
9092
|
-
|
|
9093
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
9127
|
+
t % 2 ? In(Object(n), !0).forEach(function(t) {
|
|
9128
|
+
Rn(e, t, n[t]);
|
|
9129
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : In(Object(n)).forEach(function(t) {
|
|
9094
9130
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
9095
9131
|
});
|
|
9096
9132
|
}
|
|
9097
9133
|
return e;
|
|
9098
9134
|
}
|
|
9099
|
-
function
|
|
9100
|
-
return (t =
|
|
9135
|
+
function Rn(e, t, n) {
|
|
9136
|
+
return (t = zn(t)) in e ? Object.defineProperty(e, t, {
|
|
9101
9137
|
value: n,
|
|
9102
9138
|
enumerable: !0,
|
|
9103
9139
|
configurable: !0,
|
|
9104
9140
|
writable: !0
|
|
9105
9141
|
}) : e[t] = n, e;
|
|
9106
9142
|
}
|
|
9107
|
-
function
|
|
9108
|
-
var t =
|
|
9109
|
-
return
|
|
9143
|
+
function zn(e) {
|
|
9144
|
+
var t = Bn(e, "string");
|
|
9145
|
+
return z(t) == "symbol" ? t : t + "";
|
|
9110
9146
|
}
|
|
9111
|
-
function
|
|
9112
|
-
if (
|
|
9147
|
+
function Bn(e, t) {
|
|
9148
|
+
if (z(e) != "object" || !e) return e;
|
|
9113
9149
|
var n = e[Symbol.toPrimitive];
|
|
9114
9150
|
if (n !== void 0) {
|
|
9115
9151
|
var r = n.call(e, t || "default");
|
|
9116
|
-
if (
|
|
9152
|
+
if (z(r) != "object") return r;
|
|
9117
9153
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
9118
9154
|
}
|
|
9119
9155
|
return (t === "string" ? String : Number)(e);
|
|
9120
9156
|
}
|
|
9121
|
-
function
|
|
9122
|
-
t && t.defaultCountry && !
|
|
9157
|
+
function Vn(e, t, n) {
|
|
9158
|
+
t && t.defaultCountry && !me(t.defaultCountry, n) && (t = Ln(Ln({}, t), {}, { defaultCountry: void 0 }));
|
|
9123
9159
|
try {
|
|
9124
|
-
return
|
|
9160
|
+
return Cn(e, t, n);
|
|
9125
9161
|
} catch (e) {
|
|
9126
9162
|
/* istanbul ignore else */
|
|
9127
|
-
if (!(e instanceof
|
|
9163
|
+
if (!(e instanceof F)) throw e;
|
|
9128
9164
|
}
|
|
9129
9165
|
}
|
|
9130
9166
|
//#endregion
|
|
9131
9167
|
//#region node_modules/libphonenumber-js/es6/parsePhoneNumber.js
|
|
9132
|
-
function
|
|
9133
|
-
var e =
|
|
9134
|
-
return
|
|
9168
|
+
function Hn() {
|
|
9169
|
+
var e = Fn(arguments), t = e.text, n = e.options, r = e.metadata;
|
|
9170
|
+
return Vn(t, n, r);
|
|
9135
9171
|
}
|
|
9136
9172
|
//#endregion
|
|
9137
9173
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeState.js
|
|
9138
|
-
function
|
|
9174
|
+
function B(e) {
|
|
9139
9175
|
"@babel/helpers - typeof";
|
|
9140
|
-
return
|
|
9176
|
+
return B = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9141
9177
|
return typeof e;
|
|
9142
9178
|
} : function(e) {
|
|
9143
9179
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9144
|
-
},
|
|
9180
|
+
}, B(e);
|
|
9145
9181
|
}
|
|
9146
|
-
function
|
|
9182
|
+
function Un(e, t) {
|
|
9147
9183
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9148
9184
|
}
|
|
9149
|
-
function
|
|
9185
|
+
function Wn(e, t) {
|
|
9150
9186
|
for (var n = 0; n < t.length; n++) {
|
|
9151
9187
|
var r = t[n];
|
|
9152
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9188
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Kn(r.key), r);
|
|
9153
9189
|
}
|
|
9154
9190
|
}
|
|
9155
|
-
function
|
|
9156
|
-
return t &&
|
|
9191
|
+
function Gn(e, t, n) {
|
|
9192
|
+
return t && Wn(e.prototype, t), n && Wn(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9157
9193
|
}
|
|
9158
|
-
function
|
|
9159
|
-
var t =
|
|
9160
|
-
return
|
|
9194
|
+
function Kn(e) {
|
|
9195
|
+
var t = qn(e, "string");
|
|
9196
|
+
return B(t) == "symbol" ? t : t + "";
|
|
9161
9197
|
}
|
|
9162
|
-
function
|
|
9163
|
-
if (
|
|
9198
|
+
function qn(e, t) {
|
|
9199
|
+
if (B(e) != "object" || !e) return e;
|
|
9164
9200
|
var n = e[Symbol.toPrimitive];
|
|
9165
9201
|
if (n !== void 0) {
|
|
9166
9202
|
var r = n.call(e, t || "default");
|
|
9167
|
-
if (
|
|
9203
|
+
if (B(r) != "object") return r;
|
|
9168
9204
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
9169
9205
|
}
|
|
9170
9206
|
return (t === "string" ? String : Number)(e);
|
|
9171
9207
|
}
|
|
9172
|
-
var
|
|
9208
|
+
var Jn = /*#__PURE__*/ function() {
|
|
9173
9209
|
function e(t) {
|
|
9174
9210
|
var n = t.onCountryChange, r = t.onCallingCodeChange;
|
|
9175
|
-
|
|
9211
|
+
Un(this, e), this.onCountryChange = n, this.onCallingCodeChange = r;
|
|
9176
9212
|
}
|
|
9177
|
-
return
|
|
9213
|
+
return Gn(e, [
|
|
9178
9214
|
{
|
|
9179
9215
|
key: "reset",
|
|
9180
9216
|
value: function(e) {
|
|
@@ -9249,10 +9285,10 @@ var qn = /*#__PURE__*/ function() {
|
|
|
9249
9285
|
}();
|
|
9250
9286
|
//#endregion
|
|
9251
9287
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js
|
|
9252
|
-
function
|
|
9288
|
+
function Yn(e, t) {
|
|
9253
9289
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9254
9290
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
9255
|
-
if (Array.isArray(e) || (n =
|
|
9291
|
+
if (Array.isArray(e) || (n = Xn(e)) || t && e && typeof e.length == "number") {
|
|
9256
9292
|
n && (e = n);
|
|
9257
9293
|
var r = 0;
|
|
9258
9294
|
return function() {
|
|
@@ -9264,28 +9300,28 @@ function Jn(e, t) {
|
|
|
9264
9300
|
}
|
|
9265
9301
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9266
9302
|
}
|
|
9267
|
-
function
|
|
9303
|
+
function Xn(e, t) {
|
|
9268
9304
|
if (e) {
|
|
9269
|
-
if (typeof e == "string") return
|
|
9305
|
+
if (typeof e == "string") return Zn(e, t);
|
|
9270
9306
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9271
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9307
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Zn(e, t) : void 0;
|
|
9272
9308
|
}
|
|
9273
9309
|
}
|
|
9274
|
-
function
|
|
9310
|
+
function Zn(e, t) {
|
|
9275
9311
|
(t == null || t > e.length) && (t = e.length);
|
|
9276
9312
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9277
9313
|
return r;
|
|
9278
9314
|
}
|
|
9279
|
-
var
|
|
9315
|
+
var Qn = /* @__PURE__ */ RegExp("x");
|
|
9280
9316
|
function V(e, t) {
|
|
9281
9317
|
if (t < 1) return "";
|
|
9282
9318
|
for (var n = ""; t > 1;) t & 1 && (n += e), t >>= 1, e += e;
|
|
9283
9319
|
return n + e;
|
|
9284
9320
|
}
|
|
9285
|
-
function
|
|
9286
|
-
return e[t] === ")" && t++,
|
|
9321
|
+
function $n(e, t) {
|
|
9322
|
+
return e[t] === ")" && t++, er(e.slice(0, t));
|
|
9287
9323
|
}
|
|
9288
|
-
function
|
|
9324
|
+
function er(e) {
|
|
9289
9325
|
for (var t = [], n = 0; n < e.length;) e[n] === "(" ? t.push(n) : e[n] === ")" && t.pop(), n++;
|
|
9290
9326
|
var r = 0, i = "";
|
|
9291
9327
|
t.push(e.length);
|
|
@@ -9295,54 +9331,54 @@ function Qn(e) {
|
|
|
9295
9331
|
}
|
|
9296
9332
|
return i;
|
|
9297
9333
|
}
|
|
9298
|
-
function
|
|
9299
|
-
for (var r =
|
|
9334
|
+
function tr(e, t, n) {
|
|
9335
|
+
for (var r = Yn(n.split("")), i; !(i = r()).done;) {
|
|
9300
9336
|
var a = i.value;
|
|
9301
|
-
if (e.slice(t + 1).search(
|
|
9302
|
-
t = e.search(
|
|
9337
|
+
if (e.slice(t + 1).search(Qn) < 0) return;
|
|
9338
|
+
t = e.search(Qn), e = e.replace(Qn, a);
|
|
9303
9339
|
}
|
|
9304
9340
|
return [e, t];
|
|
9305
9341
|
}
|
|
9306
9342
|
//#endregion
|
|
9307
9343
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js
|
|
9308
|
-
function
|
|
9344
|
+
function nr(e, t, n) {
|
|
9309
9345
|
var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix;
|
|
9310
|
-
if (RegExp(`^(?:${t.pattern()})\$`).test(e.nationalSignificantNumber)) return
|
|
9346
|
+
if (RegExp(`^(?:${t.pattern()})\$`).test(e.nationalSignificantNumber)) return ir(e, t, {
|
|
9311
9347
|
metadata: r,
|
|
9312
9348
|
shouldTryNationalPrefixFormattingRule: i,
|
|
9313
9349
|
getSeparatorAfterNationalPrefix: a
|
|
9314
9350
|
});
|
|
9315
9351
|
}
|
|
9316
|
-
function
|
|
9317
|
-
return y(e,
|
|
9352
|
+
function rr(e, t) {
|
|
9353
|
+
return y(e, void 0, t) === "IS_POSSIBLE";
|
|
9318
9354
|
}
|
|
9319
|
-
function
|
|
9355
|
+
function ir(e, t, n) {
|
|
9320
9356
|
var r = n.metadata, i = n.shouldTryNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix;
|
|
9321
9357
|
if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, i(t)) {
|
|
9322
|
-
var o =
|
|
9358
|
+
var o = ar(e, t, {
|
|
9323
9359
|
useNationalPrefixFormattingRule: !0,
|
|
9324
9360
|
getSeparatorAfterNationalPrefix: a,
|
|
9325
9361
|
metadata: r
|
|
9326
9362
|
});
|
|
9327
9363
|
if (o) return o;
|
|
9328
9364
|
}
|
|
9329
|
-
return
|
|
9365
|
+
return ar(e, t, {
|
|
9330
9366
|
useNationalPrefixFormattingRule: !1,
|
|
9331
9367
|
getSeparatorAfterNationalPrefix: a,
|
|
9332
9368
|
metadata: r
|
|
9333
9369
|
});
|
|
9334
9370
|
}
|
|
9335
|
-
function
|
|
9336
|
-
var r = n.metadata, i = n.useNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix, o =
|
|
9371
|
+
function ar(e, t, n) {
|
|
9372
|
+
var r = n.metadata, i = n.useNationalPrefixFormattingRule, a = n.getSeparatorAfterNationalPrefix, o = Ze(e.nationalSignificantNumber, t, {
|
|
9337
9373
|
carrierCode: e.carrierCode,
|
|
9338
9374
|
useInternationalFormat: e.international,
|
|
9339
9375
|
withNationalPrefix: i,
|
|
9340
9376
|
metadata: r
|
|
9341
9377
|
});
|
|
9342
|
-
if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)),
|
|
9378
|
+
if (i || (e.nationalPrefix ? o = e.nationalPrefix + a(t) + o : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (o = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + o)), or(o, e)) return o;
|
|
9343
9379
|
}
|
|
9344
|
-
function
|
|
9345
|
-
return
|
|
9380
|
+
function or(e, t) {
|
|
9381
|
+
return I(e) === t.getNationalDigits();
|
|
9346
9382
|
}
|
|
9347
9383
|
//#endregion
|
|
9348
9384
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js
|
|
@@ -9354,23 +9390,23 @@ function H(e) {
|
|
|
9354
9390
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9355
9391
|
}, H(e);
|
|
9356
9392
|
}
|
|
9357
|
-
function
|
|
9393
|
+
function sr(e, t) {
|
|
9358
9394
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9359
9395
|
}
|
|
9360
|
-
function
|
|
9396
|
+
function cr(e, t) {
|
|
9361
9397
|
for (var n = 0; n < t.length; n++) {
|
|
9362
9398
|
var r = t[n];
|
|
9363
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9399
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ur(r.key), r);
|
|
9364
9400
|
}
|
|
9365
9401
|
}
|
|
9366
|
-
function
|
|
9367
|
-
return t &&
|
|
9402
|
+
function lr(e, t, n) {
|
|
9403
|
+
return t && cr(e.prototype, t), n && cr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9368
9404
|
}
|
|
9369
|
-
function
|
|
9370
|
-
var t =
|
|
9405
|
+
function ur(e) {
|
|
9406
|
+
var t = dr(e, "string");
|
|
9371
9407
|
return H(t) == "symbol" ? t : t + "";
|
|
9372
9408
|
}
|
|
9373
|
-
function
|
|
9409
|
+
function dr(e, t) {
|
|
9374
9410
|
if (H(e) != "object" || !e) return e;
|
|
9375
9411
|
var n = e[Symbol.toPrimitive];
|
|
9376
9412
|
if (n !== void 0) {
|
|
@@ -9380,11 +9416,11 @@ function lr(e, t) {
|
|
|
9380
9416
|
}
|
|
9381
9417
|
return (t === "string" ? String : Number)(e);
|
|
9382
9418
|
}
|
|
9383
|
-
var
|
|
9419
|
+
var fr = /*#__PURE__*/ function() {
|
|
9384
9420
|
function e() {
|
|
9385
|
-
|
|
9421
|
+
sr(this, e);
|
|
9386
9422
|
}
|
|
9387
|
-
return
|
|
9423
|
+
return lr(e, [
|
|
9388
9424
|
{
|
|
9389
9425
|
key: "parse",
|
|
9390
9426
|
value: function(e) {
|
|
@@ -9395,7 +9431,7 @@ var ur = /*#__PURE__*/ function() {
|
|
|
9395
9431
|
var t = this.context[0], n = t.branches, r = t.instructions;
|
|
9396
9432
|
if (n) return {
|
|
9397
9433
|
op: "|",
|
|
9398
|
-
args: n.concat([
|
|
9434
|
+
args: n.concat([gr(r)])
|
|
9399
9435
|
};
|
|
9400
9436
|
/* istanbul ignore if */
|
|
9401
9437
|
if (r.length === 0) throw Error("Pattern is required");
|
|
@@ -9424,9 +9460,9 @@ var ur = /*#__PURE__*/ function() {
|
|
|
9424
9460
|
key: "parsePattern",
|
|
9425
9461
|
value: function(e) {
|
|
9426
9462
|
if (!e) throw Error("Pattern is required");
|
|
9427
|
-
var t = e.match(
|
|
9463
|
+
var t = e.match(hr);
|
|
9428
9464
|
if (!t) {
|
|
9429
|
-
if (
|
|
9465
|
+
if (mr.test(e)) throw Error(`Illegal characters found in a pattern: ${e}`);
|
|
9430
9466
|
this.getContext().instructions = this.getContext().instructions.concat(e.split(""));
|
|
9431
9467
|
return;
|
|
9432
9468
|
}
|
|
@@ -9443,7 +9479,7 @@ var ur = /*#__PURE__*/ function() {
|
|
|
9443
9479
|
if (!this.getContext().or) throw Error("\")\" operator must be preceded by \"(?:\" operator");
|
|
9444
9480
|
if (r && this.parsePattern(r), this.getContext().instructions.length === 0) throw Error("No instructions found after \"|\" operator in an \"or\" group");
|
|
9445
9481
|
var a = this.getContext().branches;
|
|
9446
|
-
a.push(
|
|
9482
|
+
a.push(gr(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
|
|
9447
9483
|
op: "|",
|
|
9448
9484
|
args: a
|
|
9449
9485
|
});
|
|
@@ -9454,7 +9490,7 @@ var ur = /*#__PURE__*/ function() {
|
|
|
9454
9490
|
/* istanbul ignore else */
|
|
9455
9491
|
if (this.context.length === 1) this.getContext().branches = [];
|
|
9456
9492
|
else throw Error("\"branches\" not found in an \"or\" group context");
|
|
9457
|
-
this.getContext().branches.push(
|
|
9493
|
+
this.getContext().branches.push(gr(this.getContext().instructions)), this.getContext().instructions = [];
|
|
9458
9494
|
break;
|
|
9459
9495
|
case "[":
|
|
9460
9496
|
r && this.parsePattern(r), this.startContext({ oneOfSet: !0 });
|
|
@@ -9463,7 +9499,7 @@ var ur = /*#__PURE__*/ function() {
|
|
|
9463
9499
|
if (!this.getContext().oneOfSet) throw Error("\"]\" operator must be preceded by \"[\" operator");
|
|
9464
9500
|
this.endContext(), this.getContext().instructions.push({
|
|
9465
9501
|
op: "[]",
|
|
9466
|
-
args:
|
|
9502
|
+
args: pr(r)
|
|
9467
9503
|
});
|
|
9468
9504
|
break;
|
|
9469
9505
|
/* istanbul ignore next */
|
|
@@ -9474,7 +9510,7 @@ var ur = /*#__PURE__*/ function() {
|
|
|
9474
9510
|
}
|
|
9475
9511
|
]);
|
|
9476
9512
|
}();
|
|
9477
|
-
function
|
|
9513
|
+
function pr(e) {
|
|
9478
9514
|
for (var t = [], n = 0; n < e.length;) {
|
|
9479
9515
|
if (e[n] === "-") {
|
|
9480
9516
|
if (n === 0 || n === e.length - 1) throw Error(`Couldn't parse a one-of set pattern: ${e}`);
|
|
@@ -9484,16 +9520,16 @@ function dr(e) {
|
|
|
9484
9520
|
}
|
|
9485
9521
|
return t;
|
|
9486
9522
|
}
|
|
9487
|
-
var
|
|
9488
|
-
function
|
|
9523
|
+
var mr = /[\(\)\[\]\?\:\|]/, hr = /* @__PURE__ */ RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");
|
|
9524
|
+
function gr(e) {
|
|
9489
9525
|
return e.length === 1 ? e[0] : e;
|
|
9490
9526
|
}
|
|
9491
9527
|
//#endregion
|
|
9492
9528
|
//#region node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js
|
|
9493
|
-
function
|
|
9529
|
+
function _r(e, t) {
|
|
9494
9530
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9495
9531
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
9496
|
-
if (Array.isArray(e) || (n =
|
|
9532
|
+
if (Array.isArray(e) || (n = vr(e)) || t && e && typeof e.length == "number") {
|
|
9497
9533
|
n && (e = n);
|
|
9498
9534
|
var r = 0;
|
|
9499
9535
|
return function() {
|
|
@@ -9505,14 +9541,14 @@ function hr(e, t) {
|
|
|
9505
9541
|
}
|
|
9506
9542
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9507
9543
|
}
|
|
9508
|
-
function
|
|
9544
|
+
function vr(e, t) {
|
|
9509
9545
|
if (e) {
|
|
9510
|
-
if (typeof e == "string") return
|
|
9546
|
+
if (typeof e == "string") return yr(e, t);
|
|
9511
9547
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9512
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9548
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? yr(e, t) : void 0;
|
|
9513
9549
|
}
|
|
9514
9550
|
}
|
|
9515
|
-
function
|
|
9551
|
+
function yr(e, t) {
|
|
9516
9552
|
(t == null || t > e.length) && (t = e.length);
|
|
9517
9553
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9518
9554
|
return r;
|
|
@@ -9525,23 +9561,23 @@ function U(e) {
|
|
|
9525
9561
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9526
9562
|
}, U(e);
|
|
9527
9563
|
}
|
|
9528
|
-
function
|
|
9564
|
+
function br(e, t) {
|
|
9529
9565
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9530
9566
|
}
|
|
9531
|
-
function
|
|
9567
|
+
function xr(e, t) {
|
|
9532
9568
|
for (var n = 0; n < t.length; n++) {
|
|
9533
9569
|
var r = t[n];
|
|
9534
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9570
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Cr(r.key), r);
|
|
9535
9571
|
}
|
|
9536
9572
|
}
|
|
9537
|
-
function
|
|
9538
|
-
return t &&
|
|
9573
|
+
function Sr(e, t, n) {
|
|
9574
|
+
return t && xr(e.prototype, t), n && xr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9539
9575
|
}
|
|
9540
|
-
function
|
|
9541
|
-
var t =
|
|
9576
|
+
function Cr(e) {
|
|
9577
|
+
var t = wr(e, "string");
|
|
9542
9578
|
return U(t) == "symbol" ? t : t + "";
|
|
9543
9579
|
}
|
|
9544
|
-
function
|
|
9580
|
+
function wr(e, t) {
|
|
9545
9581
|
if (U(e) != "object" || !e) return e;
|
|
9546
9582
|
var n = e[Symbol.toPrimitive];
|
|
9547
9583
|
if (n !== void 0) {
|
|
@@ -9551,21 +9587,21 @@ function Sr(e, t) {
|
|
|
9551
9587
|
}
|
|
9552
9588
|
return (t === "string" ? String : Number)(e);
|
|
9553
9589
|
}
|
|
9554
|
-
var
|
|
9590
|
+
var Tr = /*#__PURE__*/ function() {
|
|
9555
9591
|
function e(t) {
|
|
9556
|
-
|
|
9592
|
+
br(this, e), this.matchTree = new fr().parse(t);
|
|
9557
9593
|
}
|
|
9558
|
-
return
|
|
9594
|
+
return Sr(e, [{
|
|
9559
9595
|
key: "match",
|
|
9560
9596
|
value: function(e) {
|
|
9561
9597
|
var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).allowOverflow;
|
|
9562
9598
|
if (!e) throw Error("String is required");
|
|
9563
|
-
var n =
|
|
9599
|
+
var n = Er(e.split(""), this.matchTree, !0);
|
|
9564
9600
|
if (n && n.match && delete n.matchedChars, !(n && n.overflow && !t)) return n;
|
|
9565
9601
|
}
|
|
9566
9602
|
}]);
|
|
9567
9603
|
}();
|
|
9568
|
-
function
|
|
9604
|
+
function Er(e, t, n) {
|
|
9569
9605
|
if (typeof t == "string") {
|
|
9570
9606
|
var r = e.join("");
|
|
9571
9607
|
return t.indexOf(r) === 0 ? e.length === t.length ? {
|
|
@@ -9578,7 +9614,7 @@ function wr(e, t, n) {
|
|
|
9578
9614
|
}
|
|
9579
9615
|
if (Array.isArray(t)) {
|
|
9580
9616
|
for (var i = e.slice(), a = 0; a < t.length;) {
|
|
9581
|
-
var o = t[a], s =
|
|
9617
|
+
var o = t[a], s = Er(i, o, n && a === t.length - 1);
|
|
9582
9618
|
if (!s) return;
|
|
9583
9619
|
if (s.overflow) return s;
|
|
9584
9620
|
if (s.match) {
|
|
@@ -9598,8 +9634,8 @@ ${JSON.stringify(s, null, 2)}`);
|
|
|
9598
9634
|
}
|
|
9599
9635
|
switch (t.op) {
|
|
9600
9636
|
case "|":
|
|
9601
|
-
for (var c, l =
|
|
9602
|
-
var d = u.value, f =
|
|
9637
|
+
for (var c, l = _r(t.args), u; !(u = l()).done;) {
|
|
9638
|
+
var d = u.value, f = Er(e, d, n);
|
|
9603
9639
|
if (f) {
|
|
9604
9640
|
if (f.overflow) return f;
|
|
9605
9641
|
if (f.match) return {
|
|
@@ -9613,7 +9649,7 @@ ${JSON.stringify(f, null, 2)}`);
|
|
|
9613
9649
|
}
|
|
9614
9650
|
return c ? { partialMatch: !0 } : void 0;
|
|
9615
9651
|
case "[]":
|
|
9616
|
-
for (var p =
|
|
9652
|
+
for (var p = _r(t.args), m; !(m = p()).done;) {
|
|
9617
9653
|
var h = m.value;
|
|
9618
9654
|
if (e[0] === h) return e.length === 1 ? {
|
|
9619
9655
|
match: !0,
|
|
@@ -9638,10 +9674,10 @@ function W(e) {
|
|
|
9638
9674
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9639
9675
|
}, W(e);
|
|
9640
9676
|
}
|
|
9641
|
-
function
|
|
9677
|
+
function Dr(e, t) {
|
|
9642
9678
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9643
9679
|
if (n) return (n = n.call(e)).next.bind(n);
|
|
9644
|
-
if (Array.isArray(e) || (n =
|
|
9680
|
+
if (Array.isArray(e) || (n = Or(e)) || t && e && typeof e.length == "number") {
|
|
9645
9681
|
n && (e = n);
|
|
9646
9682
|
var r = 0;
|
|
9647
9683
|
return function() {
|
|
@@ -9653,35 +9689,35 @@ function Tr(e, t) {
|
|
|
9653
9689
|
}
|
|
9654
9690
|
throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9655
9691
|
}
|
|
9656
|
-
function
|
|
9692
|
+
function Or(e, t) {
|
|
9657
9693
|
if (e) {
|
|
9658
|
-
if (typeof e == "string") return
|
|
9694
|
+
if (typeof e == "string") return kr(e, t);
|
|
9659
9695
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9660
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9696
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? kr(e, t) : void 0;
|
|
9661
9697
|
}
|
|
9662
9698
|
}
|
|
9663
|
-
function
|
|
9699
|
+
function kr(e, t) {
|
|
9664
9700
|
(t == null || t > e.length) && (t = e.length);
|
|
9665
9701
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9666
9702
|
return r;
|
|
9667
9703
|
}
|
|
9668
|
-
function
|
|
9704
|
+
function Ar(e, t) {
|
|
9669
9705
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9670
9706
|
}
|
|
9671
|
-
function
|
|
9707
|
+
function jr(e, t) {
|
|
9672
9708
|
for (var n = 0; n < t.length; n++) {
|
|
9673
9709
|
var r = t[n];
|
|
9674
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9710
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Nr(r.key), r);
|
|
9675
9711
|
}
|
|
9676
9712
|
}
|
|
9677
|
-
function
|
|
9678
|
-
return t &&
|
|
9713
|
+
function Mr(e, t, n) {
|
|
9714
|
+
return t && jr(e.prototype, t), n && jr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9679
9715
|
}
|
|
9680
|
-
function
|
|
9681
|
-
var t =
|
|
9716
|
+
function Nr(e) {
|
|
9717
|
+
var t = Pr(e, "string");
|
|
9682
9718
|
return W(t) == "symbol" ? t : t + "";
|
|
9683
9719
|
}
|
|
9684
|
-
function
|
|
9720
|
+
function Pr(e, t) {
|
|
9685
9721
|
if (W(e) != "object" || !e) return e;
|
|
9686
9722
|
var n = e[Symbol.toPrimitive];
|
|
9687
9723
|
if (n !== void 0) {
|
|
@@ -9691,17 +9727,17 @@ function Mr(e, t) {
|
|
|
9691
9727
|
}
|
|
9692
9728
|
return (t === "string" ? String : Number)(e);
|
|
9693
9729
|
}
|
|
9694
|
-
var
|
|
9730
|
+
var Fr = "9", Ir = V(Fr, 15), Lr = /[- ]/, G = !0, Rr = G && function() {
|
|
9695
9731
|
return /\[([^\[\]])*\]/g;
|
|
9696
|
-
},
|
|
9732
|
+
}, zr = G && function() {
|
|
9697
9733
|
return /\d(?=[^,}][^,}])/g;
|
|
9698
|
-
},
|
|
9734
|
+
}, Br = RegExp("[" + S + "]*\\$1[" + S + "]*(\\$\\d[" + S + "]*)*$"), Vr = 3, Hr = /*#__PURE__*/ function() {
|
|
9699
9735
|
function e(t) {
|
|
9700
9736
|
t.state;
|
|
9701
9737
|
var n = t.metadata;
|
|
9702
|
-
|
|
9738
|
+
Ar(this, e), this.metadata = n, this.resetFormat();
|
|
9703
9739
|
}
|
|
9704
|
-
return
|
|
9740
|
+
return Mr(e, [
|
|
9705
9741
|
{
|
|
9706
9742
|
key: "resetFormat",
|
|
9707
9743
|
value: function() {
|
|
@@ -9718,8 +9754,8 @@ var Nr = "9", Pr = V(Nr, 15), Fr = /[- ]/, G = !0, Ir = G && function() {
|
|
|
9718
9754
|
key: "format",
|
|
9719
9755
|
value: function(e, t) {
|
|
9720
9756
|
var n = this;
|
|
9721
|
-
if (
|
|
9722
|
-
var a = i.value, o =
|
|
9757
|
+
if (rr(t.nationalSignificantNumber, this.metadata)) for (var r = Dr(this.matchingFormats), i; !(i = r()).done;) {
|
|
9758
|
+
var a = i.value, o = nr(t, a, {
|
|
9723
9759
|
metadata: this.metadata,
|
|
9724
9760
|
shouldTryNationalPrefixFormattingRule: function(e) {
|
|
9725
9761
|
return n.shouldTryNationalPrefixFormattingRule(e, {
|
|
@@ -9746,7 +9782,7 @@ var Nr = "9", Pr = V(Nr, 15), Fr = /[- ]/, G = !0, Ir = G && function() {
|
|
|
9746
9782
|
{
|
|
9747
9783
|
key: "narrowDownMatchingFormats",
|
|
9748
9784
|
value: function(e) {
|
|
9749
|
-
var t = this, n = e.nationalSignificantNumber, r = e.nationalPrefix, i = e.international, a = n, o = a.length -
|
|
9785
|
+
var t = this, n = e.nationalSignificantNumber, r = e.nationalPrefix, i = e.international, a = n, o = a.length - Vr;
|
|
9750
9786
|
o < 0 && (o = 0), this.matchingFormats = this.matchingFormats.filter(function(e) {
|
|
9751
9787
|
return t.formatSuits(e, i, r) && t.formatMatches(e, a, o);
|
|
9752
9788
|
}), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
|
|
@@ -9765,8 +9801,8 @@ var Nr = "9", Pr = V(Nr, 15), Fr = /[- ]/, G = !0, Ir = G && function() {
|
|
|
9765
9801
|
if (r === 0) return !0;
|
|
9766
9802
|
n = Math.min(n, r - 1);
|
|
9767
9803
|
var i = e.leadingDigitsPatterns()[n];
|
|
9768
|
-
if (t.length <
|
|
9769
|
-
return new
|
|
9804
|
+
if (t.length < Vr) try {
|
|
9805
|
+
return new Tr(i).match(t, { allowOverflow: !0 }) !== void 0;
|
|
9770
9806
|
} catch (e) /* istanbul ignore next */ {
|
|
9771
9807
|
return console.error(e), !0;
|
|
9772
9808
|
}
|
|
@@ -9787,10 +9823,10 @@ var Nr = "9", Pr = V(Nr, 15), Fr = /[- ]/, G = !0, Ir = G && function() {
|
|
|
9787
9823
|
var n = a.value;
|
|
9788
9824
|
return t.chosenFormat === n ? 0 :
|
|
9789
9825
|
/* istanbul ignore if */
|
|
9790
|
-
|
|
9826
|
+
Br.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e) ? (t.chosenFormat = n, 0) : (t.matchingFormats = t.matchingFormats.filter(function(e) {
|
|
9791
9827
|
return e !== n;
|
|
9792
9828
|
}), 1) : 1;
|
|
9793
|
-
}, r, i =
|
|
9829
|
+
}, r, i = Dr(this.matchingFormats.slice()), a; !(a = i()).done && (r = n(), r !== 0););
|
|
9794
9830
|
return this.chosenFormat || this.resetFormat(), this.chosenFormat;
|
|
9795
9831
|
}
|
|
9796
9832
|
},
|
|
@@ -9806,7 +9842,7 @@ Rr.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e)
|
|
|
9806
9842
|
{
|
|
9807
9843
|
key: "getSeparatorAfterNationalPrefix",
|
|
9808
9844
|
value: function(e) {
|
|
9809
|
-
return this.isNANP || e && e.nationalPrefixFormattingRule() &&
|
|
9845
|
+
return this.isNANP || e && e.nationalPrefixFormattingRule() && Lr.test(e.nationalPrefixFormattingRule()) ? " " : "";
|
|
9810
9846
|
}
|
|
9811
9847
|
},
|
|
9812
9848
|
{
|
|
@@ -9821,7 +9857,7 @@ Rr.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e)
|
|
|
9821
9857
|
value: function(e) {
|
|
9822
9858
|
if (this.template) {
|
|
9823
9859
|
for (var t = -1, n = 0, r = e.international ? this.getInternationalPrefixBeforeCountryCallingCode(e, { spacing: !1 }) : ""; n < r.length + e.getDigitsWithoutInternationalPrefix().length;) t = this.template.indexOf("x", t + 1), n++;
|
|
9824
|
-
return
|
|
9860
|
+
return $n(this.template, t + 1);
|
|
9825
9861
|
}
|
|
9826
9862
|
}
|
|
9827
9863
|
},
|
|
@@ -9836,34 +9872,34 @@ Rr.test(t.getFormatFormat(n, e.international)) ? t.createTemplateForFormat(n, e)
|
|
|
9836
9872
|
value: function(e, t) {
|
|
9837
9873
|
var n = t.nationalSignificantNumber, r = t.international, i = t.nationalPrefix, a = t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, o = e.pattern();
|
|
9838
9874
|
/* istanbul ignore else */
|
|
9839
|
-
G && (o = o.replace(
|
|
9840
|
-
var s =
|
|
9875
|
+
G && (o = o.replace(Rr(), "\\d").replace(zr(), "\\d"));
|
|
9876
|
+
var s = Ir.match(o)[0];
|
|
9841
9877
|
if (!(n.length > s.length)) {
|
|
9842
|
-
var c = RegExp("^" + o + "$"), l = n.replace(/\d/g,
|
|
9878
|
+
var c = RegExp("^" + o + "$"), l = n.replace(/\d/g, Fr);
|
|
9843
9879
|
c.test(l) && (s = l);
|
|
9844
9880
|
var u = this.getFormatFormat(e, r), d;
|
|
9845
9881
|
if (this.shouldTryNationalPrefixFormattingRule(e, {
|
|
9846
9882
|
international: r,
|
|
9847
9883
|
nationalPrefix: i
|
|
9848
9884
|
})) {
|
|
9849
|
-
var f = u.replace(
|
|
9885
|
+
var f = u.replace(Xe, e.nationalPrefixFormattingRule());
|
|
9850
9886
|
/* istanbul ignore else */
|
|
9851
|
-
if (
|
|
9887
|
+
if (I(e.nationalPrefixFormattingRule()) === (i || "") + I("$1") && (u = f, d = !0, i)) for (var p = i.length; p > 0;) u = u.replace(/\d/, "x"), p--;
|
|
9852
9888
|
}
|
|
9853
|
-
var m = s.replace(new RegExp(o), u).replace(new RegExp(
|
|
9854
|
-
return d || (a ? m = V("x", a.length) + " " + m : i && (m = V("x", i.length) + this.getSeparatorAfterNationalPrefix(e) + m)), r && (m =
|
|
9889
|
+
var m = s.replace(new RegExp(o), u).replace(new RegExp(Fr, "g"), "x");
|
|
9890
|
+
return d || (a ? m = V("x", a.length) + " " + m : i && (m = V("x", i.length) + this.getSeparatorAfterNationalPrefix(e) + m)), r && (m = Ye(m)), m;
|
|
9855
9891
|
}
|
|
9856
9892
|
}
|
|
9857
9893
|
},
|
|
9858
9894
|
{
|
|
9859
9895
|
key: "formatNextNationalNumberDigits",
|
|
9860
9896
|
value: function(e) {
|
|
9861
|
-
var t =
|
|
9897
|
+
var t = tr(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, e);
|
|
9862
9898
|
if (!t) {
|
|
9863
9899
|
this.resetFormat();
|
|
9864
9900
|
return;
|
|
9865
9901
|
}
|
|
9866
|
-
return this.populatedNationalNumberTemplate = t[0], this.populatedNationalNumberTemplatePosition = t[1],
|
|
9902
|
+
return this.populatedNationalNumberTemplate = t[0], this.populatedNationalNumberTemplatePosition = t[1], $n(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
|
|
9867
9903
|
}
|
|
9868
9904
|
},
|
|
9869
9905
|
{
|
|
@@ -9888,25 +9924,25 @@ function K(e) {
|
|
|
9888
9924
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9889
9925
|
}, K(e);
|
|
9890
9926
|
}
|
|
9891
|
-
function
|
|
9892
|
-
return
|
|
9927
|
+
function Ur(e, t) {
|
|
9928
|
+
return Jr(e) || qr(e, t) || Gr(e, t) || Wr();
|
|
9893
9929
|
}
|
|
9894
|
-
function
|
|
9930
|
+
function Wr() {
|
|
9895
9931
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9896
9932
|
}
|
|
9897
|
-
function
|
|
9933
|
+
function Gr(e, t) {
|
|
9898
9934
|
if (e) {
|
|
9899
|
-
if (typeof e == "string") return
|
|
9935
|
+
if (typeof e == "string") return Kr(e, t);
|
|
9900
9936
|
var n = {}.toString.call(e).slice(8, -1);
|
|
9901
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
9937
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Kr(e, t) : void 0;
|
|
9902
9938
|
}
|
|
9903
9939
|
}
|
|
9904
|
-
function
|
|
9940
|
+
function Kr(e, t) {
|
|
9905
9941
|
(t == null || t > e.length) && (t = e.length);
|
|
9906
9942
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
9907
9943
|
return r;
|
|
9908
9944
|
}
|
|
9909
|
-
function
|
|
9945
|
+
function qr(e, t) {
|
|
9910
9946
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
9911
9947
|
if (n != null) {
|
|
9912
9948
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -9927,26 +9963,26 @@ function Gr(e, t) {
|
|
|
9927
9963
|
return s;
|
|
9928
9964
|
}
|
|
9929
9965
|
}
|
|
9930
|
-
function
|
|
9966
|
+
function Jr(e) {
|
|
9931
9967
|
if (Array.isArray(e)) return e;
|
|
9932
9968
|
}
|
|
9933
|
-
function
|
|
9969
|
+
function Yr(e, t) {
|
|
9934
9970
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
9935
9971
|
}
|
|
9936
|
-
function
|
|
9972
|
+
function Xr(e, t) {
|
|
9937
9973
|
for (var n = 0; n < t.length; n++) {
|
|
9938
9974
|
var r = t[n];
|
|
9939
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
9975
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Qr(r.key), r);
|
|
9940
9976
|
}
|
|
9941
9977
|
}
|
|
9942
|
-
function
|
|
9943
|
-
return t &&
|
|
9978
|
+
function Zr(e, t, n) {
|
|
9979
|
+
return t && Xr(e.prototype, t), n && Xr(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
9944
9980
|
}
|
|
9945
|
-
function
|
|
9946
|
-
var t =
|
|
9981
|
+
function Qr(e) {
|
|
9982
|
+
var t = $r(e, "string");
|
|
9947
9983
|
return K(t) == "symbol" ? t : t + "";
|
|
9948
9984
|
}
|
|
9949
|
-
function
|
|
9985
|
+
function $r(e, t) {
|
|
9950
9986
|
if (K(e) != "object" || !e) return e;
|
|
9951
9987
|
var n = e[Symbol.toPrimitive];
|
|
9952
9988
|
if (n !== void 0) {
|
|
@@ -9956,16 +9992,16 @@ function Zr(e, t) {
|
|
|
9956
9992
|
}
|
|
9957
9993
|
return (t === "string" ? String : Number)(e);
|
|
9958
9994
|
}
|
|
9959
|
-
var
|
|
9995
|
+
var ei = "[" + S + x + "]+", ti = RegExp("^" + ei + "$", "i"), ni = "(?:[" + C + "][" + S + x + "]*|[" + S + x + "]+)", ri = RegExp("[^" + S + x + "]+.*$"), ii = /[^\d\[\]]/, ai = /*#__PURE__*/ function() {
|
|
9960
9996
|
function e(t) {
|
|
9961
9997
|
var n = t.defaultCountry, r = t.defaultCallingCode, i = t.metadata, a = t.onNationalSignificantNumberChange;
|
|
9962
|
-
|
|
9998
|
+
Yr(this, e), this.defaultCountry = n, this.defaultCallingCode = r, this.metadata = i, this.onNationalSignificantNumberChange = a;
|
|
9963
9999
|
}
|
|
9964
|
-
return
|
|
10000
|
+
return Zr(e, [
|
|
9965
10001
|
{
|
|
9966
10002
|
key: "input",
|
|
9967
10003
|
value: function(e, t) {
|
|
9968
|
-
var n =
|
|
10004
|
+
var n = Ur(ci(e), 2), r = n[0], i = n[1], a = I(r), o;
|
|
9969
10005
|
return i && (t.digits || (t.startInternationalNumber(void 0, void 0), a || (o = !0))), a && this.inputDigits(a, t), {
|
|
9970
10006
|
digits: a,
|
|
9971
10007
|
justLeadingPlus: o
|
|
@@ -10004,7 +10040,7 @@ var Qr = "[" + S + x + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + C +
|
|
|
10004
10040
|
if (e) {
|
|
10005
10041
|
this.hasSelectedNumberingPlan = !0;
|
|
10006
10042
|
var t = e._nationalPrefixForParsing();
|
|
10007
|
-
this.couldPossiblyExtractAnotherNationalSignificantNumber = t &&
|
|
10043
|
+
this.couldPossiblyExtractAnotherNationalSignificantNumber = t && ii.test(t);
|
|
10008
10044
|
} else this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
|
|
10009
10045
|
}
|
|
10010
10046
|
},
|
|
@@ -10012,7 +10048,7 @@ var Qr = "[" + S + x + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + C +
|
|
|
10012
10048
|
key: "extractNationalSignificantNumber",
|
|
10013
10049
|
value: function(e, t) {
|
|
10014
10050
|
if (this.hasSelectedNumberingPlan) {
|
|
10015
|
-
var n =
|
|
10051
|
+
var n = Re(e, this.metadata), r = n.nationalPrefix, i = n.nationalNumber, a = n.carrierCode;
|
|
10016
10052
|
if (i !== e) return this.onExtractedNationalNumber(r, a, i, e, t), !0;
|
|
10017
10053
|
}
|
|
10018
10054
|
}
|
|
@@ -10022,7 +10058,7 @@ var Qr = "[" + S + x + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + C +
|
|
|
10022
10058
|
value: function(e, t, n) {
|
|
10023
10059
|
if (!this.hasExtractedNationalSignificantNumber) return this.extractNationalSignificantNumber(e, n);
|
|
10024
10060
|
if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
|
|
10025
|
-
var r =
|
|
10061
|
+
var r = Re(e, this.metadata), i = r.nationalPrefix, a = r.nationalNumber, o = r.carrierCode;
|
|
10026
10062
|
if (a !== t) return this.onExtractedNationalNumber(i, o, a, e, n), !0;
|
|
10027
10063
|
}
|
|
10028
10064
|
}
|
|
@@ -10060,7 +10096,7 @@ var Qr = "[" + S + x + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + C +
|
|
|
10060
10096
|
value: function(e) {
|
|
10061
10097
|
var t = e.international, n = e.IDDPrefix, r = e.digits;
|
|
10062
10098
|
if (e.nationalSignificantNumber, !(t || n)) {
|
|
10063
|
-
var i =
|
|
10099
|
+
var i = Le(r, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
|
|
10064
10100
|
if (i !== void 0 && i !== r) return e.update({ IDDPrefix: r.slice(0, r.length - i.length) }), this.startInternationalNumber(e, {
|
|
10065
10101
|
country: void 0,
|
|
10066
10102
|
callingCode: void 0
|
|
@@ -10072,7 +10108,7 @@ var Qr = "[" + S + x + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + C +
|
|
|
10072
10108
|
key: "fixMissingPlus",
|
|
10073
10109
|
value: function(e) {
|
|
10074
10110
|
if (!e.international) {
|
|
10075
|
-
var t =
|
|
10111
|
+
var t = Je(e.digits, e.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata).countryCallingCode;
|
|
10076
10112
|
if (t) return e.update({ missingPlus: !0 }), this.startInternationalNumber(e, {
|
|
10077
10113
|
country: e.country,
|
|
10078
10114
|
callingCode: t
|
|
@@ -10097,21 +10133,21 @@ var Qr = "[" + S + x + "]+", $r = RegExp("^" + Qr + "$", "i"), ei = "(?:[" + C +
|
|
|
10097
10133
|
}
|
|
10098
10134
|
]);
|
|
10099
10135
|
}();
|
|
10100
|
-
function
|
|
10101
|
-
var t = e.search(
|
|
10136
|
+
function oi(e) {
|
|
10137
|
+
var t = e.search(ni);
|
|
10102
10138
|
if (!(t < 0)) {
|
|
10103
10139
|
e = e.slice(t);
|
|
10104
10140
|
var n;
|
|
10105
|
-
return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(
|
|
10141
|
+
return e[0] === "+" && (n = !0, e = e.slice(1)), e = e.replace(ri, ""), n && (e = "+" + e), e;
|
|
10106
10142
|
}
|
|
10107
10143
|
}
|
|
10108
|
-
function
|
|
10109
|
-
var t =
|
|
10144
|
+
function si(e) {
|
|
10145
|
+
var t = oi(e) || "";
|
|
10110
10146
|
return t[0] === "+" ? [t.slice(1), !0] : [t];
|
|
10111
10147
|
}
|
|
10112
|
-
function
|
|
10113
|
-
var t =
|
|
10114
|
-
return
|
|
10148
|
+
function ci(e) {
|
|
10149
|
+
var t = Ur(si(e), 2), n = t[0], r = t[1];
|
|
10150
|
+
return ti.test(n) || (n = ""), [n, r];
|
|
10115
10151
|
}
|
|
10116
10152
|
//#endregion
|
|
10117
10153
|
//#region node_modules/libphonenumber-js/es6/AsYouType.js
|
|
@@ -10123,25 +10159,25 @@ function q(e) {
|
|
|
10123
10159
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
10124
10160
|
}, q(e);
|
|
10125
10161
|
}
|
|
10126
|
-
function
|
|
10127
|
-
return
|
|
10162
|
+
function li(e, t) {
|
|
10163
|
+
return mi(e) || pi(e, t) || di(e, t) || ui();
|
|
10128
10164
|
}
|
|
10129
|
-
function
|
|
10165
|
+
function ui() {
|
|
10130
10166
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10131
10167
|
}
|
|
10132
|
-
function
|
|
10168
|
+
function di(e, t) {
|
|
10133
10169
|
if (e) {
|
|
10134
|
-
if (typeof e == "string") return
|
|
10170
|
+
if (typeof e == "string") return fi(e, t);
|
|
10135
10171
|
var n = {}.toString.call(e).slice(8, -1);
|
|
10136
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
10172
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? fi(e, t) : void 0;
|
|
10137
10173
|
}
|
|
10138
10174
|
}
|
|
10139
|
-
function
|
|
10175
|
+
function fi(e, t) {
|
|
10140
10176
|
(t == null || t > e.length) && (t = e.length);
|
|
10141
10177
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
10142
10178
|
return r;
|
|
10143
10179
|
}
|
|
10144
|
-
function
|
|
10180
|
+
function pi(e, t) {
|
|
10145
10181
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
10146
10182
|
if (n != null) {
|
|
10147
10183
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -10162,26 +10198,26 @@ function di(e, t) {
|
|
|
10162
10198
|
return s;
|
|
10163
10199
|
}
|
|
10164
10200
|
}
|
|
10165
|
-
function
|
|
10201
|
+
function mi(e) {
|
|
10166
10202
|
if (Array.isArray(e)) return e;
|
|
10167
10203
|
}
|
|
10168
|
-
function
|
|
10204
|
+
function hi(e, t) {
|
|
10169
10205
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
10170
10206
|
}
|
|
10171
|
-
function
|
|
10207
|
+
function gi(e, t) {
|
|
10172
10208
|
for (var n = 0; n < t.length; n++) {
|
|
10173
10209
|
var r = t[n];
|
|
10174
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
10210
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, vi(r.key), r);
|
|
10175
10211
|
}
|
|
10176
10212
|
}
|
|
10177
|
-
function
|
|
10178
|
-
return t &&
|
|
10213
|
+
function _i(e, t, n) {
|
|
10214
|
+
return t && gi(e.prototype, t), n && gi(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
10179
10215
|
}
|
|
10180
|
-
function
|
|
10181
|
-
var t =
|
|
10216
|
+
function vi(e) {
|
|
10217
|
+
var t = yi(e, "string");
|
|
10182
10218
|
return q(t) == "symbol" ? t : t + "";
|
|
10183
10219
|
}
|
|
10184
|
-
function
|
|
10220
|
+
function yi(e, t) {
|
|
10185
10221
|
if (q(e) != "object" || !e) return e;
|
|
10186
10222
|
var n = e[Symbol.toPrimitive];
|
|
10187
10223
|
if (n !== void 0) {
|
|
@@ -10191,18 +10227,18 @@ function _i(e, t) {
|
|
|
10191
10227
|
}
|
|
10192
10228
|
return (t === "string" ? String : Number)(e);
|
|
10193
10229
|
}
|
|
10194
|
-
var
|
|
10230
|
+
var bi = !1, xi = /*#__PURE__*/ function() {
|
|
10195
10231
|
function e(t, n) {
|
|
10196
|
-
|
|
10197
|
-
var r =
|
|
10232
|
+
hi(this, e), this.metadata = new v(n);
|
|
10233
|
+
var r = li(this.getCountryAndCallingCode(t), 2), i = r[0], a = r[1];
|
|
10198
10234
|
this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
|
|
10199
10235
|
}
|
|
10200
|
-
return
|
|
10236
|
+
return _i(e, [
|
|
10201
10237
|
{
|
|
10202
10238
|
key: "getCountryAndCallingCode",
|
|
10203
10239
|
value: function(e) {
|
|
10204
10240
|
var t, n;
|
|
10205
|
-
return e && (f(e) ? (t = e.defaultCountry, n = e.defaultCallingCode) : t = e), t && !this.metadata.hasCountry(t) && (t = void 0), n &&
|
|
10241
|
+
return e && (f(e) ? (t = e.defaultCountry, n = e.defaultCallingCode) : t = e), t && !this.metadata.hasCountry(t) && (t = void 0), n && bi && this.metadata.isNonGeographicCallingCode(n) && (t = "001"), [t, n];
|
|
10206
10242
|
}
|
|
10207
10243
|
},
|
|
10208
10244
|
{
|
|
@@ -10227,17 +10263,17 @@ var vi = !1, yi = /*#__PURE__*/ function() {
|
|
|
10227
10263
|
key: "reset",
|
|
10228
10264
|
value: function() {
|
|
10229
10265
|
var e = this;
|
|
10230
|
-
return this.state = new
|
|
10266
|
+
return this.state = new Jn({
|
|
10231
10267
|
onCountryChange: function(t) {
|
|
10232
10268
|
e.country = t;
|
|
10233
10269
|
},
|
|
10234
10270
|
onCallingCodeChange: function(t, n) {
|
|
10235
|
-
e.metadata.selectNumberingPlan(n
|
|
10271
|
+
e.metadata.selectNumberingPlan(n || t), e.formatter.reset(e.metadata.numberingPlan, e.state), e.parser.reset(e.metadata.numberingPlan);
|
|
10236
10272
|
}
|
|
10237
|
-
}), this.formatter = new
|
|
10273
|
+
}), this.formatter = new Hr({
|
|
10238
10274
|
state: this.state,
|
|
10239
10275
|
metadata: this.metadata
|
|
10240
|
-
}), this.parser = new
|
|
10276
|
+
}), this.parser = new ai({
|
|
10241
10277
|
defaultCountry: this.defaultCountry,
|
|
10242
10278
|
defaultCallingCode: this.defaultCallingCode,
|
|
10243
10279
|
metadata: this.metadata,
|
|
@@ -10279,7 +10315,7 @@ var vi = !1, yi = /*#__PURE__*/ function() {
|
|
|
10279
10315
|
key: "_getCountry",
|
|
10280
10316
|
value: function() {
|
|
10281
10317
|
var e = this.state.country;
|
|
10282
|
-
if (!(
|
|
10318
|
+
if (!(bi && e === "001")) return e;
|
|
10283
10319
|
}
|
|
10284
10320
|
},
|
|
10285
10321
|
{
|
|
@@ -10332,10 +10368,11 @@ var vi = !1, yi = /*#__PURE__*/ function() {
|
|
|
10332
10368
|
{
|
|
10333
10369
|
key: "determineTheCountry",
|
|
10334
10370
|
value: function() {
|
|
10335
|
-
|
|
10371
|
+
var e = We(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
|
|
10336
10372
|
nationalNumber: this.state.nationalSignificantNumber,
|
|
10337
10373
|
metadata: this.metadata
|
|
10338
|
-
})
|
|
10374
|
+
});
|
|
10375
|
+
e !== this.state.country && (this.state.setCountry(e), e && this.metadata.selectNumberingPlan(e));
|
|
10339
10376
|
}
|
|
10340
10377
|
},
|
|
10341
10378
|
{
|
|
@@ -10351,22 +10388,17 @@ var vi = !1, yi = /*#__PURE__*/ function() {
|
|
|
10351
10388
|
{
|
|
10352
10389
|
key: "getNumber",
|
|
10353
10390
|
value: function() {
|
|
10354
|
-
var e = this.state, t = e.nationalSignificantNumber, n = e.carrierCode, r = e.callingCode
|
|
10355
|
-
if (t
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
var c = Le(t, {
|
|
10362
|
-
countries: s,
|
|
10363
|
-
metadata: this.metadata.metadata
|
|
10364
|
-
});
|
|
10365
|
-
c && (i = c);
|
|
10391
|
+
var e = this.state, t = e.nationalSignificantNumber, n = e.carrierCode, r = e.callingCode;
|
|
10392
|
+
if (t) {
|
|
10393
|
+
var i = this._getCountry();
|
|
10394
|
+
if (!(!i && !r)) {
|
|
10395
|
+
if (i && i === this.defaultCountry) {
|
|
10396
|
+
var a = Si(this.metadata.numberingPlan.callingCode(), t, this.metadata);
|
|
10397
|
+
a && (i = a);
|
|
10366
10398
|
}
|
|
10399
|
+
var o = new k(i || r, t, this.metadata.metadata);
|
|
10400
|
+
return n && (o.carrierCode = n), o;
|
|
10367
10401
|
}
|
|
10368
|
-
var l = new bt(i || r, t, this.metadata.metadata);
|
|
10369
|
-
return n && (l.carrierCode = n), l;
|
|
10370
10402
|
}
|
|
10371
10403
|
}
|
|
10372
10404
|
},
|
|
@@ -10384,6 +10416,17 @@ var vi = !1, yi = /*#__PURE__*/ function() {
|
|
|
10384
10416
|
return e ? e.isValid() : !1;
|
|
10385
10417
|
}
|
|
10386
10418
|
},
|
|
10419
|
+
{
|
|
10420
|
+
key: "validateLength",
|
|
10421
|
+
value: function() {
|
|
10422
|
+
var e = this.state, t = e.digits, n = e.nationalSignificantNumber;
|
|
10423
|
+
if (!t) return "NOT_A_NUMBER";
|
|
10424
|
+
if (!this.metadata.numberingPlan) return "INVALID_COUNTRY";
|
|
10425
|
+
if (!n) return "TOO_SHORT";
|
|
10426
|
+
var r = y(n, void 0, this.metadata);
|
|
10427
|
+
if (r !== "IS_POSSIBLE") return r;
|
|
10428
|
+
}
|
|
10429
|
+
},
|
|
10387
10430
|
{
|
|
10388
10431
|
key: "getNationalNumber",
|
|
10389
10432
|
value: function() {
|
|
@@ -10404,42 +10447,46 @@ var vi = !1, yi = /*#__PURE__*/ function() {
|
|
|
10404
10447
|
}
|
|
10405
10448
|
]);
|
|
10406
10449
|
}();
|
|
10450
|
+
function Si(e, t, n) {
|
|
10451
|
+
var r = n.getCountryCodesForCallingCode(e);
|
|
10452
|
+
if (r.length > 1) return He(t, r, n.metadata);
|
|
10453
|
+
}
|
|
10407
10454
|
//#endregion
|
|
10408
10455
|
//#region node_modules/libphonenumber-js/es6/getExampleNumber.js
|
|
10409
|
-
function
|
|
10410
|
-
if (t[e]) return new
|
|
10456
|
+
function Ci(e, t, n) {
|
|
10457
|
+
if (t[e]) return new k(e, t[e], n);
|
|
10411
10458
|
}
|
|
10412
10459
|
//#endregion
|
|
10413
10460
|
//#region node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js
|
|
10414
10461
|
function J() {
|
|
10415
|
-
return l(
|
|
10462
|
+
return l(Hn, arguments);
|
|
10416
10463
|
}
|
|
10417
10464
|
//#endregion
|
|
10418
10465
|
//#region node_modules/libphonenumber-js/min/exports/AsYouType.js
|
|
10419
10466
|
function Y(e) {
|
|
10420
|
-
return
|
|
10467
|
+
return xi.call(this, e, c);
|
|
10421
10468
|
}
|
|
10422
|
-
Y.prototype = Object.create(
|
|
10469
|
+
Y.prototype = Object.create(xi.prototype, {}), Y.prototype.constructor = Y;
|
|
10423
10470
|
//#endregion
|
|
10424
10471
|
//#region node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js
|
|
10425
|
-
function
|
|
10426
|
-
return l(
|
|
10472
|
+
function wi() {
|
|
10473
|
+
return l(pe, arguments);
|
|
10427
10474
|
}
|
|
10428
10475
|
//#endregion
|
|
10429
10476
|
//#region node_modules/libphonenumber-js/min/exports/getExampleNumber.js
|
|
10430
|
-
function
|
|
10431
|
-
return l(
|
|
10477
|
+
function Ti() {
|
|
10478
|
+
return l(Ci, arguments);
|
|
10432
10479
|
}
|
|
10433
10480
|
//#endregion
|
|
10434
10481
|
//#region libs/checkout/src/utils/phone/countryDialCodes.ts
|
|
10435
10482
|
var X = (e) => {
|
|
10436
10483
|
let t = e.toUpperCase().split("").map((e) => 127397 + e.charCodeAt(0));
|
|
10437
10484
|
return String.fromCodePoint(...t);
|
|
10438
|
-
},
|
|
10485
|
+
}, Ei = (e, t) => {
|
|
10439
10486
|
let n = Object.values(i);
|
|
10440
10487
|
return (e?.length ? n.filter((t) => e.includes(t.toUpperCase())) : n).map((e) => {
|
|
10441
10488
|
try {
|
|
10442
|
-
let n =
|
|
10489
|
+
let n = wi(e);
|
|
10443
10490
|
return {
|
|
10444
10491
|
code: e.toUpperCase(),
|
|
10445
10492
|
name: a(e, t),
|
|
@@ -10450,9 +10497,9 @@ var X = (e) => {
|
|
|
10450
10497
|
return null;
|
|
10451
10498
|
}
|
|
10452
10499
|
}).filter((e) => e !== null).sort((e, n) => e.name.localeCompare(n.name, t));
|
|
10453
|
-
},
|
|
10500
|
+
}, Di = (e) => {
|
|
10454
10501
|
try {
|
|
10455
|
-
let t = e.toUpperCase(), n =
|
|
10502
|
+
let t = e.toUpperCase(), n = wi(t);
|
|
10456
10503
|
return {
|
|
10457
10504
|
code: t,
|
|
10458
10505
|
name: a(t),
|
|
@@ -10462,7 +10509,7 @@ var X = (e) => {
|
|
|
10462
10509
|
} catch {
|
|
10463
10510
|
return null;
|
|
10464
10511
|
}
|
|
10465
|
-
},
|
|
10512
|
+
}, Oi = {
|
|
10466
10513
|
AC: "40123",
|
|
10467
10514
|
AD: "312345",
|
|
10468
10515
|
AE: "501234567",
|
|
@@ -10714,7 +10761,7 @@ var X = (e) => {
|
|
|
10714
10761
|
} catch {
|
|
10715
10762
|
return e;
|
|
10716
10763
|
}
|
|
10717
|
-
},
|
|
10764
|
+
}, ki = (e, t) => {
|
|
10718
10765
|
try {
|
|
10719
10766
|
return J(e, t)?.number || null;
|
|
10720
10767
|
} catch {
|
|
@@ -10732,12 +10779,12 @@ var X = (e) => {
|
|
|
10732
10779
|
}
|
|
10733
10780
|
}, $ = (e) => {
|
|
10734
10781
|
try {
|
|
10735
|
-
let t =
|
|
10782
|
+
let t = Ti(e, Oi);
|
|
10736
10783
|
return t ? t.formatNational() : "";
|
|
10737
10784
|
} catch {
|
|
10738
10785
|
return "";
|
|
10739
10786
|
}
|
|
10740
|
-
},
|
|
10787
|
+
}, Ai = (e, t) => {
|
|
10741
10788
|
try {
|
|
10742
10789
|
if (e.startsWith("+")) {
|
|
10743
10790
|
let n = J(e);
|
|
@@ -10747,14 +10794,14 @@ var X = (e) => {
|
|
|
10747
10794
|
} catch {
|
|
10748
10795
|
return !1;
|
|
10749
10796
|
}
|
|
10750
|
-
},
|
|
10797
|
+
}, ji = (e) => {
|
|
10751
10798
|
try {
|
|
10752
|
-
let t =
|
|
10799
|
+
let t = Ti(e, Oi);
|
|
10753
10800
|
return t ? t.nationalNumber.length : Infinity;
|
|
10754
10801
|
} catch {
|
|
10755
10802
|
return Infinity;
|
|
10756
10803
|
}
|
|
10757
|
-
},
|
|
10804
|
+
}, Mi = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" aria-hidden=\"true\"><path d=\"M2 3.5L5 6.5L8 3.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", Ni = class extends e {
|
|
10758
10805
|
_flagDisplay;
|
|
10759
10806
|
_selectElement;
|
|
10760
10807
|
_locale;
|
|
@@ -10767,7 +10814,7 @@ var X = (e) => {
|
|
|
10767
10814
|
s(e.target.value);
|
|
10768
10815
|
});
|
|
10769
10816
|
let l = new e("span", ["country-chevron"]);
|
|
10770
|
-
l.getElement().innerHTML =
|
|
10817
|
+
l.getElement().innerHTML = Mi, this.appendChild(this._flagDisplay), this.appendChild(l), this.appendChild(this._selectElement);
|
|
10771
10818
|
}
|
|
10772
10819
|
setCountry(e) {
|
|
10773
10820
|
return this._selectElement.getElement().value = e, this._flagDisplay.setText(X(e)), this;
|
|
@@ -10790,7 +10837,7 @@ var X = (e) => {
|
|
|
10790
10837
|
}), n.appendChild(i);
|
|
10791
10838
|
});
|
|
10792
10839
|
}
|
|
10793
|
-
},
|
|
10840
|
+
}, Pi = class extends e {
|
|
10794
10841
|
_countrySelector;
|
|
10795
10842
|
_inputElement;
|
|
10796
10843
|
_countryCodeInput;
|
|
@@ -10832,8 +10879,8 @@ var X = (e) => {
|
|
|
10832
10879
|
return r.style.borderRadius = `${t.styles.borderRadius}px`, r.style.setProperty("--phone-border-radius", `${t.styles.borderRadius}px`), n;
|
|
10833
10880
|
}
|
|
10834
10881
|
_buildCountrySelector(e, t, n, r) {
|
|
10835
|
-
return new
|
|
10836
|
-
countries:
|
|
10882
|
+
return new Ni({
|
|
10883
|
+
countries: Ei(e, t),
|
|
10837
10884
|
selectedCode: this._currentCountryCode,
|
|
10838
10885
|
locale: t,
|
|
10839
10886
|
styles: {
|
|
@@ -10911,12 +10958,12 @@ var X = (e) => {
|
|
|
10911
10958
|
this._clearValidationError();
|
|
10912
10959
|
return;
|
|
10913
10960
|
}
|
|
10914
|
-
if (
|
|
10961
|
+
if (Ai(e, this._currentCountryCode)) {
|
|
10915
10962
|
this._clearValidationError();
|
|
10916
10963
|
return;
|
|
10917
10964
|
}
|
|
10918
10965
|
if (!t) {
|
|
10919
|
-
let t =
|
|
10966
|
+
let t = ji(this._currentCountryCode), n;
|
|
10920
10967
|
if (e.startsWith("+")) {
|
|
10921
10968
|
let t = Q(e);
|
|
10922
10969
|
n = t ? t.nationalNumber.replace(/\D/g, "").length : 0;
|
|
@@ -10938,7 +10985,7 @@ var X = (e) => {
|
|
|
10938
10985
|
}
|
|
10939
10986
|
getValue() {
|
|
10940
10987
|
let e = this._inputElement.getElement().value;
|
|
10941
|
-
return e ?
|
|
10988
|
+
return e ? ki(e, this._currentCountryCode) || e : "";
|
|
10942
10989
|
}
|
|
10943
10990
|
setValue(e) {
|
|
10944
10991
|
if (!e) return this._inputElement.getElement().value = "", this._userSelectedCountry = !1, this;
|
|
@@ -10966,4 +11013,4 @@ var X = (e) => {
|
|
|
10966
11013
|
}
|
|
10967
11014
|
};
|
|
10968
11015
|
//#endregion
|
|
10969
|
-
export {
|
|
11016
|
+
export { Pi as PhoneNumberField, Z as formatPhoneAsYouType, Ei as getCountriesForDialSelector, Di as getCountryDialCodeInfo, ji as getExpectedDigitLength, X as getFlagEmoji, $ as getPlaceholder, Ai as isValidPhoneNumber, Q as parseE164, ki as toE164 };
|