intl-tel-input 24.8.2 → 25.0.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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v24.8.2
2
+ * International Telephone Input v25.0.0
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -1663,8 +1663,8 @@ var factoryOutput = (() => {
1663
1663
  i18n: {},
1664
1664
  //* Initial country.
1665
1665
  initialCountry: "",
1666
- //* Specify the path to the libphonenumber script to enable validation/formatting.
1667
- loadUtilsOnInit: "",
1666
+ //* A function to load the utils script.
1667
+ loadUtils: null,
1668
1668
  //* National vs international formatting for numbers e.g. placeholders and displaying existing numbers.
1669
1669
  nationalMode: true,
1670
1670
  //* Display only these countries.
@@ -1685,10 +1685,8 @@ var factoryOutput = (() => {
1685
1685
  navigator.userAgent
1686
1686
  ) || window.innerWidth <= 500
1687
1687
  ) : false,
1688
- //* Deprecated! Use `loadUtilsOnInit` instead.
1689
- utilsScript: "",
1690
1688
  //* The number type to enforce during validation.
1691
- validationNumberType: "MOBILE"
1689
+ validationNumberTypes: ["MOBILE"]
1692
1690
  };
1693
1691
  var regionlessNanpNumbers = [
1694
1692
  "800",
@@ -2197,15 +2195,11 @@ var factoryOutput = (() => {
2197
2195
  }
2198
2196
  //* Init many requests: utils script / geo ip lookup.
2199
2197
  _initRequests() {
2200
- let { loadUtilsOnInit, utilsScript, initialCountry, geoIpLookup } = this.options;
2201
- if (!loadUtilsOnInit && utilsScript) {
2202
- console.warn("intl-tel-input: The `utilsScript` option is deprecated and will be removed in a future release! Please use the `loadUtilsOnInit` option instead.");
2203
- loadUtilsOnInit = utilsScript;
2204
- }
2205
- if (loadUtilsOnInit && !intlTelInput.utils) {
2198
+ let { loadUtils, initialCountry, geoIpLookup } = this.options;
2199
+ if (loadUtils && !intlTelInput.utils) {
2206
2200
  this._handlePageLoad = () => {
2207
2201
  window.removeEventListener("load", this._handlePageLoad);
2208
- intlTelInput.loadUtils(loadUtilsOnInit)?.catch(() => {
2202
+ intlTelInput.attachUtils(loadUtils)?.catch(() => {
2209
2203
  });
2210
2204
  };
2211
2205
  if (intlTelInput.documentReady()) {
@@ -2669,7 +2663,7 @@ var factoryOutput = (() => {
2669
2663
  }
2670
2664
  //* Update the maximum valid number length for the currently selected country.
2671
2665
  _updateMaxLength() {
2672
- const { strictMode, placeholderNumberType, validationNumberType } = this.options;
2666
+ const { strictMode, placeholderNumberType, validationNumberTypes } = this.options;
2673
2667
  const { iso2 } = this.selectedCountryData;
2674
2668
  if (strictMode && intlTelInput.utils) {
2675
2669
  if (iso2) {
@@ -2681,7 +2675,7 @@ var factoryOutput = (() => {
2681
2675
  true
2682
2676
  );
2683
2677
  let validNumber = exampleNumber;
2684
- while (intlTelInput.utils.isPossibleNumber(exampleNumber, iso2, validationNumberType)) {
2678
+ while (intlTelInput.utils.isPossibleNumber(exampleNumber, iso2, validationNumberTypes)) {
2685
2679
  validNumber = exampleNumber;
2686
2680
  exampleNumber += "0";
2687
2681
  }
@@ -3033,7 +3027,7 @@ var factoryOutput = (() => {
3033
3027
  return this._utilsIsPossibleNumber(val);
3034
3028
  }
3035
3029
  _utilsIsPossibleNumber(val) {
3036
- return intlTelInput.utils ? intlTelInput.utils.isPossibleNumber(val, this.selectedCountryData.iso2, this.options.validationNumberType) : null;
3030
+ return intlTelInput.utils ? intlTelInput.utils.isPossibleNumber(val, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
3037
3031
  }
3038
3032
  //* Validate the input val (precise)
3039
3033
  isValidNumberPrecise() {
@@ -3051,7 +3045,7 @@ var factoryOutput = (() => {
3051
3045
  return this._utilsIsValidNumber(val);
3052
3046
  }
3053
3047
  _utilsIsValidNumber(val) {
3054
- return intlTelInput.utils ? intlTelInput.utils.isValidNumber(val, this.selectedCountryData.iso2) : null;
3048
+ return intlTelInput.utils ? intlTelInput.utils.isValidNumber(val, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
3055
3049
  }
3056
3050
  //* Update the selected country, and update the input val accordingly.
3057
3051
  setCountry(iso2) {
@@ -3087,29 +3081,23 @@ var factoryOutput = (() => {
3087
3081
  }
3088
3082
  }
3089
3083
  };
3090
- var loadUtils = (source) => {
3084
+ var attachUtils = (source) => {
3091
3085
  if (!intlTelInput.utils && !intlTelInput.startedLoadingUtilsScript) {
3092
3086
  let loadCall;
3093
- if (typeof source === "string") {
3094
- loadCall = Promise.reject(new Error("INTENTIONALLY BROKEN: this build of intl-tel-input includes the utilities module inline, but it has incorrectly attempted to load the utilities separately. If you are seeing this message, something is broken!"));
3095
- } else if (typeof source === "function") {
3087
+ if (typeof source === "function") {
3096
3088
  try {
3097
3089
  loadCall = Promise.resolve(source());
3098
3090
  } catch (error) {
3099
3091
  return Promise.reject(error);
3100
3092
  }
3101
3093
  } else {
3102
- return Promise.reject(new TypeError(`The argument passed to loadUtils must be a URL string or a function that returns a promise for the utilities module, not ${typeof source}`));
3094
+ return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof source}`));
3103
3095
  }
3104
3096
  intlTelInput.startedLoadingUtilsScript = true;
3105
3097
  return loadCall.then((module) => {
3106
3098
  const utils2 = module?.default;
3107
3099
  if (!utils2 || typeof utils2 !== "object") {
3108
- if (typeof source === "string") {
3109
- throw new TypeError(`The module loaded from ${source} did not set utils as its default export.`);
3110
- } else {
3111
- throw new TypeError("The loader function passed to loadUtils did not resolve to a module object with utils as its default export.");
3112
- }
3100
+ throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");
3113
3101
  }
3114
3102
  intlTelInput.utils = utils2;
3115
3103
  forEachInstance("handleUtils");
@@ -3142,10 +3130,10 @@ var factoryOutput = (() => {
3142
3130
  },
3143
3131
  //* A map from instance ID to instance object.
3144
3132
  instances: {},
3145
- loadUtils,
3133
+ attachUtils,
3146
3134
  startedLoadingUtilsScript: false,
3147
3135
  startedLoadingAutoCountry: false,
3148
- version: "24.8.2"
3136
+ version: "25.0.0"
3149
3137
  }
3150
3138
  );
3151
3139
  var intl_tel_input_default = intlTelInput;
@@ -3179,7 +3167,7 @@ var factoryOutput = (() => {
3179
3167
  return b;
3180
3168
  }
3181
3169
  ;
3182
- var ca = class {
3170
+ var da = class {
3183
3171
  constructor(a) {
3184
3172
  if (ba !== ba) throw Error("SafeUrl is not meant to be built directly");
3185
3173
  this.g = a;
@@ -3188,8 +3176,8 @@ var factoryOutput = (() => {
3188
3176
  return this.g.toString();
3189
3177
  }
3190
3178
  }, ba = {};
3191
- new ca("about:invalid#zClosurez");
3192
- new ca("about:blank");
3179
+ new da("about:invalid#zClosurez");
3180
+ new da("about:blank");
3193
3181
  const ea = {};
3194
3182
  class fa {
3195
3183
  constructor() {
@@ -3368,91 +3356,91 @@ var factoryOutput = (() => {
3368
3356
  return b;
3369
3357
  };
3370
3358
  var xa = /^-?[0-9]+$/;
3371
- function ya() {
3359
+ function B() {
3372
3360
  }
3373
- n(ya, z);
3374
- ya.prototype.g = function(a, b) {
3361
+ n(B, z);
3362
+ B.prototype.g = function(a, b) {
3375
3363
  a = new a.h();
3376
3364
  a.l = this;
3377
3365
  a.h = b;
3378
3366
  a.g = {};
3379
3367
  return a;
3380
3368
  };
3381
- function B() {
3369
+ function C() {
3382
3370
  }
3383
- n(B, ya);
3384
- B.prototype.h = function(a, b) {
3371
+ n(C, B);
3372
+ C.prototype.h = function(a, b) {
3385
3373
  return 8 == a.h ? !!b : z.prototype.h.apply(this, arguments);
3386
3374
  };
3387
- B.prototype.g = function(a, b) {
3388
- return B.ma.g.call(this, a, b);
3375
+ C.prototype.g = function(a, b) {
3376
+ return C.ma.g.call(this, a, b);
3389
3377
  };
3390
- function C(a, b) {
3378
+ function D(a, b) {
3391
3379
  null != a && this.g.apply(this, arguments);
3392
3380
  }
3393
- C.prototype.h = "";
3394
- C.prototype.set = function(a) {
3381
+ D.prototype.h = "";
3382
+ D.prototype.set = function(a) {
3395
3383
  this.h = "" + a;
3396
3384
  };
3397
- C.prototype.g = function(a, b, c) {
3385
+ D.prototype.g = function(a, b, c) {
3398
3386
  this.h += String(a);
3399
3387
  if (null != b) for (let d = 1; d < arguments.length; d++) this.h += arguments[d];
3400
3388
  return this;
3401
3389
  };
3402
- function D(a) {
3390
+ function E(a) {
3403
3391
  a.h = "";
3404
3392
  }
3405
- C.prototype.toString = function() {
3393
+ D.prototype.toString = function() {
3406
3394
  return this.h;
3407
3395
  };
3408
- function E() {
3409
- p.call(this);
3410
- }
3411
- n(E, p);
3412
- var za = null;
3413
3396
  function F() {
3414
3397
  p.call(this);
3415
3398
  }
3416
3399
  n(F, p);
3417
- var Aa = null;
3400
+ var ya = null;
3418
3401
  function G() {
3419
3402
  p.call(this);
3420
3403
  }
3421
3404
  n(G, p);
3422
- var Ba = null;
3423
- E.prototype.m = function() {
3424
- var a = za;
3425
- 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 } }));
3426
- return a;
3427
- };
3428
- E.m = E.prototype.m;
3405
+ var za = null;
3406
+ function H() {
3407
+ p.call(this);
3408
+ }
3409
+ n(H, p);
3410
+ var Aa = null;
3429
3411
  F.prototype.m = function() {
3430
- var a = Aa;
3431
- 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 } }));
3412
+ var a = ya;
3413
+ a || (ya = a = y(F, { 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 } }));
3432
3414
  return a;
3433
3415
  };
3434
3416
  F.m = F.prototype.m;
3435
3417
  G.prototype.m = function() {
3436
- var a = Ba;
3437
- a || (Ba = a = y(G, {
3418
+ var a = za;
3419
+ a || (za = a = y(G, { 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 } }));
3420
+ return a;
3421
+ };
3422
+ G.m = G.prototype.m;
3423
+ H.prototype.m = function() {
3424
+ var a = Aa;
3425
+ a || (Aa = a = y(H, {
3438
3426
  0: { name: "PhoneMetadata", ia: "i18n.phonenumbers.PhoneMetadata" },
3439
- 1: { name: "general_desc", i: 11, type: F },
3440
- 2: { name: "fixed_line", i: 11, type: F },
3441
- 3: { name: "mobile", i: 11, type: F },
3442
- 4: { name: "toll_free", i: 11, type: F },
3443
- 5: { name: "premium_rate", i: 11, type: F },
3444
- 6: { name: "shared_cost", i: 11, type: F },
3445
- 7: { name: "personal_number", i: 11, type: F },
3446
- 8: { name: "voip", i: 11, type: F },
3447
- 21: { name: "pager", i: 11, type: F },
3448
- 25: { name: "uan", i: 11, type: F },
3449
- 27: { name: "emergency", i: 11, type: F },
3450
- 28: { name: "voicemail", i: 11, type: F },
3451
- 29: { name: "short_code", i: 11, type: F },
3452
- 30: { name: "standard_rate", i: 11, type: F },
3453
- 31: { name: "carrier_specific", i: 11, type: F },
3454
- 33: { name: "sms_services", i: 11, type: F },
3455
- 24: { name: "no_international_dialling", i: 11, type: F },
3427
+ 1: { name: "general_desc", i: 11, type: G },
3428
+ 2: { name: "fixed_line", i: 11, type: G },
3429
+ 3: { name: "mobile", i: 11, type: G },
3430
+ 4: { name: "toll_free", i: 11, type: G },
3431
+ 5: { name: "premium_rate", i: 11, type: G },
3432
+ 6: { name: "shared_cost", i: 11, type: G },
3433
+ 7: { name: "personal_number", i: 11, type: G },
3434
+ 8: { name: "voip", i: 11, type: G },
3435
+ 21: { name: "pager", i: 11, type: G },
3436
+ 25: { name: "uan", i: 11, type: G },
3437
+ 27: { name: "emergency", i: 11, type: G },
3438
+ 28: { name: "voicemail", i: 11, type: G },
3439
+ 29: { name: "short_code", i: 11, type: G },
3440
+ 30: { name: "standard_rate", i: 11, type: G },
3441
+ 31: { name: "carrier_specific", i: 11, type: G },
3442
+ 33: { name: "sms_services", i: 11, type: G },
3443
+ 24: { name: "no_international_dialling", i: 11, type: G },
3456
3444
  9: { name: "id", required: true, i: 9, type: String },
3457
3445
  10: { name: "country_code", i: 5, type: Number },
3458
3446
  11: { name: "international_prefix", i: 9, type: String },
@@ -3466,31 +3454,31 @@ var factoryOutput = (() => {
3466
3454
  },
3467
3455
  16: { name: "national_prefix_transform_rule", i: 9, type: String },
3468
3456
  18: { name: "same_mobile_and_fixed_line_pattern", i: 8, defaultValue: false, type: Boolean },
3469
- 19: { name: "number_format", aa: true, i: 11, type: E },
3470
- 20: { name: "intl_number_format", aa: true, i: 11, type: E },
3457
+ 19: { name: "number_format", aa: true, i: 11, type: F },
3458
+ 20: { name: "intl_number_format", aa: true, i: 11, type: F },
3471
3459
  22: { name: "main_country_for_code", i: 8, defaultValue: false, type: Boolean },
3472
3460
  23: { name: "leading_digits", i: 9, type: String }
3473
3461
  }));
3474
3462
  return a;
3475
3463
  };
3476
- G.m = G.prototype.m;
3477
- function H() {
3464
+ H.m = H.prototype.m;
3465
+ function I() {
3478
3466
  p.call(this);
3479
3467
  }
3480
- n(H, p);
3481
- var Ca = null, Da = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
3482
- H.prototype.m = function() {
3483
- var a = Ca;
3484
- 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: {
3468
+ n(I, p);
3469
+ var Ba = null, Ca = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
3470
+ I.prototype.m = function() {
3471
+ var a = Ba;
3472
+ a || (Ba = a = y(I, { 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: Ca }, 7: {
3485
3473
  name: "preferred_domestic_carrier_code",
3486
3474
  i: 9,
3487
3475
  type: String
3488
3476
  } }));
3489
3477
  return a;
3490
3478
  };
3491
- H.ctor = H;
3492
- H.ctor.m = H.prototype.m;
3493
- var I = {
3479
+ I.ctor = I;
3480
+ I.ctor.m = I.prototype.m;
3481
+ var J = {
3494
3482
  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(" "),
3495
3483
  7: ["RU", "KZ"],
3496
3484
  20: ["EG"],
@@ -3706,7 +3694,7 @@ var factoryOutput = (() => {
3706
3694
  995: ["GE"],
3707
3695
  996: ["KG"],
3708
3696
  998: ["UZ"]
3709
- }, Ea = {
3697
+ }, Da = {
3710
3698
  AC: [, [
3711
3699
  ,
3712
3700
  ,
@@ -8571,14 +8559,14 @@ var factoryOutput = (() => {
8571
8559
  ], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 888, , , , , , , , 1, [[, "(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "\\d{11}", , , , "12345678901"], , , [, , , , , , , , , [-1]]],
8572
8560
  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]]]
8573
8561
  };
8574
- function J() {
8562
+ function K() {
8575
8563
  this.g = {};
8576
8564
  }
8577
- J.h = void 0;
8578
- J.g = function() {
8579
- return J.h ? J.h : J.h = new J();
8565
+ K.h = void 0;
8566
+ K.g = function() {
8567
+ return K.h ? K.h : K.h = new K();
8580
8568
  };
8581
- 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 = {
8569
+ var Ea = { 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" }, Fa = {
8582
8570
  0: "0",
8583
8571
  1: "1",
8584
8572
  2: "2",
@@ -8592,7 +8580,7 @@ var factoryOutput = (() => {
8592
8580
  "+": "+",
8593
8581
  "*": "*",
8594
8582
  "#": "#"
8595
- }, Ha = {
8583
+ }, Ga = {
8596
8584
  0: "0",
8597
8585
  1: "1",
8598
8586
  2: "2",
@@ -8659,48 +8647,48 @@ var factoryOutput = (() => {
8659
8647
  X: "9",
8660
8648
  Y: "9",
8661
8649
  Z: "9"
8662
- }, 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])*\\.?$");
8663
- function L(a) {
8650
+ }, Ha = RegExp("[+\uFF0B]+"), L = RegExp("^[+\uFF0B]+"), Ia = RegExp("([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9])"), Ja = RegExp("[+\uFF0B0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]"), Ka = /[\\\/] *x/, La = RegExp("[^0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9A-Za-z#]+$"), Ma = /(?:.*?[A-Za-z]){3}.*/, Na = 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]|[\\-\\.\\(\\)]?)*$"), Oa = 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])*\\.?$");
8651
+ function M(a) {
8664
8652
  return "([0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9]{1," + a + "})";
8665
8653
  }
8666
- function Qa() {
8667
- 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") + "#?");
8654
+ function Pa() {
8655
+ return ";ext=" + M("20") + "|[ \xA0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xF3))?n?|\uFF45?\uFF58\uFF54\uFF4E?|\u0434\u043E\u0431|anexo)[:\\.\uFF0E]?[ \xA0\\t,-]*" + (M("20") + "#?|[ \xA0\\t,]*(?:[x\uFF58#\uFF03~\uFF5E]|int|\uFF49\uFF4E\uFF54)[:\\.\uFF0E]?[ \xA0\\t,-]*") + (M("9") + "#?|[- ]+") + (M("6") + "#|[ \xA0\\t]*(?:,{2}|;)[:\\.\uFF0E]?[ \xA0\\t,-]*") + (M("15") + "#?|[ \xA0\\t]*(?:,)+[:\\.\uFF0E]?[ \xA0\\t,-]*") + (M("9") + "#?");
8656
+ }
8657
+ 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\)?$/;
8658
+ function Ua(a) {
8659
+ return 2 > a.length ? false : N(Ra, a);
8668
8660
  }
8669
- 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\)?$/;
8670
8661
  function Va(a) {
8671
- return 2 > a.length ? false : M(Sa, a);
8662
+ return N(Ma, a) ? O(a, Ga) : O(a, Ea);
8672
8663
  }
8673
8664
  function Wa(a) {
8674
- return M(Na, a) ? N(a, Ha) : N(a, Fa);
8675
- }
8676
- function Xa(a) {
8677
- var b = Wa(a.toString());
8678
- D(a);
8665
+ var b = Va(a.toString());
8666
+ E(a);
8679
8667
  a.g(b);
8680
8668
  }
8681
- function Ya(a) {
8669
+ function Xa(a) {
8682
8670
  return null != a && (1 != x(a, 9) || -1 != u(a, 9)[0]);
8683
8671
  }
8684
- function N(a, b) {
8685
- 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);
8672
+ function O(a, b) {
8673
+ for (var c = new D(), d, e = a.length, f = 0; f < e; ++f) d = a.charAt(f), d = b[d.toUpperCase()], null != d && c.g(d);
8686
8674
  return c.toString();
8687
8675
  }
8688
- function Za(a) {
8689
- return 0 == a.length || Ua.test(a);
8676
+ function Ya(a) {
8677
+ return 0 == a.length || Ta.test(a);
8690
8678
  }
8691
- function O(a) {
8692
- return null != a && isNaN(a) && a.toUpperCase() in Ea;
8679
+ function P(a) {
8680
+ return null != a && isNaN(a) && a.toUpperCase() in Da;
8693
8681
  }
8694
- J.prototype.format = function(a, b) {
8682
+ K.prototype.format = function(a, b) {
8695
8683
  if (0 == r(a, 2) && q(a, 5)) {
8696
8684
  var c = w(a, 5);
8697
8685
  if (0 < c.length) return c;
8698
8686
  }
8699
8687
  c = w(a, 1);
8700
- var d = P(a);
8701
- if (0 == b) return $a(c, 0, d, "");
8702
- if (!(c in I)) return d;
8703
- var e = Q(this, c, R(c));
8688
+ var d = Q(a);
8689
+ if (0 == b) return Za(c, 0, d, "");
8690
+ if (!(c in J)) return d;
8691
+ var e = R(this, c, S(c));
8704
8692
  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) : "";
8705
8693
  a: {
8706
8694
  e = 0 == u(e, 20).length || 2 == b ? u(e, 19) : u(e, 20);
@@ -8708,7 +8696,7 @@ var factoryOutput = (() => {
8708
8696
  f = e[h];
8709
8697
  var l = x(f, 3);
8710
8698
  if (0 == l || 0 == d.search(r(f, 3, l - 1))) {
8711
- if (l = new RegExp(r(f, 1)), M(l, d)) {
8699
+ if (l = new RegExp(r(f, 1)), N(l, d)) {
8712
8700
  e = f;
8713
8701
  break a;
8714
8702
  }
@@ -8719,18 +8707,18 @@ var factoryOutput = (() => {
8719
8707
  null != e && (g = e, e = w(g, 2), f = new RegExp(r(g, 1)), w(
8720
8708
  g,
8721
8709
  5
8722
- ), 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"), "-")));
8723
- return $a(c, b, d, a);
8710
+ ), g = w(g, 4), d = 2 == b && null != g && 0 < g.length ? d.replace(f, e.replace(Sa, 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"), "-")));
8711
+ return Za(c, b, d, a);
8724
8712
  };
8725
- function Q(a, b, c) {
8726
- return "001" == c ? S(a, "" + b) : S(a, c);
8713
+ function R(a, b, c) {
8714
+ return "001" == c ? T(a, "" + b) : T(a, c);
8727
8715
  }
8728
- function P(a) {
8716
+ function Q(a) {
8729
8717
  if (!q(a, 2)) return "";
8730
8718
  var b = "" + r(a, 2);
8731
8719
  return q(a, 4) && r(a, 4) && 0 < w(a, 8) ? Array(w(a, 8) + 1).join("0") + b : b;
8732
8720
  }
8733
- function $a(a, b, c, d) {
8721
+ function Za(a, b, c, d) {
8734
8722
  switch (b) {
8735
8723
  case 0:
8736
8724
  return "+" + a + c + d;
@@ -8742,7 +8730,7 @@ var factoryOutput = (() => {
8742
8730
  return c + d;
8743
8731
  }
8744
8732
  }
8745
- function T(a, b) {
8733
+ function U(a, b) {
8746
8734
  switch (b) {
8747
8735
  case 4:
8748
8736
  return r(a, 5);
@@ -8769,42 +8757,56 @@ var factoryOutput = (() => {
8769
8757
  return r(a, 1);
8770
8758
  }
8771
8759
  }
8772
- function ab(a, b) {
8773
- 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;
8760
+ function $a(a, b) {
8761
+ var c = ab(a, b);
8762
+ a = R(a, w(b, 1), c);
8763
+ if (null == a) return -1;
8764
+ b = Q(b);
8765
+ return bb(b, a);
8774
8766
  }
8775
- function S(a, b) {
8767
+ function bb(a, b) {
8768
+ return V(a, r(b, 1)) ? V(a, r(b, 5)) ? 4 : V(a, r(b, 4)) ? 3 : V(a, r(b, 6)) ? 5 : V(a, r(b, 8)) ? 6 : V(a, r(b, 7)) ? 7 : V(a, r(b, 21)) ? 8 : V(a, r(b, 25)) ? 9 : V(a, r(b, 28)) ? 10 : V(a, r(b, 2)) ? r(b, 18) || V(a, r(b, 3)) ? 2 : 0 : !r(b, 18) && V(a, r(b, 3)) ? 1 : -1 : -1;
8769
+ }
8770
+ function T(a, b) {
8776
8771
  if (null == b) return null;
8777
8772
  b = b.toUpperCase();
8778
8773
  var c = a.g[b];
8779
8774
  if (null == c) {
8780
- c = Ea[b];
8775
+ c = Da[b];
8781
8776
  if (null == c) return null;
8782
- c = new B().g(G.m(), c);
8777
+ c = new C().g(H.m(), c);
8783
8778
  a.g[b] = c;
8784
8779
  }
8785
8780
  return c;
8786
8781
  }
8787
- function U(a, b) {
8782
+ function V(a, b) {
8788
8783
  var c = a.length;
8789
- return 0 < x(b, 9) && -1 == u(b, 9).indexOf(c) ? false : M(w(b, 2), a);
8784
+ return 0 < x(b, 9) && -1 == u(b, 9).indexOf(c) ? false : N(w(b, 2), a);
8790
8785
  }
8791
- function bb(a, b) {
8786
+ function cb(a, b) {
8787
+ var c = ab(a, b);
8788
+ var d = w(b, 1);
8789
+ var e = R(a, d, c);
8790
+ null == e || "001" != c && d != db(a, c) ? e = false : (a = Q(b), e = -1 != bb(a, e));
8791
+ return e;
8792
+ }
8793
+ function ab(a, b) {
8792
8794
  if (null == b) return null;
8793
8795
  var c = w(b, 1);
8794
- c = I[c];
8796
+ c = J[c];
8795
8797
  if (null == c) a = null;
8796
8798
  else if (1 == c.length) a = c[0];
8797
8799
  else a: {
8798
- b = P(b);
8800
+ b = Q(b);
8799
8801
  for (var d, e = c.length, f = 0; f < e; f++) {
8800
8802
  d = c[f];
8801
- var g = S(a, d);
8803
+ var g = T(a, d);
8802
8804
  if (q(g, 23)) {
8803
8805
  if (0 == b.search(r(g, 23))) {
8804
8806
  a = d;
8805
8807
  break a;
8806
8808
  }
8807
- } else if (-1 != ab(b, g)) {
8809
+ } else if (-1 != bb(b, g)) {
8808
8810
  a = d;
8809
8811
  break a;
8810
8812
  }
@@ -8813,92 +8815,92 @@ var factoryOutput = (() => {
8813
8815
  }
8814
8816
  return a;
8815
8817
  }
8816
- function R(a) {
8817
- a = I[a];
8818
+ function S(a) {
8819
+ a = J[a];
8818
8820
  return null == a ? "ZZ" : a[0];
8819
8821
  }
8820
- function cb(a, b) {
8821
- a = S(a, b);
8822
+ function db(a, b) {
8823
+ a = T(a, b);
8822
8824
  if (null == a) throw Error("Invalid region code: " + b);
8823
8825
  return w(a, 10);
8824
8826
  }
8825
- function V(a, b, c, d) {
8826
- var e = T(c, d), f = 0 == x(e, 9) ? u(r(c, 1), 9) : u(e, 9);
8827
+ function W(a, b, c, d) {
8828
+ var e = U(c, d), f = 0 == x(e, 9) ? u(r(c, 1), 9) : u(e, 9);
8827
8829
  e = u(e, 10);
8828
- 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()));
8829
- else return V(a, b, c, 1);
8830
+ if (2 == d) if (Xa(U(c, 0))) a = U(c, 1), Xa(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()));
8831
+ else return W(a, b, c, 1);
8830
8832
  if (-1 == f[0]) return 5;
8831
8833
  b = b.length;
8832
8834
  if (-1 < e.indexOf(b)) return 4;
8833
8835
  c = f[0];
8834
8836
  return c == b ? 0 : c > b ? 2 : f[f.length - 1] < b ? 3 : -1 < f.indexOf(b, 1) ? 0 : 5;
8835
8837
  }
8836
- function W(a, b, c) {
8837
- var d = P(b);
8838
+ function X(a, b, c) {
8839
+ var d = Q(b);
8838
8840
  b = w(b, 1);
8839
- if (!(b in I)) return 1;
8840
- b = Q(a, b, R(b));
8841
- return V(a, d, b, c);
8841
+ if (!(b in J)) return 1;
8842
+ b = R(a, b, S(b));
8843
+ return W(a, d, b, c);
8842
8844
  }
8843
- function db(a, b) {
8845
+ function eb(a, b) {
8844
8846
  a = a.toString();
8845
8847
  if (0 == a.length || "0" == a.charAt(0)) return 0;
8846
- 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;
8848
+ for (var c, d = a.length, e = 1; 3 >= e && e <= d; ++e) if (c = parseInt(a.substring(0, e), 10), c in J) return b.g(a.substring(e)), c;
8847
8849
  return 0;
8848
8850
  }
8849
- function eb(a, b, c, d, e, f) {
8851
+ function fb(a, b, c, d, e, f) {
8850
8852
  if (0 == b.length) return 0;
8851
- b = new C(b);
8853
+ b = new D(b);
8852
8854
  var g;
8853
8855
  null != c && (g = r(c, 11));
8854
8856
  null == g && (g = "NonMatch");
8855
8857
  var h = b.toString();
8856
8858
  if (0 == h.length) g = 20;
8857
- else if (K.test(h)) h = h.replace(K, ""), D(b), b.g(Wa(h)), g = 1;
8859
+ else if (L.test(h)) h = h.replace(L, ""), E(b), b.g(Va(h)), g = 1;
8858
8860
  else {
8859
8861
  h = new RegExp(g);
8860
- Xa(b);
8862
+ Wa(b);
8861
8863
  g = b.toString();
8862
8864
  if (0 == g.search(h)) {
8863
8865
  h = g.match(h)[0].length;
8864
- var l = g.substring(h).match(Ja);
8865
- l && null != l[1] && 0 < l[1].length && "0" == N(l[1], Fa) ? g = false : (D(b), b.g(g.substring(h)), g = true);
8866
+ var l = g.substring(h).match(Ia);
8867
+ l && null != l[1] && 0 < l[1].length && "0" == O(l[1], Ea) ? g = false : (E(b), b.g(g.substring(h)), g = true);
8866
8868
  } else g = false;
8867
8869
  g = g ? 5 : 20;
8868
8870
  }
8869
8871
  e && t(f, 6, g);
8870
8872
  if (20 != g) {
8871
8873
  if (2 >= b.h.length) throw Error("Phone number too short after IDD");
8872
- a = db(b, d);
8874
+ a = eb(b, d);
8873
8875
  if (0 != a) return t(f, 1, a), a;
8874
8876
  throw Error("Invalid country calling code");
8875
8877
  }
8876
- 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;
8878
+ if (null != c && (g = w(c, 10), h = "" + g, l = b.toString(), 0 == l.lastIndexOf(h, 0) && (h = new D(l.substring(h.length)), l = r(c, 1), l = new RegExp(w(l, 2)), gb(h, c, null), h = h.toString(), !N(l, b.toString()) && N(l, h) || 3 == W(a, b.toString(), c, -1)))) return d.g(h), e && t(f, 6, 10), t(f, 1, g), g;
8877
8879
  t(f, 1, 0);
8878
8880
  return 0;
8879
8881
  }
8880
- function fb(a, b, c) {
8882
+ function gb(a, b, c) {
8881
8883
  var d = a.toString(), e = d.length, f = r(b, 15);
8882
8884
  if (0 != e && null != f && 0 != f.length) {
8883
8885
  var g = new RegExp("^(?:" + f + ")");
8884
8886
  if (e = g.exec(d)) {
8885
8887
  f = new RegExp(w(r(b, 1), 2));
8886
- var h = M(f, d), l = e.length - 1;
8888
+ var h = N(f, d), l = e.length - 1;
8887
8889
  b = r(b, 16);
8888
8890
  if (null == b || 0 == b.length || null == e[l] || 0 == e[l].length) {
8889
- 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));
8890
- } else if (d = d.replace(g, b), !h || M(f, d)) null != c && 0 < l && c.g(e[1]), a.set(d);
8891
+ if (!h || N(f, d.substring(e[0].length))) null != c && 0 < l && null != e[l] && c.g(e[1]), a.set(d.substring(e[0].length));
8892
+ } else if (d = d.replace(g, b), !h || N(f, d)) null != c && 0 < l && c.g(e[1]), a.set(d);
8891
8893
  }
8892
8894
  }
8893
8895
  }
8894
- function X(a, b, c) {
8895
- if (!O(c) && 0 < b.length && "+" != b.charAt(0)) throw Error("Invalid country calling code");
8896
- return gb(a, b, c, true);
8896
+ function Y(a, b, c) {
8897
+ if (!P(c) && 0 < b.length && "+" != b.charAt(0)) throw Error("Invalid country calling code");
8898
+ return hb(a, b, c, true);
8897
8899
  }
8898
- function gb(a, b, c, d) {
8900
+ function hb(a, b, c, d) {
8899
8901
  if (null == b) throw Error("The string supplied did not seem to be a phone number");
8900
8902
  if (250 < b.length) throw Error("The string supplied is too long to be a phone number");
8901
- var e = new C();
8903
+ var e = new D();
8902
8904
  var f = b.indexOf(";phone-context=");
8903
8905
  if (-1 === f) f = null;
8904
8906
  else if (f += 15, f >= b.length) f = "";
@@ -8907,24 +8909,24 @@ var factoryOutput = (() => {
8907
8909
  f = -1 !== g ? b.substring(f, g) : b.substring(f);
8908
8910
  }
8909
8911
  var h = f;
8910
- null == h ? g = true : 0 === h.length ? g = false : (g = Oa.exec(h), h = Pa.exec(h), g = null !== g || null !== h);
8912
+ null == h ? g = true : 0 === h.length ? g = false : (g = Na.exec(h), h = Oa.exec(h), g = null !== g || null !== h);
8911
8913
  if (!g) throw Error("The string supplied did not seem to be a phone number");
8912
- 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));
8914
+ 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(Ja), 0 <= h ? (g = g.substring(h), g = g.replace(La, ""), h = g.search(Ka), 0 <= h && (g = g.substring(0, h))) : g = "", f.call(e, g));
8913
8915
  f = e.toString();
8914
8916
  g = f.indexOf(";isub=");
8915
- 0 < g && (D(e), e.g(f.substring(0, g)));
8916
- if (!Va(e.toString())) throw Error("The string supplied did not seem to be a phone number");
8917
+ 0 < g && (E(e), e.g(f.substring(0, g)));
8918
+ if (!Ua(e.toString())) throw Error("The string supplied did not seem to be a phone number");
8917
8919
  f = e.toString();
8918
- if (!(O(c) || null != f && 0 < f.length && K.test(f))) throw Error("Invalid country calling code");
8919
- f = new H();
8920
+ if (!(P(c) || null != f && 0 < f.length && L.test(f))) throw Error("Invalid country calling code");
8921
+ f = new I();
8920
8922
  d && t(f, 5, b);
8921
8923
  a: {
8922
8924
  b = e.toString();
8923
- g = b.search(Ra);
8924
- if (0 <= g && Va(b.substring(0, g))) {
8925
- h = b.match(Ra);
8925
+ g = b.search(Qa);
8926
+ if (0 <= g && Ua(b.substring(0, g))) {
8927
+ h = b.match(Qa);
8926
8928
  for (var l = h.length, A = 1; A < l; ++A) if (null != h[A] && 0 < h[A].length) {
8927
- D(e);
8929
+ E(e);
8928
8930
  e.g(b.substring(0, g));
8929
8931
  b = h[A];
8930
8932
  break a;
@@ -8933,24 +8935,24 @@ var factoryOutput = (() => {
8933
8935
  b = "";
8934
8936
  }
8935
8937
  0 < b.length && t(f, 3, b);
8936
- g = S(a, c);
8937
- b = new C();
8938
+ g = T(a, c);
8939
+ b = new D();
8938
8940
  h = 0;
8939
8941
  l = e.toString();
8940
8942
  try {
8941
- h = eb(a, l, g, b, d, f);
8942
- } catch (da) {
8943
- if ("Invalid country calling code" == da.message && K.test(l)) {
8944
- if (l = l.replace(K, ""), h = eb(a, l, g, b, d, f), 0 == h) throw da;
8945
- } else throw da;
8943
+ h = fb(a, l, g, b, d, f);
8944
+ } catch (ca) {
8945
+ if ("Invalid country calling code" == ca.message && L.test(l)) {
8946
+ if (l = l.replace(L, ""), h = fb(a, l, g, b, d, f), 0 == h) throw ca;
8947
+ } else throw ca;
8946
8948
  }
8947
- 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(
8949
+ 0 != h ? (e = S(h), e != c && (g = R(a, h, e))) : (Wa(e), b.g(e.toString()), null != c ? (h = w(g, 10), t(
8948
8950
  f,
8949
8951
  1,
8950
8952
  h
8951
8953
  )) : d && (delete f.h[6], f.g && delete f.g[6]));
8952
8954
  if (2 > b.h.length) throw Error("The string supplied is too short to be a phone number");
8953
- 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())));
8955
+ null != g && (c = new D(), e = new D(b.toString()), gb(e, g, c), a = W(a, e.toString(), g, -1), 2 != a && 4 != a && 5 != a && (b = e, d && 0 < c.toString().length && t(f, 7, c.toString())));
8954
8956
  d = b.toString();
8955
8957
  a = d.length;
8956
8958
  if (2 > a) throw Error("The string supplied is too short to be a phone number");
@@ -8963,70 +8965,70 @@ var factoryOutput = (() => {
8963
8965
  t(f, 2, parseInt(d, 10));
8964
8966
  return f;
8965
8967
  }
8966
- function M(a, b) {
8968
+ function N(a, b) {
8967
8969
  return (a = "string" == typeof a ? b.match("^(?:" + a + ")$") : b.match(a)) && a[0].length == b.length ? true : false;
8968
8970
  }
8969
8971
  ;
8970
- function hb(a) {
8972
+ function ib(a) {
8971
8973
  this.fa = RegExp("\u2008");
8972
8974
  this.ja = "";
8973
- this.v = new C();
8975
+ this.v = new D();
8974
8976
  this.da = "";
8975
- this.s = new C();
8976
- this.ba = new C();
8977
+ this.s = new D();
8978
+ this.ba = new D();
8977
8979
  this.u = true;
8978
8980
  this.ea = this.ca = this.la = false;
8979
- this.ga = J.g();
8981
+ this.ga = K.g();
8980
8982
  this.$ = 0;
8981
- this.h = new C();
8983
+ this.h = new D();
8982
8984
  this.ha = false;
8983
8985
  this.o = "";
8984
- this.g = new C();
8986
+ this.g = new D();
8985
8987
  this.j = [];
8986
8988
  this.ka = a;
8987
- this.l = ib(this, this.ka);
8989
+ this.l = jb(this, this.ka);
8988
8990
  }
8989
- var jb = new G();
8990
- t(jb, 11, "NA");
8991
- 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 = /[- ]/;
8992
- function ib(a, b) {
8991
+ var kb = new H();
8992
+ t(kb, 11, "NA");
8993
+ var lb = 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]*)*$"), mb = /[- ]/;
8994
+ function jb(a, b) {
8993
8995
  var c = a.ga;
8994
- b = O(b) ? cb(c, b) : 0;
8995
- a = S(a.ga, R(b));
8996
- return null != a ? a : jb;
8996
+ b = P(b) ? db(c, b) : 0;
8997
+ a = T(a.ga, S(b));
8998
+ return null != a ? a : kb;
8997
8999
  }
8998
- function mb(a) {
9000
+ function nb(a) {
8999
9001
  for (var b = a.j.length, c = 0; c < b; ++c) {
9000
9002
  var d = a.j[c], e = w(d, 1);
9001
9003
  if (a.da == e) return false;
9002
9004
  var f = a;
9003
9005
  var g = d, h = w(g, 1);
9004
- D(f.v);
9006
+ E(f.v);
9005
9007
  var l = f;
9006
9008
  g = w(g, 2);
9007
9009
  var A = "999999999999999".match(h)[0];
9008
9010
  A.length < l.g.h.length ? l = "" : (l = A.replace(new RegExp(h, "g"), g), l = l.replace(RegExp("9", "g"), "\u2008"));
9009
9011
  0 < l.length ? (f.v.g(l), f = true) : f = false;
9010
- if (f) return a.da = e, a.ha = lb.test(r(d, 4)), a.$ = 0, true;
9012
+ if (f) return a.da = e, a.ha = mb.test(r(d, 4)), a.$ = 0, true;
9011
9013
  }
9012
9014
  return a.u = false;
9013
9015
  }
9014
- function nb(a, b) {
9016
+ function ob(a, b) {
9015
9017
  for (var c = [], d = b.length - 3, e = a.j.length, f = 0; f < e; ++f) {
9016
9018
  var g = a.j[f];
9017
9019
  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]));
9018
9020
  }
9019
9021
  a.j = c;
9020
9022
  }
9021
- function ob(a, b) {
9023
+ function pb(a, b) {
9022
9024
  a.s.g(b);
9023
9025
  var c = b;
9024
- 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);
9026
+ Ia.test(c) || 1 == a.s.h.length && Ha.test(c) ? ("+" == b ? (c = b, a.ba.g(b)) : (c = Ea[b], a.ba.g(c), a.g.g(c)), b = c) : (a.u = false, a.la = true);
9025
9027
  if (!a.u) {
9026
9028
  if (!a.la) {
9027
- if (pb(a)) {
9028
- if (qb(a)) return rb(a);
9029
- } 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);
9029
+ if (qb(a)) {
9030
+ if (rb(a)) return sb(a);
9031
+ } else if (0 < a.o.length && (b = a.g.toString(), E(a.g), a.g.g(a.o), a.g.g(b), b = a.h.toString(), c = b.lastIndexOf(a.o), E(a.h), a.h.g(b.substring(0, c))), a.o != tb(a)) return a.h.g(" "), sb(a);
9030
9032
  }
9031
9033
  return a.s.toString();
9032
9034
  }
@@ -9036,93 +9038,93 @@ var factoryOutput = (() => {
9036
9038
  case 2:
9037
9039
  return a.s.toString();
9038
9040
  case 3:
9039
- if (pb(a)) a.ea = true;
9040
- else return a.o = sb(a), tb(a);
9041
+ if (qb(a)) a.ea = true;
9042
+ else return a.o = tb(a), ub(a);
9041
9043
  default:
9042
- if (a.ea) return qb(a) && (a.ea = false), a.h.toString() + a.g.toString();
9044
+ if (a.ea) return rb(a) && (a.ea = false), a.h.toString() + a.g.toString();
9043
9045
  if (0 < a.j.length) {
9044
- b = ub(a, b);
9045
- c = vb(a);
9046
+ b = vb(a, b);
9047
+ c = wb(a);
9046
9048
  if (0 < c.length) return c;
9047
- nb(a, a.g.toString());
9048
- return mb(a) ? wb(a) : a.u ? Y(a, b) : a.s.toString();
9049
+ ob(a, a.g.toString());
9050
+ return nb(a) ? xb(a) : a.u ? Z(a, b) : a.s.toString();
9049
9051
  }
9050
- return tb(a);
9052
+ return ub(a);
9051
9053
  }
9052
9054
  }
9053
- function rb(a) {
9055
+ function sb(a) {
9054
9056
  a.u = true;
9055
9057
  a.ea = false;
9056
9058
  a.j = [];
9057
9059
  a.$ = 0;
9058
- D(a.v);
9060
+ E(a.v);
9059
9061
  a.da = "";
9060
- return tb(a);
9062
+ return ub(a);
9061
9063
  }
9062
- function vb(a) {
9064
+ function wb(a) {
9063
9065
  for (var b = a.g.toString(), c = a.j.length, d = 0; d < c; ++d) {
9064
9066
  var e = a.j[d], f = w(e, 1);
9065
- 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;
9067
+ if (new RegExp("^(?:" + f + ")$").test(b) && (a.ha = mb.test(r(e, 4)), e = b.replace(new RegExp(f, "g"), r(e, 2)), e = Z(a, e), O(e, Fa) == a.ba)) return e;
9066
9068
  }
9067
9069
  return "";
9068
9070
  }
9069
- function Y(a, b) {
9071
+ function Z(a, b) {
9070
9072
  var c = a.h.h.length;
9071
9073
  return a.ha && 0 < c && " " != a.h.toString().charAt(c - 1) ? a.h + " " + b : a.h + b;
9072
9074
  }
9073
- function tb(a) {
9075
+ function ub(a) {
9074
9076
  var b = a.g.toString();
9075
9077
  if (3 <= b.length) {
9076
9078
  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) {
9077
9079
  var f = c[e];
9078
- 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);
9080
+ 0 < a.o.length && Ya(w(f, 4)) && !r(f, 6) && !q(f, 5) || (0 != a.o.length || a.ca || Ya(w(f, 4)) || r(f, 6)) && lb.test(w(f, 2)) && a.j.push(f);
9079
9081
  }
9080
- nb(a, b);
9081
- b = vb(a);
9082
- return 0 < b.length ? b : mb(a) ? wb(a) : a.s.toString();
9082
+ ob(a, b);
9083
+ b = wb(a);
9084
+ return 0 < b.length ? b : nb(a) ? xb(a) : a.s.toString();
9083
9085
  }
9084
- return Y(a, b);
9086
+ return Z(a, b);
9085
9087
  }
9086
- function wb(a) {
9088
+ function xb(a) {
9087
9089
  var b = a.g.toString(), c = b.length;
9088
9090
  if (0 < c) {
9089
- for (var d = "", e = 0; e < c; e++) d = ub(a, b.charAt(e));
9090
- return a.u ? Y(a, d) : a.s.toString();
9091
+ for (var d = "", e = 0; e < c; e++) d = vb(a, b.charAt(e));
9092
+ return a.u ? Z(a, d) : a.s.toString();
9091
9093
  }
9092
9094
  return a.h.toString();
9093
9095
  }
9094
- function sb(a) {
9096
+ function tb(a) {
9095
9097
  var b = a.g.toString(), c = 0;
9096
9098
  if (1 != r(a.l, 10)) var d = false;
9097
9099
  else d = a.g.toString(), d = "1" == d.charAt(0) && "0" != d.charAt(1) && "1" != d.charAt(1);
9098
9100
  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))));
9099
- D(a.g);
9101
+ E(a.g);
9100
9102
  a.g.g(b.substring(c));
9101
9103
  return b.substring(0, c);
9102
9104
  }
9103
- function pb(a) {
9105
+ function qb(a) {
9104
9106
  var b = a.ba.toString(), c = new RegExp("^(?:\\+|" + r(a.l, 11) + ")");
9105
9107
  c = b.match(c);
9106
- 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;
9108
+ return null != c && null != c[0] && 0 < c[0].length ? (a.ca = true, c = c[0].length, E(a.g), a.g.g(b.substring(c)), E(a.h), a.h.g(b.substring(0, c)), "+" != b.charAt(0) && a.h.g(" "), true) : false;
9107
9109
  }
9108
- function qb(a) {
9110
+ function rb(a) {
9109
9111
  if (0 == a.g.h.length) return false;
9110
- var b = new C(), c = db(a.g, b);
9112
+ var b = new D(), c = eb(a.g, b);
9111
9113
  if (0 == c) return false;
9112
- D(a.g);
9114
+ E(a.g);
9113
9115
  a.g.g(b.toString());
9114
- b = R(c);
9115
- "001" == b ? a.l = S(a.ga, "" + c) : b != a.ka && (a.l = ib(a, b));
9116
+ b = S(c);
9117
+ "001" == b ? a.l = T(a.ga, "" + c) : b != a.ka && (a.l = jb(a, b));
9116
9118
  a.h.g("" + c).g(" ");
9117
9119
  a.o = "";
9118
9120
  return true;
9119
9121
  }
9120
- function ub(a, b) {
9122
+ function vb(a, b) {
9121
9123
  var c = a.v.toString();
9122
9124
  if (0 <= c.substring(a.$).search(a.fa)) {
9123
9125
  var d = c.search(a.fa);
9124
9126
  b = c.replace(a.fa, b);
9125
- D(a.v);
9127
+ E(a.v);
9126
9128
  a.v.g(b);
9127
9129
  a.$ = d;
9128
9130
  return b.substring(0, a.$ + 1);
@@ -9132,13 +9134,13 @@ var factoryOutput = (() => {
9132
9134
  return a.s.toString();
9133
9135
  }
9134
9136
  ;
9135
- 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 };
9137
+ const yb = { 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 };
9136
9138
  m("intlTelInputUtilsTemp", {});
9137
9139
  m("intlTelInputUtilsTemp.formatNumberAsYouType", (a, b) => {
9138
9140
  try {
9139
- const c = a.replace(/[^+0-9]/g, ""), d = new hb(b);
9141
+ const c = a.replace(/[^+0-9]/g, ""), d = new ib(b);
9140
9142
  b = "";
9141
- for (let e = 0; e < c.length; e++) d.ja = ob(d, c.charAt(e)), b = d.ja;
9143
+ for (let e = 0; e < c.length; e++) d.ja = pb(d, c.charAt(e)), b = d.ja;
9142
9144
  return b;
9143
9145
  } catch {
9144
9146
  return a;
@@ -9146,8 +9148,8 @@ var factoryOutput = (() => {
9146
9148
  });
9147
9149
  m("intlTelInputUtilsTemp.formatNumber", (a, b, c) => {
9148
9150
  try {
9149
- const e = J.g(), f = X(e, a, b);
9150
- var d = W(e, f, -1);
9151
+ const e = K.g(), f = Y(e, a, b);
9152
+ var d = X(e, f, -1);
9151
9153
  return 0 == d || 4 == d ? e.format(f, "undefined" === typeof c ? 0 : c) : a;
9152
9154
  } catch {
9153
9155
  return a;
@@ -9155,15 +9157,15 @@ var factoryOutput = (() => {
9155
9157
  });
9156
9158
  m("intlTelInputUtilsTemp.getExampleNumber", (a, b, c, d) => {
9157
9159
  try {
9158
- const l = J.g();
9160
+ const l = K.g();
9159
9161
  a: {
9160
9162
  var e = l;
9161
- if (O(a)) {
9162
- var f = T(S(e, a), c);
9163
+ if (P(a)) {
9164
+ var f = U(T(e, a), c);
9163
9165
  try {
9164
9166
  if (q(f, 6)) {
9165
9167
  var g = r(f, 6);
9166
- var h = gb(e, g, a, false);
9168
+ var h = hb(e, g, a, false);
9167
9169
  break a;
9168
9170
  }
9169
9171
  } catch (A) {
@@ -9178,21 +9180,15 @@ var factoryOutput = (() => {
9178
9180
  });
9179
9181
  m("intlTelInputUtilsTemp.getExtension", (a, b) => {
9180
9182
  try {
9181
- return r(X(J.g(), a, b), 3);
9183
+ return r(Y(K.g(), a, b), 3);
9182
9184
  } catch {
9183
9185
  return "";
9184
9186
  }
9185
9187
  });
9186
9188
  m("intlTelInputUtilsTemp.getNumberType", (a, b) => {
9187
9189
  try {
9188
- const g = J.g(), h = X(g, a, b);
9189
- var c = bb(g, h), d = Q(g, w(h, 1), c);
9190
- if (null == d) var e = -1;
9191
- else {
9192
- var f = P(h);
9193
- e = ab(f, d);
9194
- }
9195
- return e;
9190
+ const c = K.g(), d = Y(c, a, b);
9191
+ return $a(c, d);
9196
9192
  } catch {
9197
9193
  return -99;
9198
9194
  }
@@ -9200,53 +9196,46 @@ var factoryOutput = (() => {
9200
9196
  m("intlTelInputUtilsTemp.getValidationError", (a, b) => {
9201
9197
  if (!b) return 1;
9202
9198
  try {
9203
- const c = J.g(), d = X(c, a, b);
9204
- return W(c, d, -1);
9199
+ const c = K.g(), d = Y(c, a, b);
9200
+ return X(c, d, -1);
9205
9201
  } catch (c) {
9206
9202
  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;
9207
9203
  }
9208
9204
  });
9209
- m("intlTelInputUtilsTemp.isValidNumber", (a, b) => {
9205
+ m("intlTelInputUtilsTemp.isValidNumber", (a, b, c) => {
9210
9206
  try {
9211
- const l = J.g();
9212
- var c = X(l, a, b), d = bb(l, c);
9213
- a = l;
9214
- var e = w(c, 1), f = Q(a, e, d);
9215
- if (null == f || "001" != d && e != cb(a, d)) var g = false;
9216
- else {
9217
- var h = P(c);
9218
- g = -1 != ab(h, f);
9207
+ const d = K.g(), e = Y(d, a, b), f = cb(d, e);
9208
+ if (c) {
9209
+ const g = c.map((h) => yb[h]);
9210
+ return f && g.includes($a(d, e));
9219
9211
  }
9220
- return g;
9212
+ return f;
9221
9213
  } catch {
9222
9214
  return false;
9223
9215
  }
9224
9216
  });
9225
9217
  m("intlTelInputUtilsTemp.isPossibleNumber", (a, b, c) => {
9226
9218
  try {
9227
- const d = J.g(), e = X(d, a, b);
9219
+ const d = K.g(), e = Y(d, a, b);
9228
9220
  if (c) {
9229
- const f = 0 === W(d, e, Z[c]);
9230
- if ("FIXED_LINE_OR_MOBILE" === c) {
9231
- const g = 0 === W(d, e, Z.MOBILE), h = 0 === W(d, e, Z.FIXED_LINE);
9232
- return g || h || f;
9233
- }
9234
- return f;
9221
+ c.includes("FIXED_LINE_OR_MOBILE") && (c.includes("MOBILE") || c.push("MOBILE"), c.includes("FIXED_LINE") || c.push("FIXED_LINE"));
9222
+ for (let f of c) if (0 === X(d, e, yb[f])) return true;
9223
+ return false;
9235
9224
  }
9236
- return 0 === W(d, e, -1);
9225
+ return 0 === X(d, e, -1);
9237
9226
  } catch {
9238
9227
  return false;
9239
9228
  }
9240
9229
  });
9241
9230
  m("intlTelInputUtilsTemp.getCoreNumber", (a, b) => {
9242
9231
  try {
9243
- return r(X(J.g(), a, b), 2).toString();
9232
+ return r(Y(K.g(), a, b), 2).toString();
9244
9233
  } catch {
9245
9234
  return "";
9246
9235
  }
9247
9236
  });
9248
9237
  m("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 });
9249
- m("intlTelInputUtilsTemp.numberType", Z);
9238
+ m("intlTelInputUtilsTemp.numberType", yb);
9250
9239
  m("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
9251
9240
  })();
9252
9241
  var utils = window.intlTelInputUtilsTemp;