intl-tel-input 23.4.1 → 23.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -23
- package/build/css/demo.css +2 -2
- package/build/css/intlTelInput.css +4 -4
- package/build/css/intlTelInput.min.css +1 -1
- package/build/img/flags.webp +0 -0
- package/build/img/flags@2x.webp +0 -0
- package/build/img/globe.webp +0 -0
- package/build/img/globe@2x.webp +0 -0
- package/build/img/globe_light.webp +0 -0
- package/build/img/globe_light@2x.webp +0 -0
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/i18n/ca/countries.js +252 -0
- package/build/js/i18n/ca/index.js +6 -0
- package/build/js/i18n/ca/interface.js +14 -0
- package/build/js/i18n/cs/countries.js +252 -0
- package/build/js/i18n/cs/index.js +6 -0
- package/build/js/i18n/cs/interface.js +14 -0
- package/build/js/i18n/index.js +4 -0
- package/build/js/i18n/it/countries.js +252 -0
- package/build/js/i18n/it/index.js +6 -0
- package/build/js/i18n/it/interface.js +14 -0
- package/build/js/i18n/sk/countries.js +252 -0
- package/build/js/i18n/sk/index.js +6 -0
- package/build/js/i18n/sk/interface.js +14 -0
- package/build/js/intlTelInput.js +3 -5
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +260 -254
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/build/js/utils.js +52 -52
- package/package.json +1 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +2 -4
- package/react/build/IntlTelInput.js +2 -4
- package/react/build/IntlTelInputWithUtils.cjs +259 -253
- package/react/build/IntlTelInputWithUtils.js +259 -253
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v23.
|
|
2
|
+
* International Telephone Input v23.6.0
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -1724,9 +1724,7 @@ var factoryOutput = (() => {
|
|
|
1724
1724
|
this.countryContainer
|
|
1725
1725
|
);
|
|
1726
1726
|
if (this.telInput.disabled) {
|
|
1727
|
-
this.selectedCountry.setAttribute("
|
|
1728
|
-
} else {
|
|
1729
|
-
this.selectedCountry.setAttribute("tabindex", "0");
|
|
1727
|
+
this.selectedCountry.setAttribute("disabled", "true");
|
|
1730
1728
|
}
|
|
1731
1729
|
} else {
|
|
1732
1730
|
this.selectedCountry = createEl(
|
|
@@ -2823,7 +2821,7 @@ var factoryOutput = (() => {
|
|
|
2823
2821
|
//* A map from instance ID to instance object.
|
|
2824
2822
|
instances: {},
|
|
2825
2823
|
loadUtils,
|
|
2826
|
-
version: "23.
|
|
2824
|
+
version: "23.6.0"
|
|
2827
2825
|
}
|
|
2828
2826
|
);
|
|
2829
2827
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -2857,7 +2855,7 @@ var factoryOutput = (() => {
|
|
|
2857
2855
|
return b;
|
|
2858
2856
|
}
|
|
2859
2857
|
;
|
|
2860
|
-
var
|
|
2858
|
+
var ca = class {
|
|
2861
2859
|
constructor(a) {
|
|
2862
2860
|
if (ba !== ba) throw Error("SafeUrl is not meant to be built directly");
|
|
2863
2861
|
this.g = a;
|
|
@@ -2866,8 +2864,8 @@ var factoryOutput = (() => {
|
|
|
2866
2864
|
return this.g.toString();
|
|
2867
2865
|
}
|
|
2868
2866
|
}, ba = {};
|
|
2869
|
-
new
|
|
2870
|
-
new
|
|
2867
|
+
new ca("about:invalid#zClosurez");
|
|
2868
|
+
new ca("about:blank");
|
|
2871
2869
|
const ea = {};
|
|
2872
2870
|
class fa {
|
|
2873
2871
|
constructor() {
|
|
@@ -3046,91 +3044,91 @@ var factoryOutput = (() => {
|
|
|
3046
3044
|
return b;
|
|
3047
3045
|
};
|
|
3048
3046
|
var xa = /^-?[0-9]+$/;
|
|
3049
|
-
function
|
|
3047
|
+
function ya() {
|
|
3050
3048
|
}
|
|
3051
|
-
n(
|
|
3052
|
-
|
|
3049
|
+
n(ya, z);
|
|
3050
|
+
ya.prototype.g = function(a, b) {
|
|
3053
3051
|
a = new a.h();
|
|
3054
3052
|
a.l = this;
|
|
3055
3053
|
a.h = b;
|
|
3056
3054
|
a.g = {};
|
|
3057
3055
|
return a;
|
|
3058
3056
|
};
|
|
3059
|
-
function
|
|
3057
|
+
function B() {
|
|
3060
3058
|
}
|
|
3061
|
-
n(
|
|
3062
|
-
|
|
3059
|
+
n(B, ya);
|
|
3060
|
+
B.prototype.h = function(a, b) {
|
|
3063
3061
|
return 8 == a.h ? !!b : z.prototype.h.apply(this, arguments);
|
|
3064
3062
|
};
|
|
3065
|
-
|
|
3066
|
-
return
|
|
3063
|
+
B.prototype.g = function(a, b) {
|
|
3064
|
+
return B.ma.g.call(this, a, b);
|
|
3067
3065
|
};
|
|
3068
|
-
function
|
|
3066
|
+
function C(a, b) {
|
|
3069
3067
|
null != a && this.g.apply(this, arguments);
|
|
3070
3068
|
}
|
|
3071
|
-
|
|
3072
|
-
|
|
3069
|
+
C.prototype.h = "";
|
|
3070
|
+
C.prototype.set = function(a) {
|
|
3073
3071
|
this.h = "" + a;
|
|
3074
3072
|
};
|
|
3075
|
-
|
|
3073
|
+
C.prototype.g = function(a, b, c) {
|
|
3076
3074
|
this.h += String(a);
|
|
3077
3075
|
if (null != b) for (let d = 1; d < arguments.length; d++) this.h += arguments[d];
|
|
3078
3076
|
return this;
|
|
3079
3077
|
};
|
|
3080
|
-
function
|
|
3078
|
+
function D(a) {
|
|
3081
3079
|
a.h = "";
|
|
3082
3080
|
}
|
|
3083
|
-
|
|
3081
|
+
C.prototype.toString = function() {
|
|
3084
3082
|
return this.h;
|
|
3085
3083
|
};
|
|
3084
|
+
function E() {
|
|
3085
|
+
p.call(this);
|
|
3086
|
+
}
|
|
3087
|
+
n(E, p);
|
|
3088
|
+
var za = null;
|
|
3086
3089
|
function F() {
|
|
3087
3090
|
p.call(this);
|
|
3088
3091
|
}
|
|
3089
3092
|
n(F, p);
|
|
3090
|
-
var
|
|
3093
|
+
var Aa = null;
|
|
3091
3094
|
function G() {
|
|
3092
3095
|
p.call(this);
|
|
3093
3096
|
}
|
|
3094
3097
|
n(G, p);
|
|
3095
|
-
var
|
|
3096
|
-
function
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3098
|
+
var Ba = null;
|
|
3099
|
+
E.prototype.m = function() {
|
|
3100
|
+
var a = za;
|
|
3101
|
+
a || (za = a = y(E, { 0: { name: "NumberFormat", ia: "i18n.phonenumbers.NumberFormat" }, 1: { name: "pattern", required: true, i: 9, type: String }, 2: { name: "format", required: true, i: 9, type: String }, 3: { name: "leading_digits_pattern", aa: true, i: 9, type: String }, 4: { name: "national_prefix_formatting_rule", i: 9, type: String }, 6: { name: "national_prefix_optional_when_formatting", i: 8, defaultValue: false, type: Boolean }, 5: { name: "domestic_carrier_code_formatting_rule", i: 9, type: String } }));
|
|
3102
|
+
return a;
|
|
3103
|
+
};
|
|
3104
|
+
E.m = E.prototype.m;
|
|
3101
3105
|
F.prototype.m = function() {
|
|
3102
|
-
var a =
|
|
3103
|
-
a || (
|
|
3106
|
+
var a = Aa;
|
|
3107
|
+
a || (Aa = a = y(F, { 0: { name: "PhoneNumberDesc", ia: "i18n.phonenumbers.PhoneNumberDesc" }, 2: { name: "national_number_pattern", i: 9, type: String }, 9: { name: "possible_length", aa: true, i: 5, type: Number }, 10: { name: "possible_length_local_only", aa: true, i: 5, type: Number }, 6: { name: "example_number", i: 9, type: String } }));
|
|
3104
3108
|
return a;
|
|
3105
3109
|
};
|
|
3106
3110
|
F.m = F.prototype.m;
|
|
3107
3111
|
G.prototype.m = function() {
|
|
3108
|
-
var a =
|
|
3109
|
-
a || (
|
|
3110
|
-
return a;
|
|
3111
|
-
};
|
|
3112
|
-
G.m = G.prototype.m;
|
|
3113
|
-
H.prototype.m = function() {
|
|
3114
|
-
var a = Aa;
|
|
3115
|
-
a || (Aa = a = y(H, {
|
|
3112
|
+
var a = Ba;
|
|
3113
|
+
a || (Ba = a = y(G, {
|
|
3116
3114
|
0: { name: "PhoneMetadata", ia: "i18n.phonenumbers.PhoneMetadata" },
|
|
3117
|
-
1: { name: "general_desc", i: 11, type:
|
|
3118
|
-
2: { name: "fixed_line", i: 11, type:
|
|
3119
|
-
3: { name: "mobile", i: 11, type:
|
|
3120
|
-
4: { name: "toll_free", i: 11, type:
|
|
3121
|
-
5: { name: "premium_rate", i: 11, type:
|
|
3122
|
-
6: { name: "shared_cost", i: 11, type:
|
|
3123
|
-
7: { name: "personal_number", i: 11, type:
|
|
3124
|
-
8: { name: "voip", i: 11, type:
|
|
3125
|
-
21: { name: "pager", i: 11, type:
|
|
3126
|
-
25: { name: "uan", i: 11, type:
|
|
3127
|
-
27: { name: "emergency", i: 11, type:
|
|
3128
|
-
28: { name: "voicemail", i: 11, type:
|
|
3129
|
-
29: { name: "short_code", i: 11, type:
|
|
3130
|
-
30: { name: "standard_rate", i: 11, type:
|
|
3131
|
-
31: { name: "carrier_specific", i: 11, type:
|
|
3132
|
-
33: { name: "sms_services", i: 11, type:
|
|
3133
|
-
24: { name: "no_international_dialling", i: 11, type:
|
|
3115
|
+
1: { name: "general_desc", i: 11, type: F },
|
|
3116
|
+
2: { name: "fixed_line", i: 11, type: F },
|
|
3117
|
+
3: { name: "mobile", i: 11, type: F },
|
|
3118
|
+
4: { name: "toll_free", i: 11, type: F },
|
|
3119
|
+
5: { name: "premium_rate", i: 11, type: F },
|
|
3120
|
+
6: { name: "shared_cost", i: 11, type: F },
|
|
3121
|
+
7: { name: "personal_number", i: 11, type: F },
|
|
3122
|
+
8: { name: "voip", i: 11, type: F },
|
|
3123
|
+
21: { name: "pager", i: 11, type: F },
|
|
3124
|
+
25: { name: "uan", i: 11, type: F },
|
|
3125
|
+
27: { name: "emergency", i: 11, type: F },
|
|
3126
|
+
28: { name: "voicemail", i: 11, type: F },
|
|
3127
|
+
29: { name: "short_code", i: 11, type: F },
|
|
3128
|
+
30: { name: "standard_rate", i: 11, type: F },
|
|
3129
|
+
31: { name: "carrier_specific", i: 11, type: F },
|
|
3130
|
+
33: { name: "sms_services", i: 11, type: F },
|
|
3131
|
+
24: { name: "no_international_dialling", i: 11, type: F },
|
|
3134
3132
|
9: { name: "id", required: true, i: 9, type: String },
|
|
3135
3133
|
10: { name: "country_code", i: 5, type: Number },
|
|
3136
3134
|
11: { name: "international_prefix", i: 9, type: String },
|
|
@@ -3144,31 +3142,31 @@ var factoryOutput = (() => {
|
|
|
3144
3142
|
},
|
|
3145
3143
|
16: { name: "national_prefix_transform_rule", i: 9, type: String },
|
|
3146
3144
|
18: { name: "same_mobile_and_fixed_line_pattern", i: 8, defaultValue: false, type: Boolean },
|
|
3147
|
-
19: { name: "number_format", aa: true, i: 11, type:
|
|
3148
|
-
20: { name: "intl_number_format", aa: true, i: 11, type:
|
|
3145
|
+
19: { name: "number_format", aa: true, i: 11, type: E },
|
|
3146
|
+
20: { name: "intl_number_format", aa: true, i: 11, type: E },
|
|
3149
3147
|
22: { name: "main_country_for_code", i: 8, defaultValue: false, type: Boolean },
|
|
3150
3148
|
23: { name: "leading_digits", i: 9, type: String }
|
|
3151
3149
|
}));
|
|
3152
3150
|
return a;
|
|
3153
3151
|
};
|
|
3154
|
-
|
|
3155
|
-
function
|
|
3152
|
+
G.m = G.prototype.m;
|
|
3153
|
+
function H() {
|
|
3156
3154
|
p.call(this);
|
|
3157
3155
|
}
|
|
3158
|
-
n(
|
|
3159
|
-
var
|
|
3160
|
-
|
|
3161
|
-
var a =
|
|
3162
|
-
a || (
|
|
3156
|
+
n(H, p);
|
|
3157
|
+
var Ca = null, Da = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
|
|
3158
|
+
H.prototype.m = function() {
|
|
3159
|
+
var a = Ca;
|
|
3160
|
+
a || (Ca = a = y(H, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: true, i: 5, type: Number }, 2: { name: "national_number", required: true, i: 4, type: Number }, 3: { name: "extension", i: 9, type: String }, 4: { name: "italian_leading_zero", i: 8, type: Boolean }, 8: { name: "number_of_leading_zeros", i: 5, defaultValue: 1, type: Number }, 5: { name: "raw_input", i: 9, type: String }, 6: { name: "country_code_source", i: 14, defaultValue: 0, type: Da }, 7: {
|
|
3163
3161
|
name: "preferred_domestic_carrier_code",
|
|
3164
3162
|
i: 9,
|
|
3165
3163
|
type: String
|
|
3166
3164
|
} }));
|
|
3167
3165
|
return a;
|
|
3168
3166
|
};
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
var
|
|
3167
|
+
H.ctor = H;
|
|
3168
|
+
H.ctor.m = H.prototype.m;
|
|
3169
|
+
var I = {
|
|
3172
3170
|
1: "US AG AI AS BB BM BS CA DM DO GD GU JM KN KY LC MP MS PR SX TC TT VC VG VI".split(" "),
|
|
3173
3171
|
7: ["RU", "KZ"],
|
|
3174
3172
|
20: ["EG"],
|
|
@@ -3384,7 +3382,7 @@ var factoryOutput = (() => {
|
|
|
3384
3382
|
995: ["GE"],
|
|
3385
3383
|
996: ["KG"],
|
|
3386
3384
|
998: ["UZ"]
|
|
3387
|
-
},
|
|
3385
|
+
}, Ea = {
|
|
3388
3386
|
AC: [, [
|
|
3389
3387
|
,
|
|
3390
3388
|
,
|
|
@@ -8403,14 +8401,14 @@ var factoryOutput = (() => {
|
|
|
8403
8401
|
], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 888, , , , , , , , 1, [[, "(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "\\d{11}", , , , "12345678901"], , , [, , , , , , , , , [-1]]],
|
|
8404
8402
|
979: [, [, , "[1359]\\d{8}", , , , , , , [9], [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "[1359]\\d{8}", , , , "123456789", , , , [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 979, , , , , , , , 1, [[, "(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]]
|
|
8405
8403
|
};
|
|
8406
|
-
function
|
|
8404
|
+
function J() {
|
|
8407
8405
|
this.g = {};
|
|
8408
8406
|
}
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
return
|
|
8407
|
+
J.h = void 0;
|
|
8408
|
+
J.g = function() {
|
|
8409
|
+
return J.h ? J.h : J.h = new J();
|
|
8412
8410
|
};
|
|
8413
|
-
var
|
|
8411
|
+
var Fa = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "\uFF10": "0", "\uFF11": "1", "\uFF12": "2", "\uFF13": "3", "\uFF14": "4", "\uFF15": "5", "\uFF16": "6", "\uFF17": "7", "\uFF18": "8", "\uFF19": "9", "\u0660": "0", "\u0661": "1", "\u0662": "2", "\u0663": "3", "\u0664": "4", "\u0665": "5", "\u0666": "6", "\u0667": "7", "\u0668": "8", "\u0669": "9", "\u06F0": "0", "\u06F1": "1", "\u06F2": "2", "\u06F3": "3", "\u06F4": "4", "\u06F5": "5", "\u06F6": "6", "\u06F7": "7", "\u06F8": "8", "\u06F9": "9" }, Ga = {
|
|
8414
8412
|
0: "0",
|
|
8415
8413
|
1: "1",
|
|
8416
8414
|
2: "2",
|
|
@@ -8424,7 +8422,7 @@ var factoryOutput = (() => {
|
|
|
8424
8422
|
"+": "+",
|
|
8425
8423
|
"*": "*",
|
|
8426
8424
|
"#": "#"
|
|
8427
|
-
},
|
|
8425
|
+
}, Ha = {
|
|
8428
8426
|
0: "0",
|
|
8429
8427
|
1: "1",
|
|
8430
8428
|
2: "2",
|
|
@@ -8491,48 +8489,48 @@ var factoryOutput = (() => {
|
|
|
8491
8489
|
X: "9",
|
|
8492
8490
|
Y: "9",
|
|
8493
8491
|
Z: "9"
|
|
8494
|
-
},
|
|
8495
|
-
function
|
|
8492
|
+
}, Ia = RegExp("[+\uFF0B]+"), K = RegExp("^[+\uFF0B]+"), Ja = RegExp("([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9])"), Ka = RegExp("[+\uFF0B0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]"), La = /[\\\/] *x/, Ma = RegExp("[^0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9A-Za-z#]+$"), Na = /(?:.*?[A-Za-z]){3}.*/, Oa = RegExp("^\\+([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]|[\\-\\.\\(\\)]?)*[0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]|[\\-\\.\\(\\)]?)*$"), Pa = RegExp("^([A-Za-z0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]+((\\-)*[A-Za-z0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9])*\\.?$");
|
|
8493
|
+
function L(a) {
|
|
8496
8494
|
return "([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]{1," + a + "})";
|
|
8497
8495
|
}
|
|
8498
|
-
function
|
|
8499
|
-
return ";ext=" +
|
|
8500
|
-
}
|
|
8501
|
-
var Qa = new RegExp("(?:" + Pa() + ")$", "i"), Ra = new RegExp("^[0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]{2}$|^[+\uFF0B]*(?:[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E*]*[0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]){3,}[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E*A-Za-z0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]*(?:" + Pa() + ")?$", "i"), Sa = /(\$\d)/, Ta = /^\(?\$1\)?$/;
|
|
8502
|
-
function Ua(a) {
|
|
8503
|
-
return 2 > a.length ? false : N(Ra, a);
|
|
8496
|
+
function Qa() {
|
|
8497
|
+
return ";ext=" + L("20") + "|[ \xA0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xF3))?n?|\uFF45?\uFF58\uFF54\uFF4E?|\u0434\u043E\u0431|anexo)[:\\.\uFF0E]?[ \xA0\\t,-]*" + (L("20") + "#?|[ \xA0\\t,]*(?:[x\uFF58#\uFF03~\uFF5E]|int|\uFF49\uFF4E\uFF54)[:\\.\uFF0E]?[ \xA0\\t,-]*") + (L("9") + "#?|[- ]+") + (L("6") + "#|[ \xA0\\t]*(?:,{2}|;)[:\\.\uFF0E]?[ \xA0\\t,-]*") + (L("15") + "#?|[ \xA0\\t]*(?:,)+[:\\.\uFF0E]?[ \xA0\\t,-]*") + (L("9") + "#?");
|
|
8504
8498
|
}
|
|
8499
|
+
var Ra = new RegExp("(?:" + Qa() + ")$", "i"), Sa = new RegExp("^[0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]{2}$|^[+\uFF0B]*(?:[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E*]*[0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]){3,}[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E*A-Za-z0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]*(?:" + Qa() + ")?$", "i"), Ta = /(\$\d)/, Ua = /^\(?\$1\)?$/;
|
|
8505
8500
|
function Va(a) {
|
|
8506
|
-
return
|
|
8501
|
+
return 2 > a.length ? false : M(Sa, a);
|
|
8507
8502
|
}
|
|
8508
8503
|
function Wa(a) {
|
|
8509
|
-
|
|
8510
|
-
E(a);
|
|
8511
|
-
a.g(b);
|
|
8504
|
+
return M(Na, a) ? N(a, Ha) : N(a, Fa);
|
|
8512
8505
|
}
|
|
8513
8506
|
function Xa(a) {
|
|
8507
|
+
var b = Wa(a.toString());
|
|
8508
|
+
D(a);
|
|
8509
|
+
a.g(b);
|
|
8510
|
+
}
|
|
8511
|
+
function Ya(a) {
|
|
8514
8512
|
return null != a && (1 != x(a, 9) || -1 != u(a, 9)[0]);
|
|
8515
8513
|
}
|
|
8516
|
-
function
|
|
8517
|
-
for (var c = new
|
|
8514
|
+
function N(a, b) {
|
|
8515
|
+
for (var c = new C(), d, e = a.length, f = 0; f < e; ++f) d = a.charAt(f), d = b[d.toUpperCase()], null != d && c.g(d);
|
|
8518
8516
|
return c.toString();
|
|
8519
8517
|
}
|
|
8520
|
-
function
|
|
8521
|
-
return 0 == a.length ||
|
|
8518
|
+
function Za(a) {
|
|
8519
|
+
return 0 == a.length || Ua.test(a);
|
|
8522
8520
|
}
|
|
8523
|
-
function
|
|
8524
|
-
return null != a && isNaN(a) && a.toUpperCase() in
|
|
8521
|
+
function O(a) {
|
|
8522
|
+
return null != a && isNaN(a) && a.toUpperCase() in Ea;
|
|
8525
8523
|
}
|
|
8526
|
-
|
|
8524
|
+
J.prototype.format = function(a, b) {
|
|
8527
8525
|
if (0 == r(a, 2) && q(a, 5)) {
|
|
8528
8526
|
var c = w(a, 5);
|
|
8529
8527
|
if (0 < c.length) return c;
|
|
8530
8528
|
}
|
|
8531
8529
|
c = w(a, 1);
|
|
8532
|
-
var d =
|
|
8533
|
-
if (0 == b) return
|
|
8534
|
-
if (!(c in
|
|
8535
|
-
var e =
|
|
8530
|
+
var d = P(a);
|
|
8531
|
+
if (0 == b) return $a(c, 0, d, "");
|
|
8532
|
+
if (!(c in I)) return d;
|
|
8533
|
+
var e = Q(this, c, R(c));
|
|
8536
8534
|
a = q(a, 3) && 0 != r(a, 3).length ? 3 == b ? ";ext=" + r(a, 3) : q(e, 13) ? r(e, 13) + w(a, 3) : " ext. " + w(a, 3) : "";
|
|
8537
8535
|
a: {
|
|
8538
8536
|
e = 0 == u(e, 20).length || 2 == b ? u(e, 19) : u(e, 20);
|
|
@@ -8540,7 +8538,7 @@ var factoryOutput = (() => {
|
|
|
8540
8538
|
f = e[h];
|
|
8541
8539
|
var l = x(f, 3);
|
|
8542
8540
|
if (0 == l || 0 == d.search(r(f, 3, l - 1))) {
|
|
8543
|
-
if (l = new RegExp(r(f, 1)),
|
|
8541
|
+
if (l = new RegExp(r(f, 1)), M(l, d)) {
|
|
8544
8542
|
e = f;
|
|
8545
8543
|
break a;
|
|
8546
8544
|
}
|
|
@@ -8551,18 +8549,18 @@ var factoryOutput = (() => {
|
|
|
8551
8549
|
null != e && (g = e, e = w(g, 2), f = new RegExp(r(g, 1)), w(
|
|
8552
8550
|
g,
|
|
8553
8551
|
5
|
|
8554
|
-
), g = w(g, 4), d = 2 == b && null != g && 0 < g.length ? d.replace(f, e.replace(
|
|
8555
|
-
return
|
|
8552
|
+
), g = w(g, 4), d = 2 == b && null != g && 0 < g.length ? d.replace(f, e.replace(Ta, g)) : d.replace(f, e), 3 == b && (d = d.replace(RegExp("^[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E]+"), ""), d = d.replace(RegExp("[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E]+", "g"), "-")));
|
|
8553
|
+
return $a(c, b, d, a);
|
|
8556
8554
|
};
|
|
8557
|
-
function
|
|
8558
|
-
return "001" == c ?
|
|
8555
|
+
function Q(a, b, c) {
|
|
8556
|
+
return "001" == c ? S(a, "" + b) : S(a, c);
|
|
8559
8557
|
}
|
|
8560
|
-
function
|
|
8558
|
+
function P(a) {
|
|
8561
8559
|
if (!q(a, 2)) return "";
|
|
8562
8560
|
var b = "" + r(a, 2);
|
|
8563
8561
|
return q(a, 4) && r(a, 4) && 0 < w(a, 8) ? Array(w(a, 8) + 1).join("0") + b : b;
|
|
8564
8562
|
}
|
|
8565
|
-
function
|
|
8563
|
+
function $a(a, b, c, d) {
|
|
8566
8564
|
switch (b) {
|
|
8567
8565
|
case 0:
|
|
8568
8566
|
return "+" + a + c + d;
|
|
@@ -8574,7 +8572,7 @@ var factoryOutput = (() => {
|
|
|
8574
8572
|
return c + d;
|
|
8575
8573
|
}
|
|
8576
8574
|
}
|
|
8577
|
-
function
|
|
8575
|
+
function T(a, b) {
|
|
8578
8576
|
switch (b) {
|
|
8579
8577
|
case 4:
|
|
8580
8578
|
return r(a, 5);
|
|
@@ -8601,42 +8599,42 @@ var factoryOutput = (() => {
|
|
|
8601
8599
|
return r(a, 1);
|
|
8602
8600
|
}
|
|
8603
8601
|
}
|
|
8604
|
-
function
|
|
8605
|
-
return
|
|
8602
|
+
function ab(a, b) {
|
|
8603
|
+
return U(a, r(b, 1)) ? U(a, r(b, 5)) ? 4 : U(a, r(b, 4)) ? 3 : U(a, r(b, 6)) ? 5 : U(a, r(b, 8)) ? 6 : U(a, r(b, 7)) ? 7 : U(a, r(b, 21)) ? 8 : U(a, r(b, 25)) ? 9 : U(a, r(b, 28)) ? 10 : U(a, r(b, 2)) ? r(b, 18) || U(a, r(b, 3)) ? 2 : 0 : !r(b, 18) && U(a, r(b, 3)) ? 1 : -1 : -1;
|
|
8606
8604
|
}
|
|
8607
|
-
function
|
|
8605
|
+
function S(a, b) {
|
|
8608
8606
|
if (null == b) return null;
|
|
8609
8607
|
b = b.toUpperCase();
|
|
8610
8608
|
var c = a.g[b];
|
|
8611
8609
|
if (null == c) {
|
|
8612
|
-
c =
|
|
8610
|
+
c = Ea[b];
|
|
8613
8611
|
if (null == c) return null;
|
|
8614
|
-
c = new
|
|
8612
|
+
c = new B().g(G.m(), c);
|
|
8615
8613
|
a.g[b] = c;
|
|
8616
8614
|
}
|
|
8617
8615
|
return c;
|
|
8618
8616
|
}
|
|
8619
|
-
function
|
|
8617
|
+
function U(a, b) {
|
|
8620
8618
|
var c = a.length;
|
|
8621
|
-
return 0 < x(b, 9) && -1 == u(b, 9).indexOf(c) ? false :
|
|
8619
|
+
return 0 < x(b, 9) && -1 == u(b, 9).indexOf(c) ? false : M(w(b, 2), a);
|
|
8622
8620
|
}
|
|
8623
|
-
function
|
|
8621
|
+
function bb(a, b) {
|
|
8624
8622
|
if (null == b) return null;
|
|
8625
8623
|
var c = w(b, 1);
|
|
8626
|
-
c =
|
|
8624
|
+
c = I[c];
|
|
8627
8625
|
if (null == c) a = null;
|
|
8628
8626
|
else if (1 == c.length) a = c[0];
|
|
8629
8627
|
else a: {
|
|
8630
|
-
b =
|
|
8628
|
+
b = P(b);
|
|
8631
8629
|
for (var d, e = c.length, f = 0; f < e; f++) {
|
|
8632
8630
|
d = c[f];
|
|
8633
|
-
var g =
|
|
8631
|
+
var g = S(a, d);
|
|
8634
8632
|
if (q(g, 23)) {
|
|
8635
8633
|
if (0 == b.search(r(g, 23))) {
|
|
8636
8634
|
a = d;
|
|
8637
8635
|
break a;
|
|
8638
8636
|
}
|
|
8639
|
-
} else if (-1 !=
|
|
8637
|
+
} else if (-1 != ab(b, g)) {
|
|
8640
8638
|
a = d;
|
|
8641
8639
|
break a;
|
|
8642
8640
|
}
|
|
@@ -8645,92 +8643,92 @@ var factoryOutput = (() => {
|
|
|
8645
8643
|
}
|
|
8646
8644
|
return a;
|
|
8647
8645
|
}
|
|
8648
|
-
function
|
|
8649
|
-
a =
|
|
8646
|
+
function R(a) {
|
|
8647
|
+
a = I[a];
|
|
8650
8648
|
return null == a ? "ZZ" : a[0];
|
|
8651
8649
|
}
|
|
8652
|
-
function
|
|
8653
|
-
a =
|
|
8650
|
+
function cb(a, b) {
|
|
8651
|
+
a = S(a, b);
|
|
8654
8652
|
if (null == a) throw Error("Invalid region code: " + b);
|
|
8655
8653
|
return w(a, 10);
|
|
8656
8654
|
}
|
|
8657
|
-
function
|
|
8658
|
-
var e =
|
|
8655
|
+
function V(a, b, c, d) {
|
|
8656
|
+
var e = T(c, d), f = 0 == x(e, 9) ? u(r(c, 1), 9) : u(e, 9);
|
|
8659
8657
|
e = u(e, 10);
|
|
8660
|
-
if (2 == d) if (
|
|
8661
|
-
else return
|
|
8658
|
+
if (2 == d) if (Ya(T(c, 0))) a = T(c, 1), Ya(a) && (f = f.concat(0 == x(a, 9) ? u(r(c, 1), 9) : u(a, 9)), f.sort(), 0 == e.length ? e = u(a, 10) : (e = e.concat(u(a, 10)), e.sort()));
|
|
8659
|
+
else return V(a, b, c, 1);
|
|
8662
8660
|
if (-1 == f[0]) return 5;
|
|
8663
8661
|
b = b.length;
|
|
8664
8662
|
if (-1 < e.indexOf(b)) return 4;
|
|
8665
8663
|
c = f[0];
|
|
8666
8664
|
return c == b ? 0 : c > b ? 2 : f[f.length - 1] < b ? 3 : -1 < f.indexOf(b, 1) ? 0 : 5;
|
|
8667
8665
|
}
|
|
8668
|
-
function
|
|
8669
|
-
var d =
|
|
8666
|
+
function W(a, b, c) {
|
|
8667
|
+
var d = P(b);
|
|
8670
8668
|
b = w(b, 1);
|
|
8671
|
-
if (!(b in
|
|
8672
|
-
b =
|
|
8673
|
-
return
|
|
8669
|
+
if (!(b in I)) return 1;
|
|
8670
|
+
b = Q(a, b, R(b));
|
|
8671
|
+
return V(a, d, b, c);
|
|
8674
8672
|
}
|
|
8675
|
-
function
|
|
8673
|
+
function db(a, b) {
|
|
8676
8674
|
a = a.toString();
|
|
8677
8675
|
if (0 == a.length || "0" == a.charAt(0)) return 0;
|
|
8678
|
-
for (var c, d = a.length, e = 1; 3 >= e && e <= d; ++e) if (c = parseInt(a.substring(0, e), 10), c in
|
|
8676
|
+
for (var c, d = a.length, e = 1; 3 >= e && e <= d; ++e) if (c = parseInt(a.substring(0, e), 10), c in I) return b.g(a.substring(e)), c;
|
|
8679
8677
|
return 0;
|
|
8680
8678
|
}
|
|
8681
|
-
function
|
|
8679
|
+
function eb(a, b, c, d, e, f) {
|
|
8682
8680
|
if (0 == b.length) return 0;
|
|
8683
|
-
b = new
|
|
8681
|
+
b = new C(b);
|
|
8684
8682
|
var g;
|
|
8685
8683
|
null != c && (g = r(c, 11));
|
|
8686
8684
|
null == g && (g = "NonMatch");
|
|
8687
8685
|
var h = b.toString();
|
|
8688
8686
|
if (0 == h.length) g = 20;
|
|
8689
|
-
else if (
|
|
8687
|
+
else if (K.test(h)) h = h.replace(K, ""), D(b), b.g(Wa(h)), g = 1;
|
|
8690
8688
|
else {
|
|
8691
8689
|
h = new RegExp(g);
|
|
8692
|
-
|
|
8690
|
+
Xa(b);
|
|
8693
8691
|
g = b.toString();
|
|
8694
8692
|
if (0 == g.search(h)) {
|
|
8695
8693
|
h = g.match(h)[0].length;
|
|
8696
|
-
var l = g.substring(h).match(
|
|
8697
|
-
l && null != l[1] && 0 < l[1].length && "0" ==
|
|
8694
|
+
var l = g.substring(h).match(Ja);
|
|
8695
|
+
l && null != l[1] && 0 < l[1].length && "0" == N(l[1], Fa) ? g = false : (D(b), b.g(g.substring(h)), g = true);
|
|
8698
8696
|
} else g = false;
|
|
8699
8697
|
g = g ? 5 : 20;
|
|
8700
8698
|
}
|
|
8701
8699
|
e && t(f, 6, g);
|
|
8702
8700
|
if (20 != g) {
|
|
8703
8701
|
if (2 >= b.h.length) throw Error("Phone number too short after IDD");
|
|
8704
|
-
a =
|
|
8702
|
+
a = db(b, d);
|
|
8705
8703
|
if (0 != a) return t(f, 1, a), a;
|
|
8706
8704
|
throw Error("Invalid country calling code");
|
|
8707
8705
|
}
|
|
8708
|
-
if (null != c && (g = w(c, 10), h = "" + g, l = b.toString(), 0 == l.lastIndexOf(h, 0) && (h = new
|
|
8706
|
+
if (null != c && (g = w(c, 10), h = "" + g, l = b.toString(), 0 == l.lastIndexOf(h, 0) && (h = new C(l.substring(h.length)), l = r(c, 1), l = new RegExp(w(l, 2)), fb(h, c, null), h = h.toString(), !M(l, b.toString()) && M(l, h) || 3 == V(a, b.toString(), c, -1)))) return d.g(h), e && t(f, 6, 10), t(f, 1, g), g;
|
|
8709
8707
|
t(f, 1, 0);
|
|
8710
8708
|
return 0;
|
|
8711
8709
|
}
|
|
8712
|
-
function
|
|
8710
|
+
function fb(a, b, c) {
|
|
8713
8711
|
var d = a.toString(), e = d.length, f = r(b, 15);
|
|
8714
8712
|
if (0 != e && null != f && 0 != f.length) {
|
|
8715
8713
|
var g = new RegExp("^(?:" + f + ")");
|
|
8716
8714
|
if (e = g.exec(d)) {
|
|
8717
8715
|
f = new RegExp(w(r(b, 1), 2));
|
|
8718
|
-
var h =
|
|
8716
|
+
var h = M(f, d), l = e.length - 1;
|
|
8719
8717
|
b = r(b, 16);
|
|
8720
8718
|
if (null == b || 0 == b.length || null == e[l] || 0 == e[l].length) {
|
|
8721
|
-
if (!h ||
|
|
8722
|
-
} else if (d = d.replace(g, b), !h ||
|
|
8719
|
+
if (!h || M(f, d.substring(e[0].length))) null != c && 0 < l && null != e[l] && c.g(e[1]), a.set(d.substring(e[0].length));
|
|
8720
|
+
} else if (d = d.replace(g, b), !h || M(f, d)) null != c && 0 < l && c.g(e[1]), a.set(d);
|
|
8723
8721
|
}
|
|
8724
8722
|
}
|
|
8725
8723
|
}
|
|
8726
|
-
function
|
|
8727
|
-
if (!
|
|
8728
|
-
return
|
|
8724
|
+
function X(a, b, c) {
|
|
8725
|
+
if (!O(c) && 0 < b.length && "+" != b.charAt(0)) throw Error("Invalid country calling code");
|
|
8726
|
+
return gb(a, b, c, true);
|
|
8729
8727
|
}
|
|
8730
|
-
function
|
|
8728
|
+
function gb(a, b, c, d) {
|
|
8731
8729
|
if (null == b) throw Error("The string supplied did not seem to be a phone number");
|
|
8732
8730
|
if (250 < b.length) throw Error("The string supplied is too long to be a phone number");
|
|
8733
|
-
var e = new
|
|
8731
|
+
var e = new C();
|
|
8734
8732
|
var f = b.indexOf(";phone-context=");
|
|
8735
8733
|
if (-1 === f) f = null;
|
|
8736
8734
|
else if (f += 15, f >= b.length) f = "";
|
|
@@ -8739,24 +8737,24 @@ var factoryOutput = (() => {
|
|
|
8739
8737
|
f = -1 !== g ? b.substring(f, g) : b.substring(f);
|
|
8740
8738
|
}
|
|
8741
8739
|
var h = f;
|
|
8742
|
-
null == h ? g = true : 0 === h.length ? g = false : (g =
|
|
8740
|
+
null == h ? g = true : 0 === h.length ? g = false : (g = Oa.exec(h), h = Pa.exec(h), g = null !== g || null !== h);
|
|
8743
8741
|
if (!g) throw Error("The string supplied did not seem to be a phone number");
|
|
8744
|
-
null != f ? ("+" === f.charAt(0) && e.g(f), f = b.indexOf("tel:"), e.g(b.substring(0 <= f ? f + 4 : 0, b.indexOf(";phone-context=")))) : (f = e.g, g = b ?? "", h = g.search(
|
|
8742
|
+
null != f ? ("+" === f.charAt(0) && e.g(f), f = b.indexOf("tel:"), e.g(b.substring(0 <= f ? f + 4 : 0, b.indexOf(";phone-context=")))) : (f = e.g, g = b ?? "", h = g.search(Ka), 0 <= h ? (g = g.substring(h), g = g.replace(Ma, ""), h = g.search(La), 0 <= h && (g = g.substring(0, h))) : g = "", f.call(e, g));
|
|
8745
8743
|
f = e.toString();
|
|
8746
8744
|
g = f.indexOf(";isub=");
|
|
8747
|
-
0 < g && (
|
|
8748
|
-
if (!
|
|
8745
|
+
0 < g && (D(e), e.g(f.substring(0, g)));
|
|
8746
|
+
if (!Va(e.toString())) throw Error("The string supplied did not seem to be a phone number");
|
|
8749
8747
|
f = e.toString();
|
|
8750
|
-
if (!(
|
|
8751
|
-
f = new
|
|
8748
|
+
if (!(O(c) || null != f && 0 < f.length && K.test(f))) throw Error("Invalid country calling code");
|
|
8749
|
+
f = new H();
|
|
8752
8750
|
d && t(f, 5, b);
|
|
8753
8751
|
a: {
|
|
8754
8752
|
b = e.toString();
|
|
8755
|
-
g = b.search(
|
|
8756
|
-
if (0 <= g &&
|
|
8757
|
-
h = b.match(
|
|
8753
|
+
g = b.search(Ra);
|
|
8754
|
+
if (0 <= g && Va(b.substring(0, g))) {
|
|
8755
|
+
h = b.match(Ra);
|
|
8758
8756
|
for (var l = h.length, A = 1; A < l; ++A) if (null != h[A] && 0 < h[A].length) {
|
|
8759
|
-
|
|
8757
|
+
D(e);
|
|
8760
8758
|
e.g(b.substring(0, g));
|
|
8761
8759
|
b = h[A];
|
|
8762
8760
|
break a;
|
|
@@ -8765,24 +8763,24 @@ var factoryOutput = (() => {
|
|
|
8765
8763
|
b = "";
|
|
8766
8764
|
}
|
|
8767
8765
|
0 < b.length && t(f, 3, b);
|
|
8768
|
-
g =
|
|
8769
|
-
b = new
|
|
8766
|
+
g = S(a, c);
|
|
8767
|
+
b = new C();
|
|
8770
8768
|
h = 0;
|
|
8771
8769
|
l = e.toString();
|
|
8772
8770
|
try {
|
|
8773
|
-
h =
|
|
8774
|
-
} catch (
|
|
8775
|
-
if ("Invalid country calling code" ==
|
|
8776
|
-
if (l = l.replace(
|
|
8777
|
-
} else throw
|
|
8771
|
+
h = eb(a, l, g, b, d, f);
|
|
8772
|
+
} catch (da) {
|
|
8773
|
+
if ("Invalid country calling code" == da.message && K.test(l)) {
|
|
8774
|
+
if (l = l.replace(K, ""), h = eb(a, l, g, b, d, f), 0 == h) throw da;
|
|
8775
|
+
} else throw da;
|
|
8778
8776
|
}
|
|
8779
|
-
0 != h ? (e =
|
|
8777
|
+
0 != h ? (e = R(h), e != c && (g = Q(a, h, e))) : (Xa(e), b.g(e.toString()), null != c ? (h = w(g, 10), t(
|
|
8780
8778
|
f,
|
|
8781
8779
|
1,
|
|
8782
8780
|
h
|
|
8783
8781
|
)) : d && (delete f.h[6], f.g && delete f.g[6]));
|
|
8784
8782
|
if (2 > b.h.length) throw Error("The string supplied is too short to be a phone number");
|
|
8785
|
-
null != g && (c = new
|
|
8783
|
+
null != g && (c = new C(), e = new C(b.toString()), fb(e, g, c), a = V(a, e.toString(), g, -1), 2 != a && 4 != a && 5 != a && (b = e, d && 0 < c.toString().length && t(f, 7, c.toString())));
|
|
8786
8784
|
d = b.toString();
|
|
8787
8785
|
a = d.length;
|
|
8788
8786
|
if (2 > a) throw Error("The string supplied is too short to be a phone number");
|
|
@@ -8795,70 +8793,70 @@ var factoryOutput = (() => {
|
|
|
8795
8793
|
t(f, 2, parseInt(d, 10));
|
|
8796
8794
|
return f;
|
|
8797
8795
|
}
|
|
8798
|
-
function
|
|
8796
|
+
function M(a, b) {
|
|
8799
8797
|
return (a = "string" == typeof a ? b.match("^(?:" + a + ")$") : b.match(a)) && a[0].length == b.length ? true : false;
|
|
8800
8798
|
}
|
|
8801
8799
|
;
|
|
8802
|
-
function
|
|
8800
|
+
function hb(a) {
|
|
8803
8801
|
this.fa = RegExp("\u2008");
|
|
8804
8802
|
this.ja = "";
|
|
8805
|
-
this.v = new
|
|
8803
|
+
this.v = new C();
|
|
8806
8804
|
this.da = "";
|
|
8807
|
-
this.s = new
|
|
8808
|
-
this.ba = new
|
|
8805
|
+
this.s = new C();
|
|
8806
|
+
this.ba = new C();
|
|
8809
8807
|
this.u = true;
|
|
8810
8808
|
this.ea = this.ca = this.la = false;
|
|
8811
|
-
this.ga =
|
|
8809
|
+
this.ga = J.g();
|
|
8812
8810
|
this.$ = 0;
|
|
8813
|
-
this.h = new
|
|
8811
|
+
this.h = new C();
|
|
8814
8812
|
this.ha = false;
|
|
8815
8813
|
this.o = "";
|
|
8816
|
-
this.g = new
|
|
8814
|
+
this.g = new C();
|
|
8817
8815
|
this.j = [];
|
|
8818
8816
|
this.ka = a;
|
|
8819
|
-
this.l =
|
|
8817
|
+
this.l = ib(this, this.ka);
|
|
8820
8818
|
}
|
|
8821
|
-
var
|
|
8822
|
-
t(
|
|
8823
|
-
var
|
|
8824
|
-
function
|
|
8819
|
+
var jb = new G();
|
|
8820
|
+
t(jb, 11, "NA");
|
|
8821
|
+
var kb = RegExp("^[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E]*\\$1[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E]*(\\$\\d[-x\u2010-\u2015\u2212\u30FC\uFF0D-\uFF0F \xA0\xAD\u200B\u2060\u3000()\uFF08\uFF09\uFF3B\uFF3D.\\[\\]/~\u2053\u223C\uFF5E]*)*$"), lb = /[- ]/;
|
|
8822
|
+
function ib(a, b) {
|
|
8825
8823
|
var c = a.ga;
|
|
8826
|
-
b =
|
|
8827
|
-
a =
|
|
8828
|
-
return null != a ? a :
|
|
8824
|
+
b = O(b) ? cb(c, b) : 0;
|
|
8825
|
+
a = S(a.ga, R(b));
|
|
8826
|
+
return null != a ? a : jb;
|
|
8829
8827
|
}
|
|
8830
|
-
function
|
|
8828
|
+
function mb(a) {
|
|
8831
8829
|
for (var b = a.j.length, c = 0; c < b; ++c) {
|
|
8832
8830
|
var d = a.j[c], e = w(d, 1);
|
|
8833
8831
|
if (a.da == e) return false;
|
|
8834
8832
|
var f = a;
|
|
8835
8833
|
var g = d, h = w(g, 1);
|
|
8836
|
-
|
|
8834
|
+
D(f.v);
|
|
8837
8835
|
var l = f;
|
|
8838
8836
|
g = w(g, 2);
|
|
8839
8837
|
var A = "999999999999999".match(h)[0];
|
|
8840
8838
|
A.length < l.g.h.length ? l = "" : (l = A.replace(new RegExp(h, "g"), g), l = l.replace(RegExp("9", "g"), "\u2008"));
|
|
8841
8839
|
0 < l.length ? (f.v.g(l), f = true) : f = false;
|
|
8842
|
-
if (f) return a.da = e, a.ha =
|
|
8840
|
+
if (f) return a.da = e, a.ha = lb.test(r(d, 4)), a.$ = 0, true;
|
|
8843
8841
|
}
|
|
8844
8842
|
return a.u = false;
|
|
8845
8843
|
}
|
|
8846
|
-
function
|
|
8844
|
+
function nb(a, b) {
|
|
8847
8845
|
for (var c = [], d = b.length - 3, e = a.j.length, f = 0; f < e; ++f) {
|
|
8848
8846
|
var g = a.j[f];
|
|
8849
8847
|
0 == x(g, 3) ? c.push(a.j[f]) : (g = r(g, 3, Math.min(d, x(g, 3) - 1)), 0 == b.search(g) && c.push(a.j[f]));
|
|
8850
8848
|
}
|
|
8851
8849
|
a.j = c;
|
|
8852
8850
|
}
|
|
8853
|
-
function
|
|
8851
|
+
function ob(a, b) {
|
|
8854
8852
|
a.s.g(b);
|
|
8855
8853
|
var c = b;
|
|
8856
|
-
|
|
8854
|
+
Ja.test(c) || 1 == a.s.h.length && Ia.test(c) ? ("+" == b ? (c = b, a.ba.g(b)) : (c = Fa[b], a.ba.g(c), a.g.g(c)), b = c) : (a.u = false, a.la = true);
|
|
8857
8855
|
if (!a.u) {
|
|
8858
8856
|
if (!a.la) {
|
|
8859
|
-
if (
|
|
8860
|
-
if (
|
|
8861
|
-
} else if (0 < a.o.length && (b = a.g.toString(),
|
|
8857
|
+
if (pb(a)) {
|
|
8858
|
+
if (qb(a)) return rb(a);
|
|
8859
|
+
} else if (0 < a.o.length && (b = a.g.toString(), D(a.g), a.g.g(a.o), a.g.g(b), b = a.h.toString(), c = b.lastIndexOf(a.o), D(a.h), a.h.g(b.substring(0, c))), a.o != sb(a)) return a.h.g(" "), rb(a);
|
|
8862
8860
|
}
|
|
8863
8861
|
return a.s.toString();
|
|
8864
8862
|
}
|
|
@@ -8868,93 +8866,93 @@ var factoryOutput = (() => {
|
|
|
8868
8866
|
case 2:
|
|
8869
8867
|
return a.s.toString();
|
|
8870
8868
|
case 3:
|
|
8871
|
-
if (
|
|
8872
|
-
else return a.o =
|
|
8869
|
+
if (pb(a)) a.ea = true;
|
|
8870
|
+
else return a.o = sb(a), tb(a);
|
|
8873
8871
|
default:
|
|
8874
|
-
if (a.ea) return
|
|
8872
|
+
if (a.ea) return qb(a) && (a.ea = false), a.h.toString() + a.g.toString();
|
|
8875
8873
|
if (0 < a.j.length) {
|
|
8876
|
-
b =
|
|
8877
|
-
c =
|
|
8874
|
+
b = ub(a, b);
|
|
8875
|
+
c = vb(a);
|
|
8878
8876
|
if (0 < c.length) return c;
|
|
8879
|
-
|
|
8880
|
-
return
|
|
8877
|
+
nb(a, a.g.toString());
|
|
8878
|
+
return mb(a) ? wb(a) : a.u ? Y(a, b) : a.s.toString();
|
|
8881
8879
|
}
|
|
8882
|
-
return
|
|
8880
|
+
return tb(a);
|
|
8883
8881
|
}
|
|
8884
8882
|
}
|
|
8885
|
-
function
|
|
8883
|
+
function rb(a) {
|
|
8886
8884
|
a.u = true;
|
|
8887
8885
|
a.ea = false;
|
|
8888
8886
|
a.j = [];
|
|
8889
8887
|
a.$ = 0;
|
|
8890
|
-
|
|
8888
|
+
D(a.v);
|
|
8891
8889
|
a.da = "";
|
|
8892
|
-
return
|
|
8890
|
+
return tb(a);
|
|
8893
8891
|
}
|
|
8894
|
-
function
|
|
8892
|
+
function vb(a) {
|
|
8895
8893
|
for (var b = a.g.toString(), c = a.j.length, d = 0; d < c; ++d) {
|
|
8896
8894
|
var e = a.j[d], f = w(e, 1);
|
|
8897
|
-
if (new RegExp("^(?:" + f + ")$").test(b) && (a.ha =
|
|
8895
|
+
if (new RegExp("^(?:" + f + ")$").test(b) && (a.ha = lb.test(r(e, 4)), e = b.replace(new RegExp(f, "g"), r(e, 2)), e = Y(a, e), N(e, Ga) == a.ba)) return e;
|
|
8898
8896
|
}
|
|
8899
8897
|
return "";
|
|
8900
8898
|
}
|
|
8901
|
-
function
|
|
8899
|
+
function Y(a, b) {
|
|
8902
8900
|
var c = a.h.h.length;
|
|
8903
8901
|
return a.ha && 0 < c && " " != a.h.toString().charAt(c - 1) ? a.h + " " + b : a.h + b;
|
|
8904
8902
|
}
|
|
8905
|
-
function
|
|
8903
|
+
function tb(a) {
|
|
8906
8904
|
var b = a.g.toString();
|
|
8907
8905
|
if (3 <= b.length) {
|
|
8908
8906
|
for (var c = a.ca && 0 == a.o.length && 0 < x(a.l, 20) ? u(a.l, 20) : u(a.l, 19), d = c.length, e = 0; e < d; ++e) {
|
|
8909
8907
|
var f = c[e];
|
|
8910
|
-
0 < a.o.length &&
|
|
8908
|
+
0 < a.o.length && Za(w(f, 4)) && !r(f, 6) && !q(f, 5) || (0 != a.o.length || a.ca || Za(w(f, 4)) || r(f, 6)) && kb.test(w(f, 2)) && a.j.push(f);
|
|
8911
8909
|
}
|
|
8912
|
-
|
|
8913
|
-
b =
|
|
8914
|
-
return 0 < b.length ? b :
|
|
8910
|
+
nb(a, b);
|
|
8911
|
+
b = vb(a);
|
|
8912
|
+
return 0 < b.length ? b : mb(a) ? wb(a) : a.s.toString();
|
|
8915
8913
|
}
|
|
8916
|
-
return
|
|
8914
|
+
return Y(a, b);
|
|
8917
8915
|
}
|
|
8918
|
-
function
|
|
8916
|
+
function wb(a) {
|
|
8919
8917
|
var b = a.g.toString(), c = b.length;
|
|
8920
8918
|
if (0 < c) {
|
|
8921
|
-
for (var d = "", e = 0; e < c; e++) d =
|
|
8922
|
-
return a.u ?
|
|
8919
|
+
for (var d = "", e = 0; e < c; e++) d = ub(a, b.charAt(e));
|
|
8920
|
+
return a.u ? Y(a, d) : a.s.toString();
|
|
8923
8921
|
}
|
|
8924
8922
|
return a.h.toString();
|
|
8925
8923
|
}
|
|
8926
|
-
function
|
|
8924
|
+
function sb(a) {
|
|
8927
8925
|
var b = a.g.toString(), c = 0;
|
|
8928
8926
|
if (1 != r(a.l, 10)) var d = false;
|
|
8929
8927
|
else d = a.g.toString(), d = "1" == d.charAt(0) && "0" != d.charAt(1) && "1" != d.charAt(1);
|
|
8930
8928
|
d ? (c = 1, a.h.g("1").g(" "), a.ca = true) : q(a.l, 15) && (d = new RegExp("^(?:" + r(a.l, 15) + ")"), d = b.match(d), null != d && null != d[0] && 0 < d[0].length && (a.ca = true, c = d[0].length, a.h.g(b.substring(0, c))));
|
|
8931
|
-
|
|
8929
|
+
D(a.g);
|
|
8932
8930
|
a.g.g(b.substring(c));
|
|
8933
8931
|
return b.substring(0, c);
|
|
8934
8932
|
}
|
|
8935
|
-
function
|
|
8933
|
+
function pb(a) {
|
|
8936
8934
|
var b = a.ba.toString(), c = new RegExp("^(?:\\+|" + r(a.l, 11) + ")");
|
|
8937
8935
|
c = b.match(c);
|
|
8938
|
-
return null != c && null != c[0] && 0 < c[0].length ? (a.ca = true, c = c[0].length,
|
|
8936
|
+
return null != c && null != c[0] && 0 < c[0].length ? (a.ca = true, c = c[0].length, D(a.g), a.g.g(b.substring(c)), D(a.h), a.h.g(b.substring(0, c)), "+" != b.charAt(0) && a.h.g(" "), true) : false;
|
|
8939
8937
|
}
|
|
8940
|
-
function
|
|
8938
|
+
function qb(a) {
|
|
8941
8939
|
if (0 == a.g.h.length) return false;
|
|
8942
|
-
var b = new
|
|
8940
|
+
var b = new C(), c = db(a.g, b);
|
|
8943
8941
|
if (0 == c) return false;
|
|
8944
|
-
|
|
8942
|
+
D(a.g);
|
|
8945
8943
|
a.g.g(b.toString());
|
|
8946
|
-
b =
|
|
8947
|
-
"001" == b ? a.l =
|
|
8944
|
+
b = R(c);
|
|
8945
|
+
"001" == b ? a.l = S(a.ga, "" + c) : b != a.ka && (a.l = ib(a, b));
|
|
8948
8946
|
a.h.g("" + c).g(" ");
|
|
8949
8947
|
a.o = "";
|
|
8950
8948
|
return true;
|
|
8951
8949
|
}
|
|
8952
|
-
function
|
|
8950
|
+
function ub(a, b) {
|
|
8953
8951
|
var c = a.v.toString();
|
|
8954
8952
|
if (0 <= c.substring(a.$).search(a.fa)) {
|
|
8955
8953
|
var d = c.search(a.fa);
|
|
8956
8954
|
b = c.replace(a.fa, b);
|
|
8957
|
-
|
|
8955
|
+
D(a.v);
|
|
8958
8956
|
a.v.g(b);
|
|
8959
8957
|
a.$ = d;
|
|
8960
8958
|
return b.substring(0, a.$ + 1);
|
|
@@ -8964,13 +8962,13 @@ var factoryOutput = (() => {
|
|
|
8964
8962
|
return a.s.toString();
|
|
8965
8963
|
}
|
|
8966
8964
|
;
|
|
8967
|
-
const
|
|
8965
|
+
const Z = { FIXED_LINE: 0, MOBILE: 1, FIXED_LINE_OR_MOBILE: 2, TOLL_FREE: 3, PREMIUM_RATE: 4, SHARED_COST: 5, VOIP: 6, PERSONAL_NUMBER: 7, PAGER: 8, UAN: 9, VOICEMAIL: 10, UNKNOWN: -1 };
|
|
8968
8966
|
m("intlTelInputUtilsTemp", {});
|
|
8969
8967
|
m("intlTelInputUtilsTemp.formatNumberAsYouType", (a, b) => {
|
|
8970
8968
|
try {
|
|
8971
|
-
const c = a.replace(/[^+0-9]/g, ""), d = new
|
|
8969
|
+
const c = a.replace(/[^+0-9]/g, ""), d = new hb(b);
|
|
8972
8970
|
b = "";
|
|
8973
|
-
for (let e = 0; e < c.length; e++) d.ja =
|
|
8971
|
+
for (let e = 0; e < c.length; e++) d.ja = ob(d, c.charAt(e)), b = d.ja;
|
|
8974
8972
|
return b;
|
|
8975
8973
|
} catch (c) {
|
|
8976
8974
|
return a;
|
|
@@ -8978,8 +8976,8 @@ var factoryOutput = (() => {
|
|
|
8978
8976
|
});
|
|
8979
8977
|
m("intlTelInputUtilsTemp.formatNumber", (a, b, c) => {
|
|
8980
8978
|
try {
|
|
8981
|
-
const e =
|
|
8982
|
-
var d =
|
|
8979
|
+
const e = J.g(), f = X(e, a, b);
|
|
8980
|
+
var d = W(e, f, -1);
|
|
8983
8981
|
return 0 == d || 4 == d ? e.format(f, "undefined" === typeof c ? 0 : c) : a;
|
|
8984
8982
|
} catch (e) {
|
|
8985
8983
|
return a;
|
|
@@ -8987,15 +8985,15 @@ var factoryOutput = (() => {
|
|
|
8987
8985
|
});
|
|
8988
8986
|
m("intlTelInputUtilsTemp.getExampleNumber", (a, b, c, d) => {
|
|
8989
8987
|
try {
|
|
8990
|
-
const l =
|
|
8988
|
+
const l = J.g();
|
|
8991
8989
|
a: {
|
|
8992
8990
|
var e = l;
|
|
8993
|
-
if (
|
|
8994
|
-
var f =
|
|
8991
|
+
if (O(a)) {
|
|
8992
|
+
var f = T(S(e, a), c);
|
|
8995
8993
|
try {
|
|
8996
8994
|
if (q(f, 6)) {
|
|
8997
8995
|
var g = r(f, 6);
|
|
8998
|
-
var h =
|
|
8996
|
+
var h = gb(e, g, a, false);
|
|
8999
8997
|
break a;
|
|
9000
8998
|
}
|
|
9001
8999
|
} catch (A) {
|
|
@@ -9010,19 +9008,19 @@ var factoryOutput = (() => {
|
|
|
9010
9008
|
});
|
|
9011
9009
|
m("intlTelInputUtilsTemp.getExtension", (a, b) => {
|
|
9012
9010
|
try {
|
|
9013
|
-
return r(
|
|
9011
|
+
return r(X(J.g(), a, b), 3);
|
|
9014
9012
|
} catch (c) {
|
|
9015
9013
|
return "";
|
|
9016
9014
|
}
|
|
9017
9015
|
});
|
|
9018
9016
|
m("intlTelInputUtilsTemp.getNumberType", (a, b) => {
|
|
9019
9017
|
try {
|
|
9020
|
-
const g =
|
|
9021
|
-
var c =
|
|
9018
|
+
const g = J.g(), h = X(g, a, b);
|
|
9019
|
+
var c = bb(g, h), d = Q(g, w(h, 1), c);
|
|
9022
9020
|
if (null == d) var e = -1;
|
|
9023
9021
|
else {
|
|
9024
|
-
var f =
|
|
9025
|
-
e =
|
|
9022
|
+
var f = P(h);
|
|
9023
|
+
e = ab(f, d);
|
|
9026
9024
|
}
|
|
9027
9025
|
return e;
|
|
9028
9026
|
} catch (g) {
|
|
@@ -9031,22 +9029,22 @@ var factoryOutput = (() => {
|
|
|
9031
9029
|
});
|
|
9032
9030
|
m("intlTelInputUtilsTemp.getValidationError", (a, b) => {
|
|
9033
9031
|
try {
|
|
9034
|
-
const c =
|
|
9035
|
-
return
|
|
9032
|
+
const c = J.g(), d = X(c, a, b);
|
|
9033
|
+
return W(c, d, -1);
|
|
9036
9034
|
} catch (c) {
|
|
9037
9035
|
return "Invalid country calling code" === c.message ? 1 : 3 >= a.length || "Phone number too short after IDD" === c.message || "The string supplied is too short to be a phone number" === c.message ? 2 : "The string supplied is too long to be a phone number" === c.message ? 3 : -99;
|
|
9038
9036
|
}
|
|
9039
9037
|
});
|
|
9040
9038
|
m("intlTelInputUtilsTemp.isValidNumber", (a, b) => {
|
|
9041
9039
|
try {
|
|
9042
|
-
const l =
|
|
9043
|
-
var c =
|
|
9040
|
+
const l = J.g();
|
|
9041
|
+
var c = X(l, a, b), d = bb(l, c);
|
|
9044
9042
|
a = l;
|
|
9045
|
-
var e = w(c, 1), f =
|
|
9046
|
-
if (null == f || "001" != d && e !=
|
|
9043
|
+
var e = w(c, 1), f = Q(a, e, d);
|
|
9044
|
+
if (null == f || "001" != d && e != cb(a, d)) var g = false;
|
|
9047
9045
|
else {
|
|
9048
|
-
var h =
|
|
9049
|
-
g = -1 !=
|
|
9046
|
+
var h = P(c);
|
|
9047
|
+
g = -1 != ab(h, f);
|
|
9050
9048
|
}
|
|
9051
9049
|
return g;
|
|
9052
9050
|
} catch (l) {
|
|
@@ -9055,21 +9053,29 @@ var factoryOutput = (() => {
|
|
|
9055
9053
|
});
|
|
9056
9054
|
m("intlTelInputUtilsTemp.isPossibleNumber", (a, b, c) => {
|
|
9057
9055
|
try {
|
|
9058
|
-
const d =
|
|
9059
|
-
|
|
9056
|
+
const d = J.g(), e = X(d, a, b);
|
|
9057
|
+
if (c) {
|
|
9058
|
+
const f = 0 === W(d, e, Z[c]);
|
|
9059
|
+
if ("FIXED_LINE_OR_MOBILE" === c) {
|
|
9060
|
+
const g = 0 === W(d, e, Z.MOBILE), h = 0 === W(d, e, Z.FIXED_LINE);
|
|
9061
|
+
return g || h || f;
|
|
9062
|
+
}
|
|
9063
|
+
return f;
|
|
9064
|
+
}
|
|
9065
|
+
return 0 === W(d, e, -1);
|
|
9060
9066
|
} catch (d) {
|
|
9061
9067
|
return false;
|
|
9062
9068
|
}
|
|
9063
9069
|
});
|
|
9064
9070
|
m("intlTelInputUtilsTemp.getCoreNumber", (a, b) => {
|
|
9065
9071
|
try {
|
|
9066
|
-
return r(
|
|
9072
|
+
return r(X(J.g(), a, b), 2).toString();
|
|
9067
9073
|
} catch (c) {
|
|
9068
9074
|
return "";
|
|
9069
9075
|
}
|
|
9070
9076
|
});
|
|
9071
9077
|
m("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 });
|
|
9072
|
-
m("intlTelInputUtilsTemp.numberType",
|
|
9078
|
+
m("intlTelInputUtilsTemp.numberType", Z);
|
|
9073
9079
|
m("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
|
|
9074
9080
|
})();
|
|
9075
9081
|
var utils = window.intlTelInputUtilsTemp;
|