1 | (() => {
|
2 |
|
3 | function CanonicalizeLocaleList(locales) {
|
4 | return Intl.getCanonicalLocales(locales);
|
5 | }
|
6 |
|
7 |
|
8 | function ToString(o) {
|
9 | if (typeof o === "symbol") {
|
10 | throw TypeError("Cannot convert a Symbol value to a string");
|
11 | }
|
12 | return String(o);
|
13 | }
|
14 | function ToObject(arg) {
|
15 | if (arg == null) {
|
16 | throw new TypeError("undefined/null cannot be converted to object");
|
17 | }
|
18 | return Object(arg);
|
19 | }
|
20 | function SameValue(x, y) {
|
21 | if (Object.is) {
|
22 | return Object.is(x, y);
|
23 | }
|
24 | if (x === y) {
|
25 | return x !== 0 || 1 / x === 1 / y;
|
26 | }
|
27 | return x !== x && y !== y;
|
28 | }
|
29 | function Type(x) {
|
30 | if (x === null) {
|
31 | return "Null";
|
32 | }
|
33 | if (typeof x === "undefined") {
|
34 | return "Undefined";
|
35 | }
|
36 | if (typeof x === "function" || typeof x === "object") {
|
37 | return "Object";
|
38 | }
|
39 | if (typeof x === "number") {
|
40 | return "Number";
|
41 | }
|
42 | if (typeof x === "boolean") {
|
43 | return "Boolean";
|
44 | }
|
45 | if (typeof x === "string") {
|
46 | return "String";
|
47 | }
|
48 | if (typeof x === "symbol") {
|
49 | return "Symbol";
|
50 | }
|
51 | if (typeof x === "bigint") {
|
52 | return "BigInt";
|
53 | }
|
54 | }
|
55 | var MINUTES_PER_HOUR = 60;
|
56 | var SECONDS_PER_MINUTE = 60;
|
57 | var MS_PER_SECOND = 1e3;
|
58 | var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
|
59 | var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
|
60 |
|
61 |
|
62 | function CoerceOptionsToObject(options) {
|
63 | if (typeof options === "undefined") {
|
64 | return Object.create(null);
|
65 | }
|
66 | return ToObject(options);
|
67 | }
|
68 |
|
69 |
|
70 | function GetOption(opts, prop, type, values, fallback) {
|
71 | if (typeof opts !== "object") {
|
72 | throw new TypeError("Options must be an object");
|
73 | }
|
74 | var value = opts[prop];
|
75 | if (value !== void 0) {
|
76 | if (type !== "boolean" && type !== "string") {
|
77 | throw new TypeError("invalid type");
|
78 | }
|
79 | if (type === "boolean") {
|
80 | value = Boolean(value);
|
81 | }
|
82 | if (type === "string") {
|
83 | value = ToString(value);
|
84 | }
|
85 | if (values !== void 0 && !values.filter(function(val) {
|
86 | return val == value;
|
87 | }).length) {
|
88 | throw new RangeError("".concat(value, " is not within ").concat(values.join(", ")));
|
89 | }
|
90 | return value;
|
91 | }
|
92 | return fallback;
|
93 | }
|
94 |
|
95 |
|
96 | var SANCTIONED_UNITS = [
|
97 | "angle-degree",
|
98 | "area-acre",
|
99 | "area-hectare",
|
100 | "concentr-percent",
|
101 | "digital-bit",
|
102 | "digital-byte",
|
103 | "digital-gigabit",
|
104 | "digital-gigabyte",
|
105 | "digital-kilobit",
|
106 | "digital-kilobyte",
|
107 | "digital-megabit",
|
108 | "digital-megabyte",
|
109 | "digital-petabyte",
|
110 | "digital-terabit",
|
111 | "digital-terabyte",
|
112 | "duration-day",
|
113 | "duration-hour",
|
114 | "duration-millisecond",
|
115 | "duration-minute",
|
116 | "duration-month",
|
117 | "duration-second",
|
118 | "duration-week",
|
119 | "duration-year",
|
120 | "length-centimeter",
|
121 | "length-foot",
|
122 | "length-inch",
|
123 | "length-kilometer",
|
124 | "length-meter",
|
125 | "length-mile-scandinavian",
|
126 | "length-mile",
|
127 | "length-millimeter",
|
128 | "length-yard",
|
129 | "mass-gram",
|
130 | "mass-kilogram",
|
131 | "mass-ounce",
|
132 | "mass-pound",
|
133 | "mass-stone",
|
134 | "temperature-celsius",
|
135 | "temperature-fahrenheit",
|
136 | "volume-fluid-ounce",
|
137 | "volume-gallon",
|
138 | "volume-liter",
|
139 | "volume-milliliter"
|
140 | ];
|
141 | function removeUnitNamespace(unit) {
|
142 | return unit.slice(unit.indexOf("-") + 1);
|
143 | }
|
144 | var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
145 |
|
146 |
|
147 | function invariant(condition, message, Err) {
|
148 | if (Err === void 0) {
|
149 | Err = Error;
|
150 | }
|
151 | if (!condition) {
|
152 | throw new Err(message);
|
153 | }
|
154 | }
|
155 |
|
156 |
|
157 | var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
|
158 |
|
159 |
|
160 | var CARET_S_UNICODE_REGEX = new RegExp("^".concat(S_UNICODE_REGEX.source));
|
161 | var S_DOLLAR_UNICODE_REGEX = new RegExp("".concat(S_UNICODE_REGEX.source, "$"));
|
162 |
|
163 |
|
164 | function CanonicalizeLocaleList2(locales) {
|
165 | return Intl.getCanonicalLocales(locales);
|
166 | }
|
167 |
|
168 |
|
169 | var extendStatics = function(d, b) {
|
170 | extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
171 | d2.__proto__ = b2;
|
172 | } || function(d2, b2) {
|
173 | for (var p in b2)
|
174 | if (Object.prototype.hasOwnProperty.call(b2, p))
|
175 | d2[p] = b2[p];
|
176 | };
|
177 | return extendStatics(d, b);
|
178 | };
|
179 | function __extends(d, b) {
|
180 | if (typeof b !== "function" && b !== null)
|
181 | throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
182 | extendStatics(d, b);
|
183 | function __() {
|
184 | this.constructor = d;
|
185 | }
|
186 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
187 | }
|
188 | function __spreadArray(to, from, pack) {
|
189 | if (pack || arguments.length === 2)
|
190 | for (var i = 0, l = from.length, ar; i < l; i++) {
|
191 | if (ar || !(i in from)) {
|
192 | if (!ar)
|
193 | ar = Array.prototype.slice.call(from, 0, i);
|
194 | ar[i] = from[i];
|
195 | }
|
196 | }
|
197 | return to.concat(ar || Array.prototype.slice.call(from));
|
198 | }
|
199 |
|
200 |
|
201 | var data = {
|
202 | supplemental: {
|
203 | languageMatching: {
|
204 | "written-new": [
|
205 | {
|
206 | paradigmLocales: {
|
207 | _locales: "en en_GB es es_419 pt_BR pt_PT"
|
208 | }
|
209 | },
|
210 | {
|
211 | $enUS: {
|
212 | _value: "AS+CA+GU+MH+MP+PH+PR+UM+US+VI"
|
213 | }
|
214 | },
|
215 | {
|
216 | $cnsar: {
|
217 | _value: "HK+MO"
|
218 | }
|
219 | },
|
220 | {
|
221 | $americas: {
|
222 | _value: "019"
|
223 | }
|
224 | },
|
225 | {
|
226 | $maghreb: {
|
227 | _value: "MA+DZ+TN+LY+MR+EH"
|
228 | }
|
229 | },
|
230 | {
|
231 | no: {
|
232 | _desired: "nb",
|
233 | _distance: "1"
|
234 | }
|
235 | },
|
236 | {
|
237 | bs: {
|
238 | _desired: "hr",
|
239 | _distance: "4"
|
240 | }
|
241 | },
|
242 | {
|
243 | bs: {
|
244 | _desired: "sh",
|
245 | _distance: "4"
|
246 | }
|
247 | },
|
248 | {
|
249 | hr: {
|
250 | _desired: "sh",
|
251 | _distance: "4"
|
252 | }
|
253 | },
|
254 | {
|
255 | sr: {
|
256 | _desired: "sh",
|
257 | _distance: "4"
|
258 | }
|
259 | },
|
260 | {
|
261 | aa: {
|
262 | _desired: "ssy",
|
263 | _distance: "4"
|
264 | }
|
265 | },
|
266 | {
|
267 | de: {
|
268 | _desired: "gsw",
|
269 | _distance: "4",
|
270 | _oneway: "true"
|
271 | }
|
272 | },
|
273 | {
|
274 | de: {
|
275 | _desired: "lb",
|
276 | _distance: "4",
|
277 | _oneway: "true"
|
278 | }
|
279 | },
|
280 | {
|
281 | no: {
|
282 | _desired: "da",
|
283 | _distance: "8"
|
284 | }
|
285 | },
|
286 | {
|
287 | nb: {
|
288 | _desired: "da",
|
289 | _distance: "8"
|
290 | }
|
291 | },
|
292 | {
|
293 | ru: {
|
294 | _desired: "ab",
|
295 | _distance: "30",
|
296 | _oneway: "true"
|
297 | }
|
298 | },
|
299 | {
|
300 | en: {
|
301 | _desired: "ach",
|
302 | _distance: "30",
|
303 | _oneway: "true"
|
304 | }
|
305 | },
|
306 | {
|
307 | nl: {
|
308 | _desired: "af",
|
309 | _distance: "20",
|
310 | _oneway: "true"
|
311 | }
|
312 | },
|
313 | {
|
314 | en: {
|
315 | _desired: "ak",
|
316 | _distance: "30",
|
317 | _oneway: "true"
|
318 | }
|
319 | },
|
320 | {
|
321 | en: {
|
322 | _desired: "am",
|
323 | _distance: "30",
|
324 | _oneway: "true"
|
325 | }
|
326 | },
|
327 | {
|
328 | es: {
|
329 | _desired: "ay",
|
330 | _distance: "20",
|
331 | _oneway: "true"
|
332 | }
|
333 | },
|
334 | {
|
335 | ru: {
|
336 | _desired: "az",
|
337 | _distance: "30",
|
338 | _oneway: "true"
|
339 | }
|
340 | },
|
341 | {
|
342 | ur: {
|
343 | _desired: "bal",
|
344 | _distance: "20",
|
345 | _oneway: "true"
|
346 | }
|
347 | },
|
348 | {
|
349 | ru: {
|
350 | _desired: "be",
|
351 | _distance: "20",
|
352 | _oneway: "true"
|
353 | }
|
354 | },
|
355 | {
|
356 | en: {
|
357 | _desired: "bem",
|
358 | _distance: "30",
|
359 | _oneway: "true"
|
360 | }
|
361 | },
|
362 | {
|
363 | hi: {
|
364 | _desired: "bh",
|
365 | _distance: "30",
|
366 | _oneway: "true"
|
367 | }
|
368 | },
|
369 | {
|
370 | en: {
|
371 | _desired: "bn",
|
372 | _distance: "30",
|
373 | _oneway: "true"
|
374 | }
|
375 | },
|
376 | {
|
377 | zh: {
|
378 | _desired: "bo",
|
379 | _distance: "20",
|
380 | _oneway: "true"
|
381 | }
|
382 | },
|
383 | {
|
384 | fr: {
|
385 | _desired: "br",
|
386 | _distance: "20",
|
387 | _oneway: "true"
|
388 | }
|
389 | },
|
390 | {
|
391 | es: {
|
392 | _desired: "ca",
|
393 | _distance: "20",
|
394 | _oneway: "true"
|
395 | }
|
396 | },
|
397 | {
|
398 | fil: {
|
399 | _desired: "ceb",
|
400 | _distance: "30",
|
401 | _oneway: "true"
|
402 | }
|
403 | },
|
404 | {
|
405 | en: {
|
406 | _desired: "chr",
|
407 | _distance: "20",
|
408 | _oneway: "true"
|
409 | }
|
410 | },
|
411 | {
|
412 | ar: {
|
413 | _desired: "ckb",
|
414 | _distance: "30",
|
415 | _oneway: "true"
|
416 | }
|
417 | },
|
418 | {
|
419 | fr: {
|
420 | _desired: "co",
|
421 | _distance: "20",
|
422 | _oneway: "true"
|
423 | }
|
424 | },
|
425 | {
|
426 | fr: {
|
427 | _desired: "crs",
|
428 | _distance: "20",
|
429 | _oneway: "true"
|
430 | }
|
431 | },
|
432 | {
|
433 | sk: {
|
434 | _desired: "cs",
|
435 | _distance: "20"
|
436 | }
|
437 | },
|
438 | {
|
439 | en: {
|
440 | _desired: "cy",
|
441 | _distance: "20",
|
442 | _oneway: "true"
|
443 | }
|
444 | },
|
445 | {
|
446 | en: {
|
447 | _desired: "ee",
|
448 | _distance: "30",
|
449 | _oneway: "true"
|
450 | }
|
451 | },
|
452 | {
|
453 | en: {
|
454 | _desired: "eo",
|
455 | _distance: "30",
|
456 | _oneway: "true"
|
457 | }
|
458 | },
|
459 | {
|
460 | es: {
|
461 | _desired: "eu",
|
462 | _distance: "20",
|
463 | _oneway: "true"
|
464 | }
|
465 | },
|
466 | {
|
467 | da: {
|
468 | _desired: "fo",
|
469 | _distance: "20",
|
470 | _oneway: "true"
|
471 | }
|
472 | },
|
473 | {
|
474 | nl: {
|
475 | _desired: "fy",
|
476 | _distance: "20",
|
477 | _oneway: "true"
|
478 | }
|
479 | },
|
480 | {
|
481 | en: {
|
482 | _desired: "ga",
|
483 | _distance: "20",
|
484 | _oneway: "true"
|
485 | }
|
486 | },
|
487 | {
|
488 | en: {
|
489 | _desired: "gaa",
|
490 | _distance: "30",
|
491 | _oneway: "true"
|
492 | }
|
493 | },
|
494 | {
|
495 | en: {
|
496 | _desired: "gd",
|
497 | _distance: "20",
|
498 | _oneway: "true"
|
499 | }
|
500 | },
|
501 | {
|
502 | es: {
|
503 | _desired: "gl",
|
504 | _distance: "20",
|
505 | _oneway: "true"
|
506 | }
|
507 | },
|
508 | {
|
509 | es: {
|
510 | _desired: "gn",
|
511 | _distance: "20",
|
512 | _oneway: "true"
|
513 | }
|
514 | },
|
515 | {
|
516 | hi: {
|
517 | _desired: "gu",
|
518 | _distance: "30",
|
519 | _oneway: "true"
|
520 | }
|
521 | },
|
522 | {
|
523 | en: {
|
524 | _desired: "ha",
|
525 | _distance: "30",
|
526 | _oneway: "true"
|
527 | }
|
528 | },
|
529 | {
|
530 | en: {
|
531 | _desired: "haw",
|
532 | _distance: "20",
|
533 | _oneway: "true"
|
534 | }
|
535 | },
|
536 | {
|
537 | fr: {
|
538 | _desired: "ht",
|
539 | _distance: "20",
|
540 | _oneway: "true"
|
541 | }
|
542 | },
|
543 | {
|
544 | ru: {
|
545 | _desired: "hy",
|
546 | _distance: "30",
|
547 | _oneway: "true"
|
548 | }
|
549 | },
|
550 | {
|
551 | en: {
|
552 | _desired: "ia",
|
553 | _distance: "30",
|
554 | _oneway: "true"
|
555 | }
|
556 | },
|
557 | {
|
558 | en: {
|
559 | _desired: "ig",
|
560 | _distance: "30",
|
561 | _oneway: "true"
|
562 | }
|
563 | },
|
564 | {
|
565 | en: {
|
566 | _desired: "is",
|
567 | _distance: "20",
|
568 | _oneway: "true"
|
569 | }
|
570 | },
|
571 | {
|
572 | id: {
|
573 | _desired: "jv",
|
574 | _distance: "20",
|
575 | _oneway: "true"
|
576 | }
|
577 | },
|
578 | {
|
579 | en: {
|
580 | _desired: "ka",
|
581 | _distance: "30",
|
582 | _oneway: "true"
|
583 | }
|
584 | },
|
585 | {
|
586 | fr: {
|
587 | _desired: "kg",
|
588 | _distance: "30",
|
589 | _oneway: "true"
|
590 | }
|
591 | },
|
592 | {
|
593 | ru: {
|
594 | _desired: "kk",
|
595 | _distance: "30",
|
596 | _oneway: "true"
|
597 | }
|
598 | },
|
599 | {
|
600 | en: {
|
601 | _desired: "km",
|
602 | _distance: "30",
|
603 | _oneway: "true"
|
604 | }
|
605 | },
|
606 | {
|
607 | en: {
|
608 | _desired: "kn",
|
609 | _distance: "30",
|
610 | _oneway: "true"
|
611 | }
|
612 | },
|
613 | {
|
614 | en: {
|
615 | _desired: "kri",
|
616 | _distance: "30",
|
617 | _oneway: "true"
|
618 | }
|
619 | },
|
620 | {
|
621 | tr: {
|
622 | _desired: "ku",
|
623 | _distance: "30",
|
624 | _oneway: "true"
|
625 | }
|
626 | },
|
627 | {
|
628 | ru: {
|
629 | _desired: "ky",
|
630 | _distance: "30",
|
631 | _oneway: "true"
|
632 | }
|
633 | },
|
634 | {
|
635 | it: {
|
636 | _desired: "la",
|
637 | _distance: "20",
|
638 | _oneway: "true"
|
639 | }
|
640 | },
|
641 | {
|
642 | en: {
|
643 | _desired: "lg",
|
644 | _distance: "30",
|
645 | _oneway: "true"
|
646 | }
|
647 | },
|
648 | {
|
649 | fr: {
|
650 | _desired: "ln",
|
651 | _distance: "30",
|
652 | _oneway: "true"
|
653 | }
|
654 | },
|
655 | {
|
656 | en: {
|
657 | _desired: "lo",
|
658 | _distance: "30",
|
659 | _oneway: "true"
|
660 | }
|
661 | },
|
662 | {
|
663 | en: {
|
664 | _desired: "loz",
|
665 | _distance: "30",
|
666 | _oneway: "true"
|
667 | }
|
668 | },
|
669 | {
|
670 | fr: {
|
671 | _desired: "lua",
|
672 | _distance: "30",
|
673 | _oneway: "true"
|
674 | }
|
675 | },
|
676 | {
|
677 | hi: {
|
678 | _desired: "mai",
|
679 | _distance: "20",
|
680 | _oneway: "true"
|
681 | }
|
682 | },
|
683 | {
|
684 | en: {
|
685 | _desired: "mfe",
|
686 | _distance: "30",
|
687 | _oneway: "true"
|
688 | }
|
689 | },
|
690 | {
|
691 | fr: {
|
692 | _desired: "mg",
|
693 | _distance: "30",
|
694 | _oneway: "true"
|
695 | }
|
696 | },
|
697 | {
|
698 | en: {
|
699 | _desired: "mi",
|
700 | _distance: "20",
|
701 | _oneway: "true"
|
702 | }
|
703 | },
|
704 | {
|
705 | en: {
|
706 | _desired: "ml",
|
707 | _distance: "30",
|
708 | _oneway: "true"
|
709 | }
|
710 | },
|
711 | {
|
712 | ru: {
|
713 | _desired: "mn",
|
714 | _distance: "30",
|
715 | _oneway: "true"
|
716 | }
|
717 | },
|
718 | {
|
719 | hi: {
|
720 | _desired: "mr",
|
721 | _distance: "30",
|
722 | _oneway: "true"
|
723 | }
|
724 | },
|
725 | {
|
726 | id: {
|
727 | _desired: "ms",
|
728 | _distance: "30",
|
729 | _oneway: "true"
|
730 | }
|
731 | },
|
732 | {
|
733 | en: {
|
734 | _desired: "mt",
|
735 | _distance: "30",
|
736 | _oneway: "true"
|
737 | }
|
738 | },
|
739 | {
|
740 | en: {
|
741 | _desired: "my",
|
742 | _distance: "30",
|
743 | _oneway: "true"
|
744 | }
|
745 | },
|
746 | {
|
747 | en: {
|
748 | _desired: "ne",
|
749 | _distance: "30",
|
750 | _oneway: "true"
|
751 | }
|
752 | },
|
753 | {
|
754 | nb: {
|
755 | _desired: "nn",
|
756 | _distance: "20"
|
757 | }
|
758 | },
|
759 | {
|
760 | no: {
|
761 | _desired: "nn",
|
762 | _distance: "20"
|
763 | }
|
764 | },
|
765 | {
|
766 | en: {
|
767 | _desired: "nso",
|
768 | _distance: "30",
|
769 | _oneway: "true"
|
770 | }
|
771 | },
|
772 | {
|
773 | en: {
|
774 | _desired: "ny",
|
775 | _distance: "30",
|
776 | _oneway: "true"
|
777 | }
|
778 | },
|
779 | {
|
780 | en: {
|
781 | _desired: "nyn",
|
782 | _distance: "30",
|
783 | _oneway: "true"
|
784 | }
|
785 | },
|
786 | {
|
787 | fr: {
|
788 | _desired: "oc",
|
789 | _distance: "20",
|
790 | _oneway: "true"
|
791 | }
|
792 | },
|
793 | {
|
794 | en: {
|
795 | _desired: "om",
|
796 | _distance: "30",
|
797 | _oneway: "true"
|
798 | }
|
799 | },
|
800 | {
|
801 | en: {
|
802 | _desired: "or",
|
803 | _distance: "30",
|
804 | _oneway: "true"
|
805 | }
|
806 | },
|
807 | {
|
808 | en: {
|
809 | _desired: "pa",
|
810 | _distance: "30",
|
811 | _oneway: "true"
|
812 | }
|
813 | },
|
814 | {
|
815 | en: {
|
816 | _desired: "pcm",
|
817 | _distance: "20",
|
818 | _oneway: "true"
|
819 | }
|
820 | },
|
821 | {
|
822 | en: {
|
823 | _desired: "ps",
|
824 | _distance: "30",
|
825 | _oneway: "true"
|
826 | }
|
827 | },
|
828 | {
|
829 | es: {
|
830 | _desired: "qu",
|
831 | _distance: "30",
|
832 | _oneway: "true"
|
833 | }
|
834 | },
|
835 | {
|
836 | de: {
|
837 | _desired: "rm",
|
838 | _distance: "20",
|
839 | _oneway: "true"
|
840 | }
|
841 | },
|
842 | {
|
843 | en: {
|
844 | _desired: "rn",
|
845 | _distance: "30",
|
846 | _oneway: "true"
|
847 | }
|
848 | },
|
849 | {
|
850 | fr: {
|
851 | _desired: "rw",
|
852 | _distance: "30",
|
853 | _oneway: "true"
|
854 | }
|
855 | },
|
856 | {
|
857 | hi: {
|
858 | _desired: "sa",
|
859 | _distance: "30",
|
860 | _oneway: "true"
|
861 | }
|
862 | },
|
863 | {
|
864 | en: {
|
865 | _desired: "sd",
|
866 | _distance: "30",
|
867 | _oneway: "true"
|
868 | }
|
869 | },
|
870 | {
|
871 | en: {
|
872 | _desired: "si",
|
873 | _distance: "30",
|
874 | _oneway: "true"
|
875 | }
|
876 | },
|
877 | {
|
878 | en: {
|
879 | _desired: "sn",
|
880 | _distance: "30",
|
881 | _oneway: "true"
|
882 | }
|
883 | },
|
884 | {
|
885 | en: {
|
886 | _desired: "so",
|
887 | _distance: "30",
|
888 | _oneway: "true"
|
889 | }
|
890 | },
|
891 | {
|
892 | en: {
|
893 | _desired: "sq",
|
894 | _distance: "30",
|
895 | _oneway: "true"
|
896 | }
|
897 | },
|
898 | {
|
899 | en: {
|
900 | _desired: "st",
|
901 | _distance: "30",
|
902 | _oneway: "true"
|
903 | }
|
904 | },
|
905 | {
|
906 | id: {
|
907 | _desired: "su",
|
908 | _distance: "20",
|
909 | _oneway: "true"
|
910 | }
|
911 | },
|
912 | {
|
913 | en: {
|
914 | _desired: "sw",
|
915 | _distance: "30",
|
916 | _oneway: "true"
|
917 | }
|
918 | },
|
919 | {
|
920 | en: {
|
921 | _desired: "ta",
|
922 | _distance: "30",
|
923 | _oneway: "true"
|
924 | }
|
925 | },
|
926 | {
|
927 | en: {
|
928 | _desired: "te",
|
929 | _distance: "30",
|
930 | _oneway: "true"
|
931 | }
|
932 | },
|
933 | {
|
934 | ru: {
|
935 | _desired: "tg",
|
936 | _distance: "30",
|
937 | _oneway: "true"
|
938 | }
|
939 | },
|
940 | {
|
941 | en: {
|
942 | _desired: "ti",
|
943 | _distance: "30",
|
944 | _oneway: "true"
|
945 | }
|
946 | },
|
947 | {
|
948 | ru: {
|
949 | _desired: "tk",
|
950 | _distance: "30",
|
951 | _oneway: "true"
|
952 | }
|
953 | },
|
954 | {
|
955 | en: {
|
956 | _desired: "tlh",
|
957 | _distance: "30",
|
958 | _oneway: "true"
|
959 | }
|
960 | },
|
961 | {
|
962 | en: {
|
963 | _desired: "tn",
|
964 | _distance: "30",
|
965 | _oneway: "true"
|
966 | }
|
967 | },
|
968 | {
|
969 | en: {
|
970 | _desired: "to",
|
971 | _distance: "30",
|
972 | _oneway: "true"
|
973 | }
|
974 | },
|
975 | {
|
976 | ru: {
|
977 | _desired: "tt",
|
978 | _distance: "30",
|
979 | _oneway: "true"
|
980 | }
|
981 | },
|
982 | {
|
983 | en: {
|
984 | _desired: "tum",
|
985 | _distance: "30",
|
986 | _oneway: "true"
|
987 | }
|
988 | },
|
989 | {
|
990 | zh: {
|
991 | _desired: "ug",
|
992 | _distance: "20",
|
993 | _oneway: "true"
|
994 | }
|
995 | },
|
996 | {
|
997 | ru: {
|
998 | _desired: "uk",
|
999 | _distance: "20",
|
1000 | _oneway: "true"
|
1001 | }
|
1002 | },
|
1003 | {
|
1004 | en: {
|
1005 | _desired: "ur",
|
1006 | _distance: "30",
|
1007 | _oneway: "true"
|
1008 | }
|
1009 | },
|
1010 | {
|
1011 | ru: {
|
1012 | _desired: "uz",
|
1013 | _distance: "30",
|
1014 | _oneway: "true"
|
1015 | }
|
1016 | },
|
1017 | {
|
1018 | fr: {
|
1019 | _desired: "wo",
|
1020 | _distance: "30",
|
1021 | _oneway: "true"
|
1022 | }
|
1023 | },
|
1024 | {
|
1025 | en: {
|
1026 | _desired: "xh",
|
1027 | _distance: "30",
|
1028 | _oneway: "true"
|
1029 | }
|
1030 | },
|
1031 | {
|
1032 | en: {
|
1033 | _desired: "yi",
|
1034 | _distance: "30",
|
1035 | _oneway: "true"
|
1036 | }
|
1037 | },
|
1038 | {
|
1039 | en: {
|
1040 | _desired: "yo",
|
1041 | _distance: "30",
|
1042 | _oneway: "true"
|
1043 | }
|
1044 | },
|
1045 | {
|
1046 | zh: {
|
1047 | _desired: "za",
|
1048 | _distance: "20",
|
1049 | _oneway: "true"
|
1050 | }
|
1051 | },
|
1052 | {
|
1053 | en: {
|
1054 | _desired: "zu",
|
1055 | _distance: "30",
|
1056 | _oneway: "true"
|
1057 | }
|
1058 | },
|
1059 | {
|
1060 | ar: {
|
1061 | _desired: "aao",
|
1062 | _distance: "10",
|
1063 | _oneway: "true"
|
1064 | }
|
1065 | },
|
1066 | {
|
1067 | ar: {
|
1068 | _desired: "abh",
|
1069 | _distance: "10",
|
1070 | _oneway: "true"
|
1071 | }
|
1072 | },
|
1073 | {
|
1074 | ar: {
|
1075 | _desired: "abv",
|
1076 | _distance: "10",
|
1077 | _oneway: "true"
|
1078 | }
|
1079 | },
|
1080 | {
|
1081 | ar: {
|
1082 | _desired: "acm",
|
1083 | _distance: "10",
|
1084 | _oneway: "true"
|
1085 | }
|
1086 | },
|
1087 | {
|
1088 | ar: {
|
1089 | _desired: "acq",
|
1090 | _distance: "10",
|
1091 | _oneway: "true"
|
1092 | }
|
1093 | },
|
1094 | {
|
1095 | ar: {
|
1096 | _desired: "acw",
|
1097 | _distance: "10",
|
1098 | _oneway: "true"
|
1099 | }
|
1100 | },
|
1101 | {
|
1102 | ar: {
|
1103 | _desired: "acx",
|
1104 | _distance: "10",
|
1105 | _oneway: "true"
|
1106 | }
|
1107 | },
|
1108 | {
|
1109 | ar: {
|
1110 | _desired: "acy",
|
1111 | _distance: "10",
|
1112 | _oneway: "true"
|
1113 | }
|
1114 | },
|
1115 | {
|
1116 | ar: {
|
1117 | _desired: "adf",
|
1118 | _distance: "10",
|
1119 | _oneway: "true"
|
1120 | }
|
1121 | },
|
1122 | {
|
1123 | ar: {
|
1124 | _desired: "aeb",
|
1125 | _distance: "10",
|
1126 | _oneway: "true"
|
1127 | }
|
1128 | },
|
1129 | {
|
1130 | ar: {
|
1131 | _desired: "aec",
|
1132 | _distance: "10",
|
1133 | _oneway: "true"
|
1134 | }
|
1135 | },
|
1136 | {
|
1137 | ar: {
|
1138 | _desired: "afb",
|
1139 | _distance: "10",
|
1140 | _oneway: "true"
|
1141 | }
|
1142 | },
|
1143 | {
|
1144 | ar: {
|
1145 | _desired: "ajp",
|
1146 | _distance: "10",
|
1147 | _oneway: "true"
|
1148 | }
|
1149 | },
|
1150 | {
|
1151 | ar: {
|
1152 | _desired: "apc",
|
1153 | _distance: "10",
|
1154 | _oneway: "true"
|
1155 | }
|
1156 | },
|
1157 | {
|
1158 | ar: {
|
1159 | _desired: "apd",
|
1160 | _distance: "10",
|
1161 | _oneway: "true"
|
1162 | }
|
1163 | },
|
1164 | {
|
1165 | ar: {
|
1166 | _desired: "arq",
|
1167 | _distance: "10",
|
1168 | _oneway: "true"
|
1169 | }
|
1170 | },
|
1171 | {
|
1172 | ar: {
|
1173 | _desired: "ars",
|
1174 | _distance: "10",
|
1175 | _oneway: "true"
|
1176 | }
|
1177 | },
|
1178 | {
|
1179 | ar: {
|
1180 | _desired: "ary",
|
1181 | _distance: "10",
|
1182 | _oneway: "true"
|
1183 | }
|
1184 | },
|
1185 | {
|
1186 | ar: {
|
1187 | _desired: "arz",
|
1188 | _distance: "10",
|
1189 | _oneway: "true"
|
1190 | }
|
1191 | },
|
1192 | {
|
1193 | ar: {
|
1194 | _desired: "auz",
|
1195 | _distance: "10",
|
1196 | _oneway: "true"
|
1197 | }
|
1198 | },
|
1199 | {
|
1200 | ar: {
|
1201 | _desired: "avl",
|
1202 | _distance: "10",
|
1203 | _oneway: "true"
|
1204 | }
|
1205 | },
|
1206 | {
|
1207 | ar: {
|
1208 | _desired: "ayh",
|
1209 | _distance: "10",
|
1210 | _oneway: "true"
|
1211 | }
|
1212 | },
|
1213 | {
|
1214 | ar: {
|
1215 | _desired: "ayl",
|
1216 | _distance: "10",
|
1217 | _oneway: "true"
|
1218 | }
|
1219 | },
|
1220 | {
|
1221 | ar: {
|
1222 | _desired: "ayn",
|
1223 | _distance: "10",
|
1224 | _oneway: "true"
|
1225 | }
|
1226 | },
|
1227 | {
|
1228 | ar: {
|
1229 | _desired: "ayp",
|
1230 | _distance: "10",
|
1231 | _oneway: "true"
|
1232 | }
|
1233 | },
|
1234 | {
|
1235 | ar: {
|
1236 | _desired: "bbz",
|
1237 | _distance: "10",
|
1238 | _oneway: "true"
|
1239 | }
|
1240 | },
|
1241 | {
|
1242 | ar: {
|
1243 | _desired: "pga",
|
1244 | _distance: "10",
|
1245 | _oneway: "true"
|
1246 | }
|
1247 | },
|
1248 | {
|
1249 | ar: {
|
1250 | _desired: "shu",
|
1251 | _distance: "10",
|
1252 | _oneway: "true"
|
1253 | }
|
1254 | },
|
1255 | {
|
1256 | ar: {
|
1257 | _desired: "ssh",
|
1258 | _distance: "10",
|
1259 | _oneway: "true"
|
1260 | }
|
1261 | },
|
1262 | {
|
1263 | az: {
|
1264 | _desired: "azb",
|
1265 | _distance: "10",
|
1266 | _oneway: "true"
|
1267 | }
|
1268 | },
|
1269 | {
|
1270 | et: {
|
1271 | _desired: "vro",
|
1272 | _distance: "10",
|
1273 | _oneway: "true"
|
1274 | }
|
1275 | },
|
1276 | {
|
1277 | ff: {
|
1278 | _desired: "ffm",
|
1279 | _distance: "10",
|
1280 | _oneway: "true"
|
1281 | }
|
1282 | },
|
1283 | {
|
1284 | ff: {
|
1285 | _desired: "fub",
|
1286 | _distance: "10",
|
1287 | _oneway: "true"
|
1288 | }
|
1289 | },
|
1290 | {
|
1291 | ff: {
|
1292 | _desired: "fue",
|
1293 | _distance: "10",
|
1294 | _oneway: "true"
|
1295 | }
|
1296 | },
|
1297 | {
|
1298 | ff: {
|
1299 | _desired: "fuf",
|
1300 | _distance: "10",
|
1301 | _oneway: "true"
|
1302 | }
|
1303 | },
|
1304 | {
|
1305 | ff: {
|
1306 | _desired: "fuh",
|
1307 | _distance: "10",
|
1308 | _oneway: "true"
|
1309 | }
|
1310 | },
|
1311 | {
|
1312 | ff: {
|
1313 | _desired: "fui",
|
1314 | _distance: "10",
|
1315 | _oneway: "true"
|
1316 | }
|
1317 | },
|
1318 | {
|
1319 | ff: {
|
1320 | _desired: "fuq",
|
1321 | _distance: "10",
|
1322 | _oneway: "true"
|
1323 | }
|
1324 | },
|
1325 | {
|
1326 | ff: {
|
1327 | _desired: "fuv",
|
1328 | _distance: "10",
|
1329 | _oneway: "true"
|
1330 | }
|
1331 | },
|
1332 | {
|
1333 | gn: {
|
1334 | _desired: "gnw",
|
1335 | _distance: "10",
|
1336 | _oneway: "true"
|
1337 | }
|
1338 | },
|
1339 | {
|
1340 | gn: {
|
1341 | _desired: "gui",
|
1342 | _distance: "10",
|
1343 | _oneway: "true"
|
1344 | }
|
1345 | },
|
1346 | {
|
1347 | gn: {
|
1348 | _desired: "gun",
|
1349 | _distance: "10",
|
1350 | _oneway: "true"
|
1351 | }
|
1352 | },
|
1353 | {
|
1354 | gn: {
|
1355 | _desired: "nhd",
|
1356 | _distance: "10",
|
1357 | _oneway: "true"
|
1358 | }
|
1359 | },
|
1360 | {
|
1361 | iu: {
|
1362 | _desired: "ikt",
|
1363 | _distance: "10",
|
1364 | _oneway: "true"
|
1365 | }
|
1366 | },
|
1367 | {
|
1368 | kln: {
|
1369 | _desired: "enb",
|
1370 | _distance: "10",
|
1371 | _oneway: "true"
|
1372 | }
|
1373 | },
|
1374 | {
|
1375 | kln: {
|
1376 | _desired: "eyo",
|
1377 | _distance: "10",
|
1378 | _oneway: "true"
|
1379 | }
|
1380 | },
|
1381 | {
|
1382 | kln: {
|
1383 | _desired: "niq",
|
1384 | _distance: "10",
|
1385 | _oneway: "true"
|
1386 | }
|
1387 | },
|
1388 | {
|
1389 | kln: {
|
1390 | _desired: "oki",
|
1391 | _distance: "10",
|
1392 | _oneway: "true"
|
1393 | }
|
1394 | },
|
1395 | {
|
1396 | kln: {
|
1397 | _desired: "pko",
|
1398 | _distance: "10",
|
1399 | _oneway: "true"
|
1400 | }
|
1401 | },
|
1402 | {
|
1403 | kln: {
|
1404 | _desired: "sgc",
|
1405 | _distance: "10",
|
1406 | _oneway: "true"
|
1407 | }
|
1408 | },
|
1409 | {
|
1410 | kln: {
|
1411 | _desired: "tec",
|
1412 | _distance: "10",
|
1413 | _oneway: "true"
|
1414 | }
|
1415 | },
|
1416 | {
|
1417 | kln: {
|
1418 | _desired: "tuy",
|
1419 | _distance: "10",
|
1420 | _oneway: "true"
|
1421 | }
|
1422 | },
|
1423 | {
|
1424 | kok: {
|
1425 | _desired: "gom",
|
1426 | _distance: "10",
|
1427 | _oneway: "true"
|
1428 | }
|
1429 | },
|
1430 | {
|
1431 | kpe: {
|
1432 | _desired: "gkp",
|
1433 | _distance: "10",
|
1434 | _oneway: "true"
|
1435 | }
|
1436 | },
|
1437 | {
|
1438 | luy: {
|
1439 | _desired: "ida",
|
1440 | _distance: "10",
|
1441 | _oneway: "true"
|
1442 | }
|
1443 | },
|
1444 | {
|
1445 | luy: {
|
1446 | _desired: "lkb",
|
1447 | _distance: "10",
|
1448 | _oneway: "true"
|
1449 | }
|
1450 | },
|
1451 | {
|
1452 | luy: {
|
1453 | _desired: "lko",
|
1454 | _distance: "10",
|
1455 | _oneway: "true"
|
1456 | }
|
1457 | },
|
1458 | {
|
1459 | luy: {
|
1460 | _desired: "lks",
|
1461 | _distance: "10",
|
1462 | _oneway: "true"
|
1463 | }
|
1464 | },
|
1465 | {
|
1466 | luy: {
|
1467 | _desired: "lri",
|
1468 | _distance: "10",
|
1469 | _oneway: "true"
|
1470 | }
|
1471 | },
|
1472 | {
|
1473 | luy: {
|
1474 | _desired: "lrm",
|
1475 | _distance: "10",
|
1476 | _oneway: "true"
|
1477 | }
|
1478 | },
|
1479 | {
|
1480 | luy: {
|
1481 | _desired: "lsm",
|
1482 | _distance: "10",
|
1483 | _oneway: "true"
|
1484 | }
|
1485 | },
|
1486 | {
|
1487 | luy: {
|
1488 | _desired: "lto",
|
1489 | _distance: "10",
|
1490 | _oneway: "true"
|
1491 | }
|
1492 | },
|
1493 | {
|
1494 | luy: {
|
1495 | _desired: "lts",
|
1496 | _distance: "10",
|
1497 | _oneway: "true"
|
1498 | }
|
1499 | },
|
1500 | {
|
1501 | luy: {
|
1502 | _desired: "lwg",
|
1503 | _distance: "10",
|
1504 | _oneway: "true"
|
1505 | }
|
1506 | },
|
1507 | {
|
1508 | luy: {
|
1509 | _desired: "nle",
|
1510 | _distance: "10",
|
1511 | _oneway: "true"
|
1512 | }
|
1513 | },
|
1514 | {
|
1515 | luy: {
|
1516 | _desired: "nyd",
|
1517 | _distance: "10",
|
1518 | _oneway: "true"
|
1519 | }
|
1520 | },
|
1521 | {
|
1522 | luy: {
|
1523 | _desired: "rag",
|
1524 | _distance: "10",
|
1525 | _oneway: "true"
|
1526 | }
|
1527 | },
|
1528 | {
|
1529 | lv: {
|
1530 | _desired: "ltg",
|
1531 | _distance: "10",
|
1532 | _oneway: "true"
|
1533 | }
|
1534 | },
|
1535 | {
|
1536 | mg: {
|
1537 | _desired: "bhr",
|
1538 | _distance: "10",
|
1539 | _oneway: "true"
|
1540 | }
|
1541 | },
|
1542 | {
|
1543 | mg: {
|
1544 | _desired: "bjq",
|
1545 | _distance: "10",
|
1546 | _oneway: "true"
|
1547 | }
|
1548 | },
|
1549 | {
|
1550 | mg: {
|
1551 | _desired: "bmm",
|
1552 | _distance: "10",
|
1553 | _oneway: "true"
|
1554 | }
|
1555 | },
|
1556 | {
|
1557 | mg: {
|
1558 | _desired: "bzc",
|
1559 | _distance: "10",
|
1560 | _oneway: "true"
|
1561 | }
|
1562 | },
|
1563 | {
|
1564 | mg: {
|
1565 | _desired: "msh",
|
1566 | _distance: "10",
|
1567 | _oneway: "true"
|
1568 | }
|
1569 | },
|
1570 | {
|
1571 | mg: {
|
1572 | _desired: "skg",
|
1573 | _distance: "10",
|
1574 | _oneway: "true"
|
1575 | }
|
1576 | },
|
1577 | {
|
1578 | mg: {
|
1579 | _desired: "tdx",
|
1580 | _distance: "10",
|
1581 | _oneway: "true"
|
1582 | }
|
1583 | },
|
1584 | {
|
1585 | mg: {
|
1586 | _desired: "tkg",
|
1587 | _distance: "10",
|
1588 | _oneway: "true"
|
1589 | }
|
1590 | },
|
1591 | {
|
1592 | mg: {
|
1593 | _desired: "txy",
|
1594 | _distance: "10",
|
1595 | _oneway: "true"
|
1596 | }
|
1597 | },
|
1598 | {
|
1599 | mg: {
|
1600 | _desired: "xmv",
|
1601 | _distance: "10",
|
1602 | _oneway: "true"
|
1603 | }
|
1604 | },
|
1605 | {
|
1606 | mg: {
|
1607 | _desired: "xmw",
|
1608 | _distance: "10",
|
1609 | _oneway: "true"
|
1610 | }
|
1611 | },
|
1612 | {
|
1613 | mn: {
|
1614 | _desired: "mvf",
|
1615 | _distance: "10",
|
1616 | _oneway: "true"
|
1617 | }
|
1618 | },
|
1619 | {
|
1620 | ms: {
|
1621 | _desired: "bjn",
|
1622 | _distance: "10",
|
1623 | _oneway: "true"
|
1624 | }
|
1625 | },
|
1626 | {
|
1627 | ms: {
|
1628 | _desired: "btj",
|
1629 | _distance: "10",
|
1630 | _oneway: "true"
|
1631 | }
|
1632 | },
|
1633 | {
|
1634 | ms: {
|
1635 | _desired: "bve",
|
1636 | _distance: "10",
|
1637 | _oneway: "true"
|
1638 | }
|
1639 | },
|
1640 | {
|
1641 | ms: {
|
1642 | _desired: "bvu",
|
1643 | _distance: "10",
|
1644 | _oneway: "true"
|
1645 | }
|
1646 | },
|
1647 | {
|
1648 | ms: {
|
1649 | _desired: "coa",
|
1650 | _distance: "10",
|
1651 | _oneway: "true"
|
1652 | }
|
1653 | },
|
1654 | {
|
1655 | ms: {
|
1656 | _desired: "dup",
|
1657 | _distance: "10",
|
1658 | _oneway: "true"
|
1659 | }
|
1660 | },
|
1661 | {
|
1662 | ms: {
|
1663 | _desired: "hji",
|
1664 | _distance: "10",
|
1665 | _oneway: "true"
|
1666 | }
|
1667 | },
|
1668 | {
|
1669 | ms: {
|
1670 | _desired: "id",
|
1671 | _distance: "10",
|
1672 | _oneway: "true"
|
1673 | }
|
1674 | },
|
1675 | {
|
1676 | ms: {
|
1677 | _desired: "jak",
|
1678 | _distance: "10",
|
1679 | _oneway: "true"
|
1680 | }
|
1681 | },
|
1682 | {
|
1683 | ms: {
|
1684 | _desired: "jax",
|
1685 | _distance: "10",
|
1686 | _oneway: "true"
|
1687 | }
|
1688 | },
|
1689 | {
|
1690 | ms: {
|
1691 | _desired: "kvb",
|
1692 | _distance: "10",
|
1693 | _oneway: "true"
|
1694 | }
|
1695 | },
|
1696 | {
|
1697 | ms: {
|
1698 | _desired: "kvr",
|
1699 | _distance: "10",
|
1700 | _oneway: "true"
|
1701 | }
|
1702 | },
|
1703 | {
|
1704 | ms: {
|
1705 | _desired: "kxd",
|
1706 | _distance: "10",
|
1707 | _oneway: "true"
|
1708 | }
|
1709 | },
|
1710 | {
|
1711 | ms: {
|
1712 | _desired: "lce",
|
1713 | _distance: "10",
|
1714 | _oneway: "true"
|
1715 | }
|
1716 | },
|
1717 | {
|
1718 | ms: {
|
1719 | _desired: "lcf",
|
1720 | _distance: "10",
|
1721 | _oneway: "true"
|
1722 | }
|
1723 | },
|
1724 | {
|
1725 | ms: {
|
1726 | _desired: "liw",
|
1727 | _distance: "10",
|
1728 | _oneway: "true"
|
1729 | }
|
1730 | },
|
1731 | {
|
1732 | ms: {
|
1733 | _desired: "max",
|
1734 | _distance: "10",
|
1735 | _oneway: "true"
|
1736 | }
|
1737 | },
|
1738 | {
|
1739 | ms: {
|
1740 | _desired: "meo",
|
1741 | _distance: "10",
|
1742 | _oneway: "true"
|
1743 | }
|
1744 | },
|
1745 | {
|
1746 | ms: {
|
1747 | _desired: "mfa",
|
1748 | _distance: "10",
|
1749 | _oneway: "true"
|
1750 | }
|
1751 | },
|
1752 | {
|
1753 | ms: {
|
1754 | _desired: "mfb",
|
1755 | _distance: "10",
|
1756 | _oneway: "true"
|
1757 | }
|
1758 | },
|
1759 | {
|
1760 | ms: {
|
1761 | _desired: "min",
|
1762 | _distance: "10",
|
1763 | _oneway: "true"
|
1764 | }
|
1765 | },
|
1766 | {
|
1767 | ms: {
|
1768 | _desired: "mqg",
|
1769 | _distance: "10",
|
1770 | _oneway: "true"
|
1771 | }
|
1772 | },
|
1773 | {
|
1774 | ms: {
|
1775 | _desired: "msi",
|
1776 | _distance: "10",
|
1777 | _oneway: "true"
|
1778 | }
|
1779 | },
|
1780 | {
|
1781 | ms: {
|
1782 | _desired: "mui",
|
1783 | _distance: "10",
|
1784 | _oneway: "true"
|
1785 | }
|
1786 | },
|
1787 | {
|
1788 | ms: {
|
1789 | _desired: "orn",
|
1790 | _distance: "10",
|
1791 | _oneway: "true"
|
1792 | }
|
1793 | },
|
1794 | {
|
1795 | ms: {
|
1796 | _desired: "ors",
|
1797 | _distance: "10",
|
1798 | _oneway: "true"
|
1799 | }
|
1800 | },
|
1801 | {
|
1802 | ms: {
|
1803 | _desired: "pel",
|
1804 | _distance: "10",
|
1805 | _oneway: "true"
|
1806 | }
|
1807 | },
|
1808 | {
|
1809 | ms: {
|
1810 | _desired: "pse",
|
1811 | _distance: "10",
|
1812 | _oneway: "true"
|
1813 | }
|
1814 | },
|
1815 | {
|
1816 | ms: {
|
1817 | _desired: "tmw",
|
1818 | _distance: "10",
|
1819 | _oneway: "true"
|
1820 | }
|
1821 | },
|
1822 | {
|
1823 | ms: {
|
1824 | _desired: "urk",
|
1825 | _distance: "10",
|
1826 | _oneway: "true"
|
1827 | }
|
1828 | },
|
1829 | {
|
1830 | ms: {
|
1831 | _desired: "vkk",
|
1832 | _distance: "10",
|
1833 | _oneway: "true"
|
1834 | }
|
1835 | },
|
1836 | {
|
1837 | ms: {
|
1838 | _desired: "vkt",
|
1839 | _distance: "10",
|
1840 | _oneway: "true"
|
1841 | }
|
1842 | },
|
1843 | {
|
1844 | ms: {
|
1845 | _desired: "xmm",
|
1846 | _distance: "10",
|
1847 | _oneway: "true"
|
1848 | }
|
1849 | },
|
1850 | {
|
1851 | ms: {
|
1852 | _desired: "zlm",
|
1853 | _distance: "10",
|
1854 | _oneway: "true"
|
1855 | }
|
1856 | },
|
1857 | {
|
1858 | ms: {
|
1859 | _desired: "zmi",
|
1860 | _distance: "10",
|
1861 | _oneway: "true"
|
1862 | }
|
1863 | },
|
1864 | {
|
1865 | ne: {
|
1866 | _desired: "dty",
|
1867 | _distance: "10",
|
1868 | _oneway: "true"
|
1869 | }
|
1870 | },
|
1871 | {
|
1872 | om: {
|
1873 | _desired: "gax",
|
1874 | _distance: "10",
|
1875 | _oneway: "true"
|
1876 | }
|
1877 | },
|
1878 | {
|
1879 | om: {
|
1880 | _desired: "hae",
|
1881 | _distance: "10",
|
1882 | _oneway: "true"
|
1883 | }
|
1884 | },
|
1885 | {
|
1886 | om: {
|
1887 | _desired: "orc",
|
1888 | _distance: "10",
|
1889 | _oneway: "true"
|
1890 | }
|
1891 | },
|
1892 | {
|
1893 | or: {
|
1894 | _desired: "spv",
|
1895 | _distance: "10",
|
1896 | _oneway: "true"
|
1897 | }
|
1898 | },
|
1899 | {
|
1900 | ps: {
|
1901 | _desired: "pbt",
|
1902 | _distance: "10",
|
1903 | _oneway: "true"
|
1904 | }
|
1905 | },
|
1906 | {
|
1907 | ps: {
|
1908 | _desired: "pst",
|
1909 | _distance: "10",
|
1910 | _oneway: "true"
|
1911 | }
|
1912 | },
|
1913 | {
|
1914 | qu: {
|
1915 | _desired: "qub",
|
1916 | _distance: "10",
|
1917 | _oneway: "true"
|
1918 | }
|
1919 | },
|
1920 | {
|
1921 | qu: {
|
1922 | _desired: "qud",
|
1923 | _distance: "10",
|
1924 | _oneway: "true"
|
1925 | }
|
1926 | },
|
1927 | {
|
1928 | qu: {
|
1929 | _desired: "quf",
|
1930 | _distance: "10",
|
1931 | _oneway: "true"
|
1932 | }
|
1933 | },
|
1934 | {
|
1935 | qu: {
|
1936 | _desired: "qug",
|
1937 | _distance: "10",
|
1938 | _oneway: "true"
|
1939 | }
|
1940 | },
|
1941 | {
|
1942 | qu: {
|
1943 | _desired: "quh",
|
1944 | _distance: "10",
|
1945 | _oneway: "true"
|
1946 | }
|
1947 | },
|
1948 | {
|
1949 | qu: {
|
1950 | _desired: "quk",
|
1951 | _distance: "10",
|
1952 | _oneway: "true"
|
1953 | }
|
1954 | },
|
1955 | {
|
1956 | qu: {
|
1957 | _desired: "qul",
|
1958 | _distance: "10",
|
1959 | _oneway: "true"
|
1960 | }
|
1961 | },
|
1962 | {
|
1963 | qu: {
|
1964 | _desired: "qup",
|
1965 | _distance: "10",
|
1966 | _oneway: "true"
|
1967 | }
|
1968 | },
|
1969 | {
|
1970 | qu: {
|
1971 | _desired: "qur",
|
1972 | _distance: "10",
|
1973 | _oneway: "true"
|
1974 | }
|
1975 | },
|
1976 | {
|
1977 | qu: {
|
1978 | _desired: "qus",
|
1979 | _distance: "10",
|
1980 | _oneway: "true"
|
1981 | }
|
1982 | },
|
1983 | {
|
1984 | qu: {
|
1985 | _desired: "quw",
|
1986 | _distance: "10",
|
1987 | _oneway: "true"
|
1988 | }
|
1989 | },
|
1990 | {
|
1991 | qu: {
|
1992 | _desired: "qux",
|
1993 | _distance: "10",
|
1994 | _oneway: "true"
|
1995 | }
|
1996 | },
|
1997 | {
|
1998 | qu: {
|
1999 | _desired: "quy",
|
2000 | _distance: "10",
|
2001 | _oneway: "true"
|
2002 | }
|
2003 | },
|
2004 | {
|
2005 | qu: {
|
2006 | _desired: "qva",
|
2007 | _distance: "10",
|
2008 | _oneway: "true"
|
2009 | }
|
2010 | },
|
2011 | {
|
2012 | qu: {
|
2013 | _desired: "qvc",
|
2014 | _distance: "10",
|
2015 | _oneway: "true"
|
2016 | }
|
2017 | },
|
2018 | {
|
2019 | qu: {
|
2020 | _desired: "qve",
|
2021 | _distance: "10",
|
2022 | _oneway: "true"
|
2023 | }
|
2024 | },
|
2025 | {
|
2026 | qu: {
|
2027 | _desired: "qvh",
|
2028 | _distance: "10",
|
2029 | _oneway: "true"
|
2030 | }
|
2031 | },
|
2032 | {
|
2033 | qu: {
|
2034 | _desired: "qvi",
|
2035 | _distance: "10",
|
2036 | _oneway: "true"
|
2037 | }
|
2038 | },
|
2039 | {
|
2040 | qu: {
|
2041 | _desired: "qvj",
|
2042 | _distance: "10",
|
2043 | _oneway: "true"
|
2044 | }
|
2045 | },
|
2046 | {
|
2047 | qu: {
|
2048 | _desired: "qvl",
|
2049 | _distance: "10",
|
2050 | _oneway: "true"
|
2051 | }
|
2052 | },
|
2053 | {
|
2054 | qu: {
|
2055 | _desired: "qvm",
|
2056 | _distance: "10",
|
2057 | _oneway: "true"
|
2058 | }
|
2059 | },
|
2060 | {
|
2061 | qu: {
|
2062 | _desired: "qvn",
|
2063 | _distance: "10",
|
2064 | _oneway: "true"
|
2065 | }
|
2066 | },
|
2067 | {
|
2068 | qu: {
|
2069 | _desired: "qvo",
|
2070 | _distance: "10",
|
2071 | _oneway: "true"
|
2072 | }
|
2073 | },
|
2074 | {
|
2075 | qu: {
|
2076 | _desired: "qvp",
|
2077 | _distance: "10",
|
2078 | _oneway: "true"
|
2079 | }
|
2080 | },
|
2081 | {
|
2082 | qu: {
|
2083 | _desired: "qvs",
|
2084 | _distance: "10",
|
2085 | _oneway: "true"
|
2086 | }
|
2087 | },
|
2088 | {
|
2089 | qu: {
|
2090 | _desired: "qvw",
|
2091 | _distance: "10",
|
2092 | _oneway: "true"
|
2093 | }
|
2094 | },
|
2095 | {
|
2096 | qu: {
|
2097 | _desired: "qvz",
|
2098 | _distance: "10",
|
2099 | _oneway: "true"
|
2100 | }
|
2101 | },
|
2102 | {
|
2103 | qu: {
|
2104 | _desired: "qwa",
|
2105 | _distance: "10",
|
2106 | _oneway: "true"
|
2107 | }
|
2108 | },
|
2109 | {
|
2110 | qu: {
|
2111 | _desired: "qwc",
|
2112 | _distance: "10",
|
2113 | _oneway: "true"
|
2114 | }
|
2115 | },
|
2116 | {
|
2117 | qu: {
|
2118 | _desired: "qwh",
|
2119 | _distance: "10",
|
2120 | _oneway: "true"
|
2121 | }
|
2122 | },
|
2123 | {
|
2124 | qu: {
|
2125 | _desired: "qws",
|
2126 | _distance: "10",
|
2127 | _oneway: "true"
|
2128 | }
|
2129 | },
|
2130 | {
|
2131 | qu: {
|
2132 | _desired: "qxa",
|
2133 | _distance: "10",
|
2134 | _oneway: "true"
|
2135 | }
|
2136 | },
|
2137 | {
|
2138 | qu: {
|
2139 | _desired: "qxc",
|
2140 | _distance: "10",
|
2141 | _oneway: "true"
|
2142 | }
|
2143 | },
|
2144 | {
|
2145 | qu: {
|
2146 | _desired: "qxh",
|
2147 | _distance: "10",
|
2148 | _oneway: "true"
|
2149 | }
|
2150 | },
|
2151 | {
|
2152 | qu: {
|
2153 | _desired: "qxl",
|
2154 | _distance: "10",
|
2155 | _oneway: "true"
|
2156 | }
|
2157 | },
|
2158 | {
|
2159 | qu: {
|
2160 | _desired: "qxn",
|
2161 | _distance: "10",
|
2162 | _oneway: "true"
|
2163 | }
|
2164 | },
|
2165 | {
|
2166 | qu: {
|
2167 | _desired: "qxo",
|
2168 | _distance: "10",
|
2169 | _oneway: "true"
|
2170 | }
|
2171 | },
|
2172 | {
|
2173 | qu: {
|
2174 | _desired: "qxp",
|
2175 | _distance: "10",
|
2176 | _oneway: "true"
|
2177 | }
|
2178 | },
|
2179 | {
|
2180 | qu: {
|
2181 | _desired: "qxr",
|
2182 | _distance: "10",
|
2183 | _oneway: "true"
|
2184 | }
|
2185 | },
|
2186 | {
|
2187 | qu: {
|
2188 | _desired: "qxt",
|
2189 | _distance: "10",
|
2190 | _oneway: "true"
|
2191 | }
|
2192 | },
|
2193 | {
|
2194 | qu: {
|
2195 | _desired: "qxu",
|
2196 | _distance: "10",
|
2197 | _oneway: "true"
|
2198 | }
|
2199 | },
|
2200 | {
|
2201 | qu: {
|
2202 | _desired: "qxw",
|
2203 | _distance: "10",
|
2204 | _oneway: "true"
|
2205 | }
|
2206 | },
|
2207 | {
|
2208 | sc: {
|
2209 | _desired: "sdc",
|
2210 | _distance: "10",
|
2211 | _oneway: "true"
|
2212 | }
|
2213 | },
|
2214 | {
|
2215 | sc: {
|
2216 | _desired: "sdn",
|
2217 | _distance: "10",
|
2218 | _oneway: "true"
|
2219 | }
|
2220 | },
|
2221 | {
|
2222 | sc: {
|
2223 | _desired: "sro",
|
2224 | _distance: "10",
|
2225 | _oneway: "true"
|
2226 | }
|
2227 | },
|
2228 | {
|
2229 | sq: {
|
2230 | _desired: "aae",
|
2231 | _distance: "10",
|
2232 | _oneway: "true"
|
2233 | }
|
2234 | },
|
2235 | {
|
2236 | sq: {
|
2237 | _desired: "aat",
|
2238 | _distance: "10",
|
2239 | _oneway: "true"
|
2240 | }
|
2241 | },
|
2242 | {
|
2243 | sq: {
|
2244 | _desired: "aln",
|
2245 | _distance: "10",
|
2246 | _oneway: "true"
|
2247 | }
|
2248 | },
|
2249 | {
|
2250 | syr: {
|
2251 | _desired: "aii",
|
2252 | _distance: "10",
|
2253 | _oneway: "true"
|
2254 | }
|
2255 | },
|
2256 | {
|
2257 | uz: {
|
2258 | _desired: "uzs",
|
2259 | _distance: "10",
|
2260 | _oneway: "true"
|
2261 | }
|
2262 | },
|
2263 | {
|
2264 | yi: {
|
2265 | _desired: "yih",
|
2266 | _distance: "10",
|
2267 | _oneway: "true"
|
2268 | }
|
2269 | },
|
2270 | {
|
2271 | zh: {
|
2272 | _desired: "cdo",
|
2273 | _distance: "10",
|
2274 | _oneway: "true"
|
2275 | }
|
2276 | },
|
2277 | {
|
2278 | zh: {
|
2279 | _desired: "cjy",
|
2280 | _distance: "10",
|
2281 | _oneway: "true"
|
2282 | }
|
2283 | },
|
2284 | {
|
2285 | zh: {
|
2286 | _desired: "cpx",
|
2287 | _distance: "10",
|
2288 | _oneway: "true"
|
2289 | }
|
2290 | },
|
2291 | {
|
2292 | zh: {
|
2293 | _desired: "czh",
|
2294 | _distance: "10",
|
2295 | _oneway: "true"
|
2296 | }
|
2297 | },
|
2298 | {
|
2299 | zh: {
|
2300 | _desired: "czo",
|
2301 | _distance: "10",
|
2302 | _oneway: "true"
|
2303 | }
|
2304 | },
|
2305 | {
|
2306 | zh: {
|
2307 | _desired: "gan",
|
2308 | _distance: "10",
|
2309 | _oneway: "true"
|
2310 | }
|
2311 | },
|
2312 | {
|
2313 | zh: {
|
2314 | _desired: "hak",
|
2315 | _distance: "10",
|
2316 | _oneway: "true"
|
2317 | }
|
2318 | },
|
2319 | {
|
2320 | zh: {
|
2321 | _desired: "hsn",
|
2322 | _distance: "10",
|
2323 | _oneway: "true"
|
2324 | }
|
2325 | },
|
2326 | {
|
2327 | zh: {
|
2328 | _desired: "lzh",
|
2329 | _distance: "10",
|
2330 | _oneway: "true"
|
2331 | }
|
2332 | },
|
2333 | {
|
2334 | zh: {
|
2335 | _desired: "mnp",
|
2336 | _distance: "10",
|
2337 | _oneway: "true"
|
2338 | }
|
2339 | },
|
2340 | {
|
2341 | zh: {
|
2342 | _desired: "nan",
|
2343 | _distance: "10",
|
2344 | _oneway: "true"
|
2345 | }
|
2346 | },
|
2347 | {
|
2348 | zh: {
|
2349 | _desired: "wuu",
|
2350 | _distance: "10",
|
2351 | _oneway: "true"
|
2352 | }
|
2353 | },
|
2354 | {
|
2355 | zh: {
|
2356 | _desired: "yue",
|
2357 | _distance: "10",
|
2358 | _oneway: "true"
|
2359 | }
|
2360 | },
|
2361 | {
|
2362 | "*": {
|
2363 | _desired: "*",
|
2364 | _distance: "80"
|
2365 | }
|
2366 | },
|
2367 | {
|
2368 | "en-Latn": {
|
2369 | _desired: "am-Ethi",
|
2370 | _distance: "10",
|
2371 | _oneway: "true"
|
2372 | }
|
2373 | },
|
2374 | {
|
2375 | "ru-Cyrl": {
|
2376 | _desired: "az-Latn",
|
2377 | _distance: "10",
|
2378 | _oneway: "true"
|
2379 | }
|
2380 | },
|
2381 | {
|
2382 | "en-Latn": {
|
2383 | _desired: "bn-Beng",
|
2384 | _distance: "10",
|
2385 | _oneway: "true"
|
2386 | }
|
2387 | },
|
2388 | {
|
2389 | "zh-Hans": {
|
2390 | _desired: "bo-Tibt",
|
2391 | _distance: "10",
|
2392 | _oneway: "true"
|
2393 | }
|
2394 | },
|
2395 | {
|
2396 | "ru-Cyrl": {
|
2397 | _desired: "hy-Armn",
|
2398 | _distance: "10",
|
2399 | _oneway: "true"
|
2400 | }
|
2401 | },
|
2402 | {
|
2403 | "en-Latn": {
|
2404 | _desired: "ka-Geor",
|
2405 | _distance: "10",
|
2406 | _oneway: "true"
|
2407 | }
|
2408 | },
|
2409 | {
|
2410 | "en-Latn": {
|
2411 | _desired: "km-Khmr",
|
2412 | _distance: "10",
|
2413 | _oneway: "true"
|
2414 | }
|
2415 | },
|
2416 | {
|
2417 | "en-Latn": {
|
2418 | _desired: "kn-Knda",
|
2419 | _distance: "10",
|
2420 | _oneway: "true"
|
2421 | }
|
2422 | },
|
2423 | {
|
2424 | "en-Latn": {
|
2425 | _desired: "lo-Laoo",
|
2426 | _distance: "10",
|
2427 | _oneway: "true"
|
2428 | }
|
2429 | },
|
2430 | {
|
2431 | "en-Latn": {
|
2432 | _desired: "ml-Mlym",
|
2433 | _distance: "10",
|
2434 | _oneway: "true"
|
2435 | }
|
2436 | },
|
2437 | {
|
2438 | "en-Latn": {
|
2439 | _desired: "my-Mymr",
|
2440 | _distance: "10",
|
2441 | _oneway: "true"
|
2442 | }
|
2443 | },
|
2444 | {
|
2445 | "en-Latn": {
|
2446 | _desired: "ne-Deva",
|
2447 | _distance: "10",
|
2448 | _oneway: "true"
|
2449 | }
|
2450 | },
|
2451 | {
|
2452 | "en-Latn": {
|
2453 | _desired: "or-Orya",
|
2454 | _distance: "10",
|
2455 | _oneway: "true"
|
2456 | }
|
2457 | },
|
2458 | {
|
2459 | "en-Latn": {
|
2460 | _desired: "pa-Guru",
|
2461 | _distance: "10",
|
2462 | _oneway: "true"
|
2463 | }
|
2464 | },
|
2465 | {
|
2466 | "en-Latn": {
|
2467 | _desired: "ps-Arab",
|
2468 | _distance: "10",
|
2469 | _oneway: "true"
|
2470 | }
|
2471 | },
|
2472 | {
|
2473 | "en-Latn": {
|
2474 | _desired: "sd-Arab",
|
2475 | _distance: "10",
|
2476 | _oneway: "true"
|
2477 | }
|
2478 | },
|
2479 | {
|
2480 | "en-Latn": {
|
2481 | _desired: "si-Sinh",
|
2482 | _distance: "10",
|
2483 | _oneway: "true"
|
2484 | }
|
2485 | },
|
2486 | {
|
2487 | "en-Latn": {
|
2488 | _desired: "ta-Taml",
|
2489 | _distance: "10",
|
2490 | _oneway: "true"
|
2491 | }
|
2492 | },
|
2493 | {
|
2494 | "en-Latn": {
|
2495 | _desired: "te-Telu",
|
2496 | _distance: "10",
|
2497 | _oneway: "true"
|
2498 | }
|
2499 | },
|
2500 | {
|
2501 | "en-Latn": {
|
2502 | _desired: "ti-Ethi",
|
2503 | _distance: "10",
|
2504 | _oneway: "true"
|
2505 | }
|
2506 | },
|
2507 | {
|
2508 | "ru-Cyrl": {
|
2509 | _desired: "tk-Latn",
|
2510 | _distance: "10",
|
2511 | _oneway: "true"
|
2512 | }
|
2513 | },
|
2514 | {
|
2515 | "en-Latn": {
|
2516 | _desired: "ur-Arab",
|
2517 | _distance: "10",
|
2518 | _oneway: "true"
|
2519 | }
|
2520 | },
|
2521 | {
|
2522 | "ru-Cyrl": {
|
2523 | _desired: "uz-Latn",
|
2524 | _distance: "10",
|
2525 | _oneway: "true"
|
2526 | }
|
2527 | },
|
2528 | {
|
2529 | "en-Latn": {
|
2530 | _desired: "yi-Hebr",
|
2531 | _distance: "10",
|
2532 | _oneway: "true"
|
2533 | }
|
2534 | },
|
2535 | {
|
2536 | "sr-Cyrl": {
|
2537 | _desired: "sr-Latn",
|
2538 | _distance: "5"
|
2539 | }
|
2540 | },
|
2541 | {
|
2542 | "zh-Hans": {
|
2543 | _desired: "za-Latn",
|
2544 | _distance: "10",
|
2545 | _oneway: "true"
|
2546 | }
|
2547 | },
|
2548 | {
|
2549 | "zh-Hans": {
|
2550 | _desired: "zh-Hani",
|
2551 | _distance: "20",
|
2552 | _oneway: "true"
|
2553 | }
|
2554 | },
|
2555 | {
|
2556 | "zh-Hant": {
|
2557 | _desired: "zh-Hani",
|
2558 | _distance: "20",
|
2559 | _oneway: "true"
|
2560 | }
|
2561 | },
|
2562 | {
|
2563 | "ar-Arab": {
|
2564 | _desired: "ar-Latn",
|
2565 | _distance: "20",
|
2566 | _oneway: "true"
|
2567 | }
|
2568 | },
|
2569 | {
|
2570 | "bn-Beng": {
|
2571 | _desired: "bn-Latn",
|
2572 | _distance: "20",
|
2573 | _oneway: "true"
|
2574 | }
|
2575 | },
|
2576 | {
|
2577 | "gu-Gujr": {
|
2578 | _desired: "gu-Latn",
|
2579 | _distance: "20",
|
2580 | _oneway: "true"
|
2581 | }
|
2582 | },
|
2583 | {
|
2584 | "hi-Deva": {
|
2585 | _desired: "hi-Latn",
|
2586 | _distance: "20",
|
2587 | _oneway: "true"
|
2588 | }
|
2589 | },
|
2590 | {
|
2591 | "kn-Knda": {
|
2592 | _desired: "kn-Latn",
|
2593 | _distance: "20",
|
2594 | _oneway: "true"
|
2595 | }
|
2596 | },
|
2597 | {
|
2598 | "ml-Mlym": {
|
2599 | _desired: "ml-Latn",
|
2600 | _distance: "20",
|
2601 | _oneway: "true"
|
2602 | }
|
2603 | },
|
2604 | {
|
2605 | "mr-Deva": {
|
2606 | _desired: "mr-Latn",
|
2607 | _distance: "20",
|
2608 | _oneway: "true"
|
2609 | }
|
2610 | },
|
2611 | {
|
2612 | "ta-Taml": {
|
2613 | _desired: "ta-Latn",
|
2614 | _distance: "20",
|
2615 | _oneway: "true"
|
2616 | }
|
2617 | },
|
2618 | {
|
2619 | "te-Telu": {
|
2620 | _desired: "te-Latn",
|
2621 | _distance: "20",
|
2622 | _oneway: "true"
|
2623 | }
|
2624 | },
|
2625 | {
|
2626 | "zh-Hans": {
|
2627 | _desired: "zh-Latn",
|
2628 | _distance: "20",
|
2629 | _oneway: "true"
|
2630 | }
|
2631 | },
|
2632 | {
|
2633 | "ja-Jpan": {
|
2634 | _desired: "ja-Latn",
|
2635 | _distance: "5",
|
2636 | _oneway: "true"
|
2637 | }
|
2638 | },
|
2639 | {
|
2640 | "ja-Jpan": {
|
2641 | _desired: "ja-Hani",
|
2642 | _distance: "5",
|
2643 | _oneway: "true"
|
2644 | }
|
2645 | },
|
2646 | {
|
2647 | "ja-Jpan": {
|
2648 | _desired: "ja-Hira",
|
2649 | _distance: "5",
|
2650 | _oneway: "true"
|
2651 | }
|
2652 | },
|
2653 | {
|
2654 | "ja-Jpan": {
|
2655 | _desired: "ja-Kana",
|
2656 | _distance: "5",
|
2657 | _oneway: "true"
|
2658 | }
|
2659 | },
|
2660 | {
|
2661 | "ja-Jpan": {
|
2662 | _desired: "ja-Hrkt",
|
2663 | _distance: "5",
|
2664 | _oneway: "true"
|
2665 | }
|
2666 | },
|
2667 | {
|
2668 | "ja-Hrkt": {
|
2669 | _desired: "ja-Hira",
|
2670 | _distance: "5",
|
2671 | _oneway: "true"
|
2672 | }
|
2673 | },
|
2674 | {
|
2675 | "ja-Hrkt": {
|
2676 | _desired: "ja-Kana",
|
2677 | _distance: "5",
|
2678 | _oneway: "true"
|
2679 | }
|
2680 | },
|
2681 | {
|
2682 | "ko-Kore": {
|
2683 | _desired: "ko-Hani",
|
2684 | _distance: "5",
|
2685 | _oneway: "true"
|
2686 | }
|
2687 | },
|
2688 | {
|
2689 | "ko-Kore": {
|
2690 | _desired: "ko-Hang",
|
2691 | _distance: "5",
|
2692 | _oneway: "true"
|
2693 | }
|
2694 | },
|
2695 | {
|
2696 | "ko-Kore": {
|
2697 | _desired: "ko-Jamo",
|
2698 | _distance: "5",
|
2699 | _oneway: "true"
|
2700 | }
|
2701 | },
|
2702 | {
|
2703 | "ko-Hang": {
|
2704 | _desired: "ko-Jamo",
|
2705 | _distance: "5",
|
2706 | _oneway: "true"
|
2707 | }
|
2708 | },
|
2709 | {
|
2710 | "*-*": {
|
2711 | _desired: "*-*",
|
2712 | _distance: "50"
|
2713 | }
|
2714 | },
|
2715 | {
|
2716 | "ar-*-$maghreb": {
|
2717 | _desired: "ar-*-$maghreb",
|
2718 | _distance: "4"
|
2719 | }
|
2720 | },
|
2721 | {
|
2722 | "ar-*-$!maghreb": {
|
2723 | _desired: "ar-*-$!maghreb",
|
2724 | _distance: "4"
|
2725 | }
|
2726 | },
|
2727 | {
|
2728 | "ar-*-*": {
|
2729 | _desired: "ar-*-*",
|
2730 | _distance: "5"
|
2731 | }
|
2732 | },
|
2733 | {
|
2734 | "en-*-$enUS": {
|
2735 | _desired: "en-*-$enUS",
|
2736 | _distance: "4"
|
2737 | }
|
2738 | },
|
2739 | {
|
2740 | "en-*-GB": {
|
2741 | _desired: "en-*-$!enUS",
|
2742 | _distance: "3"
|
2743 | }
|
2744 | },
|
2745 | {
|
2746 | "en-*-$!enUS": {
|
2747 | _desired: "en-*-$!enUS",
|
2748 | _distance: "4"
|
2749 | }
|
2750 | },
|
2751 | {
|
2752 | "en-*-*": {
|
2753 | _desired: "en-*-*",
|
2754 | _distance: "5"
|
2755 | }
|
2756 | },
|
2757 | {
|
2758 | "es-*-$americas": {
|
2759 | _desired: "es-*-$americas",
|
2760 | _distance: "4"
|
2761 | }
|
2762 | },
|
2763 | {
|
2764 | "es-*-$!americas": {
|
2765 | _desired: "es-*-$!americas",
|
2766 | _distance: "4"
|
2767 | }
|
2768 | },
|
2769 | {
|
2770 | "es-*-*": {
|
2771 | _desired: "es-*-*",
|
2772 | _distance: "5"
|
2773 | }
|
2774 | },
|
2775 | {
|
2776 | "pt-*-$americas": {
|
2777 | _desired: "pt-*-$americas",
|
2778 | _distance: "4"
|
2779 | }
|
2780 | },
|
2781 | {
|
2782 | "pt-*-$!americas": {
|
2783 | _desired: "pt-*-$!americas",
|
2784 | _distance: "4"
|
2785 | }
|
2786 | },
|
2787 | {
|
2788 | "pt-*-*": {
|
2789 | _desired: "pt-*-*",
|
2790 | _distance: "5"
|
2791 | }
|
2792 | },
|
2793 | {
|
2794 | "zh-Hant-$cnsar": {
|
2795 | _desired: "zh-Hant-$cnsar",
|
2796 | _distance: "4"
|
2797 | }
|
2798 | },
|
2799 | {
|
2800 | "zh-Hant-$!cnsar": {
|
2801 | _desired: "zh-Hant-$!cnsar",
|
2802 | _distance: "4"
|
2803 | }
|
2804 | },
|
2805 | {
|
2806 | "zh-Hant-*": {
|
2807 | _desired: "zh-Hant-*",
|
2808 | _distance: "5"
|
2809 | }
|
2810 | },
|
2811 | {
|
2812 | "*-*-*": {
|
2813 | _desired: "*-*-*",
|
2814 | _distance: "4"
|
2815 | }
|
2816 | }
|
2817 | ]
|
2818 | }
|
2819 | }
|
2820 | };
|
2821 |
|
2822 |
|
2823 | var regions = {
|
2824 | "001": [
|
2825 | "001",
|
2826 | "001-status-grouping",
|
2827 | "002",
|
2828 | "005",
|
2829 | "009",
|
2830 | "011",
|
2831 | "013",
|
2832 | "014",
|
2833 | "015",
|
2834 | "017",
|
2835 | "018",
|
2836 | "019",
|
2837 | "021",
|
2838 | "029",
|
2839 | "030",
|
2840 | "034",
|
2841 | "035",
|
2842 | "039",
|
2843 | "053",
|
2844 | "054",
|
2845 | "057",
|
2846 | "061",
|
2847 | "142",
|
2848 | "143",
|
2849 | "145",
|
2850 | "150",
|
2851 | "151",
|
2852 | "154",
|
2853 | "155",
|
2854 | "AC",
|
2855 | "AD",
|
2856 | "AE",
|
2857 | "AF",
|
2858 | "AG",
|
2859 | "AI",
|
2860 | "AL",
|
2861 | "AM",
|
2862 | "AO",
|
2863 | "AQ",
|
2864 | "AR",
|
2865 | "AS",
|
2866 | "AT",
|
2867 | "AU",
|
2868 | "AW",
|
2869 | "AX",
|
2870 | "AZ",
|
2871 | "BA",
|
2872 | "BB",
|
2873 | "BD",
|
2874 | "BE",
|
2875 | "BF",
|
2876 | "BG",
|
2877 | "BH",
|
2878 | "BI",
|
2879 | "BJ",
|
2880 | "BL",
|
2881 | "BM",
|
2882 | "BN",
|
2883 | "BO",
|
2884 | "BQ",
|
2885 | "BR",
|
2886 | "BS",
|
2887 | "BT",
|
2888 | "BV",
|
2889 | "BW",
|
2890 | "BY",
|
2891 | "BZ",
|
2892 | "CA",
|
2893 | "CC",
|
2894 | "CD",
|
2895 | "CF",
|
2896 | "CG",
|
2897 | "CH",
|
2898 | "CI",
|
2899 | "CK",
|
2900 | "CL",
|
2901 | "CM",
|
2902 | "CN",
|
2903 | "CO",
|
2904 | "CP",
|
2905 | "CQ",
|
2906 | "CR",
|
2907 | "CU",
|
2908 | "CV",
|
2909 | "CW",
|
2910 | "CX",
|
2911 | "CY",
|
2912 | "CZ",
|
2913 | "DE",
|
2914 | "DG",
|
2915 | "DJ",
|
2916 | "DK",
|
2917 | "DM",
|
2918 | "DO",
|
2919 | "DZ",
|
2920 | "EA",
|
2921 | "EC",
|
2922 | "EE",
|
2923 | "EG",
|
2924 | "EH",
|
2925 | "ER",
|
2926 | "ES",
|
2927 | "ET",
|
2928 | "EU",
|
2929 | "EZ",
|
2930 | "FI",
|
2931 | "FJ",
|
2932 | "FK",
|
2933 | "FM",
|
2934 | "FO",
|
2935 | "FR",
|
2936 | "GA",
|
2937 | "GB",
|
2938 | "GD",
|
2939 | "GE",
|
2940 | "GF",
|
2941 | "GG",
|
2942 | "GH",
|
2943 | "GI",
|
2944 | "GL",
|
2945 | "GM",
|
2946 | "GN",
|
2947 | "GP",
|
2948 | "GQ",
|
2949 | "GR",
|
2950 | "GS",
|
2951 | "GT",
|
2952 | "GU",
|
2953 | "GW",
|
2954 | "GY",
|
2955 | "HK",
|
2956 | "HM",
|
2957 | "HN",
|
2958 | "HR",
|
2959 | "HT",
|
2960 | "HU",
|
2961 | "IC",
|
2962 | "ID",
|
2963 | "IE",
|
2964 | "IL",
|
2965 | "IM",
|
2966 | "IN",
|
2967 | "IO",
|
2968 | "IQ",
|
2969 | "IR",
|
2970 | "IS",
|
2971 | "IT",
|
2972 | "JE",
|
2973 | "JM",
|
2974 | "JO",
|
2975 | "JP",
|
2976 | "KE",
|
2977 | "KG",
|
2978 | "KH",
|
2979 | "KI",
|
2980 | "KM",
|
2981 | "KN",
|
2982 | "KP",
|
2983 | "KR",
|
2984 | "KW",
|
2985 | "KY",
|
2986 | "KZ",
|
2987 | "LA",
|
2988 | "LB",
|
2989 | "LC",
|
2990 | "LI",
|
2991 | "LK",
|
2992 | "LR",
|
2993 | "LS",
|
2994 | "LT",
|
2995 | "LU",
|
2996 | "LV",
|
2997 | "LY",
|
2998 | "MA",
|
2999 | "MC",
|
3000 | "MD",
|
3001 | "ME",
|
3002 | "MF",
|
3003 | "MG",
|
3004 | "MH",
|
3005 | "MK",
|
3006 | "ML",
|
3007 | "MM",
|
3008 | "MN",
|
3009 | "MO",
|
3010 | "MP",
|
3011 | "MQ",
|
3012 | "MR",
|
3013 | "MS",
|
3014 | "MT",
|
3015 | "MU",
|
3016 | "MV",
|
3017 | "MW",
|
3018 | "MX",
|
3019 | "MY",
|
3020 | "MZ",
|
3021 | "NA",
|
3022 | "NC",
|
3023 | "NE",
|
3024 | "NF",
|
3025 | "NG",
|
3026 | "NI",
|
3027 | "NL",
|
3028 | "NO",
|
3029 | "NP",
|
3030 | "NR",
|
3031 | "NU",
|
3032 | "NZ",
|
3033 | "OM",
|
3034 | "PA",
|
3035 | "PE",
|
3036 | "PF",
|
3037 | "PG",
|
3038 | "PH",
|
3039 | "PK",
|
3040 | "PL",
|
3041 | "PM",
|
3042 | "PN",
|
3043 | "PR",
|
3044 | "PS",
|
3045 | "PT",
|
3046 | "PW",
|
3047 | "PY",
|
3048 | "QA",
|
3049 | "QO",
|
3050 | "RE",
|
3051 | "RO",
|
3052 | "RS",
|
3053 | "RU",
|
3054 | "RW",
|
3055 | "SA",
|
3056 | "SB",
|
3057 | "SC",
|
3058 | "SD",
|
3059 | "SE",
|
3060 | "SG",
|
3061 | "SH",
|
3062 | "SI",
|
3063 | "SJ",
|
3064 | "SK",
|
3065 | "SL",
|
3066 | "SM",
|
3067 | "SN",
|
3068 | "SO",
|
3069 | "SR",
|
3070 | "SS",
|
3071 | "ST",
|
3072 | "SV",
|
3073 | "SX",
|
3074 | "SY",
|
3075 | "SZ",
|
3076 | "TA",
|
3077 | "TC",
|
3078 | "TD",
|
3079 | "TF",
|
3080 | "TG",
|
3081 | "TH",
|
3082 | "TJ",
|
3083 | "TK",
|
3084 | "TL",
|
3085 | "TM",
|
3086 | "TN",
|
3087 | "TO",
|
3088 | "TR",
|
3089 | "TT",
|
3090 | "TV",
|
3091 | "TW",
|
3092 | "TZ",
|
3093 | "UA",
|
3094 | "UG",
|
3095 | "UM",
|
3096 | "UN",
|
3097 | "US",
|
3098 | "UY",
|
3099 | "UZ",
|
3100 | "VA",
|
3101 | "VC",
|
3102 | "VE",
|
3103 | "VG",
|
3104 | "VI",
|
3105 | "VN",
|
3106 | "VU",
|
3107 | "WF",
|
3108 | "WS",
|
3109 | "XK",
|
3110 | "YE",
|
3111 | "YT",
|
3112 | "ZA",
|
3113 | "ZM",
|
3114 | "ZW"
|
3115 | ],
|
3116 | "002": [
|
3117 | "002",
|
3118 | "002-status-grouping",
|
3119 | "011",
|
3120 | "014",
|
3121 | "015",
|
3122 | "017",
|
3123 | "018",
|
3124 | "202",
|
3125 | "AO",
|
3126 | "BF",
|
3127 | "BI",
|
3128 | "BJ",
|
3129 | "BW",
|
3130 | "CD",
|
3131 | "CF",
|
3132 | "CG",
|
3133 | "CI",
|
3134 | "CM",
|
3135 | "CV",
|
3136 | "DJ",
|
3137 | "DZ",
|
3138 | "EA",
|
3139 | "EG",
|
3140 | "EH",
|
3141 | "ER",
|
3142 | "ET",
|
3143 | "GA",
|
3144 | "GH",
|
3145 | "GM",
|
3146 | "GN",
|
3147 | "GQ",
|
3148 | "GW",
|
3149 | "IC",
|
3150 | "IO",
|
3151 | "KE",
|
3152 | "KM",
|
3153 | "LR",
|
3154 | "LS",
|
3155 | "LY",
|
3156 | "MA",
|
3157 | "MG",
|
3158 | "ML",
|
3159 | "MR",
|
3160 | "MU",
|
3161 | "MW",
|
3162 | "MZ",
|
3163 | "NA",
|
3164 | "NE",
|
3165 | "NG",
|
3166 | "RE",
|
3167 | "RW",
|
3168 | "SC",
|
3169 | "SD",
|
3170 | "SH",
|
3171 | "SL",
|
3172 | "SN",
|
3173 | "SO",
|
3174 | "SS",
|
3175 | "ST",
|
3176 | "SZ",
|
3177 | "TD",
|
3178 | "TF",
|
3179 | "TG",
|
3180 | "TN",
|
3181 | "TZ",
|
3182 | "UG",
|
3183 | "YT",
|
3184 | "ZA",
|
3185 | "ZM",
|
3186 | "ZW"
|
3187 | ],
|
3188 | "003": [
|
3189 | "003",
|
3190 | "013",
|
3191 | "021",
|
3192 | "029",
|
3193 | "AG",
|
3194 | "AI",
|
3195 | "AW",
|
3196 | "BB",
|
3197 | "BL",
|
3198 | "BM",
|
3199 | "BQ",
|
3200 | "BS",
|
3201 | "BZ",
|
3202 | "CA",
|
3203 | "CR",
|
3204 | "CU",
|
3205 | "CW",
|
3206 | "DM",
|
3207 | "DO",
|
3208 | "GD",
|
3209 | "GL",
|
3210 | "GP",
|
3211 | "GT",
|
3212 | "HN",
|
3213 | "HT",
|
3214 | "JM",
|
3215 | "KN",
|
3216 | "KY",
|
3217 | "LC",
|
3218 | "MF",
|
3219 | "MQ",
|
3220 | "MS",
|
3221 | "MX",
|
3222 | "NI",
|
3223 | "PA",
|
3224 | "PM",
|
3225 | "PR",
|
3226 | "SV",
|
3227 | "SX",
|
3228 | "TC",
|
3229 | "TT",
|
3230 | "US",
|
3231 | "VC",
|
3232 | "VG",
|
3233 | "VI"
|
3234 | ],
|
3235 | "005": [
|
3236 | "005",
|
3237 | "AR",
|
3238 | "BO",
|
3239 | "BR",
|
3240 | "BV",
|
3241 | "CL",
|
3242 | "CO",
|
3243 | "EC",
|
3244 | "FK",
|
3245 | "GF",
|
3246 | "GS",
|
3247 | "GY",
|
3248 | "PE",
|
3249 | "PY",
|
3250 | "SR",
|
3251 | "UY",
|
3252 | "VE"
|
3253 | ],
|
3254 | "009": [
|
3255 | "009",
|
3256 | "053",
|
3257 | "054",
|
3258 | "057",
|
3259 | "061",
|
3260 | "AC",
|
3261 | "AQ",
|
3262 | "AS",
|
3263 | "AU",
|
3264 | "CC",
|
3265 | "CK",
|
3266 | "CP",
|
3267 | "CX",
|
3268 | "DG",
|
3269 | "FJ",
|
3270 | "FM",
|
3271 | "GU",
|
3272 | "HM",
|
3273 | "KI",
|
3274 | "MH",
|
3275 | "MP",
|
3276 | "NC",
|
3277 | "NF",
|
3278 | "NR",
|
3279 | "NU",
|
3280 | "NZ",
|
3281 | "PF",
|
3282 | "PG",
|
3283 | "PN",
|
3284 | "PW",
|
3285 | "QO",
|
3286 | "SB",
|
3287 | "TA",
|
3288 | "TK",
|
3289 | "TO",
|
3290 | "TV",
|
3291 | "UM",
|
3292 | "VU",
|
3293 | "WF",
|
3294 | "WS"
|
3295 | ],
|
3296 | "011": [
|
3297 | "011",
|
3298 | "BF",
|
3299 | "BJ",
|
3300 | "CI",
|
3301 | "CV",
|
3302 | "GH",
|
3303 | "GM",
|
3304 | "GN",
|
3305 | "GW",
|
3306 | "LR",
|
3307 | "ML",
|
3308 | "MR",
|
3309 | "NE",
|
3310 | "NG",
|
3311 | "SH",
|
3312 | "SL",
|
3313 | "SN",
|
3314 | "TG"
|
3315 | ],
|
3316 | "013": [
|
3317 | "013",
|
3318 | "BZ",
|
3319 | "CR",
|
3320 | "GT",
|
3321 | "HN",
|
3322 | "MX",
|
3323 | "NI",
|
3324 | "PA",
|
3325 | "SV"
|
3326 | ],
|
3327 | "014": [
|
3328 | "014",
|
3329 | "BI",
|
3330 | "DJ",
|
3331 | "ER",
|
3332 | "ET",
|
3333 | "IO",
|
3334 | "KE",
|
3335 | "KM",
|
3336 | "MG",
|
3337 | "MU",
|
3338 | "MW",
|
3339 | "MZ",
|
3340 | "RE",
|
3341 | "RW",
|
3342 | "SC",
|
3343 | "SO",
|
3344 | "SS",
|
3345 | "TF",
|
3346 | "TZ",
|
3347 | "UG",
|
3348 | "YT",
|
3349 | "ZM",
|
3350 | "ZW"
|
3351 | ],
|
3352 | "015": [
|
3353 | "015",
|
3354 | "DZ",
|
3355 | "EA",
|
3356 | "EG",
|
3357 | "EH",
|
3358 | "IC",
|
3359 | "LY",
|
3360 | "MA",
|
3361 | "SD",
|
3362 | "TN"
|
3363 | ],
|
3364 | "017": [
|
3365 | "017",
|
3366 | "AO",
|
3367 | "CD",
|
3368 | "CF",
|
3369 | "CG",
|
3370 | "CM",
|
3371 | "GA",
|
3372 | "GQ",
|
3373 | "ST",
|
3374 | "TD"
|
3375 | ],
|
3376 | "018": [
|
3377 | "018",
|
3378 | "BW",
|
3379 | "LS",
|
3380 | "NA",
|
3381 | "SZ",
|
3382 | "ZA"
|
3383 | ],
|
3384 | "019": [
|
3385 | "003",
|
3386 | "005",
|
3387 | "013",
|
3388 | "019",
|
3389 | "019-status-grouping",
|
3390 | "021",
|
3391 | "029",
|
3392 | "419",
|
3393 | "AG",
|
3394 | "AI",
|
3395 | "AR",
|
3396 | "AW",
|
3397 | "BB",
|
3398 | "BL",
|
3399 | "BM",
|
3400 | "BO",
|
3401 | "BQ",
|
3402 | "BR",
|
3403 | "BS",
|
3404 | "BV",
|
3405 | "BZ",
|
3406 | "CA",
|
3407 | "CL",
|
3408 | "CO",
|
3409 | "CR",
|
3410 | "CU",
|
3411 | "CW",
|
3412 | "DM",
|
3413 | "DO",
|
3414 | "EC",
|
3415 | "FK",
|
3416 | "GD",
|
3417 | "GF",
|
3418 | "GL",
|
3419 | "GP",
|
3420 | "GS",
|
3421 | "GT",
|
3422 | "GY",
|
3423 | "HN",
|
3424 | "HT",
|
3425 | "JM",
|
3426 | "KN",
|
3427 | "KY",
|
3428 | "LC",
|
3429 | "MF",
|
3430 | "MQ",
|
3431 | "MS",
|
3432 | "MX",
|
3433 | "NI",
|
3434 | "PA",
|
3435 | "PE",
|
3436 | "PM",
|
3437 | "PR",
|
3438 | "PY",
|
3439 | "SR",
|
3440 | "SV",
|
3441 | "SX",
|
3442 | "TC",
|
3443 | "TT",
|
3444 | "US",
|
3445 | "UY",
|
3446 | "VC",
|
3447 | "VE",
|
3448 | "VG",
|
3449 | "VI"
|
3450 | ],
|
3451 | "021": [
|
3452 | "021",
|
3453 | "BM",
|
3454 | "CA",
|
3455 | "GL",
|
3456 | "PM",
|
3457 | "US"
|
3458 | ],
|
3459 | "029": [
|
3460 | "029",
|
3461 | "AG",
|
3462 | "AI",
|
3463 | "AW",
|
3464 | "BB",
|
3465 | "BL",
|
3466 | "BQ",
|
3467 | "BS",
|
3468 | "CU",
|
3469 | "CW",
|
3470 | "DM",
|
3471 | "DO",
|
3472 | "GD",
|
3473 | "GP",
|
3474 | "HT",
|
3475 | "JM",
|
3476 | "KN",
|
3477 | "KY",
|
3478 | "LC",
|
3479 | "MF",
|
3480 | "MQ",
|
3481 | "MS",
|
3482 | "PR",
|
3483 | "SX",
|
3484 | "TC",
|
3485 | "TT",
|
3486 | "VC",
|
3487 | "VG",
|
3488 | "VI"
|
3489 | ],
|
3490 | "030": [
|
3491 | "030",
|
3492 | "CN",
|
3493 | "HK",
|
3494 | "JP",
|
3495 | "KP",
|
3496 | "KR",
|
3497 | "MN",
|
3498 | "MO",
|
3499 | "TW"
|
3500 | ],
|
3501 | "034": [
|
3502 | "034",
|
3503 | "AF",
|
3504 | "BD",
|
3505 | "BT",
|
3506 | "IN",
|
3507 | "IR",
|
3508 | "LK",
|
3509 | "MV",
|
3510 | "NP",
|
3511 | "PK"
|
3512 | ],
|
3513 | "035": [
|
3514 | "035",
|
3515 | "BN",
|
3516 | "ID",
|
3517 | "KH",
|
3518 | "LA",
|
3519 | "MM",
|
3520 | "MY",
|
3521 | "PH",
|
3522 | "SG",
|
3523 | "TH",
|
3524 | "TL",
|
3525 | "VN"
|
3526 | ],
|
3527 | "039": [
|
3528 | "039",
|
3529 | "AD",
|
3530 | "AL",
|
3531 | "BA",
|
3532 | "ES",
|
3533 | "GI",
|
3534 | "GR",
|
3535 | "HR",
|
3536 | "IT",
|
3537 | "ME",
|
3538 | "MK",
|
3539 | "MT",
|
3540 | "PT",
|
3541 | "RS",
|
3542 | "SI",
|
3543 | "SM",
|
3544 | "VA",
|
3545 | "XK"
|
3546 | ],
|
3547 | "053": [
|
3548 | "053",
|
3549 | "AU",
|
3550 | "CC",
|
3551 | "CX",
|
3552 | "HM",
|
3553 | "NF",
|
3554 | "NZ"
|
3555 | ],
|
3556 | "054": [
|
3557 | "054",
|
3558 | "FJ",
|
3559 | "NC",
|
3560 | "PG",
|
3561 | "SB",
|
3562 | "VU"
|
3563 | ],
|
3564 | "057": [
|
3565 | "057",
|
3566 | "FM",
|
3567 | "GU",
|
3568 | "KI",
|
3569 | "MH",
|
3570 | "MP",
|
3571 | "NR",
|
3572 | "PW",
|
3573 | "UM"
|
3574 | ],
|
3575 | "061": [
|
3576 | "061",
|
3577 | "AS",
|
3578 | "CK",
|
3579 | "NU",
|
3580 | "PF",
|
3581 | "PN",
|
3582 | "TK",
|
3583 | "TO",
|
3584 | "TV",
|
3585 | "WF",
|
3586 | "WS"
|
3587 | ],
|
3588 | "142": [
|
3589 | "030",
|
3590 | "034",
|
3591 | "035",
|
3592 | "142",
|
3593 | "143",
|
3594 | "145",
|
3595 | "AE",
|
3596 | "AF",
|
3597 | "AM",
|
3598 | "AZ",
|
3599 | "BD",
|
3600 | "BH",
|
3601 | "BN",
|
3602 | "BT",
|
3603 | "CN",
|
3604 | "CY",
|
3605 | "GE",
|
3606 | "HK",
|
3607 | "ID",
|
3608 | "IL",
|
3609 | "IN",
|
3610 | "IQ",
|
3611 | "IR",
|
3612 | "JO",
|
3613 | "JP",
|
3614 | "KG",
|
3615 | "KH",
|
3616 | "KP",
|
3617 | "KR",
|
3618 | "KW",
|
3619 | "KZ",
|
3620 | "LA",
|
3621 | "LB",
|
3622 | "LK",
|
3623 | "MM",
|
3624 | "MN",
|
3625 | "MO",
|
3626 | "MV",
|
3627 | "MY",
|
3628 | "NP",
|
3629 | "OM",
|
3630 | "PH",
|
3631 | "PK",
|
3632 | "PS",
|
3633 | "QA",
|
3634 | "SA",
|
3635 | "SG",
|
3636 | "SY",
|
3637 | "TH",
|
3638 | "TJ",
|
3639 | "TL",
|
3640 | "TM",
|
3641 | "TR",
|
3642 | "TW",
|
3643 | "UZ",
|
3644 | "VN",
|
3645 | "YE"
|
3646 | ],
|
3647 | "143": [
|
3648 | "143",
|
3649 | "KG",
|
3650 | "KZ",
|
3651 | "TJ",
|
3652 | "TM",
|
3653 | "UZ"
|
3654 | ],
|
3655 | "145": [
|
3656 | "145",
|
3657 | "AE",
|
3658 | "AM",
|
3659 | "AZ",
|
3660 | "BH",
|
3661 | "CY",
|
3662 | "GE",
|
3663 | "IL",
|
3664 | "IQ",
|
3665 | "JO",
|
3666 | "KW",
|
3667 | "LB",
|
3668 | "OM",
|
3669 | "PS",
|
3670 | "QA",
|
3671 | "SA",
|
3672 | "SY",
|
3673 | "TR",
|
3674 | "YE"
|
3675 | ],
|
3676 | "150": [
|
3677 | "039",
|
3678 | "150",
|
3679 | "151",
|
3680 | "154",
|
3681 | "155",
|
3682 | "AD",
|
3683 | "AL",
|
3684 | "AT",
|
3685 | "AX",
|
3686 | "BA",
|
3687 | "BE",
|
3688 | "BG",
|
3689 | "BY",
|
3690 | "CH",
|
3691 | "CQ",
|
3692 | "CZ",
|
3693 | "DE",
|
3694 | "DK",
|
3695 | "EE",
|
3696 | "ES",
|
3697 | "FI",
|
3698 | "FO",
|
3699 | "FR",
|
3700 | "GB",
|
3701 | "GG",
|
3702 | "GI",
|
3703 | "GR",
|
3704 | "HR",
|
3705 | "HU",
|
3706 | "IE",
|
3707 | "IM",
|
3708 | "IS",
|
3709 | "IT",
|
3710 | "JE",
|
3711 | "LI",
|
3712 | "LT",
|
3713 | "LU",
|
3714 | "LV",
|
3715 | "MC",
|
3716 | "MD",
|
3717 | "ME",
|
3718 | "MK",
|
3719 | "MT",
|
3720 | "NL",
|
3721 | "NO",
|
3722 | "PL",
|
3723 | "PT",
|
3724 | "RO",
|
3725 | "RS",
|
3726 | "RU",
|
3727 | "SE",
|
3728 | "SI",
|
3729 | "SJ",
|
3730 | "SK",
|
3731 | "SM",
|
3732 | "UA",
|
3733 | "VA",
|
3734 | "XK"
|
3735 | ],
|
3736 | "151": [
|
3737 | "151",
|
3738 | "BG",
|
3739 | "BY",
|
3740 | "CZ",
|
3741 | "HU",
|
3742 | "MD",
|
3743 | "PL",
|
3744 | "RO",
|
3745 | "RU",
|
3746 | "SK",
|
3747 | "UA"
|
3748 | ],
|
3749 | "154": [
|
3750 | "154",
|
3751 | "AX",
|
3752 | "CQ",
|
3753 | "DK",
|
3754 | "EE",
|
3755 | "FI",
|
3756 | "FO",
|
3757 | "GB",
|
3758 | "GG",
|
3759 | "IE",
|
3760 | "IM",
|
3761 | "IS",
|
3762 | "JE",
|
3763 | "LT",
|
3764 | "LV",
|
3765 | "NO",
|
3766 | "SE",
|
3767 | "SJ"
|
3768 | ],
|
3769 | "155": [
|
3770 | "155",
|
3771 | "AT",
|
3772 | "BE",
|
3773 | "CH",
|
3774 | "DE",
|
3775 | "FR",
|
3776 | "LI",
|
3777 | "LU",
|
3778 | "MC",
|
3779 | "NL"
|
3780 | ],
|
3781 | "202": [
|
3782 | "011",
|
3783 | "014",
|
3784 | "017",
|
3785 | "018",
|
3786 | "202",
|
3787 | "AO",
|
3788 | "BF",
|
3789 | "BI",
|
3790 | "BJ",
|
3791 | "BW",
|
3792 | "CD",
|
3793 | "CF",
|
3794 | "CG",
|
3795 | "CI",
|
3796 | "CM",
|
3797 | "CV",
|
3798 | "DJ",
|
3799 | "ER",
|
3800 | "ET",
|
3801 | "GA",
|
3802 | "GH",
|
3803 | "GM",
|
3804 | "GN",
|
3805 | "GQ",
|
3806 | "GW",
|
3807 | "IO",
|
3808 | "KE",
|
3809 | "KM",
|
3810 | "LR",
|
3811 | "LS",
|
3812 | "MG",
|
3813 | "ML",
|
3814 | "MR",
|
3815 | "MU",
|
3816 | "MW",
|
3817 | "MZ",
|
3818 | "NA",
|
3819 | "NE",
|
3820 | "NG",
|
3821 | "RE",
|
3822 | "RW",
|
3823 | "SC",
|
3824 | "SH",
|
3825 | "SL",
|
3826 | "SN",
|
3827 | "SO",
|
3828 | "SS",
|
3829 | "ST",
|
3830 | "SZ",
|
3831 | "TD",
|
3832 | "TF",
|
3833 | "TG",
|
3834 | "TZ",
|
3835 | "UG",
|
3836 | "YT",
|
3837 | "ZA",
|
3838 | "ZM",
|
3839 | "ZW"
|
3840 | ],
|
3841 | "419": [
|
3842 | "005",
|
3843 | "013",
|
3844 | "029",
|
3845 | "419",
|
3846 | "AG",
|
3847 | "AI",
|
3848 | "AR",
|
3849 | "AW",
|
3850 | "BB",
|
3851 | "BL",
|
3852 | "BO",
|
3853 | "BQ",
|
3854 | "BR",
|
3855 | "BS",
|
3856 | "BV",
|
3857 | "BZ",
|
3858 | "CL",
|
3859 | "CO",
|
3860 | "CR",
|
3861 | "CU",
|
3862 | "CW",
|
3863 | "DM",
|
3864 | "DO",
|
3865 | "EC",
|
3866 | "FK",
|
3867 | "GD",
|
3868 | "GF",
|
3869 | "GP",
|
3870 | "GS",
|
3871 | "GT",
|
3872 | "GY",
|
3873 | "HN",
|
3874 | "HT",
|
3875 | "JM",
|
3876 | "KN",
|
3877 | "KY",
|
3878 | "LC",
|
3879 | "MF",
|
3880 | "MQ",
|
3881 | "MS",
|
3882 | "MX",
|
3883 | "NI",
|
3884 | "PA",
|
3885 | "PE",
|
3886 | "PR",
|
3887 | "PY",
|
3888 | "SR",
|
3889 | "SV",
|
3890 | "SX",
|
3891 | "TC",
|
3892 | "TT",
|
3893 | "UY",
|
3894 | "VC",
|
3895 | "VE",
|
3896 | "VG",
|
3897 | "VI"
|
3898 | ],
|
3899 | "EU": [
|
3900 | "AT",
|
3901 | "BE",
|
3902 | "BG",
|
3903 | "CY",
|
3904 | "CZ",
|
3905 | "DE",
|
3906 | "DK",
|
3907 | "EE",
|
3908 | "ES",
|
3909 | "EU",
|
3910 | "FI",
|
3911 | "FR",
|
3912 | "GR",
|
3913 | "HR",
|
3914 | "HU",
|
3915 | "IE",
|
3916 | "IT",
|
3917 | "LT",
|
3918 | "LU",
|
3919 | "LV",
|
3920 | "MT",
|
3921 | "NL",
|
3922 | "PL",
|
3923 | "PT",
|
3924 | "RO",
|
3925 | "SE",
|
3926 | "SI",
|
3927 | "SK"
|
3928 | ],
|
3929 | "EZ": [
|
3930 | "AT",
|
3931 | "BE",
|
3932 | "CY",
|
3933 | "DE",
|
3934 | "EE",
|
3935 | "ES",
|
3936 | "EZ",
|
3937 | "FI",
|
3938 | "FR",
|
3939 | "GR",
|
3940 | "IE",
|
3941 | "IT",
|
3942 | "LT",
|
3943 | "LU",
|
3944 | "LV",
|
3945 | "MT",
|
3946 | "NL",
|
3947 | "PT",
|
3948 | "SI",
|
3949 | "SK"
|
3950 | ],
|
3951 | "QO": [
|
3952 | "AC",
|
3953 | "AQ",
|
3954 | "CP",
|
3955 | "DG",
|
3956 | "QO",
|
3957 | "TA"
|
3958 | ],
|
3959 | "UN": [
|
3960 | "AD",
|
3961 | "AE",
|
3962 | "AF",
|
3963 | "AG",
|
3964 | "AL",
|
3965 | "AM",
|
3966 | "AO",
|
3967 | "AR",
|
3968 | "AT",
|
3969 | "AU",
|
3970 | "AZ",
|
3971 | "BA",
|
3972 | "BB",
|
3973 | "BD",
|
3974 | "BE",
|
3975 | "BF",
|
3976 | "BG",
|
3977 | "BH",
|
3978 | "BI",
|
3979 | "BJ",
|
3980 | "BN",
|
3981 | "BO",
|
3982 | "BR",
|
3983 | "BS",
|
3984 | "BT",
|
3985 | "BW",
|
3986 | "BY",
|
3987 | "BZ",
|
3988 | "CA",
|
3989 | "CD",
|
3990 | "CF",
|
3991 | "CG",
|
3992 | "CH",
|
3993 | "CI",
|
3994 | "CL",
|
3995 | "CM",
|
3996 | "CN",
|
3997 | "CO",
|
3998 | "CR",
|
3999 | "CU",
|
4000 | "CV",
|
4001 | "CY",
|
4002 | "CZ",
|
4003 | "DE",
|
4004 | "DJ",
|
4005 | "DK",
|
4006 | "DM",
|
4007 | "DO",
|
4008 | "DZ",
|
4009 | "EC",
|
4010 | "EE",
|
4011 | "EG",
|
4012 | "ER",
|
4013 | "ES",
|
4014 | "ET",
|
4015 | "FI",
|
4016 | "FJ",
|
4017 | "FM",
|
4018 | "FR",
|
4019 | "GA",
|
4020 | "GB",
|
4021 | "GD",
|
4022 | "GE",
|
4023 | "GH",
|
4024 | "GM",
|
4025 | "GN",
|
4026 | "GQ",
|
4027 | "GR",
|
4028 | "GT",
|
4029 | "GW",
|
4030 | "GY",
|
4031 | "HN",
|
4032 | "HR",
|
4033 | "HT",
|
4034 | "HU",
|
4035 | "ID",
|
4036 | "IE",
|
4037 | "IL",
|
4038 | "IN",
|
4039 | "IQ",
|
4040 | "IR",
|
4041 | "IS",
|
4042 | "IT",
|
4043 | "JM",
|
4044 | "JO",
|
4045 | "JP",
|
4046 | "KE",
|
4047 | "KG",
|
4048 | "KH",
|
4049 | "KI",
|
4050 | "KM",
|
4051 | "KN",
|
4052 | "KP",
|
4053 | "KR",
|
4054 | "KW",
|
4055 | "KZ",
|
4056 | "LA",
|
4057 | "LB",
|
4058 | "LC",
|
4059 | "LI",
|
4060 | "LK",
|
4061 | "LR",
|
4062 | "LS",
|
4063 | "LT",
|
4064 | "LU",
|
4065 | "LV",
|
4066 | "LY",
|
4067 | "MA",
|
4068 | "MC",
|
4069 | "MD",
|
4070 | "ME",
|
4071 | "MG",
|
4072 | "MH",
|
4073 | "MK",
|
4074 | "ML",
|
4075 | "MM",
|
4076 | "MN",
|
4077 | "MR",
|
4078 | "MT",
|
4079 | "MU",
|
4080 | "MV",
|
4081 | "MW",
|
4082 | "MX",
|
4083 | "MY",
|
4084 | "MZ",
|
4085 | "NA",
|
4086 | "NE",
|
4087 | "NG",
|
4088 | "NI",
|
4089 | "NL",
|
4090 | "NO",
|
4091 | "NP",
|
4092 | "NR",
|
4093 | "NZ",
|
4094 | "OM",
|
4095 | "PA",
|
4096 | "PE",
|
4097 | "PG",
|
4098 | "PH",
|
4099 | "PK",
|
4100 | "PL",
|
4101 | "PT",
|
4102 | "PW",
|
4103 | "PY",
|
4104 | "QA",
|
4105 | "RO",
|
4106 | "RS",
|
4107 | "RU",
|
4108 | "RW",
|
4109 | "SA",
|
4110 | "SB",
|
4111 | "SC",
|
4112 | "SD",
|
4113 | "SE",
|
4114 | "SG",
|
4115 | "SI",
|
4116 | "SK",
|
4117 | "SL",
|
4118 | "SM",
|
4119 | "SN",
|
4120 | "SO",
|
4121 | "SR",
|
4122 | "SS",
|
4123 | "ST",
|
4124 | "SV",
|
4125 | "SY",
|
4126 | "SZ",
|
4127 | "TD",
|
4128 | "TG",
|
4129 | "TH",
|
4130 | "TJ",
|
4131 | "TL",
|
4132 | "TM",
|
4133 | "TN",
|
4134 | "TO",
|
4135 | "TR",
|
4136 | "TT",
|
4137 | "TV",
|
4138 | "TZ",
|
4139 | "UA",
|
4140 | "UG",
|
4141 | "UN",
|
4142 | "US",
|
4143 | "UY",
|
4144 | "UZ",
|
4145 | "VC",
|
4146 | "VE",
|
4147 | "VN",
|
4148 | "VU",
|
4149 | "WS",
|
4150 | "YE",
|
4151 | "ZA",
|
4152 | "ZM",
|
4153 | "ZW"
|
4154 | ]
|
4155 | };
|
4156 |
|
4157 |
|
4158 | var UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
|
4159 | function invariant2(condition, message, Err) {
|
4160 | if (Err === void 0) {
|
4161 | Err = Error;
|
4162 | }
|
4163 | if (!condition) {
|
4164 | throw new Err(message);
|
4165 | }
|
4166 | }
|
4167 | var DEFAULT_MATCHING_THRESHOLD = 840;
|
4168 | var PROCESSED_DATA;
|
4169 | function processData() {
|
4170 | var _a, _b;
|
4171 | if (!PROCESSED_DATA) {
|
4172 | var paradigmLocales = (_b = (_a = data.supplemental.languageMatching["written-new"][0]) === null || _a === void 0 ? void 0 : _a.paradigmLocales) === null || _b === void 0 ? void 0 : _b._locales.split(" ");
|
4173 | var matchVariables = data.supplemental.languageMatching["written-new"].slice(1, 5);
|
4174 | var data2 = data.supplemental.languageMatching["written-new"].slice(5);
|
4175 | var matches = data2.map(function(d) {
|
4176 | var key = Object.keys(d)[0];
|
4177 | var value = d[key];
|
4178 | return {
|
4179 | supported: key,
|
4180 | desired: value._desired,
|
4181 | distance: +value._distance,
|
4182 | oneway: value.oneway === "true" ? true : false
|
4183 | };
|
4184 | }, {});
|
4185 | PROCESSED_DATA = {
|
4186 | matches,
|
4187 | matchVariables: matchVariables.reduce(function(all, d) {
|
4188 | var key = Object.keys(d)[0];
|
4189 | var value = d[key];
|
4190 | all[key.slice(1)] = value._value.split("+");
|
4191 | return all;
|
4192 | }, {}),
|
4193 | paradigmLocales: __spreadArray(__spreadArray([], paradigmLocales, true), paradigmLocales.map(function(l) {
|
4194 | return new Intl.Locale(l.replace(/_/g, "-")).maximize().toString();
|
4195 | }), true)
|
4196 | };
|
4197 | }
|
4198 | return PROCESSED_DATA;
|
4199 | }
|
4200 | function isMatched(locale, languageMatchInfoLocale, matchVariables) {
|
4201 | var _a = languageMatchInfoLocale.split("-"), language = _a[0], script = _a[1], region = _a[2];
|
4202 | var matches = true;
|
4203 | if (region && region[0] === "$") {
|
4204 | var shouldInclude = region[1] !== "!";
|
4205 | var matchRegions = shouldInclude ? matchVariables[region.slice(1)] : matchVariables[region.slice(2)];
|
4206 | var expandedMatchedRegions = matchRegions.map(function(r) {
|
4207 | return regions[r] || [r];
|
4208 | }).reduce(function(all, list) {
|
4209 | return __spreadArray(__spreadArray([], all, true), list, true);
|
4210 | }, []);
|
4211 | matches && (matches = !(expandedMatchedRegions.indexOf(locale.region || "") > 1 != shouldInclude));
|
4212 | } else {
|
4213 | matches && (matches = locale.region ? region === "*" || region === locale.region : true);
|
4214 | }
|
4215 | matches && (matches = locale.script ? script === "*" || script === locale.script : true);
|
4216 | matches && (matches = locale.language ? language === "*" || language === locale.language : true);
|
4217 | return matches;
|
4218 | }
|
4219 | function serializeLSR(lsr) {
|
4220 | return [lsr.language, lsr.script, lsr.region].filter(Boolean).join("-");
|
4221 | }
|
4222 | function findMatchingDistanceForLSR(desired, supported, data2) {
|
4223 | for (var _i = 0, _a = data2.matches; _i < _a.length; _i++) {
|
4224 | var d = _a[_i];
|
4225 | var matches = isMatched(desired, d.desired, data2.matchVariables) && isMatched(supported, d.supported, data2.matchVariables);
|
4226 | if (!d.oneway && !matches) {
|
4227 | matches = isMatched(desired, d.supported, data2.matchVariables) && isMatched(supported, d.desired, data2.matchVariables);
|
4228 | }
|
4229 | if (matches) {
|
4230 | var distance = d.distance * 10;
|
4231 | if (data2.paradigmLocales.indexOf(serializeLSR(desired)) > -1 != data2.paradigmLocales.indexOf(serializeLSR(supported)) > -1) {
|
4232 | return distance - 1;
|
4233 | }
|
4234 | return distance;
|
4235 | }
|
4236 | }
|
4237 | throw new Error("No matching distance found");
|
4238 | }
|
4239 | function findMatchingDistance(desired, supported) {
|
4240 | var desiredLocale = new Intl.Locale(desired).maximize();
|
4241 | var supportedLocale = new Intl.Locale(supported).maximize();
|
4242 | var desiredLSR = {
|
4243 | language: desiredLocale.language,
|
4244 | script: desiredLocale.script || "",
|
4245 | region: desiredLocale.region || ""
|
4246 | };
|
4247 | var supportedLSR = {
|
4248 | language: supportedLocale.language,
|
4249 | script: supportedLocale.script || "",
|
4250 | region: supportedLocale.region || ""
|
4251 | };
|
4252 | var matchingDistance = 0;
|
4253 | var data2 = processData();
|
4254 | if (desiredLSR.language !== supportedLSR.language) {
|
4255 | matchingDistance += findMatchingDistanceForLSR({
|
4256 | language: desiredLocale.language,
|
4257 | script: "",
|
4258 | region: ""
|
4259 | }, {
|
4260 | language: supportedLocale.language,
|
4261 | script: "",
|
4262 | region: ""
|
4263 | }, data2);
|
4264 | }
|
4265 | if (desiredLSR.script !== supportedLSR.script) {
|
4266 | matchingDistance += findMatchingDistanceForLSR({
|
4267 | language: desiredLocale.language,
|
4268 | script: desiredLSR.script,
|
4269 | region: ""
|
4270 | }, {
|
4271 | language: supportedLocale.language,
|
4272 | script: desiredLSR.script,
|
4273 | region: ""
|
4274 | }, data2);
|
4275 | }
|
4276 | if (desiredLSR.region !== supportedLSR.region) {
|
4277 | matchingDistance += findMatchingDistanceForLSR(desiredLSR, supportedLSR, data2);
|
4278 | }
|
4279 | return matchingDistance;
|
4280 | }
|
4281 | function findBestMatch(requestedLocales, supportedLocales2, threshold) {
|
4282 | if (threshold === void 0) {
|
4283 | threshold = DEFAULT_MATCHING_THRESHOLD;
|
4284 | }
|
4285 | var lowestDistance = Infinity;
|
4286 | var result = {
|
4287 | matchedDesiredLocale: "",
|
4288 | distances: {}
|
4289 | };
|
4290 | requestedLocales.forEach(function(desired, i) {
|
4291 | if (!result.distances[desired]) {
|
4292 | result.distances[desired] = {};
|
4293 | }
|
4294 | supportedLocales2.forEach(function(supported, j) {
|
4295 | var distance = findMatchingDistance(desired, supported) + j + i * 40;
|
4296 | result.distances[desired][supported] = distance;
|
4297 | if (distance < lowestDistance) {
|
4298 | lowestDistance = distance;
|
4299 | result.matchedDesiredLocale = desired;
|
4300 | result.matchedSupportedLocale = supported;
|
4301 | }
|
4302 | });
|
4303 | });
|
4304 | if (lowestDistance >= threshold) {
|
4305 | result.matchedDesiredLocale = void 0;
|
4306 | result.matchedSupportedLocale = void 0;
|
4307 | }
|
4308 | return result;
|
4309 | }
|
4310 |
|
4311 |
|
4312 | function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
4313 | var foundLocale;
|
4314 | var extension;
|
4315 | var noExtensionLocales = [];
|
4316 | var noExtensionLocaleMap = requestedLocales.reduce(function(all, l) {
|
4317 | var noExtensionLocale = l.replace(UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
4318 | noExtensionLocales.push(noExtensionLocale);
|
4319 | all[noExtensionLocale] = l;
|
4320 | return all;
|
4321 | }, {});
|
4322 | var result = findBestMatch(noExtensionLocales, availableLocales);
|
4323 | if (result.matchedSupportedLocale && result.matchedDesiredLocale) {
|
4324 | foundLocale = result.matchedSupportedLocale;
|
4325 | extension = noExtensionLocaleMap[result.matchedDesiredLocale].slice(result.matchedDesiredLocale.length) || void 0;
|
4326 | }
|
4327 | if (!foundLocale) {
|
4328 | return { locale: getDefaultLocale() };
|
4329 | }
|
4330 | return {
|
4331 | locale: foundLocale,
|
4332 | extension
|
4333 | };
|
4334 | }
|
4335 |
|
4336 |
|
4337 | function BestAvailableLocale(availableLocales, locale) {
|
4338 | var candidate = locale;
|
4339 | while (true) {
|
4340 | if (availableLocales.indexOf(candidate) > -1) {
|
4341 | return candidate;
|
4342 | }
|
4343 | var pos = candidate.lastIndexOf("-");
|
4344 | if (!~pos) {
|
4345 | return void 0;
|
4346 | }
|
4347 | if (pos >= 2 && candidate[pos - 2] === "-") {
|
4348 | pos -= 2;
|
4349 | }
|
4350 | candidate = candidate.slice(0, pos);
|
4351 | }
|
4352 | }
|
4353 |
|
4354 |
|
4355 | function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
4356 | var result = { locale: "" };
|
4357 | for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
4358 | var locale = requestedLocales_1[_i];
|
4359 | var noExtensionLocale = locale.replace(UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
4360 | var availableLocale = BestAvailableLocale(availableLocales, noExtensionLocale);
|
4361 | if (availableLocale) {
|
4362 | result.locale = availableLocale;
|
4363 | if (locale !== noExtensionLocale) {
|
4364 | result.extension = locale.slice(noExtensionLocale.length, locale.length);
|
4365 | }
|
4366 | return result;
|
4367 | }
|
4368 | }
|
4369 | result.locale = getDefaultLocale();
|
4370 | return result;
|
4371 | }
|
4372 |
|
4373 |
|
4374 | function UnicodeExtensionValue(extension, key) {
|
4375 | invariant2(key.length === 2, "key must have 2 elements");
|
4376 | var size = extension.length;
|
4377 | var searchValue = "-".concat(key, "-");
|
4378 | var pos = extension.indexOf(searchValue);
|
4379 | if (pos !== -1) {
|
4380 | var start = pos + 4;
|
4381 | var end = start;
|
4382 | var k = start;
|
4383 | var done = false;
|
4384 | while (!done) {
|
4385 | var e = extension.indexOf("-", k);
|
4386 | var len = void 0;
|
4387 | if (e === -1) {
|
4388 | len = size - k;
|
4389 | } else {
|
4390 | len = e - k;
|
4391 | }
|
4392 | if (len === 2) {
|
4393 | done = true;
|
4394 | } else if (e === -1) {
|
4395 | end = size;
|
4396 | done = true;
|
4397 | } else {
|
4398 | end = e;
|
4399 | k = e + 1;
|
4400 | }
|
4401 | }
|
4402 | return extension.slice(start, end);
|
4403 | }
|
4404 | searchValue = "-".concat(key);
|
4405 | pos = extension.indexOf(searchValue);
|
4406 | if (pos !== -1 && pos + 3 === size) {
|
4407 | return "";
|
4408 | }
|
4409 | return void 0;
|
4410 | }
|
4411 |
|
4412 |
|
4413 | function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
|
4414 | var matcher = options.localeMatcher;
|
4415 | var r;
|
4416 | if (matcher === "lookup") {
|
4417 | r = LookupMatcher(Array.from(availableLocales), requestedLocales, getDefaultLocale);
|
4418 | } else {
|
4419 | r = BestFitMatcher(Array.from(availableLocales), requestedLocales, getDefaultLocale);
|
4420 | }
|
4421 | var foundLocale = r.locale;
|
4422 | var result = { locale: "", dataLocale: foundLocale };
|
4423 | var supportedExtension = "-u";
|
4424 | for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys; _i < relevantExtensionKeys_1.length; _i++) {
|
4425 | var key = relevantExtensionKeys_1[_i];
|
4426 | invariant2(foundLocale in localeData, "Missing locale data for ".concat(foundLocale));
|
4427 | var foundLocaleData = localeData[foundLocale];
|
4428 | invariant2(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data ".concat(key, " must be an object"));
|
4429 | var keyLocaleData = foundLocaleData[key];
|
4430 | invariant2(Array.isArray(keyLocaleData), "keyLocaleData for ".concat(key, " must be an array"));
|
4431 | var value = keyLocaleData[0];
|
4432 | invariant2(typeof value === "string" || value === null, "value must be string or null but got ".concat(typeof value, " in key ").concat(key));
|
4433 | var supportedExtensionAddition = "";
|
4434 | if (r.extension) {
|
4435 | var requestedValue = UnicodeExtensionValue(r.extension, key);
|
4436 | if (requestedValue !== void 0) {
|
4437 | if (requestedValue !== "") {
|
4438 | if (~keyLocaleData.indexOf(requestedValue)) {
|
4439 | value = requestedValue;
|
4440 | supportedExtensionAddition = "-".concat(key, "-").concat(value);
|
4441 | }
|
4442 | } else if (~requestedValue.indexOf("true")) {
|
4443 | value = "true";
|
4444 | supportedExtensionAddition = "-".concat(key);
|
4445 | }
|
4446 | }
|
4447 | }
|
4448 | if (key in options) {
|
4449 | var optionsValue = options[key];
|
4450 | invariant2(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
|
4451 | if (~keyLocaleData.indexOf(optionsValue)) {
|
4452 | if (optionsValue !== value) {
|
4453 | value = optionsValue;
|
4454 | supportedExtensionAddition = "";
|
4455 | }
|
4456 | }
|
4457 | }
|
4458 | result[key] = value;
|
4459 | supportedExtension += supportedExtensionAddition;
|
4460 | }
|
4461 | if (supportedExtension.length > 2) {
|
4462 | var privateIndex = foundLocale.indexOf("-x-");
|
4463 | if (privateIndex === -1) {
|
4464 | foundLocale = foundLocale + supportedExtension;
|
4465 | } else {
|
4466 | var preExtension = foundLocale.slice(0, privateIndex);
|
4467 | var postExtension = foundLocale.slice(privateIndex, foundLocale.length);
|
4468 | foundLocale = preExtension + supportedExtension + postExtension;
|
4469 | }
|
4470 | foundLocale = Intl.getCanonicalLocales(foundLocale)[0];
|
4471 | }
|
4472 | result.locale = foundLocale;
|
4473 | return result;
|
4474 | }
|
4475 |
|
4476 |
|
4477 | function LookupSupportedLocales(availableLocales, requestedLocales) {
|
4478 | var subset = [];
|
4479 | for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
4480 | var locale = requestedLocales_1[_i];
|
4481 | var noExtensionLocale = locale.replace(UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
4482 | var availableLocale = BestAvailableLocale(availableLocales, noExtensionLocale);
|
4483 | if (availableLocale) {
|
4484 | subset.push(availableLocale);
|
4485 | }
|
4486 | }
|
4487 | return subset;
|
4488 | }
|
4489 |
|
4490 |
|
4491 | function match(requestedLocales, availableLocales, defaultLocale, opts) {
|
4492 | return ResolveLocale(availableLocales, CanonicalizeLocaleList2(requestedLocales), {
|
4493 | localeMatcher: (opts === null || opts === void 0 ? void 0 : opts.algorithm) || "best fit"
|
4494 | }, [], {}, function() {
|
4495 | return defaultLocale;
|
4496 | }).locale;
|
4497 | }
|
4498 |
|
4499 |
|
4500 | function PartitionPattern(pattern) {
|
4501 | var result = [];
|
4502 | var beginIndex = pattern.indexOf("{");
|
4503 | var endIndex = 0;
|
4504 | var nextIndex = 0;
|
4505 | var length = pattern.length;
|
4506 | while (beginIndex < pattern.length && beginIndex > -1) {
|
4507 | endIndex = pattern.indexOf("}", beginIndex);
|
4508 | invariant(endIndex > beginIndex, "Invalid pattern ".concat(pattern));
|
4509 | if (beginIndex > nextIndex) {
|
4510 | result.push({
|
4511 | type: "literal",
|
4512 | value: pattern.substring(nextIndex, beginIndex)
|
4513 | });
|
4514 | }
|
4515 | result.push({
|
4516 | type: pattern.substring(beginIndex + 1, endIndex),
|
4517 | value: void 0
|
4518 | });
|
4519 | nextIndex = endIndex + 1;
|
4520 | beginIndex = pattern.indexOf("{", nextIndex);
|
4521 | }
|
4522 | if (nextIndex < length) {
|
4523 | result.push({
|
4524 | type: "literal",
|
4525 | value: pattern.substring(nextIndex, length)
|
4526 | });
|
4527 | }
|
4528 | return result;
|
4529 | }
|
4530 |
|
4531 |
|
4532 | function SupportedLocales(availableLocales, requestedLocales, options) {
|
4533 | var matcher = "best fit";
|
4534 | if (options !== void 0) {
|
4535 | options = ToObject(options);
|
4536 | matcher = GetOption(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
4537 | }
|
4538 | if (matcher === "best fit") {
|
4539 | return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
|
4540 | }
|
4541 | return LookupSupportedLocales(Array.from(availableLocales), requestedLocales);
|
4542 | }
|
4543 |
|
4544 |
|
4545 | var MissingLocaleDataError = (
|
4546 |
|
4547 | function(_super) {
|
4548 | __extends(MissingLocaleDataError2, _super);
|
4549 | function MissingLocaleDataError2() {
|
4550 | var _this = _super !== null && _super.apply(this, arguments) || this;
|
4551 | _this.type = "MISSING_LOCALE_DATA";
|
4552 | return _this;
|
4553 | }
|
4554 | return MissingLocaleDataError2;
|
4555 | }(Error)
|
4556 | );
|
4557 |
|
4558 |
|
4559 | var RangePatternType;
|
4560 | (function(RangePatternType2) {
|
4561 | RangePatternType2["startRange"] = "startRange";
|
4562 | RangePatternType2["shared"] = "shared";
|
4563 | RangePatternType2["endRange"] = "endRange";
|
4564 | })(RangePatternType || (RangePatternType = {}));
|
4565 |
|
4566 |
|
4567 | var NUMBERING_SYSTEM_REGEX = /^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;
|
4568 | function InitializeRelativeTimeFormat(rtf, locales, options, _a) {
|
4569 | var getInternalSlots2 = _a.getInternalSlots, availableLocales = _a.availableLocales, relevantExtensionKeys = _a.relevantExtensionKeys, localeData = _a.localeData, getDefaultLocale = _a.getDefaultLocale;
|
4570 | var internalSlots = getInternalSlots2(rtf);
|
4571 | internalSlots.initializedRelativeTimeFormat = true;
|
4572 | var requestedLocales = CanonicalizeLocaleList(locales);
|
4573 | var opt = Object.create(null);
|
4574 | var opts = CoerceOptionsToObject(options);
|
4575 | var matcher = GetOption(opts, "localeMatcher", "string", ["best fit", "lookup"], "best fit");
|
4576 | opt.localeMatcher = matcher;
|
4577 | var numberingSystem = GetOption(
|
4578 | opts,
|
4579 |
|
4580 | "numberingSystem",
|
4581 | "string",
|
4582 | void 0,
|
4583 | void 0
|
4584 | );
|
4585 | if (numberingSystem !== void 0) {
|
4586 | if (!NUMBERING_SYSTEM_REGEX.test(numberingSystem)) {
|
4587 | throw new RangeError("Invalid numbering system ".concat(numberingSystem));
|
4588 | }
|
4589 | }
|
4590 | opt.nu = numberingSystem;
|
4591 | var r = ResolveLocale(availableLocales, requestedLocales, opt, relevantExtensionKeys, localeData, getDefaultLocale);
|
4592 | var locale = r.locale, nu = r.nu;
|
4593 | internalSlots.locale = locale;
|
4594 | internalSlots.style = GetOption(opts, "style", "string", ["long", "narrow", "short"], "long");
|
4595 | internalSlots.numeric = GetOption(opts, "numeric", "string", ["always", "auto"], "always");
|
4596 | var fields = localeData[r.dataLocale];
|
4597 | invariant(!!fields, "Missing locale data for ".concat(r.dataLocale));
|
4598 | internalSlots.fields = fields;
|
4599 | internalSlots.numberFormat = new Intl.NumberFormat(locales);
|
4600 | internalSlots.pluralRules = new Intl.PluralRules(locales);
|
4601 | internalSlots.numberingSystem = nu;
|
4602 | return rtf;
|
4603 | }
|
4604 |
|
4605 |
|
4606 | function SingularRelativeTimeUnit(unit) {
|
4607 | invariant(Type(unit) === "String", "unit must be a string");
|
4608 | if (unit === "seconds")
|
4609 | return "second";
|
4610 | if (unit === "minutes")
|
4611 | return "minute";
|
4612 | if (unit === "hours")
|
4613 | return "hour";
|
4614 | if (unit === "days")
|
4615 | return "day";
|
4616 | if (unit === "weeks")
|
4617 | return "week";
|
4618 | if (unit === "months")
|
4619 | return "month";
|
4620 | if (unit === "quarters")
|
4621 | return "quarter";
|
4622 | if (unit === "years")
|
4623 | return "year";
|
4624 | if (unit !== "second" && unit !== "minute" && unit !== "hour" && unit !== "day" && unit !== "week" && unit !== "month" && unit !== "quarter" && unit !== "year") {
|
4625 | throw new RangeError("invalid unit");
|
4626 | }
|
4627 | return unit;
|
4628 | }
|
4629 |
|
4630 |
|
4631 | function MakePartsList(pattern, unit, parts) {
|
4632 | var patternParts = PartitionPattern(pattern);
|
4633 | var result = [];
|
4634 | for (var _i = 0, patternParts_1 = patternParts; _i < patternParts_1.length; _i++) {
|
4635 | var patternPart = patternParts_1[_i];
|
4636 | if (patternPart.type === "literal") {
|
4637 | result.push({
|
4638 | type: "literal",
|
4639 | value: patternPart.value
|
4640 | });
|
4641 | } else {
|
4642 | invariant(patternPart.type === "0", "Malformed pattern ".concat(pattern));
|
4643 | for (var _a = 0, parts_1 = parts; _a < parts_1.length; _a++) {
|
4644 | var part = parts_1[_a];
|
4645 | result.push({
|
4646 | type: part.type,
|
4647 | value: part.value,
|
4648 | unit
|
4649 | });
|
4650 | }
|
4651 | }
|
4652 | }
|
4653 | return result;
|
4654 | }
|
4655 |
|
4656 |
|
4657 | function PartitionRelativeTimePattern(rtf, value, unit, _a) {
|
4658 | var getInternalSlots2 = _a.getInternalSlots;
|
4659 | invariant(Type(value) === "Number", "value must be number, instead got ".concat(typeof value), TypeError);
|
4660 | invariant(Type(unit) === "String", "unit must be number, instead got ".concat(typeof value), TypeError);
|
4661 | if (isNaN(value) || !isFinite(value)) {
|
4662 | throw new RangeError("Invalid value ".concat(value));
|
4663 | }
|
4664 | var resolvedUnit = SingularRelativeTimeUnit(unit);
|
4665 | var _b = getInternalSlots2(rtf), fields = _b.fields, style = _b.style, numeric = _b.numeric, pluralRules = _b.pluralRules, numberFormat = _b.numberFormat;
|
4666 | var entry = resolvedUnit;
|
4667 | if (style === "short") {
|
4668 | entry = "".concat(resolvedUnit, "-short");
|
4669 | } else if (style === "narrow") {
|
4670 | entry = "".concat(resolvedUnit, "-narrow");
|
4671 | }
|
4672 | if (!(entry in fields)) {
|
4673 | entry = resolvedUnit;
|
4674 | }
|
4675 | var patterns = fields[entry];
|
4676 | if (numeric === "auto") {
|
4677 | if (ToString(value) in patterns) {
|
4678 | return [
|
4679 | {
|
4680 | type: "literal",
|
4681 | value: patterns[ToString(value)]
|
4682 | }
|
4683 | ];
|
4684 | }
|
4685 | }
|
4686 | var tl = "future";
|
4687 | if (SameValue(value, -0) || value < 0) {
|
4688 | tl = "past";
|
4689 | }
|
4690 | var po = patterns[tl];
|
4691 | var fv = typeof numberFormat.formatToParts === "function" ? numberFormat.formatToParts(Math.abs(value)) : (
|
4692 |
|
4693 |
|
4694 | [
|
4695 | {
|
4696 | type: "literal",
|
4697 | value: numberFormat.format(Math.abs(value)),
|
4698 | unit
|
4699 | }
|
4700 | ]
|
4701 | );
|
4702 | var pr = pluralRules.select(value);
|
4703 | var pattern = po[pr];
|
4704 | return MakePartsList(pattern, resolvedUnit, fv);
|
4705 | }
|
4706 |
|
4707 |
|
4708 | var internalSlotMap = new WeakMap();
|
4709 | function getInternalSlots(x) {
|
4710 | var internalSlots = internalSlotMap.get(x);
|
4711 | if (!internalSlots) {
|
4712 | internalSlots = Object.create(null);
|
4713 | internalSlotMap.set(x, internalSlots);
|
4714 | }
|
4715 | return internalSlots;
|
4716 | }
|
4717 |
|
4718 |
|
4719 | var RelativeTimeFormat = (
|
4720 |
|
4721 | function() {
|
4722 | function RelativeTimeFormat2(locales, options) {
|
4723 | var newTarget = this && this instanceof RelativeTimeFormat2 ? this.constructor : void 0;
|
4724 | if (!newTarget) {
|
4725 | throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'");
|
4726 | }
|
4727 | return InitializeRelativeTimeFormat(this, locales, options, {
|
4728 | getInternalSlots,
|
4729 | availableLocales: RelativeTimeFormat2.availableLocales,
|
4730 | relevantExtensionKeys: RelativeTimeFormat2.relevantExtensionKeys,
|
4731 | localeData: RelativeTimeFormat2.localeData,
|
4732 | getDefaultLocale: RelativeTimeFormat2.getDefaultLocale
|
4733 | });
|
4734 | }
|
4735 | RelativeTimeFormat2.prototype.format = function(value, unit) {
|
4736 | if (typeof this !== "object") {
|
4737 | throw new TypeError("format was called on a non-object");
|
4738 | }
|
4739 | var internalSlots = getInternalSlots(this);
|
4740 | if (!internalSlots.initializedRelativeTimeFormat) {
|
4741 | throw new TypeError("format was called on a invalid context");
|
4742 | }
|
4743 | return PartitionRelativeTimePattern(this, Number(value), ToString(unit), {
|
4744 | getInternalSlots
|
4745 | }).map(function(el) {
|
4746 | return el.value;
|
4747 | }).join("");
|
4748 | };
|
4749 | RelativeTimeFormat2.prototype.formatToParts = function(value, unit) {
|
4750 | if (typeof this !== "object") {
|
4751 | throw new TypeError("formatToParts was called on a non-object");
|
4752 | }
|
4753 | var internalSlots = getInternalSlots(this);
|
4754 | if (!internalSlots.initializedRelativeTimeFormat) {
|
4755 | throw new TypeError("formatToParts was called on a invalid context");
|
4756 | }
|
4757 | return PartitionRelativeTimePattern(this, Number(value), ToString(unit), { getInternalSlots });
|
4758 | };
|
4759 | RelativeTimeFormat2.prototype.resolvedOptions = function() {
|
4760 | if (typeof this !== "object") {
|
4761 | throw new TypeError("resolvedOptions was called on a non-object");
|
4762 | }
|
4763 | var internalSlots = getInternalSlots(this);
|
4764 | if (!internalSlots.initializedRelativeTimeFormat) {
|
4765 | throw new TypeError("resolvedOptions was called on a invalid context");
|
4766 | }
|
4767 | return {
|
4768 | locale: internalSlots.locale,
|
4769 | style: internalSlots.style,
|
4770 | numeric: internalSlots.numeric,
|
4771 | numberingSystem: internalSlots.numberingSystem
|
4772 | };
|
4773 | };
|
4774 | RelativeTimeFormat2.supportedLocalesOf = function(locales, options) {
|
4775 | return SupportedLocales(RelativeTimeFormat2.availableLocales, CanonicalizeLocaleList(locales), options);
|
4776 | };
|
4777 | RelativeTimeFormat2.__addLocaleData = function() {
|
4778 | var data2 = [];
|
4779 | for (var _i = 0; _i < arguments.length; _i++) {
|
4780 | data2[_i] = arguments[_i];
|
4781 | }
|
4782 | for (var _a = 0, data_1 = data2; _a < data_1.length; _a++) {
|
4783 | var _b = data_1[_a], d = _b.data, locale = _b.locale;
|
4784 | var minimizedLocale = new Intl.Locale(locale).minimize().toString();
|
4785 | RelativeTimeFormat2.localeData[locale] = RelativeTimeFormat2.localeData[minimizedLocale] = d;
|
4786 | RelativeTimeFormat2.availableLocales.add(minimizedLocale);
|
4787 | RelativeTimeFormat2.availableLocales.add(locale);
|
4788 | if (!RelativeTimeFormat2.__defaultLocale) {
|
4789 | RelativeTimeFormat2.__defaultLocale = minimizedLocale;
|
4790 | }
|
4791 | }
|
4792 | };
|
4793 | RelativeTimeFormat2.getDefaultLocale = function() {
|
4794 | return RelativeTimeFormat2.__defaultLocale;
|
4795 | };
|
4796 | RelativeTimeFormat2.localeData = {};
|
4797 | RelativeTimeFormat2.availableLocales = new Set();
|
4798 | RelativeTimeFormat2.__defaultLocale = "";
|
4799 | RelativeTimeFormat2.relevantExtensionKeys = ["nu"];
|
4800 | RelativeTimeFormat2.polyfilled = true;
|
4801 | return RelativeTimeFormat2;
|
4802 | }()
|
4803 | );
|
4804 | var lib_default = RelativeTimeFormat;
|
4805 | try {
|
4806 | if (typeof Symbol !== "undefined") {
|
4807 | Object.defineProperty(RelativeTimeFormat.prototype, Symbol.toStringTag, {
|
4808 | value: "Intl.RelativeTimeFormat",
|
4809 | writable: false,
|
4810 | enumerable: false,
|
4811 | configurable: true
|
4812 | });
|
4813 | }
|
4814 | Object.defineProperty(RelativeTimeFormat.prototype.constructor, "length", {
|
4815 | value: 0,
|
4816 | writable: false,
|
4817 | enumerable: false,
|
4818 | configurable: true
|
4819 | });
|
4820 | Object.defineProperty(RelativeTimeFormat.supportedLocalesOf, "length", {
|
4821 | value: 1,
|
4822 | writable: false,
|
4823 | enumerable: false,
|
4824 | configurable: true
|
4825 | });
|
4826 | } catch (e) {
|
4827 | }
|
4828 |
|
4829 |
|
4830 | var supportedLocales = ["af", "af-NA", "agq", "ak", "am", "ar", "ar-AE", "ar-BH", "ar-DJ", "ar-DZ", "ar-EG", "ar-EH", "ar-ER", "ar-IL", "ar-IQ", "ar-JO", "ar-KM", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-MR", "ar-OM", "ar-PS", "ar-QA", "ar-SA", "ar-SD", "ar-SO", "ar-SS", "ar-SY", "ar-TD", "ar-TN", "ar-YE", "as", "asa", "ast", "az", "az-Cyrl", "az-Latn", "bas", "be", "be-tarask", "bem", "bez", "bg", "bm", "bn", "bn-IN", "bo", "bo-IN", "br", "brx", "bs", "bs-Cyrl", "bs-Latn", "ca", "ca-AD", "ca-ES-valencia", "ca-FR", "ca-IT", "ccp", "ccp-IN", "ce", "ceb", "cgg", "chr", "ckb", "ckb-IR", "cs", "cy", "da", "da-GL", "dav", "de", "de-AT", "de-BE", "de-CH", "de-IT", "de-LI", "de-LU", "dje", "doi", "dsb", "dua", "dyo", "dz", "ebu", "ee", "ee-TG", "el", "el-CY", "en", "en-001", "en-150", "en-AE", "en-AG", "en-AI", "en-AS", "en-AT", "en-AU", "en-BB", "en-BE", "en-BI", "en-BM", "en-BS", "en-BW", "en-BZ", "en-CA", "en-CC", "en-CH", "en-CK", "en-CM", "en-CX", "en-CY", "en-DE", "en-DG", "en-DK", "en-DM", "en-ER", "en-FI", "en-FJ", "en-FK", "en-FM", "en-GB", "en-GD", "en-GG", "en-GH", "en-GI", "en-GM", "en-GU", "en-GY", "en-HK", "en-IE", "en-IL", "en-IM", "en-IN", "en-IO", "en-JE", "en-JM", "en-KE", "en-KI", "en-KN", "en-KY", "en-LC", "en-LR", "en-LS", "en-MG", "en-MH", "en-MO", "en-MP", "en-MS", "en-MT", "en-MU", "en-MW", "en-MY", "en-NA", "en-NF", "en-NG", "en-NL", "en-NR", "en-NU", "en-NZ", "en-PG", "en-PH", "en-PK", "en-PN", "en-PR", "en-PW", "en-RW", "en-SB", "en-SC", "en-SD", "en-SE", "en-SG", "en-SH", "en-SI", "en-SL", "en-SS", "en-SX", "en-SZ", "en-TC", "en-TK", "en-TO", "en-TT", "en-TV", "en-TZ", "en-UG", "en-UM", "en-VC", "en-VG", "en-VI", "en-VU", "en-WS", "en-ZA", "en-ZM", "en-ZW", "eo", "es", "es-419", "es-AR", "es-BO", "es-BR", "es-BZ", "es-CL", "es-CO", "es-CR", "es-CU", "es-DO", "es-EA", "es-EC", "es-GQ", "es-GT", "es-HN", "es-IC", "es-MX", "es-NI", "es-PA", "es-PE", "es-PH", "es-PR", "es-PY", "es-SV", "es-US", "es-UY", "es-VE", "et", "eu", "ewo", "fa", "fa-AF", "ff", "ff-Adlm", "ff-Adlm-BF", "ff-Adlm-CM", "ff-Adlm-GH", "ff-Adlm-GM", "ff-Adlm-GW", "ff-Adlm-LR", "ff-Adlm-MR", "ff-Adlm-NE", "ff-Adlm-NG", "ff-Adlm-SL", "ff-Adlm-SN", "ff-Latn", "ff-Latn-BF", "ff-Latn-CM", "ff-Latn-GH", "ff-Latn-GM", "ff-Latn-GN", "ff-Latn-GW", "ff-Latn-LR", "ff-Latn-MR", "ff-Latn-NE", "ff-Latn-NG", "ff-Latn-SL", "fi", "fil", "fo", "fo-DK", "fr", "fr-BE", "fr-BF", "fr-BI", "fr-BJ", "fr-BL", "fr-CA", "fr-CD", "fr-CF", "fr-CG", "fr-CH", "fr-CI", "fr-CM", "fr-DJ", "fr-DZ", "fr-GA", "fr-GF", "fr-GN", "fr-GP", "fr-GQ", "fr-HT", "fr-KM", "fr-LU", "fr-MA", "fr-MC", "fr-MF", "fr-MG", "fr-ML", "fr-MQ", "fr-MR", "fr-MU", "fr-NC", "fr-NE", "fr-PF", "fr-PM", "fr-RE", "fr-RW", "fr-SC", "fr-SN", "fr-SY", "fr-TD", "fr-TG", "fr-TN", "fr-VU", "fr-WF", "fr-YT", "fur", "fy", "ga", "ga-GB", "gd", "gl", "gsw", "gsw-FR", "gsw-LI", "gu", "guz", "gv", "ha", "ha-GH", "ha-NE", "haw", "he", "hi", "hr", "hr-BA", "hsb", "hu", "hy", "ia", "id", "ig", "ii", "is", "it", "it-CH", "it-SM", "it-VA", "ja", "jgo", "jmc", "jv", "ka", "kab", "kam", "kde", "kea", "kgp", "khq", "ki", "kk", "kkj", "kl", "kln", "km", "kn", "ko", "ko-KP", "kok", "ks", "ks-Arab", "ksb", "ksf", "ksh", "ku", "kw", "ky", "lag", "lb", "lg", "lkt", "ln", "ln-AO", "ln-CF", "ln-CG", "lo", "lrc", "lrc-IQ", "lt", "lu", "luo", "luy", "lv", "mai", "mas", "mas-TZ", "mer", "mfe", "mg", "mgh", "mgo", "mi", "mk", "ml", "mn", "mni", "mni-Beng", "mr", "ms", "ms-BN", "ms-ID", "ms-SG", "mt", "mua", "my", "mzn", "naq", "nb", "nb-SJ", "nd", "nds", "nds-NL", "ne", "ne-IN", "nl", "nl-AW", "nl-BE", "nl-BQ", "nl-CW", "nl-SR", "nl-SX", "nmg", "nn", "nnh", "no", "nus", "nyn", "om", "om-KE", "or", "os", "os-RU", "pa", "pa-Arab", "pa-Guru", "pcm", "pl", "ps", "ps-PK", "pt", "pt-AO", "pt-CH", "pt-CV", "pt-GQ", "pt-GW", "pt-LU", "pt-MO", "pt-MZ", "pt-PT", "pt-ST", "pt-TL", "qu", "qu-BO", "qu-EC", "rm", "rn", "ro", "ro-MD", "rof", "ru", "ru-BY", "ru-KG", "ru-KZ", "ru-MD", "ru-UA", "rw", "rwk", "sa", "sah", "saq", "sat", "sat-Olck", "sbp", "sc", "sd", "sd-Arab", "sd-Deva", "se", "se-FI", "se-SE", "seh", "ses", "sg", "shi", "shi-Latn", "shi-Tfng", "si", "sk", "sl", "smn", "sn", "so", "so-DJ", "so-ET", "so-KE", "sq", "sq-MK", "sq-XK", "sr", "sr-Cyrl", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK", "sr-Latn", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "su", "su-Latn", "sv", "sv-AX", "sv-FI", "sw", "sw-CD", "sw-KE", "sw-UG", "ta", "ta-LK", "ta-MY", "ta-SG", "te", "teo", "teo-KE", "tg", "th", "ti", "ti-ER", "tk", "to", "tr", "tr-CY", "tt", "twq", "tzm", "ug", "uk", "und", "ur", "ur-IN", "uz", "uz-Arab", "uz-Cyrl", "uz-Latn", "vai", "vai-Latn", "vai-Vaii", "vi", "vun", "wae", "wo", "xh", "xog", "yav", "yi", "yo", "yo-BJ", "yrl", "yrl-CO", "yrl-VE", "yue", "yue-Hans", "yue-Hant", "zgh", "zh", "zh-Hans", "zh-Hans-HK", "zh-Hans-MO", "zh-Hans-SG", "zh-Hant", "zh-Hant-HK", "zh-Hant-MO", "zu"];
|
4831 |
|
4832 |
|
4833 | function supportedLocalesOf(locale) {
|
4834 | if (!locale) {
|
4835 | return true;
|
4836 | }
|
4837 | var locales = Array.isArray(locale) ? locale : [locale];
|
4838 | return Intl.RelativeTimeFormat.supportedLocalesOf(locales).length === locales.length;
|
4839 | }
|
4840 | function hasResolvedOptionsNumberingSystem(locale) {
|
4841 | try {
|
4842 | return "numberingSystem" in new Intl.RelativeTimeFormat(locale || "en", {
|
4843 | numeric: "auto"
|
4844 | }).resolvedOptions();
|
4845 | } catch (_) {
|
4846 | return false;
|
4847 | }
|
4848 | }
|
4849 | function shouldPolyfill(locale) {
|
4850 | if (locale === void 0) {
|
4851 | locale = "en";
|
4852 | }
|
4853 | if (!("RelativeTimeFormat" in Intl) || !supportedLocalesOf(locale) || !hasResolvedOptionsNumberingSystem(locale)) {
|
4854 | return match([locale], supportedLocales, "en");
|
4855 | }
|
4856 | }
|
4857 |
|
4858 |
|
4859 | if (shouldPolyfill()) {
|
4860 | Object.defineProperty(Intl, "RelativeTimeFormat", {
|
4861 | value: lib_default,
|
4862 | writable: true,
|
4863 | enumerable: false,
|
4864 | configurable: true
|
4865 | });
|
4866 | }
|
4867 | })();
|
4868 |
|