kaabalah 5.6.0 → 6.1.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 (70) hide show
  1. package/README.md +72 -0
  2. package/dist/astrology/index.d.mts +16 -1
  3. package/dist/astrology/index.d.ts +16 -1
  4. package/dist/astrology/index.js +55 -51
  5. package/dist/astrology/index.mjs +1 -1
  6. package/dist/{chunk-HGEWHDIX.js → chunk-3JSPGVX3.js} +176 -10
  7. package/dist/chunk-3JSPGVX3.js.map +1 -0
  8. package/dist/{chunk-3SFBJHP2.mjs → chunk-G76K6OVQ.mjs} +3 -3
  9. package/dist/{chunk-3SFBJHP2.mjs.map → chunk-G76K6OVQ.mjs.map} +1 -1
  10. package/dist/{chunk-U3JFWP24.mjs → chunk-GJB3CZPN.mjs} +1080 -5
  11. package/dist/chunk-GJB3CZPN.mjs.map +1 -0
  12. package/dist/{chunk-3HYK4Q4B.js → chunk-HAMDOCS5.js} +273 -2
  13. package/dist/chunk-HAMDOCS5.js.map +1 -0
  14. package/dist/chunk-JL7CWPRG.js +850 -0
  15. package/dist/chunk-JL7CWPRG.js.map +1 -0
  16. package/dist/chunk-L6M533N6.mjs +843 -0
  17. package/dist/chunk-L6M533N6.mjs.map +1 -0
  18. package/dist/{chunk-4NMXTZX4.mjs → chunk-NBP75BAH.mjs} +3 -3
  19. package/dist/{chunk-4NMXTZX4.mjs.map → chunk-NBP75BAH.mjs.map} +1 -1
  20. package/dist/{chunk-OGWTKRJK.js → chunk-NPCXF6RV.js} +1089 -10
  21. package/dist/chunk-NPCXF6RV.js.map +1 -0
  22. package/dist/{chunk-EVQ432JA.js → chunk-O3ZBG566.js} +23 -23
  23. package/dist/{chunk-EVQ432JA.js.map → chunk-O3ZBG566.js.map} +1 -1
  24. package/dist/{chunk-IHQPXEB7.mjs → chunk-RZBVUDBM.mjs} +273 -2
  25. package/dist/chunk-RZBVUDBM.mjs.map +1 -0
  26. package/dist/{chunk-S6BFRUJQ.mjs → chunk-S4EJ3ZY7.mjs} +3 -3
  27. package/dist/{chunk-S6BFRUJQ.mjs.map → chunk-S4EJ3ZY7.mjs.map} +1 -1
  28. package/dist/{chunk-XB6PXEKO.js → chunk-TMN4PYVG.js} +9 -9
  29. package/dist/{chunk-XB6PXEKO.js.map → chunk-TMN4PYVG.js.map} +1 -1
  30. package/dist/{chunk-T6Y4DLMA.mjs → chunk-TZJU6SRX.mjs} +176 -11
  31. package/dist/chunk-TZJU6SRX.mjs.map +1 -0
  32. package/dist/{chunk-XTVGQXCL.js → chunk-Y4PTMABP.js} +4 -4
  33. package/dist/{chunk-XTVGQXCL.js.map → chunk-Y4PTMABP.js.map} +1 -1
  34. package/dist/cli.js +1213 -52
  35. package/dist/cli.js.map +1 -1
  36. package/dist/{constants-DbFwuCjR.d.mts → constants-C0XjrYIG.d.mts} +2 -0
  37. package/dist/{constants-DbFwuCjR.d.ts → constants-C0XjrYIG.d.ts} +2 -0
  38. package/dist/core/index.d.mts +4 -4
  39. package/dist/core/index.d.ts +4 -4
  40. package/dist/core/index.js +43 -43
  41. package/dist/core/index.mjs +2 -2
  42. package/dist/{correspondence-model-D8c42J4c.d.mts → correspondence-model-BrtIu5tW.d.mts} +1 -1
  43. package/dist/{correspondence-model-DhmBYoMf.d.ts → correspondence-model-CpFOWeBr.d.ts} +1 -1
  44. package/dist/gematria/index.d.mts +2 -2
  45. package/dist/gematria/index.d.ts +2 -2
  46. package/dist/gematria/index.js +5 -5
  47. package/dist/gematria/index.mjs +2 -2
  48. package/dist/index.d.mts +5 -4
  49. package/dist/index.d.ts +5 -4
  50. package/dist/index.js +169 -124
  51. package/dist/index.mjs +7 -6
  52. package/dist/numerology/index.js +18 -18
  53. package/dist/numerology/index.mjs +3 -3
  54. package/dist/semantic/index.d.mts +83 -0
  55. package/dist/semantic/index.d.ts +83 -0
  56. package/dist/semantic/index.js +36 -0
  57. package/dist/semantic/index.js.map +1 -0
  58. package/dist/semantic/index.mjs +7 -0
  59. package/dist/semantic/index.mjs.map +1 -0
  60. package/dist/tarot/index.d.mts +95 -2
  61. package/dist/tarot/index.d.ts +95 -2
  62. package/dist/tarot/index.js +28 -12
  63. package/dist/tarot/index.mjs +3 -3
  64. package/package.json +6 -1
  65. package/dist/chunk-3HYK4Q4B.js.map +0 -1
  66. package/dist/chunk-HGEWHDIX.js.map +0 -1
  67. package/dist/chunk-IHQPXEB7.mjs.map +0 -1
  68. package/dist/chunk-OGWTKRJK.js.map +0 -1
  69. package/dist/chunk-T6Y4DLMA.mjs.map +0 -1
  70. package/dist/chunk-U3JFWP24.mjs.map +0 -1
package/dist/cli.js CHANGED
@@ -7053,8 +7053,164 @@ __export(swisseph_exports, {
7053
7053
  inspectVirtualEphemerisPath: () => inspectVirtualEphemerisPath,
7054
7054
  normalizeAngle: () => normalizeAngle,
7055
7055
  resolveNodeEphemerisPath: () => resolveNodeEphemerisPath,
7056
+ resolveSwissEphRuntimeAssets: () => resolveSwissEphRuntimeAssets,
7056
7057
  toUtcDate: () => toUtcDate
7057
7058
  });
7059
+ function emitRuntimeNotice(message) {
7060
+ if (typeof process !== "undefined" && process.stderr && typeof process.stderr.write === "function") {
7061
+ process.stderr.write(`${message}
7062
+ `);
7063
+ return;
7064
+ }
7065
+ console.info(message);
7066
+ }
7067
+ function getRuntimeEnv(env) {
7068
+ if (env) {
7069
+ return env;
7070
+ }
7071
+ if (typeof process !== "undefined" && process.env) {
7072
+ return process.env;
7073
+ }
7074
+ return {};
7075
+ }
7076
+ function firstDefinedEnvValue(env, keys) {
7077
+ for (const key of keys) {
7078
+ const value = env[key];
7079
+ if (typeof value === "string" && value.length > 0) {
7080
+ return value;
7081
+ }
7082
+ }
7083
+ return void 0;
7084
+ }
7085
+ function getBundledNodeSwissEphAssets(options) {
7086
+ if (options.bundledNodeWasmPath && options.bundledNodeEphePath) {
7087
+ return {
7088
+ wasmPaths: [options.bundledNodeWasmPath],
7089
+ ephePaths: [options.bundledNodeEphePath]
7090
+ };
7091
+ }
7092
+ const resolvePath = options.nodePathResolve ?? ((...paths) => require("path").resolve(...paths));
7093
+ return {
7094
+ wasmPaths: [
7095
+ options.bundledNodeWasmPath,
7096
+ resolvePath(__dirname, swisseph_node_default),
7097
+ resolvePath(__dirname, "../../wasm/build/swisseph.node.wasm"),
7098
+ resolvePath(__dirname, "../wasm/build/swisseph.node.wasm")
7099
+ ].filter((value) => typeof value === "string"),
7100
+ ephePaths: [
7101
+ options.bundledNodeEphePath,
7102
+ resolvePath(__dirname, "../../ephe"),
7103
+ resolvePath(__dirname, "../ephe")
7104
+ ].filter((value) => typeof value === "string")
7105
+ };
7106
+ }
7107
+ function getBundledBrowserSwissEphAssets(options) {
7108
+ return {
7109
+ wasmPath: options.bundledBrowserWasmPath ?? swisseph_web_default,
7110
+ ephePath: options.bundledBrowserEphePath ?? "../ephe"
7111
+ };
7112
+ }
7113
+ function formatCandidatePaths(paths) {
7114
+ return paths.length > 0 ? paths.join(", ") : "(none)";
7115
+ }
7116
+ function resolveBundledRuntimeAssetPath(label, bundledPaths, existsSync2) {
7117
+ for (const bundledPath of bundledPaths) {
7118
+ if (existsSync2(bundledPath)) {
7119
+ return {
7120
+ path: bundledPath,
7121
+ source: "bundled"
7122
+ };
7123
+ }
7124
+ }
7125
+ throw new Error(
7126
+ `Unable to resolve Swiss Ephemeris ${label}. Bundled paths checked: ${formatCandidatePaths(
7127
+ bundledPaths
7128
+ )}.`
7129
+ );
7130
+ }
7131
+ function resolveRuntimeAssetPath(label, explicitPath, envPath, candidatePaths, bundledPaths, existsSync2) {
7132
+ if (explicitPath) {
7133
+ if (!existsSync2(explicitPath)) {
7134
+ throw new Error(
7135
+ `Swiss Ephemeris ${label} override does not exist: "${explicitPath}".`
7136
+ );
7137
+ }
7138
+ return {
7139
+ path: explicitPath,
7140
+ source: "explicit"
7141
+ };
7142
+ }
7143
+ if (envPath) {
7144
+ if (!existsSync2(envPath)) {
7145
+ throw new Error(
7146
+ `Swiss Ephemeris ${label} from environment does not exist: "${envPath}".`
7147
+ );
7148
+ }
7149
+ return {
7150
+ path: envPath,
7151
+ source: "env"
7152
+ };
7153
+ }
7154
+ for (const candidatePath of candidatePaths) {
7155
+ if (existsSync2(candidatePath)) {
7156
+ return {
7157
+ path: candidatePath,
7158
+ source: "candidate"
7159
+ };
7160
+ }
7161
+ }
7162
+ try {
7163
+ return resolveBundledRuntimeAssetPath(label, bundledPaths, existsSync2);
7164
+ } catch (error) {
7165
+ throw new Error(
7166
+ `Unable to resolve Swiss Ephemeris ${label}. Checked candidate paths: ${formatCandidatePaths(
7167
+ candidatePaths
7168
+ )}. ${toError(error).message}`
7169
+ );
7170
+ }
7171
+ }
7172
+ function resolveSwissEphRuntimeAssetsInternal(options = {}) {
7173
+ const isBrowser = options.isBrowser ?? typeof window !== "undefined";
7174
+ if (isBrowser) {
7175
+ const bundledAssets2 = getBundledBrowserSwissEphAssets(options);
7176
+ return {
7177
+ wasmPath: options.wasmPath ?? bundledAssets2.wasmPath,
7178
+ ephePath: options.ephePath ?? bundledAssets2.ephePath,
7179
+ wasmPathSource: options.wasmPath ? "explicit" : "bundled",
7180
+ ephePathSource: options.ephePath ? "explicit" : "bundled"
7181
+ };
7182
+ }
7183
+ const env = getRuntimeEnv(options.env);
7184
+ const existsSync2 = options.existsSync ?? ((path) => require("fs").existsSync(path));
7185
+ const bundledAssets = getBundledNodeSwissEphAssets(options);
7186
+ const envWasmPath = firstDefinedEnvValue(env, SWISS_EPH_RUNTIME_WASM_ENV_KEYS);
7187
+ const envEphePath = firstDefinedEnvValue(env, SWISS_EPH_RUNTIME_EPHE_ENV_KEYS);
7188
+ const resolvedWasm = resolveRuntimeAssetPath(
7189
+ "wasmPath",
7190
+ options.wasmPath,
7191
+ envWasmPath,
7192
+ options.wasmPathCandidates ?? [],
7193
+ bundledAssets.wasmPaths,
7194
+ existsSync2
7195
+ );
7196
+ const resolvedEphe = resolveRuntimeAssetPath(
7197
+ "ephePath",
7198
+ options.ephePath,
7199
+ envEphePath,
7200
+ options.ephePathCandidates ?? [],
7201
+ bundledAssets.ephePaths,
7202
+ existsSync2
7203
+ );
7204
+ return {
7205
+ wasmPath: resolvedWasm.path,
7206
+ ephePath: resolvedEphe.path,
7207
+ wasmPathSource: resolvedWasm.source,
7208
+ ephePathSource: resolvedEphe.source
7209
+ };
7210
+ }
7211
+ function resolveSwissEphRuntimeAssets(options = {}) {
7212
+ return resolveSwissEphRuntimeAssetsInternal(options);
7213
+ }
7058
7214
  function normalizeVirtualPath(path) {
7059
7215
  if (path === "/") {
7060
7216
  return path;
@@ -7228,15 +7384,17 @@ async function getSwissEph(options = {}) {
7228
7384
  }
7229
7385
  try {
7230
7386
  const isBrowser = typeof window !== "undefined";
7231
- const wasmUrl = isBrowser ? swisseph_web_default : swisseph_node_default;
7232
- const finalWasmPath = options.wasmPath || (isBrowser ? wasmUrl : require("path").resolve(__dirname, wasmUrl));
7387
+ const runtimeAssets = resolveSwissEphRuntimeAssets({
7388
+ wasmPath: options.wasmPath,
7389
+ ephePath: options.ephePath
7390
+ });
7391
+ const finalWasmPath = runtimeAssets.wasmPath;
7233
7392
  const moduleFactory = isBrowser ? (await Promise.resolve().then(() => __toESM(require_swisseph_web()))).default : (await Promise.resolve().then(() => __toESM(require_swisseph_node()))).default;
7234
7393
  const module2 = await moduleFactory({
7235
7394
  locateFile: () => finalWasmPath
7236
7395
  });
7237
7396
  const instance = new SwissEph(module2);
7238
- const defaultEphePath = isBrowser ? "../ephe" : require("path").resolve(__dirname, "../ephe");
7239
- const finalEphePath = options.ephePath || defaultEphePath;
7397
+ const finalEphePath = runtimeAssets.ephePath;
7240
7398
  if (isBrowser) {
7241
7399
  const epheFsPath = "/ephe";
7242
7400
  try {
@@ -7264,16 +7422,16 @@ async function getSwissEph(options = {}) {
7264
7422
  `Failed to materialize browser ephemeris files at "${epheFsPath}". Missing: ${browserCheck.missingFiles.join(", ")}.`
7265
7423
  );
7266
7424
  }
7267
- console.info(`Setting ephemeris path to: ${epheFsPath}`);
7425
+ emitRuntimeNotice(`Setting ephemeris path to: ${epheFsPath}`);
7268
7426
  instance.setEphemerisPath(epheFsPath);
7269
7427
  } else {
7270
7428
  const resolution = resolveNodeEphemerisPath(module2, finalEphePath);
7271
7429
  if (resolution.strategy === "nodefs-mount") {
7272
- console.info(`Setting ephemeris path to: ${resolution.path} (mounted from ${finalEphePath})`);
7430
+ emitRuntimeNotice(`Setting ephemeris path to: ${resolution.path} (mounted from ${finalEphePath})`);
7273
7431
  } else if (resolution.strategy === "memfs-copy") {
7274
- console.info(`Setting ephemeris path to: ${resolution.path} (copied from ${finalEphePath})`);
7432
+ emitRuntimeNotice(`Setting ephemeris path to: ${resolution.path} (copied from ${finalEphePath})`);
7275
7433
  } else {
7276
- console.info(`Setting ephemeris path to: ${resolution.path}`);
7434
+ emitRuntimeNotice(`Setting ephemeris path to: ${resolution.path}`);
7277
7435
  }
7278
7436
  instance.setEphemerisPath(resolution.path);
7279
7437
  }
@@ -7495,7 +7653,7 @@ async function localToUtcDate(local, latitude, longitude, opts = {}) {
7495
7653
  async function toUtcDate(local, latitude, longitude, options = {}) {
7496
7654
  return localToUtcDate(local, latitude, longitude, options);
7497
7655
  }
7498
- var swissEph, DEFAULT_FLAGS, REQUIRED_EPHE_FILES, NODE_EPHE_MOUNT_POINT, NODE_EPHE_MEMFS_PATH;
7656
+ var swissEph, DEFAULT_FLAGS, REQUIRED_EPHE_FILES, NODE_EPHE_MOUNT_POINT, NODE_EPHE_MEMFS_PATH, SWISS_EPH_RUNTIME_WASM_ENV_KEYS, SWISS_EPH_RUNTIME_EPHE_ENV_KEYS;
7499
7657
  var init_swisseph2 = __esm({
7500
7658
  "src/astrology/swisseph.ts"() {
7501
7659
  "use strict";
@@ -7507,6 +7665,14 @@ var init_swisseph2 = __esm({
7507
7665
  REQUIRED_EPHE_FILES = ["seas_18.se1", "semo_18.se1", "sepl_18.se1"];
7508
7666
  NODE_EPHE_MOUNT_POINT = "/ephefs";
7509
7667
  NODE_EPHE_MEMFS_PATH = "/ephemem";
7668
+ SWISS_EPH_RUNTIME_WASM_ENV_KEYS = [
7669
+ "KAABALAH_SWISSEPH_WASM_PATH",
7670
+ "KAABALAH_WASM_PATH"
7671
+ ];
7672
+ SWISS_EPH_RUNTIME_EPHE_ENV_KEYS = [
7673
+ "KAABALAH_SWISSEPH_EPHE_PATH",
7674
+ "KAABALAH_EPHE_PATH"
7675
+ ];
7510
7676
  }
7511
7677
  });
7512
7678
 
@@ -8192,6 +8358,7 @@ __export(astrology_exports, {
8192
8358
  getZodiacPosition: () => getZodiacPosition,
8193
8359
  normalizeAngle: () => normalizeAngle,
8194
8360
  queryAstrocartographyLocation: () => queryAstrocartographyLocation,
8361
+ resolveSwissEphRuntimeAssets: () => resolveSwissEphRuntimeAssets,
8195
8362
  shorterArcMidpoint: () => shorterArcMidpoint
8196
8363
  });
8197
8364
  function validateInputs(options) {
@@ -8735,7 +8902,7 @@ var import_config3 = require("dotenv/config");
8735
8902
  // package.json
8736
8903
  var package_default = {
8737
8904
  name: "kaabalah",
8738
- version: "5.6.0",
8905
+ version: "6.1.0",
8739
8906
  description: "The de-facto library for any esoteric calculations and tooling",
8740
8907
  engines: {
8741
8908
  node: ">=18.18.0"
@@ -8793,6 +8960,11 @@ var package_default = {
8793
8960
  types: "./dist/ifa/index.d.ts",
8794
8961
  require: "./dist/ifa/index.js",
8795
8962
  import: "./dist/ifa/index.mjs"
8963
+ },
8964
+ "./semantic": {
8965
+ types: "./dist/semantic/index.d.ts",
8966
+ require: "./dist/semantic/index.js",
8967
+ import: "./dist/semantic/index.mjs"
8796
8968
  }
8797
8969
  },
8798
8970
  files: [
@@ -9015,6 +9187,8 @@ var COMMANDS = [
9015
9187
  { name: "location", type: "string", description: "Location string for geocoding (requires GOOGLE_MAPS_API_KEY or KAABALAH_GOOGLE_MAPS_API_KEY)" },
9016
9188
  { name: "house-system", type: "string", default: "placidus", description: "House system: placidus, koch, porphyrius, regiomontanus, campanus, equal, whole-sign, meridian, morinus, krusinski, alcabitius" },
9017
9189
  { name: "timezone", type: "string", description: "IANA timezone string (e.g. America/New_York). Auto-resolved from coordinates if omitted" },
9190
+ { name: "max-orb", type: "number", description: "Maximum orb in degrees to include in the returned aspects array" },
9191
+ { name: "aspect-types", type: "string", description: "Comma-separated aspect names, or 'major' for conjunction,sextile,square,trine,opposition" },
9018
9192
  { name: "wasm-path", type: "string", description: "Override the Swiss Ephemeris WASM runtime path" },
9019
9193
  { name: "ephe-path", type: "string", description: "Override the ephemeris data directory path" }
9020
9194
  ],
@@ -9031,6 +9205,8 @@ var COMMANDS = [
9031
9205
  flags: [
9032
9206
  { name: "house-system", type: "string", default: "placidus", description: "House system for both charts" },
9033
9207
  { name: "timezone", type: "string", description: "Default timezone for both charts when omitted in chartA/chartB" },
9208
+ { name: "max-orb", type: "number", description: "Maximum orb in degrees to include in the returned aspect arrays" },
9209
+ { name: "aspect-types", type: "string", description: "Comma-separated aspect names, or 'major' for conjunction,sextile,square,trine,opposition" },
9034
9210
  { name: "wasm-path", type: "string", description: "Override the Swiss Ephemeris WASM runtime path" },
9035
9211
  { name: "ephe-path", type: "string", description: "Override the ephemeris data directory path" }
9036
9212
  ],
@@ -9045,6 +9221,8 @@ var COMMANDS = [
9045
9221
  flags: [
9046
9222
  { name: "house-system", type: "string", default: "placidus", description: "House system for both charts" },
9047
9223
  { name: "timezone", type: "string", description: "Default timezone for both charts when omitted in chartA/chartB" },
9224
+ { name: "max-orb", type: "number", description: "Maximum orb in degrees to include in the returned aspect arrays" },
9225
+ { name: "aspect-types", type: "string", description: "Comma-separated aspect names, or 'major' for conjunction,sextile,square,trine,opposition" },
9048
9226
  { name: "wasm-path", type: "string", description: "Override the Swiss Ephemeris WASM runtime path" },
9049
9227
  { name: "ephe-path", type: "string", description: "Override the ephemeris data directory path" }
9050
9228
  ],
@@ -9072,6 +9250,7 @@ var COMMANDS = [
9072
9250
  { name: "transit-timezone", type: "string", description: "Transit IANA timezone (default: natal timezone)" },
9073
9251
  { name: "max-orb", type: "number", description: "Maximum orb in degrees to include" },
9074
9252
  { name: "aspects", type: "string", description: "Comma-separated aspect names, or 'major' for conjunction,sextile,square,trine,opposition" },
9253
+ { name: "aspect-types", type: "string", description: "Alias for --aspects" },
9075
9254
  { name: "transit-planets", type: "string", description: "Comma-separated transit planet names to include" },
9076
9255
  { name: "natal-planets", type: "string", description: "Comma-separated natal planet/point names to include" },
9077
9256
  { name: "from", type: "string", description: "Range start date YYYY-MM-DD (enables date range mode)" },
@@ -9104,6 +9283,8 @@ var COMMANDS = [
9104
9283
  { name: "sr-lon", type: "number", description: "Solar return location longitude (default: natal lon)" },
9105
9284
  { name: "sr-location", type: "string", description: "Solar return location for geocoding" },
9106
9285
  { name: "sr-house-system", type: "string", description: "House system for solar return chart (default: natal house system)" },
9286
+ { name: "max-orb", type: "number", description: "Maximum orb in degrees to include in natal and solar return aspect arrays" },
9287
+ { name: "aspect-types", type: "string", description: "Comma-separated aspect names, or 'major' for conjunction,sextile,square,trine,opposition" },
9107
9288
  { name: "wasm-path", type: "string", description: "Override the Swiss Ephemeris WASM runtime path" },
9108
9289
  { name: "ephe-path", type: "string", description: "Override the ephemeris data directory path" }
9109
9290
  ],
@@ -10070,7 +10251,7 @@ function rethrowInterruptedOrError(err, executionContext) {
10070
10251
  throw err;
10071
10252
  }
10072
10253
  function describeTimeZoneSettings(timeZoneSettings) {
10073
- return "timeZone" in timeZoneSettings ? timeZoneSettings.timeZone : "auto";
10254
+ return "timeZone" in timeZoneSettings && timeZoneSettings.timeZone != null ? timeZoneSettings.timeZone : "auto";
10074
10255
  }
10075
10256
  async function geocodeLocation(location, flags, executionContext) {
10076
10257
  const apiKey = getGoogleMapsApiKey();
@@ -10171,6 +10352,46 @@ function formatInputEcho(chartAInput, chartBInput) {
10171
10352
  }
10172
10353
  };
10173
10354
  }
10355
+ var MAJOR_ASPECTS = ["conjunction", "sextile", "square", "trine", "opposition"];
10356
+ function parseMaxOrb(flags, inputPayload) {
10357
+ const maxOrb = inputPayload?.maxOrb != null ? Number(inputPayload.maxOrb) : getFlagNumber(flags, "max-orb");
10358
+ if (maxOrb == null) {
10359
+ return void 0;
10360
+ }
10361
+ if (Number.isNaN(maxOrb) || maxOrb < 0) {
10362
+ exitWithError("INVALID_ARGUMENT", `--max-orb must be a non-negative number, got "${maxOrb}".`, flags);
10363
+ }
10364
+ return maxOrb;
10365
+ }
10366
+ function parseAspectTypeFilter(flags, inputPayload) {
10367
+ const rawValue = inputPayload?.aspectTypes ?? inputPayload?.aspects ?? getFlagString(flags, "aspect-types") ?? getFlagString(flags, "aspects");
10368
+ if (!rawValue) {
10369
+ return void 0;
10370
+ }
10371
+ const items = Array.isArray(rawValue) ? rawValue : rawValue.split(",");
10372
+ const normalized = items.map((item) => item.trim().toLowerCase()).filter(Boolean).flatMap((item) => item === "major" ? MAJOR_ASPECTS : [item]);
10373
+ return normalized.length > 0 ? normalized : void 0;
10374
+ }
10375
+ function filterAspects(aspects, { maxOrb, aspectFilter }) {
10376
+ return aspects.filter((aspect) => {
10377
+ if (maxOrb != null) {
10378
+ const orb = aspect.orb ?? aspect.exactOrb;
10379
+ if (orb == null || orb > maxOrb) {
10380
+ return false;
10381
+ }
10382
+ }
10383
+ if (aspectFilter && !aspectFilter.includes(aspect.aspect)) {
10384
+ return false;
10385
+ }
10386
+ return true;
10387
+ });
10388
+ }
10389
+ function filterChartAspects(chart, options) {
10390
+ return {
10391
+ ...chart,
10392
+ aspects: filterAspects(chart.aspects, options)
10393
+ };
10394
+ }
10174
10395
  async function parseTwoChartCommand(flags, inputPayload, commandName, executionContext) {
10175
10396
  if (!inputPayload?.chartA || !inputPayload?.chartB) {
10176
10397
  exitWithError("MISSING_ARGUMENT", `Usage: kaabalah ${commandName} --input-json=- < payload.json`, flags);
@@ -10293,6 +10514,8 @@ async function cmdAstrologySynastry(flags, inputPayload, executionContext) {
10293
10514
  releaseSwissEphCleanup
10294
10515
  } = await parseTwoChartCommand(flags, inputPayload, "astrology:synastry", executionContext);
10295
10516
  const { getSynastryChart: getSynastryChart2, closeSwissEph: closeSwissEph2, HouseSystem: HouseSystem2 } = astroModule;
10517
+ const maxOrb = parseMaxOrb(flags, inputPayload);
10518
+ const aspectFilter = parseAspectTypeFilter(flags, inputPayload);
10296
10519
  try {
10297
10520
  debugLog("astrology", "Running astrology:synastry.", {
10298
10521
  chartA: { date: chartAInput.dateStr, time: chartAInput.timeStr },
@@ -10303,12 +10526,18 @@ async function cmdAstrologySynastry(flags, inputPayload, executionContext) {
10303
10526
  chartB: buildBirthChartOptions(chartBInput, HouseSystem2),
10304
10527
  aspectSpecs
10305
10528
  });
10529
+ const filteredResult = {
10530
+ ...result,
10531
+ chartA: filterChartAspects(result.chartA, { maxOrb, aspectFilter }),
10532
+ chartB: filterChartAspects(result.chartB, { maxOrb, aspectFilter }),
10533
+ aspects: filterAspects(result.aspects, { maxOrb, aspectFilter })
10534
+ };
10306
10535
  executionContext.throwIfInterrupted();
10307
10536
  debugLog("astrology", "Completed astrology:synastry.", {
10308
- aspects: result.aspects.length
10537
+ aspects: filteredResult.aspects.length
10309
10538
  });
10310
10539
  if (isJsonMode(flags)) {
10311
- outputJson({ ...result, input: formatInputEcho(chartAInput, chartBInput) }, flags);
10540
+ outputJson({ ...filteredResult, input: formatInputEcho(chartAInput, chartBInput) }, flags);
10312
10541
  return;
10313
10542
  }
10314
10543
  console.log(`
@@ -10317,9 +10546,9 @@ Synastry Chart
10317
10546
  console.log(` Chart A: ${chartAInput.dateStr} ${chartAInput.timeStr} (${chartAInput.latitude}, ${chartAInput.longitude})`);
10318
10547
  console.log(` Chart B: ${chartBInput.dateStr} ${chartBInput.timeStr} (${chartBInput.latitude}, ${chartBInput.longitude})`);
10319
10548
  console.log(`
10320
- Cross-chart Aspects (${result.aspects.length}):
10549
+ Cross-chart Aspects (${filteredResult.aspects.length}):
10321
10550
  `);
10322
- for (const aspect of result.aspects) {
10551
+ for (const aspect of filteredResult.aspects) {
10323
10552
  console.log(` ${aspect.planetA.padEnd(14)} ${aspect.aspect.padEnd(12)} ${aspect.planetB.padEnd(14)} orb ${aspect.orb.toFixed(2)}\xB0`);
10324
10553
  }
10325
10554
  console.log();
@@ -10339,6 +10568,8 @@ async function cmdAstrologyComposite(flags, inputPayload, executionContext) {
10339
10568
  releaseSwissEphCleanup
10340
10569
  } = await parseTwoChartCommand(flags, inputPayload, "astrology:composite", executionContext);
10341
10570
  const { getCompositeChart: getCompositeChart2, closeSwissEph: closeSwissEph2, HouseSystem: HouseSystem2 } = astroModule;
10571
+ const maxOrb = parseMaxOrb(flags, inputPayload);
10572
+ const aspectFilter = parseAspectTypeFilter(flags, inputPayload);
10342
10573
  try {
10343
10574
  debugLog("astrology", "Running astrology:composite.", {
10344
10575
  chartA: { date: chartAInput.dateStr, time: chartAInput.timeStr },
@@ -10349,13 +10580,19 @@ async function cmdAstrologyComposite(flags, inputPayload, executionContext) {
10349
10580
  chartB: buildBirthChartOptions(chartBInput, HouseSystem2),
10350
10581
  aspectSpecs
10351
10582
  });
10583
+ const filteredResult = {
10584
+ ...result,
10585
+ chartA: filterChartAspects(result.chartA, { maxOrb, aspectFilter }),
10586
+ chartB: filterChartAspects(result.chartB, { maxOrb, aspectFilter }),
10587
+ aspects: filterAspects(result.aspects, { maxOrb, aspectFilter })
10588
+ };
10352
10589
  executionContext.throwIfInterrupted();
10353
10590
  debugLog("astrology", "Completed astrology:composite.", {
10354
- aspects: result.aspects.length,
10355
- compositePlanets: Object.keys(result.compositePlanets).length
10591
+ aspects: filteredResult.aspects.length,
10592
+ compositePlanets: Object.keys(filteredResult.compositePlanets).length
10356
10593
  });
10357
10594
  if (isJsonMode(flags)) {
10358
- outputJson({ ...result, input: formatInputEcho(chartAInput, chartBInput) }, flags);
10595
+ outputJson({ ...filteredResult, input: formatInputEcho(chartAInput, chartBInput) }, flags);
10359
10596
  return;
10360
10597
  }
10361
10598
  console.log(`
@@ -10365,20 +10602,20 @@ Composite Chart (Midpoint Method)
10365
10602
  console.log(` Chart B: ${chartBInput.dateStr} ${chartBInput.timeStr} (${chartBInput.latitude}, ${chartBInput.longitude})`);
10366
10603
  console.log(`
10367
10604
  Composite Planets:`);
10368
- for (const [name, planet] of Object.entries(result.compositePlanets)) {
10605
+ for (const [name, planet] of Object.entries(filteredResult.compositePlanets)) {
10369
10606
  const zodiacPosition = planet.zodiacPosition;
10370
10607
  console.log(` ${name.padEnd(14)} ${zodiacPosition.sign.padEnd(12)} ${zodiacPosition.traditionalFormat.padEnd(8)} House ${zodiacPosition.house}`);
10371
10608
  }
10372
10609
  console.log(`
10373
10610
  Composite House Cusps:`);
10374
- for (let i = 0; i < result.compositeHouses.length; i++) {
10375
- const house = result.compositeHouses[i];
10611
+ for (let i = 0; i < filteredResult.compositeHouses.length; i++) {
10612
+ const house = filteredResult.compositeHouses[i];
10376
10613
  console.log(` House ${String(i + 1).padStart(2)}: ${house.sign.padEnd(12)} ${house.traditionalFormat}`);
10377
10614
  }
10378
10615
  console.log(`
10379
- Composite Aspects (${result.aspects.length}):
10616
+ Composite Aspects (${filteredResult.aspects.length}):
10380
10617
  `);
10381
- for (const aspect of result.aspects) {
10618
+ for (const aspect of filteredResult.aspects) {
10382
10619
  console.log(` ${aspect.planetA.padEnd(14)} ${aspect.aspect.padEnd(12)} ${aspect.planetB.padEnd(14)} orb ${aspect.orb.toFixed(2)}\xB0`);
10383
10620
  }
10384
10621
  console.log();
@@ -10389,7 +10626,6 @@ Composite Chart (Midpoint Method)
10389
10626
  closeSwissEph2();
10390
10627
  }
10391
10628
  }
10392
- var MAJOR_ASPECTS = ["conjunction", "sextile", "square", "trine", "opposition"];
10393
10629
  async function cmdAstrologyTransits(args, flags, inputPayload, executionContext) {
10394
10630
  const natalPayload = inputPayload?.natal;
10395
10631
  const effectiveArgs = natalPayload ? [] : args;
@@ -10415,8 +10651,8 @@ async function cmdAstrologyTransits(args, flags, inputPayload, executionContext)
10415
10651
  const transitLatFlag = inputPayload?.transitLat != null ? Number(inputPayload.transitLat) : getFlagNumber(flags, "transit-lat");
10416
10652
  const transitLonFlag = inputPayload?.transitLon != null ? Number(inputPayload.transitLon) : getFlagNumber(flags, "transit-lon");
10417
10653
  const transitTzStr = inputPayload?.transitTimezone ?? getFlagString(flags, "transit-timezone");
10418
- const maxOrbFlag = inputPayload?.maxOrb != null ? Number(inputPayload.maxOrb) : getFlagNumber(flags, "max-orb");
10419
- const aspectsStr = inputPayload?.aspects ?? getFlagString(flags, "aspects");
10654
+ const maxOrbFlag = parseMaxOrb(flags, inputPayload);
10655
+ const aspectFilter = parseAspectTypeFilter(flags, inputPayload);
10420
10656
  const transitPlanetsStr = inputPayload?.transitPlanets ?? getFlagString(flags, "transit-planets");
10421
10657
  const natalPlanetsStr = inputPayload?.natalPlanets ?? getFlagString(flags, "natal-planets");
10422
10658
  const fromStr = inputPayload?.from ?? getFlagString(flags, "from");
@@ -10425,11 +10661,6 @@ async function cmdAstrologyTransits(args, flags, inputPayload, executionContext)
10425
10661
  if (stepDaysFlag != null && (isNaN(stepDaysFlag) || stepDaysFlag <= 0)) {
10426
10662
  exitWithError("INVALID_ARGUMENT", `--step-days must be a positive number, got "${stepDaysFlag}".`, flags);
10427
10663
  }
10428
- let aspectFilter;
10429
- if (aspectsStr) {
10430
- const raw = Array.isArray(aspectsStr) ? aspectsStr : aspectsStr.split(",").map((s) => s.trim());
10431
- aspectFilter = raw.flatMap((a) => a === "major" ? MAJOR_ASPECTS : [a]);
10432
- }
10433
10664
  const transitPlanets = transitPlanetsStr ? Array.isArray(transitPlanetsStr) ? transitPlanetsStr : transitPlanetsStr.split(",").map((s) => s.trim().toLowerCase()) : void 0;
10434
10665
  const natalPlanets = natalPlanetsStr ? Array.isArray(natalPlanetsStr) ? natalPlanetsStr : natalPlanetsStr.split(",").map((s) => s.trim().toLowerCase()) : void 0;
10435
10666
  const natalOpts = buildBirthChartOptions(natalInput, HouseSystem2);
@@ -10576,6 +10807,8 @@ async function cmdAstrologySolarReturn(args, flags, inputPayload, executionConte
10576
10807
  const natalInput = await parseSingleChartRequest(effectiveArgs, flags, effectiveInputPayload, executionContext);
10577
10808
  const astroModule = await Promise.resolve().then(() => (init_astrology(), astrology_exports));
10578
10809
  const { getSolarReturnChart: getSolarReturnChart2, closeSwissEph: closeSwissEph2, HouseSystem: HouseSystem2 } = astroModule;
10810
+ const maxOrb = parseMaxOrb(flags, inputPayload);
10811
+ const aspectFilter = parseAspectTypeFilter(flags, inputPayload);
10579
10812
  const releaseSwissEphCleanup = executionContext.registerCleanup(() => {
10580
10813
  astroModule.closeSwissEph();
10581
10814
  });
@@ -10618,14 +10851,19 @@ async function cmdAstrologySolarReturn(args, flags, inputPayload, executionConte
10618
10851
  solarReturnLongitude: srLon ?? void 0,
10619
10852
  solarReturnHouseSystem: srHouseSystem
10620
10853
  });
10854
+ const filteredResult = {
10855
+ ...result,
10856
+ natalChart: filterChartAspects(result.natalChart, { maxOrb, aspectFilter }),
10857
+ solarReturnChart: filterChartAspects(result.solarReturnChart, { maxOrb, aspectFilter })
10858
+ };
10621
10859
  executionContext.throwIfInterrupted();
10622
10860
  debugLog("astrology", "Completed astrology:solar-return.", {
10623
- exactReturnDate: result.exactReturnDate.toISOString(),
10624
- natalSunLongitude: result.natalSunLongitude
10861
+ exactReturnDate: filteredResult.exactReturnDate.toISOString(),
10862
+ natalSunLongitude: filteredResult.natalSunLongitude
10625
10863
  });
10626
10864
  if (isJsonMode(flags)) {
10627
10865
  outputJson({
10628
- ...result,
10866
+ ...filteredResult,
10629
10867
  input: {
10630
10868
  natal: { date: natalInput.dateStr, time: natalInput.timeStr, lat: natalInput.latitude, lon: natalInput.longitude },
10631
10869
  year,
@@ -10635,14 +10873,14 @@ async function cmdAstrologySolarReturn(args, flags, inputPayload, executionConte
10635
10873
  }, flags);
10636
10874
  return;
10637
10875
  }
10638
- const srChart = result.solarReturnChart;
10639
- const natalSun = result.natalChart.planets.sun.zodiacPosition;
10640
- const returnDateStr = result.exactReturnDate.toISOString().replace("T", " ").replace(/\.\d{3}Z$/, " UTC");
10876
+ const srChart = filteredResult.solarReturnChart;
10877
+ const natalSun = filteredResult.natalChart.planets.sun.zodiacPosition;
10878
+ const returnDateStr = filteredResult.exactReturnDate.toISOString().replace("T", " ").replace(/\.\d{3}Z$/, " UTC");
10641
10879
  console.log(`
10642
10880
  Solar Return ${year}
10643
10881
  `);
10644
10882
  console.log(` Natal: ${natalInput.dateStr} ${natalInput.timeStr} (${natalInput.latitude}, ${natalInput.longitude})`);
10645
- console.log(` Natal Sun: ${natalSun.sign} ${natalSun.traditionalFormat} (${result.natalSunLongitude.toFixed(4)}\xB0)`);
10883
+ console.log(` Natal Sun: ${natalSun.sign} ${natalSun.traditionalFormat} (${filteredResult.natalSunLongitude.toFixed(4)}\xB0)`);
10646
10884
  console.log(` Exact Return: ${returnDateStr}`);
10647
10885
  console.log(` SR Sun: ${srChart.planets.sun.zodiacPosition.sign} ${srChart.planets.sun.zodiacPosition.traditionalFormat} (${srChart.planets.sun.longitude.toFixed(4)}\xB0)`);
10648
10886
  console.log(`
@@ -10928,6 +11166,8 @@ async function cmdAstrology(args, flags, inputPayload, executionContext) {
10928
11166
  const input = await parseSingleChartRequest(args, flags, inputPayload, executionContext);
10929
11167
  const astroModule = await Promise.resolve().then(() => (init_astrology(), astrology_exports));
10930
11168
  const { getSwissEph: getSwissEph2, closeSwissEph: closeSwissEph2, getBirthChart: getBirthChart2, HouseSystem: HouseSystem2 } = astroModule;
11169
+ const maxOrb = parseMaxOrb(flags, inputPayload);
11170
+ const aspectFilter = parseAspectTypeFilter(flags, inputPayload);
10931
11171
  const releaseSwissEphCleanup = executionContext.registerCleanup(() => {
10932
11172
  astroModule.closeSwissEph();
10933
11173
  });
@@ -10956,14 +11196,15 @@ async function cmdAstrology(args, flags, inputPayload, executionContext) {
10956
11196
  houseSystem: input.houseSystemCode,
10957
11197
  timeZoneSettings: input.timeZoneSettings
10958
11198
  });
11199
+ const filteredChart = filterChartAspects(chart, { maxOrb, aspectFilter });
10959
11200
  executionContext.throwIfInterrupted();
10960
11201
  debugLog("astrology", "Completed astrology.", {
10961
- planets: Object.keys(chart.planets).length,
10962
- nodes: Object.keys(chart.nodes ?? {}).length,
10963
- aspects: chart.aspects.length
11202
+ planets: Object.keys(filteredChart.planets).length,
11203
+ nodes: Object.keys(filteredChart.nodes ?? {}).length,
11204
+ aspects: filteredChart.aspects.length
10964
11205
  });
10965
11206
  if (isJsonMode(flags)) {
10966
- const result = { ...chart };
11207
+ const result = { ...filteredChart };
10967
11208
  if (input.resolvedLocation) {
10968
11209
  result.resolvedLocation = input.resolvedLocation;
10969
11210
  }
@@ -10986,29 +11227,29 @@ Birth Chart: ${input.dateStr} ${input.timeStr}
10986
11227
  }
10987
11228
  console.log(` Coordinates: ${input.latitude.toFixed(4)}, ${input.longitude.toFixed(4)}`);
10988
11229
  console.log(` House System: ${input.houseSystem}`);
10989
- console.log(` UTC Date: ${chart.dateUtc.toISOString()}`);
11230
+ console.log(` UTC Date: ${filteredChart.dateUtc.toISOString()}`);
10990
11231
  console.log(`
10991
11232
  Planets:`);
10992
- for (const [name, planet] of Object.entries(chart.planets)) {
11233
+ for (const [name, planet] of Object.entries(filteredChart.planets)) {
10993
11234
  const zodiacPosition = planet.zodiacPosition;
10994
11235
  console.log(` ${name.padEnd(14)} ${zodiacPosition.sign.padEnd(12)} ${zodiacPosition.traditionalFormat.padEnd(8)} House ${zodiacPosition.house}`);
10995
11236
  }
10996
11237
  console.log(`
10997
11238
  Houses:`);
10998
- console.log(` Ascendant: ${chart.houses.ascendant.sign} ${chart.houses.ascendant.traditionalFormat}`);
10999
- console.log(` Midheaven: ${chart.houses.mc.sign} ${chart.houses.mc.traditionalFormat}`);
11000
- console.log(` Descendant: ${chart.houses.dc.sign} ${chart.houses.dc.traditionalFormat}`);
11001
- console.log(` IC: ${chart.houses.ic.sign} ${chart.houses.ic.traditionalFormat}`);
11239
+ console.log(` Ascendant: ${filteredChart.houses.ascendant.sign} ${filteredChart.houses.ascendant.traditionalFormat}`);
11240
+ console.log(` Midheaven: ${filteredChart.houses.mc.sign} ${filteredChart.houses.mc.traditionalFormat}`);
11241
+ console.log(` Descendant: ${filteredChart.houses.dc.sign} ${filteredChart.houses.dc.traditionalFormat}`);
11242
+ console.log(` IC: ${filteredChart.houses.ic.sign} ${filteredChart.houses.ic.traditionalFormat}`);
11002
11243
  console.log(`
11003
11244
  House Cusps:`);
11004
- for (let i = 0; i < chart.houses.houses.length; i++) {
11005
- const house = chart.houses.houses[i];
11245
+ for (let i = 0; i < filteredChart.houses.houses.length; i++) {
11246
+ const house = filteredChart.houses.houses[i];
11006
11247
  console.log(` House ${String(i + 1).padStart(2)}: ${house.sign.padEnd(12)} ${house.traditionalFormat}`);
11007
11248
  }
11008
- if (chart.nodes && Object.keys(chart.nodes).length > 0) {
11249
+ if (filteredChart.nodes && Object.keys(filteredChart.nodes).length > 0) {
11009
11250
  console.log(`
11010
11251
  Nodes:`);
11011
- for (const [, node] of Object.entries(chart.nodes)) {
11252
+ for (const [, node] of Object.entries(filteredChart.nodes)) {
11012
11253
  console.log(` ${node.name.padEnd(18)} ${node.sign.padEnd(12)} ${node.traditionalFormat.padEnd(8)} House ${node.house}`);
11013
11254
  }
11014
11255
  }
@@ -11708,9 +11949,238 @@ var TAROT_ARKANNUS = {
11708
11949
  TWO_OF_PENTACLES: "Two of Pentacles",
11709
11950
  ACE_OF_PENTACLES: "Ace of Pentacles"
11710
11951
  };
11952
+ var TAROT_MAJOR_ARKANNUS_ALIASES = {
11953
+ THE_MAGICIAN: ["O Mago"],
11954
+ THE_HIGH_PRIESTESS: ["A Sacerdotisa", "Papisa"],
11955
+ THE_EMPRESS: ["A Imperatriz"],
11956
+ THE_EMPEROR: ["O Imperador"],
11957
+ THE_HIEROPHANT: ["O Hierofante", "Papa"],
11958
+ THE_LOVER: ["Os Enamorados", "The Lovers"],
11959
+ THE_CHARIOT: ["O Carro", "Merkaabah"],
11960
+ JUSTICE: ["A Justi\xE7a"],
11961
+ THE_HERMIT: ["O Eremita"],
11962
+ THE_WHEEL_OF_FORTUNE: ["A Roda da Fortuna"],
11963
+ STRENGTH: ["A For\xE7a"],
11964
+ THE_HANGED_MAN: ["O Enforcado", "Sacro Of\xEDcio"],
11965
+ DEATH: ["A Morte"],
11966
+ TEMPERANCE: ["A Temperan\xE7a"],
11967
+ THE_DEVIL: ["O Diabo"],
11968
+ THE_TOWER: ["A Torre", "The House of God"],
11969
+ THE_STAR: ["A Estrela"],
11970
+ THE_MOON: ["A Lua"],
11971
+ THE_SUN: ["O Sol"],
11972
+ JUDGMENT: ["O Julgamento", "Judgement"],
11973
+ THE_FOOL: ["O Louco"],
11974
+ THE_WORLD: ["O Mundo"]
11975
+ };
11976
+ var TAROT_MAJOR_ARKANNUS_KEYWORDS = {
11977
+ THE_MAGICIAN: [
11978
+ "co-creation",
11979
+ "molecular waves",
11980
+ "first act of will",
11981
+ "Hermes",
11982
+ "knowledge",
11983
+ "will"
11984
+ ],
11985
+ THE_HIGH_PRIESTESS: [
11986
+ "veiled feminine principle",
11987
+ "intuition",
11988
+ "Isis",
11989
+ "mysteries",
11990
+ "feminine principle",
11991
+ "memory rewriting",
11992
+ "history rewriting"
11993
+ ],
11994
+ THE_EMPRESS: [
11995
+ "manifestation",
11996
+ "fecundity",
11997
+ "adaptation",
11998
+ "generative power",
11999
+ "fertility",
12000
+ "nurturing",
12001
+ "creative manifestation"
12002
+ ],
12003
+ THE_EMPEROR: [
12004
+ "dominion of will",
12005
+ "four elements",
12006
+ "authority",
12007
+ "territory marking",
12008
+ "divine authority",
12009
+ "sovereignty",
12010
+ "sacred fire"
12011
+ ],
12012
+ THE_HIEROPHANT: [
12013
+ "ritualization",
12014
+ "fifth essences",
12015
+ "spiritual communion",
12016
+ "ritual science",
12017
+ "magnetism",
12018
+ "bridge between worlds",
12019
+ "Agnus Dei"
12020
+ ],
12021
+ THE_LOVER: [
12022
+ "sexual alchemy",
12023
+ "ascension of energy",
12024
+ "union of opposites",
12025
+ "choice",
12026
+ "balance of Eva and Lilith",
12027
+ "sacred sexuality",
12028
+ "decision"
12029
+ ],
12030
+ THE_CHARIOT: [
12031
+ "mastery of duality",
12032
+ "chariot of consciousness",
12033
+ "solar energy",
12034
+ "willpower",
12035
+ "transmutation",
12036
+ "interdimensional vehicles",
12037
+ "Merkabah"
12038
+ ],
12039
+ JUSTICE: [
12040
+ "cosmic law",
12041
+ "mercy and severity",
12042
+ "impartial divine judgment",
12043
+ "divine balance",
12044
+ "karma enforcement",
12045
+ "Uriel"
12046
+ ],
12047
+ THE_HERMIT: [
12048
+ "solitary quest",
12049
+ "self-knowledge",
12050
+ "inner illumination",
12051
+ "inner light",
12052
+ "wisdom",
12053
+ "disciplined introspection",
12054
+ "Lamp of Hermes"
12055
+ ],
12056
+ THE_WHEEL_OF_FORTUNE: [
12057
+ "cycle of reincarnation",
12058
+ "evolution",
12059
+ "108 existences",
12060
+ "metempsychosis",
12061
+ "destiny",
12062
+ "karma",
12063
+ "turning wheel of souls"
12064
+ ],
12065
+ STRENGTH: [
12066
+ "subtle persuasion",
12067
+ "mastery of instinct",
12068
+ "spiritual force",
12069
+ "control of raw power",
12070
+ "kindness",
12071
+ "lion taming"
12072
+ ],
12073
+ THE_HANGED_MAN: [
12074
+ "sacrifice",
12075
+ "transmutation",
12076
+ "voluntary suspension",
12077
+ "surrender",
12078
+ "apostolate",
12079
+ "sacred duty",
12080
+ "death of ego",
12081
+ "Christ on cross"
12082
+ ],
12083
+ DEATH: [
12084
+ "transformation",
12085
+ "immortality",
12086
+ "dissolution of the personality",
12087
+ "resurrection",
12088
+ "sickle of Anubis",
12089
+ "cycle change"
12090
+ ],
12091
+ TEMPERANCE: [
12092
+ "alchemical transmutation",
12093
+ "elixir of long life",
12094
+ "balance",
12095
+ "harmony",
12096
+ "blending of opposites",
12097
+ "alchemist's work",
12098
+ "divine balance"
12099
+ ],
12100
+ THE_DEVIL: [
12101
+ "involution",
12102
+ "materiality",
12103
+ "shadow self",
12104
+ "transmutation",
12105
+ "testing",
12106
+ "shadow work",
12107
+ "sexual force",
12108
+ "Pan"
12109
+ ],
12110
+ THE_TOWER: [
12111
+ "destruction of false foundations",
12112
+ "karmic correction",
12113
+ "cosmic justice",
12114
+ "collapse of illusions",
12115
+ "divine lightning",
12116
+ "Babel confusion"
12117
+ ],
12118
+ THE_STAR: [
12119
+ "hope",
12120
+ "inner light",
12121
+ "guiding the path",
12122
+ "innocence recovered",
12123
+ "faith",
12124
+ "renewal",
12125
+ "Venusian initiation",
12126
+ "cosmic seeding",
12127
+ "divine hope"
12128
+ ],
12129
+ THE_MOON: [
12130
+ "illusion",
12131
+ "confusion",
12132
+ "subconscious waters",
12133
+ "deception",
12134
+ "dreams",
12135
+ "psychic dangers",
12136
+ "Hecate"
12137
+ ],
12138
+ THE_SUN: [
12139
+ "philosophical gold",
12140
+ "enlightenment",
12141
+ "victory",
12142
+ "child-like innocence reborn",
12143
+ "divine truth",
12144
+ "triumph",
12145
+ "golden philosophical stone",
12146
+ "soulmate",
12147
+ "Apollo"
12148
+ ],
12149
+ JUDGMENT: [
12150
+ "resurrection",
12151
+ "retrospectives",
12152
+ "karmic accounting",
12153
+ "second birth of consciousness",
12154
+ "rebirth",
12155
+ "awakening",
12156
+ "trumpet call",
12157
+ "transformation of ages"
12158
+ ],
12159
+ THE_FOOL: [
12160
+ "chaos",
12161
+ "bridges of knowledge",
12162
+ "fall before ascension",
12163
+ "divinity",
12164
+ "wandering",
12165
+ "innocence before knowledge",
12166
+ "dark night of soul"
12167
+ ],
12168
+ THE_WORLD: [
12169
+ "completion",
12170
+ "mastery of all four elements",
12171
+ "Hermaphroditic unity",
12172
+ "perfection",
12173
+ "wholeness",
12174
+ "Ouroboros",
12175
+ "Isis unveiled",
12176
+ "Great Work"
12177
+ ]
12178
+ };
11711
12179
  var TAROT_ARKANNUS_DATA = {
11712
12180
  THE_MAGICIAN: {
11713
12181
  type: "major",
12182
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_MAGICIAN,
12183
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_MAGICIAN,
11714
12184
  descriptiveData: {
11715
12185
  PAPUS_KAABALISTIC: {
11716
12186
  name: "The Magician",
@@ -11727,6 +12197,8 @@ var TAROT_ARKANNUS_DATA = {
11727
12197
  },
11728
12198
  THE_HIGH_PRIESTESS: {
11729
12199
  type: "major",
12200
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_HIGH_PRIESTESS,
12201
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_HIGH_PRIESTESS,
11730
12202
  descriptiveData: {
11731
12203
  PAPUS_KAABALISTIC: {
11732
12204
  name: "The High Priestess",
@@ -11743,6 +12215,8 @@ var TAROT_ARKANNUS_DATA = {
11743
12215
  },
11744
12216
  THE_EMPRESS: {
11745
12217
  type: "major",
12218
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_EMPRESS,
12219
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_EMPRESS,
11746
12220
  descriptiveData: {
11747
12221
  PAPUS_KAABALISTIC: {
11748
12222
  name: "The Empress",
@@ -11759,6 +12233,8 @@ var TAROT_ARKANNUS_DATA = {
11759
12233
  },
11760
12234
  THE_EMPEROR: {
11761
12235
  type: "major",
12236
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_EMPEROR,
12237
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_EMPEROR,
11762
12238
  descriptiveData: {
11763
12239
  PAPUS_KAABALISTIC: {
11764
12240
  name: "The Emperor",
@@ -11775,6 +12251,8 @@ var TAROT_ARKANNUS_DATA = {
11775
12251
  },
11776
12252
  THE_HIEROPHANT: {
11777
12253
  type: "major",
12254
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_HIEROPHANT,
12255
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_HIEROPHANT,
11778
12256
  descriptiveData: {
11779
12257
  PAPUS_KAABALISTIC: {
11780
12258
  name: "The Hierophant",
@@ -11791,6 +12269,8 @@ var TAROT_ARKANNUS_DATA = {
11791
12269
  },
11792
12270
  THE_LOVER: {
11793
12271
  type: "major",
12272
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_LOVER,
12273
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_LOVER,
11794
12274
  descriptiveData: {
11795
12275
  PAPUS_KAABALISTIC: {
11796
12276
  name: "The Lover",
@@ -11807,6 +12287,8 @@ var TAROT_ARKANNUS_DATA = {
11807
12287
  },
11808
12288
  THE_CHARIOT: {
11809
12289
  type: "major",
12290
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_CHARIOT,
12291
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_CHARIOT,
11810
12292
  descriptiveData: {
11811
12293
  PAPUS_KAABALISTIC: {
11812
12294
  name: "The Chariot",
@@ -11823,6 +12305,8 @@ var TAROT_ARKANNUS_DATA = {
11823
12305
  },
11824
12306
  JUSTICE: {
11825
12307
  type: "major",
12308
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.JUSTICE,
12309
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.JUSTICE,
11826
12310
  descriptiveData: {
11827
12311
  PAPUS_KAABALISTIC: {
11828
12312
  name: "Justice",
@@ -11839,6 +12323,8 @@ var TAROT_ARKANNUS_DATA = {
11839
12323
  },
11840
12324
  THE_HERMIT: {
11841
12325
  type: "major",
12326
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_HERMIT,
12327
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_HERMIT,
11842
12328
  descriptiveData: {
11843
12329
  PAPUS_KAABALISTIC: {
11844
12330
  name: "The Hermit",
@@ -11855,6 +12341,8 @@ var TAROT_ARKANNUS_DATA = {
11855
12341
  },
11856
12342
  THE_WHEEL_OF_FORTUNE: {
11857
12343
  type: "major",
12344
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_WHEEL_OF_FORTUNE,
12345
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_WHEEL_OF_FORTUNE,
11858
12346
  descriptiveData: {
11859
12347
  PAPUS_KAABALISTIC: {
11860
12348
  name: "The Wheel of Fortune",
@@ -11871,6 +12359,8 @@ var TAROT_ARKANNUS_DATA = {
11871
12359
  },
11872
12360
  STRENGTH: {
11873
12361
  type: "major",
12362
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.STRENGTH,
12363
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.STRENGTH,
11874
12364
  descriptiveData: {
11875
12365
  PAPUS_KAABALISTIC: {
11876
12366
  name: "Strength",
@@ -11887,6 +12377,8 @@ var TAROT_ARKANNUS_DATA = {
11887
12377
  },
11888
12378
  THE_HANGED_MAN: {
11889
12379
  type: "major",
12380
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_HANGED_MAN,
12381
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_HANGED_MAN,
11890
12382
  descriptiveData: {
11891
12383
  PAPUS_KAABALISTIC: {
11892
12384
  name: "The Hanged Man",
@@ -11903,6 +12395,8 @@ var TAROT_ARKANNUS_DATA = {
11903
12395
  },
11904
12396
  DEATH: {
11905
12397
  type: "major",
12398
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.DEATH,
12399
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.DEATH,
11906
12400
  descriptiveData: {
11907
12401
  PAPUS_KAABALISTIC: {
11908
12402
  name: "Death",
@@ -11919,6 +12413,8 @@ var TAROT_ARKANNUS_DATA = {
11919
12413
  },
11920
12414
  TEMPERANCE: {
11921
12415
  type: "major",
12416
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.TEMPERANCE,
12417
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.TEMPERANCE,
11922
12418
  descriptiveData: {
11923
12419
  PAPUS_KAABALISTIC: {
11924
12420
  name: "Temperance",
@@ -11935,6 +12431,8 @@ var TAROT_ARKANNUS_DATA = {
11935
12431
  },
11936
12432
  THE_DEVIL: {
11937
12433
  type: "major",
12434
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_DEVIL,
12435
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_DEVIL,
11938
12436
  descriptiveData: {
11939
12437
  PAPUS_KAABALISTIC: {
11940
12438
  name: "The Devil",
@@ -11951,6 +12449,8 @@ var TAROT_ARKANNUS_DATA = {
11951
12449
  },
11952
12450
  THE_TOWER: {
11953
12451
  type: "major",
12452
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_TOWER,
12453
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_TOWER,
11954
12454
  descriptiveData: {
11955
12455
  PAPUS_KAABALISTIC: {
11956
12456
  name: "The House of God",
@@ -11967,6 +12467,8 @@ var TAROT_ARKANNUS_DATA = {
11967
12467
  },
11968
12468
  THE_STAR: {
11969
12469
  type: "major",
12470
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_STAR,
12471
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_STAR,
11970
12472
  descriptiveData: {
11971
12473
  PAPUS_KAABALISTIC: {
11972
12474
  name: "The Star",
@@ -11983,6 +12485,8 @@ var TAROT_ARKANNUS_DATA = {
11983
12485
  },
11984
12486
  THE_MOON: {
11985
12487
  type: "major",
12488
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_MOON,
12489
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_MOON,
11986
12490
  descriptiveData: {
11987
12491
  PAPUS_KAABALISTIC: {
11988
12492
  name: "The Moon",
@@ -11999,6 +12503,8 @@ var TAROT_ARKANNUS_DATA = {
11999
12503
  },
12000
12504
  THE_SUN: {
12001
12505
  type: "major",
12506
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_SUN,
12507
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_SUN,
12002
12508
  descriptiveData: {
12003
12509
  PAPUS_KAABALISTIC: {
12004
12510
  name: "The Sun",
@@ -12015,6 +12521,8 @@ var TAROT_ARKANNUS_DATA = {
12015
12521
  },
12016
12522
  JUDGMENT: {
12017
12523
  type: "major",
12524
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.JUDGMENT,
12525
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.JUDGMENT,
12018
12526
  descriptiveData: {
12019
12527
  PAPUS_KAABALISTIC: {
12020
12528
  name: "Judgement",
@@ -12031,6 +12539,8 @@ var TAROT_ARKANNUS_DATA = {
12031
12539
  },
12032
12540
  THE_FOOL: {
12033
12541
  type: "major",
12542
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_FOOL,
12543
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_FOOL,
12034
12544
  descriptiveData: {
12035
12545
  PAPUS_KAABALISTIC: {
12036
12546
  name: "The Fool",
@@ -12047,6 +12557,8 @@ var TAROT_ARKANNUS_DATA = {
12047
12557
  },
12048
12558
  THE_WORLD: {
12049
12559
  type: "major",
12560
+ aliases: TAROT_MAJOR_ARKANNUS_ALIASES.THE_WORLD,
12561
+ keywords: TAROT_MAJOR_ARKANNUS_KEYWORDS.THE_WORLD,
12050
12562
  descriptiveData: {
12051
12563
  PAPUS_KAABALISTIC: {
12052
12564
  name: "The World",
@@ -21431,6 +21943,655 @@ async function shuffleTarotDeck(cards, includeInvertedCards = false, shuffleCoun
21431
21943
  var MAJOR_ARCANA_CARDS = ARKANNUS.filter(
21432
21944
  (card) => card.type === "major" && majorArcana.includes(card.tarotCardFilename)
21433
21945
  );
21946
+ var EVENT_INNER_SLOT_KEYS = [
21947
+ "inner-1",
21948
+ "inner-2",
21949
+ "inner-3",
21950
+ "inner-4",
21951
+ "inner-5",
21952
+ "inner-6",
21953
+ "inner-7"
21954
+ ];
21955
+ var TAROT_CARD_BY_NUMBER = new Map(
21956
+ ARKANNUS.map((card) => [card.number, card])
21957
+ );
21958
+ function createEventOuterSlot(index, temporalPhase) {
21959
+ return {
21960
+ slotKey: `outer-${index}`,
21961
+ label: String(index),
21962
+ order: index,
21963
+ minCards: 1,
21964
+ maxCards: 1,
21965
+ validationRules: {
21966
+ allowedTypes: ["minor", "daat+royalship"]
21967
+ },
21968
+ manualSelectionRules: {
21969
+ allowedTypes: ["minor", "daat+royalship"]
21970
+ },
21971
+ drawRules: {
21972
+ allowedTypes: ["minor", "daat+royalship"]
21973
+ },
21974
+ metadata: {
21975
+ displayLabel: String(index),
21976
+ groupKey: "outer",
21977
+ temporalPhase
21978
+ }
21979
+ };
21980
+ }
21981
+ function createEventInnerSlot(index, label, note) {
21982
+ return {
21983
+ slotKey: `inner-${index}`,
21984
+ label,
21985
+ order: 100 + index,
21986
+ minCards: 1,
21987
+ maxCards: 1,
21988
+ validationRules: {
21989
+ allowedTypes: ["major"]
21990
+ },
21991
+ manualSelectionRules: {
21992
+ allowedTypes: ["major"],
21993
+ excludedCardFilenames: [
21994
+ "01_the_magician",
21995
+ "02_the_high_priestess"
21996
+ ]
21997
+ },
21998
+ drawRules: {
21999
+ allowedTypes: ["major"]
22000
+ },
22001
+ metadata: {
22002
+ displayLabel: `${index}.`,
22003
+ groupKey: "inner",
22004
+ note
22005
+ }
22006
+ };
22007
+ }
22008
+ var TAROT_SPREADS = [
22009
+ {
22010
+ spreadId: "quick-insight",
22011
+ label: "Quick Insight",
22012
+ description: "A single-card reading for immediate insight.",
22013
+ slots: [
22014
+ {
22015
+ slotKey: "quick-insight",
22016
+ label: "Quick Insight",
22017
+ order: 1,
22018
+ minCards: 1,
22019
+ maxCards: 1
22020
+ }
22021
+ ]
22022
+ },
22023
+ {
22024
+ spreadId: "conscious-reading",
22025
+ label: "Conscious Reading",
22026
+ description: "Three-card spread for conscious, unconscious, and subconscious layers.",
22027
+ slots: [
22028
+ {
22029
+ slotKey: "conscious",
22030
+ label: "Conscious",
22031
+ order: 1,
22032
+ minCards: 1,
22033
+ maxCards: 1,
22034
+ validationRules: {
22035
+ allowedTypes: ["major"]
22036
+ },
22037
+ manualSelectionRules: {
22038
+ allowedTypes: ["major"]
22039
+ },
22040
+ drawRules: {
22041
+ allowedTypes: ["major"]
22042
+ }
22043
+ },
22044
+ {
22045
+ slotKey: "unconscious",
22046
+ label: "Unconscious",
22047
+ order: 2,
22048
+ minCards: 1,
22049
+ maxCards: 1,
22050
+ validationRules: {
22051
+ allowedTypes: ["daat+royalship"]
22052
+ },
22053
+ manualSelectionRules: {
22054
+ allowedTypes: ["daat+royalship"]
22055
+ },
22056
+ drawRules: {
22057
+ allowedTypes: ["daat+royalship"]
22058
+ }
22059
+ },
22060
+ {
22061
+ slotKey: "subconscious",
22062
+ label: "Subconscious",
22063
+ order: 3,
22064
+ minCards: 1,
22065
+ maxCards: 1,
22066
+ validationRules: {
22067
+ allowedTypes: ["minor"]
22068
+ },
22069
+ manualSelectionRules: {
22070
+ allowedTypes: ["minor"]
22071
+ },
22072
+ drawRules: {
22073
+ allowedTypes: ["minor"]
22074
+ }
22075
+ }
22076
+ ]
22077
+ },
22078
+ {
22079
+ spreadId: "time-reading",
22080
+ label: "Time Reading",
22081
+ description: "Three major arcana cards for past, present, and future.",
22082
+ slots: [
22083
+ {
22084
+ slotKey: "past",
22085
+ label: "Past",
22086
+ order: 1,
22087
+ minCards: 1,
22088
+ maxCards: 1,
22089
+ validationRules: {
22090
+ allowedTypes: ["major"]
22091
+ },
22092
+ manualSelectionRules: {
22093
+ allowedTypes: ["major"]
22094
+ },
22095
+ drawRules: {
22096
+ allowedTypes: ["major"]
22097
+ }
22098
+ },
22099
+ {
22100
+ slotKey: "present",
22101
+ label: "Present",
22102
+ order: 2,
22103
+ minCards: 1,
22104
+ maxCards: 1,
22105
+ validationRules: {
22106
+ allowedTypes: ["major"]
22107
+ },
22108
+ manualSelectionRules: {
22109
+ allowedTypes: ["major"]
22110
+ },
22111
+ drawRules: {
22112
+ allowedTypes: ["major"]
22113
+ }
22114
+ },
22115
+ {
22116
+ slotKey: "future",
22117
+ label: "Future",
22118
+ order: 3,
22119
+ minCards: 1,
22120
+ maxCards: 1,
22121
+ validationRules: {
22122
+ allowedTypes: ["major"]
22123
+ },
22124
+ manualSelectionRules: {
22125
+ allowedTypes: ["major"]
22126
+ },
22127
+ drawRules: {
22128
+ allowedTypes: ["major"]
22129
+ }
22130
+ }
22131
+ ]
22132
+ },
22133
+ {
22134
+ spreadId: "dialectic-reading",
22135
+ label: "Dialectic Reading",
22136
+ description: "Three major arcana cards for thesis, antithesis, and synthesis.",
22137
+ slots: [
22138
+ {
22139
+ slotKey: "thesis",
22140
+ label: "Thesis",
22141
+ order: 1,
22142
+ minCards: 1,
22143
+ maxCards: 1,
22144
+ validationRules: {
22145
+ allowedTypes: ["major"]
22146
+ },
22147
+ manualSelectionRules: {
22148
+ allowedTypes: ["major"]
22149
+ },
22150
+ drawRules: {
22151
+ allowedTypes: ["major"]
22152
+ }
22153
+ },
22154
+ {
22155
+ slotKey: "antithesis",
22156
+ label: "Antithesis",
22157
+ order: 2,
22158
+ minCards: 1,
22159
+ maxCards: 1,
22160
+ validationRules: {
22161
+ allowedTypes: ["major"]
22162
+ },
22163
+ manualSelectionRules: {
22164
+ allowedTypes: ["major"]
22165
+ },
22166
+ drawRules: {
22167
+ allowedTypes: ["major"]
22168
+ }
22169
+ },
22170
+ {
22171
+ slotKey: "synthesis",
22172
+ label: "Synthesis",
22173
+ order: 3,
22174
+ minCards: 1,
22175
+ maxCards: 1,
22176
+ validationRules: {
22177
+ allowedTypes: ["major"]
22178
+ },
22179
+ manualSelectionRules: {
22180
+ allowedTypes: ["major"]
22181
+ },
22182
+ drawRules: {
22183
+ allowedTypes: ["major"]
22184
+ }
22185
+ }
22186
+ ]
22187
+ },
22188
+ {
22189
+ spreadId: "tree-of-life-reading",
22190
+ label: "Tree of Life Reading",
22191
+ description: "Ten numbered minor arcana slots mapped to the spheres plus four Daath court cards.",
22192
+ slots: [
22193
+ {
22194
+ slotKey: "kether",
22195
+ label: "Kether",
22196
+ order: 1,
22197
+ minCards: 1,
22198
+ maxCards: 1,
22199
+ validationRules: {
22200
+ allowedTypes: ["minor"],
22201
+ requiredRank: "ace"
22202
+ },
22203
+ manualSelectionRules: {
22204
+ allowedTypes: ["minor"],
22205
+ requiredRank: "ace"
22206
+ },
22207
+ drawRules: {
22208
+ allowedTypes: ["minor"],
22209
+ requiredRank: "ace"
22210
+ }
22211
+ },
22212
+ {
22213
+ slotKey: "chokhmah",
22214
+ label: "Chokhmah",
22215
+ order: 2,
22216
+ minCards: 1,
22217
+ maxCards: 1,
22218
+ validationRules: {
22219
+ allowedTypes: ["minor"],
22220
+ requiredRank: "2"
22221
+ },
22222
+ manualSelectionRules: {
22223
+ allowedTypes: ["minor"],
22224
+ requiredRank: "2"
22225
+ },
22226
+ drawRules: {
22227
+ allowedTypes: ["minor"],
22228
+ requiredRank: "2"
22229
+ }
22230
+ },
22231
+ {
22232
+ slotKey: "binah",
22233
+ label: "Binah",
22234
+ order: 3,
22235
+ minCards: 1,
22236
+ maxCards: 1,
22237
+ validationRules: {
22238
+ allowedTypes: ["minor"],
22239
+ requiredRank: "3"
22240
+ },
22241
+ manualSelectionRules: {
22242
+ allowedTypes: ["minor"],
22243
+ requiredRank: "3"
22244
+ },
22245
+ drawRules: {
22246
+ allowedTypes: ["minor"],
22247
+ requiredRank: "3"
22248
+ }
22249
+ },
22250
+ {
22251
+ slotKey: "chesed",
22252
+ label: "Chesed",
22253
+ order: 4,
22254
+ minCards: 1,
22255
+ maxCards: 1,
22256
+ validationRules: {
22257
+ allowedTypes: ["minor"],
22258
+ requiredRank: "4"
22259
+ },
22260
+ manualSelectionRules: {
22261
+ allowedTypes: ["minor"],
22262
+ requiredRank: "4"
22263
+ },
22264
+ drawRules: {
22265
+ allowedTypes: ["minor"],
22266
+ requiredRank: "4"
22267
+ }
22268
+ },
22269
+ {
22270
+ slotKey: "geburah",
22271
+ label: "Geburah",
22272
+ order: 5,
22273
+ minCards: 1,
22274
+ maxCards: 1,
22275
+ validationRules: {
22276
+ allowedTypes: ["minor"],
22277
+ requiredRank: "5"
22278
+ },
22279
+ manualSelectionRules: {
22280
+ allowedTypes: ["minor"],
22281
+ requiredRank: "5"
22282
+ },
22283
+ drawRules: {
22284
+ allowedTypes: ["minor"],
22285
+ requiredRank: "5"
22286
+ }
22287
+ },
22288
+ {
22289
+ slotKey: "tiphareth",
22290
+ label: "Tiphareth",
22291
+ order: 6,
22292
+ minCards: 1,
22293
+ maxCards: 1,
22294
+ validationRules: {
22295
+ allowedTypes: ["minor"],
22296
+ requiredRank: "6"
22297
+ },
22298
+ manualSelectionRules: {
22299
+ allowedTypes: ["minor"],
22300
+ requiredRank: "6"
22301
+ },
22302
+ drawRules: {
22303
+ allowedTypes: ["minor"],
22304
+ requiredRank: "6"
22305
+ }
22306
+ },
22307
+ {
22308
+ slotKey: "netzach",
22309
+ label: "Netzach",
22310
+ order: 7,
22311
+ minCards: 1,
22312
+ maxCards: 1,
22313
+ validationRules: {
22314
+ allowedTypes: ["minor"],
22315
+ requiredRank: "7"
22316
+ },
22317
+ manualSelectionRules: {
22318
+ allowedTypes: ["minor"],
22319
+ requiredRank: "7"
22320
+ },
22321
+ drawRules: {
22322
+ allowedTypes: ["minor"],
22323
+ requiredRank: "7"
22324
+ }
22325
+ },
22326
+ {
22327
+ slotKey: "hod",
22328
+ label: "Hod",
22329
+ order: 8,
22330
+ minCards: 1,
22331
+ maxCards: 1,
22332
+ validationRules: {
22333
+ allowedTypes: ["minor"],
22334
+ requiredRank: "8"
22335
+ },
22336
+ manualSelectionRules: {
22337
+ allowedTypes: ["minor"],
22338
+ requiredRank: "8"
22339
+ },
22340
+ drawRules: {
22341
+ allowedTypes: ["minor"],
22342
+ requiredRank: "8"
22343
+ }
22344
+ },
22345
+ {
22346
+ slotKey: "yesod",
22347
+ label: "Yesod",
22348
+ order: 9,
22349
+ minCards: 1,
22350
+ maxCards: 1,
22351
+ validationRules: {
22352
+ allowedTypes: ["minor"],
22353
+ requiredRank: "9"
22354
+ },
22355
+ manualSelectionRules: {
22356
+ allowedTypes: ["minor"],
22357
+ requiredRank: "9"
22358
+ },
22359
+ drawRules: {
22360
+ allowedTypes: ["minor"],
22361
+ requiredRank: "9"
22362
+ }
22363
+ },
22364
+ {
22365
+ slotKey: "malkuth",
22366
+ label: "Malkuth",
22367
+ order: 10,
22368
+ minCards: 1,
22369
+ maxCards: 1,
22370
+ validationRules: {
22371
+ allowedTypes: ["minor"],
22372
+ requiredRank: "10"
22373
+ },
22374
+ manualSelectionRules: {
22375
+ allowedTypes: ["minor"],
22376
+ requiredRank: "10"
22377
+ },
22378
+ drawRules: {
22379
+ allowedTypes: ["minor"],
22380
+ requiredRank: "10"
22381
+ }
22382
+ },
22383
+ {
22384
+ slotKey: "daath",
22385
+ label: "Daath",
22386
+ order: 11,
22387
+ minCards: 4,
22388
+ maxCards: 4,
22389
+ validationRules: {
22390
+ allowedTypes: ["daat+royalship"]
22391
+ },
22392
+ manualSelectionRules: {
22393
+ allowedTypes: ["daat+royalship"]
22394
+ },
22395
+ drawRules: {
22396
+ allowedTypes: ["daat+royalship"]
22397
+ }
22398
+ }
22399
+ ]
22400
+ },
22401
+ {
22402
+ spreadId: "celtic-cross",
22403
+ label: "Celtic Cross",
22404
+ description: "Classic ten-card Celtic Cross spread.",
22405
+ slots: [
22406
+ {
22407
+ slotKey: "present",
22408
+ label: "The Present",
22409
+ order: 1,
22410
+ minCards: 1,
22411
+ maxCards: 1,
22412
+ metadata: {
22413
+ displayLabel: "1."
22414
+ }
22415
+ },
22416
+ {
22417
+ slotKey: "challenge",
22418
+ label: "The Challenge",
22419
+ order: 2,
22420
+ minCards: 1,
22421
+ maxCards: 1,
22422
+ metadata: {
22423
+ displayLabel: "2.",
22424
+ orientation: "sideways"
22425
+ }
22426
+ },
22427
+ {
22428
+ slotKey: "above",
22429
+ label: "Above",
22430
+ order: 3,
22431
+ minCards: 1,
22432
+ maxCards: 1,
22433
+ metadata: {
22434
+ displayLabel: "3."
22435
+ }
22436
+ },
22437
+ {
22438
+ slotKey: "below",
22439
+ label: "Below",
22440
+ order: 4,
22441
+ minCards: 1,
22442
+ maxCards: 1,
22443
+ metadata: {
22444
+ displayLabel: "4."
22445
+ }
22446
+ },
22447
+ {
22448
+ slotKey: "behind",
22449
+ label: "Behind",
22450
+ order: 5,
22451
+ minCards: 1,
22452
+ maxCards: 1,
22453
+ metadata: {
22454
+ displayLabel: "5."
22455
+ }
22456
+ },
22457
+ {
22458
+ slotKey: "before",
22459
+ label: "Before",
22460
+ order: 6,
22461
+ minCards: 1,
22462
+ maxCards: 1,
22463
+ metadata: {
22464
+ displayLabel: "6."
22465
+ }
22466
+ },
22467
+ {
22468
+ slotKey: "self",
22469
+ label: "Self",
22470
+ order: 7,
22471
+ minCards: 1,
22472
+ maxCards: 1,
22473
+ metadata: {
22474
+ displayLabel: "7."
22475
+ }
22476
+ },
22477
+ {
22478
+ slotKey: "environment",
22479
+ label: "Environment",
22480
+ order: 8,
22481
+ minCards: 1,
22482
+ maxCards: 1,
22483
+ metadata: {
22484
+ displayLabel: "8."
22485
+ }
22486
+ },
22487
+ {
22488
+ slotKey: "hopes-fears",
22489
+ label: "Hopes/Fears",
22490
+ order: 9,
22491
+ minCards: 1,
22492
+ maxCards: 1,
22493
+ metadata: {
22494
+ displayLabel: "9."
22495
+ }
22496
+ },
22497
+ {
22498
+ slotKey: "outcome",
22499
+ label: "Outcome",
22500
+ order: 10,
22501
+ minCards: 1,
22502
+ maxCards: 1,
22503
+ metadata: {
22504
+ displayLabel: "10."
22505
+ }
22506
+ }
22507
+ ]
22508
+ },
22509
+ {
22510
+ spreadId: "event-reading",
22511
+ label: "Event Reading",
22512
+ description: "Papus-style event spread with outer minor/court cards, seven major cards, and an inquirer card.",
22513
+ contextRequirements: ["inquirerGender"],
22514
+ slots: [
22515
+ createEventOuterSlot(1, "past"),
22516
+ createEventOuterSlot(2, "past"),
22517
+ createEventOuterSlot(3, "past"),
22518
+ createEventOuterSlot(4, "past"),
22519
+ createEventOuterSlot(5, "present"),
22520
+ createEventOuterSlot(6, "present"),
22521
+ createEventOuterSlot(7, "present"),
22522
+ createEventOuterSlot(8, "present"),
22523
+ createEventOuterSlot(9, "future"),
22524
+ createEventOuterSlot(10, "future"),
22525
+ createEventOuterSlot(11, "future"),
22526
+ createEventOuterSlot(12, "future"),
22527
+ createEventInnerSlot(
22528
+ 1,
22529
+ "Commencement",
22530
+ "Character of the beginning phase."
22531
+ ),
22532
+ createEventInnerSlot(2, "Apogee", "Peak or zenith of the event."),
22533
+ createEventInnerSlot(
22534
+ 3,
22535
+ "Decline/Obstacle",
22536
+ "Challenges, obstacles, or decline."
22537
+ ),
22538
+ createEventInnerSlot(4, "Fall", "Conclusion or end phase."),
22539
+ createEventInnerSlot(
22540
+ 5,
22541
+ "The Past",
22542
+ "Special character or influence in the past."
22543
+ ),
22544
+ createEventInnerSlot(
22545
+ 6,
22546
+ "The Present",
22547
+ "Special character or influence in the present."
22548
+ ),
22549
+ createEventInnerSlot(
22550
+ 7,
22551
+ "The Future",
22552
+ "Special character or influence to come."
22553
+ ),
22554
+ {
22555
+ slotKey: "inquirer",
22556
+ label: "Inquirer",
22557
+ order: 200,
22558
+ minCards: 1,
22559
+ maxCards: 1,
22560
+ validationRules: {
22561
+ allowedTypes: ["major"]
22562
+ },
22563
+ manualSelectionRules: {
22564
+ allowedTypes: ["major"],
22565
+ allowedCardFilenames: [
22566
+ "01_the_magician",
22567
+ "02_the_high_priestess"
22568
+ ]
22569
+ },
22570
+ drawRules: {
22571
+ allowedTypes: ["major"]
22572
+ },
22573
+ metadata: {
22574
+ displayLabel: "Inquirer",
22575
+ groupKey: "center",
22576
+ note: "The querent's energy in this reading."
22577
+ }
22578
+ }
22579
+ ],
22580
+ specialRules: {
22581
+ inquirerCard: {
22582
+ slotKey: "inquirer",
22583
+ sourceSlotKeys: [...EVENT_INNER_SLOT_KEYS],
22584
+ cardNumbersByGender: {
22585
+ man: 1,
22586
+ woman: 2
22587
+ }
22588
+ }
22589
+ }
22590
+ }
22591
+ ];
22592
+ var TAROT_SPREAD_BY_ID = new Map(
22593
+ TAROT_SPREADS.map((spread) => [spread.spreadId, spread])
22594
+ );
21434
22595
 
21435
22596
  // src/cli/commands/tarot.ts
21436
22597
  function findCardsByQuery(query) {