PageSourceSearch

https://0hh.ru/assets/intlTelInput.js?min

js 0hh.ru collected 2026-10-09 04:34:48 UTC 49,019 bytes, 1,118 lines download raw bytes

1/*
2 * International Telephone Input v17.0.13
3 * https://github.com/jackocnr/intl-tel-input.git
4 * Licensed under the MIT license
5 */
6
7!(function (a) {
8  "object" == typeof module && module.exports ? (module.exports = a()) : (window.intlTelInput = a());
9})(function (a) {
10  "use strict";
11  return (function () {
12    function b(a, b) {
13      if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function");
14    }
15    function c(a, b) {
16      for (var c = 0; c < b.length; c++) {
17        var d = b[c];
18        (d.enumerable = d.enumerable || !1), (d.configurable = !0), "value" in d && (d.writable = !0), Object.defineProperty(a, d.key, d);
19      }
20    }
21    function d(a, b, d) {
22      return b && c(a.prototype, b), d && c(a, d), a;
23    }
24    for (
25      var e = [
26          ["Afghanistan (‫افغانستان‬‎)", "af", "93"],
27          ["Albania (Shqipëri)", "al", "355"],
28          ["Algeria (‫الجزائر‬‎)", "dz", "213"],
29          ["American Samoa", "as", "1", 5, ["684"]],
30          ["Andorra", "ad", "376"],
31          ["Angola", "ao", "244"],
32          ["Anguilla", "ai", "1", 6, ["264"]],
33          ["Antigua and Barbuda", "ag", "1", 7, ["268"]],
34          ["Argentina", "ar", "54"],
35          ["Armenia (Հայաստան)", "am", "374"],
36          ["Aruba", "aw", "297"],
37          ["Ascension Island", "ac", "247"],
38          ["Australia", "au", "61", 0],
39          ["Austria (Österreich)", "at", "43"],
40          ["Azerbaijan (Azərbaycan)", "az", "994"],
41          ["Bahamas", "bs", "1", 8, ["242"]],
42          ["Bahrain (‫البحرين‬‎)", "bh", "973"],
43          ["Bangladesh (বাংলাদেশ)", "bd", "880"],
44          ["Barbados", "bb", "1", 9, ["246"]],
45          ["Belarus (Беларусь)", "by", "375"],
46          ["Belgium (België)", "be", "32"],
47          ["Belize", "bz", "501"],
48          ["Benin (Bénin)", "bj", "229"],
49          ["Bermuda", "bm", "1", 10, ["441"]],
50          ["Bhutan (འབྲུག)", "bt", "975"],
51          ["Bolivia", "bo", "591"],
52          ["Bosnia and Herzegovina (Босна и Херцеговина)", "ba", "387"],
53          ["Botswana", "bw", "267"],
54          ["Brazil (Brasil)", "br", "55"],
55          ["British Indian Ocean Territory", "io", "246"],
56          ["British Virgin Islands", "vg", "1", 11, ["284"]],
57          ["Brunei", "bn", "673"],
58          ["Bulgaria (България)", "bg", "359"],
59          ["Burkina Faso", "bf", "226"],
60          ["Burundi (Uburundi)", "bi", "257"],
61          ["Cambodia (កម្ពុជា)", "kh", "855"],
62          ["Cameroon (Cameroun)", "cm", "237"],
63          ["Canada", "ca", "1", 1, ["204", "226", "236", "249", "250", "289", "306", "343", "365", "387", "403", "416", "418", "431", "437", "438", "450", "506", "514", "519", "548", "579", "581", "587", "604", "613", "639", "647", "672", "705", "709", "742", "778", "780", "782", "807", "819", "825", "867", "873", "902", "905"]],
64          ["Cape Verde (Kabu Verdi)", "cv", "238"],
65          ["Caribbean Netherlands", "bq", "599", 1, ["3", "4", "7"]],
66          ["Cayman Islands", "ky", "1", 12, ["345"]],
67          ["Central African Republic (République centrafricaine)", "cf", "236"],
68          ["Chad (Tchad)", "td", "235"],
69          ["Chile", "cl", "56"],
70          ["China (中国)", "cn", "86"],
71          ["Christmas Island", "cx", "61", 2, ["89164"]],
72          ["Cocos (Keeling) Islands", "cc", "61", 1, ["89162"]],
73          ["Colombia", "co", "57"],
74          ["Comoros (‫جزر القمر‬‎)", "km", "269"],
75          ["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)", "cd", "243"],
76          ["Congo (Republic) (Congo-Brazzaville)", "cg", "242"],
77          ["Cook Islands", "ck", "682"],
78          ["Costa Rica", "cr", "506"],
79          ["Côte d’Ivoire", "ci", "225"],
80          ["Croatia (Hrvatska)", "hr", "385"],
81          ["Cuba", "cu", "53"],
82          ["Curaçao", "cw", "599", 0],
83          ["Cyprus (Κύπρος)", "cy", "357"],
84          ["Czech Republic (Česká republika)", "cz", "420"],
85          ["Denmark (Danmark)", "dk", "45"],
86          ["Djibouti", "dj", "253"],
87          ["Dominica", "dm", "1", 13, ["767"]],
88          ["Dominican Republic (República Dominicana)", "do", "1", 2, ["809", "829", "849"]],
89          ["Ecuador", "ec", "593"],
90          ["Egypt (‫مصر‬‎)", "eg", "20"],
91          ["El Salvador", "sv", "503"],
92          ["Equatorial Guinea (Guinea Ecuatorial)", "gq", "240"],
93          ["Eritrea", "er", "291"],
94          ["Estonia (Eesti)", "ee", "372"],
95          ["Eswatini", "sz", "268"],
96          ["Ethiopia", "et", "251"],
97          ["Falkland Islands (Islas Malvinas)", "fk", "500"],
98          ["Faroe Islands (Føroyar)", "fo", "298"],
99          ["Fiji", "fj", "679"],
100          ["Finland (Suomi)", "fi", "358", 0],
101          ["France", "fr", "33"],
102          ["French Guiana (Guyane française)", "gf", "594"],
103          ["French Polynesia (Polynésie française)", "pf", "689"],
104          ["Gabon", "ga", "241"],
105          ["Gambia", "gm", "220"],
106          ["Georgia (საქართველო)", "ge", "995"],
107          ["Germany (Deutschland)", "de", "49"],
108          ["Ghana (Gaana)", "gh", "233"],
109          ["Gibraltar", "gi", "350"],
110          ["Greece (Ελλάδα)", "gr", "30"],
111          ["Greenland (Kalaallit Nunaat)", "gl", "299"],
112          ["Grenada", "gd", "1", 14, ["473"]],
113          ["Guadeloupe", "gp", "590", 0],
114          ["Guam", "gu", "1", 15, ["671"]],
115          ["Guatemala", "gt", "502"],
116          ["Guernsey", "gg", "44", 1, ["1481", "7781", "7839", "7911"]],
117          ["Guinea (Guinée)", "gn", "224"],
118          ["Guinea-Bissau (Guiné Bissau)", "gw", "245"],
119          ["Guyana", "gy", "592"],
120          ["Haiti", "ht", "509"],
121          ["Honduras", "hn", "504"],
122          ["Hong Kong (香港)", "hk", "852"],
123          ["Hungary (Magyarország)", "hu", "36"],
124          ["Iceland (Ísland)", "is", "354"],
125          ["India (भारत)", "in", "91"],
126          ["Indonesia", "id", "62"],
127          ["Iran (‫ایران‬‎)", "ir", "98"],
128          ["Iraq (‫العراق‬‎)", "iq", "964"],
129          ["Ireland", "ie", "353"],
130          ["Isle of Man", "im", "44", 2, ["1624", "74576", "7524", "7924", "7624"]],
131          ["Israel (‫ישראל‬‎)", "il", "972"],
132          ["Italy (Italia)", "it", "39", 0],
133          ["Jamaica", "jm", "1", 4, ["876", "658"]],
134          ["Japan (日本)", "jp", "81"],
135          ["Jersey", "je", "44", 3, ["1534", "7509", "7700", "7797", "7829", "7937"]],
136          ["Jordan (‫الأردن‬‎)", "jo", "962"],
137          ["Kazakhstan (Казахстан)", "kz", "7", 1, ["33", "7"]],
138          ["Kenya", "ke", "254"],
139          ["Kiribati", "ki", "686"],
140          ["Kosovo", "xk", "383"],
141          ["Kuwait (‫الكويت‬‎)", "kw", "965"],
142          ["Kyrgyzstan (Кыргызстан)", "kg", "996"],
143          ["Laos (ລາວ)", "la", "856"],
144          ["Latvia (Latvija)", "lv", "371"],
145          ["Lebanon (‫لبنان‬‎)", "lb", "961"],
146          ["Lesotho", "ls", "266"],
147          ["Liberia", "lr", "231"],
148          ["Libya (‫ليبيا‬‎)", "ly", "218"],
149          ["Liechtenstein", "li", "423"],
150          ["Lithuania (Lietuva)", "lt", "370"],
151          ["Luxembourg", "lu", "352"],
152          ["Macau (澳門)", "mo", "853"],
153          ["Macedonia (FYROM) (Македонија)", "mk", "389"],
154          ["Madagascar (Madagasikara)", "mg", "261"],
155          ["Malawi", "mw", "265"],
156          ["Malaysia", "my", "60"],
157          ["Maldives", "mv", "960"],
158          ["Mali", "ml", "223"],
159          ["Malta", "mt", "356"],
160          ["Marshall Islands", "mh", "692"],
161          ["Martinique", "mq", "596"],
162          ["Mauritania (‫موريتانيا‬‎)", "mr", "222"],
163          ["Mauritius (Moris)", "mu", "230"],
164          ["Mayotte", "yt", "262", 1, ["269", "639"]],
165          ["Mexico (México)", "mx", "52"],
166          ["Micronesia", "fm", "691"],
167          ["Moldova (Republica Moldova)", "md", "373"],
168          ["Monaco", "mc", "377"],
169          ["Mongolia (Монгол)", "mn", "976"],
170          ["Montenegro (Crna Gora)", "me", "382"],
171          ["Montserrat", "ms", "1", 16, ["664"]],
172          ["Morocco (‫المغرب‬‎)", "ma", "212", 0],
173          ["Mozambique (Moçambique)", "mz", "258"],
174          ["Myanmar (Burma) (မြန်မာ)", "mm", "95"],
175          ["Namibia (Namibië)", "na", "264"],
176          ["Nauru", "nr", "674"],
177          ["Nepal (नेपाल)", "np", "977"],
178          ["Netherlands (Nederland)", "nl", "31"],
179          ["New Caledonia (Nouvelle-Calédonie)", "nc", "687"],
180          ["New Zealand", "nz", "64"],
181          ["Nicaragua", "ni", "505"],
182          ["Niger (Nijar)", "ne", "227"],
183          ["Nigeria", "ng", "234"],
184          ["Niue", "nu", "683"],
185          ["Norfolk Island", "nf", "672"],
186          ["North Korea (조선 민주주의 인민 공화국)", "kp", "850"],
187          ["Northern Mariana Islands", "mp", "1", 17, ["670"]],
188          ["Norway (Norge)", "no", "47", 0],
189          ["Oman (‫عُمان‬‎)", "om", "968"],
190          ["Pakistan (‫پاکستان‬‎)", "pk", "92"],
191          ["Palau", "pw", "680"],
192          ["Palestine (‫فلسطين‬‎)", "ps", "970"],
193          ["Panama (Panamá)", "pa", "507"],
194          ["Papua New Guinea", "pg", "675"],
195          ["Paraguay", "py", "595"],
196          ["Peru (Perú)", "pe", "51"],
197          ["Philippines", "ph", "63"],
198          ["Poland (Polska)", "pl", "48"],
199          ["Portugal", "pt", "351"],
200          ["Puerto Rico", "pr", "1", 3, ["787", "939"]],
201          ["Qatar (‫قطر‬‎)", "qa", "974"],
202          ["Réunion (La Réunion)", "re", "262", 0],
203          ["Romania (România)", "ro", "40"],
204          ["Russia (Россия)", "ru", "7", 0],
205          ["Rwanda", "rw", "250"],
206          ["Saint Barthélemy", "bl", "590", 1],
207          ["Saint Helena", "sh", "290"],
208          ["Saint Kitts and Nevis", "kn", "1", 18, ["869"]],
209          ["Saint Lucia", "lc", "1", 19, ["758"]],
210          ["Saint Martin (Saint-Martin (partie française))", "mf", "590", 2],
211          ["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)", "pm", "508"],
212          ["Saint Vincent and the Grenadines", "vc", "1", 20, ["784"]],
213          ["Samoa", "ws", "685"],
214          ["San Marino", "sm", "378"],
215          ["São Tomé and Príncipe (São Tomé e Príncipe)", "st", "239"],
216          ["Saudi Arabia (‫المملكة العربية السعودية‬‎)", "sa", "966"],
217          ["Senegal (Sénégal)", "sn", "221"],
218          ["Serbia (Србија)", "rs", "381"],
219          ["Seychelles", "sc", "248"],
220          ["Sierra Leone", "sl", "232"],
221          ["Singapore", "sg", "65"],
222          ["Sint Maarten", "sx", "1", 21, ["721"]],
223          ["Slovakia (Slovensko)", "sk", "421"],
224          ["Slovenia (Slovenija)", "si", "386"],
225          ["Solomon Islands", "sb", "677"],
226          ["Somalia (Soomaaliya)", "so", "252"],
227          ["South Africa", "za", "27"],
228          ["South Korea (대한민국)", "kr", "82"],
229          ["South Sudan (‫جنوب السودان‬‎)", "ss", "211"],
230          ["Spain (España)", "es", "34"],
231          ["Sri Lanka (ශ්‍රී ලංකාව)", "lk", "94"],
232          ["Sudan (‫السودان‬‎)", "sd", "249"],
233          ["Suriname", "sr", "597"],
234          ["Svalbard and Jan Mayen", "sj", "47", 1, ["79"]],
235          ["Sweden (Sverige)", "se", "46"],
236          ["Switzerland (Schweiz)", "ch", "41"],
237          ["Syria (‫سوريا‬‎)", "sy", "963"],
238          ["Taiwan (台灣)", "tw", "886"],
239          ["Tajikistan", "tj", "992"],
240          ["Tanzania", "tz", "255"],
241          ["Thailand (ไทย)", "th", "66"],
242          ["Timor-Leste", "tl", "670"],
243          ["Togo", "tg", "228"],
244          ["Tokelau", "tk", "690"],
245          ["Tonga", "to", "676"],
246          ["Trinidad and Tobago", "tt", "1", 22, ["868"]],
247          ["Tunisia (‫تونس‬‎)", "tn", "216"],
248          ["Turkey (Türkiye)", "tr", "90"],
249          ["Turkmenistan", "tm", "993"],
250          ["Turks and Caicos Islands", "tc", "1", 23, ["649"]],
251          ["Tuvalu", "tv", "688"],
252          ["U.S. Virgin Islands", "vi", "1", 24, ["340"]],
253          ["Uganda", "ug", "256"],
254          ["Ukraine (Україна)", "ua", "380"],
255          ["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)", "ae", "971"],
256          ["United Kingdom", "gb", "44", 0],
257          ["United States", "us", "1", 0],
258          ["Uruguay", "uy", "598"],
259          ["Uzbekistan (Oʻzbekiston)", "uz", "998"],
260          ["Vanuatu", "vu", "678"],
261          ["Vatican City (Città del Vaticano)", "va", "39", 1, ["06698"]],
262          ["Venezuela", "ve", "58"],
263          ["Vietnam (Việt Nam)", "vn", "84"],
264          ["Wallis and Futuna (Wallis-et-Futuna)", "wf", "681"],
265          ["Western Sahara (‫الصحراء الغربية‬‎)", "eh", "212", 1, ["5288", "5289"]],
266          ["Yemen (‫اليمن‬‎)", "ye", "967"],
267          ["Zambia", "zm", "260"],
268          ["Zimbabwe", "zw", "263"],
269          ["Åland Islands", "ax", "358", 1, ["18"]],
270        ],
271        f = 0;
272      f < e.length;
273      f++
274    ) {
275      var g = e[f];
276      e[f] = { name: g[0], iso2: g[1], dialCode: g[2], priority: g[3] || 0, areaCodes: g[4] || null };
277    }
278    var h = {
279      getInstance: function (a) {
280        var b = a.getAttribute("data-intl-tel-input-id");
281        return window.intlTelInputGlobals.instances[b];
282      },
283      instances: {},
284      documentReady: function () {
285        return "complete" === document.readyState;
286      },
287    };
288    "object" == typeof window && (window.intlTelInputGlobals = h);
289    var i = 0,
290      j = {
291        allowDropdown: !0,
292        autoHideDialCode: !0,
293        autoPlaceholder: "polite",
294        customContainer: "",
295        customPlaceholder: null,
296        dropdownContainer: null,
297        excludeCountries: [],
298        formatOnDisplay: !0,
299        geoIpLookup: null,
300        hiddenInput: "",
301        initialCountry: "",
302        localizedCountries: null,
303        nationalMode: !0,
304        onlyCountries: [],
305        placeholderNumberType: "MOBILE",
306        preferredCountries: ["us", "gb"],
307        separateDialCode: !1,
308        utilsScript: "",
309      },
310      k = ["800", "822", "833", "844", "855", "866", "877", "880", "881", "882", "883", "884", "885", "886", "887", "888", "889"],
311      l = function (a, b) {
312        for (var c = Object.keys(a), d = 0; d < c.length; d++) b(c[d], a[c[d]]);
313      },
314      m = function (a) {
315        l(window.intlTelInputGlobals.instances, function (b) {
316          window.intlTelInputGlobals.instances[b][a]();
317        });
318      },
319      n = (function () {
320        function c(a, d) {
321          var e = this;
322          b(this, c), (this.id = i++), (this.a = a), (this.b = null), (this.c = null);
323          var f = d || {};
324          (this.d = {}),
325            l(j, function (a, b) {
326              e.d[a] = f.hasOwnProperty(a) ? f[a] : b;
327            }),
328            (this.e = Boolean(a.getAttribute("placeholder")));
329        }
330        return (
331          d(c, [
332            {
333              key: "_init",
334              value: function () {
335                var a = this;
336                if (
337                  (this.d.nationalMode && (this.d.autoHideDialCode = !1),
338                  this.d.separateDialCode && (this.d.autoHideDialCode = this.d.nationalMode = !1),
339                  (this.g = /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),
340                  this.g && (document.body.classList.add("iti-mobile"), this.d.dropdownContainer || (this.d.dropdownContainer = document.body)),
341                  "undefined" != typeof Promise)
342                ) {
343                  var b = new Promise(function (b, c) {
344                      (a.h = b), (a.i = c);
345                    }),
346                    c = new Promise(function (b, c) {
347                      (a.i0 = b), (a.i1 = c);
348                    });
349                  this.promise = Promise.all([b, c]);
350                } else (this.h = this.i = function () {}), (this.i0 = this.i1 = function () {});
351                (this.s = {}), this._b(), this._f(), this._h(), this._i(), this._i3();
352              },
353            },
354            {
355              key: "_b",
356              value: function () {
357                this._d(), this._d2(), this._e(), this.d.localizedCountries && this._d0(), (this.d.onlyCountries.length || this.d.localizedCountries) && this.p.sort(this._d1);
358              },
359            },
360            {
361              key: "_c",
362              value: function (b, c, d) {
363                c.length > this.countryCodeMaxLen && (this.countryCodeMaxLen = c.length), this.q.hasOwnProperty(c) || (this.q[c] = []);
364                for (var e = 0; e < this.q[c].length; e++) if (this.q[c][e] === b) return;
365                var f = d !== a ? d : this.q[c].length;
366                this.q[c][f] = b;
367              },
368            },
369            {
370              key: "_d",
371              value: function () {
372                if (this.d.onlyCountries.length) {
373                  var a = this.d.onlyCountries.map(function (a) {
374                    return a.toLowerCase();
375                  });
376                  this.p = e.filter(function (b) {
377                    return a.indexOf(b.iso2) > -1;
378                  });
379                } else if (this.d.excludeCountries.length) {
380                  var b = this.d.excludeCountries.map(function (a) {
381                    return a.toLowerCase();
382                  });
383                  this.p = e.filter(function (a) {
384                    return -1 === b.indexOf(a.iso2);
385                  });
386                } else this.p = e;
387              },
388            },
389            {
390              key: "_d0",
391              value: function () {
392                for (var a = 0; a < this.p.length; a++) {
393                  var b = this.p[a].iso2.toLowerCase();
394                  this.d.localizedCountries.hasOwnProperty(b) && (this.p[a].name = this.d.localizedCountries[b]);
395                }
396              },
397            },
398            {
399              key: "_d1",
400              value: function (a, b) {
401                return a.name.localeCompare(b.name);
402              },
403            },
404            {
405              key: "_d2",
406              value: function () {
407                (this.countryCodeMaxLen = 0), (this.dialCodes = {}), (this.q = {});
408                for (var a = 0; a < this.p.length; a++) {
409                  var b = this.p[a];
410                  this.dialCodes[b.dialCode] || (this.dialCodes[b.dialCode] = !0), this._c(b.iso2, b.dialCode, b.priority);
411                }
412                for (var c = 0; c < this.p.length; c++) {
413                  var d = this.p[c];
414                  if (d.areaCodes)
415                    for (var e = this.q[d.dialCode][0], f = 0; f < d.areaCodes.length; f++) {
416                      for (var g = d.areaCodes[f], h = 1; h < g.length; h++) {
417                        var i = d.dialCode + g.substr(0, h);
418                        this._c(e, i), this._c(d.iso2, i);
419                      }
420                      this._c(d.iso2, d.dialCode + g);
421                    }
422                }
423              },
424            },
425            {
426              key: "_e",
427              value: function () {
428                this.preferredCountries = [];
429                for (var a = 0; a < this.d.preferredCountries.length; a++) {
430                  var b = this.d.preferredCountries[a].toLowerCase(),
431                    c = this._y(b, !1, !0);
432                  c && this.preferredCountries.push(c);
433                }
434              },
435            },
436            {
437              key: "_e2",
438              value: function (a, b, c) {
439                var d = document.createElement(a);
440                return (
441                  b &&
442                    l(b, function (a, b) {
443                      return d.setAttribute(a, b);
444                    }),
445                  c && c.appendChild(d),
446                  d
447                );
448              },
449            },
450            {
451              key: "_f",
452              value: function () {
453                this.a.hasAttribute("autocomplete") || (this.a.form && this.a.form.hasAttribute("autocomplete")) || this.a.setAttribute("autocomplete", "off");
454                var a = "iti";
455                this.d.allowDropdown && (a += " iti--allow-dropdown"), this.d.separateDialCode && (a += " iti--separate-dial-code"), this.d.customContainer && ((a += " "), (a += this.d.customContainer));
456                var b = this._e2("div", { class: a });
457                if (
458                  (this.a.parentNode.insertBefore(b, this.a),
459                  (this.k = this._e2("div", { class: "iti__flag-container" }, b)),
460                  b.appendChild(this.a),
461                  (this.selectedFlag = this._e2("div", { class: "iti__selected-flag", role: "combobox", "aria-controls": "iti-".concat(this.id, "__country-listbox"), "aria-owns": "iti-".concat(this.id, "__country-listbox"), "aria-expanded": "false" }, this.k)),
462                  (this.l = this._e2("div", { class: "iti__flag" }, this.selectedFlag)),
463                  this.d.separateDialCode && (this.t = this._e2("div", { class: "iti__selected-dial-code" }, this.selectedFlag)),
464                  this.d.allowDropdown &&
465                    (this.selectedFlag.setAttribute("tabindex", "0"),
466                    (this.u = this._e2("div", { class: "iti__arrow" }, this.selectedFlag)),
467                    (this.m = this._e2("ul", { class: "iti__country-list iti__hide", id: "iti-".concat(this.id, "__country-listbox"), role: "listbox", "aria-label": "List of countries" })),
468                    this.preferredCountries.length && (this._g(this.preferredCountries, "iti__preferred", !0), this._e2("li", { class: "iti__divider", role: "separator", "aria-disabled": "true" }, this.m)),
469                    this._g(this.p, "iti__standard"),
470                    this.d.dropdownContainer ? ((this.dropdown = this._e2("div", { class: "iti iti--container" })), this.dropdown.appendChild(this.m)) : this.k.appendChild(this.m)),
471                  this.d.hiddenInput)
472                ) {
473                  var c = this.d.hiddenInput,
474                    d = this.a.getAttribute("name");
475                  if (d) {
476                    var e = d.lastIndexOf("[");
477                    -1 !== e && (c = "".concat(d.substr(0, e), "[").concat(c, "]"));
478                  }
479                  (this.hiddenInput = this._e2("input", { type: "hidden", name: c })), b.appendChild(this.hiddenInput);
480                }
481              },
482            },
483            {
484              key: "_g",
485              value: function (a, b, c) {
486                for (var d = "", e = 0; e < a.length; e++) {
487                  var f = a[e],
488                    g = c ? "-preferred" : "";
489                  (d += "<li class='iti__country ".concat(b, "' tabIndex='-1' id='iti-").concat(this.id, "__item-").concat(f.iso2).concat(g, "' role='option' data-dial-code='").concat(f.dialCode, "' data-country-code='").concat(f.iso2, "' aria-selected='false'>")),
490                    (d += "<div class='iti__flag-box'><div class='iti__flag iti__".concat(f.iso2, "'></div></div>")),
491                    (d += "<span class='iti__country-name'>
491".concat(f.name, "</span>")),
492                    (d += "<span class='iti__dial-code'>+".concat(f.dialCode, "</span>")),
493                    (d += "</li>");
494                }
495                this.m.insertAdjacentHTML("beforeend", d);
496              },
497            },
498            {
499              key: "_h",
500              value: function () {
501                var a = this.a.getAttribute("value"),
502                  b = this.a.value,
503                  c = a && "+" === a.charAt(0) && (!b || "+" !== b.charAt(0)),
504                  d = c ? a : b,
505                  e = this._5(d),
506                  f = this._w(d),
507                  g = this.d,
508                  h = g.initialCountry,
509                  i = g.nationalMode,
510                  j = g.autoHideDialCode,
511                  k = g.separateDialCode;
512                e && !f ? this._v(d) : "auto" !== h && (h ? this._z(h.toLowerCase()) : e && f ? this._z("us") : ((this.j = this.preferredCountries.length ? this.preferredCountries[0].iso2 : this.p[0].iso2), d || this._z(this.j)), d || i || j || k || (this.a.value = "+".concat(this.s.dialCode))), d && this._u(d);
513              },
514            },
515            {
516              key: "_i",
517              value: function () {
518                this._j(), this.d.autoHideDialCode && this._l(), this.d.allowDropdown && this._i2(), this.hiddenInput && this._i0();
519              },
520            },
521            {
522              key: "_i0",
523              value: function () {
524                var a = this;
525                (this._a14 = function () {
526                  a.hiddenInput.value = a.getNumber();
527                }),
528                  this.a.form && this.a.form.addEventListener("submit", this._a14);
529              },
530            },
531            {
532              key: "_i1",
533              value: function () {
534                for (var a = this.a; a && "LABEL" !== a.tagName; ) a = a.parentNode;
535                return a;
536              },
537            },
538            {
539              key: "_i2",
540              value: function () {
541                var a = this;
542                this._a9 = function (b) {
543                  a.m.classList.contains("iti__hide") ? a.a.focus() : b.preventDefault();
544                };
545                var b = this._i1();
546                b && b.addEventListener("click", this._a9),
547                  (this._a10 = function () {
548                    !a.m.classList.contains("iti__hide") || a.a.disabled || a.a.readOnly || a._n();
549                  }),
550                  this.selectedFlag.addEventListener("click", this._a10),
551                  (this._a11 = function (b) {
552                    a.m.classList.contains("iti__hide") && -1 !== ["ArrowUp", "Up", "ArrowDown", "Down", " ", "Enter"].indexOf(b.key) && (b.preventDefault(), b.stopPropagation(), a._n()), "Tab" === b.key && a._2();
553                  }),
554                  this.k.addEventListener("keydown", this._a11);
555              },
556            },
557            {
558              key: "_i3",
559              value: function () {
560                var a = this;
561                this.d.utilsScript && !window.intlTelInputUtils
562                  ? window.intlTelInputGlobals.documentReady()
563                    ? window.intlTelInputGlobals.loadUtils(this.d.utilsScript)
564                    : window.addEventListener("load", function () {
565                        window.intlTelInputGlobals.loadUtils(a.d.utilsScript);
566                      })
567                  : this.i0(),
568                  "auto" === this.d.initialCountry ? this._i4() : this.h();
569              },
570            },
571            {
572              key: "_i4",
573              value: function () {
574                window.intlTelInputGlobals.autoCountry
575                  ? this.handleAutoCountry()
576                  : window.intlTelInputGlobals.startedLoadingAutoCountry ||
577                    ((window.intlTelInputGlobals.startedLoadingAutoCountry = !0),
578                    "function" == typeof this.d.geoIpLookup &&
579                      this.d.geoIpLookup(
580                        function (a) {
581                          (window.intlTelInputGlobals.autoCountry = a.toLowerCase()),
582                            setTimeout(function () {
583                              return m("handleAutoCountry");
584                            });
585                        },
586                        function () {
587                          return m("rejectAutoCountryPromise");
588                        }
589                      ));
590              },
591            },
592            {
593              key: "_j",
594              value: function () {
595                var a = this;
596                (this._a12 = function () {
597                  a._v(a.a.value) && a._m2CountryChange();
598                }),
599                  this.a.addEventListener("keyup", this._a12),
600                  (this._a13 = function () {
601                    setTimeout(a._a12);
602                  }),
603                  this.a.addEventListener("cut", this._a13),
604                  this.a.addEventListener("paste", this._a13);
605              },
606            },
607            {
608              key: "_j2",
609              value: function (a) {
610                var b = this.a.getAttribute("maxlength");
611                return b && a.length > b ? a.substr(0, b) : a;
612              },
613            },
614            {
615              key: "_l",
616              value: function () {
617                var a = this;
618                (this._a8 = function () {
619                  a._l2();
620                }),
621                  this.a.form && this.a.form.addEventListener("submit", this._a8),
622                  this.a.addEventListener("blur", this._a8);
623              },
624            },
625            {
626              key: "_l2",
627              value: function () {
628                if ("+" === this.a.value.charAt(0)) {
629                  var a = this._m(this.a.value);
630                  (a && this.s.dialCode !== a) || (this.a.value = "");
631                }
632              },
633            },
634            {
635              key: "_m",
636              value: function (a) {
637                return a.replace(/\D/g, "");
638              },
639            },
640            {
641              key: "_m2",
642              value: function (a) {
643                var b = document.createEvent("Event");
644                b.initEvent(a, !0, !0), this.a.dispatchEvent(b);
645              },
646            },
647            {
648              key: "_n",
649              value: function () {
650                this.m.classList.remove("iti__hide"), this.selectedFlag.setAttribute("aria-expanded", "true"), this._o(), this.b && (this._x(this.b, !1), this._3(this.b, !0)), this._p(), this.u.classList.add("iti__arrow--up"), this._m2("open:countrydropdown");
651              },
652            },
653            {
654              key: "_n2",
655              value: function (a, b, c) {
656                c && !a.classList.contains(b) ? a.classList.add(b) : !c && a.classList.contains(b) && a.classList.remove(b);
657              },
658            },
659            {
660              key: "_o",
661              value: function () {
662                var a = this;
663                if ((this.d.dropdownContainer && this.d.dropdownContainer.appendChild(this.dropdown), !this.g)) {
664                  var b = this.a.getBoundingClientRect(),
665                    c = window.pageYOffset || document.documentElement.scrollTop,
666                    d = b.top + c,
667                    e = this.m.offsetHeight,
668                    f = d + this.a.offsetHeight + e < c + window.innerHeight,
669                    g = d - e > c;
670                  if ((this._n2(this.m, "iti__country-list--dropup", !f && g), this.d.dropdownContainer)) {
671                    var h = !f && g ? 0 : this.a.offsetHeight;
672                    (this.dropdown.style.top = "".concat(d + h, "px")),
673                      (this.dropdown.style.left = "".concat(b.left + document.body.scrollLeft, "px")),
674                      (this._a4 = function () {
675                        return a._2();
676                      }),
677                      window.addEventListener("scroll", this._a4);
678                  }
679                }
680              },
681            },
682            {
683              key: "_o2",
684              value: function (a) {
685                for (var b = a; b && b !== this.m && !b.classList.contains("iti__country"); ) b = b.parentNode;
686                return b === this.m ? null : b;
687              },
688            },
689            {
690              key: "_p",
691              value: function () {
692                var a = this;
693                (this._a0 = function (b) {
694                  var c = a._o2(b.target);
695                  c && a._x(c, !1);
696                }),
697                  this.m.addEventListener("mouseover", this._a0),
698                  (this._a1 = function (b) {
699                    var c = a._o2(b.target);
700                    c && a._1(c);
701                  }),
702                  this.m.addEventListener("click", this._a1);
703                var b = !0;
704                (this._a2 = function () {
705                  b || a._2(), (b = !1);
706                }),
707                  document.documentElement.addEventListener("click", this._a2);
708                var c = "",
709                  d = null;
710                (this._a3 = function (b) {
711                  b.preventDefault(),
712                    "ArrowUp" === b.key || "Up" === b.key || "ArrowDown" === b.key || "Down" === b.key
713                      ? a._q(b.key)
714                      : "Enter" === b.key
715                      ? a._r()
716                      : "Escape" === b.key
717                      ? a._2()
718                      : /^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(b.key) &&
719                        (d && clearTimeout(d),
720                        (c += b.key.toLowerCase()),
721                        a._s(c),
722                        (d = setTimeout(function () {
723                          c = "";
724                        }, 1e3)));
725                }),
726                  document.addEventListener("keydown", this._a3);
727              },
728            },
729            {
730              key: "_q",
731              value: function (a) {
732                var b = "ArrowUp" === a || "Up" === a ? this.c.previousElementSibling : this.c.nextElementSibling;
733                b && (b.classList.contains("iti__divider") && (b = "ArrowUp" === a || "Up" === a ? b.previousElementSibling : b.nextElementSibling), this._x(b, !0));
734              },
735            },
736            {
737              key: "_r",
738              value: function () {
739                this.c && this._1(this.c);
740              },
741            },
742            {
743              key: "_s",
744              value: function (a) {
745                for (var b = 0; b < this.p.length; b++)
746                  if (this._t(this.p[b].name, a)) {
747                    var c = this.m.querySelector("#iti-".concat(this.id, "__item-").concat(this.p[b].iso2));
748                    this._x(c, !1), this._3(c, !0);
749                    break;
750                  }
751              },
752            },
753            {
754              key: "_t",
755              value: function (a, b) {
756                return a.substr(0, b.length).toLowerCase() === b;
757              },
758            },
759            {
760              key: "_u",
761              value: function (a) {
762                var b = a;
763                if (this.d.formatOnDisplay && window.intlTelInputUtils && this.s) {
764                  var c = !this.d.separateDialCode && (this.d.nationalMode || "+" !== b.charAt(0)),
765                    d = intlTelInputUtils.numberFormat,
766                    e = d.NATIONAL,
767                    f = d.INTERNATIONAL,
768                    g = c ? e : f;
769                  b = intlTelInputUtils.formatNumber(b, this.s.iso2, g);
770                }
771                (b = this._7(b)), (this.a.value = b);
772              },
773            },
774            {
775              key: "_v",
776              value: function (a) {
777                var b = a,
778                  c = this.s.dialCode,
779                  d = "1" === c;
780                b && this.d.nationalMode && d && "+" !== b.charAt(0) && ("1" !== b.charAt(0) && (b = "1".concat(b)), (b = "+".concat(b))), this.d.separateDialCode && c && "+" !== b.charAt(0) && (b = "+".concat(c).concat(b));
781                var e = this._5(b, !0),
782                  f = this._m(b),
783                  g = null;
784                if (e) {
785                  var h = this.q[this._m(e)],
786                    i = -1 !== h.indexOf(this.s.iso2) && f.length <= e.length - 1;
787                  if (!("1" === c && this._w(f)) && !i)
788                    for (var j = 0; j < h.length; j++)
789                      if (h[j]) {
790                        g = h[j];
791                        break;
792                      }
793                } else "+" === b.charAt(0) && f.length ? (g = "") : (b && "+" !== b) || (g = this.j);
794                return null !== g && this._z(g);
795              },
796            },
797            {
798              key: "_w",
799              value: function (a) {
800                var b = this._m(a);
801                if ("1" === b.charAt(0)) {
802                  var c = b.substr(1, 3);
803                  return -1 !== k.indexOf(c);
804                }
805                return !1;
806              },
807            },
808            {
809              key: "_x",
810              value: function (a, b) {
811                var c = this.c;
812                c && c.classList.remove("iti__highlight"), (this.c = a), this.c.classList.add("iti__highlight"), b && this.c.focus();
813              },
814            },
815            {
816              key: "_y",
817              value: function (a, b, c) {
818                for (var d = b ? e : this.p, f = 0; f < d.length; f++) if (d[f].iso2 === a) return d[f];
819                if (c) return null;
820                throw new Error("No country data for '".concat(a, "'"));
821              },
822            },
823            {
824              key: "_z",
825              value: function (a) {
826                var b = this.s.iso2 ? this.s : {};
827                (this.s = a ? this._y(a, !1, !1) : {}), this.s.iso2 && (this.j = this.s.iso2), this.l.setAttribute("class", "iti__flag iti__".concat(a));
828                var c = a ? "".concat(this.s.name, ": +").concat(this.s.dialCode) : "Unknown";
829                if ((this.selectedFlag.setAttribute("title", c), this.d.separateDialCode)) {
830                  var d = this.s.dialCode ? "+".concat(this.s.dialCode) : "";
831                  this.t.innerHTML = d;
832                  var e = this.selectedFlag.offsetWidth || this._z2();
833                  this.a.style.paddingLeft = "".concat(e + 6, "px");
834                }
835                if ((this._0(), this.d.allowDropdown)) {
836                  var f = this.b;
837                  if ((f && (f.classList.remove("iti__active"), f.setAttribute("aria-selected", "false")), a)) {
838                    var g = this.m.querySelector("#iti-".concat(this.id, "__item-").concat(a, "-preferred")) || this.m.querySelector("#iti-".concat(this.id, "__item-").concat(a));
839                    g.setAttribute("aria-selected", "true"), g.classList.add("iti__active"), (this.b = g), this.selectedFlag.setAttribute("aria-activedescendant", g.getAttribute("id"));
840                  }
841                }
842                return b.iso2 !== a;
843              },
844            },
845            {
846              key: "_z2",
847              value: function () {
848                var a = this.a.parentNode.cloneNode();
849                (a.style.visibility = "hidden"), document.body.appendChild(a);
850                var b = this.k.cloneNode();
851                a.appendChild(b);
852                var c = this.selectedFlag.cloneNode(!0);
853                b.appendChild(c);
854                var d = c.offsetWidth;
855                return a.parentNode.removeChild(a), d;
856              },
857            },
858            {
859              key: "_0",
860              value: function () {
861                var a = "aggressive" === this.d.autoPlaceholder || (!this.e && "polite" === this.d.autoPlaceholder);
862                if (window.intlTelInputUtils && a) {
863                  var b = intlTelInputUtils.numberType[this.d.placeholderNumberType],
864                    c = this.s.iso2 ? intlTelInputUtils.getExampleNumber(this.s.iso2, this.d.nationalMode, b) : "";
865                  (c = this._7(c)), "function" == typeof this.d.customPlaceholder && (c = this.d.customPlaceholder(c, this.s)), this.a.setAttribute("placeholder", c);
866                }
867              },
868            },
869            {
870              key: "_1",
871              value: function (a) {
872                var b = this._z(a.getAttribute("data-country-code"));
873                this._2(), this._4(a.getAttribute("data-dial-code"), !0), this.a.focus();
874                var c = this.a.value.length;
875                this.a.setSelectionRange(c, c), b && this._m2CountryChange();
876              },
877            },
878            {
879              key: "_2",
880              value: function () {
881                this.m.classList.add("iti__hide"),
882                  this.selectedFlag.setAttribute("aria-expanded", "false"),
883                  this.u.classList.remove("iti__arrow--up"),
884                  document.removeEventListener("keydown", this._a3),
885                  document.documentElement.removeEventListener("click", this._a2),
886                  this.m.removeEventListener("mouseover", this._a0),
887                  this.m.removeEventListener("click", this._a1),
888                  this.d.dropdownContainer && (this.g || window.removeEventListener("scroll", this._a4), this.dropdown.parentNode && this.dropdown.parentNode.removeChild(this.dropdown)),
889                  this._m2("close:countrydropdown");
890              },
891            },
892            {
893              key: "_3",
894              value: function (a, b) {
895                var c = this.m,
896                  d = window.pageYOffset || document.documentElement.scrollTop,
897                  e = c.offsetHeight,
898                  f = c.getBoundingClientRect().top + d,
899                  g = f + e,
900                  h = a.offsetHeight,
901                  i = a.getBoundingClientRect().top + d,
902                  j = i + h,
903                  k = i - f + c.scrollTop,
904                  l = e / 2 - h / 2;
905                if (i < f) b && (k -= l), (c.scrollTop = k);
906                else if (j > g) {
907                  b && (k += l);
908                  var m = e - h;
909                  c.scrollTop = k - m;
910                }
911              },
912            },
913            {
914              key: "_4",
915              value: function (a, b) {
916                var c,
917                  d = this.a.value,
918                  e = "+".concat(a);
919                if ("+" === d.charAt(0)) {
920                  var f = this._5(d);
921                  c = f ? d.replace(f, e) : e;
922                } else {
923                  if (this.d.nationalMode || this.d.separateDialCode) return;
924                  if (d) c = e + d;
925                  else {
926                    if (!b && this.d.autoHideDialCode) return;
927                    c = e;
928                  }
929                }
930                this.a.value = c;
931              },
932            },
933            {
934              key: "_5",
935              value: function (a, b) {
936                var c = "";
937                if ("+" === a.charAt(0))
938                  for (var d = "", e = 0; e < a.length; e++) {
939                    var f = a.charAt(e);
940                    if (!isNaN(parseInt(f, 10))) {
941                      if (((d += f), b)) this.q[d] && (c = a.substr(0, e + 1));
942                      else if (this.dialCodes[d]) {
943                        c = a.substr(0, e + 1);
944                        break;
945                      }
946                      if (d.length === this.countryCodeMaxLen) break;
947                    }
948                  }
949                return c;
950              },
951            },
952            {
953              key: "_6",
954              value: function () {
955                var a = this.a.value.trim(),
956                  b = this.s.dialCode,
957                  c = this._m(a);
958                return (this.d.separateDialCode && "+" !== a.charAt(0) && b && c ? "+".concat(b) : "") + a;
959              },
960            },
961            {
962              key: "_7",
963              value: function (a) {
964                var b = a;
965                if (this.d.separateDialCode) {
966                  var c = this._5(b);
967                  if (c) {
968                    c = "+".concat(this.s.dialCode);
969                    var d = " " === b[c.length] || "-" === b[c.length] ? c.length + 1 : c.length;
970                    b = b.substr(d);
971                  }
972                }
973                return this._j2(b);
974              },
975            },
976            {
977              key: "_m2CountryChange",
978              value: function () {
979                this._m2("countrychange");
980              },
981            },
982            {
983              key: "handleAutoCountry",
984              value: function () {
985                "auto" === this.d.initialCountry && ((this.j = window.intlTelInputGlobals.autoCountry), this.a.value || this.setCountry(this.j), this.h());
986              },
987            },
988            {
989              key: "handleUtils",
990              value: function () {
991                window.intlTelInputUtils && (this.a.value && this._u(this.a.value), this._0()), this.i0();
992              },
993            },
994            {
995              key: "destroy",
996              value: function () {
997                var a = this.a.form;
998                if (this.d.allowDropdown) {
999                  this._2(), this.selectedFlag.removeEventListener("click", this._a10), this.k.removeEventListener("keydown", this._a11);
1000                  var b = this._i1();
1001                  b && b.removeEventListener("click", this._a9);
1002                }
1003                this.hiddenInput && a && a.removeEventListener("submit", this._a14),
1004                  this.d.autoHideDialCode && (a && a.removeEventListener("submit", this._a8), this.a.removeEventListener("blur", this._a8)),
1005                  this.a.removeEventListener("keyup", this._a12),
1006                  this.a.removeEventListener("cut", this._a13),
1007                  this.a.removeEventListener("paste", this._a13),
1008                  this.a.removeAttribute("data-intl-tel-input-id");
1009                var c = this.a.parentNode;
1010                c.parentNode.insertBefore(this.a, c), c.parentNode.removeChild(c), delete window.intlTelInputGlobals.instances[this.id];
1011              },
1012            },
1013            {
1014              key: "getExtension",
1015              value: function () {
1016                return window.intlTelInputUtils ? intlTelInputUtils.getExtension(this._6(), this.s.iso2) : "";
1017              },
1018            },
1019            {
1020              key: "getNumber",
1021              value: function (a) {
1022                if (window.intlTelInputUtils) {
1023                  var b = this.s.iso2;
1024                  return intlTelInputUtils.formatNumber(this._6(), b, a);
1025                }
1026                return "";
1027              },
1028            },
1029            {
1030              key: "getNumberType",
1031              value: function () {
1032                return window.intlTelInputUtils ? intlTelInputUtils.getNumberType(this._6(), this.s.iso2) : -99;
1033              },
1034            },
1035            {
1036              key: "getSelectedCountryData",
1037              value: function () {
1038                return this.s;
1039              },
1040            },
1041            {
1042              key: "getValidationError",
1043              value: function () {
1044                if (window.intlTelInputUtils) {
1045                  var a = this.s.iso2;
1046                  return intlTelInputUtils.getValidationError(this._6(), a);
1047                }
1048                return -99;
1049              },
1050            },
1051            {
1052              key: "isValidNumber",
1053              value: function () {
1054                var a = this._6().trim(),
1055                  b = this.d.nationalMode ? this.s.iso2 : "";
1056                return window.intlTelInputUtils ? intlTelInputUtils.isValidNumber(a, b) : null;
1057              },
1058            },
1059            {
1060              key: "setCountry",
1061              value: function (a) {
1062                var b = a.toLowerCase();
1063                this.l.classList.contains("iti__".concat(b)) || (this._z(b), this._4(this.s.dialCode, !1), this._m2CountryChange());
1064              },
1065            },
1066            {
1067              key: "setNumber",
1068              value: function (a) {
1069                var b = this._v(a);
1070                this._u(a), b && this._m2CountryChange();
1071              },
1072            },
1073            {
1074              key: "setPlaceholderNumberType",
1075              value: function (a) {
1076                (this.d.placeholderNumberType = a), this._0();
1077              },
1078            },
1079          ]),
1080          c
1081        );
1082      })();
1083    h.getCountryData = function () {
1084      return e;
1085    };
1086    var o = function (a, b, c) {
1087      var d = document.createElement("script");
1088      (d.onload = function () {
1089        m("handleUtils"), b && b();
1090      }),
1091        (d.onerror = function () {
1092          m("rejectUtilsScriptPromise"), c && c();
1093        }),
1094        (d.className = "iti-load-utils"),
1095        (d.async = !0),
1096        (d.src = a),
1097        document.body.appendChild(d);
1098    };
1099    return (
1100      (h.loadUtils = function (a) {
1101        if (!window.intlTelInputUtils && !window.intlTelInputGlobals.startedLoadingUtilsScript) {
1102          if (((window.intlTelInputGlobals.startedLoadingUtilsScript = !0), "undefined" != typeof Promise))
1103            return new Promise(function (b, c) {
1104              return o(a, b, c);
1105            });
1106          o(a);
1107        }
1108        return null;
1109      }),
1110      (h.defaults = j),
1111      (h.version = "17.0.13"),
1112      function (a, b) {
1113        var c = new n(a, b);
1114        return c._init(), a.setAttribute("data-intl-tel-input-id", c.id), (window.intlTelInputGlobals.instances[c.id] = c), c;
1115      }
1116    );
1117  })();
1118});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.