intl-tel-input 25.12.6 → 25.13.1

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,4 +1,4 @@
1
- import { mergeModels as m0, useModel as Y0, ref as A1, onMounted as z0, watch as Z0, onUnmounted as J0, withDirectives as X0, createElementBlock as q0, openBlock as Q0, mergeProps as d2, vModelText as t2 } from "vue";
1
+ import { mergeModels as I0, useModel as Y0, ref as w1, onMounted as z0, watch as Z0, onUnmounted as J0, withDirectives as X0, createElementBlock as q0, openBlock as Q0, mergeProps as d2, vModelText as t2 } from "vue";
2
2
  const e2 = [
3
3
  [
4
4
  "af",
@@ -1676,9 +1676,9 @@ const e2 = [
1676
1676
  null,
1677
1677
  "0"
1678
1678
  ]
1679
- ], Q = [];
1679
+ ], t1 = [];
1680
1680
  for (const h of e2)
1681
- Q.push({
1681
+ t1.push({
1682
1682
  name: "",
1683
1683
  // populated in the plugin
1684
1684
  iso2: h[0],
@@ -1950,13 +1950,13 @@ const $2 = {
1950
1950
  // additional countries (not supported by country-list library)
1951
1951
  ac: "Ascension Island",
1952
1952
  xk: "Kosovo"
1953
- }, N0 = { ...$2, ...n2 }, g1 = {
1953
+ }, b0 = { ...$2, ...n2 }, _1 = {
1954
1954
  OPEN_COUNTRY_DROPDOWN: "open:countrydropdown",
1955
1955
  CLOSE_COUNTRY_DROPDOWN: "close:countrydropdown",
1956
1956
  COUNTRY_CHANGE: "countrychange",
1957
1957
  INPUT: "input"
1958
1958
  // used for synthetic input trigger
1959
- }, E = {
1959
+ }, N = {
1960
1960
  HIDE: "iti__hide",
1961
1961
  V_HIDE: "iti__v-hide",
1962
1962
  ARROW_UP: "iti__arrow--up",
@@ -1971,10 +1971,10 @@ const $2 = {
1971
1971
  ENTER: "Enter",
1972
1972
  ESC: "Escape",
1973
1973
  TAB: "Tab"
1974
- }, y0 = {
1974
+ }, _0 = {
1975
1975
  PASTE: "insertFromPaste",
1976
1976
  DELETE_FWD: "deleteContentForward"
1977
- }, q = {
1977
+ }, d1 = {
1978
1978
  ALPHA_UNICODE: new RegExp("\\p{L}", "u"),
1979
1979
  // any kind of letter from any language
1980
1980
  NON_PLUS_NUMERIC: /[^+0-9]/,
@@ -1985,20 +1985,20 @@ const $2 = {
1985
1985
  // single acceptable hidden-search char
1986
1986
  }, i2 = {
1987
1987
  HIDDEN_SEARCH_RESET_MS: 1e3
1988
- }, I0 = {
1988
+ }, N0 = {
1989
1989
  UNKNOWN_NUMBER_TYPE: -99,
1990
1990
  UNKNOWN_VALIDATION_ERROR: -99
1991
- }, w1 = {
1991
+ }, D1 = {
1992
1992
  SANE_SELECTED_WITH_DIAL_WIDTH: 78,
1993
1993
  // px width fallback when separateDialCode enabled
1994
1994
  SANE_SELECTED_NO_DIAL_WIDTH: 42,
1995
1995
  // px width fallback when no separate dial code
1996
1996
  INPUT_PADDING_EXTRA_LEFT: 6
1997
1997
  // px gap between selected country container and input text
1998
- }, S0 = {
1998
+ }, T0 = {
1999
1999
  NANP: "1"
2000
2000
  // North American Numbering Plan
2001
- }, b1 = {
2001
+ }, v1 = {
2002
2002
  DIAL_CODE: "44",
2003
2003
  // +44 United Kingdom
2004
2004
  MOBILE_PREFIX: "7",
@@ -2007,15 +2007,15 @@ const $2 = {
2007
2007
  // core number length (excluding dial code / national prefix) for mobiles
2008
2008
  }, s2 = {
2009
2009
  ISO2: "us"
2010
- }, M1 = {
2010
+ }, x1 = {
2011
2011
  AGGRESSIVE: "aggressive",
2012
2012
  POLITE: "polite"
2013
- }, T1 = {
2013
+ }, P1 = {
2014
2014
  AUTO: "auto"
2015
- }, _0 = {
2015
+ }, E0 = {
2016
2016
  COUNTRY_CODE: "countryCode",
2017
2017
  DIAL_CODE: "dialCode"
2018
- }, L = {
2018
+ }, b = {
2019
2019
  EXPANDED: "aria-expanded",
2020
2020
  LABEL: "aria-label",
2021
2021
  SELECTED: "aria-selected",
@@ -2025,11 +2025,11 @@ const $2 = {
2025
2025
  HIDDEN: "aria-hidden",
2026
2026
  AUTOCOMPLETE: "aria-autocomplete",
2027
2027
  MODAL: "aria-modal"
2028
- }, D1 = (h) => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(h).matches, r2 = () => {
2028
+ }, M1 = (h) => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(h).matches, r2 = () => {
2029
2029
  if (typeof navigator < "u" && typeof window < "u") {
2030
2030
  const h = /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
2031
2031
  navigator.userAgent
2032
- ), e = D1("(max-width: 500px)"), $ = D1("(max-height: 600px)"), i = D1("(pointer: coarse)");
2032
+ ), e = M1("(max-width: 500px)"), $ = M1("(max-height: 600px)"), i = M1("(pointer: coarse)");
2033
2033
  return h || e || i && $;
2034
2034
  }
2035
2035
  return !1;
@@ -2039,7 +2039,7 @@ const $2 = {
2039
2039
  //* Whether or not to allow the dropdown.
2040
2040
  allowDropdown: !0,
2041
2041
  //* Add a placeholder in the input with an example number for the selected country.
2042
- autoPlaceholder: M1.POLITE,
2042
+ autoPlaceholder: x1.POLITE,
2043
2043
  //* Modify the parentClass.
2044
2044
  containerClass: "",
2045
2045
  //* The order of the countries in the dropdown. Defaults to alphabetical.
@@ -2086,18 +2086,18 @@ const $2 = {
2086
2086
  validationNumberTypes: ["MOBILE"]
2087
2087
  }, o2 = (h, e) => {
2088
2088
  h.useFullscreenPopup && (h.fixDropdownWidth = !1), h.onlyCountries.length === 1 && (h.initialCountry = h.onlyCountries[0]), h.separateDialCode && (h.nationalMode = !1), h.allowDropdown && !h.showFlags && !h.separateDialCode && (h.nationalMode = !1), h.useFullscreenPopup && !h.dropdownContainer && (h.dropdownContainer = document.body), h.i18n = { ...e, ...h.i18n };
2089
- }, m1 = (h) => h.replace(/\D/g, ""), A0 = (h = "") => h.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), u2 = (h, e) => {
2089
+ }, N1 = (h) => h.replace(/\D/g, ""), A0 = (h = "") => h.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), u2 = (h, e) => {
2090
2090
  const $ = A0(e), i = [], s = [], a = [], u = [], f = [], C = [];
2091
2091
  for (const _ of h)
2092
2092
  _.iso2 === $ ? i.push(_) : _.normalisedName.startsWith($) ? s.push(_) : _.normalisedName.includes($) ? a.push(_) : $ === _.dialCode || $ === _.dialCodePlus ? u.push(_) : _.dialCodePlus.includes($) ? f.push(_) : _.initials.includes($) && C.push(_);
2093
- const I = (_, A) => _.priority - A.priority;
2093
+ const y = (_, T) => _.priority - T.priority;
2094
2094
  return [
2095
- ...i.sort(I),
2096
- ...s.sort(I),
2097
- ...a.sort(I),
2098
- ...u.sort(I),
2099
- ...f.sort(I),
2100
- ...C.sort(I)
2095
+ ...i.sort(y),
2096
+ ...s.sort(y),
2097
+ ...a.sort(y),
2098
+ ...u.sort(y),
2099
+ ...f.sort(y),
2100
+ ...C.sort(y)
2101
2101
  ];
2102
2102
  }, l2 = (h, e) => {
2103
2103
  const $ = e.toLowerCase();
@@ -2105,19 +2105,19 @@ const $2 = {
2105
2105
  if (i.name.toLowerCase().startsWith($))
2106
2106
  return i;
2107
2107
  return null;
2108
- }, v1 = (h) => Object.keys(h).filter((e) => !!h[e]).join(" "), w = (h, e, $) => {
2108
+ }, R1 = (h) => Object.keys(h).filter((e) => !!h[e]).join(" "), L = (h, e, $) => {
2109
2109
  const i = document.createElement(h);
2110
2110
  return e && Object.entries(e).forEach(
2111
2111
  ([s, a]) => i.setAttribute(s, a)
2112
2112
  ), $ && $.appendChild(i), i;
2113
2113
  }, a2 = () => `
2114
- <svg class="iti__search-icon-svg" width="14" height="14" viewBox="0 0 24 24" focusable="false" ${L.HIDDEN}="true">
2114
+ <svg class="iti__search-icon-svg" width="14" height="14" viewBox="0 0 24 24" focusable="false" ${b.HIDDEN}="true">
2115
2115
  <circle cx="11" cy="11" r="7" />
2116
2116
  <line x1="21" y1="21" x2="16.65" y2="16.65" />
2117
2117
  </svg>`, c2 = (h) => {
2118
2118
  const e = `iti-${h}-clear-mask`;
2119
2119
  return `
2120
- <svg class="iti__search-clear-svg" width="12" height="12" viewBox="0 0 16 16" ${L.HIDDEN}="true" focusable="false">
2120
+ <svg class="iti__search-clear-svg" width="12" height="12" viewBox="0 0 16 16" ${b.HIDDEN}="true" focusable="false">
2121
2121
  <mask id="${e}" maskUnits="userSpaceOnUse">
2122
2122
  <rect width="16" height="16" fill="white" />
2123
2123
  <path d="M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8" stroke="black" stroke-linecap="round" class="iti__search-clear-x" />
@@ -2140,53 +2140,53 @@ class h2 {
2140
2140
  this.telInput.classList.add("iti__tel-input"), !this.telInput.hasAttribute("autocomplete") && !((e = this.telInput.form) != null && e.hasAttribute("autocomplete")) && this.telInput.setAttribute("autocomplete", "off");
2141
2141
  }
2142
2142
  _createWrapperAndInsert() {
2143
- const { allowDropdown: e, showFlags: $, containerClass: i, useFullscreenPopup: s } = this.options, a = v1({
2143
+ const { allowDropdown: e, showFlags: $, containerClass: i, useFullscreenPopup: s } = this.options, a = R1({
2144
2144
  iti: !0,
2145
2145
  "iti--allow-dropdown": e,
2146
2146
  "iti--show-flags": $,
2147
2147
  "iti--inline-dropdown": !s,
2148
2148
  [i]: !!i
2149
- }), u = w("div", { class: a });
2149
+ }), u = L("div", { class: a });
2150
2150
  return this.isRTL && u.setAttribute("dir", "ltr"), this.telInput.before(u), u;
2151
2151
  }
2152
2152
  _maybeBuildCountryContainer(e) {
2153
2153
  const { allowDropdown: $, separateDialCode: i, showFlags: s } = this.options;
2154
2154
  if ($ || s || i) {
2155
- this.countryContainer = w(
2155
+ this.countryContainer = L(
2156
2156
  "div",
2157
2157
  // visibly hidden until we measure it's width to set the input padding correctly
2158
- { class: `iti__country-container ${E.V_HIDE}` },
2158
+ { class: `iti__country-container ${N.V_HIDE}` },
2159
2159
  e
2160
- ), $ ? (this.selectedCountry = w(
2160
+ ), $ ? (this.selectedCountry = L(
2161
2161
  "button",
2162
2162
  {
2163
2163
  type: "button",
2164
2164
  class: "iti__selected-country",
2165
- [L.EXPANDED]: "false",
2166
- [L.LABEL]: this.options.i18n.noCountrySelected,
2167
- [L.HASPOPUP]: "dialog",
2168
- [L.CONTROLS]: `iti-${this.id}__dropdown-content`
2165
+ [b.EXPANDED]: "false",
2166
+ [b.LABEL]: this.options.i18n.noCountrySelected,
2167
+ [b.HASPOPUP]: "dialog",
2168
+ [b.CONTROLS]: `iti-${this.id}__dropdown-content`
2169
2169
  },
2170
2170
  this.countryContainer
2171
- ), this.telInput.disabled && this.selectedCountry.setAttribute("disabled", "true")) : this.selectedCountry = w(
2171
+ ), this.telInput.disabled && this.selectedCountry.setAttribute("disabled", "true")) : this.selectedCountry = L(
2172
2172
  "div",
2173
2173
  { class: "iti__selected-country" },
2174
2174
  this.countryContainer
2175
2175
  );
2176
- const a = w(
2176
+ const a = L(
2177
2177
  "div",
2178
2178
  { class: "iti__selected-country-primary" },
2179
2179
  this.selectedCountry
2180
2180
  );
2181
- this.selectedCountryInner = w(
2181
+ this.selectedCountryInner = L(
2182
2182
  "div",
2183
- { class: E.FLAG },
2183
+ { class: N.FLAG },
2184
2184
  a
2185
- ), $ && (this.dropdownArrow = w(
2185
+ ), $ && (this.dropdownArrow = L(
2186
2186
  "div",
2187
- { class: "iti__arrow", [L.HIDDEN]: "true" },
2187
+ { class: "iti__arrow", [b.HIDDEN]: "true" },
2188
2188
  a
2189
- )), i && (this.selectedDialCode = w(
2189
+ )), i && (this.selectedDialCode = L(
2190
2190
  "div",
2191
2191
  { class: "iti__selected-dial-code" },
2192
2192
  this.selectedCountry
@@ -2202,46 +2202,46 @@ class h2 {
2202
2202
  dropdownContainer: a,
2203
2203
  containerClass: u
2204
2204
  } = this.options, f = e ? "" : "iti--flexible-dropdown-width";
2205
- if (this.dropdownContent = w("div", {
2205
+ if (this.dropdownContent = L("div", {
2206
2206
  id: `iti-${this.id}__dropdown-content`,
2207
- class: `iti__dropdown-content ${E.HIDE} ${f}`,
2207
+ class: `iti__dropdown-content ${N.HIDE} ${f}`,
2208
2208
  role: "dialog",
2209
- [L.MODAL]: "true"
2210
- }), this.isRTL && this.dropdownContent.setAttribute("dir", "rtl"), i && this._buildSearchUI(), this.countryList = w(
2209
+ [b.MODAL]: "true"
2210
+ }), this.isRTL && this.dropdownContent.setAttribute("dir", "rtl"), i && this._buildSearchUI(), this.countryList = L(
2211
2211
  "ul",
2212
2212
  {
2213
2213
  class: "iti__country-list",
2214
2214
  id: `iti-${this.id}__country-listbox`,
2215
2215
  role: "listbox",
2216
- [L.LABEL]: s.countryListAriaLabel
2216
+ [b.LABEL]: s.countryListAriaLabel
2217
2217
  },
2218
2218
  this.dropdownContent
2219
2219
  ), this._appendListItems(), i && this.updateSearchResultsA11yText(), a) {
2220
- const C = v1({
2220
+ const C = R1({
2221
2221
  iti: !0,
2222
2222
  "iti--container": !0,
2223
2223
  "iti--fullscreen-popup": $,
2224
2224
  "iti--inline-dropdown": !$,
2225
2225
  [u]: !!u
2226
2226
  });
2227
- this.dropdown = w("div", { class: C }), this.dropdown.appendChild(this.dropdownContent);
2227
+ this.dropdown = L("div", { class: C }), this.dropdown.appendChild(this.dropdownContent);
2228
2228
  } else
2229
2229
  this.countryContainer.appendChild(this.dropdownContent);
2230
2230
  }
2231
2231
  _buildSearchUI() {
2232
- const { i18n: e } = this.options, $ = w(
2232
+ const { i18n: e } = this.options, $ = L(
2233
2233
  "div",
2234
2234
  { class: "iti__search-input-wrapper" },
2235
2235
  this.dropdownContent
2236
2236
  );
2237
- this.searchIcon = w(
2237
+ this.searchIcon = L(
2238
2238
  "span",
2239
2239
  {
2240
2240
  class: "iti__search-icon",
2241
- [L.HIDDEN]: "true"
2241
+ [b.HIDDEN]: "true"
2242
2242
  },
2243
2243
  $
2244
- ), this.searchIcon.innerHTML = a2(), this.searchInput = w(
2244
+ ), this.searchIcon.innerHTML = a2(), this.searchInput = L(
2245
2245
  "input",
2246
2246
  {
2247
2247
  id: `iti-${this.id}__search-input`,
@@ -2251,38 +2251,38 @@ class h2 {
2251
2251
  placeholder: e.searchPlaceholder,
2252
2252
  // role=combobox + aria-autocomplete=list + aria-activedescendant allows maintaining focus on the search input while allowing users to navigate search results with up/down keyboard keys
2253
2253
  role: "combobox",
2254
- [L.EXPANDED]: "true",
2255
- [L.LABEL]: e.searchPlaceholder,
2256
- [L.CONTROLS]: `iti-${this.id}__country-listbox`,
2257
- [L.AUTOCOMPLETE]: "list",
2254
+ [b.EXPANDED]: "true",
2255
+ [b.LABEL]: e.searchPlaceholder,
2256
+ [b.CONTROLS]: `iti-${this.id}__country-listbox`,
2257
+ [b.AUTOCOMPLETE]: "list",
2258
2258
  autocomplete: "off"
2259
2259
  },
2260
2260
  $
2261
- ), this.searchClearButton = w(
2261
+ ), this.searchClearButton = L(
2262
2262
  "button",
2263
2263
  {
2264
2264
  type: "button",
2265
- class: `iti__search-clear ${E.HIDE}`,
2266
- [L.LABEL]: e.clearSearchAriaLabel,
2265
+ class: `iti__search-clear ${N.HIDE}`,
2266
+ [b.LABEL]: e.clearSearchAriaLabel,
2267
2267
  tabindex: "-1"
2268
2268
  },
2269
2269
  $
2270
- ), this.searchClearButton.innerHTML = c2(this.id), this.searchResultsA11yText = w(
2270
+ ), this.searchClearButton.innerHTML = c2(this.id), this.searchResultsA11yText = L(
2271
2271
  "span",
2272
2272
  { class: "iti__a11y-text" },
2273
2273
  this.dropdownContent
2274
- ), this.searchNoResults = w(
2274
+ ), this.searchNoResults = L(
2275
2275
  "div",
2276
2276
  {
2277
- class: `iti__no-results ${E.HIDE}`,
2278
- [L.HIDDEN]: "true"
2277
+ class: `iti__no-results ${N.HIDE}`,
2278
+ [b.HIDDEN]: "true"
2279
2279
  // all a11y messaging happens in this.searchResultsA11yText
2280
2280
  },
2281
2281
  this.dropdownContent
2282
2282
  ), this.searchNoResults.textContent = e.zeroSearchResults;
2283
2283
  }
2284
2284
  _maybeUpdateInputPaddingAndReveal() {
2285
- this.countryContainer && (this.updateInputPadding(), this.countryContainer.classList.remove(E.V_HIDE));
2285
+ this.countryContainer && (this.updateInputPadding(), this.countryContainer.classList.remove(N.V_HIDE));
2286
2286
  }
2287
2287
  _maybeBuildHiddenInputs(e) {
2288
2288
  var i, s;
@@ -2293,7 +2293,7 @@ class h2 {
2293
2293
  const f = (i = this.telInput.form) == null ? void 0 : i.querySelector(
2294
2294
  `input[name="${u.phone}"]`
2295
2295
  );
2296
- f ? this.hiddenInput = f : (this.hiddenInput = w("input", {
2296
+ f ? this.hiddenInput = f : (this.hiddenInput = L("input", {
2297
2297
  type: "hidden",
2298
2298
  name: u.phone
2299
2299
  }), e.appendChild(this.hiddenInput));
@@ -2302,7 +2302,7 @@ class h2 {
2302
2302
  const f = (s = this.telInput.form) == null ? void 0 : s.querySelector(
2303
2303
  `input[name="${u.country}"]`
2304
2304
  );
2305
- f ? this.hiddenInputCountry = f : (this.hiddenInputCountry = w("input", {
2305
+ f ? this.hiddenInputCountry = f : (this.hiddenInputCountry = L("input", {
2306
2306
  type: "hidden",
2307
2307
  name: u.country
2308
2308
  }), e.appendChild(this.hiddenInputCountry));
@@ -2313,20 +2313,20 @@ class h2 {
2313
2313
  _appendListItems() {
2314
2314
  const e = document.createDocumentFragment();
2315
2315
  for (let $ = 0; $ < this.countries.length; $++) {
2316
- const i = this.countries[$], s = v1({
2317
- [E.COUNTRY_ITEM]: !0,
2318
- [E.HIGHLIGHT]: $ === 0
2319
- }), a = w("li", {
2316
+ const i = this.countries[$], s = R1({
2317
+ [N.COUNTRY_ITEM]: !0,
2318
+ [N.HIGHLIGHT]: $ === 0
2319
+ }), a = L("li", {
2320
2320
  id: `iti-${this.id}__item-${i.iso2}`,
2321
2321
  class: s,
2322
2322
  tabindex: "-1",
2323
2323
  role: "option",
2324
- [L.SELECTED]: "false"
2324
+ [b.SELECTED]: "false"
2325
2325
  });
2326
- a.dataset.dialCode = i.dialCode, a.dataset.countryCode = i.iso2, i.nodeById[this.id] = a, this.options.showFlags && w("div", { class: `${E.FLAG} iti__${i.iso2}` }, a);
2327
- const u = w("span", { class: "iti__country-name" }, a);
2326
+ a.dataset.dialCode = i.dialCode, a.dataset.countryCode = i.iso2, i.nodeById[this.id] = a, this.options.showFlags && L("div", { class: `${N.FLAG} iti__${i.iso2}` }, a);
2327
+ const u = L("span", { class: "iti__country-name" }, a);
2328
2328
  u.textContent = i.name;
2329
- const f = w("span", { class: "iti__dial-code" }, a);
2329
+ const f = L("span", { class: "iti__dial-code" }, a);
2330
2330
  this.isRTL && f.setAttribute("dir", "ltr"), f.textContent = `+${i.dialCode}`, e.appendChild(a);
2331
2331
  }
2332
2332
  this.countryList.appendChild(e);
@@ -2334,7 +2334,7 @@ class h2 {
2334
2334
  //* Update the input padding to make space for the selected country/dial code.
2335
2335
  updateInputPadding() {
2336
2336
  if (this.selectedCountry) {
2337
- const e = this.options.separateDialCode ? w1.SANE_SELECTED_WITH_DIAL_WIDTH : w1.SANE_SELECTED_NO_DIAL_WIDTH, i = (this.selectedCountry.offsetWidth || this._getHiddenSelectedCountryWidth() || e) + w1.INPUT_PADDING_EXTRA_LEFT;
2337
+ const e = this.options.separateDialCode ? D1.SANE_SELECTED_WITH_DIAL_WIDTH : D1.SANE_SELECTED_NO_DIAL_WIDTH, i = (this.selectedCountry.offsetWidth || this._getHiddenSelectedCountryWidth() || e) + D1.INPUT_PADDING_EXTRA_LEFT;
2338
2338
  this.telInput.style.paddingLeft = `${i}px`;
2339
2339
  }
2340
2340
  }
@@ -2376,20 +2376,20 @@ class h2 {
2376
2376
  }
2377
2377
  //* Check if an element is visible within it's container, else scroll until it is.
2378
2378
  scrollTo(e) {
2379
- const $ = this.countryList, i = document.documentElement.scrollTop, s = $.offsetHeight, a = $.getBoundingClientRect().top + i, u = a + s, f = e.offsetHeight, C = e.getBoundingClientRect().top + i, I = C + f, _ = C - a + $.scrollTop;
2379
+ const $ = this.countryList, i = document.documentElement.scrollTop, s = $.offsetHeight, a = $.getBoundingClientRect().top + i, u = a + s, f = e.offsetHeight, C = e.getBoundingClientRect().top + i, y = C + f, _ = C - a + $.scrollTop;
2380
2380
  if (C < a)
2381
2381
  $.scrollTop = _;
2382
- else if (I > u) {
2383
- const A = s - f;
2384
- $.scrollTop = _ - A;
2382
+ else if (y > u) {
2383
+ const T = s - f;
2384
+ $.scrollTop = _ - T;
2385
2385
  }
2386
2386
  }
2387
2387
  //* Remove highlighting from other list items and highlight the given item.
2388
2388
  highlightListItem(e, $) {
2389
2389
  const i = this.highlightedItem;
2390
- if (i && (i.classList.remove(E.HIGHLIGHT), i.setAttribute(L.SELECTED, "false")), this.highlightedItem = e, this.highlightedItem && (this.highlightedItem.classList.add(E.HIGHLIGHT), this.highlightedItem.setAttribute(L.SELECTED, "true"), this.options.countrySearch)) {
2390
+ if (i && (i.classList.remove(N.HIGHLIGHT), i.setAttribute(b.SELECTED, "false")), this.highlightedItem = e, this.highlightedItem && (this.highlightedItem.classList.add(N.HIGHLIGHT), this.highlightedItem.setAttribute(b.SELECTED, "true"), this.options.countrySearch)) {
2391
2391
  const s = this.highlightedItem.getAttribute("id") || "";
2392
- this.searchInput.setAttribute(L.ACTIVE_DESCENDANT, s);
2392
+ this.searchInput.setAttribute(b.ACTIVE_DESCENDANT, s);
2393
2393
  }
2394
2394
  $ && this.highlightedItem.focus();
2395
2395
  }
@@ -2401,7 +2401,7 @@ class h2 {
2401
2401
  const s = i.nodeById[this.id];
2402
2402
  s && (this.countryList.appendChild(s), $ && (this.highlightListItem(s, !1), $ = !1));
2403
2403
  }
2404
- $ ? (this.highlightListItem(null, !1), this.searchNoResults && this.searchNoResults.classList.remove(E.HIDE)) : this.searchNoResults && this.searchNoResults.classList.add(E.HIDE), this.countryList.scrollTop = 0, this.updateSearchResultsA11yText();
2404
+ $ ? (this.highlightListItem(null, !1), this.searchNoResults && this.searchNoResults.classList.remove(N.HIDE)) : this.searchNoResults && this.searchNoResults.classList.add(N.HIDE), this.countryList.scrollTop = 0, this.updateSearchResultsA11yText();
2405
2405
  }
2406
2406
  destroy() {
2407
2407
  this.telInput.iti = void 0, delete this.telInput.dataset.intlTelInputId, this.options.separateDialCode && (this.telInput.style.paddingLeft = this.originalPaddingLeft);
@@ -2418,59 +2418,51 @@ const f2 = (h) => {
2418
2418
  const i = e.map(
2419
2419
  (s) => s.toLowerCase()
2420
2420
  );
2421
- return Q.filter(
2421
+ return t1.filter(
2422
2422
  (s) => i.includes(s.iso2)
2423
2423
  );
2424
2424
  } else if ($.length) {
2425
2425
  const i = $.map(
2426
2426
  (s) => s.toLowerCase()
2427
2427
  );
2428
- return Q.filter(
2428
+ return t1.filter(
2429
2429
  (s) => !i.includes(s.iso2)
2430
2430
  );
2431
2431
  }
2432
- return Q;
2432
+ return t1;
2433
2433
  }, p2 = (h, e) => {
2434
2434
  for (const $ of h) {
2435
2435
  const i = $.iso2.toLowerCase();
2436
2436
  e.i18n[i] && ($.name = e.i18n[i]);
2437
2437
  }
2438
- }, C2 = (h, e) => {
2439
- const $ = /* @__PURE__ */ new Set();
2440
- let i = 0;
2441
- const s = {}, a = (u, f, C) => {
2438
+ }, C2 = (h) => {
2439
+ const e = /* @__PURE__ */ new Set();
2440
+ let $ = 0;
2441
+ const i = {}, s = (u, f) => {
2442
2442
  if (!u || !f)
2443
2443
  return;
2444
- f.length > i && (i = f.length), s.hasOwnProperty(f) || (s[f] = []);
2445
- const I = s[f];
2446
- if (I.includes(u))
2447
- return;
2448
- const _ = C !== void 0 ? C : I.length;
2449
- I[_] = u;
2450
- };
2451
- for (const u of h) {
2452
- $.has(u.dialCode) || $.add(u.dialCode);
2444
+ f.length > $ && ($ = f.length), i.hasOwnProperty(f) || (i[f] = []);
2445
+ const C = i[f];
2446
+ C.includes(u) || C.push(u);
2447
+ }, a = [...h].sort((u, f) => u.priority - f.priority);
2448
+ for (const u of a) {
2449
+ e.has(u.dialCode) || e.add(u.dialCode);
2453
2450
  for (let f = 1; f < u.dialCode.length; f++) {
2454
2451
  const C = u.dialCode.substring(0, f);
2455
- a(u.iso2, C);
2452
+ s(u.iso2, C);
2456
2453
  }
2457
- a(u.iso2, u.dialCode, u.priority);
2458
- }
2459
- (e.onlyCountries.length || e.excludeCountries.length) && $.forEach((u) => {
2460
- s[u] = s[u].filter(Boolean);
2461
- });
2462
- for (const u of h)
2463
- if (u.areaCodes) {
2464
- const f = s[u.dialCode][0];
2454
+ if (s(u.iso2, u.dialCode), u.areaCodes) {
2455
+ const f = i[u.dialCode][0];
2465
2456
  for (const C of u.areaCodes) {
2466
- for (let I = 1; I < C.length; I++) {
2467
- const _ = C.substring(0, I), A = u.dialCode + _;
2468
- a(f, A), a(u.iso2, A);
2457
+ for (let y = 1; y < C.length; y++) {
2458
+ const _ = C.substring(0, y), T = u.dialCode + _;
2459
+ s(f, T), s(u.iso2, T);
2469
2460
  }
2470
- a(u.iso2, u.dialCode + C);
2461
+ s(u.iso2, u.dialCode + C);
2471
2462
  }
2472
2463
  }
2473
- return { dialCodes: $, dialCodeMaxLen: i, dialCodeToIso2Map: s };
2464
+ }
2465
+ return { dialCodes: e, dialCodeMaxLen: $, dialCodeToIso2Map: i };
2474
2466
  }, g2 = (h, e) => {
2475
2467
  e.countryOrder && (e.countryOrder = e.countryOrder.map(
2476
2468
  ($) => $.toLowerCase()
@@ -2508,7 +2500,7 @@ const f2 = (h) => {
2508
2500
  return a;
2509
2501
  }
2510
2502
  return e.length;
2511
- }, E2 = [
2503
+ }, N2 = [
2512
2504
  "800",
2513
2505
  "822",
2514
2506
  "833",
@@ -2526,30 +2518,54 @@ const f2 = (h) => {
2526
2518
  "887",
2527
2519
  "888",
2528
2520
  "889"
2529
- ], E0 = (h) => {
2530
- const e = m1(h);
2531
- if (e.startsWith(S0.NANP) && e.length >= 4) {
2521
+ ], S0 = (h) => {
2522
+ const e = N1(h);
2523
+ if (e.startsWith(T0.NANP) && e.length >= 4) {
2532
2524
  const $ = e.substring(1, 4);
2533
- return E2.includes($);
2525
+ return N2.includes($);
2534
2526
  }
2535
2527
  return !1;
2536
2528
  };
2537
- for (const h of Q)
2538
- h.name = N0[h.iso2];
2539
- let N2 = 0;
2540
- const S2 = new Set(Q.map((h) => h.iso2)), P1 = (h) => S2.has(h);
2541
- class R1 {
2529
+ for (const h of t1)
2530
+ h.name = b0[h.iso2];
2531
+ let E2 = 0;
2532
+ const S2 = new Set(t1.map((h) => h.iso2)), O1 = (h) => S2.has(h);
2533
+ class B1 {
2542
2534
  constructor(e, $ = {}) {
2543
- this.id = N2++, this.options = { ...L0, ...$ }, o2(this.options, N0), this.ui = new h2(e, this.options, this.id), this.isAndroid = R1._getIsAndroid(), this.promise = this._createInitPromises(), this.countries = f2(this.options);
2535
+ this.id = E2++, this.options = { ...L0, ...$ }, o2(this.options, b0), this.ui = new h2(e, this.options, this.id), this.isAndroid = B1._getIsAndroid(), this.promise = this._createInitPromises(), this.countries = f2(this.options);
2544
2536
  const { dialCodes: i, dialCodeMaxLen: s, dialCodeToIso2Map: a } = C2(
2545
- this.countries,
2546
- this.options
2537
+ this.countries
2547
2538
  );
2548
2539
  this.dialCodes = i, this.dialCodeMaxLen = s, this.dialCodeToIso2Map = a, this.countryByIso2 = new Map(this.countries.map((u) => [u.iso2, u])), this._init();
2549
2540
  }
2550
2541
  static _getIsAndroid() {
2551
2542
  return typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1;
2552
2543
  }
2544
+ _updateNumeralSet(e) {
2545
+ /[\u0660-\u0669]/.test(e) ? this.userNumeralSet = "arabic-indic" : /[\u06F0-\u06F9]/.test(e) ? this.userNumeralSet = "persian" : this.userNumeralSet = "ascii";
2546
+ }
2547
+ _mapAsciiToUserNumerals(e) {
2548
+ if (this.userNumeralSet || this._updateNumeralSet(this.ui.telInput.value), this.userNumeralSet === "ascii")
2549
+ return e;
2550
+ const $ = this.userNumeralSet === "arabic-indic" ? 1632 : 1776;
2551
+ return e.replace(/[0-9]/g, (i) => String.fromCharCode($ + Number(i)));
2552
+ }
2553
+ // Normalize Eastern Arabic (U+0660-0669) and Persian/Extended Arabic-Indic (U+06F0-06F9) numerals to ASCII 0-9
2554
+ _normaliseNumerals(e) {
2555
+ if (!e)
2556
+ return "";
2557
+ if (this._updateNumeralSet(e), this.userNumeralSet === "ascii")
2558
+ return e;
2559
+ const $ = this.userNumeralSet === "arabic-indic" ? 1632 : 1776, i = this.userNumeralSet === "arabic-indic" ? /[\u0660-\u0669]/g : /[\u06F0-\u06F9]/g;
2560
+ return e.replace(i, (s) => String.fromCharCode(48 + (s.charCodeAt(0) - $)));
2561
+ }
2562
+ _getTelInputValue() {
2563
+ const e = this.ui.telInput.value.trim();
2564
+ return this._normaliseNumerals(e);
2565
+ }
2566
+ _setTelInputValue(e) {
2567
+ this.ui.telInput.value = this._mapAsciiToUserNumerals(e);
2568
+ }
2553
2569
  _createInitPromises() {
2554
2570
  const e = new Promise((i, s) => {
2555
2571
  this.resolveAutoCountryPromise = i, this.rejectAutoCountryPromise = s;
@@ -2573,14 +2589,14 @@ class R1 {
2573
2589
  //* 1. Extracting a dial code from the given number
2574
2590
  //* 2. Using explicit initialCountry
2575
2591
  _setInitialState(e = !1) {
2576
- const $ = this.ui.telInput.getAttribute("value"), i = this.ui.telInput.value, a = $ && $.startsWith("+") && (!i || !i.startsWith("+")) ? $ : i, u = this._getDialCode(a), f = E0(a), { initialCountry: C, geoIpLookup: I } = this.options, _ = C === T1.AUTO && I;
2577
- if (u && !f)
2578
- this._updateCountryFromNumber(a);
2579
- else if (!_ || e) {
2580
- const A = C ? C.toLowerCase() : "";
2581
- P1(A) ? this._setCountry(A) : u && f ? this._setCountry(s2.ISO2) : this._setCountry("");
2592
+ const $ = this.ui.telInput.getAttribute("value"), i = this._normaliseNumerals($), s = this._getTelInputValue(), u = i && i.startsWith("+") && (!s || !s.startsWith("+")) ? i : s, f = this._getDialCode(u), C = S0(u), { initialCountry: y, geoIpLookup: _ } = this.options, T = y === P1.AUTO && _;
2593
+ if (f && !C)
2594
+ this._updateCountryFromNumber(u);
2595
+ else if (!T || e) {
2596
+ const B = y ? y.toLowerCase() : "";
2597
+ O1(B) ? this._setCountry(B) : f && C ? this._setCountry(s2.ISO2) : this._setCountry("");
2582
2598
  }
2583
- a && this._updateValFromNumber(a);
2599
+ u && this._updateValFromNumber(u);
2584
2600
  }
2585
2601
  //* Initialise the main event listeners: input keyup, and click selected country.
2586
2602
  _initListeners() {
@@ -2599,12 +2615,12 @@ class R1 {
2599
2615
  //* initialise the dropdown listeners.
2600
2616
  _initDropdownListeners() {
2601
2617
  const e = this.abortController.signal, $ = (u) => {
2602
- this.ui.dropdownContent.classList.contains(E.HIDE) ? this.ui.telInput.focus() : u.preventDefault();
2618
+ this.ui.dropdownContent.classList.contains(N.HIDE) ? this.ui.telInput.focus() : u.preventDefault();
2603
2619
  }, i = this.ui.telInput.closest("label");
2604
2620
  i && i.addEventListener("click", $, { signal: e });
2605
2621
  const s = () => {
2606
2622
  this.ui.dropdownContent.classList.contains(
2607
- E.HIDE
2623
+ N.HIDE
2608
2624
  ) && !this.ui.telInput.disabled && !this.ui.telInput.readOnly && this._openDropdown();
2609
2625
  };
2610
2626
  this.ui.selectedCountry.addEventListener(
@@ -2616,7 +2632,7 @@ class R1 {
2616
2632
  );
2617
2633
  const a = (u) => {
2618
2634
  this.ui.dropdownContent.classList.contains(
2619
- E.HIDE
2635
+ N.HIDE
2620
2636
  ) && [x.ARROW_UP, x.ARROW_DOWN, x.SPACE, x.ENTER].includes(u.key) && (u.preventDefault(), u.stopPropagation(), this._openDropdown()), u.key === x.TAB && this._closeDropdown();
2621
2637
  };
2622
2638
  this.ui.countryContainer.addEventListener(
@@ -2646,17 +2662,17 @@ class R1 {
2646
2662
  }
2647
2663
  } else
2648
2664
  this.resolveUtilsScriptPromise();
2649
- $ === T1.AUTO && i && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
2665
+ $ === P1.AUTO && i && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
2650
2666
  }
2651
2667
  //* Perform the geo ip lookup.
2652
2668
  _loadAutoCountry() {
2653
2669
  m.autoCountry ? this.handleAutoCountry() : m.startedLoadingAutoCountry || (m.startedLoadingAutoCountry = !0, typeof this.options.geoIpLookup == "function" && this.options.geoIpLookup(
2654
2670
  (e = "") => {
2655
2671
  const $ = e.toLowerCase();
2656
- P1($) ? (m.autoCountry = $, setTimeout(() => r1("handleAutoCountry"))) : (this._setInitialState(!0), r1("rejectAutoCountryPromise"));
2672
+ O1($) ? (m.autoCountry = $, setTimeout(() => l1("handleAutoCountry"))) : (this._setInitialState(!0), l1("rejectAutoCountryPromise"));
2657
2673
  },
2658
2674
  () => {
2659
- this._setInitialState(!0), r1("rejectAutoCountryPromise");
2675
+ this._setInitialState(!0), l1("rejectAutoCountryPromise");
2660
2676
  }
2661
2677
  ));
2662
2678
  }
@@ -2676,40 +2692,38 @@ class R1 {
2676
2692
  countrySearch: a
2677
2693
  } = this.options;
2678
2694
  let u = !1;
2679
- q.ALPHA_UNICODE.test(this.ui.telInput.value) && (u = !0);
2695
+ d1.ALPHA_UNICODE.test(this._getTelInputValue()) && (u = !0);
2680
2696
  const f = (C) => {
2697
+ const y = this._getTelInputValue();
2681
2698
  if (this.isAndroid && (C == null ? void 0 : C.data) === "+" && i && s && a) {
2682
- const v = this.ui.telInput.selectionStart || 0, N = this.ui.telInput.value.substring(
2683
- 0,
2684
- v - 1
2685
- ), T = this.ui.telInput.value.substring(v);
2686
- this.ui.telInput.value = N + T, this._openDropdownWithPlus();
2699
+ const w = this.ui.telInput.selectionStart || 0, H = y.substring(0, w - 1), k = y.substring(w);
2700
+ this._setTelInputValue(H + k), this._openDropdownWithPlus();
2687
2701
  return;
2688
2702
  }
2689
- this._updateCountryFromNumber(this.ui.telInput.value) && this._triggerCountryChange();
2690
- const I = (C == null ? void 0 : C.data) && q.NON_PLUS_NUMERIC.test(C.data), _ = (C == null ? void 0 : C.inputType) === y0.PASTE && this.ui.telInput.value;
2691
- I || _ && !e ? u = !0 : q.NON_PLUS_NUMERIC.test(this.ui.telInput.value) || (u = !1);
2692
- const A = (C == null ? void 0 : C.detail) && C.detail.isSetNumber;
2693
- if ($ && !u && !A) {
2694
- const v = this.ui.telInput.selectionStart || 0, T = this.ui.telInput.value.substring(
2703
+ this._updateCountryFromNumber(y) && this._triggerCountryChange();
2704
+ const _ = (C == null ? void 0 : C.data) && d1.NON_PLUS_NUMERIC.test(C.data), T = (C == null ? void 0 : C.inputType) === _0.PASTE && y;
2705
+ _ || T && !e ? u = !0 : d1.NON_PLUS_NUMERIC.test(y) || (u = !1);
2706
+ const B = (C == null ? void 0 : C.detail) && C.detail.isSetNumber, E = this.userNumeralSet === "ascii";
2707
+ if ($ && !u && !B && E) {
2708
+ const w = this.ui.telInput.selectionStart || 0, k = y.substring(
2695
2709
  0,
2696
- v
2710
+ w
2697
2711
  ).replace(
2698
- q.NON_PLUS_NUMERIC_GLOBAL,
2712
+ d1.NON_PLUS_NUMERIC_GLOBAL,
2699
2713
  ""
2700
- ).length, k = (C == null ? void 0 : C.inputType) === y0.DELETE_FWD, P = this._getFullNumber(), B = I2(
2701
- P,
2702
- this.ui.telInput.value,
2714
+ ).length, W = (C == null ? void 0 : C.inputType) === _0.DELETE_FWD, D = this._getFullNumber(), K = I2(
2715
+ D,
2716
+ y,
2703
2717
  m.utils,
2704
2718
  this.selectedCountryData,
2705
2719
  this.options.separateDialCode
2706
- ), W = _2(
2707
- T,
2708
- B,
2709
- v,
2710
- k
2720
+ ), V = _2(
2721
+ k,
2722
+ K,
2723
+ w,
2724
+ W
2711
2725
  );
2712
- this.ui.telInput.value = B, this.ui.telInput.setSelectionRange(W, W);
2726
+ this._setTelInputValue(K), this.ui.telInput.setSelectionRange(V, V);
2713
2727
  }
2714
2728
  };
2715
2729
  this.ui.telInput.addEventListener(
@@ -2730,11 +2744,11 @@ class R1 {
2730
2744
  return;
2731
2745
  }
2732
2746
  if (e) {
2733
- const f = this.ui.telInput.value, I = !f.startsWith("+") && this.ui.telInput.selectionStart === 0 && u.key === "+", _ = /^[0-9]$/.test(u.key), A = $ ? _ : I || _, v = f.slice(0, this.ui.telInput.selectionStart) + u.key + f.slice(this.ui.telInput.selectionEnd), N = this._getFullNumber(v), T = m.utils.getCoreNumber(
2734
- N,
2747
+ const f = this._getTelInputValue(), y = !f.startsWith("+") && this.ui.telInput.selectionStart === 0 && u.key === "+", _ = this._normaliseNumerals(u.key), T = /^[0-9]$/.test(_), B = $ ? T : y || T, E = this.ui.telInput, w = E.selectionStart, H = E.selectionEnd, k = f.slice(0, w), W = f.slice(H), D = k + u.key + W, K = this._getFullNumber(D), V = m.utils.getCoreNumber(
2748
+ K,
2735
2749
  this.selectedCountryData.iso2
2736
- ), k = this.maxCoreNumberLength && T.length > this.maxCoreNumberLength, B = this._getNewCountryFromNumber(N) !== null;
2737
- (!A || k && !B && !I) && u.preventDefault();
2750
+ ), $1 = this.maxCoreNumberLength && V.length > this.maxCoreNumberLength, a1 = this._getNewCountryFromNumber(K) !== null;
2751
+ (!B || $1 && !a1 && !y) && u.preventDefault();
2738
2752
  }
2739
2753
  }
2740
2754
  };
@@ -2747,21 +2761,24 @@ class R1 {
2747
2761
  if (this.options.strictMode) {
2748
2762
  const e = ($) => {
2749
2763
  $.preventDefault();
2750
- const i = this.ui.telInput, s = i.selectionStart, a = i.selectionEnd, u = i.value.slice(0, s), f = i.value.slice(a), C = this.selectedCountryData.iso2, I = $.clipboardData.getData("text"), _ = s === 0 && a > 0, A = !i.value.startsWith("+") || _, v = I.replace(q.NON_PLUS_NUMERIC_GLOBAL, ""), N = v.startsWith("+"), T = v.replace(/\+/g, ""), k = N && A ? `+${T}` : T;
2751
- let P = u + k + f, B = m.utils.getCoreNumber(P, C);
2752
- for (; B.length === 0 && P.length > 0; )
2753
- P = P.slice(0, -1), B = m.utils.getCoreNumber(P, C);
2754
- if (!B)
2755
- return;
2756
- if (this.maxCoreNumberLength && B.length > this.maxCoreNumberLength)
2757
- if (i.selectionEnd === i.value.length) {
2758
- const y1 = B.length - this.maxCoreNumberLength;
2759
- P = P.slice(0, P.length - y1);
2760
- } else
2764
+ const i = this.ui.telInput, s = i.selectionStart, a = i.selectionEnd, u = this._getTelInputValue(), f = u.slice(0, s), C = u.slice(a), y = this.selectedCountryData.iso2, _ = $.clipboardData.getData("text"), T = this._normaliseNumerals(_), B = s === 0 && a > 0, E = !u.startsWith("+") || B, w = T.replace(d1.NON_PLUS_NUMERIC_GLOBAL, ""), H = w.startsWith("+"), k = w.replace(/\+/g, ""), W = H && E ? `+${k}` : k;
2765
+ let D = f + W + C;
2766
+ if (D.length > 5) {
2767
+ let V = m.utils.getCoreNumber(D, y);
2768
+ for (; V.length === 0 && D.length > 0; )
2769
+ D = D.slice(0, -1), V = m.utils.getCoreNumber(D, y);
2770
+ if (!V)
2761
2771
  return;
2762
- i.value = P;
2763
- const W = s + k.length;
2764
- i.setSelectionRange(W, W), i.dispatchEvent(new InputEvent("input", { bubbles: !0 }));
2772
+ if (this.maxCoreNumberLength && V.length > this.maxCoreNumberLength)
2773
+ if (i.selectionEnd === u.length) {
2774
+ const $1 = V.length - this.maxCoreNumberLength;
2775
+ D = D.slice(0, D.length - $1);
2776
+ } else
2777
+ return;
2778
+ }
2779
+ this._setTelInputValue(D);
2780
+ const K = s + W.length;
2781
+ i.setSelectionRange(K, K), i.dispatchEvent(new InputEvent("input", { bubbles: !0 }));
2765
2782
  };
2766
2783
  this.ui.telInput.addEventListener("paste", e, {
2767
2784
  signal: this.abortController.signal
@@ -2785,11 +2802,11 @@ class R1 {
2785
2802
  //* Open the dropdown.
2786
2803
  _openDropdown() {
2787
2804
  const { fixDropdownWidth: e, countrySearch: $ } = this.options;
2788
- if (this.dropdownAbortController = new AbortController(), e && (this.ui.dropdownContent.style.width = `${this.ui.telInput.offsetWidth}px`), this.ui.dropdownContent.classList.remove(E.HIDE), this.ui.selectedCountry.setAttribute(L.EXPANDED, "true"), this._setDropdownPosition(), $) {
2805
+ if (this.dropdownAbortController = new AbortController(), e && (this.ui.dropdownContent.style.width = `${this.ui.telInput.offsetWidth}px`), this.ui.dropdownContent.classList.remove(N.HIDE), this.ui.selectedCountry.setAttribute(b.EXPANDED, "true"), this._setDropdownPosition(), $) {
2789
2806
  const i = this.ui.countryList.firstElementChild;
2790
2807
  i && (this.ui.highlightListItem(i, !1), this.ui.countryList.scrollTop = 0), this.ui.searchInput.focus();
2791
2808
  }
2792
- this._bindDropdownListeners(), this.ui.dropdownArrow.classList.add(E.ARROW_UP), this._trigger(g1.OPEN_COUNTRY_DROPDOWN);
2809
+ this._bindDropdownListeners(), this.ui.dropdownArrow.classList.add(N.ARROW_UP), this._trigger(_1.OPEN_COUNTRY_DROPDOWN);
2793
2810
  }
2794
2811
  //* Set the dropdown position
2795
2812
  _setDropdownPosition() {
@@ -2815,7 +2832,7 @@ class R1 {
2815
2832
  const $ = (i) => {
2816
2833
  var a;
2817
2834
  const s = (a = i.target) == null ? void 0 : a.closest(
2818
- `.${E.COUNTRY_ITEM}`
2835
+ `.${N.COUNTRY_ITEM}`
2819
2836
  );
2820
2837
  s && this.ui.highlightListItem(s, !1);
2821
2838
  };
@@ -2832,7 +2849,7 @@ class R1 {
2832
2849
  const $ = (i) => {
2833
2850
  var a;
2834
2851
  const s = (a = i.target) == null ? void 0 : a.closest(
2835
- `.${E.COUNTRY_ITEM}`
2852
+ `.${N.COUNTRY_ITEM}`
2836
2853
  );
2837
2854
  s && this._selectListItem(s);
2838
2855
  };
@@ -2868,7 +2885,7 @@ class R1 {
2868
2885
  x.ARROW_DOWN,
2869
2886
  x.ENTER,
2870
2887
  x.ESC
2871
- ].includes(a.key) && (a.preventDefault(), a.stopPropagation(), a.key === x.ARROW_UP || a.key === x.ARROW_DOWN ? this._handleUpDownKey(a.key) : a.key === x.ENTER ? this._handleEnterKey() : a.key === x.ESC && (this._closeDropdown(), this.ui.selectedCountry.focus())), !this.options.countrySearch && q.HIDDEN_SEARCH_CHAR.test(a.key) && (a.stopPropagation(), i && clearTimeout(i), $ += a.key.toLowerCase(), this._searchForCountry($), i = setTimeout(() => {
2888
+ ].includes(a.key) && (a.preventDefault(), a.stopPropagation(), a.key === x.ARROW_UP || a.key === x.ARROW_DOWN ? this._handleUpDownKey(a.key) : a.key === x.ENTER ? this._handleEnterKey() : a.key === x.ESC && (this._closeDropdown(), this.ui.selectedCountry.focus())), !this.options.countrySearch && d1.HIDDEN_SEARCH_CHAR.test(a.key) && (a.stopPropagation(), i && clearTimeout(i), $ += a.key.toLowerCase(), this._searchForCountry($), i = setTimeout(() => {
2872
2889
  $ = "";
2873
2890
  }, i2.HIDDEN_SEARCH_RESET_MS));
2874
2891
  };
@@ -2878,7 +2895,7 @@ class R1 {
2878
2895
  _bindDropdownSearchListeners(e) {
2879
2896
  const $ = () => {
2880
2897
  const u = this.ui.searchInput.value.trim();
2881
- this._filterCountriesByQuery(u), this.ui.searchInput.value ? this.ui.searchClearButton.classList.remove(E.HIDE) : this.ui.searchClearButton.classList.add(E.HIDE);
2898
+ this._filterCountriesByQuery(u), this.ui.searchInput.value ? this.ui.searchClearButton.classList.remove(N.HIDE) : this.ui.searchClearButton.classList.add(N.HIDE);
2882
2899
  };
2883
2900
  let i = null;
2884
2901
  const s = () => {
@@ -2931,7 +2948,7 @@ class R1 {
2931
2948
  u
2932
2949
  );
2933
2950
  }
2934
- $ = this._beforeSetNumber($), this.ui.telInput.value = $;
2951
+ $ = this._beforeSetNumber($), this._setTelInputValue($);
2935
2952
  }
2936
2953
  //* Check if need to select a new country based on the given number
2937
2954
  //* Note: called from _setInitialState, keyup handler, setNumber.
@@ -2955,27 +2972,27 @@ class R1 {
2955
2972
  let i = $ ? e.substring($) : e;
2956
2973
  const s = this.selectedCountryData.iso2, a = this.selectedCountryData.dialCode;
2957
2974
  i = this._ensureHasDialCode(i);
2958
- const u = this._getDialCode(i, !0), f = m1(i);
2975
+ const u = this._getDialCode(i, !0), f = N1(i);
2959
2976
  if (u) {
2960
- const C = m1(u), I = this.dialCodeToIso2Map[C];
2961
- if (I.length === 1)
2962
- return I[0] === s ? null : I[0];
2963
- if (!s && this.defaultCountry && I.includes(this.defaultCountry))
2977
+ const C = N1(u), y = this.dialCodeToIso2Map[C];
2978
+ if (y.length === 1)
2979
+ return y[0] === s ? null : y[0];
2980
+ if (!s && this.defaultCountry && y.includes(this.defaultCountry))
2964
2981
  return this.defaultCountry;
2965
- if (a === S0.NANP && E0(f))
2982
+ if (a === T0.NANP && S0(f))
2966
2983
  return null;
2967
- const { areaCodes: A, priority: v } = this.selectedCountryData;
2968
- if (A) {
2969
- const B = A.map(
2970
- (W) => `${a}${W}`
2984
+ const { areaCodes: T, priority: B } = this.selectedCountryData;
2985
+ if (T) {
2986
+ const W = T.map(
2987
+ (D) => `${a}${D}`
2971
2988
  );
2972
- for (const W of B)
2973
- if (f.startsWith(W))
2989
+ for (const D of W)
2990
+ if (f.startsWith(D))
2974
2991
  return null;
2975
2992
  }
2976
- const T = A && !(v === 0) && f.length > C.length, k = s && I.includes(s) && !T, P = s === I[0];
2977
- if (!k && !P)
2978
- return I[0];
2993
+ const w = T && !(B === 0) && f.length > C.length, H = s && y.includes(s) && !w, k = s === y[0];
2994
+ if (!H && !k)
2995
+ return y[0];
2979
2996
  } else if (i.startsWith("+") && f.length) {
2980
2997
  const C = this.selectedCountryData.dialCode || "";
2981
2998
  return C && C.startsWith(f) ? null : "";
@@ -2988,14 +3005,14 @@ class R1 {
2988
3005
  _setCountry(e) {
2989
3006
  const { separateDialCode: $, showFlags: i, i18n: s } = this.options, a = this.selectedCountryData.iso2 || "";
2990
3007
  if (this.selectedCountryData = e ? this.countryByIso2.get(e) : {}, this.selectedCountryData.iso2 && (this.defaultCountry = this.selectedCountryData.iso2), this.ui.selectedCountry) {
2991
- const u = e && i ? `${E.FLAG} iti__${e}` : `${E.FLAG} ${E.GLOBE}`;
3008
+ const u = e && i ? `${N.FLAG} iti__${e}` : `${N.FLAG} ${N.GLOBE}`;
2992
3009
  let f, C;
2993
3010
  if (e) {
2994
- const { name: I, dialCode: _ } = this.selectedCountryData;
2995
- C = I, f = s.selectedCountryAriaLabel.replace("${countryName}", I).replace("${dialCode}", `+${_}`);
3011
+ const { name: y, dialCode: _ } = this.selectedCountryData;
3012
+ C = y, f = s.selectedCountryAriaLabel.replace("${countryName}", y).replace("${dialCode}", `+${_}`);
2996
3013
  } else
2997
3014
  C = s.noCountrySelected, f = s.noCountrySelected;
2998
- this.ui.selectedCountryInner.className = u, this.ui.selectedCountry.setAttribute("title", C), this.ui.selectedCountry.setAttribute(L.LABEL, f);
3015
+ this.ui.selectedCountryInner.className = u, this.ui.selectedCountry.setAttribute("title", C), this.ui.selectedCountry.setAttribute(b.LABEL, f);
2999
3016
  }
3000
3017
  if ($) {
3001
3018
  const u = this.selectedCountryData.dialCode ? `+${this.selectedCountryData.dialCode}` : "";
@@ -3033,7 +3050,7 @@ class R1 {
3033
3050
  placeholderNumberType: $,
3034
3051
  nationalMode: i,
3035
3052
  customPlaceholder: s
3036
- } = this.options, a = e === M1.AGGRESSIVE || !this.ui.hadInitialPlaceholder && e === M1.POLITE;
3053
+ } = this.options, a = e === x1.AGGRESSIVE || !this.ui.hadInitialPlaceholder && e === x1.POLITE;
3037
3054
  if (m.utils && a) {
3038
3055
  const u = m.utils.numberType[$];
3039
3056
  let f = this.selectedCountryData.iso2 ? m.utils.getExampleNumber(
@@ -3046,23 +3063,27 @@ class R1 {
3046
3063
  }
3047
3064
  //* Called when the user selects a list item from the dropdown.
3048
3065
  _selectListItem(e) {
3049
- const $ = e.dataset[_0.COUNTRY_CODE], i = this._setCountry($);
3066
+ const $ = e.dataset[E0.COUNTRY_CODE], i = this._setCountry($);
3050
3067
  this._closeDropdown();
3051
- const s = e.dataset[_0.DIAL_CODE];
3052
- this._updateDialCode(s), this.options.formatOnDisplay && this._updateValFromNumber(this.ui.telInput.value), this.ui.telInput.focus(), i && this._triggerCountryChange();
3068
+ const s = e.dataset[E0.DIAL_CODE];
3069
+ if (this._updateDialCode(s), this.options.formatOnDisplay) {
3070
+ const a = this._getTelInputValue();
3071
+ this._updateValFromNumber(a);
3072
+ }
3073
+ this.ui.telInput.focus(), i && this._triggerCountryChange();
3053
3074
  }
3054
3075
  //* Close the dropdown and unbind any listeners.
3055
3076
  _closeDropdown() {
3056
- this.ui.dropdownContent.classList.contains(E.HIDE) || (this.ui.dropdownContent.classList.add(E.HIDE), this.ui.selectedCountry.setAttribute(L.EXPANDED, "false"), this.ui.highlightedItem && this.ui.highlightedItem.setAttribute(L.SELECTED, "false"), this.options.countrySearch && this.ui.searchInput.removeAttribute(L.ACTIVE_DESCENDANT), this.ui.dropdownArrow.classList.remove(E.ARROW_UP), this.dropdownAbortController.abort(), this.dropdownAbortController = null, this.options.dropdownContainer && this.ui.dropdown.remove(), this._trigger(g1.CLOSE_COUNTRY_DROPDOWN));
3077
+ this.ui.dropdownContent.classList.contains(N.HIDE) || (this.ui.dropdownContent.classList.add(N.HIDE), this.ui.selectedCountry.setAttribute(b.EXPANDED, "false"), this.ui.highlightedItem && this.ui.highlightedItem.setAttribute(b.SELECTED, "false"), this.options.countrySearch && this.ui.searchInput.removeAttribute(b.ACTIVE_DESCENDANT), this.ui.dropdownArrow.classList.remove(N.ARROW_UP), this.dropdownAbortController.abort(), this.dropdownAbortController = null, this.options.dropdownContainer && this.ui.dropdown.remove(), this._trigger(_1.CLOSE_COUNTRY_DROPDOWN));
3057
3078
  }
3058
3079
  //* Replace any existing dial code with the new one
3059
3080
  //* Note: called from _selectListItem and setCountry
3060
3081
  _updateDialCode(e) {
3061
- const $ = this.ui.telInput.value, i = `+${e}`;
3082
+ const $ = this._getTelInputValue(), i = `+${e}`;
3062
3083
  let s;
3063
3084
  if ($.startsWith("+")) {
3064
3085
  const a = this._getDialCode($);
3065
- a ? s = $.replace(a, i) : s = i, this.ui.telInput.value = s;
3086
+ a ? s = $.replace(a, i) : s = i, this._setTelInputValue(s);
3066
3087
  }
3067
3088
  }
3068
3089
  //* Try and extract a valid international dial code from a full telephone number.
@@ -3089,9 +3110,9 @@ class R1 {
3089
3110
  }
3090
3111
  //* Get the input val, adding the dial code if separateDialCode is enabled.
3091
3112
  _getFullNumber(e) {
3092
- const $ = e || this.ui.telInput.value.trim(), { dialCode: i } = this.selectedCountryData;
3113
+ const $ = e ? this._normaliseNumerals(e) : this._getTelInputValue(), { dialCode: i } = this.selectedCountryData;
3093
3114
  let s;
3094
- const a = m1($);
3115
+ const a = N1($);
3095
3116
  return this.options.separateDialCode && !$.startsWith("+") && i && a ? s = `+${i}` : s = "", s + $;
3096
3117
  }
3097
3118
  //* Remove the dial code if separateDialCode is enabled also cap the length if the input has a maxlength attribute
@@ -3106,18 +3127,22 @@ class R1 {
3106
3127
  }
3107
3128
  //* Trigger the 'countrychange' event.
3108
3129
  _triggerCountryChange() {
3109
- this._trigger(g1.COUNTRY_CHANGE);
3130
+ this._trigger(_1.COUNTRY_CHANGE);
3110
3131
  }
3111
3132
  //**************************
3112
3133
  //* SECRET PUBLIC METHODS
3113
3134
  //**************************
3114
3135
  //* This is called when the geoip call returns.
3115
3136
  handleAutoCountry() {
3116
- this.options.initialCountry === T1.AUTO && m.autoCountry && (this.defaultCountry = m.autoCountry, this.selectedCountryData.iso2 || this.ui.selectedCountryInner.classList.contains(E.GLOBE) || this.setCountry(this.defaultCountry), this.resolveAutoCountryPromise());
3137
+ this.options.initialCountry === P1.AUTO && m.autoCountry && (this.defaultCountry = m.autoCountry, this.selectedCountryData.iso2 || this.ui.selectedCountryInner.classList.contains(N.GLOBE) || this.setCountry(this.defaultCountry), this.resolveAutoCountryPromise());
3117
3138
  }
3118
3139
  //* This is called when the utils request completes.
3119
3140
  handleUtils() {
3120
- m.utils && (this.ui.telInput.value && this._updateValFromNumber(this.ui.telInput.value), this.selectedCountryData.iso2 && (this._updatePlaceholder(), this._updateMaxLength())), this.resolveUtilsScriptPromise();
3141
+ if (m.utils) {
3142
+ const e = this._getTelInputValue();
3143
+ e && this._updateValFromNumber(e), this.selectedCountryData.iso2 && (this._updatePlaceholder(), this._updateMaxLength());
3144
+ }
3145
+ this.resolveUtilsScriptPromise();
3121
3146
  }
3122
3147
  //********************
3123
3148
  //* PUBLIC METHODS
@@ -3136,12 +3161,12 @@ class R1 {
3136
3161
  //* Format the number to the given format.
3137
3162
  getNumber(e) {
3138
3163
  if (m.utils) {
3139
- const { iso2: $ } = this.selectedCountryData;
3140
- return m.utils.formatNumber(
3141
- this._getFullNumber(),
3164
+ const { iso2: $ } = this.selectedCountryData, i = this._getFullNumber(), s = m.utils.formatNumber(
3165
+ i,
3142
3166
  $,
3143
3167
  e
3144
3168
  );
3169
+ return this._mapAsciiToUserNumerals(s);
3145
3170
  }
3146
3171
  return "";
3147
3172
  }
@@ -3150,7 +3175,7 @@ class R1 {
3150
3175
  return m.utils ? m.utils.getNumberType(
3151
3176
  this._getFullNumber(),
3152
3177
  this.selectedCountryData.iso2
3153
- ) : I0.UNKNOWN_NUMBER_TYPE;
3178
+ ) : N0.UNKNOWN_NUMBER_TYPE;
3154
3179
  }
3155
3180
  //* Get the country data for the currently selected country.
3156
3181
  getSelectedCountryData() {
@@ -3162,14 +3187,14 @@ class R1 {
3162
3187
  const { iso2: e } = this.selectedCountryData;
3163
3188
  return m.utils.getValidationError(this._getFullNumber(), e);
3164
3189
  }
3165
- return I0.UNKNOWN_VALIDATION_ERROR;
3190
+ return N0.UNKNOWN_VALIDATION_ERROR;
3166
3191
  }
3167
3192
  //* Validate the input val using number length only
3168
3193
  isValidNumber() {
3169
3194
  const { dialCode: e, iso2: $ } = this.selectedCountryData;
3170
- if (e === b1.DIAL_CODE && m.utils) {
3195
+ if (e === v1.DIAL_CODE && m.utils) {
3171
3196
  const i = this._getFullNumber(), s = m.utils.getCoreNumber(i, $);
3172
- if (s[0] === b1.MOBILE_PREFIX && s.length !== b1.MOBILE_CORE_LENGTH)
3197
+ if (s[0] === v1.MOBILE_PREFIX && s.length !== v1.MOBILE_CORE_LENGTH)
3173
3198
  return !1;
3174
3199
  }
3175
3200
  return this._validateNumber(!1);
@@ -3191,7 +3216,7 @@ class R1 {
3191
3216
  return null;
3192
3217
  if (!this.selectedCountryData.iso2)
3193
3218
  return !1;
3194
- const $ = (u) => e ? this._utilsIsValidNumber(u) : this._utilsIsPossibleNumber(u), i = this._getFullNumber(), s = i.search(q.ALPHA_UNICODE);
3219
+ const $ = (u) => e ? this._utilsIsValidNumber(u) : this._utilsIsPossibleNumber(u), i = this._getFullNumber(), s = i.search(d1.ALPHA_UNICODE);
3195
3220
  if (s > -1 && !this.options.allowPhonewords) {
3196
3221
  const u = i.substring(0, s), f = $(u), C = $(i);
3197
3222
  return f && C;
@@ -3208,15 +3233,21 @@ class R1 {
3208
3233
  //* Update the selected country, and update the input val accordingly.
3209
3234
  setCountry(e) {
3210
3235
  const $ = e == null ? void 0 : e.toLowerCase();
3211
- if (!P1($))
3236
+ if (!O1($))
3212
3237
  throw new Error(`Invalid country code: '${$}'`);
3213
3238
  const i = this.selectedCountryData.iso2;
3214
- (e && $ !== i || !e && i) && (this._setCountry($), this._updateDialCode(this.selectedCountryData.dialCode), this.options.formatOnDisplay && this._updateValFromNumber(this.ui.telInput.value), this._triggerCountryChange());
3239
+ if (e && $ !== i || !e && i) {
3240
+ if (this._setCountry($), this._updateDialCode(this.selectedCountryData.dialCode), this.options.formatOnDisplay) {
3241
+ const a = this._getTelInputValue();
3242
+ this._updateValFromNumber(a);
3243
+ }
3244
+ this._triggerCountryChange();
3245
+ }
3215
3246
  }
3216
3247
  //* Set the input value and update the country.
3217
3248
  setNumber(e) {
3218
- const $ = this._updateCountryFromNumber(e);
3219
- this._updateValFromNumber(e), $ && this._triggerCountryChange(), this._trigger(g1.INPUT, { isSetNumber: !0 });
3249
+ const $ = this._normaliseNumerals(e), i = this._updateCountryFromNumber($);
3250
+ this._updateValFromNumber($), i && this._triggerCountryChange(), this._trigger(_1.INPUT, { isSetNumber: !0 });
3220
3251
  }
3221
3252
  //* Set the placeholder number typ
3222
3253
  setPlaceholderNumberType(e) {
@@ -3226,7 +3257,7 @@ class R1 {
3226
3257
  this.ui.telInput.disabled = e, e ? this.ui.selectedCountry.setAttribute("disabled", "true") : this.ui.selectedCountry.removeAttribute("disabled");
3227
3258
  }
3228
3259
  }
3229
- const L2 = (h) => {
3260
+ const b2 = (h) => {
3230
3261
  if (!m.utils && !m.startedLoadingUtilsScript) {
3231
3262
  let e;
3232
3263
  if (typeof h == "function")
@@ -3247,20 +3278,20 @@ const L2 = (h) => {
3247
3278
  throw new TypeError(
3248
3279
  "The loader function passed to attachUtils did not resolve to a module object with utils as its default export."
3249
3280
  );
3250
- return m.utils = i, r1("handleUtils"), !0;
3281
+ return m.utils = i, l1("handleUtils"), !0;
3251
3282
  }).catch(($) => {
3252
- throw r1("rejectUtilsScriptPromise", $), $;
3283
+ throw l1("rejectUtilsScriptPromise", $), $;
3253
3284
  });
3254
3285
  }
3255
3286
  return null;
3256
- }, r1 = (h, ...e) => {
3287
+ }, l1 = (h, ...e) => {
3257
3288
  Object.values(m.instances).forEach(($) => {
3258
3289
  const i = $[h];
3259
3290
  typeof i == "function" && i.apply($, e);
3260
3291
  });
3261
3292
  }, m = Object.assign(
3262
3293
  (h, e) => {
3263
- const $ = new R1(h, e);
3294
+ const $ = new B1(h, e);
3264
3295
  return m.instances[$.id] = $, h.iti = $, $;
3265
3296
  },
3266
3297
  {
@@ -3268,7 +3299,7 @@ const L2 = (h) => {
3268
3299
  //* Using a static var like this allows us to mock it in the tests.
3269
3300
  documentReady: () => document.readyState === "complete",
3270
3301
  //* Get the country data object.
3271
- getCountryData: () => Q,
3302
+ getCountryData: () => t1,
3272
3303
  //* A getter for the plugin instance.
3273
3304
  getInstance: (h) => {
3274
3305
  const e = h.dataset.intlTelInputId;
@@ -3276,10 +3307,10 @@ const L2 = (h) => {
3276
3307
  },
3277
3308
  //* A map from instance ID to instance object.
3278
3309
  instances: {},
3279
- attachUtils: L2,
3310
+ attachUtils: b2,
3280
3311
  startedLoadingUtilsScript: !1,
3281
3312
  startedLoadingAutoCountry: !1,
3282
- version: "25.12.6"
3313
+ version: "25.13.1"
3283
3314
  }
3284
3315
  );
3285
3316
  (function() {
@@ -3325,7 +3356,7 @@ const L2 = (h) => {
3325
3356
  }
3326
3357
  new f();
3327
3358
  const C = {};
3328
- class I {
3359
+ class y {
3329
3360
  constructor() {
3330
3361
  if (C !== C) throw Error("SafeStyleSheet is not meant to be built directly");
3331
3362
  }
@@ -3333,9 +3364,9 @@ const L2 = (h) => {
3333
3364
  return "";
3334
3365
  }
3335
3366
  }
3336
- new I();
3367
+ new y();
3337
3368
  const _ = {};
3338
- class A {
3369
+ class T {
3339
3370
  constructor() {
3340
3371
  var t = h.trustedTypes && h.trustedTypes.emptyHTML || "";
3341
3372
  if (_ !== _) throw Error("SafeHtml is not meant to be built directly");
@@ -3345,65 +3376,65 @@ const L2 = (h) => {
3345
3376
  return this.g.toString();
3346
3377
  }
3347
3378
  }
3348
- new A();
3349
- function v(d, t) {
3379
+ new T();
3380
+ function B(d, t) {
3350
3381
  switch (this.g = d, this.l = !!t.aa, this.h = t.i, this.s = t.type, this.o = !1, this.h) {
3382
+ case H:
3351
3383
  case k:
3352
- case P:
3353
- case B:
3354
3384
  case W:
3355
- case y1:
3356
- case T:
3357
- case N:
3385
+ case D:
3386
+ case K:
3387
+ case w:
3388
+ case E:
3358
3389
  this.o = !0;
3359
3390
  }
3360
3391
  this.j = t.defaultValue;
3361
3392
  }
3362
- var N = 1, T = 2, k = 3, P = 4, B = 6, W = 16, y1 = 18;
3363
- function b0(d, t) {
3393
+ var E = 1, w = 2, H = 3, k = 4, W = 6, D = 16, K = 18;
3394
+ function V(d, t) {
3364
3395
  for (this.h = d, this.g = {}, d = 0; d < t.length; d++) {
3365
3396
  var n = t[d];
3366
3397
  this.g[n.g] = n;
3367
3398
  }
3368
3399
  }
3369
- function T0(d) {
3400
+ function $1(d) {
3370
3401
  return d = i(d.g), d.sort(function(t, n) {
3371
3402
  return t.g - n.g;
3372
3403
  }), d;
3373
3404
  }
3374
- function U() {
3405
+ function R() {
3375
3406
  this.h = {}, this.j = this.m().g, this.g = this.l = null;
3376
3407
  }
3377
- U.prototype.has = function(d) {
3378
- return G(this, d.g);
3379
- }, U.prototype.get = function(d, t) {
3408
+ R.prototype.has = function(d) {
3409
+ return U(this, d.g);
3410
+ }, R.prototype.get = function(d, t) {
3380
3411
  return g(this, d.g, t);
3381
- }, U.prototype.set = function(d, t) {
3382
- M(this, d.g, t);
3383
- }, U.prototype.add = function(d, t) {
3384
- x1(this, d.g, t);
3412
+ }, R.prototype.set = function(d, t) {
3413
+ P(this, d.g, t);
3414
+ }, R.prototype.add = function(d, t) {
3415
+ U1(this, d.g, t);
3385
3416
  };
3386
- function O1(d, t) {
3387
- for (var n = T0(d.m()), r = 0; r < n.length; r++) {
3417
+ function a1(d, t) {
3418
+ for (var n = $1(d.m()), r = 0; r < n.length; r++) {
3388
3419
  var o = n[r], l = o.g;
3389
- if (G(t, l)) {
3420
+ if (U(t, l)) {
3390
3421
  d.g && delete d.g[o.g];
3391
3422
  var c = o.h == 11 || o.h == 10;
3392
3423
  if (o.l) {
3393
3424
  o = O(t, l);
3394
- for (var p = 0; p < o.length; p++) x1(d, l, c ? o[p].clone() : o[p]);
3395
- } else o = o1(t, l), c ? (c = o1(d, l)) ? O1(c, o) : M(d, l, o.clone()) : M(d, l, o);
3425
+ for (var p = 0; p < o.length; p++) U1(d, l, c ? o[p].clone() : o[p]);
3426
+ } else o = c1(t, l), c ? (c = c1(d, l)) ? a1(c, o) : P(d, l, o.clone()) : P(d, l, o);
3396
3427
  }
3397
3428
  }
3398
3429
  }
3399
- U.prototype.clone = function() {
3430
+ R.prototype.clone = function() {
3400
3431
  var d = new this.constructor();
3401
- return d != this && (d.h = {}, d.g && (d.g = {}), O1(d, this)), d;
3432
+ return d != this && (d.h = {}, d.g && (d.g = {}), a1(d, this)), d;
3402
3433
  };
3403
- function G(d, t) {
3434
+ function U(d, t) {
3404
3435
  return d.h[t] != null;
3405
3436
  }
3406
- function o1(d, t) {
3437
+ function c1(d, t) {
3407
3438
  var n = d.h[t];
3408
3439
  if (n == null) return null;
3409
3440
  if (d.l) {
@@ -3420,11 +3451,11 @@ const L2 = (h) => {
3420
3451
  return n;
3421
3452
  }
3422
3453
  function g(d, t, n) {
3423
- var r = o1(d, t);
3454
+ var r = c1(d, t);
3424
3455
  return d.j[t].l ? r[n || 0] : r;
3425
3456
  }
3426
3457
  function S(d, t) {
3427
- if (G(d, t)) d = g(d, t);
3458
+ if (U(d, t)) d = g(d, t);
3428
3459
  else d: {
3429
3460
  if (d = d.j[t], d.j === void 0) if (t = d.s, t === Boolean) d.j = !1;
3430
3461
  else if (t === Number) d.j = 0;
@@ -3438,105 +3469,105 @@ const L2 = (h) => {
3438
3469
  return d;
3439
3470
  }
3440
3471
  function O(d, t) {
3441
- return o1(d, t) || [];
3472
+ return c1(d, t) || [];
3442
3473
  }
3443
- function j(d, t) {
3444
- return d.j[t].l ? G(d, t) ? d.h[t].length : 0 : G(d, t) ? 1 : 0;
3474
+ function z(d, t) {
3475
+ return d.j[t].l ? U(d, t) ? d.h[t].length : 0 : U(d, t) ? 1 : 0;
3445
3476
  }
3446
- function M(d, t, n) {
3477
+ function P(d, t, n) {
3447
3478
  d.h[t] = n, d.g && (d.g[t] = n);
3448
3479
  }
3449
- function x1(d, t, n) {
3480
+ function U1(d, t, n) {
3450
3481
  d.h[t] || (d.h[t] = []), d.h[t].push(n), d.g && delete d.g[t];
3451
3482
  }
3452
- function u1(d, t) {
3483
+ function h1(d, t) {
3453
3484
  var n = [], r;
3454
- for (r in t) r != 0 && n.push(new v(r, t[r]));
3455
- return new b0(d, n);
3485
+ for (r in t) r != 0 && n.push(new B(r, t[r]));
3486
+ return new V(d, n);
3456
3487
  }
3457
- function l1() {
3488
+ function f1() {
3458
3489
  }
3459
- l1.prototype.g = function(d) {
3490
+ f1.prototype.g = function(d) {
3460
3491
  throw new d.h(), Error("Unimplemented");
3461
- }, l1.prototype.h = function(d, t) {
3462
- if (d.h == 11 || d.h == 10) return t instanceof U ? t : this.g(d.s.prototype.m(), t);
3463
- if (d.h == 14) return typeof t == "string" && B1.test(t) && (d = Number(t), 0 < d) ? d : t;
3492
+ }, f1.prototype.h = function(d, t) {
3493
+ if (d.h == 11 || d.h == 10) return t instanceof R ? t : this.g(d.s.prototype.m(), t);
3494
+ if (d.h == 14) return typeof t == "string" && G1.test(t) && (d = Number(t), 0 < d) ? d : t;
3464
3495
  if (!d.o) return t;
3465
3496
  if (d = d.s, d === String) {
3466
3497
  if (typeof t == "number") return String(t);
3467
- } else if (d === Number && typeof t == "string" && (t === "Infinity" || t === "-Infinity" || t === "NaN" || B1.test(t))) return Number(t);
3498
+ } else if (d === Number && typeof t == "string" && (t === "Infinity" || t === "-Infinity" || t === "NaN" || G1.test(t))) return Number(t);
3468
3499
  return t;
3469
3500
  };
3470
- var B1 = /^-?[0-9]+$/;
3471
- function I1() {
3501
+ var G1 = /^-?[0-9]+$/;
3502
+ function E1() {
3472
3503
  }
3473
- $(I1, l1), I1.prototype.g = function(d, t) {
3504
+ $(E1, f1), E1.prototype.g = function(d, t) {
3474
3505
  return d = new d.h(), d.l = this, d.h = t, d.g = {}, d;
3475
3506
  };
3476
- function t1() {
3507
+ function n1() {
3477
3508
  }
3478
- $(t1, I1), t1.prototype.h = function(d, t) {
3479
- return d.h == 8 ? !!t : l1.prototype.h.apply(this, arguments);
3480
- }, t1.prototype.g = function(d, t) {
3481
- return t1.ma.g.call(this, d, t);
3509
+ $(n1, E1), n1.prototype.h = function(d, t) {
3510
+ return d.h == 8 ? !!t : f1.prototype.h.apply(this, arguments);
3511
+ }, n1.prototype.g = function(d, t) {
3512
+ return n1.ma.g.call(this, d, t);
3482
3513
  };
3483
- function D(d, t) {
3514
+ function v(d, t) {
3484
3515
  d != null && this.g.apply(this, arguments);
3485
3516
  }
3486
- D.prototype.h = "", D.prototype.set = function(d) {
3517
+ v.prototype.h = "", v.prototype.set = function(d) {
3487
3518
  this.h = "" + d;
3488
- }, D.prototype.g = function(d, t, n) {
3519
+ }, v.prototype.g = function(d, t, n) {
3489
3520
  if (this.h += String(d), t != null) for (let r = 1; r < arguments.length; r++) this.h += arguments[r];
3490
3521
  return this;
3491
3522
  };
3492
- function H(d) {
3523
+ function G(d) {
3493
3524
  d.h = "";
3494
3525
  }
3495
- D.prototype.toString = function() {
3526
+ v.prototype.toString = function() {
3496
3527
  return this.h;
3497
3528
  };
3498
- function Z() {
3499
- U.call(this);
3529
+ function X() {
3530
+ R.call(this);
3500
3531
  }
3501
- $(Z, U);
3502
- var U1 = null;
3503
- function b() {
3504
- U.call(this);
3532
+ $(X, R);
3533
+ var H1 = null;
3534
+ function A() {
3535
+ R.call(this);
3505
3536
  }
3506
- $(b, U);
3507
- var G1 = null;
3508
- function J() {
3509
- U.call(this);
3537
+ $(A, R);
3538
+ var k1 = null;
3539
+ function q() {
3540
+ R.call(this);
3510
3541
  }
3511
- $(J, U);
3512
- var H1 = null;
3513
- Z.prototype.m = function() {
3514
- var d = U1;
3515
- return d || (U1 = d = u1(Z, { 0: { name: "NumberFormat", ia: "i18n.phonenumbers.NumberFormat" }, 1: { name: "pattern", required: !0, i: 9, type: String }, 2: { name: "format", required: !0, i: 9, type: String }, 3: { name: "leading_digits_pattern", aa: !0, i: 9, type: String }, 4: { name: "national_prefix_formatting_rule", i: 9, type: String }, 6: { name: "national_prefix_optional_when_formatting", i: 8, defaultValue: !1, type: Boolean }, 5: { name: "domestic_carrier_code_formatting_rule", i: 9, type: String } })), d;
3516
- }, Z.m = Z.prototype.m, b.prototype.m = function() {
3517
- var d = G1;
3518
- return d || (G1 = d = u1(b, { 0: { name: "PhoneNumberDesc", ia: "i18n.phonenumbers.PhoneNumberDesc" }, 2: { name: "national_number_pattern", i: 9, type: String }, 9: { name: "possible_length", aa: !0, i: 5, type: Number }, 10: { name: "possible_length_local_only", aa: !0, i: 5, type: Number }, 6: { name: "example_number", i: 9, type: String } })), d;
3519
- }, b.m = b.prototype.m, J.prototype.m = function() {
3542
+ $(q, R);
3543
+ var V1 = null;
3544
+ X.prototype.m = function() {
3520
3545
  var d = H1;
3521
- return d || (H1 = d = u1(J, {
3546
+ return d || (H1 = d = h1(X, { 0: { name: "NumberFormat", ia: "i18n.phonenumbers.NumberFormat" }, 1: { name: "pattern", required: !0, i: 9, type: String }, 2: { name: "format", required: !0, i: 9, type: String }, 3: { name: "leading_digits_pattern", aa: !0, i: 9, type: String }, 4: { name: "national_prefix_formatting_rule", i: 9, type: String }, 6: { name: "national_prefix_optional_when_formatting", i: 8, defaultValue: !1, type: Boolean }, 5: { name: "domestic_carrier_code_formatting_rule", i: 9, type: String } })), d;
3547
+ }, X.m = X.prototype.m, A.prototype.m = function() {
3548
+ var d = k1;
3549
+ return d || (k1 = d = h1(A, { 0: { name: "PhoneNumberDesc", ia: "i18n.phonenumbers.PhoneNumberDesc" }, 2: { name: "national_number_pattern", i: 9, type: String }, 9: { name: "possible_length", aa: !0, i: 5, type: Number }, 10: { name: "possible_length_local_only", aa: !0, i: 5, type: Number }, 6: { name: "example_number", i: 9, type: String } })), d;
3550
+ }, A.m = A.prototype.m, q.prototype.m = function() {
3551
+ var d = V1;
3552
+ return d || (V1 = d = h1(q, {
3522
3553
  0: { name: "PhoneMetadata", ia: "i18n.phonenumbers.PhoneMetadata" },
3523
- 1: { name: "general_desc", i: 11, type: b },
3524
- 2: { name: "fixed_line", i: 11, type: b },
3525
- 3: { name: "mobile", i: 11, type: b },
3526
- 4: { name: "toll_free", i: 11, type: b },
3527
- 5: { name: "premium_rate", i: 11, type: b },
3528
- 6: { name: "shared_cost", i: 11, type: b },
3529
- 7: { name: "personal_number", i: 11, type: b },
3530
- 8: { name: "voip", i: 11, type: b },
3531
- 21: { name: "pager", i: 11, type: b },
3532
- 25: { name: "uan", i: 11, type: b },
3533
- 27: { name: "emergency", i: 11, type: b },
3534
- 28: { name: "voicemail", i: 11, type: b },
3535
- 29: { name: "short_code", i: 11, type: b },
3536
- 30: { name: "standard_rate", i: 11, type: b },
3537
- 31: { name: "carrier_specific", i: 11, type: b },
3538
- 33: { name: "sms_services", i: 11, type: b },
3539
- 24: { name: "no_international_dialling", i: 11, type: b },
3554
+ 1: { name: "general_desc", i: 11, type: A },
3555
+ 2: { name: "fixed_line", i: 11, type: A },
3556
+ 3: { name: "mobile", i: 11, type: A },
3557
+ 4: { name: "toll_free", i: 11, type: A },
3558
+ 5: { name: "premium_rate", i: 11, type: A },
3559
+ 6: { name: "shared_cost", i: 11, type: A },
3560
+ 7: { name: "personal_number", i: 11, type: A },
3561
+ 8: { name: "voip", i: 11, type: A },
3562
+ 21: { name: "pager", i: 11, type: A },
3563
+ 25: { name: "uan", i: 11, type: A },
3564
+ 27: { name: "emergency", i: 11, type: A },
3565
+ 28: { name: "voicemail", i: 11, type: A },
3566
+ 29: { name: "short_code", i: 11, type: A },
3567
+ 30: { name: "standard_rate", i: 11, type: A },
3568
+ 31: { name: "carrier_specific", i: 11, type: A },
3569
+ 33: { name: "sms_services", i: 11, type: A },
3570
+ 24: { name: "no_international_dialling", i: 11, type: A },
3540
3571
  9: { name: "id", required: !0, i: 9, type: String },
3541
3572
  10: { name: "country_code", i: 5, type: Number },
3542
3573
  11: { name: "international_prefix", i: 9, type: String },
@@ -3550,26 +3581,26 @@ const L2 = (h) => {
3550
3581
  },
3551
3582
  16: { name: "national_prefix_transform_rule", i: 9, type: String },
3552
3583
  18: { name: "same_mobile_and_fixed_line_pattern", i: 8, defaultValue: !1, type: Boolean },
3553
- 19: { name: "number_format", aa: !0, i: 11, type: Z },
3554
- 20: { name: "intl_number_format", aa: !0, i: 11, type: Z },
3584
+ 19: { name: "number_format", aa: !0, i: 11, type: X },
3585
+ 20: { name: "intl_number_format", aa: !0, i: 11, type: X },
3555
3586
  22: { name: "main_country_for_code", i: 8, defaultValue: !1, type: Boolean },
3556
3587
  23: { name: "leading_digits", i: 9, type: String }
3557
3588
  })), d;
3558
- }, J.m = J.prototype.m;
3559
- function Y() {
3560
- U.call(this);
3589
+ }, q.m = q.prototype.m;
3590
+ function Z() {
3591
+ R.call(this);
3561
3592
  }
3562
- $(Y, U);
3563
- var k1 = null, D0 = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
3564
- Y.prototype.m = function() {
3565
- var d = k1;
3566
- return d || (k1 = d = u1(Y, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: !0, i: 5, type: Number }, 2: { name: "national_number", required: !0, 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: D0 }, 7: {
3593
+ $(Z, R);
3594
+ var F1 = null, D0 = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
3595
+ Z.prototype.m = function() {
3596
+ var d = F1;
3597
+ return d || (F1 = d = h1(Z, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: !0, i: 5, type: Number }, 2: { name: "national_number", required: !0, 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: D0 }, 7: {
3567
3598
  name: "preferred_domestic_carrier_code",
3568
3599
  i: 9,
3569
3600
  type: String
3570
3601
  } })), d;
3571
- }, Y.ctor = Y, Y.ctor.m = Y.prototype.m;
3572
- var e1 = {
3602
+ }, Z.ctor = Z, Z.ctor.m = Z.prototype.m;
3603
+ var i1 = {
3573
3604
  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(" "),
3574
3605
  7: ["RU", "KZ"],
3575
3606
  20: ["EG"],
@@ -3785,7 +3816,7 @@ const L2 = (h) => {
3785
3816
  995: ["GE"],
3786
3817
  996: ["KG"],
3787
3818
  998: ["UZ"]
3788
- }, F1 = {
3819
+ }, W1 = {
3789
3820
  AC: [, [
3790
3821
  ,
3791
3822
  ,
@@ -8851,13 +8882,13 @@ const L2 = (h) => {
8851
8882
  ], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "001", 888, , , , , , , , 1, [[, "(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "\\d{11}", , , , "12345678901"], , , [, , , , , , , , , [-1]]],
8852
8883
  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]]]
8853
8884
  };
8854
- function R() {
8885
+ function M() {
8855
8886
  this.g = {};
8856
8887
  }
8857
- R.h = void 0, R.g = function() {
8858
- return R.h ? R.h : R.h = new R();
8888
+ M.h = void 0, M.g = function() {
8889
+ return M.h ? M.h : M.h = new M();
8859
8890
  };
8860
- var _1 = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9" }, v0 = {
8891
+ var S1 = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9" }, v0 = {
8861
8892
  0: "0",
8862
8893
  1: "1",
8863
8894
  2: "2",
@@ -8938,54 +8969,54 @@ const L2 = (h) => {
8938
8969
  X: "9",
8939
8970
  Y: "9",
8940
8971
  Z: "9"
8941
- }, M0 = RegExp("[++]+"), $1 = RegExp("^[++]+"), W1 = RegExp("([0-90-9٠-٩۰-۹])"), R0 = RegExp("[++0-90-9٠-٩۰-۹]"), O0 = /[\\\/] *x/, x0 = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), B0 = /(?:.*?[A-Za-z]){3}.*/, U0 = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), G0 = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
8942
- function d1(d) {
8972
+ }, M0 = RegExp("[++]+"), s1 = RegExp("^[++]+"), K1 = RegExp("([0-90-9٠-٩۰-۹])"), R0 = RegExp("[++0-90-9٠-٩۰-۹]"), O0 = /[\\\/] *x/, x0 = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), B0 = /(?:.*?[A-Za-z]){3}.*/, U0 = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), G0 = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
8973
+ function e1(d) {
8943
8974
  return "([0-90-9٠-٩۰-۹]{1," + d + "})";
8944
8975
  }
8945
- function V1() {
8946
- return ";ext=" + d1("20") + "|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*" + (d1("20") + "#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*") + (d1("9") + "#?|[- ]+") + (d1("6") + "#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*") + (d1("15") + "#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*") + (d1("9") + "#?");
8947
- }
8948
- var K1 = new RegExp("(?:" + V1() + ")$", "i"), H0 = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + V1() + ")?$", "i"), k0 = /(\$\d)/, F0 = /^\(?\$1\)?$/;
8949
- function j1(d) {
8950
- return 2 > d.length ? !1 : V(H0, d);
8951
- }
8952
- function Y1(d) {
8953
- return V(B0, d) ? a1(d, P0) : a1(d, _1);
8976
+ function j1() {
8977
+ return ";ext=" + e1("20") + "|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*" + (e1("20") + "#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*") + (e1("9") + "#?|[- ]+") + (e1("6") + "#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*") + (e1("15") + "#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*") + (e1("9") + "#?");
8954
8978
  }
8979
+ var Y1 = new RegExp("(?:" + j1() + ")$", "i"), H0 = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + j1() + ")?$", "i"), k0 = /(\$\d)/, V0 = /^\(?\$1\)?$/;
8955
8980
  function z1(d) {
8956
- var t = Y1(d.toString());
8957
- H(d), d.g(t);
8981
+ return 2 > d.length ? !1 : j(H0, d);
8958
8982
  }
8959
8983
  function Z1(d) {
8960
- return d != null && (j(d, 9) != 1 || O(d, 9)[0] != -1);
8984
+ return j(B0, d) ? p1(d, P0) : p1(d, S1);
8961
8985
  }
8962
- function a1(d, t) {
8963
- for (var n = new D(), r, o = d.length, l = 0; l < o; ++l) r = d.charAt(l), r = t[r.toUpperCase()], r != null && n.g(r);
8986
+ function J1(d) {
8987
+ var t = Z1(d.toString());
8988
+ G(d), d.g(t);
8989
+ }
8990
+ function X1(d) {
8991
+ return d != null && (z(d, 9) != 1 || O(d, 9)[0] != -1);
8992
+ }
8993
+ function p1(d, t) {
8994
+ for (var n = new v(), r, o = d.length, l = 0; l < o; ++l) r = d.charAt(l), r = t[r.toUpperCase()], r != null && n.g(r);
8964
8995
  return n.toString();
8965
8996
  }
8966
- function J1(d) {
8967
- return d.length == 0 || F0.test(d);
8997
+ function q1(d) {
8998
+ return d.length == 0 || V0.test(d);
8968
8999
  }
8969
- function c1(d) {
8970
- return d != null && isNaN(d) && d.toUpperCase() in F1;
9000
+ function C1(d) {
9001
+ return d != null && isNaN(d) && d.toUpperCase() in W1;
8971
9002
  }
8972
- R.prototype.format = function(d, t) {
8973
- if (g(d, 2) == 0 && G(d, 5)) {
9003
+ M.prototype.format = function(d, t) {
9004
+ if (g(d, 2) == 0 && U(d, 5)) {
8974
9005
  var n = S(d, 5);
8975
9006
  if (0 < n.length) return n;
8976
9007
  }
8977
9008
  n = S(d, 1);
8978
- var r = i1(d);
8979
- if (t == 0) return X1(n, 0, r, "");
8980
- if (!(n in e1)) return r;
8981
- var o = n1(this, n, s1(n));
8982
- d = G(d, 3) && g(d, 3).length != 0 ? t == 3 ? ";ext=" + g(d, 3) : G(o, 13) ? g(o, 13) + S(d, 3) : " ext. " + S(d, 3) : "";
9009
+ var r = o1(d);
9010
+ if (t == 0) return Q1(n, 0, r, "");
9011
+ if (!(n in i1)) return r;
9012
+ var o = r1(this, n, u1(n));
9013
+ d = U(d, 3) && g(d, 3).length != 0 ? t == 3 ? ";ext=" + g(d, 3) : U(o, 13) ? g(o, 13) + S(d, 3) : " ext. " + S(d, 3) : "";
8983
9014
  d: {
8984
9015
  o = O(o, 20).length == 0 || t == 2 ? O(o, 19) : O(o, 20);
8985
9016
  for (var l, c = o.length, p = 0; p < c; ++p) {
8986
9017
  l = o[p];
8987
- var y = j(l, 3);
8988
- if ((y == 0 || r.search(g(l, 3, y - 1)) == 0) && (y = new RegExp(g(l, 1)), V(y, r))) {
9018
+ var I = z(l, 3);
9019
+ if ((I == 0 || r.search(g(l, 3, I - 1)) == 0) && (I = new RegExp(g(l, 1)), j(I, r))) {
8989
9020
  o = l;
8990
9021
  break d;
8991
9022
  }
@@ -8995,17 +9026,17 @@ const L2 = (h) => {
8995
9026
  return o != null && (c = o, o = S(c, 2), l = new RegExp(g(c, 1)), S(
8996
9027
  c,
8997
9028
  5
8998
- ), c = S(c, 4), r = t == 2 && c != null && 0 < c.length ? r.replace(l, o.replace(k0, c)) : r.replace(l, o), t == 3 && (r = r.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"), ""), r = r.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), X1(n, t, r, d);
9029
+ ), c = S(c, 4), r = t == 2 && c != null && 0 < c.length ? r.replace(l, o.replace(k0, c)) : r.replace(l, o), t == 3 && (r = r.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"), ""), r = r.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), Q1(n, t, r, d);
8999
9030
  };
9000
- function n1(d, t, n) {
9001
- return n == "001" ? z(d, "" + t) : z(d, n);
9031
+ function r1(d, t, n) {
9032
+ return n == "001" ? J(d, "" + t) : J(d, n);
9002
9033
  }
9003
- function i1(d) {
9004
- if (!G(d, 2)) return "";
9034
+ function o1(d) {
9035
+ if (!U(d, 2)) return "";
9005
9036
  var t = "" + g(d, 2);
9006
- return G(d, 4) && g(d, 4) && 0 < S(d, 8) ? Array(S(d, 8) + 1).join("0") + t : t;
9037
+ return U(d, 4) && g(d, 4) && 0 < S(d, 8) ? Array(S(d, 8) + 1).join("0") + t : t;
9007
9038
  }
9008
- function X1(d, t, n, r) {
9039
+ function Q1(d, t, n, r) {
9009
9040
  switch (t) {
9010
9041
  case 0:
9011
9042
  return "+" + d + n + r;
@@ -9017,7 +9048,7 @@ const L2 = (h) => {
9017
9048
  return n + r;
9018
9049
  }
9019
9050
  }
9020
- function h1(d, t) {
9051
+ function g1(d, t) {
9021
9052
  switch (t) {
9022
9053
  case 4:
9023
9054
  return g(d, 5);
@@ -9044,47 +9075,47 @@ const L2 = (h) => {
9044
9075
  return g(d, 1);
9045
9076
  }
9046
9077
  }
9047
- function q1(d, t) {
9048
- var n = Q1(d, t);
9049
- return d = n1(d, S(t, 1), n), d == null ? -1 : (t = i1(t), E1(t, d));
9078
+ function d0(d, t) {
9079
+ var n = t0(d, t);
9080
+ return d = r1(d, S(t, 1), n), d == null ? -1 : (t = o1(t), b1(t, d));
9050
9081
  }
9051
- function E1(d, t) {
9082
+ function b1(d, t) {
9052
9083
  return F(d, g(t, 1)) ? F(d, g(t, 5)) ? 4 : F(d, g(t, 4)) ? 3 : F(d, g(t, 6)) ? 5 : F(d, g(t, 8)) ? 6 : F(d, g(t, 7)) ? 7 : F(d, g(t, 21)) ? 8 : F(d, g(t, 25)) ? 9 : F(d, g(t, 28)) ? 10 : F(d, g(t, 2)) ? g(t, 18) || F(d, g(t, 3)) ? 2 : 0 : !g(t, 18) && F(d, g(t, 3)) ? 1 : -1 : -1;
9053
9084
  }
9054
- function z(d, t) {
9085
+ function J(d, t) {
9055
9086
  if (t == null) return null;
9056
9087
  t = t.toUpperCase();
9057
9088
  var n = d.g[t];
9058
9089
  if (n == null) {
9059
- if (n = F1[t], n == null) return null;
9060
- n = new t1().g(J.m(), n), d.g[t] = n;
9090
+ if (n = W1[t], n == null) return null;
9091
+ n = new n1().g(q.m(), n), d.g[t] = n;
9061
9092
  }
9062
9093
  return n;
9063
9094
  }
9064
9095
  function F(d, t) {
9065
9096
  var n = d.length;
9066
- return 0 < j(t, 9) && O(t, 9).indexOf(n) == -1 ? !1 : V(S(t, 2), d);
9097
+ return 0 < z(t, 9) && O(t, 9).indexOf(n) == -1 ? !1 : j(S(t, 2), d);
9067
9098
  }
9068
- function W0(d, t) {
9069
- var n = Q1(d, t), r = S(t, 1), o = n1(d, r, n);
9070
- return o == null || n != "001" && r != d0(d, n) ? o = !1 : (d = i1(t), o = E1(d, o) != -1), o;
9099
+ function F0(d, t) {
9100
+ var n = t0(d, t), r = S(t, 1), o = r1(d, r, n);
9101
+ return o == null || n != "001" && r != e0(d, n) ? o = !1 : (d = o1(t), o = b1(d, o) != -1), o;
9071
9102
  }
9072
- function Q1(d, t) {
9103
+ function t0(d, t) {
9073
9104
  if (t == null) return null;
9074
9105
  var n = S(t, 1);
9075
- if (n = e1[n], n == null) d = null;
9106
+ if (n = i1[n], n == null) d = null;
9076
9107
  else if (n.length == 1) d = n[0];
9077
9108
  else d: {
9078
- t = i1(t);
9109
+ t = o1(t);
9079
9110
  for (var r, o = n.length, l = 0; l < o; l++) {
9080
9111
  r = n[l];
9081
- var c = z(d, r);
9082
- if (G(c, 23)) {
9112
+ var c = J(d, r);
9113
+ if (U(c, 23)) {
9083
9114
  if (t.search(g(c, 23)) == 0) {
9084
9115
  d = r;
9085
9116
  break d;
9086
9117
  }
9087
- } else if (E1(t, c) != -1) {
9118
+ } else if (b1(t, c) != -1) {
9088
9119
  d = r;
9089
9120
  break d;
9090
9121
  }
@@ -9093,70 +9124,70 @@ const L2 = (h) => {
9093
9124
  }
9094
9125
  return d;
9095
9126
  }
9096
- function s1(d) {
9097
- return d = e1[d], d == null ? "ZZ" : d[0];
9127
+ function u1(d) {
9128
+ return d = i1[d], d == null ? "ZZ" : d[0];
9098
9129
  }
9099
- function d0(d, t) {
9100
- if (d = z(d, t), d == null) throw Error("Invalid region code: " + t);
9130
+ function e0(d, t) {
9131
+ if (d = J(d, t), d == null) throw Error("Invalid region code: " + t);
9101
9132
  return S(d, 10);
9102
9133
  }
9103
- function f1(d, t, n, r) {
9104
- var o = h1(n, r), l = j(o, 9) == 0 ? O(g(n, 1), 9) : O(o, 9);
9105
- if (o = O(o, 10), r == 2) if (Z1(h1(n, 0))) d = h1(n, 1), Z1(d) && (l = l.concat(j(d, 9) == 0 ? O(g(n, 1), 9) : O(d, 9)), l.sort(), o.length == 0 ? o = O(d, 10) : (o = o.concat(O(d, 10)), o.sort()));
9106
- else return f1(d, t, n, 1);
9134
+ function m1(d, t, n, r) {
9135
+ var o = g1(n, r), l = z(o, 9) == 0 ? O(g(n, 1), 9) : O(o, 9);
9136
+ if (o = O(o, 10), r == 2) if (X1(g1(n, 0))) d = g1(n, 1), X1(d) && (l = l.concat(z(d, 9) == 0 ? O(g(n, 1), 9) : O(d, 9)), l.sort(), o.length == 0 ? o = O(d, 10) : (o = o.concat(O(d, 10)), o.sort()));
9137
+ else return m1(d, t, n, 1);
9107
9138
  return l[0] == -1 ? 5 : (t = t.length, -1 < o.indexOf(t) ? 4 : (n = l[0], n == t ? 0 : n > t ? 2 : l[l.length - 1] < t ? 3 : -1 < l.indexOf(t, 1) ? 0 : 5));
9108
9139
  }
9109
- function p1(d, t, n) {
9110
- var r = i1(t);
9111
- return t = S(t, 1), t in e1 ? (t = n1(d, t, s1(t)), f1(d, r, t, n)) : 1;
9140
+ function y1(d, t, n) {
9141
+ var r = o1(t);
9142
+ return t = S(t, 1), t in i1 ? (t = r1(d, t, u1(t)), m1(d, r, t, n)) : 1;
9112
9143
  }
9113
- function t0(d, t) {
9144
+ function $0(d, t) {
9114
9145
  if (d = d.toString(), d.length == 0 || d.charAt(0) == "0") return 0;
9115
- for (var n, r = d.length, o = 1; 3 >= o && o <= r; ++o) if (n = parseInt(d.substring(0, o), 10), n in e1) return t.g(d.substring(o)), n;
9146
+ for (var n, r = d.length, o = 1; 3 >= o && o <= r; ++o) if (n = parseInt(d.substring(0, o), 10), n in i1) return t.g(d.substring(o)), n;
9116
9147
  return 0;
9117
9148
  }
9118
- function e0(d, t, n, r, o, l) {
9149
+ function n0(d, t, n, r, o, l) {
9119
9150
  if (t.length == 0) return 0;
9120
- t = new D(t);
9151
+ t = new v(t);
9121
9152
  var c;
9122
9153
  n != null && (c = g(n, 11)), c == null && (c = "NonMatch");
9123
9154
  var p = t.toString();
9124
9155
  if (p.length == 0) c = 20;
9125
- else if ($1.test(p)) p = p.replace($1, ""), H(t), t.g(Y1(p)), c = 1;
9156
+ else if (s1.test(p)) p = p.replace(s1, ""), G(t), t.g(Z1(p)), c = 1;
9126
9157
  else {
9127
- if (p = new RegExp(c), z1(t), c = t.toString(), c.search(p) == 0) {
9158
+ if (p = new RegExp(c), J1(t), c = t.toString(), c.search(p) == 0) {
9128
9159
  p = c.match(p)[0].length;
9129
- var y = c.substring(p).match(W1);
9130
- y && y[1] != null && 0 < y[1].length && a1(y[1], _1) == "0" ? c = !1 : (H(t), t.g(c.substring(p)), c = !0);
9160
+ var I = c.substring(p).match(K1);
9161
+ I && I[1] != null && 0 < I[1].length && p1(I[1], S1) == "0" ? c = !1 : (G(t), t.g(c.substring(p)), c = !0);
9131
9162
  } else c = !1;
9132
9163
  c = c ? 5 : 20;
9133
9164
  }
9134
- if (o && M(l, 6, c), c != 20) {
9165
+ if (o && P(l, 6, c), c != 20) {
9135
9166
  if (2 >= t.h.length) throw Error("Phone number too short after IDD");
9136
- if (d = t0(t, r), d != 0) return M(l, 1, d), d;
9167
+ if (d = $0(t, r), d != 0) return P(l, 1, d), d;
9137
9168
  throw Error("Invalid country calling code");
9138
9169
  }
9139
- return n != null && (c = S(n, 10), p = "" + c, y = t.toString(), y.lastIndexOf(p, 0) == 0 && (p = new D(y.substring(p.length)), y = g(n, 1), y = new RegExp(S(y, 2)), $0(p, n, null), p = p.toString(), !V(y, t.toString()) && V(y, p) || f1(d, t.toString(), n, -1) == 3)) ? (r.g(p), o && M(l, 6, 10), M(l, 1, c), c) : (M(l, 1, 0), 0);
9170
+ return n != null && (c = S(n, 10), p = "" + c, I = t.toString(), I.lastIndexOf(p, 0) == 0 && (p = new v(I.substring(p.length)), I = g(n, 1), I = new RegExp(S(I, 2)), i0(p, n, null), p = p.toString(), !j(I, t.toString()) && j(I, p) || m1(d, t.toString(), n, -1) == 3)) ? (r.g(p), o && P(l, 6, 10), P(l, 1, c), c) : (P(l, 1, 0), 0);
9140
9171
  }
9141
- function $0(d, t, n) {
9172
+ function i0(d, t, n) {
9142
9173
  var r = d.toString(), o = r.length, l = g(t, 15);
9143
9174
  if (o != 0 && l != null && l.length != 0) {
9144
9175
  var c = new RegExp("^(?:" + l + ")");
9145
9176
  if (o = c.exec(r)) {
9146
9177
  l = new RegExp(S(g(t, 1), 2));
9147
- var p = V(l, r), y = o.length - 1;
9148
- t = g(t, 16), t == null || t.length == 0 || o[y] == null || o[y].length == 0 ? (!p || V(l, r.substring(o[0].length))) && (n != null && 0 < y && o[y] != null && n.g(o[1]), d.set(r.substring(o[0].length))) : (r = r.replace(c, t), (!p || V(l, r)) && (n != null && 0 < y && n.g(o[1]), d.set(r)));
9178
+ var p = j(l, r), I = o.length - 1;
9179
+ t = g(t, 16), t == null || t.length == 0 || o[I] == null || o[I].length == 0 ? (!p || j(l, r.substring(o[0].length))) && (n != null && 0 < I && o[I] != null && n.g(o[1]), d.set(r.substring(o[0].length))) : (r = r.replace(c, t), (!p || j(l, r)) && (n != null && 0 < I && n.g(o[1]), d.set(r)));
9149
9180
  }
9150
9181
  }
9151
9182
  }
9152
- function X(d, t, n) {
9153
- if (!c1(n) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
9154
- return n0(d, t, n, !0);
9183
+ function Q(d, t, n) {
9184
+ if (!C1(n) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
9185
+ return s0(d, t, n, !0);
9155
9186
  }
9156
- function n0(d, t, n, r) {
9187
+ function s0(d, t, n, r) {
9157
9188
  if (t == null) throw Error("The string supplied did not seem to be a phone number");
9158
9189
  if (250 < t.length) throw Error("The string supplied is too long to be a phone number");
9159
- var o = new D(), l = t.indexOf(";phone-context=");
9190
+ var o = new v(), l = t.indexOf(";phone-context=");
9160
9191
  if (l === -1) l = null;
9161
9192
  else if (l += 15, l >= t.length) l = "";
9162
9193
  else {
@@ -9164,80 +9195,80 @@ const L2 = (h) => {
9164
9195
  l = c !== -1 ? t.substring(l, c) : t.substring(l);
9165
9196
  }
9166
9197
  var p = l;
9167
- if (p == null ? c = !0 : p.length === 0 ? c = !1 : (c = U0.exec(p), p = G0.exec(p), c = c !== null || p !== null), !c || (l != null ? (l.charAt(0) === "+" && o.g(l), l = t.indexOf("tel:"), o.g(t.substring(0 <= l ? l + 4 : 0, t.indexOf(";phone-context=")))) : (l = o.g, c = t ?? "", p = c.search(R0), 0 <= p ? (c = c.substring(p), c = c.replace(x0, ""), p = c.search(O0), 0 <= p && (c = c.substring(0, p))) : c = "", l.call(o, c)), l = o.toString(), c = l.indexOf(";isub="), 0 < c && (H(o), o.g(l.substring(0, c))), !j1(o.toString()))) throw Error("The string supplied did not seem to be a phone number");
9168
- if (l = o.toString(), !(c1(n) || l != null && 0 < l.length && $1.test(l))) throw Error("Invalid country calling code");
9169
- l = new Y(), r && M(l, 5, t);
9198
+ if (p == null ? c = !0 : p.length === 0 ? c = !1 : (c = U0.exec(p), p = G0.exec(p), c = c !== null || p !== null), !c || (l != null ? (l.charAt(0) === "+" && o.g(l), l = t.indexOf("tel:"), o.g(t.substring(0 <= l ? l + 4 : 0, t.indexOf(";phone-context=")))) : (l = o.g, c = t ?? "", p = c.search(R0), 0 <= p ? (c = c.substring(p), c = c.replace(x0, ""), p = c.search(O0), 0 <= p && (c = c.substring(0, p))) : c = "", l.call(o, c)), l = o.toString(), c = l.indexOf(";isub="), 0 < c && (G(o), o.g(l.substring(0, c))), !z1(o.toString()))) throw Error("The string supplied did not seem to be a phone number");
9199
+ if (l = o.toString(), !(C1(n) || l != null && 0 < l.length && s1.test(l))) throw Error("Invalid country calling code");
9200
+ l = new Z(), r && P(l, 5, t);
9170
9201
  d: {
9171
- if (t = o.toString(), c = t.search(K1), 0 <= c && j1(t.substring(0, c))) {
9172
- p = t.match(K1);
9173
- for (var y = p.length, K = 1; K < y; ++K) if (p[K] != null && 0 < p[K].length) {
9174
- H(o), o.g(t.substring(0, c)), t = p[K];
9202
+ if (t = o.toString(), c = t.search(Y1), 0 <= c && z1(t.substring(0, c))) {
9203
+ p = t.match(Y1);
9204
+ for (var I = p.length, Y = 1; Y < I; ++Y) if (p[Y] != null && 0 < p[Y].length) {
9205
+ G(o), o.g(t.substring(0, c)), t = p[Y];
9175
9206
  break d;
9176
9207
  }
9177
9208
  }
9178
9209
  t = "";
9179
9210
  }
9180
- 0 < t.length && M(l, 3, t), c = z(d, n), t = new D(), p = 0, y = o.toString();
9211
+ 0 < t.length && P(l, 3, t), c = J(d, n), t = new v(), p = 0, I = o.toString();
9181
9212
  try {
9182
- p = e0(d, y, c, t, r, l);
9183
- } catch (L1) {
9184
- if (L1.message == "Invalid country calling code" && $1.test(y)) {
9185
- if (y = y.replace($1, ""), p = e0(d, y, c, t, r, l), p == 0) throw L1;
9186
- } else throw L1;
9213
+ p = n0(d, I, c, t, r, l);
9214
+ } catch (A1) {
9215
+ if (A1.message == "Invalid country calling code" && s1.test(I)) {
9216
+ if (I = I.replace(s1, ""), p = n0(d, I, c, t, r, l), p == 0) throw A1;
9217
+ } else throw A1;
9187
9218
  }
9188
- if (p != 0 ? (o = s1(p), o != n && (c = n1(d, p, o))) : (z1(o), t.g(o.toString()), n != null ? (p = S(c, 10), M(
9219
+ if (p != 0 ? (o = u1(p), o != n && (c = r1(d, p, o))) : (J1(o), t.g(o.toString()), n != null ? (p = S(c, 10), P(
9189
9220
  l,
9190
9221
  1,
9191
9222
  p
9192
- )) : r && (delete l.h[6], l.g && delete l.g[6])), 2 > t.h.length || (c != null && (n = new D(), o = new D(t.toString()), $0(o, c, n), d = f1(d, o.toString(), c, -1), d != 2 && d != 4 && d != 5 && (t = o, r && 0 < n.toString().length && M(l, 7, n.toString()))), r = t.toString(), d = r.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
9223
+ )) : r && (delete l.h[6], l.g && delete l.g[6])), 2 > t.h.length || (c != null && (n = new v(), o = new v(t.toString()), i0(o, c, n), d = m1(d, o.toString(), c, -1), d != 2 && d != 4 && d != 5 && (t = o, r && 0 < n.toString().length && P(l, 7, n.toString()))), r = t.toString(), d = r.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
9193
9224
  if (17 < d) throw Error("The string supplied is too long to be a phone number");
9194
9225
  if (1 < r.length && r.charAt(0) == "0") {
9195
- for (M(l, 4, !0), d = 1; d < r.length - 1 && r.charAt(d) == "0"; ) d++;
9196
- d != 1 && M(l, 8, d);
9226
+ for (P(l, 4, !0), d = 1; d < r.length - 1 && r.charAt(d) == "0"; ) d++;
9227
+ d != 1 && P(l, 8, d);
9197
9228
  }
9198
- return M(l, 2, parseInt(r, 10)), l;
9229
+ return P(l, 2, parseInt(r, 10)), l;
9199
9230
  }
9200
- function V(d, t) {
9231
+ function j(d, t) {
9201
9232
  return !!((d = t.match(new RegExp("^(?:" + (typeof d == "string" ? d : d.source) + ")$", "i"))) && d[0].length == t.length);
9202
9233
  }
9203
- function V0(d) {
9204
- this.fa = RegExp(" "), this.ja = "", this.v = new D(), this.da = "", this.s = new D(), this.ba = new D(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = R.g(), this.$ = 0, this.h = new D(), this.ha = !1, this.o = "", this.g = new D(), this.j = [], this.ka = d, this.l = r0(this, this.ka);
9234
+ function W0(d) {
9235
+ this.fa = RegExp(" "), this.ja = "", this.v = new v(), this.da = "", this.s = new v(), this.ba = new v(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = M.g(), this.$ = 0, this.h = new v(), this.ha = !1, this.o = "", this.g = new v(), this.j = [], this.ka = d, this.l = u0(this, this.ka);
9205
9236
  }
9206
- var i0 = new J();
9207
- M(i0, 11, "NA");
9208
- var K0 = RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*)*$"), s0 = /[- ]/;
9209
- function r0(d, t) {
9237
+ var r0 = new q();
9238
+ P(r0, 11, "NA");
9239
+ var K0 = RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*)*$"), o0 = /[- ]/;
9240
+ function u0(d, t) {
9210
9241
  var n = d.ga;
9211
- return t = c1(t) ? d0(n, t) : 0, d = z(d.ga, s1(t)), d ?? i0;
9242
+ return t = C1(t) ? e0(n, t) : 0, d = J(d.ga, u1(t)), d ?? r0;
9212
9243
  }
9213
- function o0(d) {
9244
+ function l0(d) {
9214
9245
  for (var t = d.j.length, n = 0; n < t; ++n) {
9215
9246
  var r = d.j[n], o = S(r, 1);
9216
9247
  if (d.da == o) return !1;
9217
9248
  var l = d, c = r, p = S(c, 1);
9218
- H(l.v);
9219
- var y = l;
9249
+ G(l.v);
9250
+ var I = l;
9220
9251
  c = S(c, 2);
9221
- var K = "999999999999999".match(p)[0];
9222
- if (K.length < y.g.h.length ? y = "" : (y = K.replace(new RegExp(p, "g"), c), y = y.replace(RegExp("9", "g"), " ")), 0 < y.length ? (l.v.g(y), l = !0) : l = !1, l) return d.da = o, d.ha = s0.test(g(r, 4)), d.$ = 0, !0;
9252
+ var Y = "999999999999999".match(p)[0];
9253
+ if (Y.length < I.g.h.length ? I = "" : (I = Y.replace(new RegExp(p, "g"), c), I = I.replace(RegExp("9", "g"), " ")), 0 < I.length ? (l.v.g(I), l = !0) : l = !1, l) return d.da = o, d.ha = o0.test(g(r, 4)), d.$ = 0, !0;
9223
9254
  }
9224
9255
  return d.u = !1;
9225
9256
  }
9226
- function u0(d, t) {
9257
+ function a0(d, t) {
9227
9258
  for (var n = [], r = t.length - 3, o = d.j.length, l = 0; l < o; ++l) {
9228
9259
  var c = d.j[l];
9229
- j(c, 3) == 0 ? n.push(d.j[l]) : (c = g(c, 3, Math.min(r, j(c, 3) - 1)), t.search(c) == 0 && n.push(d.j[l]));
9260
+ z(c, 3) == 0 ? n.push(d.j[l]) : (c = g(c, 3, Math.min(r, z(c, 3) - 1)), t.search(c) == 0 && n.push(d.j[l]));
9230
9261
  }
9231
9262
  d.j = n;
9232
9263
  }
9233
9264
  function j0(d, t) {
9234
9265
  d.s.g(t);
9235
9266
  var n = t;
9236
- if (W1.test(n) || d.s.h.length == 1 && M0.test(n) ? (t == "+" ? (n = t, d.ba.g(t)) : (n = _1[t], d.ba.g(n), d.g.g(n)), t = n) : (d.u = !1, d.la = !0), !d.u) {
9267
+ if (K1.test(n) || d.s.h.length == 1 && M0.test(n) ? (t == "+" ? (n = t, d.ba.g(t)) : (n = S1[t], d.ba.g(n), d.g.g(n)), t = n) : (d.u = !1, d.la = !0), !d.u) {
9237
9268
  if (!d.la) {
9238
- if (f0(d)) {
9239
- if (p0(d)) return l0(d);
9240
- } else if (0 < d.o.length && (t = d.g.toString(), H(d.g), d.g.g(d.o), d.g.g(t), t = d.h.toString(), n = t.lastIndexOf(d.o), H(d.h), d.h.g(t.substring(0, n))), d.o != h0(d)) return d.h.g(" "), l0(d);
9269
+ if (C0(d)) {
9270
+ if (g0(d)) return c0(d);
9271
+ } else if (0 < d.o.length && (t = d.g.toString(), G(d.g), d.g.g(d.o), d.g.g(t), t = d.h.toString(), n = t.lastIndexOf(d.o), G(d.h), d.h.g(t.substring(0, n))), d.o != p0(d)) return d.h.g(" "), c0(d);
9241
9272
  }
9242
9273
  return d.s.toString();
9243
9274
  }
@@ -9247,75 +9278,75 @@ const L2 = (h) => {
9247
9278
  case 2:
9248
9279
  return d.s.toString();
9249
9280
  case 3:
9250
- if (f0(d)) d.ea = !0;
9251
- else return d.o = h0(d), N1(d);
9281
+ if (C0(d)) d.ea = !0;
9282
+ else return d.o = p0(d), T1(d);
9252
9283
  default:
9253
- return d.ea ? (p0(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = C0(d, t), n = a0(d), 0 < n.length ? n : (u0(d, d.g.toString()), o0(d) ? c0(d) : d.u ? C1(d, t) : d.s.toString())) : N1(d);
9284
+ return d.ea ? (g0(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = m0(d, t), n = h0(d), 0 < n.length ? n : (a0(d, d.g.toString()), l0(d) ? f0(d) : d.u ? I1(d, t) : d.s.toString())) : T1(d);
9254
9285
  }
9255
9286
  }
9256
- function l0(d) {
9257
- return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, H(d.v), d.da = "", N1(d);
9287
+ function c0(d) {
9288
+ return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, G(d.v), d.da = "", T1(d);
9258
9289
  }
9259
- function a0(d) {
9290
+ function h0(d) {
9260
9291
  for (var t = d.g.toString(), n = d.j.length, r = 0; r < n; ++r) {
9261
9292
  var o = d.j[r], l = S(o, 1);
9262
- if (new RegExp("^(?:" + l + ")$").test(t) && (d.ha = s0.test(g(o, 4)), o = t.replace(new RegExp(l, "g"), g(o, 2)), o = C1(d, o), a1(o, v0) == d.ba)) return o;
9293
+ if (new RegExp("^(?:" + l + ")$").test(t) && (d.ha = o0.test(g(o, 4)), o = t.replace(new RegExp(l, "g"), g(o, 2)), o = I1(d, o), p1(o, v0) == d.ba)) return o;
9263
9294
  }
9264
9295
  return "";
9265
9296
  }
9266
- function C1(d, t) {
9297
+ function I1(d, t) {
9267
9298
  var n = d.h.h.length;
9268
9299
  return d.ha && 0 < n && d.h.toString().charAt(n - 1) != " " ? d.h + " " + t : d.h + t;
9269
9300
  }
9270
- function N1(d) {
9301
+ function T1(d) {
9271
9302
  var t = d.g.toString();
9272
9303
  if (3 <= t.length) {
9273
- for (var n = d.ca && d.o.length == 0 && 0 < j(d.l, 20) ? O(d.l, 20) : O(d.l, 19), r = n.length, o = 0; o < r; ++o) {
9304
+ for (var n = d.ca && d.o.length == 0 && 0 < z(d.l, 20) ? O(d.l, 20) : O(d.l, 19), r = n.length, o = 0; o < r; ++o) {
9274
9305
  var l = n[o];
9275
- 0 < d.o.length && J1(S(l, 4)) && !g(l, 6) && !G(l, 5) || (d.o.length != 0 || d.ca || J1(S(l, 4)) || g(l, 6)) && K0.test(S(l, 2)) && d.j.push(l);
9306
+ 0 < d.o.length && q1(S(l, 4)) && !g(l, 6) && !U(l, 5) || (d.o.length != 0 || d.ca || q1(S(l, 4)) || g(l, 6)) && K0.test(S(l, 2)) && d.j.push(l);
9276
9307
  }
9277
- return u0(d, t), t = a0(d), 0 < t.length ? t : o0(d) ? c0(d) : d.s.toString();
9308
+ return a0(d, t), t = h0(d), 0 < t.length ? t : l0(d) ? f0(d) : d.s.toString();
9278
9309
  }
9279
- return C1(d, t);
9310
+ return I1(d, t);
9280
9311
  }
9281
- function c0(d) {
9312
+ function f0(d) {
9282
9313
  var t = d.g.toString(), n = t.length;
9283
9314
  if (0 < n) {
9284
- for (var r = "", o = 0; o < n; o++) r = C0(d, t.charAt(o));
9285
- return d.u ? C1(d, r) : d.s.toString();
9315
+ for (var r = "", o = 0; o < n; o++) r = m0(d, t.charAt(o));
9316
+ return d.u ? I1(d, r) : d.s.toString();
9286
9317
  }
9287
9318
  return d.h.toString();
9288
9319
  }
9289
- function h0(d) {
9320
+ function p0(d) {
9290
9321
  var t = d.g.toString(), n = 0;
9291
9322
  if (g(d.l, 10) != 1) var r = !1;
9292
9323
  else r = d.g.toString(), r = r.charAt(0) == "1" && r.charAt(1) != "0" && r.charAt(1) != "1";
9293
- return r ? (n = 1, d.h.g("1").g(" "), d.ca = !0) : G(d.l, 15) && (r = new RegExp("^(?:" + g(d.l, 15) + ")"), r = t.match(r), r != null && r[0] != null && 0 < r[0].length && (d.ca = !0, n = r[0].length, d.h.g(t.substring(0, n)))), H(d.g), d.g.g(t.substring(n)), t.substring(0, n);
9324
+ return r ? (n = 1, d.h.g("1").g(" "), d.ca = !0) : U(d.l, 15) && (r = new RegExp("^(?:" + g(d.l, 15) + ")"), r = t.match(r), r != null && r[0] != null && 0 < r[0].length && (d.ca = !0, n = r[0].length, d.h.g(t.substring(0, n)))), G(d.g), d.g.g(t.substring(n)), t.substring(0, n);
9294
9325
  }
9295
- function f0(d) {
9326
+ function C0(d) {
9296
9327
  var t = d.ba.toString(), n = new RegExp("^(?:\\+|" + g(d.l, 11) + ")");
9297
- return n = t.match(n), n != null && n[0] != null && 0 < n[0].length ? (d.ca = !0, n = n[0].length, H(d.g), d.g.g(t.substring(n)), H(d.h), d.h.g(t.substring(0, n)), t.charAt(0) != "+" && d.h.g(" "), !0) : !1;
9328
+ return n = t.match(n), n != null && n[0] != null && 0 < n[0].length ? (d.ca = !0, n = n[0].length, G(d.g), d.g.g(t.substring(n)), G(d.h), d.h.g(t.substring(0, n)), t.charAt(0) != "+" && d.h.g(" "), !0) : !1;
9298
9329
  }
9299
- function p0(d) {
9330
+ function g0(d) {
9300
9331
  if (d.g.h.length == 0) return !1;
9301
- var t = new D(), n = t0(d.g, t);
9302
- return n == 0 ? !1 : (H(d.g), d.g.g(t.toString()), t = s1(n), t == "001" ? d.l = z(d.ga, "" + n) : t != d.ka && (d.l = r0(d, t)), d.h.g("" + n).g(" "), d.o = "", !0);
9332
+ var t = new v(), n = $0(d.g, t);
9333
+ return n == 0 ? !1 : (G(d.g), d.g.g(t.toString()), t = u1(n), t == "001" ? d.l = J(d.ga, "" + n) : t != d.ka && (d.l = u0(d, t)), d.h.g("" + n).g(" "), d.o = "", !0);
9303
9334
  }
9304
- function C0(d, t) {
9335
+ function m0(d, t) {
9305
9336
  var n = d.v.toString();
9306
9337
  if (0 <= n.substring(d.$).search(d.fa)) {
9307
9338
  var r = n.search(d.fa);
9308
- return t = n.replace(d.fa, t), H(d.v), d.v.g(t), d.$ = r, t.substring(0, d.$ + 1);
9339
+ return t = n.replace(d.fa, t), G(d.v), d.v.g(t), d.$ = r, t.substring(0, d.$ + 1);
9309
9340
  }
9310
9341
  return d.j.length == 1 && (d.u = !1), d.da = "", d.s.toString();
9311
9342
  }
9312
- const g0 = (d) => {
9343
+ const y0 = (d) => {
9313
9344
  const t = [];
9314
9345
  return d.includes("FIXED_LINE_OR_MOBILE") ? (d.includes("MOBILE") || t.push("MOBILE"), d.includes("FIXED_LINE") || t.push("FIXED_LINE")) : (d.includes("MOBILE") || d.includes("FIXED_LINE")) && t.push("FIXED_LINE_OR_MOBILE"), d.concat(t);
9315
- }, S1 = { 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 };
9346
+ }, L1 = { 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 };
9316
9347
  e("intlTelInputUtilsTemp", {}), e("intlTelInputUtilsTemp.formatNumberAsYouType", (d, t) => {
9317
9348
  try {
9318
- const n = d.replace(/[^+0-9]/g, ""), r = new V0(t);
9349
+ const n = d.replace(/[^+0-9]/g, ""), r = new W0(t);
9319
9350
  t = "";
9320
9351
  for (let o = 0; o < n.length; o++) r.ja = j0(r, n.charAt(o)), t = r.ja;
9321
9352
  return t;
@@ -9324,22 +9355,22 @@ const L2 = (h) => {
9324
9355
  }
9325
9356
  }), e("intlTelInputUtilsTemp.formatNumber", (d, t, n) => {
9326
9357
  try {
9327
- const o = R.g(), l = X(o, d, t);
9328
- var r = p1(o, l, -1);
9358
+ const o = M.g(), l = Q(o, d, t);
9359
+ var r = y1(o, l, -1);
9329
9360
  return r == 0 || r == 4 ? o.format(l, typeof n > "u" ? 0 : n) : d;
9330
9361
  } catch {
9331
9362
  return d;
9332
9363
  }
9333
9364
  }), e("intlTelInputUtilsTemp.getExampleNumber", (d, t, n, r) => {
9334
9365
  try {
9335
- const y = R.g();
9366
+ const I = M.g();
9336
9367
  d: {
9337
- var o = y;
9338
- if (c1(d)) {
9339
- var l = h1(z(o, d), n);
9368
+ var o = I;
9369
+ if (C1(d)) {
9370
+ var l = g1(J(o, d), n);
9340
9371
  try {
9341
- if (G(l, 6)) {
9342
- var c = g(l, 6), p = n0(o, c, d, !1);
9372
+ if (U(l, 6)) {
9373
+ var c = g(l, 6), p = s0(o, c, d, !1);
9343
9374
  break d;
9344
9375
  }
9345
9376
  } catch {
@@ -9347,37 +9378,37 @@ const L2 = (h) => {
9347
9378
  }
9348
9379
  p = null;
9349
9380
  }
9350
- return y.format(p, r ? 0 : t ? 2 : 1);
9381
+ return I.format(p, r ? 0 : t ? 2 : 1);
9351
9382
  } catch {
9352
9383
  return "";
9353
9384
  }
9354
9385
  }), e("intlTelInputUtilsTemp.getExtension", (d, t) => {
9355
9386
  try {
9356
- return g(X(R.g(), d, t), 3);
9387
+ return g(Q(M.g(), d, t), 3);
9357
9388
  } catch {
9358
9389
  return "";
9359
9390
  }
9360
9391
  }), e("intlTelInputUtilsTemp.getNumberType", (d, t) => {
9361
9392
  try {
9362
- const n = R.g(), r = X(n, d, t);
9363
- return q1(n, r);
9393
+ const n = M.g(), r = Q(n, d, t);
9394
+ return d0(n, r);
9364
9395
  } catch {
9365
9396
  return -99;
9366
9397
  }
9367
9398
  }), e("intlTelInputUtilsTemp.getValidationError", (d, t) => {
9368
9399
  if (!t) return 1;
9369
9400
  try {
9370
- const n = R.g(), r = X(n, d, t);
9371
- return p1(n, r, -1);
9401
+ const n = M.g(), r = Q(n, d, t);
9402
+ return y1(n, r, -1);
9372
9403
  } catch (n) {
9373
9404
  return n.message === "Invalid country calling code" ? 1 : 3 >= d.length || n.message === "Phone number too short after IDD" || n.message === "The string supplied is too short to be a phone number" ? 2 : n.message === "The string supplied is too long to be a phone number" ? 3 : -99;
9374
9405
  }
9375
9406
  }), e("intlTelInputUtilsTemp.isValidNumber", (d, t, n) => {
9376
9407
  try {
9377
- const r = R.g(), o = X(r, d, t), l = W0(r, o);
9408
+ const r = M.g(), o = Q(r, d, t), l = F0(r, o);
9378
9409
  if (n) {
9379
- const c = g0(n).map((p) => S1[p]);
9380
- return l && c.includes(q1(r, o));
9410
+ const c = y0(n).map((p) => L1[p]);
9411
+ return l && c.includes(d0(r, o));
9381
9412
  }
9382
9413
  return l;
9383
9414
  } catch {
@@ -9385,30 +9416,30 @@ const L2 = (h) => {
9385
9416
  }
9386
9417
  }), e("intlTelInputUtilsTemp.isPossibleNumber", (d, t, n) => {
9387
9418
  try {
9388
- const r = R.g(), o = X(r, d, t);
9419
+ const r = M.g(), o = Q(r, d, t);
9389
9420
  if (n) {
9390
- const l = g0(n);
9391
- for (let c of l) if (p1(r, o, S1[c]) === 0) return !0;
9421
+ const l = y0(n);
9422
+ for (let c of l) if (y1(r, o, L1[c]) === 0) return !0;
9392
9423
  return !1;
9393
9424
  }
9394
- return p1(r, o, -1) === 0;
9425
+ return y1(r, o, -1) === 0;
9395
9426
  } catch {
9396
9427
  return !1;
9397
9428
  }
9398
9429
  }), e("intlTelInputUtilsTemp.getCoreNumber", (d, t) => {
9399
9430
  try {
9400
- return g(X(R.g(), d, t), 2).toString();
9431
+ return g(Q(M.g(), d, t), 2).toString();
9401
9432
  } catch {
9402
9433
  return "";
9403
9434
  }
9404
- }), e("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 }), e("intlTelInputUtilsTemp.numberType", S1), e("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
9435
+ }), e("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 }), e("intlTelInputUtilsTemp.numberType", L1), e("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
9405
9436
  })();
9406
- const w0 = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : void 0, A2 = w0.intlTelInputUtilsTemp;
9437
+ const w0 = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : void 0, T2 = w0.intlTelInputUtilsTemp;
9407
9438
  delete w0.intlTelInputUtilsTemp;
9408
- m.utils = A2;
9409
- const b2 = {
9439
+ m.utils = T2;
9440
+ const A2 = {
9410
9441
  __name: "IntlTelInputWithUtils",
9411
- props: /* @__PURE__ */ m0({
9442
+ props: /* @__PURE__ */ I0({
9412
9443
  disabled: {
9413
9444
  type: Boolean,
9414
9445
  default: !1
@@ -9432,44 +9463,44 @@ const b2 = {
9432
9463
  },
9433
9464
  modelModifiers: {}
9434
9465
  }),
9435
- emits: /* @__PURE__ */ m0([
9466
+ emits: /* @__PURE__ */ I0([
9436
9467
  "changeNumber",
9437
9468
  "changeCountry",
9438
9469
  "changeValidity",
9439
9470
  "changeErrorCode"
9440
9471
  ], ["update:modelValue"]),
9441
9472
  setup(h, { expose: e, emit: $ }) {
9442
- const i = Y0(h, "modelValue"), s = h, a = $, u = A1(), f = A1(), C = A1(!1), I = () => f.value ? s.options.strictMode ? f.value.isValidNumberPrecise() : f.value.isValidNumber() : null, _ = () => {
9443
- let N = I();
9444
- C.value !== N && (C.value = N, a("changeValidity", !!N), a(
9473
+ const i = Y0(h, "modelValue"), s = h, a = $, u = w1(), f = w1(), C = w1(!1), y = () => f.value ? s.options.strictMode ? f.value.isValidNumberPrecise() : f.value.isValidNumber() : null, _ = () => {
9474
+ let E = y();
9475
+ C.value !== E && (C.value = E, a("changeValidity", !!E), a(
9445
9476
  "changeErrorCode",
9446
- N ? null : f.value.getValidationError()
9477
+ E ? null : f.value.getValidationError()
9447
9478
  ));
9448
- }, A = () => {
9449
- var N;
9450
- a("changeNumber", ((N = f.value) == null ? void 0 : N.getNumber()) ?? ""), _();
9451
- }, v = () => {
9452
- var N;
9453
- a("changeCountry", ((N = f.value) == null ? void 0 : N.getSelectedCountryData().iso2) ?? ""), A(), _();
9479
+ }, T = () => {
9480
+ var E;
9481
+ a("changeNumber", ((E = f.value) == null ? void 0 : E.getNumber()) ?? ""), _();
9482
+ }, B = () => {
9483
+ var E;
9484
+ a("changeCountry", ((E = f.value) == null ? void 0 : E.getSelectedCountryData().iso2) ?? ""), T(), _();
9454
9485
  };
9455
9486
  return z0(() => {
9456
- u.value && (f.value = m(u.value, s.options), s.value && f.value.setNumber(s.value), s.disabled && f.value.setDisabled(s.disabled), C.value = I());
9487
+ u.value && (f.value = m(u.value, s.options), s.value && f.value.setNumber(s.value), s.disabled && f.value.setDisabled(s.disabled), C.value = y());
9457
9488
  }), Z0(
9458
9489
  () => s.disabled,
9459
- (N) => {
9460
- var T;
9461
- return (T = f.value) == null ? void 0 : T.setDisabled(N);
9490
+ (E) => {
9491
+ var w;
9492
+ return (w = f.value) == null ? void 0 : w.setDisabled(E);
9462
9493
  }
9463
9494
  ), J0(() => {
9464
- var N;
9465
- return (N = f.value) == null ? void 0 : N.destroy();
9466
- }), e({ instance: f, input: u }), (N, T) => X0((Q0(), q0("input", d2({
9495
+ var E;
9496
+ return (E = f.value) == null ? void 0 : E.destroy();
9497
+ }), e({ instance: f, input: u }), (E, w) => X0((Q0(), q0("input", d2({
9467
9498
  ref_key: "input",
9468
9499
  ref: u,
9469
- "onUpdate:modelValue": T[0] || (T[0] = (k) => i.value = k),
9500
+ "onUpdate:modelValue": w[0] || (w[0] = (H) => i.value = H),
9470
9501
  type: "tel",
9471
- onCountrychange: v,
9472
- onInput: A
9502
+ onCountrychange: B,
9503
+ onInput: T
9473
9504
  }, h.inputProps), null, 16)), [
9474
9505
  [
9475
9506
  t2,
@@ -9481,5 +9512,5 @@ const b2 = {
9481
9512
  }
9482
9513
  };
9483
9514
  export {
9484
- b2 as default
9515
+ A2 as default
9485
9516
  };