@fedify/netlify 2.4.0-dev.1666 → 2.4.0-dev.1727

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.
Files changed (3) hide show
  1. package/dist/mod.cjs +109 -103
  2. package/dist/mod.js +1 -1
  3. package/package.json +3 -3
package/dist/mod.cjs CHANGED
@@ -152,7 +152,7 @@ function parseInt0(s) {
152
152
  function padNumber(digits, num) {
153
153
  return String(num).padStart(digits, "0");
154
154
  }
155
- const padNumber2 = /* @__PURE__ */ bindArgs(padNumber, 2);
155
+ const padNumber2 = /*@__PURE__*/ bindArgs(padNumber, 2);
156
156
  function compareNumbers(a, b) {
157
157
  return Math.sign(a - b);
158
158
  }
@@ -220,7 +220,7 @@ const unitNameMap = {
220
220
  month: 8,
221
221
  year: 9
222
222
  };
223
- const unitNamesAsc = /* @__PURE__ */ Object.keys(unitNameMap);
223
+ const unitNamesAsc = /*@__PURE__*/ Object.keys(unitNameMap);
224
224
  const nanoInMicro = nanoInMicro$1;
225
225
  const nanoInMilli = nanoInMilli$1;
226
226
  const nanoInSec = nanoInSec$1;
@@ -236,19 +236,19 @@ const unitNanoMap = [
236
236
  nanoInHour,
237
237
  nanoInUtcDay
238
238
  ];
239
- const bigNanoInMicro = /* @__PURE__ */ BigInt(nanoInMicro);
240
- const bigNanoInMilli = /* @__PURE__ */ BigInt(nanoInMilli);
241
- const bigNanoInSec = /* @__PURE__ */ BigInt(nanoInSec);
242
- const bigNanoInMinute = /* @__PURE__ */ BigInt(nanoInMinute);
243
- const bigNanoInHour = /* @__PURE__ */ BigInt(nanoInHour);
244
- const bigNanoInUtcDay = /* @__PURE__ */ BigInt(nanoInUtcDay);
239
+ const bigNanoInMicro = /*@__PURE__*/ BigInt(nanoInMicro);
240
+ const bigNanoInMilli = /*@__PURE__*/ BigInt(nanoInMilli);
241
+ const bigNanoInSec = /*@__PURE__*/ BigInt(nanoInSec);
242
+ const bigNanoInMinute = /*@__PURE__*/ BigInt(nanoInMinute);
243
+ const bigNanoInHour = /*@__PURE__*/ BigInt(nanoInHour);
244
+ const bigNanoInUtcDay = /*@__PURE__*/ BigInt(nanoInUtcDay);
245
245
  function divideBigNanoToExactNumber(bigNano, divisorNano) {
246
246
  const days = Number(bigNano / bigNanoInUtcDay);
247
247
  const timeNano = Number(bigNano % bigNanoInUtcDay);
248
248
  return days * (nanoInUtcDay / divisorNano) + (Math.trunc(timeNano / divisorNano) + timeNano % divisorNano / divisorNano);
249
249
  }
250
- const timeFieldNamesAsc = /* @__PURE__ */ unitNamesAsc.slice(0, 6);
251
- const timeGetters = /* @__PURE__ */ createPropGetters(timeFieldNamesAsc);
250
+ const timeFieldNamesAsc = /*@__PURE__*/ unitNamesAsc.slice(0, 6);
251
+ const timeGetters = /*@__PURE__*/ createPropGetters(timeFieldNamesAsc);
252
252
  const yearFieldNamesAsc = ["year"];
253
253
  const dayFieldNamesAsc = ["day"];
254
254
  const calendarDateFieldNamesAsc = [
@@ -270,24 +270,24 @@ const monthDayFieldNames = [
270
270
  "month",
271
271
  "monthCode"
272
272
  ];
273
- const timeFieldNamesAlpha = /* @__PURE__ */ sortStrings(timeFieldNamesAsc);
274
- const yearFieldNamesWithEraAlpha = /* @__PURE__ */ sortStrings(eraYearFieldNames, yearFieldNamesAsc);
275
- const yearMonthFieldNamesAlpha = /* @__PURE__ */ sortStrings(monthFieldNames, yearFieldNamesAsc);
276
- const yearMonthFieldNamesWithEraAlpha = /* @__PURE__ */ sortStrings(eraYearFieldNames, yearMonthFieldNamesAlpha);
277
- const yearMonthCodeFieldNamesAlpha = /* @__PURE__ */ sortStrings(["monthCode"], yearFieldNamesAsc);
278
- const yearMonthCodeFieldNamesWithEraAlpha = /* @__PURE__ */ sortStrings(eraYearFieldNames, yearMonthCodeFieldNamesAlpha);
279
- const monthCodeDayFieldNamesAlpha = /* @__PURE__ */ sortStrings(dayFieldNamesAsc, ["monthCode"]);
280
- const dateFieldNamesAlpha = /* @__PURE__ */ sortStrings(dayFieldNamesAsc, yearMonthFieldNamesAlpha);
281
- const dateFieldNamesWithEraAlpha = /* @__PURE__ */ sortStrings(dayFieldNamesAsc, eraYearFieldNames, yearMonthFieldNamesAlpha);
282
- const dateTimeFieldNamesAlpha = /* @__PURE__ */ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc);
283
- const dateTimeFieldNamesWithEraAlpha = /* @__PURE__ */ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc);
284
- const dateTimeAndOffsetFieldNamesAlpha = /* @__PURE__ */ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc, offsetFieldNames);
285
- const dateTimeAndOffsetFieldNamesWithEraAlpha = /* @__PURE__ */ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc, offsetFieldNames);
286
- const dateTimeAndZoneFieldNamesAlpha = /* @__PURE__ */ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc, offsetFieldNames, timeZoneFieldNames);
287
- const dateTimeAndZoneFieldNamesWithEraAlpha = /* @__PURE__ */ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc, offsetFieldNames, timeZoneFieldNames);
288
- const yearMonthCodeDayFieldNamesAlpha = /* @__PURE__ */ sortStrings(dayFieldNamesAsc, yearMonthCodeFieldNamesAlpha);
289
- const yearMonthCodeDayFieldNamesWithEraAlpha = /* @__PURE__ */ sortStrings(dayFieldNamesAsc, eraYearFieldNames, yearMonthCodeFieldNamesAlpha);
290
- const timeFieldDefaults = /* @__PURE__ */ zipPropsConst(timeFieldNamesAsc, 0);
273
+ const timeFieldNamesAlpha = /*@__PURE__*/ sortStrings(timeFieldNamesAsc);
274
+ const yearFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(eraYearFieldNames, yearFieldNamesAsc);
275
+ const yearMonthFieldNamesAlpha = /*@__PURE__*/ sortStrings(monthFieldNames, yearFieldNamesAsc);
276
+ const yearMonthFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(eraYearFieldNames, yearMonthFieldNamesAlpha);
277
+ const yearMonthCodeFieldNamesAlpha = /*@__PURE__*/ sortStrings(["monthCode"], yearFieldNamesAsc);
278
+ const yearMonthCodeFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(eraYearFieldNames, yearMonthCodeFieldNamesAlpha);
279
+ const monthCodeDayFieldNamesAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, ["monthCode"]);
280
+ const dateFieldNamesAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, yearMonthFieldNamesAlpha);
281
+ const dateFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, eraYearFieldNames, yearMonthFieldNamesAlpha);
282
+ const dateTimeFieldNamesAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc);
283
+ const dateTimeFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc);
284
+ const dateTimeAndOffsetFieldNamesAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc, offsetFieldNames);
285
+ const dateTimeAndOffsetFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc, offsetFieldNames);
286
+ const dateTimeAndZoneFieldNamesAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesAlpha, timeFieldNamesAsc, offsetFieldNames, timeZoneFieldNames);
287
+ const dateTimeAndZoneFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dateFieldNamesWithEraAlpha, timeFieldNamesAsc, offsetFieldNames, timeZoneFieldNames);
288
+ const yearMonthCodeDayFieldNamesAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, yearMonthCodeFieldNamesAlpha);
289
+ const yearMonthCodeDayFieldNamesWithEraAlpha = /*@__PURE__*/ sortStrings(dayFieldNamesAsc, eraYearFieldNames, yearMonthCodeFieldNamesAlpha);
290
+ const timeFieldDefaults = /*@__PURE__*/ zipPropsConst(timeFieldNamesAsc, 0);
291
291
  function validateTimeFields(timeFields) {
292
292
  return constrainTimeFields(timeFields, 1), timeFields;
293
293
  }
@@ -516,20 +516,20 @@ function computeCalendarWeekOfYear(calendar, isoDate) {
516
516
  function computeCalendarYearOfWeek(calendar, isoDate) {
517
517
  return calendar === void 0 ? computeIsoWeekFields(isoDate).yearOfWeek : void 0;
518
518
  }
519
- const durationFieldNamesAsc = /* @__PURE__ */ unitNamesAsc.map((unitName) => unitName + "s");
520
- const durationGetters = /* @__PURE__ */ createPropGetters(durationFieldNamesAsc);
521
- const durationFieldNamesAlpha = /* @__PURE__ */ sortStrings(durationFieldNamesAsc);
522
- const durationTimeFieldNamesAsc = /* @__PURE__ */ durationFieldNamesAsc.slice(0, 6);
523
- const durationDateFieldNamesAsc = /* @__PURE__ */ durationFieldNamesAsc.slice(6);
524
- const durationCalendarFieldNamesAsc = /* @__PURE__ */ durationDateFieldNamesAsc.slice(1);
525
- const durationFieldIndexes = /* @__PURE__ */ durationFieldNamesAsc.reduce((indexes, fieldName, i) => (indexes[fieldName] = i, indexes), {});
526
- const durationFieldDefaults = /* @__PURE__ */ zipPropsConst(durationFieldNamesAsc, 0);
527
- const durationTimeFieldDefaults = /* @__PURE__ */ zipPropsConst(durationTimeFieldNamesAsc, 0);
528
- const clearDurationFields = /* @__PURE__ */ bindArgs(zeroOutProps, durationFieldNamesAsc);
519
+ const durationFieldNamesAsc = /*@__PURE__*/ unitNamesAsc.map((unitName) => unitName + "s");
520
+ const durationGetters = /*@__PURE__*/ createPropGetters(durationFieldNamesAsc);
521
+ const durationFieldNamesAlpha = /*@__PURE__*/ sortStrings(durationFieldNamesAsc);
522
+ const durationTimeFieldNamesAsc = /*@__PURE__*/ durationFieldNamesAsc.slice(0, 6);
523
+ const durationDateFieldNamesAsc = /*@__PURE__*/ durationFieldNamesAsc.slice(6);
524
+ const durationCalendarFieldNamesAsc = /*@__PURE__*/ durationDateFieldNamesAsc.slice(1);
525
+ const durationFieldIndexes = /*@__PURE__*/ durationFieldNamesAsc.reduce((indexes, fieldName, i) => (indexes[fieldName] = i, indexes), {});
526
+ const durationFieldDefaults = /*@__PURE__*/ zipPropsConst(durationFieldNamesAsc, 0);
527
+ const durationTimeFieldDefaults = /*@__PURE__*/ zipPropsConst(durationTimeFieldNamesAsc, 0);
528
+ const clearDurationFields = /*@__PURE__*/ bindArgs(zeroOutProps, durationFieldNamesAsc);
529
529
  function requirePropDefined(optionName, optionVal) {
530
530
  return optionVal ?? throwRangeError(missingField(optionName)), optionVal;
531
531
  }
532
- const requireString = /* @__PURE__ */ bindArgs(requireType, "string");
532
+ const requireString = /*@__PURE__*/ bindArgs(requireType, "string");
533
533
  function requireType(typeName, arg, entityName = typeName) {
534
534
  return typeof arg !== typeName && throwTypeError(invalidEntity(entityName, arg)), arg;
535
535
  }
@@ -641,17 +641,17 @@ function coerceChoiceOption(optionName, enumNameMap, options, defaultChoice = 0)
641
641
  const enumNum = enumNameMap[enumStr];
642
642
  return void 0 === enumNum && throwRangeError(invalidChoice(optionName, enumStr, enumNameMap)), enumNum;
643
643
  }
644
- const coerceSmallestUnit = /* @__PURE__ */ bindArgs(coerceUnitOption, smallestUnitStr);
645
- const coerceLargestUnit = /* @__PURE__ */ bindArgs(coerceUnitOption, "largestUnit");
646
- const coerceTotalUnit = /* @__PURE__ */ bindArgs(coerceUnitOption, "unit");
647
- const coerceOverflow = /* @__PURE__ */ bindArgs(coerceChoiceOption, "overflow", overflowMap);
648
- const coerceEpochDisambig = /* @__PURE__ */ bindArgs(coerceChoiceOption, "disambiguation", epochDisambigMap);
649
- const coerceOffsetDisambig = /* @__PURE__ */ bindArgs(coerceChoiceOption, "offset", offsetDisambigMap);
650
- const coerceCalendarDisplay = /* @__PURE__ */ bindArgs(coerceChoiceOption, "calendarName", calendarDisplayMap);
651
- const coerceTimeZoneDisplay = /* @__PURE__ */ bindArgs(coerceChoiceOption, "timeZoneName", timeZoneDisplayMap);
652
- const coerceOffsetDisplay = /* @__PURE__ */ bindArgs(coerceChoiceOption, "offset", offsetDisplayMap);
653
- const coerceRoundingMode = /* @__PURE__ */ bindArgs(coerceChoiceOption, "roundingMode", roundingModeMap);
654
- const coerceDirection = /* @__PURE__ */ bindArgs(coerceChoiceOption, "direction", directionMap);
644
+ const coerceSmallestUnit = /*@__PURE__*/ bindArgs(coerceUnitOption, smallestUnitStr);
645
+ const coerceLargestUnit = /*@__PURE__*/ bindArgs(coerceUnitOption, "largestUnit");
646
+ const coerceTotalUnit = /*@__PURE__*/ bindArgs(coerceUnitOption, "unit");
647
+ const coerceOverflow = /*@__PURE__*/ bindArgs(coerceChoiceOption, "overflow", overflowMap);
648
+ const coerceEpochDisambig = /*@__PURE__*/ bindArgs(coerceChoiceOption, "disambiguation", epochDisambigMap);
649
+ const coerceOffsetDisambig = /*@__PURE__*/ bindArgs(coerceChoiceOption, "offset", offsetDisambigMap);
650
+ const coerceCalendarDisplay = /*@__PURE__*/ bindArgs(coerceChoiceOption, "calendarName", calendarDisplayMap);
651
+ const coerceTimeZoneDisplay = /*@__PURE__*/ bindArgs(coerceChoiceOption, "timeZoneName", timeZoneDisplayMap);
652
+ const coerceOffsetDisplay = /*@__PURE__*/ bindArgs(coerceChoiceOption, "offset", offsetDisplayMap);
653
+ const coerceRoundingMode = /*@__PURE__*/ bindArgs(coerceChoiceOption, "roundingMode", roundingModeMap);
654
+ const coerceDirection = /*@__PURE__*/ bindArgs(coerceChoiceOption, "direction", directionMap);
655
655
  function validateRoundingInc(roundingInc, smallestUnit, allowManyLargeUnits, solarMode) {
656
656
  const upUnitNano = solarMode ? nanoInUtcDay : unitNanoMap[smallestUnit + 1];
657
657
  if (upUnitNano) {
@@ -705,8 +705,8 @@ function refineZonedFieldOptions(options, defaultOffsetDisambig = 0) {
705
705
  epochDisambig
706
706
  ];
707
707
  }
708
- const epochNanoMax = /* @__PURE__ */ BigInt(1e8) * bigNanoInUtcDay;
709
- const epochNanoMin = /* @__PURE__ */ BigInt(-1e8) * bigNanoInUtcDay;
708
+ const epochNanoMax = /*@__PURE__*/ BigInt(1e8) * bigNanoInUtcDay;
709
+ const epochNanoMin = /*@__PURE__*/ BigInt(-1e8) * bigNanoInUtcDay;
710
710
  const plainDateEpochNanoMin = epochNanoMin - bigNanoInUtcDay;
711
711
  const isoYearMonthIndexMin = -3261848;
712
712
  function checkIsoYearMonthInBounds(isoDate) {
@@ -977,11 +977,12 @@ function nudgeRelativeDuration(sign, durationFields, endEpochNano, _largestUnit,
977
977
  }
978
978
  function getTimeZoneTransitionEpochNanoseconds(slots, options) {
979
979
  return slots.timeZone.U(slots.epochNanoseconds, ((options) => {
980
- const res = coerceDirection(normalizeOptionsOrString(options, "direction"), 0);
980
+ const normalizedOptions = normalizeOptionsOrString(options, "direction");
981
+ const res = coerceDirection(normalizedOptions, 0);
981
982
  return res || throwRangeError(invalidEntity("direction", res)), res;
982
983
  })(options));
983
984
  }
984
- const zonedEpochSlotsToIso = /* @__PURE__ */ memoize(_zonedEpochSlotsToIso, WeakMap);
985
+ const zonedEpochSlotsToIso = /*@__PURE__*/ memoize(_zonedEpochSlotsToIso, WeakMap);
985
986
  function _zonedEpochSlotsToIso(slots) {
986
987
  const { epochNanoseconds, timeZone } = slots;
987
988
  const offsetNanoseconds = timeZone.C(epochNanoseconds);
@@ -1547,7 +1548,7 @@ function resolveTimeFields(fields, overflow) {
1547
1548
  ...fields
1548
1549
  }), overflow);
1549
1550
  }
1550
- const offsetRegExp = /* @__PURE__ */ createRegExp("([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?");
1551
+ const offsetRegExp = /*@__PURE__*/ createRegExp("([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?");
1551
1552
  function parseOffsetNano(s) {
1552
1553
  const offsetNano = parseOffsetNanoMaybe(s);
1553
1554
  return void 0 === offsetNano && throwRangeError(failedParse(s)), offsetNano;
@@ -1582,13 +1583,13 @@ const dateFieldRefiners = {
1582
1583
  },
1583
1584
  day: toPositiveIntegerWithTruncation
1584
1585
  };
1585
- const timeFieldRefiners = /* @__PURE__ */ zipPropsConst(timeFieldNamesAsc, toIntegerWithTrunc);
1586
- const durationFieldRefiners = /* @__PURE__ */ zipPropsConst(durationFieldNamesAsc, toStrictInteger);
1586
+ const timeFieldRefiners = /*@__PURE__*/ zipPropsConst(timeFieldNamesAsc, toIntegerWithTrunc);
1587
+ const durationFieldRefiners = /*@__PURE__*/ zipPropsConst(durationFieldNamesAsc, toStrictInteger);
1587
1588
  const offsetFieldRefiners = { offset(offsetString) {
1588
1589
  return parseOffsetNano(toStringViaPrimitive(offsetString));
1589
1590
  } };
1590
- const dateTimeFieldRefiners = /* @__PURE__ */ Object.assign({}, dateFieldRefiners, timeFieldRefiners);
1591
- const zonedDateTimeFieldRefiners = /* @__PURE__ */ Object.assign({}, dateTimeFieldRefiners, offsetFieldRefiners);
1591
+ const dateTimeFieldRefiners = /*@__PURE__*/ Object.assign({}, dateFieldRefiners, timeFieldRefiners);
1592
+ const zonedDateTimeFieldRefiners = /*@__PURE__*/ Object.assign({}, dateTimeFieldRefiners, offsetFieldRefiners);
1592
1593
  function readAndRefineBagFields(bag, validFieldNames, fieldRefiners, requiredFieldNames, disallowEmpty = !requiredFieldNames) {
1593
1594
  const res = {};
1594
1595
  let anyMatching = 0;
@@ -1691,7 +1692,9 @@ const timeZonePeriodDaysByName = {
1691
1692
  const minPossibleTransitionSec = -388152e4;
1692
1693
  function refineTimeDisplayTuple(options, maxSmallestUnit = 4) {
1693
1694
  const subsecDigits = coerceFractionalSecondDigits(options);
1694
- return [coerceRoundingMode(options, 4), ...resolveSmallestUnitAndSubsecDigits(validateUnitRange(smallestUnitStr, coerceSmallestUnit(options), 0, maxSmallestUnit), subsecDigits)];
1695
+ const roundingMode = coerceRoundingMode(options, 4);
1696
+ const smallestUnit = coerceSmallestUnit(options);
1697
+ return [roundingMode, ...resolveSmallestUnitAndSubsecDigits(validateUnitRange(smallestUnitStr, smallestUnit, 0, maxSmallestUnit), subsecDigits)];
1695
1698
  }
1696
1699
  function refineDateDisplayOptions(options) {
1697
1700
  return coerceCalendarDisplay(normalizeOptions(options));
@@ -1866,15 +1869,17 @@ function resolveTimeZoneRecord(rawId) {
1866
1869
  kind: "fixed",
1867
1870
  ...offsetRecord
1868
1871
  };
1869
- return queryNamedTimeZoneRecord("UTC" === upperRawId ? "UTC" : ((rawId) => (badCharactersRegExp.test(rawId) && throwRangeError(invalidTimeZone(rawId)), icuRegExp.test(rawId) && throwRangeError("Forbidden ICU TimeZone"), rawId.toLowerCase().split("/").map((part, partI) => (part.length <= 3 || /\d/.test(part)) && !/etc|yap/.test(part) ? part.toUpperCase() : part.replace(/baja|dumont|[a-z]+/g, (a, i) => a.length <= 2 && !partI || "in" === a || "chat" === a ? a.toUpperCase() : a.length > 2 || !i ? capitalize(a).replace(/island|noronha|murdo|rivadavia|urville/, capitalize) : a)).join("/")))(rawId));
1872
+ const normId = "UTC" === upperRawId ? "UTC" : ((rawId) => (badCharactersRegExp.test(rawId) && throwRangeError(invalidTimeZone(rawId)), icuRegExp.test(rawId) && throwRangeError("Forbidden ICU TimeZone"), rawId.toLowerCase().split("/").map((part, partI) => (part.length <= 3 || /\d/.test(part)) && !/etc|yap/.test(part) ? part.toUpperCase() : part.replace(/baja|dumont|[a-z]+/g, (a, i) => a.length <= 2 && !partI || "in" === a || "chat" === a ? a.toUpperCase() : a.length > 2 || !i ? capitalize(a).replace(/island|noronha|murdo|rivadavia|urville/, capitalize) : a)).join("/")))(rawId);
1873
+ return queryNamedTimeZoneRecord(normId);
1870
1874
  }
1871
- const queryNamedTimeZoneRecord = /* @__PURE__ */ memoize((normId) => {
1875
+ const queryNamedTimeZoneRecord = /*@__PURE__*/ memoize((normId) => {
1872
1876
  if ("UTC" === normId) return {
1873
1877
  kind: "utc",
1874
1878
  id: normId,
1875
1879
  o: normId
1876
1880
  };
1877
- const format = queryTimeZoneIntlFormat(normId.toUpperCase());
1881
+ const upperNormId = normId.toUpperCase();
1882
+ const format = queryTimeZoneIntlFormat(upperNormId);
1878
1883
  return {
1879
1884
  kind: "named",
1880
1885
  id: normId,
@@ -1882,7 +1887,7 @@ const queryNamedTimeZoneRecord = /* @__PURE__ */ memoize((normId) => {
1882
1887
  o: format.resolvedOptions().timeZone
1883
1888
  };
1884
1889
  });
1885
- const queryTimeZoneIntlFormat = /* @__PURE__ */ memoize((upperNormId) => new RawDateTimeFormat("en-u-hc-h23", {
1890
+ const queryTimeZoneIntlFormat = /*@__PURE__*/ memoize((upperNormId) => new RawDateTimeFormat("en-u-hc-h23", {
1886
1891
  calendar: "iso8601",
1887
1892
  timeZone: upperNormId,
1888
1893
  era: "short",
@@ -1897,7 +1902,7 @@ function queryTimeZone(rawTimeZoneId) {
1897
1902
  const record = resolveTimeZoneRecord(rawTimeZoneId);
1898
1903
  return queryTimeZoneRecord(record.id, record);
1899
1904
  }
1900
- const queryTimeZoneRecord = /* @__PURE__ */ memoize((normTimeZoneId, record) => "named" === record.kind ? new IntlTimeZone(normTimeZoneId, record.o, record.format) : new FixedTimeZone(normTimeZoneId, record.o, "fixed" === record.kind ? record._ : 0));
1905
+ const queryTimeZoneRecord = /*@__PURE__*/ memoize((normTimeZoneId, record) => "named" === record.kind ? new IntlTimeZone(normTimeZoneId, record.o, record.format) : new FixedTimeZone(normTimeZoneId, record.o, "fixed" === record.kind ? record._ : 0));
1901
1906
  var FixedTimeZone = class {
1902
1907
  constructor(id, compareKey, offsetNano) {
1903
1908
  this.id = id, this.o = compareKey, this._ = offsetNano;
@@ -1979,7 +1984,8 @@ var IntlTimeZone = class {
1979
1984
  return void 0 !== intlParts.era && "bce" === normalizeEraName(intlParts.era) ? 1 - year : year;
1980
1985
  })(intlParts), parseInt(intlParts.month), parseInt(intlParts.day)) + 3600 * parseInt(intlParts.hour) + 60 * parseInt(intlParts.minute) + parseInt(intlParts.second) - epochSec;
1981
1986
  })(format), ((timeZoneId) => {
1982
- return timeZonePeriodDaysByName[timeZoneId.split("/").pop()] || 60;
1987
+ const timeZoneName = timeZoneId.split("/").pop();
1988
+ return timeZonePeriodDaysByName[timeZoneName] || 60;
1983
1989
  })(id));
1984
1990
  }
1985
1991
  C(epochNano) {
@@ -2203,12 +2209,12 @@ function offsetRegExpStr(separatorIndex) {
2203
2209
  return "([+-])" + timeRegExpStr(separatorIndex);
2204
2210
  }
2205
2211
  const dateTimeRegExpStr = "(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]" + timeRegExpStr(8) + "(Z|" + offsetRegExpStr(15) + ")?)?";
2206
- const yearMonthRegExp = /* @__PURE__ */ createRegExp("(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})");
2207
- const monthDayRegExp = /* @__PURE__ */ createRegExp("(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})");
2208
- const dateTimeRegExp = /* @__PURE__ */ createRegExp(dateTimeRegExpStr + "((?:\\[(!?)([^\\]]*)\\]){0,9})");
2209
- const timeRegExp = /* @__PURE__ */ createRegExp("T?" + timeRegExpStr(2) + `(${offsetRegExpStr(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`);
2210
- const annotationRegExp = /* @__PURE__ */ new RegExp("\\[(!?)([^\\]]*)\\]", "g");
2211
- const durationRegExp = /* @__PURE__ */ createRegExp("([+-])?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)?)?");
2212
+ const yearMonthRegExp = /*@__PURE__*/ createRegExp("(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})");
2213
+ const monthDayRegExp = /*@__PURE__*/ createRegExp("(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})");
2214
+ const dateTimeRegExp = /*@__PURE__*/ createRegExp(dateTimeRegExpStr + "((?:\\[(!?)([^\\]]*)\\]){0,9})");
2215
+ const timeRegExp = /*@__PURE__*/ createRegExp("T?" + timeRegExpStr(2) + `(${offsetRegExpStr(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`);
2216
+ const annotationRegExp = /*@__PURE__*/ new RegExp("\\[(!?)([^\\]]*)\\]", "g");
2217
+ const durationRegExp = /*@__PURE__*/ createRegExp("([+-])?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)?)?");
2212
2218
  function parseDateTimeLike(s) {
2213
2219
  const parts = dateTimeRegExp.exec(s);
2214
2220
  return parts ? ((parts) => {
@@ -2486,8 +2492,8 @@ const timeDefaultShapeFields = {
2486
2492
  minute: "numeric",
2487
2493
  second: "numeric"
2488
2494
  };
2489
- const dateTimeDefaultShapeFields = /* @__PURE__ */ Object.assign({}, dateDefaultShapeFields, timeDefaultShapeFields);
2490
- const zonedDateTimeDefaultShapeFields = /* @__PURE__ */ Object.assign({}, dateTimeDefaultShapeFields, { timeZoneName: "short" });
2495
+ const dateTimeDefaultShapeFields = /*@__PURE__*/ Object.assign({}, dateDefaultShapeFields, timeDefaultShapeFields);
2496
+ const zonedDateTimeDefaultShapeFields = /*@__PURE__*/ Object.assign({}, dateTimeDefaultShapeFields, { timeZoneName: "short" });
2491
2497
  const yearMonthDefaultShapeFields = {
2492
2498
  year: "numeric",
2493
2499
  month: "numeric"
@@ -2511,15 +2517,15 @@ const timeShapeFieldNames = [
2511
2517
  "fractionalSecondDigits",
2512
2518
  "timeStyle"
2513
2519
  ];
2514
- const dateTimeShapeFieldNames = /* @__PURE__ */ dateShapeFieldNames.concat(timeShapeFieldNames);
2515
- const yearMonthIgnoredFieldNames = /* @__PURE__ */ ["weekday", "day"].concat(timeShapeFieldNames);
2516
- const monthDayIgnoredFieldNames = /* @__PURE__ */ ["weekday", "year"].concat(timeShapeFieldNames);
2517
- const transformInstantOptions = /* @__PURE__ */ createOptionsTransformer(dateTimeShapeFieldNames, [], [], dateTimeDefaultShapeFields);
2518
- const transformZonedOptions = /* @__PURE__ */ createOptionsTransformer(dateTimeShapeFieldNames, [], [], zonedDateTimeDefaultShapeFields);
2519
- const transformDateTimeOptions = /* @__PURE__ */ createOptionsTransformer(dateTimeShapeFieldNames, [], ["timeZoneName"], dateTimeDefaultShapeFields);
2520
- const transformDateOptions = /* @__PURE__ */ createOptionsTransformer(dateShapeFieldNames, timeShapeFieldNames, ["timeZoneName"], dateDefaultShapeFields);
2521
- const transformTimeOptions = /* @__PURE__ */ createOptionsTransformer(timeShapeFieldNames, dateShapeFieldNames, ["timeZoneName", "era"], timeDefaultShapeFields);
2522
- const transformYearMonthOptions = /* @__PURE__ */ createOptionsTransformer([
2520
+ const dateTimeShapeFieldNames = /*@__PURE__*/ dateShapeFieldNames.concat(timeShapeFieldNames);
2521
+ const yearMonthIgnoredFieldNames = /*@__PURE__*/ ["weekday", "day"].concat(timeShapeFieldNames);
2522
+ const monthDayIgnoredFieldNames = /*@__PURE__*/ ["weekday", "year"].concat(timeShapeFieldNames);
2523
+ const transformInstantOptions = /*@__PURE__*/ createOptionsTransformer(dateTimeShapeFieldNames, [], [], dateTimeDefaultShapeFields);
2524
+ const transformZonedOptions = /*@__PURE__*/ createOptionsTransformer(dateTimeShapeFieldNames, [], [], zonedDateTimeDefaultShapeFields);
2525
+ const transformDateTimeOptions = /*@__PURE__*/ createOptionsTransformer(dateTimeShapeFieldNames, [], ["timeZoneName"], dateTimeDefaultShapeFields);
2526
+ const transformDateOptions = /*@__PURE__*/ createOptionsTransformer(dateShapeFieldNames, timeShapeFieldNames, ["timeZoneName"], dateDefaultShapeFields);
2527
+ const transformTimeOptions = /*@__PURE__*/ createOptionsTransformer(timeShapeFieldNames, dateShapeFieldNames, ["timeZoneName", "era"], timeDefaultShapeFields);
2528
+ const transformYearMonthOptions = /*@__PURE__*/ createOptionsTransformer([
2523
2529
  "year",
2524
2530
  "month",
2525
2531
  "dateStyle"
@@ -2541,7 +2547,7 @@ const transformYearMonthOptions = /* @__PURE__ */ createOptionsTransformer([
2541
2547
  month: "numeric"
2542
2548
  }
2543
2549
  });
2544
- const transformMonthDayOptions = /* @__PURE__ */ createOptionsTransformer([
2550
+ const transformMonthDayOptions = /*@__PURE__*/ createOptionsTransformer([
2545
2551
  "month",
2546
2552
  "day",
2547
2553
  "dateStyle"
@@ -2715,8 +2721,8 @@ function resolveBasicCalendarId(rawCalendarId) {
2715
2721
  function resolveBasicCalendarArg(rawCalendarId = isoCalendarId) {
2716
2722
  return resolveBasicCalendarId(rawCalendarId);
2717
2723
  }
2718
- const zonedDateTimeSlotsMap = /* @__PURE__ */ new WeakMap();
2719
- const ZonedDateTime = /* @__PURE__ */ defineTemporalClass(ZonedDateTimeBranding, class {
2724
+ const zonedDateTimeSlotsMap = /*@__PURE__*/ new WeakMap();
2725
+ const ZonedDateTime = /*@__PURE__*/ defineTemporalClass(ZonedDateTimeBranding, class {
2720
2726
  constructor(epochNanoseconds, timeZoneId, calendar = void 0) {
2721
2727
  const epochNano = checkEpochNanoInBounds(toBigInt(epochNanoseconds));
2722
2728
  const timeZone = queryTimeZone(refineTimeZoneId(timeZoneId));
@@ -2864,8 +2870,8 @@ function refineTimeZoneArg(arg) {
2864
2870
  }
2865
2871
  return ((arg) => resolveTimeZoneId(parseTimeZoneId(requireString(arg))))(arg);
2866
2872
  }
2867
- const instantSlotsMap = /* @__PURE__ */ new WeakMap();
2868
- const Instant = /* @__PURE__ */ defineTemporalClass(InstantBranding, class {
2873
+ const instantSlotsMap = /*@__PURE__*/ new WeakMap();
2874
+ const Instant = /*@__PURE__*/ defineTemporalClass(InstantBranding, class {
2869
2875
  constructor(epochNanoseconds) {
2870
2876
  const epochNano = checkEpochNanoInBounds(toBigInt(epochNanoseconds));
2871
2877
  initInstant(this, createEpochNanoSlots(epochNano));
@@ -2950,8 +2956,8 @@ const { toTemporalInstant: toTemporalInstant$1 } = { toTemporalInstant() {
2950
2956
  function initInstant(instance, slots) {
2951
2957
  return instantSlotsMap.set(instance, slots), attachDebugString(instance), instance;
2952
2958
  }
2953
- const plainMonthDaySlotsMap = /* @__PURE__ */ new WeakMap();
2954
- const PlainMonthDay = /* @__PURE__ */ defineTemporalClass(PlainMonthDayBranding, class {
2959
+ const plainMonthDaySlotsMap = /*@__PURE__*/ new WeakMap();
2960
+ const PlainMonthDay = /*@__PURE__*/ defineTemporalClass(PlainMonthDayBranding, class {
2955
2961
  constructor(isoMonth, isoDay, calendar = void 0, referenceIsoYear) {
2956
2962
  const isoMonthInt = toIntegerWithTrunc(isoMonth);
2957
2963
  const isoDayInt = toIntegerWithTrunc(isoDay);
@@ -3015,8 +3021,8 @@ function toPlainMonthDaySlots(arg, options) {
3015
3021
  function initPlainMonthDay(instance, slots) {
3016
3022
  return plainMonthDaySlotsMap.set(instance, slots), attachDebugString(instance), instance;
3017
3023
  }
3018
- const plainYearMonthSlotsMap = /* @__PURE__ */ new WeakMap();
3019
- const PlainYearMonth = /* @__PURE__ */ defineTemporalClass(PlainYearMonthBranding, class {
3024
+ const plainYearMonthSlotsMap = /*@__PURE__*/ new WeakMap();
3025
+ const PlainYearMonth = /*@__PURE__*/ defineTemporalClass(PlainYearMonthBranding, class {
3020
3026
  constructor(isoYear, isoMonth, calendar = void 0, referenceIsoDay) {
3021
3027
  const isoYearInt = toIntegerWithTrunc(isoYear);
3022
3028
  const isoMonthInt = toIntegerWithTrunc(isoMonth);
@@ -3108,8 +3114,8 @@ function getTemporalBrandingAndSlots(obj) {
3108
3114
  function validateBag(bag) {
3109
3115
  return (getTemporalBrandingAndSlots(bag) || void 0 !== bag.calendar || void 0 !== bag.timeZone) && throwTypeError("Invalid bag"), bag;
3110
3116
  }
3111
- const plainTimeSlotsMap = /* @__PURE__ */ new WeakMap();
3112
- const PlainTime = /* @__PURE__ */ defineTemporalClass(PlainTimeBranding, class {
3117
+ const plainTimeSlotsMap = /*@__PURE__*/ new WeakMap();
3118
+ const PlainTime = /*@__PURE__*/ defineTemporalClass(PlainTimeBranding, class {
3113
3119
  constructor(hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0) {
3114
3120
  const fields = validateTimeFields(mapProps(toIntegerWithTrunc, {
3115
3121
  hour,
@@ -3191,8 +3197,8 @@ function optionalToPlainTimeFields(timeArg) {
3191
3197
  function initPlainTime(instance, slots) {
3192
3198
  return plainTimeSlotsMap.set(instance, slots), attachDebugString(instance), instance;
3193
3199
  }
3194
- const plainDateTimeSlotsMap = /* @__PURE__ */ new WeakMap();
3195
- const PlainDateTime = /* @__PURE__ */ defineTemporalClass(PlainDateTimeBranding, class {
3200
+ const plainDateTimeSlotsMap = /*@__PURE__*/ new WeakMap();
3201
+ const PlainDateTime = /*@__PURE__*/ defineTemporalClass(PlainDateTimeBranding, class {
3196
3202
  constructor(isoYear, isoMonth, isoDay, hour = 0, minute = 0, second = 0, millisecond = 0, microsecond = 0, nanosecond = 0, calendar = void 0) {
3197
3203
  const fields = checkIsoDateTimeInBounds(validateIsoDateTimeFields(mapProps(toIntegerWithTrunc, {
3198
3204
  year: isoYear,
@@ -3303,8 +3309,8 @@ function toPlainDateTimeSlots(arg, options) {
3303
3309
  function initPlainDateTime(instance, slots) {
3304
3310
  return plainDateTimeSlotsMap.set(instance, slots), attachDebugString(instance), instance;
3305
3311
  }
3306
- const plainDateSlotsMap = /* @__PURE__ */ new WeakMap();
3307
- const PlainDate = /* @__PURE__ */ defineTemporalClass(PlainDateBranding, class {
3312
+ const plainDateSlotsMap = /*@__PURE__*/ new WeakMap();
3313
+ const PlainDate = /*@__PURE__*/ defineTemporalClass(PlainDateBranding, class {
3308
3314
  constructor(isoYear, isoMonth, isoDay, calendar = void 0) {
3309
3315
  const fields = checkIsoDateInBounds(validateIsoDateFields(mapProps(toIntegerWithTrunc, {
3310
3316
  year: isoYear,
@@ -3422,8 +3428,8 @@ function refineCalendarArg(arg) {
3422
3428
  }
3423
3429
  return ((arg) => resolveBasicCalendarId(parseCalendarId(requireString(arg))))(arg);
3424
3430
  }
3425
- const durationSlotsMap = /* @__PURE__ */ new WeakMap();
3426
- const Duration = /* @__PURE__ */ defineTemporalClass(DurationBranding, class {
3431
+ const durationSlotsMap = /*@__PURE__*/ new WeakMap();
3432
+ const Duration = /*@__PURE__*/ defineTemporalClass(DurationBranding, class {
3427
3433
  constructor(years = 0, months = 0, weeks = 0, days = 0, hours = 0, minutes = 0, seconds = 0, milliseconds = 0, microseconds = 0, nanoseconds = 0) {
3428
3434
  const fields = validateDurationFields(mapProps(toStrictInteger, {
3429
3435
  years,
@@ -3516,7 +3522,7 @@ function refinePublicRelativeTo(relativeTo) {
3516
3522
  function initDuration(instance, slots) {
3517
3523
  return durationSlotsMap.set(instance, slots), attachDebugString(instance), instance;
3518
3524
  }
3519
- const Now = /* @__PURE__ */ Object.defineProperties({}, {
3525
+ const Now = /*@__PURE__*/ Object.defineProperties({}, {
3520
3526
  ...createStringTagDescriptors("Temporal.Now"),
3521
3527
  ...createPropDescriptors({
3522
3528
  timeZoneId() {
@@ -3540,7 +3546,7 @@ const Now = /* @__PURE__ */ Object.defineProperties({}, {
3540
3546
  }
3541
3547
  })
3542
3548
  });
3543
- const Temporal$2 = /* @__PURE__ */ Object.defineProperties({}, {
3549
+ const Temporal$2 = /*@__PURE__*/ Object.defineProperties({}, {
3544
3550
  ...createStringTagDescriptors("Temporal"),
3545
3551
  ...createPropDescriptors({
3546
3552
  PlainYearMonth,
@@ -3782,7 +3788,7 @@ var NetlifyMessageQueue = class {
3782
3788
  };
3783
3789
  //#endregion
3784
3790
  //#region src/handler.ts
3785
- const messageTypes = new Set([
3791
+ const messageTypes = /* @__PURE__ */ new Set([
3786
3792
  "fanout",
3787
3793
  "inbox",
3788
3794
  "outbox",
package/dist/mod.js CHANGED
@@ -222,7 +222,7 @@ var NetlifyMessageQueue = class {
222
222
  };
223
223
  //#endregion
224
224
  //#region src/handler.ts
225
- const messageTypes = new Set([
225
+ const messageTypes = /* @__PURE__ */ new Set([
226
226
  "fanout",
227
227
  "inbox",
228
228
  "outbox",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/netlify",
3
- "version": "2.4.0-dev.1666+690d9b28",
3
+ "version": "2.4.0-dev.1727+1eadcb04",
4
4
  "description": "Integrate Fedify with Netlify Async Workloads",
5
5
  "keywords": [
6
6
  "Fedify",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@netlify/async-workloads": "^0.0.106",
54
- "@fedify/fedify": "^2.4.0-dev.1666+690d9b28"
54
+ "@fedify/fedify": "^2.4.0-dev.1727+1eadcb04"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@js-temporal/polyfill": "^0.5.1",
@@ -62,7 +62,7 @@
62
62
  "postgres": "^3.4.7",
63
63
  "tsdown": "^0.22.0",
64
64
  "typescript": "^6.0.0",
65
- "@fedify/postgres": "^2.4.0-dev.1666+690d9b28"
65
+ "@fedify/postgres": "^2.4.0-dev.1727+1eadcb04"
66
66
  },
67
67
  "scripts": {
68
68
  "build:self": "tsdown",