PageSourceSearch

https://reader.exacteditions.com/assets/reader/lib/CountryResolver-69c274ee.js

js exacteditions.com collected 2026-10-01 10:20:01 UTC 6,670 bytes, 258 lines download raw bytes

1export default class CountryResolver {
2  nameForCode(code) {
3    // ISO 3166
4    const nameByCode = {
5      AF: 'Afghanistan',
6      AL: 'Albania',
7      DZ: 'Algeria',
8      AS: 'American Samoa',
9      AD: 'Andorra',
10      AO: 'Angola',
11      AI: 'Anguilla',
12      AQ: 'Antarctica',
13      AG: 'Antigua and Barbuda',
14      AR: 'Argentina',
15      AM: 'Armenia',
16      AW: 'Aruba',
17      AU: 'Australia',
18      AT: 'Austria',
19      AZ: 'Azerbaijan',
20      BS: 'Bahamas (the)',
21      BH: 'Bahrain',
22      BD: 'Bangladesh',
23      BB: 'Barbados',
24      BY: 'Belarus',
25      BE: 'Belgium',
26      BZ: 'Belize',
27      BJ: 'Benin',
28      BM: 'Bermuda',
29      BT: 'Bhutan',
30      BO: 'Bolivia (Plurinational State of)',
31      BQ: 'Bonaire, Sint Eustatius and Saba',
32      BA: 'Bosnia and Herzegovina',
33      BW: 'Botswana',
34      BV: 'Bouvet Island',
35      BR: 'Brazil',
36      IO: 'British Indian Ocean Territory (the)',
37      BN: 'Brunei Darussalam',
38      BG: 'Bulgaria',
39      BF: 'Burkina Faso',
40      BI: 'Burundi',
41      CV: 'Cabo Verde',
42      KH: 'Cambodia',
43      CM: 'Cameroon',
44      CA: 'Canada',
45      KY: 'Cayman Islands (the)',
46      CF: 'Central African Republic (the)',
47      TD: 'Chad',
48      CL: 'Chile',
49      CN: 'China',
50      CX: 'Christmas Island',
51      CC: 'Cocos (Keeling) Islands (the)',
52      CO: 'Colombia',
53      KM: 'Comoros (the)',
54      CD: 'Congo (the Democratic Republic of the)',
55      CG: 'Congo (the)',
56      CK: 'Cook Islands (the)',
57      CR: 'Costa Rica',
58      HR: 'Croatia',
59      CU: 'Cuba',
60      CW: 'Curaçao',
61      CY: 'Cyprus',
62      CZ: 'Czechia',
63      CI: 'Côte d\'Ivoire',
64      DK: 'Denmark',
65      DJ: 'Djibouti',
66      DM: 'Dominica',
67      DO: 'Dominican Republic (the)',
68      EC: 'Ecuador',
69      EG: 'Egypt',
70      SV: 'El Salvador',
71      GQ: 'Equatorial Guinea',
72      ER: 'Eritrea',
73      EE: 'Estonia',
74      SZ: 'Eswatini',
75      ET: 'Ethiopia',
76      FK: 'Falkland Islands (the) [Malvinas]',
77      FO: 'Faroe Islands (the)',
78      FJ: 'Fiji',
79      FI: 'Finland',
80      FR: 'France',
81      GF: 'French Guiana',
82      PF: 'French Polynesia',
83      TF: 'French Southern Territories (the)',
84      GA: 'Gabon',
85      GM: 'Gambia (the)',
86      GE: 'Georgia',
87      DE: 'Germany',
88      GH: 'Ghana',
89      GI: 'Gibraltar',
90      GR: 'Greece',
91      GL: 'Greenland',
92      GD: 'Grenada',
93      GP: 'Guadeloupe',
94      GU: 'Guam',
95      GT: 'Guatemala',
96      GG: 'Guernsey',
97      GN: 'Guinea',
98      GW: 'Guinea-Bissau',
99      GY: 'Guyana',
100      HT: 'Haiti',
101      HM: 'Heard Island and McDonald Islands',
102      VA: 'Holy See (the)',
103      HN: 'Honduras',
104      HK: 'Hong Kong',
105      HU: 'Hungary',
106      IS: 'Iceland',
107      IN: 'India',
108      ID: 'Indonesia',
109      IR: 'Iran (Islamic Republic of)',
110      IQ: 'Iraq',
111      IE: 'Ireland',
112      IM: 'Isle of Man',
113      IL: 'Israel',
114      IT: 'Italy',
115      JM: 'Jamaica',
116      JP: 'Japan',
117      JE: 'Jersey',
118      JO: 'Jordan',
119      KZ: 'Kazakhstan',
120      KE: 'Kenya',
121      KI: 'Kiribati',
122      KP: 'Korea (the Democratic People\'s Republic of)',
123      KR: 'Korea (the Republic of)',
124      KW: 'Kuwait',
125      KG: 'Kyrgyzstan',
126      LA: 'Lao People\'s Democratic Republic (the)',
127      LV: 'Latvia',
128      LB: 'Lebanon',
129      LS: 'Lesotho',
130      LR: 'Liberia',
131      LY: 'Libya',
132      LI: 'Liechtenstein',
133      LT: 'Lithuania',
134      LU: 'Luxembourg',
135      MO: 'Macao',
136      MG: 'Madagascar',
137      MW: 'Malawi',
138      MY: 'Malaysia',
139      MV: 'Maldives',
140      ML: 'Mali',
141      MT: 'Malta',
142      MH: 'Marshall Islands (the)',
143      MQ: 'Martinique',
144      MR: 'Mauritania',
145      MU: 'Mauritius',
146      YT: 'Mayotte',
147      MX: 'Mexico',
148      FM: 'Micronesia (Federated States of)',
149      MD: 'Moldova (the Republic of)',
150      MC: 'Monaco',
151      MN: 'Mongolia',
152      ME: 'Montenegro',
153      MS: 'Montserrat',
154      MA: 'Morocco',
155      MZ: 'Mozambique',
156      MM: 'Myanmar',
157      NA: 'Namibia',
158      NR: 'Nauru',
159      NP: 'Nepal',
160      NL: 'Netherlands (the)',
161      NC: 'New Caledonia',
162      NZ: 'New Zealand',
163      NI: 'Nicaragua',
164      NE: 'Niger (the)',
165      NG: 'Nigeria',
166      NU: 'Niue',
167      NF: 'Norfolk Island',
168      MP: 'Northern Mariana Islands (the)',
169      NO: 'Norway',
170      OM: 'Oman',
171      PK: 'Pakistan',
172      PW: 'Palau',
173      PS: 'Palestine, State of',
174      PA: 'Panama',
175      PG: 'Papua New Guinea',
176      PY: 'Paraguay',
177      PE: 'Peru',
178      PH: 'Philippines (the)',
179      PN: 'Pitcairn',
180      PL: 'Poland',
181      PT: 'Portugal',
182      PR: 'Puerto Rico',
183      QA: 'Qatar',
184      MK: 'Republic of North Macedonia',
185      RO: 'Romania',
186      RU: 'Russian Federation (the)',
187      RW: 'Rwanda',
188      RE: 'Réunion',
189      BL: 'Saint Barthélemy',
190      SH: 'Saint Helena, Ascension and Tristan da Cunha',
191      KN: 'Saint Kitts and Nevis',
192      LC: 'Saint Lucia',
193      MF: 'Saint Martin (French part)',
194      PM: 'Saint Pierre and Miquelon',
195      VC: 'Saint Vincent and the Grenadines',
196      WS: 'Samoa',
197      SM: 'San Marino',
198      ST: 'Sao Tome and Principe',
199      SA: 'Saudi Arabia',
200      SN: 'Senegal',
201      RS: 'Serbia',
202      SC: 'Seychelles',
203      SL: 'Sierra Leone',
204      SG: 'Singapore',
205      SX: 'Sint Maarten (Dutch part)',
206      SK: 'Slovakia',
207      SI: 'Slovenia',
208      SB: 'Solomon Islands',
209      SO: 'Somalia',
210      ZA: 'South Africa',
211      GS: 'South Georgia and the South Sandwich Islands',
212      SS: 'South Sudan',
213      ES: 'Spain',
214      LK: 'Sri Lanka',
215      SD: 'Sudan (the)',
216      SR: 'Suriname',
217      SJ: 'Svalbard and Jan Mayen',
218      SE: 'Sweden',
219      CH: 'Switzerland',
220      SY: 'Syrian Arab Republic',
221      TW: 'Taiwan (Province of China)',
222      TJ: 'Tajikistan',
223      TZ: 'Tanzania, United Republic of',
224      TH: 'Thailand',
225      TL: 'Timor-Leste',
226      TG: 'Togo',
227      TK: 'Tokelau',
228      TO: 'Tonga',
229      TT: 'Trinidad and Tobago',
230      TN: 'Tunisia',
231      TR: 'Turkey',
232      TM: 'Turkmenistan',
233      TC: 'Turks and Caicos Islands (the)',
234      TV: 'Tuvalu',
235      UG: 'Uganda',
236      UA: 'Ukraine',
237      AE: 'United Arab Emirates (the)',
238      GB: 'United Kingdom of Great Britain and Northern Ireland (the)',
239      UM: 'United States Minor Outlying Islands (the)',
240      US: 'United States of America (the)',
241      UY: 'Uruguay',
242      UZ: 'Uzbekistan',
243      VU: 'Vanuatu',
244      VE: 'Venezuela (Bolivarian Republic of)',
245      VN: 'Viet Nam',
246      VG: 'Virgin Islands (British)',
247      VI: 'Virgin Islands (U.S.)',
248      WF: 'Wallis and Futuna',
249      EH: 'Western Sahara',
250      YE: 'Yemen',
251      ZM: 'Zambia',
252      ZW: 'Zimbabwe',
253      AX: 'Åland Islands',
254    };
255
256    return nameByCode[code.toUpperCase()];
257  }
258}

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