@learncard/learn-card-plugin 1.1.12 → 1.1.15

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.
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -45,16 +46,16 @@ var util;
45
46
  return obj;
46
47
  };
47
48
  util2.getValidEnumValues = (obj) => {
48
- const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
49
+ const validKeys = util2.objectKeys(obj).filter((k2) => typeof obj[obj[k2]] !== "number");
49
50
  const filtered = {};
50
- for (const k of validKeys) {
51
- filtered[k] = obj[k];
51
+ for (const k2 of validKeys) {
52
+ filtered[k2] = obj[k2];
52
53
  }
53
54
  return util2.objectValues(filtered);
54
55
  };
55
56
  util2.objectValues = (obj) => {
56
- return util2.objectKeys(obj).map(function(e) {
57
- return obj[e];
57
+ return util2.objectKeys(obj).map(function(e2) {
58
+ return obj[e2];
58
59
  });
59
60
  };
60
61
  util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
@@ -109,8 +110,8 @@ var ZodParsedType = util.arrayToEnum([
109
110
  "set"
110
111
  ]);
111
112
  var getParsedType = /* @__PURE__ */ __name((data) => {
112
- const t = typeof data;
113
- switch (t) {
113
+ const t2 = typeof data;
114
+ switch (t2) {
114
115
  case "undefined":
115
116
  return ZodParsedType.undefined;
116
117
  case "string":
@@ -210,10 +211,10 @@ var ZodError = class extends Error {
210
211
  fieldErrors._errors.push(mapper(issue));
211
212
  } else {
212
213
  let curr = fieldErrors;
213
- let i = 0;
214
- while (i < issue.path.length) {
215
- const el = issue.path[i];
216
- const terminal = i === issue.path.length - 1;
214
+ let i2 = 0;
215
+ while (i2 < issue.path.length) {
216
+ const el = issue.path[i2];
217
+ const terminal = i2 === issue.path.length - 1;
217
218
  if (!terminal) {
218
219
  curr[el] = curr[el] || { _errors: [] };
219
220
  } else {
@@ -221,7 +222,7 @@ var ZodError = class extends Error {
221
222
  curr[el]._errors.push(mapper(issue));
222
223
  }
223
224
  curr = curr[el];
224
- i++;
225
+ i2++;
225
226
  }
226
227
  }
227
228
  }
@@ -368,7 +369,7 @@ var makeIssue = /* @__PURE__ */ __name((params) => {
368
369
  path: fullPath
369
370
  };
370
371
  let errorMessage = "";
371
- const maps = errorMaps.filter((m) => !!m).slice().reverse();
372
+ const maps = errorMaps.filter((m3) => !!m3).slice().reverse();
372
373
  for (const map of maps) {
373
374
  errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
374
375
  }
@@ -389,7 +390,7 @@ function addIssueToContext(ctx, issueData) {
389
390
  ctx.schemaErrorMap,
390
391
  getErrorMap(),
391
392
  errorMap
392
- ].filter((x) => !!x)
393
+ ].filter((x2) => !!x2)
393
394
  });
394
395
  ctx.common.issues.push(issue);
395
396
  }
@@ -408,12 +409,12 @@ var ParseStatus = class {
408
409
  }
409
410
  static mergeArray(status, results) {
410
411
  const arrayValue = [];
411
- for (const s of results) {
412
- if (s.status === "aborted")
412
+ for (const s3 of results) {
413
+ if (s3.status === "aborted")
413
414
  return INVALID;
414
- if (s.status === "dirty")
415
+ if (s3.status === "dirty")
415
416
  status.dirty();
416
- arrayValue.push(s.value);
417
+ arrayValue.push(s3.value);
417
418
  }
418
419
  return { status: status.value, value: arrayValue };
419
420
  }
@@ -452,10 +453,10 @@ var INVALID = Object.freeze({
452
453
  });
453
454
  var DIRTY = /* @__PURE__ */ __name((value) => ({ status: "dirty", value }), "DIRTY");
454
455
  var OK = /* @__PURE__ */ __name((value) => ({ status: "valid", value }), "OK");
455
- var isAborted = /* @__PURE__ */ __name((x) => x.status === "aborted", "isAborted");
456
- var isDirty = /* @__PURE__ */ __name((x) => x.status === "dirty", "isDirty");
457
- var isValid = /* @__PURE__ */ __name((x) => x.status === "valid", "isValid");
458
- var isAsync = /* @__PURE__ */ __name((x) => typeof Promise !== void 0 && x instanceof Promise, "isAsync");
456
+ var isAborted = /* @__PURE__ */ __name((x2) => x2.status === "aborted", "isAborted");
457
+ var isDirty = /* @__PURE__ */ __name((x2) => x2.status === "dirty", "isDirty");
458
+ var isValid = /* @__PURE__ */ __name((x2) => x2.status === "valid", "isValid");
459
+ var isAsync = /* @__PURE__ */ __name((x2) => typeof Promise !== void 0 && x2 instanceof Promise, "isAsync");
459
460
  var errorUtil;
460
461
  (function(errorUtil2) {
461
462
  errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
@@ -786,11 +787,14 @@ var ZodString = class extends ZodType {
786
787
  const parsedType = this._getType(input);
787
788
  if (parsedType !== ZodParsedType.string) {
788
789
  const ctx2 = this._getOrReturnCtx(input);
789
- addIssueToContext(ctx2, {
790
- code: ZodIssueCode.invalid_type,
791
- expected: ZodParsedType.string,
792
- received: ctx2.parsedType
793
- });
790
+ addIssueToContext(
791
+ ctx2,
792
+ {
793
+ code: ZodIssueCode.invalid_type,
794
+ expected: ZodParsedType.string,
795
+ received: ctx2.parsedType
796
+ }
797
+ );
794
798
  return INVALID;
795
799
  }
796
800
  const status = new ParseStatus();
@@ -1633,14 +1637,14 @@ var ZodArray = class extends ZodType {
1633
1637
  }
1634
1638
  }
1635
1639
  if (ctx.common.async) {
1636
- return Promise.all(ctx.data.map((item, i) => {
1637
- return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1640
+ return Promise.all(ctx.data.map((item, i2) => {
1641
+ return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i2));
1638
1642
  })).then((result2) => {
1639
1643
  return ParseStatus.mergeArray(status, result2);
1640
1644
  });
1641
1645
  }
1642
- const result = ctx.data.map((item, i) => {
1643
- return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));
1646
+ const result = ctx.data.map((item, i2) => {
1647
+ return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i2));
1644
1648
  });
1645
1649
  return ParseStatus.mergeArray(status, result);
1646
1650
  }
@@ -1796,7 +1800,9 @@ var ZodObject = class extends ZodType {
1796
1800
  const value = ctx.data[key];
1797
1801
  pairs.push({
1798
1802
  key: { status: "valid", value: key },
1799
- value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),
1803
+ value: catchall._parse(
1804
+ new ParseInputLazyPath(ctx, value, ctx.path, key)
1805
+ ),
1800
1806
  alwaysSet: key in ctx.data
1801
1807
  });
1802
1808
  }
@@ -2169,17 +2175,17 @@ var ZodDiscriminatedUnion = class extends ZodType {
2169
2175
  }
2170
2176
  };
2171
2177
  __name(ZodDiscriminatedUnion, "ZodDiscriminatedUnion");
2172
- function mergeValues(a, b) {
2173
- const aType = getParsedType(a);
2174
- const bType = getParsedType(b);
2175
- if (a === b) {
2176
- return { valid: true, data: a };
2178
+ function mergeValues(a3, b2) {
2179
+ const aType = getParsedType(a3);
2180
+ const bType = getParsedType(b2);
2181
+ if (a3 === b2) {
2182
+ return { valid: true, data: a3 };
2177
2183
  } else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
2178
- const bKeys = util.objectKeys(b);
2179
- const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
2180
- const newObj = { ...a, ...b };
2184
+ const bKeys = util.objectKeys(b2);
2185
+ const sharedKeys = util.objectKeys(a3).filter((key) => bKeys.indexOf(key) !== -1);
2186
+ const newObj = { ...a3, ...b2 };
2181
2187
  for (const key of sharedKeys) {
2182
- const sharedValue = mergeValues(a[key], b[key]);
2188
+ const sharedValue = mergeValues(a3[key], b2[key]);
2183
2189
  if (!sharedValue.valid) {
2184
2190
  return { valid: false };
2185
2191
  }
@@ -2187,13 +2193,13 @@ function mergeValues(a, b) {
2187
2193
  }
2188
2194
  return { valid: true, data: newObj };
2189
2195
  } else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {
2190
- if (a.length !== b.length) {
2196
+ if (a3.length !== b2.length) {
2191
2197
  return { valid: false };
2192
2198
  }
2193
2199
  const newArray = [];
2194
- for (let index = 0; index < a.length; index++) {
2195
- const itemA = a[index];
2196
- const itemB = b[index];
2200
+ for (let index = 0; index < a3.length; index++) {
2201
+ const itemA = a3[index];
2202
+ const itemB = b2[index];
2197
2203
  const sharedValue = mergeValues(itemA, itemB);
2198
2204
  if (!sharedValue.valid) {
2199
2205
  return { valid: false };
@@ -2201,8 +2207,8 @@ function mergeValues(a, b) {
2201
2207
  newArray.push(sharedValue.data);
2202
2208
  }
2203
2209
  return { valid: true, data: newArray };
2204
- } else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) {
2205
- return { valid: true, data: a };
2210
+ } else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a3 === +b2) {
2211
+ return { valid: true, data: a3 };
2206
2212
  } else {
2207
2213
  return { valid: false };
2208
2214
  }
@@ -2299,7 +2305,7 @@ var ZodTuple = class extends ZodType {
2299
2305
  if (!schema)
2300
2306
  return null;
2301
2307
  return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
2302
- }).filter((x) => !!x);
2308
+ }).filter((x2) => !!x2);
2303
2309
  if (ctx.common.async) {
2304
2310
  return Promise.all(items).then((results) => {
2305
2311
  return ParseStatus.mergeArray(status, results);
@@ -2495,7 +2501,7 @@ var ZodSet = class extends ZodType {
2495
2501
  return { status: status.value, value: parsedSet };
2496
2502
  }
2497
2503
  __name(finalizeSet, "finalizeSet");
2498
- const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));
2504
+ const elements = [...ctx.data.values()].map((item, i2) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i2)));
2499
2505
  if (ctx.common.async) {
2500
2506
  return Promise.all(elements).then((elements2) => finalizeSet(elements2));
2501
2507
  } else {
@@ -2555,7 +2561,7 @@ var ZodFunction = class extends ZodType {
2555
2561
  ctx.schemaErrorMap,
2556
2562
  getErrorMap(),
2557
2563
  errorMap
2558
- ].filter((x) => !!x),
2564
+ ].filter((x2) => !!x2),
2559
2565
  issueData: {
2560
2566
  code: ZodIssueCode.invalid_arguments,
2561
2567
  argumentsError: error
@@ -2572,7 +2578,7 @@ var ZodFunction = class extends ZodType {
2572
2578
  ctx.schemaErrorMap,
2573
2579
  getErrorMap(),
2574
2580
  errorMap
2575
- ].filter((x) => !!x),
2581
+ ].filter((x2) => !!x2),
2576
2582
  issueData: {
2577
2583
  code: ZodIssueCode.invalid_return_type,
2578
2584
  returnTypeError: error
@@ -2585,13 +2591,13 @@ var ZodFunction = class extends ZodType {
2585
2591
  if (this._def.returns instanceof ZodPromise) {
2586
2592
  return OK(async (...args) => {
2587
2593
  const error = new ZodError([]);
2588
- const parsedArgs = await this._def.args.parseAsync(args, params).catch((e) => {
2589
- error.addIssue(makeArgsIssue(args, e));
2594
+ const parsedArgs = await this._def.args.parseAsync(args, params).catch((e2) => {
2595
+ error.addIssue(makeArgsIssue(args, e2));
2590
2596
  throw error;
2591
2597
  });
2592
2598
  const result = await fn(...parsedArgs);
2593
- const parsedReturns = await this._def.returns._def.type.parseAsync(result, params).catch((e) => {
2594
- error.addIssue(makeReturnsIssue(result, e));
2599
+ const parsedReturns = await this._def.returns._def.type.parseAsync(result, params).catch((e2) => {
2600
+ error.addIssue(makeReturnsIssue(result, e2));
2595
2601
  throw error;
2596
2602
  });
2597
2603
  return parsedReturns;
@@ -3117,10 +3123,10 @@ var ZodPipeline = class extends ZodType {
3117
3123
  }
3118
3124
  }
3119
3125
  }
3120
- static create(a, b) {
3126
+ static create(a3, b2) {
3121
3127
  return new ZodPipeline({
3122
- in: a,
3123
- out: b,
3128
+ in: a3,
3129
+ out: b2,
3124
3130
  typeName: ZodFirstPartyTypeKind.ZodPipeline
3125
3131
  });
3126
3132
  }
@@ -3347,11 +3353,13 @@ var AchievementCriteriaValidator = mod.object({
3347
3353
  type: mod.string().optional(),
3348
3354
  narrative: mod.string().optional()
3349
3355
  });
3350
- var ImageValidator = mod.string().or(mod.object({
3351
- id: mod.string(),
3352
- type: mod.string(),
3353
- caption: mod.string().optional()
3354
- }));
3356
+ var ImageValidator = mod.string().or(
3357
+ mod.object({
3358
+ id: mod.string(),
3359
+ type: mod.string(),
3360
+ caption: mod.string().optional()
3361
+ })
3362
+ );
3355
3363
  var GeoCoordinatesValidator = mod.object({
3356
3364
  type: mod.string().min(1).or(mod.string().array().nonempty()),
3357
3365
  latitude: mod.number(),
@@ -3393,29 +3401,31 @@ var IdentifierEntryValidator = mod.object({
3393
3401
  identifier: mod.string(),
3394
3402
  identifierType: IdentifierTypeValidator
3395
3403
  });
3396
- var ProfileValidator = mod.string().or(mod.object({
3397
- id: mod.string().optional(),
3398
- type: mod.string().or(mod.string().array().nonempty().optional()),
3399
- name: mod.string().optional(),
3400
- url: mod.string().optional(),
3401
- phone: mod.string().optional(),
3402
- description: mod.string().optional(),
3403
- endorsement: mod.any().array().optional(),
3404
- image: ImageValidator.optional(),
3405
- email: mod.string().email().optional(),
3406
- address: AddressValidator.optional(),
3407
- otherIdentifier: IdentifierEntryValidator.array().optional(),
3408
- official: mod.string().optional(),
3409
- parentOrg: mod.any().optional(),
3410
- familyName: mod.string().optional(),
3411
- givenName: mod.string().optional(),
3412
- additionalName: mod.string().optional(),
3413
- patronymicName: mod.string().optional(),
3414
- honorificPrefix: mod.string().optional(),
3415
- honorificSuffix: mod.string().optional(),
3416
- familyNamePrefix: mod.string().optional(),
3417
- dateOfBirth: mod.string().optional()
3418
- }).catchall(mod.any()));
3404
+ var ProfileValidator = mod.string().or(
3405
+ mod.object({
3406
+ id: mod.string().optional(),
3407
+ type: mod.string().or(mod.string().array().nonempty().optional()),
3408
+ name: mod.string().optional(),
3409
+ url: mod.string().optional(),
3410
+ phone: mod.string().optional(),
3411
+ description: mod.string().optional(),
3412
+ endorsement: mod.any().array().optional(),
3413
+ image: ImageValidator.optional(),
3414
+ email: mod.string().email().optional(),
3415
+ address: AddressValidator.optional(),
3416
+ otherIdentifier: IdentifierEntryValidator.array().optional(),
3417
+ official: mod.string().optional(),
3418
+ parentOrg: mod.any().optional(),
3419
+ familyName: mod.string().optional(),
3420
+ givenName: mod.string().optional(),
3421
+ additionalName: mod.string().optional(),
3422
+ patronymicName: mod.string().optional(),
3423
+ honorificPrefix: mod.string().optional(),
3424
+ honorificSuffix: mod.string().optional(),
3425
+ familyNamePrefix: mod.string().optional(),
3426
+ dateOfBirth: mod.string().optional()
3427
+ }).catchall(mod.any())
3428
+ );
3419
3429
  var CredentialSubjectValidator = mod.object({ id: mod.string().optional() }).catchall(mod.any());
3420
3430
  var CredentialStatusValidator = mod.object({ type: mod.string(), id: mod.string() }).catchall(mod.any());
3421
3431
  var CredentialSchemaValidator = mod.object({ id: mod.string(), type: mod.string() }).catchall(mod.any());
@@ -3484,15 +3494,17 @@ var JWEValidator = mod.object({
3484
3494
  aad: mod.string().optional(),
3485
3495
  recipients: JWERecipientValidator.array().optional()
3486
3496
  });
3487
- var VerificationMethodValidator = mod.string().or(mod.object({
3488
- "@context": ContextValidator.optional(),
3489
- id: mod.string(),
3490
- type: mod.string(),
3491
- controller: mod.string(),
3492
- publicKeyJwk: JWKValidator.optional(),
3493
- publicKeyBase58: mod.string().optional(),
3494
- blockChainAccountId: mod.string().optional()
3495
- }).catchall(mod.any()));
3497
+ var VerificationMethodValidator = mod.string().or(
3498
+ mod.object({
3499
+ "@context": ContextValidator.optional(),
3500
+ id: mod.string(),
3501
+ type: mod.string(),
3502
+ controller: mod.string(),
3503
+ publicKeyJwk: JWKValidator.optional(),
3504
+ publicKeyBase58: mod.string().optional(),
3505
+ blockChainAccountId: mod.string().optional()
3506
+ }).catchall(mod.any())
3507
+ );
3496
3508
  var ServiceValidator = mod.object({
3497
3509
  id: mod.string(),
3498
3510
  type: mod.string().or(mod.string().array().nonempty()),
@@ -3690,7 +3702,9 @@ var UnsignedAchievementCredentialValidator = UnsignedVCValidator.extend({
3690
3702
  name: mod.string().optional(),
3691
3703
  description: mod.string().optional(),
3692
3704
  image: ImageValidator.optional(),
3693
- credentialSubject: AchievementSubjectValidator.or(AchievementSubjectValidator.array()),
3705
+ credentialSubject: AchievementSubjectValidator.or(
3706
+ AchievementSubjectValidator.array()
3707
+ ),
3694
3708
  endorsement: UnsignedVCValidator.array().optional(),
3695
3709
  evidence: EvidenceValidator.array().optional()
3696
3710
  });
@@ -3919,7 +3933,9 @@ var ConsentFlowTransactionActionValidator = mod.enum([
3919
3933
  ]);
3920
3934
  var ConsentFlowTransactionsQueryValidator = mod.object({
3921
3935
  terms: ConsentFlowTermsQueryValidator.optional(),
3922
- action: ConsentFlowTransactionActionValidator.or(ConsentFlowTransactionActionValidator.array()).optional(),
3936
+ action: ConsentFlowTransactionActionValidator.or(
3937
+ ConsentFlowTransactionActionValidator.array()
3938
+ ).optional(),
3923
3939
  date: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
3924
3940
  expiresAt: mod.object({ $gt: mod.string() }).or(mod.object({ $lt: mod.string() })).or(mod.object({ $eq: mod.string() })).optional(),
3925
3941
  oneTime: mod.boolean().optional()
@@ -3964,7 +3980,18 @@ var LCNNotificationValidator = mod.object({
3964
3980
  sent: mod.string().datetime().optional()
3965
3981
  });
3966
3982
 
3967
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/toInteger/index.js
3983
+ // ../../../node_modules/.pnpm/@babel+runtime@7.25.6/node_modules/@babel/runtime/helpers/esm/typeof.js
3984
+ function _typeof(o) {
3985
+ "@babel/helpers - typeof";
3986
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
3987
+ return typeof o2;
3988
+ } : function(o2) {
3989
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
3990
+ }, _typeof(o);
3991
+ }
3992
+ __name(_typeof, "_typeof");
3993
+
3994
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/toInteger/index.js
3968
3995
  function toInteger(dirtyNumber) {
3969
3996
  if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
3970
3997
  return NaN;
@@ -3977,7 +4004,7 @@ function toInteger(dirtyNumber) {
3977
4004
  }
3978
4005
  __name(toInteger, "toInteger");
3979
4006
 
3980
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/requiredArgs/index.js
4007
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/requiredArgs/index.js
3981
4008
  function requiredArgs(required, args) {
3982
4009
  if (args.length < required) {
3983
4010
  throw new TypeError(required + " argument" + (required > 1 ? "s" : "") + " required, but only " + args.length + " present");
@@ -3985,17 +4012,17 @@ function requiredArgs(required, args) {
3985
4012
  }
3986
4013
  __name(requiredArgs, "requiredArgs");
3987
4014
 
3988
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/toDate/index.js
4015
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/toDate/index.js
3989
4016
  function toDate(argument) {
3990
4017
  requiredArgs(1, arguments);
3991
4018
  var argStr = Object.prototype.toString.call(argument);
3992
- if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
4019
+ if (argument instanceof Date || _typeof(argument) === "object" && argStr === "[object Date]") {
3993
4020
  return new Date(argument.getTime());
3994
4021
  } else if (typeof argument === "number" || argStr === "[object Number]") {
3995
4022
  return new Date(argument);
3996
4023
  } else {
3997
4024
  if ((typeof argument === "string" || argStr === "[object String]") && typeof console !== "undefined") {
3998
- console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule");
4025
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
3999
4026
  console.warn(new Error().stack);
4000
4027
  }
4001
4028
  return new Date(NaN);
@@ -4003,7 +4030,7 @@ function toDate(argument) {
4003
4030
  }
4004
4031
  __name(toDate, "toDate");
4005
4032
 
4006
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/addMilliseconds/index.js
4033
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/addMilliseconds/index.js
4007
4034
  function addMilliseconds(dirtyDate, dirtyAmount) {
4008
4035
  requiredArgs(2, arguments);
4009
4036
  var timestamp = toDate(dirtyDate).getTime();
@@ -4012,7 +4039,14 @@ function addMilliseconds(dirtyDate, dirtyAmount) {
4012
4039
  }
4013
4040
  __name(addMilliseconds, "addMilliseconds");
4014
4041
 
4015
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js
4042
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/defaultOptions/index.js
4043
+ var defaultOptions = {};
4044
+ function getDefaultOptions() {
4045
+ return defaultOptions;
4046
+ }
4047
+ __name(getDefaultOptions, "getDefaultOptions");
4048
+
4049
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js
4016
4050
  function getTimezoneOffsetInMilliseconds(date) {
4017
4051
  var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
4018
4052
  utcDate.setUTCFullYear(date.getFullYear());
@@ -4020,14 +4054,14 @@ function getTimezoneOffsetInMilliseconds(date) {
4020
4054
  }
4021
4055
  __name(getTimezoneOffsetInMilliseconds, "getTimezoneOffsetInMilliseconds");
4022
4056
 
4023
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/isDate/index.js
4057
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/isDate/index.js
4024
4058
  function isDate(value) {
4025
4059
  requiredArgs(1, arguments);
4026
- return value instanceof Date || typeof value === "object" && Object.prototype.toString.call(value) === "[object Date]";
4060
+ return value instanceof Date || _typeof(value) === "object" && Object.prototype.toString.call(value) === "[object Date]";
4027
4061
  }
4028
4062
  __name(isDate, "isDate");
4029
4063
 
4030
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/isValid/index.js
4064
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/isValid/index.js
4031
4065
  function isValid2(dirtyDate) {
4032
4066
  requiredArgs(1, arguments);
4033
4067
  if (!isDate(dirtyDate) && typeof dirtyDate !== "number") {
@@ -4038,705 +4072,220 @@ function isValid2(dirtyDate) {
4038
4072
  }
4039
4073
  __name(isValid2, "isValid");
4040
4074
 
4041
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js
4042
- var formatDistanceLocale = {
4043
- lessThanXSeconds: {
4044
- one: "less than a second",
4045
- other: "less than {{count}} seconds"
4046
- },
4047
- xSeconds: {
4048
- one: "1 second",
4049
- other: "{{count}} seconds"
4050
- },
4051
- halfAMinute: "half a minute",
4052
- lessThanXMinutes: {
4053
- one: "less than a minute",
4054
- other: "less than {{count}} minutes"
4055
- },
4056
- xMinutes: {
4057
- one: "1 minute",
4058
- other: "{{count}} minutes"
4059
- },
4060
- aboutXHours: {
4061
- one: "about 1 hour",
4062
- other: "about {{count}} hours"
4063
- },
4064
- xHours: {
4065
- one: "1 hour",
4066
- other: "{{count}} hours"
4067
- },
4068
- xDays: {
4069
- one: "1 day",
4070
- other: "{{count}} days"
4071
- },
4072
- aboutXWeeks: {
4073
- one: "about 1 week",
4074
- other: "about {{count}} weeks"
4075
- },
4076
- xWeeks: {
4077
- one: "1 week",
4078
- other: "{{count}} weeks"
4079
- },
4080
- aboutXMonths: {
4081
- one: "about 1 month",
4082
- other: "about {{count}} months"
4083
- },
4084
- xMonths: {
4085
- one: "1 month",
4086
- other: "{{count}} months"
4087
- },
4088
- aboutXYears: {
4089
- one: "about 1 year",
4090
- other: "about {{count}} years"
4091
- },
4092
- xYears: {
4093
- one: "1 year",
4094
- other: "{{count}} years"
4095
- },
4096
- overXYears: {
4097
- one: "over 1 year",
4098
- other: "over {{count}} years"
4099
- },
4100
- almostXYears: {
4101
- one: "almost 1 year",
4102
- other: "almost {{count}} years"
4103
- }
4104
- };
4105
- var formatDistance = /* @__PURE__ */ __name(function(token, count, options) {
4106
- var result;
4107
- var tokenValue = formatDistanceLocale[token];
4108
- if (typeof tokenValue === "string") {
4109
- result = tokenValue;
4110
- } else if (count === 1) {
4111
- result = tokenValue.one;
4075
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/subMilliseconds/index.js
4076
+ function subMilliseconds(dirtyDate, dirtyAmount) {
4077
+ requiredArgs(2, arguments);
4078
+ var amount = toInteger(dirtyAmount);
4079
+ return addMilliseconds(dirtyDate, -amount);
4080
+ }
4081
+ __name(subMilliseconds, "subMilliseconds");
4082
+
4083
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js
4084
+ var MILLISECONDS_IN_DAY = 864e5;
4085
+ function getUTCDayOfYear(dirtyDate) {
4086
+ requiredArgs(1, arguments);
4087
+ var date = toDate(dirtyDate);
4088
+ var timestamp = date.getTime();
4089
+ date.setUTCMonth(0, 1);
4090
+ date.setUTCHours(0, 0, 0, 0);
4091
+ var startOfYearTimestamp = date.getTime();
4092
+ var difference = timestamp - startOfYearTimestamp;
4093
+ return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
4094
+ }
4095
+ __name(getUTCDayOfYear, "getUTCDayOfYear");
4096
+
4097
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js
4098
+ function startOfUTCISOWeek(dirtyDate) {
4099
+ requiredArgs(1, arguments);
4100
+ var weekStartsOn = 1;
4101
+ var date = toDate(dirtyDate);
4102
+ var day = date.getUTCDay();
4103
+ var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
4104
+ date.setUTCDate(date.getUTCDate() - diff);
4105
+ date.setUTCHours(0, 0, 0, 0);
4106
+ return date;
4107
+ }
4108
+ __name(startOfUTCISOWeek, "startOfUTCISOWeek");
4109
+
4110
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js
4111
+ function getUTCISOWeekYear(dirtyDate) {
4112
+ requiredArgs(1, arguments);
4113
+ var date = toDate(dirtyDate);
4114
+ var year = date.getUTCFullYear();
4115
+ var fourthOfJanuaryOfNextYear = new Date(0);
4116
+ fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
4117
+ fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
4118
+ var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);
4119
+ var fourthOfJanuaryOfThisYear = new Date(0);
4120
+ fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
4121
+ fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
4122
+ var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
4123
+ if (date.getTime() >= startOfNextYear.getTime()) {
4124
+ return year + 1;
4125
+ } else if (date.getTime() >= startOfThisYear.getTime()) {
4126
+ return year;
4112
4127
  } else {
4113
- result = tokenValue.other.replace("{{count}}", count.toString());
4114
- }
4115
- if (options !== null && options !== void 0 && options.addSuffix) {
4116
- if (options.comparison && options.comparison > 0) {
4117
- return "in " + result;
4118
- } else {
4119
- return result + " ago";
4120
- }
4128
+ return year - 1;
4121
4129
  }
4122
- return result;
4123
- }, "formatDistance");
4124
- var formatDistance_default = formatDistance;
4125
-
4126
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js
4127
- function buildFormatLongFn(args) {
4128
- return function() {
4129
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4130
- var width = options.width ? String(options.width) : args.defaultWidth;
4131
- var format2 = args.formats[width] || args.formats[args.defaultWidth];
4132
- return format2;
4133
- };
4134
4130
  }
4135
- __name(buildFormatLongFn, "buildFormatLongFn");
4131
+ __name(getUTCISOWeekYear, "getUTCISOWeekYear");
4136
4132
 
4137
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js
4138
- var dateFormats = {
4139
- full: "EEEE, MMMM do, y",
4140
- long: "MMMM do, y",
4141
- medium: "MMM d, y",
4142
- short: "MM/dd/yyyy"
4143
- };
4144
- var timeFormats = {
4145
- full: "h:mm:ss a zzzz",
4146
- long: "h:mm:ss a z",
4147
- medium: "h:mm:ss a",
4148
- short: "h:mm a"
4149
- };
4150
- var dateTimeFormats = {
4151
- full: "{{date}} 'at' {{time}}",
4152
- long: "{{date}} 'at' {{time}}",
4153
- medium: "{{date}}, {{time}}",
4154
- short: "{{date}}, {{time}}"
4155
- };
4156
- var formatLong = {
4157
- date: buildFormatLongFn({
4158
- formats: dateFormats,
4159
- defaultWidth: "full"
4160
- }),
4161
- time: buildFormatLongFn({
4162
- formats: timeFormats,
4163
- defaultWidth: "full"
4164
- }),
4165
- dateTime: buildFormatLongFn({
4166
- formats: dateTimeFormats,
4167
- defaultWidth: "full"
4168
- })
4169
- };
4170
- var formatLong_default = formatLong;
4133
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js
4134
+ function startOfUTCISOWeekYear(dirtyDate) {
4135
+ requiredArgs(1, arguments);
4136
+ var year = getUTCISOWeekYear(dirtyDate);
4137
+ var fourthOfJanuary = new Date(0);
4138
+ fourthOfJanuary.setUTCFullYear(year, 0, 4);
4139
+ fourthOfJanuary.setUTCHours(0, 0, 0, 0);
4140
+ var date = startOfUTCISOWeek(fourthOfJanuary);
4141
+ return date;
4142
+ }
4143
+ __name(startOfUTCISOWeekYear, "startOfUTCISOWeekYear");
4171
4144
 
4172
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js
4173
- var formatRelativeLocale = {
4174
- lastWeek: "'last' eeee 'at' p",
4175
- yesterday: "'yesterday at' p",
4176
- today: "'today at' p",
4177
- tomorrow: "'tomorrow at' p",
4178
- nextWeek: "eeee 'at' p",
4179
- other: "P"
4180
- };
4181
- var formatRelative = /* @__PURE__ */ __name(function(token, _date, _baseDate, _options) {
4182
- return formatRelativeLocale[token];
4183
- }, "formatRelative");
4184
- var formatRelative_default = formatRelative;
4145
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js
4146
+ var MILLISECONDS_IN_WEEK = 6048e5;
4147
+ function getUTCISOWeek(dirtyDate) {
4148
+ requiredArgs(1, arguments);
4149
+ var date = toDate(dirtyDate);
4150
+ var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();
4151
+ return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
4152
+ }
4153
+ __name(getUTCISOWeek, "getUTCISOWeek");
4185
4154
 
4186
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js
4187
- function buildLocalizeFn(args) {
4188
- return function(dirtyIndex, dirtyOptions) {
4189
- var options = dirtyOptions || {};
4190
- var context = options.context ? String(options.context) : "standalone";
4191
- var valuesArray;
4192
- if (context === "formatting" && args.formattingValues) {
4193
- var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
4194
- var width = options.width ? String(options.width) : defaultWidth;
4195
- valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
4196
- } else {
4197
- var _defaultWidth = args.defaultWidth;
4198
- var _width = options.width ? String(options.width) : args.defaultWidth;
4199
- valuesArray = args.values[_width] || args.values[_defaultWidth];
4200
- }
4201
- var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
4202
- return valuesArray[index];
4203
- };
4155
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js
4156
+ function startOfUTCWeek(dirtyDate, options) {
4157
+ var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
4158
+ requiredArgs(1, arguments);
4159
+ var defaultOptions2 = getDefaultOptions();
4160
+ var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0);
4161
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
4162
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
4163
+ }
4164
+ var date = toDate(dirtyDate);
4165
+ var day = date.getUTCDay();
4166
+ var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
4167
+ date.setUTCDate(date.getUTCDate() - diff);
4168
+ date.setUTCHours(0, 0, 0, 0);
4169
+ return date;
4204
4170
  }
4205
- __name(buildLocalizeFn, "buildLocalizeFn");
4171
+ __name(startOfUTCWeek, "startOfUTCWeek");
4206
4172
 
4207
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js
4208
- var eraValues = {
4209
- narrow: ["B", "A"],
4210
- abbreviated: ["BC", "AD"],
4211
- wide: ["Before Christ", "Anno Domini"]
4212
- };
4213
- var quarterValues = {
4214
- narrow: ["1", "2", "3", "4"],
4215
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
4216
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
4217
- };
4218
- var monthValues = {
4219
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
4220
- abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
4221
- wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
4222
- };
4223
- var dayValues = {
4224
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
4225
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
4226
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
4227
- wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
4228
- };
4229
- var dayPeriodValues = {
4230
- narrow: {
4231
- am: "a",
4232
- pm: "p",
4233
- midnight: "mi",
4234
- noon: "n",
4235
- morning: "morning",
4236
- afternoon: "afternoon",
4237
- evening: "evening",
4238
- night: "night"
4239
- },
4240
- abbreviated: {
4241
- am: "AM",
4242
- pm: "PM",
4243
- midnight: "midnight",
4244
- noon: "noon",
4245
- morning: "morning",
4246
- afternoon: "afternoon",
4247
- evening: "evening",
4248
- night: "night"
4249
- },
4250
- wide: {
4251
- am: "a.m.",
4252
- pm: "p.m.",
4253
- midnight: "midnight",
4254
- noon: "noon",
4255
- morning: "morning",
4256
- afternoon: "afternoon",
4257
- evening: "evening",
4258
- night: "night"
4259
- }
4260
- };
4261
- var formattingDayPeriodValues = {
4262
- narrow: {
4263
- am: "a",
4264
- pm: "p",
4265
- midnight: "mi",
4266
- noon: "n",
4267
- morning: "in the morning",
4268
- afternoon: "in the afternoon",
4269
- evening: "in the evening",
4270
- night: "at night"
4271
- },
4272
- abbreviated: {
4273
- am: "AM",
4274
- pm: "PM",
4275
- midnight: "midnight",
4276
- noon: "noon",
4277
- morning: "in the morning",
4278
- afternoon: "in the afternoon",
4279
- evening: "in the evening",
4280
- night: "at night"
4281
- },
4282
- wide: {
4283
- am: "a.m.",
4284
- pm: "p.m.",
4285
- midnight: "midnight",
4286
- noon: "noon",
4287
- morning: "in the morning",
4288
- afternoon: "in the afternoon",
4289
- evening: "in the evening",
4290
- night: "at night"
4173
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js
4174
+ function getUTCWeekYear(dirtyDate, options) {
4175
+ var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
4176
+ requiredArgs(1, arguments);
4177
+ var date = toDate(dirtyDate);
4178
+ var year = date.getUTCFullYear();
4179
+ var defaultOptions2 = getDefaultOptions();
4180
+ var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
4181
+ if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
4182
+ throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
4291
4183
  }
4292
- };
4293
- var ordinalNumber = /* @__PURE__ */ __name(function(dirtyNumber, _options) {
4294
- var number = Number(dirtyNumber);
4295
- var rem100 = number % 100;
4296
- if (rem100 > 20 || rem100 < 10) {
4297
- switch (rem100 % 10) {
4298
- case 1:
4299
- return number + "st";
4300
- case 2:
4301
- return number + "nd";
4302
- case 3:
4303
- return number + "rd";
4304
- }
4184
+ var firstWeekOfNextYear = new Date(0);
4185
+ firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
4186
+ firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
4187
+ var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
4188
+ var firstWeekOfThisYear = new Date(0);
4189
+ firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
4190
+ firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
4191
+ var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
4192
+ if (date.getTime() >= startOfNextYear.getTime()) {
4193
+ return year + 1;
4194
+ } else if (date.getTime() >= startOfThisYear.getTime()) {
4195
+ return year;
4196
+ } else {
4197
+ return year - 1;
4305
4198
  }
4306
- return number + "th";
4307
- }, "ordinalNumber");
4308
- var localize = {
4309
- ordinalNumber,
4310
- era: buildLocalizeFn({
4311
- values: eraValues,
4312
- defaultWidth: "wide"
4313
- }),
4314
- quarter: buildLocalizeFn({
4315
- values: quarterValues,
4316
- defaultWidth: "wide",
4317
- argumentCallback: function(quarter) {
4318
- return quarter - 1;
4319
- }
4320
- }),
4321
- month: buildLocalizeFn({
4322
- values: monthValues,
4323
- defaultWidth: "wide"
4324
- }),
4325
- day: buildLocalizeFn({
4326
- values: dayValues,
4327
- defaultWidth: "wide"
4328
- }),
4329
- dayPeriod: buildLocalizeFn({
4330
- values: dayPeriodValues,
4331
- defaultWidth: "wide",
4332
- formattingValues: formattingDayPeriodValues,
4333
- defaultFormattingWidth: "wide"
4334
- })
4335
- };
4336
- var localize_default = localize;
4337
-
4338
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js
4339
- function buildMatchFn(args) {
4340
- return function(string) {
4341
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4342
- var width = options.width;
4343
- var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
4344
- var matchResult = string.match(matchPattern);
4345
- if (!matchResult) {
4346
- return null;
4347
- }
4348
- var matchedString = matchResult[0];
4349
- var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
4350
- var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function(pattern) {
4351
- return pattern.test(matchedString);
4352
- }) : findKey(parsePatterns, function(pattern) {
4353
- return pattern.test(matchedString);
4354
- });
4355
- var value;
4356
- value = args.valueCallback ? args.valueCallback(key) : key;
4357
- value = options.valueCallback ? options.valueCallback(value) : value;
4358
- var rest = string.slice(matchedString.length);
4359
- return {
4360
- value,
4361
- rest
4362
- };
4363
- };
4364
4199
  }
4365
- __name(buildMatchFn, "buildMatchFn");
4366
- function findKey(object, predicate) {
4367
- for (var key in object) {
4368
- if (object.hasOwnProperty(key) && predicate(object[key])) {
4369
- return key;
4370
- }
4371
- }
4372
- return void 0;
4200
+ __name(getUTCWeekYear, "getUTCWeekYear");
4201
+
4202
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js
4203
+ function startOfUTCWeekYear(dirtyDate, options) {
4204
+ var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
4205
+ requiredArgs(1, arguments);
4206
+ var defaultOptions2 = getDefaultOptions();
4207
+ var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
4208
+ var year = getUTCWeekYear(dirtyDate, options);
4209
+ var firstWeek = new Date(0);
4210
+ firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
4211
+ firstWeek.setUTCHours(0, 0, 0, 0);
4212
+ var date = startOfUTCWeek(firstWeek, options);
4213
+ return date;
4373
4214
  }
4374
- __name(findKey, "findKey");
4375
- function findIndex(array, predicate) {
4376
- for (var key = 0; key < array.length; key++) {
4377
- if (predicate(array[key])) {
4378
- return key;
4379
- }
4380
- }
4381
- return void 0;
4215
+ __name(startOfUTCWeekYear, "startOfUTCWeekYear");
4216
+
4217
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/getUTCWeek/index.js
4218
+ var MILLISECONDS_IN_WEEK2 = 6048e5;
4219
+ function getUTCWeek(dirtyDate, options) {
4220
+ requiredArgs(1, arguments);
4221
+ var date = toDate(dirtyDate);
4222
+ var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();
4223
+ return Math.round(diff / MILLISECONDS_IN_WEEK2) + 1;
4382
4224
  }
4383
- __name(findIndex, "findIndex");
4225
+ __name(getUTCWeek, "getUTCWeek");
4384
4226
 
4385
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js
4386
- function buildMatchPatternFn(args) {
4387
- return function(string) {
4388
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4389
- var matchResult = string.match(args.matchPattern);
4390
- if (!matchResult)
4391
- return null;
4392
- var matchedString = matchResult[0];
4393
- var parseResult = string.match(args.parsePattern);
4394
- if (!parseResult)
4395
- return null;
4396
- var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
4397
- value = options.valueCallback ? options.valueCallback(value) : value;
4398
- var rest = string.slice(matchedString.length);
4399
- return {
4400
- value,
4401
- rest
4402
- };
4403
- };
4227
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js
4228
+ function addLeadingZeros(number, targetLength) {
4229
+ var sign = number < 0 ? "-" : "";
4230
+ var output = Math.abs(number).toString();
4231
+ while (output.length < targetLength) {
4232
+ output = "0" + output;
4233
+ }
4234
+ return sign + output;
4404
4235
  }
4405
- __name(buildMatchPatternFn, "buildMatchPatternFn");
4236
+ __name(addLeadingZeros, "addLeadingZeros");
4406
4237
 
4407
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js
4408
- var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
4409
- var parseOrdinalNumberPattern = /\d+/i;
4410
- var matchEraPatterns = {
4411
- narrow: /^(b|a)/i,
4412
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
4413
- wide: /^(before christ|before common era|anno domini|common era)/i
4414
- };
4415
- var parseEraPatterns = {
4416
- any: [/^b/i, /^(a|c)/i]
4417
- };
4418
- var matchQuarterPatterns = {
4419
- narrow: /^[1234]/i,
4420
- abbreviated: /^q[1234]/i,
4421
- wide: /^[1234](th|st|nd|rd)? quarter/i
4422
- };
4423
- var parseQuarterPatterns = {
4424
- any: [/1/i, /2/i, /3/i, /4/i]
4425
- };
4426
- var matchMonthPatterns = {
4427
- narrow: /^[jfmasond]/i,
4428
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
4429
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
4430
- };
4431
- var parseMonthPatterns = {
4432
- narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
4433
- any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
4434
- };
4435
- var matchDayPatterns = {
4436
- narrow: /^[smtwf]/i,
4437
- short: /^(su|mo|tu|we|th|fr|sa)/i,
4438
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
4439
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
4440
- };
4441
- var parseDayPatterns = {
4442
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
4443
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
4444
- };
4445
- var matchDayPeriodPatterns = {
4446
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
4447
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
4448
- };
4449
- var parseDayPeriodPatterns = {
4450
- any: {
4451
- am: /^a/i,
4452
- pm: /^p/i,
4453
- midnight: /^mi/i,
4454
- noon: /^no/i,
4455
- morning: /morning/i,
4456
- afternoon: /afternoon/i,
4457
- evening: /evening/i,
4458
- night: /night/i
4459
- }
4460
- };
4461
- var match = {
4462
- ordinalNumber: buildMatchPatternFn({
4463
- matchPattern: matchOrdinalNumberPattern,
4464
- parsePattern: parseOrdinalNumberPattern,
4465
- valueCallback: function(value) {
4466
- return parseInt(value, 10);
4467
- }
4468
- }),
4469
- era: buildMatchFn({
4470
- matchPatterns: matchEraPatterns,
4471
- defaultMatchWidth: "wide",
4472
- parsePatterns: parseEraPatterns,
4473
- defaultParseWidth: "any"
4474
- }),
4475
- quarter: buildMatchFn({
4476
- matchPatterns: matchQuarterPatterns,
4477
- defaultMatchWidth: "wide",
4478
- parsePatterns: parseQuarterPatterns,
4479
- defaultParseWidth: "any",
4480
- valueCallback: function(index) {
4481
- return index + 1;
4482
- }
4483
- }),
4484
- month: buildMatchFn({
4485
- matchPatterns: matchMonthPatterns,
4486
- defaultMatchWidth: "wide",
4487
- parsePatterns: parseMonthPatterns,
4488
- defaultParseWidth: "any"
4489
- }),
4490
- day: buildMatchFn({
4491
- matchPatterns: matchDayPatterns,
4492
- defaultMatchWidth: "wide",
4493
- parsePatterns: parseDayPatterns,
4494
- defaultParseWidth: "any"
4495
- }),
4496
- dayPeriod: buildMatchFn({
4497
- matchPatterns: matchDayPeriodPatterns,
4498
- defaultMatchWidth: "any",
4499
- parsePatterns: parseDayPeriodPatterns,
4500
- defaultParseWidth: "any"
4501
- })
4502
- };
4503
- var match_default = match;
4504
-
4505
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/locale/en-US/index.js
4506
- var locale = {
4507
- code: "en-US",
4508
- formatDistance: formatDistance_default,
4509
- formatLong: formatLong_default,
4510
- formatRelative: formatRelative_default,
4511
- localize: localize_default,
4512
- match: match_default,
4513
- options: {
4514
- weekStartsOn: 0,
4515
- firstWeekContainsDate: 1
4516
- }
4517
- };
4518
- var en_US_default = locale;
4519
-
4520
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/subMilliseconds/index.js
4521
- function subMilliseconds(dirtyDate, dirtyAmount) {
4522
- requiredArgs(2, arguments);
4523
- var amount = toInteger(dirtyAmount);
4524
- return addMilliseconds(dirtyDate, -amount);
4525
- }
4526
- __name(subMilliseconds, "subMilliseconds");
4527
-
4528
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js
4529
- var MILLISECONDS_IN_DAY = 864e5;
4530
- function getUTCDayOfYear(dirtyDate) {
4531
- requiredArgs(1, arguments);
4532
- var date = toDate(dirtyDate);
4533
- var timestamp = date.getTime();
4534
- date.setUTCMonth(0, 1);
4535
- date.setUTCHours(0, 0, 0, 0);
4536
- var startOfYearTimestamp = date.getTime();
4537
- var difference = timestamp - startOfYearTimestamp;
4538
- return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
4539
- }
4540
- __name(getUTCDayOfYear, "getUTCDayOfYear");
4541
-
4542
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js
4543
- function startOfUTCISOWeek(dirtyDate) {
4544
- requiredArgs(1, arguments);
4545
- var weekStartsOn = 1;
4546
- var date = toDate(dirtyDate);
4547
- var day = date.getUTCDay();
4548
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
4549
- date.setUTCDate(date.getUTCDate() - diff);
4550
- date.setUTCHours(0, 0, 0, 0);
4551
- return date;
4552
- }
4553
- __name(startOfUTCISOWeek, "startOfUTCISOWeek");
4554
-
4555
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js
4556
- function getUTCISOWeekYear(dirtyDate) {
4557
- requiredArgs(1, arguments);
4558
- var date = toDate(dirtyDate);
4559
- var year = date.getUTCFullYear();
4560
- var fourthOfJanuaryOfNextYear = new Date(0);
4561
- fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
4562
- fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
4563
- var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);
4564
- var fourthOfJanuaryOfThisYear = new Date(0);
4565
- fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
4566
- fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
4567
- var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
4568
- if (date.getTime() >= startOfNextYear.getTime()) {
4569
- return year + 1;
4570
- } else if (date.getTime() >= startOfThisYear.getTime()) {
4571
- return year;
4572
- } else {
4573
- return year - 1;
4574
- }
4575
- }
4576
- __name(getUTCISOWeekYear, "getUTCISOWeekYear");
4577
-
4578
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js
4579
- function startOfUTCISOWeekYear(dirtyDate) {
4580
- requiredArgs(1, arguments);
4581
- var year = getUTCISOWeekYear(dirtyDate);
4582
- var fourthOfJanuary = new Date(0);
4583
- fourthOfJanuary.setUTCFullYear(year, 0, 4);
4584
- fourthOfJanuary.setUTCHours(0, 0, 0, 0);
4585
- var date = startOfUTCISOWeek(fourthOfJanuary);
4586
- return date;
4587
- }
4588
- __name(startOfUTCISOWeekYear, "startOfUTCISOWeekYear");
4589
-
4590
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js
4591
- var MILLISECONDS_IN_WEEK = 6048e5;
4592
- function getUTCISOWeek(dirtyDate) {
4593
- requiredArgs(1, arguments);
4594
- var date = toDate(dirtyDate);
4595
- var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime();
4596
- return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
4597
- }
4598
- __name(getUTCISOWeek, "getUTCISOWeek");
4599
-
4600
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js
4601
- function startOfUTCWeek(dirtyDate, dirtyOptions) {
4602
- requiredArgs(1, arguments);
4603
- var options = dirtyOptions || {};
4604
- var locale2 = options.locale;
4605
- var localeWeekStartsOn = locale2 && locale2.options && locale2.options.weekStartsOn;
4606
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
4607
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn);
4608
- if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
4609
- throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
4610
- }
4611
- var date = toDate(dirtyDate);
4612
- var day = date.getUTCDay();
4613
- var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
4614
- date.setUTCDate(date.getUTCDate() - diff);
4615
- date.setUTCHours(0, 0, 0, 0);
4616
- return date;
4617
- }
4618
- __name(startOfUTCWeek, "startOfUTCWeek");
4619
-
4620
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js
4621
- function getUTCWeekYear(dirtyDate, dirtyOptions) {
4622
- requiredArgs(1, arguments);
4623
- var date = toDate(dirtyDate);
4624
- var year = date.getUTCFullYear();
4625
- var options = dirtyOptions || {};
4626
- var locale2 = options.locale;
4627
- var localeFirstWeekContainsDate = locale2 && locale2.options && locale2.options.firstWeekContainsDate;
4628
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
4629
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);
4630
- if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
4631
- throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
4632
- }
4633
- var firstWeekOfNextYear = new Date(0);
4634
- firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
4635
- firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
4636
- var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, dirtyOptions);
4637
- var firstWeekOfThisYear = new Date(0);
4638
- firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
4639
- firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
4640
- var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, dirtyOptions);
4641
- if (date.getTime() >= startOfNextYear.getTime()) {
4642
- return year + 1;
4643
- } else if (date.getTime() >= startOfThisYear.getTime()) {
4644
- return year;
4645
- } else {
4646
- return year - 1;
4647
- }
4648
- }
4649
- __name(getUTCWeekYear, "getUTCWeekYear");
4650
-
4651
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js
4652
- function startOfUTCWeekYear(dirtyDate, dirtyOptions) {
4653
- requiredArgs(1, arguments);
4654
- var options = dirtyOptions || {};
4655
- var locale2 = options.locale;
4656
- var localeFirstWeekContainsDate = locale2 && locale2.options && locale2.options.firstWeekContainsDate;
4657
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
4658
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);
4659
- var year = getUTCWeekYear(dirtyDate, dirtyOptions);
4660
- var firstWeek = new Date(0);
4661
- firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
4662
- firstWeek.setUTCHours(0, 0, 0, 0);
4663
- var date = startOfUTCWeek(firstWeek, dirtyOptions);
4664
- return date;
4665
- }
4666
- __name(startOfUTCWeekYear, "startOfUTCWeekYear");
4667
-
4668
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/getUTCWeek/index.js
4669
- var MILLISECONDS_IN_WEEK2 = 6048e5;
4670
- function getUTCWeek(dirtyDate, options) {
4671
- requiredArgs(1, arguments);
4672
- var date = toDate(dirtyDate);
4673
- var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime();
4674
- return Math.round(diff / MILLISECONDS_IN_WEEK2) + 1;
4675
- }
4676
- __name(getUTCWeek, "getUTCWeek");
4677
-
4678
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js
4679
- function addLeadingZeros(number, targetLength) {
4680
- var sign = number < 0 ? "-" : "";
4681
- var output = Math.abs(number).toString();
4682
- while (output.length < targetLength) {
4683
- output = "0" + output;
4684
- }
4685
- return sign + output;
4686
- }
4687
- __name(addLeadingZeros, "addLeadingZeros");
4688
-
4689
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js
4690
- var formatters = {
4691
- y: function(date, token) {
4692
- var signedYear = date.getUTCFullYear();
4693
- var year = signedYear > 0 ? signedYear : 1 - signedYear;
4694
- return addLeadingZeros(token === "yy" ? year % 100 : year, token.length);
4695
- },
4696
- M: function(date, token) {
4697
- var month = date.getUTCMonth();
4698
- return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2);
4699
- },
4700
- d: function(date, token) {
4701
- return addLeadingZeros(date.getUTCDate(), token.length);
4702
- },
4703
- a: function(date, token) {
4704
- var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? "pm" : "am";
4705
- switch (token) {
4706
- case "a":
4707
- case "aa":
4708
- return dayPeriodEnumValue.toUpperCase();
4709
- case "aaa":
4710
- return dayPeriodEnumValue;
4711
- case "aaaaa":
4712
- return dayPeriodEnumValue[0];
4713
- case "aaaa":
4714
- default:
4715
- return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
4716
- }
4717
- },
4718
- h: function(date, token) {
4719
- return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
4720
- },
4721
- H: function(date, token) {
4722
- return addLeadingZeros(date.getUTCHours(), token.length);
4723
- },
4724
- m: function(date, token) {
4725
- return addLeadingZeros(date.getUTCMinutes(), token.length);
4726
- },
4727
- s: function(date, token) {
4728
- return addLeadingZeros(date.getUTCSeconds(), token.length);
4729
- },
4730
- S: function(date, token) {
4731
- var numberOfDigits = token.length;
4732
- var milliseconds = date.getUTCMilliseconds();
4733
- var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
4734
- return addLeadingZeros(fractionalSeconds, token.length);
4735
- }
4238
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js
4239
+ var formatters = {
4240
+ y: /* @__PURE__ */ __name(function y(date, token) {
4241
+ var signedYear = date.getUTCFullYear();
4242
+ var year = signedYear > 0 ? signedYear : 1 - signedYear;
4243
+ return addLeadingZeros(token === "yy" ? year % 100 : year, token.length);
4244
+ }, "y"),
4245
+ M: /* @__PURE__ */ __name(function M(date, token) {
4246
+ var month = date.getUTCMonth();
4247
+ return token === "M" ? String(month + 1) : addLeadingZeros(month + 1, 2);
4248
+ }, "M"),
4249
+ d: /* @__PURE__ */ __name(function d(date, token) {
4250
+ return addLeadingZeros(date.getUTCDate(), token.length);
4251
+ }, "d"),
4252
+ a: /* @__PURE__ */ __name(function a(date, token) {
4253
+ var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? "pm" : "am";
4254
+ switch (token) {
4255
+ case "a":
4256
+ case "aa":
4257
+ return dayPeriodEnumValue.toUpperCase();
4258
+ case "aaa":
4259
+ return dayPeriodEnumValue;
4260
+ case "aaaaa":
4261
+ return dayPeriodEnumValue[0];
4262
+ case "aaaa":
4263
+ default:
4264
+ return dayPeriodEnumValue === "am" ? "a.m." : "p.m.";
4265
+ }
4266
+ }, "a"),
4267
+ h: /* @__PURE__ */ __name(function h(date, token) {
4268
+ return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
4269
+ }, "h"),
4270
+ H: /* @__PURE__ */ __name(function H(date, token) {
4271
+ return addLeadingZeros(date.getUTCHours(), token.length);
4272
+ }, "H"),
4273
+ m: /* @__PURE__ */ __name(function m(date, token) {
4274
+ return addLeadingZeros(date.getUTCMinutes(), token.length);
4275
+ }, "m"),
4276
+ s: /* @__PURE__ */ __name(function s(date, token) {
4277
+ return addLeadingZeros(date.getUTCSeconds(), token.length);
4278
+ }, "s"),
4279
+ S: /* @__PURE__ */ __name(function S(date, token) {
4280
+ var numberOfDigits = token.length;
4281
+ var milliseconds = date.getUTCMilliseconds();
4282
+ var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
4283
+ return addLeadingZeros(fractionalSeconds, token.length);
4284
+ }, "S")
4736
4285
  };
4737
4286
  var lightFormatters_default = formatters;
4738
4287
 
4739
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/format/formatters/index.js
4288
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/format/formatters/index.js
4740
4289
  var dayPeriodEnum = {
4741
4290
  am: "am",
4742
4291
  pm: "pm",
@@ -4748,7 +4297,7 @@ var dayPeriodEnum = {
4748
4297
  night: "night"
4749
4298
  };
4750
4299
  var formatters2 = {
4751
- G: function(date, token, localize2) {
4300
+ G: /* @__PURE__ */ __name(function G(date, token, localize2) {
4752
4301
  var era = date.getUTCFullYear() > 0 ? 1 : 0;
4753
4302
  switch (token) {
4754
4303
  case "G":
@@ -4767,8 +4316,8 @@ var formatters2 = {
4767
4316
  width: "wide"
4768
4317
  });
4769
4318
  }
4770
- },
4771
- y: function(date, token, localize2) {
4319
+ }, "G"),
4320
+ y: /* @__PURE__ */ __name(function y2(date, token, localize2) {
4772
4321
  if (token === "yo") {
4773
4322
  var signedYear = date.getUTCFullYear();
4774
4323
  var year = signedYear > 0 ? signedYear : 1 - signedYear;
@@ -4777,8 +4326,8 @@ var formatters2 = {
4777
4326
  });
4778
4327
  }
4779
4328
  return lightFormatters_default.y(date, token);
4780
- },
4781
- Y: function(date, token, localize2, options) {
4329
+ }, "y"),
4330
+ Y: /* @__PURE__ */ __name(function Y(date, token, localize2, options) {
4782
4331
  var signedWeekYear = getUTCWeekYear(date, options);
4783
4332
  var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;
4784
4333
  if (token === "YY") {
@@ -4791,16 +4340,16 @@ var formatters2 = {
4791
4340
  });
4792
4341
  }
4793
4342
  return addLeadingZeros(weekYear, token.length);
4794
- },
4795
- R: function(date, token) {
4343
+ }, "Y"),
4344
+ R: /* @__PURE__ */ __name(function R(date, token) {
4796
4345
  var isoWeekYear = getUTCISOWeekYear(date);
4797
4346
  return addLeadingZeros(isoWeekYear, token.length);
4798
- },
4799
- u: function(date, token) {
4347
+ }, "R"),
4348
+ u: /* @__PURE__ */ __name(function u(date, token) {
4800
4349
  var year = date.getUTCFullYear();
4801
4350
  return addLeadingZeros(year, token.length);
4802
- },
4803
- Q: function(date, token, localize2) {
4351
+ }, "u"),
4352
+ Q: /* @__PURE__ */ __name(function Q(date, token, localize2) {
4804
4353
  var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
4805
4354
  switch (token) {
4806
4355
  case "Q":
@@ -4828,8 +4377,8 @@ var formatters2 = {
4828
4377
  context: "formatting"
4829
4378
  });
4830
4379
  }
4831
- },
4832
- q: function(date, token, localize2) {
4380
+ }, "Q"),
4381
+ q: /* @__PURE__ */ __name(function q(date, token, localize2) {
4833
4382
  var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
4834
4383
  switch (token) {
4835
4384
  case "q":
@@ -4857,8 +4406,8 @@ var formatters2 = {
4857
4406
  context: "standalone"
4858
4407
  });
4859
4408
  }
4860
- },
4861
- M: function(date, token, localize2) {
4409
+ }, "q"),
4410
+ M: /* @__PURE__ */ __name(function M2(date, token, localize2) {
4862
4411
  var month = date.getUTCMonth();
4863
4412
  switch (token) {
4864
4413
  case "M":
@@ -4885,8 +4434,8 @@ var formatters2 = {
4885
4434
  context: "formatting"
4886
4435
  });
4887
4436
  }
4888
- },
4889
- L: function(date, token, localize2) {
4437
+ }, "M"),
4438
+ L: /* @__PURE__ */ __name(function L(date, token, localize2) {
4890
4439
  var month = date.getUTCMonth();
4891
4440
  switch (token) {
4892
4441
  case "L":
@@ -4914,8 +4463,8 @@ var formatters2 = {
4914
4463
  context: "standalone"
4915
4464
  });
4916
4465
  }
4917
- },
4918
- w: function(date, token, localize2, options) {
4466
+ }, "L"),
4467
+ w: /* @__PURE__ */ __name(function w(date, token, localize2, options) {
4919
4468
  var week = getUTCWeek(date, options);
4920
4469
  if (token === "wo") {
4921
4470
  return localize2.ordinalNumber(week, {
@@ -4923,8 +4472,8 @@ var formatters2 = {
4923
4472
  });
4924
4473
  }
4925
4474
  return addLeadingZeros(week, token.length);
4926
- },
4927
- I: function(date, token, localize2) {
4475
+ }, "w"),
4476
+ I: /* @__PURE__ */ __name(function I(date, token, localize2) {
4928
4477
  var isoWeek = getUTCISOWeek(date);
4929
4478
  if (token === "Io") {
4930
4479
  return localize2.ordinalNumber(isoWeek, {
@@ -4932,16 +4481,16 @@ var formatters2 = {
4932
4481
  });
4933
4482
  }
4934
4483
  return addLeadingZeros(isoWeek, token.length);
4935
- },
4936
- d: function(date, token, localize2) {
4484
+ }, "I"),
4485
+ d: /* @__PURE__ */ __name(function d2(date, token, localize2) {
4937
4486
  if (token === "do") {
4938
4487
  return localize2.ordinalNumber(date.getUTCDate(), {
4939
4488
  unit: "date"
4940
4489
  });
4941
4490
  }
4942
4491
  return lightFormatters_default.d(date, token);
4943
- },
4944
- D: function(date, token, localize2) {
4492
+ }, "d"),
4493
+ D: /* @__PURE__ */ __name(function D(date, token, localize2) {
4945
4494
  var dayOfYear = getUTCDayOfYear(date);
4946
4495
  if (token === "Do") {
4947
4496
  return localize2.ordinalNumber(dayOfYear, {
@@ -4949,8 +4498,8 @@ var formatters2 = {
4949
4498
  });
4950
4499
  }
4951
4500
  return addLeadingZeros(dayOfYear, token.length);
4952
- },
4953
- E: function(date, token, localize2) {
4501
+ }, "D"),
4502
+ E: /* @__PURE__ */ __name(function E(date, token, localize2) {
4954
4503
  var dayOfWeek = date.getUTCDay();
4955
4504
  switch (token) {
4956
4505
  case "E":
@@ -4977,8 +4526,8 @@ var formatters2 = {
4977
4526
  context: "formatting"
4978
4527
  });
4979
4528
  }
4980
- },
4981
- e: function(date, token, localize2, options) {
4529
+ }, "E"),
4530
+ e: /* @__PURE__ */ __name(function e(date, token, localize2, options) {
4982
4531
  var dayOfWeek = date.getUTCDay();
4983
4532
  var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
4984
4533
  switch (token) {
@@ -5012,8 +4561,8 @@ var formatters2 = {
5012
4561
  context: "formatting"
5013
4562
  });
5014
4563
  }
5015
- },
5016
- c: function(date, token, localize2, options) {
4564
+ }, "e"),
4565
+ c: /* @__PURE__ */ __name(function c(date, token, localize2, options) {
5017
4566
  var dayOfWeek = date.getUTCDay();
5018
4567
  var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
5019
4568
  switch (token) {
@@ -5047,8 +4596,8 @@ var formatters2 = {
5047
4596
  context: "standalone"
5048
4597
  });
5049
4598
  }
5050
- },
5051
- i: function(date, token, localize2) {
4599
+ }, "c"),
4600
+ i: /* @__PURE__ */ __name(function i(date, token, localize2) {
5052
4601
  var dayOfWeek = date.getUTCDay();
5053
4602
  var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
5054
4603
  switch (token) {
@@ -5082,8 +4631,8 @@ var formatters2 = {
5082
4631
  context: "formatting"
5083
4632
  });
5084
4633
  }
5085
- },
5086
- a: function(date, token, localize2) {
4634
+ }, "i"),
4635
+ a: /* @__PURE__ */ __name(function a2(date, token, localize2) {
5087
4636
  var hours = date.getUTCHours();
5088
4637
  var dayPeriodEnumValue = hours / 12 >= 1 ? "pm" : "am";
5089
4638
  switch (token) {
@@ -5110,8 +4659,8 @@ var formatters2 = {
5110
4659
  context: "formatting"
5111
4660
  });
5112
4661
  }
5113
- },
5114
- b: function(date, token, localize2) {
4662
+ }, "a"),
4663
+ b: /* @__PURE__ */ __name(function b(date, token, localize2) {
5115
4664
  var hours = date.getUTCHours();
5116
4665
  var dayPeriodEnumValue;
5117
4666
  if (hours === 12) {
@@ -5145,8 +4694,8 @@ var formatters2 = {
5145
4694
  context: "formatting"
5146
4695
  });
5147
4696
  }
5148
- },
5149
- B: function(date, token, localize2) {
4697
+ }, "b"),
4698
+ B: /* @__PURE__ */ __name(function B(date, token, localize2) {
5150
4699
  var hours = date.getUTCHours();
5151
4700
  var dayPeriodEnumValue;
5152
4701
  if (hours >= 17) {
@@ -5178,8 +4727,8 @@ var formatters2 = {
5178
4727
  context: "formatting"
5179
4728
  });
5180
4729
  }
5181
- },
5182
- h: function(date, token, localize2) {
4730
+ }, "B"),
4731
+ h: /* @__PURE__ */ __name(function h2(date, token, localize2) {
5183
4732
  if (token === "ho") {
5184
4733
  var hours = date.getUTCHours() % 12;
5185
4734
  if (hours === 0)
@@ -5189,16 +4738,16 @@ var formatters2 = {
5189
4738
  });
5190
4739
  }
5191
4740
  return lightFormatters_default.h(date, token);
5192
- },
5193
- H: function(date, token, localize2) {
4741
+ }, "h"),
4742
+ H: /* @__PURE__ */ __name(function H2(date, token, localize2) {
5194
4743
  if (token === "Ho") {
5195
4744
  return localize2.ordinalNumber(date.getUTCHours(), {
5196
4745
  unit: "hour"
5197
4746
  });
5198
4747
  }
5199
4748
  return lightFormatters_default.H(date, token);
5200
- },
5201
- K: function(date, token, localize2) {
4749
+ }, "H"),
4750
+ K: /* @__PURE__ */ __name(function K(date, token, localize2) {
5202
4751
  var hours = date.getUTCHours() % 12;
5203
4752
  if (token === "Ko") {
5204
4753
  return localize2.ordinalNumber(hours, {
@@ -5206,8 +4755,8 @@ var formatters2 = {
5206
4755
  });
5207
4756
  }
5208
4757
  return addLeadingZeros(hours, token.length);
5209
- },
5210
- k: function(date, token, localize2) {
4758
+ }, "K"),
4759
+ k: /* @__PURE__ */ __name(function k(date, token, localize2) {
5211
4760
  var hours = date.getUTCHours();
5212
4761
  if (hours === 0)
5213
4762
  hours = 24;
@@ -5217,27 +4766,27 @@ var formatters2 = {
5217
4766
  });
5218
4767
  }
5219
4768
  return addLeadingZeros(hours, token.length);
5220
- },
5221
- m: function(date, token, localize2) {
4769
+ }, "k"),
4770
+ m: /* @__PURE__ */ __name(function m2(date, token, localize2) {
5222
4771
  if (token === "mo") {
5223
4772
  return localize2.ordinalNumber(date.getUTCMinutes(), {
5224
4773
  unit: "minute"
5225
4774
  });
5226
4775
  }
5227
4776
  return lightFormatters_default.m(date, token);
5228
- },
5229
- s: function(date, token, localize2) {
4777
+ }, "m"),
4778
+ s: /* @__PURE__ */ __name(function s2(date, token, localize2) {
5230
4779
  if (token === "so") {
5231
4780
  return localize2.ordinalNumber(date.getUTCSeconds(), {
5232
4781
  unit: "second"
5233
4782
  });
5234
4783
  }
5235
4784
  return lightFormatters_default.s(date, token);
5236
- },
5237
- S: function(date, token) {
4785
+ }, "s"),
4786
+ S: /* @__PURE__ */ __name(function S2(date, token) {
5238
4787
  return lightFormatters_default.S(date, token);
5239
- },
5240
- X: function(date, token, _localize, options) {
4788
+ }, "S"),
4789
+ X: /* @__PURE__ */ __name(function X(date, token, _localize, options) {
5241
4790
  var originalDate = options._originalDate || date;
5242
4791
  var timezoneOffset = originalDate.getTimezoneOffset();
5243
4792
  if (timezoneOffset === 0) {
@@ -5254,8 +4803,8 @@ var formatters2 = {
5254
4803
  default:
5255
4804
  return formatTimezone(timezoneOffset, ":");
5256
4805
  }
5257
- },
5258
- x: function(date, token, _localize, options) {
4806
+ }, "X"),
4807
+ x: /* @__PURE__ */ __name(function x(date, token, _localize, options) {
5259
4808
  var originalDate = options._originalDate || date;
5260
4809
  var timezoneOffset = originalDate.getTimezoneOffset();
5261
4810
  switch (token) {
@@ -5269,204 +4818,679 @@ var formatters2 = {
5269
4818
  default:
5270
4819
  return formatTimezone(timezoneOffset, ":");
5271
4820
  }
5272
- },
5273
- O: function(date, token, _localize, options) {
5274
- var originalDate = options._originalDate || date;
5275
- var timezoneOffset = originalDate.getTimezoneOffset();
5276
- switch (token) {
5277
- case "O":
5278
- case "OO":
5279
- case "OOO":
5280
- return "GMT" + formatTimezoneShort(timezoneOffset, ":");
5281
- case "OOOO":
5282
- default:
5283
- return "GMT" + formatTimezone(timezoneOffset, ":");
4821
+ }, "x"),
4822
+ O: /* @__PURE__ */ __name(function O(date, token, _localize, options) {
4823
+ var originalDate = options._originalDate || date;
4824
+ var timezoneOffset = originalDate.getTimezoneOffset();
4825
+ switch (token) {
4826
+ case "O":
4827
+ case "OO":
4828
+ case "OOO":
4829
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
4830
+ case "OOOO":
4831
+ default:
4832
+ return "GMT" + formatTimezone(timezoneOffset, ":");
4833
+ }
4834
+ }, "O"),
4835
+ z: /* @__PURE__ */ __name(function z(date, token, _localize, options) {
4836
+ var originalDate = options._originalDate || date;
4837
+ var timezoneOffset = originalDate.getTimezoneOffset();
4838
+ switch (token) {
4839
+ case "z":
4840
+ case "zz":
4841
+ case "zzz":
4842
+ return "GMT" + formatTimezoneShort(timezoneOffset, ":");
4843
+ case "zzzz":
4844
+ default:
4845
+ return "GMT" + formatTimezone(timezoneOffset, ":");
4846
+ }
4847
+ }, "z"),
4848
+ t: /* @__PURE__ */ __name(function t(date, token, _localize, options) {
4849
+ var originalDate = options._originalDate || date;
4850
+ var timestamp = Math.floor(originalDate.getTime() / 1e3);
4851
+ return addLeadingZeros(timestamp, token.length);
4852
+ }, "t"),
4853
+ T: /* @__PURE__ */ __name(function T(date, token, _localize, options) {
4854
+ var originalDate = options._originalDate || date;
4855
+ var timestamp = originalDate.getTime();
4856
+ return addLeadingZeros(timestamp, token.length);
4857
+ }, "T")
4858
+ };
4859
+ function formatTimezoneShort(offset, dirtyDelimiter) {
4860
+ var sign = offset > 0 ? "-" : "+";
4861
+ var absOffset = Math.abs(offset);
4862
+ var hours = Math.floor(absOffset / 60);
4863
+ var minutes = absOffset % 60;
4864
+ if (minutes === 0) {
4865
+ return sign + String(hours);
4866
+ }
4867
+ var delimiter = dirtyDelimiter || "";
4868
+ return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
4869
+ }
4870
+ __name(formatTimezoneShort, "formatTimezoneShort");
4871
+ function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
4872
+ if (offset % 60 === 0) {
4873
+ var sign = offset > 0 ? "-" : "+";
4874
+ return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
4875
+ }
4876
+ return formatTimezone(offset, dirtyDelimiter);
4877
+ }
4878
+ __name(formatTimezoneWithOptionalMinutes, "formatTimezoneWithOptionalMinutes");
4879
+ function formatTimezone(offset, dirtyDelimiter) {
4880
+ var delimiter = dirtyDelimiter || "";
4881
+ var sign = offset > 0 ? "-" : "+";
4882
+ var absOffset = Math.abs(offset);
4883
+ var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
4884
+ var minutes = addLeadingZeros(absOffset % 60, 2);
4885
+ return sign + hours + delimiter + minutes;
4886
+ }
4887
+ __name(formatTimezone, "formatTimezone");
4888
+ var formatters_default = formatters2;
4889
+
4890
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/format/longFormatters/index.js
4891
+ var dateLongFormatter = /* @__PURE__ */ __name(function dateLongFormatter2(pattern, formatLong2) {
4892
+ switch (pattern) {
4893
+ case "P":
4894
+ return formatLong2.date({
4895
+ width: "short"
4896
+ });
4897
+ case "PP":
4898
+ return formatLong2.date({
4899
+ width: "medium"
4900
+ });
4901
+ case "PPP":
4902
+ return formatLong2.date({
4903
+ width: "long"
4904
+ });
4905
+ case "PPPP":
4906
+ default:
4907
+ return formatLong2.date({
4908
+ width: "full"
4909
+ });
4910
+ }
4911
+ }, "dateLongFormatter");
4912
+ var timeLongFormatter = /* @__PURE__ */ __name(function timeLongFormatter2(pattern, formatLong2) {
4913
+ switch (pattern) {
4914
+ case "p":
4915
+ return formatLong2.time({
4916
+ width: "short"
4917
+ });
4918
+ case "pp":
4919
+ return formatLong2.time({
4920
+ width: "medium"
4921
+ });
4922
+ case "ppp":
4923
+ return formatLong2.time({
4924
+ width: "long"
4925
+ });
4926
+ case "pppp":
4927
+ default:
4928
+ return formatLong2.time({
4929
+ width: "full"
4930
+ });
4931
+ }
4932
+ }, "timeLongFormatter");
4933
+ var dateTimeLongFormatter = /* @__PURE__ */ __name(function dateTimeLongFormatter2(pattern, formatLong2) {
4934
+ var matchResult = pattern.match(/(P+)(p+)?/) || [];
4935
+ var datePattern = matchResult[1];
4936
+ var timePattern = matchResult[2];
4937
+ if (!timePattern) {
4938
+ return dateLongFormatter(pattern, formatLong2);
4939
+ }
4940
+ var dateTimeFormat;
4941
+ switch (datePattern) {
4942
+ case "P":
4943
+ dateTimeFormat = formatLong2.dateTime({
4944
+ width: "short"
4945
+ });
4946
+ break;
4947
+ case "PP":
4948
+ dateTimeFormat = formatLong2.dateTime({
4949
+ width: "medium"
4950
+ });
4951
+ break;
4952
+ case "PPP":
4953
+ dateTimeFormat = formatLong2.dateTime({
4954
+ width: "long"
4955
+ });
4956
+ break;
4957
+ case "PPPP":
4958
+ default:
4959
+ dateTimeFormat = formatLong2.dateTime({
4960
+ width: "full"
4961
+ });
4962
+ break;
4963
+ }
4964
+ return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong2)).replace("{{time}}", timeLongFormatter(timePattern, formatLong2));
4965
+ }, "dateTimeLongFormatter");
4966
+ var longFormatters = {
4967
+ p: timeLongFormatter,
4968
+ P: dateTimeLongFormatter
4969
+ };
4970
+ var longFormatters_default = longFormatters;
4971
+
4972
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/protectedTokens/index.js
4973
+ var protectedDayOfYearTokens = ["D", "DD"];
4974
+ var protectedWeekYearTokens = ["YY", "YYYY"];
4975
+ function isProtectedDayOfYearToken(token) {
4976
+ return protectedDayOfYearTokens.indexOf(token) !== -1;
4977
+ }
4978
+ __name(isProtectedDayOfYearToken, "isProtectedDayOfYearToken");
4979
+ function isProtectedWeekYearToken(token) {
4980
+ return protectedWeekYearTokens.indexOf(token) !== -1;
4981
+ }
4982
+ __name(isProtectedWeekYearToken, "isProtectedWeekYearToken");
4983
+ function throwProtectedError(token, format2, input) {
4984
+ if (token === "YYYY") {
4985
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format2, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
4986
+ } else if (token === "YY") {
4987
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(format2, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
4988
+ } else if (token === "D") {
4989
+ throw new RangeError("Use `d` instead of `D` (in `".concat(format2, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
4990
+ } else if (token === "DD") {
4991
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(format2, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
4992
+ }
4993
+ }
4994
+ __name(throwProtectedError, "throwProtectedError");
4995
+
4996
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js
4997
+ var formatDistanceLocale = {
4998
+ lessThanXSeconds: {
4999
+ one: "less than a second",
5000
+ other: "less than {{count}} seconds"
5001
+ },
5002
+ xSeconds: {
5003
+ one: "1 second",
5004
+ other: "{{count}} seconds"
5005
+ },
5006
+ halfAMinute: "half a minute",
5007
+ lessThanXMinutes: {
5008
+ one: "less than a minute",
5009
+ other: "less than {{count}} minutes"
5010
+ },
5011
+ xMinutes: {
5012
+ one: "1 minute",
5013
+ other: "{{count}} minutes"
5014
+ },
5015
+ aboutXHours: {
5016
+ one: "about 1 hour",
5017
+ other: "about {{count}} hours"
5018
+ },
5019
+ xHours: {
5020
+ one: "1 hour",
5021
+ other: "{{count}} hours"
5022
+ },
5023
+ xDays: {
5024
+ one: "1 day",
5025
+ other: "{{count}} days"
5026
+ },
5027
+ aboutXWeeks: {
5028
+ one: "about 1 week",
5029
+ other: "about {{count}} weeks"
5030
+ },
5031
+ xWeeks: {
5032
+ one: "1 week",
5033
+ other: "{{count}} weeks"
5034
+ },
5035
+ aboutXMonths: {
5036
+ one: "about 1 month",
5037
+ other: "about {{count}} months"
5038
+ },
5039
+ xMonths: {
5040
+ one: "1 month",
5041
+ other: "{{count}} months"
5042
+ },
5043
+ aboutXYears: {
5044
+ one: "about 1 year",
5045
+ other: "about {{count}} years"
5046
+ },
5047
+ xYears: {
5048
+ one: "1 year",
5049
+ other: "{{count}} years"
5050
+ },
5051
+ overXYears: {
5052
+ one: "over 1 year",
5053
+ other: "over {{count}} years"
5054
+ },
5055
+ almostXYears: {
5056
+ one: "almost 1 year",
5057
+ other: "almost {{count}} years"
5058
+ }
5059
+ };
5060
+ var formatDistance = /* @__PURE__ */ __name(function formatDistance2(token, count, options) {
5061
+ var result;
5062
+ var tokenValue = formatDistanceLocale[token];
5063
+ if (typeof tokenValue === "string") {
5064
+ result = tokenValue;
5065
+ } else if (count === 1) {
5066
+ result = tokenValue.one;
5067
+ } else {
5068
+ result = tokenValue.other.replace("{{count}}", count.toString());
5069
+ }
5070
+ if (options !== null && options !== void 0 && options.addSuffix) {
5071
+ if (options.comparison && options.comparison > 0) {
5072
+ return "in " + result;
5073
+ } else {
5074
+ return result + " ago";
5075
+ }
5076
+ }
5077
+ return result;
5078
+ }, "formatDistance");
5079
+ var formatDistance_default = formatDistance;
5080
+
5081
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js
5082
+ function buildFormatLongFn(args) {
5083
+ return function() {
5084
+ var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5085
+ var width = options.width ? String(options.width) : args.defaultWidth;
5086
+ var format2 = args.formats[width] || args.formats[args.defaultWidth];
5087
+ return format2;
5088
+ };
5089
+ }
5090
+ __name(buildFormatLongFn, "buildFormatLongFn");
5091
+
5092
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js
5093
+ var dateFormats = {
5094
+ full: "EEEE, MMMM do, y",
5095
+ long: "MMMM do, y",
5096
+ medium: "MMM d, y",
5097
+ short: "MM/dd/yyyy"
5098
+ };
5099
+ var timeFormats = {
5100
+ full: "h:mm:ss a zzzz",
5101
+ long: "h:mm:ss a z",
5102
+ medium: "h:mm:ss a",
5103
+ short: "h:mm a"
5104
+ };
5105
+ var dateTimeFormats = {
5106
+ full: "{{date}} 'at' {{time}}",
5107
+ long: "{{date}} 'at' {{time}}",
5108
+ medium: "{{date}}, {{time}}",
5109
+ short: "{{date}}, {{time}}"
5110
+ };
5111
+ var formatLong = {
5112
+ date: buildFormatLongFn({
5113
+ formats: dateFormats,
5114
+ defaultWidth: "full"
5115
+ }),
5116
+ time: buildFormatLongFn({
5117
+ formats: timeFormats,
5118
+ defaultWidth: "full"
5119
+ }),
5120
+ dateTime: buildFormatLongFn({
5121
+ formats: dateTimeFormats,
5122
+ defaultWidth: "full"
5123
+ })
5124
+ };
5125
+ var formatLong_default = formatLong;
5126
+
5127
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js
5128
+ var formatRelativeLocale = {
5129
+ lastWeek: "'last' eeee 'at' p",
5130
+ yesterday: "'yesterday at' p",
5131
+ today: "'today at' p",
5132
+ tomorrow: "'tomorrow at' p",
5133
+ nextWeek: "eeee 'at' p",
5134
+ other: "P"
5135
+ };
5136
+ var formatRelative = /* @__PURE__ */ __name(function formatRelative2(token, _date, _baseDate, _options) {
5137
+ return formatRelativeLocale[token];
5138
+ }, "formatRelative");
5139
+ var formatRelative_default = formatRelative;
5140
+
5141
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js
5142
+ function buildLocalizeFn(args) {
5143
+ return function(dirtyIndex, options) {
5144
+ var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
5145
+ var valuesArray;
5146
+ if (context === "formatting" && args.formattingValues) {
5147
+ var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
5148
+ var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
5149
+ valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
5150
+ } else {
5151
+ var _defaultWidth = args.defaultWidth;
5152
+ var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
5153
+ valuesArray = args.values[_width] || args.values[_defaultWidth];
5284
5154
  }
5155
+ var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
5156
+ return valuesArray[index];
5157
+ };
5158
+ }
5159
+ __name(buildLocalizeFn, "buildLocalizeFn");
5160
+
5161
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js
5162
+ var eraValues = {
5163
+ narrow: ["B", "A"],
5164
+ abbreviated: ["BC", "AD"],
5165
+ wide: ["Before Christ", "Anno Domini"]
5166
+ };
5167
+ var quarterValues = {
5168
+ narrow: ["1", "2", "3", "4"],
5169
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
5170
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
5171
+ };
5172
+ var monthValues = {
5173
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
5174
+ abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
5175
+ wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
5176
+ };
5177
+ var dayValues = {
5178
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
5179
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
5180
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
5181
+ wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
5182
+ };
5183
+ var dayPeriodValues = {
5184
+ narrow: {
5185
+ am: "a",
5186
+ pm: "p",
5187
+ midnight: "mi",
5188
+ noon: "n",
5189
+ morning: "morning",
5190
+ afternoon: "afternoon",
5191
+ evening: "evening",
5192
+ night: "night"
5285
5193
  },
5286
- z: function(date, token, _localize, options) {
5287
- var originalDate = options._originalDate || date;
5288
- var timezoneOffset = originalDate.getTimezoneOffset();
5289
- switch (token) {
5290
- case "z":
5291
- case "zz":
5292
- case "zzz":
5293
- return "GMT" + formatTimezoneShort(timezoneOffset, ":");
5294
- case "zzzz":
5295
- default:
5296
- return "GMT" + formatTimezone(timezoneOffset, ":");
5297
- }
5194
+ abbreviated: {
5195
+ am: "AM",
5196
+ pm: "PM",
5197
+ midnight: "midnight",
5198
+ noon: "noon",
5199
+ morning: "morning",
5200
+ afternoon: "afternoon",
5201
+ evening: "evening",
5202
+ night: "night"
5298
5203
  },
5299
- t: function(date, token, _localize, options) {
5300
- var originalDate = options._originalDate || date;
5301
- var timestamp = Math.floor(originalDate.getTime() / 1e3);
5302
- return addLeadingZeros(timestamp, token.length);
5204
+ wide: {
5205
+ am: "a.m.",
5206
+ pm: "p.m.",
5207
+ midnight: "midnight",
5208
+ noon: "noon",
5209
+ morning: "morning",
5210
+ afternoon: "afternoon",
5211
+ evening: "evening",
5212
+ night: "night"
5213
+ }
5214
+ };
5215
+ var formattingDayPeriodValues = {
5216
+ narrow: {
5217
+ am: "a",
5218
+ pm: "p",
5219
+ midnight: "mi",
5220
+ noon: "n",
5221
+ morning: "in the morning",
5222
+ afternoon: "in the afternoon",
5223
+ evening: "in the evening",
5224
+ night: "at night"
5303
5225
  },
5304
- T: function(date, token, _localize, options) {
5305
- var originalDate = options._originalDate || date;
5306
- var timestamp = originalDate.getTime();
5307
- return addLeadingZeros(timestamp, token.length);
5226
+ abbreviated: {
5227
+ am: "AM",
5228
+ pm: "PM",
5229
+ midnight: "midnight",
5230
+ noon: "noon",
5231
+ morning: "in the morning",
5232
+ afternoon: "in the afternoon",
5233
+ evening: "in the evening",
5234
+ night: "at night"
5235
+ },
5236
+ wide: {
5237
+ am: "a.m.",
5238
+ pm: "p.m.",
5239
+ midnight: "midnight",
5240
+ noon: "noon",
5241
+ morning: "in the morning",
5242
+ afternoon: "in the afternoon",
5243
+ evening: "in the evening",
5244
+ night: "at night"
5308
5245
  }
5309
5246
  };
5310
- function formatTimezoneShort(offset, dirtyDelimiter) {
5311
- var sign = offset > 0 ? "-" : "+";
5312
- var absOffset = Math.abs(offset);
5313
- var hours = Math.floor(absOffset / 60);
5314
- var minutes = absOffset % 60;
5315
- if (minutes === 0) {
5316
- return sign + String(hours);
5247
+ var ordinalNumber = /* @__PURE__ */ __name(function ordinalNumber2(dirtyNumber, _options) {
5248
+ var number = Number(dirtyNumber);
5249
+ var rem100 = number % 100;
5250
+ if (rem100 > 20 || rem100 < 10) {
5251
+ switch (rem100 % 10) {
5252
+ case 1:
5253
+ return number + "st";
5254
+ case 2:
5255
+ return number + "nd";
5256
+ case 3:
5257
+ return number + "rd";
5258
+ }
5317
5259
  }
5318
- var delimiter = dirtyDelimiter || "";
5319
- return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
5260
+ return number + "th";
5261
+ }, "ordinalNumber");
5262
+ var localize = {
5263
+ ordinalNumber,
5264
+ era: buildLocalizeFn({
5265
+ values: eraValues,
5266
+ defaultWidth: "wide"
5267
+ }),
5268
+ quarter: buildLocalizeFn({
5269
+ values: quarterValues,
5270
+ defaultWidth: "wide",
5271
+ argumentCallback: /* @__PURE__ */ __name(function argumentCallback(quarter) {
5272
+ return quarter - 1;
5273
+ }, "argumentCallback")
5274
+ }),
5275
+ month: buildLocalizeFn({
5276
+ values: monthValues,
5277
+ defaultWidth: "wide"
5278
+ }),
5279
+ day: buildLocalizeFn({
5280
+ values: dayValues,
5281
+ defaultWidth: "wide"
5282
+ }),
5283
+ dayPeriod: buildLocalizeFn({
5284
+ values: dayPeriodValues,
5285
+ defaultWidth: "wide",
5286
+ formattingValues: formattingDayPeriodValues,
5287
+ defaultFormattingWidth: "wide"
5288
+ })
5289
+ };
5290
+ var localize_default = localize;
5291
+
5292
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js
5293
+ function buildMatchFn(args) {
5294
+ return function(string) {
5295
+ var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5296
+ var width = options.width;
5297
+ var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
5298
+ var matchResult = string.match(matchPattern);
5299
+ if (!matchResult) {
5300
+ return null;
5301
+ }
5302
+ var matchedString = matchResult[0];
5303
+ var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
5304
+ var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function(pattern) {
5305
+ return pattern.test(matchedString);
5306
+ }) : findKey(parsePatterns, function(pattern) {
5307
+ return pattern.test(matchedString);
5308
+ });
5309
+ var value;
5310
+ value = args.valueCallback ? args.valueCallback(key) : key;
5311
+ value = options.valueCallback ? options.valueCallback(value) : value;
5312
+ var rest = string.slice(matchedString.length);
5313
+ return {
5314
+ value,
5315
+ rest
5316
+ };
5317
+ };
5320
5318
  }
5321
- __name(formatTimezoneShort, "formatTimezoneShort");
5322
- function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
5323
- if (offset % 60 === 0) {
5324
- var sign = offset > 0 ? "-" : "+";
5325
- return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
5319
+ __name(buildMatchFn, "buildMatchFn");
5320
+ function findKey(object, predicate) {
5321
+ for (var key in object) {
5322
+ if (object.hasOwnProperty(key) && predicate(object[key])) {
5323
+ return key;
5324
+ }
5326
5325
  }
5327
- return formatTimezone(offset, dirtyDelimiter);
5328
- }
5329
- __name(formatTimezoneWithOptionalMinutes, "formatTimezoneWithOptionalMinutes");
5330
- function formatTimezone(offset, dirtyDelimiter) {
5331
- var delimiter = dirtyDelimiter || "";
5332
- var sign = offset > 0 ? "-" : "+";
5333
- var absOffset = Math.abs(offset);
5334
- var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
5335
- var minutes = addLeadingZeros(absOffset % 60, 2);
5336
- return sign + hours + delimiter + minutes;
5326
+ return void 0;
5337
5327
  }
5338
- __name(formatTimezone, "formatTimezone");
5339
- var formatters_default = formatters2;
5340
-
5341
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/format/longFormatters/index.js
5342
- function dateLongFormatter(pattern, formatLong2) {
5343
- switch (pattern) {
5344
- case "P":
5345
- return formatLong2.date({
5346
- width: "short"
5347
- });
5348
- case "PP":
5349
- return formatLong2.date({
5350
- width: "medium"
5351
- });
5352
- case "PPP":
5353
- return formatLong2.date({
5354
- width: "long"
5355
- });
5356
- case "PPPP":
5357
- default:
5358
- return formatLong2.date({
5359
- width: "full"
5360
- });
5328
+ __name(findKey, "findKey");
5329
+ function findIndex(array, predicate) {
5330
+ for (var key = 0; key < array.length; key++) {
5331
+ if (predicate(array[key])) {
5332
+ return key;
5333
+ }
5361
5334
  }
5335
+ return void 0;
5362
5336
  }
5363
- __name(dateLongFormatter, "dateLongFormatter");
5364
- function timeLongFormatter(pattern, formatLong2) {
5365
- switch (pattern) {
5366
- case "p":
5367
- return formatLong2.time({
5368
- width: "short"
5369
- });
5370
- case "pp":
5371
- return formatLong2.time({
5372
- width: "medium"
5373
- });
5374
- case "ppp":
5375
- return formatLong2.time({
5376
- width: "long"
5377
- });
5378
- case "pppp":
5379
- default:
5380
- return formatLong2.time({
5381
- width: "full"
5382
- });
5383
- }
5337
+ __name(findIndex, "findIndex");
5338
+
5339
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js
5340
+ function buildMatchPatternFn(args) {
5341
+ return function(string) {
5342
+ var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5343
+ var matchResult = string.match(args.matchPattern);
5344
+ if (!matchResult)
5345
+ return null;
5346
+ var matchedString = matchResult[0];
5347
+ var parseResult = string.match(args.parsePattern);
5348
+ if (!parseResult)
5349
+ return null;
5350
+ var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
5351
+ value = options.valueCallback ? options.valueCallback(value) : value;
5352
+ var rest = string.slice(matchedString.length);
5353
+ return {
5354
+ value,
5355
+ rest
5356
+ };
5357
+ };
5384
5358
  }
5385
- __name(timeLongFormatter, "timeLongFormatter");
5386
- function dateTimeLongFormatter(pattern, formatLong2) {
5387
- var matchResult = pattern.match(/(P+)(p+)?/) || [];
5388
- var datePattern = matchResult[1];
5389
- var timePattern = matchResult[2];
5390
- if (!timePattern) {
5391
- return dateLongFormatter(pattern, formatLong2);
5392
- }
5393
- var dateTimeFormat;
5394
- switch (datePattern) {
5395
- case "P":
5396
- dateTimeFormat = formatLong2.dateTime({
5397
- width: "short"
5398
- });
5399
- break;
5400
- case "PP":
5401
- dateTimeFormat = formatLong2.dateTime({
5402
- width: "medium"
5403
- });
5404
- break;
5405
- case "PPP":
5406
- dateTimeFormat = formatLong2.dateTime({
5407
- width: "long"
5408
- });
5409
- break;
5410
- case "PPPP":
5411
- default:
5412
- dateTimeFormat = formatLong2.dateTime({
5413
- width: "full"
5414
- });
5415
- break;
5359
+ __name(buildMatchPatternFn, "buildMatchPatternFn");
5360
+
5361
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js
5362
+ var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
5363
+ var parseOrdinalNumberPattern = /\d+/i;
5364
+ var matchEraPatterns = {
5365
+ narrow: /^(b|a)/i,
5366
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
5367
+ wide: /^(before christ|before common era|anno domini|common era)/i
5368
+ };
5369
+ var parseEraPatterns = {
5370
+ any: [/^b/i, /^(a|c)/i]
5371
+ };
5372
+ var matchQuarterPatterns = {
5373
+ narrow: /^[1234]/i,
5374
+ abbreviated: /^q[1234]/i,
5375
+ wide: /^[1234](th|st|nd|rd)? quarter/i
5376
+ };
5377
+ var parseQuarterPatterns = {
5378
+ any: [/1/i, /2/i, /3/i, /4/i]
5379
+ };
5380
+ var matchMonthPatterns = {
5381
+ narrow: /^[jfmasond]/i,
5382
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
5383
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
5384
+ };
5385
+ var parseMonthPatterns = {
5386
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
5387
+ any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
5388
+ };
5389
+ var matchDayPatterns = {
5390
+ narrow: /^[smtwf]/i,
5391
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
5392
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
5393
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
5394
+ };
5395
+ var parseDayPatterns = {
5396
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
5397
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
5398
+ };
5399
+ var matchDayPeriodPatterns = {
5400
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
5401
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
5402
+ };
5403
+ var parseDayPeriodPatterns = {
5404
+ any: {
5405
+ am: /^a/i,
5406
+ pm: /^p/i,
5407
+ midnight: /^mi/i,
5408
+ noon: /^no/i,
5409
+ morning: /morning/i,
5410
+ afternoon: /afternoon/i,
5411
+ evening: /evening/i,
5412
+ night: /night/i
5416
5413
  }
5417
- return dateTimeFormat.replace("{{date}}", dateLongFormatter(datePattern, formatLong2)).replace("{{time}}", timeLongFormatter(timePattern, formatLong2));
5418
- }
5419
- __name(dateTimeLongFormatter, "dateTimeLongFormatter");
5420
- var longFormatters = {
5421
- p: timeLongFormatter,
5422
- P: dateTimeLongFormatter
5423
5414
  };
5424
- var longFormatters_default = longFormatters;
5415
+ var match = {
5416
+ ordinalNumber: buildMatchPatternFn({
5417
+ matchPattern: matchOrdinalNumberPattern,
5418
+ parsePattern: parseOrdinalNumberPattern,
5419
+ valueCallback: /* @__PURE__ */ __name(function valueCallback(value) {
5420
+ return parseInt(value, 10);
5421
+ }, "valueCallback")
5422
+ }),
5423
+ era: buildMatchFn({
5424
+ matchPatterns: matchEraPatterns,
5425
+ defaultMatchWidth: "wide",
5426
+ parsePatterns: parseEraPatterns,
5427
+ defaultParseWidth: "any"
5428
+ }),
5429
+ quarter: buildMatchFn({
5430
+ matchPatterns: matchQuarterPatterns,
5431
+ defaultMatchWidth: "wide",
5432
+ parsePatterns: parseQuarterPatterns,
5433
+ defaultParseWidth: "any",
5434
+ valueCallback: /* @__PURE__ */ __name(function valueCallback2(index) {
5435
+ return index + 1;
5436
+ }, "valueCallback")
5437
+ }),
5438
+ month: buildMatchFn({
5439
+ matchPatterns: matchMonthPatterns,
5440
+ defaultMatchWidth: "wide",
5441
+ parsePatterns: parseMonthPatterns,
5442
+ defaultParseWidth: "any"
5443
+ }),
5444
+ day: buildMatchFn({
5445
+ matchPatterns: matchDayPatterns,
5446
+ defaultMatchWidth: "wide",
5447
+ parsePatterns: parseDayPatterns,
5448
+ defaultParseWidth: "any"
5449
+ }),
5450
+ dayPeriod: buildMatchFn({
5451
+ matchPatterns: matchDayPeriodPatterns,
5452
+ defaultMatchWidth: "any",
5453
+ parsePatterns: parseDayPeriodPatterns,
5454
+ defaultParseWidth: "any"
5455
+ })
5456
+ };
5457
+ var match_default = match;
5425
5458
 
5426
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/_lib/protectedTokens/index.js
5427
- var protectedDayOfYearTokens = ["D", "DD"];
5428
- var protectedWeekYearTokens = ["YY", "YYYY"];
5429
- function isProtectedDayOfYearToken(token) {
5430
- return protectedDayOfYearTokens.indexOf(token) !== -1;
5431
- }
5432
- __name(isProtectedDayOfYearToken, "isProtectedDayOfYearToken");
5433
- function isProtectedWeekYearToken(token) {
5434
- return protectedWeekYearTokens.indexOf(token) !== -1;
5435
- }
5436
- __name(isProtectedWeekYearToken, "isProtectedWeekYearToken");
5437
- function throwProtectedError(token, format2, input) {
5438
- if (token === "YYYY") {
5439
- throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format2, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
5440
- } else if (token === "YY") {
5441
- throw new RangeError("Use `yy` instead of `YY` (in `".concat(format2, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
5442
- } else if (token === "D") {
5443
- throw new RangeError("Use `d` instead of `D` (in `".concat(format2, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
5444
- } else if (token === "DD") {
5445
- throw new RangeError("Use `dd` instead of `DD` (in `".concat(format2, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
5459
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/locale/en-US/index.js
5460
+ var locale = {
5461
+ code: "en-US",
5462
+ formatDistance: formatDistance_default,
5463
+ formatLong: formatLong_default,
5464
+ formatRelative: formatRelative_default,
5465
+ localize: localize_default,
5466
+ match: match_default,
5467
+ options: {
5468
+ weekStartsOn: 0,
5469
+ firstWeekContainsDate: 1
5446
5470
  }
5447
- }
5448
- __name(throwProtectedError, "throwProtectedError");
5471
+ };
5472
+ var en_US_default = locale;
5449
5473
 
5450
- // ../../../node_modules/.pnpm/date-fns@2.28.0/node_modules/date-fns/esm/format/index.js
5474
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/_lib/defaultLocale/index.js
5475
+ var defaultLocale_default = en_US_default;
5476
+
5477
+ // ../../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/esm/format/index.js
5451
5478
  var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;
5452
5479
  var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
5453
5480
  var escapedStringRegExp = /^'([^]*?)'?$/;
5454
5481
  var doubleQuoteRegExp = /''/g;
5455
5482
  var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
5456
- function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
5483
+ function format(dirtyDate, dirtyFormatStr, options) {
5484
+ var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
5457
5485
  requiredArgs(2, arguments);
5458
5486
  var formatStr = String(dirtyFormatStr);
5459
- var options = dirtyOptions || {};
5460
- var locale2 = options.locale || en_US_default;
5461
- var localeFirstWeekContainsDate = locale2.options && locale2.options.firstWeekContainsDate;
5462
- var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);
5463
- var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);
5487
+ var defaultOptions2 = getDefaultOptions();
5488
+ var locale2 = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions2.locale) !== null && _ref !== void 0 ? _ref : defaultLocale_default;
5489
+ var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions2.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions2.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1);
5464
5490
  if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
5465
5491
  throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
5466
5492
  }
5467
- var localeWeekStartsOn = locale2.options && locale2.options.weekStartsOn;
5468
- var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);
5469
- var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn);
5493
+ var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions2.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions2.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0);
5470
5494
  if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
5471
5495
  throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
5472
5496
  }
@@ -5492,7 +5516,7 @@ function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
5492
5516
  var firstCharacter = substring[0];
5493
5517
  if (firstCharacter === "p" || firstCharacter === "P") {
5494
5518
  var longFormatter = longFormatters_default[firstCharacter];
5495
- return longFormatter(substring, locale2.formatLong, formatterOptions);
5519
+ return longFormatter(substring, locale2.formatLong);
5496
5520
  }
5497
5521
  return substring;
5498
5522
  }).join("").match(formattingTokensRegExp).map(function(substring) {
@@ -5505,11 +5529,11 @@ function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
5505
5529
  }
5506
5530
  var formatter = formatters_default[firstCharacter];
5507
5531
  if (formatter) {
5508
- if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(substring)) {
5509
- throwProtectedError(substring, dirtyFormatStr, dirtyDate);
5532
+ if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
5533
+ throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
5510
5534
  }
5511
- if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(substring)) {
5512
- throwProtectedError(substring, dirtyFormatStr, dirtyDate);
5535
+ if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
5536
+ throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
5513
5537
  }
5514
5538
  return formatter(utcDate, substring, locale2.localize, formatterOptions);
5515
5539
  }
@@ -5522,7 +5546,11 @@ function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
5522
5546
  }
5523
5547
  __name(format, "format");
5524
5548
  function cleanEscapedString(input) {
5525
- return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
5549
+ var matched = input.match(escapedStringRegExp);
5550
+ if (!matched) {
5551
+ return input;
5552
+ }
5553
+ return matched[1].replace(doubleQuoteRegExp, "'");
5526
5554
  }
5527
5555
  __name(cleanEscapedString, "cleanEscapedString");
5528
5556
 
@@ -5533,14 +5561,26 @@ var transformErrorCheck = /* @__PURE__ */ __name((error, _credential) => {
5533
5561
  }, "transformErrorCheck");
5534
5562
  var transformErrorMessage = /* @__PURE__ */ __name((error, credential) => {
5535
5563
  if (error.startsWith("expiration")) {
5536
- return credential.expirationDate ? `Invalid \u2022 Expired ${format(new Date(credential.expirationDate), "dd MMM yyyy").toUpperCase()}` : "Invalid \u2022 Expired";
5564
+ return credential.expirationDate ? `Invalid \u2022 Expired ${format(
5565
+ new Date(credential.expirationDate),
5566
+ "dd MMM yyyy"
5567
+ ).toUpperCase()}` : "Invalid \u2022 Expired";
5537
5568
  }
5538
5569
  return error;
5539
5570
  }, "transformErrorMessage");
5571
+ var transformWarningCheck = /* @__PURE__ */ __name((warning, _credential) => {
5572
+ if (warning.includes("Boost Authenticity"))
5573
+ return "Boost Authenticity";
5574
+ const prefix = warning.split(" warning")[0];
5575
+ return prefix || warning;
5576
+ }, "transformWarningCheck");
5540
5577
  var transformCheckMessage = /* @__PURE__ */ __name((check, credential) => {
5541
5578
  return {
5542
5579
  proof: "Valid",
5543
- expiration: credential.expirationDate ? `Valid \u2022 Expires ${format(new Date(credential.expirationDate), "dd MMM yyyy").toUpperCase()}` : "Valid \u2022 Does Not Expire"
5580
+ expiration: credential.expirationDate ? `Valid \u2022 Expires ${format(
5581
+ new Date(credential.expirationDate),
5582
+ "dd MMM yyyy"
5583
+ ).toUpperCase()}` : "Valid \u2022 Does Not Expire"
5544
5584
  }[check] || check;
5545
5585
  }, "transformCheckMessage");
5546
5586
  var verifyCredential = /* @__PURE__ */ __name((learnCard) => {
@@ -5559,7 +5599,7 @@ var verifyCredential = /* @__PURE__ */ __name((learnCard) => {
5559
5599
  rawVerificationCheck.warnings.forEach((warning) => {
5560
5600
  verificationItems.push({
5561
5601
  status: VerificationStatusEnum.Error,
5562
- check: "hmm",
5602
+ check: transformWarningCheck(warning, credential),
5563
5603
  message: warning
5564
5604
  });
5565
5605
  });