Upload helpers.js
Browse files- helpers.js +280 -0
helpers.js
ADDED
@@ -0,0 +1,280 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// Returns an array with the same elements but in random positions
|
2 |
+
// Taken from: https://medium.com/@nitinpatel_20236/how-to-shuffle-correctly-shuffle-an-array-in-javascript-15ea3f84bfb
|
3 |
+
function shuffleArray(array) {
|
4 |
+
for (let i = array.length - 1; i > 0; i--) {
|
5 |
+
const j = Math.floor(Math.random() * i)
|
6 |
+
const temp = array[i]
|
7 |
+
array[i] = array[j]
|
8 |
+
array[j] = temp
|
9 |
+
}
|
10 |
+
return array
|
11 |
+
}
|
12 |
+
|
13 |
+
|
14 |
+
// Returns a flag (emoji) from a 2-character country code
|
15 |
+
// Taken from: https://dev.to/jorik/country-code-to-flag-emoji-a21
|
16 |
+
function getFlagEmoji(countryCode) {
|
17 |
+
const OFFSET = 127397;
|
18 |
+
const codePoints = countryCode.toUpperCase().split('').map(char => OFFSET + char.charCodeAt());
|
19 |
+
return String.fromCodePoint(...codePoints);
|
20 |
+
}
|
21 |
+
|
22 |
+
|
23 |
+
// All simple ISO 3166 country data
|
24 |
+
// including: 2-character, 3-character, full country name and numeric code.
|
25 |
+
// Sorted alphabetical by country name (special characters on bottom)
|
26 |
+
// Taken from https://gist.github.com/incredimike/1469814
|
27 |
+
// Kosovo (The Republic of Kosovo) was added by me.
|
28 |
+
// 2-character codes are important for the getFlagEmoji function
|
29 |
+
const countryObjects = [
|
30 |
+
{ "code": "AF", "code3": "AFG", "name": "Afghanistan", "number": "004" },
|
31 |
+
{ "code": "AL", "code3": "ALB", "name": "Albania", "number": "008" },
|
32 |
+
{ "code": "DZ", "code3": "DZA", "name": "Algeria", "number": "012" },
|
33 |
+
{ "code": "AS", "code3": "ASM", "name": "American Samoa", "number": "016" },
|
34 |
+
{ "code": "AD", "code3": "AND", "name": "Andorra", "number": "020" },
|
35 |
+
{ "code": "AO", "code3": "AGO", "name": "Angola", "number": "024" },
|
36 |
+
{ "code": "AI", "code3": "AIA", "name": "Anguilla", "number": "660" },
|
37 |
+
{ "code": "AQ", "code3": "ATA", "name": "Antarctica", "number": "010" },
|
38 |
+
{ "code": "AG", "code3": "ATG", "name": "Antigua and Barbuda", "number": "028" },
|
39 |
+
{ "code": "AR", "code3": "ARG", "name": "Argentina", "number": "032" },
|
40 |
+
{ "code": "AM", "code3": "ARM", "name": "Armenia", "number": "051" },
|
41 |
+
{ "code": "AW", "code3": "ABW", "name": "Aruba", "number": "533" },
|
42 |
+
{ "code": "AU", "code3": "AUS", "name": "Australia", "number": "036" },
|
43 |
+
{ "code": "AT", "code3": "AUT", "name": "Austria", "number": "040" },
|
44 |
+
{ "code": "AZ", "code3": "AZE", "name": "Azerbaijan", "number": "031" },
|
45 |
+
{ "code": "BS", "code3": "BHS", "name": "Bahamas (the)", "number": "044" },
|
46 |
+
{ "code": "BH", "code3": "BHR", "name": "Bahrain", "number": "048" },
|
47 |
+
{ "code": "BD", "code3": "BGD", "name": "Bangladesh", "number": "050" },
|
48 |
+
{ "code": "BB", "code3": "BRB", "name": "Barbados", "number": "052" },
|
49 |
+
{ "code": "BY", "code3": "BLR", "name": "Belarus", "number": "112" },
|
50 |
+
{ "code": "BE", "code3": "BEL", "name": "Belgium", "number": "056" },
|
51 |
+
{ "code": "BZ", "code3": "BLZ", "name": "Belize", "number": "084" },
|
52 |
+
{ "code": "BJ", "code3": "BEN", "name": "Benin", "number": "204" },
|
53 |
+
{ "code": "BM", "code3": "BMU", "name": "Bermuda", "number": "060" },
|
54 |
+
{ "code": "BT", "code3": "BTN", "name": "Bhutan", "number": "064" },
|
55 |
+
{ "code": "BO", "code3": "BOL", "name": "Bolivia (Plurinational State of)", "number": "068" },
|
56 |
+
{ "code": "BQ", "code3": "BES", "name": "Bonaire, Sint Eustatius and Saba", "number": "535" },
|
57 |
+
{ "code": "BA", "code3": "BIH", "name": "Bosnia and Herzegovina", "number": "070" },
|
58 |
+
{ "code": "BW", "code3": "BWA", "name": "Botswana", "number": "072" },
|
59 |
+
{ "code": "BV", "code3": "BVT", "name": "Bouvet Island", "number": "074" },
|
60 |
+
{ "code": "BR", "code3": "BRA", "name": "Brazil", "number": "076" },
|
61 |
+
{ "code": "IO", "code3": "IOT", "name": "British Indian Ocean Territory (the)", "number": "086" },
|
62 |
+
{ "code": "BN", "code3": "BRN", "name": "Brunei Darussalam", "number": "096" },
|
63 |
+
{ "code": "BG", "code3": "BGR", "name": "Bulgaria", "number": "100" },
|
64 |
+
{ "code": "BF", "code3": "BFA", "name": "Burkina Faso", "number": "854" },
|
65 |
+
{ "code": "BI", "code3": "BDI", "name": "Burundi", "number": "108" },
|
66 |
+
{ "code": "CV", "code3": "CPV", "name": "Cabo Verde", "number": "132" },
|
67 |
+
{ "code": "KH", "code3": "KHM", "name": "Cambodia", "number": "116" },
|
68 |
+
{ "code": "CM", "code3": "CMR", "name": "Cameroon", "number": "120" },
|
69 |
+
{ "code": "CA", "code3": "CAN", "name": "Canada", "number": "124" },
|
70 |
+
{ "code": "KY", "code3": "CYM", "name": "Cayman Islands (the)", "number": "136" },
|
71 |
+
{ "code": "CF", "code3": "CAF", "name": "Central African Republic (the)", "number": "140" },
|
72 |
+
{ "code": "TD", "code3": "TCD", "name": "Chad", "number": "148" },
|
73 |
+
{ "code": "CL", "code3": "CHL", "name": "Chile", "number": "152" },
|
74 |
+
{ "code": "CN", "code3": "CHN", "name": "China", "number": "156" },
|
75 |
+
{ "code": "CX", "code3": "CXR", "name": "Christmas Island", "number": "162" },
|
76 |
+
{ "code": "CC", "code3": "CCK", "name": "Cocos (Keeling) Islands (the)", "number": "166" },
|
77 |
+
{ "code": "CO", "code3": "COL", "name": "Colombia", "number": "170" },
|
78 |
+
{ "code": "KM", "code3": "COM", "name": "Comoros (the)", "number": "174" },
|
79 |
+
{ "code": "CD", "code3": "COD", "name": "Congo (the Democratic Republic of the)", "number": "180" },
|
80 |
+
{ "code": "CG", "code3": "COG", "name": "Congo (the)", "number": "178" },
|
81 |
+
{ "code": "CK", "code3": "COK", "name": "Cook Islands (the)", "number": "184" },
|
82 |
+
{ "code": "CR", "code3": "CRI", "name": "Costa Rica", "number": "188" },
|
83 |
+
{ "code": "HR", "code3": "HRV", "name": "Croatia", "number": "191" },
|
84 |
+
{ "code": "CU", "code3": "CUB", "name": "Cuba", "number": "192" },
|
85 |
+
{ "code": "CW", "code3": "CUW", "name": "Curaçao", "number": "531" },
|
86 |
+
{ "code": "CY", "code3": "CYP", "name": "Cyprus", "number": "196" },
|
87 |
+
{ "code": "CZ", "code3": "CZE", "name": "Czechia", "number": "203" },
|
88 |
+
{ "code": "CI", "code3": "CIV", "name": "Côte d'Ivoire", "number": "384" },
|
89 |
+
{ "code": "DK", "code3": "DNK", "name": "Denmark", "number": "208" },
|
90 |
+
{ "code": "DJ", "code3": "DJI", "name": "Djibouti", "number": "262" },
|
91 |
+
{ "code": "DM", "code3": "DMA", "name": "Dominica", "number": "212" },
|
92 |
+
{ "code": "DO", "code3": "DOM", "name": "Dominican Republic (the)", "number": "214" },
|
93 |
+
{ "code": "EC", "code3": "ECU", "name": "Ecuador", "number": "218" },
|
94 |
+
{ "code": "EG", "code3": "EGY", "name": "Egypt", "number": "818" },
|
95 |
+
{ "code": "SV", "code3": "SLV", "name": "El Salvador", "number": "222" },
|
96 |
+
{ "code": "GQ", "code3": "GNQ", "name": "Equatorial Guinea", "number": "226" },
|
97 |
+
{ "code": "ER", "code3": "ERI", "name": "Eritrea", "number": "232" },
|
98 |
+
{ "code": "EE", "code3": "EST", "name": "Estonia", "number": "233" },
|
99 |
+
{ "code": "SZ", "code3": "SWZ", "name": "Eswatini", "number": "748" },
|
100 |
+
{ "code": "ET", "code3": "ETH", "name": "Ethiopia", "number": "231" },
|
101 |
+
{ "code": "FK", "code3": "FLK", "name": "Falkland Islands (the) [Malvinas]", "number": "238" },
|
102 |
+
{ "code": "FO", "code3": "FRO", "name": "Faroe Islands (the)", "number": "234" },
|
103 |
+
{ "code": "FJ", "code3": "FJI", "name": "Fiji", "number": "242" },
|
104 |
+
{ "code": "FI", "code3": "FIN", "name": "Finland", "number": "246" },
|
105 |
+
{ "code": "FR", "code3": "FRA", "name": "France", "number": "250" },
|
106 |
+
{ "code": "GF", "code3": "GUF", "name": "French Guiana", "number": "254" },
|
107 |
+
{ "code": "PF", "code3": "PYF", "name": "French Polynesia", "number": "258" },
|
108 |
+
{ "code": "TF", "code3": "ATF", "name": "French Southern Territories (the)", "number": "260" },
|
109 |
+
{ "code": "GA", "code3": "GAB", "name": "Gabon", "number": "266" },
|
110 |
+
{ "code": "GM", "code3": "GMB", "name": "Gambia (the)", "number": "270" },
|
111 |
+
{ "code": "GE", "code3": "GEO", "name": "Georgia", "number": "268" },
|
112 |
+
{ "code": "DE", "code3": "DEU", "name": "Germany", "number": "276" },
|
113 |
+
{ "code": "GH", "code3": "GHA", "name": "Ghana", "number": "288" },
|
114 |
+
{ "code": "GI", "code3": "GIB", "name": "Gibraltar", "number": "292" },
|
115 |
+
{ "code": "GR", "code3": "GRC", "name": "Greece", "number": "300" },
|
116 |
+
{ "code": "GL", "code3": "GRL", "name": "Greenland", "number": "304" },
|
117 |
+
{ "code": "GD", "code3": "GRD", "name": "Grenada", "number": "308" },
|
118 |
+
{ "code": "GP", "code3": "GLP", "name": "Guadeloupe", "number": "312" },
|
119 |
+
{ "code": "GU", "code3": "GUM", "name": "Guam", "number": "316" },
|
120 |
+
{ "code": "GT", "code3": "GTM", "name": "Guatemala", "number": "320" },
|
121 |
+
{ "code": "GG", "code3": "GGY", "name": "Guernsey", "number": "831" },
|
122 |
+
{ "code": "GN", "code3": "GIN", "name": "Guinea", "number": "324" },
|
123 |
+
{ "code": "GW", "code3": "GNB", "name": "Guinea-Bissau", "number": "624" },
|
124 |
+
{ "code": "GY", "code3": "GUY", "name": "Guyana", "number": "328" },
|
125 |
+
{ "code": "HT", "code3": "HTI", "name": "Haiti", "number": "332" },
|
126 |
+
{ "code": "HM", "code3": "HMD", "name": "Heard Island and McDonald Islands", "number": "334" },
|
127 |
+
{ "code": "VA", "code3": "VAT", "name": "Holy See (the)", "number": "336" },
|
128 |
+
{ "code": "HN", "code3": "HND", "name": "Honduras", "number": "340" },
|
129 |
+
{ "code": "HK", "code3": "HKG", "name": "Hong Kong", "number": "344" },
|
130 |
+
{ "code": "HU", "code3": "HUN", "name": "Hungary", "number": "348" },
|
131 |
+
{ "code": "IS", "code3": "ISL", "name": "Iceland", "number": "352" },
|
132 |
+
{ "code": "IN", "code3": "IND", "name": "India", "number": "356" },
|
133 |
+
{ "code": "ID", "code3": "IDN", "name": "Indonesia", "number": "360" },
|
134 |
+
{ "code": "IR", "code3": "IRN", "name": "Iran (Islamic Republic of)", "number": "364" },
|
135 |
+
{ "code": "IQ", "code3": "IRQ", "name": "Iraq", "number": "368" },
|
136 |
+
{ "code": "IE", "code3": "IRL", "name": "Ireland", "number": "372" },
|
137 |
+
{ "code": "IM", "code3": "IMN", "name": "Isle of Man", "number": "833" },
|
138 |
+
{ "code": "IL", "code3": "ISR", "name": "Israel", "number": "376" },
|
139 |
+
{ "code": "IT", "code3": "ITA", "name": "Italy", "number": "380" },
|
140 |
+
{ "code": "JM", "code3": "JAM", "name": "Jamaica", "number": "388" },
|
141 |
+
{ "code": "JP", "code3": "JPN", "name": "Japan", "number": "392" },
|
142 |
+
{ "code": "JE", "code3": "JEY", "name": "Jersey", "number": "832" },
|
143 |
+
{ "code": "JO", "code3": "JOR", "name": "Jordan", "number": "400" },
|
144 |
+
{ "code": "KZ", "code3": "KAZ", "name": "Kazakhstan", "number": "398" },
|
145 |
+
{ "code": "KE", "code3": "KEN", "name": "Kenya", "number": "404" },
|
146 |
+
{ "code": "KI", "code3": "KIR", "name": "Kiribati", "number": "296" },
|
147 |
+
{ "code": "KP", "code3": "PRK", "name": "Korea (the Democratic People's Republic of)", "number": "408" },
|
148 |
+
{ "code": "KR", "code3": "KOR", "name": "Korea (the Republic of)", "number": "410" },
|
149 |
+
{ "code": "XK", "code3": "UNK", "name": "Kosovo (the Republic of)", "number": "383" },
|
150 |
+
{ "code": "KW", "code3": "KWT", "name": "Kuwait", "number": "414" },
|
151 |
+
{ "code": "KG", "code3": "KGZ", "name": "Kyrgyzstan", "number": "417" },
|
152 |
+
{ "code": "LA", "code3": "LAO", "name": "Lao People's Democratic Republic (the)", "number": "418" },
|
153 |
+
{ "code": "LV", "code3": "LVA", "name": "Latvia", "number": "428" },
|
154 |
+
{ "code": "LB", "code3": "LBN", "name": "Lebanon", "number": "422" },
|
155 |
+
{ "code": "LS", "code3": "LSO", "name": "Lesotho", "number": "426" },
|
156 |
+
{ "code": "LR", "code3": "LBR", "name": "Liberia", "number": "430" },
|
157 |
+
{ "code": "LY", "code3": "LBY", "name": "Libya", "number": "434" },
|
158 |
+
{ "code": "LI", "code3": "LIE", "name": "Liechtenstein", "number": "438" },
|
159 |
+
{ "code": "LT", "code3": "LTU", "name": "Lithuania", "number": "440" },
|
160 |
+
{ "code": "LU", "code3": "LUX", "name": "Luxembourg", "number": "442" },
|
161 |
+
{ "code": "MO", "code3": "MAC", "name": "Macao", "number": "446" },
|
162 |
+
{ "code": "MG", "code3": "MDG", "name": "Madagascar", "number": "450" },
|
163 |
+
{ "code": "MW", "code3": "MWI", "name": "Malawi", "number": "454" },
|
164 |
+
{ "code": "MY", "code3": "MYS", "name": "Malaysia", "number": "458" },
|
165 |
+
{ "code": "MV", "code3": "MDV", "name": "Maldives", "number": "462" },
|
166 |
+
{ "code": "ML", "code3": "MLI", "name": "Mali", "number": "466" },
|
167 |
+
{ "code": "MT", "code3": "MLT", "name": "Malta", "number": "470" },
|
168 |
+
{ "code": "MH", "code3": "MHL", "name": "Marshall Islands (the)", "number": "584" },
|
169 |
+
{ "code": "MQ", "code3": "MTQ", "name": "Martinique", "number": "474" },
|
170 |
+
{ "code": "MR", "code3": "MRT", "name": "Mauritania", "number": "478" },
|
171 |
+
{ "code": "MU", "code3": "MUS", "name": "Mauritius", "number": "480" },
|
172 |
+
{ "code": "YT", "code3": "MYT", "name": "Mayotte", "number": "175" },
|
173 |
+
{ "code": "MX", "code3": "MEX", "name": "Mexico", "number": "484" },
|
174 |
+
{ "code": "FM", "code3": "FSM", "name": "Micronesia (Federated States of)", "number": "583" },
|
175 |
+
{ "code": "MD", "code3": "MDA", "name": "Moldova (the Republic of)", "number": "498" },
|
176 |
+
{ "code": "MC", "code3": "MCO", "name": "Monaco", "number": "492" },
|
177 |
+
{ "code": "MN", "code3": "MNG", "name": "Mongolia", "number": "496" },
|
178 |
+
{ "code": "ME", "code3": "MNE", "name": "Montenegro", "number": "499" },
|
179 |
+
{ "code": "MS", "code3": "MSR", "name": "Montserrat", "number": "500" },
|
180 |
+
{ "code": "MA", "code3": "MAR", "name": "Morocco", "number": "504" },
|
181 |
+
{ "code": "MZ", "code3": "MOZ", "name": "Mozambique", "number": "508" },
|
182 |
+
{ "code": "MM", "code3": "MMR", "name": "Myanmar", "number": "104" },
|
183 |
+
{ "code": "NA", "code3": "NAM", "name": "Namibia", "number": "516" },
|
184 |
+
{ "code": "NR", "code3": "NRU", "name": "Nauru", "number": "520" },
|
185 |
+
{ "code": "NP", "code3": "NPL", "name": "Nepal", "number": "524" },
|
186 |
+
{ "code": "NL", "code3": "NLD", "name": "Netherlands (the)", "number": "528" },
|
187 |
+
{ "code": "NC", "code3": "NCL", "name": "New Caledonia", "number": "540" },
|
188 |
+
{ "code": "NZ", "code3": "NZL", "name": "New Zealand", "number": "554" },
|
189 |
+
{ "code": "NI", "code3": "NIC", "name": "Nicaragua", "number": "558" },
|
190 |
+
{ "code": "NE", "code3": "NER", "name": "Niger (the)", "number": "562" },
|
191 |
+
{ "code": "NG", "code3": "NGA", "name": "Nigeria", "number": "566" },
|
192 |
+
{ "code": "NU", "code3": "NIU", "name": "Niue", "number": "570" },
|
193 |
+
{ "code": "NF", "code3": "NFK", "name": "Norfolk Island", "number": "574" },
|
194 |
+
{ "code": "MP", "code3": "MNP", "name": "Northern Mariana Islands (the)", "number": "580" },
|
195 |
+
{ "code": "NO", "code3": "NOR", "name": "Norway", "number": "578" },
|
196 |
+
{ "code": "OM", "code3": "OMN", "name": "Oman", "number": "512" },
|
197 |
+
{ "code": "PK", "code3": "PAK", "name": "Pakistan", "number": "586" },
|
198 |
+
{ "code": "PW", "code3": "PLW", "name": "Palau", "number": "585" },
|
199 |
+
{ "code": "PS", "code3": "PSE", "name": "Palestine, State of", "number": "275" },
|
200 |
+
{ "code": "PA", "code3": "PAN", "name": "Panama", "number": "591" },
|
201 |
+
{ "code": "PG", "code3": "PNG", "name": "Papua New Guinea", "number": "598" },
|
202 |
+
{ "code": "PY", "code3": "PRY", "name": "Paraguay", "number": "600" },
|
203 |
+
{ "code": "PE", "code3": "PER", "name": "Peru", "number": "604" },
|
204 |
+
{ "code": "PH", "code3": "PHL", "name": "Philippines (the)", "number": "608" },
|
205 |
+
{ "code": "PN", "code3": "PCN", "name": "Pitcairn", "number": "612" },
|
206 |
+
{ "code": "PL", "code3": "POL", "name": "Poland", "number": "616" },
|
207 |
+
{ "code": "PT", "code3": "PRT", "name": "Portugal", "number": "620" },
|
208 |
+
{ "code": "PR", "code3": "PRI", "name": "Puerto Rico", "number": "630" },
|
209 |
+
{ "code": "QA", "code3": "QAT", "name": "Qatar", "number": "634" },
|
210 |
+
{ "code": "MK", "code3": "MKD", "name": "Republic of North Macedonia", "number": "807" },
|
211 |
+
{ "code": "RO", "code3": "ROU", "name": "Romania", "number": "642" },
|
212 |
+
{ "code": "RU", "code3": "RUS", "name": "Russian Federation (the)", "number": "643" },
|
213 |
+
{ "code": "RW", "code3": "RWA", "name": "Rwanda", "number": "646" },
|
214 |
+
{ "code": "RE", "code3": "REU", "name": "Réunion", "number": "638" },
|
215 |
+
{ "code": "BL", "code3": "BLM", "name": "Saint Barthélemy", "number": "652" },
|
216 |
+
{ "code": "SH", "code3": "SHN", "name": "Saint Helena, Ascension and Tristan da Cunha", "number": "654" },
|
217 |
+
{ "code": "KN", "code3": "KNA", "name": "Saint Kitts and Nevis", "number": "659" },
|
218 |
+
{ "code": "LC", "code3": "LCA", "name": "Saint Lucia", "number": "662" },
|
219 |
+
{ "code": "MF", "code3": "MAF", "name": "Saint Martin (French part)", "number": "663" },
|
220 |
+
{ "code": "PM", "code3": "SPM", "name": "Saint Pierre and Miquelon", "number": "666" },
|
221 |
+
{ "code": "VC", "code3": "VCT", "name": "Saint Vincent and the Grenadines", "number": "670" },
|
222 |
+
{ "code": "WS", "code3": "WSM", "name": "Samoa", "number": "882" },
|
223 |
+
{ "code": "SM", "code3": "SMR", "name": "San Marino", "number": "674" },
|
224 |
+
{ "code": "ST", "code3": "STP", "name": "Sao Tome and Principe", "number": "678" },
|
225 |
+
{ "code": "SA", "code3": "SAU", "name": "Saudi Arabia", "number": "682" },
|
226 |
+
{ "code": "SN", "code3": "SEN", "name": "Senegal", "number": "686" },
|
227 |
+
{ "code": "RS", "code3": "SRB", "name": "Serbia", "number": "688" },
|
228 |
+
{ "code": "SC", "code3": "SYC", "name": "Seychelles", "number": "690" },
|
229 |
+
{ "code": "SL", "code3": "SLE", "name": "Sierra Leone", "number": "694" },
|
230 |
+
{ "code": "SG", "code3": "SGP", "name": "Singapore", "number": "702" },
|
231 |
+
{ "code": "SX", "code3": "SXM", "name": "Sint Maarten (Dutch part)", "number": "534" },
|
232 |
+
{ "code": "SK", "code3": "SVK", "name": "Slovakia", "number": "703" },
|
233 |
+
{ "code": "SI", "code3": "SVN", "name": "Slovenia", "number": "705" },
|
234 |
+
{ "code": "SB", "code3": "SLB", "name": "Solomon Islands", "number": "090" },
|
235 |
+
{ "code": "SO", "code3": "SOM", "name": "Somalia", "number": "706" },
|
236 |
+
{ "code": "ZA", "code3": "ZAF", "name": "South Africa", "number": "710" },
|
237 |
+
{ "code": "GS", "code3": "SGS", "name": "South Georgia and the South Sandwich Islands", "number": "239" },
|
238 |
+
{ "code": "SS", "code3": "SSD", "name": "South Sudan", "number": "728" },
|
239 |
+
{ "code": "ES", "code3": "ESP", "name": "Spain", "number": "724" },
|
240 |
+
{ "code": "LK", "code3": "LKA", "name": "Sri Lanka", "number": "144" },
|
241 |
+
{ "code": "SD", "code3": "SDN", "name": "Sudan (the)", "number": "729" },
|
242 |
+
{ "code": "SR", "code3": "SUR", "name": "Suriname", "number": "740" },
|
243 |
+
{ "code": "SJ", "code3": "SJM", "name": "Svalbard and Jan Mayen", "number": "744" },
|
244 |
+
{ "code": "SE", "code3": "SWE", "name": "Sweden", "number": "752" },
|
245 |
+
{ "code": "CH", "code3": "CHE", "name": "Switzerland", "number": "756" },
|
246 |
+
{ "code": "SY", "code3": "SYR", "name": "Syrian Arab Republic", "number": "760" },
|
247 |
+
{ "code": "TW", "code3": "TWN", "name": "Taiwan", "number": "158" },
|
248 |
+
{ "code": "TJ", "code3": "TJK", "name": "Tajikistan", "number": "762" },
|
249 |
+
{ "code": "TZ", "code3": "TZA", "name": "Tanzania, United Republic of", "number": "834" },
|
250 |
+
{ "code": "TH", "code3": "THA", "name": "Thailand", "number": "764" },
|
251 |
+
{ "code": "TL", "code3": "TLS", "name": "Timor-Leste", "number": "626" },
|
252 |
+
{ "code": "TG", "code3": "TGO", "name": "Togo", "number": "768" },
|
253 |
+
{ "code": "TK", "code3": "TKL", "name": "Tokelau", "number": "772" },
|
254 |
+
{ "code": "TO", "code3": "TON", "name": "Tonga", "number": "776" },
|
255 |
+
{ "code": "TT", "code3": "TTO", "name": "Trinidad and Tobago", "number": "780" },
|
256 |
+
{ "code": "TN", "code3": "TUN", "name": "Tunisia", "number": "788" },
|
257 |
+
{ "code": "TR", "code3": "TUR", "name": "Turkey", "number": "792" },
|
258 |
+
{ "code": "TM", "code3": "TKM", "name": "Turkmenistan", "number": "795" },
|
259 |
+
{ "code": "TC", "code3": "TCA", "name": "Turks and Caicos Islands (the)", "number": "796" },
|
260 |
+
{ "code": "TV", "code3": "TUV", "name": "Tuvalu", "number": "798" },
|
261 |
+
{ "code": "UG", "code3": "UGA", "name": "Uganda", "number": "800" },
|
262 |
+
{ "code": "UA", "code3": "UKR", "name": "Ukraine", "number": "804" },
|
263 |
+
{ "code": "AE", "code3": "ARE", "name": "United Arab Emirates (the)", "number": "784" },
|
264 |
+
{ "code": "GB", "code3": "GBR", "name": "United Kingdom of Great Britain and Northern Ireland (the)", "number": "826" },
|
265 |
+
{ "code": "UM", "code3": "UMI", "name": "United States Minor Outlying Islands (the)", "number": "581" },
|
266 |
+
{ "code": "US", "code3": "USA", "name": "United States of America (the)", "number": "840" },
|
267 |
+
{ "code": "UY", "code3": "URY", "name": "Uruguay", "number": "858" },
|
268 |
+
{ "code": "UZ", "code3": "UZB", "name": "Uzbekistan", "number": "860" },
|
269 |
+
{ "code": "VU", "code3": "VUT", "name": "Vanuatu", "number": "548" },
|
270 |
+
{ "code": "VE", "code3": "VEN", "name": "Venezuela (Bolivarian Republic of)", "number": "862" },
|
271 |
+
{ "code": "VN", "code3": "VNM", "name": "Viet Nam", "number": "704" },
|
272 |
+
{ "code": "VG", "code3": "VGB", "name": "Virgin Islands (British)", "number": "092" },
|
273 |
+
{ "code": "VI", "code3": "VIR", "name": "Virgin Islands (U.S.)", "number": "850" },
|
274 |
+
{ "code": "WF", "code3": "WLF", "name": "Wallis and Futuna", "number": "876" },
|
275 |
+
{ "code": "EH", "code3": "ESH", "name": "Western Sahara", "number": "732" },
|
276 |
+
{ "code": "YE", "code3": "YEM", "name": "Yemen", "number": "887" },
|
277 |
+
{ "code": "ZM", "code3": "ZMB", "name": "Zambia", "number": "894" },
|
278 |
+
{ "code": "ZW", "code3": "ZWE", "name": "Zimbabwe", "number": "716" },
|
279 |
+
{ "code": "AX", "code3": "ALA", "name": "Åland Islands", "number": "248" }
|
280 |
+
];
|