@konstructio/ui 0.1.2-alpha.3 → 0.1.2-alpha.30
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/dist/DatePicker.css +1 -1
- package/dist/Modal-5xSxFoaD.js +99 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/chevron-down-DgT-uSF9.js +5 -0
- package/dist/chevron-right-DYvXLeql.js +7 -0
- package/dist/chevron-up-DrQr2Fwd.js +5 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +30 -33
- package/dist/components/Badge/Badge.variants.js +8 -6
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +24 -23
- package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.variants.js +1 -1
- package/dist/components/Card/Card.variants.js +5 -9
- package/dist/components/Checkbox/Checkbox.js +6 -6
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +2 -2
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +1209 -1147
- package/dist/components/Divider/Divider.variants.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +46 -28
- package/dist/components/Dropdown/Dropdown.variants.js +32 -9
- package/dist/components/Dropdown/components/List/List.js +133 -54
- package/dist/components/Dropdown/components/List/List.variants.js +9 -7
- package/dist/components/Dropdown/components/ListItem/ListItem.js +74 -24
- package/dist/components/Dropdown/components/ListItem/ListItem.variants.js +9 -7
- package/dist/components/Dropdown/components/Wrapper.js +144 -109
- package/dist/components/Dropdown/constants/index.js +4 -0
- package/dist/components/Dropdown/constants/pagination.js +4 -0
- package/dist/components/Dropdown/contexts/dropdown.context.js +26 -8
- package/dist/components/Dropdown/contexts/dropdown.provider.js +48 -19
- package/dist/components/Dropdown/hooks/useDropdown.js +83 -39
- package/dist/components/Dropdown/hooks/useNavigationList.js +28 -36
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/Filter.variants.js +2 -2
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.variants.js +1 -1
- package/dist/components/Loading/Loading.js +1 -7
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Body/Body.js +1 -1
- package/dist/components/Modal/components/Footer/Footer.js +1 -1
- package/dist/components/Modal/components/Header/Header.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +45 -0
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +27 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +629 -0
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +36 -0
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
- package/dist/components/PhoneNumberInput/components/Wrapper.js +625 -0
- package/dist/components/PhoneNumberInput/components/index.js +6 -0
- package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
- package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6137 -0
- package/dist/components/PhoneNumberInput/utils/index.js +11 -0
- package/dist/components/PieChart/PieChart.js +647 -664
- package/dist/components/RadioCard/RadioCard.variants.js +1 -6
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Sidebar/Sidebar.variants.js +2 -2
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +8 -8
- package/dist/components/Switch/Switch.variants.js +4 -4
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.variants.js +45 -24
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +9 -8
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +98 -49
- package/dist/components/TimePicker/TimePicker.variants.js +2 -2
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Toast/Toast.js +206 -181
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Typography/Typography.variants.js +18 -23
- package/dist/components/VirtualizedTable/VirtualizedTable.js +119 -0
- package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +5 -0
- package/dist/components/VirtualizedTable/assets/chevron-down.js +25 -0
- package/dist/components/VirtualizedTable/assets/chevron-up.js +25 -0
- package/dist/components/VirtualizedTable/assets/index.js +6 -0
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +72 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +51 -0
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -0
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +34 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +88 -0
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
- package/dist/components/VirtualizedTable/components/Header/Header.js +84 -0
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +53 -0
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +67 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +34 -0
- package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
- package/dist/components/VirtualizedTable/components/index.js +16 -0
- package/dist/components/VirtualizedTable/constants/index.js +5 -0
- package/dist/components/VirtualizedTable/constants/pagination.js +5 -0
- package/dist/components/VirtualizedTable/contexts/index.js +8 -0
- package/dist/components/VirtualizedTable/contexts/table.context.js +32 -0
- package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +85 -0
- package/dist/components/index.js +79 -73
- package/dist/contexts/theme.provider.js +0 -1
- package/dist/{createLucideIcon-DbC6TvM5.js → createLucideIcon-D4r5Phnh.js} +0 -24
- package/dist/debounce-BFejQm9P.js +200 -0
- package/dist/ellipsis-vertical-BVPtjl5f.js +9 -0
- package/dist/{index-h-Ul0anl.js → index--V_ZsiQe.js} +1 -22
- package/dist/index-2hB40Iuc.js +1873 -0
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/{index-bwWKd82e.js → index-BbQkJE5L.js} +1 -1
- package/dist/index-BtQfgaSF.js +60 -0
- package/dist/index-C3tHPg8y.js +662 -0
- package/dist/index-CIAmiWcw.js +200 -0
- package/dist/index-CSFe9uC5.js +14 -0
- package/dist/index-CSWGJT-v.js +1722 -0
- package/dist/index-CigKKiZS.js +91 -0
- package/dist/index-DDByhzds.js +137 -0
- package/dist/{index-BAraV3ai.js → index-DH2Fnov1.js} +11 -12
- package/dist/index-DLcqcWxM.js +29 -0
- package/dist/index-Dbt2vBmS.js +136 -0
- package/dist/{index-DB2XhXHn.js → index-DpW9ExsS.js} +7 -7
- package/dist/index-DrWQH0QF.js +55 -0
- package/dist/{index-D3xzCzcO.js → index-X4k_cU8k.js} +4 -4
- package/dist/index-kyuBfLcN.js +479 -0
- package/dist/{index-C1g_chDT.js → index-mPY_8Y5v.js} +2 -2
- package/dist/index-ohdbKsws.js +27 -0
- package/dist/index.d.ts +184 -18
- package/dist/index.js +106 -98
- package/dist/libphonenumber-_7ZyKWA7.js +11549 -0
- package/dist/package.json +46 -32
- package/dist/styles.css +1 -1
- package/dist/ui/civo-theme.css +191 -167
- package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
- package/dist/utils/index.js +534 -501
- package/dist/{x-BPcqkRZd.js → x-DPU9OdYH.js} +1 -1
- package/package.json +46 -32
- package/dist/Modal-V67Uz78z.js +0 -98
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/chevron-down-BLZPftpV.js +0 -11
- package/dist/chevron-up-RLP4nX7V.js +0 -54
- package/dist/index-BXuxPoz7.js +0 -435
- package/dist/index-BfXxHr_2.js +0 -125
- package/dist/index-C9T9HQaa.js +0 -423
- package/dist/index-CZnD2QxM.js +0 -32
- package/dist/index-CrBonFvu.js +0 -144
- package/dist/index-Cvx4lqTq.js +0 -47
- package/dist/index-DQH6odE9.js +0 -82
- package/dist/index-Oq5GlCHP.js +0 -131
- package/dist/index-iXyXtdgP.js +0 -31
|
@@ -0,0 +1,662 @@
|
|
|
1
|
+
import { g as p } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
2
|
+
var T = {};
|
|
3
|
+
const H = /* @__PURE__ */ JSON.parse('[["AF","AFG","004","ISO 3166-2:AF"],["AL","ALB","008","ISO 3166-2:AL"],["DZ","DZA","012","ISO 3166-2:DZ"],["AS","ASM","016","ISO 3166-2:AS"],["AD","AND","020","ISO 3166-2:AD"],["AO","AGO","024","ISO 3166-2:AO"],["AI","AIA","660","ISO 3166-2:AI"],["AQ","ATA","010","ISO 3166-2:AQ"],["AG","ATG","028","ISO 3166-2:AG"],["AR","ARG","032","ISO 3166-2:AR"],["AM","ARM","051","ISO 3166-2:AM"],["AW","ABW","533","ISO 3166-2:AW"],["AU","AUS","036","ISO 3166-2:AU"],["AT","AUT","040","ISO 3166-2:AT"],["AZ","AZE","031","ISO 3166-2:AZ"],["BS","BHS","044","ISO 3166-2:BS"],["BH","BHR","048","ISO 3166-2:BH"],["BD","BGD","050","ISO 3166-2:BD"],["BB","BRB","052","ISO 3166-2:BB"],["BY","BLR","112","ISO 3166-2:BY"],["BE","BEL","056","ISO 3166-2:BE"],["BZ","BLZ","084","ISO 3166-2:BZ"],["BJ","BEN","204","ISO 3166-2:BJ"],["BM","BMU","060","ISO 3166-2:BM"],["BT","BTN","064","ISO 3166-2:BT"],["BO","BOL","068","ISO 3166-2:BO"],["BA","BIH","070","ISO 3166-2:BA"],["BW","BWA","072","ISO 3166-2:BW"],["BV","BVT","074","ISO 3166-2:BV"],["BR","BRA","076","ISO 3166-2:BR"],["IO","IOT","086","ISO 3166-2:IO"],["BN","BRN","096","ISO 3166-2:BN"],["BG","BGR","100","ISO 3166-2:BG"],["BF","BFA","854","ISO 3166-2:BF"],["BI","BDI","108","ISO 3166-2:BI"],["KH","KHM","116","ISO 3166-2:KH"],["CM","CMR","120","ISO 3166-2:CM"],["CA","CAN","124","ISO 3166-2:CA"],["CV","CPV","132","ISO 3166-2:CV"],["KY","CYM","136","ISO 3166-2:KY"],["CF","CAF","140","ISO 3166-2:CF"],["TD","TCD","148","ISO 3166-2:TD"],["CL","CHL","152","ISO 3166-2:CL"],["CN","CHN","156","ISO 3166-2:CN"],["CX","CXR","162","ISO 3166-2:CX"],["CC","CCK","166","ISO 3166-2:CC"],["CO","COL","170","ISO 3166-2:CO"],["KM","COM","174","ISO 3166-2:KM"],["CG","COG","178","ISO 3166-2:CG"],["CD","COD","180","ISO 3166-2:CD"],["CK","COK","184","ISO 3166-2:CK"],["CR","CRI","188","ISO 3166-2:CR"],["CI","CIV","384","ISO 3166-2:CI"],["HR","HRV","191","ISO 3166-2:HR"],["CU","CUB","192","ISO 3166-2:CU"],["CY","CYP","196","ISO 3166-2:CY"],["CZ","CZE","203","ISO 3166-2:CZ"],["DK","DNK","208","ISO 3166-2:DK"],["DJ","DJI","262","ISO 3166-2:DJ"],["DM","DMA","212","ISO 3166-2:DM"],["DO","DOM","214","ISO 3166-2:DO"],["EC","ECU","218","ISO 3166-2:EC"],["EG","EGY","818","ISO 3166-2:EG"],["SV","SLV","222","ISO 3166-2:SV"],["GQ","GNQ","226","ISO 3166-2:GQ"],["ER","ERI","232","ISO 3166-2:ER"],["EE","EST","233","ISO 3166-2:EE"],["ET","ETH","231","ISO 3166-2:ET"],["FK","FLK","238","ISO 3166-2:FK"],["FO","FRO","234","ISO 3166-2:FO"],["FJ","FJI","242","ISO 3166-2:FJ"],["FI","FIN","246","ISO 3166-2:FI"],["FR","FRA","250","ISO 3166-2:FR"],["GF","GUF","254","ISO 3166-2:GF"],["PF","PYF","258","ISO 3166-2:PF"],["TF","ATF","260","ISO 3166-2:TF"],["GA","GAB","266","ISO 3166-2:GA"],["GM","GMB","270","ISO 3166-2:GM"],["GE","GEO","268","ISO 3166-2:GE"],["DE","DEU","276","ISO 3166-2:DE"],["GH","GHA","288","ISO 3166-2:GH"],["GI","GIB","292","ISO 3166-2:GI"],["GR","GRC","300","ISO 3166-2:GR"],["GL","GRL","304","ISO 3166-2:GL"],["GD","GRD","308","ISO 3166-2:GD"],["GP","GLP","312","ISO 3166-2:GP"],["GU","GUM","316","ISO 3166-2:GU"],["GT","GTM","320","ISO 3166-2:GT"],["GN","GIN","324","ISO 3166-2:GN"],["GW","GNB","624","ISO 3166-2:GW"],["GY","GUY","328","ISO 3166-2:GY"],["HT","HTI","332","ISO 3166-2:HT"],["HM","HMD","334","ISO 3166-2:HM"],["VA","VAT","336","ISO 3166-2:VA"],["HN","HND","340","ISO 3166-2:HN"],["HK","HKG","344","ISO 3166-2:HK"],["HU","HUN","348","ISO 3166-2:HU"],["IS","ISL","352","ISO 3166-2:IS"],["IN","IND","356","ISO 3166-2:IN"],["ID","IDN","360","ISO 3166-2:ID"],["IR","IRN","364","ISO 3166-2:IR"],["IQ","IRQ","368","ISO 3166-2:IQ"],["IE","IRL","372","ISO 3166-2:IE"],["IL","ISR","376","ISO 3166-2:IL"],["IT","ITA","380","ISO 3166-2:IT"],["JM","JAM","388","ISO 3166-2:JM"],["JP","JPN","392","ISO 3166-2:JP"],["JO","JOR","400","ISO 3166-2:JO"],["KZ","KAZ","398","ISO 3166-2:KZ"],["KE","KEN","404","ISO 3166-2:KE"],["KI","KIR","296","ISO 3166-2:KI"],["KP","PRK","408","ISO 3166-2:KP"],["KR","KOR","410","ISO 3166-2:KR"],["KW","KWT","414","ISO 3166-2:KW"],["KG","KGZ","417","ISO 3166-2:KG"],["LA","LAO","418","ISO 3166-2:LA"],["LV","LVA","428","ISO 3166-2:LV"],["LB","LBN","422","ISO 3166-2:LB"],["LS","LSO","426","ISO 3166-2:LS"],["LR","LBR","430","ISO 3166-2:LR"],["LY","LBY","434","ISO 3166-2:LY"],["LI","LIE","438","ISO 3166-2:LI"],["LT","LTU","440","ISO 3166-2:LT"],["LU","LUX","442","ISO 3166-2:LU"],["MO","MAC","446","ISO 3166-2:MO"],["MG","MDG","450","ISO 3166-2:MG"],["MW","MWI","454","ISO 3166-2:MW"],["MY","MYS","458","ISO 3166-2:MY"],["MV","MDV","462","ISO 3166-2:MV"],["ML","MLI","466","ISO 3166-2:ML"],["MT","MLT","470","ISO 3166-2:MT"],["MH","MHL","584","ISO 3166-2:MH"],["MQ","MTQ","474","ISO 3166-2:MQ"],["MR","MRT","478","ISO 3166-2:MR"],["MU","MUS","480","ISO 3166-2:MU"],["YT","MYT","175","ISO 3166-2:YT"],["MX","MEX","484","ISO 3166-2:MX"],["FM","FSM","583","ISO 3166-2:FM"],["MD","MDA","498","ISO 3166-2:MD"],["MC","MCO","492","ISO 3166-2:MC"],["MN","MNG","496","ISO 3166-2:MN"],["MS","MSR","500","ISO 3166-2:MS"],["MA","MAR","504","ISO 3166-2:MA"],["MZ","MOZ","508","ISO 3166-2:MZ"],["MM","MMR","104","ISO 3166-2:MM"],["NA","NAM","516","ISO 3166-2:NA"],["NR","NRU","520","ISO 3166-2:NR"],["NP","NPL","524","ISO 3166-2:NP"],["NL","NLD","528","ISO 3166-2:NL"],["NC","NCL","540","ISO 3166-2:NC"],["NZ","NZL","554","ISO 3166-2:NZ"],["NI","NIC","558","ISO 3166-2:NI"],["NE","NER","562","ISO 3166-2:NE"],["NG","NGA","566","ISO 3166-2:NG"],["NU","NIU","570","ISO 3166-2:NU"],["NF","NFK","574","ISO 3166-2:NF"],["MP","MNP","580","ISO 3166-2:MP"],["MK","MKD","807","ISO 3166-2:MK"],["NO","NOR","578","ISO 3166-2:NO"],["OM","OMN","512","ISO 3166-2:OM"],["PK","PAK","586","ISO 3166-2:PK"],["PW","PLW","585","ISO 3166-2:PW"],["PS","PSE","275","ISO 3166-2:PS"],["PA","PAN","591","ISO 3166-2:PA"],["PG","PNG","598","ISO 3166-2:PG"],["PY","PRY","600","ISO 3166-2:PY"],["PE","PER","604","ISO 3166-2:PE"],["PH","PHL","608","ISO 3166-2:PH"],["PN","PCN","612","ISO 3166-2:PN"],["PL","POL","616","ISO 3166-2:PL"],["PT","PRT","620","ISO 3166-2:PT"],["PR","PRI","630","ISO 3166-2:PR"],["QA","QAT","634","ISO 3166-2:QA"],["RE","REU","638","ISO 3166-2:RE"],["RO","ROU","642","ISO 3166-2:RO"],["RU","RUS","643","ISO 3166-2:RU"],["RW","RWA","646","ISO 3166-2:RW"],["SH","SHN","654","ISO 3166-2:SH"],["KN","KNA","659","ISO 3166-2:KN"],["LC","LCA","662","ISO 3166-2:LC"],["PM","SPM","666","ISO 3166-2:PM"],["VC","VCT","670","ISO 3166-2:VC"],["WS","WSM","882","ISO 3166-2:WS"],["SM","SMR","674","ISO 3166-2:SM"],["ST","STP","678","ISO 3166-2:ST"],["SA","SAU","682","ISO 3166-2:SA"],["SN","SEN","686","ISO 3166-2:SN"],["SC","SYC","690","ISO 3166-2:SC"],["SL","SLE","694","ISO 3166-2:SL"],["SG","SGP","702","ISO 3166-2:SG"],["SK","SVK","703","ISO 3166-2:SK"],["SI","SVN","705","ISO 3166-2:SI"],["SB","SLB","090","ISO 3166-2:SB"],["SO","SOM","706","ISO 3166-2:SO"],["ZA","ZAF","710","ISO 3166-2:ZA"],["GS","SGS","239","ISO 3166-2:GS"],["ES","ESP","724","ISO 3166-2:ES"],["LK","LKA","144","ISO 3166-2:LK"],["SD","SDN","729","ISO 3166-2:SD"],["SR","SUR","740","ISO 3166-2:SR"],["SJ","SJM","744","ISO 3166-2:SJ"],["SZ","SWZ","748","ISO 3166-2:SZ"],["SE","SWE","752","ISO 3166-2:SE"],["CH","CHE","756","ISO 3166-2:CH"],["SY","SYR","760","ISO 3166-2:SY"],["TW","TWN","158","ISO 3166-2:TW"],["TJ","TJK","762","ISO 3166-2:TJ"],["TZ","TZA","834","ISO 3166-2:TZ"],["TH","THA","764","ISO 3166-2:TH"],["TL","TLS","626","ISO 3166-2:TL"],["TG","TGO","768","ISO 3166-2:TG"],["TK","TKL","772","ISO 3166-2:TK"],["TO","TON","776","ISO 3166-2:TO"],["TT","TTO","780","ISO 3166-2:TT"],["TN","TUN","788","ISO 3166-2:TN"],["TR","TUR","792","ISO 3166-2:TR"],["TM","TKM","795","ISO 3166-2:TM"],["TC","TCA","796","ISO 3166-2:TC"],["TV","TUV","798","ISO 3166-2:TV"],["UG","UGA","800","ISO 3166-2:UG"],["UA","UKR","804","ISO 3166-2:UA"],["AE","ARE","784","ISO 3166-2:AE"],["GB","GBR","826","ISO 3166-2:GB"],["US","USA","840","ISO 3166-2:US"],["UM","UMI","581","ISO 3166-2:UM"],["UY","URY","858","ISO 3166-2:UY"],["UZ","UZB","860","ISO 3166-2:UZ"],["VU","VUT","548","ISO 3166-2:VU"],["VE","VEN","862","ISO 3166-2:VE"],["VN","VNM","704","ISO 3166-2:VN"],["VG","VGB","092","ISO 3166-2:VG"],["VI","VIR","850","ISO 3166-2:VI"],["WF","WLF","876","ISO 3166-2:WF"],["EH","ESH","732","ISO 3166-2:EH"],["YE","YEM","887","ISO 3166-2:YE"],["ZM","ZMB","894","ISO 3166-2:ZM"],["ZW","ZWE","716","ISO 3166-2:ZW"],["AX","ALA","248","ISO 3166-2:AX"],["BQ","BES","535","ISO 3166-2:BQ"],["CW","CUW","531","ISO 3166-2:CW"],["GG","GGY","831","ISO 3166-2:GG"],["IM","IMN","833","ISO 3166-2:IM"],["JE","JEY","832","ISO 3166-2:JE"],["ME","MNE","499","ISO 3166-2:ME"],["BL","BLM","652","ISO 3166-2:BL"],["MF","MAF","663","ISO 3166-2:MF"],["RS","SRB","688","ISO 3166-2:RS"],["SX","SXM","534","ISO 3166-2:SX"],["SS","SSD","728","ISO 3166-2:SS"],["XK","XKK","983","ISO 3166-2:XK"]]'), V = [
|
|
4
|
+
"br",
|
|
5
|
+
"cy",
|
|
6
|
+
"dv",
|
|
7
|
+
"sw",
|
|
8
|
+
"eu",
|
|
9
|
+
"af",
|
|
10
|
+
"am",
|
|
11
|
+
"ha",
|
|
12
|
+
"ku",
|
|
13
|
+
"ml",
|
|
14
|
+
"mt",
|
|
15
|
+
"no",
|
|
16
|
+
"ps",
|
|
17
|
+
"sd",
|
|
18
|
+
"so",
|
|
19
|
+
"sq",
|
|
20
|
+
"ta",
|
|
21
|
+
"tg",
|
|
22
|
+
"tt",
|
|
23
|
+
"ug",
|
|
24
|
+
"ur",
|
|
25
|
+
"vi",
|
|
26
|
+
"ar",
|
|
27
|
+
"az",
|
|
28
|
+
"be",
|
|
29
|
+
"bg",
|
|
30
|
+
"bn",
|
|
31
|
+
"bs",
|
|
32
|
+
"ca",
|
|
33
|
+
"cs",
|
|
34
|
+
"da",
|
|
35
|
+
"de",
|
|
36
|
+
"el",
|
|
37
|
+
"en",
|
|
38
|
+
"es",
|
|
39
|
+
"et",
|
|
40
|
+
"fa",
|
|
41
|
+
"fi",
|
|
42
|
+
"fr",
|
|
43
|
+
"ga",
|
|
44
|
+
"gl",
|
|
45
|
+
"he",
|
|
46
|
+
"hi",
|
|
47
|
+
"hr",
|
|
48
|
+
"hu",
|
|
49
|
+
"hy",
|
|
50
|
+
"id",
|
|
51
|
+
"is",
|
|
52
|
+
"it",
|
|
53
|
+
"ja",
|
|
54
|
+
"ka",
|
|
55
|
+
"kk",
|
|
56
|
+
"km",
|
|
57
|
+
"ko",
|
|
58
|
+
"ky",
|
|
59
|
+
"lt",
|
|
60
|
+
"lv",
|
|
61
|
+
"mk",
|
|
62
|
+
"mn",
|
|
63
|
+
"mr",
|
|
64
|
+
"ms",
|
|
65
|
+
"nb",
|
|
66
|
+
"nl",
|
|
67
|
+
"nn",
|
|
68
|
+
"pl",
|
|
69
|
+
"pt",
|
|
70
|
+
"ro",
|
|
71
|
+
"ru",
|
|
72
|
+
"sk",
|
|
73
|
+
"sl",
|
|
74
|
+
"sr",
|
|
75
|
+
"sv",
|
|
76
|
+
"th",
|
|
77
|
+
"tk",
|
|
78
|
+
"tr",
|
|
79
|
+
"uk",
|
|
80
|
+
"uz",
|
|
81
|
+
"zh"
|
|
82
|
+
];
|
|
83
|
+
var t = {}, l;
|
|
84
|
+
function d() {
|
|
85
|
+
if (l) return t;
|
|
86
|
+
l = 1, t.remove = F;
|
|
87
|
+
for (var S = [
|
|
88
|
+
{
|
|
89
|
+
base: " ",
|
|
90
|
+
chars: " "
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
base: "0",
|
|
94
|
+
chars: "߀"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
base: "A",
|
|
98
|
+
chars: "ⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
base: "AA",
|
|
102
|
+
chars: "Ꜳ"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
base: "AE",
|
|
106
|
+
chars: "ÆǼǢ"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
base: "AO",
|
|
110
|
+
chars: "Ꜵ"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
base: "AU",
|
|
114
|
+
chars: "Ꜷ"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
base: "AV",
|
|
118
|
+
chars: "ꜸꜺ"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
base: "AY",
|
|
122
|
+
chars: "Ꜽ"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
base: "B",
|
|
126
|
+
chars: "ⒷBḂḄḆɃƁ"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
base: "C",
|
|
130
|
+
chars: "ⒸCꜾḈĆCĈĊČÇƇȻ"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
base: "D",
|
|
134
|
+
chars: "ⒹDḊĎḌḐḒḎĐƊƉᴅꝹ"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
base: "Dh",
|
|
138
|
+
chars: "Ð"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
base: "DZ",
|
|
142
|
+
chars: "DZDŽ"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
base: "Dz",
|
|
146
|
+
chars: "DzDž"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
base: "E",
|
|
150
|
+
chars: "ɛⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎᴇ"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
base: "F",
|
|
154
|
+
chars: "ꝼⒻFḞƑꝻ"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
base: "G",
|
|
158
|
+
chars: "ⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾɢ"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
base: "H",
|
|
162
|
+
chars: "ⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
base: "I",
|
|
166
|
+
chars: "ⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
base: "J",
|
|
170
|
+
chars: "ⒿJĴɈȷ"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
base: "K",
|
|
174
|
+
chars: "ⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
base: "L",
|
|
178
|
+
chars: "ⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
base: "LJ",
|
|
182
|
+
chars: "LJ"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
base: "Lj",
|
|
186
|
+
chars: "Lj"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
base: "M",
|
|
190
|
+
chars: "ⓂMḾṀṂⱮƜϻ"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
base: "N",
|
|
194
|
+
chars: "ꞤȠⓃNǸŃÑṄŇṆŅṊṈƝꞐᴎ"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
base: "NJ",
|
|
198
|
+
chars: "NJ"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
base: "Nj",
|
|
202
|
+
chars: "Nj"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
base: "O",
|
|
206
|
+
chars: "ⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
base: "OE",
|
|
210
|
+
chars: "Œ"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
base: "OI",
|
|
214
|
+
chars: "Ƣ"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
base: "OO",
|
|
218
|
+
chars: "Ꝏ"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
base: "OU",
|
|
222
|
+
chars: "Ȣ"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
base: "P",
|
|
226
|
+
chars: "ⓅPṔṖƤⱣꝐꝒꝔ"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
base: "Q",
|
|
230
|
+
chars: "ⓆQꝖꝘɊ"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
base: "R",
|
|
234
|
+
chars: "ⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
base: "S",
|
|
238
|
+
chars: "ⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
base: "T",
|
|
242
|
+
chars: "ⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
base: "Th",
|
|
246
|
+
chars: "Þ"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
base: "TZ",
|
|
250
|
+
chars: "Ꜩ"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
base: "U",
|
|
254
|
+
chars: "ⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
base: "V",
|
|
258
|
+
chars: "ⓋVṼṾƲꝞɅ"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
base: "VY",
|
|
262
|
+
chars: "Ꝡ"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
base: "W",
|
|
266
|
+
chars: "ⓌWẀẂŴẆẄẈⱲ"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
base: "X",
|
|
270
|
+
chars: "ⓍXẊẌ"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
base: "Y",
|
|
274
|
+
chars: "ⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
base: "Z",
|
|
278
|
+
chars: "ⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
base: "a",
|
|
282
|
+
chars: "ⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
base: "aa",
|
|
286
|
+
chars: "ꜳ"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
base: "ae",
|
|
290
|
+
chars: "æǽǣ"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
base: "ao",
|
|
294
|
+
chars: "ꜵ"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
base: "au",
|
|
298
|
+
chars: "ꜷ"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
base: "av",
|
|
302
|
+
chars: "ꜹꜻ"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
base: "ay",
|
|
306
|
+
chars: "ꜽ"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
base: "b",
|
|
310
|
+
chars: "ⓑbḃḅḇƀƃɓƂ"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
base: "c",
|
|
314
|
+
chars: "cⓒćĉċčçḉƈȼꜿↄ"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
base: "d",
|
|
318
|
+
chars: "ⓓdḋďḍḑḓḏđƌɖɗƋᏧԁꞪ"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
base: "dh",
|
|
322
|
+
chars: "ð"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
base: "dz",
|
|
326
|
+
chars: "dzdž"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
base: "e",
|
|
330
|
+
chars: "ⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇǝ"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
base: "f",
|
|
334
|
+
chars: "ⓕfḟƒ"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
base: "ff",
|
|
338
|
+
chars: "ff"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
base: "fi",
|
|
342
|
+
chars: "fi"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
base: "fl",
|
|
346
|
+
chars: "fl"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
base: "ffi",
|
|
350
|
+
chars: "ffi"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
base: "ffl",
|
|
354
|
+
chars: "ffl"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
base: "g",
|
|
358
|
+
chars: "ⓖgǵĝḡğġǧģǥɠꞡꝿᵹ"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
base: "h",
|
|
362
|
+
chars: "ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
base: "hv",
|
|
366
|
+
chars: "ƕ"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
base: "i",
|
|
370
|
+
chars: "ⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
base: "j",
|
|
374
|
+
chars: "ⓙjĵǰɉ"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
base: "k",
|
|
378
|
+
chars: "ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
base: "l",
|
|
382
|
+
chars: "ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇɭ"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
base: "lj",
|
|
386
|
+
chars: "lj"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
base: "m",
|
|
390
|
+
chars: "ⓜmḿṁṃɱɯ"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
base: "n",
|
|
394
|
+
chars: "ⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥлԉ"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
base: "nj",
|
|
398
|
+
chars: "nj"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
base: "o",
|
|
402
|
+
chars: "ⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿꝋꝍɵɔᴑ"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
base: "oe",
|
|
406
|
+
chars: "œ"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
base: "oi",
|
|
410
|
+
chars: "ƣ"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
base: "oo",
|
|
414
|
+
chars: "ꝏ"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
base: "ou",
|
|
418
|
+
chars: "ȣ"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
base: "p",
|
|
422
|
+
chars: "ⓟpṕṗƥᵽꝑꝓꝕρ"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
base: "q",
|
|
426
|
+
chars: "ⓠqɋꝗꝙ"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
base: "r",
|
|
430
|
+
chars: "ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
base: "s",
|
|
434
|
+
chars: "ⓢsśṥŝṡšṧṣṩșşȿꞩꞅẛʂ"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
base: "ss",
|
|
438
|
+
chars: "ß"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
base: "t",
|
|
442
|
+
chars: "ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
base: "th",
|
|
446
|
+
chars: "þ"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
base: "tz",
|
|
450
|
+
chars: "ꜩ"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
base: "u",
|
|
454
|
+
chars: "ⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
base: "v",
|
|
458
|
+
chars: "ⓥvṽṿʋꝟʌ"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
base: "vy",
|
|
462
|
+
chars: "ꝡ"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
base: "w",
|
|
466
|
+
chars: "ⓦwẁẃŵẇẅẘẉⱳ"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
base: "x",
|
|
470
|
+
chars: "ⓧxẋẍ"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
base: "y",
|
|
474
|
+
chars: "ⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
base: "z",
|
|
478
|
+
chars: "ⓩzźẑżžẓẕƶȥɀⱬꝣ"
|
|
479
|
+
}
|
|
480
|
+
], n = {}, s = 0; s < S.length; s += 1)
|
|
481
|
+
for (var B = S[s].chars, A = 0; A < B.length; A += 1)
|
|
482
|
+
n[B[A]] = S[s].base;
|
|
483
|
+
function F(C) {
|
|
484
|
+
return C.replace(/[^\u0000-\u007e]/g, function(O) {
|
|
485
|
+
return n[O] || O;
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
return t.replacementList = S, t.diacriticsMap = n, t;
|
|
489
|
+
}
|
|
490
|
+
var R;
|
|
491
|
+
function g() {
|
|
492
|
+
return R || (R = 1, function(S) {
|
|
493
|
+
const n = H, s = V, B = d().remove, A = {}, F = {}, C = {}, O = {}, D = {};
|
|
494
|
+
n.forEach(function(u) {
|
|
495
|
+
const E = u;
|
|
496
|
+
F[E[0]] = E[1], C[E[1]] = E[0], O[E[2]] = E[0], D[E[0]] = E[2];
|
|
497
|
+
});
|
|
498
|
+
function b(u) {
|
|
499
|
+
return ("000" + (u || "")).slice(-3);
|
|
500
|
+
}
|
|
501
|
+
function c(u, E) {
|
|
502
|
+
return Object.prototype.hasOwnProperty.call(u, E);
|
|
503
|
+
}
|
|
504
|
+
function L(u, E) {
|
|
505
|
+
return Object.keys(u).reduce(function(e, I) {
|
|
506
|
+
const a = u[I];
|
|
507
|
+
return e[I] = E(a, I), e;
|
|
508
|
+
}, {});
|
|
509
|
+
}
|
|
510
|
+
function G(u, E) {
|
|
511
|
+
switch (u) {
|
|
512
|
+
case "official":
|
|
513
|
+
return Array.isArray(E) ? E[0] : E;
|
|
514
|
+
case "all":
|
|
515
|
+
return typeof E == "string" ? [E] : E;
|
|
516
|
+
case "alias":
|
|
517
|
+
return Array.isArray(E) ? E[1] || E[0] : E;
|
|
518
|
+
default:
|
|
519
|
+
throw new TypeError(
|
|
520
|
+
"LocaleNameType must be one of these: all, official, alias!"
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
S.registerLocale = function(u) {
|
|
525
|
+
if (!u.locale)
|
|
526
|
+
throw new TypeError("Missing localeData.locale");
|
|
527
|
+
if (!u.countries)
|
|
528
|
+
throw new TypeError("Missing localeData.countries");
|
|
529
|
+
A[u.locale] = u.countries;
|
|
530
|
+
};
|
|
531
|
+
function i(u) {
|
|
532
|
+
return C[u];
|
|
533
|
+
}
|
|
534
|
+
S.alpha3ToAlpha2 = i;
|
|
535
|
+
function h(u) {
|
|
536
|
+
return F[u];
|
|
537
|
+
}
|
|
538
|
+
S.alpha2ToAlpha3 = h;
|
|
539
|
+
function U(u) {
|
|
540
|
+
return D[i(u)];
|
|
541
|
+
}
|
|
542
|
+
S.alpha3ToNumeric = U;
|
|
543
|
+
function K(u) {
|
|
544
|
+
return D[u];
|
|
545
|
+
}
|
|
546
|
+
S.alpha2ToNumeric = K;
|
|
547
|
+
function M(u) {
|
|
548
|
+
const E = b(u);
|
|
549
|
+
return h(O[E]);
|
|
550
|
+
}
|
|
551
|
+
S.numericToAlpha3 = M;
|
|
552
|
+
function o(u) {
|
|
553
|
+
const E = b(u);
|
|
554
|
+
return O[E];
|
|
555
|
+
}
|
|
556
|
+
S.numericToAlpha2 = o;
|
|
557
|
+
function P(u) {
|
|
558
|
+
if (typeof u == "string") {
|
|
559
|
+
if (/^[0-9]*$/.test(u))
|
|
560
|
+
return M(u);
|
|
561
|
+
if (u.length === 2)
|
|
562
|
+
return h(u.toUpperCase());
|
|
563
|
+
if (u.length === 3)
|
|
564
|
+
return u.toUpperCase();
|
|
565
|
+
}
|
|
566
|
+
if (typeof u == "number")
|
|
567
|
+
return M(u);
|
|
568
|
+
}
|
|
569
|
+
S.toAlpha3 = P;
|
|
570
|
+
function N(u) {
|
|
571
|
+
if (typeof u == "string") {
|
|
572
|
+
if (/^[0-9]*$/.test(u))
|
|
573
|
+
return o(u);
|
|
574
|
+
if (u.length === 2)
|
|
575
|
+
return u.toUpperCase();
|
|
576
|
+
if (u.length === 3)
|
|
577
|
+
return i(u.toUpperCase());
|
|
578
|
+
}
|
|
579
|
+
if (typeof u == "number")
|
|
580
|
+
return o(u);
|
|
581
|
+
}
|
|
582
|
+
S.toAlpha2 = N, S.getName = function(u, E, e = {}) {
|
|
583
|
+
"select" in e || (e.select = "official");
|
|
584
|
+
try {
|
|
585
|
+
const a = A[E.toLowerCase()][N(u)];
|
|
586
|
+
return G(e.select, a);
|
|
587
|
+
} catch {
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
}, S.getNames = function(u, E = {}) {
|
|
591
|
+
"select" in E || (E.select = "official");
|
|
592
|
+
const e = A[u.toLowerCase()];
|
|
593
|
+
return e === void 0 ? {} : L(e, function(I) {
|
|
594
|
+
return G(E.select, I);
|
|
595
|
+
});
|
|
596
|
+
}, S.getAlpha2Code = function(u, E) {
|
|
597
|
+
const e = (a) => a.toLowerCase(), I = (a, r) => e(a) === e(r);
|
|
598
|
+
try {
|
|
599
|
+
const a = A[E.toLowerCase()];
|
|
600
|
+
for (const r in a)
|
|
601
|
+
if (c(a, r)) {
|
|
602
|
+
if (typeof a[r] == "string" && I(a[r], u))
|
|
603
|
+
return r;
|
|
604
|
+
if (Array.isArray(a[r])) {
|
|
605
|
+
for (const f of a[r])
|
|
606
|
+
if (I(f, u))
|
|
607
|
+
return r;
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
return;
|
|
611
|
+
} catch {
|
|
612
|
+
return;
|
|
613
|
+
}
|
|
614
|
+
}, S.getSimpleAlpha2Code = function(u, E) {
|
|
615
|
+
const e = (a) => B(a.toLowerCase()), I = (a, r) => e(a) === e(r);
|
|
616
|
+
try {
|
|
617
|
+
const a = A[E.toLowerCase()];
|
|
618
|
+
for (const r in a)
|
|
619
|
+
if (c(a, r)) {
|
|
620
|
+
if (typeof a[r] == "string" && I(a[r], u))
|
|
621
|
+
return r;
|
|
622
|
+
if (Array.isArray(a[r])) {
|
|
623
|
+
for (const f of a[r])
|
|
624
|
+
if (I(f, u))
|
|
625
|
+
return r;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
return;
|
|
629
|
+
} catch {
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
}, S.getAlpha2Codes = function() {
|
|
633
|
+
return F;
|
|
634
|
+
}, S.getAlpha3Code = function(u, E) {
|
|
635
|
+
const e = S.getAlpha2Code(u, E);
|
|
636
|
+
if (e)
|
|
637
|
+
return S.toAlpha3(e);
|
|
638
|
+
}, S.getSimpleAlpha3Code = function(u, E) {
|
|
639
|
+
const e = S.getSimpleAlpha2Code(u, E);
|
|
640
|
+
if (e)
|
|
641
|
+
return S.toAlpha3(e);
|
|
642
|
+
}, S.getAlpha3Codes = function() {
|
|
643
|
+
return C;
|
|
644
|
+
}, S.getNumericCodes = function() {
|
|
645
|
+
return O;
|
|
646
|
+
}, S.langs = function() {
|
|
647
|
+
return Object.keys(A);
|
|
648
|
+
}, S.getSupportedLanguages = function() {
|
|
649
|
+
return s;
|
|
650
|
+
}, S.isValid = function(u) {
|
|
651
|
+
if (!u)
|
|
652
|
+
return !1;
|
|
653
|
+
const E = u.toString().toUpperCase();
|
|
654
|
+
return c(C, E) || c(F, E) || c(O, E);
|
|
655
|
+
};
|
|
656
|
+
}(T)), T;
|
|
657
|
+
}
|
|
658
|
+
var Z = /* @__PURE__ */ g();
|
|
659
|
+
const Y = /* @__PURE__ */ p(Z);
|
|
660
|
+
export {
|
|
661
|
+
Y as i
|
|
662
|
+
};
|