@zodiacs/engine 0.1.1-rc.15 → 1.0.0

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 (54) hide show
  1. package/CHANGELOG.md +891 -0
  2. package/LICENSING.md +192 -12
  3. package/NOTICE +96 -2
  4. package/README.md +296 -66
  5. package/dist/{api-CoB_kqE3.d.ts → api-WbxJ4Wj-.d.ts} +15 -10
  6. package/dist/ayanamsa--YQ46fET.d.ts +134 -0
  7. package/dist/calc.d.ts +390 -0
  8. package/dist/calc.js +1039 -0
  9. package/dist/chunk-47ERTK5X.js +27 -0
  10. package/dist/chunk-7TRLIFFI.js +56 -0
  11. package/dist/chunk-A3U2ZS2W.js +29 -0
  12. package/dist/{chunk-KHBLFXFG.js → chunk-B5LKF437.js} +29 -28
  13. package/dist/{chunk-ONBZ4HK7.js → chunk-BHJXUY67.js} +4 -2
  14. package/dist/{chunk-OYGRVGXD.js → chunk-CHSYDKBL.js} +3 -3
  15. package/dist/{chunk-ZHVI3KWJ.js → chunk-DMGHYCDI.js} +4 -4
  16. package/dist/{chunk-CWI4YUDL.js → chunk-FTX3JDJA.js} +21 -18
  17. package/dist/{chunk-MFF3VKO3.js → chunk-OG4OYTJJ.js} +47 -42
  18. package/dist/{chunk-ZZPITHQS.js → chunk-SRXBTP5H.js} +199 -65
  19. package/dist/{chunk-AECKV73C.js → chunk-TSS2SZWQ.js} +8 -2
  20. package/dist/chunk-WS3TDSP3.js +474 -0
  21. package/dist/chunk-YIITY7Q7.js +483 -0
  22. package/dist/crossings.d.ts +8 -7
  23. package/dist/crossings.js +1 -1
  24. package/dist/deltat.d.ts +28 -3
  25. package/dist/deltat.js +1 -1
  26. package/dist/geo.d.ts +33 -12
  27. package/dist/geo.js +17 -458
  28. package/dist/{internal-math-BbktkHCc.d.ts → houses-CFERsAlK.d.ts} +14 -160
  29. package/dist/houses-extra.d.ts +95 -0
  30. package/dist/houses-extra.js +339 -0
  31. package/dist/index.d.ts +34 -48
  32. package/dist/index.js +31 -23
  33. package/dist/internal-math-DJJ8BYex.d.ts +174 -0
  34. package/dist/internal-math.d.ts +3 -2
  35. package/dist/internal-math.js +2 -2
  36. package/dist/internal.d.ts +1 -1
  37. package/dist/internal.js +5 -5
  38. package/dist/receipt.d.ts +2 -243
  39. package/dist/receipt.js +78 -37
  40. package/dist/reference-span-CILpclrz.d.ts +40 -0
  41. package/dist/rulers-Dla6h_Sm.d.ts +15 -0
  42. package/dist/sky.d.ts +173 -0
  43. package/dist/sky.js +379 -0
  44. package/dist/techniques.d.ts +453 -0
  45. package/dist/techniques.js +823 -0
  46. package/dist/timing.d.ts +113 -17
  47. package/dist/timing.js +98 -64
  48. package/dist/{types-BsWaqwU_.d.ts → types-B-yb_tGL.d.ts} +23 -11
  49. package/dist/vedic.d.ts +42 -124
  50. package/dist/vedic.js +44 -458
  51. package/dist/window.d.ts +180 -0
  52. package/dist/window.js +960 -0
  53. package/dist/zone-history-ghdyO0Sc.d.ts +268 -0
  54. package/package.json +25 -3
@@ -0,0 +1,823 @@
1
+ import {
2
+ readOptions
3
+ } from "./chunk-47ERTK5X.js";
4
+ import {
5
+ resolveLocalToUtc
6
+ } from "./chunk-YIITY7Q7.js";
7
+ import "./chunk-KFTJMMG7.js";
8
+ import {
9
+ natalChart,
10
+ resolvedChart,
11
+ utcOf
12
+ } from "./chunk-FTX3JDJA.js";
13
+ import {
14
+ dateFrom
15
+ } from "./chunk-CPALRSPC.js";
16
+ import {
17
+ findLongitudeCrossingsWith
18
+ } from "./chunk-TSS2SZWQ.js";
19
+ import "./chunk-PFGUCNOK.js";
20
+ import {
21
+ bodyLongitude,
22
+ midpoint
23
+ } from "./chunk-SRXBTP5H.js";
24
+ import {
25
+ outsideReferenceSpan
26
+ } from "./chunk-B5LKF437.js";
27
+ import "./chunk-BHJXUY67.js";
28
+ import {
29
+ HOUSE_SYSTEMS
30
+ } from "./chunk-DMGHYCDI.js";
31
+ import {
32
+ ASPECTS,
33
+ ASPECT_BODY_SET,
34
+ SIGNS,
35
+ SIGN_SLUGS,
36
+ matchAspect,
37
+ normalizeLongitude,
38
+ signIndexForLongitude
39
+ } from "./chunk-OG4OYTJJ.js";
40
+
41
+ // src/techniques/shared.ts
42
+ var DAY_MS = 864e5;
43
+ var MAX_DATE_MS = 864e13;
44
+ var BODY_NAMES = [
45
+ "Sun",
46
+ "Moon",
47
+ "Mercury",
48
+ "Venus",
49
+ "Mars",
50
+ "Jupiter",
51
+ "Saturn",
52
+ "Uranus",
53
+ "Neptune",
54
+ "Pluto",
55
+ "North Node",
56
+ "South Node"
57
+ ];
58
+ function bodyName(value, label) {
59
+ if (typeof value === "string" && BODY_NAMES.includes(value)) return value;
60
+ throw new RangeError(`${label} must be a body name.`);
61
+ }
62
+ function oneOf(value, allowed, fallback, label) {
63
+ if (value === void 0) return fallback;
64
+ if (typeof value === "string" && allowed.includes(value)) return value;
65
+ throw new RangeError(`${label} must be one of ${allowed.map((name) => `"${name}"`).join(", ")}.`);
66
+ }
67
+ function finiteDegrees(value, label) {
68
+ if (typeof value !== "number" || !Number.isFinite(value)) throw new RangeError(`${label} must be a finite number of degrees.`);
69
+ return value;
70
+ }
71
+ function placeOf(value, label) {
72
+ const { latitude, longitude } = value ?? {};
73
+ if (typeof latitude !== "number" || !(Math.abs(latitude) <= 90) || typeof longitude !== "number" || !(Math.abs(longitude) <= 180)) {
74
+ throw new RangeError(`${label} needs a latitude from -90 to 90 and a longitude from -180 to 180 degrees.`);
75
+ }
76
+ return Object.freeze({ latitude, longitude });
77
+ }
78
+ function dateAt(milliseconds, label) {
79
+ if (!(Math.abs(milliseconds) <= MAX_DATE_MS)) throw new RangeError(`${label} falls outside the range of a JavaScript Date.`);
80
+ return new Date(milliseconds);
81
+ }
82
+ function techniqueFlags(instants) {
83
+ return Object.freeze(instants.some((milliseconds) => outsideReferenceSpan(new Date(milliseconds))) ? ["outside-reference-span"] : []);
84
+ }
85
+
86
+ // src/techniques/returns.ts
87
+ var SOLAR_RETURN_WINDOW_DAYS = 200;
88
+ var SOLAR_RETURN_LOOKBACK_DAYS = 370;
89
+ var SOLAR_RETURN_STEP_DAYS = 1;
90
+ var LUNAR_RETURN_HORIZON_DAYS = 40;
91
+ var LUNAR_RETURN_STEP_DAYS = 0.25;
92
+ var SELECTIONS = ["nearest", "most-recent"];
93
+ function solarReturnInstant(natalSunLongitude, near) {
94
+ const target = finiteDegrees(natalSunLongitude, "natalSunLongitude");
95
+ const center = dateFrom(near, "near").getTime();
96
+ const crossings = findLongitudeCrossingsWith(
97
+ bodyLongitude,
98
+ "Sun",
99
+ target,
100
+ dateAt(center - SOLAR_RETURN_WINDOW_DAYS * DAY_MS, "The solar return window"),
101
+ dateAt(center + SOLAR_RETURN_WINDOW_DAYS * DAY_MS, "The solar return window"),
102
+ SOLAR_RETURN_STEP_DAYS
103
+ );
104
+ const first = crossings[0];
105
+ if (first === void 0) throw new RangeError("No solar return found in the scan window.");
106
+ const closest = crossings.reduce((best, crossing) => Math.abs(crossing.at.getTime() - center) < Math.abs(best.at.getTime() - center) ? crossing : best, first);
107
+ return new Date(closest.at.getTime());
108
+ }
109
+ function mostRecentSolarReturnInstant(natalSunLongitude, at) {
110
+ const target = finiteDegrees(natalSunLongitude, "natalSunLongitude");
111
+ const end = dateFrom(at, "at").getTime();
112
+ const crossings = findLongitudeCrossingsWith(
113
+ bodyLongitude,
114
+ "Sun",
115
+ target,
116
+ dateAt(end - SOLAR_RETURN_LOOKBACK_DAYS * DAY_MS, "The solar return window"),
117
+ new Date(end),
118
+ SOLAR_RETURN_STEP_DAYS
119
+ ).filter((crossing) => crossing.at.getTime() <= end);
120
+ const last = crossings[crossings.length - 1];
121
+ if (last === void 0) throw new RangeError("No previous solar return found in the scan window.");
122
+ return new Date(last.at.getTime());
123
+ }
124
+ function moonLongitude(date) {
125
+ const longitude = bodyLongitude("Moon", date);
126
+ if (!(longitude >= 0 && longitude < 360)) throw new RangeError("The Moon position could not be calculated.");
127
+ return longitude;
128
+ }
129
+ function lunarReturnInstant(natalMoonLongitude, after) {
130
+ const longitude = finiteDegrees(natalMoonLongitude, "natalMoonLongitude");
131
+ const start = dateFrom(after, "after").getTime();
132
+ const upper = start + LUNAR_RETURN_HORIZON_DAYS * DAY_MS;
133
+ const target = longitude >= 0 && longitude < 360 ? longitude : (longitude % 360 + 360) % 360;
134
+ const crossings = findLongitudeCrossingsWith(
135
+ (_body, date) => moonLongitude(date),
136
+ "Moon",
137
+ target,
138
+ new Date(start),
139
+ dateAt(upper, "The lunar return window"),
140
+ LUNAR_RETURN_STEP_DAYS
141
+ );
142
+ if (crossings.some((crossing) => !Number.isFinite(crossing.at.getTime()) || crossing.retrograde)) {
143
+ throw new RangeError("The Moon crossing could not be calculated.");
144
+ }
145
+ const instants = [...new Set(crossings.map((crossing) => crossing.at.getTime()))].filter((instant) => instant > start && instant <= upper).sort((a, b) => a - b);
146
+ const first = instants[0];
147
+ if (first === void 0) throw new RangeError("No lunar return was found in the 40-day scan.");
148
+ return new Date(first);
149
+ }
150
+ function setup(natal, body, options) {
151
+ const houseSystem = options.houseSystem === void 0 ? void 0 : oneOf(options.houseSystem, HOUSE_SYSTEMS, "whole", "houseSystem");
152
+ const requested = options.location === void 0 ? void 0 : options.location === null ? null : placeOf(options.location, "location");
153
+ const { chart } = resolvedChart(natal);
154
+ const natalLongitude = chart.bodies.find((row) => row.body === body)?.lon;
155
+ if (natalLongitude === void 0) throw new RangeError(`The natal chart has no ${body}.`);
156
+ const { latitude, longitude } = chart.input;
157
+ const location = requested !== void 0 ? requested : latitude === void 0 || longitude === void 0 ? null : Object.freeze({ latitude, longitude });
158
+ const cast = (instant) => natalChart({ utc: instant, houseSystem: houseSystem ?? chart.input.houseSystem, timeKnown: true, ...location ?? {} });
159
+ return { chart, natalLongitude, birth: utcOf(chart.input).getTime(), location, cast };
160
+ }
161
+ function solarReturn(natal, date, options) {
162
+ const read = readOptions(options, ["location", "houseSystem", "selection"], "solarReturn options");
163
+ const selection = oneOf(read.selection, SELECTIONS, "nearest", "selection");
164
+ const at = dateFrom(date, "date").getTime();
165
+ const { natalLongitude, birth, location, cast } = setup(natal, "Sun", read);
166
+ const recent = selection === "most-recent";
167
+ const instant = recent ? mostRecentSolarReturnInstant(natalLongitude, at) : solarReturnInstant(natalLongitude, at);
168
+ const reach = (recent ? SOLAR_RETURN_LOOKBACK_DAYS : SOLAR_RETURN_WINDOW_DAYS) * DAY_MS;
169
+ return Object.freeze({
170
+ body: "Sun",
171
+ selection,
172
+ natalLongitude,
173
+ instant,
174
+ chart: cast(instant),
175
+ location,
176
+ flags: techniqueFlags([birth, at - reach, recent ? at : at + reach])
177
+ });
178
+ }
179
+ function lunarReturn(natal, after, options) {
180
+ const read = readOptions(options, ["location", "houseSystem"], "lunarReturn options");
181
+ const start = dateFrom(after, "after").getTime();
182
+ const { chart, natalLongitude, birth, location, cast } = setup(natal, "Moon", read);
183
+ if (chart.input.timeKnown !== true || chart.input.flags?.some((flag) => flag === "dst-gap" || flag === "dst-fold")) {
184
+ throw new RangeError("A known, unambiguous birth time is required for a lunar return.");
185
+ }
186
+ if (birth > start) throw new RangeError("after must not precede the birth instant.");
187
+ const instant = lunarReturnInstant(natalLongitude, start);
188
+ return Object.freeze({
189
+ body: "Moon",
190
+ natalLongitude,
191
+ instant,
192
+ chart: cast(instant),
193
+ location,
194
+ flags: techniqueFlags([birth, start, start + LUNAR_RETURN_HORIZON_DAYS * DAY_MS])
195
+ });
196
+ }
197
+
198
+ // src/techniques/relationship.ts
199
+ function positions(list, label) {
200
+ if (!Array.isArray(list)) throw new RangeError(`${label} must be an array of { body, lon }.`);
201
+ const seen = /* @__PURE__ */ new Set();
202
+ return list.map((row) => {
203
+ const body = bodyName(row?.body, `${label}'s body`);
204
+ if (seen.has(body)) throw new RangeError(`${label} names ${body} twice.`);
205
+ seen.add(body);
206
+ return { body, lon: finiteDegrees(row?.lon, `${label}'s ${body}`) };
207
+ });
208
+ }
209
+ function compositeMidpoints(first, second) {
210
+ const b = new Map(positions(second, "second").map((row) => [row.body, row.lon]));
211
+ const out = [];
212
+ for (const row of positions(first, "first")) {
213
+ const other = b.get(row.body);
214
+ if (other !== void 0) out.push(Object.freeze({ body: row.body, lon: midpoint(row.lon, other) }));
215
+ }
216
+ return Object.freeze(out);
217
+ }
218
+ function compositeAspects(points) {
219
+ const list = positions(points, "points").filter((point) => ASPECT_BODY_SET.has(point.body));
220
+ const out = [];
221
+ list.forEach((a, i) => {
222
+ for (const b of list.slice(i + 1)) {
223
+ const match = matchAspect(a.body, a.lon, b.body, b.lon);
224
+ if (match) out.push(Object.freeze({ a: a.body, b: b.body, type: match.definition.type, orb: match.orb }));
225
+ }
226
+ });
227
+ return Object.freeze(out.sort((x, y) => x.orb - y.orb));
228
+ }
229
+ function compositeChart(first, second) {
230
+ const bodies = compositeMidpoints(resolvedChart(first).chart.bodies, resolvedChart(second).chart.bodies);
231
+ return Object.freeze({ bodies, aspects: compositeAspects(bodies) });
232
+ }
233
+ var PLACES = ["coordinates", "great-circle"];
234
+ var DEG = Math.PI / 180;
235
+ function wrapLongitude(value) {
236
+ const wrapped = ((value + 180) % 360 + 360) % 360 - 180;
237
+ return wrapped === -180 ? 180 : wrapped;
238
+ }
239
+ function davisonPlace(first, second, convention = "coordinates") {
240
+ const kind = oneOf(convention, PLACES, "coordinates", "convention");
241
+ const a = placeOf(first, "first");
242
+ const b = placeOf(second, "second");
243
+ if (kind === "coordinates") {
244
+ const east = ((b.longitude - a.longitude) % 360 + 360) % 360;
245
+ return Object.freeze({
246
+ latitude: (a.latitude + b.latitude) / 2,
247
+ longitude: wrapLongitude(a.longitude + (east > 180 ? east - 360 : east) / 2)
248
+ });
249
+ }
250
+ const vector = ({ latitude, longitude }) => [
251
+ Math.cos(latitude * DEG) * Math.cos(longitude * DEG),
252
+ Math.cos(latitude * DEG) * Math.sin(longitude * DEG),
253
+ Math.sin(latitude * DEG)
254
+ ];
255
+ const [x1 = 0, y1 = 0, z1 = 0] = vector(a);
256
+ const [x2 = 0, y2 = 0, z2 = 0] = vector(b);
257
+ const [x, y, z] = [x1 + x2, y1 + y2, z1 + z2];
258
+ const horizontal = Math.hypot(x, y);
259
+ if (Math.hypot(horizontal, z) < 1e-12) throw new RangeError("Antipodal places have no single great-circle midpoint.");
260
+ return Object.freeze({ latitude: Math.atan2(z, horizontal) / DEG, longitude: horizontal < 1e-15 ? 0 : wrapLongitude(Math.atan2(y, x) / DEG) });
261
+ }
262
+ function davisonChart(first, second, options) {
263
+ const read = readOptions(options, ["place", "houseSystem"], "davisonChart options");
264
+ const place = oneOf(read.place, PLACES, "coordinates", "place");
265
+ const houseSystem = read.houseSystem === void 0 ? void 0 : oneOf(read.houseSystem, HOUSE_SYSTEMS, "whole", "houseSystem");
266
+ const a = resolvedChart(first).chart.input;
267
+ const b = resolvedChart(second).chart.input;
268
+ const t1 = utcOf(a).getTime();
269
+ const t2 = utcOf(b).getTime();
270
+ const instant = Math.floor((t1 + t2) / 2);
271
+ const location = a.latitude === void 0 || a.longitude === void 0 || b.latitude === void 0 || b.longitude === void 0 ? null : davisonPlace({ latitude: a.latitude, longitude: a.longitude }, { latitude: b.latitude, longitude: b.longitude }, place);
272
+ const chart = natalChart({ utc: instant, houseSystem: houseSystem ?? a.houseSystem, timeKnown: a.timeKnown && b.timeKnown, ...location ?? {} });
273
+ return Object.freeze({ instant: new Date(instant), location, place, chart, flags: techniqueFlags([t1, t2, instant]) });
274
+ }
275
+
276
+ // src/techniques/void-of-course.ts
277
+ var VOID_BODIES = /* @__PURE__ */ Object.freeze({
278
+ modern: /* @__PURE__ */ Object.freeze(["Sun", "Mercury", "Venus", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Pluto"]),
279
+ traditional: /* @__PURE__ */ Object.freeze(["Sun", "Mercury", "Venus", "Mars", "Jupiter", "Saturn"])
280
+ });
281
+ var VOID_OF_COURSE_CONVENTION = /* @__PURE__ */ Object.freeze({
282
+ name: "last-exact-ptolemaic-aspect-to-sign-exit",
283
+ aspects: /* @__PURE__ */ Object.freeze(["conjunction", "sextile", "square", "trine", "opposition"]),
284
+ defaultBodies: "modern",
285
+ source: "Lilly, Christian Astrology (1647), p. 112"
286
+ });
287
+ var OFFSETS = [
288
+ ["conjunction", 0],
289
+ ["sextile", 60],
290
+ ["sextile", 300],
291
+ ["square", 90],
292
+ ["square", 270],
293
+ ["trine", 120],
294
+ ["trine", 240],
295
+ ["opposition", 180]
296
+ ];
297
+ var VOID_OF_COURSE_MAX_DAYS = 3660;
298
+ var BODY_SETS = ["modern", "traditional"];
299
+ var bodiesOf = (options) => VOID_BODIES[oneOf(readOptions(options, ["bodies"], "void-of-course options").bodies, BODY_SETS, "modern", "bodies")];
300
+ function span(from, to) {
301
+ const start = dateFrom(from, "from").getTime();
302
+ const end = dateFrom(to, "to").getTime();
303
+ if (start > end) throw new RangeError("from must not be after to.");
304
+ if (end - start > VOID_OF_COURSE_MAX_DAYS * DAY_MS) throw new RangeError(`The window must not exceed ${VOID_OF_COURSE_MAX_DAYS} days.`);
305
+ return [start, end];
306
+ }
307
+ function delta(a, b) {
308
+ const d = ((b - a) % 360 + 360) % 360;
309
+ return d > 180 ? d - 360 : d;
310
+ }
311
+ function ingresses(fromT, toT) {
312
+ const out = [];
313
+ if (!(toT > fromT)) return out;
314
+ for (let signIndex = 0; signIndex < 12; signIndex += 1) {
315
+ for (const crossing of findLongitudeCrossingsWith(bodyLongitude, "Moon", signIndex * 30, new Date(fromT), new Date(toT), 0.25)) {
316
+ if (!crossing.retrograde) out.push({ at: crossing.at, signIndex });
317
+ }
318
+ }
319
+ return out.sort((a, b) => a.at.getTime() - b.at.getTime());
320
+ }
321
+ function aspects(fromT, toT, bodies) {
322
+ if (!(toT > fromT)) return [];
323
+ const pairs = bodies.flatMap((body) => OFFSETS.map(([type, offset]) => ({ body, type, offset })));
324
+ const separation = (body, angle, t) => delta(bodyLongitude(body, new Date(t)) + angle, bodyLongitude("Moon", new Date(t)));
325
+ const out = [];
326
+ let prevT = fromT;
327
+ const prev = pairs.map(({ body, offset }) => separation(body, offset, prevT));
328
+ while (prevT < toT) {
329
+ const t = Math.min(prevT + DAY_MS / 8, toT);
330
+ const moonLon = bodyLongitude("Moon", new Date(t));
331
+ const bodyLons = new Map(bodies.map((body) => [body, bodyLongitude(body, new Date(t))]));
332
+ pairs.forEach(({ body, type, offset }, i) => {
333
+ const cur = delta((bodyLons.get(body) ?? 0) + offset, moonLon);
334
+ const before = prev[i];
335
+ if (cur === 0 && before !== 0 && Math.abs(before) < 90) {
336
+ out.push({ at: new Date(t), body, aspect: type, moonLon });
337
+ } else if (before !== 0 && cur !== 0 && Math.sign(cur) !== Math.sign(before) && Math.abs(cur) < 90 && Math.abs(before) < 90) {
338
+ let lo = prevT;
339
+ let hi = t;
340
+ const rising = cur > before;
341
+ for (let k = 0; k < 26; k += 1) {
342
+ const mid = (lo + hi) / 2;
343
+ if (separation(body, offset, mid) > 0 === rising) hi = mid;
344
+ else lo = mid;
345
+ }
346
+ const at = new Date(hi);
347
+ out.push({ at, body, aspect: type, moonLon: bodyLongitude("Moon", at) });
348
+ }
349
+ prev[i] = cur;
350
+ });
351
+ prevT = t;
352
+ }
353
+ return out.sort((a, b) => a.at.getTime() - b.at.getTime());
354
+ }
355
+ function windows(fromT, toT, bodies) {
356
+ const list = ingresses(fromT - 4 * DAY_MS, toT);
357
+ const out = [];
358
+ for (let i = 1; i < list.length; i += 1) {
359
+ const entered = list[i - 1];
360
+ const leaving = list[i];
361
+ const end = leaving.at.getTime();
362
+ if (end <= fromT) continue;
363
+ const inSign = aspects(entered.at.getTime(), end, bodies).filter((aspect) => aspect.at.getTime() < end);
364
+ const lastAspect = inSign[inSign.length - 1] ?? null;
365
+ out.push(
366
+ Object.freeze({
367
+ from: new Date((lastAspect ?? entered).at.getTime()),
368
+ to: new Date(end),
369
+ lastAspect: lastAspect && Object.freeze(lastAspect),
370
+ sign: SIGN_SLUGS[entered.signIndex],
371
+ nextSign: SIGN_SLUGS[leaving.signIndex]
372
+ })
373
+ );
374
+ }
375
+ return out;
376
+ }
377
+ function moonIngresses(from, to) {
378
+ return Object.freeze(ingresses(...span(from, to)).map((row) => Object.freeze({ at: row.at, sign: SIGN_SLUGS[row.signIndex] })));
379
+ }
380
+ function moonAspects(from, to, options) {
381
+ const bodies = bodiesOf(options);
382
+ return Object.freeze(aspects(...span(from, to), bodies).map((row) => Object.freeze(row)));
383
+ }
384
+ function voidOfCourseWindows(from, to, options) {
385
+ const bodies = bodiesOf(options);
386
+ return Object.freeze(windows(...span(from, to), bodies));
387
+ }
388
+ function voidOfCourseAt(at, options) {
389
+ const bodies = bodiesOf(options);
390
+ const t = dateFrom(at, "at").getTime();
391
+ const list = windows(t - 3 * DAY_MS, t + 6 * DAY_MS, bodies);
392
+ const current = list.find((window) => window.from.getTime() <= t && t < window.to.getTime()) ?? null;
393
+ return Object.freeze({ at: new Date(t), isVoid: current !== null, current, next: list.find((window) => window.from.getTime() > t) ?? null });
394
+ }
395
+
396
+ // src/techniques/aspect-patterns.ts
397
+ var PATTERN_BODIES = /* @__PURE__ */ Object.freeze([
398
+ "Sun",
399
+ "Moon",
400
+ "Mercury",
401
+ "Venus",
402
+ "Mars",
403
+ "Jupiter",
404
+ "Saturn",
405
+ "Uranus",
406
+ "Neptune",
407
+ "Pluto"
408
+ ]);
409
+ var rank = (body) => PATTERN_BODIES.indexOf(body);
410
+ var compare = (a, b) => a < b ? -1 : a > b ? 1 : 0;
411
+ var ordered = (bodies) => [...bodies].sort((a, b) => rank(a) - rank(b));
412
+ var pair = (a, b) => rank(a) < rank(b) ? [a, b] : [b, a];
413
+ var pairKey = (a, b) => pair(a, b).join("|");
414
+ var normalize = (lon) => (lon % 360 + 360) % 360;
415
+ var LUMINARIES = /* @__PURE__ */ new Set(["Sun", "Moon"]);
416
+ function aspectPatterns(points, aspects2) {
417
+ if (!Array.isArray(points) || !Array.isArray(aspects2)) throw new RangeError("points and aspects must be arrays.");
418
+ const seen = /* @__PURE__ */ new Set();
419
+ for (const point of points) {
420
+ if (!point || !point.body || seen.has(point.body) || !Number.isFinite(point.lon)) {
421
+ throw new RangeError("Invalid or duplicate body positions.");
422
+ }
423
+ seen.add(point.body);
424
+ }
425
+ const admitted = points.filter((point) => rank(point.body) >= 0).map((point) => ({ body: point.body, lon: normalize(point.lon) })).sort((a, b) => rank(a.body) - rank(b.body));
426
+ if (!admitted.length) throw new RangeError("No eligible body positions.");
427
+ const byBody = new Map(admitted.map((point) => [point.body, point.lon]));
428
+ const graph = /* @__PURE__ */ new Map();
429
+ for (const aspect of aspects2) {
430
+ if (!aspect || !Number.isFinite(aspect.orb) || aspect.orb < 0 || !ASPECTS.some((definition) => definition.type === aspect.type)) {
431
+ throw new RangeError("Invalid aspect data.");
432
+ }
433
+ if (rank(aspect.a) < 0 || rank(aspect.b) < 0) continue;
434
+ const a = aspect.a;
435
+ const b = aspect.b;
436
+ if (a === b || !byBody.has(a) || !byBody.has(b)) throw new RangeError("An aspect has missing or repeated members.");
437
+ const match = matchAspect(a, byBody.get(a), b, byBody.get(b));
438
+ if (!match || match.definition.type !== aspect.type || Math.abs(match.orb - aspect.orb) > 1e-9) {
439
+ throw new RangeError("Aspect records disagree with the positions.");
440
+ }
441
+ const key = pairKey(a, b);
442
+ const previous = graph.get(key);
443
+ const sourceId = aspect.sourceId ?? `aspect:${aspect.a}-${aspect.type}-${aspect.b}`;
444
+ if (previous) {
445
+ if (previous.type !== aspect.type || previous.orb !== aspect.orb) throw new RangeError("Contradictory duplicate aspect records.");
446
+ previous.sourceIds = [.../* @__PURE__ */ new Set([...previous.sourceIds, sourceId])].sort();
447
+ } else {
448
+ const [first, second] = pair(a, b);
449
+ graph.set(key, {
450
+ a: first,
451
+ b: second,
452
+ type: aspect.type,
453
+ orb: aspect.orb,
454
+ limit: LUMINARIES.has(a) || LUMINARIES.has(b) ? match.definition.luminaryOrb : match.definition.orb,
455
+ key: `${key}|${aspect.type}`,
456
+ sourceIds: [sourceId]
457
+ });
458
+ }
459
+ }
460
+ const edge = (a, b, type) => {
461
+ const found = graph.get(pairKey(a, b));
462
+ return found?.type === type ? found : void 0;
463
+ };
464
+ const patterns = /* @__PURE__ */ new Map();
465
+ const add = (kind, members, required, roles = {}) => {
466
+ if (required.some((candidate) => !candidate)) return;
467
+ const edges = required.slice().sort((x, y) => compare(x.key, y.key));
468
+ const sorted = ordered(members);
469
+ const oppositions = edges.filter((candidate) => candidate.type === "opposition").map((candidate) => pair(candidate.a, candidate.b)).sort((x, y) => rank(x[0]) - rank(y[0]) || rank(x[1]) - rank(y[1]));
470
+ const suffix = kind === "t-square" ? `apex:${roles.apex}` : kind === "grand-cross" ? `oppositions:${oppositions.map((p) => p.join(",")).join(";")}` : kind === "kite" ? `triangle:${roles.triangle?.join(",")};axis:${roles.axisVertex};opposed:${roles.opposedVertex}` : "";
471
+ const id = `${kind}:${sorted.join(",")}${suffix ? `:${suffix}` : ""}`;
472
+ patterns.set(
473
+ id,
474
+ Object.freeze({
475
+ id,
476
+ kind,
477
+ members: Object.freeze(sorted),
478
+ edges: Object.freeze(edges.map((row) => Object.freeze({ ...row, sourceIds: Object.freeze([...row.sourceIds]) }))),
479
+ oppositions: Object.freeze(oppositions.map((p) => Object.freeze(p))),
480
+ ...roles.apex === void 0 ? {} : { apex: roles.apex },
481
+ ...roles.triangle === void 0 ? {} : { triangle: Object.freeze([...roles.triangle]) },
482
+ ...roles.axisVertex === void 0 ? {} : { axisVertex: roles.axisVertex },
483
+ ...roles.opposedVertex === void 0 ? {} : { opposedVertex: roles.opposedVertex }
484
+ })
485
+ );
486
+ };
487
+ const bodies = admitted.map((point) => point.body);
488
+ for (let i = 0; i < bodies.length; i += 1) {
489
+ for (let j = i + 1; j < bodies.length; j += 1) {
490
+ for (let k = j + 1; k < bodies.length; k += 1) {
491
+ const triangle = [bodies[i], bodies[j], bodies[k]];
492
+ const [a, b, c] = triangle;
493
+ const trines = [edge(a, b, "trine"), edge(a, c, "trine"), edge(b, c, "trine")];
494
+ add("grand-trine", triangle, trines);
495
+ for (const apex of triangle) {
496
+ const [left, right] = triangle.filter((body) => body !== apex);
497
+ add("t-square", triangle, [edge(left, right, "opposition"), edge(left, apex, "square"), edge(right, apex, "square")], { apex });
498
+ }
499
+ if (trines.every(Boolean)) {
500
+ for (const axisVertex of triangle) {
501
+ for (const opposedVertex of bodies.filter((body) => !triangle.includes(body))) {
502
+ const others = triangle.filter((body) => body !== axisVertex);
503
+ add(
504
+ "kite",
505
+ [...triangle, opposedVertex],
506
+ [...trines, edge(axisVertex, opposedVertex, "opposition"), ...others.map((body) => edge(body, opposedVertex, "sextile"))],
507
+ { triangle, axisVertex, opposedVertex }
508
+ );
509
+ }
510
+ }
511
+ }
512
+ for (let l = k + 1; l < bodies.length; l += 1) {
513
+ const d = bodies[l];
514
+ for (const opposite2 of [b, c, d]) {
515
+ const [left, right] = [b, c, d].filter((body) => body !== opposite2);
516
+ add("grand-cross", [a, b, c, d], [
517
+ edge(a, opposite2, "opposition"),
518
+ edge(left, right, "opposition"),
519
+ edge(a, left, "square"),
520
+ edge(a, right, "square"),
521
+ edge(opposite2, left, "square"),
522
+ edge(opposite2, right, "square")
523
+ ]);
524
+ }
525
+ }
526
+ }
527
+ }
528
+ }
529
+ return Object.freeze({
530
+ points: Object.freeze(admitted.map((point) => Object.freeze(point))),
531
+ patterns: Object.freeze([...patterns.values()].sort((x, y) => compare(x.id, y.id)))
532
+ });
533
+ }
534
+ function chartAspectPatterns(natal) {
535
+ const { chart } = resolvedChart(natal);
536
+ return aspectPatterns(
537
+ chart.bodies.map((row) => ({ body: row.body, lon: row.lon })),
538
+ chart.aspects.map((row) => ({ a: row.a, b: row.b, type: row.type, orb: row.orb }))
539
+ );
540
+ }
541
+ var KIND_ORDER = ["grand-cross", "kite", "grand-trine", "t-square"];
542
+ function patternContainment(patterns) {
543
+ const presentation = (a, b) => b.members.length - a.members.length || KIND_ORDER.indexOf(a.kind) - KIND_ORDER.indexOf(b.kind) || compare(a.id, b.id);
544
+ const sorted = [...patterns].sort(presentation);
545
+ const included = {};
546
+ const contained = /* @__PURE__ */ new Set();
547
+ for (const outer of sorted) {
548
+ const keys = new Set(outer.edges.map((row) => row.key));
549
+ const inner = sorted.filter(
550
+ (candidate) => candidate.members.length < outer.members.length && candidate.members.every((body) => outer.members.includes(body)) && candidate.edges.every((row) => keys.has(row.key))
551
+ );
552
+ included[outer.id] = Object.freeze(inner);
553
+ for (const pattern of inner) contained.add(pattern.id);
554
+ }
555
+ return Object.freeze({ roots: Object.freeze(sorted.filter((pattern) => !contained.has(pattern.id))), included: Object.freeze(included) });
556
+ }
557
+
558
+ // src/techniques/dignities.ts
559
+ var CLASSICAL_PLANETS = /* @__PURE__ */ Object.freeze([
560
+ "Sun",
561
+ "Moon",
562
+ "Mercury",
563
+ "Venus",
564
+ "Mars",
565
+ "Jupiter",
566
+ "Saturn"
567
+ ]);
568
+ var DOMICILE_RULERS = /* @__PURE__ */ Object.freeze({
569
+ aries: "Mars",
570
+ taurus: "Venus",
571
+ gemini: "Mercury",
572
+ cancer: "Moon",
573
+ leo: "Sun",
574
+ virgo: "Mercury",
575
+ libra: "Venus",
576
+ scorpio: "Mars",
577
+ sagittarius: "Jupiter",
578
+ capricorn: "Saturn",
579
+ aquarius: "Saturn",
580
+ pisces: "Jupiter"
581
+ });
582
+ var EXALTATIONS = /* @__PURE__ */ Object.freeze({
583
+ Sun: "aries",
584
+ Moon: "taurus",
585
+ Mercury: "virgo",
586
+ Venus: "pisces",
587
+ Mars: "capricorn",
588
+ Jupiter: "cancer",
589
+ Saturn: "libra"
590
+ });
591
+ var TRIPLICITY_LORDS = /* @__PURE__ */ Object.freeze({
592
+ fire: /* @__PURE__ */ Object.freeze({ day: "Sun", night: "Jupiter", participating: "Saturn" }),
593
+ earth: /* @__PURE__ */ Object.freeze({ day: "Venus", night: "Moon", participating: "Mars" }),
594
+ air: /* @__PURE__ */ Object.freeze({ day: "Saturn", night: "Mercury", participating: "Jupiter" }),
595
+ water: /* @__PURE__ */ Object.freeze({ day: "Venus", night: "Mars", participating: "Moon" })
596
+ });
597
+ var terms = (...rows) => Object.freeze(Object.fromEntries(SIGN_SLUGS.map((sign, index) => [sign, Object.freeze(rows[index].map((row) => Object.freeze(row)))])));
598
+ var EGYPTIAN_TERMS = /* @__PURE__ */ terms(
599
+ [["Jupiter", 6], ["Venus", 12], ["Mercury", 20], ["Mars", 25], ["Saturn", 30]],
600
+ [["Venus", 8], ["Mercury", 14], ["Jupiter", 22], ["Saturn", 27], ["Mars", 30]],
601
+ [["Mercury", 6], ["Jupiter", 12], ["Venus", 17], ["Mars", 24], ["Saturn", 30]],
602
+ [["Mars", 7], ["Venus", 13], ["Mercury", 19], ["Jupiter", 26], ["Saturn", 30]],
603
+ [["Jupiter", 6], ["Venus", 11], ["Saturn", 18], ["Mercury", 24], ["Mars", 30]],
604
+ [["Mercury", 7], ["Venus", 17], ["Jupiter", 21], ["Mars", 28], ["Saturn", 30]],
605
+ [["Saturn", 6], ["Mercury", 14], ["Jupiter", 21], ["Venus", 28], ["Mars", 30]],
606
+ [["Mars", 7], ["Venus", 11], ["Mercury", 19], ["Jupiter", 24], ["Saturn", 30]],
607
+ [["Jupiter", 12], ["Venus", 17], ["Mercury", 21], ["Saturn", 26], ["Mars", 30]],
608
+ [["Mercury", 7], ["Jupiter", 14], ["Venus", 22], ["Saturn", 26], ["Mars", 30]],
609
+ [["Mercury", 7], ["Venus", 13], ["Jupiter", 20], ["Mars", 25], ["Saturn", 30]],
610
+ [["Venus", 12], ["Jupiter", 16], ["Mercury", 19], ["Mars", 28], ["Saturn", 30]]
611
+ );
612
+ var CHALDEAN_FACES = /* @__PURE__ */ Object.freeze(
613
+ /* @__PURE__ */ Array.from({ length: 36 }, (_, index) => ["Mars", "Sun", "Venus", "Mercury", "Moon", "Saturn", "Jupiter"][index % 7])
614
+ );
615
+ var opposite = (sign) => SIGN_SLUGS[(SIGN_SLUGS.indexOf(sign) + 6) % 12];
616
+ var isClassical = (body) => CLASSICAL_PLANETS.includes(body);
617
+ function signName(value) {
618
+ if (typeof value === "string" && SIGN_SLUGS.includes(value)) return value;
619
+ throw new RangeError("sign must be a lowercase zodiac sign name.");
620
+ }
621
+ function hasClassicalDignities(planet) {
622
+ return isClassical(bodyName(planet, "planet"));
623
+ }
624
+ function dignitiesFor(planet, sign) {
625
+ const body = bodyName(planet, "planet");
626
+ const where = signName(sign);
627
+ const out = [];
628
+ if (isClassical(body)) {
629
+ if (DOMICILE_RULERS[where] === body) out.push("domicile");
630
+ if (EXALTATIONS[body] === where) out.push("exaltation");
631
+ if (DOMICILE_RULERS[opposite(where)] === body) out.push("detriment");
632
+ if (opposite(EXALTATIONS[body]) === where) out.push("fall");
633
+ }
634
+ return Object.freeze(out);
635
+ }
636
+ function dignityFor(planet, sign) {
637
+ const all = dignitiesFor(planet, sign);
638
+ return ["exaltation", "fall", "domicile", "detriment"].find((condition) => all.includes(condition)) ?? null;
639
+ }
640
+ function dignityRulersAt(longitude) {
641
+ const lon = normalizeLongitude(finiteDegrees(longitude, "longitude"));
642
+ const index = signIndexForLongitude(lon);
643
+ const sign = SIGN_SLUGS[index];
644
+ const degree = Math.max(0, lon - index * 30);
645
+ const row = EGYPTIAN_TERMS[sign];
646
+ const at = Math.max(0, row.findIndex(([, end]) => degree < end));
647
+ const face = Math.min(2, Math.floor(degree / 10));
648
+ const element = SIGNS[index].element;
649
+ return Object.freeze({
650
+ lon,
651
+ sign,
652
+ domicile: DOMICILE_RULERS[sign],
653
+ exaltation: CLASSICAL_PLANETS.find((planet) => EXALTATIONS[planet] === sign) ?? null,
654
+ triplicity: Object.freeze({ element, ...TRIPLICITY_LORDS[element] }),
655
+ term: Object.freeze({ planet: row[at][0], from: at === 0 ? 0 : row[at - 1][1], to: row[at][1] }),
656
+ face: Object.freeze({ planet: CHALDEAN_FACES[index * 3 + face], from: face * 10, to: face * 10 + 10 }),
657
+ detriment: DOMICILE_RULERS[opposite(sign)],
658
+ fall: CLASSICAL_PLANETS.find((planet) => opposite(EXALTATIONS[planet]) === sign) ?? null
659
+ });
660
+ }
661
+ function essentialDignities(planet, longitude, sect) {
662
+ const body = bodyName(planet, "planet");
663
+ if (!isClassical(body)) throw new RangeError("Essential dignities are defined for the seven classical planets only.");
664
+ if (sect !== "day" && sect !== "night") throw new RangeError('sect must be "day" or "night".');
665
+ const rulers = dignityRulersAt(longitude);
666
+ const held = [
667
+ [rulers.domicile === body, "domicile"],
668
+ [rulers.exaltation === body, "exaltation"],
669
+ [rulers.triplicity[sect] === body, "triplicity"],
670
+ [rulers.term.planet === body, "term"],
671
+ [rulers.face.planet === body, "face"]
672
+ ];
673
+ const dignities = held.filter(([has]) => has).map(([, name]) => name);
674
+ const debilities = [[rulers.detriment === body, "detriment"], [rulers.fall === body, "fall"]].filter(([has]) => has).map(([, name]) => name);
675
+ return Object.freeze({
676
+ planet: body,
677
+ lon: rulers.lon,
678
+ sign: rulers.sign,
679
+ sect,
680
+ dignities: Object.freeze(dignities),
681
+ debilities: Object.freeze(debilities),
682
+ peregrine: dignities.length === 0
683
+ });
684
+ }
685
+ var ALL_DIGNITIES = ["domicile", "exaltation", "triplicity", "term", "face"];
686
+ function mutualReceptions(positions2, options) {
687
+ const read = readOptions(options, ["dignities", "sect"], "mutualReceptions options");
688
+ const wanted = read.dignities ?? ["domicile", "exaltation"];
689
+ if (!Array.isArray(wanted) || !wanted.length || wanted.some((name) => !ALL_DIGNITIES.includes(name))) {
690
+ throw new RangeError(`dignities must be a nonempty list of ${ALL_DIGNITIES.join(", ")}.`);
691
+ }
692
+ const sect = read.sect === void 0 ? void 0 : oneOf(read.sect, ["day", "night"], "day", "sect");
693
+ if (wanted.includes("triplicity") && sect === void 0) throw new RangeError("Reception by triplicity needs the chart's sect.");
694
+ if (!Array.isArray(positions2)) throw new RangeError("positions must be an array of { body, lon }.");
695
+ const seen = /* @__PURE__ */ new Set();
696
+ const planets = [];
697
+ for (const row of positions2) {
698
+ const body = bodyName(row?.body, "position");
699
+ if (seen.has(body)) throw new RangeError(`positions name ${body} twice.`);
700
+ seen.add(body);
701
+ const lon = finiteDegrees(row.lon, `${body}'s longitude`);
702
+ if (isClassical(body)) planets.push({ planet: body, lon });
703
+ }
704
+ planets.sort((x, y) => CLASSICAL_PLANETS.indexOf(x.planet) - CLASSICAL_PLANETS.indexOf(y.planet));
705
+ const receives = (host, guestLon) => Object.freeze(essentialDignities(host, guestLon, sect ?? "day").dignities.filter((name) => wanted.includes(name)));
706
+ const out = [];
707
+ planets.forEach((a, i) => {
708
+ for (const b of planets.slice(i + 1)) {
709
+ const aReceivesB = receives(a.planet, b.lon);
710
+ const bReceivesA = receives(b.planet, a.lon);
711
+ if (aReceivesB.length && bReceivesA.length) out.push(Object.freeze({ a: a.planet, b: b.planet, aReceivesB, bReceivesA }));
712
+ }
713
+ });
714
+ return Object.freeze(out);
715
+ }
716
+
717
+ // src/techniques/moon-sign.ts
718
+ var HOUR_MS = 36e5;
719
+ var EVERY_ZONE_OFFSETS = /* @__PURE__ */ Object.freeze({ earliestHours: 14, latestHours: -12 });
720
+ var MOON_SIGN_MAX_SPAN_DAYS = 20;
721
+ function signsOver(fromT, toT) {
722
+ const first = signIndexForLongitude(bodyLongitude("Moon", new Date(fromT)));
723
+ const last = signIndexForLongitude(bodyLongitude("Moon", new Date(toT)));
724
+ const count = (last - first + 12) % 12;
725
+ return Array.from({ length: count + 1 }, (_, step) => SIGN_SLUGS[(first + step) % 12]);
726
+ }
727
+ function moonSignsBetween(from, to) {
728
+ const fromT = dateFrom(from, "from").getTime();
729
+ const toT = dateFrom(to, "to").getTime();
730
+ if (fromT > toT) throw new RangeError("from must not be after to.");
731
+ if (toT - fromT > MOON_SIGN_MAX_SPAN_DAYS * DAY_MS) throw new RangeError(`The span must not exceed ${MOON_SIGN_MAX_SPAN_DAYS} days.`);
732
+ return Object.freeze(signsOver(fromT, toT));
733
+ }
734
+ function civilDate(value) {
735
+ const match = typeof value === "string" ? /^(\d{4})-(\d{2})-(\d{2})$/u.exec(value) : null;
736
+ if (match) {
737
+ const [year, month, day] = [Number(match[1]), Number(match[2]), Number(match[3])];
738
+ const check = /* @__PURE__ */ new Date(0);
739
+ check.setUTCFullYear(year, month - 1, day);
740
+ if (check.getUTCFullYear() === year && check.getUTCMonth() === month - 1 && check.getUTCDate() === day) return { year, month, day };
741
+ }
742
+ throw new RangeError("date must be a Gregorian calendar date, YYYY-MM-DD.");
743
+ }
744
+ function isoDate(year, month, day) {
745
+ const date = /* @__PURE__ */ new Date(0);
746
+ date.setUTCFullYear(year, month - 1, day);
747
+ return `${String(date.getUTCFullYear()).padStart(4, "0")}-${String(date.getUTCMonth() + 1).padStart(2, "0")}-${String(date.getUTCDate()).padStart(2, "0")}`;
748
+ }
749
+ function moonSignCandidates(date, options) {
750
+ const read = readOptions(options, ["timeZone", "longitude"], "moonSignCandidates options");
751
+ const { year, month, day } = civilDate(date);
752
+ const timeZone = read.timeZone;
753
+ if (timeZone !== void 0 && typeof timeZone !== "string") throw new RangeError("timeZone must be a string.");
754
+ if (read.longitude !== void 0 && timeZone === void 0) throw new RangeError("longitude needs a timeZone.");
755
+ let fromT;
756
+ let toT;
757
+ if (timeZone === void 0) {
758
+ const noon = /* @__PURE__ */ new Date(0);
759
+ noon.setUTCFullYear(year, month - 1, day);
760
+ const noonT = noon.setUTCHours(12, 0, 0, 0);
761
+ fromT = noonT - (12 + EVERY_ZONE_OFFSETS.earliestHours) * HOUR_MS;
762
+ toT = noonT + (12 - EVERY_ZONE_OFFSETS.latestHours) * HOUR_MS - 1;
763
+ } else {
764
+ const local = read.longitude === void 0 ? void 0 : { longitude: read.longitude };
765
+ fromT = resolveLocalToUtc(isoDate(year, month, day), "00:00", timeZone, local).utc.getTime();
766
+ toT = resolveLocalToUtc(isoDate(year, month, day + 1), "00:00", timeZone, local).utc.getTime() - 1;
767
+ if (toT < fromT) throw new RangeError("The date did not occur in that time zone.");
768
+ }
769
+ const signs = signsOver(fromT, toT);
770
+ return Object.freeze({
771
+ date: isoDate(year, month, day),
772
+ timeZone: timeZone ?? null,
773
+ from: new Date(fromT),
774
+ to: new Date(toT),
775
+ signs: Object.freeze(signs),
776
+ sign: signs.length === 1 ? signs[0] : null,
777
+ flags: techniqueFlags([fromT, toT])
778
+ });
779
+ }
780
+ export {
781
+ CHALDEAN_FACES,
782
+ CLASSICAL_PLANETS,
783
+ DOMICILE_RULERS,
784
+ EGYPTIAN_TERMS,
785
+ EVERY_ZONE_OFFSETS,
786
+ EXALTATIONS,
787
+ LUNAR_RETURN_HORIZON_DAYS,
788
+ LUNAR_RETURN_STEP_DAYS,
789
+ MOON_SIGN_MAX_SPAN_DAYS,
790
+ PATTERN_BODIES,
791
+ SOLAR_RETURN_LOOKBACK_DAYS,
792
+ SOLAR_RETURN_STEP_DAYS,
793
+ SOLAR_RETURN_WINDOW_DAYS,
794
+ TRIPLICITY_LORDS,
795
+ VOID_BODIES,
796
+ VOID_OF_COURSE_CONVENTION,
797
+ VOID_OF_COURSE_MAX_DAYS,
798
+ aspectPatterns,
799
+ chartAspectPatterns,
800
+ compositeAspects,
801
+ compositeChart,
802
+ compositeMidpoints,
803
+ davisonChart,
804
+ davisonPlace,
805
+ dignitiesFor,
806
+ dignityFor,
807
+ dignityRulersAt,
808
+ essentialDignities,
809
+ hasClassicalDignities,
810
+ lunarReturn,
811
+ lunarReturnInstant,
812
+ moonAspects,
813
+ moonIngresses,
814
+ moonSignCandidates,
815
+ moonSignsBetween,
816
+ mostRecentSolarReturnInstant,
817
+ mutualReceptions,
818
+ patternContainment,
819
+ solarReturn,
820
+ solarReturnInstant,
821
+ voidOfCourseAt,
822
+ voidOfCourseWindows
823
+ };