temporal-polyfill-lite 0.4.1 → 0.4.2

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,15 +1,33 @@
1
- function getNameFromUnit(e) {
2
- return ae[e];
3
- }
4
- function nanosecondsForTimeUnit(e) {
5
- return ce[e - 3];
6
- }
7
1
  function isObject(e) {
8
2
  return ("object" == typeof e || "function" == typeof e) && null !== e;
9
3
  }
10
4
  function createNullPrototypeObject(e) {
11
5
  return Object.assign(Object.create(null), e);
12
6
  }
7
+ function makePropertyNonEnumerable(e, t) {
8
+ Object.defineProperty(e, t, { enumerable: !1 });
9
+ }
10
+ function makePropertiesNonEnumerable(e) {
11
+ for (const t of Object.keys(e)) makePropertyNonEnumerable(e, t);
12
+ }
13
+ function defineNonEnumerableProperty(e, t, o) {
14
+ e[t] = o, makePropertyNonEnumerable(e, t);
15
+ }
16
+ function defineStringTag(e, t) {
17
+ Object.defineProperty(e, Symbol.toStringTag, {
18
+ value: t,
19
+ configurable: !0
20
+ });
21
+ }
22
+ function renameFunction(e, t) {
23
+ Object.defineProperty(e, "name", { value: t });
24
+ }
25
+ function getNameFromUnit(e) {
26
+ return v[e];
27
+ }
28
+ function nanosecondsForTimeUnit(e) {
29
+ return M[e - 3];
30
+ }
13
31
  function mapUnlessUndefined(e, t) {
14
32
  return void 0 === e ? void 0 : t(e);
15
33
  }
@@ -22,6 +40,19 @@ function throwRangeError(e) {
22
40
  function throwTypeError(e) {
23
41
  throw new TypeError(e);
24
42
  }
43
+ function getInternalSlotOrThrow(e, t) {
44
+ const o = e.get(t);
45
+ return o || throwTypeError("invalid method call"), o;
46
+ }
47
+ function getInternalSlotOrThrowForDurationFormat(e) {
48
+ return getInternalSlotOrThrow(L, e);
49
+ }
50
+ function durationRecordToDurationLikeObject(e) {
51
+ const t = createNullPrototypeObject();
52
+ return E.map((o, n) => {
53
+ t[o] = e[n];
54
+ }), t;
55
+ }
25
56
  function toPrimitive(e) {
26
57
  if (!isObject(e)) return e;
27
58
  const t = e[Symbol.toPrimitive];
@@ -38,11 +69,11 @@ function toBigInt(e) {
38
69
  return BigInt.asIntN(2 ** 53 - 1, e);
39
70
  }
40
71
  function toIntegerIfIntegral(e) {
41
- const t = Oe(e);
72
+ const t = Se(e);
42
73
  return Number.isInteger(t) || throwRangeError(invalidNumber(t)), t + 0;
43
74
  }
44
75
  function toIntegerWithTruncation(e) {
45
- const t = Oe(e);
76
+ const t = Se(e);
46
77
  return isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
47
78
  }
48
79
  function toPositiveIntegerWithTruncation(e) {
@@ -54,11 +85,11 @@ function getOptionsObject(e = createNullPrototypeObject()) {
54
85
  }
55
86
  function getOption(e, t, o, n) {
56
87
  const r = e[t];
57
- if (void 0 === r) return n === u && throwRangeError(missingField(t)), n;
88
+ if (void 0 === r) return n === B && throwRangeError(missingField(t)), n;
58
89
  const a = toString(r);
59
90
  return o.includes(a) || throwRangeError(invalidField(t)), a;
60
91
  }
61
- function getRoundToOptionsObject(e = throwTypeError(Ie)) {
92
+ function getRoundToOptionsObject(e = throwTypeError(W)) {
62
93
  return "string" == typeof e ? createNullPrototypeObject({ smallestUnit: e }) : getOptionsObject(e);
63
94
  }
64
95
  function validateString(e) {
@@ -85,24 +116,6 @@ function clamp(e, t, o) {
85
116
  function isWithin(e, t, o) {
86
117
  return e >= t && e <= o;
87
118
  }
88
- function makePropertyNonEnumerable(e, t) {
89
- Object.defineProperty(e, t, { enumerable: !1 });
90
- }
91
- function makePropertiesNonEnumerable(e) {
92
- for (const t of Object.keys(e)) makePropertyNonEnumerable(e, t);
93
- }
94
- function defineNonEnumerableProperty(e, t, o) {
95
- e[t] = o, makePropertyNonEnumerable(e, t);
96
- }
97
- function defineStringTag(e, t) {
98
- Object.defineProperty(e, Symbol.toStringTag, {
99
- value: t,
100
- configurable: !0
101
- });
102
- }
103
- function renameFunction(e, t) {
104
- Object.defineProperty(e, "name", { value: t });
105
- }
106
119
  function normalizeEpochNanoseconds(e, t) {
107
120
  return [e + divFloor(t, a), modFloor(t, a)];
108
121
  }
@@ -163,11 +176,11 @@ function negateTimeDuration(e) {
163
176
  return normalize(-e[0], -e[1]);
164
177
  }
165
178
  function signTimeDuration(e) {
166
- return we(e, ye);
179
+ return Ee(e, ve);
167
180
  }
168
181
  function timeDurationToSubsecondsNumber(e, t, o) {
169
182
  const n = signTimeDuration(e);
170
- return e = absTimeDuration(e), n * Oe(`${864 * e[0] + divTrunc(e[1], 1e11)}${toZeroPaddedDecimalString(divTrunc(e[1] % 1e11, 10 ** (9 + t)), 2 - t)}.${o ? toZeroPaddedDecimalString(e[1] % 10 ** (9 + t), 9 + t) : "0"}`) + 0;
183
+ return e = absTimeDuration(e), n * Se(`${864 * e[0] + divTrunc(e[1], 1e11)}${toZeroPaddedDecimalString(divTrunc(e[1] % 1e11, 10 ** (9 + t)), 2 - t)}.${o ? toZeroPaddedDecimalString(e[1] % 10 ** (9 + t), 9 + t) : "0"}`) + 0;
171
184
  }
172
185
  function roundTimeDurationByDays(e, t, o) {
173
186
  return normalize(roundNumberToIncrement(e[0] + signTimeDuration(e) * (e[1] ? .2 * compare(Math.abs(e[1] / a), .5) + .5 : 0), t, o), 0);
@@ -178,10 +191,10 @@ function divideTimeDurationToFloatingPoint(e, t) {
178
191
  function interpretISODateTimeOffset(e, t, o, n, r, a, i, c) {
179
192
  if (!t) return getStartOfDay(r, e);
180
193
  const s = combineIsoDateAndTimeRecord(e, t);
181
- if (o === S || o === O && "ignore" == i) return getEpochNanosecondsFor(r, s, a);
182
- if (o === F || o === O && "use" == i) return validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(s.o.t, s.o.u, s.o.T, s.p.D, s.p.I, s.p.O, s.p.F, s.p.S, s.p.$ - n)));
194
+ if (o === ne || o === te && "ignore" == i) return getEpochNanosecondsFor(r, s, a);
195
+ if (o === oe || o === te && "use" == i) return validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(s.o.t, s.o.u, s.o.T, s.p.D, s.p.I, s.p.O, s.p.F, s.p.S, s.p.$ - n)));
183
196
  ((e) => {
184
- Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(le);
197
+ Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(P);
185
198
  })(e);
186
199
  const l = getPossibleEpochNanoseconds(r, s);
187
200
  for (const e of l) {
@@ -196,40 +209,40 @@ function toTemporalZonedDateTime(e, t) {
196
209
  if (isObject(e)) {
197
210
  if (isZonedDateTime(e)) {
198
211
  const o = getOptionsObject(t);
199
- return getTemporalDisambiguationOption(o), getTemporalOffsetOption(o, h), getTemporalOverflowOption(o), getInternalSlotOrThrowForZonedDateTime(e);
212
+ return getTemporalDisambiguationOption(o), getTemporalOffsetOption(o, X), getTemporalOverflowOption(o), getInternalSlotOrThrowForZonedDateTime(e);
200
213
  }
201
214
  i = getTemporalCalendarIdentifierWithIsoDefault(e);
202
215
  const l = prepareCalendarFields(i, e, [
203
- Ot.t,
204
- Ot.u,
205
- Ot.v,
206
- Ot.T,
207
- Ot.D,
208
- Ot.I,
209
- Ot.O,
210
- Ot.F,
211
- Ot.S,
212
- Ot.$,
213
- Ot.M,
214
- Ot.P
215
- ], [Ot.P]);
216
+ St.t,
217
+ St.u,
218
+ St.v,
219
+ St.T,
220
+ St.D,
221
+ St.I,
222
+ St.O,
223
+ St.F,
224
+ St.S,
225
+ St.$,
226
+ St.M,
227
+ St.P
228
+ ], [St.P]);
216
229
  o = l.timeZone, n = l.offset;
217
230
  const d = getOptionsObject(t);
218
- r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, h);
231
+ r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, X);
219
232
  const m = interpretTemporalDateTimeFields(i, l, getTemporalOverflowOption(d));
220
233
  c = m.o, s = m.p;
221
234
  } else {
222
235
  validateString(e);
223
- const m = parseIsoDateTime(e, [Ge]);
236
+ const m = parseIsoDateTime(e, [Qe]);
224
237
  o = toTemporalTimeZoneIdentifier(m.P.R), n = m.P.N, l = m.P.Z, i = canonicalizeCalendar(m.Y || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
225
238
  const u = getOptionsObject(t);
226
- r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, h), getTemporalOverflowOption(u), c = createIsoDateRecord(m.t, m.u, m.T), s = m.p;
239
+ r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, X), getTemporalOverflowOption(u), c = createIsoDateRecord(m.t, m.u, m.T), s = m.p;
227
240
  }
228
- const m = l ? F : n ? O : S;
229
- return createZonedDateTimeSlot(interpretISODateTimeOffset(c, s, m, m === O ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
241
+ const m = l ? oe : n ? te : ne;
242
+ return createZonedDateTimeSlot(interpretISODateTimeOffset(c, s, m, m === te ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
230
243
  }
231
244
  function createTemporalZonedDateTime(e, t, o, n) {
232
- return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => be[e] && be[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
245
+ return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Re[e] && Re[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
233
246
  }
234
247
  function createZonedDateTimeSlot(e, t, o, n) {
235
248
  return {
@@ -239,34 +252,34 @@ function createZonedDateTimeSlot(e, t, o, n) {
239
252
  W: n
240
253
  };
241
254
  }
242
- function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = J, c = E) {
255
+ function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = D, c = ce) {
243
256
  const s = roundTemporalInstant(e.U, a, i, c), l = epochSeconds(s) === epochSeconds(e.U) ? getOffsetNanosecondsForZonedDateTimeSlot(e) : getOffsetNanosecondsFor(e.P, s);
244
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(s, l), "iso8601", t, C)}${r === j ? "" : formatDateTimeUtcOffsetRounded(l)}${n === A ? "" : `[${n === L ? "!" : ""}${e.P}]`}${formatCalendarAnnotation(e.Y, o)}`;
257
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(s, l), "iso8601", t, he)}${r === fe ? "" : formatDateTimeUtcOffsetRounded(l)}${n === Oe ? "" : `[${n === Fe ? "!" : ""}${e.P}]`}${formatCalendarAnnotation(e.Y, o)}`;
245
258
  }
246
259
  function addZonedDateTime(e, t, o) {
247
260
  if (!dateDurationSign(t.A)) return addInstant(e.U, t.p);
248
261
  const n = getIsoDateTimeForZonedDateTimeSlot(e);
249
- return addInstant(getEpochNanosecondsFor(e.P, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.Y, n.o, t.A, o), n.p)), p), t.p);
262
+ return addInstant(getEpochNanosecondsFor(e.P, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.Y, n.o, t.A, o), n.p)), G), t.p);
250
263
  }
251
264
  function differenceZonedDateTime(e, t, o) {
252
265
  const n = compareEpochNanoseconds(e.U, t.U);
253
- if (!n) return combineDateAndTimeDuration(zeroDateDuration(), ye);
266
+ if (!n) return combineDateAndTimeDuration(zeroDateDuration(), ve);
254
267
  const r = getIsoDateTimeForZonedDateTimeSlot(e), a = getIsoDateTimeForZonedDateTimeSlot(t);
255
268
  if (!compareIsoDate(r.o, a.o)) return combineDateAndTimeDuration(zeroDateDuration(), timeDurationFromEpochNanosecondsDifference(t.U, e.U));
256
269
  let i, c = differenceTime(r.p, a.p);
257
- for (let o = wt(c) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), c = timeDurationFromEpochNanosecondsDifference(t.U, getEpochNanosecondsFor(e.P, i, p)), wt(c) === n); o++);
258
- return combineDateAndTimeDuration(calendarDateUntil(e.Y, r.o, i.o, largerOfTwoTemporalUnits(o, x)), c);
270
+ for (let o = Et(c) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), c = timeDurationFromEpochNanosecondsDifference(t.U, getEpochNanosecondsFor(e.P, i, G)), Et(c) === n); o++);
271
+ return combineDateAndTimeDuration(calendarDateUntil(e.Y, r.o, i.o, largerOfTwoTemporalUnits(o, d)), c);
259
272
  }
260
273
  function differenceZonedDateTimeWithRounding(e, t, o, n, r, a) {
261
274
  if (!isDateUnit(o)) return differenceInstant(e.U, t.U, n, r, a);
262
275
  const i = differenceZonedDateTime(e, t, o);
263
- return r === J && 1 === n ? i : roundRelativeDuration(i, e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o, n, r, a);
276
+ return r === D && 1 === n ? i : roundRelativeDuration(i, e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o, n, r, a);
264
277
  }
265
278
  function differenceTemporalZonedDateTime(e, t, o, n) {
266
279
  const r = toTemporalZonedDateTime(o);
267
- calendarEquals(t.Y, r.Y) || throwRangeError(ue);
268
- const a = getDifferenceSettings(e, getOptionsObject(n), l, [], J, H);
269
- return isDateUnit(a.L) ? (timeZoneEquals(t.P, r.P) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.U, r.U) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.L, a.V, a.H, a.q), H), e)) : createTemporalDuration(createTemporalDurationSlot([
280
+ calendarEquals(t.Y, r.Y) || throwRangeError(Z);
281
+ const a = getDifferenceSettings(e, getOptionsObject(n), x, [], D, m);
282
+ return isDateUnit(a.L) ? (timeZoneEquals(t.P, r.P) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.U, r.U) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.L, a.V, a.H, a.q), m), e)) : createTemporalDuration(createTemporalDurationSlot([
270
283
  0,
271
284
  0,
272
285
  0,
@@ -288,18 +301,17 @@ function getOffsetNanosecondsForZonedDateTimeSlot(e) {
288
301
  function getIsoDateTimeForZonedDateTimeSlot(e) {
289
302
  return getIsoDateTimeFromOffsetNanoseconds(e.U, getOffsetNanosecondsForZonedDateTimeSlot(e));
290
303
  }
291
- function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Ee.prototype)) {
292
- return ve.set(t, e), t;
304
+ function createTemporalZonedDateTimeFromSlot(e, t = Object.create(be.prototype)) {
305
+ return Me.set(t, e), t;
293
306
  }
294
307
  function calendarIsoToDateForZonedDateTimeSlot(e) {
295
308
  return calendarIsoToDate(e.Y, getIsoDateTimeForZonedDateTimeSlot(e).o);
296
309
  }
297
310
  function getInternalSlotForZonedDateTime(e) {
298
- return ve.get(e);
311
+ return Me.get(e);
299
312
  }
300
313
  function getInternalSlotOrThrowForZonedDateTime(e) {
301
- const t = getInternalSlotForZonedDateTime(e);
302
- return t || throwTypeError(Te), t;
314
+ return getInternalSlotOrThrow(Me, e);
303
315
  }
304
316
  function isZonedDateTime(e) {
305
317
  return !!getInternalSlotForZonedDateTime(e);
@@ -325,7 +337,7 @@ function clampEpochSecond(e) {
325
337
  }
326
338
  function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
327
339
  if ("UTC" === t) return 0;
328
- const r = clampEpochSecond(o), a = be[t] ||= createLruCache(5e3), i = a.C(r);
340
+ const r = clampEpochSecond(o), a = Re[t] ||= createLruCache(5e3), i = a.C(r);
329
341
  if (void 0 !== i) return i;
330
342
  const c = getFormatterForTimeZone(t).formatToParts(1e3 * r), s = (utcEpochMilliseconds(...[
331
343
  "year",
@@ -338,7 +350,7 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
338
350
  return n || a.B(r, s), s;
339
351
  }
340
352
  function getFormatterForTimeZone(e) {
341
- return Me[e] ||= new bt("en-u-hc-h23", {
353
+ return Pe[e] ||= new Rt("en-u-hc-h23", {
342
354
  timeZone: e,
343
355
  year: "numeric",
344
356
  month: "numeric",
@@ -378,10 +390,10 @@ function formatOffsetTimeZoneIdentifier(e) {
378
390
  }
379
391
  function formatUtcOffsetNanoseconds(e) {
380
392
  const n = Math.abs(e);
381
- return `${e < 0 ? "-" : "+"}${formatTimeString(divFloor(n, o), modFloor(divFloor(n, t), 60), modFloor(divFloor(n, 1e9), 60), 0, n % 6e10 ? void 0 : T)}`;
393
+ return `${e < 0 ? "-" : "+"}${formatTimeString(divFloor(n, o), modFloor(divFloor(n, t), 60), modFloor(divFloor(n, 1e9), 60), 0, n % 6e10 ? void 0 : J)}`;
382
394
  }
383
395
  function formatDateTimeUtcOffsetRounded(e) {
384
- return formatOffsetTimeZoneIdentifier(roundNumberToIncrement(e, t, P) / t);
396
+ return formatOffsetTimeZoneIdentifier(roundNumberToIncrement(e, t, de) / t);
385
397
  }
386
398
  function toTemporalTimeZoneIdentifier(e) {
387
399
  if (isZonedDateTime(e)) return getInternalSlotOrThrowForZonedDateTime(e).P;
@@ -389,12 +401,12 @@ function toTemporalTimeZoneIdentifier(e) {
389
401
  const t = ((e) => {
390
402
  if (isTimeZoneIdentifier(e)) return parseTimeZoneIdentifier(e);
391
403
  const t = parseIsoDateTime(e, [
392
- Ge,
393
- Ke,
394
404
  Qe,
395
405
  et,
396
406
  tt,
397
- ot
407
+ ot,
408
+ nt,
409
+ rt
398
410
  ]).P, o = t.R || t.Z && "UTC" || t.N;
399
411
  return o || throwRangeError(invalidTimeZone(e)), parseTimeZoneIdentifier(o);
400
412
  })(e);
@@ -407,7 +419,7 @@ function getEpochNanosecondsFor(e, t, o) {
407
419
  return disambiguatePossibleEpochNanoseconds(getPossibleEpochNanoseconds(e, t), e, t, o);
408
420
  }
409
421
  function disambiguatePossibleEpochNanoseconds(e, t, o, n) {
410
- return 1 === e.length ? e[0] : ("reject" === n && throwRangeError("ambiguity / gaps in local time"), getNamedTimeZoneEpochCandidates(t, o).map(validateEpochNanoseconds)["compatible" === n ? +!e[0] : +(n === g)]);
422
+ return 1 === e.length ? e[0] : ("reject" === n && throwRangeError("ambiguity / gaps in local time"), getNamedTimeZoneEpochCandidates(t, o).map(validateEpochNanoseconds)["compatible" === n ? +!e[0] : +(n === K)]);
411
423
  }
412
424
  function getPossibleEpochNanoseconds(e, t) {
413
425
  return isOffsetTimeZoneIdentifier(e) ? [validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.o.t, t.o.u, t.o.T, t.p.D, t.p.I, t.p.O, t.p.F, t.p.S, t.p.$ - parseDateTimeUtcOffset(e))))] : ((e, t) => getNamedTimeZoneEpochCandidates(e, t).filter((o) => !compareEpochNanoseconds(addNanosecondsToEpochSeconds(o, getOffsetNanosecondsFor(e, o)), getUtcEpochNanoseconds(t))))(e, t).map(validateEpochNanoseconds);
@@ -444,7 +456,7 @@ function combineIsoDateAndTimeRecord(e, t) {
444
456
  };
445
457
  }
446
458
  function interpretTemporalDateTimeFields(e, t, o) {
447
- return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Ot.D], t[Ot.I], t[Ot.O], t[Ot.F], t[Ot.S], t[Ot.$], o));
459
+ return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[St.D], t[St.I], t[St.O], t[St.F], t[St.S], t[St.$], o));
448
460
  }
449
461
  function toTemporalDateTime(e, t) {
450
462
  if (isObject(e)) {
@@ -464,28 +476,28 @@ function toTemporalDateTime(e, t) {
464
476
  }
465
477
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
466
478
  return createTemporalDateTime(interpretTemporalDateTimeFields(o, prepareCalendarFields(o, e, [
467
- Ot.t,
468
- Ot.u,
469
- Ot.v,
470
- Ot.T,
471
- Ot.D,
472
- Ot.I,
473
- Ot.O,
474
- Ot.F,
475
- Ot.S,
476
- Ot.$
479
+ St.t,
480
+ St.u,
481
+ St.v,
482
+ St.T,
483
+ St.D,
484
+ St.I,
485
+ St.O,
486
+ St.F,
487
+ St.S,
488
+ St.$
477
489
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
478
490
  }
479
491
  validateString(e);
480
- const o = parseIsoDateTime(e, [Ke]), n = canonicalizeCalendar(o.Y || "iso8601");
492
+ const o = parseIsoDateTime(e, [et]), n = canonicalizeCalendar(o.Y || "iso8601");
481
493
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(o.t, o.u, o.T), o.p || midnightTimeRecord()), n);
482
494
  }
483
495
  function balanceIsoDateTime(e, t, o, n, r, a, i, c, s) {
484
496
  const l = balanceTime(n, r, a, i, c, s);
485
497
  return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), l.X), l);
486
498
  }
487
- function createTemporalDateTime(e, t, o = Object.create(Re.prototype)) {
488
- return Pe.set(o, {
499
+ function createTemporalDateTime(e, t, o = Object.create(Ze.prototype)) {
500
+ return Ne.set(o, {
489
501
  K: validateIsoDateTime(e),
490
502
  Y: t
491
503
  }), o;
@@ -502,22 +514,22 @@ function roundIsoDateTime(e, t, o, n) {
502
514
  }
503
515
  function differenceISODateTime(e, t, o, n) {
504
516
  let r = differenceTime(e.p, t.p);
505
- const a = wt(r);
517
+ const a = Et(r);
506
518
  let i = t.o;
507
519
  a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
508
- const c = largerOfTwoTemporalUnits(x, n), s = calendarDateUntil(o, e.o, i, c);
520
+ const c = largerOfTwoTemporalUnits(d, n), s = calendarDateUntil(o, e.o, i, c);
509
521
  return n !== c && (r = add24HourDaysToTimeDuration(r, s.X), s.X = 0), combineDateAndTimeDuration(s, r);
510
522
  }
511
523
  function differencePlainDateTimeWithRounding(e, t, o, n, r, a, i) {
512
- if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), ye);
524
+ if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), ve);
513
525
  validateIsoDateTime(e), validateIsoDateTime(t);
514
526
  const c = differenceISODateTime(e, t, o, n);
515
- return a === J && 1 === r ? c : roundRelativeDuration(c, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
527
+ return a === D && 1 === r ? c : roundRelativeDuration(c, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
516
528
  }
517
529
  function differenceTemporalPlainDateTime(e, t, o, n) {
518
530
  const r = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(o));
519
- calendarEquals(t.Y, r.Y) || throwRangeError(ue);
520
- const a = getDifferenceSettings(e, getOptionsObject(n), l, [], J, x);
531
+ calendarEquals(t.Y, r.Y) || throwRangeError(Z);
532
+ const a = getDifferenceSettings(e, getOptionsObject(n), x, [], D, d);
521
533
  return compareIsoDateTime(t.K, r.K) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.K, r.K, t.Y, a.L, a.V, a.H, a.q), a.L), e)) : createTemporalDuration(createTemporalDurationSlot([
522
534
  0,
523
535
  0,
@@ -539,14 +551,13 @@ function validateIsoDateTime(e) {
539
551
  return ((e) => {
540
552
  const t = isoDateRecordToEpochDays(e.o);
541
553
  return Math.abs(t) <= 1e8 || -100000001 === t && !!compareTimeRecord(e.p, midnightTimeRecord());
542
- })(e) || throwRangeError(le), e;
554
+ })(e) || throwRangeError(P), e;
543
555
  }
544
556
  function getInternalSlotForPlainDateTime(e) {
545
- return Pe.get(e);
557
+ return Ne.get(e);
546
558
  }
547
559
  function getInternalSlotOrThrowForPlainDateTime(e) {
548
- const t = getInternalSlotForPlainDateTime(e);
549
- return t || throwTypeError(Te), t;
560
+ return getInternalSlotOrThrow(Ne, e);
550
561
  }
551
562
  function isPlainDateTime(e) {
552
563
  return !!getInternalSlotForPlainDateTime(e);
@@ -575,14 +586,14 @@ function differenceTime(e, t) {
575
586
  function toTemporalTime(e, t) {
576
587
  if (isObject(e)) return isPlainTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainTime(e)) : isPlainDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainDateTime(e).K.p) : isZonedDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(e)).p) : regulateTime(...toTemporalTimeRecord(e), getTemporalOverflowOption(getOptionsObject(t)));
577
588
  validateString(e);
578
- const o = parseIsoDateTime(e, [et]);
589
+ const o = parseIsoDateTime(e, [ot]);
579
590
  return getTemporalOverflowOption(getOptionsObject(t)), o.p;
580
591
  }
581
592
  function toTimeRecordOrMidnight(e) {
582
593
  return void 0 === e ? midnightTimeRecord() : toTemporalTime(e);
583
594
  }
584
595
  function regulateTime(e, t, o, n, r, a, i) {
585
- return "constrain" === i ? createTimeRecord(clamp(e, 0, 23), clamp(t, 0, 59), clamp(o, 0, 59), clamp(n, 0, 999), clamp(r, 0, 999), clamp(a, 0, 999)) : (isValidTime(e, t, o, n, r, a) || throwRangeError(se), createTimeRecord(e, t, o, n, r, a));
596
+ return "constrain" === i ? createTimeRecord(clamp(e, 0, 23), clamp(t, 0, 59), clamp(o, 0, 59), clamp(n, 0, 999), clamp(r, 0, 999), clamp(a, 0, 999)) : (isValidTime(e, t, o, n, r, a) || throwRangeError(b), createTimeRecord(e, t, o, n, r, a));
586
597
  }
587
598
  function isValidTime(e, t, o, n, r, a) {
588
599
  return isWithin(e, 0, 23) && isWithin(t, 0, 59) && isWithin(o, 0, 59) && isWithin(n, 0, 999) && isWithin(r, 0, 999) && isWithin(a, 0, 999);
@@ -598,23 +609,23 @@ function balanceTime(e, t, o, n, r, a) {
598
609
  X: divFloor(e, 24)
599
610
  };
600
611
  }
601
- function createTemporalTime(e, t = Object.create(Ze.prototype)) {
602
- return Ne.set(t, e), t;
612
+ function createTemporalTime(e, t = Object.create(Ce.prototype)) {
613
+ return $e.set(t, e), t;
603
614
  }
604
615
  function toTemporalTimeRecord(e, t = !1) {
605
616
  let o = !1;
606
617
  const n = [
607
- Ot.D,
608
- Ot.S,
609
- Ot.F,
610
- Ot.I,
611
- Ot.$,
612
- Ot.O
618
+ St.D,
619
+ St.S,
620
+ St.F,
621
+ St.I,
622
+ St.$,
623
+ St.O
613
624
  ].map((n) => {
614
625
  const r = e[n];
615
626
  return void 0 !== r ? (o = !0, toIntegerWithTruncation(r)) : t ? void 0 : 0;
616
627
  });
617
- return o || throwTypeError(ge), [
628
+ return o || throwTypeError(U), [
618
629
  0,
619
630
  3,
620
631
  5,
@@ -638,18 +649,17 @@ function roundTime(e, n, r, a) {
638
649
  return balanceTime(0, 0, 0, 0, 0, divFloor(c, i) * i + roundNumberToIncrement(modFloor(c, i), n * nanosecondsForTimeUnit(r), a));
639
650
  }
640
651
  function differenceTemporalPlainTime(e, t, o, n) {
641
- const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), s, [], J, H);
652
+ const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), V, [], D, m);
642
653
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.V, a.H, a.q)), a.L), e));
643
654
  }
644
655
  function addDurationToTime(e, t, o) {
645
656
  return createTemporalTime(addTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)).p));
646
657
  }
647
658
  function getInternalSlotOrThrowForPlainTime(e) {
648
- const t = Ne.get(e);
649
- return t || throwTypeError(Te), t;
659
+ return getInternalSlotOrThrow($e, e);
650
660
  }
651
661
  function isPlainTime(e) {
652
- return Ne.has(e);
662
+ return $e.has(e);
653
663
  }
654
664
  function optionalChain(e) {
655
665
  return e.reduceRight((e, t) => `${t}(?:${e})?`);
@@ -661,31 +671,31 @@ function createRegExp(e) {
661
671
  return RegExp(`^(?:${e})$`);
662
672
  }
663
673
  function isAmbiguousTemporalTimeString(e) {
664
- return nt.some((t) => isSemanticallyValid(e.match(t)?.groups));
674
+ return at.some((t) => isSemanticallyValid(e.match(t)?.groups));
665
675
  }
666
676
  function isTimeZoneIdentifier(e) {
667
- return rt.test(e);
677
+ return it.test(e);
668
678
  }
669
679
  function isSemanticallyValid(e) {
670
- return !!e && "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Oe(e.a), Oe(e.b), Oe(e.c))) && (!e.n || isValidIsoDate(1972, Oe(e.m), Oe(e.n)));
680
+ return !!e && "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Se(e.a), Se(e.b), Se(e.c))) && (!e.n || isValidIsoDate(1972, Se(e.m), Se(e.n)));
671
681
  }
672
682
  function parseIsoDateTime(e, t) {
673
683
  for (const o of t) {
674
684
  const t = e.match(o);
675
- if (!t || !isSemanticallyValid(t.groups) || o === et && isAmbiguousTemporalTimeString(e)) continue;
685
+ if (!t || !isSemanticallyValid(t.groups) || o === ot && isAmbiguousTemporalTimeString(e)) continue;
676
686
  const n = t.groups;
677
687
  let r;
678
688
  if (n.k) {
679
689
  let t = !1;
680
- for (const [, o, a, i] of n.k.matchAll(Xe)) "u-ca" === a ? r ? (o || t) && throwRangeError(parseError(e)) : (r = i, t = !!o) : o && throwRangeError(parseError(e));
690
+ for (const [, o, a, i] of n.k.matchAll(Ke)) "u-ca" === a ? r ? (o || t) && throwRangeError(parseError(e)) : (r = i, t = !!o) : o && throwRangeError(parseError(e));
681
691
  }
682
692
  n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(parseError(e));
683
693
  const a = (n.g || "").padEnd(9, "0");
684
694
  return {
685
- t: mapUnlessUndefined(n.a || n.l, Oe),
686
- u: Oe(n.b || n.m || 1),
687
- T: Oe(n.c || n.n || 1),
688
- p: n.d ? createTimeRecord(Oe(n.d || 0), Oe(n.e || 0), clamp(Oe(n.f || 0), 0, 59), Oe(a.slice(0, 3)), Oe(a.slice(3, 6)), Oe(a.slice(6))) : void 0,
695
+ t: mapUnlessUndefined(n.a || n.l, Se),
696
+ u: Se(n.b || n.m || 1),
697
+ T: Se(n.c || n.n || 1),
698
+ p: n.d ? createTimeRecord(Se(n.d || 0), Se(n.e || 0), clamp(Se(n.f || 0), 0, 59), Se(a.slice(0, 3)), Se(a.slice(3, 6)), Se(a.slice(6))) : void 0,
689
699
  P: {
690
700
  Z: !!n.i,
691
701
  N: n.h,
@@ -697,11 +707,11 @@ function parseIsoDateTime(e, t) {
697
707
  throwRangeError(parseError(e));
698
708
  }
699
709
  function parseDateTimeUtcOffset(e) {
700
- const o = e.match(it);
701
- return o || throwRangeError(parseError(e)), Oe(`${o[1]}1`) * (36e11 * Oe(o[2]) + Oe(o[4] || "") * t + 1e9 * Oe(o[5] || "") + Oe((o[6] || "").padEnd(9, "0")) + 0);
710
+ const o = e.match(st);
711
+ return o || throwRangeError(parseError(e)), Se(`${o[1]}1`) * (36e11 * Se(o[2]) + Se(o[4] || "") * t + 1e9 * Se(o[5] || "") + Se((o[6] || "").padEnd(9, "0")) + 0);
702
712
  }
703
713
  function hasUtcOffsetSubMinuteParts(e) {
704
- return !!e.match(it)[5];
714
+ return !!e.match(st)[5];
705
715
  }
706
716
  function toTemporalMonthDay(e, t) {
707
717
  if (isObject(e)) {
@@ -709,31 +719,30 @@ function toTemporalMonthDay(e, t) {
709
719
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay(o.o, o.Y);
710
720
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
711
721
  return createTemporalMonthDay(calendarMonthDayFromFields(n, prepareCalendarFields(n, e, [
712
- Ot.t,
713
- Ot.u,
714
- Ot.v,
715
- Ot.T
722
+ St.t,
723
+ St.u,
724
+ St.v,
725
+ St.T
716
726
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
717
727
  }
718
728
  validateString(e);
719
- const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.Y || "iso8601");
720
- return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay("iso8601" === n ? createIsoDateRecord(1972, o.u, o.T) : calendarMonthDayFromFields(n, isoDateToFields(n, validateIsoDate(createIsoDateRecord(o.t, o.u, o.T)), m), D), n);
729
+ const o = parseIsoDateTime(e, [nt]), n = canonicalizeCalendar(o.Y || "iso8601");
730
+ return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay("iso8601" === n ? createIsoDateRecord(1972, o.u, o.T) : calendarMonthDayFromFields(n, isoDateToFields(n, validateIsoDate(createIsoDateRecord(o.t, o.u, o.T)), q), _), n);
721
731
  }
722
- function createTemporalMonthDay(e, t, o = Object.create(st.prototype)) {
723
- return ct.set(o, {
732
+ function createTemporalMonthDay(e, t, o = Object.create(dt.prototype)) {
733
+ return lt.set(o, {
724
734
  o: validateIsoDate(e),
725
735
  Y: t
726
736
  }), o;
727
737
  }
728
738
  function temporalMonthDayToString(e, t) {
729
- return `${t === $ || t === Y || "iso8601" !== e.Y ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.Y, t)}`;
739
+ return `${t === De || t === pe || "iso8601" !== e.Y ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.Y, t)}`;
730
740
  }
731
741
  function getInternalSlotForPlainMonthDay(e) {
732
- return ct.get(e);
742
+ return lt.get(e);
733
743
  }
734
744
  function getInternalSlotOrThrowForPlainMonthDay(e) {
735
- const t = getInternalSlotForPlainMonthDay(e);
736
- return t || throwTypeError(Te), t;
745
+ return getInternalSlotOrThrow(lt, e);
737
746
  }
738
747
  function isPlainMonthDay(e) {
739
748
  return !!getInternalSlotForPlainMonthDay(e);
@@ -744,14 +753,14 @@ function toTemporalYearMonth(e, t) {
744
753
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(o.o, o.Y);
745
754
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
746
755
  return createTemporalYearMonth(calendarYearMonthFromFields(n, prepareCalendarFields(n, e, [
747
- Ot.t,
748
- Ot.u,
749
- Ot.v
756
+ St.t,
757
+ St.u,
758
+ St.v
750
759
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
751
760
  }
752
761
  validateString(e);
753
- const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.Y || "iso8601");
754
- return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), d), D), n);
762
+ const o = parseIsoDateTime(e, [rt]), n = canonicalizeCalendar(o.Y || "iso8601");
763
+ return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), H), _), n);
755
764
  }
756
765
  function balanceIsoYearMonth(e, t) {
757
766
  return {
@@ -759,19 +768,19 @@ function balanceIsoYearMonth(e, t) {
759
768
  u: modFloor(t - 1, 12) + 1
760
769
  };
761
770
  }
762
- function createTemporalYearMonth(e, t, o = Object.create(dt.prototype)) {
763
- return lt.set(o, {
771
+ function createTemporalYearMonth(e, t, o = Object.create(ut.prototype)) {
772
+ return mt.set(o, {
764
773
  o: validateIsoYearMonth(e),
765
774
  Y: t
766
775
  }), o;
767
776
  }
768
777
  function temporalYearMonthToString(e, t) {
769
- return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}${t === $ || t === Y || "iso8601" !== e.Y ? `-${toZeroPaddedDecimalString(e.o.T, 2)}` : ""}${formatCalendarAnnotation(e.Y, t)}`;
778
+ return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}${t === De || t === pe || "iso8601" !== e.Y ? `-${toZeroPaddedDecimalString(e.o.T, 2)}` : ""}${formatCalendarAnnotation(e.Y, t)}`;
770
779
  }
771
780
  function differenceTemporalPlainYearMonth(e, t, o, n) {
772
781
  const r = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(o));
773
- calendarEquals(t.Y, r.Y) || throwRangeError(ue);
774
- const a = getDifferenceSettings(e, getOptionsObject(n), c, [V, x], z, k);
782
+ calendarEquals(t.Y, r.Y) || throwRangeError(Z);
783
+ const a = getDifferenceSettings(e, getOptionsObject(n), z, [l, d], s, c);
775
784
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
776
785
  0,
777
786
  0,
@@ -785,35 +794,34 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
785
794
  0
786
795
  ]));
787
796
  const i = calendarDateFromFields(t.Y, createNullPrototypeObject({
788
- ...isoDateToFields(t.Y, t.o, d),
789
- [Ot.T]: 1
790
- }), D), s = calendarDateFromFields(t.Y, createNullPrototypeObject({
791
- ...isoDateToFields(t.Y, r.o, d),
792
- [Ot.T]: 1
793
- }), D);
794
- let l = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, s, a.L), 0, 0), ye);
795
- if (a.H !== z || 1 !== a.V) {
797
+ ...isoDateToFields(t.Y, t.o, H),
798
+ [St.T]: 1
799
+ }), _), m = calendarDateFromFields(t.Y, createNullPrototypeObject({
800
+ ...isoDateToFields(t.Y, r.o, H),
801
+ [St.T]: 1
802
+ }), _);
803
+ let u = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, m, a.L), 0, 0), ve);
804
+ if (a.H !== s || 1 !== a.V) {
796
805
  const e = combineIsoDateAndTimeRecord(i, midnightTimeRecord());
797
- l = roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(s, midnightTimeRecord())), e, void 0, t.Y, a.L, a.V, a.H, a.q);
806
+ u = roundRelativeDuration(u, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(m, midnightTimeRecord())), e, void 0, t.Y, a.L, a.V, a.H, a.q);
798
807
  }
799
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(l, x), e));
808
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(u, d), e));
800
809
  }
801
810
  function addDurationToYearMonth(e, t, o, n) {
802
811
  const r = toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), a = getTemporalOverflowOption(getOptionsObject(n));
803
812
  return (r.A.ee || r.A.X || signTimeDuration(r.p)) && throwRangeError("duration can contain only years and months"), createTemporalYearMonth(calendarYearMonthFromFields(t.Y, isoDateToFields(t.Y, calendarDateAdd(t.Y, calendarDateFromFields(t.Y, createNullPrototypeObject({
804
- ...isoDateToFields(t.Y, t.o, d),
805
- [Ot.T]: 1
806
- }), D), r.A, a), d), a), t.Y);
813
+ ...isoDateToFields(t.Y, t.o, H),
814
+ [St.T]: 1
815
+ }), _), r.A, a), H), a), t.Y);
807
816
  }
808
817
  function validateIsoYearMonth(e) {
809
- return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(le), e;
818
+ return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(P), e;
810
819
  }
811
820
  function getInternalSlotForPlainYearMonth(e) {
812
- return lt.get(e);
821
+ return mt.get(e);
813
822
  }
814
823
  function getInternalSlotOrThrowForPlainYearMonth(e) {
815
- const t = getInternalSlotForPlainYearMonth(e);
816
- return t || throwTypeError(Te), t;
824
+ return getInternalSlotOrThrow(mt, e);
817
825
  }
818
826
  function isPlainYearMonth(e) {
819
827
  return !!getInternalSlotForPlainYearMonth(e);
@@ -829,8 +837,8 @@ function createIsoDateRecord(e, t, o) {
829
837
  T: o
830
838
  };
831
839
  }
832
- function createTemporalDate(e, t, o = Object.create(ut.prototype)) {
833
- return mt.set(o, {
840
+ function createTemporalDate(e, t, o = Object.create(Dt.prototype)) {
841
+ return Tt.set(o, {
834
842
  o: validateIsoDate(e),
835
843
  Y: t
836
844
  }), o;
@@ -854,18 +862,18 @@ function toTemporalDate(e, t) {
854
862
  }
855
863
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
856
864
  return createTemporalDate(calendarDateFromFields(o, prepareCalendarFields(o, e, [
857
- Ot.t,
858
- Ot.u,
859
- Ot.v,
860
- Ot.T
865
+ St.t,
866
+ St.u,
867
+ St.v,
868
+ St.T
861
869
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
862
870
  }
863
871
  validateString(e);
864
- const o = parseIsoDateTime(e, [Ke]), n = canonicalizeCalendar(o.Y || "iso8601");
872
+ const o = parseIsoDateTime(e, [et]), n = canonicalizeCalendar(o.Y || "iso8601");
865
873
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDate(createIsoDateRecord(o.t, o.u, o.T), n);
866
874
  }
867
875
  function regulateIsoDate(e, t, o, n) {
868
- return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(se), createIsoDateRecord(e, t, o));
876
+ return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(b), createIsoDateRecord(e, t, o));
869
877
  }
870
878
  function isValidIsoDate(e, t, o) {
871
879
  return isWithin(t, 1, 12) && isWithin(o, 1, isoDaysInMonth(e, t));
@@ -884,8 +892,8 @@ function compareIsoDate(e, t) {
884
892
  }
885
893
  function differenceTemporalPlainDate(e, t, o, n) {
886
894
  const r = getInternalSlotOrThrowForPlainDate(toTemporalDate(o));
887
- calendarEquals(t.Y, r.Y) || throwRangeError(ue);
888
- const a = getDifferenceSettings(e, getOptionsObject(n), c, [], x, x);
895
+ calendarEquals(t.Y, r.Y) || throwRangeError(Z);
896
+ const a = getDifferenceSettings(e, getOptionsObject(n), z, [], d, d);
889
897
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
890
898
  0,
891
899
  0,
@@ -898,12 +906,12 @@ function differenceTemporalPlainDate(e, t, o, n) {
898
906
  0,
899
907
  0
900
908
  ]));
901
- let i = combineDateAndTimeDuration(calendarDateUntil(t.Y, t.o, r.o, a.L), ye);
902
- if (a.H !== x || 1 !== a.V) {
909
+ let i = combineDateAndTimeDuration(calendarDateUntil(t.Y, t.o, r.o, a.L), ve);
910
+ if (a.H !== d || 1 !== a.V) {
903
911
  const e = combineIsoDateAndTimeRecord(t.o, midnightTimeRecord());
904
912
  i = roundRelativeDuration(i, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())), e, void 0, t.Y, a.L, a.V, a.H, a.q);
905
913
  }
906
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, x), e));
914
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, d), e));
907
915
  }
908
916
  function addDurationToDate(e, t, o, n) {
909
917
  return createTemporalDate(calendarDateAdd(t.Y, t.o, ((e) => {
@@ -912,11 +920,10 @@ function addDurationToDate(e, t, o, n) {
912
920
  })(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.Y);
913
921
  }
914
922
  function getInternalSlotForPlainDate(e) {
915
- return mt.get(e);
923
+ return Tt.get(e);
916
924
  }
917
925
  function getInternalSlotOrThrowForPlainDate(e) {
918
- const t = getInternalSlotForPlainDate(e);
919
- return t || throwTypeError(Te), t;
926
+ return getInternalSlotOrThrow(Tt, e);
920
927
  }
921
928
  function isPlainDate(e) {
922
929
  return !!getInternalSlotForPlainDate(e);
@@ -929,7 +936,7 @@ function calendarDateForPlainDate(e) {
929
936
  return calendarIsoToDate(t.Y, t.o);
930
937
  }
931
938
  function formatToParts(e, t) {
932
- return (Tt[e] ||= new bt("en", {
939
+ return (ht[e] ||= new Rt("en", {
933
940
  year: "numeric",
934
941
  month: "numeric",
935
942
  day: "numeric",
@@ -950,7 +957,7 @@ function extractYearMonthDay(e, t) {
950
957
  };
951
958
  }
952
959
  function yearMonthDay(e, t) {
953
- return ht[e].J(t, () => ((e, t) => {
960
+ return gt[e].J(t, () => ((e, t) => {
954
961
  const o = formatToParts(e, t), n = [
955
962
  "relatedYear",
956
963
  "month",
@@ -964,7 +971,7 @@ function yearMonthDay(e, t) {
964
971
  })(e, t));
965
972
  }
966
973
  function getNewYear(e, t) {
967
- return Dt[e].J(t, () => {
974
+ return pt[e].J(t, () => {
968
975
  let o = isoDateToEpochDays(t, 0, 1985 === t ? 53 : Math.floor(modFloor(-10.8822 * t + 16, 29.53)) + 23), n = yearMonthDay(e, o);
969
976
  for (let r = 0; "M01" !== n.v; r++) {
970
977
  if (r > 20) throw new Error("unexpected calendar error");
@@ -1108,7 +1115,7 @@ function epochDaysToDate$2(e, t) {
1108
1115
  };
1109
1116
  }
1110
1117
  function getYearMonthDay(e) {
1111
- return pt.J(e, () => extractYearMonthDay("islamic-umalqura", e));
1118
+ return ft.J(e, () => extractYearMonthDay("islamic-umalqura", e));
1112
1119
  }
1113
1120
  function getFirstDayOfMonth(e, t) {
1114
1121
  const o = balanceIsoYearMonth(e, t), n = calendarIntegersToEpochDays$2("islamic-civil", o.t, o.u, 1);
@@ -1121,7 +1128,7 @@ function constrainDay$2(e, t, o) {
1121
1128
  return o < 30 ? o : clamp(o, 1, ((e, t) => getFirstDayOfMonth(e, t + 1) - getFirstDayOfMonth(e, t))(e, t));
1122
1129
  }
1123
1130
  function startOfYear(e) {
1124
- return gt.J(e, () => {
1131
+ return It.J(e, () => {
1125
1132
  const t = isoDateToEpochDays(e + 621, 4, 1), o = extractYearMonthDay("persian", t);
1126
1133
  return t - dayOfYearFromMonthDay(o.u, o.T) + 1;
1127
1134
  });
@@ -1154,7 +1161,7 @@ function daysInMonth(e, t) {
1154
1161
  return t <= 6 ? 31 : 12 !== t || isLeapYear(e) ? 30 : 29;
1155
1162
  }
1156
1163
  function canonicalizeCalendar(e) {
1157
- return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : It[e] ? e : throwRangeError(((e) => `unsupported calendar: ${e}`)(e));
1164
+ return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : Ft[e] ? e : throwRangeError(((e) => `unsupported calendar: ${e}`)(e));
1158
1165
  }
1159
1166
  function calendarDateAdd(e, t, o, n) {
1160
1167
  if (isIsoLikeCalendar(e) || !o.te && !o.oe) return ((e, t, o) => {
@@ -1169,7 +1176,7 @@ function compareSurpasses(e, t, o, n, r) {
1169
1176
  }
1170
1177
  function nonIsoDateSurpasses(e, t, o, n, r, a) {
1171
1178
  if (compareSurpasses(t, o.t + r, o.v, o.T, n)) return { De: !0 };
1172
- const i = balanceNonIsoYearMonth(e, o.t + r, monthCodeToOrdinal(e, o.t + r, constrainMonthCode(e, o.t + r, parseMonthCode(o.v), D)) + a);
1179
+ const i = balanceNonIsoYearMonth(e, o.t + r, monthCodeToOrdinal(e, o.t + r, constrainMonthCode(e, o.t + r, parseMonthCode(o.v), _)) + a);
1173
1180
  return compareSurpasses(t, i.t, i.u, o.T, n) ? { De: !0 } : {
1174
1181
  De: !1,
1175
1182
  ...i
@@ -1177,20 +1184,20 @@ function nonIsoDateSurpasses(e, t, o, n, r, a) {
1177
1184
  }
1178
1185
  function calendarDateUntil(e, t, o, n) {
1179
1186
  const r = compareIsoDate(o, t);
1180
- if (isIsoLikeCalendar(e) || n === V || n === x || !r) return ((e, t, o) => {
1187
+ if (isIsoLikeCalendar(e) || n === l || n === d || !r) return ((e, t, o) => {
1181
1188
  const n = compareIsoDate(t, e);
1182
1189
  if (!n) return zeroDateDuration();
1183
- if (o === V || o === x) {
1190
+ if (o === l || o === d) {
1184
1191
  const n = isoDateToEpochDays(t.t, t.u - 1, t.T) - isoDateToEpochDays(e.t, e.u - 1, e.T);
1185
- return o === V ? createDateDurationRecord(0, 0, divTrunc(n, 7) + 0, n % 7 + 0) : createDateDurationRecord(0, 0, 0, n);
1192
+ return o === l ? createDateDurationRecord(0, 0, divTrunc(n, 7) + 0, n % 7 + 0) : createDateDurationRecord(0, 0, 0, n);
1186
1193
  }
1187
- const r = 12 * t.t + t.u - 12 * e.t - e.u - (n * (e.T - t.T) > 0 ? n : 0), a = balanceIsoYearMonth(e.t, e.u + r), i = isoDateRecordToEpochDays(t) - isoDateRecordToEpochDays(regulateIsoDate(a.t, a.u, e.T, D));
1188
- return o === k ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
1194
+ const r = 12 * t.t + t.u - 12 * e.t - e.u - (n * (e.T - t.T) > 0 ? n : 0), a = balanceIsoYearMonth(e.t, e.u + r), i = isoDateRecordToEpochDays(t) - isoDateRecordToEpochDays(regulateIsoDate(a.t, a.u, e.T, _));
1195
+ return o === c ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
1189
1196
  })(t, o, n);
1190
1197
  const a = nonIsoCalendarIsoToDate(e, t), i = nonIsoCalendarIsoToDate(e, o);
1191
- let c, s = 0;
1192
- if (n === k) for (s = i.t - a.t; (c = nonIsoDateSurpasses(e, r, a, i, s, 0)).De; s -= r);
1193
- const l = ("hebrew" === e ? (d = (c || a).t, m = (c || a).u, monthNumber(i.t, i.u) - monthNumber(d, m)) : isChineseDangi(e) ? (function(e, t, o, n, r) {
1198
+ let s, m = 0;
1199
+ if (n === c) for (m = i.t - a.t; (s = nonIsoDateSurpasses(e, r, a, i, m, 0)).De; m -= r);
1200
+ const u = ("hebrew" === e ? (T = (s || a).t, D = (s || a).u, monthNumber(i.t, i.u) - monthNumber(T, D)) : isChineseDangi(e) ? (function(e, t, o, n, r) {
1194
1201
  if (t === n) return r - o;
1195
1202
  const a = calendarIntegersToEpochDays$6(e, t, o, 1), i = calendarIntegersToEpochDays$6(e, n, r, 1), c = sign(i - a);
1196
1203
  if (Math.abs(i - a) <= 15e6) return Math.round((i - a) / 29.5306);
@@ -1200,14 +1207,14 @@ function calendarDateUntil(e, t, o, n) {
1200
1207
  t -= yearMonthDay(e, t).T - 1, s += Math.round((t - l) / 29.5306), l = t;
1201
1208
  }
1202
1209
  return s;
1203
- })(e, (c || a).t, (c || a).u, i.t, i.u) : (i.t - (c || a).t) * a.ue + i.u - (c || a).u) - (r * (a.T - i.T) > 0 ? r : 0);
1204
- var d, m;
1205
- const u = nonIsoDateSurpasses(e, r, a, i, s, l);
1206
- return createDateDurationRecord(s, l, 0, isoDateRecordToEpochDays(o) - isoDateRecordToEpochDays(calendarIntegersToIso(e, u.t, u.u, constrainDay(e, u.t, u.u, a.T, D))));
1210
+ })(e, (s || a).t, (s || a).u, i.t, i.u) : (i.t - (s || a).t) * a.ue + i.u - (s || a).u) - (r * (a.T - i.T) > 0 ? r : 0);
1211
+ var T, D;
1212
+ const h = nonIsoDateSurpasses(e, r, a, i, m, u);
1213
+ return createDateDurationRecord(m, u, 0, isoDateRecordToEpochDays(o) - isoDateRecordToEpochDays(calendarIntegersToIso(e, h.t, h.u, constrainDay(e, h.t, h.u, a.T, _))));
1207
1214
  }
1208
1215
  function calendarDateToIso(e, t, o) {
1209
- const n = t[Ot.t], r = t[Ot.u], a = mapUnlessUndefined(t[Ot.v], parseMonthCode), i = t[Ot.T];
1210
- if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[Ot.t], e[Ot.u], e[Ot.T], t))({
1216
+ const n = t[St.t], r = t[St.u], a = mapUnlessUndefined(t[St.v], parseMonthCode), i = t[St.T];
1217
+ if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[St.t], e[St.u], e[St.T], t))({
1211
1218
  ...t,
1212
1219
  year: n + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0)
1213
1220
  }, o);
@@ -1224,7 +1231,7 @@ function nonIsoCalendarIsoToDate(e, t) {
1224
1231
  }
1225
1232
  };
1226
1233
  if ("japanese" === e) {
1227
- const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = It[e].get(r);
1234
+ const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = Ft[e].get(r);
1228
1235
  return {
1229
1236
  ne: r,
1230
1237
  re: "bce" === r ? 1 - t.t : t.t - a + 1,
@@ -1396,17 +1403,17 @@ function nonIsoCalendarIsoToDate(e, t) {
1396
1403
  })(o) : epochDaysToDate$2(e, o);
1397
1404
  }
1398
1405
  function calendarSupportsEra(e) {
1399
- return !!It[e].size;
1406
+ return !!Ft[e].size;
1400
1407
  }
1401
1408
  function canonicalizeEraInCalendar(e, t) {
1402
1409
  const o = "ad" === t ? "ce" : "bc" === t ? "bce" : t;
1403
- return It[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1410
+ return Ft[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1404
1411
  }
1405
1412
  function constrainMonthCode(e, t, o, n) {
1406
- if ("hebrew" === e) return o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(se) : [6, !1] : o;
1413
+ if ("hebrew" === e) return o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(b) : [6, !1] : o;
1407
1414
  if (isChineseDangi(e)) {
1408
1415
  const r = ((e, t, o) => o[1] && ordinalMonthToMonthCode(e, t, o[0] + 1) !== createMonthCode(...o) ? [o[0], !1] : o)(e, t, o);
1409
- return o !== r && "reject" === n ? throwRangeError(se) : r;
1416
+ return o !== r && "reject" === n ? throwRangeError(b) : r;
1410
1417
  }
1411
1418
  return o;
1412
1419
  }
@@ -1430,11 +1437,11 @@ function isChineseDangi(e) {
1430
1437
  }
1431
1438
  function constrainDay(e, t, o, n, r) {
1432
1439
  const a = "persian" === e ? ((e, t, o) => o < 30 ? o : clamp(o, 1, daysInMonth(e, t)))(t, o, n) : "islamic-umalqura" === e ? constrainDay$2(t, o, n) : isChineseDangi(e) ? ((e, t, o, n) => n <= 29 ? n : clamp(n, 1, daysInMonth$6(e, t, o)))(e, t, o, n) : clamp(n, 1, isCopticOrEthiopic(e) ? daysInMonth$5(t, o) : "indian" === e ? daysInMonth$3(t, o) : "hebrew" === e ? daysInMonth$4(t, o) : daysInMonth$2(t, o));
1433
- return n !== a && "reject" === r ? throwRangeError(se) : a;
1440
+ return n !== a && "reject" === r ? throwRangeError(b) : a;
1434
1441
  }
1435
1442
  function constrainMonth(e, t, o, n) {
1436
1443
  const r = isChineseDangi(e) ? ((e, t, o) => isWithin(o, 1, 12) ? o : clamp(o, 1, monthsInYear(e, t)))(e, t, o) : clamp(o, 1, "hebrew" === e && isLeapYear$2(t) || isCopticOrEthiopic(e) ? 13 : 12);
1437
- return r !== o && "reject" === n && throwRangeError(se), r;
1444
+ return r !== o && "reject" === n && throwRangeError(b), r;
1438
1445
  }
1439
1446
  function balanceNonIsoYearMonth(e, t, o) {
1440
1447
  if ("hebrew" === e) return ((e, t) => {
@@ -1471,7 +1478,7 @@ function parseMonthCode(e) {
1471
1478
  const t = toPrimitive(e);
1472
1479
  validateString(t);
1473
1480
  const o = t.match(/M(\d\d)(L?)/);
1474
- return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Oe(o[1]), !!o[2]];
1481
+ return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Se(o[1]), !!o[2]];
1475
1482
  }
1476
1483
  function createMonthCode(e, t = !1) {
1477
1484
  return `M${toZeroPaddedDecimalString(e, 2)}${t ? "L" : ""}`;
@@ -1482,16 +1489,16 @@ function prepareCalendarFields(e, t, o, n) {
1482
1489
  let a = !1;
1483
1490
  for (const e of o) {
1484
1491
  const o = t[e];
1485
- void 0 !== o ? (a = !0, r[e] = St[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = St[e][1]);
1492
+ void 0 !== o ? (a = !0, r[e] = wt[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = wt[e][1]);
1486
1493
  }
1487
- return n || a || throwTypeError(ge), r;
1494
+ return n || a || throwTypeError(U), r;
1488
1495
  }
1489
1496
  function calendarMergeFields(e, t, o) {
1490
1497
  const n = ((e, t) => {
1491
1498
  const o = [];
1492
- return void 0 !== t[Ot.u] && o.push(Ot.v), void 0 !== t[Ot.v] && o.push(Ot.u), !calendarSupportsEra(e) || void 0 === t[Ot.ne] && void 0 === t[Ot.re] && void 0 === t[Ot.t] || o.push(Ot.ne, Ot.re, Ot.t), !((e) => "japanese" === e)(e) || void 0 === t[Ot.T] && void 0 === t[Ot.u] && void 0 === t[Ot.v] || o.push(Ot.ne, Ot.re), o;
1499
+ return void 0 !== t[St.u] && o.push(St.v), void 0 !== t[St.v] && o.push(St.u), !calendarSupportsEra(e) || void 0 === t[St.ne] && void 0 === t[St.re] && void 0 === t[St.t] || o.push(St.ne, St.re, St.t), !((e) => "japanese" === e)(e) || void 0 === t[St.T] && void 0 === t[St.u] && void 0 === t[St.v] || o.push(St.ne, St.re), o;
1493
1500
  })(e, o), r = createEmptyCalendarFieldsRecord();
1494
- for (const e of Ft) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
1501
+ for (const e of yt) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
1495
1502
  return r;
1496
1503
  }
1497
1504
  function toTemporalCalendarIdentifier(e) {
@@ -1499,15 +1506,15 @@ function toTemporalCalendarIdentifier(e) {
1499
1506
  return t ? t.Y : (validateString(e), canonicalizeCalendar(((e) => {
1500
1507
  try {
1501
1508
  return parseIsoDateTime(e, [
1502
- Ge,
1503
- Ke,
1504
1509
  Qe,
1505
1510
  et,
1506
1511
  tt,
1507
- ot
1512
+ ot,
1513
+ nt,
1514
+ rt
1508
1515
  ]).Y || "iso8601";
1509
1516
  } catch {
1510
- return at.test(e) || throwRangeError(parseError(e)), e;
1517
+ return ct.test(e) || throwRangeError(parseError(e)), e;
1511
1518
  }
1512
1519
  })(e)));
1513
1520
  }
@@ -1519,26 +1526,26 @@ function calendarDateFromFields(e, t, o) {
1519
1526
  return calendarResolveFields(e, t), validateIsoDate(calendarDateToIso(e, t, o));
1520
1527
  }
1521
1528
  function calendarYearMonthFromFields(e, t, o) {
1522
- return t.day = 1, calendarResolveFields(e, t, d), validateIsoYearMonth(calendarDateToIso(e, t, o));
1529
+ return t.day = 1, calendarResolveFields(e, t, H), validateIsoYearMonth(calendarDateToIso(e, t, o));
1523
1530
  }
1524
1531
  function calendarMonthDayFromFields(e, t, o) {
1525
- return calendarResolveFields(e, t, m), (function(e, t, o) {
1532
+ return calendarResolveFields(e, t, q), (function(e, t, o) {
1526
1533
  if (isIsoLikeCalendar(e)) return ((e, t, o) => {
1527
- const n = regulateIsoDate(e[Ot.t] ?? 1972, e[Ot.u], e[Ot.T], t);
1534
+ const n = regulateIsoDate(e[St.t] ?? 1972, e[St.u], e[St.T], t);
1528
1535
  return o || validateIsoDate(n), createIsoDateRecord(1972, n.u, n.T);
1529
1536
  })({
1530
1537
  ...t,
1531
1538
  year: mapUnlessUndefined(t.year, (t) => t + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0))
1532
1539
  }, o, "iso8601" === e);
1533
- const n = t[Ot.t];
1534
- let r = t[Ot.u], a = mapUnlessUndefined(t[Ot.v], parseMonthCode), i = t[Ot.T];
1540
+ const n = t[St.t];
1541
+ let r = t[St.u], a = mapUnlessUndefined(t[St.v], parseMonthCode), i = t[St.T];
1535
1542
  return void 0 !== n ? (a || (r = constrainMonth(e, n, r, o)), a = a ? constrainMonthCode(e, n, a, o) : parseMonthCode(nonIsoCalendarIsoToDate(e, calendarIntegersToIso(e, n, r, 1)).v), i = constrainDay(e, n, r, i, o), validateIsoDate(calendarIntegersToIso(e, n, r, i))) : i = ((e, t, o, n) => {
1536
1543
  if (isChineseDangi(e) || "islamic-umalqura" === e || "persian" === e) {
1537
1544
  const r = clamp(o, 1, "persian" === e && t[0] <= 6 ? 31 : 30);
1538
- return o !== r && "reject" === n ? throwRangeError(se) : r;
1545
+ return o !== r && "reject" === n ? throwRangeError(b) : r;
1539
1546
  }
1540
1547
  return "hebrew" === e ? t[1] ? constrainDay(e, 3, 6, o, n) : constrainDay(e, 1, t[0], o, n) : constrainDay(e, isCopticOrEthiopic(e) ? 3 : 2, t[0], o, n);
1541
- })(e, a, i, o), isChineseDangi(e) && a[1] && (1 === a[0] || 12 === a[0] || 30 === i && (2 === a[0] || isWithin(a[0], 8, 11))) && ("reject" === o && throwRangeError(se), a[1] = !1), isCopticOrEthiopic(e) ? epochDaysToIsoDate(((e, t) => 13 === e && 6 === t ? 618 : (30 * (e - 1) + t + 252) % 365 + 731)(a[0], i)) : "indian" === e ? epochDaysToIsoDate(((e, t) => calendarIntegersToEpochDays$3(30 * e + t <= 310 ? 1894 : 1893, e, t))(a[0], i)) : "persian" === e ? epochDaysToIsoDate(((e, t) => {
1548
+ })(e, a, i, o), isChineseDangi(e) && a[1] && (1 === a[0] || 12 === a[0] || 30 === i && (2 === a[0] || isWithin(a[0], 8, 11))) && ("reject" === o && throwRangeError(b), a[1] = !1), isCopticOrEthiopic(e) ? epochDaysToIsoDate(((e, t) => 13 === e && 6 === t ? 618 : (30 * (e - 1) + t + 252) % 365 + 731)(a[0], i)) : "indian" === e ? epochDaysToIsoDate(((e, t) => calendarIntegersToEpochDays$3(30 * e + t <= 310 ? 1894 : 1893, e, t))(a[0], i)) : "persian" === e ? epochDaysToIsoDate(((e, t) => {
1542
1549
  if (12 === e && 30 === t) {
1543
1550
  for (let o = 1350;; o--) if (isLeapYear(o)) return calendarIntegersToEpochDays(o, e, t);
1544
1551
  }
@@ -1576,7 +1583,7 @@ function calendarMonthDayFromFields(e, t, o) {
1576
1583
  })(e, t, o);
1577
1584
  }
1578
1585
  function formatCalendarAnnotation(e, t) {
1579
- return t === C || t === Z && "iso8601" === e ? "" : `[${t === Y ? "!" : ""}u-ca=${e}]`;
1586
+ return t === he || t === Te && "iso8601" === e ? "" : `[${t === pe ? "!" : ""}u-ca=${e}]`;
1580
1587
  }
1581
1588
  function calendarEquals(e, t) {
1582
1589
  return e === t;
@@ -1630,30 +1637,30 @@ function calendarExtraFields(e, t) {
1630
1637
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1631
1638
  }
1632
1639
  function isoResolveFields(e, t) {
1633
- t !== m && void 0 === e[Ot.t] && throwTypeError(missingField(Ot.t)), t !== d && void 0 === e[Ot.T] && throwTypeError(missingField(Ot.T)), void 0 === e[Ot.v] && void 0 === e[Ot.u] && throwTypeError(missingField("month, monthCode"));
1634
- const o = mapUnlessUndefined(e[Ot.v], parseMonthCode);
1635
- o && ((o[0] > 12 || o[1] || void 0 !== e[Ot.u] && o[0] !== e[Ot.u]) && throwRangeError(he), e[Ot.u] = o[0]);
1636
- }
1637
- function calendarResolveFields(e, t, o = c) {
1638
- "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = c) {
1639
- const n = t[Ot.ne], r = t[Ot.re];
1640
- let a = t[Ot.t];
1641
- const i = t[Ot.v], s = t[Ot.u], l = t[Ot.T];
1642
- if (o === m && void 0 !== i && void 0 === s || void 0 !== a || calendarSupportsEraForNonIsoCalendars(e) && void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), calendarSupportsEraForNonIsoCalendars(e) && void 0 === n != (void 0 === r) && throwTypeError(), o !== d && void 0 === l && throwTypeError(missingField("day")), s === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
1640
+ t !== q && void 0 === e[St.t] && throwTypeError(missingField(St.t)), t !== H && void 0 === e[St.T] && throwTypeError(missingField(St.T)), void 0 === e[St.v] && void 0 === e[St.u] && throwTypeError(missingField("month, monthCode"));
1641
+ const o = mapUnlessUndefined(e[St.v], parseMonthCode);
1642
+ o && ((o[0] > 12 || o[1] || void 0 !== e[St.u] && o[0] !== e[St.u]) && throwRangeError(C), e[St.u] = o[0]);
1643
+ }
1644
+ function calendarResolveFields(e, t, o = z) {
1645
+ "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = z) {
1646
+ const n = t[St.ne], r = t[St.re];
1647
+ let a = t[St.t];
1648
+ const i = t[St.v], c = t[St.u], s = t[St.T];
1649
+ if (o === q && void 0 !== i && void 0 === c || void 0 !== a || calendarSupportsEraForNonIsoCalendars(e) && void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), calendarSupportsEraForNonIsoCalendars(e) && void 0 === n != (void 0 === r) && throwTypeError(), o !== H && void 0 === s && throwTypeError(missingField("day")), c === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
1643
1650
  const o = ((e, t, o) => {
1644
- const n = canonicalizeEraInCalendar(e, t), r = It[e].get(n);
1651
+ const n = canonicalizeEraInCalendar(e, t), r = Ft[e].get(n);
1645
1652
  return !1 === r ? 1 - o : r + o - 1;
1646
1653
  })(e, canonicalizeEraInCalendar(e, n), r);
1647
- void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Ot.t] = o;
1654
+ void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[St.t] = o;
1648
1655
  }
1649
- if (t[Ot.ne] = t[Ot.re] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1656
+ if (t[St.ne] = t[St.re] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1650
1657
  else if (i) {
1651
1658
  const o = parseMonthCode(i);
1652
1659
  ((e, t) => isWithin(t[0], 1, 12) && !t[1] || isChineseDangi(e) && isWithin(t[0], 1, 12) || isCopticOrEthiopic(e) && 13 === t[0] && !t[1] || "hebrew" === e && 5 === t[0] && t[1])(e, o) || throwRangeError(invalidMonthCode(i));
1653
- const n = t[Ot.t];
1660
+ const n = t[St.t];
1654
1661
  if (void 0 !== n) {
1655
- const r = monthCodeToOrdinal(e, n, constrainMonthCode(e, n, o, D));
1656
- void 0 !== s && s !== r && throwRangeError(he), t[Ot.u] = r;
1662
+ const r = monthCodeToOrdinal(e, n, constrainMonthCode(e, n, o, _));
1663
+ void 0 !== c && c !== r && throwRangeError(C), t[St.u] = r;
1657
1664
  }
1658
1665
  }
1659
1666
  })(e, t, o);
@@ -1665,7 +1672,7 @@ function zeroDateDuration() {
1665
1672
  return createDateDurationRecord(0, 0, 0, 0);
1666
1673
  }
1667
1674
  function toInternalDurationRecord(e) {
1668
- return combineDateAndTimeDuration(createDateDurationRecord(e[_], e[X], e[G], e[K]), timeDurationFromComponents(e[Q], e[ee], e[te], e[oe], e[ne], e[re]));
1675
+ return combineDateAndTimeDuration(createDateDurationRecord(e[h], e[p], e[g], e[f]), timeDurationFromComponents(e[I], e[O], e[F], e[S], e[y], e[w]));
1669
1676
  }
1670
1677
  function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1671
1678
  return combineDateAndTimeDuration(createDateDurationRecord(e, t, o, 0), add24HourDaysToTimeDuration(timeDurationFromComponents(...r), n));
@@ -1698,9 +1705,9 @@ function combineDateAndTimeDuration(e, t) {
1698
1705
  };
1699
1706
  }
1700
1707
  function toTemporalDuration(e) {
1701
- return t = e, yt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1702
- const t = (e = asciiLowerCase(e)).match(/^([+-]?)p(?:(\d+)y)?(?:(\d+)m)?(?:(\d+)w)?(?:(\d+)d)?(?:t(?:(\d+)(?:[.,](\d{1,9}))?h)?(?:(\d+)(?:[.,](\d{1,9}))?m)?(?:(\d+)(?:[.,](\d{1,9}))?s)?)?$/);
1703
- t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(parseError(e));
1708
+ return t = e, vt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1709
+ const t = e.match(/^([+-]?)p(?:(\d+)y)?(?:(\d+)m)?(?:(\d+)w)?(?:(\d+)d)?(?:t(?:(\d+)(?:[.,](\d{1,9}))?h)?(?:(\d+)(?:[.,](\d{1,9}))?m)?(?:(\d+)(?:[.,](\d{1,9}))?s)?)?$/i);
1710
+ t && !/[pt]$|[.,](\d{1,9})[hms]./i.test(e) || throwRangeError(parseError(e));
1704
1711
  const o = balanceTime(0, 0, 0, 0, 0, 3600 * toIntegerWithTruncation((t[7] || "").padEnd(9, "0")) + 60 * toIntegerWithTruncation((t[9] || "").padEnd(9, "0")) + toIntegerWithTruncation((t[11] || "").padEnd(9, "0")));
1705
1712
  return applySignToDurationSlot(createTemporalDurationSlot([
1706
1713
  toIntegerWithTruncation(t[2] || ""),
@@ -1724,14 +1731,14 @@ function dateDurationSign(e) {
1724
1731
  return sign(e.te || e.oe || e.ee || e.X);
1725
1732
  }
1726
1733
  function internalDurationSign(e) {
1727
- return dateDurationSign(e.A) || wt(e.p);
1734
+ return dateDurationSign(e.A) || Et(e.p);
1728
1735
  }
1729
1736
  function validateDuration(...e) {
1730
1737
  e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), (e.some((e) => Math.abs(e) > 1e25) || [
1731
- e[_],
1732
- e[X],
1733
- e[G]
1734
- ].some((e) => Math.abs(e) >= 2 ** 32)) && throwRangeError(de), validateTimeDurationRange(timeDurationFromComponents(24 * e[K] + e[Q], e[ee], e[te], e[oe], e[ne], e[re]));
1738
+ e[h],
1739
+ e[p],
1740
+ e[g]
1741
+ ].some((e) => Math.abs(e) >= 2 ** 32)) && throwRangeError(R), validateTimeDurationRange(timeDurationFromComponents(24 * e[f] + e[I], e[O], e[F], e[S], e[y], e[w]));
1735
1742
  }
1736
1743
  function defaultTemporalLargestUnit(e) {
1737
1744
  return (e.findIndex((e) => e) + 10) % 10;
@@ -1749,8 +1756,8 @@ function toTemporalPartialDurationRecord(e) {
1749
1756
  6,
1750
1757
  2,
1751
1758
  0
1752
- ].map((t) => mapUnlessUndefined(e[ie[t]], toIntegerIfIntegral));
1753
- return t.some((e) => void 0 !== e) || throwTypeError(ge), [
1759
+ ].map((t) => mapUnlessUndefined(e[E[t]], toIntegerIfIntegral));
1760
+ return t.some((e) => void 0 !== e) || throwTypeError(U), [
1754
1761
  9,
1755
1762
  5,
1756
1763
  8,
@@ -1766,8 +1773,8 @@ function toTemporalPartialDurationRecord(e) {
1766
1773
  function createTemporalDurationSlot(e) {
1767
1774
  return validateDuration(...e), e;
1768
1775
  }
1769
- function createTemporalDuration(e, t = Object.create(vt.prototype)) {
1770
- return yt.set(t, e), t;
1776
+ function createTemporalDuration(e, t = Object.create(Mt.prototype)) {
1777
+ return vt.set(t, e), t;
1771
1778
  }
1772
1779
  function timeDurationFromComponents(e, t, o, n, r, a) {
1773
1780
  return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromUnit(3600 * e + 60 * t + o, 1e9), createTimeDurationFromUnit(n, 1e6)), createTimeDurationFromUnit(r, 1e3)), createTimeDurationFromUnit(a, 1));
@@ -1783,7 +1790,7 @@ function roundTimeDurationToIncrement(e, t, o) {
1783
1790
  }
1784
1791
  function dateDurationDays(e, t) {
1785
1792
  const o = adjustDateDurationRecord(e, 0);
1786
- return dateDurationSign(e) ? e.X + isoDateRecordToEpochDays(calendarDateAdd(t.Y, t.o, o, D)) - isoDateRecordToEpochDays(t.o) : e.X;
1793
+ return dateDurationSign(e) ? e.X + isoDateRecordToEpochDays(calendarDateAdd(t.Y, t.o, o, _)) - isoDateRecordToEpochDays(t.o) : e.X;
1787
1794
  }
1788
1795
  function roundTimeDuration(e, t, o, n) {
1789
1796
  return roundTimeDurationToIncrement(e, nanosecondsForTimeUnit(o) * t, n);
@@ -1791,26 +1798,26 @@ function roundTimeDuration(e, t, o, n) {
1791
1798
  function totalTimeDuration(e, t) {
1792
1799
  return divideTimeDurationToFloatingPoint(e, nanosecondsForTimeUnit(t));
1793
1800
  }
1794
- function computeNudgeWindow(e, t, o, n, r, a, i, c, s) {
1795
- let l, d, m, u, T;
1796
- if (c === k) l = roundNumberToIncrement(t.A.te, i, E) + (s ? i * e : 0), d = l + i * e, m = createDateDurationRecord(l, 0, 0, 0), u = createDateDurationRecord(d, 0, 0, 0);
1797
- else if (c === z) l = roundNumberToIncrement(t.A.oe, i, E) + (s ? i * e : 0), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, 0, l), u = adjustDateDurationRecord(t.A, 0, 0, d);
1798
- else if (c === V) {
1799
- const o = calendarDateAdd(a, n.o, adjustDateDurationRecord(t.A, 0, 0), D);
1800
- l = roundNumberToIncrement(t.A.ee + calendarDateUntil(a, o, addDaysToIsoDate(o, t.A.X), V).ee, i, E), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, l), u = adjustDateDurationRecord(t.A, 0, d);
1801
- } else l = roundNumberToIncrement(t.A.X, i, E), d = l + i * e, m = adjustDateDurationRecord(t.A, l), u = adjustDateDurationRecord(t.A, d);
1802
- if (dateDurationSign(m)) {
1803
- const e = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, m, D), n.p);
1804
- T = r ? getEpochNanosecondsFor(r, e, p) : getUtcEpochNanoseconds(e);
1805
- } else T = o;
1806
- const h = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, u, D), n.p);
1801
+ function computeNudgeWindow(e, t, o, n, r, a, i, d, m) {
1802
+ let u, T, D, h, p;
1803
+ if (d === c) u = roundNumberToIncrement(t.A.te, i, ce) + (m ? i * e : 0), T = u + i * e, D = createDateDurationRecord(u, 0, 0, 0), h = createDateDurationRecord(T, 0, 0, 0);
1804
+ else if (d === s) u = roundNumberToIncrement(t.A.oe, i, ce) + (m ? i * e : 0), T = u + i * e, D = adjustDateDurationRecord(t.A, 0, 0, u), h = adjustDateDurationRecord(t.A, 0, 0, T);
1805
+ else if (d === l) {
1806
+ const o = calendarDateAdd(a, n.o, adjustDateDurationRecord(t.A, 0, 0), _);
1807
+ u = roundNumberToIncrement(t.A.ee + calendarDateUntil(a, o, addDaysToIsoDate(o, t.A.X), l).ee, i, ce), T = u + i * e, D = adjustDateDurationRecord(t.A, 0, u), h = adjustDateDurationRecord(t.A, 0, T);
1808
+ } else u = roundNumberToIncrement(t.A.X, i, ce), T = u + i * e, D = adjustDateDurationRecord(t.A, u), h = adjustDateDurationRecord(t.A, T);
1809
+ if (dateDurationSign(D)) {
1810
+ const e = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, D, _), n.p);
1811
+ p = r ? getEpochNanosecondsFor(r, e, G) : getUtcEpochNanoseconds(e);
1812
+ } else p = o;
1813
+ const g = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, h, _), n.p);
1807
1814
  return {
1808
- he: l,
1809
- pe: d,
1810
- ge: T,
1811
- fe: r ? getEpochNanosecondsFor(r, h, p) : getUtcEpochNanoseconds(h),
1812
- Ie: m,
1813
- Oe: u
1815
+ he: u,
1816
+ pe: T,
1817
+ ge: p,
1818
+ fe: r ? getEpochNanosecondsFor(r, g, G) : getUtcEpochNanoseconds(g),
1819
+ Ie: D,
1820
+ Oe: h
1814
1821
  };
1815
1822
  }
1816
1823
  function nudgeToCalendarUnit(e, t, o, n, r, a, i, c, s, l) {
@@ -1818,74 +1825,73 @@ function nudgeToCalendarUnit(e, t, o, n, r, a, i, c, s, l) {
1818
1825
  compareEpochNanoseconds(m.ge, n) * compareEpochNanoseconds(m.fe, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, i, c, s, !0), d = !0);
1819
1826
  const u = differenceEpochNanoseconds(m.ge, n), T = differenceEpochNanoseconds(m.ge, m.fe);
1820
1827
  let D = m.Ie, h = m.ge;
1821
- return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? we(e, t) ? we(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * c * e, c, l) === m.pe && (d = !0, D = m.Oe, h = m.fe), {
1828
+ return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? Ee(e, t) ? Ee(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * c * e, c, l) === m.pe && (d = !0, D = m.Oe, h = m.fe), {
1822
1829
  Fe: {
1823
- ye: combineDateAndTimeDuration(D, ye),
1830
+ ye: combineDateAndTimeDuration(D, ve),
1824
1831
  Se: h,
1825
1832
  we: d
1826
1833
  },
1827
1834
  $e: m.he + divideTimeDurationToFloatingPoint(u, 1e9) / divideTimeDurationToFloatingPoint(T, 1e9) * c * e
1828
1835
  };
1829
1836
  }
1830
- function roundRelativeDuration(e, t, o, n, r, a, i, c, s, l) {
1831
- const d = internalDurationSign(e) || 1, m = isCalendarUnit(s) || r && s === x ? nudgeToCalendarUnit(d, e, t, o, n, r, a, c, s, l).Fe : r ? ((e, t, o, n, r, a, i, c) => {
1832
- const s = calendarDateAdd(r, o.o, t.A, D), l = combineIsoDateAndTimeRecord(s, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(s, e), o.p), m = getEpochNanosecondsFor(n, l, p), u = getEpochNanosecondsFor(n, d, p), T = timeDurationFromEpochNanosecondsDifference(u, m), h = nanosecondsForTimeUnit(i);
1833
- let g = roundTimeDurationToIncrement(t.p, a * h, c);
1834
- const f = addTimeDuration(g, negateTimeDuration(T));
1835
- let I, O = !1, F = 0;
1836
- return wt(f) !== -e ? (O = !0, F = e, g = roundTimeDurationToIncrement(f, a * h, c), I = addTimeDurationToEpochNanoseconds(u, g)) : I = addTimeDurationToEpochNanoseconds(u, g), {
1837
- ye: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.X + F), g),
1838
- Se: I,
1839
- we: O
1837
+ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, m) {
1838
+ const u = internalDurationSign(e) || 1, T = isCalendarUnit(s) || r && s === d ? nudgeToCalendarUnit(u, e, t, o, n, r, a, c, s, m).Fe : r ? ((e, t, o, n, r, a, i, c) => {
1839
+ const s = calendarDateAdd(r, o.o, t.A, _), l = combineIsoDateAndTimeRecord(s, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(s, e), o.p), m = getEpochNanosecondsFor(n, l, G), u = getEpochNanosecondsFor(n, d, G), T = timeDurationFromEpochNanosecondsDifference(u, m), D = nanosecondsForTimeUnit(i);
1840
+ let h = roundTimeDurationToIncrement(t.p, a * D, c);
1841
+ const p = addTimeDuration(h, negateTimeDuration(T));
1842
+ let g = !1, f = 0;
1843
+ return Et(p) !== -e && (g = !0, f = e, h = roundTimeDurationToIncrement(p, a * D, c)), {
1844
+ ye: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.X + f), h),
1845
+ Se: addTimeDurationToEpochNanoseconds(u, h),
1846
+ we: g
1840
1847
  };
1841
- })(d, e, n, r, a, c, s, l) : (function(e, t, o, n, r, a) {
1842
- const i = add24HourDaysToTimeDuration(e.p, e.A.X), c = r === x ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), s = c[0], [l, d] = isDateUnit(o) ? [s, addTimeDuration(c, timeDurationFromComponents(24 * -s, 0, 0, 0, 0, 0))] : [0, c];
1848
+ })(u, e, n, r, a, c, s, m) : (function(e, t, o, n, r, a) {
1849
+ const i = add24HourDaysToTimeDuration(e.p, e.A.X), c = r === d ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), s = c[0];
1843
1850
  return {
1844
- ye: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, l), d),
1851
+ ye: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, isDateUnit(o) ? s : 0), isDateUnit(o) ? addTimeDuration(c, timeDurationFromComponents(24 * -s, 0, 0, 0, 0, 0)) : c),
1845
1852
  Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(c, negateTimeDuration(i))),
1846
- we: sign(s - i[0]) === wt(i)
1853
+ we: sign(s - i[0]) === Et(i)
1847
1854
  };
1848
- })(e, o, i, c, s, l);
1849
- return m.we && s !== V ? ((e, t, o, n, r, a, i, c) => {
1855
+ })(e, o, i, c, s, m);
1856
+ return T.we && s !== l ? ((e, t, o, n, r, a, i, c) => {
1850
1857
  if (c === i) return t;
1851
1858
  const s = i;
1852
- let l;
1853
- for (let i = c - 1; i >= s; i--) if (i !== G || s === G) {
1854
- l = i === _ ? createDateDurationRecord(t.A.te + e, 0, 0, 0) : i === X ? adjustDateDurationRecord(t.A, 0, 0, t.A.oe + e) : adjustDateDurationRecord(t.A, 0, t.A.ee + e);
1855
- const c = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, l, D), n.p);
1856
- if (wt(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, c, "compatible") : getUtcEpochNanoseconds(c), o)) === -e) break;
1857
- t = combineDateAndTimeDuration(l, ye);
1859
+ let d;
1860
+ for (let m = c - 1; m >= s; m--) if (m !== g || i === l) {
1861
+ d = m === h ? createDateDurationRecord(t.A.te + e, 0, 0, 0) : m === p ? adjustDateDurationRecord(t.A, 0, 0, t.A.oe + e) : adjustDateDurationRecord(t.A, 0, t.A.ee + e);
1862
+ const i = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, d, _), n.p);
1863
+ if (Et(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, i, "compatible") : getUtcEpochNanoseconds(i), o)) === -e) break;
1864
+ t = combineDateAndTimeDuration(d, ve);
1858
1865
  }
1859
1866
  return t;
1860
- })(d, m.ye, m.Se, n, r, a, i, largerOfTwoTemporalUnits(s, x)) : m.ye;
1867
+ })(u, T.ye, T.Se, n, r, a, i, largerOfTwoTemporalUnits(s, d)) : T.ye;
1861
1868
  }
1862
1869
  function totalRelativeDuration(e, t, o, n, r, a, i) {
1863
- return isCalendarUnit(i) || r && i === x ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, a, 1, i, E).$e : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.A.X), i);
1870
+ return isCalendarUnit(i) || r && i === d ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, a, 1, i, ce).$e : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.A.X), i);
1864
1871
  }
1865
1872
  function temporalDurationToString(e, t) {
1866
- const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[te], e[oe], e[ne], e[re]), [, , , r, a, i, c] = balanceTimeDuration(n, B), [s, l, d, m, u, T] = [
1873
+ const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[F], e[S], e[y], e[w]), [, , , r, a, i, c] = balanceTimeDuration(n, T), [s, l, d, m, u, D] = [
1867
1874
  "Y",
1868
1875
  "M",
1869
1876
  "W",
1870
1877
  "D",
1871
1878
  "H",
1872
1879
  "M"
1873
- ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${u}${T}${wt(n) || defaultTemporalLargestUnit(e) >= B || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + c, t)}S` : ""}`;
1874
- return `${o < 0 ? "-" : ""}P${s}${l}${d}${m}${D && `T${D}`}`;
1880
+ ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), h = `${u}${D}${Et(n) || defaultTemporalLargestUnit(e) >= T || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + c, t)}S` : ""}`;
1881
+ return `${o < 0 ? "-" : ""}P${s}${l}${d}${m}${h && `T${h}`}`;
1875
1882
  }
1876
1883
  function addDurations(e, t, o) {
1877
1884
  const n = applySignToDurationSlot(toTemporalDuration(o), e), r = largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), defaultTemporalLargestUnit(n));
1878
1885
  return isCalendarUnit(r) && throwRangeError(durationWithDateUnit(r)), createTemporalDuration(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), addTimeDuration(toInternalDurationRecordWith24HourDays(t).p, toInternalDurationRecordWith24HourDays(n).p)), r));
1879
1886
  }
1880
1887
  function getInternalSlotOrThrowForDuration(e) {
1881
- const t = yt.get(e);
1882
- return t || throwTypeError(Te), t;
1888
+ return getInternalSlotOrThrow(vt, e);
1883
1889
  }
1884
1890
  function applySignToDurationSlot(e, t) {
1885
1891
  return createTemporalDurationSlot(e.map((e) => e * t + 0));
1886
1892
  }
1887
1893
  function validateTimeDurationRange(e) {
1888
- return ((e) => we(absTimeDuration(e), createTimeDurationFromUnit(2 ** 53, 1e9)) < 0)(e) || throwRangeError(de), e;
1894
+ return ((e) => Ee(absTimeDuration(e), createTimeDurationFromUnit(2 ** 53, 1e9)) < 0)(e) || throwRangeError(R), e;
1889
1895
  }
1890
1896
  function balanceTimeDuration(e, t) {
1891
1897
  const o = clamp(t, 3, 9);
@@ -1897,8 +1903,8 @@ function balanceTimeDuration(e, t) {
1897
1903
  0,
1898
1904
  0,
1899
1905
  0
1900
- ].slice(0, o - K),
1901
- o > te ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), ce[o - K] / 1e9),
1906
+ ].slice(0, o - f),
1907
+ o > F ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), M[o - f] / 1e9),
1902
1908
  ...[
1903
1909
  0,
1904
1910
  1,
@@ -1906,7 +1912,7 @@ function balanceTimeDuration(e, t) {
1906
1912
  3,
1907
1913
  4,
1908
1914
  5
1909
- ].map((t) => divTrunc(e[1], ce[t + 1]) % (ce[t] / ce[t + 1]) + 0).slice(o - K)
1915
+ ].map((t) => divTrunc(e[1], M[t + 1]) % (M[t] / M[t + 1]) + 0).slice(o - f)
1910
1916
  ];
1911
1917
  var r;
1912
1918
  }
@@ -1936,34 +1942,34 @@ function mathematicalInLeapYear(e) {
1936
1942
  return +!(e % (e % 25 ? 4 : 16));
1937
1943
  }
1938
1944
  function getTemporalOverflowOption(e) {
1939
- return getOption(e, "overflow", [D, h], D);
1945
+ return getOption(e, "overflow", [_, X], _);
1940
1946
  }
1941
1947
  function getTemporalDisambiguationOption(e) {
1942
1948
  return getOption(e, "disambiguation", [
1943
- p,
1949
+ G,
1944
1950
  "earlier",
1945
- g,
1951
+ K,
1946
1952
  "reject"
1947
- ], p);
1953
+ ], G);
1948
1954
  }
1949
1955
  function negateRoundingMode(e) {
1950
- return "ceil" === e ? w : "floor" === e ? y : "halfCeil" === e ? b : "halfFloor" === e ? M : e;
1956
+ return "ceil" === e ? ae : "floor" === e ? re : "halfCeil" === e ? le : "halfFloor" === e ? se : e;
1951
1957
  }
1952
1958
  function getTemporalOffsetOption(e, t) {
1953
1959
  return getOption(e, "offset", [
1954
- f,
1960
+ Q,
1955
1961
  "use",
1956
1962
  "ignore",
1957
- I
1963
+ ee
1958
1964
  ], t);
1959
1965
  }
1960
1966
  function getTemporalShowCalendarNameOption(e) {
1961
1967
  return getOption(e, "calendarName", [
1962
- Z,
1963
- $,
1964
- C,
1965
- Y
1966
- ], Z);
1968
+ Te,
1969
+ De,
1970
+ he,
1971
+ pe
1972
+ ], Te);
1967
1973
  }
1968
1974
  function validateTemporalRoundingIncrement(e, t, o) {
1969
1975
  (e > (o ? t : t - 1) || t % e) && throwRangeError(invalidField("roundingIncrement"));
@@ -1977,32 +1983,32 @@ function getTemporalFractionalSecondDigitsOption(e) {
1977
1983
  }
1978
1984
  function toSecondsStringPrecisionRecord(e, t) {
1979
1985
  return e ? {
1980
- Ee: e === q ? T : 3 * (e - 6),
1981
- ve: e,
1986
+ ve: e === u ? J : 3 * (e - 6),
1987
+ Ee: e,
1982
1988
  Me: 1
1983
1989
  } : {
1984
- Ee: t,
1985
- ve: divFloor((t ?? 9) - 1, 3) + 7,
1990
+ ve: t,
1991
+ Ee: divFloor((t ?? 9) - 1, 3) + 7,
1986
1992
  Me: 10 ** ((9 - (t ?? 9)) % 3)
1987
1993
  };
1988
1994
  }
1989
1995
  function getTemporalUnitValuedOption(e, t, o) {
1990
1996
  return mapUnlessUndefined(getOption(e, t, [
1991
- ...ae,
1992
- ...ie,
1997
+ ...v,
1998
+ ...E,
1993
1999
  "auto"
1994
2000
  ], o), (e) => {
1995
- return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), ae.indexOf(t));
2001
+ return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), v.indexOf(t));
1996
2002
  var t;
1997
2003
  });
1998
2004
  }
1999
2005
  function validateTemporalUnitValue(e, t, o = []) {
2000
- void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= x && t === s || e > x && t === c) && throwRangeError(disallowedUnit(e)));
2006
+ void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= d && t === V || e > d && t === z) && throwRangeError(disallowedUnit(e)));
2001
2007
  }
2002
2008
  function getTemporalRelativeToOption(e) {
2003
2009
  const t = e.relativeTo;
2004
2010
  if (void 0 === t) return createNullPrototypeObject();
2005
- let o, n, r, a, i, c = !0, s = O;
2011
+ let o, n, r, a, i, c = !0, s = te;
2006
2012
  if (isObject(t)) {
2007
2013
  if (isZonedDateTime(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForZonedDateTime(t) });
2008
2014
  if (isPlainDate(t)) return createNullPrototypeObject({ Pe: getInternalSlotOrThrowForPlainDate(t) });
@@ -2010,35 +2016,35 @@ function getTemporalRelativeToOption(e) {
2010
2016
  if (e) return createNullPrototypeObject({ Pe: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.K.o, e.Y)) });
2011
2017
  r = getTemporalCalendarIdentifierWithIsoDefault(t);
2012
2018
  const c = prepareCalendarFields(r, t, [
2013
- Ot.t,
2014
- Ot.u,
2015
- Ot.v,
2016
- Ot.T,
2017
- Ot.D,
2018
- Ot.I,
2019
- Ot.O,
2020
- Ot.F,
2021
- Ot.S,
2022
- Ot.$,
2023
- Ot.M,
2024
- Ot.P
2025
- ], []), l = interpretTemporalDateTimeFields(r, c, D);
2026
- a = l.o, i = l.p, o = c.timeZone, n = c.offset, s = n ? O : S;
2019
+ St.t,
2020
+ St.u,
2021
+ St.v,
2022
+ St.T,
2023
+ St.D,
2024
+ St.I,
2025
+ St.O,
2026
+ St.F,
2027
+ St.S,
2028
+ St.$,
2029
+ St.M,
2030
+ St.P
2031
+ ], []), l = interpretTemporalDateTimeFields(r, c, _);
2032
+ a = l.o, i = l.p, o = c.timeZone, n = c.offset, s = n ? te : ne;
2027
2033
  } else {
2028
2034
  validateString(t);
2029
- const e = parseIsoDateTime(t, [Ge, Ke]);
2030
- n = e.P.N, e.P.R ? (o = toTemporalTimeZoneIdentifier(e.P.R), s = e.P.Z ? F : n ? O : S, c = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.Y || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
2035
+ const e = parseIsoDateTime(t, [Qe, et]);
2036
+ n = e.P.N, e.P.R ? (o = toTemporalTimeZoneIdentifier(e.P.R), s = e.P.Z ? oe : n ? te : ne, c = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.Y || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
2031
2037
  }
2032
- return createNullPrototypeObject(o ? { be: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, s, s === O ? parseDateTimeUtcOffset(n) : 0, o, p, I, c), o, r)) } : { Pe: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
2038
+ return createNullPrototypeObject(o ? { be: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, s, s === te ? parseDateTimeUtcOffset(n) : 0, o, G, ee, c), o, r)) } : { Pe: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
2033
2039
  }
2034
2040
  function largerOfTwoTemporalUnits(e, t) {
2035
2041
  return e < t ? e : t;
2036
2042
  }
2037
2043
  function isCalendarUnit(e) {
2038
- return e < x;
2044
+ return e < d;
2039
2045
  }
2040
2046
  function isDateUnit(e) {
2041
- return e <= x;
2047
+ return e <= d;
2042
2048
  }
2043
2049
  function maximumTemporalDurationRoundingIncrement(e) {
2044
2050
  return [
@@ -2055,22 +2061,22 @@ function formatFractionalSeconds(e, t) {
2055
2061
  return void 0 === t ? e ? `.${o.replace(/0*$/, "")}` : "" : t ? `.${o.slice(0, t)}` : "";
2056
2062
  }
2057
2063
  function formatTimeString(e, t, o, n, r) {
2058
- return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === T ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
2064
+ return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === J ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
2059
2065
  }
2060
2066
  function roundNumberToIncrement(e, t, o) {
2061
- return Et[o](e / t) * t;
2067
+ return bt[o](e / t) * t;
2062
2068
  }
2063
2069
  function getRoundingModeOption(e, t) {
2064
2070
  return getOption(e, "roundingMode", [
2065
- y,
2066
- w,
2067
- v,
2068
- E,
2069
- M,
2070
- b,
2071
- P,
2072
- R,
2073
- N
2071
+ re,
2072
+ ae,
2073
+ ie,
2074
+ ce,
2075
+ se,
2076
+ le,
2077
+ de,
2078
+ me,
2079
+ ue
2074
2080
  ], t);
2075
2081
  }
2076
2082
  function getRoundingIncrementOption(e) {
@@ -2080,15 +2086,15 @@ function getRoundingIncrementOption(e) {
2080
2086
  function isoDateToFields(e, t, o) {
2081
2087
  const n = calendarIsoToDate(e, t);
2082
2088
  return createNullPrototypeObject({
2083
- [Ot.t]: o === m ? void 0 : n.t,
2084
- [Ot.v]: n.v,
2085
- [Ot.T]: o === d ? void 0 : n.T
2089
+ [St.t]: o === q ? void 0 : n.t,
2090
+ [St.v]: n.v,
2091
+ [St.T]: o === H ? void 0 : n.T
2086
2092
  });
2087
2093
  }
2088
2094
  function getDifferenceSettings(e, t, o, n, r, a) {
2089
2095
  let i = getTemporalUnitValuedOption(t, "largestUnit", void 0) ?? "auto";
2090
- const c = getRoundingIncrementOption(t), s = getRoundingModeOption(t, E), l = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
2091
- return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(l, o), n.includes(l) && throwRangeError(disallowedUnit(l)), "auto" === i && (i = largerOfTwoTemporalUnits(a, l)), i > l && throwRangeError(De), isDateUnit(l) || validateTemporalRoundingIncrement(c, maximumTemporalDurationRoundingIncrement(l), !1), {
2096
+ const c = getRoundingIncrementOption(t), s = getRoundingModeOption(t, ce), l = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
2097
+ return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(l, o), n.includes(l) && throwRangeError(disallowedUnit(l)), "auto" === i && (i = largerOfTwoTemporalUnits(a, l)), i > l && throwRangeError($), isDateUnit(l) || validateTemporalRoundingIncrement(c, maximumTemporalDurationRoundingIncrement(l), !1), {
2092
2098
  H: l,
2093
2099
  L: i,
2094
2100
  q: -1 === e ? negateRoundingMode(s) : s,
@@ -2108,21 +2114,20 @@ function epochDaysToIsoDate(e) {
2108
2114
  }
2109
2115
  function isoDateTimeToFields(e, t) {
2110
2116
  return createNullPrototypeObject({
2111
- ...isoDateToFields(e, t.o, c),
2112
- [Ot.D]: t.p.D,
2113
- [Ot.I]: t.p.I,
2114
- [Ot.O]: t.p.O,
2115
- [Ot.F]: t.p.F,
2116
- [Ot.S]: t.p.S,
2117
- [Ot.$]: t.p.$
2117
+ ...isoDateToFields(e, t.o, z),
2118
+ [St.D]: t.p.D,
2119
+ [St.I]: t.p.I,
2120
+ [St.O]: t.p.O,
2121
+ [St.F]: t.p.F,
2122
+ [St.S]: t.p.S,
2123
+ [St.$]: t.p.$
2118
2124
  });
2119
2125
  }
2120
2126
  function getInternalSlotOrThrowForDateTimeFormat(e) {
2121
- const t = Pt.get(e);
2122
- return t || throwTypeError(Te), t;
2127
+ return getInternalSlotOrThrow(Nt, e);
2123
2128
  }
2124
2129
  function formatDateTime(e, t) {
2125
- const [o, n] = handleDateTimeValue(getInternalSlotOrThrowForDateTimeFormat(e), t);
2130
+ const [o, n] = handleDateTimeValue(e, t);
2126
2131
  return o.format(n);
2127
2132
  }
2128
2133
  function removeDateTimeFormatOptions(e, t) {
@@ -2133,19 +2138,19 @@ function dateStyleToMonthStyle(e) {
2133
2138
  }
2134
2139
  function amendOptionsForPlainDate(e) {
2135
2140
  const t = createNullPrototypeObject(e);
2136
- return hasAnyOptions(e, Rt) || (hasAnyOptions(e, Nt) && throwTypeError(me), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Nt, "timeZoneName"]), t.timeZone = "UTC", t;
2141
+ return hasAnyOptions(e, Zt) || (hasAnyOptions(e, $t) && throwTypeError(N), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...$t, "timeZoneName"]), t.timeZone = "UTC", t;
2137
2142
  }
2138
2143
  function amendOptionsForPlainTime(e) {
2139
2144
  const t = createNullPrototypeObject(e);
2140
- return hasAnyOptions(e, Nt) || (hasAnyOptions(e, Rt) && throwTypeError(me), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
2141
- ...Rt,
2145
+ return hasAnyOptions(e, $t) || (hasAnyOptions(e, Zt) && throwTypeError(N), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
2146
+ ...Zt,
2142
2147
  "era",
2143
2148
  "timeZoneName"
2144
2149
  ]), t.timeZone = "UTC", t;
2145
2150
  }
2146
2151
  function amendOptionsForPlainDateTime(e) {
2147
2152
  const t = createNullPrototypeObject(e);
2148
- return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [...Rt, ...Nt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2153
+ return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [...Zt, ...$t]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2149
2154
  }
2150
2155
  function amendOptionsForPlainYearMonth(e) {
2151
2156
  const t = createNullPrototypeObject(e);
@@ -2153,8 +2158,8 @@ function amendOptionsForPlainYearMonth(e) {
2153
2158
  "year",
2154
2159
  "month",
2155
2160
  "dateStyle"
2156
- ]) || (hasAnyOptions(e, [...Rt, ...Nt]) && throwTypeError(me), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2157
- ...Nt,
2161
+ ]) || (hasAnyOptions(e, [...Zt, ...$t]) && throwTypeError(N), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2162
+ ...$t,
2158
2163
  "day",
2159
2164
  "weekday",
2160
2165
  "timeZoneName"
@@ -2166,8 +2171,8 @@ function amendOptionsForPlainMonthDay(e) {
2166
2171
  "month",
2167
2172
  "day",
2168
2173
  "dateStyle"
2169
- ]) || (hasAnyOptions(e, [...Rt, ...Nt]) && throwTypeError(me), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2170
- ...Nt,
2174
+ ]) || (hasAnyOptions(e, [...Zt, ...$t]) && throwTypeError(N), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2175
+ ...$t,
2171
2176
  "era",
2172
2177
  "year",
2173
2178
  "weekday",
@@ -2176,27 +2181,27 @@ function amendOptionsForPlainMonthDay(e) {
2176
2181
  }
2177
2182
  function amendOptionsForInstant(e) {
2178
2183
  const t = createNullPrototypeObject(e);
2179
- return hasAnyOptions(e, [...Rt, ...Nt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2184
+ return hasAnyOptions(e, [...Zt, ...$t]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2180
2185
  }
2181
2186
  function hasAnyOptions(e, t) {
2182
2187
  return t.some((t) => void 0 !== e[t]);
2183
2188
  }
2184
- function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create($t.prototype)) {
2185
- null === t && throwTypeError(me);
2186
- const a = createNullPrototypeObject();
2187
- let i = new bt(e, new Proxy({}, { get(e, o) {
2188
- const r = t[o];
2189
- return "timeZone" === o && void 0 !== n ? (void 0 !== r && throwTypeError("disallowed field: timeZone"), a[o] = n) : void 0 === r ? r : a[o] = "hour12" === o ? ((e) => !!e)(r) : "fractionalSecondDigits" === o ? Oe(r) : toString(r);
2189
+ function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n) {
2190
+ null === t && throwTypeError(N);
2191
+ const r = createNullPrototypeObject();
2192
+ let a = new Rt(e, new Proxy({}, { get(e, o) {
2193
+ const a = t[o];
2194
+ return "timeZone" === o && void 0 !== n ? (void 0 !== a && throwTypeError("disallowed field: timeZone"), r[o] = n) : void 0 === a ? a : r[o] = "hour12" === o ? ((e) => !!e)(a) : "fractionalSecondDigits" === o ? Se(a) : toString(a);
2190
2195
  } }));
2191
- return (o === c && a.timeStyle || o === s && a.dateStyle) && throwTypeError(me), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
2192
- ...Rt,
2193
- ...Nt,
2196
+ return (o === z && r.timeStyle || o === V && r.dateStyle) && throwTypeError(N), r.calendar = a.resolvedOptions().calendar, void 0 === n || hasAnyOptions(r, [
2197
+ ...Zt,
2198
+ ...$t,
2194
2199
  "timeZoneName"
2195
- ]) || (a.timeZoneName = "short", i = new bt(i.resolvedOptions().locale, a)), Pt.set(r, createNullPrototypeObject({
2196
- Re: i,
2197
- Ne: a,
2198
- Ze: i.resolvedOptions().locale
2199
- })), r;
2200
+ ]) || (r.timeZoneName = "short", a = new Rt(a.resolvedOptions().locale, r)), createNullPrototypeObject({
2201
+ Re: a,
2202
+ Ne: r,
2203
+ Ze: a.resolvedOptions().locale
2204
+ });
2200
2205
  }
2201
2206
  function validateSameTemporalType(e, t) {
2202
2207
  [
@@ -2210,27 +2215,28 @@ function validateSameTemporalType(e, t) {
2210
2215
  ].some((o) => o(e) !== o(t)) && throwTypeError("Temporal type mismatch");
2211
2216
  }
2212
2217
  function toDateTimeFormattable(e) {
2213
- return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Oe(e);
2218
+ return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Se(e);
2214
2219
  }
2215
2220
  function handleDateTimeValue(e, t) {
2216
2221
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
2217
- return isPlainTime(t) ? [e.Ye ||= new bt(e.Ze, amendOptionsForPlainTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Ne.calendar && "iso8601" !== o.Y && throwRangeError(ue), [e.Ce ||= new bt(e.Ze, amendOptionsForPlainDate(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Ne.calendar && "iso8601" !== n.Y && throwRangeError(ue), [e.Ue ||= new bt(e.Ze, amendOptionsForPlainDateTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.Y !== e.Ne.calendar && throwRangeError(ue), [e.je ||= new bt(e.Ze, amendOptionsForPlainYearMonth(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Ne.calendar && throwRangeError(ue), [e.We ||= new bt(e.Ze, amendOptionsForPlainMonthDay(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.Ae ||= new bt(e.Ze, amendOptionsForInstant(e.Ne)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(pe), [e.Re, t]);
2222
+ return isPlainTime(t) ? [e.Ye ||= new Rt(e.Ze, amendOptionsForPlainTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Ne.calendar && "iso8601" !== o.Y && throwRangeError(Z), [e.Ce ||= new Rt(e.Ze, amendOptionsForPlainDate(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Ne.calendar && "iso8601" !== n.Y && throwRangeError(Z), [e.Ue ||= new Rt(e.Ze, amendOptionsForPlainDateTime(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.Y !== e.Ne.calendar && throwRangeError(Z), [e.je ||= new Rt(e.Ze, amendOptionsForPlainYearMonth(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Ne.calendar && throwRangeError(Z), [e.We ||= new Rt(e.Ze, amendOptionsForPlainMonthDay(e.Ne)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.ke ||= new Rt(e.Ze, amendOptionsForInstant(e.Ne)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(Y), [e.Re, t]);
2218
2223
  }
2219
2224
  function DateTimeFormat(e, t) {
2220
- return new $t(e, t);
2225
+ return new Yt(e, t);
2221
2226
  }
2222
- function createTemporalInstant(e, t = Object.create(jt.prototype)) {
2223
- return Ut.set(t, { U: e }), t;
2227
+ function createTemporalInstant(e, t = Object.create(At.prototype)) {
2228
+ return Wt.set(t, { U: e }), t;
2224
2229
  }
2225
2230
  function toTemporalInstant$1(e) {
2226
2231
  if (isObject(e)) {
2227
- const t = getInternalSlotForInstant(e) || getInternalSlotForZonedDateTime(e);
2228
- if (t) return createTemporalInstant(t.U);
2232
+ const o = (t = e, Wt.get(t) || getInternalSlotForZonedDateTime(e));
2233
+ if (o) return createTemporalInstant(o.U);
2229
2234
  e = toPrimitive(e);
2230
2235
  }
2236
+ var t;
2231
2237
  validateString(e);
2232
- const t = parseIsoDateTime(e, [Qe]), o = t.P.Z ? 0 : parseDateTimeUtcOffset(t.P.N), n = t.p;
2233
- return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.t, t.u, t.T, n.D, n.I, n.O, n.F, n.S, n.$ - o))));
2238
+ const o = parseIsoDateTime(e, [tt]), n = o.P.Z ? 0 : parseDateTimeUtcOffset(o.P.N), r = o.p;
2239
+ return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(o.t, o.u, o.T, r.D, r.I, r.O, r.F, r.S, r.$ - n))));
2234
2240
  }
2235
2241
  function addInstant(e, t) {
2236
2242
  return validateEpochNanoseconds(addTimeDurationToEpochNanoseconds(e, t));
@@ -2240,15 +2246,15 @@ function differenceInstant(e, t, o, n, r) {
2240
2246
  }
2241
2247
  function roundTemporalInstant(e, t, o, n) {
2242
2248
  return (function(e, t, o) {
2243
- return normalizeEpochNanoseconds(e[0], ((e, t, o) => Mt[o](e / t) * t)(e[1], t, o));
2249
+ return normalizeEpochNanoseconds(e[0], ((e, t, o) => Pt[o](e / t) * t)(e[1], t, o));
2244
2250
  })(e, t * nanosecondsForTimeUnit(o), n);
2245
2251
  }
2246
2252
  function temporalInstantToString(e, t, o) {
2247
2253
  const n = getOffsetNanosecondsFor(t || "UTC", e);
2248
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, C)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
2254
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, he)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
2249
2255
  }
2250
2256
  function differenceTemporalInstant(e, t, o, n) {
2251
- const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), s, [], J, B);
2257
+ const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), V, [], D, T);
2252
2258
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.U, r.U, a.V, a.H, a.q), a.L), e));
2253
2259
  }
2254
2260
  function addDurationToInstant(e, t, o) {
@@ -2256,26 +2262,22 @@ function addDurationToInstant(e, t, o) {
2256
2262
  return isDateUnit(defaultTemporalLargestUnit(n)) && throwRangeError(durationWithDateUnit(defaultTemporalLargestUnit(n))), createTemporalInstant(addInstant(t.U, toInternalDurationRecordWith24HourDays(n).p));
2257
2263
  }
2258
2264
  function validateEpochNanoseconds(e) {
2259
- return ((e) => compareEpochNanoseconds(Fe, e) * compareEpochNanoseconds(Se, e) <= 0)(e) || throwRangeError(le), e;
2260
- }
2261
- function getInternalSlotForInstant(e) {
2262
- return Ut.get(e);
2265
+ return ((e) => compareEpochNanoseconds(ye, e) * compareEpochNanoseconds(we, e) <= 0)(e) || throwRangeError(P), e;
2263
2266
  }
2264
2267
  function getInternalSlotOrThrowForInstant(e) {
2265
- const t = getInternalSlotForInstant(e);
2266
- return t || throwTypeError(Te), t;
2268
+ return getInternalSlotOrThrow(Wt, e);
2267
2269
  }
2268
2270
  function isInstant(e) {
2269
- return Ut.has(e);
2271
+ return Wt.has(e);
2270
2272
  }
2271
2273
  function clampEpochNanoseconds(e) {
2272
- return compareEpochNanoseconds(e, Se) > 0 ? Se : compareEpochNanoseconds(e, Fe) < 0 ? Fe : e;
2274
+ return compareEpochNanoseconds(e, we) > 0 ? we : compareEpochNanoseconds(e, ye) < 0 ? ye : e;
2273
2275
  }
2274
2276
  function systemTimeZoneIdentifier() {
2275
- return zt && Vt + zt > Date.now() && kt ? kt : (Vt = Date.now(), kt = new bt().resolvedOptions().timeZone);
2277
+ return xt && Ht + xt > Date.now() && Vt ? Vt : (Ht = Date.now(), Vt = new Rt().resolvedOptions().timeZone);
2276
2278
  }
2277
2279
  function setSystemTimeZoneIdCacheTtl(e) {
2278
- zt = e, e || (kt = void 0, Vt = -Infinity);
2280
+ xt = e, e || (Vt = void 0, Ht = -Infinity);
2279
2281
  }
2280
2282
  function systemUtcEpochNanoseconds() {
2281
2283
  return createEpochNanosecondsFromEpochMilliseconds(Date.now());
@@ -2283,7 +2285,7 @@ function systemUtcEpochNanoseconds() {
2283
2285
  function systemDateTime(e = systemTimeZoneIdentifier()) {
2284
2286
  return getIsoDateTimeForZonedDateTimeSlot(createZonedDateTimeSlot(systemUtcEpochNanoseconds(), toTemporalTimeZoneIdentifier(e), "iso8601"));
2285
2287
  }
2286
- const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097, c = Symbol(), s = Symbol(), l = Symbol(), d = Symbol(), m = Symbol(), u = Symbol(), T = Symbol(), D = "constrain", h = "reject", p = "compatible", g = "later", f = "prefer", I = "reject", O = Symbol(), F = Symbol(), S = Symbol(), y = "ceil", w = "floor", v = "expand", E = "trunc", M = "halfCeil", b = "halfFloor", P = "halfExpand", R = "halfTrunc", N = "halfEven", Z = "auto", $ = "always", C = "never", Y = "critical", U = "auto", j = "never", W = "auto", A = "never", L = "critical", k = 0, z = 1, V = 2, x = 3, H = 4, q = 5, B = 6, J = 9, _ = 0, X = 1, G = 2, K = 3, Q = 4, ee = 5, te = 6, oe = 7, ne = 8, re = 9, ae = [
2288
+ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097, c = 0, s = 1, l = 2, d = 3, m = 4, u = 5, T = 6, D = 9, h = 0, p = 1, g = 2, f = 3, I = 4, O = 5, F = 6, S = 7, y = 8, w = 9, v = [
2287
2289
  "year",
2288
2290
  "month",
2289
2291
  "week",
@@ -2294,7 +2296,7 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097
2294
2296
  "millisecond",
2295
2297
  "microsecond",
2296
2298
  "nanosecond"
2297
- ], ie = ae.map((e) => `${e}s`), ce = [
2299
+ ], E = v.map((e) => `${e}s`), M = [
2298
2300
  a,
2299
2301
  o,
2300
2302
  t,
@@ -2302,8 +2304,27 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097
2302
2304
  1e6,
2303
2305
  1e3,
2304
2306
  1
2305
- ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, se = "invalid date / time", le = "out-of-bounds date", de = "out-of-bounds duration", me = "invalid formatting options", ue = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, Te = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, De = "invalid `largestUnit` and `smallestUnit` options", he = "mismatch of `month` and `monthCode`", pe = "value is not formattable", notObject = (e) => `not object: ${e}`, ge = "empty fields", fe = "can't convert Temporal classes to number", Ie = "argument is undefined", Oe = Math.max, Fe = createEpochNanosecondsFromEpochMilliseconds(-864e13), Se = createEpochNanosecondsFromEpochMilliseconds(864e13), ye = [0, 0], we = compareEpochNanoseconds, ve = /* @__PURE__ */ new WeakMap();
2306
- var Ee = class {
2307
+ ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, b = "invalid date / time", P = "out-of-bounds date", R = "out-of-bounds duration", N = "invalid formatting options", Z = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, $ = "invalid `largestUnit` and `smallestUnit` options", C = "mismatch of `month` and `monthCode`", Y = "value is not formattable", notObject = (e) => `not object: ${e}`, U = "empty fields", j = "can't convert Temporal classes to number", W = "argument is undefined", A = globalThis.Intl.DurationFormat, L = /* @__PURE__ */ new WeakMap();
2308
+ var k = class {
2309
+ static supportedLocalesOf(e, t = void 0) {
2310
+ return A.supportedLocalesOf(e, t);
2311
+ }
2312
+ constructor(e = void 0, t = void 0) {
2313
+ L.set(this, { Ae: new A(e, t) });
2314
+ }
2315
+ format(e) {
2316
+ return getInternalSlotOrThrowForDurationFormat(this).Ae.format(durationRecordToDurationLikeObject(toTemporalDuration(e)));
2317
+ }
2318
+ formatToParts(e) {
2319
+ return getInternalSlotOrThrowForDurationFormat(this).Ae.formatToParts(durationRecordToDurationLikeObject(toTemporalDuration(e)));
2320
+ }
2321
+ resolvedOptions() {
2322
+ return getInternalSlotOrThrowForDurationFormat(this).Ae.resolvedOptions();
2323
+ }
2324
+ };
2325
+ defineStringTag(k.prototype, "Intl.DurationFormat"), renameFunction(k, "DurationFormat");
2326
+ const z = Symbol(), V = Symbol(), x = Symbol(), H = Symbol(), q = Symbol(), B = Symbol(), J = Symbol(), _ = "constrain", X = "reject", G = "compatible", K = "later", Q = "prefer", ee = "reject", te = Symbol(), oe = Symbol(), ne = Symbol(), re = "ceil", ae = "floor", ie = "expand", ce = "trunc", se = "halfCeil", le = "halfFloor", de = "halfExpand", me = "halfTrunc", ue = "halfEven", Te = "auto", De = "always", he = "never", pe = "critical", ge = "auto", fe = "never", Ie = "auto", Oe = "never", Fe = "critical", Se = Math.max, ye = createEpochNanosecondsFromEpochMilliseconds(-864e13), we = createEpochNanosecondsFromEpochMilliseconds(864e13), ve = [0, 0], Ee = compareEpochNanoseconds, Me = /* @__PURE__ */ new WeakMap();
2327
+ var be = class {
2307
2328
  constructor(e, t, o = "iso8601") {
2308
2329
  const n = validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e)));
2309
2330
  validateString(t);
@@ -2406,25 +2427,25 @@ var Ee = class {
2406
2427
  validatePartialTemporalObject(e);
2407
2428
  const n = getOffsetNanosecondsForZonedDateTimeSlot(o), r = getIsoDateTimeForZonedDateTimeSlot(o), a = calendarMergeFields(o.Y, createNullPrototypeObject({
2408
2429
  ...isoDateTimeToFields(o.Y, r),
2409
- [Ot.M]: formatUtcOffsetNanoseconds(n)
2430
+ [St.M]: formatUtcOffsetNanoseconds(n)
2410
2431
  }), prepareCalendarFields(o.Y, e, [
2411
- Ot.t,
2412
- Ot.u,
2413
- Ot.v,
2414
- Ot.T,
2415
- Ot.D,
2416
- Ot.I,
2417
- Ot.O,
2418
- Ot.F,
2419
- Ot.S,
2420
- Ot.$,
2421
- Ot.M
2422
- ])), i = getOptionsObject(t), c = getTemporalDisambiguationOption(i), s = getTemporalOffsetOption(i, f), l = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.Y, a, l);
2423
- return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, O, parseDateTimeUtcOffset(a[Ot.M]), o.P, c, s, !0), o.P, o.Y);
2432
+ St.t,
2433
+ St.u,
2434
+ St.v,
2435
+ St.T,
2436
+ St.D,
2437
+ St.I,
2438
+ St.O,
2439
+ St.F,
2440
+ St.S,
2441
+ St.$,
2442
+ St.M
2443
+ ])), i = getOptionsObject(t), c = getTemporalDisambiguationOption(i), s = getTemporalOffsetOption(i, Q), l = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.Y, a, l);
2444
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, te, parseDateTimeUtcOffset(a[St.M]), o.P, c, s, !0), o.P, o.Y);
2424
2445
  }
2425
2446
  withPlainTime(e = void 0) {
2426
2447
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
2427
- return createTemporalZonedDateTime(void 0 === e ? getStartOfDay(t.P, o.o) : getEpochNanosecondsFor(t.P, combineIsoDateAndTimeRecord(o.o, toTemporalTime(e)), p), t.P, t.Y);
2448
+ return createTemporalZonedDateTime(void 0 === e ? getStartOfDay(t.P, o.o) : getEpochNanosecondsFor(t.P, combineIsoDateAndTimeRecord(o.o, toTemporalTime(e)), G), t.P, t.Y);
2428
2449
  }
2429
2450
  withTimeZone(e) {
2430
2451
  const t = getInternalSlotOrThrowForZonedDateTime(this);
@@ -2447,39 +2468,39 @@ var Ee = class {
2447
2468
  return differenceTemporalZonedDateTime(-1, getInternalSlotOrThrowForZonedDateTime(this), e, t);
2448
2469
  }
2449
2470
  round(e) {
2450
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2451
- if (validateTemporalUnitValue(a, s, [x]), validateTemporalRoundingIncrement(n, a === x ? 1 : maximumTemporalDurationRoundingIncrement(a), a === x), a === J && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
2471
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", B);
2472
+ if (validateTemporalUnitValue(a, V, [d]), validateTemporalRoundingIncrement(n, a === d ? 1 : maximumTemporalDurationRoundingIncrement(a), a === d), a === D && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
2452
2473
  const i = getIsoDateTimeForZonedDateTimeSlot(t);
2453
- if (a === x) {
2474
+ if (a === d) {
2454
2475
  const e = getStartOfDay(t.P, i.o), o = getStartOfDay(t.P, addDaysToIsoDate(i.o, 1));
2455
2476
  return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, 1 !== compareEpochNanoseconds(o, t.U) ? addNanosecondsToEpochSeconds(o, -1) : t.U), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.P, t.Y);
2456
2477
  }
2457
- const c = roundIsoDateTime(i, n, a, r), l = getOffsetNanosecondsForZonedDateTimeSlot(t);
2458
- return createTemporalZonedDateTime(interpretISODateTimeOffset(c.o, c.p, O, l, t.P, p, f, !0), t.P, t.Y);
2478
+ const c = roundIsoDateTime(i, n, a, r), s = getOffsetNanosecondsForZonedDateTimeSlot(t);
2479
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(c.o, c.p, te, s, t.P, G, Q, !0), t.P, t.Y);
2459
2480
  }
2460
2481
  equals(e) {
2461
2482
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = toTemporalZonedDateTime(e);
2462
2483
  return !compareEpochNanoseconds(t.U, o.U) && timeZoneEquals(t.P, o.P) && calendarEquals(t.Y, o.Y);
2463
2484
  }
2464
2485
  toString(e = void 0) {
2465
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [U, j], U))(o), i = getRoundingModeOption(o, E), c = getTemporalUnitValuedOption(o, "smallestUnit", void 0), l = ((e) => getOption(e, "timeZoneName", [
2466
- W,
2467
- A,
2468
- L
2469
- ], W))(o);
2470
- validateTemporalUnitValue(c, s), c === H && throwRangeError(invalidField("smallestUnit"));
2471
- const d = toSecondsStringPrecisionRecord(c, r);
2472
- return temporalZonedDateTimeToString(t, d.Ee, n, l, a, d.Me, d.ve, i);
2486
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [ge, fe], ge))(o), i = getRoundingModeOption(o, ce), c = getTemporalUnitValuedOption(o, "smallestUnit", void 0), s = ((e) => getOption(e, "timeZoneName", [
2487
+ Ie,
2488
+ Oe,
2489
+ Fe
2490
+ ], Ie))(o);
2491
+ validateTemporalUnitValue(c, V), c === m && throwRangeError(invalidField("smallestUnit"));
2492
+ const l = toSecondsStringPrecisionRecord(c, r);
2493
+ return temporalZonedDateTimeToString(t, l.ve, n, s, a, l.Me, l.Ee, i);
2473
2494
  }
2474
2495
  toLocaleString(e = void 0, t = void 0) {
2475
- const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, l, o.P), r = getInternalSlotOrThrowForDateTimeFormat(n);
2476
- return "iso8601" === o.Y || calendarEquals(o.Y, r.Ne.calendar) || throwRangeError(ue), formatDateTime(n, createTemporalInstant(o.U));
2496
+ const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, x, o.P);
2497
+ return "iso8601" === o.Y || calendarEquals(o.Y, n.Ne.calendar) || throwRangeError(Z), formatDateTime(n, createTemporalInstant(o.U));
2477
2498
  }
2478
2499
  toJSON() {
2479
- return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, Z, W, U);
2500
+ return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, Te, Ie, ge);
2480
2501
  }
2481
2502
  valueOf() {
2482
- throwTypeError(fe);
2503
+ throwTypeError(j);
2483
2504
  }
2484
2505
  startOfDay() {
2485
2506
  const e = getInternalSlotOrThrowForZonedDateTime(this);
@@ -2487,8 +2508,8 @@ var Ee = class {
2487
2508
  }
2488
2509
  getTimeZoneTransition(e) {
2489
2510
  const t = getInternalSlotOrThrowForZonedDateTime(this);
2490
- void 0 === e && throwTypeError(Ie);
2491
- const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], u), n = ((e, t, o) => {
2511
+ void 0 === e && throwTypeError(W);
2512
+ const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], B), n = ((e, t, o) => {
2492
2513
  if ("UTC" === e || isOffsetTimeZoneIdentifier(e)) return null;
2493
2514
  const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, Infinity);
2494
2515
  return -1 === o ? a === n ? null : a > r ? searchTimeZoneTransition(e, a, a - 31536e3, o) || searchTimeZoneTransition(e, r, n, o) : searchTimeZoneTransition(e, a, n, o) : searchTimeZoneTransition(e, a, a > r ? a + 31536e3 : r, o);
@@ -2510,9 +2531,9 @@ var Ee = class {
2510
2531
  return createTemporalDateTime(getIsoDateTimeForZonedDateTimeSlot(e), e.Y);
2511
2532
  }
2512
2533
  };
2513
- defineStringTag(Ee.prototype, "Temporal.ZonedDateTime"), renameFunction(Ee, "ZonedDateTime");
2514
- const Me = createNullPrototypeObject(), be = createNullPrototypeObject(), Pe = /* @__PURE__ */ new WeakMap();
2515
- var Re = class {
2534
+ defineStringTag(be.prototype, "Temporal.ZonedDateTime"), renameFunction(be, "ZonedDateTime");
2535
+ const Pe = createNullPrototypeObject(), Re = createNullPrototypeObject(), Ne = /* @__PURE__ */ new WeakMap();
2536
+ var Ze = class {
2516
2537
  constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = "iso8601") {
2517
2538
  const d = [
2518
2539
  e,
@@ -2528,7 +2549,7 @@ var Re = class {
2528
2549
  ].map(toIntegerWithTruncation);
2529
2550
  validateString(l);
2530
2551
  const u = canonicalizeCalendar(l);
2531
- isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(se), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
2552
+ isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(b), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
2532
2553
  }
2533
2554
  static from(e, t = void 0) {
2534
2555
  return toTemporalDateTime(e, t);
@@ -2606,16 +2627,16 @@ var Re = class {
2606
2627
  const o = getInternalSlotOrThrowForPlainDateTime(this);
2607
2628
  validatePartialTemporalObject(e);
2608
2629
  const n = calendarMergeFields(o.Y, isoDateTimeToFields(o.Y, o.K), prepareCalendarFields(o.Y, e, [
2609
- Ot.t,
2610
- Ot.u,
2611
- Ot.v,
2612
- Ot.T,
2613
- Ot.D,
2614
- Ot.I,
2615
- Ot.O,
2616
- Ot.F,
2617
- Ot.S,
2618
- Ot.$
2630
+ St.t,
2631
+ St.u,
2632
+ St.v,
2633
+ St.T,
2634
+ St.D,
2635
+ St.I,
2636
+ St.O,
2637
+ St.F,
2638
+ St.S,
2639
+ St.$
2619
2640
  ]));
2620
2641
  return createTemporalDateTime(interpretTemporalDateTimeFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2621
2642
  }
@@ -2639,28 +2660,28 @@ var Re = class {
2639
2660
  return differenceTemporalPlainDateTime(-1, getInternalSlotOrThrowForPlainDateTime(this), e, t);
2640
2661
  }
2641
2662
  round(e) {
2642
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2643
- return validateTemporalUnitValue(a, s, [x]), validateTemporalRoundingIncrement(n, a === x ? 1 : maximumTemporalDurationRoundingIncrement(a), a === x), createTemporalDateTime(roundIsoDateTime(t.K, n, a, r), t.Y);
2663
+ const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", B);
2664
+ return validateTemporalUnitValue(a, V, [d]), validateTemporalRoundingIncrement(n, a === d ? 1 : maximumTemporalDurationRoundingIncrement(a), a === d), createTemporalDateTime(roundIsoDateTime(t.K, n, a, r), t.Y);
2644
2665
  }
2645
2666
  equals(e) {
2646
2667
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e));
2647
2668
  return !compareIsoDateTime(t.K, o.K) && calendarEquals(t.Y, o.Y);
2648
2669
  }
2649
2670
  toString(e = void 0) {
2650
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, E), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2651
- validateTemporalUnitValue(i, s), i === H && throwRangeError(invalidField("smallestUnit"));
2671
+ const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, ce), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2672
+ validateTemporalUnitValue(i, V), i === m && throwRangeError(invalidField("smallestUnit"));
2652
2673
  const c = toSecondsStringPrecisionRecord(i, r);
2653
- return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.K, c.Me, c.ve, a)), t.Y, c.Ee, n);
2674
+ return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.K, c.Me, c.Ee, a)), t.Y, c.ve, n);
2654
2675
  }
2655
2676
  toLocaleString(e = void 0, t = void 0) {
2656
- return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2677
+ return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, x), this);
2657
2678
  }
2658
2679
  toJSON() {
2659
2680
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2660
- return isoDateTimeToString(e.K, e.Y, void 0, Z);
2681
+ return isoDateTimeToString(e.K, e.Y, void 0, Te);
2661
2682
  }
2662
2683
  valueOf() {
2663
- throwTypeError(fe);
2684
+ throwTypeError(j);
2664
2685
  }
2665
2686
  toZonedDateTime(e, t = void 0) {
2666
2687
  const o = getInternalSlotOrThrowForPlainDateTime(this), n = toTemporalTimeZoneIdentifier(e), r = getTemporalDisambiguationOption(getOptionsObject(t));
@@ -2674,9 +2695,9 @@ var Re = class {
2674
2695
  return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).K.p);
2675
2696
  }
2676
2697
  };
2677
- defineStringTag(Re.prototype, "Temporal.PlainDateTime"), renameFunction(Re, "PlainDateTime");
2678
- const Ne = /* @__PURE__ */ new WeakMap();
2679
- var Ze = class {
2698
+ defineStringTag(Ze.prototype, "Temporal.PlainDateTime"), renameFunction(Ze, "PlainDateTime");
2699
+ const $e = /* @__PURE__ */ new WeakMap();
2700
+ var Ce = class {
2680
2701
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0) {
2681
2702
  const i = [
2682
2703
  e,
@@ -2686,7 +2707,7 @@ var Ze = class {
2686
2707
  r,
2687
2708
  a
2688
2709
  ].map(toIntegerWithTruncation);
2689
- isValidTime(...i) || throwRangeError(se), createTemporalTime(createTimeRecord(...i), this);
2710
+ isValidTime(...i) || throwRangeError(b), createTemporalTime(createTimeRecord(...i), this);
2690
2711
  }
2691
2712
  static from(e, t = void 0) {
2692
2713
  return createTemporalTime(toTemporalTime(e, t));
@@ -2736,54 +2757,54 @@ var Ze = class {
2736
2757
  return differenceTemporalPlainTime(-1, getInternalSlotOrThrowForPlainTime(this), e, t);
2737
2758
  }
2738
2759
  round(e) {
2739
- const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, P), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2740
- return validateTemporalUnitValue(a, s), validateTemporalRoundingIncrement(n, maximumTemporalDurationRoundingIncrement(a), !1), createTemporalTime(roundTime(t, n, a, r));
2760
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, de), a = getTemporalUnitValuedOption(o, "smallestUnit", B);
2761
+ return validateTemporalUnitValue(a, V), validateTemporalRoundingIncrement(n, maximumTemporalDurationRoundingIncrement(a), !1), createTemporalTime(roundTime(t, n, a, r));
2741
2762
  }
2742
2763
  equals(e) {
2743
2764
  return !compareTimeRecord(getInternalSlotOrThrowForPlainTime(this), toTemporalTime(e));
2744
2765
  }
2745
2766
  toString(e = void 0) {
2746
- const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, E), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2747
- validateTemporalUnitValue(a, s), a === H && throwRangeError(invalidField("smallestUnit"));
2767
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, ce), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2768
+ validateTemporalUnitValue(a, V), a === m && throwRangeError(invalidField("smallestUnit"));
2748
2769
  const i = toSecondsStringPrecisionRecord(a, n);
2749
- return timeRecordToString(roundTime(t, i.Me, i.ve, r), i.Ee);
2770
+ return timeRecordToString(roundTime(t, i.Me, i.Ee, r), i.ve);
2750
2771
  }
2751
2772
  toLocaleString(e = void 0, t = void 0) {
2752
- return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2773
+ return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, V), this);
2753
2774
  }
2754
2775
  toJSON() {
2755
2776
  return timeRecordToString(getInternalSlotOrThrowForPlainTime(this));
2756
2777
  }
2757
2778
  valueOf() {
2758
- throwTypeError(fe);
2779
+ throwTypeError(j);
2759
2780
  }
2760
2781
  };
2761
- defineStringTag(Ze.prototype, "Temporal.PlainTime"), renameFunction(Ze, "PlainTime");
2762
- const $e = "\\d{4}|[-+]\\d{6}", Ce = "0[1-9]|1[0-2]", Ye = "0[1-9]|[12]\\d|30|31", Ue = "[01]\\d|2[0-3]", je = "[0-5]\\d", We = `(?<a>${$e})(?<x>-?)(?<b>${Ce})\\k<x>(?<c>${Ye})`, Ae = optionalChain([
2763
- `(?<d>${Ue})`,
2764
- `(?<y>:?)(?<e>${je})`,
2782
+ defineStringTag(Ce.prototype, "Temporal.PlainTime"), renameFunction(Ce, "PlainTime");
2783
+ const Ye = "\\d{4}|[-+]\\d{6}", Ue = "0[1-9]|1[0-2]", je = "0[1-9]|[12]\\d|30|31", We = "[01]\\d|2[0-3]", Ae = "[0-5]\\d", Le = `(?<a>${Ye})(?<x>-?)(?<b>${Ue})\\k<x>(?<c>${je})`, ke = optionalChain([
2784
+ `(?<d>${We})`,
2785
+ `(?<y>:?)(?<e>${Ae})`,
2765
2786
  "\\k<y>(?<f>[0-5]\\d|60)",
2766
2787
  "[.,](?<g>\\d{1,9})"
2767
- ]), Le = optionalChain([
2768
- `([+-])(${Ue})`,
2769
- `(?<z>:?)(${je})`,
2770
- `\\k<z>(${je})`,
2788
+ ]), ze = optionalChain([
2789
+ `([+-])(${We})`,
2790
+ `(?<z>:?)(${Ae})`,
2791
+ `\\k<z>(${Ae})`,
2771
2792
  "[.,](\\d{1,9})"
2772
- ]), ke = optionalChain([
2773
- We,
2774
- `[ tT]${Ae}`,
2775
- `(?<h>${Le})`
2776
- ]), ze = `(?<l>${$e})-?(?<m>${Ce})`, Ve = `(?:--)?(?<m>${Ce})-?(?<n>${Ye})`, xe = `(?<h>${Le})|(?<i>[zZ])`, He = `([+-])(${Ue})(?::?(${je}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, qe = `\\[!?(?<j>${He})\\]`, Be = join("[a-zA-Z\\d]+", "-"), Je = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Be})\\]`, _e = `(?<k>(${Je})*)`, Xe = RegExp(Je, "g"), Ge = createRegExp(`${optionalChain([
2777
- We,
2778
- `[ tT]${Ae}`,
2779
- xe
2780
- ])}${qe}${_e}`), Ke = createRegExp(`${ke}(?:${qe})?${_e}`), Qe = createRegExp(`${We}[ tT]${Ae}(?:${xe})(?:${qe})?${_e}`), et = createRegExp(`(${We}[ tT]|[tT]?)${Ae}(?<h>${Le})?(?:${qe})?${_e}`), tt = createRegExp(`(${ke}|${Ve})(?:${qe})?${_e}`), ot = createRegExp(`(${ke}|${ze})(?:${qe})?${_e}`), nt = [createRegExp(`${Ve}(${qe})?(${Je})*`), createRegExp(`${ze}(${qe})?(${Je})*`)], rt = createRegExp(He), at = createRegExp(Be), it = createRegExp(Le), ct = /* @__PURE__ */ new WeakMap();
2781
- var st = class {
2793
+ ]), Ve = optionalChain([
2794
+ Le,
2795
+ `[ tT]${ke}`,
2796
+ `(?<h>${ze})`
2797
+ ]), xe = `(?<l>${Ye})-?(?<m>${Ue})`, He = `(?:--)?(?<m>${Ue})-?(?<n>${je})`, qe = `(?<h>${ze})|(?<i>[zZ])`, Be = `([+-])(${We})(?::?(${Ae}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, Je = `\\[!?(?<j>${Be})\\]`, _e = join("[a-zA-Z\\d]+", "-"), Xe = `\\[(!)?([a-z_][a-z\\d_-]*)=(${_e})\\]`, Ge = `(?<k>(${Xe})*)`, Ke = RegExp(Xe, "g"), Qe = createRegExp(`${optionalChain([
2798
+ Le,
2799
+ `[ tT]${ke}`,
2800
+ qe
2801
+ ])}${Je}${Ge}`), et = createRegExp(`${Ve}(?:${Je})?${Ge}`), tt = createRegExp(`${Le}[ tT]${ke}(?:${qe})(?:${Je})?${Ge}`), ot = createRegExp(`(${Le}[ tT]|[tT]?)${ke}(?<h>${ze})?(?:${Je})?${Ge}`), nt = createRegExp(`(${Ve}|${He})(?:${Je})?${Ge}`), rt = createRegExp(`(${Ve}|${xe})(?:${Je})?${Ge}`), at = [createRegExp(`${He}(${Je})?(${Xe})*`), createRegExp(`${xe}(${Je})?(${Xe})*`)], it = createRegExp(Be), ct = createRegExp(_e), st = createRegExp(ze), lt = /* @__PURE__ */ new WeakMap();
2802
+ var dt = class {
2782
2803
  constructor(e, t, o = "iso8601", n = 1972) {
2783
2804
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2784
2805
  validateString(o);
2785
2806
  const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2786
- isValidIsoDate(c, r, a) || throwRangeError(se), createTemporalMonthDay(createIsoDateRecord(c, r, a), i, this);
2807
+ isValidIsoDate(c, r, a) || throwRangeError(b), createTemporalMonthDay(createIsoDateRecord(c, r, a), i, this);
2787
2808
  }
2788
2809
  static from(e, t = void 0) {
2789
2810
  return toTemporalMonthDay(e, t);
@@ -2801,11 +2822,11 @@ var st = class {
2801
2822
  }
2802
2823
  with(e, t = void 0) {
2803
2824
  const o = getInternalSlotOrThrowForPlainMonthDay(this);
2804
- return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.Y, calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, m), prepareCalendarFields(o.Y, e, [
2805
- Ot.t,
2806
- Ot.u,
2807
- Ot.v,
2808
- Ot.T
2825
+ return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.Y, calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, q), prepareCalendarFields(o.Y, e, [
2826
+ St.t,
2827
+ St.u,
2828
+ St.v,
2829
+ St.T
2809
2830
  ])), getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2810
2831
  }
2811
2832
  equals(e) {
@@ -2816,27 +2837,27 @@ var st = class {
2816
2837
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2817
2838
  }
2818
2839
  toLocaleString(e = void 0, t = void 0) {
2819
- return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2840
+ return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, z), this);
2820
2841
  }
2821
2842
  toJSON() {
2822
- return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), Z);
2843
+ return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), Te);
2823
2844
  }
2824
2845
  valueOf() {
2825
- throwTypeError(fe);
2846
+ throwTypeError(j);
2826
2847
  }
2827
2848
  toPlainDate(e) {
2828
2849
  const t = getInternalSlotOrThrowForPlainMonthDay(this);
2829
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, m), prepareCalendarFields(t.Y, e, [Ot.t], [])), D), t.Y);
2850
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, q), prepareCalendarFields(t.Y, e, [St.t], [])), _), t.Y);
2830
2851
  }
2831
2852
  };
2832
- defineStringTag(st.prototype, "Temporal.PlainMonthDay"), renameFunction(st, "PlainMonthDay");
2833
- const lt = /* @__PURE__ */ new WeakMap();
2834
- var dt = class {
2853
+ defineStringTag(dt.prototype, "Temporal.PlainMonthDay"), renameFunction(dt, "PlainMonthDay");
2854
+ const mt = /* @__PURE__ */ new WeakMap();
2855
+ var ut = class {
2835
2856
  constructor(e, t, o = "iso8601", n = 1) {
2836
2857
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2837
2858
  validateString(o);
2838
2859
  const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2839
- isValidIsoDate(r, a, c) || throwRangeError(se), createTemporalYearMonth(createIsoDateRecord(r, a, c), i, this);
2860
+ isValidIsoDate(r, a, c) || throwRangeError(b), createTemporalYearMonth(createIsoDateRecord(r, a, c), i, this);
2840
2861
  }
2841
2862
  static from(e, t = void 0) {
2842
2863
  return toTemporalYearMonth(e, t);
@@ -2877,10 +2898,10 @@ var dt = class {
2877
2898
  with(e, t = void 0) {
2878
2899
  const o = getInternalSlotOrThrowForPlainYearMonth(this);
2879
2900
  validatePartialTemporalObject(e);
2880
- const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, d), prepareCalendarFields(o.Y, e, [
2881
- Ot.t,
2882
- Ot.u,
2883
- Ot.v
2901
+ const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, H), prepareCalendarFields(o.Y, e, [
2902
+ St.t,
2903
+ St.u,
2904
+ St.v
2884
2905
  ]));
2885
2906
  return createTemporalYearMonth(calendarYearMonthFromFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2886
2907
  }
@@ -2904,27 +2925,27 @@ var dt = class {
2904
2925
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2905
2926
  }
2906
2927
  toLocaleString(e = void 0, t = void 0) {
2907
- return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2928
+ return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, z), this);
2908
2929
  }
2909
2930
  toJSON() {
2910
- return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), Z);
2931
+ return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), Te);
2911
2932
  }
2912
2933
  valueOf() {
2913
- throwTypeError(fe);
2934
+ throwTypeError(j);
2914
2935
  }
2915
2936
  toPlainDate(e) {
2916
2937
  const t = getInternalSlotOrThrowForPlainYearMonth(this);
2917
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, d), prepareCalendarFields(t.Y, e, [Ot.T], [])), D), t.Y);
2938
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, H), prepareCalendarFields(t.Y, e, [St.T], [])), _), t.Y);
2918
2939
  }
2919
2940
  };
2920
- defineStringTag(dt.prototype, "Temporal.PlainYearMonth"), renameFunction(dt, "PlainYearMonth");
2921
- const mt = /* @__PURE__ */ new WeakMap();
2922
- var ut = class {
2941
+ defineStringTag(ut.prototype, "Temporal.PlainYearMonth"), renameFunction(ut, "PlainYearMonth");
2942
+ const Tt = /* @__PURE__ */ new WeakMap();
2943
+ var Dt = class {
2923
2944
  constructor(e, t, o, n = "iso8601") {
2924
2945
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2925
2946
  validateString(n);
2926
2947
  const c = canonicalizeCalendar(n);
2927
- isValidIsoDate(r, a, i) || throwRangeError(se), createTemporalDate(createIsoDateRecord(r, a, i), c, this);
2948
+ isValidIsoDate(r, a, i) || throwRangeError(b), createTemporalDate(createIsoDateRecord(r, a, i), c, this);
2928
2949
  }
2929
2950
  static from(e, t = void 0) {
2930
2951
  return toTemporalDate(e, t);
@@ -2982,11 +3003,11 @@ var ut = class {
2982
3003
  }
2983
3004
  toPlainYearMonth() {
2984
3005
  const e = getInternalSlotOrThrowForPlainDate(this);
2985
- return createTemporalYearMonth(calendarYearMonthFromFields(e.Y, isoDateToFields(e.Y, e.o, c), D), e.Y);
3006
+ return createTemporalYearMonth(calendarYearMonthFromFields(e.Y, isoDateToFields(e.Y, e.o, z), _), e.Y);
2986
3007
  }
2987
3008
  toPlainMonthDay() {
2988
3009
  const e = getInternalSlotOrThrowForPlainDate(this);
2989
- return createTemporalMonthDay(calendarMonthDayFromFields(e.Y, isoDateToFields(e.Y, e.o, c), D), e.Y);
3010
+ return createTemporalMonthDay(calendarMonthDayFromFields(e.Y, isoDateToFields(e.Y, e.o, z), _), e.Y);
2990
3011
  }
2991
3012
  add(e, t = void 0) {
2992
3013
  return addDurationToDate(1, getInternalSlotOrThrowForPlainDate(this), e, t);
@@ -2997,11 +3018,11 @@ var ut = class {
2997
3018
  with(e, t = void 0) {
2998
3019
  const o = getInternalSlotOrThrowForPlainDate(this);
2999
3020
  validatePartialTemporalObject(e);
3000
- const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, c), prepareCalendarFields(o.Y, e, [
3001
- Ot.t,
3002
- Ot.u,
3003
- Ot.v,
3004
- Ot.T
3021
+ const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, z), prepareCalendarFields(o.Y, e, [
3022
+ St.t,
3023
+ St.u,
3024
+ St.v,
3025
+ St.T
3005
3026
  ])), r = getTemporalOverflowOption(getOptionsObject(t));
3006
3027
  return createTemporalDate(calendarDateFromFields(o.Y, n, r), o.Y);
3007
3028
  }
@@ -3029,43 +3050,43 @@ var ut = class {
3029
3050
  const t = e.timeZone;
3030
3051
  void 0 === t ? n = toTemporalTimeZoneIdentifier(e) : (n = toTemporalTimeZoneIdentifier(t), o = e.plainTime);
3031
3052
  } else n = toTemporalTimeZoneIdentifier(e);
3032
- return createTemporalZonedDateTime(void 0 === o ? getStartOfDay(n, t.o) : getEpochNanosecondsFor(n, validateIsoDateTime(combineIsoDateAndTimeRecord(t.o, toTemporalTime(o))), p), n, t.Y);
3053
+ return createTemporalZonedDateTime(void 0 === o ? getStartOfDay(n, t.o) : getEpochNanosecondsFor(n, validateIsoDateTime(combineIsoDateAndTimeRecord(t.o, toTemporalTime(o))), G), n, t.Y);
3033
3054
  }
3034
3055
  toString(e = void 0) {
3035
3056
  return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
3036
3057
  }
3037
3058
  toLocaleString(e = void 0, t = void 0) {
3038
- return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, c), this);
3059
+ return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, z), this);
3039
3060
  }
3040
3061
  toJSON() {
3041
- return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), Z);
3062
+ return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), Te);
3042
3063
  }
3043
3064
  valueOf() {
3044
- throwTypeError(fe);
3065
+ throwTypeError(j);
3045
3066
  }
3046
3067
  };
3047
- defineStringTag(ut.prototype, "Temporal.PlainDate"), renameFunction(ut, "PlainDate");
3048
- const Tt = createNullPrototypeObject(), Dt = {
3068
+ defineStringTag(Dt.prototype, "Temporal.PlainDate"), renameFunction(Dt, "PlainDate");
3069
+ const ht = createNullPrototypeObject(), pt = {
3049
3070
  chinese: createLruCache(2e3),
3050
3071
  dangi: createLruCache(2e3)
3051
- }, ht = {
3072
+ }, gt = {
3052
3073
  chinese: createLruCache(1e4),
3053
3074
  dangi: createLruCache(1e4)
3054
- }, pt = createLruCache(5e3), gt = createLruCache(1e3), ft = new Map([["ah", 1], ["bh", !1]]), It = createNullPrototypeObject({
3075
+ }, ft = createLruCache(5e3), It = createLruCache(1e3), Ot = /* @__PURE__ */ new Map([["ah", 1], ["bh", !1]]), Ft = createNullPrototypeObject({
3055
3076
  iso8601: /* @__PURE__ */ new Map(),
3056
- buddhist: new Map([["be", 1]]),
3077
+ buddhist: /* @__PURE__ */ new Map([["be", 1]]),
3057
3078
  chinese: /* @__PURE__ */ new Map(),
3058
- coptic: new Map([["am", 1]]),
3079
+ coptic: /* @__PURE__ */ new Map([["am", 1]]),
3059
3080
  dangi: /* @__PURE__ */ new Map(),
3060
- ethioaa: new Map([["aa", 1]]),
3061
- ethiopic: new Map([["am", 1], ["aa", -5499]]),
3062
- gregory: new Map([["ce", 1], ["bce", !1]]),
3063
- hebrew: new Map([["am", 1]]),
3064
- indian: new Map([["shaka", 1]]),
3065
- "islamic-civil": ft,
3066
- "islamic-tbla": ft,
3067
- "islamic-umalqura": ft,
3068
- japanese: new Map([
3081
+ ethioaa: /* @__PURE__ */ new Map([["aa", 1]]),
3082
+ ethiopic: /* @__PURE__ */ new Map([["am", 1], ["aa", -5499]]),
3083
+ gregory: /* @__PURE__ */ new Map([["ce", 1], ["bce", !1]]),
3084
+ hebrew: /* @__PURE__ */ new Map([["am", 1]]),
3085
+ indian: /* @__PURE__ */ new Map([["shaka", 1]]),
3086
+ "islamic-civil": Ot,
3087
+ "islamic-tbla": Ot,
3088
+ "islamic-umalqura": Ot,
3089
+ japanese: /* @__PURE__ */ new Map([
3069
3090
  ["reiwa", 2019],
3070
3091
  ["heisei", 1989],
3071
3092
  ["showa", 1926],
@@ -3074,9 +3095,9 @@ const Tt = createNullPrototypeObject(), Dt = {
3074
3095
  ["ce", 1],
3075
3096
  ["bce", !1]
3076
3097
  ]),
3077
- persian: new Map([["ap", 1]]),
3078
- roc: new Map([["roc", 1], ["broc", !1]])
3079
- }), Ot = {
3098
+ persian: /* @__PURE__ */ new Map([["ap", 1]]),
3099
+ roc: /* @__PURE__ */ new Map([["roc", 1], ["broc", !1]])
3100
+ }), St = {
3080
3101
  ne: "era",
3081
3102
  re: "eraYear",
3082
3103
  t: "year",
@@ -3091,41 +3112,41 @@ const Tt = createNullPrototypeObject(), Dt = {
3091
3112
  $: "nanosecond",
3092
3113
  M: "offset",
3093
3114
  P: "timeZone"
3094
- }, Ft = [
3095
- Ot.ne,
3096
- Ot.re,
3097
- Ot.t,
3098
- Ot.u,
3099
- Ot.v,
3100
- Ot.T,
3101
- Ot.D,
3102
- Ot.I,
3103
- Ot.O,
3104
- Ot.F,
3105
- Ot.S,
3106
- Ot.$,
3107
- Ot.M,
3108
- Ot.P
3109
- ], St = {
3110
- [Ot.ne]: [toString],
3111
- [Ot.re]: [toIntegerWithTruncation],
3112
- [Ot.t]: [toIntegerWithTruncation],
3113
- [Ot.u]: [toPositiveIntegerWithTruncation],
3114
- [Ot.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3115
- [Ot.T]: [toPositiveIntegerWithTruncation],
3116
- [Ot.D]: [toIntegerWithTruncation, 0],
3117
- [Ot.I]: [toIntegerWithTruncation, 0],
3118
- [Ot.O]: [toIntegerWithTruncation, 0],
3119
- [Ot.F]: [toIntegerWithTruncation, 0],
3120
- [Ot.S]: [toIntegerWithTruncation, 0],
3121
- [Ot.$]: [toIntegerWithTruncation, 0],
3122
- [Ot.M]: [(e) => {
3115
+ }, yt = [
3116
+ St.ne,
3117
+ St.re,
3118
+ St.t,
3119
+ St.u,
3120
+ St.v,
3121
+ St.T,
3122
+ St.D,
3123
+ St.I,
3124
+ St.O,
3125
+ St.F,
3126
+ St.S,
3127
+ St.$,
3128
+ St.M,
3129
+ St.P
3130
+ ], wt = {
3131
+ [St.ne]: [toString],
3132
+ [St.re]: [toIntegerWithTruncation],
3133
+ [St.t]: [toIntegerWithTruncation],
3134
+ [St.u]: [toPositiveIntegerWithTruncation],
3135
+ [St.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3136
+ [St.T]: [toPositiveIntegerWithTruncation],
3137
+ [St.D]: [toIntegerWithTruncation, 0],
3138
+ [St.I]: [toIntegerWithTruncation, 0],
3139
+ [St.O]: [toIntegerWithTruncation, 0],
3140
+ [St.F]: [toIntegerWithTruncation, 0],
3141
+ [St.S]: [toIntegerWithTruncation, 0],
3142
+ [St.$]: [toIntegerWithTruncation, 0],
3143
+ [St.M]: [(e) => {
3123
3144
  const t = toPrimitive(e);
3124
3145
  return validateString(t), parseDateTimeUtcOffset(t), t;
3125
3146
  }],
3126
- [Ot.P]: [toTemporalTimeZoneIdentifier]
3127
- }, yt = /* @__PURE__ */ new WeakMap(), wt = signTimeDuration;
3128
- var vt = class {
3147
+ [St.P]: [toTemporalTimeZoneIdentifier]
3148
+ }, vt = /* @__PURE__ */ new WeakMap(), Et = signTimeDuration;
3149
+ var Mt = class {
3129
3150
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = 0) {
3130
3151
  createTemporalDuration(createTemporalDurationSlot([
3131
3152
  e,
@@ -3148,37 +3169,37 @@ var vt = class {
3148
3169
  if (!n.some((e, t) => r[t] !== e)) return 0;
3149
3170
  const i = defaultTemporalLargestUnit(n), c = defaultTemporalLargestUnit(r), s = toInternalDurationRecord(n), l = toInternalDurationRecord(r);
3150
3171
  let d, m;
3151
- return a.be && (isDateUnit(i) || isDateUnit(c)) ? compareEpochNanoseconds(addZonedDateTime(a.be, s, D), addZonedDateTime(a.be, l, D)) : (isCalendarUnit(i) || isCalendarUnit(c) ? (a.Pe || throwRangeError(missingField("relativeTo")), d = dateDurationDays(s.A, a.Pe), m = dateDurationDays(l.A, a.Pe)) : (d = n[K], m = r[K]), we(add24HourDaysToTimeDuration(s.p, d), add24HourDaysToTimeDuration(l.p, m)));
3172
+ return a.be && (isDateUnit(i) || isDateUnit(c)) ? compareEpochNanoseconds(addZonedDateTime(a.be, s, _), addZonedDateTime(a.be, l, _)) : (isCalendarUnit(i) || isCalendarUnit(c) ? (a.Pe || throwRangeError(missingField("relativeTo")), d = dateDurationDays(s.A, a.Pe), m = dateDurationDays(l.A, a.Pe)) : (d = n[f], m = r[f]), Ee(add24HourDaysToTimeDuration(s.p, d), add24HourDaysToTimeDuration(l.p, m)));
3152
3173
  }
3153
3174
  get years() {
3154
- return getInternalSlotOrThrowForDuration(this)[_];
3175
+ return getInternalSlotOrThrowForDuration(this)[h];
3155
3176
  }
3156
3177
  get months() {
3157
- return getInternalSlotOrThrowForDuration(this)[X];
3178
+ return getInternalSlotOrThrowForDuration(this)[p];
3158
3179
  }
3159
3180
  get weeks() {
3160
- return getInternalSlotOrThrowForDuration(this)[G];
3181
+ return getInternalSlotOrThrowForDuration(this)[g];
3161
3182
  }
3162
3183
  get days() {
3163
- return getInternalSlotOrThrowForDuration(this)[K];
3184
+ return getInternalSlotOrThrowForDuration(this)[f];
3164
3185
  }
3165
3186
  get hours() {
3166
- return getInternalSlotOrThrowForDuration(this)[Q];
3187
+ return getInternalSlotOrThrowForDuration(this)[I];
3167
3188
  }
3168
3189
  get minutes() {
3169
- return getInternalSlotOrThrowForDuration(this)[ee];
3190
+ return getInternalSlotOrThrowForDuration(this)[O];
3170
3191
  }
3171
3192
  get seconds() {
3172
- return getInternalSlotOrThrowForDuration(this)[te];
3193
+ return getInternalSlotOrThrowForDuration(this)[F];
3173
3194
  }
3174
3195
  get milliseconds() {
3175
- return getInternalSlotOrThrowForDuration(this)[oe];
3196
+ return getInternalSlotOrThrowForDuration(this)[S];
3176
3197
  }
3177
3198
  get microseconds() {
3178
- return getInternalSlotOrThrowForDuration(this)[ne];
3199
+ return getInternalSlotOrThrowForDuration(this)[y];
3179
3200
  }
3180
3201
  get nanoseconds() {
3181
- return getInternalSlotOrThrowForDuration(this)[re];
3202
+ return getInternalSlotOrThrowForDuration(this)[w];
3182
3203
  }
3183
3204
  get sign() {
3184
3205
  return durationSign(getInternalSlotOrThrowForDuration(this));
@@ -3205,81 +3226,78 @@ var vt = class {
3205
3226
  round(e) {
3206
3227
  const t = getInternalSlotOrThrowForDuration(this), o = getRoundToOptionsObject(e);
3207
3228
  let n = getTemporalUnitValuedOption(o, "largestUnit", void 0);
3208
- const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, P);
3229
+ const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, de);
3209
3230
  let c = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3210
- validateTemporalUnitValue(c, l);
3231
+ validateTemporalUnitValue(c, x);
3211
3232
  const s = void 0 !== c;
3212
- c ??= J;
3213
- const d = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(d, c), u = void 0 !== n;
3214
- if (void 0 !== n && "auto" !== n || (n = m), (!s && !u || n > c) && throwRangeError(De), isDateUnit(c) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(c), !1), a > 1 && n !== c && isDateUnit(c) && throwRangeError(De), r.be) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.be, createZonedDateTimeSlot(addZonedDateTime(r.be, toInternalDurationRecord(t), D), r.be.P, r.be.Y), n, a, c, i), isDateUnit(n) ? H : n));
3233
+ c ??= D;
3234
+ const l = defaultTemporalLargestUnit(t), u = largerOfTwoTemporalUnits(l, c), T = void 0 !== n;
3235
+ if (void 0 !== n && "auto" !== n || (n = u), (!s && !T || n > c) && throwRangeError($), isDateUnit(c) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(c), !1), a > 1 && n !== c && isDateUnit(c) && throwRangeError($), r.be) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.be, createZonedDateTimeSlot(addZonedDateTime(r.be, toInternalDurationRecord(t), _), r.be.P, r.be.Y), n, a, c, i), isDateUnit(n) ? m : n));
3215
3236
  if (r.Pe) {
3216
3237
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
3217
- return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.Pe.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.Pe.Y, r.Pe.o, adjustDateDurationRecord(e.A, o.X), D), o), r.Pe.Y, n, a, c, i), n));
3238
+ return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.Pe.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.Pe.Y, r.Pe.o, adjustDateDurationRecord(e.A, o.X), _), o), r.Pe.Y, n, a, c, i), n));
3218
3239
  }
3219
- (isCalendarUnit(d) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
3220
- const T = toInternalDurationRecordWith24HourDays(t);
3221
- return createTemporalDuration(temporalDurationFromInternal(c === x ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(T.p, a, i)[0]), ye) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(T.p, a, c, i)), n));
3240
+ (isCalendarUnit(l) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
3241
+ const h = toInternalDurationRecordWith24HourDays(t);
3242
+ return createTemporalDuration(temporalDurationFromInternal(c === d ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(h.p, a, i)[0]), ve) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(h.p, a, c, i)), n));
3222
3243
  }
3223
3244
  total(e) {
3224
3245
  const t = getInternalSlotOrThrowForDuration(this);
3225
- void 0 === e && throwTypeError(Ie);
3226
- const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", u);
3227
- if (validateTemporalUnitValue(r, l), n.be) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.U, e.U), o))(n.be, createZonedDateTimeSlot(addZonedDateTime(n.be, toInternalDurationRecord(t), D), n.be.P, n.be.Y), r);
3246
+ void 0 === e && throwTypeError(W);
3247
+ const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", B);
3248
+ if (validateTemporalUnitValue(r, x), n.be) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.U, e.U), o))(n.be, createZonedDateTimeSlot(addZonedDateTime(n.be, toInternalDurationRecord(t), _), n.be.P, n.be.Y), r);
3228
3249
  if (n.Pe) {
3229
3250
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
3230
- return ((e, t, o, n) => compareIsoDateTime(e, t) ? (validateIsoDateTime(e), validateIsoDateTime(t), totalRelativeDuration(differenceISODateTime(e, t, o, n), getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n)) : 0)(combineIsoDateAndTimeRecord(n.Pe.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.Pe.Y, n.Pe.o, adjustDateDurationRecord(e.A, o.X), D), o), n.Pe.Y, r);
3251
+ return ((e, t, o, n) => compareIsoDateTime(e, t) ? (validateIsoDateTime(e), validateIsoDateTime(t), totalRelativeDuration(differenceISODateTime(e, t, o, n), getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n)) : 0)(combineIsoDateAndTimeRecord(n.Pe.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.Pe.Y, n.Pe.o, adjustDateDurationRecord(e.A, o.X), _), o), n.Pe.Y, r);
3231
3252
  }
3232
3253
  return (isCalendarUnit(defaultTemporalLargestUnit(t)) || isCalendarUnit(r)) && throwRangeError(missingField("relativeTo")), totalTimeDuration(toInternalDurationRecordWith24HourDays(t).p, r);
3233
3254
  }
3234
3255
  toString(e = void 0) {
3235
- const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, E), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3236
- validateTemporalUnitValue(a, s), a !== H && a !== q || throwRangeError(disallowedUnit(a));
3256
+ const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, ce), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3257
+ validateTemporalUnitValue(a, V), a !== m && a !== u || throwRangeError(disallowedUnit(a));
3237
3258
  const i = toSecondsStringPrecisionRecord(a, n);
3238
- if (i.ve === J && 1 === i.Me) return temporalDurationToString(t, i.Ee);
3259
+ if (i.Ee === D && 1 === i.Me) return temporalDurationToString(t, i.ve);
3239
3260
  const c = toInternalDurationRecord(t);
3240
- return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(c.A, roundTimeDuration(c.p, i.Me, i.ve, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), B)), i.Ee);
3261
+ return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(c.A, roundTimeDuration(c.p, i.Me, i.Ee, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), T)), i.ve);
3241
3262
  }
3242
3263
  toJSON() {
3243
3264
  return temporalDurationToString(getInternalSlotOrThrowForDuration(this));
3244
3265
  }
3245
3266
  toLocaleString(e = void 0, t = void 0) {
3246
- const o = getInternalSlotOrThrowForDuration(this), n = createNullPrototypeObject();
3247
- return ie.map((e, t) => {
3248
- n[e] = o[t];
3249
- }), new Intl.DurationFormat(e, t).format(n);
3267
+ return new A(e, t).format(durationRecordToDurationLikeObject(getInternalSlotOrThrowForDuration(this)));
3250
3268
  }
3251
3269
  valueOf() {
3252
- throwTypeError(fe);
3270
+ throwTypeError(j);
3253
3271
  }
3254
3272
  };
3255
- defineStringTag(vt.prototype, "Temporal.Duration"), renameFunction(vt, "Duration");
3256
- const Et = {
3257
- [y]: Math.ceil,
3258
- [w]: Math.floor,
3259
- [v]: roundExpand,
3260
- [E]: Math.trunc,
3261
- [M]: roundHalfCeil,
3262
- [b]: roundHalfFloor,
3263
- [P]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
3264
- [R]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
3265
- [N]: roundHalfEven
3266
- }, Mt = {
3267
- [y]: Math.ceil,
3268
- [w]: Math.floor,
3269
- [v]: Math.ceil,
3270
- [E]: Math.floor,
3271
- [M]: roundHalfCeil,
3272
- [b]: roundHalfFloor,
3273
- [P]: roundHalfCeil,
3274
- [R]: roundHalfFloor,
3275
- [N]: roundHalfEven
3276
- }, bt = globalThis.Intl.DateTimeFormat, Pt = /* @__PURE__ */ new WeakMap(), Rt = [
3273
+ defineStringTag(Mt.prototype, "Temporal.Duration"), renameFunction(Mt, "Duration");
3274
+ const bt = {
3275
+ [re]: Math.ceil,
3276
+ [ae]: Math.floor,
3277
+ [ie]: roundExpand,
3278
+ [ce]: Math.trunc,
3279
+ [se]: roundHalfCeil,
3280
+ [le]: roundHalfFloor,
3281
+ [de]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
3282
+ [me]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
3283
+ [ue]: roundHalfEven
3284
+ }, Pt = {
3285
+ [re]: Math.ceil,
3286
+ [ae]: Math.floor,
3287
+ [ie]: Math.ceil,
3288
+ [ce]: Math.floor,
3289
+ [se]: roundHalfCeil,
3290
+ [le]: roundHalfFloor,
3291
+ [de]: roundHalfCeil,
3292
+ [me]: roundHalfFloor,
3293
+ [ue]: roundHalfEven
3294
+ }, Rt = globalThis.Intl.DateTimeFormat, Nt = /* @__PURE__ */ new WeakMap(), Zt = [
3277
3295
  "year",
3278
3296
  "month",
3279
3297
  "day",
3280
3298
  "weekday",
3281
3299
  "dateStyle"
3282
- ], Nt = [
3300
+ ], $t = [
3283
3301
  "hour",
3284
3302
  "minute",
3285
3303
  "second",
@@ -3287,49 +3305,47 @@ const Et = {
3287
3305
  "dayPeriod",
3288
3306
  "timeStyle"
3289
3307
  ];
3290
- var Zt = class {
3291
- ke(e) {
3292
- return formatDateTime(this, e);
3308
+ var Ct = class {
3309
+ Le(e) {
3310
+ return formatDateTime(getInternalSlotOrThrowForDateTimeFormat(this), e);
3293
3311
  }
3294
- }, $t = class {
3312
+ }, Yt = class {
3295
3313
  constructor(e, t) {
3296
- createDateTimeFormat(e, t, l, void 0, this);
3314
+ Nt.set(this, createDateTimeFormat(e, t, x, void 0));
3297
3315
  }
3298
3316
  get format() {
3299
- return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).Le ||= Zt.prototype.ke.bind(this), "name", { value: "" });
3317
+ return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ze ||= Ct.prototype.Le.bind(this), "name", { value: "" });
3300
3318
  }
3301
3319
  formatToParts(e) {
3302
3320
  return ((e, t) => {
3303
- const [o, n] = handleDateTimeValue(getInternalSlotOrThrowForDateTimeFormat(e), t);
3321
+ const [o, n] = handleDateTimeValue(e, t);
3304
3322
  return o.formatToParts(n);
3305
- })(this, e);
3323
+ })(getInternalSlotOrThrowForDateTimeFormat(this), e);
3306
3324
  }
3307
3325
  formatRange(e, t) {
3308
- return void 0 !== e && void 0 !== t || throwTypeError(pe), ((e, t, o) => {
3309
- const n = getInternalSlotOrThrowForDateTimeFormat(e);
3326
+ return void 0 !== e && void 0 !== t || throwTypeError(Y), ((e, t, o) => {
3310
3327
  validateSameTemporalType(t, o);
3311
- const [r, a] = handleDateTimeValue(n, t);
3312
- return r.formatRange(a, handleDateTimeValue(n, o)[1]);
3313
- })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
3328
+ const [n, r] = handleDateTimeValue(e, t);
3329
+ return n.formatRange(r, handleDateTimeValue(e, o)[1]);
3330
+ })(getInternalSlotOrThrowForDateTimeFormat(this), toDateTimeFormattable(e), toDateTimeFormattable(t));
3314
3331
  }
3315
3332
  formatRangeToParts(e, t) {
3316
- return void 0 !== e && void 0 !== t || throwTypeError(pe), ((e, t, o) => {
3317
- const n = getInternalSlotOrThrowForDateTimeFormat(e);
3333
+ return void 0 !== e && void 0 !== t || throwTypeError(Y), ((e, t, o) => {
3318
3334
  validateSameTemporalType(t, o);
3319
- const [r, a] = handleDateTimeValue(n, t);
3320
- return r.formatRangeToParts(a, handleDateTimeValue(n, o)[1]);
3321
- })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
3335
+ const [n, r] = handleDateTimeValue(e, t);
3336
+ return n.formatRangeToParts(r, handleDateTimeValue(e, o)[1]);
3337
+ })(getInternalSlotOrThrowForDateTimeFormat(this), toDateTimeFormattable(e), toDateTimeFormattable(t));
3322
3338
  }
3323
3339
  resolvedOptions() {
3324
3340
  return getInternalSlotOrThrowForDateTimeFormat(this).Re.resolvedOptions();
3325
3341
  }
3326
3342
  };
3327
- const Ct = Object.getOwnPropertyDescriptors(bt), Yt = $t.prototype;
3328
- Ct.prototype.value = Yt;
3329
- for (const e of ["formatRange", "formatRangeToParts"]) bt.prototype[e] || delete Yt[e];
3330
- Object.defineProperties(DateTimeFormat, Ct), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3331
- const Ut = /* @__PURE__ */ new WeakMap();
3332
- var jt = class {
3343
+ const Ut = Object.getOwnPropertyDescriptors(Rt), jt = Yt.prototype;
3344
+ Ut.prototype.value = jt;
3345
+ for (const e of ["formatRange", "formatRangeToParts"]) Rt.prototype[e] || delete jt[e];
3346
+ Object.defineProperties(DateTimeFormat, Ut), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3347
+ const Wt = /* @__PURE__ */ new WeakMap();
3348
+ var At = class {
3333
3349
  constructor(e) {
3334
3350
  createTemporalInstant(validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e))), this);
3335
3351
  }
@@ -3364,43 +3380,41 @@ var jt = class {
3364
3380
  return differenceTemporalInstant(-1, getInternalSlotOrThrowForInstant(this), e, t);
3365
3381
  }
3366
3382
  round(e) {
3367
- const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, P), i = getTemporalUnitValuedOption(o, "smallestUnit", u);
3368
- return validateTemporalUnitValue(i, s), validateTemporalRoundingIncrement(n, a / nanosecondsForTimeUnit(i), !0), createTemporalInstant(roundTemporalInstant(t.U, n, i, r));
3383
+ const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, de), i = getTemporalUnitValuedOption(o, "smallestUnit", B);
3384
+ return validateTemporalUnitValue(i, V), validateTemporalRoundingIncrement(n, a / nanosecondsForTimeUnit(i), !0), createTemporalInstant(roundTemporalInstant(t.U, n, i, r));
3369
3385
  }
3370
3386
  equals(e) {
3371
3387
  return !compareEpochNanoseconds(getInternalSlotOrThrowForInstant(this).U, getInternalSlotOrThrowForInstant(toTemporalInstant$1(e)).U);
3372
3388
  }
3373
3389
  toString(e = void 0) {
3374
- const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, E), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
3375
- validateTemporalUnitValue(a, s), a === H && throwRangeError(invalidField("smallestUnit"));
3376
- const c = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), l = toSecondsStringPrecisionRecord(a, n);
3377
- return temporalInstantToString(roundTemporalInstant(t.U, l.Me, l.ve, r), c, l.Ee);
3390
+ const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, ce), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
3391
+ validateTemporalUnitValue(a, V), a === m && throwRangeError(invalidField("smallestUnit"));
3392
+ const c = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), s = toSecondsStringPrecisionRecord(a, n);
3393
+ return temporalInstantToString(roundTemporalInstant(t.U, s.Me, s.Ee, r), c, s.ve);
3378
3394
  }
3379
3395
  toLocaleString(e = void 0, t = void 0) {
3380
- return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, l), this);
3396
+ return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, x), this);
3381
3397
  }
3382
3398
  toJSON() {
3383
3399
  return temporalInstantToString(getInternalSlotOrThrowForInstant(this).U);
3384
3400
  }
3385
3401
  valueOf() {
3386
- throwTypeError(fe);
3402
+ throwTypeError(j);
3387
3403
  }
3388
3404
  toZonedDateTimeISO(e) {
3389
3405
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).U, toTemporalTimeZoneIdentifier(e), "iso8601");
3390
3406
  }
3391
3407
  };
3392
- defineStringTag(jt.prototype, "Temporal.Instant"), renameFunction(jt, "Instant");
3393
- const Wt = class {
3408
+ defineStringTag(At.prototype, "Temporal.Instant"), renameFunction(At, "Instant");
3409
+ const Lt = class {
3394
3410
  toTemporalInstant() {
3395
3411
  const e = Date.prototype.valueOf.call(this);
3396
3412
  return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
3397
3413
  }
3398
- }.prototype.toTemporalInstant, At = Object.getOwnPropertyDescriptors(globalThis.Intl);
3399
- At.DateTimeFormat.value = DateTimeFormat;
3400
- const Lt = {};
3401
- Object.defineProperties(Lt, At);
3402
- let kt, zt = 0, Vt = -Infinity;
3403
- const xt = {
3414
+ }.prototype.toTemporalInstant, kt = {}, zt = Object.getOwnPropertyDescriptors(globalThis.Intl);
3415
+ zt.DateTimeFormat.value = DateTimeFormat, zt.DurationFormat && (zt.DurationFormat.value = k), Object.defineProperties(kt, zt);
3416
+ let Vt, xt = 0, Ht = -Infinity;
3417
+ const qt = {
3404
3418
  timeZoneId: () => systemTimeZoneIdentifier(),
3405
3419
  instant: () => createTemporalInstant(systemUtcEpochNanoseconds()),
3406
3420
  plainDateTimeISO: (e = void 0) => createTemporalDateTime(systemDateTime(e), "iso8601"),
@@ -3408,17 +3422,17 @@ const xt = {
3408
3422
  plainDateISO: (e = void 0) => createTemporalDate(systemDateTime(e).o, "iso8601"),
3409
3423
  plainTimeISO: (e = void 0) => createTemporalTime(systemDateTime(e).p)
3410
3424
  };
3411
- defineStringTag(xt, "Temporal.Now"), makePropertiesNonEnumerable(xt);
3412
- const Ht = {
3413
- Instant: jt,
3414
- PlainDateTime: Re,
3415
- PlainDate: ut,
3416
- PlainTime: Ze,
3417
- PlainYearMonth: dt,
3418
- PlainMonthDay: st,
3419
- Duration: vt,
3420
- ZonedDateTime: Ee,
3421
- Now: xt
3425
+ defineStringTag(qt, "Temporal.Now"), makePropertiesNonEnumerable(qt);
3426
+ const Bt = {
3427
+ Instant: At,
3428
+ PlainDateTime: Ze,
3429
+ PlainDate: Dt,
3430
+ PlainTime: Ce,
3431
+ PlainYearMonth: ut,
3432
+ PlainMonthDay: dt,
3433
+ Duration: Mt,
3434
+ ZonedDateTime: be,
3435
+ Now: qt
3422
3436
  };
3423
- defineStringTag(Ht, "Temporal"), makePropertiesNonEnumerable(Ht);
3424
- export { defineNonEnumerableProperty as a, Wt as i, setSystemTimeZoneIdCacheTtl as n, Lt as r, Ht as t };
3437
+ defineStringTag(Bt, "Temporal"), makePropertiesNonEnumerable(Bt);
3438
+ export { defineNonEnumerableProperty as a, Lt as i, setSystemTimeZoneIdCacheTtl as n, kt as r, Bt as t };