@zodiacs/engine 2.0.0-rc.2 → 2.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +168 -0
  2. package/LICENSING.md +21 -7
  3. package/NOTICE +19 -9
  4. package/README.md +150 -38
  5. package/dist/{api-C_SVd9BJ.d.ts → api-G8RVGizH.d.ts} +1 -1
  6. package/dist/{ayanamsa-Clgkekhh.d.ts → ayanamsa-C4-pYjzm.d.ts} +2 -2
  7. package/dist/calc.d.ts +4 -4
  8. package/dist/calc.js +13 -9
  9. package/dist/{chunk-WONTOC5W.js → chunk-4RCOOAGI.js} +1 -1
  10. package/dist/{chunk-IXFUYEUF.js → chunk-EEKVS6W7.js} +17 -4
  11. package/dist/{chunk-N4UQLCBN.js → chunk-FXNA2TJM.js} +1 -1
  12. package/dist/{chunk-NX4PHQBL.js → chunk-JY2LU4VC.js} +61 -80
  13. package/dist/{chunk-B5LKF437.js → chunk-M65JXRFN.js} +40 -0
  14. package/dist/{chunk-PNXIA7MI.js → chunk-PU4HNPRX.js} +9 -4
  15. package/dist/{chunk-T6F4FYYS.js → chunk-QLQRN6RY.js} +1 -1
  16. package/dist/{chunk-FVGA776A.js → chunk-XINOD63H.js} +2 -2
  17. package/dist/{chunk-I3L4POY7.js → chunk-XO7MHH32.js} +2 -1
  18. package/dist/core.d.ts +21 -0
  19. package/dist/core.js +2953 -0
  20. package/dist/crossings.d.ts +2 -2
  21. package/dist/de440-pack.d.ts +2 -2
  22. package/dist/de440.d.ts +2 -2
  23. package/dist/{ephemeris-D1lM832F.d.ts → ephemeris-Bnmowcsk.d.ts} +1 -1
  24. package/dist/geo.d.ts +74 -16
  25. package/dist/geo.js +139 -5
  26. package/dist/{houses-icK01yXi.d.ts → houses-CAiYEICK.d.ts} +1 -1
  27. package/dist/houses-extra.d.ts +3 -3
  28. package/dist/index.d.ts +8 -8
  29. package/dist/index.js +6 -6
  30. package/dist/{internal-math-BGX23p4h.d.ts → internal-math-rq6do9IR.d.ts} +2 -2
  31. package/dist/internal-math.d.ts +4 -4
  32. package/dist/internal-math.js +1 -1
  33. package/dist/internal.d.ts +4 -4
  34. package/dist/internal.js +3 -3
  35. package/dist/receipt.d.ts +3 -3
  36. package/dist/receipt.js +65 -26
  37. package/dist/{rulers-CpS9qkvu.d.ts → rulers-CFGiWJza.d.ts} +1 -1
  38. package/dist/sky.d.ts +4 -4
  39. package/dist/sky.js +3 -3
  40. package/dist/techniques.d.ts +4 -4
  41. package/dist/techniques.js +9 -9
  42. package/dist/{time-bands-CZA9AlLg.d.ts → time-bands-BCmfa8FR.d.ts} +5 -4
  43. package/dist/{time-scale-DIFNa0gz.d.ts → time-scale-9vmKQPCn.d.ts} +14 -4
  44. package/dist/time.d.ts +3 -3
  45. package/dist/time.js +2 -2
  46. package/dist/timing.d.ts +5 -5
  47. package/dist/timing.js +6 -6
  48. package/dist/{types-BCnyWBQZ.d.ts → types-CkuiCcsV.d.ts} +7 -4
  49. package/dist/{tzdb-2025c-00-6GVG6RYL.js → tzdb-2026f-00-RAB4YONA.js} +4 -4
  50. package/dist/{tzdb-2025c-01-CEYMG3LE.js → tzdb-2026f-01-SWR7EW5U.js} +4 -4
  51. package/dist/{tzdb-2025c-02-NWQJCVUU.js → tzdb-2026f-02-SOLHCLDL.js} +3 -3
  52. package/dist/{tzdb-2025c-03-PLHP6VH4.js → tzdb-2026f-03-LYLMCVL7.js} +3 -3
  53. package/dist/{tzdb-2025c-04-MEKUJA6M.js → tzdb-2026f-04-XTKMZPKX.js} +4 -4
  54. package/dist/{tzdb-2025c-05-3K5YKZBL.js → tzdb-2026f-05-EOKCMY5O.js} +4 -4
  55. package/dist/{tzdb-2025c-06-L2VV5XJV.js → tzdb-2026f-06-O4LQW2N6.js} +4 -4
  56. package/dist/{tzdb-2025c-07-H3GLGJGY.js → tzdb-2026f-07-2FDJ5OJ7.js} +4 -4
  57. package/dist/{tzdb-2025c-08-DA7QQIGD.js → tzdb-2026f-08-OKEWSMIX.js} +4 -4
  58. package/dist/{tzdb-2025c-09-MTXIO3QL.js → tzdb-2026f-09-5GB7FKLF.js} +4 -4
  59. package/dist/{tzdb-2025c-10-ASL4UW5C.js → tzdb-2026f-10-GXHCIASR.js} +4 -4
  60. package/dist/{tzdb-2025c-11-EQEOANYB.js → tzdb-2026f-11-66EMKXFG.js} +4 -4
  61. package/dist/{tzdb-2025c-12-NKCCXJ5G.js → tzdb-2026f-12-YK3CZCIY.js} +3 -3
  62. package/dist/{tzdb-2025c-13-DYTF3UC7.js → tzdb-2026f-13-UNZD3QIH.js} +4 -4
  63. package/dist/{tzdb-2025c-14-C25H45R5.js → tzdb-2026f-14-4FQNGNZM.js} +4 -4
  64. package/dist/{tzdb-2025c-15-7OYYZWRY.js → tzdb-2026f-15-5TA3B2WI.js} +4 -4
  65. package/dist/vedic.d.ts +4 -4
  66. package/dist/vedic.js +6 -6
  67. package/dist/window.d.ts +2 -2
  68. package/dist/window.js +8 -5
  69. package/dist/{zone-history-0XzMGx9V.d.ts → zone-history-2UYUKA43.d.ts} +26 -9
  70. package/package.json +7 -3
package/dist/receipt.js CHANGED
@@ -7,14 +7,16 @@ import {
7
7
  ASPECT_TYPES,
8
8
  EPHEMERIS,
9
9
  aspectMotion
10
- } from "./chunk-T6F4FYYS.js";
10
+ } from "./chunk-QLQRN6RY.js";
11
11
  import {
12
12
  DELTA_T_IERS_MODEL,
13
13
  TIME_SCALE_NAMES,
14
14
  UT1_DATA,
15
+ UT1_TO_MS,
15
16
  outsideReferenceSpan,
16
- timeBasis
17
- } from "./chunk-B5LKF437.js";
17
+ timeBasis,
18
+ timeBasisBeforeContinuousUtc
19
+ } from "./chunk-M65JXRFN.js";
18
20
  import {
19
21
  natalConventionIds
20
22
  } from "./chunk-OVXQQEXL.js";
@@ -231,6 +233,15 @@ var CONVENTIONS_DE440 = /* @__PURE__ */ (() => Object.freeze({
231
233
  moonPosition: "ephemeris-geocentric-moon;light-time;solar-deflection;relativistic-aberration",
232
234
  positionFrame: "icrf-to-true-ecliptic-of-date;iau2006-precession-with-bias;iau2000b-nutation-p03;tdb-three-term"
233
235
  }))();
236
+ var CONTINUOUS_UTC_TIME_SCALE = "tt-from-leap-seconds-and-ut1-from-iers-1972-to-table-end;tt-utc-plus-69.184s-and-ut1-from-delta-t-model-after;delta-t-model-before-1972;in-result";
237
+ var CONVENTIONS_CONTINUOUS_UTC = /* @__PURE__ */ (() => Object.freeze({
238
+ ...CONVENTIONS,
239
+ timeScale: CONTINUOUS_UTC_TIME_SCALE
240
+ }))();
241
+ var CONVENTIONS_DE440_CONTINUOUS_UTC = /* @__PURE__ */ (() => Object.freeze({
242
+ ...CONVENTIONS_DE440,
243
+ timeScale: CONTINUOUS_UTC_TIME_SCALE
244
+ }))();
234
245
  var NATAL_RECEIPT_CONVENTION_SETS = /* @__PURE__ */ Object.freeze([
235
246
  CONVENTIONS,
236
247
  CONVENTIONS_RC16,
@@ -238,7 +249,9 @@ var NATAL_RECEIPT_CONVENTION_SETS = /* @__PURE__ */ Object.freeze([
238
249
  CONVENTIONS_RC8,
239
250
  CONVENTIONS_RC7,
240
251
  CONVENTIONS_RC3,
241
- CONVENTIONS_DE440
252
+ CONVENTIONS_DE440,
253
+ CONVENTIONS_CONTINUOUS_UTC,
254
+ CONVENTIONS_DE440_CONTINUOUS_UTC
242
255
  ]);
243
256
  var RC3_TO_RC6 = /^0\.1\.1-rc\.[3-6](?:\+[A-Za-z0-9.-]+)?$/;
244
257
  var RC7 = /^0\.1\.1-rc\.7(?:\+[A-Za-z0-9.-]+)?$/;
@@ -248,6 +261,8 @@ var before = (version2, release) => compareVersions(version2, release) < 0;
248
261
  var NUTATION_RELEASE = "0.1.1-rc.16";
249
262
  var IDS_FEATURE = "convention-ids";
250
263
  var DE440_FEATURE = "ephemeris-jpl-de440";
264
+ var CONTINUOUS_UTC_FEATURE = "time-basis-continuous-utc";
265
+ var CONTINUOUS_UTC_RELEASE = "2.0.0-rc.3";
251
266
  var DE440_EPHEMERIS = "jpl-de440";
252
267
  var DE440_RELEASE = "1.1.0-rc.3";
253
268
  var SHA256_HEX = /^[0-9a-f]{64}$/;
@@ -275,10 +290,19 @@ var BODIES = [
275
290
  ];
276
291
  var FLAGS_RC7 = ["dst-gap", "dst-fold", "lmt", "no-time", "polar-fallback"];
277
292
  var FLAGS = [...FLAGS_RC7, "outside-reference-span"];
278
- var FLAGS_TIME_BASIS = [...FLAGS, "delta-t-extrapolated", "de440-unavailable", "outside-de440-span", "calendar-unknown", "polar-angles"];
293
+ var FLAGS_TIME_BASIS = [
294
+ ...FLAGS,
295
+ "delta-t-extrapolated",
296
+ "de440-unavailable",
297
+ "outside-de440-span",
298
+ "calendar-unknown",
299
+ "polar-angles",
300
+ "host-zone-data-differs"
301
+ ];
279
302
  var FALLBACK_FLAGS = ["de440-unavailable", "outside-de440-span"];
280
303
  var TIME_FLAGS = ["dst-gap", "dst-fold", "lmt"];
281
- var TIME_FLAGS_TIME_BASIS = [...TIME_FLAGS, "calendar-unknown"];
304
+ var TIME_FLAGS_TIME_BASIS = [...TIME_FLAGS, "calendar-unknown", "host-zone-data-differs"];
305
+ var HOST_ANSWERS_FROM = "1970-01-01T00:00:00.000Z";
282
306
  var CALENDAR_UNKNOWN_DATES = { from: "1582-10-05", to: "1918-02-26" };
283
307
  var CALENDAR_UNKNOWN_INSTANTS = { from: "1582-10-04", to: "1918-02-28" };
284
308
  var HOUSE_SYSTEMS = [
@@ -519,17 +543,19 @@ function same(actual, expected) {
519
543
  const keys = Object.keys(expected);
520
544
  return !!actual && typeof actual === "object" && keys.length === Object.keys(actual).length && keys.every((key) => same(actual[key], expected[key]));
521
545
  }
522
- function validateTimeScale(value, deltaT, instant, scale) {
546
+ function validateTimeScale(value, deltaT, instant, scale, continuousUtc) {
523
547
  const timeScale = record(value);
524
548
  fields(timeScale, TIME_SCALE_RECORD);
525
- const basis = choice(timeScale.basis, ["iers", "delta-t", "pinned"]);
549
+ const basis = choice(timeScale.basis, ["iers", "continuous-utc", "delta-t", "pinned"]);
550
+ const continuous = basis === "continuous-utc";
526
551
  const { ut1MinusUtc, leapSeconds } = timeScale;
527
552
  if (ut1MinusUtc !== null) {
528
553
  const ut1 = record(ut1MinusUtc);
529
554
  fields(ut1, UT1_RECORD);
530
- number(ut1.seconds, -1, 1);
531
- number(ut1.sigma, 0, 1);
532
- choice(ut1.source, IERS_SEGMENTS);
555
+ number(ut1.seconds, continuous ? -86400 : -1, continuous ? 86400 : 1);
556
+ number(ut1.sigma, 0, continuous ? 3600 : 1);
557
+ if (choice(ut1.source, [...IERS_SEGMENTS, "model"]) === "model" ? !continuous : continuous)
558
+ fail("inconsistent_result");
533
559
  }
534
560
  if (leapSeconds !== null) {
535
561
  const leap = record(leapSeconds);
@@ -538,15 +564,15 @@ function validateTimeScale(value, deltaT, instant, scale) {
538
564
  bool(leap.listed);
539
565
  }
540
566
  const iers = deltaT.model === DELTA_T_IERS_MODEL;
541
- if (timeScale.input !== scale || basis === "pinned" !== (deltaT.model === "pinned") || basis === "iers" !== iers || iers && (ut1MinusUtc === null || leapSeconds === null))
567
+ if (timeScale.input !== scale || continuous !== continuousUtc || basis === "pinned" !== (deltaT.model === "pinned") || basis === "iers" !== iers || (iers || continuous) && (ut1MinusUtc === null || leapSeconds === null))
542
568
  fail("inconsistent_result");
543
569
  if (deltaT.tableDigest === UT1_DATA.digest || deltaT.tableDigest === DELTA_T_TABLE.digest) {
544
- const expected = timeBasis(Date.parse(instant), scale);
570
+ const expected = (continuousUtc ? timeBasis : timeBasisBeforeContinuousUtc)(Date.parse(instant), scale);
545
571
  if (!same(deltaT, kept(expected.deltaT, DELTA_T_RECORD)) || !same(timeScale, timeScaleKept(expected.timeScale)))
546
572
  fail("inconsistent_result");
547
573
  }
548
574
  }
549
- function validateResult(value, instantaneousApplying, instant, scale) {
575
+ function validateResult(value, instantaneousApplying, instant, scale, continuousUtc) {
550
576
  const result = record(value);
551
577
  fields(result, [
552
578
  "bodies",
@@ -558,7 +584,7 @@ function validateResult(value, instantaneousApplying, instant, scale) {
558
584
  ]);
559
585
  if (instant !== null) {
560
586
  const deltaT = validateDeltaT(result.deltaT, instant, scale !== null);
561
- if (scale !== null) validateTimeScale(result.timeScale, deltaT, instant, scale);
587
+ if (scale !== null) validateTimeScale(result.timeScale, deltaT, instant, scale, continuousUtc);
562
588
  }
563
589
  if (!Array.isArray(result.bodies) || result.bodies.length !== 12) fail("invalid_shape");
564
590
  const names = /* @__PURE__ */ new Set();
@@ -731,7 +757,7 @@ function validateLocalRecord(local, receipt, date, offset, shift, later) {
731
757
  const fold = flags.includes("dst-fold");
732
758
  if (
733
759
  // A local time resolves to UTC.
734
- receipt.timeScale !== "utc" || written !== null && (!parseCalendarDate(written, calendar) || (calendar === "gregorian" ? written : julianToGregorian(written)) !== date) || form !== void 0 && form !== "host" && version2 === null || flags.includes("lmt") !== lmt || flags.includes("calendar-unknown") && !(date >= CALENDAR_UNKNOWN_DATES.from && date <= CALENDAR_UNKNOWN_DATES.to) || local.transition === null && (gap || fold)
760
+ receipt.timeScale !== "utc" || written !== null && (!parseCalendarDate(written, calendar) || (calendar === "gregorian" ? written : julianToGregorian(written)) !== date) || form !== void 0 && form !== "host" && version2 === null || flags.includes("lmt") !== lmt || flags.includes("calendar-unknown") && !(date >= CALENDAR_UNKNOWN_DATES.from && date <= CALENDAR_UNKNOWN_DATES.to) || flags.includes("host-zone-data-differs") && form !== void 0 && form !== "host" || local.transition === null && (gap || fold)
735
761
  )
736
762
  fail("invalid_context");
737
763
  let before2 = null;
@@ -826,7 +852,8 @@ function validateEnvelope(input) {
826
852
  if (envelope.schema !== NATAL_ENVELOPE_SCHEMA) fail("unsupported_version");
827
853
  fields(envelope, ["schema", "requiredFeatures", "receipt", "result"], ["extensions"]);
828
854
  const features = list(envelope.requiredFeatures);
829
- if (features.some((feature) => feature !== IDS_FEATURE && feature !== DE440_FEATURE)) fail("unsupported_feature");
855
+ if (features.some((feature) => feature !== IDS_FEATURE && feature !== DE440_FEATURE && feature !== CONTINUOUS_UTC_FEATURE))
856
+ fail("unsupported_feature");
830
857
  const receipt = record(envelope.receipt);
831
858
  if (receipt.schema !== NATAL_RECEIPT_SCHEMA) fail("unsupported_version");
832
859
  fields(receipt, [
@@ -869,13 +896,18 @@ function validateEnvelope(input) {
869
896
  if (timeKnown && Math.abs(coords.latitude) === 90) fail("unsupported_feature");
870
897
  }
871
898
  const conventions = conventionSet(receipt.conventions);
872
- const de440 = conventions === CONVENTIONS_DE440;
873
- const withIds = conventions === CONVENTIONS || de440;
899
+ const continuousUtc = conventions === CONVENTIONS_CONTINUOUS_UTC || conventions === CONVENTIONS_DE440_CONTINUOUS_UTC;
900
+ const de440 = conventions === CONVENTIONS_DE440 || conventions === CONVENTIONS_DE440_CONTINUOUS_UTC;
901
+ const withIds = conventions === CONVENTIONS || de440 || continuousUtc;
874
902
  const timeBasis2 = withIds || conventions === CONVENTIONS_RC16 || conventions === CONVENTIONS_RC15;
875
903
  const current = timeBasis2 || conventions === CONVENTIONS_RC8;
876
904
  if (timeBasis2 !== Object.hasOwn(receipt, "timeScale")) fail("invalid_shape");
877
905
  if (withIds !== Object.hasOwn(receipt, "conventionIds")) fail("invalid_shape");
878
- const expectedFeatures = de440 ? [IDS_FEATURE, DE440_FEATURE] : withIds ? [IDS_FEATURE] : [];
906
+ const expectedFeatures = [
907
+ ...withIds ? [IDS_FEATURE] : [],
908
+ ...de440 ? [DE440_FEATURE] : [],
909
+ ...continuousUtc ? [CONTINUOUS_UTC_FEATURE] : []
910
+ ];
879
911
  if (features.length !== expectedFeatures.length || features.some((feature, index) => feature !== expectedFeatures[index]))
880
912
  fail("inconsistent_result");
881
913
  const scale = timeBasis2 ? choice(receipt.timeScale, TIME_SCALE_NAMES) : null;
@@ -883,7 +915,8 @@ function validateEnvelope(input) {
883
915
  envelope.result,
884
916
  conventions !== CONVENTIONS_RC3,
885
917
  current ? receipt.instant : null,
886
- scale
918
+ scale,
919
+ continuousUtc
887
920
  );
888
921
  const house = record(receipt.houses);
889
922
  fields(house, ["requested", "actual", "absenceReason"]);
@@ -900,6 +933,7 @@ function validateEnvelope(input) {
900
933
  const instant = receipt.instant;
901
934
  if (inputFlags.includes("calendar-unknown") && !(instant >= CALENDAR_UNKNOWN_INSTANTS.from && instant < CALENDAR_UNKNOWN_INSTANTS.to))
902
935
  fail("inconsistent_result");
936
+ if (inputFlags.includes("host-zone-data-differs") && Date.parse(instant) < Date.parse(HOST_ANSWERS_FROM)) fail("inconsistent_result");
903
937
  const resultFlags = flagList(receipt.resultFlags, timeBasis2 ? FLAGS_TIME_BASIS : current ? FLAGS : FLAGS_RC7);
904
938
  const expected = [...inputFlags];
905
939
  if (!timeKnown) expected.push("no-time");
@@ -911,7 +945,7 @@ function validateEnvelope(input) {
911
945
  fields(engine, current ? ["name", "version", "ephemeris"] : ["name", "version"]);
912
946
  if (engine.name !== "@zodiacs/engine") fail("unsupported_feature");
913
947
  const engineVersion = version(engine.version);
914
- if (timeBasis2 && (scale !== "tt" || result.houses) && result.timeScale?.basis === "delta-t" && result.deltaT?.segment === "extrapolated" && (resultFlags.includes("delta-t-extrapolated") || compareVersions(engineVersion, "1.1.0-rc.9") > 0))
948
+ if (timeBasis2 && (scale !== "tt" || result.houses) && (result.timeScale?.basis === "delta-t" || result.timeScale?.basis === "continuous-utc") && result.deltaT?.segment === "extrapolated" && (resultFlags.includes("delta-t-extrapolated") || compareVersions(engineVersion, "1.1.0-rc.9") > 0))
915
949
  expected.push("delta-t-extrapolated");
916
950
  if (resultFlags.includes("polar-angles") && result.angles && Math.abs(receipt.coordinates.latitude) >= 90 - meanObliquity(
917
951
  (Date.parse(receipt.instant) + (scale === "tt" ? 0 : (result.deltaT?.seconds ?? 0) * 1e3) - J2000_MS) / 315576e7
@@ -934,7 +968,7 @@ function validateEnvelope(input) {
934
968
  }
935
969
  validateProvenance(receipt.provenance, engineVersion, de440 ? record(engine.ephemeris).version : null);
936
970
  validateLocal(receipt.localResolution, receipt, timeBasis2);
937
- if (conventions === CONVENTIONS_RC3 && !RC3_TO_RC6.test(engineVersion) || conventions === CONVENTIONS_RC7 && !RC7.test(engineVersion) || conventions === CONVENTIONS_RC8 && !RC8_TO_RC14.test(engineVersion) || conventions === CONVENTIONS_RC15 && !RC15.test(engineVersion) || (conventions === CONVENTIONS || conventions === CONVENTIONS_RC16) && before(engineVersion, NUTATION_RELEASE) || de440 && before(engineVersion, DE440_RELEASE) || !HOUSE_SYSTEMS_BEFORE_RC9.includes(requested) && before(engineVersion, RC9_RELEASE) || !HOUSE_SYSTEMS_BEFORE_RC10.includes(requested) && before(engineVersion, RC10_RELEASE))
971
+ if (conventions === CONVENTIONS_RC3 && !RC3_TO_RC6.test(engineVersion) || conventions === CONVENTIONS_RC7 && !RC7.test(engineVersion) || conventions === CONVENTIONS_RC8 && !RC8_TO_RC14.test(engineVersion) || conventions === CONVENTIONS_RC15 && !RC15.test(engineVersion) || (conventions === CONVENTIONS || conventions === CONVENTIONS_RC16) && before(engineVersion, NUTATION_RELEASE) || de440 && before(engineVersion, DE440_RELEASE) || continuousUtc && before(engineVersion, CONTINUOUS_UTC_RELEASE) || !HOUSE_SYSTEMS_BEFORE_RC9.includes(requested) && before(engineVersion, RC9_RELEASE) || !HOUSE_SYSTEMS_BEFORE_RC10.includes(requested) && before(engineVersion, RC10_RELEASE))
938
972
  fail("inconsistent_result");
939
973
  fixedFields(receipt.coverage, COVERAGE);
940
974
  if (withIds) {
@@ -1001,6 +1035,7 @@ function createNatalEnvelope(chart, context = {}) {
1001
1035
  fields(record(supplied.provenance), [], ["source", "artifact", "runtime", "ephemeris"]);
1002
1036
  if (input.latitude === void 0 !== (input.longitude === void 0)) fail("invalid_value");
1003
1037
  const houses = source.houses === null ? null : record(source.houses);
1038
+ const continuousUtc = record(source.timeScale).basis === "continuous-utc";
1004
1039
  const receipt = {
1005
1040
  schema: NATAL_RECEIPT_SCHEMA,
1006
1041
  instant: Date.prototype.toISOString.call(input.utc),
@@ -1023,7 +1058,9 @@ function createNatalEnvelope(chart, context = {}) {
1023
1058
  ephemeris: de440 ? { name: DE440_EPHEMERIS, version: ephemerisNamed.version } : { ...EPHEMERIS }
1024
1059
  },
1025
1060
  provenance: supplied.provenance === void 0 ? null : { ...record(supplied.provenance), status: "claimed" },
1026
- conventions: { ...de440 ? CONVENTIONS_DE440 : CONVENTIONS },
1061
+ conventions: {
1062
+ ...continuousUtc ? de440 ? CONVENTIONS_DE440_CONTINUOUS_UTC : CONVENTIONS_CONTINUOUS_UTC : de440 ? CONVENTIONS_DE440 : CONVENTIONS
1063
+ },
1027
1064
  coverage: { ...COVERAGE }
1028
1065
  };
1029
1066
  const result = {
@@ -1041,7 +1078,7 @@ function createNatalEnvelope(chart, context = {}) {
1041
1078
  }
1042
1079
  const envelope = {
1043
1080
  schema: NATAL_ENVELOPE_SCHEMA,
1044
- requiredFeatures: de440 ? [IDS_FEATURE, DE440_FEATURE] : [IDS_FEATURE],
1081
+ requiredFeatures: [IDS_FEATURE, ...de440 ? [DE440_FEATURE] : [], ...continuousUtc ? [CONTINUOUS_UTC_FEATURE] : []],
1045
1082
  receipt: { ...receipt, conventionIds },
1046
1083
  result,
1047
1084
  ...supplied.extensions === void 0 ? {} : { extensions: supplied.extensions }
@@ -1070,9 +1107,11 @@ function serializeNatalEnvelope(envelope) {
1070
1107
  function natalReplayInput(envelope) {
1071
1108
  return guarded(() => {
1072
1109
  const { receipt, result } = checked(envelope);
1110
+ const onUtc = receipt.timeScale === void 0 || receipt.timeScale === "utc";
1111
+ const readAsUt1 = onUtc && (result.timeScale?.basis === "delta-t" && result.timeScale.ut1MinusUtc?.source === "fallback" || result.timeScale === void 0 && result.deltaT?.model !== "pinned" && Date.parse(receipt.instant) > UT1_TO_MS);
1073
1112
  return {
1074
1113
  utc: receipt.instant,
1075
- ...receipt.timeScale === void 0 || receipt.timeScale === "utc" ? {} : { timeScale: receipt.timeScale },
1114
+ ...readAsUt1 ? { timeScale: "ut1" } : receipt.timeScale === void 0 || receipt.timeScale === "utc" ? {} : { timeScale: receipt.timeScale },
1076
1115
  houseSystem: receipt.houses.requested,
1077
1116
  timeKnown: receipt.timeKnown,
1078
1117
  flags: [...receipt.inputFlags],
@@ -1,4 +1,4 @@
1
- import { Z as ZodiacSign } from './types-BCnyWBQZ.js';
1
+ import { Z as ZodiacSign } from './types-CkuiCcsV.js';
2
2
 
3
3
  /** The seven visible planets of the traditional rulership scheme. */
4
4
  type TraditionalPlanet = "Sun" | "Moon" | "Mercury" | "Venus" | "Mars" | "Jupiter" | "Saturn";
package/dist/sky.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { B as BodyName, e as DateInput } from './types-BCnyWBQZ.js';
2
- import { T as TraditionalPlanet } from './rulers-CpS9qkvu.js';
3
- export { C as CHALDEAN_ORDER } from './rulers-CpS9qkvu.js';
1
+ import { B as BodyName, e as DateInput } from './types-CkuiCcsV.js';
2
+ import { T as TraditionalPlanet } from './rulers-CFGiWJza.js';
3
+ export { C as CHALDEAN_ORDER } from './rulers-CFGiWJza.js';
4
4
  import './deltat.js';
5
- import './time-scale-DIFNa0gz.js';
5
+ import './time-scale-9vmKQPCn.js';
6
6
 
7
7
  /** A body the sky functions accept: the Sun, the Moon and the planets. */
8
8
  type SkyBody = Exclude<BodyName, "North Node" | "South Node">;
package/dist/sky.js CHANGED
@@ -9,15 +9,15 @@ import {
9
9
  gastHours,
10
10
  onChartClock,
11
11
  refuseUnderSource
12
- } from "./chunk-PNXIA7MI.js";
12
+ } from "./chunk-PU4HNPRX.js";
13
13
  import {
14
14
  dateFrom
15
15
  } from "./chunk-CPALRSPC.js";
16
- import "./chunk-T6F4FYYS.js";
16
+ import "./chunk-QLQRN6RY.js";
17
17
  import "./chunk-EEW7746S.js";
18
18
  import {
19
19
  outsideReferenceSpan
20
- } from "./chunk-B5LKF437.js";
20
+ } from "./chunk-M65JXRFN.js";
21
21
  import {
22
22
  searchLongitudeCrossingsWith
23
23
  } from "./chunk-TSS2SZWQ.js";
@@ -1,7 +1,7 @@
1
- import { E as EphemerisFallback, d as Chart, H as HouseSystem, e as DateInput, D as DetailedResult, B as BodyName, f as AspectType, Z as ZodiacSign, l as Element, j as Sect } from './types-BCnyWBQZ.js';
2
- import { N as NatalSource } from './api-C_SVd9BJ.js';
1
+ import { E as EphemerisFallback, d as Chart, H as HouseSystem, e as DateInput, D as DetailedResult, B as BodyName, f as AspectType, Z as ZodiacSign, l as Element, j as Sect } from './types-CkuiCcsV.js';
2
+ import { N as NatalSource } from './api-G8RVGizH.js';
3
3
  import './deltat.js';
4
- import './time-scale-DIFNa0gz.js';
4
+ import './time-scale-9vmKQPCn.js';
5
5
  import './crossings.js';
6
6
 
7
7
  /**
@@ -499,7 +499,7 @@ declare function mutualReceptions(positions: readonly {
499
499
 
500
500
  /**
501
501
  * A date in every time zone runs from 00:00 at UTC+14 to 24:00 at UTC−12. In
502
- * tzdata 2025c every offset lies within these bounds, but in Alaska before
502
+ * tzdata 2026f every offset lies within these bounds, but in Alaska before
503
503
  * 1867-10-19 and in the Philippines and Micronesia before 1845.
504
504
  */
505
505
  declare const EVERY_ZONE_OFFSETS: Readonly<{
@@ -2,7 +2,7 @@ import {
2
2
  natalChart,
3
3
  resolvedChart,
4
4
  utcOf
5
- } from "./chunk-IXFUYEUF.js";
5
+ } from "./chunk-EEKVS6W7.js";
6
6
  import {
7
7
  readOptions
8
8
  } from "./chunk-47ERTK5X.js";
@@ -11,7 +11,7 @@ import {
11
11
  ephemerisOver,
12
12
  fallbacksAt,
13
13
  midpoint
14
- } from "./chunk-PNXIA7MI.js";
14
+ } from "./chunk-PU4HNPRX.js";
15
15
  import {
16
16
  dateFrom
17
17
  } from "./chunk-CPALRSPC.js";
@@ -19,11 +19,11 @@ import {
19
19
  ASPECTS,
20
20
  ASPECT_BODY_SET,
21
21
  matchAspect
22
- } from "./chunk-T6F4FYYS.js";
22
+ } from "./chunk-QLQRN6RY.js";
23
23
  import "./chunk-EEW7746S.js";
24
24
  import {
25
25
  outsideReferenceSpan
26
- } from "./chunk-B5LKF437.js";
26
+ } from "./chunk-M65JXRFN.js";
27
27
  import {
28
28
  findLongitudeCrossingsWith
29
29
  } from "./chunk-TSS2SZWQ.js";
@@ -41,10 +41,10 @@ import {
41
41
  } from "./chunk-RMBWKZI2.js";
42
42
  import "./chunk-BHJXUY67.js";
43
43
  import {
44
- resolveLocalToUtc
45
- } from "./chunk-NX4PHQBL.js";
44
+ readLocalTime
45
+ } from "./chunk-JY2LU4VC.js";
46
46
  import "./chunk-KFTJMMG7.js";
47
- import "./chunk-WONTOC5W.js";
47
+ import "./chunk-4RCOOAGI.js";
48
48
 
49
49
  // src/techniques/names.ts
50
50
  var BODY_NAMES = [
@@ -833,8 +833,8 @@ function moonSignCandidates(date, options) {
833
833
  toT = noonT + (12 - EVERY_ZONE_OFFSETS.latestHours) * HOUR_MS - 1;
834
834
  } else {
835
835
  const local = read.longitude === void 0 ? void 0 : { longitude: read.longitude };
836
- fromT = resolveLocalToUtc(isoDate(year, month, day), "00:00", timeZone, local).utc.getTime();
837
- toT = resolveLocalToUtc(isoDate(year, month, day + 1), "00:00", timeZone, local).utc.getTime() - 1;
836
+ fromT = readLocalTime(isoDate(year, month, day), "00:00", timeZone, local).utc.getTime();
837
+ toT = readLocalTime(isoDate(year, month, day + 1), "00:00", timeZone, local).utc.getTime() - 1;
838
838
  if (toT < fromT) throw new RangeError("The date did not occur in that time zone.");
839
839
  }
840
840
  const signs = signsOver(fromT, toT);
@@ -1,5 +1,5 @@
1
1
  import { DeltaT } from './deltat.js';
2
- import { T as TimeScale } from './time-scale-DIFNa0gz.js';
2
+ import { T as TimeScale } from './time-scale-9vmKQPCn.js';
3
3
 
4
4
  /**
5
5
  * The bands of the time basis (docs/time.md, "The time bands"): from the ΔT
@@ -22,9 +22,10 @@ interface TimeBands {
22
22
  * band (`deltaT.sigma`, 0 for a pin) and u the UT1 − UTC band
23
23
  * (`timeScale.ut1MinusUtc.sigma`, 0 where there is none), the bands are
24
24
  * `{ tt: 0, ut1: d }` on TT input, `{ tt: d, ut1: 0 }` on UT1 input, and on
25
- * UTC input `{ tt: 0, ut1: u }` on the IERS basis, `{ tt: u, ut1: u }` with a
26
- * pin, and `{ tt: √(u² + d²), ut1: u }` on the ΔT model, where u is 0 before
27
- * 1972. It reads those fields only and recomputes no σ. Throws RangeError for
25
+ * UTC input `{ tt: 0, ut1: u }` on the IERS basis, `{ tt: 0, ut1: d }` on the
26
+ * continuous-UTC rule after the IERS table (TT is UTC + 69.184 s exactly, and
27
+ * UT1 carries the model's band), `{ tt: u, ut1: u }` with a pin, and
28
+ * `{ tt: √(u² + d²), ut1: u }` on the ΔT model, where u is 0 before 1972. It reads those fields only and recomputes no σ. Throws RangeError for
28
29
  * a record without a `deltaT` or a `timeScale`, or with a scale, a basis or a
29
30
  * band it does not know.
30
31
  */
@@ -9,21 +9,31 @@ declare const TIME_SCALE_NAMES: readonly TimeScaleName[];
9
9
  * the model used at every other instant.
10
10
  */
11
11
  declare const DELTA_T_IERS_MODEL = "iers-utc/1";
12
- /** UT1 − UTC as used: IERS observed or predicted, or 0 within 0.9 s outside the table. */
12
+ /**
13
+ * UT1 − UTC as used: IERS observed or predicted inside the table; after it,
14
+ * "model", TT − UTC (69.184 s) less the ΔT model's TT − UT1, with the model's
15
+ * band. "fallback", 0 within 0.9 s, is what engines before the continuous-UTC
16
+ * rule recorded after the table; a pin still reads it there.
17
+ */
13
18
  interface Ut1MinusUtc {
14
19
  seconds: number;
15
20
  sigma: number;
16
- source: "observed" | "predicted" | "fallback";
21
+ source: "observed" | "predicted" | "fallback" | "model";
17
22
  }
18
23
  /** TAI − UTC, s; `listed` is false after the list expires and its last value is carried. */
19
24
  interface LeapSeconds {
20
25
  taiMinusUtc: number;
21
26
  listed: boolean;
22
27
  }
23
- /** How an instant became UT1 and TT: "iers" (leap seconds, IERS UT1 − UTC), "delta-t" (read as UT1, the ΔT model) or "pinned". */
28
+ /**
29
+ * How an instant became UT1 and TT: "iers" (leap seconds, IERS UT1 − UTC),
30
+ * "continuous-utc" (after the IERS table: TT = UTC + 69.184 s, UT1 from the ΔT
31
+ * model), "delta-t" (before 1972: read as UT1, the ΔT model) or "pinned".
32
+ * Engines before the continuous-UTC rule recorded "delta-t" after the table too.
33
+ */
24
34
  interface TimeScale {
25
35
  input: TimeScaleName;
26
- basis: "iers" | "delta-t" | "pinned";
36
+ basis: "iers" | "continuous-utc" | "delta-t" | "pinned";
27
37
  /** Null before 1972. */
28
38
  ut1MinusUtc: Ut1MinusUtc | null;
29
39
  /** Null where TT did not come from the leap seconds. */
package/dist/time.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { b as TimeBasis, a as TimeScaleName } from './time-scale-DIFNa0gz.js';
2
- export { D as DELTA_T_IERS_MODEL, L as LeapSeconds, c as TIME_SCALE_NAMES, T as TimeScale, U as Ut1MinusUtc } from './time-scale-DIFNa0gz.js';
1
+ import { b as TimeBasis, a as TimeScaleName } from './time-scale-9vmKQPCn.js';
2
+ export { D as DELTA_T_IERS_MODEL, L as LeapSeconds, c as TIME_SCALE_NAMES, T as TimeScale, U as Ut1MinusUtc } from './time-scale-9vmKQPCn.js';
3
3
  export { DeltaT, DeltaTSegment } from './deltat.js';
4
4
  export { E as EPHEMERIS_SPAN } from './reference-span-CILpclrz.js';
5
- export { T as TimeBands, t as timeBands } from './time-bands-CZA9AlLg.js';
5
+ export { T as TimeBands, t as timeBands } from './time-bands-BCmfa8FR.js';
6
6
 
7
7
  /** The nutation and obliquity of date. */
8
8
  interface Tilt {
package/dist/time.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  timeBands
3
- } from "./chunk-I3L4POY7.js";
3
+ } from "./chunk-XO7MHH32.js";
4
4
  import {
5
5
  eclipticFrame,
6
6
  eclipticOfDate,
@@ -12,7 +12,7 @@ import {
12
12
  TIME_SCALE_NAMES,
13
13
  elapsedDays,
14
14
  timeBasis
15
- } from "./chunk-B5LKF437.js";
15
+ } from "./chunk-M65JXRFN.js";
16
16
  import {
17
17
  tilt
18
18
  } from "./chunk-CV53HA7R.js";
package/dist/timing.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { T as TraditionalPlanet } from './rulers-CpS9qkvu.js';
2
- export { C as CHALDEAN_ORDER, a as TRADITIONAL_RULERS } from './rulers-CpS9qkvu.js';
3
- import { B as BodyName, t as PointName, Z as ZodiacSign, E as EphemerisFallback, b as HouseNumber, e as DateInput, j as Sect } from './types-BCnyWBQZ.js';
4
- import { N as NatalSource } from './api-C_SVd9BJ.js';
1
+ import { T as TraditionalPlanet } from './rulers-CFGiWJza.js';
2
+ export { C as CHALDEAN_ORDER, a as TRADITIONAL_RULERS } from './rulers-CFGiWJza.js';
3
+ import { B as BodyName, t as PointName, Z as ZodiacSign, E as EphemerisFallback, b as HouseNumber, e as DateInput, j as Sect } from './types-CkuiCcsV.js';
4
+ import { N as NatalSource } from './api-G8RVGizH.js';
5
5
  import './deltat.js';
6
- import './time-scale-DIFNa0gz.js';
6
+ import './time-scale-9vmKQPCn.js';
7
7
  import './crossings.js';
8
8
 
9
9
  /** The four angles of a chart with a birth time and place. */
package/dist/timing.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  PROGRESSION_DAYS_PER_YEAR,
3
3
  progressedBodies,
4
4
  progressedInstant
5
- } from "./chunk-N4UQLCBN.js";
5
+ } from "./chunk-FXNA2TJM.js";
6
6
  import {
7
7
  CHALDEAN_ORDER,
8
8
  TRADITIONAL_RULERS
@@ -14,22 +14,22 @@ import {
14
14
  resolvedChart,
15
15
  searchLongitudeCrossings,
16
16
  utcOf
17
- } from "./chunk-IXFUYEUF.js";
17
+ } from "./chunk-EEKVS6W7.js";
18
18
  import {
19
19
  readOptions
20
20
  } from "./chunk-47ERTK5X.js";
21
21
  import {
22
22
  bodyLongitude,
23
23
  fallbacksAt
24
- } from "./chunk-PNXIA7MI.js";
24
+ } from "./chunk-PU4HNPRX.js";
25
25
  import {
26
26
  dateFrom
27
27
  } from "./chunk-CPALRSPC.js";
28
- import "./chunk-T6F4FYYS.js";
28
+ import "./chunk-QLQRN6RY.js";
29
29
  import "./chunk-EEW7746S.js";
30
30
  import {
31
31
  outsideReferenceSpan
32
- } from "./chunk-B5LKF437.js";
32
+ } from "./chunk-M65JXRFN.js";
33
33
  import "./chunk-TSS2SZWQ.js";
34
34
  import "./chunk-UXY4RU57.js";
35
35
  import "./chunk-HNVGWN3S.js";
@@ -43,7 +43,7 @@ import {
43
43
  signIndexForLongitude
44
44
  } from "./chunk-RMBWKZI2.js";
45
45
  import "./chunk-BHJXUY67.js";
46
- import "./chunk-WONTOC5W.js";
46
+ import "./chunk-4RCOOAGI.js";
47
47
 
48
48
  // src/timing/shared.ts
49
49
  var DAY_MS = 864e5;
@@ -1,5 +1,5 @@
1
1
  import { DeltaT } from './deltat.js';
2
- import { a as TimeScaleName, T as TimeScale } from './time-scale-DIFNa0gz.js';
2
+ import { a as TimeScaleName, T as TimeScale } from './time-scale-9vmKQPCn.js';
3
3
 
4
4
  /** Public, serializable vocabulary shared by the chart APIs. */
5
5
 
@@ -60,10 +60,13 @@ type HouseSystem = "whole" | "placidus" | "porphyry" | "equal" | "equal-mc" | "v
60
60
  * `"calendar-unknown"`: a local date resolved with no country the Gregorian adoption table dates that falls in
61
61
  * the days one of its changeovers skipped, where the zone does not rule that changeover out, so whether it was
62
62
  * in civil use where it was written is not known (docs/time.md).
63
+ * `"host-zone-data-differs"`: a local time from 1970 on that the host's Intl read, near a span in which the time
64
+ * zone database changed since tzdata 2021a, where the host gave another offset than the pinned tzdb release; the
65
+ * instant is still the host's, and a device with other time zone data may give another one (docs/time.md).
63
66
  * `"polar-angles"`: the angles were computed inside the polar circle, |latitude| ≥ 90° − ε, where the ascendant
64
67
  * turns half a circle twice a sidereal day and is 0° or 180° at the poles (docs/houses.md).
65
68
  */
66
- type ChartFlag = "dst-gap" | "dst-fold" | "lmt" | "calendar-unknown" | "no-time" | "polar-fallback" | "polar-angles" | "outside-reference-span" | "delta-t-extrapolated" | EphemerisFallback;
69
+ type ChartFlag = "dst-gap" | "dst-fold" | "lmt" | "calendar-unknown" | "host-zone-data-differs" | "no-time" | "polar-fallback" | "polar-angles" | "outside-reference-span" | "delta-t-extrapolated" | EphemerisFallback;
67
70
  /**
68
71
  * Why a result that would have come from the shipped DE440 pack, the default
69
72
  * source, came from astronomy-engine instead; the result carries it as a flag
@@ -170,8 +173,8 @@ interface BodyPosition {
170
173
  /** Present when `ephemeris` is astronomy-engine as a fallback from the shipped DE440 pack, and says why. */
171
174
  fallback?: EphemerisFallback;
172
175
  /**
173
- * On the rows of `positions()`, `transits()`' `positions` and `progressedBodies()`, from the release after
174
- * 1.1.0: the flags a chart at the same instant carries, where there are any (a chart's own bodies leave them to
176
+ * On the rows of `positions()`, `transits()`' `positions` and `progressedBodies()`, from
177
+ * 2.0.0: the flags a chart at the same instant carries, where there are any (a chart's own bodies leave them to
175
178
  * the chart's `flags`): `"outside-reference-span"`, `"delta-t-extrapolated"`, then the fallback, as `fallback`.
176
179
  */
177
180
  flags?: InstantFlag[];