intl-tel-input 25.10.11 → 25.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { mergeModels as r0, useModel as P0, ref as I1, onMounted as x0, watch as B0, onUnmounted as R0, withDirectives as k0, createElementBlock as O0, openBlock as G0, mergeProps as U0, vModelText as F0 } from "vue";
1
+ import { mergeModels as s0, useModel as P0, ref as I1, onMounted as x0, watch as B0, onUnmounted as R0, withDirectives as k0, createElementBlock as O0, openBlock as G0, mergeProps as U0, vModelText as F0 } from "vue";
2
2
  const K0 = [
3
3
  [
4
4
  "af",
@@ -2007,16 +2007,16 @@ function W0(f) {
2007
2007
  }
2008
2008
  const c1 = (f) => f.replace(/\D/g, ""), a0 = (f = "") => f.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), L = (f, e, $) => {
2009
2009
  const i = document.createElement(f);
2010
- return e && Object.entries(e).forEach(([s, u]) => i.setAttribute(s, u)), $ && $.appendChild(i), i;
2010
+ return e && Object.entries(e).forEach(([r, u]) => i.setAttribute(r, u)), $ && $.appendChild(i), i;
2011
2011
  };
2012
2012
  function z0(f) {
2013
2013
  const { onlyCountries: e, excludeCountries: $ } = f;
2014
2014
  if (e.length) {
2015
- const i = e.map((s) => s.toLowerCase());
2016
- return Y.filter((s) => i.includes(s.iso2));
2015
+ const i = e.map((r) => r.toLowerCase());
2016
+ return Y.filter((r) => i.includes(r.iso2));
2017
2017
  } else if ($.length) {
2018
- const i = $.map((s) => s.toLowerCase());
2019
- return Y.filter((s) => !i.includes(s.iso2));
2018
+ const i = $.map((r) => r.toLowerCase());
2019
+ return Y.filter((r) => !i.includes(r.iso2));
2020
2020
  }
2021
2021
  return Y;
2022
2022
  }
@@ -2029,47 +2029,47 @@ function Z0(f, e) {
2029
2029
  function Y0(f, e) {
2030
2030
  const $ = /* @__PURE__ */ new Set();
2031
2031
  let i = 0;
2032
- const s = {}, u = (h, c, m) => {
2032
+ const r = {}, u = (h, c, C) => {
2033
2033
  if (!h || !c)
2034
2034
  return;
2035
- c.length > i && (i = c.length), s.hasOwnProperty(c) || (s[c] = []);
2036
- const g = s[c];
2035
+ c.length > i && (i = c.length), r.hasOwnProperty(c) || (r[c] = []);
2036
+ const g = r[c];
2037
2037
  if (g.includes(h))
2038
2038
  return;
2039
- const I = m !== void 0 ? m : g.length;
2039
+ const I = C !== void 0 ? C : g.length;
2040
2040
  g[I] = h;
2041
2041
  };
2042
2042
  for (const h of f) {
2043
2043
  $.has(h.dialCode) || $.add(h.dialCode);
2044
2044
  for (let c = 1; c < h.dialCode.length; c++) {
2045
- const m = h.dialCode.substring(0, c);
2046
- u(h.iso2, m);
2045
+ const C = h.dialCode.substring(0, c);
2046
+ u(h.iso2, C);
2047
2047
  }
2048
2048
  u(h.iso2, h.dialCode, h.priority);
2049
2049
  }
2050
2050
  (e.onlyCountries.length || e.excludeCountries.length) && $.forEach((h) => {
2051
- s[h] = s[h].filter(Boolean);
2051
+ r[h] = r[h].filter(Boolean);
2052
2052
  });
2053
2053
  for (const h of f)
2054
2054
  if (h.areaCodes) {
2055
- const c = s[h.dialCode][0];
2056
- for (const m of h.areaCodes) {
2057
- for (let g = 1; g < m.length; g++) {
2058
- const I = m.substring(0, g), w = h.dialCode + I;
2055
+ const c = r[h.dialCode][0];
2056
+ for (const C of h.areaCodes) {
2057
+ for (let g = 1; g < C.length; g++) {
2058
+ const I = C.substring(0, g), w = h.dialCode + I;
2059
2059
  u(c, w), u(h.iso2, w);
2060
2060
  }
2061
- u(h.iso2, h.dialCode + m);
2061
+ u(h.iso2, h.dialCode + C);
2062
2062
  }
2063
2063
  }
2064
- return { dialCodes: $, dialCodeMaxLen: i, dialCodeToIso2Map: s };
2064
+ return { dialCodes: $, dialCodeMaxLen: i, dialCodeToIso2Map: r };
2065
2065
  }
2066
2066
  function J0(f, e) {
2067
2067
  e.countryOrder && (e.countryOrder = e.countryOrder.map(($) => $.toLowerCase())), f.sort(($, i) => {
2068
- const { countryOrder: s } = e;
2069
- if (s) {
2070
- const u = s.indexOf($.iso2), h = s.indexOf(i.iso2), c = u > -1, m = h > -1;
2071
- if (c || m)
2072
- return c && m ? u - h : c ? -1 : 1;
2068
+ const { countryOrder: r } = e;
2069
+ if (r) {
2070
+ const u = r.indexOf($.iso2), h = r.indexOf(i.iso2), c = u > -1, C = h > -1;
2071
+ if (c || C)
2072
+ return c && C ? u - h : c ? -1 : 1;
2073
2073
  }
2074
2074
  return $.name.localeCompare(i.name);
2075
2075
  });
@@ -2079,26 +2079,26 @@ function q0(f) {
2079
2079
  e.normalisedName = a0(e.name), e.initials = e.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map(($) => $[0]).join("").toLowerCase(), e.dialCodePlus = `+${e.dialCode}`;
2080
2080
  }
2081
2081
  function X0(f, e, $, i) {
2082
- let s = f;
2082
+ let r = f;
2083
2083
  if ($ && e) {
2084
2084
  e = `+${i.dialCode}`;
2085
- const u = s[e.length] === " " || s[e.length] === "-" ? e.length + 1 : e.length;
2086
- s = s.substring(u);
2085
+ const u = r[e.length] === " " || r[e.length] === "-" ? e.length + 1 : e.length;
2086
+ r = r.substring(u);
2087
2087
  }
2088
- return s;
2088
+ return r;
2089
2089
  }
2090
- function Q0(f, e, $, i, s) {
2090
+ function Q0(f, e, $, i, r) {
2091
2091
  const u = $ ? $.formatNumberAsYouType(f, i.iso2) : f, { dialCode: h } = i;
2092
- return s && e.charAt(0) !== "+" && u.includes(`+${h}`) ? (u.split(`+${h}`)[1] || "").trim() : u;
2092
+ return r && e.charAt(0) !== "+" && u.includes(`+${h}`) ? (u.split(`+${h}`)[1] || "").trim() : u;
2093
2093
  }
2094
2094
  function d2(f, e, $, i) {
2095
2095
  if ($ === 0 && !i)
2096
2096
  return 0;
2097
- let s = 0;
2097
+ let r = 0;
2098
2098
  for (let u = 0; u < e.length; u++) {
2099
- if (/[+0-9]/.test(e[u]) && s++, s === f && !i)
2099
+ if (/[+0-9]/.test(e[u]) && r++, r === f && !i)
2100
2100
  return u + 1;
2101
- if (i && s === f + 1)
2101
+ if (i && r === f + 1)
2102
2102
  return u;
2103
2103
  }
2104
2104
  return e.length;
@@ -2148,15 +2148,13 @@ class f1 {
2148
2148
  this.id = e2++, this.telInput = e, this.highlightedItem = null, this.options = Object.assign({}, u0, $), this.hadInitialPlaceholder = !!e.getAttribute("placeholder");
2149
2149
  }
2150
2150
  _detectEnvironmentAndLayout() {
2151
- this.isAndroid = typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1, this.isRTL = !!this.telInput.closest("[dir=rtl]"), this.telInput.dir = "ltr";
2152
- const e = this.options.allowDropdown || this.options.separateDialCode;
2153
- this.showSelectedCountryOnLeft = this.isRTL ? !e : e, this.options.separateDialCode && (this.isRTL ? this.originalPaddingRight = this.telInput.style.paddingRight : this.originalPaddingLeft = this.telInput.style.paddingLeft);
2151
+ this.isAndroid = typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1, this.isRTL = !!this.telInput.closest("[dir=rtl]"), this.options.separateDialCode && (this.originalPaddingLeft = this.telInput.style.paddingLeft);
2154
2152
  }
2155
2153
  _createInitPromises() {
2156
- const e = new Promise((i, s) => {
2157
- this.resolveAutoCountryPromise = i, this.rejectAutoCountryPromise = s;
2158
- }), $ = new Promise((i, s) => {
2159
- this.resolveUtilsScriptPromise = i, this.rejectUtilsScriptPromise = s;
2154
+ const e = new Promise((i, r) => {
2155
+ this.resolveAutoCountryPromise = i, this.rejectAutoCountryPromise = r;
2156
+ }), $ = new Promise((i, r) => {
2157
+ this.resolveUtilsScriptPromise = i, this.rejectUtilsScriptPromise = r;
2160
2158
  });
2161
2159
  this.promise = Promise.all([e, $]);
2162
2160
  }
@@ -2188,29 +2186,29 @@ class f1 {
2188
2186
  allowDropdown: e,
2189
2187
  showFlags: $,
2190
2188
  containerClass: i,
2191
- useFullscreenPopup: s
2189
+ useFullscreenPopup: r
2192
2190
  } = this.options, u = f1._buildClassNames({
2193
2191
  iti: !0,
2194
2192
  "iti--allow-dropdown": e,
2195
2193
  "iti--show-flags": $,
2196
- "iti--inline-dropdown": !s,
2194
+ "iti--inline-dropdown": !r,
2197
2195
  [i]: !!i
2198
2196
  }), h = L("div", { class: u });
2199
- return (c = this.telInput.parentNode) == null || c.insertBefore(h, this.telInput), h;
2197
+ return this.isRTL && h.setAttribute("dir", "ltr"), (c = this.telInput.parentNode) == null || c.insertBefore(h, this.telInput), h;
2200
2198
  }
2201
2199
  _maybeBuildCountryContainer(e) {
2202
2200
  const {
2203
2201
  allowDropdown: $,
2204
2202
  separateDialCode: i,
2205
- showFlags: s
2203
+ showFlags: r
2206
2204
  } = this.options;
2207
- if ($ || s || i) {
2205
+ if ($ || r || i) {
2208
2206
  this.countryContainer = L(
2209
2207
  "div",
2210
2208
  // visibly hidden until we measure it's width to set the input padding correctly
2211
2209
  { class: "iti__country-container iti__v-hide" },
2212
2210
  e
2213
- ), this.showSelectedCountryOnLeft ? this.countryContainer.style.left = "0px" : this.countryContainer.style.right = "0px", $ ? (this.selectedCountry = L(
2211
+ ), $ ? (this.selectedCountry = L(
2214
2212
  "button",
2215
2213
  {
2216
2214
  type: "button",
@@ -2241,7 +2239,7 @@ class f1 {
2241
2239
  u
2242
2240
  )), i && (this.selectedDialCode = L(
2243
2241
  "div",
2244
- { class: "iti__selected-dial-code", dir: "ltr" },
2242
+ { class: "iti__selected-dial-code" },
2245
2243
  this.selectedCountry
2246
2244
  )), $ && this._buildDropdownContent();
2247
2245
  }
@@ -2251,7 +2249,7 @@ class f1 {
2251
2249
  fixDropdownWidth: e,
2252
2250
  useFullscreenPopup: $,
2253
2251
  countrySearch: i,
2254
- i18n: s,
2252
+ i18n: r,
2255
2253
  dropdownContainer: u,
2256
2254
  containerClass: h
2257
2255
  } = this.options, c = e ? "" : "iti--flexible-dropdown-width";
@@ -2260,24 +2258,24 @@ class f1 {
2260
2258
  class: `iti__dropdown-content iti__hide ${c}`,
2261
2259
  role: "dialog",
2262
2260
  "aria-modal": "true"
2263
- }), i && this._buildSearchUI(), this.countryList = L(
2261
+ }), this.isRTL && this.dropdownContent.setAttribute("dir", "rtl"), i && this._buildSearchUI(), this.countryList = L(
2264
2262
  "ul",
2265
2263
  {
2266
2264
  class: "iti__country-list",
2267
2265
  id: `iti-${this.id}__country-listbox`,
2268
2266
  role: "listbox",
2269
- "aria-label": s.countryListAriaLabel
2267
+ "aria-label": r.countryListAriaLabel
2270
2268
  },
2271
2269
  this.dropdownContent
2272
2270
  ), this._appendListItems(), i && this._updateSearchResultsA11yText(), u) {
2273
- const m = f1._buildClassNames({
2271
+ const C = f1._buildClassNames({
2274
2272
  iti: !0,
2275
2273
  "iti--container": !0,
2276
2274
  "iti--fullscreen-popup": $,
2277
2275
  "iti--inline-dropdown": !$,
2278
2276
  [h]: !!h
2279
2277
  });
2280
- this.dropdown = L("div", { class: m }), this.dropdown.appendChild(this.dropdownContent);
2278
+ this.dropdown = L("div", { class: C }), this.dropdown.appendChild(this.dropdownContent);
2281
2279
  } else
2282
2280
  this.countryContainer.appendChild(this.dropdownContent);
2283
2281
  }
@@ -2351,7 +2349,7 @@ class f1 {
2351
2349
  this.countryContainer && (this._updateInputPadding(), this.countryContainer.classList.remove("iti__v-hide"));
2352
2350
  }
2353
2351
  _maybeBuildHiddenInputs(e) {
2354
- var i, s;
2352
+ var i, r;
2355
2353
  const { hiddenInput: $ } = this.options;
2356
2354
  if ($) {
2357
2355
  const u = this.telInput.getAttribute("name") || "", h = $(u);
@@ -2363,7 +2361,7 @@ class f1 {
2363
2361
  }), e.appendChild(this.hiddenInput));
2364
2362
  }
2365
2363
  if (h.country) {
2366
- const c = (s = this.telInput.form) == null ? void 0 : s.querySelector(`input[name="${h.country}"]`);
2364
+ const c = (r = this.telInput.form) == null ? void 0 : r.querySelector(`input[name="${h.country}"]`);
2367
2365
  c ? this.hiddenInputCountry = c : (this.hiddenInputCountry = L("input", {
2368
2366
  type: "hidden",
2369
2367
  name: h.country
@@ -2374,7 +2372,7 @@ class f1 {
2374
2372
  //* For each country: add a country list item <li> to the countryList <ul> container.
2375
2373
  _appendListItems() {
2376
2374
  for (let e = 0; e < this.countries.length; e++) {
2377
- const $ = this.countries[e], i = e === 0 ? "iti__highlight" : "", s = L(
2375
+ const $ = this.countries[e], i = e === 0 ? "iti__highlight" : "", r = L(
2378
2376
  "li",
2379
2377
  {
2380
2378
  id: `iti-${this.id}__item-${$.iso2}`,
@@ -2387,20 +2385,20 @@ class f1 {
2387
2385
  },
2388
2386
  this.countryList
2389
2387
  );
2390
- $.nodeById[this.id] = s;
2388
+ $.nodeById[this.id] = r;
2391
2389
  let u = "";
2392
- this.options.showFlags && (u += `<div class='iti__flag iti__${$.iso2}'></div>`), u += `<span class='iti__country-name'>${$.name}</span>`, u += `<span class='iti__dial-code' dir='ltr'>+${$.dialCode}</span>`, s.insertAdjacentHTML("beforeend", u);
2390
+ this.options.showFlags && (u += `<div class='iti__flag iti__${$.iso2}'></div>`), u += `<span class='iti__country-name'>${$.name}</span>`, u += `<span class='iti__dial-code' dir='ltr'>+${$.dialCode}</span>`, r.insertAdjacentHTML("beforeend", u);
2393
2391
  }
2394
2392
  }
2395
2393
  //* Set the initial state of the input value and the selected country by:
2396
2394
  //* 1. Extracting a dial code from the given number
2397
2395
  //* 2. Using explicit initialCountry
2398
2396
  _setInitialState(e = !1) {
2399
- const $ = this.telInput.getAttribute("value"), i = this.telInput.value, u = $ && $.charAt(0) === "+" && (!i || i.charAt(0) !== "+") ? $ : i, h = this._getDialCode(u), c = o0(u), { initialCountry: m, geoIpLookup: g } = this.options, I = m === "auto" && g;
2397
+ const $ = this.telInput.getAttribute("value"), i = this.telInput.value, u = $ && $.charAt(0) === "+" && (!i || i.charAt(0) !== "+") ? $ : i, h = this._getDialCode(u), c = o0(u), { initialCountry: C, geoIpLookup: g } = this.options, I = C === "auto" && g;
2400
2398
  if (h && !c)
2401
2399
  this._updateCountryFromNumber(u);
2402
2400
  else if (!I || e) {
2403
- const w = m ? m.toLowerCase() : "";
2401
+ const w = C ? C.toLowerCase() : "";
2404
2402
  w1(w) ? this._setCountry(w) : h && c ? this._setCountry("us") : this._setCountry("");
2405
2403
  }
2406
2404
  u && this._updateValFromNumber(u);
@@ -2465,17 +2463,17 @@ class f1 {
2465
2463
  this._bindInputListener(), this._maybeBindKeydownListener(), this._maybeBindPasteListener();
2466
2464
  }
2467
2465
  _bindInputListener() {
2468
- const { strictMode: e, formatAsYouType: $, separateDialCode: i, allowDropdown: s, countrySearch: u } = this.options;
2466
+ const { strictMode: e, formatAsYouType: $, separateDialCode: i, allowDropdown: r, countrySearch: u } = this.options;
2469
2467
  let h = !1;
2470
2468
  new RegExp("\\p{L}", "u").test(this.telInput.value) && (h = !0), this._handleInputEvent = (c) => {
2471
- if (this.isAndroid && (c == null ? void 0 : c.data) === "+" && i && s && u) {
2469
+ if (this.isAndroid && (c == null ? void 0 : c.data) === "+" && i && r && u) {
2472
2470
  const w = this.telInput.selectionStart || 0, k = this.telInput.value.substring(0, w - 1), v = this.telInput.value.substring(w);
2473
2471
  this.telInput.value = k + v, this._openDropdownWithPlus();
2474
2472
  return;
2475
2473
  }
2476
2474
  this._updateCountryFromNumber(this.telInput.value) && this._triggerCountryChange();
2477
- const m = (c == null ? void 0 : c.data) && /[^+0-9]/.test(c.data), g = (c == null ? void 0 : c.inputType) === "insertFromPaste" && this.telInput.value;
2478
- m || g && !e ? h = !0 : /[^+0-9]/.test(this.telInput.value) || (h = !1);
2475
+ const C = (c == null ? void 0 : c.data) && /[^+0-9]/.test(c.data), g = (c == null ? void 0 : c.inputType) === "insertFromPaste" && this.telInput.value;
2476
+ C || g && !e ? h = !0 : /[^+0-9]/.test(this.telInput.value) || (h = !1);
2479
2477
  const I = (c == null ? void 0 : c.detail) && c.detail.isSetNumber;
2480
2478
  if ($ && !h && !I) {
2481
2479
  const w = this.telInput.selectionStart || 0, v = this.telInput.value.substring(0, w).replace(/[^+0-9]/g, "").length, E = (c == null ? void 0 : c.inputType) === "deleteContentForward", N = this._getFullNumber(), P = Q0(
@@ -2490,16 +2488,16 @@ class f1 {
2490
2488
  }, this.telInput.addEventListener("input", this._handleInputEvent);
2491
2489
  }
2492
2490
  _maybeBindKeydownListener() {
2493
- const { strictMode: e, separateDialCode: $, allowDropdown: i, countrySearch: s } = this.options;
2491
+ const { strictMode: e, separateDialCode: $, allowDropdown: i, countrySearch: r } = this.options;
2494
2492
  (e || $) && (this._handleKeydownEvent = (u) => {
2495
2493
  if (u.key && u.key.length === 1 && !u.altKey && !u.ctrlKey && !u.metaKey) {
2496
- if ($ && i && s && u.key === "+") {
2494
+ if ($ && i && r && u.key === "+") {
2497
2495
  u.preventDefault(), this._openDropdownWithPlus();
2498
2496
  return;
2499
2497
  }
2500
2498
  if (e) {
2501
- const h = this.telInput.value, m = !(h.charAt(0) === "+") && this.telInput.selectionStart === 0 && u.key === "+", g = /^[0-9]$/.test(u.key), I = $ ? g : m || g, w = h.slice(0, this.telInput.selectionStart) + u.key + h.slice(this.telInput.selectionEnd), k = this._getFullNumber(w), v = y.utils.getCoreNumber(k, this.selectedCountryData.iso2), E = this.maxCoreNumberLength && v.length > this.maxCoreNumberLength, P = this._getNewCountryFromNumber(k) !== null;
2502
- (!I || E && !P && !m) && u.preventDefault();
2499
+ const h = this.telInput.value, C = !(h.charAt(0) === "+") && this.telInput.selectionStart === 0 && u.key === "+", g = /^[0-9]$/.test(u.key), I = $ ? g : C || g, w = h.slice(0, this.telInput.selectionStart) + u.key + h.slice(this.telInput.selectionEnd), k = this._getFullNumber(w), v = y.utils.getCoreNumber(k, this.selectedCountryData.iso2), E = this.maxCoreNumberLength && v.length > this.maxCoreNumberLength, P = this._getNewCountryFromNumber(k) !== null;
2500
+ (!I || E && !P && !C) && u.preventDefault();
2503
2501
  }
2504
2502
  }
2505
2503
  }, this.telInput.addEventListener("keydown", this._handleKeydownEvent));
@@ -2507,7 +2505,7 @@ class f1 {
2507
2505
  _maybeBindPasteListener() {
2508
2506
  this.options.strictMode && (this._handlePasteEvent = (e) => {
2509
2507
  e.preventDefault();
2510
- const $ = this.telInput, i = $.selectionStart, s = $.selectionEnd, u = $.value.slice(0, i), h = $.value.slice(s), c = this.selectedCountryData.iso2, m = e.clipboardData.getData("text"), g = i === 0 && s > 0, I = !$.value.startsWith("+") || g, w = m.replace(/[^0-9+]/g, ""), k = w.startsWith("+"), v = w.replace(/\+/g, ""), E = k && I ? `+${v}` : v;
2508
+ const $ = this.telInput, i = $.selectionStart, r = $.selectionEnd, u = $.value.slice(0, i), h = $.value.slice(r), c = this.selectedCountryData.iso2, C = e.clipboardData.getData("text"), g = i === 0 && r > 0, I = !$.value.startsWith("+") || g, w = C.replace(/[^0-9+]/g, ""), k = w.startsWith("+"), v = w.replace(/\+/g, ""), E = k && I ? `+${v}` : v;
2511
2509
  let N = u + E + h, P = y.utils.getCoreNumber(N, c);
2512
2510
  for (; P.length === 0 && N.length > 0; )
2513
2511
  N = N.slice(0, -1), P = y.utils.getCoreNumber(N, c);
@@ -2558,15 +2556,15 @@ class f1 {
2558
2556
  _bindDropdownListeners() {
2559
2557
  this._handleMouseoverCountryList = (i) => {
2560
2558
  var u;
2561
- const s = (u = i.target) == null ? void 0 : u.closest(".iti__country");
2562
- s && this._highlightListItem(s, !1);
2559
+ const r = (u = i.target) == null ? void 0 : u.closest(".iti__country");
2560
+ r && this._highlightListItem(r, !1);
2563
2561
  }, this.countryList.addEventListener(
2564
2562
  "mouseover",
2565
2563
  this._handleMouseoverCountryList
2566
2564
  ), this._handleClickCountryList = (i) => {
2567
2565
  var u;
2568
- const s = (u = i.target) == null ? void 0 : u.closest(".iti__country");
2569
- s && this._selectListItem(s);
2566
+ const r = (u = i.target) == null ? void 0 : u.closest(".iti__country");
2567
+ r && this._selectListItem(r);
2570
2568
  }, this.countryList.addEventListener("click", this._handleClickCountryList), this._handleClickOffToClose = (i) => {
2571
2569
  !!i.target.closest(`#iti-${this.id}__dropdown-content`) || this._closeDropdown();
2572
2570
  }, setTimeout(() => {
@@ -2585,10 +2583,10 @@ class f1 {
2585
2583
  const u = this.searchInput.value.trim();
2586
2584
  this._filterCountries(u), this.searchInput.value ? this.searchClearButton.classList.remove("iti__hide") : this.searchClearButton.classList.add("iti__hide");
2587
2585
  };
2588
- let s = null;
2586
+ let r = null;
2589
2587
  this._handleSearchChange = () => {
2590
- s && clearTimeout(s), s = setTimeout(() => {
2591
- i(), s = null;
2588
+ r && clearTimeout(r), r = setTimeout(() => {
2589
+ i(), r = null;
2592
2590
  }, 100);
2593
2591
  }, this.searchInput.addEventListener("input", this._handleSearchChange), this._handleSearchClear = () => {
2594
2592
  this.searchInput.value = "", this.searchInput.focus(), i();
@@ -2599,8 +2597,8 @@ class f1 {
2599
2597
  _searchForCountry(e) {
2600
2598
  for (const $ of this.countries)
2601
2599
  if ($.name.substring(0, e.length).toLowerCase() === e) {
2602
- const s = $.nodeById[this.id];
2603
- this._highlightListItem(s, !1), this._scrollTo(s);
2600
+ const r = $.nodeById[this.id];
2601
+ this._highlightListItem(r, !1), this._scrollTo(r);
2604
2602
  break;
2605
2603
  }
2606
2604
  }
@@ -2610,23 +2608,23 @@ class f1 {
2610
2608
  let $;
2611
2609
  e === "" ? $ = this.countries : $ = this._getMatchedCountries(e);
2612
2610
  let i = !0;
2613
- for (const s of $) {
2614
- const u = s.nodeById[this.id];
2611
+ for (const r of $) {
2612
+ const u = r.nodeById[this.id];
2615
2613
  u && (this.countryList.appendChild(u), i && (this._highlightListItem(u, !1), i = !1));
2616
2614
  }
2617
2615
  i ? (this._highlightListItem(null, !1), this.searchNoResults && this.searchNoResults.classList.remove("iti__hide")) : this.searchNoResults && this.searchNoResults.classList.add("iti__hide"), this.countryList.scrollTop = 0, this._updateSearchResultsA11yText();
2618
2616
  }
2619
2617
  _getMatchedCountries(e) {
2620
- const $ = a0(e), i = [], s = [], u = [], h = [], c = [], m = [];
2618
+ const $ = a0(e), i = [], r = [], u = [], h = [], c = [], C = [];
2621
2619
  for (const g of this.countries)
2622
- g.iso2 === $ ? i.push(g) : g.normalisedName.startsWith($) ? s.push(g) : g.normalisedName.includes($) ? u.push(g) : $ === g.dialCode || $ === g.dialCodePlus ? h.push(g) : g.dialCodePlus.includes($) ? c.push(g) : g.initials.includes($) && m.push(g);
2620
+ g.iso2 === $ ? i.push(g) : g.normalisedName.startsWith($) ? r.push(g) : g.normalisedName.includes($) ? u.push(g) : $ === g.dialCode || $ === g.dialCodePlus ? h.push(g) : g.dialCodePlus.includes($) ? c.push(g) : g.initials.includes($) && C.push(g);
2623
2621
  return [
2624
2622
  ...i.sort((g, I) => g.priority - I.priority),
2625
- ...s.sort((g, I) => g.priority - I.priority),
2623
+ ...r.sort((g, I) => g.priority - I.priority),
2626
2624
  ...u.sort((g, I) => g.priority - I.priority),
2627
2625
  ...h.sort((g, I) => g.priority - I.priority),
2628
2626
  ...c.sort((g, I) => g.priority - I.priority),
2629
- ...m.sort((g, I) => g.priority - I.priority)
2627
+ ...C.sort((g, I) => g.priority - I.priority)
2630
2628
  ];
2631
2629
  }
2632
2630
  //* Update search results text (for a11y).
@@ -2637,8 +2635,8 @@ class f1 {
2637
2635
  }
2638
2636
  //* Highlight the next/prev item in the list (and ensure it is visible).
2639
2637
  _handleUpDownKey(e) {
2640
- var i, s;
2641
- let $ = e === "ArrowUp" ? (i = this.highlightedItem) == null ? void 0 : i.previousElementSibling : (s = this.highlightedItem) == null ? void 0 : s.nextElementSibling;
2638
+ var i, r;
2639
+ let $ = e === "ArrowUp" ? (i = this.highlightedItem) == null ? void 0 : i.previousElementSibling : (r = this.highlightedItem) == null ? void 0 : r.nextElementSibling;
2642
2640
  !$ && this.countryList.childElementCount > 1 && ($ = e === "ArrowUp" ? this.countryList.lastElementChild : this.countryList.firstElementChild), $ && (this._scrollTo($), this._highlightListItem($, !1));
2643
2641
  }
2644
2642
  //* Select the currently highlighted item.
@@ -2650,7 +2648,7 @@ class f1 {
2650
2648
  _updateValFromNumber(e) {
2651
2649
  let $ = e;
2652
2650
  if (this.options.formatOnDisplay && y.utils && this.selectedCountryData) {
2653
- const i = this.options.nationalMode || $.charAt(0) !== "+" && !this.options.separateDialCode, { NATIONAL: s, INTERNATIONAL: u } = y.utils.numberFormat, h = i ? s : u;
2651
+ const i = this.options.nationalMode || $.charAt(0) !== "+" && !this.options.separateDialCode, { NATIONAL: r, INTERNATIONAL: u } = y.utils.numberFormat, h = i ? r : u;
2654
2652
  $ = y.utils.formatNumber(
2655
2653
  $,
2656
2654
  this.selectedCountryData.iso2,
@@ -2679,14 +2677,14 @@ class f1 {
2679
2677
  _getNewCountryFromNumber(e) {
2680
2678
  const $ = e.indexOf("+");
2681
2679
  let i = $ ? e.substring($) : e;
2682
- const s = this.selectedCountryData.iso2, u = this.selectedCountryData.dialCode;
2680
+ const r = this.selectedCountryData.iso2, u = this.selectedCountryData.dialCode;
2683
2681
  i = this._ensureHasDialCode(i);
2684
2682
  const h = this._getDialCode(i, !0), c = c1(i);
2685
2683
  if (h) {
2686
- const m = c1(h), g = this.dialCodeToIso2Map[m];
2684
+ const C = c1(h), g = this.dialCodeToIso2Map[C];
2687
2685
  if (g.length === 1)
2688
- return g[0] === s ? null : g[0];
2689
- if (!s && this.defaultCountry && g.includes(this.defaultCountry))
2686
+ return g[0] === r ? null : g[0];
2687
+ if (!r && this.defaultCountry && g.includes(this.defaultCountry))
2690
2688
  return this.defaultCountry;
2691
2689
  if (u === "1" && o0(c))
2692
2690
  return null;
@@ -2697,13 +2695,13 @@ class f1 {
2697
2695
  if (c.startsWith(j))
2698
2696
  return null;
2699
2697
  }
2700
- const E = w && !(k === 0) && c.length > m.length, N = s && g.includes(s) && !E, P = s === g[0];
2698
+ const E = w && !(k === 0) && c.length > C.length, N = r && g.includes(r) && !E, P = r === g[0];
2701
2699
  if (!N && !P)
2702
2700
  return g[0];
2703
2701
  } else {
2704
2702
  if (i.charAt(0) === "+" && c.length)
2705
2703
  return "";
2706
- if ((!i || i === "+") && !s)
2704
+ if ((!i || i === "+") && !r)
2707
2705
  return this.defaultCountry;
2708
2706
  }
2709
2707
  return null;
@@ -2712,24 +2710,24 @@ class f1 {
2712
2710
  _highlightListItem(e, $) {
2713
2711
  const i = this.highlightedItem;
2714
2712
  if (i && (i.classList.remove("iti__highlight"), i.setAttribute("aria-selected", "false")), this.highlightedItem = e, this.highlightedItem && (this.highlightedItem.classList.add("iti__highlight"), this.highlightedItem.setAttribute("aria-selected", "true"), this.options.countrySearch)) {
2715
- const s = this.highlightedItem.getAttribute("id") || "";
2716
- this.searchInput.setAttribute("aria-activedescendant", s);
2713
+ const r = this.highlightedItem.getAttribute("id") || "";
2714
+ this.searchInput.setAttribute("aria-activedescendant", r);
2717
2715
  }
2718
2716
  $ && this.highlightedItem.focus();
2719
2717
  }
2720
2718
  //* Update the selected country, dial code (if separateDialCode), placeholder, title, and active list item.
2721
2719
  //* Note: called from _setInitialState, _updateCountryFromNumber, _selectListItem, setCountry.
2722
2720
  _setCountry(e) {
2723
- const { separateDialCode: $, showFlags: i, i18n: s } = this.options, u = this.selectedCountryData.iso2 || "";
2721
+ const { separateDialCode: $, showFlags: i, i18n: r } = this.options, u = this.selectedCountryData.iso2 || "";
2724
2722
  if (this.selectedCountryData = e ? this.countryByIso2.get(e) : {}, this.selectedCountryData.iso2 && (this.defaultCountry = this.selectedCountryData.iso2), this.selectedCountry) {
2725
2723
  const h = e && i ? `iti__flag iti__${e}` : "iti__flag iti__globe";
2726
- let c, m;
2724
+ let c, C;
2727
2725
  if (e) {
2728
2726
  const { name: g, dialCode: I } = this.selectedCountryData;
2729
- m = g, c = s.selectedCountryAriaLabel.replace("${countryName}", g).replace("${dialCode}", `+${I}`);
2727
+ C = g, c = r.selectedCountryAriaLabel.replace("${countryName}", g).replace("${dialCode}", `+${I}`);
2730
2728
  } else
2731
- m = s.noCountrySelected, c = s.noCountrySelected;
2732
- this.selectedCountryInner.className = h, this.selectedCountry.setAttribute("title", m), this.selectedCountry.setAttribute("aria-label", c);
2729
+ C = r.noCountrySelected, c = r.noCountrySelected;
2730
+ this.selectedCountryInner.className = h, this.selectedCountry.setAttribute("title", C), this.selectedCountry.setAttribute("aria-label", c);
2733
2731
  }
2734
2732
  if ($) {
2735
2733
  const h = this.selectedCountryData.dialCode ? `+${this.selectedCountryData.dialCode}` : "";
@@ -2741,25 +2739,25 @@ class f1 {
2741
2739
  _updateInputPadding() {
2742
2740
  if (this.selectedCountry) {
2743
2741
  const e = this.options.separateDialCode ? 78 : 42, i = (this.selectedCountry.offsetWidth || this._getHiddenSelectedCountryWidth() || e) + 6;
2744
- this.showSelectedCountryOnLeft ? this.telInput.style.paddingLeft = `${i}px` : this.telInput.style.paddingRight = `${i}px`;
2742
+ this.telInput.style.paddingLeft = `${i}px`;
2745
2743
  }
2746
2744
  }
2747
2745
  //* Update the maximum valid number length for the currently selected country.
2748
2746
  _updateMaxLength() {
2749
- const { strictMode: e, placeholderNumberType: $, validationNumberTypes: i } = this.options, { iso2: s } = this.selectedCountryData;
2747
+ const { strictMode: e, placeholderNumberType: $, validationNumberTypes: i } = this.options, { iso2: r } = this.selectedCountryData;
2750
2748
  if (e && y.utils)
2751
- if (s) {
2749
+ if (r) {
2752
2750
  const u = y.utils.numberType[$];
2753
2751
  let h = y.utils.getExampleNumber(
2754
- s,
2752
+ r,
2755
2753
  !1,
2756
2754
  u,
2757
2755
  !0
2758
2756
  ), c = h;
2759
- for (; y.utils.isPossibleNumber(h, s, i); )
2757
+ for (; y.utils.isPossibleNumber(h, r, i); )
2760
2758
  c = h, h += "0";
2761
- const m = y.utils.getCoreNumber(c, s);
2762
- this.maxCoreNumberLength = m.length, s === "by" && (this.maxCoreNumberLength = m.length + 1);
2759
+ const C = y.utils.getCoreNumber(c, r);
2760
+ this.maxCoreNumberLength = C.length, r === "by" && (this.maxCoreNumberLength = C.length + 1);
2763
2761
  } else
2764
2762
  this.maxCoreNumberLength = null;
2765
2763
  }
@@ -2779,9 +2777,9 @@ class f1 {
2779
2777
  $.style.visibility = "hidden", e.appendChild($);
2780
2778
  const i = this.countryContainer.cloneNode();
2781
2779
  $.appendChild(i);
2782
- const s = this.selectedCountry.cloneNode(!0);
2783
- i.appendChild(s);
2784
- const u = s.offsetWidth;
2780
+ const r = this.selectedCountry.cloneNode(!0);
2781
+ i.appendChild(r);
2782
+ const u = r.offsetWidth;
2785
2783
  return e.removeChild($), u;
2786
2784
  }
2787
2785
  return 0;
@@ -2792,7 +2790,7 @@ class f1 {
2792
2790
  autoPlaceholder: e,
2793
2791
  placeholderNumberType: $,
2794
2792
  nationalMode: i,
2795
- customPlaceholder: s
2793
+ customPlaceholder: r
2796
2794
  } = this.options, u = e === "aggressive" || !this.hadInitialPlaceholder && e === "polite";
2797
2795
  if (y.utils && u) {
2798
2796
  const h = y.utils.numberType[$];
@@ -2801,15 +2799,15 @@ class f1 {
2801
2799
  i,
2802
2800
  h
2803
2801
  ) : "";
2804
- c = this._beforeSetNumber(c), typeof s == "function" && (c = s(c, this.selectedCountryData)), this.telInput.setAttribute("placeholder", c);
2802
+ c = this._beforeSetNumber(c), typeof r == "function" && (c = r(c, this.selectedCountryData)), this.telInput.setAttribute("placeholder", c);
2805
2803
  }
2806
2804
  }
2807
2805
  //* Called when the user selects a list item from the dropdown.
2808
2806
  _selectListItem(e) {
2809
2807
  const $ = e.getAttribute("data-country-code"), i = this._setCountry($);
2810
2808
  this._closeDropdown();
2811
- const s = e.getAttribute("data-dial-code");
2812
- this._updateDialCode(s), this.options.formatOnDisplay && this._updateValFromNumber(this.telInput.value), this.telInput.focus(), i && this._triggerCountryChange();
2809
+ const r = e.getAttribute("data-dial-code");
2810
+ this._updateDialCode(r), this.options.formatOnDisplay && this._updateValFromNumber(this.telInput.value), this.telInput.focus(), i && this._triggerCountryChange();
2813
2811
  }
2814
2812
  //* Close the dropdown and unbind any listeners.
2815
2813
  _closeDropdown() {
@@ -2823,11 +2821,11 @@ class f1 {
2823
2821
  }
2824
2822
  //* Check if an element is visible within it's container, else scroll until it is.
2825
2823
  _scrollTo(e) {
2826
- const $ = this.countryList, i = document.documentElement.scrollTop, s = $.offsetHeight, u = $.getBoundingClientRect().top + i, h = u + s, c = e.offsetHeight, m = e.getBoundingClientRect().top + i, g = m + c, I = m - u + $.scrollTop;
2827
- if (m < u)
2824
+ const $ = this.countryList, i = document.documentElement.scrollTop, r = $.offsetHeight, u = $.getBoundingClientRect().top + i, h = u + r, c = e.offsetHeight, C = e.getBoundingClientRect().top + i, g = C + c, I = C - u + $.scrollTop;
2825
+ if (C < u)
2828
2826
  $.scrollTop = I;
2829
2827
  else if (g > h) {
2830
- const w = s - c;
2828
+ const w = r - c;
2831
2829
  $.scrollTop = I - w;
2832
2830
  }
2833
2831
  }
@@ -2835,10 +2833,10 @@ class f1 {
2835
2833
  //* Note: called from _selectListItem and setCountry
2836
2834
  _updateDialCode(e) {
2837
2835
  const $ = this.telInput.value, i = `+${e}`;
2838
- let s;
2836
+ let r;
2839
2837
  if ($.charAt(0) === "+") {
2840
2838
  const u = this._getDialCode($);
2841
- u ? s = $.replace(u, i) : s = i, this.telInput.value = s;
2839
+ u ? r = $.replace(u, i) : r = i, this.telInput.value = r;
2842
2840
  }
2843
2841
  }
2844
2842
  //* Try and extract a valid international dial code from a full telephone number.
@@ -2846,19 +2844,19 @@ class f1 {
2846
2844
  _getDialCode(e, $) {
2847
2845
  let i = "";
2848
2846
  if (e.charAt(0) === "+") {
2849
- let s = "";
2847
+ let r = "";
2850
2848
  for (let u = 0; u < e.length; u++) {
2851
2849
  const h = e.charAt(u);
2852
2850
  if (/[0-9]/.test(h)) {
2853
- if (s += h, !!!this.dialCodeToIso2Map[s])
2851
+ if (r += h, !!!this.dialCodeToIso2Map[r])
2854
2852
  break;
2855
2853
  if ($)
2856
2854
  i = e.substring(0, u + 1);
2857
- else if (this.dialCodes.has(s)) {
2855
+ else if (this.dialCodes.has(r)) {
2858
2856
  i = e.substring(0, u + 1);
2859
2857
  break;
2860
2858
  }
2861
- if (s.length === this.dialCodeMaxLen)
2859
+ if (r.length === this.dialCodeMaxLen)
2862
2860
  break;
2863
2861
  }
2864
2862
  }
@@ -2868,9 +2866,9 @@ class f1 {
2868
2866
  //* Get the input val, adding the dial code if separateDialCode is enabled.
2869
2867
  _getFullNumber(e) {
2870
2868
  const $ = e || this.telInput.value.trim(), { dialCode: i } = this.selectedCountryData;
2871
- let s;
2869
+ let r;
2872
2870
  const u = c1($);
2873
- return this.options.separateDialCode && $.charAt(0) !== "+" && i && u ? s = `+${i}` : s = "", s + $;
2871
+ return this.options.separateDialCode && $.charAt(0) !== "+" && i && u ? r = `+${i}` : r = "", r + $;
2874
2872
  }
2875
2873
  //* Remove the dial code if separateDialCode is enabled also cap the length if the input has a maxlength attribute
2876
2874
  _beforeSetNumber(e) {
@@ -2917,9 +2915,9 @@ class f1 {
2917
2915
  c && c.removeEventListener("click", this._handleLabelClick);
2918
2916
  }
2919
2917
  const { form: i } = this.telInput;
2920
- this._handleHiddenInputSubmit && i && i.removeEventListener("submit", this._handleHiddenInputSubmit), this.telInput.removeEventListener("input", this._handleInputEvent), this._handleKeydownEvent && this.telInput.removeEventListener("keydown", this._handleKeydownEvent), this._handlePasteEvent && this.telInput.removeEventListener("paste", this._handlePasteEvent), this._handlePageLoad && window.removeEventListener("load", this._handlePageLoad), this.telInput.removeAttribute("data-intl-tel-input-id"), $ && (this.isRTL ? this.telInput.style.paddingRight = this.originalPaddingRight : this.telInput.style.paddingLeft = this.originalPaddingLeft);
2921
- const s = this.telInput.parentNode;
2922
- (u = s == null ? void 0 : s.parentNode) == null || u.insertBefore(this.telInput, s), (h = s == null ? void 0 : s.parentNode) == null || h.removeChild(s), delete y.instances[this.id];
2918
+ this._handleHiddenInputSubmit && i && i.removeEventListener("submit", this._handleHiddenInputSubmit), this.telInput.removeEventListener("input", this._handleInputEvent), this._handleKeydownEvent && this.telInput.removeEventListener("keydown", this._handleKeydownEvent), this._handlePasteEvent && this.telInput.removeEventListener("paste", this._handlePasteEvent), this._handlePageLoad && window.removeEventListener("load", this._handlePageLoad), this.telInput.removeAttribute("data-intl-tel-input-id"), $ && (this.telInput.style.paddingLeft = this.originalPaddingLeft);
2919
+ const r = this.telInput.parentNode;
2920
+ (u = r == null ? void 0 : r.parentNode) == null || u.insertBefore(this.telInput, r), (h = r == null ? void 0 : r.parentNode) == null || h.removeChild(r), delete y.instances[this.id];
2923
2921
  }
2924
2922
  //* Get the extension from the current number.
2925
2923
  getExtension() {
@@ -2959,11 +2957,17 @@ class f1 {
2959
2957
  }
2960
2958
  return -99;
2961
2959
  }
2962
- //* Validate the input val (with precise=false)
2960
+ //* Validate the input val using number length only
2963
2961
  isValidNumber() {
2962
+ const { dialCode: e, iso2: $ } = this.selectedCountryData;
2963
+ if (e === "44" && y.utils) {
2964
+ const i = this._getFullNumber(), r = y.utils.getCoreNumber(i, $);
2965
+ if (r[0] === "7" && r.length !== 10)
2966
+ return !1;
2967
+ }
2964
2968
  return this._validateNumber(!1);
2965
2969
  }
2966
- //* Validate the input val (with precise=true)
2970
+ //* Validate the input val with precise validation
2967
2971
  isValidNumberPrecise() {
2968
2972
  return this._validateNumber(!0);
2969
2973
  }
@@ -2972,12 +2976,14 @@ class f1 {
2972
2976
  }
2973
2977
  //* Shared internal validation logic to handle alpha character extension rules.
2974
2978
  _validateNumber(e) {
2979
+ if (!y.utils)
2980
+ return null;
2975
2981
  if (!this.selectedCountryData.iso2)
2976
2982
  return !1;
2977
- const $ = (h) => e ? this._utilsIsValidNumber(h) : this._utilsIsPossibleNumber(h), i = this._getFullNumber(), s = i.search(new RegExp("\\p{L}", "u"));
2978
- if (s > -1 && !this.options.allowPhonewords) {
2979
- const h = i.substring(0, s), c = $(h), m = $(i);
2980
- return c && m;
2983
+ const $ = (h) => e ? this._utilsIsValidNumber(h) : this._utilsIsPossibleNumber(h), i = this._getFullNumber(), r = i.search(new RegExp("\\p{L}", "u"));
2984
+ if (r > -1 && !this.options.allowPhonewords) {
2985
+ const h = i.substring(0, r), c = $(h), C = $(i);
2986
+ return c && C;
2981
2987
  }
2982
2988
  return $(i);
2983
2989
  }
@@ -3047,7 +3053,7 @@ const n2 = (f) => {
3047
3053
  attachUtils: n2,
3048
3054
  startedLoadingUtilsScript: !1,
3049
3055
  startedLoadingAutoCountry: !1,
3050
- version: "25.10.11"
3056
+ version: "25.10.12"
3051
3057
  }
3052
3058
  );
3053
3059
  (function() {
@@ -3056,23 +3062,23 @@ const n2 = (f) => {
3056
3062
  d = d.split(".");
3057
3063
  var n = f;
3058
3064
  d[0] in n || typeof n.execScript > "u" || n.execScript("var " + d[0]);
3059
- for (var r; d.length && (r = d.shift()); ) d.length || t === void 0 ? n[r] && n[r] !== Object.prototype[r] ? n = n[r] : n = n[r] = {} : n[r] = t;
3065
+ for (var s; d.length && (s = d.shift()); ) d.length || t === void 0 ? n[s] && n[s] !== Object.prototype[s] ? n = n[s] : n = n[s] = {} : n[s] = t;
3060
3066
  }
3061
3067
  function $(d, t) {
3062
3068
  function n() {
3063
3069
  }
3064
- n.prototype = t.prototype, d.ma = t.prototype, d.prototype = new n(), d.prototype.constructor = d, d.sa = function(r, o, l) {
3070
+ n.prototype = t.prototype, d.ma = t.prototype, d.prototype = new n(), d.prototype.constructor = d, d.sa = function(s, o, l) {
3065
3071
  for (var a = Array(arguments.length - 2), p = 2; p < arguments.length; p++) a[p - 2] = arguments[p];
3066
- return t.prototype[o].apply(r, a);
3072
+ return t.prototype[o].apply(s, a);
3067
3073
  };
3068
3074
  }
3069
3075
  function i(d) {
3070
3076
  const t = [];
3071
3077
  let n = 0;
3072
- for (const r in d) t[n++] = d[r];
3078
+ for (const s in d) t[n++] = d[s];
3073
3079
  return t;
3074
3080
  }
3075
- var s = class {
3081
+ var r = class {
3076
3082
  constructor(d) {
3077
3083
  if (u !== u) throw Error("SafeUrl is not meant to be built directly");
3078
3084
  this.g = d;
@@ -3081,7 +3087,7 @@ const n2 = (f) => {
3081
3087
  return this.g.toString();
3082
3088
  }
3083
3089
  }, u = {};
3084
- new s("about:invalid#zClosurez"), new s("about:blank");
3090
+ new r("about:invalid#zClosurez"), new r("about:blank");
3085
3091
  const h = {};
3086
3092
  class c {
3087
3093
  constructor() {
@@ -3092,10 +3098,10 @@ const n2 = (f) => {
3092
3098
  }
3093
3099
  }
3094
3100
  new c();
3095
- const m = {};
3101
+ const C = {};
3096
3102
  class g {
3097
3103
  constructor() {
3098
- if (m !== m) throw Error("SafeStyleSheet is not meant to be built directly");
3104
+ if (C !== C) throw Error("SafeStyleSheet is not meant to be built directly");
3099
3105
  }
3100
3106
  toString() {
3101
3107
  return "";
@@ -3145,15 +3151,15 @@ const n2 = (f) => {
3145
3151
  x.prototype.has = function(d) {
3146
3152
  return B(this, d.g);
3147
3153
  }, x.prototype.get = function(d, t) {
3148
- return C(this, d.g, t);
3154
+ return m(this, d.g, t);
3149
3155
  }, x.prototype.set = function(d, t) {
3150
3156
  T(this, d.g, t);
3151
3157
  }, x.prototype.add = function(d, t) {
3152
3158
  b1(this, d.g, t);
3153
3159
  };
3154
3160
  function S1(d, t) {
3155
- for (var n = p0(d.m()), r = 0; r < n.length; r++) {
3156
- var o = n[r], l = o.g;
3161
+ for (var n = p0(d.m()), s = 0; s < n.length; s++) {
3162
+ var o = n[s], l = o.g;
3157
3163
  if (B(t, l)) {
3158
3164
  d.g && delete d.g[o.g];
3159
3165
  var a = o.h == 11 || o.h == 10;
@@ -3176,23 +3182,23 @@ const n2 = (f) => {
3176
3182
  if (n == null) return null;
3177
3183
  if (d.l) {
3178
3184
  if (!(t in d.g)) {
3179
- var r = d.l, o = d.j[t];
3185
+ var s = d.l, o = d.j[t];
3180
3186
  if (n != null) if (o.l) {
3181
- for (var l = [], a = 0; a < n.length; a++) l[a] = r.h(o, n[a]);
3187
+ for (var l = [], a = 0; a < n.length; a++) l[a] = s.h(o, n[a]);
3182
3188
  n = l;
3183
- } else n = r.h(o, n);
3189
+ } else n = s.h(o, n);
3184
3190
  return d.g[t] = n;
3185
3191
  }
3186
3192
  return d.g[t];
3187
3193
  }
3188
3194
  return n;
3189
3195
  }
3190
- function C(d, t, n) {
3191
- var r = n1(d, t);
3192
- return d.j[t].l ? r[n || 0] : r;
3196
+ function m(d, t, n) {
3197
+ var s = n1(d, t);
3198
+ return d.j[t].l ? s[n || 0] : s;
3193
3199
  }
3194
3200
  function S(d, t) {
3195
- if (B(d, t)) d = C(d, t);
3201
+ if (B(d, t)) d = m(d, t);
3196
3202
  else d: {
3197
3203
  if (d = d.j[t], d.j === void 0) if (t = d.s, t === Boolean) d.j = !1;
3198
3204
  else if (t === Number) d.j = 0;
@@ -3218,15 +3224,15 @@ const n2 = (f) => {
3218
3224
  d.h[t] || (d.h[t] = []), d.h[t].push(n), d.g && delete d.g[t];
3219
3225
  }
3220
3226
  function i1(d, t) {
3221
- var n = [], r;
3222
- for (r in t) r != 0 && n.push(new k(r, t[r]));
3227
+ var n = [], s;
3228
+ for (s in t) s != 0 && n.push(new k(s, t[s]));
3223
3229
  return new f0(d, n);
3224
3230
  }
3225
- function s1() {
3231
+ function r1() {
3226
3232
  }
3227
- s1.prototype.g = function(d) {
3233
+ r1.prototype.g = function(d) {
3228
3234
  throw new d.h(), Error("Unimplemented");
3229
- }, s1.prototype.h = function(d, t) {
3235
+ }, r1.prototype.h = function(d, t) {
3230
3236
  if (d.h == 11 || d.h == 10) return t instanceof x ? t : this.g(d.s.prototype.m(), t);
3231
3237
  if (d.h == 14) return typeof t == "string" && L1.test(t) && (d = Number(t), 0 < d) ? d : t;
3232
3238
  if (!d.o) return t;
@@ -3238,13 +3244,13 @@ const n2 = (f) => {
3238
3244
  var L1 = /^-?[0-9]+$/;
3239
3245
  function p1() {
3240
3246
  }
3241
- $(p1, s1), p1.prototype.g = function(d, t) {
3247
+ $(p1, r1), p1.prototype.g = function(d, t) {
3242
3248
  return d = new d.h(), d.l = this, d.h = t, d.g = {}, d;
3243
3249
  };
3244
3250
  function q() {
3245
3251
  }
3246
3252
  $(q, p1), q.prototype.h = function(d, t) {
3247
- return d.h == 8 ? !!t : s1.prototype.h.apply(this, arguments);
3253
+ return d.h == 8 ? !!t : r1.prototype.h.apply(this, arguments);
3248
3254
  }, q.prototype.g = function(d, t) {
3249
3255
  return q.ma.g.call(this, d, t);
3250
3256
  };
@@ -3254,7 +3260,7 @@ const n2 = (f) => {
3254
3260
  A.prototype.h = "", A.prototype.set = function(d) {
3255
3261
  this.h = "" + d;
3256
3262
  }, A.prototype.g = function(d, t, n) {
3257
- if (this.h += String(d), t != null) for (let r = 1; r < arguments.length; r++) this.h += arguments[r];
3263
+ if (this.h += String(d), t != null) for (let s = 1; s < arguments.length; s++) this.h += arguments[s];
3258
3264
  return this;
3259
3265
  };
3260
3266
  function R(d) {
@@ -8693,7 +8699,7 @@ const n2 = (f) => {
8693
8699
  M.h = void 0, M.g = function() {
8694
8700
  return M.h ? M.h : M.h = new M();
8695
8701
  };
8696
- 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" }, C0 = {
8702
+ 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" }, m0 = {
8697
8703
  0: "0",
8698
8704
  1: "1",
8699
8705
  2: "2",
@@ -8707,7 +8713,7 @@ const n2 = (f) => {
8707
8713
  "+": "+",
8708
8714
  "*": "*",
8709
8715
  "#": "#"
8710
- }, m0 = {
8716
+ }, C0 = {
8711
8717
  0: "0",
8712
8718
  1: "1",
8713
8719
  2: "2",
@@ -8786,7 +8792,7 @@ const n2 = (f) => {
8786
8792
  return 2 > d.length ? !1 : U(L0, d);
8787
8793
  }
8788
8794
  function R1(d) {
8789
- return U(w0, d) ? r1(d, m0) : r1(d, g1);
8795
+ return U(w0, d) ? s1(d, C0) : s1(d, g1);
8790
8796
  }
8791
8797
  function k1(d) {
8792
8798
  var t = R1(d.toString());
@@ -8795,8 +8801,8 @@ const n2 = (f) => {
8795
8801
  function O1(d) {
8796
8802
  return d != null && (K(d, 9) != 1 || D(d, 9)[0] != -1);
8797
8803
  }
8798
- function r1(d, t) {
8799
- for (var n = new A(), r, o = d.length, l = 0; l < o; ++l) r = d.charAt(l), r = t[r.toUpperCase()], r != null && n.g(r);
8804
+ function s1(d, t) {
8805
+ for (var n = new A(), s, o = d.length, l = 0; l < o; ++l) s = d.charAt(l), s = t[s.toUpperCase()], s != null && n.g(s);
8800
8806
  return n.toString();
8801
8807
  }
8802
8808
  function G1(d) {
@@ -8806,86 +8812,86 @@ const n2 = (f) => {
8806
8812
  return d != null && isNaN(d) && d.toUpperCase() in M1;
8807
8813
  }
8808
8814
  M.prototype.format = function(d, t) {
8809
- if (C(d, 2) == 0 && B(d, 5)) {
8815
+ if (m(d, 2) == 0 && B(d, 5)) {
8810
8816
  var n = S(d, 5);
8811
8817
  if (0 < n.length) return n;
8812
8818
  }
8813
8819
  n = S(d, 1);
8814
- var r = t1(d);
8815
- if (t == 0) return U1(n, 0, r, "");
8816
- if (!(n in X)) return r;
8820
+ var s = t1(d);
8821
+ if (t == 0) return U1(n, 0, s, "");
8822
+ if (!(n in X)) return s;
8817
8823
  var o = d1(this, n, e1(n));
8818
- d = B(d, 3) && C(d, 3).length != 0 ? t == 3 ? ";ext=" + C(d, 3) : B(o, 13) ? C(o, 13) + S(d, 3) : " ext. " + S(d, 3) : "";
8824
+ d = B(d, 3) && m(d, 3).length != 0 ? t == 3 ? ";ext=" + m(d, 3) : B(o, 13) ? m(o, 13) + S(d, 3) : " ext. " + S(d, 3) : "";
8819
8825
  d: {
8820
8826
  o = D(o, 20).length == 0 || t == 2 ? D(o, 19) : D(o, 20);
8821
8827
  for (var l, a = o.length, p = 0; p < a; ++p) {
8822
8828
  l = o[p];
8823
8829
  var _ = K(l, 3);
8824
- if ((_ == 0 || r.search(C(l, 3, _ - 1)) == 0) && (_ = new RegExp(C(l, 1)), U(_, r))) {
8830
+ if ((_ == 0 || s.search(m(l, 3, _ - 1)) == 0) && (_ = new RegExp(m(l, 1)), U(_, s))) {
8825
8831
  o = l;
8826
8832
  break d;
8827
8833
  }
8828
8834
  }
8829
8835
  o = null;
8830
8836
  }
8831
- return o != null && (a = o, o = S(a, 2), l = new RegExp(C(a, 1)), S(
8837
+ return o != null && (a = o, o = S(a, 2), l = new RegExp(m(a, 1)), S(
8832
8838
  a,
8833
8839
  5
8834
- ), a = S(a, 4), r = t == 2 && a != null && 0 < a.length ? r.replace(l, o.replace(N0, a)) : r.replace(l, o), t == 3 && (r = r.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"), ""), r = r.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), U1(n, t, r, d);
8840
+ ), a = S(a, 4), s = t == 2 && a != null && 0 < a.length ? s.replace(l, o.replace(N0, a)) : s.replace(l, o), t == 3 && (s = s.replace(RegExp("^[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+"), ""), s = s.replace(RegExp("[-x‐-―−ー--/  ­​⁠ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), U1(n, t, s, d);
8835
8841
  };
8836
8842
  function d1(d, t, n) {
8837
8843
  return n == "001" ? H(d, "" + t) : H(d, n);
8838
8844
  }
8839
8845
  function t1(d) {
8840
8846
  if (!B(d, 2)) return "";
8841
- var t = "" + C(d, 2);
8842
- return B(d, 4) && C(d, 4) && 0 < S(d, 8) ? Array(S(d, 8) + 1).join("0") + t : t;
8847
+ var t = "" + m(d, 2);
8848
+ return B(d, 4) && m(d, 4) && 0 < S(d, 8) ? Array(S(d, 8) + 1).join("0") + t : t;
8843
8849
  }
8844
- function U1(d, t, n, r) {
8850
+ function U1(d, t, n, s) {
8845
8851
  switch (t) {
8846
8852
  case 0:
8847
- return "+" + d + n + r;
8853
+ return "+" + d + n + s;
8848
8854
  case 1:
8849
- return "+" + d + " " + n + r;
8855
+ return "+" + d + " " + n + s;
8850
8856
  case 3:
8851
- return "tel:+" + d + "-" + n + r;
8857
+ return "tel:+" + d + "-" + n + s;
8852
8858
  default:
8853
- return n + r;
8859
+ return n + s;
8854
8860
  }
8855
8861
  }
8856
8862
  function l1(d, t) {
8857
8863
  switch (t) {
8858
8864
  case 4:
8859
- return C(d, 5);
8865
+ return m(d, 5);
8860
8866
  case 3:
8861
- return C(d, 4);
8867
+ return m(d, 4);
8862
8868
  case 1:
8863
- return C(d, 3);
8869
+ return m(d, 3);
8864
8870
  case 0:
8865
8871
  case 2:
8866
- return C(d, 2);
8872
+ return m(d, 2);
8867
8873
  case 5:
8868
- return C(d, 6);
8874
+ return m(d, 6);
8869
8875
  case 6:
8870
- return C(d, 8);
8876
+ return m(d, 8);
8871
8877
  case 7:
8872
- return C(d, 7);
8878
+ return m(d, 7);
8873
8879
  case 8:
8874
- return C(d, 21);
8880
+ return m(d, 21);
8875
8881
  case 9:
8876
- return C(d, 25);
8882
+ return m(d, 25);
8877
8883
  case 10:
8878
- return C(d, 28);
8884
+ return m(d, 28);
8879
8885
  default:
8880
- return C(d, 1);
8886
+ return m(d, 1);
8881
8887
  }
8882
8888
  }
8883
8889
  function F1(d, t) {
8884
8890
  var n = K1(d, t);
8885
- return d = d1(d, S(t, 1), n), d == null ? -1 : (t = t1(t), C1(t, d));
8891
+ return d = d1(d, S(t, 1), n), d == null ? -1 : (t = t1(t), m1(t, d));
8886
8892
  }
8887
- function C1(d, t) {
8888
- return O(d, C(t, 1)) ? O(d, C(t, 5)) ? 4 : O(d, C(t, 4)) ? 3 : O(d, C(t, 6)) ? 5 : O(d, C(t, 8)) ? 6 : O(d, C(t, 7)) ? 7 : O(d, C(t, 21)) ? 8 : O(d, C(t, 25)) ? 9 : O(d, C(t, 28)) ? 10 : O(d, C(t, 2)) ? C(t, 18) || O(d, C(t, 3)) ? 2 : 0 : !C(t, 18) && O(d, C(t, 3)) ? 1 : -1 : -1;
8893
+ function m1(d, t) {
8894
+ return O(d, m(t, 1)) ? O(d, m(t, 5)) ? 4 : O(d, m(t, 4)) ? 3 : O(d, m(t, 6)) ? 5 : O(d, m(t, 8)) ? 6 : O(d, m(t, 7)) ? 7 : O(d, m(t, 21)) ? 8 : O(d, m(t, 25)) ? 9 : O(d, m(t, 28)) ? 10 : O(d, m(t, 2)) ? m(t, 18) || O(d, m(t, 3)) ? 2 : 0 : !m(t, 18) && O(d, m(t, 3)) ? 1 : -1 : -1;
8889
8895
  }
8890
8896
  function H(d, t) {
8891
8897
  if (t == null) return null;
@@ -8902,8 +8908,8 @@ const n2 = (f) => {
8902
8908
  return 0 < K(t, 9) && D(t, 9).indexOf(n) == -1 ? !1 : U(S(t, 2), d);
8903
8909
  }
8904
8910
  function E0(d, t) {
8905
- var n = K1(d, t), r = S(t, 1), o = d1(d, r, n);
8906
- return o == null || n != "001" && r != V1(d, n) ? o = !1 : (d = t1(t), o = C1(d, o) != -1), o;
8911
+ var n = K1(d, t), s = S(t, 1), o = d1(d, s, n);
8912
+ return o == null || n != "001" && s != V1(d, n) ? o = !1 : (d = t1(t), o = m1(d, o) != -1), o;
8907
8913
  }
8908
8914
  function K1(d, t) {
8909
8915
  if (t == null) return null;
@@ -8912,16 +8918,16 @@ const n2 = (f) => {
8912
8918
  else if (n.length == 1) d = n[0];
8913
8919
  else d: {
8914
8920
  t = t1(t);
8915
- for (var r, o = n.length, l = 0; l < o; l++) {
8916
- r = n[l];
8917
- var a = H(d, r);
8921
+ for (var s, o = n.length, l = 0; l < o; l++) {
8922
+ s = n[l];
8923
+ var a = H(d, s);
8918
8924
  if (B(a, 23)) {
8919
- if (t.search(C(a, 23)) == 0) {
8920
- d = r;
8925
+ if (t.search(m(a, 23)) == 0) {
8926
+ d = s;
8921
8927
  break d;
8922
8928
  }
8923
- } else if (C1(t, a) != -1) {
8924
- d = r;
8929
+ } else if (m1(t, a) != -1) {
8930
+ d = s;
8925
8931
  break d;
8926
8932
  }
8927
8933
  }
@@ -8936,26 +8942,26 @@ const n2 = (f) => {
8936
8942
  if (d = H(d, t), d == null) throw Error("Invalid region code: " + t);
8937
8943
  return S(d, 10);
8938
8944
  }
8939
- function u1(d, t, n, r) {
8940
- var o = l1(n, r), l = K(o, 9) == 0 ? D(C(n, 1), 9) : D(o, 9);
8941
- if (o = D(o, 10), r == 2) if (O1(l1(n, 0))) d = l1(n, 1), O1(d) && (l = l.concat(K(d, 9) == 0 ? D(C(n, 1), 9) : D(d, 9)), l.sort(), o.length == 0 ? o = D(d, 10) : (o = o.concat(D(d, 10)), o.sort()));
8945
+ function u1(d, t, n, s) {
8946
+ var o = l1(n, s), l = K(o, 9) == 0 ? D(m(n, 1), 9) : D(o, 9);
8947
+ if (o = D(o, 10), s == 2) if (O1(l1(n, 0))) d = l1(n, 1), O1(d) && (l = l.concat(K(d, 9) == 0 ? D(m(n, 1), 9) : D(d, 9)), l.sort(), o.length == 0 ? o = D(d, 10) : (o = o.concat(D(d, 10)), o.sort()));
8942
8948
  else return u1(d, t, n, 1);
8943
8949
  return l[0] == -1 ? 5 : (t = t.length, -1 < o.indexOf(t) ? 4 : (n = l[0], n == t ? 0 : n > t ? 2 : l[l.length - 1] < t ? 3 : -1 < l.indexOf(t, 1) ? 0 : 5));
8944
8950
  }
8945
8951
  function a1(d, t, n) {
8946
- var r = t1(t);
8947
- return t = S(t, 1), t in X ? (t = d1(d, t, e1(t)), u1(d, r, t, n)) : 1;
8952
+ var s = t1(t);
8953
+ return t = S(t, 1), t in X ? (t = d1(d, t, e1(t)), u1(d, s, t, n)) : 1;
8948
8954
  }
8949
8955
  function H1(d, t) {
8950
8956
  if (d = d.toString(), d.length == 0 || d.charAt(0) == "0") return 0;
8951
- for (var n, r = d.length, o = 1; 3 >= o && o <= r; ++o) if (n = parseInt(d.substring(0, o), 10), n in X) return t.g(d.substring(o)), n;
8957
+ for (var n, s = d.length, o = 1; 3 >= o && o <= s; ++o) if (n = parseInt(d.substring(0, o), 10), n in X) return t.g(d.substring(o)), n;
8952
8958
  return 0;
8953
8959
  }
8954
- function j1(d, t, n, r, o, l) {
8960
+ function j1(d, t, n, s, o, l) {
8955
8961
  if (t.length == 0) return 0;
8956
8962
  t = new A(t);
8957
8963
  var a;
8958
- n != null && (a = C(n, 11)), a == null && (a = "NonMatch");
8964
+ n != null && (a = m(n, 11)), a == null && (a = "NonMatch");
8959
8965
  var p = t.toString();
8960
8966
  if (p.length == 0) a = 20;
8961
8967
  else if (Q.test(p)) p = p.replace(Q, ""), R(t), t.g(R1(p)), a = 1;
@@ -8963,25 +8969,25 @@ const n2 = (f) => {
8963
8969
  if (p = new RegExp(a), k1(t), a = t.toString(), a.search(p) == 0) {
8964
8970
  p = a.match(p)[0].length;
8965
8971
  var _ = a.substring(p).match(D1);
8966
- _ && _[1] != null && 0 < _[1].length && r1(_[1], g1) == "0" ? a = !1 : (R(t), t.g(a.substring(p)), a = !0);
8972
+ _ && _[1] != null && 0 < _[1].length && s1(_[1], g1) == "0" ? a = !1 : (R(t), t.g(a.substring(p)), a = !0);
8967
8973
  } else a = !1;
8968
8974
  a = a ? 5 : 20;
8969
8975
  }
8970
8976
  if (o && T(l, 6, a), a != 20) {
8971
8977
  if (2 >= t.h.length) throw Error("Phone number too short after IDD");
8972
- if (d = H1(t, r), d != 0) return T(l, 1, d), d;
8978
+ if (d = H1(t, s), d != 0) return T(l, 1, d), d;
8973
8979
  throw Error("Invalid country calling code");
8974
8980
  }
8975
- return n != null && (a = S(n, 10), p = "" + a, _ = t.toString(), _.lastIndexOf(p, 0) == 0 && (p = new A(_.substring(p.length)), _ = C(n, 1), _ = new RegExp(S(_, 2)), W1(p, n, null), p = p.toString(), !U(_, t.toString()) && U(_, p) || u1(d, t.toString(), n, -1) == 3)) ? (r.g(p), o && T(l, 6, 10), T(l, 1, a), a) : (T(l, 1, 0), 0);
8981
+ return n != null && (a = S(n, 10), p = "" + a, _ = t.toString(), _.lastIndexOf(p, 0) == 0 && (p = new A(_.substring(p.length)), _ = m(n, 1), _ = new RegExp(S(_, 2)), W1(p, n, null), p = p.toString(), !U(_, t.toString()) && U(_, p) || u1(d, t.toString(), n, -1) == 3)) ? (s.g(p), o && T(l, 6, 10), T(l, 1, a), a) : (T(l, 1, 0), 0);
8976
8982
  }
8977
8983
  function W1(d, t, n) {
8978
- var r = d.toString(), o = r.length, l = C(t, 15);
8984
+ var s = d.toString(), o = s.length, l = m(t, 15);
8979
8985
  if (o != 0 && l != null && l.length != 0) {
8980
8986
  var a = new RegExp("^(?:" + l + ")");
8981
- if (o = a.exec(r)) {
8982
- l = new RegExp(S(C(t, 1), 2));
8983
- var p = U(l, r), _ = o.length - 1;
8984
- t = C(t, 16), t == null || t.length == 0 || o[_] == null || o[_].length == 0 ? (!p || U(l, r.substring(o[0].length))) && (n != null && 0 < _ && o[_] != null && n.g(o[1]), d.set(r.substring(o[0].length))) : (r = r.replace(a, t), (!p || U(l, r)) && (n != null && 0 < _ && n.g(o[1]), d.set(r)));
8987
+ if (o = a.exec(s)) {
8988
+ l = new RegExp(S(m(t, 1), 2));
8989
+ var p = U(l, s), _ = o.length - 1;
8990
+ t = m(t, 16), t == null || t.length == 0 || o[_] == null || o[_].length == 0 ? (!p || U(l, s.substring(o[0].length))) && (n != null && 0 < _ && o[_] != null && n.g(o[1]), d.set(s.substring(o[0].length))) : (s = s.replace(a, t), (!p || U(l, s)) && (n != null && 0 < _ && n.g(o[1]), d.set(s)));
8985
8991
  }
8986
8992
  }
8987
8993
  }
@@ -8989,7 +8995,7 @@ const n2 = (f) => {
8989
8995
  if (!o1(n) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
8990
8996
  return z1(d, t, n, !0);
8991
8997
  }
8992
- function z1(d, t, n, r) {
8998
+ function z1(d, t, n, s) {
8993
8999
  if (t == null) throw Error("The string supplied did not seem to be a phone number");
8994
9000
  if (250 < t.length) throw Error("The string supplied is too long to be a phone number");
8995
9001
  var o = new A(), l = t.indexOf(";phone-context=");
@@ -9002,7 +9008,7 @@ const n2 = (f) => {
9002
9008
  var p = l;
9003
9009
  if (p == null ? a = !0 : p.length === 0 ? a = !1 : (a = S0.exec(p), p = b0.exec(p), a = a !== null || p !== null), !a || (l != null ? (l.charAt(0) === "+" && o.g(l), l = t.indexOf("tel:"), o.g(t.substring(0 <= l ? l + 4 : 0, t.indexOf(";phone-context=")))) : (l = o.g, a = t ?? "", p = a.search(_0), 0 <= p ? (a = a.substring(p), a = a.replace(v0, ""), p = a.search(I0), 0 <= p && (a = a.substring(0, p))) : a = "", l.call(o, a)), l = o.toString(), a = l.indexOf(";isub="), 0 < a && (R(o), o.g(l.substring(0, a))), !B1(o.toString()))) throw Error("The string supplied did not seem to be a phone number");
9004
9010
  if (l = o.toString(), !(o1(n) || l != null && 0 < l.length && Q.test(l))) throw Error("Invalid country calling code");
9005
- l = new V(), r && T(l, 5, t);
9011
+ l = new V(), s && T(l, 5, t);
9006
9012
  d: {
9007
9013
  if (t = o.toString(), a = t.search(x1), 0 <= a && B1(t.substring(0, a))) {
9008
9014
  p = t.match(x1);
@@ -9015,23 +9021,23 @@ const n2 = (f) => {
9015
9021
  }
9016
9022
  0 < t.length && T(l, 3, t), a = H(d, n), t = new A(), p = 0, _ = o.toString();
9017
9023
  try {
9018
- p = j1(d, _, a, t, r, l);
9024
+ p = j1(d, _, a, t, s, l);
9019
9025
  } catch (_1) {
9020
9026
  if (_1.message == "Invalid country calling code" && Q.test(_)) {
9021
- if (_ = _.replace(Q, ""), p = j1(d, _, a, t, r, l), p == 0) throw _1;
9027
+ if (_ = _.replace(Q, ""), p = j1(d, _, a, t, s, l), p == 0) throw _1;
9022
9028
  } else throw _1;
9023
9029
  }
9024
9030
  if (p != 0 ? (o = e1(p), o != n && (a = d1(d, p, o))) : (k1(o), t.g(o.toString()), n != null ? (p = S(a, 10), T(
9025
9031
  l,
9026
9032
  1,
9027
9033
  p
9028
- )) : r && (delete l.h[6], l.g && delete l.g[6])), 2 > t.h.length || (a != null && (n = new A(), o = new A(t.toString()), W1(o, a, n), d = u1(d, o.toString(), a, -1), d != 2 && d != 4 && d != 5 && (t = o, r && 0 < n.toString().length && T(l, 7, n.toString()))), r = t.toString(), d = r.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
9034
+ )) : s && (delete l.h[6], l.g && delete l.g[6])), 2 > t.h.length || (a != null && (n = new A(), o = new A(t.toString()), W1(o, a, n), d = u1(d, o.toString(), a, -1), d != 2 && d != 4 && d != 5 && (t = o, s && 0 < n.toString().length && T(l, 7, n.toString()))), s = t.toString(), d = s.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
9029
9035
  if (17 < d) throw Error("The string supplied is too long to be a phone number");
9030
- if (1 < r.length && r.charAt(0) == "0") {
9031
- for (T(l, 4, !0), d = 1; d < r.length - 1 && r.charAt(d) == "0"; ) d++;
9036
+ if (1 < s.length && s.charAt(0) == "0") {
9037
+ for (T(l, 4, !0), d = 1; d < s.length - 1 && s.charAt(d) == "0"; ) d++;
9032
9038
  d != 1 && T(l, 8, d);
9033
9039
  }
9034
- return T(l, 2, parseInt(r, 10)), l;
9040
+ return T(l, 2, parseInt(s, 10)), l;
9035
9041
  }
9036
9042
  function U(d, t) {
9037
9043
  return !!((d = t.match(new RegExp("^(?:" + (typeof d == "string" ? d : d.source) + ")$", "i"))) && d[0].length == t.length);
@@ -9048,21 +9054,21 @@ const n2 = (f) => {
9048
9054
  }
9049
9055
  function q1(d) {
9050
9056
  for (var t = d.j.length, n = 0; n < t; ++n) {
9051
- var r = d.j[n], o = S(r, 1);
9057
+ var s = d.j[n], o = S(s, 1);
9052
9058
  if (d.da == o) return !1;
9053
- var l = d, a = r, p = S(a, 1);
9059
+ var l = d, a = s, p = S(a, 1);
9054
9060
  R(l.v);
9055
9061
  var _ = l;
9056
9062
  a = S(a, 2);
9057
9063
  var F = "999999999999999".match(p)[0];
9058
- if (F.length < _.g.h.length ? _ = "" : (_ = F.replace(new RegExp(p, "g"), a), _ = _.replace(RegExp("9", "g"), " ")), 0 < _.length ? (l.v.g(_), l = !0) : l = !1, l) return d.da = o, d.ha = Y1.test(C(r, 4)), d.$ = 0, !0;
9064
+ if (F.length < _.g.h.length ? _ = "" : (_ = F.replace(new RegExp(p, "g"), a), _ = _.replace(RegExp("9", "g"), " ")), 0 < _.length ? (l.v.g(_), l = !0) : l = !1, l) return d.da = o, d.ha = Y1.test(m(s, 4)), d.$ = 0, !0;
9059
9065
  }
9060
9066
  return d.u = !1;
9061
9067
  }
9062
9068
  function X1(d, t) {
9063
- for (var n = [], r = t.length - 3, o = d.j.length, l = 0; l < o; ++l) {
9069
+ for (var n = [], s = t.length - 3, o = d.j.length, l = 0; l < o; ++l) {
9064
9070
  var a = d.j[l];
9065
- K(a, 3) == 0 ? n.push(d.j[l]) : (a = C(a, 3, Math.min(r, K(a, 3) - 1)), t.search(a) == 0 && n.push(d.j[l]));
9071
+ K(a, 3) == 0 ? n.push(d.j[l]) : (a = m(a, 3, Math.min(s, K(a, 3) - 1)), t.search(a) == 0 && n.push(d.j[l]));
9066
9072
  }
9067
9073
  d.j = n;
9068
9074
  }
@@ -9084,18 +9090,18 @@ const n2 = (f) => {
9084
9090
  return d.s.toString();
9085
9091
  case 3:
9086
9092
  if ($0(d)) d.ea = !0;
9087
- else return d.o = e0(d), m1(d);
9093
+ else return d.o = e0(d), C1(d);
9088
9094
  default:
9089
- return d.ea ? (n0(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = i0(d, t), n = d0(d), 0 < n.length ? n : (X1(d, d.g.toString()), q1(d) ? t0(d) : d.u ? h1(d, t) : d.s.toString())) : m1(d);
9095
+ return d.ea ? (n0(d) && (d.ea = !1), d.h.toString() + d.g.toString()) : 0 < d.j.length ? (t = i0(d, t), n = d0(d), 0 < n.length ? n : (X1(d, d.g.toString()), q1(d) ? t0(d) : d.u ? h1(d, t) : d.s.toString())) : C1(d);
9090
9096
  }
9091
9097
  }
9092
9098
  function Q1(d) {
9093
- return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, R(d.v), d.da = "", m1(d);
9099
+ return d.u = !0, d.ea = !1, d.j = [], d.$ = 0, R(d.v), d.da = "", C1(d);
9094
9100
  }
9095
9101
  function d0(d) {
9096
- for (var t = d.g.toString(), n = d.j.length, r = 0; r < n; ++r) {
9097
- var o = d.j[r], l = S(o, 1);
9098
- if (new RegExp("^(?:" + l + ")$").test(t) && (d.ha = Y1.test(C(o, 4)), o = t.replace(new RegExp(l, "g"), C(o, 2)), o = h1(d, o), r1(o, C0) == d.ba)) return o;
9102
+ for (var t = d.g.toString(), n = d.j.length, s = 0; s < n; ++s) {
9103
+ var o = d.j[s], l = S(o, 1);
9104
+ if (new RegExp("^(?:" + l + ")$").test(t) && (d.ha = Y1.test(m(o, 4)), o = t.replace(new RegExp(l, "g"), m(o, 2)), o = h1(d, o), s1(o, m0) == d.ba)) return o;
9099
9105
  }
9100
9106
  return "";
9101
9107
  }
@@ -9103,12 +9109,12 @@ const n2 = (f) => {
9103
9109
  var n = d.h.h.length;
9104
9110
  return d.ha && 0 < n && d.h.toString().charAt(n - 1) != " " ? d.h + " " + t : d.h + t;
9105
9111
  }
9106
- function m1(d) {
9112
+ function C1(d) {
9107
9113
  var t = d.g.toString();
9108
9114
  if (3 <= t.length) {
9109
- for (var n = d.ca && d.o.length == 0 && 0 < K(d.l, 20) ? D(d.l, 20) : D(d.l, 19), r = n.length, o = 0; o < r; ++o) {
9115
+ for (var n = d.ca && d.o.length == 0 && 0 < K(d.l, 20) ? D(d.l, 20) : D(d.l, 19), s = n.length, o = 0; o < s; ++o) {
9110
9116
  var l = n[o];
9111
- 0 < d.o.length && G1(S(l, 4)) && !C(l, 6) && !B(l, 5) || (d.o.length != 0 || d.ca || G1(S(l, 4)) || C(l, 6)) && M0.test(S(l, 2)) && d.j.push(l);
9117
+ 0 < d.o.length && G1(S(l, 4)) && !m(l, 6) && !B(l, 5) || (d.o.length != 0 || d.ca || G1(S(l, 4)) || m(l, 6)) && M0.test(S(l, 2)) && d.j.push(l);
9112
9118
  }
9113
9119
  return X1(d, t), t = d0(d), 0 < t.length ? t : q1(d) ? t0(d) : d.s.toString();
9114
9120
  }
@@ -9117,19 +9123,19 @@ const n2 = (f) => {
9117
9123
  function t0(d) {
9118
9124
  var t = d.g.toString(), n = t.length;
9119
9125
  if (0 < n) {
9120
- for (var r = "", o = 0; o < n; o++) r = i0(d, t.charAt(o));
9121
- return d.u ? h1(d, r) : d.s.toString();
9126
+ for (var s = "", o = 0; o < n; o++) s = i0(d, t.charAt(o));
9127
+ return d.u ? h1(d, s) : d.s.toString();
9122
9128
  }
9123
9129
  return d.h.toString();
9124
9130
  }
9125
9131
  function e0(d) {
9126
9132
  var t = d.g.toString(), n = 0;
9127
- if (C(d.l, 10) != 1) var r = !1;
9128
- else r = d.g.toString(), r = r.charAt(0) == "1" && r.charAt(1) != "0" && r.charAt(1) != "1";
9129
- return r ? (n = 1, d.h.g("1").g(" "), d.ca = !0) : B(d.l, 15) && (r = new RegExp("^(?:" + C(d.l, 15) + ")"), r = t.match(r), r != null && r[0] != null && 0 < r[0].length && (d.ca = !0, n = r[0].length, d.h.g(t.substring(0, n)))), R(d.g), d.g.g(t.substring(n)), t.substring(0, n);
9133
+ if (m(d.l, 10) != 1) var s = !1;
9134
+ else s = d.g.toString(), s = s.charAt(0) == "1" && s.charAt(1) != "0" && s.charAt(1) != "1";
9135
+ return s ? (n = 1, d.h.g("1").g(" "), d.ca = !0) : B(d.l, 15) && (s = new RegExp("^(?:" + m(d.l, 15) + ")"), s = t.match(s), s != null && s[0] != null && 0 < s[0].length && (d.ca = !0, n = s[0].length, d.h.g(t.substring(0, n)))), R(d.g), d.g.g(t.substring(n)), t.substring(0, n);
9130
9136
  }
9131
9137
  function $0(d) {
9132
- var t = d.ba.toString(), n = new RegExp("^(?:\\+|" + C(d.l, 11) + ")");
9138
+ var t = d.ba.toString(), n = new RegExp("^(?:\\+|" + m(d.l, 11) + ")");
9133
9139
  return n = t.match(n), n != null && n[0] != null && 0 < n[0].length ? (d.ca = !0, n = n[0].length, R(d.g), d.g.g(t.substring(n)), R(d.h), d.h.g(t.substring(0, n)), t.charAt(0) != "+" && d.h.g(" "), !0) : !1;
9134
9140
  }
9135
9141
  function n0(d) {
@@ -9140,20 +9146,20 @@ const n2 = (f) => {
9140
9146
  function i0(d, t) {
9141
9147
  var n = d.v.toString();
9142
9148
  if (0 <= n.substring(d.$).search(d.fa)) {
9143
- var r = n.search(d.fa);
9144
- return t = n.replace(d.fa, t), R(d.v), d.v.g(t), d.$ = r, t.substring(0, d.$ + 1);
9149
+ var s = n.search(d.fa);
9150
+ return t = n.replace(d.fa, t), R(d.v), d.v.g(t), d.$ = s, t.substring(0, d.$ + 1);
9145
9151
  }
9146
9152
  return d.j.length == 1 && (d.u = !1), d.da = "", d.s.toString();
9147
9153
  }
9148
- const s0 = (d) => {
9154
+ const r0 = (d) => {
9149
9155
  const t = [];
9150
9156
  return d.includes("FIXED_LINE_OR_MOBILE") ? (d.includes("MOBILE") || t.push("MOBILE"), d.includes("FIXED_LINE") || t.push("FIXED_LINE")) : (d.includes("MOBILE") || d.includes("FIXED_LINE")) && t.push("FIXED_LINE_OR_MOBILE"), d.concat(t);
9151
9157
  }, y1 = { 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 };
9152
9158
  e("intlTelInputUtilsTemp", {}), e("intlTelInputUtilsTemp.formatNumberAsYouType", (d, t) => {
9153
9159
  try {
9154
- const n = d.replace(/[^+0-9]/g, ""), r = new T0(t);
9160
+ const n = d.replace(/[^+0-9]/g, ""), s = new T0(t);
9155
9161
  t = "";
9156
- for (let o = 0; o < n.length; o++) r.ja = D0(r, n.charAt(o)), t = r.ja;
9162
+ for (let o = 0; o < n.length; o++) s.ja = D0(s, n.charAt(o)), t = s.ja;
9157
9163
  return t;
9158
9164
  } catch {
9159
9165
  return d;
@@ -9161,12 +9167,12 @@ const n2 = (f) => {
9161
9167
  }), e("intlTelInputUtilsTemp.formatNumber", (d, t, n) => {
9162
9168
  try {
9163
9169
  const o = M.g(), l = Z(o, d, t);
9164
- var r = a1(o, l, -1);
9165
- return r == 0 || r == 4 ? o.format(l, typeof n > "u" ? 0 : n) : d;
9170
+ var s = a1(o, l, -1);
9171
+ return s == 0 || s == 4 ? o.format(l, typeof n > "u" ? 0 : n) : d;
9166
9172
  } catch {
9167
9173
  return d;
9168
9174
  }
9169
- }), e("intlTelInputUtilsTemp.getExampleNumber", (d, t, n, r) => {
9175
+ }), e("intlTelInputUtilsTemp.getExampleNumber", (d, t, n, s) => {
9170
9176
  try {
9171
9177
  const _ = M.g();
9172
9178
  d: {
@@ -9175,7 +9181,7 @@ const n2 = (f) => {
9175
9181
  var l = l1(H(o, d), n);
9176
9182
  try {
9177
9183
  if (B(l, 6)) {
9178
- var a = C(l, 6), p = z1(o, a, d, !1);
9184
+ var a = m(l, 6), p = z1(o, a, d, !1);
9179
9185
  break d;
9180
9186
  }
9181
9187
  } catch {
@@ -9183,37 +9189,37 @@ const n2 = (f) => {
9183
9189
  }
9184
9190
  p = null;
9185
9191
  }
9186
- return _.format(p, r ? 0 : t ? 2 : 1);
9192
+ return _.format(p, s ? 0 : t ? 2 : 1);
9187
9193
  } catch {
9188
9194
  return "";
9189
9195
  }
9190
9196
  }), e("intlTelInputUtilsTemp.getExtension", (d, t) => {
9191
9197
  try {
9192
- return C(Z(M.g(), d, t), 3);
9198
+ return m(Z(M.g(), d, t), 3);
9193
9199
  } catch {
9194
9200
  return "";
9195
9201
  }
9196
9202
  }), e("intlTelInputUtilsTemp.getNumberType", (d, t) => {
9197
9203
  try {
9198
- const n = M.g(), r = Z(n, d, t);
9199
- return F1(n, r);
9204
+ const n = M.g(), s = Z(n, d, t);
9205
+ return F1(n, s);
9200
9206
  } catch {
9201
9207
  return -99;
9202
9208
  }
9203
9209
  }), e("intlTelInputUtilsTemp.getValidationError", (d, t) => {
9204
9210
  if (!t) return 1;
9205
9211
  try {
9206
- const n = M.g(), r = Z(n, d, t);
9207
- return a1(n, r, -1);
9212
+ const n = M.g(), s = Z(n, d, t);
9213
+ return a1(n, s, -1);
9208
9214
  } catch (n) {
9209
9215
  return n.message === "Invalid country calling code" ? 1 : 3 >= d.length || n.message === "Phone number too short after IDD" || n.message === "The string supplied is too short to be a phone number" ? 2 : n.message === "The string supplied is too long to be a phone number" ? 3 : -99;
9210
9216
  }
9211
9217
  }), e("intlTelInputUtilsTemp.isValidNumber", (d, t, n) => {
9212
9218
  try {
9213
- const r = M.g(), o = Z(r, d, t), l = E0(r, o);
9219
+ const s = M.g(), o = Z(s, d, t), l = E0(s, o);
9214
9220
  if (n) {
9215
- const a = s0(n).map((p) => y1[p]);
9216
- return l && a.includes(F1(r, o));
9221
+ const a = r0(n).map((p) => y1[p]);
9222
+ return l && a.includes(F1(s, o));
9217
9223
  }
9218
9224
  return l;
9219
9225
  } catch {
@@ -9221,19 +9227,19 @@ const n2 = (f) => {
9221
9227
  }
9222
9228
  }), e("intlTelInputUtilsTemp.isPossibleNumber", (d, t, n) => {
9223
9229
  try {
9224
- const r = M.g(), o = Z(r, d, t);
9230
+ const s = M.g(), o = Z(s, d, t);
9225
9231
  if (n) {
9226
- const l = s0(n);
9227
- for (let a of l) if (a1(r, o, y1[a]) === 0) return !0;
9232
+ const l = r0(n);
9233
+ for (let a of l) if (a1(s, o, y1[a]) === 0) return !0;
9228
9234
  return !1;
9229
9235
  }
9230
- return a1(r, o, -1) === 0;
9236
+ return a1(s, o, -1) === 0;
9231
9237
  } catch {
9232
9238
  return !1;
9233
9239
  }
9234
9240
  }), e("intlTelInputUtilsTemp.getCoreNumber", (d, t) => {
9235
9241
  try {
9236
- return C(Z(M.g(), d, t), 2).toString();
9242
+ return m(Z(M.g(), d, t), 2).toString();
9237
9243
  } catch {
9238
9244
  return "";
9239
9245
  }
@@ -9242,9 +9248,9 @@ const n2 = (f) => {
9242
9248
  const h0 = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : void 0, i2 = h0.intlTelInputUtilsTemp;
9243
9249
  delete h0.intlTelInputUtilsTemp;
9244
9250
  y.utils = i2;
9245
- const r2 = {
9251
+ const s2 = {
9246
9252
  __name: "IntlTelInputWithUtils",
9247
- props: /* @__PURE__ */ r0({
9253
+ props: /* @__PURE__ */ s0({
9248
9254
  disabled: {
9249
9255
  type: Boolean,
9250
9256
  default: !1
@@ -9268,16 +9274,16 @@ const r2 = {
9268
9274
  },
9269
9275
  modelModifiers: {}
9270
9276
  }),
9271
- emits: /* @__PURE__ */ r0([
9277
+ emits: /* @__PURE__ */ s0([
9272
9278
  "changeNumber",
9273
9279
  "changeCountry",
9274
9280
  "changeValidity",
9275
9281
  "changeErrorCode"
9276
9282
  ], ["update:modelValue"]),
9277
9283
  setup(f, { expose: e, emit: $ }) {
9278
- const i = P0(f, "modelValue"), s = f, u = $, h = I1(), c = I1(), m = I1(!1), g = () => c.value ? s.options.strictMode ? c.value.isValidNumberPrecise() : c.value.isValidNumber() : null, I = () => {
9284
+ const i = P0(f, "modelValue"), r = f, u = $, h = I1(), c = I1(), C = I1(!1), g = () => c.value ? r.options.strictMode ? c.value.isValidNumberPrecise() : c.value.isValidNumber() : null, I = () => {
9279
9285
  let v = g();
9280
- m.value !== v && (m.value = v, u("changeValidity", !!v), u(
9286
+ C.value !== v && (C.value = v, u("changeValidity", !!v), u(
9281
9287
  "changeErrorCode",
9282
9288
  v ? null : c.value.getValidationError()
9283
9289
  ));
@@ -9289,9 +9295,9 @@ const r2 = {
9289
9295
  u("changeCountry", ((v = c.value) == null ? void 0 : v.getSelectedCountryData().iso2) ?? ""), w(), I();
9290
9296
  };
9291
9297
  return x0(() => {
9292
- h.value && (c.value = y(h.value, s.options), s.value && c.value.setNumber(s.value), s.disabled && c.value.setDisabled(s.disabled), m.value = g());
9298
+ h.value && (c.value = y(h.value, r.options), r.value && c.value.setNumber(r.value), r.disabled && c.value.setDisabled(r.disabled), C.value = g());
9293
9299
  }), B0(
9294
- () => s.disabled,
9300
+ () => r.disabled,
9295
9301
  (v) => {
9296
9302
  var E;
9297
9303
  return (E = c.value) == null ? void 0 : E.setDisabled(v);
@@ -9317,5 +9323,5 @@ const r2 = {
9317
9323
  }
9318
9324
  };
9319
9325
  export {
9320
- r2 as default
9326
+ s2 as default
9321
9327
  };