temporal-polyfill-lite 0.3.6 → 0.4.1

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,8 +1,8 @@
1
1
  function getNameFromUnit(e) {
2
- return ie[e];
2
+ return ae[e];
3
3
  }
4
4
  function nanosecondsForTimeUnit(e) {
5
- return ce[e - 3];
5
+ return le[e - 3];
6
6
  }
7
7
  function isObject(e) {
8
8
  return ("object" == typeof e || "function" == typeof e) && null !== e;
@@ -27,8 +27,7 @@ function toPrimitive(e) {
27
27
  const t = e[Symbol.toPrimitive];
28
28
  if (null != t) {
29
29
  const o = Date.call.call(t, e, "string");
30
- if (!isObject(o)) return o;
31
- throwTypeError("cannot convert value to primitive");
30
+ return isObject(o) && throwTypeError("cannot convert value to primitive"), o;
32
31
  }
33
32
  return Date.prototype[Symbol.toPrimitive].call(e, "string");
34
33
  }
@@ -36,22 +35,22 @@ function toString(e) {
36
35
  return `${e}`;
37
36
  }
38
37
  function toBigInt(e) {
39
- return isObject(e) || "number" == typeof e ? BigInt.asIntN(2 ** 53 - 1, e) : BigInt(e);
38
+ return BigInt.asIntN(2 ** 53 - 1, e);
40
39
  }
41
40
  function toIntegerIfIntegral(e) {
42
- const t = Fe(e);
41
+ const t = Oe(e);
43
42
  return Number.isInteger(t) || throwRangeError(invalidNumber(t)), t + 0;
44
43
  }
45
44
  function toIntegerWithTruncation(e) {
46
- const t = Fe(e);
47
- return !isNaN(t) && isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
45
+ const t = Oe(e);
46
+ return isFinite(t) || throwRangeError(invalidNumber(t)), Math.trunc(t) + 0;
48
47
  }
49
48
  function toPositiveIntegerWithTruncation(e) {
50
49
  const t = toIntegerWithTruncation(e);
51
50
  return t <= 0 && throwRangeError(invalidNumber(t)), t;
52
51
  }
53
52
  function getOptionsObject(e = createNullPrototypeObject()) {
54
- return isObject(e) || throwTypeError("invalid options object"), e;
53
+ return isObject(e) || throwTypeError(notObject(e)), e;
55
54
  }
56
55
  function getOption(e, t, o, n) {
57
56
  const r = e[t];
@@ -59,7 +58,7 @@ function getOption(e, t, o, n) {
59
58
  const a = toString(r);
60
59
  return o.includes(a) || throwRangeError(invalidField(t)), a;
61
60
  }
62
- function getRoundToOptionsObject(e = throwTypeError(Se)) {
61
+ function getRoundToOptionsObject(e = throwTypeError(Ie)) {
63
62
  return "string" == typeof e ? createNullPrototypeObject({ smallestUnit: e }) : getOptionsObject(e);
64
63
  }
65
64
  function validateString(e) {
@@ -105,10 +104,10 @@ function renameFunction(e, t) {
105
104
  Object.defineProperty(e, "name", { value: t });
106
105
  }
107
106
  function normalizeEpochNanoseconds(e, t) {
108
- return [e + divFloor(t, i), modFloor(t, i)];
107
+ return [e + divFloor(t, a), modFloor(t, a)];
109
108
  }
110
109
  function createEpochNanosecondsFromBigInt(e) {
111
- return normalizeEpochNanoseconds(Number(e / BigInt(i)), Number(e % BigInt(i)));
110
+ return normalizeEpochNanoseconds(Number(e / BigInt(a)), Number(e % BigInt(a)));
112
111
  }
113
112
  function createEpochNanosecondsFromEpochMilliseconds(e) {
114
113
  return normalizeEpochNanoseconds(divFloor(e, r), 1e6 * modFloor(e, r));
@@ -117,7 +116,7 @@ function createEpochNanosecondsFromEpochSeconds(e) {
117
116
  return createEpochNanosecondsFromEpochMilliseconds(1e3 * e);
118
117
  }
119
118
  function convertEpochNanosecondsToBigInt(e) {
120
- return BigInt(e[0]) * BigInt(i) + BigInt(e[1]);
119
+ return BigInt(e[0]) * BigInt(a) + BigInt(e[1]);
121
120
  }
122
121
  function compareEpochNanoseconds(e, t) {
123
122
  return compare(e[0], t[0]) || compare(e[1], t[1]);
@@ -148,40 +147,41 @@ function toZeroPaddedDecimalString(e, t) {
148
147
  }
149
148
  function normalize(e, t) {
150
149
  const [o, n] = normalizeEpochNanoseconds(e, t);
151
- return o < 0 && n > 0 ? [o + 1, n - i] : [o, n];
150
+ return o < 0 && n > 0 ? [o + 1, n - a] : [o, n];
152
151
  }
153
- function createTimeDurationFromSeconds(e) {
154
- return normalize(divTrunc(e, n), e % n * 1e9);
152
+ function createTimeDurationFromUnit(e, t) {
153
+ const o = a / t;
154
+ return normalize(Math.round((e - e % o) / o), e % o * t);
155
155
  }
156
156
  function addTimeDuration(e, t) {
157
157
  return normalize(e[0] + t[0], e[1] + t[1]);
158
158
  }
159
159
  function absTimeDuration(e) {
160
- return normalize(Math.abs(e[0]), Math.abs(e[1]));
160
+ return e.map(Math.abs);
161
161
  }
162
162
  function negateTimeDuration(e) {
163
163
  return normalize(-e[0], -e[1]);
164
164
  }
165
165
  function signTimeDuration(e) {
166
- return ye(e, [0, 0]);
166
+ return ve(e, we);
167
167
  }
168
168
  function timeDurationToSubsecondsNumber(e, t, o) {
169
169
  const n = signTimeDuration(e);
170
- return e = absTimeDuration(e), n * Fe(`${864 * e[0] + divTrunc(e[1], 1e11)}${toZeroPaddedDecimalString(divTrunc(e[1] % 1e11, 10 ** (9 + t)), 2 - t)}.${o ? toZeroPaddedDecimalString(e[1] % 10 ** (9 + t), 9 + t) : "0"}`) + 0;
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;
171
171
  }
172
172
  function roundTimeDurationByDays(e, t, o) {
173
- return normalize(roundNumberToIncrement(e[0] + signTimeDuration(e) * (e[1] ? .2 * compare(Math.abs(e[1] / i), .5) + .5 : 0), t, o), 0);
173
+ return normalize(roundNumberToIncrement(e[0] + signTimeDuration(e) * (e[1] ? .2 * compare(Math.abs(e[1] / a), .5) + .5 : 0), t, o), 0);
174
174
  }
175
175
  function divideTimeDurationToFloatingPoint(e, t) {
176
- return t <= 1e9 ? timeDurationToSubsecondsNumber(e, -9 + Math.log10(t), !0) : i / t * e[0] + e[1] / t;
176
+ return t <= 1e9 ? timeDurationToSubsecondsNumber(e, -9 + Math.log10(t), !0) : a / t * e[0] + e[1] / t;
177
177
  }
178
178
  function interpretISODateTimeOffset(e, t, o, n, r, a, i, l) {
179
179
  if (!t) return getStartOfDay(r, e);
180
180
  const c = combineIsoDateAndTimeRecord(e, t);
181
- if (o === w || o === S && "ignore" == i) return getEpochNanosecondsFor(r, c, a);
182
- if (o === F || o === S && "use" == i) return validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(c.o.t, c.o.u, c.o.T, c.p.D, c.p.I, c.p.O, c.p.S, c.p.F, c.p.v - n)));
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)));
183
183
  ((e) => {
184
- Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(me);
184
+ Math.abs(isoDateToEpochDays(e.t, e.u - 1, e.T)) > 1e8 && throwRangeError(se);
185
185
  })(e);
186
186
  const s = getPossibleEpochNanoseconds(r, c);
187
187
  for (const e of s) {
@@ -196,77 +196,77 @@ function toTemporalZonedDateTime(e, t) {
196
196
  if (isObject(e)) {
197
197
  if (isZonedDateTime(e)) {
198
198
  const o = getOptionsObject(t);
199
- return getTemporalDisambiguationOption(o), getTemporalOffsetOption(o, h), getTemporalOverflowOption(o), getInternalSlotOrThrowForZonedDateTime(e);
199
+ return getTemporalDisambiguationOption(o), getTemporalOffsetOption(o, p), getTemporalOverflowOption(o), getInternalSlotOrThrowForZonedDateTime(e);
200
200
  }
201
201
  i = getTemporalCalendarIdentifierWithIsoDefault(e);
202
202
  const s = prepareCalendarFields(i, e, [
203
- Dt.t,
204
- Dt.u,
205
- Dt.P,
206
- Dt.T,
207
- Dt.D,
208
- Dt.I,
209
- Dt.O,
210
- Dt.S,
211
- Dt.F,
212
- Dt.v,
213
- Dt.R,
214
- Dt.Z
215
- ], [Dt.Z]);
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
216
  o = s.timeZone, n = s.offset;
217
217
  const d = getOptionsObject(t);
218
- r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, h);
218
+ r = getTemporalDisambiguationOption(d), a = getTemporalOffsetOption(d, p);
219
219
  const m = interpretTemporalDateTimeFields(i, s, getTemporalOverflowOption(d));
220
220
  l = m.o, c = m.p;
221
221
  } else {
222
222
  validateString(e);
223
- const m = parseIsoDateTime(e, [Xe]);
224
- o = toTemporalTimeZoneIdentifier(m.Z.N), n = m.Z.$, s = m.Z.M, i = canonicalizeCalendar(m.U || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
225
- const T = getOptionsObject(t);
226
- r = getTemporalDisambiguationOption(T), a = getTemporalOffsetOption(T, h), getTemporalOverflowOption(T), l = createIsoDateRecord(m.t, m.u, m.T), c = m.p;
223
+ const m = parseIsoDateTime(e, [Ge]);
224
+ o = toTemporalTimeZoneIdentifier(m.Z.$), n = m.Z.N, s = m.Z.M, i = canonicalizeCalendar(m.U || "iso8601"), d = !1, n && (d = hasUtcOffsetSubMinuteParts(n));
225
+ 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;
227
227
  }
228
- const m = s ? F : n ? S : w;
229
- return createZonedDateTimeSlot(interpretISODateTimeOffset(l, c, m, m === S ? parseDateTimeUtcOffset(n) : 0, o, r, a, d), o, i);
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);
230
230
  }
231
231
  function createTemporalZonedDateTime(e, t, o, n) {
232
- return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => be[e] && be[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
232
+ return createTemporalZonedDateTimeFromSlot(createZonedDateTimeSlot(e, t, o, ((e, t) => Re[e] && Re[e].C(clampEpochSecond(t)))(t, epochSeconds(e))), n);
233
233
  }
234
234
  function createZonedDateTimeSlot(e, t, o, n) {
235
235
  return {
236
236
  Y: e,
237
237
  Z: t,
238
238
  U: o,
239
- A: n
239
+ W: n
240
240
  };
241
241
  }
242
- function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = G, l = P) {
242
+ function temporalZonedDateTimeToString(e, t, o, n, r, a = 1, i = J, l = E) {
243
243
  const c = roundTemporalInstant(e.Y, a, i, l), s = epochSeconds(c) === epochSeconds(e.Y) ? getOffsetNanosecondsForZonedDateTimeSlot(e) : getOffsetNanosecondsFor(e.Z, c);
244
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(c, s), "iso8601", t, $)}${r === A ? "" : formatDateTimeUtcOffsetRounded(s)}${n === z ? "" : `[${n === V ? "!" : ""}${e.Z}]`}${formatCalendarAnnotation(e.U, o)}`;
244
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(c, s), "iso8601", t, j)}${r === Y ? "" : formatDateTimeUtcOffsetRounded(s)}${n === A ? "" : `[${n === z ? "!" : ""}${e.Z}]`}${formatCalendarAnnotation(e.U, o)}`;
245
245
  }
246
246
  function addZonedDateTime(e, t, o) {
247
- if (0 === dateDurationSign(t.W)) return addInstant(e.Y, t.p);
247
+ if (!dateDurationSign(t.A)) return addInstant(e.Y, t.p);
248
248
  const n = getIsoDateTimeForZonedDateTimeSlot(e);
249
- return addInstant(getEpochNanosecondsFor(e.Z, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.U, n.o, t.W, o), n.p)), g), t.p);
249
+ return addInstant(getEpochNanosecondsFor(e.Z, validateIsoDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(e.U, n.o, t.A, o), n.p)), h), t.p);
250
250
  }
251
251
  function differenceZonedDateTime(e, t, o) {
252
252
  const n = compareEpochNanoseconds(e.Y, t.Y);
253
- if (!n) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
253
+ if (!n) return combineDateAndTimeDuration(zeroDateDuration(), we);
254
254
  const r = getIsoDateTimeForZonedDateTimeSlot(e), a = getIsoDateTimeForZonedDateTimeSlot(t);
255
255
  if (!compareIsoDate(r.o, a.o)) return combineDateAndTimeDuration(zeroDateDuration(), timeDurationFromEpochNanosecondsDifference(t.Y, e.Y));
256
256
  let i, l = differenceTime(r.p, a.p);
257
- for (let o = ft(l) === n ? 1 : 0; o <= (3 - n) / 2 && (i = combineIsoDateAndTimeRecord(addDaysToIsoDate(a.o, o * n), r.p), l = timeDurationFromEpochNanosecondsDifference(t.Y, getEpochNanosecondsFor(e.Z, i, g)), ft(l) === n); o++);
258
- return combineDateAndTimeDuration(calendarDateUntil(e.U, r.o, i.o, largerOfTwoTemporalUnits(o, L)), l);
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);
259
259
  }
260
260
  function differenceZonedDateTimeWithRounding(e, t, o, n, r, a) {
261
261
  if (!isDateUnit(o)) return differenceInstant(e.Y, t.Y, n, r, a);
262
262
  const i = differenceZonedDateTime(e, t, o);
263
- return r === G && 1 === n ? i : roundRelativeDuration(i, e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o, n, r, a);
263
+ return r === J && 1 === n ? i : roundRelativeDuration(i, e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o, n, r, a);
264
264
  }
265
265
  function differenceTemporalZonedDateTime(e, t, o, n) {
266
266
  const r = toTemporalZonedDateTime(o);
267
- calendarEquals(t.U, r.U) || throwRangeError(De);
268
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], G, B);
269
- return isDateUnit(a.V) ? (timeZoneEquals(t.Z, r.Z) || throwRangeError("time zone mismatch"), compareEpochNanoseconds(t.Y, r.Y) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(t, r, a.V, a.H, a.L, a.B), B), e)) : createTemporalDuration(createTemporalDurationSlot([
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([
270
270
  0,
271
271
  0,
272
272
  0,
@@ -277,29 +277,29 @@ function differenceTemporalZonedDateTime(e, t, o, n) {
277
277
  0,
278
278
  0,
279
279
  0
280
- ]))) : createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.H, a.L, a.B), a.V), e));
280
+ ]))) : createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.H, a.L, a.q), a.V), e));
281
281
  }
282
282
  function addDurationToZonedDateTime(e, t, o, n) {
283
283
  return createTemporalZonedDateTime(addZonedDateTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.Z, t.U);
284
284
  }
285
285
  function getOffsetNanosecondsForZonedDateTimeSlot(e) {
286
- return e.A ??= getOffsetNanosecondsFor(e.Z, e.Y);
286
+ return e.W ??= getOffsetNanosecondsFor(e.Z, e.Y);
287
287
  }
288
288
  function getIsoDateTimeForZonedDateTimeSlot(e) {
289
289
  return getIsoDateTimeFromOffsetNanoseconds(e.Y, getOffsetNanosecondsForZonedDateTimeSlot(e));
290
290
  }
291
- function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Pe.prototype)) {
292
- return Ee.set(t, e), t;
291
+ function createTemporalZonedDateTimeFromSlot(e, t = Object.create(Ee.prototype)) {
292
+ return ye.set(t, e), t;
293
293
  }
294
294
  function calendarIsoToDateForZonedDateTimeSlot(e) {
295
295
  return calendarIsoToDate(e.U, getIsoDateTimeForZonedDateTimeSlot(e).o);
296
296
  }
297
297
  function getInternalSlotForZonedDateTime(e) {
298
- return Ee.get(e);
298
+ return ye.get(e);
299
299
  }
300
300
  function getInternalSlotOrThrowForZonedDateTime(e) {
301
301
  const t = getInternalSlotForZonedDateTime(e);
302
- return t || throwTypeError(pe), t;
302
+ return t || throwTypeError(Te), t;
303
303
  }
304
304
  function isZonedDateTime(e) {
305
305
  return !!getInternalSlotForZonedDateTime(e);
@@ -312,17 +312,16 @@ function clampEpochSecond(e) {
312
312
  }
313
313
  function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
314
314
  if ("UTC" === t) return 0;
315
- const r = clampEpochSecond(o), a = be[t] ||= (() => {
315
+ const r = clampEpochSecond(o), a = Re[t] ||= (function() {
316
316
  const e = /* @__PURE__ */ new Map();
317
317
  return {
318
318
  C(t) {
319
- if (e.has(t)) {
320
- const o = e.get(t);
321
- return e.delete(t), e.set(t, o), o;
322
- }
319
+ const o = e.get(t);
320
+ if (void 0 !== o) return e.delete(t), e.set(t, o), o;
323
321
  },
324
- q(t, o) {
325
- e.size >= 5e3 && e.delete(e.keys().next().value), e.set(t, o);
322
+ B: (t, o) => (e.size >= 5e3 && e.delete(e.keys().next().value), e.set(t, o), o),
323
+ J(e, t) {
324
+ return this.C(e) ?? this.B(e, t());
326
325
  }
327
326
  };
328
327
  })(), i = a.C(r);
@@ -335,10 +334,10 @@ function getNamedTimeZoneOffsetNanosecondsForEpochSecond(t, o, n) {
335
334
  "minute",
336
335
  "second"
337
336
  ].map((e) => toIntegerIfIntegral(l.find((t) => t.type === e).value))) - 1e3 * r) * e;
338
- return n || a.q(r, c), c;
337
+ return n || a.B(r, c), c;
339
338
  }
340
339
  function getFormatterForTimeZone(e) {
341
- return Re[e] ||= new Ft("en-u-hc-h23", {
340
+ return Pe[e] ||= new Ft("en-u-hc-h23", {
342
341
  timeZone: e,
343
342
  year: "numeric",
344
343
  month: "numeric",
@@ -378,10 +377,10 @@ function formatOffsetTimeZoneIdentifier(e) {
378
377
  }
379
378
  function formatUtcOffsetNanoseconds(e) {
380
379
  const n = Math.abs(e);
381
- return `${e < 0 ? "-" : "+"}${formatTimeString(divFloor(n, o), modFloor(divFloor(n, t), 60), modFloor(divFloor(n, 1e9), 60), 0, n % 6e10 ? void 0 : D)}`;
380
+ return `${e < 0 ? "-" : "+"}${formatTimeString(divFloor(n, o), modFloor(divFloor(n, t), 60), modFloor(divFloor(n, 1e9), 60), 0, n % 6e10 ? void 0 : T)}`;
382
381
  }
383
382
  function formatDateTimeUtcOffsetRounded(e) {
384
- return formatOffsetTimeZoneIdentifier(roundNumberToIncrement(e, t, Z) / t);
383
+ return formatOffsetTimeZoneIdentifier(roundNumberToIncrement(e, t, b) / t);
385
384
  }
386
385
  function toTemporalTimeZoneIdentifier(e) {
387
386
  if (isZonedDateTime(e)) return getInternalSlotOrThrowForZonedDateTime(e).Z;
@@ -389,16 +388,16 @@ function toTemporalTimeZoneIdentifier(e) {
389
388
  const t = ((e) => {
390
389
  if (isTimeZoneIdentifier(e)) return parseTimeZoneIdentifier(e);
391
390
  const t = parseIsoDateTime(e, [
392
- Xe,
391
+ Ge,
392
+ Ke,
393
393
  Qe,
394
394
  et,
395
395
  tt,
396
- ot,
397
- nt
398
- ]).Z, o = t.N || t.M && "UTC" || t.$;
396
+ ot
397
+ ]).Z, o = t.$ || t.M && "UTC" || t.N;
399
398
  return o || throwRangeError(invalidTimeZone(e)), parseTimeZoneIdentifier(o);
400
399
  })(e);
401
- return t.J ? getAvailableNamedTimeZoneIdentifier(t.J) : formatOffsetTimeZoneIdentifier(t.G);
400
+ return t._ ? getAvailableNamedTimeZoneIdentifier(t._) : formatOffsetTimeZoneIdentifier(t.G);
402
401
  }
403
402
  function getOffsetNanosecondsFor(e, t) {
404
403
  return isOffsetTimeZoneIdentifier(e) ? parseDateTimeUtcOffset(e) : getNamedTimeZoneOffsetNanosecondsForEpochSecond(e, epochSeconds(t));
@@ -407,10 +406,10 @@ function getEpochNanosecondsFor(e, t, o) {
407
406
  return disambiguatePossibleEpochNanoseconds(getPossibleEpochNanoseconds(e, t), e, t, o);
408
407
  }
409
408
  function disambiguatePossibleEpochNanoseconds(e, t, o, n) {
410
- return 1 === e.length ? e[0] : ("reject" === n && throwRangeError("ambiguity / gaps in local time"), getNamedTimeZoneEpochCandidates(t, o).map(validateEpochNanoseconds)["compatible" === n ? +!e[0] : +(n === f)]);
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)]);
411
410
  }
412
411
  function getPossibleEpochNanoseconds(e, t) {
413
- 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.S, t.p.F, t.p.v - parseDateTimeUtcOffset(e))))] : ((e, t) => getNamedTimeZoneEpochCandidates(e, t).filter((o) => !compareEpochNanoseconds(addNanosecondsToEpochSeconds(o, getOffsetNanosecondsFor(e, o)), getUtcEpochNanoseconds(t))))(e, t).map(validateEpochNanoseconds);
412
+ 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);
414
413
  }
415
414
  function getStartOfDay(e, t) {
416
415
  const o = combineIsoDateAndTimeRecord(t, midnightTimeRecord());
@@ -420,7 +419,7 @@ function timeZoneEquals(e, t) {
420
419
  return e === t || !isOffsetTimeZoneIdentifier(e) && !isOffsetTimeZoneIdentifier(t) && getFormatterForTimeZone(e).resolvedOptions().timeZone === getFormatterForTimeZone(t).resolvedOptions().timeZone;
421
420
  }
422
421
  function parseTimeZoneIdentifier(e) {
423
- return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { G: parseDateTimeUtcOffset(e) / t } : { J: e });
422
+ return isTimeZoneIdentifier(e) || throwRangeError(invalidTimeZone(e)), createNullPrototypeObject(isOffsetTimeZoneIdentifier(e) ? { G: parseDateTimeUtcOffset(e) / t } : { _: e });
424
423
  }
425
424
  function isOffsetTimeZoneIdentifier(e) {
426
425
  return /^[+-]/.test(e);
@@ -444,14 +443,14 @@ function combineIsoDateAndTimeRecord(e, t) {
444
443
  };
445
444
  }
446
445
  function interpretTemporalDateTimeFields(e, t, o) {
447
- return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Dt.D], t[Dt.I], t[Dt.O], t[Dt.S], t[Dt.F], t[Dt.v], o));
446
+ return combineIsoDateAndTimeRecord(calendarDateFromFields(e, t, o), regulateTime(t[Tt.D], t[Tt.I], t[Tt.O], t[Tt.F], t[Tt.S], t[Tt.v], o));
448
447
  }
449
448
  function toTemporalDateTime(e, t) {
450
449
  if (isObject(e)) {
451
450
  if (isPlainDateTime(e)) {
452
451
  getTemporalOverflowOption(getOptionsObject(t));
453
452
  const o = getInternalSlotOrThrowForPlainDateTime(e);
454
- return createTemporalDateTime(o._, o.U);
453
+ return createTemporalDateTime(o.K, o.U);
455
454
  }
456
455
  if (isZonedDateTime(e)) {
457
456
  const o = getInternalSlotOrThrowForZonedDateTime(e);
@@ -464,61 +463,61 @@ function toTemporalDateTime(e, t) {
464
463
  }
465
464
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
466
465
  return createTemporalDateTime(interpretTemporalDateTimeFields(o, prepareCalendarFields(o, e, [
467
- Dt.t,
468
- Dt.u,
469
- Dt.P,
470
- Dt.T,
471
- Dt.D,
472
- Dt.I,
473
- Dt.O,
474
- Dt.S,
475
- Dt.F,
476
- Dt.v
466
+ 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
477
476
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
478
477
  }
479
478
  validateString(e);
480
- const o = parseIsoDateTime(e, [Qe]), n = canonicalizeCalendar(o.U || "iso8601");
479
+ const o = parseIsoDateTime(e, [Ke]), n = canonicalizeCalendar(o.U || "iso8601");
481
480
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(o.t, o.u, o.T), o.p || midnightTimeRecord()), n);
482
481
  }
483
482
  function balanceIsoDateTime(e, t, o, n, r, a, i, l, c) {
484
483
  const s = balanceTime(n, r, a, i, l, c);
485
- return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), s.K), s);
484
+ return combineIsoDateAndTimeRecord(addDaysToIsoDate(createIsoDateRecord(e, t, o), s.X), s);
486
485
  }
487
- function createTemporalDateTime(e, t, o = Object.create(Ne.prototype)) {
488
- return Ze.set(o, {
489
- _: validateIsoDateTime(e),
486
+ function createTemporalDateTime(e, t, o = Object.create(Ze.prototype)) {
487
+ return be.set(o, {
488
+ K: validateIsoDateTime(e),
490
489
  U: t
491
490
  }), o;
492
491
  }
493
492
  function isoDateTimeToString(e, t, o, n) {
494
- return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}T${formatTimeString(e.p.D, e.p.I, e.p.O, 1e6 * e.p.S + 1e3 * e.p.F + e.p.v, o)}${formatCalendarAnnotation(t, n)}`;
493
+ return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}T${formatTimeString(e.p.D, e.p.I, e.p.O, 1e6 * e.p.F + 1e3 * e.p.S + e.p.v, o)}${formatCalendarAnnotation(t, n)}`;
495
494
  }
496
495
  function compareIsoDateTime(e, t) {
497
496
  return compareIsoDate(e.o, t.o) || compareTimeRecord(e.p, t.p);
498
497
  }
499
498
  function roundIsoDateTime(e, t, o, n) {
500
499
  const r = roundTime(e.p, t, o, n);
501
- return combineIsoDateAndTimeRecord(addDaysToIsoDate(e.o, r.K), r);
500
+ return combineIsoDateAndTimeRecord(addDaysToIsoDate(e.o, r.X), r);
502
501
  }
503
502
  function differenceISODateTime(e, t, o, n) {
504
503
  let r = differenceTime(e.p, t.p);
505
- const a = ft(r);
504
+ const a = gt(r);
506
505
  let i = t.o;
507
506
  a === compareIsoDate(e.o, t.o) && (i = addDaysToIsoDate(i, a), r = add24HourDaysToTimeDuration(r, -a));
508
- const l = largerOfTwoTemporalUnits(L, n), c = calendarDateUntil(o, e.o, i, l);
509
- return n !== l && (r = add24HourDaysToTimeDuration(r, c.K), c.K = 0), combineDateAndTimeDuration(c, r);
507
+ const l = largerOfTwoTemporalUnits(x, n), c = calendarDateUntil(o, e.o, i, l);
508
+ return n !== l && (r = add24HourDaysToTimeDuration(r, c.X), c.X = 0), combineDateAndTimeDuration(c, r);
510
509
  }
511
510
  function differencePlainDateTimeWithRounding(e, t, o, n, r, a, i) {
512
- if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), createTimeDurationFromSeconds(0));
511
+ if (!compareIsoDateTime(e, t)) return combineDateAndTimeDuration(zeroDateDuration(), we);
513
512
  validateIsoDateTime(e), validateIsoDateTime(t);
514
513
  const l = differenceISODateTime(e, t, o, n);
515
- return a === G && 1 === r ? l : roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
514
+ return a === J && 1 === r ? l : roundRelativeDuration(l, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, o, n, r, a, i);
516
515
  }
517
516
  function differenceTemporalPlainDateTime(e, t, o, n) {
518
517
  const r = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(o));
519
- calendarEquals(t.U, r.U) || throwRangeError(De);
520
- const a = getDifferenceSettings(e, getOptionsObject(n), d, [], G, L);
521
- return compareIsoDateTime(t._, r._) ? createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differencePlainDateTimeWithRounding(t._, r._, t.U, a.V, a.H, a.L, a.B), a.V), e)) : createTemporalDuration(createTemporalDurationSlot([
518
+ calendarEquals(t.U, r.U) || throwRangeError(ue);
519
+ const a = getDifferenceSettings(e, getOptionsObject(n), 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([
522
521
  0,
523
522
  0,
524
523
  0,
@@ -532,53 +531,57 @@ function differenceTemporalPlainDateTime(e, t, o, n) {
532
531
  ]));
533
532
  }
534
533
  function addDurationToDateTime(e, t, o, n) {
535
- const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), l = addTime(t._.p, i.p);
536
- return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.U, t._.o, adjustDateDurationRecord(i.W, l.K), a), l), t.U);
534
+ const r = applySignToDurationSlot(toTemporalDuration(o), e), a = getTemporalOverflowOption(getOptionsObject(n)), i = toInternalDurationRecordWith24HourDays(r), l = addTime(t.K.p, i.p);
535
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(calendarDateAdd(t.U, t.K.o, adjustDateDurationRecord(i.A, l.X), a), l), t.U);
537
536
  }
538
537
  function validateIsoDateTime(e) {
539
538
  return ((e) => {
540
539
  const t = isoDateRecordToEpochDays(e.o);
541
540
  return Math.abs(t) <= 1e8 || -100000001 === t && !!compareTimeRecord(e.p, midnightTimeRecord());
542
- })(e) || throwRangeError(me), e;
541
+ })(e) || throwRangeError(se), e;
543
542
  }
544
543
  function getInternalSlotForPlainDateTime(e) {
545
- return Ze.get(e);
544
+ return be.get(e);
546
545
  }
547
546
  function getInternalSlotOrThrowForPlainDateTime(e) {
548
547
  const t = getInternalSlotForPlainDateTime(e);
549
- return t || throwTypeError(pe), t;
548
+ return t || throwTypeError(Te), t;
550
549
  }
551
550
  function isPlainDateTime(e) {
552
551
  return !!getInternalSlotForPlainDateTime(e);
553
552
  }
553
+ function calendarDateForPlainDateTime(e) {
554
+ const t = getInternalSlotOrThrowForPlainDateTime(e);
555
+ return calendarIsoToDate(t.U, t.K.o);
556
+ }
554
557
  function createTimeRecord(e, t, o, n, r, a, i = 0) {
555
558
  return {
556
559
  D: e,
557
560
  I: t,
558
561
  O: o,
559
- S: n,
560
- F: r,
562
+ F: n,
563
+ S: r,
561
564
  v: a,
562
- K: i
565
+ X: i
563
566
  };
564
567
  }
565
568
  function midnightTimeRecord() {
566
569
  return createTimeRecord(0, 0, 0, 0, 0, 0);
567
570
  }
568
571
  function differenceTime(e, t) {
569
- return timeDurationFromComponents(t.D - e.D, t.I - e.I, t.O - e.O, t.S - e.S, t.F - e.F, t.v - e.v);
572
+ return timeDurationFromComponents(t.D - e.D, t.I - e.I, t.O - e.O, t.F - e.F, t.S - e.S, t.v - e.v);
570
573
  }
571
574
  function toTemporalTime(e, t) {
572
- if (isObject(e)) return isPlainTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainTime(e)) : isPlainDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getInternalSlotOrThrowForPlainDateTime(e)._.p) : isZonedDateTime(e) ? (getTemporalOverflowOption(getOptionsObject(t)), getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(e)).p) : regulateTime(...toTemporalTimeRecord(e), getTemporalOverflowOption(getOptionsObject(t)));
575
+ 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)));
573
576
  validateString(e);
574
- const o = parseIsoDateTime(e, [tt]);
577
+ const o = parseIsoDateTime(e, [et]);
575
578
  return getTemporalOverflowOption(getOptionsObject(t)), o.p;
576
579
  }
577
580
  function toTimeRecordOrMidnight(e) {
578
581
  return void 0 === e ? midnightTimeRecord() : toTemporalTime(e);
579
582
  }
580
583
  function regulateTime(e, t, o, n, r, a, i) {
581
- return "constrain" === i ? createTimeRecord(clamp(e, 0, 23), clamp(t, 0, 59), clamp(o, 0, 59), clamp(n, 0, 999), clamp(r, 0, 999), clamp(a, 0, 999)) : (isValidTime(e, t, o, n, r, a) || throwRangeError(de), createTimeRecord(e, t, o, n, r, a));
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));
582
585
  }
583
586
  function isValidTime(e, t, o, n, r, a) {
584
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);
@@ -588,29 +591,29 @@ function balanceTime(e, t, o, n, r, a) {
588
591
  D: modFloor(e += divFloor(t, 60), 24),
589
592
  I: modFloor(t, 60),
590
593
  O: modFloor(o, 60),
591
- S: modFloor(n, 1e3),
592
- F: modFloor(r, 1e3),
594
+ F: modFloor(n, 1e3),
595
+ S: modFloor(r, 1e3),
593
596
  v: modFloor(a, 1e3),
594
- K: divFloor(e, 24)
597
+ X: divFloor(e, 24)
595
598
  };
596
599
  }
597
- function createTemporalTime(e, t = Object.create(Ue.prototype)) {
598
- return Me.set(t, e), t;
600
+ function createTemporalTime(e, t = Object.create(Me.prototype)) {
601
+ return Ne.set(t, e), t;
599
602
  }
600
603
  function toTemporalTimeRecord(e, t = !1) {
601
604
  let o = !1;
602
605
  const n = [
603
- Dt.D,
604
- Dt.F,
605
- Dt.S,
606
- Dt.I,
607
- Dt.v,
608
- Dt.O
606
+ Tt.D,
607
+ Tt.S,
608
+ Tt.F,
609
+ Tt.I,
610
+ Tt.v,
611
+ Tt.O
609
612
  ].map((n) => {
610
613
  const r = e[n];
611
614
  return void 0 !== r ? (o = !0, toIntegerWithTruncation(r)) : t ? void 0 : 0;
612
615
  });
613
- return o || throwTypeError(Ie), [
616
+ return o || throwTypeError(ge), [
614
617
  0,
615
618
  3,
616
619
  5,
@@ -620,32 +623,32 @@ function toTemporalTimeRecord(e, t = !1) {
620
623
  ].map((e) => n[e]);
621
624
  }
622
625
  function timeRecordToString(e, t) {
623
- return formatTimeString(e.D, e.I, e.O, 1e6 * e.S + 1e3 * e.F + e.v, t);
626
+ return formatTimeString(e.D, e.I, e.O, 1e6 * e.F + 1e3 * e.S + e.v, t);
624
627
  }
625
628
  function compareTimeRecord(e, t) {
626
- return compare(e.D, t.D) || compare(e.I, t.I) || compare(e.O, t.O) || compare(e.S, t.S) || compare(e.F, t.F) || compare(e.v, t.v);
629
+ return compare(e.D, t.D) || compare(e.I, t.I) || compare(e.O, t.O) || compare(e.F, t.F) || compare(e.S, t.S) || compare(e.v, t.v);
627
630
  }
628
631
  function addTime(e, t) {
629
- const o = t, n = balanceTime(e.D, e.I, e.O, e.S, e.F, e.v + o[1]);
630
- return n.K += o[0], n;
632
+ const o = t, n = balanceTime(e.D, e.I, e.O, e.F, e.S, e.v + o[1]);
633
+ return n.X += o[0], n;
631
634
  }
632
635
  function roundTime(e, n, r, a) {
633
- const i = nanosecondsForTimeUnit(clamp(r - 1, 3, 8)), l = e.D * o + e.I * t + 1e9 * e.O + 1e6 * e.S + 1e3 * e.F + e.v;
636
+ const i = nanosecondsForTimeUnit(clamp(r - 1, 3, 8)), l = e.D * o + e.I * t + 1e9 * e.O + 1e6 * e.F + 1e3 * e.S + e.v;
634
637
  return balanceTime(0, 0, 0, 0, 0, divFloor(l, i) * i + roundNumberToIncrement(modFloor(l, i), n * nanosecondsForTimeUnit(r), a));
635
638
  }
636
639
  function differenceTemporalPlainTime(e, t, o, n) {
637
- const r = toTemporalTime(o), a = getDifferenceSettings(e, getOptionsObject(n), s, [], G, B);
638
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(differenceTime(t, r), a.H, a.L, a.B)), a.V), e));
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));
639
642
  }
640
643
  function addDurationToTime(e, t, o) {
641
644
  return createTemporalTime(addTime(t, toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)).p));
642
645
  }
643
646
  function getInternalSlotOrThrowForPlainTime(e) {
644
- const t = Me.get(e);
645
- return t || throwTypeError(pe), t;
647
+ const t = Ne.get(e);
648
+ return t || throwTypeError(Te), t;
646
649
  }
647
650
  function isPlainTime(e) {
648
- return Me.has(e);
651
+ return Ne.has(e);
649
652
  }
650
653
  function optionalChain(e) {
651
654
  return e.reduceRight((e, t) => `${t}(?:${e})?`);
@@ -657,55 +660,47 @@ function createRegExp(e) {
657
660
  return RegExp(`^(?:${e})$`);
658
661
  }
659
662
  function isAmbiguousTemporalTimeString(e) {
660
- return rt.some((t) => {
661
- const o = e.match(t);
662
- return o && isSemanticallyValid(o.groups);
663
- });
663
+ return nt.some((t) => isSemanticallyValid(e.match(t)?.groups));
664
664
  }
665
665
  function isTimeZoneIdentifier(e) {
666
- return at.test(e);
667
- }
668
- function parseAnnotationsAndGetCalendar(e) {
669
- let t, o = !1;
670
- for (const n of e.matchAll(Ke)) {
671
- const e = !!n[1];
672
- "u-ca" === n[2] ? t ? (e || o) && throwRangeError(se) : (t = n[3], e && (o = !0)) : e && throwRangeError(se);
673
- }
674
- return t;
675
- }
676
- function getTimeRecordFromMatchedGroups(e) {
677
- const t = (e.g || "").padEnd(9, "0");
678
- return createTimeRecord(Fe(e.d || 0), Fe(e.e || 0), clamp(Fe(e.f || 0), 0, 59), Fe(t.slice(0, 3)), Fe(t.slice(3, 6)), Fe(t.slice(6)));
666
+ return rt.test(e);
679
667
  }
680
668
  function isSemanticallyValid(e) {
681
- return "-000000" !== (e.a || e.l) && (!e.a || isValidIsoDate(Fe(e.a), Fe(e.b), Fe(e.c))) && (!e.n || isValidIsoDate(1972, Fe(e.m), Fe(e.n)));
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)));
682
670
  }
683
671
  function parseIsoDateTime(e, t) {
684
672
  for (const o of t) {
685
673
  const t = e.match(o);
686
- if (!t || !isSemanticallyValid(t.groups) || o === tt && isAmbiguousTemporalTimeString(e)) continue;
687
- const n = t.groups, r = parseAnnotationsAndGetCalendar(n.k || "");
688
- return n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(se), {
689
- t: mapUnlessUndefined(n.a || n.l, Fe),
690
- u: Fe(n.b || n.m || 1),
691
- T: Fe(n.c || n.n || 1),
692
- p: n.d ? getTimeRecordFromMatchedGroups(n) : void 0,
674
+ if (!t || !isSemanticallyValid(t.groups) || o === et && isAmbiguousTemporalTimeString(e)) continue;
675
+ const n = t.groups;
676
+ let r;
677
+ if (n.k) {
678
+ let t = !1;
679
+ for (const [, o, a, i] of n.k.matchAll(Xe)) "u-ca" === a ? r ? (o || t) && throwRangeError(parseError(e)) : (r = i, t = !!o) : o && throwRangeError(parseError(e));
680
+ }
681
+ n.m && r && "iso8601" !== asciiLowerCase(r) && throwRangeError(parseError(e));
682
+ const a = (n.g || "").padEnd(9, "0");
683
+ return {
684
+ t: mapUnlessUndefined(n.a || n.l, 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,
693
688
  Z: {
694
689
  M: !!n.i,
695
- $: n.h,
696
- N: n.j
690
+ N: n.h,
691
+ $: n.j
697
692
  },
698
693
  U: r
699
694
  };
700
695
  }
701
- throwRangeError(se);
696
+ throwRangeError(parseError(e));
702
697
  }
703
698
  function parseDateTimeUtcOffset(e) {
704
- const o = e.match(lt);
705
- return o || throwRangeError(se), Fe(`${o[1]}1`) * (36e11 * Fe(o[2]) + Fe(o[4] || "") * t + 1e9 * Fe(o[5] || "") + Fe((o[6] || "").padEnd(9, "0")) + 0);
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
701
  }
707
702
  function hasUtcOffsetSubMinuteParts(e) {
708
- return !!e.match(lt)[5];
703
+ return !!e.match(it)[5];
709
704
  }
710
705
  function toTemporalMonthDay(e, t) {
711
706
  if (isObject(e)) {
@@ -713,31 +708,31 @@ function toTemporalMonthDay(e, t) {
713
708
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay(o.o, o.U);
714
709
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
715
710
  return createTemporalMonthDay(calendarMonthDayFromFields(n, prepareCalendarFields(n, e, [
716
- Dt.t,
717
- Dt.u,
718
- Dt.P,
719
- Dt.T
711
+ Tt.t,
712
+ Tt.u,
713
+ Tt.P,
714
+ Tt.T
720
715
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
721
716
  }
722
717
  validateString(e);
723
- const o = parseIsoDateTime(e, [ot]), n = canonicalizeCalendar(o.U || "iso8601");
724
- return getTemporalOverflowOption(getOptionsObject(t)), createTemporalMonthDay("iso8601" === n ? createIsoDateRecord(1972, o.u, o.T) : calendarMonthDayFromFields(n, isoDateToFields(n, validateIsoDate(createIsoDateRecord(o.t, o.u, o.T)), T), p), n);
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
720
  }
726
- function createTemporalMonthDay(e, t, o = Object.create(st.prototype)) {
727
- return ct.set(o, {
721
+ function createTemporalMonthDay(e, t, o = Object.create(ct.prototype)) {
722
+ return lt.set(o, {
728
723
  o: validateIsoDate(e),
729
724
  U: t
730
725
  }), o;
731
726
  }
732
727
  function temporalMonthDayToString(e, t) {
733
- return `${t === j || t === C || "iso8601" !== e.U ? `${padIsoYear(e.o.t)}-` : ""}${toZeroPaddedDecimalString(e.o.u, 2)}-${toZeroPaddedDecimalString(e.o.T, 2)}${formatCalendarAnnotation(e.U, t)}`;
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)}`;
734
729
  }
735
730
  function getInternalSlotForPlainMonthDay(e) {
736
- return ct.get(e);
731
+ return lt.get(e);
737
732
  }
738
733
  function getInternalSlotOrThrowForPlainMonthDay(e) {
739
734
  const t = getInternalSlotForPlainMonthDay(e);
740
- return t || throwTypeError(pe), t;
735
+ return t || throwTypeError(Te), t;
741
736
  }
742
737
  function isPlainMonthDay(e) {
743
738
  return !!getInternalSlotForPlainMonthDay(e);
@@ -748,14 +743,14 @@ function toTemporalYearMonth(e, t) {
748
743
  if (o) return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(o.o, o.U);
749
744
  const n = getTemporalCalendarIdentifierWithIsoDefault(e);
750
745
  return createTemporalYearMonth(calendarYearMonthFromFields(n, prepareCalendarFields(n, e, [
751
- Dt.t,
752
- Dt.u,
753
- Dt.P
746
+ Tt.t,
747
+ Tt.u,
748
+ Tt.P
754
749
  ], []), getTemporalOverflowOption(getOptionsObject(t))), n);
755
750
  }
756
751
  validateString(e);
757
- const o = parseIsoDateTime(e, [nt]), n = canonicalizeCalendar(o.U || "iso8601");
758
- return getTemporalOverflowOption(getOptionsObject(t)), createTemporalYearMonth(calendarYearMonthFromFields(n, isoDateToFields(n, validateIsoYearMonth(createIsoDateRecord(o.t, o.u, o.T)), m), p), n);
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);
759
754
  }
760
755
  function balanceIsoYearMonth(e, t) {
761
756
  return {
@@ -763,19 +758,19 @@ function balanceIsoYearMonth(e, t) {
763
758
  u: modFloor(t - 1, 12) + 1
764
759
  };
765
760
  }
766
- function createTemporalYearMonth(e, t, o = Object.create(mt.prototype)) {
767
- return dt.set(o, {
761
+ function createTemporalYearMonth(e, t, o = Object.create(dt.prototype)) {
762
+ return st.set(o, {
768
763
  o: validateIsoYearMonth(e),
769
764
  U: t
770
765
  }), o;
771
766
  }
772
767
  function temporalYearMonthToString(e, t) {
773
- return `${padIsoYear(e.o.t)}-${toZeroPaddedDecimalString(e.o.u, 2)}${t === j || t === C || "iso8601" !== e.U ? `-${toZeroPaddedDecimalString(e.o.T, 2)}` : ""}${formatCalendarAnnotation(e.U, 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
769
  }
775
770
  function differenceTemporalPlainYearMonth(e, t, o, n) {
776
771
  const r = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(o));
777
- calendarEquals(t.U, r.U) || throwRangeError(De);
778
- const a = getDifferenceSettings(e, getOptionsObject(n), c, [x, L], H, k);
772
+ calendarEquals(t.U, r.U) || throwRangeError(ue);
773
+ const a = getDifferenceSettings(e, getOptionsObject(n), l, [H, x], k, V);
779
774
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
780
775
  0,
781
776
  0,
@@ -789,39 +784,43 @@ function differenceTemporalPlainYearMonth(e, t, o, n) {
789
784
  0
790
785
  ]));
791
786
  const i = calendarDateFromFields(t.U, createNullPrototypeObject({
792
- ...isoDateToFields(t.U, t.o, m),
793
- [Dt.T]: 1
794
- }), p), l = calendarDateFromFields(t.U, createNullPrototypeObject({
795
- ...isoDateToFields(t.U, r.o, m),
796
- [Dt.T]: 1
797
- }), p);
798
- let s = combineDateAndTimeDuration(adjustDateDurationRecord(calendarDateUntil(t.U, i, l, a.V), 0, 0), createTimeDurationFromSeconds(0));
799
- if (a.L !== H || 1 !== a.H) {
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) {
800
795
  const e = combineIsoDateAndTimeRecord(i, midnightTimeRecord());
801
- s = roundRelativeDuration(s, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(l, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.B);
796
+ s = roundRelativeDuration(s, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(c, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.q);
802
797
  }
803
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(s, L), e));
798
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(s, x), e));
804
799
  }
805
800
  function addDurationToYearMonth(e, t, o, n) {
806
801
  const r = toInternalDurationRecord(applySignToDurationSlot(toTemporalDuration(o), e)), a = getTemporalOverflowOption(getOptionsObject(n));
807
- return (r.W.X || r.W.K || signTimeDuration(r.p)) && throwRangeError("duration can contain only years and months"), createTemporalYearMonth(calendarYearMonthFromFields(t.U, isoDateToFields(t.U, calendarDateAdd(t.U, calendarDateFromFields(t.U, createNullPrototypeObject({
808
- ...isoDateToFields(t.U, t.o, m),
809
- [Dt.T]: 1
810
- }), p), r.W, a), m), a), t.U);
802
+ 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);
811
806
  }
812
807
  function validateIsoYearMonth(e) {
813
- return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(me), e;
808
+ return ((e) => isWithin(12 * e.t + e.u, -3261848, 3309129))(e) || throwRangeError(se), e;
814
809
  }
815
810
  function getInternalSlotForPlainYearMonth(e) {
816
- return dt.get(e);
811
+ return st.get(e);
817
812
  }
818
813
  function getInternalSlotOrThrowForPlainYearMonth(e) {
819
814
  const t = getInternalSlotForPlainYearMonth(e);
820
- return t || throwTypeError(pe), t;
815
+ return t || throwTypeError(Te), t;
821
816
  }
822
817
  function isPlainYearMonth(e) {
823
818
  return !!getInternalSlotForPlainYearMonth(e);
824
819
  }
820
+ function calendarDateForPlainYearMonth(e) {
821
+ const t = getInternalSlotOrThrowForPlainYearMonth(e);
822
+ return calendarIsoToDate(t.U, t.o);
823
+ }
825
824
  function createIsoDateRecord(e, t, o) {
826
825
  return {
827
826
  t: e,
@@ -830,7 +829,7 @@ function createIsoDateRecord(e, t, o) {
830
829
  };
831
830
  }
832
831
  function createTemporalDate(e, t, o = Object.create(ut.prototype)) {
833
- return Tt.set(o, {
832
+ return mt.set(o, {
834
833
  o: validateIsoDate(e),
835
834
  U: t
836
835
  }), o;
@@ -850,22 +849,22 @@ function toTemporalDate(e, t) {
850
849
  if (isPlainDateTime(e)) {
851
850
  getTemporalOverflowOption(getOptionsObject(t));
852
851
  const o = getInternalSlotOrThrowForPlainDateTime(e);
853
- return createTemporalDate(o._.o, o.U);
852
+ return createTemporalDate(o.K.o, o.U);
854
853
  }
855
854
  const o = getTemporalCalendarIdentifierWithIsoDefault(e);
856
855
  return createTemporalDate(calendarDateFromFields(o, prepareCalendarFields(o, e, [
857
- Dt.t,
858
- Dt.u,
859
- Dt.P,
860
- Dt.T
856
+ Tt.t,
857
+ Tt.u,
858
+ Tt.P,
859
+ Tt.T
861
860
  ], []), getTemporalOverflowOption(getOptionsObject(t))), o);
862
861
  }
863
862
  validateString(e);
864
- const o = parseIsoDateTime(e, [Qe]), n = canonicalizeCalendar(o.U || "iso8601");
863
+ const o = parseIsoDateTime(e, [Ke]), n = canonicalizeCalendar(o.U || "iso8601");
865
864
  return getTemporalOverflowOption(getOptionsObject(t)), createTemporalDate(createIsoDateRecord(o.t, o.u, o.T), n);
866
865
  }
867
866
  function regulateIsoDate(e, t, o, n) {
868
- return "constrain" === n ? createIsoDateRecord(e, t = clamp(t, 1, 12), clamp(o, 1, isoDaysInMonth(e, t))) : (isValidIsoDate(e, t, o) || throwRangeError(me), createIsoDateRecord(e, t, o));
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));
869
868
  }
870
869
  function isValidIsoDate(e, t, o) {
871
870
  return isWithin(t, 1, 12) && isWithin(o, 1, isoDaysInMonth(e, t));
@@ -884,8 +883,8 @@ function compareIsoDate(e, t) {
884
883
  }
885
884
  function differenceTemporalPlainDate(e, t, o, n) {
886
885
  const r = getInternalSlotOrThrowForPlainDate(toTemporalDate(o));
887
- calendarEquals(t.U, r.U) || throwRangeError(De);
888
- const a = getDifferenceSettings(e, getOptionsObject(n), c, [], L, L);
886
+ calendarEquals(t.U, r.U) || throwRangeError(ue);
887
+ const a = getDifferenceSettings(e, getOptionsObject(n), l, [], x, x);
889
888
  if (!compareIsoDate(t.o, r.o)) return createTemporalDuration(createTemporalDurationSlot([
890
889
  0,
891
890
  0,
@@ -898,25 +897,25 @@ function differenceTemporalPlainDate(e, t, o, n) {
898
897
  0,
899
898
  0
900
899
  ]));
901
- let i = combineDateAndTimeDuration(calendarDateUntil(t.U, t.o, r.o, a.V), createTimeDurationFromSeconds(0));
902
- if (a.L !== L || 1 !== a.H) {
900
+ let i = combineDateAndTimeDuration(calendarDateUntil(t.U, t.o, r.o, a.V), we);
901
+ if (a.L !== x || 1 !== a.H) {
903
902
  const e = combineIsoDateAndTimeRecord(t.o, midnightTimeRecord());
904
- i = roundRelativeDuration(i, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.B);
903
+ i = roundRelativeDuration(i, getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())), e, void 0, t.U, a.V, a.H, a.L, a.q);
905
904
  }
906
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, L), e));
905
+ return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(i, x), e));
907
906
  }
908
907
  function addDurationToDate(e, t, o, n) {
909
908
  return createTemporalDate(calendarDateAdd(t.U, t.o, ((e) => {
910
909
  const t = toInternalDurationRecordWith24HourDays(e);
911
- return createDateDurationRecord(t.W.ee, t.W.te, t.W.X, t.p[0]);
910
+ return createDateDurationRecord(t.A.te, t.A.oe, t.A.ee, t.p[0]);
912
911
  })(applySignToDurationSlot(toTemporalDuration(o), e)), getTemporalOverflowOption(getOptionsObject(n))), t.U);
913
912
  }
914
913
  function getInternalSlotForPlainDate(e) {
915
- return Tt.get(e);
914
+ return mt.get(e);
916
915
  }
917
916
  function getInternalSlotOrThrowForPlainDate(e) {
918
917
  const t = getInternalSlotForPlainDate(e);
919
- return t || throwTypeError(pe), t;
918
+ return t || throwTypeError(Te), t;
920
919
  }
921
920
  function isPlainDate(e) {
922
921
  return !!getInternalSlotForPlainDate(e);
@@ -924,29 +923,33 @@ function isPlainDate(e) {
924
923
  function validateIsoDate(e) {
925
924
  return validateIsoDateTime(combineIsoDateAndTimeRecord(e, createTimeRecord(12, 0, 0, 0, 0, 0))), e;
926
925
  }
926
+ function calendarDateForPlainDate(e) {
927
+ const t = getInternalSlotOrThrowForPlainDate(e);
928
+ return calendarIsoToDate(t.U, t.o);
929
+ }
927
930
  function canonicalizeCalendar(e) {
928
- return "iso8601" !== (e = asciiLowerCase(e)) && "gregory" !== e && throwRangeError(((e) => `calendar not supported in this polyfill: ${e}`)(e)), e;
931
+ return "iso8601" !== (e = asciiLowerCase(e)) && "gregory" !== e && throwRangeError(((e) => `unsupported calendar: ${e}`)(e)), e;
929
932
  }
930
933
  function calendarDateAdd(e, t, o, n) {
931
934
  return ((e, t, o) => {
932
- const n = balanceIsoYearMonth(e.t + t.ee, e.u + t.te);
933
- return validateIsoDate(addDaysToIsoDate(regulateIsoDate(n.t, n.u, e.T, o), 7 * t.X + t.K));
935
+ const n = balanceIsoYearMonth(e.t + t.te, e.u + t.oe);
936
+ return validateIsoDate(addDaysToIsoDate(regulateIsoDate(n.t, n.u, e.T, o), 7 * t.ee + t.X));
934
937
  })(t, o, n);
935
938
  }
936
939
  function calendarDateUntil(e, t, o, n) {
937
940
  return ((e, t, o) => {
938
941
  const n = compareIsoDate(t, e);
939
942
  if (!n) return zeroDateDuration();
940
- if (o === x || o === L) {
943
+ if (o === H || o === x) {
941
944
  const n = isoDateToEpochDays(t.t, t.u - 1, t.T) - isoDateToEpochDays(e.t, e.u - 1, e.T);
942
- return o === x ? createDateDurationRecord(0, 0, divTrunc(n, 7) + 0, n % 7 + 0) : createDateDurationRecord(0, 0, 0, n);
945
+ return o === H ? createDateDurationRecord(0, 0, divTrunc(n, 7) + 0, n % 7 + 0) : createDateDurationRecord(0, 0, 0, n);
943
946
  }
944
- 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, p));
945
- return o === k ? createDateDurationRecord(divTrunc(r, 12), r % 12 + 0, 0, i) : createDateDurationRecord(0, r, 0, i);
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);
946
949
  })(t, o, n);
947
950
  }
948
951
  function calendarDateToIso(e, t, o) {
949
- return ((e, t) => regulateIsoDate(e[Dt.t], e[Dt.u], e[Dt.T], t))(t, o);
952
+ return ((e, t) => regulateIsoDate(e[Tt.t], e[Tt.u], e[Tt.T], t))(t, o);
950
953
  }
951
954
  function calendarSupportsEra(e) {
952
955
  return "gregory" === e;
@@ -958,7 +961,7 @@ function parseMonthCode(e) {
958
961
  const t = toPrimitive(e);
959
962
  validateString(t);
960
963
  const o = t.match(/M(\d\d)(L?)/);
961
- return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Fe(o[1]), !!o[2]];
964
+ return o && "M00" !== t || throwRangeError(invalidMonthCode(t)), [Oe(o[1]), !!o[2]];
962
965
  }
963
966
  function createMonthCode(e, t = !1) {
964
967
  return `M${toZeroPaddedDecimalString(e, 2)}${t ? "L" : ""}`;
@@ -969,16 +972,16 @@ function prepareCalendarFields(e, t, o, n) {
969
972
  let a = !1;
970
973
  for (const e of o) {
971
974
  const o = t[e];
972
- void 0 !== o ? (a = !0, r[e] = ht[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = ht[e][1]);
975
+ void 0 !== o ? (a = !0, r[e] = pt[e][0](o)) : n && (n.includes(e) && throwTypeError(missingField(e)), r[e] = pt[e][1]);
973
976
  }
974
- return n || a || throwTypeError(Ie), r;
977
+ return n || a || throwTypeError(ge), r;
975
978
  }
976
979
  function calendarMergeFields(e, t, o) {
977
980
  const n = ((e, t) => {
978
981
  const o = [];
979
- return void 0 !== t[Dt.u] && o.push(Dt.P), void 0 !== t[Dt.P] && o.push(Dt.u), !calendarSupportsEra(e) || void 0 === t[Dt.oe] && void 0 === t[Dt.ne] && void 0 === t[Dt.t] || o.push(Dt.oe, Dt.ne, Dt.t), o;
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;
980
983
  })(e, o), r = createEmptyCalendarFieldsRecord();
981
- for (const e of pt) void 0 === t[e] || n.includes(e) || (r[e] = t[e]), void 0 !== o[e] && (r[e] = o[e]);
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]);
982
985
  return r;
983
986
  }
984
987
  function toTemporalCalendarIdentifier(e) {
@@ -986,15 +989,15 @@ function toTemporalCalendarIdentifier(e) {
986
989
  return t ? t.U : (validateString(e), canonicalizeCalendar(((e) => {
987
990
  try {
988
991
  return parseIsoDateTime(e, [
989
- Xe,
992
+ Ge,
993
+ Ke,
990
994
  Qe,
991
995
  et,
992
996
  tt,
993
- ot,
994
- nt
997
+ ot
995
998
  ]).U || "iso8601";
996
999
  } catch {
997
- return it.test(e) || throwRangeError(se), e;
1000
+ return at.test(e) || throwRangeError(parseError(e)), e;
998
1001
  }
999
1002
  })(e)));
1000
1003
  }
@@ -1006,18 +1009,18 @@ function calendarDateFromFields(e, t, o) {
1006
1009
  return calendarResolveFields(e, t), validateIsoDate(calendarDateToIso(0, t, o));
1007
1010
  }
1008
1011
  function calendarYearMonthFromFields(e, t, o) {
1009
- return t.day = 1, calendarResolveFields(e, t, m), validateIsoYearMonth(calendarDateToIso(0, t, o));
1012
+ return t.day = 1, calendarResolveFields(e, t, d), validateIsoYearMonth(calendarDateToIso(0, t, o));
1010
1013
  }
1011
1014
  function calendarMonthDayFromFields(e, t, o) {
1012
- return calendarResolveFields(e, t, T), (function(e, t, o) {
1015
+ return calendarResolveFields(e, t, m), (function(e, t, o) {
1013
1016
  return ((e, t, o) => {
1014
- const n = regulateIsoDate(e[Dt.t] ?? 1972, e[Dt.u], e[Dt.T], t);
1017
+ const n = regulateIsoDate(e[Tt.t] ?? 1972, e[Tt.u], e[Tt.T], t);
1015
1018
  return o || validateIsoDate(n), createIsoDateRecord(1972, n.u, n.T);
1016
1019
  })(t, o, "iso8601" === e);
1017
1020
  })(e, t, o);
1018
1021
  }
1019
1022
  function formatCalendarAnnotation(e, t) {
1020
- return t === $ || t === U && "iso8601" === e ? "" : `[${t === C ? "!" : ""}u-ca=${e}]`;
1023
+ return t === j || t === M && "iso8601" === e ? "" : `[${t === $ ? "!" : ""}u-ca=${e}]`;
1021
1024
  }
1022
1025
  function calendarEquals(e, t) {
1023
1026
  return e === t;
@@ -1032,13 +1035,13 @@ function isoWeekOfYear(e) {
1032
1035
  const t = e.t, o = divFloor(isoDayOfYear(e) + 10 - isoDayOfWeek(e), 7);
1033
1036
  return o < 1 ? {
1034
1037
  t: t - 1,
1035
- re: isoWeeksInYear(t - 1)
1038
+ ae: isoWeeksInYear(t - 1)
1036
1039
  } : o > isoWeeksInYear(t) ? {
1037
1040
  t: t + 1,
1038
- re: 1
1041
+ ae: 1
1039
1042
  } : {
1040
1043
  t,
1041
- re: o
1044
+ ae: o
1042
1045
  };
1043
1046
  }
1044
1047
  function isoDayOfYear(e) {
@@ -1053,25 +1056,25 @@ function isoCalendarIsoToDate(e) {
1053
1056
  u: e.u,
1054
1057
  P: createMonthCode(e.u),
1055
1058
  T: e.T,
1056
- ae: isoDayOfWeek(e),
1057
- ie: isoDayOfYear(e),
1058
- le: isoWeekOfYear(e),
1059
- ce: 7,
1060
- se: isoDaysInMonth(e.t, e.u),
1061
- de: (t = e.t, 365 + mathematicalInLeapYear(t)),
1062
- me: 12,
1063
- ue: !!mathematicalInLeapYear(e.t)
1059
+ ie: isoDayOfWeek(e),
1060
+ le: isoDayOfYear(e),
1061
+ ce: isoWeekOfYear(e),
1062
+ se: 7,
1063
+ de: isoDaysInMonth(e.t, e.u),
1064
+ me: (t = e.t, 365 + mathematicalInLeapYear(t)),
1065
+ ue: 12,
1066
+ Te: !!mathematicalInLeapYear(e.t)
1064
1067
  };
1065
1068
  var t;
1066
1069
  }
1067
1070
  function calendarIsoToDate(e, t) {
1068
1071
  return "iso8601" === e ? isoCalendarIsoToDate(t) : ((e, t) => ({
1069
- oe: t.t > 0 ? "ce" : "bce",
1070
- ne: t.t > 0 ? t.t : 1 - t.t,
1072
+ ne: t.t > 0 ? "ce" : "bce",
1073
+ re: t.t > 0 ? t.t : 1 - t.t,
1071
1074
  ...isoCalendarIsoToDate(t),
1072
- le: {
1075
+ ce: {
1073
1076
  t: void 0,
1074
- re: void 0
1077
+ ae: void 0
1075
1078
  }
1076
1079
  }))(0, t);
1077
1080
  }
@@ -1079,20 +1082,20 @@ function calendarExtraFields(e, t) {
1079
1082
  return calendarSupportsEra(e) && t.includes("year") ? ["era", "eraYear"] : [];
1080
1083
  }
1081
1084
  function isoResolveFields(e, t) {
1082
- t !== T && void 0 === e[Dt.t] && throwTypeError(missingField(Dt.t)), t !== m && void 0 === e[Dt.T] && throwTypeError(missingField(Dt.T)), void 0 === e[Dt.P] && void 0 === e[Dt.u] && throwTypeError(missingField("month, monthCode"));
1083
- const o = mapUnlessUndefined(e[Dt.P], parseMonthCode);
1084
- o && ((o[0] > 12 || o[1] || void 0 !== e[Dt.u] && o[0] !== e[Dt.u]) && throwRangeError(ge), e[Dt.u] = o[0]);
1085
- }
1086
- function calendarResolveFields(e, t, o = c) {
1087
- "iso8601" === e ? isoResolveFields(t, o) : (function(e, t, o = c) {
1088
- const n = t[Dt.oe], r = t[Dt.ne];
1089
- let a = t[Dt.t];
1090
- const i = t[Dt.P], l = t[Dt.u], s = t[Dt.T];
1091
- if (o === T && void 0 !== i && void 0 === l || void 0 !== a || void 0 !== n && void 0 !== r || throwTypeError(missingField("year, era, eraYear")), void 0 === n != (void 0 === r) && throwTypeError(), o !== m && void 0 === s && throwTypeError(missingField("day")), l === i && throwTypeError(missingField("month, monthCode")), void 0 !== r) {
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) {
1092
1095
  const e = ((e, t, o) => "ce" === canonicalizeEraInCalendar(0, t) ? o : 1 - o)(0, canonicalizeEraInCalendar(0, n), r);
1093
- void 0 !== a && a !== e && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Dt.t] = e;
1096
+ void 0 !== a && a !== e && throwRangeError("mismatch of `year`, `era` and `eraYear`"), t[Tt.t] = e;
1094
1097
  }
1095
- t[Dt.oe] = t[Dt.ne] = void 0, isoResolveFields(t, o);
1098
+ t[Tt.ne] = t[Tt.re] = void 0, isoResolveFields(t, o);
1096
1099
  })(0, t, o);
1097
1100
  }
1098
1101
  function createEmptyCalendarFieldsRecord() {
@@ -1102,7 +1105,7 @@ function zeroDateDuration() {
1102
1105
  return createDateDurationRecord(0, 0, 0, 0);
1103
1106
  }
1104
1107
  function toInternalDurationRecord(e) {
1105
- return combineDateAndTimeDuration(createDateDurationRecord(e[_], e[K], e[X], e[Q]), timeDurationFromComponents(e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1108
+ return combineDateAndTimeDuration(createDateDurationRecord(e[_], e[X], e[G], e[K]), timeDurationFromComponents(e[Q], e[ee], e[te], e[oe], e[ne], e[re]));
1106
1109
  }
1107
1110
  function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1108
1111
  return combineDateAndTimeDuration(createDateDurationRecord(e, t, o, 0), add24HourDaysToTimeDuration(timeDurationFromComponents(...r), n));
@@ -1110,34 +1113,34 @@ function toInternalDurationRecordWith24HourDays([e, t, o, n, ...r]) {
1110
1113
  function temporalDurationFromInternal(e, t) {
1111
1114
  const [o, ...n] = balanceTimeDuration(e.p, t);
1112
1115
  return createTemporalDurationSlot([
1113
- e.W.ee,
1114
- e.W.te,
1115
- e.W.X,
1116
- e.W.K + o,
1116
+ e.A.te,
1117
+ e.A.oe,
1118
+ e.A.ee,
1119
+ e.A.X + o,
1117
1120
  ...n
1118
1121
  ]);
1119
1122
  }
1120
1123
  function createDateDurationRecord(e, t, o, n) {
1121
1124
  return validateDuration(e, t, o, n, 0, 0, 0, 0, 0, 0), {
1122
- ee: e,
1123
- te: t,
1124
- X: o,
1125
- K: n
1125
+ te: e,
1126
+ oe: t,
1127
+ ee: o,
1128
+ X: n
1126
1129
  };
1127
1130
  }
1128
- function adjustDateDurationRecord(e, t, o = e.X, n = e.te) {
1129
- return createDateDurationRecord(e.ee, n, o, t);
1131
+ function adjustDateDurationRecord(e, t, o = e.ee, n = e.oe) {
1132
+ return createDateDurationRecord(e.te, n, o, t);
1130
1133
  }
1131
1134
  function combineDateAndTimeDuration(e, t) {
1132
1135
  return {
1133
- W: e,
1136
+ A: e,
1134
1137
  p: t
1135
1138
  };
1136
1139
  }
1137
1140
  function toTemporalDuration(e) {
1138
- return t = e, gt.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1141
+ return t = e, ht.has(t) ? getInternalSlotOrThrowForDuration(e) : isObject(e) ? createTemporalDurationSlot(toTemporalPartialDurationRecord(e).map((e) => e || 0)) : (validateString(e), ((e) => {
1139
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)?)?$/);
1140
- t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(se);
1143
+ t && !/[pt]$|[.,](\d{1,9})[hms]./.test(e) || throwRangeError(parseError(e));
1141
1144
  const o = balanceTime(0, 0, 0, 0, 0, 3600 * toIntegerWithTruncation((t[7] || "").padEnd(9, "0")) + 60 * toIntegerWithTruncation((t[9] || "").padEnd(9, "0")) + toIntegerWithTruncation((t[11] || "").padEnd(9, "0")));
1142
1145
  return applySignToDurationSlot(createTemporalDurationSlot([
1143
1146
  toIntegerWithTruncation(t[2] || ""),
@@ -1147,27 +1150,31 @@ function toTemporalDuration(e) {
1147
1150
  toIntegerWithTruncation(t[6] || ""),
1148
1151
  toIntegerWithTruncation(t[8] || "") + o.I,
1149
1152
  toIntegerWithTruncation(t[10] || "") + o.O,
1150
- o.S,
1151
1153
  o.F,
1154
+ o.S,
1152
1155
  o.v
1153
1156
  ]), toIntegerWithTruncation(`${t[1]}1`));
1154
1157
  })(e));
1155
1158
  var t;
1156
1159
  }
1157
1160
  function durationSign(e) {
1158
- return sign(e.find((e) => 0 !== e) || 0);
1161
+ return sign(e.find((e) => e) || 0);
1159
1162
  }
1160
1163
  function dateDurationSign(e) {
1161
- return sign(e.ee || e.te || e.X || e.K);
1164
+ return sign(e.te || e.oe || e.ee || e.X);
1162
1165
  }
1163
1166
  function internalDurationSign(e) {
1164
- return dateDurationSign(e.W) || ft(e.p);
1167
+ return dateDurationSign(e.A) || gt(e.p);
1165
1168
  }
1166
1169
  function validateDuration(...e) {
1167
- e.some((e) => e < 0) && e.some((e) => e > 0) && throwRangeError("invalid duration"), e.every((e) => Math.abs(e) < 1e25) && Math.abs(e[_]) < 2 ** 32 && Math.abs(e[K]) < 2 ** 32 && Math.abs(e[X]) < 2 ** 32 || throwRangeError(Te), validateTimeDurationRange(timeDurationFromComponents(24 * e[Q] + e[ee], e[te], e[oe], e[ne], e[re], e[ae]));
1170
+ 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]));
1168
1175
  }
1169
1176
  function defaultTemporalLargestUnit(e) {
1170
- return (e.findIndex((e) => 0 !== e) + 10) % 10;
1177
+ return (e.findIndex((e) => e) + 10) % 10;
1171
1178
  }
1172
1179
  function toTemporalPartialDurationRecord(e) {
1173
1180
  isObject(e) || throwTypeError(notObject(e));
@@ -1182,8 +1189,8 @@ function toTemporalPartialDurationRecord(e) {
1182
1189
  6,
1183
1190
  2,
1184
1191
  0
1185
- ].map((t) => mapUnlessUndefined(e[le[t]], toIntegerIfIntegral));
1186
- return t.every((e) => void 0 === e) && throwTypeError(Ie), [
1192
+ ].map((t) => mapUnlessUndefined(e[ie[t]], toIntegerIfIntegral));
1193
+ return t.some((e) => void 0 !== e) || throwTypeError(ge), [
1187
1194
  9,
1188
1195
  5,
1189
1196
  8,
@@ -1199,12 +1206,11 @@ function toTemporalPartialDurationRecord(e) {
1199
1206
  function createTemporalDurationSlot(e) {
1200
1207
  return validateDuration(...e), e;
1201
1208
  }
1202
- function createTemporalDuration(e, t = Object.create(It.prototype)) {
1203
- return gt.set(t, e), t;
1209
+ function createTemporalDuration(e, t = Object.create(ft.prototype)) {
1210
+ return ht.set(t, e), t;
1204
1211
  }
1205
- function timeDurationFromComponents(e, t, o, n, l, c) {
1206
- return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromSeconds(3600 * e + 60 * t + o), normalize(divTrunc(m = n, r), m % r * 1e6)), (d = l, normalize(Math.round((d - d % a) / a), d % a * 1e3))), (s = c, normalize(Math.round((s - s % i) / i), s % i)));
1207
- var s, d, m;
1212
+ function timeDurationFromComponents(e, t, o, n, r, a) {
1213
+ return addTimeDuration(addTimeDuration(addTimeDuration(createTimeDurationFromUnit(3600 * e + 60 * t + o, 1e9), createTimeDurationFromUnit(n, 1e6)), createTimeDurationFromUnit(r, 1e3)), createTimeDurationFromUnit(a, 1));
1208
1214
  }
1209
1215
  function add24HourDaysToTimeDuration(e, t) {
1210
1216
  return validateTimeDurationRange(((e, t) => normalize(e[0] + t, e[1]))(e, t));
@@ -1213,11 +1219,11 @@ function timeDurationFromEpochNanosecondsDifference(e, t) {
1213
1219
  return differenceEpochNanoseconds(t, e);
1214
1220
  }
1215
1221
  function roundTimeDurationToIncrement(e, t, o) {
1216
- return validateTimeDurationRange(((e, t, o) => normalize(2 * divTrunc(e[0], 2), roundNumberToIncrement(e[1] + e[0] % 2 * i, t, o)))(e, t, o));
1222
+ return validateTimeDurationRange(((e, t, o) => normalize(2 * divTrunc(e[0], 2), roundNumberToIncrement(e[1] + e[0] % 2 * a, t, o)))(e, t, o));
1217
1223
  }
1218
1224
  function dateDurationDays(e, t) {
1219
1225
  const o = adjustDateDurationRecord(e, 0);
1220
- return dateDurationSign(e) ? e.K + isoDateRecordToEpochDays(calendarDateAdd(t.U, t.o, o, p)) - isoDateRecordToEpochDays(t.o) : e.K;
1226
+ return dateDurationSign(e) ? e.X + isoDateRecordToEpochDays(calendarDateAdd(t.U, t.o, o, D)) - isoDateRecordToEpochDays(t.o) : e.X;
1221
1227
  }
1222
1228
  function roundTimeDuration(e, t, o, n) {
1223
1229
  return roundTimeDurationToIncrement(e, nanosecondsForTimeUnit(o) * t, n);
@@ -1226,86 +1232,85 @@ function totalTimeDuration(e, t) {
1226
1232
  return divideTimeDurationToFloatingPoint(e, nanosecondsForTimeUnit(t));
1227
1233
  }
1228
1234
  function computeNudgeWindow(e, t, o, n, r, a, i, l, c) {
1229
- let s, d, m, T, u;
1230
- if (l === k) s = roundNumberToIncrement(t.W.ee, i, P) + (c ? i * e : 0), d = s + i * e, m = createDateDurationRecord(s, 0, 0, 0), T = createDateDurationRecord(d, 0, 0, 0);
1231
- else if (l === H) s = roundNumberToIncrement(t.W.te, i, P) + (c ? i * e : 0), d = s + i * e, m = adjustDateDurationRecord(t.W, 0, 0, s), T = adjustDateDurationRecord(t.W, 0, 0, d);
1232
- else if (l === x) {
1233
- const o = calendarDateAdd(0, n.o, adjustDateDurationRecord(t.W, 0, 0), p);
1234
- s = roundNumberToIncrement(t.W.X + calendarDateUntil(0, o, addDaysToIsoDate(o, t.W.K), x).X, i, P), d = s + i * e, m = adjustDateDurationRecord(t.W, 0, s), T = adjustDateDurationRecord(t.W, 0, d);
1235
- } else s = roundNumberToIncrement(t.W.K, i, P), d = s + i * e, m = adjustDateDurationRecord(t.W, s), T = adjustDateDurationRecord(t.W, d);
1236
- if (0 === s) u = o;
1237
- else {
1238
- const e = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, m, p), n.p);
1239
- u = r ? getEpochNanosecondsFor(r, e, g) : getUtcEpochNanoseconds(e);
1240
- }
1241
- const D = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, T, p), n.p);
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);
1242
1247
  return {
1243
- Te: s,
1244
- De: d,
1245
- pe: u,
1246
- he: r ? getEpochNanosecondsFor(r, D, g) : getUtcEpochNanoseconds(D),
1247
- ge: m,
1248
- fe: T
1248
+ De: s,
1249
+ pe: d,
1250
+ he: T,
1251
+ ge: r ? getEpochNanosecondsFor(r, p, h) : getUtcEpochNanoseconds(p),
1252
+ fe: m,
1253
+ Ie: u
1249
1254
  };
1250
1255
  }
1251
1256
  function nudgeToCalendarUnit(e, t, o, n, r, a, i, l, c, s) {
1252
1257
  let d = !1, m = computeNudgeWindow(e, t, o, r, a, 0, l, c, !1);
1253
- compareEpochNanoseconds(m.pe, n) * compareEpochNanoseconds(m.he, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, 0, l, c, !0), d = !0);
1254
- const T = differenceEpochNanoseconds(m.pe, n), u = differenceEpochNanoseconds(m.pe, m.he);
1255
- let D = m.ge, p = m.pe;
1256
- return roundNumberToIncrement(m.Te + ((e, t, o) => signTimeDuration(e) ? ye(e, t) ? ye(addTimeDuration(e, e), t) * o / 5 + .5 : 1 : 0)(T, u, e) * l * e, l, s) === m.De && (d = !0, D = m.fe, p = m.he), {
1257
- Ie: {
1258
- Oe: combineDateAndTimeDuration(D, createTimeDurationFromSeconds(0)),
1258
+ compareEpochNanoseconds(m.he, n) * compareEpochNanoseconds(m.ge, n) > 0 && (m = computeNudgeWindow(e, t, o, r, a, 0, l, c, !0), d = !0);
1259
+ const u = differenceEpochNanoseconds(m.he, n), T = differenceEpochNanoseconds(m.he, m.ge);
1260
+ 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), {
1262
+ Oe: {
1263
+ Fe: combineDateAndTimeDuration(D, we),
1259
1264
  Se: p,
1260
- Fe: d
1265
+ we: d
1261
1266
  },
1262
- we: m.Te + divideTimeDurationToFloatingPoint(T, 1e9) / divideTimeDurationToFloatingPoint(u, 1e9) * l * e
1267
+ ve: m.De + divideTimeDurationToFloatingPoint(u, 1e9) / divideTimeDurationToFloatingPoint(T, 1e9) * l * e
1263
1268
  };
1264
1269
  }
1265
1270
  function roundRelativeDuration(e, t, o, n, r, a, i, l, c, s) {
1266
- const d = internalDurationSign(e) || 1, m = isCalendarUnit(c) || r && c === L ? nudgeToCalendarUnit(d, e, t, o, n, r, 0, l, c, s).Ie : r ? ((e, t, o, n, r, a, i, l) => {
1267
- const c = calendarDateAdd(0, o.o, t.W, p), s = combineIsoDateAndTimeRecord(c, o.p), d = combineIsoDateAndTimeRecord(addDaysToIsoDate(c, e), o.p), m = getEpochNanosecondsFor(n, s, g), T = getEpochNanosecondsFor(n, d, g), u = timeDurationFromEpochNanosecondsDifference(T, m), D = nanosecondsForTimeUnit(i);
1268
- let h = roundTimeDurationToIncrement(t.p, a * D, l);
1269
- const f = addTimeDuration(h, negateTimeDuration(u));
1270
- let I, O = !1, S = 0;
1271
- return ft(f) !== -e ? (O = !0, S = e, h = roundTimeDurationToIncrement(f, a * D, l), I = addTimeDurationToEpochNanoseconds(T, h)) : I = addTimeDurationToEpochNanoseconds(T, h), {
1272
- Oe: combineDateAndTimeDuration(adjustDateDurationRecord(t.W, t.W.K + S), h),
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),
1273
1278
  Se: I,
1274
- Fe: O
1279
+ we: O
1275
1280
  };
1276
1281
  })(d, e, n, r, 0, l, c, s) : (function(e, t, o, n, r, a) {
1277
- const i = add24HourDaysToTimeDuration(e.p, e.W.K), l = r === L ? roundTimeDurationByDays(i, n, a) : roundTimeDurationToIncrement(i, nanosecondsForTimeUnit(r) * n, a), c = l[0], [s, d] = isDateUnit(o) ? [c, addTimeDuration(l, timeDurationFromComponents(24 * -c, 0, 0, 0, 0, 0))] : [0, l];
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];
1278
1283
  return {
1279
- Oe: combineDateAndTimeDuration(adjustDateDurationRecord(e.W, s), d),
1284
+ Fe: combineDateAndTimeDuration(adjustDateDurationRecord(e.A, s), d),
1280
1285
  Se: addTimeDurationToEpochNanoseconds(t, addTimeDuration(l, negateTimeDuration(i))),
1281
- Fe: sign(c - i[0]) === ft(i)
1286
+ we: sign(c - i[0]) === gt(i)
1282
1287
  };
1283
1288
  })(e, o, i, l, c, s);
1284
- return m.Fe && c !== x ? ((e, t, o, n, r, a, i, l) => {
1289
+ return m.we && c !== H ? ((e, t, o, n, r, a, i, l) => {
1285
1290
  if (l === i) return t;
1286
1291
  const c = i;
1287
1292
  let s;
1288
- for (let a = l - 1; a >= c; a--) if (a !== X || c === X) {
1289
- s = a === _ ? createDateDurationRecord(t.W.ee + e, 0, 0, 0) : a === K ? adjustDateDurationRecord(t.W, 0, 0, t.W.te + e) : adjustDateDurationRecord(t.W, 0, t.W.X + e);
1290
- const i = combineIsoDateAndTimeRecord(calendarDateAdd(0, n.o, s, p), n.p);
1291
- if (ft(differenceEpochNanoseconds(r ? getEpochNanosecondsFor(r, i, "compatible") : getUtcEpochNanoseconds(i), o)) === -e) break;
1292
- t = combineDateAndTimeDuration(s, createTimeDurationFromSeconds(0));
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);
1293
1298
  }
1294
1299
  return t;
1295
- })(d, m.Oe, m.Se, n, r, 0, i, largerOfTwoTemporalUnits(c, L)) : m.Oe;
1300
+ })(d, m.Fe, m.Se, n, r, 0, i, largerOfTwoTemporalUnits(c, x)) : m.Fe;
1296
1301
  }
1297
1302
  function totalRelativeDuration(e, t, o, n, r, a, i) {
1298
- return isCalendarUnit(i) || r && i === L ? nudgeToCalendarUnit(internalDurationSign(e) || 1, e, t, o, n, r, 0, 1, i, P).we : totalTimeDuration(add24HourDaysToTimeDuration(e.p, e.W.K), i);
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);
1299
1304
  }
1300
1305
  function temporalDurationToString(e, t) {
1301
- const o = durationSign(e), n = timeDurationFromComponents(0, 0, (e = applySignToDurationSlot(e, o))[oe], e[ne], e[re], e[ae]), [, , , r, a, i, l] = balanceTimeDuration(n, J), [c, s, d, m, T, u] = [
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] = [
1302
1307
  "Y",
1303
1308
  "M",
1304
1309
  "W",
1305
1310
  "D",
1306
1311
  "H",
1307
1312
  "M"
1308
- ].map((t, o) => e[o] ? `${e[o]}${t}` : ""), D = `${T}${u}${ft(n) || defaultTemporalLargestUnit(e) >= J || void 0 !== t ? `${toString(r)}${formatFractionalSeconds(1e6 * a + 1e3 * i + l, t)}S` : ""}`;
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` : ""}`;
1309
1314
  return `${o < 0 ? "-" : ""}P${c}${s}${d}${m}${D && `T${D}`}`;
1310
1315
  }
1311
1316
  function addDurations(e, t, o) {
@@ -1313,14 +1318,14 @@ function addDurations(e, t, o) {
1313
1318
  return isCalendarUnit(r) && throwRangeError(durationWithDateUnit(r)), createTemporalDuration(temporalDurationFromInternal(combineDateAndTimeDuration(zeroDateDuration(), addTimeDuration(toInternalDurationRecordWith24HourDays(t).p, toInternalDurationRecordWith24HourDays(n).p)), r));
1314
1319
  }
1315
1320
  function getInternalSlotOrThrowForDuration(e) {
1316
- const t = gt.get(e);
1317
- return t || throwTypeError(pe), t;
1321
+ const t = ht.get(e);
1322
+ return t || throwTypeError(Te), t;
1318
1323
  }
1319
1324
  function applySignToDurationSlot(e, t) {
1320
1325
  return createTemporalDurationSlot(e.map((e) => e * t + 0));
1321
1326
  }
1322
1327
  function validateTimeDurationRange(e) {
1323
- return ((e) => ye(absTimeDuration(e), createTimeDurationFromSeconds(2 ** 53)) < 0)(e) || throwRangeError(Te), e;
1328
+ return ((e) => ve(absTimeDuration(e), createTimeDurationFromUnit(2 ** 53, 1e9)) < 0)(e) || throwRangeError(de), e;
1324
1329
  }
1325
1330
  function balanceTimeDuration(e, t) {
1326
1331
  const o = clamp(t, 3, 9);
@@ -1332,8 +1337,8 @@ function balanceTimeDuration(e, t) {
1332
1337
  0,
1333
1338
  0,
1334
1339
  0
1335
- ].slice(0, o - Q),
1336
- o > oe ? timeDurationToSubsecondsNumber(e, 18 - 3 * o) : divTrunc((r = e, r[0] * n + divTrunc(r[1], 1e9)), ce[o - Q] / 1e9),
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),
1337
1342
  ...[
1338
1343
  0,
1339
1344
  1,
@@ -1341,7 +1346,7 @@ function balanceTimeDuration(e, t) {
1341
1346
  3,
1342
1347
  4,
1343
1348
  5
1344
- ].map((t) => divTrunc(e[1], ce[t + 1]) % (ce[t] / ce[t + 1]) + 0).slice(o - Q)
1349
+ ].map((t) => divTrunc(e[1], le[t + 1]) % (le[t] / le[t + 1]) + 0).slice(o - K)
1345
1350
  ];
1346
1351
  var r;
1347
1352
  }
@@ -1362,7 +1367,7 @@ function roundHalfEven(e) {
1362
1367
  }
1363
1368
  function isoDateToEpochDays(e, t, o) {
1364
1369
  const n = balanceIsoYearMonth(e, t + 1);
1365
- return Date.UTC(n.t % 400 - 400, n.u - 1, 0) / r + (divTrunc(n.t, 400) + 1) * l + o;
1370
+ return Date.UTC(n.t % 400 - 400, n.u - 1, 0) / r + (divTrunc(n.t, 400) + 1) * i + o;
1366
1371
  }
1367
1372
  function isoDateRecordToEpochDays(e) {
1368
1373
  return isoDateToEpochDays(e.t, e.u - 1, e.T);
@@ -1371,110 +1376,109 @@ function mathematicalInLeapYear(e) {
1371
1376
  return +!(e % (e % 25 ? 4 : 16));
1372
1377
  }
1373
1378
  function getTemporalOverflowOption(e) {
1374
- return getOption(e, "overflow", [p, h], p);
1379
+ return getOption(e, "overflow", [D, p], D);
1375
1380
  }
1376
1381
  function getTemporalDisambiguationOption(e) {
1377
1382
  return getOption(e, "disambiguation", [
1378
- g,
1383
+ h,
1379
1384
  "earlier",
1380
- f,
1385
+ g,
1381
1386
  "reject"
1382
- ], g);
1387
+ ], h);
1383
1388
  }
1384
1389
  function negateRoundingMode(e) {
1385
- return "ceil" === e ? y : "floor" === e ? v : "halfCeil" === e ? b : "halfFloor" === e ? R : e;
1390
+ return "ceil" === e ? v : "floor" === e ? w : "halfCeil" === e ? R : "halfFloor" === e ? P : e;
1386
1391
  }
1387
1392
  function getTemporalOffsetOption(e, t) {
1388
1393
  return getOption(e, "offset", [
1389
- I,
1394
+ f,
1390
1395
  "use",
1391
1396
  "ignore",
1392
- O
1397
+ I
1393
1398
  ], t);
1394
1399
  }
1395
1400
  function getTemporalShowCalendarNameOption(e) {
1396
1401
  return getOption(e, "calendarName", [
1402
+ M,
1397
1403
  U,
1398
1404
  j,
1399
- $,
1400
- C
1401
- ], U);
1405
+ $
1406
+ ], M);
1402
1407
  }
1403
1408
  function validateTemporalRoundingIncrement(e, t, o) {
1404
- (e > (o ? t : t - 1) || t % e !== 0) && throwRangeError(invalidField("roundingIncrement"));
1409
+ (e > (o ? t : t - 1) || t % e) && throwRangeError(invalidField("roundingIncrement"));
1405
1410
  }
1406
1411
  function getTemporalFractionalSecondDigitsOption(e) {
1407
1412
  const t = "fractionalSecondDigits", o = e[t];
1408
- if (void 0 === o) return;
1409
- if ("number" != typeof o) return void ("auto" !== toString(o) && throwRangeError(invalidField(t)));
1410
- !isNaN(o) && isFinite(o) || throwRangeError(invalidField(t));
1411
- const n = Math.floor(o);
1412
- return isWithin(n, 0, 9) || throwRangeError(invalidField(t)), n;
1413
+ if (void 0 !== o) {
1414
+ if ("number" == typeof o) return isWithin(Math.floor(o), 0, 9) || throwRangeError(invalidField(t)), 0 | o;
1415
+ "auto" !== toString(o) && throwRangeError(invalidField(t));
1416
+ }
1413
1417
  }
1414
1418
  function toSecondsStringPrecisionRecord(e, t) {
1415
1419
  return e ? {
1416
- ve: e === q ? D : 3 * (e - 6),
1417
- ye: e,
1418
- Ee: 1
1420
+ ye: e === q ? T : 3 * (e - 6),
1421
+ Ee: e,
1422
+ Pe: 1
1419
1423
  } : {
1420
- ve: t,
1421
- ye: divFloor((t ?? 9) - 1, 3) + 7,
1422
- Ee: 10 ** ((9 - (t ?? 9)) % 3)
1424
+ ye: t,
1425
+ Ee: divFloor((t ?? 9) - 1, 3) + 7,
1426
+ Pe: 10 ** ((9 - (t ?? 9)) % 3)
1423
1427
  };
1424
1428
  }
1425
1429
  function getTemporalUnitValuedOption(e, t, o) {
1426
1430
  return mapUnlessUndefined(getOption(e, t, [
1431
+ ...ae,
1427
1432
  ...ie,
1428
- ...le,
1429
1433
  "auto"
1430
1434
  ], o), (e) => {
1431
- return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), ie.indexOf(t));
1435
+ return "auto" === e ? "auto" : (t = e.replace(/s$/, ""), ae.indexOf(t));
1432
1436
  var t;
1433
1437
  });
1434
1438
  }
1435
1439
  function validateTemporalUnitValue(e, t, o = []) {
1436
- void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= L && t === s || e > L && t === c) && throwRangeError(disallowedUnit(e)));
1440
+ void 0 === e || o.includes(e) || ("auto" === e && throwRangeError(disallowedUnit(e)), (e <= x && t === c || e > x && t === l) && throwRangeError(disallowedUnit(e)));
1437
1441
  }
1438
1442
  function getTemporalRelativeToOption(e) {
1439
1443
  const t = e.relativeTo;
1440
1444
  if (void 0 === t) return createNullPrototypeObject();
1441
- let o, n, r, a, i, l = !0, c = S;
1445
+ let o, n, r, a, i, l = !0, c = O;
1442
1446
  if (isObject(t)) {
1443
- if (isZonedDateTime(t)) return createNullPrototypeObject({ Pe: getInternalSlotOrThrowForZonedDateTime(t) });
1444
- if (isPlainDate(t)) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForPlainDate(t) });
1447
+ if (isZonedDateTime(t)) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForZonedDateTime(t) });
1448
+ if (isPlainDate(t)) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(t) });
1445
1449
  const e = getInternalSlotForPlainDateTime(t);
1446
- if (e) return createNullPrototypeObject({ Re: getInternalSlotOrThrowForPlainDate(createTemporalDate(e._.o, e.U)) });
1450
+ if (e) return createNullPrototypeObject({ be: getInternalSlotOrThrowForPlainDate(createTemporalDate(e.K.o, e.U)) });
1447
1451
  r = getTemporalCalendarIdentifierWithIsoDefault(t);
1448
1452
  const l = prepareCalendarFields(r, t, [
1449
- Dt.t,
1450
- Dt.u,
1451
- Dt.P,
1452
- Dt.T,
1453
- Dt.D,
1454
- Dt.I,
1455
- Dt.O,
1456
- Dt.S,
1457
- Dt.F,
1458
- Dt.v,
1459
- Dt.R,
1460
- Dt.Z
1461
- ], []), s = interpretTemporalDateTimeFields(r, l, p);
1462
- a = s.o, i = s.p, o = l.timeZone, n = l.offset, c = n ? S : w;
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;
1463
1467
  } else {
1464
1468
  validateString(t);
1465
- const e = parseIsoDateTime(t, [Xe, Qe]);
1466
- n = e.Z.$, e.Z.N ? (o = toTemporalTimeZoneIdentifier(e.Z.N), c = e.Z.M ? F : n ? S : w, l = void 0 !== n && hasUtcOffsetSubMinuteParts(n)) : o = void 0, r = canonicalizeCalendar(e.U || "iso8601"), a = createIsoDateRecord(e.t, e.u, e.T), i = e.p;
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;
1467
1471
  }
1468
- return createNullPrototypeObject(o ? { Pe: getInternalSlotOrThrowForZonedDateTime(createTemporalZonedDateTime(interpretISODateTimeOffset(a, i, c, c === S ? parseDateTimeUtcOffset(n) : 0, o, g, O, l), o, r)) } : { Re: getInternalSlotOrThrowForPlainDate(createTemporalDate(a, r)) });
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)) });
1469
1473
  }
1470
1474
  function largerOfTwoTemporalUnits(e, t) {
1471
1475
  return e < t ? e : t;
1472
1476
  }
1473
1477
  function isCalendarUnit(e) {
1474
- return e < L;
1478
+ return e < x;
1475
1479
  }
1476
1480
  function isDateUnit(e) {
1477
- return e <= L;
1481
+ return e <= x;
1478
1482
  }
1479
1483
  function maximumTemporalDurationRoundingIncrement(e) {
1480
1484
  return [
@@ -1488,16 +1492,17 @@ function validatePartialTemporalObject(e) {
1488
1492
  }
1489
1493
  function formatFractionalSeconds(e, t) {
1490
1494
  const o = toZeroPaddedDecimalString(e, 9);
1491
- return void 0 === t ? 0 === e ? "" : `.${o.replace(/0*$/, "")}` : 0 === t ? "" : `.${o.slice(0, t)}`;
1495
+ return void 0 === t ? e ? `.${o.replace(/0*$/, "")}` : "" : t ? `.${o.slice(0, t)}` : "";
1492
1496
  }
1493
1497
  function formatTimeString(e, t, o, n, r) {
1494
- return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === D ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
1498
+ return `${toZeroPaddedDecimalString(e, 2)}:${toZeroPaddedDecimalString(t, 2)}${r === T ? "" : `:${toZeroPaddedDecimalString(o, 2)}${formatFractionalSeconds(n, r)}`}`;
1495
1499
  }
1496
1500
  function roundNumberToIncrement(e, t, o) {
1497
- return Ot[o](e / t) * t;
1501
+ return It[o](e / t) * t;
1498
1502
  }
1499
1503
  function getRoundingModeOption(e, t) {
1500
1504
  return getOption(e, "roundingMode", [
1505
+ w,
1501
1506
  v,
1502
1507
  y,
1503
1508
  E,
@@ -1505,57 +1510,56 @@ function getRoundingModeOption(e, t) {
1505
1510
  R,
1506
1511
  b,
1507
1512
  Z,
1508
- N,
1509
- M
1513
+ N
1510
1514
  ], t);
1511
1515
  }
1512
1516
  function getRoundingIncrementOption(e) {
1513
1517
  const t = "roundingIncrement", o = mapUnlessUndefined(e[t], toIntegerWithTruncation) ?? 1;
1514
- return (o < 1 || o > 1e9) && throwRangeError(invalidField(t)), o;
1518
+ return isWithin(o, 1, 1e9) || throwRangeError(invalidField(t)), o;
1515
1519
  }
1516
1520
  function isoDateToFields(e, t, o) {
1517
1521
  const n = calendarIsoToDate(e, t);
1518
1522
  return createNullPrototypeObject({
1519
- [Dt.t]: o === T ? void 0 : n.t,
1520
- [Dt.P]: n.P,
1521
- [Dt.T]: o === m ? void 0 : n.T
1523
+ [Tt.t]: o === m ? void 0 : n.t,
1524
+ [Tt.P]: n.P,
1525
+ [Tt.T]: o === d ? void 0 : n.T
1522
1526
  });
1523
1527
  }
1524
1528
  function getDifferenceSettings(e, t, o, n, r, a) {
1525
1529
  let i = getTemporalUnitValuedOption(t, "largestUnit", void 0) ?? "auto";
1526
- const l = getRoundingIncrementOption(t), c = getRoundingModeOption(t, P), s = getTemporalUnitValuedOption(t, "smallestUnit", void 0) ?? r;
1527
- return validateTemporalUnitValue(i, o, ["auto"]), n.includes(i) && throwRangeError(disallowedUnit(i)), validateTemporalUnitValue(s, o), n.includes(s) && throwRangeError(disallowedUnit(s)), "auto" === i && (i = largerOfTwoTemporalUnits(a, s)), i > s && throwRangeError(he), isDateUnit(s) || validateTemporalRoundingIncrement(l, maximumTemporalDurationRoundingIncrement(s), !1), {
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), {
1528
1532
  L: s,
1529
1533
  V: i,
1530
- B: -1 === e ? negateRoundingMode(c) : c,
1534
+ q: -1 === e ? negateRoundingMode(c) : c,
1531
1535
  H: l
1532
1536
  };
1533
1537
  }
1534
1538
  function getUtcEpochNanoseconds(e) {
1535
- return addNanosecondsToEpochSeconds(createEpochNanosecondsFromEpochMilliseconds(utcEpochMilliseconds(e.o.t, e.o.u, e.o.T, e.p.D, e.p.I, e.p.O, e.p.S)), 1e3 * e.p.F + e.p.v);
1539
+ return addNanosecondsToEpochSeconds(createEpochNanosecondsFromEpochMilliseconds(utcEpochMilliseconds(e.o.t, e.o.u, e.o.T, e.p.D, e.p.I, e.p.O, e.p.F)), 1e3 * e.p.S + e.p.v);
1536
1540
  }
1537
1541
  function epochDaysToIsoDate(e) {
1538
- const t = new Date(modFloor(e, l) * r);
1542
+ const t = new Date(modFloor(e, i) * r);
1539
1543
  return {
1540
- t: t.getUTCFullYear() + 400 * divFloor(e, l),
1544
+ t: t.getUTCFullYear() + 400 * divFloor(e, i),
1541
1545
  u: t.getUTCMonth() + 1,
1542
1546
  T: t.getUTCDate()
1543
1547
  };
1544
1548
  }
1545
1549
  function isoDateTimeToFields(e, t) {
1546
1550
  return createNullPrototypeObject({
1547
- ...isoDateToFields(e, t.o, c),
1548
- [Dt.D]: t.p.D,
1549
- [Dt.I]: t.p.I,
1550
- [Dt.O]: t.p.O,
1551
- [Dt.S]: t.p.S,
1552
- [Dt.F]: t.p.F,
1553
- [Dt.v]: t.p.v
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
1554
1558
  });
1555
1559
  }
1556
1560
  function getInternalSlotOrThrowForDateTimeFormat(e) {
1557
- const t = wt.get(e);
1558
- return t || throwTypeError(pe), t;
1561
+ const t = St.get(e);
1562
+ return t || throwTypeError(Te), t;
1559
1563
  }
1560
1564
  function formatDateTime(e, t) {
1561
1565
  const [o, n] = handleDateTimeValue(getInternalSlotOrThrowForDateTimeFormat(e), t);
@@ -1569,19 +1573,19 @@ function dateStyleToMonthStyle(e) {
1569
1573
  }
1570
1574
  function amendOptionsForPlainDate(e) {
1571
1575
  const t = createNullPrototypeObject(e);
1572
- return hasAnyOptions(e, vt) || (hasAnyOptions(e, yt) && throwTypeError(ue), t.year = t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [...yt, "timeZoneName"]), t.timeZone = "UTC", t;
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;
1573
1577
  }
1574
1578
  function amendOptionsForPlainTime(e) {
1575
1579
  const t = createNullPrototypeObject(e);
1576
- return hasAnyOptions(e, yt) || (hasAnyOptions(e, vt) && throwTypeError(ue), t.hour = t.minute = t.second = "numeric"), "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, [
1577
- ...vt,
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,
1578
1582
  "era",
1579
1583
  "timeZoneName"
1580
1584
  ]), t.timeZone = "UTC", t;
1581
1585
  }
1582
1586
  function amendOptionsForPlainDateTime(e) {
1583
1587
  const t = createNullPrototypeObject(e);
1584
- return "long" !== e.timeStyle && "full" !== e.timeStyle || (removeDateTimeFormatOptions(t, ["timeStyle"]), t.hour = t.minute = t.second = "numeric", e.dateStyle && (removeDateTimeFormatOptions(t, ["dateStyle"]), t.year = t.day = "numeric", t.month = dateStyleToMonthStyle(e.dateStyle), t.weekday = "full" === e.dateStyle ? "long" : void 0)), hasAnyOptions(e, [...vt, ...yt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), removeDateTimeFormatOptions(t, ["timeZoneName"]), t.timeZone = "UTC", t;
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;
1585
1589
  }
1586
1590
  function amendOptionsForPlainYearMonth(e) {
1587
1591
  const t = createNullPrototypeObject(e);
@@ -1589,8 +1593,8 @@ function amendOptionsForPlainYearMonth(e) {
1589
1593
  "year",
1590
1594
  "month",
1591
1595
  "dateStyle"
1592
- ]) || (hasAnyOptions(e, [...vt, ...yt]) && throwTypeError(ue), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
1593
- ...yt,
1596
+ ]) || (hasAnyOptions(e, [...wt, ...vt]) && throwTypeError(me), t.year = t.month = "numeric"), removeDateTimeFormatOptions(t, [
1597
+ ...vt,
1594
1598
  "day",
1595
1599
  "weekday",
1596
1600
  "timeZoneName"
@@ -1602,8 +1606,8 @@ function amendOptionsForPlainMonthDay(e) {
1602
1606
  "month",
1603
1607
  "day",
1604
1608
  "dateStyle"
1605
- ]) || (hasAnyOptions(e, [...vt, ...yt]) && throwTypeError(ue), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
1606
- ...yt,
1609
+ ]) || (hasAnyOptions(e, [...wt, ...vt]) && throwTypeError(me), t.month = t.day = "numeric"), removeDateTimeFormatOptions(t, [
1610
+ ...vt,
1607
1611
  "era",
1608
1612
  "year",
1609
1613
  "weekday",
@@ -1612,25 +1616,25 @@ function amendOptionsForPlainMonthDay(e) {
1612
1616
  }
1613
1617
  function amendOptionsForInstant(e) {
1614
1618
  const t = createNullPrototypeObject(e);
1615
- return hasAnyOptions(e, [...vt, ...yt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
1619
+ return hasAnyOptions(e, [...wt, ...vt]) || (t.year = t.month = t.day = t.hour = t.minute = t.second = "numeric"), t;
1616
1620
  }
1617
1621
  function hasAnyOptions(e, t) {
1618
1622
  return t.some((t) => void 0 !== e[t]);
1619
1623
  }
1620
- function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create(Pt.prototype)) {
1621
- null === t && throwTypeError(ue);
1624
+ function createDateTimeFormat(e, t = createNullPrototypeObject(), o, n, r = Object.create(Et.prototype)) {
1625
+ null === t && throwTypeError(me);
1622
1626
  const a = createNullPrototypeObject();
1623
- let i = new Ft(e, new Proxy(Object(t), { get(e, t) {
1624
- const o = e[t];
1625
- return "timeZone" === t && void 0 !== n ? (void 0 !== o && throwTypeError("disallowed field: timeZone"), a[t] = n) : void 0 === o ? o : a[t] = "hour12" === t ? ((e) => !!e)(o) : "fractionalSecondDigits" === t ? Fe(o) : toString(o);
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);
1626
1630
  } }));
1627
- return (o === c && a.timeStyle || o === s && a.dateStyle) && throwTypeError(ue), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
1631
+ return (o === l && a.timeStyle || o === c && a.dateStyle) && throwTypeError(me), a.calendar = i.resolvedOptions().calendar, void 0 === n || hasAnyOptions(a, [
1632
+ ...wt,
1628
1633
  ...vt,
1629
- ...yt,
1630
1634
  "timeZoneName"
1631
- ]) || (a.timeZoneName = "short", i = new Ft(i.resolvedOptions().locale, a)), wt.set(r, createNullPrototypeObject({
1632
- be: i,
1633
- Ze: a,
1635
+ ]) || (a.timeZoneName = "short", i = new Ft(i.resolvedOptions().locale, a)), St.set(r, createNullPrototypeObject({
1636
+ Ze: i,
1637
+ $e: a,
1634
1638
  Ne: i.resolvedOptions().locale
1635
1639
  })), r;
1636
1640
  }
@@ -1646,17 +1650,17 @@ function validateSameTemporalType(e, t) {
1646
1650
  ].some((o) => o(e) !== o(t)) && throwTypeError("Temporal type mismatch");
1647
1651
  }
1648
1652
  function toDateTimeFormattable(e) {
1649
- return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Fe(e);
1653
+ return ((e) => isObject(e) && (isPlainDate(e) || isPlainTime(e) || isPlainDateTime(e) || isZonedDateTime(e) || isPlainYearMonth(e) || isPlainMonthDay(e) || isInstant(e)))(e) ? e : Oe(e);
1650
1654
  }
1651
1655
  function handleDateTimeValue(e, t) {
1652
1656
  const o = getInternalSlotForPlainDate(t), n = getInternalSlotForPlainDateTime(t), r = getInternalSlotForPlainYearMonth(t), a = getInternalSlotForPlainMonthDay(t);
1653
- return isPlainTime(t) ? [e.$e ||= new Ft(e.Ne, amendOptionsForPlainTime(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(createIsoDateRecord(1970, 1, 1), getInternalSlotOrThrowForPlainTime(t))))] : o ? (o.U !== e.Ze.calendar && "iso8601" !== o.U && throwRangeError(De), [e.Me ||= new Ft(e.Ne, amendOptionsForPlainDate(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(o.o, midnightTimeRecord())))]) : n ? (n.U !== e.Ze.calendar && "iso8601" !== n.U && throwRangeError(De), [e.Ue ||= new Ft(e.Ne, amendOptionsForPlainDateTime(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(n._))]) : r ? (r.U !== e.Ze.calendar && throwRangeError(De), [e.je ||= new Ft(e.Ne, amendOptionsForPlainYearMonth(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(r.o, midnightTimeRecord())))]) : a ? (a.U !== e.Ze.calendar && throwRangeError(De), [e.Ce ||= new Ft(e.Ne, amendOptionsForPlainMonthDay(e.Ze)), epochMilliseconds(getUtcEpochNanoseconds(combineIsoDateAndTimeRecord(a.o, midnightTimeRecord())))]) : isInstant(t) ? [e.Ye ||= new Ft(e.Ne, amendOptionsForInstant(e.Ze)), epochMilliseconds(getInternalSlotOrThrowForInstant(t).Y)] : (isZonedDateTime(t) && throwTypeError(fe), [e.be, t]);
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]);
1654
1658
  }
1655
1659
  function DateTimeFormat(e, t) {
1656
- return new Pt(e, t);
1660
+ return new Et(e, t);
1657
1661
  }
1658
- function createTemporalInstant(e, t = Object.create(Nt.prototype)) {
1659
- return Zt.set(t, { Y: e }), t;
1662
+ function createTemporalInstant(e, t = Object.create(Zt.prototype)) {
1663
+ return bt.set(t, { Y: e }), t;
1660
1664
  }
1661
1665
  function toTemporalInstant$1(e) {
1662
1666
  if (isObject(e)) {
@@ -1665,8 +1669,8 @@ function toTemporalInstant$1(e) {
1665
1669
  e = toPrimitive(e);
1666
1670
  }
1667
1671
  validateString(e);
1668
- const t = parseIsoDateTime(e, [et]), o = t.Z.M ? 0 : parseDateTimeUtcOffset(t.Z.$), n = t.p;
1669
- return createTemporalInstant(validateEpochNanoseconds(getUtcEpochNanoseconds(balanceIsoDateTime(t.t, t.u, t.T, n.D, n.I, n.O, n.S, n.F, n.v - o))));
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))));
1670
1674
  }
1671
1675
  function addInstant(e, t) {
1672
1676
  return validateEpochNanoseconds(addTimeDurationToEpochNanoseconds(e, t));
@@ -1676,42 +1680,42 @@ function differenceInstant(e, t, o, n, r) {
1676
1680
  }
1677
1681
  function roundTemporalInstant(e, t, o, n) {
1678
1682
  return (function(e, t, o) {
1679
- return normalizeEpochNanoseconds(e[0], ((e, t, o) => St[o](e / t) * t)(e[1], t, o));
1683
+ return normalizeEpochNanoseconds(e[0], ((e, t, o) => Ot[o](e / t) * t)(e[1], t, o));
1680
1684
  })(e, t * nanosecondsForTimeUnit(o), n);
1681
1685
  }
1682
1686
  function temporalInstantToString(e, t, o) {
1683
1687
  const n = getOffsetNanosecondsFor(t || "UTC", e);
1684
- return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, $)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
1688
+ return `${isoDateTimeToString(getIsoDateTimeFromOffsetNanoseconds(e, n), "iso8601", o, j)}${t ? formatDateTimeUtcOffsetRounded(n) : "Z"}`;
1685
1689
  }
1686
1690
  function differenceTemporalInstant(e, t, o, n) {
1687
- const r = getInternalSlotOrThrowForInstant(toTemporalInstant$1(o)), a = getDifferenceSettings(e, getOptionsObject(n), s, [], G, J);
1688
- return createTemporalDuration(applySignToDurationSlot(temporalDurationFromInternal(differenceInstant(t.Y, r.Y, a.H, a.L, a.B), a.V), e));
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));
1689
1693
  }
1690
1694
  function addDurationToInstant(e, t, o) {
1691
1695
  const n = applySignToDurationSlot(toTemporalDuration(o), e);
1692
1696
  return isDateUnit(defaultTemporalLargestUnit(n)) && throwRangeError(durationWithDateUnit(defaultTemporalLargestUnit(n))), createTemporalInstant(addInstant(t.Y, toInternalDurationRecordWith24HourDays(n).p));
1693
1697
  }
1694
1698
  function validateEpochNanoseconds(e) {
1695
- return ((e) => compareEpochNanoseconds(we, e) * compareEpochNanoseconds(ve, e) <= 0)(e) || throwRangeError(me), e;
1699
+ return ((e) => compareEpochNanoseconds(Fe, e) * compareEpochNanoseconds(Se, e) <= 0)(e) || throwRangeError(se), e;
1696
1700
  }
1697
1701
  function getInternalSlotForInstant(e) {
1698
- return Zt.get(e);
1702
+ return bt.get(e);
1699
1703
  }
1700
1704
  function getInternalSlotOrThrowForInstant(e) {
1701
1705
  const t = getInternalSlotForInstant(e);
1702
- return t || throwTypeError(pe), t;
1706
+ return t || throwTypeError(Te), t;
1703
1707
  }
1704
1708
  function isInstant(e) {
1705
- return Zt.has(e);
1709
+ return bt.has(e);
1706
1710
  }
1707
1711
  function clampEpochNanoseconds(e) {
1708
- return compareEpochNanoseconds(e, ve) > 0 ? ve : compareEpochNanoseconds(e, we) < 0 ? we : e;
1712
+ return compareEpochNanoseconds(e, Se) > 0 ? Se : compareEpochNanoseconds(e, Fe) < 0 ? Fe : e;
1709
1713
  }
1710
1714
  function systemTimeZoneIdentifier() {
1711
- return Ct && Yt + Ct > Date.now() && $t ? $t : (Yt = Date.now(), $t = new Ft().resolvedOptions().timeZone);
1715
+ return $t && Ct + $t > Date.now() && jt ? jt : (Ct = Date.now(), jt = new Ft().resolvedOptions().timeZone);
1712
1716
  }
1713
1717
  function setSystemTimeZoneIdCacheTtl(e) {
1714
- Ct = e, e || ($t = void 0, Yt = -Infinity);
1718
+ $t = e, e || (jt = void 0, Ct = -Infinity);
1715
1719
  }
1716
1720
  function systemUtcEpochNanoseconds() {
1717
1721
  return createEpochNanosecondsFromEpochMilliseconds(Date.now());
@@ -1719,7 +1723,7 @@ function systemUtcEpochNanoseconds() {
1719
1723
  function systemDateTime(e = systemTimeZoneIdentifier()) {
1720
1724
  return getIsoDateTimeForZonedDateTimeSlot(createZonedDateTimeSlot(systemUtcEpochNanoseconds(), toTemporalTimeZoneIdentifier(e), "iso8601"));
1721
1725
  }
1722
- const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11, l = 146097, c = Symbol(), s = Symbol(), d = Symbol(), m = Symbol(), T = Symbol(), u = Symbol(), D = Symbol(), p = "constrain", h = "reject", g = "compatible", f = "later", I = "prefer", O = "reject", S = Symbol(), F = Symbol(), w = Symbol(), v = "ceil", y = "floor", E = "expand", P = "trunc", R = "halfCeil", b = "halfFloor", Z = "halfExpand", N = "halfTrunc", M = "halfEven", U = "auto", j = "always", $ = "never", C = "critical", Y = "auto", A = "never", W = "auto", z = "never", V = "critical", k = 0, H = 1, x = 2, L = 3, B = 4, q = 5, J = 6, G = 9, _ = 0, K = 1, X = 2, Q = 3, ee = 4, te = 5, oe = 6, ne = 7, re = 8, ae = 9, ie = [
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 = [
1723
1727
  "year",
1724
1728
  "month",
1725
1729
  "week",
@@ -1730,20 +1734,20 @@ const e = 1e6, t = 6e10, o = 36e11, n = 86400, r = 864e5, a = 864e8, i = 864e11,
1730
1734
  "millisecond",
1731
1735
  "microsecond",
1732
1736
  "nanosecond"
1733
- ], le = ie.map((e) => `${e}s`), ce = [
1734
- i,
1737
+ ], ie = ae.map((e) => `${e}s`), le = [
1738
+ a,
1735
1739
  o,
1736
1740
  t,
1737
1741
  1e9,
1738
1742
  1e6,
1739
1743
  1e3,
1740
1744
  1
1741
- ], missingField = (e) => `missing field: ${e}`, invalidField = (e) => `invalid field: ${e}`, se = "parse error", de = "invalid date / time", me = "out-of-bounds date", Te = "out-of-bounds duration", ue = "invalid formatting options", De = "calendar mismatch", disallowedUnit = (e) => `disallowed unit: ${"auto" === e ? e : getNameFromUnit(e)}`, invalidNumber = (e) => `invalid number: ${e}`, invalidTimeZone = (e) => `invalid time zone: ${e}`, pe = "invalid method call", invalidMonthCode = (e) => `invalid month code:${e}`, durationWithDateUnit = (e) => `duration has a date unit: ${getNameFromUnit(e)}`, he = "invalid `largestUnit` and `smallestUnit` options", ge = "mismatch of `month` and `monthCode`", fe = "value is not formattable", notObject = (e) => `not object: ${e}`, Ie = "empty fields", Oe = "can't convert Temporal classes to number", Se = "argument is undefined", Fe = Math.max, we = createEpochNanosecondsFromEpochMilliseconds(-864e13), ve = createEpochNanosecondsFromEpochMilliseconds(864e13), ye = compareEpochNanoseconds, Ee = /* @__PURE__ */ new WeakMap();
1742
- var Pe = class {
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
1747
  constructor(e, t, o = "iso8601") {
1744
1748
  const n = validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e)));
1745
1749
  validateString(t);
1746
- const r = parseTimeZoneIdentifier(t), a = r.J ? getAvailableNamedTimeZoneIdentifier(r.J) : formatOffsetTimeZoneIdentifier(r.G);
1750
+ const r = parseTimeZoneIdentifier(t), a = r._ ? getAvailableNamedTimeZoneIdentifier(r._) : formatOffsetTimeZoneIdentifier(r.G);
1747
1751
  validateString(o), createTemporalZonedDateTime(n, a, canonicalizeCalendar(o), this);
1748
1752
  }
1749
1753
  static from(e, t = void 0) {
@@ -1759,10 +1763,10 @@ var Pe = class {
1759
1763
  return getInternalSlotOrThrowForZonedDateTime(this).Z;
1760
1764
  }
1761
1765
  get era() {
1762
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).oe;
1766
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ne;
1763
1767
  }
1764
1768
  get eraYear() {
1765
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ne;
1769
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).re;
1766
1770
  }
1767
1771
  get year() {
1768
1772
  return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).t;
@@ -1786,10 +1790,10 @@ var Pe = class {
1786
1790
  return getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).p.O;
1787
1791
  }
1788
1792
  get millisecond() {
1789
- return getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).p.S;
1793
+ return getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).p.F;
1790
1794
  }
1791
1795
  get microsecond() {
1792
- return getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).p.F;
1796
+ return getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).p.S;
1793
1797
  }
1794
1798
  get nanosecond() {
1795
1799
  return getIsoDateTimeForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).p.v;
@@ -1801,35 +1805,35 @@ var Pe = class {
1801
1805
  return convertEpochNanosecondsToBigInt(getInternalSlotOrThrowForZonedDateTime(this).Y);
1802
1806
  }
1803
1807
  get dayOfWeek() {
1804
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ae;
1808
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie;
1805
1809
  }
1806
1810
  get dayOfYear() {
1807
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ie;
1811
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).le;
1808
1812
  }
1809
1813
  get weekOfYear() {
1810
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).le.re;
1814
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce.ae;
1811
1815
  }
1812
1816
  get yearOfWeek() {
1813
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).le.t;
1817
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce.t;
1814
1818
  }
1815
1819
  get hoursInDay() {
1816
1820
  const e = getInternalSlotOrThrowForZonedDateTime(this), t = getIsoDateTimeForZonedDateTimeSlot(e).o;
1817
1821
  return timeDurationToSubsecondsNumber(differenceEpochNanoseconds(getStartOfDay(e.Z, t), getStartOfDay(e.Z, addDaysToIsoDate(t, 1))), -9) / o;
1818
1822
  }
1819
1823
  get daysInWeek() {
1820
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ce;
1824
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).se;
1821
1825
  }
1822
1826
  get daysInMonth() {
1823
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).se;
1827
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).de;
1824
1828
  }
1825
1829
  get daysInYear() {
1826
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).de;
1830
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).me;
1827
1831
  }
1828
1832
  get monthsInYear() {
1829
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).me;
1833
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ue;
1830
1834
  }
1831
1835
  get inLeapYear() {
1832
- return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).ue;
1836
+ return calendarIsoToDateForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this)).Te;
1833
1837
  }
1834
1838
  get offsetNanoseconds() {
1835
1839
  return getOffsetNanosecondsForZonedDateTimeSlot(getInternalSlotOrThrowForZonedDateTime(this));
@@ -1842,25 +1846,25 @@ var Pe = class {
1842
1846
  validatePartialTemporalObject(e);
1843
1847
  const n = getOffsetNanosecondsForZonedDateTimeSlot(o), r = getIsoDateTimeForZonedDateTimeSlot(o), a = calendarMergeFields(o.U, createNullPrototypeObject({
1844
1848
  ...isoDateTimeToFields(o.U, r),
1845
- [Dt.R]: formatUtcOffsetNanoseconds(n)
1849
+ [Tt.R]: formatUtcOffsetNanoseconds(n)
1846
1850
  }), prepareCalendarFields(o.U, e, [
1847
- Dt.t,
1848
- Dt.u,
1849
- Dt.P,
1850
- Dt.T,
1851
- Dt.D,
1852
- Dt.I,
1853
- Dt.O,
1854
- Dt.S,
1855
- Dt.F,
1856
- Dt.v,
1857
- Dt.R
1858
- ])), i = getOptionsObject(t), l = getTemporalDisambiguationOption(i), c = getTemporalOffsetOption(i, I), s = getTemporalOverflowOption(i), d = interpretTemporalDateTimeFields(o.U, a, s);
1859
- return createTemporalZonedDateTime(interpretISODateTimeOffset(d.o, d.p, S, parseDateTimeUtcOffset(a[Dt.R]), o.Z, l, c, !0), o.Z, o.U);
1851
+ 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);
1860
1864
  }
1861
1865
  withPlainTime(e = void 0) {
1862
1866
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getIsoDateTimeForZonedDateTimeSlot(t);
1863
- return createTemporalZonedDateTime(void 0 === e ? getStartOfDay(t.Z, o.o) : getEpochNanosecondsFor(t.Z, combineIsoDateAndTimeRecord(o.o, toTemporalTime(e)), g), t.Z, t.U);
1867
+ return createTemporalZonedDateTime(void 0 === e ? getStartOfDay(t.Z, o.o) : getEpochNanosecondsFor(t.Z, combineIsoDateAndTimeRecord(o.o, toTemporalTime(e)), h), t.Z, t.U);
1864
1868
  }
1865
1869
  withTimeZone(e) {
1866
1870
  const t = getInternalSlotOrThrowForZonedDateTime(this);
@@ -1884,38 +1888,38 @@ var Pe = class {
1884
1888
  }
1885
1889
  round(e) {
1886
1890
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
1887
- if (validateTemporalUnitValue(a, s, [L]), validateTemporalRoundingIncrement(n, a === L ? 1 : maximumTemporalDurationRoundingIncrement(a), a === L), a === G && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
1891
+ if (validateTemporalUnitValue(a, c, [x]), validateTemporalRoundingIncrement(n, a === x ? 1 : maximumTemporalDurationRoundingIncrement(a), a === x), a === J && 1 === n) return createTemporalZonedDateTimeFromSlot(t);
1888
1892
  const i = getIsoDateTimeForZonedDateTimeSlot(t);
1889
- if (a === L) {
1893
+ if (a === x) {
1890
1894
  const e = getStartOfDay(t.Z, i.o), o = getStartOfDay(t.Z, addDaysToIsoDate(i.o, 1));
1891
- return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, t.Y), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.Z, t.U);
1895
+ return createTemporalZonedDateTime(addNanosecondsToEpochSeconds(e, roundNumberToIncrement(timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, 1 !== compareEpochNanoseconds(o, t.Y) ? addNanosecondsToEpochSeconds(o, -1) : t.Y), -9), timeDurationToSubsecondsNumber(differenceEpochNanoseconds(e, o), -9), r)), t.Z, t.U);
1892
1896
  }
1893
- const l = roundIsoDateTime(i, n, a, r), c = getOffsetNanosecondsForZonedDateTimeSlot(t);
1894
- return createTemporalZonedDateTime(interpretISODateTimeOffset(l.o, l.p, S, c, t.Z, g, I, !0), t.Z, t.U);
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);
1895
1899
  }
1896
1900
  equals(e) {
1897
1901
  const t = getInternalSlotOrThrowForZonedDateTime(this), o = toTemporalZonedDateTime(e);
1898
1902
  return !compareEpochNanoseconds(t.Y, o.Y) && timeZoneEquals(t.Z, o.Z) && calendarEquals(t.U, o.U);
1899
1903
  }
1900
1904
  toString(e = void 0) {
1901
- const t = getInternalSlotOrThrowForZonedDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = ((e) => getOption(e, "offset", [Y, A], Y))(o), i = getRoundingModeOption(o, P), l = getTemporalUnitValuedOption(o, "smallestUnit", void 0), c = ((e) => getOption(e, "timeZoneName", [
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", [
1902
1906
  W,
1903
- z,
1904
- V
1907
+ A,
1908
+ z
1905
1909
  ], W))(o);
1906
- validateTemporalUnitValue(l, s), l === B && throwRangeError(invalidField("smallestUnit"));
1910
+ validateTemporalUnitValue(l, c), l === L && throwRangeError(invalidField("smallestUnit"));
1907
1911
  const d = toSecondsStringPrecisionRecord(l, r);
1908
- return temporalZonedDateTimeToString(t, d.ve, n, c, a, d.Ee, d.ye, i);
1912
+ return temporalZonedDateTimeToString(t, d.ye, n, s, a, d.Pe, d.Ee, i);
1909
1913
  }
1910
1914
  toLocaleString(e = void 0, t = void 0) {
1911
- const o = getInternalSlotOrThrowForZonedDateTime(this), n = createDateTimeFormat(e, t, d, o.Z), r = getInternalSlotOrThrowForDateTimeFormat(n);
1912
- return "iso8601" === o.U || calendarEquals(o.U, r.Ze.calendar) || throwRangeError(De), formatDateTime(n, createTemporalInstant(o.Y));
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));
1913
1917
  }
1914
1918
  toJSON() {
1915
- return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, U, W, Y);
1919
+ return temporalZonedDateTimeToString(getInternalSlotOrThrowForZonedDateTime(this), void 0, M, W, C);
1916
1920
  }
1917
1921
  valueOf() {
1918
- throwTypeError(Oe);
1922
+ throwTypeError(fe);
1919
1923
  }
1920
1924
  startOfDay() {
1921
1925
  const e = getInternalSlotOrThrowForZonedDateTime(this);
@@ -1923,7 +1927,7 @@ var Pe = class {
1923
1927
  }
1924
1928
  getTimeZoneTransition(e) {
1925
1929
  const t = getInternalSlotOrThrowForZonedDateTime(this);
1926
- void 0 === e && throwTypeError(Se);
1930
+ void 0 === e && throwTypeError(Ie);
1927
1931
  const o = getOption("string" == typeof e ? { direction: e } : getOptionsObject(e), "direction", ["next", "previous"], u), n = ((e, t, o) => {
1928
1932
  if ("UTC" === e || isOffsetTimeZoneIdentifier(e)) return null;
1929
1933
  const n = -4e9, r = Math.floor((Date.now() + 31536e7) / 1e3), a = clamp(epochSeconds(addNanosecondsToEpochSeconds(t, o > 0 ? 0 : -1)), n, Infinity);
@@ -1946,9 +1950,9 @@ var Pe = class {
1946
1950
  return createTemporalDateTime(getIsoDateTimeForZonedDateTimeSlot(e), e.U);
1947
1951
  }
1948
1952
  };
1949
- defineStringTag(Pe.prototype, "Temporal.ZonedDateTime"), renameFunction(Pe, "ZonedDateTime");
1950
- const Re = createNullPrototypeObject(), be = createNullPrototypeObject(), Ze = /* @__PURE__ */ new WeakMap();
1951
- var Ne = class {
1953
+ defineStringTag(Ee.prototype, "Temporal.ZonedDateTime"), renameFunction(Ee, "ZonedDateTime");
1954
+ const Pe = createNullPrototypeObject(), Re = createNullPrototypeObject(), be = /* @__PURE__ */ new WeakMap();
1955
+ var Ze = class {
1952
1956
  constructor(e, t, o, n = 0, r = 0, a = 0, i = 0, l = 0, c = 0, s = "iso8601") {
1953
1957
  const d = [
1954
1958
  e,
@@ -1963,119 +1967,104 @@ var Ne = class {
1963
1967
  c
1964
1968
  ].map(toIntegerWithTruncation);
1965
1969
  validateString(s);
1966
- const T = canonicalizeCalendar(s);
1967
- isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(de), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), T, this);
1970
+ const u = canonicalizeCalendar(s);
1971
+ isValidIsoDate(...d) && isValidTime(...m) || throwRangeError(ce), createTemporalDateTime(combineIsoDateAndTimeRecord(createIsoDateRecord(...d), createTimeRecord(...m)), u, this);
1968
1972
  }
1969
1973
  static from(e, t = void 0) {
1970
1974
  return toTemporalDateTime(e, t);
1971
1975
  }
1972
1976
  static compare(e, t) {
1973
- return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e))._, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t))._);
1977
+ return compareIsoDateTime(getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e)).K, getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(t)).K);
1974
1978
  }
1975
1979
  get calendarId() {
1976
1980
  return getInternalSlotOrThrowForPlainDateTime(this).U;
1977
1981
  }
1978
1982
  get era() {
1979
- const e = getInternalSlotOrThrowForPlainDateTime(this);
1980
- return calendarIsoToDate(e.U, e._.o).oe;
1983
+ return calendarDateForPlainDateTime(this).ne;
1981
1984
  }
1982
1985
  get eraYear() {
1983
- const e = getInternalSlotOrThrowForPlainDateTime(this);
1984
- return calendarIsoToDate(e.U, e._.o).ne;
1986
+ return calendarDateForPlainDateTime(this).re;
1985
1987
  }
1986
1988
  get year() {
1987
- const e = getInternalSlotOrThrowForPlainDateTime(this);
1988
- return calendarIsoToDate(e.U, e._.o).t;
1989
+ return calendarDateForPlainDateTime(this).t;
1989
1990
  }
1990
1991
  get month() {
1991
- const e = getInternalSlotOrThrowForPlainDateTime(this);
1992
- return calendarIsoToDate(e.U, e._.o).u;
1992
+ return calendarDateForPlainDateTime(this).u;
1993
1993
  }
1994
1994
  get monthCode() {
1995
- const e = getInternalSlotOrThrowForPlainDateTime(this);
1996
- return calendarIsoToDate(e.U, e._.o).P;
1995
+ return calendarDateForPlainDateTime(this).P;
1997
1996
  }
1998
1997
  get day() {
1999
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2000
- return calendarIsoToDate(e.U, e._.o).T;
1998
+ return calendarDateForPlainDateTime(this).T;
2001
1999
  }
2002
2000
  get hour() {
2003
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.D;
2001
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.D;
2004
2002
  }
2005
2003
  get minute() {
2006
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.I;
2004
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.I;
2007
2005
  }
2008
2006
  get second() {
2009
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.O;
2007
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.O;
2010
2008
  }
2011
2009
  get millisecond() {
2012
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.S;
2010
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.F;
2013
2011
  }
2014
2012
  get microsecond() {
2015
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.F;
2013
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.S;
2016
2014
  }
2017
2015
  get nanosecond() {
2018
- return getInternalSlotOrThrowForPlainDateTime(this)._.p.v;
2016
+ return getInternalSlotOrThrowForPlainDateTime(this).K.p.v;
2019
2017
  }
2020
2018
  get dayOfWeek() {
2021
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2022
- return calendarIsoToDate(e.U, e._.o).ae;
2019
+ return calendarDateForPlainDateTime(this).ie;
2023
2020
  }
2024
2021
  get dayOfYear() {
2025
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2026
- return calendarIsoToDate(e.U, e._.o).ie;
2022
+ return calendarDateForPlainDateTime(this).le;
2027
2023
  }
2028
2024
  get weekOfYear() {
2029
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2030
- return calendarIsoToDate(e.U, e._.o).le.re;
2025
+ return calendarDateForPlainDateTime(this).ce.ae;
2031
2026
  }
2032
2027
  get yearOfWeek() {
2033
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2034
- return calendarIsoToDate(e.U, e._.o).le.t;
2028
+ return calendarDateForPlainDateTime(this).ce.t;
2035
2029
  }
2036
2030
  get daysInWeek() {
2037
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2038
- return calendarIsoToDate(e.U, e._.o).ce;
2031
+ return calendarDateForPlainDateTime(this).se;
2039
2032
  }
2040
2033
  get daysInMonth() {
2041
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2042
- return calendarIsoToDate(e.U, e._.o).se;
2034
+ return calendarDateForPlainDateTime(this).de;
2043
2035
  }
2044
2036
  get daysInYear() {
2045
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2046
- return calendarIsoToDate(e.U, e._.o).de;
2037
+ return calendarDateForPlainDateTime(this).me;
2047
2038
  }
2048
2039
  get monthsInYear() {
2049
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2050
- return calendarIsoToDate(e.U, e._.o).me;
2040
+ return calendarDateForPlainDateTime(this).ue;
2051
2041
  }
2052
2042
  get inLeapYear() {
2053
- const e = getInternalSlotOrThrowForPlainDateTime(this);
2054
- return calendarIsoToDate(e.U, e._.o).ue;
2043
+ return calendarDateForPlainDateTime(this).Te;
2055
2044
  }
2056
2045
  with(e, t = void 0) {
2057
2046
  const o = getInternalSlotOrThrowForPlainDateTime(this);
2058
2047
  validatePartialTemporalObject(e);
2059
- const n = calendarMergeFields(o.U, isoDateTimeToFields(o.U, o._), prepareCalendarFields(o.U, e, [
2060
- Dt.t,
2061
- Dt.u,
2062
- Dt.P,
2063
- Dt.T,
2064
- Dt.D,
2065
- Dt.I,
2066
- Dt.O,
2067
- Dt.S,
2068
- Dt.F,
2069
- Dt.v
2048
+ 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
2070
2059
  ]));
2071
2060
  return createTemporalDateTime(interpretTemporalDateTimeFields(o.U, n, getTemporalOverflowOption(getOptionsObject(t))), o.U);
2072
2061
  }
2073
2062
  withPlainTime(e = void 0) {
2074
2063
  const t = getInternalSlotOrThrowForPlainDateTime(this);
2075
- return createTemporalDateTime(combineIsoDateAndTimeRecord(t._.o, toTimeRecordOrMidnight(e)), t.U);
2064
+ return createTemporalDateTime(combineIsoDateAndTimeRecord(t.K.o, toTimeRecordOrMidnight(e)), t.U);
2076
2065
  }
2077
2066
  withCalendar(e) {
2078
- return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this)._, toTemporalCalendarIdentifier(e));
2067
+ return createTemporalDateTime(getInternalSlotOrThrowForPlainDateTime(this).K, toTemporalCalendarIdentifier(e));
2079
2068
  }
2080
2069
  add(e, t = void 0) {
2081
2070
  return addDurationToDateTime(1, getInternalSlotOrThrowForPlainDateTime(this), e, t);
@@ -2091,43 +2080,43 @@ var Ne = class {
2091
2080
  }
2092
2081
  round(e) {
2093
2082
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, "halfExpand"), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2094
- return validateTemporalUnitValue(a, s, [L]), validateTemporalRoundingIncrement(n, a === L ? 1 : maximumTemporalDurationRoundingIncrement(a), a === L), createTemporalDateTime(roundIsoDateTime(t._, n, a, r), t.U);
2083
+ return validateTemporalUnitValue(a, c, [x]), validateTemporalRoundingIncrement(n, a === x ? 1 : maximumTemporalDurationRoundingIncrement(a), a === x), createTemporalDateTime(roundIsoDateTime(t.K, n, a, r), t.U);
2095
2084
  }
2096
2085
  equals(e) {
2097
2086
  const t = getInternalSlotOrThrowForPlainDateTime(this), o = getInternalSlotOrThrowForPlainDateTime(toTemporalDateTime(e));
2098
- return !compareIsoDateTime(t._, o._) && calendarEquals(t.U, o.U);
2087
+ return !compareIsoDateTime(t.K, o.K) && calendarEquals(t.U, o.U);
2099
2088
  }
2100
2089
  toString(e = void 0) {
2101
- const t = getInternalSlotOrThrowForPlainDateTime(this), o = getOptionsObject(e), n = getTemporalShowCalendarNameOption(o), r = getTemporalFractionalSecondDigitsOption(o), a = getRoundingModeOption(o, P), i = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2102
- validateTemporalUnitValue(i, s), i === B && throwRangeError(invalidField("smallestUnit"));
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"));
2103
2092
  const l = toSecondsStringPrecisionRecord(i, r);
2104
- return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t._, l.Ee, l.ye, a)), t.U, l.ve, n);
2093
+ return isoDateTimeToString(validateIsoDateTime(roundIsoDateTime(t.K, l.Pe, l.Ee, a)), t.U, l.ye, n);
2105
2094
  }
2106
2095
  toLocaleString(e = void 0, t = void 0) {
2107
- return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, d), this);
2096
+ return getInternalSlotOrThrowForPlainDateTime(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2108
2097
  }
2109
2098
  toJSON() {
2110
2099
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2111
- return isoDateTimeToString(e._, e.U, void 0, U);
2100
+ return isoDateTimeToString(e.K, e.U, void 0, M);
2112
2101
  }
2113
2102
  valueOf() {
2114
- throwTypeError(Oe);
2103
+ throwTypeError(fe);
2115
2104
  }
2116
2105
  toZonedDateTime(e, t = void 0) {
2117
2106
  const o = getInternalSlotOrThrowForPlainDateTime(this), n = toTemporalTimeZoneIdentifier(e), r = getTemporalDisambiguationOption(getOptionsObject(t));
2118
- return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o._, r), n, o.U);
2107
+ return createTemporalZonedDateTime(getEpochNanosecondsFor(n, o.K, r), n, o.U);
2119
2108
  }
2120
2109
  toPlainDate() {
2121
2110
  const e = getInternalSlotOrThrowForPlainDateTime(this);
2122
- return createTemporalDate(e._.o, e.U);
2111
+ return createTemporalDate(e.K.o, e.U);
2123
2112
  }
2124
2113
  toPlainTime() {
2125
- return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this)._.p);
2114
+ return createTemporalTime(getInternalSlotOrThrowForPlainDateTime(this).K.p);
2126
2115
  }
2127
2116
  };
2128
- defineStringTag(Ne.prototype, "Temporal.PlainDateTime"), renameFunction(Ne, "PlainDateTime");
2129
- const Me = /* @__PURE__ */ new WeakMap();
2130
- var Ue = class {
2117
+ defineStringTag(Ze.prototype, "Temporal.PlainDateTime"), renameFunction(Ze, "PlainDateTime");
2118
+ const Ne = /* @__PURE__ */ new WeakMap();
2119
+ var Me = class {
2131
2120
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0) {
2132
2121
  const i = [
2133
2122
  e,
@@ -2137,7 +2126,7 @@ var Ue = class {
2137
2126
  r,
2138
2127
  a
2139
2128
  ].map(toIntegerWithTruncation);
2140
- isValidTime(...i) || throwRangeError(de), createTemporalTime(createTimeRecord(...i), this);
2129
+ isValidTime(...i) || throwRangeError(ce), createTemporalTime(createTimeRecord(...i), this);
2141
2130
  }
2142
2131
  static from(e, t = void 0) {
2143
2132
  return createTemporalTime(toTemporalTime(e, t));
@@ -2155,10 +2144,10 @@ var Ue = class {
2155
2144
  return getInternalSlotOrThrowForPlainTime(this).O;
2156
2145
  }
2157
2146
  get millisecond() {
2158
- return getInternalSlotOrThrowForPlainTime(this).S;
2147
+ return getInternalSlotOrThrowForPlainTime(this).F;
2159
2148
  }
2160
2149
  get microsecond() {
2161
- return getInternalSlotOrThrowForPlainTime(this).F;
2150
+ return getInternalSlotOrThrowForPlainTime(this).S;
2162
2151
  }
2163
2152
  get nanosecond() {
2164
2153
  return getInternalSlotOrThrowForPlainTime(this).v;
@@ -2175,8 +2164,8 @@ var Ue = class {
2175
2164
  o.D,
2176
2165
  o.I,
2177
2166
  o.O,
2178
- o.S,
2179
2167
  o.F,
2168
+ o.S,
2180
2169
  o.v
2181
2170
  ]), getTemporalOverflowOption(getOptionsObject(t))));
2182
2171
  }
@@ -2187,54 +2176,54 @@ var Ue = class {
2187
2176
  return differenceTemporalPlainTime(-1, getInternalSlotOrThrowForPlainTime(this), e, t);
2188
2177
  }
2189
2178
  round(e) {
2190
- const t = getInternalSlotOrThrowForPlainTime(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, Z), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2191
- return validateTemporalUnitValue(a, s), validateTemporalRoundingIncrement(n, maximumTemporalDurationRoundingIncrement(a), !1), createTemporalTime(roundTime(t, n, a, r));
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));
2192
2181
  }
2193
2182
  equals(e) {
2194
2183
  return !compareTimeRecord(getInternalSlotOrThrowForPlainTime(this), toTemporalTime(e));
2195
2184
  }
2196
2185
  toString(e = void 0) {
2197
- const t = getInternalSlotOrThrowForPlainTime(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, P), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2198
- validateTemporalUnitValue(a, s), a === B && throwRangeError(invalidField("smallestUnit"));
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"));
2199
2188
  const i = toSecondsStringPrecisionRecord(a, n);
2200
- return timeRecordToString(roundTime(t, i.Ee, i.ye, r), i.ve);
2189
+ return timeRecordToString(roundTime(t, i.Pe, i.Ee, r), i.ye);
2201
2190
  }
2202
2191
  toLocaleString(e = void 0, t = void 0) {
2203
- return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2192
+ return getInternalSlotOrThrowForPlainTime(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2204
2193
  }
2205
2194
  toJSON() {
2206
2195
  return timeRecordToString(getInternalSlotOrThrowForPlainTime(this));
2207
2196
  }
2208
2197
  valueOf() {
2209
- throwTypeError(Oe);
2198
+ throwTypeError(fe);
2210
2199
  }
2211
2200
  };
2212
- defineStringTag(Ue.prototype, "Temporal.PlainTime"), renameFunction(Ue, "PlainTime");
2213
- const je = "\\d{4}|[-+]\\d{6}", $e = "0[1-9]|1[0-2]", Ce = "0[1-9]|[12]\\d|30|31", Ye = "[01]\\d|2[0-3]", Ae = "[0-5]\\d", We = `(?<a>${je})(?<x>-?)(?<b>${$e})\\k<x>(?<c>${Ce})`, ze = optionalChain([
2214
- `(?<d>${Ye})`,
2215
- `(?<y>:?)(?<e>${Ae})`,
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})`,
2216
2205
  "\\k<y>(?<f>[0-5]\\d|60)",
2217
2206
  "[.,](?<g>\\d{1,9})"
2218
- ]), Ve = optionalChain([
2219
- `([+-])(${Ye})`,
2220
- `(?<z>:?)(${Ae})`,
2221
- `\\k<z>(${Ae})`,
2207
+ ]), ze = optionalChain([
2208
+ `([+-])(${Ce})`,
2209
+ `(?<z>:?)(${Ye})`,
2210
+ `\\k<z>(${Ye})`,
2222
2211
  "[.,](\\d{1,9})"
2223
- ]), ke = optionalChain([
2212
+ ]), Ve = optionalChain([
2224
2213
  We,
2225
- `[ tT]${ze}`,
2226
- `(?<h>${Ve})`
2227
- ]), He = `(?<l>${je})-?(?<m>${$e})`, xe = `(?:--)?(?<m>${$e})-?(?<n>${Ce})`, Le = `(?<h>${Ve})|(?<i>[zZ])`, Be = `([+-])(${Ye})(?::?(${Ae}))?|${join("[a-zA-Z._][a-zA-Z._+-\\d]*", "\\/")}`, qe = `\\[!?(?<j>${Be})\\]`, Je = join("[a-zA-Z\\d]+", "-"), Ge = `\\[(!)?([a-z_][a-z\\d_-]*)=(${Je})\\]`, _e = `(?<k>(${Ge})*)`, Ke = RegExp(Ge, "g"), Xe = createRegExp(`${optionalChain([
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([
2228
2217
  We,
2229
- `[ tT]${ze}`,
2230
- Le
2231
- ])}${qe}${_e}`), Qe = createRegExp(`${ke}(?:${qe})?${_e}`), et = createRegExp(`${We}[ tT]${ze}(?:${Le})(?:${qe})?${_e}`), tt = createRegExp(`(${We}[ tT]|[tT]?)${ze}(?<h>${Ve})?(?:${qe})?${_e}`), ot = createRegExp(`(${ke}|${xe})(?:${qe})?${_e}`), nt = createRegExp(`(${ke}|${He})(?:${qe})?${_e}`), rt = [createRegExp(`${xe}(${qe})?(${Ge})*`), createRegExp(`${He}(${qe})?(${Ge})*`)], at = createRegExp(Be), it = createRegExp(Je), lt = createRegExp(Ve), ct = /* @__PURE__ */ new WeakMap();
2232
- var st = class {
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 {
2233
2222
  constructor(e, t, o = "iso8601", n = 1972) {
2234
2223
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2235
2224
  validateString(o);
2236
2225
  const i = canonicalizeCalendar(o), l = toIntegerWithTruncation(n);
2237
- isValidIsoDate(l, r, a) || throwRangeError(de), createTemporalMonthDay(createIsoDateRecord(l, r, a), i, this);
2226
+ isValidIsoDate(l, r, a) || throwRangeError(ce), createTemporalMonthDay(createIsoDateRecord(l, r, a), i, this);
2238
2227
  }
2239
2228
  static from(e, t = void 0) {
2240
2229
  return toTemporalMonthDay(e, t);
@@ -2252,42 +2241,42 @@ var st = class {
2252
2241
  }
2253
2242
  with(e, t = void 0) {
2254
2243
  const o = getInternalSlotOrThrowForPlainMonthDay(this);
2255
- return validatePartialTemporalObject(e), createTemporalMonthDay(calendarMonthDayFromFields(o.U, calendarMergeFields(o.U, isoDateToFields(o.U, o.o, T), prepareCalendarFields(o.U, e, [
2256
- Dt.t,
2257
- Dt.u,
2258
- Dt.P,
2259
- Dt.T
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
2249
  ])), getTemporalOverflowOption(getOptionsObject(t))), o.U);
2261
2250
  }
2262
2251
  equals(e) {
2263
2252
  const t = getInternalSlotOrThrowForPlainMonthDay(this), o = getInternalSlotOrThrowForPlainMonthDay(toTemporalMonthDay(e));
2264
- return 0 === compareIsoDate(t.o, o.o) && calendarEquals(t.U, o.U);
2253
+ return !compareIsoDate(t.o, o.o) && calendarEquals(t.U, o.U);
2265
2254
  }
2266
2255
  toString(e = void 0) {
2267
2256
  return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2268
2257
  }
2269
2258
  toLocaleString(e = void 0, t = void 0) {
2270
- return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2259
+ return getInternalSlotOrThrowForPlainMonthDay(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2271
2260
  }
2272
2261
  toJSON() {
2273
- return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), U);
2262
+ return temporalMonthDayToString(getInternalSlotOrThrowForPlainMonthDay(this), M);
2274
2263
  }
2275
2264
  valueOf() {
2276
- throwTypeError(Oe);
2265
+ throwTypeError(fe);
2277
2266
  }
2278
2267
  toPlainDate(e) {
2279
2268
  const t = getInternalSlotOrThrowForPlainMonthDay(this);
2280
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, T), prepareCalendarFields(t.U, e, [Dt.t], [])), p), t.U);
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);
2281
2270
  }
2282
2271
  };
2283
- defineStringTag(st.prototype, "Temporal.PlainMonthDay"), renameFunction(st, "PlainMonthDay");
2284
- const dt = /* @__PURE__ */ new WeakMap();
2285
- var mt = class {
2272
+ defineStringTag(ct.prototype, "Temporal.PlainMonthDay"), renameFunction(ct, "PlainMonthDay");
2273
+ const st = /* @__PURE__ */ new WeakMap();
2274
+ var dt = class {
2286
2275
  constructor(e, t, o = "iso8601", n = 1) {
2287
2276
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t);
2288
2277
  validateString(o);
2289
2278
  const i = canonicalizeCalendar(o), l = toIntegerWithTruncation(n);
2290
- isValidIsoDate(r, a, l) || throwRangeError(de), createTemporalYearMonth(createIsoDateRecord(r, a, l), i, this);
2279
+ isValidIsoDate(r, a, l) || throwRangeError(ce), createTemporalYearMonth(createIsoDateRecord(r, a, l), i, this);
2291
2280
  }
2292
2281
  static from(e, t = void 0) {
2293
2282
  return toTemporalYearMonth(e, t);
@@ -2299,48 +2288,39 @@ var mt = class {
2299
2288
  return getInternalSlotOrThrowForPlainYearMonth(this).U;
2300
2289
  }
2301
2290
  get era() {
2302
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2303
- return calendarIsoToDate(e.U, e.o).oe;
2291
+ return calendarDateForPlainYearMonth(this).ne;
2304
2292
  }
2305
2293
  get eraYear() {
2306
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2307
- return calendarIsoToDate(e.U, e.o).ne;
2294
+ return calendarDateForPlainYearMonth(this).re;
2308
2295
  }
2309
2296
  get year() {
2310
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2311
- return calendarIsoToDate(e.U, e.o).t;
2297
+ return calendarDateForPlainYearMonth(this).t;
2312
2298
  }
2313
2299
  get month() {
2314
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2315
- return calendarIsoToDate(e.U, e.o).u;
2300
+ return calendarDateForPlainYearMonth(this).u;
2316
2301
  }
2317
2302
  get monthCode() {
2318
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2319
- return calendarIsoToDate(e.U, e.o).P;
2303
+ return calendarDateForPlainYearMonth(this).P;
2320
2304
  }
2321
2305
  get daysInYear() {
2322
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2323
- return calendarIsoToDate(e.U, e.o).de;
2306
+ return calendarDateForPlainYearMonth(this).me;
2324
2307
  }
2325
2308
  get daysInMonth() {
2326
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2327
- return calendarIsoToDate(e.U, e.o).se;
2309
+ return calendarDateForPlainYearMonth(this).de;
2328
2310
  }
2329
2311
  get monthsInYear() {
2330
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2331
- return calendarIsoToDate(e.U, e.o).me;
2312
+ return calendarDateForPlainYearMonth(this).ue;
2332
2313
  }
2333
2314
  get inLeapYear() {
2334
- const e = getInternalSlotOrThrowForPlainYearMonth(this);
2335
- return calendarIsoToDate(e.U, e.o).ue;
2315
+ return calendarDateForPlainYearMonth(this).Te;
2336
2316
  }
2337
2317
  with(e, t = void 0) {
2338
2318
  const o = getInternalSlotOrThrowForPlainYearMonth(this);
2339
2319
  validatePartialTemporalObject(e);
2340
- const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, m), prepareCalendarFields(o.U, e, [
2341
- Dt.t,
2342
- Dt.u,
2343
- Dt.P
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
2344
2324
  ]));
2345
2325
  return createTemporalYearMonth(calendarYearMonthFromFields(o.U, n, getTemporalOverflowOption(getOptionsObject(t))), o.U);
2346
2326
  }
@@ -2358,33 +2338,33 @@ var mt = class {
2358
2338
  }
2359
2339
  equals(e) {
2360
2340
  const t = getInternalSlotOrThrowForPlainYearMonth(this), o = getInternalSlotOrThrowForPlainYearMonth(toTemporalYearMonth(e));
2361
- return 0 === compareIsoDate(t.o, o.o) && t.U === o.U;
2341
+ return !compareIsoDate(t.o, o.o) && t.U === o.U;
2362
2342
  }
2363
2343
  toString(e = void 0) {
2364
2344
  return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2365
2345
  }
2366
2346
  toLocaleString(e = void 0, t = void 0) {
2367
- return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2347
+ return getInternalSlotOrThrowForPlainYearMonth(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2368
2348
  }
2369
2349
  toJSON() {
2370
- return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), U);
2350
+ return temporalYearMonthToString(getInternalSlotOrThrowForPlainYearMonth(this), M);
2371
2351
  }
2372
2352
  valueOf() {
2373
- throwTypeError(Oe);
2353
+ throwTypeError(fe);
2374
2354
  }
2375
2355
  toPlainDate(e) {
2376
2356
  const t = getInternalSlotOrThrowForPlainYearMonth(this);
2377
- return isObject(e) || throwTypeError(notObject(e)), createTemporalDate(calendarDateFromFields(t.U, calendarMergeFields(t.U, isoDateToFields(t.U, t.o, m), prepareCalendarFields(t.U, e, [Dt.T], [])), p), t.U);
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);
2378
2358
  }
2379
2359
  };
2380
- defineStringTag(mt.prototype, "Temporal.PlainYearMonth"), renameFunction(mt, "PlainYearMonth");
2381
- const Tt = /* @__PURE__ */ new WeakMap();
2360
+ defineStringTag(dt.prototype, "Temporal.PlainYearMonth"), renameFunction(dt, "PlainYearMonth");
2361
+ const mt = /* @__PURE__ */ new WeakMap();
2382
2362
  var ut = class {
2383
2363
  constructor(e, t, o, n = "iso8601") {
2384
2364
  const r = toIntegerWithTruncation(e), a = toIntegerWithTruncation(t), i = toIntegerWithTruncation(o);
2385
2365
  validateString(n);
2386
2366
  const l = canonicalizeCalendar(n);
2387
- isValidIsoDate(r, a, i) || throwRangeError(de), createTemporalDate(createIsoDateRecord(r, a, i), l, this);
2367
+ isValidIsoDate(r, a, i) || throwRangeError(ce), createTemporalDate(createIsoDateRecord(r, a, i), l, this);
2388
2368
  }
2389
2369
  static from(e, t = void 0) {
2390
2370
  return toTemporalDate(e, t);
@@ -2396,72 +2376,57 @@ var ut = class {
2396
2376
  return getInternalSlotOrThrowForPlainDate(this).U;
2397
2377
  }
2398
2378
  get era() {
2399
- const e = getInternalSlotOrThrowForPlainDate(this);
2400
- return calendarIsoToDate(e.U, e.o).oe;
2379
+ return calendarDateForPlainDate(this).ne;
2401
2380
  }
2402
2381
  get eraYear() {
2403
- const e = getInternalSlotOrThrowForPlainDate(this);
2404
- return calendarIsoToDate(e.U, e.o).ne;
2382
+ return calendarDateForPlainDate(this).re;
2405
2383
  }
2406
2384
  get year() {
2407
- const e = getInternalSlotOrThrowForPlainDate(this);
2408
- return calendarIsoToDate(e.U, e.o).t;
2385
+ return calendarDateForPlainDate(this).t;
2409
2386
  }
2410
2387
  get month() {
2411
- const e = getInternalSlotOrThrowForPlainDate(this);
2412
- return calendarIsoToDate(e.U, e.o).u;
2388
+ return calendarDateForPlainDate(this).u;
2413
2389
  }
2414
2390
  get monthCode() {
2415
- const e = getInternalSlotOrThrowForPlainDate(this);
2416
- return calendarIsoToDate(e.U, e.o).P;
2391
+ return calendarDateForPlainDate(this).P;
2417
2392
  }
2418
2393
  get day() {
2419
- const e = getInternalSlotOrThrowForPlainDate(this);
2420
- return calendarIsoToDate(e.U, e.o).T;
2394
+ return calendarDateForPlainDate(this).T;
2421
2395
  }
2422
2396
  get dayOfWeek() {
2423
- const e = getInternalSlotOrThrowForPlainDate(this);
2424
- return calendarIsoToDate(e.U, e.o).ae;
2397
+ return calendarDateForPlainDate(this).ie;
2425
2398
  }
2426
2399
  get dayOfYear() {
2427
- const e = getInternalSlotOrThrowForPlainDate(this);
2428
- return calendarIsoToDate(e.U, e.o).ie;
2400
+ return calendarDateForPlainDate(this).le;
2429
2401
  }
2430
2402
  get weekOfYear() {
2431
- const e = getInternalSlotOrThrowForPlainDate(this);
2432
- return calendarIsoToDate(e.U, e.o).le.re;
2403
+ return calendarDateForPlainDate(this).ce.ae;
2433
2404
  }
2434
2405
  get yearOfWeek() {
2435
- const e = getInternalSlotOrThrowForPlainDate(this);
2436
- return calendarIsoToDate(e.U, e.o).le.t;
2406
+ return calendarDateForPlainDate(this).ce.t;
2437
2407
  }
2438
2408
  get daysInWeek() {
2439
- const e = getInternalSlotOrThrowForPlainDate(this);
2440
- return calendarIsoToDate(e.U, e.o).ce;
2409
+ return calendarDateForPlainDate(this).se;
2441
2410
  }
2442
2411
  get daysInMonth() {
2443
- const e = getInternalSlotOrThrowForPlainDate(this);
2444
- return calendarIsoToDate(e.U, e.o).se;
2412
+ return calendarDateForPlainDate(this).de;
2445
2413
  }
2446
2414
  get daysInYear() {
2447
- const e = getInternalSlotOrThrowForPlainDate(this);
2448
- return calendarIsoToDate(e.U, e.o).de;
2415
+ return calendarDateForPlainDate(this).me;
2449
2416
  }
2450
2417
  get monthsInYear() {
2451
- const e = getInternalSlotOrThrowForPlainDate(this);
2452
- return calendarIsoToDate(e.U, e.o).me;
2418
+ return calendarDateForPlainDate(this).ue;
2453
2419
  }
2454
2420
  get inLeapYear() {
2455
- const e = getInternalSlotOrThrowForPlainDate(this);
2456
- return calendarIsoToDate(e.U, e.o).ue;
2421
+ return calendarDateForPlainDate(this).Te;
2457
2422
  }
2458
2423
  toPlainYearMonth() {
2459
2424
  const e = getInternalSlotOrThrowForPlainDate(this);
2460
- return createTemporalYearMonth(calendarYearMonthFromFields(e.U, isoDateToFields(e.U, e.o, c), p), e.U);
2425
+ return createTemporalYearMonth(calendarYearMonthFromFields(e.U, isoDateToFields(e.U, e.o, l), D), e.U);
2461
2426
  }
2462
2427
  toPlainMonthDay() {
2463
2428
  const e = getInternalSlotOrThrowForPlainDate(this);
2464
- return createTemporalMonthDay(calendarMonthDayFromFields(e.U, isoDateToFields(e.U, e.o, c), p), e.U);
2429
+ return createTemporalMonthDay(calendarMonthDayFromFields(e.U, isoDateToFields(e.U, e.o, l), D), e.U);
2465
2430
  }
2466
2431
  add(e, t = void 0) {
2467
2432
  return addDurationToDate(1, getInternalSlotOrThrowForPlainDate(this), e, t);
@@ -2472,11 +2437,11 @@ var ut = class {
2472
2437
  with(e, t = void 0) {
2473
2438
  const o = getInternalSlotOrThrowForPlainDate(this);
2474
2439
  validatePartialTemporalObject(e);
2475
- const n = calendarMergeFields(o.U, isoDateToFields(o.U, o.o, c), prepareCalendarFields(o.U, e, [
2476
- Dt.t,
2477
- Dt.u,
2478
- Dt.P,
2479
- Dt.T
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
2480
2445
  ])), r = getTemporalOverflowOption(getOptionsObject(t));
2481
2446
  return createTemporalDate(calendarDateFromFields(o.U, n, r), o.U);
2482
2447
  }
@@ -2504,25 +2469,25 @@ var ut = class {
2504
2469
  const t = e.timeZone;
2505
2470
  void 0 === t ? n = toTemporalTimeZoneIdentifier(e) : (n = toTemporalTimeZoneIdentifier(t), o = e.plainTime);
2506
2471
  } else n = toTemporalTimeZoneIdentifier(e);
2507
- return createTemporalZonedDateTime(void 0 === o ? getStartOfDay(n, t.o) : getEpochNanosecondsFor(n, validateIsoDateTime(combineIsoDateAndTimeRecord(t.o, toTemporalTime(o))), g), n, t.U);
2472
+ return createTemporalZonedDateTime(void 0 === o ? getStartOfDay(n, t.o) : getEpochNanosecondsFor(n, validateIsoDateTime(combineIsoDateAndTimeRecord(t.o, toTemporalTime(o))), h), n, t.U);
2508
2473
  }
2509
2474
  toString(e = void 0) {
2510
2475
  return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), getTemporalShowCalendarNameOption(getOptionsObject(e)));
2511
2476
  }
2512
2477
  toLocaleString(e = void 0, t = void 0) {
2513
- return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, c), this);
2478
+ return getInternalSlotOrThrowForPlainDate(this), formatDateTime(createDateTimeFormat(e, t, l), this);
2514
2479
  }
2515
2480
  toJSON() {
2516
- return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), U);
2481
+ return temporalDateToString(getInternalSlotOrThrowForPlainDate(this), M);
2517
2482
  }
2518
2483
  valueOf() {
2519
- throwTypeError(Oe);
2484
+ throwTypeError(fe);
2520
2485
  }
2521
2486
  };
2522
2487
  defineStringTag(ut.prototype, "Temporal.PlainDate"), renameFunction(ut, "PlainDate");
2523
- const Dt = {
2524
- oe: "era",
2525
- ne: "eraYear",
2488
+ const Tt = {
2489
+ ne: "era",
2490
+ re: "eraYear",
2526
2491
  t: "year",
2527
2492
  u: "month",
2528
2493
  P: "monthCode",
@@ -2530,46 +2495,46 @@ const Dt = {
2530
2495
  D: "hour",
2531
2496
  I: "minute",
2532
2497
  O: "second",
2533
- S: "millisecond",
2534
- F: "microsecond",
2498
+ F: "millisecond",
2499
+ S: "microsecond",
2535
2500
  v: "nanosecond",
2536
2501
  R: "offset",
2537
2502
  Z: "timeZone"
2538
- }, pt = [
2539
- Dt.oe,
2540
- Dt.ne,
2541
- Dt.t,
2542
- Dt.u,
2543
- Dt.P,
2544
- Dt.T,
2545
- Dt.D,
2546
- Dt.I,
2547
- Dt.O,
2548
- Dt.S,
2549
- Dt.F,
2550
- Dt.v,
2551
- Dt.R,
2552
- Dt.Z
2553
- ], ht = {
2554
- [Dt.oe]: [toString],
2555
- [Dt.ne]: [toIntegerWithTruncation],
2556
- [Dt.t]: [toIntegerWithTruncation],
2557
- [Dt.u]: [toPositiveIntegerWithTruncation],
2558
- [Dt.P]: [(e) => createMonthCode(...parseMonthCode(e))],
2559
- [Dt.T]: [toPositiveIntegerWithTruncation],
2560
- [Dt.D]: [toIntegerWithTruncation, 0],
2561
- [Dt.I]: [toIntegerWithTruncation, 0],
2562
- [Dt.O]: [toIntegerWithTruncation, 0],
2563
- [Dt.S]: [toIntegerWithTruncation, 0],
2564
- [Dt.F]: [toIntegerWithTruncation, 0],
2565
- [Dt.v]: [toIntegerWithTruncation, 0],
2566
- [Dt.R]: [(e) => {
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) => {
2567
2532
  const t = toPrimitive(e);
2568
2533
  return validateString(t), parseDateTimeUtcOffset(t), t;
2569
2534
  }],
2570
- [Dt.Z]: [toTemporalTimeZoneIdentifier]
2571
- }, gt = /* @__PURE__ */ new WeakMap(), ft = signTimeDuration;
2572
- var It = class {
2535
+ [Tt.Z]: [toTemporalTimeZoneIdentifier]
2536
+ }, ht = /* @__PURE__ */ new WeakMap(), gt = signTimeDuration;
2537
+ var ft = class {
2573
2538
  constructor(e = 0, t = 0, o = 0, n = 0, r = 0, a = 0, i = 0, l = 0, c = 0, s = 0) {
2574
2539
  createTemporalDuration(createTemporalDurationSlot([
2575
2540
  e,
@@ -2589,46 +2554,46 @@ var It = class {
2589
2554
  }
2590
2555
  static compare(e, t, o = void 0) {
2591
2556
  const n = toTemporalDuration(e), r = toTemporalDuration(t), a = getTemporalRelativeToOption(getOptionsObject(o));
2592
- if (n.every((e, t) => r[t] === e)) return 0;
2557
+ if (!n.some((e, t) => r[t] !== e)) return 0;
2593
2558
  const i = defaultTemporalLargestUnit(n), l = defaultTemporalLargestUnit(r), c = toInternalDurationRecord(n), s = toInternalDurationRecord(r);
2594
2559
  let d, m;
2595
- return a.Pe && (isDateUnit(i) || isDateUnit(l)) ? compareEpochNanoseconds(addZonedDateTime(a.Pe, c, p), addZonedDateTime(a.Pe, s, p)) : (isCalendarUnit(i) || isCalendarUnit(l) ? (a.Re || throwRangeError(missingField("relativeTo")), d = dateDurationDays(c.W, a.Re), m = dateDurationDays(s.W, a.Re)) : (d = n[Q], m = r[Q]), ye(add24HourDaysToTimeDuration(c.p, d), add24HourDaysToTimeDuration(s.p, m)));
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)));
2596
2561
  }
2597
2562
  get years() {
2598
2563
  return getInternalSlotOrThrowForDuration(this)[_];
2599
2564
  }
2600
2565
  get months() {
2601
- return getInternalSlotOrThrowForDuration(this)[K];
2566
+ return getInternalSlotOrThrowForDuration(this)[X];
2602
2567
  }
2603
2568
  get weeks() {
2604
- return getInternalSlotOrThrowForDuration(this)[X];
2569
+ return getInternalSlotOrThrowForDuration(this)[G];
2605
2570
  }
2606
2571
  get days() {
2607
- return getInternalSlotOrThrowForDuration(this)[Q];
2572
+ return getInternalSlotOrThrowForDuration(this)[K];
2608
2573
  }
2609
2574
  get hours() {
2610
- return getInternalSlotOrThrowForDuration(this)[ee];
2575
+ return getInternalSlotOrThrowForDuration(this)[Q];
2611
2576
  }
2612
2577
  get minutes() {
2613
- return getInternalSlotOrThrowForDuration(this)[te];
2578
+ return getInternalSlotOrThrowForDuration(this)[ee];
2614
2579
  }
2615
2580
  get seconds() {
2616
- return getInternalSlotOrThrowForDuration(this)[oe];
2581
+ return getInternalSlotOrThrowForDuration(this)[te];
2617
2582
  }
2618
2583
  get milliseconds() {
2619
- return getInternalSlotOrThrowForDuration(this)[ne];
2584
+ return getInternalSlotOrThrowForDuration(this)[oe];
2620
2585
  }
2621
2586
  get microseconds() {
2622
- return getInternalSlotOrThrowForDuration(this)[re];
2587
+ return getInternalSlotOrThrowForDuration(this)[ne];
2623
2588
  }
2624
2589
  get nanoseconds() {
2625
- return getInternalSlotOrThrowForDuration(this)[ae];
2590
+ return getInternalSlotOrThrowForDuration(this)[re];
2626
2591
  }
2627
2592
  get sign() {
2628
2593
  return durationSign(getInternalSlotOrThrowForDuration(this));
2629
2594
  }
2630
2595
  get blank() {
2631
- return 0 === durationSign(getInternalSlotOrThrowForDuration(this));
2596
+ return !durationSign(getInternalSlotOrThrowForDuration(this));
2632
2597
  }
2633
2598
  with(e) {
2634
2599
  const t = getInternalSlotOrThrowForDuration(this);
@@ -2649,81 +2614,81 @@ var It = class {
2649
2614
  round(e) {
2650
2615
  const t = getInternalSlotOrThrowForDuration(this), o = getRoundToOptionsObject(e);
2651
2616
  let n = getTemporalUnitValuedOption(o, "largestUnit", void 0);
2652
- const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, Z);
2617
+ const r = getTemporalRelativeToOption(o), a = getRoundingIncrementOption(o), i = getRoundingModeOption(o, b);
2653
2618
  let l = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2654
- validateTemporalUnitValue(l, d);
2619
+ validateTemporalUnitValue(l, s);
2655
2620
  const c = void 0 !== l;
2656
- l ??= G;
2657
- const s = defaultTemporalLargestUnit(t), m = largerOfTwoTemporalUnits(s, l), T = void 0 !== n;
2658
- if (void 0 !== n && "auto" !== n || (n = m), (!c && !T || n > l) && throwRangeError(he), isDateUnit(l) || validateTemporalRoundingIncrement(a, maximumTemporalDurationRoundingIncrement(l), !1), a > 1 && n !== l && isDateUnit(l) && throwRangeError(he), r.Pe) return createTemporalDuration(temporalDurationFromInternal(differenceZonedDateTimeWithRounding(r.Pe, createZonedDateTimeSlot(addZonedDateTime(r.Pe, toInternalDurationRecord(t), p), r.Pe.Z, r.Pe.U), n, a, l, i), isDateUnit(n) ? B : n));
2659
- if (r.Re) {
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) {
2660
2625
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
2661
- return createTemporalDuration(temporalDurationFromInternal(differencePlainDateTimeWithRounding(combineIsoDateAndTimeRecord(r.Re.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(r.Re.U, r.Re.o, adjustDateDurationRecord(e.W, o.K), p), o), r.Re.U, n, a, l, i), n));
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));
2662
2627
  }
2663
- (isCalendarUnit(s) || isCalendarUnit(n)) && throwRangeError(missingField("relativeTo"));
2664
- const u = toInternalDurationRecordWith24HourDays(t);
2665
- return createTemporalDuration(temporalDurationFromInternal(l === L ? combineDateAndTimeDuration(createDateDurationRecord(0, 0, 0, roundTimeDurationByDays(u.p, a, i)[0]), createTimeDurationFromSeconds(0)) : combineDateAndTimeDuration(zeroDateDuration(), roundTimeDuration(u.p, a, l, i)), n));
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));
2666
2631
  }
2667
2632
  total(e) {
2668
2633
  const t = getInternalSlotOrThrowForDuration(this);
2669
- void 0 === e && throwTypeError(Se);
2634
+ void 0 === e && throwTypeError(Ie);
2670
2635
  const o = "string" == typeof e ? createNullPrototypeObject({ unit: e }) : getOptionsObject(e), n = getTemporalRelativeToOption(o), r = getTemporalUnitValuedOption(o, "unit", u);
2671
- if (validateTemporalUnitValue(r, d), n.Pe) return ((e, t, o) => isDateUnit(o) ? totalRelativeDuration(differenceZonedDateTime(e, t, o), e.Y, t.Y, getIsoDateTimeForZonedDateTimeSlot(e), e.Z, e.U, o) : totalTimeDuration(timeDurationFromEpochNanosecondsDifference(t.Y, e.Y), o))(n.Pe, createZonedDateTimeSlot(addZonedDateTime(n.Pe, toInternalDurationRecord(t), p), n.Pe.Z, n.Pe.U), r);
2672
- if (n.Re) {
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) {
2673
2638
  const e = toInternalDurationRecordWith24HourDays(t), o = addTime(midnightTimeRecord(), e.p);
2674
- return ((e, t, o, n) => compareIsoDateTime(e, t) ? (validateIsoDateTime(e), validateIsoDateTime(t), totalRelativeDuration(differenceISODateTime(e, t, o, n), getUtcEpochNanoseconds(e), getUtcEpochNanoseconds(t), e, void 0, 0, n)) : 0)(combineIsoDateAndTimeRecord(n.Re.o, midnightTimeRecord()), combineIsoDateAndTimeRecord(calendarDateAdd(n.Re.U, n.Re.o, adjustDateDurationRecord(e.W, o.K), p), o), n.Re.U, r);
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);
2675
2640
  }
2676
2641
  return (isCalendarUnit(defaultTemporalLargestUnit(t)) || isCalendarUnit(r)) && throwRangeError(missingField("relativeTo")), totalTimeDuration(toInternalDurationRecordWith24HourDays(t).p, r);
2677
2642
  }
2678
2643
  toString(e = void 0) {
2679
- const t = getInternalSlotOrThrowForDuration(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, P), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0);
2680
- validateTemporalUnitValue(a, s), a !== B && a !== q || throwRangeError(disallowedUnit(a));
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));
2681
2646
  const i = toSecondsStringPrecisionRecord(a, n);
2682
- if (i.ye === G && 1 === i.Ee) return temporalDurationToString(t, i.ve);
2647
+ if (i.Ee === J && 1 === i.Pe) return temporalDurationToString(t, i.ye);
2683
2648
  const l = toInternalDurationRecord(t);
2684
- return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(l.W, roundTimeDuration(l.p, i.Ee, i.ye, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), J)), i.ve);
2649
+ return temporalDurationToString(temporalDurationFromInternal(combineDateAndTimeDuration(l.A, roundTimeDuration(l.p, i.Pe, i.Ee, r)), largerOfTwoTemporalUnits(defaultTemporalLargestUnit(t), B)), i.ye);
2685
2650
  }
2686
2651
  toJSON() {
2687
2652
  return temporalDurationToString(getInternalSlotOrThrowForDuration(this));
2688
2653
  }
2689
2654
  toLocaleString(e = void 0, t = void 0) {
2690
2655
  const o = getInternalSlotOrThrowForDuration(this), n = createNullPrototypeObject();
2691
- return le.map((e, t) => {
2656
+ return ie.map((e, t) => {
2692
2657
  n[e] = o[t];
2693
2658
  }), new Intl.DurationFormat(e, t).format(n);
2694
2659
  }
2695
2660
  valueOf() {
2696
- throwTypeError(Oe);
2661
+ throwTypeError(fe);
2697
2662
  }
2698
2663
  };
2699
- defineStringTag(It.prototype, "Temporal.Duration"), renameFunction(It, "Duration");
2700
- const Ot = {
2701
- [v]: Math.ceil,
2702
- [y]: Math.floor,
2703
- [E]: roundExpand,
2704
- [P]: Math.trunc,
2705
- [R]: roundHalfCeil,
2706
- [b]: roundHalfFloor,
2707
- [Z]: (e) => (isIntegerAndHalf(e) ? roundExpand(e) : Math.round(e)) + 0,
2708
- [N]: (e) => (isIntegerAndHalf(e) ? Math.trunc(e) : Math.round(e)) + 0,
2709
- [M]: roundHalfEven
2710
- }, St = {
2711
- [v]: Math.ceil,
2712
- [y]: Math.floor,
2713
- [E]: Math.ceil,
2714
- [P]: Math.floor,
2715
- [R]: roundHalfCeil,
2716
- [b]: roundHalfFloor,
2717
- [Z]: roundHalfCeil,
2718
- [N]: roundHalfFloor,
2719
- [M]: roundHalfEven
2720
- }, Ft = globalThis.Intl.DateTimeFormat, wt = /* @__PURE__ */ new WeakMap(), vt = [
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 = [
2721
2686
  "year",
2722
2687
  "month",
2723
2688
  "day",
2724
2689
  "weekday",
2725
2690
  "dateStyle"
2726
- ], yt = [
2691
+ ], vt = [
2727
2692
  "hour",
2728
2693
  "minute",
2729
2694
  "second",
@@ -2731,16 +2696,16 @@ const Ot = {
2731
2696
  "dayPeriod",
2732
2697
  "timeStyle"
2733
2698
  ];
2734
- var Et = class {
2699
+ var yt = class {
2735
2700
  Ae(e) {
2736
2701
  return formatDateTime(this, e);
2737
2702
  }
2738
- }, Pt = class {
2703
+ }, Et = class {
2739
2704
  constructor(e, t) {
2740
- createDateTimeFormat(e, t, d, void 0, this);
2705
+ createDateTimeFormat(e, t, s, void 0, this);
2741
2706
  }
2742
2707
  get format() {
2743
- return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).We ||= Et.prototype.Ae.bind(this), "name", { value: "" });
2708
+ return Object.defineProperty(getInternalSlotOrThrowForDateTimeFormat(this).ze ||= yt.prototype.Ae.bind(this), "name", { value: "" });
2744
2709
  }
2745
2710
  formatToParts(e) {
2746
2711
  return ((e, t) => {
@@ -2749,7 +2714,7 @@ var Et = class {
2749
2714
  })(this, e);
2750
2715
  }
2751
2716
  formatRange(e, t) {
2752
- return void 0 !== e && void 0 !== t || throwTypeError(fe), ((e, t, o) => {
2717
+ return void 0 !== e && void 0 !== t || throwTypeError(he), ((e, t, o) => {
2753
2718
  const n = getInternalSlotOrThrowForDateTimeFormat(e);
2754
2719
  validateSameTemporalType(t, o);
2755
2720
  const [r, a] = handleDateTimeValue(n, t);
@@ -2757,7 +2722,7 @@ var Et = class {
2757
2722
  })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
2758
2723
  }
2759
2724
  formatRangeToParts(e, t) {
2760
- return void 0 !== e && void 0 !== t || throwTypeError(fe), ((e, t, o) => {
2725
+ return void 0 !== e && void 0 !== t || throwTypeError(he), ((e, t, o) => {
2761
2726
  const n = getInternalSlotOrThrowForDateTimeFormat(e);
2762
2727
  validateSameTemporalType(t, o);
2763
2728
  const [r, a] = handleDateTimeValue(n, t);
@@ -2765,15 +2730,15 @@ var Et = class {
2765
2730
  })(this, toDateTimeFormattable(e), toDateTimeFormattable(t));
2766
2731
  }
2767
2732
  resolvedOptions() {
2768
- return getInternalSlotOrThrowForDateTimeFormat(this).be.resolvedOptions();
2733
+ return getInternalSlotOrThrowForDateTimeFormat(this).Ze.resolvedOptions();
2769
2734
  }
2770
2735
  };
2771
- const Rt = Object.getOwnPropertyDescriptors(Ft), bt = Pt.prototype;
2772
- Rt.prototype.value = bt;
2773
- for (const e of ["formatRange", "formatRangeToParts"]) Ft.prototype[e] || delete bt[e];
2774
- Object.defineProperties(DateTimeFormat, Rt), DateTimeFormat.prototype.constructor = DateTimeFormat, defineStringTag(DateTimeFormat.prototype, "Intl.DateTimeFormat");
2775
- const Zt = /* @__PURE__ */ new WeakMap();
2776
- var Nt = class {
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 {
2777
2742
  constructor(e) {
2778
2743
  createTemporalInstant(validateEpochNanoseconds(createEpochNanosecondsFromBigInt(toBigInt(e))), this);
2779
2744
  }
@@ -2808,43 +2773,43 @@ var Nt = class {
2808
2773
  return differenceTemporalInstant(-1, getInternalSlotOrThrowForInstant(this), e, t);
2809
2774
  }
2810
2775
  round(e) {
2811
- const t = getInternalSlotOrThrowForInstant(this), o = getRoundToOptionsObject(e), n = getRoundingIncrementOption(o), r = getRoundingModeOption(o, Z), a = getTemporalUnitValuedOption(o, "smallestUnit", u);
2812
- return validateTemporalUnitValue(a, s), validateTemporalRoundingIncrement(n, i / nanosecondsForTimeUnit(a), !0), createTemporalInstant(roundTemporalInstant(t.Y, n, a, r));
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));
2813
2778
  }
2814
2779
  equals(e) {
2815
2780
  return !compareEpochNanoseconds(getInternalSlotOrThrowForInstant(this).Y, getInternalSlotOrThrowForInstant(toTemporalInstant$1(e)).Y);
2816
2781
  }
2817
2782
  toString(e = void 0) {
2818
- const t = getInternalSlotOrThrowForInstant(this), o = getOptionsObject(e), n = getTemporalFractionalSecondDigitsOption(o), r = getRoundingModeOption(o, P), a = getTemporalUnitValuedOption(o, "smallestUnit", void 0), i = o.timeZone;
2819
- validateTemporalUnitValue(a, s), a === B && throwRangeError(invalidField("smallestUnit"));
2820
- const l = mapUnlessUndefined(i, toTemporalTimeZoneIdentifier), c = toSecondsStringPrecisionRecord(a, n);
2821
- return temporalInstantToString(roundTemporalInstant(t.Y, c.Ee, c.ye, r), l, c.ve);
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);
2822
2787
  }
2823
2788
  toLocaleString(e = void 0, t = void 0) {
2824
- return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, d), this);
2789
+ return getInternalSlotOrThrowForInstant(this), formatDateTime(createDateTimeFormat(e, t, s), this);
2825
2790
  }
2826
2791
  toJSON() {
2827
2792
  return temporalInstantToString(getInternalSlotOrThrowForInstant(this).Y);
2828
2793
  }
2829
2794
  valueOf() {
2830
- throwTypeError(Oe);
2795
+ throwTypeError(fe);
2831
2796
  }
2832
2797
  toZonedDateTimeISO(e) {
2833
2798
  return createTemporalZonedDateTime(getInternalSlotOrThrowForInstant(this).Y, toTemporalTimeZoneIdentifier(e), "iso8601");
2834
2799
  }
2835
2800
  };
2836
- defineStringTag(Nt.prototype, "Temporal.Instant"), renameFunction(Nt, "Instant");
2837
- const Mt = class {
2801
+ defineStringTag(Zt.prototype, "Temporal.Instant"), renameFunction(Zt, "Instant");
2802
+ const Nt = class {
2838
2803
  toTemporalInstant() {
2839
2804
  const e = Date.prototype.valueOf.call(this);
2840
- return isNaN(e) && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
2841
- }
2842
- }.prototype.toTemporalInstant, Ut = Object.getOwnPropertyDescriptors(globalThis.Intl);
2843
- Ut.DateTimeFormat.value = DateTimeFormat;
2844
- const jt = {};
2845
- Object.defineProperties(jt, Ut);
2846
- let $t, Ct = 0, Yt = -Infinity;
2847
- const At = {
2805
+ return e != e && throwRangeError("invalid date"), createTemporalInstant(createEpochNanosecondsFromEpochMilliseconds(e));
2806
+ }
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 = {
2848
2813
  timeZoneId: () => systemTimeZoneIdentifier(),
2849
2814
  instant: () => createTemporalInstant(systemUtcEpochNanoseconds()),
2850
2815
  plainDateTimeISO: (e = void 0) => createTemporalDateTime(systemDateTime(e), "iso8601"),
@@ -2852,17 +2817,17 @@ const At = {
2852
2817
  plainDateISO: (e = void 0) => createTemporalDate(systemDateTime(e).o, "iso8601"),
2853
2818
  plainTimeISO: (e = void 0) => createTemporalTime(systemDateTime(e).p)
2854
2819
  };
2855
- defineStringTag(At, "Temporal.Now"), makePropertiesNonEnumerable(At);
2820
+ defineStringTag(Yt, "Temporal.Now"), makePropertiesNonEnumerable(Yt);
2856
2821
  const Wt = {
2857
- Instant: Nt,
2858
- PlainDateTime: Ne,
2822
+ Instant: Zt,
2823
+ PlainDateTime: Ze,
2859
2824
  PlainDate: ut,
2860
- PlainTime: Ue,
2861
- PlainYearMonth: mt,
2862
- PlainMonthDay: st,
2863
- Duration: It,
2864
- ZonedDateTime: Pe,
2865
- Now: At
2825
+ PlainTime: Me,
2826
+ PlainYearMonth: dt,
2827
+ PlainMonthDay: ct,
2828
+ Duration: ft,
2829
+ ZonedDateTime: Ee,
2830
+ Now: Yt
2866
2831
  };
2867
2832
  defineStringTag(Wt, "Temporal"), makePropertiesNonEnumerable(Wt);
2868
- export { defineNonEnumerableProperty as a, Mt as i, setSystemTimeZoneIdCacheTtl as n, jt as r, Wt as t };
2833
+ export { defineNonEnumerableProperty as a, Nt as i, setSystemTimeZoneIdCacheTtl as n, Ut as r, Wt as t };