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