@geekron/strapi 0.1.5 → 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.
@@ -74,6 +74,7 @@ var require_tslib = __commonJS((exports2, module2) => {
74
74
  var __createBinding;
75
75
  var __addDisposableResource;
76
76
  var __disposeResources;
77
+ var __rewriteRelativeImportExtension;
77
78
  (function(factory) {
78
79
  var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
79
80
  if (typeof define === "function" && define.amd) {
@@ -245,8 +246,8 @@ var require_tslib = __commonJS((exports2, module2) => {
245
246
  if (t2[0] & 1)
246
247
  throw t2[1];
247
248
  return t2[1];
248
- }, trys: [], ops: [] }, f2, y2, t2, g2;
249
- return g2 = { next: verb(0), throw: verb(1), return: verb(2) }, typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
249
+ }, trys: [], ops: [] }, f2, y2, t2, g2 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
250
+ return g2.next = verb(0), g2["throw"] = verb(1), g2["return"] = verb(2), typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
250
251
  return this;
251
252
  }), g2;
252
253
  function verb(n2) {
@@ -402,16 +403,24 @@ var require_tslib = __commonJS((exports2, module2) => {
402
403
  if (!Symbol.asyncIterator)
403
404
  throw new TypeError("Symbol.asyncIterator is not defined.");
404
405
  var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
405
- return i2 = {}, verb("next"), verb("throw"), verb("return"), i2[Symbol.asyncIterator] = function() {
406
+ return i2 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
406
407
  return this;
407
408
  }, i2;
408
- function verb(n2) {
409
- if (g2[n2])
409
+ function awaitReturn(f2) {
410
+ return function(v2) {
411
+ return Promise.resolve(v2).then(f2, reject);
412
+ };
413
+ }
414
+ function verb(n2, f2) {
415
+ if (g2[n2]) {
410
416
  i2[n2] = function(v2) {
411
417
  return new Promise(function(a2, b2) {
412
418
  q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
413
419
  });
414
420
  };
421
+ if (f2)
422
+ i2[n2] = f2(i2[n2]);
423
+ }
415
424
  }
416
425
  function resume(n2, v2) {
417
426
  try {
@@ -480,14 +489,24 @@ var require_tslib = __commonJS((exports2, module2) => {
480
489
  } : function(o2, v2) {
481
490
  o2["default"] = v2;
482
491
  };
492
+ var ownKeys = function(o2) {
493
+ ownKeys = Object.getOwnPropertyNames || function(o3) {
494
+ var ar = [];
495
+ for (var k in o3)
496
+ if (Object.prototype.hasOwnProperty.call(o3, k))
497
+ ar[ar.length] = k;
498
+ return ar;
499
+ };
500
+ return ownKeys(o2);
501
+ };
483
502
  __importStar = function(mod) {
484
503
  if (mod && mod.__esModule)
485
504
  return mod;
486
505
  var result = {};
487
506
  if (mod != null) {
488
- for (var k in mod)
489
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
490
- __createBinding(result, mod, k);
507
+ for (var k = ownKeys(mod), i2 = 0;i2 < k.length; i2++)
508
+ if (k[i2] !== "default")
509
+ __createBinding(result, mod, k[i2]);
491
510
  }
492
511
  __setModuleDefault(result, mod);
493
512
  return result;
@@ -520,7 +539,7 @@ var require_tslib = __commonJS((exports2, module2) => {
520
539
  if (value !== null && value !== undefined) {
521
540
  if (typeof value !== "object" && typeof value !== "function")
522
541
  throw new TypeError("Object expected.");
523
- var dispose;
542
+ var dispose, inner;
524
543
  if (async) {
525
544
  if (!Symbol.asyncDispose)
526
545
  throw new TypeError("Symbol.asyncDispose is not defined.");
@@ -530,9 +549,19 @@ var require_tslib = __commonJS((exports2, module2) => {
530
549
  if (!Symbol.dispose)
531
550
  throw new TypeError("Symbol.dispose is not defined.");
532
551
  dispose = value[Symbol.dispose];
552
+ if (async)
553
+ inner = dispose;
533
554
  }
534
555
  if (typeof dispose !== "function")
535
556
  throw new TypeError("Object not disposable.");
557
+ if (inner)
558
+ dispose = function() {
559
+ try {
560
+ inner.call(this);
561
+ } catch (e2) {
562
+ return Promise.reject(e2);
563
+ }
564
+ };
536
565
  env.stack.push({ value, dispose, async });
537
566
  } else if (async) {
538
567
  env.stack.push({ async: true });
@@ -548,25 +577,40 @@ var require_tslib = __commonJS((exports2, module2) => {
548
577
  env.error = env.hasError ? new _SuppressedError(e2, env.error, "An error was suppressed during disposal.") : e2;
549
578
  env.hasError = true;
550
579
  }
580
+ var r2, s2 = 0;
551
581
  function next() {
552
- while (env.stack.length) {
553
- var rec = env.stack.pop();
582
+ while (r2 = env.stack.pop()) {
554
583
  try {
555
- var result = rec.dispose && rec.dispose.call(rec.value);
556
- if (rec.async)
557
- return Promise.resolve(result).then(next, function(e2) {
558
- fail(e2);
559
- return next();
560
- });
584
+ if (!r2.async && s2 === 1)
585
+ return s2 = 0, env.stack.push(r2), Promise.resolve().then(next);
586
+ if (r2.dispose) {
587
+ var result = r2.dispose.call(r2.value);
588
+ if (r2.async)
589
+ return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
590
+ fail(e2);
591
+ return next();
592
+ });
593
+ } else
594
+ s2 |= 1;
561
595
  } catch (e2) {
562
596
  fail(e2);
563
597
  }
564
598
  }
599
+ if (s2 === 1)
600
+ return env.hasError ? Promise.reject(env.error) : Promise.resolve();
565
601
  if (env.hasError)
566
602
  throw env.error;
567
603
  }
568
604
  return next();
569
605
  };
606
+ __rewriteRelativeImportExtension = function(path, preserveJsx) {
607
+ if (typeof path === "string" && /^\.\.?\//.test(path)) {
608
+ return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m2, tsx, d2, ext, cm) {
609
+ return tsx ? preserveJsx ? ".jsx" : ".js" : d2 && (!ext || !cm) ? m2 : d2 + ext + "." + cm.toLowerCase() + "js";
610
+ });
611
+ }
612
+ return path;
613
+ };
570
614
  exporter("__extends", __extends);
571
615
  exporter("__assign", __assign);
572
616
  exporter("__rest", __rest);
@@ -598,6 +642,7 @@ var require_tslib = __commonJS((exports2, module2) => {
598
642
  exporter("__classPrivateFieldIn", __classPrivateFieldIn);
599
643
  exporter("__addDisposableResource", __addDisposableResource);
600
644
  exporter("__disposeResources", __disposeResources);
645
+ exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
601
646
  });
602
647
  });
603
648
 
@@ -3123,622 +3168,17 @@ var require_CanonicalizeLocaleList2 = __commonJS((exports2) => {
3123
3168
  exports2.CanonicalizeLocaleList = CanonicalizeLocaleList;
3124
3169
  });
3125
3170
 
3126
- // node_modules/@formatjs/intl-localematcher/node_modules/tslib/tslib.js
3127
- var require_tslib2 = __commonJS((exports2, module2) => {
3128
- var __extends;
3129
- var __assign;
3130
- var __rest;
3131
- var __decorate;
3132
- var __param;
3133
- var __esDecorate;
3134
- var __runInitializers;
3135
- var __propKey;
3136
- var __setFunctionName;
3137
- var __metadata;
3138
- var __awaiter;
3139
- var __generator;
3140
- var __exportStar;
3141
- var __values;
3142
- var __read;
3143
- var __spread;
3144
- var __spreadArrays;
3145
- var __spreadArray;
3146
- var __await;
3147
- var __asyncGenerator;
3148
- var __asyncDelegator;
3149
- var __asyncValues;
3150
- var __makeTemplateObject;
3151
- var __importStar;
3152
- var __importDefault;
3153
- var __classPrivateFieldGet;
3154
- var __classPrivateFieldSet;
3155
- var __classPrivateFieldIn;
3156
- var __createBinding;
3157
- var __addDisposableResource;
3158
- var __disposeResources;
3159
- var __rewriteRelativeImportExtension;
3160
- (function(factory) {
3161
- var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
3162
- if (typeof define === "function" && define.amd) {
3163
- define("tslib", ["exports"], function(exports3) {
3164
- factory(createExporter(root, createExporter(exports3)));
3165
- });
3166
- } else if (typeof module2 === "object" && typeof module2.exports === "object") {
3167
- factory(createExporter(root, createExporter(module2.exports)));
3168
- } else {
3169
- factory(createExporter(root));
3170
- }
3171
- function createExporter(exports3, previous) {
3172
- if (exports3 !== root) {
3173
- if (typeof Object.create === "function") {
3174
- Object.defineProperty(exports3, "__esModule", { value: true });
3175
- } else {
3176
- exports3.__esModule = true;
3177
- }
3178
- }
3179
- return function(id, v2) {
3180
- return exports3[id] = previous ? previous(id, v2) : v2;
3181
- };
3182
- }
3183
- })(function(exporter) {
3184
- var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
3185
- d2.__proto__ = b2;
3186
- } || function(d2, b2) {
3187
- for (var p2 in b2)
3188
- if (Object.prototype.hasOwnProperty.call(b2, p2))
3189
- d2[p2] = b2[p2];
3190
- };
3191
- __extends = function(d2, b2) {
3192
- if (typeof b2 !== "function" && b2 !== null)
3193
- throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
3194
- extendStatics(d2, b2);
3195
- function __() {
3196
- this.constructor = d2;
3197
- }
3198
- d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __);
3199
- };
3200
- __assign = Object.assign || function(t2) {
3201
- for (var s2, i2 = 1, n2 = arguments.length;i2 < n2; i2++) {
3202
- s2 = arguments[i2];
3203
- for (var p2 in s2)
3204
- if (Object.prototype.hasOwnProperty.call(s2, p2))
3205
- t2[p2] = s2[p2];
3206
- }
3207
- return t2;
3208
- };
3209
- __rest = function(s2, e2) {
3210
- var t2 = {};
3211
- for (var p2 in s2)
3212
- if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
3213
- t2[p2] = s2[p2];
3214
- if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
3215
- for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2);i2 < p2.length; i2++) {
3216
- if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
3217
- t2[p2[i2]] = s2[p2[i2]];
3218
- }
3219
- return t2;
3220
- };
3221
- __decorate = function(decorators, target, key, desc) {
3222
- var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2;
3223
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
3224
- r2 = Reflect.decorate(decorators, target, key, desc);
3225
- else
3226
- for (var i2 = decorators.length - 1;i2 >= 0; i2--)
3227
- if (d2 = decorators[i2])
3228
- r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key, r2) : d2(target, key)) || r2;
3229
- return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
3230
- };
3231
- __param = function(paramIndex, decorator) {
3232
- return function(target, key) {
3233
- decorator(target, key, paramIndex);
3234
- };
3235
- };
3236
- __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
3237
- function accept(f2) {
3238
- if (f2 !== undefined && typeof f2 !== "function")
3239
- throw new TypeError("Function expected");
3240
- return f2;
3241
- }
3242
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
3243
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
3244
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
3245
- var _2, done = false;
3246
- for (var i2 = decorators.length - 1;i2 >= 0; i2--) {
3247
- var context = {};
3248
- for (var p2 in contextIn)
3249
- context[p2] = p2 === "access" ? {} : contextIn[p2];
3250
- for (var p2 in contextIn.access)
3251
- context.access[p2] = contextIn.access[p2];
3252
- context.addInitializer = function(f2) {
3253
- if (done)
3254
- throw new TypeError("Cannot add initializers after decoration has completed");
3255
- extraInitializers.push(accept(f2 || null));
3256
- };
3257
- var result = (0, decorators[i2])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
3258
- if (kind === "accessor") {
3259
- if (result === undefined)
3260
- continue;
3261
- if (result === null || typeof result !== "object")
3262
- throw new TypeError("Object expected");
3263
- if (_2 = accept(result.get))
3264
- descriptor.get = _2;
3265
- if (_2 = accept(result.set))
3266
- descriptor.set = _2;
3267
- if (_2 = accept(result.init))
3268
- initializers.unshift(_2);
3269
- } else if (_2 = accept(result)) {
3270
- if (kind === "field")
3271
- initializers.unshift(_2);
3272
- else
3273
- descriptor[key] = _2;
3274
- }
3275
- }
3276
- if (target)
3277
- Object.defineProperty(target, contextIn.name, descriptor);
3278
- done = true;
3279
- };
3280
- __runInitializers = function(thisArg, initializers, value) {
3281
- var useValue = arguments.length > 2;
3282
- for (var i2 = 0;i2 < initializers.length; i2++) {
3283
- value = useValue ? initializers[i2].call(thisArg, value) : initializers[i2].call(thisArg);
3284
- }
3285
- return useValue ? value : undefined;
3286
- };
3287
- __propKey = function(x2) {
3288
- return typeof x2 === "symbol" ? x2 : "".concat(x2);
3289
- };
3290
- __setFunctionName = function(f2, name, prefix) {
3291
- if (typeof name === "symbol")
3292
- name = name.description ? "[".concat(name.description, "]") : "";
3293
- return Object.defineProperty(f2, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
3294
- };
3295
- __metadata = function(metadataKey, metadataValue) {
3296
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
3297
- return Reflect.metadata(metadataKey, metadataValue);
3298
- };
3299
- __awaiter = function(thisArg, _arguments, P, generator) {
3300
- function adopt(value) {
3301
- return value instanceof P ? value : new P(function(resolve) {
3302
- resolve(value);
3303
- });
3304
- }
3305
- return new (P || (P = Promise))(function(resolve, reject) {
3306
- function fulfilled(value) {
3307
- try {
3308
- step(generator.next(value));
3309
- } catch (e2) {
3310
- reject(e2);
3311
- }
3312
- }
3313
- function rejected(value) {
3314
- try {
3315
- step(generator["throw"](value));
3316
- } catch (e2) {
3317
- reject(e2);
3318
- }
3319
- }
3320
- function step(result) {
3321
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
3322
- }
3323
- step((generator = generator.apply(thisArg, _arguments || [])).next());
3324
- });
3325
- };
3326
- __generator = function(thisArg, body) {
3327
- var _2 = { label: 0, sent: function() {
3328
- if (t2[0] & 1)
3329
- throw t2[1];
3330
- return t2[1];
3331
- }, trys: [], ops: [] }, f2, y2, t2, g2 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
3332
- return g2.next = verb(0), g2["throw"] = verb(1), g2["return"] = verb(2), typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
3333
- return this;
3334
- }), g2;
3335
- function verb(n2) {
3336
- return function(v2) {
3337
- return step([n2, v2]);
3338
- };
3339
- }
3340
- function step(op) {
3341
- if (f2)
3342
- throw new TypeError("Generator is already executing.");
3343
- while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
3344
- try {
3345
- 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)
3346
- return t2;
3347
- if (y2 = 0, t2)
3348
- op = [op[0] & 2, t2.value];
3349
- switch (op[0]) {
3350
- case 0:
3351
- case 1:
3352
- t2 = op;
3353
- break;
3354
- case 4:
3355
- _2.label++;
3356
- return { value: op[1], done: false };
3357
- case 5:
3358
- _2.label++;
3359
- y2 = op[1];
3360
- op = [0];
3361
- continue;
3362
- case 7:
3363
- op = _2.ops.pop();
3364
- _2.trys.pop();
3365
- continue;
3366
- default:
3367
- if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
3368
- _2 = 0;
3369
- continue;
3370
- }
3371
- if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
3372
- _2.label = op[1];
3373
- break;
3374
- }
3375
- if (op[0] === 6 && _2.label < t2[1]) {
3376
- _2.label = t2[1];
3377
- t2 = op;
3378
- break;
3379
- }
3380
- if (t2 && _2.label < t2[2]) {
3381
- _2.label = t2[2];
3382
- _2.ops.push(op);
3383
- break;
3384
- }
3385
- if (t2[2])
3386
- _2.ops.pop();
3387
- _2.trys.pop();
3388
- continue;
3389
- }
3390
- op = body.call(thisArg, _2);
3391
- } catch (e2) {
3392
- op = [6, e2];
3393
- y2 = 0;
3394
- } finally {
3395
- f2 = t2 = 0;
3396
- }
3397
- if (op[0] & 5)
3398
- throw op[1];
3399
- return { value: op[0] ? op[1] : undefined, done: true };
3400
- }
3401
- };
3402
- __exportStar = function(m2, o2) {
3403
- for (var p2 in m2)
3404
- if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(o2, p2))
3405
- __createBinding(o2, m2, p2);
3406
- };
3407
- __createBinding = Object.create ? function(o2, m2, k, k2) {
3408
- if (k2 === undefined)
3409
- k2 = k;
3410
- var desc = Object.getOwnPropertyDescriptor(m2, k);
3411
- if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
3412
- desc = { enumerable: true, get: function() {
3413
- return m2[k];
3414
- } };
3415
- }
3416
- Object.defineProperty(o2, k2, desc);
3417
- } : function(o2, m2, k, k2) {
3418
- if (k2 === undefined)
3419
- k2 = k;
3420
- o2[k2] = m2[k];
3421
- };
3422
- __values = function(o2) {
3423
- var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
3424
- if (m2)
3425
- return m2.call(o2);
3426
- if (o2 && typeof o2.length === "number")
3427
- return {
3428
- next: function() {
3429
- if (o2 && i2 >= o2.length)
3430
- o2 = undefined;
3431
- return { value: o2 && o2[i2++], done: !o2 };
3432
- }
3433
- };
3434
- throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
3435
- };
3436
- __read = function(o2, n2) {
3437
- var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
3438
- if (!m2)
3439
- return o2;
3440
- var i2 = m2.call(o2), r2, ar = [], e2;
3441
- try {
3442
- while ((n2 === undefined || n2-- > 0) && !(r2 = i2.next()).done)
3443
- ar.push(r2.value);
3444
- } catch (error) {
3445
- e2 = { error };
3446
- } finally {
3447
- try {
3448
- if (r2 && !r2.done && (m2 = i2["return"]))
3449
- m2.call(i2);
3450
- } finally {
3451
- if (e2)
3452
- throw e2.error;
3453
- }
3454
- }
3455
- return ar;
3456
- };
3457
- __spread = function() {
3458
- for (var ar = [], i2 = 0;i2 < arguments.length; i2++)
3459
- ar = ar.concat(__read(arguments[i2]));
3460
- return ar;
3461
- };
3462
- __spreadArrays = function() {
3463
- for (var s2 = 0, i2 = 0, il = arguments.length;i2 < il; i2++)
3464
- s2 += arguments[i2].length;
3465
- for (var r2 = Array(s2), k = 0, i2 = 0;i2 < il; i2++)
3466
- for (var a2 = arguments[i2], j = 0, jl = a2.length;j < jl; j++, k++)
3467
- r2[k] = a2[j];
3468
- return r2;
3469
- };
3470
- __spreadArray = function(to, from, pack) {
3471
- if (pack || arguments.length === 2)
3472
- for (var i2 = 0, l2 = from.length, ar;i2 < l2; i2++) {
3473
- if (ar || !(i2 in from)) {
3474
- if (!ar)
3475
- ar = Array.prototype.slice.call(from, 0, i2);
3476
- ar[i2] = from[i2];
3477
- }
3478
- }
3479
- return to.concat(ar || Array.prototype.slice.call(from));
3480
- };
3481
- __await = function(v2) {
3482
- return this instanceof __await ? (this.v = v2, this) : new __await(v2);
3483
- };
3484
- __asyncGenerator = function(thisArg, _arguments, generator) {
3485
- if (!Symbol.asyncIterator)
3486
- throw new TypeError("Symbol.asyncIterator is not defined.");
3487
- var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
3488
- return i2 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
3489
- return this;
3490
- }, i2;
3491
- function awaitReturn(f2) {
3492
- return function(v2) {
3493
- return Promise.resolve(v2).then(f2, reject);
3494
- };
3495
- }
3496
- function verb(n2, f2) {
3497
- if (g2[n2]) {
3498
- i2[n2] = function(v2) {
3499
- return new Promise(function(a2, b2) {
3500
- q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
3501
- });
3502
- };
3503
- if (f2)
3504
- i2[n2] = f2(i2[n2]);
3505
- }
3506
- }
3507
- function resume(n2, v2) {
3508
- try {
3509
- step(g2[n2](v2));
3510
- } catch (e2) {
3511
- settle(q2[0][3], e2);
3512
- }
3513
- }
3514
- function step(r2) {
3515
- r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
3516
- }
3517
- function fulfill(value) {
3518
- resume("next", value);
3519
- }
3520
- function reject(value) {
3521
- resume("throw", value);
3522
- }
3523
- function settle(f2, v2) {
3524
- if (f2(v2), q2.shift(), q2.length)
3525
- resume(q2[0][0], q2[0][1]);
3526
- }
3527
- };
3528
- __asyncDelegator = function(o2) {
3529
- var i2, p2;
3530
- return i2 = {}, verb("next"), verb("throw", function(e2) {
3531
- throw e2;
3532
- }), verb("return"), i2[Symbol.iterator] = function() {
3533
- return this;
3534
- }, i2;
3535
- function verb(n2, f2) {
3536
- i2[n2] = o2[n2] ? function(v2) {
3537
- return (p2 = !p2) ? { value: __await(o2[n2](v2)), done: false } : f2 ? f2(v2) : v2;
3538
- } : f2;
3539
- }
3540
- };
3541
- __asyncValues = function(o2) {
3542
- if (!Symbol.asyncIterator)
3543
- throw new TypeError("Symbol.asyncIterator is not defined.");
3544
- var m2 = o2[Symbol.asyncIterator], i2;
3545
- 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() {
3546
- return this;
3547
- }, i2);
3548
- function verb(n2) {
3549
- i2[n2] = o2[n2] && function(v2) {
3550
- return new Promise(function(resolve, reject) {
3551
- v2 = o2[n2](v2), settle(resolve, reject, v2.done, v2.value);
3552
- });
3553
- };
3554
- }
3555
- function settle(resolve, reject, d2, v2) {
3556
- Promise.resolve(v2).then(function(v3) {
3557
- resolve({ value: v3, done: d2 });
3558
- }, reject);
3559
- }
3560
- };
3561
- __makeTemplateObject = function(cooked, raw) {
3562
- if (Object.defineProperty) {
3563
- Object.defineProperty(cooked, "raw", { value: raw });
3564
- } else {
3565
- cooked.raw = raw;
3566
- }
3567
- return cooked;
3568
- };
3569
- var __setModuleDefault = Object.create ? function(o2, v2) {
3570
- Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
3571
- } : function(o2, v2) {
3572
- o2["default"] = v2;
3573
- };
3574
- var ownKeys = function(o2) {
3575
- ownKeys = Object.getOwnPropertyNames || function(o3) {
3576
- var ar = [];
3577
- for (var k in o3)
3578
- if (Object.prototype.hasOwnProperty.call(o3, k))
3579
- ar[ar.length] = k;
3580
- return ar;
3581
- };
3582
- return ownKeys(o2);
3583
- };
3584
- __importStar = function(mod) {
3585
- if (mod && mod.__esModule)
3586
- return mod;
3587
- var result = {};
3588
- if (mod != null) {
3589
- for (var k = ownKeys(mod), i2 = 0;i2 < k.length; i2++)
3590
- if (k[i2] !== "default")
3591
- __createBinding(result, mod, k[i2]);
3592
- }
3593
- __setModuleDefault(result, mod);
3594
- return result;
3595
- };
3596
- __importDefault = function(mod) {
3597
- return mod && mod.__esModule ? mod : { default: mod };
3598
- };
3599
- __classPrivateFieldGet = function(receiver, state, kind, f2) {
3600
- if (kind === "a" && !f2)
3601
- throw new TypeError("Private accessor was defined without a getter");
3602
- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
3603
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
3604
- return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);
3605
- };
3606
- __classPrivateFieldSet = function(receiver, state, value, kind, f2) {
3607
- if (kind === "m")
3608
- throw new TypeError("Private method is not writable");
3609
- if (kind === "a" && !f2)
3610
- throw new TypeError("Private accessor was defined without a setter");
3611
- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
3612
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
3613
- return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
3614
- };
3615
- __classPrivateFieldIn = function(state, receiver) {
3616
- if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
3617
- throw new TypeError("Cannot use 'in' operator on non-object");
3618
- return typeof state === "function" ? receiver === state : state.has(receiver);
3619
- };
3620
- __addDisposableResource = function(env, value, async) {
3621
- if (value !== null && value !== undefined) {
3622
- if (typeof value !== "object" && typeof value !== "function")
3623
- throw new TypeError("Object expected.");
3624
- var dispose, inner;
3625
- if (async) {
3626
- if (!Symbol.asyncDispose)
3627
- throw new TypeError("Symbol.asyncDispose is not defined.");
3628
- dispose = value[Symbol.asyncDispose];
3629
- }
3630
- if (dispose === undefined) {
3631
- if (!Symbol.dispose)
3632
- throw new TypeError("Symbol.dispose is not defined.");
3633
- dispose = value[Symbol.dispose];
3634
- if (async)
3635
- inner = dispose;
3636
- }
3637
- if (typeof dispose !== "function")
3638
- throw new TypeError("Object not disposable.");
3639
- if (inner)
3640
- dispose = function() {
3641
- try {
3642
- inner.call(this);
3643
- } catch (e2) {
3644
- return Promise.reject(e2);
3645
- }
3646
- };
3647
- env.stack.push({ value, dispose, async });
3648
- } else if (async) {
3649
- env.stack.push({ async: true });
3650
- }
3651
- return value;
3652
- };
3653
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
3654
- var e2 = new Error(message);
3655
- return e2.name = "SuppressedError", e2.error = error, e2.suppressed = suppressed, e2;
3656
- };
3657
- __disposeResources = function(env) {
3658
- function fail(e2) {
3659
- env.error = env.hasError ? new _SuppressedError(e2, env.error, "An error was suppressed during disposal.") : e2;
3660
- env.hasError = true;
3661
- }
3662
- var r2, s2 = 0;
3663
- function next() {
3664
- while (r2 = env.stack.pop()) {
3665
- try {
3666
- if (!r2.async && s2 === 1)
3667
- return s2 = 0, env.stack.push(r2), Promise.resolve().then(next);
3668
- if (r2.dispose) {
3669
- var result = r2.dispose.call(r2.value);
3670
- if (r2.async)
3671
- return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
3672
- fail(e2);
3673
- return next();
3674
- });
3675
- } else
3676
- s2 |= 1;
3677
- } catch (e2) {
3678
- fail(e2);
3679
- }
3680
- }
3681
- if (s2 === 1)
3682
- return env.hasError ? Promise.reject(env.error) : Promise.resolve();
3683
- if (env.hasError)
3684
- throw env.error;
3685
- }
3686
- return next();
3687
- };
3688
- __rewriteRelativeImportExtension = function(path, preserveJsx) {
3689
- if (typeof path === "string" && /^\.\.?\//.test(path)) {
3690
- return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m2, tsx, d2, ext, cm) {
3691
- return tsx ? preserveJsx ? ".jsx" : ".js" : d2 && (!ext || !cm) ? m2 : d2 + ext + "." + cm.toLowerCase() + "js";
3692
- });
3693
- }
3694
- return path;
3695
- };
3696
- exporter("__extends", __extends);
3697
- exporter("__assign", __assign);
3698
- exporter("__rest", __rest);
3699
- exporter("__decorate", __decorate);
3700
- exporter("__param", __param);
3701
- exporter("__esDecorate", __esDecorate);
3702
- exporter("__runInitializers", __runInitializers);
3703
- exporter("__propKey", __propKey);
3704
- exporter("__setFunctionName", __setFunctionName);
3705
- exporter("__metadata", __metadata);
3706
- exporter("__awaiter", __awaiter);
3707
- exporter("__generator", __generator);
3708
- exporter("__exportStar", __exportStar);
3709
- exporter("__createBinding", __createBinding);
3710
- exporter("__values", __values);
3711
- exporter("__read", __read);
3712
- exporter("__spread", __spread);
3713
- exporter("__spreadArrays", __spreadArrays);
3714
- exporter("__spreadArray", __spreadArray);
3715
- exporter("__await", __await);
3716
- exporter("__asyncGenerator", __asyncGenerator);
3717
- exporter("__asyncDelegator", __asyncDelegator);
3718
- exporter("__asyncValues", __asyncValues);
3719
- exporter("__makeTemplateObject", __makeTemplateObject);
3720
- exporter("__importStar", __importStar);
3721
- exporter("__importDefault", __importDefault);
3722
- exporter("__classPrivateFieldGet", __classPrivateFieldGet);
3723
- exporter("__classPrivateFieldSet", __classPrivateFieldSet);
3724
- exporter("__classPrivateFieldIn", __classPrivateFieldIn);
3725
- exporter("__addDisposableResource", __addDisposableResource);
3726
- exporter("__disposeResources", __disposeResources);
3727
- exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
3728
- });
3729
- });
3730
-
3731
- // node_modules/@formatjs/intl-localematcher/abstract/languageMatching.js
3732
- var require_languageMatching = __commonJS((exports2) => {
3733
- Object.defineProperty(exports2, "__esModule", { value: true });
3734
- exports2.data = undefined;
3735
- exports2.data = {
3736
- supplemental: {
3737
- languageMatching: {
3738
- "written-new": [
3739
- {
3740
- paradigmLocales: {
3741
- _locales: "en en_GB es es_419 pt_BR pt_PT"
3171
+ // node_modules/@formatjs/intl-localematcher/abstract/languageMatching.js
3172
+ var require_languageMatching = __commonJS((exports2) => {
3173
+ Object.defineProperty(exports2, "__esModule", { value: true });
3174
+ exports2.data = undefined;
3175
+ exports2.data = {
3176
+ supplemental: {
3177
+ languageMatching: {
3178
+ "written-new": [
3179
+ {
3180
+ paradigmLocales: {
3181
+ _locales: "en en_GB es es_419 pt_BR pt_PT"
3742
3182
  }
3743
3183
  },
3744
3184
  {
@@ -7697,7 +7137,7 @@ var require_regions_generated = __commonJS((exports2) => {
7697
7137
  var require_utils2 = __commonJS((exports2) => {
7698
7138
  Object.defineProperty(exports2, "__esModule", { value: true });
7699
7139
  exports2.findBestMatch = exports2.findMatchingDistance = exports2.invariant = exports2.UNICODE_EXTENSION_SEQUENCE_REGEX = undefined;
7700
- var tslib_1 = require_tslib2();
7140
+ var tslib_1 = require_tslib();
7701
7141
  var languageMatching_1 = require_languageMatching();
7702
7142
  var regions_generated_1 = require_regions_generated();
7703
7143
  exports2.UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;
@@ -8258,999 +7698,394 @@ var require_InitializeNumberFormat = __commonJS((exports2) => {
8258
7698
  opt.localeMatcher = matcher;
8259
7699
  var numberingSystem = (0, GetOption_1.GetOption)(options, "numberingSystem", "string", undefined, undefined);
8260
7700
  if (numberingSystem !== undefined && numberingSystemNames.indexOf(numberingSystem) < 0) {
8261
- throw RangeError("Invalid numberingSystems: ".concat(numberingSystem));
8262
- }
8263
- opt.nu = numberingSystem;
8264
- var r2 = (0, intl_localematcher_1.ResolveLocale)(Array.from(availableLocales), requestedLocales, opt, ["nu"], localeData, getDefaultLocale);
8265
- var dataLocaleData = localeData[r2.dataLocale];
8266
- (0, utils_1.invariant)(!!dataLocaleData, "Missing locale data for ".concat(r2.dataLocale));
8267
- var internalSlots = getInternalSlots(nf);
8268
- internalSlots.locale = r2.locale;
8269
- internalSlots.dataLocale = r2.dataLocale;
8270
- internalSlots.numberingSystem = r2.nu;
8271
- internalSlots.dataLocaleData = dataLocaleData;
8272
- (0, SetNumberFormatUnitOptions_1.SetNumberFormatUnitOptions)(nf, options, { getInternalSlots });
8273
- var style = internalSlots.style;
8274
- var mnfdDefault;
8275
- var mxfdDefault;
8276
- if (style === "currency") {
8277
- var currency = internalSlots.currency;
8278
- var cDigits = (0, CurrencyDigits_1.CurrencyDigits)(currency, { currencyDigitsData });
8279
- mnfdDefault = cDigits;
8280
- mxfdDefault = cDigits;
8281
- } else {
8282
- mnfdDefault = 0;
8283
- mxfdDefault = style === "percent" ? 0 : 3;
8284
- }
8285
- var notation = (0, GetOption_1.GetOption)(options, "notation", "string", ["standard", "scientific", "engineering", "compact"], "standard");
8286
- internalSlots.notation = notation;
8287
- (0, SetNumberFormatDigitOptions_1.SetNumberFormatDigitOptions)(internalSlots, options, mnfdDefault, mxfdDefault, notation);
8288
- var roundingIncrement = (0, GetNumberOption_1.GetNumberOption)(options, "roundingIncrement", 1, 5000, 1);
8289
- if (VALID_ROUND_INCREMENT_VALUES.indexOf(roundingIncrement) === -1) {
8290
- throw new RangeError("Invalid rounding increment value: ".concat(roundingIncrement, `.
8291
- Valid values are `).concat(VALID_ROUND_INCREMENT_VALUES, "."));
8292
- }
8293
- if (roundingIncrement !== 1 && internalSlots.roundingType !== "fractionDigits") {
8294
- throw new TypeError("For roundingIncrement > 1 only fractionDigits is a valid roundingType");
8295
- }
8296
- if (roundingIncrement !== 1 && internalSlots.maximumFractionDigits !== internalSlots.minimumFractionDigits) {
8297
- throw new RangeError("With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.");
8298
- }
8299
- internalSlots.roundingIncrement = roundingIncrement;
8300
- var trailingZeroDisplay = (0, GetOption_1.GetOption)(options, "trailingZeroDisplay", "string", ["auto", "stripIfInteger"], "auto");
8301
- internalSlots.trailingZeroDisplay = trailingZeroDisplay;
8302
- var compactDisplay = (0, GetOption_1.GetOption)(options, "compactDisplay", "string", ["short", "long"], "short");
8303
- var defaultUseGrouping = "auto";
8304
- if (notation === "compact") {
8305
- internalSlots.compactDisplay = compactDisplay;
8306
- defaultUseGrouping = "min2";
8307
- }
8308
- internalSlots.useGrouping = (0, GetStringOrBooleanOption_1.GetStringOrBooleanOption)(options, "useGrouping", ["min2", "auto", "always"], "always", false, defaultUseGrouping);
8309
- internalSlots.signDisplay = (0, GetOption_1.GetOption)(options, "signDisplay", "string", ["auto", "never", "always", "exceptZero", "negative"], "auto");
8310
- internalSlots.roundingMode = (0, GetOption_1.GetOption)(options, "roundingMode", "string", [
8311
- "ceil",
8312
- "floor",
8313
- "expand",
8314
- "trunc",
8315
- "halfCeil",
8316
- "halfFloor",
8317
- "halfExpand",
8318
- "halfTrunc",
8319
- "halfEven"
8320
- ], "halfExpand");
8321
- return nf;
8322
- }
8323
- exports2.InitializeNumberFormat = InitializeNumberFormat;
8324
- });
8325
-
8326
- // node_modules/@formatjs/ecma402-abstract/PartitionPattern.js
8327
- var require_PartitionPattern = __commonJS((exports2) => {
8328
- Object.defineProperty(exports2, "__esModule", { value: true });
8329
- exports2.PartitionPattern = undefined;
8330
- var utils_1 = require_utils();
8331
- function PartitionPattern(pattern) {
8332
- var result = [];
8333
- var beginIndex = pattern.indexOf("{");
8334
- var endIndex = 0;
8335
- var nextIndex = 0;
8336
- var length = pattern.length;
8337
- while (beginIndex < pattern.length && beginIndex > -1) {
8338
- endIndex = pattern.indexOf("}", beginIndex);
8339
- (0, utils_1.invariant)(endIndex > beginIndex, "Invalid pattern ".concat(pattern));
8340
- if (beginIndex > nextIndex) {
8341
- result.push({
8342
- type: "literal",
8343
- value: pattern.substring(nextIndex, beginIndex)
8344
- });
8345
- }
8346
- result.push({
8347
- type: pattern.substring(beginIndex + 1, endIndex),
8348
- value: undefined
8349
- });
8350
- nextIndex = endIndex + 1;
8351
- beginIndex = pattern.indexOf("{", nextIndex);
8352
- }
8353
- if (nextIndex < length) {
8354
- result.push({
8355
- type: "literal",
8356
- value: pattern.substring(nextIndex, length)
8357
- });
8358
- }
8359
- return result;
8360
- }
8361
- exports2.PartitionPattern = PartitionPattern;
8362
- });
8363
-
8364
- // node_modules/@formatjs/ecma402-abstract/SupportedLocales.js
8365
- var require_SupportedLocales = __commonJS((exports2) => {
8366
- Object.defineProperty(exports2, "__esModule", { value: true });
8367
- exports2.SupportedLocales = undefined;
8368
- var intl_localematcher_1 = require_intl_localematcher();
8369
- var _262_1 = require_262();
8370
- var GetOption_1 = require_GetOption();
8371
- function SupportedLocales(availableLocales, requestedLocales, options) {
8372
- var matcher = "best fit";
8373
- if (options !== undefined) {
8374
- options = (0, _262_1.ToObject)(options);
8375
- matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
8376
- }
8377
- if (matcher === "best fit") {
8378
- return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
8379
- }
8380
- return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
8381
- }
8382
- exports2.SupportedLocales = SupportedLocales;
8383
- });
8384
-
8385
- // node_modules/@formatjs/ecma402-abstract/data.js
8386
- var require_data = __commonJS((exports2) => {
8387
- Object.defineProperty(exports2, "__esModule", { value: true });
8388
- exports2.isMissingLocaleDataError = undefined;
8389
- var tslib_1 = require_tslib();
8390
- var MissingLocaleDataError = function(_super) {
8391
- tslib_1.__extends(MissingLocaleDataError2, _super);
8392
- function MissingLocaleDataError2() {
8393
- var _this = _super !== null && _super.apply(this, arguments) || this;
8394
- _this.type = "MISSING_LOCALE_DATA";
8395
- return _this;
8396
- }
8397
- return MissingLocaleDataError2;
8398
- }(Error);
8399
- function isMissingLocaleDataError(e2) {
8400
- return e2.type === "MISSING_LOCALE_DATA";
8401
- }
8402
- exports2.isMissingLocaleDataError = isMissingLocaleDataError;
8403
- });
8404
-
8405
- // node_modules/@formatjs/ecma402-abstract/types/relative-time.js
8406
- var require_relative_time = __commonJS((exports2) => {
8407
- Object.defineProperty(exports2, "__esModule", { value: true });
8408
- });
8409
-
8410
- // node_modules/@formatjs/ecma402-abstract/types/date-time.js
8411
- var require_date_time = __commonJS((exports2) => {
8412
- Object.defineProperty(exports2, "__esModule", { value: true });
8413
- exports2.RangePatternType = undefined;
8414
- var RangePatternType;
8415
- (function(RangePatternType2) {
8416
- RangePatternType2["startRange"] = "startRange";
8417
- RangePatternType2["shared"] = "shared";
8418
- RangePatternType2["endRange"] = "endRange";
8419
- })(RangePatternType || (exports2.RangePatternType = RangePatternType = {}));
8420
- });
8421
-
8422
- // node_modules/@formatjs/ecma402-abstract/types/list.js
8423
- var require_list = __commonJS((exports2) => {
8424
- Object.defineProperty(exports2, "__esModule", { value: true });
8425
- });
8426
-
8427
- // node_modules/@formatjs/ecma402-abstract/types/plural-rules.js
8428
- var require_plural_rules = __commonJS((exports2) => {
8429
- Object.defineProperty(exports2, "__esModule", { value: true });
8430
- });
8431
-
8432
- // node_modules/@formatjs/ecma402-abstract/types/number.js
8433
- var require_number = __commonJS((exports2) => {
8434
- Object.defineProperty(exports2, "__esModule", { value: true });
8435
- });
8436
-
8437
- // node_modules/@formatjs/ecma402-abstract/types/displaynames.js
8438
- var require_displaynames = __commonJS((exports2) => {
8439
- Object.defineProperty(exports2, "__esModule", { value: true });
8440
- });
8441
-
8442
- // node_modules/@formatjs/ecma402-abstract/index.js
8443
- var require_ecma402_abstract = __commonJS((exports2) => {
8444
- Object.defineProperty(exports2, "__esModule", { value: true });
8445
- exports2.invariant = exports2.isMissingLocaleDataError = exports2.defineProperty = exports2.getMagnitude = exports2.setMultiInternalSlots = exports2.setInternalSlot = exports2.isLiteralPart = exports2.getMultiInternalSlots = exports2.getInternalSlot = exports2._formatToParts = undefined;
8446
- var tslib_1 = require_tslib();
8447
- tslib_1.__exportStar(require_CanonicalizeLocaleList(), exports2);
8448
- tslib_1.__exportStar(require_CanonicalizeTimeZoneName(), exports2);
8449
- tslib_1.__exportStar(require_CoerceOptionsToObject(), exports2);
8450
- tslib_1.__exportStar(require_GetNumberOption(), exports2);
8451
- tslib_1.__exportStar(require_GetOption(), exports2);
8452
- tslib_1.__exportStar(require_GetOptionsObject(), exports2);
8453
- tslib_1.__exportStar(require_GetStringOrBooleanOption(), exports2);
8454
- tslib_1.__exportStar(require_IsSanctionedSimpleUnitIdentifier(), exports2);
8455
- tslib_1.__exportStar(require_IsValidTimeZoneName(), exports2);
8456
- tslib_1.__exportStar(require_IsWellFormedCurrencyCode(), exports2);
8457
- tslib_1.__exportStar(require_IsWellFormedUnitIdentifier(), exports2);
8458
- tslib_1.__exportStar(require_ApplyUnsignedRoundingMode(), exports2);
8459
- tslib_1.__exportStar(require_CollapseNumberRange(), exports2);
8460
- tslib_1.__exportStar(require_ComputeExponent(), exports2);
8461
- tslib_1.__exportStar(require_ComputeExponentForMagnitude(), exports2);
8462
- tslib_1.__exportStar(require_CurrencyDigits(), exports2);
8463
- tslib_1.__exportStar(require_FormatApproximately(), exports2);
8464
- tslib_1.__exportStar(require_FormatNumericRange(), exports2);
8465
- tslib_1.__exportStar(require_FormatNumericRangeToParts(), exports2);
8466
- tslib_1.__exportStar(require_FormatNumericToParts(), exports2);
8467
- tslib_1.__exportStar(require_FormatNumericToString(), exports2);
8468
- tslib_1.__exportStar(require_GetUnsignedRoundingMode(), exports2);
8469
- tslib_1.__exportStar(require_InitializeNumberFormat(), exports2);
8470
- tslib_1.__exportStar(require_PartitionNumberPattern(), exports2);
8471
- tslib_1.__exportStar(require_PartitionNumberRangePattern(), exports2);
8472
- tslib_1.__exportStar(require_SetNumberFormatDigitOptions(), exports2);
8473
- tslib_1.__exportStar(require_SetNumberFormatUnitOptions(), exports2);
8474
- tslib_1.__exportStar(require_ToRawFixed(), exports2);
8475
- tslib_1.__exportStar(require_ToRawPrecision(), exports2);
8476
- var format_to_parts_1 = require_format_to_parts();
8477
- Object.defineProperty(exports2, "_formatToParts", { enumerable: true, get: function() {
8478
- return tslib_1.__importDefault(format_to_parts_1).default;
8479
- } });
8480
- tslib_1.__exportStar(require_PartitionPattern(), exports2);
8481
- tslib_1.__exportStar(require_SupportedLocales(), exports2);
8482
- var utils_1 = require_utils();
8483
- Object.defineProperty(exports2, "getInternalSlot", { enumerable: true, get: function() {
8484
- return utils_1.getInternalSlot;
8485
- } });
8486
- Object.defineProperty(exports2, "getMultiInternalSlots", { enumerable: true, get: function() {
8487
- return utils_1.getMultiInternalSlots;
8488
- } });
8489
- Object.defineProperty(exports2, "isLiteralPart", { enumerable: true, get: function() {
8490
- return utils_1.isLiteralPart;
8491
- } });
8492
- Object.defineProperty(exports2, "setInternalSlot", { enumerable: true, get: function() {
8493
- return utils_1.setInternalSlot;
8494
- } });
8495
- Object.defineProperty(exports2, "setMultiInternalSlots", { enumerable: true, get: function() {
8496
- return utils_1.setMultiInternalSlots;
8497
- } });
8498
- Object.defineProperty(exports2, "getMagnitude", { enumerable: true, get: function() {
8499
- return utils_1.getMagnitude;
8500
- } });
8501
- Object.defineProperty(exports2, "defineProperty", { enumerable: true, get: function() {
8502
- return utils_1.defineProperty;
8503
- } });
8504
- var data_1 = require_data();
8505
- Object.defineProperty(exports2, "isMissingLocaleDataError", { enumerable: true, get: function() {
8506
- return data_1.isMissingLocaleDataError;
8507
- } });
8508
- tslib_1.__exportStar(require_relative_time(), exports2);
8509
- tslib_1.__exportStar(require_date_time(), exports2);
8510
- tslib_1.__exportStar(require_list(), exports2);
8511
- tslib_1.__exportStar(require_plural_rules(), exports2);
8512
- tslib_1.__exportStar(require_number(), exports2);
8513
- tslib_1.__exportStar(require_displaynames(), exports2);
8514
- var utils_2 = require_utils();
8515
- Object.defineProperty(exports2, "invariant", { enumerable: true, get: function() {
8516
- return utils_2.invariant;
8517
- } });
8518
- tslib_1.__exportStar(require_262(), exports2);
8519
- });
8520
-
8521
- // node_modules/@formatjs/intl/src/types.js
8522
- var require_types = __commonJS((exports2) => {
8523
- Object.defineProperty(exports2, "__esModule", { value: true });
8524
- });
8525
-
8526
- // node_modules/@formatjs/icu-messageformat-parser/error.js
8527
- var require_error = __commonJS((exports2) => {
8528
- Object.defineProperty(exports2, "__esModule", { value: true });
8529
- exports2.ErrorKind = undefined;
8530
- var ErrorKind;
8531
- (function(ErrorKind2) {
8532
- ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
8533
- ErrorKind2[ErrorKind2["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
8534
- ErrorKind2[ErrorKind2["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
8535
- ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
8536
- ErrorKind2[ErrorKind2["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
8537
- ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
8538
- ErrorKind2[ErrorKind2["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
8539
- ErrorKind2[ErrorKind2["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
8540
- ErrorKind2[ErrorKind2["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
8541
- ErrorKind2[ErrorKind2["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
8542
- ErrorKind2[ErrorKind2["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
8543
- ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
8544
- ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
8545
- ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
8546
- ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
8547
- ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
8548
- ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
8549
- ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
8550
- ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
8551
- ErrorKind2[ErrorKind2["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
8552
- ErrorKind2[ErrorKind2["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
8553
- ErrorKind2[ErrorKind2["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
8554
- ErrorKind2[ErrorKind2["INVALID_TAG"] = 23] = "INVALID_TAG";
8555
- ErrorKind2[ErrorKind2["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
8556
- ErrorKind2[ErrorKind2["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
8557
- ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
8558
- })(ErrorKind || (exports2.ErrorKind = ErrorKind = {}));
8559
- });
8560
-
8561
- // node_modules/@formatjs/icu-messageformat-parser/types.js
8562
- var require_types2 = __commonJS((exports2) => {
8563
- Object.defineProperty(exports2, "__esModule", { value: true });
8564
- exports2.createNumberElement = exports2.createLiteralElement = exports2.isDateTimeSkeleton = exports2.isNumberSkeleton = exports2.isTagElement = exports2.isPoundElement = exports2.isPluralElement = exports2.isSelectElement = exports2.isTimeElement = exports2.isDateElement = exports2.isNumberElement = exports2.isArgumentElement = exports2.isLiteralElement = exports2.SKELETON_TYPE = exports2.TYPE = undefined;
8565
- var TYPE;
8566
- (function(TYPE2) {
8567
- TYPE2[TYPE2["literal"] = 0] = "literal";
8568
- TYPE2[TYPE2["argument"] = 1] = "argument";
8569
- TYPE2[TYPE2["number"] = 2] = "number";
8570
- TYPE2[TYPE2["date"] = 3] = "date";
8571
- TYPE2[TYPE2["time"] = 4] = "time";
8572
- TYPE2[TYPE2["select"] = 5] = "select";
8573
- TYPE2[TYPE2["plural"] = 6] = "plural";
8574
- TYPE2[TYPE2["pound"] = 7] = "pound";
8575
- TYPE2[TYPE2["tag"] = 8] = "tag";
8576
- })(TYPE || (exports2.TYPE = TYPE = {}));
8577
- var SKELETON_TYPE;
8578
- (function(SKELETON_TYPE2) {
8579
- SKELETON_TYPE2[SKELETON_TYPE2["number"] = 0] = "number";
8580
- SKELETON_TYPE2[SKELETON_TYPE2["dateTime"] = 1] = "dateTime";
8581
- })(SKELETON_TYPE || (exports2.SKELETON_TYPE = SKELETON_TYPE = {}));
8582
- function isLiteralElement(el) {
8583
- return el.type === TYPE.literal;
8584
- }
8585
- exports2.isLiteralElement = isLiteralElement;
8586
- function isArgumentElement(el) {
8587
- return el.type === TYPE.argument;
8588
- }
8589
- exports2.isArgumentElement = isArgumentElement;
8590
- function isNumberElement(el) {
8591
- return el.type === TYPE.number;
8592
- }
8593
- exports2.isNumberElement = isNumberElement;
8594
- function isDateElement(el) {
8595
- return el.type === TYPE.date;
8596
- }
8597
- exports2.isDateElement = isDateElement;
8598
- function isTimeElement(el) {
8599
- return el.type === TYPE.time;
8600
- }
8601
- exports2.isTimeElement = isTimeElement;
8602
- function isSelectElement(el) {
8603
- return el.type === TYPE.select;
8604
- }
8605
- exports2.isSelectElement = isSelectElement;
8606
- function isPluralElement(el) {
8607
- return el.type === TYPE.plural;
8608
- }
8609
- exports2.isPluralElement = isPluralElement;
8610
- function isPoundElement(el) {
8611
- return el.type === TYPE.pound;
8612
- }
8613
- exports2.isPoundElement = isPoundElement;
8614
- function isTagElement(el) {
8615
- return el.type === TYPE.tag;
8616
- }
8617
- exports2.isTagElement = isTagElement;
8618
- function isNumberSkeleton(el) {
8619
- return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.number);
8620
- }
8621
- exports2.isNumberSkeleton = isNumberSkeleton;
8622
- function isDateTimeSkeleton(el) {
8623
- return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
8624
- }
8625
- exports2.isDateTimeSkeleton = isDateTimeSkeleton;
8626
- function createLiteralElement(value) {
8627
- return {
8628
- type: TYPE.literal,
8629
- value
8630
- };
8631
- }
8632
- exports2.createLiteralElement = createLiteralElement;
8633
- function createNumberElement(value, style) {
8634
- return {
8635
- type: TYPE.number,
8636
- value,
8637
- style
8638
- };
8639
- }
8640
- exports2.createNumberElement = createNumberElement;
8641
- });
8642
-
8643
- // node_modules/@formatjs/icu-messageformat-parser/regex.generated.js
8644
- var require_regex_generated2 = __commonJS((exports2) => {
8645
- Object.defineProperty(exports2, "__esModule", { value: true });
8646
- exports2.WHITE_SPACE_REGEX = exports2.SPACE_SEPARATOR_REGEX = undefined;
8647
- exports2.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
8648
- exports2.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
8649
- });
8650
-
8651
- // node_modules/@formatjs/icu-skeleton-parser/node_modules/tslib/tslib.js
8652
- var require_tslib3 = __commonJS((exports2, module2) => {
8653
- var __extends;
8654
- var __assign;
8655
- var __rest;
8656
- var __decorate;
8657
- var __param;
8658
- var __esDecorate;
8659
- var __runInitializers;
8660
- var __propKey;
8661
- var __setFunctionName;
8662
- var __metadata;
8663
- var __awaiter;
8664
- var __generator;
8665
- var __exportStar;
8666
- var __values;
8667
- var __read;
8668
- var __spread;
8669
- var __spreadArrays;
8670
- var __spreadArray;
8671
- var __await;
8672
- var __asyncGenerator;
8673
- var __asyncDelegator;
8674
- var __asyncValues;
8675
- var __makeTemplateObject;
8676
- var __importStar;
8677
- var __importDefault;
8678
- var __classPrivateFieldGet;
8679
- var __classPrivateFieldSet;
8680
- var __classPrivateFieldIn;
8681
- var __createBinding;
8682
- var __addDisposableResource;
8683
- var __disposeResources;
8684
- var __rewriteRelativeImportExtension;
8685
- (function(factory) {
8686
- var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
8687
- if (typeof define === "function" && define.amd) {
8688
- define("tslib", ["exports"], function(exports3) {
8689
- factory(createExporter(root, createExporter(exports3)));
8690
- });
8691
- } else if (typeof module2 === "object" && typeof module2.exports === "object") {
8692
- factory(createExporter(root, createExporter(module2.exports)));
8693
- } else {
8694
- factory(createExporter(root));
8695
- }
8696
- function createExporter(exports3, previous) {
8697
- if (exports3 !== root) {
8698
- if (typeof Object.create === "function") {
8699
- Object.defineProperty(exports3, "__esModule", { value: true });
8700
- } else {
8701
- exports3.__esModule = true;
8702
- }
8703
- }
8704
- return function(id, v2) {
8705
- return exports3[id] = previous ? previous(id, v2) : v2;
8706
- };
8707
- }
8708
- })(function(exporter) {
8709
- var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
8710
- d2.__proto__ = b2;
8711
- } || function(d2, b2) {
8712
- for (var p2 in b2)
8713
- if (Object.prototype.hasOwnProperty.call(b2, p2))
8714
- d2[p2] = b2[p2];
8715
- };
8716
- __extends = function(d2, b2) {
8717
- if (typeof b2 !== "function" && b2 !== null)
8718
- throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
8719
- extendStatics(d2, b2);
8720
- function __() {
8721
- this.constructor = d2;
8722
- }
8723
- d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __);
8724
- };
8725
- __assign = Object.assign || function(t2) {
8726
- for (var s2, i2 = 1, n2 = arguments.length;i2 < n2; i2++) {
8727
- s2 = arguments[i2];
8728
- for (var p2 in s2)
8729
- if (Object.prototype.hasOwnProperty.call(s2, p2))
8730
- t2[p2] = s2[p2];
8731
- }
8732
- return t2;
8733
- };
8734
- __rest = function(s2, e2) {
8735
- var t2 = {};
8736
- for (var p2 in s2)
8737
- if (Object.prototype.hasOwnProperty.call(s2, p2) && e2.indexOf(p2) < 0)
8738
- t2[p2] = s2[p2];
8739
- if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
8740
- for (var i2 = 0, p2 = Object.getOwnPropertySymbols(s2);i2 < p2.length; i2++) {
8741
- if (e2.indexOf(p2[i2]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i2]))
8742
- t2[p2[i2]] = s2[p2[i2]];
8743
- }
8744
- return t2;
8745
- };
8746
- __decorate = function(decorators, target, key, desc) {
8747
- var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2;
8748
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
8749
- r2 = Reflect.decorate(decorators, target, key, desc);
8750
- else
8751
- for (var i2 = decorators.length - 1;i2 >= 0; i2--)
8752
- if (d2 = decorators[i2])
8753
- r2 = (c2 < 3 ? d2(r2) : c2 > 3 ? d2(target, key, r2) : d2(target, key)) || r2;
8754
- return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
8755
- };
8756
- __param = function(paramIndex, decorator) {
8757
- return function(target, key) {
8758
- decorator(target, key, paramIndex);
8759
- };
8760
- };
8761
- __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
8762
- function accept(f2) {
8763
- if (f2 !== undefined && typeof f2 !== "function")
8764
- throw new TypeError("Function expected");
8765
- return f2;
8766
- }
8767
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
8768
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
8769
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
8770
- var _2, done = false;
8771
- for (var i2 = decorators.length - 1;i2 >= 0; i2--) {
8772
- var context = {};
8773
- for (var p2 in contextIn)
8774
- context[p2] = p2 === "access" ? {} : contextIn[p2];
8775
- for (var p2 in contextIn.access)
8776
- context.access[p2] = contextIn.access[p2];
8777
- context.addInitializer = function(f2) {
8778
- if (done)
8779
- throw new TypeError("Cannot add initializers after decoration has completed");
8780
- extraInitializers.push(accept(f2 || null));
8781
- };
8782
- var result = (0, decorators[i2])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
8783
- if (kind === "accessor") {
8784
- if (result === undefined)
8785
- continue;
8786
- if (result === null || typeof result !== "object")
8787
- throw new TypeError("Object expected");
8788
- if (_2 = accept(result.get))
8789
- descriptor.get = _2;
8790
- if (_2 = accept(result.set))
8791
- descriptor.set = _2;
8792
- if (_2 = accept(result.init))
8793
- initializers.unshift(_2);
8794
- } else if (_2 = accept(result)) {
8795
- if (kind === "field")
8796
- initializers.unshift(_2);
8797
- else
8798
- descriptor[key] = _2;
8799
- }
8800
- }
8801
- if (target)
8802
- Object.defineProperty(target, contextIn.name, descriptor);
8803
- done = true;
8804
- };
8805
- __runInitializers = function(thisArg, initializers, value) {
8806
- var useValue = arguments.length > 2;
8807
- for (var i2 = 0;i2 < initializers.length; i2++) {
8808
- value = useValue ? initializers[i2].call(thisArg, value) : initializers[i2].call(thisArg);
8809
- }
8810
- return useValue ? value : undefined;
8811
- };
8812
- __propKey = function(x2) {
8813
- return typeof x2 === "symbol" ? x2 : "".concat(x2);
8814
- };
8815
- __setFunctionName = function(f2, name, prefix) {
8816
- if (typeof name === "symbol")
8817
- name = name.description ? "[".concat(name.description, "]") : "";
8818
- return Object.defineProperty(f2, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
8819
- };
8820
- __metadata = function(metadataKey, metadataValue) {
8821
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
8822
- return Reflect.metadata(metadataKey, metadataValue);
8823
- };
8824
- __awaiter = function(thisArg, _arguments, P, generator) {
8825
- function adopt(value) {
8826
- return value instanceof P ? value : new P(function(resolve) {
8827
- resolve(value);
8828
- });
8829
- }
8830
- return new (P || (P = Promise))(function(resolve, reject) {
8831
- function fulfilled(value) {
8832
- try {
8833
- step(generator.next(value));
8834
- } catch (e2) {
8835
- reject(e2);
8836
- }
8837
- }
8838
- function rejected(value) {
8839
- try {
8840
- step(generator["throw"](value));
8841
- } catch (e2) {
8842
- reject(e2);
8843
- }
8844
- }
8845
- function step(result) {
8846
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
8847
- }
8848
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8849
- });
8850
- };
8851
- __generator = function(thisArg, body) {
8852
- var _2 = { label: 0, sent: function() {
8853
- if (t2[0] & 1)
8854
- throw t2[1];
8855
- return t2[1];
8856
- }, trys: [], ops: [] }, f2, y2, t2, g2 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
8857
- return g2.next = verb(0), g2["throw"] = verb(1), g2["return"] = verb(2), typeof Symbol === "function" && (g2[Symbol.iterator] = function() {
8858
- return this;
8859
- }), g2;
8860
- function verb(n2) {
8861
- return function(v2) {
8862
- return step([n2, v2]);
8863
- };
8864
- }
8865
- function step(op) {
8866
- if (f2)
8867
- throw new TypeError("Generator is already executing.");
8868
- while (g2 && (g2 = 0, op[0] && (_2 = 0)), _2)
8869
- try {
8870
- 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)
8871
- return t2;
8872
- if (y2 = 0, t2)
8873
- op = [op[0] & 2, t2.value];
8874
- switch (op[0]) {
8875
- case 0:
8876
- case 1:
8877
- t2 = op;
8878
- break;
8879
- case 4:
8880
- _2.label++;
8881
- return { value: op[1], done: false };
8882
- case 5:
8883
- _2.label++;
8884
- y2 = op[1];
8885
- op = [0];
8886
- continue;
8887
- case 7:
8888
- op = _2.ops.pop();
8889
- _2.trys.pop();
8890
- continue;
8891
- default:
8892
- if (!(t2 = _2.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
8893
- _2 = 0;
8894
- continue;
8895
- }
8896
- if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
8897
- _2.label = op[1];
8898
- break;
8899
- }
8900
- if (op[0] === 6 && _2.label < t2[1]) {
8901
- _2.label = t2[1];
8902
- t2 = op;
8903
- break;
8904
- }
8905
- if (t2 && _2.label < t2[2]) {
8906
- _2.label = t2[2];
8907
- _2.ops.push(op);
8908
- break;
8909
- }
8910
- if (t2[2])
8911
- _2.ops.pop();
8912
- _2.trys.pop();
8913
- continue;
8914
- }
8915
- op = body.call(thisArg, _2);
8916
- } catch (e2) {
8917
- op = [6, e2];
8918
- y2 = 0;
8919
- } finally {
8920
- f2 = t2 = 0;
8921
- }
8922
- if (op[0] & 5)
8923
- throw op[1];
8924
- return { value: op[0] ? op[1] : undefined, done: true };
8925
- }
8926
- };
8927
- __exportStar = function(m2, o2) {
8928
- for (var p2 in m2)
8929
- if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(o2, p2))
8930
- __createBinding(o2, m2, p2);
8931
- };
8932
- __createBinding = Object.create ? function(o2, m2, k, k2) {
8933
- if (k2 === undefined)
8934
- k2 = k;
8935
- var desc = Object.getOwnPropertyDescriptor(m2, k);
8936
- if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
8937
- desc = { enumerable: true, get: function() {
8938
- return m2[k];
8939
- } };
8940
- }
8941
- Object.defineProperty(o2, k2, desc);
8942
- } : function(o2, m2, k, k2) {
8943
- if (k2 === undefined)
8944
- k2 = k;
8945
- o2[k2] = m2[k];
8946
- };
8947
- __values = function(o2) {
8948
- var s2 = typeof Symbol === "function" && Symbol.iterator, m2 = s2 && o2[s2], i2 = 0;
8949
- if (m2)
8950
- return m2.call(o2);
8951
- if (o2 && typeof o2.length === "number")
8952
- return {
8953
- next: function() {
8954
- if (o2 && i2 >= o2.length)
8955
- o2 = undefined;
8956
- return { value: o2 && o2[i2++], done: !o2 };
8957
- }
8958
- };
8959
- throw new TypeError(s2 ? "Object is not iterable." : "Symbol.iterator is not defined.");
8960
- };
8961
- __read = function(o2, n2) {
8962
- var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
8963
- if (!m2)
8964
- return o2;
8965
- var i2 = m2.call(o2), r2, ar = [], e2;
8966
- try {
8967
- while ((n2 === undefined || n2-- > 0) && !(r2 = i2.next()).done)
8968
- ar.push(r2.value);
8969
- } catch (error) {
8970
- e2 = { error };
8971
- } finally {
8972
- try {
8973
- if (r2 && !r2.done && (m2 = i2["return"]))
8974
- m2.call(i2);
8975
- } finally {
8976
- if (e2)
8977
- throw e2.error;
8978
- }
8979
- }
8980
- return ar;
8981
- };
8982
- __spread = function() {
8983
- for (var ar = [], i2 = 0;i2 < arguments.length; i2++)
8984
- ar = ar.concat(__read(arguments[i2]));
8985
- return ar;
8986
- };
8987
- __spreadArrays = function() {
8988
- for (var s2 = 0, i2 = 0, il = arguments.length;i2 < il; i2++)
8989
- s2 += arguments[i2].length;
8990
- for (var r2 = Array(s2), k = 0, i2 = 0;i2 < il; i2++)
8991
- for (var a2 = arguments[i2], j = 0, jl = a2.length;j < jl; j++, k++)
8992
- r2[k] = a2[j];
8993
- return r2;
8994
- };
8995
- __spreadArray = function(to, from, pack) {
8996
- if (pack || arguments.length === 2)
8997
- for (var i2 = 0, l2 = from.length, ar;i2 < l2; i2++) {
8998
- if (ar || !(i2 in from)) {
8999
- if (!ar)
9000
- ar = Array.prototype.slice.call(from, 0, i2);
9001
- ar[i2] = from[i2];
9002
- }
9003
- }
9004
- return to.concat(ar || Array.prototype.slice.call(from));
9005
- };
9006
- __await = function(v2) {
9007
- return this instanceof __await ? (this.v = v2, this) : new __await(v2);
9008
- };
9009
- __asyncGenerator = function(thisArg, _arguments, generator) {
9010
- if (!Symbol.asyncIterator)
9011
- throw new TypeError("Symbol.asyncIterator is not defined.");
9012
- var g2 = generator.apply(thisArg, _arguments || []), i2, q2 = [];
9013
- return i2 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i2[Symbol.asyncIterator] = function() {
9014
- return this;
9015
- }, i2;
9016
- function awaitReturn(f2) {
9017
- return function(v2) {
9018
- return Promise.resolve(v2).then(f2, reject);
9019
- };
9020
- }
9021
- function verb(n2, f2) {
9022
- if (g2[n2]) {
9023
- i2[n2] = function(v2) {
9024
- return new Promise(function(a2, b2) {
9025
- q2.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
9026
- });
9027
- };
9028
- if (f2)
9029
- i2[n2] = f2(i2[n2]);
9030
- }
9031
- }
9032
- function resume(n2, v2) {
9033
- try {
9034
- step(g2[n2](v2));
9035
- } catch (e2) {
9036
- settle(q2[0][3], e2);
9037
- }
9038
- }
9039
- function step(r2) {
9040
- r2.value instanceof __await ? Promise.resolve(r2.value.v).then(fulfill, reject) : settle(q2[0][2], r2);
9041
- }
9042
- function fulfill(value) {
9043
- resume("next", value);
9044
- }
9045
- function reject(value) {
9046
- resume("throw", value);
9047
- }
9048
- function settle(f2, v2) {
9049
- if (f2(v2), q2.shift(), q2.length)
9050
- resume(q2[0][0], q2[0][1]);
9051
- }
9052
- };
9053
- __asyncDelegator = function(o2) {
9054
- var i2, p2;
9055
- return i2 = {}, verb("next"), verb("throw", function(e2) {
9056
- throw e2;
9057
- }), verb("return"), i2[Symbol.iterator] = function() {
9058
- return this;
9059
- }, i2;
9060
- function verb(n2, f2) {
9061
- i2[n2] = o2[n2] ? function(v2) {
9062
- return (p2 = !p2) ? { value: __await(o2[n2](v2)), done: false } : f2 ? f2(v2) : v2;
9063
- } : f2;
9064
- }
9065
- };
9066
- __asyncValues = function(o2) {
9067
- if (!Symbol.asyncIterator)
9068
- throw new TypeError("Symbol.asyncIterator is not defined.");
9069
- var m2 = o2[Symbol.asyncIterator], i2;
9070
- 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() {
9071
- return this;
9072
- }, i2);
9073
- function verb(n2) {
9074
- i2[n2] = o2[n2] && function(v2) {
9075
- return new Promise(function(resolve, reject) {
9076
- v2 = o2[n2](v2), settle(resolve, reject, v2.done, v2.value);
9077
- });
9078
- };
9079
- }
9080
- function settle(resolve, reject, d2, v2) {
9081
- Promise.resolve(v2).then(function(v3) {
9082
- resolve({ value: v3, done: d2 });
9083
- }, reject);
9084
- }
9085
- };
9086
- __makeTemplateObject = function(cooked, raw) {
9087
- if (Object.defineProperty) {
9088
- Object.defineProperty(cooked, "raw", { value: raw });
9089
- } else {
9090
- cooked.raw = raw;
9091
- }
9092
- return cooked;
9093
- };
9094
- var __setModuleDefault = Object.create ? function(o2, v2) {
9095
- Object.defineProperty(o2, "default", { enumerable: true, value: v2 });
9096
- } : function(o2, v2) {
9097
- o2["default"] = v2;
9098
- };
9099
- var ownKeys = function(o2) {
9100
- ownKeys = Object.getOwnPropertyNames || function(o3) {
9101
- var ar = [];
9102
- for (var k in o3)
9103
- if (Object.prototype.hasOwnProperty.call(o3, k))
9104
- ar[ar.length] = k;
9105
- return ar;
9106
- };
9107
- return ownKeys(o2);
9108
- };
9109
- __importStar = function(mod) {
9110
- if (mod && mod.__esModule)
9111
- return mod;
9112
- var result = {};
9113
- if (mod != null) {
9114
- for (var k = ownKeys(mod), i2 = 0;i2 < k.length; i2++)
9115
- if (k[i2] !== "default")
9116
- __createBinding(result, mod, k[i2]);
9117
- }
9118
- __setModuleDefault(result, mod);
9119
- return result;
9120
- };
9121
- __importDefault = function(mod) {
9122
- return mod && mod.__esModule ? mod : { default: mod };
9123
- };
9124
- __classPrivateFieldGet = function(receiver, state, kind, f2) {
9125
- if (kind === "a" && !f2)
9126
- throw new TypeError("Private accessor was defined without a getter");
9127
- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
9128
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
9129
- return kind === "m" ? f2 : kind === "a" ? f2.call(receiver) : f2 ? f2.value : state.get(receiver);
9130
- };
9131
- __classPrivateFieldSet = function(receiver, state, value, kind, f2) {
9132
- if (kind === "m")
9133
- throw new TypeError("Private method is not writable");
9134
- if (kind === "a" && !f2)
9135
- throw new TypeError("Private accessor was defined without a setter");
9136
- if (typeof state === "function" ? receiver !== state || !f2 : !state.has(receiver))
9137
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
9138
- return kind === "a" ? f2.call(receiver, value) : f2 ? f2.value = value : state.set(receiver, value), value;
9139
- };
9140
- __classPrivateFieldIn = function(state, receiver) {
9141
- if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function")
9142
- throw new TypeError("Cannot use 'in' operator on non-object");
9143
- return typeof state === "function" ? receiver === state : state.has(receiver);
9144
- };
9145
- __addDisposableResource = function(env, value, async) {
9146
- if (value !== null && value !== undefined) {
9147
- if (typeof value !== "object" && typeof value !== "function")
9148
- throw new TypeError("Object expected.");
9149
- var dispose, inner;
9150
- if (async) {
9151
- if (!Symbol.asyncDispose)
9152
- throw new TypeError("Symbol.asyncDispose is not defined.");
9153
- dispose = value[Symbol.asyncDispose];
9154
- }
9155
- if (dispose === undefined) {
9156
- if (!Symbol.dispose)
9157
- throw new TypeError("Symbol.dispose is not defined.");
9158
- dispose = value[Symbol.dispose];
9159
- if (async)
9160
- inner = dispose;
9161
- }
9162
- if (typeof dispose !== "function")
9163
- throw new TypeError("Object not disposable.");
9164
- if (inner)
9165
- dispose = function() {
9166
- try {
9167
- inner.call(this);
9168
- } catch (e2) {
9169
- return Promise.reject(e2);
9170
- }
9171
- };
9172
- env.stack.push({ value, dispose, async });
9173
- } else if (async) {
9174
- env.stack.push({ async: true });
9175
- }
9176
- return value;
9177
- };
9178
- var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
9179
- var e2 = new Error(message);
9180
- return e2.name = "SuppressedError", e2.error = error, e2.suppressed = suppressed, e2;
9181
- };
9182
- __disposeResources = function(env) {
9183
- function fail(e2) {
9184
- env.error = env.hasError ? new _SuppressedError(e2, env.error, "An error was suppressed during disposal.") : e2;
9185
- env.hasError = true;
9186
- }
9187
- var r2, s2 = 0;
9188
- function next() {
9189
- while (r2 = env.stack.pop()) {
9190
- try {
9191
- if (!r2.async && s2 === 1)
9192
- return s2 = 0, env.stack.push(r2), Promise.resolve().then(next);
9193
- if (r2.dispose) {
9194
- var result = r2.dispose.call(r2.value);
9195
- if (r2.async)
9196
- return s2 |= 2, Promise.resolve(result).then(next, function(e2) {
9197
- fail(e2);
9198
- return next();
9199
- });
9200
- } else
9201
- s2 |= 1;
9202
- } catch (e2) {
9203
- fail(e2);
9204
- }
9205
- }
9206
- if (s2 === 1)
9207
- return env.hasError ? Promise.reject(env.error) : Promise.resolve();
9208
- if (env.hasError)
9209
- throw env.error;
9210
- }
9211
- return next();
9212
- };
9213
- __rewriteRelativeImportExtension = function(path, preserveJsx) {
9214
- if (typeof path === "string" && /^\.\.?\//.test(path)) {
9215
- return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m2, tsx, d2, ext, cm) {
9216
- return tsx ? preserveJsx ? ".jsx" : ".js" : d2 && (!ext || !cm) ? m2 : d2 + ext + "." + cm.toLowerCase() + "js";
7701
+ throw RangeError("Invalid numberingSystems: ".concat(numberingSystem));
7702
+ }
7703
+ opt.nu = numberingSystem;
7704
+ var r2 = (0, intl_localematcher_1.ResolveLocale)(Array.from(availableLocales), requestedLocales, opt, ["nu"], localeData, getDefaultLocale);
7705
+ var dataLocaleData = localeData[r2.dataLocale];
7706
+ (0, utils_1.invariant)(!!dataLocaleData, "Missing locale data for ".concat(r2.dataLocale));
7707
+ var internalSlots = getInternalSlots(nf);
7708
+ internalSlots.locale = r2.locale;
7709
+ internalSlots.dataLocale = r2.dataLocale;
7710
+ internalSlots.numberingSystem = r2.nu;
7711
+ internalSlots.dataLocaleData = dataLocaleData;
7712
+ (0, SetNumberFormatUnitOptions_1.SetNumberFormatUnitOptions)(nf, options, { getInternalSlots });
7713
+ var style = internalSlots.style;
7714
+ var mnfdDefault;
7715
+ var mxfdDefault;
7716
+ if (style === "currency") {
7717
+ var currency = internalSlots.currency;
7718
+ var cDigits = (0, CurrencyDigits_1.CurrencyDigits)(currency, { currencyDigitsData });
7719
+ mnfdDefault = cDigits;
7720
+ mxfdDefault = cDigits;
7721
+ } else {
7722
+ mnfdDefault = 0;
7723
+ mxfdDefault = style === "percent" ? 0 : 3;
7724
+ }
7725
+ var notation = (0, GetOption_1.GetOption)(options, "notation", "string", ["standard", "scientific", "engineering", "compact"], "standard");
7726
+ internalSlots.notation = notation;
7727
+ (0, SetNumberFormatDigitOptions_1.SetNumberFormatDigitOptions)(internalSlots, options, mnfdDefault, mxfdDefault, notation);
7728
+ var roundingIncrement = (0, GetNumberOption_1.GetNumberOption)(options, "roundingIncrement", 1, 5000, 1);
7729
+ if (VALID_ROUND_INCREMENT_VALUES.indexOf(roundingIncrement) === -1) {
7730
+ throw new RangeError("Invalid rounding increment value: ".concat(roundingIncrement, `.
7731
+ Valid values are `).concat(VALID_ROUND_INCREMENT_VALUES, "."));
7732
+ }
7733
+ if (roundingIncrement !== 1 && internalSlots.roundingType !== "fractionDigits") {
7734
+ throw new TypeError("For roundingIncrement > 1 only fractionDigits is a valid roundingType");
7735
+ }
7736
+ if (roundingIncrement !== 1 && internalSlots.maximumFractionDigits !== internalSlots.minimumFractionDigits) {
7737
+ throw new RangeError("With roundingIncrement > 1, maximumFractionDigits and minimumFractionDigits must be equal.");
7738
+ }
7739
+ internalSlots.roundingIncrement = roundingIncrement;
7740
+ var trailingZeroDisplay = (0, GetOption_1.GetOption)(options, "trailingZeroDisplay", "string", ["auto", "stripIfInteger"], "auto");
7741
+ internalSlots.trailingZeroDisplay = trailingZeroDisplay;
7742
+ var compactDisplay = (0, GetOption_1.GetOption)(options, "compactDisplay", "string", ["short", "long"], "short");
7743
+ var defaultUseGrouping = "auto";
7744
+ if (notation === "compact") {
7745
+ internalSlots.compactDisplay = compactDisplay;
7746
+ defaultUseGrouping = "min2";
7747
+ }
7748
+ internalSlots.useGrouping = (0, GetStringOrBooleanOption_1.GetStringOrBooleanOption)(options, "useGrouping", ["min2", "auto", "always"], "always", false, defaultUseGrouping);
7749
+ internalSlots.signDisplay = (0, GetOption_1.GetOption)(options, "signDisplay", "string", ["auto", "never", "always", "exceptZero", "negative"], "auto");
7750
+ internalSlots.roundingMode = (0, GetOption_1.GetOption)(options, "roundingMode", "string", [
7751
+ "ceil",
7752
+ "floor",
7753
+ "expand",
7754
+ "trunc",
7755
+ "halfCeil",
7756
+ "halfFloor",
7757
+ "halfExpand",
7758
+ "halfTrunc",
7759
+ "halfEven"
7760
+ ], "halfExpand");
7761
+ return nf;
7762
+ }
7763
+ exports2.InitializeNumberFormat = InitializeNumberFormat;
7764
+ });
7765
+
7766
+ // node_modules/@formatjs/ecma402-abstract/PartitionPattern.js
7767
+ var require_PartitionPattern = __commonJS((exports2) => {
7768
+ Object.defineProperty(exports2, "__esModule", { value: true });
7769
+ exports2.PartitionPattern = undefined;
7770
+ var utils_1 = require_utils();
7771
+ function PartitionPattern(pattern) {
7772
+ var result = [];
7773
+ var beginIndex = pattern.indexOf("{");
7774
+ var endIndex = 0;
7775
+ var nextIndex = 0;
7776
+ var length = pattern.length;
7777
+ while (beginIndex < pattern.length && beginIndex > -1) {
7778
+ endIndex = pattern.indexOf("}", beginIndex);
7779
+ (0, utils_1.invariant)(endIndex > beginIndex, "Invalid pattern ".concat(pattern));
7780
+ if (beginIndex > nextIndex) {
7781
+ result.push({
7782
+ type: "literal",
7783
+ value: pattern.substring(nextIndex, beginIndex)
9217
7784
  });
9218
7785
  }
9219
- return path;
7786
+ result.push({
7787
+ type: pattern.substring(beginIndex + 1, endIndex),
7788
+ value: undefined
7789
+ });
7790
+ nextIndex = endIndex + 1;
7791
+ beginIndex = pattern.indexOf("{", nextIndex);
7792
+ }
7793
+ if (nextIndex < length) {
7794
+ result.push({
7795
+ type: "literal",
7796
+ value: pattern.substring(nextIndex, length)
7797
+ });
7798
+ }
7799
+ return result;
7800
+ }
7801
+ exports2.PartitionPattern = PartitionPattern;
7802
+ });
7803
+
7804
+ // node_modules/@formatjs/ecma402-abstract/SupportedLocales.js
7805
+ var require_SupportedLocales = __commonJS((exports2) => {
7806
+ Object.defineProperty(exports2, "__esModule", { value: true });
7807
+ exports2.SupportedLocales = undefined;
7808
+ var intl_localematcher_1 = require_intl_localematcher();
7809
+ var _262_1 = require_262();
7810
+ var GetOption_1 = require_GetOption();
7811
+ function SupportedLocales(availableLocales, requestedLocales, options) {
7812
+ var matcher = "best fit";
7813
+ if (options !== undefined) {
7814
+ options = (0, _262_1.ToObject)(options);
7815
+ matcher = (0, GetOption_1.GetOption)(options, "localeMatcher", "string", ["lookup", "best fit"], "best fit");
7816
+ }
7817
+ if (matcher === "best fit") {
7818
+ return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
7819
+ }
7820
+ return (0, intl_localematcher_1.LookupSupportedLocales)(Array.from(availableLocales), requestedLocales);
7821
+ }
7822
+ exports2.SupportedLocales = SupportedLocales;
7823
+ });
7824
+
7825
+ // node_modules/@formatjs/ecma402-abstract/data.js
7826
+ var require_data = __commonJS((exports2) => {
7827
+ Object.defineProperty(exports2, "__esModule", { value: true });
7828
+ exports2.isMissingLocaleDataError = undefined;
7829
+ var tslib_1 = require_tslib();
7830
+ var MissingLocaleDataError = function(_super) {
7831
+ tslib_1.__extends(MissingLocaleDataError2, _super);
7832
+ function MissingLocaleDataError2() {
7833
+ var _this = _super !== null && _super.apply(this, arguments) || this;
7834
+ _this.type = "MISSING_LOCALE_DATA";
7835
+ return _this;
7836
+ }
7837
+ return MissingLocaleDataError2;
7838
+ }(Error);
7839
+ function isMissingLocaleDataError(e2) {
7840
+ return e2.type === "MISSING_LOCALE_DATA";
7841
+ }
7842
+ exports2.isMissingLocaleDataError = isMissingLocaleDataError;
7843
+ });
7844
+
7845
+ // node_modules/@formatjs/ecma402-abstract/types/relative-time.js
7846
+ var require_relative_time = __commonJS((exports2) => {
7847
+ Object.defineProperty(exports2, "__esModule", { value: true });
7848
+ });
7849
+
7850
+ // node_modules/@formatjs/ecma402-abstract/types/date-time.js
7851
+ var require_date_time = __commonJS((exports2) => {
7852
+ Object.defineProperty(exports2, "__esModule", { value: true });
7853
+ exports2.RangePatternType = undefined;
7854
+ var RangePatternType;
7855
+ (function(RangePatternType2) {
7856
+ RangePatternType2["startRange"] = "startRange";
7857
+ RangePatternType2["shared"] = "shared";
7858
+ RangePatternType2["endRange"] = "endRange";
7859
+ })(RangePatternType || (exports2.RangePatternType = RangePatternType = {}));
7860
+ });
7861
+
7862
+ // node_modules/@formatjs/ecma402-abstract/types/list.js
7863
+ var require_list = __commonJS((exports2) => {
7864
+ Object.defineProperty(exports2, "__esModule", { value: true });
7865
+ });
7866
+
7867
+ // node_modules/@formatjs/ecma402-abstract/types/plural-rules.js
7868
+ var require_plural_rules = __commonJS((exports2) => {
7869
+ Object.defineProperty(exports2, "__esModule", { value: true });
7870
+ });
7871
+
7872
+ // node_modules/@formatjs/ecma402-abstract/types/number.js
7873
+ var require_number = __commonJS((exports2) => {
7874
+ Object.defineProperty(exports2, "__esModule", { value: true });
7875
+ });
7876
+
7877
+ // node_modules/@formatjs/ecma402-abstract/types/displaynames.js
7878
+ var require_displaynames = __commonJS((exports2) => {
7879
+ Object.defineProperty(exports2, "__esModule", { value: true });
7880
+ });
7881
+
7882
+ // node_modules/@formatjs/ecma402-abstract/index.js
7883
+ var require_ecma402_abstract = __commonJS((exports2) => {
7884
+ Object.defineProperty(exports2, "__esModule", { value: true });
7885
+ exports2.invariant = exports2.isMissingLocaleDataError = exports2.defineProperty = exports2.getMagnitude = exports2.setMultiInternalSlots = exports2.setInternalSlot = exports2.isLiteralPart = exports2.getMultiInternalSlots = exports2.getInternalSlot = exports2._formatToParts = undefined;
7886
+ var tslib_1 = require_tslib();
7887
+ tslib_1.__exportStar(require_CanonicalizeLocaleList(), exports2);
7888
+ tslib_1.__exportStar(require_CanonicalizeTimeZoneName(), exports2);
7889
+ tslib_1.__exportStar(require_CoerceOptionsToObject(), exports2);
7890
+ tslib_1.__exportStar(require_GetNumberOption(), exports2);
7891
+ tslib_1.__exportStar(require_GetOption(), exports2);
7892
+ tslib_1.__exportStar(require_GetOptionsObject(), exports2);
7893
+ tslib_1.__exportStar(require_GetStringOrBooleanOption(), exports2);
7894
+ tslib_1.__exportStar(require_IsSanctionedSimpleUnitIdentifier(), exports2);
7895
+ tslib_1.__exportStar(require_IsValidTimeZoneName(), exports2);
7896
+ tslib_1.__exportStar(require_IsWellFormedCurrencyCode(), exports2);
7897
+ tslib_1.__exportStar(require_IsWellFormedUnitIdentifier(), exports2);
7898
+ tslib_1.__exportStar(require_ApplyUnsignedRoundingMode(), exports2);
7899
+ tslib_1.__exportStar(require_CollapseNumberRange(), exports2);
7900
+ tslib_1.__exportStar(require_ComputeExponent(), exports2);
7901
+ tslib_1.__exportStar(require_ComputeExponentForMagnitude(), exports2);
7902
+ tslib_1.__exportStar(require_CurrencyDigits(), exports2);
7903
+ tslib_1.__exportStar(require_FormatApproximately(), exports2);
7904
+ tslib_1.__exportStar(require_FormatNumericRange(), exports2);
7905
+ tslib_1.__exportStar(require_FormatNumericRangeToParts(), exports2);
7906
+ tslib_1.__exportStar(require_FormatNumericToParts(), exports2);
7907
+ tslib_1.__exportStar(require_FormatNumericToString(), exports2);
7908
+ tslib_1.__exportStar(require_GetUnsignedRoundingMode(), exports2);
7909
+ tslib_1.__exportStar(require_InitializeNumberFormat(), exports2);
7910
+ tslib_1.__exportStar(require_PartitionNumberPattern(), exports2);
7911
+ tslib_1.__exportStar(require_PartitionNumberRangePattern(), exports2);
7912
+ tslib_1.__exportStar(require_SetNumberFormatDigitOptions(), exports2);
7913
+ tslib_1.__exportStar(require_SetNumberFormatUnitOptions(), exports2);
7914
+ tslib_1.__exportStar(require_ToRawFixed(), exports2);
7915
+ tslib_1.__exportStar(require_ToRawPrecision(), exports2);
7916
+ var format_to_parts_1 = require_format_to_parts();
7917
+ Object.defineProperty(exports2, "_formatToParts", { enumerable: true, get: function() {
7918
+ return tslib_1.__importDefault(format_to_parts_1).default;
7919
+ } });
7920
+ tslib_1.__exportStar(require_PartitionPattern(), exports2);
7921
+ tslib_1.__exportStar(require_SupportedLocales(), exports2);
7922
+ var utils_1 = require_utils();
7923
+ Object.defineProperty(exports2, "getInternalSlot", { enumerable: true, get: function() {
7924
+ return utils_1.getInternalSlot;
7925
+ } });
7926
+ Object.defineProperty(exports2, "getMultiInternalSlots", { enumerable: true, get: function() {
7927
+ return utils_1.getMultiInternalSlots;
7928
+ } });
7929
+ Object.defineProperty(exports2, "isLiteralPart", { enumerable: true, get: function() {
7930
+ return utils_1.isLiteralPart;
7931
+ } });
7932
+ Object.defineProperty(exports2, "setInternalSlot", { enumerable: true, get: function() {
7933
+ return utils_1.setInternalSlot;
7934
+ } });
7935
+ Object.defineProperty(exports2, "setMultiInternalSlots", { enumerable: true, get: function() {
7936
+ return utils_1.setMultiInternalSlots;
7937
+ } });
7938
+ Object.defineProperty(exports2, "getMagnitude", { enumerable: true, get: function() {
7939
+ return utils_1.getMagnitude;
7940
+ } });
7941
+ Object.defineProperty(exports2, "defineProperty", { enumerable: true, get: function() {
7942
+ return utils_1.defineProperty;
7943
+ } });
7944
+ var data_1 = require_data();
7945
+ Object.defineProperty(exports2, "isMissingLocaleDataError", { enumerable: true, get: function() {
7946
+ return data_1.isMissingLocaleDataError;
7947
+ } });
7948
+ tslib_1.__exportStar(require_relative_time(), exports2);
7949
+ tslib_1.__exportStar(require_date_time(), exports2);
7950
+ tslib_1.__exportStar(require_list(), exports2);
7951
+ tslib_1.__exportStar(require_plural_rules(), exports2);
7952
+ tslib_1.__exportStar(require_number(), exports2);
7953
+ tslib_1.__exportStar(require_displaynames(), exports2);
7954
+ var utils_2 = require_utils();
7955
+ Object.defineProperty(exports2, "invariant", { enumerable: true, get: function() {
7956
+ return utils_2.invariant;
7957
+ } });
7958
+ tslib_1.__exportStar(require_262(), exports2);
7959
+ });
7960
+
7961
+ // node_modules/@formatjs/intl/src/types.js
7962
+ var require_types = __commonJS((exports2) => {
7963
+ Object.defineProperty(exports2, "__esModule", { value: true });
7964
+ });
7965
+
7966
+ // node_modules/@formatjs/icu-messageformat-parser/error.js
7967
+ var require_error = __commonJS((exports2) => {
7968
+ Object.defineProperty(exports2, "__esModule", { value: true });
7969
+ exports2.ErrorKind = undefined;
7970
+ var ErrorKind;
7971
+ (function(ErrorKind2) {
7972
+ ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_CLOSING_BRACE"] = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE";
7973
+ ErrorKind2[ErrorKind2["EMPTY_ARGUMENT"] = 2] = "EMPTY_ARGUMENT";
7974
+ ErrorKind2[ErrorKind2["MALFORMED_ARGUMENT"] = 3] = "MALFORMED_ARGUMENT";
7975
+ ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_TYPE"] = 4] = "EXPECT_ARGUMENT_TYPE";
7976
+ ErrorKind2[ErrorKind2["INVALID_ARGUMENT_TYPE"] = 5] = "INVALID_ARGUMENT_TYPE";
7977
+ ErrorKind2[ErrorKind2["EXPECT_ARGUMENT_STYLE"] = 6] = "EXPECT_ARGUMENT_STYLE";
7978
+ ErrorKind2[ErrorKind2["INVALID_NUMBER_SKELETON"] = 7] = "INVALID_NUMBER_SKELETON";
7979
+ ErrorKind2[ErrorKind2["INVALID_DATE_TIME_SKELETON"] = 8] = "INVALID_DATE_TIME_SKELETON";
7980
+ ErrorKind2[ErrorKind2["EXPECT_NUMBER_SKELETON"] = 9] = "EXPECT_NUMBER_SKELETON";
7981
+ ErrorKind2[ErrorKind2["EXPECT_DATE_TIME_SKELETON"] = 10] = "EXPECT_DATE_TIME_SKELETON";
7982
+ ErrorKind2[ErrorKind2["UNCLOSED_QUOTE_IN_ARGUMENT_STYLE"] = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE";
7983
+ ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_OPTIONS"] = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS";
7984
+ ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE"] = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE";
7985
+ ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_OFFSET_VALUE"] = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE";
7986
+ ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR"] = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR";
7987
+ ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR"] = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR";
7988
+ ErrorKind2[ErrorKind2["EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT"] = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT";
7989
+ ErrorKind2[ErrorKind2["EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT"] = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT";
7990
+ ErrorKind2[ErrorKind2["INVALID_PLURAL_ARGUMENT_SELECTOR"] = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR";
7991
+ ErrorKind2[ErrorKind2["DUPLICATE_PLURAL_ARGUMENT_SELECTOR"] = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR";
7992
+ ErrorKind2[ErrorKind2["DUPLICATE_SELECT_ARGUMENT_SELECTOR"] = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR";
7993
+ ErrorKind2[ErrorKind2["MISSING_OTHER_CLAUSE"] = 22] = "MISSING_OTHER_CLAUSE";
7994
+ ErrorKind2[ErrorKind2["INVALID_TAG"] = 23] = "INVALID_TAG";
7995
+ ErrorKind2[ErrorKind2["INVALID_TAG_NAME"] = 25] = "INVALID_TAG_NAME";
7996
+ ErrorKind2[ErrorKind2["UNMATCHED_CLOSING_TAG"] = 26] = "UNMATCHED_CLOSING_TAG";
7997
+ ErrorKind2[ErrorKind2["UNCLOSED_TAG"] = 27] = "UNCLOSED_TAG";
7998
+ })(ErrorKind || (exports2.ErrorKind = ErrorKind = {}));
7999
+ });
8000
+
8001
+ // node_modules/@formatjs/icu-messageformat-parser/types.js
8002
+ var require_types2 = __commonJS((exports2) => {
8003
+ Object.defineProperty(exports2, "__esModule", { value: true });
8004
+ exports2.createNumberElement = exports2.createLiteralElement = exports2.isDateTimeSkeleton = exports2.isNumberSkeleton = exports2.isTagElement = exports2.isPoundElement = exports2.isPluralElement = exports2.isSelectElement = exports2.isTimeElement = exports2.isDateElement = exports2.isNumberElement = exports2.isArgumentElement = exports2.isLiteralElement = exports2.SKELETON_TYPE = exports2.TYPE = undefined;
8005
+ var TYPE;
8006
+ (function(TYPE2) {
8007
+ TYPE2[TYPE2["literal"] = 0] = "literal";
8008
+ TYPE2[TYPE2["argument"] = 1] = "argument";
8009
+ TYPE2[TYPE2["number"] = 2] = "number";
8010
+ TYPE2[TYPE2["date"] = 3] = "date";
8011
+ TYPE2[TYPE2["time"] = 4] = "time";
8012
+ TYPE2[TYPE2["select"] = 5] = "select";
8013
+ TYPE2[TYPE2["plural"] = 6] = "plural";
8014
+ TYPE2[TYPE2["pound"] = 7] = "pound";
8015
+ TYPE2[TYPE2["tag"] = 8] = "tag";
8016
+ })(TYPE || (exports2.TYPE = TYPE = {}));
8017
+ var SKELETON_TYPE;
8018
+ (function(SKELETON_TYPE2) {
8019
+ SKELETON_TYPE2[SKELETON_TYPE2["number"] = 0] = "number";
8020
+ SKELETON_TYPE2[SKELETON_TYPE2["dateTime"] = 1] = "dateTime";
8021
+ })(SKELETON_TYPE || (exports2.SKELETON_TYPE = SKELETON_TYPE = {}));
8022
+ function isLiteralElement(el) {
8023
+ return el.type === TYPE.literal;
8024
+ }
8025
+ exports2.isLiteralElement = isLiteralElement;
8026
+ function isArgumentElement(el) {
8027
+ return el.type === TYPE.argument;
8028
+ }
8029
+ exports2.isArgumentElement = isArgumentElement;
8030
+ function isNumberElement(el) {
8031
+ return el.type === TYPE.number;
8032
+ }
8033
+ exports2.isNumberElement = isNumberElement;
8034
+ function isDateElement(el) {
8035
+ return el.type === TYPE.date;
8036
+ }
8037
+ exports2.isDateElement = isDateElement;
8038
+ function isTimeElement(el) {
8039
+ return el.type === TYPE.time;
8040
+ }
8041
+ exports2.isTimeElement = isTimeElement;
8042
+ function isSelectElement(el) {
8043
+ return el.type === TYPE.select;
8044
+ }
8045
+ exports2.isSelectElement = isSelectElement;
8046
+ function isPluralElement(el) {
8047
+ return el.type === TYPE.plural;
8048
+ }
8049
+ exports2.isPluralElement = isPluralElement;
8050
+ function isPoundElement(el) {
8051
+ return el.type === TYPE.pound;
8052
+ }
8053
+ exports2.isPoundElement = isPoundElement;
8054
+ function isTagElement(el) {
8055
+ return el.type === TYPE.tag;
8056
+ }
8057
+ exports2.isTagElement = isTagElement;
8058
+ function isNumberSkeleton(el) {
8059
+ return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.number);
8060
+ }
8061
+ exports2.isNumberSkeleton = isNumberSkeleton;
8062
+ function isDateTimeSkeleton(el) {
8063
+ return !!(el && typeof el === "object" && el.type === SKELETON_TYPE.dateTime);
8064
+ }
8065
+ exports2.isDateTimeSkeleton = isDateTimeSkeleton;
8066
+ function createLiteralElement(value) {
8067
+ return {
8068
+ type: TYPE.literal,
8069
+ value
9220
8070
  };
9221
- exporter("__extends", __extends);
9222
- exporter("__assign", __assign);
9223
- exporter("__rest", __rest);
9224
- exporter("__decorate", __decorate);
9225
- exporter("__param", __param);
9226
- exporter("__esDecorate", __esDecorate);
9227
- exporter("__runInitializers", __runInitializers);
9228
- exporter("__propKey", __propKey);
9229
- exporter("__setFunctionName", __setFunctionName);
9230
- exporter("__metadata", __metadata);
9231
- exporter("__awaiter", __awaiter);
9232
- exporter("__generator", __generator);
9233
- exporter("__exportStar", __exportStar);
9234
- exporter("__createBinding", __createBinding);
9235
- exporter("__values", __values);
9236
- exporter("__read", __read);
9237
- exporter("__spread", __spread);
9238
- exporter("__spreadArrays", __spreadArrays);
9239
- exporter("__spreadArray", __spreadArray);
9240
- exporter("__await", __await);
9241
- exporter("__asyncGenerator", __asyncGenerator);
9242
- exporter("__asyncDelegator", __asyncDelegator);
9243
- exporter("__asyncValues", __asyncValues);
9244
- exporter("__makeTemplateObject", __makeTemplateObject);
9245
- exporter("__importStar", __importStar);
9246
- exporter("__importDefault", __importDefault);
9247
- exporter("__classPrivateFieldGet", __classPrivateFieldGet);
9248
- exporter("__classPrivateFieldSet", __classPrivateFieldSet);
9249
- exporter("__classPrivateFieldIn", __classPrivateFieldIn);
9250
- exporter("__addDisposableResource", __addDisposableResource);
9251
- exporter("__disposeResources", __disposeResources);
9252
- exporter("__rewriteRelativeImportExtension", __rewriteRelativeImportExtension);
9253
- });
8071
+ }
8072
+ exports2.createLiteralElement = createLiteralElement;
8073
+ function createNumberElement(value, style) {
8074
+ return {
8075
+ type: TYPE.number,
8076
+ value,
8077
+ style
8078
+ };
8079
+ }
8080
+ exports2.createNumberElement = createNumberElement;
8081
+ });
8082
+
8083
+ // node_modules/@formatjs/icu-messageformat-parser/regex.generated.js
8084
+ var require_regex_generated2 = __commonJS((exports2) => {
8085
+ Object.defineProperty(exports2, "__esModule", { value: true });
8086
+ exports2.WHITE_SPACE_REGEX = exports2.SPACE_SEPARATOR_REGEX = undefined;
8087
+ exports2.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
8088
+ exports2.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
9254
8089
  });
9255
8090
 
9256
8091
  // node_modules/@formatjs/icu-skeleton-parser/date-time.js
@@ -9370,7 +8205,7 @@ var require_regex_generated3 = __commonJS((exports2) => {
9370
8205
  var require_number2 = __commonJS((exports2) => {
9371
8206
  Object.defineProperty(exports2, "__esModule", { value: true });
9372
8207
  exports2.parseNumberSkeleton = exports2.parseNumberSkeletonFromString = undefined;
9373
- var tslib_1 = require_tslib3();
8208
+ var tslib_1 = require_tslib();
9374
8209
  var regex_generated_1 = require_regex_generated3();
9375
8210
  function parseNumberSkeletonFromString(skeleton) {
9376
8211
  if (skeleton.length === 0) {
@@ -9664,7 +8499,7 @@ var require_number2 = __commonJS((exports2) => {
9664
8499
  // node_modules/@formatjs/icu-skeleton-parser/index.js
9665
8500
  var require_icu_skeleton_parser = __commonJS((exports2) => {
9666
8501
  Object.defineProperty(exports2, "__esModule", { value: true });
9667
- var tslib_1 = require_tslib3();
8502
+ var tslib_1 = require_tslib();
9668
8503
  tslib_1.__exportStar(require_date_time2(), exports2);
9669
8504
  tslib_1.__exportStar(require_number2(), exports2);
9670
8505
  });
@@ -46779,7 +45614,22 @@ var registerColorPicker = (app) => {
46779
45614
  components: {
46780
45615
  Input: () => Promise.resolve({ default: ColorPickerInput })
46781
45616
  },
46782
- options: {}
45617
+ options: {
45618
+ advanced: [
45619
+ {
45620
+ name: "required",
45621
+ type: "checkbox",
45622
+ intlLabel: {
45623
+ id: "form.attribute.item.requiredField",
45624
+ defaultMessage: "Required field"
45625
+ },
45626
+ description: {
45627
+ id: "form.attribute.item.requiredField.description",
45628
+ defaultMessage: "Cannot create entry if empty"
45629
+ }
45630
+ }
45631
+ ]
45632
+ }
46783
45633
  });
46784
45634
  };
46785
45635
 
@@ -47314,6 +46164,7 @@ var DataSelector = ({
47314
46164
  const { formatMessage } = import_react_intl3.useIntl();
47315
46165
  const { contentTypes } = import_admin2.unstable_useContentManagerContext();
47316
46166
  const client = import_admin2.useFetchClient();
46167
+ const { toggleNotification } = import_admin2.useNotification();
47317
46168
  const displayedContentTypes = React3.useMemo(() => contentTypes?.filter((ct) => ct.isDisplayed && !ct.uid.startsWith("plugin:")) || [], [contentTypes]);
47318
46169
  const loadCollectionData = React3.useCallback(async (contentType, currentPage = 1, currentPageSize = 10) => {
47319
46170
  setIsDataLoading(true);
@@ -47350,8 +46201,19 @@ var DataSelector = ({
47350
46201
  onChange(selectedData);
47351
46202
  setIsOpen(false);
47352
46203
  }
47353
- } catch (error) {
47354
- console.error("Failed to load single type data:", error);
46204
+ } catch (err) {
46205
+ const error = err?.response?.data?.error;
46206
+ if (error.status === 404) {
46207
+ toggleNotification({
46208
+ type: "warning",
46209
+ message: formatMessage({
46210
+ id: getTrad("data-select.single-type-not-found"),
46211
+ defaultMessage: 'Content type "{displayName}" is not filled yet. Please fill in the content type information and save it before trying again.'
46212
+ }, { displayName: contentType.info.displayName })
46213
+ });
46214
+ } else {
46215
+ console.error("Failed to load single type data:", error);
46216
+ }
47355
46217
  } finally {
47356
46218
  setIsDataLoading(false);
47357
46219
  }
@@ -47362,7 +46224,7 @@ var DataSelector = ({
47362
46224
  setPageSize(10);
47363
46225
  await loadCollectionData(contentType, 1, 10);
47364
46226
  }
47365
- }, [client, onChange, loadCollectionData]);
46227
+ }, [client, onChange, loadCollectionData, toggleNotification, formatMessage]);
47366
46228
  const handleBackToContentTypes = React3.useCallback(() => {
47367
46229
  setSelectedContentType(null);
47368
46230
  setDataItems([]);
@@ -48817,7 +47679,22 @@ var registerDataNested = (app) => {
48817
47679
  components: {
48818
47680
  Input: () => Promise.resolve({ default: DataNested })
48819
47681
  },
48820
- options: {}
47682
+ options: {
47683
+ advanced: [
47684
+ {
47685
+ name: "required",
47686
+ type: "checkbox",
47687
+ intlLabel: {
47688
+ id: "form.attribute.item.requiredField",
47689
+ defaultMessage: "Required field"
47690
+ },
47691
+ description: {
47692
+ id: "form.attribute.item.requiredField.description",
47693
+ defaultMessage: "Cannot create entry if empty"
47694
+ }
47695
+ }
47696
+ ]
47697
+ }
48821
47698
  });
48822
47699
  };
48823
47700
 
@@ -48871,7 +47748,22 @@ var registerDataSelect = (app) => {
48871
47748
  components: {
48872
47749
  Input: () => Promise.resolve({ default: DataSelectInput })
48873
47750
  },
48874
- options: {}
47751
+ options: {
47752
+ advanced: [
47753
+ {
47754
+ name: "required",
47755
+ type: "checkbox",
47756
+ intlLabel: {
47757
+ id: "form.attribute.item.requiredField",
47758
+ defaultMessage: "Required field"
47759
+ },
47760
+ description: {
47761
+ id: "form.attribute.item.requiredField.description",
47762
+ defaultMessage: "Cannot create entry if empty"
47763
+ }
47764
+ }
47765
+ ]
47766
+ }
48875
47767
  });
48876
47768
  };
48877
47769
 
@@ -50810,7 +49702,22 @@ var registerIconPicker = (app) => {
50810
49702
  components: {
50811
49703
  Input: () => Promise.resolve({ default: IconPickerInput })
50812
49704
  },
50813
- options: {}
49705
+ options: {
49706
+ advanced: [
49707
+ {
49708
+ name: "required",
49709
+ type: "checkbox",
49710
+ intlLabel: {
49711
+ id: "form.attribute.item.requiredField",
49712
+ defaultMessage: "Required field"
49713
+ },
49714
+ description: {
49715
+ id: "form.attribute.item.requiredField.description",
49716
+ defaultMessage: "Cannot create entry if empty"
49717
+ }
49718
+ }
49719
+ ]
49720
+ }
50814
49721
  });
50815
49722
  };
50816
49723
 
@@ -50902,6 +49809,9 @@ var SlugInput = React8.forwardRef(({ hint, labelAction, label, name, required, a
50902
49809
  if (!value || documentId && field.initialValue === value) {
50903
49810
  return;
50904
49811
  }
49812
+ if (!attribute?.unique) {
49813
+ return;
49814
+ }
50905
49815
  try {
50906
49816
  setIsCheckingAvailability(true);
50907
49817
  const { data } = await fetchClient.post(`/website/fields/check-available`, {
@@ -50927,6 +49837,7 @@ var SlugInput = React8.forwardRef(({ hint, labelAction, label, name, required, a
50927
49837
  setIsCheckingAvailability(false);
50928
49838
  }
50929
49839
  }, [
49840
+ attribute?.unique,
50930
49841
  contentType?.kind,
50931
49842
  contentType?.uid,
50932
49843
  documentId,
@@ -51022,58 +49933,6 @@ var SlugInput = React8.forwardRef(({ hint, labelAction, label, name, required, a
51022
49933
  }, undefined, false, undefined, this);
51023
49934
  });
51024
49935
  var registerSlugInput = (app) => {
51025
- const options = [
51026
- {
51027
- name: "options.target",
51028
- type: "text",
51029
- intlLabel: {
51030
- id: `${pluginId}.fields.slugInput.options.targetField.label`,
51031
- defaultMessage: "Target field"
51032
- },
51033
- description: {
51034
- id: `${pluginId}.fields.slugInput.options.targetField.description`,
51035
- defaultMessage: "After filling in the information, a slug will be automatically generated following the target field."
51036
- }
51037
- },
51038
- {
51039
- name: "options.unique",
51040
- type: "boolean-radio-group",
51041
- size: 12,
51042
- defaultValue: true,
51043
- intlLabel: {
51044
- id: `${pluginId}.fields.slugInput.options.unique.label`,
51045
- defaultMessage: "Unique check"
51046
- },
51047
- description: {
51048
- id: `${pluginId}.fields.slugInput.options.unique.description`,
51049
- defaultMessage: "Enable unique value checking?"
51050
- },
51051
- radios: [
51052
- {
51053
- title: {
51054
- id: `${pluginId}.fields.slugInput.options.unique.true.label`,
51055
- defaultMessage: "Enable"
51056
- },
51057
- description: {
51058
- id: `${pluginId}.fields.slugInput.options.unique.true.description`,
51059
- defaultMessage: "When enabled, it will perform a uniqueness check on the value."
51060
- },
51061
- value: true
51062
- },
51063
- {
51064
- title: {
51065
- id: `${pluginId}.fields.slugInput.options.unique.false.label`,
51066
- defaultMessage: "Disable"
51067
- },
51068
- description: {
51069
- id: `${pluginId}.fields.slugInput.options.unique.false.description`,
51070
- defaultMessage: "Disabling unique value checks will prevent the use of unique values."
51071
- },
51072
- value: false
51073
- }
51074
- ]
51075
- }
51076
- ];
51077
49936
  app.customFields.register({
51078
49937
  name: "slugInput",
51079
49938
  pluginId,
@@ -51091,7 +49950,70 @@ var registerSlugInput = (app) => {
51091
49950
  Input: () => Promise.resolve({ default: SlugInput })
51092
49951
  },
51093
49952
  options: {
51094
- base: options
49953
+ base: [
49954
+ {
49955
+ name: "options.target",
49956
+ type: "text",
49957
+ intlLabel: {
49958
+ id: `${pluginId}.fields.slugInput.options.targetField.label`,
49959
+ defaultMessage: "Target field"
49960
+ },
49961
+ description: {
49962
+ id: `${pluginId}.fields.slugInput.options.targetField.description`,
49963
+ defaultMessage: "Auto-generate slug from a text field. Leave empty to disable."
49964
+ }
49965
+ }
49966
+ ],
49967
+ advanced: [
49968
+ {
49969
+ name: "required",
49970
+ type: "checkbox",
49971
+ intlLabel: {
49972
+ id: "form.attribute.item.requiredField",
49973
+ defaultMessage: "Required field"
49974
+ },
49975
+ description: {
49976
+ id: "form.attribute.item.requiredField.description",
49977
+ defaultMessage: "Cannot create entry if empty"
49978
+ }
49979
+ },
49980
+ {
49981
+ name: "unique",
49982
+ type: "checkbox",
49983
+ intlLabel: {
49984
+ id: "form.attribute.item.uniqueField",
49985
+ defaultMessage: "Unique field"
49986
+ },
49987
+ description: {
49988
+ id: "form.attribute.item.uniqueField.description",
49989
+ defaultMessage: "Cannot create entry with duplicate value"
49990
+ }
49991
+ },
49992
+ {
49993
+ name: "minLength",
49994
+ type: "number",
49995
+ intlLabel: {
49996
+ id: "form.attribute.item.minimum",
49997
+ defaultMessage: "Minimum length"
49998
+ },
49999
+ description: {
50000
+ id: "form.attribute.item.minimum.description",
50001
+ defaultMessage: "Minimum character count"
50002
+ }
50003
+ },
50004
+ {
50005
+ name: "maxLength",
50006
+ type: "number",
50007
+ intlLabel: {
50008
+ id: "form.attribute.item.maximum",
50009
+ defaultMessage: "Maximum length"
50010
+ },
50011
+ description: {
50012
+ id: "form.attribute.item.maximum.description",
50013
+ defaultMessage: "Maximum character count"
50014
+ }
50015
+ }
50016
+ ]
51095
50017
  }
51096
50018
  });
51097
50019
  };