intl-tel-input 24.5.0 → 24.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { mergeModels as e2, useModel as T2, ref as _1, onMounted as L2, watch as N2, onUnmounted as E2, withDirectives as D2, openBlock as M2, createElementBlock as P2, mergeProps as x2, vModelText as R2 } from "vue";
2
- const $2 = [
1
+ import { mergeModels as n2, useModel as A2, ref as I1, onMounted as L2, watch as T2, onUnmounted as E2, withDirectives as D2, openBlock as M2, createElementBlock as x2, mergeProps as P2, vModelText as R2 } from "vue";
2
+ const i2 = [
3
3
  [
4
4
  "af",
5
5
  // Afghanistan
@@ -1306,8 +1306,8 @@ const $2 = [
1306
1306
  "263"
1307
1307
  ]
1308
1308
  ], H = [];
1309
- for (let y = 0; y < $2.length; y++) {
1310
- const e = $2[y];
1309
+ for (let y = 0; y < i2.length; y++) {
1310
+ const e = i2[y];
1311
1311
  H[y] = {
1312
1312
  name: "",
1313
1313
  // this is now populated in the plugin
@@ -1572,11 +1572,11 @@ const B2 = {
1572
1572
  // additional countries (not supported by country-list library)
1573
1573
  ac: "Ascension Island",
1574
1574
  xk: "Kosovo"
1575
- }, s2 = { ...B2, ...k2 };
1575
+ }, o2 = { ...B2, ...k2 };
1576
1576
  for (let y = 0; y < H.length; y++)
1577
- H[y].name = s2[H[y].iso2];
1577
+ H[y].name = o2[H[y].iso2];
1578
1578
  let O2 = 0;
1579
- const r2 = {
1579
+ const u2 = {
1580
1580
  //* Whether or not to allow the dropdown.
1581
1581
  allowDropdown: !0,
1582
1582
  //* Add a placeholder in the input with an example number for the selected country.
@@ -1649,46 +1649,46 @@ const r2 = {
1649
1649
  "887",
1650
1650
  "888",
1651
1651
  "889"
1652
- ], c1 = (y) => y.replace(/\D/g, ""), i2 = (y = "") => y.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), n2 = (y) => {
1653
- const e = c1(y);
1652
+ ], f1 = (y) => y.replace(/\D/g, ""), r2 = (y = "") => y.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), s2 = (y) => {
1653
+ const e = f1(y);
1654
1654
  if (e.charAt(0) === "1") {
1655
- const i = e.substr(1, 3);
1656
- return G2.indexOf(i) !== -1;
1655
+ const n = e.substr(1, 3);
1656
+ return G2.indexOf(n) !== -1;
1657
1657
  }
1658
1658
  return !1;
1659
- }, U2 = (y, e, i, s) => {
1660
- if (i === 0 && !s)
1659
+ }, F2 = (y, e, n, r) => {
1660
+ if (n === 0 && !r)
1661
1661
  return 0;
1662
- let u = 0;
1662
+ let o = 0;
1663
1663
  for (let a = 0; a < e.length; a++) {
1664
- if (/[+0-9]/.test(e[a]) && u++, u === y && !s)
1664
+ if (/[+0-9]/.test(e[a]) && o++, o === y && !r)
1665
1665
  return a + 1;
1666
- if (s && u === y + 1)
1666
+ if (r && o === y + 1)
1667
1667
  return a;
1668
1668
  }
1669
1669
  return e.length;
1670
- }, N = (y, e, i) => {
1671
- const s = document.createElement(y);
1672
- return e && Object.entries(e).forEach(([u, a]) => s.setAttribute(u, a)), i && i.appendChild(s), s;
1670
+ }, T = (y, e, n) => {
1671
+ const r = document.createElement(y);
1672
+ return e && Object.entries(e).forEach(([o, a]) => r.setAttribute(o, a)), n && n.appendChild(r), r;
1673
1673
  }, $1 = (y) => {
1674
1674
  const { instances: e } = C;
1675
- Object.values(e).forEach((i) => i[y]());
1675
+ Object.values(e).forEach((n) => n[y]());
1676
1676
  };
1677
- class F2 {
1678
- constructor(e, i = {}) {
1679
- this.id = O2++, this.telInput = e, this.highlightedItem = null, this.options = Object.assign({}, r2, i), this.hadInitialPlaceholder = !!e.getAttribute("placeholder");
1677
+ class U2 {
1678
+ constructor(e, n = {}) {
1679
+ this.id = O2++, this.telInput = e, this.highlightedItem = null, this.options = Object.assign({}, u2, n), this.hadInitialPlaceholder = !!e.getAttribute("placeholder");
1680
1680
  }
1681
1681
  //* Can't be private as it's called from intlTelInput convenience wrapper.
1682
1682
  _init() {
1683
1683
  this.options.useFullscreenPopup && (this.options.fixDropdownWidth = !1), this.options.onlyCountries.length === 1 && (this.options.initialCountry = this.options.onlyCountries[0]), this.options.separateDialCode && (this.options.nationalMode = !1), this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode && (this.options.nationalMode = !1), this.options.useFullscreenPopup && !this.options.dropdownContainer && (this.options.dropdownContainer = document.body), this.isAndroid = typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1, this.isRTL = !!this.telInput.closest("[dir=rtl]");
1684
1684
  const e = this.options.allowDropdown || this.options.separateDialCode;
1685
- this.showSelectedCountryOnLeft = this.isRTL ? !e : e, this.options.separateDialCode && (this.isRTL ? this.originalPaddingRight = this.telInput.style.paddingRight : this.originalPaddingLeft = this.telInput.style.paddingLeft), this.options.i18n = { ...s2, ...this.options.i18n };
1686
- const i = new Promise((u, a) => {
1687
- this.resolveAutoCountryPromise = u, this.rejectAutoCountryPromise = a;
1688
- }), s = new Promise((u, a) => {
1689
- this.resolveUtilsScriptPromise = u, this.rejectUtilsScriptPromise = a;
1685
+ this.showSelectedCountryOnLeft = this.isRTL ? !e : e, this.options.separateDialCode && (this.isRTL ? this.originalPaddingRight = this.telInput.style.paddingRight : this.originalPaddingLeft = this.telInput.style.paddingLeft), this.options.i18n = { ...o2, ...this.options.i18n };
1686
+ const n = new Promise((o, a) => {
1687
+ this.resolveAutoCountryPromise = o, this.rejectAutoCountryPromise = a;
1688
+ }), r = new Promise((o, a) => {
1689
+ this.resolveUtilsScriptPromise = o, this.rejectUtilsScriptPromise = a;
1690
1690
  });
1691
- this.promise = Promise.all([i, s]), this.selectedCountryData = {}, this._processCountryData(), this._generateMarkup(), this._setInitialState(), this._initListeners(), this._initRequests();
1691
+ this.promise = Promise.all([n, r]), this.selectedCountryData = {}, this._processCountryData(), this._generateMarkup(), this._setInitialState(), this._initListeners(), this._initRequests();
1692
1692
  }
1693
1693
  //********************
1694
1694
  //* PRIVATE METHODS
@@ -1699,41 +1699,41 @@ class F2 {
1699
1699
  }
1700
1700
  //* Sort countries by countryOrder option (if present), then name.
1701
1701
  _sortCountries() {
1702
- this.options.countryOrder && (this.options.countryOrder = this.options.countryOrder.map((e) => e.toLowerCase())), this.countries.sort((e, i) => {
1703
- const { countryOrder: s } = this.options;
1704
- if (s) {
1705
- const u = s.indexOf(e.iso2), a = s.indexOf(i.iso2), c = u > -1, p = a > -1;
1706
- if (c || p)
1707
- return c && p ? u - a : c ? -1 : 1;
1702
+ this.options.countryOrder && (this.options.countryOrder = this.options.countryOrder.map((e) => e.toLowerCase())), this.countries.sort((e, n) => {
1703
+ const { countryOrder: r } = this.options;
1704
+ if (r) {
1705
+ const o = r.indexOf(e.iso2), a = r.indexOf(n.iso2), c = o > -1, g = a > -1;
1706
+ if (c || g)
1707
+ return c && g ? o - a : c ? -1 : 1;
1708
1708
  }
1709
- return e.name.localeCompare(i.name);
1709
+ return e.name.localeCompare(n.name);
1710
1710
  });
1711
1711
  }
1712
1712
  //* Add a dial code to this.dialCodeToIso2Map.
1713
- _addToDialCodeMap(e, i, s) {
1714
- i.length > this.dialCodeMaxLen && (this.dialCodeMaxLen = i.length), this.dialCodeToIso2Map.hasOwnProperty(i) || (this.dialCodeToIso2Map[i] = []);
1715
- for (let a = 0; a < this.dialCodeToIso2Map[i].length; a++)
1716
- if (this.dialCodeToIso2Map[i][a] === e)
1713
+ _addToDialCodeMap(e, n, r) {
1714
+ n.length > this.dialCodeMaxLen && (this.dialCodeMaxLen = n.length), this.dialCodeToIso2Map.hasOwnProperty(n) || (this.dialCodeToIso2Map[n] = []);
1715
+ for (let a = 0; a < this.dialCodeToIso2Map[n].length; a++)
1716
+ if (this.dialCodeToIso2Map[n][a] === e)
1717
1717
  return;
1718
- const u = s !== void 0 ? s : this.dialCodeToIso2Map[i].length;
1719
- this.dialCodeToIso2Map[i][u] = e;
1718
+ const o = r !== void 0 ? r : this.dialCodeToIso2Map[n].length;
1719
+ this.dialCodeToIso2Map[n][o] = e;
1720
1720
  }
1721
1721
  //* Process onlyCountries or excludeCountries array if present.
1722
1722
  _processAllCountries() {
1723
- const { onlyCountries: e, excludeCountries: i } = this.options;
1723
+ const { onlyCountries: e, excludeCountries: n } = this.options;
1724
1724
  if (e.length) {
1725
- const s = e.map(
1726
- (u) => u.toLowerCase()
1725
+ const r = e.map(
1726
+ (o) => o.toLowerCase()
1727
1727
  );
1728
1728
  this.countries = H.filter(
1729
- (u) => s.indexOf(u.iso2) > -1
1729
+ (o) => r.indexOf(o.iso2) > -1
1730
1730
  );
1731
- } else if (i.length) {
1732
- const s = i.map(
1733
- (u) => u.toLowerCase()
1731
+ } else if (n.length) {
1732
+ const r = n.map(
1733
+ (o) => o.toLowerCase()
1734
1734
  );
1735
1735
  this.countries = H.filter(
1736
- (u) => s.indexOf(u.iso2) === -1
1736
+ (o) => r.indexOf(o.iso2) === -1
1737
1737
  );
1738
1738
  } else
1739
1739
  this.countries = H;
@@ -1741,57 +1741,57 @@ class F2 {
1741
1741
  //* Translate Countries by object literal provided on config.
1742
1742
  _translateCountryNames() {
1743
1743
  for (let e = 0; e < this.countries.length; e++) {
1744
- const i = this.countries[e].iso2.toLowerCase();
1745
- this.options.i18n.hasOwnProperty(i) && (this.countries[e].name = this.options.i18n[i]);
1744
+ const n = this.countries[e].iso2.toLowerCase();
1745
+ this.options.i18n.hasOwnProperty(n) && (this.countries[e].name = this.options.i18n[n]);
1746
1746
  }
1747
1747
  }
1748
1748
  //* Generate this.dialCodes and this.dialCodeToIso2Map.
1749
1749
  _processDialCodes() {
1750
1750
  this.dialCodes = {}, this.dialCodeMaxLen = 0, this.dialCodeToIso2Map = {};
1751
1751
  for (let e = 0; e < this.countries.length; e++) {
1752
- const i = this.countries[e];
1753
- this.dialCodes[i.dialCode] || (this.dialCodes[i.dialCode] = !0), this._addToDialCodeMap(i.iso2, i.dialCode, i.priority);
1752
+ const n = this.countries[e];
1753
+ this.dialCodes[n.dialCode] || (this.dialCodes[n.dialCode] = !0), this._addToDialCodeMap(n.iso2, n.dialCode, n.priority);
1754
1754
  }
1755
1755
  for (let e = 0; e < this.countries.length; e++) {
1756
- const i = this.countries[e];
1757
- if (i.areaCodes) {
1758
- const s = this.dialCodeToIso2Map[i.dialCode][0];
1759
- for (let u = 0; u < i.areaCodes.length; u++) {
1760
- const a = i.areaCodes[u];
1756
+ const n = this.countries[e];
1757
+ if (n.areaCodes) {
1758
+ const r = this.dialCodeToIso2Map[n.dialCode][0];
1759
+ for (let o = 0; o < n.areaCodes.length; o++) {
1760
+ const a = n.areaCodes[o];
1761
1761
  for (let c = 1; c < a.length; c++) {
1762
- const p = i.dialCode + a.substr(0, c);
1763
- this._addToDialCodeMap(s, p), this._addToDialCodeMap(i.iso2, p);
1762
+ const g = n.dialCode + a.substr(0, c);
1763
+ this._addToDialCodeMap(r, g), this._addToDialCodeMap(n.iso2, g);
1764
1764
  }
1765
- this._addToDialCodeMap(i.iso2, i.dialCode + a);
1765
+ this._addToDialCodeMap(n.iso2, n.dialCode + a);
1766
1766
  }
1767
1767
  }
1768
1768
  }
1769
1769
  }
1770
1770
  //* Generate all of the markup for the plugin: the selected country overlay, and the dropdown.
1771
1771
  _generateMarkup() {
1772
- var I;
1772
+ var v;
1773
1773
  this.telInput.classList.add("iti__tel-input"), !this.telInput.hasAttribute("autocomplete") && !(this.telInput.form && this.telInput.form.hasAttribute("autocomplete")) && this.telInput.setAttribute("autocomplete", "off");
1774
1774
  const {
1775
1775
  allowDropdown: e,
1776
- separateDialCode: i,
1777
- showFlags: s,
1778
- containerClass: u,
1776
+ separateDialCode: n,
1777
+ showFlags: r,
1778
+ containerClass: o,
1779
1779
  hiddenInput: a,
1780
1780
  dropdownContainer: c,
1781
- fixDropdownWidth: p,
1782
- useFullscreenPopup: g,
1781
+ fixDropdownWidth: g,
1782
+ useFullscreenPopup: f,
1783
1783
  countrySearch: b,
1784
1784
  i18n: _
1785
1785
  } = this.options;
1786
- let A = "iti";
1787
- e && (A += " iti--allow-dropdown"), s && (A += " iti--show-flags"), u && (A += ` ${u}`), g || (A += " iti--inline-dropdown");
1788
- const S = N("div", { class: A });
1789
- if ((I = this.telInput.parentNode) == null || I.insertBefore(S, this.telInput), e || s || i) {
1790
- this.countryContainer = N(
1786
+ let I = "iti";
1787
+ e && (I += " iti--allow-dropdown"), r && (I += " iti--show-flags"), o && (I += ` ${o}`), f || (I += " iti--inline-dropdown");
1788
+ const N = T("div", { class: I });
1789
+ if ((v = this.telInput.parentNode) == null || v.insertBefore(N, this.telInput), e || r || n) {
1790
+ this.countryContainer = T(
1791
1791
  "div",
1792
1792
  { class: "iti__country-container" },
1793
- S
1794
- ), this.showSelectedCountryOnLeft ? this.countryContainer.style.left = "0px" : this.countryContainer.style.right = "0px", e ? (this.selectedCountry = N(
1793
+ N
1794
+ ), this.showSelectedCountryOnLeft ? this.countryContainer.style.left = "0px" : this.countryContainer.style.right = "0px", e ? (this.selectedCountry = T(
1795
1795
  "button",
1796
1796
  {
1797
1797
  type: "button",
@@ -1803,30 +1803,30 @@ class F2 {
1803
1803
  role: "combobox"
1804
1804
  },
1805
1805
  this.countryContainer
1806
- ), this.telInput.disabled && this.selectedCountry.setAttribute("disabled", "true")) : this.selectedCountry = N(
1806
+ ), this.telInput.disabled && this.selectedCountry.setAttribute("disabled", "true")) : this.selectedCountry = T(
1807
1807
  "div",
1808
1808
  { class: "iti__selected-country" },
1809
1809
  this.countryContainer
1810
1810
  );
1811
- const T = N("div", { class: "iti__selected-country-primary" }, this.selectedCountry);
1812
- if (this.selectedCountryInner = N("div", { class: "iti__flag" }, T), this.selectedCountryA11yText = N(
1811
+ const A = T("div", { class: "iti__selected-country-primary" }, this.selectedCountry);
1812
+ if (this.selectedCountryInner = T("div", { class: "iti__flag" }, A), this.selectedCountryA11yText = T(
1813
1813
  "span",
1814
1814
  { class: "iti__a11y-text" },
1815
1815
  this.selectedCountryInner
1816
- ), e && (this.dropdownArrow = N(
1816
+ ), e && (this.dropdownArrow = T(
1817
1817
  "div",
1818
1818
  { class: "iti__arrow", "aria-hidden": "true" },
1819
- T
1820
- )), i && (this.selectedDialCode = N(
1819
+ A
1820
+ )), n && (this.selectedDialCode = T(
1821
1821
  "div",
1822
1822
  { class: "iti__selected-dial-code" },
1823
1823
  this.selectedCountry
1824
1824
  )), e) {
1825
- const P = p ? "" : "iti--flexible-dropdown-width";
1826
- if (this.dropdownContent = N("div", {
1825
+ const M = g ? "" : "iti--flexible-dropdown-width";
1826
+ if (this.dropdownContent = T("div", {
1827
1827
  id: `iti-${this.id}__dropdown-content`,
1828
- class: `iti__dropdown-content iti__hide ${P}`
1829
- }), b && (this.searchInput = N(
1828
+ class: `iti__dropdown-content iti__hide ${M}`
1829
+ }), b && (this.searchInput = T(
1830
1830
  "input",
1831
1831
  {
1832
1832
  type: "text",
@@ -1840,11 +1840,11 @@ class F2 {
1840
1840
  autocomplete: "off"
1841
1841
  },
1842
1842
  this.dropdownContent
1843
- ), this.searchResultsA11yText = N(
1843
+ ), this.searchResultsA11yText = T(
1844
1844
  "span",
1845
1845
  { class: "iti__a11y-text" },
1846
1846
  this.dropdownContent
1847
- )), this.countryList = N(
1847
+ )), this.countryList = T(
1848
1848
  "ul",
1849
1849
  {
1850
1850
  class: "iti__country-list",
@@ -1855,53 +1855,53 @@ class F2 {
1855
1855
  this.dropdownContent
1856
1856
  ), this._appendListItems(), b && this._updateSearchResultsText(), c) {
1857
1857
  let O = "iti iti--container";
1858
- g ? O += " iti--fullscreen-popup" : O += " iti--inline-dropdown", this.dropdown = N("div", { class: O }), this.dropdown.appendChild(this.dropdownContent);
1858
+ f ? O += " iti--fullscreen-popup" : O += " iti--inline-dropdown", this.dropdown = T("div", { class: O }), this.dropdown.appendChild(this.dropdownContent);
1859
1859
  } else
1860
1860
  this.countryContainer.appendChild(this.dropdownContent);
1861
1861
  }
1862
1862
  }
1863
- if (S.appendChild(this.telInput), this._updateInputPadding(), a) {
1864
- const T = this.telInput.getAttribute("name") || "", P = a(T);
1865
- P.phone && (this.hiddenInput = N("input", {
1863
+ if (N.appendChild(this.telInput), this._updateInputPadding(), a) {
1864
+ const A = this.telInput.getAttribute("name") || "", M = a(A);
1865
+ M.phone && (this.hiddenInput = T("input", {
1866
1866
  type: "hidden",
1867
- name: P.phone
1868
- }), S.appendChild(this.hiddenInput)), P.country && (this.hiddenInputCountry = N("input", {
1867
+ name: M.phone
1868
+ }), N.appendChild(this.hiddenInput)), M.country && (this.hiddenInputCountry = T("input", {
1869
1869
  type: "hidden",
1870
- name: P.country
1871
- }), S.appendChild(this.hiddenInputCountry));
1870
+ name: M.country
1871
+ }), N.appendChild(this.hiddenInputCountry));
1872
1872
  }
1873
1873
  }
1874
1874
  //* For each country: add a country list item <li> to the countryList <ul> container.
1875
1875
  _appendListItems() {
1876
1876
  for (let e = 0; e < this.countries.length; e++) {
1877
- const i = this.countries[e], s = e === 0 ? "iti__highlight" : "", u = N(
1877
+ const n = this.countries[e], r = e === 0 ? "iti__highlight" : "", o = T(
1878
1878
  "li",
1879
1879
  {
1880
- id: `iti-${this.id}__item-${i.iso2}`,
1881
- class: `iti__country ${s}`,
1880
+ id: `iti-${this.id}__item-${n.iso2}`,
1881
+ class: `iti__country ${r}`,
1882
1882
  tabindex: "-1",
1883
1883
  role: "option",
1884
- "data-dial-code": i.dialCode,
1885
- "data-country-code": i.iso2,
1884
+ "data-dial-code": n.dialCode,
1885
+ "data-country-code": n.iso2,
1886
1886
  "aria-selected": "false"
1887
1887
  },
1888
1888
  this.countryList
1889
1889
  );
1890
- i.nodeById[this.id] = u;
1890
+ n.nodeById[this.id] = o;
1891
1891
  let a = "";
1892
- this.options.showFlags && (a += `<div class='iti__flag iti__${i.iso2}'></div>`), a += `<span class='iti__country-name'>${i.name}</span>`, a += `<span class='iti__dial-code'>+${i.dialCode}</span>`, u.insertAdjacentHTML("beforeend", a);
1892
+ this.options.showFlags && (a += `<div class='iti__flag iti__${n.iso2}'></div>`), a += `<span class='iti__country-name'>${n.name}</span>`, a += `<span class='iti__dial-code'>+${n.dialCode}</span>`, o.insertAdjacentHTML("beforeend", a);
1893
1893
  }
1894
1894
  }
1895
1895
  //* Set the initial state of the input value and the selected country by:
1896
1896
  //* 1. Extracting a dial code from the given number
1897
1897
  //* 2. Using explicit initialCountry
1898
1898
  _setInitialState(e = !1) {
1899
- const i = this.telInput.getAttribute("value"), s = this.telInput.value, a = i && i.charAt(0) === "+" && (!s || s.charAt(0) !== "+") ? i : s, c = this._getDialCode(a), p = n2(a), { initialCountry: g, geoIpLookup: b } = this.options, _ = g === "auto" && b;
1900
- if (c && !p)
1899
+ const n = this.telInput.getAttribute("value"), r = this.telInput.value, a = n && n.charAt(0) === "+" && (!r || r.charAt(0) !== "+") ? n : r, c = this._getDialCode(a), g = s2(a), { initialCountry: f, geoIpLookup: b } = this.options, _ = f === "auto" && b;
1900
+ if (c && !g)
1901
1901
  this._updateCountryFromNumber(a);
1902
1902
  else if (!_ || e) {
1903
- const A = g ? g.toLowerCase() : "";
1904
- A && this._getCountryData(A, !0) ? this._setCountry(A) : c && p ? this._setCountry("us") : this._setCountry();
1903
+ const I = f ? f.toLowerCase() : "";
1904
+ I && this._getCountryData(I, !0) ? this._setCountry(I) : c && g ? this._setCountry("us") : this._setCountry();
1905
1905
  }
1906
1906
  a && this._updateValFromNumber(a);
1907
1907
  }
@@ -1921,14 +1921,14 @@ class F2 {
1921
1921
  }
1922
1922
  //* initialise the dropdown listeners.
1923
1923
  _initDropdownListeners() {
1924
- this._handleLabelClick = (i) => {
1925
- this.dropdownContent.classList.contains("iti__hide") ? this.telInput.focus() : i.preventDefault();
1924
+ this._handleLabelClick = (n) => {
1925
+ this.dropdownContent.classList.contains("iti__hide") ? this.telInput.focus() : n.preventDefault();
1926
1926
  };
1927
1927
  const e = this.telInput.closest("label");
1928
1928
  e && e.addEventListener("click", this._handleLabelClick), this._handleClickSelectedCountry = () => {
1929
1929
  this.dropdownContent.classList.contains("iti__hide") && !this.telInput.disabled && !this.telInput.readOnly && this._openDropdown();
1930
- }, this.selectedCountry.addEventListener("click", this._handleClickSelectedCountry), this._handleCountryContainerKeydown = (i) => {
1931
- this.dropdownContent.classList.contains("iti__hide") && ["ArrowUp", "ArrowDown", " ", "Enter"].includes(i.key) && (i.preventDefault(), i.stopPropagation(), this._openDropdown()), i.key === "Tab" && this._closeDropdown();
1930
+ }, this.selectedCountry.addEventListener("click", this._handleClickSelectedCountry), this._handleCountryContainerKeydown = (n) => {
1931
+ this.dropdownContent.classList.contains("iti__hide") && ["ArrowUp", "ArrowDown", " ", "Enter"].includes(n.key) && (n.preventDefault(), n.stopPropagation(), this._openDropdown()), n.key === "Tab" && this._closeDropdown();
1932
1932
  }, this.countryContainer.addEventListener(
1933
1933
  "keydown",
1934
1934
  this._handleCountryContainerKeydown
@@ -1936,17 +1936,17 @@ class F2 {
1936
1936
  }
1937
1937
  //* Init many requests: utils script / geo ip lookup.
1938
1938
  _initRequests() {
1939
- const { utilsScript: e, initialCountry: i, geoIpLookup: s } = this.options;
1939
+ const { utilsScript: e, initialCountry: n, geoIpLookup: r } = this.options;
1940
1940
  e && !C.utils ? C.documentReady() ? C.loadUtils(e) : window.addEventListener("load", () => {
1941
1941
  C.loadUtils(e);
1942
- }) : this.resolveUtilsScriptPromise(), i === "auto" && s && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
1942
+ }) : this.resolveUtilsScriptPromise(), n === "auto" && r && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
1943
1943
  }
1944
1944
  //* Perform the geo ip lookup.
1945
1945
  _loadAutoCountry() {
1946
1946
  C.autoCountry ? this.handleAutoCountry() : C.startedLoadingAutoCountry || (C.startedLoadingAutoCountry = !0, typeof this.options.geoIpLookup == "function" && this.options.geoIpLookup(
1947
1947
  (e = "") => {
1948
- const i = e.toLowerCase();
1949
- i && this._getCountryData(i, !0) ? (C.autoCountry = i, setTimeout(() => $1("handleAutoCountry"))) : (this._setInitialState(!0), $1("rejectAutoCountryPromise"));
1948
+ const n = e.toLowerCase();
1949
+ n && this._getCountryData(n, !0) ? (C.autoCountry = n, setTimeout(() => $1("handleAutoCountry"))) : (this._setInitialState(!0), $1("rejectAutoCountryPromise"));
1950
1950
  },
1951
1951
  () => {
1952
1952
  this._setInitialState(!0), $1("rejectAutoCountryPromise");
@@ -1958,77 +1958,82 @@ class F2 {
1958
1958
  }
1959
1959
  //* Initialize the tel input listeners.
1960
1960
  _initTelInputListeners() {
1961
- const { strictMode: e, formatAsYouType: i, separateDialCode: s, formatOnDisplay: u, allowDropdown: a, countrySearch: c } = this.options;
1962
- let p = !1;
1963
- new RegExp("\\p{L}", "u").test(this.telInput.value) && (p = !0), this._handleInputEvent = (g) => {
1964
- if (this.isAndroid && (g == null ? void 0 : g.data) === "+" && s && a && c) {
1965
- const S = this.telInput.selectionStart || 0, I = this.telInput.value.substring(0, S - 1), T = this.telInput.value.substring(S);
1966
- this.telInput.value = I + T, this._openDropdownWithPlus();
1961
+ const { strictMode: e, formatAsYouType: n, separateDialCode: r, formatOnDisplay: o, allowDropdown: a, countrySearch: c } = this.options;
1962
+ let g = !1;
1963
+ new RegExp("\\p{L}", "u").test(this.telInput.value) && (g = !0), this._handleInputEvent = (f) => {
1964
+ if (this.isAndroid && (f == null ? void 0 : f.data) === "+" && r && a && c) {
1965
+ const N = this.telInput.selectionStart || 0, v = this.telInput.value.substring(0, N - 1), A = this.telInput.value.substring(N);
1966
+ this.telInput.value = v + A, this._openDropdownWithPlus();
1967
1967
  return;
1968
1968
  }
1969
1969
  this._updateCountryFromNumber(this.telInput.value) && this._triggerCountryChange();
1970
- const b = (g == null ? void 0 : g.data) && /[^+0-9]/.test(g.data), _ = (g == null ? void 0 : g.inputType) === "insertFromPaste" && this.telInput.value;
1971
- b || _ && !e ? p = !0 : /[^+0-9]/.test(this.telInput.value) || (p = !1);
1972
- const A = (g == null ? void 0 : g.detail) && g.detail.isSetNumber && !u;
1973
- if (i && !p && !A) {
1974
- const S = this.telInput.selectionStart || 0, T = this.telInput.value.substring(0, S).replace(/[^+0-9]/g, "").length, P = (g == null ? void 0 : g.inputType) === "deleteContentForward", O = this._formatNumberAsYouType(), J = U2(T, O, S, P);
1975
- this.telInput.value = O, this.telInput.setSelectionRange(J, J);
1970
+ const b = (f == null ? void 0 : f.data) && /[^+0-9]/.test(f.data), _ = (f == null ? void 0 : f.inputType) === "insertFromPaste" && this.telInput.value;
1971
+ b || _ && !e ? g = !0 : /[^+0-9]/.test(this.telInput.value) || (g = !1);
1972
+ const I = (f == null ? void 0 : f.detail) && f.detail.isSetNumber && !o;
1973
+ if (n && !g && !I) {
1974
+ const N = this.telInput.selectionStart || 0, A = this.telInput.value.substring(0, N).replace(/[^+0-9]/g, "").length, M = (f == null ? void 0 : f.inputType) === "deleteContentForward", O = this._formatNumberAsYouType(), Z = F2(A, O, N, M);
1975
+ this.telInput.value = O, this.telInput.setSelectionRange(Z, Z);
1976
1976
  }
1977
- }, this.telInput.addEventListener("input", this._handleInputEvent), (e || s) && (this._handleKeydownEvent = (g) => {
1978
- if (g.key && g.key.length === 1 && !g.altKey && !g.ctrlKey && !g.metaKey) {
1979
- if (s && a && c && g.key === "+") {
1980
- g.preventDefault(), this._openDropdownWithPlus();
1977
+ }, this.telInput.addEventListener("input", this._handleInputEvent), (e || r) && (this._handleKeydownEvent = (f) => {
1978
+ if (f.key && f.key.length === 1 && !f.altKey && !f.ctrlKey && !f.metaKey) {
1979
+ if (r && a && c && f.key === "+") {
1980
+ f.preventDefault(), this._openDropdownWithPlus();
1981
1981
  return;
1982
1982
  }
1983
1983
  if (e) {
1984
- const b = this.telInput.selectionStart === 0 && g.key === "+", _ = /^[0-9]$/.test(g.key), A = s ? _ : b || _, S = this._getFullNumber(), I = C.utils.getCoreNumber(S, this.selectedCountryData.iso2), T = this.maxCoreNumberLength && I.length >= this.maxCoreNumberLength, P = this.telInput.value.substring(this.telInput.selectionStart, this.telInput.selectionEnd), O = /\d/.test(P), f1 = (this.telInput.selectionStart || 0) === this.telInput.value.length;
1985
- (!A || T && !O && f1) && g.preventDefault();
1984
+ const b = this.telInput.value, _ = b.charAt(0) === "+", I = !_ && this.telInput.selectionStart === 0 && f.key === "+", N = /^[0-9]$/.test(f.key), v = r ? N : I || N, A = b.slice(0, this.telInput.selectionStart) + f.key + b.slice(this.telInput.selectionEnd), M = this._getFullNumber(A), O = C.utils.getCoreNumber(M, this.selectedCountryData.iso2), Z = this.maxCoreNumberLength && O.length > this.maxCoreNumberLength;
1985
+ let n1 = !1;
1986
+ if (_) {
1987
+ const p1 = this.selectedCountryData.iso2;
1988
+ n1 = this._getCountryFromNumber(M) !== p1;
1989
+ }
1990
+ (!v || Z && !n1 && !I) && f.preventDefault();
1986
1991
  }
1987
1992
  }
1988
1993
  }, this.telInput.addEventListener("keydown", this._handleKeydownEvent));
1989
1994
  }
1990
1995
  //* Adhere to the input's maxlength attr.
1991
1996
  _cap(e) {
1992
- const i = parseInt(this.telInput.getAttribute("maxlength") || "", 10);
1993
- return i && e.length > i ? e.substr(0, i) : e;
1997
+ const n = parseInt(this.telInput.getAttribute("maxlength") || "", 10);
1998
+ return n && e.length > n ? e.substr(0, n) : e;
1994
1999
  }
1995
2000
  //* Trigger a custom event on the input.
1996
- _trigger(e, i = {}) {
1997
- const s = new CustomEvent(e, {
2001
+ _trigger(e, n = {}) {
2002
+ const r = new CustomEvent(e, {
1998
2003
  bubbles: !0,
1999
2004
  cancelable: !0,
2000
- detail: i
2005
+ detail: n
2001
2006
  });
2002
- this.telInput.dispatchEvent(s);
2007
+ this.telInput.dispatchEvent(r);
2003
2008
  }
2004
2009
  //* Open the dropdown.
2005
2010
  _openDropdown() {
2006
- const { fixDropdownWidth: e, countrySearch: i } = this.options;
2007
- if (e && (this.dropdownContent.style.width = `${this.telInput.offsetWidth}px`), this.dropdownContent.classList.remove("iti__hide"), this.selectedCountry.setAttribute("aria-expanded", "true"), this._setDropdownPosition(), i) {
2008
- const s = this.countryList.firstElementChild;
2009
- s && (this._highlightListItem(s, !1), this.countryList.scrollTop = 0), this.searchInput.focus();
2011
+ const { fixDropdownWidth: e, countrySearch: n } = this.options;
2012
+ if (e && (this.dropdownContent.style.width = `${this.telInput.offsetWidth}px`), this.dropdownContent.classList.remove("iti__hide"), this.selectedCountry.setAttribute("aria-expanded", "true"), this._setDropdownPosition(), n) {
2013
+ const r = this.countryList.firstElementChild;
2014
+ r && (this._highlightListItem(r, !1), this.countryList.scrollTop = 0), this.searchInput.focus();
2010
2015
  }
2011
2016
  this._bindDropdownListeners(), this.dropdownArrow.classList.add("iti__arrow--up"), this._trigger("open:countrydropdown");
2012
2017
  }
2013
2018
  //* Set the dropdown position
2014
2019
  _setDropdownPosition() {
2015
2020
  if (this.options.dropdownContainer && this.options.dropdownContainer.appendChild(this.dropdown), !this.options.useFullscreenPopup) {
2016
- const e = this.telInput.getBoundingClientRect(), i = this.telInput.offsetHeight;
2017
- this.options.dropdownContainer && (this.dropdown.style.top = `${e.top + i}px`, this.dropdown.style.left = `${e.left}px`, this._handleWindowScroll = () => this._closeDropdown(), window.addEventListener("scroll", this._handleWindowScroll));
2021
+ const e = this.telInput.getBoundingClientRect(), n = this.telInput.offsetHeight;
2022
+ this.options.dropdownContainer && (this.dropdown.style.top = `${e.top + n}px`, this.dropdown.style.left = `${e.left}px`, this._handleWindowScroll = () => this._closeDropdown(), window.addEventListener("scroll", this._handleWindowScroll));
2018
2023
  }
2019
2024
  }
2020
2025
  //* We only bind dropdown listeners when the dropdown is open.
2021
2026
  _bindDropdownListeners() {
2022
- this._handleMouseoverCountryList = (u) => {
2027
+ this._handleMouseoverCountryList = (o) => {
2023
2028
  var c;
2024
- const a = (c = u.target) == null ? void 0 : c.closest(".iti__country");
2029
+ const a = (c = o.target) == null ? void 0 : c.closest(".iti__country");
2025
2030
  a && this._highlightListItem(a, !1);
2026
2031
  }, this.countryList.addEventListener(
2027
2032
  "mouseover",
2028
2033
  this._handleMouseoverCountryList
2029
- ), this._handleClickCountryList = (u) => {
2034
+ ), this._handleClickCountryList = (o) => {
2030
2035
  var c;
2031
- const a = (c = u.target) == null ? void 0 : c.closest(".iti__country");
2036
+ const a = (c = o.target) == null ? void 0 : c.closest(".iti__country");
2032
2037
  a && this._selectListItem(a);
2033
2038
  }, this.countryList.addEventListener("click", this._handleClickCountryList);
2034
2039
  let e = !0;
@@ -2038,60 +2043,60 @@ class F2 {
2038
2043
  "click",
2039
2044
  this._handleClickOffToClose
2040
2045
  );
2041
- let i = "", s = null;
2042
- if (this._handleKeydownOnDropdown = (u) => {
2043
- ["ArrowUp", "ArrowDown", "Enter", "Escape"].includes(u.key) && (u.preventDefault(), u.stopPropagation(), u.key === "ArrowUp" || u.key === "ArrowDown" ? this._handleUpDownKey(u.key) : u.key === "Enter" ? this._handleEnterKey() : u.key === "Escape" && this._closeDropdown()), !this.options.countrySearch && /^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(u.key) && (u.stopPropagation(), s && clearTimeout(s), i += u.key.toLowerCase(), this._searchForCountry(i), s = setTimeout(() => {
2044
- i = "";
2046
+ let n = "", r = null;
2047
+ if (this._handleKeydownOnDropdown = (o) => {
2048
+ ["ArrowUp", "ArrowDown", "Enter", "Escape"].includes(o.key) && (o.preventDefault(), o.stopPropagation(), o.key === "ArrowUp" || o.key === "ArrowDown" ? this._handleUpDownKey(o.key) : o.key === "Enter" ? this._handleEnterKey() : o.key === "Escape" && this._closeDropdown()), !this.options.countrySearch && /^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(o.key) && (o.stopPropagation(), r && clearTimeout(r), n += o.key.toLowerCase(), this._searchForCountry(n), r = setTimeout(() => {
2049
+ n = "";
2045
2050
  }, 1e3));
2046
2051
  }, document.addEventListener("keydown", this._handleKeydownOnDropdown), this.options.countrySearch) {
2047
- const u = () => {
2052
+ const o = () => {
2048
2053
  const c = this.searchInput.value.trim();
2049
2054
  c ? this._filterCountries(c) : this._filterCountries("", !0);
2050
2055
  };
2051
2056
  let a = null;
2052
2057
  this._handleSearchChange = () => {
2053
2058
  a && clearTimeout(a), a = setTimeout(() => {
2054
- u(), a = null;
2059
+ o(), a = null;
2055
2060
  }, 100);
2056
2061
  }, this.searchInput.addEventListener("input", this._handleSearchChange), this.searchInput.addEventListener("click", (c) => c.stopPropagation());
2057
2062
  }
2058
2063
  }
2059
2064
  //* Hidden search (countrySearch disabled): Find the first list item whose name starts with the query string.
2060
2065
  _searchForCountry(e) {
2061
- for (let i = 0; i < this.countries.length; i++) {
2062
- const s = this.countries[i];
2063
- if (s.name.substr(0, e.length).toLowerCase() === e) {
2064
- const a = s.nodeById[this.id];
2066
+ for (let n = 0; n < this.countries.length; n++) {
2067
+ const r = this.countries[n];
2068
+ if (r.name.substr(0, e.length).toLowerCase() === e) {
2069
+ const a = r.nodeById[this.id];
2065
2070
  this._highlightListItem(a, !1), this._scrollTo(a);
2066
2071
  break;
2067
2072
  }
2068
2073
  }
2069
2074
  }
2070
2075
  //* Country search enabled: Filter the countries according to the search query.
2071
- _filterCountries(e, i = !1) {
2072
- let s = !0;
2076
+ _filterCountries(e, n = !1) {
2077
+ let r = !0;
2073
2078
  this.countryList.innerHTML = "";
2074
- const u = i2(e);
2079
+ const o = r2(e);
2075
2080
  for (let a = 0; a < this.countries.length; a++) {
2076
- const c = this.countries[a], p = i2(c.name), g = c.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((_) => _[0]).join("").toLowerCase(), b = `+${c.dialCode}`;
2077
- if (i || p.includes(u) || b.includes(u) || c.iso2.includes(u) || g.includes(u)) {
2081
+ const c = this.countries[a], g = r2(c.name), f = c.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((_) => _[0]).join("").toLowerCase(), b = `+${c.dialCode}`;
2082
+ if (n || g.includes(o) || b.includes(o) || c.iso2.includes(o) || f.includes(o)) {
2078
2083
  const _ = c.nodeById[this.id];
2079
- _ && this.countryList.appendChild(_), s && (this._highlightListItem(_, !1), s = !1);
2084
+ _ && this.countryList.appendChild(_), r && (this._highlightListItem(_, !1), r = !1);
2080
2085
  }
2081
2086
  }
2082
- s && this._highlightListItem(null, !1), this.countryList.scrollTop = 0, this._updateSearchResultsText();
2087
+ r && this._highlightListItem(null, !1), this.countryList.scrollTop = 0, this._updateSearchResultsText();
2083
2088
  }
2084
2089
  //* Update search results text (for a11y).
2085
2090
  _updateSearchResultsText() {
2086
- const { i18n: e } = this.options, i = this.countryList.childElementCount;
2087
- let s;
2088
- i === 0 ? s = e.zeroSearchResults : i === 1 ? s = e.oneSearchResult : s = e.multipleSearchResults.replace("${count}", i.toString()), this.searchResultsA11yText.textContent = s;
2091
+ const { i18n: e } = this.options, n = this.countryList.childElementCount;
2092
+ let r;
2093
+ n === 0 ? r = e.zeroSearchResults : n === 1 ? r = e.oneSearchResult : r = e.multipleSearchResults.replace("${count}", n.toString()), this.searchResultsA11yText.textContent = r;
2089
2094
  }
2090
2095
  //* Highlight the next/prev item in the list (and ensure it is visible).
2091
2096
  _handleUpDownKey(e) {
2092
- var s, u;
2093
- let i = e === "ArrowUp" ? (s = this.highlightedItem) == null ? void 0 : s.previousElementSibling : (u = this.highlightedItem) == null ? void 0 : u.nextElementSibling;
2094
- !i && this.countryList.childElementCount > 1 && (i = e === "ArrowUp" ? this.countryList.lastElementChild : this.countryList.firstElementChild), i && (this._scrollTo(i), this._highlightListItem(i, !1));
2097
+ var r, o;
2098
+ let n = e === "ArrowUp" ? (r = this.highlightedItem) == null ? void 0 : r.previousElementSibling : (o = this.highlightedItem) == null ? void 0 : o.nextElementSibling;
2099
+ !n && this.countryList.childElementCount > 1 && (n = e === "ArrowUp" ? this.countryList.lastElementChild : this.countryList.firstElementChild), n && (this._scrollTo(n), this._highlightListItem(n, !1));
2095
2100
  }
2096
2101
  //* Select the currently highlighted item.
2097
2102
  _handleEnterKey() {
@@ -2100,67 +2105,73 @@ class F2 {
2100
2105
  //* Update the input's value to the given val (format first if possible)
2101
2106
  //* NOTE: this is called from _setInitialState, handleUtils and setNumber.
2102
2107
  _updateValFromNumber(e) {
2103
- let i = e;
2108
+ let n = e;
2104
2109
  if (this.options.formatOnDisplay && C.utils && this.selectedCountryData) {
2105
- const s = this.options.nationalMode || i.charAt(0) !== "+" && !this.options.separateDialCode, { NATIONAL: u, INTERNATIONAL: a } = C.utils.numberFormat, c = s ? u : a;
2106
- i = C.utils.formatNumber(
2107
- i,
2110
+ const r = this.options.nationalMode || n.charAt(0) !== "+" && !this.options.separateDialCode, { NATIONAL: o, INTERNATIONAL: a } = C.utils.numberFormat, c = r ? o : a;
2111
+ n = C.utils.formatNumber(
2112
+ n,
2108
2113
  this.selectedCountryData.iso2,
2109
2114
  c
2110
2115
  );
2111
2116
  }
2112
- i = this._beforeSetNumber(i), this.telInput.value = i;
2117
+ n = this._beforeSetNumber(n), this.telInput.value = n;
2113
2118
  }
2114
2119
  //* Check if need to select a new country based on the given number
2115
2120
  //* Note: called from _setInitialState, keyup handler, setNumber.
2116
2121
  _updateCountryFromNumber(e) {
2117
- const i = e.indexOf("+");
2118
- let s = i ? e.substring(i) : e;
2119
- const u = this.selectedCountryData.dialCode;
2120
- s && u === "1" && s.charAt(0) !== "+" && (s.charAt(0) !== "1" && (s = `1${s}`), s = `+${s}`), this.options.separateDialCode && u && s.charAt(0) !== "+" && (s = `+${u}${s}`);
2121
- const c = this._getDialCode(s, !0), p = c1(s);
2122
- let g = null;
2122
+ const n = this._getCountryFromNumber(e);
2123
+ return n !== null ? this._setCountry(n) : !1;
2124
+ }
2125
+ _getCountryFromNumber(e) {
2126
+ const n = e.indexOf("+");
2127
+ let r = n ? e.substring(n) : e;
2128
+ const o = this.selectedCountryData.dialCode;
2129
+ r && o === "1" && r.charAt(0) !== "+" && (r.charAt(0) !== "1" && (r = `1${r}`), r = `+${r}`), this.options.separateDialCode && o && r.charAt(0) !== "+" && (r = `+${o}${r}`);
2130
+ const c = this._getDialCode(r, !0), g = f1(r);
2123
2131
  if (c) {
2124
- const b = this.dialCodeToIso2Map[c1(c)], _ = b.indexOf(this.selectedCountryData.iso2) !== -1 && p.length <= c.length - 1;
2125
- if (!(u === "1" && n2(p)) && !_) {
2126
- for (let S = 0; S < b.length; S++)
2127
- if (b[S]) {
2128
- g = b[S];
2129
- break;
2130
- }
2132
+ const f = this.dialCodeToIso2Map[f1(c)], b = f.indexOf(this.selectedCountryData.iso2) !== -1 && g.length <= c.length - 1;
2133
+ if (!(o === "1" && s2(g)) && !b) {
2134
+ for (let I = 0; I < f.length; I++)
2135
+ if (f[I])
2136
+ return f[I];
2131
2137
  }
2132
- } else s.charAt(0) === "+" && p.length ? g = "" : (!s || s === "+") && !this.selectedCountryData.iso2 && (g = this.defaultCountry);
2133
- return g !== null ? this._setCountry(g) : !1;
2138
+ } else {
2139
+ if (r.charAt(0) === "+" && g.length)
2140
+ return "";
2141
+ if ((!r || r === "+") && !this.selectedCountryData.iso2)
2142
+ return this.defaultCountry;
2143
+ }
2144
+ return null;
2134
2145
  }
2135
2146
  //* Remove highlighting from other list items and highlight the given item.
2136
- _highlightListItem(e, i) {
2137
- const s = this.highlightedItem;
2138
- if (s && (s.classList.remove("iti__highlight"), s.setAttribute("aria-selected", "false")), this.highlightedItem = e, this.highlightedItem) {
2147
+ _highlightListItem(e, n) {
2148
+ const r = this.highlightedItem;
2149
+ if (r && (r.classList.remove("iti__highlight"), r.setAttribute("aria-selected", "false")), this.highlightedItem = e, this.highlightedItem) {
2139
2150
  this.highlightedItem.classList.add("iti__highlight"), this.highlightedItem.setAttribute("aria-selected", "true");
2140
- const u = this.highlightedItem.getAttribute("id") || "";
2141
- this.selectedCountry.setAttribute("aria-activedescendant", u), this.options.countrySearch && this.searchInput.setAttribute("aria-activedescendant", u);
2151
+ const o = this.highlightedItem.getAttribute("id") || "";
2152
+ this.selectedCountry.setAttribute("aria-activedescendant", o), this.options.countrySearch && this.searchInput.setAttribute("aria-activedescendant", o);
2142
2153
  }
2143
- i && this.highlightedItem.focus();
2154
+ n && this.highlightedItem.focus();
2144
2155
  }
2145
2156
  //* Find the country data for the given iso2 code
2146
2157
  //* the ignoreOnlyCountriesOption is only used during init() while parsing the onlyCountries array
2147
- _getCountryData(e, i) {
2148
- for (let s = 0; s < this.countries.length; s++)
2149
- if (this.countries[s].iso2 === e)
2150
- return this.countries[s];
2151
- if (i)
2158
+ _getCountryData(e, n) {
2159
+ for (let r = 0; r < this.countries.length; r++)
2160
+ if (this.countries[r].iso2 === e)
2161
+ return this.countries[r];
2162
+ if (n)
2152
2163
  return null;
2153
2164
  throw new Error(`No country data for '${e}'`);
2154
2165
  }
2155
2166
  //* Update the selected country, dial code (if separateDialCode), placeholder, title, and active list item.
2156
2167
  //* Note: called from _setInitialState, _updateCountryFromNumber, _selectListItem, setCountry.
2157
2168
  _setCountry(e) {
2158
- const { separateDialCode: i, showFlags: s, i18n: u } = this.options, a = this.selectedCountryData.iso2 ? this.selectedCountryData : {};
2169
+ const { separateDialCode: n, showFlags: r, i18n: o } = this.options, a = this.selectedCountryData.iso2 ? this.selectedCountryData : {};
2159
2170
  if (this.selectedCountryData = e ? this._getCountryData(e, !1) || {} : {}, this.selectedCountryData.iso2 && (this.defaultCountry = this.selectedCountryData.iso2), this.selectedCountryInner) {
2160
- let c = "", p = "";
2161
- e && s ? (c = `iti__flag iti__${e}`, p = `${this.selectedCountryData.name} +${this.selectedCountryData.dialCode}`) : (c = "iti__flag iti__globe", p = u.noCountrySelected), this.selectedCountryInner.className = c, this.selectedCountryA11yText.textContent = p;
2171
+ let c = "", g = "";
2172
+ e && r ? (c = `iti__flag iti__${e}`, g = `${this.selectedCountryData.name} +${this.selectedCountryData.dialCode}`) : (c = "iti__flag iti__globe", g = o.noCountrySelected), this.selectedCountryInner.className = c, this.selectedCountryA11yText.textContent = g;
2162
2173
  }
2163
- if (this._setSelectedCountryTitleAttribute(e, i), i) {
2174
+ if (this._setSelectedCountryTitleAttribute(e, n), n) {
2164
2175
  const c = this.selectedCountryData.dialCode ? `+${this.selectedCountryData.dialCode}` : "";
2165
2176
  this.selectedDialCode.innerHTML = c, this._updateInputPadding();
2166
2177
  }
@@ -2169,34 +2180,34 @@ class F2 {
2169
2180
  //* Update the input padding to make space for the selected country/dial code.
2170
2181
  _updateInputPadding() {
2171
2182
  if (this.selectedCountry) {
2172
- const i = (this.selectedCountry.offsetWidth || this._getHiddenSelectedCountryWidth()) + 6;
2173
- this.showSelectedCountryOnLeft ? this.telInput.style.paddingLeft = `${i}px` : this.telInput.style.paddingRight = `${i}px`;
2183
+ const n = (this.selectedCountry.offsetWidth || this._getHiddenSelectedCountryWidth()) + 6;
2184
+ this.showSelectedCountryOnLeft ? this.telInput.style.paddingLeft = `${n}px` : this.telInput.style.paddingRight = `${n}px`;
2174
2185
  }
2175
2186
  }
2176
2187
  //* Update the maximum valid number length for the currently selected country.
2177
2188
  _updateMaxLength() {
2178
- const { strictMode: e, placeholderNumberType: i, validationNumberType: s } = this.options;
2189
+ const { strictMode: e, placeholderNumberType: n, validationNumberType: r } = this.options, { iso2: o } = this.selectedCountryData;
2179
2190
  if (e && C.utils)
2180
- if (this.selectedCountryData.iso2) {
2181
- const u = C.utils.numberType[i];
2182
- let a = C.utils.getExampleNumber(
2183
- this.selectedCountryData.iso2,
2191
+ if (o) {
2192
+ const a = C.utils.numberType[n];
2193
+ let c = C.utils.getExampleNumber(
2194
+ o,
2184
2195
  !1,
2185
- u,
2196
+ a,
2186
2197
  !0
2187
- ), c = a;
2188
- for (; C.utils.isPossibleNumber(a, this.selectedCountryData.iso2, s); )
2189
- c = a, a += "0";
2190
- const p = C.utils.getCoreNumber(c, this.selectedCountryData.iso2);
2191
- this.maxCoreNumberLength = p.length;
2198
+ ), g = c;
2199
+ for (; C.utils.isPossibleNumber(c, o, r); )
2200
+ g = c, c += "0";
2201
+ const f = C.utils.getCoreNumber(g, o);
2202
+ this.maxCoreNumberLength = f.length, o === "by" && (this.maxCoreNumberLength = f.length + 1);
2192
2203
  } else
2193
2204
  this.maxCoreNumberLength = null;
2194
2205
  }
2195
- _setSelectedCountryTitleAttribute(e = null, i) {
2206
+ _setSelectedCountryTitleAttribute(e = null, n) {
2196
2207
  if (!this.selectedCountry)
2197
2208
  return;
2198
- let s;
2199
- e && !i ? s = `${this.selectedCountryData.name}: +${this.selectedCountryData.dialCode}` : e ? s = this.selectedCountryData.name : s = "Unknown", this.selectedCountry.setAttribute("title", s);
2209
+ let r;
2210
+ e && !n ? r = `${this.selectedCountryData.name}: +${this.selectedCountryData.dialCode}` : e ? r = this.selectedCountryData.name : r = "Unknown", this.selectedCountry.setAttribute("title", r);
2200
2211
  }
2201
2212
  //* When the input is in a hidden container during initialisation, we must inject some markup
2202
2213
  //* into the end of the DOM to calculate the correct offsetWidth.
@@ -2206,12 +2217,12 @@ class F2 {
2206
2217
  if (this.telInput.parentNode) {
2207
2218
  const e = this.telInput.parentNode.cloneNode(!1);
2208
2219
  e.style.visibility = "hidden", document.body.appendChild(e);
2209
- const i = this.countryContainer.cloneNode();
2210
- e.appendChild(i);
2211
- const s = this.selectedCountry.cloneNode(!0);
2212
- i.appendChild(s);
2213
- const u = s.offsetWidth;
2214
- return document.body.removeChild(e), u;
2220
+ const n = this.countryContainer.cloneNode();
2221
+ e.appendChild(n);
2222
+ const r = this.selectedCountry.cloneNode(!0);
2223
+ n.appendChild(r);
2224
+ const o = r.offsetWidth;
2225
+ return document.body.removeChild(e), o;
2215
2226
  }
2216
2227
  return 0;
2217
2228
  }
@@ -2219,26 +2230,26 @@ class F2 {
2219
2230
  _updatePlaceholder() {
2220
2231
  const {
2221
2232
  autoPlaceholder: e,
2222
- placeholderNumberType: i,
2223
- nationalMode: s,
2224
- customPlaceholder: u
2233
+ placeholderNumberType: n,
2234
+ nationalMode: r,
2235
+ customPlaceholder: o
2225
2236
  } = this.options, a = e === "aggressive" || !this.hadInitialPlaceholder && e === "polite";
2226
2237
  if (C.utils && a) {
2227
- const c = C.utils.numberType[i];
2228
- let p = this.selectedCountryData.iso2 ? C.utils.getExampleNumber(
2238
+ const c = C.utils.numberType[n];
2239
+ let g = this.selectedCountryData.iso2 ? C.utils.getExampleNumber(
2229
2240
  this.selectedCountryData.iso2,
2230
- s,
2241
+ r,
2231
2242
  c
2232
2243
  ) : "";
2233
- p = this._beforeSetNumber(p), typeof u == "function" && (p = u(p, this.selectedCountryData)), this.telInput.setAttribute("placeholder", p);
2244
+ g = this._beforeSetNumber(g), typeof o == "function" && (g = o(g, this.selectedCountryData)), this.telInput.setAttribute("placeholder", g);
2234
2245
  }
2235
2246
  }
2236
2247
  //* Called when the user selects a list item from the dropdown.
2237
2248
  _selectListItem(e) {
2238
- const i = this._setCountry(
2249
+ const n = this._setCountry(
2239
2250
  e.getAttribute("data-country-code")
2240
2251
  );
2241
- this._closeDropdown(), this._updateDialCode(e.getAttribute("data-dial-code")), this.telInput.focus(), i && this._triggerCountryChange();
2252
+ this._closeDropdown(), this._updateDialCode(e.getAttribute("data-dial-code")), this.telInput.focus(), n && this._triggerCountryChange();
2242
2253
  }
2243
2254
  //* Close the dropdown and unbind any listeners.
2244
2255
  _closeDropdown() {
@@ -2252,65 +2263,65 @@ class F2 {
2252
2263
  }
2253
2264
  //* Check if an element is visible within it's container, else scroll until it is.
2254
2265
  _scrollTo(e) {
2255
- const i = this.countryList, s = document.documentElement.scrollTop, u = i.offsetHeight, a = i.getBoundingClientRect().top + s, c = a + u, p = e.offsetHeight, g = e.getBoundingClientRect().top + s, b = g + p, _ = g - a + i.scrollTop;
2256
- if (g < a)
2257
- i.scrollTop = _;
2266
+ const n = this.countryList, r = document.documentElement.scrollTop, o = n.offsetHeight, a = n.getBoundingClientRect().top + r, c = a + o, g = e.offsetHeight, f = e.getBoundingClientRect().top + r, b = f + g, _ = f - a + n.scrollTop;
2267
+ if (f < a)
2268
+ n.scrollTop = _;
2258
2269
  else if (b > c) {
2259
- const A = u - p;
2260
- i.scrollTop = _ - A;
2270
+ const I = o - g;
2271
+ n.scrollTop = _ - I;
2261
2272
  }
2262
2273
  }
2263
2274
  //* Replace any existing dial code with the new one
2264
2275
  //* Note: called from _selectListItem and setCountry
2265
2276
  _updateDialCode(e) {
2266
- const i = this.telInput.value, s = `+${e}`;
2267
- let u;
2268
- if (i.charAt(0) === "+") {
2269
- const a = this._getDialCode(i);
2270
- a ? u = i.replace(a, s) : u = s, this.telInput.value = u;
2277
+ const n = this.telInput.value, r = `+${e}`;
2278
+ let o;
2279
+ if (n.charAt(0) === "+") {
2280
+ const a = this._getDialCode(n);
2281
+ a ? o = n.replace(a, r) : o = r, this.telInput.value = o;
2271
2282
  }
2272
2283
  }
2273
2284
  //* Try and extract a valid international dial code from a full telephone number.
2274
2285
  //* Note: returns the raw string inc plus character and any whitespace/dots etc.
2275
- _getDialCode(e, i) {
2276
- let s = "";
2286
+ _getDialCode(e, n) {
2287
+ let r = "";
2277
2288
  if (e.charAt(0) === "+") {
2278
- let u = "";
2289
+ let o = "";
2279
2290
  for (let a = 0; a < e.length; a++) {
2280
2291
  const c = e.charAt(a);
2281
2292
  if (!isNaN(parseInt(c, 10))) {
2282
- if (u += c, i)
2283
- this.dialCodeToIso2Map[u] && (s = e.substr(0, a + 1));
2284
- else if (this.dialCodes[u]) {
2285
- s = e.substr(0, a + 1);
2293
+ if (o += c, n)
2294
+ this.dialCodeToIso2Map[o] && (r = e.substr(0, a + 1));
2295
+ else if (this.dialCodes[o]) {
2296
+ r = e.substr(0, a + 1);
2286
2297
  break;
2287
2298
  }
2288
- if (u.length === this.dialCodeMaxLen)
2299
+ if (o.length === this.dialCodeMaxLen)
2289
2300
  break;
2290
2301
  }
2291
2302
  }
2292
2303
  }
2293
- return s;
2304
+ return r;
2294
2305
  }
2295
2306
  //* Get the input val, adding the dial code if separateDialCode is enabled.
2296
- _getFullNumber() {
2297
- const e = this.telInput.value.trim(), { dialCode: i } = this.selectedCountryData;
2298
- let s;
2299
- const u = c1(e);
2300
- return this.options.separateDialCode && e.charAt(0) !== "+" && i && u ? s = `+${i}` : s = "", s + e;
2307
+ _getFullNumber(e) {
2308
+ const n = e || this.telInput.value.trim(), { dialCode: r } = this.selectedCountryData;
2309
+ let o;
2310
+ const a = f1(n);
2311
+ return this.options.separateDialCode && n.charAt(0) !== "+" && r && a ? o = `+${r}` : o = "", o + n;
2301
2312
  }
2302
2313
  //* Remove the dial code if separateDialCode is enabled also cap the length if the input has a maxlength attribute
2303
2314
  _beforeSetNumber(e) {
2304
- let i = e;
2315
+ let n = e;
2305
2316
  if (this.options.separateDialCode) {
2306
- let s = this._getDialCode(i);
2307
- if (s) {
2308
- s = `+${this.selectedCountryData.dialCode}`;
2309
- const u = i[s.length] === " " || i[s.length] === "-" ? s.length + 1 : s.length;
2310
- i = i.substr(u);
2317
+ let r = this._getDialCode(n);
2318
+ if (r) {
2319
+ r = `+${this.selectedCountryData.dialCode}`;
2320
+ const o = n[r.length] === " " || n[r.length] === "-" ? r.length + 1 : r.length;
2321
+ n = n.substr(o);
2311
2322
  }
2312
2323
  }
2313
- return this._cap(i);
2324
+ return this._cap(n);
2314
2325
  }
2315
2326
  //* Trigger the 'countrychange' event.
2316
2327
  _triggerCountryChange() {
@@ -2318,8 +2329,8 @@ class F2 {
2318
2329
  }
2319
2330
  //* Format the number as the user types.
2320
2331
  _formatNumberAsYouType() {
2321
- const e = this._getFullNumber(), i = C.utils ? C.utils.formatNumberAsYouType(e, this.selectedCountryData.iso2) : e, { dialCode: s } = this.selectedCountryData;
2322
- return this.options.separateDialCode && this.telInput.value.charAt(0) !== "+" && i.includes(`+${s}`) ? (i.split(`+${s}`)[1] || "").trim() : i;
2332
+ const e = this._getFullNumber(), n = C.utils ? C.utils.formatNumberAsYouType(e, this.selectedCountryData.iso2) : e, { dialCode: r } = this.selectedCountryData;
2333
+ return this.options.separateDialCode && this.telInput.value.charAt(0) !== "+" && n.includes(`+${r}`) ? (n.split(`+${r}`)[1] || "").trim() : n;
2323
2334
  }
2324
2335
  //**************************
2325
2336
  //* SECRET PUBLIC METHODS
@@ -2338,7 +2349,7 @@ class F2 {
2338
2349
  //* Remove plugin.
2339
2350
  destroy() {
2340
2351
  var a, c;
2341
- const { allowDropdown: e, separateDialCode: i } = this.options;
2352
+ const { allowDropdown: e, separateDialCode: n } = this.options;
2342
2353
  if (e) {
2343
2354
  this._closeDropdown(), this.selectedCountry.removeEventListener(
2344
2355
  "click",
@@ -2347,13 +2358,13 @@ class F2 {
2347
2358
  "keydown",
2348
2359
  this._handleCountryContainerKeydown
2349
2360
  );
2350
- const p = this.telInput.closest("label");
2351
- p && p.removeEventListener("click", this._handleLabelClick);
2361
+ const g = this.telInput.closest("label");
2362
+ g && g.removeEventListener("click", this._handleLabelClick);
2352
2363
  }
2353
- const { form: s } = this.telInput;
2354
- this._handleHiddenInputSubmit && s && s.removeEventListener("submit", this._handleHiddenInputSubmit), this.telInput.removeEventListener("input", this._handleInputEvent), this._handleKeydownEvent && this.telInput.removeEventListener("keydown", this._handleKeydownEvent), this.telInput.removeAttribute("data-intl-tel-input-id"), i && (this.isRTL ? this.telInput.style.paddingRight = this.originalPaddingRight : this.telInput.style.paddingLeft = this.originalPaddingLeft);
2355
- const u = this.telInput.parentNode;
2356
- (a = u == null ? void 0 : u.parentNode) == null || a.insertBefore(this.telInput, u), (c = u == null ? void 0 : u.parentNode) == null || c.removeChild(u), delete C.instances[this.id];
2364
+ const { form: r } = this.telInput;
2365
+ this._handleHiddenInputSubmit && r && r.removeEventListener("submit", this._handleHiddenInputSubmit), this.telInput.removeEventListener("input", this._handleInputEvent), this._handleKeydownEvent && this.telInput.removeEventListener("keydown", this._handleKeydownEvent), this.telInput.removeAttribute("data-intl-tel-input-id"), n && (this.isRTL ? this.telInput.style.paddingRight = this.originalPaddingRight : this.telInput.style.paddingLeft = this.originalPaddingLeft);
2366
+ const o = this.telInput.parentNode;
2367
+ (a = o == null ? void 0 : o.parentNode) == null || a.insertBefore(this.telInput, o), (c = o == null ? void 0 : o.parentNode) == null || c.removeChild(o), delete C.instances[this.id];
2357
2368
  }
2358
2369
  //* Get the extension from the current number.
2359
2370
  getExtension() {
@@ -2365,10 +2376,10 @@ class F2 {
2365
2376
  //* Format the number to the given format.
2366
2377
  getNumber(e) {
2367
2378
  if (C.utils) {
2368
- const { iso2: i } = this.selectedCountryData;
2379
+ const { iso2: n } = this.selectedCountryData;
2369
2380
  return C.utils.formatNumber(
2370
2381
  this._getFullNumber(),
2371
- i,
2382
+ n,
2372
2383
  e
2373
2384
  );
2374
2385
  }
@@ -2397,10 +2408,10 @@ class F2 {
2397
2408
  isValidNumber() {
2398
2409
  if (!this.selectedCountryData.iso2)
2399
2410
  return !1;
2400
- const e = this._getFullNumber(), i = e.search(new RegExp("\\p{L}", "u"));
2401
- if (i > -1) {
2402
- const s = e.substring(0, i), u = this._utilsIsPossibleNumber(s), a = this._utilsIsPossibleNumber(e);
2403
- return u && a;
2411
+ const e = this._getFullNumber(), n = e.search(new RegExp("\\p{L}", "u"));
2412
+ if (n > -1) {
2413
+ const r = e.substring(0, n), o = this._utilsIsPossibleNumber(r), a = this._utilsIsPossibleNumber(e);
2414
+ return o && a;
2404
2415
  }
2405
2416
  return this._utilsIsPossibleNumber(e);
2406
2417
  }
@@ -2411,10 +2422,10 @@ class F2 {
2411
2422
  isValidNumberPrecise() {
2412
2423
  if (!this.selectedCountryData.iso2)
2413
2424
  return !1;
2414
- const e = this._getFullNumber(), i = e.search(new RegExp("\\p{L}", "u"));
2415
- if (i > -1) {
2416
- const s = e.substring(0, i), u = this._utilsIsValidNumber(s), a = this._utilsIsValidNumber(e);
2417
- return u && a;
2425
+ const e = this._getFullNumber(), n = e.search(new RegExp("\\p{L}", "u"));
2426
+ if (n > -1) {
2427
+ const r = e.substring(0, n), o = this._utilsIsValidNumber(r), a = this._utilsIsValidNumber(e);
2428
+ return o && a;
2418
2429
  }
2419
2430
  return this._utilsIsValidNumber(e);
2420
2431
  }
@@ -2423,13 +2434,13 @@ class F2 {
2423
2434
  }
2424
2435
  //* Update the selected country, and update the input val accordingly.
2425
2436
  setCountry(e) {
2426
- const i = e == null ? void 0 : e.toLowerCase(), s = this.selectedCountryData.iso2;
2427
- (e && i !== s || !e && s) && (this._setCountry(i), this._updateDialCode(this.selectedCountryData.dialCode), this._triggerCountryChange());
2437
+ const n = e == null ? void 0 : e.toLowerCase(), r = this.selectedCountryData.iso2;
2438
+ (e && n !== r || !e && r) && (this._setCountry(n), this._updateDialCode(this.selectedCountryData.dialCode), this._triggerCountryChange());
2428
2439
  }
2429
2440
  //* Set the input value and update the country.
2430
2441
  setNumber(e) {
2431
- const i = this._updateCountryFromNumber(e);
2432
- this._updateValFromNumber(e), i && this._triggerCountryChange(), this._trigger("input", { isSetNumber: !0 });
2442
+ const n = this._updateCountryFromNumber(e);
2443
+ this._updateValFromNumber(e), n && this._triggerCountryChange(), this._trigger("input", { isSetNumber: !0 });
2433
2444
  }
2434
2445
  //* Set the placeholder number typ
2435
2446
  setPlaceholderNumberType(e) {
@@ -2439,23 +2450,23 @@ class F2 {
2439
2450
  this.telInput.disabled = e, e ? this.selectedCountry.setAttribute("disabled", "true") : this.selectedCountry.removeAttribute("disabled");
2440
2451
  }
2441
2452
  }
2442
- const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUtilsScript = !0, new Promise((e, i) => {
2453
+ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUtilsScript = !0, new Promise((e, n) => {
2443
2454
  import_INTENTIONALLY_BROKEN(
2444
2455
  /* webpackIgnore: true */
2445
2456
  /* @vite-ignore */
2446
2457
  y
2447
- ).then(({ default: s }) => {
2448
- C.utils = s, $1("handleUtils"), e(!0);
2458
+ ).then(({ default: r }) => {
2459
+ C.utils = r, $1("handleUtils"), e(!0);
2449
2460
  }).catch(() => {
2450
- $1("rejectUtilsScriptPromise"), i();
2461
+ $1("rejectUtilsScriptPromise"), n();
2451
2462
  });
2452
2463
  })) : null, C = Object.assign(
2453
2464
  (y, e) => {
2454
- const i = new F2(y, e);
2455
- return i._init(), y.setAttribute("data-intl-tel-input-id", i.id.toString()), C.instances[i.id] = i, i;
2465
+ const n = new U2(y, e);
2466
+ return n._init(), y.setAttribute("data-intl-tel-input-id", n.id.toString()), C.instances[n.id] = n, n;
2456
2467
  },
2457
2468
  {
2458
- defaults: r2,
2469
+ defaults: u2,
2459
2470
  //* Using a static var like this allows us to mock it in the tests.
2460
2471
  documentReady: () => document.readyState === "complete",
2461
2472
  //* Get the country data object.
@@ -2468,7 +2479,7 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
2468
2479
  //* A map from instance ID to instance object.
2469
2480
  instances: {},
2470
2481
  loadUtils: V2,
2471
- version: "24.5.0"
2482
+ version: "24.5.2"
2472
2483
  }
2473
2484
  );
2474
2485
  (function() {
@@ -2477,23 +2488,23 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
2477
2488
  d = d.split(".");
2478
2489
  var $ = y;
2479
2490
  d[0] in $ || typeof $.execScript > "u" || $.execScript("var " + d[0]);
2480
- for (var n; d.length && (n = d.shift()); ) d.length || t === void 0 ? $[n] && $[n] !== Object.prototype[n] ? $ = $[n] : $ = $[n] = {} : $[n] = t;
2491
+ for (var i; d.length && (i = d.shift()); ) d.length || t === void 0 ? $[i] && $[i] !== Object.prototype[i] ? $ = $[i] : $ = $[i] = {} : $[i] = t;
2481
2492
  }
2482
- function i(d, t) {
2493
+ function n(d, t) {
2483
2494
  function $() {
2484
2495
  }
2485
- $.prototype = t.prototype, d.ma = t.prototype, d.prototype = new $(), d.prototype.constructor = d, d.sa = function(n, r, o) {
2496
+ $.prototype = t.prototype, d.ma = t.prototype, d.prototype = new $(), d.prototype.constructor = d, d.sa = function(i, s, u) {
2486
2497
  for (var l = Array(arguments.length - 2), h = 2; h < arguments.length; h++) l[h - 2] = arguments[h];
2487
- return t.prototype[r].apply(n, l);
2498
+ return t.prototype[s].apply(i, l);
2488
2499
  };
2489
2500
  }
2490
- function s(d) {
2501
+ function r(d) {
2491
2502
  const t = [];
2492
2503
  let $ = 0;
2493
- for (const n in d) t[$++] = d[n];
2504
+ for (const i in d) t[$++] = d[i];
2494
2505
  return t;
2495
2506
  }
2496
- var u = class {
2507
+ var o = class {
2497
2508
  constructor(d) {
2498
2509
  if (a !== a) throw Error("SafeUrl is not meant to be built directly");
2499
2510
  this.g = d;
@@ -2502,9 +2513,9 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
2502
2513
  return this.g.toString();
2503
2514
  }
2504
2515
  }, a = {};
2505
- new u("about:invalid#zClosurez"), new u("about:blank");
2516
+ new o("about:invalid#zClosurez"), new o("about:blank");
2506
2517
  const c = {};
2507
- class p {
2518
+ class g {
2508
2519
  constructor() {
2509
2520
  if (c !== c) throw Error("SafeStyle is not meant to be built directly");
2510
2521
  }
@@ -2512,11 +2523,11 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
2512
2523
  return "";
2513
2524
  }
2514
2525
  }
2515
- new p();
2516
- const g = {};
2526
+ new g();
2527
+ const f = {};
2517
2528
  class b {
2518
2529
  constructor() {
2519
- if (g !== g) throw Error("SafeStyleSheet is not meant to be built directly");
2530
+ if (f !== f) throw Error("SafeStyleSheet is not meant to be built directly");
2520
2531
  }
2521
2532
  toString() {
2522
2533
  return "";
@@ -2524,7 +2535,7 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
2524
2535
  }
2525
2536
  new b();
2526
2537
  const _ = {};
2527
- class A {
2538
+ class I {
2528
2539
  constructor() {
2529
2540
  var t = y.trustedTypes && y.trustedTypes.emptyHTML || "";
2530
2541
  if (_ !== _) throw Error("SafeHtml is not meant to be built directly");
@@ -2534,60 +2545,60 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
2534
2545
  return this.g.toString();
2535
2546
  }
2536
2547
  }
2537
- new A();
2538
- function S(d, t) {
2548
+ new I();
2549
+ function N(d, t) {
2539
2550
  switch (this.g = d, this.l = !!t.aa, this.h = t.i, this.s = t.type, this.o = !1, this.h) {
2540
- case P:
2551
+ case M:
2541
2552
  case O:
2542
- case J:
2543
- case f1:
2544
- case o2:
2545
- case T:
2546
- case I:
2553
+ case Z:
2554
+ case n1:
2555
+ case p1:
2556
+ case A:
2557
+ case v:
2547
2558
  this.o = !0;
2548
2559
  }
2549
2560
  this.j = t.defaultValue;
2550
2561
  }
2551
- var I = 1, T = 2, P = 3, O = 4, J = 6, f1 = 16, o2 = 18;
2552
- function u2(d, t) {
2562
+ var v = 1, A = 2, M = 3, O = 4, Z = 6, n1 = 16, p1 = 18;
2563
+ function v1(d, t) {
2553
2564
  for (this.h = d, this.g = {}, d = 0; d < t.length; d++) {
2554
2565
  var $ = t[d];
2555
2566
  this.g[$.g] = $;
2556
2567
  }
2557
2568
  }
2558
2569
  function l2(d) {
2559
- return d = s(d.g), d.sort(function(t, $) {
2570
+ return d = r(d.g), d.sort(function(t, $) {
2560
2571
  return t.g - $.g;
2561
2572
  }), d;
2562
2573
  }
2563
- function x() {
2574
+ function P() {
2564
2575
  this.h = {}, this.j = this.m().g, this.g = this.l = null;
2565
2576
  }
2566
- x.prototype.has = function(d) {
2577
+ P.prototype.has = function(d) {
2567
2578
  return R(this, d.g);
2568
- }, x.prototype.get = function(d, t) {
2569
- return f(this, d.g, t);
2570
- }, x.prototype.set = function(d, t) {
2579
+ }, P.prototype.get = function(d, t) {
2580
+ return p(this, d.g, t);
2581
+ }, P.prototype.set = function(d, t) {
2571
2582
  E(this, d.g, t);
2572
- }, x.prototype.add = function(d, t) {
2573
- v1(this, d.g, t);
2583
+ }, P.prototype.add = function(d, t) {
2584
+ w1(this, d.g, t);
2574
2585
  };
2575
- function I1(d, t) {
2576
- for (var $ = l2(d.m()), n = 0; n < $.length; n++) {
2577
- var r = $[n], o = r.g;
2578
- if (R(t, o)) {
2579
- d.g && delete d.g[r.g];
2580
- var l = r.h == 11 || r.h == 10;
2581
- if (r.l) {
2582
- r = M(t, o);
2583
- for (var h = 0; h < r.length; h++) v1(d, o, l ? r[h].clone() : r[h]);
2584
- } else r = i1(t, o), l ? (l = i1(d, o)) ? I1(l, r) : E(d, o, r.clone()) : E(d, o, r);
2586
+ function S1(d, t) {
2587
+ for (var $ = l2(d.m()), i = 0; i < $.length; i++) {
2588
+ var s = $[i], u = s.g;
2589
+ if (R(t, u)) {
2590
+ d.g && delete d.g[s.g];
2591
+ var l = s.h == 11 || s.h == 10;
2592
+ if (s.l) {
2593
+ s = x(t, u);
2594
+ for (var h = 0; h < s.length; h++) w1(d, u, l ? s[h].clone() : s[h]);
2595
+ } else s = i1(t, u), l ? (l = i1(d, u)) ? S1(l, s) : E(d, u, s.clone()) : E(d, u, s);
2585
2596
  }
2586
2597
  }
2587
2598
  }
2588
- x.prototype.clone = function() {
2599
+ P.prototype.clone = function() {
2589
2600
  var d = new this.constructor();
2590
- return d != this && (d.h = {}, d.g && (d.g = {}), I1(d, this)), d;
2601
+ return d != this && (d.h = {}, d.g && (d.g = {}), S1(d, this)), d;
2591
2602
  };
2592
2603
  function R(d, t) {
2593
2604
  return d.h[t] != null;
@@ -2597,23 +2608,23 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
2597
2608
  if ($ == null) return null;
2598
2609
  if (d.l) {
2599
2610
  if (!(t in d.g)) {
2600
- var n = d.l, r = d.j[t];
2601
- if ($ != null) if (r.l) {
2602
- for (var o = [], l = 0; l < $.length; l++) o[l] = n.h(r, $[l]);
2603
- $ = o;
2604
- } else $ = n.h(r, $);
2611
+ var i = d.l, s = d.j[t];
2612
+ if ($ != null) if (s.l) {
2613
+ for (var u = [], l = 0; l < $.length; l++) u[l] = i.h(s, $[l]);
2614
+ $ = u;
2615
+ } else $ = i.h(s, $);
2605
2616
  return d.g[t] = $;
2606
2617
  }
2607
2618
  return d.g[t];
2608
2619
  }
2609
2620
  return $;
2610
2621
  }
2611
- function f(d, t, $) {
2612
- var n = i1(d, t);
2613
- return d.j[t].l ? n[$ || 0] : n;
2622
+ function p(d, t, $) {
2623
+ var i = i1(d, t);
2624
+ return d.j[t].l ? i[$ || 0] : i;
2614
2625
  }
2615
- function v(d, t) {
2616
- if (R(d, t)) d = f(d, t);
2626
+ function S(d, t) {
2627
+ if (R(d, t)) d = p(d, t);
2617
2628
  else d: {
2618
2629
  if (d = d.j[t], d.j === void 0) if (t = d.s, t === Boolean) d.j = !1;
2619
2630
  else if (t === Number) d.j = 0;
@@ -2626,45 +2637,45 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
2626
2637
  }
2627
2638
  return d;
2628
2639
  }
2629
- function M(d, t) {
2640
+ function x(d, t) {
2630
2641
  return i1(d, t) || [];
2631
2642
  }
2632
- function F(d, t) {
2643
+ function U(d, t) {
2633
2644
  return d.j[t].l ? R(d, t) ? d.h[t].length : 0 : R(d, t) ? 1 : 0;
2634
2645
  }
2635
2646
  function E(d, t, $) {
2636
2647
  d.h[t] = $, d.g && (d.g[t] = $);
2637
2648
  }
2638
- function v1(d, t, $) {
2649
+ function w1(d, t, $) {
2639
2650
  d.h[t] || (d.h[t] = []), d.h[t].push($), d.g && delete d.g[t];
2640
2651
  }
2641
- function n1(d, t) {
2642
- var $ = [], n;
2643
- for (n in t) n != 0 && $.push(new S(n, t[n]));
2644
- return new u2(d, $);
2652
+ function r1(d, t) {
2653
+ var $ = [], i;
2654
+ for (i in t) i != 0 && $.push(new N(i, t[i]));
2655
+ return new v1(d, $);
2645
2656
  }
2646
2657
  function s1() {
2647
2658
  }
2648
2659
  s1.prototype.g = function(d) {
2649
2660
  throw new d.h(), Error("Unimplemented");
2650
2661
  }, s1.prototype.h = function(d, t) {
2651
- if (d.h == 11 || d.h == 10) return t instanceof x ? t : this.g(d.s.prototype.m(), t);
2652
- if (d.h == 14) return typeof t == "string" && S1.test(t) && (d = Number(t), 0 < d) ? d : t;
2662
+ if (d.h == 11 || d.h == 10) return t instanceof P ? t : this.g(d.s.prototype.m(), t);
2663
+ if (d.h == 14) return typeof t == "string" && b1.test(t) && (d = Number(t), 0 < d) ? d : t;
2653
2664
  if (!d.o) return t;
2654
2665
  if (d = d.s, d === String) {
2655
2666
  if (typeof t == "number") return String(t);
2656
- } else if (d === Number && typeof t == "string" && (t === "Infinity" || t === "-Infinity" || t === "NaN" || S1.test(t))) return Number(t);
2667
+ } else if (d === Number && typeof t == "string" && (t === "Infinity" || t === "-Infinity" || t === "NaN" || b1.test(t))) return Number(t);
2657
2668
  return t;
2658
2669
  };
2659
- var S1 = /^-?[0-9]+$/;
2660
- function p1() {
2670
+ var b1 = /^-?[0-9]+$/;
2671
+ function g1() {
2661
2672
  }
2662
- i(p1, s1), p1.prototype.g = function(d, t) {
2673
+ n(g1, s1), g1.prototype.g = function(d, t) {
2663
2674
  return d = new d.h(), d.l = this, d.h = t, d.g = {}, d;
2664
2675
  };
2665
2676
  function q() {
2666
2677
  }
2667
- i(q, p1), q.prototype.h = function(d, t) {
2678
+ n(q, g1), q.prototype.h = function(d, t) {
2668
2679
  return d.h == 8 ? !!t : s1.prototype.h.apply(this, arguments);
2669
2680
  }, q.prototype.g = function(d, t) {
2670
2681
  return q.ma.g.call(this, d, t);
@@ -2675,7 +2686,7 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
2675
2686
  L.prototype.h = "", L.prototype.set = function(d) {
2676
2687
  this.h = "" + d;
2677
2688
  }, L.prototype.g = function(d, t, $) {
2678
- if (this.h += String(d), t != null) for (let n = 1; n < arguments.length; n++) this.h += arguments[n];
2689
+ if (this.h += String(d), t != null) for (let i = 1; i < arguments.length; i++) this.h += arguments[i];
2679
2690
  return this;
2680
2691
  };
2681
2692
  function B(d) {
@@ -2685,29 +2696,29 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
2685
2696
  return this.h;
2686
2697
  };
2687
2698
  function j() {
2688
- x.call(this);
2699
+ P.call(this);
2689
2700
  }
2690
- i(j, x);
2691
- var w1 = null;
2701
+ n(j, P);
2702
+ var N1 = null;
2692
2703
  function w() {
2693
- x.call(this);
2704
+ P.call(this);
2694
2705
  }
2695
- i(w, x);
2696
- var b1 = null;
2706
+ n(w, P);
2707
+ var A1 = null;
2697
2708
  function W() {
2698
- x.call(this);
2709
+ P.call(this);
2699
2710
  }
2700
- i(W, x);
2701
- var A1 = null;
2711
+ n(W, P);
2712
+ var L1 = null;
2702
2713
  j.prototype.m = function() {
2703
- var d = w1;
2704
- return d || (w1 = d = n1(j, { 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;
2714
+ var d = N1;
2715
+ return d || (N1 = d = r1(j, { 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;
2705
2716
  }, j.m = j.prototype.m, w.prototype.m = function() {
2706
- var d = b1;
2707
- return d || (b1 = d = n1(w, { 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;
2708
- }, w.m = w.prototype.m, W.prototype.m = function() {
2709
2717
  var d = A1;
2710
- return d || (A1 = d = n1(W, {
2718
+ return d || (A1 = d = r1(w, { 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;
2719
+ }, w.m = w.prototype.m, W.prototype.m = function() {
2720
+ var d = L1;
2721
+ return d || (L1 = d = r1(W, {
2711
2722
  0: { name: "PhoneMetadata", ia: "i18n.phonenumbers.PhoneMetadata" },
2712
2723
  1: { name: "general_desc", i: 11, type: w },
2713
2724
  2: { name: "fixed_line", i: 11, type: w },
@@ -2746,13 +2757,13 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
2746
2757
  })), d;
2747
2758
  }, W.m = W.prototype.m;
2748
2759
  function V() {
2749
- x.call(this);
2760
+ P.call(this);
2750
2761
  }
2751
- i(V, x);
2762
+ n(V, P);
2752
2763
  var T1 = null, a2 = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
2753
2764
  V.prototype.m = function() {
2754
2765
  var d = T1;
2755
- return d || (T1 = d = n1(V, { 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: a2 }, 7: {
2766
+ return d || (T1 = d = r1(V, { 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: a2 }, 7: {
2756
2767
  name: "preferred_domestic_carrier_code",
2757
2768
  i: 9,
2758
2769
  type: String
@@ -2974,7 +2985,7 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
2974
2985
  995: ["GE"],
2975
2986
  996: ["KG"],
2976
2987
  998: ["UZ"]
2977
- }, L1 = {
2988
+ }, E1 = {
2978
2989
  AC: [, [
2979
2990
  ,
2980
2991
  ,
@@ -4046,7 +4057,7 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
4046
4057
  "$1 $2",
4047
4058
  ["9"]
4048
4059
  ], [, "(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", "$CC $1", 1], [, "(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", "$CC $1", 1], [, "(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"], , "$CC $1"], [, "(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", , 1]], [, , , , , , , , , [-1]], , , [, , "(?:(?:10|21)8|[48])00\\d{7}|950\\d{7,8}", , , , , , , [10, 11, 12]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4049
- CO: [, [, , "(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}", , , , , , , [10, 11], [7]], [
4060
+ CO: [, [, , "60\\d{8}|(?:1\\d|[39])\\d{9}", , , , , , , [10, 11], [7]], [
4050
4061
  ,
4051
4062
  ,
4052
4063
  "601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|60(?:[124-7][2-9]|8[1-9])\\d{6}",
@@ -4058,14 +4069,14 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
4058
4069
  ,
4059
4070
  [10],
4060
4071
  [7]
4061
- ], [, , "333301[0-5]\\d{3}|3333(?:00|2[5-9]|[3-9]\\d)\\d{4}|(?:3(?:24[1-9]|3(?:00|3[0-24-9]))|9101)\\d{6}|3(?:0[0-5]|1\\d|2[0-3]|5[01]|70)\\d{7}", , , , "3211234567", , , [10]], [, , "1800\\d{7}", , , , "18001234567", , , [11]], [, , "19(?:0[01]|4[78])\\d{7}", , , , "19001234567", , , [11]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "CO", 57, "00(?:4(?:[14]4|56)|[579])", "0", , , "0([3579]|4(?:[14]4|56))?", , , , [[, "(\\d{3})(\\d{7})", "$1 $2", ["6"], "($1)", "0$CC $1"], [
4072
+ ], [, , "333301[0-5]\\d{3}|3333(?:00|2[5-9]|[3-9]\\d)\\d{4}|(?:3(?:24[1-9]|3(?:00|3[0-24-9]))|9101)\\d{6}|3(?:0[0-5]|1\\d|2[0-3]|5[01]|70)\\d{7}", , , , "3211234567", , , [10]], [, , "1800\\d{7}", , , , "18001234567", , , [11]], [, , "(?:19(?:0[01]|4[78])|901)\\d{7}", , , , "19001234567"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "CO", 57, "00(?:4(?:[14]4|56)|[579])", "0", , , "0([3579]|4(?:[14]4|56))?", , , , [[, "(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)", "0$CC $1"], [
4062
4073
  ,
4063
4074
  "(\\d{3})(\\d{7})",
4064
4075
  "$1 $2",
4065
4076
  ["3[0-357]|91"],
4066
4077
  ,
4067
4078
  "0$CC $1"
4068
- ], [, "(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1"]], [[, "(\\d{3})(\\d{7})", "$1 $2", ["6"], "($1)", "0$CC $1"], [, "(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|91"], , "0$CC $1"], [, "(\\d)(\\d{3})(\\d{7})", "$1 $2 $3", ["1"]]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4079
+ ], [, "(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1"]], [[, "(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)", "0$CC $1"], [, "(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|91"], , "0$CC $1"], [, "(\\d)(\\d{3})(\\d{7})", "$1 $2 $3", ["1"]]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4069
4080
  CR: [, [, , "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", , , , , , , [8, 10]], [, , "210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}", , , , "22123456", , , [8]], [
4070
4081
  ,
4071
4082
  ,
@@ -4097,7 +4108,7 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
4097
4108
  ["8"],
4098
4109
  "0$1"
4099
4110
  ]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4100
- CV: [, [, , "(?:[2-59]\\d\\d|800)\\d{4}", , , , , , , [7]], [, , "2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}", , , , "2211234"], [, , "(?:36|5[1-389]|9\\d)\\d{5}", , , , "9911234"], [, , "800\\d{4}", , , , "8001234"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "(?:3[3-5]|4[356])\\d{5}", , , , "3401234"], "CV", 238, "0", , , , , , , , [[, "(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [
4111
+ CV: [, [, , "(?:[2-59]\\d\\d|800)\\d{4}", , , , , , , [7]], [, , "2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}", , , , "2211234"], [, , "(?:36|5[1-389]|9\\d)\\d{5}", , , , "9911234"], [, , "800\\d{4}", , , , "8001234"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "(?:3[3-5]|4[356])\\d{5}", , , , "3401234"], "CV", 238, "0", , , , , , , , [[, "(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [
4101
4112
  ,
4102
4113
  ,
4103
4114
  ,
@@ -4108,7 +4119,7 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
4108
4119
  ,
4109
4120
  ,
4110
4121
  [-1]
4111
- ]],
4122
+ ], , , [, , , , , , , , , [-1]]],
4112
4123
  CW: [, [, , "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", , , , , , , [7, 8]], [, , "9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}", , , , "94351234"], [, , "953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}", , , , "95181234"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "60[0-2]\\d{4}", , , , "6001234", , , [7]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "CW", 599, "00", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], [, "(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], , [
4113
4124
  ,
4114
4125
  ,
@@ -4121,27 +4132,27 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
4121
4132
  ,
4122
4133
  [8]
4123
4134
  ], 1, "[69]", [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4124
- CX: [, [, , "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", , , , , , , [6, 7, 8, 9, 10, 12]], [, , "8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", , , , "891641234", , , [9], [8]], [, , "4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}", , , , "412345678", , , [9]], [
4135
+ CX: [, [, , "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", , , , , , , [6, 7, 8, 9, 10, 12]], [, , "8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", , , , "891641234", , , [9], [8]], [
4125
4136
  ,
4126
4137
  ,
4127
- "180(?:0\\d{3}|2)\\d{3}",
4138
+ "4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",
4128
4139
  ,
4129
4140
  ,
4130
4141
  ,
4131
- "1800123456",
4142
+ "412345678",
4132
4143
  ,
4133
4144
  ,
4134
- [7, 10]
4135
- ], [, , "190[0-26]\\d{6}", , , , "1900123456", , , [10]], [, , "13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", , , , "1300123456", , , [6, 8, 10, 12]], [, , , , , , , , , [-1]], [, , "14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", , , , "147101234", , , [9]], "CX", 61, "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "0", , , "([59]\\d{7})$|0", "8$1", "0011", , , , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4136
- CY: [, [, , "(?:[279]\\d|[58]0)\\d{6}", , , , , , , [8]], [, , "2[2-6]\\d{6}", , , , "22345678"], [
4145
+ [9]
4146
+ ], [, , "180(?:0\\d{3}|2)\\d{3}", , , , "1800123456", , , [7, 10]], [, , "190[0-26]\\d{6}", , , , "1900123456", , , [10]], [, , "13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", , , , "1300123456", , , [6, 8, 10, 12]], [, , , , , , , , , [-1]], [, , "14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", , , , "147101234", , , [9]], "CX", 61, "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "0", , , "([59]\\d{7})$|0", "8$1", "0011", , , , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4147
+ CY: [, [, , "(?:[279]\\d|[58]0)\\d{6}", , , , , , , [8]], [
4137
4148
  ,
4138
4149
  ,
4139
- "9(?:10|[4-79]\\d)\\d{5}",
4150
+ "2[2-6]\\d{6}",
4140
4151
  ,
4141
4152
  ,
4142
4153
  ,
4143
- "96123456"
4144
- ], [, , "800\\d{5}", , , , "80001234"], [, , "90[09]\\d{5}", , , , "90012345"], [, , "80[1-9]\\d{5}", , , , "80112345"], [, , "700\\d{5}", , , , "70012345"], [, , , , , , , , , [-1]], "CY", 357, "00", , , , , , , , [[, "(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "(?:50|77)\\d{6}", , , , "77123456"], , , [, , , , , , , , , [-1]]],
4154
+ "22345678"
4155
+ ], [, , "9(?:10|[4-79]\\d)\\d{5}", , , , "96123456"], [, , "800\\d{5}", , , , "80001234"], [, , "90[09]\\d{5}", , , , "90012345"], [, , "80[1-9]\\d{5}", , , , "80112345"], [, , "700\\d{5}", , , , "70012345"], [, , , , , , , , , [-1]], "CY", 357, "00", , , , , , , , [[, "(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "(?:50|77)\\d{6}", , , , "77123456"], , , [, , , , , , , , , [-1]]],
4145
4156
  CZ: [
4146
4157
  ,
4147
4158
  [, , "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", , , , , , , [9, 10, 11, 12]],
@@ -4860,59 +4871,40 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
4860
4871
  ,
4861
4872
  "2201234"
4862
4873
  ], [, , "510\\d{4}|(?:6\\d|7[0-5])\\d{5}", , , , "6091234"], [, , "(?:289|8(?:00|6[28]|88|99))\\d{4}", , , , "2891234"], [, , "9008\\d{3}", , , , "9008123"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "515\\d{4}", , , , "5151234"], "GY", 592, "001", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
4863
- HK: [
4874
+ HK: [, [, , "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", , , , , , , [5, 6, 7, 8, 9, 11]], [
4864
4875
  ,
4865
- [, , "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", , , , , , , [5, 6, 7, 8, 9, 11]],
4866
- [
4867
- ,
4868
- ,
4869
- "(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-8]|[579]\\d|6[0-2]))|58(?:0[1-9]|1[2-9]))\\d{4}",
4870
- ,
4871
- ,
4872
- ,
4873
- "21234567",
4874
- ,
4875
- ,
4876
- [8]
4877
- ],
4878
- [, , "(?:4(?:44[0-25-9]|6(?:1[0-7]|4[0-57-9]|6[0-4]))|5(?:73[0-6]|95[0-8])|6(?:26[013-8]|66[0-3])|70(?:7[1-8]|8[0-4])|848[0-35-9]|9(?:29[013-9]|39[01]|59[0-4]|899))\\d{4}|(?:4(?:4[0-35-9]|6[02357-9]|70)|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-39]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}", , , , "51234567", , , [8]],
4879
- [, , "800\\d{6}", , , , "800123456", , , [9]],
4880
- [, , "900(?:[0-24-9]\\d{7}|3\\d{1,4})", , , , "90012345678", , , [5, 6, 7, 8, 11]],
4881
- [, , , , , , , , , [-1]],
4882
- [, , "8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}", , , , "81123456", , , [8]],
4883
- [, , , , , , , , , [-1]],
4884
- "HK",
4885
- 852,
4886
- "00(?:30|5[09]|[126-9]?)",
4887
4876
  ,
4877
+ "(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-8]|[579]\\d|6[0-2]))|58(?:0[1-9]|1[2-9]))\\d{4}",
4888
4878
  ,
4889
4879
  ,
4890
4880
  ,
4881
+ "21234567",
4891
4882
  ,
4892
- "00",
4893
4883
  ,
4894
- [[, "(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], [, "(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], [, "(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]],
4884
+ [8]
4885
+ ], [, , "(?:4(?:44[0-25-9]|6(?:1[0-7]|4[0-57-9]|6[0-4])|74[0-2])|5(?:73[0-6]|95[0-8])|6(?:26[013-8]|66[0-3])|70(?:7[1-8]|8[0-4])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[01]|59[0-4]|899))\\d{4}|(?:4(?:4[0-35-9]|6[02357-9]|70)|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-39]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}", , , , "51234567", , , [8]], [, , "800\\d{6}", , , , "800123456", , , [9]], [
4895
4886
  ,
4896
- [
4897
- ,
4898
- ,
4899
- "7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",
4900
- ,
4901
- ,
4902
- ,
4903
- "71123456",
4904
- ,
4905
- ,
4906
- [8]
4907
- ],
4908
4887
  ,
4888
+ "900(?:[0-24-9]\\d{7}|3\\d{1,4})",
4909
4889
  ,
4910
- [, , , , , , , , , [-1]],
4911
- [, , "30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}", , , , "30161234", , , [8]],
4912
4890
  ,
4913
4891
  ,
4914
- [, , , , , , , , , [-1]]
4915
- ],
4892
+ "90012345678",
4893
+ ,
4894
+ ,
4895
+ [5, 6, 7, 8, 11]
4896
+ ], [, , , , , , , , , [-1]], [, , "8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}", , , , "81123456", , , [8]], [, , , , , , , , , [-1]], "HK", 852, "00(?:30|5[09]|[126-9]?)", , , , , , "00", , [[, "(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], [, "(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], [, "(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], , [
4897
+ ,
4898
+ ,
4899
+ "7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",
4900
+ ,
4901
+ ,
4902
+ ,
4903
+ "71123456",
4904
+ ,
4905
+ ,
4906
+ [8]
4907
+ ], , , [, , , , , , , , , [-1]], [, , "30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}", , , , "30161234", , , [8]], , , [, , , , , , , , , [-1]]],
4916
4908
  HN: [, [, , "8\\d{10}|[237-9]\\d{7}", , , , , , , [8, 11]], [
4917
4909
  ,
4918
4910
  ,
@@ -6464,7 +6456,7 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
6464
6456
  PA: [, [, , "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", , , , , , , [7, 8, 10, 11]], [
6465
6457
  ,
6466
6458
  ,
6467
- "(?:1(?:0\\d|1[479]|2[37]|3[0137]|4[17]|5[05]|6[058]|7[0167]|8[2358]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[089]\\d|1[0-7]|2[0-5]|33|4[0-79]|5[0-35]|6[068]|7[0-8])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[0156]|7[0-24-9]|8[5-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",
6459
+ "(?:1(?:0\\d|1[479]|2[37]|3[0137]|4[17]|5[05]|6[058]|7[0167]|8[2358]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[07-9]\\d|1[0-7]|2[0-5]|33|4[0-79]|5[0-35]|6[068])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[0156]|7[0-24-9]|8[5-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",
6468
6460
  ,
6469
6461
  ,
6470
6462
  ,
@@ -6485,7 +6477,7 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
6485
6477
  ,
6486
6478
  [8, 9],
6487
6479
  [6, 7]
6488
- ], [, , "(?:(?:4[34]|5[14])[0-8]\\d|7(?:173|3[0-8]\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}", , , , "11234567", , , [8], [6, 7]], [, , "9\\d{8}", , , , "912345678", , , [9]], [, , "800\\d{5}", , , , "80012345", , , [8]], [, , "805\\d{5}", , , , "80512345", , , [8]], [, , "801\\d{5}", , , , "80112345", , , [8]], [, , "80[24]\\d{5}", , , , "80212345", , , [8]], [, , , , , , , , , [-1]], "PE", 51, "00|19(?:1[124]|77|90)00", "0", " Anexo ", , "0", , "00", , [[
6480
+ ], [, , "(?:(?:(?:4[34]|5[14])[0-8]|687)\\d|7(?:173|(?:3[0-8]|55)\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[0569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}", , , , "11234567", , , [8], [6, 7]], [, , "9\\d{8}", , , , "912345678", , , [9]], [, , "800\\d{5}", , , , "80012345", , , [8]], [, , "805\\d{5}", , , , "80512345", , , [8]], [, , "801\\d{5}", , , , "80112345", , , [8]], [, , "80[24]\\d{5}", , , , "80212345", , , [8]], [, , , , , , , , , [-1]], "PE", 51, "00|19(?:1[124]|77|90)00", "0", " Anexo ", , "0", , "00", , [[
6489
6481
  ,
6490
6482
  "(\\d{3})(\\d{5})",
6491
6483
  "$1 $2",
@@ -6938,13 +6930,12 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
6938
6930
  ,
6939
6931
  ,
6940
6932
  [8]
6941
- ], [, , "8(?:09[0-689]|95[0-2])\\d{4}|(?:8(?:0[1-8]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}", , , , "81234567", , , [8]], [, , "(?:18|8)00\\d{7}", , , , "18001234567", , , [10, 11]], [, , "1900\\d{7}", , , , "19001234567", , , [11]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "(?:3[12]\\d|666)\\d{5}", , , , "31234567", , , [8]], "SG", 65, "0[0-3]\\d", , , , , , , , [
6942
- [, "(\\d{4,5})", "$1", ["1[013-9]|77", "1(?:[013-8]|9(?:0[1-9]|[1-9]))|77"]],
6943
- [, "(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]],
6944
- [, "(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]],
6945
- [, "(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]],
6946
- [, "(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]
6947
- ], [[, "(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], [, "(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], [, "(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], [, "(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "7000\\d{7}", , , , "70001234567", , , [11]], , , [, , , , , , , , , [-1]]],
6933
+ ], [, , "(?:8(?:0(?:[1-8]\\d|9[0-689])|[1-8]\\d\\d|9(?:[0-4]\\d|5[0-3]|62))|9[0-8]\\d\\d)\\d{4}", , , , "81234567", , , [8]], [, , "(?:18|8)00\\d{7}", , , , "18001234567", , , [10, 11]], [, , "1900\\d{7}", , , , "19001234567", , , [11]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "(?:3[12]\\d|666)\\d{5}", , , , "31234567", , , [8]], "SG", 65, "0[0-3]\\d", , , , , , , , [[, "(\\d{4,5})", "$1", ["1[013-9]|77", "1(?:[013-8]|9(?:0[1-9]|[1-9]))|77"]], [, "(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], [
6934
+ ,
6935
+ "(\\d{3})(\\d{3})(\\d{4})",
6936
+ "$1 $2 $3",
6937
+ ["8"]
6938
+ ], [, "(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], [, "(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]], [[, "(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], [, "(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], [, "(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], [, "(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "7000\\d{7}", , , , "70001234567", , , [11]], , , [, , , , , , , , , [-1]]],
6948
6939
  SH: [, [, , "(?:[256]\\d|8)\\d{3}", , , , , , , [4, 5]], [, , "2(?:[0-57-9]\\d|6[4-9])\\d\\d", , , , "22158"], [
6949
6940
  ,
6950
6941
  ,
@@ -6957,37 +6948,26 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
6957
6948
  ,
6958
6949
  [5]
6959
6950
  ], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "262\\d\\d", , , , "26212", , , [5]], "SH", 290, "00", , , , , , , , , , [, , , , , , , , , [-1]], 1, "[256]", [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
6960
- SI: [
6951
+ SI: [, [, , "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", , , , , , , [5, 6, 7, 8]], [, , "(?:[1-357][2-8]|4[24-8])\\d{6}", , , , "12345678", , , [8], [7]], [, , "65(?:[178]\\d|5[56]|6[01])\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}", , , , "31234567", , , [8]], [, , "80\\d{4,6}", , , , "80123456", , , [6, 7, 8]], [
6961
6952
  ,
6962
- [, , "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", , , , , , , [5, 6, 7, 8]],
6963
- [, , "(?:[1-357][2-8]|4[24-8])\\d{6}", , , , "12345678", , , [8], [7]],
6964
- [, , "65(?:[178]\\d|5[56]|6[01])\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}", , , , "31234567", , , [8]],
6965
- [, , "80\\d{4,6}", , , , "80123456", , , [6, 7, 8]],
6966
- [, , "89[1-3]\\d{2,5}|90\\d{4,6}", , , , "90123456"],
6967
- [, , , , , , , , , [-1]],
6968
- [, , , , , , , , , [-1]],
6969
- [, , "(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-589])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}", , , , "59012345", , , [8]],
6970
- "SI",
6971
- 386,
6972
- "00|10(?:22|66|88|99)",
6973
- "0",
6974
6953
  ,
6954
+ "89[1-3]\\d{2,5}|90\\d{4,6}",
6975
6955
  ,
6976
- "0",
6977
6956
  ,
6978
- "00",
6979
6957
  ,
6980
- [[, "(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], [, "(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], [, "(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]],
6958
+ "90123456"
6959
+ ], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-589])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}", , , , "59012345", , , [8]], "SI", 386, "00|10(?:22|66|88|99)", "0", , , "0", , "00", , [[, "(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], [, "(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], [, "(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [
6981
6960
  ,
6982
- [, , , , , , , , , [-1]],
6983
6961
  ,
6984
6962
  ,
6985
- [, , , , , , , , , [-1]],
6986
- [, , , , , , , , , [-1]],
6987
6963
  ,
6988
6964
  ,
6989
- [, , , , , , , , , [-1]]
6990
- ],
6965
+ ,
6966
+ ,
6967
+ ,
6968
+ ,
6969
+ [-1]
6970
+ ]],
6991
6971
  SJ: [, [, , "0\\d{4}|(?:[489]\\d|79)\\d{6}", , , , , , , [5, 8]], [, , "79\\d{6}", , , , "79123456", , , [8]], [, , "(?:4[015-8]|9\\d)\\d{6}", , , , "41234567", , , [8]], [, , "80[01]\\d{5}", , , , "80012345", , , [8]], [, , "82[09]\\d{5}", , , , "82012345", , , [8]], [, , "810(?:0[0-6]|[2-8]\\d)\\d{3}", , , , "81021234", , , [8]], [, , "880\\d{5}", , , , "88012345", , , [8]], [, , "85[0-5]\\d{5}", , , , "85012345", , , [8]], "SJ", 47, "00", , , , , , , , , , [, , , , , , , , , [-1]], , "79", [, , , , , , , , , [-1]], [, , "(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}", , , , "02000"], , , [
6992
6972
  ,
6993
6973
  ,
@@ -7000,40 +6980,24 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
7000
6980
  ,
7001
6981
  [8]
7002
6982
  ]],
7003
- SK: [
7004
- ,
7005
- [, , "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", , , , , , , [6, 7, 9]],
7006
- [, , "(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d", , , , "221234567"],
7007
- [, , "909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}", , , , "912123456", , , [9]],
7008
- [, , "800\\d{6}", , , , "800123456", , , [9]],
7009
- [, , "9(?:00|[78]\\d)\\d{6}", , , , "900123456", , , [9]],
7010
- [, , "8[5-9]\\d{7}", , , , "850123456", , , [9]],
7011
- [, , , , , , , , , [-1]],
7012
- [, , "6(?:02|5[0-4]|9[0-6])\\d{6}", , , , "690123456", , , [9]],
7013
- "SK",
7014
- 421,
7015
- "00",
7016
- "0",
6983
+ SK: [, [, , "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", , , , , , , [6, 7, 9]], [, , "(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d", , , , "221234567"], [, , "909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}", , , , "912123456", , , [9]], [, , "800\\d{6}", , , , "800123456", , , [9]], [, , "9(?:00|[78]\\d)\\d{6}", , , , "900123456", , , [9]], [, , "8[5-9]\\d{7}", , , , "850123456", , , [9]], [, , , , , , , , , [-1]], [
7017
6984
  ,
7018
6985
  ,
7019
- "0",
6986
+ "6(?:02|5[0-4]|9[0-6])\\d{6}",
7020
6987
  ,
7021
6988
  ,
7022
6989
  ,
7023
- [[, "(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], [, "(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], [, "(\\d{4})(\\d{3})", "$1 $2", ["909", "9090"], "0$1"], [, "(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]],
7024
- [[, "(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], [, "(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", [
7025
- "[3-5][1-8]1",
7026
- "[3-5][1-8]1[67]"
7027
- ], "0$1"], [, "(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]],
7028
- [, , "9090\\d{3}", , , , "9090123", , , [7]],
6990
+ "690123456",
7029
6991
  ,
7030
6992
  ,
7031
- [, , "9090\\d{3}|(?:602|8(?:00|[5-9]\\d)|9(?:00|[78]\\d))\\d{6}", , , , , , , [7, 9]],
7032
- [, , "96\\d{7}", , , , "961234567", , , [9]],
7033
- ,
6993
+ [9]
6994
+ ], "SK", 421, "00", "0", , , "0", , , , [[, "(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], [, "(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], [, "(\\d{4})(\\d{3})", "$1 $2", ["909", "9090"], "0$1"], [, "(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], [[, "(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], [
7034
6995
  ,
7035
- [, , , , , , , , , [-1]]
7036
- ],
6996
+ "(\\d{2})(\\d{2})(\\d{2,3})",
6997
+ "$1 $2 $3",
6998
+ ["[3-5][1-8]1", "[3-5][1-8]1[67]"],
6999
+ "0$1"
7000
+ ], [, "(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], [, , "9090\\d{3}", , , , "9090123", , , [7]], , , [, , "9090\\d{3}|(?:602|8(?:00|[5-9]\\d)|9(?:00|[78]\\d))\\d{6}", , , , , , , [7, 9]], [, , "96\\d{7}", , , , "961234567", , , [9]], , , [, , , , , , , , , [-1]]],
7037
7001
  SL: [, [, , "(?:[237-9]\\d|66)\\d{6}", , , , , , , [8], [6]], [, , "22[2-4][2-9]\\d{4}", , , , "22221234", , , , [6]], [
7038
7002
  ,
7039
7003
  ,
@@ -7058,7 +7022,7 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
7058
7022
  SN: [, [, , "(?:[378]\\d|93)\\d{7}", , , , , , , [9]], [, , "3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}", , , , "301012345"], [
7059
7023
  ,
7060
7024
  ,
7061
- "7(?:(?:[06-8]\\d|21|90)\\d|5(?:0[01]|[19]0|2[25]|[38]3|[4-7]\\d))\\d{5}",
7025
+ "7(?:(?:[06-8]\\d|[19]0|21)\\d|5(?:0[01]|[19]0|2[25]|[38]3|[4-7]\\d))\\d{5}",
7062
7026
  ,
7063
7027
  ,
7064
7028
  ,
@@ -7516,10 +7480,10 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
7516
7480
  ,
7517
7481
  [-1]
7518
7482
  ]],
7519
- UZ: [, [, , "(?:20|33|[5-79]\\d|88)\\d{7}", , , , , , , [9]], [, , "(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|6\\d\\d|7(?:[23]\\d|7[69])|9(?:22|4[1-8]|6[135]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|(?:1[12]|[68]\\d)\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}", , , , "669050123"], [
7483
+ UZ: [, [, , "(?:20|33|[5-79]\\d|88)\\d{7}", , , , , , , [9]], [, , "(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]\\d\\d|7(?:[23]\\d|7[69]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|(?:1[12]|[68]\\d)\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}", , , , "669050123"], [
7520
7484
  ,
7521
7485
  ,
7522
- "(?:(?:[25]0|33|88|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|3[01]|5\\d|7[0-4])|(?:5[67]|7\\d)\\d|6(?:2[0-26]|8\\d)))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}",
7486
+ "(?:(?:[25]0|33|88|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079])))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}",
7523
7487
  ,
7524
7488
  ,
7525
7489
  ,
@@ -7963,7 +7927,7 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
7963
7927
  D.h = void 0, D.g = function() {
7964
7928
  return D.h ? D.h : D.h = new D();
7965
7929
  };
7966
- var g1 = { 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" }, h2 = {
7930
+ var C1 = { 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" }, h2 = {
7967
7931
  0: "0",
7968
7932
  1: "1",
7969
7933
  2: "2",
@@ -8044,146 +8008,146 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
8044
8008
  X: "9",
8045
8009
  Y: "9",
8046
8010
  Z: "9"
8047
- }, f2 = RegExp("[++]+"), Q = RegExp("^[++]+"), N1 = RegExp("([0-90-9٠-٩۰-۹])"), p2 = RegExp("[++0-90-9٠-٩۰-۹]"), g2 = /[\\\/] *x/, C2 = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), m2 = /(?:.*?[A-Za-z]){3}.*/, y2 = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), _2 = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
8048
- function Z(d) {
8011
+ }, f2 = RegExp("[++]+"), Q = RegExp("^[++]+"), D1 = RegExp("([0-90-9٠-٩۰-۹])"), p2 = RegExp("[++0-90-9٠-٩۰-۹]"), g2 = /[\\\/] *x/, C2 = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), m2 = /(?:.*?[A-Za-z]){3}.*/, y2 = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), _2 = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
8012
+ function Y(d) {
8049
8013
  return "([0-90-9٠-٩۰-۹]{1," + d + "})";
8050
8014
  }
8051
- function E1() {
8052
- return ";ext=" + Z("20") + "|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*" + (Z("20") + "#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*") + (Z("9") + "#?|[- ]+") + (Z("6") + "#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*") + (Z("15") + "#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*") + (Z("9") + "#?");
8015
+ function M1() {
8016
+ return ";ext=" + Y("20") + "|[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*" + (Y("20") + "#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*") + (Y("9") + "#?|[- ]+") + (Y("6") + "#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*") + (Y("15") + "#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*") + (Y("9") + "#?");
8053
8017
  }
8054
- var D1 = new RegExp("(?:" + E1() + ")$", "i"), I2 = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + E1() + ")?$", "i"), v2 = /(\$\d)/, S2 = /^\(?\$1\)?$/;
8055
- function M1(d) {
8018
+ var x1 = new RegExp("(?:" + M1() + ")$", "i"), I2 = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + M1() + ")?$", "i"), v2 = /(\$\d)/, S2 = /^\(?\$1\)?$/;
8019
+ function P1(d) {
8056
8020
  return 2 > d.length ? !1 : G(I2, d);
8057
8021
  }
8058
- function P1(d) {
8059
- return G(m2, d) ? r1(d, c2) : r1(d, g1);
8022
+ function R1(d) {
8023
+ return G(m2, d) ? o1(d, c2) : o1(d, C1);
8060
8024
  }
8061
- function x1(d) {
8062
- var t = P1(d.toString());
8025
+ function B1(d) {
8026
+ var t = R1(d.toString());
8063
8027
  B(d), d.g(t);
8064
8028
  }
8065
- function R1(d) {
8066
- return d != null && (F(d, 9) != 1 || M(d, 9)[0] != -1);
8029
+ function k1(d) {
8030
+ return d != null && (U(d, 9) != 1 || x(d, 9)[0] != -1);
8067
8031
  }
8068
- function r1(d, t) {
8069
- for (var $ = new L(), n, r = d.length, o = 0; o < r; ++o) n = d.charAt(o), n = t[n.toUpperCase()], n != null && $.g(n);
8032
+ function o1(d, t) {
8033
+ for (var $ = new L(), i, s = d.length, u = 0; u < s; ++u) i = d.charAt(u), i = t[i.toUpperCase()], i != null && $.g(i);
8070
8034
  return $.toString();
8071
8035
  }
8072
- function B1(d) {
8036
+ function O1(d) {
8073
8037
  return d.length == 0 || S2.test(d);
8074
8038
  }
8075
- function o1(d) {
8076
- return d != null && isNaN(d) && d.toUpperCase() in L1;
8039
+ function u1(d) {
8040
+ return d != null && isNaN(d) && d.toUpperCase() in E1;
8077
8041
  }
8078
8042
  D.prototype.format = function(d, t) {
8079
- if (f(d, 2) == 0 && R(d, 5)) {
8080
- var $ = v(d, 5);
8043
+ if (p(d, 2) == 0 && R(d, 5)) {
8044
+ var $ = S(d, 5);
8081
8045
  if (0 < $.length) return $;
8082
8046
  }
8083
- $ = v(d, 1);
8084
- var n = t1(d);
8085
- if (t == 0) return k1($, 0, n, "");
8086
- if (!($ in X)) return n;
8087
- var r = d1(this, $, e1($));
8088
- d = R(d, 3) && f(d, 3).length != 0 ? t == 3 ? ";ext=" + f(d, 3) : R(r, 13) ? f(r, 13) + v(d, 3) : " ext. " + v(d, 3) : "";
8047
+ $ = S(d, 1);
8048
+ var i = t1(d);
8049
+ if (t == 0) return G1($, 0, i, "");
8050
+ if (!($ in X)) return i;
8051
+ var s = d1(this, $, e1($));
8052
+ d = R(d, 3) && p(d, 3).length != 0 ? t == 3 ? ";ext=" + p(d, 3) : R(s, 13) ? p(s, 13) + S(d, 3) : " ext. " + S(d, 3) : "";
8089
8053
  d: {
8090
- r = M(r, 20).length == 0 || t == 2 ? M(r, 19) : M(r, 20);
8091
- for (var o, l = r.length, h = 0; h < l; ++h) {
8092
- o = r[h];
8093
- var m = F(o, 3);
8094
- if ((m == 0 || n.search(f(o, 3, m - 1)) == 0) && (m = new RegExp(f(o, 1)), G(m, n))) {
8095
- r = o;
8054
+ s = x(s, 20).length == 0 || t == 2 ? x(s, 19) : x(s, 20);
8055
+ for (var u, l = s.length, h = 0; h < l; ++h) {
8056
+ u = s[h];
8057
+ var m = U(u, 3);
8058
+ if ((m == 0 || i.search(p(u, 3, m - 1)) == 0) && (m = new RegExp(p(u, 1)), G(m, i))) {
8059
+ s = u;
8096
8060
  break d;
8097
8061
  }
8098
8062
  }
8099
- r = null;
8063
+ s = null;
8100
8064
  }
8101
- return r != null && (l = r, r = v(l, 2), o = new RegExp(f(l, 1)), v(
8065
+ return s != null && (l = s, s = S(l, 2), u = new RegExp(p(l, 1)), S(
8102
8066
  l,
8103
8067
  5
8104
- ), l = v(l, 4), n = t == 2 && l != null && 0 < l.length ? n.replace(o, r.replace(v2, l)) : n.replace(o, r), t == 3 && (n = n.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"), ""), n = n.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), k1($, t, n, d);
8068
+ ), l = S(l, 4), i = t == 2 && l != null && 0 < l.length ? i.replace(u, s.replace(v2, l)) : i.replace(u, s), t == 3 && (i = i.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"), ""), i = i.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), G1($, t, i, d);
8105
8069
  };
8106
8070
  function d1(d, t, $) {
8107
8071
  return $ == "001" ? K(d, "" + t) : K(d, $);
8108
8072
  }
8109
8073
  function t1(d) {
8110
8074
  if (!R(d, 2)) return "";
8111
- var t = "" + f(d, 2);
8112
- return R(d, 4) && f(d, 4) && 0 < v(d, 8) ? Array(v(d, 8) + 1).join("0") + t : t;
8075
+ var t = "" + p(d, 2);
8076
+ return R(d, 4) && p(d, 4) && 0 < S(d, 8) ? Array(S(d, 8) + 1).join("0") + t : t;
8113
8077
  }
8114
- function k1(d, t, $, n) {
8078
+ function G1(d, t, $, i) {
8115
8079
  switch (t) {
8116
8080
  case 0:
8117
- return "+" + d + $ + n;
8081
+ return "+" + d + $ + i;
8118
8082
  case 1:
8119
- return "+" + d + " " + $ + n;
8083
+ return "+" + d + " " + $ + i;
8120
8084
  case 3:
8121
- return "tel:+" + d + "-" + $ + n;
8085
+ return "tel:+" + d + "-" + $ + i;
8122
8086
  default:
8123
- return $ + n;
8087
+ return $ + i;
8124
8088
  }
8125
8089
  }
8126
- function u1(d, t) {
8090
+ function l1(d, t) {
8127
8091
  switch (t) {
8128
8092
  case 4:
8129
- return f(d, 5);
8093
+ return p(d, 5);
8130
8094
  case 3:
8131
- return f(d, 4);
8095
+ return p(d, 4);
8132
8096
  case 1:
8133
- return f(d, 3);
8097
+ return p(d, 3);
8134
8098
  case 0:
8135
8099
  case 2:
8136
- return f(d, 2);
8100
+ return p(d, 2);
8137
8101
  case 5:
8138
- return f(d, 6);
8102
+ return p(d, 6);
8139
8103
  case 6:
8140
- return f(d, 8);
8104
+ return p(d, 8);
8141
8105
  case 7:
8142
- return f(d, 7);
8106
+ return p(d, 7);
8143
8107
  case 8:
8144
- return f(d, 21);
8108
+ return p(d, 21);
8145
8109
  case 9:
8146
- return f(d, 25);
8110
+ return p(d, 25);
8147
8111
  case 10:
8148
- return f(d, 28);
8112
+ return p(d, 28);
8149
8113
  default:
8150
- return f(d, 1);
8114
+ return p(d, 1);
8151
8115
  }
8152
8116
  }
8153
- function C1(d, t) {
8154
- return k(d, f(t, 1)) ? k(d, f(t, 5)) ? 4 : k(d, f(t, 4)) ? 3 : k(d, f(t, 6)) ? 5 : k(d, f(t, 8)) ? 6 : k(d, f(t, 7)) ? 7 : k(d, f(t, 21)) ? 8 : k(d, f(t, 25)) ? 9 : k(d, f(t, 28)) ? 10 : k(d, f(t, 2)) ? f(t, 18) || k(d, f(t, 3)) ? 2 : 0 : !f(t, 18) && k(d, f(t, 3)) ? 1 : -1 : -1;
8117
+ function m1(d, t) {
8118
+ return k(d, p(t, 1)) ? k(d, p(t, 5)) ? 4 : k(d, p(t, 4)) ? 3 : k(d, p(t, 6)) ? 5 : k(d, p(t, 8)) ? 6 : k(d, p(t, 7)) ? 7 : k(d, p(t, 21)) ? 8 : k(d, p(t, 25)) ? 9 : k(d, p(t, 28)) ? 10 : k(d, p(t, 2)) ? p(t, 18) || k(d, p(t, 3)) ? 2 : 0 : !p(t, 18) && k(d, p(t, 3)) ? 1 : -1 : -1;
8155
8119
  }
8156
8120
  function K(d, t) {
8157
8121
  if (t == null) return null;
8158
8122
  t = t.toUpperCase();
8159
8123
  var $ = d.g[t];
8160
8124
  if ($ == null) {
8161
- if ($ = L1[t], $ == null) return null;
8125
+ if ($ = E1[t], $ == null) return null;
8162
8126
  $ = new q().g(W.m(), $), d.g[t] = $;
8163
8127
  }
8164
8128
  return $;
8165
8129
  }
8166
8130
  function k(d, t) {
8167
8131
  var $ = d.length;
8168
- return 0 < F(t, 9) && M(t, 9).indexOf($) == -1 ? !1 : G(v(t, 2), d);
8132
+ return 0 < U(t, 9) && x(t, 9).indexOf($) == -1 ? !1 : G(S(t, 2), d);
8169
8133
  }
8170
- function O1(d, t) {
8134
+ function F1(d, t) {
8171
8135
  if (t == null) return null;
8172
- var $ = v(t, 1);
8136
+ var $ = S(t, 1);
8173
8137
  if ($ = X[$], $ == null) d = null;
8174
8138
  else if ($.length == 1) d = $[0];
8175
8139
  else d: {
8176
8140
  t = t1(t);
8177
- for (var n, r = $.length, o = 0; o < r; o++) {
8178
- n = $[o];
8179
- var l = K(d, n);
8141
+ for (var i, s = $.length, u = 0; u < s; u++) {
8142
+ i = $[u];
8143
+ var l = K(d, i);
8180
8144
  if (R(l, 23)) {
8181
- if (t.search(f(l, 23)) == 0) {
8182
- d = n;
8145
+ if (t.search(p(l, 23)) == 0) {
8146
+ d = i;
8183
8147
  break d;
8184
8148
  }
8185
- } else if (C1(t, l) != -1) {
8186
- d = n;
8149
+ } else if (m1(t, l) != -1) {
8150
+ d = i;
8187
8151
  break d;
8188
8152
  }
8189
8153
  }
@@ -8194,148 +8158,148 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
8194
8158
  function e1(d) {
8195
8159
  return d = X[d], d == null ? "ZZ" : d[0];
8196
8160
  }
8197
- function G1(d, t) {
8161
+ function U1(d, t) {
8198
8162
  if (d = K(d, t), d == null) throw Error("Invalid region code: " + t);
8199
- return v(d, 10);
8163
+ return S(d, 10);
8200
8164
  }
8201
- function l1(d, t, $, n) {
8202
- var r = u1($, n), o = F(r, 9) == 0 ? M(f($, 1), 9) : M(r, 9);
8203
- if (r = M(r, 10), n == 2) if (R1(u1($, 0))) d = u1($, 1), R1(d) && (o = o.concat(F(d, 9) == 0 ? M(f($, 1), 9) : M(d, 9)), o.sort(), r.length == 0 ? r = M(d, 10) : (r = r.concat(M(d, 10)), r.sort()));
8204
- else return l1(d, t, $, 1);
8205
- return o[0] == -1 ? 5 : (t = t.length, -1 < r.indexOf(t) ? 4 : ($ = o[0], $ == t ? 0 : $ > t ? 2 : o[o.length - 1] < t ? 3 : -1 < o.indexOf(t, 1) ? 0 : 5));
8165
+ function a1(d, t, $, i) {
8166
+ var s = l1($, i), u = U(s, 9) == 0 ? x(p($, 1), 9) : x(s, 9);
8167
+ if (s = x(s, 10), i == 2) if (k1(l1($, 0))) d = l1($, 1), k1(d) && (u = u.concat(U(d, 9) == 0 ? x(p($, 1), 9) : x(d, 9)), u.sort(), s.length == 0 ? s = x(d, 10) : (s = s.concat(x(d, 10)), s.sort()));
8168
+ else return a1(d, t, $, 1);
8169
+ return u[0] == -1 ? 5 : (t = t.length, -1 < s.indexOf(t) ? 4 : ($ = u[0], $ == t ? 0 : $ > t ? 2 : u[u.length - 1] < t ? 3 : -1 < u.indexOf(t, 1) ? 0 : 5));
8206
8170
  }
8207
- function Y(d, t, $) {
8208
- var n = t1(t);
8209
- return t = v(t, 1), t in X ? (t = d1(d, t, e1(t)), l1(d, n, t, $)) : 1;
8171
+ function J(d, t, $) {
8172
+ var i = t1(t);
8173
+ return t = S(t, 1), t in X ? (t = d1(d, t, e1(t)), a1(d, i, t, $)) : 1;
8210
8174
  }
8211
- function U1(d, t) {
8175
+ function V1(d, t) {
8212
8176
  if (d = d.toString(), d.length == 0 || d.charAt(0) == "0") return 0;
8213
- for (var $, n = d.length, r = 1; 3 >= r && r <= n; ++r) if ($ = parseInt(d.substring(0, r), 10), $ in X) return t.g(d.substring(r)), $;
8177
+ for (var $, i = d.length, s = 1; 3 >= s && s <= i; ++s) if ($ = parseInt(d.substring(0, s), 10), $ in X) return t.g(d.substring(s)), $;
8214
8178
  return 0;
8215
8179
  }
8216
- function F1(d, t, $, n, r, o) {
8180
+ function K1(d, t, $, i, s, u) {
8217
8181
  if (t.length == 0) return 0;
8218
8182
  t = new L(t);
8219
8183
  var l;
8220
- $ != null && (l = f($, 11)), l == null && (l = "NonMatch");
8184
+ $ != null && (l = p($, 11)), l == null && (l = "NonMatch");
8221
8185
  var h = t.toString();
8222
8186
  if (h.length == 0) l = 20;
8223
- else if (Q.test(h)) h = h.replace(Q, ""), B(t), t.g(P1(h)), l = 1;
8187
+ else if (Q.test(h)) h = h.replace(Q, ""), B(t), t.g(R1(h)), l = 1;
8224
8188
  else {
8225
- if (h = new RegExp(l), x1(t), l = t.toString(), l.search(h) == 0) {
8189
+ if (h = new RegExp(l), B1(t), l = t.toString(), l.search(h) == 0) {
8226
8190
  h = l.match(h)[0].length;
8227
- var m = l.substring(h).match(N1);
8228
- m && m[1] != null && 0 < m[1].length && r1(m[1], g1) == "0" ? l = !1 : (B(t), t.g(l.substring(h)), l = !0);
8191
+ var m = l.substring(h).match(D1);
8192
+ m && m[1] != null && 0 < m[1].length && o1(m[1], C1) == "0" ? l = !1 : (B(t), t.g(l.substring(h)), l = !0);
8229
8193
  } else l = !1;
8230
8194
  l = l ? 5 : 20;
8231
8195
  }
8232
- if (r && E(o, 6, l), l != 20) {
8196
+ if (s && E(u, 6, l), l != 20) {
8233
8197
  if (2 >= t.h.length) throw Error("Phone number too short after IDD");
8234
- if (d = U1(t, n), d != 0) return E(o, 1, d), d;
8198
+ if (d = V1(t, i), d != 0) return E(u, 1, d), d;
8235
8199
  throw Error("Invalid country calling code");
8236
8200
  }
8237
- return $ != null && (l = v($, 10), h = "" + l, m = t.toString(), m.lastIndexOf(h, 0) == 0 && (h = new L(m.substring(h.length)), m = f($, 1), m = new RegExp(v(m, 2)), V1(h, $, null), h = h.toString(), !G(m, t.toString()) && G(m, h) || l1(d, t.toString(), $, -1) == 3)) ? (n.g(h), r && E(o, 6, 10), E(o, 1, l), l) : (E(o, 1, 0), 0);
8238
- }
8239
- function V1(d, t, $) {
8240
- var n = d.toString(), r = n.length, o = f(t, 15);
8241
- if (r != 0 && o != null && o.length != 0) {
8242
- var l = new RegExp("^(?:" + o + ")");
8243
- if (r = l.exec(n)) {
8244
- o = new RegExp(v(f(t, 1), 2));
8245
- var h = G(o, n), m = r.length - 1;
8246
- t = f(t, 16), t == null || t.length == 0 || r[m] == null || r[m].length == 0 ? (!h || G(o, n.substring(r[0].length))) && ($ != null && 0 < m && r[m] != null && $.g(r[1]), d.set(n.substring(r[0].length))) : (n = n.replace(l, t), (!h || G(o, n)) && ($ != null && 0 < m && $.g(r[1]), d.set(n)));
8201
+ return $ != null && (l = S($, 10), h = "" + l, m = t.toString(), m.lastIndexOf(h, 0) == 0 && (h = new L(m.substring(h.length)), m = p($, 1), m = new RegExp(S(m, 2)), H1(h, $, null), h = h.toString(), !G(m, t.toString()) && G(m, h) || a1(d, t.toString(), $, -1) == 3)) ? (i.g(h), s && E(u, 6, 10), E(u, 1, l), l) : (E(u, 1, 0), 0);
8202
+ }
8203
+ function H1(d, t, $) {
8204
+ var i = d.toString(), s = i.length, u = p(t, 15);
8205
+ if (s != 0 && u != null && u.length != 0) {
8206
+ var l = new RegExp("^(?:" + u + ")");
8207
+ if (s = l.exec(i)) {
8208
+ u = new RegExp(S(p(t, 1), 2));
8209
+ var h = G(u, i), m = s.length - 1;
8210
+ t = p(t, 16), t == null || t.length == 0 || s[m] == null || s[m].length == 0 ? (!h || G(u, i.substring(s[0].length))) && ($ != null && 0 < m && s[m] != null && $.g(s[1]), d.set(i.substring(s[0].length))) : (i = i.replace(l, t), (!h || G(u, i)) && ($ != null && 0 < m && $.g(s[1]), d.set(i)));
8247
8211
  }
8248
8212
  }
8249
8213
  }
8250
8214
  function z(d, t, $) {
8251
- if (!o1($) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
8252
- return K1(d, t, $, !0);
8215
+ if (!u1($) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
8216
+ return j1(d, t, $, !0);
8253
8217
  }
8254
- function K1(d, t, $, n) {
8218
+ function j1(d, t, $, i) {
8255
8219
  if (t == null) throw Error("The string supplied did not seem to be a phone number");
8256
8220
  if (250 < t.length) throw Error("The string supplied is too long to be a phone number");
8257
- var r = new L(), o = t.indexOf(";phone-context=");
8258
- if (o === -1) o = null;
8259
- else if (o += 15, o >= t.length) o = "";
8221
+ var s = new L(), u = t.indexOf(";phone-context=");
8222
+ if (u === -1) u = null;
8223
+ else if (u += 15, u >= t.length) u = "";
8260
8224
  else {
8261
- var l = t.indexOf(";", o);
8262
- o = l !== -1 ? t.substring(o, l) : t.substring(o);
8225
+ var l = t.indexOf(";", u);
8226
+ u = l !== -1 ? t.substring(u, l) : t.substring(u);
8263
8227
  }
8264
- var h = o;
8265
- if (h == null ? l = !0 : h.length === 0 ? l = !1 : (l = y2.exec(h), h = _2.exec(h), l = l !== null || h !== null), !l || (o != null ? (o.charAt(0) === "+" && r.g(o), o = t.indexOf("tel:"), r.g(t.substring(0 <= o ? o + 4 : 0, t.indexOf(";phone-context=")))) : (o = r.g, l = t ?? "", h = l.search(p2), 0 <= h ? (l = l.substring(h), l = l.replace(C2, ""), h = l.search(g2), 0 <= h && (l = l.substring(0, h))) : l = "", o.call(r, l)), o = r.toString(), l = o.indexOf(";isub="), 0 < l && (B(r), r.g(o.substring(0, l))), !M1(r.toString()))) throw Error("The string supplied did not seem to be a phone number");
8266
- if (o = r.toString(), !(o1($) || o != null && 0 < o.length && Q.test(o))) throw Error("Invalid country calling code");
8267
- o = new V(), n && E(o, 5, t);
8228
+ var h = u;
8229
+ if (h == null ? l = !0 : h.length === 0 ? l = !1 : (l = y2.exec(h), h = _2.exec(h), l = l !== null || h !== null), !l || (u != null ? (u.charAt(0) === "+" && s.g(u), u = t.indexOf("tel:"), s.g(t.substring(0 <= u ? u + 4 : 0, t.indexOf(";phone-context=")))) : (u = s.g, l = t ?? "", h = l.search(p2), 0 <= h ? (l = l.substring(h), l = l.replace(C2, ""), h = l.search(g2), 0 <= h && (l = l.substring(0, h))) : l = "", u.call(s, l)), u = s.toString(), l = u.indexOf(";isub="), 0 < l && (B(s), s.g(u.substring(0, l))), !P1(s.toString()))) throw Error("The string supplied did not seem to be a phone number");
8230
+ if (u = s.toString(), !(u1($) || u != null && 0 < u.length && Q.test(u))) throw Error("Invalid country calling code");
8231
+ u = new V(), i && E(u, 5, t);
8268
8232
  d: {
8269
- if (t = r.toString(), l = t.search(D1), 0 <= l && M1(t.substring(0, l))) {
8270
- h = t.match(D1);
8271
- for (var m = h.length, U = 1; U < m; ++U) if (h[U] != null && 0 < h[U].length) {
8272
- B(r), r.g(t.substring(0, l)), t = h[U];
8233
+ if (t = s.toString(), l = t.search(x1), 0 <= l && P1(t.substring(0, l))) {
8234
+ h = t.match(x1);
8235
+ for (var m = h.length, F = 1; F < m; ++F) if (h[F] != null && 0 < h[F].length) {
8236
+ B(s), s.g(t.substring(0, l)), t = h[F];
8273
8237
  break d;
8274
8238
  }
8275
8239
  }
8276
8240
  t = "";
8277
8241
  }
8278
- 0 < t.length && E(o, 3, t), l = K(d, $), t = new L(), h = 0, m = r.toString();
8242
+ 0 < t.length && E(u, 3, t), l = K(d, $), t = new L(), h = 0, m = s.toString();
8279
8243
  try {
8280
- h = F1(d, m, l, t, n, o);
8281
- } catch (y1) {
8282
- if (y1.message == "Invalid country calling code" && Q.test(m)) {
8283
- if (m = m.replace(Q, ""), h = F1(d, m, l, t, n, o), h == 0) throw y1;
8284
- } else throw y1;
8244
+ h = K1(d, m, l, t, i, u);
8245
+ } catch (_1) {
8246
+ if (_1.message == "Invalid country calling code" && Q.test(m)) {
8247
+ if (m = m.replace(Q, ""), h = K1(d, m, l, t, i, u), h == 0) throw _1;
8248
+ } else throw _1;
8285
8249
  }
8286
- if (h != 0 ? (r = e1(h), r != $ && (l = d1(d, h, r))) : (x1(r), t.g(r.toString()), $ != null ? (h = v(l, 10), E(
8287
- o,
8250
+ if (h != 0 ? (s = e1(h), s != $ && (l = d1(d, h, s))) : (B1(s), t.g(s.toString()), $ != null ? (h = S(l, 10), E(
8251
+ u,
8288
8252
  1,
8289
8253
  h
8290
- )) : n && (delete o.h[6], o.g && delete o.g[6])), 2 > t.h.length || (l != null && ($ = new L(), r = new L(t.toString()), V1(r, l, $), d = l1(d, r.toString(), l, -1), d != 2 && d != 4 && d != 5 && (t = r, n && 0 < $.toString().length && E(o, 7, $.toString()))), n = t.toString(), d = n.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
8254
+ )) : i && (delete u.h[6], u.g && delete u.g[6])), 2 > t.h.length || (l != null && ($ = new L(), s = new L(t.toString()), H1(s, l, $), d = a1(d, s.toString(), l, -1), d != 2 && d != 4 && d != 5 && (t = s, i && 0 < $.toString().length && E(u, 7, $.toString()))), i = t.toString(), d = i.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
8291
8255
  if (17 < d) throw Error("The string supplied is too long to be a phone number");
8292
- if (1 < n.length && n.charAt(0) == "0") {
8293
- for (E(o, 4, !0), d = 1; d < n.length - 1 && n.charAt(d) == "0"; ) d++;
8294
- d != 1 && E(o, 8, d);
8256
+ if (1 < i.length && i.charAt(0) == "0") {
8257
+ for (E(u, 4, !0), d = 1; d < i.length - 1 && i.charAt(d) == "0"; ) d++;
8258
+ d != 1 && E(u, 8, d);
8295
8259
  }
8296
- return E(o, 2, parseInt(n, 10)), o;
8260
+ return E(u, 2, parseInt(i, 10)), u;
8297
8261
  }
8298
8262
  function G(d, t) {
8299
8263
  return !!((d = typeof d == "string" ? t.match("^(?:" + d + ")$") : t.match(d)) && d[0].length == t.length);
8300
8264
  }
8301
8265
  function w2(d) {
8302
- this.fa = RegExp(" "), this.ja = "", this.v = new L(), this.da = "", this.s = new L(), this.ba = new L(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = D.g(), this.$ = 0, this.h = new L(), this.ha = !1, this.o = "", this.g = new L(), this.j = [], this.ka = d, this.l = W1(this, this.ka);
8266
+ this.fa = RegExp(" "), this.ja = "", this.v = new L(), this.da = "", this.s = new L(), this.ba = new L(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = D.g(), this.$ = 0, this.h = new L(), this.ha = !1, this.o = "", this.g = new L(), this.j = [], this.ka = d, this.l = Z1(this, this.ka);
8303
8267
  }
8304
- var H1 = new W();
8305
- E(H1, 11, "NA");
8306
- var b2 = RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*)*$"), j1 = /[- ]/;
8307
- function W1(d, t) {
8268
+ var W1 = new W();
8269
+ E(W1, 11, "NA");
8270
+ var b2 = RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]*)*$"), z1 = /[- ]/;
8271
+ function Z1(d, t) {
8308
8272
  var $ = d.ga;
8309
- return t = o1(t) ? G1($, t) : 0, d = K(d.ga, e1(t)), d ?? H1;
8273
+ return t = u1(t) ? U1($, t) : 0, d = K(d.ga, e1(t)), d ?? W1;
8310
8274
  }
8311
- function z1(d) {
8275
+ function Y1(d) {
8312
8276
  for (var t = d.j.length, $ = 0; $ < t; ++$) {
8313
- var n = d.j[$], r = v(n, 1);
8314
- if (d.da == r) return !1;
8315
- var o = d, l = n, h = v(l, 1);
8316
- B(o.v);
8317
- var m = o;
8318
- l = v(l, 2);
8319
- var U = "999999999999999".match(h)[0];
8320
- if (U.length < m.g.h.length ? m = "" : (m = U.replace(new RegExp(h, "g"), l), m = m.replace(RegExp("9", "g"), " ")), 0 < m.length ? (o.v.g(m), o = !0) : o = !1, o) return d.da = r, d.ha = j1.test(f(n, 4)), d.$ = 0, !0;
8277
+ var i = d.j[$], s = S(i, 1);
8278
+ if (d.da == s) return !1;
8279
+ var u = d, l = i, h = S(l, 1);
8280
+ B(u.v);
8281
+ var m = u;
8282
+ l = S(l, 2);
8283
+ var F = "999999999999999".match(h)[0];
8284
+ if (F.length < m.g.h.length ? m = "" : (m = F.replace(new RegExp(h, "g"), l), m = m.replace(RegExp("9", "g"), " ")), 0 < m.length ? (u.v.g(m), u = !0) : u = !1, u) return d.da = s, d.ha = z1.test(p(i, 4)), d.$ = 0, !0;
8321
8285
  }
8322
8286
  return d.u = !1;
8323
8287
  }
8324
- function Z1(d, t) {
8325
- for (var $ = [], n = t.length - 3, r = d.j.length, o = 0; o < r; ++o) {
8326
- var l = d.j[o];
8327
- F(l, 3) == 0 ? $.push(d.j[o]) : (l = f(l, 3, Math.min(n, F(l, 3) - 1)), t.search(l) == 0 && $.push(d.j[o]));
8288
+ function J1(d, t) {
8289
+ for (var $ = [], i = t.length - 3, s = d.j.length, u = 0; u < s; ++u) {
8290
+ var l = d.j[u];
8291
+ U(l, 3) == 0 ? $.push(d.j[u]) : (l = p(l, 3, Math.min(i, U(l, 3) - 1)), t.search(l) == 0 && $.push(d.j[u]));
8328
8292
  }
8329
8293
  d.j = $;
8330
8294
  }
8331
- function A2(d, t) {
8295
+ function N2(d, t) {
8332
8296
  d.s.g(t);
8333
8297
  var $ = t;
8334
- if (N1.test($) || d.s.h.length == 1 && f2.test($) ? (t == "+" ? ($ = t, d.ba.g(t)) : ($ = g1[t], d.ba.g($), d.g.g($)), t = $) : (d.u = !1, d.la = !0), !d.u) {
8298
+ if (D1.test($) || d.s.h.length == 1 && f2.test($) ? (t == "+" ? ($ = t, d.ba.g(t)) : ($ = C1[t], d.ba.g($), d.g.g($)), t = $) : (d.u = !1, d.la = !0), !d.u) {
8335
8299
  if (!d.la) {
8336
- if (Q1(d)) {
8337
- if (d2(d)) return Y1(d);
8338
- } else if (0 < d.o.length && (t = d.g.toString(), B(d.g), d.g.g(d.o), d.g.g(t), t = d.h.toString(), $ = t.lastIndexOf(d.o), B(d.h), d.h.g(t.substring(0, $))), d.o != X1(d)) return d.h.g(" "), Y1(d);
8300
+ if (t2(d)) {
8301
+ if (e2(d)) return q1(d);
8302
+ } else if (0 < d.o.length && (t = d.g.toString(), B(d.g), d.g.g(d.o), d.g.g(t), t = d.h.toString(), $ = t.lastIndexOf(d.o), B(d.h), d.h.g(t.substring(0, $))), d.o != d2(d)) return d.h.g(" "), q1(d);
8339
8303
  }
8340
8304
  return d.s.toString();
8341
8305
  }
@@ -8345,96 +8309,96 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
8345
8309
  case 2:
8346
8310
  return d.s.toString();
8347
8311
  case 3:
8348
- if (Q1(d)) d.ea = !0;
8349
- else return d.o = X1(d), m1(d);
8312
+ if (t2(d)) d.ea = !0;
8313
+ else return d.o = d2(d), y1(d);
8350
8314
  default:
8351
- return d.ea ? (d2(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = t2(d, t), $ = J1(d), 0 < $.length ? $ : (Z1(d, d.g.toString()), z1(d) ? q1(d) : d.u ? a1(d, t) : d.s.toString())) : m1(d);
8315
+ return d.ea ? (e2(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = $2(d, t), $ = X1(d), 0 < $.length ? $ : (J1(d, d.g.toString()), Y1(d) ? Q1(d) : d.u ? h1(d, t) : d.s.toString())) : y1(d);
8352
8316
  }
8353
8317
  }
8354
- function Y1(d) {
8355
- return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, B(d.v), d.da = "", m1(d);
8318
+ function q1(d) {
8319
+ return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, B(d.v), d.da = "", y1(d);
8356
8320
  }
8357
- function J1(d) {
8358
- for (var t = d.g.toString(), $ = d.j.length, n = 0; n < $; ++n) {
8359
- var r = d.j[n], o = v(r, 1);
8360
- if (new RegExp("^(?:" + o + ")$").test(t) && (d.ha = j1.test(f(r, 4)), r = t.replace(new RegExp(o, "g"), f(r, 2)), r = a1(d, r), r1(r, h2) == d.ba)) return r;
8321
+ function X1(d) {
8322
+ for (var t = d.g.toString(), $ = d.j.length, i = 0; i < $; ++i) {
8323
+ var s = d.j[i], u = S(s, 1);
8324
+ if (new RegExp("^(?:" + u + ")$").test(t) && (d.ha = z1.test(p(s, 4)), s = t.replace(new RegExp(u, "g"), p(s, 2)), s = h1(d, s), o1(s, h2) == d.ba)) return s;
8361
8325
  }
8362
8326
  return "";
8363
8327
  }
8364
- function a1(d, t) {
8328
+ function h1(d, t) {
8365
8329
  var $ = d.h.h.length;
8366
8330
  return d.ha && 0 < $ && d.h.toString().charAt($ - 1) != " " ? d.h + " " + t : d.h + t;
8367
8331
  }
8368
- function m1(d) {
8332
+ function y1(d) {
8369
8333
  var t = d.g.toString();
8370
8334
  if (3 <= t.length) {
8371
- for (var $ = d.ca && d.o.length == 0 && 0 < F(d.l, 20) ? M(d.l, 20) : M(d.l, 19), n = $.length, r = 0; r < n; ++r) {
8372
- var o = $[r];
8373
- 0 < d.o.length && B1(v(o, 4)) && !f(o, 6) && !R(o, 5) || (d.o.length != 0 || d.ca || B1(v(o, 4)) || f(o, 6)) && b2.test(v(o, 2)) && d.j.push(o);
8335
+ for (var $ = d.ca && d.o.length == 0 && 0 < U(d.l, 20) ? x(d.l, 20) : x(d.l, 19), i = $.length, s = 0; s < i; ++s) {
8336
+ var u = $[s];
8337
+ 0 < d.o.length && O1(S(u, 4)) && !p(u, 6) && !R(u, 5) || (d.o.length != 0 || d.ca || O1(S(u, 4)) || p(u, 6)) && b2.test(S(u, 2)) && d.j.push(u);
8374
8338
  }
8375
- return Z1(d, t), t = J1(d), 0 < t.length ? t : z1(d) ? q1(d) : d.s.toString();
8339
+ return J1(d, t), t = X1(d), 0 < t.length ? t : Y1(d) ? Q1(d) : d.s.toString();
8376
8340
  }
8377
- return a1(d, t);
8341
+ return h1(d, t);
8378
8342
  }
8379
- function q1(d) {
8343
+ function Q1(d) {
8380
8344
  var t = d.g.toString(), $ = t.length;
8381
8345
  if (0 < $) {
8382
- for (var n = "", r = 0; r < $; r++) n = t2(d, t.charAt(r));
8383
- return d.u ? a1(d, n) : d.s.toString();
8346
+ for (var i = "", s = 0; s < $; s++) i = $2(d, t.charAt(s));
8347
+ return d.u ? h1(d, i) : d.s.toString();
8384
8348
  }
8385
8349
  return d.h.toString();
8386
8350
  }
8387
- function X1(d) {
8351
+ function d2(d) {
8388
8352
  var t = d.g.toString(), $ = 0;
8389
- if (f(d.l, 10) != 1) var n = !1;
8390
- else n = d.g.toString(), n = n.charAt(0) == "1" && n.charAt(1) != "0" && n.charAt(1) != "1";
8391
- return n ? ($ = 1, d.h.g("1").g(" "), d.ca = !0) : R(d.l, 15) && (n = new RegExp("^(?:" + f(d.l, 15) + ")"), n = t.match(n), n != null && n[0] != null && 0 < n[0].length && (d.ca = !0, $ = n[0].length, d.h.g(t.substring(0, $)))), B(d.g), d.g.g(t.substring($)), t.substring(0, $);
8353
+ if (p(d.l, 10) != 1) var i = !1;
8354
+ else i = d.g.toString(), i = i.charAt(0) == "1" && i.charAt(1) != "0" && i.charAt(1) != "1";
8355
+ return i ? ($ = 1, d.h.g("1").g(" "), d.ca = !0) : R(d.l, 15) && (i = new RegExp("^(?:" + p(d.l, 15) + ")"), i = t.match(i), i != null && i[0] != null && 0 < i[0].length && (d.ca = !0, $ = i[0].length, d.h.g(t.substring(0, $)))), B(d.g), d.g.g(t.substring($)), t.substring(0, $);
8392
8356
  }
8393
- function Q1(d) {
8394
- var t = d.ba.toString(), $ = new RegExp("^(?:\\+|" + f(d.l, 11) + ")");
8357
+ function t2(d) {
8358
+ var t = d.ba.toString(), $ = new RegExp("^(?:\\+|" + p(d.l, 11) + ")");
8395
8359
  return $ = t.match($), $ != null && $[0] != null && 0 < $[0].length ? (d.ca = !0, $ = $[0].length, B(d.g), d.g.g(t.substring($)), B(d.h), d.h.g(t.substring(0, $)), t.charAt(0) != "+" && d.h.g(" "), !0) : !1;
8396
8360
  }
8397
- function d2(d) {
8361
+ function e2(d) {
8398
8362
  if (d.g.h.length == 0) return !1;
8399
- var t = new L(), $ = U1(d.g, t);
8400
- return $ == 0 ? !1 : (B(d.g), d.g.g(t.toString()), t = e1($), t == "001" ? d.l = K(d.ga, "" + $) : t != d.ka && (d.l = W1(d, t)), d.h.g("" + $).g(" "), d.o = "", !0);
8363
+ var t = new L(), $ = V1(d.g, t);
8364
+ return $ == 0 ? !1 : (B(d.g), d.g.g(t.toString()), t = e1($), t == "001" ? d.l = K(d.ga, "" + $) : t != d.ka && (d.l = Z1(d, t)), d.h.g("" + $).g(" "), d.o = "", !0);
8401
8365
  }
8402
- function t2(d, t) {
8366
+ function $2(d, t) {
8403
8367
  var $ = d.v.toString();
8404
8368
  if (0 <= $.substring(d.$).search(d.fa)) {
8405
- var n = $.search(d.fa);
8406
- return t = $.replace(d.fa, t), B(d.v), d.v.g(t), d.$ = n, t.substring(0, d.$ + 1);
8369
+ var i = $.search(d.fa);
8370
+ return t = $.replace(d.fa, t), B(d.v), d.v.g(t), d.$ = i, t.substring(0, d.$ + 1);
8407
8371
  }
8408
8372
  return d.j.length == 1 && (d.u = !1), d.da = "", d.s.toString();
8409
8373
  }
8410
- const h1 = { 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 };
8374
+ const c1 = { 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 };
8411
8375
  e("intlTelInputUtilsTemp", {}), e("intlTelInputUtilsTemp.formatNumberAsYouType", (d, t) => {
8412
8376
  try {
8413
- const $ = d.replace(/[^+0-9]/g, ""), n = new w2(t);
8377
+ const $ = d.replace(/[^+0-9]/g, ""), i = new w2(t);
8414
8378
  t = "";
8415
- for (let r = 0; r < $.length; r++) n.ja = A2(n, $.charAt(r)), t = n.ja;
8379
+ for (let s = 0; s < $.length; s++) i.ja = N2(i, $.charAt(s)), t = i.ja;
8416
8380
  return t;
8417
8381
  } catch {
8418
8382
  return d;
8419
8383
  }
8420
8384
  }), e("intlTelInputUtilsTemp.formatNumber", (d, t, $) => {
8421
8385
  try {
8422
- const r = D.g(), o = z(r, d, t);
8423
- var n = Y(r, o, -1);
8424
- return n == 0 || n == 4 ? r.format(o, typeof $ > "u" ? 0 : $) : d;
8386
+ const s = D.g(), u = z(s, d, t);
8387
+ var i = J(s, u, -1);
8388
+ return i == 0 || i == 4 ? s.format(u, typeof $ > "u" ? 0 : $) : d;
8425
8389
  } catch {
8426
8390
  return d;
8427
8391
  }
8428
- }), e("intlTelInputUtilsTemp.getExampleNumber", (d, t, $, n) => {
8392
+ }), e("intlTelInputUtilsTemp.getExampleNumber", (d, t, $, i) => {
8429
8393
  try {
8430
8394
  const m = D.g();
8431
8395
  d: {
8432
- var r = m;
8433
- if (o1(d)) {
8434
- var o = u1(K(r, d), $);
8396
+ var s = m;
8397
+ if (u1(d)) {
8398
+ var u = l1(K(s, d), $);
8435
8399
  try {
8436
- if (R(o, 6)) {
8437
- var l = f(o, 6), h = K1(r, l, d, !1);
8400
+ if (R(u, 6)) {
8401
+ var l = p(u, 6), h = j1(s, l, d, !1);
8438
8402
  break d;
8439
8403
  }
8440
8404
  } catch {
@@ -8442,47 +8406,47 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
8442
8406
  }
8443
8407
  h = null;
8444
8408
  }
8445
- return m.format(h, n ? 0 : t ? 2 : 1);
8409
+ return m.format(h, i ? 0 : t ? 2 : 1);
8446
8410
  } catch {
8447
8411
  return "";
8448
8412
  }
8449
8413
  }), e("intlTelInputUtilsTemp.getExtension", (d, t) => {
8450
8414
  try {
8451
- return f(z(D.g(), d, t), 3);
8415
+ return p(z(D.g(), d, t), 3);
8452
8416
  } catch {
8453
8417
  return "";
8454
8418
  }
8455
8419
  }), e("intlTelInputUtilsTemp.getNumberType", (d, t) => {
8456
8420
  try {
8457
8421
  const l = D.g(), h = z(l, d, t);
8458
- var $ = O1(l, h), n = d1(l, v(h, 1), $);
8459
- if (n == null) var r = -1;
8422
+ var $ = F1(l, h), i = d1(l, S(h, 1), $);
8423
+ if (i == null) var s = -1;
8460
8424
  else {
8461
- var o = t1(h);
8462
- r = C1(o, n);
8425
+ var u = t1(h);
8426
+ s = m1(u, i);
8463
8427
  }
8464
- return r;
8428
+ return s;
8465
8429
  } catch {
8466
8430
  return -99;
8467
8431
  }
8468
8432
  }), e("intlTelInputUtilsTemp.getValidationError", (d, t) => {
8469
8433
  if (!t) return 1;
8470
8434
  try {
8471
- const $ = D.g(), n = z($, d, t);
8472
- return Y($, n, -1);
8435
+ const $ = D.g(), i = z($, d, t);
8436
+ return J($, i, -1);
8473
8437
  } catch ($) {
8474
8438
  return $.message === "Invalid country calling code" ? 1 : 3 >= d.length || $.message === "Phone number too short after IDD" || $.message === "The string supplied is too short to be a phone number" ? 2 : $.message === "The string supplied is too long to be a phone number" ? 3 : -99;
8475
8439
  }
8476
8440
  }), e("intlTelInputUtilsTemp.isValidNumber", (d, t) => {
8477
8441
  try {
8478
8442
  const m = D.g();
8479
- var $ = z(m, d, t), n = O1(m, $);
8443
+ var $ = z(m, d, t), i = F1(m, $);
8480
8444
  d = m;
8481
- var r = v($, 1), o = d1(d, r, n);
8482
- if (o == null || n != "001" && r != G1(d, n)) var l = !1;
8445
+ var s = S($, 1), u = d1(d, s, i);
8446
+ if (u == null || i != "001" && s != U1(d, i)) var l = !1;
8483
8447
  else {
8484
8448
  var h = t1($);
8485
- l = C1(h, o) != -1;
8449
+ l = m1(h, u) != -1;
8486
8450
  }
8487
8451
  return l;
8488
8452
  } catch {
@@ -8490,33 +8454,33 @@ const V2 = (y) => !C.utils && !C.startedLoadingUtilsScript ? (C.startedLoadingUt
8490
8454
  }
8491
8455
  }), e("intlTelInputUtilsTemp.isPossibleNumber", (d, t, $) => {
8492
8456
  try {
8493
- const n = D.g(), r = z(n, d, t);
8457
+ const i = D.g(), s = z(i, d, t);
8494
8458
  if ($) {
8495
- const o = Y(n, r, h1[$]) === 0;
8459
+ const u = J(i, s, c1[$]) === 0;
8496
8460
  if ($ === "FIXED_LINE_OR_MOBILE") {
8497
- const l = Y(n, r, h1.MOBILE) === 0, h = Y(n, r, h1.FIXED_LINE) === 0;
8498
- return l || h || o;
8461
+ const l = J(i, s, c1.MOBILE) === 0, h = J(i, s, c1.FIXED_LINE) === 0;
8462
+ return l || h || u;
8499
8463
  }
8500
- return o;
8464
+ return u;
8501
8465
  }
8502
- return Y(n, r, -1) === 0;
8466
+ return J(i, s, -1) === 0;
8503
8467
  } catch {
8504
8468
  return !1;
8505
8469
  }
8506
8470
  }), e("intlTelInputUtilsTemp.getCoreNumber", (d, t) => {
8507
8471
  try {
8508
- return f(z(D.g(), d, t), 2).toString();
8472
+ return p(z(D.g(), d, t), 2).toString();
8509
8473
  } catch {
8510
8474
  return "";
8511
8475
  }
8512
- }), e("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 }), e("intlTelInputUtilsTemp.numberType", h1), e("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
8476
+ }), e("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 }), e("intlTelInputUtilsTemp.numberType", c1), e("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
8513
8477
  })();
8514
8478
  const K2 = window.intlTelInputUtilsTemp;
8515
8479
  delete window.intlTelInputUtilsTemp;
8516
8480
  C.utils = K2;
8517
8481
  const j2 = {
8518
8482
  __name: "IntlTelInputWithUtils",
8519
- props: /* @__PURE__ */ e2({
8483
+ props: /* @__PURE__ */ n2({
8520
8484
  disabled: {
8521
8485
  type: Boolean,
8522
8486
  default: !1
@@ -8540,46 +8504,46 @@ const j2 = {
8540
8504
  },
8541
8505
  modelModifiers: {}
8542
8506
  }),
8543
- emits: /* @__PURE__ */ e2([
8507
+ emits: /* @__PURE__ */ n2([
8544
8508
  "changeNumber",
8545
8509
  "changeCountry",
8546
8510
  "changeValidity",
8547
8511
  "changeErrorCode"
8548
8512
  ], ["update:modelValue"]),
8549
- setup(y, { expose: e, emit: i }) {
8550
- const s = T2(y, "modelValue"), u = y, a = i, c = _1(), p = _1(), g = _1(!1), b = () => p.value ? u.options.strictMode ? p.value.isValidNumberPrecise() : p.value.isValidNumber() : null, _ = () => {
8551
- let I = b();
8552
- g.value !== I && (g.value = I, a("changeValidity", !!I), a(
8513
+ setup(y, { expose: e, emit: n }) {
8514
+ const r = A2(y, "modelValue"), o = y, a = n, c = I1(), g = I1(), f = I1(!1), b = () => g.value ? o.options.strictMode ? g.value.isValidNumberPrecise() : g.value.isValidNumber() : null, _ = () => {
8515
+ let v = b();
8516
+ f.value !== v && (f.value = v, a("changeValidity", !!v), a(
8553
8517
  "changeErrorCode",
8554
- I ? null : p.value.getValidationError()
8518
+ v ? null : g.value.getValidationError()
8555
8519
  ));
8556
- }, A = () => {
8557
- var I;
8558
- a("changeNumber", ((I = p.value) == null ? void 0 : I.getNumber()) ?? ""), _();
8559
- }, S = () => {
8560
- var I;
8561
- a("changeCountry", ((I = p.value) == null ? void 0 : I.getSelectedCountryData().iso2) ?? ""), A(), _();
8520
+ }, I = () => {
8521
+ var v;
8522
+ a("changeNumber", ((v = g.value) == null ? void 0 : v.getNumber()) ?? ""), _();
8523
+ }, N = () => {
8524
+ var v;
8525
+ a("changeCountry", ((v = g.value) == null ? void 0 : v.getSelectedCountryData().iso2) ?? ""), I(), _();
8562
8526
  };
8563
8527
  return L2(() => {
8564
- c.value && (p.value = C(c.value, u.options), u.value && p.value.setNumber(u.value), u.disabled && p.value.setDisabled(u.disabled));
8565
- }), N2(
8566
- () => u.disabled,
8567
- (I) => {
8568
- var T;
8569
- return (T = p.value) == null ? void 0 : T.setDisabled(I);
8528
+ c.value && (g.value = C(c.value, o.options), o.value && g.value.setNumber(o.value), o.disabled && g.value.setDisabled(o.disabled));
8529
+ }), T2(
8530
+ () => o.disabled,
8531
+ (v) => {
8532
+ var A;
8533
+ return (A = g.value) == null ? void 0 : A.setDisabled(v);
8570
8534
  }
8571
8535
  ), E2(() => {
8572
- var I;
8573
- return (I = p.value) == null ? void 0 : I.destroy();
8574
- }), e({ instance: p, input: c }), (I, T) => D2((M2(), P2("input", x2({
8536
+ var v;
8537
+ return (v = g.value) == null ? void 0 : v.destroy();
8538
+ }), e({ instance: g, input: c }), (v, A) => D2((M2(), x2("input", P2({
8575
8539
  ref_key: "input",
8576
8540
  ref: c,
8577
- "onUpdate:modelValue": T[0] || (T[0] = (P) => s.value = P),
8541
+ "onUpdate:modelValue": A[0] || (A[0] = (M) => r.value = M),
8578
8542
  type: "tel",
8579
- onCountrychange: S,
8580
- onInput: A
8543
+ onCountrychange: N,
8544
+ onInput: I
8581
8545
  }, y.inputProps), null, 16)), [
8582
- [R2, s.value]
8546
+ [R2, r.value]
8583
8547
  ]);
8584
8548
  }
8585
8549
  };