kaabalah 6.13.0 → 6.14.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 (41) hide show
  1. package/dist/chunk-4PVIDUPI.js +3809 -0
  2. package/dist/chunk-4PVIDUPI.js.map +1 -0
  3. package/dist/{chunk-MWHMP3LI.js → chunk-7C7VO76O.js} +437 -7
  4. package/dist/chunk-7C7VO76O.js.map +1 -0
  5. package/dist/{chunk-ZE2KPCHT.mjs → chunk-OZUEDZ4U.mjs} +76 -2
  6. package/dist/chunk-OZUEDZ4U.mjs.map +1 -0
  7. package/dist/{chunk-V5KXYFHZ.mjs → chunk-QQN54SLY.mjs} +427 -6
  8. package/dist/chunk-QQN54SLY.mjs.map +1 -0
  9. package/dist/chunk-WA52P72D.mjs +3781 -0
  10. package/dist/chunk-WA52P72D.mjs.map +1 -0
  11. package/dist/{chunk-5PZ7EB2E.js → chunk-XWVT3SI7.js} +77 -1
  12. package/dist/chunk-XWVT3SI7.js.map +1 -0
  13. package/dist/cli.js +1881 -13
  14. package/dist/cli.js.map +1 -1
  15. package/dist/{data-BXhkIF1M.d.ts → data-BRi5-xg_.d.ts} +9 -1
  16. package/dist/{data-2Hp_b3BD.d.mts → data-BoQrkrWX.d.mts} +9 -1
  17. package/dist/iching/index.d.mts +6 -1
  18. package/dist/iching/index.d.ts +6 -1
  19. package/dist/iching/index.js +42 -34
  20. package/dist/iching/index.mjs +1 -1
  21. package/dist/index.d.mts +4 -4
  22. package/dist/index.d.ts +4 -4
  23. package/dist/index.js +141 -77
  24. package/dist/index.mjs +3 -3
  25. package/dist/semantic/index.d.mts +209 -2
  26. package/dist/semantic/index.d.ts +209 -2
  27. package/dist/semantic/index.js +57 -21
  28. package/dist/semantic/index.mjs +2 -2
  29. package/dist/tarot/index.d.mts +58 -3
  30. package/dist/tarot/index.d.ts +58 -3
  31. package/dist/tarot/index.js +43 -23
  32. package/dist/tarot/index.mjs +1 -1
  33. package/package.json +1 -1
  34. package/dist/chunk-5PZ7EB2E.js.map +0 -1
  35. package/dist/chunk-GET23WEG.js +0 -2678
  36. package/dist/chunk-GET23WEG.js.map +0 -1
  37. package/dist/chunk-MWHMP3LI.js.map +0 -1
  38. package/dist/chunk-V5KXYFHZ.mjs.map +0 -1
  39. package/dist/chunk-WER5UY5M.mjs +0 -2655
  40. package/dist/chunk-WER5UY5M.mjs.map +0 -1
  41. package/dist/chunk-ZE2KPCHT.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
- import { getTarotArchetype, ARKANNUS } from './chunk-WER5UY5M.mjs';
1
+ import { getTarotCorrespondenceProfile, getTarotArchetype, ARKANNUS } from './chunk-WA52P72D.mjs';
2
2
  import { calculateKaabalisticLifePath, calculateStraightAcrossReductionLifePath } from './chunk-RAQDVWNK.mjs';
3
- import { PLANET_AND_NODE_NAMES, computeAspects, DEFAULT_ASPECT_SPECS } from './chunk-PEHDLSUH.mjs';
3
+ import { PLANET_AND_NODE_NAMES, getDomicileRuler, computeAspects, DEFAULT_ASPECT_SPECS } from './chunk-PEHDLSUH.mjs';
4
4
  import { calculateGematria } from './chunk-OSMB2MJR.mjs';
5
5
  import { getCanonicalTree } from './chunk-X5HGLMEF.mjs';
6
6
  import { SPHERES, id, WESTERN_ZODIAC_SIGNS, PLANETS, WESTERN_HOUSES, parseId, WESTERN_ASPECTS } from './chunk-NOZKIUGP.mjs';
@@ -551,8 +551,8 @@ function getKaabalisticCorrespondenceTargets(lookup) {
551
551
  }
552
552
  if (lookup.kind === "planet") {
553
553
  const planet = normalizePlanetName(lookup.planet);
554
- const planetKey = normalizeLookupKey(planet);
555
- const planetPathTargets = (classicalPlanetPathIdsByKey().get(planetKey) ?? []).map((pathId) => ({
554
+ const planetKey2 = normalizeLookupKey(planet);
555
+ const planetPathTargets = (classicalPlanetPathIdsByKey().get(planetKey2) ?? []).map((pathId) => ({
556
556
  targetId: pathId,
557
557
  targetType: "path",
558
558
  targetName: getTargetName(pathId),
@@ -961,6 +961,427 @@ function buildKaabalisticMapData(input) {
961
961
  };
962
962
  }
963
963
 
964
+ // src/semantic/reading.ts
965
+ var TREE_ORDER = [
966
+ id("sphere" /* SPHERE */, "Kether"),
967
+ id("sphere" /* SPHERE */, "Chokhmah"),
968
+ id("sphere" /* SPHERE */, "Binah"),
969
+ id("sphere" /* SPHERE */, "Daath"),
970
+ id("sphere" /* SPHERE */, "Chesed"),
971
+ id("sphere" /* SPHERE */, "Geburah"),
972
+ id("sphere" /* SPHERE */, "Tiphareth"),
973
+ id("sphere" /* SPHERE */, "Netzach"),
974
+ id("sphere" /* SPHERE */, "Hod"),
975
+ id("sphere" /* SPHERE */, "Yesod"),
976
+ id("sphere" /* SPHERE */, "Malkuth")
977
+ ];
978
+ var DAATH = id("sphere" /* SPHERE */, "Daath");
979
+ var RUNGS = TREE_ORDER.filter((id2) => id2 !== DAATH);
980
+ var SUIT_ELEMENT = { wands: "Fire", cups: "Water", swords: "Air", pentacles: "Earth" };
981
+ var SIGN_ELEMENT = {
982
+ Aries: "Fire",
983
+ Leo: "Fire",
984
+ Sagittarius: "Fire",
985
+ Taurus: "Earth",
986
+ Virgo: "Earth",
987
+ Capricorn: "Earth",
988
+ Gemini: "Air",
989
+ Libra: "Air",
990
+ Aquarius: "Air",
991
+ Cancer: "Water",
992
+ Scorpio: "Water",
993
+ Pisces: "Water"
994
+ };
995
+ var PLANET_KEYS = ["sun", "moon", "mercury", "venus", "mars", "jupiter", "saturn", "uranus", "neptune", "pluto"];
996
+ var TAG_TYPE = { westernZodiacSign: "sign", westernElement: "element", planet: "planet" };
997
+ function resolveCard(cardNumber, slot) {
998
+ const profile = getTarotCorrespondenceProfile({ tarotCardNumber: cardNumber });
999
+ if (!profile)
1000
+ return null;
1001
+ const correspondences = profile.correspondences;
1002
+ const base = {
1003
+ slot: slot === "conscious" || slot === "unconscious" || slot === "subconscious" ? slot : null,
1004
+ number: cardNumber,
1005
+ name: profile.tarotCardName
1006
+ };
1007
+ if (profile.kind === "major") {
1008
+ const path = correspondences.path;
1009
+ const carried = ["westernZodiacSign", "westernElement", "planet"].map((type) => correspondences.astrology?.find((entry) => entry.type === type)).find(Boolean);
1010
+ return {
1011
+ ...base,
1012
+ kind: "major",
1013
+ path: path ? { number: path.pathNumber, letter: path.hebrewLetter.label, from: path.fromSphere.id, to: path.toSphere.id } : void 0,
1014
+ tag: carried ? { type: TAG_TYPE[carried.type], value: carried.label } : void 0
1015
+ };
1016
+ }
1017
+ const suit = "suit" in profile ? profile.suit : void 0;
1018
+ const element = suit ? SUIT_ELEMENT[suit] : void 0;
1019
+ if (profile.kind === "minor") {
1020
+ const sphere = correspondences.sphere?.id;
1021
+ const rank = sphere ? RUNGS.indexOf(sphere) + 1 : 0;
1022
+ return {
1023
+ ...base,
1024
+ kind: "minor",
1025
+ suit,
1026
+ sphere,
1027
+ planet: correspondences.planets?.[0]?.label,
1028
+ rank: rank > 0 ? rank : void 0,
1029
+ element
1030
+ };
1031
+ }
1032
+ const courtRank = "courtRank" in profile ? profile.courtRank : void 0;
1033
+ return { ...base, kind: "court", suit, courtRank, sign: correspondences.sign?.label, element };
1034
+ }
1035
+ var MAJOR_ASPECTS = /* @__PURE__ */ new Set(["conjunction", "opposition", "square", "trine", "sextile"]);
1036
+ function projectChart(chart, options) {
1037
+ const known = new Set(PLANET_KEYS);
1038
+ const planets = {};
1039
+ const houses = {};
1040
+ for (const [name, planet] of Object.entries(chart.planets)) {
1041
+ const key = name.toLowerCase();
1042
+ const position = planet?.zodiacPosition;
1043
+ if (!known.has(key) || !position?.sign)
1044
+ continue;
1045
+ planets[key] = position.sign;
1046
+ if (options.houses && typeof position.house === "number")
1047
+ houses[key] = position.house;
1048
+ }
1049
+ const houseSigns = {};
1050
+ if (options.houses) {
1051
+ for (const [index, cusp] of (chart.houses?.houses ?? []).slice(0, 12).entries()) {
1052
+ if (cusp.sign)
1053
+ houseSigns[index + 1] = cusp.sign;
1054
+ }
1055
+ }
1056
+ const aspects = (chart.aspects ?? []).map((edge) => ({ a: edge.planetA.toLowerCase(), b: edge.planetB.toLowerCase(), aspect: edge.aspect })).filter((edge) => MAJOR_ASPECTS.has(edge.aspect) && known.has(edge.a) && known.has(edge.b));
1057
+ return {
1058
+ planets,
1059
+ ascendant: options.houses ? chart.houses?.ascendant?.sign ?? null : null,
1060
+ ...options.houses ? { houses } : {},
1061
+ ...Object.keys(houseSigns).length > 0 ? { houseSigns } : {},
1062
+ aspects
1063
+ };
1064
+ }
1065
+ var planetKey = (label) => label.toLowerCase();
1066
+ function buildReadingWeights({ cards, iching, natal }) {
1067
+ const spheres = /* @__PURE__ */ new Map();
1068
+ const paths = /* @__PURE__ */ new Map();
1069
+ const hit = (sphere, entry) => {
1070
+ if (sphere === DAATH)
1071
+ return;
1072
+ const current = spheres.get(sphere) ?? { count: 0, hits: [] };
1073
+ current.count += 1;
1074
+ current.hits.push(entry);
1075
+ spheres.set(sphere, current);
1076
+ };
1077
+ const walk = (path) => paths.set(id("path" /* PATH */, path), (paths.get(id("path" /* PATH */, path)) ?? 0) + 1);
1078
+ for (const card of cards) {
1079
+ if (card.kind === "major" && card.path) {
1080
+ walk(card.path.number);
1081
+ hit(card.path.from, { system: "cards", key: "majorFrom", card, path: card.path.number });
1082
+ hit(card.path.to, { system: "cards", key: "majorTo", card, path: card.path.number });
1083
+ } else if (card.kind === "minor" && card.sphere) {
1084
+ hit(card.sphere, { system: "cards", key: "pipHome", card, sphere: card.sphere, element: card.element });
1085
+ }
1086
+ }
1087
+ if (iching) {
1088
+ const states = [iching.cast, iching.transformed].filter((state) => state !== null);
1089
+ for (const state of states) {
1090
+ for (const gate of [state.kaabalah.gate.upper, state.kaabalah.gate.lower]) {
1091
+ const shared = { system: "iching", trigram: gate.trigram.id, letter: gate.letter.name, path: gate.path.number };
1092
+ walk(gate.path.number);
1093
+ hit(gate.path.from.id, { ...shared, key: "trigramFrom" });
1094
+ hit(gate.path.to.id, { ...shared, key: "trigramTo" });
1095
+ }
1096
+ }
1097
+ }
1098
+ const subconscious = cards.find((card) => card.slot === "subconscious");
1099
+ if (natal && subconscious?.kind === "minor" && subconscious.sphere && subconscious.planet) {
1100
+ const key = planetKey(subconscious.planet);
1101
+ const sign = natal.planets[key];
1102
+ if (sign) {
1103
+ const same = key !== "sun" && sign === natal.planets.sun ? "sun" : key !== "moon" && sign === natal.planets.moon ? "moon" : sign === natal.ascendant ? "ascendant" : null;
1104
+ hit(subconscious.sphere, { system: "chart", key: "pipPlanet", planet: key, sign, same, house: natal.houses?.[key] });
1105
+ }
1106
+ }
1107
+ let top = null;
1108
+ let max = 0;
1109
+ for (const id2 of TREE_ORDER) {
1110
+ const count = spheres.get(id2)?.count ?? 0;
1111
+ if (count > max) {
1112
+ max = count;
1113
+ top = id2;
1114
+ }
1115
+ }
1116
+ return { spheres, paths, top };
1117
+ }
1118
+ function rankedSpheres(weights) {
1119
+ return TREE_ORDER.filter((id2) => weights.spheres.has(id2)).map((id2) => ({ id: id2, ...weights.spheres.get(id2) })).sort((left, right) => right.count - left.count);
1120
+ }
1121
+ var hitId = (hit) => [hit.system, hit.key, hit.card?.number, hit.trigram, hit.path, hit.sphere, hit.planet, hit.sign, hit.house, hit.viaSign, hit.rulership].join("|");
1122
+ function collapseHits(hits) {
1123
+ const seen = /* @__PURE__ */ new Map();
1124
+ for (const hit of hits) {
1125
+ const id2 = hitId(hit);
1126
+ const entry = seen.get(id2);
1127
+ if (entry)
1128
+ entry.count += 1;
1129
+ else
1130
+ seen.set(id2, { hit, count: 1 });
1131
+ }
1132
+ return [...seen.values()];
1133
+ }
1134
+ var one = (hit) => ({ hit, count: 1 });
1135
+ function inWindow(month, day, window) {
1136
+ const value = month * 100 + day;
1137
+ const start = window.start.month * 100 + window.start.day;
1138
+ const end = window.end.month * 100 + window.end.day;
1139
+ return start <= end ? value >= start && value <= end : value >= start || value <= end;
1140
+ }
1141
+ function buildThreads(input, weights) {
1142
+ const { cards, iching, natal, sky, birthday } = input;
1143
+ const day = input.day ? { planets: input.day.planets, aspects: input.day.aspects, ascendant: null } : null;
1144
+ const threads = [];
1145
+ if (weights.top) {
1146
+ threads.push({
1147
+ id: "top",
1148
+ title: { kind: "top", sphere: weights.top },
1149
+ rows: collapseHits(weights.spheres.get(weights.top)?.hits ?? [])
1150
+ });
1151
+ }
1152
+ const natalPlanets = natal ? PLANET_KEYS.filter((key) => natal.planets[key]) : [];
1153
+ const conscious = cards.find((card) => card.slot === "conscious");
1154
+ const unconscious = cards.find((card) => card.slot === "unconscious");
1155
+ const subconscious = cards.find((card) => card.slot === "subconscious");
1156
+ const inSign = (chart, system, key, sign) => {
1157
+ if (!chart)
1158
+ return null;
1159
+ const planets = PLANET_KEYS.filter((planet) => chart.planets[planet] === sign);
1160
+ const ascendant = chart.ascendant === sign;
1161
+ return planets.length > 0 || ascendant ? { system, key, sign, planets, ascendant } : null;
1162
+ };
1163
+ const skyIn = (sign) => {
1164
+ const asked = inSign(sky, "sky", "skyIn", sign);
1165
+ const onDay = inSign(day, "day", "dayIn", sign);
1166
+ const same = asked && onDay && asked.planets?.join() === onDay.planets?.join();
1167
+ return [asked, same ? null : onDay].flatMap((hit) => hit ? [one(hit)] : []);
1168
+ };
1169
+ const aspectsOf = (chart, system, planet) => {
1170
+ const aspects = (chart?.aspects ?? []).filter((edge) => edge.a === planet || edge.b === planet).map((edge) => ({ other: edge.a === planet ? edge.b : edge.a, aspect: edge.aspect }));
1171
+ return aspects.length > 0 ? [{ hit: { system, key: "aspects", planet, aspects }, count: 1, detail: true }] : [];
1172
+ };
1173
+ const sameAspects = (left, right) => JSON.stringify(left[0]?.hit.aspects ?? null) === JSON.stringify(right[0]?.hit.aspects ?? null);
1174
+ const natalPlanet = (key) => natal?.planets[key] ? [
1175
+ one({ system: "chart", key: "natalPlanet", planet: key, sign: natal.planets[key], house: natal.houses?.[key] }),
1176
+ ...aspectsOf(natal, "chart", key)
1177
+ ] : [];
1178
+ const skyPlanet = (key) => {
1179
+ const askedAspects = aspectsOf(sky, "sky", key);
1180
+ const dayAspects = aspectsOf(day, "day", key);
1181
+ return [
1182
+ ...sky?.planets[key] ? [one({ system: "sky", key: "skyPlanet", planet: key, sign: sky.planets[key], house: sky.houses?.[key] })] : [],
1183
+ ...askedAspects,
1184
+ ...day?.planets[key] && day.planets[key] !== sky?.planets[key] ? [one({ system: "day", key: "dayPlanet", planet: key, sign: day.planets[key] })] : [],
1185
+ ...sameAspects(askedAspects, dayAspects) ? [] : dayAspects
1186
+ ];
1187
+ };
1188
+ let consciousPlanet = null;
1189
+ if (conscious?.kind === "major" && conscious.tag && conscious.path) {
1190
+ const { type, value } = conscious.tag;
1191
+ const shared = { system: "cards", card: conscious, path: conscious.path.number, letter: conscious.path.letter };
1192
+ let title = null;
1193
+ const rows = [];
1194
+ if (type === "sign") {
1195
+ title = { kind: "sign", value };
1196
+ rows.push(one({ ...shared, key: "majorSign", sign: value }));
1197
+ const planets = natal ? natalPlanets.filter((key) => natal.planets[key] === value) : [];
1198
+ if (planets.length > 0)
1199
+ rows.push(one({ system: "chart", key: "natalInSign", sign: value, planets }));
1200
+ rows.push(...skyIn(value));
1201
+ const selected = new Set((input.selectedHouses ?? []).filter((house) => Number.isInteger(house) && house >= 1 && house <= 12));
1202
+ const context = (hit, selectedForQuestion = false) => ({
1203
+ hit,
1204
+ count: 1,
1205
+ detail: true,
1206
+ relevance: { weight: selectedForQuestion ? 2 : 1, selectedForQuestion, requiresHumanReview: true }
1207
+ });
1208
+ const ruler = getDomicileRuler(value)?.toLowerCase();
1209
+ const houses = [];
1210
+ for (const [chart, system] of [[natal, "chart"], [sky, "sky"]]) {
1211
+ for (const [number, sign] of Object.entries(chart?.houseSigns ?? {})) {
1212
+ const house = Number(number);
1213
+ if (sign !== value || !Number.isInteger(house) || house < 1 || house > 12)
1214
+ continue;
1215
+ houses.push(context({ system, key: "signHouse", sign: value, house, planet: ruler, rulership: ruler ? "traditional" : void 0 }, selected.has(house)));
1216
+ }
1217
+ }
1218
+ houses.sort((left, right) => right.relevance.weight - left.relevance.weight);
1219
+ rows.push(...houses);
1220
+ if (ruler) {
1221
+ rows.push(context({ ...shared, key: "signRuler", sign: value, planet: ruler, rulership: "traditional" }));
1222
+ for (const card of cards) {
1223
+ const carriesRuler = card.kind === "minor" ? card.planet?.toLowerCase() === ruler : card.kind === "major" && card.tag?.type === "planet" && card.tag.value.toLowerCase() === ruler;
1224
+ if (carriesRuler)
1225
+ rows.push(context({ system: "cards", key: "rulerCard", card, sphere: card.sphere, sign: value, planet: ruler, rulership: "traditional" }));
1226
+ }
1227
+ for (const [chart, system] of [[natal, "chart"], [sky, "sky"], [day, "day"]]) {
1228
+ const sign = chart?.planets[ruler];
1229
+ if (!sign)
1230
+ continue;
1231
+ rows.push(context({
1232
+ system,
1233
+ key: "rulerPlacement",
1234
+ planet: ruler,
1235
+ sign,
1236
+ viaSign: value,
1237
+ house: chart && "houses" in chart ? chart.houses?.[ruler] : void 0,
1238
+ rulership: "traditional",
1239
+ aspects: (chart?.aspects ?? []).filter((edge) => edge.a === ruler || edge.b === ruler).map((edge) => ({ other: edge.a === ruler ? edge.b : edge.a, aspect: edge.aspect }))
1240
+ }));
1241
+ }
1242
+ }
1243
+ } else if (type === "element") {
1244
+ title = { kind: "element", value };
1245
+ rows.push(one({ ...shared, key: "majorElement", element: value }));
1246
+ const placements = natal ? natalPlanets.filter((key) => SIGN_ELEMENT[natal.planets[key]] === value).map((key) => ({ planet: key, sign: natal.planets[key] })) : [];
1247
+ if (placements.length > 0)
1248
+ rows.push(one({ system: "chart", key: "natalInElement", element: value, placements }));
1249
+ const inElement = (chart) => chart ? PLANET_KEYS.filter((key) => SIGN_ELEMENT[chart.planets[key]] === value).map((key) => ({ planet: key, sign: chart.planets[key] })) : [];
1250
+ const asked = inElement(sky);
1251
+ const onDay = inElement(day);
1252
+ if (asked.length > 0)
1253
+ rows.push(one({ system: "sky", key: "skyInElement", element: value, placements: asked }));
1254
+ if (onDay.length > 0 && JSON.stringify(asked) !== JSON.stringify(onDay)) {
1255
+ rows.push(one({ system: "day", key: "dayInElement", element: value, placements: onDay }));
1256
+ }
1257
+ } else {
1258
+ const key = planetKey(value);
1259
+ consciousPlanet = key;
1260
+ title = { kind: "planet", value: key };
1261
+ rows.push(one({ ...shared, key: "majorPlanet", planet: key }));
1262
+ if (subconscious?.kind === "minor" && subconscious.planet && planetKey(subconscious.planet) === key) {
1263
+ rows.push(one({ system: "cards", key: "pipAlsoPlanet", card: subconscious, sphere: subconscious.sphere, planet: key }));
1264
+ }
1265
+ rows.push(...natalPlanet(key), ...skyPlanet(key));
1266
+ }
1267
+ if (title && rows.some((row) => row.hit.system !== "cards" || row.relevance?.requiresHumanReview))
1268
+ threads.push({ id: "conscious", title, rows });
1269
+ }
1270
+ if (unconscious?.kind === "court" && unconscious.sign && (natal || sky || day)) {
1271
+ const sign = unconscious.sign;
1272
+ const rows = [one({ system: "cards", key: "courtSign", card: unconscious, sign, element: unconscious.element })];
1273
+ if (natal) {
1274
+ const planets = natalPlanets.filter((key) => natal.planets[key] === sign);
1275
+ const ascendant = natal.ascendant === sign;
1276
+ rows.push(
1277
+ one(
1278
+ planets.length > 0 || ascendant ? { system: "chart", key: "natalHas", sign, planets, ascendant } : { system: "chart", key: "natalNone", sign }
1279
+ )
1280
+ );
1281
+ }
1282
+ rows.push(...skyIn(sign));
1283
+ if (rows.length > 1)
1284
+ threads.push({ id: "unconscious", title: { kind: "sign", value: sign }, rows });
1285
+ }
1286
+ if (subconscious?.kind === "minor" && subconscious.planet && subconscious.sphere) {
1287
+ const key = planetKey(subconscious.planet);
1288
+ const moment = key === consciousPlanet ? [] : [...aspectsOf(natal, "chart", key), ...skyPlanet(key)];
1289
+ if (moment.length > 0) {
1290
+ threads.push({
1291
+ id: "subconscious",
1292
+ title: { kind: "planet", value: key },
1293
+ rows: [one({ system: "cards", key: "pipIsPlanet", card: subconscious, sphere: subconscious.sphere, planet: key }), ...moment]
1294
+ });
1295
+ }
1296
+ }
1297
+ if (iching && birthday) {
1298
+ const states = [iching.cast, iching.transformed].filter((state) => state !== null);
1299
+ for (const state of states) {
1300
+ const window = state.sovereign?.approximateSolarWindow;
1301
+ if (!window || !inWindow(birthday.month, birthday.day, window))
1302
+ continue;
1303
+ threads.push({
1304
+ id: `sovereign-${state.hexagram.number}`,
1305
+ title: { kind: "window", window },
1306
+ rows: [
1307
+ one({ system: "iching", key: "sovereign", hexagram: state.hexagram.number, window }),
1308
+ one({ system: "you", key: "birthday" })
1309
+ ]
1310
+ });
1311
+ }
1312
+ }
1313
+ return threads;
1314
+ }
1315
+
1316
+ // src/semantic/readingReference.json
1317
+ var readingReference_default = {
1318
+ en: {
1319
+ gloss: {
1320
+ Kether: "the idea",
1321
+ Chokhmah: "the vision",
1322
+ Binah: "the word",
1323
+ Daath: "the door",
1324
+ Chesed: "the plan",
1325
+ Geburah: "the stumbles",
1326
+ Tiphareth: "the heart",
1327
+ Netzach: "the victory built in silence",
1328
+ Hod: "the agreement",
1329
+ Yesod: "the yes or no",
1330
+ Malkuth: "the pot of gold"
1331
+ },
1332
+ rung: {
1333
+ "1": "the idea still without form",
1334
+ "2": "you already see the idea",
1335
+ "3": "you already speak of it inside",
1336
+ "4": "time to plan it on paper",
1337
+ "5": "time to look at the stumbles",
1338
+ "6": "bring it in line with what you believe",
1339
+ "7": "close to becoming real",
1340
+ "8": "time for the agreement, the contract",
1341
+ "9": "the hour of yes or no",
1342
+ "10": "it is already in matter"
1343
+ }
1344
+ },
1345
+ "pt-BR": {
1346
+ gloss: {
1347
+ Kether: "a ideia",
1348
+ Chokhmah: "a vis\xE3o",
1349
+ Binah: "a palavra",
1350
+ Daath: "a porta",
1351
+ Chesed: "o plano",
1352
+ Geburah: "os trope\xE7os",
1353
+ Tiphareth: "o cora\xE7\xE3o",
1354
+ Netzach: "a vit\xF3ria que se constr\xF3i em sil\xEAncio",
1355
+ Hod: "o acordo",
1356
+ Yesod: "o sim ou n\xE3o",
1357
+ Malkuth: "o pote de ouro"
1358
+ },
1359
+ rung: {
1360
+ "1": "a ideia ainda sem forma",
1361
+ "2": "voc\xEA j\xE1 enxerga a ideia",
1362
+ "3": "voc\xEA j\xE1 fala dela por dentro",
1363
+ "4": "hora de planejar no papel",
1364
+ "5": "hora de olhar os trope\xE7os",
1365
+ "6": "harmonizar com o que voc\xEA acredita",
1366
+ "7": "perto de virar realidade",
1367
+ "8": "hora do acordo, do contrato",
1368
+ "9": "a hora do sim ou n\xE3o",
1369
+ "10": "j\xE1 est\xE1 na mat\xE9ria"
1370
+ }
1371
+ }
1372
+ };
1373
+
1374
+ // src/semantic/reference.ts
1375
+ for (const vocabulary of Object.values(readingReference_default)) {
1376
+ Object.freeze(vocabulary.gloss);
1377
+ Object.freeze(vocabulary.rung);
1378
+ Object.freeze(vocabulary);
1379
+ }
1380
+ Object.freeze(readingReference_default);
1381
+ function getReadingReference(language) {
1382
+ return readingReference_default[language?.startsWith("pt") ? "pt-BR" : "en"];
1383
+ }
1384
+
964
1385
  // src/semantic/index.ts
965
1386
  var OCCULT_THEME_STOPWORDS = [
966
1387
  "the",
@@ -1801,6 +2222,6 @@ function getTarotThemeProfile(lookup) {
1801
2222
  return cache.byPathSlug.get(normalizeThemeText(lookup.pathSlug));
1802
2223
  }
1803
2224
 
1804
- export { OCCULT_THEME_STOPWORDS, buildKaabalisticMapData, getAngleSymbolMetadata, getAstrologyTreeMarkers, getGematriaTreeMarkers, getHouseThemeProfile, getKaabalisticCorrespondenceTargets, getNodeSymbolMetadata, getNumerologyTreeMarkers, getPlanetSymbolMetadata, getTarotThemeProfile, getZodiacSignSymbolMetadata, listAngleSymbolMetadata, listHouseThemeProfiles, listNodeSymbolMetadata, listPlanetSymbolMetadata, listTarotThemeProfiles, listZodiacSignSymbolMetadata, tokenizeOccultThemeText };
2225
+ export { OCCULT_THEME_STOPWORDS, PLANET_KEYS, TREE_ORDER, buildKaabalisticMapData, buildReadingWeights, buildThreads, collapseHits, getAngleSymbolMetadata, getAstrologyTreeMarkers, getGematriaTreeMarkers, getHouseThemeProfile, getKaabalisticCorrespondenceTargets, getNodeSymbolMetadata, getNumerologyTreeMarkers, getPlanetSymbolMetadata, getReadingReference, getTarotThemeProfile, getZodiacSignSymbolMetadata, listAngleSymbolMetadata, listHouseThemeProfiles, listNodeSymbolMetadata, listPlanetSymbolMetadata, listTarotThemeProfiles, listZodiacSignSymbolMetadata, projectChart, rankedSpheres, resolveCard, tokenizeOccultThemeText };
1805
2226
  //# sourceMappingURL=out.js.map
1806
- //# sourceMappingURL=chunk-V5KXYFHZ.mjs.map
2227
+ //# sourceMappingURL=chunk-QQN54SLY.mjs.map