@ingestro/importer-react 4.9.5 → 4.9.8
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/{chunk-ET4YM2J3.js → chunk-JR3GQV5Y.js} +1 -1
- package/chunk-OJ6BFZRM.js +1 -0
- package/{chunk-LROANN4K.js → chunk-OVVPTSKA.js} +48 -48
- package/chunk-POKDA5JR.js +1 -0
- package/index.d.ts +3 -114
- package/index.js +775 -831
- package/package.json +1 -1
- package/workers/matchValues/index.js +1 -1
- package/workers/parseData/index.js +1 -1
- package/workers/searchAndReplace/index.js +1 -1
- package/chunk-FJK35UW2.js +0 -1
- package/chunk-YNRGLIVA.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as N,h as E,i as p,m,r as B}from"./chunk-FJK35UW2.js";import{isNil as W}from"lodash";var P=[{label:"AFN",value:"AFN",type:"string",alternativeMatches:["Af","Afghanistan"]},{label:"ARS",value:"ARS",type:"string",alternativeMatches:["AR$","Argentina"]},{label:"AWG",value:"AWG",type:"string",alternativeMatches:["Aruba"]},{label:"AUD",value:"AUD",type:"string",alternativeMatches:["AU$","Australia"]},{label:"AZN",value:"AZN",type:"string",alternativeMatches:["man.","Azerbaijan"]},{label:"BSD",value:"BSD",type:"string",alternativeMatches:["Bahamas"]},{label:"BBD",value:"BBD",type:"string",alternativeMatches:["Barbados"]},{label:"BYN",value:"BYN",type:"string",alternativeMatches:["Br"]},{label:"BZD",value:"BZD",type:"string",alternativeMatches:["BZ$","Belize"]},{label:"BMD",value:"BMD",type:"string",alternativeMatches:["Bermuda"]},{label:"BOB",value:"BOB",type:"string",alternativeMatches:["Bs","Bolivia"]},{label:"BAM",value:"BAM",type:"string",alternativeMatches:["KM","Bosnia and Herzegovina"]},{label:"BWP",value:"BWP",type:"string",alternativeMatches:["BWP","Botswana"]},{label:"BGN",value:"BGN",type:"string",alternativeMatches:["BGN","Bulgaria"]},{label:"BRL",value:"BRL",type:"string",alternativeMatches:["R$","Brazil"]},{label:"BND",value:"BND",type:"string",alternativeMatches:["BN$","Brunei"]},{label:"KHR",value:"KHR",type:"string",alternativeMatches:["KHR","Cambodia"]},{label:"CAD",value:"CAD",type:"string",alternativeMatches:["CA$","Canada"]},{label:"KYD",value:"KYD",type:"string",alternativeMatches:["Cayman Islands"]},{label:"CLP",value:"CLP",type:"string",alternativeMatches:["CL$","Chile"]},{label:"CNY",value:"CNY",type:"string",alternativeMatches:["CN\xA5","China"]},{label:"COP",value:"COP",type:"string",alternativeMatches:["CO$","Colombia"]},{label:"CRC",value:"CRC",type:"string",alternativeMatches:["\u20A1","Costa Rica"]},{label:"HRK",value:"HRK",type:"string",alternativeMatches:["kn","Croatia"]},{label:"CUP",value:"CUP",type:"string",alternativeMatches:["Cuba"]},{label:"CZK",value:"CZK",type:"string",alternativeMatches:["K\u010D","Czech Republic"]},{label:"DKK",value:"DKK",type:"string",alternativeMatches:["Dkr","Denmark"]},{label:"DOP",value:"DOP",type:"string",alternativeMatches:["RD$","Dominican Republic"]},{label:"XCD",value:"XCD",type:"string",alternativeMatches:["Anguilla"]},{label:"EGP",value:"EGP",type:"string",alternativeMatches:["EGP","Egypt"]},{label:"SVC",value:"SVC",type:"string",alternativeMatches:["El Salvador"]},{label:"EUR",value:"EUR",type:"string",alternativeMatches:["\u20AC","Germany"]},{label:"FKP",value:"FKP",type:"string",alternativeMatches:["Falkland Islands"]},{label:"FJD",value:"FJD",type:"string",alternativeMatches:["Fiji Islands"]},{label:"GHS",value:"GHS",type:"string",alternativeMatches:["GH\u20B5","Ghana"]},{label:"GIP",value:"GIP",type:"string",alternativeMatches:["Gibraltar"]},{label:"GTQ",value:"GTQ",type:"string",alternativeMatches:["GTQ"]},{label:"GGP",value:"GGP",type:"string",alternativeMatches:[]},{label:"GYD",value:"GYD",type:"string",alternativeMatches:["Guyana"]},{label:"HNL",value:"HNL",type:"string",alternativeMatches:["HNL","Honduras"]},{label:"HKD",value:"HKD",type:"string",alternativeMatches:["HK$","Hong Kong"]},{label:"HUF",value:"HUF",type:"string",alternativeMatches:["Ft","Hungary"]},{label:"ISK",value:"ISK",type:"string",alternativeMatches:["Ikr","Iceland"]},{label:"INR",value:"INR",type:"string",alternativeMatches:["\u20B9","India"]},{label:"IDR",value:"IDR",type:"string",alternativeMatches:["Rp","Indonesia"]},{label:"IRR",value:"IRR",type:"string",alternativeMatches:["IRR","Iran"]},{label:"IMP",value:"IMP",type:"string",alternativeMatches:[]},{label:"ILS",value:"ILS",type:"string",alternativeMatches:["\u20AA","Israel"]},{label:"JMD",value:"JMD",type:"string",alternativeMatches:["J$","Jamaica"]},{label:"JPY",value:"JPY",type:"string",alternativeMatches:["\xA5","Japan"]},{label:"JEP",value:"JEP",type:"string",alternativeMatches:[]},{label:"KZT",value:"KZT",type:"string",alternativeMatches:["KZT","Kazakhstan"]},{label:"KPW",value:"KPW",type:"string",alternativeMatches:["North Korea"]},{label:"KRW",value:"KRW",type:"string",alternativeMatches:["\u20A9","South Korea"]},{label:"KGS",value:"KGS",type:"string",alternativeMatches:["Kyrgyzstan"]},{label:"LAK",value:"LAK",type:"string",alternativeMatches:["Laos"]},{label:"LBP",value:"LBP",type:"string",alternativeMatches:["L.L.","Lebanon"]},{label:"LRD",value:"LRD",type:"string",alternativeMatches:["Liberia"]},{label:"MKD",value:"MKD",type:"string",alternativeMatches:["MKD","North Macedonia"]},{label:"MYR",value:"MYR",type:"string",alternativeMatches:["RM","Malaysia"]},{label:"MUR",value:"MUR",type:"string",alternativeMatches:["MURs","Mauritius"]},{label:"MXN",value:"MXN",type:"string",alternativeMatches:["MX$","Mexico"]},{label:"MNT",value:"MNT",type:"string",alternativeMatches:["Mongolia"]},{label:"MZN",value:"MZN",type:"string",alternativeMatches:["MTn","Mozambique"]},{label:"NAD",value:"NAD",type:"string",alternativeMatches:["N$","Namibia"]},{label:"NPR",value:"NPR",type:"string",alternativeMatches:["NPRs","Nepal"]},{label:"ANG",value:"ANG",type:"string",alternativeMatches:["Netherlands Antilles"]},{label:"NZD",value:"NZD",type:"string",alternativeMatches:["NZ$","Cook Islands"]},{label:"NIO",value:"NIO",type:"string",alternativeMatches:["C$","Nicaragua"]},{label:"NGN",value:"NGN",type:"string",alternativeMatches:["\u20A6","Nigeria"]},{label:"NOK",value:"NOK",type:"string",alternativeMatches:["Nkr","Bouvet Island"]},{label:"OMR",value:"OMR",type:"string",alternativeMatches:["OMR","Oman"]},{label:"PKR",value:"PKR",type:"string",alternativeMatches:["PKRs","Pakistan"]},{label:"PAB",value:"PAB",type:"string",alternativeMatches:["B/.","Panama"]},{label:"PYG",value:"PYG",type:"string",alternativeMatches:["\u20B2","Paraguay"]},{label:"PEN",value:"PEN",type:"string",alternativeMatches:["S/.","Peru"]},{label:"PHP",value:"PHP",type:"string",alternativeMatches:["\u20B1","Philippines"]},{label:"PLN",value:"PLN",type:"string",alternativeMatches:["z\u0142","Poland"]},{label:"QAR",value:"QAR",type:"string",alternativeMatches:["QR","Qatar"]},{label:"RON",value:"RON",type:"string",alternativeMatches:["RON","Romania"]},{label:"RUB",value:"RUB",type:"string",alternativeMatches:["RUB","Russian Federation"]},{label:"SHP",value:"SHP",type:"string",alternativeMatches:["Saint Helena"]},{label:"SAR",value:"SAR",type:"string",alternativeMatches:["SR","Saudi Arabia"]},{label:"RSD",value:"RSD",type:"string",alternativeMatches:["din.","Serbia"]},{label:"SCR",value:"SCR",type:"string",alternativeMatches:["Seychelles"]},{label:"SGD",value:"SGD",type:"string",alternativeMatches:["S$","Singapore"]},{label:"SBD",value:"SBD",type:"string",alternativeMatches:["Solomon Islands"]},{label:"SOS",value:"SOS",type:"string",alternativeMatches:["Ssh","Somalia"]},{label:"ZAR",value:"ZAR",type:"string",alternativeMatches:["R","South Africa"]},{label:"LKR",value:"LKR",type:"string",alternativeMatches:["SLRs","Sri Lanka"]},{label:"SEK",value:"SEK",type:"string",alternativeMatches:["Skr","Sweden"]},{label:"CHF",value:"CHF",type:"string",alternativeMatches:["CHF","Liechtenstein"]},{label:"SRD",value:"SRD",type:"string",alternativeMatches:["Suriname"]},{label:"SYP",value:"SYP",type:"string",alternativeMatches:["SY\xA3","Syria"]},{label:"TWD",value:"TWD",type:"string",alternativeMatches:["NT$"]},{label:"THB",value:"THB",type:"string",alternativeMatches:["\u0E3F","Thailand"]},{label:"TTD",value:"TTD",type:"string",alternativeMatches:["TT$","Trinidad and Tobago"]},{label:"TRY",value:"TRY",type:"string",alternativeMatches:["TL","Turkey"]},{label:"TVD",value:"TVD",type:"string",alternativeMatches:[]},{label:"UAH",value:"UAH",type:"string",alternativeMatches:["\u20B4","Ukraine"]},{label:"GBP",value:"GBP",type:"string",alternativeMatches:["\xA3","England"]},{label:"USD",value:"USD",type:"string",alternativeMatches:["$","USA"]},{label:"UYU",value:"UYU",type:"string",alternativeMatches:["$U","Uruguay"]},{label:"UZS",value:"UZS",type:"string",alternativeMatches:["UZS","Uzbekistan"]},{label:"VEF",value:"VEF",type:"string",alternativeMatches:["Bs.F.","Venezuela"]},{label:"VND",value:"VND",type:"string",alternativeMatches:["\u20AB","Vietnam"]},{label:"YER",value:"YER",type:"string",alternativeMatches:["YR","Yemen"]},{label:"ZWD",value:"ZWD",type:"string",alternativeMatches:["Zimbabwe"]},{label:"XOF",value:"XOF",type:"string",alternativeMatches:["CFA Franc","West Africa"]},{label:"BDT",value:"BDT",type:"string",alternativeMatches:["\u09F3","Bangladesh"]},{label:"UGX",value:"UGX",type:"string",alternativeMatches:["USh","Uganda"]},{label:"KES",value:"KES",type:"string",alternativeMatches:["KSh","Kenya"]},{label:"LSL",value:"LSL",type:"string",alternativeMatches:["Loti","Lesotho"]},{label:"MWK",value:"MWK",type:"string",alternativeMatches:["K","Malawi"]},{label:"TZS",value:"TZS",type:"string",alternativeMatches:["TSh","Tanzania"]},{label:"ETB",value:"ETB",type:"string",alternativeMatches:["Br","Ethiopia"]},{label:"VEB",value:"VEB",type:"string",alternativeMatches:["Bs","Venezuela"]},{label:"XAF",value:"XAF",type:"string",alternativeMatches:["CFA Franc","Central Africa"]}],D=[{value:"AF",label:"AF",type:"string",alternativeMatches:["Afghanistan"]},{value:"AX",label:"AX",type:"string",alternativeMatches:["\xC5land Islands"]},{value:"AL",label:"AL",type:"string",alternativeMatches:["Albania"]},{value:"DZ",label:"DZ",type:"string",alternativeMatches:["Algeria"]},{value:"AS",label:"AS",type:"string",alternativeMatches:["American Samoa"]},{value:"AD",label:"AD",type:"string",alternativeMatches:["Andorra"]},{value:"AO",label:"AO",type:"string",alternativeMatches:["Angola"]},{value:"AI",label:"AI",type:"string",alternativeMatches:["Anguilla"]},{value:"AQ",label:"AQ",type:"string",alternativeMatches:["Antarctica"]},{value:"AG",label:"AG",type:"string",alternativeMatches:["Antigua and Barbuda","Antigua","Barbuda"]},{value:"AR",label:"AR",type:"string",alternativeMatches:["Argentina"]},{value:"AM",label:"AM",type:"string",alternativeMatches:["Armenia"]},{value:"AW",label:"AW",type:"string",alternativeMatches:["Aruba"]},{value:"AU",label:"AU",type:"string",alternativeMatches:["Australia"]},{value:"AT",label:"AT",type:"string",alternativeMatches:["Austria"]},{value:"AZ",label:"AZ",type:"string",alternativeMatches:["Azerbaijan"]},{value:"BS",label:"BS",type:"string",alternativeMatches:["Bahamas"]},{value:"BH",label:"BH",type:"string",alternativeMatches:["Bahrain"]},{value:"BD",label:"BD",type:"string",alternativeMatches:["Bangladesh"]},{value:"BB",label:"BB",type:"string",alternativeMatches:["Barbados"]},{value:"BY",label:"BY",type:"string",alternativeMatches:["Belarus"]},{value:"BE",label:"BE",type:"string",alternativeMatches:["Belgium"]},{value:"BZ",label:"BZ",type:"string",alternativeMatches:["Belize"]},{value:"BJ",label:"BJ",type:"string",alternativeMatches:["Benin"]},{value:"BM",label:"BM",type:"string",alternativeMatches:["Bermuda"]},{value:"BT",label:"BT",type:"string",alternativeMatches:["Bhutan"]},{value:"BO",label:"BO",type:"string",alternativeMatches:["Bolivia (Plurinational State of)","Bolivia"]},{value:"BQ",label:"BQ",type:"string",alternativeMatches:["Bonaire, Sint Eustatius and Saba"]},{value:"BA",label:"BA",type:"string",alternativeMatches:["Bosnia and Herzegovina"]},{value:"BW",label:"BW",type:"string",alternativeMatches:["Botswana"]},{value:"BV",label:"BV",type:"string",alternativeMatches:["Bouvet Island"]},{value:"BR",label:"BR",type:"string",alternativeMatches:["Brazil"]},{value:"IO",label:"IO",type:"string",alternativeMatches:["British Indian Ocean Territory"]},{value:"BN",label:"BN",type:"string",alternativeMatches:["Brunei Darussalam"]},{value:"BG",label:"BG",type:"string",alternativeMatches:["Bulgaria"]},{value:"BF",label:"BF",type:"string",alternativeMatches:["Burkina Faso"]},{value:"BI",label:"BI",type:"string",alternativeMatches:["Burundi"]},{value:"KH",label:"KH",type:"string",alternativeMatches:["Cambodia"]},{value:"CM",label:"CM",type:"string",alternativeMatches:["Cameroon"]},{value:"CA",label:"CA",type:"string",alternativeMatches:["Canada"]},{value:"CV",label:"CV",type:"string",alternativeMatches:["Cape Verde"]},{value:"KY",label:"KY",type:"string",alternativeMatches:["Cayman Islands"]},{value:"CF",label:"CF",type:"string",alternativeMatches:["Central African Republic"]},{value:"TD",label:"TD",type:"string",alternativeMatches:["Chad"]},{value:"CL",label:"CL",type:"string",alternativeMatches:["Chile"]},{value:"CN",label:"CN",type:"string",alternativeMatches:["China"]},{value:"CX",label:"CX",type:"string",alternativeMatches:["Christmas Island"]},{value:"CC",label:"CC",type:"string",alternativeMatches:["Cocos (Keeling) Islands","Cocos Islands"]},{value:"CO",label:"CO",type:"string",alternativeMatches:["Colombia"]},{value:"KM",label:"KM",type:"string",alternativeMatches:["Comoros"]},{value:"CG",label:"CG",type:"string",alternativeMatches:["Congo"]},{value:"CD",label:"CD",type:"string",alternativeMatches:["Congo (the Democratic Republic of the)","Congo"]},{value:"CK",label:"CK",type:"string",alternativeMatches:["Cook Islands"]},{value:"CR",label:"CR",type:"string",alternativeMatches:["Costa Rica"]},{value:"CI",label:"CI",type:"string",alternativeMatches:["C\xF4te d'Ivoire","Cote d Ivoire"]},{value:"HR",label:"HR",type:"string",alternativeMatches:["Croatia"]},{value:"CU",label:"CU",type:"string",alternativeMatches:["Cuba"]},{value:"CW",label:"CW",type:"string",alternativeMatches:["Cura\xE7ao","Curacao"]},{value:"CY",label:"CY",type:"string",alternativeMatches:["Cyprus"]},{value:"CZ",label:"CZ",type:"string",alternativeMatches:["Czechia","Czech Republic"]},{value:"DK",label:"DK",type:"string",alternativeMatches:["Denmark"]},{value:"DJ",label:"DJ",type:"string",alternativeMatches:["Djibouti"]},{value:"DM",label:"DM",type:"string",alternativeMatches:["Dominica"]},{value:"DO",label:"DO",type:"string",alternativeMatches:["Dominican Republic"]},{value:"EC",label:"EC",type:"string",alternativeMatches:["Ecuador"]},{value:"EG",label:"EG",type:"string",alternativeMatches:["Egypt"]},{value:"SV",label:"SV",type:"string",alternativeMatches:["El Salvador"]},{value:"GQ",label:"GQ",type:"string",alternativeMatches:["Equatorial Guinea"]},{value:"ER",label:"ER",type:"string",alternativeMatches:["Eritrea"]},{value:"EE",label:"EE",type:"string",alternativeMatches:["Estonia"]},{value:"ET",label:"ET",type:"string",alternativeMatches:["Ethiopia"]},{value:"FK",label:"FK",type:"string",alternativeMatches:["Falkland Islands (Malvinas)"]},{value:"FO",label:"FO",type:"string",alternativeMatches:["Faroe Islands"]},{value:"FJ",label:"FJ",type:"string",alternativeMatches:["Fiji"]},{value:"FI",label:"FI",type:"string",alternativeMatches:["Finland"]},{value:"FR",label:"FR",type:"string",alternativeMatches:["France"]},{value:"GF",label:"GF",type:"string",alternativeMatches:["French Guiana"]},{value:"PF",label:"PF",type:"string",alternativeMatches:["French Polynesia"]},{value:"TF",label:"TF",type:"string",alternativeMatches:["French Southern Territories"]},{value:"GA",label:"GA",type:"string",alternativeMatches:["Gabon"]},{value:"GM",label:"GM",type:"string",alternativeMatches:["Gambia"]},{value:"GE",label:"GE",type:"string",alternativeMatches:["Georgia"]},{value:"DE",label:"DE",type:"string",alternativeMatches:["Germany"]},{value:"GH",label:"GH",type:"string",alternativeMatches:["Ghana"]},{value:"GI",label:"GI",type:"string",alternativeMatches:["Gibraltar"]},{value:"GR",label:"GR",type:"string",alternativeMatches:["Greece"]},{value:"GL",label:"GL",type:"string",alternativeMatches:["Greenland"]},{value:"GD",label:"GD",type:"string",alternativeMatches:["Grenada"]},{value:"GP",label:"GP",type:"string",alternativeMatches:["Guadeloupe"]},{value:"GU",label:"GU",type:"string",alternativeMatches:["Guam"]},{value:"GT",label:"GT",type:"string",alternativeMatches:["Guatemala"]},{value:"GG",label:"GG",type:"string",alternativeMatches:["Guernsey"]},{value:"GN",label:"GN",type:"string",alternativeMatches:["Guinea"]},{value:"GW",label:"GW",type:"string",alternativeMatches:["Guinea-Bissau"]},{value:"GY",label:"GY",type:"string",alternativeMatches:["Guyana"]},{value:"HT",label:"HT",type:"string",alternativeMatches:["Haiti"]},{value:"HM",label:"HM",type:"string",alternativeMatches:["Heard Island and McDonald Islands","Heard Island","McDonald Islands"]},{value:"VA",label:"VA",type:"string",alternativeMatches:["Holy See (Vatican City State)"]},{value:"HN",label:"HN",type:"string",alternativeMatches:["Honduras"]},{value:"HK",label:"HK",type:"string",alternativeMatches:["Hong Kong"]},{value:"HU",label:"HU",type:"string",alternativeMatches:["Hungary"]},{value:"IS",label:"IS",type:"string",alternativeMatches:["Iceland"]},{value:"IN",label:"IN",type:"string",alternativeMatches:["India"]},{value:"ID",label:"ID",type:"string",alternativeMatches:["Indonesia"]},{value:"IR",label:"IR",type:"string",alternativeMatches:["Iran (Islamic Republic of) ","Iran"]},{value:"IQ",label:"IQ",type:"string",alternativeMatches:["Iraq"]},{value:"IE",label:"IE",type:"string",alternativeMatches:["Ireland"]},{value:"IM",label:"IM",type:"string",alternativeMatches:["Isle of Man"]},{value:"IL",label:"IL",type:"string",alternativeMatches:["Israel"]},{value:"IT",label:"IT",type:"string",alternativeMatches:["Italy"]},{value:"JM",label:"JM",type:"string",alternativeMatches:["Jamaica"]},{value:"JP",label:"JP",type:"string",alternativeMatches:["Japan"]},{value:"JE",label:"JE",type:"string",alternativeMatches:["Jersey"]},{value:"JO",label:"JO",type:"string",alternativeMatches:["Jordan"]},{value:"KZ",label:"KZ",type:"string",alternativeMatches:["Kazakhstan"]},{value:"KE",label:"KE",type:"string",alternativeMatches:["Kenya"]},{value:"KI",label:"KI",type:"string",alternativeMatches:["Kiribati"]},{value:"KP",label:"KP",type:"string",alternativeMatches:["Democratic People's Republic of Korea","North Korea"]},{value:"KR",label:"KR",type:"string",alternativeMatches:["Korea, Republic of Korea","South Korea"]},{value:"KW",label:"KW",type:"string",alternativeMatches:["Kuwait"]},{value:"KG",label:"KG",type:"string",alternativeMatches:["Kyrgyzstan"]},{value:"LA",label:"LA",type:"string",alternativeMatches:["Lao People's Democratic Republic"]},{value:"LV",label:"LV",type:"string",alternativeMatches:["Latvia"]},{value:"LB",label:"LB",type:"string",alternativeMatches:["Lebanon"]},{value:"LS",label:"LS",type:"string",alternativeMatches:["Lesotho"]},{value:"LR",label:"LR",type:"string",alternativeMatches:["Liberia"]},{value:"LY",label:"LY",type:"string",alternativeMatches:["Libya"]},{value:"LI",label:"LI",type:"string",alternativeMatches:["Liechtenstein"]},{value:"LT",label:"LT",type:"string",alternativeMatches:["Lithuania"]},{value:"LU",label:"LU",type:"string",alternativeMatches:["Luxembourg"]},{value:"MO",label:"MO",type:"string",alternativeMatches:["Macao"]},{value:"MK",label:"MK",type:"string",alternativeMatches:["Republic of North Macedonia","North Macedonia"]},{value:"MG",label:"MG",type:"string",alternativeMatches:["Madagascar"]},{value:"MW",label:"MW",type:"string",alternativeMatches:["Malawi"]},{value:"MY",label:"MY",type:"string",alternativeMatches:["Malaysia"]},{value:"MV",label:"MV",type:"string",alternativeMatches:["Maldives"]},{value:"ML",label:"ML",type:"string",alternativeMatches:["Mali"]},{value:"MT",label:"MT",type:"string",alternativeMatches:["Malta"]},{value:"MH",label:"MH",type:"string",alternativeMatches:["Marshall Islands"]},{value:"MQ",label:"MQ",type:"string",alternativeMatches:["Martinique"]},{value:"MR",label:"MR",type:"string",alternativeMatches:["Mauritania"]},{value:"MU",label:"MU",type:"string",alternativeMatches:["Mauritius"]},{value:"YT",label:"YT",type:"string",alternativeMatches:["Mayotte"]},{value:"MX",label:"MX",type:"string",alternativeMatches:["Mexico"]},{value:"FM",label:"FM",type:"string",alternativeMatches:["Micronesia (Federated States of)"]},{value:"MD",label:"MD",type:"string",alternativeMatches:["Moldova (the Republic of)"]},{value:"MC",label:"MC",type:"string",alternativeMatches:["Monaco"]},{value:"MN",label:"MN",type:"string",alternativeMatches:["Mongolia"]},{value:"ME",label:"ME",type:"string",alternativeMatches:["Montenegro"]},{value:"MS",label:"MS",type:"string",alternativeMatches:["Montserrat"]},{value:"MA",label:"MA",type:"string",alternativeMatches:["Morocco"]},{value:"MZ",label:"MZ",type:"string",alternativeMatches:["Mozambique"]},{value:"MM",label:"MM",type:"string",alternativeMatches:["Myanmar"]},{value:"NA",label:"NA",type:"string",alternativeMatches:["Namibia"]},{value:"NR",label:"NR",type:"string",alternativeMatches:["Nauru"]},{value:"NP",label:"NP",type:"string",alternativeMatches:["Nepal"]},{value:"NL",label:"NL",type:"string",alternativeMatches:["Netherlands"]},{value:"NC",label:"NC",type:"string",alternativeMatches:["New Caledonia"]},{value:"NZ",label:"NZ",type:"string",alternativeMatches:["New Zealand"]},{value:"NI",label:"NI",type:"string",alternativeMatches:["Nicaragua"]},{value:"NE",label:"NE",type:"string",alternativeMatches:["Niger"]},{value:"NG",label:"NG",type:"string",alternativeMatches:["Nigeria"]},{value:"NU",label:"NU",type:"string",alternativeMatches:["Niue"]},{value:"NF",label:"NF",type:"string",alternativeMatches:["Norfolk Island"]},{value:"MP",label:"MP",type:"string",alternativeMatches:["Northern Mariana Islands"]},{value:"NO",label:"NO",type:"string",alternativeMatches:["Norway"]},{value:"OM",label:"OM",type:"string",alternativeMatches:["Oman"]},{value:"PK",label:"PK",type:"string",alternativeMatches:["Pakistan"]},{value:"PW",label:"PW",type:"string",alternativeMatches:["Palau"]},{value:"PS",label:"PS",type:"string",alternativeMatches:["Palestinian Territory, Occupied"]},{value:"PA",label:"PA",type:"string",alternativeMatches:["Panama"]},{value:"PG",label:"PG",type:"string",alternativeMatches:["Papua New Guinea"]},{value:"PY",label:"PY",type:"string",alternativeMatches:["Paraguay"]},{value:"PE",label:"PE",type:"string",alternativeMatches:["Peru"]},{value:"PH",label:"PH",type:"string",alternativeMatches:["Philippines"]},{value:"PN",label:"PN",type:"string",alternativeMatches:["Pitcairn"]},{value:"PL",label:"PL",type:"string",alternativeMatches:["Poland"]},{value:"PT",label:"PT",type:"string",alternativeMatches:["Portugal"]},{value:"PR",label:"PR",type:"string",alternativeMatches:["Puerto Rico"]},{value:"QA",label:"QA",type:"string",alternativeMatches:["Qatar"]},{value:"RE",label:"RE",type:"string",alternativeMatches:["R\xE9union"]},{value:"RO",label:"RO",type:"string",alternativeMatches:["Romania"]},{value:"RU",label:"RU",type:"string",alternativeMatches:["Russian Federation"]},{value:"RW",label:"RW",type:"string",alternativeMatches:["Rwanda"]},{value:"BL",label:"BL",type:"string",alternativeMatches:["Saint Barth\xE9lemy"]},{value:"SH",label:"SH",type:"string",alternativeMatches:["Saint Helena, Ascension and Tristan da Cunha"]},{value:"KN",label:"KN",type:"string",alternativeMatches:["Saint Kitts and Nevis","Saint Kitts","Nevis"]},{value:"LC",label:"LC",type:"string",alternativeMatches:["Saint Lucia"]},{value:"MF",label:"MF",type:"string",alternativeMatches:["Saint Martin (French part)"]},{value:"PM",label:"PM",type:"string",alternativeMatches:["Saint Pierre and Miquelon","Saint Pierre","Miquelon"]},{value:"VC",label:"VC",type:"string",alternativeMatches:["Saint Vincent and the Grenadines","Saint Vincent","Grenadines"]},{value:"WS",label:"WS",type:"string",alternativeMatches:["Samoa"]},{value:"SM",label:"SM",type:"string",alternativeMatches:["San Marino"]},{value:"ST",label:"ST",type:"string",alternativeMatches:["Sao Tome and Principe","Sao Tome","Principe"]},{value:"SA",label:"SA",type:"string",alternativeMatches:["Saudi Arabia"]},{value:"SN",label:"SN",type:"string",alternativeMatches:["Senegal"]},{value:"RS",label:"RS",type:"string",alternativeMatches:["Serbia"]},{value:"SC",label:"SC",type:"string",alternativeMatches:["Seychelles"]},{value:"SL",label:"SL",type:"string",alternativeMatches:["Sierra Leone"]},{value:"SG",label:"SG",type:"string",alternativeMatches:["Singapore"]},{value:"SX",label:"SX",type:"string",alternativeMatches:["Sint Maarten"]},{value:"SK",label:"SK",type:"string",alternativeMatches:["Slovakia"]},{value:"SI",label:"SI",type:"string",alternativeMatches:["Slovenia"]},{value:"SB",label:"SB",type:"string",alternativeMatches:["Solomon Islands"]},{value:"SO",label:"SO",type:"string",alternativeMatches:["Somalia"]},{value:"ZA",label:"ZA",type:"string",alternativeMatches:["South Africa"]},{value:"GS",label:"GS",type:"string",alternativeMatches:["South Georgia and the South Sandwich Islands","South Georgia","South Sandwich Islands"]},{value:"SS",label:"SS",type:"string",alternativeMatches:["South Sudan"]},{value:"ES",label:"ES",type:"string",alternativeMatches:["Spain"]},{value:"LK",label:"LK",type:"string",alternativeMatches:["Sri Lanka"]},{value:"SD",label:"SD",type:"string",alternativeMatches:["Sudan"]},{value:"SR",label:"SR",type:"string",alternativeMatches:["Suriname"]},{value:"SJ",label:"SJ",type:"string",alternativeMatches:["Svalbard and Jan Mayen","Svalbard","Jan Mayen"]},{value:"SZ",label:"SZ",type:"string",alternativeMatches:["Swaziland","Eswatini"]},{value:"SE",label:"SE",type:"string",alternativeMatches:["Sweden"]},{value:"CH",label:"CH",type:"string",alternativeMatches:["Switzerland"]},{value:"SY",label:"SY",type:"string",alternativeMatches:["Syrian Arab Republic"]},{value:"TW",label:"TW",type:"string",alternativeMatches:["Taiwan, Province of China"]},{value:"TJ",label:"TJ",type:"string",alternativeMatches:["Tajikistan"]},{value:"TZ",label:"TZ",type:"string",alternativeMatches:["Tanzania, United Republic of","Tanzania"]},{value:"TH",label:"TH",type:"string",alternativeMatches:["Thailand"]},{value:"TL",label:"TL",type:"string",alternativeMatches:["Timor-Leste"]},{value:"TG",label:"TG",type:"string",alternativeMatches:["Togo"]},{value:"TK",label:"TK",type:"string",alternativeMatches:["Tokelau"]},{value:"TO",label:"TO",type:"string",alternativeMatches:["Tonga"]},{value:"TT",label:"TT",type:"string",alternativeMatches:["Trinidad and Tobago","Trinidad","Tobago"]},{value:"TN",label:"TN",type:"string",alternativeMatches:["Tunisia"]},{value:"TR",label:"TR",type:"string",alternativeMatches:["Turkey"]},{value:"TM",label:"TM",type:"string",alternativeMatches:["Turkmenistan"]},{value:"TC",label:"TC",type:"string",alternativeMatches:["Turks and Caicos Islands"]},{value:"TV",label:"TV",type:"string",alternativeMatches:["Tuvalu"]},{value:"UG",label:"UG",type:"string",alternativeMatches:["Uganda"]},{value:"UA",label:"UA",type:"string",alternativeMatches:["Ukraine"]},{value:"AE",label:"AE",type:"string",alternativeMatches:["United Arab Emirates","UAE"]},{value:"GB",label:"GB",type:"string",alternativeMatches:["United Kingdom"]},{value:"US",label:"US",type:"string",alternativeMatches:["United States"]},{value:"UM",label:"UM",type:"string",alternativeMatches:["United States Minor Outlying Islands"]},{value:"UY",label:"UY",type:"string",alternativeMatches:["Uruguay"]},{value:"UZ",label:"UZ",type:"string",alternativeMatches:["Uzbekistan"]},{value:"VU",label:"VU",type:"string",alternativeMatches:["Vanuatu"]},{value:"VE",label:"VE",type:"string",alternativeMatches:["Venezuela (Bolivarian Republic of)","Venezuela","Bolivarian"]},{value:"VN",label:"VN",type:"string",alternativeMatches:["Viet Nam"]},{value:"VG",label:"VG",type:"string",alternativeMatches:["Virgin Islands (British)","British"]},{value:"VI",label:"VI",type:"string",alternativeMatches:["Virgin Islands (U.S.)"]},{value:"WF",label:"WF",type:"string",alternativeMatches:["Wallis and Futuna"]},{value:"EH",label:"EH",type:"string",alternativeMatches:["Western Sahara"]},{value:"YE",label:"YE",type:"string",alternativeMatches:["Yemen"]},{value:"ZM",label:"ZM",type:"string",alternativeMatches:["Zambia"]},{value:"ZW",label:"ZW",type:"string",alternativeMatches:["Zimbabwe"]}],L=[{value:"AFG",label:"AFG",type:"string",alternativeMatches:["Afghanistan"]},{value:"ALA",label:"ALA",type:"string",alternativeMatches:["\xC5land Islands"]},{value:"ALB",label:"ALB",type:"string",alternativeMatches:["Albania"]},{value:"DZA",label:"DZA",type:"string",alternativeMatches:["Algeria"]},{value:"ASM",label:"ASM",type:"string",alternativeMatches:["American Samoa"]},{value:"AND",label:"AND",type:"string",alternativeMatches:["Andorra"]},{value:"AGO",label:"AGO",type:"string",alternativeMatches:["Angola"]},{value:"AIA",label:"AIA",type:"string",alternativeMatches:["Anguilla"]},{value:"ATA",label:"ATA",type:"string",alternativeMatches:["Antarctica"]},{value:"ATG",label:"ATG",type:"string",alternativeMatches:["Antigua and Barbuda","Antigua","Barbuda"]},{value:"ARG",label:"ARG",type:"string",alternativeMatches:["Argentina"]},{value:"ARM",label:"ARM",type:"string",alternativeMatches:["Armenia"]},{value:"ABW",label:"ABW",type:"string",alternativeMatches:["Aruba"]},{value:"AUS",label:"AUS",type:"string",alternativeMatches:["Australia"]},{value:"AUT",label:"AUT",type:"string",alternativeMatches:["Austria"]},{value:"AZE",label:"AZE",type:"string",alternativeMatches:["Azerbaijan"]},{value:"BHS",label:"BHS",type:"string",alternativeMatches:["Bahamas"]},{value:"BHR",label:"BHR",type:"string",alternativeMatches:["Bahrain"]},{value:"BGD",label:"BGD",type:"string",alternativeMatches:["Bangladesh"]},{value:"BRB",label:"BRB",type:"string",alternativeMatches:["Barbados"]},{value:"BLR",label:"BLR",type:"string",alternativeMatches:["Belarus"]},{value:"BEL",label:"BEL",type:"string",alternativeMatches:["Belgium"]},{value:"BLZ",label:"BLZ",type:"string",alternativeMatches:["Belize"]},{value:"BEN",label:"BEN",type:"string",alternativeMatches:["Benin"]},{value:"BMU",label:"BMU",type:"string",alternativeMatches:["Bermuda"]},{value:"BTN",label:"BTN",type:"string",alternativeMatches:["Bhutan"]},{value:"BOL",label:"BOL",type:"string",alternativeMatches:["Bolivia (Plurinational State of)","Bolivia"]},{value:"BES",label:"BES",type:"string",alternativeMatches:["Bonaire, Sint Eustatius and Saba"]},{value:"BIH",label:"BIH",type:"string",alternativeMatches:["Bosnia and Herzegovina"]},{value:"BWA",label:"BWA",type:"string",alternativeMatches:["Botswana"]},{value:"BVT",label:"BVT",type:"string",alternativeMatches:["Bouvet Island"]},{value:"BRA",label:"BRA",type:"string",alternativeMatches:["Brazil"]},{value:"IOT",label:"IOT",type:"string",alternativeMatches:["British Indian Ocean Territory"]},{value:"BRN",label:"BRN",type:"string",alternativeMatches:["Brunei Darussalam"]},{value:"BGR",label:"BGR",type:"string",alternativeMatches:["Bulgaria"]},{value:"BFA",label:"BFA",type:"string",alternativeMatches:["Burkina Faso"]},{value:"BDI",label:"BDI",type:"string",alternativeMatches:["Burundi"]},{value:"KHM",label:"KHM",type:"string",alternativeMatches:["Cambodia"]},{value:"CMR",label:"CMR",type:"string",alternativeMatches:["Cameroon"]},{value:"CAN",label:"CAN",type:"string",alternativeMatches:["Canada"]},{value:"CPV",label:"CPV",type:"string",alternativeMatches:["Cape Verde"]},{value:"CYM",label:"CYM",type:"string",alternativeMatches:["Cayman Islands"]},{value:"CAF",label:"CAF",type:"string",alternativeMatches:["Central African Republic"]},{value:"TCD",label:"TCD",type:"string",alternativeMatches:["Chad"]},{value:"CHL",label:"CHL",type:"string",alternativeMatches:["Chile"]},{value:"CHN",label:"CHN",type:"string",alternativeMatches:["China"]},{value:"CXR",label:"CXR",type:"string",alternativeMatches:["Christmas Island"]},{value:"CCK",label:"CCK",type:"string",alternativeMatches:["Cocos (Keeling) Islands"]},{value:"COL",label:"COL",type:"string",alternativeMatches:["Colombia"]},{value:"COM",label:"COM",type:"string",alternativeMatches:["Comoros"]},{value:"COG",label:"COG",type:"string",alternativeMatches:["Congo"]},{value:"COD",label:"COD",type:"string",alternativeMatches:["Congo (the Democratic Republic of the)"]},{value:"COK",label:"COK",type:"string",alternativeMatches:["Cook Islands"]},{value:"CRI",label:"CRI",type:"string",alternativeMatches:["Costa Rica"]},{value:"CIV",label:"CIV",type:"string",alternativeMatches:["C\xF4te d'Ivoire"]},{value:"HRV",label:"HRV",type:"string",alternativeMatches:["Croatia"]},{value:"CUB",label:"CUB",type:"string",alternativeMatches:["Cuba"]},{value:"CUW",label:"CUW",type:"string",alternativeMatches:["Cura\xE7ao"]},{value:"CYP",label:"CYP",type:"string",alternativeMatches:["Cyprus"]},{value:"CZE",label:"CZE",type:"string",alternativeMatches:["Czechia","Czech Republic"]},{value:"DNK",label:"DNK",type:"string",alternativeMatches:["Denmark"]},{value:"DJI",label:"DJI",type:"string",alternativeMatches:["Djibouti"]},{value:"DMA",label:"DMA",type:"string",alternativeMatches:["Dominica"]},{value:"DOM",label:"DOM",type:"string",alternativeMatches:["Dominican Republic"]},{value:"ECU",label:"ECU",type:"string",alternativeMatches:["Ecuador"]},{value:"EGY",label:"EGY",type:"string",alternativeMatches:["Egypt"]},{value:"SLV",label:"SLV",type:"string",alternativeMatches:["El Salvador"]},{value:"GNQ",label:"GNQ",type:"string",alternativeMatches:["Equatorial Guinea"]},{value:"ERI",label:"ERI",type:"string",alternativeMatches:["Eritrea"]},{value:"EST",label:"EST",type:"string",alternativeMatches:["Estonia"]},{value:"ETH",label:"ETH",type:"string",alternativeMatches:["Ethiopia"]},{value:"FLK",label:"FLK",type:"string",alternativeMatches:["Falkland Islands (Malvinas)"]},{value:"FRO",label:"FRO",type:"string",alternativeMatches:["Faroe Islands"]},{value:"FJI",label:"FJI",type:"string",alternativeMatches:["Fiji"]},{value:"FIN",label:"FIN",type:"string",alternativeMatches:["Finland"]},{value:"FRA",label:"FRA",type:"string",alternativeMatches:["France"]},{value:"GUF",label:"GUF",type:"string",alternativeMatches:["French Guiana"]},{value:"PYF",label:"PYF",type:"string",alternativeMatches:["French Polynesia"]},{value:"ATF",label:"ATF",type:"string",alternativeMatches:["French Southern Territories"]},{value:"GAB",label:"GAB",type:"string",alternativeMatches:["Gabon"]},{value:"GMB",label:"GMB",type:"string",alternativeMatches:["Gambia"]},{value:"GEO",label:"GEO",type:"string",alternativeMatches:["Georgia"]},{value:"DEU",label:"DEU",type:"string",alternativeMatches:["Germany"]},{value:"GHA",label:"GHA",type:"string",alternativeMatches:["Ghana"]},{value:"GIB",label:"GIB",type:"string",alternativeMatches:["Gibraltar"]},{value:"GRC",label:"GRC",type:"string",alternativeMatches:["Greece"]},{value:"GRL",label:"GRL",type:"string",alternativeMatches:["Greenland"]},{value:"GRD",label:"GRD",type:"string",alternativeMatches:["Grenada"]},{value:"GLP",label:"GLP",type:"string",alternativeMatches:["Guadeloupe"]},{value:"GUM",label:"GUM",type:"string",alternativeMatches:["Guam"]},{value:"GTM",label:"GTM",type:"string",alternativeMatches:["Guatemala"]},{value:"GGY",label:"GGY",type:"string",alternativeMatches:["Guernsey"]},{value:"GIN",label:"GIN",type:"string",alternativeMatches:["Guinea"]},{value:"GNB",label:"GNB",type:"string",alternativeMatches:["Guinea-Bissau"]},{value:"GUY",label:"GUY",type:"string",alternativeMatches:["Guyana"]},{value:"HTI",label:"HTI",type:"string",alternativeMatches:["Haiti"]},{value:"HMD",label:"HMD",type:"string",alternativeMatches:["Heard Island and McDonald Islands","Heard Island","McDonald Islands"]},{value:"VAT",label:"VAT",type:"string",alternativeMatches:["Holy See (Vatican City State)"]},{value:"HND",label:"HND",type:"string",alternativeMatches:["Honduras"]},{value:"HKG",label:"HKG",type:"string",alternativeMatches:["Hong Kong"]},{value:"HUN",label:"HUN",type:"string",alternativeMatches:["Hungary"]},{value:"ISL",label:"ISL",type:"string",alternativeMatches:["Iceland"]},{value:"IND",label:"IND",type:"string",alternativeMatches:["India"]},{value:"IDN",label:"IDN",type:"string",alternativeMatches:["Indonesia"]},{value:"IRN",label:"IRN",type:"string",alternativeMatches:["Iran (Islamic Republic of) ","Iran"]},{value:"IRQ",label:"IRQ",type:"string",alternativeMatches:["Iraq"]},{value:"IRL",label:"IRL",type:"string",alternativeMatches:["Ireland"]},{value:"IMN",label:"IMN",type:"string",alternativeMatches:["Isle of Man"]},{value:"ISR",label:"ISR",type:"string",alternativeMatches:["Israel"]},{value:"ITA",label:"ITA",type:"string",alternativeMatches:["Italy"]},{value:"JAM",label:"JAM",type:"string",alternativeMatches:["Jamaica"]},{value:"JPN",label:"JPN",type:"string",alternativeMatches:["Japan"]},{value:"JEY",label:"JEY",type:"string",alternativeMatches:["Jersey"]},{value:"JOR",label:"JOR",type:"string",alternativeMatches:["Jordan"]},{value:"KAZ",label:"KAZ",type:"string",alternativeMatches:["Kazakhstan"]},{value:"KEN",label:"KEN",type:"string",alternativeMatches:["Kenya"]},{value:"KIR",label:"KIR",type:"string",alternativeMatches:["Kiribati"]},{value:"PRK",label:"PRK",type:"string",alternativeMatches:["Democratic People's Republic of Korea","North Korea"]},{value:"KOR",label:"KOR",type:"string",alternativeMatches:["Korea, Republic of Korea","South Korea"]},{value:"KWT",label:"KWT",type:"string",alternativeMatches:["Kuwait"]},{value:"KGZ",label:"KGZ",type:"string",alternativeMatches:["Kyrgyzstan"]},{value:"LAO",label:"LAO",type:"string",alternativeMatches:["Lao People's Democratic Republic"]},{value:"LVA",label:"LVA",type:"string",alternativeMatches:["Latvia"]},{value:"LBN",label:"LBN",type:"string",alternativeMatches:["Lebanon"]},{value:"LSO",label:"LSO",type:"string",alternativeMatches:["Lesotho"]},{value:"LBR",label:"LBR",type:"string",alternativeMatches:["Liberia"]},{value:"LBY",label:"LBY",type:"string",alternativeMatches:["Libya"]},{value:"LIE",label:"LIE",type:"string",alternativeMatches:["Liechtenstein"]},{value:"LTU",label:"LTU",type:"string",alternativeMatches:["Lithuania"]},{value:"LUX",label:"LUX",type:"string",alternativeMatches:["Luxembourg"]},{value:"MAC",label:"MAC",type:"string",alternativeMatches:["Macao"]},{value:"MKD",label:"MKD",type:"string",alternativeMatches:["Republic of North Macedonia","North Macedonia"]},{value:"MDG",label:"MDG",type:"string",alternativeMatches:["Madagascar"]},{value:"MWI",label:"MWI",type:"string",alternativeMatches:["Malawi"]},{value:"MYS",label:"MYS",type:"string",alternativeMatches:["Malaysia"]},{value:"MDV",label:"MDV",type:"string",alternativeMatches:["Maldives"]},{value:"MLI",label:"MLI",type:"string",alternativeMatches:["Mali"]},{value:"MLT",label:"MLT",type:"string",alternativeMatches:["Malta"]},{value:"MHL",label:"MHL",type:"string",alternativeMatches:["Marshall Islands"]},{value:"MTQ",label:"MTQ",type:"string",alternativeMatches:["Martinique"]},{value:"MRT",label:"MRT",type:"string",alternativeMatches:["Mauritania"]},{value:"MUS",label:"MUS",type:"string",alternativeMatches:["Mauritius"]},{value:"MYT",label:"MYT",type:"string",alternativeMatches:["Mayotte"]},{value:"MEX",label:"MEX",type:"string",alternativeMatches:["Mexico"]},{value:"FSM",label:"FSM",type:"string",alternativeMatches:["Micronesia (Federated States of)"]},{value:"MDA",label:"MDA",type:"string",alternativeMatches:["Moldova (the Republic of)"]},{value:"MCO",label:"MCO",type:"string",alternativeMatches:["Monaco"]},{value:"MNG",label:"MNG",type:"string",alternativeMatches:["Mongolia"]},{value:"MNE",label:"MNE",type:"string",alternativeMatches:["Montenegro"]},{value:"MSR",label:"MSR",type:"string",alternativeMatches:["Montserrat"]},{value:"MAR",label:"MAR",type:"string",alternativeMatches:["Morocco"]},{value:"MOZ",label:"MOZ",type:"string",alternativeMatches:["Mozambique"]},{value:"MMR",label:"MMR",type:"string",alternativeMatches:["Myanmar"]},{value:"NAM",label:"NAM",type:"string",alternativeMatches:["Namibia"]},{value:"NRU",label:"NRU",type:"string",alternativeMatches:["Nauru"]},{value:"NPL",label:"NPL",type:"string",alternativeMatches:["Nepal"]},{value:"NLD",label:"NLD",type:"string",alternativeMatches:["Netherlands"]},{value:"NCL",label:"NCL",type:"string",alternativeMatches:["New Caledonia"]},{value:"NZL",label:"NZL",type:"string",alternativeMatches:["New Zealand"]},{value:"NIC",label:"NIC",type:"string",alternativeMatches:["Nicaragua"]},{value:"NER",label:"NER",type:"string",alternativeMatches:["Niger"]},{value:"NGA",label:"NGA",type:"string",alternativeMatches:["Nigeria"]},{value:"NIU",label:"NIU",type:"string",alternativeMatches:["Niue"]},{value:"NFK",label:"NFK",type:"string",alternativeMatches:["Norfolk Island"]},{value:"MNP",label:"MNP",type:"string",alternativeMatches:["Northern Mariana Islands"]},{value:"NOR",label:"NOR",type:"string",alternativeMatches:["Norway"]},{value:"OMN",label:"OMN",type:"string",alternativeMatches:["Oman"]},{value:"PAK",label:"PAK",type:"string",alternativeMatches:["Pakistan"]},{value:"PLW",label:"PLW",type:"string",alternativeMatches:["Palau"]},{value:"PSE",label:"PSE",type:"string",alternativeMatches:["Palestinian Territory, Occupied"]},{value:"PAN",label:"PAN",type:"string",alternativeMatches:["Panama"]},{value:"PNG",label:"PNG",type:"string",alternativeMatches:["Papua New Guinea"]},{value:"PRY",label:"PRY",type:"string",alternativeMatches:["Paraguay"]},{value:"PER",label:"PER",type:"string",alternativeMatches:["Peru"]},{value:"PHL",label:"PHL",type:"string",alternativeMatches:["Philippines"]},{value:"PCN",label:"PCN",type:"string",alternativeMatches:["Pitcairn"]},{value:"POL",label:"POL",type:"string",alternativeMatches:["Poland"]},{value:"PRT",label:"PRT",type:"string",alternativeMatches:["Portugal"]},{value:"PRI",label:"PRI",type:"string",alternativeMatches:["Puerto Rico"]},{value:"QAT",label:"QAT",type:"string",alternativeMatches:["Qatar"]},{value:"REU",label:"REU",type:"string",alternativeMatches:["R\xE9union"]},{value:"ROU",label:"ROU",type:"string",alternativeMatches:["Romania"]},{value:"RUS",label:"RUS",type:"string",alternativeMatches:["Russian Federation"]},{value:"RWA",label:"RWA",type:"string",alternativeMatches:["Rwanda"]},{value:"BLM",label:"BLM",type:"string",alternativeMatches:["Saint Barth\xE9lemy"]},{value:"SHN",label:"SHN",type:"string",alternativeMatches:["Saint Helena, Ascension and Tristan da Cunha"]},{value:"KNA",label:"KNA",type:"string",alternativeMatches:["Saint Kitts and Nevis","Saint Kitts","Nevis"]},{value:"LCA",label:"LCA",type:"string",alternativeMatches:["Saint Lucia"]},{value:"MAF",label:"MAF",type:"string",alternativeMatches:["Saint Martin (French part)"]},{value:"SPM",label:"SPM",type:"string",alternativeMatches:["Saint Pierre and Miquelon","Saint Pierre","Miquelon"]},{value:"VCT",label:"VCT",type:"string",alternativeMatches:["Saint Vincent and the Grenadines","Saint Vincent","Grenadines"]},{value:"WSM",label:"WSM",type:"string",alternativeMatches:["Samoa"]},{value:"SMR",label:"SMR",type:"string",alternativeMatches:["San Marino"]},{value:"STP",label:"STP",type:"string",alternativeMatches:["Sao Tome and Principe","Sao Tome","Principe"]},{value:"SAU",label:"SAU",type:"string",alternativeMatches:["Saudi Arabia"]},{value:"SEN",label:"SEN",type:"string",alternativeMatches:["Senegal"]},{value:"SRB",label:"SRB",type:"string",alternativeMatches:["Serbia"]},{value:"SYC",label:"SYC",type:"string",alternativeMatches:["Seychelles"]},{value:"SLE",label:"SLE",type:"string",alternativeMatches:["Sierra Leone"]},{value:"SGP",label:"SGP",type:"string",alternativeMatches:["Singapore"]},{value:"SXM",label:"SXM",type:"string",alternativeMatches:["Sint Maarten (Dutch part)"]},{value:"SVK",label:"SVK",type:"string",alternativeMatches:["Slovakia"]},{value:"SVN",label:"SVN",type:"string",alternativeMatches:["Slovenia"]},{value:"SLB",label:"SLB",type:"string",alternativeMatches:["Solomon Islands"]},{value:"SOM",label:"SOM",type:"string",alternativeMatches:["Somalia"]},{value:"ZAF",label:"ZAF",type:"string",alternativeMatches:["South Africa"]},{value:"SGS",label:"SGS",type:"string",alternativeMatches:["South Georgia and the South Sandwich Islands","South Georgia","South Sandwich Islands"]},{value:"SSD",label:"SSD",type:"string",alternativeMatches:["South Sudan"]},{value:"ESP",label:"ESP",type:"string",alternativeMatches:["Spain"]},{value:"LKA",label:"LKA",type:"string",alternativeMatches:["Sri Lanka"]},{value:"SDN",label:"SDN",type:"string",alternativeMatches:["Sudan"]},{value:"SUR",label:"SUR",type:"string",alternativeMatches:["Suriname"]},{value:"SJM",label:"SJM",type:"string",alternativeMatches:["Svalbard and Jan Mayen","Svalbard","Jan Mayen"]},{value:"SWZ",label:"SWZ",type:"string",alternativeMatches:["Swaziland","Eswatini"]},{value:"SWE",label:"SWE",type:"string",alternativeMatches:["Sweden"]},{value:"CHE",label:"CHE",type:"string",alternativeMatches:["Switzerland"]},{value:"SYR",label:"SYR",type:"string",alternativeMatches:["Syrian Arab Republic"]},{value:"TWN",label:"TWN",type:"string",alternativeMatches:["Taiwan, Province of China"]},{value:"TJK",label:"TJK",type:"string",alternativeMatches:["Tajikistan"]},{value:"TZA",label:"TZA",type:"string",alternativeMatches:["Tanzania, United Republic of"]},{value:"THA",label:"THA",type:"string",alternativeMatches:["Thailand"]},{value:"TLS",label:"TLS",type:"string",alternativeMatches:["Timor-Leste"]},{value:"TGO",label:"TGO",type:"string",alternativeMatches:["Togo"]},{value:"TKL",label:"TKL",type:"string",alternativeMatches:["Tokelau"]},{value:"TON",label:"TON",type:"string",alternativeMatches:["Tonga"]},{value:"TTO",label:"TTO",type:"string",alternativeMatches:["Trinidad and Tobago","Trinidad","Tobago"]},{value:"TUN",label:"TUN",type:"string",alternativeMatches:["Tunisia"]},{value:"TUR",label:"TUR",type:"string",alternativeMatches:["Turkey"]},{value:"TKM",label:"TKM",type:"string",alternativeMatches:["Turkmenistan"]},{value:"TCA",label:"TCA",type:"string",alternativeMatches:["Turks and Caicos Islands"]},{value:"TUV",label:"TUV",type:"string",alternativeMatches:["Tuvalu"]},{value:"UGA",label:"UGA",type:"string",alternativeMatches:["Uganda"]},{value:"UKR",label:"UKR",type:"string",alternativeMatches:["Ukraine"]},{value:"ARE",label:"ARE",type:"string",alternativeMatches:["United Arab Emirates"]},{value:"GBR",label:"GBR",type:"string",alternativeMatches:["United Kingdom"]},{value:"USA",label:"USA",type:"string",alternativeMatches:["United States"]},{value:"UMI",label:"UMI",type:"string",alternativeMatches:["United States Minor Outlying Islands"]},{value:"URY",label:"URY",type:"string",alternativeMatches:["Uruguay"]},{value:"UZB",label:"UZB",type:"string",alternativeMatches:["Uzbekistan"]},{value:"VUT",label:"VUT",type:"string",alternativeMatches:["Vanuatu"]},{value:"VEN",label:"VEN",type:"string",alternativeMatches:["Venezuela (Bolivarian Republic of)","Venezuela","Bolivarian"]},{value:"VNM",label:"VNM",type:"string",alternativeMatches:["Viet Nam"]},{value:"VGB",label:"VGB",type:"string",alternativeMatches:["Virgin Islands (British)","British"]},{value:"VIR",label:"VIR",type:"string",alternativeMatches:["Virgin Islands (U.S.)"]},{value:"WLF",label:"WLF",type:"string",alternativeMatches:["Wallis and Futuna"]},{value:"ESH",label:"ESH",type:"string",alternativeMatches:["Western Sahara"]},{value:"YEM",label:"YEM",type:"string",alternativeMatches:["Yemen"]},{value:"ZMB",label:"ZMB",type:"string",alternativeMatches:["Zambia"]},{value:"ZWE",label:"ZWE",type:"string",alternativeMatches:["Zimbabwe"]}];import{isArray as Y}from"lodash";var R=class t{constructor(a,e){this.dataModels=[];this.mapValidation=a=>{switch(a){case"regex":return"REGEX";case"required":return"REQUIRED";case"required_with":return"REQUIRED_WITH";case"required_with_all":return"REQUIRED_WITH_ALL";case"required_with_all_values":return"REQUIRED_WITH_ALL_VALUES";case"required_with_values":return"REQUIRED_WITH_VALUES";case"required_without":return"REQUIRED_WITHOUT";case"required_without_all":return"REQUIRED_WITHOUT_ALL";case"required_without_all_values":return"REQUIRED_WITHOUT_ALL_VALUES";case"required_without_values":return"REQUIRED_WITHOUT_VALUES";case"unique":return"UNIQUE";case"compare":return"COMPARE";default:throw new Error(`validation "${a}" isn't in available options`)}};this.getValidator=(a,e)=>new E({validation:this.mapValidation(a.validate),regex:a.regex??void 0,fields:a.columnValues?.map(l=>({key:l.key,value:l.value??[],type:this.findDataModelTypeByKey(l.key,e),label:this.findDataModelLabelByKey(l.key,e)}))??[],errorMessage:a.errorMessage,operator:a.operator,value:a.value});this.findDataModel=a=>this.columns.find(e=>e.key===a);this.findDataModelTypeByKey=(a,e)=>{let l=this.findDataModel(a);if(l)return t.mapDataModelType({columnType:l.columnType});if(e.checkValidation)throw new Error(`validation key "${a}" isn't found.`);return"string"};this.findDataModelLabelByKey=(a,e)=>{let l=this.findDataModel(a);if(l)return l.label;if(e.checkValidation)throw new Error(`validation key "${a}" isn't found.`);return""};this.validatorParser=a=>{let e=a.validate.toUpperCase(),l=a.columnValues??{},r=a.columns??[];return e==="REQUIRED_WITH_VALUES"||e==="REQUIRED_WITH_ALL_VALUES"||e==="REQUIRED_WITHOUT_VALUES"||e==="REQUIRED_WITHOUT_ALL_VALUES"?Object.keys(l).map(n=>({key:n,value:Y(l[n])?l[n]:[l[n]]})):e==="REQUIRED_WITH"||e==="REQUIRED_WITHOUT"||e==="REQUIRED_WITHOUT_ALL"||e==="REQUIRED_WITH_ALL"?r.map(n=>({key:n})):[]};this.setDataModels=a=>{this.dataModels=this.columns.map(e=>{let l=t.mapDataModelType({columnType:e.columnType});e.numberFormat===void 0&&l==="currency_usd"&&(e.numberFormat="us");let r=e.optionMappingConfiguration?.processingMode??"browser",n=e.optionMappingConfiguration?.layers&&e.optionMappingConfiguration?.layers.length>0?e.optionMappingConfiguration?.layers:["smart","historic","fuzzy","exact"];a.enableNodeProcessing||(r="browser",n=n.filter(i=>i!=="historic"&&i!=="smart")),a.enableReuseMapping||(n=n.filter(i=>i!=="historic"));let v={layers:n,processingMode:r,threshold:e.optionMappingConfiguration?.threshold??.6},s={description:e.description??"",example:e.example??"",key:e.key,label:e.label,type:l,isRequired:!1,outputFormat:e.outputFormat??"",inputFormat:l==="date"?N(e.inputFormat):null,validators:e.validations?.map(i=>this.getValidator({...i,columnValues:this.validatorParser(i)},a)),mappingValidation:e.mappingValidation,alternativeMatches:e.alternativeMatches,columnSize:1,columnWidth:e.columnWidth,numberFormat:e.numberFormat||"eu",hidden:e.hidden,disabled:e.disabled,optionMappingConfiguration:v,excludeFromAutoMatching:e.excludeFromAutoMatching};return p.isTypeCategory(l)?new B({...s,type:l,options:t.createDropdownOptions(e),isMultiSelection:e.isMultiSelect??!1,allowCustomOptions:e.allowCustomOptions,allowedCustomOptionTypes:e.allowedCustomOptionTypes,preserveUnmappedOptions:t.sanitizePreserveUnmappedOptions(e.preserveUnmappedOptions)}):new p(s)})};this.getDataModels=()=>this.dataModels;this.columns=a,this.setDataModels(e)}static{this.mapDataModelType=({columnType:a})=>{switch(a){case"boolean":return"boolean";case"int":return"int";case"float":return"float";case"category":return"single-select";case"date":return"date";case"date_dmy":return"date_dmy";case"date_mdy":return"date_mdy";case"date_iso":return"date_iso";case"datetime":return"datetime";case"time_hms":return"time_hms";case"time_hms_24":return"time_hms_24";case"time_hm":return"time_hm";case"time_hm_24":return"time_hm_24";case"email":return"email";case"url_www":return"url_www";case"url_https":return"url_https";case"url":return"url";case"phone":return"phone";case"zip_code_de":return"zip_code_de";case"percentage":return"percentage";case"country_code_alpha_2":return"country_code_alpha_2";case"country_code_alpha_3":return"country_code_alpha_3";case"currency_code":return"currency_code";case"currency_eur":return"currency_eur";case"currency_usd":return"currency_usd";case"bic":return"bic";case"vat_eu":return"vat_eu";case"gtin":return"gtin";case"iban":return"iban";default:return"string"}}}static{this.mapColumnType=({dataType:a})=>{switch(a){case"boolean":return"boolean";case"int":return"int";case"float":return"float";case"single-select":return"category";case"date":return"date";case"date_dmy":return"date_dmy";case"date_mdy":return"date_mdy";case"date_iso":return"date_iso";case"datetime":return"datetime";case"time_hms":return"time_hms";case"time_hms_24":return"time_hms_24";case"time_hm":return"time_hm";case"time_hm_24":return"time_hm_24";case"email":return"email";case"url_www":return"url_www";case"url_https":return"url_https";case"url":return"url";case"phone":return"phone";case"zip_code_de":return"zip_code_de";case"percentage":return"percentage";case"country_code_alpha_2":return"country_code_alpha_2";case"country_code_alpha_3":return"country_code_alpha_3";case"currency_code":return"currency_code";case"currency_eur":return"currency_eur";case"currency_usd":return"currency_usd";case"bic":return"bic";case"vat_eu":return"vat_eu";case"gtin":return"gtin";case"iban":return"iban";default:return"string"}}}static{this.VALID_PRESERVE_UNMAPPED_OPTIONS=["none","optional-off","optional-on","always"]}static{this.sanitizePreserveUnmappedOptions=a=>{if(typeof a=="string"&&t.VALID_PRESERVE_UNMAPPED_OPTIONS.includes(a))return a}}static{this.createDropdownOptions=a=>a.columnType==="category"?a.dropdownOptions?.map(e=>({label:`${e.label}`,value:`${e.value}`,type:e.type,alternativeMatches:e.alternativeMatches??[],validations:e.validations??[],description:e.description??""}))??[]:a.columnType==="currency_code"?P:a.columnType==="country_code_alpha_2"?D:a.columnType==="country_code_alpha_3"?L:[]}},G=R;var Te=(t,a,e,l,r,n)=>{let v=0,s=0,i=0,u=!1,M=!1,{value:g,columns:A,isExact:K,isEmptyValues:b}=a,o=g?.trim();if(!b&&(W(o)||o.length===0))return;let H=b?t.length-1:t.length;for(let h=0;h<H;h++){let T=t[h],d=Object.keys(T);for(let y=0;y<d.length;y++){let C=A.findIndex(c=>c.key===d[y]),S=C>=0?A[C]:void 0;if(S===void 0)continue;let f=T[d[y]];if(m(f,{value:o??"",columns:[S],isExact:K,isEmptyValues:b})){v++;let c=n.findIndex(V=>V.key===S.key),I=n[c];(e.includes(c)||l.includes(h))&&s++,r.includes(c)&&i++,I.disabled&&(M=!0),p.isTypeCategory(G.mapDataModelType({columnType:I.columnType}))&&(u=!0)}}}return{counter:v,hidden:s,skip:i,matchedCategoryType:u,matchedDisabledColumn:M}};var U=t=>t==null||t===""||typeof t=="string"&&t.trim()==="";var O=t=>U(t)||Array.isArray(t)&&t.length===0,_=(t,a)=>typeof t=="string"?a?t.toLowerCase():t:typeof t=="number"?Number.isNaN(t)?{__nuvoNum:"NaN"}:t===1/0?{__nuvoNum:"+Infinity"}:t===-1/0?{__nuvoNum:"-Infinity"}:t:Array.isArray(t)?t.map(e=>_(e,a)):t,w=(t,a,e)=>JSON.stringify(a.map(l=>_(t[l]??null,e))),Z=({rows:t,columnKeys:a,ignoreCase:e=!1,ignoreBlanks:l=!1,excludeFromRemoval:r=[]})=>{if(a.length===0)return[];let n=new Set(r),v=new Set,s=[];for(let i=0;i<t.length;i++){if(n.has(i))continue;let u=t[i];if(l&&a.some(g=>O(u[g])))continue;let M=w(u,a,e);v.has(M)?s.push(i):v.add(M)}return s},k=({rows:t,columnKeys:a,excludeFromRemoval:e=[]})=>{if(a.length===0)return[];let l=new Set(e),r=[];for(let n=0;n<t.length;n++){if(l.has(n))continue;let v=t[n];a.every(s=>O(v[s]))&&r.push(n)}return r},Ee=t=>t.mode==="duplicate"?Z(t):k(t);export{P as a,D as b,L as c,G as d,Te as e,U as f,O as g,Ee as h};
|
|
1
|
+
import{e as N,h as E,i as p,m,r as B}from"./chunk-POKDA5JR.js";import{isNil as W}from"lodash";var P=[{label:"AFN",value:"AFN",type:"string",alternativeMatches:["Af","Afghanistan"]},{label:"ARS",value:"ARS",type:"string",alternativeMatches:["AR$","Argentina"]},{label:"AWG",value:"AWG",type:"string",alternativeMatches:["Aruba"]},{label:"AUD",value:"AUD",type:"string",alternativeMatches:["AU$","Australia"]},{label:"AZN",value:"AZN",type:"string",alternativeMatches:["man.","Azerbaijan"]},{label:"BSD",value:"BSD",type:"string",alternativeMatches:["Bahamas"]},{label:"BBD",value:"BBD",type:"string",alternativeMatches:["Barbados"]},{label:"BYN",value:"BYN",type:"string",alternativeMatches:["Br"]},{label:"BZD",value:"BZD",type:"string",alternativeMatches:["BZ$","Belize"]},{label:"BMD",value:"BMD",type:"string",alternativeMatches:["Bermuda"]},{label:"BOB",value:"BOB",type:"string",alternativeMatches:["Bs","Bolivia"]},{label:"BAM",value:"BAM",type:"string",alternativeMatches:["KM","Bosnia and Herzegovina"]},{label:"BWP",value:"BWP",type:"string",alternativeMatches:["BWP","Botswana"]},{label:"BGN",value:"BGN",type:"string",alternativeMatches:["BGN","Bulgaria"]},{label:"BRL",value:"BRL",type:"string",alternativeMatches:["R$","Brazil"]},{label:"BND",value:"BND",type:"string",alternativeMatches:["BN$","Brunei"]},{label:"KHR",value:"KHR",type:"string",alternativeMatches:["KHR","Cambodia"]},{label:"CAD",value:"CAD",type:"string",alternativeMatches:["CA$","Canada"]},{label:"KYD",value:"KYD",type:"string",alternativeMatches:["Cayman Islands"]},{label:"CLP",value:"CLP",type:"string",alternativeMatches:["CL$","Chile"]},{label:"CNY",value:"CNY",type:"string",alternativeMatches:["CN\xA5","China"]},{label:"COP",value:"COP",type:"string",alternativeMatches:["CO$","Colombia"]},{label:"CRC",value:"CRC",type:"string",alternativeMatches:["\u20A1","Costa Rica"]},{label:"HRK",value:"HRK",type:"string",alternativeMatches:["kn","Croatia"]},{label:"CUP",value:"CUP",type:"string",alternativeMatches:["Cuba"]},{label:"CZK",value:"CZK",type:"string",alternativeMatches:["K\u010D","Czech Republic"]},{label:"DKK",value:"DKK",type:"string",alternativeMatches:["Dkr","Denmark"]},{label:"DOP",value:"DOP",type:"string",alternativeMatches:["RD$","Dominican Republic"]},{label:"XCD",value:"XCD",type:"string",alternativeMatches:["Anguilla"]},{label:"EGP",value:"EGP",type:"string",alternativeMatches:["EGP","Egypt"]},{label:"SVC",value:"SVC",type:"string",alternativeMatches:["El Salvador"]},{label:"EUR",value:"EUR",type:"string",alternativeMatches:["\u20AC","Germany"]},{label:"FKP",value:"FKP",type:"string",alternativeMatches:["Falkland Islands"]},{label:"FJD",value:"FJD",type:"string",alternativeMatches:["Fiji Islands"]},{label:"GHS",value:"GHS",type:"string",alternativeMatches:["GH\u20B5","Ghana"]},{label:"GIP",value:"GIP",type:"string",alternativeMatches:["Gibraltar"]},{label:"GTQ",value:"GTQ",type:"string",alternativeMatches:["GTQ"]},{label:"GGP",value:"GGP",type:"string",alternativeMatches:[]},{label:"GYD",value:"GYD",type:"string",alternativeMatches:["Guyana"]},{label:"HNL",value:"HNL",type:"string",alternativeMatches:["HNL","Honduras"]},{label:"HKD",value:"HKD",type:"string",alternativeMatches:["HK$","Hong Kong"]},{label:"HUF",value:"HUF",type:"string",alternativeMatches:["Ft","Hungary"]},{label:"ISK",value:"ISK",type:"string",alternativeMatches:["Ikr","Iceland"]},{label:"INR",value:"INR",type:"string",alternativeMatches:["\u20B9","India"]},{label:"IDR",value:"IDR",type:"string",alternativeMatches:["Rp","Indonesia"]},{label:"IRR",value:"IRR",type:"string",alternativeMatches:["IRR","Iran"]},{label:"IMP",value:"IMP",type:"string",alternativeMatches:[]},{label:"ILS",value:"ILS",type:"string",alternativeMatches:["\u20AA","Israel"]},{label:"JMD",value:"JMD",type:"string",alternativeMatches:["J$","Jamaica"]},{label:"JPY",value:"JPY",type:"string",alternativeMatches:["\xA5","Japan"]},{label:"JEP",value:"JEP",type:"string",alternativeMatches:[]},{label:"KZT",value:"KZT",type:"string",alternativeMatches:["KZT","Kazakhstan"]},{label:"KPW",value:"KPW",type:"string",alternativeMatches:["North Korea"]},{label:"KRW",value:"KRW",type:"string",alternativeMatches:["\u20A9","South Korea"]},{label:"KGS",value:"KGS",type:"string",alternativeMatches:["Kyrgyzstan"]},{label:"LAK",value:"LAK",type:"string",alternativeMatches:["Laos"]},{label:"LBP",value:"LBP",type:"string",alternativeMatches:["L.L.","Lebanon"]},{label:"LRD",value:"LRD",type:"string",alternativeMatches:["Liberia"]},{label:"MKD",value:"MKD",type:"string",alternativeMatches:["MKD","North Macedonia"]},{label:"MYR",value:"MYR",type:"string",alternativeMatches:["RM","Malaysia"]},{label:"MUR",value:"MUR",type:"string",alternativeMatches:["MURs","Mauritius"]},{label:"MXN",value:"MXN",type:"string",alternativeMatches:["MX$","Mexico"]},{label:"MNT",value:"MNT",type:"string",alternativeMatches:["Mongolia"]},{label:"MZN",value:"MZN",type:"string",alternativeMatches:["MTn","Mozambique"]},{label:"NAD",value:"NAD",type:"string",alternativeMatches:["N$","Namibia"]},{label:"NPR",value:"NPR",type:"string",alternativeMatches:["NPRs","Nepal"]},{label:"ANG",value:"ANG",type:"string",alternativeMatches:["Netherlands Antilles"]},{label:"NZD",value:"NZD",type:"string",alternativeMatches:["NZ$","Cook Islands"]},{label:"NIO",value:"NIO",type:"string",alternativeMatches:["C$","Nicaragua"]},{label:"NGN",value:"NGN",type:"string",alternativeMatches:["\u20A6","Nigeria"]},{label:"NOK",value:"NOK",type:"string",alternativeMatches:["Nkr","Bouvet Island"]},{label:"OMR",value:"OMR",type:"string",alternativeMatches:["OMR","Oman"]},{label:"PKR",value:"PKR",type:"string",alternativeMatches:["PKRs","Pakistan"]},{label:"PAB",value:"PAB",type:"string",alternativeMatches:["B/.","Panama"]},{label:"PYG",value:"PYG",type:"string",alternativeMatches:["\u20B2","Paraguay"]},{label:"PEN",value:"PEN",type:"string",alternativeMatches:["S/.","Peru"]},{label:"PHP",value:"PHP",type:"string",alternativeMatches:["\u20B1","Philippines"]},{label:"PLN",value:"PLN",type:"string",alternativeMatches:["z\u0142","Poland"]},{label:"QAR",value:"QAR",type:"string",alternativeMatches:["QR","Qatar"]},{label:"RON",value:"RON",type:"string",alternativeMatches:["RON","Romania"]},{label:"RUB",value:"RUB",type:"string",alternativeMatches:["RUB","Russian Federation"]},{label:"SHP",value:"SHP",type:"string",alternativeMatches:["Saint Helena"]},{label:"SAR",value:"SAR",type:"string",alternativeMatches:["SR","Saudi Arabia"]},{label:"RSD",value:"RSD",type:"string",alternativeMatches:["din.","Serbia"]},{label:"SCR",value:"SCR",type:"string",alternativeMatches:["Seychelles"]},{label:"SGD",value:"SGD",type:"string",alternativeMatches:["S$","Singapore"]},{label:"SBD",value:"SBD",type:"string",alternativeMatches:["Solomon Islands"]},{label:"SOS",value:"SOS",type:"string",alternativeMatches:["Ssh","Somalia"]},{label:"ZAR",value:"ZAR",type:"string",alternativeMatches:["R","South Africa"]},{label:"LKR",value:"LKR",type:"string",alternativeMatches:["SLRs","Sri Lanka"]},{label:"SEK",value:"SEK",type:"string",alternativeMatches:["Skr","Sweden"]},{label:"CHF",value:"CHF",type:"string",alternativeMatches:["CHF","Liechtenstein"]},{label:"SRD",value:"SRD",type:"string",alternativeMatches:["Suriname"]},{label:"SYP",value:"SYP",type:"string",alternativeMatches:["SY\xA3","Syria"]},{label:"TWD",value:"TWD",type:"string",alternativeMatches:["NT$"]},{label:"THB",value:"THB",type:"string",alternativeMatches:["\u0E3F","Thailand"]},{label:"TTD",value:"TTD",type:"string",alternativeMatches:["TT$","Trinidad and Tobago"]},{label:"TRY",value:"TRY",type:"string",alternativeMatches:["TL","Turkey"]},{label:"TVD",value:"TVD",type:"string",alternativeMatches:[]},{label:"UAH",value:"UAH",type:"string",alternativeMatches:["\u20B4","Ukraine"]},{label:"GBP",value:"GBP",type:"string",alternativeMatches:["\xA3","England"]},{label:"USD",value:"USD",type:"string",alternativeMatches:["$","USA"]},{label:"UYU",value:"UYU",type:"string",alternativeMatches:["$U","Uruguay"]},{label:"UZS",value:"UZS",type:"string",alternativeMatches:["UZS","Uzbekistan"]},{label:"VEF",value:"VEF",type:"string",alternativeMatches:["Bs.F.","Venezuela"]},{label:"VND",value:"VND",type:"string",alternativeMatches:["\u20AB","Vietnam"]},{label:"YER",value:"YER",type:"string",alternativeMatches:["YR","Yemen"]},{label:"ZWD",value:"ZWD",type:"string",alternativeMatches:["Zimbabwe"]},{label:"XOF",value:"XOF",type:"string",alternativeMatches:["CFA Franc","West Africa"]},{label:"BDT",value:"BDT",type:"string",alternativeMatches:["\u09F3","Bangladesh"]},{label:"UGX",value:"UGX",type:"string",alternativeMatches:["USh","Uganda"]},{label:"KES",value:"KES",type:"string",alternativeMatches:["KSh","Kenya"]},{label:"LSL",value:"LSL",type:"string",alternativeMatches:["Loti","Lesotho"]},{label:"MWK",value:"MWK",type:"string",alternativeMatches:["K","Malawi"]},{label:"TZS",value:"TZS",type:"string",alternativeMatches:["TSh","Tanzania"]},{label:"ETB",value:"ETB",type:"string",alternativeMatches:["Br","Ethiopia"]},{label:"VEB",value:"VEB",type:"string",alternativeMatches:["Bs","Venezuela"]},{label:"XAF",value:"XAF",type:"string",alternativeMatches:["CFA Franc","Central Africa"]}],D=[{value:"AF",label:"AF",type:"string",alternativeMatches:["Afghanistan"]},{value:"AX",label:"AX",type:"string",alternativeMatches:["\xC5land Islands"]},{value:"AL",label:"AL",type:"string",alternativeMatches:["Albania"]},{value:"DZ",label:"DZ",type:"string",alternativeMatches:["Algeria"]},{value:"AS",label:"AS",type:"string",alternativeMatches:["American Samoa"]},{value:"AD",label:"AD",type:"string",alternativeMatches:["Andorra"]},{value:"AO",label:"AO",type:"string",alternativeMatches:["Angola"]},{value:"AI",label:"AI",type:"string",alternativeMatches:["Anguilla"]},{value:"AQ",label:"AQ",type:"string",alternativeMatches:["Antarctica"]},{value:"AG",label:"AG",type:"string",alternativeMatches:["Antigua and Barbuda","Antigua","Barbuda"]},{value:"AR",label:"AR",type:"string",alternativeMatches:["Argentina"]},{value:"AM",label:"AM",type:"string",alternativeMatches:["Armenia"]},{value:"AW",label:"AW",type:"string",alternativeMatches:["Aruba"]},{value:"AU",label:"AU",type:"string",alternativeMatches:["Australia"]},{value:"AT",label:"AT",type:"string",alternativeMatches:["Austria"]},{value:"AZ",label:"AZ",type:"string",alternativeMatches:["Azerbaijan"]},{value:"BS",label:"BS",type:"string",alternativeMatches:["Bahamas"]},{value:"BH",label:"BH",type:"string",alternativeMatches:["Bahrain"]},{value:"BD",label:"BD",type:"string",alternativeMatches:["Bangladesh"]},{value:"BB",label:"BB",type:"string",alternativeMatches:["Barbados"]},{value:"BY",label:"BY",type:"string",alternativeMatches:["Belarus"]},{value:"BE",label:"BE",type:"string",alternativeMatches:["Belgium"]},{value:"BZ",label:"BZ",type:"string",alternativeMatches:["Belize"]},{value:"BJ",label:"BJ",type:"string",alternativeMatches:["Benin"]},{value:"BM",label:"BM",type:"string",alternativeMatches:["Bermuda"]},{value:"BT",label:"BT",type:"string",alternativeMatches:["Bhutan"]},{value:"BO",label:"BO",type:"string",alternativeMatches:["Bolivia (Plurinational State of)","Bolivia"]},{value:"BQ",label:"BQ",type:"string",alternativeMatches:["Bonaire, Sint Eustatius and Saba"]},{value:"BA",label:"BA",type:"string",alternativeMatches:["Bosnia and Herzegovina"]},{value:"BW",label:"BW",type:"string",alternativeMatches:["Botswana"]},{value:"BV",label:"BV",type:"string",alternativeMatches:["Bouvet Island"]},{value:"BR",label:"BR",type:"string",alternativeMatches:["Brazil"]},{value:"IO",label:"IO",type:"string",alternativeMatches:["British Indian Ocean Territory"]},{value:"BN",label:"BN",type:"string",alternativeMatches:["Brunei Darussalam"]},{value:"BG",label:"BG",type:"string",alternativeMatches:["Bulgaria"]},{value:"BF",label:"BF",type:"string",alternativeMatches:["Burkina Faso"]},{value:"BI",label:"BI",type:"string",alternativeMatches:["Burundi"]},{value:"KH",label:"KH",type:"string",alternativeMatches:["Cambodia"]},{value:"CM",label:"CM",type:"string",alternativeMatches:["Cameroon"]},{value:"CA",label:"CA",type:"string",alternativeMatches:["Canada"]},{value:"CV",label:"CV",type:"string",alternativeMatches:["Cape Verde"]},{value:"KY",label:"KY",type:"string",alternativeMatches:["Cayman Islands"]},{value:"CF",label:"CF",type:"string",alternativeMatches:["Central African Republic"]},{value:"TD",label:"TD",type:"string",alternativeMatches:["Chad"]},{value:"CL",label:"CL",type:"string",alternativeMatches:["Chile"]},{value:"CN",label:"CN",type:"string",alternativeMatches:["China"]},{value:"CX",label:"CX",type:"string",alternativeMatches:["Christmas Island"]},{value:"CC",label:"CC",type:"string",alternativeMatches:["Cocos (Keeling) Islands","Cocos Islands"]},{value:"CO",label:"CO",type:"string",alternativeMatches:["Colombia"]},{value:"KM",label:"KM",type:"string",alternativeMatches:["Comoros"]},{value:"CG",label:"CG",type:"string",alternativeMatches:["Congo"]},{value:"CD",label:"CD",type:"string",alternativeMatches:["Congo (the Democratic Republic of the)","Congo"]},{value:"CK",label:"CK",type:"string",alternativeMatches:["Cook Islands"]},{value:"CR",label:"CR",type:"string",alternativeMatches:["Costa Rica"]},{value:"CI",label:"CI",type:"string",alternativeMatches:["C\xF4te d'Ivoire","Cote d Ivoire"]},{value:"HR",label:"HR",type:"string",alternativeMatches:["Croatia"]},{value:"CU",label:"CU",type:"string",alternativeMatches:["Cuba"]},{value:"CW",label:"CW",type:"string",alternativeMatches:["Cura\xE7ao","Curacao"]},{value:"CY",label:"CY",type:"string",alternativeMatches:["Cyprus"]},{value:"CZ",label:"CZ",type:"string",alternativeMatches:["Czechia","Czech Republic"]},{value:"DK",label:"DK",type:"string",alternativeMatches:["Denmark"]},{value:"DJ",label:"DJ",type:"string",alternativeMatches:["Djibouti"]},{value:"DM",label:"DM",type:"string",alternativeMatches:["Dominica"]},{value:"DO",label:"DO",type:"string",alternativeMatches:["Dominican Republic"]},{value:"EC",label:"EC",type:"string",alternativeMatches:["Ecuador"]},{value:"EG",label:"EG",type:"string",alternativeMatches:["Egypt"]},{value:"SV",label:"SV",type:"string",alternativeMatches:["El Salvador"]},{value:"GQ",label:"GQ",type:"string",alternativeMatches:["Equatorial Guinea"]},{value:"ER",label:"ER",type:"string",alternativeMatches:["Eritrea"]},{value:"EE",label:"EE",type:"string",alternativeMatches:["Estonia"]},{value:"ET",label:"ET",type:"string",alternativeMatches:["Ethiopia"]},{value:"FK",label:"FK",type:"string",alternativeMatches:["Falkland Islands (Malvinas)"]},{value:"FO",label:"FO",type:"string",alternativeMatches:["Faroe Islands"]},{value:"FJ",label:"FJ",type:"string",alternativeMatches:["Fiji"]},{value:"FI",label:"FI",type:"string",alternativeMatches:["Finland"]},{value:"FR",label:"FR",type:"string",alternativeMatches:["France"]},{value:"GF",label:"GF",type:"string",alternativeMatches:["French Guiana"]},{value:"PF",label:"PF",type:"string",alternativeMatches:["French Polynesia"]},{value:"TF",label:"TF",type:"string",alternativeMatches:["French Southern Territories"]},{value:"GA",label:"GA",type:"string",alternativeMatches:["Gabon"]},{value:"GM",label:"GM",type:"string",alternativeMatches:["Gambia"]},{value:"GE",label:"GE",type:"string",alternativeMatches:["Georgia"]},{value:"DE",label:"DE",type:"string",alternativeMatches:["Germany"]},{value:"GH",label:"GH",type:"string",alternativeMatches:["Ghana"]},{value:"GI",label:"GI",type:"string",alternativeMatches:["Gibraltar"]},{value:"GR",label:"GR",type:"string",alternativeMatches:["Greece"]},{value:"GL",label:"GL",type:"string",alternativeMatches:["Greenland"]},{value:"GD",label:"GD",type:"string",alternativeMatches:["Grenada"]},{value:"GP",label:"GP",type:"string",alternativeMatches:["Guadeloupe"]},{value:"GU",label:"GU",type:"string",alternativeMatches:["Guam"]},{value:"GT",label:"GT",type:"string",alternativeMatches:["Guatemala"]},{value:"GG",label:"GG",type:"string",alternativeMatches:["Guernsey"]},{value:"GN",label:"GN",type:"string",alternativeMatches:["Guinea"]},{value:"GW",label:"GW",type:"string",alternativeMatches:["Guinea-Bissau"]},{value:"GY",label:"GY",type:"string",alternativeMatches:["Guyana"]},{value:"HT",label:"HT",type:"string",alternativeMatches:["Haiti"]},{value:"HM",label:"HM",type:"string",alternativeMatches:["Heard Island and McDonald Islands","Heard Island","McDonald Islands"]},{value:"VA",label:"VA",type:"string",alternativeMatches:["Holy See (Vatican City State)"]},{value:"HN",label:"HN",type:"string",alternativeMatches:["Honduras"]},{value:"HK",label:"HK",type:"string",alternativeMatches:["Hong Kong"]},{value:"HU",label:"HU",type:"string",alternativeMatches:["Hungary"]},{value:"IS",label:"IS",type:"string",alternativeMatches:["Iceland"]},{value:"IN",label:"IN",type:"string",alternativeMatches:["India"]},{value:"ID",label:"ID",type:"string",alternativeMatches:["Indonesia"]},{value:"IR",label:"IR",type:"string",alternativeMatches:["Iran (Islamic Republic of) ","Iran"]},{value:"IQ",label:"IQ",type:"string",alternativeMatches:["Iraq"]},{value:"IE",label:"IE",type:"string",alternativeMatches:["Ireland"]},{value:"IM",label:"IM",type:"string",alternativeMatches:["Isle of Man"]},{value:"IL",label:"IL",type:"string",alternativeMatches:["Israel"]},{value:"IT",label:"IT",type:"string",alternativeMatches:["Italy"]},{value:"JM",label:"JM",type:"string",alternativeMatches:["Jamaica"]},{value:"JP",label:"JP",type:"string",alternativeMatches:["Japan"]},{value:"JE",label:"JE",type:"string",alternativeMatches:["Jersey"]},{value:"JO",label:"JO",type:"string",alternativeMatches:["Jordan"]},{value:"KZ",label:"KZ",type:"string",alternativeMatches:["Kazakhstan"]},{value:"KE",label:"KE",type:"string",alternativeMatches:["Kenya"]},{value:"KI",label:"KI",type:"string",alternativeMatches:["Kiribati"]},{value:"KP",label:"KP",type:"string",alternativeMatches:["Democratic People's Republic of Korea","North Korea"]},{value:"KR",label:"KR",type:"string",alternativeMatches:["Korea, Republic of Korea","South Korea"]},{value:"KW",label:"KW",type:"string",alternativeMatches:["Kuwait"]},{value:"KG",label:"KG",type:"string",alternativeMatches:["Kyrgyzstan"]},{value:"LA",label:"LA",type:"string",alternativeMatches:["Lao People's Democratic Republic"]},{value:"LV",label:"LV",type:"string",alternativeMatches:["Latvia"]},{value:"LB",label:"LB",type:"string",alternativeMatches:["Lebanon"]},{value:"LS",label:"LS",type:"string",alternativeMatches:["Lesotho"]},{value:"LR",label:"LR",type:"string",alternativeMatches:["Liberia"]},{value:"LY",label:"LY",type:"string",alternativeMatches:["Libya"]},{value:"LI",label:"LI",type:"string",alternativeMatches:["Liechtenstein"]},{value:"LT",label:"LT",type:"string",alternativeMatches:["Lithuania"]},{value:"LU",label:"LU",type:"string",alternativeMatches:["Luxembourg"]},{value:"MO",label:"MO",type:"string",alternativeMatches:["Macao"]},{value:"MK",label:"MK",type:"string",alternativeMatches:["Republic of North Macedonia","North Macedonia"]},{value:"MG",label:"MG",type:"string",alternativeMatches:["Madagascar"]},{value:"MW",label:"MW",type:"string",alternativeMatches:["Malawi"]},{value:"MY",label:"MY",type:"string",alternativeMatches:["Malaysia"]},{value:"MV",label:"MV",type:"string",alternativeMatches:["Maldives"]},{value:"ML",label:"ML",type:"string",alternativeMatches:["Mali"]},{value:"MT",label:"MT",type:"string",alternativeMatches:["Malta"]},{value:"MH",label:"MH",type:"string",alternativeMatches:["Marshall Islands"]},{value:"MQ",label:"MQ",type:"string",alternativeMatches:["Martinique"]},{value:"MR",label:"MR",type:"string",alternativeMatches:["Mauritania"]},{value:"MU",label:"MU",type:"string",alternativeMatches:["Mauritius"]},{value:"YT",label:"YT",type:"string",alternativeMatches:["Mayotte"]},{value:"MX",label:"MX",type:"string",alternativeMatches:["Mexico"]},{value:"FM",label:"FM",type:"string",alternativeMatches:["Micronesia (Federated States of)"]},{value:"MD",label:"MD",type:"string",alternativeMatches:["Moldova (the Republic of)"]},{value:"MC",label:"MC",type:"string",alternativeMatches:["Monaco"]},{value:"MN",label:"MN",type:"string",alternativeMatches:["Mongolia"]},{value:"ME",label:"ME",type:"string",alternativeMatches:["Montenegro"]},{value:"MS",label:"MS",type:"string",alternativeMatches:["Montserrat"]},{value:"MA",label:"MA",type:"string",alternativeMatches:["Morocco"]},{value:"MZ",label:"MZ",type:"string",alternativeMatches:["Mozambique"]},{value:"MM",label:"MM",type:"string",alternativeMatches:["Myanmar"]},{value:"NA",label:"NA",type:"string",alternativeMatches:["Namibia"]},{value:"NR",label:"NR",type:"string",alternativeMatches:["Nauru"]},{value:"NP",label:"NP",type:"string",alternativeMatches:["Nepal"]},{value:"NL",label:"NL",type:"string",alternativeMatches:["Netherlands"]},{value:"NC",label:"NC",type:"string",alternativeMatches:["New Caledonia"]},{value:"NZ",label:"NZ",type:"string",alternativeMatches:["New Zealand"]},{value:"NI",label:"NI",type:"string",alternativeMatches:["Nicaragua"]},{value:"NE",label:"NE",type:"string",alternativeMatches:["Niger"]},{value:"NG",label:"NG",type:"string",alternativeMatches:["Nigeria"]},{value:"NU",label:"NU",type:"string",alternativeMatches:["Niue"]},{value:"NF",label:"NF",type:"string",alternativeMatches:["Norfolk Island"]},{value:"MP",label:"MP",type:"string",alternativeMatches:["Northern Mariana Islands"]},{value:"NO",label:"NO",type:"string",alternativeMatches:["Norway"]},{value:"OM",label:"OM",type:"string",alternativeMatches:["Oman"]},{value:"PK",label:"PK",type:"string",alternativeMatches:["Pakistan"]},{value:"PW",label:"PW",type:"string",alternativeMatches:["Palau"]},{value:"PS",label:"PS",type:"string",alternativeMatches:["Palestinian Territory, Occupied"]},{value:"PA",label:"PA",type:"string",alternativeMatches:["Panama"]},{value:"PG",label:"PG",type:"string",alternativeMatches:["Papua New Guinea"]},{value:"PY",label:"PY",type:"string",alternativeMatches:["Paraguay"]},{value:"PE",label:"PE",type:"string",alternativeMatches:["Peru"]},{value:"PH",label:"PH",type:"string",alternativeMatches:["Philippines"]},{value:"PN",label:"PN",type:"string",alternativeMatches:["Pitcairn"]},{value:"PL",label:"PL",type:"string",alternativeMatches:["Poland"]},{value:"PT",label:"PT",type:"string",alternativeMatches:["Portugal"]},{value:"PR",label:"PR",type:"string",alternativeMatches:["Puerto Rico"]},{value:"QA",label:"QA",type:"string",alternativeMatches:["Qatar"]},{value:"RE",label:"RE",type:"string",alternativeMatches:["R\xE9union"]},{value:"RO",label:"RO",type:"string",alternativeMatches:["Romania"]},{value:"RU",label:"RU",type:"string",alternativeMatches:["Russian Federation"]},{value:"RW",label:"RW",type:"string",alternativeMatches:["Rwanda"]},{value:"BL",label:"BL",type:"string",alternativeMatches:["Saint Barth\xE9lemy"]},{value:"SH",label:"SH",type:"string",alternativeMatches:["Saint Helena, Ascension and Tristan da Cunha"]},{value:"KN",label:"KN",type:"string",alternativeMatches:["Saint Kitts and Nevis","Saint Kitts","Nevis"]},{value:"LC",label:"LC",type:"string",alternativeMatches:["Saint Lucia"]},{value:"MF",label:"MF",type:"string",alternativeMatches:["Saint Martin (French part)"]},{value:"PM",label:"PM",type:"string",alternativeMatches:["Saint Pierre and Miquelon","Saint Pierre","Miquelon"]},{value:"VC",label:"VC",type:"string",alternativeMatches:["Saint Vincent and the Grenadines","Saint Vincent","Grenadines"]},{value:"WS",label:"WS",type:"string",alternativeMatches:["Samoa"]},{value:"SM",label:"SM",type:"string",alternativeMatches:["San Marino"]},{value:"ST",label:"ST",type:"string",alternativeMatches:["Sao Tome and Principe","Sao Tome","Principe"]},{value:"SA",label:"SA",type:"string",alternativeMatches:["Saudi Arabia"]},{value:"SN",label:"SN",type:"string",alternativeMatches:["Senegal"]},{value:"RS",label:"RS",type:"string",alternativeMatches:["Serbia"]},{value:"SC",label:"SC",type:"string",alternativeMatches:["Seychelles"]},{value:"SL",label:"SL",type:"string",alternativeMatches:["Sierra Leone"]},{value:"SG",label:"SG",type:"string",alternativeMatches:["Singapore"]},{value:"SX",label:"SX",type:"string",alternativeMatches:["Sint Maarten"]},{value:"SK",label:"SK",type:"string",alternativeMatches:["Slovakia"]},{value:"SI",label:"SI",type:"string",alternativeMatches:["Slovenia"]},{value:"SB",label:"SB",type:"string",alternativeMatches:["Solomon Islands"]},{value:"SO",label:"SO",type:"string",alternativeMatches:["Somalia"]},{value:"ZA",label:"ZA",type:"string",alternativeMatches:["South Africa"]},{value:"GS",label:"GS",type:"string",alternativeMatches:["South Georgia and the South Sandwich Islands","South Georgia","South Sandwich Islands"]},{value:"SS",label:"SS",type:"string",alternativeMatches:["South Sudan"]},{value:"ES",label:"ES",type:"string",alternativeMatches:["Spain"]},{value:"LK",label:"LK",type:"string",alternativeMatches:["Sri Lanka"]},{value:"SD",label:"SD",type:"string",alternativeMatches:["Sudan"]},{value:"SR",label:"SR",type:"string",alternativeMatches:["Suriname"]},{value:"SJ",label:"SJ",type:"string",alternativeMatches:["Svalbard and Jan Mayen","Svalbard","Jan Mayen"]},{value:"SZ",label:"SZ",type:"string",alternativeMatches:["Swaziland","Eswatini"]},{value:"SE",label:"SE",type:"string",alternativeMatches:["Sweden"]},{value:"CH",label:"CH",type:"string",alternativeMatches:["Switzerland"]},{value:"SY",label:"SY",type:"string",alternativeMatches:["Syrian Arab Republic"]},{value:"TW",label:"TW",type:"string",alternativeMatches:["Taiwan, Province of China"]},{value:"TJ",label:"TJ",type:"string",alternativeMatches:["Tajikistan"]},{value:"TZ",label:"TZ",type:"string",alternativeMatches:["Tanzania, United Republic of","Tanzania"]},{value:"TH",label:"TH",type:"string",alternativeMatches:["Thailand"]},{value:"TL",label:"TL",type:"string",alternativeMatches:["Timor-Leste"]},{value:"TG",label:"TG",type:"string",alternativeMatches:["Togo"]},{value:"TK",label:"TK",type:"string",alternativeMatches:["Tokelau"]},{value:"TO",label:"TO",type:"string",alternativeMatches:["Tonga"]},{value:"TT",label:"TT",type:"string",alternativeMatches:["Trinidad and Tobago","Trinidad","Tobago"]},{value:"TN",label:"TN",type:"string",alternativeMatches:["Tunisia"]},{value:"TR",label:"TR",type:"string",alternativeMatches:["Turkey"]},{value:"TM",label:"TM",type:"string",alternativeMatches:["Turkmenistan"]},{value:"TC",label:"TC",type:"string",alternativeMatches:["Turks and Caicos Islands"]},{value:"TV",label:"TV",type:"string",alternativeMatches:["Tuvalu"]},{value:"UG",label:"UG",type:"string",alternativeMatches:["Uganda"]},{value:"UA",label:"UA",type:"string",alternativeMatches:["Ukraine"]},{value:"AE",label:"AE",type:"string",alternativeMatches:["United Arab Emirates","UAE"]},{value:"GB",label:"GB",type:"string",alternativeMatches:["United Kingdom"]},{value:"US",label:"US",type:"string",alternativeMatches:["United States"]},{value:"UM",label:"UM",type:"string",alternativeMatches:["United States Minor Outlying Islands"]},{value:"UY",label:"UY",type:"string",alternativeMatches:["Uruguay"]},{value:"UZ",label:"UZ",type:"string",alternativeMatches:["Uzbekistan"]},{value:"VU",label:"VU",type:"string",alternativeMatches:["Vanuatu"]},{value:"VE",label:"VE",type:"string",alternativeMatches:["Venezuela (Bolivarian Republic of)","Venezuela","Bolivarian"]},{value:"VN",label:"VN",type:"string",alternativeMatches:["Viet Nam"]},{value:"VG",label:"VG",type:"string",alternativeMatches:["Virgin Islands (British)","British"]},{value:"VI",label:"VI",type:"string",alternativeMatches:["Virgin Islands (U.S.)"]},{value:"WF",label:"WF",type:"string",alternativeMatches:["Wallis and Futuna"]},{value:"EH",label:"EH",type:"string",alternativeMatches:["Western Sahara"]},{value:"YE",label:"YE",type:"string",alternativeMatches:["Yemen"]},{value:"ZM",label:"ZM",type:"string",alternativeMatches:["Zambia"]},{value:"ZW",label:"ZW",type:"string",alternativeMatches:["Zimbabwe"]}],L=[{value:"AFG",label:"AFG",type:"string",alternativeMatches:["Afghanistan"]},{value:"ALA",label:"ALA",type:"string",alternativeMatches:["\xC5land Islands"]},{value:"ALB",label:"ALB",type:"string",alternativeMatches:["Albania"]},{value:"DZA",label:"DZA",type:"string",alternativeMatches:["Algeria"]},{value:"ASM",label:"ASM",type:"string",alternativeMatches:["American Samoa"]},{value:"AND",label:"AND",type:"string",alternativeMatches:["Andorra"]},{value:"AGO",label:"AGO",type:"string",alternativeMatches:["Angola"]},{value:"AIA",label:"AIA",type:"string",alternativeMatches:["Anguilla"]},{value:"ATA",label:"ATA",type:"string",alternativeMatches:["Antarctica"]},{value:"ATG",label:"ATG",type:"string",alternativeMatches:["Antigua and Barbuda","Antigua","Barbuda"]},{value:"ARG",label:"ARG",type:"string",alternativeMatches:["Argentina"]},{value:"ARM",label:"ARM",type:"string",alternativeMatches:["Armenia"]},{value:"ABW",label:"ABW",type:"string",alternativeMatches:["Aruba"]},{value:"AUS",label:"AUS",type:"string",alternativeMatches:["Australia"]},{value:"AUT",label:"AUT",type:"string",alternativeMatches:["Austria"]},{value:"AZE",label:"AZE",type:"string",alternativeMatches:["Azerbaijan"]},{value:"BHS",label:"BHS",type:"string",alternativeMatches:["Bahamas"]},{value:"BHR",label:"BHR",type:"string",alternativeMatches:["Bahrain"]},{value:"BGD",label:"BGD",type:"string",alternativeMatches:["Bangladesh"]},{value:"BRB",label:"BRB",type:"string",alternativeMatches:["Barbados"]},{value:"BLR",label:"BLR",type:"string",alternativeMatches:["Belarus"]},{value:"BEL",label:"BEL",type:"string",alternativeMatches:["Belgium"]},{value:"BLZ",label:"BLZ",type:"string",alternativeMatches:["Belize"]},{value:"BEN",label:"BEN",type:"string",alternativeMatches:["Benin"]},{value:"BMU",label:"BMU",type:"string",alternativeMatches:["Bermuda"]},{value:"BTN",label:"BTN",type:"string",alternativeMatches:["Bhutan"]},{value:"BOL",label:"BOL",type:"string",alternativeMatches:["Bolivia (Plurinational State of)","Bolivia"]},{value:"BES",label:"BES",type:"string",alternativeMatches:["Bonaire, Sint Eustatius and Saba"]},{value:"BIH",label:"BIH",type:"string",alternativeMatches:["Bosnia and Herzegovina"]},{value:"BWA",label:"BWA",type:"string",alternativeMatches:["Botswana"]},{value:"BVT",label:"BVT",type:"string",alternativeMatches:["Bouvet Island"]},{value:"BRA",label:"BRA",type:"string",alternativeMatches:["Brazil"]},{value:"IOT",label:"IOT",type:"string",alternativeMatches:["British Indian Ocean Territory"]},{value:"BRN",label:"BRN",type:"string",alternativeMatches:["Brunei Darussalam"]},{value:"BGR",label:"BGR",type:"string",alternativeMatches:["Bulgaria"]},{value:"BFA",label:"BFA",type:"string",alternativeMatches:["Burkina Faso"]},{value:"BDI",label:"BDI",type:"string",alternativeMatches:["Burundi"]},{value:"KHM",label:"KHM",type:"string",alternativeMatches:["Cambodia"]},{value:"CMR",label:"CMR",type:"string",alternativeMatches:["Cameroon"]},{value:"CAN",label:"CAN",type:"string",alternativeMatches:["Canada"]},{value:"CPV",label:"CPV",type:"string",alternativeMatches:["Cape Verde"]},{value:"CYM",label:"CYM",type:"string",alternativeMatches:["Cayman Islands"]},{value:"CAF",label:"CAF",type:"string",alternativeMatches:["Central African Republic"]},{value:"TCD",label:"TCD",type:"string",alternativeMatches:["Chad"]},{value:"CHL",label:"CHL",type:"string",alternativeMatches:["Chile"]},{value:"CHN",label:"CHN",type:"string",alternativeMatches:["China"]},{value:"CXR",label:"CXR",type:"string",alternativeMatches:["Christmas Island"]},{value:"CCK",label:"CCK",type:"string",alternativeMatches:["Cocos (Keeling) Islands"]},{value:"COL",label:"COL",type:"string",alternativeMatches:["Colombia"]},{value:"COM",label:"COM",type:"string",alternativeMatches:["Comoros"]},{value:"COG",label:"COG",type:"string",alternativeMatches:["Congo"]},{value:"COD",label:"COD",type:"string",alternativeMatches:["Congo (the Democratic Republic of the)"]},{value:"COK",label:"COK",type:"string",alternativeMatches:["Cook Islands"]},{value:"CRI",label:"CRI",type:"string",alternativeMatches:["Costa Rica"]},{value:"CIV",label:"CIV",type:"string",alternativeMatches:["C\xF4te d'Ivoire"]},{value:"HRV",label:"HRV",type:"string",alternativeMatches:["Croatia"]},{value:"CUB",label:"CUB",type:"string",alternativeMatches:["Cuba"]},{value:"CUW",label:"CUW",type:"string",alternativeMatches:["Cura\xE7ao"]},{value:"CYP",label:"CYP",type:"string",alternativeMatches:["Cyprus"]},{value:"CZE",label:"CZE",type:"string",alternativeMatches:["Czechia","Czech Republic"]},{value:"DNK",label:"DNK",type:"string",alternativeMatches:["Denmark"]},{value:"DJI",label:"DJI",type:"string",alternativeMatches:["Djibouti"]},{value:"DMA",label:"DMA",type:"string",alternativeMatches:["Dominica"]},{value:"DOM",label:"DOM",type:"string",alternativeMatches:["Dominican Republic"]},{value:"ECU",label:"ECU",type:"string",alternativeMatches:["Ecuador"]},{value:"EGY",label:"EGY",type:"string",alternativeMatches:["Egypt"]},{value:"SLV",label:"SLV",type:"string",alternativeMatches:["El Salvador"]},{value:"GNQ",label:"GNQ",type:"string",alternativeMatches:["Equatorial Guinea"]},{value:"ERI",label:"ERI",type:"string",alternativeMatches:["Eritrea"]},{value:"EST",label:"EST",type:"string",alternativeMatches:["Estonia"]},{value:"ETH",label:"ETH",type:"string",alternativeMatches:["Ethiopia"]},{value:"FLK",label:"FLK",type:"string",alternativeMatches:["Falkland Islands (Malvinas)"]},{value:"FRO",label:"FRO",type:"string",alternativeMatches:["Faroe Islands"]},{value:"FJI",label:"FJI",type:"string",alternativeMatches:["Fiji"]},{value:"FIN",label:"FIN",type:"string",alternativeMatches:["Finland"]},{value:"FRA",label:"FRA",type:"string",alternativeMatches:["France"]},{value:"GUF",label:"GUF",type:"string",alternativeMatches:["French Guiana"]},{value:"PYF",label:"PYF",type:"string",alternativeMatches:["French Polynesia"]},{value:"ATF",label:"ATF",type:"string",alternativeMatches:["French Southern Territories"]},{value:"GAB",label:"GAB",type:"string",alternativeMatches:["Gabon"]},{value:"GMB",label:"GMB",type:"string",alternativeMatches:["Gambia"]},{value:"GEO",label:"GEO",type:"string",alternativeMatches:["Georgia"]},{value:"DEU",label:"DEU",type:"string",alternativeMatches:["Germany"]},{value:"GHA",label:"GHA",type:"string",alternativeMatches:["Ghana"]},{value:"GIB",label:"GIB",type:"string",alternativeMatches:["Gibraltar"]},{value:"GRC",label:"GRC",type:"string",alternativeMatches:["Greece"]},{value:"GRL",label:"GRL",type:"string",alternativeMatches:["Greenland"]},{value:"GRD",label:"GRD",type:"string",alternativeMatches:["Grenada"]},{value:"GLP",label:"GLP",type:"string",alternativeMatches:["Guadeloupe"]},{value:"GUM",label:"GUM",type:"string",alternativeMatches:["Guam"]},{value:"GTM",label:"GTM",type:"string",alternativeMatches:["Guatemala"]},{value:"GGY",label:"GGY",type:"string",alternativeMatches:["Guernsey"]},{value:"GIN",label:"GIN",type:"string",alternativeMatches:["Guinea"]},{value:"GNB",label:"GNB",type:"string",alternativeMatches:["Guinea-Bissau"]},{value:"GUY",label:"GUY",type:"string",alternativeMatches:["Guyana"]},{value:"HTI",label:"HTI",type:"string",alternativeMatches:["Haiti"]},{value:"HMD",label:"HMD",type:"string",alternativeMatches:["Heard Island and McDonald Islands","Heard Island","McDonald Islands"]},{value:"VAT",label:"VAT",type:"string",alternativeMatches:["Holy See (Vatican City State)"]},{value:"HND",label:"HND",type:"string",alternativeMatches:["Honduras"]},{value:"HKG",label:"HKG",type:"string",alternativeMatches:["Hong Kong"]},{value:"HUN",label:"HUN",type:"string",alternativeMatches:["Hungary"]},{value:"ISL",label:"ISL",type:"string",alternativeMatches:["Iceland"]},{value:"IND",label:"IND",type:"string",alternativeMatches:["India"]},{value:"IDN",label:"IDN",type:"string",alternativeMatches:["Indonesia"]},{value:"IRN",label:"IRN",type:"string",alternativeMatches:["Iran (Islamic Republic of) ","Iran"]},{value:"IRQ",label:"IRQ",type:"string",alternativeMatches:["Iraq"]},{value:"IRL",label:"IRL",type:"string",alternativeMatches:["Ireland"]},{value:"IMN",label:"IMN",type:"string",alternativeMatches:["Isle of Man"]},{value:"ISR",label:"ISR",type:"string",alternativeMatches:["Israel"]},{value:"ITA",label:"ITA",type:"string",alternativeMatches:["Italy"]},{value:"JAM",label:"JAM",type:"string",alternativeMatches:["Jamaica"]},{value:"JPN",label:"JPN",type:"string",alternativeMatches:["Japan"]},{value:"JEY",label:"JEY",type:"string",alternativeMatches:["Jersey"]},{value:"JOR",label:"JOR",type:"string",alternativeMatches:["Jordan"]},{value:"KAZ",label:"KAZ",type:"string",alternativeMatches:["Kazakhstan"]},{value:"KEN",label:"KEN",type:"string",alternativeMatches:["Kenya"]},{value:"KIR",label:"KIR",type:"string",alternativeMatches:["Kiribati"]},{value:"PRK",label:"PRK",type:"string",alternativeMatches:["Democratic People's Republic of Korea","North Korea"]},{value:"KOR",label:"KOR",type:"string",alternativeMatches:["Korea, Republic of Korea","South Korea"]},{value:"KWT",label:"KWT",type:"string",alternativeMatches:["Kuwait"]},{value:"KGZ",label:"KGZ",type:"string",alternativeMatches:["Kyrgyzstan"]},{value:"LAO",label:"LAO",type:"string",alternativeMatches:["Lao People's Democratic Republic"]},{value:"LVA",label:"LVA",type:"string",alternativeMatches:["Latvia"]},{value:"LBN",label:"LBN",type:"string",alternativeMatches:["Lebanon"]},{value:"LSO",label:"LSO",type:"string",alternativeMatches:["Lesotho"]},{value:"LBR",label:"LBR",type:"string",alternativeMatches:["Liberia"]},{value:"LBY",label:"LBY",type:"string",alternativeMatches:["Libya"]},{value:"LIE",label:"LIE",type:"string",alternativeMatches:["Liechtenstein"]},{value:"LTU",label:"LTU",type:"string",alternativeMatches:["Lithuania"]},{value:"LUX",label:"LUX",type:"string",alternativeMatches:["Luxembourg"]},{value:"MAC",label:"MAC",type:"string",alternativeMatches:["Macao"]},{value:"MKD",label:"MKD",type:"string",alternativeMatches:["Republic of North Macedonia","North Macedonia"]},{value:"MDG",label:"MDG",type:"string",alternativeMatches:["Madagascar"]},{value:"MWI",label:"MWI",type:"string",alternativeMatches:["Malawi"]},{value:"MYS",label:"MYS",type:"string",alternativeMatches:["Malaysia"]},{value:"MDV",label:"MDV",type:"string",alternativeMatches:["Maldives"]},{value:"MLI",label:"MLI",type:"string",alternativeMatches:["Mali"]},{value:"MLT",label:"MLT",type:"string",alternativeMatches:["Malta"]},{value:"MHL",label:"MHL",type:"string",alternativeMatches:["Marshall Islands"]},{value:"MTQ",label:"MTQ",type:"string",alternativeMatches:["Martinique"]},{value:"MRT",label:"MRT",type:"string",alternativeMatches:["Mauritania"]},{value:"MUS",label:"MUS",type:"string",alternativeMatches:["Mauritius"]},{value:"MYT",label:"MYT",type:"string",alternativeMatches:["Mayotte"]},{value:"MEX",label:"MEX",type:"string",alternativeMatches:["Mexico"]},{value:"FSM",label:"FSM",type:"string",alternativeMatches:["Micronesia (Federated States of)"]},{value:"MDA",label:"MDA",type:"string",alternativeMatches:["Moldova (the Republic of)"]},{value:"MCO",label:"MCO",type:"string",alternativeMatches:["Monaco"]},{value:"MNG",label:"MNG",type:"string",alternativeMatches:["Mongolia"]},{value:"MNE",label:"MNE",type:"string",alternativeMatches:["Montenegro"]},{value:"MSR",label:"MSR",type:"string",alternativeMatches:["Montserrat"]},{value:"MAR",label:"MAR",type:"string",alternativeMatches:["Morocco"]},{value:"MOZ",label:"MOZ",type:"string",alternativeMatches:["Mozambique"]},{value:"MMR",label:"MMR",type:"string",alternativeMatches:["Myanmar"]},{value:"NAM",label:"NAM",type:"string",alternativeMatches:["Namibia"]},{value:"NRU",label:"NRU",type:"string",alternativeMatches:["Nauru"]},{value:"NPL",label:"NPL",type:"string",alternativeMatches:["Nepal"]},{value:"NLD",label:"NLD",type:"string",alternativeMatches:["Netherlands"]},{value:"NCL",label:"NCL",type:"string",alternativeMatches:["New Caledonia"]},{value:"NZL",label:"NZL",type:"string",alternativeMatches:["New Zealand"]},{value:"NIC",label:"NIC",type:"string",alternativeMatches:["Nicaragua"]},{value:"NER",label:"NER",type:"string",alternativeMatches:["Niger"]},{value:"NGA",label:"NGA",type:"string",alternativeMatches:["Nigeria"]},{value:"NIU",label:"NIU",type:"string",alternativeMatches:["Niue"]},{value:"NFK",label:"NFK",type:"string",alternativeMatches:["Norfolk Island"]},{value:"MNP",label:"MNP",type:"string",alternativeMatches:["Northern Mariana Islands"]},{value:"NOR",label:"NOR",type:"string",alternativeMatches:["Norway"]},{value:"OMN",label:"OMN",type:"string",alternativeMatches:["Oman"]},{value:"PAK",label:"PAK",type:"string",alternativeMatches:["Pakistan"]},{value:"PLW",label:"PLW",type:"string",alternativeMatches:["Palau"]},{value:"PSE",label:"PSE",type:"string",alternativeMatches:["Palestinian Territory, Occupied"]},{value:"PAN",label:"PAN",type:"string",alternativeMatches:["Panama"]},{value:"PNG",label:"PNG",type:"string",alternativeMatches:["Papua New Guinea"]},{value:"PRY",label:"PRY",type:"string",alternativeMatches:["Paraguay"]},{value:"PER",label:"PER",type:"string",alternativeMatches:["Peru"]},{value:"PHL",label:"PHL",type:"string",alternativeMatches:["Philippines"]},{value:"PCN",label:"PCN",type:"string",alternativeMatches:["Pitcairn"]},{value:"POL",label:"POL",type:"string",alternativeMatches:["Poland"]},{value:"PRT",label:"PRT",type:"string",alternativeMatches:["Portugal"]},{value:"PRI",label:"PRI",type:"string",alternativeMatches:["Puerto Rico"]},{value:"QAT",label:"QAT",type:"string",alternativeMatches:["Qatar"]},{value:"REU",label:"REU",type:"string",alternativeMatches:["R\xE9union"]},{value:"ROU",label:"ROU",type:"string",alternativeMatches:["Romania"]},{value:"RUS",label:"RUS",type:"string",alternativeMatches:["Russian Federation"]},{value:"RWA",label:"RWA",type:"string",alternativeMatches:["Rwanda"]},{value:"BLM",label:"BLM",type:"string",alternativeMatches:["Saint Barth\xE9lemy"]},{value:"SHN",label:"SHN",type:"string",alternativeMatches:["Saint Helena, Ascension and Tristan da Cunha"]},{value:"KNA",label:"KNA",type:"string",alternativeMatches:["Saint Kitts and Nevis","Saint Kitts","Nevis"]},{value:"LCA",label:"LCA",type:"string",alternativeMatches:["Saint Lucia"]},{value:"MAF",label:"MAF",type:"string",alternativeMatches:["Saint Martin (French part)"]},{value:"SPM",label:"SPM",type:"string",alternativeMatches:["Saint Pierre and Miquelon","Saint Pierre","Miquelon"]},{value:"VCT",label:"VCT",type:"string",alternativeMatches:["Saint Vincent and the Grenadines","Saint Vincent","Grenadines"]},{value:"WSM",label:"WSM",type:"string",alternativeMatches:["Samoa"]},{value:"SMR",label:"SMR",type:"string",alternativeMatches:["San Marino"]},{value:"STP",label:"STP",type:"string",alternativeMatches:["Sao Tome and Principe","Sao Tome","Principe"]},{value:"SAU",label:"SAU",type:"string",alternativeMatches:["Saudi Arabia"]},{value:"SEN",label:"SEN",type:"string",alternativeMatches:["Senegal"]},{value:"SRB",label:"SRB",type:"string",alternativeMatches:["Serbia"]},{value:"SYC",label:"SYC",type:"string",alternativeMatches:["Seychelles"]},{value:"SLE",label:"SLE",type:"string",alternativeMatches:["Sierra Leone"]},{value:"SGP",label:"SGP",type:"string",alternativeMatches:["Singapore"]},{value:"SXM",label:"SXM",type:"string",alternativeMatches:["Sint Maarten (Dutch part)"]},{value:"SVK",label:"SVK",type:"string",alternativeMatches:["Slovakia"]},{value:"SVN",label:"SVN",type:"string",alternativeMatches:["Slovenia"]},{value:"SLB",label:"SLB",type:"string",alternativeMatches:["Solomon Islands"]},{value:"SOM",label:"SOM",type:"string",alternativeMatches:["Somalia"]},{value:"ZAF",label:"ZAF",type:"string",alternativeMatches:["South Africa"]},{value:"SGS",label:"SGS",type:"string",alternativeMatches:["South Georgia and the South Sandwich Islands","South Georgia","South Sandwich Islands"]},{value:"SSD",label:"SSD",type:"string",alternativeMatches:["South Sudan"]},{value:"ESP",label:"ESP",type:"string",alternativeMatches:["Spain"]},{value:"LKA",label:"LKA",type:"string",alternativeMatches:["Sri Lanka"]},{value:"SDN",label:"SDN",type:"string",alternativeMatches:["Sudan"]},{value:"SUR",label:"SUR",type:"string",alternativeMatches:["Suriname"]},{value:"SJM",label:"SJM",type:"string",alternativeMatches:["Svalbard and Jan Mayen","Svalbard","Jan Mayen"]},{value:"SWZ",label:"SWZ",type:"string",alternativeMatches:["Swaziland","Eswatini"]},{value:"SWE",label:"SWE",type:"string",alternativeMatches:["Sweden"]},{value:"CHE",label:"CHE",type:"string",alternativeMatches:["Switzerland"]},{value:"SYR",label:"SYR",type:"string",alternativeMatches:["Syrian Arab Republic"]},{value:"TWN",label:"TWN",type:"string",alternativeMatches:["Taiwan, Province of China"]},{value:"TJK",label:"TJK",type:"string",alternativeMatches:["Tajikistan"]},{value:"TZA",label:"TZA",type:"string",alternativeMatches:["Tanzania, United Republic of"]},{value:"THA",label:"THA",type:"string",alternativeMatches:["Thailand"]},{value:"TLS",label:"TLS",type:"string",alternativeMatches:["Timor-Leste"]},{value:"TGO",label:"TGO",type:"string",alternativeMatches:["Togo"]},{value:"TKL",label:"TKL",type:"string",alternativeMatches:["Tokelau"]},{value:"TON",label:"TON",type:"string",alternativeMatches:["Tonga"]},{value:"TTO",label:"TTO",type:"string",alternativeMatches:["Trinidad and Tobago","Trinidad","Tobago"]},{value:"TUN",label:"TUN",type:"string",alternativeMatches:["Tunisia"]},{value:"TUR",label:"TUR",type:"string",alternativeMatches:["Turkey"]},{value:"TKM",label:"TKM",type:"string",alternativeMatches:["Turkmenistan"]},{value:"TCA",label:"TCA",type:"string",alternativeMatches:["Turks and Caicos Islands"]},{value:"TUV",label:"TUV",type:"string",alternativeMatches:["Tuvalu"]},{value:"UGA",label:"UGA",type:"string",alternativeMatches:["Uganda"]},{value:"UKR",label:"UKR",type:"string",alternativeMatches:["Ukraine"]},{value:"ARE",label:"ARE",type:"string",alternativeMatches:["United Arab Emirates"]},{value:"GBR",label:"GBR",type:"string",alternativeMatches:["United Kingdom"]},{value:"USA",label:"USA",type:"string",alternativeMatches:["United States"]},{value:"UMI",label:"UMI",type:"string",alternativeMatches:["United States Minor Outlying Islands"]},{value:"URY",label:"URY",type:"string",alternativeMatches:["Uruguay"]},{value:"UZB",label:"UZB",type:"string",alternativeMatches:["Uzbekistan"]},{value:"VUT",label:"VUT",type:"string",alternativeMatches:["Vanuatu"]},{value:"VEN",label:"VEN",type:"string",alternativeMatches:["Venezuela (Bolivarian Republic of)","Venezuela","Bolivarian"]},{value:"VNM",label:"VNM",type:"string",alternativeMatches:["Viet Nam"]},{value:"VGB",label:"VGB",type:"string",alternativeMatches:["Virgin Islands (British)","British"]},{value:"VIR",label:"VIR",type:"string",alternativeMatches:["Virgin Islands (U.S.)"]},{value:"WLF",label:"WLF",type:"string",alternativeMatches:["Wallis and Futuna"]},{value:"ESH",label:"ESH",type:"string",alternativeMatches:["Western Sahara"]},{value:"YEM",label:"YEM",type:"string",alternativeMatches:["Yemen"]},{value:"ZMB",label:"ZMB",type:"string",alternativeMatches:["Zambia"]},{value:"ZWE",label:"ZWE",type:"string",alternativeMatches:["Zimbabwe"]}];import{isArray as Y}from"lodash";var R=class t{constructor(a,e){this.dataModels=[];this.mapValidation=a=>{switch(a){case"regex":return"REGEX";case"required":return"REQUIRED";case"required_with":return"REQUIRED_WITH";case"required_with_all":return"REQUIRED_WITH_ALL";case"required_with_all_values":return"REQUIRED_WITH_ALL_VALUES";case"required_with_values":return"REQUIRED_WITH_VALUES";case"required_without":return"REQUIRED_WITHOUT";case"required_without_all":return"REQUIRED_WITHOUT_ALL";case"required_without_all_values":return"REQUIRED_WITHOUT_ALL_VALUES";case"required_without_values":return"REQUIRED_WITHOUT_VALUES";case"unique":return"UNIQUE";case"compare":return"COMPARE";default:throw new Error(`validation "${a}" isn't in available options`)}};this.getValidator=(a,e)=>new E({validation:this.mapValidation(a.validate),regex:a.regex??void 0,fields:a.columnValues?.map(l=>({key:l.key,value:l.value??[],type:this.findDataModelTypeByKey(l.key,e),label:this.findDataModelLabelByKey(l.key,e)}))??[],errorMessage:a.errorMessage,operator:a.operator,value:a.value});this.findDataModel=a=>this.columns.find(e=>e.key===a);this.findDataModelTypeByKey=(a,e)=>{let l=this.findDataModel(a);if(l)return t.mapDataModelType({columnType:l.columnType});if(e.checkValidation)throw new Error(`validation key "${a}" isn't found.`);return"string"};this.findDataModelLabelByKey=(a,e)=>{let l=this.findDataModel(a);if(l)return l.label;if(e.checkValidation)throw new Error(`validation key "${a}" isn't found.`);return""};this.validatorParser=a=>{let e=a.validate.toUpperCase(),l=a.columnValues??{},r=a.columns??[];return e==="REQUIRED_WITH_VALUES"||e==="REQUIRED_WITH_ALL_VALUES"||e==="REQUIRED_WITHOUT_VALUES"||e==="REQUIRED_WITHOUT_ALL_VALUES"?Object.keys(l).map(n=>({key:n,value:Y(l[n])?l[n]:[l[n]]})):e==="REQUIRED_WITH"||e==="REQUIRED_WITHOUT"||e==="REQUIRED_WITHOUT_ALL"||e==="REQUIRED_WITH_ALL"?r.map(n=>({key:n})):[]};this.setDataModels=a=>{this.dataModels=this.columns.map(e=>{let l=t.mapDataModelType({columnType:e.columnType});e.numberFormat===void 0&&l==="currency_usd"&&(e.numberFormat="us");let r=e.optionMappingConfiguration?.processingMode??"browser",n=e.optionMappingConfiguration?.layers&&e.optionMappingConfiguration?.layers.length>0?e.optionMappingConfiguration?.layers:["smart","historic","fuzzy","exact"];a.enableNodeProcessing||(r="browser",n=n.filter(i=>i!=="historic"&&i!=="smart")),a.enableReuseMapping||(n=n.filter(i=>i!=="historic"));let v={layers:n,processingMode:r,threshold:e.optionMappingConfiguration?.threshold??.6},s={description:e.description??"",example:e.example??"",key:e.key,label:e.label,type:l,isRequired:!1,outputFormat:e.outputFormat??"",inputFormat:l==="date"?N(e.inputFormat):null,validators:e.validations?.map(i=>this.getValidator({...i,columnValues:this.validatorParser(i)},a)),mappingValidation:e.mappingValidation,alternativeMatches:e.alternativeMatches,columnSize:1,columnWidth:e.columnWidth,numberFormat:e.numberFormat||"eu",hidden:e.hidden,disabled:e.disabled,optionMappingConfiguration:v,excludeFromAutoMatching:e.excludeFromAutoMatching};return p.isTypeCategory(l)?new B({...s,type:l,options:t.createDropdownOptions(e),isMultiSelection:e.isMultiSelect??!1,allowCustomOptions:e.allowCustomOptions,allowedCustomOptionTypes:e.allowedCustomOptionTypes,preserveUnmappedOptions:t.sanitizePreserveUnmappedOptions(e.preserveUnmappedOptions)}):new p(s)})};this.getDataModels=()=>this.dataModels;this.columns=a,this.setDataModels(e)}static{this.mapDataModelType=({columnType:a})=>{switch(a){case"boolean":return"boolean";case"int":return"int";case"float":return"float";case"category":return"single-select";case"date":return"date";case"date_dmy":return"date_dmy";case"date_mdy":return"date_mdy";case"date_iso":return"date_iso";case"datetime":return"datetime";case"time_hms":return"time_hms";case"time_hms_24":return"time_hms_24";case"time_hm":return"time_hm";case"time_hm_24":return"time_hm_24";case"email":return"email";case"url_www":return"url_www";case"url_https":return"url_https";case"url":return"url";case"phone":return"phone";case"zip_code_de":return"zip_code_de";case"percentage":return"percentage";case"country_code_alpha_2":return"country_code_alpha_2";case"country_code_alpha_3":return"country_code_alpha_3";case"currency_code":return"currency_code";case"currency_eur":return"currency_eur";case"currency_usd":return"currency_usd";case"bic":return"bic";case"vat_eu":return"vat_eu";case"gtin":return"gtin";case"iban":return"iban";default:return"string"}}}static{this.mapColumnType=({dataType:a})=>{switch(a){case"boolean":return"boolean";case"int":return"int";case"float":return"float";case"single-select":return"category";case"date":return"date";case"date_dmy":return"date_dmy";case"date_mdy":return"date_mdy";case"date_iso":return"date_iso";case"datetime":return"datetime";case"time_hms":return"time_hms";case"time_hms_24":return"time_hms_24";case"time_hm":return"time_hm";case"time_hm_24":return"time_hm_24";case"email":return"email";case"url_www":return"url_www";case"url_https":return"url_https";case"url":return"url";case"phone":return"phone";case"zip_code_de":return"zip_code_de";case"percentage":return"percentage";case"country_code_alpha_2":return"country_code_alpha_2";case"country_code_alpha_3":return"country_code_alpha_3";case"currency_code":return"currency_code";case"currency_eur":return"currency_eur";case"currency_usd":return"currency_usd";case"bic":return"bic";case"vat_eu":return"vat_eu";case"gtin":return"gtin";case"iban":return"iban";default:return"string"}}}static{this.VALID_PRESERVE_UNMAPPED_OPTIONS=["none","optional-off","optional-on","always"]}static{this.sanitizePreserveUnmappedOptions=a=>{if(typeof a=="string"&&t.VALID_PRESERVE_UNMAPPED_OPTIONS.includes(a))return a}}static{this.createDropdownOptions=a=>a.columnType==="category"?a.dropdownOptions?.map(e=>({label:`${e.label}`,value:`${e.value}`,type:e.type,alternativeMatches:e.alternativeMatches??[],validations:e.validations??[],description:e.description??""}))??[]:a.columnType==="currency_code"?P:a.columnType==="country_code_alpha_2"?D:a.columnType==="country_code_alpha_3"?L:[]}},G=R;var Te=(t,a,e,l,r,n)=>{let v=0,s=0,i=0,u=!1,M=!1,{value:g,columns:A,isExact:K,isEmptyValues:b}=a,o=g?.trim();if(!b&&(W(o)||o.length===0))return;let H=b?t.length-1:t.length;for(let h=0;h<H;h++){let T=t[h],d=Object.keys(T);for(let y=0;y<d.length;y++){let C=A.findIndex(c=>c.key===d[y]),S=C>=0?A[C]:void 0;if(S===void 0)continue;let f=T[d[y]];if(m(f,{value:o??"",columns:[S],isExact:K,isEmptyValues:b})){v++;let c=n.findIndex(V=>V.key===S.key),I=n[c];(e.includes(c)||l.includes(h))&&s++,r.includes(c)&&i++,I.disabled&&(M=!0),p.isTypeCategory(G.mapDataModelType({columnType:I.columnType}))&&(u=!0)}}}return{counter:v,hidden:s,skip:i,matchedCategoryType:u,matchedDisabledColumn:M}};var U=t=>t==null||t===""||typeof t=="string"&&t.trim()==="";var O=t=>U(t)||Array.isArray(t)&&t.length===0,_=(t,a)=>typeof t=="string"?a?t.toLowerCase():t:typeof t=="number"?Number.isNaN(t)?{__nuvoNum:"NaN"}:t===1/0?{__nuvoNum:"+Infinity"}:t===-1/0?{__nuvoNum:"-Infinity"}:t:Array.isArray(t)?t.map(e=>_(e,a)):t,w=(t,a,e)=>JSON.stringify(a.map(l=>_(t[l]??null,e))),Z=({rows:t,columnKeys:a,ignoreCase:e=!1,ignoreBlanks:l=!1,excludeFromRemoval:r=[]})=>{if(a.length===0)return[];let n=new Set(r),v=new Set,s=[];for(let i=0;i<t.length;i++){if(n.has(i))continue;let u=t[i];if(l&&a.some(g=>O(u[g])))continue;let M=w(u,a,e);v.has(M)?s.push(i):v.add(M)}return s},k=({rows:t,columnKeys:a,excludeFromRemoval:e=[]})=>{if(a.length===0)return[];let l=new Set(e),r=[];for(let n=0;n<t.length;n++){if(l.has(n))continue;let v=t[n];a.every(s=>O(v[s]))&&r.push(n)}return r},Ee=t=>t.mode==="duplicate"?Z(t):k(t);export{P as a,D as b,L as c,G as d,Te as e,U as f,O as g,Ee as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as he,i as re,j as S,r as U}from"./chunk-POKDA5JR.js";import{F as Q,G as ee,H as k,J as te,K as J,L as K,b as pe,c as ce,d as y,k as fe,l as p,m as x,n as H,u as ge,v as Se,w as $,x as De}from"./chunk-OVVPTSKA.js";import{b as D}from"./chunk-REPANPD5.js";import{isEmpty as ze,uniq as Xe}from"lodash";var Ce=0,oe=class{constructor({sheet:e,columnKey:t,rows:r,id:n,label:a,refJoinSheetColum:s,parserDateFormat:i}){this.removed=!1;this.label="";this.dateInputFormatSamples=null;this.parsedDateSamplesByInputFormat=new Map;this.getColumnKey=()=>this.columnKey;this.getId=()=>this.id;this.getSheet=()=>this.sheet;this.getRows=()=>this.rows;this.getUniqueRows=()=>(this.uniques===void 0&&(this.uniques=Xe(this.getRows())),this.uniques);this.remove=()=>{this.removed=!0};this.unRemove=()=>{this.removed=!1};this.isRemoved=()=>this.removed;this.getType=()=>0;this.getFileName=()=>this.sheet.getSheetFileName();this.toJSON=()=>({columnKey:this.columnKey,id:this.id,rows:this.rows,type:this.getType()});this.equal=e=>this.getId()===e.getId();this.keyEqual=e=>this.columnKey===e.columnKey;this.setIndex=e=>{this.index=e};this.getIndex=()=>this.index;this.normalizeInputFormatKey=e=>{let t=typeof e=="string"?e.trim():"";return t!==""?t:null};this.dateInputFormatCacheKey=e=>this.normalizeInputFormatKey(e)??"\0auto";this.needsDateFormatParse=e=>!this.parsedDateSamplesByInputFormat.has(this.dateInputFormatCacheKey(e));this.hasParsedDateForInputFormat=e=>!this.needsDateFormatParse(e);this.getParsedDateSamplesForInputFormat=e=>this.parsedDateSamplesByInputFormat.get(this.dateInputFormatCacheKey(e));this.getDateInputFormatSamples=()=>this.dateInputFormatSamples??this.rows;this.getParserDateFormat=()=>this.parserDateFormat;this.applyDateInputFormatParse=(e,t)=>{let r=this.getDateInputFormatSamples();if(e.length!==r.length)throw new Error(`SheetColumn.applyDateInputFormatParse: parsed sample count (${e.length}) must match source sample count (${r.length}) for column "${this.columnKey}".`);this.parsedDateSamplesByInputFormat.set(this.dateInputFormatCacheKey(t),e)};this.getRefJoinSheetColum=()=>this.refJoinSheetColum;this.columnKey=t.trim(),this.sheet=e,Object.defineProperty(this,"sheet",{value:e,enumerable:!1,writable:!0,configurable:!0}),this.rows=ze(r)?[""]:r,this.dateInputFormatSamples=[...this.rows],typeof n>"u"?(Ce++,this.id=`${t}-${Ce}`):this.id=n,a&&(this.label=a),i&&(this.parserDateFormat=i),Object.defineProperty(this,"refJoinSheetColum",{value:s,enumerable:!1,writable:!0,configurable:!0})}setRows(e){this.rows=e,this.uniques=void 0}},M=oe;var ae=class extends M{constructor({sheet:t,sheetColumns:r,rows:n,id:a,columnKey:s}){super({columnKey:s,rows:n,sheet:t,id:a});this.getType=()=>1;this.getJoinedSheetColumns=()=>this.sheetColumns;this.toJSON=()=>({columnKey:this.columnKey,id:this.id,rows:this.rows,sheetColumns:this.sheetColumns.map(t=>t.toJSON()),type:this.getType()});this.sheetColumns=r}},Fe=ae;var ye=["?",",","@"];import{isNaN as qe,minBy as Ge,isString as Ze,isEqual as Qe,isEmpty as we,isNil as et}from"lodash";var se=class{constructor({sheets:e,filename:t,type:r,fileSize:n}){this.globalNumberFormat="eu";this.columnsNumberFormat=[];this.needsConfiguration=!1;this.pendingXmlConfigKey=null;this.pendingXmlConfig=null;this.sourceXml=null;this.keepSheetSelection=!1;this.addSheet=e=>{this.sheets.push(e)};this.setNeedsConfiguration=e=>{this.needsConfiguration=e};this.getNeedsConfiguration=()=>this.needsConfiguration;this.setPendingXmlConfigKey=e=>{this.pendingXmlConfigKey=e};this.getPendingXmlConfigKey=()=>this.pendingXmlConfigKey;this.setPendingXmlConfig=e=>{this.pendingXmlConfig=e};this.getPendingXmlConfig=()=>this.pendingXmlConfig;this.setSourceXml=e=>{this.sourceXml=e};this.getSourceXml=()=>this.sourceXml;this.setKeepSheetSelection=e=>{this.keepSheetSelection=e};this.getKeepSheetSelection=()=>this.keepSheetSelection;this.replaceSheets=e=>{let t=this.needsConfiguration||!!this.pendingXmlConfigKey||!!this.pendingXmlConfig||!!this.sourceXml;this.sheets=e,this.sheets.forEach(r=>{r.setSpreadSheet(this)}),this.needsConfiguration=!1,this.pendingXmlConfigKey=null,t?this.keepSheetSelection=!0:(this.pendingXmlConfig=null,this.sourceXml=null)};this.isSelected=()=>{for(let e=0;e<this.sheets.length;e++)if(this.sheets[e].isSelected())return!0;return!1};this.getSheets=()=>this.sheets;this.getSelectedSheets=()=>this.sheets.filter(e=>e.isSelected());this.getFilename=()=>this.filename;this.selectAllSheet=e=>this.sheets.forEach(t=>{t.setSelected(e)});this.getType=()=>this.type;this.setType=e=>{this.type=e};this.getFileSize=()=>{let e=this.fileSize/1e6;return Number(parseFloat(`${e}`).toFixed(4))};this.sheets=e,this.filename=t,this.type=r,this.fileSize=n??0,this.sheets.forEach(a=>{a.setSpreadSheet(this)})}setNumberFormat(e){this.globalNumberFormat=e.global,this.columnsNumberFormat=e.columns}getNumberFormat(){return{global:this.globalNumberFormat,columns:this.columnsNumberFormat}}},Ie=se;var je={dmy:"D/M/YYYY",us:"M/D/YY",de:"DD.MM.YYYY"},xe=(o,e)=>o?Se(o,$(e)):void 0,Te=o=>{let e=$(o);return e==="os"?ge():je[e]},$t=({data:o,excelDateCells:e,columnDateFormats:t,maxRow:r=50,maxCol:n=300})=>{let a=Math.min(o.length,r),s=o.slice(0,a).map(i=>i.slice(0,n));return De(s,e,i=>$(t?.[i]))};var be=0,ie=class{constructor({data:e,name:t,isNotSetColumn:r,id:n,columnDateFormats:a,excelDateCells:s}){this.selected=!1;this.isManualSelectHeader=!1;this.columns=[];this.columnsInitialized=!1;this.headerRowIndex=0;this.transposed=!1;this.headerRowIndexes=[];this.addedColumns=[];this.usedSourceCells=new Set;this.mergedHeadersActive=!1;this.mergedRowsBackup=null;this.availableRows=null;this.spreadSheet=new Ie({filename:"",sheets:[],type:"xlsx",fileSize:0});this.getId=()=>this.id;this.setSpreadSheet=e=>{this.spreadSheet=e};this.getSpreadSheet=()=>this.spreadSheet;this.setSelected=e=>{this.selected=e};this.isSelected=()=>this.selected;this.setHeaderRowIndex=e=>{this.headerRowIndex=e,this.columnsInitialized=!1,this.mergedHeadersActive||(this.headerRowIndexes=[e])};this.setTransposed=e=>{this.transposed=e};this.getTransposed=()=>this.transposed;this.setHeaderRowIndexes=e=>{this.headerRowIndexes=[...e]};this.getHeaderRowIndexes=()=>this.headerRowIndexes.length>0?this.headerRowIndexes:[this.headerRowIndex];this.addAddedColumn=e=>{if(this.addedColumns.push(e),e.sourceCell){let n=`${e.sourceCell.row},${e.sourceCell.col}`;this.usedSourceCells.add(n)}let t=this.data[this.headerRowIndex],r=this.data.length>0?Math.max(...this.data.map(n=>n.length)):0;t&&t.push(e.columnName);for(let n=0;n<this.data.length;n++)if(n!==this.headerRowIndex){for(;this.data[n].length<r;)this.data[n].push("");n<this.headerRowIndex?this.data[n].push(""):this.data[n].push(e.value)}this.setColumns()};this.removeAddedColumn=e=>{let r=(this.data[this.headerRowIndex]?.length||0)-this.addedColumns.length,n=e-r;if(n<0||n>=this.addedColumns.length)return;let a=this.addedColumns[n];if(a?.sourceCell){let s=`${a.sourceCell.row},${a.sourceCell.col}`;this.usedSourceCells.delete(s)}for(let s=0;s<this.data.length;s++)this.data[s].splice(e,1);this.addedColumns.splice(n,1),this.setColumns()};this.removeColumnFromData=e=>{if(!(e<0)){for(let t=0;t<this.data.length;t++)this.data[t].length>e&&this.data[t].splice(e,1);this.columnDateFormats=void 0,this.excelDateCells=void 0}};this.clearAddedColumns=()=>{if(this.addedColumns.length>0){let t=(this.data[this.headerRowIndex]?.length||0)-this.addedColumns.length;for(let r=this.addedColumns.length-1;r>=0;r--){let n=t+r;for(let a=0;a<this.data.length;a++)this.data[a].length>n&&this.data[a].splice(n,1)}}this.addedColumns=[],this.usedSourceCells.clear(),this.setColumns()};this.isSourceCellUsed=(e,t)=>{let r=`${e},${t}`;return this.usedSourceCells.has(r)};this.getAddedColumnBySourceCell=(e,t)=>this.addedColumns.find(r=>r.sourceCell&&r.sourceCell.row===e&&r.sourceCell.col===t);this.getAddedColumns=()=>this.addedColumns;this.setMergedHeadersActive=e=>{this.mergedHeadersActive=e};this.isMergedHeadersActive=()=>this.mergedHeadersActive;this.setMergedRowsBackup=e=>{this.mergedRowsBackup=e};this.getMergedRowsBackup=()=>this.mergedRowsBackup;this.setAvailableRows=e=>{this.availableRows=e};this.getAvailableRows=()=>this.availableRows;this.isLoneWhitelistCharacter=e=>{let t=e.toString()?.trim()??"";return ye.some(r=>t===r)};this.isSignificantCell=e=>!we(e)&&!this.isLoneWhitelistCharacter(e);this.collapseAdjacentDuplicates=e=>e.filter((t,r)=>r===0||`${t}`!=`${e[r-1]}`);this.getSignificantCells=e=>{let t=(e??[]).filter(this.isSignificantCell);return this.collapseAdjacentDuplicates(t)};this.getDataTransform=()=>this.data.map((e,t)=>({data:e,index:t,length:this.getSignificantCells(e).length}));this.getMaxLengthColumns=()=>this.getDataTransform().reduce((t,r)=>Math.max(t,r.length),0);this.isHeaderLikeCell=e=>!he.includes(Ze(e)?e.toLowerCase():e)&&qe(Number(e));this.countHeaderLikeCells=e=>this.getSignificantCells(e).filter(this.isHeaderLikeCell).length;this.setHeaderByAutoDetection=()=>{let t=this.getMaxLengthColumns(),r=this.getDataTransform().slice(0,50).filter(a=>a.length===t&&this.countHeaderLikeCells(a.data)===t),n=r.length===1?r[0].index:Ge(r,a=>a.length)?.index??0;this.setHeaderRowIndex(n)};this.getHeaderRowIndex=()=>this.headerRowIndex;this.getHeaderRow=()=>this.data[this.headerRowIndex]?.filter(e=>!!e);this.getColumns=()=>(this.ensureColumnsBuilt(),this.columns.filter(e=>!e.isRemoved()));this.getSortedColumns=()=>[...this.getColumns()].sort((e,t)=>D(e.getColumnKey())<D(t.getColumnKey())?-1:D(e.getColumnKey())>D(t.getColumnKey())?1:0);this.getColumnsWithRemoved=()=>(this.ensureColumnsBuilt(),this.columns.filter(e=>e.getType()!==1));this.getColumn=(e,t)=>(this.ensureColumnsBuilt(),this.columns.find(r=>t?D(r.getColumnKey())===D(`${e}`):r.getColumnKey()===e));this.getColumnsByKey=(e,t)=>(this.ensureColumnsBuilt(),this.columns.filter(r=>t?D(r.getColumnKey())===D(`${e}`):r.getColumnKey()===e));this.getValues=()=>{let e=this.data.filter((r,n)=>n>this.headerRowIndex);if(we(e))return[[]];let t=[];for(let r=0;r<e.length;r++){let n=[];for(let a=0;a<this.data[this.headerRowIndex].length;a++)et(this.data[this.headerRowIndex][a])||n.push(this.parseValue(e[r][a]));t.push(n)}return t};this.getData=()=>this.data;this.getExcelDateCells=()=>this.excelDateCells;this.getColumnDateFormats=()=>this.columnDateFormats;this.getName=()=>this.name;this.getDisplayName=({t:e})=>{if(this.getName()?.length>0)return this.getName();switch(this.spreadSheet.getType()){case"json":return`${e("txt_default_sheet_prefix_name")} 1`;case"csv":return`${e("txt_default_sheet_prefix_name")} 1`;default:return""}};this.getSheetFileName=()=>`${this.spreadSheet.getFilename()}`;this.getIsManualSelectHeader=()=>this.isManualSelectHeader;this.setIsManualSelectHeader=()=>{this.isManualSelectHeader=!0};this.clearIsManualSelectHeader=()=>{this.isManualSelectHeader=!1};this.addColumn=e=>{this.ensureColumnsBuilt(),this.columns.push(new M({columnKey:`${e}`,sheet:this,rows:this.getRowsByColumnIndex(this.getColumnIndex(e))}))};this.removeColumn=e=>{this.ensureColumnsBuilt(),this.columns.find(t=>t.getColumnKey()===e)?.remove()};this.removeColumnByIndex=e=>{this.ensureColumnsBuilt(),this.columns.find((t,r)=>r===e)?.remove()};this.setData=e=>{this.data=e,this.columnDateFormats=void 0,this.excelDateCells=void 0};this.toJSON=()=>({name:this.name,id:this.id,type:this.getType(),values:this.getValues(),headerRow:this.getHeaderRow()});this.equal=e=>this.id===e.getId();this.getType=()=>0;this.getRowsByColumnIndex=e=>{if(e===-1)return[];let t=[],r=this.columnDateFormats?.[e];for(let n=0;n<this.data.length;n++){let a=this.data[n];if(n>this.headerRowIndex){let s=a[e]??"",i=xe(this.excelDateCells?.[`${n},${e}`],r);t.push(i??this.parseValue(s))}}return t};this.getExcelDisplayInputFormat=e=>{if(!this.excelDateCells)return;let t=!1;for(let r=this.headerRowIndex+1;r<this.data.length;r++)if((this.data[r]?.[e]??"")!==""){if(!this.excelDateCells[`${r},${e}`])return;t=!0}return t?Te(this.columnDateFormats?.[e]):void 0};this.ensureColumnsBuilt=()=>{this.columnsInitialized||this.setColumns()};this.setColumns=()=>{let e=this.data[this.headerRowIndex];if(e){let t=[];for(let r=0;r<e.length;++r){let n=e[r];n&&t.push(new M({columnKey:`${n}`,sheet:this,rows:this.getRowsByColumnIndex(r),parserDateFormat:this.columnDateFormats?.[r]??this.getExcelDisplayInputFormat(r)}))}this.columns=t}else this.columns=[];this.columnsInitialized=!0};this.getColumnIndex=e=>this.data[this.headerRowIndex].findIndex(n=>Qe(`${n}`,`${e}`));this.parseValue=e=>typeof e=="string"?e.trim():e;this.data=e,this.name=t,this.columnDateFormats=a,this.excelDateCells=s,typeof n>"u"?(be++,this.id=`${t}-${be}`):this.id=n,this.columnsInitialized=!!r}},Re=ie;var le=class extends Re{constructor({joinedData:t,sheets:r,mappings:n,mappingIndexes:a}){super({data:t.data,name:"join-sheet",isNotSetColumn:!0});this.sheets=[];this.joinHistory=[];this.findRefJoinSheetColumn=t=>{let r=this.sheets.length===2?this.sheets[0]:this,n=this.sheets[this.sheets.length-1];if(t<r.getColumns().length)return r.getColumns()[t];let a=t-r.getColumns().length;return n.getColumns().filter((s,i)=>this.joinHistory[this.joinHistory.length-1].mappingIndexes.every(l=>l.target!==i))[a]};this.setJoinColumns=(t,r)=>{let n=this.data[this.headerRowIndex];if(!n){this.columns=[];return}let a=[];for(let s=0;s<n.length;++s){let i=n[s],l=r.findIndex(u=>u.source===s),d=this.columns[s]&&this.columns[s].getType()===1;if(l>=0||d){let u=t[l],m;d&&l>=0?m=[...this.columns[s].getJoinedSheetColumns(),u.target]:d?m=this.columns[s].getJoinedSheetColumns():m=[u.source.getRefJoinSheetColum()??u.source,u.target],a.push(new Fe({columnKey:`${i}`,sheetColumns:m,sheet:this,rows:this.getRowsByColumnIndex(s)}))}else{let u=this.columns[s]?this.columns[s].getRefJoinSheetColum()??this.columns[s]:this.findRefJoinSheetColumn(s);a.push(new M({columnKey:`${i}`,sheet:u.getSheet(),rows:this.getRowsByColumnIndex(s),refJoinSheetColum:u}))}}this.columns=a};this.getJoinedSheets=()=>this.sheets;this.getType=()=>1;this.joinSheet=(t,r,n,a)=>{this.setData(t.data),this.sheets.push(r),this.joinHistory.push({mappingIndexes:a,type:t.type,row:t.data.length,col:this.data[this.headerRowIndex]?.length??0}),this.setJoinColumns(n,a)};this.getJoinColumns=()=>this.columns.filter(t=>t.getType()===1);this.getJoinHistory=()=>this.joinHistory;this.headerRowIndex=0,this.joinHistory.push({mappingIndexes:a,type:t.type,row:t.data.length,col:this.data[this.headerRowIndex]?.length??0}),this.sheets=r,this.setJoinColumns(n,a)}},tr=le;var Ne=({rowA:o,rowB:e},t)=>t.every(r=>{let n=`${o[r.source]??""}`,a=`${e[r.target]??""}`;return n===a&&n!==""&&a!==""}),tt=(o,e,t)=>{let r=[],n=o.headerRow,a=e.headerRow;for(let s=0;s<n.length;++s)r.push(n[s]);for(let s=0;s<a.length;++s)t.every(i=>i.target!==s)&&r.push(a[s]);return r},sr=async(o,e)=>{let t=o.values,r=e.values,n=o.headerRow,a=e.headerRow,s=[...n,...a],i=[];i.push(s);for(let l=0;l<t.length;++l)i.push([...t[l],...r[0]]);return{data:i,type:"ADD_TO_ALL_ROWS"}},ir=async(o,e)=>{let t=o.values,r=e.values,n=o.headerRow,a=e.headerRow,s=[...n,...a],i=[];i.push(s);for(let l=0;l<t.length;++l)i.push([...t[l],...a.map(()=>"")]);for(let l=0;l<r.length;++l)i.push([...n.map(()=>""),...r[l]]);return{data:i,type:"JOIN_WITHOUT_COLUMNS"}},lr=async(o,e,t)=>{let r=o.values,n=e.values,a=[],s=[],i={},l=tt(o,e,t);a.push(l);for(let d=0;d<r.length;++d){let u=!1,m=r[d];for(let h=0;h<n.length;++h){let c=n[h];Ne({rowA:m,rowB:c},t)&&(i[h]=!0,u=!0,a.push([...m,...c.filter((f,g)=>t.every(F=>F.target!==g))]))}u||s.push([...m,...e.headerRow.filter((h,c)=>t.every(f=>f.target!==c)).map(()=>"")])}for(let d=0;d<n.length;++d){if(i[d])continue;let u=n[d],m=o.headerRow.map(()=>"");t.forEach(h=>{m[h.source]=u[h.target]}),s.push([...m,...u.filter((h,c)=>t.every(f=>f.target!==c))])}return s.forEach(d=>{a.push(d)}),{data:a,type:"JOIN_ON_COLUMNS"}},ur=async(o,e,t)=>{let r=e.headerRow.filter((i,l)=>t.every(d=>d.target!==l)),a=[[...o.headerRow,...r]];for(let i=0;i<o.values.length;++i){let l=[...o.values[i],...r.map(()=>"")];a.push(l)}let s=e.values;for(let i=0;i<s.length;++i){let l=o.headerRow.map(()=>""),d=[];for(let u=0;u<e.headerRow.length;++u){let m=t.find(h=>h.target===u);m?l[m.source]=s[i][u]:d.push(s[i][u])}a.push([...l,...d])}return{data:a,type:"APPEND_TO_COLUMNS"}},mr=async(o,e,t)=>{let r=o.values,n=e.values,a=r.length+n.length,s=0,i={};for(let l=0;l<r.length;l++){let d=r[l],u=null,m=0;for(let h=0;h<n.length;h++){let c=n[h];if(Ne({rowA:d,rowB:c},t)&&(u=h,m++,m===2))break}m===1&&u!==null&&(s+=1,i[u]=!0)}for(let l=0;l<n.length;l++)i[l]&&(s+=1);return{count:s,total:a}};import{isNil as It}from"lodash";var Ve=o=>o.some(e=>typeof e=="string"&&p(e)&&!y(e.trim())),T=o=>!Ve(o)&&!o.some(e=>typeof e=="boolean"),w=o=>o.filter(e=>typeof e=="string"&&p(e)&&!y(e.trim())),rt=(o,e)=>{let t=e?.trim();return t||(T(o),"")};var b=/T\d{1,2}:\d{2}(:\d{2})?(\.\d+)?/i,B=/\b\d{1,2}:\d{2}(:\d{2})?(\.\d+)?(\s*[AaPp][Mm])?\b/,ot=/\s+\d{1,2}:\d{2}(?::\d{2})?(?:\.\d+)?(?:\s*[AaPp][Mm])?(?:Z|[+-](?:[01]\d|2[0-3])(?::?[0-5]\d)?)?\s*$/i,L=/\b[AaPp][Mm]\b/,nt=/\d{1,2}:\d{2}:\d{2}\.(\d+)/,z=/^(\d{4})([/.\- ])(\d{1,2})\2(\d{1,2})$/,X=/^(\d{1,2})([/.\- ])(\d{1,2})\2(?:\d{2}|\d{4})$/;var j=o=>o.match(nt)?.[1]?.length??0,ve=o=>o<=0||o>9?"":`.${"S".repeat(o)}`,C=o=>{let e=o.trim();return b.test(e)?e.split(/T/i)[0]??"":e.replace(ot,"")};var at=/^(?:\d{4}([/.\- ])\d{1,2}\1\d{1,2}|\d{1,2}([/.\- ])\d{1,2}\2\d{4})$/,st=/^\d{1,2}([/.\- ])\d{1,2}\1\d{2}$/,it=/^\d{4}([/.\- ])\d{1,2}\1\d{1,2}$/,lt=/^\d{1,2}([/.\- ])\d{1,2}\1(?:\d{2}|\d{4})$/,R=o=>{let e=!1,t=!1;for(let r of o){if(typeof r!="string"||!p(r))continue;let n=C(r);if(at.test(n)){e=!0;continue}st.test(n)&&(t=!0)}return e&&t?null:e?"YYYY":t?"YY":null},Ae=o=>{let e=!1,t=!1;for(let r of o){if(typeof r!="string"||!p(r))continue;let n=C(r);if(it.test(n)){e=!0;continue}lt.test(n)&&(t=!0)}return{sawYearFirst:e,sawDayOrMonthFirst:t}},N=o=>{let{sawYearFirst:e,sawDayOrMonthFirst:t}=Ae(o);return e&&!t},Oe=o=>{let{sawYearFirst:e,sawDayOrMonthFirst:t}=Ae(o);return e&&t};var W=o=>o?"D":"DD",q=o=>o?"M":"MM",G=o=>{let e=!1,t=!1;for(let r of o){if(typeof r!="string"||!p(r))continue;let n=C(r),a=n.match(z);if(a){a[3].length===1&&(e=!0),a[4].length===1&&(t=!0);continue}let s=n.match(X);s&&(s[1].length===1&&(e=!0),s[3].length===1&&(t=!0))}return{firstUnpadded:e,secondUnpadded:t}};var _e=o=>o.length===1?"unpadded":o.length===2&&o[0]==="0"?"padded":"wide",mt=o=>{let e=j(o),t=e>0||/\d{1,2}:\d{2}:\d{2}/.test(o),r=o.match(/(?:[T\s]|^)(\d{1,2}):\d{2}/i)?.[1]??"";return{isoT:b.test(o),seconds:t,fractionDigits:e,timezone:k(o),meridiem:L.test(o),unpaddedHour:r.length===1,paddedHour:r.length===2&&r.startsWith("0")}},dt=(o,e)=>o.isoT===e.isoT&&o.seconds===e.seconds&&o.fractionDigits===e.fractionDigits&&o.timezone===e.timezone&&o.meridiem===e.meridiem,Ee=o=>{let e=null;for(let t of o){if(typeof t!="string"||!p(t))continue;let r=Q(C(t));if(r){if(e===null){e=r;continue}if(r!==e)return!0}}return!1},ht=o=>{let e=[];for(let t of o){if(typeof t!="string"||!p(t))continue;let r=Q(C(t));r&&(e.includes(r)||e.push(r))}return e},I=o=>{if(Ee(o))return!0;let e=!1,t=!1,r=null,n=!1,a=!1,s=!1,i=!1,l=!1,d=!1;for(let u of o){if(typeof u!="string"||!p(u))continue;let m=u.trim(),h=C(m),c=h.match(z),f=h.match(X),g=c?.[3]??f?.[1],F=c?.[4]??f?.[3];if(g){let A=_e(g);A==="unpadded"&&(s=!0),A==="padded"&&(i=!0)}if(F){let A=_e(F);A==="unpadded"&&(l=!0),A==="padded"&&(d=!0)}if(!(b.test(m)||B.test(m))){if(e=!0,t)return!0;continue}if(t=!0,e)return!0;let v=mt(m);if(v.fractionDigits>9)return!0;if(v.unpaddedHour&&(n=!0),v.paddedHour&&(a=!0),!r){r=v;continue}if(!dt(r,v))return!0}return!!(s&&i||l&&d||n&&a)};var O=o=>{if(I(o))return"";let e=!1,t=!1,r=!1,n=!1,a=0,s=!1,i=!1;for(let c of o){if(typeof c!="string"||!p(c))continue;let f=c.trim(),g=b.test(f);if(!g&&!B.test(f))continue;e=!0,g&&(t=!0),L.test(f)&&(r=!0);let F=j(f);F>0?(n=!0,a=F):/\d{1,2}:\d{2}:\d{2}/.test(f)&&(n=!0),k(f)&&(s=!0),(f.match(/(?:[T\s]|^)(\d{1,2}):\d{2}/i)?.[1]??"").length===1&&(i=!0)}if(!e)return"";let l=t?"[T]":" ",d=r?i?"h":"hh":i?"H":"HH",u=r?" A":"",m=ve(a),h=s?"Z":"";return n?`${l}${d}:mm:ss${m}${u}${h}`:`${l}${d}:mm${u}${h}`},V=(o,e)=>{let t=o.trim();if(!t||/[Hh]/.test(t))return t;let r=O(e);return r?`${t}${r}`:t};var Z=(o,e="",t={firstUnpadded:!1,secondUnpadded:!1})=>`YYYY${o}${q(t.firstUnpadded)}${o}${W(t.secondUnpadded)}${e}`,_=(o,e,t="",r="YYYY",n={firstUnpadded:!1,secondUnpadded:!1})=>`${o==="dM"?[W(n.firstUnpadded),q(n.secondUnpadded),r].join(e):[q(n.firstUnpadded),W(n.secondUnpadded),r].join(e)}${t}`,Pe=(o,e="",t="YYYY",r={firstUnpadded:!1,secondUnpadded:!1})=>({dayFirst:_("dM",o,e,t,r),monthFirst:_("Md",o,e,t,r)}),Ye=["/","-","."],pt=(o="",e="YYYY",t={firstUnpadded:!1,secondUnpadded:!1},r=Ye)=>{let n=[];for(let a of r){let{dayFirst:s,monthFirst:i}=Pe(a,o,e,t);n.push(s,i)}return n};var ct=o=>o.every(e=>typeof e!="number"&&(typeof e!="string"||!p(e))),E=({colType:o,inputFormat:e,samples:t,parserDateFormat:r})=>{if(!H(o))return null;if(x(e))return"configured";if(r?.trim())return"detected";if(T(t))return ct(t)?"detected":"undetected";let n=w(t);return I(n)||Oe(n)?"undetected":N(n)?"detected":J(n)===null||R(n)===null?"undetected":"detected"},ft=o=>o.getDateFormatPromptResolved?.()??o.getDeclaredInputFormat?.(),ue=o=>o.getDateFormatPromptResolved?.()??(typeof o.getDeclaredInputFormat=="function"?o.getDeclaredInputFormat():o.getInputFormat()),gt=o=>o.some(e=>{let t=e.matchedDataModel?.dataModel;return!t||!e.sheetColumn?!1:E({colType:t.getType(),inputFormat:ue(t),samples:e.sheetColumn.getDateInputFormatSamples(),parserDateFormat:e.sheetColumn.getParserDateFormat?.()})==="undetected"});var He=({colType:o,inputFormat:e,samples:t,parserDateFormat:r})=>{let n=E({colType:o,inputFormat:e,samples:t,parserDateFormat:r}),a=w(t);if(n==="configured")return V((e??"").trim(),a);if(n!=="detected")return"";let s=r?.trim();if(s)return s;let i=O(a),l=ee(a),d=G(a);if(N(a))return Z(l,i,d);let u=J(a);if(u!=="dM"&&u!=="Md")return"";let m=R(a);return m?_(u,l,i,m,d):""},St=(o,e)=>{o.forEach(t=>{let r=t.matchedDataModel?.dataModel;if(!r?.setInputFormat||!t.sheetColumn)return;let n=r.getType(),a=ue(r),s=t.sheetColumn.getDateInputFormatSamples(),i=t.sheetColumn.getParserDateFormat?.(),l=w(s),d=E({colType:n,inputFormat:a,samples:s,parserDateFormat:i});if(!d)return;let u=e?.getChosenFormat?.(t)?.trim()||"",m=u||He({colType:n,inputFormat:a,samples:s,parserDateFormat:i});if(!m&&d==="undetected"&&e?.fallbackUndetected&&!I(l)){let h=R(l);if(h){let c=ee(l),f=O(l),g=G(l);m=N(l)?Z(c,f,g):_("dM",c,f,h,g)}}!u&&!x(a)&&T(s)&&!m||m&&r.setInputFormat(V(m,l))})};var Dt=o=>{if(o==null)return"";if(typeof o=="object"&&!Array.isArray(o)&&"value"in o){let e=o.value;return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:""}return typeof o=="string"||typeof o=="number"||typeof o=="boolean"?o:""},Ct=(o,e)=>o.map(t=>({sheetColumn:{getDateInputFormatSamples:()=>e.map(r=>Dt(r?.[t.getKey()]))},matchedDataModel:{dataModel:t}}));import $e from"moment";var Ft=5,ke=o=>{let e=$e(o,pe,!0);if(e.isValid())return e;let t=$e.parseZone(o,ce,!0);return t.isValid()?t:null},yt=(o,e)=>{if(!p(o))return null;let t=K([o],e)[0];if(typeof t!="string")return null;if(t===o||t===o.trim()){if(!y(t.trim()))return null;let n=ke(t.trim());return n?{original:o,parsedMoment:n}:null}let r=ke(t);return r?{original:o,parsedMoment:r}:null},Mt=({samples:o,inputFormat:e,outputFormat:t,maxRows:r=Ft})=>o.filter(a=>p(a)).slice(0,r).map(a=>{let s=yt(a,e);return s?{original:a,formatted:s.parsedMoment.format(t)}:{original:a,formatted:null}});var Je=(o,e)=>{if(!H(e.getType()))return S.parse(o,{dataModel:e});if(fe(o))return null;let t=`${o}`,r=e.getInputFormat();if(x(r)){if(y(t))return S.parse(t,{dataModel:e});let n=r;if(!te(t,n)){let a=V(n,[t]);if(a!==n&&te(t,a))n=a;else return t}return S.parse(K([t],n)[0],{dataModel:e})}return S.parse(t,{dataModel:e})};var me=class{constructor({sheetColumn:e,matchedDataModel:t,detectedNumberFormats:r}){this.parseSheetValue=(e,t)=>t.dataModel.getType()==="date"?Je(e,t.dataModel):S.parse(e,t);this.getOptionValue=(e,t)=>{if(!t)if(this.matchedDataModel.dataModel){let r=this.sheetColumn.columnKey,a=this.detectedNumberFormats.columns.find(s=>s.column===r)?.numberFormat||this.detectedNumberFormats.global;return this.parseSheetValue(e,{dataModel:this.matchedDataModel.dataModel,isParseFromSheet:!0,numberFormat:a})}else return e;for(let r=0;r<t.length;r++)if(`${t[r]?.sheetOption}`==`${e}`){let n=!It(t[r]?.dataModelOptions)&&(t[r]?.dataModelOptions?.length??0)>0;if(t[r]?.autoPreserved===!0&&t[r]?.dataModelOption==null&&!n){if(this.matchedDataModel.dataModel instanceof U){let a=`${e}`,s=this.matchedDataModel.dataModel.getOptions().find(i=>i.label===a||i.value===a);if(s)return S.parse(s.value,{dataModel:this.matchedDataModel.dataModel,isParseFromSheet:!0})}return e}return this.matchedDataModel.dataModel&&this.matchedDataModel.dataModel.getIsMultiSelection()?S.parse(t[r]?.dataModelOptions,{dataModel:this.matchedDataModel.dataModel,isParseFromSheet:!0}):this.matchedDataModel.dataModel?S.parse(t[r]?.dataModelOption,{dataModel:this.matchedDataModel.dataModel,isParseFromSheet:!0}):t[r]?.dataModelOption}};this.getValues=()=>{let e=this.sheetColumn.rows,t=[];for(let r=0;r<e.length;r++){let n=e[r],a=this.getOptionValue(n,this.matchedOptions);t.push(a)}return t};if(this.sheetColumn=e,this.matchedDataModel=t,this.matchedOptions=void 0,this.detectedNumberFormats=r||{global:"eu",columns:[]},this.matchedDataModel.matchedOptions){this.matchedOptions=[];for(let n=0;n<(this.matchedDataModel.matchedOptions?.length??0);n++){let a=this.matchedDataModel.matchedOptions[n];this.matchedDataModel.dataModel?.getIsMultiSelection()?a.dataModelOptions&&this.matchedOptions.push(a):a.dataModelOption!==void 0&&a.dataModelOption!==null?this.matchedOptions.push(a):a.autoPreserved===!0&&!a.userCleared&&this.matchedOptions.push(a)}}}},Ke=me;var de=class{constructor(e){this.matchedColumns=[];this.parseValues=()=>{let e=[];this.matchedColumns.forEach(t=>{let r=t.matchedDataModel,a=new Ke({sheetColumn:t.sheetColumn,matchedDataModel:r,detectedNumberFormats:this.detectedNumberFormats}).getValues(),s=r.dataModel.getKey();a.forEach((i,l)=>{e[l]?e[l][s]=i:e[l]={[s]:i}})});for(let t=0;t<e.length;++t)for(let r=0;r<this.columns.length;++r){let a=this.columns[r].key;e[t][a]===void 0&&(e[t][a]=null)}return e};this.getValues=()=>(this.matchedColumns=[],this.matching.filter(t=>t.matchedDataModel?.dataModel).forEach(t=>{this.matchedColumns.push({sheetColumn:t.sheetColumn,matchedDataModel:t.matchedDataModel})}),this.parseValues());let{matching:t,detectedNumberFormats:r}=e;this.matching=t,this.detectedNumberFormats=r||{global:"eu",columns:[]},this.columns=e.columns??[]}},Ue=de;var $o=({matching:o,detectedNumberFormats:e,columns:t})=>new Ue({matching:o,detectedNumberFormats:e,columns:t}).getValues();import*as Be from"comlink";var P=class{static{this.serialize=e=>e.serialize()}static{this.deSerialize=e=>re.isTypeCategory(e.type)?new U({description:e.description,example:e.example,key:e.key,label:e.label,type:e.type,options:e.options,validators:[],alternativeMatches:e.alternativeMatches,columnSize:e.columnSize,isMultiSelection:e.isMultiSelection??!1,allowCustomOptions:e.allowCustomOptions,allowedCustomOptionTypes:e.allowedCustomOptionTypes,hidden:e.hidden,disabled:e.disabled,optionMappingConfiguration:e.optionMappingConfiguration}):new re({description:e.description,example:e.example,key:e.key,label:e.label,type:e.type,validators:[],alternativeMatches:e.alternativeMatches,columnSize:e.columnSize,outputFormat:e.outputFormat,inputFormat:e.inputFormat,numberFormat:e.numberFormat,hidden:e.hidden,disabled:e.disabled,optionMappingConfiguration:e.optionMappingConfiguration})}};var Y=class{static{this.serialize=e=>{let t={matching:[],detectedNumberFormats:e.detectedNumberFormats,columns:e.columns};return t.matching=e.matching.map(r=>({sheetColumn:r.sheetColumn,matchedDataModel:r.matchedDataModel?{dataModel:r.matchedDataModel.dataModel?P.serialize(r.matchedDataModel.dataModel):r.matchedDataModel.dataModel,matchedOptions:r.matchedDataModel.matchedOptions}:r.matchedDataModel})),[t,[]]}}static{this.deserialize=e=>({matching:e.matching.map(t=>({sheetColumn:t.sheetColumn,matchedDataModel:t.matchedDataModel?{dataModel:t.matchedDataModel.dataModel?P.deSerialize(t.matchedDataModel.dataModel):t.matchedDataModel.dataModel,matchedOptions:t.matchedDataModel.matchedOptions}:t.matchedDataModel})),detectedNumberFormats:e.detectedNumberFormats,columns:e.columns})}};Be.transferHandlers.set("Matching",{canHandle:o=>!!(o!==null&&typeof o=="object"&&o.matching),serialize:o=>Y.serialize(o),deserialize:o=>Y.deserialize(o)});export{M as a,Ie as b,$t as c,Re as d,w as e,rt as f,R as g,N as h,G as i,ht as j,I as k,O as l,Z as m,Pe as n,Ye as o,pt as p,E as q,ft as r,gt as s,He as t,St as u,Ct as v,Mt as w,tr as x,sr as y,ir as z,lr as A,ur as B,mr as C,$o as D,P as E};
|