temporal-polyfill-lite 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,33 @@
1
- function getNameFromUnit(e) {
2
- return ae[e];
3
- }
4
- function nanosecondsForTimeUnit(e) {
5
- return le[e - 3];
6
- }
7
1
  function isObject(e) {
8
2
  return ("object" == typeof e || "function" == typeof e) && null !== e;
9
3
  }
10
4
  function createNullPrototypeObject(e) {
11
5
  return Object.assign(Object.create(null), e);
12
6
  }
7
+ function makePropertyNonEnumerable(e, t) {
8
+ Object.defineProperty(e, t, { enumerable: !1 });
9
+ }
10
+ function makePropertiesNonEnumerable(e) {
11
+ for (const t of Object.keys(e)) makePropertyNonEnumerable(e, t);
12
+ }
13
+ function defineNonEnumerableProperty(e, t, o) {
14
+ e[t] = o, makePropertyNonEnumerable(e, t);
15
+ }
16
+ function defineStringTag(e, t) {
17
+ Object.defineProperty(e, Symbol.toStringTag, {
18
+ value: t,
19
+ configurable: !0
20
+ });
21
+ }
22
+ function renameFunction(e, t) {
23
+ Object.defineProperty(e, "name", { value: t });
24
+ }
25
+ function getNameFromUnit(e) {
26
+ return y[e];
27
+ }
28
+ function nanosecondsForTimeUnit(e) {
29
+ return E[e - 3];
30
+ }
13
31
  function mapUnlessUndefined(e, t) {
14
32
  return void 0 === e ? void 0 : t(e);
15
33
  }
@@ -22,6 +40,19 @@ function throwRangeError(e) {
22
40
  function throwTypeError(e) {
23
41
  throw new TypeError(e);
24
42
  }
43
+ function getInternalSlotOrThrow(e, t) {
44
+ const o = e.get(t);
45
+ return o || throwTypeError("invalid method call"), o;
46
+ }
47
+ function getInternalSlotOrThrowForDurationFormat(e) {
48
+ return getInternalSlotOrThrow(z, e);
49
+ }
50
+ function durationRecordToDurationLikeObject(e) {
51
+ const t = createNullPrototypeObject();
52
+ return P.map((o, n) => {
53
+ t[o] = e[n];
54
+ }), t;
55
+ }
25
56
  function toPrimitive(e) {
26
57
  if (!isObject(e)) return e;
27
58
  const t = e[Symbol.toPrimitive];
@@ -38,11 +69,11 @@ function toBigInt(e) {
38
69
  return BigInt.asIntN(2 ** 53 - 1, e);
39
70
  }
40
71
  function toIntegerIfIntegral(e) {
41
- const t = Oe(e);
72
+ const t = Se(e);
42
73
  return Number.isInteger(t) || throwRangeError(invalidNumber(t)), t + 0;
43
74
  }
44
75
  function toIntegerWithTruncation(e) {
45
- const t = Oe(e);
76
+ const t = Se(e);
46
77
  return isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
47
78
  }
48
79
  function toPositiveIntegerWithTruncation(e) {
@@ -54,11 +85,11 @@ function getOptionsObject(e = createNullPrototypeObject()) {
54
85
  }
55
86
  function getOption(e, t, o, n) {
56
87
  const r = e[t];
57
- if (void 0 === r) return n === u && throwRangeError(missingField(t)), n;
88
+ if (void 0 === r) return n === q && throwRangeError(missingField(t)), n;
58
89
  const a = toString(r);
59
90
  return o.includes(a) || throwRangeError(invalidField(t)), a;
60
91
  }
61
- function getRoundToOptionsObject(e = throwTypeError(Ie)) {
92
+ function getRoundToOptionsObject(e = throwTypeError(W)) {
62
93
  return "string" == typeof e ? createNullPrototypeObject({ smallestUnit: e }) : getOptionsObject(e);
63
94
  }
64
95
  function validateString(e) {
@@ -85,24 +116,6 @@ function clamp(e, t, o) {
85
116
  function isWithin(e, t, o) {
86
117
  return e >= t && e <= o;
87
118
  }
88
- function makePropertyNonEnumerable(e, t) {
89
- Object.defineProperty(e, t, { enumerable: !1 });
90
- }
91
- function makePropertiesNonEnumerable(e) {
92
- for (const t of Object.keys(e)) makePropertyNonEnumerable(e, t);
93
- }
94
- function defineNonEnumerableProperty(e, t, o) {
95
- e[t] = o, makePropertyNonEnumerable(e, t);
96
- }
97
- function defineStringTag(e, t) {
98
- Object.defineProperty(e, Symbol.toStringTag, {
99
- value: t,
100
- configurable: !0
101
- });
102
- }
103
- function renameFunction(e, t) {
104
- Object.defineProperty(e, "name", { value: t });
105
- }
106
119
  function normalizeEpochNanoseconds(e, t) {
107
120
  return [e + divFloor(t, a), modFloor(t, a)];
108
121
  }
@@ -163,11 +176,11 @@ function negateTimeDuration(e) {
163
176
  return normalize(-e[0], -e[1]);
164
177
  }
165
178
  function signTimeDuration(e) {
166
- return ve(e, we);
179
+ return Pe(e, ye);
167
180
  }
168
181
  function timeDurationToSubsecondsNumber(e, t, o) {
169
182
  const n = signTimeDuration(e);
170
- return e = absTimeDuration(e), n * Oe(`${864 * e[0] + divTrunc(e[1], 1e11)}${toZeroPaddedDecimalString(divTrunc(e[1] % 1e11, 10 ** (9 + t)), 2 - t)}.${o ? toZeroPaddedDecimalString(e[1] % 10 ** (9 + t), 9 + t) : "0"}`) + 0;
183
+ return e = absTimeDuration(e), n * Se(`${864 * e[0] + divTrunc(e[1], 1e11)}${toZeroPaddedDecimalString(divTrunc(e[1] % 1e11, 10 ** (9 + t)), 2 - t)}.${o ? toZeroPaddedDecimalString(e[1] % 10 ** (9 + t), 9 + t) : "0"}`) + 0;
171
184
  }
172
185
  function roundTimeDurationByDays(e, t, o) {
173
186
  return normalize(roundNumberToIncrement(e[0] + signTimeDuration(e) * (e[1] ? .2 * compare(Math.abs(e[1] / a), .5) + .5 : 0), t, o), 0);
@@ -178,10 +191,10 @@ function divideTimeDurationToFloatingPoint(e, t) {
178
191
  function interpretISODateTimeOffset(e, t, o, n, r, a, i, l) {
179
192
  if (!t) return getStartOfDay(r, e);
180
193
  const c = combineIsoDateAndTimeRecord(e, t);
181
- if (o === S || o === O && "ignore" == i) return getEpochNanosecondsFor(r, c, a);
182
- if (o === F || o === O && "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.v - n)));
194
+ if (o === ne || o === te && "ignore" == i) return getEpochNanosecondsFor(r, c, a);
195
+ if (o === oe || o === te && "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.v - n)));
183
196
  ((e) => {
184
- Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(se);
197
+ Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(R);
185
198
  })(e);
186
199
  const s = getPossibleEpochNanoseconds(r, c);
187
200
  for (const e of s) {
@@ -196,40 +209,40 @@ function toTemporalZonedDateTime(e, t) {
196
209
  if (isObject(e)) {
197
210
  if (isZonedDateTime(e)) {
198
211
  const o = getOptionsObject(t);
199
- return getTemporalDisambiguationOption(o), getTemporalOffsetOption(o, p), getTemporalOverflowOption(o), getInternalSlotOrThrowForZonedDateTime(e);
212
+ return getTemporalDisambiguationOption(o), getTemporalOffsetOption(o, X), getTemporalOverflowOption(o), getInternalSlotOrThrowForZonedDateTime(e);
200
213
  }
201
214
  i = getTemporalCalendarIdentifierWithIsoDefault(e);
202
215
  const s = prepareCalendarFields(i, e, [
203
- Tt.t,
204
- Tt.u,
205
- Tt.P,
206
- Tt.T,
207
- Tt.D,
208
- Tt.I,
209
- Tt.O,
210
- Tt.F,
211
- Tt.S,
212
- Tt.v,
213
- Tt.R,
214
- Tt.Z
215
- ], [Tt.Z]);
216
+ ht.t,
217
+ ht.u,
218
+ ht.P,
219
+ ht.T,
220
+ ht.D,
221
+ ht.I,
222
+ ht.O,
223
+ ht.F,
224
+ ht.S,
225
+ ht.v,
226
+ ht.R,
227
+ ht.Z
228
+ ], [ht.Z]);
216
229
  o = s.timeZone, n = s.offset;
217
230
  const d = getOptionsObject(t);
218
- r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, p);
231
+ r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, X);
219
232
  const m = interpretTemporalDateTimeFields(i, s, getTemporalOverflowOption(d));
220
233
  l = m.o, c = m.p;
221
234
  } else {
222
235
  validateString(e);
223
- const m = parseIsoDateTime(e, [Ge]);
236
+ const m = parseIsoDateTime(e, [et]);
224
237
  o = toTemporalTimeZoneIdentifier(m.Z.$), n = m.Z.N, s = m.Z.M, i = canonicalizeCalendar(m.U || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
225
238
  const u = getOptionsObject(t);
226
- r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, p), getTemporalOverflowOption(u), l = createIsoDateRecord(m.t, m.u, m.T), c = m.p;
239
+ r = getTemporalDisambiguationOption(u), a = getTemporalOffsetOption(u, X), getTemporalOverflowOption(u), l = createIsoDateRecord(m.t, m.u, m.T), c = m.p;
227
240
  }
228
- const m = s ? F : n ? O : S;
229
- return createZonedDateTimeSlot(interpretISODateTimeOffset(l, c, m, m === O ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
241
+ const m = s ? oe : n ? te : ne;
242
+ return createZonedDateTimeSlot(interpretISODateTimeOffset(l, c, m, m === te ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
230
243
  }
231
244
  function createTemporalZonedDateTime(e, t, o, n) {
232
- return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Re[e] && Re[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
245
+ return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Ne[e] && Ne[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
233
246
  }
234
247
  function createZonedDateTimeSlot(e, t, o, n) {
235
248
  return {
@@ -239,34 +252,34 @@ function createZonedDateTimeSlot(e, t, o, n) {
239
252
  W: n
240
253
  };
241
254
  }
242
- function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = J, l = E) {
255
+ function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = D, l = le) {
243
256
  const c = roundTemporalInstant(e.Y, a, i, l), s = epochSeconds(c) === epochSeconds(e.Y) ? getOffsetNanosecondsForZonedDateTimeSlot(e) : getOffsetNanosecondsFor(e.Z, c);
244
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(c, s), "iso8601", t, j)}${r === Y ? "" : formatDateTimeUtcOffsetRounded(s)}${n === A ? "" : `[${n === z ? "!" : ""}${e.Z}]`}${formatCalendarAnnotation(e.U, o)}`;
257
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(c, s), "iso8601", t, pe)}${r === fe ? "" : formatDateTimeUtcOffsetRounded(s)}${n === Oe ? "" : `[${n === Fe ? "!" : ""}${e.Z}]`}${formatCalendarAnnotation(e.U, o)}`;
245
258
  }
246
259
  function addZonedDateTime(e, t, o) {
247
260
  if (!dateDurationSign(t.A)) return addInstant(e.Y, t.p);
248
261
  const n = getIsoDateTimeForZonedDateTimeSlot(e);
249
- return addInstant(getEpochNanosecondsFor(e.Z, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.U, n.o, t.A, o), n.p)), h), t.p);
262
+ return addInstant(getEpochNanosecondsFor(e.Z, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.U, n.o, t.A, o), n.p)), G), t.p);
250
263
  }
251
264
  function differenceZonedDateTime(e, t, o) {
252
265
  const n = compareEpochNanoseconds(e.Y, t.Y);
253
- if (!n) return combineDateAndTimeDuration(zeroDateDuration(), we);
266
+ if (!n) return combineDateAndTimeDuration(zeroDateDuration(), ye);
254
267
  const r = getIsoDateTimeForZonedDateTimeSlot(e), a = getIsoDateTimeForZonedDateTimeSlot(t);
255
268
  if (!compareIsoDate(r.o, a.o)) return combineDateAndTimeDuration(zeroDateDuration(), timeDurationFromEpochNanosecondsDifference(t.Y, e.Y));
256
269
  let i, l = differenceTime(r.p, a.p);
257
- for (let o = gt(l) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), l = timeDurationFromEpochNanosecondsDifference(t.Y, getEpochNanosecondsFor(e.Z, i, h)), gt(l) === n); o++);
258
- return combineDateAndTimeDuration(calendarDateUntil(e.U, r.o, i.o, largerOfTwoTemporalUnits(o, x)), l);
270
+ for (let o = Ot(l) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), l = timeDurationFromEpochNanosecondsDifference(t.Y, getEpochNanosecondsFor(e.Z, i, G)), Ot(l) === n); o++);
271
+ return combineDateAndTimeDuration(calendarDateUntil(e.U, r.o, i.o, largerOfTwoTemporalUnits(o, d)), l);
259
272
  }
260
273
  function differenceZonedDateTimeWithRounding(e, t, o, n, r, a) {
261
274
  if (!isDateUnit(o)) return differenceInstant(e.Y, t.Y, n, r, a);
262
275
  const i = differenceZonedDateTime(e, t, o);
263
- return r === J && 1 === n ? i : roundRelativeDuration(i, e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o, n, r, a);
276
+ return r === D && 1 === n ? i : roundRelativeDuration(i, e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o, n, r, a);
264
277
  }
265
278
  function differenceTemporalZonedDateTime(e, t, o, n) {
266
279
  const r = toTemporalZonedDateTime(o);
267
- calendarEquals(t.U, r.U) || throwRangeError(ue);
268
- const a = getDifferenceSettings(e, getOptionsObject(n), s, [], J, L);
269
- return isDateUnit(a.V) ? (timeZoneEquals(t.Z, r.Z) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.Y, r.Y) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.V, a.H, a.L, a.q), L), e)) : createTemporalDuration(createTemporalDurationSlot([
280
+ calendarEquals(t.U, r.U) || throwRangeError(M);
281
+ const a = getDifferenceSettings(e, getOptionsObject(n), H, [], D, m);
282
+ return isDateUnit(a.V) ? (timeZoneEquals(t.Z, r.Z) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.Y, r.Y) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.V, a.L, a.H, a.B), m), e)) : createTemporalDuration(createTemporalDurationSlot([
270
283
  0,
271
284
  0,
272
285
  0,
@@ -277,7 +290,7 @@ function differenceTemporalZonedDateTime(e, t, o, n) {
277
290
  0,
278
291
  0,
279
292
  0
280
- ]))) : createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.H, a.L, a.q), a.V), e));
293
+ ]))) : createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.L, a.H, a.B), a.V), e));
281
294
  }
282
295
  function addDurationToZonedDateTime(e, t, o, n) {
283
296
  return createTemporalZonedDateTime(addZonedDateTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.Z, t.U);
@@ -288,18 +301,17 @@ function getOffsetNanosecondsForZonedDateTimeSlot(e) {
288
301
  function getIsoDateTimeForZonedDateTimeSlot(e) {
289
302
  return getIsoDateTimeFromOffsetNanoseconds(e.Y, getOffsetNanosecondsForZonedDateTimeSlot(e));
290
303
  }
291
- function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Ee.prototype)) {
292
- return ye.set(t, e), t;
304
+ function createTemporalZonedDateTimeFromSlot(e, t = Object.create(be.prototype)) {
305
+ return Ee.set(t, e), t;
293
306
  }
294
307
  function calendarIsoToDateForZonedDateTimeSlot(e) {
295
308
  return calendarIsoToDate(e.U, getIsoDateTimeForZonedDateTimeSlot(e).o);
296
309
  }
297
310
  function getInternalSlotForZonedDateTime(e) {
298
- return ye.get(e);
311
+ return Ee.get(e);
299
312
  }
300
313
  function getInternalSlotOrThrowForZonedDateTime(e) {
301
- const t = getInternalSlotForZonedDateTime(e);
302
- return t || throwTypeError(Te), t;
314
+ return getInternalSlotOrThrow(Ee, e);
303
315
  }
304
316
  function isZonedDateTime(e) {
305
317
  return !!getInternalSlotForZonedDateTime(e);
@@ -308,20 +320,20 @@ function utcEpochMilliseconds(e, t, o, n = 0, a = 0, i = 0, l = 0) {
308
320
  return isoDateToEpochDays(e, t - 1, o) * r + Date.UTC(1970, 0, 1, n, a, i, l);
309
321
  }
310
322
  function clampEpochSecond(e) {
311
- return clamp(e, -1e10, Infinity);
323
+ return clamp(e, -1e10, 1 / 0);
312
324
  }
313
325
  function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
314
326
  if ("UTC" === t) return 0;
315
- const r = clampEpochSecond(o), a = Re[t] ||= (function() {
327
+ const r = clampEpochSecond(o), a = Ne[t] ||= (function() {
316
328
  const e = /* @__PURE__ */ new Map();
317
329
  return {
318
330
  C(t) {
319
331
  const o = e.get(t);
320
332
  if (void 0 !== o) return e.delete(t), e.set(t, o), o;
321
333
  },
322
- B: (t, o) => (e.size >= 5e3 && e.delete(e.keys().next().value), e.set(t, o), o),
334
+ q: (t, o) => (e.size >= 5e3 && e.delete(e.keys().next().value), e.set(t, o), o),
323
335
  J(e, t) {
324
- return this.C(e) ?? this.B(e, t());
336
+ return this.C(e) ?? this.q(e, t());
325
337
  }
326
338
  };
327
339
  })(), i = a.C(r);
@@ -334,10 +346,10 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
334
346
  "minute",
335
347
  "second"
336
348
  ].map((e) => toIntegerIfIntegral(l.find((t) => t.type === e).value))) - 1e3 * r) * e;
337
- return n || a.B(r, c), c;
349
+ return n || a.q(r, c), c;
338
350
  }
339
351
  function getFormatterForTimeZone(e) {
340
- return Pe[e] ||= new Ft("en-u-hc-h23", {
352
+ return Ze[e] ||= new vt("en-u-hc-h23", {
341
353
  timeZone: e,
342
354
  year: "numeric",
343
355
  month: "numeric",
@@ -377,10 +389,10 @@ function formatOffsetTimeZoneIdentifier(e) {
377
389
  }
378
390
  function formatUtcOffsetNanoseconds(e) {
379
391
  const n = Math.abs(e);
380
- return `${e < 0 ? "-" : "+"}${formatTimeString(divFloor(n, o), modFloor(divFloor(n, t), 60), modFloor(divFloor(n, 1e9), 60), 0, n % 6e10 ? void 0 : T)}`;
392
+ return `${e < 0 ? "-" : "+"}${formatTimeString(divFloor(n, o), modFloor(divFloor(n, t), 60), modFloor(divFloor(n, 1e9), 60), 0, n % 6e10 ? void 0 : J)}`;
381
393
  }
382
394
  function formatDateTimeUtcOffsetRounded(e) {
383
- return formatOffsetTimeZoneIdentifier(roundNumberToIncrement(e, t, b) / t);
395
+ return formatOffsetTimeZoneIdentifier(roundNumberToIncrement(e, t, de) / t);
384
396
  }
385
397
  function toTemporalTimeZoneIdentifier(e) {
386
398
  if (isZonedDateTime(e)) return getInternalSlotOrThrowForZonedDateTime(e).Z;
@@ -388,12 +400,12 @@ function toTemporalTimeZoneIdentifier(e) {
388
400
  const t = ((e) => {
389
401
  if (isTimeZoneIdentifier(e)) return parseTimeZoneIdentifier(e);
390
402
  const t = parseIsoDateTime(e, [
391
- Ge,
392
- Ke,
393
- Qe,
394
403
  et,
395
404
  tt,
396
- ot
405
+ ot,
406
+ nt,
407
+ rt,
408
+ at
397
409
  ]).Z, o = t.$ || t.M && "UTC" || t.N;
398
410
  return o || throwRangeError(invalidTimeZone(e)), parseTimeZoneIdentifier(o);
399
411
  })(e);
@@ -406,7 +418,7 @@ function getEpochNanosecondsFor(e, t, o) {
406
418
  return disambiguatePossibleEpochNanoseconds(getPossibleEpochNanoseconds(e, t), e, t, o);
407
419
  }
408
420
  function disambiguatePossibleEpochNanoseconds(e, t, o, n) {
409
- return 1 === e.length ? e[0] : ("reject" === n && throwRangeError("ambiguity / gaps in local time"), getNamedTimeZoneEpochCandidates(t, o).map(validateEpochNanoseconds)["compatible" === n ? +!e[0] : +(n === g)]);
421
+ return 1 === e.length ? e[0] : ("reject" === n && throwRangeError("ambiguity / gaps in local time"), getNamedTimeZoneEpochCandidates(t, o).map(validateEpochNanoseconds)["compatible" === n ? +!e[0] : +(n === K)]);
410
422
  }
411
423
  function getPossibleEpochNanoseconds(e, t) {
412
424
  return isOffsetTimeZoneIdentifier(e) ? [validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.o.t, t.o.u, t.o.T, t.p.D, t.p.I, t.p.O, t.p.F, t.p.S, t.p.v - parseDateTimeUtcOffset(e))))] : ((e, t) => getNamedTimeZoneEpochCandidates(e, t).filter((o) => !compareEpochNanoseconds(addNanosecondsToEpochSeconds(o, getOffsetNanosecondsFor(e, o)), getUtcEpochNanoseconds(t))))(e, t).map(validateEpochNanoseconds);
@@ -416,7 +428,7 @@ function getStartOfDay(e, t) {
416
428
  return getPossibleEpochNanoseconds(e, o)[0] || createEpochNanosecondsFromEpochSeconds(bisectOffsetTransition(e, ...getNamedTimeZoneEpochCandidates(e, o).map(epochSeconds)));
417
429
  }
418
430
  function timeZoneEquals(e, t) {
419
- return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone;
431
+ return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && (Re ? new Re.ZonedDateTime(BigInt(0), e).equals(new Re.ZonedDateTime(BigInt(0), t)) : getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone);
420
432
  }
421
433
  function parseTimeZoneIdentifier(e) {
422
434
  return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { G: parseDateTimeUtcOffset(e) / t } : { _: e });
@@ -443,7 +455,7 @@ function combineIsoDateAndTimeRecord(e, t) {
443
455
  };
444
456
  }
445
457
  function interpretTemporalDateTimeFields(e, t, o) {
446
- return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Tt.D], t[Tt.I], t[Tt.O], t[Tt.F], t[Tt.S], t[Tt.v], o));
458
+ return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[ht.D], t[ht.I], t[ht.O], t[ht.F], t[ht.S], t[ht.v], o));
447
459
  }
448
460
  function toTemporalDateTime(e, t) {
449
461
  if (isObject(e)) {
@@ -463,28 +475,28 @@ function toTemporalDateTime(e, t) {
463
475
  }
464
476
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
465
477
  return createTemporalDateTime(interpretTemporalDateTimeFields(o, prepareCalendarFields(o, e, [
466
- Tt.t,
467
- Tt.u,
468
- Tt.P,
469
- Tt.T,
470
- Tt.D,
471
- Tt.I,
472
- Tt.O,
473
- Tt.F,
474
- Tt.S,
475
- Tt.v
478
+ ht.t,
479
+ ht.u,
480
+ ht.P,
481
+ ht.T,
482
+ ht.D,
483
+ ht.I,
484
+ ht.O,
485
+ ht.F,
486
+ ht.S,
487
+ ht.v
476
488
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
477
489
  }
478
490
  validateString(e);
479
- const o = parseIsoDateTime(e, [Ke]), n = canonicalizeCalendar(o.U || "iso8601");
491
+ const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.U || "iso8601");
480
492
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(o.t, o.u, o.T), o.p || midnightTimeRecord()), n);
481
493
  }
482
494
  function balanceIsoDateTime(e, t, o, n, r, a, i, l, c) {
483
495
  const s = balanceTime(n, r, a, i, l, c);
484
496
  return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), s.X), s);
485
497
  }
486
- function createTemporalDateTime(e, t, o = Object.create(Ze.prototype)) {
487
- return be.set(o, {
498
+ function createTemporalDateTime(e, t, o = Object.create(Ue.prototype)) {
499
+ return Me.set(o, {
488
500
  K: validateIsoDateTime(e),
489
501
  U: t
490
502
  }), o;
@@ -501,23 +513,23 @@ function roundIsoDateTime(e, t, o, n) {
501
513
  }
502
514
  function differenceISODateTime(e, t, o, n) {
503
515
  let r = differenceTime(e.p, t.p);
504
- const a = gt(r);
516
+ const a = Ot(r);
505
517
  let i = t.o;
506
518
  a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
507
- const l = largerOfTwoTemporalUnits(x, n), c = calendarDateUntil(o, e.o, i, l);
519
+ const l = largerOfTwoTemporalUnits(d, n), c = calendarDateUntil(o, e.o, i, l);
508
520
  return n !== l && (r = add24HourDaysToTimeDuration(r, c.X), c.X = 0), combineDateAndTimeDuration(c, r);
509
521
  }
510
522
  function differencePlainDateTimeWithRounding(e, t, o, n, r, a, i) {
511
- if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), we);
523
+ if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), ye);
512
524
  validateIsoDateTime(e), validateIsoDateTime(t);
513
525
  const l = differenceISODateTime(e, t, o, n);
514
- return a === J && 1 === r ? l : roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
526
+ return a === D && 1 === r ? l : roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
515
527
  }
516
528
  function differenceTemporalPlainDateTime(e, t, o, n) {
517
529
  const r = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(o));
518
- calendarEquals(t.U, r.U) || throwRangeError(ue);
519
- const a = getDifferenceSettings(e, getOptionsObject(n), s, [], J, x);
520
- return compareIsoDateTime(t.K, r.K) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.K, r.K, t.U, a.V, a.H, a.L, a.q), a.V), e)) : createTemporalDuration(createTemporalDurationSlot([
530
+ calendarEquals(t.U, r.U) || throwRangeError(M);
531
+ const a = getDifferenceSettings(e, getOptionsObject(n), H, [], D, d);
532
+ return compareIsoDateTime(t.K, r.K) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t.K, r.K, t.U, a.V, a.L, a.H, a.B), a.V), e)) : createTemporalDuration(createTemporalDurationSlot([
521
533
  0,
522
534
  0,
523
535
  0,
@@ -538,14 +550,13 @@ function validateIsoDateTime(e) {
538
550
  return ((e) => {
539
551
  const t = isoDateRecordToEpochDays(e.o);
540
552
  return Math.abs(t) <= 1e8 || -100000001 === t && !!compareTimeRecord(e.p, midnightTimeRecord());
541
- })(e) || throwRangeError(se), e;
553
+ })(e) || throwRangeError(R), e;
542
554
  }
543
555
  function getInternalSlotForPlainDateTime(e) {
544
- return be.get(e);
556
+ return Me.get(e);
545
557
  }
546
558
  function getInternalSlotOrThrowForPlainDateTime(e) {
547
- const t = getInternalSlotForPlainDateTime(e);
548
- return t || throwTypeError(Te), t;
559
+ return getInternalSlotOrThrow(Me, e);
549
560
  }
550
561
  function isPlainDateTime(e) {
551
562
  return !!getInternalSlotForPlainDateTime(e);
@@ -555,7 +566,7 @@ function calendarDateForPlainDateTime(e) {
555
566
  return calendarIsoToDate(t.U, t.K.o);
556
567
  }
557
568
  function createTimeRecord(e, t, o, n, r, a, i = 0) {
558
- return {
569
+ return ((e, t, o, n, r, a) => isWithin(e, 0, 23) && isWithin(t, 0, 59) && isWithin(o, 0, 59) && isWithin(n, 0, 999) && isWithin(r, 0, 999) && isWithin(a, 0, 999))(e, t, o, n, r, a) || throwRangeError(b), {
559
570
  D: e,
560
571
  I: t,
561
572
  O: o,
@@ -574,17 +585,14 @@ function differenceTime(e, t) {
574
585
  function toTemporalTime(e, t) {
575
586
  if (isObject(e)) return isPlainTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainTime(e)) : isPlainDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainDateTime(e).K.p) : isZonedDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(e)).p) : regulateTime(...toTemporalTimeRecord(e), getTemporalOverflowOption(getOptionsObject(t)));
576
587
  validateString(e);
577
- const o = parseIsoDateTime(e, [et]);
588
+ const o = parseIsoDateTime(e, [nt]);
578
589
  return getTemporalOverflowOption(getOptionsObject(t)), o.p;
579
590
  }
580
591
  function toTimeRecordOrMidnight(e) {
581
592
  return void 0 === e ? midnightTimeRecord() : toTemporalTime(e);
582
593
  }
583
594
  function regulateTime(e, t, o, n, r, a, i) {
584
- 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(ce), createTimeRecord(e, t, o, n, r, a));
585
- }
586
- function isValidTime(e, t, o, n, r, a) {
587
- 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
+ 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)) : createTimeRecord(e, t, o, n, r, a);
588
596
  }
589
597
  function balanceTime(e, t, o, n, r, a) {
590
598
  return r += divFloor(a, 1e3), n += divFloor(r, 1e3), o += divFloor(n, 1e3), t += divFloor(o, 60), {
@@ -597,23 +605,23 @@ function balanceTime(e, t, o, n, r, a) {
597
605
  X: divFloor(e, 24)
598
606
  };
599
607
  }
600
- function createTemporalTime(e, t = Object.create(Me.prototype)) {
601
- return Ne.set(t, e), t;
608
+ function createTemporalTime(e, t = Object.create($e.prototype)) {
609
+ return je.set(t, e), t;
602
610
  }
603
611
  function toTemporalTimeRecord(e, t = !1) {
604
612
  let o = !1;
605
613
  const n = [
606
- Tt.D,
607
- Tt.S,
608
- Tt.F,
609
- Tt.I,
610
- Tt.v,
611
- Tt.O
614
+ ht.D,
615
+ ht.S,
616
+ ht.F,
617
+ ht.I,
618
+ ht.v,
619
+ ht.O
612
620
  ].map((n) => {
613
621
  const r = e[n];
614
622
  return void 0 !== r ? (o = !0, toIntegerWithTruncation(r)) : t ? void 0 : 0;
615
623
  });
616
- return o || throwTypeError(ge), [
624
+ return o || throwTypeError(C), [
617
625
  0,
618
626
  3,
619
627
  5,
@@ -637,18 +645,17 @@ function roundTime(e, n, r, a) {
637
645
  return balanceTime(0, 0, 0, 0, 0, divFloor(l, i) * i + roundNumberToIncrement(modFloor(l, i), n * nanosecondsForTimeUnit(r), a));
638
646
  }
639
647
  function differenceTemporalPlainTime(e, t, o, n) {
640
- const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), c, [], J, L);
641
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.H, a.L, a.q)), a.V), e));
648
+ const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), L, [], D, m);
649
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.L, a.H, a.B)), a.V), e));
642
650
  }
643
651
  function addDurationToTime(e, t, o) {
644
652
  return createTemporalTime(addTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)).p));
645
653
  }
646
654
  function getInternalSlotOrThrowForPlainTime(e) {
647
- const t = Ne.get(e);
648
- return t || throwTypeError(Te), t;
655
+ return getInternalSlotOrThrow(je, e);
649
656
  }
650
657
  function isPlainTime(e) {
651
- return Ne.has(e);
658
+ return je.has(e);
652
659
  }
653
660
  function optionalChain(e) {
654
661
  return e.reduceRight((e, t) => `${t}(?:${e})?`);
@@ -660,31 +667,31 @@ function createRegExp(e) {
660
667
  return RegExp(`^(?:${e})$`);
661
668
  }
662
669
  function isAmbiguousTemporalTimeString(e) {
663
- return nt.some((t) => isSemanticallyValid(e.match(t)?.groups));
670
+ return it.some((t) => isSemanticallyValid(e.match(t)?.groups));
664
671
  }
665
672
  function isTimeZoneIdentifier(e) {
666
- return rt.test(e);
673
+ return lt.test(e);
667
674
  }
668
675
  function isSemanticallyValid(e) {
669
- return !!e && "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Oe(e.a), Oe(e.b), Oe(e.c))) && (!e.n || isValidIsoDate(1972, Oe(e.m), Oe(e.n)));
676
+ return !!e && "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Se(e.a), Se(e.b), Se(e.c))) && (!e.n || isValidIsoDate(1972, Se(e.m), Se(e.n)));
670
677
  }
671
678
  function parseIsoDateTime(e, t) {
672
679
  for (const o of t) {
673
680
  const t = e.match(o);
674
- if (!t || !isSemanticallyValid(t.groups) || o === et && isAmbiguousTemporalTimeString(e)) continue;
681
+ if (!t || !isSemanticallyValid(t.groups) || o === nt && isAmbiguousTemporalTimeString(e)) continue;
675
682
  const n = t.groups;
676
683
  let r;
677
684
  if (n.k) {
678
685
  let t = !1;
679
- for (const [, o, a, i] of n.k.matchAll(Xe)) "u-ca" === a ? r ? (o || t) && throwRangeError(parseError(e)) : (r = i, t = !!o) : o && throwRangeError(parseError(e));
686
+ for (const [, o, a, i] of n.k.matchAll(Qe)) "u-ca" === a ? r ? (o || t) && throwRangeError(parseError(e)) : (r = i, t = !!o) : o && throwRangeError(parseError(e));
680
687
  }
681
688
  n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(parseError(e));
682
689
  const a = (n.g || "").padEnd(9, "0");
683
690
  return {
684
- t: mapUnlessUndefined(n.a || n.l, Oe),
685
- u: Oe(n.b || n.m || 1),
686
- T: Oe(n.c || n.n || 1),
687
- p: n.d ? createTimeRecord(Oe(n.d || 0), Oe(n.e || 0), clamp(Oe(n.f || 0), 0, 59), Oe(a.slice(0, 3)), Oe(a.slice(3, 6)), Oe(a.slice(6))) : void 0,
691
+ t: mapUnlessUndefined(n.a || n.l, Se),
692
+ u: Se(n.b || n.m || 1),
693
+ T: Se(n.c || n.n || 1),
694
+ p: n.d ? createTimeRecord(Se(n.d || 0), Se(n.e || 0), clamp(Se(n.f || 0), 0, 59), Se(a.slice(0, 3)), Se(a.slice(3, 6)), Se(a.slice(6))) : void 0,
688
695
  Z: {
689
696
  M: !!n.i,
690
697
  N: n.h,
@@ -696,11 +703,11 @@ function parseIsoDateTime(e, t) {
696
703
  throwRangeError(parseError(e));
697
704
  }
698
705
  function parseDateTimeUtcOffset(e) {
699
- const o = e.match(it);
700
- return o || throwRangeError(parseError(e)), Oe(`${o[1]}1`) * (36e11 * Oe(o[2]) + Oe(o[4] || "") * t + 1e9 * Oe(o[5] || "") + Oe((o[6] || "").padEnd(9, "0")) + 0);
706
+ const o = e.match(st);
707
+ return o || throwRangeError(parseError(e)), Se(`${o[1]}1`) * (36e11 * Se(o[2]) + Se(o[4] || "") * t + 1e9 * Se(o[5] || "") + Se((o[6] || "").padEnd(9, "0")) + 0);
701
708
  }
702
709
  function hasUtcOffsetSubMinuteParts(e) {
703
- return !!e.match(it)[5];
710
+ return !!e.match(st)[5];
704
711
  }
705
712
  function toTemporalMonthDay(e, t) {
706
713
  if (isObject(e)) {
@@ -708,31 +715,30 @@ function toTemporalMonthDay(e, t) {
708
715
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay(o.o, o.U);
709
716
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
710
717
  return createTemporalMonthDay(calendarMonthDayFromFields(n, prepareCalendarFields(n, e, [
711
- Tt.t,
712
- Tt.u,
713
- Tt.P,
714
- Tt.T
718
+ ht.t,
719
+ ht.u,
720
+ ht.P,
721
+ ht.T
715
722
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
716
723
  }
717
724
  validateString(e);
718
- const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.U || "iso8601");
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)), m), D), n);
725
+ const o = parseIsoDateTime(e, [rt]), n = canonicalizeCalendar(o.U || "iso8601");
726
+ 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)), B), _), n);
720
727
  }
721
- function createTemporalMonthDay(e, t, o = Object.create(ct.prototype)) {
722
- return lt.set(o, {
728
+ function createTemporalMonthDay(e, t, o = Object.create(mt.prototype)) {
729
+ return dt.set(o, {
723
730
  o: validateIsoDate(e),
724
731
  U: t
725
732
  }), o;
726
733
  }
727
734
  function temporalMonthDayToString(e, t) {
728
- return `${t === U || t === $ || "iso8601" !== e.U ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.U, t)}`;
735
+ return `${t === De || t === he || "iso8601" !== e.U ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.U, t)}`;
729
736
  }
730
737
  function getInternalSlotForPlainMonthDay(e) {
731
- return lt.get(e);
738
+ return dt.get(e);
732
739
  }
733
740
  function getInternalSlotOrThrowForPlainMonthDay(e) {
734
- const t = getInternalSlotForPlainMonthDay(e);
735
- return t || throwTypeError(Te), t;
741
+ return getInternalSlotOrThrow(dt, e);
736
742
  }
737
743
  function isPlainMonthDay(e) {
738
744
  return !!getInternalSlotForPlainMonthDay(e);
@@ -743,14 +749,14 @@ function toTemporalYearMonth(e, t) {
743
749
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(o.o, o.U);
744
750
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
745
751
  return createTemporalYearMonth(calendarYearMonthFromFields(n, prepareCalendarFields(n, e, [
746
- Tt.t,
747
- Tt.u,
748
- Tt.P
752
+ ht.t,
753
+ ht.u,
754
+ ht.P
749
755
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
750
756
  }
751
757
  validateString(e);
752
- const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.U || "iso8601");
753
- return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), d), D), n);
758
+ const o = parseIsoDateTime(e, [at]), n = canonicalizeCalendar(o.U || "iso8601");
759
+ return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), x), _), n);
754
760
  }
755
761
  function balanceIsoYearMonth(e, t) {
756
762
  return {
@@ -758,19 +764,19 @@ function balanceIsoYearMonth(e, t) {
758
764
  u: modFloor(t - 1, 12) + 1
759
765
  };
760
766
  }
761
- function createTemporalYearMonth(e, t, o = Object.create(dt.prototype)) {
762
- return st.set(o, {
767
+ function createTemporalYearMonth(e, t, o = Object.create(Tt.prototype)) {
768
+ return ut.set(o, {
763
769
  o: validateIsoYearMonth(e),
764
770
  U: t
765
771
  }), o;
766
772
  }
767
773
  function temporalYearMonthToString(e, t) {
768
- return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}${t === U || t === $ || "iso8601" !== e.U ? `-${toZeroPaddedDecimalString(e.o.T, 2)}` : ""}${formatCalendarAnnotation(e.U, t)}`;
774
+ return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}${t === De || t === he || "iso8601" !== e.U ? `-${toZeroPaddedDecimalString(e.o.T, 2)}` : ""}${formatCalendarAnnotation(e.U, t)}`;
769
775
  }
770
776
  function differenceTemporalPlainYearMonth(e, t, o, n) {
771
777
  const r = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(o));
772
- calendarEquals(t.U, r.U) || throwRangeError(ue);
773
- const a = getDifferenceSettings(e, getOptionsObject(n), l, [H, x], k, V);
778
+ calendarEquals(t.U, r.U) || throwRangeError(M);
779
+ const a = getDifferenceSettings(e, getOptionsObject(n), V, [s, d], c, l);
774
780
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
775
781
  0,
776
782
  0,
@@ -784,35 +790,34 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
784
790
  0
785
791
  ]));
786
792
  const i = calendarDateFromFields(t.U, createNullPrototypeObject({
787
- ...isoDateToFields(t.U, t.o, d),
788
- [Tt.T]: 1
789
- }), D), c = calendarDateFromFields(t.U, createNullPrototypeObject({
790
- ...isoDateToFields(t.U, r.o, d),
791
- [Tt.T]: 1
792
- }), D);
793
- let s = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.U, i, c, a.V), 0, 0), we);
794
- if (a.L !== k || 1 !== a.H) {
793
+ ...isoDateToFields(t.U, t.o, x),
794
+ [ht.T]: 1
795
+ }), _), m = calendarDateFromFields(t.U, createNullPrototypeObject({
796
+ ...isoDateToFields(t.U, r.o, x),
797
+ [ht.T]: 1
798
+ }), _);
799
+ let u = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.U, i, m, a.V), 0, 0), ye);
800
+ if (a.H !== c || 1 !== a.L) {
795
801
  const e = combineIsoDateAndTimeRecord(i, midnightTimeRecord());
796
- s = roundRelativeDuration(s, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(c, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.q);
802
+ u = roundRelativeDuration(u, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(m, midnightTimeRecord())), e, void 0, t.U, a.V, a.L, a.H, a.B);
797
803
  }
798
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(s, x), e));
804
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(u, d), e));
799
805
  }
800
806
  function addDurationToYearMonth(e, t, o, n) {
801
807
  const r = toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), a = getTemporalOverflowOption(getOptionsObject(n));
802
808
  return (r.A.ee || r.A.X || signTimeDuration(r.p)) && throwRangeError("duration can contain only years and months"), createTemporalYearMonth(calendarYearMonthFromFields(t.U, isoDateToFields(t.U, calendarDateAdd(t.U, calendarDateFromFields(t.U, createNullPrototypeObject({
803
- ...isoDateToFields(t.U, t.o, d),
804
- [Tt.T]: 1
805
- }), D), r.A, a), d), a), t.U);
809
+ ...isoDateToFields(t.U, t.o, x),
810
+ [ht.T]: 1
811
+ }), _), r.A, a), x), a), t.U);
806
812
  }
807
813
  function validateIsoYearMonth(e) {
808
- return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(se), e;
814
+ return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(R), e;
809
815
  }
810
816
  function getInternalSlotForPlainYearMonth(e) {
811
- return st.get(e);
817
+ return ut.get(e);
812
818
  }
813
819
  function getInternalSlotOrThrowForPlainYearMonth(e) {
814
- const t = getInternalSlotForPlainYearMonth(e);
815
- return t || throwTypeError(Te), t;
820
+ return getInternalSlotOrThrow(ut, e);
816
821
  }
817
822
  function isPlainYearMonth(e) {
818
823
  return !!getInternalSlotForPlainYearMonth(e);
@@ -822,14 +827,14 @@ function calendarDateForPlainYearMonth(e) {
822
827
  return calendarIsoToDate(t.U, t.o);
823
828
  }
824
829
  function createIsoDateRecord(e, t, o) {
825
- return {
830
+ return isValidIsoDate(e, t, o) || throwRangeError(b), {
826
831
  t: e,
827
832
  u: t,
828
833
  T: o
829
834
  };
830
835
  }
831
- function createTemporalDate(e, t, o = Object.create(ut.prototype)) {
832
- return mt.set(o, {
836
+ function createTemporalDate(e, t, o = Object.create(pt.prototype)) {
837
+ return Dt.set(o, {
833
838
  o: validateIsoDate(e),
834
839
  U: t
835
840
  }), o;
@@ -853,18 +858,18 @@ function toTemporalDate(e, t) {
853
858
  }
854
859
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
855
860
  return createTemporalDate(calendarDateFromFields(o, prepareCalendarFields(o, e, [
856
- Tt.t,
857
- Tt.u,
858
- Tt.P,
859
- Tt.T
861
+ ht.t,
862
+ ht.u,
863
+ ht.P,
864
+ ht.T
860
865
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
861
866
  }
862
867
  validateString(e);
863
- const o = parseIsoDateTime(e, [Ke]), n = canonicalizeCalendar(o.U || "iso8601");
868
+ const o = parseIsoDateTime(e, [tt]), n = canonicalizeCalendar(o.U || "iso8601");
864
869
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDate(createIsoDateRecord(o.t, o.u, o.T), n);
865
870
  }
866
871
  function regulateIsoDate(e, t, o, n) {
867
- return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(ce), createIsoDateRecord(e, t, o));
872
+ return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : createIsoDateRecord(e, t, o);
868
873
  }
869
874
  function isValidIsoDate(e, t, o) {
870
875
  return isWithin(t, 1, 12) && isWithin(o, 1, isoDaysInMonth(e, t));
@@ -883,8 +888,8 @@ function compareIsoDate(e, t) {
883
888
  }
884
889
  function differenceTemporalPlainDate(e, t, o, n) {
885
890
  const r = getInternalSlotOrThrowForPlainDate(toTemporalDate(o));
886
- calendarEquals(t.U, r.U) || throwRangeError(ue);
887
- const a = getDifferenceSettings(e, getOptionsObject(n), l, [], x, x);
891
+ calendarEquals(t.U, r.U) || throwRangeError(M);
892
+ const a = getDifferenceSettings(e, getOptionsObject(n), V, [], d, d);
888
893
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
889
894
  0,
890
895
  0,
@@ -897,12 +902,12 @@ function differenceTemporalPlainDate(e, t, o, n) {
897
902
  0,
898
903
  0
899
904
  ]));
900
- let i = combineDateAndTimeDuration(calendarDateUntil(t.U, t.o, r.o, a.V), we);
901
- if (a.L !== x || 1 !== a.H) {
905
+ let i = combineDateAndTimeDuration(calendarDateUntil(t.U, t.o, r.o, a.V), ye);
906
+ if (a.H !== d || 1 !== a.L) {
902
907
  const e = combineIsoDateAndTimeRecord(t.o, midnightTimeRecord());
903
- i = roundRelativeDuration(i, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.q);
908
+ i = roundRelativeDuration(i, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())), e, void 0, t.U, a.V, a.L, a.H, a.B);
904
909
  }
905
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, x), e));
910
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, d), e));
906
911
  }
907
912
  function addDurationToDate(e, t, o, n) {
908
913
  return createTemporalDate(calendarDateAdd(t.U, t.o, ((e) => {
@@ -911,11 +916,10 @@ function addDurationToDate(e, t, o, n) {
911
916
  })(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.U);
912
917
  }
913
918
  function getInternalSlotForPlainDate(e) {
914
- return mt.get(e);
919
+ return Dt.get(e);
915
920
  }
916
921
  function getInternalSlotOrThrowForPlainDate(e) {
917
- const t = getInternalSlotForPlainDate(e);
918
- return t || throwTypeError(Te), t;
922
+ return getInternalSlotOrThrow(Dt, e);
919
923
  }
920
924
  function isPlainDate(e) {
921
925
  return !!getInternalSlotForPlainDate(e);
@@ -940,16 +944,16 @@ function calendarDateUntil(e, t, o, n) {
940
944
  return ((e, t, o) => {
941
945
  const n = compareIsoDate(t, e);
942
946
  if (!n) return zeroDateDuration();
943
- if (o === H || o === x) {
947
+ if (o === s || o === d) {
944
948
  const n = isoDateToEpochDays(t.t, t.u - 1, t.T) - isoDateToEpochDays(e.t, e.u - 1, e.T);
945
- return o === H ? createDateDurationRecord(0, 0, divTrunc(n, 7) + 0, n % 7 + 0) : createDateDurationRecord(0, 0, 0, n);
949
+ return o === s ? createDateDurationRecord(0, 0, divTrunc(n, 7) + 0, n % 7 + 0) : createDateDurationRecord(0, 0, 0, n);
946
950
  }
947
- const r = 12 * t.t + t.u - 12 * e.t - e.u - (n * (e.T - t.T) > 0 ? n : 0), a = balanceIsoYearMonth(e.t, e.u + r), i = isoDateRecordToEpochDays(t) - isoDateRecordToEpochDays(regulateIsoDate(a.t, a.u, e.T, D));
948
- return o === V ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
951
+ const r = 12 * t.t + t.u - 12 * e.t - e.u - (n * (e.T - t.T) > 0 ? n : 0), a = balanceIsoYearMonth(e.t, e.u + r), i = isoDateRecordToEpochDays(t) - isoDateRecordToEpochDays(regulateIsoDate(a.t, a.u, e.T, _));
952
+ return o === l ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
949
953
  })(t, o, n);
950
954
  }
951
955
  function calendarDateToIso(e, t, o) {
952
- return ((e, t) => regulateIsoDate(e[Tt.t], e[Tt.u], e[Tt.T], t))(t, o);
956
+ return ((e, t) => regulateIsoDate(e[ht.t], e[ht.u], e[ht.T], t))(t, o);
953
957
  }
954
958
  function calendarSupportsEra(e) {
955
959
  return "gregory" === e;
@@ -961,7 +965,7 @@ function parseMonthCode(e) {
961
965
  const t = toPrimitive(e);
962
966
  validateString(t);
963
967
  const o = t.match(/M(\d\d)(L?)/);
964
- return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Oe(o[1]), !!o[2]];
968
+ return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Se(o[1]), !!o[2]];
965
969
  }
966
970
  function createMonthCode(e, t = !1) {
967
971
  return `M${toZeroPaddedDecimalString(e, 2)}${t ? "L" : ""}`;
@@ -972,16 +976,16 @@ function prepareCalendarFields(e, t, o, n) {
972
976
  let a = !1;
973
977
  for (const e of o) {
974
978
  const o = t[e];
975
- void 0 !== o ? (a = !0, r[e] = pt[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = pt[e][1]);
979
+ void 0 !== o ? (a = !0, r[e] = ft[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = ft[e][1]);
976
980
  }
977
- return n || a || throwTypeError(ge), r;
981
+ return n || a || throwTypeError(C), r;
978
982
  }
979
983
  function calendarMergeFields(e, t, o) {
980
984
  const n = ((e, t) => {
981
985
  const o = [];
982
- return void 0 !== t[Tt.u] && o.push(Tt.P), void 0 !== t[Tt.P] && o.push(Tt.u), !calendarSupportsEra(e) || void 0 === t[Tt.ne] && void 0 === t[Tt.re] && void 0 === t[Tt.t] || o.push(Tt.ne, Tt.re, Tt.t), o;
986
+ return void 0 !== t[ht.u] && o.push(ht.P), void 0 !== t[ht.P] && o.push(ht.u), !calendarSupportsEra(e) || void 0 === t[ht.ne] && void 0 === t[ht.re] && void 0 === t[ht.t] || o.push(ht.ne, ht.re, ht.t), o;
983
987
  })(e, o), r = createEmptyCalendarFieldsRecord();
984
- for (const e of Dt) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
988
+ for (const e of gt) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
985
989
  return r;
986
990
  }
987
991
  function toTemporalCalendarIdentifier(e) {
@@ -989,15 +993,15 @@ function toTemporalCalendarIdentifier(e) {
989
993
  return t ? t.U : (validateString(e), canonicalizeCalendar(((e) => {
990
994
  try {
991
995
  return parseIsoDateTime(e, [
992
- Ge,
993
- Ke,
994
- Qe,
995
996
  et,
996
997
  tt,
997
- ot
998
+ ot,
999
+ nt,
1000
+ rt,
1001
+ at
998
1002
  ]).U || "iso8601";
999
1003
  } catch {
1000
- return at.test(e) || throwRangeError(parseError(e)), e;
1004
+ return ct.test(e) || throwRangeError(parseError(e)), e;
1001
1005
  }
1002
1006
  })(e)));
1003
1007
  }
@@ -1009,18 +1013,18 @@ function calendarDateFromFields(e, t, o) {
1009
1013
  return calendarResolveFields(e, t), validateIsoDate(calendarDateToIso(0, t, o));
1010
1014
  }
1011
1015
  function calendarYearMonthFromFields(e, t, o) {
1012
- return t.day = 1, calendarResolveFields(e, t, d), validateIsoYearMonth(calendarDateToIso(0, t, o));
1016
+ return t.day = 1, calendarResolveFields(e, t, x), validateIsoYearMonth(calendarDateToIso(0, t, o));
1013
1017
  }
1014
1018
  function calendarMonthDayFromFields(e, t, o) {
1015
- return calendarResolveFields(e, t, m), (function(e, t, o) {
1019
+ return calendarResolveFields(e, t, B), (function(e, t, o) {
1016
1020
  return ((e, t, o) => {
1017
- const n = regulateIsoDate(e[Tt.t] ?? 1972, e[Tt.u], e[Tt.T], t);
1021
+ const n = regulateIsoDate(e[ht.t] ?? 1972, e[ht.u], e[ht.T], t);
1018
1022
  return o || validateIsoDate(n), createIsoDateRecord(1972, n.u, n.T);
1019
1023
  })(t, o, "iso8601" === e);
1020
1024
  })(e, t, o);
1021
1025
  }
1022
1026
  function formatCalendarAnnotation(e, t) {
1023
- return t === j || t === M && "iso8601" === e ? "" : `[${t === $ ? "!" : ""}u-ca=${e}]`;
1027
+ return t === pe || t === Te && "iso8601" === e ? "" : `[${t === he ? "!" : ""}u-ca=${e}]`;
1024
1028
  }
1025
1029
  function calendarEquals(e, t) {
1026
1030
  return e === t;
@@ -1082,20 +1086,20 @@ function calendarExtraFields(e, t) {
1082
1086
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1083
1087
  }
1084
1088
  function isoResolveFields(e, t) {
1085
- t !== m && void 0 === e[Tt.t] && throwTypeError(missingField(Tt.t)), t !== d && void 0 === e[Tt.T] && throwTypeError(missingField(Tt.T)), void 0 === e[Tt.P] && void 0 === e[Tt.u] && throwTypeError(missingField("month, monthCode"));
1086
- const o = mapUnlessUndefined(e[Tt.P], parseMonthCode);
1087
- o && ((o[0] > 12 || o[1] || void 0 !== e[Tt.u] && o[0] !== e[Tt.u]) && throwRangeError(pe), e[Tt.u] = o[0]);
1088
- }
1089
- function calendarResolveFields(e, t, o = l) {
1090
- "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = l) {
1091
- const n = t[Tt.ne], r = t[Tt.re];
1092
- let a = t[Tt.t];
1093
- const i = t[Tt.P], c = t[Tt.u], s = t[Tt.T];
1094
- if (o === m && void 0 !== i && void 0 === c || void 0 !== a || void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), void 0 === n != (void 0 === r) && throwTypeError(), o !== d && void 0 === s && throwTypeError(missingField("day")), c === i && throwTypeError(missingField("month, monthCode")), void 0 !== r) {
1089
+ t !== B && void 0 === e[ht.t] && throwTypeError(missingField(ht.t)), t !== x && void 0 === e[ht.T] && throwTypeError(missingField(ht.T)), void 0 === e[ht.P] && void 0 === e[ht.u] && throwTypeError(missingField("month, monthCode"));
1090
+ const o = mapUnlessUndefined(e[ht.P], parseMonthCode);
1091
+ o && ((o[0] > 12 || o[1] || void 0 !== e[ht.u] && o[0] !== e[ht.u]) && throwRangeError(j), e[ht.u] = o[0]);
1092
+ }
1093
+ function calendarResolveFields(e, t, o = V) {
1094
+ "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = V) {
1095
+ const n = t[ht.ne], r = t[ht.re];
1096
+ let a = t[ht.t];
1097
+ const i = t[ht.P], l = t[ht.u], c = t[ht.T];
1098
+ if (o === B && void 0 !== i && void 0 === l || void 0 !== a || void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), void 0 === n != (void 0 === r) && throwTypeError(), o !== x && void 0 === c && throwTypeError(missingField("day")), l === i && throwTypeError(missingField("month, monthCode")), void 0 !== r) {
1095
1099
  const e = ((e, t, o) => "ce" === canonicalizeEraInCalendar(0, t) ? o : 1 - o)(0, canonicalizeEraInCalendar(0, n), r);
1096
- void 0 !== a && a !== e && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Tt.t] = e;
1100
+ void 0 !== a && a !== e && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[ht.t] = e;
1097
1101
  }
1098
- t[Tt.ne] = t[Tt.re] = void 0, isoResolveFields(t, o);
1102
+ t[ht.ne] = t[ht.re] = void 0, isoResolveFields(t, o);
1099
1103
  })(0, t, o);
1100
1104
  }
1101
1105
  function createEmptyCalendarFieldsRecord() {
@@ -1105,7 +1109,7 @@ function zeroDateDuration() {
1105
1109
  return createDateDurationRecord(0, 0, 0, 0);
1106
1110
  }
1107
1111
  function toInternalDurationRecord(e) {
1108
- return combineDateAndTimeDuration(createDateDurationRecord(e[_], e[X], e[G], e[K]), timeDurationFromComponents(e[Q], e[ee], e[te], e[oe], e[ne], e[re]));
1112
+ return combineDateAndTimeDuration(createDateDurationRecord(e[p], e[h], e[g], e[f]), timeDurationFromComponents(e[I], e[O], e[F], e[S], e[w], e[v]));
1109
1113
  }
1110
1114
  function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1111
1115
  return combineDateAndTimeDuration(createDateDurationRecord(e, t, o, 0), add24HourDaysToTimeDuration(timeDurationFromComponents(...r), n));
@@ -1138,9 +1142,9 @@ function combineDateAndTimeDuration(e, t) {
1138
1142
  };
1139
1143
  }
1140
1144
  function toTemporalDuration(e) {
1141
- return t = e, ht.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1142
- 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)?)?$/);
1143
- t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(parseError(e));
1145
+ return It.get(e) || (isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1146
+ const t = e.match(/^([+-]?)p(?:(\d+)y)?(?:(\d+)m)?(?:(\d+)w)?(?:(\d+)d)?(?:t(?:(\d+)(?:[.,](\d{1,9}))?h)?(?:(\d+)(?:[.,](\d{1,9}))?m)?(?:(\d+)(?:[.,](\d{1,9}))?s)?)?$/i);
1147
+ t && !/[pt]$|[.,](\d{1,9})[hms]./i.test(e) || throwRangeError(parseError(e));
1144
1148
  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")));
1145
1149
  return applySignToDurationSlot(createTemporalDurationSlot([
1146
1150
  toIntegerWithTruncation(t[2] || ""),
@@ -1154,8 +1158,7 @@ function toTemporalDuration(e) {
1154
1158
  o.S,
1155
1159
  o.v
1156
1160
  ]), toIntegerWithTruncation(`${t[1]}1`));
1157
- })(e));
1158
- var t;
1161
+ })(e)));
1159
1162
  }
1160
1163
  function durationSign(e) {
1161
1164
  return sign(e.find((e) => e) || 0);
@@ -1164,14 +1167,14 @@ function dateDurationSign(e) {
1164
1167
  return sign(e.te || e.oe || e.ee || e.X);
1165
1168
  }
1166
1169
  function internalDurationSign(e) {
1167
- return dateDurationSign(e.A) || gt(e.p);
1170
+ return dateDurationSign(e.A) || Ot(e.p);
1168
1171
  }
1169
1172
  function validateDuration(...e) {
1170
1173
  e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), (e.some((e) => Math.abs(e) > 1e25) || [
1171
- e[_],
1172
- e[X],
1173
- e[G]
1174
- ].some((e) => Math.abs(e) >= 2 ** 32)) && throwRangeError(de), validateTimeDurationRange(timeDurationFromComponents(24 * e[K] + e[Q], e[ee], e[te], e[oe], e[ne], e[re]));
1174
+ e[p],
1175
+ e[h],
1176
+ e[g]
1177
+ ].some((e) => Math.abs(e) >= 2 ** 32)) && throwRangeError(Z), validateTimeDurationRange(timeDurationFromComponents(24 * e[f] + e[I], e[O], e[F], e[S], e[w], e[v]));
1175
1178
  }
1176
1179
  function defaultTemporalLargestUnit(e) {
1177
1180
  return (e.findIndex((e) => e) + 10) % 10;
@@ -1189,8 +1192,8 @@ function toTemporalPartialDurationRecord(e) {
1189
1192
  6,
1190
1193
  2,
1191
1194
  0
1192
- ].map((t) => mapUnlessUndefined(e[ie[t]], toIntegerIfIntegral));
1193
- return t.some((e) => void 0 !== e) || throwTypeError(ge), [
1195
+ ].map((t) => mapUnlessUndefined(e[P[t]], toIntegerIfIntegral));
1196
+ return t.some((e) => void 0 !== e) || throwTypeError(C), [
1194
1197
  9,
1195
1198
  5,
1196
1199
  8,
@@ -1206,8 +1209,8 @@ function toTemporalPartialDurationRecord(e) {
1206
1209
  function createTemporalDurationSlot(e) {
1207
1210
  return validateDuration(...e), e;
1208
1211
  }
1209
- function createTemporalDuration(e, t = Object.create(ft.prototype)) {
1210
- return ht.set(t, e), t;
1212
+ function createTemporalDuration(e, t = Object.create(Ft.prototype)) {
1213
+ return It.set(t, e), t;
1211
1214
  }
1212
1215
  function timeDurationFromComponents(e, t, o, n, r, a) {
1213
1216
  return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromUnit(3600 * e + 60 * t + o, 1e9), createTimeDurationFromUnit(n, 1e6)), createTimeDurationFromUnit(r, 1e3)), createTimeDurationFromUnit(a, 1));
@@ -1223,7 +1226,7 @@ function roundTimeDurationToIncrement(e, t, o) {
1223
1226
  }
1224
1227
  function dateDurationDays(e, t) {
1225
1228
  const o = adjustDateDurationRecord(e, 0);
1226
- return dateDurationSign(e) ? e.X + isoDateRecordToEpochDays(calendarDateAdd(t.U, t.o, o, D)) - isoDateRecordToEpochDays(t.o) : e.X;
1229
+ return dateDurationSign(e) ? e.X + isoDateRecordToEpochDays(calendarDateAdd(t.U, t.o, o, _)) - isoDateRecordToEpochDays(t.o) : e.X;
1227
1230
  }
1228
1231
  function roundTimeDuration(e, t, o, n) {
1229
1232
  return roundTimeDurationToIncrement(e, nanosecondsForTimeUnit(o) * t, n);
@@ -1231,26 +1234,26 @@ function roundTimeDuration(e, t, o, n) {
1231
1234
  function totalTimeDuration(e, t) {
1232
1235
  return divideTimeDurationToFloatingPoint(e, nanosecondsForTimeUnit(t));
1233
1236
  }
1234
- function computeNudgeWindow(e, t, o, n, r, a, i, l, c) {
1235
- let s, d, m, u, T;
1236
- if (l === V) s = roundNumberToIncrement(t.A.te, i, E) + (c ? i * e : 0), d = s + i * e, m = createDateDurationRecord(s, 0, 0, 0), u = createDateDurationRecord(d, 0, 0, 0);
1237
- else if (l === k) s = roundNumberToIncrement(t.A.oe, i, E) + (c ? i * e : 0), d = s + i * e, m = adjustDateDurationRecord(t.A, 0, 0, s), u = adjustDateDurationRecord(t.A, 0, 0, d);
1238
- else if (l === H) {
1239
- const o = calendarDateAdd(0, n.o, adjustDateDurationRecord(t.A, 0, 0), D);
1240
- s = roundNumberToIncrement(t.A.ee + calendarDateUntil(0, o, addDaysToIsoDate(o, t.A.X), H).ee, i, E), d = s + i * e, m = adjustDateDurationRecord(t.A, 0, s), u = adjustDateDurationRecord(t.A, 0, d);
1241
- } else s = roundNumberToIncrement(t.A.X, i, E), d = s + i * e, m = adjustDateDurationRecord(t.A, s), u = adjustDateDurationRecord(t.A, d);
1242
- if (dateDurationSign(m)) {
1243
- const e = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, m, D), n.p);
1244
- T = r ? getEpochNanosecondsFor(r, e, h) : getUtcEpochNanoseconds(e);
1245
- } else T = o;
1246
- const p = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, u, D), n.p);
1237
+ function computeNudgeWindow(e, t, o, n, r, a, i, d, m) {
1238
+ let u, T, D, p, h;
1239
+ if (d === l) u = roundNumberToIncrement(t.A.te, i, le) + (m ? i * e : 0), T = u + i * e, D = createDateDurationRecord(u, 0, 0, 0), p = createDateDurationRecord(T, 0, 0, 0);
1240
+ else if (d === c) u = roundNumberToIncrement(t.A.oe, i, le) + (m ? i * e : 0), T = u + i * e, D = adjustDateDurationRecord(t.A, 0, 0, u), p = adjustDateDurationRecord(t.A, 0, 0, T);
1241
+ else if (d === s) {
1242
+ const o = calendarDateAdd(0, n.o, adjustDateDurationRecord(t.A, 0, 0), _);
1243
+ u = roundNumberToIncrement(t.A.ee + calendarDateUntil(0, o, addDaysToIsoDate(o, t.A.X), s).ee, i, le), T = u + i * e, D = adjustDateDurationRecord(t.A, 0, u), p = adjustDateDurationRecord(t.A, 0, T);
1244
+ } else u = roundNumberToIncrement(t.A.X, i, le), T = u + i * e, D = adjustDateDurationRecord(t.A, u), p = adjustDateDurationRecord(t.A, T);
1245
+ if (dateDurationSign(D)) {
1246
+ const e = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, D, _), n.p);
1247
+ h = r ? getEpochNanosecondsFor(r, e, G) : getUtcEpochNanoseconds(e);
1248
+ } else h = o;
1249
+ const g = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, p, _), n.p);
1247
1250
  return {
1248
- De: s,
1249
- pe: d,
1250
- he: T,
1251
- ge: r ? getEpochNanosecondsFor(r, p, h) : getUtcEpochNanoseconds(p),
1252
- fe: m,
1253
- Ie: u
1251
+ De: u,
1252
+ pe: T,
1253
+ he: h,
1254
+ ge: r ? getEpochNanosecondsFor(r, g, G) : getUtcEpochNanoseconds(g),
1255
+ fe: D,
1256
+ Ie: p
1254
1257
  };
1255
1258
  }
1256
1259
  function nudgeToCalendarUnit(e, t, o, n, r, a, i, l, c, s) {
@@ -1258,74 +1261,73 @@ function nudgeToCalendarUnit(e, t, o, n, r, a, i, l, c, s) {
1258
1261
  compareEpochNanoseconds(m.he, n) * compareEpochNanoseconds(m.ge, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, 0, l, c, !0), d = !0);
1259
1262
  const u = differenceEpochNanoseconds(m.he, n), T = differenceEpochNanoseconds(m.he, m.ge);
1260
1263
  let D = m.fe, p = m.he;
1261
- return roundNumberToIncrement(m.De + ((e, t, o) => signTimeDuration(e) ? ve(e, t) ? ve(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * l * e, l, s) === m.pe && (d = !0, D = m.Ie, p = m.ge), {
1264
+ return roundNumberToIncrement(m.De + ((e, t, o) => signTimeDuration(e) ? Pe(e, t) ? Pe(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(u, T, e) * l * e, l, s) === m.pe && (d = !0, D = m.Ie, p = m.ge), {
1262
1265
  Oe: {
1263
- Fe: combineDateAndTimeDuration(D, we),
1266
+ Fe: combineDateAndTimeDuration(D, ye),
1264
1267
  Se: p,
1265
1268
  we: d
1266
1269
  },
1267
1270
  ve: m.De + divideTimeDurationToFloatingPoint(u, 1e9) / divideTimeDurationToFloatingPoint(T, 1e9) * l * e
1268
1271
  };
1269
1272
  }
1270
- function roundRelativeDuration(e, t, o, n, r, a, i, l, c, s) {
1271
- const d = internalDurationSign(e) || 1, m = isCalendarUnit(c) || r && c === x ? nudgeToCalendarUnit(d, e, t, o, n, r, 0, l, c, s).Oe : r ? ((e, t, o, n, r, a, i, l) => {
1272
- const c = calendarDateAdd(0, o.o, t.A, D), s = combineIsoDateAndTimeRecord(c, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(c, e), o.p), m = getEpochNanosecondsFor(n, s, h), u = getEpochNanosecondsFor(n, d, h), T = timeDurationFromEpochNanosecondsDifference(u, m), p = nanosecondsForTimeUnit(i);
1273
- let g = roundTimeDurationToIncrement(t.p, a * p, l);
1274
- const f = addTimeDuration(g, negateTimeDuration(T));
1275
- let I, O = !1, F = 0;
1276
- return gt(f) !== -e ? (O = !0, F = e, g = roundTimeDurationToIncrement(f, a * p, l), I = addTimeDurationToEpochNanoseconds(u, g)) : I = addTimeDurationToEpochNanoseconds(u, g), {
1277
- Fe: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.X + F), g),
1278
- Se: I,
1279
- we: O
1273
+ function roundRelativeDuration(e, t, o, n, r, a, i, l, c, m) {
1274
+ const u = internalDurationSign(e) || 1, T = isCalendarUnit(c) || r && c === d ? nudgeToCalendarUnit(u, e, t, o, n, r, 0, l, c, m).Oe : r ? ((e, t, o, n, r, a, i, l) => {
1275
+ const c = calendarDateAdd(0, o.o, t.A, _), s = combineIsoDateAndTimeRecord(c, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(c, e), o.p), m = getEpochNanosecondsFor(n, s, G), u = getEpochNanosecondsFor(n, d, G), T = timeDurationFromEpochNanosecondsDifference(u, m), D = nanosecondsForTimeUnit(i);
1276
+ let p = roundTimeDurationToIncrement(t.p, a * D, l);
1277
+ const h = addTimeDuration(p, negateTimeDuration(T));
1278
+ let g = !1, f = 0;
1279
+ return Ot(h) !== -e && (g = !0, f = e, p = roundTimeDurationToIncrement(h, a * D, l)), {
1280
+ Fe: combineDateAndTimeDuration(adjustDateDurationRecord(t.A, t.A.X + f), p),
1281
+ Se: addTimeDurationToEpochNanoseconds(u, p),
1282
+ we: g
1280
1283
  };
1281
- })(d, e, n, r, 0, l, c, s) : (function(e, t, o, n, r, a) {
1282
- const i = add24HourDaysToTimeDuration(e.p, e.A.X), l = r === x ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), c = l[0], [s, d] = isDateUnit(o) ? [c, addTimeDuration(l, timeDurationFromComponents(24 * -c, 0, 0, 0, 0, 0))] : [0, l];
1284
+ })(u, e, n, r, 0, l, c, m) : (function(e, t, o, n, r, a) {
1285
+ const i = add24HourDaysToTimeDuration(e.p, e.A.X), l = r === d ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), c = l[0];
1283
1286
  return {
1284
- Fe: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, s), d),
1287
+ Fe: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, isDateUnit(o) ? c : 0), isDateUnit(o) ? addTimeDuration(l, timeDurationFromComponents(24 * -c, 0, 0, 0, 0, 0)) : l),
1285
1288
  Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(l, negateTimeDuration(i))),
1286
- we: sign(c - i[0]) === gt(i)
1289
+ we: sign(c - i[0]) === Ot(i)
1287
1290
  };
1288
- })(e, o, i, l, c, s);
1289
- return m.we && c !== H ? ((e, t, o, n, r, a, i, l) => {
1291
+ })(e, o, i, l, c, m);
1292
+ return T.we && c !== s ? ((e, t, o, n, r, a, i, l) => {
1290
1293
  if (l === i) return t;
1291
1294
  const c = i;
1292
- let s;
1293
- for (let a = l - 1; a >= c; a--) if (a !== G || c === G) {
1294
- s = a === _ ? createDateDurationRecord(t.A.te + e, 0, 0, 0) : a === X ? adjustDateDurationRecord(t.A, 0, 0, t.A.oe + e) : adjustDateDurationRecord(t.A, 0, t.A.ee + e);
1295
- const i = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, s, D), n.p);
1296
- if (gt(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, i, "compatible") : getUtcEpochNanoseconds(i), o)) === -e) break;
1297
- t = combineDateAndTimeDuration(s, we);
1295
+ let d;
1296
+ for (let a = l - 1; a >= c; a--) if (a !== g || i === s) {
1297
+ d = a === p ? createDateDurationRecord(t.A.te + e, 0, 0, 0) : a === h ? adjustDateDurationRecord(t.A, 0, 0, t.A.oe + e) : adjustDateDurationRecord(t.A, 0, t.A.ee + e);
1298
+ const i = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, d, _), n.p), l = r ? getEpochNanosecondsFor(r, i, G) : getUtcEpochNanoseconds(i);
1299
+ if (Ot(differenceEpochNanoseconds(l, o)) === -e) break;
1300
+ t = combineDateAndTimeDuration(d, ye);
1298
1301
  }
1299
1302
  return t;
1300
- })(d, m.Fe, m.Se, n, r, 0, i, largerOfTwoTemporalUnits(c, x)) : m.Fe;
1303
+ })(u, T.Fe, T.Se, n, r, 0, i, largerOfTwoTemporalUnits(c, d)) : T.Fe;
1301
1304
  }
1302
1305
  function totalRelativeDuration(e, t, o, n, r, a, i) {
1303
- return isCalendarUnit(i) || r && i === x ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, 0, 1, i, E).ve : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.A.X), i);
1306
+ return isCalendarUnit(i) || r && i === d ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, 0, 1, i, le).ve : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.A.X), i);
1304
1307
  }
1305
1308
  function temporalDurationToString(e, t) {
1306
- const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[te], e[oe], e[ne], e[re]), [, , , r, a, i, l] = balanceTimeDuration(n, B), [c, s, d, m, u, T] = [
1309
+ const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[F], e[S], e[w], e[v]), [, , , r, a, i, l] = balanceTimeDuration(n, T), [c, s, d, m, u, D] = [
1307
1310
  "Y",
1308
1311
  "M",
1309
1312
  "W",
1310
1313
  "D",
1311
1314
  "H",
1312
1315
  "M"
1313
- ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${u}${T}${gt(n) || defaultTemporalLargestUnit(e) >= B || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + l, t)}S` : ""}`;
1314
- return `${o < 0 ? "-" : ""}P${c}${s}${d}${m}${D && `T${D}`}`;
1316
+ ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), p = `${u}${D}${Ot(n) || defaultTemporalLargestUnit(e) >= T || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + l, t)}S` : ""}`;
1317
+ return `${o < 0 ? "-" : ""}P${c}${s}${d}${m}${p && `T${p}`}`;
1315
1318
  }
1316
1319
  function addDurations(e, t, o) {
1317
1320
  const n = applySignToDurationSlot(toTemporalDuration(o), e), r = largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), defaultTemporalLargestUnit(n));
1318
1321
  return isCalendarUnit(r) && throwRangeError(durationWithDateUnit(r)), createTemporalDuration(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), addTimeDuration(toInternalDurationRecordWith24HourDays(t).p, toInternalDurationRecordWith24HourDays(n).p)), r));
1319
1322
  }
1320
1323
  function getInternalSlotOrThrowForDuration(e) {
1321
- const t = ht.get(e);
1322
- return t || throwTypeError(Te), t;
1324
+ return getInternalSlotOrThrow(It, e);
1323
1325
  }
1324
1326
  function applySignToDurationSlot(e, t) {
1325
1327
  return createTemporalDurationSlot(e.map((e) => e * t + 0));
1326
1328
  }
1327
1329
  function validateTimeDurationRange(e) {
1328
- return ((e) => ve(absTimeDuration(e), createTimeDurationFromUnit(2 ** 53, 1e9)) < 0)(e) || throwRangeError(de), e;
1330
+ return ((e) => Pe(absTimeDuration(e), createTimeDurationFromUnit(2 ** 53, 1e9)) < 0)(e) || throwRangeError(Z), e;
1329
1331
  }
1330
1332
  function balanceTimeDuration(e, t) {
1331
1333
  const o = clamp(t, 3, 9);
@@ -1337,8 +1339,8 @@ function balanceTimeDuration(e, t) {
1337
1339
  0,
1338
1340
  0,
1339
1341
  0
1340
- ].slice(0, o - K),
1341
- o > te ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), le[o - K] / 1e9),
1342
+ ].slice(0, o - f),
1343
+ o > F ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), E[o - f] / 1e9),
1342
1344
  ...[
1343
1345
  0,
1344
1346
  1,
@@ -1346,7 +1348,7 @@ function balanceTimeDuration(e, t) {
1346
1348
  3,
1347
1349
  4,
1348
1350
  5
1349
- ].map((t) => divTrunc(e[1], le[t + 1]) % (le[t] / le[t + 1]) + 0).slice(o - K)
1351
+ ].map((t) => divTrunc(e[1], E[t + 1]) % (E[t] / E[t + 1]) + 0).slice(o - f)
1350
1352
  ];
1351
1353
  var r;
1352
1354
  }
@@ -1376,34 +1378,34 @@ function mathematicalInLeapYear(e) {
1376
1378
  return +!(e % (e % 25 ? 4 : 16));
1377
1379
  }
1378
1380
  function getTemporalOverflowOption(e) {
1379
- return getOption(e, "overflow", [D, p], D);
1381
+ return getOption(e, "overflow", [_, X], _);
1380
1382
  }
1381
1383
  function getTemporalDisambiguationOption(e) {
1382
1384
  return getOption(e, "disambiguation", [
1383
- h,
1385
+ G,
1384
1386
  "earlier",
1385
- g,
1387
+ K,
1386
1388
  "reject"
1387
- ], h);
1389
+ ], G);
1388
1390
  }
1389
1391
  function negateRoundingMode(e) {
1390
- return "ceil" === e ? v : "floor" === e ? w : "halfCeil" === e ? R : "halfFloor" === e ? P : e;
1392
+ return "ceil" === e ? ae : "floor" === e ? re : "halfCeil" === e ? se : "halfFloor" === e ? ce : e;
1391
1393
  }
1392
1394
  function getTemporalOffsetOption(e, t) {
1393
1395
  return getOption(e, "offset", [
1394
- f,
1396
+ Q,
1395
1397
  "use",
1396
1398
  "ignore",
1397
- I
1399
+ ee
1398
1400
  ], t);
1399
1401
  }
1400
1402
  function getTemporalShowCalendarNameOption(e) {
1401
1403
  return getOption(e, "calendarName", [
1402
- M,
1403
- U,
1404
- j,
1405
- $
1406
- ], M);
1404
+ Te,
1405
+ De,
1406
+ pe,
1407
+ he
1408
+ ], Te);
1407
1409
  }
1408
1410
  function validateTemporalRoundingIncrement(e, t, o) {
1409
1411
  (e > (o ? t : t - 1) || t % e) && throwRangeError(invalidField("roundingIncrement"));
@@ -1417,7 +1419,7 @@ function getTemporalFractionalSecondDigitsOption(e) {
1417
1419
  }
1418
1420
  function toSecondsStringPrecisionRecord(e, t) {
1419
1421
  return e ? {
1420
- ye: e === q ? T : 3 * (e - 6),
1422
+ ye: e === u ? J : 3 * (e - 6),
1421
1423
  Ee: e,
1422
1424
  Pe: 1
1423
1425
  } : {
@@ -1428,57 +1430,57 @@ function toSecondsStringPrecisionRecord(e, t) {
1428
1430
  }
1429
1431
  function getTemporalUnitValuedOption(e, t, o) {
1430
1432
  return mapUnlessUndefined(getOption(e, t, [
1431
- ...ae,
1432
- ...ie,
1433
+ ...y,
1434
+ ...P,
1433
1435
  "auto"
1434
1436
  ], o), (e) => {
1435
- return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), ae.indexOf(t));
1437
+ return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), y.indexOf(t));
1436
1438
  var t;
1437
1439
  });
1438
1440
  }
1439
1441
  function validateTemporalUnitValue(e, t, o = []) {
1440
- void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= x && t === c || e > x && t === l) && throwRangeError(disallowedUnit(e)));
1442
+ void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= d && t === L || e > d && t === V) && throwRangeError(disallowedUnit(e)));
1441
1443
  }
1442
1444
  function getTemporalRelativeToOption(e) {
1443
1445
  const t = e.relativeTo;
1444
1446
  if (void 0 === t) return createNullPrototypeObject();
1445
- let o, n, r, a, i, l = !0, c = O;
1447
+ let o, n, r, a, i, l = !0, c = te;
1446
1448
  if (isObject(t)) {
1447
- if (isZonedDateTime(t)) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForZonedDateTime(t) });
1448
- if (isPlainDate(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(t) });
1449
+ if (isZonedDateTime(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForZonedDateTime(t) });
1450
+ if (isPlainDate(t)) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForPlainDate(t) });
1449
1451
  const e = getInternalSlotForPlainDateTime(t);
1450
- if (e) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.K.o, e.U)) });
1452
+ if (e) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.K.o, e.U)) });
1451
1453
  r = getTemporalCalendarIdentifierWithIsoDefault(t);
1452
1454
  const l = prepareCalendarFields(r, t, [
1453
- Tt.t,
1454
- Tt.u,
1455
- Tt.P,
1456
- Tt.T,
1457
- Tt.D,
1458
- Tt.I,
1459
- Tt.O,
1460
- Tt.F,
1461
- Tt.S,
1462
- Tt.v,
1463
- Tt.R,
1464
- Tt.Z
1465
- ], []), s = interpretTemporalDateTimeFields(r, l, D);
1466
- a = s.o, i = s.p, o = l.timeZone, n = l.offset, c = n ? O : S;
1455
+ ht.t,
1456
+ ht.u,
1457
+ ht.P,
1458
+ ht.T,
1459
+ ht.D,
1460
+ ht.I,
1461
+ ht.O,
1462
+ ht.F,
1463
+ ht.S,
1464
+ ht.v,
1465
+ ht.R,
1466
+ ht.Z
1467
+ ], []), s = interpretTemporalDateTimeFields(r, l, _);
1468
+ a = s.o, i = s.p, o = l.timeZone, n = l.offset, c = n ? te : ne;
1467
1469
  } else {
1468
1470
  validateString(t);
1469
- const e = parseIsoDateTime(t, [Ge, Ke]);
1470
- n = e.Z.N, e.Z.$ ? (o = toTemporalTimeZoneIdentifier(e.Z.$), c = e.Z.M ? F : n ? O : S, l = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.U || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
1471
+ const e = parseIsoDateTime(t, [et, tt]);
1472
+ n = e.Z.N, e.Z.$ ? (o = toTemporalTimeZoneIdentifier(e.Z.$), c = e.Z.M ? oe : n ? te : ne, l = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.U || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
1471
1473
  }
1472
- return createNullPrototypeObject(o ? { Re: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, c, c === O ? parseDateTimeUtcOffset(n) : 0, o, h, I, l), o, r)) } : { be: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
1474
+ return createNullPrototypeObject(o ? { be: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, c, c === te ? parseDateTimeUtcOffset(n) : 0, o, G, ee, l), o, r)) } : { Re: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
1473
1475
  }
1474
1476
  function largerOfTwoTemporalUnits(e, t) {
1475
1477
  return e < t ? e : t;
1476
1478
  }
1477
1479
  function isCalendarUnit(e) {
1478
- return e < x;
1480
+ return e < d;
1479
1481
  }
1480
1482
  function isDateUnit(e) {
1481
- return e <= x;
1483
+ return e <= d;
1482
1484
  }
1483
1485
  function maximumTemporalDurationRoundingIncrement(e) {
1484
1486
  return [
@@ -1495,22 +1497,22 @@ function formatFractionalSeconds(e, t) {
1495
1497
  return void 0 === t ? e ? `.${o.replace(/0*$/, "")}` : "" : t ? `.${o.slice(0, t)}` : "";
1496
1498
  }
1497
1499
  function formatTimeString(e, t, o, n, r) {
1498
- return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === T ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
1500
+ return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === J ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
1499
1501
  }
1500
1502
  function roundNumberToIncrement(e, t, o) {
1501
- return It[o](e / t) * t;
1503
+ return St[o](e / t) * t;
1502
1504
  }
1503
1505
  function getRoundingModeOption(e, t) {
1504
1506
  return getOption(e, "roundingMode", [
1505
- w,
1506
- v,
1507
- y,
1508
- E,
1509
- P,
1510
- R,
1511
- b,
1512
- Z,
1513
- N
1507
+ re,
1508
+ ae,
1509
+ ie,
1510
+ le,
1511
+ ce,
1512
+ se,
1513
+ de,
1514
+ me,
1515
+ ue
1514
1516
  ], t);
1515
1517
  }
1516
1518
  function getRoundingIncrementOption(e) {
@@ -1520,19 +1522,19 @@ function getRoundingIncrementOption(e) {
1520
1522
  function isoDateToFields(e, t, o) {
1521
1523
  const n = calendarIsoToDate(e, t);
1522
1524
  return createNullPrototypeObject({
1523
- [Tt.t]: o === m ? void 0 : n.t,
1524
- [Tt.P]: n.P,
1525
- [Tt.T]: o === d ? void 0 : n.T
1525
+ [ht.t]: o === B ? void 0 : n.t,
1526
+ [ht.P]: n.P,
1527
+ [ht.T]: o === x ? void 0 : n.T
1526
1528
  });
1527
1529
  }
1528
1530
  function getDifferenceSettings(e, t, o, n, r, a) {
1529
- let i = getTemporalUnitValuedOption(t, "largestUnit", void 0) ?? "auto";
1530
- const l = getRoundingIncrementOption(t), c = getRoundingModeOption(t, E), s = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
1531
- return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(s, o), n.includes(s) && throwRangeError(disallowedUnit(s)), "auto" === i && (i = largerOfTwoTemporalUnits(a, s)), i > s && throwRangeError(De), isDateUnit(s) || validateTemporalRoundingIncrement(l, maximumTemporalDurationRoundingIncrement(s), !1), {
1532
- L: s,
1531
+ let i = getTemporalUnitValuedOption(t, "largestUnit") ?? "auto";
1532
+ const l = getRoundingIncrementOption(t), c = getRoundingModeOption(t, le), s = getTemporalUnitValuedOption(t, "smallestUnit") ?? r;
1533
+ return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(s, o), n.includes(s) && throwRangeError(disallowedUnit(s)), "auto" === i && (i = largerOfTwoTemporalUnits(a, s)), i > s && throwRangeError(U), isDateUnit(s) || validateTemporalRoundingIncrement(l, maximumTemporalDurationRoundingIncrement(s), !1), {
1534
+ H: s,
1533
1535
  V: i,
1534
- q: -1 === e ? negateRoundingMode(c) : c,
1535
- H: l
1536
+ B: -1 === e ? negateRoundingMode(c) : c,
1537
+ L: l
1536
1538
  };
1537
1539
  }
1538
1540
  function getUtcEpochNanoseconds(e) {
@@ -1548,21 +1550,20 @@ function epochDaysToIsoDate(e) {
1548
1550
  }
1549
1551
  function isoDateTimeToFields(e, t) {
1550
1552
  return createNullPrototypeObject({
1551
- ...isoDateToFields(e, t.o, l),
1552
- [Tt.D]: t.p.D,
1553
- [Tt.I]: t.p.I,
1554
- [Tt.O]: t.p.O,
1555
- [Tt.F]: t.p.F,
1556
- [Tt.S]: t.p.S,
1557
- [Tt.v]: t.p.v
1553
+ ...isoDateToFields(e, t.o, V),
1554
+ [ht.D]: t.p.D,
1555
+ [ht.I]: t.p.I,
1556
+ [ht.O]: t.p.O,
1557
+ [ht.F]: t.p.F,
1558
+ [ht.S]: t.p.S,
1559
+ [ht.v]: t.p.v
1558
1560
  });
1559
1561
  }
1560
1562
  function getInternalSlotOrThrowForDateTimeFormat(e) {
1561
- const t = St.get(e);
1562
- return t || throwTypeError(Te), t;
1563
+ return getInternalSlotOrThrow(yt, e);
1563
1564
  }
1564
1565
  function formatDateTime(e, t) {
1565
- const [o, n] = handleDateTimeValue(getInternalSlotOrThrowForDateTimeFormat(e), t);
1566
+ const [o, n] = handleDateTimeValue(e, t);
1566
1567
  return o.format(n);
1567
1568
  }
1568
1569
  function removeDateTimeFormatOptions(e, t) {
@@ -1573,19 +1574,19 @@ function dateStyleToMonthStyle(e) {
1573
1574
  }
1574
1575
  function amendOptionsForPlainDate(e) {
1575
1576
  const t = createNullPrototypeObject(e);
1576
- return hasAnyOptions(e, wt) || (hasAnyOptions(e, vt) && throwTypeError(me), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...vt, "timeZoneName"]), t.timeZone = "UTC", t;
1577
+ return hasAnyOptions(e, Pt) || (hasAnyOptions(e, Et) && throwTypeError(N), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...Et, "timeZoneName"]), t.timeZone = "UTC", t;
1577
1578
  }
1578
1579
  function amendOptionsForPlainTime(e) {
1579
1580
  const t = createNullPrototypeObject(e);
1580
- return hasAnyOptions(e, vt) || (hasAnyOptions(e, wt) && throwTypeError(me), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
1581
- ...wt,
1581
+ return hasAnyOptions(e, Et) || (hasAnyOptions(e, Pt) && throwTypeError(N), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
1582
+ ...Pt,
1582
1583
  "era",
1583
1584
  "timeZoneName"
1584
1585
  ]), t.timeZone = "UTC", t;
1585
1586
  }
1586
1587
  function amendOptionsForPlainDateTime(e) {
1587
1588
  const t = createNullPrototypeObject(e);
1588
- return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [...wt, ...vt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
1589
+ 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, [...Pt, ...Et]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
1589
1590
  }
1590
1591
  function amendOptionsForPlainYearMonth(e) {
1591
1592
  const t = createNullPrototypeObject(e);
@@ -1593,8 +1594,8 @@ function amendOptionsForPlainYearMonth(e) {
1593
1594
  "year",
1594
1595
  "month",
1595
1596
  "dateStyle"
1596
- ]) || (hasAnyOptions(e, [...wt, ...vt]) && throwTypeError(me), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
1597
- ...vt,
1597
+ ]) || (hasAnyOptions(e, [...Pt, ...Et]) && throwTypeError(N), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
1598
+ ...Et,
1598
1599
  "day",
1599
1600
  "weekday",
1600
1601
  "timeZoneName"
@@ -1606,8 +1607,8 @@ function amendOptionsForPlainMonthDay(e) {
1606
1607
  "month",
1607
1608
  "day",
1608
1609
  "dateStyle"
1609
- ]) || (hasAnyOptions(e, [...wt, ...vt]) && throwTypeError(me), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
1610
- ...vt,
1610
+ ]) || (hasAnyOptions(e, [...Pt, ...Et]) && throwTypeError(N), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
1611
+ ...Et,
1611
1612
  "era",
1612
1613
  "year",
1613
1614
  "weekday",
@@ -1616,27 +1617,27 @@ function amendOptionsForPlainMonthDay(e) {
1616
1617
  }
1617
1618
  function amendOptionsForInstant(e) {
1618
1619
  const t = createNullPrototypeObject(e);
1619
- return hasAnyOptions(e, [...wt, ...vt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
1620
+ return hasAnyOptions(e, [...Pt, ...Et]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
1620
1621
  }
1621
1622
  function hasAnyOptions(e, t) {
1622
1623
  return t.some((t) => void 0 !== e[t]);
1623
1624
  }
1624
- function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create(Et.prototype)) {
1625
- null === t && throwTypeError(me);
1626
- const a = createNullPrototypeObject();
1627
- let i = new Ft(e, new Proxy({}, { get(e, o) {
1628
- const r = t[o];
1629
- return "timeZone" === o && void 0 !== n ? (void 0 !== r && throwTypeError("disallowed field: timeZone"), a[o] = n) : void 0 === r ? r : a[o] = "hour12" === o ? ((e) => !!e)(r) : "fractionalSecondDigits" === o ? Oe(r) : toString(r);
1625
+ function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n) {
1626
+ null === t && throwTypeError(N);
1627
+ const r = createNullPrototypeObject();
1628
+ let a = new vt(e, new Proxy({}, { get(e, o) {
1629
+ const a = t[o];
1630
+ return "timeZone" === o && void 0 !== n ? (void 0 !== a && throwTypeError("disallowed field: timeZone"), r[o] = n) : void 0 === a ? a : r[o] = "hour12" === o ? ((e) => !!e)(a) : "fractionalSecondDigits" === o ? Se(a) : toString(a);
1630
1631
  } }));
1631
- return (o === l && a.timeStyle || o === c && a.dateStyle) && throwTypeError(me), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
1632
- ...wt,
1633
- ...vt,
1632
+ return (o === V && r.timeStyle || o === L && r.dateStyle) && throwTypeError(N), r.calendar = a.resolvedOptions().calendar, void 0 === n || hasAnyOptions(r, [
1633
+ ...Pt,
1634
+ ...Et,
1634
1635
  "timeZoneName"
1635
- ]) || (a.timeZoneName = "short", i = new Ft(i.resolvedOptions().locale, a)), St.set(r, createNullPrototypeObject({
1636
- Ze: i,
1637
- $e: a,
1638
- Ne: i.resolvedOptions().locale
1639
- })), r;
1636
+ ]) || (r.timeZoneName = "short", a = new vt(a.resolvedOptions().locale, r)), createNullPrototypeObject({
1637
+ Ze: a,
1638
+ $e: r,
1639
+ Ne: a.resolvedOptions().locale
1640
+ });
1640
1641
  }
1641
1642
  function validateSameTemporalType(e, t) {
1642
1643
  [
@@ -1650,27 +1651,28 @@ function validateSameTemporalType(e, t) {
1650
1651
  ].some((o) => o(e) !== o(t)) && throwTypeError("Temporal type mismatch");
1651
1652
  }
1652
1653
  function toDateTimeFormattable(e) {
1653
- return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Oe(e);
1654
+ return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Se(e);
1654
1655
  }
1655
1656
  function handleDateTimeValue(e, t) {
1656
1657
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
1657
- return isPlainTime(t) ? [e.Me ||= new Ft(e.Ne, amendOptionsForPlainTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.U !== e.$e.calendar && "iso8601" !== o.U && throwRangeError(ue), [e.Ue ||= new Ft(e.Ne, amendOptionsForPlainDate(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.U !== e.$e.calendar && "iso8601" !== n.U && throwRangeError(ue), [e.je ||= new Ft(e.Ne, amendOptionsForPlainDateTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.U !== e.$e.calendar && throwRangeError(ue), [e.Ce ||= new Ft(e.Ne, amendOptionsForPlainYearMonth(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.U !== e.$e.calendar && throwRangeError(ue), [e.Ye ||= new Ft(e.Ne, amendOptionsForPlainMonthDay(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= new Ft(e.Ne, amendOptionsForInstant(e.$e)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).Y)] : (isZonedDateTime(t) && throwTypeError(he), [e.Ze, t]);
1658
+ return isPlainTime(t) ? [e.Me ||= new vt(e.Ne, amendOptionsForPlainTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.U !== e.$e.calendar && "iso8601" !== o.U && throwRangeError(M), [e.Ue ||= new vt(e.Ne, amendOptionsForPlainDate(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.U !== e.$e.calendar && "iso8601" !== n.U && throwRangeError(M), [e.je ||= new vt(e.Ne, amendOptionsForPlainDateTime(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(n.K))]) : r ? (r.U !== e.$e.calendar && throwRangeError(M), [e.Ce ||= new vt(e.Ne, amendOptionsForPlainYearMonth(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.U !== e.$e.calendar && throwRangeError(M), [e.Ye ||= new vt(e.Ne, amendOptionsForPlainMonthDay(e.$e)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.We ||= new vt(e.Ne, amendOptionsForInstant(e.$e)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).Y)] : (isZonedDateTime(t) && throwTypeError($), [e.Ze, t]);
1658
1659
  }
1659
1660
  function DateTimeFormat(e, t) {
1660
- return new Et(e, t);
1661
+ return new Rt(e, t);
1661
1662
  }
1662
- function createTemporalInstant(e, t = Object.create(Zt.prototype)) {
1663
- return bt.set(t, { Y: e }), t;
1663
+ function createTemporalInstant(e, t = Object.create(Ut.prototype)) {
1664
+ return Mt.set(t, { Y: e }), t;
1664
1665
  }
1665
1666
  function toTemporalInstant$1(e) {
1666
1667
  if (isObject(e)) {
1667
- const t = getInternalSlotForInstant(e) || getInternalSlotForZonedDateTime(e);
1668
- if (t) return createTemporalInstant(t.Y);
1668
+ const o = (t = e, Mt.get(t) || getInternalSlotForZonedDateTime(e));
1669
+ if (o) return createTemporalInstant(o.Y);
1669
1670
  e = toPrimitive(e);
1670
1671
  }
1672
+ var t;
1671
1673
  validateString(e);
1672
- const t = parseIsoDateTime(e, [Qe]), o = t.Z.M ? 0 : parseDateTimeUtcOffset(t.Z.N), n = t.p;
1673
- return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.t, t.u, t.T, n.D, n.I, n.O, n.F, n.S, n.v - o))));
1674
+ const o = parseIsoDateTime(e, [ot]), n = o.Z.M ? 0 : parseDateTimeUtcOffset(o.Z.N), r = o.p;
1675
+ return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(o.t, o.u, o.T, r.D, r.I, r.O, r.F, r.S, r.v - n))));
1674
1676
  }
1675
1677
  function addInstant(e, t) {
1676
1678
  return validateEpochNanoseconds(addTimeDurationToEpochNanoseconds(e, t));
@@ -1680,42 +1682,38 @@ function differenceInstant(e, t, o, n, r) {
1680
1682
  }
1681
1683
  function roundTemporalInstant(e, t, o, n) {
1682
1684
  return (function(e, t, o) {
1683
- return normalizeEpochNanoseconds(e[0], ((e, t, o) => Ot[o](e / t) * t)(e[1], t, o));
1685
+ return normalizeEpochNanoseconds(e[0], ((e, t, o) => wt[o](e / t) * t)(e[1], t, o));
1684
1686
  })(e, t * nanosecondsForTimeUnit(o), n);
1685
1687
  }
1686
1688
  function temporalInstantToString(e, t, o) {
1687
1689
  const n = getOffsetNanosecondsFor(t || "UTC", e);
1688
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, j)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
1690
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, pe)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
1689
1691
  }
1690
1692
  function differenceTemporalInstant(e, t, o, n) {
1691
- const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), c, [], J, B);
1692
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.H, a.L, a.q), a.V), e));
1693
+ const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), L, [], D, T);
1694
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.L, a.H, a.B), a.V), e));
1693
1695
  }
1694
1696
  function addDurationToInstant(e, t, o) {
1695
1697
  const n = applySignToDurationSlot(toTemporalDuration(o), e);
1696
1698
  return isDateUnit(defaultTemporalLargestUnit(n)) && throwRangeError(durationWithDateUnit(defaultTemporalLargestUnit(n))), createTemporalInstant(addInstant(t.Y, toInternalDurationRecordWith24HourDays(n).p));
1697
1699
  }
1698
1700
  function validateEpochNanoseconds(e) {
1699
- return ((e) => compareEpochNanoseconds(Fe, e) * compareEpochNanoseconds(Se, e) <= 0)(e) || throwRangeError(se), e;
1700
- }
1701
- function getInternalSlotForInstant(e) {
1702
- return bt.get(e);
1701
+ return ((e) => compareEpochNanoseconds(we, e) * compareEpochNanoseconds(ve, e) <= 0)(e) || throwRangeError(R), e;
1703
1702
  }
1704
1703
  function getInternalSlotOrThrowForInstant(e) {
1705
- const t = getInternalSlotForInstant(e);
1706
- return t || throwTypeError(Te), t;
1704
+ return getInternalSlotOrThrow(Mt, e);
1707
1705
  }
1708
1706
  function isInstant(e) {
1709
- return bt.has(e);
1707
+ return Mt.has(e);
1710
1708
  }
1711
1709
  function clampEpochNanoseconds(e) {
1712
- return compareEpochNanoseconds(e, Se) > 0 ? Se : compareEpochNanoseconds(e, Fe) < 0 ? Fe : e;
1710
+ return compareEpochNanoseconds(e, ve) > 0 ? ve : compareEpochNanoseconds(e, we) < 0 ? we : e;
1713
1711
  }
1714
1712
  function systemTimeZoneIdentifier() {
1715
- return $t && Ct + $t > Date.now() && jt ? jt : (Ct = Date.now(), jt = new Ft().resolvedOptions().timeZone);
1713
+ return Wt && At + Wt > Date.now() && Yt ? Yt : (At = Date.now(), Yt = new vt().resolvedOptions().timeZone);
1716
1714
  }
1717
1715
  function setSystemTimeZoneIdCacheTtl(e) {
1718
- $t = e, e || (jt = void 0, Ct = -Infinity);
1716
+ Wt = e, e || (Yt = void 0, At = -1 / 0);
1719
1717
  }
1720
1718
  function systemUtcEpochNanoseconds() {
1721
1719
  return createEpochNanosecondsFromEpochMilliseconds(Date.now());
@@ -1723,7 +1721,7 @@ function systemUtcEpochNanoseconds() {
1723
1721
  function systemDateTime(e = systemTimeZoneIdentifier()) {
1724
1722
  return getIsoDateTimeForZonedDateTimeSlot(createZonedDateTimeSlot(systemUtcEpochNanoseconds(), toTemporalTimeZoneIdentifier(e), "iso8601"));
1725
1723
  }
1726
- const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097, l = Symbol(), c = Symbol(), s = Symbol(), d = Symbol(), m = Symbol(), u = Symbol(), T = Symbol(), D = "constrain", p = "reject", h = "compatible", g = "later", f = "prefer", I = "reject", O = Symbol(), F = Symbol(), S = Symbol(), w = "ceil", v = "floor", y = "expand", E = "trunc", P = "halfCeil", R = "halfFloor", b = "halfExpand", Z = "halfTrunc", N = "halfEven", M = "auto", U = "always", j = "never", $ = "critical", C = "auto", Y = "never", W = "auto", A = "never", z = "critical", V = 0, k = 1, H = 2, x = 3, L = 4, q = 5, B = 6, J = 9, _ = 0, X = 1, G = 2, K = 3, Q = 4, ee = 5, te = 6, oe = 7, ne = 8, re = 9, ae = [
1724
+ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097, l = 0, c = 1, s = 2, d = 3, m = 4, u = 5, T = 6, D = 9, p = 0, h = 1, g = 2, f = 3, I = 4, O = 5, F = 6, S = 7, w = 8, v = 9, y = [
1727
1725
  "year",
1728
1726
  "month",
1729
1727
  "week",
@@ -1734,7 +1732,7 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097
1734
1732
  "millisecond",
1735
1733
  "microsecond",
1736
1734
  "nanosecond"
1737
- ], ie = ae.map((e) => `${e}s`), le = [
1735
+ ], P = y.map((e) => `${e}s`), E = [
1738
1736
  a,
1739
1737
  o,
1740
1738
  t,
@@ -1742,8 +1740,27 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e11, i = 146097
1742
1740
  1e6,
1743
1741
  1e3,
1744
1742
  1
1745
- ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, ce = "invalid date / time", se = "out-of-bounds date", de = "out-of-bounds duration", me = "invalid formatting options", ue = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, Te = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, De = "invalid `largestUnit` and `smallestUnit` options", pe = "mismatch of `month` and `monthCode`", he = "value is not formattable", notObject = (e) => `not object: ${e}`, ge = "empty fields", fe = "can't convert Temporal classes to number", Ie = "argument is undefined", Oe = Math.max, Fe = createEpochNanosecondsFromEpochMilliseconds(-864e13), Se = createEpochNanosecondsFromEpochMilliseconds(864e13), we = [0, 0], ve = compareEpochNanoseconds, ye = /* @__PURE__ */ new WeakMap();
1746
- var Ee = class {
1743
+ ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, parseError = (e) => `parse error: ${e}`, b = "invalid date / time", R = "out-of-bounds date", Z = "out-of-bounds duration", N = "invalid formatting options", M = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, U = "invalid `largestUnit` and `smallestUnit` options", j = "mismatch of `month` and `monthCode`", $ = "value is not formattable", notObject = (e) => `not object: ${e}`, C = "empty fields", Y = "can't convert Temporal classes to number", W = "argument is undefined", A = globalThis.Intl.DurationFormat, z = /* @__PURE__ */ new WeakMap();
1744
+ var k = class {
1745
+ static supportedLocalesOf(e, t = void 0) {
1746
+ return A.supportedLocalesOf(e, t);
1747
+ }
1748
+ constructor(e = void 0, t = void 0) {
1749
+ z.set(this, { Ae: new A(e, t) });
1750
+ }
1751
+ format(e) {
1752
+ return getInternalSlotOrThrowForDurationFormat(this).Ae.format(durationRecordToDurationLikeObject(toTemporalDuration(e)));
1753
+ }
1754
+ formatToParts(e) {
1755
+ return getInternalSlotOrThrowForDurationFormat(this).Ae.formatToParts(durationRecordToDurationLikeObject(toTemporalDuration(e)));
1756
+ }
1757
+ resolvedOptions() {
1758
+ return getInternalSlotOrThrowForDurationFormat(this).Ae.resolvedOptions();
1759
+ }
1760
+ };
1761
+ defineStringTag(k.prototype, "Intl.DurationFormat"), renameFunction(k, "DurationFormat");
1762
+ const V = Symbol(), L = Symbol(), H = Symbol(), x = Symbol(), B = Symbol(), q = Symbol(), J = Symbol(), _ = "constrain", X = "reject", G = "compatible", K = "later", Q = "prefer", ee = "reject", te = Symbol(), oe = Symbol(), ne = Symbol(), re = "ceil", ae = "floor", ie = "expand", le = "trunc", ce = "halfCeil", se = "halfFloor", de = "halfExpand", me = "halfTrunc", ue = "halfEven", Te = "auto", De = "always", pe = "never", he = "critical", ge = "auto", fe = "never", Ie = "auto", Oe = "never", Fe = "critical", Se = Math.max, we = createEpochNanosecondsFromEpochMilliseconds(-864e13), ve = createEpochNanosecondsFromEpochMilliseconds(864e13), ye = [0, 0], Pe = compareEpochNanoseconds, Ee = /* @__PURE__ */ new WeakMap();
1763
+ var be = class {
1747
1764
  constructor(e, t, o = "iso8601") {
1748
1765
  const n = validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e)));
1749
1766
  validateString(t);
@@ -1846,25 +1863,25 @@ var Ee = class {
1846
1863
  validatePartialTemporalObject(e);
1847
1864
  const n = getOffsetNanosecondsForZonedDateTimeSlot(o), r = getIsoDateTimeForZonedDateTimeSlot(o), a = calendarMergeFields(o.U, createNullPrototypeObject({
1848
1865
  ...isoDateTimeToFields(o.U, r),
1849
- [Tt.R]: formatUtcOffsetNanoseconds(n)
1866
+ [ht.R]: formatUtcOffsetNanoseconds(n)
1850
1867
  }), prepareCalendarFields(o.U, e, [
1851
- Tt.t,
1852
- Tt.u,
1853
- Tt.P,
1854
- Tt.T,
1855
- Tt.D,
1856
- Tt.I,
1857
- Tt.O,
1858
- Tt.F,
1859
- Tt.S,
1860
- Tt.v,
1861
- Tt.R
1862
- ])), i = getOptionsObject(t), l = getTemporalDisambiguationOption(i), c = getTemporalOffsetOption(i, f), s = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.U, a, s);
1863
- return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, O, parseDateTimeUtcOffset(a[Tt.R]), o.Z, l, c, !0), o.Z, o.U);
1868
+ ht.t,
1869
+ ht.u,
1870
+ ht.P,
1871
+ ht.T,
1872
+ ht.D,
1873
+ ht.I,
1874
+ ht.O,
1875
+ ht.F,
1876
+ ht.S,
1877
+ ht.v,
1878
+ ht.R
1879
+ ])), i = getOptionsObject(t), l = getTemporalDisambiguationOption(i), c = getTemporalOffsetOption(i, Q), s = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.U, a, s);
1880
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, te, parseDateTimeUtcOffset(a[ht.R]), o.Z, l, c, !0), o.Z, o.U);
1864
1881
  }
1865
1882
  withPlainTime(e = void 0) {
1866
1883
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
1867
- return createTemporalZonedDateTime(void 0 === e ? getStartOfDay(t.Z, o.o) : getEpochNanosecondsFor(t.Z, combineIsoDateAndTimeRecord(o.o, toTemporalTime(e)), h), t.Z, t.U);
1884
+ return createTemporalZonedDateTime(void 0 === e ? getStartOfDay(t.Z, o.o) : getEpochNanosecondsFor(t.Z, combineIsoDateAndTimeRecord(o.o, toTemporalTime(e)), G), t.Z, t.U);
1868
1885
  }
1869
1886
  withTimeZone(e) {
1870
1887
  const t = getInternalSlotOrThrowForZonedDateTime(this);
@@ -1887,39 +1904,39 @@ var Ee = class {
1887
1904
  return differenceTemporalZonedDateTime(-1, getInternalSlotOrThrowForZonedDateTime(this), e, t);
1888
1905
  }
1889
1906
  round(e) {
1890
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
1891
- if (validateTemporalUnitValue(a, c, [x]), validateTemporalRoundingIncrement(n, a === x ? 1 : maximumTemporalDurationRoundingIncrement(a), a === x), a === J && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
1907
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", q);
1908
+ if (validateTemporalUnitValue(a, L, [d]), validateTemporalRoundingIncrement(n, a === d ? 1 : maximumTemporalDurationRoundingIncrement(a), a === d), a === D && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
1892
1909
  const i = getIsoDateTimeForZonedDateTimeSlot(t);
1893
- if (a === x) {
1910
+ if (a === d) {
1894
1911
  const e = getStartOfDay(t.Z, i.o), o = getStartOfDay(t.Z, addDaysToIsoDate(i.o, 1));
1895
1912
  return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, 1 !== compareEpochNanoseconds(o, t.Y) ? addNanosecondsToEpochSeconds(o, -1) : t.Y), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.Z, t.U);
1896
1913
  }
1897
- const l = roundIsoDateTime(i, n, a, r), s = getOffsetNanosecondsForZonedDateTimeSlot(t);
1898
- return createTemporalZonedDateTime(interpretISODateTimeOffset(l.o, l.p, O, s, t.Z, h, f, !0), t.Z, t.U);
1914
+ const l = roundIsoDateTime(i, n, a, r), c = getOffsetNanosecondsForZonedDateTimeSlot(t);
1915
+ return createTemporalZonedDateTime(interpretISODateTimeOffset(l.o, l.p, te, c, t.Z, G, Q, !0), t.Z, t.U);
1899
1916
  }
1900
1917
  equals(e) {
1901
1918
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = toTemporalZonedDateTime(e);
1902
1919
  return !compareEpochNanoseconds(t.Y, o.Y) && timeZoneEquals(t.Z, o.Z) && calendarEquals(t.U, o.U);
1903
1920
  }
1904
1921
  toString(e = void 0) {
1905
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [C, Y], C))(o), i = getRoundingModeOption(o, E), l = getTemporalUnitValuedOption(o, "smallestUnit", void 0), s = ((e) => getOption(e, "timeZoneName", [
1906
- W,
1907
- A,
1908
- z
1909
- ], W))(o);
1910
- validateTemporalUnitValue(l, c), l === L && throwRangeError(invalidField("smallestUnit"));
1911
- const d = toSecondsStringPrecisionRecord(l, r);
1912
- return temporalZonedDateTimeToString(t, d.ye, n, s, a, d.Pe, d.Ee, i);
1922
+ const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [ge, fe], ge))(o), i = getRoundingModeOption(o, le), l = getTemporalUnitValuedOption(o, "smallestUnit"), c = ((e) => getOption(e, "timeZoneName", [
1923
+ Ie,
1924
+ Oe,
1925
+ Fe
1926
+ ], Ie))(o);
1927
+ validateTemporalUnitValue(l, L), l === m && throwRangeError(invalidField("smallestUnit"));
1928
+ const s = toSecondsStringPrecisionRecord(l, r);
1929
+ return temporalZonedDateTimeToString(t, s.ye, n, c, a, s.Pe, s.Ee, i);
1913
1930
  }
1914
1931
  toLocaleString(e = void 0, t = void 0) {
1915
- const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, s, o.Z), r = getInternalSlotOrThrowForDateTimeFormat(n);
1916
- return "iso8601" === o.U || calendarEquals(o.U, r.$e.calendar) || throwRangeError(ue), formatDateTime(n, createTemporalInstant(o.Y));
1932
+ const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, H, o.Z);
1933
+ return "iso8601" === o.U || calendarEquals(o.U, n.$e.calendar) || throwRangeError(M), formatDateTime(n, createTemporalInstant(o.Y));
1917
1934
  }
1918
1935
  toJSON() {
1919
- return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, M, W, C);
1936
+ return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, Te, Ie, ge);
1920
1937
  }
1921
1938
  valueOf() {
1922
- throwTypeError(fe);
1939
+ throwTypeError(Y);
1923
1940
  }
1924
1941
  startOfDay() {
1925
1942
  const e = getInternalSlotOrThrowForZonedDateTime(this);
@@ -1927,10 +1944,10 @@ var Ee = class {
1927
1944
  }
1928
1945
  getTimeZoneTransition(e) {
1929
1946
  const t = getInternalSlotOrThrowForZonedDateTime(this);
1930
- void 0 === e && throwTypeError(Ie);
1931
- const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], u), n = ((e, t, o) => {
1947
+ void 0 === e && throwTypeError(W);
1948
+ const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], q), n = ((e, t, o) => {
1932
1949
  if ("UTC" === e || isOffsetTimeZoneIdentifier(e)) return null;
1933
- const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, Infinity);
1950
+ const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, 1 / 0);
1934
1951
  return -1 === o ? a === n ? null : a > r ? searchTimeZoneTransition(e, a, a - 31536e3, o) || searchTimeZoneTransition(e, r, n, o) : searchTimeZoneTransition(e, a, n, o) : searchTimeZoneTransition(e, a, a > r ? a + 31536e3 : r, o);
1935
1952
  })(t.Z, t.Y, "next" === o ? 1 : -1);
1936
1953
  return null === n ? null : createTemporalZonedDateTime(n, t.Z, t.U);
@@ -1950,9 +1967,9 @@ var Ee = class {
1950
1967
  return createTemporalDateTime(getIsoDateTimeForZonedDateTimeSlot(e), e.U);
1951
1968
  }
1952
1969
  };
1953
- defineStringTag(Ee.prototype, "Temporal.ZonedDateTime"), renameFunction(Ee, "ZonedDateTime");
1954
- const Pe = createNullPrototypeObject(), Re = createNullPrototypeObject(), be = /* @__PURE__ */ new WeakMap();
1955
- var Ze = class {
1970
+ defineStringTag(be.prototype, "Temporal.ZonedDateTime"), renameFunction(be, "ZonedDateTime");
1971
+ const Re = globalThis.Temporal, Ze = createNullPrototypeObject(), Ne = createNullPrototypeObject(), Me = /* @__PURE__ */ new WeakMap();
1972
+ var Ue = class {
1956
1973
  constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, l = 0, c = 0, s = "iso8601") {
1957
1974
  const d = [
1958
1975
  e,
@@ -1968,7 +1985,7 @@ var Ze = class {
1968
1985
  ].map(toIntegerWithTruncation);
1969
1986
  validateString(s);
1970
1987
  const u = canonicalizeCalendar(s);
1971
- isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(ce), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
1988
+ createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
1972
1989
  }
1973
1990
  static from(e, t = void 0) {
1974
1991
  return toTemporalDateTime(e, t);
@@ -2046,16 +2063,16 @@ var Ze = class {
2046
2063
  const o = getInternalSlotOrThrowForPlainDateTime(this);
2047
2064
  validatePartialTemporalObject(e);
2048
2065
  const n = calendarMergeFields(o.U, isoDateTimeToFields(o.U, o.K), prepareCalendarFields(o.U, e, [
2049
- Tt.t,
2050
- Tt.u,
2051
- Tt.P,
2052
- Tt.T,
2053
- Tt.D,
2054
- Tt.I,
2055
- Tt.O,
2056
- Tt.F,
2057
- Tt.S,
2058
- Tt.v
2066
+ ht.t,
2067
+ ht.u,
2068
+ ht.P,
2069
+ ht.T,
2070
+ ht.D,
2071
+ ht.I,
2072
+ ht.O,
2073
+ ht.F,
2074
+ ht.S,
2075
+ ht.v
2059
2076
  ]));
2060
2077
  return createTemporalDateTime(interpretTemporalDateTimeFields(o.U, n, getTemporalOverflowOption(getOptionsObject(t))), o.U);
2061
2078
  }
@@ -2079,28 +2096,28 @@ var Ze = class {
2079
2096
  return differenceTemporalPlainDateTime(-1, getInternalSlotOrThrowForPlainDateTime(this), e, t);
2080
2097
  }
2081
2098
  round(e) {
2082
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2083
- return validateTemporalUnitValue(a, c, [x]), validateTemporalRoundingIncrement(n, a === x ? 1 : maximumTemporalDurationRoundingIncrement(a), a === x), createTemporalDateTime(roundIsoDateTime(t.K, n, a, r), t.U);
2099
+ const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", q);
2100
+ return validateTemporalUnitValue(a, L, [d]), validateTemporalRoundingIncrement(n, a === d ? 1 : maximumTemporalDurationRoundingIncrement(a), a === d), createTemporalDateTime(roundIsoDateTime(t.K, n, a, r), t.U);
2084
2101
  }
2085
2102
  equals(e) {
2086
2103
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e));
2087
2104
  return !compareIsoDateTime(t.K, o.K) && calendarEquals(t.U, o.U);
2088
2105
  }
2089
2106
  toString(e = void 0) {
2090
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, E), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2091
- validateTemporalUnitValue(i, c), i === L && throwRangeError(invalidField("smallestUnit"));
2107
+ const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, le), i = getTemporalUnitValuedOption(o, "smallestUnit");
2108
+ validateTemporalUnitValue(i, L), i === m && throwRangeError(invalidField("smallestUnit"));
2092
2109
  const l = toSecondsStringPrecisionRecord(i, r);
2093
2110
  return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.K, l.Pe, l.Ee, a)), t.U, l.ye, n);
2094
2111
  }
2095
2112
  toLocaleString(e = void 0, t = void 0) {
2096
- return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2113
+ return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, H), this);
2097
2114
  }
2098
2115
  toJSON() {
2099
2116
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2100
- return isoDateTimeToString(e.K, e.U, void 0, M);
2117
+ return isoDateTimeToString(e.K, e.U, void 0, Te);
2101
2118
  }
2102
2119
  valueOf() {
2103
- throwTypeError(fe);
2120
+ throwTypeError(Y);
2104
2121
  }
2105
2122
  toZonedDateTime(e, t = void 0) {
2106
2123
  const o = getInternalSlotOrThrowForPlainDateTime(this), n = toTemporalTimeZoneIdentifier(e), r = getTemporalDisambiguationOption(getOptionsObject(t));
@@ -2114,19 +2131,18 @@ var Ze = class {
2114
2131
  return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).K.p);
2115
2132
  }
2116
2133
  };
2117
- defineStringTag(Ze.prototype, "Temporal.PlainDateTime"), renameFunction(Ze, "PlainDateTime");
2118
- const Ne = /* @__PURE__ */ new WeakMap();
2119
- var Me = class {
2134
+ defineStringTag(Ue.prototype, "Temporal.PlainDateTime"), renameFunction(Ue, "PlainDateTime");
2135
+ const je = /* @__PURE__ */ new WeakMap();
2136
+ var $e = class {
2120
2137
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0) {
2121
- const i = [
2138
+ createTemporalTime(createTimeRecord(...[
2122
2139
  e,
2123
2140
  t,
2124
2141
  o,
2125
2142
  n,
2126
2143
  r,
2127
2144
  a
2128
- ].map(toIntegerWithTruncation);
2129
- isValidTime(...i) || throwRangeError(ce), createTemporalTime(createTimeRecord(...i), this);
2145
+ ].map(toIntegerWithTruncation)), this);
2130
2146
  }
2131
2147
  static from(e, t = void 0) {
2132
2148
  return createTemporalTime(toTemporalTime(e, t));
@@ -2176,54 +2192,54 @@ var Me = class {
2176
2192
  return differenceTemporalPlainTime(-1, getInternalSlotOrThrowForPlainTime(this), e, t);
2177
2193
  }
2178
2194
  round(e) {
2179
- const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, b), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2180
- return validateTemporalUnitValue(a, c), validateTemporalRoundingIncrement(n, maximumTemporalDurationRoundingIncrement(a), !1), createTemporalTime(roundTime(t, n, a, r));
2195
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, de), a = getTemporalUnitValuedOption(o, "smallestUnit", q);
2196
+ return validateTemporalUnitValue(a, L), validateTemporalRoundingIncrement(n, maximumTemporalDurationRoundingIncrement(a), !1), createTemporalTime(roundTime(t, n, a, r));
2181
2197
  }
2182
2198
  equals(e) {
2183
2199
  return !compareTimeRecord(getInternalSlotOrThrowForPlainTime(this), toTemporalTime(e));
2184
2200
  }
2185
2201
  toString(e = void 0) {
2186
- const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, E), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2187
- validateTemporalUnitValue(a, c), a === L && throwRangeError(invalidField("smallestUnit"));
2202
+ const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, le), a = getTemporalUnitValuedOption(o, "smallestUnit");
2203
+ validateTemporalUnitValue(a, L), a === m && throwRangeError(invalidField("smallestUnit"));
2188
2204
  const i = toSecondsStringPrecisionRecord(a, n);
2189
2205
  return timeRecordToString(roundTime(t, i.Pe, i.Ee, r), i.ye);
2190
2206
  }
2191
2207
  toLocaleString(e = void 0, t = void 0) {
2192
- return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2208
+ return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, L), this);
2193
2209
  }
2194
2210
  toJSON() {
2195
2211
  return timeRecordToString(getInternalSlotOrThrowForPlainTime(this));
2196
2212
  }
2197
2213
  valueOf() {
2198
- throwTypeError(fe);
2214
+ throwTypeError(Y);
2199
2215
  }
2200
2216
  };
2201
- defineStringTag(Me.prototype, "Temporal.PlainTime"), renameFunction(Me, "PlainTime");
2202
- const Ue = "\\d{4}|[-+]\\d{6}", je = "0[1-9]|1[0-2]", $e = "0[1-9]|[12]\\d|30|31", Ce = "[01]\\d|2[0-3]", Ye = "[0-5]\\d", We = `(?<a>${Ue})(?<x>-?)(?<b>${je})\\k<x>(?<c>${$e})`, Ae = optionalChain([
2203
- `(?<d>${Ce})`,
2204
- `(?<y>:?)(?<e>${Ye})`,
2217
+ defineStringTag($e.prototype, "Temporal.PlainTime"), renameFunction($e, "PlainTime");
2218
+ const Ce = "\\d{4}|[-+]\\d{6}", Ye = "0[1-9]|1[0-2]", We = "0[1-9]|[12]\\d|30|31", Ae = "[01]\\d|2[0-3]", ze = "[0-5]\\d", ke = `(?<a>${Ce})(?<x>-?)(?<b>${Ye})\\k<x>(?<c>${We})`, Ve = optionalChain([
2219
+ `(?<d>${Ae})`,
2220
+ `(?<y>:?)(?<e>${ze})`,
2205
2221
  "\\k<y>(?<f>[0-5]\\d|60)",
2206
2222
  "[.,](?<g>\\d{1,9})"
2207
- ]), ze = optionalChain([
2208
- `([+-])(${Ce})`,
2209
- `(?<z>:?)(${Ye})`,
2210
- `\\k<z>(${Ye})`,
2223
+ ]), Le = optionalChain([
2224
+ `([+-])(${Ae})`,
2225
+ `(?<z>:?)(${ze})`,
2226
+ `\\k<z>(${ze})`,
2211
2227
  "[.,](\\d{1,9})"
2212
- ]), Ve = optionalChain([
2213
- We,
2214
- `[ tT]${Ae}`,
2215
- `(?<h>${ze})`
2216
- ]), ke = `(?<l>${Ue})-?(?<m>${je})`, He = `(?:--)?(?<m>${je})-?(?<n>${$e})`, xe = `(?<h>${ze})|(?<i>[zZ])`, Le = `([+-])(${Ce})(?::?(${Ye}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, qe = `\\[!?(?<j>${Le})\\]`, Be = join("[a-zA-Z\\d]+", "-"), Je = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Be})\\]`, _e = `(?<k>(${Je})*)`, Xe = RegExp(Je, "g"), Ge = createRegExp(`${optionalChain([
2217
- We,
2218
- `[ tT]${Ae}`,
2219
- xe
2220
- ])}${qe}${_e}`), Ke = createRegExp(`${Ve}(?:${qe})?${_e}`), Qe = createRegExp(`${We}[ tT]${Ae}(?:${xe})(?:${qe})?${_e}`), et = createRegExp(`(${We}[ tT]|[tT]?)${Ae}(?<h>${ze})?(?:${qe})?${_e}`), tt = createRegExp(`(${Ve}|${He})(?:${qe})?${_e}`), ot = createRegExp(`(${Ve}|${ke})(?:${qe})?${_e}`), nt = [createRegExp(`${He}(${qe})?(${Je})*`), createRegExp(`${ke}(${qe})?(${Je})*`)], rt = createRegExp(Le), at = createRegExp(Be), it = createRegExp(ze), lt = /* @__PURE__ */ new WeakMap();
2221
- var ct = class {
2228
+ ]), He = optionalChain([
2229
+ ke,
2230
+ `[ tT]${Ve}`,
2231
+ `(?<h>${Le})`
2232
+ ]), xe = `(?<l>${Ce})-?(?<m>${Ye})`, Be = `(?:--)?(?<m>${Ye})-?(?<n>${We})`, qe = `(?<h>${Le})|(?<i>[zZ])`, Je = `([+-])(${Ae})(?::?(${ze}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, _e = `\\[!?(?<j>${Je})\\]`, Xe = join("[a-zA-Z\\d]+", "-"), Ge = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Xe})\\]`, Ke = `(?<k>(${Ge})*)`, Qe = RegExp(Ge, "g"), et = createRegExp(`${optionalChain([
2233
+ ke,
2234
+ `[ tT]${Ve}`,
2235
+ qe
2236
+ ])}${_e}${Ke}`), tt = createRegExp(`${He}(?:${_e})?${Ke}`), ot = createRegExp(`${ke}[ tT]${Ve}(?:${qe})(?:${_e})?${Ke}`), nt = createRegExp(`(${ke}[ tT]|[tT]?)${Ve}(?<h>${Le})?(?:${_e})?${Ke}`), rt = createRegExp(`(${He}|${Be})(?:${_e})?${Ke}`), at = createRegExp(`(${He}|${xe})(?:${_e})?${Ke}`), it = [createRegExp(`${Be}(${_e})?(${Ge})*`), createRegExp(`${xe}(${_e})?(${Ge})*`)], lt = createRegExp(Je), ct = createRegExp(Xe), st = createRegExp(Le), dt = /* @__PURE__ */ new WeakMap();
2237
+ var mt = class {
2222
2238
  constructor(e, t, o = "iso8601", n = 1972) {
2223
2239
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2224
2240
  validateString(o);
2225
- const i = canonicalizeCalendar(o), l = toIntegerWithTruncation(n);
2226
- isValidIsoDate(l, r, a) || throwRangeError(ce), createTemporalMonthDay(createIsoDateRecord(l, r, a), i, this);
2241
+ const i = canonicalizeCalendar(o);
2242
+ createTemporalMonthDay(createIsoDateRecord(toIntegerWithTruncation(n), r, a), i, this);
2227
2243
  }
2228
2244
  static from(e, t = void 0) {
2229
2245
  return toTemporalMonthDay(e, t);
@@ -2241,11 +2257,11 @@ var ct = class {
2241
2257
  }
2242
2258
  with(e, t = void 0) {
2243
2259
  const o = getInternalSlotOrThrowForPlainMonthDay(this);
2244
- return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.U, calendarMergeFields(o.U, isoDateToFields(o.U, o.o, m), prepareCalendarFields(o.U, e, [
2245
- Tt.t,
2246
- Tt.u,
2247
- Tt.P,
2248
- Tt.T
2260
+ return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.U, calendarMergeFields(o.U, isoDateToFields(o.U, o.o, B), prepareCalendarFields(o.U, e, [
2261
+ ht.t,
2262
+ ht.u,
2263
+ ht.P,
2264
+ ht.T
2249
2265
  ])), getTemporalOverflowOption(getOptionsObject(t))), o.U);
2250
2266
  }
2251
2267
  equals(e) {
@@ -2256,27 +2272,27 @@ var ct = class {
2256
2272
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2257
2273
  }
2258
2274
  toLocaleString(e = void 0, t = void 0) {
2259
- return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2275
+ return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, V), this);
2260
2276
  }
2261
2277
  toJSON() {
2262
- return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), M);
2278
+ return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), Te);
2263
2279
  }
2264
2280
  valueOf() {
2265
- throwTypeError(fe);
2281
+ throwTypeError(Y);
2266
2282
  }
2267
2283
  toPlainDate(e) {
2268
2284
  const t = getInternalSlotOrThrowForPlainMonthDay(this);
2269
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, m), prepareCalendarFields(t.U, e, [Tt.t], [])), D), t.U);
2285
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, B), prepareCalendarFields(t.U, e, [ht.t], [])), _), t.U);
2270
2286
  }
2271
2287
  };
2272
- defineStringTag(ct.prototype, "Temporal.PlainMonthDay"), renameFunction(ct, "PlainMonthDay");
2273
- const st = /* @__PURE__ */ new WeakMap();
2274
- var dt = class {
2288
+ defineStringTag(mt.prototype, "Temporal.PlainMonthDay"), renameFunction(mt, "PlainMonthDay");
2289
+ const ut = /* @__PURE__ */ new WeakMap();
2290
+ var Tt = class {
2275
2291
  constructor(e, t, o = "iso8601", n = 1) {
2276
2292
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2277
2293
  validateString(o);
2278
- const i = canonicalizeCalendar(o), l = toIntegerWithTruncation(n);
2279
- isValidIsoDate(r, a, l) || throwRangeError(ce), createTemporalYearMonth(createIsoDateRecord(r, a, l), i, this);
2294
+ const i = canonicalizeCalendar(o);
2295
+ createTemporalYearMonth(createIsoDateRecord(r, a, toIntegerWithTruncation(n)), i, this);
2280
2296
  }
2281
2297
  static from(e, t = void 0) {
2282
2298
  return toTemporalYearMonth(e, t);
@@ -2317,10 +2333,10 @@ var dt = class {
2317
2333
  with(e, t = void 0) {
2318
2334
  const o = getInternalSlotOrThrowForPlainYearMonth(this);
2319
2335
  validatePartialTemporalObject(e);
2320
- const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, d), prepareCalendarFields(o.U, e, [
2321
- Tt.t,
2322
- Tt.u,
2323
- Tt.P
2336
+ const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, x), prepareCalendarFields(o.U, e, [
2337
+ ht.t,
2338
+ ht.u,
2339
+ ht.P
2324
2340
  ]));
2325
2341
  return createTemporalYearMonth(calendarYearMonthFromFields(o.U, n, getTemporalOverflowOption(getOptionsObject(t))), o.U);
2326
2342
  }
@@ -2344,27 +2360,27 @@ var dt = class {
2344
2360
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2345
2361
  }
2346
2362
  toLocaleString(e = void 0, t = void 0) {
2347
- return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2363
+ return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, V), this);
2348
2364
  }
2349
2365
  toJSON() {
2350
- return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), M);
2366
+ return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), Te);
2351
2367
  }
2352
2368
  valueOf() {
2353
- throwTypeError(fe);
2369
+ throwTypeError(Y);
2354
2370
  }
2355
2371
  toPlainDate(e) {
2356
2372
  const t = getInternalSlotOrThrowForPlainYearMonth(this);
2357
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, d), prepareCalendarFields(t.U, e, [Tt.T], [])), D), t.U);
2373
+ return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, x), prepareCalendarFields(t.U, e, [ht.T], [])), _), t.U);
2358
2374
  }
2359
2375
  };
2360
- defineStringTag(dt.prototype, "Temporal.PlainYearMonth"), renameFunction(dt, "PlainYearMonth");
2361
- const mt = /* @__PURE__ */ new WeakMap();
2362
- var ut = class {
2376
+ defineStringTag(Tt.prototype, "Temporal.PlainYearMonth"), renameFunction(Tt, "PlainYearMonth");
2377
+ const Dt = /* @__PURE__ */ new WeakMap();
2378
+ var pt = class {
2363
2379
  constructor(e, t, o, n = "iso8601") {
2364
2380
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2365
2381
  validateString(n);
2366
2382
  const l = canonicalizeCalendar(n);
2367
- isValidIsoDate(r, a, i) || throwRangeError(ce), createTemporalDate(createIsoDateRecord(r, a, i), l, this);
2383
+ createTemporalDate(createIsoDateRecord(r, a, i), l, this);
2368
2384
  }
2369
2385
  static from(e, t = void 0) {
2370
2386
  return toTemporalDate(e, t);
@@ -2422,11 +2438,11 @@ var ut = class {
2422
2438
  }
2423
2439
  toPlainYearMonth() {
2424
2440
  const e = getInternalSlotOrThrowForPlainDate(this);
2425
- return createTemporalYearMonth(calendarYearMonthFromFields(e.U, isoDateToFields(e.U, e.o, l), D), e.U);
2441
+ return createTemporalYearMonth(calendarYearMonthFromFields(e.U, isoDateToFields(e.U, e.o, V), _), e.U);
2426
2442
  }
2427
2443
  toPlainMonthDay() {
2428
2444
  const e = getInternalSlotOrThrowForPlainDate(this);
2429
- return createTemporalMonthDay(calendarMonthDayFromFields(e.U, isoDateToFields(e.U, e.o, l), D), e.U);
2445
+ return createTemporalMonthDay(calendarMonthDayFromFields(e.U, isoDateToFields(e.U, e.o, V), _), e.U);
2430
2446
  }
2431
2447
  add(e, t = void 0) {
2432
2448
  return addDurationToDate(1, getInternalSlotOrThrowForPlainDate(this), e, t);
@@ -2437,11 +2453,11 @@ var ut = class {
2437
2453
  with(e, t = void 0) {
2438
2454
  const o = getInternalSlotOrThrowForPlainDate(this);
2439
2455
  validatePartialTemporalObject(e);
2440
- const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, l), prepareCalendarFields(o.U, e, [
2441
- Tt.t,
2442
- Tt.u,
2443
- Tt.P,
2444
- Tt.T
2456
+ const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, V), prepareCalendarFields(o.U, e, [
2457
+ ht.t,
2458
+ ht.u,
2459
+ ht.P,
2460
+ ht.T
2445
2461
  ])), r = getTemporalOverflowOption(getOptionsObject(t));
2446
2462
  return createTemporalDate(calendarDateFromFields(o.U, n, r), o.U);
2447
2463
  }
@@ -2469,23 +2485,23 @@ var ut = class {
2469
2485
  const t = e.timeZone;
2470
2486
  void 0 === t ? n = toTemporalTimeZoneIdentifier(e) : (n = toTemporalTimeZoneIdentifier(t), o = e.plainTime);
2471
2487
  } else n = toTemporalTimeZoneIdentifier(e);
2472
- return createTemporalZonedDateTime(void 0 === o ? getStartOfDay(n, t.o) : getEpochNanosecondsFor(n, validateIsoDateTime(combineIsoDateAndTimeRecord(t.o, toTemporalTime(o))), h), n, t.U);
2488
+ return createTemporalZonedDateTime(void 0 === o ? getStartOfDay(n, t.o) : getEpochNanosecondsFor(n, validateIsoDateTime(combineIsoDateAndTimeRecord(t.o, toTemporalTime(o))), G), n, t.U);
2473
2489
  }
2474
2490
  toString(e = void 0) {
2475
2491
  return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2476
2492
  }
2477
2493
  toLocaleString(e = void 0, t = void 0) {
2478
- return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2494
+ return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, V), this);
2479
2495
  }
2480
2496
  toJSON() {
2481
- return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), M);
2497
+ return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), Te);
2482
2498
  }
2483
2499
  valueOf() {
2484
- throwTypeError(fe);
2500
+ throwTypeError(Y);
2485
2501
  }
2486
2502
  };
2487
- defineStringTag(ut.prototype, "Temporal.PlainDate"), renameFunction(ut, "PlainDate");
2488
- const Tt = {
2503
+ defineStringTag(pt.prototype, "Temporal.PlainDate"), renameFunction(pt, "PlainDate");
2504
+ const ht = {
2489
2505
  ne: "era",
2490
2506
  re: "eraYear",
2491
2507
  t: "year",
@@ -2500,41 +2516,41 @@ const Tt = {
2500
2516
  v: "nanosecond",
2501
2517
  R: "offset",
2502
2518
  Z: "timeZone"
2503
- }, Dt = [
2504
- Tt.ne,
2505
- Tt.re,
2506
- Tt.t,
2507
- Tt.u,
2508
- Tt.P,
2509
- Tt.T,
2510
- Tt.D,
2511
- Tt.I,
2512
- Tt.O,
2513
- Tt.F,
2514
- Tt.S,
2515
- Tt.v,
2516
- Tt.R,
2517
- Tt.Z
2518
- ], pt = {
2519
- [Tt.ne]: [toString],
2520
- [Tt.re]: [toIntegerWithTruncation],
2521
- [Tt.t]: [toIntegerWithTruncation],
2522
- [Tt.u]: [toPositiveIntegerWithTruncation],
2523
- [Tt.P]: [(e) => createMonthCode(...parseMonthCode(e))],
2524
- [Tt.T]: [toPositiveIntegerWithTruncation],
2525
- [Tt.D]: [toIntegerWithTruncation, 0],
2526
- [Tt.I]: [toIntegerWithTruncation, 0],
2527
- [Tt.O]: [toIntegerWithTruncation, 0],
2528
- [Tt.F]: [toIntegerWithTruncation, 0],
2529
- [Tt.S]: [toIntegerWithTruncation, 0],
2530
- [Tt.v]: [toIntegerWithTruncation, 0],
2531
- [Tt.R]: [(e) => {
2519
+ }, gt = [
2520
+ ht.ne,
2521
+ ht.re,
2522
+ ht.t,
2523
+ ht.u,
2524
+ ht.P,
2525
+ ht.T,
2526
+ ht.D,
2527
+ ht.I,
2528
+ ht.O,
2529
+ ht.F,
2530
+ ht.S,
2531
+ ht.v,
2532
+ ht.R,
2533
+ ht.Z
2534
+ ], ft = {
2535
+ [ht.ne]: [toString],
2536
+ [ht.re]: [toIntegerWithTruncation],
2537
+ [ht.t]: [toIntegerWithTruncation],
2538
+ [ht.u]: [toPositiveIntegerWithTruncation],
2539
+ [ht.P]: [(e) => createMonthCode(...parseMonthCode(e))],
2540
+ [ht.T]: [toPositiveIntegerWithTruncation],
2541
+ [ht.D]: [toIntegerWithTruncation, 0],
2542
+ [ht.I]: [toIntegerWithTruncation, 0],
2543
+ [ht.O]: [toIntegerWithTruncation, 0],
2544
+ [ht.F]: [toIntegerWithTruncation, 0],
2545
+ [ht.S]: [toIntegerWithTruncation, 0],
2546
+ [ht.v]: [toIntegerWithTruncation, 0],
2547
+ [ht.R]: [(e) => {
2532
2548
  const t = toPrimitive(e);
2533
2549
  return validateString(t), parseDateTimeUtcOffset(t), t;
2534
2550
  }],
2535
- [Tt.Z]: [toTemporalTimeZoneIdentifier]
2536
- }, ht = /* @__PURE__ */ new WeakMap(), gt = signTimeDuration;
2537
- var ft = class {
2551
+ [ht.Z]: [toTemporalTimeZoneIdentifier]
2552
+ }, It = /* @__PURE__ */ new WeakMap(), Ot = signTimeDuration;
2553
+ var Ft = class {
2538
2554
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, l = 0, c = 0, s = 0) {
2539
2555
  createTemporalDuration(createTemporalDurationSlot([
2540
2556
  e,
@@ -2557,37 +2573,37 @@ var ft = class {
2557
2573
  if (!n.some((e, t) => r[t] !== e)) return 0;
2558
2574
  const i = defaultTemporalLargestUnit(n), l = defaultTemporalLargestUnit(r), c = toInternalDurationRecord(n), s = toInternalDurationRecord(r);
2559
2575
  let d, m;
2560
- return a.Re && (isDateUnit(i) || isDateUnit(l)) ? compareEpochNanoseconds(addZonedDateTime(a.Re, c, D), addZonedDateTime(a.Re, s, D)) : (isCalendarUnit(i) || isCalendarUnit(l) ? (a.be || throwRangeError(missingField("relativeTo")), d = dateDurationDays(c.A, a.be), m = dateDurationDays(s.A, a.be)) : (d = n[K], m = r[K]), ve(add24HourDaysToTimeDuration(c.p, d), add24HourDaysToTimeDuration(s.p, m)));
2576
+ return a.be && (isDateUnit(i) || isDateUnit(l)) ? compareEpochNanoseconds(addZonedDateTime(a.be, c, _), addZonedDateTime(a.be, s, _)) : (isCalendarUnit(i) || isCalendarUnit(l) ? (a.Re || throwRangeError(missingField("relativeTo")), d = dateDurationDays(c.A, a.Re), m = dateDurationDays(s.A, a.Re)) : (d = n[f], m = r[f]), Pe(add24HourDaysToTimeDuration(c.p, d), add24HourDaysToTimeDuration(s.p, m)));
2561
2577
  }
2562
2578
  get years() {
2563
- return getInternalSlotOrThrowForDuration(this)[_];
2579
+ return getInternalSlotOrThrowForDuration(this)[p];
2564
2580
  }
2565
2581
  get months() {
2566
- return getInternalSlotOrThrowForDuration(this)[X];
2582
+ return getInternalSlotOrThrowForDuration(this)[h];
2567
2583
  }
2568
2584
  get weeks() {
2569
- return getInternalSlotOrThrowForDuration(this)[G];
2585
+ return getInternalSlotOrThrowForDuration(this)[g];
2570
2586
  }
2571
2587
  get days() {
2572
- return getInternalSlotOrThrowForDuration(this)[K];
2588
+ return getInternalSlotOrThrowForDuration(this)[f];
2573
2589
  }
2574
2590
  get hours() {
2575
- return getInternalSlotOrThrowForDuration(this)[Q];
2591
+ return getInternalSlotOrThrowForDuration(this)[I];
2576
2592
  }
2577
2593
  get minutes() {
2578
- return getInternalSlotOrThrowForDuration(this)[ee];
2594
+ return getInternalSlotOrThrowForDuration(this)[O];
2579
2595
  }
2580
2596
  get seconds() {
2581
- return getInternalSlotOrThrowForDuration(this)[te];
2597
+ return getInternalSlotOrThrowForDuration(this)[F];
2582
2598
  }
2583
2599
  get milliseconds() {
2584
- return getInternalSlotOrThrowForDuration(this)[oe];
2600
+ return getInternalSlotOrThrowForDuration(this)[S];
2585
2601
  }
2586
2602
  get microseconds() {
2587
- return getInternalSlotOrThrowForDuration(this)[ne];
2603
+ return getInternalSlotOrThrowForDuration(this)[w];
2588
2604
  }
2589
2605
  get nanoseconds() {
2590
- return getInternalSlotOrThrowForDuration(this)[re];
2606
+ return getInternalSlotOrThrowForDuration(this)[v];
2591
2607
  }
2592
2608
  get sign() {
2593
2609
  return durationSign(getInternalSlotOrThrowForDuration(this));
@@ -2613,82 +2629,77 @@ var ft = class {
2613
2629
  }
2614
2630
  round(e) {
2615
2631
  const t = getInternalSlotOrThrowForDuration(this), o = getRoundToOptionsObject(e);
2616
- let n = getTemporalUnitValuedOption(o, "largestUnit", void 0);
2617
- const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, b);
2618
- let l = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2619
- validateTemporalUnitValue(l, s);
2620
- const c = void 0 !== l;
2621
- l ??= J;
2622
- const d = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(d, l), u = void 0 !== n;
2623
- if (void 0 !== n && "auto" !== n || (n = m), (!c && !u || n > l) && throwRangeError(De), isDateUnit(l) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(l), !1), a > 1 && n !== l && isDateUnit(l) && throwRangeError(De), r.Re) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Re, createZonedDateTimeSlot(addZonedDateTime(r.Re, toInternalDurationRecord(t), D), r.Re.Z, r.Re.U), n, a, l, i), isDateUnit(n) ? L : n));
2624
- if (r.be) {
2632
+ let n = getTemporalUnitValuedOption(o, "largestUnit");
2633
+ const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, de);
2634
+ let l = getTemporalUnitValuedOption(o, "smallestUnit");
2635
+ validateTemporalUnitValue(l, H);
2636
+ const c = defaultTemporalLargestUnit(t), s = void 0 === l && void 0 === n;
2637
+ if (l ??= D, void 0 !== n && "auto" !== n || (n = largerOfTwoTemporalUnits(c, l)), (s || n > l) && throwRangeError(U), isDateUnit(l) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(l), !1), a > 1 && n !== l && isDateUnit(l) && throwRangeError(U), r.be) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.be, createZonedDateTimeSlot(addZonedDateTime(r.be, toInternalDurationRecord(t), _), r.be.Z, r.be.U), n, a, l, i), isDateUnit(n) ? m : n));
2638
+ if (r.Re) {
2625
2639
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
2626
- return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.be.U, r.be.o, adjustDateDurationRecord(e.A, o.X), D), o), r.be.U, n, a, l, i), n));
2640
+ return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.Re.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.Re.U, r.Re.o, adjustDateDurationRecord(e.A, o.X), _), o), r.Re.U, n, a, l, i), n));
2627
2641
  }
2628
- (isCalendarUnit(d) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
2629
- const T = toInternalDurationRecordWith24HourDays(t);
2630
- return createTemporalDuration(temporalDurationFromInternal(l === x ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(T.p, a, i)[0]), we) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(T.p, a, l, i)), n));
2642
+ (isCalendarUnit(c) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
2643
+ const u = toInternalDurationRecordWith24HourDays(t);
2644
+ return createTemporalDuration(temporalDurationFromInternal(l === d ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(u.p, a, i)[0]), ye) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(u.p, a, l, i)), n));
2631
2645
  }
2632
2646
  total(e) {
2633
2647
  const t = getInternalSlotOrThrowForDuration(this);
2634
- void 0 === e && throwTypeError(Ie);
2635
- const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", u);
2636
- if (validateTemporalUnitValue(r, s), n.Re) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.Y, e.Y), o))(n.Re, createZonedDateTimeSlot(addZonedDateTime(n.Re, toInternalDurationRecord(t), D), n.Re.Z, n.Re.U), r);
2637
- if (n.be) {
2648
+ void 0 === e && throwTypeError(W);
2649
+ const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", q);
2650
+ if (validateTemporalUnitValue(r, H), n.be) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.Y, e.Y), o))(n.be, createZonedDateTimeSlot(addZonedDateTime(n.be, toInternalDurationRecord(t), _), n.be.Z, n.be.U), r);
2651
+ if (n.Re) {
2638
2652
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
2639
- return ((e, t, o, n) => compareIsoDateTime(e, t) ? (validateIsoDateTime(e), validateIsoDateTime(t), totalRelativeDuration(differenceISODateTime(e, t, o, n), getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, 0, n)) : 0)(combineIsoDateAndTimeRecord(n.be.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.be.U, n.be.o, adjustDateDurationRecord(e.A, o.X), D), o), n.be.U, r);
2653
+ return ((e, t, o, n) => compareIsoDateTime(e, t) ? (validateIsoDateTime(e), validateIsoDateTime(t), totalRelativeDuration(differenceISODateTime(e, t, o, n), getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, 0, n)) : 0)(combineIsoDateAndTimeRecord(n.Re.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.Re.U, n.Re.o, adjustDateDurationRecord(e.A, o.X), _), o), n.Re.U, r);
2640
2654
  }
2641
2655
  return (isCalendarUnit(defaultTemporalLargestUnit(t)) || isCalendarUnit(r)) && throwRangeError(missingField("relativeTo")), totalTimeDuration(toInternalDurationRecordWith24HourDays(t).p, r);
2642
2656
  }
2643
2657
  toString(e = void 0) {
2644
- const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, E), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2645
- validateTemporalUnitValue(a, c), a !== L && a !== q || throwRangeError(disallowedUnit(a));
2658
+ const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, le), a = getTemporalUnitValuedOption(o, "smallestUnit");
2659
+ validateTemporalUnitValue(a, L), a !== m && a !== u || throwRangeError(disallowedUnit(a));
2646
2660
  const i = toSecondsStringPrecisionRecord(a, n);
2647
- if (i.Ee === J && 1 === i.Pe) return temporalDurationToString(t, i.ye);
2661
+ if (i.Ee === D && 1 === i.Pe) return temporalDurationToString(t, i.ye);
2648
2662
  const l = toInternalDurationRecord(t);
2649
- return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(l.A, roundTimeDuration(l.p, i.Pe, i.Ee, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), B)), i.ye);
2663
+ return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(l.A, roundTimeDuration(l.p, i.Pe, i.Ee, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), T)), i.ye);
2650
2664
  }
2651
2665
  toJSON() {
2652
2666
  return temporalDurationToString(getInternalSlotOrThrowForDuration(this));
2653
2667
  }
2654
2668
  toLocaleString(e = void 0, t = void 0) {
2655
- const o = getInternalSlotOrThrowForDuration(this), n = createNullPrototypeObject();
2656
- return ie.map((e, t) => {
2657
- n[e] = o[t];
2658
- }), new Intl.DurationFormat(e, t).format(n);
2669
+ return new A(e, t).format(durationRecordToDurationLikeObject(getInternalSlotOrThrowForDuration(this)));
2659
2670
  }
2660
2671
  valueOf() {
2661
- throwTypeError(fe);
2672
+ throwTypeError(Y);
2662
2673
  }
2663
2674
  };
2664
- defineStringTag(ft.prototype, "Temporal.Duration"), renameFunction(ft, "Duration");
2665
- const It = {
2666
- [w]: Math.ceil,
2667
- [v]: Math.floor,
2668
- [y]: roundExpand,
2669
- [E]: Math.trunc,
2670
- [P]: roundHalfCeil,
2671
- [R]: roundHalfFloor,
2672
- [b]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
2673
- [Z]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
2674
- [N]: roundHalfEven
2675
- }, Ot = {
2676
- [w]: Math.ceil,
2677
- [v]: Math.floor,
2678
- [y]: Math.ceil,
2679
- [E]: Math.floor,
2680
- [P]: roundHalfCeil,
2681
- [R]: roundHalfFloor,
2682
- [b]: roundHalfCeil,
2683
- [Z]: roundHalfFloor,
2684
- [N]: roundHalfEven
2685
- }, Ft = globalThis.Intl.DateTimeFormat, St = /* @__PURE__ */ new WeakMap(), wt = [
2675
+ defineStringTag(Ft.prototype, "Temporal.Duration"), renameFunction(Ft, "Duration");
2676
+ const St = {
2677
+ [re]: Math.ceil,
2678
+ [ae]: Math.floor,
2679
+ [ie]: roundExpand,
2680
+ [le]: Math.trunc,
2681
+ [ce]: roundHalfCeil,
2682
+ [se]: roundHalfFloor,
2683
+ [de]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
2684
+ [me]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
2685
+ [ue]: roundHalfEven
2686
+ }, wt = {
2687
+ [re]: Math.ceil,
2688
+ [ae]: Math.floor,
2689
+ [ie]: Math.ceil,
2690
+ [le]: Math.floor,
2691
+ [ce]: roundHalfCeil,
2692
+ [se]: roundHalfFloor,
2693
+ [de]: roundHalfCeil,
2694
+ [me]: roundHalfFloor,
2695
+ [ue]: roundHalfEven
2696
+ }, vt = globalThis.Intl.DateTimeFormat, yt = /* @__PURE__ */ new WeakMap(), Pt = [
2686
2697
  "year",
2687
2698
  "month",
2688
2699
  "day",
2689
2700
  "weekday",
2690
2701
  "dateStyle"
2691
- ], vt = [
2702
+ ], Et = [
2692
2703
  "hour",
2693
2704
  "minute",
2694
2705
  "second",
@@ -2696,49 +2707,47 @@ const It = {
2696
2707
  "dayPeriod",
2697
2708
  "timeStyle"
2698
2709
  ];
2699
- var yt = class {
2700
- Ae(e) {
2701
- return formatDateTime(this, e);
2710
+ var bt = class {
2711
+ ke(e) {
2712
+ return formatDateTime(getInternalSlotOrThrowForDateTimeFormat(this), e);
2702
2713
  }
2703
- }, Et = class {
2714
+ }, Rt = class {
2704
2715
  constructor(e, t) {
2705
- createDateTimeFormat(e, t, s, void 0, this);
2716
+ yt.set(this, createDateTimeFormat(e, t, H, void 0));
2706
2717
  }
2707
2718
  get format() {
2708
- return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ze ||= yt.prototype.Ae.bind(this), "name", { value: "" });
2719
+ return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ze ||= bt.prototype.ke.bind(this), "name", { value: "" });
2709
2720
  }
2710
2721
  formatToParts(e) {
2711
2722
  return ((e, t) => {
2712
- const [o, n] = handleDateTimeValue(getInternalSlotOrThrowForDateTimeFormat(e), t);
2723
+ const [o, n] = handleDateTimeValue(e, t);
2713
2724
  return o.formatToParts(n);
2714
- })(this, e);
2725
+ })(getInternalSlotOrThrowForDateTimeFormat(this), e);
2715
2726
  }
2716
2727
  formatRange(e, t) {
2717
- return void 0 !== e && void 0 !== t || throwTypeError(he), ((e, t, o) => {
2718
- const n = getInternalSlotOrThrowForDateTimeFormat(e);
2728
+ return void 0 !== e && void 0 !== t || throwTypeError($), ((e, t, o) => {
2719
2729
  validateSameTemporalType(t, o);
2720
- const [r, a] = handleDateTimeValue(n, t);
2721
- return r.formatRange(a, handleDateTimeValue(n, o)[1]);
2722
- })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
2730
+ const [n, r] = handleDateTimeValue(e, t);
2731
+ return n.formatRange(r, handleDateTimeValue(e, o)[1]);
2732
+ })(getInternalSlotOrThrowForDateTimeFormat(this), toDateTimeFormattable(e), toDateTimeFormattable(t));
2723
2733
  }
2724
2734
  formatRangeToParts(e, t) {
2725
- return void 0 !== e && void 0 !== t || throwTypeError(he), ((e, t, o) => {
2726
- const n = getInternalSlotOrThrowForDateTimeFormat(e);
2735
+ return void 0 !== e && void 0 !== t || throwTypeError($), ((e, t, o) => {
2727
2736
  validateSameTemporalType(t, o);
2728
- const [r, a] = handleDateTimeValue(n, t);
2729
- return r.formatRangeToParts(a, handleDateTimeValue(n, o)[1]);
2730
- })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
2737
+ const [n, r] = handleDateTimeValue(e, t);
2738
+ return n.formatRangeToParts(r, handleDateTimeValue(e, o)[1]);
2739
+ })(getInternalSlotOrThrowForDateTimeFormat(this), toDateTimeFormattable(e), toDateTimeFormattable(t));
2731
2740
  }
2732
2741
  resolvedOptions() {
2733
2742
  return getInternalSlotOrThrowForDateTimeFormat(this).Ze.resolvedOptions();
2734
2743
  }
2735
2744
  };
2736
- const Pt = Object.getOwnPropertyDescriptors(Ft), Rt = Et.prototype;
2737
- Pt.prototype.value = Rt;
2738
- for (const e of ["formatRange", "formatRangeToParts"]) Ft.prototype[e] || delete Rt[e];
2739
- Object.defineProperties(DateTimeFormat, Pt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
2740
- const bt = /* @__PURE__ */ new WeakMap();
2741
- var Zt = class {
2745
+ const Zt = Object.getOwnPropertyDescriptors(vt), Nt = Rt.prototype;
2746
+ Zt.prototype.value = Nt;
2747
+ for (const e of ["formatRange", "formatRangeToParts"]) vt.prototype[e] || delete Nt[e];
2748
+ Object.defineProperties(DateTimeFormat, Zt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
2749
+ const Mt = /* @__PURE__ */ new WeakMap();
2750
+ var Ut = class {
2742
2751
  constructor(e) {
2743
2752
  createTemporalInstant(validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e))), this);
2744
2753
  }
@@ -2773,43 +2782,41 @@ var Zt = class {
2773
2782
  return differenceTemporalInstant(-1, getInternalSlotOrThrowForInstant(this), e, t);
2774
2783
  }
2775
2784
  round(e) {
2776
- const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, b), i = getTemporalUnitValuedOption(o, "smallestUnit", u);
2777
- return validateTemporalUnitValue(i, c), validateTemporalRoundingIncrement(n, a / nanosecondsForTimeUnit(i), !0), createTemporalInstant(roundTemporalInstant(t.Y, n, i, r));
2785
+ const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, de), i = getTemporalUnitValuedOption(o, "smallestUnit", q);
2786
+ return validateTemporalUnitValue(i, L), validateTemporalRoundingIncrement(n, a / nanosecondsForTimeUnit(i), !0), createTemporalInstant(roundTemporalInstant(t.Y, n, i, r));
2778
2787
  }
2779
2788
  equals(e) {
2780
2789
  return !compareEpochNanoseconds(getInternalSlotOrThrowForInstant(this).Y, getInternalSlotOrThrowForInstant(toTemporalInstant$1(e)).Y);
2781
2790
  }
2782
2791
  toString(e = void 0) {
2783
- const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, E), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
2784
- validateTemporalUnitValue(a, c), a === L && throwRangeError(invalidField("smallestUnit"));
2785
- const l = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), s = toSecondsStringPrecisionRecord(a, n);
2786
- return temporalInstantToString(roundTemporalInstant(t.Y, s.Pe, s.Ee, r), l, s.ye);
2792
+ const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, le), a = getTemporalUnitValuedOption(o, "smallestUnit"), i = o.timeZone;
2793
+ validateTemporalUnitValue(a, L), a === m && throwRangeError(invalidField("smallestUnit"));
2794
+ const l = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), c = toSecondsStringPrecisionRecord(a, n);
2795
+ return temporalInstantToString(roundTemporalInstant(t.Y, c.Pe, c.Ee, r), l, c.ye);
2787
2796
  }
2788
2797
  toLocaleString(e = void 0, t = void 0) {
2789
- return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2798
+ return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, H), this);
2790
2799
  }
2791
2800
  toJSON() {
2792
2801
  return temporalInstantToString(getInternalSlotOrThrowForInstant(this).Y);
2793
2802
  }
2794
2803
  valueOf() {
2795
- throwTypeError(fe);
2804
+ throwTypeError(Y);
2796
2805
  }
2797
2806
  toZonedDateTimeISO(e) {
2798
2807
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).Y, toTemporalTimeZoneIdentifier(e), "iso8601");
2799
2808
  }
2800
2809
  };
2801
- defineStringTag(Zt.prototype, "Temporal.Instant"), renameFunction(Zt, "Instant");
2802
- const Nt = class {
2810
+ defineStringTag(Ut.prototype, "Temporal.Instant"), renameFunction(Ut, "Instant");
2811
+ const jt = class {
2803
2812
  toTemporalInstant() {
2804
2813
  const e = Date.prototype.valueOf.call(this);
2805
2814
  return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
2806
2815
  }
2807
- }.prototype.toTemporalInstant, Mt = Object.getOwnPropertyDescriptors(globalThis.Intl);
2808
- Mt.DateTimeFormat.value = DateTimeFormat;
2809
- const Ut = {};
2810
- Object.defineProperties(Ut, Mt);
2811
- let jt, $t = 0, Ct = -Infinity;
2812
- const Yt = {
2816
+ }.prototype.toTemporalInstant, $t = {}, Ct = Object.getOwnPropertyDescriptors(globalThis.Intl);
2817
+ Ct.DateTimeFormat.value = DateTimeFormat, Ct.DurationFormat && (Ct.DurationFormat.value = k), Object.defineProperties($t, Ct);
2818
+ let Yt, Wt = 0, At = -1 / 0;
2819
+ const zt = {
2813
2820
  timeZoneId: () => systemTimeZoneIdentifier(),
2814
2821
  instant: () => createTemporalInstant(systemUtcEpochNanoseconds()),
2815
2822
  plainDateTimeISO: (e = void 0) => createTemporalDateTime(systemDateTime(e), "iso8601"),
@@ -2817,17 +2824,17 @@ const Yt = {
2817
2824
  plainDateISO: (e = void 0) => createTemporalDate(systemDateTime(e).o, "iso8601"),
2818
2825
  plainTimeISO: (e = void 0) => createTemporalTime(systemDateTime(e).p)
2819
2826
  };
2820
- defineStringTag(Yt, "Temporal.Now"), makePropertiesNonEnumerable(Yt);
2821
- const Wt = {
2822
- Instant: Zt,
2823
- PlainDateTime: Ze,
2824
- PlainDate: ut,
2825
- PlainTime: Me,
2826
- PlainYearMonth: dt,
2827
- PlainMonthDay: ct,
2828
- Duration: ft,
2829
- ZonedDateTime: Ee,
2830
- Now: Yt
2827
+ defineStringTag(zt, "Temporal.Now"), makePropertiesNonEnumerable(zt);
2828
+ const kt = {
2829
+ Instant: Ut,
2830
+ PlainDateTime: Ue,
2831
+ PlainDate: pt,
2832
+ PlainTime: $e,
2833
+ PlainYearMonth: Tt,
2834
+ PlainMonthDay: mt,
2835
+ Duration: Ft,
2836
+ ZonedDateTime: be,
2837
+ Now: zt
2831
2838
  };
2832
- defineStringTag(Wt, "Temporal"), makePropertiesNonEnumerable(Wt);
2833
- export { defineNonEnumerableProperty as a, Nt as i, setSystemTimeZoneIdCacheTtl as n, Ut as r, Wt as t };
2839
+ defineStringTag(kt, "Temporal"), makePropertiesNonEnumerable(kt);
2840
+ export { defineNonEnumerableProperty as a, jt as i, setSystemTimeZoneIdCacheTtl as n, $t as r, kt as t };