kaabalah 6.12.1 → 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.
- package/README.md +18 -2
- package/dist/chunk-4PVIDUPI.js +3809 -0
- package/dist/chunk-4PVIDUPI.js.map +1 -0
- package/dist/{chunk-4XS3UZEI.js → chunk-7C7VO76O.js} +437 -7
- package/dist/chunk-7C7VO76O.js.map +1 -0
- package/dist/chunk-OZUEDZ4U.mjs +3699 -0
- package/dist/chunk-OZUEDZ4U.mjs.map +1 -0
- package/dist/{chunk-KYYS4GHH.mjs → chunk-QQN54SLY.mjs} +427 -6
- package/dist/chunk-QQN54SLY.mjs.map +1 -0
- package/dist/chunk-WA52P72D.mjs +3781 -0
- package/dist/chunk-WA52P72D.mjs.map +1 -0
- package/dist/chunk-XWVT3SI7.js +3735 -0
- package/dist/chunk-XWVT3SI7.js.map +1 -0
- package/dist/cli.js +5744 -145
- package/dist/cli.js.map +1 -1
- package/dist/{correspondence-model-JSyDWwmn.d.mts → constants-C0XjrYIG.d.mts} +1 -297
- package/dist/{correspondence-model-JSyDWwmn.d.ts → constants-C0XjrYIG.d.ts} +1 -297
- package/dist/core/index.d.mts +5 -3
- package/dist/core/index.d.ts +5 -3
- package/dist/correspondence-model-5JQwAX16.d.ts +299 -0
- package/dist/correspondence-model-QJK8AilM.d.mts +299 -0
- package/dist/{data-_b06lgY6.d.ts → data-BRi5-xg_.d.ts} +10 -2
- package/dist/{data-CdjlIcAo.d.mts → data-BoQrkrWX.d.mts} +10 -2
- package/dist/gematria/index.d.mts +2 -1
- package/dist/gematria/index.d.ts +2 -1
- package/dist/iching/index.d.mts +917 -0
- package/dist/iching/index.d.ts +917 -0
- package/dist/iching/index.js +151 -0
- package/dist/iching/index.js.map +1 -0
- package/dist/iching/index.mjs +6 -0
- package/dist/iching/index.mjs.map +1 -0
- package/dist/index.d.mts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +306 -109
- package/dist/index.mjs +3 -2
- package/dist/semantic/index.d.mts +211 -3
- package/dist/semantic/index.d.ts +211 -3
- package/dist/semantic/index.js +57 -21
- package/dist/semantic/index.mjs +2 -2
- package/dist/swisseph.node.js +0 -0
- package/dist/swisseph.web.js +0 -0
- package/dist/tarot/index.d.mts +60 -4
- package/dist/tarot/index.d.ts +60 -4
- package/dist/tarot/index.js +43 -23
- package/dist/tarot/index.mjs +1 -1
- package/dist/{topology-CH3hsIqO.d.mts → topology-C8PdKGeK.d.ts} +2 -1
- package/dist/{topology-DXYTpDvj.d.ts → topology-sytcjXkx.d.mts} +2 -1
- package/dist/visual/index.d.mts +3 -2
- package/dist/visual/index.d.ts +3 -2
- package/dist/wasm/build/swisseph.node.js +0 -0
- package/dist/wasm/build/swisseph.web.js +0 -0
- package/ephe/seas_18.se1 +0 -0
- package/ephe/semo_18.se1 +0 -0
- package/ephe/sepl_18.se1 +0 -0
- package/package.json +6 -1
- package/wasm/build/swisseph.node.js +0 -0
- package/wasm/build/swisseph.web.js +0 -0
- package/dist/chunk-4XS3UZEI.js.map +0 -1
- package/dist/chunk-GET23WEG.js +0 -2678
- package/dist/chunk-GET23WEG.js.map +0 -1
- package/dist/chunk-KYYS4GHH.mjs.map +0 -1
- package/dist/chunk-WER5UY5M.mjs +0 -2655
- package/dist/chunk-WER5UY5M.mjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunk4PVIDUPI_js = require('./chunk-4PVIDUPI.js');
|
|
3
4
|
var chunkUNXDDLZS_js = require('./chunk-UNXDDLZS.js');
|
|
4
5
|
var chunkSWWLTDR6_js = require('./chunk-SWWLTDR6.js');
|
|
5
6
|
var chunkCW6QDSMF_js = require('./chunk-CW6QDSMF.js');
|
|
6
|
-
var chunkGET23WEG_js = require('./chunk-GET23WEG.js');
|
|
7
7
|
var chunk47BAJUYW_js = require('./chunk-47BAJUYW.js');
|
|
8
8
|
var chunkQ7YAKPBH_js = require('./chunk-Q7YAKPBH.js');
|
|
9
9
|
|
|
@@ -553,8 +553,8 @@ function getKaabalisticCorrespondenceTargets(lookup) {
|
|
|
553
553
|
}
|
|
554
554
|
if (lookup.kind === "planet") {
|
|
555
555
|
const planet = normalizePlanetName(lookup.planet);
|
|
556
|
-
const
|
|
557
|
-
const planetPathTargets = (classicalPlanetPathIdsByKey().get(
|
|
556
|
+
const planetKey2 = normalizeLookupKey(planet);
|
|
557
|
+
const planetPathTargets = (classicalPlanetPathIdsByKey().get(planetKey2) ?? []).map((pathId) => ({
|
|
558
558
|
targetId: pathId,
|
|
559
559
|
targetType: "path",
|
|
560
560
|
targetName: getTargetName(pathId),
|
|
@@ -963,6 +963,427 @@ function buildKaabalisticMapData(input) {
|
|
|
963
963
|
};
|
|
964
964
|
}
|
|
965
965
|
|
|
966
|
+
// src/semantic/reading.ts
|
|
967
|
+
var TREE_ORDER = [
|
|
968
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Kether"),
|
|
969
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Chokhmah"),
|
|
970
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Binah"),
|
|
971
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Daath"),
|
|
972
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Chesed"),
|
|
973
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Geburah"),
|
|
974
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Tiphareth"),
|
|
975
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Netzach"),
|
|
976
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Hod"),
|
|
977
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Yesod"),
|
|
978
|
+
chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Malkuth")
|
|
979
|
+
];
|
|
980
|
+
var DAATH = chunkQ7YAKPBH_js.id("sphere" /* SPHERE */, "Daath");
|
|
981
|
+
var RUNGS = TREE_ORDER.filter((id2) => id2 !== DAATH);
|
|
982
|
+
var SUIT_ELEMENT = { wands: "Fire", cups: "Water", swords: "Air", pentacles: "Earth" };
|
|
983
|
+
var SIGN_ELEMENT = {
|
|
984
|
+
Aries: "Fire",
|
|
985
|
+
Leo: "Fire",
|
|
986
|
+
Sagittarius: "Fire",
|
|
987
|
+
Taurus: "Earth",
|
|
988
|
+
Virgo: "Earth",
|
|
989
|
+
Capricorn: "Earth",
|
|
990
|
+
Gemini: "Air",
|
|
991
|
+
Libra: "Air",
|
|
992
|
+
Aquarius: "Air",
|
|
993
|
+
Cancer: "Water",
|
|
994
|
+
Scorpio: "Water",
|
|
995
|
+
Pisces: "Water"
|
|
996
|
+
};
|
|
997
|
+
var PLANET_KEYS = ["sun", "moon", "mercury", "venus", "mars", "jupiter", "saturn", "uranus", "neptune", "pluto"];
|
|
998
|
+
var TAG_TYPE = { westernZodiacSign: "sign", westernElement: "element", planet: "planet" };
|
|
999
|
+
function resolveCard(cardNumber, slot) {
|
|
1000
|
+
const profile = chunk4PVIDUPI_js.getTarotCorrespondenceProfile({ tarotCardNumber: cardNumber });
|
|
1001
|
+
if (!profile)
|
|
1002
|
+
return null;
|
|
1003
|
+
const correspondences = profile.correspondences;
|
|
1004
|
+
const base = {
|
|
1005
|
+
slot: slot === "conscious" || slot === "unconscious" || slot === "subconscious" ? slot : null,
|
|
1006
|
+
number: cardNumber,
|
|
1007
|
+
name: profile.tarotCardName
|
|
1008
|
+
};
|
|
1009
|
+
if (profile.kind === "major") {
|
|
1010
|
+
const path = correspondences.path;
|
|
1011
|
+
const carried = ["westernZodiacSign", "westernElement", "planet"].map((type) => correspondences.astrology?.find((entry) => entry.type === type)).find(Boolean);
|
|
1012
|
+
return {
|
|
1013
|
+
...base,
|
|
1014
|
+
kind: "major",
|
|
1015
|
+
path: path ? { number: path.pathNumber, letter: path.hebrewLetter.label, from: path.fromSphere.id, to: path.toSphere.id } : void 0,
|
|
1016
|
+
tag: carried ? { type: TAG_TYPE[carried.type], value: carried.label } : void 0
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1019
|
+
const suit = "suit" in profile ? profile.suit : void 0;
|
|
1020
|
+
const element = suit ? SUIT_ELEMENT[suit] : void 0;
|
|
1021
|
+
if (profile.kind === "minor") {
|
|
1022
|
+
const sphere = correspondences.sphere?.id;
|
|
1023
|
+
const rank = sphere ? RUNGS.indexOf(sphere) + 1 : 0;
|
|
1024
|
+
return {
|
|
1025
|
+
...base,
|
|
1026
|
+
kind: "minor",
|
|
1027
|
+
suit,
|
|
1028
|
+
sphere,
|
|
1029
|
+
planet: correspondences.planets?.[0]?.label,
|
|
1030
|
+
rank: rank > 0 ? rank : void 0,
|
|
1031
|
+
element
|
|
1032
|
+
};
|
|
1033
|
+
}
|
|
1034
|
+
const courtRank = "courtRank" in profile ? profile.courtRank : void 0;
|
|
1035
|
+
return { ...base, kind: "court", suit, courtRank, sign: correspondences.sign?.label, element };
|
|
1036
|
+
}
|
|
1037
|
+
var MAJOR_ASPECTS = /* @__PURE__ */ new Set(["conjunction", "opposition", "square", "trine", "sextile"]);
|
|
1038
|
+
function projectChart(chart, options) {
|
|
1039
|
+
const known = new Set(PLANET_KEYS);
|
|
1040
|
+
const planets = {};
|
|
1041
|
+
const houses = {};
|
|
1042
|
+
for (const [name, planet] of Object.entries(chart.planets)) {
|
|
1043
|
+
const key = name.toLowerCase();
|
|
1044
|
+
const position = planet?.zodiacPosition;
|
|
1045
|
+
if (!known.has(key) || !position?.sign)
|
|
1046
|
+
continue;
|
|
1047
|
+
planets[key] = position.sign;
|
|
1048
|
+
if (options.houses && typeof position.house === "number")
|
|
1049
|
+
houses[key] = position.house;
|
|
1050
|
+
}
|
|
1051
|
+
const houseSigns = {};
|
|
1052
|
+
if (options.houses) {
|
|
1053
|
+
for (const [index, cusp] of (chart.houses?.houses ?? []).slice(0, 12).entries()) {
|
|
1054
|
+
if (cusp.sign)
|
|
1055
|
+
houseSigns[index + 1] = cusp.sign;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
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));
|
|
1059
|
+
return {
|
|
1060
|
+
planets,
|
|
1061
|
+
ascendant: options.houses ? chart.houses?.ascendant?.sign ?? null : null,
|
|
1062
|
+
...options.houses ? { houses } : {},
|
|
1063
|
+
...Object.keys(houseSigns).length > 0 ? { houseSigns } : {},
|
|
1064
|
+
aspects
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1067
|
+
var planetKey = (label) => label.toLowerCase();
|
|
1068
|
+
function buildReadingWeights({ cards, iching, natal }) {
|
|
1069
|
+
const spheres = /* @__PURE__ */ new Map();
|
|
1070
|
+
const paths = /* @__PURE__ */ new Map();
|
|
1071
|
+
const hit = (sphere, entry) => {
|
|
1072
|
+
if (sphere === DAATH)
|
|
1073
|
+
return;
|
|
1074
|
+
const current = spheres.get(sphere) ?? { count: 0, hits: [] };
|
|
1075
|
+
current.count += 1;
|
|
1076
|
+
current.hits.push(entry);
|
|
1077
|
+
spheres.set(sphere, current);
|
|
1078
|
+
};
|
|
1079
|
+
const walk = (path) => paths.set(chunkQ7YAKPBH_js.id("path" /* PATH */, path), (paths.get(chunkQ7YAKPBH_js.id("path" /* PATH */, path)) ?? 0) + 1);
|
|
1080
|
+
for (const card of cards) {
|
|
1081
|
+
if (card.kind === "major" && card.path) {
|
|
1082
|
+
walk(card.path.number);
|
|
1083
|
+
hit(card.path.from, { system: "cards", key: "majorFrom", card, path: card.path.number });
|
|
1084
|
+
hit(card.path.to, { system: "cards", key: "majorTo", card, path: card.path.number });
|
|
1085
|
+
} else if (card.kind === "minor" && card.sphere) {
|
|
1086
|
+
hit(card.sphere, { system: "cards", key: "pipHome", card, sphere: card.sphere, element: card.element });
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
if (iching) {
|
|
1090
|
+
const states = [iching.cast, iching.transformed].filter((state) => state !== null);
|
|
1091
|
+
for (const state of states) {
|
|
1092
|
+
for (const gate of [state.kaabalah.gate.upper, state.kaabalah.gate.lower]) {
|
|
1093
|
+
const shared = { system: "iching", trigram: gate.trigram.id, letter: gate.letter.name, path: gate.path.number };
|
|
1094
|
+
walk(gate.path.number);
|
|
1095
|
+
hit(gate.path.from.id, { ...shared, key: "trigramFrom" });
|
|
1096
|
+
hit(gate.path.to.id, { ...shared, key: "trigramTo" });
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
const subconscious = cards.find((card) => card.slot === "subconscious");
|
|
1101
|
+
if (natal && subconscious?.kind === "minor" && subconscious.sphere && subconscious.planet) {
|
|
1102
|
+
const key = planetKey(subconscious.planet);
|
|
1103
|
+
const sign = natal.planets[key];
|
|
1104
|
+
if (sign) {
|
|
1105
|
+
const same = key !== "sun" && sign === natal.planets.sun ? "sun" : key !== "moon" && sign === natal.planets.moon ? "moon" : sign === natal.ascendant ? "ascendant" : null;
|
|
1106
|
+
hit(subconscious.sphere, { system: "chart", key: "pipPlanet", planet: key, sign, same, house: natal.houses?.[key] });
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
let top = null;
|
|
1110
|
+
let max = 0;
|
|
1111
|
+
for (const id2 of TREE_ORDER) {
|
|
1112
|
+
const count = spheres.get(id2)?.count ?? 0;
|
|
1113
|
+
if (count > max) {
|
|
1114
|
+
max = count;
|
|
1115
|
+
top = id2;
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
return { spheres, paths, top };
|
|
1119
|
+
}
|
|
1120
|
+
function rankedSpheres(weights) {
|
|
1121
|
+
return TREE_ORDER.filter((id2) => weights.spheres.has(id2)).map((id2) => ({ id: id2, ...weights.spheres.get(id2) })).sort((left, right) => right.count - left.count);
|
|
1122
|
+
}
|
|
1123
|
+
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("|");
|
|
1124
|
+
function collapseHits(hits) {
|
|
1125
|
+
const seen = /* @__PURE__ */ new Map();
|
|
1126
|
+
for (const hit of hits) {
|
|
1127
|
+
const id2 = hitId(hit);
|
|
1128
|
+
const entry = seen.get(id2);
|
|
1129
|
+
if (entry)
|
|
1130
|
+
entry.count += 1;
|
|
1131
|
+
else
|
|
1132
|
+
seen.set(id2, { hit, count: 1 });
|
|
1133
|
+
}
|
|
1134
|
+
return [...seen.values()];
|
|
1135
|
+
}
|
|
1136
|
+
var one = (hit) => ({ hit, count: 1 });
|
|
1137
|
+
function inWindow(month, day, window) {
|
|
1138
|
+
const value = month * 100 + day;
|
|
1139
|
+
const start = window.start.month * 100 + window.start.day;
|
|
1140
|
+
const end = window.end.month * 100 + window.end.day;
|
|
1141
|
+
return start <= end ? value >= start && value <= end : value >= start || value <= end;
|
|
1142
|
+
}
|
|
1143
|
+
function buildThreads(input, weights) {
|
|
1144
|
+
const { cards, iching, natal, sky, birthday } = input;
|
|
1145
|
+
const day = input.day ? { planets: input.day.planets, aspects: input.day.aspects, ascendant: null } : null;
|
|
1146
|
+
const threads = [];
|
|
1147
|
+
if (weights.top) {
|
|
1148
|
+
threads.push({
|
|
1149
|
+
id: "top",
|
|
1150
|
+
title: { kind: "top", sphere: weights.top },
|
|
1151
|
+
rows: collapseHits(weights.spheres.get(weights.top)?.hits ?? [])
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1154
|
+
const natalPlanets = natal ? PLANET_KEYS.filter((key) => natal.planets[key]) : [];
|
|
1155
|
+
const conscious = cards.find((card) => card.slot === "conscious");
|
|
1156
|
+
const unconscious = cards.find((card) => card.slot === "unconscious");
|
|
1157
|
+
const subconscious = cards.find((card) => card.slot === "subconscious");
|
|
1158
|
+
const inSign = (chart, system, key, sign) => {
|
|
1159
|
+
if (!chart)
|
|
1160
|
+
return null;
|
|
1161
|
+
const planets = PLANET_KEYS.filter((planet) => chart.planets[planet] === sign);
|
|
1162
|
+
const ascendant = chart.ascendant === sign;
|
|
1163
|
+
return planets.length > 0 || ascendant ? { system, key, sign, planets, ascendant } : null;
|
|
1164
|
+
};
|
|
1165
|
+
const skyIn = (sign) => {
|
|
1166
|
+
const asked = inSign(sky, "sky", "skyIn", sign);
|
|
1167
|
+
const onDay = inSign(day, "day", "dayIn", sign);
|
|
1168
|
+
const same = asked && onDay && asked.planets?.join() === onDay.planets?.join();
|
|
1169
|
+
return [asked, same ? null : onDay].flatMap((hit) => hit ? [one(hit)] : []);
|
|
1170
|
+
};
|
|
1171
|
+
const aspectsOf = (chart, system, planet) => {
|
|
1172
|
+
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 }));
|
|
1173
|
+
return aspects.length > 0 ? [{ hit: { system, key: "aspects", planet, aspects }, count: 1, detail: true }] : [];
|
|
1174
|
+
};
|
|
1175
|
+
const sameAspects = (left, right) => JSON.stringify(left[0]?.hit.aspects ?? null) === JSON.stringify(right[0]?.hit.aspects ?? null);
|
|
1176
|
+
const natalPlanet = (key) => natal?.planets[key] ? [
|
|
1177
|
+
one({ system: "chart", key: "natalPlanet", planet: key, sign: natal.planets[key], house: natal.houses?.[key] }),
|
|
1178
|
+
...aspectsOf(natal, "chart", key)
|
|
1179
|
+
] : [];
|
|
1180
|
+
const skyPlanet = (key) => {
|
|
1181
|
+
const askedAspects = aspectsOf(sky, "sky", key);
|
|
1182
|
+
const dayAspects = aspectsOf(day, "day", key);
|
|
1183
|
+
return [
|
|
1184
|
+
...sky?.planets[key] ? [one({ system: "sky", key: "skyPlanet", planet: key, sign: sky.planets[key], house: sky.houses?.[key] })] : [],
|
|
1185
|
+
...askedAspects,
|
|
1186
|
+
...day?.planets[key] && day.planets[key] !== sky?.planets[key] ? [one({ system: "day", key: "dayPlanet", planet: key, sign: day.planets[key] })] : [],
|
|
1187
|
+
...sameAspects(askedAspects, dayAspects) ? [] : dayAspects
|
|
1188
|
+
];
|
|
1189
|
+
};
|
|
1190
|
+
let consciousPlanet = null;
|
|
1191
|
+
if (conscious?.kind === "major" && conscious.tag && conscious.path) {
|
|
1192
|
+
const { type, value } = conscious.tag;
|
|
1193
|
+
const shared = { system: "cards", card: conscious, path: conscious.path.number, letter: conscious.path.letter };
|
|
1194
|
+
let title = null;
|
|
1195
|
+
const rows = [];
|
|
1196
|
+
if (type === "sign") {
|
|
1197
|
+
title = { kind: "sign", value };
|
|
1198
|
+
rows.push(one({ ...shared, key: "majorSign", sign: value }));
|
|
1199
|
+
const planets = natal ? natalPlanets.filter((key) => natal.planets[key] === value) : [];
|
|
1200
|
+
if (planets.length > 0)
|
|
1201
|
+
rows.push(one({ system: "chart", key: "natalInSign", sign: value, planets }));
|
|
1202
|
+
rows.push(...skyIn(value));
|
|
1203
|
+
const selected = new Set((input.selectedHouses ?? []).filter((house) => Number.isInteger(house) && house >= 1 && house <= 12));
|
|
1204
|
+
const context = (hit, selectedForQuestion = false) => ({
|
|
1205
|
+
hit,
|
|
1206
|
+
count: 1,
|
|
1207
|
+
detail: true,
|
|
1208
|
+
relevance: { weight: selectedForQuestion ? 2 : 1, selectedForQuestion, requiresHumanReview: true }
|
|
1209
|
+
});
|
|
1210
|
+
const ruler = chunkSWWLTDR6_js.getDomicileRuler(value)?.toLowerCase();
|
|
1211
|
+
const houses = [];
|
|
1212
|
+
for (const [chart, system] of [[natal, "chart"], [sky, "sky"]]) {
|
|
1213
|
+
for (const [number, sign] of Object.entries(chart?.houseSigns ?? {})) {
|
|
1214
|
+
const house = Number(number);
|
|
1215
|
+
if (sign !== value || !Number.isInteger(house) || house < 1 || house > 12)
|
|
1216
|
+
continue;
|
|
1217
|
+
houses.push(context({ system, key: "signHouse", sign: value, house, planet: ruler, rulership: ruler ? "traditional" : void 0 }, selected.has(house)));
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
houses.sort((left, right) => right.relevance.weight - left.relevance.weight);
|
|
1221
|
+
rows.push(...houses);
|
|
1222
|
+
if (ruler) {
|
|
1223
|
+
rows.push(context({ ...shared, key: "signRuler", sign: value, planet: ruler, rulership: "traditional" }));
|
|
1224
|
+
for (const card of cards) {
|
|
1225
|
+
const carriesRuler = card.kind === "minor" ? card.planet?.toLowerCase() === ruler : card.kind === "major" && card.tag?.type === "planet" && card.tag.value.toLowerCase() === ruler;
|
|
1226
|
+
if (carriesRuler)
|
|
1227
|
+
rows.push(context({ system: "cards", key: "rulerCard", card, sphere: card.sphere, sign: value, planet: ruler, rulership: "traditional" }));
|
|
1228
|
+
}
|
|
1229
|
+
for (const [chart, system] of [[natal, "chart"], [sky, "sky"], [day, "day"]]) {
|
|
1230
|
+
const sign = chart?.planets[ruler];
|
|
1231
|
+
if (!sign)
|
|
1232
|
+
continue;
|
|
1233
|
+
rows.push(context({
|
|
1234
|
+
system,
|
|
1235
|
+
key: "rulerPlacement",
|
|
1236
|
+
planet: ruler,
|
|
1237
|
+
sign,
|
|
1238
|
+
viaSign: value,
|
|
1239
|
+
house: chart && "houses" in chart ? chart.houses?.[ruler] : void 0,
|
|
1240
|
+
rulership: "traditional",
|
|
1241
|
+
aspects: (chart?.aspects ?? []).filter((edge) => edge.a === ruler || edge.b === ruler).map((edge) => ({ other: edge.a === ruler ? edge.b : edge.a, aspect: edge.aspect }))
|
|
1242
|
+
}));
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
} else if (type === "element") {
|
|
1246
|
+
title = { kind: "element", value };
|
|
1247
|
+
rows.push(one({ ...shared, key: "majorElement", element: value }));
|
|
1248
|
+
const placements = natal ? natalPlanets.filter((key) => SIGN_ELEMENT[natal.planets[key]] === value).map((key) => ({ planet: key, sign: natal.planets[key] })) : [];
|
|
1249
|
+
if (placements.length > 0)
|
|
1250
|
+
rows.push(one({ system: "chart", key: "natalInElement", element: value, placements }));
|
|
1251
|
+
const inElement = (chart) => chart ? PLANET_KEYS.filter((key) => SIGN_ELEMENT[chart.planets[key]] === value).map((key) => ({ planet: key, sign: chart.planets[key] })) : [];
|
|
1252
|
+
const asked = inElement(sky);
|
|
1253
|
+
const onDay = inElement(day);
|
|
1254
|
+
if (asked.length > 0)
|
|
1255
|
+
rows.push(one({ system: "sky", key: "skyInElement", element: value, placements: asked }));
|
|
1256
|
+
if (onDay.length > 0 && JSON.stringify(asked) !== JSON.stringify(onDay)) {
|
|
1257
|
+
rows.push(one({ system: "day", key: "dayInElement", element: value, placements: onDay }));
|
|
1258
|
+
}
|
|
1259
|
+
} else {
|
|
1260
|
+
const key = planetKey(value);
|
|
1261
|
+
consciousPlanet = key;
|
|
1262
|
+
title = { kind: "planet", value: key };
|
|
1263
|
+
rows.push(one({ ...shared, key: "majorPlanet", planet: key }));
|
|
1264
|
+
if (subconscious?.kind === "minor" && subconscious.planet && planetKey(subconscious.planet) === key) {
|
|
1265
|
+
rows.push(one({ system: "cards", key: "pipAlsoPlanet", card: subconscious, sphere: subconscious.sphere, planet: key }));
|
|
1266
|
+
}
|
|
1267
|
+
rows.push(...natalPlanet(key), ...skyPlanet(key));
|
|
1268
|
+
}
|
|
1269
|
+
if (title && rows.some((row) => row.hit.system !== "cards" || row.relevance?.requiresHumanReview))
|
|
1270
|
+
threads.push({ id: "conscious", title, rows });
|
|
1271
|
+
}
|
|
1272
|
+
if (unconscious?.kind === "court" && unconscious.sign && (natal || sky || day)) {
|
|
1273
|
+
const sign = unconscious.sign;
|
|
1274
|
+
const rows = [one({ system: "cards", key: "courtSign", card: unconscious, sign, element: unconscious.element })];
|
|
1275
|
+
if (natal) {
|
|
1276
|
+
const planets = natalPlanets.filter((key) => natal.planets[key] === sign);
|
|
1277
|
+
const ascendant = natal.ascendant === sign;
|
|
1278
|
+
rows.push(
|
|
1279
|
+
one(
|
|
1280
|
+
planets.length > 0 || ascendant ? { system: "chart", key: "natalHas", sign, planets, ascendant } : { system: "chart", key: "natalNone", sign }
|
|
1281
|
+
)
|
|
1282
|
+
);
|
|
1283
|
+
}
|
|
1284
|
+
rows.push(...skyIn(sign));
|
|
1285
|
+
if (rows.length > 1)
|
|
1286
|
+
threads.push({ id: "unconscious", title: { kind: "sign", value: sign }, rows });
|
|
1287
|
+
}
|
|
1288
|
+
if (subconscious?.kind === "minor" && subconscious.planet && subconscious.sphere) {
|
|
1289
|
+
const key = planetKey(subconscious.planet);
|
|
1290
|
+
const moment = key === consciousPlanet ? [] : [...aspectsOf(natal, "chart", key), ...skyPlanet(key)];
|
|
1291
|
+
if (moment.length > 0) {
|
|
1292
|
+
threads.push({
|
|
1293
|
+
id: "subconscious",
|
|
1294
|
+
title: { kind: "planet", value: key },
|
|
1295
|
+
rows: [one({ system: "cards", key: "pipIsPlanet", card: subconscious, sphere: subconscious.sphere, planet: key }), ...moment]
|
|
1296
|
+
});
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
if (iching && birthday) {
|
|
1300
|
+
const states = [iching.cast, iching.transformed].filter((state) => state !== null);
|
|
1301
|
+
for (const state of states) {
|
|
1302
|
+
const window = state.sovereign?.approximateSolarWindow;
|
|
1303
|
+
if (!window || !inWindow(birthday.month, birthday.day, window))
|
|
1304
|
+
continue;
|
|
1305
|
+
threads.push({
|
|
1306
|
+
id: `sovereign-${state.hexagram.number}`,
|
|
1307
|
+
title: { kind: "window", window },
|
|
1308
|
+
rows: [
|
|
1309
|
+
one({ system: "iching", key: "sovereign", hexagram: state.hexagram.number, window }),
|
|
1310
|
+
one({ system: "you", key: "birthday" })
|
|
1311
|
+
]
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
return threads;
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
// src/semantic/readingReference.json
|
|
1319
|
+
var readingReference_default = {
|
|
1320
|
+
en: {
|
|
1321
|
+
gloss: {
|
|
1322
|
+
Kether: "the idea",
|
|
1323
|
+
Chokhmah: "the vision",
|
|
1324
|
+
Binah: "the word",
|
|
1325
|
+
Daath: "the door",
|
|
1326
|
+
Chesed: "the plan",
|
|
1327
|
+
Geburah: "the stumbles",
|
|
1328
|
+
Tiphareth: "the heart",
|
|
1329
|
+
Netzach: "the victory built in silence",
|
|
1330
|
+
Hod: "the agreement",
|
|
1331
|
+
Yesod: "the yes or no",
|
|
1332
|
+
Malkuth: "the pot of gold"
|
|
1333
|
+
},
|
|
1334
|
+
rung: {
|
|
1335
|
+
"1": "the idea still without form",
|
|
1336
|
+
"2": "you already see the idea",
|
|
1337
|
+
"3": "you already speak of it inside",
|
|
1338
|
+
"4": "time to plan it on paper",
|
|
1339
|
+
"5": "time to look at the stumbles",
|
|
1340
|
+
"6": "bring it in line with what you believe",
|
|
1341
|
+
"7": "close to becoming real",
|
|
1342
|
+
"8": "time for the agreement, the contract",
|
|
1343
|
+
"9": "the hour of yes or no",
|
|
1344
|
+
"10": "it is already in matter"
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
"pt-BR": {
|
|
1348
|
+
gloss: {
|
|
1349
|
+
Kether: "a ideia",
|
|
1350
|
+
Chokhmah: "a vis\xE3o",
|
|
1351
|
+
Binah: "a palavra",
|
|
1352
|
+
Daath: "a porta",
|
|
1353
|
+
Chesed: "o plano",
|
|
1354
|
+
Geburah: "os trope\xE7os",
|
|
1355
|
+
Tiphareth: "o cora\xE7\xE3o",
|
|
1356
|
+
Netzach: "a vit\xF3ria que se constr\xF3i em sil\xEAncio",
|
|
1357
|
+
Hod: "o acordo",
|
|
1358
|
+
Yesod: "o sim ou n\xE3o",
|
|
1359
|
+
Malkuth: "o pote de ouro"
|
|
1360
|
+
},
|
|
1361
|
+
rung: {
|
|
1362
|
+
"1": "a ideia ainda sem forma",
|
|
1363
|
+
"2": "voc\xEA j\xE1 enxerga a ideia",
|
|
1364
|
+
"3": "voc\xEA j\xE1 fala dela por dentro",
|
|
1365
|
+
"4": "hora de planejar no papel",
|
|
1366
|
+
"5": "hora de olhar os trope\xE7os",
|
|
1367
|
+
"6": "harmonizar com o que voc\xEA acredita",
|
|
1368
|
+
"7": "perto de virar realidade",
|
|
1369
|
+
"8": "hora do acordo, do contrato",
|
|
1370
|
+
"9": "a hora do sim ou n\xE3o",
|
|
1371
|
+
"10": "j\xE1 est\xE1 na mat\xE9ria"
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
};
|
|
1375
|
+
|
|
1376
|
+
// src/semantic/reference.ts
|
|
1377
|
+
for (const vocabulary of Object.values(readingReference_default)) {
|
|
1378
|
+
Object.freeze(vocabulary.gloss);
|
|
1379
|
+
Object.freeze(vocabulary.rung);
|
|
1380
|
+
Object.freeze(vocabulary);
|
|
1381
|
+
}
|
|
1382
|
+
Object.freeze(readingReference_default);
|
|
1383
|
+
function getReadingReference(language) {
|
|
1384
|
+
return readingReference_default[language?.startsWith("pt") ? "pt-BR" : "en"];
|
|
1385
|
+
}
|
|
1386
|
+
|
|
966
1387
|
// src/semantic/index.ts
|
|
967
1388
|
var OCCULT_THEME_STOPWORDS = [
|
|
968
1389
|
"the",
|
|
@@ -1639,7 +2060,7 @@ function buildTarotThemeProfile(card) {
|
|
|
1639
2060
|
if (!cardNode) {
|
|
1640
2061
|
throw new Error(`Missing canonical tarot node for ${cardId}.`);
|
|
1641
2062
|
}
|
|
1642
|
-
const majorArchetypeData = card.type === "major" ?
|
|
2063
|
+
const majorArchetypeData = card.type === "major" ? chunk4PVIDUPI_js.getTarotArchetype({ tarotCardNumber: card.number }) : void 0;
|
|
1643
2064
|
const majorArchetype = majorArchetypeData ? {
|
|
1644
2065
|
pathId: majorArchetypeData.pathId,
|
|
1645
2066
|
pathNumber: majorArchetypeData.pathNumber,
|
|
@@ -1707,7 +2128,7 @@ function getTarotThemeProfileCache() {
|
|
|
1707
2128
|
if (tarotThemeProfilesCache) {
|
|
1708
2129
|
return tarotThemeProfilesCache;
|
|
1709
2130
|
}
|
|
1710
|
-
const profiles = Object.freeze(
|
|
2131
|
+
const profiles = Object.freeze(chunk4PVIDUPI_js.ARKANNUS.map((card) => buildTarotThemeProfile(card)));
|
|
1711
2132
|
tarotThemeProfilesCache = {
|
|
1712
2133
|
profiles,
|
|
1713
2134
|
byId: new Map(profiles.map((profile) => [profile.id, profile])),
|
|
@@ -1778,7 +2199,7 @@ function getTarotThemeProfile(lookup) {
|
|
|
1778
2199
|
return cache.byId.get(lookup);
|
|
1779
2200
|
}
|
|
1780
2201
|
if (lookup.startsWith(`${"path" /* PATH */}:`)) {
|
|
1781
|
-
const archetype =
|
|
2202
|
+
const archetype = chunk4PVIDUPI_js.getTarotArchetype({
|
|
1782
2203
|
pathId: lookup
|
|
1783
2204
|
});
|
|
1784
2205
|
return archetype ? cache.byCardNumber.get(archetype.tarotCardNumber) : void 0;
|
|
@@ -1804,7 +2225,12 @@ function getTarotThemeProfile(lookup) {
|
|
|
1804
2225
|
}
|
|
1805
2226
|
|
|
1806
2227
|
exports.OCCULT_THEME_STOPWORDS = OCCULT_THEME_STOPWORDS;
|
|
2228
|
+
exports.PLANET_KEYS = PLANET_KEYS;
|
|
2229
|
+
exports.TREE_ORDER = TREE_ORDER;
|
|
1807
2230
|
exports.buildKaabalisticMapData = buildKaabalisticMapData;
|
|
2231
|
+
exports.buildReadingWeights = buildReadingWeights;
|
|
2232
|
+
exports.buildThreads = buildThreads;
|
|
2233
|
+
exports.collapseHits = collapseHits;
|
|
1808
2234
|
exports.getAngleSymbolMetadata = getAngleSymbolMetadata;
|
|
1809
2235
|
exports.getAstrologyTreeMarkers = getAstrologyTreeMarkers;
|
|
1810
2236
|
exports.getGematriaTreeMarkers = getGematriaTreeMarkers;
|
|
@@ -1813,6 +2239,7 @@ exports.getKaabalisticCorrespondenceTargets = getKaabalisticCorrespondenceTarget
|
|
|
1813
2239
|
exports.getNodeSymbolMetadata = getNodeSymbolMetadata;
|
|
1814
2240
|
exports.getNumerologyTreeMarkers = getNumerologyTreeMarkers;
|
|
1815
2241
|
exports.getPlanetSymbolMetadata = getPlanetSymbolMetadata;
|
|
2242
|
+
exports.getReadingReference = getReadingReference;
|
|
1816
2243
|
exports.getTarotThemeProfile = getTarotThemeProfile;
|
|
1817
2244
|
exports.getZodiacSignSymbolMetadata = getZodiacSignSymbolMetadata;
|
|
1818
2245
|
exports.listAngleSymbolMetadata = listAngleSymbolMetadata;
|
|
@@ -1821,6 +2248,9 @@ exports.listNodeSymbolMetadata = listNodeSymbolMetadata;
|
|
|
1821
2248
|
exports.listPlanetSymbolMetadata = listPlanetSymbolMetadata;
|
|
1822
2249
|
exports.listTarotThemeProfiles = listTarotThemeProfiles;
|
|
1823
2250
|
exports.listZodiacSignSymbolMetadata = listZodiacSignSymbolMetadata;
|
|
2251
|
+
exports.projectChart = projectChart;
|
|
2252
|
+
exports.rankedSpheres = rankedSpheres;
|
|
2253
|
+
exports.resolveCard = resolveCard;
|
|
1824
2254
|
exports.tokenizeOccultThemeText = tokenizeOccultThemeText;
|
|
1825
2255
|
//# sourceMappingURL=out.js.map
|
|
1826
|
-
//# sourceMappingURL=chunk-
|
|
2256
|
+
//# sourceMappingURL=chunk-7C7VO76O.js.map
|