@geekron/strapi 0.1.6 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/index.js +1076 -2241
- package/dist/admin/index.mjs +1076 -2241
- package/package.json +8 -7
package/dist/admin/index.mjs
CHANGED
|
@@ -59,6 +59,7 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
59
59
|
var __createBinding;
|
|
60
60
|
var __addDisposableResource;
|
|
61
61
|
var __disposeResources;
|
|
62
|
+
var __rewriteRelativeImportExtension;
|
|
62
63
|
(function(factory) {
|
|
63
64
|
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
64
65
|
if (typeof define === "function" && define.amd) {
|
|
@@ -230,8 +231,8 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
230
231
|
if (t2[0] & 1)
|
|
231
232
|
throw t2[1];
|
|
232
233
|
return t2[1];
|
|
233
|
-
}, trys: [], ops: [] }, f2, y2, t2, g2;
|
|
234
|
-
return g2 =
|
|
234
|
+
}, trys: [], ops: [] }, f2, y2, t2, g2 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
235
|
+
return g2.next = verb(0), g2["throw"] = verb(1), g2["return"] = verb(2), typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
|
|
235
236
|
return this;
|
|
236
237
|
}), g2;
|
|
237
238
|
function verb(n2) {
|
|
@@ -387,16 +388,24 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
387
388
|
if (!Symbol.asyncIterator)
|
|
388
389
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
389
390
|
var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
|
|
390
|
-
return i2 =
|
|
391
|
+
return i2 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
|
|
391
392
|
return this;
|
|
392
393
|
}, i2;
|
|
393
|
-
function
|
|
394
|
-
|
|
394
|
+
function awaitReturn(f2) {
|
|
395
|
+
return function(v2) {
|
|
396
|
+
return Promise.resolve(v2).then(f2, reject);
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
function verb(n2, f2) {
|
|
400
|
+
if (g2[n2]) {
|
|
395
401
|
i2[n2] = function(v2) {
|
|
396
402
|
return new Promise(function(a2, b2) {
|
|
397
403
|
q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
|
|
398
404
|
});
|
|
399
405
|
};
|
|
406
|
+
if (f2)
|
|
407
|
+
i2[n2] = f2(i2[n2]);
|
|
408
|
+
}
|
|
400
409
|
}
|
|
401
410
|
function resume(n2, v2) {
|
|
402
411
|
try {
|
|
@@ -465,14 +474,24 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
465
474
|
} : function(o2, v2) {
|
|
466
475
|
o2["default"] = v2;
|
|
467
476
|
};
|
|
477
|
+
var ownKeys = function(o2) {
|
|
478
|
+
ownKeys = Object.getOwnPropertyNames || function(o3) {
|
|
479
|
+
var ar = [];
|
|
480
|
+
for (var k in o3)
|
|
481
|
+
if (Object.prototype.hasOwnProperty.call(o3, k))
|
|
482
|
+
ar[ar.length] = k;
|
|
483
|
+
return ar;
|
|
484
|
+
};
|
|
485
|
+
return ownKeys(o2);
|
|
486
|
+
};
|
|
468
487
|
__importStar = function(mod) {
|
|
469
488
|
if (mod && mod.__esModule)
|
|
470
489
|
return mod;
|
|
471
490
|
var result = {};
|
|
472
491
|
if (mod != null) {
|
|
473
|
-
for (var k
|
|
474
|
-
if (k !== "default"
|
|
475
|
-
__createBinding(result, mod, k);
|
|
492
|
+
for (var k = ownKeys(mod), i2 = 0;i2 < k.length; i2++)
|
|
493
|
+
if (k[i2] !== "default")
|
|
494
|
+
__createBinding(result, mod, k[i2]);
|
|
476
495
|
}
|
|
477
496
|
__setModuleDefault(result, mod);
|
|
478
497
|
return result;
|
|
@@ -505,7 +524,7 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
505
524
|
if (value !== null && value !== undefined) {
|
|
506
525
|
if (typeof value !== "object" && typeof value !== "function")
|
|
507
526
|
throw new TypeError("Object expected.");
|
|
508
|
-
var dispose;
|
|
527
|
+
var dispose, inner;
|
|
509
528
|
if (async) {
|
|
510
529
|
if (!Symbol.asyncDispose)
|
|
511
530
|
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
@@ -515,9 +534,19 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
515
534
|
if (!Symbol.dispose)
|
|
516
535
|
throw new TypeError("Symbol.dispose is not defined.");
|
|
517
536
|
dispose = value[Symbol.dispose];
|
|
537
|
+
if (async)
|
|
538
|
+
inner = dispose;
|
|
518
539
|
}
|
|
519
540
|
if (typeof dispose !== "function")
|
|
520
541
|
throw new TypeError("Object not disposable.");
|
|
542
|
+
if (inner)
|
|
543
|
+
dispose = function() {
|
|
544
|
+
try {
|
|
545
|
+
inner.call(this);
|
|
546
|
+
} catch (e2) {
|
|
547
|
+
return Promise.reject(e2);
|
|
548
|
+
}
|
|
549
|
+
};
|
|
521
550
|
env.stack.push({ value, dispose, async });
|
|
522
551
|
} else if (async) {
|
|
523
552
|
env.stack.push({ async: true });
|
|
@@ -533,25 +562,40 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
533
562
|
env.error = env.hasError ? new _SuppressedError(e2, env.error, "An error was suppressed during disposal.") : e2;
|
|
534
563
|
env.hasError = true;
|
|
535
564
|
}
|
|
565
|
+
var r2, s2 = 0;
|
|
536
566
|
function next() {
|
|
537
|
-
while (env.stack.
|
|
538
|
-
var rec = env.stack.pop();
|
|
567
|
+
while (r2 = env.stack.pop()) {
|
|
539
568
|
try {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
569
|
+
if (!r2.async && s2 === 1)
|
|
570
|
+
return s2 = 0, env.stack.push(r2), Promise.resolve().then(next);
|
|
571
|
+
if (r2.dispose) {
|
|
572
|
+
var result = r2.dispose.call(r2.value);
|
|
573
|
+
if (r2.async)
|
|
574
|
+
return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
|
|
575
|
+
fail(e2);
|
|
576
|
+
return next();
|
|
577
|
+
});
|
|
578
|
+
} else
|
|
579
|
+
s2 |= 1;
|
|
546
580
|
} catch (e2) {
|
|
547
581
|
fail(e2);
|
|
548
582
|
}
|
|
549
583
|
}
|
|
584
|
+
if (s2 === 1)
|
|
585
|
+
return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
550
586
|
if (env.hasError)
|
|
551
587
|
throw env.error;
|
|
552
588
|
}
|
|
553
589
|
return next();
|
|
554
590
|
};
|
|
591
|
+
__rewriteRelativeImportExtension = function(path, preserveJsx) {
|
|
592
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
593
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m2, tsx, d2, ext, cm) {
|
|
594
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d2 && (!ext || !cm) ? m2 : d2 + ext + "." + cm.toLowerCase() + "js";
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
return path;
|
|
598
|
+
};
|
|
555
599
|
exporter("__extends", __extends);
|
|
556
600
|
exporter("__assign", __assign);
|
|
557
601
|
exporter("__rest", __rest);
|
|
@@ -583,6 +627,7 @@ var require_tslib = __commonJS((exports, module) => {
|
|
|
583
627
|
exporter("__classPrivateFieldIn", __classPrivateFieldIn);
|
|
584
628
|
exporter("__addDisposableResource", __addDisposableResource);
|
|
585
629
|
exporter("__disposeResources", __disposeResources);
|
|
630
|
+
exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
|
|
586
631
|
});
|
|
587
632
|
});
|
|
588
633
|
|
|
@@ -3109,622 +3154,17 @@ var require_CanonicalizeLocaleList2 = __commonJS((exports) => {
|
|
|
3109
3154
|
exports.CanonicalizeLocaleList = CanonicalizeLocaleList;
|
|
3110
3155
|
});
|
|
3111
3156
|
|
|
3112
|
-
// node_modules/@formatjs/intl-localematcher/
|
|
3113
|
-
var
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
var __metadata;
|
|
3124
|
-
var __awaiter;
|
|
3125
|
-
var __generator;
|
|
3126
|
-
var __exportStar;
|
|
3127
|
-
var __values;
|
|
3128
|
-
var __read;
|
|
3129
|
-
var __spread;
|
|
3130
|
-
var __spreadArrays;
|
|
3131
|
-
var __spreadArray;
|
|
3132
|
-
var __await;
|
|
3133
|
-
var __asyncGenerator;
|
|
3134
|
-
var __asyncDelegator;
|
|
3135
|
-
var __asyncValues;
|
|
3136
|
-
var __makeTemplateObject;
|
|
3137
|
-
var __importStar;
|
|
3138
|
-
var __importDefault;
|
|
3139
|
-
var __classPrivateFieldGet;
|
|
3140
|
-
var __classPrivateFieldSet;
|
|
3141
|
-
var __classPrivateFieldIn;
|
|
3142
|
-
var __createBinding;
|
|
3143
|
-
var __addDisposableResource;
|
|
3144
|
-
var __disposeResources;
|
|
3145
|
-
var __rewriteRelativeImportExtension;
|
|
3146
|
-
(function(factory) {
|
|
3147
|
-
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
3148
|
-
if (typeof define === "function" && define.amd) {
|
|
3149
|
-
define("tslib", ["exports"], function(exports2) {
|
|
3150
|
-
factory(createExporter(root, createExporter(exports2)));
|
|
3151
|
-
});
|
|
3152
|
-
} else if (typeof module === "object" && typeof exports === "object") {
|
|
3153
|
-
factory(createExporter(root, createExporter(exports)));
|
|
3154
|
-
} else {
|
|
3155
|
-
factory(createExporter(root));
|
|
3156
|
-
}
|
|
3157
|
-
function createExporter(exports2, previous) {
|
|
3158
|
-
if (exports2 !== root) {
|
|
3159
|
-
if (typeof Object.create === "function") {
|
|
3160
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3161
|
-
} else {
|
|
3162
|
-
exports2.__esModule = true;
|
|
3163
|
-
}
|
|
3164
|
-
}
|
|
3165
|
-
return function(id, v2) {
|
|
3166
|
-
return exports2[id] = previous ? previous(id, v2) : v2;
|
|
3167
|
-
};
|
|
3168
|
-
}
|
|
3169
|
-
})(function(exporter) {
|
|
3170
|
-
var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
3171
|
-
d2.__proto__ = b2;
|
|
3172
|
-
} || function(d2, b2) {
|
|
3173
|
-
for (var p2 in b2)
|
|
3174
|
-
if (Object.prototype.hasOwnProperty.call(b2, p2))
|
|
3175
|
-
d2[p2] = b2[p2];
|
|
3176
|
-
};
|
|
3177
|
-
__extends = function(d2, b2) {
|
|
3178
|
-
if (typeof b2 !== "function" && b2 !== null)
|
|
3179
|
-
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
3180
|
-
extendStatics(d2, b2);
|
|
3181
|
-
function __() {
|
|
3182
|
-
this.constructor = d2;
|
|
3183
|
-
}
|
|
3184
|
-
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __);
|
|
3185
|
-
};
|
|
3186
|
-
__assign = Object.assign || function(t2) {
|
|
3187
|
-
for (var s2, i2 = 1, n2 = arguments.length;i2 < n2; i2++) {
|
|
3188
|
-
s2 = arguments[i2];
|
|
3189
|
-
for (var p2 in s2)
|
|
3190
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
3191
|
-
t2[p2] = s2[p2];
|
|
3192
|
-
}
|
|
3193
|
-
return t2;
|
|
3194
|
-
};
|
|
3195
|
-
__rest = function(s2, e2) {
|
|
3196
|
-
var t2 = {};
|
|
3197
|
-
for (var p2 in s2)
|
|
3198
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
3199
|
-
t2[p2] = s2[p2];
|
|
3200
|
-
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3201
|
-
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2);i2 < p2.length; i2++) {
|
|
3202
|
-
if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
|
|
3203
|
-
t2[p2[i2]] = s2[p2[i2]];
|
|
3204
|
-
}
|
|
3205
|
-
return t2;
|
|
3206
|
-
};
|
|
3207
|
-
__decorate = function(decorators, target, key, desc) {
|
|
3208
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2;
|
|
3209
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3210
|
-
r2 = Reflect.decorate(decorators, target, key, desc);
|
|
3211
|
-
else
|
|
3212
|
-
for (var i2 = decorators.length - 1;i2 >= 0; i2--)
|
|
3213
|
-
if (d2 = decorators[i2])
|
|
3214
|
-
r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key, r2) : d2(target, key)) || r2;
|
|
3215
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
3216
|
-
};
|
|
3217
|
-
__param = function(paramIndex, decorator) {
|
|
3218
|
-
return function(target, key) {
|
|
3219
|
-
decorator(target, key, paramIndex);
|
|
3220
|
-
};
|
|
3221
|
-
};
|
|
3222
|
-
__esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3223
|
-
function accept(f2) {
|
|
3224
|
-
if (f2 !== undefined && typeof f2 !== "function")
|
|
3225
|
-
throw new TypeError("Function expected");
|
|
3226
|
-
return f2;
|
|
3227
|
-
}
|
|
3228
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
3229
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
3230
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
3231
|
-
var _2, done = false;
|
|
3232
|
-
for (var i2 = decorators.length - 1;i2 >= 0; i2--) {
|
|
3233
|
-
var context = {};
|
|
3234
|
-
for (var p2 in contextIn)
|
|
3235
|
-
context[p2] = p2 === "access" ? {} : contextIn[p2];
|
|
3236
|
-
for (var p2 in contextIn.access)
|
|
3237
|
-
context.access[p2] = contextIn.access[p2];
|
|
3238
|
-
context.addInitializer = function(f2) {
|
|
3239
|
-
if (done)
|
|
3240
|
-
throw new TypeError("Cannot add initializers after decoration has completed");
|
|
3241
|
-
extraInitializers.push(accept(f2 || null));
|
|
3242
|
-
};
|
|
3243
|
-
var result = (0, decorators[i2])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
3244
|
-
if (kind === "accessor") {
|
|
3245
|
-
if (result === undefined)
|
|
3246
|
-
continue;
|
|
3247
|
-
if (result === null || typeof result !== "object")
|
|
3248
|
-
throw new TypeError("Object expected");
|
|
3249
|
-
if (_2 = accept(result.get))
|
|
3250
|
-
descriptor.get = _2;
|
|
3251
|
-
if (_2 = accept(result.set))
|
|
3252
|
-
descriptor.set = _2;
|
|
3253
|
-
if (_2 = accept(result.init))
|
|
3254
|
-
initializers.unshift(_2);
|
|
3255
|
-
} else if (_2 = accept(result)) {
|
|
3256
|
-
if (kind === "field")
|
|
3257
|
-
initializers.unshift(_2);
|
|
3258
|
-
else
|
|
3259
|
-
descriptor[key] = _2;
|
|
3260
|
-
}
|
|
3261
|
-
}
|
|
3262
|
-
if (target)
|
|
3263
|
-
Object.defineProperty(target, contextIn.name, descriptor);
|
|
3264
|
-
done = true;
|
|
3265
|
-
};
|
|
3266
|
-
__runInitializers = function(thisArg, initializers, value) {
|
|
3267
|
-
var useValue = arguments.length > 2;
|
|
3268
|
-
for (var i2 = 0;i2 < initializers.length; i2++) {
|
|
3269
|
-
value = useValue ? initializers[i2].call(thisArg, value) : initializers[i2].call(thisArg);
|
|
3270
|
-
}
|
|
3271
|
-
return useValue ? value : undefined;
|
|
3272
|
-
};
|
|
3273
|
-
__propKey = function(x2) {
|
|
3274
|
-
return typeof x2 === "symbol" ? x2 : "".concat(x2);
|
|
3275
|
-
};
|
|
3276
|
-
__setFunctionName = function(f2, name, prefix) {
|
|
3277
|
-
if (typeof name === "symbol")
|
|
3278
|
-
name = name.description ? "[".concat(name.description, "]") : "";
|
|
3279
|
-
return Object.defineProperty(f2, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
3280
|
-
};
|
|
3281
|
-
__metadata = function(metadataKey, metadataValue) {
|
|
3282
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
3283
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
3284
|
-
};
|
|
3285
|
-
__awaiter = function(thisArg, _arguments, P, generator) {
|
|
3286
|
-
function adopt(value) {
|
|
3287
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
3288
|
-
resolve(value);
|
|
3289
|
-
});
|
|
3290
|
-
}
|
|
3291
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
3292
|
-
function fulfilled(value) {
|
|
3293
|
-
try {
|
|
3294
|
-
step(generator.next(value));
|
|
3295
|
-
} catch (e2) {
|
|
3296
|
-
reject(e2);
|
|
3297
|
-
}
|
|
3298
|
-
}
|
|
3299
|
-
function rejected(value) {
|
|
3300
|
-
try {
|
|
3301
|
-
step(generator["throw"](value));
|
|
3302
|
-
} catch (e2) {
|
|
3303
|
-
reject(e2);
|
|
3304
|
-
}
|
|
3305
|
-
}
|
|
3306
|
-
function step(result) {
|
|
3307
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
3308
|
-
}
|
|
3309
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
3310
|
-
});
|
|
3311
|
-
};
|
|
3312
|
-
__generator = function(thisArg, body) {
|
|
3313
|
-
var _2 = { label: 0, sent: function() {
|
|
3314
|
-
if (t2[0] & 1)
|
|
3315
|
-
throw t2[1];
|
|
3316
|
-
return t2[1];
|
|
3317
|
-
}, trys: [], ops: [] }, f2, y2, t2, g2 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
3318
|
-
return g2.next = verb(0), g2["throw"] = verb(1), g2["return"] = verb(2), typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
|
|
3319
|
-
return this;
|
|
3320
|
-
}), g2;
|
|
3321
|
-
function verb(n2) {
|
|
3322
|
-
return function(v2) {
|
|
3323
|
-
return step([n2, v2]);
|
|
3324
|
-
};
|
|
3325
|
-
}
|
|
3326
|
-
function step(op) {
|
|
3327
|
-
if (f2)
|
|
3328
|
-
throw new TypeError("Generator is already executing.");
|
|
3329
|
-
while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
|
|
3330
|
-
try {
|
|
3331
|
-
if (f2 = 1, y2 && (t2 = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t2 = y2["return"]) && t2.call(y2), 0) : y2.next) && !(t2 = t2.call(y2, op[1])).done)
|
|
3332
|
-
return t2;
|
|
3333
|
-
if (y2 = 0, t2)
|
|
3334
|
-
op = [op[0] & 2, t2.value];
|
|
3335
|
-
switch (op[0]) {
|
|
3336
|
-
case 0:
|
|
3337
|
-
case 1:
|
|
3338
|
-
t2 = op;
|
|
3339
|
-
break;
|
|
3340
|
-
case 4:
|
|
3341
|
-
_2.label++;
|
|
3342
|
-
return { value: op[1], done: false };
|
|
3343
|
-
case 5:
|
|
3344
|
-
_2.label++;
|
|
3345
|
-
y2 = op[1];
|
|
3346
|
-
op = [0];
|
|
3347
|
-
continue;
|
|
3348
|
-
case 7:
|
|
3349
|
-
op = _2.ops.pop();
|
|
3350
|
-
_2.trys.pop();
|
|
3351
|
-
continue;
|
|
3352
|
-
default:
|
|
3353
|
-
if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
3354
|
-
_2 = 0;
|
|
3355
|
-
continue;
|
|
3356
|
-
}
|
|
3357
|
-
if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
|
|
3358
|
-
_2.label = op[1];
|
|
3359
|
-
break;
|
|
3360
|
-
}
|
|
3361
|
-
if (op[0] === 6 && _2.label < t2[1]) {
|
|
3362
|
-
_2.label = t2[1];
|
|
3363
|
-
t2 = op;
|
|
3364
|
-
break;
|
|
3365
|
-
}
|
|
3366
|
-
if (t2 && _2.label < t2[2]) {
|
|
3367
|
-
_2.label = t2[2];
|
|
3368
|
-
_2.ops.push(op);
|
|
3369
|
-
break;
|
|
3370
|
-
}
|
|
3371
|
-
if (t2[2])
|
|
3372
|
-
_2.ops.pop();
|
|
3373
|
-
_2.trys.pop();
|
|
3374
|
-
continue;
|
|
3375
|
-
}
|
|
3376
|
-
op = body.call(thisArg, _2);
|
|
3377
|
-
} catch (e2) {
|
|
3378
|
-
op = [6, e2];
|
|
3379
|
-
y2 = 0;
|
|
3380
|
-
} finally {
|
|
3381
|
-
f2 = t2 = 0;
|
|
3382
|
-
}
|
|
3383
|
-
if (op[0] & 5)
|
|
3384
|
-
throw op[1];
|
|
3385
|
-
return { value: op[0] ? op[1] : undefined, done: true };
|
|
3386
|
-
}
|
|
3387
|
-
};
|
|
3388
|
-
__exportStar = function(m2, o2) {
|
|
3389
|
-
for (var p2 in m2)
|
|
3390
|
-
if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(o2, p2))
|
|
3391
|
-
__createBinding(o2, m2, p2);
|
|
3392
|
-
};
|
|
3393
|
-
__createBinding = Object.create ? function(o2, m2, k, k2) {
|
|
3394
|
-
if (k2 === undefined)
|
|
3395
|
-
k2 = k;
|
|
3396
|
-
var desc = Object.getOwnPropertyDescriptor(m2, k);
|
|
3397
|
-
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
3398
|
-
desc = { enumerable: true, get: function() {
|
|
3399
|
-
return m2[k];
|
|
3400
|
-
} };
|
|
3401
|
-
}
|
|
3402
|
-
Object.defineProperty(o2, k2, desc);
|
|
3403
|
-
} : function(o2, m2, k, k2) {
|
|
3404
|
-
if (k2 === undefined)
|
|
3405
|
-
k2 = k;
|
|
3406
|
-
o2[k2] = m2[k];
|
|
3407
|
-
};
|
|
3408
|
-
__values = function(o2) {
|
|
3409
|
-
var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
|
|
3410
|
-
if (m2)
|
|
3411
|
-
return m2.call(o2);
|
|
3412
|
-
if (o2 && typeof o2.length === "number")
|
|
3413
|
-
return {
|
|
3414
|
-
next: function() {
|
|
3415
|
-
if (o2 && i2 >= o2.length)
|
|
3416
|
-
o2 = undefined;
|
|
3417
|
-
return { value: o2 && o2[i2++], done: !o2 };
|
|
3418
|
-
}
|
|
3419
|
-
};
|
|
3420
|
-
throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
3421
|
-
};
|
|
3422
|
-
__read = function(o2, n2) {
|
|
3423
|
-
var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
3424
|
-
if (!m2)
|
|
3425
|
-
return o2;
|
|
3426
|
-
var i2 = m2.call(o2), r2, ar = [], e2;
|
|
3427
|
-
try {
|
|
3428
|
-
while ((n2 === undefined || n2-- > 0) && !(r2 = i2.next()).done)
|
|
3429
|
-
ar.push(r2.value);
|
|
3430
|
-
} catch (error) {
|
|
3431
|
-
e2 = { error };
|
|
3432
|
-
} finally {
|
|
3433
|
-
try {
|
|
3434
|
-
if (r2 && !r2.done && (m2 = i2["return"]))
|
|
3435
|
-
m2.call(i2);
|
|
3436
|
-
} finally {
|
|
3437
|
-
if (e2)
|
|
3438
|
-
throw e2.error;
|
|
3439
|
-
}
|
|
3440
|
-
}
|
|
3441
|
-
return ar;
|
|
3442
|
-
};
|
|
3443
|
-
__spread = function() {
|
|
3444
|
-
for (var ar = [], i2 = 0;i2 < arguments.length; i2++)
|
|
3445
|
-
ar = ar.concat(__read(arguments[i2]));
|
|
3446
|
-
return ar;
|
|
3447
|
-
};
|
|
3448
|
-
__spreadArrays = function() {
|
|
3449
|
-
for (var s2 = 0, i2 = 0, il = arguments.length;i2 < il; i2++)
|
|
3450
|
-
s2 += arguments[i2].length;
|
|
3451
|
-
for (var r2 = Array(s2), k = 0, i2 = 0;i2 < il; i2++)
|
|
3452
|
-
for (var a2 = arguments[i2], j = 0, jl = a2.length;j < jl; j++, k++)
|
|
3453
|
-
r2[k] = a2[j];
|
|
3454
|
-
return r2;
|
|
3455
|
-
};
|
|
3456
|
-
__spreadArray = function(to, from, pack) {
|
|
3457
|
-
if (pack || arguments.length === 2)
|
|
3458
|
-
for (var i2 = 0, l2 = from.length, ar;i2 < l2; i2++) {
|
|
3459
|
-
if (ar || !(i2 in from)) {
|
|
3460
|
-
if (!ar)
|
|
3461
|
-
ar = Array.prototype.slice.call(from, 0, i2);
|
|
3462
|
-
ar[i2] = from[i2];
|
|
3463
|
-
}
|
|
3464
|
-
}
|
|
3465
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
3466
|
-
};
|
|
3467
|
-
__await = function(v2) {
|
|
3468
|
-
return this instanceof __await ? (this.v = v2, this) : new __await(v2);
|
|
3469
|
-
};
|
|
3470
|
-
__asyncGenerator = function(thisArg, _arguments, generator) {
|
|
3471
|
-
if (!Symbol.asyncIterator)
|
|
3472
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3473
|
-
var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
|
|
3474
|
-
return i2 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
|
|
3475
|
-
return this;
|
|
3476
|
-
}, i2;
|
|
3477
|
-
function awaitReturn(f2) {
|
|
3478
|
-
return function(v2) {
|
|
3479
|
-
return Promise.resolve(v2).then(f2, reject);
|
|
3480
|
-
};
|
|
3481
|
-
}
|
|
3482
|
-
function verb(n2, f2) {
|
|
3483
|
-
if (g2[n2]) {
|
|
3484
|
-
i2[n2] = function(v2) {
|
|
3485
|
-
return new Promise(function(a2, b2) {
|
|
3486
|
-
q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
|
|
3487
|
-
});
|
|
3488
|
-
};
|
|
3489
|
-
if (f2)
|
|
3490
|
-
i2[n2] = f2(i2[n2]);
|
|
3491
|
-
}
|
|
3492
|
-
}
|
|
3493
|
-
function resume(n2, v2) {
|
|
3494
|
-
try {
|
|
3495
|
-
step(g2[n2](v2));
|
|
3496
|
-
} catch (e2) {
|
|
3497
|
-
settle(q2[0][3], e2);
|
|
3498
|
-
}
|
|
3499
|
-
}
|
|
3500
|
-
function step(r2) {
|
|
3501
|
-
r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
|
|
3502
|
-
}
|
|
3503
|
-
function fulfill(value) {
|
|
3504
|
-
resume("next", value);
|
|
3505
|
-
}
|
|
3506
|
-
function reject(value) {
|
|
3507
|
-
resume("throw", value);
|
|
3508
|
-
}
|
|
3509
|
-
function settle(f2, v2) {
|
|
3510
|
-
if (f2(v2), q2.shift(), q2.length)
|
|
3511
|
-
resume(q2[0][0], q2[0][1]);
|
|
3512
|
-
}
|
|
3513
|
-
};
|
|
3514
|
-
__asyncDelegator = function(o2) {
|
|
3515
|
-
var i2, p2;
|
|
3516
|
-
return i2 = {}, verb("next"), verb("throw", function(e2) {
|
|
3517
|
-
throw e2;
|
|
3518
|
-
}), verb("return"), i2[Symbol.iterator] = function() {
|
|
3519
|
-
return this;
|
|
3520
|
-
}, i2;
|
|
3521
|
-
function verb(n2, f2) {
|
|
3522
|
-
i2[n2] = o2[n2] ? function(v2) {
|
|
3523
|
-
return (p2 = !p2) ? { value: __await(o2[n2](v2)), done: false } : f2 ? f2(v2) : v2;
|
|
3524
|
-
} : f2;
|
|
3525
|
-
}
|
|
3526
|
-
};
|
|
3527
|
-
__asyncValues = function(o2) {
|
|
3528
|
-
if (!Symbol.asyncIterator)
|
|
3529
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
3530
|
-
var m2 = o2[Symbol.asyncIterator], i2;
|
|
3531
|
-
return m2 ? m2.call(o2) : (o2 = typeof __values === "function" ? __values(o2) : o2[Symbol.iterator](), i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
|
|
3532
|
-
return this;
|
|
3533
|
-
}, i2);
|
|
3534
|
-
function verb(n2) {
|
|
3535
|
-
i2[n2] = o2[n2] && function(v2) {
|
|
3536
|
-
return new Promise(function(resolve, reject) {
|
|
3537
|
-
v2 = o2[n2](v2), settle(resolve, reject, v2.done, v2.value);
|
|
3538
|
-
});
|
|
3539
|
-
};
|
|
3540
|
-
}
|
|
3541
|
-
function settle(resolve, reject, d2, v2) {
|
|
3542
|
-
Promise.resolve(v2).then(function(v3) {
|
|
3543
|
-
resolve({ value: v3, done: d2 });
|
|
3544
|
-
}, reject);
|
|
3545
|
-
}
|
|
3546
|
-
};
|
|
3547
|
-
__makeTemplateObject = function(cooked, raw) {
|
|
3548
|
-
if (Object.defineProperty) {
|
|
3549
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
3550
|
-
} else {
|
|
3551
|
-
cooked.raw = raw;
|
|
3552
|
-
}
|
|
3553
|
-
return cooked;
|
|
3554
|
-
};
|
|
3555
|
-
var __setModuleDefault = Object.create ? function(o2, v2) {
|
|
3556
|
-
Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
|
|
3557
|
-
} : function(o2, v2) {
|
|
3558
|
-
o2["default"] = v2;
|
|
3559
|
-
};
|
|
3560
|
-
var ownKeys = function(o2) {
|
|
3561
|
-
ownKeys = Object.getOwnPropertyNames || function(o3) {
|
|
3562
|
-
var ar = [];
|
|
3563
|
-
for (var k in o3)
|
|
3564
|
-
if (Object.prototype.hasOwnProperty.call(o3, k))
|
|
3565
|
-
ar[ar.length] = k;
|
|
3566
|
-
return ar;
|
|
3567
|
-
};
|
|
3568
|
-
return ownKeys(o2);
|
|
3569
|
-
};
|
|
3570
|
-
__importStar = function(mod) {
|
|
3571
|
-
if (mod && mod.__esModule)
|
|
3572
|
-
return mod;
|
|
3573
|
-
var result = {};
|
|
3574
|
-
if (mod != null) {
|
|
3575
|
-
for (var k = ownKeys(mod), i2 = 0;i2 < k.length; i2++)
|
|
3576
|
-
if (k[i2] !== "default")
|
|
3577
|
-
__createBinding(result, mod, k[i2]);
|
|
3578
|
-
}
|
|
3579
|
-
__setModuleDefault(result, mod);
|
|
3580
|
-
return result;
|
|
3581
|
-
};
|
|
3582
|
-
__importDefault = function(mod) {
|
|
3583
|
-
return mod && mod.__esModule ? mod : { default: mod };
|
|
3584
|
-
};
|
|
3585
|
-
__classPrivateFieldGet = function(receiver, state, kind, f2) {
|
|
3586
|
-
if (kind === "a" && !f2)
|
|
3587
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
3588
|
-
if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
|
|
3589
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
3590
|
-
return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);
|
|
3591
|
-
};
|
|
3592
|
-
__classPrivateFieldSet = function(receiver, state, value, kind, f2) {
|
|
3593
|
-
if (kind === "m")
|
|
3594
|
-
throw new TypeError("Private method is not writable");
|
|
3595
|
-
if (kind === "a" && !f2)
|
|
3596
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
3597
|
-
if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
|
|
3598
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
3599
|
-
return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
|
|
3600
|
-
};
|
|
3601
|
-
__classPrivateFieldIn = function(state, receiver) {
|
|
3602
|
-
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
|
|
3603
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
3604
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
3605
|
-
};
|
|
3606
|
-
__addDisposableResource = function(env, value, async) {
|
|
3607
|
-
if (value !== null && value !== undefined) {
|
|
3608
|
-
if (typeof value !== "object" && typeof value !== "function")
|
|
3609
|
-
throw new TypeError("Object expected.");
|
|
3610
|
-
var dispose, inner;
|
|
3611
|
-
if (async) {
|
|
3612
|
-
if (!Symbol.asyncDispose)
|
|
3613
|
-
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
3614
|
-
dispose = value[Symbol.asyncDispose];
|
|
3615
|
-
}
|
|
3616
|
-
if (dispose === undefined) {
|
|
3617
|
-
if (!Symbol.dispose)
|
|
3618
|
-
throw new TypeError("Symbol.dispose is not defined.");
|
|
3619
|
-
dispose = value[Symbol.dispose];
|
|
3620
|
-
if (async)
|
|
3621
|
-
inner = dispose;
|
|
3622
|
-
}
|
|
3623
|
-
if (typeof dispose !== "function")
|
|
3624
|
-
throw new TypeError("Object not disposable.");
|
|
3625
|
-
if (inner)
|
|
3626
|
-
dispose = function() {
|
|
3627
|
-
try {
|
|
3628
|
-
inner.call(this);
|
|
3629
|
-
} catch (e2) {
|
|
3630
|
-
return Promise.reject(e2);
|
|
3631
|
-
}
|
|
3632
|
-
};
|
|
3633
|
-
env.stack.push({ value, dispose, async });
|
|
3634
|
-
} else if (async) {
|
|
3635
|
-
env.stack.push({ async: true });
|
|
3636
|
-
}
|
|
3637
|
-
return value;
|
|
3638
|
-
};
|
|
3639
|
-
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
3640
|
-
var e2 = new Error(message);
|
|
3641
|
-
return e2.name = "SuppressedError", e2.error = error, e2.suppressed = suppressed, e2;
|
|
3642
|
-
};
|
|
3643
|
-
__disposeResources = function(env) {
|
|
3644
|
-
function fail(e2) {
|
|
3645
|
-
env.error = env.hasError ? new _SuppressedError(e2, env.error, "An error was suppressed during disposal.") : e2;
|
|
3646
|
-
env.hasError = true;
|
|
3647
|
-
}
|
|
3648
|
-
var r2, s2 = 0;
|
|
3649
|
-
function next() {
|
|
3650
|
-
while (r2 = env.stack.pop()) {
|
|
3651
|
-
try {
|
|
3652
|
-
if (!r2.async && s2 === 1)
|
|
3653
|
-
return s2 = 0, env.stack.push(r2), Promise.resolve().then(next);
|
|
3654
|
-
if (r2.dispose) {
|
|
3655
|
-
var result = r2.dispose.call(r2.value);
|
|
3656
|
-
if (r2.async)
|
|
3657
|
-
return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
|
|
3658
|
-
fail(e2);
|
|
3659
|
-
return next();
|
|
3660
|
-
});
|
|
3661
|
-
} else
|
|
3662
|
-
s2 |= 1;
|
|
3663
|
-
} catch (e2) {
|
|
3664
|
-
fail(e2);
|
|
3665
|
-
}
|
|
3666
|
-
}
|
|
3667
|
-
if (s2 === 1)
|
|
3668
|
-
return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
3669
|
-
if (env.hasError)
|
|
3670
|
-
throw env.error;
|
|
3671
|
-
}
|
|
3672
|
-
return next();
|
|
3673
|
-
};
|
|
3674
|
-
__rewriteRelativeImportExtension = function(path, preserveJsx) {
|
|
3675
|
-
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3676
|
-
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m2, tsx, d2, ext, cm) {
|
|
3677
|
-
return tsx ? preserveJsx ? ".jsx" : ".js" : d2 && (!ext || !cm) ? m2 : d2 + ext + "." + cm.toLowerCase() + "js";
|
|
3678
|
-
});
|
|
3679
|
-
}
|
|
3680
|
-
return path;
|
|
3681
|
-
};
|
|
3682
|
-
exporter("__extends", __extends);
|
|
3683
|
-
exporter("__assign", __assign);
|
|
3684
|
-
exporter("__rest", __rest);
|
|
3685
|
-
exporter("__decorate", __decorate);
|
|
3686
|
-
exporter("__param", __param);
|
|
3687
|
-
exporter("__esDecorate", __esDecorate);
|
|
3688
|
-
exporter("__runInitializers", __runInitializers);
|
|
3689
|
-
exporter("__propKey", __propKey);
|
|
3690
|
-
exporter("__setFunctionName", __setFunctionName);
|
|
3691
|
-
exporter("__metadata", __metadata);
|
|
3692
|
-
exporter("__awaiter", __awaiter);
|
|
3693
|
-
exporter("__generator", __generator);
|
|
3694
|
-
exporter("__exportStar", __exportStar);
|
|
3695
|
-
exporter("__createBinding", __createBinding);
|
|
3696
|
-
exporter("__values", __values);
|
|
3697
|
-
exporter("__read", __read);
|
|
3698
|
-
exporter("__spread", __spread);
|
|
3699
|
-
exporter("__spreadArrays", __spreadArrays);
|
|
3700
|
-
exporter("__spreadArray", __spreadArray);
|
|
3701
|
-
exporter("__await", __await);
|
|
3702
|
-
exporter("__asyncGenerator", __asyncGenerator);
|
|
3703
|
-
exporter("__asyncDelegator", __asyncDelegator);
|
|
3704
|
-
exporter("__asyncValues", __asyncValues);
|
|
3705
|
-
exporter("__makeTemplateObject", __makeTemplateObject);
|
|
3706
|
-
exporter("__importStar", __importStar);
|
|
3707
|
-
exporter("__importDefault", __importDefault);
|
|
3708
|
-
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
|
|
3709
|
-
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
|
|
3710
|
-
exporter("__classPrivateFieldIn", __classPrivateFieldIn);
|
|
3711
|
-
exporter("__addDisposableResource", __addDisposableResource);
|
|
3712
|
-
exporter("__disposeResources", __disposeResources);
|
|
3713
|
-
exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
|
|
3714
|
-
});
|
|
3715
|
-
});
|
|
3716
|
-
|
|
3717
|
-
// node_modules/@formatjs/intl-localematcher/abstract/languageMatching.js
|
|
3718
|
-
var require_languageMatching = __commonJS((exports) => {
|
|
3719
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3720
|
-
exports.data = undefined;
|
|
3721
|
-
exports.data = {
|
|
3722
|
-
supplemental: {
|
|
3723
|
-
languageMatching: {
|
|
3724
|
-
"written-new": [
|
|
3725
|
-
{
|
|
3726
|
-
paradigmLocales: {
|
|
3727
|
-
_locales: "en en_GB es es_419 pt_BR pt_PT"
|
|
3157
|
+
// node_modules/@formatjs/intl-localematcher/abstract/languageMatching.js
|
|
3158
|
+
var require_languageMatching = __commonJS((exports) => {
|
|
3159
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3160
|
+
exports.data = undefined;
|
|
3161
|
+
exports.data = {
|
|
3162
|
+
supplemental: {
|
|
3163
|
+
languageMatching: {
|
|
3164
|
+
"written-new": [
|
|
3165
|
+
{
|
|
3166
|
+
paradigmLocales: {
|
|
3167
|
+
_locales: "en en_GB es es_419 pt_BR pt_PT"
|
|
3728
3168
|
}
|
|
3729
3169
|
},
|
|
3730
3170
|
{
|
|
@@ -7606,1637 +7046,1032 @@ var require_regions_generated = __commonJS((exports) => {
|
|
|
7606
7046
|
"MX",
|
|
7607
7047
|
"MY",
|
|
7608
7048
|
"MZ",
|
|
7609
|
-
"NA",
|
|
7610
|
-
"NE",
|
|
7611
|
-
"NG",
|
|
7612
|
-
"NI",
|
|
7613
|
-
"NL",
|
|
7614
|
-
"NO",
|
|
7615
|
-
"NP",
|
|
7616
|
-
"NR",
|
|
7617
|
-
"NZ",
|
|
7618
|
-
"OM",
|
|
7619
|
-
"PA",
|
|
7620
|
-
"PE",
|
|
7621
|
-
"PG",
|
|
7622
|
-
"PH",
|
|
7623
|
-
"PK",
|
|
7624
|
-
"PL",
|
|
7625
|
-
"PT",
|
|
7626
|
-
"PW",
|
|
7627
|
-
"PY",
|
|
7628
|
-
"QA",
|
|
7629
|
-
"RO",
|
|
7630
|
-
"RS",
|
|
7631
|
-
"RU",
|
|
7632
|
-
"RW",
|
|
7633
|
-
"SA",
|
|
7634
|
-
"SB",
|
|
7635
|
-
"SC",
|
|
7636
|
-
"SD",
|
|
7637
|
-
"SE",
|
|
7638
|
-
"SG",
|
|
7639
|
-
"SI",
|
|
7640
|
-
"SK",
|
|
7641
|
-
"SL",
|
|
7642
|
-
"SM",
|
|
7643
|
-
"SN",
|
|
7644
|
-
"SO",
|
|
7645
|
-
"SR",
|
|
7646
|
-
"SS",
|
|
7647
|
-
"ST",
|
|
7648
|
-
"SV",
|
|
7649
|
-
"SY",
|
|
7650
|
-
"SZ",
|
|
7651
|
-
"TD",
|
|
7652
|
-
"TG",
|
|
7653
|
-
"TH",
|
|
7654
|
-
"TJ",
|
|
7655
|
-
"TL",
|
|
7656
|
-
"TM",
|
|
7657
|
-
"TN",
|
|
7658
|
-
"TO",
|
|
7659
|
-
"TR",
|
|
7660
|
-
"TT",
|
|
7661
|
-
"TV",
|
|
7662
|
-
"TZ",
|
|
7663
|
-
"UA",
|
|
7664
|
-
"UG",
|
|
7665
|
-
"UN",
|
|
7666
|
-
"US",
|
|
7667
|
-
"UY",
|
|
7668
|
-
"UZ",
|
|
7669
|
-
"VC",
|
|
7670
|
-
"VE",
|
|
7671
|
-
"VN",
|
|
7672
|
-
"VU",
|
|
7673
|
-
"WS",
|
|
7674
|
-
"YE",
|
|
7675
|
-
"ZA",
|
|
7676
|
-
"ZM",
|
|
7677
|
-
"ZW"
|
|
7678
|
-
]
|
|
7679
|
-
};
|
|
7680
|
-
});
|
|
7681
|
-
|
|
7682
|
-
// node_modules/@formatjs/intl-localematcher/abstract/utils.js
|
|
7683
|
-
var require_utils2 = __commonJS((exports) => {
|
|
7684
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7685
|
-
exports.findBestMatch = exports.findMatchingDistance = exports.invariant = exports.UNICODE_EXTENSION_SEQUENCE_REGEX = undefined;
|
|
7686
|
-
var tslib_1 =
|
|
7687
|
-
var languageMatching_1 = require_languageMatching();
|
|
7688
|
-
var regions_generated_1 = require_regions_generated();
|
|
7689
|
-
exports.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
|
|
7690
|
-
function invariant(condition, message, Err) {
|
|
7691
|
-
if (Err === undefined) {
|
|
7692
|
-
Err = Error;
|
|
7693
|
-
}
|
|
7694
|
-
if (!condition) {
|
|
7695
|
-
throw new Err(message);
|
|
7696
|
-
}
|
|
7697
|
-
}
|
|
7698
|
-
exports.invariant = invariant;
|
|
7699
|
-
var DEFAULT_MATCHING_THRESHOLD = 838;
|
|
7700
|
-
var PROCESSED_DATA;
|
|
7701
|
-
function processData() {
|
|
7702
|
-
var _a, _b;
|
|
7703
|
-
if (!PROCESSED_DATA) {
|
|
7704
|
-
var paradigmLocales = (_b = (_a = languageMatching_1.data.supplemental.languageMatching["written-new"][0]) === null || _a === undefined ? undefined : _a.paradigmLocales) === null || _b === undefined ? undefined : _b._locales.split(" ");
|
|
7705
|
-
var matchVariables = languageMatching_1.data.supplemental.languageMatching["written-new"].slice(1, 5);
|
|
7706
|
-
var data = languageMatching_1.data.supplemental.languageMatching["written-new"].slice(5);
|
|
7707
|
-
var matches = data.map(function(d2) {
|
|
7708
|
-
var key = Object.keys(d2)[0];
|
|
7709
|
-
var value = d2[key];
|
|
7710
|
-
return {
|
|
7711
|
-
supported: key,
|
|
7712
|
-
desired: value._desired,
|
|
7713
|
-
distance: +value._distance,
|
|
7714
|
-
oneway: value.oneway === "true" ? true : false
|
|
7715
|
-
};
|
|
7716
|
-
}, {});
|
|
7717
|
-
PROCESSED_DATA = {
|
|
7718
|
-
matches,
|
|
7719
|
-
matchVariables: matchVariables.reduce(function(all, d2) {
|
|
7720
|
-
var key = Object.keys(d2)[0];
|
|
7721
|
-
var value = d2[key];
|
|
7722
|
-
all[key.slice(1)] = value._value.split("+");
|
|
7723
|
-
return all;
|
|
7724
|
-
}, {}),
|
|
7725
|
-
paradigmLocales: tslib_1.__spreadArray(tslib_1.__spreadArray([], paradigmLocales, true), paradigmLocales.map(function(l2) {
|
|
7726
|
-
return new Intl.Locale(l2.replace(/_/g, "-")).maximize().toString();
|
|
7727
|
-
}), true)
|
|
7728
|
-
};
|
|
7729
|
-
}
|
|
7730
|
-
return PROCESSED_DATA;
|
|
7731
|
-
}
|
|
7732
|
-
function isMatched(locale, languageMatchInfoLocale, matchVariables) {
|
|
7733
|
-
var _a = languageMatchInfoLocale.split("-"), language = _a[0], script = _a[1], region = _a[2];
|
|
7734
|
-
var matches = true;
|
|
7735
|
-
if (region && region[0] === "$") {
|
|
7736
|
-
var shouldInclude = region[1] !== "!";
|
|
7737
|
-
var matchRegions = shouldInclude ? matchVariables[region.slice(1)] : matchVariables[region.slice(2)];
|
|
7738
|
-
var expandedMatchedRegions = matchRegions.map(function(r2) {
|
|
7739
|
-
return regions_generated_1.regions[r2] || [r2];
|
|
7740
|
-
}).reduce(function(all, list) {
|
|
7741
|
-
return tslib_1.__spreadArray(tslib_1.__spreadArray([], all, true), list, true);
|
|
7742
|
-
}, []);
|
|
7743
|
-
matches && (matches = !(expandedMatchedRegions.indexOf(locale.region || "") > 1 != shouldInclude));
|
|
7744
|
-
} else {
|
|
7745
|
-
matches && (matches = locale.region ? region === "*" || region === locale.region : true);
|
|
7746
|
-
}
|
|
7747
|
-
matches && (matches = locale.script ? script === "*" || script === locale.script : true);
|
|
7748
|
-
matches && (matches = locale.language ? language === "*" || language === locale.language : true);
|
|
7749
|
-
return matches;
|
|
7750
|
-
}
|
|
7751
|
-
function serializeLSR(lsr) {
|
|
7752
|
-
return [lsr.language, lsr.script, lsr.region].filter(Boolean).join("-");
|
|
7753
|
-
}
|
|
7754
|
-
function findMatchingDistanceForLSR(desired, supported, data) {
|
|
7755
|
-
for (var _i = 0, _a = data.matches;_i < _a.length; _i++) {
|
|
7756
|
-
var d2 = _a[_i];
|
|
7757
|
-
var matches = isMatched(desired, d2.desired, data.matchVariables) && isMatched(supported, d2.supported, data.matchVariables);
|
|
7758
|
-
if (!d2.oneway && !matches) {
|
|
7759
|
-
matches = isMatched(desired, d2.supported, data.matchVariables) && isMatched(supported, d2.desired, data.matchVariables);
|
|
7760
|
-
}
|
|
7761
|
-
if (matches) {
|
|
7762
|
-
var distance = d2.distance * 10;
|
|
7763
|
-
if (data.paradigmLocales.indexOf(serializeLSR(desired)) > -1 != data.paradigmLocales.indexOf(serializeLSR(supported)) > -1) {
|
|
7764
|
-
return distance - 1;
|
|
7765
|
-
}
|
|
7766
|
-
return distance;
|
|
7767
|
-
}
|
|
7768
|
-
}
|
|
7769
|
-
throw new Error("No matching distance found");
|
|
7770
|
-
}
|
|
7771
|
-
function findMatchingDistance(desired, supported) {
|
|
7772
|
-
var desiredLocale = new Intl.Locale(desired).maximize();
|
|
7773
|
-
var supportedLocale = new Intl.Locale(supported).maximize();
|
|
7774
|
-
var desiredLSR = {
|
|
7775
|
-
language: desiredLocale.language,
|
|
7776
|
-
script: desiredLocale.script || "",
|
|
7777
|
-
region: desiredLocale.region || ""
|
|
7778
|
-
};
|
|
7779
|
-
var supportedLSR = {
|
|
7780
|
-
language: supportedLocale.language,
|
|
7781
|
-
script: supportedLocale.script || "",
|
|
7782
|
-
region: supportedLocale.region || ""
|
|
7783
|
-
};
|
|
7784
|
-
var matchingDistance = 0;
|
|
7785
|
-
var data = processData();
|
|
7786
|
-
if (desiredLSR.language !== supportedLSR.language) {
|
|
7787
|
-
matchingDistance += findMatchingDistanceForLSR({
|
|
7788
|
-
language: desiredLocale.language,
|
|
7789
|
-
script: "",
|
|
7790
|
-
region: ""
|
|
7791
|
-
}, {
|
|
7792
|
-
language: supportedLocale.language,
|
|
7793
|
-
script: "",
|
|
7794
|
-
region: ""
|
|
7795
|
-
}, data);
|
|
7796
|
-
}
|
|
7797
|
-
if (desiredLSR.script !== supportedLSR.script) {
|
|
7798
|
-
matchingDistance += findMatchingDistanceForLSR({
|
|
7799
|
-
language: desiredLocale.language,
|
|
7800
|
-
script: desiredLSR.script,
|
|
7801
|
-
region: ""
|
|
7802
|
-
}, {
|
|
7803
|
-
language: supportedLocale.language,
|
|
7804
|
-
script: desiredLSR.script,
|
|
7805
|
-
region: ""
|
|
7806
|
-
}, data);
|
|
7807
|
-
}
|
|
7808
|
-
if (desiredLSR.region !== supportedLSR.region) {
|
|
7809
|
-
matchingDistance += findMatchingDistanceForLSR(desiredLSR, supportedLSR, data);
|
|
7810
|
-
}
|
|
7811
|
-
return matchingDistance;
|
|
7812
|
-
}
|
|
7813
|
-
exports.findMatchingDistance = findMatchingDistance;
|
|
7814
|
-
function findBestMatch(requestedLocales, supportedLocales, threshold) {
|
|
7815
|
-
if (threshold === undefined) {
|
|
7816
|
-
threshold = DEFAULT_MATCHING_THRESHOLD;
|
|
7817
|
-
}
|
|
7818
|
-
var lowestDistance = Infinity;
|
|
7819
|
-
var result = {
|
|
7820
|
-
matchedDesiredLocale: "",
|
|
7821
|
-
distances: {}
|
|
7822
|
-
};
|
|
7823
|
-
requestedLocales.forEach(function(desired, i2) {
|
|
7824
|
-
if (!result.distances[desired]) {
|
|
7825
|
-
result.distances[desired] = {};
|
|
7826
|
-
}
|
|
7827
|
-
supportedLocales.forEach(function(supported) {
|
|
7828
|
-
var distance = findMatchingDistance(desired, supported) + 0 + i2 * 40;
|
|
7829
|
-
result.distances[desired][supported] = distance;
|
|
7830
|
-
if (distance < lowestDistance) {
|
|
7831
|
-
lowestDistance = distance;
|
|
7832
|
-
result.matchedDesiredLocale = desired;
|
|
7833
|
-
result.matchedSupportedLocale = supported;
|
|
7834
|
-
}
|
|
7835
|
-
});
|
|
7836
|
-
});
|
|
7837
|
-
if (lowestDistance >= threshold) {
|
|
7838
|
-
result.matchedDesiredLocale = undefined;
|
|
7839
|
-
result.matchedSupportedLocale = undefined;
|
|
7840
|
-
}
|
|
7841
|
-
return result;
|
|
7842
|
-
}
|
|
7843
|
-
exports.findBestMatch = findBestMatch;
|
|
7844
|
-
});
|
|
7845
|
-
|
|
7846
|
-
// node_modules/@formatjs/intl-localematcher/abstract/BestFitMatcher.js
|
|
7847
|
-
var require_BestFitMatcher = __commonJS((exports) => {
|
|
7848
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7849
|
-
exports.BestFitMatcher = undefined;
|
|
7850
|
-
var utils_1 = require_utils2();
|
|
7851
|
-
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
7852
|
-
var foundLocale;
|
|
7853
|
-
var extension;
|
|
7854
|
-
var noExtensionLocales = [];
|
|
7855
|
-
var noExtensionLocaleMap = requestedLocales.reduce(function(all, l2) {
|
|
7856
|
-
var noExtensionLocale = l2.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
7857
|
-
noExtensionLocales.push(noExtensionLocale);
|
|
7858
|
-
all[noExtensionLocale] = l2;
|
|
7859
|
-
return all;
|
|
7860
|
-
}, {});
|
|
7861
|
-
var result = (0, utils_1.findBestMatch)(noExtensionLocales, availableLocales);
|
|
7862
|
-
if (result.matchedSupportedLocale && result.matchedDesiredLocale) {
|
|
7863
|
-
foundLocale = result.matchedSupportedLocale;
|
|
7864
|
-
extension = noExtensionLocaleMap[result.matchedDesiredLocale].slice(result.matchedDesiredLocale.length) || undefined;
|
|
7865
|
-
}
|
|
7866
|
-
if (!foundLocale) {
|
|
7867
|
-
return { locale: getDefaultLocale() };
|
|
7868
|
-
}
|
|
7869
|
-
return {
|
|
7870
|
-
locale: foundLocale,
|
|
7871
|
-
extension
|
|
7872
|
-
};
|
|
7873
|
-
}
|
|
7874
|
-
exports.BestFitMatcher = BestFitMatcher;
|
|
7875
|
-
});
|
|
7876
|
-
|
|
7877
|
-
// node_modules/@formatjs/intl-localematcher/abstract/BestAvailableLocale.js
|
|
7878
|
-
var require_BestAvailableLocale = __commonJS((exports) => {
|
|
7879
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7880
|
-
exports.BestAvailableLocale = undefined;
|
|
7881
|
-
function BestAvailableLocale(availableLocales, locale) {
|
|
7882
|
-
var candidate = locale;
|
|
7883
|
-
while (true) {
|
|
7884
|
-
if (availableLocales.indexOf(candidate) > -1) {
|
|
7885
|
-
return candidate;
|
|
7886
|
-
}
|
|
7887
|
-
var pos = candidate.lastIndexOf("-");
|
|
7888
|
-
if (!~pos) {
|
|
7889
|
-
return;
|
|
7890
|
-
}
|
|
7891
|
-
if (pos >= 2 && candidate[pos - 2] === "-") {
|
|
7892
|
-
pos -= 2;
|
|
7893
|
-
}
|
|
7894
|
-
candidate = candidate.slice(0, pos);
|
|
7895
|
-
}
|
|
7896
|
-
}
|
|
7897
|
-
exports.BestAvailableLocale = BestAvailableLocale;
|
|
7898
|
-
});
|
|
7899
|
-
|
|
7900
|
-
// node_modules/@formatjs/intl-localematcher/abstract/LookupMatcher.js
|
|
7901
|
-
var require_LookupMatcher = __commonJS((exports) => {
|
|
7902
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7903
|
-
exports.LookupMatcher = undefined;
|
|
7904
|
-
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
7905
|
-
var utils_1 = require_utils2();
|
|
7906
|
-
function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
7907
|
-
var result = { locale: "" };
|
|
7908
|
-
for (var _i = 0, requestedLocales_1 = requestedLocales;_i < requestedLocales_1.length; _i++) {
|
|
7909
|
-
var locale = requestedLocales_1[_i];
|
|
7910
|
-
var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
7911
|
-
var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
|
|
7912
|
-
if (availableLocale) {
|
|
7913
|
-
result.locale = availableLocale;
|
|
7914
|
-
if (locale !== noExtensionLocale) {
|
|
7915
|
-
result.extension = locale.slice(noExtensionLocale.length, locale.length);
|
|
7916
|
-
}
|
|
7917
|
-
return result;
|
|
7918
|
-
}
|
|
7919
|
-
}
|
|
7920
|
-
result.locale = getDefaultLocale();
|
|
7921
|
-
return result;
|
|
7922
|
-
}
|
|
7923
|
-
exports.LookupMatcher = LookupMatcher;
|
|
7924
|
-
});
|
|
7925
|
-
|
|
7926
|
-
// node_modules/@formatjs/intl-localematcher/abstract/UnicodeExtensionValue.js
|
|
7927
|
-
var require_UnicodeExtensionValue = __commonJS((exports) => {
|
|
7928
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7929
|
-
exports.UnicodeExtensionValue = undefined;
|
|
7930
|
-
var utils_1 = require_utils2();
|
|
7931
|
-
function UnicodeExtensionValue(extension, key) {
|
|
7932
|
-
(0, utils_1.invariant)(key.length === 2, "key must have 2 elements");
|
|
7933
|
-
var size = extension.length;
|
|
7934
|
-
var searchValue = "-".concat(key, "-");
|
|
7935
|
-
var pos = extension.indexOf(searchValue);
|
|
7936
|
-
if (pos !== -1) {
|
|
7937
|
-
var start = pos + 4;
|
|
7938
|
-
var end = start;
|
|
7939
|
-
var k = start;
|
|
7940
|
-
var done = false;
|
|
7941
|
-
while (!done) {
|
|
7942
|
-
var e2 = extension.indexOf("-", k);
|
|
7943
|
-
var len = undefined;
|
|
7944
|
-
if (e2 === -1) {
|
|
7945
|
-
len = size - k;
|
|
7946
|
-
} else {
|
|
7947
|
-
len = e2 - k;
|
|
7948
|
-
}
|
|
7949
|
-
if (len === 2) {
|
|
7950
|
-
done = true;
|
|
7951
|
-
} else if (e2 === -1) {
|
|
7952
|
-
end = size;
|
|
7953
|
-
done = true;
|
|
7954
|
-
} else {
|
|
7955
|
-
end = e2;
|
|
7956
|
-
k = e2 + 1;
|
|
7957
|
-
}
|
|
7958
|
-
}
|
|
7959
|
-
return extension.slice(start, end);
|
|
7960
|
-
}
|
|
7961
|
-
searchValue = "-".concat(key);
|
|
7962
|
-
pos = extension.indexOf(searchValue);
|
|
7963
|
-
if (pos !== -1 && pos + 3 === size) {
|
|
7964
|
-
return "";
|
|
7965
|
-
}
|
|
7966
|
-
return;
|
|
7967
|
-
}
|
|
7968
|
-
exports.UnicodeExtensionValue = UnicodeExtensionValue;
|
|
7969
|
-
});
|
|
7970
|
-
|
|
7971
|
-
// node_modules/@formatjs/intl-localematcher/abstract/ResolveLocale.js
|
|
7972
|
-
var require_ResolveLocale = __commonJS((exports) => {
|
|
7973
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7974
|
-
exports.ResolveLocale = undefined;
|
|
7975
|
-
var BestFitMatcher_1 = require_BestFitMatcher();
|
|
7976
|
-
var LookupMatcher_1 = require_LookupMatcher();
|
|
7977
|
-
var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
|
|
7978
|
-
var utils_1 = require_utils2();
|
|
7979
|
-
function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
|
|
7980
|
-
var matcher = options.localeMatcher;
|
|
7981
|
-
var r2;
|
|
7982
|
-
if (matcher === "lookup") {
|
|
7983
|
-
r2 = (0, LookupMatcher_1.LookupMatcher)(Array.from(availableLocales), requestedLocales, getDefaultLocale);
|
|
7984
|
-
} else {
|
|
7985
|
-
r2 = (0, BestFitMatcher_1.BestFitMatcher)(Array.from(availableLocales), requestedLocales, getDefaultLocale);
|
|
7986
|
-
}
|
|
7987
|
-
var foundLocale = r2.locale;
|
|
7988
|
-
var result = { locale: "", dataLocale: foundLocale };
|
|
7989
|
-
var supportedExtension = "-u";
|
|
7990
|
-
for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys;_i < relevantExtensionKeys_1.length; _i++) {
|
|
7991
|
-
var key = relevantExtensionKeys_1[_i];
|
|
7992
|
-
(0, utils_1.invariant)(foundLocale in localeData, "Missing locale data for ".concat(foundLocale));
|
|
7993
|
-
var foundLocaleData = localeData[foundLocale];
|
|
7994
|
-
(0, utils_1.invariant)(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data ".concat(key, " must be an object"));
|
|
7995
|
-
var keyLocaleData = foundLocaleData[key];
|
|
7996
|
-
(0, utils_1.invariant)(Array.isArray(keyLocaleData), "keyLocaleData for ".concat(key, " must be an array"));
|
|
7997
|
-
var value = keyLocaleData[0];
|
|
7998
|
-
(0, utils_1.invariant)(typeof value === "string" || value === null, "value must be string or null but got ".concat(typeof value, " in key ").concat(key));
|
|
7999
|
-
var supportedExtensionAddition = "";
|
|
8000
|
-
if (r2.extension) {
|
|
8001
|
-
var requestedValue = (0, UnicodeExtensionValue_1.UnicodeExtensionValue)(r2.extension, key);
|
|
8002
|
-
if (requestedValue !== undefined) {
|
|
8003
|
-
if (requestedValue !== "") {
|
|
8004
|
-
if (~keyLocaleData.indexOf(requestedValue)) {
|
|
8005
|
-
value = requestedValue;
|
|
8006
|
-
supportedExtensionAddition = "-".concat(key, "-").concat(value);
|
|
8007
|
-
}
|
|
8008
|
-
} else if (~requestedValue.indexOf("true")) {
|
|
8009
|
-
value = "true";
|
|
8010
|
-
supportedExtensionAddition = "-".concat(key);
|
|
8011
|
-
}
|
|
8012
|
-
}
|
|
8013
|
-
}
|
|
8014
|
-
if (key in options) {
|
|
8015
|
-
var optionsValue = options[key];
|
|
8016
|
-
(0, utils_1.invariant)(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
|
|
8017
|
-
if (~keyLocaleData.indexOf(optionsValue)) {
|
|
8018
|
-
if (optionsValue !== value) {
|
|
8019
|
-
value = optionsValue;
|
|
8020
|
-
supportedExtensionAddition = "";
|
|
8021
|
-
}
|
|
8022
|
-
}
|
|
8023
|
-
}
|
|
8024
|
-
result[key] = value;
|
|
8025
|
-
supportedExtension += supportedExtensionAddition;
|
|
8026
|
-
}
|
|
8027
|
-
if (supportedExtension.length > 2) {
|
|
8028
|
-
var privateIndex = foundLocale.indexOf("-x-");
|
|
8029
|
-
if (privateIndex === -1) {
|
|
8030
|
-
foundLocale = foundLocale + supportedExtension;
|
|
8031
|
-
} else {
|
|
8032
|
-
var preExtension = foundLocale.slice(0, privateIndex);
|
|
8033
|
-
var postExtension = foundLocale.slice(privateIndex, foundLocale.length);
|
|
8034
|
-
foundLocale = preExtension + supportedExtension + postExtension;
|
|
8035
|
-
}
|
|
8036
|
-
foundLocale = Intl.getCanonicalLocales(foundLocale)[0];
|
|
8037
|
-
}
|
|
8038
|
-
result.locale = foundLocale;
|
|
8039
|
-
return result;
|
|
8040
|
-
}
|
|
8041
|
-
exports.ResolveLocale = ResolveLocale;
|
|
8042
|
-
});
|
|
8043
|
-
|
|
8044
|
-
// node_modules/@formatjs/intl-localematcher/abstract/LookupSupportedLocales.js
|
|
8045
|
-
var require_LookupSupportedLocales = __commonJS((exports) => {
|
|
8046
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8047
|
-
exports.LookupSupportedLocales = undefined;
|
|
8048
|
-
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
8049
|
-
var utils_1 = require_utils2();
|
|
8050
|
-
function LookupSupportedLocales(availableLocales, requestedLocales) {
|
|
8051
|
-
var subset = [];
|
|
8052
|
-
for (var _i = 0, requestedLocales_1 = requestedLocales;_i < requestedLocales_1.length; _i++) {
|
|
8053
|
-
var locale = requestedLocales_1[_i];
|
|
8054
|
-
var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
8055
|
-
var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
|
|
8056
|
-
if (availableLocale) {
|
|
8057
|
-
subset.push(availableLocale);
|
|
8058
|
-
}
|
|
8059
|
-
}
|
|
8060
|
-
return subset;
|
|
8061
|
-
}
|
|
8062
|
-
exports.LookupSupportedLocales = LookupSupportedLocales;
|
|
8063
|
-
});
|
|
8064
|
-
|
|
8065
|
-
// node_modules/@formatjs/intl-localematcher/index.js
|
|
8066
|
-
var require_intl_localematcher = __commonJS((exports) => {
|
|
8067
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8068
|
-
exports.ResolveLocale = exports.LookupSupportedLocales = exports.match = undefined;
|
|
8069
|
-
var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList2();
|
|
8070
|
-
var ResolveLocale_1 = require_ResolveLocale();
|
|
8071
|
-
function match(requestedLocales, availableLocales, defaultLocale, opts) {
|
|
8072
|
-
return (0, ResolveLocale_1.ResolveLocale)(availableLocales, (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(requestedLocales), {
|
|
8073
|
-
localeMatcher: (opts === null || opts === undefined ? undefined : opts.algorithm) || "best fit"
|
|
8074
|
-
}, [], {}, function() {
|
|
8075
|
-
return defaultLocale;
|
|
8076
|
-
}).locale;
|
|
8077
|
-
}
|
|
8078
|
-
exports.match = match;
|
|
8079
|
-
var LookupSupportedLocales_1 = require_LookupSupportedLocales();
|
|
8080
|
-
Object.defineProperty(exports, "LookupSupportedLocales", { enumerable: true, get: function() {
|
|
8081
|
-
return LookupSupportedLocales_1.LookupSupportedLocales;
|
|
8082
|
-
} });
|
|
8083
|
-
var ResolveLocale_2 = require_ResolveLocale();
|
|
8084
|
-
Object.defineProperty(exports, "ResolveLocale", { enumerable: true, get: function() {
|
|
8085
|
-
return ResolveLocale_2.ResolveLocale;
|
|
8086
|
-
} });
|
|
8087
|
-
});
|
|
8088
|
-
|
|
8089
|
-
// node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js
|
|
8090
|
-
var require_SetNumberFormatDigitOptions = __commonJS((exports) => {
|
|
8091
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8092
|
-
exports.SetNumberFormatDigitOptions = undefined;
|
|
8093
|
-
var DefaultNumberOption_1 = require_DefaultNumberOption();
|
|
8094
|
-
var GetNumberOption_1 = require_GetNumberOption();
|
|
8095
|
-
var GetOption_1 = require_GetOption();
|
|
8096
|
-
function SetNumberFormatDigitOptions(internalSlots, opts, mnfdDefault, mxfdDefault, notation) {
|
|
8097
|
-
var mnid = (0, GetNumberOption_1.GetNumberOption)(opts, "minimumIntegerDigits", 1, 21, 1);
|
|
8098
|
-
var mnfd = opts.minimumFractionDigits;
|
|
8099
|
-
var mxfd = opts.maximumFractionDigits;
|
|
8100
|
-
var mnsd = opts.minimumSignificantDigits;
|
|
8101
|
-
var mxsd = opts.maximumSignificantDigits;
|
|
8102
|
-
internalSlots.minimumIntegerDigits = mnid;
|
|
8103
|
-
var roundingPriority = (0, GetOption_1.GetOption)(opts, "roundingPriority", "string", ["auto", "morePrecision", "lessPrecision"], "auto");
|
|
8104
|
-
var hasSd = mnsd !== undefined || mxsd !== undefined;
|
|
8105
|
-
var hasFd = mnfd !== undefined || mxfd !== undefined;
|
|
8106
|
-
var needSd = true;
|
|
8107
|
-
var needFd = true;
|
|
8108
|
-
if (roundingPriority === "auto") {
|
|
8109
|
-
needSd = hasSd;
|
|
8110
|
-
if (hasSd || !hasFd && notation === "compact") {
|
|
8111
|
-
needFd = false;
|
|
8112
|
-
}
|
|
8113
|
-
}
|
|
8114
|
-
if (needSd) {
|
|
8115
|
-
if (hasSd) {
|
|
8116
|
-
mnsd = (0, DefaultNumberOption_1.DefaultNumberOption)(mnsd, 1, 21, 1);
|
|
8117
|
-
mxsd = (0, DefaultNumberOption_1.DefaultNumberOption)(mxsd, mnsd, 21, 21);
|
|
8118
|
-
internalSlots.minimumSignificantDigits = mnsd;
|
|
8119
|
-
internalSlots.maximumSignificantDigits = mxsd;
|
|
8120
|
-
} else {
|
|
8121
|
-
internalSlots.minimumSignificantDigits = 1;
|
|
8122
|
-
internalSlots.maximumSignificantDigits = 21;
|
|
8123
|
-
}
|
|
8124
|
-
}
|
|
8125
|
-
if (needFd) {
|
|
8126
|
-
if (hasFd) {
|
|
8127
|
-
mnfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mnfd, 0, 20, undefined);
|
|
8128
|
-
mxfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mxfd, 0, 20, undefined);
|
|
8129
|
-
if (mnfd === undefined) {
|
|
8130
|
-
mnfd = Math.min(mnfdDefault, mxfd);
|
|
8131
|
-
} else if (mxfd === undefined) {
|
|
8132
|
-
mxfd = Math.max(mxfdDefault, mnfd);
|
|
8133
|
-
} else if (mnfd > mxfd) {
|
|
8134
|
-
throw new RangeError("Invalid range, ".concat(mnfd, " > ").concat(mxfd));
|
|
8135
|
-
}
|
|
8136
|
-
internalSlots.minimumFractionDigits = mnfd;
|
|
8137
|
-
internalSlots.maximumFractionDigits = mxfd;
|
|
8138
|
-
} else {
|
|
8139
|
-
internalSlots.minimumFractionDigits = mnfdDefault;
|
|
8140
|
-
internalSlots.maximumFractionDigits = mxfdDefault;
|
|
8141
|
-
}
|
|
8142
|
-
}
|
|
8143
|
-
if (needSd || needFd) {
|
|
8144
|
-
if (roundingPriority === "morePrecision") {
|
|
8145
|
-
internalSlots.roundingType = "morePrecision";
|
|
8146
|
-
} else if (roundingPriority === "lessPrecision") {
|
|
8147
|
-
internalSlots.roundingType = "lessPrecision";
|
|
8148
|
-
} else if (hasSd) {
|
|
8149
|
-
internalSlots.roundingType = "significantDigits";
|
|
8150
|
-
} else {
|
|
8151
|
-
internalSlots.roundingType = "fractionDigits";
|
|
8152
|
-
}
|
|
8153
|
-
} else {
|
|
8154
|
-
internalSlots.roundingType = "morePrecision";
|
|
8155
|
-
internalSlots.minimumFractionDigits = 0;
|
|
8156
|
-
internalSlots.maximumFractionDigits = 0;
|
|
8157
|
-
internalSlots.minimumSignificantDigits = 1;
|
|
8158
|
-
internalSlots.maximumSignificantDigits = 2;
|
|
8159
|
-
}
|
|
8160
|
-
}
|
|
8161
|
-
exports.SetNumberFormatDigitOptions = SetNumberFormatDigitOptions;
|
|
8162
|
-
});
|
|
8163
|
-
|
|
8164
|
-
// node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatUnitOptions.js
|
|
8165
|
-
var require_SetNumberFormatUnitOptions = __commonJS((exports) => {
|
|
8166
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8167
|
-
exports.SetNumberFormatUnitOptions = undefined;
|
|
8168
|
-
var GetOption_1 = require_GetOption();
|
|
8169
|
-
var IsWellFormedCurrencyCode_1 = require_IsWellFormedCurrencyCode();
|
|
8170
|
-
var IsWellFormedUnitIdentifier_1 = require_IsWellFormedUnitIdentifier();
|
|
8171
|
-
function SetNumberFormatUnitOptions(nf, options, _a) {
|
|
8172
|
-
if (options === undefined) {
|
|
8173
|
-
options = Object.create(null);
|
|
8174
|
-
}
|
|
8175
|
-
var getInternalSlots = _a.getInternalSlots;
|
|
8176
|
-
var internalSlots = getInternalSlots(nf);
|
|
8177
|
-
var style = (0, GetOption_1.GetOption)(options, "style", "string", ["decimal", "percent", "currency", "unit"], "decimal");
|
|
8178
|
-
internalSlots.style = style;
|
|
8179
|
-
var currency = (0, GetOption_1.GetOption)(options, "currency", "string", undefined, undefined);
|
|
8180
|
-
if (currency !== undefined && !(0, IsWellFormedCurrencyCode_1.IsWellFormedCurrencyCode)(currency)) {
|
|
8181
|
-
throw RangeError("Malformed currency code");
|
|
8182
|
-
}
|
|
8183
|
-
if (style === "currency" && currency === undefined) {
|
|
8184
|
-
throw TypeError("currency cannot be undefined");
|
|
8185
|
-
}
|
|
8186
|
-
var currencyDisplay = (0, GetOption_1.GetOption)(options, "currencyDisplay", "string", ["code", "symbol", "narrowSymbol", "name"], "symbol");
|
|
8187
|
-
var currencySign = (0, GetOption_1.GetOption)(options, "currencySign", "string", ["standard", "accounting"], "standard");
|
|
8188
|
-
var unit = (0, GetOption_1.GetOption)(options, "unit", "string", undefined, undefined);
|
|
8189
|
-
if (unit !== undefined && !(0, IsWellFormedUnitIdentifier_1.IsWellFormedUnitIdentifier)(unit)) {
|
|
8190
|
-
throw RangeError("Invalid unit argument for Intl.NumberFormat()");
|
|
8191
|
-
}
|
|
8192
|
-
if (style === "unit" && unit === undefined) {
|
|
8193
|
-
throw TypeError("unit cannot be undefined");
|
|
8194
|
-
}
|
|
8195
|
-
var unitDisplay = (0, GetOption_1.GetOption)(options, "unitDisplay", "string", ["short", "narrow", "long"], "short");
|
|
8196
|
-
if (style === "currency") {
|
|
8197
|
-
internalSlots.currency = currency.toUpperCase();
|
|
8198
|
-
internalSlots.currencyDisplay = currencyDisplay;
|
|
8199
|
-
internalSlots.currencySign = currencySign;
|
|
8200
|
-
}
|
|
8201
|
-
if (style === "unit") {
|
|
8202
|
-
internalSlots.unit = unit;
|
|
8203
|
-
internalSlots.unitDisplay = unitDisplay;
|
|
8204
|
-
}
|
|
8205
|
-
}
|
|
8206
|
-
exports.SetNumberFormatUnitOptions = SetNumberFormatUnitOptions;
|
|
8207
|
-
});
|
|
8208
|
-
|
|
8209
|
-
// node_modules/@formatjs/ecma402-abstract/NumberFormat/InitializeNumberFormat.js
|
|
8210
|
-
var require_InitializeNumberFormat = __commonJS((exports) => {
|
|
8211
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8212
|
-
exports.InitializeNumberFormat = undefined;
|
|
8213
|
-
var intl_localematcher_1 = require_intl_localematcher();
|
|
8214
|
-
var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList();
|
|
8215
|
-
var CoerceOptionsToObject_1 = require_CoerceOptionsToObject();
|
|
8216
|
-
var GetNumberOption_1 = require_GetNumberOption();
|
|
8217
|
-
var GetOption_1 = require_GetOption();
|
|
8218
|
-
var GetStringOrBooleanOption_1 = require_GetStringOrBooleanOption();
|
|
8219
|
-
var utils_1 = require_utils();
|
|
8220
|
-
var CurrencyDigits_1 = require_CurrencyDigits();
|
|
8221
|
-
var SetNumberFormatDigitOptions_1 = require_SetNumberFormatDigitOptions();
|
|
8222
|
-
var SetNumberFormatUnitOptions_1 = require_SetNumberFormatUnitOptions();
|
|
8223
|
-
var VALID_ROUND_INCREMENT_VALUES = [
|
|
8224
|
-
1,
|
|
8225
|
-
2,
|
|
8226
|
-
5,
|
|
8227
|
-
10,
|
|
8228
|
-
20,
|
|
8229
|
-
25,
|
|
8230
|
-
50,
|
|
8231
|
-
100,
|
|
8232
|
-
200,
|
|
8233
|
-
250,
|
|
8234
|
-
500,
|
|
8235
|
-
1000,
|
|
8236
|
-
2000
|
|
8237
|
-
];
|
|
8238
|
-
function InitializeNumberFormat(nf, locales, opts, _a) {
|
|
8239
|
-
var { getInternalSlots, localeData, availableLocales, numberingSystemNames, getDefaultLocale, currencyDigitsData } = _a;
|
|
8240
|
-
var requestedLocales = (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(locales);
|
|
8241
|
-
var options = (0, CoerceOptionsToObject_1.CoerceOptionsToObject)(opts);
|
|
8242
|
-
var opt = Object.create(null);
|
|
8243
|
-
var matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
8244
|
-
opt.localeMatcher = matcher;
|
|
8245
|
-
var numberingSystem = (0, GetOption_1.GetOption)(options, "numberingSystem", "string", undefined, undefined);
|
|
8246
|
-
if (numberingSystem !== undefined && numberingSystemNames.indexOf(numberingSystem) < 0) {
|
|
8247
|
-
throw RangeError("Invalid numberingSystems: ".concat(numberingSystem));
|
|
8248
|
-
}
|
|
8249
|
-
opt.nu = numberingSystem;
|
|
8250
|
-
var r2 = (0, intl_localematcher_1.ResolveLocale)(Array.from(availableLocales), requestedLocales, opt, ["nu"], localeData, getDefaultLocale);
|
|
8251
|
-
var dataLocaleData = localeData[r2.dataLocale];
|
|
8252
|
-
(0, utils_1.invariant)(!!dataLocaleData, "Missing locale data for ".concat(r2.dataLocale));
|
|
8253
|
-
var internalSlots = getInternalSlots(nf);
|
|
8254
|
-
internalSlots.locale = r2.locale;
|
|
8255
|
-
internalSlots.dataLocale = r2.dataLocale;
|
|
8256
|
-
internalSlots.numberingSystem = r2.nu;
|
|
8257
|
-
internalSlots.dataLocaleData = dataLocaleData;
|
|
8258
|
-
(0, SetNumberFormatUnitOptions_1.SetNumberFormatUnitOptions)(nf, options, { getInternalSlots });
|
|
8259
|
-
var style = internalSlots.style;
|
|
8260
|
-
var mnfdDefault;
|
|
8261
|
-
var mxfdDefault;
|
|
8262
|
-
if (style === "currency") {
|
|
8263
|
-
var currency = internalSlots.currency;
|
|
8264
|
-
var cDigits = (0, CurrencyDigits_1.CurrencyDigits)(currency, { currencyDigitsData });
|
|
8265
|
-
mnfdDefault = cDigits;
|
|
8266
|
-
mxfdDefault = cDigits;
|
|
8267
|
-
} else {
|
|
8268
|
-
mnfdDefault = 0;
|
|
8269
|
-
mxfdDefault = style === "percent" ? 0 : 3;
|
|
8270
|
-
}
|
|
8271
|
-
var notation = (0, GetOption_1.GetOption)(options, "notation", "string", ["standard", "scientific", "engineering", "compact"], "standard");
|
|
8272
|
-
internalSlots.notation = notation;
|
|
8273
|
-
(0, SetNumberFormatDigitOptions_1.SetNumberFormatDigitOptions)(internalSlots, options, mnfdDefault, mxfdDefault, notation);
|
|
8274
|
-
var roundingIncrement = (0, GetNumberOption_1.GetNumberOption)(options, "roundingIncrement", 1, 5000, 1);
|
|
8275
|
-
if (VALID_ROUND_INCREMENT_VALUES.indexOf(roundingIncrement) === -1) {
|
|
8276
|
-
throw new RangeError("Invalid rounding increment value: ".concat(roundingIncrement, `.
|
|
8277
|
-
Valid values are `).concat(VALID_ROUND_INCREMENT_VALUES, "."));
|
|
8278
|
-
}
|
|
8279
|
-
if (roundingIncrement !== 1 && internalSlots.roundingType !== "fractionDigits") {
|
|
8280
|
-
throw new TypeError("For roundingIncrement > 1 only fractionDigits is a valid roundingType");
|
|
8281
|
-
}
|
|
8282
|
-
if (roundingIncrement !== 1 && internalSlots.maximumFractionDigits !== internalSlots.minimumFractionDigits) {
|
|
8283
|
-
throw new RangeError("With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.");
|
|
8284
|
-
}
|
|
8285
|
-
internalSlots.roundingIncrement = roundingIncrement;
|
|
8286
|
-
var trailingZeroDisplay = (0, GetOption_1.GetOption)(options, "trailingZeroDisplay", "string", ["auto", "stripIfInteger"], "auto");
|
|
8287
|
-
internalSlots.trailingZeroDisplay = trailingZeroDisplay;
|
|
8288
|
-
var compactDisplay = (0, GetOption_1.GetOption)(options, "compactDisplay", "string", ["short", "long"], "short");
|
|
8289
|
-
var defaultUseGrouping = "auto";
|
|
8290
|
-
if (notation === "compact") {
|
|
8291
|
-
internalSlots.compactDisplay = compactDisplay;
|
|
8292
|
-
defaultUseGrouping = "min2";
|
|
8293
|
-
}
|
|
8294
|
-
internalSlots.useGrouping = (0, GetStringOrBooleanOption_1.GetStringOrBooleanOption)(options, "useGrouping", ["min2", "auto", "always"], "always", false, defaultUseGrouping);
|
|
8295
|
-
internalSlots.signDisplay = (0, GetOption_1.GetOption)(options, "signDisplay", "string", ["auto", "never", "always", "exceptZero", "negative"], "auto");
|
|
8296
|
-
internalSlots.roundingMode = (0, GetOption_1.GetOption)(options, "roundingMode", "string", [
|
|
8297
|
-
"ceil",
|
|
8298
|
-
"floor",
|
|
8299
|
-
"expand",
|
|
8300
|
-
"trunc",
|
|
8301
|
-
"halfCeil",
|
|
8302
|
-
"halfFloor",
|
|
8303
|
-
"halfExpand",
|
|
8304
|
-
"halfTrunc",
|
|
8305
|
-
"halfEven"
|
|
8306
|
-
], "halfExpand");
|
|
8307
|
-
return nf;
|
|
8308
|
-
}
|
|
8309
|
-
exports.InitializeNumberFormat = InitializeNumberFormat;
|
|
8310
|
-
});
|
|
8311
|
-
|
|
8312
|
-
// node_modules/@formatjs/ecma402-abstract/PartitionPattern.js
|
|
8313
|
-
var require_PartitionPattern = __commonJS((exports) => {
|
|
8314
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8315
|
-
exports.PartitionPattern = undefined;
|
|
8316
|
-
var utils_1 = require_utils();
|
|
8317
|
-
function PartitionPattern(pattern) {
|
|
8318
|
-
var result = [];
|
|
8319
|
-
var beginIndex = pattern.indexOf("{");
|
|
8320
|
-
var endIndex = 0;
|
|
8321
|
-
var nextIndex = 0;
|
|
8322
|
-
var length = pattern.length;
|
|
8323
|
-
while (beginIndex < pattern.length && beginIndex > -1) {
|
|
8324
|
-
endIndex = pattern.indexOf("}", beginIndex);
|
|
8325
|
-
(0, utils_1.invariant)(endIndex > beginIndex, "Invalid pattern ".concat(pattern));
|
|
8326
|
-
if (beginIndex > nextIndex) {
|
|
8327
|
-
result.push({
|
|
8328
|
-
type: "literal",
|
|
8329
|
-
value: pattern.substring(nextIndex, beginIndex)
|
|
8330
|
-
});
|
|
8331
|
-
}
|
|
8332
|
-
result.push({
|
|
8333
|
-
type: pattern.substring(beginIndex + 1, endIndex),
|
|
8334
|
-
value: undefined
|
|
8335
|
-
});
|
|
8336
|
-
nextIndex = endIndex + 1;
|
|
8337
|
-
beginIndex = pattern.indexOf("{", nextIndex);
|
|
8338
|
-
}
|
|
8339
|
-
if (nextIndex < length) {
|
|
8340
|
-
result.push({
|
|
8341
|
-
type: "literal",
|
|
8342
|
-
value: pattern.substring(nextIndex, length)
|
|
8343
|
-
});
|
|
8344
|
-
}
|
|
8345
|
-
return result;
|
|
8346
|
-
}
|
|
8347
|
-
exports.PartitionPattern = PartitionPattern;
|
|
8348
|
-
});
|
|
8349
|
-
|
|
8350
|
-
// node_modules/@formatjs/ecma402-abstract/SupportedLocales.js
|
|
8351
|
-
var require_SupportedLocales = __commonJS((exports) => {
|
|
8352
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8353
|
-
exports.SupportedLocales = undefined;
|
|
8354
|
-
var intl_localematcher_1 = require_intl_localematcher();
|
|
8355
|
-
var _262_1 = require_262();
|
|
8356
|
-
var GetOption_1 = require_GetOption();
|
|
8357
|
-
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
8358
|
-
var matcher = "best fit";
|
|
8359
|
-
if (options !== undefined) {
|
|
8360
|
-
options = (0, _262_1.ToObject)(options);
|
|
8361
|
-
matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
8362
|
-
}
|
|
8363
|
-
if (matcher === "best fit") {
|
|
8364
|
-
return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
|
|
8365
|
-
}
|
|
8366
|
-
return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
|
|
8367
|
-
}
|
|
8368
|
-
exports.SupportedLocales = SupportedLocales;
|
|
8369
|
-
});
|
|
8370
|
-
|
|
8371
|
-
// node_modules/@formatjs/ecma402-abstract/data.js
|
|
8372
|
-
var require_data = __commonJS((exports) => {
|
|
8373
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8374
|
-
exports.isMissingLocaleDataError = undefined;
|
|
8375
|
-
var tslib_1 = require_tslib();
|
|
8376
|
-
var MissingLocaleDataError = function(_super) {
|
|
8377
|
-
tslib_1.__extends(MissingLocaleDataError2, _super);
|
|
8378
|
-
function MissingLocaleDataError2() {
|
|
8379
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
8380
|
-
_this.type = "MISSING_LOCALE_DATA";
|
|
8381
|
-
return _this;
|
|
8382
|
-
}
|
|
8383
|
-
return MissingLocaleDataError2;
|
|
8384
|
-
}(Error);
|
|
8385
|
-
function isMissingLocaleDataError(e2) {
|
|
8386
|
-
return e2.type === "MISSING_LOCALE_DATA";
|
|
8387
|
-
}
|
|
8388
|
-
exports.isMissingLocaleDataError = isMissingLocaleDataError;
|
|
8389
|
-
});
|
|
8390
|
-
|
|
8391
|
-
// node_modules/@formatjs/ecma402-abstract/types/relative-time.js
|
|
8392
|
-
var require_relative_time = __commonJS((exports) => {
|
|
8393
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8394
|
-
});
|
|
8395
|
-
|
|
8396
|
-
// node_modules/@formatjs/ecma402-abstract/types/date-time.js
|
|
8397
|
-
var require_date_time = __commonJS((exports) => {
|
|
8398
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8399
|
-
exports.RangePatternType = undefined;
|
|
8400
|
-
var RangePatternType;
|
|
8401
|
-
(function(RangePatternType2) {
|
|
8402
|
-
RangePatternType2["startRange"] = "startRange";
|
|
8403
|
-
RangePatternType2["shared"] = "shared";
|
|
8404
|
-
RangePatternType2["endRange"] = "endRange";
|
|
8405
|
-
})(RangePatternType || (exports.RangePatternType = RangePatternType = {}));
|
|
8406
|
-
});
|
|
8407
|
-
|
|
8408
|
-
// node_modules/@formatjs/ecma402-abstract/types/list.js
|
|
8409
|
-
var require_list = __commonJS((exports) => {
|
|
8410
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8411
|
-
});
|
|
8412
|
-
|
|
8413
|
-
// node_modules/@formatjs/ecma402-abstract/types/plural-rules.js
|
|
8414
|
-
var require_plural_rules = __commonJS((exports) => {
|
|
8415
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8416
|
-
});
|
|
8417
|
-
|
|
8418
|
-
// node_modules/@formatjs/ecma402-abstract/types/number.js
|
|
8419
|
-
var require_number = __commonJS((exports) => {
|
|
8420
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8421
|
-
});
|
|
8422
|
-
|
|
8423
|
-
// node_modules/@formatjs/ecma402-abstract/types/displaynames.js
|
|
8424
|
-
var require_displaynames = __commonJS((exports) => {
|
|
8425
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8426
|
-
});
|
|
8427
|
-
|
|
8428
|
-
// node_modules/@formatjs/ecma402-abstract/index.js
|
|
8429
|
-
var require_ecma402_abstract = __commonJS((exports) => {
|
|
8430
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8431
|
-
exports.invariant = exports.isMissingLocaleDataError = exports.defineProperty = exports.getMagnitude = exports.setMultiInternalSlots = exports.setInternalSlot = exports.isLiteralPart = exports.getMultiInternalSlots = exports.getInternalSlot = exports._formatToParts = undefined;
|
|
8432
|
-
var tslib_1 = require_tslib();
|
|
8433
|
-
tslib_1.__exportStar(require_CanonicalizeLocaleList(), exports);
|
|
8434
|
-
tslib_1.__exportStar(require_CanonicalizeTimeZoneName(), exports);
|
|
8435
|
-
tslib_1.__exportStar(require_CoerceOptionsToObject(), exports);
|
|
8436
|
-
tslib_1.__exportStar(require_GetNumberOption(), exports);
|
|
8437
|
-
tslib_1.__exportStar(require_GetOption(), exports);
|
|
8438
|
-
tslib_1.__exportStar(require_GetOptionsObject(), exports);
|
|
8439
|
-
tslib_1.__exportStar(require_GetStringOrBooleanOption(), exports);
|
|
8440
|
-
tslib_1.__exportStar(require_IsSanctionedSimpleUnitIdentifier(), exports);
|
|
8441
|
-
tslib_1.__exportStar(require_IsValidTimeZoneName(), exports);
|
|
8442
|
-
tslib_1.__exportStar(require_IsWellFormedCurrencyCode(), exports);
|
|
8443
|
-
tslib_1.__exportStar(require_IsWellFormedUnitIdentifier(), exports);
|
|
8444
|
-
tslib_1.__exportStar(require_ApplyUnsignedRoundingMode(), exports);
|
|
8445
|
-
tslib_1.__exportStar(require_CollapseNumberRange(), exports);
|
|
8446
|
-
tslib_1.__exportStar(require_ComputeExponent(), exports);
|
|
8447
|
-
tslib_1.__exportStar(require_ComputeExponentForMagnitude(), exports);
|
|
8448
|
-
tslib_1.__exportStar(require_CurrencyDigits(), exports);
|
|
8449
|
-
tslib_1.__exportStar(require_FormatApproximately(), exports);
|
|
8450
|
-
tslib_1.__exportStar(require_FormatNumericRange(), exports);
|
|
8451
|
-
tslib_1.__exportStar(require_FormatNumericRangeToParts(), exports);
|
|
8452
|
-
tslib_1.__exportStar(require_FormatNumericToParts(), exports);
|
|
8453
|
-
tslib_1.__exportStar(require_FormatNumericToString(), exports);
|
|
8454
|
-
tslib_1.__exportStar(require_GetUnsignedRoundingMode(), exports);
|
|
8455
|
-
tslib_1.__exportStar(require_InitializeNumberFormat(), exports);
|
|
8456
|
-
tslib_1.__exportStar(require_PartitionNumberPattern(), exports);
|
|
8457
|
-
tslib_1.__exportStar(require_PartitionNumberRangePattern(), exports);
|
|
8458
|
-
tslib_1.__exportStar(require_SetNumberFormatDigitOptions(), exports);
|
|
8459
|
-
tslib_1.__exportStar(require_SetNumberFormatUnitOptions(), exports);
|
|
8460
|
-
tslib_1.__exportStar(require_ToRawFixed(), exports);
|
|
8461
|
-
tslib_1.__exportStar(require_ToRawPrecision(), exports);
|
|
8462
|
-
var format_to_parts_1 = require_format_to_parts();
|
|
8463
|
-
Object.defineProperty(exports, "_formatToParts", { enumerable: true, get: function() {
|
|
8464
|
-
return tslib_1.__importDefault(format_to_parts_1).default;
|
|
8465
|
-
} });
|
|
8466
|
-
tslib_1.__exportStar(require_PartitionPattern(), exports);
|
|
8467
|
-
tslib_1.__exportStar(require_SupportedLocales(), exports);
|
|
8468
|
-
var utils_1 = require_utils();
|
|
8469
|
-
Object.defineProperty(exports, "getInternalSlot", { enumerable: true, get: function() {
|
|
8470
|
-
return utils_1.getInternalSlot;
|
|
8471
|
-
} });
|
|
8472
|
-
Object.defineProperty(exports, "getMultiInternalSlots", { enumerable: true, get: function() {
|
|
8473
|
-
return utils_1.getMultiInternalSlots;
|
|
8474
|
-
} });
|
|
8475
|
-
Object.defineProperty(exports, "isLiteralPart", { enumerable: true, get: function() {
|
|
8476
|
-
return utils_1.isLiteralPart;
|
|
8477
|
-
} });
|
|
8478
|
-
Object.defineProperty(exports, "setInternalSlot", { enumerable: true, get: function() {
|
|
8479
|
-
return utils_1.setInternalSlot;
|
|
8480
|
-
} });
|
|
8481
|
-
Object.defineProperty(exports, "setMultiInternalSlots", { enumerable: true, get: function() {
|
|
8482
|
-
return utils_1.setMultiInternalSlots;
|
|
8483
|
-
} });
|
|
8484
|
-
Object.defineProperty(exports, "getMagnitude", { enumerable: true, get: function() {
|
|
8485
|
-
return utils_1.getMagnitude;
|
|
8486
|
-
} });
|
|
8487
|
-
Object.defineProperty(exports, "defineProperty", { enumerable: true, get: function() {
|
|
8488
|
-
return utils_1.defineProperty;
|
|
8489
|
-
} });
|
|
8490
|
-
var data_1 = require_data();
|
|
8491
|
-
Object.defineProperty(exports, "isMissingLocaleDataError", { enumerable: true, get: function() {
|
|
8492
|
-
return data_1.isMissingLocaleDataError;
|
|
8493
|
-
} });
|
|
8494
|
-
tslib_1.__exportStar(require_relative_time(), exports);
|
|
8495
|
-
tslib_1.__exportStar(require_date_time(), exports);
|
|
8496
|
-
tslib_1.__exportStar(require_list(), exports);
|
|
8497
|
-
tslib_1.__exportStar(require_plural_rules(), exports);
|
|
8498
|
-
tslib_1.__exportStar(require_number(), exports);
|
|
8499
|
-
tslib_1.__exportStar(require_displaynames(), exports);
|
|
8500
|
-
var utils_2 = require_utils();
|
|
8501
|
-
Object.defineProperty(exports, "invariant", { enumerable: true, get: function() {
|
|
8502
|
-
return utils_2.invariant;
|
|
8503
|
-
} });
|
|
8504
|
-
tslib_1.__exportStar(require_262(), exports);
|
|
8505
|
-
});
|
|
8506
|
-
|
|
8507
|
-
// node_modules/@formatjs/intl/src/types.js
|
|
8508
|
-
var require_types = __commonJS((exports) => {
|
|
8509
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8510
|
-
});
|
|
8511
|
-
|
|
8512
|
-
// node_modules/@formatjs/icu-messageformat-parser/error.js
|
|
8513
|
-
var require_error = __commonJS((exports) => {
|
|
8514
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8515
|
-
exports.ErrorKind = undefined;
|
|
8516
|
-
var ErrorKind;
|
|
8517
|
-
(function(ErrorKind2) {
|
|
8518
|
-
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
|
|
8519
|
-
ErrorKind2[ErrorKind2["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
|
|
8520
|
-
ErrorKind2[ErrorKind2["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
|
|
8521
|
-
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
|
|
8522
|
-
ErrorKind2[ErrorKind2["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
|
|
8523
|
-
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
|
|
8524
|
-
ErrorKind2[ErrorKind2["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
|
|
8525
|
-
ErrorKind2[ErrorKind2["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
|
|
8526
|
-
ErrorKind2[ErrorKind2["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
|
|
8527
|
-
ErrorKind2[ErrorKind2["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
|
|
8528
|
-
ErrorKind2[ErrorKind2["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
|
|
8529
|
-
ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
|
|
8530
|
-
ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
|
|
8531
|
-
ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
|
|
8532
|
-
ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
|
|
8533
|
-
ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
|
|
8534
|
-
ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
|
|
8535
|
-
ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
|
|
8536
|
-
ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
|
|
8537
|
-
ErrorKind2[ErrorKind2["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
|
|
8538
|
-
ErrorKind2[ErrorKind2["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
|
|
8539
|
-
ErrorKind2[ErrorKind2["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
|
|
8540
|
-
ErrorKind2[ErrorKind2["INVALID_TAG"] = 23] = "INVALID_TAG";
|
|
8541
|
-
ErrorKind2[ErrorKind2["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
|
|
8542
|
-
ErrorKind2[ErrorKind2["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
|
|
8543
|
-
ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
|
|
8544
|
-
})(ErrorKind || (exports.ErrorKind = ErrorKind = {}));
|
|
8545
|
-
});
|
|
8546
|
-
|
|
8547
|
-
// node_modules/@formatjs/icu-messageformat-parser/types.js
|
|
8548
|
-
var require_types2 = __commonJS((exports) => {
|
|
8549
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8550
|
-
exports.createNumberElement = exports.createLiteralElement = exports.isDateTimeSkeleton = exports.isNumberSkeleton = exports.isTagElement = exports.isPoundElement = exports.isPluralElement = exports.isSelectElement = exports.isTimeElement = exports.isDateElement = exports.isNumberElement = exports.isArgumentElement = exports.isLiteralElement = exports.SKELETON_TYPE = exports.TYPE = undefined;
|
|
8551
|
-
var TYPE;
|
|
8552
|
-
(function(TYPE2) {
|
|
8553
|
-
TYPE2[TYPE2["literal"] = 0] = "literal";
|
|
8554
|
-
TYPE2[TYPE2["argument"] = 1] = "argument";
|
|
8555
|
-
TYPE2[TYPE2["number"] = 2] = "number";
|
|
8556
|
-
TYPE2[TYPE2["date"] = 3] = "date";
|
|
8557
|
-
TYPE2[TYPE2["time"] = 4] = "time";
|
|
8558
|
-
TYPE2[TYPE2["select"] = 5] = "select";
|
|
8559
|
-
TYPE2[TYPE2["plural"] = 6] = "plural";
|
|
8560
|
-
TYPE2[TYPE2["pound"] = 7] = "pound";
|
|
8561
|
-
TYPE2[TYPE2["tag"] = 8] = "tag";
|
|
8562
|
-
})(TYPE || (exports.TYPE = TYPE = {}));
|
|
8563
|
-
var SKELETON_TYPE;
|
|
8564
|
-
(function(SKELETON_TYPE2) {
|
|
8565
|
-
SKELETON_TYPE2[SKELETON_TYPE2["number"] = 0] = "number";
|
|
8566
|
-
SKELETON_TYPE2[SKELETON_TYPE2["dateTime"] = 1] = "dateTime";
|
|
8567
|
-
})(SKELETON_TYPE || (exports.SKELETON_TYPE = SKELETON_TYPE = {}));
|
|
8568
|
-
function isLiteralElement(el) {
|
|
8569
|
-
return el.type === TYPE.literal;
|
|
8570
|
-
}
|
|
8571
|
-
exports.isLiteralElement = isLiteralElement;
|
|
8572
|
-
function isArgumentElement(el) {
|
|
8573
|
-
return el.type === TYPE.argument;
|
|
8574
|
-
}
|
|
8575
|
-
exports.isArgumentElement = isArgumentElement;
|
|
8576
|
-
function isNumberElement(el) {
|
|
8577
|
-
return el.type === TYPE.number;
|
|
8578
|
-
}
|
|
8579
|
-
exports.isNumberElement = isNumberElement;
|
|
8580
|
-
function isDateElement(el) {
|
|
8581
|
-
return el.type === TYPE.date;
|
|
8582
|
-
}
|
|
8583
|
-
exports.isDateElement = isDateElement;
|
|
8584
|
-
function isTimeElement(el) {
|
|
8585
|
-
return el.type === TYPE.time;
|
|
8586
|
-
}
|
|
8587
|
-
exports.isTimeElement = isTimeElement;
|
|
8588
|
-
function isSelectElement(el) {
|
|
8589
|
-
return el.type === TYPE.select;
|
|
8590
|
-
}
|
|
8591
|
-
exports.isSelectElement = isSelectElement;
|
|
8592
|
-
function isPluralElement(el) {
|
|
8593
|
-
return el.type === TYPE.plural;
|
|
8594
|
-
}
|
|
8595
|
-
exports.isPluralElement = isPluralElement;
|
|
8596
|
-
function isPoundElement(el) {
|
|
8597
|
-
return el.type === TYPE.pound;
|
|
8598
|
-
}
|
|
8599
|
-
exports.isPoundElement = isPoundElement;
|
|
8600
|
-
function isTagElement(el) {
|
|
8601
|
-
return el.type === TYPE.tag;
|
|
8602
|
-
}
|
|
8603
|
-
exports.isTagElement = isTagElement;
|
|
8604
|
-
function isNumberSkeleton(el) {
|
|
8605
|
-
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.number);
|
|
8606
|
-
}
|
|
8607
|
-
exports.isNumberSkeleton = isNumberSkeleton;
|
|
8608
|
-
function isDateTimeSkeleton(el) {
|
|
8609
|
-
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
|
|
8610
|
-
}
|
|
8611
|
-
exports.isDateTimeSkeleton = isDateTimeSkeleton;
|
|
8612
|
-
function createLiteralElement(value) {
|
|
8613
|
-
return {
|
|
8614
|
-
type: TYPE.literal,
|
|
8615
|
-
value
|
|
8616
|
-
};
|
|
8617
|
-
}
|
|
8618
|
-
exports.createLiteralElement = createLiteralElement;
|
|
8619
|
-
function createNumberElement(value, style) {
|
|
8620
|
-
return {
|
|
8621
|
-
type: TYPE.number,
|
|
8622
|
-
value,
|
|
8623
|
-
style
|
|
8624
|
-
};
|
|
8625
|
-
}
|
|
8626
|
-
exports.createNumberElement = createNumberElement;
|
|
8627
|
-
});
|
|
8628
|
-
|
|
8629
|
-
// node_modules/@formatjs/icu-messageformat-parser/regex.generated.js
|
|
8630
|
-
var require_regex_generated2 = __commonJS((exports) => {
|
|
8631
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8632
|
-
exports.WHITE_SPACE_REGEX = exports.SPACE_SEPARATOR_REGEX = undefined;
|
|
8633
|
-
exports.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
8634
|
-
exports.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
|
|
8635
|
-
});
|
|
8636
|
-
|
|
8637
|
-
// node_modules/@formatjs/icu-skeleton-parser/node_modules/tslib/tslib.js
|
|
8638
|
-
var require_tslib3 = __commonJS((exports, module) => {
|
|
8639
|
-
var __extends;
|
|
8640
|
-
var __assign;
|
|
8641
|
-
var __rest;
|
|
8642
|
-
var __decorate;
|
|
8643
|
-
var __param;
|
|
8644
|
-
var __esDecorate;
|
|
8645
|
-
var __runInitializers;
|
|
8646
|
-
var __propKey;
|
|
8647
|
-
var __setFunctionName;
|
|
8648
|
-
var __metadata;
|
|
8649
|
-
var __awaiter;
|
|
8650
|
-
var __generator;
|
|
8651
|
-
var __exportStar;
|
|
8652
|
-
var __values;
|
|
8653
|
-
var __read;
|
|
8654
|
-
var __spread;
|
|
8655
|
-
var __spreadArrays;
|
|
8656
|
-
var __spreadArray;
|
|
8657
|
-
var __await;
|
|
8658
|
-
var __asyncGenerator;
|
|
8659
|
-
var __asyncDelegator;
|
|
8660
|
-
var __asyncValues;
|
|
8661
|
-
var __makeTemplateObject;
|
|
8662
|
-
var __importStar;
|
|
8663
|
-
var __importDefault;
|
|
8664
|
-
var __classPrivateFieldGet;
|
|
8665
|
-
var __classPrivateFieldSet;
|
|
8666
|
-
var __classPrivateFieldIn;
|
|
8667
|
-
var __createBinding;
|
|
8668
|
-
var __addDisposableResource;
|
|
8669
|
-
var __disposeResources;
|
|
8670
|
-
var __rewriteRelativeImportExtension;
|
|
8671
|
-
(function(factory) {
|
|
8672
|
-
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
|
|
8673
|
-
if (typeof define === "function" && define.amd) {
|
|
8674
|
-
define("tslib", ["exports"], function(exports2) {
|
|
8675
|
-
factory(createExporter(root, createExporter(exports2)));
|
|
8676
|
-
});
|
|
8677
|
-
} else if (typeof module === "object" && typeof exports === "object") {
|
|
8678
|
-
factory(createExporter(root, createExporter(exports)));
|
|
8679
|
-
} else {
|
|
8680
|
-
factory(createExporter(root));
|
|
8681
|
-
}
|
|
8682
|
-
function createExporter(exports2, previous) {
|
|
8683
|
-
if (exports2 !== root) {
|
|
8684
|
-
if (typeof Object.create === "function") {
|
|
8685
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8686
|
-
} else {
|
|
8687
|
-
exports2.__esModule = true;
|
|
8688
|
-
}
|
|
8689
|
-
}
|
|
8690
|
-
return function(id, v2) {
|
|
8691
|
-
return exports2[id] = previous ? previous(id, v2) : v2;
|
|
8692
|
-
};
|
|
8693
|
-
}
|
|
8694
|
-
})(function(exporter) {
|
|
8695
|
-
var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
8696
|
-
d2.__proto__ = b2;
|
|
8697
|
-
} || function(d2, b2) {
|
|
8698
|
-
for (var p2 in b2)
|
|
8699
|
-
if (Object.prototype.hasOwnProperty.call(b2, p2))
|
|
8700
|
-
d2[p2] = b2[p2];
|
|
8701
|
-
};
|
|
8702
|
-
__extends = function(d2, b2) {
|
|
8703
|
-
if (typeof b2 !== "function" && b2 !== null)
|
|
8704
|
-
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
8705
|
-
extendStatics(d2, b2);
|
|
8706
|
-
function __() {
|
|
8707
|
-
this.constructor = d2;
|
|
8708
|
-
}
|
|
8709
|
-
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __);
|
|
8710
|
-
};
|
|
8711
|
-
__assign = Object.assign || function(t2) {
|
|
8712
|
-
for (var s2, i2 = 1, n2 = arguments.length;i2 < n2; i2++) {
|
|
8713
|
-
s2 = arguments[i2];
|
|
8714
|
-
for (var p2 in s2)
|
|
8715
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
8716
|
-
t2[p2] = s2[p2];
|
|
8717
|
-
}
|
|
8718
|
-
return t2;
|
|
8719
|
-
};
|
|
8720
|
-
__rest = function(s2, e2) {
|
|
8721
|
-
var t2 = {};
|
|
8722
|
-
for (var p2 in s2)
|
|
8723
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
|
|
8724
|
-
t2[p2] = s2[p2];
|
|
8725
|
-
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8726
|
-
for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2);i2 < p2.length; i2++) {
|
|
8727
|
-
if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
|
|
8728
|
-
t2[p2[i2]] = s2[p2[i2]];
|
|
8729
|
-
}
|
|
8730
|
-
return t2;
|
|
8731
|
-
};
|
|
8732
|
-
__decorate = function(decorators, target, key, desc) {
|
|
8733
|
-
var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2;
|
|
8734
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
8735
|
-
r2 = Reflect.decorate(decorators, target, key, desc);
|
|
8736
|
-
else
|
|
8737
|
-
for (var i2 = decorators.length - 1;i2 >= 0; i2--)
|
|
8738
|
-
if (d2 = decorators[i2])
|
|
8739
|
-
r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key, r2) : d2(target, key)) || r2;
|
|
8740
|
-
return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
|
|
8741
|
-
};
|
|
8742
|
-
__param = function(paramIndex, decorator) {
|
|
8743
|
-
return function(target, key) {
|
|
8744
|
-
decorator(target, key, paramIndex);
|
|
8745
|
-
};
|
|
8746
|
-
};
|
|
8747
|
-
__esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
8748
|
-
function accept(f2) {
|
|
8749
|
-
if (f2 !== undefined && typeof f2 !== "function")
|
|
8750
|
-
throw new TypeError("Function expected");
|
|
8751
|
-
return f2;
|
|
8752
|
-
}
|
|
8753
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
8754
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
8755
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
8756
|
-
var _2, done = false;
|
|
8757
|
-
for (var i2 = decorators.length - 1;i2 >= 0; i2--) {
|
|
8758
|
-
var context = {};
|
|
8759
|
-
for (var p2 in contextIn)
|
|
8760
|
-
context[p2] = p2 === "access" ? {} : contextIn[p2];
|
|
8761
|
-
for (var p2 in contextIn.access)
|
|
8762
|
-
context.access[p2] = contextIn.access[p2];
|
|
8763
|
-
context.addInitializer = function(f2) {
|
|
8764
|
-
if (done)
|
|
8765
|
-
throw new TypeError("Cannot add initializers after decoration has completed");
|
|
8766
|
-
extraInitializers.push(accept(f2 || null));
|
|
8767
|
-
};
|
|
8768
|
-
var result = (0, decorators[i2])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
8769
|
-
if (kind === "accessor") {
|
|
8770
|
-
if (result === undefined)
|
|
8771
|
-
continue;
|
|
8772
|
-
if (result === null || typeof result !== "object")
|
|
8773
|
-
throw new TypeError("Object expected");
|
|
8774
|
-
if (_2 = accept(result.get))
|
|
8775
|
-
descriptor.get = _2;
|
|
8776
|
-
if (_2 = accept(result.set))
|
|
8777
|
-
descriptor.set = _2;
|
|
8778
|
-
if (_2 = accept(result.init))
|
|
8779
|
-
initializers.unshift(_2);
|
|
8780
|
-
} else if (_2 = accept(result)) {
|
|
8781
|
-
if (kind === "field")
|
|
8782
|
-
initializers.unshift(_2);
|
|
8783
|
-
else
|
|
8784
|
-
descriptor[key] = _2;
|
|
8785
|
-
}
|
|
8786
|
-
}
|
|
8787
|
-
if (target)
|
|
8788
|
-
Object.defineProperty(target, contextIn.name, descriptor);
|
|
8789
|
-
done = true;
|
|
8790
|
-
};
|
|
8791
|
-
__runInitializers = function(thisArg, initializers, value) {
|
|
8792
|
-
var useValue = arguments.length > 2;
|
|
8793
|
-
for (var i2 = 0;i2 < initializers.length; i2++) {
|
|
8794
|
-
value = useValue ? initializers[i2].call(thisArg, value) : initializers[i2].call(thisArg);
|
|
8795
|
-
}
|
|
8796
|
-
return useValue ? value : undefined;
|
|
8797
|
-
};
|
|
8798
|
-
__propKey = function(x2) {
|
|
8799
|
-
return typeof x2 === "symbol" ? x2 : "".concat(x2);
|
|
8800
|
-
};
|
|
8801
|
-
__setFunctionName = function(f2, name, prefix) {
|
|
8802
|
-
if (typeof name === "symbol")
|
|
8803
|
-
name = name.description ? "[".concat(name.description, "]") : "";
|
|
8804
|
-
return Object.defineProperty(f2, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
8805
|
-
};
|
|
8806
|
-
__metadata = function(metadataKey, metadataValue) {
|
|
8807
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
8808
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
8809
|
-
};
|
|
8810
|
-
__awaiter = function(thisArg, _arguments, P, generator) {
|
|
8811
|
-
function adopt(value) {
|
|
8812
|
-
return value instanceof P ? value : new P(function(resolve) {
|
|
8813
|
-
resolve(value);
|
|
8814
|
-
});
|
|
8815
|
-
}
|
|
8816
|
-
return new (P || (P = Promise))(function(resolve, reject) {
|
|
8817
|
-
function fulfilled(value) {
|
|
8818
|
-
try {
|
|
8819
|
-
step(generator.next(value));
|
|
8820
|
-
} catch (e2) {
|
|
8821
|
-
reject(e2);
|
|
8822
|
-
}
|
|
8823
|
-
}
|
|
8824
|
-
function rejected(value) {
|
|
8825
|
-
try {
|
|
8826
|
-
step(generator["throw"](value));
|
|
8827
|
-
} catch (e2) {
|
|
8828
|
-
reject(e2);
|
|
8829
|
-
}
|
|
8830
|
-
}
|
|
8831
|
-
function step(result) {
|
|
8832
|
-
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
8833
|
-
}
|
|
8834
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8835
|
-
});
|
|
8836
|
-
};
|
|
8837
|
-
__generator = function(thisArg, body) {
|
|
8838
|
-
var _2 = { label: 0, sent: function() {
|
|
8839
|
-
if (t2[0] & 1)
|
|
8840
|
-
throw t2[1];
|
|
8841
|
-
return t2[1];
|
|
8842
|
-
}, trys: [], ops: [] }, f2, y2, t2, g2 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
8843
|
-
return g2.next = verb(0), g2["throw"] = verb(1), g2["return"] = verb(2), typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
|
|
8844
|
-
return this;
|
|
8845
|
-
}), g2;
|
|
8846
|
-
function verb(n2) {
|
|
8847
|
-
return function(v2) {
|
|
8848
|
-
return step([n2, v2]);
|
|
8849
|
-
};
|
|
8850
|
-
}
|
|
8851
|
-
function step(op) {
|
|
8852
|
-
if (f2)
|
|
8853
|
-
throw new TypeError("Generator is already executing.");
|
|
8854
|
-
while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
|
|
8855
|
-
try {
|
|
8856
|
-
if (f2 = 1, y2 && (t2 = op[0] & 2 ? y2["return"] : op[0] ? y2["throw"] || ((t2 = y2["return"]) && t2.call(y2), 0) : y2.next) && !(t2 = t2.call(y2, op[1])).done)
|
|
8857
|
-
return t2;
|
|
8858
|
-
if (y2 = 0, t2)
|
|
8859
|
-
op = [op[0] & 2, t2.value];
|
|
8860
|
-
switch (op[0]) {
|
|
8861
|
-
case 0:
|
|
8862
|
-
case 1:
|
|
8863
|
-
t2 = op;
|
|
8864
|
-
break;
|
|
8865
|
-
case 4:
|
|
8866
|
-
_2.label++;
|
|
8867
|
-
return { value: op[1], done: false };
|
|
8868
|
-
case 5:
|
|
8869
|
-
_2.label++;
|
|
8870
|
-
y2 = op[1];
|
|
8871
|
-
op = [0];
|
|
8872
|
-
continue;
|
|
8873
|
-
case 7:
|
|
8874
|
-
op = _2.ops.pop();
|
|
8875
|
-
_2.trys.pop();
|
|
8876
|
-
continue;
|
|
8877
|
-
default:
|
|
8878
|
-
if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
8879
|
-
_2 = 0;
|
|
8880
|
-
continue;
|
|
8881
|
-
}
|
|
8882
|
-
if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
|
|
8883
|
-
_2.label = op[1];
|
|
8884
|
-
break;
|
|
8885
|
-
}
|
|
8886
|
-
if (op[0] === 6 && _2.label < t2[1]) {
|
|
8887
|
-
_2.label = t2[1];
|
|
8888
|
-
t2 = op;
|
|
8889
|
-
break;
|
|
8890
|
-
}
|
|
8891
|
-
if (t2 && _2.label < t2[2]) {
|
|
8892
|
-
_2.label = t2[2];
|
|
8893
|
-
_2.ops.push(op);
|
|
8894
|
-
break;
|
|
8895
|
-
}
|
|
8896
|
-
if (t2[2])
|
|
8897
|
-
_2.ops.pop();
|
|
8898
|
-
_2.trys.pop();
|
|
8899
|
-
continue;
|
|
8900
|
-
}
|
|
8901
|
-
op = body.call(thisArg, _2);
|
|
8902
|
-
} catch (e2) {
|
|
8903
|
-
op = [6, e2];
|
|
8904
|
-
y2 = 0;
|
|
8905
|
-
} finally {
|
|
8906
|
-
f2 = t2 = 0;
|
|
8907
|
-
}
|
|
8908
|
-
if (op[0] & 5)
|
|
8909
|
-
throw op[1];
|
|
8910
|
-
return { value: op[0] ? op[1] : undefined, done: true };
|
|
8911
|
-
}
|
|
8912
|
-
};
|
|
8913
|
-
__exportStar = function(m2, o2) {
|
|
8914
|
-
for (var p2 in m2)
|
|
8915
|
-
if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(o2, p2))
|
|
8916
|
-
__createBinding(o2, m2, p2);
|
|
8917
|
-
};
|
|
8918
|
-
__createBinding = Object.create ? function(o2, m2, k, k2) {
|
|
8919
|
-
if (k2 === undefined)
|
|
8920
|
-
k2 = k;
|
|
8921
|
-
var desc = Object.getOwnPropertyDescriptor(m2, k);
|
|
8922
|
-
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
8923
|
-
desc = { enumerable: true, get: function() {
|
|
8924
|
-
return m2[k];
|
|
8925
|
-
} };
|
|
8926
|
-
}
|
|
8927
|
-
Object.defineProperty(o2, k2, desc);
|
|
8928
|
-
} : function(o2, m2, k, k2) {
|
|
8929
|
-
if (k2 === undefined)
|
|
8930
|
-
k2 = k;
|
|
8931
|
-
o2[k2] = m2[k];
|
|
8932
|
-
};
|
|
8933
|
-
__values = function(o2) {
|
|
8934
|
-
var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
|
|
8935
|
-
if (m2)
|
|
8936
|
-
return m2.call(o2);
|
|
8937
|
-
if (o2 && typeof o2.length === "number")
|
|
7049
|
+
"NA",
|
|
7050
|
+
"NE",
|
|
7051
|
+
"NG",
|
|
7052
|
+
"NI",
|
|
7053
|
+
"NL",
|
|
7054
|
+
"NO",
|
|
7055
|
+
"NP",
|
|
7056
|
+
"NR",
|
|
7057
|
+
"NZ",
|
|
7058
|
+
"OM",
|
|
7059
|
+
"PA",
|
|
7060
|
+
"PE",
|
|
7061
|
+
"PG",
|
|
7062
|
+
"PH",
|
|
7063
|
+
"PK",
|
|
7064
|
+
"PL",
|
|
7065
|
+
"PT",
|
|
7066
|
+
"PW",
|
|
7067
|
+
"PY",
|
|
7068
|
+
"QA",
|
|
7069
|
+
"RO",
|
|
7070
|
+
"RS",
|
|
7071
|
+
"RU",
|
|
7072
|
+
"RW",
|
|
7073
|
+
"SA",
|
|
7074
|
+
"SB",
|
|
7075
|
+
"SC",
|
|
7076
|
+
"SD",
|
|
7077
|
+
"SE",
|
|
7078
|
+
"SG",
|
|
7079
|
+
"SI",
|
|
7080
|
+
"SK",
|
|
7081
|
+
"SL",
|
|
7082
|
+
"SM",
|
|
7083
|
+
"SN",
|
|
7084
|
+
"SO",
|
|
7085
|
+
"SR",
|
|
7086
|
+
"SS",
|
|
7087
|
+
"ST",
|
|
7088
|
+
"SV",
|
|
7089
|
+
"SY",
|
|
7090
|
+
"SZ",
|
|
7091
|
+
"TD",
|
|
7092
|
+
"TG",
|
|
7093
|
+
"TH",
|
|
7094
|
+
"TJ",
|
|
7095
|
+
"TL",
|
|
7096
|
+
"TM",
|
|
7097
|
+
"TN",
|
|
7098
|
+
"TO",
|
|
7099
|
+
"TR",
|
|
7100
|
+
"TT",
|
|
7101
|
+
"TV",
|
|
7102
|
+
"TZ",
|
|
7103
|
+
"UA",
|
|
7104
|
+
"UG",
|
|
7105
|
+
"UN",
|
|
7106
|
+
"US",
|
|
7107
|
+
"UY",
|
|
7108
|
+
"UZ",
|
|
7109
|
+
"VC",
|
|
7110
|
+
"VE",
|
|
7111
|
+
"VN",
|
|
7112
|
+
"VU",
|
|
7113
|
+
"WS",
|
|
7114
|
+
"YE",
|
|
7115
|
+
"ZA",
|
|
7116
|
+
"ZM",
|
|
7117
|
+
"ZW"
|
|
7118
|
+
]
|
|
7119
|
+
};
|
|
7120
|
+
});
|
|
7121
|
+
|
|
7122
|
+
// node_modules/@formatjs/intl-localematcher/abstract/utils.js
|
|
7123
|
+
var require_utils2 = __commonJS((exports) => {
|
|
7124
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7125
|
+
exports.findBestMatch = exports.findMatchingDistance = exports.invariant = exports.UNICODE_EXTENSION_SEQUENCE_REGEX = undefined;
|
|
7126
|
+
var tslib_1 = require_tslib();
|
|
7127
|
+
var languageMatching_1 = require_languageMatching();
|
|
7128
|
+
var regions_generated_1 = require_regions_generated();
|
|
7129
|
+
exports.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
|
|
7130
|
+
function invariant(condition, message, Err) {
|
|
7131
|
+
if (Err === undefined) {
|
|
7132
|
+
Err = Error;
|
|
7133
|
+
}
|
|
7134
|
+
if (!condition) {
|
|
7135
|
+
throw new Err(message);
|
|
7136
|
+
}
|
|
7137
|
+
}
|
|
7138
|
+
exports.invariant = invariant;
|
|
7139
|
+
var DEFAULT_MATCHING_THRESHOLD = 838;
|
|
7140
|
+
var PROCESSED_DATA;
|
|
7141
|
+
function processData() {
|
|
7142
|
+
var _a, _b;
|
|
7143
|
+
if (!PROCESSED_DATA) {
|
|
7144
|
+
var paradigmLocales = (_b = (_a = languageMatching_1.data.supplemental.languageMatching["written-new"][0]) === null || _a === undefined ? undefined : _a.paradigmLocales) === null || _b === undefined ? undefined : _b._locales.split(" ");
|
|
7145
|
+
var matchVariables = languageMatching_1.data.supplemental.languageMatching["written-new"].slice(1, 5);
|
|
7146
|
+
var data = languageMatching_1.data.supplemental.languageMatching["written-new"].slice(5);
|
|
7147
|
+
var matches = data.map(function(d2) {
|
|
7148
|
+
var key = Object.keys(d2)[0];
|
|
7149
|
+
var value = d2[key];
|
|
8938
7150
|
return {
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
}
|
|
7151
|
+
supported: key,
|
|
7152
|
+
desired: value._desired,
|
|
7153
|
+
distance: +value._distance,
|
|
7154
|
+
oneway: value.oneway === "true" ? true : false
|
|
8944
7155
|
};
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
}
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
7156
|
+
}, {});
|
|
7157
|
+
PROCESSED_DATA = {
|
|
7158
|
+
matches,
|
|
7159
|
+
matchVariables: matchVariables.reduce(function(all, d2) {
|
|
7160
|
+
var key = Object.keys(d2)[0];
|
|
7161
|
+
var value = d2[key];
|
|
7162
|
+
all[key.slice(1)] = value._value.split("+");
|
|
7163
|
+
return all;
|
|
7164
|
+
}, {}),
|
|
7165
|
+
paradigmLocales: tslib_1.__spreadArray(tslib_1.__spreadArray([], paradigmLocales, true), paradigmLocales.map(function(l2) {
|
|
7166
|
+
return new Intl.Locale(l2.replace(/_/g, "-")).maximize().toString();
|
|
7167
|
+
}), true)
|
|
7168
|
+
};
|
|
7169
|
+
}
|
|
7170
|
+
return PROCESSED_DATA;
|
|
7171
|
+
}
|
|
7172
|
+
function isMatched(locale, languageMatchInfoLocale, matchVariables) {
|
|
7173
|
+
var _a = languageMatchInfoLocale.split("-"), language = _a[0], script = _a[1], region = _a[2];
|
|
7174
|
+
var matches = true;
|
|
7175
|
+
if (region && region[0] === "$") {
|
|
7176
|
+
var shouldInclude = region[1] !== "!";
|
|
7177
|
+
var matchRegions = shouldInclude ? matchVariables[region.slice(1)] : matchVariables[region.slice(2)];
|
|
7178
|
+
var expandedMatchedRegions = matchRegions.map(function(r2) {
|
|
7179
|
+
return regions_generated_1.regions[r2] || [r2];
|
|
7180
|
+
}).reduce(function(all, list) {
|
|
7181
|
+
return tslib_1.__spreadArray(tslib_1.__spreadArray([], all, true), list, true);
|
|
7182
|
+
}, []);
|
|
7183
|
+
matches && (matches = !(expandedMatchedRegions.indexOf(locale.region || "") > 1 != shouldInclude));
|
|
7184
|
+
} else {
|
|
7185
|
+
matches && (matches = locale.region ? region === "*" || region === locale.region : true);
|
|
7186
|
+
}
|
|
7187
|
+
matches && (matches = locale.script ? script === "*" || script === locale.script : true);
|
|
7188
|
+
matches && (matches = locale.language ? language === "*" || language === locale.language : true);
|
|
7189
|
+
return matches;
|
|
7190
|
+
}
|
|
7191
|
+
function serializeLSR(lsr) {
|
|
7192
|
+
return [lsr.language, lsr.script, lsr.region].filter(Boolean).join("-");
|
|
7193
|
+
}
|
|
7194
|
+
function findMatchingDistanceForLSR(desired, supported, data) {
|
|
7195
|
+
for (var _i = 0, _a = data.matches;_i < _a.length; _i++) {
|
|
7196
|
+
var d2 = _a[_i];
|
|
7197
|
+
var matches = isMatched(desired, d2.desired, data.matchVariables) && isMatched(supported, d2.supported, data.matchVariables);
|
|
7198
|
+
if (!d2.oneway && !matches) {
|
|
7199
|
+
matches = isMatched(desired, d2.supported, data.matchVariables) && isMatched(supported, d2.desired, data.matchVariables);
|
|
7200
|
+
}
|
|
7201
|
+
if (matches) {
|
|
7202
|
+
var distance = d2.distance * 10;
|
|
7203
|
+
if (data.paradigmLocales.indexOf(serializeLSR(desired)) > -1 != data.paradigmLocales.indexOf(serializeLSR(supported)) > -1) {
|
|
7204
|
+
return distance - 1;
|
|
8964
7205
|
}
|
|
7206
|
+
return distance;
|
|
8965
7207
|
}
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
for (var r2 = Array(s2), k = 0, i2 = 0;i2 < il; i2++)
|
|
8977
|
-
for (var a2 = arguments[i2], j = 0, jl = a2.length;j < jl; j++, k++)
|
|
8978
|
-
r2[k] = a2[j];
|
|
8979
|
-
return r2;
|
|
7208
|
+
}
|
|
7209
|
+
throw new Error("No matching distance found");
|
|
7210
|
+
}
|
|
7211
|
+
function findMatchingDistance(desired, supported) {
|
|
7212
|
+
var desiredLocale = new Intl.Locale(desired).maximize();
|
|
7213
|
+
var supportedLocale = new Intl.Locale(supported).maximize();
|
|
7214
|
+
var desiredLSR = {
|
|
7215
|
+
language: desiredLocale.language,
|
|
7216
|
+
script: desiredLocale.script || "",
|
|
7217
|
+
region: desiredLocale.region || ""
|
|
8980
7218
|
};
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
if (!ar)
|
|
8986
|
-
ar = Array.prototype.slice.call(from, 0, i2);
|
|
8987
|
-
ar[i2] = from[i2];
|
|
8988
|
-
}
|
|
8989
|
-
}
|
|
8990
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
7219
|
+
var supportedLSR = {
|
|
7220
|
+
language: supportedLocale.language,
|
|
7221
|
+
script: supportedLocale.script || "",
|
|
7222
|
+
region: supportedLocale.region || ""
|
|
8991
7223
|
};
|
|
8992
|
-
|
|
8993
|
-
|
|
7224
|
+
var matchingDistance = 0;
|
|
7225
|
+
var data = processData();
|
|
7226
|
+
if (desiredLSR.language !== supportedLSR.language) {
|
|
7227
|
+
matchingDistance += findMatchingDistanceForLSR({
|
|
7228
|
+
language: desiredLocale.language,
|
|
7229
|
+
script: "",
|
|
7230
|
+
region: ""
|
|
7231
|
+
}, {
|
|
7232
|
+
language: supportedLocale.language,
|
|
7233
|
+
script: "",
|
|
7234
|
+
region: ""
|
|
7235
|
+
}, data);
|
|
7236
|
+
}
|
|
7237
|
+
if (desiredLSR.script !== supportedLSR.script) {
|
|
7238
|
+
matchingDistance += findMatchingDistanceForLSR({
|
|
7239
|
+
language: desiredLocale.language,
|
|
7240
|
+
script: desiredLSR.script,
|
|
7241
|
+
region: ""
|
|
7242
|
+
}, {
|
|
7243
|
+
language: supportedLocale.language,
|
|
7244
|
+
script: desiredLSR.script,
|
|
7245
|
+
region: ""
|
|
7246
|
+
}, data);
|
|
7247
|
+
}
|
|
7248
|
+
if (desiredLSR.region !== supportedLSR.region) {
|
|
7249
|
+
matchingDistance += findMatchingDistanceForLSR(desiredLSR, supportedLSR, data);
|
|
7250
|
+
}
|
|
7251
|
+
return matchingDistance;
|
|
7252
|
+
}
|
|
7253
|
+
exports.findMatchingDistance = findMatchingDistance;
|
|
7254
|
+
function findBestMatch(requestedLocales, supportedLocales, threshold) {
|
|
7255
|
+
if (threshold === undefined) {
|
|
7256
|
+
threshold = DEFAULT_MATCHING_THRESHOLD;
|
|
7257
|
+
}
|
|
7258
|
+
var lowestDistance = Infinity;
|
|
7259
|
+
var result = {
|
|
7260
|
+
matchedDesiredLocale: "",
|
|
7261
|
+
distances: {}
|
|
8994
7262
|
};
|
|
8995
|
-
|
|
8996
|
-
if (!
|
|
8997
|
-
|
|
8998
|
-
var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
|
|
8999
|
-
return i2 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
|
|
9000
|
-
return this;
|
|
9001
|
-
}, i2;
|
|
9002
|
-
function awaitReturn(f2) {
|
|
9003
|
-
return function(v2) {
|
|
9004
|
-
return Promise.resolve(v2).then(f2, reject);
|
|
9005
|
-
};
|
|
9006
|
-
}
|
|
9007
|
-
function verb(n2, f2) {
|
|
9008
|
-
if (g2[n2]) {
|
|
9009
|
-
i2[n2] = function(v2) {
|
|
9010
|
-
return new Promise(function(a2, b2) {
|
|
9011
|
-
q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
|
|
9012
|
-
});
|
|
9013
|
-
};
|
|
9014
|
-
if (f2)
|
|
9015
|
-
i2[n2] = f2(i2[n2]);
|
|
9016
|
-
}
|
|
7263
|
+
requestedLocales.forEach(function(desired, i2) {
|
|
7264
|
+
if (!result.distances[desired]) {
|
|
7265
|
+
result.distances[desired] = {};
|
|
9017
7266
|
}
|
|
9018
|
-
function
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
7267
|
+
supportedLocales.forEach(function(supported) {
|
|
7268
|
+
var distance = findMatchingDistance(desired, supported) + 0 + i2 * 40;
|
|
7269
|
+
result.distances[desired][supported] = distance;
|
|
7270
|
+
if (distance < lowestDistance) {
|
|
7271
|
+
lowestDistance = distance;
|
|
7272
|
+
result.matchedDesiredLocale = desired;
|
|
7273
|
+
result.matchedSupportedLocale = supported;
|
|
9023
7274
|
}
|
|
7275
|
+
});
|
|
7276
|
+
});
|
|
7277
|
+
if (lowestDistance >= threshold) {
|
|
7278
|
+
result.matchedDesiredLocale = undefined;
|
|
7279
|
+
result.matchedSupportedLocale = undefined;
|
|
7280
|
+
}
|
|
7281
|
+
return result;
|
|
7282
|
+
}
|
|
7283
|
+
exports.findBestMatch = findBestMatch;
|
|
7284
|
+
});
|
|
7285
|
+
|
|
7286
|
+
// node_modules/@formatjs/intl-localematcher/abstract/BestFitMatcher.js
|
|
7287
|
+
var require_BestFitMatcher = __commonJS((exports) => {
|
|
7288
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7289
|
+
exports.BestFitMatcher = undefined;
|
|
7290
|
+
var utils_1 = require_utils2();
|
|
7291
|
+
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
7292
|
+
var foundLocale;
|
|
7293
|
+
var extension;
|
|
7294
|
+
var noExtensionLocales = [];
|
|
7295
|
+
var noExtensionLocaleMap = requestedLocales.reduce(function(all, l2) {
|
|
7296
|
+
var noExtensionLocale = l2.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
7297
|
+
noExtensionLocales.push(noExtensionLocale);
|
|
7298
|
+
all[noExtensionLocale] = l2;
|
|
7299
|
+
return all;
|
|
7300
|
+
}, {});
|
|
7301
|
+
var result = (0, utils_1.findBestMatch)(noExtensionLocales, availableLocales);
|
|
7302
|
+
if (result.matchedSupportedLocale && result.matchedDesiredLocale) {
|
|
7303
|
+
foundLocale = result.matchedSupportedLocale;
|
|
7304
|
+
extension = noExtensionLocaleMap[result.matchedDesiredLocale].slice(result.matchedDesiredLocale.length) || undefined;
|
|
7305
|
+
}
|
|
7306
|
+
if (!foundLocale) {
|
|
7307
|
+
return { locale: getDefaultLocale() };
|
|
7308
|
+
}
|
|
7309
|
+
return {
|
|
7310
|
+
locale: foundLocale,
|
|
7311
|
+
extension
|
|
7312
|
+
};
|
|
7313
|
+
}
|
|
7314
|
+
exports.BestFitMatcher = BestFitMatcher;
|
|
7315
|
+
});
|
|
7316
|
+
|
|
7317
|
+
// node_modules/@formatjs/intl-localematcher/abstract/BestAvailableLocale.js
|
|
7318
|
+
var require_BestAvailableLocale = __commonJS((exports) => {
|
|
7319
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7320
|
+
exports.BestAvailableLocale = undefined;
|
|
7321
|
+
function BestAvailableLocale(availableLocales, locale) {
|
|
7322
|
+
var candidate = locale;
|
|
7323
|
+
while (true) {
|
|
7324
|
+
if (availableLocales.indexOf(candidate) > -1) {
|
|
7325
|
+
return candidate;
|
|
9024
7326
|
}
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
function fulfill(value) {
|
|
9029
|
-
resume("next", value);
|
|
7327
|
+
var pos = candidate.lastIndexOf("-");
|
|
7328
|
+
if (!~pos) {
|
|
7329
|
+
return;
|
|
9030
7330
|
}
|
|
9031
|
-
|
|
9032
|
-
|
|
7331
|
+
if (pos >= 2 && candidate[pos - 2] === "-") {
|
|
7332
|
+
pos -= 2;
|
|
9033
7333
|
}
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
7334
|
+
candidate = candidate.slice(0, pos);
|
|
7335
|
+
}
|
|
7336
|
+
}
|
|
7337
|
+
exports.BestAvailableLocale = BestAvailableLocale;
|
|
7338
|
+
});
|
|
7339
|
+
|
|
7340
|
+
// node_modules/@formatjs/intl-localematcher/abstract/LookupMatcher.js
|
|
7341
|
+
var require_LookupMatcher = __commonJS((exports) => {
|
|
7342
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7343
|
+
exports.LookupMatcher = undefined;
|
|
7344
|
+
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
7345
|
+
var utils_1 = require_utils2();
|
|
7346
|
+
function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
7347
|
+
var result = { locale: "" };
|
|
7348
|
+
for (var _i = 0, requestedLocales_1 = requestedLocales;_i < requestedLocales_1.length; _i++) {
|
|
7349
|
+
var locale = requestedLocales_1[_i];
|
|
7350
|
+
var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
7351
|
+
var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
|
|
7352
|
+
if (availableLocale) {
|
|
7353
|
+
result.locale = availableLocale;
|
|
7354
|
+
if (locale !== noExtensionLocale) {
|
|
7355
|
+
result.extension = locale.slice(noExtensionLocale.length, locale.length);
|
|
7356
|
+
}
|
|
7357
|
+
return result;
|
|
9037
7358
|
}
|
|
9038
|
-
}
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
7359
|
+
}
|
|
7360
|
+
result.locale = getDefaultLocale();
|
|
7361
|
+
return result;
|
|
7362
|
+
}
|
|
7363
|
+
exports.LookupMatcher = LookupMatcher;
|
|
7364
|
+
});
|
|
7365
|
+
|
|
7366
|
+
// node_modules/@formatjs/intl-localematcher/abstract/UnicodeExtensionValue.js
|
|
7367
|
+
var require_UnicodeExtensionValue = __commonJS((exports) => {
|
|
7368
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7369
|
+
exports.UnicodeExtensionValue = undefined;
|
|
7370
|
+
var utils_1 = require_utils2();
|
|
7371
|
+
function UnicodeExtensionValue(extension, key) {
|
|
7372
|
+
(0, utils_1.invariant)(key.length === 2, "key must have 2 elements");
|
|
7373
|
+
var size = extension.length;
|
|
7374
|
+
var searchValue = "-".concat(key, "-");
|
|
7375
|
+
var pos = extension.indexOf(searchValue);
|
|
7376
|
+
if (pos !== -1) {
|
|
7377
|
+
var start = pos + 4;
|
|
7378
|
+
var end = start;
|
|
7379
|
+
var k = start;
|
|
7380
|
+
var done = false;
|
|
7381
|
+
while (!done) {
|
|
7382
|
+
var e2 = extension.indexOf("-", k);
|
|
7383
|
+
var len = undefined;
|
|
7384
|
+
if (e2 === -1) {
|
|
7385
|
+
len = size - k;
|
|
7386
|
+
} else {
|
|
7387
|
+
len = e2 - k;
|
|
7388
|
+
}
|
|
7389
|
+
if (len === 2) {
|
|
7390
|
+
done = true;
|
|
7391
|
+
} else if (e2 === -1) {
|
|
7392
|
+
end = size;
|
|
7393
|
+
done = true;
|
|
7394
|
+
} else {
|
|
7395
|
+
end = e2;
|
|
7396
|
+
k = e2 + 1;
|
|
7397
|
+
}
|
|
9050
7398
|
}
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
return
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
7399
|
+
return extension.slice(start, end);
|
|
7400
|
+
}
|
|
7401
|
+
searchValue = "-".concat(key);
|
|
7402
|
+
pos = extension.indexOf(searchValue);
|
|
7403
|
+
if (pos !== -1 && pos + 3 === size) {
|
|
7404
|
+
return "";
|
|
7405
|
+
}
|
|
7406
|
+
return;
|
|
7407
|
+
}
|
|
7408
|
+
exports.UnicodeExtensionValue = UnicodeExtensionValue;
|
|
7409
|
+
});
|
|
7410
|
+
|
|
7411
|
+
// node_modules/@formatjs/intl-localematcher/abstract/ResolveLocale.js
|
|
7412
|
+
var require_ResolveLocale = __commonJS((exports) => {
|
|
7413
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7414
|
+
exports.ResolveLocale = undefined;
|
|
7415
|
+
var BestFitMatcher_1 = require_BestFitMatcher();
|
|
7416
|
+
var LookupMatcher_1 = require_LookupMatcher();
|
|
7417
|
+
var UnicodeExtensionValue_1 = require_UnicodeExtensionValue();
|
|
7418
|
+
var utils_1 = require_utils2();
|
|
7419
|
+
function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
|
|
7420
|
+
var matcher = options.localeMatcher;
|
|
7421
|
+
var r2;
|
|
7422
|
+
if (matcher === "lookup") {
|
|
7423
|
+
r2 = (0, LookupMatcher_1.LookupMatcher)(Array.from(availableLocales), requestedLocales, getDefaultLocale);
|
|
7424
|
+
} else {
|
|
7425
|
+
r2 = (0, BestFitMatcher_1.BestFitMatcher)(Array.from(availableLocales), requestedLocales, getDefaultLocale);
|
|
7426
|
+
}
|
|
7427
|
+
var foundLocale = r2.locale;
|
|
7428
|
+
var result = { locale: "", dataLocale: foundLocale };
|
|
7429
|
+
var supportedExtension = "-u";
|
|
7430
|
+
for (var _i = 0, relevantExtensionKeys_1 = relevantExtensionKeys;_i < relevantExtensionKeys_1.length; _i++) {
|
|
7431
|
+
var key = relevantExtensionKeys_1[_i];
|
|
7432
|
+
(0, utils_1.invariant)(foundLocale in localeData, "Missing locale data for ".concat(foundLocale));
|
|
7433
|
+
var foundLocaleData = localeData[foundLocale];
|
|
7434
|
+
(0, utils_1.invariant)(typeof foundLocaleData === "object" && foundLocaleData !== null, "locale data ".concat(key, " must be an object"));
|
|
7435
|
+
var keyLocaleData = foundLocaleData[key];
|
|
7436
|
+
(0, utils_1.invariant)(Array.isArray(keyLocaleData), "keyLocaleData for ".concat(key, " must be an array"));
|
|
7437
|
+
var value = keyLocaleData[0];
|
|
7438
|
+
(0, utils_1.invariant)(typeof value === "string" || value === null, "value must be string or null but got ".concat(typeof value, " in key ").concat(key));
|
|
7439
|
+
var supportedExtensionAddition = "";
|
|
7440
|
+
if (r2.extension) {
|
|
7441
|
+
var requestedValue = (0, UnicodeExtensionValue_1.UnicodeExtensionValue)(r2.extension, key);
|
|
7442
|
+
if (requestedValue !== undefined) {
|
|
7443
|
+
if (requestedValue !== "") {
|
|
7444
|
+
if (~keyLocaleData.indexOf(requestedValue)) {
|
|
7445
|
+
value = requestedValue;
|
|
7446
|
+
supportedExtensionAddition = "-".concat(key, "-").concat(value);
|
|
7447
|
+
}
|
|
7448
|
+
} else if (~requestedValue.indexOf("true")) {
|
|
7449
|
+
value = "true";
|
|
7450
|
+
supportedExtensionAddition = "-".concat(key);
|
|
7451
|
+
}
|
|
7452
|
+
}
|
|
9065
7453
|
}
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
7454
|
+
if (key in options) {
|
|
7455
|
+
var optionsValue = options[key];
|
|
7456
|
+
(0, utils_1.invariant)(typeof optionsValue === "string" || typeof optionsValue === "undefined" || optionsValue === null, "optionsValue must be String, Undefined or Null");
|
|
7457
|
+
if (~keyLocaleData.indexOf(optionsValue)) {
|
|
7458
|
+
if (optionsValue !== value) {
|
|
7459
|
+
value = optionsValue;
|
|
7460
|
+
supportedExtensionAddition = "";
|
|
7461
|
+
}
|
|
7462
|
+
}
|
|
9070
7463
|
}
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
7464
|
+
result[key] = value;
|
|
7465
|
+
supportedExtension += supportedExtensionAddition;
|
|
7466
|
+
}
|
|
7467
|
+
if (supportedExtension.length > 2) {
|
|
7468
|
+
var privateIndex = foundLocale.indexOf("-x-");
|
|
7469
|
+
if (privateIndex === -1) {
|
|
7470
|
+
foundLocale = foundLocale + supportedExtension;
|
|
9075
7471
|
} else {
|
|
9076
|
-
|
|
7472
|
+
var preExtension = foundLocale.slice(0, privateIndex);
|
|
7473
|
+
var postExtension = foundLocale.slice(privateIndex, foundLocale.length);
|
|
7474
|
+
foundLocale = preExtension + supportedExtension + postExtension;
|
|
9077
7475
|
}
|
|
9078
|
-
|
|
9079
|
-
}
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
for (var k = ownKeys(mod), i2 = 0;i2 < k.length; i2++)
|
|
9101
|
-
if (k[i2] !== "default")
|
|
9102
|
-
__createBinding(result, mod, k[i2]);
|
|
7476
|
+
foundLocale = Intl.getCanonicalLocales(foundLocale)[0];
|
|
7477
|
+
}
|
|
7478
|
+
result.locale = foundLocale;
|
|
7479
|
+
return result;
|
|
7480
|
+
}
|
|
7481
|
+
exports.ResolveLocale = ResolveLocale;
|
|
7482
|
+
});
|
|
7483
|
+
|
|
7484
|
+
// node_modules/@formatjs/intl-localematcher/abstract/LookupSupportedLocales.js
|
|
7485
|
+
var require_LookupSupportedLocales = __commonJS((exports) => {
|
|
7486
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7487
|
+
exports.LookupSupportedLocales = undefined;
|
|
7488
|
+
var BestAvailableLocale_1 = require_BestAvailableLocale();
|
|
7489
|
+
var utils_1 = require_utils2();
|
|
7490
|
+
function LookupSupportedLocales(availableLocales, requestedLocales) {
|
|
7491
|
+
var subset = [];
|
|
7492
|
+
for (var _i = 0, requestedLocales_1 = requestedLocales;_i < requestedLocales_1.length; _i++) {
|
|
7493
|
+
var locale = requestedLocales_1[_i];
|
|
7494
|
+
var noExtensionLocale = locale.replace(utils_1.UNICODE_EXTENSION_SEQUENCE_REGEX, "");
|
|
7495
|
+
var availableLocale = (0, BestAvailableLocale_1.BestAvailableLocale)(availableLocales, noExtensionLocale);
|
|
7496
|
+
if (availableLocale) {
|
|
7497
|
+
subset.push(availableLocale);
|
|
9103
7498
|
}
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
};
|
|
9158
|
-
env.stack.push({ value, dispose, async });
|
|
9159
|
-
} else if (async) {
|
|
9160
|
-
env.stack.push({ async: true });
|
|
7499
|
+
}
|
|
7500
|
+
return subset;
|
|
7501
|
+
}
|
|
7502
|
+
exports.LookupSupportedLocales = LookupSupportedLocales;
|
|
7503
|
+
});
|
|
7504
|
+
|
|
7505
|
+
// node_modules/@formatjs/intl-localematcher/index.js
|
|
7506
|
+
var require_intl_localematcher = __commonJS((exports) => {
|
|
7507
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7508
|
+
exports.ResolveLocale = exports.LookupSupportedLocales = exports.match = undefined;
|
|
7509
|
+
var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList2();
|
|
7510
|
+
var ResolveLocale_1 = require_ResolveLocale();
|
|
7511
|
+
function match(requestedLocales, availableLocales, defaultLocale, opts) {
|
|
7512
|
+
return (0, ResolveLocale_1.ResolveLocale)(availableLocales, (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(requestedLocales), {
|
|
7513
|
+
localeMatcher: (opts === null || opts === undefined ? undefined : opts.algorithm) || "best fit"
|
|
7514
|
+
}, [], {}, function() {
|
|
7515
|
+
return defaultLocale;
|
|
7516
|
+
}).locale;
|
|
7517
|
+
}
|
|
7518
|
+
exports.match = match;
|
|
7519
|
+
var LookupSupportedLocales_1 = require_LookupSupportedLocales();
|
|
7520
|
+
Object.defineProperty(exports, "LookupSupportedLocales", { enumerable: true, get: function() {
|
|
7521
|
+
return LookupSupportedLocales_1.LookupSupportedLocales;
|
|
7522
|
+
} });
|
|
7523
|
+
var ResolveLocale_2 = require_ResolveLocale();
|
|
7524
|
+
Object.defineProperty(exports, "ResolveLocale", { enumerable: true, get: function() {
|
|
7525
|
+
return ResolveLocale_2.ResolveLocale;
|
|
7526
|
+
} });
|
|
7527
|
+
});
|
|
7528
|
+
|
|
7529
|
+
// node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatDigitOptions.js
|
|
7530
|
+
var require_SetNumberFormatDigitOptions = __commonJS((exports) => {
|
|
7531
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7532
|
+
exports.SetNumberFormatDigitOptions = undefined;
|
|
7533
|
+
var DefaultNumberOption_1 = require_DefaultNumberOption();
|
|
7534
|
+
var GetNumberOption_1 = require_GetNumberOption();
|
|
7535
|
+
var GetOption_1 = require_GetOption();
|
|
7536
|
+
function SetNumberFormatDigitOptions(internalSlots, opts, mnfdDefault, mxfdDefault, notation) {
|
|
7537
|
+
var mnid = (0, GetNumberOption_1.GetNumberOption)(opts, "minimumIntegerDigits", 1, 21, 1);
|
|
7538
|
+
var mnfd = opts.minimumFractionDigits;
|
|
7539
|
+
var mxfd = opts.maximumFractionDigits;
|
|
7540
|
+
var mnsd = opts.minimumSignificantDigits;
|
|
7541
|
+
var mxsd = opts.maximumSignificantDigits;
|
|
7542
|
+
internalSlots.minimumIntegerDigits = mnid;
|
|
7543
|
+
var roundingPriority = (0, GetOption_1.GetOption)(opts, "roundingPriority", "string", ["auto", "morePrecision", "lessPrecision"], "auto");
|
|
7544
|
+
var hasSd = mnsd !== undefined || mxsd !== undefined;
|
|
7545
|
+
var hasFd = mnfd !== undefined || mxfd !== undefined;
|
|
7546
|
+
var needSd = true;
|
|
7547
|
+
var needFd = true;
|
|
7548
|
+
if (roundingPriority === "auto") {
|
|
7549
|
+
needSd = hasSd;
|
|
7550
|
+
if (hasSd || !hasFd && notation === "compact") {
|
|
7551
|
+
needFd = false;
|
|
9161
7552
|
}
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
7553
|
+
}
|
|
7554
|
+
if (needSd) {
|
|
7555
|
+
if (hasSd) {
|
|
7556
|
+
mnsd = (0, DefaultNumberOption_1.DefaultNumberOption)(mnsd, 1, 21, 1);
|
|
7557
|
+
mxsd = (0, DefaultNumberOption_1.DefaultNumberOption)(mxsd, mnsd, 21, 21);
|
|
7558
|
+
internalSlots.minimumSignificantDigits = mnsd;
|
|
7559
|
+
internalSlots.maximumSignificantDigits = mxsd;
|
|
7560
|
+
} else {
|
|
7561
|
+
internalSlots.minimumSignificantDigits = 1;
|
|
7562
|
+
internalSlots.maximumSignificantDigits = 21;
|
|
9172
7563
|
}
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9182
|
-
|
|
9183
|
-
|
|
9184
|
-
return next();
|
|
9185
|
-
});
|
|
9186
|
-
} else
|
|
9187
|
-
s2 |= 1;
|
|
9188
|
-
} catch (e2) {
|
|
9189
|
-
fail(e2);
|
|
9190
|
-
}
|
|
7564
|
+
}
|
|
7565
|
+
if (needFd) {
|
|
7566
|
+
if (hasFd) {
|
|
7567
|
+
mnfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mnfd, 0, 20, undefined);
|
|
7568
|
+
mxfd = (0, DefaultNumberOption_1.DefaultNumberOption)(mxfd, 0, 20, undefined);
|
|
7569
|
+
if (mnfd === undefined) {
|
|
7570
|
+
mnfd = Math.min(mnfdDefault, mxfd);
|
|
7571
|
+
} else if (mxfd === undefined) {
|
|
7572
|
+
mxfd = Math.max(mxfdDefault, mnfd);
|
|
7573
|
+
} else if (mnfd > mxfd) {
|
|
7574
|
+
throw new RangeError("Invalid range, ".concat(mnfd, " > ").concat(mxfd));
|
|
9191
7575
|
}
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
7576
|
+
internalSlots.minimumFractionDigits = mnfd;
|
|
7577
|
+
internalSlots.maximumFractionDigits = mxfd;
|
|
7578
|
+
} else {
|
|
7579
|
+
internalSlots.minimumFractionDigits = mnfdDefault;
|
|
7580
|
+
internalSlots.maximumFractionDigits = mxfdDefault;
|
|
7581
|
+
}
|
|
7582
|
+
}
|
|
7583
|
+
if (needSd || needFd) {
|
|
7584
|
+
if (roundingPriority === "morePrecision") {
|
|
7585
|
+
internalSlots.roundingType = "morePrecision";
|
|
7586
|
+
} else if (roundingPriority === "lessPrecision") {
|
|
7587
|
+
internalSlots.roundingType = "lessPrecision";
|
|
7588
|
+
} else if (hasSd) {
|
|
7589
|
+
internalSlots.roundingType = "significantDigits";
|
|
7590
|
+
} else {
|
|
7591
|
+
internalSlots.roundingType = "fractionDigits";
|
|
7592
|
+
}
|
|
7593
|
+
} else {
|
|
7594
|
+
internalSlots.roundingType = "morePrecision";
|
|
7595
|
+
internalSlots.minimumFractionDigits = 0;
|
|
7596
|
+
internalSlots.maximumFractionDigits = 0;
|
|
7597
|
+
internalSlots.minimumSignificantDigits = 1;
|
|
7598
|
+
internalSlots.maximumSignificantDigits = 2;
|
|
7599
|
+
}
|
|
7600
|
+
}
|
|
7601
|
+
exports.SetNumberFormatDigitOptions = SetNumberFormatDigitOptions;
|
|
7602
|
+
});
|
|
7603
|
+
|
|
7604
|
+
// node_modules/@formatjs/ecma402-abstract/NumberFormat/SetNumberFormatUnitOptions.js
|
|
7605
|
+
var require_SetNumberFormatUnitOptions = __commonJS((exports) => {
|
|
7606
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7607
|
+
exports.SetNumberFormatUnitOptions = undefined;
|
|
7608
|
+
var GetOption_1 = require_GetOption();
|
|
7609
|
+
var IsWellFormedCurrencyCode_1 = require_IsWellFormedCurrencyCode();
|
|
7610
|
+
var IsWellFormedUnitIdentifier_1 = require_IsWellFormedUnitIdentifier();
|
|
7611
|
+
function SetNumberFormatUnitOptions(nf, options, _a) {
|
|
7612
|
+
if (options === undefined) {
|
|
7613
|
+
options = Object.create(null);
|
|
7614
|
+
}
|
|
7615
|
+
var getInternalSlots = _a.getInternalSlots;
|
|
7616
|
+
var internalSlots = getInternalSlots(nf);
|
|
7617
|
+
var style = (0, GetOption_1.GetOption)(options, "style", "string", ["decimal", "percent", "currency", "unit"], "decimal");
|
|
7618
|
+
internalSlots.style = style;
|
|
7619
|
+
var currency = (0, GetOption_1.GetOption)(options, "currency", "string", undefined, undefined);
|
|
7620
|
+
if (currency !== undefined && !(0, IsWellFormedCurrencyCode_1.IsWellFormedCurrencyCode)(currency)) {
|
|
7621
|
+
throw RangeError("Malformed currency code");
|
|
7622
|
+
}
|
|
7623
|
+
if (style === "currency" && currency === undefined) {
|
|
7624
|
+
throw TypeError("currency cannot be undefined");
|
|
7625
|
+
}
|
|
7626
|
+
var currencyDisplay = (0, GetOption_1.GetOption)(options, "currencyDisplay", "string", ["code", "symbol", "narrowSymbol", "name"], "symbol");
|
|
7627
|
+
var currencySign = (0, GetOption_1.GetOption)(options, "currencySign", "string", ["standard", "accounting"], "standard");
|
|
7628
|
+
var unit = (0, GetOption_1.GetOption)(options, "unit", "string", undefined, undefined);
|
|
7629
|
+
if (unit !== undefined && !(0, IsWellFormedUnitIdentifier_1.IsWellFormedUnitIdentifier)(unit)) {
|
|
7630
|
+
throw RangeError("Invalid unit argument for Intl.NumberFormat()");
|
|
7631
|
+
}
|
|
7632
|
+
if (style === "unit" && unit === undefined) {
|
|
7633
|
+
throw TypeError("unit cannot be undefined");
|
|
7634
|
+
}
|
|
7635
|
+
var unitDisplay = (0, GetOption_1.GetOption)(options, "unitDisplay", "string", ["short", "narrow", "long"], "short");
|
|
7636
|
+
if (style === "currency") {
|
|
7637
|
+
internalSlots.currency = currency.toUpperCase();
|
|
7638
|
+
internalSlots.currencyDisplay = currencyDisplay;
|
|
7639
|
+
internalSlots.currencySign = currencySign;
|
|
7640
|
+
}
|
|
7641
|
+
if (style === "unit") {
|
|
7642
|
+
internalSlots.unit = unit;
|
|
7643
|
+
internalSlots.unitDisplay = unitDisplay;
|
|
7644
|
+
}
|
|
7645
|
+
}
|
|
7646
|
+
exports.SetNumberFormatUnitOptions = SetNumberFormatUnitOptions;
|
|
7647
|
+
});
|
|
7648
|
+
|
|
7649
|
+
// node_modules/@formatjs/ecma402-abstract/NumberFormat/InitializeNumberFormat.js
|
|
7650
|
+
var require_InitializeNumberFormat = __commonJS((exports) => {
|
|
7651
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7652
|
+
exports.InitializeNumberFormat = undefined;
|
|
7653
|
+
var intl_localematcher_1 = require_intl_localematcher();
|
|
7654
|
+
var CanonicalizeLocaleList_1 = require_CanonicalizeLocaleList();
|
|
7655
|
+
var CoerceOptionsToObject_1 = require_CoerceOptionsToObject();
|
|
7656
|
+
var GetNumberOption_1 = require_GetNumberOption();
|
|
7657
|
+
var GetOption_1 = require_GetOption();
|
|
7658
|
+
var GetStringOrBooleanOption_1 = require_GetStringOrBooleanOption();
|
|
7659
|
+
var utils_1 = require_utils();
|
|
7660
|
+
var CurrencyDigits_1 = require_CurrencyDigits();
|
|
7661
|
+
var SetNumberFormatDigitOptions_1 = require_SetNumberFormatDigitOptions();
|
|
7662
|
+
var SetNumberFormatUnitOptions_1 = require_SetNumberFormatUnitOptions();
|
|
7663
|
+
var VALID_ROUND_INCREMENT_VALUES = [
|
|
7664
|
+
1,
|
|
7665
|
+
2,
|
|
7666
|
+
5,
|
|
7667
|
+
10,
|
|
7668
|
+
20,
|
|
7669
|
+
25,
|
|
7670
|
+
50,
|
|
7671
|
+
100,
|
|
7672
|
+
200,
|
|
7673
|
+
250,
|
|
7674
|
+
500,
|
|
7675
|
+
1000,
|
|
7676
|
+
2000
|
|
7677
|
+
];
|
|
7678
|
+
function InitializeNumberFormat(nf, locales, opts, _a) {
|
|
7679
|
+
var { getInternalSlots, localeData, availableLocales, numberingSystemNames, getDefaultLocale, currencyDigitsData } = _a;
|
|
7680
|
+
var requestedLocales = (0, CanonicalizeLocaleList_1.CanonicalizeLocaleList)(locales);
|
|
7681
|
+
var options = (0, CoerceOptionsToObject_1.CoerceOptionsToObject)(opts);
|
|
7682
|
+
var opt = Object.create(null);
|
|
7683
|
+
var matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
7684
|
+
opt.localeMatcher = matcher;
|
|
7685
|
+
var numberingSystem = (0, GetOption_1.GetOption)(options, "numberingSystem", "string", undefined, undefined);
|
|
7686
|
+
if (numberingSystem !== undefined && numberingSystemNames.indexOf(numberingSystem) < 0) {
|
|
7687
|
+
throw RangeError("Invalid numberingSystems: ".concat(numberingSystem));
|
|
7688
|
+
}
|
|
7689
|
+
opt.nu = numberingSystem;
|
|
7690
|
+
var r2 = (0, intl_localematcher_1.ResolveLocale)(Array.from(availableLocales), requestedLocales, opt, ["nu"], localeData, getDefaultLocale);
|
|
7691
|
+
var dataLocaleData = localeData[r2.dataLocale];
|
|
7692
|
+
(0, utils_1.invariant)(!!dataLocaleData, "Missing locale data for ".concat(r2.dataLocale));
|
|
7693
|
+
var internalSlots = getInternalSlots(nf);
|
|
7694
|
+
internalSlots.locale = r2.locale;
|
|
7695
|
+
internalSlots.dataLocale = r2.dataLocale;
|
|
7696
|
+
internalSlots.numberingSystem = r2.nu;
|
|
7697
|
+
internalSlots.dataLocaleData = dataLocaleData;
|
|
7698
|
+
(0, SetNumberFormatUnitOptions_1.SetNumberFormatUnitOptions)(nf, options, { getInternalSlots });
|
|
7699
|
+
var style = internalSlots.style;
|
|
7700
|
+
var mnfdDefault;
|
|
7701
|
+
var mxfdDefault;
|
|
7702
|
+
if (style === "currency") {
|
|
7703
|
+
var currency = internalSlots.currency;
|
|
7704
|
+
var cDigits = (0, CurrencyDigits_1.CurrencyDigits)(currency, { currencyDigitsData });
|
|
7705
|
+
mnfdDefault = cDigits;
|
|
7706
|
+
mxfdDefault = cDigits;
|
|
7707
|
+
} else {
|
|
7708
|
+
mnfdDefault = 0;
|
|
7709
|
+
mxfdDefault = style === "percent" ? 0 : 3;
|
|
7710
|
+
}
|
|
7711
|
+
var notation = (0, GetOption_1.GetOption)(options, "notation", "string", ["standard", "scientific", "engineering", "compact"], "standard");
|
|
7712
|
+
internalSlots.notation = notation;
|
|
7713
|
+
(0, SetNumberFormatDigitOptions_1.SetNumberFormatDigitOptions)(internalSlots, options, mnfdDefault, mxfdDefault, notation);
|
|
7714
|
+
var roundingIncrement = (0, GetNumberOption_1.GetNumberOption)(options, "roundingIncrement", 1, 5000, 1);
|
|
7715
|
+
if (VALID_ROUND_INCREMENT_VALUES.indexOf(roundingIncrement) === -1) {
|
|
7716
|
+
throw new RangeError("Invalid rounding increment value: ".concat(roundingIncrement, `.
|
|
7717
|
+
Valid values are `).concat(VALID_ROUND_INCREMENT_VALUES, "."));
|
|
7718
|
+
}
|
|
7719
|
+
if (roundingIncrement !== 1 && internalSlots.roundingType !== "fractionDigits") {
|
|
7720
|
+
throw new TypeError("For roundingIncrement > 1 only fractionDigits is a valid roundingType");
|
|
7721
|
+
}
|
|
7722
|
+
if (roundingIncrement !== 1 && internalSlots.maximumFractionDigits !== internalSlots.minimumFractionDigits) {
|
|
7723
|
+
throw new RangeError("With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.");
|
|
7724
|
+
}
|
|
7725
|
+
internalSlots.roundingIncrement = roundingIncrement;
|
|
7726
|
+
var trailingZeroDisplay = (0, GetOption_1.GetOption)(options, "trailingZeroDisplay", "string", ["auto", "stripIfInteger"], "auto");
|
|
7727
|
+
internalSlots.trailingZeroDisplay = trailingZeroDisplay;
|
|
7728
|
+
var compactDisplay = (0, GetOption_1.GetOption)(options, "compactDisplay", "string", ["short", "long"], "short");
|
|
7729
|
+
var defaultUseGrouping = "auto";
|
|
7730
|
+
if (notation === "compact") {
|
|
7731
|
+
internalSlots.compactDisplay = compactDisplay;
|
|
7732
|
+
defaultUseGrouping = "min2";
|
|
7733
|
+
}
|
|
7734
|
+
internalSlots.useGrouping = (0, GetStringOrBooleanOption_1.GetStringOrBooleanOption)(options, "useGrouping", ["min2", "auto", "always"], "always", false, defaultUseGrouping);
|
|
7735
|
+
internalSlots.signDisplay = (0, GetOption_1.GetOption)(options, "signDisplay", "string", ["auto", "never", "always", "exceptZero", "negative"], "auto");
|
|
7736
|
+
internalSlots.roundingMode = (0, GetOption_1.GetOption)(options, "roundingMode", "string", [
|
|
7737
|
+
"ceil",
|
|
7738
|
+
"floor",
|
|
7739
|
+
"expand",
|
|
7740
|
+
"trunc",
|
|
7741
|
+
"halfCeil",
|
|
7742
|
+
"halfFloor",
|
|
7743
|
+
"halfExpand",
|
|
7744
|
+
"halfTrunc",
|
|
7745
|
+
"halfEven"
|
|
7746
|
+
], "halfExpand");
|
|
7747
|
+
return nf;
|
|
7748
|
+
}
|
|
7749
|
+
exports.InitializeNumberFormat = InitializeNumberFormat;
|
|
7750
|
+
});
|
|
7751
|
+
|
|
7752
|
+
// node_modules/@formatjs/ecma402-abstract/PartitionPattern.js
|
|
7753
|
+
var require_PartitionPattern = __commonJS((exports) => {
|
|
7754
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7755
|
+
exports.PartitionPattern = undefined;
|
|
7756
|
+
var utils_1 = require_utils();
|
|
7757
|
+
function PartitionPattern(pattern) {
|
|
7758
|
+
var result = [];
|
|
7759
|
+
var beginIndex = pattern.indexOf("{");
|
|
7760
|
+
var endIndex = 0;
|
|
7761
|
+
var nextIndex = 0;
|
|
7762
|
+
var length = pattern.length;
|
|
7763
|
+
while (beginIndex < pattern.length && beginIndex > -1) {
|
|
7764
|
+
endIndex = pattern.indexOf("}", beginIndex);
|
|
7765
|
+
(0, utils_1.invariant)(endIndex > beginIndex, "Invalid pattern ".concat(pattern));
|
|
7766
|
+
if (beginIndex > nextIndex) {
|
|
7767
|
+
result.push({
|
|
7768
|
+
type: "literal",
|
|
7769
|
+
value: pattern.substring(nextIndex, beginIndex)
|
|
7770
|
+
});
|
|
9196
7771
|
}
|
|
9197
|
-
|
|
7772
|
+
result.push({
|
|
7773
|
+
type: pattern.substring(beginIndex + 1, endIndex),
|
|
7774
|
+
value: undefined
|
|
7775
|
+
});
|
|
7776
|
+
nextIndex = endIndex + 1;
|
|
7777
|
+
beginIndex = pattern.indexOf("{", nextIndex);
|
|
7778
|
+
}
|
|
7779
|
+
if (nextIndex < length) {
|
|
7780
|
+
result.push({
|
|
7781
|
+
type: "literal",
|
|
7782
|
+
value: pattern.substring(nextIndex, length)
|
|
7783
|
+
});
|
|
7784
|
+
}
|
|
7785
|
+
return result;
|
|
7786
|
+
}
|
|
7787
|
+
exports.PartitionPattern = PartitionPattern;
|
|
7788
|
+
});
|
|
7789
|
+
|
|
7790
|
+
// node_modules/@formatjs/ecma402-abstract/SupportedLocales.js
|
|
7791
|
+
var require_SupportedLocales = __commonJS((exports) => {
|
|
7792
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7793
|
+
exports.SupportedLocales = undefined;
|
|
7794
|
+
var intl_localematcher_1 = require_intl_localematcher();
|
|
7795
|
+
var _262_1 = require_262();
|
|
7796
|
+
var GetOption_1 = require_GetOption();
|
|
7797
|
+
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
7798
|
+
var matcher = "best fit";
|
|
7799
|
+
if (options !== undefined) {
|
|
7800
|
+
options = (0, _262_1.ToObject)(options);
|
|
7801
|
+
matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
|
|
7802
|
+
}
|
|
7803
|
+
if (matcher === "best fit") {
|
|
7804
|
+
return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
|
|
7805
|
+
}
|
|
7806
|
+
return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
|
|
7807
|
+
}
|
|
7808
|
+
exports.SupportedLocales = SupportedLocales;
|
|
7809
|
+
});
|
|
7810
|
+
|
|
7811
|
+
// node_modules/@formatjs/ecma402-abstract/data.js
|
|
7812
|
+
var require_data = __commonJS((exports) => {
|
|
7813
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7814
|
+
exports.isMissingLocaleDataError = undefined;
|
|
7815
|
+
var tslib_1 = require_tslib();
|
|
7816
|
+
var MissingLocaleDataError = function(_super) {
|
|
7817
|
+
tslib_1.__extends(MissingLocaleDataError2, _super);
|
|
7818
|
+
function MissingLocaleDataError2() {
|
|
7819
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
7820
|
+
_this.type = "MISSING_LOCALE_DATA";
|
|
7821
|
+
return _this;
|
|
7822
|
+
}
|
|
7823
|
+
return MissingLocaleDataError2;
|
|
7824
|
+
}(Error);
|
|
7825
|
+
function isMissingLocaleDataError(e2) {
|
|
7826
|
+
return e2.type === "MISSING_LOCALE_DATA";
|
|
7827
|
+
}
|
|
7828
|
+
exports.isMissingLocaleDataError = isMissingLocaleDataError;
|
|
7829
|
+
});
|
|
7830
|
+
|
|
7831
|
+
// node_modules/@formatjs/ecma402-abstract/types/relative-time.js
|
|
7832
|
+
var require_relative_time = __commonJS((exports) => {
|
|
7833
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7834
|
+
});
|
|
7835
|
+
|
|
7836
|
+
// node_modules/@formatjs/ecma402-abstract/types/date-time.js
|
|
7837
|
+
var require_date_time = __commonJS((exports) => {
|
|
7838
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7839
|
+
exports.RangePatternType = undefined;
|
|
7840
|
+
var RangePatternType;
|
|
7841
|
+
(function(RangePatternType2) {
|
|
7842
|
+
RangePatternType2["startRange"] = "startRange";
|
|
7843
|
+
RangePatternType2["shared"] = "shared";
|
|
7844
|
+
RangePatternType2["endRange"] = "endRange";
|
|
7845
|
+
})(RangePatternType || (exports.RangePatternType = RangePatternType = {}));
|
|
7846
|
+
});
|
|
7847
|
+
|
|
7848
|
+
// node_modules/@formatjs/ecma402-abstract/types/list.js
|
|
7849
|
+
var require_list = __commonJS((exports) => {
|
|
7850
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7851
|
+
});
|
|
7852
|
+
|
|
7853
|
+
// node_modules/@formatjs/ecma402-abstract/types/plural-rules.js
|
|
7854
|
+
var require_plural_rules = __commonJS((exports) => {
|
|
7855
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7856
|
+
});
|
|
7857
|
+
|
|
7858
|
+
// node_modules/@formatjs/ecma402-abstract/types/number.js
|
|
7859
|
+
var require_number = __commonJS((exports) => {
|
|
7860
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7861
|
+
});
|
|
7862
|
+
|
|
7863
|
+
// node_modules/@formatjs/ecma402-abstract/types/displaynames.js
|
|
7864
|
+
var require_displaynames = __commonJS((exports) => {
|
|
7865
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7866
|
+
});
|
|
7867
|
+
|
|
7868
|
+
// node_modules/@formatjs/ecma402-abstract/index.js
|
|
7869
|
+
var require_ecma402_abstract = __commonJS((exports) => {
|
|
7870
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7871
|
+
exports.invariant = exports.isMissingLocaleDataError = exports.defineProperty = exports.getMagnitude = exports.setMultiInternalSlots = exports.setInternalSlot = exports.isLiteralPart = exports.getMultiInternalSlots = exports.getInternalSlot = exports._formatToParts = undefined;
|
|
7872
|
+
var tslib_1 = require_tslib();
|
|
7873
|
+
tslib_1.__exportStar(require_CanonicalizeLocaleList(), exports);
|
|
7874
|
+
tslib_1.__exportStar(require_CanonicalizeTimeZoneName(), exports);
|
|
7875
|
+
tslib_1.__exportStar(require_CoerceOptionsToObject(), exports);
|
|
7876
|
+
tslib_1.__exportStar(require_GetNumberOption(), exports);
|
|
7877
|
+
tslib_1.__exportStar(require_GetOption(), exports);
|
|
7878
|
+
tslib_1.__exportStar(require_GetOptionsObject(), exports);
|
|
7879
|
+
tslib_1.__exportStar(require_GetStringOrBooleanOption(), exports);
|
|
7880
|
+
tslib_1.__exportStar(require_IsSanctionedSimpleUnitIdentifier(), exports);
|
|
7881
|
+
tslib_1.__exportStar(require_IsValidTimeZoneName(), exports);
|
|
7882
|
+
tslib_1.__exportStar(require_IsWellFormedCurrencyCode(), exports);
|
|
7883
|
+
tslib_1.__exportStar(require_IsWellFormedUnitIdentifier(), exports);
|
|
7884
|
+
tslib_1.__exportStar(require_ApplyUnsignedRoundingMode(), exports);
|
|
7885
|
+
tslib_1.__exportStar(require_CollapseNumberRange(), exports);
|
|
7886
|
+
tslib_1.__exportStar(require_ComputeExponent(), exports);
|
|
7887
|
+
tslib_1.__exportStar(require_ComputeExponentForMagnitude(), exports);
|
|
7888
|
+
tslib_1.__exportStar(require_CurrencyDigits(), exports);
|
|
7889
|
+
tslib_1.__exportStar(require_FormatApproximately(), exports);
|
|
7890
|
+
tslib_1.__exportStar(require_FormatNumericRange(), exports);
|
|
7891
|
+
tslib_1.__exportStar(require_FormatNumericRangeToParts(), exports);
|
|
7892
|
+
tslib_1.__exportStar(require_FormatNumericToParts(), exports);
|
|
7893
|
+
tslib_1.__exportStar(require_FormatNumericToString(), exports);
|
|
7894
|
+
tslib_1.__exportStar(require_GetUnsignedRoundingMode(), exports);
|
|
7895
|
+
tslib_1.__exportStar(require_InitializeNumberFormat(), exports);
|
|
7896
|
+
tslib_1.__exportStar(require_PartitionNumberPattern(), exports);
|
|
7897
|
+
tslib_1.__exportStar(require_PartitionNumberRangePattern(), exports);
|
|
7898
|
+
tslib_1.__exportStar(require_SetNumberFormatDigitOptions(), exports);
|
|
7899
|
+
tslib_1.__exportStar(require_SetNumberFormatUnitOptions(), exports);
|
|
7900
|
+
tslib_1.__exportStar(require_ToRawFixed(), exports);
|
|
7901
|
+
tslib_1.__exportStar(require_ToRawPrecision(), exports);
|
|
7902
|
+
var format_to_parts_1 = require_format_to_parts();
|
|
7903
|
+
Object.defineProperty(exports, "_formatToParts", { enumerable: true, get: function() {
|
|
7904
|
+
return tslib_1.__importDefault(format_to_parts_1).default;
|
|
7905
|
+
} });
|
|
7906
|
+
tslib_1.__exportStar(require_PartitionPattern(), exports);
|
|
7907
|
+
tslib_1.__exportStar(require_SupportedLocales(), exports);
|
|
7908
|
+
var utils_1 = require_utils();
|
|
7909
|
+
Object.defineProperty(exports, "getInternalSlot", { enumerable: true, get: function() {
|
|
7910
|
+
return utils_1.getInternalSlot;
|
|
7911
|
+
} });
|
|
7912
|
+
Object.defineProperty(exports, "getMultiInternalSlots", { enumerable: true, get: function() {
|
|
7913
|
+
return utils_1.getMultiInternalSlots;
|
|
7914
|
+
} });
|
|
7915
|
+
Object.defineProperty(exports, "isLiteralPart", { enumerable: true, get: function() {
|
|
7916
|
+
return utils_1.isLiteralPart;
|
|
7917
|
+
} });
|
|
7918
|
+
Object.defineProperty(exports, "setInternalSlot", { enumerable: true, get: function() {
|
|
7919
|
+
return utils_1.setInternalSlot;
|
|
7920
|
+
} });
|
|
7921
|
+
Object.defineProperty(exports, "setMultiInternalSlots", { enumerable: true, get: function() {
|
|
7922
|
+
return utils_1.setMultiInternalSlots;
|
|
7923
|
+
} });
|
|
7924
|
+
Object.defineProperty(exports, "getMagnitude", { enumerable: true, get: function() {
|
|
7925
|
+
return utils_1.getMagnitude;
|
|
7926
|
+
} });
|
|
7927
|
+
Object.defineProperty(exports, "defineProperty", { enumerable: true, get: function() {
|
|
7928
|
+
return utils_1.defineProperty;
|
|
7929
|
+
} });
|
|
7930
|
+
var data_1 = require_data();
|
|
7931
|
+
Object.defineProperty(exports, "isMissingLocaleDataError", { enumerable: true, get: function() {
|
|
7932
|
+
return data_1.isMissingLocaleDataError;
|
|
7933
|
+
} });
|
|
7934
|
+
tslib_1.__exportStar(require_relative_time(), exports);
|
|
7935
|
+
tslib_1.__exportStar(require_date_time(), exports);
|
|
7936
|
+
tslib_1.__exportStar(require_list(), exports);
|
|
7937
|
+
tslib_1.__exportStar(require_plural_rules(), exports);
|
|
7938
|
+
tslib_1.__exportStar(require_number(), exports);
|
|
7939
|
+
tslib_1.__exportStar(require_displaynames(), exports);
|
|
7940
|
+
var utils_2 = require_utils();
|
|
7941
|
+
Object.defineProperty(exports, "invariant", { enumerable: true, get: function() {
|
|
7942
|
+
return utils_2.invariant;
|
|
7943
|
+
} });
|
|
7944
|
+
tslib_1.__exportStar(require_262(), exports);
|
|
7945
|
+
});
|
|
7946
|
+
|
|
7947
|
+
// node_modules/@formatjs/intl/src/types.js
|
|
7948
|
+
var require_types = __commonJS((exports) => {
|
|
7949
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7950
|
+
});
|
|
7951
|
+
|
|
7952
|
+
// node_modules/@formatjs/icu-messageformat-parser/error.js
|
|
7953
|
+
var require_error = __commonJS((exports) => {
|
|
7954
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7955
|
+
exports.ErrorKind = undefined;
|
|
7956
|
+
var ErrorKind;
|
|
7957
|
+
(function(ErrorKind2) {
|
|
7958
|
+
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
|
|
7959
|
+
ErrorKind2[ErrorKind2["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
|
|
7960
|
+
ErrorKind2[ErrorKind2["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
|
|
7961
|
+
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
|
|
7962
|
+
ErrorKind2[ErrorKind2["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
|
|
7963
|
+
ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
|
|
7964
|
+
ErrorKind2[ErrorKind2["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
|
|
7965
|
+
ErrorKind2[ErrorKind2["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
|
|
7966
|
+
ErrorKind2[ErrorKind2["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
|
|
7967
|
+
ErrorKind2[ErrorKind2["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
|
|
7968
|
+
ErrorKind2[ErrorKind2["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
|
|
7969
|
+
ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
|
|
7970
|
+
ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
|
|
7971
|
+
ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
|
|
7972
|
+
ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
|
|
7973
|
+
ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
|
|
7974
|
+
ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
|
|
7975
|
+
ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
|
|
7976
|
+
ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
|
|
7977
|
+
ErrorKind2[ErrorKind2["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
|
|
7978
|
+
ErrorKind2[ErrorKind2["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
|
|
7979
|
+
ErrorKind2[ErrorKind2["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
|
|
7980
|
+
ErrorKind2[ErrorKind2["INVALID_TAG"] = 23] = "INVALID_TAG";
|
|
7981
|
+
ErrorKind2[ErrorKind2["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
|
|
7982
|
+
ErrorKind2[ErrorKind2["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
|
|
7983
|
+
ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
|
|
7984
|
+
})(ErrorKind || (exports.ErrorKind = ErrorKind = {}));
|
|
7985
|
+
});
|
|
7986
|
+
|
|
7987
|
+
// node_modules/@formatjs/icu-messageformat-parser/types.js
|
|
7988
|
+
var require_types2 = __commonJS((exports) => {
|
|
7989
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7990
|
+
exports.createNumberElement = exports.createLiteralElement = exports.isDateTimeSkeleton = exports.isNumberSkeleton = exports.isTagElement = exports.isPoundElement = exports.isPluralElement = exports.isSelectElement = exports.isTimeElement = exports.isDateElement = exports.isNumberElement = exports.isArgumentElement = exports.isLiteralElement = exports.SKELETON_TYPE = exports.TYPE = undefined;
|
|
7991
|
+
var TYPE;
|
|
7992
|
+
(function(TYPE2) {
|
|
7993
|
+
TYPE2[TYPE2["literal"] = 0] = "literal";
|
|
7994
|
+
TYPE2[TYPE2["argument"] = 1] = "argument";
|
|
7995
|
+
TYPE2[TYPE2["number"] = 2] = "number";
|
|
7996
|
+
TYPE2[TYPE2["date"] = 3] = "date";
|
|
7997
|
+
TYPE2[TYPE2["time"] = 4] = "time";
|
|
7998
|
+
TYPE2[TYPE2["select"] = 5] = "select";
|
|
7999
|
+
TYPE2[TYPE2["plural"] = 6] = "plural";
|
|
8000
|
+
TYPE2[TYPE2["pound"] = 7] = "pound";
|
|
8001
|
+
TYPE2[TYPE2["tag"] = 8] = "tag";
|
|
8002
|
+
})(TYPE || (exports.TYPE = TYPE = {}));
|
|
8003
|
+
var SKELETON_TYPE;
|
|
8004
|
+
(function(SKELETON_TYPE2) {
|
|
8005
|
+
SKELETON_TYPE2[SKELETON_TYPE2["number"] = 0] = "number";
|
|
8006
|
+
SKELETON_TYPE2[SKELETON_TYPE2["dateTime"] = 1] = "dateTime";
|
|
8007
|
+
})(SKELETON_TYPE || (exports.SKELETON_TYPE = SKELETON_TYPE = {}));
|
|
8008
|
+
function isLiteralElement(el) {
|
|
8009
|
+
return el.type === TYPE.literal;
|
|
8010
|
+
}
|
|
8011
|
+
exports.isLiteralElement = isLiteralElement;
|
|
8012
|
+
function isArgumentElement(el) {
|
|
8013
|
+
return el.type === TYPE.argument;
|
|
8014
|
+
}
|
|
8015
|
+
exports.isArgumentElement = isArgumentElement;
|
|
8016
|
+
function isNumberElement(el) {
|
|
8017
|
+
return el.type === TYPE.number;
|
|
8018
|
+
}
|
|
8019
|
+
exports.isNumberElement = isNumberElement;
|
|
8020
|
+
function isDateElement(el) {
|
|
8021
|
+
return el.type === TYPE.date;
|
|
8022
|
+
}
|
|
8023
|
+
exports.isDateElement = isDateElement;
|
|
8024
|
+
function isTimeElement(el) {
|
|
8025
|
+
return el.type === TYPE.time;
|
|
8026
|
+
}
|
|
8027
|
+
exports.isTimeElement = isTimeElement;
|
|
8028
|
+
function isSelectElement(el) {
|
|
8029
|
+
return el.type === TYPE.select;
|
|
8030
|
+
}
|
|
8031
|
+
exports.isSelectElement = isSelectElement;
|
|
8032
|
+
function isPluralElement(el) {
|
|
8033
|
+
return el.type === TYPE.plural;
|
|
8034
|
+
}
|
|
8035
|
+
exports.isPluralElement = isPluralElement;
|
|
8036
|
+
function isPoundElement(el) {
|
|
8037
|
+
return el.type === TYPE.pound;
|
|
8038
|
+
}
|
|
8039
|
+
exports.isPoundElement = isPoundElement;
|
|
8040
|
+
function isTagElement(el) {
|
|
8041
|
+
return el.type === TYPE.tag;
|
|
8042
|
+
}
|
|
8043
|
+
exports.isTagElement = isTagElement;
|
|
8044
|
+
function isNumberSkeleton(el) {
|
|
8045
|
+
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.number);
|
|
8046
|
+
}
|
|
8047
|
+
exports.isNumberSkeleton = isNumberSkeleton;
|
|
8048
|
+
function isDateTimeSkeleton(el) {
|
|
8049
|
+
return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
|
|
8050
|
+
}
|
|
8051
|
+
exports.isDateTimeSkeleton = isDateTimeSkeleton;
|
|
8052
|
+
function createLiteralElement(value) {
|
|
8053
|
+
return {
|
|
8054
|
+
type: TYPE.literal,
|
|
8055
|
+
value
|
|
9198
8056
|
};
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
8057
|
+
}
|
|
8058
|
+
exports.createLiteralElement = createLiteralElement;
|
|
8059
|
+
function createNumberElement(value, style) {
|
|
8060
|
+
return {
|
|
8061
|
+
type: TYPE.number,
|
|
8062
|
+
value,
|
|
8063
|
+
style
|
|
9206
8064
|
};
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
exporter("__awaiter", __awaiter);
|
|
9218
|
-
exporter("__generator", __generator);
|
|
9219
|
-
exporter("__exportStar", __exportStar);
|
|
9220
|
-
exporter("__createBinding", __createBinding);
|
|
9221
|
-
exporter("__values", __values);
|
|
9222
|
-
exporter("__read", __read);
|
|
9223
|
-
exporter("__spread", __spread);
|
|
9224
|
-
exporter("__spreadArrays", __spreadArrays);
|
|
9225
|
-
exporter("__spreadArray", __spreadArray);
|
|
9226
|
-
exporter("__await", __await);
|
|
9227
|
-
exporter("__asyncGenerator", __asyncGenerator);
|
|
9228
|
-
exporter("__asyncDelegator", __asyncDelegator);
|
|
9229
|
-
exporter("__asyncValues", __asyncValues);
|
|
9230
|
-
exporter("__makeTemplateObject", __makeTemplateObject);
|
|
9231
|
-
exporter("__importStar", __importStar);
|
|
9232
|
-
exporter("__importDefault", __importDefault);
|
|
9233
|
-
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
|
|
9234
|
-
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
|
|
9235
|
-
exporter("__classPrivateFieldIn", __classPrivateFieldIn);
|
|
9236
|
-
exporter("__addDisposableResource", __addDisposableResource);
|
|
9237
|
-
exporter("__disposeResources", __disposeResources);
|
|
9238
|
-
exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
|
|
9239
|
-
});
|
|
8065
|
+
}
|
|
8066
|
+
exports.createNumberElement = createNumberElement;
|
|
8067
|
+
});
|
|
8068
|
+
|
|
8069
|
+
// node_modules/@formatjs/icu-messageformat-parser/regex.generated.js
|
|
8070
|
+
var require_regex_generated2 = __commonJS((exports) => {
|
|
8071
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8072
|
+
exports.WHITE_SPACE_REGEX = exports.SPACE_SEPARATOR_REGEX = undefined;
|
|
8073
|
+
exports.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
8074
|
+
exports.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
|
|
9240
8075
|
});
|
|
9241
8076
|
|
|
9242
8077
|
// node_modules/@formatjs/icu-skeleton-parser/date-time.js
|
|
@@ -9356,7 +8191,7 @@ var require_regex_generated3 = __commonJS((exports) => {
|
|
|
9356
8191
|
var require_number2 = __commonJS((exports) => {
|
|
9357
8192
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9358
8193
|
exports.parseNumberSkeleton = exports.parseNumberSkeletonFromString = undefined;
|
|
9359
|
-
var tslib_1 =
|
|
8194
|
+
var tslib_1 = require_tslib();
|
|
9360
8195
|
var regex_generated_1 = require_regex_generated3();
|
|
9361
8196
|
function parseNumberSkeletonFromString(skeleton) {
|
|
9362
8197
|
if (skeleton.length === 0) {
|
|
@@ -9650,7 +8485,7 @@ var require_number2 = __commonJS((exports) => {
|
|
|
9650
8485
|
// node_modules/@formatjs/icu-skeleton-parser/index.js
|
|
9651
8486
|
var require_icu_skeleton_parser = __commonJS((exports) => {
|
|
9652
8487
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9653
|
-
var tslib_1 =
|
|
8488
|
+
var tslib_1 = require_tslib();
|
|
9654
8489
|
tslib_1.__exportStar(require_date_time2(), exports);
|
|
9655
8490
|
tslib_1.__exportStar(require_number2(), exports);
|
|
9656
8491
|
});
|