temporal-polyfill-lite 0.4.0 → 0.4.2

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