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.
@@ -2,7 +2,7 @@ function getNameFromUnit(e) {
2
2
  return ie[e];
3
3
  }
4
4
  function nanosecondsForTimeUnit(e) {
5
- return ce[e - 3];
5
+ return se[e - 3];
6
6
  }
7
7
  function isObject(e) {
8
8
  return ("object" == typeof e || "function" == typeof e) && null !== e;
@@ -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 = Se(e);
41
+ const t = Fe(e);
43
42
  return Number.isInteger(t) || throwRangeError(invalidNumber(t)), t + 0;
44
43
  }
45
44
  function toIntegerWithTruncation(e) {
46
- const t = Se(e);
47
- return !isNaN(t) && isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
45
+ const t = Fe(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(Fe)) {
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 ve(e, [0, 0]);
165
+ return we(e, [0, 0]);
167
166
  }
168
167
  function timeDurationToSubsecondsNumber(e, t, o) {
169
168
  const n = signTimeDuration(e);
170
- 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;
169
+ 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;
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);
@@ -175,24 +174,24 @@ function roundTimeDurationByDays(e, t, o) {
175
174
  function divideTimeDurationToFloatingPoint(e, t) {
176
175
  return t <= 1e9 ? timeDurationToSubsecondsNumber(e, -9 + Math.log10(t), !0) : i / t * e[0] + e[1] / t;
177
176
  }
178
- function interpretISODateTimeOffset(e, t, o, n, r, a, i, s) {
177
+ function interpretISODateTimeOffset(e, t, o, n, r, a, i, c) {
179
178
  if (!t) return getStartOfDay(r, e);
180
- const c = combineIsoDateAndTimeRecord(e, t);
181
- if (o === y || o === F && "ignore" == i) return getEpochNanosecondsFor(r, c, a);
182
- if (o === S || o === F && "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.F, c.p.S, c.p.$ - n)));
179
+ const s = combineIsoDateAndTimeRecord(e, t);
180
+ if (o === y || o === F && "ignore" == i) return getEpochNanosecondsFor(r, s, a);
181
+ if (o === S || o === F && "use" == i) return validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(s.o.t, s.o.u, s.o.T, s.p.D, s.p.I, s.p.O, s.p.F, s.p.S, s.p.$ - n)));
183
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
- const l = getPossibleEpochNanoseconds(r, c);
185
+ const l = getPossibleEpochNanoseconds(r, s);
187
186
  for (const e of l) {
188
187
  const t = getOffsetNanosecondsFor(r, e);
189
188
  if (t === n) return e;
190
- if (!s && roundNumberToIncrement(t, 6e10, "halfExpand") === n) return e;
189
+ if (!c && roundNumberToIncrement(t, 6e10, "halfExpand") === n) return e;
191
190
  }
192
- return "reject" === i && throwRangeError("time zone offset mismatch"), disambiguatePossibleEpochNanoseconds(l, r, c, a);
191
+ return "reject" === i && throwRangeError("time zone offset mismatch"), disambiguatePossibleEpochNanoseconds(l, r, s, a);
193
192
  }
194
193
  function toTemporalZonedDateTime(e, t) {
195
- let o, n, r, a, i, s, c, l = !1, d = !0;
194
+ let o, n, r, a, i, c, s, l = !1, d = !0;
196
195
  if (isObject(e)) {
197
196
  if (isZonedDateTime(e)) {
198
197
  const o = getOptionsObject(t);
@@ -200,36 +199,36 @@ function toTemporalZonedDateTime(e, t) {
200
199
  }
201
200
  i = getTemporalCalendarIdentifierWithIsoDefault(e);
202
201
  const l = prepareCalendarFields(i, e, [
203
- Ft.t,
204
- Ft.u,
205
- Ft.v,
206
- Ft.T,
207
- Ft.D,
208
- Ft.I,
209
- Ft.O,
210
- Ft.F,
211
- Ft.S,
212
- Ft.$,
213
- Ft.M,
214
- Ft.P
215
- ], [Ft.P]);
202
+ Ot.t,
203
+ Ot.u,
204
+ Ot.v,
205
+ Ot.T,
206
+ Ot.D,
207
+ Ot.I,
208
+ Ot.O,
209
+ Ot.F,
210
+ Ot.S,
211
+ Ot.$,
212
+ Ot.M,
213
+ Ot.P
214
+ ], [Ot.P]);
216
215
  o = l.timeZone, n = l.offset;
217
216
  const d = getOptionsObject(t);
218
217
  r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, p);
219
218
  const m = interpretTemporalDateTimeFields(i, l, getTemporalOverflowOption(d));
220
- s = m.o, c = m.p;
219
+ c = m.o, s = m.p;
221
220
  } else {
222
221
  validateString(e);
223
- const m = parseIsoDateTime(e, [Xe]);
222
+ const m = parseIsoDateTime(e, [Ge]);
224
223
  o = toTemporalTimeZoneIdentifier(m.P.R), n = m.P.N, l = m.P.Z, i = canonicalizeCalendar(m.Y || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
225
224
  const u = getOptionsObject(t);
226
- r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, p), getTemporalOverflowOption(u), s = createIsoDateRecord(m.t, m.u, m.T), c = m.p;
225
+ r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, p), getTemporalOverflowOption(u), c = createIsoDateRecord(m.t, m.u, m.T), s = m.p;
227
226
  }
228
227
  const m = l ? S : n ? F : y;
229
- return createZonedDateTimeSlot(interpretISODateTimeOffset(s, c, m, m === F ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
228
+ return createZonedDateTimeSlot(interpretISODateTimeOffset(c, s, m, m === F ? 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) => Pe[e] && Pe[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
231
+ return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => be[e] && be[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
233
232
  }
234
233
  function createZonedDateTimeSlot(e, t, o, n) {
235
234
  return {
@@ -239,12 +238,12 @@ function createZonedDateTimeSlot(e, t, o, n) {
239
238
  W: n
240
239
  };
241
240
  }
242
- function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = G, s = M) {
243
- const c = roundTemporalInstant(e.U, a, i, s), l = epochSeconds(c) === epochSeconds(e.U) ? getOffsetNanosecondsForZonedDateTimeSlot(e) : getOffsetNanosecondsFor(e.P, c);
244
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(c, l), "iso8601", t, Y)}${r === W ? "" : formatDateTimeUtcOffsetRounded(l)}${n === L ? "" : `[${n === k ? "!" : ""}${e.P}]`}${formatCalendarAnnotation(e.Y, o)}`;
241
+ function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = _, c = M) {
242
+ const s = roundTemporalInstant(e.U, a, i, c), l = epochSeconds(s) === epochSeconds(e.U) ? getOffsetNanosecondsForZonedDateTimeSlot(e) : getOffsetNanosecondsFor(e.P, s);
243
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(s, l), "iso8601", t, Y)}${r === W ? "" : formatDateTimeUtcOffsetRounded(l)}${n === L ? "" : `[${n === k ? "!" : ""}${e.P}]`}${formatCalendarAnnotation(e.Y, o)}`;
245
244
  }
246
245
  function addZonedDateTime(e, t, o) {
247
- if (0 === dateDurationSign(t.A)) return addInstant(e.U, t.p);
246
+ if (!dateDurationSign(t.A)) return addInstant(e.U, t.p);
248
247
  const n = getIsoDateTimeForZonedDateTimeSlot(e);
249
248
  return addInstant(getEpochNanosecondsFor(e.P, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.Y, n.o, t.A, o), n.p)), g), t.p);
250
249
  }
@@ -253,19 +252,19 @@ function differenceZonedDateTime(e, t, o) {
253
252
  if (!n) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
254
253
  const r = getIsoDateTimeForZonedDateTimeSlot(e), a = getIsoDateTimeForZonedDateTimeSlot(t);
255
254
  if (!compareIsoDate(r.o, a.o)) return combineDateAndTimeDuration(zeroDateDuration(), timeDurationFromEpochNanosecondsDifference(t.U, e.U));
256
- let i, s = differenceTime(r.p, a.p);
257
- for (let o = vt(s) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), s = timeDurationFromEpochNanosecondsDifference(t.U, getEpochNanosecondsFor(e.P, i, g)), vt(s) === n); o++);
258
- return combineDateAndTimeDuration(calendarDateUntil(e.Y, r.o, i.o, largerOfTwoTemporalUnits(o, H)), s);
255
+ let i, c = differenceTime(r.p, a.p);
256
+ for (let o = wt(c) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), c = timeDurationFromEpochNanosecondsDifference(t.U, getEpochNanosecondsFor(e.P, i, g)), wt(c) === n); o++);
257
+ return combineDateAndTimeDuration(calendarDateUntil(e.Y, r.o, i.o, largerOfTwoTemporalUnits(o, H)), c);
259
258
  }
260
259
  function differenceZonedDateTimeWithRounding(e, t, o, n, r, a) {
261
260
  if (!isDateUnit(o)) return differenceInstant(e.U, t.U, n, r, a);
262
261
  const i = differenceZonedDateTime(e, t, o);
263
- return r === G && 1 === n ? i : roundRelativeDuration(i, e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o, n, r, a);
262
+ return r === _ && 1 === n ? i : roundRelativeDuration(i, e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o, n, r, a);
264
263
  }
265
264
  function differenceTemporalZonedDateTime(e, t, o, n) {
266
265
  const r = toTemporalZonedDateTime(o);
267
- calendarEquals(t.Y, r.Y) || throwRangeError(De);
268
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], G, q);
266
+ calendarEquals(t.Y, r.Y) || throwRangeError(Te);
267
+ const a = getDifferenceSettings(e, getOptionsObject(n), d, [], _, q);
269
268
  return isDateUnit(a.L) ? (timeZoneEquals(t.P, r.P) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.U, r.U) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.L, a.V, a.H, a.q), q), e)) : createTemporalDuration(createTemporalDurationSlot([
270
269
  0,
271
270
  0,
@@ -288,18 +287,18 @@ function getOffsetNanosecondsForZonedDateTimeSlot(e) {
288
287
  function getIsoDateTimeForZonedDateTimeSlot(e) {
289
288
  return getIsoDateTimeFromOffsetNanoseconds(e.U, getOffsetNanosecondsForZonedDateTimeSlot(e));
290
289
  }
291
- function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Me.prototype)) {
292
- return Ee.set(t, e), t;
290
+ function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Ee.prototype)) {
291
+ return ve.set(t, e), t;
293
292
  }
294
293
  function calendarIsoToDateForZonedDateTimeSlot(e) {
295
294
  return calendarIsoToDate(e.Y, getIsoDateTimeForZonedDateTimeSlot(e).o);
296
295
  }
297
296
  function getInternalSlotForZonedDateTime(e) {
298
- return Ee.get(e);
297
+ return ve.get(e);
299
298
  }
300
299
  function getInternalSlotOrThrowForZonedDateTime(e) {
301
300
  const t = getInternalSlotForZonedDateTime(e);
302
- return t || throwTypeError(he), t;
301
+ return t || throwTypeError(De), t;
303
302
  }
304
303
  function isZonedDateTime(e) {
305
304
  return !!getInternalSlotForZonedDateTime(e);
@@ -318,28 +317,28 @@ function createLruCache(e) {
318
317
  }
319
318
  };
320
319
  }
321
- function utcEpochMilliseconds(e, t, o, n = 0, a = 0, i = 0, s = 0) {
322
- return isoDateToEpochDays(e, t - 1, o) * r + Date.UTC(1970, 0, 1, n, a, i, s);
320
+ function utcEpochMilliseconds(e, t, o, n = 0, a = 0, i = 0, c = 0) {
321
+ return isoDateToEpochDays(e, t - 1, o) * r + Date.UTC(1970, 0, 1, n, a, i, c);
323
322
  }
324
323
  function clampEpochSecond(e) {
325
324
  return clamp(e, -1e10, Infinity);
326
325
  }
327
326
  function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
328
327
  if ("UTC" === t) return 0;
329
- const r = clampEpochSecond(o), a = Pe[t] ||= createLruCache(5e3), i = a.C(r);
328
+ const r = clampEpochSecond(o), a = be[t] ||= createLruCache(5e3), i = a.C(r);
330
329
  if (void 0 !== i) return i;
331
- const s = getFormatterForTimeZone(t).formatToParts(1e3 * r), c = (utcEpochMilliseconds(...[
330
+ const c = getFormatterForTimeZone(t).formatToParts(1e3 * r), s = (utcEpochMilliseconds(...[
332
331
  "year",
333
332
  "month",
334
333
  "day",
335
334
  "hour",
336
335
  "minute",
337
336
  "second"
338
- ].map((e) => toIntegerIfIntegral(s.find((t) => t.type === e).value))) - 1e3 * r) * e;
339
- return n || a.B(r, c), c;
337
+ ].map((e) => toIntegerIfIntegral(c.find((t) => t.type === e).value))) - 1e3 * r) * e;
338
+ return n || a.B(r, s), s;
340
339
  }
341
340
  function getFormatterForTimeZone(e) {
342
- return be[e] ||= new Pt("en-u-hc-h23", {
341
+ return Me[e] ||= new bt("en-u-hc-h23", {
343
342
  timeZone: e,
344
343
  year: "numeric",
345
344
  month: "numeric",
@@ -390,16 +389,16 @@ function toTemporalTimeZoneIdentifier(e) {
390
389
  const t = ((e) => {
391
390
  if (isTimeZoneIdentifier(e)) return parseTimeZoneIdentifier(e);
392
391
  const t = parseIsoDateTime(e, [
392
+ Ge,
393
393
  Xe,
394
394
  Qe,
395
395
  et,
396
396
  tt,
397
- ot,
398
- nt
397
+ ot
399
398
  ]).P, o = t.R || t.Z && "UTC" || t.N;
400
399
  return o || throwRangeError(invalidTimeZone(e)), parseTimeZoneIdentifier(o);
401
400
  })(e);
402
- return t.J ? getAvailableNamedTimeZoneIdentifier(t.J) : formatOffsetTimeZoneIdentifier(t.G);
401
+ return t.J ? getAvailableNamedTimeZoneIdentifier(t.J) : formatOffsetTimeZoneIdentifier(t._);
403
402
  }
404
403
  function getOffsetNanosecondsFor(e, t) {
405
404
  return isOffsetTimeZoneIdentifier(e) ? parseDateTimeUtcOffset(e) : getNamedTimeZoneOffsetNanosecondsForEpochSecond(e, epochSeconds(t));
@@ -421,7 +420,7 @@ function timeZoneEquals(e, t) {
421
420
  return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone;
422
421
  }
423
422
  function parseTimeZoneIdentifier(e) {
424
- return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { G: parseDateTimeUtcOffset(e) / t } : { J: e });
423
+ return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { _: parseDateTimeUtcOffset(e) / t } : { J: e });
425
424
  }
426
425
  function isOffsetTimeZoneIdentifier(e) {
427
426
  return /^[+-]/.test(e);
@@ -445,14 +444,14 @@ function combineIsoDateAndTimeRecord(e, t) {
445
444
  };
446
445
  }
447
446
  function interpretTemporalDateTimeFields(e, t, o) {
448
- return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Ft.D], t[Ft.I], t[Ft.O], t[Ft.F], t[Ft.S], t[Ft.$], o));
447
+ return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Ot.D], t[Ot.I], t[Ot.O], t[Ot.F], t[Ot.S], t[Ot.$], o));
449
448
  }
450
449
  function toTemporalDateTime(e, t) {
451
450
  if (isObject(e)) {
452
451
  if (isPlainDateTime(e)) {
453
452
  getTemporalOverflowOption(getOptionsObject(t));
454
453
  const o = getInternalSlotOrThrowForPlainDateTime(e);
455
- return createTemporalDateTime(o._, o.Y);
454
+ return createTemporalDateTime(o.G, o.Y);
456
455
  }
457
456
  if (isZonedDateTime(e)) {
458
457
  const o = getInternalSlotOrThrowForZonedDateTime(e);
@@ -465,29 +464,29 @@ function toTemporalDateTime(e, t) {
465
464
  }
466
465
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
467
466
  return createTemporalDateTime(interpretTemporalDateTimeFields(o, prepareCalendarFields(o, e, [
468
- Ft.t,
469
- Ft.u,
470
- Ft.v,
471
- Ft.T,
472
- Ft.D,
473
- Ft.I,
474
- Ft.O,
475
- Ft.F,
476
- Ft.S,
477
- Ft.$
467
+ Ot.t,
468
+ Ot.u,
469
+ Ot.v,
470
+ Ot.T,
471
+ Ot.D,
472
+ Ot.I,
473
+ Ot.O,
474
+ Ot.F,
475
+ Ot.S,
476
+ Ot.$
478
477
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
479
478
  }
480
479
  validateString(e);
481
- const o = parseIsoDateTime(e, [Qe]), n = canonicalizeCalendar(o.Y || "iso8601");
480
+ const o = parseIsoDateTime(e, [Xe]), n = canonicalizeCalendar(o.Y || "iso8601");
482
481
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(o.t, o.u, o.T), o.p || midnightTimeRecord()), n);
483
482
  }
484
- function balanceIsoDateTime(e, t, o, n, r, a, i, s, c) {
485
- const l = balanceTime(n, r, a, i, s, c);
483
+ function balanceIsoDateTime(e, t, o, n, r, a, i, c, s) {
484
+ const l = balanceTime(n, r, a, i, c, s);
486
485
  return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), l.K), l);
487
486
  }
488
- function createTemporalDateTime(e, t, o = Object.create(Ne.prototype)) {
489
- return Re.set(o, {
490
- _: validateIsoDateTime(e),
487
+ function createTemporalDateTime(e, t, o = Object.create(Re.prototype)) {
488
+ return Pe.set(o, {
489
+ G: validateIsoDateTime(e),
491
490
  Y: t
492
491
  }), o;
493
492
  }
@@ -503,23 +502,23 @@ function roundIsoDateTime(e, t, o, n) {
503
502
  }
504
503
  function differenceISODateTime(e, t, o, n) {
505
504
  let r = differenceTime(e.p, t.p);
506
- const a = vt(r);
505
+ const a = wt(r);
507
506
  let i = t.o;
508
507
  a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
509
- const s = largerOfTwoTemporalUnits(H, n), c = calendarDateUntil(o, e.o, i, s);
510
- return n !== s && (r = add24HourDaysToTimeDuration(r, c.K), c.K = 0), combineDateAndTimeDuration(c, r);
508
+ const c = largerOfTwoTemporalUnits(H, n), s = calendarDateUntil(o, e.o, i, c);
509
+ return n !== c && (r = add24HourDaysToTimeDuration(r, s.K), s.K = 0), combineDateAndTimeDuration(s, r);
511
510
  }
512
511
  function differencePlainDateTimeWithRounding(e, t, o, n, r, a, i) {
513
512
  if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
514
513
  validateIsoDateTime(e), validateIsoDateTime(t);
515
- const s = differenceISODateTime(e, t, o, n);
516
- return a === G && 1 === r ? s : roundRelativeDuration(s, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
514
+ const c = differenceISODateTime(e, t, o, n);
515
+ return a === _ && 1 === r ? c : roundRelativeDuration(c, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
517
516
  }
518
517
  function differenceTemporalPlainDateTime(e, t, o, n) {
519
518
  const r = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(o));
520
- calendarEquals(t.Y, r.Y) || throwRangeError(De);
521
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], G, H);
522
- return compareIsoDateTime(t._, r._) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t._, r._, t.Y, a.L, a.V, a.H, a.q), a.L), e)) : createTemporalDuration(createTemporalDurationSlot([
519
+ calendarEquals(t.Y, r.Y) || throwRangeError(Te);
520
+ const a = getDifferenceSettings(e, getOptionsObject(n), d, [], _, H);
521
+ return compareIsoDateTime(t.G, r.G) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.G, r.G, t.Y, a.L, a.V, a.H, a.q), a.L), e)) : createTemporalDuration(createTemporalDurationSlot([
523
522
  0,
524
523
  0,
525
524
  0,
@@ -533,21 +532,21 @@ function differenceTemporalPlainDateTime(e, t, o, n) {
533
532
  ]));
534
533
  }
535
534
  function addDurationToDateTime(e, t, o, n) {
536
- const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), s = addTime(t._.p, i.p);
537
- return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.Y, t._.o, adjustDateDurationRecord(i.A, s.K), a), s), t.Y);
535
+ const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), c = addTime(t.G.p, i.p);
536
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.Y, t.G.o, adjustDateDurationRecord(i.A, c.K), a), c), t.Y);
538
537
  }
539
538
  function validateIsoDateTime(e) {
540
539
  return ((e) => {
541
540
  const t = isoDateRecordToEpochDays(e.o);
542
541
  return Math.abs(t) <= 1e8 || -100000001 === t && !!compareTimeRecord(e.p, midnightTimeRecord());
543
- })(e) || throwRangeError(me), e;
542
+ })(e) || throwRangeError(de), e;
544
543
  }
545
544
  function getInternalSlotForPlainDateTime(e) {
546
- return Re.get(e);
545
+ return Pe.get(e);
547
546
  }
548
547
  function getInternalSlotOrThrowForPlainDateTime(e) {
549
548
  const t = getInternalSlotForPlainDateTime(e);
550
- return t || throwTypeError(he), t;
549
+ return t || throwTypeError(De), t;
551
550
  }
552
551
  function isPlainDateTime(e) {
553
552
  return !!getInternalSlotForPlainDateTime(e);
@@ -570,16 +569,16 @@ function differenceTime(e, t) {
570
569
  return timeDurationFromComponents(t.D - e.D, t.I - e.I, t.O - e.O, t.F - e.F, t.S - e.S, t.$ - e.$);
571
570
  }
572
571
  function toTemporalTime(e, t) {
573
- 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)));
572
+ 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)));
574
573
  validateString(e);
575
- const o = parseIsoDateTime(e, [tt]);
574
+ const o = parseIsoDateTime(e, [et]);
576
575
  return getTemporalOverflowOption(getOptionsObject(t)), o.p;
577
576
  }
578
577
  function toTimeRecordOrMidnight(e) {
579
578
  return void 0 === e ? midnightTimeRecord() : toTemporalTime(e);
580
579
  }
581
580
  function regulateTime(e, t, o, n, r, a, i) {
582
- 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));
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(le), createTimeRecord(e, t, o, n, r, a));
583
582
  }
584
583
  function isValidTime(e, t, o, n, r, a) {
585
584
  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);
@@ -595,23 +594,23 @@ function balanceTime(e, t, o, n, r, a) {
595
594
  K: divFloor(e, 24)
596
595
  };
597
596
  }
598
- function createTemporalTime(e, t = Object.create($e.prototype)) {
599
- return Ze.set(t, e), t;
597
+ function createTemporalTime(e, t = Object.create(Ze.prototype)) {
598
+ return Ne.set(t, e), t;
600
599
  }
601
600
  function toTemporalTimeRecord(e, t = !1) {
602
601
  let o = !1;
603
602
  const n = [
604
- Ft.D,
605
- Ft.S,
606
- Ft.F,
607
- Ft.I,
608
- Ft.$,
609
- Ft.O
603
+ Ot.D,
604
+ Ot.S,
605
+ Ot.F,
606
+ Ot.I,
607
+ Ot.$,
608
+ Ot.O
610
609
  ].map((n) => {
611
610
  const r = e[n];
612
611
  return void 0 !== r ? (o = !0, toIntegerWithTruncation(r)) : t ? void 0 : 0;
613
612
  });
614
- return o || throwTypeError(Ie), [
613
+ return o || throwTypeError(fe), [
615
614
  0,
616
615
  3,
617
616
  5,
@@ -631,22 +630,22 @@ function addTime(e, t) {
631
630
  return n.K += o[0], n;
632
631
  }
633
632
  function roundTime(e, n, r, a) {
634
- const i = nanosecondsForTimeUnit(clamp(r - 1, 3, 8)), s = e.D * o + e.I * t + 1e9 * e.O + 1e6 * e.F + 1e3 * e.S + e.$;
635
- return balanceTime(0, 0, 0, 0, 0, divFloor(s, i) * i + roundNumberToIncrement(modFloor(s, i), n * nanosecondsForTimeUnit(r), a));
633
+ const i = nanosecondsForTimeUnit(clamp(r - 1, 3, 8)), c = e.D * o + e.I * t + 1e9 * e.O + 1e6 * e.F + 1e3 * e.S + e.$;
634
+ return balanceTime(0, 0, 0, 0, 0, divFloor(c, i) * i + roundNumberToIncrement(modFloor(c, i), n * nanosecondsForTimeUnit(r), a));
636
635
  }
637
636
  function differenceTemporalPlainTime(e, t, o, n) {
638
- const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), l, [], G, q);
637
+ const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), l, [], _, q);
639
638
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.V, a.H, a.q)), a.L), e));
640
639
  }
641
640
  function addDurationToTime(e, t, o) {
642
641
  return createTemporalTime(addTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)).p));
643
642
  }
644
643
  function getInternalSlotOrThrowForPlainTime(e) {
645
- const t = Ze.get(e);
646
- return t || throwTypeError(he), t;
644
+ const t = Ne.get(e);
645
+ return t || throwTypeError(De), t;
647
646
  }
648
647
  function isPlainTime(e) {
649
- return Ze.has(e);
648
+ return Ne.has(e);
650
649
  }
651
650
  function optionalChain(e) {
652
651
  return e.reduceRight((e, t) => `${t}(?:${e})?`);
@@ -658,39 +657,34 @@ function createRegExp(e) {
658
657
  return RegExp(`^(?:${e})$`);
659
658
  }
660
659
  function isAmbiguousTemporalTimeString(e) {
661
- return rt.some((t) => {
660
+ return nt.some((t) => {
662
661
  const o = e.match(t);
663
662
  return o && isSemanticallyValid(o.groups);
664
663
  });
665
664
  }
666
665
  function isTimeZoneIdentifier(e) {
667
- return at.test(e);
668
- }
669
- function parseAnnotationsAndGetCalendar(e) {
670
- let t, o = !1;
671
- for (const n of e.matchAll(Ke)) {
672
- const e = !!n[1];
673
- "u-ca" === n[2] ? t ? (e || o) && throwRangeError(le) : (t = n[3], e && (o = !0)) : e && throwRangeError(le);
674
- }
675
- return t;
676
- }
677
- function getTimeRecordFromMatchedGroups(e) {
678
- const t = (e.g || "").padEnd(9, "0");
679
- return createTimeRecord(Se(e.d || 0), Se(e.e || 0), clamp(Se(e.f || 0), 0, 59), Se(t.slice(0, 3)), Se(t.slice(3, 6)), Se(t.slice(6)));
666
+ return rt.test(e);
680
667
  }
681
668
  function isSemanticallyValid(e) {
682
- 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)));
669
+ 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)));
683
670
  }
684
671
  function parseIsoDateTime(e, t) {
685
672
  for (const o of t) {
686
673
  const t = e.match(o);
687
- if (!t || !isSemanticallyValid(t.groups) || o === tt && isAmbiguousTemporalTimeString(e)) continue;
688
- const n = t.groups, r = parseAnnotationsAndGetCalendar(n.k || "");
689
- return n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(le), {
690
- t: mapUnlessUndefined(n.a || n.l, Se),
691
- u: Se(n.b || n.m || 1),
692
- T: Se(n.c || n.n || 1),
693
- p: n.d ? getTimeRecordFromMatchedGroups(n) : void 0,
674
+ if (!t || !isSemanticallyValid(t.groups) || o === et && isAmbiguousTemporalTimeString(e)) continue;
675
+ const n = t.groups;
676
+ let r;
677
+ if (n.k) {
678
+ let t = !1;
679
+ 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));
680
+ }
681
+ n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(parseError(e));
682
+ const a = (n.g || "").padEnd(9, "0");
683
+ return {
684
+ t: mapUnlessUndefined(n.a || n.l, Fe),
685
+ u: Fe(n.b || n.m || 1),
686
+ T: Fe(n.c || n.n || 1),
687
+ p: n.d ? createTimeRecord(Fe(n.d || 0), Fe(n.e || 0), clamp(Fe(n.f || 0), 0, 59), Fe(a.slice(0, 3)), Fe(a.slice(3, 6)), Fe(a.slice(6))) : void 0,
694
688
  P: {
695
689
  Z: !!n.i,
696
690
  N: n.h,
@@ -699,14 +693,14 @@ function parseIsoDateTime(e, t) {
699
693
  Y: r
700
694
  };
701
695
  }
702
- throwRangeError(le);
696
+ throwRangeError(parseError(e));
703
697
  }
704
698
  function parseDateTimeUtcOffset(e) {
705
- const o = e.match(st);
706
- return o || throwRangeError(le), Se(`${o[1]}1`) * (36e11 * Se(o[2]) + Se(o[4] || "") * t + 1e9 * Se(o[5] || "") + Se((o[6] || "").padEnd(9, "0")) + 0);
699
+ const o = e.match(it);
700
+ return o || throwRangeError(parseError(e)), Fe(`${o[1]}1`) * (36e11 * Fe(o[2]) + Fe(o[4] || "") * t + 1e9 * Fe(o[5] || "") + Fe((o[6] || "").padEnd(9, "0")) + 0);
707
701
  }
708
702
  function hasUtcOffsetSubMinuteParts(e) {
709
- return !!e.match(st)[5];
703
+ return !!e.match(it)[5];
710
704
  }
711
705
  function toTemporalMonthDay(e, t) {
712
706
  if (isObject(e)) {
@@ -714,17 +708,17 @@ function toTemporalMonthDay(e, t) {
714
708
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay(o.o, o.Y);
715
709
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
716
710
  return createTemporalMonthDay(calendarMonthDayFromFields(n, prepareCalendarFields(n, e, [
717
- Ft.t,
718
- Ft.u,
719
- Ft.v,
720
- Ft.T
711
+ Ot.t,
712
+ Ot.u,
713
+ Ot.v,
714
+ Ot.T
721
715
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
722
716
  }
723
717
  validateString(e);
724
- const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.Y || "iso8601");
718
+ const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.Y || "iso8601");
725
719
  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)), u), h), n);
726
720
  }
727
- function createTemporalMonthDay(e, t, o = Object.create(lt.prototype)) {
721
+ function createTemporalMonthDay(e, t, o = Object.create(st.prototype)) {
728
722
  return ct.set(o, {
729
723
  o: validateIsoDate(e),
730
724
  Y: t
@@ -738,7 +732,7 @@ function getInternalSlotForPlainMonthDay(e) {
738
732
  }
739
733
  function getInternalSlotOrThrowForPlainMonthDay(e) {
740
734
  const t = getInternalSlotForPlainMonthDay(e);
741
- return t || throwTypeError(he), t;
735
+ return t || throwTypeError(De), t;
742
736
  }
743
737
  function isPlainMonthDay(e) {
744
738
  return !!getInternalSlotForPlainMonthDay(e);
@@ -749,13 +743,13 @@ function toTemporalYearMonth(e, t) {
749
743
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(o.o, o.Y);
750
744
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
751
745
  return createTemporalYearMonth(calendarYearMonthFromFields(n, prepareCalendarFields(n, e, [
752
- Ft.t,
753
- Ft.u,
754
- Ft.v
746
+ Ot.t,
747
+ Ot.u,
748
+ Ot.v
755
749
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
756
750
  }
757
751
  validateString(e);
758
- const o = parseIsoDateTime(e, [nt]), n = canonicalizeCalendar(o.Y || "iso8601");
752
+ const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.Y || "iso8601");
759
753
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), m), h), n);
760
754
  }
761
755
  function balanceIsoYearMonth(e, t) {
@@ -764,8 +758,8 @@ function balanceIsoYearMonth(e, t) {
764
758
  u: modFloor(t - 1, 12) + 1
765
759
  };
766
760
  }
767
- function createTemporalYearMonth(e, t, o = Object.create(mt.prototype)) {
768
- return dt.set(o, {
761
+ function createTemporalYearMonth(e, t, o = Object.create(dt.prototype)) {
762
+ return lt.set(o, {
769
763
  o: validateIsoYearMonth(e),
770
764
  Y: t
771
765
  }), o;
@@ -775,8 +769,8 @@ function temporalYearMonthToString(e, t) {
775
769
  }
776
770
  function differenceTemporalPlainYearMonth(e, t, o, n) {
777
771
  const r = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(o));
778
- calendarEquals(t.Y, r.Y) || throwRangeError(De);
779
- const a = getDifferenceSettings(e, getOptionsObject(n), c, [x, H], V, z);
772
+ calendarEquals(t.Y, r.Y) || throwRangeError(Te);
773
+ const a = getDifferenceSettings(e, getOptionsObject(n), s, [x, H], V, z);
780
774
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
781
775
  0,
782
776
  0,
@@ -791,15 +785,15 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
791
785
  ]));
792
786
  const i = calendarDateFromFields(t.Y, createNullPrototypeObject({
793
787
  ...isoDateToFields(t.Y, t.o, m),
794
- [Ft.T]: 1
795
- }), h), s = calendarDateFromFields(t.Y, createNullPrototypeObject({
788
+ [Ot.T]: 1
789
+ }), h), c = calendarDateFromFields(t.Y, createNullPrototypeObject({
796
790
  ...isoDateToFields(t.Y, r.o, m),
797
- [Ft.T]: 1
791
+ [Ot.T]: 1
798
792
  }), h);
799
- let l = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, s, a.L), 0, 0), createTimeDurationFromSeconds(0));
793
+ let l = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.Y, i, c, a.L), 0, 0), createTimeDurationFromSeconds(0));
800
794
  if (a.H !== V || 1 !== a.V) {
801
795
  const e = combineIsoDateAndTimeRecord(i, midnightTimeRecord());
802
- l = roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(s, midnightTimeRecord())), e, void 0, t.Y, a.L, a.V, a.H, a.q);
796
+ l = roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(c, midnightTimeRecord())), e, void 0, t.Y, a.L, a.V, a.H, a.q);
803
797
  }
804
798
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(l, H), e));
805
799
  }
@@ -807,18 +801,18 @@ function addDurationToYearMonth(e, t, o, n) {
807
801
  const r = toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), a = getTemporalOverflowOption(getOptionsObject(n));
808
802
  return (r.A.X || r.A.K || signTimeDuration(r.p)) && throwRangeError("duration can contain only years and months"), createTemporalYearMonth(calendarYearMonthFromFields(t.Y, isoDateToFields(t.Y, calendarDateAdd(t.Y, calendarDateFromFields(t.Y, createNullPrototypeObject({
809
803
  ...isoDateToFields(t.Y, t.o, m),
810
- [Ft.T]: 1
804
+ [Ot.T]: 1
811
805
  }), h), r.A, a), m), a), t.Y);
812
806
  }
813
807
  function validateIsoYearMonth(e) {
814
- return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(me), e;
808
+ return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(de), e;
815
809
  }
816
810
  function getInternalSlotForPlainYearMonth(e) {
817
- return dt.get(e);
811
+ return lt.get(e);
818
812
  }
819
813
  function getInternalSlotOrThrowForPlainYearMonth(e) {
820
814
  const t = getInternalSlotForPlainYearMonth(e);
821
- return t || throwTypeError(he), t;
815
+ return t || throwTypeError(De), t;
822
816
  }
823
817
  function isPlainYearMonth(e) {
824
818
  return !!getInternalSlotForPlainYearMonth(e);
@@ -830,8 +824,8 @@ function createIsoDateRecord(e, t, o) {
830
824
  T: o
831
825
  };
832
826
  }
833
- function createTemporalDate(e, t, o = Object.create(Tt.prototype)) {
834
- return ut.set(o, {
827
+ function createTemporalDate(e, t, o = Object.create(ut.prototype)) {
828
+ return mt.set(o, {
835
829
  o: validateIsoDate(e),
836
830
  Y: t
837
831
  }), o;
@@ -851,22 +845,22 @@ function toTemporalDate(e, t) {
851
845
  if (isPlainDateTime(e)) {
852
846
  getTemporalOverflowOption(getOptionsObject(t));
853
847
  const o = getInternalSlotOrThrowForPlainDateTime(e);
854
- return createTemporalDate(o._.o, o.Y);
848
+ return createTemporalDate(o.G.o, o.Y);
855
849
  }
856
850
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
857
851
  return createTemporalDate(calendarDateFromFields(o, prepareCalendarFields(o, e, [
858
- Ft.t,
859
- Ft.u,
860
- Ft.v,
861
- Ft.T
852
+ Ot.t,
853
+ Ot.u,
854
+ Ot.v,
855
+ Ot.T
862
856
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
863
857
  }
864
858
  validateString(e);
865
- const o = parseIsoDateTime(e, [Qe]), n = canonicalizeCalendar(o.Y || "iso8601");
859
+ const o = parseIsoDateTime(e, [Xe]), n = canonicalizeCalendar(o.Y || "iso8601");
866
860
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDate(createIsoDateRecord(o.t, o.u, o.T), n);
867
861
  }
868
862
  function regulateIsoDate(e, t, o, n) {
869
- 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));
863
+ return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(le), createIsoDateRecord(e, t, o));
870
864
  }
871
865
  function isValidIsoDate(e, t, o) {
872
866
  return isWithin(t, 1, 12) && isWithin(o, 1, isoDaysInMonth(e, t));
@@ -885,8 +879,8 @@ function compareIsoDate(e, t) {
885
879
  }
886
880
  function differenceTemporalPlainDate(e, t, o, n) {
887
881
  const r = getInternalSlotOrThrowForPlainDate(toTemporalDate(o));
888
- calendarEquals(t.Y, r.Y) || throwRangeError(De);
889
- const a = getDifferenceSettings(e, getOptionsObject(n), c, [], H, H);
882
+ calendarEquals(t.Y, r.Y) || throwRangeError(Te);
883
+ const a = getDifferenceSettings(e, getOptionsObject(n), s, [], H, H);
890
884
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
891
885
  0,
892
886
  0,
@@ -913,11 +907,11 @@ function addDurationToDate(e, t, o, n) {
913
907
  })(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.Y);
914
908
  }
915
909
  function getInternalSlotForPlainDate(e) {
916
- return ut.get(e);
910
+ return mt.get(e);
917
911
  }
918
912
  function getInternalSlotOrThrowForPlainDate(e) {
919
913
  const t = getInternalSlotForPlainDate(e);
920
- return t || throwTypeError(he), t;
914
+ return t || throwTypeError(De), t;
921
915
  }
922
916
  function isPlainDate(e) {
923
917
  return !!getInternalSlotForPlainDate(e);
@@ -926,7 +920,7 @@ function validateIsoDate(e) {
926
920
  return validateIsoDateTime(combineIsoDateAndTimeRecord(e, createTimeRecord(12, 0, 0, 0, 0, 0))), e;
927
921
  }
928
922
  function formatToParts(e, t) {
929
- return (Dt[e] ||= new Pt("en", {
923
+ return (Tt[e] ||= new bt("en", {
930
924
  year: "numeric",
931
925
  month: "numeric",
932
926
  day: "numeric",
@@ -947,7 +941,7 @@ function extractYearMonthDay(e, t) {
947
941
  };
948
942
  }
949
943
  function yearMonthDay(e, t) {
950
- const o = pt[e].C(t);
944
+ const o = ht[e].C(t);
951
945
  if (o) return o;
952
946
  const n = ((e, t) => {
953
947
  const o = formatToParts(e, t), n = [
@@ -961,17 +955,17 @@ function yearMonthDay(e, t) {
961
955
  T: toIntegerIfIntegral(n[2])
962
956
  };
963
957
  })(e, t);
964
- return pt[e].B(t, n), n;
958
+ return ht[e].B(t, n), n;
965
959
  }
966
960
  function getNewYear(e, t) {
967
- let o = ht[e].C(t);
961
+ let o = Dt[e].C(t);
968
962
  if (o) return o;
969
963
  let n = isoDateToEpochDays(t, 0, 1985 === t ? 53 : Math.floor(modFloor(-10.8822 * t + 16, 29.53)) + 23), r = yearMonthDay(e, n);
970
964
  for (let o = 0; "M01" !== r.v; o++) {
971
965
  if (o > 20) throw new Error("unexpected calendar error");
972
966
  n += r.t < t ? 31 - r.T : -r.T, r = yearMonthDay(e, n);
973
967
  }
974
- return ht[e].B(t, n - r.T + 1), n - r.T + 1;
968
+ return Dt[e].B(t, n - r.T + 1), n - r.T + 1;
975
969
  }
976
970
  function ordinalMonthToMonthCode(e, t, o) {
977
971
  return yearMonthDay(e, getNewYear(e, t) + 30 * (o - 1)).v;
@@ -1009,10 +1003,10 @@ function epochDaysToDate$6(e, t) {
1009
1003
  return t - getNewYear(e, o) + 1;
1010
1004
  },
1011
1005
  ie: {
1012
- se: void 0,
1006
+ ce: void 0,
1013
1007
  t: void 0
1014
1008
  },
1015
- ce: 7,
1009
+ se: 7,
1016
1010
  get le() {
1017
1011
  const o = yearMonthDay(e, t);
1018
1012
  return daysInMonth$6(e, o.t, Math.round((t - o.T - getNewYear(e, o.t)) / 29.53) + 1);
@@ -1097,10 +1091,10 @@ function epochDaysToDate$2(e, t) {
1097
1091
  re: isoDayOfWeek(epochDaysToIsoDate(t)),
1098
1092
  ae: t - calendarIntegersToEpochDays$2(e, o, 1, 1) + 1,
1099
1093
  ie: {
1100
- se: void 0,
1094
+ ce: void 0,
1101
1095
  t: void 0
1102
1096
  },
1103
- ce: 7,
1097
+ se: 7,
1104
1098
  le: daysInMonth$2(o, n),
1105
1099
  de: +isLeapYear$1(o) + 354,
1106
1100
  me: 12,
@@ -1108,10 +1102,10 @@ function epochDaysToDate$2(e, t) {
1108
1102
  };
1109
1103
  }
1110
1104
  function getYearMonthDay(e) {
1111
- const t = gt.C(e);
1105
+ const t = pt.C(e);
1112
1106
  if (t) return t;
1113
1107
  const o = extractYearMonthDay("islamic-umalqura", e);
1114
- return gt.B(e, o), o;
1108
+ return pt.B(e, o), o;
1115
1109
  }
1116
1110
  function getFirstDayOfMonth(e, t) {
1117
1111
  const o = balanceIsoYearMonth(e, t), n = calendarIntegersToEpochDays$2("islamic-civil", o.t, o.u, 1);
@@ -1124,10 +1118,10 @@ function constrainDay$2(e, t, o) {
1124
1118
  return o < 30 ? o : clamp(o, 1, ((e, t) => getFirstDayOfMonth(e, t + 1) - getFirstDayOfMonth(e, t))(e, t));
1125
1119
  }
1126
1120
  function startOfYear(e) {
1127
- const t = ft.C(e);
1121
+ const t = gt.C(e);
1128
1122
  if (t) return t;
1129
1123
  const o = isoDateToEpochDays(e + 621, 4, 1), n = extractYearMonthDay("persian", o), r = o - dayOfYearFromMonthDay(n.u, n.T) + 1;
1130
- return ft.B(e, r), r;
1124
+ return gt.B(e, r), r;
1131
1125
  }
1132
1126
  function dayOfYearFromMonthDay(e, t) {
1133
1127
  return 30 * (e - 1) + t + clamp(e - 1, 0, 6);
@@ -1157,7 +1151,7 @@ function daysInMonth(e, t) {
1157
1151
  return t <= 6 ? 31 : 12 !== t || isLeapYear(e) ? 30 : 29;
1158
1152
  }
1159
1153
  function canonicalizeCalendar(e) {
1160
- return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : Ot[e] ? e : throwRangeError(((e) => `calendar not supported in this polyfill: ${e}`)(e));
1154
+ return "islamicc" === (e = asciiLowerCase(e)) ? "islamic-civil" : "ethiopic-amete-alem" === e ? "ethioaa" : It[e] ? e : throwRangeError(((e) => `unsupported calendar: ${e}`)(e));
1161
1155
  }
1162
1156
  function calendarDateAdd(e, t, o, n) {
1163
1157
  if (isIsoLikeCalendar(e) || !o.ee && !o.te) return ((e, t, o) => {
@@ -1191,43 +1185,43 @@ function calendarDateUntil(e, t, o, n) {
1191
1185
  return o === z ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
1192
1186
  })(t, o, n);
1193
1187
  const a = nonIsoCalendarIsoToDate(e, t), i = nonIsoCalendarIsoToDate(e, o);
1194
- let s, c = 0;
1195
- if (n === z) for (c = i.t - a.t; (s = nonIsoDateSurpasses(e, r, a, i, c, 0)).Te; c -= r);
1196
- const l = ("hebrew" === e ? (d = (s || a).t, m = (s || a).u, monthNumber(i.t, i.u) - monthNumber(d, m)) : isChineseDangi(e) ? (function(e, t, o, n, r) {
1188
+ let c, s = 0;
1189
+ if (n === z) for (s = i.t - a.t; (c = nonIsoDateSurpasses(e, r, a, i, s, 0)).Te; s -= r);
1190
+ const l = ("hebrew" === e ? (d = (c || a).t, m = (c || a).u, monthNumber(i.t, i.u) - monthNumber(d, m)) : isChineseDangi(e) ? (function(e, t, o, n, r) {
1197
1191
  if (t === n) return r - o;
1198
- const a = calendarIntegersToEpochDays$6(e, t, o, 1), i = calendarIntegersToEpochDays$6(e, n, r, 1), s = sign(i - a);
1192
+ const a = calendarIntegersToEpochDays$6(e, t, o, 1), i = calendarIntegersToEpochDays$6(e, n, r, 1), c = sign(i - a);
1199
1193
  if (Math.abs(i - a) <= 15e6) return Math.round((i - a) / 29.5306);
1200
- let c = 0, l = a;
1201
- for (; (i - l) * s > 0;) {
1202
- let t = l + clamp(15e6, 1, Math.abs(i - l)) * s;
1203
- t -= yearMonthDay(e, t).T - 1, c += Math.round((t - l) / 29.5306), l = t;
1194
+ let s = 0, l = a;
1195
+ for (; (i - l) * c > 0;) {
1196
+ let t = l + clamp(15e6, 1, Math.abs(i - l)) * c;
1197
+ t -= yearMonthDay(e, t).T - 1, s += Math.round((t - l) / 29.5306), l = t;
1204
1198
  }
1205
- return c;
1206
- })(e, (s || a).t, (s || a).u, i.t, i.u) : (i.t - (s || a).t) * a.me + i.u - (s || a).u) - (r * (a.T - i.T) > 0 ? r : 0);
1199
+ return s;
1200
+ })(e, (c || a).t, (c || a).u, i.t, i.u) : (i.t - (c || a).t) * a.me + i.u - (c || a).u) - (r * (a.T - i.T) > 0 ? r : 0);
1207
1201
  var d, m;
1208
- const u = nonIsoDateSurpasses(e, r, a, i, c, l);
1209
- return createDateDurationRecord(c, l, 0, isoDateRecordToEpochDays(o) - isoDateRecordToEpochDays(calendarIntegersToIso(e, u.t, u.u, constrainDay(e, u.t, u.u, a.T, h))));
1202
+ const u = nonIsoDateSurpasses(e, r, a, i, s, l);
1203
+ return createDateDurationRecord(s, l, 0, isoDateRecordToEpochDays(o) - isoDateRecordToEpochDays(calendarIntegersToIso(e, u.t, u.u, constrainDay(e, u.t, u.u, a.T, h))));
1210
1204
  }
1211
1205
  function calendarDateToIso(e, t, o) {
1212
- const n = t[Ft.t], r = t[Ft.u], a = mapUnlessUndefined(t[Ft.v], parseMonthCode), i = t[Ft.T];
1213
- if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[Ft.t], e[Ft.u], e[Ft.T], t))({
1206
+ const n = t[Ot.t], r = t[Ot.u], a = mapUnlessUndefined(t[Ot.v], parseMonthCode), i = t[Ot.T];
1207
+ if (isIsoLikeCalendar(e)) return ((e, t) => regulateIsoDate(e[Ot.t], e[Ot.u], e[Ot.T], t))({
1214
1208
  ...t,
1215
1209
  year: n + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0)
1216
1210
  }, o);
1217
1211
  a && constrainMonthCode(e, n, a, o);
1218
- const s = constrainMonth(e, n, r, o);
1219
- return calendarIntegersToIso(e, n, s, constrainDay(e, n, s, i, o));
1212
+ const c = constrainMonth(e, n, r, o);
1213
+ return calendarIntegersToIso(e, n, c, constrainDay(e, n, c, i, o));
1220
1214
  }
1221
1215
  function nonIsoCalendarIsoToDate(e, t) {
1222
1216
  const o = isoDateRecordToEpochDays(t), n = {
1223
1217
  ...isoCalendarIsoToDate(t),
1224
1218
  ie: {
1225
1219
  t: void 0,
1226
- se: void 0
1220
+ ce: void 0
1227
1221
  }
1228
1222
  };
1229
1223
  if ("japanese" === e) {
1230
- const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = Ot[e].get(r);
1224
+ const r = o >= 18017 ? "reiwa" : o >= 6947 ? "heisei" : o >= -15713 ? "showa" : o >= -20974 ? "taisho" : o >= -35428 ? "meiji" : t.t > 0 ? "ce" : "bce", a = It[e].get(r);
1231
1225
  return {
1232
1226
  oe: r,
1233
1227
  ne: "bce" === r ? 1 - t.t : t.t - a + 1,
@@ -1260,10 +1254,10 @@ function nonIsoCalendarIsoToDate(e, t) {
1260
1254
  re: isoDayOfWeek(epochDaysToIsoDate(t)),
1261
1255
  ae: n,
1262
1256
  ie: {
1263
- se: void 0,
1257
+ ce: void 0,
1264
1258
  t: void 0
1265
1259
  },
1266
- ce: 7,
1260
+ se: 7,
1267
1261
  le: daysInMonth$5(o, r),
1268
1262
  de: mathematicalInLeapYear$2(o) + 365,
1269
1263
  me: 13,
@@ -1283,10 +1277,10 @@ function nonIsoCalendarIsoToDate(e, t) {
1283
1277
  re: isoDayOfWeek(t),
1284
1278
  ae: e - firstDayOfYear(o) + 1,
1285
1279
  ie: {
1286
- se: void 0,
1280
+ ce: void 0,
1287
1281
  t: void 0
1288
1282
  },
1289
- ce: 7,
1283
+ se: 7,
1290
1284
  le: daysInMonth$3(o, r),
1291
1285
  de: 365 + n,
1292
1286
  me: 12,
@@ -1314,10 +1308,10 @@ function nonIsoCalendarIsoToDate(e, t) {
1314
1308
  return getDate(e).ae;
1315
1309
  },
1316
1310
  ie: {
1317
- se: void 0,
1311
+ ce: void 0,
1318
1312
  t: void 0
1319
1313
  },
1320
- ce: 7,
1314
+ se: 7,
1321
1315
  get le() {
1322
1316
  const t = getDate(e);
1323
1317
  return daysInMonth(t.t, t.u);
@@ -1353,10 +1347,10 @@ function nonIsoCalendarIsoToDate(e, t) {
1353
1347
  return e - getFirstDayOfMonth(getYearMonthDay(e).t, 1) + 1;
1354
1348
  },
1355
1349
  ie: {
1356
- se: void 0,
1350
+ ce: void 0,
1357
1351
  t: void 0
1358
1352
  },
1359
- ce: 7,
1353
+ se: 7,
1360
1354
  get le() {
1361
1355
  const t = getYearMonthDay(e);
1362
1356
  return getFirstDayOfMonth(t.t, t.u + 1) - getFirstDayOfMonth(t.t, t.u);
@@ -1387,10 +1381,10 @@ function nonIsoCalendarIsoToDate(e, t) {
1387
1381
  re: isoDayOfWeek(t),
1388
1382
  ae: e - calendarIntegersToEpochDays$4(o, 1, 1) + 1,
1389
1383
  ie: {
1390
- se: void 0,
1384
+ ce: void 0,
1391
1385
  t: void 0
1392
1386
  },
1393
- ce: 7,
1387
+ se: 7,
1394
1388
  le: daysInMonth$4(o, n),
1395
1389
  de: calendarIntegersToEpochDays$4(o + 1, 1, 1) - calendarIntegersToEpochDays$4(o, 1, 1),
1396
1390
  me: isLeapYear$2(o) ? 13 : 12,
@@ -1399,17 +1393,17 @@ function nonIsoCalendarIsoToDate(e, t) {
1399
1393
  })(o) : epochDaysToDate$2(e, o);
1400
1394
  }
1401
1395
  function calendarSupportsEra(e) {
1402
- return !!Ot[e].size;
1396
+ return !!It[e].size;
1403
1397
  }
1404
1398
  function canonicalizeEraInCalendar(e, t) {
1405
1399
  const o = "ad" === t ? "ce" : "bc" === t ? "bce" : t;
1406
- return Ot[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1400
+ return It[e].has(o) ? o : throwRangeError(((e) => `invalid era: ${e}`)(t));
1407
1401
  }
1408
1402
  function constrainMonthCode(e, t, o, n) {
1409
- if ("hebrew" === e) return o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(me) : [6, !1] : o;
1403
+ if ("hebrew" === e) return o[1] && !isLeapYear$2(t) ? "reject" === n ? throwRangeError(le) : [6, !1] : o;
1410
1404
  if (isChineseDangi(e)) {
1411
1405
  const r = ((e, t, o) => o[1] && ordinalMonthToMonthCode(e, t, o[0] + 1) !== createMonthCode(...o) ? [o[0], !1] : o)(e, t, o);
1412
- return o !== r && "reject" === n ? throwRangeError(me) : r;
1406
+ return o !== r && "reject" === n ? throwRangeError(le) : r;
1413
1407
  }
1414
1408
  return o;
1415
1409
  }
@@ -1433,11 +1427,11 @@ function isChineseDangi(e) {
1433
1427
  }
1434
1428
  function constrainDay(e, t, o, n, r) {
1435
1429
  const a = "persian" === e ? ((e, t, o) => o < 30 ? o : clamp(o, 1, daysInMonth(e, t)))(t, o, n) : "islamic-umalqura" === e ? constrainDay$2(t, o, n) : isChineseDangi(e) ? ((e, t, o, n) => n <= 29 ? n : clamp(n, 1, daysInMonth$6(e, t, o)))(e, t, o, n) : clamp(n, 1, isCopticOrEthiopic(e) ? daysInMonth$5(t, o) : "indian" === e ? daysInMonth$3(t, o) : "hebrew" === e ? daysInMonth$4(t, o) : daysInMonth$2(t, o));
1436
- return n !== a && "reject" === r ? throwRangeError(me) : a;
1430
+ return n !== a && "reject" === r ? throwRangeError(le) : a;
1437
1431
  }
1438
1432
  function constrainMonth(e, t, o, n) {
1439
1433
  const r = isChineseDangi(e) ? ((e, t, o) => isWithin(o, 1, 12) ? o : clamp(o, 1, monthsInYear(e, t)))(e, t, o) : clamp(o, 1, "hebrew" === e && isLeapYear$2(t) || isCopticOrEthiopic(e) ? 13 : 12);
1440
- return r !== o && "reject" === n && throwRangeError(me), r;
1434
+ return r !== o && "reject" === n && throwRangeError(le), r;
1441
1435
  }
1442
1436
  function balanceNonIsoYearMonth(e, t, o) {
1443
1437
  if ("hebrew" === e) return ((e, t) => {
@@ -1474,7 +1468,7 @@ function parseMonthCode(e) {
1474
1468
  const t = toPrimitive(e);
1475
1469
  validateString(t);
1476
1470
  const o = t.match(/M(\d\d)(L?)/);
1477
- return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Se(o[1]), !!o[2]];
1471
+ return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Fe(o[1]), !!o[2]];
1478
1472
  }
1479
1473
  function createMonthCode(e, t = !1) {
1480
1474
  return `M${toZeroPaddedDecimalString(e, 2)}${t ? "L" : ""}`;
@@ -1485,16 +1479,16 @@ function prepareCalendarFields(e, t, o, n) {
1485
1479
  let a = !1;
1486
1480
  for (const e of o) {
1487
1481
  const o = t[e];
1488
- void 0 !== o ? (a = !0, r[e] = yt[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = yt[e][1]);
1482
+ void 0 !== o ? (a = !0, r[e] = St[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = St[e][1]);
1489
1483
  }
1490
- return n || a || throwTypeError(Ie), r;
1484
+ return n || a || throwTypeError(fe), r;
1491
1485
  }
1492
1486
  function calendarMergeFields(e, t, o) {
1493
1487
  const n = ((e, t) => {
1494
1488
  const o = [];
1495
- return void 0 !== t[Ft.u] && o.push(Ft.v), void 0 !== t[Ft.v] && o.push(Ft.u), !calendarSupportsEra(e) || void 0 === t[Ft.oe] && void 0 === t[Ft.ne] && void 0 === t[Ft.t] || o.push(Ft.oe, Ft.ne, Ft.t), !((e) => "japanese" === e)(e) || void 0 === t[Ft.T] && void 0 === t[Ft.u] && void 0 === t[Ft.v] || o.push(Ft.oe, Ft.ne), o;
1489
+ return void 0 !== t[Ot.u] && o.push(Ot.v), void 0 !== t[Ot.v] && o.push(Ot.u), !calendarSupportsEra(e) || void 0 === t[Ot.oe] && void 0 === t[Ot.ne] && void 0 === t[Ot.t] || o.push(Ot.oe, Ot.ne, Ot.t), !((e) => "japanese" === e)(e) || void 0 === t[Ot.T] && void 0 === t[Ot.u] && void 0 === t[Ot.v] || o.push(Ot.oe, Ot.ne), o;
1496
1490
  })(e, o), r = createEmptyCalendarFieldsRecord();
1497
- for (const e of St) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
1491
+ for (const e of Ft) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
1498
1492
  return r;
1499
1493
  }
1500
1494
  function toTemporalCalendarIdentifier(e) {
@@ -1502,15 +1496,15 @@ function toTemporalCalendarIdentifier(e) {
1502
1496
  return t ? t.Y : (validateString(e), canonicalizeCalendar(((e) => {
1503
1497
  try {
1504
1498
  return parseIsoDateTime(e, [
1499
+ Ge,
1505
1500
  Xe,
1506
1501
  Qe,
1507
1502
  et,
1508
1503
  tt,
1509
- ot,
1510
- nt
1504
+ ot
1511
1505
  ]).Y || "iso8601";
1512
1506
  } catch {
1513
- return it.test(e) || throwRangeError(le), e;
1507
+ return at.test(e) || throwRangeError(parseError(e)), e;
1514
1508
  }
1515
1509
  })(e)));
1516
1510
  }
@@ -1527,21 +1521,21 @@ function calendarYearMonthFromFields(e, t, o) {
1527
1521
  function calendarMonthDayFromFields(e, t, o) {
1528
1522
  return calendarResolveFields(e, t, u), (function(e, t, o) {
1529
1523
  if (isIsoLikeCalendar(e)) return ((e, t, o) => {
1530
- const n = regulateIsoDate(e[Ft.t] ?? 1972, e[Ft.u], e[Ft.T], t);
1524
+ const n = regulateIsoDate(e[Ot.t] ?? 1972, e[Ot.u], e[Ot.T], t);
1531
1525
  return o || validateIsoDate(n), createIsoDateRecord(1972, n.u, n.T);
1532
1526
  })({
1533
1527
  ...t,
1534
1528
  year: mapUnlessUndefined(t.year, (t) => t + ("buddhist" === e ? -543 : "roc" === e ? 1911 : 0))
1535
1529
  }, o, "iso8601" === e);
1536
- const n = t[Ft.t];
1537
- let r = t[Ft.u], a = mapUnlessUndefined(t[Ft.v], parseMonthCode), i = t[Ft.T];
1530
+ const n = t[Ot.t];
1531
+ let r = t[Ot.u], a = mapUnlessUndefined(t[Ot.v], parseMonthCode), i = t[Ot.T];
1538
1532
  return void 0 !== n ? (a || (r = constrainMonth(e, n, r, o)), a = a ? constrainMonthCode(e, n, a, o) : parseMonthCode(nonIsoCalendarIsoToDate(e, calendarIntegersToIso(e, n, r, 1)).v), i = constrainDay(e, n, r, i, o), validateIsoDate(calendarIntegersToIso(e, n, r, i))) : i = ((e, t, o, n) => {
1539
1533
  if (isChineseDangi(e) || "islamic-umalqura" === e || "persian" === e) {
1540
1534
  const r = clamp(o, 1, "persian" === e && t[0] <= 6 ? 31 : 30);
1541
- return o !== r && "reject" === n ? throwRangeError(me) : r;
1535
+ return o !== r && "reject" === n ? throwRangeError(le) : r;
1542
1536
  }
1543
1537
  return "hebrew" === e ? t[1] ? constrainDay(e, 3, 6, o, n) : constrainDay(e, 1, t[0], o, n) : constrainDay(e, isCopticOrEthiopic(e) ? 3 : 2, t[0], o, n);
1544
- })(e, a, i, o), isChineseDangi(e) && a[1] && (1 === a[0] || 12 === a[0] || 30 === i && (2 === a[0] || isWithin(a[0], 8, 11))) && ("reject" === o && throwRangeError(me), a[1] = !1), isCopticOrEthiopic(e) ? epochDaysToIsoDate(((e, t) => 13 === e && 6 === t ? 618 : (30 * (e - 1) + t + 252) % 365 + 731)(a[0], i)) : "indian" === e ? epochDaysToIsoDate(((e, t) => calendarIntegersToEpochDays$3(30 * e + t <= 310 ? 1894 : 1893, e, t))(a[0], i)) : "persian" === e ? epochDaysToIsoDate(((e, t) => {
1538
+ })(e, a, i, o), isChineseDangi(e) && a[1] && (1 === a[0] || 12 === a[0] || 30 === i && (2 === a[0] || isWithin(a[0], 8, 11))) && ("reject" === o && throwRangeError(le), a[1] = !1), isCopticOrEthiopic(e) ? epochDaysToIsoDate(((e, t) => 13 === e && 6 === t ? 618 : (30 * (e - 1) + t + 252) % 365 + 731)(a[0], i)) : "indian" === e ? epochDaysToIsoDate(((e, t) => calendarIntegersToEpochDays$3(30 * e + t <= 310 ? 1894 : 1893, e, t))(a[0], i)) : "persian" === e ? epochDaysToIsoDate(((e, t) => {
1545
1539
  if (12 === e && 30 === t) {
1546
1540
  for (let o = 1350;; o--) if (isLeapYear(o)) return calendarIntegersToEpochDays(o, e, t);
1547
1541
  }
@@ -1594,13 +1588,13 @@ function isoWeekOfYear(e) {
1594
1588
  const t = e.t, o = divFloor(isoDayOfYear(e) + 10 - isoDayOfWeek(e), 7);
1595
1589
  return o < 1 ? {
1596
1590
  t: t - 1,
1597
- se: isoWeeksInYear(t - 1)
1591
+ ce: isoWeeksInYear(t - 1)
1598
1592
  } : o > isoWeeksInYear(t) ? {
1599
1593
  t: t + 1,
1600
- se: 1
1594
+ ce: 1
1601
1595
  } : {
1602
1596
  t,
1603
- se: o
1597
+ ce: o
1604
1598
  };
1605
1599
  }
1606
1600
  function isoDayOfYear(e) {
@@ -1618,7 +1612,7 @@ function isoCalendarIsoToDate(e) {
1618
1612
  re: isoDayOfWeek(e),
1619
1613
  ae: isoDayOfYear(e),
1620
1614
  ie: isoWeekOfYear(e),
1621
- ce: 7,
1615
+ se: 7,
1622
1616
  le: isoDaysInMonth(e.t, e.u),
1623
1617
  de: (t = e.t, 365 + mathematicalInLeapYear(t)),
1624
1618
  me: 12,
@@ -1633,30 +1627,30 @@ function calendarExtraFields(e, t) {
1633
1627
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1634
1628
  }
1635
1629
  function isoResolveFields(e, t) {
1636
- t !== u && void 0 === e[Ft.t] && throwTypeError(missingField(Ft.t)), t !== m && void 0 === e[Ft.T] && throwTypeError(missingField(Ft.T)), void 0 === e[Ft.v] && void 0 === e[Ft.u] && throwTypeError(missingField("month, monthCode"));
1637
- const o = mapUnlessUndefined(e[Ft.v], parseMonthCode);
1638
- o && ((o[0] > 12 || o[1] || void 0 !== e[Ft.u] && o[0] !== e[Ft.u]) && throwRangeError(ge), e[Ft.u] = o[0]);
1639
- }
1640
- function calendarResolveFields(e, t, o = c) {
1641
- "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = c) {
1642
- const n = t[Ft.oe], r = t[Ft.ne];
1643
- let a = t[Ft.t];
1644
- const i = t[Ft.v], s = t[Ft.u], l = t[Ft.T];
1645
- if (o === u && void 0 !== i && void 0 === s || void 0 !== a || calendarSupportsEraForNonIsoCalendars(e) && void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), calendarSupportsEraForNonIsoCalendars(e) && void 0 === n != (void 0 === r) && throwTypeError(), o !== m && void 0 === l && throwTypeError(missingField("day")), s === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
1630
+ t !== u && void 0 === e[Ot.t] && throwTypeError(missingField(Ot.t)), t !== m && void 0 === e[Ot.T] && throwTypeError(missingField(Ot.T)), void 0 === e[Ot.v] && void 0 === e[Ot.u] && throwTypeError(missingField("month, monthCode"));
1631
+ const o = mapUnlessUndefined(e[Ot.v], parseMonthCode);
1632
+ o && ((o[0] > 12 || o[1] || void 0 !== e[Ot.u] && o[0] !== e[Ot.u]) && throwRangeError(pe), e[Ot.u] = o[0]);
1633
+ }
1634
+ function calendarResolveFields(e, t, o = s) {
1635
+ "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = s) {
1636
+ const n = t[Ot.oe], r = t[Ot.ne];
1637
+ let a = t[Ot.t];
1638
+ const i = t[Ot.v], c = t[Ot.u], l = t[Ot.T];
1639
+ if (o === u && void 0 !== i && void 0 === c || void 0 !== a || calendarSupportsEraForNonIsoCalendars(e) && void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), calendarSupportsEraForNonIsoCalendars(e) && void 0 === n != (void 0 === r) && throwTypeError(), o !== m && void 0 === l && throwTypeError(missingField("day")), c === i && throwTypeError(missingField("month, monthCode")), calendarSupportsEraForNonIsoCalendars(e) && void 0 !== r) {
1646
1640
  const o = ((e, t, o) => {
1647
- const n = canonicalizeEraInCalendar(e, t), r = Ot[e].get(n);
1641
+ const n = canonicalizeEraInCalendar(e, t), r = It[e].get(n);
1648
1642
  return !1 === r ? 1 - o : r + o - 1;
1649
1643
  })(e, canonicalizeEraInCalendar(e, n), r);
1650
- void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Ft.t] = o;
1644
+ void 0 !== a && a !== o && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Ot.t] = o;
1651
1645
  }
1652
- if (t[Ft.oe] = t[Ft.ne] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1646
+ if (t[Ot.oe] = t[Ot.ne] = void 0, isIsoLikeCalendar(e)) isoResolveFields(t, o);
1653
1647
  else if (i) {
1654
1648
  const o = parseMonthCode(i);
1655
1649
  ((e, t) => isWithin(t[0], 1, 12) && !t[1] || isChineseDangi(e) && isWithin(t[0], 1, 12) || isCopticOrEthiopic(e) && 13 === t[0] && !t[1] || "hebrew" === e && 5 === t[0] && t[1])(e, o) || throwRangeError(invalidMonthCode(i));
1656
- const n = t[Ft.t];
1650
+ const n = t[Ot.t];
1657
1651
  if (void 0 !== n) {
1658
1652
  const r = monthCodeToOrdinal(e, n, constrainMonthCode(e, n, o, h));
1659
- void 0 !== s && s !== r && throwRangeError(ge), t[Ft.u] = r;
1653
+ void 0 !== c && c !== r && throwRangeError(pe), t[Ot.u] = r;
1660
1654
  }
1661
1655
  }
1662
1656
  })(e, t, o);
@@ -1668,7 +1662,7 @@ function zeroDateDuration() {
1668
1662
  return createDateDurationRecord(0, 0, 0, 0);
1669
1663
  }
1670
1664
  function toInternalDurationRecord(e) {
1671
- return combineDateAndTimeDuration(createDateDurationRecord(e[_], e[K], e[X], e[Q]), timeDurationFromComponents(e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1665
+ return combineDateAndTimeDuration(createDateDurationRecord(e[K], e[G], e[X], e[Q]), timeDurationFromComponents(e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1672
1666
  }
1673
1667
  function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1674
1668
  return combineDateAndTimeDuration(createDateDurationRecord(e, t, o, 0), add24HourDaysToTimeDuration(timeDurationFromComponents(...r), n));
@@ -1701,9 +1695,9 @@ function combineDateAndTimeDuration(e, t) {
1701
1695
  };
1702
1696
  }
1703
1697
  function toTemporalDuration(e) {
1704
- return t = e, wt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1698
+ return t = e, yt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1705
1699
  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)?)?$/);
1706
- t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(le);
1700
+ t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(parseError(e));
1707
1701
  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")));
1708
1702
  return applySignToDurationSlot(createTemporalDurationSlot([
1709
1703
  toIntegerWithTruncation(t[2] || ""),
@@ -1721,19 +1715,19 @@ function toTemporalDuration(e) {
1721
1715
  var t;
1722
1716
  }
1723
1717
  function durationSign(e) {
1724
- return sign(e.find((e) => 0 !== e) || 0);
1718
+ return sign(e.find((e) => e) || 0);
1725
1719
  }
1726
1720
  function dateDurationSign(e) {
1727
1721
  return sign(e.ee || e.te || e.X || e.K);
1728
1722
  }
1729
1723
  function internalDurationSign(e) {
1730
- return dateDurationSign(e.A) || vt(e.p);
1724
+ return dateDurationSign(e.A) || wt(e.p);
1731
1725
  }
1732
1726
  function validateDuration(...e) {
1733
- 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(ue), validateTimeDurationRange(timeDurationFromComponents(24 * e[Q] + e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1727
+ 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]));
1734
1728
  }
1735
1729
  function defaultTemporalLargestUnit(e) {
1736
- return (e.findIndex((e) => 0 !== e) + 10) % 10;
1730
+ return (e.findIndex((e) => e) + 10) % 10;
1737
1731
  }
1738
1732
  function toTemporalPartialDurationRecord(e) {
1739
1733
  isObject(e) || throwTypeError(notObject(e));
@@ -1748,8 +1742,8 @@ function toTemporalPartialDurationRecord(e) {
1748
1742
  6,
1749
1743
  2,
1750
1744
  0
1751
- ].map((t) => mapUnlessUndefined(e[se[t]], toIntegerIfIntegral));
1752
- return t.every((e) => void 0 === e) && throwTypeError(Ie), [
1745
+ ].map((t) => mapUnlessUndefined(e[ce[t]], toIntegerIfIntegral));
1746
+ return t.every((e) => void 0 === e) && throwTypeError(fe), [
1753
1747
  9,
1754
1748
  5,
1755
1749
  8,
@@ -1765,11 +1759,11 @@ function toTemporalPartialDurationRecord(e) {
1765
1759
  function createTemporalDurationSlot(e) {
1766
1760
  return validateDuration(...e), e;
1767
1761
  }
1768
- function createTemporalDuration(e, t = Object.create(Et.prototype)) {
1769
- return wt.set(t, e), t;
1762
+ function createTemporalDuration(e, t = Object.create(vt.prototype)) {
1763
+ return yt.set(t, e), t;
1770
1764
  }
1771
- function timeDurationFromComponents(e, t, o, n, s, c) {
1772
- return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromSeconds(3600 * e + 60 * t + o), normalize(divTrunc(m = n, r), m % r * 1e6)), (d = s, normalize(Math.round((d - d % a) / a), d % a * 1e3))), (l = c, normalize(Math.round((l - l % i) / i), l % i)));
1765
+ function timeDurationFromComponents(e, t, o, n, c, s) {
1766
+ return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromSeconds(3600 * e + 60 * t + o), normalize(divTrunc(m = n, r), m % r * 1e6)), (d = c, normalize(Math.round((d - d % a) / a), d % a * 1e3))), (l = s, normalize(Math.round((l - l % i) / i), l % i)));
1773
1767
  var l, d, m;
1774
1768
  }
1775
1769
  function add24HourDaysToTimeDuration(e, t) {
@@ -1791,19 +1785,18 @@ function roundTimeDuration(e, t, o, n) {
1791
1785
  function totalTimeDuration(e, t) {
1792
1786
  return divideTimeDurationToFloatingPoint(e, nanosecondsForTimeUnit(t));
1793
1787
  }
1794
- function computeNudgeWindow(e, t, o, n, r, a, i, s, c) {
1788
+ function computeNudgeWindow(e, t, o, n, r, a, i, c, s) {
1795
1789
  let l, d, m, u, T;
1796
- if (s === z) l = roundNumberToIncrement(t.A.ee, i, M) + (c ? i * e : 0), d = l + i * e, m = createDateDurationRecord(l, 0, 0, 0), u = createDateDurationRecord(d, 0, 0, 0);
1797
- else if (s === V) l = roundNumberToIncrement(t.A.te, i, M) + (c ? i * e : 0), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, 0, l), u = adjustDateDurationRecord(t.A, 0, 0, d);
1798
- else if (s === x) {
1790
+ if (c === z) l = roundNumberToIncrement(t.A.ee, i, M) + (s ? i * e : 0), d = l + i * e, m = createDateDurationRecord(l, 0, 0, 0), u = createDateDurationRecord(d, 0, 0, 0);
1791
+ else if (c === V) l = roundNumberToIncrement(t.A.te, i, M) + (s ? i * e : 0), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, 0, l), u = adjustDateDurationRecord(t.A, 0, 0, d);
1792
+ else if (c === x) {
1799
1793
  const o = calendarDateAdd(a, n.o, adjustDateDurationRecord(t.A, 0, 0), h);
1800
1794
  l = roundNumberToIncrement(t.A.X + calendarDateUntil(a, o, addDaysToIsoDate(o, t.A.K), x).X, i, M), d = l + i * e, m = adjustDateDurationRecord(t.A, 0, l), u = adjustDateDurationRecord(t.A, 0, d);
1801
1795
  } else l = roundNumberToIncrement(t.A.K, i, M), d = l + i * e, m = adjustDateDurationRecord(t.A, l), u = adjustDateDurationRecord(t.A, d);
1802
- if (0 === l) T = o;
1803
- else {
1796
+ if (dateDurationSign(m)) {
1804
1797
  const e = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, m, h), n.p);
1805
1798
  T = r ? getEpochNanosecondsFor(r, e, g) : getUtcEpochNanoseconds(e);
1806
- }
1799
+ } else T = o;
1807
1800
  const D = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, u, h), n.p);
1808
1801
  return {
1809
1802
  he: l,
@@ -1814,79 +1807,79 @@ function computeNudgeWindow(e, t, o, n, r, a, i, s, c) {
1814
1807
  Ie: u
1815
1808
  };
1816
1809
  }
1817
- function nudgeToCalendarUnit(e, t, o, n, r, a, i, s, c, l) {
1818
- let d = !1, m = computeNudgeWindow(e, t, o, r, a, i, s, c, !1);
1819
- compareEpochNanoseconds(m.pe, n) * compareEpochNanoseconds(m.ge, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, i, s, c, !0), d = !0);
1810
+ function nudgeToCalendarUnit(e, t, o, n, r, a, i, c, s, l) {
1811
+ let d = !1, m = computeNudgeWindow(e, t, o, r, a, i, c, s, !1);
1812
+ compareEpochNanoseconds(m.pe, n) * compareEpochNanoseconds(m.ge, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, i, c, s, !0), d = !0);
1820
1813
  const u = differenceEpochNanoseconds(m.pe, n), T = differenceEpochNanoseconds(m.pe, m.ge);
1821
1814
  let D = m.fe, h = m.pe;
1822
- return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? ve(e, t) ? ve(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * s * e, s, l) === m.De && (d = !0, D = m.Ie, h = m.ge), {
1815
+ return roundNumberToIncrement(m.he + ((e, t, o) => signTimeDuration(e) ? we(e, t) ? we(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * c * e, c, l) === m.De && (d = !0, D = m.Ie, h = m.ge), {
1823
1816
  Oe: {
1824
1817
  Fe: combineDateAndTimeDuration(D, createTimeDurationFromSeconds(0)),
1825
1818
  Se: h,
1826
1819
  ye: d
1827
1820
  },
1828
- we: m.he + divideTimeDurationToFloatingPoint(u, 1e9) / divideTimeDurationToFloatingPoint(T, 1e9) * s * e
1821
+ we: m.he + divideTimeDurationToFloatingPoint(u, 1e9) / divideTimeDurationToFloatingPoint(T, 1e9) * c * e
1829
1822
  };
1830
1823
  }
1831
- function roundRelativeDuration(e, t, o, n, r, a, i, s, c, l) {
1832
- const d = internalDurationSign(e) || 1, m = isCalendarUnit(c) || r && c === H ? nudgeToCalendarUnit(d, e, t, o, n, r, a, s, c, l).Oe : r ? ((e, t, o, n, r, a, i, s) => {
1833
- const c = calendarDateAdd(r, o.o, t.A, h), l = combineIsoDateAndTimeRecord(c, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(c, e), o.p), m = getEpochNanosecondsFor(n, l, g), u = getEpochNanosecondsFor(n, d, g), T = timeDurationFromEpochNanosecondsDifference(u, m), D = nanosecondsForTimeUnit(i);
1834
- let p = roundTimeDurationToIncrement(t.p, a * D, s);
1824
+ function roundRelativeDuration(e, t, o, n, r, a, i, c, s, l) {
1825
+ const d = internalDurationSign(e) || 1, m = isCalendarUnit(s) || r && s === H ? nudgeToCalendarUnit(d, e, t, o, n, r, a, c, s, l).Oe : r ? ((e, t, o, n, r, a, i, c) => {
1826
+ const s = calendarDateAdd(r, o.o, t.A, h), l = combineIsoDateAndTimeRecord(s, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(s, e), o.p), m = getEpochNanosecondsFor(n, l, g), u = getEpochNanosecondsFor(n, d, g), T = timeDurationFromEpochNanosecondsDifference(u, m), D = nanosecondsForTimeUnit(i);
1827
+ let p = roundTimeDurationToIncrement(t.p, a * D, c);
1835
1828
  const f = addTimeDuration(p, negateTimeDuration(T));
1836
1829
  let I, O = !1, F = 0;
1837
- return vt(f) !== -e ? (O = !0, F = e, p = roundTimeDurationToIncrement(f, a * D, s), I = addTimeDurationToEpochNanoseconds(u, p)) : I = addTimeDurationToEpochNanoseconds(u, p), {
1830
+ return wt(f) !== -e ? (O = !0, F = e, p = roundTimeDurationToIncrement(f, a * D, c), I = addTimeDurationToEpochNanoseconds(u, p)) : I = addTimeDurationToEpochNanoseconds(u, p), {
1838
1831
  Fe: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.K + F), p),
1839
1832
  Se: I,
1840
1833
  ye: O
1841
1834
  };
1842
- })(d, e, n, r, a, s, c, l) : (function(e, t, o, n, r, a) {
1843
- const i = add24HourDaysToTimeDuration(e.p, e.A.K), s = r === H ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), c = s[0], [l, d] = isDateUnit(o) ? [c, addTimeDuration(s, timeDurationFromComponents(24 * -c, 0, 0, 0, 0, 0))] : [0, s];
1835
+ })(d, e, n, r, a, c, s, l) : (function(e, t, o, n, r, a) {
1836
+ const i = add24HourDaysToTimeDuration(e.p, e.A.K), c = r === H ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), s = c[0], [l, d] = isDateUnit(o) ? [s, addTimeDuration(c, timeDurationFromComponents(24 * -s, 0, 0, 0, 0, 0))] : [0, c];
1844
1837
  return {
1845
1838
  Fe: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, l), d),
1846
- Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(s, negateTimeDuration(i))),
1847
- ye: sign(c - i[0]) === vt(i)
1839
+ Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(c, negateTimeDuration(i))),
1840
+ ye: sign(s - i[0]) === wt(i)
1848
1841
  };
1849
- })(e, o, i, s, c, l);
1850
- return m.ye && c !== x ? ((e, t, o, n, r, a, i, s) => {
1851
- if (s === i) return t;
1852
- const c = i;
1842
+ })(e, o, i, c, s, l);
1843
+ return m.ye && s !== x ? ((e, t, o, n, r, a, i, c) => {
1844
+ if (c === i) return t;
1845
+ const s = i;
1853
1846
  let l;
1854
- for (let i = s - 1; i >= c; i--) if (i !== X || c === X) {
1855
- l = i === _ ? createDateDurationRecord(t.A.ee + e, 0, 0, 0) : i === K ? adjustDateDurationRecord(t.A, 0, 0, t.A.te + e) : adjustDateDurationRecord(t.A, 0, t.A.X + e);
1856
- const s = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, l, h), n.p);
1857
- if (vt(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, s, "compatible") : getUtcEpochNanoseconds(s), o)) === -e) break;
1847
+ for (let i = c - 1; i >= s; i--) if (i !== X || s === X) {
1848
+ l = i === K ? createDateDurationRecord(t.A.ee + e, 0, 0, 0) : i === G ? adjustDateDurationRecord(t.A, 0, 0, t.A.te + e) : adjustDateDurationRecord(t.A, 0, t.A.X + e);
1849
+ const c = combineIsoDateAndTimeRecord(calendarDateAdd(a, n.o, l, h), n.p);
1850
+ if (wt(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, c, "compatible") : getUtcEpochNanoseconds(c), o)) === -e) break;
1858
1851
  t = combineDateAndTimeDuration(l, createTimeDurationFromSeconds(0));
1859
1852
  }
1860
1853
  return t;
1861
- })(d, m.Fe, m.Se, n, r, a, i, largerOfTwoTemporalUnits(c, H)) : m.Fe;
1854
+ })(d, m.Fe, m.Se, n, r, a, i, largerOfTwoTemporalUnits(s, H)) : m.Fe;
1862
1855
  }
1863
1856
  function totalRelativeDuration(e, t, o, n, r, a, i) {
1864
1857
  return isCalendarUnit(i) || r && i === H ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, a, 1, i, M).we : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.A.K), i);
1865
1858
  }
1866
1859
  function temporalDurationToString(e, t) {
1867
- const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[oe], e[ne], e[re], e[ae]), [, , , r, a, i, s] = balanceTimeDuration(n, J), [c, l, d, m, u, T] = [
1860
+ const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[oe], e[ne], e[re], e[ae]), [, , , r, a, i, c] = balanceTimeDuration(n, J), [s, l, d, m, u, T] = [
1868
1861
  "Y",
1869
1862
  "M",
1870
1863
  "W",
1871
1864
  "D",
1872
1865
  "H",
1873
1866
  "M"
1874
- ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${u}${T}${vt(n) || defaultTemporalLargestUnit(e) >= J || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + s, t)}S` : ""}`;
1875
- return `${o < 0 ? "-" : ""}P${c}${l}${d}${m}${D && `T${D}`}`;
1867
+ ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${u}${T}${wt(n) || defaultTemporalLargestUnit(e) >= J || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + c, t)}S` : ""}`;
1868
+ return `${o < 0 ? "-" : ""}P${s}${l}${d}${m}${D && `T${D}`}`;
1876
1869
  }
1877
1870
  function addDurations(e, t, o) {
1878
1871
  const n = applySignToDurationSlot(toTemporalDuration(o), e), r = largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), defaultTemporalLargestUnit(n));
1879
1872
  return isCalendarUnit(r) && throwRangeError(durationWithDateUnit(r)), createTemporalDuration(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), addTimeDuration(toInternalDurationRecordWith24HourDays(t).p, toInternalDurationRecordWith24HourDays(n).p)), r));
1880
1873
  }
1881
1874
  function getInternalSlotOrThrowForDuration(e) {
1882
- const t = wt.get(e);
1883
- return t || throwTypeError(he), t;
1875
+ const t = yt.get(e);
1876
+ return t || throwTypeError(De), t;
1884
1877
  }
1885
1878
  function applySignToDurationSlot(e, t) {
1886
1879
  return createTemporalDurationSlot(e.map((e) => e * t + 0));
1887
1880
  }
1888
1881
  function validateTimeDurationRange(e) {
1889
- return ((e) => ve(absTimeDuration(e), createTimeDurationFromSeconds(2 ** 53)) < 0)(e) || throwRangeError(ue), e;
1882
+ return ((e) => we(absTimeDuration(e), createTimeDurationFromSeconds(2 ** 53)) < 0)(e) || throwRangeError(me), e;
1890
1883
  }
1891
1884
  function balanceTimeDuration(e, t) {
1892
1885
  const o = clamp(t, 3, 9);
@@ -1899,7 +1892,7 @@ function balanceTimeDuration(e, t) {
1899
1892
  0,
1900
1893
  0
1901
1894
  ].slice(0, o - Q),
1902
- o > oe ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), ce[o - Q] / 1e9),
1895
+ o > oe ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), se[o - Q] / 1e9),
1903
1896
  ...[
1904
1897
  0,
1905
1898
  1,
@@ -1907,7 +1900,7 @@ function balanceTimeDuration(e, t) {
1907
1900
  3,
1908
1901
  4,
1909
1902
  5
1910
- ].map((t) => divTrunc(e[1], ce[t + 1]) % (ce[t] / ce[t + 1]) + 0).slice(o - Q)
1903
+ ].map((t) => divTrunc(e[1], se[t + 1]) % (se[t] / se[t + 1]) + 0).slice(o - Q)
1911
1904
  ];
1912
1905
  var r;
1913
1906
  }
@@ -1928,7 +1921,7 @@ function roundHalfEven(e) {
1928
1921
  }
1929
1922
  function isoDateToEpochDays(e, t, o) {
1930
1923
  const n = balanceIsoYearMonth(e, t + 1);
1931
- return Date.UTC(n.t % 400 - 400, n.u - 1, 0) / r + (divTrunc(n.t, 400) + 1) * s + o;
1924
+ return Date.UTC(n.t % 400 - 400, n.u - 1, 0) / r + (divTrunc(n.t, 400) + 1) * c + o;
1932
1925
  }
1933
1926
  function isoDateRecordToEpochDays(e) {
1934
1927
  return isoDateToEpochDays(e.t, e.u - 1, e.T);
@@ -1967,31 +1960,30 @@ function getTemporalShowCalendarNameOption(e) {
1967
1960
  ], $);
1968
1961
  }
1969
1962
  function validateTemporalRoundingIncrement(e, t, o) {
1970
- (e > (o ? t : t - 1) || t % e !== 0) && throwRangeError(invalidField("roundingIncrement"));
1963
+ (e > (o ? t : t - 1) || t % e) && throwRangeError(invalidField("roundingIncrement"));
1971
1964
  }
1972
1965
  function getTemporalFractionalSecondDigitsOption(e) {
1973
1966
  const t = "fractionalSecondDigits", o = e[t];
1974
- if (void 0 === o) return;
1975
- if ("number" != typeof o) return void ("auto" !== toString(o) && throwRangeError(invalidField(t)));
1976
- !isNaN(o) && isFinite(o) || throwRangeError(invalidField(t));
1977
- const n = Math.floor(o);
1978
- return isWithin(n, 0, 9) || throwRangeError(invalidField(t)), n;
1967
+ if (void 0 !== o) {
1968
+ if ("number" == typeof o) return isWithin(Math.floor(o), 0, 9) || throwRangeError(invalidField(t)), 0 | o;
1969
+ "auto" !== toString(o) && throwRangeError(invalidField(t));
1970
+ }
1979
1971
  }
1980
1972
  function toSecondsStringPrecisionRecord(e, t) {
1981
1973
  return e ? {
1982
1974
  $e: e === B ? D : 3 * (e - 6),
1983
- ve: e,
1984
- Ee: 1
1975
+ Ee: e,
1976
+ ve: 1
1985
1977
  } : {
1986
1978
  $e: t,
1987
- ve: divFloor((t ?? 9) - 1, 3) + 7,
1988
- Ee: 10 ** ((9 - (t ?? 9)) % 3)
1979
+ Ee: divFloor((t ?? 9) - 1, 3) + 7,
1980
+ ve: 10 ** ((9 - (t ?? 9)) % 3)
1989
1981
  };
1990
1982
  }
1991
1983
  function getTemporalUnitValuedOption(e, t, o) {
1992
1984
  return mapUnlessUndefined(getOption(e, t, [
1993
1985
  ...ie,
1994
- ...se,
1986
+ ...ce,
1995
1987
  "auto"
1996
1988
  ], o), (e) => {
1997
1989
  return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), ie.indexOf(t));
@@ -1999,39 +1991,39 @@ function getTemporalUnitValuedOption(e, t, o) {
1999
1991
  });
2000
1992
  }
2001
1993
  function validateTemporalUnitValue(e, t, o = []) {
2002
- void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= H && t === l || e > H && t === c) && throwRangeError(disallowedUnit(e)));
1994
+ void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= H && t === l || e > H && t === s) && throwRangeError(disallowedUnit(e)));
2003
1995
  }
2004
1996
  function getTemporalRelativeToOption(e) {
2005
1997
  const t = e.relativeTo;
2006
1998
  if (void 0 === t) return createNullPrototypeObject();
2007
- let o, n, r, a, i, s = !0, c = F;
1999
+ let o, n, r, a, i, c = !0, s = F;
2008
2000
  if (isObject(t)) {
2009
2001
  if (isZonedDateTime(t)) return createNullPrototypeObject({ Me: getInternalSlotOrThrowForZonedDateTime(t) });
2010
2002
  if (isPlainDate(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(t) });
2011
2003
  const e = getInternalSlotForPlainDateTime(t);
2012
- if (e) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(createTemporalDate(e._.o, e.Y)) });
2004
+ if (e) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.G.o, e.Y)) });
2013
2005
  r = getTemporalCalendarIdentifierWithIsoDefault(t);
2014
- const s = prepareCalendarFields(r, t, [
2015
- Ft.t,
2016
- Ft.u,
2017
- Ft.v,
2018
- Ft.T,
2019
- Ft.D,
2020
- Ft.I,
2021
- Ft.O,
2022
- Ft.F,
2023
- Ft.S,
2024
- Ft.$,
2025
- Ft.M,
2026
- Ft.P
2027
- ], []), l = interpretTemporalDateTimeFields(r, s, h);
2028
- a = l.o, i = l.p, o = s.timeZone, n = s.offset, c = n ? F : y;
2006
+ const c = prepareCalendarFields(r, t, [
2007
+ Ot.t,
2008
+ Ot.u,
2009
+ Ot.v,
2010
+ Ot.T,
2011
+ Ot.D,
2012
+ Ot.I,
2013
+ Ot.O,
2014
+ Ot.F,
2015
+ Ot.S,
2016
+ Ot.$,
2017
+ Ot.M,
2018
+ Ot.P
2019
+ ], []), l = interpretTemporalDateTimeFields(r, c, h);
2020
+ a = l.o, i = l.p, o = c.timeZone, n = c.offset, s = n ? F : y;
2029
2021
  } else {
2030
2022
  validateString(t);
2031
- const e = parseIsoDateTime(t, [Xe, Qe]);
2032
- n = e.P.N, e.P.R ? (o = toTemporalTimeZoneIdentifier(e.P.R), c = e.P.Z ? S : n ? F : y, s = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.Y || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
2023
+ const e = parseIsoDateTime(t, [Ge, Xe]);
2024
+ n = e.P.N, e.P.R ? (o = toTemporalTimeZoneIdentifier(e.P.R), s = e.P.Z ? S : n ? F : y, c = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.Y || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
2033
2025
  }
2034
- return createNullPrototypeObject(o ? { Me: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, c, c === F ? parseDateTimeUtcOffset(n) : 0, o, g, O, s), o, r)) } : { be: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
2026
+ return createNullPrototypeObject(o ? { Me: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, s, s === F ? parseDateTimeUtcOffset(n) : 0, o, g, O, c), o, r)) } : { be: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
2035
2027
  }
2036
2028
  function largerOfTwoTemporalUnits(e, t) {
2037
2029
  return e < t ? e : t;
@@ -2054,13 +2046,13 @@ function validatePartialTemporalObject(e) {
2054
2046
  }
2055
2047
  function formatFractionalSeconds(e, t) {
2056
2048
  const o = toZeroPaddedDecimalString(e, 9);
2057
- return void 0 === t ? 0 === e ? "" : `.${o.replace(/0*$/, "")}` : 0 === t ? "" : `.${o.slice(0, t)}`;
2049
+ return void 0 === t ? e ? `.${o.replace(/0*$/, "")}` : "" : t ? `.${o.slice(0, t)}` : "";
2058
2050
  }
2059
2051
  function formatTimeString(e, t, o, n, r) {
2060
2052
  return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === D ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
2061
2053
  }
2062
2054
  function roundNumberToIncrement(e, t, o) {
2063
- return Mt[o](e / t) * t;
2055
+ return Et[o](e / t) * t;
2064
2056
  }
2065
2057
  function getRoundingModeOption(e, t) {
2066
2058
  return getOption(e, "roundingMode", [
@@ -2082,46 +2074,46 @@ function getRoundingIncrementOption(e) {
2082
2074
  function isoDateToFields(e, t, o) {
2083
2075
  const n = calendarIsoToDate(e, t);
2084
2076
  return createNullPrototypeObject({
2085
- [Ft.t]: o === u ? void 0 : n.t,
2086
- [Ft.v]: n.v,
2087
- [Ft.T]: o === m ? void 0 : n.T
2077
+ [Ot.t]: o === u ? void 0 : n.t,
2078
+ [Ot.v]: n.v,
2079
+ [Ot.T]: o === m ? void 0 : n.T
2088
2080
  });
2089
2081
  }
2090
2082
  function getDifferenceSettings(e, t, o, n, r, a) {
2091
2083
  let i = getTemporalUnitValuedOption(t, "largestUnit", void 0) ?? "auto";
2092
- const s = getRoundingIncrementOption(t), c = getRoundingModeOption(t, M), l = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
2093
- return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(l, o), n.includes(l) && throwRangeError(disallowedUnit(l)), "auto" === i && (i = largerOfTwoTemporalUnits(a, l)), i > l && throwRangeError(pe), isDateUnit(l) || validateTemporalRoundingIncrement(s, maximumTemporalDurationRoundingIncrement(l), !1), {
2084
+ const c = getRoundingIncrementOption(t), s = getRoundingModeOption(t, M), l = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
2085
+ return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(l, o), n.includes(l) && throwRangeError(disallowedUnit(l)), "auto" === i && (i = largerOfTwoTemporalUnits(a, l)), i > l && throwRangeError(he), isDateUnit(l) || validateTemporalRoundingIncrement(c, maximumTemporalDurationRoundingIncrement(l), !1), {
2094
2086
  H: l,
2095
2087
  L: i,
2096
- q: -1 === e ? negateRoundingMode(c) : c,
2097
- V: s
2088
+ q: -1 === e ? negateRoundingMode(s) : s,
2089
+ V: c
2098
2090
  };
2099
2091
  }
2100
2092
  function getUtcEpochNanoseconds(e) {
2101
2093
  return addNanosecondsToEpochSeconds(createEpochNanosecondsFromEpochMilliseconds(utcEpochMilliseconds(e.o.t, e.o.u, e.o.T, e.p.D, e.p.I, e.p.O, e.p.F)), 1e3 * e.p.S + e.p.$);
2102
2094
  }
2103
2095
  function epochDaysToIsoDate(e) {
2104
- const t = new Date(modFloor(e, s) * r);
2096
+ const t = new Date(modFloor(e, c) * r);
2105
2097
  return {
2106
- t: t.getUTCFullYear() + 400 * divFloor(e, s),
2098
+ t: t.getUTCFullYear() + 400 * divFloor(e, c),
2107
2099
  u: t.getUTCMonth() + 1,
2108
2100
  T: t.getUTCDate()
2109
2101
  };
2110
2102
  }
2111
2103
  function isoDateTimeToFields(e, t) {
2112
2104
  return createNullPrototypeObject({
2113
- ...isoDateToFields(e, t.o, c),
2114
- [Ft.D]: t.p.D,
2115
- [Ft.I]: t.p.I,
2116
- [Ft.O]: t.p.O,
2117
- [Ft.F]: t.p.F,
2118
- [Ft.S]: t.p.S,
2119
- [Ft.$]: t.p.$
2105
+ ...isoDateToFields(e, t.o, s),
2106
+ [Ot.D]: t.p.D,
2107
+ [Ot.I]: t.p.I,
2108
+ [Ot.O]: t.p.O,
2109
+ [Ot.F]: t.p.F,
2110
+ [Ot.S]: t.p.S,
2111
+ [Ot.$]: t.p.$
2120
2112
  });
2121
2113
  }
2122
2114
  function getInternalSlotOrThrowForDateTimeFormat(e) {
2123
- const t = Rt.get(e);
2124
- return t || throwTypeError(he), t;
2115
+ const t = Pt.get(e);
2116
+ return t || throwTypeError(De), t;
2125
2117
  }
2126
2118
  function formatDateTime(e, t) {
2127
2119
  const [o, n] = handleDateTimeValue(getInternalSlotOrThrowForDateTimeFormat(e), t);
@@ -2135,19 +2127,19 @@ function dateStyleToMonthStyle(e) {
2135
2127
  }
2136
2128
  function amendOptionsForPlainDate(e) {
2137
2129
  const t = createNullPrototypeObject(e);
2138
- return hasAnyOptions(e, Nt) || (hasAnyOptions(e, Zt) && throwTypeError(Te), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Zt, "timeZoneName"]), t.timeZone = "UTC", t;
2130
+ return hasAnyOptions(e, Rt) || (hasAnyOptions(e, Nt) && throwTypeError(ue), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Nt, "timeZoneName"]), t.timeZone = "UTC", t;
2139
2131
  }
2140
2132
  function amendOptionsForPlainTime(e) {
2141
2133
  const t = createNullPrototypeObject(e);
2142
- return hasAnyOptions(e, Zt) || (hasAnyOptions(e, Nt) && 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, [
2143
- ...Nt,
2134
+ return hasAnyOptions(e, Nt) || (hasAnyOptions(e, Rt) && 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, [
2135
+ ...Rt,
2144
2136
  "era",
2145
2137
  "timeZoneName"
2146
2138
  ]), t.timeZone = "UTC", t;
2147
2139
  }
2148
2140
  function amendOptionsForPlainDateTime(e) {
2149
2141
  const t = createNullPrototypeObject(e);
2150
- 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, [...Nt, ...Zt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2142
+ return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [...Rt, ...Nt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
2151
2143
  }
2152
2144
  function amendOptionsForPlainYearMonth(e) {
2153
2145
  const t = createNullPrototypeObject(e);
@@ -2155,8 +2147,8 @@ function amendOptionsForPlainYearMonth(e) {
2155
2147
  "year",
2156
2148
  "month",
2157
2149
  "dateStyle"
2158
- ]) || (hasAnyOptions(e, [...Nt, ...Zt]) && throwTypeError(Te), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2159
- ...Zt,
2150
+ ]) || (hasAnyOptions(e, [...Rt, ...Nt]) && throwTypeError(ue), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
2151
+ ...Nt,
2160
2152
  "day",
2161
2153
  "weekday",
2162
2154
  "timeZoneName"
@@ -2168,8 +2160,8 @@ function amendOptionsForPlainMonthDay(e) {
2168
2160
  "month",
2169
2161
  "day",
2170
2162
  "dateStyle"
2171
- ]) || (hasAnyOptions(e, [...Nt, ...Zt]) && throwTypeError(Te), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2172
- ...Zt,
2163
+ ]) || (hasAnyOptions(e, [...Rt, ...Nt]) && throwTypeError(ue), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
2164
+ ...Nt,
2173
2165
  "era",
2174
2166
  "year",
2175
2167
  "weekday",
@@ -2178,23 +2170,23 @@ function amendOptionsForPlainMonthDay(e) {
2178
2170
  }
2179
2171
  function amendOptionsForInstant(e) {
2180
2172
  const t = createNullPrototypeObject(e);
2181
- return hasAnyOptions(e, [...Nt, ...Zt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2173
+ return hasAnyOptions(e, [...Rt, ...Nt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
2182
2174
  }
2183
2175
  function hasAnyOptions(e, t) {
2184
2176
  return t.some((t) => void 0 !== e[t]);
2185
2177
  }
2186
- function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create(Ct.prototype)) {
2187
- null === t && throwTypeError(Te);
2178
+ function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create($t.prototype)) {
2179
+ null === t && throwTypeError(ue);
2188
2180
  const a = createNullPrototypeObject();
2189
- let i = new Pt(e, new Proxy(Object(t), { get(e, t) {
2190
- const o = e[t];
2191
- 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 ? Se(o) : toString(o);
2181
+ let i = new bt(e, new Proxy({}, { get(e, o) {
2182
+ const r = t[o];
2183
+ 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 ? Fe(r) : toString(r);
2192
2184
  } }));
2193
- return (o === c && a.timeStyle || o === l && a.dateStyle) && throwTypeError(Te), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
2185
+ return (o === s && a.timeStyle || o === l && a.dateStyle) && throwTypeError(ue), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
2186
+ ...Rt,
2194
2187
  ...Nt,
2195
- ...Zt,
2196
2188
  "timeZoneName"
2197
- ]) || (a.timeZoneName = "short", i = new Pt(i.resolvedOptions().locale, a)), Rt.set(r, createNullPrototypeObject({
2189
+ ]) || (a.timeZoneName = "short", i = new bt(i.resolvedOptions().locale, a)), Pt.set(r, createNullPrototypeObject({
2198
2190
  Pe: i,
2199
2191
  Re: a,
2200
2192
  Ne: i.resolvedOptions().locale
@@ -2212,17 +2204,17 @@ function validateSameTemporalType(e, t) {
2212
2204
  ].some((o) => o(e) !== o(t)) && throwTypeError("Temporal type mismatch");
2213
2205
  }
2214
2206
  function toDateTimeFormattable(e) {
2215
- return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Se(e);
2207
+ return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Fe(e);
2216
2208
  }
2217
2209
  function handleDateTimeValue(e, t) {
2218
2210
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
2219
- return isPlainTime(t) ? [e.Ze ||= new Pt(e.Ne, amendOptionsForPlainTime(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Re.calendar && "iso8601" !== o.Y && throwRangeError(De), [e.Ye ||= new Pt(e.Ne, amendOptionsForPlainDate(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Re.calendar && "iso8601" !== n.Y && throwRangeError(De), [e.Ce ||= new Pt(e.Ne, amendOptionsForPlainDateTime(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(n._))]) : r ? (r.Y !== e.Re.calendar && throwRangeError(De), [e.Ue ||= new Pt(e.Ne, amendOptionsForPlainYearMonth(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Re.calendar && throwRangeError(De), [e.je ||= new Pt(e.Ne, amendOptionsForPlainMonthDay(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= new Pt(e.Ne, amendOptionsForInstant(e.Re)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(fe), [e.Pe, t]);
2211
+ return isPlainTime(t) ? [e.Ze ||= new bt(e.Ne, amendOptionsForPlainTime(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.Y !== e.Re.calendar && "iso8601" !== o.Y && throwRangeError(Te), [e.Ye ||= new bt(e.Ne, amendOptionsForPlainDate(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.Y !== e.Re.calendar && "iso8601" !== n.Y && throwRangeError(Te), [e.Ce ||= new bt(e.Ne, amendOptionsForPlainDateTime(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(n.G))]) : r ? (r.Y !== e.Re.calendar && throwRangeError(Te), [e.Ue ||= new bt(e.Ne, amendOptionsForPlainYearMonth(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.Y !== e.Re.calendar && throwRangeError(Te), [e.je ||= new bt(e.Ne, amendOptionsForPlainMonthDay(e.Re)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= new bt(e.Ne, amendOptionsForInstant(e.Re)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).U)] : (isZonedDateTime(t) && throwTypeError(ge), [e.Pe, t]);
2220
2212
  }
2221
2213
  function DateTimeFormat(e, t) {
2222
- return new Ct(e, t);
2214
+ return new $t(e, t);
2223
2215
  }
2224
- function createTemporalInstant(e, t = Object.create(Wt.prototype)) {
2225
- return jt.set(t, { U: e }), t;
2216
+ function createTemporalInstant(e, t = Object.create(jt.prototype)) {
2217
+ return Ut.set(t, { U: e }), t;
2226
2218
  }
2227
2219
  function toTemporalInstant$1(e) {
2228
2220
  if (isObject(e)) {
@@ -2231,7 +2223,7 @@ function toTemporalInstant$1(e) {
2231
2223
  e = toPrimitive(e);
2232
2224
  }
2233
2225
  validateString(e);
2234
- const t = parseIsoDateTime(e, [et]), o = t.P.Z ? 0 : parseDateTimeUtcOffset(t.P.N), n = t.p;
2226
+ const t = parseIsoDateTime(e, [Qe]), o = t.P.Z ? 0 : parseDateTimeUtcOffset(t.P.N), n = t.p;
2235
2227
  return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.t, t.u, t.T, n.D, n.I, n.O, n.F, n.S, n.$ - o))));
2236
2228
  }
2237
2229
  function addInstant(e, t) {
@@ -2242,7 +2234,7 @@ function differenceInstant(e, t, o, n, r) {
2242
2234
  }
2243
2235
  function roundTemporalInstant(e, t, o, n) {
2244
2236
  return (function(e, t, o) {
2245
- return normalizeEpochNanoseconds(e[0], ((e, t, o) => bt[o](e / t) * t)(e[1], t, o));
2237
+ return normalizeEpochNanoseconds(e[0], ((e, t, o) => Mt[o](e / t) * t)(e[1], t, o));
2246
2238
  })(e, t * nanosecondsForTimeUnit(o), n);
2247
2239
  }
2248
2240
  function temporalInstantToString(e, t, o) {
@@ -2250,7 +2242,7 @@ function temporalInstantToString(e, t, o) {
2250
2242
  return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, Y)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
2251
2243
  }
2252
2244
  function differenceTemporalInstant(e, t, o, n) {
2253
- const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), l, [], G, J);
2245
+ const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), l, [], _, J);
2254
2246
  return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.U, r.U, a.V, a.H, a.q), a.L), e));
2255
2247
  }
2256
2248
  function addDurationToInstant(e, t, o) {
@@ -2258,26 +2250,26 @@ function addDurationToInstant(e, t, o) {
2258
2250
  return isDateUnit(defaultTemporalLargestUnit(n)) && throwRangeError(durationWithDateUnit(defaultTemporalLargestUnit(n))), createTemporalInstant(addInstant(t.U, toInternalDurationRecordWith24HourDays(n).p));
2259
2251
  }
2260
2252
  function validateEpochNanoseconds(e) {
2261
- return ((e) => compareEpochNanoseconds(ye, e) * compareEpochNanoseconds(we, e) <= 0)(e) || throwRangeError(me), e;
2253
+ return ((e) => compareEpochNanoseconds(Se, e) * compareEpochNanoseconds(ye, e) <= 0)(e) || throwRangeError(de), e;
2262
2254
  }
2263
2255
  function getInternalSlotForInstant(e) {
2264
- return jt.get(e);
2256
+ return Ut.get(e);
2265
2257
  }
2266
2258
  function getInternalSlotOrThrowForInstant(e) {
2267
2259
  const t = getInternalSlotForInstant(e);
2268
- return t || throwTypeError(he), t;
2260
+ return t || throwTypeError(De), t;
2269
2261
  }
2270
2262
  function isInstant(e) {
2271
- return jt.has(e);
2263
+ return Ut.has(e);
2272
2264
  }
2273
2265
  function clampEpochNanoseconds(e) {
2274
- return compareEpochNanoseconds(e, we) > 0 ? we : compareEpochNanoseconds(e, ye) < 0 ? ye : e;
2266
+ return compareEpochNanoseconds(e, ye) > 0 ? ye : compareEpochNanoseconds(e, Se) < 0 ? Se : e;
2275
2267
  }
2276
2268
  function systemTimeZoneIdentifier() {
2277
- return Vt && xt + Vt > Date.now() && zt ? zt : (xt = Date.now(), zt = new Pt().resolvedOptions().timeZone);
2269
+ return zt && Vt + zt > Date.now() && kt ? kt : (Vt = Date.now(), kt = new bt().resolvedOptions().timeZone);
2278
2270
  }
2279
2271
  function setSystemTimeZoneIdCacheTtl(e) {
2280
- Vt = e, e || (zt = void 0, xt = -Infinity);
2272
+ zt = e, e || (kt = void 0, Vt = -Infinity);
2281
2273
  }
2282
2274
  function systemUtcEpochNanoseconds() {
2283
2275
  return createEpochNanosecondsFromEpochMilliseconds(Date.now());
@@ -2285,7 +2277,7 @@ function systemUtcEpochNanoseconds() {
2285
2277
  function systemDateTime(e = systemTimeZoneIdentifier()) {
2286
2278
  return getIsoDateTimeForZonedDateTimeSlot(createZonedDateTimeSlot(systemUtcEpochNanoseconds(), toTemporalTimeZoneIdentifier(e), "iso8601"));
2287
2279
  }
2288
- const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11, s = 146097, c = Symbol(), l = Symbol(), d = Symbol(), m = Symbol(), u = Symbol(), T = Symbol(), D = Symbol(), h = "constrain", p = "reject", g = "compatible", f = "later", I = "prefer", O = "reject", F = Symbol(), S = Symbol(), y = Symbol(), w = "ceil", v = "floor", E = "expand", M = "trunc", b = "halfCeil", P = "halfFloor", R = "halfExpand", N = "halfTrunc", Z = "halfEven", $ = "auto", C = "always", Y = "never", U = "critical", j = "auto", W = "never", A = "auto", L = "never", k = "critical", z = 0, V = 1, x = 2, H = 3, q = 4, B = 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 = [
2280
+ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11, c = 146097, s = Symbol(), l = Symbol(), d = Symbol(), m = Symbol(), u = Symbol(), T = Symbol(), D = Symbol(), h = "constrain", p = "reject", g = "compatible", f = "later", I = "prefer", O = "reject", F = Symbol(), S = Symbol(), y = Symbol(), w = "ceil", v = "floor", E = "expand", M = "trunc", b = "halfCeil", P = "halfFloor", R = "halfExpand", N = "halfTrunc", Z = "halfEven", $ = "auto", C = "always", Y = "never", U = "critical", j = "auto", W = "never", A = "auto", L = "never", k = "critical", z = 0, V = 1, x = 2, H = 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 = [
2289
2281
  "year",
2290
2282
  "month",
2291
2283
  "week",
@@ -2296,7 +2288,7 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11,
2296
2288
  "millisecond",
2297
2289
  "microsecond",
2298
2290
  "nanosecond"
2299
- ], se = ie.map((e) => `${e}s`), ce = [
2291
+ ], ce = ie.map((e) => `${e}s`), se = [
2300
2292
  i,
2301
2293
  o,
2302
2294
  t,
@@ -2304,12 +2296,12 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11,
2304
2296
  1e6,
2305
2297
  1e3,
2306
2298
  1
2307
- ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, le = "parse error", de = "invalid date / time", me = "out-of-bounds date", ue = "out-of-bounds duration", Te = "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}`, he = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, pe = "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", Fe = "argument is undefined", Se = Math.max, ye = createEpochNanosecondsFromEpochMilliseconds(-864e13), we = createEpochNanosecondsFromEpochMilliseconds(864e13), ve = compareEpochNanoseconds, Ee = /* @__PURE__ */ new WeakMap();
2308
- var Me = class {
2299
+ ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, le = "invalid date / time", de = "out-of-bounds date", me = "out-of-bounds duration", ue = "invalid formatting options", Te = "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)}`, he = "invalid `largestUnit` and `smallestUnit` options", pe = "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", Fe = Math.max, Se = createEpochNanosecondsFromEpochMilliseconds(-864e13), ye = createEpochNanosecondsFromEpochMilliseconds(864e13), we = compareEpochNanoseconds, ve = /* @__PURE__ */ new WeakMap();
2300
+ var Ee = class {
2309
2301
  constructor(e, t, o = "iso8601") {
2310
2302
  const n = validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e)));
2311
2303
  validateString(t);
2312
- const r = parseTimeZoneIdentifier(t), a = r.J ? getAvailableNamedTimeZoneIdentifier(r.J) : formatOffsetTimeZoneIdentifier(r.G);
2304
+ const r = parseTimeZoneIdentifier(t), a = r.J ? getAvailableNamedTimeZoneIdentifier(r.J) : formatOffsetTimeZoneIdentifier(r._);
2313
2305
  validateString(o), createTemporalZonedDateTime(n, a, canonicalizeCalendar(o), this);
2314
2306
  }
2315
2307
  static from(e, t = void 0) {
@@ -2373,7 +2365,7 @@ var Me = class {
2373
2365
  return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ae;
2374
2366
  }
2375
2367
  get weekOfYear() {
2376
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie.se;
2368
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie.ce;
2377
2369
  }
2378
2370
  get yearOfWeek() {
2379
2371
  return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie.t;
@@ -2383,7 +2375,7 @@ var Me = class {
2383
2375
  return timeDurationToSubsecondsNumber(differenceEpochNanoseconds(getStartOfDay(e.P, t), getStartOfDay(e.P, addDaysToIsoDate(t, 1))), -9) / o;
2384
2376
  }
2385
2377
  get daysInWeek() {
2386
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce;
2378
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).se;
2387
2379
  }
2388
2380
  get daysInMonth() {
2389
2381
  return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).le;
@@ -2408,21 +2400,21 @@ var Me = class {
2408
2400
  validatePartialTemporalObject(e);
2409
2401
  const n = getOffsetNanosecondsForZonedDateTimeSlot(o), r = getIsoDateTimeForZonedDateTimeSlot(o), a = calendarMergeFields(o.Y, createNullPrototypeObject({
2410
2402
  ...isoDateTimeToFields(o.Y, r),
2411
- [Ft.M]: formatUtcOffsetNanoseconds(n)
2403
+ [Ot.M]: formatUtcOffsetNanoseconds(n)
2412
2404
  }), prepareCalendarFields(o.Y, e, [
2413
- Ft.t,
2414
- Ft.u,
2415
- Ft.v,
2416
- Ft.T,
2417
- Ft.D,
2418
- Ft.I,
2419
- Ft.O,
2420
- Ft.F,
2421
- Ft.S,
2422
- Ft.$,
2423
- Ft.M
2424
- ])), i = getOptionsObject(t), s = getTemporalDisambiguationOption(i), c = getTemporalOffsetOption(i, I), l = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.Y, a, l);
2425
- return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, F, parseDateTimeUtcOffset(a[Ft.M]), o.P, s, c, !0), o.P, o.Y);
2405
+ Ot.t,
2406
+ Ot.u,
2407
+ Ot.v,
2408
+ Ot.T,
2409
+ Ot.D,
2410
+ Ot.I,
2411
+ Ot.O,
2412
+ Ot.F,
2413
+ Ot.S,
2414
+ Ot.$,
2415
+ Ot.M
2416
+ ])), i = getOptionsObject(t), c = getTemporalDisambiguationOption(i), s = getTemporalOffsetOption(i, I), l = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.Y, a, l);
2417
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, F, parseDateTimeUtcOffset(a[Ot.M]), o.P, c, s, !0), o.P, o.Y);
2426
2418
  }
2427
2419
  withPlainTime(e = void 0) {
2428
2420
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
@@ -2450,38 +2442,38 @@ var Me = class {
2450
2442
  }
2451
2443
  round(e) {
2452
2444
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", T);
2453
- if (validateTemporalUnitValue(a, l, [H]), validateTemporalRoundingIncrement(n, a === H ? 1 : maximumTemporalDurationRoundingIncrement(a), a === H), a === G && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
2445
+ if (validateTemporalUnitValue(a, l, [H]), validateTemporalRoundingIncrement(n, a === H ? 1 : maximumTemporalDurationRoundingIncrement(a), a === H), a === _ && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
2454
2446
  const i = getIsoDateTimeForZonedDateTimeSlot(t);
2455
2447
  if (a === H) {
2456
2448
  const e = getStartOfDay(t.P, i.o), o = getStartOfDay(t.P, addDaysToIsoDate(i.o, 1));
2457
- return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, t.U), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.P, t.Y);
2449
+ return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, 1 !== compareEpochNanoseconds(o, t.U) ? addNanosecondsToEpochSeconds(o, -1) : t.U), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.P, t.Y);
2458
2450
  }
2459
- const s = roundIsoDateTime(i, n, a, r), c = getOffsetNanosecondsForZonedDateTimeSlot(t);
2460
- return createTemporalZonedDateTime(interpretISODateTimeOffset(s.o, s.p, F, c, t.P, g, I, !0), t.P, t.Y);
2451
+ const c = roundIsoDateTime(i, n, a, r), s = getOffsetNanosecondsForZonedDateTimeSlot(t);
2452
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(c.o, c.p, F, s, t.P, g, I, !0), t.P, t.Y);
2461
2453
  }
2462
2454
  equals(e) {
2463
2455
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = toTemporalZonedDateTime(e);
2464
2456
  return !compareEpochNanoseconds(t.U, o.U) && timeZoneEquals(t.P, o.P) && calendarEquals(t.Y, o.Y);
2465
2457
  }
2466
2458
  toString(e = void 0) {
2467
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [j, W], j))(o), i = getRoundingModeOption(o, M), s = getTemporalUnitValuedOption(o, "smallestUnit", void 0), c = ((e) => getOption(e, "timeZoneName", [
2459
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [j, W], j))(o), i = getRoundingModeOption(o, M), c = getTemporalUnitValuedOption(o, "smallestUnit", void 0), s = ((e) => getOption(e, "timeZoneName", [
2468
2460
  A,
2469
2461
  L,
2470
2462
  k
2471
2463
  ], A))(o);
2472
- validateTemporalUnitValue(s, l), s === q && throwRangeError(invalidField("smallestUnit"));
2473
- const d = toSecondsStringPrecisionRecord(s, r);
2474
- return temporalZonedDateTimeToString(t, d.$e, n, c, a, d.Ee, d.ve, i);
2464
+ validateTemporalUnitValue(c, l), c === q && throwRangeError(invalidField("smallestUnit"));
2465
+ const d = toSecondsStringPrecisionRecord(c, r);
2466
+ return temporalZonedDateTimeToString(t, d.$e, n, s, a, d.ve, d.Ee, i);
2475
2467
  }
2476
2468
  toLocaleString(e = void 0, t = void 0) {
2477
2469
  const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, d, o.P), r = getInternalSlotOrThrowForDateTimeFormat(n);
2478
- return "iso8601" === o.Y || calendarEquals(o.Y, r.Re.calendar) || throwRangeError(De), formatDateTime(n, createTemporalInstant(o.U));
2470
+ return "iso8601" === o.Y || calendarEquals(o.Y, r.Re.calendar) || throwRangeError(Te), formatDateTime(n, createTemporalInstant(o.U));
2479
2471
  }
2480
2472
  toJSON() {
2481
2473
  return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, $, A, j);
2482
2474
  }
2483
2475
  valueOf() {
2484
- throwTypeError(Oe);
2476
+ throwTypeError(Ie);
2485
2477
  }
2486
2478
  startOfDay() {
2487
2479
  const e = getInternalSlotOrThrowForZonedDateTime(this);
@@ -2489,7 +2481,7 @@ var Me = class {
2489
2481
  }
2490
2482
  getTimeZoneTransition(e) {
2491
2483
  const t = getInternalSlotOrThrowForZonedDateTime(this);
2492
- void 0 === e && throwTypeError(Fe);
2484
+ void 0 === e && throwTypeError(Oe);
2493
2485
  const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], T), n = ((e, t, o) => {
2494
2486
  if ("UTC" === e || isOffsetTimeZoneIdentifier(e)) return null;
2495
2487
  const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, Infinity);
@@ -2512,10 +2504,10 @@ var Me = class {
2512
2504
  return createTemporalDateTime(getIsoDateTimeForZonedDateTimeSlot(e), e.Y);
2513
2505
  }
2514
2506
  };
2515
- defineStringTag(Me.prototype, "Temporal.ZonedDateTime"), renameFunction(Me, "ZonedDateTime");
2516
- const be = createNullPrototypeObject(), Pe = createNullPrototypeObject(), Re = /* @__PURE__ */ new WeakMap();
2517
- var Ne = class {
2518
- constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, s = 0, c = 0, l = "iso8601") {
2507
+ defineStringTag(Ee.prototype, "Temporal.ZonedDateTime"), renameFunction(Ee, "ZonedDateTime");
2508
+ const Me = createNullPrototypeObject(), be = createNullPrototypeObject(), Pe = /* @__PURE__ */ new WeakMap();
2509
+ var Re = class {
2510
+ constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = "iso8601") {
2519
2511
  const d = [
2520
2512
  e,
2521
2513
  t,
@@ -2525,123 +2517,123 @@ var Ne = class {
2525
2517
  r,
2526
2518
  a,
2527
2519
  i,
2528
- s,
2529
- c
2520
+ c,
2521
+ s
2530
2522
  ].map(toIntegerWithTruncation);
2531
2523
  validateString(l);
2532
2524
  const u = canonicalizeCalendar(l);
2533
- isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(de), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
2525
+ isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(le), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
2534
2526
  }
2535
2527
  static from(e, t = void 0) {
2536
2528
  return toTemporalDateTime(e, t);
2537
2529
  }
2538
2530
  static compare(e, t) {
2539
- return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e))._, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t))._);
2531
+ return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e)).G, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t)).G);
2540
2532
  }
2541
2533
  get calendarId() {
2542
2534
  return getInternalSlotOrThrowForPlainDateTime(this).Y;
2543
2535
  }
2544
2536
  get era() {
2545
2537
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2546
- return calendarIsoToDate(e.Y, e._.o).oe;
2538
+ return calendarIsoToDate(e.Y, e.G.o).oe;
2547
2539
  }
2548
2540
  get eraYear() {
2549
2541
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2550
- return calendarIsoToDate(e.Y, e._.o).ne;
2542
+ return calendarIsoToDate(e.Y, e.G.o).ne;
2551
2543
  }
2552
2544
  get year() {
2553
2545
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2554
- return calendarIsoToDate(e.Y, e._.o).t;
2546
+ return calendarIsoToDate(e.Y, e.G.o).t;
2555
2547
  }
2556
2548
  get month() {
2557
2549
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2558
- return calendarIsoToDate(e.Y, e._.o).u;
2550
+ return calendarIsoToDate(e.Y, e.G.o).u;
2559
2551
  }
2560
2552
  get monthCode() {
2561
2553
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2562
- return calendarIsoToDate(e.Y, e._.o).v;
2554
+ return calendarIsoToDate(e.Y, e.G.o).v;
2563
2555
  }
2564
2556
  get day() {
2565
2557
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2566
- return calendarIsoToDate(e.Y, e._.o).T;
2558
+ return calendarIsoToDate(e.Y, e.G.o).T;
2567
2559
  }
2568
2560
  get hour() {
2569
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.D;
2561
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.D;
2570
2562
  }
2571
2563
  get minute() {
2572
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.I;
2564
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.I;
2573
2565
  }
2574
2566
  get second() {
2575
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.O;
2567
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.O;
2576
2568
  }
2577
2569
  get millisecond() {
2578
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.F;
2570
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.F;
2579
2571
  }
2580
2572
  get microsecond() {
2581
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.S;
2573
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.S;
2582
2574
  }
2583
2575
  get nanosecond() {
2584
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.$;
2576
+ return getInternalSlotOrThrowForPlainDateTime(this).G.p.$;
2585
2577
  }
2586
2578
  get dayOfWeek() {
2587
2579
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2588
- return calendarIsoToDate(e.Y, e._.o).re;
2580
+ return calendarIsoToDate(e.Y, e.G.o).re;
2589
2581
  }
2590
2582
  get dayOfYear() {
2591
2583
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2592
- return calendarIsoToDate(e.Y, e._.o).ae;
2584
+ return calendarIsoToDate(e.Y, e.G.o).ae;
2593
2585
  }
2594
2586
  get weekOfYear() {
2595
2587
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2596
- return calendarIsoToDate(e.Y, e._.o).ie.se;
2588
+ return calendarIsoToDate(e.Y, e.G.o).ie.ce;
2597
2589
  }
2598
2590
  get yearOfWeek() {
2599
2591
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2600
- return calendarIsoToDate(e.Y, e._.o).ie.t;
2592
+ return calendarIsoToDate(e.Y, e.G.o).ie.t;
2601
2593
  }
2602
2594
  get daysInWeek() {
2603
2595
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2604
- return calendarIsoToDate(e.Y, e._.o).ce;
2596
+ return calendarIsoToDate(e.Y, e.G.o).se;
2605
2597
  }
2606
2598
  get daysInMonth() {
2607
2599
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2608
- return calendarIsoToDate(e.Y, e._.o).le;
2600
+ return calendarIsoToDate(e.Y, e.G.o).le;
2609
2601
  }
2610
2602
  get daysInYear() {
2611
2603
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2612
- return calendarIsoToDate(e.Y, e._.o).de;
2604
+ return calendarIsoToDate(e.Y, e.G.o).de;
2613
2605
  }
2614
2606
  get monthsInYear() {
2615
2607
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2616
- return calendarIsoToDate(e.Y, e._.o).me;
2608
+ return calendarIsoToDate(e.Y, e.G.o).me;
2617
2609
  }
2618
2610
  get inLeapYear() {
2619
2611
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2620
- return calendarIsoToDate(e.Y, e._.o).ue;
2612
+ return calendarIsoToDate(e.Y, e.G.o).ue;
2621
2613
  }
2622
2614
  with(e, t = void 0) {
2623
2615
  const o = getInternalSlotOrThrowForPlainDateTime(this);
2624
2616
  validatePartialTemporalObject(e);
2625
- const n = calendarMergeFields(o.Y, isoDateTimeToFields(o.Y, o._), prepareCalendarFields(o.Y, e, [
2626
- Ft.t,
2627
- Ft.u,
2628
- Ft.v,
2629
- Ft.T,
2630
- Ft.D,
2631
- Ft.I,
2632
- Ft.O,
2633
- Ft.F,
2634
- Ft.S,
2635
- Ft.$
2617
+ const n = calendarMergeFields(o.Y, isoDateTimeToFields(o.Y, o.G), prepareCalendarFields(o.Y, e, [
2618
+ Ot.t,
2619
+ Ot.u,
2620
+ Ot.v,
2621
+ Ot.T,
2622
+ Ot.D,
2623
+ Ot.I,
2624
+ Ot.O,
2625
+ Ot.F,
2626
+ Ot.S,
2627
+ Ot.$
2636
2628
  ]));
2637
2629
  return createTemporalDateTime(interpretTemporalDateTimeFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2638
2630
  }
2639
2631
  withPlainTime(e = void 0) {
2640
2632
  const t = getInternalSlotOrThrowForPlainDateTime(this);
2641
- return createTemporalDateTime(combineIsoDateAndTimeRecord(t._.o, toTimeRecordOrMidnight(e)), t.Y);
2633
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(t.G.o, toTimeRecordOrMidnight(e)), t.Y);
2642
2634
  }
2643
2635
  withCalendar(e) {
2644
- return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this)._, toTemporalCalendarIdentifier(e));
2636
+ return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this).G, toTemporalCalendarIdentifier(e));
2645
2637
  }
2646
2638
  add(e, t = void 0) {
2647
2639
  return addDurationToDateTime(1, getInternalSlotOrThrowForPlainDateTime(this), e, t);
@@ -2657,43 +2649,43 @@ var Ne = class {
2657
2649
  }
2658
2650
  round(e) {
2659
2651
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", T);
2660
- return validateTemporalUnitValue(a, l, [H]), validateTemporalRoundingIncrement(n, a === H ? 1 : maximumTemporalDurationRoundingIncrement(a), a === H), createTemporalDateTime(roundIsoDateTime(t._, n, a, r), t.Y);
2652
+ return validateTemporalUnitValue(a, l, [H]), validateTemporalRoundingIncrement(n, a === H ? 1 : maximumTemporalDurationRoundingIncrement(a), a === H), createTemporalDateTime(roundIsoDateTime(t.G, n, a, r), t.Y);
2661
2653
  }
2662
2654
  equals(e) {
2663
2655
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e));
2664
- return !compareIsoDateTime(t._, o._) && calendarEquals(t.Y, o.Y);
2656
+ return !compareIsoDateTime(t.G, o.G) && calendarEquals(t.Y, o.Y);
2665
2657
  }
2666
2658
  toString(e = void 0) {
2667
2659
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, M), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2668
2660
  validateTemporalUnitValue(i, l), i === q && throwRangeError(invalidField("smallestUnit"));
2669
- const s = toSecondsStringPrecisionRecord(i, r);
2670
- return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t._, s.Ee, s.ve, a)), t.Y, s.$e, n);
2661
+ const c = toSecondsStringPrecisionRecord(i, r);
2662
+ return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.G, c.ve, c.Ee, a)), t.Y, c.$e, n);
2671
2663
  }
2672
2664
  toLocaleString(e = void 0, t = void 0) {
2673
2665
  return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, d), this);
2674
2666
  }
2675
2667
  toJSON() {
2676
2668
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2677
- return isoDateTimeToString(e._, e.Y, void 0, $);
2669
+ return isoDateTimeToString(e.G, e.Y, void 0, $);
2678
2670
  }
2679
2671
  valueOf() {
2680
- throwTypeError(Oe);
2672
+ throwTypeError(Ie);
2681
2673
  }
2682
2674
  toZonedDateTime(e, t = void 0) {
2683
2675
  const o = getInternalSlotOrThrowForPlainDateTime(this), n = toTemporalTimeZoneIdentifier(e), r = getTemporalDisambiguationOption(getOptionsObject(t));
2684
- return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o._, r), n, o.Y);
2676
+ return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o.G, r), n, o.Y);
2685
2677
  }
2686
2678
  toPlainDate() {
2687
2679
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2688
- return createTemporalDate(e._.o, e.Y);
2680
+ return createTemporalDate(e.G.o, e.Y);
2689
2681
  }
2690
2682
  toPlainTime() {
2691
- return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this)._.p);
2683
+ return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).G.p);
2692
2684
  }
2693
2685
  };
2694
- defineStringTag(Ne.prototype, "Temporal.PlainDateTime"), renameFunction(Ne, "PlainDateTime");
2695
- const Ze = /* @__PURE__ */ new WeakMap();
2696
- var $e = class {
2686
+ defineStringTag(Re.prototype, "Temporal.PlainDateTime"), renameFunction(Re, "PlainDateTime");
2687
+ const Ne = /* @__PURE__ */ new WeakMap();
2688
+ var Ze = class {
2697
2689
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0) {
2698
2690
  const i = [
2699
2691
  e,
@@ -2703,7 +2695,7 @@ var $e = class {
2703
2695
  r,
2704
2696
  a
2705
2697
  ].map(toIntegerWithTruncation);
2706
- isValidTime(...i) || throwRangeError(de), createTemporalTime(createTimeRecord(...i), this);
2698
+ isValidTime(...i) || throwRangeError(le), createTemporalTime(createTimeRecord(...i), this);
2707
2699
  }
2708
2700
  static from(e, t = void 0) {
2709
2701
  return createTemporalTime(toTemporalTime(e, t));
@@ -2763,7 +2755,7 @@ var $e = class {
2763
2755
  const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2764
2756
  validateTemporalUnitValue(a, l), a === q && throwRangeError(invalidField("smallestUnit"));
2765
2757
  const i = toSecondsStringPrecisionRecord(a, n);
2766
- return timeRecordToString(roundTime(t, i.Ee, i.ve, r), i.$e);
2758
+ return timeRecordToString(roundTime(t, i.ve, i.Ee, r), i.$e);
2767
2759
  }
2768
2760
  toLocaleString(e = void 0, t = void 0) {
2769
2761
  return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, l), this);
@@ -2772,35 +2764,35 @@ var $e = class {
2772
2764
  return timeRecordToString(getInternalSlotOrThrowForPlainTime(this));
2773
2765
  }
2774
2766
  valueOf() {
2775
- throwTypeError(Oe);
2767
+ throwTypeError(Ie);
2776
2768
  }
2777
2769
  };
2778
- defineStringTag($e.prototype, "Temporal.PlainTime"), renameFunction($e, "PlainTime");
2779
- const Ce = "\\d{4}|[-+]\\d{6}", Ye = "0[1-9]|1[0-2]", Ue = "0[1-9]|[12]\\d|30|31", je = "[01]\\d|2[0-3]", We = "[0-5]\\d", Ae = `(?<a>${Ce})(?<x>-?)(?<b>${Ye})\\k<x>(?<c>${Ue})`, Le = optionalChain([
2780
- `(?<d>${je})`,
2781
- `(?<y>:?)(?<e>${We})`,
2770
+ defineStringTag(Ze.prototype, "Temporal.PlainTime"), renameFunction(Ze, "PlainTime");
2771
+ const $e = "\\d{4}|[-+]\\d{6}", Ce = "0[1-9]|1[0-2]", Ye = "0[1-9]|[12]\\d|30|31", Ue = "[01]\\d|2[0-3]", je = "[0-5]\\d", We = `(?<a>${$e})(?<x>-?)(?<b>${Ce})\\k<x>(?<c>${Ye})`, Ae = optionalChain([
2772
+ `(?<d>${Ue})`,
2773
+ `(?<y>:?)(?<e>${je})`,
2782
2774
  "\\k<y>(?<f>[0-5]\\d|60)",
2783
2775
  "[.,](?<g>\\d{1,9})"
2784
- ]), ke = optionalChain([
2785
- `([+-])(${je})`,
2786
- `(?<z>:?)(${We})`,
2787
- `\\k<z>(${We})`,
2776
+ ]), Le = optionalChain([
2777
+ `([+-])(${Ue})`,
2778
+ `(?<z>:?)(${je})`,
2779
+ `\\k<z>(${je})`,
2788
2780
  "[.,](\\d{1,9})"
2789
- ]), ze = optionalChain([
2790
- Ae,
2791
- `[ tT]${Le}`,
2792
- `(?<h>${ke})`
2793
- ]), Ve = `(?<l>${Ce})-?(?<m>${Ye})`, xe = `(?:--)?(?<m>${Ye})-?(?<n>${Ue})`, He = `(?<h>${ke})|(?<i>[zZ])`, qe = `([+-])(${je})(?::?(${We}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, Be = `\\[!?(?<j>${qe})\\]`, Je = join("[a-zA-Z\\d]+", "-"), Ge = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Je})\\]`, _e = `(?<k>(${Ge})*)`, Ke = RegExp(Ge, "g"), Xe = createRegExp(`${optionalChain([
2794
- Ae,
2795
- `[ tT]${Le}`,
2796
- He
2797
- ])}${Be}${_e}`), Qe = createRegExp(`${ze}(?:${Be})?${_e}`), et = createRegExp(`${Ae}[ tT]${Le}(?:${He})(?:${Be})?${_e}`), tt = createRegExp(`(${Ae}[ tT]|[tT]?)${Le}(?<h>${ke})?(?:${Be})?${_e}`), ot = createRegExp(`(${ze}|${xe})(?:${Be})?${_e}`), nt = createRegExp(`(${ze}|${Ve})(?:${Be})?${_e}`), rt = [createRegExp(`${xe}(${Be})?(${Ge})*`), createRegExp(`${Ve}(${Be})?(${Ge})*`)], at = createRegExp(qe), it = createRegExp(Je), st = createRegExp(ke), ct = /* @__PURE__ */ new WeakMap();
2798
- var lt = class {
2781
+ ]), ke = optionalChain([
2782
+ We,
2783
+ `[ tT]${Ae}`,
2784
+ `(?<h>${Le})`
2785
+ ]), ze = `(?<l>${$e})-?(?<m>${Ce})`, Ve = `(?:--)?(?<m>${Ce})-?(?<n>${Ye})`, xe = `(?<h>${Le})|(?<i>[zZ])`, He = `([+-])(${Ue})(?::?(${je}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, qe = `\\[!?(?<j>${He})\\]`, Be = join("[a-zA-Z\\d]+", "-"), Je = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Be})\\]`, _e = `(?<k>(${Je})*)`, Ke = RegExp(Je, "g"), Ge = createRegExp(`${optionalChain([
2786
+ We,
2787
+ `[ tT]${Ae}`,
2788
+ xe
2789
+ ])}${qe}${_e}`), Xe = createRegExp(`${ke}(?:${qe})?${_e}`), Qe = createRegExp(`${We}[ tT]${Ae}(?:${xe})(?:${qe})?${_e}`), et = createRegExp(`(${We}[ tT]|[tT]?)${Ae}(?<h>${Le})?(?:${qe})?${_e}`), tt = createRegExp(`(${ke}|${Ve})(?:${qe})?${_e}`), ot = createRegExp(`(${ke}|${ze})(?:${qe})?${_e}`), nt = [createRegExp(`${Ve}(${qe})?(${Je})*`), createRegExp(`${ze}(${qe})?(${Je})*`)], rt = createRegExp(He), at = createRegExp(Be), it = createRegExp(Le), ct = /* @__PURE__ */ new WeakMap();
2790
+ var st = class {
2799
2791
  constructor(e, t, o = "iso8601", n = 1972) {
2800
2792
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2801
2793
  validateString(o);
2802
- const i = canonicalizeCalendar(o), s = toIntegerWithTruncation(n);
2803
- isValidIsoDate(s, r, a) || throwRangeError(de), createTemporalMonthDay(createIsoDateRecord(s, r, a), i, this);
2794
+ const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2795
+ isValidIsoDate(c, r, a) || throwRangeError(le), createTemporalMonthDay(createIsoDateRecord(c, r, a), i, this);
2804
2796
  }
2805
2797
  static from(e, t = void 0) {
2806
2798
  return toTemporalMonthDay(e, t);
@@ -2819,41 +2811,41 @@ var lt = class {
2819
2811
  with(e, t = void 0) {
2820
2812
  const o = getInternalSlotOrThrowForPlainMonthDay(this);
2821
2813
  return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.Y, calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, u), prepareCalendarFields(o.Y, e, [
2822
- Ft.t,
2823
- Ft.u,
2824
- Ft.v,
2825
- Ft.T
2814
+ Ot.t,
2815
+ Ot.u,
2816
+ Ot.v,
2817
+ Ot.T
2826
2818
  ])), getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2827
2819
  }
2828
2820
  equals(e) {
2829
2821
  const t = getInternalSlotOrThrowForPlainMonthDay(this), o = getInternalSlotOrThrowForPlainMonthDay(toTemporalMonthDay(e));
2830
- return 0 === compareIsoDate(t.o, o.o) && calendarEquals(t.Y, o.Y);
2822
+ return !compareIsoDate(t.o, o.o) && calendarEquals(t.Y, o.Y);
2831
2823
  }
2832
2824
  toString(e = void 0) {
2833
2825
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2834
2826
  }
2835
2827
  toLocaleString(e = void 0, t = void 0) {
2836
- return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2828
+ return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2837
2829
  }
2838
2830
  toJSON() {
2839
2831
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), $);
2840
2832
  }
2841
2833
  valueOf() {
2842
- throwTypeError(Oe);
2834
+ throwTypeError(Ie);
2843
2835
  }
2844
2836
  toPlainDate(e) {
2845
2837
  const t = getInternalSlotOrThrowForPlainMonthDay(this);
2846
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, u), prepareCalendarFields(t.Y, e, [Ft.t], [])), h), t.Y);
2838
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, u), prepareCalendarFields(t.Y, e, [Ot.t], [])), h), t.Y);
2847
2839
  }
2848
2840
  };
2849
- defineStringTag(lt.prototype, "Temporal.PlainMonthDay"), renameFunction(lt, "PlainMonthDay");
2850
- const dt = /* @__PURE__ */ new WeakMap();
2851
- var mt = class {
2841
+ defineStringTag(st.prototype, "Temporal.PlainMonthDay"), renameFunction(st, "PlainMonthDay");
2842
+ const lt = /* @__PURE__ */ new WeakMap();
2843
+ var dt = class {
2852
2844
  constructor(e, t, o = "iso8601", n = 1) {
2853
2845
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2854
2846
  validateString(o);
2855
- const i = canonicalizeCalendar(o), s = toIntegerWithTruncation(n);
2856
- isValidIsoDate(r, a, s) || throwRangeError(de), createTemporalYearMonth(createIsoDateRecord(r, a, s), i, this);
2847
+ const i = canonicalizeCalendar(o), c = toIntegerWithTruncation(n);
2848
+ isValidIsoDate(r, a, c) || throwRangeError(le), createTemporalYearMonth(createIsoDateRecord(r, a, c), i, this);
2857
2849
  }
2858
2850
  static from(e, t = void 0) {
2859
2851
  return toTemporalYearMonth(e, t);
@@ -2904,9 +2896,9 @@ var mt = class {
2904
2896
  const o = getInternalSlotOrThrowForPlainYearMonth(this);
2905
2897
  validatePartialTemporalObject(e);
2906
2898
  const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, m), prepareCalendarFields(o.Y, e, [
2907
- Ft.t,
2908
- Ft.u,
2909
- Ft.v
2899
+ Ot.t,
2900
+ Ot.u,
2901
+ Ot.v
2910
2902
  ]));
2911
2903
  return createTemporalYearMonth(calendarYearMonthFromFields(o.Y, n, getTemporalOverflowOption(getOptionsObject(t))), o.Y);
2912
2904
  }
@@ -2924,33 +2916,33 @@ var mt = class {
2924
2916
  }
2925
2917
  equals(e) {
2926
2918
  const t = getInternalSlotOrThrowForPlainYearMonth(this), o = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(e));
2927
- return 0 === compareIsoDate(t.o, o.o) && t.Y === o.Y;
2919
+ return !compareIsoDate(t.o, o.o) && t.Y === o.Y;
2928
2920
  }
2929
2921
  toString(e = void 0) {
2930
2922
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2931
2923
  }
2932
2924
  toLocaleString(e = void 0, t = void 0) {
2933
- return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2925
+ return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2934
2926
  }
2935
2927
  toJSON() {
2936
2928
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), $);
2937
2929
  }
2938
2930
  valueOf() {
2939
- throwTypeError(Oe);
2931
+ throwTypeError(Ie);
2940
2932
  }
2941
2933
  toPlainDate(e) {
2942
2934
  const t = getInternalSlotOrThrowForPlainYearMonth(this);
2943
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, m), prepareCalendarFields(t.Y, e, [Ft.T], [])), h), t.Y);
2935
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.Y, calendarMergeFields(t.Y, isoDateToFields(t.Y, t.o, m), prepareCalendarFields(t.Y, e, [Ot.T], [])), h), t.Y);
2944
2936
  }
2945
2937
  };
2946
- defineStringTag(mt.prototype, "Temporal.PlainYearMonth"), renameFunction(mt, "PlainYearMonth");
2947
- const ut = /* @__PURE__ */ new WeakMap();
2948
- var Tt = class {
2938
+ defineStringTag(dt.prototype, "Temporal.PlainYearMonth"), renameFunction(dt, "PlainYearMonth");
2939
+ const mt = /* @__PURE__ */ new WeakMap();
2940
+ var ut = class {
2949
2941
  constructor(e, t, o, n = "iso8601") {
2950
2942
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2951
2943
  validateString(n);
2952
- const s = canonicalizeCalendar(n);
2953
- isValidIsoDate(r, a, i) || throwRangeError(de), createTemporalDate(createIsoDateRecord(r, a, i), s, this);
2944
+ const c = canonicalizeCalendar(n);
2945
+ isValidIsoDate(r, a, i) || throwRangeError(le), createTemporalDate(createIsoDateRecord(r, a, i), c, this);
2954
2946
  }
2955
2947
  static from(e, t = void 0) {
2956
2948
  return toTemporalDate(e, t);
@@ -2995,7 +2987,7 @@ var Tt = class {
2995
2987
  }
2996
2988
  get weekOfYear() {
2997
2989
  const e = getInternalSlotOrThrowForPlainDate(this);
2998
- return calendarIsoToDate(e.Y, e.o).ie.se;
2990
+ return calendarIsoToDate(e.Y, e.o).ie.ce;
2999
2991
  }
3000
2992
  get yearOfWeek() {
3001
2993
  const e = getInternalSlotOrThrowForPlainDate(this);
@@ -3003,7 +2995,7 @@ var Tt = class {
3003
2995
  }
3004
2996
  get daysInWeek() {
3005
2997
  const e = getInternalSlotOrThrowForPlainDate(this);
3006
- return calendarIsoToDate(e.Y, e.o).ce;
2998
+ return calendarIsoToDate(e.Y, e.o).se;
3007
2999
  }
3008
3000
  get daysInMonth() {
3009
3001
  const e = getInternalSlotOrThrowForPlainDate(this);
@@ -3023,11 +3015,11 @@ var Tt = class {
3023
3015
  }
3024
3016
  toPlainYearMonth() {
3025
3017
  const e = getInternalSlotOrThrowForPlainDate(this);
3026
- return createTemporalYearMonth(calendarYearMonthFromFields(e.Y, isoDateToFields(e.Y, e.o, c), h), e.Y);
3018
+ return createTemporalYearMonth(calendarYearMonthFromFields(e.Y, isoDateToFields(e.Y, e.o, s), h), e.Y);
3027
3019
  }
3028
3020
  toPlainMonthDay() {
3029
3021
  const e = getInternalSlotOrThrowForPlainDate(this);
3030
- return createTemporalMonthDay(calendarMonthDayFromFields(e.Y, isoDateToFields(e.Y, e.o, c), h), e.Y);
3022
+ return createTemporalMonthDay(calendarMonthDayFromFields(e.Y, isoDateToFields(e.Y, e.o, s), h), e.Y);
3031
3023
  }
3032
3024
  add(e, t = void 0) {
3033
3025
  return addDurationToDate(1, getInternalSlotOrThrowForPlainDate(this), e, t);
@@ -3038,11 +3030,11 @@ var Tt = class {
3038
3030
  with(e, t = void 0) {
3039
3031
  const o = getInternalSlotOrThrowForPlainDate(this);
3040
3032
  validatePartialTemporalObject(e);
3041
- const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, c), prepareCalendarFields(o.Y, e, [
3042
- Ft.t,
3043
- Ft.u,
3044
- Ft.v,
3045
- Ft.T
3033
+ const n = calendarMergeFields(o.Y, isoDateToFields(o.Y, o.o, s), prepareCalendarFields(o.Y, e, [
3034
+ Ot.t,
3035
+ Ot.u,
3036
+ Ot.v,
3037
+ Ot.T
3046
3038
  ])), r = getTemporalOverflowOption(getOptionsObject(t));
3047
3039
  return createTemporalDate(calendarDateFromFields(o.Y, n, r), o.Y);
3048
3040
  }
@@ -3076,23 +3068,23 @@ var Tt = class {
3076
3068
  return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
3077
3069
  }
3078
3070
  toLocaleString(e = void 0, t = void 0) {
3079
- return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, c), this);
3071
+ return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, s), this);
3080
3072
  }
3081
3073
  toJSON() {
3082
3074
  return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), $);
3083
3075
  }
3084
3076
  valueOf() {
3085
- throwTypeError(Oe);
3077
+ throwTypeError(Ie);
3086
3078
  }
3087
3079
  };
3088
- defineStringTag(Tt.prototype, "Temporal.PlainDate"), renameFunction(Tt, "PlainDate");
3089
- const Dt = createNullPrototypeObject(), ht = {
3080
+ defineStringTag(ut.prototype, "Temporal.PlainDate"), renameFunction(ut, "PlainDate");
3081
+ const Tt = createNullPrototypeObject(), Dt = {
3090
3082
  chinese: createLruCache(2e3),
3091
3083
  dangi: createLruCache(2e3)
3092
- }, pt = {
3084
+ }, ht = {
3093
3085
  chinese: createLruCache(1e4),
3094
3086
  dangi: createLruCache(1e4)
3095
- }, gt = createLruCache(5e3), ft = createLruCache(1e3), It = new Map([["ah", 1], ["bh", !1]]), Ot = createNullPrototypeObject({
3087
+ }, pt = createLruCache(5e3), gt = createLruCache(1e3), ft = new Map([["ah", 1], ["bh", !1]]), It = createNullPrototypeObject({
3096
3088
  iso8601: /* @__PURE__ */ new Map(),
3097
3089
  buddhist: new Map([["be", 1]]),
3098
3090
  chinese: /* @__PURE__ */ new Map(),
@@ -3103,9 +3095,9 @@ const Dt = createNullPrototypeObject(), ht = {
3103
3095
  gregory: new Map([["ce", 1], ["bce", !1]]),
3104
3096
  hebrew: new Map([["am", 1]]),
3105
3097
  indian: new Map([["shaka", 1]]),
3106
- "islamic-civil": It,
3107
- "islamic-tbla": It,
3108
- "islamic-umalqura": It,
3098
+ "islamic-civil": ft,
3099
+ "islamic-tbla": ft,
3100
+ "islamic-umalqura": ft,
3109
3101
  japanese: new Map([
3110
3102
  ["reiwa", 2019],
3111
3103
  ["heisei", 1989],
@@ -3117,7 +3109,7 @@ const Dt = createNullPrototypeObject(), ht = {
3117
3109
  ]),
3118
3110
  persian: new Map([["ap", 1]]),
3119
3111
  roc: new Map([["roc", 1], ["broc", !1]])
3120
- }), Ft = {
3112
+ }), Ot = {
3121
3113
  oe: "era",
3122
3114
  ne: "eraYear",
3123
3115
  t: "year",
@@ -3132,42 +3124,42 @@ const Dt = createNullPrototypeObject(), ht = {
3132
3124
  $: "nanosecond",
3133
3125
  M: "offset",
3134
3126
  P: "timeZone"
3135
- }, St = [
3136
- Ft.oe,
3137
- Ft.ne,
3138
- Ft.t,
3139
- Ft.u,
3140
- Ft.v,
3141
- Ft.T,
3142
- Ft.D,
3143
- Ft.I,
3144
- Ft.O,
3145
- Ft.F,
3146
- Ft.S,
3147
- Ft.$,
3148
- Ft.M,
3149
- Ft.P
3150
- ], yt = {
3151
- [Ft.oe]: [toString],
3152
- [Ft.ne]: [toIntegerWithTruncation],
3153
- [Ft.t]: [toIntegerWithTruncation],
3154
- [Ft.u]: [toPositiveIntegerWithTruncation],
3155
- [Ft.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3156
- [Ft.T]: [toPositiveIntegerWithTruncation],
3157
- [Ft.D]: [toIntegerWithTruncation, 0],
3158
- [Ft.I]: [toIntegerWithTruncation, 0],
3159
- [Ft.O]: [toIntegerWithTruncation, 0],
3160
- [Ft.F]: [toIntegerWithTruncation, 0],
3161
- [Ft.S]: [toIntegerWithTruncation, 0],
3162
- [Ft.$]: [toIntegerWithTruncation, 0],
3163
- [Ft.M]: [(e) => {
3127
+ }, Ft = [
3128
+ Ot.oe,
3129
+ Ot.ne,
3130
+ Ot.t,
3131
+ Ot.u,
3132
+ Ot.v,
3133
+ Ot.T,
3134
+ Ot.D,
3135
+ Ot.I,
3136
+ Ot.O,
3137
+ Ot.F,
3138
+ Ot.S,
3139
+ Ot.$,
3140
+ Ot.M,
3141
+ Ot.P
3142
+ ], St = {
3143
+ [Ot.oe]: [toString],
3144
+ [Ot.ne]: [toIntegerWithTruncation],
3145
+ [Ot.t]: [toIntegerWithTruncation],
3146
+ [Ot.u]: [toPositiveIntegerWithTruncation],
3147
+ [Ot.v]: [(e) => createMonthCode(...parseMonthCode(e))],
3148
+ [Ot.T]: [toPositiveIntegerWithTruncation],
3149
+ [Ot.D]: [toIntegerWithTruncation, 0],
3150
+ [Ot.I]: [toIntegerWithTruncation, 0],
3151
+ [Ot.O]: [toIntegerWithTruncation, 0],
3152
+ [Ot.F]: [toIntegerWithTruncation, 0],
3153
+ [Ot.S]: [toIntegerWithTruncation, 0],
3154
+ [Ot.$]: [toIntegerWithTruncation, 0],
3155
+ [Ot.M]: [(e) => {
3164
3156
  const t = toPrimitive(e);
3165
3157
  return validateString(t), parseDateTimeUtcOffset(t), t;
3166
3158
  }],
3167
- [Ft.P]: [toTemporalTimeZoneIdentifier]
3168
- }, wt = /* @__PURE__ */ new WeakMap(), vt = signTimeDuration;
3169
- var Et = class {
3170
- constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, s = 0, c = 0, l = 0) {
3159
+ [Ot.P]: [toTemporalTimeZoneIdentifier]
3160
+ }, yt = /* @__PURE__ */ new WeakMap(), wt = signTimeDuration;
3161
+ var vt = class {
3162
+ constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, c = 0, s = 0, l = 0) {
3171
3163
  createTemporalDuration(createTemporalDurationSlot([
3172
3164
  e,
3173
3165
  t,
@@ -3176,8 +3168,8 @@ var Et = class {
3176
3168
  r,
3177
3169
  a,
3178
3170
  i,
3179
- s,
3180
3171
  c,
3172
+ s,
3181
3173
  l
3182
3174
  ].map(toIntegerIfIntegral)), this);
3183
3175
  }
@@ -3187,15 +3179,15 @@ var Et = class {
3187
3179
  static compare(e, t, o = void 0) {
3188
3180
  const n = toTemporalDuration(e), r = toTemporalDuration(t), a = getTemporalRelativeToOption(getOptionsObject(o));
3189
3181
  if (n.every((e, t) => r[t] === e)) return 0;
3190
- const i = defaultTemporalLargestUnit(n), s = defaultTemporalLargestUnit(r), c = toInternalDurationRecord(n), l = toInternalDurationRecord(r);
3182
+ const i = defaultTemporalLargestUnit(n), c = defaultTemporalLargestUnit(r), s = toInternalDurationRecord(n), l = toInternalDurationRecord(r);
3191
3183
  let d, m;
3192
- return a.Me && (isDateUnit(i) || isDateUnit(s)) ? compareEpochNanoseconds(addZonedDateTime(a.Me, c, h), addZonedDateTime(a.Me, l, h)) : (isCalendarUnit(i) || isCalendarUnit(s) ? (a.be || throwRangeError(missingField("relativeTo")), d = dateDurationDays(c.A, a.be), m = dateDurationDays(l.A, a.be)) : (d = n[Q], m = r[Q]), ve(add24HourDaysToTimeDuration(c.p, d), add24HourDaysToTimeDuration(l.p, m)));
3184
+ return a.Me && (isDateUnit(i) || isDateUnit(c)) ? compareEpochNanoseconds(addZonedDateTime(a.Me, s, h), addZonedDateTime(a.Me, l, h)) : (isCalendarUnit(i) || isCalendarUnit(c) ? (a.be || throwRangeError(missingField("relativeTo")), d = dateDurationDays(s.A, a.be), m = dateDurationDays(l.A, a.be)) : (d = n[Q], m = r[Q]), we(add24HourDaysToTimeDuration(s.p, d), add24HourDaysToTimeDuration(l.p, m)));
3193
3185
  }
3194
3186
  get years() {
3195
- return getInternalSlotOrThrowForDuration(this)[_];
3187
+ return getInternalSlotOrThrowForDuration(this)[K];
3196
3188
  }
3197
3189
  get months() {
3198
- return getInternalSlotOrThrowForDuration(this)[K];
3190
+ return getInternalSlotOrThrowForDuration(this)[G];
3199
3191
  }
3200
3192
  get weeks() {
3201
3193
  return getInternalSlotOrThrowForDuration(this)[X];
@@ -3225,7 +3217,7 @@ var Et = class {
3225
3217
  return durationSign(getInternalSlotOrThrowForDuration(this));
3226
3218
  }
3227
3219
  get blank() {
3228
- return 0 === durationSign(getInternalSlotOrThrowForDuration(this));
3220
+ return !durationSign(getInternalSlotOrThrowForDuration(this));
3229
3221
  }
3230
3222
  with(e) {
3231
3223
  const t = getInternalSlotOrThrowForDuration(this);
@@ -3247,23 +3239,23 @@ var Et = class {
3247
3239
  const t = getInternalSlotOrThrowForDuration(this), o = getRoundToOptionsObject(e);
3248
3240
  let n = getTemporalUnitValuedOption(o, "largestUnit", void 0);
3249
3241
  const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, R);
3250
- let s = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3251
- validateTemporalUnitValue(s, d);
3252
- const c = void 0 !== s;
3253
- s ??= G;
3254
- const l = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(l, s), u = void 0 !== n;
3255
- if (void 0 !== n && "auto" !== n || (n = m), (!c && !u || n > s) && throwRangeError(pe), isDateUnit(s) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(s), !1), a > 1 && n !== s && isDateUnit(s) && throwRangeError(pe), r.Me) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Me, createZonedDateTimeSlot(addZonedDateTime(r.Me, toInternalDurationRecord(t), h), r.Me.P, r.Me.Y), n, a, s, i), isDateUnit(n) ? q : n));
3242
+ let c = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3243
+ validateTemporalUnitValue(c, d);
3244
+ const s = void 0 !== c;
3245
+ c ??= _;
3246
+ const l = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(l, c), u = void 0 !== n;
3247
+ if (void 0 !== n && "auto" !== n || (n = m), (!s && !u || n > c) && throwRangeError(he), isDateUnit(c) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(c), !1), a > 1 && n !== c && isDateUnit(c) && throwRangeError(he), r.Me) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Me, createZonedDateTimeSlot(addZonedDateTime(r.Me, toInternalDurationRecord(t), h), r.Me.P, r.Me.Y), n, a, c, i), isDateUnit(n) ? q : n));
3256
3248
  if (r.be) {
3257
3249
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
3258
- return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.be.Y, r.be.o, adjustDateDurationRecord(e.A, o.K), h), o), r.be.Y, n, a, s, i), n));
3250
+ return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.be.Y, r.be.o, adjustDateDurationRecord(e.A, o.K), h), o), r.be.Y, n, a, c, i), n));
3259
3251
  }
3260
3252
  (isCalendarUnit(l) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
3261
3253
  const T = toInternalDurationRecordWith24HourDays(t);
3262
- return createTemporalDuration(temporalDurationFromInternal(s === H ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(T.p, a, i)[0]), createTimeDurationFromSeconds(0)) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(T.p, a, s, i)), n));
3254
+ return createTemporalDuration(temporalDurationFromInternal(c === H ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(T.p, a, i)[0]), createTimeDurationFromSeconds(0)) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(T.p, a, c, i)), n));
3263
3255
  }
3264
3256
  total(e) {
3265
3257
  const t = getInternalSlotOrThrowForDuration(this);
3266
- void 0 === e && throwTypeError(Fe);
3258
+ void 0 === e && throwTypeError(Oe);
3267
3259
  const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", T);
3268
3260
  if (validateTemporalUnitValue(r, d), n.Me) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.U, t.U, getIsoDateTimeForZonedDateTimeSlot(e), e.P, e.Y, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.U, e.U), o))(n.Me, createZonedDateTimeSlot(addZonedDateTime(n.Me, toInternalDurationRecord(t), h), n.Me.P, n.Me.Y), r);
3269
3261
  if (n.be) {
@@ -3276,25 +3268,25 @@ var Et = class {
3276
3268
  const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
3277
3269
  validateTemporalUnitValue(a, l), a !== q && a !== B || throwRangeError(disallowedUnit(a));
3278
3270
  const i = toSecondsStringPrecisionRecord(a, n);
3279
- if (i.ve === G && 1 === i.Ee) return temporalDurationToString(t, i.$e);
3280
- const s = toInternalDurationRecord(t);
3281
- return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(s.A, roundTimeDuration(s.p, i.Ee, i.ve, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), J)), i.$e);
3271
+ if (i.Ee === _ && 1 === i.ve) return temporalDurationToString(t, i.$e);
3272
+ const c = toInternalDurationRecord(t);
3273
+ return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(c.A, roundTimeDuration(c.p, i.ve, i.Ee, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), J)), i.$e);
3282
3274
  }
3283
3275
  toJSON() {
3284
3276
  return temporalDurationToString(getInternalSlotOrThrowForDuration(this));
3285
3277
  }
3286
3278
  toLocaleString(e = void 0, t = void 0) {
3287
3279
  const o = getInternalSlotOrThrowForDuration(this), n = createNullPrototypeObject();
3288
- return se.map((e, t) => {
3280
+ return ce.map((e, t) => {
3289
3281
  n[e] = o[t];
3290
3282
  }), new Intl.DurationFormat(e, t).format(n);
3291
3283
  }
3292
3284
  valueOf() {
3293
- throwTypeError(Oe);
3285
+ throwTypeError(Ie);
3294
3286
  }
3295
3287
  };
3296
- defineStringTag(Et.prototype, "Temporal.Duration"), renameFunction(Et, "Duration");
3297
- const Mt = {
3288
+ defineStringTag(vt.prototype, "Temporal.Duration"), renameFunction(vt, "Duration");
3289
+ const Et = {
3298
3290
  [w]: Math.ceil,
3299
3291
  [v]: Math.floor,
3300
3292
  [E]: roundExpand,
@@ -3304,7 +3296,7 @@ const Mt = {
3304
3296
  [R]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
3305
3297
  [N]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
3306
3298
  [Z]: roundHalfEven
3307
- }, bt = {
3299
+ }, Mt = {
3308
3300
  [w]: Math.ceil,
3309
3301
  [v]: Math.floor,
3310
3302
  [E]: Math.ceil,
@@ -3314,13 +3306,13 @@ const Mt = {
3314
3306
  [R]: roundHalfCeil,
3315
3307
  [N]: roundHalfFloor,
3316
3308
  [Z]: roundHalfEven
3317
- }, Pt = globalThis.Intl.DateTimeFormat, Rt = /* @__PURE__ */ new WeakMap(), Nt = [
3309
+ }, bt = globalThis.Intl.DateTimeFormat, Pt = /* @__PURE__ */ new WeakMap(), Rt = [
3318
3310
  "year",
3319
3311
  "month",
3320
3312
  "day",
3321
3313
  "weekday",
3322
3314
  "dateStyle"
3323
- ], Zt = [
3315
+ ], Nt = [
3324
3316
  "hour",
3325
3317
  "minute",
3326
3318
  "second",
@@ -3328,16 +3320,16 @@ const Mt = {
3328
3320
  "dayPeriod",
3329
3321
  "timeStyle"
3330
3322
  ];
3331
- var $t = class {
3323
+ var Zt = class {
3332
3324
  Ae(e) {
3333
3325
  return formatDateTime(this, e);
3334
3326
  }
3335
- }, Ct = class {
3327
+ }, $t = class {
3336
3328
  constructor(e, t) {
3337
3329
  createDateTimeFormat(e, t, d, void 0, this);
3338
3330
  }
3339
3331
  get format() {
3340
- return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ke ||= $t.prototype.Ae.bind(this), "name", { value: "" });
3332
+ return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ke ||= Zt.prototype.Ae.bind(this), "name", { value: "" });
3341
3333
  }
3342
3334
  formatToParts(e) {
3343
3335
  return ((e, t) => {
@@ -3346,7 +3338,7 @@ var $t = class {
3346
3338
  })(this, e);
3347
3339
  }
3348
3340
  formatRange(e, t) {
3349
- return void 0 !== e && void 0 !== t || throwTypeError(fe), ((e, t, o) => {
3341
+ return void 0 !== e && void 0 !== t || throwTypeError(ge), ((e, t, o) => {
3350
3342
  const n = getInternalSlotOrThrowForDateTimeFormat(e);
3351
3343
  validateSameTemporalType(t, o);
3352
3344
  const [r, a] = handleDateTimeValue(n, t);
@@ -3354,7 +3346,7 @@ var $t = class {
3354
3346
  })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
3355
3347
  }
3356
3348
  formatRangeToParts(e, t) {
3357
- return void 0 !== e && void 0 !== t || throwTypeError(fe), ((e, t, o) => {
3349
+ return void 0 !== e && void 0 !== t || throwTypeError(ge), ((e, t, o) => {
3358
3350
  const n = getInternalSlotOrThrowForDateTimeFormat(e);
3359
3351
  validateSameTemporalType(t, o);
3360
3352
  const [r, a] = handleDateTimeValue(n, t);
@@ -3365,12 +3357,12 @@ var $t = class {
3365
3357
  return getInternalSlotOrThrowForDateTimeFormat(this).Pe.resolvedOptions();
3366
3358
  }
3367
3359
  };
3368
- const Yt = Object.getOwnPropertyDescriptors(Pt), Ut = Ct.prototype;
3369
- Yt.prototype.value = Ut;
3370
- for (const e of ["formatRange", "formatRangeToParts"]) Pt.prototype[e] || delete Ut[e];
3371
- Object.defineProperties(DateTimeFormat, Yt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3372
- const jt = /* @__PURE__ */ new WeakMap();
3373
- var Wt = class {
3360
+ const Ct = Object.getOwnPropertyDescriptors(bt), Yt = $t.prototype;
3361
+ Ct.prototype.value = Yt;
3362
+ for (const e of ["formatRange", "formatRangeToParts"]) bt.prototype[e] || delete Yt[e];
3363
+ Object.defineProperties(DateTimeFormat, Ct), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
3364
+ const Ut = /* @__PURE__ */ new WeakMap();
3365
+ var jt = class {
3374
3366
  constructor(e) {
3375
3367
  createTemporalInstant(validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e))), this);
3376
3368
  }
@@ -3414,8 +3406,8 @@ var Wt = class {
3414
3406
  toString(e = void 0) {
3415
3407
  const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, M), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
3416
3408
  validateTemporalUnitValue(a, l), a === q && throwRangeError(invalidField("smallestUnit"));
3417
- const s = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), c = toSecondsStringPrecisionRecord(a, n);
3418
- return temporalInstantToString(roundTemporalInstant(t.U, c.Ee, c.ve, r), s, c.$e);
3409
+ const c = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), s = toSecondsStringPrecisionRecord(a, n);
3410
+ return temporalInstantToString(roundTemporalInstant(t.U, s.ve, s.Ee, r), c, s.$e);
3419
3411
  }
3420
3412
  toLocaleString(e = void 0, t = void 0) {
3421
3413
  return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, d), this);
@@ -3424,24 +3416,24 @@ var Wt = class {
3424
3416
  return temporalInstantToString(getInternalSlotOrThrowForInstant(this).U);
3425
3417
  }
3426
3418
  valueOf() {
3427
- throwTypeError(Oe);
3419
+ throwTypeError(Ie);
3428
3420
  }
3429
3421
  toZonedDateTimeISO(e) {
3430
3422
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).U, toTemporalTimeZoneIdentifier(e), "iso8601");
3431
3423
  }
3432
3424
  };
3433
- defineStringTag(Wt.prototype, "Temporal.Instant"), renameFunction(Wt, "Instant");
3434
- const At = class {
3425
+ defineStringTag(jt.prototype, "Temporal.Instant"), renameFunction(jt, "Instant");
3426
+ const Wt = class {
3435
3427
  toTemporalInstant() {
3436
3428
  const e = Date.prototype.valueOf.call(this);
3437
- return isNaN(e) && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
3438
- }
3439
- }.prototype.toTemporalInstant, Lt = Object.getOwnPropertyDescriptors(globalThis.Intl);
3440
- Lt.DateTimeFormat.value = DateTimeFormat;
3441
- const kt = {};
3442
- Object.defineProperties(kt, Lt);
3443
- let zt, Vt = 0, xt = -Infinity;
3444
- const Ht = {
3429
+ return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
3430
+ }
3431
+ }.prototype.toTemporalInstant, At = Object.getOwnPropertyDescriptors(globalThis.Intl);
3432
+ At.DateTimeFormat.value = DateTimeFormat;
3433
+ const Lt = {};
3434
+ Object.defineProperties(Lt, At);
3435
+ let kt, zt = 0, Vt = -Infinity;
3436
+ const xt = {
3445
3437
  timeZoneId: () => systemTimeZoneIdentifier(),
3446
3438
  instant: () => createTemporalInstant(systemUtcEpochNanoseconds()),
3447
3439
  plainDateTimeISO: (e = void 0) => createTemporalDateTime(systemDateTime(e), "iso8601"),
@@ -3449,17 +3441,17 @@ const Ht = {
3449
3441
  plainDateISO: (e = void 0) => createTemporalDate(systemDateTime(e).o, "iso8601"),
3450
3442
  plainTimeISO: (e = void 0) => createTemporalTime(systemDateTime(e).p)
3451
3443
  };
3452
- defineStringTag(Ht, "Temporal.Now"), makePropertiesNonEnumerable(Ht);
3453
- const qt = {
3454
- Instant: Wt,
3455
- PlainDateTime: Ne,
3456
- PlainDate: Tt,
3457
- PlainTime: $e,
3458
- PlainYearMonth: mt,
3459
- PlainMonthDay: lt,
3460
- Duration: Et,
3461
- ZonedDateTime: Me,
3462
- Now: Ht
3444
+ defineStringTag(xt, "Temporal.Now"), makePropertiesNonEnumerable(xt);
3445
+ const Ht = {
3446
+ Instant: jt,
3447
+ PlainDateTime: Re,
3448
+ PlainDate: ut,
3449
+ PlainTime: Ze,
3450
+ PlainYearMonth: dt,
3451
+ PlainMonthDay: st,
3452
+ Duration: vt,
3453
+ ZonedDateTime: Ee,
3454
+ Now: xt
3463
3455
  };
3464
- defineStringTag(qt, "Temporal"), makePropertiesNonEnumerable(qt);
3465
- export { defineNonEnumerableProperty as a, At as i, setSystemTimeZoneIdCacheTtl as n, kt as r, qt as t };
3456
+ defineStringTag(Ht, "Temporal"), makePropertiesNonEnumerable(Ht);
3457
+ export { defineNonEnumerableProperty as a, Wt as i, setSystemTimeZoneIdCacheTtl as n, Lt as r, Ht as t };