kaabalah 6.2.2 → 6.2.4

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 CHANGED
@@ -83,6 +83,7 @@ import {
83
83
  getTarotArchetype,
84
84
  getTarotCardByNumber,
85
85
  getTarotCardNumber,
86
+ getTarotCorrespondenceProfile,
86
87
  getTarotCardProfile,
87
88
  getTarotRepresentation,
88
89
  listTarotTrees,
@@ -132,6 +133,29 @@ Downstream apps should consume the returned `imageUrl` (or `assetPath`) from the
132
133
 
133
134
  Tarot numbering is tree-scoped. In the current library release the canonical default tree is `kaabalah`, and `getTarotCardProfile()` resolves its `tarotCardNumber` from the direct `tarotArkAnnu ↔ number` correspondence in that tree. Use `getTarotCardNumber()` / `getTarotCardByNumber()` for forward and reverse numbering lookups, and treat raw `ARKANNUS` entries as compatibility data rather than the source of truth.
134
135
 
136
+ For display-facing correspondences, use `getTarotCorrespondenceProfile()` instead of rebuilding card bundles in the app:
137
+
138
+ ```typescript
139
+ const pageOfWands = getTarotCorrespondenceProfile({
140
+ tarotCardName: "Page of Wands"
141
+ });
142
+ // {
143
+ // kind: "court",
144
+ // courtRank: "page",
145
+ // correspondences: {
146
+ // element: { id: "westernElement:Fire", label: "Fire" }
147
+ // }
148
+ // }
149
+
150
+ const magician = getTarotCorrespondenceProfile({
151
+ tarotCardName: "The Magician"
152
+ });
153
+ // includes typed astrology correspondences plus path metadata
154
+ // { pathId, pathNumber, pathSlug, hebrewLetter, fromSphere, toSphere, meaning }
155
+ ```
156
+
157
+ Downstream apps no longer need to parse card-name prefixes like `Page of ...` to determine court rank, or rebuild the same major/court/minor correspondence collapsing logic from raw tree traversals.
158
+
135
159
  Observable kaabalah-default renumbering:
136
160
 
137
161
  - `Ten of Swords` is `55` and `Ace of Swords` is `64`
@@ -110,14 +110,14 @@ declare function closeSwissEph(): void;
110
110
  * Convert a local date-time (given via IANA time zone, explicit UTC offset, or auto from lat/lon)
111
111
  * into a UTC Date for Swiss Ephemeris (which expects UT).
112
112
  */
113
- type LocalDateTimeParts = {
113
+ interface LocalDateTimeParts {
114
114
  year: number;
115
115
  month: number;
116
116
  day: number;
117
117
  hour?: number;
118
118
  minute?: number;
119
119
  second?: number;
120
- };
120
+ }
121
121
  type TimeZoneOptions = {
122
122
  /**
123
123
  * IANA time zone
@@ -451,7 +451,13 @@ declare function getFirdaria(birthDate: Date, isDiurnal: boolean, targetDate?: D
451
451
  */
452
452
 
453
453
  interface BirthChartOptions {
454
- date: Date;
454
+ /**
455
+ * Local civil date-time for the chart moment.
456
+ * Prefer `LocalDateTimeParts` when the source data comes from separate
457
+ * date/time inputs so callers do not have to encode wall-clock parts into a
458
+ * browser-local `Date`.
459
+ */
460
+ date: Date | LocalDateTimeParts;
455
461
  latitude: number;
456
462
  longitude: number;
457
463
  houseSystem?: HouseSystem;
@@ -608,4 +614,4 @@ interface SolarReturnChart {
608
614
  */
609
615
  declare function getSolarReturnChart(options: SolarReturnOptions): Promise<SolarReturnChart>;
610
616
 
611
- export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, type AngleType, type AnnualProfection, type AspectEdge, type AspectName, type AspectPerfection, type AspectSpec, type AstrocartographyHorizonLine, type AstrocartographyHorizonPoint, type AstrocartographyLineProximity, type AstrocartographyMap, type AstrocartographyMapOptions, type AstrocartographyMeridianLine, type AstrocartographyParan, type AstrocartographyQueryOptions, type AstrocartographyQueryResult, type AzaltResult, type BirthChart, type BirthChartOptions, CalcFlag, type CompositeChart, type CompositeChartOptions, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, type DecanResult, type DodecatemoriaResult, EXALTATIONS, type EssentialDignityResult, type FirdariaMajorPeriod, type FirdariaOptions, type FirdariaPlanet, type FirdariaResult, type FirdariaSubPeriod, HouseSystem, type HydratedNode, type HydratedPlanet, type MonthlyProfection, type MonthlyProfectionsResult, PLANET_AND_NODE_NAMES, Planet, type PlanetEquatorial, type ResolveSwissEphRuntimeAssetsOptions, RiseTransitFlag, SIGNS, SLOW_PLANETS, type Sign, type SolarReturnChart, type SolarReturnOptions, type SwissEphRuntimeAssetPaths, type SynastryChart, type SynastryChartOptions, type TraditionalPlanet, type TransitAspectEdge, type TransitAspectPoint, type TransitChart, type TransitChartOptions, type TransitPlanet, type TransitRangeOptions, type TransitRangeResult, type TwoChartOptions, VirtualNodes, type ZodiacPosition, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint };
617
+ export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, type AngleType, type AnnualProfection, type AspectEdge, type AspectName, type AspectPerfection, type AspectSpec, type AstrocartographyHorizonLine, type AstrocartographyHorizonPoint, type AstrocartographyLineProximity, type AstrocartographyMap, type AstrocartographyMapOptions, type AstrocartographyMeridianLine, type AstrocartographyParan, type AstrocartographyQueryOptions, type AstrocartographyQueryResult, type AzaltResult, type BirthChart, type BirthChartOptions, CalcFlag, type CompositeChart, type CompositeChartOptions, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, type DecanResult, type DodecatemoriaResult, EXALTATIONS, type EssentialDignityResult, type FirdariaMajorPeriod, type FirdariaOptions, type FirdariaPlanet, type FirdariaResult, type FirdariaSubPeriod, HouseSystem, type HydratedNode, type HydratedPlanet, type LocalDateTimeParts, type MonthlyProfection, type MonthlyProfectionsResult, PLANET_AND_NODE_NAMES, Planet, type PlanetEquatorial, type ResolveSwissEphRuntimeAssetsOptions, RiseTransitFlag, SIGNS, SLOW_PLANETS, type Sign, type SolarReturnChart, type SolarReturnOptions, type SwissEphRuntimeAssetPaths, type SynastryChart, type SynastryChartOptions, type TraditionalPlanet, type TransitAspectEdge, type TransitAspectPoint, type TransitChart, type TransitChartOptions, type TransitPlanet, type TransitRangeOptions, type TransitRangeResult, type TwoChartOptions, VirtualNodes, type ZodiacPosition, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint };
@@ -110,14 +110,14 @@ declare function closeSwissEph(): void;
110
110
  * Convert a local date-time (given via IANA time zone, explicit UTC offset, or auto from lat/lon)
111
111
  * into a UTC Date for Swiss Ephemeris (which expects UT).
112
112
  */
113
- type LocalDateTimeParts = {
113
+ interface LocalDateTimeParts {
114
114
  year: number;
115
115
  month: number;
116
116
  day: number;
117
117
  hour?: number;
118
118
  minute?: number;
119
119
  second?: number;
120
- };
120
+ }
121
121
  type TimeZoneOptions = {
122
122
  /**
123
123
  * IANA time zone
@@ -451,7 +451,13 @@ declare function getFirdaria(birthDate: Date, isDiurnal: boolean, targetDate?: D
451
451
  */
452
452
 
453
453
  interface BirthChartOptions {
454
- date: Date;
454
+ /**
455
+ * Local civil date-time for the chart moment.
456
+ * Prefer `LocalDateTimeParts` when the source data comes from separate
457
+ * date/time inputs so callers do not have to encode wall-clock parts into a
458
+ * browser-local `Date`.
459
+ */
460
+ date: Date | LocalDateTimeParts;
455
461
  latitude: number;
456
462
  longitude: number;
457
463
  houseSystem?: HouseSystem;
@@ -608,4 +614,4 @@ interface SolarReturnChart {
608
614
  */
609
615
  declare function getSolarReturnChart(options: SolarReturnOptions): Promise<SolarReturnChart>;
610
616
 
611
- export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, type AngleType, type AnnualProfection, type AspectEdge, type AspectName, type AspectPerfection, type AspectSpec, type AstrocartographyHorizonLine, type AstrocartographyHorizonPoint, type AstrocartographyLineProximity, type AstrocartographyMap, type AstrocartographyMapOptions, type AstrocartographyMeridianLine, type AstrocartographyParan, type AstrocartographyQueryOptions, type AstrocartographyQueryResult, type AzaltResult, type BirthChart, type BirthChartOptions, CalcFlag, type CompositeChart, type CompositeChartOptions, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, type DecanResult, type DodecatemoriaResult, EXALTATIONS, type EssentialDignityResult, type FirdariaMajorPeriod, type FirdariaOptions, type FirdariaPlanet, type FirdariaResult, type FirdariaSubPeriod, HouseSystem, type HydratedNode, type HydratedPlanet, type MonthlyProfection, type MonthlyProfectionsResult, PLANET_AND_NODE_NAMES, Planet, type PlanetEquatorial, type ResolveSwissEphRuntimeAssetsOptions, RiseTransitFlag, SIGNS, SLOW_PLANETS, type Sign, type SolarReturnChart, type SolarReturnOptions, type SwissEphRuntimeAssetPaths, type SynastryChart, type SynastryChartOptions, type TraditionalPlanet, type TransitAspectEdge, type TransitAspectPoint, type TransitChart, type TransitChartOptions, type TransitPlanet, type TransitRangeOptions, type TransitRangeResult, type TwoChartOptions, VirtualNodes, type ZodiacPosition, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint };
617
+ export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, type AngleType, type AnnualProfection, type AspectEdge, type AspectName, type AspectPerfection, type AspectSpec, type AstrocartographyHorizonLine, type AstrocartographyHorizonPoint, type AstrocartographyLineProximity, type AstrocartographyMap, type AstrocartographyMapOptions, type AstrocartographyMeridianLine, type AstrocartographyParan, type AstrocartographyQueryOptions, type AstrocartographyQueryResult, type AzaltResult, type BirthChart, type BirthChartOptions, CalcFlag, type CompositeChart, type CompositeChartOptions, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, type DecanResult, type DodecatemoriaResult, EXALTATIONS, type EssentialDignityResult, type FirdariaMajorPeriod, type FirdariaOptions, type FirdariaPlanet, type FirdariaResult, type FirdariaSubPeriod, HouseSystem, type HydratedNode, type HydratedPlanet, type LocalDateTimeParts, type MonthlyProfection, type MonthlyProfectionsResult, PLANET_AND_NODE_NAMES, Planet, type PlanetEquatorial, type ResolveSwissEphRuntimeAssetsOptions, RiseTransitFlag, SIGNS, SLOW_PLANETS, type Sign, type SolarReturnChart, type SolarReturnOptions, type SwissEphRuntimeAssetPaths, type SynastryChart, type SynastryChartOptions, type TraditionalPlanet, type TransitAspectEdge, type TransitAspectPoint, type TransitChart, type TransitChartOptions, type TransitPlanet, type TransitRangeOptions, type TransitRangeResult, type TwoChartOptions, VirtualNodes, type ZodiacPosition, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint };
@@ -1,213 +1,213 @@
1
1
  'use strict';
2
2
 
3
- var chunk3JSPGVX3_js = require('../chunk-3JSPGVX3.js');
3
+ var chunk6O7MTBZN_js = require('../chunk-6O7MTBZN.js');
4
4
  require('../chunk-FM7WUVZV.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "ASTROCARTOGRAPHY_DEFAULT_PLANETS", {
9
9
  enumerable: true,
10
- get: function () { return chunk3JSPGVX3_js.ASTROCARTOGRAPHY_DEFAULT_PLANETS; }
10
+ get: function () { return chunk6O7MTBZN_js.ASTROCARTOGRAPHY_DEFAULT_PLANETS; }
11
11
  });
12
12
  Object.defineProperty(exports, "CalcFlag", {
13
13
  enumerable: true,
14
- get: function () { return chunk3JSPGVX3_js.CalcFlag; }
14
+ get: function () { return chunk6O7MTBZN_js.CalcFlag; }
15
15
  });
16
16
  Object.defineProperty(exports, "DEFAULT_ASPECT_SPECS", {
17
17
  enumerable: true,
18
- get: function () { return chunk3JSPGVX3_js.DEFAULT_ASPECT_SPECS; }
18
+ get: function () { return chunk6O7MTBZN_js.DEFAULT_ASPECT_SPECS; }
19
19
  });
20
20
  Object.defineProperty(exports, "DOMICILE_RULERS", {
21
21
  enumerable: true,
22
- get: function () { return chunk3JSPGVX3_js.DOMICILE_RULERS; }
22
+ get: function () { return chunk6O7MTBZN_js.DOMICILE_RULERS; }
23
23
  });
24
24
  Object.defineProperty(exports, "EXALTATIONS", {
25
25
  enumerable: true,
26
- get: function () { return chunk3JSPGVX3_js.EXALTATIONS; }
26
+ get: function () { return chunk6O7MTBZN_js.EXALTATIONS; }
27
27
  });
28
28
  Object.defineProperty(exports, "HouseSystem", {
29
29
  enumerable: true,
30
- get: function () { return chunk3JSPGVX3_js.HouseSystem; }
30
+ get: function () { return chunk6O7MTBZN_js.HouseSystem; }
31
31
  });
32
32
  Object.defineProperty(exports, "PLANET_AND_NODE_NAMES", {
33
33
  enumerable: true,
34
- get: function () { return chunk3JSPGVX3_js.PLANET_AND_NODE_NAMES; }
34
+ get: function () { return chunk6O7MTBZN_js.PLANET_AND_NODE_NAMES; }
35
35
  });
36
36
  Object.defineProperty(exports, "Planet", {
37
37
  enumerable: true,
38
- get: function () { return chunk3JSPGVX3_js.Planet; }
38
+ get: function () { return chunk6O7MTBZN_js.Planet; }
39
39
  });
40
40
  Object.defineProperty(exports, "RiseTransitFlag", {
41
41
  enumerable: true,
42
- get: function () { return chunk3JSPGVX3_js.RiseTransitFlag; }
42
+ get: function () { return chunk6O7MTBZN_js.RiseTransitFlag; }
43
43
  });
44
44
  Object.defineProperty(exports, "SIGNS", {
45
45
  enumerable: true,
46
- get: function () { return chunk3JSPGVX3_js.SIGNS; }
46
+ get: function () { return chunk6O7MTBZN_js.SIGNS; }
47
47
  });
48
48
  Object.defineProperty(exports, "SLOW_PLANETS", {
49
49
  enumerable: true,
50
- get: function () { return chunk3JSPGVX3_js.SLOW_PLANETS; }
50
+ get: function () { return chunk6O7MTBZN_js.SLOW_PLANETS; }
51
51
  });
52
52
  Object.defineProperty(exports, "VirtualNodes", {
53
53
  enumerable: true,
54
- get: function () { return chunk3JSPGVX3_js.VirtualNodes; }
54
+ get: function () { return chunk6O7MTBZN_js.VirtualNodes; }
55
55
  });
56
56
  Object.defineProperty(exports, "closeSwissEph", {
57
57
  enumerable: true,
58
- get: function () { return chunk3JSPGVX3_js.closeSwissEph; }
58
+ get: function () { return chunk6O7MTBZN_js.closeSwissEph; }
59
59
  });
60
60
  Object.defineProperty(exports, "computeAspects", {
61
61
  enumerable: true,
62
- get: function () { return chunk3JSPGVX3_js.computeAspects; }
62
+ get: function () { return chunk6O7MTBZN_js.computeAspects; }
63
63
  });
64
64
  Object.defineProperty(exports, "computeAstrocartographyMap", {
65
65
  enumerable: true,
66
- get: function () { return chunk3JSPGVX3_js.computeAstrocartographyMap; }
66
+ get: function () { return chunk6O7MTBZN_js.computeAstrocartographyMap; }
67
67
  });
68
68
  Object.defineProperty(exports, "computeEquatorialPositions", {
69
69
  enumerable: true,
70
- get: function () { return chunk3JSPGVX3_js.computeEquatorialPositions; }
70
+ get: function () { return chunk6O7MTBZN_js.computeEquatorialPositions; }
71
71
  });
72
72
  Object.defineProperty(exports, "computeGMST", {
73
73
  enumerable: true,
74
- get: function () { return chunk3JSPGVX3_js.computeGMST; }
74
+ get: function () { return chunk6O7MTBZN_js.computeGMST; }
75
75
  });
76
76
  Object.defineProperty(exports, "computeHorizonLongitude", {
77
77
  enumerable: true,
78
- get: function () { return chunk3JSPGVX3_js.computeHorizonLongitude; }
78
+ get: function () { return chunk6O7MTBZN_js.computeHorizonLongitude; }
79
79
  });
80
80
  Object.defineProperty(exports, "computeICLongitude", {
81
81
  enumerable: true,
82
- get: function () { return chunk3JSPGVX3_js.computeICLongitude; }
82
+ get: function () { return chunk6O7MTBZN_js.computeICLongitude; }
83
83
  });
84
84
  Object.defineProperty(exports, "computeMCLongitude", {
85
85
  enumerable: true,
86
- get: function () { return chunk3JSPGVX3_js.computeMCLongitude; }
86
+ get: function () { return chunk6O7MTBZN_js.computeMCLongitude; }
87
87
  });
88
88
  Object.defineProperty(exports, "computeMidpoints", {
89
89
  enumerable: true,
90
- get: function () { return chunk3JSPGVX3_js.computeMidpoints; }
90
+ get: function () { return chunk6O7MTBZN_js.computeMidpoints; }
91
91
  });
92
92
  Object.defineProperty(exports, "computeSynastryAspects", {
93
93
  enumerable: true,
94
- get: function () { return chunk3JSPGVX3_js.computeSynastryAspects; }
94
+ get: function () { return chunk6O7MTBZN_js.computeSynastryAspects; }
95
95
  });
96
96
  Object.defineProperty(exports, "computeTransitAspects", {
97
97
  enumerable: true,
98
- get: function () { return chunk3JSPGVX3_js.computeTransitAspects; }
98
+ get: function () { return chunk6O7MTBZN_js.computeTransitAspects; }
99
99
  });
100
100
  Object.defineProperty(exports, "findHouseOf", {
101
101
  enumerable: true,
102
- get: function () { return chunk3JSPGVX3_js.findHouseOf; }
102
+ get: function () { return chunk6O7MTBZN_js.findHouseOf; }
103
103
  });
104
104
  Object.defineProperty(exports, "findParansAtLatitude", {
105
105
  enumerable: true,
106
- get: function () { return chunk3JSPGVX3_js.findParansAtLatitude; }
106
+ get: function () { return chunk6O7MTBZN_js.findParansAtLatitude; }
107
107
  });
108
108
  Object.defineProperty(exports, "formatDegreeMinutes", {
109
109
  enumerable: true,
110
- get: function () { return chunk3JSPGVX3_js.formatDegreeMinutes; }
110
+ get: function () { return chunk6O7MTBZN_js.formatDegreeMinutes; }
111
111
  });
112
112
  Object.defineProperty(exports, "geographicAngularDifference", {
113
113
  enumerable: true,
114
- get: function () { return chunk3JSPGVX3_js.geographicAngularDifference; }
114
+ get: function () { return chunk6O7MTBZN_js.geographicAngularDifference; }
115
115
  });
116
116
  Object.defineProperty(exports, "getAnnualProfection", {
117
117
  enumerable: true,
118
- get: function () { return chunk3JSPGVX3_js.getAnnualProfection; }
118
+ get: function () { return chunk6O7MTBZN_js.getAnnualProfection; }
119
119
  });
120
120
  Object.defineProperty(exports, "getAspectMatch", {
121
121
  enumerable: true,
122
- get: function () { return chunk3JSPGVX3_js.getAspectMatch; }
122
+ get: function () { return chunk6O7MTBZN_js.getAspectMatch; }
123
123
  });
124
124
  Object.defineProperty(exports, "getBirthChart", {
125
125
  enumerable: true,
126
- get: function () { return chunk3JSPGVX3_js.getBirthChart; }
126
+ get: function () { return chunk6O7MTBZN_js.getBirthChart; }
127
127
  });
128
128
  Object.defineProperty(exports, "getCompositeChart", {
129
129
  enumerable: true,
130
- get: function () { return chunk3JSPGVX3_js.getCompositeChart; }
130
+ get: function () { return chunk6O7MTBZN_js.getCompositeChart; }
131
131
  });
132
132
  Object.defineProperty(exports, "getDecan", {
133
133
  enumerable: true,
134
- get: function () { return chunk3JSPGVX3_js.getDecan; }
134
+ get: function () { return chunk6O7MTBZN_js.getDecan; }
135
135
  });
136
136
  Object.defineProperty(exports, "getDetriment", {
137
137
  enumerable: true,
138
- get: function () { return chunk3JSPGVX3_js.getDetriment; }
138
+ get: function () { return chunk6O7MTBZN_js.getDetriment; }
139
139
  });
140
140
  Object.defineProperty(exports, "getDodecatemoria", {
141
141
  enumerable: true,
142
- get: function () { return chunk3JSPGVX3_js.getDodecatemoria; }
142
+ get: function () { return chunk6O7MTBZN_js.getDodecatemoria; }
143
143
  });
144
144
  Object.defineProperty(exports, "getDomicileRuler", {
145
145
  enumerable: true,
146
- get: function () { return chunk3JSPGVX3_js.getDomicileRuler; }
146
+ get: function () { return chunk6O7MTBZN_js.getDomicileRuler; }
147
147
  });
148
148
  Object.defineProperty(exports, "getEssentialDignity", {
149
149
  enumerable: true,
150
- get: function () { return chunk3JSPGVX3_js.getEssentialDignity; }
150
+ get: function () { return chunk6O7MTBZN_js.getEssentialDignity; }
151
151
  });
152
152
  Object.defineProperty(exports, "getExaltation", {
153
153
  enumerable: true,
154
- get: function () { return chunk3JSPGVX3_js.getExaltation; }
154
+ get: function () { return chunk6O7MTBZN_js.getExaltation; }
155
155
  });
156
156
  Object.defineProperty(exports, "getFall", {
157
157
  enumerable: true,
158
- get: function () { return chunk3JSPGVX3_js.getFall; }
158
+ get: function () { return chunk6O7MTBZN_js.getFall; }
159
159
  });
160
160
  Object.defineProperty(exports, "getFirdaria", {
161
161
  enumerable: true,
162
- get: function () { return chunk3JSPGVX3_js.getFirdaria; }
162
+ get: function () { return chunk6O7MTBZN_js.getFirdaria; }
163
163
  });
164
164
  Object.defineProperty(exports, "getMonthlyProfections", {
165
165
  enumerable: true,
166
- get: function () { return chunk3JSPGVX3_js.getMonthlyProfections; }
166
+ get: function () { return chunk6O7MTBZN_js.getMonthlyProfections; }
167
167
  });
168
168
  Object.defineProperty(exports, "getOppositeSign", {
169
169
  enumerable: true,
170
- get: function () { return chunk3JSPGVX3_js.getOppositeSign; }
170
+ get: function () { return chunk6O7MTBZN_js.getOppositeSign; }
171
171
  });
172
172
  Object.defineProperty(exports, "getSolarReturnChart", {
173
173
  enumerable: true,
174
- get: function () { return chunk3JSPGVX3_js.getSolarReturnChart; }
174
+ get: function () { return chunk6O7MTBZN_js.getSolarReturnChart; }
175
175
  });
176
176
  Object.defineProperty(exports, "getSwissEph", {
177
177
  enumerable: true,
178
- get: function () { return chunk3JSPGVX3_js.getSwissEph; }
178
+ get: function () { return chunk6O7MTBZN_js.getSwissEph; }
179
179
  });
180
180
  Object.defineProperty(exports, "getSynastryChart", {
181
181
  enumerable: true,
182
- get: function () { return chunk3JSPGVX3_js.getSynastryChart; }
182
+ get: function () { return chunk6O7MTBZN_js.getSynastryChart; }
183
183
  });
184
184
  Object.defineProperty(exports, "getTransitChart", {
185
185
  enumerable: true,
186
- get: function () { return chunk3JSPGVX3_js.getTransitChart; }
186
+ get: function () { return chunk6O7MTBZN_js.getTransitChart; }
187
187
  });
188
188
  Object.defineProperty(exports, "getTransitRange", {
189
189
  enumerable: true,
190
- get: function () { return chunk3JSPGVX3_js.getTransitRange; }
190
+ get: function () { return chunk6O7MTBZN_js.getTransitRange; }
191
191
  });
192
192
  Object.defineProperty(exports, "getZodiacPosition", {
193
193
  enumerable: true,
194
- get: function () { return chunk3JSPGVX3_js.getZodiacPosition; }
194
+ get: function () { return chunk6O7MTBZN_js.getZodiacPosition; }
195
195
  });
196
196
  Object.defineProperty(exports, "normalizeAngle", {
197
197
  enumerable: true,
198
- get: function () { return chunk3JSPGVX3_js.normalizeAngle; }
198
+ get: function () { return chunk6O7MTBZN_js.normalizeAngle; }
199
199
  });
200
200
  Object.defineProperty(exports, "queryAstrocartographyLocation", {
201
201
  enumerable: true,
202
- get: function () { return chunk3JSPGVX3_js.queryAstrocartographyLocation; }
202
+ get: function () { return chunk6O7MTBZN_js.queryAstrocartographyLocation; }
203
203
  });
204
204
  Object.defineProperty(exports, "resolveSwissEphRuntimeAssets", {
205
205
  enumerable: true,
206
- get: function () { return chunk3JSPGVX3_js.resolveSwissEphRuntimeAssets; }
206
+ get: function () { return chunk6O7MTBZN_js.resolveSwissEphRuntimeAssets; }
207
207
  });
208
208
  Object.defineProperty(exports, "shorterArcMidpoint", {
209
209
  enumerable: true,
210
- get: function () { return chunk3JSPGVX3_js.shorterArcMidpoint; }
210
+ get: function () { return chunk6O7MTBZN_js.shorterArcMidpoint; }
211
211
  });
212
212
  //# sourceMappingURL=index.js.map
213
213
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, CalcFlag, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, EXALTATIONS, HouseSystem, PLANET_AND_NODE_NAMES, Planet, RiseTransitFlag, SIGNS, SLOW_PLANETS, VirtualNodes, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint } from '../chunk-TZJU6SRX.mjs';
1
+ export { ASTROCARTOGRAPHY_DEFAULT_PLANETS, CalcFlag, DEFAULT_ASPECT_SPECS, DOMICILE_RULERS, EXALTATIONS, HouseSystem, PLANET_AND_NODE_NAMES, Planet, RiseTransitFlag, SIGNS, SLOW_PLANETS, VirtualNodes, closeSwissEph, computeAspects, computeAstrocartographyMap, computeEquatorialPositions, computeGMST, computeHorizonLongitude, computeICLongitude, computeMCLongitude, computeMidpoints, computeSynastryAspects, computeTransitAspects, findHouseOf, findParansAtLatitude, formatDegreeMinutes, geographicAngularDifference, getAnnualProfection, getAspectMatch, getBirthChart, getCompositeChart, getDecan, getDetriment, getDodecatemoria, getDomicileRuler, getEssentialDignity, getExaltation, getFall, getFirdaria, getMonthlyProfections, getOppositeSign, getSolarReturnChart, getSwissEph, getSynastryChart, getTransitChart, getTransitRange, getZodiacPosition, normalizeAngle, queryAstrocartographyLocation, resolveSwissEphRuntimeAssets, shorterArcMidpoint } from '../chunk-PWYOHULD.mjs';
2
2
  import '../chunk-WY6NIR2V.mjs';
3
3
  //# sourceMappingURL=index.mjs.map
4
4
  //# sourceMappingURL=index.mjs.map
@@ -985,6 +985,12 @@ function buildDefaultArkannus(cards) {
985
985
  });
986
986
  }
987
987
  var ARKANNUS = buildDefaultArkannus(RAW_ARKANNUS);
988
+ var TAROT_COURT_RANKS = [
989
+ "king",
990
+ "queen",
991
+ "knight",
992
+ "page"
993
+ ];
988
994
  var MAJOR_ARCANA_CARDS = ARKANNUS.filter(
989
995
  (card) => card.type === "major" && majorArcana.includes(card.tarotCardFilename)
990
996
  );
@@ -994,6 +1000,13 @@ function toTarotCardKind(card) {
994
1000
  }
995
1001
  return card.type === "minor" ? "minor" : "court";
996
1002
  }
1003
+ function toTarotCourtRank(card) {
1004
+ if (card.type !== "daat+royalship") {
1005
+ return void 0;
1006
+ }
1007
+ const [rank] = card.tarotCardFilename.split("_");
1008
+ return TAROT_COURT_RANKS.includes(rank) ? rank : void 0;
1009
+ }
997
1010
  function toTarotAssetPathType(card) {
998
1011
  return card.type;
999
1012
  }
@@ -1015,6 +1028,180 @@ function toAstrologyCorrespondence(node) {
1015
1028
  label: parseId(node.id)
1016
1029
  };
1017
1030
  }
1031
+ function getTarotCorrespondenceTree(treeId = DEFAULT_TAROT_TREE_ID) {
1032
+ return getCanonicalTree({
1033
+ system: treeId,
1034
+ parts: ["westernAstrology", "tarot"]
1035
+ });
1036
+ }
1037
+ function getCorrespondenceNodes(tree, sourceId, type, depth = 1, limit) {
1038
+ return tree.getCorrespondences(sourceId, {
1039
+ type,
1040
+ depth,
1041
+ limit
1042
+ }).map(({ node }) => node);
1043
+ }
1044
+ function getFirstCorrespondenceNode(tree, sourceId, type, depth = 1) {
1045
+ return getCorrespondenceNodes(tree, sourceId, type, depth, 1)[0];
1046
+ }
1047
+ function toCorrespondenceNode(node) {
1048
+ if (!node) {
1049
+ return void 0;
1050
+ }
1051
+ return {
1052
+ id: node.id,
1053
+ label: parseId(node.id)
1054
+ };
1055
+ }
1056
+ function toUniqueCorrespondenceNodes(nodes) {
1057
+ const seen = /* @__PURE__ */ new Set();
1058
+ return nodes.flatMap((node) => {
1059
+ const key = String(node.id);
1060
+ if (seen.has(key)) {
1061
+ return [];
1062
+ }
1063
+ seen.add(key);
1064
+ return [toCorrespondenceNode(node)];
1065
+ });
1066
+ }
1067
+ function toTarotCorrespondenceProfileBase(card) {
1068
+ return {
1069
+ tarotArkAnnuId: card.tarotArkAnnuId,
1070
+ tarotCardNumber: card.tarotCardNumber,
1071
+ tarotCardName: card.tarotCardName,
1072
+ tarotCardFilename: card.tarotCardFilename,
1073
+ tarotMeaning: card.tarotMeaning,
1074
+ suit: card.suit
1075
+ };
1076
+ }
1077
+ function resolveTarotCardProfileForTree(lookup, treeId = DEFAULT_TAROT_TREE_ID) {
1078
+ if ("tarotCardNumber" in lookup) {
1079
+ return getTarotCardByNumber(lookup.tarotCardNumber, treeId);
1080
+ }
1081
+ return getTarotCardProfile(lookup);
1082
+ }
1083
+ function buildMajorCorrespondenceProfile(card, tree) {
1084
+ const pathNode = getFirstCorrespondenceNode(
1085
+ tree,
1086
+ card.tarotArkAnnuId,
1087
+ "path" /* PATH */
1088
+ );
1089
+ const hebrewLetterNode = pathNode ? getFirstCorrespondenceNode(
1090
+ tree,
1091
+ pathNode.id,
1092
+ "hebrewLetter" /* HEBREW_LETTER */
1093
+ ) : void 0;
1094
+ const pathNumberNode = pathNode ? getFirstCorrespondenceNode(tree, pathNode.id, "number" /* NUMBER */) : void 0;
1095
+ const pathNumber = pathNumberNode ? Number.parseInt(parseId(pathNumberNode.id), 10) : Number.NaN;
1096
+ const fromSphereNode = pathNode?.data?.from ? tree.getNode(pathNode.data.from) : void 0;
1097
+ const toSphereNode = pathNode?.data?.to ? tree.getNode(pathNode.data.to) : void 0;
1098
+ if (!pathNode || !hebrewLetterNode || !fromSphereNode || !toSphereNode || !Number.isFinite(pathNumber)) {
1099
+ return void 0;
1100
+ }
1101
+ return {
1102
+ ...toTarotCorrespondenceProfileBase(card),
1103
+ kind: "major",
1104
+ correspondences: {
1105
+ astrology: getCorrespondenceNodes(
1106
+ tree,
1107
+ pathNode.id,
1108
+ [
1109
+ "westernElement" /* WESTERN_ELEMENT */,
1110
+ "planet" /* PLANET */,
1111
+ "westernZodiacSign" /* WESTERN_ZODIAC_SIGN */
1112
+ ]
1113
+ ).map(
1114
+ (node) => toAstrologyCorrespondence(
1115
+ node
1116
+ )
1117
+ ),
1118
+ path: {
1119
+ pathId: pathNode.id,
1120
+ pathNumber,
1121
+ pathSlug: parseId(hebrewLetterNode.id).toLowerCase(),
1122
+ meaning: pathNode.data?.meaning,
1123
+ hebrewLetter: toCorrespondenceNode(hebrewLetterNode),
1124
+ fromSphere: toCorrespondenceNode(
1125
+ fromSphereNode
1126
+ ),
1127
+ toSphere: toCorrespondenceNode(
1128
+ toSphereNode
1129
+ )
1130
+ }
1131
+ }
1132
+ };
1133
+ }
1134
+ function buildCourtCorrespondenceProfile(card, tree) {
1135
+ const suitNode = getFirstCorrespondenceNode(
1136
+ tree,
1137
+ card.tarotArkAnnuId,
1138
+ "tarotSuit" /* TAROT_SUIT */
1139
+ );
1140
+ if (!card.courtRank) {
1141
+ return void 0;
1142
+ }
1143
+ if (card.courtRank === "page") {
1144
+ const elementNode = suitNode ? getFirstCorrespondenceNode(
1145
+ tree,
1146
+ suitNode.id,
1147
+ "westernElement" /* WESTERN_ELEMENT */
1148
+ ) : void 0;
1149
+ if (!elementNode) {
1150
+ return void 0;
1151
+ }
1152
+ return {
1153
+ ...toTarotCorrespondenceProfileBase(card),
1154
+ kind: "court",
1155
+ courtRank: "page",
1156
+ correspondences: {
1157
+ element: toCorrespondenceNode(elementNode)
1158
+ }
1159
+ };
1160
+ }
1161
+ const signNode = getFirstCorrespondenceNode(
1162
+ tree,
1163
+ card.tarotArkAnnuId,
1164
+ "westernZodiacSign" /* WESTERN_ZODIAC_SIGN */
1165
+ );
1166
+ if (!signNode) {
1167
+ return void 0;
1168
+ }
1169
+ return {
1170
+ ...toTarotCorrespondenceProfileBase(card),
1171
+ kind: "court",
1172
+ courtRank: card.courtRank,
1173
+ correspondences: {
1174
+ sign: toCorrespondenceNode(signNode),
1175
+ planets: toUniqueCorrespondenceNodes(
1176
+ getCorrespondenceNodes(
1177
+ tree,
1178
+ signNode.id,
1179
+ "planet" /* PLANET */
1180
+ )
1181
+ )
1182
+ }
1183
+ };
1184
+ }
1185
+ function buildMinorCorrespondenceProfile(card, tree) {
1186
+ const sphereNode = getFirstCorrespondenceNode(
1187
+ tree,
1188
+ card.tarotArkAnnuId,
1189
+ "sphere" /* SPHERE */
1190
+ );
1191
+ if (!sphereNode) {
1192
+ return void 0;
1193
+ }
1194
+ return {
1195
+ ...toTarotCorrespondenceProfileBase(card),
1196
+ kind: "minor",
1197
+ correspondences: {
1198
+ sphere: toCorrespondenceNode(sphereNode),
1199
+ planets: toUniqueCorrespondenceNodes(
1200
+ getCorrespondenceNodes(tree, sphereNode.id, "planet" /* PLANET */)
1201
+ )
1202
+ }
1203
+ };
1204
+ }
1018
1205
  function buildDescriptionsByDeck(tarotArkAnnu) {
1019
1206
  const descriptions = {};
1020
1207
  for (const deck of TAROT_DECK_METADATA) {
@@ -1124,6 +1311,7 @@ function getTarotCardProfileCache() {
1124
1311
  kind: toTarotCardKind(card),
1125
1312
  assetPathType: toTarotAssetPathType(card),
1126
1313
  suit: card.suit,
1314
+ courtRank: toTarotCourtRank(card),
1127
1315
  availableDeckIds,
1128
1316
  descriptionsByDeck
1129
1317
  };
@@ -1262,6 +1450,21 @@ function getTarotArchetype(lookup) {
1262
1450
  }
1263
1451
  return cache.byTarotCardNumber.get(lookup.tarotCardNumber);
1264
1452
  }
1453
+ function getTarotCorrespondenceProfile(lookup, treeId = DEFAULT_TAROT_TREE_ID) {
1454
+ const card = resolveTarotCardProfileForTree(lookup, treeId);
1455
+ if (!card) {
1456
+ return void 0;
1457
+ }
1458
+ const tree = getTarotCorrespondenceTree(treeId);
1459
+ switch (card.kind) {
1460
+ case "major":
1461
+ return buildMajorCorrespondenceProfile(card, tree);
1462
+ case "court":
1463
+ return buildCourtCorrespondenceProfile(card, tree);
1464
+ case "minor":
1465
+ return buildMinorCorrespondenceProfile(card, tree);
1466
+ }
1467
+ }
1265
1468
  function getTarotRepresentations(lookup) {
1266
1469
  const card = getTarotCardProfile(lookup);
1267
1470
  if (!card) {
@@ -2358,6 +2561,6 @@ function drawTarotSpread(options) {
2358
2561
  };
2359
2562
  }
2360
2563
 
2361
- export { ARKANNUS, DEFAULT_TAROT_TREE_ID, TAROT_IMAGE_BASE_URL, TAROT_TREE_IDS, drawTarotSpread, getTarotArchetype, getTarotCardByNumber, getTarotCardNumber, getTarotCardProfile, getTarotRepresentation, getTarotRepresentations, getTarotSpread, listTarotDecks, listTarotSpreads, listTarotTrees, majorArcana, resolveTarotImageUrl, shuffleTarotDeck, validateTarotSpreadSelection };
2362
- //# sourceMappingURL=chunk-VWGXOGEJ.mjs.map
2363
- //# sourceMappingURL=chunk-VWGXOGEJ.mjs.map
2564
+ export { ARKANNUS, DEFAULT_TAROT_TREE_ID, TAROT_IMAGE_BASE_URL, TAROT_TREE_IDS, drawTarotSpread, getTarotArchetype, getTarotCardByNumber, getTarotCardNumber, getTarotCardProfile, getTarotCorrespondenceProfile, getTarotRepresentation, getTarotRepresentations, getTarotSpread, listTarotDecks, listTarotSpreads, listTarotTrees, majorArcana, resolveTarotImageUrl, shuffleTarotDeck, validateTarotSpreadSelection };
2565
+ //# sourceMappingURL=chunk-2RGUI5FG.mjs.map
2566
+ //# sourceMappingURL=chunk-2RGUI5FG.mjs.map