{"version":3,"sources":["node_modules/intl-tel-input/build/js/intlTelInput.js","src/app/shared/ng2-tel-input/directives/ng2-tel-input.directive.ts"],"sourcesContent":["/*\n * International Telephone Input v25.3.0\n * https://github.com/jackocnr/intl-tel-input.git\n * Licensed under the MIT license\n */\n\n// UMD\n(function (factory) {\n if (typeof module === 'object' && module.exports) {\n module.exports = factory();\n } else {\n window.intlTelInput = factory();\n }\n})(() => {\n var factoryOutput = (() => {\n var __defProp = Object.defineProperty;\n var __getOwnPropDesc = Object.getOwnPropertyDescriptor;\n var __getOwnPropNames = Object.getOwnPropertyNames;\n var __hasOwnProp = Object.prototype.hasOwnProperty;\n var __export = (target, all) => {\n for (var name in all) __defProp(target, name, {\n get: all[name],\n enumerable: true\n });\n };\n var __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n get: () => from[key],\n enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n });\n }\n return to;\n };\n var __toCommonJS = mod => __copyProps(__defProp({}, \"__esModule\", {\n value: true\n }), mod);\n\n // src/js/intl-tel-input.ts\n var intl_tel_input_exports = {};\n __export(intl_tel_input_exports, {\n Iti: () => Iti,\n default: () => intl_tel_input_default\n });\n\n // src/js/intl-tel-input/data.ts\n var rawCountryData = [[\"af\",\n // Afghanistan\n \"93\"], [\"ax\",\n // Åland Islands\n \"358\", 1], [\"al\",\n // Albania\n \"355\"], [\"dz\",\n // Algeria\n \"213\"], [\"as\",\n // American Samoa\n \"1\", 5, [\"684\"]], [\"ad\",\n // Andorra\n \"376\"], [\"ao\",\n // Angola\n \"244\"], [\"ai\",\n // Anguilla\n \"1\", 6, [\"264\"]], [\"ag\",\n // Antigua and Barbuda\n \"1\", 7, [\"268\"]], [\"ar\",\n // Argentina\n \"54\"], [\"am\",\n // Armenia\n \"374\"], [\"aw\",\n // Aruba\n \"297\"], [\"ac\",\n // Ascension Island\n \"247\"], [\"au\",\n // Australia\n \"61\", 0, null, \"0\"], [\"at\",\n // Austria\n \"43\"], [\"az\",\n // Azerbaijan\n \"994\"], [\"bs\",\n // Bahamas\n \"1\", 8, [\"242\"]], [\"bh\",\n // Bahrain\n \"973\"], [\"bd\",\n // Bangladesh\n \"880\"], [\"bb\",\n // Barbados\n \"1\", 9, [\"246\"]], [\"by\",\n // Belarus\n \"375\"], [\"be\",\n // Belgium\n \"32\"], [\"bz\",\n // Belize\n \"501\"], [\"bj\",\n // Benin\n \"229\"], [\"bm\",\n // Bermuda\n \"1\", 10, [\"441\"]], [\"bt\",\n // Bhutan\n \"975\"], [\"bo\",\n // Bolivia\n \"591\"], [\"ba\",\n // Bosnia and Herzegovina\n \"387\"], [\"bw\",\n // Botswana\n \"267\"], [\"br\",\n // Brazil\n \"55\"], [\"io\",\n // British Indian Ocean Territory\n \"246\"], [\"vg\",\n // British Virgin Islands\n \"1\", 11, [\"284\"]], [\"bn\",\n // Brunei\n \"673\"], [\"bg\",\n // Bulgaria\n \"359\"], [\"bf\",\n // Burkina Faso\n \"226\"], [\"bi\",\n // Burundi\n \"257\"], [\"kh\",\n // Cambodia\n \"855\"], [\"cm\",\n // Cameroon\n \"237\"], [\"ca\",\n // Canada\n \"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\",\n // Cape Verde\n \"238\"], [\"bq\",\n // Caribbean Netherlands\n \"599\", 1, [\"3\", \"4\", \"7\"]], [\"ky\",\n // Cayman Islands\n \"1\", 12, [\"345\"]], [\"cf\",\n // Central African Republic\n \"236\"], [\"td\",\n // Chad\n \"235\"], [\"cl\",\n // Chile\n \"56\"], [\"cn\",\n // China\n \"86\"], [\"cx\",\n // Christmas Island\n \"61\", 2, [\"89164\"], \"0\"], [\"cc\",\n // Cocos (Keeling) Islands\n \"61\", 1, [\"89162\"], \"0\"], [\"co\",\n // Colombia\n \"57\"], [\"km\",\n // Comoros\n \"269\"], [\"cg\",\n // Congo (Brazzaville)\n \"242\"], [\"cd\",\n // Congo (Kinshasa)\n \"243\"], [\"ck\",\n // Cook Islands\n \"682\"], [\"cr\",\n // Costa Rica\n \"506\"], [\"ci\",\n // Côte d'Ivoire\n \"225\"], [\"hr\",\n // Croatia\n \"385\"], [\"cu\",\n // Cuba\n \"53\"], [\"cw\",\n // Curaçao\n \"599\", 0], [\"cy\",\n // Cyprus\n \"357\"], [\"cz\",\n // Czech Republic\n \"420\"], [\"dk\",\n // Denmark\n \"45\"], [\"dj\",\n // Djibouti\n \"253\"], [\"dm\",\n // Dominica\n \"1\", 13, [\"767\"]], [\"do\",\n // Dominican Republic\n \"1\", 2, [\"809\", \"829\", \"849\"]], [\"ec\",\n // Ecuador\n \"593\"], [\"eg\",\n // Egypt\n \"20\"], [\"sv\",\n // El Salvador\n \"503\"], [\"gq\",\n // Equatorial Guinea\n \"240\"], [\"er\",\n // Eritrea\n \"291\"], [\"ee\",\n // Estonia\n \"372\"], [\"sz\",\n // Eswatini\n \"268\"], [\"et\",\n // Ethiopia\n \"251\"], [\"fk\",\n // Falkland Islands (Malvinas)\n \"500\"], [\"fo\",\n // Faroe Islands\n \"298\"], [\"fj\",\n // Fiji\n \"679\"], [\"fi\",\n // Finland\n \"358\", 0], [\"fr\",\n // France\n \"33\"], [\"gf\",\n // French Guiana\n \"594\"], [\"pf\",\n // French Polynesia\n \"689\"], [\"ga\",\n // Gabon\n \"241\"], [\"gm\",\n // Gambia\n \"220\"], [\"ge\",\n // Georgia\n \"995\"], [\"de\",\n // Germany\n \"49\"], [\"gh\",\n // Ghana\n \"233\"], [\"gi\",\n // Gibraltar\n \"350\"], [\"gr\",\n // Greece\n \"30\"], [\"gl\",\n // Greenland\n \"299\"], [\"gd\",\n // Grenada\n \"1\", 14, [\"473\"]], [\"gp\",\n // Guadeloupe\n \"590\", 0], [\"gu\",\n // Guam\n \"1\", 15, [\"671\"]], [\"gt\",\n // Guatemala\n \"502\"], [\"gg\",\n // Guernsey\n \"44\", 1, [\"1481\", \"7781\", \"7839\", \"7911\"], \"0\"], [\"gn\",\n // Guinea\n \"224\"], [\"gw\",\n // Guinea-Bissau\n \"245\"], [\"gy\",\n // Guyana\n \"592\"], [\"ht\",\n // Haiti\n \"509\"], [\"hn\",\n // Honduras\n \"504\"], [\"hk\",\n // Hong Kong SAR China\n \"852\"], [\"hu\",\n // Hungary\n \"36\"], [\"is\",\n // Iceland\n \"354\"], [\"in\",\n // India\n \"91\"], [\"id\",\n // Indonesia\n \"62\"], [\"ir\",\n // Iran\n \"98\"], [\"iq\",\n // Iraq\n \"964\"], [\"ie\",\n // Ireland\n \"353\"], [\"im\",\n // Isle of Man\n \"44\", 2, [\"1624\", \"74576\", \"7524\", \"7924\", \"7624\"], \"0\"], [\"il\",\n // Israel\n \"972\"], [\"it\",\n // Italy\n \"39\", 0], [\"jm\",\n // Jamaica\n \"1\", 4, [\"876\", \"658\"]], [\"jp\",\n // Japan\n \"81\"], [\"je\",\n // Jersey\n \"44\", 3, [\"1534\", \"7509\", \"7700\", \"7797\", \"7829\", \"7937\"], \"0\"], [\"jo\",\n // Jordan\n \"962\"], [\"kz\",\n // Kazakhstan\n \"7\", 1, [\"33\", \"7\"], \"8\"], [\"ke\",\n // Kenya\n \"254\"], [\"ki\",\n // Kiribati\n \"686\"], [\"xk\",\n // Kosovo\n \"383\"], [\"kw\",\n // Kuwait\n \"965\"], [\"kg\",\n // Kyrgyzstan\n \"996\"], [\"la\",\n // Laos\n \"856\"], [\"lv\",\n // Latvia\n \"371\"], [\"lb\",\n // Lebanon\n \"961\"], [\"ls\",\n // Lesotho\n \"266\"], [\"lr\",\n // Liberia\n \"231\"], [\"ly\",\n // Libya\n \"218\"], [\"li\",\n // Liechtenstein\n \"423\"], [\"lt\",\n // Lithuania\n \"370\"], [\"lu\",\n // Luxembourg\n \"352\"], [\"mo\",\n // Macao SAR China\n \"853\"], [\"mg\",\n // Madagascar\n \"261\"], [\"mw\",\n // Malawi\n \"265\"], [\"my\",\n // Malaysia\n \"60\"], [\"mv\",\n // Maldives\n \"960\"], [\"ml\",\n // Mali\n \"223\"], [\"mt\",\n // Malta\n \"356\"], [\"mh\",\n // Marshall Islands\n \"692\"], [\"mq\",\n // Martinique\n \"596\"], [\"mr\",\n // Mauritania\n \"222\"], [\"mu\",\n // Mauritius\n \"230\"], [\"yt\",\n // Mayotte\n \"262\", 1, [\"269\", \"639\"], \"0\"], [\"mx\",\n // Mexico\n \"52\"], [\"fm\",\n // Micronesia\n \"691\"], [\"md\",\n // Moldova\n \"373\"], [\"mc\",\n // Monaco\n \"377\"], [\"mn\",\n // Mongolia\n \"976\"], [\"me\",\n // Montenegro\n \"382\"], [\"ms\",\n // Montserrat\n \"1\", 16, [\"664\"]], [\"ma\",\n // Morocco\n \"212\", 0, null, \"0\"], [\"mz\",\n // Mozambique\n \"258\"], [\"mm\",\n // Myanmar (Burma)\n \"95\"], [\"na\",\n // Namibia\n \"264\"], [\"nr\",\n // Nauru\n \"674\"], [\"np\",\n // Nepal\n \"977\"], [\"nl\",\n // Netherlands\n \"31\"], [\"nc\",\n // New Caledonia\n \"687\"], [\"nz\",\n // New Zealand\n \"64\"], [\"ni\",\n // Nicaragua\n \"505\"], [\"ne\",\n // Niger\n \"227\"], [\"ng\",\n // Nigeria\n \"234\"], [\"nu\",\n // Niue\n \"683\"], [\"nf\",\n // Norfolk Island\n \"672\"], [\"kp\",\n // North Korea\n \"850\"], [\"mk\",\n // North Macedonia\n \"389\"], [\"mp\",\n // Northern Mariana Islands\n \"1\", 17, [\"670\"]], [\"no\",\n // Norway\n \"47\", 0], [\"om\",\n // Oman\n \"968\"], [\"pk\",\n // Pakistan\n \"92\"], [\"pw\",\n // Palau\n \"680\"], [\"ps\",\n // Palestinian Territories\n \"970\"], [\"pa\",\n // Panama\n \"507\"], [\"pg\",\n // Papua New Guinea\n \"675\"], [\"py\",\n // Paraguay\n \"595\"], [\"pe\",\n // Peru\n \"51\"], [\"ph\",\n // Philippines\n \"63\"], [\"pl\",\n // Poland\n \"48\"], [\"pt\",\n // Portugal\n \"351\"], [\"pr\",\n // Puerto Rico\n \"1\", 3, [\"787\", \"939\"]], [\"qa\",\n // Qatar\n \"974\"], [\"re\",\n // Réunion\n \"262\", 0, null, \"0\"], [\"ro\",\n // Romania\n \"40\"], [\"ru\",\n // Russia\n \"7\", 0, null, \"8\"], [\"rw\",\n // Rwanda\n \"250\"], [\"ws\",\n // Samoa\n \"685\"], [\"sm\",\n // San Marino\n \"378\"], [\"st\",\n // São Tomé & Príncipe\n \"239\"], [\"sa\",\n // Saudi Arabia\n \"966\"], [\"sn\",\n // Senegal\n \"221\"], [\"rs\",\n // Serbia\n \"381\"], [\"sc\",\n // Seychelles\n \"248\"], [\"sl\",\n // Sierra Leone\n \"232\"], [\"sg\",\n // Singapore\n \"65\"], [\"sx\",\n // Sint Maarten\n \"1\", 21, [\"721\"]], [\"sk\",\n // Slovakia\n \"421\"], [\"si\",\n // Slovenia\n \"386\"], [\"sb\",\n // Solomon Islands\n \"677\"], [\"so\",\n // Somalia\n \"252\"], [\"za\",\n // South Africa\n \"27\"], [\"kr\",\n // South Korea\n \"82\"], [\"ss\",\n // South Sudan\n \"211\"], [\"es\",\n // Spain\n \"34\"], [\"lk\",\n // Sri Lanka\n \"94\"], [\"bl\",\n // St. Barthélemy\n \"590\", 1], [\"sh\",\n // St. Helena\n \"290\"], [\"kn\",\n // St. Kitts & Nevis\n \"1\", 18, [\"869\"]], [\"lc\",\n // St. Lucia\n \"1\", 19, [\"758\"]], [\"mf\",\n // St. Martin\n \"590\", 2], [\"pm\",\n // St. Pierre & Miquelon\n \"508\"], [\"vc\",\n // St. Vincent & Grenadines\n \"1\", 20, [\"784\"]], [\"sd\",\n // Sudan\n \"249\"], [\"sr\",\n // Suriname\n \"597\"], [\"sj\",\n // Svalbard & Jan Mayen\n \"47\", 1, [\"79\"]], [\"se\",\n // Sweden\n \"46\"], [\"ch\",\n // Switzerland\n \"41\"], [\"sy\",\n // Syria\n \"963\"], [\"tw\",\n // Taiwan\n \"886\"], [\"tj\",\n // Tajikistan\n \"992\"], [\"tz\",\n // Tanzania\n \"255\"], [\"th\",\n // Thailand\n \"66\"], [\"tl\",\n // Timor-Leste\n \"670\"], [\"tg\",\n // Togo\n \"228\"], [\"tk\",\n // Tokelau\n \"690\"], [\"to\",\n // Tonga\n \"676\"], [\"tt\",\n // Trinidad & Tobago\n \"1\", 22, [\"868\"]], [\"tn\",\n // Tunisia\n \"216\"], [\"tr\",\n // Turkey\n \"90\"], [\"tm\",\n // Turkmenistan\n \"993\"], [\"tc\",\n // Turks & Caicos Islands\n \"1\", 23, [\"649\"]], [\"tv\",\n // Tuvalu\n \"688\"], [\"ug\",\n // Uganda\n \"256\"], [\"ua\",\n // Ukraine\n \"380\"], [\"ae\",\n // United Arab Emirates\n \"971\"], [\"gb\",\n // United Kingdom\n \"44\", 0, null, \"0\"], [\"us\",\n // United States\n \"1\", 0], [\"uy\",\n // Uruguay\n \"598\"], [\"vi\",\n // U.S. Virgin Islands\n \"1\", 24, [\"340\"]], [\"uz\",\n // Uzbekistan\n \"998\"], [\"vu\",\n // Vanuatu\n \"678\"], [\"va\",\n // Vatican City\n \"39\", 1, [\"06698\"]], [\"ve\",\n // Venezuela\n \"58\"], [\"vn\",\n // Vietnam\n \"84\"], [\"wf\",\n // Wallis & Futuna\n \"681\"], [\"eh\",\n // Western Sahara\n \"212\", 1, [\"5288\", \"5289\"], \"0\"], [\"ye\",\n // Yemen\n \"967\"], [\"zm\",\n // Zambia\n \"260\"], [\"zw\",\n // Zimbabwe\n \"263\"]];\n var allCountries = [];\n for (let i = 0; i < rawCountryData.length; i++) {\n const c = rawCountryData[i];\n allCountries[i] = {\n name: \"\",\n // this is now populated in the plugin\n iso2: c[0],\n dialCode: c[1],\n priority: c[2] || 0,\n areaCodes: c[3] || null,\n nodeById: {},\n nationalPrefix: c[4] || null\n };\n }\n var data_default = allCountries;\n\n // src/js/intl-tel-input/i18n/en/countries.ts\n var countryTranslations = {\n ad: \"Andorra\",\n ae: \"United Arab Emirates\",\n af: \"Afghanistan\",\n ag: \"Antigua & Barbuda\",\n ai: \"Anguilla\",\n al: \"Albania\",\n am: \"Armenia\",\n ao: \"Angola\",\n ar: \"Argentina\",\n as: \"American Samoa\",\n at: \"Austria\",\n au: \"Australia\",\n aw: \"Aruba\",\n ax: \"\\xC5land Islands\",\n az: \"Azerbaijan\",\n ba: \"Bosnia & Herzegovina\",\n bb: \"Barbados\",\n bd: \"Bangladesh\",\n be: \"Belgium\",\n bf: \"Burkina Faso\",\n bg: \"Bulgaria\",\n bh: \"Bahrain\",\n bi: \"Burundi\",\n bj: \"Benin\",\n bl: \"St. Barth\\xE9lemy\",\n bm: \"Bermuda\",\n bn: \"Brunei\",\n bo: \"Bolivia\",\n bq: \"Caribbean Netherlands\",\n br: \"Brazil\",\n bs: \"Bahamas\",\n bt: \"Bhutan\",\n bw: \"Botswana\",\n by: \"Belarus\",\n bz: \"Belize\",\n ca: \"Canada\",\n cc: \"Cocos (Keeling) Islands\",\n cd: \"Congo - Kinshasa\",\n cf: \"Central African Republic\",\n cg: \"Congo - Brazzaville\",\n ch: \"Switzerland\",\n ci: \"C\\xF4te d\\u2019Ivoire\",\n ck: \"Cook Islands\",\n cl: \"Chile\",\n cm: \"Cameroon\",\n cn: \"China\",\n co: \"Colombia\",\n cr: \"Costa Rica\",\n cu: \"Cuba\",\n cv: \"Cape Verde\",\n cw: \"Cura\\xE7ao\",\n cx: \"Christmas Island\",\n cy: \"Cyprus\",\n cz: \"Czechia\",\n de: \"Germany\",\n dj: \"Djibouti\",\n dk: \"Denmark\",\n dm: \"Dominica\",\n do: \"Dominican Republic\",\n dz: \"Algeria\",\n ec: \"Ecuador\",\n ee: \"Estonia\",\n eg: \"Egypt\",\n eh: \"Western Sahara\",\n er: \"Eritrea\",\n es: \"Spain\",\n et: \"Ethiopia\",\n fi: \"Finland\",\n fj: \"Fiji\",\n fk: \"Falkland Islands\",\n fm: \"Micronesia\",\n fo: \"Faroe Islands\",\n fr: \"France\",\n ga: \"Gabon\",\n gb: \"United Kingdom\",\n gd: \"Grenada\",\n ge: \"Georgia\",\n gf: \"French Guiana\",\n gg: \"Guernsey\",\n gh: \"Ghana\",\n gi: \"Gibraltar\",\n gl: \"Greenland\",\n gm: \"Gambia\",\n gn: \"Guinea\",\n gp: \"Guadeloupe\",\n gq: \"Equatorial Guinea\",\n gr: \"Greece\",\n gt: \"Guatemala\",\n gu: \"Guam\",\n gw: \"Guinea-Bissau\",\n gy: \"Guyana\",\n hk: \"Hong Kong SAR China\",\n hn: \"Honduras\",\n hr: \"Croatia\",\n ht: \"Haiti\",\n hu: \"Hungary\",\n id: \"Indonesia\",\n ie: \"Ireland\",\n il: \"Israel\",\n im: \"Isle of Man\",\n in: \"India\",\n io: \"British Indian Ocean Territory\",\n iq: \"Iraq\",\n ir: \"Iran\",\n is: \"Iceland\",\n it: \"Italy\",\n je: \"Jersey\",\n jm: \"Jamaica\",\n jo: \"Jordan\",\n jp: \"Japan\",\n ke: \"Kenya\",\n kg: \"Kyrgyzstan\",\n kh: \"Cambodia\",\n ki: \"Kiribati\",\n km: \"Comoros\",\n kn: \"St. Kitts & Nevis\",\n kp: \"North Korea\",\n kr: \"South Korea\",\n kw: \"Kuwait\",\n ky: \"Cayman Islands\",\n kz: \"Kazakhstan\",\n la: \"Laos\",\n lb: \"Lebanon\",\n lc: \"St. Lucia\",\n li: \"Liechtenstein\",\n lk: \"Sri Lanka\",\n lr: \"Liberia\",\n ls: \"Lesotho\",\n lt: \"Lithuania\",\n lu: \"Luxembourg\",\n lv: \"Latvia\",\n ly: \"Libya\",\n ma: \"Morocco\",\n mc: \"Monaco\",\n md: \"Moldova\",\n me: \"Montenegro\",\n mf: \"St. Martin\",\n mg: \"Madagascar\",\n mh: \"Marshall Islands\",\n mk: \"North Macedonia\",\n ml: \"Mali\",\n mm: \"Myanmar (Burma)\",\n mn: \"Mongolia\",\n mo: \"Macao SAR China\",\n mp: \"Northern Mariana Islands\",\n mq: \"Martinique\",\n mr: \"Mauritania\",\n ms: \"Montserrat\",\n mt: \"Malta\",\n mu: \"Mauritius\",\n mv: \"Maldives\",\n mw: \"Malawi\",\n mx: \"Mexico\",\n my: \"Malaysia\",\n mz: \"Mozambique\",\n na: \"Namibia\",\n nc: \"New Caledonia\",\n ne: \"Niger\",\n nf: \"Norfolk Island\",\n ng: \"Nigeria\",\n ni: \"Nicaragua\",\n nl: \"Netherlands\",\n no: \"Norway\",\n np: \"Nepal\",\n nr: \"Nauru\",\n nu: \"Niue\",\n nz: \"New Zealand\",\n om: \"Oman\",\n pa: \"Panama\",\n pe: \"Peru\",\n pf: \"French Polynesia\",\n pg: \"Papua New Guinea\",\n ph: \"Philippines\",\n pk: \"Pakistan\",\n pl: \"Poland\",\n pm: \"St. Pierre & Miquelon\",\n pr: \"Puerto Rico\",\n ps: \"Palestinian Territories\",\n pt: \"Portugal\",\n pw: \"Palau\",\n py: \"Paraguay\",\n qa: \"Qatar\",\n re: \"R\\xE9union\",\n ro: \"Romania\",\n rs: \"Serbia\",\n ru: \"Russia\",\n rw: \"Rwanda\",\n sa: \"Saudi Arabia\",\n sb: \"Solomon Islands\",\n sc: \"Seychelles\",\n sd: \"Sudan\",\n se: \"Sweden\",\n sg: \"Singapore\",\n sh: \"St. Helena\",\n si: \"Slovenia\",\n sj: \"Svalbard & Jan Mayen\",\n sk: \"Slovakia\",\n sl: \"Sierra Leone\",\n sm: \"San Marino\",\n sn: \"Senegal\",\n so: \"Somalia\",\n sr: \"Suriname\",\n ss: \"South Sudan\",\n st: \"S\\xE3o Tom\\xE9 & Pr\\xEDncipe\",\n sv: \"El Salvador\",\n sx: \"Sint Maarten\",\n sy: \"Syria\",\n sz: \"Eswatini\",\n tc: \"Turks & Caicos Islands\",\n td: \"Chad\",\n tg: \"Togo\",\n th: \"Thailand\",\n tj: \"Tajikistan\",\n tk: \"Tokelau\",\n tl: \"Timor-Leste\",\n tm: \"Turkmenistan\",\n tn: \"Tunisia\",\n to: \"Tonga\",\n tr: \"Turkey\",\n tt: \"Trinidad & Tobago\",\n tv: \"Tuvalu\",\n tw: \"Taiwan\",\n tz: \"Tanzania\",\n ua: \"Ukraine\",\n ug: \"Uganda\",\n us: \"United States\",\n uy: \"Uruguay\",\n uz: \"Uzbekistan\",\n va: \"Vatican City\",\n vc: \"St. Vincent & Grenadines\",\n ve: \"Venezuela\",\n vg: \"British Virgin Islands\",\n vi: \"U.S. Virgin Islands\",\n vn: \"Vietnam\",\n vu: \"Vanuatu\",\n wf: \"Wallis & Futuna\",\n ws: \"Samoa\",\n ye: \"Yemen\",\n yt: \"Mayotte\",\n za: \"South Africa\",\n zm: \"Zambia\",\n zw: \"Zimbabwe\"\n };\n var countries_default = countryTranslations;\n\n // src/js/intl-tel-input/i18n/en/interface.ts\n var interfaceTranslations = {\n selectedCountryAriaLabel: \"Selected country\",\n noCountrySelected: \"No country selected\",\n countryListAriaLabel: \"List of countries\",\n searchPlaceholder: \"Search\",\n zeroSearchResults: \"No results found\",\n oneSearchResult: \"1 result found\",\n multipleSearchResults: \"${count} results found\",\n // additional countries (not supported by country-list library)\n ac: \"Ascension Island\",\n xk: \"Kosovo\"\n };\n var interface_default = interfaceTranslations;\n\n // src/js/intl-tel-input/i18n/en/index.ts\n var allTranslations = {\n ...countries_default,\n ...interface_default\n };\n var en_default = allTranslations;\n\n // src/js/intl-tel-input.ts\n for (let i = 0; i < data_default.length; i++) {\n data_default[i].name = en_default[data_default[i].iso2];\n }\n var id = 0;\n var defaults = {\n //* Whether or not to allow the dropdown.\n allowDropdown: true,\n //* Add a placeholder in the input with an example number for the selected country.\n autoPlaceholder: \"polite\",\n //* Modify the parentClass.\n containerClass: \"\",\n //* The order of the countries in the dropdown. Defaults to alphabetical.\n countryOrder: null,\n //* Add a country search input at the top of the dropdown.\n countrySearch: true,\n //* Modify the auto placeholder.\n customPlaceholder: null,\n //* Append menu to specified element.\n dropdownContainer: null,\n //* Don't display these countries.\n excludeCountries: [],\n //* Fix the dropdown width to the input width (rather than being as wide as the longest country name).\n fixDropdownWidth: true,\n //* Format the number as the user types\n formatAsYouType: true,\n //* Format the input value during initialisation and on setNumber.\n formatOnDisplay: true,\n //* geoIp lookup function.\n geoIpLookup: null,\n //* Inject a hidden input with the name returned from this function, and on submit, populate it with the result of getNumber.\n hiddenInput: null,\n //* Internationalise the plugin text e.g. search input placeholder, country names.\n i18n: {},\n //* Initial country.\n initialCountry: \"\",\n //* A function to load the utils script.\n loadUtils: null,\n //* National vs international formatting for numbers e.g. placeholders and displaying existing numbers.\n nationalMode: true,\n //* Display only these countries.\n onlyCountries: [],\n //* Number type to use for placeholders.\n placeholderNumberType: \"MOBILE\",\n //* Show flags - for both the selected country, and in the country dropdown\n showFlags: true,\n //* Display the international dial code next to the selected flag.\n separateDialCode: false,\n //* Only allow certain chars e.g. a plus followed by numeric digits, and cap at max valid length.\n strictMode: false,\n //* Use full screen popup instead of dropdown for country list.\n useFullscreenPopup: typeof navigator !== \"undefined\" && typeof window !== \"undefined\" ?\n //* We cannot just test screen size as some smartphones/website meta tags will report desktop resolutions.\n //* Note: to target Android Mobiles (and not Tablets), we must find 'Android' and 'Mobile'\n /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || window.innerWidth <= 500 : false,\n //* The number type to enforce during validation.\n validationNumberTypes: [\"MOBILE\"]\n };\n var regionlessNanpNumbers = [\"800\", \"822\", \"833\", \"844\", \"855\", \"866\", \"877\", \"880\", \"881\", \"882\", \"883\", \"884\", \"885\", \"886\", \"887\", \"888\", \"889\"];\n var getNumeric = s => s.replace(/\\D/g, \"\");\n var normaliseString = (s = \"\") => s.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\").toLowerCase();\n var isRegionlessNanp = number => {\n const numeric = getNumeric(number);\n if (numeric.charAt(0) === \"1\") {\n const areaCode = numeric.substr(1, 3);\n return regionlessNanpNumbers.includes(areaCode);\n }\n return false;\n };\n var translateCursorPosition = (relevantChars, formattedValue, prevCaretPos, isDeleteForwards) => {\n if (prevCaretPos === 0 && !isDeleteForwards) {\n return 0;\n }\n let count = 0;\n for (let i = 0; i < formattedValue.length; i++) {\n if (/[+0-9]/.test(formattedValue[i])) {\n count++;\n }\n if (count === relevantChars && !isDeleteForwards) {\n return i + 1;\n }\n if (isDeleteForwards && count === relevantChars + 1) {\n return i;\n }\n }\n return formattedValue.length;\n };\n var createEl = (name, attrs, container) => {\n const el = document.createElement(name);\n if (attrs) {\n Object.entries(attrs).forEach(([key, value]) => el.setAttribute(key, value));\n }\n if (container) {\n container.appendChild(el);\n }\n return el;\n };\n var forEachInstance = (method, ...args) => {\n const {\n instances\n } = intlTelInput;\n Object.values(instances).forEach(instance => instance[method](...args));\n };\n var Iti = class {\n constructor(input, customOptions = {}) {\n this.id = id++;\n this.telInput = input;\n this.highlightedItem = null;\n this.options = Object.assign({}, defaults, customOptions);\n this.hadInitialPlaceholder = Boolean(input.getAttribute(\"placeholder\"));\n }\n //* Can't be private as it's called from intlTelInput convenience wrapper.\n _init() {\n if (this.options.useFullscreenPopup) {\n this.options.fixDropdownWidth = false;\n }\n if (this.options.onlyCountries.length === 1) {\n this.options.initialCountry = this.options.onlyCountries[0];\n }\n if (this.options.separateDialCode) {\n this.options.nationalMode = false;\n }\n if (this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode) {\n this.options.nationalMode = false;\n }\n if (this.options.useFullscreenPopup && !this.options.dropdownContainer) {\n this.options.dropdownContainer = document.body;\n }\n this.isAndroid = typeof navigator !== \"undefined\" ? /Android/i.test(navigator.userAgent) : false;\n this.isRTL = !!this.telInput.closest(\"[dir=rtl]\");\n const showOnDefaultSide = this.options.allowDropdown || this.options.separateDialCode;\n this.showSelectedCountryOnLeft = this.isRTL ? !showOnDefaultSide : showOnDefaultSide;\n if (this.options.separateDialCode) {\n if (this.isRTL) {\n this.originalPaddingRight = this.telInput.style.paddingRight;\n } else {\n this.originalPaddingLeft = this.telInput.style.paddingLeft;\n }\n }\n this.options.i18n = {\n ...en_default,\n ...this.options.i18n\n };\n const autoCountryPromise = new Promise((resolve, reject) => {\n this.resolveAutoCountryPromise = resolve;\n this.rejectAutoCountryPromise = reject;\n });\n const utilsScriptPromise = new Promise((resolve, reject) => {\n this.resolveUtilsScriptPromise = resolve;\n this.rejectUtilsScriptPromise = reject;\n });\n this.promise = Promise.all([autoCountryPromise, utilsScriptPromise]);\n this.selectedCountryData = {};\n this._processCountryData();\n this._generateMarkup();\n this._setInitialState();\n this._initListeners();\n this._initRequests();\n }\n //********************\n //* PRIVATE METHODS\n //********************\n //* Prepare all of the country data, including onlyCountries, excludeCountries, countryOrder options.\n _processCountryData() {\n this._processAllCountries();\n this._processDialCodes();\n this._translateCountryNames();\n this._sortCountries();\n }\n //* Sort countries by countryOrder option (if present), then name.\n _sortCountries() {\n if (this.options.countryOrder) {\n this.options.countryOrder = this.options.countryOrder.map(country => country.toLowerCase());\n }\n this.countries.sort((a, b) => {\n const {\n countryOrder\n } = this.options;\n if (countryOrder) {\n const aIndex = countryOrder.indexOf(a.iso2);\n const bIndex = countryOrder.indexOf(b.iso2);\n const aIndexExists = aIndex > -1;\n const bIndexExists = bIndex > -1;\n if (aIndexExists || bIndexExists) {\n if (aIndexExists && bIndexExists) {\n return aIndex - bIndex;\n }\n return aIndexExists ? -1 : 1;\n }\n }\n return a.name.localeCompare(b.name);\n });\n }\n //* Add a dial code to this.dialCodeToIso2Map.\n _addToDialCodeMap(iso2, dialCode, priority) {\n if (dialCode.length > this.dialCodeMaxLen) {\n this.dialCodeMaxLen = dialCode.length;\n }\n if (!this.dialCodeToIso2Map.hasOwnProperty(dialCode)) {\n this.dialCodeToIso2Map[dialCode] = [];\n }\n for (let i = 0; i < this.dialCodeToIso2Map[dialCode].length; i++) {\n if (this.dialCodeToIso2Map[dialCode][i] === iso2) {\n return;\n }\n }\n const index = priority !== void 0 ? priority : this.dialCodeToIso2Map[dialCode].length;\n this.dialCodeToIso2Map[dialCode][index] = iso2;\n }\n //* Process onlyCountries or excludeCountries array if present.\n _processAllCountries() {\n const {\n onlyCountries,\n excludeCountries\n } = this.options;\n if (onlyCountries.length) {\n const lowerCaseOnlyCountries = onlyCountries.map(country => country.toLowerCase());\n this.countries = data_default.filter(country => lowerCaseOnlyCountries.includes(country.iso2));\n } else if (excludeCountries.length) {\n const lowerCaseExcludeCountries = excludeCountries.map(country => country.toLowerCase());\n this.countries = data_default.filter(country => !lowerCaseExcludeCountries.includes(country.iso2));\n } else {\n this.countries = data_default;\n }\n }\n //* Translate Countries by object literal provided on config.\n _translateCountryNames() {\n for (let i = 0; i < this.countries.length; i++) {\n const iso2 = this.countries[i].iso2.toLowerCase();\n if (this.options.i18n.hasOwnProperty(iso2)) {\n this.countries[i].name = this.options.i18n[iso2];\n }\n }\n }\n //* Generate this.dialCodes and this.dialCodeToIso2Map.\n _processDialCodes() {\n this.dialCodes = {};\n this.dialCodeMaxLen = 0;\n this.dialCodeToIso2Map = {};\n for (let i = 0; i < this.countries.length; i++) {\n const c = this.countries[i];\n if (!this.dialCodes[c.dialCode]) {\n this.dialCodes[c.dialCode] = true;\n }\n this._addToDialCodeMap(c.iso2, c.dialCode, c.priority);\n }\n for (let i = 0; i < this.countries.length; i++) {\n const c = this.countries[i];\n if (c.areaCodes) {\n const rootIso2Code = this.dialCodeToIso2Map[c.dialCode][0];\n for (let j = 0; j < c.areaCodes.length; j++) {\n const areaCode = c.areaCodes[j];\n for (let k = 1; k < areaCode.length; k++) {\n const partialAreaCode = areaCode.substr(0, k);\n const partialDialCode = c.dialCode + partialAreaCode;\n this._addToDialCodeMap(rootIso2Code, partialDialCode);\n this._addToDialCodeMap(c.iso2, partialDialCode);\n }\n this._addToDialCodeMap(c.iso2, c.dialCode + areaCode);\n }\n }\n }\n }\n //* Generate all of the markup for the plugin: the selected country overlay, and the dropdown.\n _generateMarkup() {\n this.telInput.classList.add(\"iti__tel-input\");\n if (!this.telInput.hasAttribute(\"autocomplete\") && !(this.telInput.form && this.telInput.form.hasAttribute(\"autocomplete\"))) {\n this.telInput.setAttribute(\"autocomplete\", \"off\");\n }\n const {\n allowDropdown,\n separateDialCode,\n showFlags,\n containerClass,\n hiddenInput,\n dropdownContainer,\n fixDropdownWidth,\n useFullscreenPopup,\n countrySearch,\n i18n\n } = this.options;\n let parentClass = \"iti\";\n if (allowDropdown) {\n parentClass += \" iti--allow-dropdown\";\n }\n if (showFlags) {\n parentClass += \" iti--show-flags\";\n }\n if (containerClass) {\n parentClass += ` ${containerClass}`;\n }\n if (!useFullscreenPopup) {\n parentClass += \" iti--inline-dropdown\";\n }\n const wrapper = createEl(\"div\", {\n class: parentClass\n });\n this.telInput.parentNode?.insertBefore(wrapper, this.telInput);\n if (allowDropdown || showFlags || separateDialCode) {\n this.countryContainer = createEl(\"div\", {\n class: \"iti__country-container\"\n }, wrapper);\n if (this.showSelectedCountryOnLeft) {\n this.countryContainer.style.left = \"0px\";\n } else {\n this.countryContainer.style.right = \"0px\";\n }\n if (allowDropdown) {\n this.selectedCountry = createEl(\"button\", {\n type: \"button\",\n class: \"iti__selected-country\",\n \"aria-expanded\": \"false\",\n \"aria-label\": this.options.i18n.selectedCountryAriaLabel,\n \"aria-haspopup\": \"true\",\n \"aria-controls\": `iti-${this.id}__dropdown-content`,\n \"role\": \"combobox\"\n }, this.countryContainer);\n if (this.telInput.disabled) {\n this.selectedCountry.setAttribute(\"disabled\", \"true\");\n }\n } else {\n this.selectedCountry = createEl(\"div\", {\n class: \"iti__selected-country\"\n }, this.countryContainer);\n }\n const selectedCountryPrimary = createEl(\"div\", {\n class: \"iti__selected-country-primary\"\n }, this.selectedCountry);\n this.selectedCountryInner = createEl(\"div\", {\n class: \"iti__flag\"\n }, selectedCountryPrimary);\n this.selectedCountryA11yText = createEl(\"span\", {\n class: \"iti__a11y-text\"\n }, this.selectedCountryInner);\n if (allowDropdown) {\n this.dropdownArrow = createEl(\"div\", {\n class: \"iti__arrow\",\n \"aria-hidden\": \"true\"\n }, selectedCountryPrimary);\n }\n if (separateDialCode) {\n this.selectedDialCode = createEl(\"div\", {\n class: \"iti__selected-dial-code\"\n }, this.selectedCountry);\n }\n if (allowDropdown) {\n const extraClasses = fixDropdownWidth ? \"\" : \"iti--flexible-dropdown-width\";\n this.dropdownContent = createEl(\"div\", {\n id: `iti-${this.id}__dropdown-content`,\n class: `iti__dropdown-content iti__hide ${extraClasses}`\n });\n if (countrySearch) {\n this.searchInput = createEl(\"input\", {\n type: \"text\",\n class: \"iti__search-input\",\n placeholder: i18n.searchPlaceholder,\n role: \"combobox\",\n \"aria-expanded\": \"true\",\n \"aria-label\": i18n.searchPlaceholder,\n \"aria-controls\": `iti-${this.id}__country-listbox`,\n \"aria-autocomplete\": \"list\",\n \"autocomplete\": \"off\"\n }, this.dropdownContent);\n this.searchResultsA11yText = createEl(\"span\", {\n class: \"iti__a11y-text\"\n }, this.dropdownContent);\n }\n this.countryList = createEl(\"ul\", {\n class: \"iti__country-list\",\n id: `iti-${this.id}__country-listbox`,\n role: \"listbox\",\n \"aria-label\": i18n.countryListAriaLabel\n }, this.dropdownContent);\n this._appendListItems();\n if (countrySearch) {\n this._updateSearchResultsText();\n }\n if (dropdownContainer) {\n let dropdownClasses = \"iti iti--container\";\n if (useFullscreenPopup) {\n dropdownClasses += \" iti--fullscreen-popup\";\n } else {\n dropdownClasses += \" iti--inline-dropdown\";\n }\n this.dropdown = createEl(\"div\", {\n class: dropdownClasses\n });\n this.dropdown.appendChild(this.dropdownContent);\n } else {\n this.countryContainer.appendChild(this.dropdownContent);\n }\n }\n }\n wrapper.appendChild(this.telInput);\n this._updateInputPadding();\n if (hiddenInput) {\n const telInputName = this.telInput.getAttribute(\"name\") || \"\";\n const names = hiddenInput(telInputName);\n if (names.phone) {\n const existingInput = this.telInput.form?.querySelector(`input[name=\"${names.phone}\"]`);\n if (existingInput) {\n this.hiddenInput = existingInput;\n } else {\n this.hiddenInput = createEl(\"input\", {\n type: \"hidden\",\n name: names.phone\n });\n wrapper.appendChild(this.hiddenInput);\n }\n }\n if (names.country) {\n const existingInput = this.telInput.form?.querySelector(`input[name=\"${names.country}\"]`);\n if (existingInput) {\n this.hiddenInputCountry = existingInput;\n } else {\n this.hiddenInputCountry = createEl(\"input\", {\n type: \"hidden\",\n name: names.country\n });\n wrapper.appendChild(this.hiddenInputCountry);\n }\n }\n }\n }\n //* For each country: add a country list item
  • to the countryList