intl-tel-input 25.10.9 → 25.10.10

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.
package/README.md CHANGED
@@ -77,16 +77,16 @@ _Note: We have now dropped support for all versions of Internet Explorer because
77
77
  ## Getting Started (Using a CDN)
78
78
  1. Add the CSS
79
79
  ```html
80
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.9/build/css/intlTelInput.css">
80
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.10/build/css/intlTelInput.css">
81
81
  ```
82
82
 
83
83
  2. Add the plugin script and initialise it on your input element
84
84
  ```html
85
- <script src="https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.9/build/js/intlTelInput.min.js"></script>
85
+ <script src="https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.10/build/js/intlTelInput.min.js"></script>
86
86
  <script>
87
87
  const input = document.querySelector("#phone");
88
88
  window.intlTelInput(input, {
89
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.9/build/js/utils.js"),
89
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.10/build/js/utils.js"),
90
90
  });
91
91
  </script>
92
92
  ```
@@ -305,9 +305,10 @@ intlTelInput(input, {
305
305
  multipleSearchResults: "${count} results found",
306
306
  // OPTIONAL: For more complex pluralisation cases, e.g. Polish or Arabic, you can implement your own logic, like below. In this case, you can omit the "one" and "multiple" keys above.
307
307
  searchResultsText(count) {
308
- // NOTE: zero results is always handled by "zeroSearchResults" above
308
+ // NOTE: zero results are always handled by "zeroSearchResults" above
309
309
  if (count === 1) return "1 result found";
310
- return `${count} results found`;
310
+ if (count < 5) return `Some ${count} results found`;
311
+ return `Many ${count} results found`;
311
312
  }
312
313
  }
313
314
  });
@@ -327,7 +328,7 @@ The `loadUtils` option takes a function which returns a Promise which resolves t
327
328
  ```js
328
329
  // (A) import utils module from a CDN
329
330
  intlTelInput(htmlInputElement, {
330
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.9/build/js/utils.js"),
331
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.10/build/js/utils.js"),
331
332
  });
332
333
 
333
334
  // (B) import utils module from your own hosted version of utils.js
@@ -364,7 +365,7 @@ Set this to false to hide the flags e.g. for political reasons. Instead, it will
364
365
  **separateDialCode**
365
366
  Type: `Boolean` Default: `false`
366
367
  Display the selected country's international dial code next to the input, so it looks like it's part of the typed number. Since the user cannot edit the displayed dial code, they may try to type a new one - in this case, to avoid having two dial codes next to each other, we automatically open the country dropdown and put the new dial code in the search input instead. So if they type +54, then Argentina will be highlighted in the dropdown and they can simply press Enter to select it, updating the displayed dial code (this feature requires `allowDropdown` and `countrySearch` to be enabled). Play with this option on [Storybook](https://intl-tel-input.com/storybook/?path=/docs/intltelinput--separatedialcode) (using the React component).
367
- __Note: if the user enters their number with autocomplete or by copying and pasting it, and their number includes the international dial code, then this will be shown twice__
368
+ __Note: if the user enters their number with autofill or by copying and pasting it, and their number includes the international dial code, then this will be shown twice__
368
369
 
369
370
  <img src="https://raw.github.com/jackocnr/intl-tel-input/master/screenshots/separate-dial-code4.png" width="267px" height="51px" alt="Separate Dial Code">
370
371
 
@@ -611,7 +612,7 @@ The `loadUtils` option takes a function which returns a Promise which resolves t
611
612
  ```js
612
613
  // (A) import utils module from a CDN
613
614
  intlTelInput(htmlInputElement, {
614
- loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.9/build/js/utils.js"),
615
+ loadUtils: () => import("https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.10/build/js/utils.js"),
615
616
  });
616
617
 
617
618
  // (B) import utils module from your own hosted version of utils.js
package/angular/README.md CHANGED
@@ -29,7 +29,7 @@ import "intl-tel-input/styles";
29
29
 
30
30
  See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master/angular/demo/validation/validation.component.ts) for a more fleshed-out example of how to handle validation.
31
31
 
32
- A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/angularWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/angular"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.9/build/js/utils.js"`.
32
+ A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/angularWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/angular"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.10.10/build/js/utils.js"`.
33
33
 
34
34
  ## Props
35
35
  Here's a list of all of the current props you can pass to the IntlTelInput Angular component.
@@ -2261,15 +2261,17 @@ var Iti = class _Iti {
2261
2261
  _initRequests() {
2262
2262
  let { loadUtils, initialCountry, geoIpLookup } = this.options;
2263
2263
  if (loadUtils && !intlTelInput.utils) {
2264
- this._handlePageLoad = () => {
2264
+ this._doAttachUtils = () => {
2265
2265
  var _a;
2266
- window.removeEventListener("load", this._handlePageLoad);
2267
2266
  (_a = intlTelInput.attachUtils(loadUtils)) === null || _a === void 0 ? void 0 : _a.catch(() => {
2268
2267
  });
2269
2268
  };
2270
2269
  if (intlTelInput.documentReady()) {
2271
- this._handlePageLoad();
2270
+ this._doAttachUtils();
2272
2271
  } else {
2272
+ this._handlePageLoad = () => {
2273
+ this._doAttachUtils();
2274
+ };
2273
2275
  window.addEventListener("load", this._handlePageLoad);
2274
2276
  }
2275
2277
  } else {
@@ -2904,6 +2906,7 @@ var Iti = class _Iti {
2904
2906
  this.searchInput.removeEventListener("input", this._handleSearchChange);
2905
2907
  this.searchClearButton.removeEventListener("click", this._handleSearchClear);
2906
2908
  }
2909
+ document.removeEventListener("keydown", this._handleKeydownOnDropdown);
2907
2910
  document.documentElement.removeEventListener("click", this._handleClickOffToClose);
2908
2911
  this.countryList.removeEventListener("mouseover", this._handleMouseoverCountryList);
2909
2912
  this.countryList.removeEventListener("click", this._handleClickCountryList);
@@ -2915,9 +2918,6 @@ var Iti = class _Iti {
2915
2918
  this.dropdown.parentNode.removeChild(this.dropdown);
2916
2919
  }
2917
2920
  }
2918
- if (this._handlePageLoad) {
2919
- window.removeEventListener("load", this._handlePageLoad);
2920
- }
2921
2921
  this._trigger("close:countrydropdown");
2922
2922
  }
2923
2923
  //* Check if an element is visible within it's container, else scroll until it is.
@@ -3060,6 +3060,9 @@ var Iti = class _Iti {
3060
3060
  if (this._handlePasteEvent) {
3061
3061
  this.telInput.removeEventListener("paste", this._handlePasteEvent);
3062
3062
  }
3063
+ if (this._handlePageLoad) {
3064
+ window.removeEventListener("load", this._handlePageLoad);
3065
+ }
3063
3066
  this.telInput.removeAttribute("data-intl-tel-input-id");
3064
3067
  if (separateDialCode) {
3065
3068
  if (this.isRTL) {
@@ -3229,7 +3232,7 @@ var intlTelInput = Object.assign((input, options) => {
3229
3232
  attachUtils,
3230
3233
  startedLoadingUtilsScript: false,
3231
3234
  startedLoadingAutoCountry: false,
3232
- version: "25.10.9"
3235
+ version: "25.10.10"
3233
3236
  });
3234
3237
  var intl_tel_input_default = intlTelInput;
3235
3238
 
@@ -2261,15 +2261,17 @@ var Iti = class _Iti {
2261
2261
  _initRequests() {
2262
2262
  let { loadUtils, initialCountry, geoIpLookup } = this.options;
2263
2263
  if (loadUtils && !intlTelInput.utils) {
2264
- this._handlePageLoad = () => {
2264
+ this._doAttachUtils = () => {
2265
2265
  var _a;
2266
- window.removeEventListener("load", this._handlePageLoad);
2267
2266
  (_a = intlTelInput.attachUtils(loadUtils)) === null || _a === void 0 ? void 0 : _a.catch(() => {
2268
2267
  });
2269
2268
  };
2270
2269
  if (intlTelInput.documentReady()) {
2271
- this._handlePageLoad();
2270
+ this._doAttachUtils();
2272
2271
  } else {
2272
+ this._handlePageLoad = () => {
2273
+ this._doAttachUtils();
2274
+ };
2273
2275
  window.addEventListener("load", this._handlePageLoad);
2274
2276
  }
2275
2277
  } else {
@@ -2904,6 +2906,7 @@ var Iti = class _Iti {
2904
2906
  this.searchInput.removeEventListener("input", this._handleSearchChange);
2905
2907
  this.searchClearButton.removeEventListener("click", this._handleSearchClear);
2906
2908
  }
2909
+ document.removeEventListener("keydown", this._handleKeydownOnDropdown);
2907
2910
  document.documentElement.removeEventListener("click", this._handleClickOffToClose);
2908
2911
  this.countryList.removeEventListener("mouseover", this._handleMouseoverCountryList);
2909
2912
  this.countryList.removeEventListener("click", this._handleClickCountryList);
@@ -2915,9 +2918,6 @@ var Iti = class _Iti {
2915
2918
  this.dropdown.parentNode.removeChild(this.dropdown);
2916
2919
  }
2917
2920
  }
2918
- if (this._handlePageLoad) {
2919
- window.removeEventListener("load", this._handlePageLoad);
2920
- }
2921
2921
  this._trigger("close:countrydropdown");
2922
2922
  }
2923
2923
  //* Check if an element is visible within it's container, else scroll until it is.
@@ -3060,6 +3060,9 @@ var Iti = class _Iti {
3060
3060
  if (this._handlePasteEvent) {
3061
3061
  this.telInput.removeEventListener("paste", this._handlePasteEvent);
3062
3062
  }
3063
+ if (this._handlePageLoad) {
3064
+ window.removeEventListener("load", this._handlePageLoad);
3065
+ }
3063
3066
  this.telInput.removeAttribute("data-intl-tel-input-id");
3064
3067
  if (separateDialCode) {
3065
3068
  if (this.isRTL) {
@@ -3229,7 +3232,7 @@ var intlTelInput = Object.assign((input, options) => {
3229
3232
  attachUtils,
3230
3233
  startedLoadingUtilsScript: false,
3231
3234
  startedLoadingAutoCountry: false,
3232
- version: "25.10.9"
3235
+ version: "25.10.10"
3233
3236
  });
3234
3237
  var intl_tel_input_default = intlTelInput;
3235
3238
 
@@ -55,6 +55,7 @@ export declare class Iti {
55
55
  private _handleSearchChange;
56
56
  private _handleSearchClear;
57
57
  private _handlePageLoad;
58
+ private _doAttachUtils;
58
59
  private resolveAutoCountryPromise;
59
60
  private rejectAutoCountryPromise;
60
61
  private resolveUtilsScriptPromise;
package/build/js/data.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v25.10.9
2
+ * International Telephone Input v25.10.10
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v25.10.9
2
+ * International Telephone Input v25.10.10
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -227,6 +227,7 @@ declare module "intl-tel-input" {
227
227
  private _handleSearchChange;
228
228
  private _handleSearchClear;
229
229
  private _handlePageLoad;
230
+ private _doAttachUtils;
230
231
  private resolveAutoCountryPromise;
231
232
  private rejectAutoCountryPromise;
232
233
  private resolveUtilsScriptPromise;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v25.10.9
2
+ * International Telephone Input v25.10.10
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -2377,14 +2377,16 @@ var factoryOutput = (() => {
2377
2377
  _initRequests() {
2378
2378
  let { loadUtils, initialCountry, geoIpLookup } = this.options;
2379
2379
  if (loadUtils && !intlTelInput.utils) {
2380
- this._handlePageLoad = () => {
2381
- window.removeEventListener("load", this._handlePageLoad);
2380
+ this._doAttachUtils = () => {
2382
2381
  intlTelInput.attachUtils(loadUtils)?.catch(() => {
2383
2382
  });
2384
2383
  };
2385
2384
  if (intlTelInput.documentReady()) {
2386
- this._handlePageLoad();
2385
+ this._doAttachUtils();
2387
2386
  } else {
2387
+ this._handlePageLoad = () => {
2388
+ this._doAttachUtils();
2389
+ };
2388
2390
  window.addEventListener("load", this._handlePageLoad);
2389
2391
  }
2390
2392
  } else {
@@ -3049,6 +3051,7 @@ var factoryOutput = (() => {
3049
3051
  this.searchInput.removeEventListener("input", this._handleSearchChange);
3050
3052
  this.searchClearButton.removeEventListener("click", this._handleSearchClear);
3051
3053
  }
3054
+ document.removeEventListener("keydown", this._handleKeydownOnDropdown);
3052
3055
  document.documentElement.removeEventListener(
3053
3056
  "click",
3054
3057
  this._handleClickOffToClose
@@ -3066,9 +3069,6 @@ var factoryOutput = (() => {
3066
3069
  this.dropdown.parentNode.removeChild(this.dropdown);
3067
3070
  }
3068
3071
  }
3069
- if (this._handlePageLoad) {
3070
- window.removeEventListener("load", this._handlePageLoad);
3071
- }
3072
3072
  this._trigger("close:countrydropdown");
3073
3073
  }
3074
3074
  //* Check if an element is visible within it's container, else scroll until it is.
@@ -3221,6 +3221,9 @@ var factoryOutput = (() => {
3221
3221
  if (this._handlePasteEvent) {
3222
3222
  this.telInput.removeEventListener("paste", this._handlePasteEvent);
3223
3223
  }
3224
+ if (this._handlePageLoad) {
3225
+ window.removeEventListener("load", this._handlePageLoad);
3226
+ }
3224
3227
  this.telInput.removeAttribute("data-intl-tel-input-id");
3225
3228
  if (separateDialCode) {
3226
3229
  if (this.isRTL) {
@@ -3402,7 +3405,7 @@ var factoryOutput = (() => {
3402
3405
  attachUtils,
3403
3406
  startedLoadingUtilsScript: false,
3404
3407
  startedLoadingAutoCountry: false,
3405
- version: "25.10.9"
3408
+ version: "25.10.10"
3406
3409
  }
3407
3410
  );
3408
3411
  var intl_tel_input_default = intlTelInput;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v25.10.9
2
+ * International Telephone Input v25.10.10
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -13,7 +13,7 @@
13
13
  }
14
14
  }(() => {
15
15
 
16
- var factoryOutput=(()=>{var S=Object.defineProperty;var K=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames;var W=Object.prototype.hasOwnProperty;var G=(o,t)=>{for(var e in t)S(o,e,{get:t[e],enumerable:!0})},q=(o,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of V(t))!W.call(o,n)&&n!==e&&S(o,n,{get:()=>t[n],enumerable:!(i=K(t,n))||i.enumerable});return o};var J=o=>q(S({},"__esModule",{value:!0}),o);var rt={};G(rt,{Iti:()=>E,default:()=>ot});var Y=[["af","93"],["ax","358",1],["al","355"],["dz","213"],["as","1",5,["684"]],["ad","376"],["ao","244"],["ai","1",6,["264"]],["ag","1",7,["268"]],["ar","54"],["am","374"],["aw","297"],["ac","247"],["au","61",0,null,"0"],["at","43"],["az","994"],["bs","1",8,["242"]],["bh","973"],["bd","880"],["bb","1",9,["246"]],["by","375"],["be","32"],["bz","501"],["bj","229"],["bm","1",10,["441"]],["bt","975"],["bo","591"],["ba","387"],["bw","267"],["br","55"],["io","246"],["vg","1",11,["284"]],["bn","673"],["bg","359"],["bf","226"],["bi","257"],["kh","855"],["cm","237"],["ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905"]],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"]],["cf","236"],["td","235"],["cl","56"],["cn","86"],["cx","61",2,["89164"],"0"],["cc","61",1,["89162"],"0"],["co","57"],["km","269"],["cg","242"],["cd","243"],["ck","682"],["cr","506"],["ci","225"],["hr","385"],["cu","53"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"]],["do","1",2,["809","829","849"]],["ec","593"],["eg","20"],["sv","503"],["gq","240"],["er","291"],["ee","372"],["sz","268"],["et","251"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0],["fr","33"],["gf","594"],["pf","689"],["ga","241"],["gm","220"],["ge","995"],["de","49"],["gh","233"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"]],["gp","590",0],["gu","1",15,["671"]],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36"],["is","354"],["in","91"],["id","62"],["ir","98"],["iq","964"],["ie","353"],["im","44",2,["1624","74576","7524","7924","7624"],"0"],["il","972"],["it","39",0],["jm","1",4,["876","658"]],["jp","81"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962"],["kz","7",1,["33","7"],"8"],["ke","254"],["ki","686"],["xk","383"],["kw","965"],["kg","996"],["la","856"],["lv","371"],["lb","961"],["ls","266"],["lr","231"],["ly","218"],["li","423"],["lt","370"],["lu","352"],["mo","853"],["mg","261"],["mw","265"],["my","60"],["mv","960"],["ml","223"],["mt","356"],["mh","692"],["mq","596"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373"],["mc","377"],["mn","976"],["me","382"],["ms","1",16,["664"]],["ma","212",0,null,"0"],["mz","258"],["mm","95"],["na","264"],["nr","674"],["np","977"],["nl","31"],["nc","687"],["nz","64"],["ni","505"],["ne","227"],["ng","234"],["nu","683"],["nf","672"],["kp","850"],["mk","389"],["mp","1",17,["670"]],["no","47",0],["om","968"],["pk","92"],["pw","680"],["ps","970"],["pa","507"],["pg","675"],["py","595"],["pe","51"],["ph","63"],["pl","48"],["pt","351"],["pr","1",3,["787","939"]],["qa","974"],["re","262",0,null,"0"],["ro","40"],["ru","7",0,null,"8"],["rw","250"],["ws","685"],["sm","378"],["st","239"],["sa","966"],["sn","221"],["rs","381"],["sc","248"],["sl","232"],["sg","65"],["sx","1",21,["721"]],["sk","421"],["si","386"],["sb","677"],["so","252"],["za","27"],["kr","82"],["ss","211"],["es","34"],["lk","94"],["bl","590",1],["sh","290"],["kn","1",18,["869"]],["lc","1",19,["758"]],["mf","590",2],["pm","508"],["vc","1",20,["784"]],["sd","249"],["sr","597"],["sj","47",1,["79"]],["se","46"],["ch","41"],["sy","963"],["tw","886"],["tj","992"],["tz","255"],["th","66"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"]],["tn","216"],["tr","90"],["tm","993"],["tc","1",23,["649"]],["tv","688"],["vi","1",24,["340"]],["ug","256"],["ua","380"],["ae","971"],["gb","44",0,null,"0"],["us","1",0],["uy","598"],["uz","998"],["vu","678"],["va","39",1,["06698"]],["ve","58"],["vn","84"],["wf","681"],["eh","212",1,["5288","5289"],"0"],["ye","967"],["zm","260"],["zw","263"]],M=[];for(let o of Y)M.push({name:"",iso2:o[0],dialCode:o[1],priority:o[2]||0,areaCodes:o[3]||null,nodeById:{},nationalPrefix:o[4]||null});var f=M;var Z={ad:"Andorra",ae:"United Arab Emirates",af:"Afghanistan",ag:"Antigua & Barbuda",ai:"Anguilla",al:"Albania",am:"Armenia",ao:"Angola",ar:"Argentina",as:"American Samoa",at:"Austria",au:"Australia",aw:"Aruba",ax:"\xC5land Islands",az:"Azerbaijan",ba:"Bosnia & Herzegovina",bb:"Barbados",bd:"Bangladesh",be:"Belgium",bf:"Burkina Faso",bg:"Bulgaria",bh:"Bahrain",bi:"Burundi",bj:"Benin",bl:"St. Barth\xE9lemy",bm:"Bermuda",bn:"Brunei",bo:"Bolivia",bq:"Caribbean Netherlands",br:"Brazil",bs:"Bahamas",bt:"Bhutan",bw:"Botswana",by:"Belarus",bz:"Belize",ca:"Canada",cc:"Cocos (Keeling) Islands",cd:"Congo - Kinshasa",cf:"Central African Republic",cg:"Congo - Brazzaville",ch:"Switzerland",ci:"C\xF4te d\u2019Ivoire",ck:"Cook Islands",cl:"Chile",cm:"Cameroon",cn:"China",co:"Colombia",cr:"Costa Rica",cu:"Cuba",cv:"Cape Verde",cw:"Cura\xE7ao",cx:"Christmas Island",cy:"Cyprus",cz:"Czechia",de:"Germany",dj:"Djibouti",dk:"Denmark",dm:"Dominica",do:"Dominican Republic",dz:"Algeria",ec:"Ecuador",ee:"Estonia",eg:"Egypt",eh:"Western Sahara",er:"Eritrea",es:"Spain",et:"Ethiopia",fi:"Finland",fj:"Fiji",fk:"Falkland Islands",fm:"Micronesia",fo:"Faroe Islands",fr:"France",ga:"Gabon",gb:"United Kingdom",gd:"Grenada",ge:"Georgia",gf:"French Guiana",gg:"Guernsey",gh:"Ghana",gi:"Gibraltar",gl:"Greenland",gm:"Gambia",gn:"Guinea",gp:"Guadeloupe",gq:"Equatorial Guinea",gr:"Greece",gt:"Guatemala",gu:"Guam",gw:"Guinea-Bissau",gy:"Guyana",hk:"Hong Kong SAR China",hn:"Honduras",hr:"Croatia",ht:"Haiti",hu:"Hungary",id:"Indonesia",ie:"Ireland",il:"Israel",im:"Isle of Man",in:"India",io:"British Indian Ocean Territory",iq:"Iraq",ir:"Iran",is:"Iceland",it:"Italy",je:"Jersey",jm:"Jamaica",jo:"Jordan",jp:"Japan",ke:"Kenya",kg:"Kyrgyzstan",kh:"Cambodia",ki:"Kiribati",km:"Comoros",kn:"St. Kitts & Nevis",kp:"North Korea",kr:"South Korea",kw:"Kuwait",ky:"Cayman Islands",kz:"Kazakhstan",la:"Laos",lb:"Lebanon",lc:"St. Lucia",li:"Liechtenstein",lk:"Sri Lanka",lr:"Liberia",ls:"Lesotho",lt:"Lithuania",lu:"Luxembourg",lv:"Latvia",ly:"Libya",ma:"Morocco",mc:"Monaco",md:"Moldova",me:"Montenegro",mf:"St. Martin",mg:"Madagascar",mh:"Marshall Islands",mk:"North Macedonia",ml:"Mali",mm:"Myanmar (Burma)",mn:"Mongolia",mo:"Macao SAR China",mp:"Northern Mariana Islands",mq:"Martinique",mr:"Mauritania",ms:"Montserrat",mt:"Malta",mu:"Mauritius",mv:"Maldives",mw:"Malawi",mx:"Mexico",my:"Malaysia",mz:"Mozambique",na:"Namibia",nc:"New Caledonia",ne:"Niger",nf:"Norfolk Island",ng:"Nigeria",ni:"Nicaragua",nl:"Netherlands",no:"Norway",np:"Nepal",nr:"Nauru",nu:"Niue",nz:"New Zealand",om:"Oman",pa:"Panama",pe:"Peru",pf:"French Polynesia",pg:"Papua New Guinea",ph:"Philippines",pk:"Pakistan",pl:"Poland",pm:"St. Pierre & Miquelon",pr:"Puerto Rico",ps:"Palestinian Territories",pt:"Portugal",pw:"Palau",py:"Paraguay",qa:"Qatar",re:"R\xE9union",ro:"Romania",rs:"Serbia",ru:"Russia",rw:"Rwanda",sa:"Saudi Arabia",sb:"Solomon Islands",sc:"Seychelles",sd:"Sudan",se:"Sweden",sg:"Singapore",sh:"St. Helena",si:"Slovenia",sj:"Svalbard & Jan Mayen",sk:"Slovakia",sl:"Sierra Leone",sm:"San Marino",sn:"Senegal",so:"Somalia",sr:"Suriname",ss:"South Sudan",st:"S\xE3o Tom\xE9 & Pr\xEDncipe",sv:"El Salvador",sx:"Sint Maarten",sy:"Syria",sz:"Eswatini",tc:"Turks & Caicos Islands",td:"Chad",tg:"Togo",th:"Thailand",tj:"Tajikistan",tk:"Tokelau",tl:"Timor-Leste",tm:"Turkmenistan",tn:"Tunisia",to:"Tonga",tr:"Turkey",tt:"Trinidad & Tobago",tv:"Tuvalu",tw:"Taiwan",tz:"Tanzania",ua:"Ukraine",ug:"Uganda",us:"United States",uy:"Uruguay",uz:"Uzbekistan",va:"Vatican City",vc:"St. Vincent & Grenadines",ve:"Venezuela",vg:"British Virgin Islands",vi:"U.S. Virgin Islands",vn:"Vietnam",vu:"Vanuatu",wf:"Wallis & Futuna",ws:"Samoa",ye:"Yemen",yt:"Mayotte",za:"South Africa",zm:"Zambia",zw:"Zimbabwe"},P=Z;var Q={selectedCountryAriaLabel:"Change country, selected ${countryName} (${dialCode})",noCountrySelected:"Select country",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",zeroSearchResults:"No results found",oneSearchResult:"1 result found",multipleSearchResults:"${count} results found",ac:"Ascension Island",xk:"Kosovo"},k=Q;var X={...P,...k},w=X;var T=o=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(o).matches,tt=()=>{if(typeof navigator<"u"&&typeof window<"u"){let o=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),t=T("(max-width: 500px)"),e=T("(max-height: 600px)"),i=T("(pointer: coarse)");return o||t||i&&e}return!1},N={allowPhonewords:!1,allowDropdown:!0,autoPlaceholder:"polite",containerClass:"",countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",loadUtils:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",showFlags:!0,separateDialCode:!1,strictMode:!1,useFullscreenPopup:tt(),validationNumberTypes:["MOBILE"]};function x(o){o.useFullscreenPopup&&(o.fixDropdownWidth=!1),o.onlyCountries.length===1&&(o.initialCountry=o.onlyCountries[0]),o.separateDialCode&&(o.nationalMode=!1),o.allowDropdown&&!o.showFlags&&!o.separateDialCode&&(o.nationalMode=!1),o.useFullscreenPopup&&!o.dropdownContainer&&(o.dropdownContainer=document.body),o.i18n={...w,...o.i18n}}var b=o=>o.replace(/\D/g,""),L=(o="")=>o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();var c=(o,t,e)=>{let i=document.createElement(o);return t&&Object.entries(t).forEach(([n,s])=>i.setAttribute(n,s)),e&&e.appendChild(i),i};function H(o){let{onlyCountries:t,excludeCountries:e}=o;if(t.length){let i=t.map(n=>n.toLowerCase());return f.filter(n=>i.includes(n.iso2))}else if(e.length){let i=e.map(n=>n.toLowerCase());return f.filter(n=>!i.includes(n.iso2))}return f}function B(o,t){for(let e of o){let i=e.iso2.toLowerCase();t.i18n[i]&&(e.name=t.i18n[i])}}function R(o,t){let e=new Set,i=0,n={},s=(r,a,d)=>{if(!r||!a)return;a.length>i&&(i=a.length),n.hasOwnProperty(a)||(n[a]=[]);let l=n[a];if(l.includes(r))return;let h=d!==void 0?d:l.length;l[h]=r};for(let r of o)e.has(r.dialCode)||e.add(r.dialCode),s(r.iso2,r.dialCode,r.priority);(t.onlyCountries.length||t.excludeCountries.length)&&e.forEach(r=>{n[r]=n[r].filter(Boolean)});for(let r of o)if(r.areaCodes){let a=n[r.dialCode][0];for(let d of r.areaCodes){for(let l=1;l<d.length;l++){let h=d.substring(0,l),p=r.dialCode+h;s(a,p),s(r.iso2,p)}s(r.iso2,r.dialCode+d)}}return{dialCodes:e,dialCodeMaxLen:i,dialCodeToIso2Map:n}}function O(o,t){t.countryOrder&&(t.countryOrder=t.countryOrder.map(e=>e.toLowerCase())),o.sort((e,i)=>{let{countryOrder:n}=t;if(n){let s=n.indexOf(e.iso2),r=n.indexOf(i.iso2),a=s>-1,d=r>-1;if(a||d)return a&&d?s-r:a?-1:1}return e.name.localeCompare(i.name)})}function F(o){for(let t of o)t.normalisedName=L(t.name),t.initials=t.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map(e=>e[0]).join("").toLowerCase(),t.dialCodePlus=`+${t.dialCode}`}function z(o,t,e,i){let n=o;if(e&&t){t=`+${i.dialCode}`;let s=n[t.length]===" "||n[t.length]==="-"?t.length+1:t.length;n=n.substring(s)}return n}function $(o,t,e,i,n){let s=e?e.formatNumberAsYouType(o,i.iso2):o,{dialCode:r}=i;return n&&t.charAt(0)!=="+"&&s.includes(`+${r}`)?(s.split(`+${r}`)[1]||"").trim():s}function j(o,t,e,i){if(e===0&&!i)return 0;let n=0;for(let s=0;s<t.length;s++){if(/[+0-9]/.test(t[s])&&n++,n===o&&!i)return s+1;if(i&&n===o+1)return s}return t.length}var et=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],D=o=>{let t=b(o);if(t.charAt(0)==="1"){let e=t.substring(1,4);return et.includes(e)}return!1};for(let o of f)o.name=w[o.iso2];var it=0,nt=new Set(f.map(o=>o.iso2)),A=o=>nt.has(o),I=(o,...t)=>{let{instances:e}=u;Object.values(e).forEach(i=>i[o](...t))},E=class o{static _buildClassNames(t){return Object.keys(t).filter(e=>!!t[e]).join(" ")}constructor(t,e={}){this.id=it++,this.a=t,this.c=null,this.options=Object.assign({},N,e),this.e=!!t.getAttribute("placeholder")}_k(){this.x=typeof navigator<"u"?/Android/i.test(navigator.userAgent):!1,this.v=!!this.a.closest("[dir=rtl]"),this.a.dir="ltr";let t=this.options.allowDropdown||this.options.separateDialCode;this.w=this.v?!t:t,this.options.separateDialCode&&(this.v?this.n1=this.a.style.paddingRight:this.n2=this.a.style.paddingLeft)}_l(){let t=new Promise((i,n)=>{this.h=i,this.i=n}),e=new Promise((i,n)=>{this.i0=i,this.i1=n});this.promise=Promise.all([t,e])}_init(){x(this.options),this._k(),this._l(),this.s={},this._b(),this._f(),this._h(),this._i(),this._i3()}_b(){this.countries=H(this.options);let t=R(this.countries,this.options);this.dialCodes=t.dialCodes,this.dialCodeMaxLen=t.dialCodeMaxLen,this.dialCodeToIso2Map=t.dialCodeToIso2Map,B(this.countries,this.options),O(this.countries,this.options),this.z0=new Map(this.countries.map(e=>[e.iso2,e])),F(this.countries)}_f(){this._m();let t=this._n();this._s(t),t.appendChild(this.a),this._k0(),this._l0(t)}_m(){this.a.classList.add("iti__tel-input"),!this.a.hasAttribute("autocomplete")&&!(this.a.form&&this.a.form.hasAttribute("autocomplete"))&&this.a.setAttribute("autocomplete","off")}_n(){let{allowDropdown:t,showFlags:e,containerClass:i,useFullscreenPopup:n}=this.options,s=o._buildClassNames({iti:!0,"iti--allow-dropdown":t,"iti--show-flags":e,"iti--inline-dropdown":!n,[i]:!!i}),r=c("div",{class:s});return this.a.parentNode?.insertBefore(r,this.a),r}_s(t){let{allowDropdown:e,separateDialCode:i,showFlags:n}=this.options;if(e||n||i){this.k=c("div",{class:"iti__country-container iti__v-hide"},t),this.w?this.k.style.left="0px":this.k.style.right="0px",e?(this.selectedCountry=c("button",{type:"button",class:"iti__selected-country","aria-expanded":"false","aria-label":this.options.i18n.noCountrySelected,"aria-haspopup":"dialog","aria-controls":`iti-${this.id}__dropdown-content`},this.k),this.a.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=c("div",{class:"iti__selected-country"},this.k);let s=c("div",{class:"iti__selected-country-primary"},this.selectedCountry);this.l=c("div",{class:"iti__flag"},s),e&&(this.u=c("div",{class:"iti__arrow","aria-hidden":"true"},s)),i&&(this.t=c("div",{class:"iti__selected-dial-code",dir:"ltr"},this.selectedCountry)),e&&this._t()}}_t(){let{fixDropdownWidth:t,useFullscreenPopup:e,countrySearch:i,i18n:n,dropdownContainer:s,containerClass:r}=this.options,a=t?"":"iti--flexible-dropdown-width";if(this.m0=c("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content iti__hide ${a}`,role:"dialog","aria-modal":"true"}),i&&this._w(),this.countryList=c("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox","aria-label":n.countryListAriaLabel},this.m0),this._g(),i&&this._p4(),s){let d=o._buildClassNames({iti:!0,"iti--container":!0,"iti--fullscreen-popup":e,"iti--inline-dropdown":!e,[r]:!!r});this.dropdown=c("div",{class:d}),this.dropdown.appendChild(this.m0)}else this.k.appendChild(this.m0)}_w(){let{i18n:t}=this.options,e=c("div",{class:"iti__search-input-wrapper"},this.m0);this.m2=c("span",{class:"iti__search-icon","aria-hidden":"true"},e),this.m2.innerHTML=`
16
+ var factoryOutput=(()=>{var S=Object.defineProperty;var K=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames;var W=Object.prototype.hasOwnProperty;var G=(o,t)=>{for(var e in t)S(o,e,{get:t[e],enumerable:!0})},q=(o,t,e,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of V(t))!W.call(o,n)&&n!==e&&S(o,n,{get:()=>t[n],enumerable:!(i=K(t,n))||i.enumerable});return o};var J=o=>q(S({},"__esModule",{value:!0}),o);var rt={};G(rt,{Iti:()=>E,default:()=>ot});var Y=[["af","93"],["ax","358",1],["al","355"],["dz","213"],["as","1",5,["684"]],["ad","376"],["ao","244"],["ai","1",6,["264"]],["ag","1",7,["268"]],["ar","54"],["am","374"],["aw","297"],["ac","247"],["au","61",0,null,"0"],["at","43"],["az","994"],["bs","1",8,["242"]],["bh","973"],["bd","880"],["bb","1",9,["246"]],["by","375"],["be","32"],["bz","501"],["bj","229"],["bm","1",10,["441"]],["bt","975"],["bo","591"],["ba","387"],["bw","267"],["br","55"],["io","246"],["vg","1",11,["284"]],["bn","673"],["bg","359"],["bf","226"],["bi","257"],["kh","855"],["cm","237"],["ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905"]],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"]],["cf","236"],["td","235"],["cl","56"],["cn","86"],["cx","61",2,["89164"],"0"],["cc","61",1,["89162"],"0"],["co","57"],["km","269"],["cg","242"],["cd","243"],["ck","682"],["cr","506"],["ci","225"],["hr","385"],["cu","53"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"]],["do","1",2,["809","829","849"]],["ec","593"],["eg","20"],["sv","503"],["gq","240"],["er","291"],["ee","372"],["sz","268"],["et","251"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0],["fr","33"],["gf","594"],["pf","689"],["ga","241"],["gm","220"],["ge","995"],["de","49"],["gh","233"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"]],["gp","590",0],["gu","1",15,["671"]],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36"],["is","354"],["in","91"],["id","62"],["ir","98"],["iq","964"],["ie","353"],["im","44",2,["1624","74576","7524","7924","7624"],"0"],["il","972"],["it","39",0],["jm","1",4,["876","658"]],["jp","81"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962"],["kz","7",1,["33","7"],"8"],["ke","254"],["ki","686"],["xk","383"],["kw","965"],["kg","996"],["la","856"],["lv","371"],["lb","961"],["ls","266"],["lr","231"],["ly","218"],["li","423"],["lt","370"],["lu","352"],["mo","853"],["mg","261"],["mw","265"],["my","60"],["mv","960"],["ml","223"],["mt","356"],["mh","692"],["mq","596"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373"],["mc","377"],["mn","976"],["me","382"],["ms","1",16,["664"]],["ma","212",0,null,"0"],["mz","258"],["mm","95"],["na","264"],["nr","674"],["np","977"],["nl","31"],["nc","687"],["nz","64"],["ni","505"],["ne","227"],["ng","234"],["nu","683"],["nf","672"],["kp","850"],["mk","389"],["mp","1",17,["670"]],["no","47",0],["om","968"],["pk","92"],["pw","680"],["ps","970"],["pa","507"],["pg","675"],["py","595"],["pe","51"],["ph","63"],["pl","48"],["pt","351"],["pr","1",3,["787","939"]],["qa","974"],["re","262",0,null,"0"],["ro","40"],["ru","7",0,null,"8"],["rw","250"],["ws","685"],["sm","378"],["st","239"],["sa","966"],["sn","221"],["rs","381"],["sc","248"],["sl","232"],["sg","65"],["sx","1",21,["721"]],["sk","421"],["si","386"],["sb","677"],["so","252"],["za","27"],["kr","82"],["ss","211"],["es","34"],["lk","94"],["bl","590",1],["sh","290"],["kn","1",18,["869"]],["lc","1",19,["758"]],["mf","590",2],["pm","508"],["vc","1",20,["784"]],["sd","249"],["sr","597"],["sj","47",1,["79"]],["se","46"],["ch","41"],["sy","963"],["tw","886"],["tj","992"],["tz","255"],["th","66"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"]],["tn","216"],["tr","90"],["tm","993"],["tc","1",23,["649"]],["tv","688"],["vi","1",24,["340"]],["ug","256"],["ua","380"],["ae","971"],["gb","44",0,null,"0"],["us","1",0],["uy","598"],["uz","998"],["vu","678"],["va","39",1,["06698"]],["ve","58"],["vn","84"],["wf","681"],["eh","212",1,["5288","5289"],"0"],["ye","967"],["zm","260"],["zw","263"]],M=[];for(let o of Y)M.push({name:"",iso2:o[0],dialCode:o[1],priority:o[2]||0,areaCodes:o[3]||null,nodeById:{},nationalPrefix:o[4]||null});var f=M;var Z={ad:"Andorra",ae:"United Arab Emirates",af:"Afghanistan",ag:"Antigua & Barbuda",ai:"Anguilla",al:"Albania",am:"Armenia",ao:"Angola",ar:"Argentina",as:"American Samoa",at:"Austria",au:"Australia",aw:"Aruba",ax:"\xC5land Islands",az:"Azerbaijan",ba:"Bosnia & Herzegovina",bb:"Barbados",bd:"Bangladesh",be:"Belgium",bf:"Burkina Faso",bg:"Bulgaria",bh:"Bahrain",bi:"Burundi",bj:"Benin",bl:"St. Barth\xE9lemy",bm:"Bermuda",bn:"Brunei",bo:"Bolivia",bq:"Caribbean Netherlands",br:"Brazil",bs:"Bahamas",bt:"Bhutan",bw:"Botswana",by:"Belarus",bz:"Belize",ca:"Canada",cc:"Cocos (Keeling) Islands",cd:"Congo - Kinshasa",cf:"Central African Republic",cg:"Congo - Brazzaville",ch:"Switzerland",ci:"C\xF4te d\u2019Ivoire",ck:"Cook Islands",cl:"Chile",cm:"Cameroon",cn:"China",co:"Colombia",cr:"Costa Rica",cu:"Cuba",cv:"Cape Verde",cw:"Cura\xE7ao",cx:"Christmas Island",cy:"Cyprus",cz:"Czechia",de:"Germany",dj:"Djibouti",dk:"Denmark",dm:"Dominica",do:"Dominican Republic",dz:"Algeria",ec:"Ecuador",ee:"Estonia",eg:"Egypt",eh:"Western Sahara",er:"Eritrea",es:"Spain",et:"Ethiopia",fi:"Finland",fj:"Fiji",fk:"Falkland Islands",fm:"Micronesia",fo:"Faroe Islands",fr:"France",ga:"Gabon",gb:"United Kingdom",gd:"Grenada",ge:"Georgia",gf:"French Guiana",gg:"Guernsey",gh:"Ghana",gi:"Gibraltar",gl:"Greenland",gm:"Gambia",gn:"Guinea",gp:"Guadeloupe",gq:"Equatorial Guinea",gr:"Greece",gt:"Guatemala",gu:"Guam",gw:"Guinea-Bissau",gy:"Guyana",hk:"Hong Kong SAR China",hn:"Honduras",hr:"Croatia",ht:"Haiti",hu:"Hungary",id:"Indonesia",ie:"Ireland",il:"Israel",im:"Isle of Man",in:"India",io:"British Indian Ocean Territory",iq:"Iraq",ir:"Iran",is:"Iceland",it:"Italy",je:"Jersey",jm:"Jamaica",jo:"Jordan",jp:"Japan",ke:"Kenya",kg:"Kyrgyzstan",kh:"Cambodia",ki:"Kiribati",km:"Comoros",kn:"St. Kitts & Nevis",kp:"North Korea",kr:"South Korea",kw:"Kuwait",ky:"Cayman Islands",kz:"Kazakhstan",la:"Laos",lb:"Lebanon",lc:"St. Lucia",li:"Liechtenstein",lk:"Sri Lanka",lr:"Liberia",ls:"Lesotho",lt:"Lithuania",lu:"Luxembourg",lv:"Latvia",ly:"Libya",ma:"Morocco",mc:"Monaco",md:"Moldova",me:"Montenegro",mf:"St. Martin",mg:"Madagascar",mh:"Marshall Islands",mk:"North Macedonia",ml:"Mali",mm:"Myanmar (Burma)",mn:"Mongolia",mo:"Macao SAR China",mp:"Northern Mariana Islands",mq:"Martinique",mr:"Mauritania",ms:"Montserrat",mt:"Malta",mu:"Mauritius",mv:"Maldives",mw:"Malawi",mx:"Mexico",my:"Malaysia",mz:"Mozambique",na:"Namibia",nc:"New Caledonia",ne:"Niger",nf:"Norfolk Island",ng:"Nigeria",ni:"Nicaragua",nl:"Netherlands",no:"Norway",np:"Nepal",nr:"Nauru",nu:"Niue",nz:"New Zealand",om:"Oman",pa:"Panama",pe:"Peru",pf:"French Polynesia",pg:"Papua New Guinea",ph:"Philippines",pk:"Pakistan",pl:"Poland",pm:"St. Pierre & Miquelon",pr:"Puerto Rico",ps:"Palestinian Territories",pt:"Portugal",pw:"Palau",py:"Paraguay",qa:"Qatar",re:"R\xE9union",ro:"Romania",rs:"Serbia",ru:"Russia",rw:"Rwanda",sa:"Saudi Arabia",sb:"Solomon Islands",sc:"Seychelles",sd:"Sudan",se:"Sweden",sg:"Singapore",sh:"St. Helena",si:"Slovenia",sj:"Svalbard & Jan Mayen",sk:"Slovakia",sl:"Sierra Leone",sm:"San Marino",sn:"Senegal",so:"Somalia",sr:"Suriname",ss:"South Sudan",st:"S\xE3o Tom\xE9 & Pr\xEDncipe",sv:"El Salvador",sx:"Sint Maarten",sy:"Syria",sz:"Eswatini",tc:"Turks & Caicos Islands",td:"Chad",tg:"Togo",th:"Thailand",tj:"Tajikistan",tk:"Tokelau",tl:"Timor-Leste",tm:"Turkmenistan",tn:"Tunisia",to:"Tonga",tr:"Turkey",tt:"Trinidad & Tobago",tv:"Tuvalu",tw:"Taiwan",tz:"Tanzania",ua:"Ukraine",ug:"Uganda",us:"United States",uy:"Uruguay",uz:"Uzbekistan",va:"Vatican City",vc:"St. Vincent & Grenadines",ve:"Venezuela",vg:"British Virgin Islands",vi:"U.S. Virgin Islands",vn:"Vietnam",vu:"Vanuatu",wf:"Wallis & Futuna",ws:"Samoa",ye:"Yemen",yt:"Mayotte",za:"South Africa",zm:"Zambia",zw:"Zimbabwe"},k=Z;var Q={selectedCountryAriaLabel:"Change country, selected ${countryName} (${dialCode})",noCountrySelected:"Select country",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",zeroSearchResults:"No results found",oneSearchResult:"1 result found",multipleSearchResults:"${count} results found",ac:"Ascension Island",xk:"Kosovo"},x=Q;var X={...k,...x},w=X;var T=o=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(o).matches,tt=()=>{if(typeof navigator<"u"&&typeof window<"u"){let o=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),t=T("(max-width: 500px)"),e=T("(max-height: 600px)"),i=T("(pointer: coarse)");return o||t||i&&e}return!1},N={allowPhonewords:!1,allowDropdown:!0,autoPlaceholder:"polite",containerClass:"",countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",loadUtils:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",showFlags:!0,separateDialCode:!1,strictMode:!1,useFullscreenPopup:tt(),validationNumberTypes:["MOBILE"]};function P(o){o.useFullscreenPopup&&(o.fixDropdownWidth=!1),o.onlyCountries.length===1&&(o.initialCountry=o.onlyCountries[0]),o.separateDialCode&&(o.nationalMode=!1),o.allowDropdown&&!o.showFlags&&!o.separateDialCode&&(o.nationalMode=!1),o.useFullscreenPopup&&!o.dropdownContainer&&(o.dropdownContainer=document.body),o.i18n={...w,...o.i18n}}var b=o=>o.replace(/\D/g,""),L=(o="")=>o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();var c=(o,t,e)=>{let i=document.createElement(o);return t&&Object.entries(t).forEach(([n,s])=>i.setAttribute(n,s)),e&&e.appendChild(i),i};function H(o){let{onlyCountries:t,excludeCountries:e}=o;if(t.length){let i=t.map(n=>n.toLowerCase());return f.filter(n=>i.includes(n.iso2))}else if(e.length){let i=e.map(n=>n.toLowerCase());return f.filter(n=>!i.includes(n.iso2))}return f}function B(o,t){for(let e of o){let i=e.iso2.toLowerCase();t.i18n[i]&&(e.name=t.i18n[i])}}function R(o,t){let e=new Set,i=0,n={},s=(r,a,u)=>{if(!r||!a)return;a.length>i&&(i=a.length),n.hasOwnProperty(a)||(n[a]=[]);let l=n[a];if(l.includes(r))return;let h=u!==void 0?u:l.length;l[h]=r};for(let r of o)e.has(r.dialCode)||e.add(r.dialCode),s(r.iso2,r.dialCode,r.priority);(t.onlyCountries.length||t.excludeCountries.length)&&e.forEach(r=>{n[r]=n[r].filter(Boolean)});for(let r of o)if(r.areaCodes){let a=n[r.dialCode][0];for(let u of r.areaCodes){for(let l=1;l<u.length;l++){let h=u.substring(0,l),p=r.dialCode+h;s(a,p),s(r.iso2,p)}s(r.iso2,r.dialCode+u)}}return{dialCodes:e,dialCodeMaxLen:i,dialCodeToIso2Map:n}}function O(o,t){t.countryOrder&&(t.countryOrder=t.countryOrder.map(e=>e.toLowerCase())),o.sort((e,i)=>{let{countryOrder:n}=t;if(n){let s=n.indexOf(e.iso2),r=n.indexOf(i.iso2),a=s>-1,u=r>-1;if(a||u)return a&&u?s-r:a?-1:1}return e.name.localeCompare(i.name)})}function F(o){for(let t of o)t.normalisedName=L(t.name),t.initials=t.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map(e=>e[0]).join("").toLowerCase(),t.dialCodePlus=`+${t.dialCode}`}function U(o,t,e,i){let n=o;if(e&&t){t=`+${i.dialCode}`;let s=n[t.length]===" "||n[t.length]==="-"?t.length+1:t.length;n=n.substring(s)}return n}function z(o,t,e,i,n){let s=e?e.formatNumberAsYouType(o,i.iso2):o,{dialCode:r}=i;return n&&t.charAt(0)!=="+"&&s.includes(`+${r}`)?(s.split(`+${r}`)[1]||"").trim():s}function $(o,t,e,i){if(e===0&&!i)return 0;let n=0;for(let s=0;s<t.length;s++){if(/[+0-9]/.test(t[s])&&n++,n===o&&!i)return s+1;if(i&&n===o+1)return s}return t.length}var et=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],D=o=>{let t=b(o);if(t.charAt(0)==="1"){let e=t.substring(1,4);return et.includes(e)}return!1};for(let o of f)o.name=w[o.iso2];var it=0,nt=new Set(f.map(o=>o.iso2)),A=o=>nt.has(o),I=(o,...t)=>{let{instances:e}=d;Object.values(e).forEach(i=>i[o](...t))},E=class o{static _buildClassNames(t){return Object.keys(t).filter(e=>!!t[e]).join(" ")}constructor(t,e={}){this.id=it++,this.a=t,this.c=null,this.options=Object.assign({},N,e),this.e=!!t.getAttribute("placeholder")}_k(){this.x=typeof navigator<"u"?/Android/i.test(navigator.userAgent):!1,this.v=!!this.a.closest("[dir=rtl]"),this.a.dir="ltr";let t=this.options.allowDropdown||this.options.separateDialCode;this.w=this.v?!t:t,this.options.separateDialCode&&(this.v?this.n1=this.a.style.paddingRight:this.n2=this.a.style.paddingLeft)}_l(){let t=new Promise((i,n)=>{this.h=i,this.i=n}),e=new Promise((i,n)=>{this.i0=i,this.i1=n});this.promise=Promise.all([t,e])}_init(){P(this.options),this._k(),this._l(),this.s={},this._b(),this._f(),this._h(),this._i(),this._i3()}_b(){this.countries=H(this.options);let t=R(this.countries,this.options);this.dialCodes=t.dialCodes,this.dialCodeMaxLen=t.dialCodeMaxLen,this.dialCodeToIso2Map=t.dialCodeToIso2Map,B(this.countries,this.options),O(this.countries,this.options),this.z0=new Map(this.countries.map(e=>[e.iso2,e])),F(this.countries)}_f(){this._m();let t=this._n();this._s(t),t.appendChild(this.a),this._k0(),this._l0(t)}_m(){this.a.classList.add("iti__tel-input"),!this.a.hasAttribute("autocomplete")&&!(this.a.form&&this.a.form.hasAttribute("autocomplete"))&&this.a.setAttribute("autocomplete","off")}_n(){let{allowDropdown:t,showFlags:e,containerClass:i,useFullscreenPopup:n}=this.options,s=o._buildClassNames({iti:!0,"iti--allow-dropdown":t,"iti--show-flags":e,"iti--inline-dropdown":!n,[i]:!!i}),r=c("div",{class:s});return this.a.parentNode?.insertBefore(r,this.a),r}_s(t){let{allowDropdown:e,separateDialCode:i,showFlags:n}=this.options;if(e||n||i){this.k=c("div",{class:"iti__country-container iti__v-hide"},t),this.w?this.k.style.left="0px":this.k.style.right="0px",e?(this.selectedCountry=c("button",{type:"button",class:"iti__selected-country","aria-expanded":"false","aria-label":this.options.i18n.noCountrySelected,"aria-haspopup":"dialog","aria-controls":`iti-${this.id}__dropdown-content`},this.k),this.a.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=c("div",{class:"iti__selected-country"},this.k);let s=c("div",{class:"iti__selected-country-primary"},this.selectedCountry);this.l=c("div",{class:"iti__flag"},s),e&&(this.u=c("div",{class:"iti__arrow","aria-hidden":"true"},s)),i&&(this.t=c("div",{class:"iti__selected-dial-code",dir:"ltr"},this.selectedCountry)),e&&this._t()}}_t(){let{fixDropdownWidth:t,useFullscreenPopup:e,countrySearch:i,i18n:n,dropdownContainer:s,containerClass:r}=this.options,a=t?"":"iti--flexible-dropdown-width";if(this.m0=c("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content iti__hide ${a}`,role:"dialog","aria-modal":"true"}),i&&this._w(),this.countryList=c("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox","aria-label":n.countryListAriaLabel},this.m0),this._g(),i&&this._p4(),s){let u=o._buildClassNames({iti:!0,"iti--container":!0,"iti--fullscreen-popup":e,"iti--inline-dropdown":!e,[r]:!!r});this.dropdown=c("div",{class:u}),this.dropdown.appendChild(this.m0)}else this.k.appendChild(this.m0)}_w(){let{i18n:t}=this.options,e=c("div",{class:"iti__search-input-wrapper"},this.m0);this.m2=c("span",{class:"iti__search-icon","aria-hidden":"true"},e),this.m2.innerHTML=`
17
17
  <svg class="iti__search-icon-svg" width="14" height="14" viewBox="0 0 24 24" focusable="false" aria-hidden="true">
18
18
  <circle cx="11" cy="11" r="7" />
19
19
  <line x1="21" y1="21" x2="16.65" y2="16.65" />
@@ -24,7 +24,7 @@ var factoryOutput=(()=>{var S=Object.defineProperty;var K=Object.getOwnPropertyD
24
24
  <path d="M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8" stroke="black" stroke-linecap="round" class="iti__search-clear-x" />
25
25
  </mask>
26
26
  <circle cx="8" cy="8" r="8" class="iti__search-clear-bg" mask="url(#${i})" />
27
- </svg>`,this.m5=c("span",{class:"iti__a11y-text"},this.m0),this.m4=c("div",{class:"iti__no-results iti__hide","aria-hidden":"true"},this.m0),this.m4.textContent=t.zeroSearchResults}_k0(){this.k&&(this._z3(),this.k.classList.remove("iti__v-hide"))}_l0(t){let{hiddenInput:e}=this.options;if(e){let i=this.a.getAttribute("name")||"",n=e(i);if(n.phone){let s=this.a.form?.querySelector(`input[name="${n.phone}"]`);s?this.hiddenInput=s:(this.hiddenInput=c("input",{type:"hidden",name:n.phone}),t.appendChild(this.hiddenInput))}if(n.country){let s=this.a.form?.querySelector(`input[name="${n.country}"]`);s?this.m9=s:(this.m9=c("input",{type:"hidden",name:n.country}),t.appendChild(this.m9))}}}_g(){for(let t=0;t<this.countries.length;t++){let e=this.countries[t],i=t===0?"iti__highlight":"",n=c("li",{id:`iti-${this.id}__item-${e.iso2}`,class:`iti__country ${i}`,tabindex:"-1",role:"option","data-dial-code":e.dialCode,"data-country-code":e.iso2,"aria-selected":"false"},this.countryList);e.nodeById[this.id]=n;let s="";this.options.showFlags&&(s+=`<div class='iti__flag iti__${e.iso2}'></div>`),s+=`<span class='iti__country-name'>${e.name}</span>`,s+=`<span class='iti__dial-code' dir='ltr'>+${e.dialCode}</span>`,n.insertAdjacentHTML("beforeend",s)}}_h(t=!1){let e=this.a.getAttribute("value"),i=this.a.value,s=e&&e.charAt(0)==="+"&&(!i||i.charAt(0)!=="+")?e:i,r=this._5(s),a=D(s),{initialCountry:d,geoIpLookup:l}=this.options,h=d==="auto"&&l;if(r&&!a)this._v(s);else if(!h||t){let p=d?d.toLowerCase():"";A(p)?this._z(p):r&&a?this._z("us"):this._z("")}s&&this._u(s)}_i(){this._j(),this.options.allowDropdown&&this._i2(),(this.hiddenInput||this.m9)&&this.a.form&&this._i0()}_i0(){this._a14=()=>{this.hiddenInput&&(this.hiddenInput.value=this.getNumber()),this.m9&&(this.m9.value=this.getSelectedCountryData().iso2||"")},this.a.form?.addEventListener("submit",this._a14)}_i2(){this._a9=e=>{this.m0.classList.contains("iti__hide")?this.a.focus():e.preventDefault()};let t=this.a.closest("label");t&&t.addEventListener("click",this._a9),this._a10=()=>{this.m0.classList.contains("iti__hide")&&!this.a.disabled&&!this.a.readOnly&&this._openDropdown()},this.selectedCountry.addEventListener("click",this._a10),this._a11=e=>{this.m0.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this._openDropdown()),e.key==="Tab"&&this._2()},this.k.addEventListener("keydown",this._a11)}_i3(){let{loadUtils:t,initialCountry:e,geoIpLookup:i}=this.options;t&&!u.utils?(this._a8=()=>{window.removeEventListener("load",this._a8),u.attachUtils(t)?.catch(()=>{})},u.documentReady()?this._a8():window.addEventListener("load",this._a8)):this.i0(),e==="auto"&&i&&!this.s.iso2?this._i4():this.h()}_i4(){u.autoCountry?this.handleAutoCountry():u.startedLoadingAutoCountry||(u.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup((t="")=>{let e=t.toLowerCase();A(e)?(u.autoCountry=e,setTimeout(()=>I("handleAutoCountry"))):(this._h(!0),I("rejectAutoCountryPromise"))},()=>{this._h(!0),I("rejectAutoCountryPromise")}))}_n0(){this._openDropdown(),this.m1.value="+",this._p3("")}_j(){this._m0(),this._s0(),this._t0()}_m0(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,allowDropdown:n,countrySearch:s}=this.options,r=!1;/\p{L}/u.test(this.a.value)&&(r=!0),this._a12=a=>{if(this.x&&a?.data==="+"&&i&&n&&s){let p=this.a.selectionStart||0,y=this.a.value.substring(0,p-1),g=this.a.value.substring(p);this.a.value=y+g,this._n0();return}this._v(this.a.value)&&this._8();let d=a?.data&&/[^+0-9]/.test(a.data),l=a?.inputType==="insertFromPaste"&&this.a.value;d||l&&!t?r=!0:/[^+0-9]/.test(this.a.value)||(r=!1);let h=a?.detail&&a.detail.isSetNumber;if(e&&!r&&!h){let p=this.a.selectionStart||0,g=this.a.value.substring(0,p).replace(/[^+0-9]/g,"").length,v=a?.inputType==="deleteContentForward",m=this._6(),C=$(m,this.a.value,u.utils,this.s,this.options.separateDialCode),_=j(g,C,p,v);this.a.value=C,this.a.setSelectionRange(_,_)}},this.a.addEventListener("input",this._a12)}_s0(){let{strictMode:t,separateDialCode:e,allowDropdown:i,countrySearch:n}=this.options;(t||e)&&(this._a5=s=>{if(s.key&&s.key.length===1&&!s.altKey&&!s.ctrlKey&&!s.metaKey){if(e&&i&&n&&s.key==="+"){s.preventDefault(),this._n0();return}if(t){let r=this.a.value,d=!(r.charAt(0)==="+")&&this.a.selectionStart===0&&s.key==="+",l=/^[0-9]$/.test(s.key),h=e?l:d||l,p=r.slice(0,this.a.selectionStart)+s.key+r.slice(this.a.selectionEnd),y=this._6(p),g=u.utils.getCoreNumber(y,this.s.iso2),v=this.n0&&g.length>this.n0,C=this._v0(y)!==null;(!h||v&&!C&&!d)&&s.preventDefault()}}},this.a.addEventListener("keydown",this._a5))}_t0(){this.options.strictMode&&(this._handlePasteEvent=t=>{t.preventDefault();let e=this.a,i=e.selectionStart,n=e.selectionEnd,s=e.value.slice(0,i),r=e.value.slice(n),a=this.s.iso2,d=t.clipboardData.getData("text"),l=i===0&&n>0,h=!e.value.startsWith("+")||l,p=d.replace(/[^0-9+]/g,""),y=p.startsWith("+"),g=p.replace(/\+/g,""),v=y&&h?`+${g}`:g,m=s+v+r,C=u.utils.getCoreNumber(m,a);for(;C.length===0&&m.length>0;)m=m.slice(0,-1),C=u.utils.getCoreNumber(m,a);if(!C)return;if(this.n0&&C.length>this.n0)if(e.selectionEnd===e.value.length){let U=C.length-this.n0;m=m.slice(0,m.length-U)}else return;e.value=m;let _=i+v.length;e.setSelectionRange(_,_),e.dispatchEvent(new InputEvent("input",{bubbles:!0}))},this.a.addEventListener("paste",this._handlePasteEvent))}_j2(t){let e=parseInt(this.a.getAttribute("maxlength")||"",10);return e&&t.length>e?t.substring(0,e):t}_trigger(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.a.dispatchEvent(i)}_openDropdown(){let{fixDropdownWidth:t,countrySearch:e}=this.options;if(t&&(this.m0.style.width=`${this.a.offsetWidth}px`),this.m0.classList.remove("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","true"),this._o(),e){let i=this.countryList.firstElementChild;i&&(this._x(i,!1),this.countryList.scrollTop=0),this.m1.focus()}this._p(),this.u.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}_o(){if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){let t=this.a.getBoundingClientRect(),e=this.a.offsetHeight;this.options.dropdownContainer&&(this.dropdown.style.top=`${t.top+e}px`,this.dropdown.style.left=`${t.left}px`,this._a4=()=>this._2(),window.addEventListener("scroll",this._a4))}}_p(){this._a0=i=>{let n=i.target?.closest(".iti__country");n&&this._x(n,!1)},this.countryList.addEventListener("mouseover",this._a0),this._a1=i=>{let n=i.target?.closest(".iti__country");n&&this._1(n)},this.countryList.addEventListener("click",this._a1),this._a2=i=>{!!i.target.closest(`#iti-${this.id}__dropdown-content`)||this._2()},setTimeout(()=>{document.documentElement.addEventListener("click",this._a2)},0);let t="",e=null;if(this._a3=i=>{["ArrowUp","ArrowDown","Enter","Escape"].includes(i.key)&&(i.preventDefault(),i.stopPropagation(),i.key==="ArrowUp"||i.key==="ArrowDown"?this._q(i.key):i.key==="Enter"?this._r():i.key==="Escape"&&this._2()),!this.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(i.key)&&(i.stopPropagation(),e&&clearTimeout(e),t+=i.key.toLowerCase(),this._p0(t),e=setTimeout(()=>{t=""},1e3))},document.addEventListener("keydown",this._a3),this.options.countrySearch){let i=()=>{let s=this.m1.value.trim();this._p3(s),this.m1.value?this.m3.classList.remove("iti__hide"):this.m3.classList.add("iti__hide")},n=null;this._a7=()=>{n&&clearTimeout(n),n=setTimeout(()=>{i(),n=null},100)},this.m1.addEventListener("input",this._a7),this._a6=()=>{this.m1.value="",this.m1.focus(),i()},this.m3.addEventListener("click",this._a6)}}_p0(t){for(let e of this.countries)if(e.name.substring(0,t.length).toLowerCase()===t){let n=e.nodeById[this.id];this._x(n,!1),this._3(n);break}}_p3(t){this.countryList.innerHTML="";let e;t===""?e=this.countries:e=this._k1(t);let i=!0;for(let n of e){let s=n.nodeById[this.id];s&&(this.countryList.appendChild(s),i&&(this._x(s,!1),i=!1))}i?(this._x(null,!1),this.m4&&this.m4.classList.remove("iti__hide")):this.m4&&this.m4.classList.add("iti__hide"),this.countryList.scrollTop=0,this._p4()}_k1(t){let e=L(t),i=[],n=[],s=[],r=[],a=[],d=[];for(let l of this.countries)l.iso2===e?i.push(l):l.normalisedName.startsWith(e)?n.push(l):l.normalisedName.includes(e)?s.push(l):e===l.dialCode||e===l.dialCodePlus?r.push(l):l.dialCodePlus.includes(e)?a.push(l):l.initials.includes(e)&&d.push(l);return[...i.sort((l,h)=>l.priority-h.priority),...n.sort((l,h)=>l.priority-h.priority),...s.sort((l,h)=>l.priority-h.priority),...r.sort((l,h)=>l.priority-h.priority),...a.sort((l,h)=>l.priority-h.priority),...d.sort((l,h)=>l.priority-h.priority)]}_p4(){let{i18n:t}=this.options,e=this.countryList.childElementCount,i;e===0?i=t.zeroSearchResults:t.searchResultsText?i=t.searchResultsText(e):e===1?i=t.oneSearchResult:i=t.multipleSearchResults.replace("${count}",e.toString()),this.m5.textContent=i}_q(t){let e=t==="ArrowUp"?this.c?.previousElementSibling:this.c?.nextElementSibling;!e&&this.countryList.childElementCount>1&&(e=t==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild),e&&(this._3(e),this._x(e,!1))}_r(){this.c&&this._1(this.c)}_u(t){let e=t;if(this.options.formatOnDisplay&&u.utils&&this.s){let i=this.options.nationalMode||e.charAt(0)!=="+"&&!this.options.separateDialCode,{NATIONAL:n,INTERNATIONAL:s}=u.utils.numberFormat,r=i?n:s;e=u.utils.formatNumber(e,this.s.iso2,r)}e=this._7(e),this.a.value=e}_v(t){let e=this._v0(t);return e!==null?this._z(e):!1}_u0(t){let{dialCode:e,nationalPrefix:i}=this.s;if(t.charAt(0)==="+"||!e)return t;let r=i&&t.charAt(0)===i&&!this.options.separateDialCode?t.substring(1):t;return`+${e}${r}`}_v0(t){let e=t.indexOf("+"),i=e?t.substring(e):t,n=this.s.iso2,s=this.s.dialCode;i=this._u0(i);let r=this._5(i,!0),a=b(i);if(r){let d=b(r),l=this.dialCodeToIso2Map[d];if(l.length===1)return l[0]===n?null:l[0];if(!n&&this.j&&l.includes(this.j))return this.j;if(s==="1"&&D(a))return null;let p=this.s.areaCodes&&a.length>d.length;if(!(n&&l.includes(n)&&!p))return l[0]}else{if(i.charAt(0)==="+"&&a.length)return"";if((!i||i==="+")&&!n)return this.j}return null}_x(t,e){let i=this.c;if(i&&(i.classList.remove("iti__highlight"),i.setAttribute("aria-selected","false")),this.c=t,this.c&&(this.c.classList.add("iti__highlight"),this.c.setAttribute("aria-selected","true"),this.options.countrySearch)){let n=this.c.getAttribute("id")||"";this.m1.setAttribute("aria-activedescendant",n)}e&&this.c.focus()}_z(t){let{separateDialCode:e,showFlags:i,i18n:n}=this.options,s=this.s.iso2||"";if(this.s=t?this.z0.get(t):{},this.s.iso2&&(this.j=this.s.iso2),this.selectedCountry){let r=t&&i?`iti__flag iti__${t}`:"iti__flag iti__globe",a,d;if(t){let{name:l,dialCode:h}=this.s;d=l,a=n.selectedCountryAriaLabel.replace("${countryName}",l).replace("${dialCode}",`+${h}`)}else d=n.noCountrySelected,a=n.noCountrySelected;this.l.className=r,this.selectedCountry.setAttribute("title",d),this.selectedCountry.setAttribute("aria-label",a)}if(e){let r=this.s.dialCode?`+${this.s.dialCode}`:"";this.t.innerHTML=r,this._z3()}return this._0(),this._z4(),s!==t}_z3(){if(this.selectedCountry){let t=this.options.separateDialCode?78:42,i=(this.selectedCountry.offsetWidth||this._z2()||t)+6;this.w?this.a.style.paddingLeft=`${i}px`:this.a.style.paddingRight=`${i}px`}}_z4(){let{strictMode:t,placeholderNumberType:e,validationNumberTypes:i}=this.options,{iso2:n}=this.s;if(t&&u.utils)if(n){let s=u.utils.numberType[e],r=u.utils.getExampleNumber(n,!1,s,!0),a=r;for(;u.utils.isPossibleNumber(r,n,i);)a=r,r+="0";let d=u.utils.getCoreNumber(a,n);this.n0=d.length,n==="by"&&(this.n0=d.length+1)}else this.n0=null}_z2(){if(this.a.parentNode){let t;try{t=window.top.document.body}catch{t=document.body}let e=this.a.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.k.cloneNode();e.appendChild(i);let n=this.selectedCountry.cloneNode(!0);i.appendChild(n);let s=n.offsetWidth;return t.removeChild(e),s}return 0}_0(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:n}=this.options,s=t==="aggressive"||!this.e&&t==="polite";if(u.utils&&s){let r=u.utils.numberType[e],a=this.s.iso2?u.utils.getExampleNumber(this.s.iso2,i,r):"";a=this._7(a),typeof n=="function"&&(a=n(a,this.s)),this.a.setAttribute("placeholder",a)}}_1(t){let e=t.getAttribute("data-country-code"),i=this._z(e);this._2();let n=t.getAttribute("data-dial-code");this._4(n),this.options.formatOnDisplay&&this._u(this.a.value),this.a.focus(),i&&this._8()}_2(){this.m0.classList.add("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","false"),this.c&&this.c.setAttribute("aria-selected","false"),this.options.countrySearch&&this.m1.removeAttribute("aria-activedescendant"),this.u.classList.remove("iti__arrow--up"),this.options.countrySearch&&(this.m1.removeEventListener("input",this._a7),this.m3.removeEventListener("click",this._a6)),document.documentElement.removeEventListener("click",this._a2),this.countryList.removeEventListener("mouseover",this._a0),this.countryList.removeEventListener("click",this._a1),this.options.dropdownContainer&&(this.options.useFullscreenPopup||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._a8&&window.removeEventListener("load",this._a8),this._trigger("close:countrydropdown")}_3(t){let e=this.countryList,i=document.documentElement.scrollTop,n=e.offsetHeight,s=e.getBoundingClientRect().top+i,r=s+n,a=t.offsetHeight,d=t.getBoundingClientRect().top+i,l=d+a,h=d-s+e.scrollTop;if(d<s)e.scrollTop=h;else if(l>r){let p=n-a;e.scrollTop=h-p}}_4(t){let e=this.a.value,i=`+${t}`,n;if(e.charAt(0)==="+"){let s=this._5(e);s?n=e.replace(s,i):n=i,this.a.value=n}}_5(t,e){let i="";if(t.charAt(0)==="+"){let n="";for(let s=0;s<t.length;s++){let r=t.charAt(s);if(/[0-9]/.test(r)){if(n+=r,e)this.dialCodeToIso2Map[n]&&(i=t.substring(0,s+1));else if(this.dialCodes.has(n)){i=t.substring(0,s+1);break}if(n.length===this.dialCodeMaxLen)break}}}return i}_6(t){let e=t||this.a.value.trim(),{dialCode:i}=this.s,n,s=b(e);return this.options.separateDialCode&&e.charAt(0)!=="+"&&i&&s?n=`+${i}`:n="",n+e}_7(t){let e=this._5(t),i=z(t,e,this.options.separateDialCode,this.s);return this._j2(i)}_8(){this._trigger("countrychange")}handleAutoCountry(){this.options.initialCountry==="auto"&&u.autoCountry&&(this.j=u.autoCountry,this.s.iso2||this.l.classList.contains("iti__globe")||this.setCountry(this.j),this.h())}handleUtils(){u.utils&&(this.a.value&&this._u(this.a.value),this.s.iso2&&(this._0(),this._z4())),this.i0()}destroy(){this.a.iti=void 0;let{allowDropdown:t,separateDialCode:e}=this.options;if(t){this._2(),this.selectedCountry.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);let s=this.a.closest("label");s&&s.removeEventListener("click",this._a9)}let{form:i}=this.a;this._a14&&i&&i.removeEventListener("submit",this._a14),this.a.removeEventListener("input",this._a12),this._a5&&this.a.removeEventListener("keydown",this._a5),this._handlePasteEvent&&this.a.removeEventListener("paste",this._handlePasteEvent),this.a.removeAttribute("data-intl-tel-input-id"),e&&(this.v?this.a.style.paddingRight=this.n1:this.a.style.paddingLeft=this.n2);let n=this.a.parentNode;n?.parentNode?.insertBefore(this.a,n),n?.parentNode?.removeChild(n),delete u.instances[this.id]}getExtension(){return u.utils?u.utils.getExtension(this._6(),this.s.iso2):""}getNumber(t){if(u.utils){let{iso2:e}=this.s;return u.utils.formatNumber(this._6(),e,t)}return""}getNumberType(){return u.utils?u.utils.getNumberType(this._6(),this.s.iso2):-99}getSelectedCountryData(){return this.s}getValidationError(){if(u.utils){let{iso2:t}=this.s;return u.utils.getValidationError(this._6(),t)}return-99}isValidNumber(){return this._9b(!1)}isValidNumberPrecise(){return this._9b(!0)}_9a(t){return u.utils?u.utils.isPossibleNumber(t,this.s.iso2,this.options.validationNumberTypes):null}_9b(t){if(!this.s.iso2)return!1;let e=r=>t?this._9c(r):this._9a(r),i=this._6(),n=i.search(/\p{L}/u);if(n>-1&&!this.options.allowPhonewords){let r=i.substring(0,n),a=e(r),d=e(i);return a&&d}return e(i)}_9c(t){return u.utils?u.utils.isValidNumber(t,this.s.iso2,this.options.validationNumberTypes):null}setCountry(t){let e=t?.toLowerCase();if(!A(e))throw new Error(`Invalid country code: '${e}'`);let i=this.s.iso2;(t&&e!==i||!t&&i)&&(this._z(e),this._4(this.s.dialCode),this.options.formatOnDisplay&&this._u(this.a.value),this._8())}setNumber(t){let e=this._v(t);this._u(t),e&&this._8(),this._trigger("input",{isSetNumber:!0})}setPlaceholderNumberType(t){this.options.placeholderNumberType=t,this._0()}setDisabled(t){this.a.disabled=t,t?this.selectedCountry.setAttribute("disabled","true"):this.selectedCountry.removeAttribute("disabled")}},st=o=>{if(!u.utils&&!u.startedLoadingUtilsScript){let t;if(typeof o=="function")try{t=Promise.resolve(o())}catch(e){return Promise.reject(e)}else return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof o}`));return u.startedLoadingUtilsScript=!0,t.then(e=>{let i=e?.default;if(!i||typeof i!="object")throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return u.utils=i,I("handleUtils"),!0}).catch(e=>{throw I("rejectUtilsScriptPromise",e),e})}return null},u=Object.assign((o,t)=>{let e=new E(o,t);return e._init(),o.setAttribute("data-intl-tel-input-id",e.id.toString()),u.instances[e.id]=e,o.iti=e,e},{defaults:N,documentReady:()=>document.readyState==="complete",getCountryData:()=>f,getInstance:o=>{let t=o.getAttribute("data-intl-tel-input-id");return t?u.instances[t]:null},instances:{},attachUtils:st,startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"25.10.9"}),ot=u;return J(rt);})();
27
+ </svg>`,this.m5=c("span",{class:"iti__a11y-text"},this.m0),this.m4=c("div",{class:"iti__no-results iti__hide","aria-hidden":"true"},this.m0),this.m4.textContent=t.zeroSearchResults}_k0(){this.k&&(this._z3(),this.k.classList.remove("iti__v-hide"))}_l0(t){let{hiddenInput:e}=this.options;if(e){let i=this.a.getAttribute("name")||"",n=e(i);if(n.phone){let s=this.a.form?.querySelector(`input[name="${n.phone}"]`);s?this.hiddenInput=s:(this.hiddenInput=c("input",{type:"hidden",name:n.phone}),t.appendChild(this.hiddenInput))}if(n.country){let s=this.a.form?.querySelector(`input[name="${n.country}"]`);s?this.m9=s:(this.m9=c("input",{type:"hidden",name:n.country}),t.appendChild(this.m9))}}}_g(){for(let t=0;t<this.countries.length;t++){let e=this.countries[t],i=t===0?"iti__highlight":"",n=c("li",{id:`iti-${this.id}__item-${e.iso2}`,class:`iti__country ${i}`,tabindex:"-1",role:"option","data-dial-code":e.dialCode,"data-country-code":e.iso2,"aria-selected":"false"},this.countryList);e.nodeById[this.id]=n;let s="";this.options.showFlags&&(s+=`<div class='iti__flag iti__${e.iso2}'></div>`),s+=`<span class='iti__country-name'>${e.name}</span>`,s+=`<span class='iti__dial-code' dir='ltr'>+${e.dialCode}</span>`,n.insertAdjacentHTML("beforeend",s)}}_h(t=!1){let e=this.a.getAttribute("value"),i=this.a.value,s=e&&e.charAt(0)==="+"&&(!i||i.charAt(0)!=="+")?e:i,r=this._5(s),a=D(s),{initialCountry:u,geoIpLookup:l}=this.options,h=u==="auto"&&l;if(r&&!a)this._v(s);else if(!h||t){let p=u?u.toLowerCase():"";A(p)?this._z(p):r&&a?this._z("us"):this._z("")}s&&this._u(s)}_i(){this._j(),this.options.allowDropdown&&this._i2(),(this.hiddenInput||this.m9)&&this.a.form&&this._i0()}_i0(){this._a14=()=>{this.hiddenInput&&(this.hiddenInput.value=this.getNumber()),this.m9&&(this.m9.value=this.getSelectedCountryData().iso2||"")},this.a.form?.addEventListener("submit",this._a14)}_i2(){this._a9=e=>{this.m0.classList.contains("iti__hide")?this.a.focus():e.preventDefault()};let t=this.a.closest("label");t&&t.addEventListener("click",this._a9),this._a10=()=>{this.m0.classList.contains("iti__hide")&&!this.a.disabled&&!this.a.readOnly&&this._openDropdown()},this.selectedCountry.addEventListener("click",this._a10),this._a11=e=>{this.m0.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this._openDropdown()),e.key==="Tab"&&this._2()},this.k.addEventListener("keydown",this._a11)}_i3(){let{loadUtils:t,initialCountry:e,geoIpLookup:i}=this.options;t&&!d.utils?(this._doAttachUtils=()=>{d.attachUtils(t)?.catch(()=>{})},d.documentReady()?this._doAttachUtils():(this._a8=()=>{this._doAttachUtils()},window.addEventListener("load",this._a8))):this.i0(),e==="auto"&&i&&!this.s.iso2?this._i4():this.h()}_i4(){d.autoCountry?this.handleAutoCountry():d.startedLoadingAutoCountry||(d.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup((t="")=>{let e=t.toLowerCase();A(e)?(d.autoCountry=e,setTimeout(()=>I("handleAutoCountry"))):(this._h(!0),I("rejectAutoCountryPromise"))},()=>{this._h(!0),I("rejectAutoCountryPromise")}))}_n0(){this._openDropdown(),this.m1.value="+",this._p3("")}_j(){this._m0(),this._s0(),this._t0()}_m0(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,allowDropdown:n,countrySearch:s}=this.options,r=!1;/\p{L}/u.test(this.a.value)&&(r=!0),this._a12=a=>{if(this.x&&a?.data==="+"&&i&&n&&s){let p=this.a.selectionStart||0,y=this.a.value.substring(0,p-1),g=this.a.value.substring(p);this.a.value=y+g,this._n0();return}this._v(this.a.value)&&this._8();let u=a?.data&&/[^+0-9]/.test(a.data),l=a?.inputType==="insertFromPaste"&&this.a.value;u||l&&!t?r=!0:/[^+0-9]/.test(this.a.value)||(r=!1);let h=a?.detail&&a.detail.isSetNumber;if(e&&!r&&!h){let p=this.a.selectionStart||0,g=this.a.value.substring(0,p).replace(/[^+0-9]/g,"").length,v=a?.inputType==="deleteContentForward",m=this._6(),C=z(m,this.a.value,d.utils,this.s,this.options.separateDialCode),_=$(g,C,p,v);this.a.value=C,this.a.setSelectionRange(_,_)}},this.a.addEventListener("input",this._a12)}_s0(){let{strictMode:t,separateDialCode:e,allowDropdown:i,countrySearch:n}=this.options;(t||e)&&(this._a5=s=>{if(s.key&&s.key.length===1&&!s.altKey&&!s.ctrlKey&&!s.metaKey){if(e&&i&&n&&s.key==="+"){s.preventDefault(),this._n0();return}if(t){let r=this.a.value,u=!(r.charAt(0)==="+")&&this.a.selectionStart===0&&s.key==="+",l=/^[0-9]$/.test(s.key),h=e?l:u||l,p=r.slice(0,this.a.selectionStart)+s.key+r.slice(this.a.selectionEnd),y=this._6(p),g=d.utils.getCoreNumber(y,this.s.iso2),v=this.n0&&g.length>this.n0,C=this._v0(y)!==null;(!h||v&&!C&&!u)&&s.preventDefault()}}},this.a.addEventListener("keydown",this._a5))}_t0(){this.options.strictMode&&(this._handlePasteEvent=t=>{t.preventDefault();let e=this.a,i=e.selectionStart,n=e.selectionEnd,s=e.value.slice(0,i),r=e.value.slice(n),a=this.s.iso2,u=t.clipboardData.getData("text"),l=i===0&&n>0,h=!e.value.startsWith("+")||l,p=u.replace(/[^0-9+]/g,""),y=p.startsWith("+"),g=p.replace(/\+/g,""),v=y&&h?`+${g}`:g,m=s+v+r,C=d.utils.getCoreNumber(m,a);for(;C.length===0&&m.length>0;)m=m.slice(0,-1),C=d.utils.getCoreNumber(m,a);if(!C)return;if(this.n0&&C.length>this.n0)if(e.selectionEnd===e.value.length){let j=C.length-this.n0;m=m.slice(0,m.length-j)}else return;e.value=m;let _=i+v.length;e.setSelectionRange(_,_),e.dispatchEvent(new InputEvent("input",{bubbles:!0}))},this.a.addEventListener("paste",this._handlePasteEvent))}_j2(t){let e=parseInt(this.a.getAttribute("maxlength")||"",10);return e&&t.length>e?t.substring(0,e):t}_trigger(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.a.dispatchEvent(i)}_openDropdown(){let{fixDropdownWidth:t,countrySearch:e}=this.options;if(t&&(this.m0.style.width=`${this.a.offsetWidth}px`),this.m0.classList.remove("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","true"),this._o(),e){let i=this.countryList.firstElementChild;i&&(this._x(i,!1),this.countryList.scrollTop=0),this.m1.focus()}this._p(),this.u.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}_o(){if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){let t=this.a.getBoundingClientRect(),e=this.a.offsetHeight;this.options.dropdownContainer&&(this.dropdown.style.top=`${t.top+e}px`,this.dropdown.style.left=`${t.left}px`,this._a4=()=>this._2(),window.addEventListener("scroll",this._a4))}}_p(){this._a0=i=>{let n=i.target?.closest(".iti__country");n&&this._x(n,!1)},this.countryList.addEventListener("mouseover",this._a0),this._a1=i=>{let n=i.target?.closest(".iti__country");n&&this._1(n)},this.countryList.addEventListener("click",this._a1),this._a2=i=>{!!i.target.closest(`#iti-${this.id}__dropdown-content`)||this._2()},setTimeout(()=>{document.documentElement.addEventListener("click",this._a2)},0);let t="",e=null;if(this._a3=i=>{["ArrowUp","ArrowDown","Enter","Escape"].includes(i.key)&&(i.preventDefault(),i.stopPropagation(),i.key==="ArrowUp"||i.key==="ArrowDown"?this._q(i.key):i.key==="Enter"?this._r():i.key==="Escape"&&this._2()),!this.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(i.key)&&(i.stopPropagation(),e&&clearTimeout(e),t+=i.key.toLowerCase(),this._p0(t),e=setTimeout(()=>{t=""},1e3))},document.addEventListener("keydown",this._a3),this.options.countrySearch){let i=()=>{let s=this.m1.value.trim();this._p3(s),this.m1.value?this.m3.classList.remove("iti__hide"):this.m3.classList.add("iti__hide")},n=null;this._a7=()=>{n&&clearTimeout(n),n=setTimeout(()=>{i(),n=null},100)},this.m1.addEventListener("input",this._a7),this._a6=()=>{this.m1.value="",this.m1.focus(),i()},this.m3.addEventListener("click",this._a6)}}_p0(t){for(let e of this.countries)if(e.name.substring(0,t.length).toLowerCase()===t){let n=e.nodeById[this.id];this._x(n,!1),this._3(n);break}}_p3(t){this.countryList.innerHTML="";let e;t===""?e=this.countries:e=this._k1(t);let i=!0;for(let n of e){let s=n.nodeById[this.id];s&&(this.countryList.appendChild(s),i&&(this._x(s,!1),i=!1))}i?(this._x(null,!1),this.m4&&this.m4.classList.remove("iti__hide")):this.m4&&this.m4.classList.add("iti__hide"),this.countryList.scrollTop=0,this._p4()}_k1(t){let e=L(t),i=[],n=[],s=[],r=[],a=[],u=[];for(let l of this.countries)l.iso2===e?i.push(l):l.normalisedName.startsWith(e)?n.push(l):l.normalisedName.includes(e)?s.push(l):e===l.dialCode||e===l.dialCodePlus?r.push(l):l.dialCodePlus.includes(e)?a.push(l):l.initials.includes(e)&&u.push(l);return[...i.sort((l,h)=>l.priority-h.priority),...n.sort((l,h)=>l.priority-h.priority),...s.sort((l,h)=>l.priority-h.priority),...r.sort((l,h)=>l.priority-h.priority),...a.sort((l,h)=>l.priority-h.priority),...u.sort((l,h)=>l.priority-h.priority)]}_p4(){let{i18n:t}=this.options,e=this.countryList.childElementCount,i;e===0?i=t.zeroSearchResults:t.searchResultsText?i=t.searchResultsText(e):e===1?i=t.oneSearchResult:i=t.multipleSearchResults.replace("${count}",e.toString()),this.m5.textContent=i}_q(t){let e=t==="ArrowUp"?this.c?.previousElementSibling:this.c?.nextElementSibling;!e&&this.countryList.childElementCount>1&&(e=t==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild),e&&(this._3(e),this._x(e,!1))}_r(){this.c&&this._1(this.c)}_u(t){let e=t;if(this.options.formatOnDisplay&&d.utils&&this.s){let i=this.options.nationalMode||e.charAt(0)!=="+"&&!this.options.separateDialCode,{NATIONAL:n,INTERNATIONAL:s}=d.utils.numberFormat,r=i?n:s;e=d.utils.formatNumber(e,this.s.iso2,r)}e=this._7(e),this.a.value=e}_v(t){let e=this._v0(t);return e!==null?this._z(e):!1}_u0(t){let{dialCode:e,nationalPrefix:i}=this.s;if(t.charAt(0)==="+"||!e)return t;let r=i&&t.charAt(0)===i&&!this.options.separateDialCode?t.substring(1):t;return`+${e}${r}`}_v0(t){let e=t.indexOf("+"),i=e?t.substring(e):t,n=this.s.iso2,s=this.s.dialCode;i=this._u0(i);let r=this._5(i,!0),a=b(i);if(r){let u=b(r),l=this.dialCodeToIso2Map[u];if(l.length===1)return l[0]===n?null:l[0];if(!n&&this.j&&l.includes(this.j))return this.j;if(s==="1"&&D(a))return null;let p=this.s.areaCodes&&a.length>u.length;if(!(n&&l.includes(n)&&!p))return l[0]}else{if(i.charAt(0)==="+"&&a.length)return"";if((!i||i==="+")&&!n)return this.j}return null}_x(t,e){let i=this.c;if(i&&(i.classList.remove("iti__highlight"),i.setAttribute("aria-selected","false")),this.c=t,this.c&&(this.c.classList.add("iti__highlight"),this.c.setAttribute("aria-selected","true"),this.options.countrySearch)){let n=this.c.getAttribute("id")||"";this.m1.setAttribute("aria-activedescendant",n)}e&&this.c.focus()}_z(t){let{separateDialCode:e,showFlags:i,i18n:n}=this.options,s=this.s.iso2||"";if(this.s=t?this.z0.get(t):{},this.s.iso2&&(this.j=this.s.iso2),this.selectedCountry){let r=t&&i?`iti__flag iti__${t}`:"iti__flag iti__globe",a,u;if(t){let{name:l,dialCode:h}=this.s;u=l,a=n.selectedCountryAriaLabel.replace("${countryName}",l).replace("${dialCode}",`+${h}`)}else u=n.noCountrySelected,a=n.noCountrySelected;this.l.className=r,this.selectedCountry.setAttribute("title",u),this.selectedCountry.setAttribute("aria-label",a)}if(e){let r=this.s.dialCode?`+${this.s.dialCode}`:"";this.t.innerHTML=r,this._z3()}return this._0(),this._z4(),s!==t}_z3(){if(this.selectedCountry){let t=this.options.separateDialCode?78:42,i=(this.selectedCountry.offsetWidth||this._z2()||t)+6;this.w?this.a.style.paddingLeft=`${i}px`:this.a.style.paddingRight=`${i}px`}}_z4(){let{strictMode:t,placeholderNumberType:e,validationNumberTypes:i}=this.options,{iso2:n}=this.s;if(t&&d.utils)if(n){let s=d.utils.numberType[e],r=d.utils.getExampleNumber(n,!1,s,!0),a=r;for(;d.utils.isPossibleNumber(r,n,i);)a=r,r+="0";let u=d.utils.getCoreNumber(a,n);this.n0=u.length,n==="by"&&(this.n0=u.length+1)}else this.n0=null}_z2(){if(this.a.parentNode){let t;try{t=window.top.document.body}catch{t=document.body}let e=this.a.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.k.cloneNode();e.appendChild(i);let n=this.selectedCountry.cloneNode(!0);i.appendChild(n);let s=n.offsetWidth;return t.removeChild(e),s}return 0}_0(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:n}=this.options,s=t==="aggressive"||!this.e&&t==="polite";if(d.utils&&s){let r=d.utils.numberType[e],a=this.s.iso2?d.utils.getExampleNumber(this.s.iso2,i,r):"";a=this._7(a),typeof n=="function"&&(a=n(a,this.s)),this.a.setAttribute("placeholder",a)}}_1(t){let e=t.getAttribute("data-country-code"),i=this._z(e);this._2();let n=t.getAttribute("data-dial-code");this._4(n),this.options.formatOnDisplay&&this._u(this.a.value),this.a.focus(),i&&this._8()}_2(){this.m0.classList.add("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","false"),this.c&&this.c.setAttribute("aria-selected","false"),this.options.countrySearch&&this.m1.removeAttribute("aria-activedescendant"),this.u.classList.remove("iti__arrow--up"),this.options.countrySearch&&(this.m1.removeEventListener("input",this._a7),this.m3.removeEventListener("click",this._a6)),document.removeEventListener("keydown",this._a3),document.documentElement.removeEventListener("click",this._a2),this.countryList.removeEventListener("mouseover",this._a0),this.countryList.removeEventListener("click",this._a1),this.options.dropdownContainer&&(this.options.useFullscreenPopup||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}_3(t){let e=this.countryList,i=document.documentElement.scrollTop,n=e.offsetHeight,s=e.getBoundingClientRect().top+i,r=s+n,a=t.offsetHeight,u=t.getBoundingClientRect().top+i,l=u+a,h=u-s+e.scrollTop;if(u<s)e.scrollTop=h;else if(l>r){let p=n-a;e.scrollTop=h-p}}_4(t){let e=this.a.value,i=`+${t}`,n;if(e.charAt(0)==="+"){let s=this._5(e);s?n=e.replace(s,i):n=i,this.a.value=n}}_5(t,e){let i="";if(t.charAt(0)==="+"){let n="";for(let s=0;s<t.length;s++){let r=t.charAt(s);if(/[0-9]/.test(r)){if(n+=r,e)this.dialCodeToIso2Map[n]&&(i=t.substring(0,s+1));else if(this.dialCodes.has(n)){i=t.substring(0,s+1);break}if(n.length===this.dialCodeMaxLen)break}}}return i}_6(t){let e=t||this.a.value.trim(),{dialCode:i}=this.s,n,s=b(e);return this.options.separateDialCode&&e.charAt(0)!=="+"&&i&&s?n=`+${i}`:n="",n+e}_7(t){let e=this._5(t),i=U(t,e,this.options.separateDialCode,this.s);return this._j2(i)}_8(){this._trigger("countrychange")}handleAutoCountry(){this.options.initialCountry==="auto"&&d.autoCountry&&(this.j=d.autoCountry,this.s.iso2||this.l.classList.contains("iti__globe")||this.setCountry(this.j),this.h())}handleUtils(){d.utils&&(this.a.value&&this._u(this.a.value),this.s.iso2&&(this._0(),this._z4())),this.i0()}destroy(){this.a.iti=void 0;let{allowDropdown:t,separateDialCode:e}=this.options;if(t){this._2(),this.selectedCountry.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);let s=this.a.closest("label");s&&s.removeEventListener("click",this._a9)}let{form:i}=this.a;this._a14&&i&&i.removeEventListener("submit",this._a14),this.a.removeEventListener("input",this._a12),this._a5&&this.a.removeEventListener("keydown",this._a5),this._handlePasteEvent&&this.a.removeEventListener("paste",this._handlePasteEvent),this._a8&&window.removeEventListener("load",this._a8),this.a.removeAttribute("data-intl-tel-input-id"),e&&(this.v?this.a.style.paddingRight=this.n1:this.a.style.paddingLeft=this.n2);let n=this.a.parentNode;n?.parentNode?.insertBefore(this.a,n),n?.parentNode?.removeChild(n),delete d.instances[this.id]}getExtension(){return d.utils?d.utils.getExtension(this._6(),this.s.iso2):""}getNumber(t){if(d.utils){let{iso2:e}=this.s;return d.utils.formatNumber(this._6(),e,t)}return""}getNumberType(){return d.utils?d.utils.getNumberType(this._6(),this.s.iso2):-99}getSelectedCountryData(){return this.s}getValidationError(){if(d.utils){let{iso2:t}=this.s;return d.utils.getValidationError(this._6(),t)}return-99}isValidNumber(){return this._9b(!1)}isValidNumberPrecise(){return this._9b(!0)}_9a(t){return d.utils?d.utils.isPossibleNumber(t,this.s.iso2,this.options.validationNumberTypes):null}_9b(t){if(!this.s.iso2)return!1;let e=r=>t?this._9c(r):this._9a(r),i=this._6(),n=i.search(/\p{L}/u);if(n>-1&&!this.options.allowPhonewords){let r=i.substring(0,n),a=e(r),u=e(i);return a&&u}return e(i)}_9c(t){return d.utils?d.utils.isValidNumber(t,this.s.iso2,this.options.validationNumberTypes):null}setCountry(t){let e=t?.toLowerCase();if(!A(e))throw new Error(`Invalid country code: '${e}'`);let i=this.s.iso2;(t&&e!==i||!t&&i)&&(this._z(e),this._4(this.s.dialCode),this.options.formatOnDisplay&&this._u(this.a.value),this._8())}setNumber(t){let e=this._v(t);this._u(t),e&&this._8(),this._trigger("input",{isSetNumber:!0})}setPlaceholderNumberType(t){this.options.placeholderNumberType=t,this._0()}setDisabled(t){this.a.disabled=t,t?this.selectedCountry.setAttribute("disabled","true"):this.selectedCountry.removeAttribute("disabled")}},st=o=>{if(!d.utils&&!d.startedLoadingUtilsScript){let t;if(typeof o=="function")try{t=Promise.resolve(o())}catch(e){return Promise.reject(e)}else return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof o}`));return d.startedLoadingUtilsScript=!0,t.then(e=>{let i=e?.default;if(!i||typeof i!="object")throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return d.utils=i,I("handleUtils"),!0}).catch(e=>{throw I("rejectUtilsScriptPromise",e),e})}return null},d=Object.assign((o,t)=>{let e=new E(o,t);return e._init(),o.setAttribute("data-intl-tel-input-id",e.id.toString()),d.instances[e.id]=e,o.iti=e,e},{defaults:N,documentReady:()=>document.readyState==="complete",getCountryData:()=>f,getInstance:o=>{let t=o.getAttribute("data-intl-tel-input-id");return t?d.instances[t]:null},instances:{},attachUtils:st,startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"25.10.10"}),ot=d;return J(rt);})();
28
28
 
29
29
  // UMD
30
30
  return factoryOutput.default;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * International Telephone Input v25.10.9
2
+ * International Telephone Input v25.10.10
3
3
  * https://github.com/jackocnr/intl-tel-input.git
4
4
  * Licensed under the MIT license
5
5
  */
@@ -2376,14 +2376,16 @@ var factoryOutput = (() => {
2376
2376
  _initRequests() {
2377
2377
  let { loadUtils, initialCountry, geoIpLookup } = this.options;
2378
2378
  if (loadUtils && !intlTelInput.utils) {
2379
- this._handlePageLoad = () => {
2380
- window.removeEventListener("load", this._handlePageLoad);
2379
+ this._doAttachUtils = () => {
2381
2380
  intlTelInput.attachUtils(loadUtils)?.catch(() => {
2382
2381
  });
2383
2382
  };
2384
2383
  if (intlTelInput.documentReady()) {
2385
- this._handlePageLoad();
2384
+ this._doAttachUtils();
2386
2385
  } else {
2386
+ this._handlePageLoad = () => {
2387
+ this._doAttachUtils();
2388
+ };
2387
2389
  window.addEventListener("load", this._handlePageLoad);
2388
2390
  }
2389
2391
  } else {
@@ -3048,6 +3050,7 @@ var factoryOutput = (() => {
3048
3050
  this.searchInput.removeEventListener("input", this._handleSearchChange);
3049
3051
  this.searchClearButton.removeEventListener("click", this._handleSearchClear);
3050
3052
  }
3053
+ document.removeEventListener("keydown", this._handleKeydownOnDropdown);
3051
3054
  document.documentElement.removeEventListener(
3052
3055
  "click",
3053
3056
  this._handleClickOffToClose
@@ -3065,9 +3068,6 @@ var factoryOutput = (() => {
3065
3068
  this.dropdown.parentNode.removeChild(this.dropdown);
3066
3069
  }
3067
3070
  }
3068
- if (this._handlePageLoad) {
3069
- window.removeEventListener("load", this._handlePageLoad);
3070
- }
3071
3071
  this._trigger("close:countrydropdown");
3072
3072
  }
3073
3073
  //* Check if an element is visible within it's container, else scroll until it is.
@@ -3220,6 +3220,9 @@ var factoryOutput = (() => {
3220
3220
  if (this._handlePasteEvent) {
3221
3221
  this.telInput.removeEventListener("paste", this._handlePasteEvent);
3222
3222
  }
3223
+ if (this._handlePageLoad) {
3224
+ window.removeEventListener("load", this._handlePageLoad);
3225
+ }
3223
3226
  this.telInput.removeAttribute("data-intl-tel-input-id");
3224
3227
  if (separateDialCode) {
3225
3228
  if (this.isRTL) {
@@ -3401,7 +3404,7 @@ var factoryOutput = (() => {
3401
3404
  attachUtils,
3402
3405
  startedLoadingUtilsScript: false,
3403
3406
  startedLoadingAutoCountry: false,
3404
- version: "25.10.9"
3407
+ version: "25.10.10"
3405
3408
  }
3406
3409
  );
3407
3410
  var intl_tel_input_default = intlTelInput;