temporal-polyfill-lite 0.3.6 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,8 +27,7 @@ function toPrimitive(e) {
27
27
  const t = e[Symbol.toPrimitive];
28
28
  if (null != t) {
29
29
  const o = Date.call.call(t, e, "string");
30
- if (!isObject(o)) return o;
31
- throwTypeError("cannot convert value to primitive");
30
+ return isObject(o) && throwTypeError("cannot convert value to primitive"), o;
32
31
  }
33
32
  return Date.prototype[Symbol.toPrimitive].call(e, "string");
34
33
  }
@@ -36,22 +35,22 @@ function toString(e) {
36
35
  return `${e}`;
37
36
  }
38
37
  function toBigInt(e) {
39
- return isObject(e) || "number" == typeof e ? BigInt.asIntN(2 ** 53 - 1, e) : BigInt(e);
38
+ return BigInt.asIntN(2 ** 53 - 1, e);
40
39
  }
41
40
  function toIntegerIfIntegral(e) {
42
- const t = Fe(e);
41
+ const t = Se(e);
43
42
  return Number.isInteger(t) || throwRangeError(invalidNumber(t)), t + 0;
44
43
  }
45
44
  function toIntegerWithTruncation(e) {
46
- const t = Fe(e);
47
- return !isNaN(t) && isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
45
+ const t = Se(e);
46
+ return isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
48
47
  }
49
48
  function toPositiveIntegerWithTruncation(e) {
50
49
  const t = toIntegerWithTruncation(e);
51
50
  return t <= 0 && throwRangeError(invalidNumber(t)), t;
52
51
  }
53
52
  function getOptionsObject(e = createNullPrototypeObject()) {
54
- return isObject(e) || throwTypeError("invalid options object"), e;
53
+ return isObject(e) || throwTypeError(notObject(e)), e;
55
54
  }
56
55
  function getOption(e, t, o, n) {
57
56
  const r = e[t];
@@ -59,7 +58,7 @@ function getOption(e, t, o, n) {
59
58
  const a = toString(r);
60
59
  return o.includes(a) || throwRangeError(invalidField(t)), a;
61
60
  }
62
- function getRoundToOptionsObject(e = throwTypeError(Se)) {
61
+ function getRoundToOptionsObject(e = throwTypeError(Oe)) {
63
62
  return "string" == typeof e ? createNullPrototypeObject({ smallestUnit: e }) : getOptionsObject(e);
64
63
  }
65
64
  function validateString(e) {
@@ -163,11 +162,11 @@ function negateTimeDuration(e) {
163
162
  return normalize(-e[0], -e[1]);
164
163
  }
165
164
  function signTimeDuration(e) {
166
- return ye(e, [0, 0]);
165
+ return ve(e, [0, 0]);
167
166
  }
168
167
  function timeDurationToSubsecondsNumber(e, t, o) {
169
168
  const n = signTimeDuration(e);
170
- return e = absTimeDuration(e), n * Fe(`${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;
169
+ 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
170
  }
172
171
  function roundTimeDurationByDays(e, t, o) {
173
172
  return normalize(roundNumberToIncrement(e[0] + signTimeDuration(e) * (e[1] ? .2 * compare(Math.abs(e[1] / i), .5) + .5 : 0), t, o), 0);
@@ -181,7 +180,7 @@ function interpretISODateTimeOffset(e, t, o, n, r, a, i, l) {
181
180
  if (o === w || o === S && "ignore" == i) return getEpochNanosecondsFor(r, c, a);
182
181
  if (o === F || o === S && "use" == i) return validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(c.o.t, c.o.u, c.o.T, c.p.D, c.p.I, c.p.O, c.p.S, c.p.F, c.p.v - n)));
183
182
  ((e) => {
184
- Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(me);
183
+ Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(de);
185
184
  })(e);
186
185
  const s = getPossibleEpochNanoseconds(r, c);
187
186
  for (const e of s) {
@@ -200,19 +199,19 @@ function toTemporalZonedDateTime(e, t) {
200
199
  }
201
200
  i = getTemporalCalendarIdentifierWithIsoDefault(e);
202
201
  const s = prepareCalendarFields(i, e, [
203
- Dt.t,
204
- Dt.u,
205
- Dt.P,
206
- Dt.T,
207
- Dt.D,
208
- Dt.I,
209
- Dt.O,
210
- Dt.S,
211
- Dt.F,
212
- Dt.v,
213
- Dt.R,
214
- Dt.Z
215
- ], [Dt.Z]);
202
+ ut.t,
203
+ ut.u,
204
+ ut.P,
205
+ ut.T,
206
+ ut.D,
207
+ ut.I,
208
+ ut.O,
209
+ ut.S,
210
+ ut.F,
211
+ ut.v,
212
+ ut.R,
213
+ ut.Z
214
+ ], [ut.Z]);
216
215
  o = s.timeZone, n = s.offset;
217
216
  const d = getOptionsObject(t);
218
217
  r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, h);
@@ -220,8 +219,8 @@ function toTemporalZonedDateTime(e, t) {
220
219
  l = m.o, c = m.p;
221
220
  } else {
222
221
  validateString(e);
223
- const m = parseIsoDateTime(e, [Xe]);
224
- o = toTemporalTimeZoneIdentifier(m.Z.N), n = m.Z.$, s = m.Z.M, i = canonicalizeCalendar(m.U || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
222
+ const m = parseIsoDateTime(e, [Ge]);
223
+ o = toTemporalTimeZoneIdentifier(m.Z.$), n = m.Z.N, s = m.Z.M, i = canonicalizeCalendar(m.U || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
225
224
  const T = getOptionsObject(t);
226
225
  r = getTemporalDisambiguationOption(T), a = getTemporalOffsetOption(T, h), getTemporalOverflowOption(T), l = createIsoDateRecord(m.t, m.u, m.T), c = m.p;
227
226
  }
@@ -229,24 +228,24 @@ function toTemporalZonedDateTime(e, t) {
229
228
  return createZonedDateTimeSlot(interpretISODateTimeOffset(l, c, m, m === S ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
230
229
  }
231
230
  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);
231
+ return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Re[e] && Re[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
233
232
  }
234
233
  function createZonedDateTimeSlot(e, t, o, n) {
235
234
  return {
236
235
  Y: e,
237
236
  Z: t,
238
237
  U: o,
239
- A: n
238
+ W: n
240
239
  };
241
240
  }
242
- function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = G, l = P) {
241
+ function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = _, l = P) {
243
242
  const c = roundTemporalInstant(e.Y, a, i, l), s = epochSeconds(c) === epochSeconds(e.Y) ? getOffsetNanosecondsForZonedDateTimeSlot(e) : getOffsetNanosecondsFor(e.Z, c);
244
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(c, s), "iso8601", t, $)}${r === A ? "" : formatDateTimeUtcOffsetRounded(s)}${n === z ? "" : `[${n === V ? "!" : ""}${e.Z}]`}${formatCalendarAnnotation(e.U, o)}`;
243
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(c, s), "iso8601", t, $)}${r === W ? "" : formatDateTimeUtcOffsetRounded(s)}${n === z ? "" : `[${n === V ? "!" : ""}${e.Z}]`}${formatCalendarAnnotation(e.U, o)}`;
245
244
  }
246
245
  function addZonedDateTime(e, t, o) {
247
- if (0 === dateDurationSign(t.W)) return addInstant(e.Y, t.p);
246
+ if (!dateDurationSign(t.A)) return addInstant(e.Y, t.p);
248
247
  const n = getIsoDateTimeForZonedDateTimeSlot(e);
249
- return addInstant(getEpochNanosecondsFor(e.Z, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.U, n.o, t.W, o), n.p)), g), t.p);
248
+ return addInstant(getEpochNanosecondsFor(e.Z, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.U, n.o, t.A, o), n.p)), g), t.p);
250
249
  }
251
250
  function differenceZonedDateTime(e, t, o) {
252
251
  const n = compareEpochNanoseconds(e.Y, t.Y);
@@ -254,19 +253,19 @@ function differenceZonedDateTime(e, t, o) {
254
253
  const r = getIsoDateTimeForZonedDateTimeSlot(e), a = getIsoDateTimeForZonedDateTimeSlot(t);
255
254
  if (!compareIsoDate(r.o, a.o)) return combineDateAndTimeDuration(zeroDateDuration(), timeDurationFromEpochNanosecondsDifference(t.Y, e.Y));
256
255
  let i, l = differenceTime(r.p, a.p);
257
- for (let o = ft(l) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), l = timeDurationFromEpochNanosecondsDifference(t.Y, getEpochNanosecondsFor(e.Z, i, g)), ft(l) === n); o++);
256
+ for (let o = gt(l) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), l = timeDurationFromEpochNanosecondsDifference(t.Y, getEpochNanosecondsFor(e.Z, i, g)), gt(l) === n); o++);
258
257
  return combineDateAndTimeDuration(calendarDateUntil(e.U, r.o, i.o, largerOfTwoTemporalUnits(o, L)), l);
259
258
  }
260
259
  function differenceZonedDateTimeWithRounding(e, t, o, n, r, a) {
261
260
  if (!isDateUnit(o)) return differenceInstant(e.Y, t.Y, n, r, a);
262
261
  const i = differenceZonedDateTime(e, t, o);
263
- return r === G && 1 === n ? i : roundRelativeDuration(i, e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o, n, r, a);
262
+ return r === _ && 1 === n ? i : roundRelativeDuration(i, e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o, n, r, a);
264
263
  }
265
264
  function differenceTemporalZonedDateTime(e, t, o, n) {
266
265
  const r = toTemporalZonedDateTime(o);
267
- calendarEquals(t.U, r.U) || throwRangeError(De);
268
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], G, B);
269
- return isDateUnit(a.V) ? (timeZoneEquals(t.Z, r.Z) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.Y, r.Y) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.V, a.H, a.L, a.B), B), e)) : createTemporalDuration(createTemporalDurationSlot([
266
+ calendarEquals(t.U, r.U) || throwRangeError(ue);
267
+ const a = getDifferenceSettings(e, getOptionsObject(n), d, [], _, q);
268
+ return isDateUnit(a.V) ? (timeZoneEquals(t.Z, r.Z) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.Y, r.Y) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.V, a.H, a.L, a.q), q), e)) : createTemporalDuration(createTemporalDurationSlot([
270
269
  0,
271
270
  0,
272
271
  0,
@@ -277,29 +276,29 @@ function differenceTemporalZonedDateTime(e, t, o, n) {
277
276
  0,
278
277
  0,
279
278
  0
280
- ]))) : createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.H, a.L, a.B), a.V), e));
279
+ ]))) : createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.H, a.L, a.q), a.V), e));
281
280
  }
282
281
  function addDurationToZonedDateTime(e, t, o, n) {
283
282
  return createTemporalZonedDateTime(addZonedDateTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.Z, t.U);
284
283
  }
285
284
  function getOffsetNanosecondsForZonedDateTimeSlot(e) {
286
- return e.A ??= getOffsetNanosecondsFor(e.Z, e.Y);
285
+ return e.W ??= getOffsetNanosecondsFor(e.Z, e.Y);
287
286
  }
288
287
  function getIsoDateTimeForZonedDateTimeSlot(e) {
289
288
  return getIsoDateTimeFromOffsetNanoseconds(e.Y, getOffsetNanosecondsForZonedDateTimeSlot(e));
290
289
  }
291
- function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Pe.prototype)) {
292
- return Ee.set(t, e), t;
290
+ function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Ee.prototype)) {
291
+ return ye.set(t, e), t;
293
292
  }
294
293
  function calendarIsoToDateForZonedDateTimeSlot(e) {
295
294
  return calendarIsoToDate(e.U, getIsoDateTimeForZonedDateTimeSlot(e).o);
296
295
  }
297
296
  function getInternalSlotForZonedDateTime(e) {
298
- return Ee.get(e);
297
+ return ye.get(e);
299
298
  }
300
299
  function getInternalSlotOrThrowForZonedDateTime(e) {
301
300
  const t = getInternalSlotForZonedDateTime(e);
302
- return t || throwTypeError(pe), t;
301
+ return t || throwTypeError(De), t;
303
302
  }
304
303
  function isZonedDateTime(e) {
305
304
  return !!getInternalSlotForZonedDateTime(e);
@@ -312,7 +311,7 @@ function clampEpochSecond(e) {
312
311
  }
313
312
  function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
314
313
  if ("UTC" === t) return 0;
315
- const r = clampEpochSecond(o), a = be[t] ||= (() => {
314
+ const r = clampEpochSecond(o), a = Re[t] ||= (() => {
316
315
  const e = /* @__PURE__ */ new Map();
317
316
  return {
318
317
  C(t) {
@@ -321,7 +320,7 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
321
320
  return e.delete(t), e.set(t, o), o;
322
321
  }
323
322
  },
324
- q(t, o) {
323
+ B(t, o) {
325
324
  e.size >= 5e3 && e.delete(e.keys().next().value), e.set(t, o);
326
325
  }
327
326
  };
@@ -335,10 +334,10 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
335
334
  "minute",
336
335
  "second"
337
336
  ].map((e) => toIntegerIfIntegral(l.find((t) => t.type === e).value))) - 1e3 * r) * e;
338
- return n || a.q(r, c), c;
337
+ return n || a.B(r, c), c;
339
338
  }
340
339
  function getFormatterForTimeZone(e) {
341
- return Re[e] ||= new Ft("en-u-hc-h23", {
340
+ return Pe[e] ||= new St("en-u-hc-h23", {
342
341
  timeZone: e,
343
342
  year: "numeric",
344
343
  month: "numeric",
@@ -389,16 +388,16 @@ function toTemporalTimeZoneIdentifier(e) {
389
388
  const t = ((e) => {
390
389
  if (isTimeZoneIdentifier(e)) return parseTimeZoneIdentifier(e);
391
390
  const t = parseIsoDateTime(e, [
391
+ Ge,
392
392
  Xe,
393
393
  Qe,
394
394
  et,
395
395
  tt,
396
- ot,
397
- nt
398
- ]).Z, o = t.N || t.M && "UTC" || t.$;
396
+ ot
397
+ ]).Z, o = t.$ || t.M && "UTC" || t.N;
399
398
  return o || throwRangeError(invalidTimeZone(e)), parseTimeZoneIdentifier(o);
400
399
  })(e);
401
- return t.J ? getAvailableNamedTimeZoneIdentifier(t.J) : formatOffsetTimeZoneIdentifier(t.G);
400
+ return t.J ? getAvailableNamedTimeZoneIdentifier(t.J) : formatOffsetTimeZoneIdentifier(t._);
402
401
  }
403
402
  function getOffsetNanosecondsFor(e, t) {
404
403
  return isOffsetTimeZoneIdentifier(e) ? parseDateTimeUtcOffset(e) : getNamedTimeZoneOffsetNanosecondsForEpochSecond(e, epochSeconds(t));
@@ -420,7 +419,7 @@ function timeZoneEquals(e, t) {
420
419
  return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone;
421
420
  }
422
421
  function parseTimeZoneIdentifier(e) {
423
- return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { G: parseDateTimeUtcOffset(e) / t } : { J: e });
422
+ return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { _: parseDateTimeUtcOffset(e) / t } : { J: e });
424
423
  }
425
424
  function isOffsetTimeZoneIdentifier(e) {
426
425
  return /^[+-]/.test(e);
@@ -444,14 +443,14 @@ function combineIsoDateAndTimeRecord(e, t) {
444
443
  };
445
444
  }
446
445
  function interpretTemporalDateTimeFields(e, t, o) {
447
- return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Dt.D], t[Dt.I], t[Dt.O], t[Dt.S], t[Dt.F], t[Dt.v], o));
446
+ return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[ut.D], t[ut.I], t[ut.O], t[ut.S], t[ut.F], t[ut.v], o));
448
447
  }
449
448
  function toTemporalDateTime(e, t) {
450
449
  if (isObject(e)) {
451
450
  if (isPlainDateTime(e)) {
452
451
  getTemporalOverflowOption(getOptionsObject(t));
453
452
  const o = getInternalSlotOrThrowForPlainDateTime(e);
454
- return createTemporalDateTime(o._, o.U);
453
+ return createTemporalDateTime(o.G, o.U);
455
454
  }
456
455
  if (isZonedDateTime(e)) {
457
456
  const o = getInternalSlotOrThrowForZonedDateTime(e);
@@ -464,29 +463,29 @@ function toTemporalDateTime(e, t) {
464
463
  }
465
464
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
466
465
  return createTemporalDateTime(interpretTemporalDateTimeFields(o, prepareCalendarFields(o, e, [
467
- Dt.t,
468
- Dt.u,
469
- Dt.P,
470
- Dt.T,
471
- Dt.D,
472
- Dt.I,
473
- Dt.O,
474
- Dt.S,
475
- Dt.F,
476
- Dt.v
466
+ ut.t,
467
+ ut.u,
468
+ ut.P,
469
+ ut.T,
470
+ ut.D,
471
+ ut.I,
472
+ ut.O,
473
+ ut.S,
474
+ ut.F,
475
+ ut.v
477
476
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
478
477
  }
479
478
  validateString(e);
480
- const o = parseIsoDateTime(e, [Qe]), n = canonicalizeCalendar(o.U || "iso8601");
479
+ const o = parseIsoDateTime(e, [Xe]), n = canonicalizeCalendar(o.U || "iso8601");
481
480
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(o.t, o.u, o.T), o.p || midnightTimeRecord()), n);
482
481
  }
483
482
  function balanceIsoDateTime(e, t, o, n, r, a, i, l, c) {
484
483
  const s = balanceTime(n, r, a, i, l, c);
485
484
  return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), s.K), s);
486
485
  }
487
- function createTemporalDateTime(e, t, o = Object.create(Ne.prototype)) {
488
- return Ze.set(o, {
489
- _: validateIsoDateTime(e),
486
+ function createTemporalDateTime(e, t, o = Object.create(Ze.prototype)) {
487
+ return be.set(o, {
488
+ G: validateIsoDateTime(e),
490
489
  U: t
491
490
  }), o;
492
491
  }
@@ -502,7 +501,7 @@ function roundIsoDateTime(e, t, o, n) {
502
501
  }
503
502
  function differenceISODateTime(e, t, o, n) {
504
503
  let r = differenceTime(e.p, t.p);
505
- const a = ft(r);
504
+ const a = gt(r);
506
505
  let i = t.o;
507
506
  a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
508
507
  const l = largerOfTwoTemporalUnits(L, n), c = calendarDateUntil(o, e.o, i, l);
@@ -512,13 +511,13 @@ function differencePlainDateTimeWithRounding(e, t, o, n, r, a, i) {
512
511
  if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
513
512
  validateIsoDateTime(e), validateIsoDateTime(t);
514
513
  const l = differenceISODateTime(e, t, o, n);
515
- return a === G && 1 === r ? l : roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
514
+ return a === _ && 1 === r ? l : roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
516
515
  }
517
516
  function differenceTemporalPlainDateTime(e, t, o, n) {
518
517
  const r = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(o));
519
- calendarEquals(t.U, r.U) || throwRangeError(De);
520
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], G, L);
521
- return compareIsoDateTime(t._, r._) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t._, r._, t.U, a.V, a.H, a.L, a.B), a.V), e)) : createTemporalDuration(createTemporalDurationSlot([
518
+ calendarEquals(t.U, r.U) || throwRangeError(ue);
519
+ const a = getDifferenceSettings(e, getOptionsObject(n), d, [], _, L);
520
+ return compareIsoDateTime(t.G, r.G) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.G, r.G, t.U, a.V, a.H, a.L, a.q), a.V), e)) : createTemporalDuration(createTemporalDurationSlot([
522
521
  0,
523
522
  0,
524
523
  0,
@@ -532,21 +531,21 @@ function differenceTemporalPlainDateTime(e, t, o, n) {
532
531
  ]));
533
532
  }
534
533
  function addDurationToDateTime(e, t, o, n) {
535
- const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), l = addTime(t._.p, i.p);
536
- return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.U, t._.o, adjustDateDurationRecord(i.W, l.K), a), l), t.U);
534
+ const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), l = addTime(t.G.p, i.p);
535
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.U, t.G.o, adjustDateDurationRecord(i.A, l.K), a), l), t.U);
537
536
  }
538
537
  function validateIsoDateTime(e) {
539
538
  return ((e) => {
540
539
  const t = isoDateRecordToEpochDays(e.o);
541
540
  return Math.abs(t) <= 1e8 || -100000001 === t && !!compareTimeRecord(e.p, midnightTimeRecord());
542
- })(e) || throwRangeError(me), e;
541
+ })(e) || throwRangeError(de), e;
543
542
  }
544
543
  function getInternalSlotForPlainDateTime(e) {
545
- return Ze.get(e);
544
+ return be.get(e);
546
545
  }
547
546
  function getInternalSlotOrThrowForPlainDateTime(e) {
548
547
  const t = getInternalSlotForPlainDateTime(e);
549
- return t || throwTypeError(pe), t;
548
+ return t || throwTypeError(De), t;
550
549
  }
551
550
  function isPlainDateTime(e) {
552
551
  return !!getInternalSlotForPlainDateTime(e);
@@ -569,16 +568,16 @@ function differenceTime(e, t) {
569
568
  return timeDurationFromComponents(t.D - e.D, t.I - e.I, t.O - e.O, t.S - e.S, t.F - e.F, t.v - e.v);
570
569
  }
571
570
  function toTemporalTime(e, t) {
572
- if (isObject(e)) return isPlainTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainTime(e)) : isPlainDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainDateTime(e)._.p) : isZonedDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(e)).p) : regulateTime(...toTemporalTimeRecord(e), getTemporalOverflowOption(getOptionsObject(t)));
571
+ if (isObject(e)) return isPlainTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainTime(e)) : isPlainDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainDateTime(e).G.p) : isZonedDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(e)).p) : regulateTime(...toTemporalTimeRecord(e), getTemporalOverflowOption(getOptionsObject(t)));
573
572
  validateString(e);
574
- const o = parseIsoDateTime(e, [tt]);
573
+ const o = parseIsoDateTime(e, [et]);
575
574
  return getTemporalOverflowOption(getOptionsObject(t)), o.p;
576
575
  }
577
576
  function toTimeRecordOrMidnight(e) {
578
577
  return void 0 === e ? midnightTimeRecord() : toTemporalTime(e);
579
578
  }
580
579
  function regulateTime(e, t, o, n, r, a, i) {
581
- 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(de), createTimeRecord(e, t, o, n, r, a));
580
+ 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));
582
581
  }
583
582
  function isValidTime(e, t, o, n, r, a) {
584
583
  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);
@@ -594,23 +593,23 @@ function balanceTime(e, t, o, n, r, a) {
594
593
  K: divFloor(e, 24)
595
594
  };
596
595
  }
597
- function createTemporalTime(e, t = Object.create(Ue.prototype)) {
598
- return Me.set(t, e), t;
596
+ function createTemporalTime(e, t = Object.create(Me.prototype)) {
597
+ return Ne.set(t, e), t;
599
598
  }
600
599
  function toTemporalTimeRecord(e, t = !1) {
601
600
  let o = !1;
602
601
  const n = [
603
- Dt.D,
604
- Dt.F,
605
- Dt.S,
606
- Dt.I,
607
- Dt.v,
608
- Dt.O
602
+ ut.D,
603
+ ut.F,
604
+ ut.S,
605
+ ut.I,
606
+ ut.v,
607
+ ut.O
609
608
  ].map((n) => {
610
609
  const r = e[n];
611
610
  return void 0 !== r ? (o = !0, toIntegerWithTruncation(r)) : t ? void 0 : 0;
612
611
  });
613
- return o || throwTypeError(Ie), [
612
+ return o || throwTypeError(fe), [
614
613
  0,
615
614
  3,
616
615
  5,
@@ -634,18 +633,18 @@ function roundTime(e, n, r, a) {
634
633
  return balanceTime(0, 0, 0, 0, 0, divFloor(l, i) * i + roundNumberToIncrement(modFloor(l, i), n * nanosecondsForTimeUnit(r), a));
635
634
  }
636
635
  function differenceTemporalPlainTime(e, t, o, n) {
637
- const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), s, [], G, B);
638
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.H, a.L, a.B)), a.V), e));
636
+ const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), s, [], _, q);
637
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.H, a.L, a.q)), a.V), e));
639
638
  }
640
639
  function addDurationToTime(e, t, o) {
641
640
  return createTemporalTime(addTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)).p));
642
641
  }
643
642
  function getInternalSlotOrThrowForPlainTime(e) {
644
- const t = Me.get(e);
645
- return t || throwTypeError(pe), t;
643
+ const t = Ne.get(e);
644
+ return t || throwTypeError(De), t;
646
645
  }
647
646
  function isPlainTime(e) {
648
- return Me.has(e);
647
+ return Ne.has(e);
649
648
  }
650
649
  function optionalChain(e) {
651
650
  return e.reduceRight((e, t) => `${t}(?:${e})?`);
@@ -657,55 +656,50 @@ function createRegExp(e) {
657
656
  return RegExp(`^(?:${e})$`);
658
657
  }
659
658
  function isAmbiguousTemporalTimeString(e) {
660
- return rt.some((t) => {
659
+ return nt.some((t) => {
661
660
  const o = e.match(t);
662
661
  return o && isSemanticallyValid(o.groups);
663
662
  });
664
663
  }
665
664
  function isTimeZoneIdentifier(e) {
666
- return at.test(e);
667
- }
668
- function parseAnnotationsAndGetCalendar(e) {
669
- let t, o = !1;
670
- for (const n of e.matchAll(Ke)) {
671
- const e = !!n[1];
672
- "u-ca" === n[2] ? t ? (e || o) && throwRangeError(se) : (t = n[3], e && (o = !0)) : e && throwRangeError(se);
673
- }
674
- return t;
675
- }
676
- function getTimeRecordFromMatchedGroups(e) {
677
- const t = (e.g || "").padEnd(9, "0");
678
- return createTimeRecord(Fe(e.d || 0), Fe(e.e || 0), clamp(Fe(e.f || 0), 0, 59), Fe(t.slice(0, 3)), Fe(t.slice(3, 6)), Fe(t.slice(6)));
665
+ return rt.test(e);
679
666
  }
680
667
  function isSemanticallyValid(e) {
681
- return "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Fe(e.a), Fe(e.b), Fe(e.c))) && (!e.n || isValidIsoDate(1972, Fe(e.m), Fe(e.n)));
668
+ return "-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)));
682
669
  }
683
670
  function parseIsoDateTime(e, t) {
684
671
  for (const o of t) {
685
672
  const t = e.match(o);
686
- if (!t || !isSemanticallyValid(t.groups) || o === tt && isAmbiguousTemporalTimeString(e)) continue;
687
- const n = t.groups, r = parseAnnotationsAndGetCalendar(n.k || "");
688
- return n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(se), {
689
- t: mapUnlessUndefined(n.a || n.l, Fe),
690
- u: Fe(n.b || n.m || 1),
691
- T: Fe(n.c || n.n || 1),
692
- p: n.d ? getTimeRecordFromMatchedGroups(n) : void 0,
673
+ if (!t || !isSemanticallyValid(t.groups) || o === et && isAmbiguousTemporalTimeString(e)) continue;
674
+ const n = t.groups;
675
+ let r;
676
+ if (n.k) {
677
+ let t = !1;
678
+ 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));
679
+ }
680
+ n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(parseError(e));
681
+ const a = (n.g || "").padEnd(9, "0");
682
+ return {
683
+ t: mapUnlessUndefined(n.a || n.l, Se),
684
+ u: Se(n.b || n.m || 1),
685
+ T: Se(n.c || n.n || 1),
686
+ 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,
693
687
  Z: {
694
688
  M: !!n.i,
695
- $: n.h,
696
- N: n.j
689
+ N: n.h,
690
+ $: n.j
697
691
  },
698
692
  U: r
699
693
  };
700
694
  }
701
- throwRangeError(se);
695
+ throwRangeError(parseError(e));
702
696
  }
703
697
  function parseDateTimeUtcOffset(e) {
704
- const o = e.match(lt);
705
- return o || throwRangeError(se), Fe(`${o[1]}1`) * (36e11 * Fe(o[2]) + Fe(o[4] || "") * t + 1e9 * Fe(o[5] || "") + Fe((o[6] || "").padEnd(9, "0")) + 0);
698
+ const o = e.match(it);
699
+ 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);
706
700
  }
707
701
  function hasUtcOffsetSubMinuteParts(e) {
708
- return !!e.match(lt)[5];
702
+ return !!e.match(it)[5];
709
703
  }
710
704
  function toTemporalMonthDay(e, t) {
711
705
  if (isObject(e)) {
@@ -713,18 +707,18 @@ function toTemporalMonthDay(e, t) {
713
707
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay(o.o, o.U);
714
708
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
715
709
  return createTemporalMonthDay(calendarMonthDayFromFields(n, prepareCalendarFields(n, e, [
716
- Dt.t,
717
- Dt.u,
718
- Dt.P,
719
- Dt.T
710
+ ut.t,
711
+ ut.u,
712
+ ut.P,
713
+ ut.T
720
714
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
721
715
  }
722
716
  validateString(e);
723
- const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.U || "iso8601");
717
+ const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.U || "iso8601");
724
718
  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)), T), p), n);
725
719
  }
726
- function createTemporalMonthDay(e, t, o = Object.create(st.prototype)) {
727
- return ct.set(o, {
720
+ function createTemporalMonthDay(e, t, o = Object.create(ct.prototype)) {
721
+ return lt.set(o, {
728
722
  o: validateIsoDate(e),
729
723
  U: t
730
724
  }), o;
@@ -733,11 +727,11 @@ function temporalMonthDayToString(e, t) {
733
727
  return `${t === j || t === C || "iso8601" !== e.U ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.U, t)}`;
734
728
  }
735
729
  function getInternalSlotForPlainMonthDay(e) {
736
- return ct.get(e);
730
+ return lt.get(e);
737
731
  }
738
732
  function getInternalSlotOrThrowForPlainMonthDay(e) {
739
733
  const t = getInternalSlotForPlainMonthDay(e);
740
- return t || throwTypeError(pe), t;
734
+ return t || throwTypeError(De), t;
741
735
  }
742
736
  function isPlainMonthDay(e) {
743
737
  return !!getInternalSlotForPlainMonthDay(e);
@@ -748,13 +742,13 @@ function toTemporalYearMonth(e, t) {
748
742
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(o.o, o.U);
749
743
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
750
744
  return createTemporalYearMonth(calendarYearMonthFromFields(n, prepareCalendarFields(n, e, [
751
- Dt.t,
752
- Dt.u,
753
- Dt.P
745
+ ut.t,
746
+ ut.u,
747
+ ut.P
754
748
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
755
749
  }
756
750
  validateString(e);
757
- const o = parseIsoDateTime(e, [nt]), n = canonicalizeCalendar(o.U || "iso8601");
751
+ const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.U || "iso8601");
758
752
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), m), p), n);
759
753
  }
760
754
  function balanceIsoYearMonth(e, t) {
@@ -763,8 +757,8 @@ function balanceIsoYearMonth(e, t) {
763
757
  u: modFloor(t - 1, 12) + 1
764
758
  };
765
759
  }
766
- function createTemporalYearMonth(e, t, o = Object.create(mt.prototype)) {
767
- return dt.set(o, {
760
+ function createTemporalYearMonth(e, t, o = Object.create(dt.prototype)) {
761
+ return st.set(o, {
768
762
  o: validateIsoYearMonth(e),
769
763
  U: t
770
764
  }), o;
@@ -774,7 +768,7 @@ function temporalYearMonthToString(e, t) {
774
768
  }
775
769
  function differenceTemporalPlainYearMonth(e, t, o, n) {
776
770
  const r = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(o));
777
- calendarEquals(t.U, r.U) || throwRangeError(De);
771
+ calendarEquals(t.U, r.U) || throwRangeError(ue);
778
772
  const a = getDifferenceSettings(e, getOptionsObject(n), c, [x, L], H, k);
779
773
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
780
774
  0,
@@ -790,34 +784,34 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
790
784
  ]));
791
785
  const i = calendarDateFromFields(t.U, createNullPrototypeObject({
792
786
  ...isoDateToFields(t.U, t.o, m),
793
- [Dt.T]: 1
787
+ [ut.T]: 1
794
788
  }), p), l = calendarDateFromFields(t.U, createNullPrototypeObject({
795
789
  ...isoDateToFields(t.U, r.o, m),
796
- [Dt.T]: 1
790
+ [ut.T]: 1
797
791
  }), p);
798
792
  let s = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.U, i, l, a.V), 0, 0), createTimeDurationFromSeconds(0));
799
793
  if (a.L !== H || 1 !== a.H) {
800
794
  const e = combineIsoDateAndTimeRecord(i, midnightTimeRecord());
801
- s = roundRelativeDuration(s, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(l, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.B);
795
+ s = roundRelativeDuration(s, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(l, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.q);
802
796
  }
803
797
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(s, L), e));
804
798
  }
805
799
  function addDurationToYearMonth(e, t, o, n) {
806
800
  const r = toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), a = getTemporalOverflowOption(getOptionsObject(n));
807
- return (r.W.X || r.W.K || signTimeDuration(r.p)) && throwRangeError("duration can contain only years and months"), createTemporalYearMonth(calendarYearMonthFromFields(t.U, isoDateToFields(t.U, calendarDateAdd(t.U, calendarDateFromFields(t.U, createNullPrototypeObject({
801
+ return (r.A.X || r.A.K || signTimeDuration(r.p)) && throwRangeError("duration can contain only years and months"), createTemporalYearMonth(calendarYearMonthFromFields(t.U, isoDateToFields(t.U, calendarDateAdd(t.U, calendarDateFromFields(t.U, createNullPrototypeObject({
808
802
  ...isoDateToFields(t.U, t.o, m),
809
- [Dt.T]: 1
810
- }), p), r.W, a), m), a), t.U);
803
+ [ut.T]: 1
804
+ }), p), r.A, a), m), a), t.U);
811
805
  }
812
806
  function validateIsoYearMonth(e) {
813
- return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(me), e;
807
+ return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(de), e;
814
808
  }
815
809
  function getInternalSlotForPlainYearMonth(e) {
816
- return dt.get(e);
810
+ return st.get(e);
817
811
  }
818
812
  function getInternalSlotOrThrowForPlainYearMonth(e) {
819
813
  const t = getInternalSlotForPlainYearMonth(e);
820
- return t || throwTypeError(pe), t;
814
+ return t || throwTypeError(De), t;
821
815
  }
822
816
  function isPlainYearMonth(e) {
823
817
  return !!getInternalSlotForPlainYearMonth(e);
@@ -829,8 +823,8 @@ function createIsoDateRecord(e, t, o) {
829
823
  T: o
830
824
  };
831
825
  }
832
- function createTemporalDate(e, t, o = Object.create(ut.prototype)) {
833
- return Tt.set(o, {
826
+ function createTemporalDate(e, t, o = Object.create(Tt.prototype)) {
827
+ return mt.set(o, {
834
828
  o: validateIsoDate(e),
835
829
  U: t
836
830
  }), o;
@@ -850,22 +844,22 @@ function toTemporalDate(e, t) {
850
844
  if (isPlainDateTime(e)) {
851
845
  getTemporalOverflowOption(getOptionsObject(t));
852
846
  const o = getInternalSlotOrThrowForPlainDateTime(e);
853
- return createTemporalDate(o._.o, o.U);
847
+ return createTemporalDate(o.G.o, o.U);
854
848
  }
855
849
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
856
850
  return createTemporalDate(calendarDateFromFields(o, prepareCalendarFields(o, e, [
857
- Dt.t,
858
- Dt.u,
859
- Dt.P,
860
- Dt.T
851
+ ut.t,
852
+ ut.u,
853
+ ut.P,
854
+ ut.T
861
855
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
862
856
  }
863
857
  validateString(e);
864
- const o = parseIsoDateTime(e, [Qe]), n = canonicalizeCalendar(o.U || "iso8601");
858
+ const o = parseIsoDateTime(e, [Xe]), n = canonicalizeCalendar(o.U || "iso8601");
865
859
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDate(createIsoDateRecord(o.t, o.u, o.T), n);
866
860
  }
867
861
  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(me), createIsoDateRecord(e, t, o));
862
+ 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));
869
863
  }
870
864
  function isValidIsoDate(e, t, o) {
871
865
  return isWithin(t, 1, 12) && isWithin(o, 1, isoDaysInMonth(e, t));
@@ -884,7 +878,7 @@ function compareIsoDate(e, t) {
884
878
  }
885
879
  function differenceTemporalPlainDate(e, t, o, n) {
886
880
  const r = getInternalSlotOrThrowForPlainDate(toTemporalDate(o));
887
- calendarEquals(t.U, r.U) || throwRangeError(De);
881
+ calendarEquals(t.U, r.U) || throwRangeError(ue);
888
882
  const a = getDifferenceSettings(e, getOptionsObject(n), c, [], L, L);
889
883
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
890
884
  0,
@@ -901,22 +895,22 @@ function differenceTemporalPlainDate(e, t, o, n) {
901
895
  let i = combineDateAndTimeDuration(calendarDateUntil(t.U, t.o, r.o, a.V), createTimeDurationFromSeconds(0));
902
896
  if (a.L !== L || 1 !== a.H) {
903
897
  const e = combineIsoDateAndTimeRecord(t.o, midnightTimeRecord());
904
- i = roundRelativeDuration(i, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.B);
898
+ i = roundRelativeDuration(i, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.q);
905
899
  }
906
900
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, L), e));
907
901
  }
908
902
  function addDurationToDate(e, t, o, n) {
909
903
  return createTemporalDate(calendarDateAdd(t.U, t.o, ((e) => {
910
904
  const t = toInternalDurationRecordWith24HourDays(e);
911
- return createDateDurationRecord(t.W.ee, t.W.te, t.W.X, t.p[0]);
905
+ return createDateDurationRecord(t.A.ee, t.A.te, t.A.X, t.p[0]);
912
906
  })(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.U);
913
907
  }
914
908
  function getInternalSlotForPlainDate(e) {
915
- return Tt.get(e);
909
+ return mt.get(e);
916
910
  }
917
911
  function getInternalSlotOrThrowForPlainDate(e) {
918
912
  const t = getInternalSlotForPlainDate(e);
919
- return t || throwTypeError(pe), t;
913
+ return t || throwTypeError(De), t;
920
914
  }
921
915
  function isPlainDate(e) {
922
916
  return !!getInternalSlotForPlainDate(e);
@@ -925,7 +919,7 @@ function validateIsoDate(e) {
925
919
  return validateIsoDateTime(combineIsoDateAndTimeRecord(e, createTimeRecord(12, 0, 0, 0, 0, 0))), e;
926
920
  }
927
921
  function canonicalizeCalendar(e) {
928
- return "iso8601" !== (e = asciiLowerCase(e)) && "gregory" !== e && throwRangeError(((e) => `calendar not supported in this polyfill: ${e}`)(e)), e;
922
+ return "iso8601" !== (e = asciiLowerCase(e)) && "gregory" !== e && throwRangeError(((e) => `unsupported calendar: ${e}`)(e)), e;
929
923
  }
930
924
  function calendarDateAdd(e, t, o, n) {
931
925
  return ((e, t, o) => {
@@ -946,7 +940,7 @@ function calendarDateUntil(e, t, o, n) {
946
940
  })(t, o, n);
947
941
  }
948
942
  function calendarDateToIso(e, t, o) {
949
- return ((e, t) => regulateIsoDate(e[Dt.t], e[Dt.u], e[Dt.T], t))(t, o);
943
+ return ((e, t) => regulateIsoDate(e[ut.t], e[ut.u], e[ut.T], t))(t, o);
950
944
  }
951
945
  function calendarSupportsEra(e) {
952
946
  return "gregory" === e;
@@ -958,7 +952,7 @@ function parseMonthCode(e) {
958
952
  const t = toPrimitive(e);
959
953
  validateString(t);
960
954
  const o = t.match(/M(\d\d)(L?)/);
961
- return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Fe(o[1]), !!o[2]];
955
+ return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Se(o[1]), !!o[2]];
962
956
  }
963
957
  function createMonthCode(e, t = !1) {
964
958
  return `M${toZeroPaddedDecimalString(e, 2)}${t ? "L" : ""}`;
@@ -969,16 +963,16 @@ function prepareCalendarFields(e, t, o, n) {
969
963
  let a = !1;
970
964
  for (const e of o) {
971
965
  const o = t[e];
972
- void 0 !== o ? (a = !0, r[e] = ht[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = ht[e][1]);
966
+ void 0 !== o ? (a = !0, r[e] = pt[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = pt[e][1]);
973
967
  }
974
- return n || a || throwTypeError(Ie), r;
968
+ return n || a || throwTypeError(fe), r;
975
969
  }
976
970
  function calendarMergeFields(e, t, o) {
977
971
  const n = ((e, t) => {
978
972
  const o = [];
979
- return void 0 !== t[Dt.u] && o.push(Dt.P), void 0 !== t[Dt.P] && o.push(Dt.u), !calendarSupportsEra(e) || void 0 === t[Dt.oe] && void 0 === t[Dt.ne] && void 0 === t[Dt.t] || o.push(Dt.oe, Dt.ne, Dt.t), o;
973
+ return void 0 !== t[ut.u] && o.push(ut.P), void 0 !== t[ut.P] && o.push(ut.u), !calendarSupportsEra(e) || void 0 === t[ut.oe] && void 0 === t[ut.ne] && void 0 === t[ut.t] || o.push(ut.oe, ut.ne, ut.t), o;
980
974
  })(e, o), r = createEmptyCalendarFieldsRecord();
981
- for (const e of pt) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
975
+ for (const e of Dt) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
982
976
  return r;
983
977
  }
984
978
  function toTemporalCalendarIdentifier(e) {
@@ -986,15 +980,15 @@ function toTemporalCalendarIdentifier(e) {
986
980
  return t ? t.U : (validateString(e), canonicalizeCalendar(((e) => {
987
981
  try {
988
982
  return parseIsoDateTime(e, [
983
+ Ge,
989
984
  Xe,
990
985
  Qe,
991
986
  et,
992
987
  tt,
993
- ot,
994
- nt
988
+ ot
995
989
  ]).U || "iso8601";
996
990
  } catch {
997
- return it.test(e) || throwRangeError(se), e;
991
+ return at.test(e) || throwRangeError(parseError(e)), e;
998
992
  }
999
993
  })(e)));
1000
994
  }
@@ -1011,7 +1005,7 @@ function calendarYearMonthFromFields(e, t, o) {
1011
1005
  function calendarMonthDayFromFields(e, t, o) {
1012
1006
  return calendarResolveFields(e, t, T), (function(e, t, o) {
1013
1007
  return ((e, t, o) => {
1014
- const n = regulateIsoDate(e[Dt.t] ?? 1972, e[Dt.u], e[Dt.T], t);
1008
+ const n = regulateIsoDate(e[ut.t] ?? 1972, e[ut.u], e[ut.T], t);
1015
1009
  return o || validateIsoDate(n), createIsoDateRecord(1972, n.u, n.T);
1016
1010
  })(t, o, "iso8601" === e);
1017
1011
  })(e, t, o);
@@ -1079,20 +1073,20 @@ function calendarExtraFields(e, t) {
1079
1073
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1080
1074
  }
1081
1075
  function isoResolveFields(e, t) {
1082
- t !== T && void 0 === e[Dt.t] && throwTypeError(missingField(Dt.t)), t !== m && void 0 === e[Dt.T] && throwTypeError(missingField(Dt.T)), void 0 === e[Dt.P] && void 0 === e[Dt.u] && throwTypeError(missingField("month, monthCode"));
1083
- const o = mapUnlessUndefined(e[Dt.P], parseMonthCode);
1084
- o && ((o[0] > 12 || o[1] || void 0 !== e[Dt.u] && o[0] !== e[Dt.u]) && throwRangeError(ge), e[Dt.u] = o[0]);
1076
+ t !== T && void 0 === e[ut.t] && throwTypeError(missingField(ut.t)), t !== m && void 0 === e[ut.T] && throwTypeError(missingField(ut.T)), void 0 === e[ut.P] && void 0 === e[ut.u] && throwTypeError(missingField("month, monthCode"));
1077
+ const o = mapUnlessUndefined(e[ut.P], parseMonthCode);
1078
+ o && ((o[0] > 12 || o[1] || void 0 !== e[ut.u] && o[0] !== e[ut.u]) && throwRangeError(he), e[ut.u] = o[0]);
1085
1079
  }
1086
1080
  function calendarResolveFields(e, t, o = c) {
1087
1081
  "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = c) {
1088
- const n = t[Dt.oe], r = t[Dt.ne];
1089
- let a = t[Dt.t];
1090
- const i = t[Dt.P], l = t[Dt.u], s = t[Dt.T];
1082
+ const n = t[ut.oe], r = t[ut.ne];
1083
+ let a = t[ut.t];
1084
+ const i = t[ut.P], l = t[ut.u], s = t[ut.T];
1091
1085
  if (o === T && void 0 !== i && void 0 === l || void 0 !== a || void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), void 0 === n != (void 0 === r) && throwTypeError(), o !== m && void 0 === s && throwTypeError(missingField("day")), l === i && throwTypeError(missingField("month, monthCode")), void 0 !== r) {
1092
1086
  const e = ((e, t, o) => "ce" === canonicalizeEraInCalendar(0, t) ? o : 1 - o)(0, canonicalizeEraInCalendar(0, n), r);
1093
- void 0 !== a && a !== e && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Dt.t] = e;
1087
+ void 0 !== a && a !== e && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[ut.t] = e;
1094
1088
  }
1095
- t[Dt.oe] = t[Dt.ne] = void 0, isoResolveFields(t, o);
1089
+ t[ut.oe] = t[ut.ne] = void 0, isoResolveFields(t, o);
1096
1090
  })(0, t, o);
1097
1091
  }
1098
1092
  function createEmptyCalendarFieldsRecord() {
@@ -1102,7 +1096,7 @@ function zeroDateDuration() {
1102
1096
  return createDateDurationRecord(0, 0, 0, 0);
1103
1097
  }
1104
1098
  function toInternalDurationRecord(e) {
1105
- return combineDateAndTimeDuration(createDateDurationRecord(e[_], e[K], e[X], e[Q]), timeDurationFromComponents(e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1099
+ return combineDateAndTimeDuration(createDateDurationRecord(e[K], e[G], e[X], e[Q]), timeDurationFromComponents(e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1106
1100
  }
1107
1101
  function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1108
1102
  return combineDateAndTimeDuration(createDateDurationRecord(e, t, o, 0), add24HourDaysToTimeDuration(timeDurationFromComponents(...r), n));
@@ -1110,10 +1104,10 @@ function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1110
1104
  function temporalDurationFromInternal(e, t) {
1111
1105
  const [o, ...n] = balanceTimeDuration(e.p, t);
1112
1106
  return createTemporalDurationSlot([
1113
- e.W.ee,
1114
- e.W.te,
1115
- e.W.X,
1116
- e.W.K + o,
1107
+ e.A.ee,
1108
+ e.A.te,
1109
+ e.A.X,
1110
+ e.A.K + o,
1117
1111
  ...n
1118
1112
  ]);
1119
1113
  }
@@ -1130,14 +1124,14 @@ function adjustDateDurationRecord(e, t, o = e.X, n = e.te) {
1130
1124
  }
1131
1125
  function combineDateAndTimeDuration(e, t) {
1132
1126
  return {
1133
- W: e,
1127
+ A: e,
1134
1128
  p: t
1135
1129
  };
1136
1130
  }
1137
1131
  function toTemporalDuration(e) {
1138
- return t = e, gt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1132
+ return t = e, ht.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1139
1133
  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)?)?$/);
1140
- t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(se);
1134
+ t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(parseError(e));
1141
1135
  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")));
1142
1136
  return applySignToDurationSlot(createTemporalDurationSlot([
1143
1137
  toIntegerWithTruncation(t[2] || ""),
@@ -1155,19 +1149,19 @@ function toTemporalDuration(e) {
1155
1149
  var t;
1156
1150
  }
1157
1151
  function durationSign(e) {
1158
- return sign(e.find((e) => 0 !== e) || 0);
1152
+ return sign(e.find((e) => e) || 0);
1159
1153
  }
1160
1154
  function dateDurationSign(e) {
1161
1155
  return sign(e.ee || e.te || e.X || e.K);
1162
1156
  }
1163
1157
  function internalDurationSign(e) {
1164
- return dateDurationSign(e.W) || ft(e.p);
1158
+ return dateDurationSign(e.A) || gt(e.p);
1165
1159
  }
1166
1160
  function validateDuration(...e) {
1167
- e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), e.every((e) => Math.abs(e) < 1e25) && Math.abs(e[_]) < 2 ** 32 && Math.abs(e[K]) < 2 ** 32 && Math.abs(e[X]) < 2 ** 32 || throwRangeError(Te), validateTimeDurationRange(timeDurationFromComponents(24 * e[Q] + e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1161
+ e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), e.every((e) => Math.abs(e) < 1e25) && Math.abs(e[K]) < 2 ** 32 && Math.abs(e[G]) < 2 ** 32 && Math.abs(e[X]) < 2 ** 32 || throwRangeError(me), validateTimeDurationRange(timeDurationFromComponents(24 * e[Q] + e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1168
1162
  }
1169
1163
  function defaultTemporalLargestUnit(e) {
1170
- return (e.findIndex((e) => 0 !== e) + 10) % 10;
1164
+ return (e.findIndex((e) => e) + 10) % 10;
1171
1165
  }
1172
1166
  function toTemporalPartialDurationRecord(e) {
1173
1167
  isObject(e) || throwTypeError(notObject(e));
@@ -1183,7 +1177,7 @@ function toTemporalPartialDurationRecord(e) {
1183
1177
  2,
1184
1178
  0
1185
1179
  ].map((t) => mapUnlessUndefined(e[le[t]], toIntegerIfIntegral));
1186
- return t.every((e) => void 0 === e) && throwTypeError(Ie), [
1180
+ return t.every((e) => void 0 === e) && throwTypeError(fe), [
1187
1181
  9,
1188
1182
  5,
1189
1183
  8,
@@ -1199,8 +1193,8 @@ function toTemporalPartialDurationRecord(e) {
1199
1193
  function createTemporalDurationSlot(e) {
1200
1194
  return validateDuration(...e), e;
1201
1195
  }
1202
- function createTemporalDuration(e, t = Object.create(It.prototype)) {
1203
- return gt.set(t, e), t;
1196
+ function createTemporalDuration(e, t = Object.create(ft.prototype)) {
1197
+ return ht.set(t, e), t;
1204
1198
  }
1205
1199
  function timeDurationFromComponents(e, t, o, n, l, c) {
1206
1200
  return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromSeconds(3600 * e + 60 * t + o), normalize(divTrunc(m = n, r), m % r * 1e6)), (d = l, normalize(Math.round((d - d % a) / a), d % a * 1e3))), (s = c, normalize(Math.round((s - s % i) / i), s % i)));
@@ -1227,17 +1221,16 @@ function totalTimeDuration(e, t) {
1227
1221
  }
1228
1222
  function computeNudgeWindow(e, t, o, n, r, a, i, l, c) {
1229
1223
  let s, d, m, T, u;
1230
- if (l === k) s = roundNumberToIncrement(t.W.ee, i, P) + (c ? i * e : 0), d = s + i * e, m = createDateDurationRecord(s, 0, 0, 0), T = createDateDurationRecord(d, 0, 0, 0);
1231
- else if (l === H) s = roundNumberToIncrement(t.W.te, i, P) + (c ? i * e : 0), d = s + i * e, m = adjustDateDurationRecord(t.W, 0, 0, s), T = adjustDateDurationRecord(t.W, 0, 0, d);
1224
+ if (l === k) s = roundNumberToIncrement(t.A.ee, i, P) + (c ? i * e : 0), d = s + i * e, m = createDateDurationRecord(s, 0, 0, 0), T = createDateDurationRecord(d, 0, 0, 0);
1225
+ else if (l === H) s = roundNumberToIncrement(t.A.te, i, P) + (c ? i * e : 0), d = s + i * e, m = adjustDateDurationRecord(t.A, 0, 0, s), T = adjustDateDurationRecord(t.A, 0, 0, d);
1232
1226
  else if (l === x) {
1233
- const o = calendarDateAdd(0, n.o, adjustDateDurationRecord(t.W, 0, 0), p);
1234
- s = roundNumberToIncrement(t.W.X + calendarDateUntil(0, o, addDaysToIsoDate(o, t.W.K), x).X, i, P), d = s + i * e, m = adjustDateDurationRecord(t.W, 0, s), T = adjustDateDurationRecord(t.W, 0, d);
1235
- } else s = roundNumberToIncrement(t.W.K, i, P), d = s + i * e, m = adjustDateDurationRecord(t.W, s), T = adjustDateDurationRecord(t.W, d);
1236
- if (0 === s) u = o;
1237
- else {
1227
+ const o = calendarDateAdd(0, n.o, adjustDateDurationRecord(t.A, 0, 0), p);
1228
+ s = roundNumberToIncrement(t.A.X + calendarDateUntil(0, o, addDaysToIsoDate(o, t.A.K), x).X, i, P), d = s + i * e, m = adjustDateDurationRecord(t.A, 0, s), T = adjustDateDurationRecord(t.A, 0, d);
1229
+ } else s = roundNumberToIncrement(t.A.K, i, P), d = s + i * e, m = adjustDateDurationRecord(t.A, s), T = adjustDateDurationRecord(t.A, d);
1230
+ if (dateDurationSign(m)) {
1238
1231
  const e = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, m, p), n.p);
1239
1232
  u = r ? getEpochNanosecondsFor(r, e, g) : getUtcEpochNanoseconds(e);
1240
- }
1233
+ } else u = o;
1241
1234
  const D = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, T, p), n.p);
1242
1235
  return {
1243
1236
  Te: s,
@@ -1253,7 +1246,7 @@ function nudgeToCalendarUnit(e, t, o, n, r, a, i, l, c, s) {
1253
1246
  compareEpochNanoseconds(m.pe, n) * compareEpochNanoseconds(m.he, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, 0, l, c, !0), d = !0);
1254
1247
  const T = differenceEpochNanoseconds(m.pe, n), u = differenceEpochNanoseconds(m.pe, m.he);
1255
1248
  let D = m.ge, p = m.pe;
1256
- return roundNumberToIncrement(m.Te + ((e, t, o) => signTimeDuration(e) ? ye(e, t) ? ye(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(T, u, e) * l * e, l, s) === m.De && (d = !0, D = m.fe, p = m.he), {
1249
+ return roundNumberToIncrement(m.Te + ((e, t, o) => signTimeDuration(e) ? ve(e, t) ? ve(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(T, u, e) * l * e, l, s) === m.De && (d = !0, D = m.fe, p = m.he), {
1257
1250
  Ie: {
1258
1251
  Oe: combineDateAndTimeDuration(D, createTimeDurationFromSeconds(0)),
1259
1252
  Se: p,
@@ -1264,21 +1257,21 @@ function nudgeToCalendarUnit(e, t, o, n, r, a, i, l, c, s) {
1264
1257
  }
1265
1258
  function roundRelativeDuration(e, t, o, n, r, a, i, l, c, s) {
1266
1259
  const d = internalDurationSign(e) || 1, m = isCalendarUnit(c) || r && c === L ? nudgeToCalendarUnit(d, e, t, o, n, r, 0, l, c, s).Ie : r ? ((e, t, o, n, r, a, i, l) => {
1267
- const c = calendarDateAdd(0, o.o, t.W, p), s = combineIsoDateAndTimeRecord(c, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(c, e), o.p), m = getEpochNanosecondsFor(n, s, g), T = getEpochNanosecondsFor(n, d, g), u = timeDurationFromEpochNanosecondsDifference(T, m), D = nanosecondsForTimeUnit(i);
1260
+ const c = calendarDateAdd(0, o.o, t.A, p), s = combineIsoDateAndTimeRecord(c, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(c, e), o.p), m = getEpochNanosecondsFor(n, s, g), T = getEpochNanosecondsFor(n, d, g), u = timeDurationFromEpochNanosecondsDifference(T, m), D = nanosecondsForTimeUnit(i);
1268
1261
  let h = roundTimeDurationToIncrement(t.p, a * D, l);
1269
1262
  const f = addTimeDuration(h, negateTimeDuration(u));
1270
1263
  let I, O = !1, S = 0;
1271
- return ft(f) !== -e ? (O = !0, S = e, h = roundTimeDurationToIncrement(f, a * D, l), I = addTimeDurationToEpochNanoseconds(T, h)) : I = addTimeDurationToEpochNanoseconds(T, h), {
1272
- Oe: combineDateAndTimeDuration(adjustDateDurationRecord(t.W, t.W.K + S), h),
1264
+ return gt(f) !== -e ? (O = !0, S = e, h = roundTimeDurationToIncrement(f, a * D, l), I = addTimeDurationToEpochNanoseconds(T, h)) : I = addTimeDurationToEpochNanoseconds(T, h), {
1265
+ Oe: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.K + S), h),
1273
1266
  Se: I,
1274
1267
  Fe: O
1275
1268
  };
1276
1269
  })(d, e, n, r, 0, l, c, s) : (function(e, t, o, n, r, a) {
1277
- const i = add24HourDaysToTimeDuration(e.p, e.W.K), l = r === L ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), c = l[0], [s, d] = isDateUnit(o) ? [c, addTimeDuration(l, timeDurationFromComponents(24 * -c, 0, 0, 0, 0, 0))] : [0, l];
1270
+ const i = add24HourDaysToTimeDuration(e.p, e.A.K), l = r === L ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), c = l[0], [s, d] = isDateUnit(o) ? [c, addTimeDuration(l, timeDurationFromComponents(24 * -c, 0, 0, 0, 0, 0))] : [0, l];
1278
1271
  return {
1279
- Oe: combineDateAndTimeDuration(adjustDateDurationRecord(e.W, s), d),
1272
+ Oe: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, s), d),
1280
1273
  Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(l, negateTimeDuration(i))),
1281
- Fe: sign(c - i[0]) === ft(i)
1274
+ Fe: sign(c - i[0]) === gt(i)
1282
1275
  };
1283
1276
  })(e, o, i, l, c, s);
1284
1277
  return m.Fe && c !== x ? ((e, t, o, n, r, a, i, l) => {
@@ -1286,16 +1279,16 @@ function roundRelativeDuration(e, t, o, n, r, a, i, l, c, s) {
1286
1279
  const c = i;
1287
1280
  let s;
1288
1281
  for (let a = l - 1; a >= c; a--) if (a !== X || c === X) {
1289
- s = a === _ ? createDateDurationRecord(t.W.ee + e, 0, 0, 0) : a === K ? adjustDateDurationRecord(t.W, 0, 0, t.W.te + e) : adjustDateDurationRecord(t.W, 0, t.W.X + e);
1282
+ s = a === K ? createDateDurationRecord(t.A.ee + e, 0, 0, 0) : a === G ? adjustDateDurationRecord(t.A, 0, 0, t.A.te + e) : adjustDateDurationRecord(t.A, 0, t.A.X + e);
1290
1283
  const i = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, s, p), n.p);
1291
- if (ft(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, i, "compatible") : getUtcEpochNanoseconds(i), o)) === -e) break;
1284
+ if (gt(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, i, "compatible") : getUtcEpochNanoseconds(i), o)) === -e) break;
1292
1285
  t = combineDateAndTimeDuration(s, createTimeDurationFromSeconds(0));
1293
1286
  }
1294
1287
  return t;
1295
1288
  })(d, m.Oe, m.Se, n, r, 0, i, largerOfTwoTemporalUnits(c, L)) : m.Oe;
1296
1289
  }
1297
1290
  function totalRelativeDuration(e, t, o, n, r, a, i) {
1298
- return isCalendarUnit(i) || r && i === L ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, 0, 1, i, P).we : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.W.K), i);
1291
+ return isCalendarUnit(i) || r && i === L ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, 0, 1, i, P).we : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.A.K), i);
1299
1292
  }
1300
1293
  function temporalDurationToString(e, t) {
1301
1294
  const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[oe], e[ne], e[re], e[ae]), [, , , r, a, i, l] = balanceTimeDuration(n, J), [c, s, d, m, T, u] = [
@@ -1305,7 +1298,7 @@ function temporalDurationToString(e, t) {
1305
1298
  "D",
1306
1299
  "H",
1307
1300
  "M"
1308
- ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${T}${u}${ft(n) || defaultTemporalLargestUnit(e) >= J || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + l, t)}S` : ""}`;
1301
+ ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${T}${u}${gt(n) || defaultTemporalLargestUnit(e) >= J || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + l, t)}S` : ""}`;
1309
1302
  return `${o < 0 ? "-" : ""}P${c}${s}${d}${m}${D && `T${D}`}`;
1310
1303
  }
1311
1304
  function addDurations(e, t, o) {
@@ -1313,14 +1306,14 @@ function addDurations(e, t, o) {
1313
1306
  return isCalendarUnit(r) && throwRangeError(durationWithDateUnit(r)), createTemporalDuration(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), addTimeDuration(toInternalDurationRecordWith24HourDays(t).p, toInternalDurationRecordWith24HourDays(n).p)), r));
1314
1307
  }
1315
1308
  function getInternalSlotOrThrowForDuration(e) {
1316
- const t = gt.get(e);
1317
- return t || throwTypeError(pe), t;
1309
+ const t = ht.get(e);
1310
+ return t || throwTypeError(De), t;
1318
1311
  }
1319
1312
  function applySignToDurationSlot(e, t) {
1320
1313
  return createTemporalDurationSlot(e.map((e) => e * t + 0));
1321
1314
  }
1322
1315
  function validateTimeDurationRange(e) {
1323
- return ((e) => ye(absTimeDuration(e), createTimeDurationFromSeconds(2 ** 53)) < 0)(e) || throwRangeError(Te), e;
1316
+ return ((e) => ve(absTimeDuration(e), createTimeDurationFromSeconds(2 ** 53)) < 0)(e) || throwRangeError(me), e;
1324
1317
  }
1325
1318
  function balanceTimeDuration(e, t) {
1326
1319
  const o = clamp(t, 3, 9);
@@ -1401,19 +1394,18 @@ function getTemporalShowCalendarNameOption(e) {
1401
1394
  ], U);
1402
1395
  }
1403
1396
  function validateTemporalRoundingIncrement(e, t, o) {
1404
- (e > (o ? t : t - 1) || t % e !== 0) && throwRangeError(invalidField("roundingIncrement"));
1397
+ (e > (o ? t : t - 1) || t % e) && throwRangeError(invalidField("roundingIncrement"));
1405
1398
  }
1406
1399
  function getTemporalFractionalSecondDigitsOption(e) {
1407
1400
  const t = "fractionalSecondDigits", o = e[t];
1408
- if (void 0 === o) return;
1409
- if ("number" != typeof o) return void ("auto" !== toString(o) && throwRangeError(invalidField(t)));
1410
- !isNaN(o) && isFinite(o) || throwRangeError(invalidField(t));
1411
- const n = Math.floor(o);
1412
- return isWithin(n, 0, 9) || throwRangeError(invalidField(t)), n;
1401
+ if (void 0 !== o) {
1402
+ if ("number" == typeof o) return isWithin(Math.floor(o), 0, 9) || throwRangeError(invalidField(t)), 0 | o;
1403
+ "auto" !== toString(o) && throwRangeError(invalidField(t));
1404
+ }
1413
1405
  }
1414
1406
  function toSecondsStringPrecisionRecord(e, t) {
1415
1407
  return e ? {
1416
- ve: e === q ? D : 3 * (e - 6),
1408
+ ve: e === B ? D : 3 * (e - 6),
1417
1409
  ye: e,
1418
1410
  Ee: 1
1419
1411
  } : {
@@ -1443,27 +1435,27 @@ function getTemporalRelativeToOption(e) {
1443
1435
  if (isZonedDateTime(t)) return createNullPrototypeObject({ Pe: getInternalSlotOrThrowForZonedDateTime(t) });
1444
1436
  if (isPlainDate(t)) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForPlainDate(t) });
1445
1437
  const e = getInternalSlotForPlainDateTime(t);
1446
- if (e) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForPlainDate(createTemporalDate(e._.o, e.U)) });
1438
+ if (e) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.G.o, e.U)) });
1447
1439
  r = getTemporalCalendarIdentifierWithIsoDefault(t);
1448
1440
  const l = prepareCalendarFields(r, t, [
1449
- Dt.t,
1450
- Dt.u,
1451
- Dt.P,
1452
- Dt.T,
1453
- Dt.D,
1454
- Dt.I,
1455
- Dt.O,
1456
- Dt.S,
1457
- Dt.F,
1458
- Dt.v,
1459
- Dt.R,
1460
- Dt.Z
1441
+ ut.t,
1442
+ ut.u,
1443
+ ut.P,
1444
+ ut.T,
1445
+ ut.D,
1446
+ ut.I,
1447
+ ut.O,
1448
+ ut.S,
1449
+ ut.F,
1450
+ ut.v,
1451
+ ut.R,
1452
+ ut.Z
1461
1453
  ], []), s = interpretTemporalDateTimeFields(r, l, p);
1462
1454
  a = s.o, i = s.p, o = l.timeZone, n = l.offset, c = n ? S : w;
1463
1455
  } else {
1464
1456
  validateString(t);
1465
- const e = parseIsoDateTime(t, [Xe, Qe]);
1466
- n = e.Z.$, e.Z.N ? (o = toTemporalTimeZoneIdentifier(e.Z.N), c = e.Z.M ? F : n ? S : w, l = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.U || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
1457
+ const e = parseIsoDateTime(t, [Ge, Xe]);
1458
+ n = e.Z.N, e.Z.$ ? (o = toTemporalTimeZoneIdentifier(e.Z.$), c = e.Z.M ? F : n ? S : w, l = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.U || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
1467
1459
  }
1468
1460
  return createNullPrototypeObject(o ? { Pe: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, c, c === S ? parseDateTimeUtcOffset(n) : 0, o, g, O, l), o, r)) } : { Re: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
1469
1461
  }
@@ -1488,13 +1480,13 @@ function validatePartialTemporalObject(e) {
1488
1480
  }
1489
1481
  function formatFractionalSeconds(e, t) {
1490
1482
  const o = toZeroPaddedDecimalString(e, 9);
1491
- return void 0 === t ? 0 === e ? "" : `.${o.replace(/0*$/, "")}` : 0 === t ? "" : `.${o.slice(0, t)}`;
1483
+ return void 0 === t ? e ? `.${o.replace(/0*$/, "")}` : "" : t ? `.${o.slice(0, t)}` : "";
1492
1484
  }
1493
1485
  function formatTimeString(e, t, o, n, r) {
1494
1486
  return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === D ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
1495
1487
  }
1496
1488
  function roundNumberToIncrement(e, t, o) {
1497
- return Ot[o](e / t) * t;
1489
+ return It[o](e / t) * t;
1498
1490
  }
1499
1491
  function getRoundingModeOption(e, t) {
1500
1492
  return getOption(e, "roundingMode", [
@@ -1516,18 +1508,18 @@ function getRoundingIncrementOption(e) {
1516
1508
  function isoDateToFields(e, t, o) {
1517
1509
  const n = calendarIsoToDate(e, t);
1518
1510
  return createNullPrototypeObject({
1519
- [Dt.t]: o === T ? void 0 : n.t,
1520
- [Dt.P]: n.P,
1521
- [Dt.T]: o === m ? void 0 : n.T
1511
+ [ut.t]: o === T ? void 0 : n.t,
1512
+ [ut.P]: n.P,
1513
+ [ut.T]: o === m ? void 0 : n.T
1522
1514
  });
1523
1515
  }
1524
1516
  function getDifferenceSettings(e, t, o, n, r, a) {
1525
1517
  let i = getTemporalUnitValuedOption(t, "largestUnit", void 0) ?? "auto";
1526
1518
  const l = getRoundingIncrementOption(t), c = getRoundingModeOption(t, P), s = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
1527
- return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(s, o), n.includes(s) && throwRangeError(disallowedUnit(s)), "auto" === i && (i = largerOfTwoTemporalUnits(a, s)), i > s && throwRangeError(he), isDateUnit(s) || validateTemporalRoundingIncrement(l, maximumTemporalDurationRoundingIncrement(s), !1), {
1519
+ return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(s, o), n.includes(s) && throwRangeError(disallowedUnit(s)), "auto" === i && (i = largerOfTwoTemporalUnits(a, s)), i > s && throwRangeError(pe), isDateUnit(s) || validateTemporalRoundingIncrement(l, maximumTemporalDurationRoundingIncrement(s), !1), {
1528
1520
  L: s,
1529
1521
  V: i,
1530
- B: -1 === e ? negateRoundingMode(c) : c,
1522
+ q: -1 === e ? negateRoundingMode(c) : c,
1531
1523
  H: l
1532
1524
  };
1533
1525
  }
@@ -1545,17 +1537,17 @@ function epochDaysToIsoDate(e) {
1545
1537
  function isoDateTimeToFields(e, t) {
1546
1538
  return createNullPrototypeObject({
1547
1539
  ...isoDateToFields(e, t.o, c),
1548
- [Dt.D]: t.p.D,
1549
- [Dt.I]: t.p.I,
1550
- [Dt.O]: t.p.O,
1551
- [Dt.S]: t.p.S,
1552
- [Dt.F]: t.p.F,
1553
- [Dt.v]: t.p.v
1540
+ [ut.D]: t.p.D,
1541
+ [ut.I]: t.p.I,
1542
+ [ut.O]: t.p.O,
1543
+ [ut.S]: t.p.S,
1544
+ [ut.F]: t.p.F,
1545
+ [ut.v]: t.p.v
1554
1546
  });
1555
1547
  }
1556
1548
  function getInternalSlotOrThrowForDateTimeFormat(e) {
1557
- const t = wt.get(e);
1558
- return t || throwTypeError(pe), t;
1549
+ const t = Ft.get(e);
1550
+ return t || throwTypeError(De), t;
1559
1551
  }
1560
1552
  function formatDateTime(e, t) {
1561
1553
  const [o, n] = handleDateTimeValue(getInternalSlotOrThrowForDateTimeFormat(e), t);
@@ -1569,19 +1561,19 @@ function dateStyleToMonthStyle(e) {
1569
1561
  }
1570
1562
  function amendOptionsForPlainDate(e) {
1571
1563
  const t = createNullPrototypeObject(e);
1572
- return hasAnyOptions(e, vt) || (hasAnyOptions(e, yt) && throwTypeError(ue), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...yt, "timeZoneName"]), t.timeZone = "UTC", t;
1564
+ return hasAnyOptions(e, wt) || (hasAnyOptions(e, vt) && throwTypeError(Te), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...vt, "timeZoneName"]), t.timeZone = "UTC", t;
1573
1565
  }
1574
1566
  function amendOptionsForPlainTime(e) {
1575
1567
  const t = createNullPrototypeObject(e);
1576
- return hasAnyOptions(e, yt) || (hasAnyOptions(e, vt) && throwTypeError(ue), 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, [
1577
- ...vt,
1568
+ return hasAnyOptions(e, vt) || (hasAnyOptions(e, wt) && throwTypeError(Te), 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, [
1569
+ ...wt,
1578
1570
  "era",
1579
1571
  "timeZoneName"
1580
1572
  ]), t.timeZone = "UTC", t;
1581
1573
  }
1582
1574
  function amendOptionsForPlainDateTime(e) {
1583
1575
  const t = createNullPrototypeObject(e);
1584
- 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, [...vt, ...yt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
1576
+ 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, [...wt, ...vt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
1585
1577
  }
1586
1578
  function amendOptionsForPlainYearMonth(e) {
1587
1579
  const t = createNullPrototypeObject(e);
@@ -1589,8 +1581,8 @@ function amendOptionsForPlainYearMonth(e) {
1589
1581
  "year",
1590
1582
  "month",
1591
1583
  "dateStyle"
1592
- ]) || (hasAnyOptions(e, [...vt, ...yt]) && throwTypeError(ue), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
1593
- ...yt,
1584
+ ]) || (hasAnyOptions(e, [...wt, ...vt]) && throwTypeError(Te), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
1585
+ ...vt,
1594
1586
  "day",
1595
1587
  "weekday",
1596
1588
  "timeZoneName"
@@ -1602,8 +1594,8 @@ function amendOptionsForPlainMonthDay(e) {
1602
1594
  "month",
1603
1595
  "day",
1604
1596
  "dateStyle"
1605
- ]) || (hasAnyOptions(e, [...vt, ...yt]) && throwTypeError(ue), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
1606
- ...yt,
1597
+ ]) || (hasAnyOptions(e, [...wt, ...vt]) && throwTypeError(Te), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
1598
+ ...vt,
1607
1599
  "era",
1608
1600
  "year",
1609
1601
  "weekday",
@@ -1612,26 +1604,26 @@ function amendOptionsForPlainMonthDay(e) {
1612
1604
  }
1613
1605
  function amendOptionsForInstant(e) {
1614
1606
  const t = createNullPrototypeObject(e);
1615
- return hasAnyOptions(e, [...vt, ...yt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
1607
+ return hasAnyOptions(e, [...wt, ...vt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
1616
1608
  }
1617
1609
  function hasAnyOptions(e, t) {
1618
1610
  return t.some((t) => void 0 !== e[t]);
1619
1611
  }
1620
- function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create(Pt.prototype)) {
1621
- null === t && throwTypeError(ue);
1612
+ function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create(Et.prototype)) {
1613
+ null === t && throwTypeError(Te);
1622
1614
  const a = createNullPrototypeObject();
1623
- let i = new Ft(e, new Proxy(Object(t), { get(e, t) {
1624
- const o = e[t];
1625
- return "timeZone" === t && void 0 !== n ? (void 0 !== o && throwTypeError("disallowed field: timeZone"), a[t] = n) : void 0 === o ? o : a[t] = "hour12" === t ? ((e) => !!e)(o) : "fractionalSecondDigits" === t ? Fe(o) : toString(o);
1615
+ let i = new St(e, new Proxy({}, { get(e, o) {
1616
+ const r = t[o];
1617
+ 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 ? Se(r) : toString(r);
1626
1618
  } }));
1627
- return (o === c && a.timeStyle || o === s && a.dateStyle) && throwTypeError(ue), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
1619
+ return (o === c && a.timeStyle || o === s && a.dateStyle) && throwTypeError(Te), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
1620
+ ...wt,
1628
1621
  ...vt,
1629
- ...yt,
1630
1622
  "timeZoneName"
1631
- ]) || (a.timeZoneName = "short", i = new Ft(i.resolvedOptions().locale, a)), wt.set(r, createNullPrototypeObject({
1623
+ ]) || (a.timeZoneName = "short", i = new St(i.resolvedOptions().locale, a)), Ft.set(r, createNullPrototypeObject({
1632
1624
  be: i,
1633
1625
  Ze: a,
1634
- Ne: i.resolvedOptions().locale
1626
+ $e: i.resolvedOptions().locale
1635
1627
  })), r;
1636
1628
  }
1637
1629
  function validateSameTemporalType(e, t) {
@@ -1646,17 +1638,17 @@ function validateSameTemporalType(e, t) {
1646
1638
  ].some((o) => o(e) !== o(t)) && throwTypeError("Temporal type mismatch");
1647
1639
  }
1648
1640
  function toDateTimeFormattable(e) {
1649
- return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Fe(e);
1641
+ return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Se(e);
1650
1642
  }
1651
1643
  function handleDateTimeValue(e, t) {
1652
1644
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
1653
- return isPlainTime(t) ? [e.$e ||= new Ft(e.Ne, amendOptionsForPlainTime(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.U !== e.Ze.calendar && "iso8601" !== o.U && throwRangeError(De), [e.Me ||= new Ft(e.Ne, amendOptionsForPlainDate(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.U !== e.Ze.calendar && "iso8601" !== n.U && throwRangeError(De), [e.Ue ||= new Ft(e.Ne, amendOptionsForPlainDateTime(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(n._))]) : r ? (r.U !== e.Ze.calendar && throwRangeError(De), [e.je ||= new Ft(e.Ne, amendOptionsForPlainYearMonth(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.U !== e.Ze.calendar && throwRangeError(De), [e.Ce ||= new Ft(e.Ne, amendOptionsForPlainMonthDay(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.Ye ||= new Ft(e.Ne, amendOptionsForInstant(e.Ze)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).Y)] : (isZonedDateTime(t) && throwTypeError(fe), [e.be, t]);
1645
+ return isPlainTime(t) ? [e.Ne ||= new St(e.$e, amendOptionsForPlainTime(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.U !== e.Ze.calendar && "iso8601" !== o.U && throwRangeError(ue), [e.Me ||= new St(e.$e, amendOptionsForPlainDate(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.U !== e.Ze.calendar && "iso8601" !== n.U && throwRangeError(ue), [e.Ue ||= new St(e.$e, amendOptionsForPlainDateTime(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(n.G))]) : r ? (r.U !== e.Ze.calendar && throwRangeError(ue), [e.je ||= new St(e.$e, amendOptionsForPlainYearMonth(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.U !== e.Ze.calendar && throwRangeError(ue), [e.Ce ||= new St(e.$e, amendOptionsForPlainMonthDay(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.Ye ||= new St(e.$e, amendOptionsForInstant(e.Ze)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).Y)] : (isZonedDateTime(t) && throwTypeError(ge), [e.be, t]);
1654
1646
  }
1655
1647
  function DateTimeFormat(e, t) {
1656
- return new Pt(e, t);
1648
+ return new Et(e, t);
1657
1649
  }
1658
- function createTemporalInstant(e, t = Object.create(Nt.prototype)) {
1659
- return Zt.set(t, { Y: e }), t;
1650
+ function createTemporalInstant(e, t = Object.create(Zt.prototype)) {
1651
+ return bt.set(t, { Y: e }), t;
1660
1652
  }
1661
1653
  function toTemporalInstant$1(e) {
1662
1654
  if (isObject(e)) {
@@ -1665,7 +1657,7 @@ function toTemporalInstant$1(e) {
1665
1657
  e = toPrimitive(e);
1666
1658
  }
1667
1659
  validateString(e);
1668
- const t = parseIsoDateTime(e, [et]), o = t.Z.M ? 0 : parseDateTimeUtcOffset(t.Z.$), n = t.p;
1660
+ const t = parseIsoDateTime(e, [Qe]), o = t.Z.M ? 0 : parseDateTimeUtcOffset(t.Z.N), n = t.p;
1669
1661
  return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.t, t.u, t.T, n.D, n.I, n.O, n.S, n.F, n.v - o))));
1670
1662
  }
1671
1663
  function addInstant(e, t) {
@@ -1676,7 +1668,7 @@ function differenceInstant(e, t, o, n, r) {
1676
1668
  }
1677
1669
  function roundTemporalInstant(e, t, o, n) {
1678
1670
  return (function(e, t, o) {
1679
- return normalizeEpochNanoseconds(e[0], ((e, t, o) => St[o](e / t) * t)(e[1], t, o));
1671
+ return normalizeEpochNanoseconds(e[0], ((e, t, o) => Ot[o](e / t) * t)(e[1], t, o));
1680
1672
  })(e, t * nanosecondsForTimeUnit(o), n);
1681
1673
  }
1682
1674
  function temporalInstantToString(e, t, o) {
@@ -1684,34 +1676,34 @@ function temporalInstantToString(e, t, o) {
1684
1676
  return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, $)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
1685
1677
  }
1686
1678
  function differenceTemporalInstant(e, t, o, n) {
1687
- const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), s, [], G, J);
1688
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.H, a.L, a.B), a.V), e));
1679
+ const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), s, [], _, J);
1680
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.H, a.L, a.q), a.V), e));
1689
1681
  }
1690
1682
  function addDurationToInstant(e, t, o) {
1691
1683
  const n = applySignToDurationSlot(toTemporalDuration(o), e);
1692
1684
  return isDateUnit(defaultTemporalLargestUnit(n)) && throwRangeError(durationWithDateUnit(defaultTemporalLargestUnit(n))), createTemporalInstant(addInstant(t.Y, toInternalDurationRecordWith24HourDays(n).p));
1693
1685
  }
1694
1686
  function validateEpochNanoseconds(e) {
1695
- return ((e) => compareEpochNanoseconds(we, e) * compareEpochNanoseconds(ve, e) <= 0)(e) || throwRangeError(me), e;
1687
+ return ((e) => compareEpochNanoseconds(Fe, e) * compareEpochNanoseconds(we, e) <= 0)(e) || throwRangeError(de), e;
1696
1688
  }
1697
1689
  function getInternalSlotForInstant(e) {
1698
- return Zt.get(e);
1690
+ return bt.get(e);
1699
1691
  }
1700
1692
  function getInternalSlotOrThrowForInstant(e) {
1701
1693
  const t = getInternalSlotForInstant(e);
1702
- return t || throwTypeError(pe), t;
1694
+ return t || throwTypeError(De), t;
1703
1695
  }
1704
1696
  function isInstant(e) {
1705
- return Zt.has(e);
1697
+ return bt.has(e);
1706
1698
  }
1707
1699
  function clampEpochNanoseconds(e) {
1708
- return compareEpochNanoseconds(e, ve) > 0 ? ve : compareEpochNanoseconds(e, we) < 0 ? we : e;
1700
+ return compareEpochNanoseconds(e, we) > 0 ? we : compareEpochNanoseconds(e, Fe) < 0 ? Fe : e;
1709
1701
  }
1710
1702
  function systemTimeZoneIdentifier() {
1711
- return Ct && Yt + Ct > Date.now() && $t ? $t : (Yt = Date.now(), $t = new Ft().resolvedOptions().timeZone);
1703
+ return $t && Ct + $t > Date.now() && jt ? jt : (Ct = Date.now(), jt = new St().resolvedOptions().timeZone);
1712
1704
  }
1713
1705
  function setSystemTimeZoneIdCacheTtl(e) {
1714
- Ct = e, e || ($t = void 0, Yt = -Infinity);
1706
+ $t = e, e || (jt = void 0, Ct = -Infinity);
1715
1707
  }
1716
1708
  function systemUtcEpochNanoseconds() {
1717
1709
  return createEpochNanosecondsFromEpochMilliseconds(Date.now());
@@ -1719,7 +1711,7 @@ function systemUtcEpochNanoseconds() {
1719
1711
  function systemDateTime(e = systemTimeZoneIdentifier()) {
1720
1712
  return getIsoDateTimeForZonedDateTimeSlot(createZonedDateTimeSlot(systemUtcEpochNanoseconds(), toTemporalTimeZoneIdentifier(e), "iso8601"));
1721
1713
  }
1722
- const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11, l = 146097, c = Symbol(), s = Symbol(), d = Symbol(), m = Symbol(), T = Symbol(), u = Symbol(), D = Symbol(), p = "constrain", h = "reject", g = "compatible", f = "later", I = "prefer", O = "reject", S = Symbol(), F = Symbol(), w = Symbol(), v = "ceil", y = "floor", E = "expand", P = "trunc", R = "halfCeil", b = "halfFloor", Z = "halfExpand", N = "halfTrunc", M = "halfEven", U = "auto", j = "always", $ = "never", C = "critical", Y = "auto", A = "never", W = "auto", z = "never", V = "critical", k = 0, H = 1, x = 2, L = 3, B = 4, q = 5, J = 6, G = 9, _ = 0, K = 1, X = 2, Q = 3, ee = 4, te = 5, oe = 6, ne = 7, re = 8, ae = 9, ie = [
1714
+ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11, l = 146097, c = Symbol(), s = Symbol(), d = Symbol(), m = Symbol(), T = Symbol(), u = Symbol(), D = Symbol(), p = "constrain", h = "reject", g = "compatible", f = "later", I = "prefer", O = "reject", S = Symbol(), F = Symbol(), w = Symbol(), v = "ceil", y = "floor", E = "expand", P = "trunc", R = "halfCeil", b = "halfFloor", Z = "halfExpand", N = "halfTrunc", M = "halfEven", U = "auto", j = "always", $ = "never", C = "critical", Y = "auto", W = "never", A = "auto", z = "never", V = "critical", k = 0, H = 1, x = 2, L = 3, q = 4, B = 5, J = 6, _ = 9, K = 0, G = 1, X = 2, Q = 3, ee = 4, te = 5, oe = 6, ne = 7, re = 8, ae = 9, ie = [
1723
1715
  "year",
1724
1716
  "month",
1725
1717
  "week",
@@ -1738,12 +1730,12 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11,
1738
1730
  1e6,
1739
1731
  1e3,
1740
1732
  1
1741
- ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, se = "parse error", de = "invalid date / time", me = "out-of-bounds date", Te = "out-of-bounds duration", ue = "invalid formatting options", De = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, pe = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, he = "invalid `largestUnit` and `smallestUnit` options", ge = "mismatch of `month` and `monthCode`", fe = "value is not formattable", notObject = (e) => `not object: ${e}`, Ie = "empty fields", Oe = "can't convert Temporal classes to number", Se = "argument is undefined", Fe = Math.max, we = createEpochNanosecondsFromEpochMilliseconds(-864e13), ve = createEpochNanosecondsFromEpochMilliseconds(864e13), ye = compareEpochNanoseconds, Ee = /* @__PURE__ */ new WeakMap();
1742
- var Pe = class {
1733
+ ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, se = "invalid date / time", de = "out-of-bounds date", me = "out-of-bounds duration", Te = "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}`, De = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, pe = "invalid `largestUnit` and `smallestUnit` options", he = "mismatch of `month` and `monthCode`", ge = "value is not formattable", notObject = (e) => `not object: ${e}`, fe = "empty fields", Ie = "can't convert Temporal classes to number", Oe = "argument is undefined", Se = Math.max, Fe = createEpochNanosecondsFromEpochMilliseconds(-864e13), we = createEpochNanosecondsFromEpochMilliseconds(864e13), ve = compareEpochNanoseconds, ye = /* @__PURE__ */ new WeakMap();
1734
+ var Ee = class {
1743
1735
  constructor(e, t, o = "iso8601") {
1744
1736
  const n = validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e)));
1745
1737
  validateString(t);
1746
- const r = parseTimeZoneIdentifier(t), a = r.J ? getAvailableNamedTimeZoneIdentifier(r.J) : formatOffsetTimeZoneIdentifier(r.G);
1738
+ const r = parseTimeZoneIdentifier(t), a = r.J ? getAvailableNamedTimeZoneIdentifier(r.J) : formatOffsetTimeZoneIdentifier(r._);
1747
1739
  validateString(o), createTemporalZonedDateTime(n, a, canonicalizeCalendar(o), this);
1748
1740
  }
1749
1741
  static from(e, t = void 0) {
@@ -1842,21 +1834,21 @@ var Pe = class {
1842
1834
  validatePartialTemporalObject(e);
1843
1835
  const n = getOffsetNanosecondsForZonedDateTimeSlot(o), r = getIsoDateTimeForZonedDateTimeSlot(o), a = calendarMergeFields(o.U, createNullPrototypeObject({
1844
1836
  ...isoDateTimeToFields(o.U, r),
1845
- [Dt.R]: formatUtcOffsetNanoseconds(n)
1837
+ [ut.R]: formatUtcOffsetNanoseconds(n)
1846
1838
  }), prepareCalendarFields(o.U, e, [
1847
- Dt.t,
1848
- Dt.u,
1849
- Dt.P,
1850
- Dt.T,
1851
- Dt.D,
1852
- Dt.I,
1853
- Dt.O,
1854
- Dt.S,
1855
- Dt.F,
1856
- Dt.v,
1857
- Dt.R
1839
+ ut.t,
1840
+ ut.u,
1841
+ ut.P,
1842
+ ut.T,
1843
+ ut.D,
1844
+ ut.I,
1845
+ ut.O,
1846
+ ut.S,
1847
+ ut.F,
1848
+ ut.v,
1849
+ ut.R
1858
1850
  ])), i = getOptionsObject(t), l = getTemporalDisambiguationOption(i), c = getTemporalOffsetOption(i, I), s = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.U, a, s);
1859
- return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, S, parseDateTimeUtcOffset(a[Dt.R]), o.Z, l, c, !0), o.Z, o.U);
1851
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, S, parseDateTimeUtcOffset(a[ut.R]), o.Z, l, c, !0), o.Z, o.U);
1860
1852
  }
1861
1853
  withPlainTime(e = void 0) {
1862
1854
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
@@ -1884,11 +1876,11 @@ var Pe = class {
1884
1876
  }
1885
1877
  round(e) {
1886
1878
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
1887
- if (validateTemporalUnitValue(a, s, [L]), validateTemporalRoundingIncrement(n, a === L ? 1 : maximumTemporalDurationRoundingIncrement(a), a === L), a === G && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
1879
+ if (validateTemporalUnitValue(a, s, [L]), validateTemporalRoundingIncrement(n, a === L ? 1 : maximumTemporalDurationRoundingIncrement(a), a === L), a === _ && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
1888
1880
  const i = getIsoDateTimeForZonedDateTimeSlot(t);
1889
1881
  if (a === L) {
1890
1882
  const e = getStartOfDay(t.Z, i.o), o = getStartOfDay(t.Z, addDaysToIsoDate(i.o, 1));
1891
- return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, t.Y), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.Z, t.U);
1883
+ return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, 1 !== compareEpochNanoseconds(o, t.Y) ? addNanosecondsToEpochSeconds(o, -1) : t.Y), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.Z, t.U);
1892
1884
  }
1893
1885
  const l = roundIsoDateTime(i, n, a, r), c = getOffsetNanosecondsForZonedDateTimeSlot(t);
1894
1886
  return createTemporalZonedDateTime(interpretISODateTimeOffset(l.o, l.p, S, c, t.Z, g, I, !0), t.Z, t.U);
@@ -1898,24 +1890,24 @@ var Pe = class {
1898
1890
  return !compareEpochNanoseconds(t.Y, o.Y) && timeZoneEquals(t.Z, o.Z) && calendarEquals(t.U, o.U);
1899
1891
  }
1900
1892
  toString(e = void 0) {
1901
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [Y, A], Y))(o), i = getRoundingModeOption(o, P), l = getTemporalUnitValuedOption(o, "smallestUnit", void 0), c = ((e) => getOption(e, "timeZoneName", [
1902
- W,
1893
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [Y, W], Y))(o), i = getRoundingModeOption(o, P), l = getTemporalUnitValuedOption(o, "smallestUnit", void 0), c = ((e) => getOption(e, "timeZoneName", [
1894
+ A,
1903
1895
  z,
1904
1896
  V
1905
- ], W))(o);
1906
- validateTemporalUnitValue(l, s), l === B && throwRangeError(invalidField("smallestUnit"));
1897
+ ], A))(o);
1898
+ validateTemporalUnitValue(l, s), l === q && throwRangeError(invalidField("smallestUnit"));
1907
1899
  const d = toSecondsStringPrecisionRecord(l, r);
1908
1900
  return temporalZonedDateTimeToString(t, d.ve, n, c, a, d.Ee, d.ye, i);
1909
1901
  }
1910
1902
  toLocaleString(e = void 0, t = void 0) {
1911
1903
  const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, d, o.Z), r = getInternalSlotOrThrowForDateTimeFormat(n);
1912
- return "iso8601" === o.U || calendarEquals(o.U, r.Ze.calendar) || throwRangeError(De), formatDateTime(n, createTemporalInstant(o.Y));
1904
+ return "iso8601" === o.U || calendarEquals(o.U, r.Ze.calendar) || throwRangeError(ue), formatDateTime(n, createTemporalInstant(o.Y));
1913
1905
  }
1914
1906
  toJSON() {
1915
- return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, U, W, Y);
1907
+ return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, U, A, Y);
1916
1908
  }
1917
1909
  valueOf() {
1918
- throwTypeError(Oe);
1910
+ throwTypeError(Ie);
1919
1911
  }
1920
1912
  startOfDay() {
1921
1913
  const e = getInternalSlotOrThrowForZonedDateTime(this);
@@ -1923,7 +1915,7 @@ var Pe = class {
1923
1915
  }
1924
1916
  getTimeZoneTransition(e) {
1925
1917
  const t = getInternalSlotOrThrowForZonedDateTime(this);
1926
- void 0 === e && throwTypeError(Se);
1918
+ void 0 === e && throwTypeError(Oe);
1927
1919
  const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], u), n = ((e, t, o) => {
1928
1920
  if ("UTC" === e || isOffsetTimeZoneIdentifier(e)) return null;
1929
1921
  const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, Infinity);
@@ -1946,9 +1938,9 @@ var Pe = class {
1946
1938
  return createTemporalDateTime(getIsoDateTimeForZonedDateTimeSlot(e), e.U);
1947
1939
  }
1948
1940
  };
1949
- defineStringTag(Pe.prototype, "Temporal.ZonedDateTime"), renameFunction(Pe, "ZonedDateTime");
1950
- const Re = createNullPrototypeObject(), be = createNullPrototypeObject(), Ze = /* @__PURE__ */ new WeakMap();
1951
- var Ne = class {
1941
+ defineStringTag(Ee.prototype, "Temporal.ZonedDateTime"), renameFunction(Ee, "ZonedDateTime");
1942
+ const Pe = createNullPrototypeObject(), Re = createNullPrototypeObject(), be = /* @__PURE__ */ new WeakMap();
1943
+ var Ze = class {
1952
1944
  constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, l = 0, c = 0, s = "iso8601") {
1953
1945
  const d = [
1954
1946
  e,
@@ -1964,118 +1956,118 @@ var Ne = class {
1964
1956
  ].map(toIntegerWithTruncation);
1965
1957
  validateString(s);
1966
1958
  const T = canonicalizeCalendar(s);
1967
- isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(de), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), T, this);
1959
+ isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(se), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), T, this);
1968
1960
  }
1969
1961
  static from(e, t = void 0) {
1970
1962
  return toTemporalDateTime(e, t);
1971
1963
  }
1972
1964
  static compare(e, t) {
1973
- return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e))._, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t))._);
1965
+ return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e)).G, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t)).G);
1974
1966
  }
1975
1967
  get calendarId() {
1976
1968
  return getInternalSlotOrThrowForPlainDateTime(this).U;
1977
1969
  }
1978
1970
  get era() {
1979
1971
  const e = getInternalSlotOrThrowForPlainDateTime(this);
1980
- return calendarIsoToDate(e.U, e._.o).oe;
1972
+ return calendarIsoToDate(e.U, e.G.o).oe;
1981
1973
  }
1982
1974
  get eraYear() {
1983
1975
  const e = getInternalSlotOrThrowForPlainDateTime(this);
1984
- return calendarIsoToDate(e.U, e._.o).ne;
1976
+ return calendarIsoToDate(e.U, e.G.o).ne;
1985
1977
  }
1986
1978
  get year() {
1987
1979
  const e = getInternalSlotOrThrowForPlainDateTime(this);
1988
- return calendarIsoToDate(e.U, e._.o).t;
1980
+ return calendarIsoToDate(e.U, e.G.o).t;
1989
1981
  }
1990
1982
  get month() {
1991
1983
  const e = getInternalSlotOrThrowForPlainDateTime(this);
1992
- return calendarIsoToDate(e.U, e._.o).u;
1984
+ return calendarIsoToDate(e.U, e.G.o).u;
1993
1985
  }
1994
1986
  get monthCode() {
1995
1987
  const e = getInternalSlotOrThrowForPlainDateTime(this);
1996
- return calendarIsoToDate(e.U, e._.o).P;
1988
+ return calendarIsoToDate(e.U, e.G.o).P;
1997
1989
  }
1998
1990
  get day() {
1999
1991
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2000
- return calendarIsoToDate(e.U, e._.o).T;
1992
+ return calendarIsoToDate(e.U, e.G.o).T;
2001
1993
  }
2002
1994
  get hour() {
2003
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.D;
1995
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.D;
2004
1996
  }
2005
1997
  get minute() {
2006
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.I;
1998
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.I;
2007
1999
  }
2008
2000
  get second() {
2009
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.O;
2001
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.O;
2010
2002
  }
2011
2003
  get millisecond() {
2012
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.S;
2004
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.S;
2013
2005
  }
2014
2006
  get microsecond() {
2015
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.F;
2007
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.F;
2016
2008
  }
2017
2009
  get nanosecond() {
2018
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.v;
2010
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.v;
2019
2011
  }
2020
2012
  get dayOfWeek() {
2021
2013
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2022
- return calendarIsoToDate(e.U, e._.o).ae;
2014
+ return calendarIsoToDate(e.U, e.G.o).ae;
2023
2015
  }
2024
2016
  get dayOfYear() {
2025
2017
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2026
- return calendarIsoToDate(e.U, e._.o).ie;
2018
+ return calendarIsoToDate(e.U, e.G.o).ie;
2027
2019
  }
2028
2020
  get weekOfYear() {
2029
2021
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2030
- return calendarIsoToDate(e.U, e._.o).le.re;
2022
+ return calendarIsoToDate(e.U, e.G.o).le.re;
2031
2023
  }
2032
2024
  get yearOfWeek() {
2033
2025
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2034
- return calendarIsoToDate(e.U, e._.o).le.t;
2026
+ return calendarIsoToDate(e.U, e.G.o).le.t;
2035
2027
  }
2036
2028
  get daysInWeek() {
2037
2029
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2038
- return calendarIsoToDate(e.U, e._.o).ce;
2030
+ return calendarIsoToDate(e.U, e.G.o).ce;
2039
2031
  }
2040
2032
  get daysInMonth() {
2041
2033
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2042
- return calendarIsoToDate(e.U, e._.o).se;
2034
+ return calendarIsoToDate(e.U, e.G.o).se;
2043
2035
  }
2044
2036
  get daysInYear() {
2045
2037
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2046
- return calendarIsoToDate(e.U, e._.o).de;
2038
+ return calendarIsoToDate(e.U, e.G.o).de;
2047
2039
  }
2048
2040
  get monthsInYear() {
2049
2041
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2050
- return calendarIsoToDate(e.U, e._.o).me;
2042
+ return calendarIsoToDate(e.U, e.G.o).me;
2051
2043
  }
2052
2044
  get inLeapYear() {
2053
2045
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2054
- return calendarIsoToDate(e.U, e._.o).ue;
2046
+ return calendarIsoToDate(e.U, e.G.o).ue;
2055
2047
  }
2056
2048
  with(e, t = void 0) {
2057
2049
  const o = getInternalSlotOrThrowForPlainDateTime(this);
2058
2050
  validatePartialTemporalObject(e);
2059
- const n = calendarMergeFields(o.U, isoDateTimeToFields(o.U, o._), prepareCalendarFields(o.U, e, [
2060
- Dt.t,
2061
- Dt.u,
2062
- Dt.P,
2063
- Dt.T,
2064
- Dt.D,
2065
- Dt.I,
2066
- Dt.O,
2067
- Dt.S,
2068
- Dt.F,
2069
- Dt.v
2051
+ const n = calendarMergeFields(o.U, isoDateTimeToFields(o.U, o.G), prepareCalendarFields(o.U, e, [
2052
+ ut.t,
2053
+ ut.u,
2054
+ ut.P,
2055
+ ut.T,
2056
+ ut.D,
2057
+ ut.I,
2058
+ ut.O,
2059
+ ut.S,
2060
+ ut.F,
2061
+ ut.v
2070
2062
  ]));
2071
2063
  return createTemporalDateTime(interpretTemporalDateTimeFields(o.U, n, getTemporalOverflowOption(getOptionsObject(t))), o.U);
2072
2064
  }
2073
2065
  withPlainTime(e = void 0) {
2074
2066
  const t = getInternalSlotOrThrowForPlainDateTime(this);
2075
- return createTemporalDateTime(combineIsoDateAndTimeRecord(t._.o, toTimeRecordOrMidnight(e)), t.U);
2067
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(t.G.o, toTimeRecordOrMidnight(e)), t.U);
2076
2068
  }
2077
2069
  withCalendar(e) {
2078
- return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this)._, toTemporalCalendarIdentifier(e));
2070
+ return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this).G, toTemporalCalendarIdentifier(e));
2079
2071
  }
2080
2072
  add(e, t = void 0) {
2081
2073
  return addDurationToDateTime(1, getInternalSlotOrThrowForPlainDateTime(this), e, t);
@@ -2091,43 +2083,43 @@ var Ne = class {
2091
2083
  }
2092
2084
  round(e) {
2093
2085
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2094
- return validateTemporalUnitValue(a, s, [L]), validateTemporalRoundingIncrement(n, a === L ? 1 : maximumTemporalDurationRoundingIncrement(a), a === L), createTemporalDateTime(roundIsoDateTime(t._, n, a, r), t.U);
2086
+ return validateTemporalUnitValue(a, s, [L]), validateTemporalRoundingIncrement(n, a === L ? 1 : maximumTemporalDurationRoundingIncrement(a), a === L), createTemporalDateTime(roundIsoDateTime(t.G, n, a, r), t.U);
2095
2087
  }
2096
2088
  equals(e) {
2097
2089
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e));
2098
- return !compareIsoDateTime(t._, o._) && calendarEquals(t.U, o.U);
2090
+ return !compareIsoDateTime(t.G, o.G) && calendarEquals(t.U, o.U);
2099
2091
  }
2100
2092
  toString(e = void 0) {
2101
2093
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, P), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2102
- validateTemporalUnitValue(i, s), i === B && throwRangeError(invalidField("smallestUnit"));
2094
+ validateTemporalUnitValue(i, s), i === q && throwRangeError(invalidField("smallestUnit"));
2103
2095
  const l = toSecondsStringPrecisionRecord(i, r);
2104
- return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t._, l.Ee, l.ye, a)), t.U, l.ve, n);
2096
+ return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.G, l.Ee, l.ye, a)), t.U, l.ve, n);
2105
2097
  }
2106
2098
  toLocaleString(e = void 0, t = void 0) {
2107
2099
  return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, d), this);
2108
2100
  }
2109
2101
  toJSON() {
2110
2102
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2111
- return isoDateTimeToString(e._, e.U, void 0, U);
2103
+ return isoDateTimeToString(e.G, e.U, void 0, U);
2112
2104
  }
2113
2105
  valueOf() {
2114
- throwTypeError(Oe);
2106
+ throwTypeError(Ie);
2115
2107
  }
2116
2108
  toZonedDateTime(e, t = void 0) {
2117
2109
  const o = getInternalSlotOrThrowForPlainDateTime(this), n = toTemporalTimeZoneIdentifier(e), r = getTemporalDisambiguationOption(getOptionsObject(t));
2118
- return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o._, r), n, o.U);
2110
+ return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o.G, r), n, o.U);
2119
2111
  }
2120
2112
  toPlainDate() {
2121
2113
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2122
- return createTemporalDate(e._.o, e.U);
2114
+ return createTemporalDate(e.G.o, e.U);
2123
2115
  }
2124
2116
  toPlainTime() {
2125
- return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this)._.p);
2117
+ return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).G.p);
2126
2118
  }
2127
2119
  };
2128
- defineStringTag(Ne.prototype, "Temporal.PlainDateTime"), renameFunction(Ne, "PlainDateTime");
2129
- const Me = /* @__PURE__ */ new WeakMap();
2130
- var Ue = class {
2120
+ defineStringTag(Ze.prototype, "Temporal.PlainDateTime"), renameFunction(Ze, "PlainDateTime");
2121
+ const Ne = /* @__PURE__ */ new WeakMap();
2122
+ var Me = class {
2131
2123
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0) {
2132
2124
  const i = [
2133
2125
  e,
@@ -2137,7 +2129,7 @@ var Ue = class {
2137
2129
  r,
2138
2130
  a
2139
2131
  ].map(toIntegerWithTruncation);
2140
- isValidTime(...i) || throwRangeError(de), createTemporalTime(createTimeRecord(...i), this);
2132
+ isValidTime(...i) || throwRangeError(se), createTemporalTime(createTimeRecord(...i), this);
2141
2133
  }
2142
2134
  static from(e, t = void 0) {
2143
2135
  return createTemporalTime(toTemporalTime(e, t));
@@ -2195,7 +2187,7 @@ var Ue = class {
2195
2187
  }
2196
2188
  toString(e = void 0) {
2197
2189
  const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, P), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2198
- validateTemporalUnitValue(a, s), a === B && throwRangeError(invalidField("smallestUnit"));
2190
+ validateTemporalUnitValue(a, s), a === q && throwRangeError(invalidField("smallestUnit"));
2199
2191
  const i = toSecondsStringPrecisionRecord(a, n);
2200
2192
  return timeRecordToString(roundTime(t, i.Ee, i.ye, r), i.ve);
2201
2193
  }
@@ -2206,35 +2198,35 @@ var Ue = class {
2206
2198
  return timeRecordToString(getInternalSlotOrThrowForPlainTime(this));
2207
2199
  }
2208
2200
  valueOf() {
2209
- throwTypeError(Oe);
2201
+ throwTypeError(Ie);
2210
2202
  }
2211
2203
  };
2212
- defineStringTag(Ue.prototype, "Temporal.PlainTime"), renameFunction(Ue, "PlainTime");
2213
- const je = "\\d{4}|[-+]\\d{6}", $e = "0[1-9]|1[0-2]", Ce = "0[1-9]|[12]\\d|30|31", Ye = "[01]\\d|2[0-3]", Ae = "[0-5]\\d", We = `(?<a>${je})(?<x>-?)(?<b>${$e})\\k<x>(?<c>${Ce})`, ze = optionalChain([
2214
- `(?<d>${Ye})`,
2215
- `(?<y>:?)(?<e>${Ae})`,
2204
+ defineStringTag(Me.prototype, "Temporal.PlainTime"), renameFunction(Me, "PlainTime");
2205
+ const Ue = "\\d{4}|[-+]\\d{6}", je = "0[1-9]|1[0-2]", $e = "0[1-9]|[12]\\d|30|31", Ce = "[01]\\d|2[0-3]", Ye = "[0-5]\\d", We = `(?<a>${Ue})(?<x>-?)(?<b>${je})\\k<x>(?<c>${$e})`, Ae = optionalChain([
2206
+ `(?<d>${Ce})`,
2207
+ `(?<y>:?)(?<e>${Ye})`,
2216
2208
  "\\k<y>(?<f>[0-5]\\d|60)",
2217
2209
  "[.,](?<g>\\d{1,9})"
2218
- ]), Ve = optionalChain([
2219
- `([+-])(${Ye})`,
2220
- `(?<z>:?)(${Ae})`,
2221
- `\\k<z>(${Ae})`,
2210
+ ]), ze = optionalChain([
2211
+ `([+-])(${Ce})`,
2212
+ `(?<z>:?)(${Ye})`,
2213
+ `\\k<z>(${Ye})`,
2222
2214
  "[.,](\\d{1,9})"
2223
- ]), ke = optionalChain([
2215
+ ]), Ve = optionalChain([
2224
2216
  We,
2225
- `[ tT]${ze}`,
2226
- `(?<h>${Ve})`
2227
- ]), He = `(?<l>${je})-?(?<m>${$e})`, xe = `(?:--)?(?<m>${$e})-?(?<n>${Ce})`, Le = `(?<h>${Ve})|(?<i>[zZ])`, Be = `([+-])(${Ye})(?::?(${Ae}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, qe = `\\[!?(?<j>${Be})\\]`, Je = join("[a-zA-Z\\d]+", "-"), Ge = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Je})\\]`, _e = `(?<k>(${Ge})*)`, Ke = RegExp(Ge, "g"), Xe = createRegExp(`${optionalChain([
2217
+ `[ tT]${Ae}`,
2218
+ `(?<h>${ze})`
2219
+ ]), ke = `(?<l>${Ue})-?(?<m>${je})`, He = `(?:--)?(?<m>${je})-?(?<n>${$e})`, xe = `(?<h>${ze})|(?<i>[zZ])`, Le = `([+-])(${Ce})(?::?(${Ye}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, qe = `\\[!?(?<j>${Le})\\]`, Be = join("[a-zA-Z\\d]+", "-"), Je = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Be})\\]`, _e = `(?<k>(${Je})*)`, Ke = RegExp(Je, "g"), Ge = createRegExp(`${optionalChain([
2228
2220
  We,
2229
- `[ tT]${ze}`,
2230
- Le
2231
- ])}${qe}${_e}`), Qe = createRegExp(`${ke}(?:${qe})?${_e}`), et = createRegExp(`${We}[ tT]${ze}(?:${Le})(?:${qe})?${_e}`), tt = createRegExp(`(${We}[ tT]|[tT]?)${ze}(?<h>${Ve})?(?:${qe})?${_e}`), ot = createRegExp(`(${ke}|${xe})(?:${qe})?${_e}`), nt = createRegExp(`(${ke}|${He})(?:${qe})?${_e}`), rt = [createRegExp(`${xe}(${qe})?(${Ge})*`), createRegExp(`${He}(${qe})?(${Ge})*`)], at = createRegExp(Be), it = createRegExp(Je), lt = createRegExp(Ve), ct = /* @__PURE__ */ new WeakMap();
2232
- var st = class {
2221
+ `[ tT]${Ae}`,
2222
+ xe
2223
+ ])}${qe}${_e}`), Xe = createRegExp(`${Ve}(?:${qe})?${_e}`), Qe = createRegExp(`${We}[ tT]${Ae}(?:${xe})(?:${qe})?${_e}`), et = createRegExp(`(${We}[ tT]|[tT]?)${Ae}(?<h>${ze})?(?:${qe})?${_e}`), tt = createRegExp(`(${Ve}|${He})(?:${qe})?${_e}`), ot = createRegExp(`(${Ve}|${ke})(?:${qe})?${_e}`), nt = [createRegExp(`${He}(${qe})?(${Je})*`), createRegExp(`${ke}(${qe})?(${Je})*`)], rt = createRegExp(Le), at = createRegExp(Be), it = createRegExp(ze), lt = /* @__PURE__ */ new WeakMap();
2224
+ var ct = class {
2233
2225
  constructor(e, t, o = "iso8601", n = 1972) {
2234
2226
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2235
2227
  validateString(o);
2236
2228
  const i = canonicalizeCalendar(o), l = toIntegerWithTruncation(n);
2237
- isValidIsoDate(l, r, a) || throwRangeError(de), createTemporalMonthDay(createIsoDateRecord(l, r, a), i, this);
2229
+ isValidIsoDate(l, r, a) || throwRangeError(se), createTemporalMonthDay(createIsoDateRecord(l, r, a), i, this);
2238
2230
  }
2239
2231
  static from(e, t = void 0) {
2240
2232
  return toTemporalMonthDay(e, t);
@@ -2253,15 +2245,15 @@ var st = class {
2253
2245
  with(e, t = void 0) {
2254
2246
  const o = getInternalSlotOrThrowForPlainMonthDay(this);
2255
2247
  return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.U, calendarMergeFields(o.U, isoDateToFields(o.U, o.o, T), prepareCalendarFields(o.U, e, [
2256
- Dt.t,
2257
- Dt.u,
2258
- Dt.P,
2259
- Dt.T
2248
+ ut.t,
2249
+ ut.u,
2250
+ ut.P,
2251
+ ut.T
2260
2252
  ])), getTemporalOverflowOption(getOptionsObject(t))), o.U);
2261
2253
  }
2262
2254
  equals(e) {
2263
2255
  const t = getInternalSlotOrThrowForPlainMonthDay(this), o = getInternalSlotOrThrowForPlainMonthDay(toTemporalMonthDay(e));
2264
- return 0 === compareIsoDate(t.o, o.o) && calendarEquals(t.U, o.U);
2256
+ return !compareIsoDate(t.o, o.o) && calendarEquals(t.U, o.U);
2265
2257
  }
2266
2258
  toString(e = void 0) {
2267
2259
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
@@ -2273,21 +2265,21 @@ var st = class {
2273
2265
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), U);
2274
2266
  }
2275
2267
  valueOf() {
2276
- throwTypeError(Oe);
2268
+ throwTypeError(Ie);
2277
2269
  }
2278
2270
  toPlainDate(e) {
2279
2271
  const t = getInternalSlotOrThrowForPlainMonthDay(this);
2280
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, T), prepareCalendarFields(t.U, e, [Dt.t], [])), p), t.U);
2272
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, T), prepareCalendarFields(t.U, e, [ut.t], [])), p), t.U);
2281
2273
  }
2282
2274
  };
2283
- defineStringTag(st.prototype, "Temporal.PlainMonthDay"), renameFunction(st, "PlainMonthDay");
2284
- const dt = /* @__PURE__ */ new WeakMap();
2285
- var mt = class {
2275
+ defineStringTag(ct.prototype, "Temporal.PlainMonthDay"), renameFunction(ct, "PlainMonthDay");
2276
+ const st = /* @__PURE__ */ new WeakMap();
2277
+ var dt = class {
2286
2278
  constructor(e, t, o = "iso8601", n = 1) {
2287
2279
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2288
2280
  validateString(o);
2289
2281
  const i = canonicalizeCalendar(o), l = toIntegerWithTruncation(n);
2290
- isValidIsoDate(r, a, l) || throwRangeError(de), createTemporalYearMonth(createIsoDateRecord(r, a, l), i, this);
2282
+ isValidIsoDate(r, a, l) || throwRangeError(se), createTemporalYearMonth(createIsoDateRecord(r, a, l), i, this);
2291
2283
  }
2292
2284
  static from(e, t = void 0) {
2293
2285
  return toTemporalYearMonth(e, t);
@@ -2338,9 +2330,9 @@ var mt = class {
2338
2330
  const o = getInternalSlotOrThrowForPlainYearMonth(this);
2339
2331
  validatePartialTemporalObject(e);
2340
2332
  const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, m), prepareCalendarFields(o.U, e, [
2341
- Dt.t,
2342
- Dt.u,
2343
- Dt.P
2333
+ ut.t,
2334
+ ut.u,
2335
+ ut.P
2344
2336
  ]));
2345
2337
  return createTemporalYearMonth(calendarYearMonthFromFields(o.U, n, getTemporalOverflowOption(getOptionsObject(t))), o.U);
2346
2338
  }
@@ -2358,7 +2350,7 @@ var mt = class {
2358
2350
  }
2359
2351
  equals(e) {
2360
2352
  const t = getInternalSlotOrThrowForPlainYearMonth(this), o = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(e));
2361
- return 0 === compareIsoDate(t.o, o.o) && t.U === o.U;
2353
+ return !compareIsoDate(t.o, o.o) && t.U === o.U;
2362
2354
  }
2363
2355
  toString(e = void 0) {
2364
2356
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
@@ -2370,21 +2362,21 @@ var mt = class {
2370
2362
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), U);
2371
2363
  }
2372
2364
  valueOf() {
2373
- throwTypeError(Oe);
2365
+ throwTypeError(Ie);
2374
2366
  }
2375
2367
  toPlainDate(e) {
2376
2368
  const t = getInternalSlotOrThrowForPlainYearMonth(this);
2377
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, m), prepareCalendarFields(t.U, e, [Dt.T], [])), p), t.U);
2369
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, m), prepareCalendarFields(t.U, e, [ut.T], [])), p), t.U);
2378
2370
  }
2379
2371
  };
2380
- defineStringTag(mt.prototype, "Temporal.PlainYearMonth"), renameFunction(mt, "PlainYearMonth");
2381
- const Tt = /* @__PURE__ */ new WeakMap();
2382
- var ut = class {
2372
+ defineStringTag(dt.prototype, "Temporal.PlainYearMonth"), renameFunction(dt, "PlainYearMonth");
2373
+ const mt = /* @__PURE__ */ new WeakMap();
2374
+ var Tt = class {
2383
2375
  constructor(e, t, o, n = "iso8601") {
2384
2376
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2385
2377
  validateString(n);
2386
2378
  const l = canonicalizeCalendar(n);
2387
- isValidIsoDate(r, a, i) || throwRangeError(de), createTemporalDate(createIsoDateRecord(r, a, i), l, this);
2379
+ isValidIsoDate(r, a, i) || throwRangeError(se), createTemporalDate(createIsoDateRecord(r, a, i), l, this);
2388
2380
  }
2389
2381
  static from(e, t = void 0) {
2390
2382
  return toTemporalDate(e, t);
@@ -2473,10 +2465,10 @@ var ut = class {
2473
2465
  const o = getInternalSlotOrThrowForPlainDate(this);
2474
2466
  validatePartialTemporalObject(e);
2475
2467
  const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, c), prepareCalendarFields(o.U, e, [
2476
- Dt.t,
2477
- Dt.u,
2478
- Dt.P,
2479
- Dt.T
2468
+ ut.t,
2469
+ ut.u,
2470
+ ut.P,
2471
+ ut.T
2480
2472
  ])), r = getTemporalOverflowOption(getOptionsObject(t));
2481
2473
  return createTemporalDate(calendarDateFromFields(o.U, n, r), o.U);
2482
2474
  }
@@ -2516,11 +2508,11 @@ var ut = class {
2516
2508
  return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), U);
2517
2509
  }
2518
2510
  valueOf() {
2519
- throwTypeError(Oe);
2511
+ throwTypeError(Ie);
2520
2512
  }
2521
2513
  };
2522
- defineStringTag(ut.prototype, "Temporal.PlainDate"), renameFunction(ut, "PlainDate");
2523
- const Dt = {
2514
+ defineStringTag(Tt.prototype, "Temporal.PlainDate"), renameFunction(Tt, "PlainDate");
2515
+ const ut = {
2524
2516
  oe: "era",
2525
2517
  ne: "eraYear",
2526
2518
  t: "year",
@@ -2535,41 +2527,41 @@ const Dt = {
2535
2527
  v: "nanosecond",
2536
2528
  R: "offset",
2537
2529
  Z: "timeZone"
2538
- }, pt = [
2539
- Dt.oe,
2540
- Dt.ne,
2541
- Dt.t,
2542
- Dt.u,
2543
- Dt.P,
2544
- Dt.T,
2545
- Dt.D,
2546
- Dt.I,
2547
- Dt.O,
2548
- Dt.S,
2549
- Dt.F,
2550
- Dt.v,
2551
- Dt.R,
2552
- Dt.Z
2553
- ], ht = {
2554
- [Dt.oe]: [toString],
2555
- [Dt.ne]: [toIntegerWithTruncation],
2556
- [Dt.t]: [toIntegerWithTruncation],
2557
- [Dt.u]: [toPositiveIntegerWithTruncation],
2558
- [Dt.P]: [(e) => createMonthCode(...parseMonthCode(e))],
2559
- [Dt.T]: [toPositiveIntegerWithTruncation],
2560
- [Dt.D]: [toIntegerWithTruncation, 0],
2561
- [Dt.I]: [toIntegerWithTruncation, 0],
2562
- [Dt.O]: [toIntegerWithTruncation, 0],
2563
- [Dt.S]: [toIntegerWithTruncation, 0],
2564
- [Dt.F]: [toIntegerWithTruncation, 0],
2565
- [Dt.v]: [toIntegerWithTruncation, 0],
2566
- [Dt.R]: [(e) => {
2530
+ }, Dt = [
2531
+ ut.oe,
2532
+ ut.ne,
2533
+ ut.t,
2534
+ ut.u,
2535
+ ut.P,
2536
+ ut.T,
2537
+ ut.D,
2538
+ ut.I,
2539
+ ut.O,
2540
+ ut.S,
2541
+ ut.F,
2542
+ ut.v,
2543
+ ut.R,
2544
+ ut.Z
2545
+ ], pt = {
2546
+ [ut.oe]: [toString],
2547
+ [ut.ne]: [toIntegerWithTruncation],
2548
+ [ut.t]: [toIntegerWithTruncation],
2549
+ [ut.u]: [toPositiveIntegerWithTruncation],
2550
+ [ut.P]: [(e) => createMonthCode(...parseMonthCode(e))],
2551
+ [ut.T]: [toPositiveIntegerWithTruncation],
2552
+ [ut.D]: [toIntegerWithTruncation, 0],
2553
+ [ut.I]: [toIntegerWithTruncation, 0],
2554
+ [ut.O]: [toIntegerWithTruncation, 0],
2555
+ [ut.S]: [toIntegerWithTruncation, 0],
2556
+ [ut.F]: [toIntegerWithTruncation, 0],
2557
+ [ut.v]: [toIntegerWithTruncation, 0],
2558
+ [ut.R]: [(e) => {
2567
2559
  const t = toPrimitive(e);
2568
2560
  return validateString(t), parseDateTimeUtcOffset(t), t;
2569
2561
  }],
2570
- [Dt.Z]: [toTemporalTimeZoneIdentifier]
2571
- }, gt = /* @__PURE__ */ new WeakMap(), ft = signTimeDuration;
2572
- var It = class {
2562
+ [ut.Z]: [toTemporalTimeZoneIdentifier]
2563
+ }, ht = /* @__PURE__ */ new WeakMap(), gt = signTimeDuration;
2564
+ var ft = class {
2573
2565
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, l = 0, c = 0, s = 0) {
2574
2566
  createTemporalDuration(createTemporalDurationSlot([
2575
2567
  e,
@@ -2592,13 +2584,13 @@ var It = class {
2592
2584
  if (n.every((e, t) => r[t] === e)) return 0;
2593
2585
  const i = defaultTemporalLargestUnit(n), l = defaultTemporalLargestUnit(r), c = toInternalDurationRecord(n), s = toInternalDurationRecord(r);
2594
2586
  let d, m;
2595
- return a.Pe && (isDateUnit(i) || isDateUnit(l)) ? compareEpochNanoseconds(addZonedDateTime(a.Pe, c, p), addZonedDateTime(a.Pe, s, p)) : (isCalendarUnit(i) || isCalendarUnit(l) ? (a.Re || throwRangeError(missingField("relativeTo")), d = dateDurationDays(c.W, a.Re), m = dateDurationDays(s.W, a.Re)) : (d = n[Q], m = r[Q]), ye(add24HourDaysToTimeDuration(c.p, d), add24HourDaysToTimeDuration(s.p, m)));
2587
+ return a.Pe && (isDateUnit(i) || isDateUnit(l)) ? compareEpochNanoseconds(addZonedDateTime(a.Pe, c, p), addZonedDateTime(a.Pe, s, p)) : (isCalendarUnit(i) || isCalendarUnit(l) ? (a.Re || throwRangeError(missingField("relativeTo")), d = dateDurationDays(c.A, a.Re), m = dateDurationDays(s.A, a.Re)) : (d = n[Q], m = r[Q]), ve(add24HourDaysToTimeDuration(c.p, d), add24HourDaysToTimeDuration(s.p, m)));
2596
2588
  }
2597
2589
  get years() {
2598
- return getInternalSlotOrThrowForDuration(this)[_];
2590
+ return getInternalSlotOrThrowForDuration(this)[K];
2599
2591
  }
2600
2592
  get months() {
2601
- return getInternalSlotOrThrowForDuration(this)[K];
2593
+ return getInternalSlotOrThrowForDuration(this)[G];
2602
2594
  }
2603
2595
  get weeks() {
2604
2596
  return getInternalSlotOrThrowForDuration(this)[X];
@@ -2628,7 +2620,7 @@ var It = class {
2628
2620
  return durationSign(getInternalSlotOrThrowForDuration(this));
2629
2621
  }
2630
2622
  get blank() {
2631
- return 0 === durationSign(getInternalSlotOrThrowForDuration(this));
2623
+ return !durationSign(getInternalSlotOrThrowForDuration(this));
2632
2624
  }
2633
2625
  with(e) {
2634
2626
  const t = getInternalSlotOrThrowForDuration(this);
@@ -2653,12 +2645,12 @@ var It = class {
2653
2645
  let l = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2654
2646
  validateTemporalUnitValue(l, d);
2655
2647
  const c = void 0 !== l;
2656
- l ??= G;
2648
+ l ??= _;
2657
2649
  const s = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(s, l), T = void 0 !== n;
2658
- if (void 0 !== n && "auto" !== n || (n = m), (!c && !T || n > l) && throwRangeError(he), isDateUnit(l) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(l), !1), a > 1 && n !== l && isDateUnit(l) && throwRangeError(he), r.Pe) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Pe, createZonedDateTimeSlot(addZonedDateTime(r.Pe, toInternalDurationRecord(t), p), r.Pe.Z, r.Pe.U), n, a, l, i), isDateUnit(n) ? B : n));
2650
+ if (void 0 !== n && "auto" !== n || (n = m), (!c && !T || n > l) && throwRangeError(pe), isDateUnit(l) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(l), !1), a > 1 && n !== l && isDateUnit(l) && throwRangeError(pe), r.Pe) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Pe, createZonedDateTimeSlot(addZonedDateTime(r.Pe, toInternalDurationRecord(t), p), r.Pe.Z, r.Pe.U), n, a, l, i), isDateUnit(n) ? q : n));
2659
2651
  if (r.Re) {
2660
2652
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
2661
- return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.Re.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.Re.U, r.Re.o, adjustDateDurationRecord(e.W, o.K), p), o), r.Re.U, n, a, l, i), n));
2653
+ return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.Re.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.Re.U, r.Re.o, adjustDateDurationRecord(e.A, o.K), p), o), r.Re.U, n, a, l, i), n));
2662
2654
  }
2663
2655
  (isCalendarUnit(s) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
2664
2656
  const u = toInternalDurationRecordWith24HourDays(t);
@@ -2666,22 +2658,22 @@ var It = class {
2666
2658
  }
2667
2659
  total(e) {
2668
2660
  const t = getInternalSlotOrThrowForDuration(this);
2669
- void 0 === e && throwTypeError(Se);
2661
+ void 0 === e && throwTypeError(Oe);
2670
2662
  const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", u);
2671
2663
  if (validateTemporalUnitValue(r, d), n.Pe) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.Y, e.Y), o))(n.Pe, createZonedDateTimeSlot(addZonedDateTime(n.Pe, toInternalDurationRecord(t), p), n.Pe.Z, n.Pe.U), r);
2672
2664
  if (n.Re) {
2673
2665
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
2674
- 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, 0, n)) : 0)(combineIsoDateAndTimeRecord(n.Re.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.Re.U, n.Re.o, adjustDateDurationRecord(e.W, o.K), p), o), n.Re.U, r);
2666
+ 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, 0, n)) : 0)(combineIsoDateAndTimeRecord(n.Re.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.Re.U, n.Re.o, adjustDateDurationRecord(e.A, o.K), p), o), n.Re.U, r);
2675
2667
  }
2676
2668
  return (isCalendarUnit(defaultTemporalLargestUnit(t)) || isCalendarUnit(r)) && throwRangeError(missingField("relativeTo")), totalTimeDuration(toInternalDurationRecordWith24HourDays(t).p, r);
2677
2669
  }
2678
2670
  toString(e = void 0) {
2679
2671
  const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, P), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2680
- validateTemporalUnitValue(a, s), a !== B && a !== q || throwRangeError(disallowedUnit(a));
2672
+ validateTemporalUnitValue(a, s), a !== q && a !== B || throwRangeError(disallowedUnit(a));
2681
2673
  const i = toSecondsStringPrecisionRecord(a, n);
2682
- if (i.ye === G && 1 === i.Ee) return temporalDurationToString(t, i.ve);
2674
+ if (i.ye === _ && 1 === i.Ee) return temporalDurationToString(t, i.ve);
2683
2675
  const l = toInternalDurationRecord(t);
2684
- return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(l.W, roundTimeDuration(l.p, i.Ee, i.ye, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), J)), i.ve);
2676
+ return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(l.A, roundTimeDuration(l.p, i.Ee, i.ye, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), J)), i.ve);
2685
2677
  }
2686
2678
  toJSON() {
2687
2679
  return temporalDurationToString(getInternalSlotOrThrowForDuration(this));
@@ -2693,11 +2685,11 @@ var It = class {
2693
2685
  }), new Intl.DurationFormat(e, t).format(n);
2694
2686
  }
2695
2687
  valueOf() {
2696
- throwTypeError(Oe);
2688
+ throwTypeError(Ie);
2697
2689
  }
2698
2690
  };
2699
- defineStringTag(It.prototype, "Temporal.Duration"), renameFunction(It, "Duration");
2700
- const Ot = {
2691
+ defineStringTag(ft.prototype, "Temporal.Duration"), renameFunction(ft, "Duration");
2692
+ const It = {
2701
2693
  [v]: Math.ceil,
2702
2694
  [y]: Math.floor,
2703
2695
  [E]: roundExpand,
@@ -2707,7 +2699,7 @@ const Ot = {
2707
2699
  [Z]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
2708
2700
  [N]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
2709
2701
  [M]: roundHalfEven
2710
- }, St = {
2702
+ }, Ot = {
2711
2703
  [v]: Math.ceil,
2712
2704
  [y]: Math.floor,
2713
2705
  [E]: Math.ceil,
@@ -2717,13 +2709,13 @@ const Ot = {
2717
2709
  [Z]: roundHalfCeil,
2718
2710
  [N]: roundHalfFloor,
2719
2711
  [M]: roundHalfEven
2720
- }, Ft = globalThis.Intl.DateTimeFormat, wt = /* @__PURE__ */ new WeakMap(), vt = [
2712
+ }, St = globalThis.Intl.DateTimeFormat, Ft = /* @__PURE__ */ new WeakMap(), wt = [
2721
2713
  "year",
2722
2714
  "month",
2723
2715
  "day",
2724
2716
  "weekday",
2725
2717
  "dateStyle"
2726
- ], yt = [
2718
+ ], vt = [
2727
2719
  "hour",
2728
2720
  "minute",
2729
2721
  "second",
@@ -2731,16 +2723,16 @@ const Ot = {
2731
2723
  "dayPeriod",
2732
2724
  "timeStyle"
2733
2725
  ];
2734
- var Et = class {
2735
- Ae(e) {
2726
+ var yt = class {
2727
+ We(e) {
2736
2728
  return formatDateTime(this, e);
2737
2729
  }
2738
- }, Pt = class {
2730
+ }, Et = class {
2739
2731
  constructor(e, t) {
2740
2732
  createDateTimeFormat(e, t, d, void 0, this);
2741
2733
  }
2742
2734
  get format() {
2743
- return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).We ||= Et.prototype.Ae.bind(this), "name", { value: "" });
2735
+ return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).Ae ||= yt.prototype.We.bind(this), "name", { value: "" });
2744
2736
  }
2745
2737
  formatToParts(e) {
2746
2738
  return ((e, t) => {
@@ -2749,7 +2741,7 @@ var Et = class {
2749
2741
  })(this, e);
2750
2742
  }
2751
2743
  formatRange(e, t) {
2752
- return void 0 !== e && void 0 !== t || throwTypeError(fe), ((e, t, o) => {
2744
+ return void 0 !== e && void 0 !== t || throwTypeError(ge), ((e, t, o) => {
2753
2745
  const n = getInternalSlotOrThrowForDateTimeFormat(e);
2754
2746
  validateSameTemporalType(t, o);
2755
2747
  const [r, a] = handleDateTimeValue(n, t);
@@ -2757,7 +2749,7 @@ var Et = class {
2757
2749
  })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
2758
2750
  }
2759
2751
  formatRangeToParts(e, t) {
2760
- return void 0 !== e && void 0 !== t || throwTypeError(fe), ((e, t, o) => {
2752
+ return void 0 !== e && void 0 !== t || throwTypeError(ge), ((e, t, o) => {
2761
2753
  const n = getInternalSlotOrThrowForDateTimeFormat(e);
2762
2754
  validateSameTemporalType(t, o);
2763
2755
  const [r, a] = handleDateTimeValue(n, t);
@@ -2768,12 +2760,12 @@ var Et = class {
2768
2760
  return getInternalSlotOrThrowForDateTimeFormat(this).be.resolvedOptions();
2769
2761
  }
2770
2762
  };
2771
- const Rt = Object.getOwnPropertyDescriptors(Ft), bt = Pt.prototype;
2772
- Rt.prototype.value = bt;
2773
- for (const e of ["formatRange", "formatRangeToParts"]) Ft.prototype[e] || delete bt[e];
2774
- Object.defineProperties(DateTimeFormat, Rt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
2775
- const Zt = /* @__PURE__ */ new WeakMap();
2776
- var Nt = class {
2763
+ const Pt = Object.getOwnPropertyDescriptors(St), Rt = Et.prototype;
2764
+ Pt.prototype.value = Rt;
2765
+ for (const e of ["formatRange", "formatRangeToParts"]) St.prototype[e] || delete Rt[e];
2766
+ Object.defineProperties(DateTimeFormat, Pt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
2767
+ const bt = /* @__PURE__ */ new WeakMap();
2768
+ var Zt = class {
2777
2769
  constructor(e) {
2778
2770
  createTemporalInstant(validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e))), this);
2779
2771
  }
@@ -2816,7 +2808,7 @@ var Nt = class {
2816
2808
  }
2817
2809
  toString(e = void 0) {
2818
2810
  const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, P), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
2819
- validateTemporalUnitValue(a, s), a === B && throwRangeError(invalidField("smallestUnit"));
2811
+ validateTemporalUnitValue(a, s), a === q && throwRangeError(invalidField("smallestUnit"));
2820
2812
  const l = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), c = toSecondsStringPrecisionRecord(a, n);
2821
2813
  return temporalInstantToString(roundTemporalInstant(t.Y, c.Ee, c.ye, r), l, c.ve);
2822
2814
  }
@@ -2827,24 +2819,24 @@ var Nt = class {
2827
2819
  return temporalInstantToString(getInternalSlotOrThrowForInstant(this).Y);
2828
2820
  }
2829
2821
  valueOf() {
2830
- throwTypeError(Oe);
2822
+ throwTypeError(Ie);
2831
2823
  }
2832
2824
  toZonedDateTimeISO(e) {
2833
2825
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).Y, toTemporalTimeZoneIdentifier(e), "iso8601");
2834
2826
  }
2835
2827
  };
2836
- defineStringTag(Nt.prototype, "Temporal.Instant"), renameFunction(Nt, "Instant");
2837
- const Mt = class {
2828
+ defineStringTag(Zt.prototype, "Temporal.Instant"), renameFunction(Zt, "Instant");
2829
+ const Nt = class {
2838
2830
  toTemporalInstant() {
2839
2831
  const e = Date.prototype.valueOf.call(this);
2840
- return isNaN(e) && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
2841
- }
2842
- }.prototype.toTemporalInstant, Ut = Object.getOwnPropertyDescriptors(globalThis.Intl);
2843
- Ut.DateTimeFormat.value = DateTimeFormat;
2844
- const jt = {};
2845
- Object.defineProperties(jt, Ut);
2846
- let $t, Ct = 0, Yt = -Infinity;
2847
- const At = {
2832
+ return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
2833
+ }
2834
+ }.prototype.toTemporalInstant, Mt = Object.getOwnPropertyDescriptors(globalThis.Intl);
2835
+ Mt.DateTimeFormat.value = DateTimeFormat;
2836
+ const Ut = {};
2837
+ Object.defineProperties(Ut, Mt);
2838
+ let jt, $t = 0, Ct = -Infinity;
2839
+ const Yt = {
2848
2840
  timeZoneId: () => systemTimeZoneIdentifier(),
2849
2841
  instant: () => createTemporalInstant(systemUtcEpochNanoseconds()),
2850
2842
  plainDateTimeISO: (e = void 0) => createTemporalDateTime(systemDateTime(e), "iso8601"),
@@ -2852,17 +2844,17 @@ const At = {
2852
2844
  plainDateISO: (e = void 0) => createTemporalDate(systemDateTime(e).o, "iso8601"),
2853
2845
  plainTimeISO: (e = void 0) => createTemporalTime(systemDateTime(e).p)
2854
2846
  };
2855
- defineStringTag(At, "Temporal.Now"), makePropertiesNonEnumerable(At);
2847
+ defineStringTag(Yt, "Temporal.Now"), makePropertiesNonEnumerable(Yt);
2856
2848
  const Wt = {
2857
- Instant: Nt,
2858
- PlainDateTime: Ne,
2859
- PlainDate: ut,
2860
- PlainTime: Ue,
2861
- PlainYearMonth: mt,
2862
- PlainMonthDay: st,
2863
- Duration: It,
2864
- ZonedDateTime: Pe,
2865
- Now: At
2849
+ Instant: Zt,
2850
+ PlainDateTime: Ze,
2851
+ PlainDate: Tt,
2852
+ PlainTime: Me,
2853
+ PlainYearMonth: dt,
2854
+ PlainMonthDay: ct,
2855
+ Duration: ft,
2856
+ ZonedDateTime: Ee,
2857
+ Now: Yt
2866
2858
  };
2867
2859
  defineStringTag(Wt, "Temporal"), makePropertiesNonEnumerable(Wt);
2868
- export { defineNonEnumerableProperty as a, Mt as i, setSystemTimeZoneIdCacheTtl as n, jt as r, Wt as t };
2860
+ export { defineNonEnumerableProperty as a, Nt as i, setSystemTimeZoneIdCacheTtl as n, Ut as r, Wt as t };