kaabalah 6.16.0 → 6.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -6
- package/dist/astrology/index.d.mts +3423 -148
- package/dist/astrology/index.d.ts +3423 -148
- package/dist/astrology/index.js +849 -59
- package/dist/astrology/index.mjs +4 -2
- package/dist/{chunk-MWLSSRHL.mjs → chunk-4BKDSA7L.mjs} +3 -4
- package/dist/chunk-4BKDSA7L.mjs.map +1 -0
- package/dist/chunk-4WVN4RMM.mjs +1139 -0
- package/dist/chunk-4WVN4RMM.mjs.map +1 -0
- package/dist/{chunk-J5Y325TG.mjs → chunk-4ZFY3GBP.mjs} +2210 -3
- package/dist/chunk-4ZFY3GBP.mjs.map +1 -0
- package/dist/{chunk-LQVHJ3VY.mjs → chunk-54QDLBID.mjs} +41 -41
- package/dist/{chunk-LQVHJ3VY.mjs.map → chunk-54QDLBID.mjs.map} +1 -1
- package/dist/{chunk-PBBF5DKC.js → chunk-6SBCBVTZ.js} +21 -21
- package/dist/{chunk-WP5MRAYG.mjs → chunk-COEM6U4V.mjs} +3 -4
- package/dist/chunk-COEM6U4V.mjs.map +1 -0
- package/dist/{chunk-3JMY4U4S.mjs → chunk-DBRPCQRR.mjs} +245 -211
- package/dist/chunk-DBRPCQRR.mjs.map +1 -0
- package/dist/{chunk-WRF3EORB.js → chunk-DCJYTCJZ.js} +16 -17
- package/dist/chunk-DCJYTCJZ.js.map +1 -0
- package/dist/{chunk-UO2RQQZO.mjs → chunk-DK2VS36Z.mjs} +2 -2
- package/dist/{chunk-HEZCZXQC.js → chunk-E353GPHE.js} +16 -16
- package/dist/{chunk-6LZOAU6E.js → chunk-GDJSVV46.js} +272 -241
- package/dist/chunk-GDJSVV46.js.map +1 -0
- package/dist/{chunk-Z3JZ5DZN.mjs → chunk-IZBM4CPN.mjs} +2 -2
- package/dist/chunk-J3WVI5Y3.mjs +16280 -0
- package/dist/chunk-J3WVI5Y3.mjs.map +1 -0
- package/dist/{chunk-7OWGGDRF.js → chunk-JFRVH3TD.js} +2288 -80
- package/dist/chunk-JFRVH3TD.js.map +1 -0
- package/dist/chunk-MZBY6G5S.js +1182 -0
- package/dist/chunk-MZBY6G5S.js.map +1 -0
- package/dist/{chunk-7JWBIAUF.mjs → chunk-NS5AXNEW.mjs} +3 -3
- package/dist/chunk-QU4RKOBD.js +16536 -0
- package/dist/chunk-QU4RKOBD.js.map +1 -0
- package/dist/{chunk-CMXTZKWW.js → chunk-UCNBHGIY.js} +157 -157
- package/dist/{chunk-CMXTZKWW.js.map → chunk-UCNBHGIY.js.map} +1 -1
- package/dist/{chunk-BKFHIKFY.js → chunk-XRSK74V5.js} +179 -180
- package/dist/chunk-XRSK74V5.js.map +1 -0
- package/dist/{chunk-2IC6H3FI.js → chunk-YVLKVB6W.js} +52 -52
- package/dist/cli.js +27609 -11656
- package/dist/cli.js.map +1 -1
- package/dist/core/index.js +56 -57
- package/dist/core/index.mjs +2 -3
- package/dist/core-B3_-9yli.d.mts +279 -0
- package/dist/core-cWIQtely.d.ts +279 -0
- package/dist/gematria/index.js +7 -8
- package/dist/gematria/index.mjs +2 -3
- package/dist/iching/index.d.mts +37 -37
- package/dist/iching/index.d.ts +37 -37
- package/dist/iching/index.js +46 -47
- package/dist/iching/index.mjs +3 -4
- package/dist/index.d.mts +139 -2
- package/dist/index.d.ts +139 -2
- package/dist/index.js +1422 -301
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +190 -10
- package/dist/index.mjs.map +1 -1
- package/dist/numerology/index.d.mts +437 -252
- package/dist/numerology/index.d.ts +437 -252
- package/dist/numerology/index.js +108 -28
- package/dist/numerology/index.mjs +4 -4
- package/dist/schedule-types-DsR1_guG.d.mts +200 -0
- package/dist/schedule-types-DsR1_guG.d.ts +200 -0
- package/dist/semantic/index.d.mts +10 -9
- package/dist/semantic/index.d.ts +10 -9
- package/dist/semantic/index.js +41 -41
- package/dist/semantic/index.mjs +8 -8
- package/dist/swisseph.node-734BKSOZ.js +10 -0
- package/dist/swisseph.node-734BKSOZ.js.map +1 -0
- package/dist/swisseph.node-TDPYTBSS.mjs +8 -0
- package/dist/swisseph.node-TDPYTBSS.mjs.map +1 -0
- package/dist/tarot/index.js +30 -31
- package/dist/tarot/index.mjs +3 -4
- package/dist/visual/index.d.mts +1 -0
- package/dist/visual/index.d.ts +1 -0
- package/dist/visual/index.js +46 -47
- package/dist/visual/index.mjs +3 -4
- package/dist/wasm/build/swisseph.node-734BKSOZ.js +10 -0
- package/dist/wasm/build/swisseph.node-734BKSOZ.js.map +1 -0
- package/dist/wasm/build/swisseph.node-TDPYTBSS.mjs +8 -0
- package/dist/wasm/build/swisseph.node-TDPYTBSS.mjs.map +1 -0
- package/package.json +4 -2
- package/dist/chunk-3JMY4U4S.mjs.map +0 -1
- package/dist/chunk-3QN5V3DP.js +0 -4737
- package/dist/chunk-3QN5V3DP.js.map +0 -1
- package/dist/chunk-6LZOAU6E.js.map +0 -1
- package/dist/chunk-7OWGGDRF.js.map +0 -1
- package/dist/chunk-BKFHIKFY.js.map +0 -1
- package/dist/chunk-IT7GZ337.mjs +0 -4679
- package/dist/chunk-IT7GZ337.mjs.map +0 -1
- package/dist/chunk-J5Y325TG.mjs.map +0 -1
- package/dist/chunk-JY4QC6FR.js +0 -2214
- package/dist/chunk-JY4QC6FR.js.map +0 -1
- package/dist/chunk-MWLSSRHL.mjs.map +0 -1
- package/dist/chunk-RUE6NTVT.mjs +0 -2211
- package/dist/chunk-RUE6NTVT.mjs.map +0 -1
- package/dist/chunk-WP5MRAYG.mjs.map +0 -1
- package/dist/chunk-WRF3EORB.js.map +0 -1
- package/dist/swisseph.node-53QCJWTI.mjs +0 -3471
- package/dist/swisseph.node-53QCJWTI.mjs.map +0 -1
- package/dist/swisseph.node-CGBZTQ5N.js +0 -3473
- package/dist/swisseph.node-CGBZTQ5N.js.map +0 -1
- package/dist/swisseph.node-GPVFDOB6.wasm +0 -0
- package/dist/wasm/build/swisseph.node-53QCJWTI.mjs +0 -3471
- package/dist/wasm/build/swisseph.node-53QCJWTI.mjs.map +0 -1
- package/dist/wasm/build/swisseph.node-CGBZTQ5N.js +0 -3473
- package/dist/wasm/build/swisseph.node-CGBZTQ5N.js.map +0 -1
- package/dist/wasm/build/swisseph.node-GPVFDOB6.wasm +0 -0
- /package/dist/{chunk-PBBF5DKC.js.map → chunk-6SBCBVTZ.js.map} +0 -0
- /package/dist/{chunk-2IC6H3FI.js.map → chunk-DK2VS36Z.mjs.map} +0 -0
- /package/dist/{chunk-7JWBIAUF.mjs.map → chunk-E353GPHE.js.map} +0 -0
- /package/dist/{chunk-Z3JZ5DZN.mjs.map → chunk-IZBM4CPN.mjs.map} +0 -0
- /package/dist/{chunk-HEZCZXQC.js.map → chunk-NS5AXNEW.mjs.map} +0 -0
- /package/dist/{chunk-UO2RQQZO.mjs.map → chunk-YVLKVB6W.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../wasm/src/swisseph.ts","../src/astrology/swisseph.ts","../src/astrology/astrocartography.ts","../src/astrology/aspects.ts","../src/astrology/decans.ts","../src/astrology/dignity.ts","../src/astrology/descriptions.json","../src/astrology/descriptions.ts","../src/astrology/dodecatemoria.ts","../src/astrology/firdaria.ts","../src/astrology/profections.ts","../src/astrology/root-solver.ts","../src/astrology/returns.ts","../src/astrology/transit-events.ts","../src/astrology/sect.ts","../src/astrology/lots.ts","../src/astrology/moon-phase.ts","../src/astrology/composite.ts","../src/astrology/jyotish/frames.ts","../src/astrology/jyotish/bodies.ts","../src/astrology/jyotish/nakshatra.ts","../src/astrology/jyotish/dhruva.ts","../src/astrology/jyotish/lahiri.ts","../src/astrology/jyotish/karakas.ts","../src/astrology/jyotish/dasha.ts","../src/astrology/jyotish/index.ts","../src/astrology/points.ts","../src/astrology/orb-policy.ts","../src/astrology/quality.ts","../src/astrology/house-systems.ts","../src/astrology/overlays.ts","../src/astrology/progressions.ts","../src/astrology/davison.ts","../src/astrology/timelines.ts","../src/astrology/collection.ts","../package.json","../src/astrology/cache-key.ts","../src/astrology/capabilities.ts","../src/astrology/labels.json","../src/astrology/labels.ts","../src/astrology/index.ts"],"names":["Planet","VirtualNodes","HouseSystem","CalcFlag","RiseTransitFlag","bundledAssets","body","signIndex","mid","DEG","MS_PER_DAY","UNIX_EPOCH_JD","point","finish","provenance","EPH_FLAGS","trueObliquity","ANGLE_KEYS"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBO,IAAK,SAAL,kBAAKA,YAAL;AACL,EAAAA,gBAAA,SAAM,KAAN;AACA,EAAAA,gBAAA,UAAO,KAAP;AACA,EAAAA,gBAAA,aAAU,KAAV;AACA,EAAAA,gBAAA,WAAQ,KAAR;AACA,EAAAA,gBAAA,UAAO,KAAP;AACA,EAAAA,gBAAA,aAAU,KAAV;AACA,EAAAA,gBAAA,YAAS,KAAT;AACA,EAAAA,gBAAA,YAAS,KAAT;AACA,EAAAA,gBAAA,aAAU,KAAV;AACA,EAAAA,gBAAA,WAAQ,KAAR;AACA,EAAAA,gBAAA,eAAY,MAAZ;AACA,EAAAA,gBAAA,eAAY,MAAZ;AACA,EAAAA,gBAAA,iBAAc,MAAd;AACA,EAAAA,gBAAA,iBAAc,MAAd;AACA,EAAAA,gBAAA,YAAS,MAAT;AAfU,SAAAA;AAAA,GAAA;AAkBL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,mBAAgB;AADN,SAAAA;AAAA,GAAA;AAIL,IAAM,wBAAgD;AAAA,EAC3D,CAAC,WAAU,GAAG;AAAA,EACd,CAAC,YAAW,GAAG;AAAA,EACf,CAAC,eAAc,GAAG;AAAA,EAClB,CAAC,aAAY,GAAG;AAAA,EAChB,CAAC,YAAW,GAAG;AAAA,EACf,CAAC,eAAc,GAAG;AAAA,EAClB,CAAC,cAAa,GAAG;AAAA,EACjB,CAAC,cAAa,GAAG;AAAA,EACjB,CAAC,eAAc,GAAG;AAAA,EAClB,CAAC,aAA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\n SweHousePos,\n SweHouses,\n SweJulDay,\n SweRiseTrans,\n SweSetEphePath,\n SweSetSidMode,\n SweSetTopo,\n SwissEphModule,\n} from \"./types\";\n\n// Exported planet constants\nexport enum Planet {\n SUN = 0,\n MOON = 1,\n MERCURY = 2,\n VENUS = 3,\n MARS = 4,\n JUPITER = 5,\n SATURN = 6,\n URANUS = 7,\n NEPTUNE = 8,\n PLUTO = 9,\n MEAN_NODE = 10,\n TRUE_NODE = 11,\n LILITH_MEAN = 12,\n LILITH_TRUE = 13,\n CHIRON = 15,\n}\n\nexport enum VirtualNodes {\n PARS_FORTUNAE = \"parsFortunae\",\n}\n\nexport const PLANET_AND_NODE_NAMES: Record<string, string> = {\n [Planet.SUN]: \"Sun\",\n [Planet.MOON]: \"Moon\",\n [Planet.MERCURY]: \"Mercury\",\n [Planet.VENUS]: \"Venus\",\n [Planet.MARS]: \"Mars\",\n [Planet.JUPITER]: \"Jupiter\",\n [Planet.SATURN]: \"Saturn\",\n [Planet.URANUS]: \"Uranus\",\n [Planet.NEPTUNE]: \"Neptune\",\n [Planet.PLUTO]: \"Pluto\",\n [Planet.MEAN_NODE]: \"Mean Node\",\n [Planet.TRUE_NODE]: \"True Node\",\n [Planet.LILITH_MEAN]: \"Lilith Mean\",\n [Planet.LILITH_TRUE]: \"Lilith True\",\n [Planet.CHIRON]: \"Chiron\",\n [VirtualNodes.PARS_FORTUNAE]: \"Wheel of Fortune\",\n} as const;\n\n// House systems\nexport enum HouseSystem {\n PLACIDUS = \"P\",\n KOCH = \"K\",\n PORPHYRIUS = \"O\",\n REGIOMONTANUS = \"R\",\n CAMPANUS = \"C\",\n EQUAL = \"E\",\n WHOLE_SIGN = \"W\",\n MERIDIAN = \"X\",\n MORINUS = \"M\",\n KRUSINSKI = \"U\",\n ALCABITIUS = \"B\",\n}\n\n// Calculation flag constants\nexport enum CalcFlag {\n JPL_EPH = 1,\n SWISS_EPH = 2,\n MOSHIER = 4,\n HELIOCENTRIC = 8,\n TRUE_POS = 16,\n J2000 = 32,\n NONUT = 64,\n SPEED3 = 128,\n SPEED = 256,\n EQUATORIAL = 2048,\n TOPOCTR = 32768,\n SIDEREAL = 65536,\n}\n\n// Rise/set/meridian transit flags for swe_rise_trans\nexport enum RiseTransitFlag {\n RISE = 1,\n SET = 2,\n UPPER_MERIDIAN = 4,\n LOWER_MERIDIAN = 8,\n DISC_CENTER = 256,\n NO_REFRACTION = 512,\n}\n\n// Azimuth/altitude result from swe_azalt\nexport interface AzaltResult {\n azimuth: number;\n trueAltitude: number;\n apparentAltitude: number;\n}\n\n// SE_ECL2HOR / SE_EQU2HOR constants for swe_azalt\nexport const SE_ECL2HOR = 0;\nexport const SE_EQU2HOR = 1;\n\n// Planet position result\nexport interface PlanetPosition {\n longitude: number;\n latitude: number;\n distance: number;\n longitudeSpeed?: number;\n latitudeSpeed?: number;\n distanceSpeed?: number;\n}\n\n/**\n * Which ephemeris backend Swiss Ephemeris reports having used for a calculation.\n * Derived from the flag bits returned by `swe_calc_ut`:\n * SEFLG_JPLEPH = 1, SEFLG_SWIEPH = 2, SEFLG_MOSEPH = 4.\n */\nexport type SwissEphemerisKind = \"swiss\" | \"moshier\" | \"jpl\";\n\nexport const EPHEMERIS_FLAG_MASK =\n CalcFlag.JPL_EPH | CalcFlag.SWISS_EPH | CalcFlag.MOSHIER;\n\n/** Derive the ephemeris label from a flags word; null when no ephemeris bit is set. */\nexport function ephemerisFromFlags(flags: number): SwissEphemerisKind | null {\n if (flags & CalcFlag.JPL_EPH) return \"jpl\";\n if (flags & CalcFlag.SWISS_EPH) return \"swiss\";\n if (flags & CalcFlag.MOSHIER) return \"moshier\";\n return null;\n}\n\n/** The ephemeris Swiss Ephemeris itself would pick for requested flags (default: Swiss files). */\nexport function requestedEphemerisFromFlags(flags: number): SwissEphemerisKind {\n return ephemerisFromFlags(flags) ?? \"swiss\";\n}\n\nexport type SwissEphErrorCode =\n | \"SWISSEPH_NOT_INITIALIZED\"\n | \"SWISSEPH_ASSET_NOT_FOUND\"\n | \"SWISSEPH_NODE_BUILTINS_UNAVAILABLE\"\n | \"SWISSEPH_EPHEMERIS_FILES_UNAVAILABLE\"\n | \"SWISSEPH_EPHEMERIS_FILE_UNAVAILABLE\"\n | \"SWISSEPH_DATE_OUT_OF_RANGE\"\n | \"SWISSEPH_EPHEMERIS_MISMATCH\"\n | \"SWISSEPH_CALCULATION_FAILED\"\n | \"SWISSEPH_HOUSES_UNAVAILABLE\"\n | \"SWISSEPH_STATE_MISUSE\";\n\n/** Typed error for every Swiss Ephemeris runtime failure; `code` is stable API. */\nexport class SwissEphError extends Error {\n readonly code: SwissEphErrorCode;\n readonly details: Record<string, unknown>;\n\n constructor(code: SwissEphErrorCode, message: string, details: Record<string, unknown> = {}) {\n super(message);\n this.name = \"SwissEphError\";\n this.code = code;\n this.details = details;\n }\n}\n\n/** Thrown in strict mode when the returned ephemeris differs from the requested one. */\nexport class SwissEphEphemerisMismatchError extends SwissEphError {\n readonly requestedEphemeris: SwissEphemerisKind;\n readonly returnedEphemeris: SwissEphemerisKind | null;\n readonly requestedFlags: number;\n readonly returnedFlags: number;\n readonly reason: \"date_outside_installed_ephemeris_files\" | \"ephemeris_files_unavailable\" | \"unknown\";\n readonly warning: string | null;\n\n constructor(info: {\n requestedEphemeris: SwissEphemerisKind;\n returnedEphemeris: SwissEphemerisKind | null;\n requestedFlags: number;\n returnedFlags: number;\n reason: \"date_outside_installed_ephemeris_files\" | \"ephemeris_files_unavailable\" | \"unknown\";\n warning: string | null;\n julianDay: number;\n missingFile: string | null;\n }) {\n super(\n \"SWISSEPH_EPHEMERIS_MISMATCH\",\n `Swiss Ephemeris returned \"${info.returnedEphemeris ?? \"unknown\"}\" output but \"${info.requestedEphemeris}\" was requested (strictEphemeris)` +\n `${info.missingFile ? `; missing file ${info.missingFile}` : \"\"}` +\n `${info.reason === \"date_outside_installed_ephemeris_files\" ? \"; the date is outside the installed ephemeris file range\" : \"\"}.` +\n `${info.warning ? ` Swiss Ephemeris said: ${info.warning.trim()}` : \"\"}`,\n {\n julianDay: info.julianDay,\n missingFile: info.missingFile,\n reason: info.reason,\n }\n );\n this.name = \"SwissEphEphemerisMismatchError\";\n this.requestedEphemeris = info.requestedEphemeris;\n this.returnedEphemeris = info.returnedEphemeris;\n this.requestedFlags = info.requestedFlags;\n this.returnedFlags = info.returnedFlags;\n this.reason = info.reason;\n this.warning = info.warning;\n }\n}\n\n/** A position plus the provenance Swiss Ephemeris reported for it. */\nexport interface PlanetPositionDetailed {\n position: PlanetPosition;\n requestedFlags: number;\n /** Raw flag word returned by swe_calc_ut (ret value). */\n returnedFlags: number;\n requestedEphemeris: SwissEphemerisKind;\n ephemeris: SwissEphemerisKind | null;\n /** True when the returned ephemeris differs from the requested one. */\n substituted: boolean;\n /** Non-fatal serr text from Swiss Ephemeris (for example a Moshier fallback notice), else null. */\n warning: string | null;\n}\n\nexport interface CalculatePositionOptions {\n /** Throw SwissEphEphemerisMismatchError instead of returning substituted output. */\n strictEphemeris?: boolean;\n}\n\nconst SWISS_FILE_NOT_FOUND = /SwissEph file '([^']+)' not found/;\n\n// Houses calculation result\nexport interface Houses {\n ascendant: number;\n mc: number;\n houses: number[];\n // extras of ASCMC (useful for Vertex etc.)\n ascmc?: {\n armc: number;\n vertex: number;\n equasc: number;\n coasc1: number;\n coasc2: number;\n polasc: number;\n };\n}\n\n/** The shipped ephemeris files (1800-2400 CE). Anything else Swiss asks for means the date is outside them. */\nconst REQUIRED_EPHEMERIS_FILE_NAMES: readonly string[] = [\"seas_18.se1\", \"semo_18.se1\", \"sepl_18.se1\"];\n\n// Offset for asteroids (MPC)\nexport const SE_AST_OFFSET = 10000;\n\nexport const BODY = {\n MEAN_APOGEE: 12, // Lilith mean\n OSC_APOGEE: 13, // Lilith true\n PHOLUS: 16,\n CERES: 17,\n PALLAS: 18,\n JUNO: 19,\n VESTA: 20,\n} as const;\n\nexport const normalizeAngle = (deg: number) => ((deg % 360) + 360) % 360;\n\n// Swiss Ephemeris class\nexport class SwissEph {\n private module: SwissEphModule;\n private swe_julday: SweJulDay | null = null;\n private swe_calc_ut: SweCalcUt | null = null;\n private swe_houses: SweHouses | null = null;\n private swe_house_pos: SweHousePos | null = null;\n private swe_set_ephe_path: SweSetEphePath | null = null;\n private swe_close: SweClose | null = null;\n private swe_set_topo: SweSetTopo | null = null;\n private swe_set_sid_mode: SweSetSidMode | null = null;\n private swe_azalt_fn: SweAzalt | null = null;\n private swe_rise_trans_fn: SweRiseTrans | null = null;\n\n /**\n * Constructor that accepts a pre-initialized Swiss Ephemeris module\n */\n constructor(module: SwissEphModule) {\n this.module = module;\n\n // Create wrapped functions with specific types\n this.swe_julday = this.module.cwrap<SweJulDay>(\"swe_julday\", \"number\", [\n \"number\",\n \"number\",\n \"number\",\n \"number\",\n \"number\",\n ]);\n this.swe_calc_ut = this.module.cwrap<SweCalcUt>(\"swe_calc_ut\", \"number\", [\n \"number\",\n \"number\",\n \"number\",\n \"number\",\n \"number\",\n ]);\n this.swe_houses = this.module.cwrap<SweHouses>(\"swe_houses\", \"number\", [\n \"number\",\n \"number\",\n \"number\",\n \"number\",\n \"number\",\n \"number\",\n ]);\n this.swe_house_pos = this.module.cwrap<SweHousePos>(\n \"swe_house_pos\",\n \"number\",\n [\"number\", \"number\", \"number\", \"string\", \"number\", \"number\"]\n );\n this.swe_set_ephe_path = this.module.cwrap<SweSetEphePath>(\n \"swe_set_ephe_path\",\n null,\n [\"number\"]\n );\n this.swe_close = this.module.cwrap<SweClose>(\"swe_close\", null, []);\n this.swe_set_topo = this.module.cwrap<SweSetTopo>(\"swe_set_topo\", null, [\n \"number\",\n \"number\",\n \"number\",\n ]);\n this.swe_set_sid_mode = this.module.cwrap<SweSetSidMode>(\n \"swe_set_sid_mode\",\n null,\n [\"number\", \"number\", \"number\"]\n );\n this.swe_azalt_fn = this.module.cwrap<SweAzalt>(\n \"swe_azalt\",\n null,\n [\"number\", \"number\", \"number\", \"number\", \"number\", \"number\", \"number\"]\n );\n this.swe_rise_trans_fn = this.module.cwrap<SweRiseTrans>(\n \"swe_rise_trans\",\n \"number\",\n [\"number\", \"number\", \"number\", \"number\", \"number\", \"number\", \"number\", \"number\", \"number\", \"number\"]\n );\n }\n\n private checkInitialized(): void {\n if (!this.module) {\n throw new Error(\"Swiss Ephemeris module not available.\");\n }\n }\n\n /**\n * Sets the path to the ephemeris data files.\n * @param path - The path to the directory containing ephemeris files.\n */\n setEphemerisPath(path: string): void {\n this.checkInitialized();\n if (path && this.swe_set_ephe_path) {\n const pathPtr = this.module._malloc(path.length + 1);\n if (!pathPtr) {\n throw new Error(\"Failed to allocate memory for ephemeris path\");\n }\n this.module.stringToUTF8(path, pathPtr, path.length + 1);\n this.swe_set_ephe_path(pathPtr);\n this.module._free(pathPtr);\n }\n }\n\n /**\n * Calculate Julian day number for a given date and time\n */\n getJulianDay(date: Date): number {\n this.checkInitialized();\n if (!this.swe_julday) {\n throw new Error(\"Julian day calculation function not available\");\n }\n\n // Get UTC components\n const year = date.getUTCFullYear();\n const month = date.getUTCMonth() + 1; // JavaScript months are 0-based\n const day = date.getUTCDate();\n const hour =\n date.getUTCHours() +\n date.getUTCMinutes() / 60 +\n date.getUTCSeconds() / 3600;\n\n // Use Gregorian calendar (flag = 1)\n return this.swe_julday(year, month, day, hour, 1);\n }\n\n /**\n * When true, every calculation throws SwissEphEphemerisMismatchError if Swiss\n * Ephemeris silently substituted another ephemeris (for example Moshier).\n */\n strictEphemeris = false;\n\n /**\n * Calculate planet position at a given Julian day (bare position, backwards compatible).\n */\n calculatePlanetPosition(\n julday: number,\n planet: Planet | number,\n flags = CalcFlag.SWISS_EPH\n ): PlanetPosition {\n return this.calculatePlanetPositionDetailed(julday, planet, flags).position;\n }\n\n /**\n * Calculate a planet position and report which ephemeris Swiss Ephemeris actually used.\n * The returned flag word of swe_calc_ut is decoded, never discarded.\n */\n calculatePlanetPositionDetailed(\n julday: number,\n planet: Planet | number,\n flags = CalcFlag.SWISS_EPH,\n options: CalculatePositionOptions = {}\n ): PlanetPositionDetailed {\n this.checkInitialized();\n if (!this.swe_calc_ut || !this.module) {\n throw new Error(\"Planet calculation function not available\");\n }\n\n const resultPtr = this.module._malloc(6 * 8);\n if (!resultPtr) {\n throw new Error(\"Failed to allocate memory for planet position\");\n }\n\n // allocate an error buffer for swe_calc_ut to write into\n const ERR_BYTES = 512;\n const errPtr = this.module._malloc(ERR_BYTES);\n if (!errPtr) {\n this.module._free(resultPtr);\n throw new Error(\"Failed to allocate memory for error buffer\");\n }\n // zero the buffer to ensure a clean C string\n this.module.HEAP8.fill(0, errPtr, errPtr + ERR_BYTES);\n\n try {\n const ret = this.swe_calc_ut(julday, planet, flags, resultPtr, errPtr);\n const serr = this.module.UTF8ToString(errPtr);\n\n if (ret < 0) {\n const missing = SWISS_FILE_NOT_FOUND.exec(serr);\n if (missing) {\n throw new SwissEphError(\n \"SWISSEPH_EPHEMERIS_FILE_UNAVAILABLE\",\n serr.trim(),\n { julianDay: julday, missingFile: missing[1], planet, swissMessage: serr }\n );\n }\n throw new SwissEphError(\n \"SWISSEPH_CALCULATION_FAILED\",\n serr && serr.length ? serr : `Swiss Ephemeris calculation failed with error code ${ret}`,\n { julianDay: julday, planet, returnCode: ret, swissMessage: serr }\n );\n }\n\n const position: PlanetPosition = {\n longitude: this.module.getValue(resultPtr, \"double\"),\n latitude: this.module.getValue(resultPtr + 8, \"double\"),\n distance: this.module.getValue(resultPtr + 16, \"double\"),\n };\n\n if (flags & CalcFlag.SPEED) {\n position.longitudeSpeed = this.module.getValue(resultPtr + 24, \"double\");\n position.latitudeSpeed = this.module.getValue(resultPtr + 32, \"double\");\n position.distanceSpeed = this.module.getValue(resultPtr + 40, \"double\");\n }\n\n const requestedEphemeris = requestedEphemerisFromFlags(flags);\n const ephemeris = ephemerisFromFlags(ret);\n const substituted = ephemeris !== requestedEphemeris;\n const warning = serr && serr.length ? serr : null;\n\n if (substituted && (options.strictEphemeris ?? this.strictEphemeris)) {\n const missing = warning ? SWISS_FILE_NOT_FOUND.exec(warning) : null;\n const missingFile = missing ? missing[1] : null;\n throw new SwissEphEphemerisMismatchError({\n requestedEphemeris,\n returnedEphemeris: ephemeris,\n requestedFlags: flags,\n returnedFlags: ret,\n warning,\n julianDay: julday,\n missingFile,\n reason: !missingFile\n ? \"unknown\"\n : REQUIRED_EPHEMERIS_FILE_NAMES.includes(missingFile)\n ? \"ephemeris_files_unavailable\"\n : \"date_outside_installed_ephemeris_files\",\n });\n }\n\n return {\n position,\n requestedFlags: flags,\n returnedFlags: ret,\n requestedEphemeris,\n ephemeris,\n substituted,\n warning,\n };\n } finally {\n this.module._free(errPtr);\n this.module._free(resultPtr);\n }\n }\n\n /**\n * Calculate houses for a given date, location, and house system\n */\n calculateHouses(\n julday: number,\n latitude: number,\n longitude: number,\n hsys: HouseSystem = HouseSystem.PLACIDUS\n ): Houses {\n this.checkInitialized();\n if (!this.swe_houses || !this.module) {\n throw new Error(\"Houses calculation function not available\");\n }\n\n // Validate input parameters\n if (latitude < -90 || latitude > 90) {\n throw new Error(\"Latitude must be between -90 and 90 degrees\");\n }\n if (longitude < -180 || longitude > 180) {\n throw new Error(\"Longitude must be between -180 and 180 degrees\");\n }\n\n // Swiss Ephemeris: cusps[0..12] (0 not used), ascmc[0..9]\n const HOUSES_DOUBLES = 13;\n const ASCMC_DOUBLES = 10;\n const BYTES_PER_F64 = 8;\n\n // Create a single contiguous memory block for both houses and ascmc\n const totalBytes = (HOUSES_DOUBLES + ASCMC_DOUBLES) * BYTES_PER_F64;\n const memoryPtr = this.module._malloc(totalBytes);\n\n if (!memoryPtr) throw new Error(\"Memory allocation failed\");\n\n const housesPtr = memoryPtr; // 13 * f64\n const ascmcPtr = memoryPtr + HOUSES_DOUBLES * BYTES_PER_F64; // 10 * f64\n\n try {\n // Calculate houses\n // passar código do caractere (ex.: 'P' -> 80)\n const hsysCode = hsys.charCodeAt(0);\n const ret = this.swe_houses(\n julday,\n latitude,\n longitude,\n hsysCode,\n housesPtr,\n ascmcPtr\n );\n\n if (ret < 0) {\n // Swiss returns ERR for Placidus/Koch (and other time-based systems) beyond the polar circle.\n const polar = Math.abs(latitude) >= 90 - 23.4366;\n throw new SwissEphError(\n \"SWISSEPH_HOUSES_UNAVAILABLE\",\n `Houses calculation failed with error code ${ret}: house system \"${hsys}\" is not available at latitude ${latitude}` +\n (polar\n ? \" (beyond the polar circle, |latitude| >= ~66.56, Placidus and Koch are undefined)\"\n : \"\") +\n `. Use a system that works at any latitude (whole-sign \"W\", equal \"E\" or Porphyry \"O\"), ` +\n `or pass houseSystemFallback to substitute one explicitly.`,\n { houseSystem: hsys, latitude, longitude, julianDay: julday, errorCode: ret }\n );\n }\n\n // Extract all data before any memory operations\n const houses: number[] = new Array(HOUSES_DOUBLES);\n for (let i = 0; i < HOUSES_DOUBLES; i++) {\n houses[i] = this.module.getValue(\n housesPtr + i * BYTES_PER_F64,\n \"double\"\n );\n }\n\n const ascendant = this.module.getValue(\n ascmcPtr + 0 * BYTES_PER_F64,\n \"double\"\n ); // 0\n const mc = this.module.getValue(ascmcPtr + 1 * BYTES_PER_F64, \"double\"); // 1\n const armc = this.module.getValue(ascmcPtr + 2 * BYTES_PER_F64, \"double\"); // 2\n const vertex = this.module.getValue(\n ascmcPtr + 3 * BYTES_PER_F64,\n \"double\"\n ); // 3\n const equasc = this.module.getValue(\n ascmcPtr + 4 * BYTES_PER_F64,\n \"double\"\n ); // 4\n const coasc1 = this.module.getValue(\n ascmcPtr + 5 * BYTES_PER_F64,\n \"double\"\n ); // 5\n const coasc2 = this.module.getValue(\n ascmcPtr + 6 * BYTES_PER_F64,\n \"double\"\n ); // 6\n const polasc = this.module.getValue(\n ascmcPtr + 7 * BYTES_PER_F64,\n \"double\"\n ); // 7\n\n return {\n ascendant,\n mc,\n houses,\n ascmc: {\n armc,\n vertex,\n equasc,\n coasc1,\n coasc2,\n polasc,\n },\n };\n } finally {\n // Always free memory\n this.module._free(memoryPtr);\n }\n }\n\n /**\n * Swiss Ephemeris version string, or null when the wasm build does not export swe_version.\n */\n getVersion(): string | null {\n this.checkInitialized();\n const fn = this.module._swe_version;\n if (typeof fn !== \"function\") {\n return null;\n }\n const ptr = this.module._malloc(256);\n if (!ptr) {\n return null;\n }\n try {\n fn.call(this.module, ptr);\n return this.module.UTF8ToString(ptr) || null;\n } finally {\n this.module._free(ptr);\n }\n }\n\n /**\n * Clean up and close the Swiss Ephemeris\n */\n close(): void {\n this.checkInitialized();\n if (this.swe_close) {\n this.swe_close();\n }\n }\n\n /**\n * Set topocentric observer.\n * MUTABLE GLOBAL STATE inside the Swiss library (see withSwissEphState in\n * src/astrology/swisseph.ts for the synchronous set-and-restore helper).\n */\n setTopocentric(\n longitude: number,\n latitude: number,\n altitudeMeters = 0\n ): void {\n this.checkInitialized();\n\n if (!this.swe_set_topo) {\n throw new Error(\"Topocentric calculation function not available\");\n }\n\n this.swe_set_topo(longitude, latitude, altitudeMeters);\n }\n\n /**\n * Set sidereal mode.\n * MUTABLE GLOBAL STATE inside the Swiss library (shared by every caller of this\n * module instance); prefer withSwissEphState which restores the previous mode.\n * Ex.: mode=1 (Lahiri). See Swiss Ephemeris mode table.\n */\n setSiderealMode(mode: number, t0 = 0, ayan_t0 = 0): void {\n this.checkInitialized();\n this.swe_set_sid_mode?.(mode, t0, ayan_t0);\n }\n\n /**\n * Asteroid by MPC number\n */\n calculateAsteroidPosition(\n julday: number,\n mpcNumber: number,\n flags = CalcFlag.SWISS_EPH\n ): PlanetPosition {\n return this.calculatePlanetPosition(\n julday,\n SE_AST_OFFSET + mpcNumber,\n flags\n );\n }\n\n /**\n * Lilith mean (12) and true (13)\n */\n calculateLilith(\n julday: number,\n kind: \"mean\" | \"true\" = \"mean\",\n flags = CalcFlag.SWISS_EPH\n ): PlanetPosition {\n const id = kind === \"mean\" ? BODY.MEAN_APOGEE : BODY.OSC_APOGEE;\n return this.calculatePlanetPosition(julday, id, flags);\n }\n /**\n * Convert ecliptic (or equatorial) coordinates to horizon coordinates.\n * Returns azimuth (0=south, 90=west, 180=north, 270=east) and altitude.\n */\n azalt(\n julday: number,\n longitude: number,\n latitude: number,\n altitude: number,\n xinLon: number,\n xinLat: number,\n xinDist: number,\n fromEquatorial = false\n ): AzaltResult {\n this.checkInitialized();\n if (!this.swe_azalt_fn) {\n throw new Error(\"swe_azalt function not available\");\n }\n\n const BYTES = 8;\n const geoPtr = this.module._malloc(3 * BYTES);\n const xinPtr = this.module._malloc(3 * BYTES);\n const xazPtr = this.module._malloc(3 * BYTES);\n\n if (!geoPtr || !xinPtr || !xazPtr) {\n if (geoPtr) this.module._free(geoPtr);\n if (xinPtr) this.module._free(xinPtr);\n if (xazPtr) this.module._free(xazPtr);\n throw new Error(\"Memory allocation failed for azalt\");\n }\n\n try {\n this.module.setValue(geoPtr, longitude, \"double\");\n this.module.setValue(geoPtr + BYTES, latitude, \"double\");\n this.module.setValue(geoPtr + 2 * BYTES, altitude, \"double\");\n\n this.module.setValue(xinPtr, xinLon, \"double\");\n this.module.setValue(xinPtr + BYTES, xinLat, \"double\");\n this.module.setValue(xinPtr + 2 * BYTES, xinDist, \"double\");\n\n this.swe_azalt_fn(\n julday,\n fromEquatorial ? SE_EQU2HOR : SE_ECL2HOR,\n geoPtr,\n 0, // atpress (0 = default 1013.25 mbar)\n 0, // attemp (0 = default 15°C)\n xinPtr,\n xazPtr\n );\n\n return {\n azimuth: this.module.getValue(xazPtr, \"double\"),\n trueAltitude: this.module.getValue(xazPtr + BYTES, \"double\"),\n apparentAltitude: this.module.getValue(xazPtr + 2 * BYTES, \"double\"),\n };\n } finally {\n this.module._free(geoPtr);\n this.module._free(xinPtr);\n this.module._free(xazPtr);\n }\n }\n\n /**\n * Find the next rise, set, or meridian transit of a planet.\n * Returns the Julian day of the event.\n */\n riseTransit(\n julday: number,\n planet: Planet | number,\n rsmi: RiseTransitFlag,\n longitude: number,\n latitude: number,\n altitude = 0,\n flags = CalcFlag.SWISS_EPH\n ): number {\n this.checkInitialized();\n if (!this.swe_rise_trans_fn) {\n throw new Error(\"swe_rise_trans function not available\");\n }\n\n const BYTES = 8;\n const geoPtr = this.module._malloc(3 * BYTES);\n const tretPtr = this.module._malloc(BYTES);\n const ERR_BYTES = 512;\n const errPtr = this.module._malloc(ERR_BYTES);\n\n if (!geoPtr || !tretPtr || !errPtr) {\n if (geoPtr) this.module._free(geoPtr);\n if (tretPtr) this.module._free(tretPtr);\n if (errPtr) this.module._free(errPtr);\n throw new Error(\"Memory allocation failed for riseTransit\");\n }\n\n this.module.HEAP8.fill(0, errPtr, errPtr + ERR_BYTES);\n\n try {\n this.module.setValue(geoPtr, longitude, \"double\");\n this.module.setValue(geoPtr + BYTES, latitude, \"double\");\n this.module.setValue(geoPtr + 2 * BYTES, altitude, \"double\");\n\n const ret = this.swe_rise_trans_fn(\n julday,\n planet,\n 0, // starname pointer (0 = planet, not fixed star)\n flags,\n rsmi,\n geoPtr,\n 0, // atpress\n 0, // attemp\n tretPtr,\n errPtr\n );\n\n if (ret < 0) {\n const msg = this.module.UTF8ToString(errPtr);\n throw new Error(msg || `swe_rise_trans failed with code ${ret}`);\n }\n\n return this.module.getValue(tretPtr, \"double\");\n } finally {\n this.module._free(geoPtr);\n this.module._free(tretPtr);\n this.module._free(errPtr);\n }\n }\n}\n\n/**\n * Fortune part (in ecliptic longitude)\n */\nexport function parsFortunae(\n asc: number,\n sunLon: number,\n moonLon: number,\n diurnal: boolean\n): number {\n const val = diurnal ? asc + moonLon - sunLon : asc + sunLon - moonLon;\n return normalizeAngle(val);\n}\n","/**\n * Integration with the Swiss Ephemeris WebAssembly module\n */\nimport wasmPathWeb from \"../../wasm/build/swisseph.web.wasm?url\";\nimport type { SwissEphModule, SwissEphModuleFactory } from \"../../wasm/src/types\";\n\n// Note: In the production code, you'll need to include the compiled WASM files\n// and update the import path. This is a placeholder that would work once the\n// compilation is complete.\n\n// Import from the actual WASM wrapper\nimport {\n type AzaltResult,\n type CalculatePositionOptions,\n CalcFlag,\n Houses,\n HouseSystem,\n normalizeAngle,\n parsFortunae,\n Planet,\n PLANET_AND_NODE_NAMES,\n PlanetPosition,\n type PlanetPositionDetailed,\n RiseTransitFlag,\n SwissEph,\n SwissEphError,\n SwissEphEphemerisMismatchError,\n type SwissEphErrorCode,\n type SwissEphemerisKind,\n VirtualNodes,\n ephemerisFromFlags,\n} from \"../../wasm/src/swisseph\";\n\n// We'll use this singleton pattern to manage the Swiss Ephemeris instance.\n//\n// MUTABLE GLOBAL SWISS STATE (shared by every caller of this process-wide instance):\n// - sidereal mode (swe_set_sid_mode) default Fagan/Bradley = 0\n// - topocentric (swe_set_topo) only used when CalcFlag.TOPOCTR is passed\n// - ephemeris path (swe_set_ephe_path) set once during getSwissEph()\n// The tropical public helpers in this file never touch the first two. Any helper that\n// needs them must use withSwissEphState() (or Jyotish's withSiderealMode), which set,\n// run a SYNCHRONOUS callback and restore the defaults before returning, so concurrent\n// async callers can never observe each other's mode (JS is single threaded and the\n// callback cannot yield).\nlet swissEph: SwissEph | null = null;\nlet swissEphInitPromise: Promise<void> | null = null;\nlet swissEphRuntimeInfo: SwissEphRuntimeRecord | null = null;\nlet swissEphStateDepth = 0;\n\nconst DEFAULT_FLAGS = CalcFlag.SWISS_EPH | CalcFlag.SPEED;\nexport const REQUIRED_EPHE_FILES = [\"seas_18.se1\", \"semo_18.se1\", \"sepl_18.se1\"] as const;\n\nconst NODE_EPHE_MOUNT_POINT = \"/ephefs\";\nconst NODE_EPHE_MEMFS_PATH = \"/ephemem\";\n\nfunction emitRuntimeNotice(message: string): void {\n if (typeof process !== \"undefined\" && process.stderr && typeof process.stderr.write === \"function\") {\n process.stderr.write(`${message}\\n`);\n return;\n }\n\n console.info(message);\n}\n\ntype EmscriptenFs = NonNullable<SwissEphModule[\"FS\"]>;\n\ntype NodeEphemerisStrategy = \"nodefs-mount\" | \"host-path\" | \"memfs-copy\";\n\ninterface VirtualEphemerisCheck {\n rootExists: boolean | null;\n visibleEntries: string[];\n missingFiles: string[];\n}\n\ninterface ResolvedNodeEphemerisPath {\n path: string;\n strategy: NodeEphemerisStrategy;\n}\n\ninterface NodeFsLike {\n readFileSync(path: string): Uint8Array;\n}\n\ninterface PathModuleLike {\n join(...paths: string[]): string;\n}\n\ninterface NodeBuiltins {\n fs: NodeFsLike & { existsSync(path: string): boolean };\n path: PathModuleLike & { resolve(...paths: string[]): string };\n url: { pathToFileURL(path: string): { href: string } };\n}\n\n// Dynamic import through a variable specifier: bundlers (webpack/vite/esbuild) cannot\n// follow it, so browser bundles never try to resolve node built-ins, while native Node\n// ESM and CJS both execute it natively.\nfunction importNodeBuiltin(specifier: string): Promise<any> {\n return import(/* @vite-ignore */ /* webpackIgnore: true */ specifier);\n}\n\nlet nodeBuiltins: NodeBuiltins | null = null;\n\n/**\n * Load fs/path/url in a format-safe way. Native ESM has no `require`, so Node built-ins\n * are obtained with dynamic import (works in both ESM and CJS output).\n */\nexport async function loadSwissEphNodeBuiltins(): Promise<void> {\n if (nodeBuiltins) {\n return;\n }\n const [fs, path, url] = await Promise.all([\n importNodeBuiltin(\"node:fs\"),\n importNodeBuiltin(\"node:path\"),\n importNodeBuiltin(\"node:url\"),\n ]);\n nodeBuiltins = { fs: fs.default ?? fs, path: path.default ?? path, url: url.default ?? url };\n}\n\nfunction getNodeBuiltinsSync(): NodeBuiltins {\n if (nodeBuiltins) {\n return nodeBuiltins;\n }\n\n const getBuiltin =\n typeof process !== \"undefined\"\n ? (process as unknown as { getBuiltinModule?: (id: string) => any }).getBuiltinModule\n : undefined;\n if (typeof getBuiltin === \"function\") {\n const get = getBuiltin.bind(process);\n nodeBuiltins = { fs: get(\"node:fs\"), path: get(\"node:path\"), url: get(\"node:url\") };\n return nodeBuiltins;\n }\n\n if (typeof require === \"function\") {\n try {\n // Real `require` in CJS/Vitest; in native ESM esbuild's shim throws and we fall through.\n nodeBuiltins = {\n fs: require(\"fs\") as NodeBuiltins[\"fs\"],\n path: require(\"path\") as NodeBuiltins[\"path\"],\n url: require(\"url\") as NodeBuiltins[\"url\"],\n };\n return nodeBuiltins;\n } catch {\n // fall through to the typed error below\n }\n }\n\n throw new SwissEphError(\n \"SWISSEPH_NODE_BUILTINS_UNAVAILABLE\",\n \"Node built-ins are not loaded yet. In native ESM on Node < 20.16, call `await getSwissEph()` (or `await loadSwissEphNodeBuiltins()`) before using the synchronous Swiss Ephemeris path helpers.\"\n );\n}\n\n/**\n * Directory of the module that is executing, for both module formats:\n * `import.meta.url` in native ESM (and Vite/Vitest), `__dirname` in the CJS bundle\n * (tsup leaves `import.meta` empty there). Returns undefined when neither is available\n * (for example a browser bundle), in which case only explicit/bundled browser paths are used.\n */\nexport function getSwissEphModuleDirectory(\n options: { moduleUrl?: string | null; cjsDirname?: string | null } = {}\n): string | undefined {\n const moduleUrl = options.moduleUrl !== undefined ? options.moduleUrl : readImportMetaUrl();\n if (moduleUrl && moduleUrl.startsWith(\"file:\")) {\n try {\n let pathname = decodeURIComponent(new URL(\".\", moduleUrl).pathname);\n if (/^\\/[A-Za-z]:/.test(pathname)) {\n pathname = pathname.slice(1);\n }\n return pathname.length > 1 ? pathname.replace(/[\\\\/]+$/, \"\") : pathname;\n } catch {\n // fall through to the CJS directory\n }\n }\n\n const cjsDirname =\n options.cjsDirname !== undefined\n ? options.cjsDirname\n : typeof __dirname !== \"undefined\"\n ? __dirname\n : null;\n return cjsDirname ?? undefined;\n}\n\nfunction readImportMetaUrl(): string | null {\n try {\n return typeof import.meta !== \"undefined\" && typeof import.meta.url === \"string\"\n ? import.meta.url\n : null;\n } catch {\n return null;\n }\n}\n\ninterface ResolveNodeEphemerisPathOptions {\n nodeFs?: NodeFsLike;\n pathModule?: PathModuleLike;\n mountPoint?: string;\n memfsPath?: string;\n requiredFiles?: readonly string[];\n}\n\ntype RuntimeAssetSource = \"explicit\" | \"env\" | \"candidate\" | \"bundled\";\n\nexport interface SwissEphRuntimeAssetPaths {\n wasmPath: string;\n ephePath: string;\n wasmPathSource: RuntimeAssetSource;\n ephePathSource: RuntimeAssetSource;\n}\n\nexport interface ResolveSwissEphRuntimeAssetsOptions {\n wasmPath?: string;\n ephePath?: string;\n wasmPathCandidates?: string[];\n ephePathCandidates?: string[];\n env?: Record<string, string | undefined>;\n}\n\ninterface ResolveSwissEphRuntimeAssetsInternalOptions\n extends ResolveSwissEphRuntimeAssetsOptions {\n isBrowser?: boolean;\n existsSync?: (path: string) => boolean;\n nodePathResolve?: (...paths: string[]) => string;\n /** Override for the executing module's directory (tests inject fakes here). */\n moduleDirectory?: string;\n bundledNodeWasmPath?: string;\n bundledNodeEphePath?: string;\n bundledBrowserWasmPath?: string;\n bundledBrowserEphePath?: string;\n}\n\nconst SWISS_EPH_RUNTIME_WASM_ENV_KEYS = [\n \"KAABALAH_SWISSEPH_WASM_PATH\",\n \"KAABALAH_WASM_PATH\"\n] as const;\n\nconst SWISS_EPH_RUNTIME_EPHE_ENV_KEYS = [\n \"KAABALAH_SWISSEPH_EPHE_PATH\",\n \"KAABALAH_EPHE_PATH\"\n] as const;\n\nfunction getRuntimeEnv(\n env: ResolveSwissEphRuntimeAssetsOptions[\"env\"]\n): Record<string, string | undefined> {\n if (env) {\n return env;\n }\n\n if (typeof process !== \"undefined\" && process.env) {\n return process.env;\n }\n\n return {};\n}\n\nfunction firstDefinedEnvValue(\n env: Record<string, string | undefined>,\n keys: readonly string[]\n): string | undefined {\n for (const key of keys) {\n const value = env[key];\n if (typeof value === \"string\" && value.length > 0) {\n return value;\n }\n }\n\n return undefined;\n}\n\nfunction getBundledNodeSwissEphAssets(\n options: ResolveSwissEphRuntimeAssetsInternalOptions\n): { wasmPaths: string[]; ephePaths: string[] } {\n if (options.bundledNodeWasmPath && options.bundledNodeEphePath) {\n return {\n wasmPaths: [options.bundledNodeWasmPath],\n ephePaths: [options.bundledNodeEphePath]\n };\n }\n\n const resolvePath =\n options.nodePathResolve ?? ((...paths: string[]) => getNodeBuiltinsSync().path.resolve(...paths));\n const moduleDirectory = options.moduleDirectory ?? getSwissEphModuleDirectory();\n\n if (!moduleDirectory) {\n return {\n wasmPaths: [options.bundledNodeWasmPath].filter((value): value is string => typeof value === \"string\"),\n ephePaths: [options.bundledNodeEphePath].filter((value): value is string => typeof value === \"string\"),\n };\n }\n\n // Layouts covered (module directory -> assets):\n // dist/<chunk>.{js,mjs} -> dist/swisseph.node.wasm, ../wasm/build, ../ephe\n // dist/<entry>/index.{js,mjs} -> ../swisseph.node.wasm, ../../wasm/build, ../../ephe\n // src/astrology/swisseph.ts -> ../../wasm/build, ../../ephe\n return {\n wasmPaths: [\n options.bundledNodeWasmPath,\n resolvePath(moduleDirectory, \"swisseph.node.wasm\"),\n resolvePath(moduleDirectory, \"../wasm/build/swisseph.node.wasm\"),\n resolvePath(moduleDirectory, \"../swisseph.node.wasm\"),\n resolvePath(moduleDirectory, \"../../wasm/build/swisseph.node.wasm\")\n ].filter((value): value is string => typeof value === \"string\"),\n ephePaths: [\n options.bundledNodeEphePath,\n resolvePath(moduleDirectory, \"../ephe\"),\n resolvePath(moduleDirectory, \"../../ephe\")\n ].filter((value): value is string => typeof value === \"string\")\n };\n}\n\nfunction getBundledBrowserSwissEphAssets(\n options: ResolveSwissEphRuntimeAssetsInternalOptions\n): { wasmPath: string; ephePath: string } {\n return {\n wasmPath: options.bundledBrowserWasmPath ?? wasmPathWeb,\n ephePath: options.bundledBrowserEphePath ?? \"../ephe\"\n };\n}\n\nfunction formatCandidatePaths(paths: string[]): string {\n return paths.length > 0 ? paths.join(\", \") : \"(none)\";\n}\n\nfunction resolveBundledRuntimeAssetPath(\n label: \"wasmPath\" | \"ephePath\",\n bundledPaths: string[],\n existsSync: (path: string) => boolean\n): { path: string; source: RuntimeAssetSource } {\n for (const bundledPath of bundledPaths) {\n if (existsSync(bundledPath)) {\n return {\n path: bundledPath,\n source: \"bundled\"\n };\n }\n }\n\n throw new SwissEphError(\n \"SWISSEPH_ASSET_NOT_FOUND\",\n `Unable to resolve Swiss Ephemeris ${label}. Bundled paths checked: ${formatCandidatePaths(\n bundledPaths\n )}.`,\n { label, checked: bundledPaths }\n );\n}\n\nfunction resolveRuntimeAssetPath(\n label: \"wasmPath\" | \"ephePath\",\n explicitPath: string | undefined,\n envPath: string | undefined,\n candidatePaths: string[],\n bundledPaths: string[],\n existsSync: (path: string) => boolean\n): { path: string; source: RuntimeAssetSource } {\n if (explicitPath) {\n if (!existsSync(explicitPath)) {\n throw new SwissEphError(\n \"SWISSEPH_ASSET_NOT_FOUND\",\n `Swiss Ephemeris ${label} override does not exist: \"${explicitPath}\".`,\n { label, source: \"explicit\", path: explicitPath }\n );\n }\n\n return {\n path: explicitPath,\n source: \"explicit\"\n };\n }\n\n if (envPath) {\n if (!existsSync(envPath)) {\n throw new SwissEphError(\n \"SWISSEPH_ASSET_NOT_FOUND\",\n `Swiss Ephemeris ${label} from environment does not exist: \"${envPath}\".`,\n { label, source: \"env\", path: envPath }\n );\n }\n\n return {\n path: envPath,\n source: \"env\"\n };\n }\n\n for (const candidatePath of candidatePaths) {\n if (existsSync(candidatePath)) {\n return {\n path: candidatePath,\n source: \"candidate\"\n };\n }\n }\n\n try {\n return resolveBundledRuntimeAssetPath(label, bundledPaths, existsSync);\n } catch (error) {\n throw new SwissEphError(\n \"SWISSEPH_ASSET_NOT_FOUND\",\n `Unable to resolve Swiss Ephemeris ${label}. Checked candidate paths: ${formatCandidatePaths(\n candidatePaths\n )}. ${toError(error).message}`,\n { label, candidates: candidatePaths, bundled: bundledPaths }\n );\n }\n}\n\nfunction resolveSwissEphRuntimeAssetsInternal(\n options: ResolveSwissEphRuntimeAssetsInternalOptions = {}\n): SwissEphRuntimeAssetPaths {\n const isBrowser =\n options.isBrowser ?? typeof window !== \"undefined\";\n\n if (isBrowser) {\n const bundledAssets = getBundledBrowserSwissEphAssets(options);\n return {\n wasmPath: options.wasmPath ?? bundledAssets.wasmPath,\n ephePath: options.ephePath ?? bundledAssets.ephePath,\n wasmPathSource: options.wasmPath ? \"explicit\" : \"bundled\",\n ephePathSource: options.ephePath ? \"explicit\" : \"bundled\"\n };\n }\n\n const env = getRuntimeEnv(options.env);\n const existsSync =\n options.existsSync ?? ((path: string) => getNodeBuiltinsSync().fs.existsSync(path));\n const bundledAssets = getBundledNodeSwissEphAssets(options);\n const envWasmPath = firstDefinedEnvValue(env, SWISS_EPH_RUNTIME_WASM_ENV_KEYS);\n const envEphePath = firstDefinedEnvValue(env, SWISS_EPH_RUNTIME_EPHE_ENV_KEYS);\n const resolvedWasm = resolveRuntimeAssetPath(\n \"wasmPath\",\n options.wasmPath,\n envWasmPath,\n options.wasmPathCandidates ?? [],\n bundledAssets.wasmPaths,\n existsSync\n );\n const resolvedEphe = resolveRuntimeAssetPath(\n \"ephePath\",\n options.ephePath,\n envEphePath,\n options.ephePathCandidates ?? [],\n bundledAssets.ephePaths,\n existsSync\n );\n\n return {\n wasmPath: resolvedWasm.path,\n ephePath: resolvedEphe.path,\n wasmPathSource: resolvedWasm.source,\n ephePathSource: resolvedEphe.source\n };\n}\n\nexport function resolveSwissEphRuntimeAssets(\n options: ResolveSwissEphRuntimeAssetsOptions = {}\n): SwissEphRuntimeAssetPaths {\n return resolveSwissEphRuntimeAssetsInternal(options);\n}\n\n/**\n * Async variant that first loads Node built-ins, so it also works synchronously-unsafe\n * environments (native ESM on Node < 20.16).\n */\nexport async function resolveSwissEphRuntimeAssetsAsync(\n options: ResolveSwissEphRuntimeAssetsOptions = {}\n): Promise<SwissEphRuntimeAssetPaths> {\n if (typeof window === \"undefined\") {\n await loadSwissEphNodeBuiltins();\n }\n return resolveSwissEphRuntimeAssetsInternal(options);\n}\n\n/** @internal test seam: resolver with injected module directory / fs / path / browser flag. */\nexport function resolveSwissEphRuntimeAssetsWithOverrides(\n options: ResolveSwissEphRuntimeAssetsOptions & {\n moduleDirectory?: string;\n existsSync?: (path: string) => boolean;\n nodePathResolve?: (...paths: string[]) => string;\n isBrowser?: boolean;\n }\n): SwissEphRuntimeAssetPaths {\n return resolveSwissEphRuntimeAssetsInternal(options);\n}\n\nfunction normalizeVirtualPath(path: string): string {\n if (path === \"/\") {\n return path;\n }\n\n return path.replace(/\\/+$/, \"\") || \"/\";\n}\n\nfunction joinVirtualPath(rootPath: string, leaf: string): string {\n const normalizedRoot = normalizeVirtualPath(rootPath);\n return normalizedRoot === \"/\" ? `/${leaf}` : `${normalizedRoot}/${leaf}`;\n}\n\nfunction ensureVirtualDir(fs: EmscriptenFs, path: string): void {\n try {\n fs.mkdir(path);\n } catch {\n // Ignore existing directories and readonly mount roots.\n }\n}\n\nfunction safeAnalyzePath(fs: EmscriptenFs, path: string): boolean | null {\n if (!fs.analyzePath) {\n return null;\n }\n\n try {\n return fs.analyzePath(path).exists === true;\n } catch {\n return false;\n }\n}\n\nfunction safeReaddir(fs: EmscriptenFs, path: string): string[] {\n if (!fs.readdir) {\n return [];\n }\n\n try {\n return fs.readdir(path).filter((entry) => entry !== \".\" && entry !== \"..\");\n } catch {\n return [];\n }\n}\n\nexport function inspectVirtualEphemerisPath(\n fs: EmscriptenFs | undefined,\n rootPath: string,\n requiredFiles: readonly string[] = REQUIRED_EPHE_FILES\n): VirtualEphemerisCheck {\n if (!fs) {\n return {\n rootExists: null,\n visibleEntries: [],\n missingFiles: [...requiredFiles],\n };\n }\n\n const rootExists = safeAnalyzePath(fs, rootPath);\n const visibleEntries = safeReaddir(fs, rootPath);\n const missingFiles = requiredFiles.filter((file) => {\n const filePath = joinVirtualPath(rootPath, file);\n return !visibleEntries.includes(file) && safeAnalyzePath(fs, filePath) !== true;\n });\n\n return {\n rootExists,\n visibleEntries,\n missingFiles,\n };\n}\n\nfunction formatVirtualPathCheck(label: string, path: string, check: VirtualEphemerisCheck | null): string {\n if (!check) {\n return `${label} \"${path}\" could not be inspected.`;\n }\n\n const exists = check.rootExists == null ? \"unknown\" : check.rootExists ? \"yes\" : \"no\";\n const visibleEntries = check.visibleEntries.length > 0 ? check.visibleEntries.join(\", \") : \"(none)\";\n const missingFiles = check.missingFiles.length > 0 ? check.missingFiles.join(\", \") : \"(none)\";\n\n return `${label} \"${path}\" exists: ${exists}; visible entries: ${visibleEntries}; missing required files: ${missingFiles}.`;\n}\n\nfunction normalizeHostFileData(data: Uint8Array): Uint8Array {\n return data instanceof Uint8Array ? data : new Uint8Array(data);\n}\n\nfunction loadHostEphemerisFiles(\n ephePath: string,\n requiredFiles: readonly string[],\n nodeFs: NodeFsLike,\n pathModule: PathModuleLike\n): Map<string, Uint8Array> {\n const files = new Map<string, Uint8Array>();\n\n for (const file of requiredFiles) {\n files.set(file, normalizeHostFileData(nodeFs.readFileSync(pathModule.join(ephePath, file))));\n }\n\n return files;\n}\n\nfunction writeEphemerisFilesToMemfs(\n fs: EmscriptenFs,\n targetPath: string,\n files: Map<string, Uint8Array>\n): void {\n ensureVirtualDir(fs, targetPath);\n\n for (const [fileName, fileData] of files.entries()) {\n fs.writeFile(joinVirtualPath(targetPath, fileName), fileData);\n }\n}\n\nfunction toError(err: unknown): Error {\n return err instanceof Error ? err : new Error(String(err));\n}\n\nfunction buildEphemerisResolutionError(\n finalEphePath: string,\n requiredFiles: readonly string[],\n details: {\n mountAttempted: boolean;\n mountPoint: string;\n mountCheck: VirtualEphemerisCheck | null;\n mountError: Error | null;\n hostCheck: VirtualEphemerisCheck | null;\n memfsPath: string;\n memfsCheck: VirtualEphemerisCheck | null;\n hostReadError: Error | null;\n }\n): string {\n const parts = [\n `Unable to resolve Swiss Ephemeris data files. Expected ${requiredFiles.join(\", \")} under \"${finalEphePath}\".`,\n ];\n\n if (details.mountAttempted) {\n parts.push(\n `${formatVirtualPathCheck(\"Mounted ephemeris path\", details.mountPoint, details.mountCheck)} The NODEFS mount may have failed silently.`\n );\n }\n\n if (details.mountError) {\n parts.push(`Mounting the ephemeris directory failed: ${details.mountError.message}.`);\n }\n\n parts.push(formatVirtualPathCheck(\"Direct host ephemeris path\", finalEphePath, details.hostCheck));\n\n if (details.memfsCheck) {\n parts.push(formatVirtualPathCheck(\"MEMFS ephemeris copy\", details.memfsPath, details.memfsCheck));\n }\n\n if (details.hostReadError) {\n parts.push(`Reading host ephemeris files failed: ${details.hostReadError.message}.`);\n }\n\n parts.push(\n `Pass an explicit ephePath that contains ${requiredFiles.join(\", \")} or ensure the packaged ephemeris directory is readable.`\n );\n\n return parts.join(\" \");\n}\n\nexport function resolveNodeEphemerisPath(\n module: SwissEphModule,\n finalEphePath: string,\n options: ResolveNodeEphemerisPathOptions = {}\n): ResolvedNodeEphemerisPath {\n const fs = module.FS;\n const requiredFiles = options.requiredFiles ?? REQUIRED_EPHE_FILES;\n const mountPoint = options.mountPoint ?? NODE_EPHE_MOUNT_POINT;\n const memfsPath = options.memfsPath ?? NODE_EPHE_MEMFS_PATH;\n const nodeFs = options.nodeFs ?? getNodeBuiltinsSync().fs;\n const pathModule = options.pathModule ?? getNodeBuiltinsSync().path;\n\n let mountAttempted = false;\n let mountCheck: VirtualEphemerisCheck | null = null;\n let mountError: Error | null = null;\n let hostCheck: VirtualEphemerisCheck | null = null;\n let memfsCheck: VirtualEphemerisCheck | null = null;\n let hostReadError: Error | null = null;\n\n if (fs?.mount && fs.filesystems?.NODEFS) {\n mountAttempted = true;\n ensureVirtualDir(fs, mountPoint);\n\n try {\n fs.mount(fs.filesystems.NODEFS, { root: finalEphePath }, mountPoint);\n mountCheck = inspectVirtualEphemerisPath(fs, mountPoint, requiredFiles);\n\n if (mountCheck.missingFiles.length === 0) {\n return { path: mountPoint, strategy: \"nodefs-mount\" };\n }\n } catch (mountErr) {\n mountError = toError(mountErr);\n }\n }\n\n hostCheck = inspectVirtualEphemerisPath(fs, finalEphePath, requiredFiles);\n if (fs && hostCheck.missingFiles.length === 0) {\n return { path: finalEphePath, strategy: \"host-path\" };\n }\n\n let hostFiles: Map<string, Uint8Array> | null = null;\n try {\n hostFiles = loadHostEphemerisFiles(finalEphePath, requiredFiles, nodeFs, pathModule);\n } catch (err) {\n hostReadError = toError(err);\n }\n\n if (hostFiles && fs?.writeFile) {\n writeEphemerisFilesToMemfs(fs, memfsPath, hostFiles);\n memfsCheck = inspectVirtualEphemerisPath(fs, memfsPath, requiredFiles);\n\n if (memfsCheck.missingFiles.length === 0) {\n return { path: memfsPath, strategy: \"memfs-copy\" };\n }\n }\n\n if (hostFiles) {\n return { path: finalEphePath, strategy: \"host-path\" };\n }\n\n throw new SwissEphError(\n \"SWISSEPH_EPHEMERIS_FILES_UNAVAILABLE\",\n buildEphemerisResolutionError(finalEphePath, requiredFiles, {\n mountAttempted,\n mountPoint,\n mountCheck,\n mountError,\n hostCheck,\n memfsPath,\n memfsCheck,\n hostReadError,\n }),\n { ephePath: finalEphePath, requiredFiles: [...requiredFiles] }\n );\n}\n\nexport type SwissEphMountMode = \"nodefs-mount\" | \"host-path\" | \"memfs-copy\" | \"browser-memfs\";\n\ninterface SwissEphRuntimeRecord {\n runtime: \"node\" | \"browser\";\n moduleDirectory: string | null;\n wasmPath: string;\n wasmPathSource: RuntimeAssetSource;\n ephePath: string;\n ephePathSource: RuntimeAssetSource;\n mountMode: SwissEphMountMode;\n /** Path handed to swe_set_ephe_path inside the module's virtual file system. */\n swissEphePath: string;\n nodeGlue: \"bundled\" | \"external-file\" | \"browser\";\n fs: SwissEphModule[\"FS\"];\n probe: { ephemeris: SwissEphemerisKind | null; returnedFlags: number; warning: string | null };\n}\n\nexport interface SwissEphInfo {\n initialized: boolean;\n strictEphemeris: boolean;\n runtime: \"node\" | \"browser\" | null;\n moduleDirectory: string | null;\n wasmPath: string | null;\n wasmPathSource: RuntimeAssetSource | null;\n /** Host (or URL) location the ephemeris files were loaded from. */\n ephePath: string | null;\n ephePathSource: RuntimeAssetSource | null;\n /** How the files were made visible to Swiss Ephemeris. */\n mountMode: SwissEphMountMode | null;\n /** Path Swiss Ephemeris searches (inside the wasm virtual file system). */\n swissEphePath: string | null;\n /** How the Emscripten glue was loaded (native ESM loads the shipped CJS file by URL). */\n nodeGlue: \"bundled\" | \"external-file\" | \"browser\" | null;\n /** Swiss Ephemeris version string; null because the shipped wasm build does not export swe_version. */\n swissEphemerisVersion: string | null;\n /** Required ephemeris files and whether each is visible to Swiss Ephemeris. */\n ephemerisFiles: { required: string[]; found: string[]; missing: string[] };\n /** Documented coverage of the shipped files (Swiss file naming: *_18.se1 = 1800-2399 CE). */\n shippedCoverage: { fromYear: number; toYearExclusive: number; note: string };\n /** Result of the init-time probe calculation (Sun at J2000, Swiss files requested). */\n probe: SwissEphRuntimeRecord[\"probe\"] | null;\n}\n\nfunction emptySwissEphInfo(): SwissEphInfo {\n return {\n initialized: false,\n strictEphemeris: false,\n runtime: null,\n moduleDirectory: null,\n wasmPath: null,\n wasmPathSource: null,\n ephePath: null,\n ephePathSource: null,\n mountMode: null,\n swissEphePath: null,\n nodeGlue: null,\n swissEphemerisVersion: null,\n ephemerisFiles: { required: [...REQUIRED_EPHE_FILES], found: [], missing: [...REQUIRED_EPHE_FILES] },\n shippedCoverage: {\n fromYear: 1800,\n toYearExclusive: 2400,\n note: \"Outside this range Swiss Ephemeris falls back to Moshier unless strictEphemeris is enabled.\",\n },\n probe: null,\n };\n}\n\n/**\n * Report what the engine actually resolved: asset paths and where they came from, how the\n * ephemeris files are mounted, which files are visible, the Swiss version (if exposed),\n * and the init-time probe. Safe to call before initialization (reports initialized: false).\n */\nexport function getSwissEphInfo(): SwissEphInfo {\n const info = emptySwissEphInfo();\n if (!swissEph || !swissEphRuntimeInfo) {\n return info;\n }\n\n const record = swissEphRuntimeInfo;\n const check = inspectVirtualEphemerisPath(\n record.fs,\n record.swissEphePath,\n REQUIRED_EPHE_FILES\n );\n const missing = check.missingFiles;\n\n return {\n ...info,\n initialized: true,\n strictEphemeris: swissEph.strictEphemeris,\n runtime: record.runtime,\n moduleDirectory: record.moduleDirectory,\n wasmPath: record.wasmPath,\n wasmPathSource: record.wasmPathSource,\n ephePath: record.ephePath,\n ephePathSource: record.ephePathSource,\n mountMode: record.mountMode,\n swissEphePath: record.swissEphePath,\n nodeGlue: record.nodeGlue,\n swissEphemerisVersion: swissEph.getVersion(),\n ephemerisFiles: {\n required: [...REQUIRED_EPHE_FILES],\n found: REQUIRED_EPHE_FILES.filter((file) => !missing.includes(file)),\n missing,\n },\n probe: record.probe,\n };\n}\n\n/** Enable/disable process-wide strict mode (throw instead of returning substituted Moshier output). */\nexport function setSwissEphStrictEphemeris(enabled: boolean): void {\n checkInitialization();\n swissEph!.strictEphemeris = enabled;\n}\n\nexport interface GetSwissEphOptions {\n ephePath?: string;\n wasmPath?: string;\n onRuntimeNotice?: (message: string) => void;\n /**\n * When true, any calculation for which Swiss Ephemeris silently substitutes another\n * ephemeris (e.g. Moshier outside the installed .se1 range) throws a\n * SwissEphEphemerisMismatchError. Applies to the shared instance, also when it is\n * already initialized.\n */\n strictEphemeris?: boolean;\n}\n\n/**\n * Locate and load the Emscripten glue for Node. CJS (and Vitest) use the bundled import;\n * the native-ESM build stubs the bundled copy out at build time (it is CommonJS code that\n * needs `require`/`__dirname`) and instead imports the shipped CJS file by URL, which Node\n * evaluates natively.\n */\nasync function loadNodeModuleFactory(\n moduleDirectory: string | undefined\n): Promise<{ factory: SwissEphModuleFactory; glue: \"bundled\" | \"external-file\" }> {\n const bundled = (await import(\"../../wasm/build/swisseph.node.js\")).default as unknown as\n | SwissEphModuleFactory\n | undefined;\n if (typeof bundled === \"function\") {\n return { factory: bundled, glue: \"bundled\" };\n }\n\n await loadSwissEphNodeBuiltins();\n const { fs, path, url } = nodeBuiltins!;\n const candidates = moduleDirectory\n ? [\n path.resolve(moduleDirectory, \"swisseph.node.js\"),\n path.resolve(moduleDirectory, \"../swisseph.node.js\"),\n path.resolve(moduleDirectory, \"../wasm/build/swisseph.node.js\"),\n path.resolve(moduleDirectory, \"../../wasm/build/swisseph.node.js\"),\n ]\n : [];\n const found = candidates.find((candidate) => fs.existsSync(candidate));\n if (!found) {\n throw new SwissEphError(\n \"SWISSEPH_ASSET_NOT_FOUND\",\n `Unable to locate the Swiss Ephemeris runtime (swisseph.node.js). Checked: ${formatCandidatePaths(candidates)}.`,\n { label: \"runtime\", checked: candidates }\n );\n }\n const mod = await importNodeBuiltin(url.pathToFileURL(found).href);\n const factory = (mod.default ?? mod) as SwissEphModuleFactory;\n return { factory, glue: \"external-file\" };\n}\n\nasync function initializeSwissEph(options: GetSwissEphOptions): Promise<void> {\n const notice = options.onRuntimeNotice ?? emitRuntimeNotice;\n const isBrowser = typeof window !== \"undefined\";\n if (!isBrowser) {\n await loadSwissEphNodeBuiltins();\n }\n\n const runtimeAssets = resolveSwissEphRuntimeAssets({\n wasmPath: options.wasmPath,\n ephePath: options.ephePath\n });\n const finalWasmPath = runtimeAssets.wasmPath;\n const moduleDirectory = isBrowser ? undefined : getSwissEphModuleDirectory();\n\n let moduleFactory: SwissEphModuleFactory;\n let nodeGlue: SwissEphRuntimeRecord[\"nodeGlue\"] = \"browser\";\n if (isBrowser) {\n moduleFactory = (await import(\"../../wasm/build/swisseph.web.js\")).default as unknown as SwissEphModuleFactory;\n } else {\n const loaded = await loadNodeModuleFactory(moduleDirectory);\n moduleFactory = loaded.factory;\n nodeGlue = loaded.glue;\n }\n\n const module = await moduleFactory({\n locateFile: () => finalWasmPath,\n });\n\n const instance = new SwissEph(module);\n const finalEphePath = runtimeAssets.ephePath;\n let mountMode: SwissEphMountMode;\n let swissEphePath: string;\n\n if (isBrowser) {\n // In the browser, fetch and write ephemeris files into MEMFS\n const epheFsPath = \"/ephe\";\n try {\n module.FS?.mkdir?.(epheFsPath);\n } catch {\n // ignore if exists\n }\n await Promise.all(\n REQUIRED_EPHE_FILES.map(async (name) => {\n const url = `${finalEphePath}/${name}`;\n const res = await fetch(url);\n if (!res.ok) {\n throw new SwissEphError(\n \"SWISSEPH_EPHEMERIS_FILES_UNAVAILABLE\",\n `Failed to fetch ephemeris file: ${url} (HTTP ${res.status}). Serve ${REQUIRED_EPHE_FILES.join(\", \")} at \"${finalEphePath}\" or pass an explicit ephePath.`,\n { url, status: res.status, ephePath: finalEphePath }\n );\n }\n const buf = await res.arrayBuffer();\n module.FS?.writeFile?.(`${epheFsPath}/${name}`, new Uint8Array(buf));\n })\n );\n const browserCheck = inspectVirtualEphemerisPath(module.FS, epheFsPath, REQUIRED_EPHE_FILES);\n if (browserCheck.missingFiles.length > 0) {\n throw new SwissEphError(\n \"SWISSEPH_EPHEMERIS_FILES_UNAVAILABLE\",\n `Failed to materialize browser ephemeris files at \"${epheFsPath}\". Missing: ${browserCheck.missingFiles.join(\", \")}.`,\n { ephePath: epheFsPath, missing: browserCheck.missingFiles }\n );\n }\n notice(`Setting ephemeris path to: ${epheFsPath}`);\n instance.setEphemerisPath(epheFsPath);\n mountMode = \"browser-memfs\";\n swissEphePath = epheFsPath;\n } else {\n const resolution = resolveNodeEphemerisPath(module, finalEphePath);\n if (resolution.strategy === \"nodefs-mount\") {\n notice(`Setting ephemeris path to: ${resolution.path} (mounted from ${finalEphePath})`);\n } else if (resolution.strategy === \"memfs-copy\") {\n notice(`Setting ephemeris path to: ${resolution.path} (copied from ${finalEphePath})`);\n } else {\n notice(`Setting ephemeris path to: ${resolution.path}`);\n }\n instance.setEphemerisPath(resolution.path);\n mountMode = resolution.strategy === \"nodefs-mount\" ? \"nodefs-mount\" : resolution.strategy === \"memfs-copy\" ? \"memfs-copy\" : \"host-path\";\n swissEphePath = resolution.path;\n }\n\n // Probe: prove Swiss Ephemeris really reads the .se1 files (a bad ephePath otherwise\n // degrades silently to Moshier). J2000 sits inside every shipped file.\n const probeJulianDay = 2451545.0;\n const probe = (() => {\n try {\n return instance.calculatePlanetPositionDetailed(probeJulianDay, Planet.SUN, CalcFlag.SWISS_EPH, {\n strictEphemeris: false,\n });\n } catch (error) {\n throw new SwissEphError(\n \"SWISSEPH_EPHEMERIS_FILES_UNAVAILABLE\",\n `Swiss Ephemeris could not read the ephemeris files at \"${swissEphePath}\" (from \"${finalEphePath}\"): ${toError(error).message}`,\n { ephePath: finalEphePath, swissEphePath }\n );\n }\n })();\n if (probe.substituted) {\n throw new SwissEphError(\n \"SWISSEPH_EPHEMERIS_FILES_UNAVAILABLE\",\n `Swiss Ephemeris could not use the Swiss ephemeris files at \"${swissEphePath}\" (from \"${finalEphePath}\") and fell back to \"${probe.ephemeris}\". Pass an explicit ephePath that contains ${REQUIRED_EPHE_FILES.join(\", \")}.${probe.warning ? ` Swiss Ephemeris said: ${probe.warning.trim()}` : \"\"}`,\n { ephePath: finalEphePath, swissEphePath, warning: probe.warning }\n );\n }\n\n instance.strictEphemeris = options.strictEphemeris === true;\n swissEphRuntimeInfo = {\n runtime: isBrowser ? \"browser\" : \"node\",\n moduleDirectory: moduleDirectory ?? null,\n wasmPath: finalWasmPath,\n wasmPathSource: runtimeAssets.wasmPathSource,\n ephePath: finalEphePath,\n ephePathSource: runtimeAssets.ephePathSource,\n mountMode,\n swissEphePath,\n nodeGlue,\n fs: module.FS,\n probe: { ephemeris: probe.ephemeris, returnedFlags: probe.returnedFlags, warning: probe.warning },\n };\n swissEph = instance;\n}\n\n/**\n * Initializes the shared Swiss Ephemeris instance (idempotent; concurrent first calls share\n * one initialization).\n * In a browser environment, assets are loaded relative to the script.\n * In Node.js, assets are resolved next to the running module (`import.meta.url` in native\n * ESM, `__dirname` in CJS), so default initialization works from a packed install.\n * @param options - Optional overrides for asset paths.\n * @param options.ephePath - Path to the directory containing ephemeris data files.\n * @param options.wasmPath - Path to the `swisseph.wasm` file.\n * @param options.onRuntimeNotice - Optional sink for path setup notices; defaults to stderr.\n * @param options.strictEphemeris - Throw when Swiss Ephemeris substitutes Moshier output.\n * @throws SwissEphError with a stable `code` (asset not found, ephemeris files unavailable, ...).\n */\nexport async function getSwissEph(options: GetSwissEphOptions = {}): Promise<void> {\n if (swissEph) {\n if (options.strictEphemeris !== undefined) {\n swissEph.strictEphemeris = options.strictEphemeris;\n }\n return;\n }\n\n if (!swissEphInitPromise) {\n swissEphInitPromise = initializeSwissEph(options).finally(() => {\n swissEphInitPromise = null;\n });\n }\n // Errors propagate to every concurrent caller as typed errors; nothing is logged here.\n await swissEphInitPromise;\n}\n\n/**\n * Calculate planetary positions for a given date\n */\n/**\n * Calculate the position of a single planet by its enum ID.\n * Much cheaper than calculatePlanetaryPositions when only one body is needed.\n */\nexport function calculateSinglePlanetPosition(\n date: Date,\n planet: Planet\n): PlanetPosition {\n checkInitialization();\n const julday = swissEph!.getJulianDay(date);\n return swissEph!.calculatePlanetPosition(julday, planet, DEFAULT_FLAGS);\n}\n\nexport interface CalculatePlanetPositionDetailedOptions extends CalculatePositionOptions {\n /** Swiss flags; defaults to SWISS_EPH | SPEED (the same as every other helper here). */\n flags?: number;\n}\n\n/**\n * Like calculateSinglePlanetPosition, but also reports provenance: the requested and\n * returned Swiss flags and a derived `ephemeris` label (\"swiss\" | \"moshier\" | \"jpl\").\n * `substituted` is true when Swiss Ephemeris returned a different ephemeris than requested\n * (for example Moshier outside the installed .se1 range); with `strictEphemeris` that\n * throws SwissEphEphemerisMismatchError instead.\n */\nexport function calculatePlanetPositionDetailed(\n date: Date,\n planet: Planet,\n options: CalculatePlanetPositionDetailedOptions = {}\n): PlanetPositionDetailed {\n checkInitialization();\n const julday = swissEph!.getJulianDay(date);\n return swissEph!.calculatePlanetPositionDetailed(julday, planet, options.flags ?? DEFAULT_FLAGS, {\n strictEphemeris: options.strictEphemeris,\n });\n}\n\n/**\n * Run `fn` with Swiss global state (sidereal mode and/or topocentric observer) set, then\n * restore the Swiss defaults (sidereal Fagan/Bradley = 0, topocentric 0/0/0) before\n * returning, even if `fn` throws. The callback must be SYNCHRONOUS: because the state is\n * process-wide, awaiting inside would let a concurrent caller observe it. A promise result\n * and re-entrant use are rejected with SWISSEPH_STATE_MISUSE. Callers still opt in per call by\n * adding CalcFlag.SIDEREAL / CalcFlag.TOPOCTR to the flags they pass.\n */\nexport function withSwissEphState<T>(\n state: {\n sidereal?: { mode: number; t0?: number; ayanT0?: number };\n topocentric?: { longitude: number; latitude: number; altitudeMeters?: number };\n },\n fn: () => T\n): T {\n checkInitialization();\n if (swissEphStateDepth > 0) {\n throw new SwissEphError(\"SWISSEPH_STATE_MISUSE\", \"withSwissEphState cannot be nested.\");\n }\n swissEphStateDepth++;\n try {\n if (state.sidereal) {\n swissEph!.setSiderealMode(state.sidereal.mode, state.sidereal.t0 ?? 0, state.sidereal.ayanT0 ?? 0);\n }\n if (state.topocentric) {\n swissEph!.setTopocentric(\n state.topocentric.longitude,\n state.topocentric.latitude,\n state.topocentric.altitudeMeters ?? 0\n );\n }\n const result = fn();\n if (result !== null && typeof result === \"object\" && typeof (result as { then?: unknown }).then === \"function\") {\n throw new SwissEphError(\"SWISSEPH_STATE_MISUSE\", \"withSwissEphState callback must be synchronous.\");\n }\n return result;\n } finally {\n if (state.sidereal) {\n swissEph!.setSiderealMode(0, 0, 0);\n }\n if (state.topocentric) {\n swissEph!.setTopocentric(0, 0, 0);\n }\n swissEphStateDepth--;\n }\n}\n\n/**\n * Calculate equatorial coordinates (Right Ascension / Declination) for a planet.\n * Uses the existing EQUATORIAL flag — RA is returned in the longitude field,\n * Dec in the latitude field by Swiss Ephemeris convention.\n */\nexport interface EquatorialPosition {\n rightAscension: number;\n declination: number;\n distance: number;\n}\n\nexport function calculateEquatorialPosition(\n date: Date,\n planet: Planet\n): EquatorialPosition {\n checkInitialization();\n const julday = swissEph!.getJulianDay(date);\n const pos = swissEph!.calculatePlanetPosition(\n julday,\n planet,\n CalcFlag.SWISS_EPH | CalcFlag.EQUATORIAL\n );\n return {\n rightAscension: pos.longitude,\n declination: pos.latitude,\n distance: pos.distance,\n };\n}\n\n/**\n * Get the Julian day for a Date (UTC).\n */\nexport function getJulianDay(date: Date): number {\n checkInitialization();\n return swissEph!.getJulianDay(date);\n}\n\n/**\n * Millisecond-exact UT Julian Day for a Date (pure arithmetic; needs no initialised ephemeris).\n * Unlike {@link getJulianDay} (whole seconds, kept unchanged for compatibility) this keeps the\n * sub-second part, so it is the right coordinate for `calculateBodyAtJulianDay` /\n * `calculateHousesAtJulianDay`. Equal to `getJulianDay` for whole-second instants (to float rounding).\n */\nexport function getJulianDayExact(date: Date): number {\n return date.getTime() / 86_400_000 + 2440587.5;\n}\n\n/**\n * Find the next rise, set, or meridian transit of a planet at a location.\n * Returns the Julian day of the event.\n */\nexport function calculateRiseTransit(\n date: Date,\n planet: Planet,\n latitude: number,\n longitude: number,\n event: RiseTransitFlag\n): number {\n checkInitialization();\n const julday = swissEph!.getJulianDay(date);\n return swissEph!.riseTransit(julday, planet, event, longitude, latitude);\n}\n\n/**\n * Convert ecliptic coordinates to horizon coordinates (azimuth/altitude).\n */\nexport function calculateAzalt(\n date: Date,\n latitude: number,\n longitude: number,\n eclLon: number,\n eclLat: number,\n dist: number\n): AzaltResult {\n checkInitialization();\n const julday = swissEph!.getJulianDay(date);\n return swissEph!.azalt(julday, longitude, latitude, 0, eclLon, eclLat, dist);\n}\n\nexport async function calculatePlanetaryPositions(\n date: Date\n): Promise<Record<Planet, PlanetPosition>> {\n try {\n checkInitialization();\n\n const julday = swissEph!.getJulianDay(date);\n const flags = DEFAULT_FLAGS;\n const planets: Record<string, Planet> = {\n sun: Planet.SUN,\n moon: Planet.MOON,\n mercury: Planet.MERCURY,\n venus: Planet.VENUS,\n mars: Planet.MARS,\n jupiter: Planet.JUPITER,\n saturn: Planet.SATURN,\n uranus: Planet.URANUS,\n neptune: Planet.NEPTUNE,\n pluto: Planet.PLUTO,\n meanNode: Planet.MEAN_NODE,\n trueNode: Planet.TRUE_NODE,\n chiron: Planet.CHIRON,\n lilithMean: Planet.LILITH_MEAN,\n lilithTrue: Planet.LILITH_TRUE,\n };\n\n const positions: Record<Planet, PlanetPosition> = {} as Record<\n Planet,\n PlanetPosition\n >;\n for (const id of Object.values(planets)) {\n try {\n positions[id] = swissEph!.calculatePlanetPosition(julday, id, flags);\n } catch (error) {\n if (error instanceof SwissEphError) {\n // Keep the typed error (code/details) instead of flattening it into a string.\n throw error;\n }\n throw new Error(\n `Failed to calculate position for ${PLANET_AND_NODE_NAMES[id]}: ${error}`\n );\n }\n }\n\n return positions;\n } catch (error) {\n throw error;\n }\n}\n\n/**\n * Calculate houses for a given date and location\n */\nexport async function calculateHouses(\n date: Date | LocalDateTimeParts,\n latitude: number,\n longitude: number,\n houseSystem: HouseSystem,\n options: TimeZoneOptions = {}\n): Promise<Houses> {\n try {\n checkInitialization();\n\n // Interpret the provided date as local civil time by default.\n // For backward compatibility, allow callers to treat the date as UT.\n const dateForUt =\n options.treatAsUTC === true\n ? (date instanceof Date ? date : createUtcDateFromParts(buildLocalParts(date)))\n : await localToUtcDate(date, latitude, longitude, options);\n\n const julday = swissEph!.getJulianDay(dateForUt);\n return swissEph!.calculateHouses(\n julday,\n latitude,\n longitude,\n houseSystem\n );\n } catch (error) {\n // Errors are rethrown unchanged; library code does not log.\n throw error;\n }\n}\n/**\n * Calculate an asteroid by MPC number\n */\nexport async function calculateAsteroidPosition(\n date: Date,\n mpcNumber: number\n): Promise<PlanetPosition> {\n try {\n checkInitialization();\n\n const julday = swissEph!.getJulianDay(date);\n return swissEph!.calculateAsteroidPosition(\n julday,\n mpcNumber,\n DEFAULT_FLAGS\n );\n } catch (error) {\n throw error;\n }\n}\n\n/**\n * Fortune part utility (requires Asc, Sun, Moon and diurnal/nocturnal)\n * diurnal: Asc + Moon - Sun ; nocturnal: Asc + Sun - Moon\n */\nexport function calcParsFortunae(\n asc: number,\n sunLon: number,\n moonLon: number,\n isDiurnal: boolean\n): number {\n return parsFortunae(asc, sunLon, moonLon, isDiurnal);\n}\n\n/**\n * Clean up Swiss Ephemeris resources\n */\nexport function closeSwissEph(): void {\n if (swissEph) {\n try {\n swissEph.close();\n swissEph = null;\n swissEphRuntimeInfo = null;\n } catch (error) {\n throw error;\n }\n }\n}\n\nfunction checkInitialization(): void {\n if (!swissEph) {\n throw new SwissEphError(\n \"SWISSEPH_NOT_INITIALIZED\",\n \"Swiss Ephemeris not initialized. Call getSwissEph() first.\"\n );\n }\n}\n\n// Re-export types and enums for convenience\nexport {\n ephemerisFromFlags,\n SwissEphError,\n SwissEphEphemerisMismatchError,\n type PlanetPositionDetailed,\n type SwissEphErrorCode,\n type SwissEphemerisKind,\n type AzaltResult,\n CalcFlag,\n HouseSystem,\n normalizeAngle,\n Planet,\n PLANET_AND_NODE_NAMES,\n PlanetPosition,\n RiseTransitFlag,\n VirtualNodes\n};\n\n/**\n * Local civil time handling (DST-aware)\n * Convert a local date-time (given via IANA time zone, explicit UTC offset, or auto from lat/lon)\n * into a UTC Date for Swiss Ephemeris (which expects UT).\n */\nexport interface LocalDateTimeParts {\n year: number;\n month: number; // 1-12\n day: number; // 1-31\n hour?: number; // 0-23\n minute?: number; // 0-59\n second?: number; // 0-59\n}\n\nexport type TimeZoneOptions = {\n /**\n * IANA time zone\n * If provided, DST is handled automatically via Intl API.\n */\n timeZone?: string;\n /**\n * Explicit UTC offset in minutes for the local civil time.\n * Positive for east of Greenwich, negative for west (e.g., -180 for UTC-3).\n * If provided, overrides timeZone.\n */\n utcOffsetMinutes?: number;\n /**\n * Optional resolver to derive an IANA time zone from coordinates and date.\n * Use an external library (e.g., tz-lookup) and pass it here.\n */\n resolveTimeZone?: (latitude: number, longitude: number, local: LocalDateTimeParts) => string | undefined;\n /**\n * When true (default), try to auto-resolve the IANA time zone from lat/lon using tz-lookup\n * if no explicit offset/timeZone is provided.\n */\n autoTimeZone?: boolean;\n /**\n * When true, the date is treated as UTC instead of local civil time.\n */\n treatAsUTC?: boolean;\n};\n\nfunction buildLocalParts(date: Date | LocalDateTimeParts): LocalDateTimeParts {\n if (date instanceof Date) {\n return {\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate(),\n hour: date.getHours(),\n minute: date.getMinutes(),\n second: date.getSeconds(),\n };\n }\n return date;\n}\n\nfunction createUtcDateFromParts(parts: LocalDateTimeParts): Date {\n const { year, month, day, hour = 0, minute = 0, second = 0 } = parts;\n return new Date(Date.UTC(year, month - 1, day, hour, minute, second));\n}\n\n/**\n * Compute the time zone offset (in ms) for a given instant and IANA time zone.\n * Based on the approach used by date-fns-tz.\n */\nfunction getTimeZoneOffsetMs(instant: Date, timeZone: string): number {\n const dtf = new Intl.DateTimeFormat(\"en-US\", {\n timeZone,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\",\n hour12: false,\n });\n const parts = dtf.formatToParts(instant);\n const map: Record<string, string> = {};\n for (const p of parts) {\n map[p.type] = p.value;\n }\n const asUTC = Date.UTC(\n Number(map.year),\n Number(map.month) - 1,\n Number(map.day),\n Number(map.hour),\n Number(map.minute),\n Number(map.second)\n );\n return asUTC - instant.getTime();\n}\n\n/**\n * Convert a local civil date-time to a UTC Date using either an explicit offset,\n * an IANA time zone (DST-aware), a custom resolver, or auto lat/lon resolution.\n * If no time zone information can be derived, throws.\n */\nasync function localToUtcDate(\n local: Date | LocalDateTimeParts,\n latitude?: number,\n longitude?: number,\n opts: TimeZoneOptions = {}\n): Promise<Date> {\n // Treat the date as already UTC — no conversion needed\n if (opts.treatAsUTC === true) {\n return local instanceof Date ? local : createUtcDateFromParts(buildLocalParts(local));\n }\n\n const parts = buildLocalParts(local);\n const auto = opts.autoTimeZone !== false;\n\n // 1) Explicit offset takes precedence\n if (typeof opts.utcOffsetMinutes === \"number\" && Number.isFinite(opts.utcOffsetMinutes)) {\n const utcMs = Date.UTC(\n parts.year,\n parts.month - 1,\n parts.day,\n parts.hour ?? 0,\n parts.minute ?? 0,\n parts.second ?? 0\n );\n return new Date(utcMs - opts.utcOffsetMinutes * 60_000);\n }\n\n // 2) IANA time zone provided\n if (opts.timeZone) {\n const naiveUtc = createUtcDateFromParts(parts);\n const offsetMs = getTimeZoneOffsetMs(naiveUtc, opts.timeZone);\n return new Date(naiveUtc.getTime() - offsetMs);\n }\n\n // 3) Custom resolver\n if (\n opts.resolveTimeZone &&\n typeof latitude === \"number\" &&\n typeof longitude === \"number\"\n ) {\n const tz = opts.resolveTimeZone(latitude, longitude, parts);\n if (tz) {\n const naiveUtc = createUtcDateFromParts(parts);\n const offsetMs = getTimeZoneOffsetMs(naiveUtc, tz);\n return new Date(naiveUtc.getTime() - offsetMs);\n }\n }\n\n // 4) Auto resolve with tz-lookup if allowed and coords available\n if (\n auto &&\n typeof latitude === \"number\" &&\n typeof longitude === \"number\"\n ) {\n\n const mod = await import(\"tz-lookup\");\n const lookup = mod.default ?? mod;\n const tz = lookup(latitude, longitude);\n if (tz) {\n const naiveUtc = createUtcDateFromParts(parts);\n const offsetMs = getTimeZoneOffsetMs(naiveUtc, tz);\n return new Date(naiveUtc.getTime() - offsetMs);\n }\n }\n\n throw new Error(\n \"Time zone information is required. Provide 'utcOffsetMinutes', 'timeZone', 'resolveTimeZone', or enable autoTimeZone with latitude/longitude.\"\n );\n}\n\n/**\n * Public helper to convert a local civil date-time to a UTC Date using the same\n * logic as house calculations.\n */\nexport async function toUtcDate(\n local: Date | LocalDateTimeParts,\n latitude?: number,\n longitude?: number,\n options: TimeZoneOptions = {}\n): Promise<Date> {\n return localToUtcDate(local, latitude, longitude, options);\n}\n\n/**\n * Low-level Julian-day primitives used by the Jyotish module.\n *\n * These are thin, synchronous wrappers over the initialised Swiss Ephemeris\n * instance. They never change the library defaults used by the tropical APIs.\n */\n\n/** Swiss Ephemeris pseudo-body index SE_ECL_NUT (true obliquity is returned in the first slot). */\nexport const SWISS_ECL_NUT = -1;\n\n/** Swiss Ephemeris sidereal mode id for Lahiri (SE_SIDM_LAHIRI). */\nexport const SWISS_SIDM_LAHIRI = 1;\n\n/**\n * Calculate one body at an explicit UT Julian day with explicit Swiss flags\n * (a bitwise OR of {@link CalcFlag}). `body` may be a {@link Planet} or\n * {@link SWISS_ECL_NUT}.\n */\nexport function calculateBodyAtJulianDay(\n julianDayUt: number,\n body: number,\n flags: number\n): PlanetPosition {\n checkInitialization();\n return swissEph!.calculatePlanetPosition(julianDayUt, body, flags);\n}\n\n/**\n * Like {@link calculateBodyAtJulianDay} but reports provenance (the ephemeris Swiss actually used,\n * `substituted`, warning text) and honours a per-call `strictEphemeris`\n * (throws SwissEphEphemerisMismatchError on a silent substitution such as Moshier).\n */\nexport function calculateBodyAtJulianDayDetailed(\n julianDayUt: number,\n body: number,\n flags: number,\n options: CalculatePositionOptions = {}\n): PlanetPositionDetailed {\n checkInitialization();\n return swissEph!.calculatePlanetPositionDetailed(julianDayUt, body, flags, {\n strictEphemeris: options.strictEphemeris,\n });\n}\n\n/**\n * Calculate house cusps and angles at an explicit UT Julian day, with no\n * time-zone handling. Tropical (the Swiss default); sidereal conversion is the\n * caller's responsibility.\n */\nexport function calculateHousesAtJulianDay(\n julianDayUt: number,\n latitude: number,\n longitude: number,\n houseSystem: HouseSystem\n): Houses {\n checkInitialization();\n return swissEph!.calculateHouses(julianDayUt, latitude, longitude, houseSystem);\n}\n\n/**\n * Run `fn` with the given Swiss sidereal mode selected, then restore the\n * default sidereal mode (Fagan/Bradley = 0, the Swiss Ephemeris initial state;\n * this library does not otherwise use sidereal mode). The callback must be\n * synchronous: the mode is mutable global Swiss state, so awaiting inside it\n * could let a concurrent call observe it. A promise result is rejected.\n */\nexport function withSiderealMode<T>(mode: number, fn: () => T): T {\n checkInitialization();\n swissEph!.setSiderealMode(mode, 0, 0);\n try {\n const result = fn();\n if (result !== null && typeof result === \"object\" && typeof (result as { then?: unknown }).then === \"function\") {\n throw new Error(\"withSiderealMode callback must be synchronous\");\n }\n return result;\n } finally {\n swissEph!.setSiderealMode(0, 0, 0);\n }\n}\n","/**\n * Astro*Carto*Graphy (ACG) — locational astrology.\n *\n * Computes where each planet falls on the four angles (MC, IC, AC, DC)\n * across the globe, and queries a specific location for nearby lines\n * and paran crossings.\n *\n * MC/IC lines are pure math (GMST − RA). AC/DC lines require a latitude\n * sweep solving cos(H) = −tan(φ)·tan(δ).\n */\n\nimport {\n calculateEquatorialPosition,\n type EquatorialPosition,\n getJulianDay,\n normalizeAngle,\n Planet,\n PLANET_AND_NODE_NAMES,\n} from \"./swisseph\";\n\n// ─── Types ──────────────────────────────────────────────────────────────\n\nexport type AngleType = \"MC\" | \"IC\" | \"AC\" | \"DC\";\n\nexport interface AstrocartographyLineProximity {\n planet: string;\n angle: AngleType;\n /** Degrees of longitude separation (always positive, 0-180). */\n distance: number;\n /** True when distance ≤ orb. */\n active: boolean;\n /** The line's geographic longitude at the query latitude (-180..180). */\n longitude: number;\n}\n\nexport interface AstrocartographyParan {\n latitude: number;\n planetA: string;\n angleA: AngleType;\n longitudeA: number;\n planetB: string;\n angleB: AngleType;\n longitudeB: number;\n}\n\nexport interface AstrocartographyQueryResult {\n queryLatitude: number;\n queryLongitude: number;\n orb: number;\n lines: AstrocartographyLineProximity[];\n activeLines: AstrocartographyLineProximity[];\n parans: AstrocartographyParan[];\n}\n\nexport interface AstrocartographyMeridianLine {\n planet: string;\n angle: \"MC\" | \"IC\";\n /** Geographic longitude (-180..180). */\n longitude: number;\n}\n\nexport interface AstrocartographyHorizonPoint {\n latitude: number;\n longitude: number;\n}\n\nexport interface AstrocartographyHorizonLine {\n planet: string;\n angle: \"AC\" | \"DC\";\n points: AstrocartographyHorizonPoint[];\n}\n\nexport interface AstrocartographyMap {\n meridianLines: AstrocartographyMeridianLine[];\n horizonLines: AstrocartographyHorizonLine[];\n}\n\nexport interface AstrocartographyMapOptions {\n /** Degrees between latitude sample points (default 1). */\n latitudeStep?: number;\n /** Maximum latitude to sweep (default 66.5). */\n latitudeRange?: number;\n /** Planets to include (default: ASTROCARTOGRAPHY_DEFAULT_PLANETS). */\n planets?: Planet[];\n}\n\nexport interface AstrocartographyQueryOptions {\n latitude: number;\n longitude: number;\n /** Orb in degrees (default 2). */\n orb?: number;\n /** Planets to include (default: ASTROCARTOGRAPHY_DEFAULT_PLANETS). */\n planets?: Planet[];\n /** Paran orb in degrees (default 1). */\n paranOrb?: number;\n}\n\n// ─── Constants ──────────────────────────────────────────────────────────\n\n/** Default planet set for ACG (traditional + modern, no Lilith). */\nexport const ASTROCARTOGRAPHY_DEFAULT_PLANETS: Planet[] = [\n Planet.SUN,\n Planet.MOON,\n Planet.MERCURY,\n Planet.VENUS,\n Planet.MARS,\n Planet.JUPITER,\n Planet.SATURN,\n Planet.URANUS,\n Planet.NEPTUNE,\n Planet.PLUTO,\n Planet.CHIRON,\n Planet.TRUE_NODE,\n];\n\nconst DEG = Math.PI / 180;\n\n// ─── Pure math ──────────────────────────────────────────────────────────\n\n/**\n * Greenwich Mean Sidereal Time from Julian Day (degrees, 0-360).\n */\nexport function computeGMST(julianDay: number): number {\n return normalizeAngle(\n 280.46061837 + 360.98564736629 * (julianDay - 2451545.0)\n );\n}\n\n/**\n * Geographic longitude where a planet's MC line falls.\n * Returns value in -180..180.\n */\nexport function computeMCLongitude(gmst: number, ra: number): number {\n return toGeoLon(normalizeAngle(gmst - ra));\n}\n\n/**\n * Geographic longitude where a planet's IC line falls (opposite MC).\n */\nexport function computeICLongitude(gmst: number, ra: number): number {\n return toGeoLon(normalizeAngle(gmst - ra + 180));\n}\n\n/**\n * Geographic longitude where a planet rises (AC) or sets (DC)\n * at a given geographic latitude.\n *\n * Returns null if the planet is circumpolar or never rises at this latitude.\n */\nexport function computeHorizonLongitude(\n gmst: number,\n ra: number,\n dec: number,\n latitude: number,\n angle: \"AC\" | \"DC\"\n): number | null {\n const tanPhi = Math.tan(latitude * DEG);\n const tanDelta = Math.tan(dec * DEG);\n const cosH = -(tanPhi * tanDelta);\n\n // Circumpolar or never visible\n if (Math.abs(cosH) > 1) return null;\n\n const H = Math.acos(cosH) / DEG; // hour angle in degrees\n\n // AC (rising) = east of meridian = negative hour angle\n // DC (setting) = west of meridian = positive hour angle\n const lon =\n angle === \"AC\"\n ? normalizeAngle(gmst - ra - H)\n : normalizeAngle(gmst - ra + H);\n\n return toGeoLon(lon);\n}\n\n/**\n * Shortest angular distance between two geographic longitudes.\n * Returns 0..180.\n */\nexport function geographicAngularDifference(a: number, b: number): number {\n const d = normalizeAngle(a - b);\n return d > 180 ? 360 - d : d;\n}\n\n/**\n * Convert 0..360 ecliptic-style longitude to -180..180 geographic longitude.\n * 0-180 → 0 to 180 (east), 180-360 → -180 to 0 (west).\n */\nfunction toGeoLon(deg360: number): number {\n const n = normalizeAngle(deg360);\n return n > 180 ? n - 360 : n;\n}\n\n// ─── Equatorial position helpers ────────────────────────────────────────\n\nexport interface PlanetEquatorial {\n ra: number;\n dec: number;\n planetId: Planet;\n}\n\n/**\n * Compute equatorial positions (RA/Dec) for a set of planets at a UTC date.\n */\nexport function computeEquatorialPositions(\n date: Date,\n planets: Planet[] = ASTROCARTOGRAPHY_DEFAULT_PLANETS\n): Record<string, PlanetEquatorial> {\n const result: Record<string, PlanetEquatorial> = {};\n for (const p of planets) {\n const name = PLANET_AND_NODE_NAMES[p];\n const eq = calculateEquatorialPosition(date, p);\n result[name] = {\n ra: eq.rightAscension,\n dec: eq.declination,\n planetId: p,\n };\n }\n return result;\n}\n\n// ─── Paran detection ────────────────────────────────────────────────────\n\n/**\n * Find paran crossings at a given latitude.\n *\n * A paran exists when two different planet's angle-lines\n * pass through the same latitude within `paranOrb` degrees of longitude.\n */\nexport function findParansAtLatitude(\n equatorialPositions: Record<string, PlanetEquatorial>,\n gmst: number,\n latitude: number,\n paranOrb = 1\n): AstrocartographyParan[] {\n const ANGLES: AngleType[] = [\"MC\", \"IC\", \"AC\", \"DC\"];\n\n // Build all lines at this latitude\n interface LineAt {\n planet: string;\n angle: AngleType;\n longitude: number;\n }\n const lines: LineAt[] = [];\n\n for (const [name, eq] of Object.entries(equatorialPositions)) {\n for (const angle of ANGLES) {\n let lon: number | null;\n if (angle === \"MC\") lon = computeMCLongitude(gmst, eq.ra);\n else if (angle === \"IC\") lon = computeICLongitude(gmst, eq.ra);\n else lon = computeHorizonLongitude(gmst, eq.ra, eq.dec, latitude, angle);\n\n if (lon !== null) {\n lines.push({ planet: name, angle, longitude: lon });\n }\n }\n }\n\n // Compare all pairs from different planets\n const parans: AstrocartographyParan[] = [];\n for (let i = 0; i < lines.length; i++) {\n for (let j = i + 1; j < lines.length; j++) {\n const a = lines[i];\n const b = lines[j];\n if (a.planet === b.planet) continue; // same planet, skip\n if (a.angle === b.angle) continue; // same angle type, skip (not a crossing)\n\n const dist = geographicAngularDifference(a.longitude, b.longitude);\n if (dist <= paranOrb) {\n parans.push({\n latitude,\n planetA: a.planet,\n angleA: a.angle,\n longitudeA: a.longitude,\n planetB: b.planet,\n angleB: b.angle,\n longitudeB: b.longitude,\n });\n }\n }\n }\n return parans;\n}\n\n// ─── Query function (primary API) ───────────────────────────────────────\n\n/**\n * Query a specific location against a birth chart's ACG lines.\n *\n * Returns how close each planet's angle line is to the query location,\n * which lines are \"active\" (within orb), and paran crossings at the\n * query latitude.\n */\nexport function queryAstrocartographyLocation(\n date: Date,\n options: AstrocartographyQueryOptions\n): AstrocartographyQueryResult {\n const {\n latitude,\n longitude,\n orb = 2,\n planets = ASTROCARTOGRAPHY_DEFAULT_PLANETS,\n paranOrb = 1,\n } = options;\n\n const jd = getJulianDay(date);\n const gmst = computeGMST(jd);\n const positions = computeEquatorialPositions(date, planets);\n\n const lines: AstrocartographyLineProximity[] = [];\n const ANGLES: AngleType[] = [\"MC\", \"IC\", \"AC\", \"DC\"];\n\n for (const [name, eq] of Object.entries(positions)) {\n for (const angle of ANGLES) {\n let lineLon: number | null;\n if (angle === \"MC\") lineLon = computeMCLongitude(gmst, eq.ra);\n else if (angle === \"IC\") lineLon = computeICLongitude(gmst, eq.ra);\n else\n lineLon = computeHorizonLongitude(\n gmst,\n eq.ra,\n eq.dec,\n latitude,\n angle\n );\n\n if (lineLon === null) continue; // circumpolar, no line at this latitude\n\n const dist = geographicAngularDifference(longitude, lineLon);\n lines.push({\n planet: name,\n angle,\n distance: Math.round(dist * 1000) / 1000,\n active: dist <= orb,\n longitude: Math.round(lineLon * 1000) / 1000,\n });\n }\n }\n\n // Sort by distance ascending\n lines.sort((a, b) => a.distance - b.distance);\n\n const activeLines = lines.filter((l) => l.active);\n const parans = findParansAtLatitude(positions, gmst, latitude, paranOrb);\n\n return { queryLatitude: latitude, queryLongitude: longitude, orb, lines, activeLines, parans };\n}\n\n// ─── Full map generation ────────────────────────────────────────────────\n\n/**\n * Generate the full ACG map: MC/IC lines (constant longitudes) and\n * AC/DC lines (arrays of lat/lon points from a latitude sweep).\n */\nexport function computeAstrocartographyMap(\n date: Date,\n options: AstrocartographyMapOptions = {}\n): AstrocartographyMap {\n const {\n latitudeStep = 1,\n latitudeRange = 66.5,\n planets = ASTROCARTOGRAPHY_DEFAULT_PLANETS,\n } = options;\n\n const jd = getJulianDay(date);\n const gmst = computeGMST(jd);\n const positions = computeEquatorialPositions(date, planets);\n\n const meridianLines: AstrocartographyMeridianLine[] = [];\n const horizonLines: AstrocartographyHorizonLine[] = [];\n\n for (const [name, eq] of Object.entries(positions)) {\n // MC / IC — constant longitude lines\n meridianLines.push({\n planet: name,\n angle: \"MC\",\n longitude: Math.round(computeMCLongitude(gmst, eq.ra) * 1000) / 1000,\n });\n meridianLines.push({\n planet: name,\n angle: \"IC\",\n longitude: Math.round(computeICLongitude(gmst, eq.ra) * 1000) / 1000,\n });\n\n // AC / DC — sweep latitudes\n for (const angle of [\"AC\", \"DC\"] as const) {\n const points: AstrocartographyHorizonPoint[] = [];\n for (\n let lat = -latitudeRange;\n lat <= latitudeRange;\n lat += latitudeStep\n ) {\n const lon = computeHorizonLongitude(gmst, eq.ra, eq.dec, lat, angle);\n if (lon !== null) {\n points.push({\n latitude: Math.round(lat * 1000) / 1000,\n longitude: Math.round(lon * 1000) / 1000,\n });\n }\n }\n horizonLines.push({ planet: name, angle, points });\n }\n }\n\n return { meridianLines, horizonLines };\n}\n","import { normalizeAngle } from \"./swisseph\";\n\nexport type AspectName =\n | \"conjunction\"\n | \"duodecile\"\n | \"octile\"\n | \"sextile\"\n | \"square\"\n | \"trine\"\n | \"trioctile\"\n | \"quincunx\"\n | \"opposition\";\n\nexport interface AspectSpec {\n name: AspectName;\n angle: number;\n orb: number;\n}\n\nexport const DEFAULT_ASPECT_SPECS: AspectSpec[] = [\n { name: \"conjunction\", angle: 0, orb: 8 },\n { name: \"duodecile\", angle: 30, orb: 2 },\n { name: \"octile\", angle: 45, orb: 3 },\n { name: \"sextile\", angle: 60, orb: 5 },\n { name: \"square\", angle: 90, orb: 6 },\n { name: \"trine\", angle: 120, orb: 7 },\n { name: \"trioctile\", angle: 135, orb: 3 },\n { name: \"quincunx\", angle: 150, orb: 3 },\n { name: \"opposition\", angle: 180, orb: 8 },\n];\n\nexport interface AspectEdge {\n planetA: string;\n planetB: string;\n longitudeA: number;\n longitudeB: number;\n aspect: AspectName;\n aspectAngle: number;\n delta: number;\n orb: number;\n}\n\nexport function getAspectMatch(\n lonA: number,\n lonB: number,\n specs: AspectSpec[] = DEFAULT_ASPECT_SPECS\n): { spec: AspectSpec; orb: number; delta: number } | null {\n const a = normalizeAngle(lonA);\n const b = normalizeAngle(lonB);\n const delta = Math.min(\n normalizeAngle(b - a),\n normalizeAngle(a - b)\n );\n for (const spec of specs) {\n const orb = Math.abs(delta - spec.angle);\n if (orb <= spec.orb) {\n return { spec, orb, delta };\n }\n }\n return null;\n}\n\nexport function computeAspects(\n planets: Record<string, { longitude: number }>,\n specs: AspectSpec[] = DEFAULT_ASPECT_SPECS\n): AspectEdge[] {\n const keys = Object.keys(planets);\n const edges: AspectEdge[] = [];\n for (let i = 0; i < keys.length; i++) {\n for (let j = i + 1; j < keys.length; j++) {\n const a = planets[keys[i]];\n const b = planets[keys[j]];\n const match = getAspectMatch(a.longitude, b.longitude, specs);\n if (match) {\n edges.push({\n planetA: keys[i],\n planetB: keys[j],\n longitudeA: a.longitude,\n longitudeB: b.longitude,\n aspect: match.spec.name,\n aspectAngle: match.spec.angle,\n delta: match.delta,\n orb: match.orb,\n });\n }\n }\n }\n return edges;\n}\n\nexport function computeSynastryAspects(\n planetsA: Record<string, { longitude: number }>,\n planetsB: Record<string, { longitude: number }>,\n specs: AspectSpec[] = DEFAULT_ASPECT_SPECS\n): AspectEdge[] {\n const keysA = Object.keys(planetsA);\n const keysB = Object.keys(planetsB);\n const edges: AspectEdge[] = [];\n for (const kA of keysA) {\n for (const kB of keysB) {\n const a = planetsA[kA];\n const b = planetsB[kB];\n const match = getAspectMatch(a.longitude, b.longitude, specs);\n if (match) {\n edges.push({\n planetA: kA,\n planetB: kB,\n longitudeA: a.longitude,\n longitudeB: b.longitude,\n aspect: match.spec.name,\n aspectAngle: match.spec.angle,\n delta: match.delta,\n orb: match.orb,\n });\n }\n }\n }\n return edges;\n}\n\n/** Shorter-arc midpoint of two ecliptic longitudes. */\nexport function shorterArcMidpoint(a: number, b: number): number {\n let diff = b - a;\n if (diff > 180) diff -= 360;\n if (diff < -180) diff += 360;\n return normalizeAngle(a + diff / 2);\n}\n\nexport function computeMidpoints(\n planetsA: Record<string, { longitude: number }>,\n planetsB: Record<string, { longitude: number }>\n): Record<string, number> {\n const result: Record<string, number> = {};\n for (const key of Object.keys(planetsA)) {\n if (!(key in planetsB)) continue;\n result[key] = shorterArcMidpoint(planetsA[key].longitude, planetsB[key].longitude);\n }\n return result;\n}\n\n// ── Transit aspects ─────────────────────────────────────────────────────\n\nexport interface TransitAspectEdge extends AspectEdge {\n applying: boolean;\n retrograde: boolean;\n category: \"slow\" | \"fast\";\n}\n\nexport interface TransitAspectPoint {\n longitude: number;\n longitudeSpeed?: number;\n}\n\nexport const SLOW_PLANETS = new Set([\n \"pluto\", \"neptune\", \"uranus\", \"saturn\", \"jupiter\", \"chiron\",\n \"mean node\", \"true node\", \"lilith true\", \"lilith mean\",\n]);\n\n// Deferred transit features (future releases):\n// - Theme tagging: planet-pair -> archetypal theme (Mars-Pluto = POWER, Neptune-Mercury = DECEPTION, etc.)\n// - Ingress detection: transit planet crossing natal house cusp boundaries\n// - Multi-pass tracking: 3-hit retrograde patterns (direct, retrograde, direct exact dates)\n// - Secondary progressions (--progressed flag)\n// - Arabic parts / fixed stars / eclipses as transit targets\n// - Batch mode: multiple natal charts in one invocation\n\n/**\n * Compute transit-to-natal aspects with applying/separating, retrograde, and speed category.\n *\n * planetA = transit planet, planetB = natal planet/point.\n */\nexport function computeTransitAspects(\n transitPlanets: Record<string, TransitAspectPoint>,\n natalPlanets: Record<string, TransitAspectPoint>,\n specs: AspectSpec[] = DEFAULT_ASPECT_SPECS\n): TransitAspectEdge[] {\n const keysT = Object.keys(transitPlanets);\n const keysN = Object.keys(natalPlanets);\n const edges: TransitAspectEdge[] = [];\n\n for (const kT of keysT) {\n const t = transitPlanets[kT];\n for (const kN of keysN) {\n const n = natalPlanets[kN];\n const match = getAspectMatch(t.longitude, n.longitude, specs);\n if (!match) continue;\n\n const tSpeed = t.longitudeSpeed ?? 0;\n const nSpeed = n.longitudeSpeed ?? 0;\n\n // Epsilon projection: check if orb is decreasing (applying) or increasing (separating)\n const dt = 0.01; // ~14 minutes\n const tLonFuture = t.longitude + tSpeed * dt;\n const nLonFuture = n.longitude + nSpeed * dt;\n const futureMatch = getAspectMatch(tLonFuture, nLonFuture, [match.spec]);\n const applying = futureMatch != null ? futureMatch.orb < match.orb : false;\n\n edges.push({\n planetA: kT,\n planetB: kN,\n longitudeA: t.longitude,\n longitudeB: n.longitude,\n aspect: match.spec.name,\n aspectAngle: match.spec.angle,\n delta: match.delta,\n orb: match.orb,\n applying,\n retrograde: tSpeed < 0,\n category: SLOW_PLANETS.has(kT) ? \"slow\" : \"fast\",\n });\n }\n }\n return edges;\n}\n","/**\n * Decan (face) lookup — Chaldean rulers + Golden Dawn tarot correspondence.\n * Pure math, no WASM dependency.\n */\n\nimport { normalizeAngle } from \"./swisseph\";\nimport { SIGNS } from \"./index\";\nimport type { TraditionalPlanet } from \"./dignity\";\n\nexport interface DecanResult {\n sign: string;\n decanNumber: 1 | 2 | 3;\n ruler: TraditionalPlanet;\n tarotCard: string;\n startDegree: number;\n endDegree: number;\n degreeWithinSign: number;\n}\n\n/** Chaldean descent starting from Mars (Aries decan 1). */\nconst CHALDEAN_RULERS: TraditionalPlanet[] = [\n \"Mars\", \"Sun\", \"Venus\", \"Mercury\", \"Moon\", \"Saturn\", \"Jupiter\",\n];\n\n/** Element-to-suit mapping (Golden Dawn). */\nconst SIGN_SUITS: Record<string, string> = {\n Aries: \"Wands\",\n Taurus: \"Pentacles\",\n Gemini: \"Swords\",\n Cancer: \"Cups\",\n Leo: \"Wands\",\n Virgo: \"Pentacles\",\n Libra: \"Swords\",\n Scorpio: \"Cups\",\n Sagittarius: \"Wands\",\n Capricorn: \"Pentacles\",\n Aquarius: \"Swords\",\n Pisces: \"Cups\",\n};\n\nconst RANK_NAMES = [\"Two\", \"Three\", \"Four\", \"Five\", \"Six\", \"Seven\", \"Eight\", \"Nine\", \"Ten\"];\n\nexport function getDecan(longitude: number): DecanResult {\n const L = normalizeAngle(longitude);\n const signIndex = Math.floor(L / 30) % 12;\n const degreeWithinSign = L - signIndex * 30;\n const decanIndex = Math.min(Math.floor(degreeWithinSign / 10), 2);\n const globalDecanIndex = signIndex * 3 + decanIndex;\n\n const sign = SIGNS[signIndex];\n const ruler = CHALDEAN_RULERS[globalDecanIndex % 7];\n const suit = SIGN_SUITS[sign];\n const rank = RANK_NAMES[globalDecanIndex % 9];\n const tarotCard = `${rank} of ${suit}`;\n\n return {\n sign,\n decanNumber: (decanIndex + 1) as 1 | 2 | 3,\n ruler,\n tarotCard,\n startDegree: signIndex * 30 + decanIndex * 10,\n endDegree: signIndex * 30 + (decanIndex + 1) * 10,\n degreeWithinSign,\n };\n}\n","/**\n * Essential Dignity Table — Traditional Hellenistic rulership data.\n * Pure math, no WASM dependency.\n */\n\nimport { SIGNS, type Sect } from \"./index\";\nimport { getDecan } from \"./decans\";\nimport { normalizeAngle } from \"./swisseph\";\n\nexport type Sign = (typeof SIGNS)[number];\n\nexport type TraditionalPlanet =\n | \"Sun\"\n | \"Moon\"\n | \"Mercury\"\n | \"Venus\"\n | \"Mars\"\n | \"Jupiter\"\n | \"Saturn\";\n\nexport interface EssentialDignityResult {\n domicile: boolean;\n exaltation: boolean;\n detriment: boolean;\n fall: boolean;\n domicileRuler: TraditionalPlanet;\n peregrine: boolean;\n}\n\nexport const DOMICILE_RULERS: Record<Sign, TraditionalPlanet> = {\n Aries: \"Mars\",\n Taurus: \"Venus\",\n Gemini: \"Mercury\",\n Cancer: \"Moon\",\n Leo: \"Sun\",\n Virgo: \"Mercury\",\n Libra: \"Venus\",\n Scorpio: \"Mars\",\n Sagittarius: \"Jupiter\",\n Capricorn: \"Saturn\",\n Aquarius: \"Saturn\",\n Pisces: \"Jupiter\",\n};\n\nexport const EXALTATIONS: Record<TraditionalPlanet, { sign: Sign; degree: number }> = {\n Sun: { sign: \"Aries\", degree: 19 },\n Moon: { sign: \"Taurus\", degree: 3 },\n Mercury: { sign: \"Virgo\", degree: 15 },\n Venus: { sign: \"Pisces\", degree: 27 },\n Mars: { sign: \"Capricorn\", degree: 28 },\n Jupiter: { sign: \"Cancer\", degree: 15 },\n Saturn: { sign: \"Libra\", degree: 21 },\n};\n\nexport function getDomicileRuler(sign: Sign): TraditionalPlanet {\n return DOMICILE_RULERS[sign];\n}\n\nexport function getExaltation(planet: TraditionalPlanet): { sign: Sign; degree: number } {\n return EXALTATIONS[planet];\n}\n\nexport function getOppositeSign(sign: Sign): Sign {\n const idx = SIGNS.indexOf(sign);\n return SIGNS[(idx + 6) % 12];\n}\n\n/** Signs where the planet is in detriment (opposite of its domicile signs). */\nexport function getDetriment(planet: TraditionalPlanet): Sign[] {\n const signs: Sign[] = [];\n for (const [sign, ruler] of Object.entries(DOMICILE_RULERS)) {\n if (ruler === planet) {\n signs.push(getOppositeSign(sign as Sign));\n }\n }\n return signs;\n}\n\n/** Sign where the planet is in fall (opposite of its exaltation sign). */\nexport function getFall(planet: TraditionalPlanet): Sign {\n return getOppositeSign(EXALTATIONS[planet].sign);\n}\n\nexport function getEssentialDignity(planet: TraditionalPlanet, sign: Sign): EssentialDignityResult {\n const domicile = DOMICILE_RULERS[sign] === planet;\n const exaltation = EXALTATIONS[planet].sign === sign;\n const detrimentSigns = getDetriment(planet);\n const detriment = detrimentSigns.includes(sign);\n const fallSign = getFall(planet);\n const fall = fallSign === sign;\n const domicileRuler = DOMICILE_RULERS[sign];\n const peregrine = !domicile && !exaltation && !detriment && !fall;\n\n return { domicile, exaltation, detriment, fall, domicileRuler, peregrine };\n}\n\n// ── Degree- and sect-aware essential dignities ─────────────────────────\n\n/** Tradition names used by the extended dignity tables. */\nexport const DIGNITY_TRADITION = {\n rulership: \"traditional (Ptolemaic) domicile, exaltation, detriment and fall\",\n triplicity: \"Dorothean (day / night / participating rulers by element)\",\n bounds: \"Egyptian (Ptolemaic Tetrabiblos I.21 'Egyptian' terms)\",\n face: \"Chaldean decans (order Mars, Sun, Venus, Mercury, Moon, Saturn, Jupiter from 0 Aries)\",\n intervalConvention: \"half-open [start, end) in degrees of ecliptic longitude\",\n} as const;\n\nexport type TriplicityElement = \"fire\" | \"earth\" | \"air\" | \"water\";\nexport type TriplicityRole = \"day\" | \"night\" | \"participating\";\n\nexport const SIGN_ELEMENTS: Record<Sign, TriplicityElement> = {\n Aries: \"fire\", Taurus: \"earth\", Gemini: \"air\", Cancer: \"water\",\n Leo: \"fire\", Virgo: \"earth\", Libra: \"air\", Scorpio: \"water\",\n Sagittarius: \"fire\", Capricorn: \"earth\", Aquarius: \"air\", Pisces: \"water\",\n};\n\n/** Dorothean triplicity rulers by element. */\nexport const DOROTHEAN_TRIPLICITY_RULERS: Record<\n TriplicityElement,\n Record<TriplicityRole, TraditionalPlanet>\n> = {\n fire: { day: \"Sun\", night: \"Jupiter\", participating: \"Saturn\" },\n earth: { day: \"Venus\", night: \"Moon\", participating: \"Mars\" },\n air: { day: \"Saturn\", night: \"Mercury\", participating: \"Jupiter\" },\n water: { day: \"Venus\", night: \"Mars\", participating: \"Moon\" },\n};\n\nexport interface BoundSegment {\n ruler: TraditionalPlanet;\n /** Start degree within the sign, inclusive. */\n start: number;\n /** End degree within the sign, exclusive. */\n end: number;\n}\n\n/** Upper (exclusive) limits per bound, in degrees within the sign. */\nconst EGYPTIAN_UPPER: Record<Sign, [TraditionalPlanet, number][]> = {\n Aries: [[\"Jupiter\", 6], [\"Venus\", 12], [\"Mercury\", 20], [\"Mars\", 25], [\"Saturn\", 30]],\n Taurus: [[\"Venus\", 8], [\"Mercury\", 14], [\"Jupiter\", 22], [\"Saturn\", 27], [\"Mars\", 30]],\n Gemini: [[\"Mercury\", 6], [\"Jupiter\", 12], [\"Venus\", 17], [\"Mars\", 24], [\"Saturn\", 30]],\n Cancer: [[\"Mars\", 7], [\"Venus\", 13], [\"Mercury\", 19], [\"Jupiter\", 26], [\"Saturn\", 30]],\n Leo: [[\"Jupiter\", 6], [\"Venus\", 11], [\"Saturn\", 18], [\"Mercury\", 24], [\"Mars\", 30]],\n Virgo: [[\"Mercury\", 7], [\"Venus\", 17], [\"Jupiter\", 21], [\"Mars\", 28], [\"Saturn\", 30]],\n Libra: [[\"Saturn\", 6], [\"Mercury\", 14], [\"Jupiter\", 21], [\"Venus\", 28], [\"Mars\", 30]],\n Scorpio: [[\"Mars\", 7], [\"Venus\", 11], [\"Mercury\", 19], [\"Jupiter\", 24], [\"Saturn\", 30]],\n Sagittarius: [[\"Jupiter\", 12], [\"Venus\", 17], [\"Mercury\", 21], [\"Saturn\", 26], [\"Mars\", 30]],\n Capricorn: [[\"Mercury\", 7], [\"Jupiter\", 14], [\"Venus\", 22], [\"Saturn\", 26], [\"Mars\", 30]],\n Aquarius: [[\"Mercury\", 7], [\"Venus\", 13], [\"Jupiter\", 20], [\"Mars\", 25], [\"Saturn\", 30]],\n Pisces: [[\"Venus\", 12], [\"Jupiter\", 16], [\"Mercury\", 19], [\"Mars\", 28], [\"Saturn\", 30]],\n};\n\n/** Egyptian bounds (terms) with half-open `[start, end)` degree intervals within each sign. */\nexport const EGYPTIAN_BOUNDS: Record<Sign, BoundSegment[]> = Object.fromEntries(\n (Object.entries(EGYPTIAN_UPPER) as [Sign, [TraditionalPlanet, number][]][]).map(([sign, rows]) => {\n let start = 0;\n return [\n sign,\n rows.map(([ruler, end]) => {\n const seg = { ruler, start, end };\n start = end;\n return seg;\n }),\n ];\n })\n) as Record<Sign, BoundSegment[]>;\n\nfunction locate(longitude: number): { sign: Sign; signIndex: number; degreeInSign: number } {\n const L = normalizeAngle(longitude);\n const signIndex = Math.min(Math.floor(L / 30), 11);\n return { sign: SIGNS[signIndex], signIndex, degreeInSign: L - signIndex * 30 };\n}\n\n/** Egyptian bound ruler at an ecliptic longitude (half-open intervals). */\nexport function getEgyptianBound(longitude: number): BoundSegment & { sign: Sign } {\n const { sign, degreeInSign } = locate(longitude);\n const seg = EGYPTIAN_BOUNDS[sign].find((b) => degreeInSign >= b.start && degreeInSign < b.end)\n ?? EGYPTIAN_BOUNDS[sign][EGYPTIAN_BOUNDS[sign].length - 1];\n return { ...seg, sign };\n}\n\n/** Dorothean triplicity rulers for a sign. */\nexport function getDorotheanTriplicity(sign: Sign): Record<TriplicityRole, TraditionalPlanet> & { element: TriplicityElement } {\n const element = SIGN_ELEMENTS[sign];\n return { element, ...DOROTHEAN_TRIPLICITY_RULERS[element] };\n}\n\n/** Chaldean face (decan) ruler at an ecliptic longitude. */\nexport function getFaceRuler(longitude: number): TraditionalPlanet {\n return getDecan(longitude).ruler;\n}\n\nexport type PositiveDignity = \"domicile\" | \"exaltation\" | \"triplicity\" | \"participatingTriplicity\" | \"bound\" | \"face\";\n\nexport interface EssentialDignitiesDetail {\n planet: TraditionalPlanet;\n longitude: number;\n sign: Sign;\n degreeInSign: number;\n /** Sect used to select the triplicity ruler; null when not supplied. */\n sect: Sect | null;\n domicile: boolean;\n exaltation: boolean;\n /** Planet is the Dorothean ruler matching `sect` (false when sect is null). */\n triplicity: boolean;\n /** Planet is the participating (third) Dorothean ruler. */\n participatingTriplicity: boolean;\n /** Planet's role among the three triplicity rulers of this element, if any (day/night/participating). */\n triplicityRole: TriplicityRole | null;\n bound: boolean;\n face: boolean;\n detriment: boolean;\n fall: boolean;\n /**\n * True only when none of the positive dignities applies: domicile,\n * exaltation, triplicity (any of day / night / participating ruler of the\n * element, so the result does not depend on sect knowledge), bound or face.\n * Detriment and fall do not affect it.\n */\n peregrine: boolean;\n positiveDignities: PositiveDignity[];\n rulers: {\n domicile: TraditionalPlanet;\n exaltation: TraditionalPlanet | null;\n triplicity: Record<TriplicityRole, TraditionalPlanet> & { element: TriplicityElement; sectRuler: TraditionalPlanet | null };\n bound: TraditionalPlanet;\n face: TraditionalPlanet;\n };\n tradition: typeof DIGNITY_TRADITION;\n}\n\n/**\n * Degree- and sect-aware essential dignities for a traditional planet at an\n * ecliptic longitude. Extends (does not replace) `getEssentialDignity`, whose\n * `peregrine` ignores triplicity, bounds and faces.\n */\nexport function getEssentialDignities(\n planet: TraditionalPlanet,\n longitude: number,\n sect: Sect | null = null\n): EssentialDignitiesDetail {\n const { sign, degreeInSign } = locate(longitude);\n const base = getEssentialDignity(planet, sign);\n const trip = getDorotheanTriplicity(sign);\n const sectRuler = sect === null ? null : sect === \"diurnal\" ? trip.day : trip.night;\n const bound = getEgyptianBound(longitude).ruler;\n const face = getFaceRuler(longitude);\n const triplicityRole: TriplicityRole | null =\n trip.day === planet ? \"day\" : trip.night === planet ? \"night\" : trip.participating === planet ? \"participating\" : null;\n const exaltationRuler = (Object.keys(EXALTATIONS) as TraditionalPlanet[]).find((p) => EXALTATIONS[p].sign === sign) ?? null;\n\n const flags = {\n domicile: base.domicile,\n exaltation: base.exaltation,\n triplicity: sectRuler === planet,\n participatingTriplicity: trip.participating === planet,\n bound: bound === planet,\n face: face === planet,\n };\n const positiveDignities = (Object.keys(flags) as PositiveDignity[]).filter((k) => flags[k]);\n const peregrine = !flags.domicile && !flags.exaltation && triplicityRole === null && !flags.bound && !flags.face;\n\n return {\n planet,\n longitude: normalizeAngle(longitude),\n sign,\n degreeInSign,\n sect,\n ...flags,\n triplicityRole,\n detriment: base.detriment,\n fall: base.fall,\n peregrine,\n positiveDignities,\n rulers: {\n domicile: base.domicileRuler,\n exaltation: exaltationRuler,\n triplicity: { ...trip, sectRuler },\n bound,\n face,\n },\n tradition: DIGNITY_TRADITION,\n };\n}\n","{\n \"planetSigns\": {\n \"sun\": {\n \"Aries\": {\n \"pt\": \"você põe calor, entusiasmo e vontade nas suas iniciativas, com energia pra criar e abrir caminho. a liderança pode vir junto de impulsividade e obstinação, inclusive na tentativa de impor seu ponto de vista.\",\n \"en\": \"you bring warmth, enthusiasm and will to your initiatives, with energy to create and break new ground. leadership can come with impulsiveness and stubbornness, including attempts to impose your point of view.\",\n \"keywords\": {\n \"pt\": [\n \"iniciativa\",\n \"entusiasmo\",\n \"liderança\",\n \"impulsividade\"\n ],\n \"en\": [\n \"initiative\",\n \"enthusiasm\",\n \"leadership\",\n \"impulsiveness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 286,\n \"to\": 298\n }\n ],\n \"reviewNotes\": []\n },\n \"Taurus\": {\n \"pt\": \"você constrói com firmeza, paciência e reflexão, sustentando o que quer fazer com vontade e persistência. essa constância pode virar teimosia, e você também pode tender à inércia e à indiferença.\",\n \"en\": \"you build with steadiness, patience and reflection, sustaining what you want to do through will and persistence. that constancy can become stubbornness, and you can also tend toward inertia and indifference.\",\n \"keywords\": {\n \"pt\": [\n \"firmeza\",\n \"paciência\",\n \"reflexão\",\n \"teimosia\"\n ],\n \"en\": [\n \"steadiness\",\n \"patience\",\n \"reflection\",\n \"stubbornness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 310,\n \"to\": 317\n }\n ],\n \"reviewNotes\": []\n },\n \"Gemini\": {\n \"pt\": \"você se move pela curiosidade, pela troca e pelo gosto de raciocinar, com facilidade pra discernir, inventar e comunicar. a rotina e o tédio pesam, e a busca de experiências pode levar à dispersão, à superficialidade e ao afastamento das responsabilidades.\",\n \"en\": \"you are moved by curiosity, exchange and the pleasure of reasoning, with ease in discerning, inventing and communicating. routine and boredom weigh on you, and the search for experiences can lead to scattered attention, superficiality and avoidance of responsibilities.\",\n \"keywords\": {\n \"pt\": [\n \"curiosidade\",\n \"comunicação\",\n \"discernimento\",\n \"versatilidade\"\n ],\n \"en\": [\n \"curiosity\",\n \"communication\",\n \"discernment\",\n \"versatility\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 328,\n \"to\": 342\n }\n ],\n \"reviewNotes\": []\n },\n \"Cancer\": {\n \"pt\": \"você vive as coisas com sensibilidade, imaginação e uma reserva que pode conviver com a disposição de escutar e compreender. o conforto e a vida doméstica têm peso, mas o apego à família e ao passado pode se tornar excessivo.\",\n \"en\": \"you experience things with sensitivity, imagination and a reserve that can coexist with a willingness to listen and understand. comfort and home life carry weight, but attachment to family and the past can become excessive.\",\n \"keywords\": {\n \"pt\": [\n \"sensibilidade\",\n \"imaginação\",\n \"reserva\",\n \"vida doméstica\"\n ],\n \"en\": [\n \"sensitivity\",\n \"imagination\",\n \"reserve\",\n \"home life\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 356,\n \"to\": 370\n }\n ],\n \"reviewNotes\": []\n },\n \"Leo\": {\n \"pt\": \"você exterioriza ideias e sentimentos com calor e generosidade, buscando liderar, brilhar e ocupar uma posição de autoridade. essa autoridade pode vir com obstinação, vaidade e pouca percepção dos próprios defeitos, além da facilidade de se deixar levar pela bajulação.\",\n \"en\": \"you express ideas and feelings outwardly with warmth and generosity, seeking to lead, shine and hold a position of authority. that authority can come with stubbornness, vanity and little awareness of your own faults, as well as susceptibility to flattery.\",\n \"keywords\": {\n \"pt\": [\n \"expressão\",\n \"generosidade\",\n \"liderança\",\n \"reconhecimento\"\n ],\n \"en\": [\n \"expression\",\n \"generosity\",\n \"leadership\",\n \"recognition\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 377,\n \"to\": 379\n },\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 385,\n \"to\": 391\n }\n ],\n \"reviewNotes\": []\n },\n \"Virgo\": {\n \"pt\": \"você sente uma necessidade acentuada de se afirmar e conta com análise, observação e organização pra lidar com os detalhes. essa afirmação pode aumentar o egocentrismo, enquanto a atenção às minúcias pode dificultar a visão do todo e alimentar a crítica.\",\n \"en\": \"you feel a heightened need to assert yourself and draw on analysis, observation and organization to handle details. that self-assertion can increase self-centeredness, while attention to particulars can make it harder to see the whole and feed criticism.\",\n \"keywords\": {\n \"pt\": [\n \"afirmação\",\n \"análise\",\n \"organização\",\n \"minúcias\"\n ],\n \"en\": [\n \"self-assertion\",\n \"analysis\",\n \"organization\",\n \"particulars\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 402,\n \"to\": 403\n },\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 407,\n \"to\": 415\n }\n ],\n \"reviewNotes\": [\n \"Course OCR interleaves Virgo and Libra: Virgo uses 402-403 and 407-415; Libra 405-406 is excluded from this entry.\",\n \"Book 24375-24396 emphasizes service and modesty; course 402-403 explicitly emphasizes increased ego and self-assertion. Course emphasis is retained, not blended into the opposite claim.\"\n ]\n },\n \"Libra\": {\n \"pt\": \"você busca harmonia e conciliação, considerando os dois lados de uma questão e dando uma direção mais consciente aos impulsos sem perder o entusiasmo pela vida. essa disposição diplomática pode vir acompanhada de indecisão, embora a definição do que quer favoreça sua ação.\",\n \"en\": \"you seek harmony and reconciliation, considering both sides of an issue and giving impulses a more conscious direction while retaining enthusiasm for life. that diplomatic disposition can come with indecision, although defining what you want helps you act.\",\n \"keywords\": {\n \"pt\": [\n \"harmonia\",\n \"conciliação\",\n \"diplomacia\",\n \"indecisão\"\n ],\n \"en\": [\n \"harmony\",\n \"reconciliation\",\n \"diplomacy\",\n \"indecision\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 405,\n \"to\": 406\n },\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 420,\n \"to\": 425\n }\n ],\n \"reviewNotes\": []\n },\n \"Scorpio\": {\n \"pt\": \"você encontra mais facilidade pra se expressar e organizar sua força e agressividade, com vontade, persistência e gosto pela investigação. essa força mantém a resistência à autoridade e pode conviver com desconfiança e ciúme, mesmo quando você age com coragem e cautela.\",\n \"en\": \"you find greater ease in expressing yourself and organizing your strength and aggressiveness, with will, persistence and a taste for investigation. that strength retains resistance to authority and can coexist with suspicion and jealousy, even when you act with courage and caution.\",\n \"keywords\": {\n \"pt\": [\n \"vontade\",\n \"persistência\",\n \"investigação\",\n \"resistência à autoridade\"\n ],\n \"en\": [\n \"will\",\n \"persistence\",\n \"investigation\",\n \"resistance to authority\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 437,\n \"to\": 446\n }\n ],\n \"reviewNotes\": []\n },\n \"Sagittarius\": {\n \"pt\": \"você se expressa com calor e tende a centralizar as situações, valorizando a liberdade, a franqueza e o senso de justiça. o otimismo e a independência podem conviver com rebeldia, desperdício e dificuldade de receber críticas.\",\n \"en\": \"you express yourself with warmth and tend to centralize situations, valuing freedom, frankness and a sense of justice. optimism and independence can coexist with rebelliousness, wastefulness and difficulty receiving criticism.\",\n \"keywords\": {\n \"pt\": [\n \"otimismo\",\n \"liberdade\",\n \"franqueza\",\n \"justiça\"\n ],\n \"en\": [\n \"optimism\",\n \"freedom\",\n \"frankness\",\n \"justice\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 458,\n \"to\": 465\n }\n ],\n \"reviewNotes\": []\n },\n \"Capricorn\": {\n \"pt\": \"você sustenta suas ambições com disciplina, prudência e perseverança, e o Sol acrescenta calor humano que facilita o contato com os outros. a seriedade e o respeito pelo dever podem conviver com pessimismo, reserva e apego à tradição.\",\n \"en\": \"you sustain your ambitions with discipline, prudence and perseverance, and the Sun adds human warmth that eases contact with others. seriousness and respect for duty can coexist with pessimism, reserve and attachment to tradition.\",\n \"keywords\": {\n \"pt\": [\n \"ambição\",\n \"disciplina\",\n \"perseverança\",\n \"calor humano\"\n ],\n \"en\": [\n \"ambition\",\n \"discipline\",\n \"perseverance\",\n \"human warmth\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 476,\n \"to\": 486\n }\n ],\n \"reviewNotes\": []\n },\n \"Aquarius\": {\n \"pt\": \"você valoriza a liberdade, as reformas e o que é novo ou incomum, com criatividade e interesse humanitário. o Sol em exílio acentua a preocupação consigo, e a abertura à mudança pode conviver com imprevisibilidade e aversão à rotina.\",\n \"en\": \"you value freedom, reform and what is new or unusual, with creativity and humanitarian concern. the Sun in detriment heightens self-concern, and openness to change can coexist with unpredictability and aversion to routine.\",\n \"keywords\": {\n \"pt\": [\n \"liberdade\",\n \"reformas\",\n \"criatividade\",\n \"preocupação consigo\"\n ],\n \"en\": [\n \"freedom\",\n \"reform\",\n \"creativity\",\n \"self-concern\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 496,\n \"to\": 502\n }\n ],\n \"reviewNotes\": [\n \"Book 25785-25890 emphasizes contribution and emotional distance; course 496-497 explicitly adds self-concern with the Sun in detriment. Course emphasis is retained.\"\n ]\n },\n \"Pisces\": {\n \"pt\": \"você conta com a ação do Sol pra refletir antes de seguir o primeiro impulso, trazendo disciplina e equilíbrio à sensibilidade. a imaginação e a compaixão podem conviver com uma postura passiva e receptiva e com a tendência de buscar soluções místicas pras dificuldades.\",\n \"en\": \"you draw on the action of the Sun to reflect before following the first impulse, bringing discipline and balance to sensitivity. imagination and compassion can coexist with a passive, receptive stance and a tendency to seek mystical solutions to difficulties.\",\n \"keywords\": {\n \"pt\": [\n \"reflexão\",\n \"sensibilidade\",\n \"imaginação\",\n \"compaixão\"\n ],\n \"en\": [\n \"reflection\",\n \"sensitivity\",\n \"imagination\",\n \"compassion\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 3 modulo 4/aula-3.md\",\n \"from\": 514,\n \"to\": 521\n }\n ],\n \"reviewNotes\": [\n \"Book 26087-26104 emphasizes decisions by feeling and intuition; course 514-516 explicitly describes reflection before impulse, discipline and balance. Course emphasis is retained.\"\n ]\n }\n },\n \"moon\": {\n \"Aries\": {\n \"pt\": \"você reage com entusiasmo sincero e inteligência aguda, que pode ser instável, enquanto seu temperamento pode ser inconstante. o impulso de se colocar em primeiro lugar pode vir com obstinação, aversão às convenções e dificuldade de aceitar conselhos ou disciplina.\",\n \"en\": \"you react with sincere enthusiasm and a sharp mind that can be unsteady, while your temperament may be changeable. the impulse to put yourself first can come with stubbornness, aversion to convention and difficulty accepting advice or discipline.\",\n \"keywords\": {\n \"pt\": [\n \"entusiasmo\",\n \"inteligência aguda\",\n \"inconstância\",\n \"obstinação\"\n ],\n \"en\": [\n \"enthusiasm\",\n \"sharp mind\",\n \"changeability\",\n \"stubbornness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 5,\n \"to\": 9\n },\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 12,\n \"to\": 14\n }\n ],\n \"reviewNotes\": [\n \"Sharp intelligence retains the instability qualifier; omitted accident/health predictions and prescriptions to develop patience.\"\n ]\n },\n \"Taurus\": {\n \"pt\": \"você encontra estabilidade na persistência e na determinação, com responsabilidade prática, sociabilidade e gosto pelas artes. essa constância contrabalança a impulsividade e pode conviver com possessividade.\",\n \"en\": \"you find stability in persistence and determination, with practical responsibility, sociability and an appreciation of the arts. that steadiness counterbalances impulsiveness and can coexist with possessiveness.\",\n \"keywords\": {\n \"pt\": [\n \"persistência\",\n \"determinação\",\n \"sociabilidade\",\n \"possessividade\"\n ],\n \"en\": [\n \"persistence\",\n \"determination\",\n \"sociability\",\n \"possessiveness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 15,\n \"to\": 19\n },\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 21,\n \"to\": 22\n }\n ],\n \"reviewNotes\": [\n \"Preserved the difficult-aspect intensification of possessiveness; ambiguous maternal-inheritance wording, financial predictions and health claims omitted.\",\n \"Course 19-20 has an ambiguous antecedent in its maternal-inheritance and adverse-aspect clauses. The description retains possessiveness from 19 but does not infer what becomes severe under adverse aspects.\"\n ]\n },\n \"Gemini\": {\n \"pt\": \"você encontra estímulo em fazer várias coisas e trocar ideias, com vivacidade intelectual e necessidade de variedade. se faltar estabilidade nas outras áreas do mapa, você pode ter indecisão e agitação.\",\n \"en\": \"you find stimulation in doing several things and exchanging ideas, with intellectual liveliness and a need for variety. if other areas of the chart lack stability, you can experience indecision and restlessness.\",\n \"keywords\": {\n \"pt\": [\n \"variedade\",\n \"vivacidade intelectual\",\n \"troca de ideias\",\n \"indecisão\"\n ],\n \"en\": [\n \"variety\",\n \"intellectual liveliness\",\n \"exchange of ideas\",\n \"indecision\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 23,\n \"to\": 28\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 28528,\n \"to\": 28537\n }\n ],\n \"reviewNotes\": [\n \"Instability is conditional on other chart areas, not an unconditional Moon trait; book supports exchange of ideas. Walking prescriptions and claims about children omitted.\"\n ]\n },\n \"Cancer\": {\n \"pt\": \"você sente uma forte necessidade de cuidar e proteger, com instinto familiar acentuado, sensibilidade ao ambiente, imaginação viva e emoções intensas. sua tenacidade pode atuar de forma negativa, e você pode superestimar a autoridade.\",\n \"en\": \"you feel a strong need to care and protect, with a strong family instinct, sensitivity to your surroundings, a vivid imagination and intense emotions. your tenacity can act negatively, and you may overestimate authority.\",\n \"keywords\": {\n \"pt\": [\n \"cuidado\",\n \"proteção\",\n \"sensibilidade\",\n \"tenacidade\"\n ],\n \"en\": [\n \"care\",\n \"protection\",\n \"sensitivity\",\n \"tenacity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 35,\n \"to\": 41\n }\n ],\n \"reviewNotes\": [\n \"Kept the authority tension without promising parenting ability; book nostalgia was inspected but not added.\"\n ]\n },\n \"Leo\": {\n \"pt\": \"você organiza com autoconfiança e alegria, expressando afeição generosa e lealdade. essa capacidade pode virar autoritarismo e, quando a Lua recebe aspectos difíceis, dar lugar a presunção, vaidade, ostentação e arrogância.\",\n \"en\": \"you organize with self-confidence and joy, expressing generous affection and loyalty. that ability can turn into authoritarianism and, when the Moon receives difficult aspects, give way to presumptuousness, vanity, ostentation and arrogance.\",\n \"keywords\": {\n \"pt\": [\n \"organização\",\n \"generosidade\",\n \"lealdade\",\n \"autoritarismo\"\n ],\n \"en\": [\n \"organization\",\n \"generosity\",\n \"loyalty\",\n \"authoritarianism\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 42,\n \"to\": 47\n }\n ],\n \"reviewNotes\": [\n \"Authoritarianism is a general organizational tension; vanity/ostentation/arrogance retain the explicit difficult-aspect condition. No recognition requirement added from book.\"\n ]\n },\n \"Virgo\": {\n \"pt\": \"você conta com inteligência prática e analítica, boa memória e atenção meticulosa pra estudar e trabalhar com afinco. essa atenção pode se tornar excessiva, junto de preocupação acentuada, timidez e falta de autoconfiança.\",\n \"en\": \"you draw on practical, analytical intelligence, a good memory and meticulous attention to study and work diligently. that attention can become excessive, alongside pronounced worry, shyness and a lack of confidence.\",\n \"keywords\": {\n \"pt\": [\n \"análise\",\n \"memória\",\n \"atenção aos detalhes\",\n \"preocupação\"\n ],\n \"en\": [\n \"analysis\",\n \"memory\",\n \"attention to detail\",\n \"worry\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 51,\n \"to\": 51\n },\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 53,\n \"to\": 58\n }\n ],\n \"reviewNotes\": [\n \"Kept worry and low confidence alongside analytical strengths; omitted health claims and gendered occupational assignment.\"\n ]\n },\n \"Libra\": {\n \"pt\": \"você se aproxima com cortesia, encanto e vontade genuína de agradar, preferindo dividir a responsabilidade pelas decisões. a determinação pode faltar e, quando a Lua recebe aspectos difíceis, podem aparecer volubilidade e crítica excessiva.\",\n \"en\": \"you approach others with courtesy, charm and a genuine wish to please, preferring to share responsibility for decisions. determination may be lacking and, when the Moon receives difficult aspects, fickleness and excessive criticism can appear.\",\n \"keywords\": {\n \"pt\": [\n \"cortesia\",\n \"encanto\",\n \"decisões compartilhadas\",\n \"volubilidade\"\n ],\n \"en\": [\n \"courtesy\",\n \"charm\",\n \"shared decisions\",\n \"fickleness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 60,\n \"to\": 67\n }\n ],\n \"reviewNotes\": [\n \"Retained weak determination and the difficult-aspect condition for fickleness/criticism; omitted occupational assignment and relationship guarantees.\"\n ]\n },\n \"Scorpio\": {\n \"pt\": \"você vive emoções intensas, com magnetismo e determinação, e sua introversão às vezes encobre impetuosidade e excitação interiores. pode haver orgulho e obstinação e, quando a Lua recebe aspectos difíceis, podem surgir melancolia, ressentimento, possessividade e irritação.\",\n \"en\": \"you have intense emotions, magnetism and determination, and your introversion sometimes conceals inner impetuosity and excitement. pride and stubbornness may be present and, when the Moon receives difficult aspects, melancholy, resentment, possessiveness and irritation can arise.\",\n \"keywords\": {\n \"pt\": [\n \"intensidade\",\n \"magnetismo\",\n \"determinação\",\n \"possessividade\"\n ],\n \"en\": [\n \"intensity\",\n \"magnetism\",\n \"determination\",\n \"possessiveness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 68,\n \"to\": 73\n }\n ],\n \"reviewNotes\": [\n \"Introversion remains occasional and may mask inner excitement; difficult-aspect tensions stay conditional. No transformation/regeneration assignment from book.\"\n ]\n },\n \"Sagittarius\": {\n \"pt\": \"você tende ao otimismo e à conversa, com intuição desenvolvida e forte gosto pela independência e pela liberdade. essa disposição pode vir com inquietude, senso de urgência, imediatismo e, às vezes, imprudência.\",\n \"en\": \"you tend toward optimism and conversation, with developed intuition and a strong desire for independence and freedom. that disposition can come with restlessness, a sense of urgency, a tendency to want things right away and, at times, recklessness.\",\n \"keywords\": {\n \"pt\": [\n \"otimismo\",\n \"independência\",\n \"intuição\",\n \"inquietude\"\n ],\n \"en\": [\n \"optimism\",\n \"independence\",\n \"intuition\",\n \"restlessness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 74,\n \"to\": 76\n },\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 78,\n \"to\": 81\n }\n ],\n \"reviewNotes\": [\n \"Kept restlessness and occasional recklessness; omitted exercise prescriptions, residential predictions and prophetic labeling.\"\n ]\n },\n \"Capricorn\": {\n \"pt\": \"você assume responsabilidades com prudência, senso prático e dedicação persistente. sua reserva e cautela podem chegar ao excesso, trazendo austeridade, embora às vezes também apareça ostentação.\",\n \"en\": \"you take on responsibilities with prudence, practical sense and persistent dedication. your reserve and caution can become excessive, bringing austerity, although ostentation can sometimes appear as well.\",\n \"keywords\": {\n \"pt\": [\n \"prudência\",\n \"responsabilidade\",\n \"persistência\",\n \"austeridade\"\n ],\n \"en\": [\n \"prudence\",\n \"responsibility\",\n \"persistence\",\n \"austerity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 82,\n \"to\": 85\n },\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 87,\n \"to\": 90\n }\n ],\n \"reviewNotes\": [\n \"Kept both excess caution/austerity and occasional opposite ostentation; omitted depression language and predicted career rank.\"\n ]\n },\n \"Aquarius\": {\n \"pt\": \"você valoriza a independência e a informalidade, com afabilidade, bondade e espírito inventivo. esse amor à autonomia pode vir com obstinação, imprevisibilidade e distanciamento emocional, às vezes tratado com indiferença.\",\n \"en\": \"you value independence and informality, with friendliness, kindness and an inventive spirit. that love of autonomy can come with stubbornness, unpredictability and emotional distance, sometimes met with indifference.\",\n \"keywords\": {\n \"pt\": [\n \"independência\",\n \"afabilidade\",\n \"inventividade\",\n \"imprevisibilidade\"\n ],\n \"en\": [\n \"independence\",\n \"friendliness\",\n \"inventiveness\",\n \"unpredictability\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 91,\n \"to\": 99\n }\n ],\n \"reviewNotes\": [\n \"Recast possible loneliness/relational failure as emotional distance without predicting outcomes; omitted nervous tension, control prescriptions and a collective mission.\"\n ]\n },\n \"Pisces\": {\n \"pt\": \"você tem uma natureza receptiva e gentil, com imaginação desenvolvida e possível talento artístico, embora possa faltar expressão coerente. quando a Lua recebe aspectos difíceis, podem surgir credulidade, pouca praticidade e mudanças de ideia que tornam as decisões conflituosas.\",\n \"en\": \"you have a receptive, gentle nature, with a developed imagination and possible artistic talent, although coherent expression may be lacking. when the Moon receives difficult aspects, credulity, impracticality and changes of mind can make decisions conflict-ridden.\",\n \"keywords\": {\n \"pt\": [\n \"receptividade\",\n \"imaginação\",\n \"talento artístico\",\n \"credulidade\"\n ],\n \"en\": [\n \"receptivity\",\n \"imagination\",\n \"artistic talent\",\n \"credulity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 18 modulo 4/aula-18.md\",\n \"from\": 100,\n \"to\": 104\n }\n ],\n \"reviewNotes\": [\n \"Artistic talent remains possible and may lack coherent expression; credulity/impracticality/changes of mind retain the difficult-aspect condition. Remedial instructions omitted.\"\n ]\n }\n },\n \"mercury\": {\n \"Aries\": {\n \"pt\": \"você tem mente aberta e atenta, com rapidez e competência intelectual, além de ideias novas e metas bem definidas. também tende a ser confiável e sincero.\",\n \"en\": \"you have an open, attentive mind, with speed and intellectual ability, as well as new ideas and well-defined goals. you also tend to be reliable and sincere.\",\n \"keywords\": {\n \"pt\": [\n \"rapidez mental\",\n \"competência intelectual\",\n \"ideias novas\",\n \"confiabilidade\",\n \"sinceridade\"\n ],\n \"en\": [\n \"quick thinking\",\n \"intellectual ability\",\n \"new ideas\",\n \"reliability\",\n \"sincerity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 7,\n \"to\": 8\n }\n ],\n \"reviewNotes\": [\n \"Used only the course claims; inspected book material on directness and impulsivity but left it unused.\"\n ]\n },\n \"Taurus\": {\n \"pt\": \"você tende a pensar devagar. sua mente se apoia mais na experiência do que na inteligência.\",\n \"en\": \"you tend to think slowly. your mind relies more on experience than on intelligence.\",\n \"keywords\": {\n \"pt\": [\n \"pensamento lento\",\n \"experiência\"\n ],\n \"en\": [\n \"slow thinking\",\n \"experience\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 9,\n \"to\": 9\n }\n ],\n \"reviewNotes\": [\n \"The book opening was inspected but its extracted text was too corrupted to range-map reliably, so it is unused; both sentences and keywords reflect only course line 9.\"\n ]\n },\n \"Gemini\": {\n \"pt\": \"você pode raciocinar com rapidez, ter ideias brilhantes, senso de humor apurado e imaginação aguçada. também há habilidade para discursos, junto de tendência a mentir.\",\n \"en\": \"you may reason quickly, have brilliant ideas, a keen sense of humor and a sharp imagination. you also have a gift for speaking, alongside a tendency to lie.\",\n \"keywords\": {\n \"pt\": [\n \"rapidez de raciocínio\",\n \"ideias brilhantes\",\n \"imaginação\",\n \"tendência a mentir\"\n ],\n \"en\": [\n \"quick reasoning\",\n \"brilliant ideas\",\n \"imagination\",\n \"tendency to lie\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 10,\n \"to\": 11\n }\n ],\n \"reviewNotes\": [\n \"Kept the course's explicit negative qualifier, ‘tendências a mentira’, rather than softening it. Book discussion of versatility, curiosity, and adaptation was not added because the course is primary and already supplies the sign's claims.\"\n ]\n },\n \"Cancer\": {\n \"pt\": \"você tem excelente memória, principalmente para fatos ligados às emoções. também pode haver ingenuidade e pouco senso de observação.\",\n \"en\": \"you have an excellent memory, especially for facts linked to emotions. there may also be naivety and limited powers of observation.\",\n \"keywords\": {\n \"pt\": [\n \"memória\",\n \"emoções\",\n \"ingenuidade\",\n \"pouco senso de observação\"\n ],\n \"en\": [\n \"memory\",\n \"emotions\",\n \"naivety\",\n \"limited powers of observation\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 12,\n \"to\": 13\n }\n ],\n \"reviewNotes\": [\n \"The course states these traits without conditional qualifiers. Supplemental book claims about emotional communication and intuition were omitted to keep the synthesis narrow and avoid adding generic filler.\"\n ]\n },\n \"Leo\": {\n \"pt\": \"você tem segurança nas próprias ideias e tende à alegria, ao otimismo e à generosidade. há risco de grosseria, preconceitos e vaidade exacerbada.\",\n \"en\": \"you feel confident in your own ideas and tend toward joy, optimism and generosity. there is a risk of rudeness, prejudice and excessive vanity.\",\n \"keywords\": {\n \"pt\": [\n \"segurança nas ideias\",\n \"otimismo\",\n \"generosidade\",\n \"vaidade\"\n ],\n \"en\": [\n \"confidence in ideas\",\n \"optimism\",\n \"generosity\",\n \"vanity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 14,\n \"to\": 15\n }\n ],\n \"reviewNotes\": [\n \"Curso é conciso; o livro corrobora confiança e expressão criativa, mas não foi usado para acrescentar liderança, persuasão ou busca de reconhecimento.\"\n ]\n },\n \"Virgo\": {\n \"pt\": \"você tem grande capacidade para o trabalho intelectual, com versatilidade e seletividade. você pode se tornar muito crítico e pedante.\",\n \"en\": \"you have a strong capacity for intellectual work, with versatility and selectiveness. you can become highly critical and pedantic.\",\n \"keywords\": {\n \"pt\": [\n \"trabalho intelectual\",\n \"versatilidade\",\n \"seletividade\",\n \"criticismo\"\n ],\n \"en\": [\n \"intellectual work\",\n \"versatility\",\n \"selectiveness\",\n \"criticism\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 16,\n \"to\": 17\n }\n ],\n \"reviewNotes\": [\n \"Livro reforça análise, método e precisão, mas o resumo conserva a formulação mais estreita do curso e sua tensão explícita de crítica/pedantismo.\"\n ]\n },\n \"Libra\": {\n \"pt\": \"seu pensamento pode ser lento, mas você consegue pensar de modo equilibrado. seu intelecto mostra pouca inclinação à especulação, e falta tato.\",\n \"en\": \"your thinking may be slow, though you can think in a balanced way. your intellect shows little inclination toward speculation, and tact is lacking.\",\n \"keywords\": {\n \"pt\": [\n \"pensamento lento\",\n \"equilíbrio\",\n \"pouca especulação\",\n \"falta de tato\"\n ],\n \"en\": [\n \"slow thinking\",\n \"balance\",\n \"little speculation\",\n \"lack of tact\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 18,\n \"to\": 19\n }\n ],\n \"reviewNotes\": [\n \"O livro descreve diplomacia, equilíbrio e mediação, em tensão com a falta de tato e a lentidão do curso. A prioridade do curso foi mantida; o material suplementar não foi usado para inverter ou suavizar essas afirmações. OCR do livro está fragmentado.\"\n ]\n },\n \"Scorpio\": {\n \"pt\": \"você conta com inteligência e intuição muito desenvolvidas e grande poder de concentração. há risco de se tornar desconfiado e mentalmente cruel.\",\n \"en\": \"you have highly developed intelligence and intuition, along with strong powers of concentration. there is a risk of becoming suspicious and mentally cruel.\",\n \"keywords\": {\n \"pt\": [\n \"inteligência\",\n \"intuição\",\n \"concentração\",\n \"desconfiança\"\n ],\n \"en\": [\n \"intelligence\",\n \"intuition\",\n \"concentration\",\n \"suspicion\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 20,\n \"to\": 21\n }\n ],\n \"reviewNotes\": [\n \"O livro corrobora comunicação intensa, investigação e fala por vezes cortante; o curso, mais específico, sustenta a formulação final. Não se acrescentaram inferências sobre segredos ou intenções.\"\n ]\n },\n \"Sagittarius\": {\n \"pt\": \"você pode ter um senso crítico pouco desenvolvido e tender à superficialidade. seu intelecto pode se mostrar vulnerável, com falta de ideias próprias.\",\n \"en\": \"you may have an underdeveloped critical sense and tend toward superficiality. your intellect may prove vulnerable, with a lack of ideas of your own.\",\n \"keywords\": {\n \"pt\": [\n \"senso crítico pouco desenvolvido\",\n \"superficialidade\",\n \"vulnerabilidade intelectual\",\n \"falta de ideias próprias\"\n ],\n \"en\": [\n \"underdeveloped critical sense\",\n \"superficiality\",\n \"intellectual vulnerability\",\n \"lack of ideas of your own\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 22,\n \"to\": 23\n }\n ],\n \"reviewNotes\": [\n \"Course 22-23 gives only tensions; no flattering counterweight was added. The book opening at 34820-34825 instead emphasizes optimism, honesty and philosophical exploration; that divergent emphasis is not blended into the entry.\"\n ]\n },\n \"Capricorn\": {\n \"pt\": \"você pensa de modo racional, sério, frio e calculista, com boa memória. sua postura mental pode ser intransigente e recusar a fantasia e a imaginação.\",\n \"en\": \"you think in a rational, serious, cold and calculating way, with a good memory. your mental stance can be intransigent and reject fantasy and imagination.\",\n \"keywords\": {\n \"pt\": [\n \"racionalidade\",\n \"boa memória\",\n \"cálculo\",\n \"intransigência mental\"\n ],\n \"en\": [\n \"rationality\",\n \"good memory\",\n \"calculation\",\n \"mental intransigence\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 24,\n \"to\": 25\n }\n ],\n \"reviewNotes\": [\n \"Preserved cold/calculating intelligence and rejection of fantasy/imagination rather than substituting generic pragmatism. The interleaved book opening at 35037-35055 corroborates seriousness/calculation but its responsibility, organization and authority/tradition themes were not added.\"\n ]\n },\n \"Aquarius\": {\n \"pt\": \"você tem curiosidade e gosto pela pesquisa, com a mente voltada para o futuro e ideias originais. há também uma tendência à desonestidade.\",\n \"en\": \"you have curiosity and a taste for research, with a mind oriented toward the future and original ideas. there is also a tendency toward dishonesty.\",\n \"keywords\": {\n \"pt\": [\n \"curiosidade\",\n \"pesquisa\",\n \"ideias originais\",\n \"tendência à desonestidade\"\n ],\n \"en\": [\n \"curiosity\",\n \"research\",\n \"original ideas\",\n \"tendency toward dishonesty\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 26,\n \"to\": 27\n }\n ],\n \"reviewNotes\": [\n \"The explicit course tendency toward dishonesty is retained, not replaced with eccentricity. Book 35302-35312 supports original/futuristic thought but emphasizes friendly/open communication, social change and technology; those additions do not override the course tension.\"\n ]\n },\n \"Pisces\": {\n \"pt\": \"você tem muita imaginação e uma mente confusa, que pode chegar a ideias geniais. também há uma tendência à mentira.\",\n \"en\": \"you have a vivid imagination and a confused mind that can produce brilliant ideas. there is also a tendency toward lying.\",\n \"keywords\": {\n \"pt\": [\n \"imaginação\",\n \"confusão mental\",\n \"ideias geniais\",\n \"tendência à mentira\"\n ],\n \"en\": [\n \"imagination\",\n \"mental confusion\",\n \"brilliant ideas\",\n \"tendency toward lying\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 28,\n \"to\": 29\n }\n ],\n \"reviewNotes\": [\n \"The course madness/genius polarity is paraphrased without diagnostic labeling as confusion/brilliant ideas; its explicit tendency toward lying remains. The book opening at 35527 and 35539-35550 is interleaved and emphasizes intuition/empathy; 35565-35568 supports imagination. No missing passage was reconstructed and no empathic counterweight was added.\",\n \"Source review keeps confusion as the baseline rather than making it only one pole of an oscillation. The clinical madness label is not carried into the prose; the possible brilliant ideas and lying tendency remain.\"\n ]\n }\n },\n \"venus\": {\n \"Aries\": {\n \"pt\": \"você vive os sentimentos amorosos com bastante intensidade e paixão. sua sexualidade pode ser pouco convencional, com uma necessidade constante de satisfação.\",\n \"en\": \"you experience romantic feelings with considerable intensity and passion. your sexuality may be unconventional, with a constant need for fulfillment.\",\n \"keywords\": {\n \"pt\": [\n \"intensidade\",\n \"paixão\",\n \"sexualidade pouco convencional\",\n \"necessidade de satisfação\"\n ],\n \"en\": [\n \"intensity\",\n \"passion\",\n \"unconventional sexuality\",\n \"need for fulfillment\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 32,\n \"to\": 33\n }\n ],\n \"reviewNotes\": [\n \"The course's constant need for sexual satisfaction and unconventional sexuality are retained as needs/preferences, without predicting behavior or outcomes. The inspected book opening's romantic enthusiasm and fleeting passions were not used because they would shift the course emphasis.\"\n ]\n },\n \"Taurus\": {\n \"pt\": \"você demonstra grande sensualidade e alegria de viver, encarando o amor de um modo natural. você tende à fidelidade nos vínculos a dois.\",\n \"en\": \"you show great sensuality and joy in life, approaching love in a natural way. you tend toward fidelity in one-to-one relationships.\",\n \"keywords\": {\n \"pt\": [\n \"sensualidade\",\n \"alegria de viver\",\n \"amor natural\",\n \"fidelidade\"\n ],\n \"en\": [\n \"sensuality\",\n \"joy in life\",\n \"natural approach to love\",\n \"fidelity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 34,\n \"to\": 35\n }\n ],\n \"reviewNotes\": [\n \"The course lists fidelity directly; phrased it as a possible relationship theme to avoid deterministic identity language. Book claims about stability, security, and reliability were inspected but not adopted because they are not in the course passage.\"\n ]\n },\n \"Gemini\": {\n \"pt\": \"você pode ter pouco senso de realidade e tendência ao flerte e à aventura. viagens ou pessoas estrangeiras podem fazer parte de suas histórias amorosas.\",\n \"en\": \"you may have little sense of reality and a tendency toward flirting and adventure. travel or people from other countries may feature in your romances.\",\n \"keywords\": {\n \"pt\": [\n \"pouco senso de realidade\",\n \"flerte\",\n \"aventura\",\n \"viagens ou pessoas estrangeiras\"\n ],\n \"en\": [\n \"limited sense of reality\",\n \"flirting\",\n \"adventure\",\n \"travel or foreign people\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 36,\n \"to\": 38\n }\n ],\n \"reviewNotes\": [\n \"Course claims about affairs during travel or with foreigners are cautiously recast as possible themes in romantic stories, not predicted outcomes. The course's outdated sexual-orientation claim is omitted. The inspected book's relational optimism and variety claims were not added.\"\n ]\n },\n \"Cancer\": {\n \"pt\": \"você pode viver o amor com romantismo e tendência a histórias pouco reais. também pode precisar de afeto permanente e ter gosto pela arte.\",\n \"en\": \"you may approach love romantically and tend toward stories that are not very realistic. you may also need constant affection and have an appreciation for art.\",\n \"keywords\": {\n \"pt\": [\n \"romantismo\",\n \"histórias pouco reais\",\n \"afeto permanente\",\n \"arte\"\n ],\n \"en\": [\n \"romanticism\",\n \"unrealistic stories\",\n \"constant affection\",\n \"art\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 39,\n \"to\": 40\n }\n ],\n \"reviewNotes\": [\n \"Kept the course's unrealistic-story tension instead of replacing it with the book's romantic optimism. The inspected book's emotional security, family bonds, and caregiving claims were not adopted because they are absent from the course lines.\"\n ]\n },\n \"Leo\": {\n \"pt\": \"você tende a viver o amor com liberdade e sem culpa, valorizando o que considera essencial. também gosta de arte.\",\n \"en\": \"you tend to experience love freely and without guilt, valuing what you consider essential. you also enjoy art.\",\n \"keywords\": {\n \"pt\": [\n \"liberdade no amor\",\n \"sem culpa\",\n \"essencial\",\n \"arte\"\n ],\n \"en\": [\n \"freedom in love\",\n \"without guilt\",\n \"essentials\",\n \"art\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 41,\n \"to\": 42\n }\n ],\n \"reviewNotes\": [\n \"O livro apresenta amor dramático e entusiasta, desejo de adoração e expressão grandiosa (37392-37407), em tensão com a liberdade sem culpa e o foco no essencial do curso. Mantida a formulação do curso; não foram acrescentados drama, necessidade de admiração ou promessa de generosidade no amor.\"\n ]\n },\n \"Virgo\": {\n \"pt\": \"você pode ter pouca sensualidade. seu senso crítico pode abafar a espontaneidade amorosa.\",\n \"en\": \"you may have little sensuality. your critical sense can stifle spontaneity in love.\",\n \"keywords\": {\n \"pt\": [\n \"pouca sensualidade\",\n \"senso crítico\",\n \"espontaneidade amorosa abafada\"\n ],\n \"en\": [\n \"little sensuality\",\n \"critical sense\",\n \"stifled spontaneity in love\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 43,\n \"to\": 44\n }\n ],\n \"reviewNotes\": [\n \"O curso também usa o termo assexualidade; ele não foi convertido em rótulo determinístico de identidade ou clínico, nem sua acepção histórica foi equiparada a categorias atuais. O livro descreve carinho prático e atencioso e atos de serviço (37637-37642, 37661-37671), mas não usei esse otimismo relacional para neutralizar a tensão negativa do curso.\"\n ]\n },\n \"Libra\": {\n \"pt\": \"você tende a sonhar acordado e pode sustentar por bastante tempo uma história sentimental. há também tendência à fidelidade.\",\n \"en\": \"you tend to daydream and may sustain a romantic attachment for a long time. there is also a tendency toward faithfulness.\",\n \"keywords\": {\n \"pt\": [\n \"devaneio\",\n \"história sentimental duradoura\",\n \"fidelidade\"\n ],\n \"en\": [\n \"daydreaming\",\n \"long-lasting romantic relationship\",\n \"faithfulness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 45,\n \"to\": 46\n }\n ],\n \"reviewNotes\": [\n \"O livro valoriza harmonia, equilíbrio e diplomacia, ausentes no trecho do curso; esses temas foram registrados como contraste e não acrescentados como contrapeso. A duração é apresentada como capacidade/tendência, sem garantir resultado para uma relação definida.\"\n ]\n },\n \"Scorpio\": {\n \"pt\": \"você pode ter grande dificuldade para amar e encarar o amor como um problema. pode haver forte erotismo ou fixação pelo sexo.\",\n \"en\": \"you may find it very difficult to love and experience love as a problem. there may be strong eroticism or fixation on sex.\",\n \"keywords\": {\n \"pt\": [\n \"dificuldade para amar\",\n \"amor como problema\",\n \"forte erotismo\",\n \"fixação pelo sexo\"\n ],\n \"en\": [\n \"difficulty loving\",\n \"love as a problem\",\n \"strong eroticism\",\n \"fixation on sex\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 47,\n \"to\": 48\n }\n ],\n \"reviewNotes\": [\n \"A afirmação sobre frigidez ou impotência foi omitida por ser diagnóstico/alegação de saúde. O livro descreve amor intenso e apaixonado, busca de conexões profundas e lealdade (38052-38060), em tensão com a dificuldade para amar e o amor como problema do curso. Curso mantido como autoridade, sem romantizar ou garantir transformação relacional.\"\n ]\n },\n \"Sagittarius\": {\n \"pt\": \"você pode viver a sexualidade com liberdade e ter aventuras afetivas durante viagens ou com pessoas de outros países. também pode haver uma tendência à infidelidade amorosa e sexual.\",\n \"en\": \"you may experience sexuality freely and have romantic adventures during travel or with people from other countries. there may also be a tendency toward romantic and sexual infidelity.\",\n \"keywords\": {\n \"pt\": [\n \"sexualidade livre\",\n \"aventuras afetivas\",\n \"viagens\",\n \"infidelidade amorosa e sexual\"\n ],\n \"en\": [\n \"sexual freedom\",\n \"romantic adventures\",\n \"travel\",\n \"romantic and sexual infidelity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 49,\n \"to\": 50\n }\n ],\n \"reviewNotes\": [\n \"Course love during travel or with people from other countries is retained as a possibility rather than reduced to interest or presented as a guaranteed event; sexual freedom and infidelity are possibilities, not deterministic identity labels. The interleaved book opening at 38226-38236 and nearby psychological text at 38240-38248 and 38260-38267 emphasize freedom/adventure; its optimism, growth and enthusiasm are not added as a counterweight to course infidelity.\"\n ]\n },\n \"Capricorn\": {\n \"pt\": \"você pode ter sua espontaneidade afetiva abafada pela racionalidade. a expressão dos sentimentos pode ficar bloqueada, com frieza.\",\n \"en\": \"you may have your emotional spontaneity stifled by rationality. the expression of feelings can become blocked, with coldness.\",\n \"keywords\": {\n \"pt\": [\n \"racionalidade\",\n \"espontaneidade afetiva abafada\",\n \"expressão sentimental bloqueada\",\n \"frieza\"\n ],\n \"en\": [\n \"rationality\",\n \"stifled emotional spontaneity\",\n \"blocked expression of feelings\",\n \"coldness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 51,\n \"to\": 52\n }\n ],\n \"reviewNotes\": [\n \"Course total suppression of spontaneity and categorical inability to express feelings are recast as possible blockage, retaining coldness without assigning a permanent incapacity. Book 38452-38461 instead emphasizes respectful reserve, stable commitment and responsibility; no flattering dedication/commitment trait is imported.\"\n ]\n },\n \"Aquarius\": {\n \"pt\": \"você pode viver a sexualidade de modo livre e sentimental, alternando entre amor e amizade. pode haver dificuldade de manter vínculos fixos e estáveis.\",\n \"en\": \"you may approach sexuality with freedom and feeling, alternating between love and friendship. there may be difficulty maintaining fixed and stable bonds.\",\n \"keywords\": {\n \"pt\": [\n \"sexualidade livre\",\n \"sentimentalidade\",\n \"alternância entre amor e amizade\",\n \"dificuldade de manter vínculos estáveis\"\n ],\n \"en\": [\n \"sexual freedom\",\n \"sentimentality\",\n \"alternation between love and friendship\",\n \"difficulty maintaining stable bonds\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 53,\n \"to\": 54\n }\n ],\n \"reviewNotes\": [\n \"Course categorical inability to maintain fixed/stable relationships is recast as possible difficulty rather than predicted failure. Free/sentimental sexuality does not imply orientation. Book 38725-38737 emphasizes independence, intellectual connection and companionship; these are not used to erase or replace the course stability tension.\"\n ]\n },\n \"Pisces\": {\n \"pt\": \"você pode viver o afeto com grande sensualidade e romantismo. sua atitude em relação à pessoa amada pode ter um tom maternal, mas também pode haver traições.\",\n \"en\": \"you may experience affection with strong sensuality and romanticism. your attitude toward the person you love can have a maternal tone, but betrayals are also possible.\",\n \"keywords\": {\n \"pt\": [\n \"sensualidade\",\n \"romantismo\",\n \"atitude maternal\",\n \"possíveis traições\"\n ],\n \"en\": [\n \"sensuality\",\n \"romanticism\",\n \"maternal attitude\",\n \"possible betrayals\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 55,\n \"to\": 56\n }\n ],\n \"reviewNotes\": [\n \"Omitted the course gendered femininity assignment rather than infer identity or orientation. The maternal tendency describes an attitude toward the loved person, not an independent care behavior, fixed gender role or practice. Possible betrayals retains the source ambiguity about who betrays whom. Book 39088-39094 emphasizes empathy, sacrifice, spirituality and emotional fusion; none is added to cancel the course betrayal tension.\"\n ]\n }\n },\n \"mars\": {\n \"Aries\": {\n \"pt\": \"você tem força física e mental e espírito de liderança. sua agressividade e franqueza podem acompanhar um jeito direto e assertivo de agir.\",\n \"en\": \"you have physical and mental strength and a leadership spirit. aggression and frankness may accompany a direct, assertive way of acting.\",\n \"keywords\": {\n \"pt\": [\n \"força física\",\n \"força mental\",\n \"liderança\",\n \"agressividade\",\n \"franqueza\"\n ],\n \"en\": [\n \"physical strength\",\n \"mental strength\",\n \"leadership\",\n \"aggression\",\n \"frankness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 59,\n \"to\": 60\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 40349,\n \"to\": 40364\n }\n ],\n \"reviewNotes\": [\n \"The course OCR phrases ‘afiar à independência’ and ‘sexualidade perante’ are unclear and were not reconstructed or used. Book opening supports direct/assertive action; leadership is independently stated in the course.\",\n \"Direct/assertive action was confirmed by the user in book 40349-40364 across OCR columns; only that narrow adopted passage is cited.\"\n ]\n },\n \"Taurus\": {\n \"pt\": \"você tem força de vontade e tende a não se curvar diante das dificuldades. essa firmeza pode virar obstinação, junto de sensualidade e afetividade.\",\n \"en\": \"you have willpower and tend not to bend in the face of difficulties. that firmness can become stubbornness, alongside sensuality and affection.\",\n \"keywords\": {\n \"pt\": [\n \"força de vontade\",\n \"persistência\",\n \"obstinação\",\n \"sensualidade\",\n \"afetividade\"\n ],\n \"en\": [\n \"willpower\",\n \"persistence\",\n \"stubbornness\",\n \"sensuality\",\n \"affection\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 61,\n \"to\": 62\n }\n ],\n \"reviewNotes\": [\n \"Persistence paraphrases the primary course's not bending before difficulties (61-62). The book was inspected at 40683-40732 but supplies no adopted extra claim and is not cited. No practical-goal, material-security or physical-endurance addition.\"\n ]\n },\n \"Gemini\": {\n \"pt\": \"você pode ter vigor intelectual, sobretudo em atividades ligadas à palavra, e tendência à tagarelice. também pode desperdiçar energia e buscar viagens e mudanças.\",\n \"en\": \"you may have intellectual vigor, especially in activities involving words, and a tendency to talk a lot. you may also waste energy and seek travel and change.\",\n \"keywords\": {\n \"pt\": [\n \"vigor intelectual\",\n \"palavra\",\n \"tagarelice\",\n \"desperdício de energia\",\n \"mudanças\"\n ],\n \"en\": [\n \"intellectual vigor\",\n \"words\",\n \"talkativeness\",\n \"wasted energy\",\n \"change\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 63,\n \"to\": 64\n }\n ],\n \"reviewNotes\": [\n \"The course's ‘viagens e mudanças’ is rendered as a tendency to seek them, not as a prediction. Book opening was inspected but adds quickness/versatility not necessary to the primary course synthesis.\"\n ]\n },\n \"Cancer\": {\n \"pt\": \"você pode ser inconstante e agressivo, com tensão no ambiente familiar. também há originalidade e sensualidade, além de forte intuição.\",\n \"en\": \"you may be changeable and aggressive, with tension in the family environment. there is also originality and sensuality, along with strong intuition.\",\n \"keywords\": {\n \"pt\": [\n \"inconstância\",\n \"agressividade\",\n \"tensão familiar\",\n \"originalidade\",\n \"sensualidade\",\n \"intuição\"\n ],\n \"en\": [\n \"changeability\",\n \"aggression\",\n \"family tension\",\n \"originality\",\n \"sensuality\",\n \"intuition\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 65,\n \"to\": 66\n }\n ],\n \"reviewNotes\": [\n \"Preserved the course's tension and aggression without turning them into predictions about family outcomes. The inspected book's protective, emotionally defensive framing was not used because the course does not state it.\"\n ]\n },\n \"Leo\": {\n \"pt\": \"você pode exercer liderança, força física e coragem sob controle da razão. a ambição pode vir com autoritarismo e tendência ao exagero.\",\n \"en\": \"you may show leadership, physical strength and courage guided by reason. ambition can come with authoritarianism and a tendency to exaggerate.\",\n \"keywords\": {\n \"pt\": [\n \"liderança\",\n \"força física\",\n \"coragem\",\n \"ambição\",\n \"autoritarismo\",\n \"exagero\"\n ],\n \"en\": [\n \"leadership\",\n \"physical strength\",\n \"courage\",\n \"ambition\",\n \"authoritarianism\",\n \"exaggeration\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 67,\n \"to\": 68\n }\n ],\n \"reviewNotes\": [\n \"O livro descreve força dramática/confiante, busca por liderança e orgulho (41340-41363); esses elementos não foram usados para deslocar a contenção racional e as tensões explicitadas pelo curso.\"\n ]\n },\n \"Virgo\": {\n \"pt\": \"sua visão crítica pode ser acentuada, com ironia e sarcasmo. suas ações podem ser movidas por provocações.\",\n \"en\": \"your critical outlook may be pronounced, with irony and sarcasm. your actions may be driven by provocation.\",\n \"keywords\": {\n \"pt\": [\n \"visão crítica\",\n \"ironia\",\n \"sarcasmo\",\n \"provocações\"\n ],\n \"en\": [\n \"critical outlook\",\n \"irony\",\n \"sarcasm\",\n \"provocation\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 69,\n \"to\": 70\n }\n ],\n \"reviewNotes\": [\n \"O rótulo da linha 69 aparece como VIAGEM, entre Leão e Libra; atribuição a Virgem é inferida apenas pela sequência canônica e permanece uma recuperação editorial incerta. Não se reconstruiu a leitura corrompida como Virgem no texto-fonte. O livro descreve energia meticulosa, prática e eficiente (41590-41602), mas não foi usado como contrapeso nem para completar a passagem do curso.\"\n ]\n },\n \"Libra\": {\n \"pt\": \"você pode ter pouca força de vontade e tender à hesitação, embora haja empenho artístico e afetivo. a expressão da sexualidade pode tender a extremos, entre ausência e exagero, e há também intuição.\",\n \"en\": \"you may have little willpower and tend toward hesitation, while showing artistic and affectionate commitment. sexuality may tend toward extremes, from absence to excess, and intuition is also present.\",\n \"keywords\": {\n \"pt\": [\n \"pouca força de vontade\",\n \"hesitação\",\n \"empenho artístico\",\n \"empenho afetivo\",\n \"extremos na expressão sexual\",\n \"intuição\"\n ],\n \"en\": [\n \"little willpower\",\n \"hesitation\",\n \"artistic commitment\",\n \"affectionate commitment\",\n \"extremes in sexual expression\",\n \"intuition\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 71,\n \"to\": 72\n }\n ],\n \"reviewNotes\": [\n \"O curso descreve a sexualidade como sem meios-termos, ausente ou exagerada; a redação mantém essa tensão sem converter em orientação ou identidade determinística. O livro favorece equilíbrio/diplomacia, mas também diz que pode haver combatividade diante de injustiça (41873-41888); curso prioritário mantido, sem esse contrapeso.\"\n ]\n },\n \"Scorpio\": {\n \"pt\": \"você pode ter força de vontade muito intensa e forte erotismo. também pode haver espírito vingativo e liderança.\",\n \"en\": \"you may have very intense willpower and strong eroticism. a vengeful spirit and leadership may also be present.\",\n \"keywords\": {\n \"pt\": [\n \"força de vontade intensa\",\n \"erotismo\",\n \"espírito vingativo\",\n \"liderança\"\n ],\n \"en\": [\n \"intense willpower\",\n \"eroticism\",\n \"vengeful spirit\",\n \"leadership\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 73,\n \"to\": 74\n }\n ],\n \"reviewNotes\": [\n \"A construção 'que pede até ser destrutiva' na linha 73 é gramaticalmente/OCR incerta; não inferi nem reconstruí o referente ou a relação causal. O livro descreve intensidade, confronto e força de vontade (42146-42153), sem necessidade de importar a afirmação de buscar a verdade oculta.\"\n ]\n },\n \"Sagittarius\": {\n \"pt\": \"você pode agir com espírito aventureiro, competitivo e entusiasmado, com inclinação para a arte e as atividades culturais. a energia sexual é enfatizada principalmente em pessoas do sexo masculino.\",\n \"en\": \"you may act with an adventurous, competitive and enthusiastic spirit, with an inclination toward art and cultural activities. sexual energy is emphasized especially in people of the male sex.\",\n \"keywords\": {\n \"pt\": [\n \"espírito aventureiro\",\n \"competitividade\",\n \"energia sexual, principalmente em pessoas do sexo masculino\",\n \"inclinações artísticas e culturais\"\n ],\n \"en\": [\n \"adventurous spirit\",\n \"competitiveness\",\n \"sexual energy, especially in people of the male sex\",\n \"artistic and cultural inclinations\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 75,\n \"to\": 77\n }\n ],\n \"reviewNotes\": [\n \"The course male-emphasis qualifier is retained explicitly in both prose and keyword languages without inferring the reader's sex/gender. Book 42409-42413 emphasizes exploration, optimism and freedom; those additions are not adopted.\"\n ]\n },\n \"Capricorn\": {\n \"pt\": \"você pode controlar sua força física pela razão e agir com perseverança. também podem estar presentes autoridade, poder e cólera.\",\n \"en\": \"you may control your physical strength through reason and act with perseverance. authority, power and anger may also be present.\",\n \"keywords\": {\n \"pt\": [\n \"força física controlada pela razão\",\n \"perseverança\",\n \"autoridade e poder\",\n \"cólera\"\n ],\n \"en\": [\n \"physical strength controlled by reason\",\n \"perseverance\",\n \"authority and power\",\n \"anger\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 78,\n \"to\": 79\n }\n ],\n \"reviewNotes\": [\n \"Omitted the course promise of success in public/private life. Authority, power and anger remain independent listed themes, not a mechanism expressing physical strength or a guaranteed position/career outcome. The interleaved book opening at 42627-42644 corroborates control but adds ambition, strategy and long-term goals; those additions are not adopted.\"\n ]\n },\n \"Aquarius\": {\n \"pt\": \"você pode sentir aversão a vínculos, com espírito libertário e forte energia para os estudos. sua iniciativa pode ser pioneira e impulsiva.\",\n \"en\": \"you may feel an aversion to bonds, with a libertarian spirit and strong energy for study. your initiative can be pioneering and impulsive.\",\n \"keywords\": {\n \"pt\": [\n \"aversão a vínculos\",\n \"espírito libertário\",\n \"energia para os estudos\",\n \"impulsividade\",\n \"espírito pioneiro\"\n ],\n \"en\": [\n \"aversion to bonds\",\n \"libertarian spirit\",\n \"energy for study\",\n \"impulsiveness\",\n \"pioneering spirit\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 80,\n \"to\": 81\n }\n ],\n \"reviewNotes\": [\n \"Preserved aversion to bonds rather than replacing it with a mild preference for independence. Book 42891-42896 emphasizes innovation, collective ideals and technology; none is added to soften the course aversion/impulsivity tension.\"\n ]\n },\n \"Pisces\": {\n \"pt\": \"você pode sentir sua força de vontade bloqueada e colocar energia a serviço de uma ideia ou de uma fé. também pode haver abnegação.\",\n \"en\": \"you may feel your willpower blocked and put energy at the service of an idea or a faith. there may also be self-denial.\",\n \"keywords\": {\n \"pt\": [\n \"força de vontade bloqueada\",\n \"energia a serviço de uma ideia\",\n \"energia a serviço de uma fé\",\n \"abnegação\"\n ],\n \"en\": [\n \"blocked willpower\",\n \"energy serving an idea\",\n \"energy serving a faith\",\n \"self-denial\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 82,\n \"to\": 83\n }\n ],\n \"reviewNotes\": [\n \"Omitted hidden enemies and continuous provocations as external/adversarial event claims; they are not converted into a diagnosis or imagined persecution. Abnegação is rendered as self-denial without inventing helping behavior. Book 43052-43059 emphasizes indirect expression, intuition, compassion and sacrifice; no extra compassionate counterweight is adopted.\"\n ]\n }\n },\n \"jupiter\": {\n \"Aries\": {\n \"pt\": \"você pode demonstrar generosidade e otimismo exagerados, além de autossuficiência e amor à independência. também pode haver extravagância, junto de potencial intelectual.\",\n \"en\": \"you may show excessive generosity and optimism, as well as self-sufficiency and a love of independence. extravagance may also be present, alongside intellectual potential.\",\n \"keywords\": {\n \"pt\": [\n \"generosidade exagerada\",\n \"otimismo exagerado\",\n \"autossuficiência\",\n \"independência\",\n \"extravagância\",\n \"potencial intelectual\"\n ],\n \"en\": [\n \"excessive generosity\",\n \"excessive optimism\",\n \"self-sufficiency\",\n \"independence\",\n \"extravagance\",\n \"intellectual potential\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 86,\n \"to\": 87\n }\n ],\n \"reviewNotes\": [\n \"Course gives excessive generosity and optimism; kept the excess qualifier. Book opening was inspected but its OCR is too disrupted to support supplementary claims, so none were adopted.\"\n ]\n },\n \"Taurus\": {\n \"pt\": \"você pode tender à indulgência e à autoindulgência, buscando prazer físico, conforto e facilidades materiais. também pode haver uma tendência ao conservadorismo.\",\n \"en\": \"you may tend toward indulgence and self-indulgence, seeking physical pleasure, comfort and material conveniences. there may also be a tendency toward conservatism.\",\n \"keywords\": {\n \"pt\": [\n \"indulgência\",\n \"autoindulgência\",\n \"prazer físico\",\n \"conservadorismo\",\n \"conforto material\"\n ],\n \"en\": [\n \"indulgence\",\n \"self-indulgence\",\n \"physical pleasure\",\n \"conservatism\",\n \"material comfort\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 88,\n \"to\": 89\n }\n ],\n \"reviewNotes\": [\n \"The course's ‘tendência’ qualifier on conservatism is preserved. Book OCR window was inspected but no supplemental claims were adopted.\"\n ]\n },\n \"Gemini\": {\n \"pt\": \"você pode demonstrar simpatia e versatilidade, embora também haja superficialidade e credulidade. existe ainda a possibilidade de muitas viagens.\",\n \"en\": \"you may show friendliness and versatility, though superficiality and credulity may also be present. there is also the possibility of many trips.\",\n \"keywords\": {\n \"pt\": [\n \"simpatia\",\n \"versatilidade\",\n \"superficialidade\",\n \"credulidade\",\n \"viagens\"\n ],\n \"en\": [\n \"friendliness\",\n \"versatility\",\n \"superficiality\",\n \"credulity\",\n \"travel\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 90,\n \"to\": 91\n }\n ],\n \"reviewNotes\": [\n \"The course's success in intellectual or commercial activity is omitted because it could read as a promised outcome; it was not converted into an invented aptitude. The possibility qualifier on numerous trips is retained. Book opening was inspected but its positive curiosity/communication themes were not used as a counterweight.\"\n ]\n },\n \"Cancer\": {\n \"pt\": \"você pode ter um temperamento bonachão e gentil. também pode tender ao conservadorismo e à indulgência.\",\n \"en\": \"you may have an easygoing, kind temperament. you may also tend toward conservatism and indulgence.\",\n \"keywords\": {\n \"pt\": [\n \"temperamento bonachão\",\n \"gentileza\",\n \"conservadorismo\",\n \"indulgência\"\n ],\n \"en\": [\n \"easygoing temperament\",\n \"kindness\",\n \"conservatism\",\n \"indulgence\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 92,\n \"to\": 94\n }\n ],\n \"reviewNotes\": [\n \"Course health claim (digestive problems) and guaranteed life-stage success claim are omitted from product text; they are noted here as excluded. Book opening's caregiving/family optimism was inspected but not added as a counterweight.\"\n ]\n },\n \"Leo\": {\n \"pt\": \"você demonstra afetuosidade e generosidade, junto de inteligência e ambição. o amor pelo luxo e por objetos de valor pode vir com liderança, exagero e arrogância.\",\n \"en\": \"you show affection and generosity, alongside intelligence and ambition. a love of luxury and valuables can come with leadership, exaggeration and arrogance.\",\n \"keywords\": {\n \"pt\": [\n \"afetuosidade\",\n \"generosidade\",\n \"inteligência\",\n \"ambição\",\n \"luxo\",\n \"exagero\",\n \"arrogância\"\n ],\n \"en\": [\n \"affection\",\n \"generosity\",\n \"intelligence\",\n \"ambition\",\n \"luxury\",\n \"exaggeration\",\n \"arrogance\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 95,\n \"to\": 96\n }\n ],\n \"reviewNotes\": [\n \"O livro acrescenta expansão criativa, carisma, reconhecimento e otimismo, mas a formulação não foi usada para neutralizar exagero/arrogância do curso. Seu trecho sobre generosidade aparece em 45570-45576 e 45589-45594; curso é a citação adotada.\"\n ]\n },\n \"Virgo\": {\n \"pt\": \"você tem visão crítica da realidade, mas pode faltar senso prático. também podem aparecer preocupação com higiene, mentalidade tacanha e detalhismo.\",\n \"en\": \"you have a critical view of reality, though practical sense may be lacking. concern with hygiene, narrow-mindedness and attention to detail may also appear.\",\n \"keywords\": {\n \"pt\": [\n \"visão crítica\",\n \"falta de senso prático\",\n \"higiene\",\n \"mentalidade tacanha\",\n \"detalhismo\"\n ],\n \"en\": [\n \"critical outlook\",\n \"lack of practical sense\",\n \"hygiene\",\n \"narrow-mindedness\",\n \"attention to detail\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 97,\n \"to\": 98\n }\n ],\n \"reviewNotes\": [\n \"O curso escreve cetismo na linha 98; por estar corrompido/ambíguo, foi omitido sem reconstrução. O livro oferece organização, eficiência e praticidade (45938-45955, 45969-45971), em contraste com a falta de senso prático do curso; esses atributos não foram acrescentados como contrapeso. A preocupação com higiene foi mantida como tema do curso, sem alegação clínica.\"\n ]\n },\n \"Libra\": {\n \"pt\": \"você pode demonstrar sabedoria, equilíbrio e moderação, com temperamento amável e talento artístico. também podem aparecer preguiça, vaidade e docilidade.\",\n \"en\": \"you may show wisdom, balance and moderation, with a kind temperament and artistic talent. laziness, vanity and docility may also appear.\",\n \"keywords\": {\n \"pt\": [\n \"sabedoria\",\n \"equilíbrio\",\n \"moderação\",\n \"temperamento amável\",\n \"talento artístico\",\n \"preguiça\",\n \"vaidade\",\n \"docilidade\"\n ],\n \"en\": [\n \"wisdom\",\n \"balance\",\n \"moderation\",\n \"kind temperament\",\n \"artistic talent\",\n \"laziness\",\n \"vanity\",\n \"docility\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 99,\n \"to\": 100\n }\n ],\n \"reviewNotes\": [\n \"A abertura do livro próximo ao hint foi inspecionada apenas em 46170-46230; o OCR intercalado impede recuperar com segurança um perfil psicológico contínuo, por isso não foi adotado. Não acrescentei a narrativa de harmonia/diplomacia do livro a este trecho do curso.\"\n ]\n },\n \"Scorpio\": {\n \"pt\": \"você pode ter ambição e desejo de poder, com capacidade de análise. também podem aparecer comodismo, desconfiança, vaidade, orgulho e paixões intensas.\",\n \"en\": \"you may have ambition and a desire for power, along with analytical ability. complacency, distrust, vanity, pride and intense passions may also appear.\",\n \"keywords\": {\n \"pt\": [\n \"ambição\",\n \"desejo de poder\",\n \"análise\",\n \"comodismo\",\n \"desconfiança\",\n \"vaidade\",\n \"orgulho\",\n \"paixões intensas\"\n ],\n \"en\": [\n \"ambition\",\n \"desire for power\",\n \"analysis\",\n \"complacency\",\n \"distrust\",\n \"vanity\",\n \"pride\",\n \"intense passions\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 101,\n \"to\": 102\n }\n ],\n \"reviewNotes\": [\n \"O livro associa expansão a transformação e tabus e descreve intensidade, intuição e regeneração (46543-46560), mas esses atributos não foram adotados para compensar comodismo/desconfiança do curso nem para prometer transformação.\"\n ]\n },\n \"Sagittarius\": {\n \"pt\": \"você pode perder a visão crítica e tender ao exagero em qualquer área da vida. também pode ter boa capacidade intelectual.\",\n \"en\": \"you may lose your critical outlook and tend toward exaggeration in any area of life. you may also have good intellectual ability.\",\n \"keywords\": {\n \"pt\": [\n \"perda de visão crítica\",\n \"exagero\",\n \"boa capacidade intelectual\"\n ],\n \"en\": [\n \"loss of critical outlook\",\n \"exaggeration\",\n \"good intellectual ability\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 103,\n \"to\": 104\n }\n ],\n \"reviewNotes\": [\n \"Omitted good luck as an outcome claim, without replacing it with an invented aptitude. The standalone source word jogador remains unresolved (player/gambler or another sense) and is omitted from prose and keywords rather than interpreted as games. The fragmented book material around 46817 emphasizes optimism/enthusiasm and philosophical breadth; no such counterweight is adopted and no missing opening is reconstructed.\"\n ]\n },\n \"Capricorn\": {\n \"pt\": \"você pode ter senso de responsabilidade, autocontrole e muita ambição. severidade, austeridade e intolerância também podem estar presentes.\",\n \"en\": \"you may have a sense of responsibility, self-control and strong ambition. severity, austerity and intolerance may also be present.\",\n \"keywords\": {\n \"pt\": [\n \"responsabilidade\",\n \"autocontrole\",\n \"muita ambição\",\n \"severidade\",\n \"austeridade\",\n \"intolerância\"\n ],\n \"en\": [\n \"responsibility\",\n \"self-control\",\n \"strong ambition\",\n \"severity\",\n \"austerity\",\n \"intolerance\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 105,\n \"to\": 106\n }\n ],\n \"reviewNotes\": [\n \"Omitted slow ascent as an outcome statement; it is not converted into persistence or an aptitude for advancement. Book 47108-47116 emphasizes success through discipline, administration/leadership and authority; those outcome claims and extra aptitudes are not adopted. The printed CAPRICORIO label is normalized to canonical Capricorn.\"\n ]\n },\n \"Aquarius\": {\n \"pt\": \"você pode ter intuição e espírito humanitário, com um comportamento pouco convencional. também pode haver grosseria.\",\n \"en\": \"you may have intuition and a humanitarian spirit, with unconventional behavior. rudeness may also be present.\",\n \"keywords\": {\n \"pt\": [\n \"intuição\",\n \"espírito humanitário\",\n \"comportamento pouco convencional\",\n \"grosseria\"\n ],\n \"en\": [\n \"intuition\",\n \"humanitarian spirit\",\n \"unconventional behavior\",\n \"rudeness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 107,\n \"to\": 108\n }\n ],\n \"reviewNotes\": [\n \"Omitted protection by influential people and friends as an external support/outcome claim; it is not converted into networking or social ability. Book 47304-47309 emphasizes innovation, group prosperity and community leadership; none is adopted to soften the primary rudeness tension.\"\n ]\n },\n \"Pisces\": {\n \"pt\": \"você pode tender à autoindulgência excessiva e ao relaxamento. bom humor, bondade e abnegação podem conviver com identificação com o sofrimento.\",\n \"en\": \"you may tend toward excessive self-indulgence and relaxation. good humor, kindness and self-denial can coexist with identification with suffering.\",\n \"keywords\": {\n \"pt\": [\n \"autoindulgência excessiva\",\n \"relaxamento\",\n \"bom humor\",\n \"bondade\",\n \"abnegação\",\n \"identificação com o sofrimento\"\n ],\n \"en\": [\n \"excessive self-indulgence\",\n \"relaxation\",\n \"good humor\",\n \"kindness\",\n \"self-denial\",\n \"identification with suffering\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 109,\n \"to\": 110\n }\n ],\n \"reviewNotes\": [\n \"Preserved excessive self-indulgence and identification with suffering without diagnosis, prescribed practice or invented helping behavior. Book 47561-47567 emphasizes spirituality/compassion and growth through helping/art; none is adopted. The second hint at 47634 leads to the sign heading and nonpsychological material, which is unused. Printed PEIXE is normalized to canonical Pisces.\"\n ]\n }\n },\n \"saturn\": {\n \"Aries\": {\n \"pt\": \"você pode ter bom controle dos instintos, junto de crueldade e irracionalidade frequente. também pode oscilar entre agir e se inibir.\",\n \"en\": \"you may have good control over your instincts, alongside cruelty and frequent irrationality. you may also waver between action and inhibition.\",\n \"keywords\": {\n \"pt\": [\n \"controle dos instintos\",\n \"crueldade\",\n \"irracionalidade\",\n \"indecisão\",\n \"inibição\"\n ],\n \"en\": [\n \"control of instincts\",\n \"cruelty\",\n \"irrationality\",\n \"indecision\",\n \"inhibition\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 113,\n \"to\": 114\n }\n ],\n \"reviewNotes\": [\n \"The book body for Aries is absent, so no supplemental claims were invented. Preserved the course's unusual combination of good instinct control with cruelty/frequent irrationality and action-inhibition indecision.\"\n ]\n },\n \"Taurus\": {\n \"pt\": \"você pode demonstrar pouca espontaneidade, com muita cautela e tolerância. a sensualidade própria do signo pode diminuir, enquanto as tendências conservadoras aumentam.\",\n \"en\": \"you may show little spontaneity, with considerable caution and tolerance. the sign's characteristic sensuality may diminish, while conservative tendencies increase.\",\n \"keywords\": {\n \"pt\": [\n \"pouca espontaneidade\",\n \"cautela\",\n \"tolerância\",\n \"diminuição da sensualidade\",\n \"tendências conservadoras\"\n ],\n \"en\": [\n \"little spontaneity\",\n \"caution\",\n \"tolerance\",\n \"reduced sensuality\",\n \"conservative tendencies\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 115,\n \"to\": 116\n }\n ],\n \"reviewNotes\": [\n \"Preserved the course's tolerance, reduced sensuality, and increased conservative tendencies. The inspected book opening has OCR gaps and was not used to replace or embellish the primary claims.\"\n ]\n },\n \"Gemini\": {\n \"pt\": \"você pode amadurecer cedo e demonstrar sabedoria precoce, com autocontrole na fala. também pode haver tendência à obstinação.\",\n \"en\": \"you may mature early and show early wisdom, with self-control in speech. there may also be a tendency toward stubbornness.\",\n \"keywords\": {\n \"pt\": [\n \"amadurecimento precoce\",\n \"sabedoria\",\n \"autocontrole da fala\",\n \"obstinação\"\n ],\n \"en\": [\n \"early maturity\",\n \"wisdom\",\n \"self-control in speech\",\n \"stubbornness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 117,\n \"to\": 118\n }\n ],\n \"reviewNotes\": [\n \"The course also mentions a tendency toward depression, omitted from product text as a health-related claim. No diagnosis or substitute symptom was introduced. Book claims were not adopted.\"\n ]\n },\n \"Cancer\": {\n \"pt\": \"você pode amadurecer devagar. também pode demonstrar tenacidade e ambição.\",\n \"en\": \"you may mature slowly. you may also show tenacity and ambition.\",\n \"keywords\": {\n \"pt\": [\n \"lentidão para amadurecer\",\n \"tenacidade\",\n \"ambição\"\n ],\n \"en\": [\n \"slow to mature\",\n \"tenacity\",\n \"ambition\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 119,\n \"to\": 120\n }\n ],\n \"reviewNotes\": [\n \"The course's parents/family problems and problematic second-half-of-life claims are omitted from product text because they predict relationship/life-stage outcomes. The inspected book opening's emotional/family restrictions were not adopted as replacements; its OCR is incomplete and conflicts in emphasis with the primary passage.\"\n ]\n },\n \"Leo\": {\n \"pt\": \"você pode ser ambicioso e buscar prestígio, com senso de humor apurado. podem surgir dificuldades para expressar a criatividade, junto de tédio e arrogância.\",\n \"en\": \"you may be ambitious and seek prestige, with a keen sense of humor. difficulties expressing creativity may arise, alongside boredom and arrogance.\",\n \"keywords\": {\n \"pt\": [\n \"ambição\",\n \"busca de prestígio\",\n \"senso de humor\",\n \"dificuldade de expressão criativa\",\n \"tédio\",\n \"arrogância\"\n ],\n \"en\": [\n \"ambition\",\n \"seeking prestige\",\n \"sense of humor\",\n \"difficulty with creative expression\",\n \"boredom\",\n \"arrogance\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 121,\n \"to\": 122\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 49751,\n \"to\": 49757\n }\n ],\n \"reviewNotes\": [\n \"O curso associa prestígio e humor com tédio/arrogância; o livro acrescenta dificuldade de expressão criativa (49751-49757), incluída sem importar seus desfechos de reconhecimento ou lição de desenvolvimento. Dificuldades com os filhos, do curso, foram omitidas como afirmação relacional/familiar de resultado.\"\n ]\n },\n \"Virgo\": {\n \"pt\": \"você pode agir com prudência, método e seriedade, mantendo uma vida muito disciplinada. há aptidão para a ciência ou a pesquisa.\",\n \"en\": \"you may act with prudence, method and seriousness, maintaining a highly disciplined life. you may have an aptitude for science or research.\",\n \"keywords\": {\n \"pt\": [\n \"prudência\",\n \"método\",\n \"seriedade\",\n \"disciplina\",\n \"aptidão para ciência ou pesquisa\"\n ],\n \"en\": [\n \"prudence\",\n \"method\",\n \"seriousness\",\n \"discipline\",\n \"aptitude for science or research\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 123,\n \"to\": 124\n }\n ],\n \"reviewNotes\": [\n \"A aptidão científica/de pesquisa é uma possibilidade do curso, não uma promessa de carreira. O livro menciona trabalho e saúde (50049-50057), mas não foi usado para acrescentar crítica excessiva nem conteúdo clínico/instrutivo.\"\n ]\n },\n \"Libra\": {\n \"pt\": \"você pode demonstrar sabedoria, amabilidade e sociabilidade. também podem aparecer intolerância e falta de senso prático.\",\n \"en\": \"you may show wisdom, kindness and sociability. intolerance and a lack of practical sense may also appear.\",\n \"keywords\": {\n \"pt\": [\n \"sabedoria\",\n \"amabilidade\",\n \"sociabilidade\",\n \"intolerância\",\n \"falta de senso prático\"\n ],\n \"en\": [\n \"wisdom\",\n \"kindness\",\n \"sociability\",\n \"intolerance\",\n \"lack of practical sense\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 125,\n \"to\": 126\n }\n ],\n \"reviewNotes\": [\n \"O livro desenvolve parcerias, justiça e estabilidade (50303-50316), em direção mais relacional que o breve curso. Não foi usado para substituir a falta de senso prático ou acrescentar promessas de relações estáveis.\"\n ]\n },\n \"Scorpio\": {\n \"pt\": \"você pode buscar liberdade mesmo quando isso exige sacrifícios. também podem aparecer espírito vingativo, inveja e maldade, junto de determinação.\",\n \"en\": \"you may seek freedom even when it requires sacrifice. a vengeful spirit, envy and malice may also appear, alongside determination.\",\n \"keywords\": {\n \"pt\": [\n \"liberdade com sacrifício\",\n \"espírito vingativo\",\n \"inveja\",\n \"maldade\",\n \"determinação\"\n ],\n \"en\": [\n \"freedom at a cost\",\n \"vengeful spirit\",\n \"envy\",\n \"malice\",\n \"determination\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 127,\n \"to\": 128\n }\n ],\n \"reviewNotes\": [\n \"Problemas sexuais, citados pelo curso, foram omitidos por envolverem alegações de saúde/relacionamento. O livro aborda controle, poder e transformação (50568-50573), mas esses temas não substituem a formulação atípica de liberdade às custas de sacrifício do curso.\"\n ]\n },\n \"Sagittarius\": {\n \"pt\": \"você tende a se dedicar aos estudos e à moralidade. sua capacidade intelectual pode ser bem desenvolvida.\",\n \"en\": \"you tend to devote yourself to study and morality. your intellectual ability may be well developed.\",\n \"keywords\": {\n \"pt\": [\n \"dedicação aos estudos\",\n \"tendência à moralidade\",\n \"capacidade intelectual bem desenvolvida\"\n ],\n \"en\": [\n \"dedication to study\",\n \"tendency toward morality\",\n \"well-developed intellectual ability\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 129,\n \"to\": 130\n }\n ],\n \"reviewNotes\": [\n \"Course-only final copy. Inspected book 50772-50780 has broken OCR fragments about limits on exploration of horizons and beliefs and a realistic, structured vision retaining optimism; removed those additions from prose and keywords.\"\n ]\n },\n \"Capricorn\": {\n \"pt\": \"você pode ter sabedoria e maturidade. também pode haver desprendimento dos bens materiais e dos prazeres.\",\n \"en\": \"you may have wisdom and maturity. there may also be detachment from material possessions and pleasures.\",\n \"keywords\": {\n \"pt\": [\n \"sabedoria\",\n \"maturidade\",\n \"desprendimento dos bens materiais\",\n \"desprendimento dos prazeres\"\n ],\n \"en\": [\n \"wisdom\",\n \"maturity\",\n \"detachment from material possessions\",\n \"detachment from pleasures\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 131,\n \"to\": 132\n }\n ],\n \"reviewNotes\": [\n \"Course-only final copy. Inspected book 51016-51022 adds responsibility, discipline/management, organizing life, expectations, goals, integrity and patience; removed those additions from prose and keywords.\"\n ]\n },\n \"Aquarius\": {\n \"pt\": \"você tende à tenacidade para alcançar objetivos, mas pode demonstrar inibição, indiferença ou frieza. suas amizades podem incluir pessoas sábias.\",\n \"en\": \"you tend toward tenacity in reaching goals, but may show inhibition, indifference, or coldness. your friendships may include wise people.\",\n \"keywords\": {\n \"pt\": [\n \"tenacidade para alcançar objetivos\",\n \"inibição\",\n \"indiferença\",\n \"frieza\",\n \"possibilidade de amigos sábios\"\n ],\n \"en\": [\n \"tenacity in reaching goals\",\n \"inhibition\",\n \"indifference\",\n \"coldness\",\n \"possibility of wise friends\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 133,\n \"to\": 134\n }\n ],\n \"reviewNotes\": [\n \"Course-only final copy. Inspected book 51245-51250 adds individual-expression/community integration and balancing innovation with tradition; removed those additions from prose and keywords. Course 'amigos sábios' is phrased as a possibility, not a guaranteed relationship.\"\n ]\n },\n \"Pisces\": {\n \"pt\": \"você tende ao desprendimento dos bens materiais e à abnegação, com imaginação e intuição desenvolvidas. você pode também demonstrar falta de coragem.\",\n \"en\": \"you tend toward detachment from material possessions and self-denial, with developed imagination and intuition. you may also show a lack of courage.\",\n \"keywords\": {\n \"pt\": [\n \"desprendimento dos bens materiais\",\n \"abnegação\",\n \"imaginação desenvolvida\",\n \"intuição desenvolvida\",\n \"falta de coragem\"\n ],\n \"en\": [\n \"detachment from material possessions\",\n \"self-denial\",\n \"developed imagination\",\n \"developed intuition\",\n \"lack of courage\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 135,\n \"to\": 136\n }\n ],\n \"reviewNotes\": [\n \"Course-only final copy. Inspected book 51537-51543 adds sensitivity/uncertainty, spirituality, compassion, illusions and practical-faith framing; removed those additions from prose and keywords.\"\n ]\n }\n },\n \"uranus\": {\n \"Aries\": {\n \"pt\": \"você pode ter espírito de iniciativa e dinamismo. também pode buscar inovação e independência na expressão e na ação.\",\n \"en\": \"you may have initiative and dynamism. you may also seek innovation and independence in expression and action.\",\n \"keywords\": {\n \"pt\": [\n \"iniciativa\",\n \"dinamismo\",\n \"inovação\",\n \"independência\"\n ],\n \"en\": [\n \"initiative\",\n \"dynamism\",\n \"innovation\",\n \"independence\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 139,\n \"to\": 140\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 52918,\n \"to\": 52929\n }\n ],\n \"reviewNotes\": [\n \"Curso 139-140: mantidos iniciativa e dinamismo; grandes reviravoltas e perigo envolvendo fogo, armas ou transporte não são previstos. Livro 52918-52929: adotadas inovação e independência de expressão/ação; omitidas promessas de pioneirismo ou conquista em qualquer campo.\"\n ]\n },\n \"Taurus\": {\n \"pt\": \"você pode demonstrar teimosia e obstinação, além de ambição e originalidade artística. no plano coletivo, Urano em Touro simboliza mudanças econômicas repentinas.\",\n \"en\": \"you may show stubbornness and obstinacy, as well as ambition and artistic originality. on a collective level, Uranus in Taurus symbolizes sudden economic change.\",\n \"keywords\": {\n \"pt\": [\n \"teimosia\",\n \"obstinação\",\n \"ambição\",\n \"originalidade artística\",\n \"mudanças econômicas coletivas\"\n ],\n \"en\": [\n \"stubbornness\",\n \"obstinacy\",\n \"ambition\",\n \"artistic originality\",\n \"collective economic change\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 141,\n \"to\": 142\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 53133,\n \"to\": 53139\n }\n ],\n \"reviewNotes\": [\n \"Curso 141-142: mantidos teimosia, obstinação, ambição e originalidade artística. Mudanças econômicas repentinas são formuladas simbolicamente no plano coletivo, com apoio ao enquadramento econômico amplo do livro 53133-53139; não são previsão financeira pessoal.\"\n ]\n },\n \"Gemini\": {\n \"pt\": \"você pode ter ideias novas e inovadoras, criatividade literária e espírito aventureiro. também pode demonstrar capacidade para relações entre pessoas e interesse em novas formas de comunicação.\",\n \"en\": \"you may have new and innovative ideas, literary creativity and an adventurous spirit. you may also show capacity for interpersonal relations and interest in new forms of communication.\",\n \"keywords\": {\n \"pt\": [\n \"ideias inovadoras\",\n \"criatividade literária\",\n \"espírito aventureiro\",\n \"relações interpessoais\",\n \"comunicação\"\n ],\n \"en\": [\n \"innovative ideas\",\n \"literary creativity\",\n \"adventurous spirit\",\n \"interpersonal relations\",\n \"communication\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 143,\n \"to\": 144\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 53431,\n \"to\": 53440\n }\n ],\n \"reviewNotes\": [\n \"Curso 143-144: preservadas ideias inovadoras, criatividade literária, espírito aventureiro e capacidade de relações interpessoais como possibilidades. Livro 53431-53440: comunicação/informação é complemento temático; não implica sucesso literário, carreira tecnológica ou resultado relacional.\"\n ]\n },\n \"Cancer\": {\n \"pt\": \"você pode ter aptidão para arquitetura. você também pode adotar uma abordagem original para assuntos familiares e domésticos.\",\n \"en\": \"you may have an aptitude for architecture. you may also take an original approach to family and domestic matters.\",\n \"keywords\": {\n \"pt\": [\n \"aptidão para arquitetura\",\n \"abordagem original\",\n \"assuntos familiares e domésticos\"\n ],\n \"en\": [\n \"aptitude for architecture\",\n \"original approach\",\n \"family and domestic matters\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 145,\n \"to\": 146\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 53756,\n \"to\": 53759\n }\n ],\n \"reviewNotes\": [\n \"Curso 145-146 inclui aptidão para arquitetura, revoluções familiares, saída precoce do lar e extremismo político nacionalista. A aptidão permanece qualificada; eventos familiares e atribuição de identidade política foram excluídos. Livro 53756-53759 sustenta abordagem não convencional de assuntos familiares/domésticos, sem previsão de mudança no lar.\"\n ]\n },\n \"Leo\": {\n \"pt\": \"você tende ao individualismo e à inclinação artística, especialmente no cinema. também pode demonstrar força de liderança.\",\n \"en\": \"you tend toward individualism and an inclination for the arts, especially cinema. you may also show leadership strength.\",\n \"keywords\": {\n \"pt\": [\n \"individualismo\",\n \"inclinação artística\",\n \"cinema\",\n \"liderança\"\n ],\n \"en\": [\n \"individualism\",\n \"artistic inclination\",\n \"cinema\",\n \"leadership\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 147,\n \"to\": 148\n }\n ],\n \"reviewNotes\": [\n \"Curso 147-148: individualismo, inclinação artística especialmente no cinema e força de liderança, tratados como tendências/aptidões, não carreira garantida. Filhos excêntricos foi excluído como afirmação sobre terceiros/evento familiar; livro não acrescenta preenchimento genérico.\"\n ]\n },\n \"Virgo\": {\n \"pt\": \"você pode ser ordeiro em excesso e apresentar extravagâncias no trabalho. também podem aparecer exagero crítico e charlatanismo.\",\n \"en\": \"you may be excessively orderly and extravagant at work. exaggerated criticism and charlatanism may also appear.\",\n \"keywords\": {\n \"pt\": [\n \"ordem excessiva\",\n \"extravagâncias no trabalho\",\n \"exagero crítico\",\n \"charlatanismo\"\n ],\n \"en\": [\n \"excessive orderliness\",\n \"extravagance at work\",\n \"exaggerated criticism\",\n \"charlatanism\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 149,\n \"to\": 150\n }\n ],\n \"reviewNotes\": [\n \"Curso 149-150: mantidos ordem excessiva, extravagâncias no trabalho, exagero crítico e charlatanismo; extravagância não foi neutralizada como simples não convencionalidade. Hipocondria foi excluída como rótulo clínico/alegação de saúde. O livro 54184-54200 não foi usado para substituir os temas atípicos por produtividade genérica.\"\n ]\n },\n \"Libra\": {\n \"pt\": \"você pode ter facilidade nas relações afetivas. também pode demonstrar originalidade artística.\",\n \"en\": \"you may find it easy to connect emotionally. you may also show artistic originality.\",\n \"keywords\": {\n \"pt\": [\n \"facilidade nas relações afetivas\",\n \"originalidade artística\"\n ],\n \"en\": [\n \"ease in emotional relationships\",\n \"artistic originality\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 151,\n \"to\": 152\n }\n ],\n \"reviewNotes\": [\n \"O curso usa 'casamento liberal', expressão ambígua; ela não foi transformada em preferência, orientação ou estrutura relacional. Separação/divórcio foi omitido como evento previsto. Mantidas apenas facilidade nas relações afetivas e originalidade artística (151-152).\"\n ]\n },\n \"Scorpio\": {\n \"pt\": \"você pode tentar dominar os outros com violência e ter espírito vingativo. você pode ter hábitos sexuais pouco convencionais e bloqueio emocional.\",\n \"en\": \"you may try to dominate others through violence and have a vengeful spirit. you may have unconventional sexual habits and emotional blockage.\",\n \"keywords\": {\n \"pt\": [\n \"tentativa de dominação violenta\",\n \"espírito vingativo\",\n \"hábitos sexuais pouco convencionais\",\n \"bloqueio emocional\"\n ],\n \"en\": [\n \"attempted violent domination\",\n \"vengeful spirit\",\n \"unconventional sexual habits\",\n \"emotional blockage\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 153,\n \"to\": 155\n }\n ],\n \"reviewNotes\": [\n \"Curso 153-155: mantidos tentativa de dominação violenta, vingança, hábitos sexuais pouco convencionais em formulação não gráfica e bloqueio emocional. A tendência não implica inferência de orientação/identidade; a antiga afirmação sobre homossexualidade foi omitida. Não foi acrescentada determinação sem fonte.\"\n ]\n },\n \"Sagittarius\": {\n \"pt\": \"você pode ter espírito aventureiro e rebelde e vivenciar grandes viagens, reais ou imaginárias. em temas coletivos, Urano em Sagitário simboliza renovação de filosofias, crenças, culturas e educação.\",\n \"en\": \"you may have an adventurous and rebellious spirit and experience great journeys, real or imagined. in collective themes, Uranus in Sagittarius symbolizes renewal in philosophy, beliefs, cultures, and education.\",\n \"keywords\": {\n \"pt\": [\n \"espírito aventureiro\",\n \"espírito rebelde\",\n \"possibilidade de grandes viagens reais ou imaginárias\",\n \"renovação coletiva de filosofias\",\n \"crenças\",\n \"culturas\",\n \"educação\"\n ],\n \"en\": [\n \"adventurous spirit\",\n \"rebellious spirit\",\n \"possibility of great journeys, real or imagined\",\n \"collective renewal in philosophy\",\n \"beliefs\",\n \"cultures\",\n \"education\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 156,\n \"to\": 157\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 54845,\n \"to\": 54864\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 54875,\n \"to\": 54896\n }\n ],\n \"reviewNotes\": [\n \"Curso 156-157: preservada a alternativa explícita de grandes viagens reais ou imaginárias como possibilidade; não foi reduzida a imaginação voltada a viagens nem convertida em garantia. A grande mudança de vida causada por estrangeiro foi excluída como evento previsto. Livro 54845-54864 e 54875-54896 apoia separadamente temas coletivos de renovação filosófica, cultural e educacional; OCR fragmentado não foi reconstruído.\"\n ]\n },\n \"Capricorn\": {\n \"pt\": \"você pode demonstrar aptidão para liderar. em termos coletivos, Urano em Capricórnio simboliza mudanças nas estruturas de poder e questionamento das hierarquias e tradições.\",\n \"en\": \"you may show leadership aptitude. in collective terms, Uranus in Capricorn symbolizes changes to power structures and the questioning of hierarchies and traditions.\",\n \"keywords\": {\n \"pt\": [\n \"aptidão para liderar\",\n \"mudanças coletivas nas estruturas de poder\",\n \"questionamento de hierarquias\",\n \"questionamento de tradições\"\n ],\n \"en\": [\n \"leadership aptitude\",\n \"collective changes to power structures\",\n \"questioning hierarchies\",\n \"questioning traditions\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 158,\n \"to\": 159\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 55150,\n \"to\": 55171\n }\n ],\n \"reviewNotes\": [\n \"Curso 158-159: liderança mantida como aptidão possível; mudanças bruscas socioprofissionais não são previstas. A sequência 'poder de liderança mãe original e excêntrica' é ambígua; não se transferiu 'original e excêntrica' ao indivíduo nem se fez afirmação sobre uma mãe. Livro 55150-55171 contribui temas coletivos de estruturas de poder/hierarquias/tradições, não eventos individuais.\"\n ]\n },\n \"Aquarius\": {\n \"pt\": \"você pode demonstrar originalidade em diferentes atividades e desejo constante de mudança. suas amizades podem incluir pessoas originais; em termos coletivos, Urano em Aquário simboliza inovação e ênfase na liberdade individual.\",\n \"en\": \"you may show originality across different activities and a constant desire for change. your friendships may include original people; in collective terms, Uranus in Aquarius symbolizes innovation and an emphasis on individual freedom.\",\n \"keywords\": {\n \"pt\": [\n \"originalidade em atividades\",\n \"desejo constante de mudança\",\n \"possibilidade de amizades com pessoas originais\",\n \"inovação coletiva\",\n \"liberdade individual\"\n ],\n \"en\": [\n \"originality across activities\",\n \"constant desire for change\",\n \"possibility of friendships with original people\",\n \"collective innovation\",\n \"individual freedom\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 160,\n \"to\": 161\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 55420,\n \"to\": 55430\n }\n ],\n \"reviewNotes\": [\n \"Curso 160-161: preservadas originalidade em atividades e desejo constante de mudança; amizades podem incluir pessoas originais, sem garantia sobre terceiros. Livro 55420-55430 oferece inovação e liberdade individual como temas coletivos; não implica participação pessoal em movimentos ou mudanças sociais garantidas.\"\n ]\n },\n \"Pisces\": {\n \"pt\": \"você pode ter ideias grandiosas e utópicas. pode haver aptidão para áreas como astrologia, parapsicologia, psicologia ou psiquiatria, enquanto Urano em Peixes simboliza mudanças coletivas nas artes e na espiritualidade.\",\n \"en\": \"you may have grand and utopian ideas. there may be aptitude for fields such as astrology, parapsychology, psychology, or psychiatry, while Uranus in Pisces symbolizes collective changes in the arts and spirituality.\",\n \"keywords\": {\n \"pt\": [\n \"ideias grandiosas\",\n \"ideias utópicas\",\n \"possível aptidão para astrologia\",\n \"parapsicologia\",\n \"psicologia\",\n \"psiquiatria\",\n \"mudanças coletivas nas artes\",\n \"espiritualidade\"\n ],\n \"en\": [\n \"grand ideas\",\n \"utopian ideas\",\n \"possible aptitude for astrology\",\n \"parapsychology\",\n \"psychology\",\n \"psychiatry\",\n \"collective changes in the arts\",\n \"spirituality\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 162,\n \"to\": 163\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 55619,\n \"to\": 55623\n }\n ],\n \"reviewNotes\": [\n \"Curso 162-163: ideias grandiosas/utópicas e aptidões possíveis para astrologia, parapsicologia, psicologia e psiquiatria; não são diagnóstico ou garantia de carreira. Livro 55619-55623 sustenta mudanças coletivas nas artes e espiritualidade. Experiências psíquicas únicas/revelações de 55624-55634 foram examinadas e não apresentadas como eventos pessoais previstos.\"\n ]\n }\n },\n \"neptune\": {\n \"Aries\": {\n \"pt\": \"você pode ter tendência ao misticismo. essa inclinação pode vir acompanhada de forte idealismo e paixão por crenças e visões.\",\n \"en\": \"you may have a tendency toward mysticism. this inclination may come with strong idealism and passion for beliefs and visions.\",\n \"keywords\": {\n \"pt\": [\n \"tendência ao misticismo\",\n \"idealismo\",\n \"paixão por crenças\"\n ],\n \"en\": [\n \"tendency toward mysticism\",\n \"idealism\",\n \"passion for beliefs\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 166,\n \"to\": 166\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 57058,\n \"to\": 57061\n }\n ],\n \"reviewNotes\": [\n \"The course's skin-problem and air-disaster claims are omitted as health/event predictions. Book opening supports idealism and passion for beliefs; no identity, rejection, or life-direction claims were added.\"\n ]\n },\n \"Taurus\": {\n \"pt\": \"você pode se interessar por misticismo ligado à natureza e aos prazeres sensoriais. também pode haver confusão ou desilusão em relação à posse e ao materialismo.\",\n \"en\": \"you may be interested in mysticism connected with nature and sensory pleasures. there may also be confusion or disillusionment around possession and materialism.\",\n \"keywords\": {\n \"pt\": [\n \"misticismo\",\n \"natureza\",\n \"prazeres sensoriais\",\n \"confusão\",\n \"desilusão\",\n \"materialismo\"\n ],\n \"en\": [\n \"mysticism\",\n \"nature\",\n \"sensory pleasures\",\n \"confusion\",\n \"disillusionment\",\n \"materialism\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 167,\n \"to\": 167\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 57221,\n \"to\": 57226\n }\n ],\n \"reviewNotes\": [\n \"The course’s profits linked to the sea or fluids are omitted as financial outcomes. Retained both sides of the cited book passage: spiritual connection through nature/sensory pleasure and possible confusion/disillusionment around possession/materialism.\"\n ]\n },\n \"Gemini\": {\n \"pt\": \"você pode ter forte intuição, mas também tendência à impertinência e à curiosidade perniciosa. também pode haver mexericos ao redor e falta de visão.\",\n \"en\": \"you may have strong intuition, but also a tendency toward impertinence and harmful curiosity. there may also be gossip around you and a lack of vision.\",\n \"keywords\": {\n \"pt\": [\n \"intuição forte\",\n \"impertinência\",\n \"mexericos\",\n \"falta de visão\",\n \"curiosidade perniciosa\"\n ],\n \"en\": [\n \"strong intuition\",\n \"impertinence\",\n \"gossip\",\n \"lack of vision\",\n \"harmful curiosity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 168,\n \"to\": 169\n }\n ],\n \"reviewNotes\": [\n \"Preserved the course's negative tendencies rather than replacing them with generic creativity or empathy. The book opening on communication/misunderstanding was inspected but not needed for the primary synthesis.\"\n ]\n },\n \"Cancer\": {\n \"pt\": \"você pode sentir forte alienação e ter dificuldade para viver com realismo. também pode demonstrar patriotismo.\",\n \"en\": \"you may feel strongly alienated and have difficulty living realistically. you may also show patriotism.\",\n \"keywords\": {\n \"pt\": [\n \"alienação\",\n \"dificuldade com o realismo\",\n \"patriotismo\"\n ],\n \"en\": [\n \"alienation\",\n \"difficulty with realism\",\n \"patriotism\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 170,\n \"to\": 171\n }\n ],\n \"reviewNotes\": [\n \"The course's profits linked to liquids or the sea are omitted as financial outcomes. Book's family/home idealization and emotional-identity confusion were inspected but not adopted as substitutes for the course's alienation and realism difficulty.\"\n ]\n },\n \"Leo\": {\n \"pt\": \"você compartilha o simbolismo de um período marcado pela difusão dos espetáculos, como teatro e cinema. nesse mesmo período, a corrupção ou degeneração das relações amorosas aparece como tendência social simbólica.\",\n \"en\": \"you share the symbolism of a period marked by the spread of spectacles such as theater and cinema. in that same period, corruption or degeneration in romantic relations appears as a symbolic social trend.\",\n \"keywords\": {\n \"pt\": [\n \"difusão dos espetáculos\",\n \"teatro\",\n \"cinema\",\n \"corrupção das relações amorosas\",\n \"degeneração das relações amorosas\"\n ],\n \"en\": [\n \"spread of spectacles\",\n \"theater\",\n \"cinema\",\n \"corruption in romantic relations\",\n \"degeneration in romantic relations\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 172,\n \"to\": 173\n }\n ],\n \"reviewNotes\": [\n \"O curso fala explicitamente de um período, não de destino individual. O livro idealiza expressão criativa e romance (58044-58052; também 58055-58064), mas seus temas pessoais não substituem a formulação coletiva do curso nem são usados como promessa de criatividade/romance.\",\n \"Review resolution: both sentences refer to the same symbolic social period; the relational clause does not predict the reader’s relationship fate.\"\n ]\n },\n \"Virgo\": {\n \"pt\": \"você compartilha o simbolismo geracional de idealismo ou inspiração freados pela crítica. nessa geração, também se desenvolvem teorias críticas.\",\n \"en\": \"you share the generational symbolism of idealism or inspiration restrained by criticism. critical theories also develop in this generation.\",\n \"keywords\": {\n \"pt\": [\n \"idealismo\",\n \"inspiração\",\n \"crítica\",\n \"teorias críticas\"\n ],\n \"en\": [\n \"idealism\",\n \"inspiration\",\n \"criticism\",\n \"critical theories\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 174,\n \"to\": 175\n }\n ],\n \"reviewNotes\": [\n \"A passagem do livro em torno do hint foi inspecionada em 58395-58424, mas o OCR fragmentado mistura linhas e temas de saúde/serviço; nenhum claim foi adotado dela. Mantida a oposição e o desenvolvimento teórico exatamente no registro coletivo do curso.\"\n ]\n },\n \"Libra\": {\n \"pt\": \"você compartilha o simbolismo geracional de espiritualidade despreocupada, rebeldia e drogas como tema social. nessa geração, também aparecem idealismo forte e liderança.\",\n \"en\": \"you share the generational symbolism of carefree spirituality, rebellion and drugs as a social theme. strong idealism and leadership also appear in this generation.\",\n \"keywords\": {\n \"pt\": [\n \"espiritualidade despreocupada\",\n \"rebeldia\",\n \"drogas como tema social\",\n \"idealismo\",\n \"liderança\"\n ],\n \"en\": [\n \"carefree spirituality\",\n \"rebellion\",\n \"drugs as a social theme\",\n \"idealism\",\n \"leadership\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 176,\n \"to\": 177\n }\n ],\n \"reviewNotes\": [\n \"A abertura do livro em 58602-58605 idealiza parcerias/justiça e menciona decepções; não foi convertida em traço individual nem em resultado relacional garantido. O texto conserva temas coletivos do curso, inclusive drogas sem alegação clínica.\"\n ]\n },\n \"Scorpio\": {\n \"pt\": \"você compartilha o simbolismo coletivo de trapaças e crueldade junto de temas de justiça social. nesse plano, também se destaca o domínio das massas.\",\n \"en\": \"you share the collective symbolism of deception and cruelty alongside themes of social justice. mass domination is also prominent at this level.\",\n \"keywords\": {\n \"pt\": [\n \"trapaças\",\n \"crueldade\",\n \"justiça social\",\n \"domínio das massas\"\n ],\n \"en\": [\n \"deception\",\n \"cruelty\",\n \"social justice\",\n \"mass domination\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 178,\n \"to\": 179\n }\n ],\n \"reviewNotes\": [\n \"O curso associa temas coletivos/políticos, preservados sem projetá-los como conduta individual. Neuroses sexuais e tendências necrófilas foram omitidas por serem clínicas/sexuais e não apropriadas como afirmações determinadas por mapa. O livro traz idealização de transformação/mistério e poder/oculto (58833-58840), mas não foi usado para criar traços individuais nem suavizar crueldade/trapaça.\",\n \"Review resolution: domínio das massas remains mass domination, not influence; the primary supplies no softening qualifier.\"\n ]\n },\n \"Sagittarius\": {\n \"pt\": \"você compartilha um horizonte simbólico de valorização da inteligência, da filosofia e da sabedoria. nesse plano coletivo, também se destacam o auge dos esportes e as visões utópicas do mundo.\",\n \"en\": \"you share a symbolic horizon that values intelligence, philosophy and wisdom. on this collective level, the flourishing of sports and utopian visions of the world also stand out.\",\n \"keywords\": {\n \"pt\": [\n \"inteligência\",\n \"filosofia\",\n \"sabedoria\",\n \"auge dos esportes\",\n \"visões utópicas\"\n ],\n \"en\": [\n \"intelligence\",\n \"philosophy\",\n \"wisdom\",\n \"flourishing of sports\",\n \"utopian visions\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 180,\n \"to\": 181\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado: 180–181; adotado integralmente como temas simbólicos compartilhados, sem atribuir superioridade intelectual individual. Grafia SAGIITÁRIO normalizada para Sagitário.\",\n \"Livro inspecionado: 59186–59235, incluindo os indícios 59196 e 59220; nenhuma adição adotada. OCR fragmenta a abertura entre 59196 e 59226–59228.\"\n ]\n },\n \"Capricorn\": {\n \"pt\": \"você compartilha um horizonte simbólico em que a intuição e a imaginação ganham forma prática. nesse movimento geracional, tomam forma ideias desenvolvidas pela geração anterior.\",\n \"en\": \"you share a symbolic horizon in which intuition and imagination take practical form. within this generational movement, ideas developed by the previous generation take shape.\",\n \"keywords\": {\n \"pt\": [\n \"intuição\",\n \"imaginação prática\",\n \"ideias da geração anterior\"\n ],\n \"en\": [\n \"intuition\",\n \"practical imagination\",\n \"ideas from the previous generation\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 182,\n \"to\": 183\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado e adotado: 182–183; preservada a referência à geração anterior, sem promessa individual de realização.\",\n \"Livro inspecionado: 59476–59506; nenhuma adição adotada. A abertura enfatiza idealização da ordem e da estrutura, sonhos de perfeição profissional/social e limites da realidade, enquanto o curso enfatiza concretização geracional. Título com ruído de OCR em 59486–59489.\"\n ]\n },\n \"Aquarius\": {\n \"pt\": \"você compartilha um horizonte simbólico de descobertas científicas e movimentos coletivos de fraternidade universal. nesse plano social, visões utópicas de comunidade podem encontrar desilusão quando a realidade não corresponde ao ideal.\",\n \"en\": \"you share a symbolic horizon of scientific discoveries and collective movements for universal fellowship. on this social level, utopian visions of community may meet with disillusionment when reality falls short of the ideal.\",\n \"keywords\": {\n \"pt\": [\n \"descobertas científicas\",\n \"fraternidade universal\",\n \"comunidade idealizada\",\n \"desilusão social\"\n ],\n \"en\": [\n \"scientific discoveries\",\n \"universal fellowship\",\n \"idealized community\",\n \"social disillusionment\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 184,\n \"to\": 185\n },\n {\n \"file\": \"books/astrologia-hermetica/astrologia-hermetica.md\",\n \"from\": 59662,\n \"to\": 59668\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado e adotado: 184–185. Livro inspecionado: 59649–59684; adotado apenas 59662–59668 para qualificar o ideal comunitário com a possibilidade de desilusão. Mantido o âmbito coletivo, sem converter descobertas em capacidade científica pessoal.\"\n ]\n },\n \"Pisces\": {\n \"pt\": \"você compartilha um horizonte simbólico de grandes correntes místicas e criatividade artística. nesse plano histórico e coletivo, também aparecem os temas simbólicos de neuroses de massa e difusão das drogas.\",\n \"en\": \"you share a symbolic horizon of major mystical currents and artistic creativity. on this historical and collective level, symbolic themes of mass neurosis and the spread of drugs also appear.\",\n \"keywords\": {\n \"pt\": [\n \"correntes místicas\",\n \"criatividade artística\",\n \"neuroses de massa\",\n \"difusão das drogas\"\n ],\n \"en\": [\n \"mystical currents\",\n \"artistic creativity\",\n \"mass neurosis\",\n \"spread of drugs\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 186,\n \"to\": 187\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado e adotado: 186–187. Neuroses de massa mantido como tema simbólico coletivo, sem diagnóstico de você ou de uma geração.\",\n \"Livro inspecionado: 59880–59913, incluindo o indício 59890–59903; nenhuma adição adotada. A abertura individualiza sensibilidade, intuição, empatia e dificuldades de limites; esses atributos não substituem os temas coletivos e difíceis do curso. Cabeçalho corrompido por OCR em 59890.\",\n \"Review resolution: historical collective symbolism only, with no clinical diagnosis of reader or cohort and no prediction of substance use.\"\n ]\n }\n },\n \"pluto\": {\n \"Aries\": {\n \"pt\": \"você pode ter instintos poderosos e criatividade. em outro tema simbólico coletivo, aparece a liberação das forças destrutivas do ser humano.\",\n \"en\": \"you may have powerful instincts and creativity. in a separate collective symbolic theme, the release of destructive human forces appears.\",\n \"keywords\": {\n \"pt\": [\n \"instintos poderosos\",\n \"criatividade\",\n \"liberação das forças destrutivas do ser humano\"\n ],\n \"en\": [\n \"powerful instincts\",\n \"creativity\",\n \"release of destructive human forces\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 190,\n \"to\": 191\n }\n ],\n \"reviewNotes\": [\n \"Book opening was inspected, but its transformation/leadership claims were not adopted because the course's destructive-force emphasis is more specific and should not be replaced with generic positivity.\",\n \"Final resolution: destructive human forces are an independently listed collective symbolic theme; no causal link from instincts or creativity to destructive behavior is asserted.\"\n ]\n },\n \"Taurus\": {\n \"pt\": \"você compartilha o simbolismo coletivo de destruição do já criado e sexualidade atormentada. nesse mesmo plano simbólico, também aparece um período de estabilidade comercial e prosperidade econômica.\",\n \"en\": \"you share the collective symbolism of destruction of what has already been created and troubled sexuality. on this same symbolic level, a period of commercial stability and economic prosperity also appears.\",\n \"keywords\": {\n \"pt\": [\n \"sexualidade atormentada\",\n \"destruição do que foi criado\",\n \"estabilidade comercial coletiva\",\n \"prosperidade econômica coletiva\"\n ],\n \"en\": [\n \"troubled sexuality\",\n \"destruction of what has been created\",\n \"collective commercial stability\",\n \"collective economic prosperity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 192,\n \"to\": 193\n }\n ],\n \"reviewNotes\": [\n \"The course explicitly describes a period of commercial stability and economic prosperity. Retained it as a collective symbolic theme, not an individual financial forecast. Book material on financial/possession changes was inspected but not adopted as an individual event prediction.\",\n \"Final resolution: destruction and troubled sexuality are shared symbolic themes, not inferred actual sexual experience, diagnosis or identity; the explicit economic period is retained collectively, with no personal finance guarantee.\"\n ]\n },\n \"Gemini\": {\n \"pt\": \"você pode sentir inquietação intelectual e curiosidade apaixonada. em chave simbólica coletiva, essa posição se associa à difusão cultural, a novos e poderosos meios de transporte e à propagação dos vícios.\",\n \"en\": \"you may feel intellectual restlessness and passionate curiosity. on a collective symbolic level, this placement is associated with cultural diffusion, powerful new means of transport, and the spread of vices.\",\n \"keywords\": {\n \"pt\": [\n \"inquietação intelectual\",\n \"curiosidade apaixonada\",\n \"difusão cultural\",\n \"novos e poderosos meios de transporte\",\n \"propagação dos vícios\"\n ],\n \"en\": [\n \"intellectual restlessness\",\n \"passionate curiosity\",\n \"cultural diffusion\",\n \"powerful new means of transport\",\n \"spread of vices\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 194,\n \"to\": 195\n }\n ],\n \"reviewNotes\": [\n \"The cultural/transport/vices clauses are retained only as collective symbolic associations, not predictions of specific events. Book opening on communication/thought was inspected but not needed to supplement the course.\"\n ]\n },\n \"Cancer\": {\n \"pt\": \"você pode ter intuição profunda e criatividade produtiva. em chave simbólica coletiva, essa posição se associa a mudanças radicais na estrutura familiar.\",\n \"en\": \"you may have deep intuition and productive creativity. on a collective symbolic level, this placement is associated with radical changes in family structures.\",\n \"keywords\": {\n \"pt\": [\n \"intuição profunda\",\n \"criatividade produtiva\",\n \"mudanças na estrutura familiar\"\n ],\n \"en\": [\n \"deep intuition\",\n \"productive creativity\",\n \"changes in family structures\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 196,\n \"to\": 198\n }\n ],\n \"reviewNotes\": [\n \"The course's worldwide catastrophes related to nationalist excess are omitted as event claims. Family-structure change is framed as a collective symbolic association, not a prediction about an individual's family. Book's household/family transformation framing was inspected but not adopted to avoid converting the course into personal fate.\"\n ]\n },\n \"Leo\": {\n \"pt\": \"você compartilha um simbolismo geracional de audácia, sofrimento intenso e grandes mudanças nos hábitos sexuais. nesse simbolismo, aparecem projetos abortados, novas diretrizes políticas e inversões nas curvas demográficas.\",\n \"en\": \"you share generational symbolism of audacity, intense suffering and major changes in sexual habits. within this symbolism, aborted projects, new political directions and shifts in demographic curves appear.\",\n \"keywords\": {\n \"pt\": [\n \"audácia\",\n \"sofrimento intenso\",\n \"mudanças nos hábitos sexuais\",\n \"projetos abortados\",\n \"novas diretrizes políticas\",\n \"inversões demográficas\"\n ],\n \"en\": [\n \"audacity\",\n \"intense suffering\",\n \"changes in sexual habits\",\n \"aborted projects\",\n \"new political directions\",\n \"demographic shifts\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 199,\n \"to\": 201\n }\n ],\n \"reviewNotes\": [\n \"O curso mistura disposições e afirmações coletivas; o texto apresenta todos como simbolismo geracional, não como evento individual garantido. A abertura do livro sobre crises de identidade/expressão criativa é fragmentária (62389-62416) e não foi adotada.\",\n \"Printed spelling at course line 199: Audáciosidade. Edited to audácia as a clear linguistic paraphrase, not treated as an unknowable word or reconstructed claim. All clauses remain shared generational symbolism, including suffering and sexual-habit changes.\"\n ]\n },\n \"Virgo\": {\n \"pt\": \"você compartilha um simbolismo geracional de autocrítica implacável, dificuldades criativas, mentalidade labiríntica e cansaço mental. nele, uma nova geração manifesta espírito crítico agudo e contesta os conhecimentos.\",\n \"en\": \"you share generational symbolism of relentless self-criticism, creative difficulties, a labyrinthine mindset and mental fatigue. within it, a new generation shows a sharp critical spirit and challenges established knowledge.\",\n \"keywords\": {\n \"pt\": [\n \"autocrítica implacável\",\n \"dificuldades criativas\",\n \"mentalidade labiríntica\",\n \"cansaço mental\",\n \"espírito crítico agudo\",\n \"contestação dos conhecimentos\"\n ],\n \"en\": [\n \"relentless self-criticism\",\n \"creative difficulties\",\n \"labyrinthine mindset\",\n \"mental fatigue\",\n \"sharp critical spirit\",\n \"challenging established knowledge\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 202,\n \"to\": 204\n }\n ],\n \"reviewNotes\": [\n \"A passagem do livro em 62624-62647 descreve mudanças em trabalho e saúde, e perfeccionismo/análise em 62638-62647. Não adotei eventos de saúde/trabalho nem traços suplementares, mantendo as dificuldades e a moldura geracional do curso.\"\n ]\n },\n \"Libra\": {\n \"pt\": \"você compartilha um simbolismo coletivo de agressividade passional, controvérsia, sede de viver e insatisfação. ele também evoca crises internacionais resolvidas por meios diplomáticos e uma revolução na concepção de casamento e família.\",\n \"en\": \"you share collective symbolism of passionate aggression, controversy, a thirst for life and dissatisfaction. it also evokes international crises resolved through diplomacy and a revolution in how marriage and family are conceived.\",\n \"keywords\": {\n \"pt\": [\n \"agressividade passional\",\n \"controvérsia\",\n \"sede de viver\",\n \"insatisfação\",\n \"crises internacionais\",\n \"soluções diplomáticas\",\n \"mudança na concepção de casamento e família\"\n ],\n \"en\": [\n \"passionate aggression\",\n \"controversy\",\n \"thirst for life\",\n \"dissatisfaction\",\n \"international crises\",\n \"diplomatic solutions\",\n \"change in conceptions of marriage and family\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 205,\n \"to\": 207\n }\n ],\n \"reviewNotes\": [\n \"A referência a crises internacionais e revolução familiar é apresentada como tema simbólico/compartilhado, não previsão de evento mundial ou familiar. A abertura do livro (62942-62969) trata de crises em parcerias e relações pessoais; não foi adotada como destino individual nem como promessa de justiça/estabilidade.\"\n ]\n },\n \"Scorpio\": {\n \"pt\": \"você compartilha um simbolismo coletivo de fecundidade e grandes recursos de vitalidade. ele também abrange progressos científicos e grandes epidemias difíceis de combater.\",\n \"en\": \"you share collective symbolism of fertility and great reserves of vitality. it also encompasses scientific advances and major epidemics that are difficult to combat.\",\n \"keywords\": {\n \"pt\": [\n \"fecundidade\",\n \"recursos de vitalidade\",\n \"progressos científicos\",\n \"epidemias difíceis de combater\"\n ],\n \"en\": [\n \"fertility\",\n \"reserves of vitality\",\n \"scientific advances\",\n \"hard-to-combat epidemics\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 208,\n \"to\": 209\n }\n ],\n \"reviewNotes\": [\n \"Fecundidade/vitalidade, progresso científico e epidemias foram mantidos apenas como simbolismo coletivo; não afirmam fertilidade, saúde ou doença individual. A abertura do livro sobre transformações emocionais/poder (63191-63219) não foi usada para suavizar nem substituir a passagem primária.\",\n \"Shared collective symbolism is an editorial scope boundary for these source themes, not an assertion that the primary explicitly calls fecundidade collective. No fertility assurance, diagnosis or forecast of an actual epidemic is made.\"\n ]\n },\n \"Sagittarius\": {\n \"pt\": \"você compartilha o simbolismo coletivo de energia criativa a serviço de um ideal, sublimação sexual e impasse. nesse plano histórico simbólico, também aparecem estabilidade política e grandes viagens.\",\n \"en\": \"you share the collective symbolism of creative energy serving an ideal, sexual sublimation and impasse. on this symbolic historical level, political stability and major journeys also appear.\",\n \"keywords\": {\n \"pt\": [\n \"energia criativa a serviço de um ideal\",\n \"sublimação sexual\",\n \"impasse\",\n \"estabilidade política\",\n \"grandes viagens\"\n ],\n \"en\": [\n \"creative energy serving an ideal\",\n \"sexual sublimation\",\n \"impasse\",\n \"political stability\",\n \"major journeys\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 210,\n \"to\": 212\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado: 210–222; adotado para Sagittarius: 210–212, apenas cláusulas legíveis. Estabilidade política e grandes viagens permanecem temas históricos simbólicos coletivos, sem previsão de eventos pessoais ou mundiais. Sublimação sexual permanece tema simbólico, sem prática prescrita ou identidade atribuída.\",\n \"OCR incerto em 211: estorço coletivo gelo progresso da humanidade. A cláusula não foi reconstruída como esforço coletivo pelo progresso nem adotada no corpo ou nas palavras-chave.\",\n \"Livro inspecionado: 63390–63435; abertura psicológica legível em 63406–63412. Nenhuma adição adotada. Crises de fé, mudanças filosóficas e busca de verdade/significado do livro não substituem impasse ou a formulação histórica do curso.\"\n ]\n },\n \"Capricorn\": {\n \"pt\": \"você compartilha o simbolismo coletivo de criatividade lenta, profundas renovações e rancor. nesse plano histórico simbólico, também aparecem centralização do poder, instituições fortes e estabilidade internacional política e econômica.\",\n \"en\": \"you share the collective symbolism of slow creativity, profound renewal and resentment. on this symbolic historical level, centralization of power, strong institutions and international political and economic stability also appear.\",\n \"keywords\": {\n \"pt\": [\n \"criatividade lenta\",\n \"profundas renovações\",\n \"rancor\",\n \"centralização do poder\",\n \"instituições fortes\",\n \"estabilidade internacional política e econômica\"\n ],\n \"en\": [\n \"slow creativity\",\n \"profound renewal\",\n \"resentment\",\n \"centralization of power\",\n \"strong institutions\",\n \"international political and economic stability\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 213,\n \"to\": 215\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado: 210–222; adotado para Capricorn: 213–215, apenas cláusulas legíveis. Centralização, instituições e estabilidade internacional ficam no âmbito histórico simbólico coletivo, sem garantia política, financeira ou profissional. Rancor não foi suavizado para transformação positiva.\",\n \"OCR incerto em 213: vingara. Não foi reconstruído como vingança nem adotado no corpo ou nas palavras-chave.\",\n \"Livro inspecionado: 63663–63700; abertura em 63673–63678 incompleta após as transformações, com continuação sobre crises/reconstrução de sistemas. Nenhuma adição adotada nem lacuna reconstruída. O foco em crise institucional do livro difere da estabilidade internacional e centralização listadas no curso; não substitui essas cláusulas.\"\n ]\n },\n \"Aquarius\": {\n \"pt\": \"você compartilha o simbolismo coletivo de criatividade turbulenta, estremecimentos sociais, brutalidade e crueldade. nesse mesmo plano simbólico, também aparecem descobertas científicas importantes e aumento do sentimento de fraternidade.\",\n \"en\": \"you share the collective symbolism of turbulent creativity, social upheavals, brutality and cruelty. on this same symbolic level, important scientific discoveries and a growing sense of fellowship also appear.\",\n \"keywords\": {\n \"pt\": [\n \"criatividade turbulenta\",\n \"estremecimentos sociais\",\n \"brutalidade\",\n \"crueldade\",\n \"descobertas científicas importantes\",\n \"aumento do sentimento de fraternidade\"\n ],\n \"en\": [\n \"turbulent creativity\",\n \"social upheavals\",\n \"brutality\",\n \"cruelty\",\n \"important scientific discoveries\",\n \"growing sense of fellowship\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 216,\n \"to\": 218\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado: 210–222; adotado para Aquarius: 216–218. Preservados tanto brutalidade/crueldade/estremecimentos quanto descobertas/fraternidade como temas coletivos simbólicos, sem conduta individual atribuída, promessa de talento científico ou previsão de revolução.\",\n \"Livro inspecionado: 63940–63975; abertura psicológica em 63950–63955. Nenhuma adição adotada. A possibilidade de atuar como catalisador de mudanças sociais e renovar comunidades/tecnologias não foi convertida em habilidade individual nem usada para amaciar os temas difíceis do curso.\"\n ]\n },\n \"Pisces\": {\n \"pt\": \"você compartilha o simbolismo coletivo de um instinto criativo obscuro, tendência a fundir-se no desconhecido, caos e turbulência sexual. nesse plano histórico simbólico, também aparece o surgimento de novas religiões ou movimentos místicos.\",\n \"en\": \"you share the collective symbolism of an obscure creative instinct, a tendency to merge into the unknown, chaos and sexual turbulence. on this symbolic historical level, the emergence of new religions or mystical movements also appears.\",\n \"keywords\": {\n \"pt\": [\n \"instinto criativo obscuro\",\n \"fusão no desconhecido\",\n \"caos\",\n \"turbulência sexual\",\n \"novas religiões ou movimentos místicos\"\n ],\n \"en\": [\n \"obscure creative instinct\",\n \"merging into the unknown\",\n \"chaos\",\n \"sexual turbulence\",\n \"new religions or mystical movements\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 12 modulo 4/aula-12.md\",\n \"from\": 220,\n \"to\": 222\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado: 210–222; adotado para Pisces: 220–222, com exclusões. Caos e turbulência sexual permanecem temas simbólicos coletivos, sem diagnóstico, comportamento sexual previsto ou identidade atribuída. Novas religiões/movimentos místicos permanecem tema histórico simbólico, sem previsão de evento mundial.\",\n \"Faculdades psíquicas não foi adotado como habilidade pessoal verificável ou garantida. Grandes catástrofes foi omitido do corpo e das palavras-chave como previsão de desastre; não foi substituído por promessa positiva de regeneração.\",\n \"Livro inspecionado: 64174–64212; abertura psicológica legível em 64179–64185, seguida de OCR fragmentado em conceitos-chave. Nenhuma adição adotada. Crises espirituais, dissolução de fronteiras pessoais e regeneração/renascimento do livro não substituem obscuridade, caos ou turbulência do curso; não foram inferidos conteúdos nas lacunas.\",\n \"Final resolution: the entire first sentence is explicitly collective symbolism, including merging into the unknown, chaos and sexual turbulence; no actual reader behavior or clinical/sexual identity is assigned. Psychic faculties remain omitted from body and keywords, rather than asserted as a verified or personal ability.\"\n ]\n }\n }\n },\n \"planetHouses\": {\n \"sun\": {\n \"1\": {\n \"pt\": \"você pode buscar influenciar e chamar a atenção, expressando sua individualidade pelo que faz. em expressão negativa, essa necessidade pode vir com arrogância, egocentrismo e orgulho excessivo.\",\n \"en\": \"you may seek to influence and attract attention, expressing your individuality through what you do. in its negative expression, this need may come with arrogance, egocentrism and excessive pride.\",\n \"keywords\": {\n \"pt\": [\n \"influência\",\n \"atenção\",\n \"individualidade\",\n \"reconhecimento\",\n \"arrogância\",\n \"egocentrismo\"\n ],\n \"en\": [\n \"influence\",\n \"attention\",\n \"individuality\",\n \"recognition\",\n \"arrogance\",\n \"egocentrism\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1108,\n \"to\": 1117\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1129,\n \"to\": 1138\n }\n ],\n \"reviewNotes\": [\n \"The course conditions support in the early environment on a well-aspected Sun; that condition was not universalized. Physical strength, family attention, named examples, and life/career consequences were omitted. Book text explicitly labels Sun in House 1 in the inspected body, but no supplemental claims were needed.\"\n ]\n },\n \"2\": {\n \"pt\": \"você pode buscar desenvolver competência, valores e recursos próprios para construir segurança e senso de valor. na expressão negativa, sensacionalismo, busca de status e extravagância podem servir para provar seu valor e compensar insegurança.\",\n \"en\": \"you may seek to develop your own competence, values and resources to build security and self-worth. in a negative expression, sensationalism, status-seeking and extravagance may serve to prove your worth and compensate for insecurity.\",\n \"keywords\": {\n \"pt\": [\n \"competência\",\n \"valores\",\n \"recursos\",\n \"segurança\",\n \"sensacionalismo\",\n \"status\",\n \"extravagância\"\n ],\n \"en\": [\n \"competence\",\n \"values\",\n \"resources\",\n \"security\",\n \"sensationalism\",\n \"status\",\n \"extravagance\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1141,\n \"to\": 1150\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1156,\n \"to\": 1160\n }\n ],\n \"reviewNotes\": [\n \"The course discusses money and possessions as possible sources of self-worth, not guaranteed prosperity; no financial outcome is claimed. Book material at lines 26756–26759 explicitly names Sun in House 2, but its material-achievement framing was not adopted.\"\n ]\n },\n \"3\": {\n \"pt\": \"você pode sentir mais vitalidade quando aprende e troca ideias, desenvolvendo pensamentos e pontos de vista próprios. também pode haver necessidade de atenção e reconhecimento, enquanto aspectos difíceis ao Sol podem indicar desafios no início da vida escolar.\",\n \"en\": \"you may feel more alive when learning and exchanging ideas, while developing your own thoughts and viewpoints. there may also be a need for attention and recognition, while difficult aspects to the Sun may indicate challenges early in schooling.\",\n \"keywords\": {\n \"pt\": [\n \"aprendizado\",\n \"troca de ideias\",\n \"pensamento próprio\",\n \"atenção\",\n \"reconhecimento\",\n \"aspectos difíceis ao Sol\"\n ],\n \"en\": [\n \"learning\",\n \"exchange of ideas\",\n \"independent thought\",\n \"attention\",\n \"recognition\",\n \"difficult aspects to the Sun\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1163,\n \"to\": 1175\n }\n ],\n \"reviewNotes\": [\n \"The early-school difficulty is explicitly conditional on difficult Sun aspects. Book heading/body around lines 26775–26835 confirms House 3 and discusses communication/learning, but no additional book claims were needed. Omitted sibling rivalry, family outcomes, named writers and career/achievement claims.\",\n \"Final resolution: neutral PT vitalidade and attention keyword; EN more alive matches the comparative in A8 1167, not most alive. School challenges remain conditional on difficult aspects specifically to the Sun.\"\n ]\n },\n \"4\": {\n \"pt\": \"você pode buscar uma identidade própria sem negar seus vínculos e raízes familiares. na segunda metade da vida, seu potencial criativo e sua autoexpressão podem tornar-se mais eficazes.\",\n \"en\": \"you may seek an identity of your own without denying your family ties and roots. in the second half of life, your creative potential and self-expression may become more effective.\",\n \"keywords\": {\n \"pt\": [\n \"identidade própria\",\n \"raízes familiares\",\n \"vínculos\",\n \"expressão criativa\",\n \"maturidade\"\n ],\n \"en\": [\n \"individual identity\",\n \"family roots\",\n \"family ties\",\n \"creative expression\",\n \"maturity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1184,\n \"to\": 1197\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1209,\n \"to\": 1217\n }\n ],\n \"reviewNotes\": [\n \"The course qualifies later-life creative power, vitality, and self-expression as potentially more effective in maturity; the body retains creative potential/self-expression and omits vitality, with no guarantee. Did not adopt father dynamics, gendered examples, or the interleaved book material whose House 4 body could not be clearly verified. House placement alone does not establish an angle/cusp sign.\",\n \"Final resolution against A8 1211–1215: preserve second-half-of-life/mature qualification and potential effectiveness of creativity/self-expression, not increasing importance of identity. Vitality was left out of body/keywords to avoid a health assurance; no later-life outcome is guaranteed.\"\n ]\n },\n \"5\": {\n \"pt\": \"você pode encontrar identidade e propósito ao se envolver por inteiro em atividades que fazem você se sentir vivo, dependendo da qualidade desse envolvimento e da satisfação que ele traz. a expressão artística, os hobbies e a recreação podem enriquecer a vida, embora você ainda possa achar que poderia fazer melhor.\",\n \"en\": \"you may find identity and purpose through full engagement in activities that make you feel alive, depending on the quality of that involvement and the satisfaction it brings. artistic expression, hobbies and recreation can enrich life, though you may still feel you could do better.\",\n \"keywords\": {\n \"pt\": [\n \"identidade\",\n \"propósito\",\n \"envolvimento\",\n \"expressão artística\",\n \"hobbies\",\n \"recreação\",\n \"satisfação\"\n ],\n \"en\": [\n \"identity\",\n \"purpose\",\n \"engagement\",\n \"artistic expression\",\n \"hobbies\",\n \"recreation\",\n \"satisfaction\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1220,\n \"to\": 1236\n }\n ],\n \"reviewNotes\": [\n \"A fonte distingue explicitamente qualidade de envolvimento/satisfação da quantidade (1225-1227); identidade/propósito foi formulado como possibilidade. Alegações de doença/saúde (1223-1226), projeção parental nos filhos (1242-1249) e busca manipulativa por atenção sob aspecto difícil (1250-1254) foram omitidas.\"\n ]\n },\n \"6\": {\n \"pt\": \"você pode desenvolver identidade por meio do trabalho, da rotina diária e do autoaperfeiçoamento, embora esse processo possa se tornar excessivo ou obsessivo. o serviço aos outros e a eficiência nas tarefas práticas podem fortalecer seu senso de valor e de identidade.\",\n \"en\": \"you may develop identity through work, daily routine and self-improvement, though this process can become excessive or obsessive. service to others and efficiency in practical tasks may strengthen your sense of worth and identity.\",\n \"keywords\": {\n \"pt\": [\n \"trabalho\",\n \"rotina diária\",\n \"autoaperfeiçoamento\",\n \"serviço\",\n \"rotinas\",\n \"eficiência\",\n \"valor pessoal\"\n ],\n \"en\": [\n \"work\",\n \"daily routine\",\n \"self-improvement\",\n \"service\",\n \"routines\",\n \"efficiency\",\n \"personal worth\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1257,\n \"to\": 1262\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1270,\n \"to\": 1281\n }\n ],\n \"reviewNotes\": [\n \"A fonte associa desenvolvimento de identidade a trabalho/saúde/rotina/autoaperfeiçoamento e alerta contra tornar-se indevidamente obsessivo (1257-1262); não converti isso em instrução ou sucesso garantido. Saúde/doença, orientação de saúde e resultado no mercado de empregos foram omitidos (1257-1274).\"\n ]\n },\n \"7\": {\n \"pt\": \"você pode encontrar poder, propósito e individualidade por meio de associações e relacionamentos, e atividades conjuntas podem ajudar a definir sua identidade. em alguns casos você pode tentar se esconder atrás da identidade de alguém forte ou influente.\",\n \"en\": \"you may find power, purpose and individuality through associations and relationships, and shared activities may help define your identity. in some cases, you may try to hide behind the identity of someone strong or influential.\",\n \"keywords\": {\n \"pt\": [\n \"associações\",\n \"relacionamentos\",\n \"atividades conjuntas\",\n \"alianças honestas\",\n \"autossuficiência\",\n \"identidade\"\n ],\n \"en\": [\n \"associations\",\n \"relationships\",\n \"shared activities\",\n \"honest alliances\",\n \"self-sufficiency\",\n \"identity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1287,\n \"to\": 1306\n }\n ],\n \"reviewNotes\": [\n \"A fonte apresenta projeção/ocultação atrás de outra identidade apenas em alguns casos (1298-1306); mantida a condição, sem universalizar história de parceiro/figura paterna. Exemplos nomeados, celebridade/casamento e vocações profissionais (1309-1314) foram omitidos.\"\n ]\n },\n \"8\": {\n \"pt\": \"você pode buscar expandir-se e transcender limites pessoais por meio de união e intercâmbio com outras pessoas. em alguns casos você pode tentar evitar a verdadeira intimidade, embora a troca emocional possa contribuir para esse processo.\",\n \"en\": \"you may seek to expand and transcend personal limits through union and exchange with others. in some cases you may try to avoid true intimacy, although emotional exchange may contribute to this process.\",\n \"keywords\": {\n \"pt\": [\n \"expansão\",\n \"transcendência\",\n \"união\",\n \"intercâmbio\",\n \"sentimentos\",\n \"emoções\",\n \"oculto\",\n \"mistério\",\n \"tabu\",\n \"evitação da intimidade\"\n ],\n \"en\": [\n \"expansion\",\n \"transcendence\",\n \"union\",\n \"exchange\",\n \"feelings\",\n \"emotions\",\n \"hidden\",\n \"mystery\",\n \"taboo\",\n \"avoidance of intimacy\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1317,\n \"to\": 1322\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1332,\n \"to\": 1347\n }\n ],\n \"reviewNotes\": [\n \"A fonte apresenta evitação de intimidade apenas para alguns (1341-1344); mantida essa possibilidade sem generalizar. Palavras-chave mistério/tabu se apoiam no interesse pelo oculto/misterioso/tabu (1345-1347), embora concisão deixe isso fora das duas frases. Dinheiro/posses, complexos de infância, depressão, morte e previsões/diagnósticos foram omitidos.\",\n \"Final resolution: conditional avoidance directly addresses você/you, not only unspecified other people. Mystery/taboo remain supported keyword-only themes; tabu occurs at A8 1347, so the adopted source range extends through that line. Duplicate keyword pairs were removed. No named example beginning on that same line is adopted.\"\n ]\n },\n \"9\": {\n \"pt\": \"você pode buscar uma compreensão mais ampla da vida e formar uma visão pessoal da verdade pelo contato com diferentes filosofias e crenças. essa busca pode se prender tanto às abstrações e ao futuro que perde contato com o cotidiano.\",\n \"en\": \"you may seek a broader understanding of life and form a personal view of truth through contact with different philosophies and beliefs. this search can become so absorbed in abstractions and the future that it loses touch with everyday life.\",\n \"keywords\": {\n \"pt\": [\n \"compreensão mais ampla da vida\",\n \"visão pessoal da verdade\",\n \"filosofias e crenças\",\n \"abstrações e futuro\",\n \"distanciamento do cotidiano\"\n ],\n \"en\": [\n \"broader understanding of life\",\n \"personal view of truth\",\n \"philosophies and beliefs\",\n \"abstractions and the future\",\n \"distance from everyday life\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1356,\n \"to\": 1370\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente para a casa 9: 1354–1383; adotado: 1356–1370. Mantida a busca de compreensão e verdade pessoal com o risco de afastamento do cotidiano, sem transformar aptidões vocacionais em carreira garantida. A viagem/peregrinação explicitamente associada a ênfase sagitariana em 1361–1363 não foi universalizada. Conselhos e exemplos de pessoas nomeadas não foram adotados.\",\n \"Livro inspecionado: 27420–27490. Identidade da casa 9 verificada no corpo em 27438–27444, além do título em 27437. Nenhum claim do livro adotado; o curso já fornece a busca e sua dificuldade. A partir de 27461 há colunas intercaladas de casas 9/10; não se atribuiu conteúdo pela mera proximidade ao título.\",\n \"OCR no primário inclui comes (1358), aqui-eagora (1369), 95 Casa (1379) e referência incompleta O Sol na Casa (1382). Não foram reconstruídas afirmações a partir dessas falhas.\"\n ]\n },\n \"10\": {\n \"pt\": \"você pode orientar sua identidade para a carreira, as realizações profissionais e o desejo de reconhecimento. essa ambição pode ligar demais seu valor pessoal aos títulos e à posição que ocupa.\",\n \"en\": \"you may orient your identity toward your career, professional achievements and the desire for recognition. this ambition can tie your sense of self-worth too closely to titles and the position you hold.\",\n \"keywords\": {\n \"pt\": [\n \"identidade e carreira\",\n \"realizações profissionais\",\n \"desejo de reconhecimento\",\n \"ambição\",\n \"valor pessoal ligado a títulos\"\n ],\n \"en\": [\n \"identity and career\",\n \"professional achievements\",\n \"desire for recognition\",\n \"ambition\",\n \"self-worth tied to titles\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1386,\n \"to\": 1389\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1392,\n \"to\": 1394\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1407,\n \"to\": 1409\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente para a casa 10: 1384–1422; adotado: 1386–1389, 1392–1394 e 1407–1409. Desejo de reconhecimento e ambição permanecem possibilidades, não sucesso profissional garantido. A afirmação extrema de aniquilamento após perda de posição não foi adotada como desfecho.\",\n \"Não foram adotados Leão no Meio-do-Céu ou contido na casa 10 (1384, 1421–1422), exemplos condicionados ao signo solar (1390–1392), conflitos dependentes de oposições da casa 4 (1402–1404), interpretação condicional da casa 10 como mãe, narrativas familiares, generalizações de gênero/parceria ou pessoas nomeadas. Nenhum signo de ângulo/cúspide foi inferido do Sol na casa.\",\n \"Livro inspecionado: 27420–27490 e 27555–27655. Identidade da casa 10 verificada no corpo em 27455–27459, além do título em 27454. Nenhum claim adotado do livro. Colunas intercaladas após 27461 e trecho iniciado no meio de palavra em 27555 não foram recompostos nem usados como fonte de traços.\",\n \"OCR de números de casa em 1386–1392 varia entre RO, 105 e Me; a identidade da seção é inequívoca pelo título 1384 e pelo desenvolvimento contínuo.\"\n ]\n },\n \"11\": {\n \"pt\": \"você pode desenvolver seu sentido de identidade por atividades sociais, humanitárias ou políticas e por amizades. essa ligação com grupos e causas pode também diluir a diferença entre suas próprias convicções e aquilo que o grupo espera que você acredite.\",\n \"en\": \"you may develop your sense of identity through social, humanitarian or political activities and through friendships. this connection with groups and causes can also blur the distinction between your own convictions and what the group expects you to believe.\",\n \"keywords\": {\n \"pt\": [\n \"identidade e atividades sociais\",\n \"atividades humanitárias ou políticas\",\n \"amizades\",\n \"grupos e causas\",\n \"convicções próprias e expectativas do grupo\"\n ],\n \"en\": [\n \"identity and social activities\",\n \"humanitarian or political activities\",\n \"friendships\",\n \"groups and causes\",\n \"personal convictions and group expectations\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1426,\n \"to\": 1430\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1439,\n \"to\": 1447\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente para a casa 11: 1424–1454; adotado: 1426–1430 e 1439–1447. Preservados identidade social, amizades e risco de absorção das crenças do grupo, sem instrução de prática ou promessa de amizade, liderança ou realização de metas.\",\n \"Facilidade de funcionamento e adaptação em grupos depende dos aspectos ao Sol em 1432–1434; não foi universalizada. Exemplo com conjunção Sol/Marte e signo específico, projeção de providência nos amigos, recomendações de metas e linguagem de cura em 1453–1454 não foram adotados.\",\n \"Livro inspecionado: 27555–27655. O título da casa 11 está fragmentado em 27607–27610, mas a identidade é explícita no corpo em 27611–27616 (A 11o Casa, comunidade e causas sociais). Nenhum claim do livro adotado. Colunas de casas 11/12 se intercalam depois de 27618; frases deslocadas não foram usadas como complemento.\",\n \"OCR coo-segue (1426), urna e não aconteci (1439–1444) não foi usado para reconstruir novos claims.\"\n ]\n },\n \"12\": {\n \"pt\": \"você pode viver uma tensão entre afirmar uma identidade própria e abrir espaço para o inconsciente pessoal e coletivo. essa abertura pode encontrar expressão em imagens míticas ou arquetípicas através da arte, da poesia, da dança ou da música.\",\n \"en\": \"you may experience a tension between asserting an identity of your own and making room for the personal and collective unconscious. this openness may find expression in mythical or archetypal images through art, poetry, dance or music.\",\n \"keywords\": {\n \"pt\": [\n \"identidade própria\",\n \"inconsciente pessoal e coletivo\",\n \"tensão entre identidade e abertura\",\n \"imagens míticas ou arquetípicas\",\n \"expressão artística\"\n ],\n \"en\": [\n \"individual identity\",\n \"personal and collective unconscious\",\n \"tension between identity and openness\",\n \"mythical or archetypal images\",\n \"artistic expression\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1457,\n \"to\": 1467\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 1481,\n \"to\": 1488\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente para a casa 12: 1455–1510. Adotado: 1457–1467 e 1481–1488, apenas tensão identidade/abertura e expressão de imagens míticas/arquetípicas nas artes. Não se afirma mediunidade verificada, diagnóstico, habilidade de cura, despertar garantido ou destino profissional.\",\n \"Não foram adotados doença/conflitos como consequência causal, rejeição por outras pessoas, recomendações de retiro, crises/confinamento, afirmações de vidas anteriores, obrigação cármica, trabalho em instituições ou previsões envolvendo pai/outros homens. As possibilidades artísticas não são garantias de talento ou carreira.\",\n \"Livro inspecionado: 27555–27655. Título de casa 12 em 27618; abertura 27619–27629 com palavras deslocadas e frase incompleta, intercalada com casa 11 em 27631 e 27640–27654. Não há identidade de casa intacta no corpo dessa abertura; nenhuma adição adotada nem colunas recompostas.\",\n \"O intervalo primário solicitado também mostrou 1511–1516, que já trata de Lua/Câncer e exemplo de outra configuração; excluído integralmente da síntese. OCR de números de casa e palavras nos parágrafos não foi usado para inferir fatores adicionais.\"\n ]\n }\n },\n \"moon\": {\n \"1\": {\n \"pt\": \"você tende a ter respostas emocionais, instintivas e sentimentais; sem modificações fortes de outros aspectos no mapa, pode irradiar sensibilidade e receptividade. você pode captar sinais de quem está perto e agir por intuição, embora necessidades e sentimentos próprios às vezes tornem essa leitura subjetiva.\",\n \"en\": \"you may have emotional, instinctive, and sentimental responses; unless strongly modified by other aspects in the chart, you may radiate sensitivity and receptivity. you may pick up signals from nearby people and act intuitively, though your own needs and feelings can sometimes make that reading subjective.\",\n \"keywords\": {\n \"pt\": [\n \"respostas emocionais e instintivas\",\n \"sensibilidade condicionada por outros aspectos\",\n \"receptividade\",\n \"leitura intuitiva do ambiente\",\n \"subjetividade emocional\"\n ],\n \"en\": [\n \"emotional and instinctive responses\",\n \"sensitivity conditioned by other aspects\",\n \"receptivity\",\n \"intuitive reading of surroundings\",\n \"emotional subjectivity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 4,\n \"to\": 8\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 15,\n \"to\": 22\n }\n ],\n \"reviewNotes\": [\n \"Mantida a condição de que as qualidades lunares descritas podem ser fortemente modificadas por outros aspectos do mapa.\",\n \"A passagem sobre adaptação à mãe e sobrevivência foi omitida como generalização familiar/biográfica; a analogia com Câncer interceptado ou na cúspide e o exemplo pessoal também foram omitidos.\",\n \"Final review resolution: emotional, instinctive and sentimental responses replace the unsupported visible-emotions phrase. Strong modification by other chart aspects qualifies sensitivity/receptivity; intuitive reading remains potentially subjective.\"\n ]\n },\n \"2\": {\n \"pt\": \"você pode buscar segurança emocional em recursos, dinheiro e posses, com apego sentimental a objetos ligados a lembranças ou ao passado. as circunstâncias financeiras podem oscilar; a posição também é associada a adaptabilidade e sensibilidade para perceber o que outras pessoas querem ou necessitam.\",\n \"en\": \"you may seek emotional security through resources, money, and possessions, with sentimental attachment to objects linked to memories or the past. financial circumstances may fluctuate; this placement is also associated with adaptability and sensitivity to what other people want or need.\",\n \"keywords\": {\n \"pt\": [\n \"segurança emocional material\",\n \"apego sentimental a objetos\",\n \"memórias e passado\",\n \"oscilações financeiras\",\n \"adaptabilidade\",\n \"percepção das necessidades alheias\"\n ],\n \"en\": [\n \"emotional material security\",\n \"sentimental attachment to possessions\",\n \"memories and the past\",\n \"financial fluctuations\",\n \"adaptability\",\n \"sensitivity to others' needs\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 29,\n \"to\": 35\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 36,\n \"to\": 40\n }\n ],\n \"reviewNotes\": [\n \"As fontes sustentam segurança emocional por dinheiro/posses, apego sentimental a objetos e lembranças, oscilação das circunstâncias financeiras e adaptabilidade/sensibilidade para perceber necessidades alheias.\",\n \"A afirmação sobre absorver valores da família de origem foi omitida; a lista de profissões e ganhos foi omitida por ser previsão profissional/financeira.\"\n ]\n },\n \"3\": {\n \"pt\": \"você pode perceber o ambiente de forma muito ligada ao humor e à sensibilidade, e às vezes ter dificuldade para separar seus próprios pensamentos das ideias que circulam ao redor. a imaginação e a memória podem ser fortes, enquanto a curiosidade busca segurança ao entender como as coisas funcionam; o foco mental também pode mudar de um interesse para outro.\",\n \"en\": \"you may perceive your surroundings through mood and sensitivity, and sometimes find it difficult to separate your own thoughts from ideas circulating around you. imagination and memory may be strong, while curiosity seeks security through understanding how things work; your mental focus may also shift from one interest to another.\",\n \"keywords\": {\n \"pt\": [\n \"percepção filtrada pelo humor\",\n \"sensibilidade ao ambiente\",\n \"separação entre pensamentos próprios e alheios\",\n \"imaginação\",\n \"memória retentiva\",\n \"curiosidade por como as coisas funcionam\",\n \"interesses variáveis\"\n ],\n \"en\": [\n \"mood-shaped perception\",\n \"sensitivity to surroundings\",\n \"distinguishing one's thoughts from others'\",\n \"imagination\",\n \"retentive memory\",\n \"curiosity about how things work\",\n \"shifting interests\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 43,\n \"to\": 51\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 52,\n \"to\": 57\n }\n ],\n \"reviewNotes\": [\n \"Preservado o contraste entre percepção filtrada por humor/sensibilidade e possível dificuldade em distinguir pensamentos próprios dos que circulam no entorno.\",\n \"Mantidos imaginação, memória retentiva, busca de segurança por compreender como algo funciona e variação de interesses. Afirmações sobre parentes, cuidado familiar, escrita, audiência e docência foram omitidas.\"\n ]\n },\n \"4\": {\n \"pt\": \"você pode encontrar segurança e pertencimento no lar e buscá-lo como refúgio quando a vida pressiona; as mudanças no ambiente doméstico podem afetar seu estado emocional. sob pressão, você pode voltar a padrões de comportamento da primeira infância.\",\n \"en\": \"you may find security and belonging at home and seek it as a refuge when life feels demanding; changes in the domestic environment may affect your emotional state. under pressure, you may return to behavioral patterns from early childhood.\",\n \"keywords\": {\n \"pt\": [\n \"segurança e pertencimento no lar\",\n \"lar como refúgio\",\n \"sensibilidade às mudanças domésticas\",\n \"retorno a padrões da primeira infância sob pressão\"\n ],\n \"en\": [\n \"security and belonging at home\",\n \"home as refuge\",\n \"sensitivity to domestic changes\",\n \"return to early childhood patterns under pressure\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 69,\n \"to\": 76\n }\n ],\n \"reviewNotes\": [\n \"Mantidos segurança/pertencimento no lar, refúgio, mudanças domésticas e retorno a padrões de comportamento da primeira infância sob pressão.\",\n \"As linhas 85–87 condicionam a aspectos da Lua uma afirmação específica sobre cuidado e sustento aprendidos mais com o pai do que com a mãe. Essa afirmação não foi adotada nem generalizada como regra sobre criação não convencional.\",\n \"O exemplo de retornar à família de origem e o exemplo de chocolate/mãe foram omitidos. O título associa a seção a Câncer no Fundo do Céu, mas nenhuma equivalência entre casa, ângulo ou signo foi inferida.\"\n ]\n },\n \"5\": {\n \"pt\": \"você pode buscar conforto, segurança e tranquilidade em hobbies, romances e expressão criativa, sentindo-se mais à vontade ao criar. a expressão artística pode surgir como algo natural, embora os aspectos da Lua indiquem com que facilidade isso se manifesta.\",\n \"en\": \"you may seek comfort, security, and ease through hobbies, romance, and creative expression, feeling more at home when creating. artistic expression may come naturally, though the Moon's aspects indicate how easily it finds expression.\",\n \"keywords\": {\n \"pt\": [\n \"conforto\",\n \"expressão criativa\",\n \"aspectos da Lua\"\n ],\n \"en\": [\n \"comfort\",\n \"creative expression\",\n \"Moon aspects\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 97,\n \"to\": 102\n }\n ],\n \"reviewNotes\": [\n \"Creative ease remains dependent on Moon aspects at A9 100–102. No universal child/romance outcome, health claim or named example is adopted.\"\n ]\n },\n \"6\": {\n \"pt\": \"você pode encontrar segurança e conforto ao cuidar da rotina diária e das necessidades do corpo. também pode precisar de vínculo emocional com o trabalho e gostar de atender às necessidades práticas e emocionais de outras pessoas.\",\n \"en\": \"you may find security and comfort in caring for daily routines and the body's needs. you may also need an emotional connection to your work and enjoy meeting other people's practical and emotional needs.\",\n \"keywords\": {\n \"pt\": [\n \"rotina diária\",\n \"necessidades do corpo\",\n \"vínculo emocional com o trabalho\",\n \"necessidades dos outros\"\n ],\n \"en\": [\n \"daily routines\",\n \"the body's needs\",\n \"emotional connection to work\",\n \"others' needs\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 117,\n \"to\": 119\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 134,\n \"to\": 138\n }\n ],\n \"reviewNotes\": [\n \"Adopted ranges tightened to A9 117–119 and 134–138: routine/body needs and emotional work connection/service only. No health prescription, employment result, mother/pet projection or colleague history is adopted.\"\n ]\n },\n \"7\": {\n \"pt\": \"você pode se adaptar em excesso às necessidades de quem está ao seu lado e derivar demais dessa pessoa a ideia de quem você é. a Lua pode trazer mudanças de humor e de sentimentos em relação à parceria.\",\n \"en\": \"you may adapt excessively to a partner's needs and derive too much of your sense of identity from that person. the Moon may bring shifts in mood and feelings about the relationship.\",\n \"keywords\": {\n \"pt\": [\n \"adaptação em excesso\",\n \"identidade\",\n \"mudanças de humor\",\n \"sentimentos na relação\"\n ],\n \"en\": [\n \"excessive adaptation\",\n \"identity\",\n \"mood changes\",\n \"feelings about the relationship\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 144,\n \"to\": 145\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 156,\n \"to\": 158\n }\n ],\n \"reviewNotes\": [\n \"A condição sobre aspectos tensos e a realização de desejos relacionais foi omitida para manter foco nas tendências adotadas.\"\n ]\n },\n \"8\": {\n \"pt\": \"você pode captar intuitivamente tendências sociais ligadas à economia ou ao comércio, mas também pode se sentir tomado por complexos inconscientes opressivos. se a Lua recebe aspectos difíceis, encerramentos ou separações podem trazer ansiedade maior, embora nessas crises possa haver recursos e forças a descobrir.\",\n \"en\": \"you may intuitively sense social trends tied to the economy or commerce, while also feeling overtaken by oppressive unconscious complexes. if the Moon receives difficult aspects, endings or separations may bring greater anxiety, though such crises may also reveal resources and strength.\",\n \"keywords\": {\n \"pt\": [\n \"tendências sociais\",\n \"economia\",\n \"comércio\",\n \"complexos inconscientes\",\n \"aspectos difíceis\",\n \"encerramentos\",\n \"separações\",\n \"ansiedade\",\n \"recursos\"\n ],\n \"en\": [\n \"social trends\",\n \"economy\",\n \"commerce\",\n \"unconscious complexes\",\n \"difficult aspects\",\n \"endings\",\n \"separations\",\n \"anxiety\",\n \"resources\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 166,\n \"to\": 170\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 181,\n \"to\": 183\n }\n ],\n \"reviewNotes\": [\n \"A condição de aspectos difíceis aplica-se especificamente a encerramentos ou separações; recursos e forças são possibilidade, não promessa.\",\n \"Adopted ranges tightened to A9 166–170 and 181–183. Anxiety applies to endings/separations under difficult Moon aspects, not crises in general; discovered resources/strength remain possible. Inheritance begins on 183 but is not adopted; no childhood narrative from 170 onward is adopted.\"\n ]\n },\n \"9\": {\n \"pt\": \"você pode ter receptividade à filosofia e à religião, compreensão intuitiva de símbolos e flexibilidade para adaptar sua filosofia a influências e condições cambiantes. viagens, aventuras ou pesquisas filosóficas também podem servir de escape dos aborrecimentos cotidianos.\",\n \"en\": \"you may be receptive to philosophy and religion, understand symbols intuitively and adapt your philosophy to changing influences and conditions. travel, adventures or philosophical inquiry may also serve as an escape from everyday frustrations.\",\n \"keywords\": {\n \"pt\": [\n \"filosofia e religião\",\n \"compreensão intuitiva de símbolos\",\n \"adaptação da filosofia a condições cambiantes\",\n \"viagens e aventuras\",\n \"escape do cotidiano\"\n ],\n \"en\": [\n \"philosophy and religion\",\n \"intuitive understanding of symbols\",\n \"adaptation of philosophy to changing conditions\",\n \"travel and adventures\",\n \"escape from everyday life\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 188,\n \"to\": 192\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 193,\n \"to\": 197\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente para a casa 9: 185–207; adotado: 188–192 e 193–197. A adaptação da filosofia a influências e condições cambiantes e o possível escape do cotidiano permanecem distintos; viagens não são eventos garantidos nem instrução.\",\n \"Não foram adotadas previsão do rumo dos acontecimentos, residência no exterior, imagens maternas/divinas, relações condicionadas a gênero, dificuldades com familiares sob aspectos difíceis à Lua, correlação profissional ou pessoas nomeadas. Signo e aspectos em 202–203 condicionam a imagem de Deus; essa imagem não foi universalizada.\",\n \"Livro inspecionado: 32386–32435. Há título danificado JUA NA CASA 09 em 32396, mas o corpo está fragmentado e não identifica inequivocamente a casa; o subtítulo em 32400 parece deslocado. Nenhum claim do livro adotado ou coluna reconstruída.\",\n \"Final review resolution: mesmo que in A9 190–192 means even if faith is inherited, not an if prerequisite for adapting philosophy. No inherited-faith condition was added; the adapted object is philosophy, not beliefs in general.\"\n ]\n },\n \"10\": {\n \"pt\": \"você pode ligar suas necessidades de segurança à profissão e ao status, com sensibilidade à reputação e ao que os outros pensam de você. também pode haver busca de aprovação e sensibilidade aos humores do público.\",\n \"en\": \"you may link your need for security to your profession and status, with sensitivity to your reputation and what others think of you. there may also be a search for approval and sensitivity to public moods.\",\n \"keywords\": {\n \"pt\": [\n \"segurança ligada à profissão e ao status\",\n \"sensibilidade à reputação\",\n \"opinião dos outros\",\n \"busca de aprovação\",\n \"humores do público\"\n ],\n \"en\": [\n \"security linked to profession and status\",\n \"sensitivity to reputation\",\n \"others’ opinions\",\n \"search for approval\",\n \"public moods\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 211,\n \"to\": 215\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 230,\n \"to\": 231\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente para a casa 10: 208–232; adotado: 211–215 e 230–231, apenas segurança/status, reputação, busca de aprovação e sensibilidade ao público. Não foram adotadas a narrativa universal de mãe/infância nem a afirmação de domínio dos sentimentos das massas. Nenhum sucesso profissional ou aprovação é garantido.\",\n \"Quadraturas e oposições à Lua em 214–215 condicionam conflitos internos sobre aprovação; esse efeito não foi incluído nem generalizado. Foram excluídos exemplos nomeados, crime/trânsitos, projeção em autoridades, histórias familiares e destinos de cuidado profissional. Câncer no Meio-do-Céu/casa 10 (208, 232) é analogia separada, não signo inferido de ângulo/cúspide nem equivalência MC=10.\",\n \"Livro inspecionado: 32522–32572. O corpo identifica explicitamente Lua na 10o Casa em 32532; o parágrafo 32532–32547 está fragmentado por quebras de coluna/palavras. Nenhum claim do livro adotado; desempenho profissional e oscilação emocional não foram adicionados ao curso por recomposição de fragmentos.\",\n \"Final review resolution: approval desire at physical A9 211–214 is distinct from aspect-conditioned conflict at 214–215. Public-mood sensitivity is at physical 230–231; Cancer-on-MC analogy starts at 232. The product ranges are retained; neither review objection requires a new condition or angle inference.\"\n ]\n },\n \"11\": {\n \"pt\": \"você pode buscar segurança, conforto e pertencimento em amigos, grupos e organizações, com forte suscetibilidade às influências desse meio. suas metas e ambições podem oscilar com o humor e com as opiniões de outras pessoas.\",\n \"en\": \"you may seek security, comfort and belonging through friends, groups and organizations, with strong susceptibility to their influence. your goals and ambitions may fluctuate with your mood and with other people’s opinions.\",\n \"keywords\": {\n \"pt\": [\n \"segurança e conforto\",\n \"pertencimento\",\n \"amigos, grupos e organizações\",\n \"suscetibilidade a influências\",\n \"metas e ambições oscilantes\"\n ],\n \"en\": [\n \"security and comfort\",\n \"belonging\",\n \"friends, groups and organizations\",\n \"susceptibility to influence\",\n \"fluctuating goals and ambitions\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 235,\n \"to\": 238\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 253,\n \"to\": 254\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente para a casa 11: 233–257; adotado: 235–238 e 253–254, apenas busca de segurança/pertencimento, impressionabilidade e oscilação de metas sob humor/opiniões alheias. Não foi convertido o conselho de seleção de amigos em prática prescrita.\",\n \"Não foram generalizadas a capacidade de circular por grupos sob a ressalva de Lua não fixa (238), mudanças de conhecidos com Lua em signo mutável (240–241), dificuldades sob maus aspectos (242–245), amizades benéficas com mulheres sob bons aspectos (246), nem a família de amigos condicionada em 255–257. Projeções maternas, gênero, história infantil e resultados relacionais ficaram fora do corpo.\",\n \"Livro inspecionado: 32648–32720. Identidade da casa 11 explícita no corpo em 32663, com continuação sobre grupos/amizades em 32667–32672; a coluna de casa 12 se intercala desde 32665. Nenhum claim do livro adotado; frases posteriores não foram recompostas pela proximidade dos títulos.\"\n ]\n },\n \"12\": {\n \"pt\": \"você pode sentir uma fronteira tênue entre suas emoções e as das pessoas ao redor, confundindo sentimentos alheios com os próprios. seus sentimentos e sonhos podem ser vívidos, e você pode ter inclinação a cuidar de pessoas em aflição.\",\n \"en\": \"you may sense a thin boundary between your emotions and those of people around you, mistaking others’ feelings for your own. your feelings and dreams may be vivid, and you may be inclined to care for people in distress.\",\n \"keywords\": {\n \"pt\": [\n \"fronteiras emocionais tênues\",\n \"confusão entre sentimentos próprios e alheios\",\n \"sentimentos e sonhos vívidos\",\n \"cuidado com pessoas em aflição\"\n ],\n \"en\": [\n \"thin emotional boundaries\",\n \"confusion between one’s own and others’ feelings\",\n \"vivid feelings and dreams\",\n \"care for people in distress\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 260,\n \"to\": 264\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 280,\n \"to\": 283\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente para a casa 12: 258–301; adotado: 260–264 e 280–283, apenas fronteiras emocionais tênues, confusão de sentimentos, vividez de sentimentos/sonhos e cuidado. Receptividade não é tratada como mediunidade verificada; cuidado não promete cura nem profissão.\",\n \"Não foram adotadas práticas de proteção/reclusão, causas pré-natais/infantis, vidas passadas, problemas com mãe/filhos/mulheres, comunicação com mortos, amores secretos, fobias/complexos, institucionalização, feridas de encarnação ou correlações de carreira. Signo de Câncer na cúspide/interceptado não foi inferido. Imagens arquetípicas e sabedoria interna não foram usadas para cancelar o risco de confundir emoções.\",\n \"Livro inspecionado: 32648–32720. Identidade da casa 12 explícita em 32665; a continuação de inconsciente aparece separada em 32686–32688, entre linhas da casa 11. Nenhum claim do livro adotado; trechos intercalados não foram reconstruídos em uma abertura contínua.\",\n \"OCR no primário inclui Corno/Lua ruas/unia (260), Sem preceder (264), conciliar (281) e mão delas (286). Não se reconstruiu a intenção das expressões ambíguas; da linha 281 adota-se apenas a vividez explicitamente legível em 280–281, não um mecanismo de ocultação emocional.\"\n ]\n }\n },\n \"mercury\": {\n \"1\": {\n \"pt\": \"você tende a se tornar consciente de si e da vida por meio da curiosidade e das perguntas, com inclinação analítica e capacidade de conectar ideias. a maneira de pensar e agir varia conforme o signo e os aspectos, e você pode atribuir significado ao mundo a partir do que pensa dele.\",\n \"en\": \"you may become aware of yourself and life through curiosity and questions, with an analytical bent and an ability to connect ideas. your way of thinking and acting varies with sign and aspects, and you may assign meaning to the world through what you think of it.\",\n \"keywords\": {\n \"pt\": [\n \"curiosidade e perguntas\",\n \"inclinação analítica\",\n \"conexão entre ideias\",\n \"expressão condicionada por signo e aspectos\",\n \"significado atribuído pelo pensamento\"\n ],\n \"en\": [\n \"curiosity and questions\",\n \"analytical bent\",\n \"connecting ideas\",\n \"expression conditioned by sign and aspects\",\n \"meaning assigned through thought\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 304,\n \"to\": 309\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 317,\n \"to\": 318\n }\n ],\n \"reviewNotes\": [\n \"A variação por signo e aspectos foi preservada como condição geral; os exemplos específicos das linhas 310–316 não foram incluídos no texto final.\",\n \"A formulação sobre atribuir significado ao mundo foi mantida sem reproduzir o conselho da fonte para mudar atitudes.\",\n \"O livro foi inspecionado nas janelas 35721–35726 e 35793–35811; não foi adotado por redundância e por OCR/colunas intercaladas no material próximo.\"\n ]\n },\n \"2\": {\n \"pt\": \"se Mercúrio estiver bem aspectado, você pode mostrar habilidade com dinheiro e finanças. inventividade, destreza, flexibilidade e habilidade com as palavras podem ser recursos a desenvolver, enquanto conhecer o funcionamento do mundo físico pode trazer segurança.\",\n \"en\": \"if Mercury is well aspected, you may show skill with money and finances. inventiveness, dexterity, flexibility and skill with words may be qualities to develop, while understanding how the physical world works may bring security.\",\n \"keywords\": {\n \"pt\": [\n \"habilidade financeira condicionada a bons aspectos\",\n \"inventividade e destreza\",\n \"flexibilidade e uso das palavras\",\n \"segurança pelo conhecimento e aprendizagem\"\n ],\n \"en\": [\n \"financial skill conditioned by favorable aspects\",\n \"inventiveness and dexterity\",\n \"flexibility and use of words\",\n \"security through knowledge and learning\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 329,\n \"to\": 334\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 335,\n \"to\": 338\n }\n ],\n \"reviewNotes\": [\n \"A habilidade financeira permanece qualificada por 'se bem aspectado'; não se promete ganho.\",\n \"A redação sobre arbitrariedades e apostas foi omitida por ambiguidade/OCR e por não ser necessária para os claims finais.\",\n \"A frase das linhas 338–340 sobre Fogo/Terra e o tempo de compreensão pela experiência tem construção/OCR gramaticalmente danificada; foi omitida, sem reconstruir uma regra por signo.\",\n \"A fonte suplementar foi inspecionada nas janelas 35819–35832 e 35834–35860. Os blocos estão intercalados com conteúdo das casas 1 e 2 e têm lacunas OCR; não foram adotados.\",\n \"Foram omitidos exemplos de profissões, distribuição/produção de bens e afirmações sobre corpo ou posses como maior bem.\"\n ]\n },\n \"3\": {\n \"pt\": \"quando Mercúrio não está mal aspectado, você tende a ter intelecto vivo, espirituoso e observador, com comunicação e respostas rápidas e atenção a detalhes. você também pode selecionar fatos que apoiem o argumento que quer defender.\",\n \"en\": \"when Mercury is not badly aspected, you may have a lively, witty, and observant intellect, with quick communication and replies and attention to detail. you may also select facts that support the case you want to make.\",\n \"keywords\": {\n \"pt\": [\n \"intelecto vivo e espirituoso condicionado por aspectos\",\n \"observação e atenção a detalhes\",\n \"comunicação e respostas rápidas\",\n \"seleção de fatos favoráveis ao próprio argumento\"\n ],\n \"en\": [\n \"lively, witty intellect conditioned by aspects\",\n \"observation and attention to detail\",\n \"quick communication and replies\",\n \"selection of facts supporting one's own case\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 359,\n \"to\": 362\n }\n ],\n \"reviewNotes\": [\n \"Mantida explicitamente a condição: o intelecto vivo, espirituoso e observador é descrito quando Mercúrio não está mal aspectado.\",\n \"Preservado o traço menos confortável de selecionar fatos para apoiar o próprio argumento.\",\n \"Signo/aspectos e estilos de aprendizagem das linhas 347–358 não entraram no produto final; a discussão de dificuldades de aprendizagem permanece registrada nesta auditoria, não como claim do registro.\",\n \"O livro foi inspecionado na janela 35931–35955. O fragmento está intercalado e truncado por OCR; não foi adotado.\",\n \"Final review resolution: nonconventional minds in 354–356 are distinct from learning difficulties tied to Uranus/Neptune/Pluto aspects in 356–358. Neither omitted clause becomes a condition on all nonconventional thought; the adopted intellect condition is only the one in 359–360.\"\n ]\n },\n \"4\": {\n \"pt\": \"seu ambiente familiar pode valorizar o intelecto e a racionalidade, às vezes às custas dos sentimentos, do calor humano e do contato físico. se Mercúrio recebe aspectos difíceis na casa 4, podem ocorrer mais mudanças, brigas e amarguras no lar; atividades mentais e educativas também podem acontecer em casa.\",\n \"en\": \"your family environment may value intellect and rationality, sometimes at the expense of feelings, warmth and physical closeness. if Mercury receives difficult aspects in the fourth house, more changes, quarrels, and bitterness may occur at home; mental and educational activities may also take place there.\",\n \"keywords\": {\n \"pt\": [\n \"ambiente familiar intelectual ou acadêmico\",\n \"racionalidade às custas de sentimentos e calor humano\",\n \"conflito doméstico condicionado por aspectos difíceis\",\n \"atividades mentais e educativas em casa\"\n ],\n \"en\": [\n \"intellectual or academic family environment\",\n \"rationality at the expense of feelings and warmth\",\n \"domestic conflict conditioned by difficult aspects\",\n \"mental and educational activities at home\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 381,\n \"to\": 382\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 390,\n \"to\": 393\n }\n ],\n \"reviewNotes\": [\n \"A redação final preserva intelecto/racionalidade e o possível custo para sentimentos, calor humano e contato físico em 381–382, sem reconstruir o contraste ambíguo da palavra sensível. Ambiente familiar permanece possibilidade, não história universal.\",\n \"Condição preservada: mudanças, brigas e amarguras são associadas a aspectos difíceis de Mercúrio na casa 4.\",\n \"Atividades mentais e educativas em casa são claim distinto, apoiado pelas linhas 392–393.\",\n \"O título associa a seção a Gêmeos e Virgem no Fundo do Céu, mas esses paralelos de signo/ângulo não foram usados como significados automáticos de Mercúrio na casa 4.\",\n \"A fonte suplementar foi inspecionada nas janelas 35957–36015; as colunas estão intercaladas e fragmentárias, portanto nenhum claim suplementar foi adotado.\"\n ]\n },\n \"5\": {\n \"pt\": \"você pode usar hobbies, recreações e tentativas criativas para ampliar a consciência de si e do ambiente. a expressão artística pode ser um meio de pensar, sentir e comunicar, e a experiência pode ser melhor compreendida quando ganha forma em palavras, desenhos, canções ou danças.\",\n \"en\": \"you may use hobbies, recreation, and creative efforts to become more aware of yourself and your surroundings. artistic expression may be a way to think, feel, and communicate, and experience may be better understood when shaped into words, drawings, songs, or dances.\",\n \"keywords\": {\n \"pt\": [\n \"hobbies\",\n \"recreações\",\n \"consciência de si\",\n \"expressão artística\",\n \"pensar\",\n \"sentir\",\n \"comunicar\",\n \"palavras\",\n \"desenhos\",\n \"canções\",\n \"danças\"\n ],\n \"en\": [\n \"hobbies\",\n \"recreation\",\n \"self-awareness\",\n \"artistic expression\",\n \"think\",\n \"feel\",\n \"communicate\",\n \"words\",\n \"drawings\",\n \"songs\",\n \"dances\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 407,\n \"to\": 412\n }\n ],\n \"reviewNotes\": [\n \"Não foram adotados exemplos de pessoas nomeadas nem os trechos sobre romance, filhos, profissões ou Gêmeos/Virgem na cúspide/contidos na casa; são passagens distintas, não atributos automáticos de Mercúrio na casa.\"\n ]\n },\n \"6\": {\n \"pt\": \"você pode adquirir conhecimento ao lidar com o cotidiano e o corpo, mas também sentir uma necessidade excessiva de se manter ocupado, dispersando tempo em atividades que não levam a lugar algum. o trabalho tende a ser mais adequado quando é mentalmente cativante.\",\n \"en\": \"you may acquire knowledge through daily life and the body, while also feeling an excessive need to keep busy and scattering time across activities that lead nowhere. work tends to suit you better when it is mentally engaging.\",\n \"keywords\": {\n \"pt\": [\n \"conhecimento no cotidiano\",\n \"corpo\",\n \"excesso de necessidade de se manter ocupado\",\n \"tempo desperdiçado\",\n \"atividades sem resultado\",\n \"trabalho mentalmente cativante\"\n ],\n \"en\": [\n \"knowledge through daily life\",\n \"body\",\n \"excessive need to keep busy\",\n \"wasted time\",\n \"activities leading nowhere\",\n \"mentally engaging work\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 436,\n \"to\": 438\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 457,\n \"to\": 460\n }\n ],\n \"reviewNotes\": [\n \"A aprendizagem pelo cotidiano e pelo corpo é descrita sem afirmação diagnóstica, terapêutica ou prescritiva. Preservada a tensão entre necessidade excessiva de ocupação e atividades sem resultado, junto da preferência por trabalho mentalmente cativante. Mobilidade é mencionada com ressalva específica para Gêmeos na cúspide da casa 6 (linhas 460–461) e precisão/atenção a detalhes para Virgem (461–463); nenhuma foi generalizada como efeito de Mercúrio na casa. Omitidas alegações e recomendações de saúde.\",\n \"Final review resolution: mentally engaging work is supported at physical line 460 independently of the following Gemini-cusp movement clause. Adopted body/daily learning at 436–438 remains descriptive, not medical advice.\"\n ]\n },\n \"7\": {\n \"pt\": \"você tende a aprender pelo contato com outras pessoas e também a ensinar e compartilhar ideias, buscando entender o que elas pensam. algumas pessoas com essa posição tentam fazer outra pessoa pensar, falar e tomar decisões por elas.\",\n \"en\": \"you tend to learn through contact with other people and also to teach and share ideas, seeking to understand what they think. some people with this placement try to get another person to think, speak, and make decisions for them.\",\n \"keywords\": {\n \"pt\": [\n \"aprender pelo contato\",\n \"ensinar\",\n \"compartilhar ideias\",\n \"entender o que os outros pensam\",\n \"projeção\",\n \"outra pessoa tomar decisões\"\n ],\n \"en\": [\n \"learning through contact\",\n \"teaching\",\n \"sharing ideas\",\n \"understanding others’ thoughts\",\n \"projection\",\n \"another person making decisions\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 467,\n \"to\": 472\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 475,\n \"to\": 478\n }\n ],\n \"reviewNotes\": [\n \"A fonte também descreve atrair alguém alienado, pouco confiável ou difícil de dominar e associa a essa segunda possibilidade um ganho secundário de não ser subjugado (linhas 475–478). Essa associação não foi incluída porque não se aplica claramente à tentativa de terceirizar pensamento, fala e decisões; o registro mantém somente a primeira tendência.\"\n ]\n },\n \"8\": {\n \"pt\": \"você pode se sentir levado a investigar o que está oculto ou menos óbvio, observando os intercâmbios entre as pessoas e explorando segredos e mistérios. também pode preferir manter seus próprios pensamentos e motivações em segredo, e voltar a mente para investigações e trabalhos de pesquisa.\",\n \"en\": \"you may feel drawn to investigate what is hidden or less obvious, observing exchanges between people and exploring secrets and mysteries. you may also prefer to keep your own thoughts and motives secret and turn your mind toward investigation and research.\",\n \"keywords\": {\n \"pt\": [\n \"investigar\",\n \"oculto\",\n \"menos óbvio\",\n \"intercâmbios\",\n \"segredos\",\n \"mistérios\",\n \"manter pensamentos e motivações em segredo\",\n \"trabalhos de pesquisa\"\n ],\n \"en\": [\n \"investigate\",\n \"hidden\",\n \"less obvious\",\n \"exchanges\",\n \"secrets\",\n \"mysteries\",\n \"keeping thoughts and motives secret\",\n \"research\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 493,\n \"to\": 502\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 512,\n \"to\": 513\n }\n ],\n \"reviewNotes\": [\n \"Adotadas curiosidade investigativa, sigilo dos próprios pensamentos/motivações e pesquisa. O texto também diz que a pessoa pode ser fria e distante em assuntos que provocam paixão e medo (linhas 512–513); essa característica desconfortável foi omitida por limite de concisão e não substituída por traço positivo. Excluídos finanças, sexualidade, saúde, contratos, morte e recomendações. Referências a Mercúrio ou Virgem na casa (512) não foram convertidas em afirmações automáticas específicas sobre Virgem.\",\n \"Final review resolution: Mercúrio ou Virgem at physical 512 explicitly includes Mercury alone. Research is retained without an invented additional Virgo condition; the source teaches that trait jointly for either placement.\"\n ]\n },\n \"9\": {\n \"pt\": \"você pode buscar uma perspectiva mais ampla da existência pelo estudo, pela leitura e por viagens, com vontade de ensinar e compartilhar descobertas. se Mercúrio estiver mal aspectado, pode haver adesão fanática às próprias crenças ou versões da verdade.\",\n \"en\": \"you may seek a broader perspective on existence through study, reading and travel, with a desire to teach and share discoveries. if Mercury is poorly aspected, there may be fanatical adherence to your own beliefs or versions of truth.\",\n \"keywords\": {\n \"pt\": [\n \"perspectiva ampla\",\n \"estudo e leitura\",\n \"viagens\",\n \"ensino e compartilhamento de descobertas\",\n \"fanatismo sob maus aspectos de Mercúrio\"\n ],\n \"en\": [\n \"broad perspective\",\n \"study and reading\",\n \"travel\",\n \"teaching and sharing discoveries\",\n \"fanaticism under difficult Mercury aspects\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 521,\n \"to\": 527\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 529,\n \"to\": 530\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente: 517–539. Adotado: 521–527 e 529–530, apenas ampliação da perspectiva, estudo/leitura/viagens, desejo de ensinar/compartilhar e fanatismo explicitamente condicionado a Mercúrio mal aspectado. Viagens e ensino são interesses possíveis, não eventos ou carreira garantidos.\",\n \"Não foram adotados parentes distantes, influência de grande viagem, fofocas/desavenças familiares ou profissões listadas. Gêmeos/Virgem na casa 9 em 535–539 são fatores separados e não foram convertidos em características de Mercúrio na casa.\",\n \"A sequência 530–531 afirma que fatos favoráveis à crença são aceitos e que outras crenças também são bem vistas, em tensão com o alerta de fanatismo. Não foi reconstruída uma negação ausente nem adotado um mecanismo de seleção de fatos.\",\n \"Livro inspecionado: 36265–36330. Identidade da casa 9 explícita no corpo em 36292/36296, com continuação 36300–36301, mas intercalada à casa 10. Nenhuma afirmação do livro foi adotada; não se recompuseram colunas para acrescentar traços.\"\n ]\n },\n \"10\": {\n \"pt\": \"você pode aprender sobre si e sobre o ambiente ao buscar uma carreira e perseguir ambições profissionais. também pode querer parecer brilhante, inteligente e capaz e ser lembrado por essas qualidades.\",\n \"en\": \"you may learn about yourself and your surroundings while seeking a career and pursuing professional ambitions. you may also want to appear bright, intelligent and capable and be remembered for those qualities.\",\n \"keywords\": {\n \"pt\": [\n \"aprendizado sobre si e o ambiente\",\n \"busca de carreira\",\n \"ambições profissionais\",\n \"desejo de parecer brilhante, inteligente e capaz e ser lembrado por essas qualidades\"\n ],\n \"en\": [\n \"learning about yourself and your surroundings\",\n \"career search\",\n \"professional ambitions\",\n \"desire to appear bright, intelligent and capable and be remembered for those qualities\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 545,\n \"to\": 548\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente: 540–561. Adotado: 545–548; aprendizado no percurso profissional em 545–547 e desejo de parecer brilhante, inteligente e capaz e ser lembrado por essas qualidades em 547–548. A formulação descreve um desejo de imagem e lembrança, não garantia de prestígio, emprego ou sucesso.\",\n \"A lista de profissões em 542–545 não foi convertida em destino. A interpretação da casa 10 como mãe é explicitamente condicional em 549; relatos sobre mãe, instabilidade mental e conflitos de comunicação sob aspectos duros em 549–556 não foram universalizados nem adotados.\",\n \"Gêmeos/Virgem no Meio do Céu, na cúspide ou na casa 10 em 540 e 557–561 são passagens distintas. Não se inferiu signo de ângulo, múltiplas carreiras, perfeccionismo no trabalho, história familiar ou equivalência MC=10 a partir de Mercúrio na casa.\",\n \"Livro inspecionado: 36265–36330. Casa 10 identificada no corpo em 36294/36298, com fragmento de comunicação estratégica em carreira e continuação deslocada em 36303 e 36325–36326. Nenhuma afirmação suplementar adotada; negociação/persuasão não foram acrescentadas por proximidade do cabeçalho.\",\n \"Final precision resolution: desire to appear bright, intelligent and capable and be remembered for those qualities is preserved at 547–548, rather than shifted to achieved recognition.\"\n ]\n },\n \"11\": {\n \"pt\": \"você pode ampliar a compreensão de si e da vida pela troca de ideias com amigos e grupos de interesses comuns. se você projetar Mercúrio nos amigos, pode procurar alguém que pense e tome decisões por você.\",\n \"en\": \"you may broaden your understanding of yourself and life by exchanging ideas with friends and groups with shared interests. if you project Mercury onto friends, you may seek someone to think and make decisions for you.\",\n \"keywords\": {\n \"pt\": [\n \"compreensão de si e da vida\",\n \"troca de ideias\",\n \"amigos e interesses comuns\",\n \"projeção de Mercúrio nos amigos\",\n \"pensamento e decisões delegados sob projeção\"\n ],\n \"en\": [\n \"understanding of yourself and life\",\n \"exchange of ideas\",\n \"friends and shared interests\",\n \"projection of Mercury onto friends\",\n \"delegated thinking and decisions under projection\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 564,\n \"to\": 569\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 580,\n \"to\": 581\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente: 562–591. Adotado: 564–569 e 580–581. Amizades/grupos ampliam perspectiva por troca intelectual; procurar amigo que pense/decida pela pessoa permanece condicionado à projeção de Mercúrio nos companheiros, não regra universal.\",\n \"Não foram adotados o exemplo de estudo de astrologia como prática, problemas condicionados com comunicação grupal em 570–571, promessas de liderança/porta-voz, amigo não confiável, histórias com irmãos ou alcance garantido de metas.\",\n \"Gêmeos na cúspide e Virgem na casa 11 em 585–591 têm descrições próprias e não foram incorporados a Mercúrio na casa. O asterisco em ventiladas na linha 569 e a pontuação irregular não foram usados para criar conteúdo.\",\n \"Livro inspecionado: 36417–36490. Casa 11 explícita no corpo em 36431/36439–36440; linhas de casa 12 se intercalam desde 36433. Nenhuma afirmação do livro adotada; não se recompôs a continuação fragmentada sobre liderança social.\",\n \"Final clarity resolution: se você projetar Mercúrio nos amigos keeps the projection condition explicit; delegated thinking/decisions are not asserted for every Mercury-house-11 reader.\"\n ]\n },\n \"12\": {\n \"pt\": \"você pode buscar uma ponte entre o consciente e o inconsciente, mas ter dificuldade para distinguir seus pensamentos dos que vêm de outras pessoas. se Mercúrio não estiver muito mal aspectado, pode haver uma imaginação viva.\",\n \"en\": \"you may seek a bridge between the conscious and unconscious mind, yet have difficulty distinguishing your thoughts from those coming from other people. if Mercury is not very poorly aspected, there may be a vivid imagination.\",\n \"keywords\": {\n \"pt\": [\n \"ponte entre consciente e inconsciente\",\n \"fronteiras do pensamento\",\n \"distinção entre pensamentos próprios e alheios\",\n \"imaginação viva condicionada aos aspectos de Mercúrio\"\n ],\n \"en\": [\n \"bridge between conscious and unconscious\",\n \"boundaries of thought\",\n \"distinguishing your thoughts from others’\",\n \"vivid imagination conditional on Mercury aspects\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 596,\n \"to\": 598\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 619,\n \"to\": 621\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 624,\n \"to\": 625\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente: 592–651. Adotado: 596–598, 619–621 e 624–625, apenas ponte consciente/inconsciente, dificuldade de reconhecer autoria dos pensamentos e imaginação viva sob a condição exata de Mercúrio não muito mal aspectado. Não se trocou essa ressalva por Mercúrio bem aspectado nem se prometeu capacidade psíquica.\",\n \"Não foram adotados procedimentos de exploração do inconsciente, psicoterapia/interpretação de sonhos como instruções, causas infantis/vidas passadas, colapso mental, paranoia/diagnósticos, pensamentos intrusivos, dissimulação, habilidade de cura, dificuldades clínicas/aprendizado, sacrifícios familiares, profissões, pessoas nomeadas ou promessa de transformar obstáculos em bênçãos.\",\n \"Gêmeos/Virgem na cúspide da casa 12 em 644–651 são fatores separados, não características automaticamente derivadas de Mercúrio na casa. OCR em remos imaginários, salválos, frases truncadas de 607–611 e auto sustentação não foi reconstruído.\",\n \"Livro inspecionado: 36417–36490. Casa 12 explícita no corpo em 36433–36437; a continuação de nuances emocionais está em 36445/36449, entre linhas da casa 11. Nenhuma afirmação do livro adotada; sensibilidade/empatia suplementares não substituem a tensão de fronteiras do pensamento no curso.\"\n ]\n }\n },\n \"venus\": {\n \"1\": {\n \"pt\": \"você tende a se relacionar com sensibilidade, refinamento e boa vontade, mas pode tentar agradar a todos e se perder nessa tentativa. se não consegue primeiro se aceitar, pode buscar elogios e atenção ou manipular os outros para preencher essa falta.\",\n \"en\": \"you may relate to others with sensitivity, refinement, and goodwill, but you may try to please everyone and lose yourself in that effort. if you cannot first accept yourself, you may seek praise and attention or manipulate others to fill that lack.\",\n \"keywords\": {\n \"pt\": [\n \"sensibilidade e refinamento nas relações\",\n \"risco de se perder ao tentar agradar a todos\",\n \"busca condicional por elogios e atenção\",\n \"manipulação condicional para preencher falta de autoaceitação\"\n ],\n \"en\": [\n \"sensitivity and refinement in relating\",\n \"risk of losing oneself while trying to please everyone\",\n \"conditional pursuit of praise and attention\",\n \"conditional manipulation to fill a lack of self-acceptance\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 656,\n \"to\": 659\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 663,\n \"to\": 665\n }\n ],\n \"reviewNotes\": [\n \"A busca por elogios/atenção e a manipulação estão condicionadas à falta de autoaceitação no texto-fonte.\",\n \"Não foram adotadas as alegações de beleza física/atração garantida, sedução, traição, infância harmoniosa ou otimismo; a formulação normativa sobre amar/respeitar a si foi convertida em descrição condicional, sem instrução.\",\n \"O livro foi inspecionado nas janelas 39331–39420 e 39429–39450; colunas intercaladas e material de casas 1/2, sem claim suplementar adotado.\"\n ]\n },\n \"2\": {\n \"pt\": \"você pode valorizar dinheiro pela segurança e pelo acesso ao que considera belo e valioso, e sentir bem-estar ao se cercar de coisas que considera de bom gosto. seus recursos podem incluir senso de justiça e tato diplomático; numa expressão mais desenvolvida dessa posição, você pode apreciar a beleza, a razão e o propósito de coisas que outras pessoas desprezam.\",\n \"en\": \"you may value money for security and access to what you consider beautiful and valuable, and feel well when surrounded by things you consider tasteful. your resources may include a sense of justice and diplomatic tact; in a more developed expression of this placement, you may appreciate beauty, reason and purpose in things others dismiss.\",\n \"keywords\": {\n \"pt\": [\n \"dinheiro associado a segurança e beleza\",\n \"bem-estar ligado ao bom gosto\",\n \"senso de justiça\",\n \"tato diplomático\",\n \"apreciação ampliada condicionada a Vênus mais desenvolvida\"\n ],\n \"en\": [\n \"money linked with security and beauty\",\n \"well-being linked with good taste\",\n \"sense of justice\",\n \"diplomatic tact\",\n \"broader appreciation conditioned on a more developed Venus\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 678,\n \"to\": 684\n }\n ],\n \"reviewNotes\": [\n \"Não foi incluída a afirmação de que dinheiro não seria um problema nem previsões de renda/profissão das linhas 685–688.\",\n \"Touro/Libra na casa 2, linhas 689–694, são descrições separadas de signos na casa; não foram tratadas como significados automáticos de Vênus na casa 2.\",\n \"O livro foi inspecionado nas janelas 39335–39420 e 39443–39455; blocos intercalados entre casas 1/2, não adotados.\",\n \"Final coordinator resolution: direct personal voice retains the more-developed-expression qualification at 681–683. Broader appreciation is not universal or an assertion that the planet itself appreciates; justice/tact remain possible resources at 684.\"\n ]\n },\n \"3\": {\n \"pt\": \"quando Vênus não está embaraçada por aspectos difíceis, você pode se comunicar com facilidade e fluência, sem impor suas ideias. você pode ser sensível às necessidades de quem está ao redor, embora algumas pessoas com essa posição digam apenas o que acham que agradará aos outros.\",\n \"en\": \"when Venus is not hindered by difficult aspects, you may communicate with ease and fluency without imposing your ideas. you may be sensitive to the needs of people around you, though some people with this placement say only what they think will please others.\",\n \"keywords\": {\n \"pt\": [\n \"comunicação fácil e fluente condicionada por aspectos\",\n \"comunicação não impositiva\",\n \"sensibilidade às necessidades alheias\",\n \"agradar aos outros em alguns casos\"\n ],\n \"en\": [\n \"easy, fluent communication conditioned by aspects\",\n \"non-imposing communication\",\n \"sensitivity to others' needs\",\n \"people-pleasing in some cases\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 697,\n \"to\": 700\n }\n ],\n \"reviewNotes\": [\n \"A fluência e a comunicação não impositiva permanecem condicionadas a Vênus não estar embaraçada por aspectos difíceis. A tentativa de agradar é atribuída somente a algumas pessoas.\",\n \"A fonte condiciona a experiência educacional a Vênus não estar mal aspectada nas linhas 705–706, mas esse claim não foi incluído no registro.\",\n \"Signos Touro/Libra na casa/cúspide, linhas 710–715, foram mantidos separados da interpretação de Vênus na casa 3.\",\n \"O livro foi inspecionado na janela 39468–39525; embora o cabeçalho diga casa 4, o corpo mistura conteúdo de casas 3 e 4. Nenhum claim suplementar foi adotado.\"\n ]\n },\n \"4\": {\n \"pt\": \"você tende a valorizar a paz e a harmonia no ambiente doméstico e pode ter dificuldade em viver com discórdia e tensão. diante de problemas, pode tentar reconciliar as diferenças ou simplesmente ignorá-los; cozinhar, decorar e cuidar do jardim podem trazer satisfação no lar.\",\n \"en\": \"you may value peace and harmony at home and find it difficult to live with discord and tension. when problems arise, you may try to reconcile differences or simply ignore them; cooking, decorating, and gardening may bring satisfaction at home.\",\n \"keywords\": {\n \"pt\": [\n \"valorização da paz e harmonia doméstica\",\n \"dificuldade com discórdia e tensão\",\n \"reconciliação ou evasão de problemas\",\n \"satisfação em atividades domésticas\"\n ],\n \"en\": [\n \"valuing peace and harmony at home\",\n \"difficulty with discord and tension\",\n \"reconciling or avoiding problems\",\n \"satisfaction in domestic activities\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 718,\n \"to\": 722\n }\n ],\n \"reviewNotes\": [\n \"Preservada a tensão da fonte: pode haver esforço para reconciliar diferenças ou para esquecer/ignorar os problemas.\",\n \"Não foram adotadas a promessa condicional de conforto nos últimos anos de vida nem as projeções sobre pai, rivalidade, ciúme ou herança familiar das linhas 723–731.\",\n \"Touro/Libra no Fundo do Céu ou na casa 4, linhas 732–743, são trechos de signo/ângulo e não foram fundidos com Vênus na casa 4.\",\n \"O livro foi inspecionado na janela 39468–39525; o texto sob o cabeçalho da casa 4 intercala corpo identificado como casa 3 e fragmentos da casa 4, sem continuidade confiável. Não adotado.\"\n ]\n },\n \"5\": {\n \"pt\": \"você pode sentir uma necessidade natural de se expressar de modo criativo ou artístico, encontrando realização pessoal nesse canal. romances podem ocupar lugar prioritário, e hobbies e atividades recreativas também têm destaque.\",\n \"en\": \"you may feel a natural need to express yourself creatively or artistically, finding personal fulfillment through that outlet. romance may rank among your priorities, and hobbies and recreational activities also feature strongly.\",\n \"keywords\": {\n \"pt\": [\n \"expressão criativa\",\n \"expressão artística\",\n \"realização pessoal\",\n \"romances\",\n \"prioridades\",\n \"hobbies\",\n \"atividades recreativas\"\n ],\n \"en\": [\n \"creative expression\",\n \"artistic expression\",\n \"personal fulfillment\",\n \"romance\",\n \"priorities\",\n \"hobbies\",\n \"recreational activities\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 746,\n \"to\": 747\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 758,\n \"to\": 761\n }\n ],\n \"reviewNotes\": [\n \"A ressalva sobre aspectos muito difíceis dos planetas trans-saturninos (linhas 752–754) só modifica a afirmação separada sobre classe pessoal e gosto que agradam/atraem pessoas; essa afirmação não foi adotada. Omitidos conselhos de prática, filhos, rivalidade e exemplos nomeados.\",\n \"Final bilingual resolution: romance may rank among priorities matches the primary frequent priority emphasis at 758–761, without promising a romance or imposing the omitted trans-Saturnian condition on this separate theme.\"\n ]\n },\n \"6\": {\n \"pt\": \"você pode ter prazer em desenvolver e aprimorar talentos, querendo que o trabalho seja feito muito bem e valorizando uma atmosfera harmoniosa no trabalho. você pode gostar de tarefas cotidianas e, em alguns casos, tornar-se obsessivo com pequenos detalhes.\",\n \"en\": \"you may enjoy developing and refining your talents, wanting work to be done very well and valuing a harmonious atmosphere at work. you may enjoy everyday tasks and, in some cases, become obsessive about small details.\",\n \"keywords\": {\n \"pt\": [\n \"desenvolver talentos\",\n \"aprimorar habilidades\",\n \"trabalho muito bem feito\",\n \"atmosfera harmoniosa\",\n \"tarefas cotidianas\",\n \"obsessividade com detalhes\"\n ],\n \"en\": [\n \"developing talents\",\n \"refining skills\",\n \"work done very well\",\n \"harmonious atmosphere\",\n \"everyday tasks\",\n \"obsessiveness about details\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 782,\n \"to\": 788\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 792,\n \"to\": 794\n }\n ],\n \"reviewNotes\": [\n \"“Alguns” conserva o escopo limitado da observação sobre obsessividade. Omitidas as passagens sobre saúde e corpo. Touro/Libra na casa 6 nas linhas 798–802 são condições de signo, não generalizadas como atributos de Vênus na casa.\"\n ]\n },\n \"7\": {\n \"pt\": \"você pode depender do olhar de outra pessoa para reconhecer sua beleza e seu valor e só se sentir completo quando está em uma relação. as expectativas que projeta no parceiro podem levar a desapontamento e crítica quando ele não corresponde à imagem idealizada.\",\n \"en\": \"you may depend on another person’s view to recognize your beauty and worth and feel complete only when you are in a relationship. expectations you project onto a partner may lead to disappointment and criticism when they do not match the idealized image.\",\n \"keywords\": {\n \"pt\": [\n \"depender do olhar de outra pessoa\",\n \"reconhecer beleza e valor\",\n \"sentir-se completo apenas em uma relação\",\n \"expectativas projetadas\",\n \"desapontamento\",\n \"crítica\",\n \"idealização\"\n ],\n \"en\": [\n \"depending on another person’s view\",\n \"recognizing beauty and worth\",\n \"feeling complete only in a relationship\",\n \"projected expectations\",\n \"disappointment\",\n \"criticism\",\n \"idealization\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 805,\n \"to\": 810\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 813,\n \"to\": 815\n }\n ],\n \"reviewNotes\": [\n \"A fonte associa a sensação de completude ao envolvimento em relação; o texto descreve essa dependência sem prometer um resultado da relação. A condição de Saturno/Plutão em 816–817 qualifica a necessidade de aceitar o trabalho duro da relação, uma ideia omitida por ser formulada como lição/admoestação.\",\n \"Final review resolution: only feeling complete in a relationship is a dependency theme, not a promise of a happier relationship. Disappointment/criticism at 813–815 remains distinct from omitted Saturn/Pluto hard-work advice at 816–817.\"\n ]\n },\n \"8\": {\n \"pt\": \"você pode se preocupar com o que acontece entre as pessoas e querer que aquilo que é compartilhado ou trocado seja belo, apropriado, benéfico e valioso. pode também amar o misterioso e o esotérico, com desejo de sondar o que está escondido ou é sutil.\",\n \"en\": \"you may care about what happens between people and want what is shared or exchanged to be beautiful, appropriate, beneficial, and valuable. you may also love the mysterious and esoteric, with a desire to probe what is hidden or subtle.\",\n \"keywords\": {\n \"pt\": [\n \"o que acontece entre as pessoas\",\n \"compartilhado\",\n \"trocado\",\n \"belo\",\n \"apropriado\",\n \"benéfico\",\n \"valioso\",\n \"misterioso\",\n \"esotérico\",\n \"sondar o escondido e o sutil\"\n ],\n \"en\": [\n \"what happens between people\",\n \"shared\",\n \"exchanged\",\n \"beautiful\",\n \"appropriate\",\n \"beneficial\",\n \"valuable\",\n \"mysterious\",\n \"esoteric\",\n \"probing the hidden and subtle\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 832,\n \"to\": 833\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 842,\n \"to\": 843\n }\n ],\n \"reviewNotes\": [\n \"Omitidas acumulação financeira, casamento/heranças, sedução/sexo e alegações sobre efeitos em parceiros. Touro/Libra na cúspide ou contidos na casa 8 (846–851) não foram generalizados como efeitos de Vênus na casa.\"\n ]\n },\n \"9\": {\n \"pt\": \"você pode apreciar a filosofia, a religião e a diversidade de costumes de outras culturas. sua expectativa de um divino justo e equitativo pode ser elevada, e a correspondência a esse ideal depende dos aspectos de Vênus e de outros posicionamentos na casa 9.\",\n \"en\": \"you may appreciate philosophy, religion and the diversity of customs in other cultures. your expectation of a just and fair divine presence may be high, and whether that ideal is met depends on Venus’s aspects and other placements in the ninth house.\",\n \"keywords\": {\n \"pt\": [\n \"apreciação filosófica e religiosa\",\n \"diversidade cultural\",\n \"ideal de um divino justo e equitativo\",\n \"aspectos de Vênus e outros posicionamentos na casa 9\"\n ],\n \"en\": [\n \"philosophical and religious appreciation\",\n \"cultural diversity\",\n \"ideal of a just and fair divine presence\",\n \"Venus aspects and other ninth-house placements\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 854,\n \"to\": 860\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 864,\n \"to\": 866\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente: 852–883. Adotado: 854–860 e 864–866, apenas apreciação de temas filosófico-religiosos/culturais e expectativas elevadas de justiça/equidade no divino com a ressalva exata de aspectos de Vênus e outros posicionamentos na casa 9. Não se promete fé pacífica, felicidade religiosa ou cumprimento do ideal.\",\n \"Não foram adotados experiências de viagem benéficas como promessa, casamento com estrangeiro, vocações de ensino/arte/escrita, pessoas nomeadas nem relações familiares favorecidas sob bons aspectos. Touro/Libra na casa 9 em 877–882 são fatores separados, não aliases de Vênus na casa.\",\n \"Livro inspecionado: 40030–40090. Identidade da casa 9 explícita no corpo em 40043–40049, além do cabeçalho 40042. Nenhum claim do livro adotado; seu foco em parceiros, expansão relacional e encontros em viagens não substitui o foco filosófico/religioso do curso nem vira destino conjugal.\"\n ]\n },\n \"10\": {\n \"pt\": \"você pode querer ser notado por sua beleza, gosto, graça ou classe. também pode desejar um trabalho harmonioso que valorize você, com pessoas de quem gosta, embora aspectos de Vênus possam dificultar a realização desses desejos.\",\n \"en\": \"you may want to be noticed for your beauty, taste, grace or class. you may also want harmonious work that values you, with people you like, although Venus’s aspects may make fulfilling these wishes more difficult.\",\n \"keywords\": {\n \"pt\": [\n \"desejo de ser notado por beleza e graça\",\n \"gosto e classe\",\n \"trabalho harmonioso desejado\",\n \"valorização no trabalho\",\n \"aspectos de Vênus e dificuldades de realização\"\n ],\n \"en\": [\n \"desire to be noticed for beauty and grace\",\n \"taste and class\",\n \"desired harmonious work\",\n \"being valued at work\",\n \"Venus aspects and difficulties in fulfillment\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 888,\n \"to\": 888\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 894,\n \"to\": 896\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente: 884–915. Adotado: 888 e 894–896. Beleza/gosto/graça/classe são qualidades pelas quais se deseja ser notado, não atributo garantido ou reconhecimento alcançado. Harmonia e valorização no trabalho são desejos; aspectos de Vênus podem indicar impedimentos, não garantia de carreira satisfatória.\",\n \"A expressão algo que a valorize em 895 foi mantida como trabalho que valorize você, sem inferir profissão, renda ou sucesso. Não foram adotados apresentação corporal, profissões, exemplos nomeados ou narrativas maternas/gênero/rivalidade. Touro/Libra no MC ou casa 10 em 904–915 são fatores distintos; não há inferência de signo angular nem equivalência automática MC=10.\",\n \"Livro inspecionado: 40030–40090 e 40145–40205. Identidade da casa 10 explícita no corpo em 40065–40073, além do título 40064. Nenhum claim do livro adotado; ambição relacional, parceiros bem-sucedidos ou intimidade profissional não foram importados. O trecho 40145 começa no meio de uma continuação; não foi reconstruído.\"\n ]\n },\n \"11\": {\n \"pt\": \"você pode ter inclinação a unir e cooperar com amigos e grupos, com possibilidade de influência positiva recíproca, embora aspectos de Vênus possam indicar impedimentos. em alguns casos, sua sensação de beleza pode depender da aceitação social, e ideais elevados de amizade podem trazer decepção quando não são compartilhados.\",\n \"en\": \"you may be inclined to connect and cooperate with friends and groups, with the possibility of mutual positive influence, although Venus’s aspects may indicate obstacles. in some cases, your sense of beauty may depend on social acceptance, and high ideals of friendship may bring disappointment when they are not shared.\",\n \"keywords\": {\n \"pt\": [\n \"cooperação com amigos e grupos\",\n \"influência positiva recíproca condicionada por aspectos\",\n \"sensação de beleza ligada à aceitação social\",\n \"ideais elevados de amizade\",\n \"decepção com ideais não compartilhados\"\n ],\n \"en\": [\n \"cooperation with friends and groups\",\n \"mutual positive influence qualified by aspects\",\n \"sense of beauty tied to social acceptance\",\n \"high ideals of friendship\",\n \"disappointment over unshared ideals\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 919,\n \"to\": 922\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 926,\n \"to\": 927\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 932,\n \"to\": 935\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente: 916–944. Adotado: 919–922, 926–927 e 932–935, apenas cooperação, influência recíproca sob ressalva de aspectos, aceitação social em alguns casos e decepção por ideais não compartilhados. O imperativo de encorajar/desenvolver cooperação não foi convertido em prática; resultado grupal positivo não é garantido.\",\n \"Energia social excessiva em 923–925 exige Vênus mal aspectada especificamente por Júpiter ou Netuno; esse tema foi omitido, não universalizado. Não foram adotadas escolha utilitária de amigos, rivalidade/competitividade, longevidade de amizade, romance decorrente de grupo ou passagens de Touro/Libra em 936–944.\",\n \"Livro inspecionado: 40145–40205, 40201–40245 e 40245–40315. Casa 11 explícita no corpo em 40206/40210–40215; casa 12 se intercala desde 40208. Nenhum claim do livro adotado; durabilidade de amizade, sociabilidade amorosa e mudanças sociais positivas não foram reconstruídas das colunas.\",\n \"OCR oposição do planeta por casa em 918 e sus na seção anterior não foi normalizado para criar mecanismo interpretativo adicional.\"\n ]\n },\n \"12\": {\n \"pt\": \"você pode ansiar por amor e beleza sem limites, com atração pelo sutil, oculto e intangível. você também pode exigir muito dos outros e sentir que a adoração de uma só pessoa não basta.\",\n \"en\": \"you may yearn for limitless love and beauty, with an attraction to the subtle, hidden and intangible. you may also ask a great deal of others and feel that one person’s adoration is not enough.\",\n \"keywords\": {\n \"pt\": [\n \"amor e beleza sem limites\",\n \"atração pelo sutil, oculto e intangível\",\n \"exigências excessivas sobre os outros\",\n \"insuficiência da adoração de uma só pessoa\"\n ],\n \"en\": [\n \"limitless love and beauty\",\n \"attraction to the subtle, hidden and intangible\",\n \"excessive demands on others\",\n \"one person’s adoration feeling insufficient\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 953,\n \"to\": 960\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 967,\n \"to\": 967\n }\n ],\n \"reviewNotes\": [\n \"Primário inspecionado integralmente: 945–993. Adotado: 953–960 e 967. Mantida a tensão entre busca ilimitada e exigências sobre outros/insuficiência de adoração individual. Não se promete realização amorosa, vínculo específico ou aperfeiçoamento pessoal por sofrimento.\",\n \"Não foram adotados mito gráfico, alegação de que dor/perda tornam alguém melhor, amar tudo como tarefa/prática, amores secretos/restritos, sacrifícios, histórias de instituições/confinamento, saúde/terapia, profissões, exemplos nomeados ou resultados artísticos. Touro/Libra na cúspide/casa 12 em 985–993 permanecem fatores separados.\",\n \"Livro inspecionado: 40145–40205, 40201–40245 e 40245–40315. Casa 12 explícita no corpo em 40208/40241–40245; há intercalamento extenso com casa 11. Nenhuma afirmação do livro adotada. Empatia/altruísmo, parceiros espirituais, retiro ou expressão artística não substituem as exigências e insatisfação do curso; não se reconstruiu continuidade de colunas.\",\n \"OCR amor abandonado (954), psicos-amor (961) e frases quebradas no fim da seção não foram reconstruídos para acrescentar características, métodos ou explicações causais.\",\n \"Root precision resolution: the second sentence directly associates asking much of others and one person’s adoration feeling insufficient (957–960), without inventing a causal link from the search for limitless beauty/love. Two sentences are retained.\"\n ]\n }\n },\n \"mars\": {\n \"1\": {\n \"pt\": \"você pode sentir raivas e agir precipitadamente antes que consiga conter a reação; na pior das hipóteses, pode ficar impaciente e furioso diante de obstáculos mínimos e sentir necessidade constante de provar seu poder. você também pode ser autêntico, espontâneo e tomar a iniciativa em vez de esperar que as coisas aconteçam.\",\n \"en\": \"you may feel anger and act precipitously before you can contain the reaction; at worst, you may grow impatient and furious over minimal obstacles and feel a constant need to prove your power. you may also be authentic and spontaneous, taking initiative instead of waiting for things to happen.\",\n \"keywords\": {\n \"pt\": [\n \"raiva e ações precipitadas\",\n \"impaciência diante de obstáculos mínimos no pior dos casos\",\n \"necessidade de provar poder\",\n \"autenticidade e espontaneidade\",\n \"tomar iniciativa\"\n ],\n \"en\": [\n \"anger and precipitous actions\",\n \"impatience over minimal obstacles in the worst case\",\n \"need to prove power\",\n \"authenticity and spontaneity\",\n \"taking initiative\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 997,\n \"to\": 1000\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1005,\n \"to\": 1009\n }\n ],\n \"reviewNotes\": [\n \"Mantida a qualificação 'na pior das hipóteses' para impaciência/fúria diante do mínimo obstáculo e necessidade de provar poder.\",\n \"Linhas 1001–1004 com recomendações de exercício, esporte e terapia corporal foram lidas e excluídas; não se converteu em prática/instrução.\",\n \"O livro foi inspecionado no segmento 43258–43700. O bloco identificado como casas 1/2 está intercalado e não foi adotado.\"\n ]\n },\n \"2\": {\n \"pt\": \"você pode sentir urgência em buscar dinheiro e posses e querer obter o que deseja imediatamente; uma abordagem rápida, impaciente e abrupta pode ser contraproducente. seus recursos podem incluir coragem e iniciativa para perseguir o que valoriza e defendê-lo, embora você possa impor esse valor aos demais.\",\n \"en\": \"you may feel urgency in pursuing money and possessions and want what you desire immediately; a fast, impatient, and abrupt approach may be counterproductive. your resources may include courage and initiative to pursue what you value and defend it, though you may impose that value on others.\",\n \"keywords\": {\n \"pt\": [\n \"urgência na busca de dinheiro e posses\",\n \"querer resultados imediatos\",\n \"abordagem impaciente e abrupta contraproducente\",\n \"coragem e iniciativa\",\n \"defender valores e impô-los aos demais\"\n ],\n \"en\": [\n \"urgency in pursuing money and possessions\",\n \"wanting immediate results\",\n \"impatient and abrupt approach can be counterproductive\",\n \"courage and initiative\",\n \"defending values and imposing them on others\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1031,\n \"to\": 1034\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1036,\n \"to\": 1046\n }\n ],\n \"reviewNotes\": [\n \"Preservados a urgência material, o contraponto de que modos rápidos/impacientes/abruptos podem ser contraproducentes e a tensão entre defender valores e forçá-los sobre outros.\",\n \"Não se recomendam riscos e não se promete renda, ganho ou prosperidade. As linhas 1032–1033 sobre correr riscos/sorte foram lidas, mas não adotadas como orientação.\",\n \"O livro foi inspecionado no segmento 43258–43700; o bloco de casa 2 está misturado a conteúdo da casa 1 e traz alegações financeiras não usadas.\"\n ]\n },\n \"3\": {\n \"pt\": \"você pode afirmar poder, vitalidade e existência por meio de palavras, opiniões, conhecimentos ou pontos de vista; sua mente tende a ser afiada e ativa, com capacidade para decisões rápidas. seu vocabulário ou habilidade verbal pode ser cortante e servir como arma, embora suas palavras também possam impulsionar outras pessoas à ação.\",\n \"en\": \"you may assert power, vitality, and existence through words, opinions, knowledge, or points of view; your mind may be sharp and active, capable of quick decisions. your vocabulary or verbal skill may be cutting and serve as a weapon, though your words may also spur other people to action.\",\n \"keywords\": {\n \"pt\": [\n \"afirmar poder por palavras e opiniões\",\n \"mente afiada e ativa\",\n \"decisões rápidas\",\n \"habilidade verbal cortante\",\n \"palavras que podem impulsionar outros à ação\"\n ],\n \"en\": [\n \"asserting power through words and opinions\",\n \"sharp and active mind\",\n \"quick decisions\",\n \"cutting verbal skill\",\n \"words that may spur others to action\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1055,\n \"to\": 1058\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1065,\n \"to\": 1069\n }\n ],\n \"reviewNotes\": [\n \"A formulação descreve a função afirmativa e cortante da fala e também seu potencial de mobilizar os outros, mantendo a tensão do trecho.\",\n \"As instruções sobre tato, dizer o que se pensa, escrever carta/rasgá-la e outras práticas das linhas 1058–1064 e 1072–1082 foram omitidas. Também foram omitidas alegações sobre parentes, infância e acidentes.\",\n \"O livro foi inspecionado no segmento 43258–43700. O cabeçalho/fragmentos de casa 3 aparecem intercalados com material de outras casas; não adotado.\"\n ]\n },\n \"4\": {\n \"pt\": \"você pode manter agressividade e raiva ocultas até que irrompam com intensidade. em casa e na vida pessoal, pode mostrar ansiedade, iniciativa, domínio e agressividade, e deslocar sua raiva latente para quem espera por você em casa.\",\n \"en\": \"you may keep aggression and anger hidden until they erupt intensely. at home and in your personal life, you may show anxiety, initiative, dominance, and aggression, and displace your latent anger onto those waiting for you at home.\",\n \"keywords\": {\n \"pt\": [\n \"agressividade e raiva ocultas\",\n \"irrupção intensa\",\n \"ansiedade e iniciativa na vida doméstica\",\n \"domínio e agressividade em casa\",\n \"deslocamento da raiva para pessoas em casa\"\n ],\n \"en\": [\n \"hidden aggression and anger\",\n \"intense eruption\",\n \"anxiety and initiative in domestic life\",\n \"dominance and aggression at home\",\n \"displacing anger onto people at home\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1092,\n \"to\": 1098\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1104,\n \"to\": 1114\n }\n ],\n \"reviewNotes\": [\n \"Mantida a raiva/agressividade oculta e a possibilidade de irrupção, além da afirmação de domínio/agressividade na vida doméstica e do deslocamento da raiva latente para quem está em casa.\",\n \"A analogia com os peixes e as formas de desviar a agressão nas linhas 1108–1116 não foi reproduzida. As alegações sobre pai/antepassado nas linhas 1117–1123 não foram adotadas.\",\n \"Áries no Fundo do Céu/casa 4 e as associações subsequentes das linhas 1124–1129 foram mantidas separadas de Marte na casa 4.\",\n \"O livro foi inspecionado no segmento 43258–43700. Há um cabeçalho de casa 4, mas os fragmentos corporais são intercalados com conteúdo de casa 3 e colunas incompletas; nenhum claim suplementar foi adotado.\"\n ]\n },\n \"5\": {\n \"pt\": \"você pode ter um espírito muito competitivo e querer se destacar até nas brincadeiras. na vida e na criatividade, pode sentir que não basta fazer algo, é preciso fazê-lo dramaticamente e de todo o coração.\",\n \"en\": \"you may have a strong competitive spirit and want to stand out even in play. in life and creativity, you may feel that doing something is not enough; it must be done dramatically and wholeheartedly.\",\n \"keywords\": {\n \"pt\": [\n \"espírito competitivo\",\n \"brincadeiras\",\n \"criatividade\",\n \"dramaticamente\",\n \"de todo o coração\"\n ],\n \"en\": [\n \"competitive spirit\",\n \"play\",\n \"creativity\",\n \"dramatically\",\n \"wholeheartedly\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1132,\n \"to\": 1138\n }\n ],\n \"reviewNotes\": [\n \"A renovação de romances é condicionada na fonte a não assustar outras pessoas com a intensidade e depende de aspectos e posicionamento de Marte no signo (1143–1148); foi omitida. Não foram adotados esportes ou façanhas físicas como instruções, nem conteúdo sobre filhos.\"\n ]\n },\n \"6\": {\n \"pt\": \"você tende a trabalhar com orgulho, atenção aos detalhes, desejo de independência nos assuntos diários e satisfação em concluir tarefas desafiadoras quando Marte está bem aspectado. com aspectos difíceis, sobretudo do Sol, Júpiter, Urano e especialmente Plutão, você pode mostrar pressa, raiva e impaciência com colegas, ao menos no começo.\",\n \"en\": \"you may work with pride, attention to detail, a desire for independence in daily matters, and satisfaction in completing challenging tasks when Mars is well aspected. with difficult aspects, especially from the Sun, Jupiter, Uranus, and particularly Pluto, you may show haste, anger, and impatience with coworkers, at least initially.\",\n \"keywords\": {\n \"pt\": [\n \"Marte bem aspectado\",\n \"orgulho no trabalho\",\n \"atenção aos detalhes\",\n \"independência\",\n \"tarefas desafiadoras\",\n \"aspectos difíceis\",\n \"Sol\",\n \"Júpiter\",\n \"Urano\",\n \"Plutão\",\n \"ao menos no começo\",\n \"pressa\",\n \"raiva\",\n \"impaciência com colegas\"\n ],\n \"en\": [\n \"well-aspected Mars\",\n \"pride in work\",\n \"attention to detail\",\n \"independence\",\n \"challenging tasks\",\n \"difficult aspects\",\n \"Sun\",\n \"Jupiter\",\n \"Uranus\",\n \"Pluto\",\n \"at least initially\",\n \"haste\",\n \"anger\",\n \"impatience with coworkers\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1174,\n \"to\": 1178\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1188,\n \"to\": 1190\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1160,\n \"to\": 1164\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1171,\n \"to\": 1173\n }\n ],\n \"reviewNotes\": [\n \"A oposição entre os modos romano e grego na fonte foi convertida em tendências comportamentais diretas, sem exigir que o leitor conheça a analogia mitológica. Mantida a condição: Marte bem aspectado tende ao padrão descrito em 1174–1178; aspectos difíceis, sobretudo os indicados em 1188–1190, podem acompanhar pressa e raiva (1160–1164) e impaciência com colegas (1171–1173), ao menos no começo. Omitidas alegações sobre dores, lesões, saúde/corpo e recomendações de trabalho.\"\n ]\n },\n \"7\": {\n \"pt\": \"você pode parecer tão forte que assusta outras pessoas ou, em alguns casos, atrair alguém assertivo para tomar decisões por você. depois, pode sentir ressentimento e raiva diante da autoridade dessa pessoa e tentar retomar o poder que antes cedeu.\",\n \"en\": \"you may seem so strong that you frighten other people or, in some cases, attract an assertive person to make decisions for you. later, you may feel resentment and anger toward that person’s authority and try to reclaim the power you had previously handed over.\",\n \"keywords\": {\n \"pt\": [\n \"parecer forte\",\n \"assustar outras pessoas\",\n \"atrair alguém assertivo\",\n \"decisões delegadas\",\n \"ressentimento\",\n \"raiva\",\n \"retomar o poder\"\n ],\n \"en\": [\n \"seeming strong\",\n \"frightening others\",\n \"attracting an assertive person\",\n \"delegated decisions\",\n \"resentment\",\n \"anger\",\n \"reclaiming power\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1202,\n \"to\": 1206\n }\n ],\n \"reviewNotes\": [\n \"A fonte apresenta padrões inversos/alternativos: algumas pessoas parecem fortes e assustam outras; inversamente, podem atrair alguém marciano/assertivo que assuma decisões. “Ou” evita afirmar que ambos precisam coexistir. O cabeçalho identifica casa 7, mas a abertura 1194–1201 contém “Na casa 5” e alegações sobre casamento; esse provável erro textual foi excluído, sem corrigir ou reconstruir a fonte. Adotadas as tendências qualificadas nas linhas 1202–1206. Não se generalizou conflito ou abuso a todas as relações.\"\n ]\n },\n \"8\": {\n \"pt\": \"você pode se dedicar intensamente a empreendimentos compartilhados; aspectos difíceis de Marte podem trazer conflitos com parceiros sobre bens comuns. também pode se deparar com emoções obscuras como inveja e ciúme, cuja transmutação construtiva depende em grande parte dos aspectos de Marte, e persistir em descobrir o que está escondido.\",\n \"en\": \"you may commit intensely to shared undertakings; difficult aspects to Mars may bring conflicts with partners over shared property. you may also encounter dark emotions such as envy and jealousy, whose constructive transformation depends largely on Mars’s aspects, and persist in uncovering what is hidden.\",\n \"keywords\": {\n \"pt\": [\n \"empreendimentos compartilhados\",\n \"aspectos difíceis\",\n \"conflitos com parceiros\",\n \"bens comuns\",\n \"emoções obscuras\",\n \"inveja\",\n \"ciúme\",\n \"transmutação construtiva condicionada aos aspectos\",\n \"persistência\",\n \"descobrir o escondido\"\n ],\n \"en\": [\n \"shared undertakings\",\n \"difficult aspects\",\n \"conflicts with partners\",\n \"shared property\",\n \"dark emotions\",\n \"envy\",\n \"jealousy\",\n \"constructive transformation conditioned by aspects\",\n \"persistence\",\n \"uncovering what is hidden\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1218,\n \"to\": 1219\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1224,\n \"to\": 1227\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1240,\n \"to\": 1244\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1248,\n \"to\": 1252\n }\n ],\n \"reviewNotes\": [\n \"Conflitos por bens comuns são explicitamente condicionados a aspecto difícil de Marte. A possibilidade de transmutar emoções obscuras é condicionada aos aspectos, sem promessa. A investigação persistente do que é oculto foi mantida como tendência. Omitidos resultados financeiros, sexuais, legais, heranças e práticas mediúnicas/ocultas.\"\n ]\n },\n \"9\": {\n \"pt\": \"você defende suas crenças filosóficas ou religiosas com zelo e pode tomar sua versão da verdade como a única. você pode buscar numa lei maior a justificativa para seus atos e partir para uma viagem por impulso.\",\n \"en\": \"you defend your philosophical or religious beliefs with zeal and may take your version of the truth as the only one. you may seek justification for your actions in a higher law and set off on a journey on impulse.\",\n \"keywords\": {\n \"pt\": [\n \"zelo\",\n \"crenças fortes\",\n \"justificação\",\n \"viagens impulsivas\"\n ],\n \"en\": [\n \"zeal\",\n \"strong beliefs\",\n \"justification\",\n \"impulsive travel\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"to\": 1271,\n \"from\": 1261\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"to\": 1276,\n \"from\": 1275\n }\n ],\n \"reviewNotes\": [\n \"O zelo não recebe condição de maus aspectos. Mantidas como possibilidades a exclusividade da verdade, a justificação e a viagem impulsiva; sem identidade criminosa, gênero, exemplos ou alegações de carreira. Suplemento inspecionado, não adotado.\",\n \"O livro inspecionado em 44085–44091 enfatiza abertura a diferentes crenças, enquanto a aula em 1261–1271 admite zelo e exclusividade da própria verdade; prevalece a fonte primária, sem combinar mecanicamente as ênfases.\"\n ]\n },\n \"10\": {\n \"pt\": \"você tem forte ambição e quer ser visto como alguém poderoso e digno de atenção. você pode entrar em conflito com superiores e autoridades.\",\n \"en\": \"you have strong ambition and want to be seen as someone powerful and worthy of attention. you may clash with superiors and authorities.\",\n \"keywords\": {\n \"pt\": [\n \"ambição\",\n \"poder\",\n \"reconhecimento\",\n \"conflito com autoridades\"\n ],\n \"en\": [\n \"ambition\",\n \"power\",\n \"recognition\",\n \"conflict with authority\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"to\": 1292,\n \"from\": 1289\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"to\": 1310,\n \"from\": 1309\n }\n ],\n \"reviewNotes\": [\n \"Omitida a expressão literal “os meios justificam os fins” (1297), sem invertê-la ou interpretá-la como autorização para qualquer meio. Omitidos exemplos, relação materna, recomendação profissional e equivalência com Áries no Meio do Céu. Suplemento inspecionado, não adotado.\"\n ]\n },\n \"11\": {\n \"pt\": \"você pode mobilizar um grupo para agir, mas ter dificuldade em conciliar suas ideias fortes com as opiniões dos outros. você pode usar o grupo como justificativa para atitudes que não tomaria por conta própria e transferir a ele sua responsabilidade.\",\n \"en\": \"you may mobilize a group to act yet struggle to reconcile your strong ideas with other people’s opinions. you may use the group to justify actions you would not take on your own and shift your responsibility onto it.\",\n \"keywords\": {\n \"pt\": [\n \"mobilização de grupos\",\n \"ideias fortes\",\n \"dificuldade de conciliação\",\n \"responsabilidade transferida\"\n ],\n \"en\": [\n \"group mobilization\",\n \"strong ideas\",\n \"difficulty compromising\",\n \"shifted responsibility\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"to\": 1325,\n \"from\": 1319\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"to\": 1336,\n \"from\": 1333\n }\n ],\n \"reviewNotes\": [\n \"A condição dos aspectos em 1317–1318 trata da recepção dos envolvimentos, não condiciona a dificuldade de compromisso. Omitidas recepção e metas de 1344–1348, sem converter resultados condicionados em benefícios gerais; omitidos conselhos, exemplos e amizades para manter foco. Suplemento inspecionado, não adotado.\"\n ]\n },\n \"12\": {\n \"pt\": \"sua agressividade pode aparecer como insatisfação vaga ou queixas sem ação, e você pode gastar energia em escapismos. você pode colocar sua força a serviço de outra pessoa ou de uma causa maior, mas isso também pode envolver abrir mão da responsabilidade pelos próprios atos.\",\n \"en\": \"your aggression may appear as vague dissatisfaction or complaints without action, and you may spend energy on escapism. you may put your strength at the service of another person or a greater cause, but this may also involve relinquishing responsibility for your own actions.\",\n \"keywords\": {\n \"pt\": [\n \"agressividade encoberta\",\n \"insatisfação\",\n \"escapismo\",\n \"serviço\",\n \"responsabilidade abdicada\"\n ],\n \"en\": [\n \"hidden aggression\",\n \"dissatisfaction\",\n \"escapism\",\n \"service\",\n \"relinquished responsibility\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"to\": 1359,\n \"from\": 1356\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"to\": 1367,\n \"from\": 1366\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"to\": 1373,\n \"from\": 1369\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"to\": 1379,\n \"from\": 1376\n }\n ],\n \"reviewNotes\": [\n \"Serviço preservado como possibilidade, com a qualificação de responsabilidade abdicada, sem promessa positiva. A faixa 1369–1373 contém a continuação da ressalva até “consequências desastrosas”; o exemplo pessoal que começa depois não foi adotado. Omitidos diagnósticos, saúde, exemplos nomeados, suicídio e investigação de sonhos; sem instruções. Suplemento inspecionado, não adotado.\"\n ]\n }\n },\n \"jupiter\": {\n \"1\": {\n \"pt\": \"você pode abordar a vida com entusiasmo inicial e inspirar ou despertar interesse nos outros. em alguns casos, uma autoimagem inflada pode levar você além das próprias capacidades, com inspiração sem concentração ou disciplina suficientes para concluir o que começou.\",\n \"en\": \"you may approach life with initial enthusiasm and inspire or awaken interest in others. in some cases, an inflated self-image may take you beyond your abilities, with inspiration lacking the concentration or discipline needed to finish what you began.\",\n \"keywords\": {\n \"pt\": [\n \"entusiasmo inicial\",\n \"inspirar e despertar interesse\",\n \"autoimagem inflada em alguns casos\",\n \"ir além das próprias capacidades\",\n \"inspiração sem concentração ou disciplina suficientes\"\n ],\n \"en\": [\n \"initial enthusiasm\",\n \"inspiring and awakening interest\",\n \"inflated self-image in some cases\",\n \"going beyond one's abilities\",\n \"inspiration without enough concentration or discipline\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1394,\n \"to\": 1398\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1416,\n \"to\": 1423\n }\n ],\n \"reviewNotes\": [\n \"As dificuldades de autoimagem, excesso em relação às capacidades e falta de disciplina aparecem como risco em alguns casos; a qualificação foi mantida.\",\n \"Linhas 1412–1415 foram lidas, mas não usadas: o texto mistura Júpiter na casa 12 e fala de aspectos sem uma atribuição clara à casa 1. Exemplos/categorias de profissões e atividades em 1398–1411 não foram adotados.\",\n \"O livro foi inspecionado nas janelas 47796–47935 e 47935–48025. Cabeçalhos e corpos misturam casas; nenhum claim suplementar foi adotado.\"\n ]\n },\n \"2\": {\n \"pt\": \"você pode buscar expandir recursos e posses para obter mais alegria e realização, e atribuir valor especial a objetos que inspiram ou simbolizam algo significativo. sua segurança pode estar ligada à abundância material ou ao conhecimento e a crenças; recursos internos também podem incluir entusiasmo e capacidade de inspirar outras pessoas.\",\n \"en\": \"you may seek to expand resources and possessions for greater joy and fulfillment, and place special value on objects that inspire or symbolize something meaningful. your sense of security may be tied to material abundance or to knowledge and beliefs; inner resources may also include enthusiasm and an ability to inspire others.\",\n \"keywords\": {\n \"pt\": [\n \"expansão de recursos e posses\",\n \"alegria e realização\",\n \"objetos com significado simbólico\",\n \"segurança material ou por conhecimento e crenças\",\n \"entusiasmo e capacidade de inspirar\"\n ],\n \"en\": [\n \"expansion of resources and possessions\",\n \"joy and fulfillment\",\n \"symbolically meaningful objects\",\n \"security through material abundance or knowledge and beliefs\",\n \"enthusiasm and ability to inspire\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1432,\n \"to\": 1437\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1447,\n \"to\": 1452\n }\n ],\n \"reviewNotes\": [\n \"A busca por expansão e a segurança material ou por conhecimento/crenças são descritas sem promessa de riqueza ou ganho.\",\n \"Aspectos tensos e esbanjamento/investimentos ruins, linhas 1443–1444, foram inspecionados, mas não adotados no registro.\",\n \"Linhas 1438–1446 incluem OCR/truncamento e uma afirmação de sucesso material com tensão sobre gastar rapidamente; não foram usadas como garantias.\",\n \"O livro foi inspecionado nas janelas 47935–48025. Os trechos de casas 1 e 2 estão intercalados e incluem alegações de prosperidade não adotadas.\"\n ]\n },\n \"3\": {\n \"pt\": \"no melhor dos casos, você pode comunicar aos outros pensamentos e palavras que inspiram e estimulam, e enquadrar acontecimentos específicos numa perspectiva ampla. no pior dos casos, pode falar mais pela quantidade do que pela qualidade; o conhecimento também pode despertar uma necessidade quase insaciável de aprender.\",\n \"en\": \"at best, you may communicate thoughts and words that inspire and stimulate others, and place specific events in a broad perspective. at worst, you may speak more for quantity than quality; knowledge may also awaken an almost insatiable need to learn.\",\n \"keywords\": {\n \"pt\": [\n \"inspiração e estímulo aos outros no melhor dos casos\",\n \"perspectiva ampla\",\n \"quantidade acima da qualidade no pior dos casos\",\n \"necessidade quase insaciável de aprender\"\n ],\n \"en\": [\n \"inspiring and stimulating others at best\",\n \"broad perspective\",\n \"quantity over quality at worst\",\n \"almost insatiable need to learn\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1459,\n \"to\": 1469\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1476,\n \"to\": 1479\n }\n ],\n \"reviewNotes\": [\n \"Os polos favorável e desfavorável da expressão verbal estão explicitamente qualificados como melhor e pior hipótese, respectivamente.\",\n \"A perspectiva ampla vem das linhas 1465–1469; a busca de aprendizagem quase insaciável, das linhas 1476–1479. Exemplos de leitura incompleta, interpretação excessiva de falas e relacionamento com parentes não foram adotados.\",\n \"O livro foi inspecionado nas janelas 48097–48100 e 48102–48134. O conteúdo sob o título de casa 3 estava próximo a material da casa 4; nenhum claim suplementar foi adotado.\"\n ]\n },\n \"4\": {\n \"pt\": \"você pode precisar de espaço em casa para construir um lar que corresponda às suas aspirações, e pode se voltar ao trabalho da alma e ao crescimento interior em vez de buscar reconhecimento público ou profissional. se Júpiter estiver bem aspectado, otimismo e fé na vida podem se tornar mais aparentes à medida que você amadurece.\",\n \"en\": \"you may need space at home to build a home that matches your aspirations, and may turn toward inner work and growth instead of seeking public or professional recognition. if Jupiter is well aspected, optimism and faith in life may become more apparent as you mature.\",\n \"keywords\": {\n \"pt\": [\n \"necessidade de espaço em casa\",\n \"lar alinhado às aspirações\",\n \"trabalho interior e crescimento\",\n \"otimismo e fé condicionados por bons aspectos\",\n \"otimismo mais aparente com a maturidade\"\n ],\n \"en\": [\n \"need for space at home\",\n \"home aligned with aspirations\",\n \"inner work and growth\",\n \"optimism and faith conditioned by favorable aspects\",\n \"optimism becoming more apparent with maturity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1505,\n \"to\": 1510\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1526,\n \"to\": 1527\n }\n ],\n \"reviewNotes\": [\n \"A casa/espaço e crescimento interior vêm das linhas 1505–1510. A condição para otimismo/fé é explícita: Júpiter bem aspectado, linhas 1526–1527.\",\n \"Não foi adotada a promessa de idade avançada com muitos interesses/ocupações da linha 1527 em diante, nem biografia familiar/aristocrática, figura paterna ou Sagitário no Fundo do Céu.\",\n \"O livro foi inspecionado nas janelas 48100–48101 e 48135–48220. O título identifica casa 4, mas as colunas do corpo estão misturadas com casa 3; não foi adotado.\"\n ]\n },\n \"5\": {\n \"pt\": \"você pode se expressar criativamente com audácia e amplitude, e cooperar com outras pessoas desde que continue sendo quem conduz a cena. hobbies e saídas artísticas podem ser satisfatórios se você permanecer nelas tempo suficiente para desenvolver conhecimento; com aspectos difíceis, excitação e entusiasmo excessivos podem prejudicar sua perspectiva sobre essas experiências.\",\n \"en\": \"you may express yourself creatively with boldness and expansiveness, and cooperate with others as long as you remain the one leading the show. hobbies and artistic pursuits may be satisfying if you stay with them long enough to develop knowledge; with difficult aspects, excessive excitement and enthusiasm may distort your perspective on these experiences.\",\n \"keywords\": {\n \"pt\": [\n \"expressão criativa\",\n \"audácia\",\n \"amplitude\",\n \"cooperar\",\n \"conduzir a cena\",\n \"hobbies\",\n \"saídas artísticas\",\n \"permanecer tempo suficiente\",\n \"desenvolver conhecimento\",\n \"aspectos difíceis\",\n \"excitação e entusiasmo excessivos\",\n \"perspectiva prejudicada\"\n ],\n \"en\": [\n \"creative expression\",\n \"boldness\",\n \"expansiveness\",\n \"cooperate\",\n \"lead the show\",\n \"hobbies\",\n \"artistic pursuits\",\n \"stay long enough\",\n \"develop knowledge\",\n \"difficult aspects\",\n \"excessive excitement and enthusiasm\",\n \"distorted perspective\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1540,\n \"to\": 1543\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1547,\n \"to\": 1554\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1560,\n \"to\": 1562\n }\n ],\n \"reviewNotes\": [\n \"A cooperação é explicitamente condicionada a ser quem conduz o espetáculo (1547–1551). Hobbies e saídas artísticas são satisfatórios sob a condição de permanecer tempo suficiente para adquirir conhecimento (1552–1554). O excesso de excitação/entusiasmo e prejuízo de perspectiva são condicionados a Júpiter mal aspectado (1560–1562). Romance e filhos foram omitidos.\"\n ]\n },\n \"6\": {\n \"pt\": \"você pode buscar significado no trabalho e no serviço a outras pessoas, encontrando satisfação no aprimoramento de suas habilidades. algumas pessoas correm de uma tarefa para outra, enquanto outras se aplicam a cada pequeno trabalho com diligência e concentração.\",\n \"en\": \"you may seek meaning through work and service to others, finding satisfaction in refining your skills. some people rush from one task to another, while others apply themselves to each small task with diligence and concentration.\",\n \"keywords\": {\n \"pt\": [\n \"significado no trabalho\",\n \"serviço a outras pessoas\",\n \"aprimoramento de habilidades\",\n \"satisfação\",\n \"correr de tarefa em tarefa\",\n \"diligência\",\n \"concentração\"\n ],\n \"en\": [\n \"meaning through work\",\n \"service to others\",\n \"refining skills\",\n \"satisfaction\",\n \"rushing from task to task\",\n \"diligence\",\n \"concentration\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1576,\n \"to\": 1580\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1581,\n \"to\": 1588\n }\n ],\n \"reviewNotes\": [\n \"O cabeçalho da seção (1574) diz incorretamente “VÊNUS NA CASA 6”, mas o corpo imediatamente seguinte nomeia Júpiter na casa 6 em 1576 e continua com referências explícitas a Júpiter até 1588; identidade conferida pelo corpo, não inferida do cabeçalho. Mantida a alternativa entre correr de tarefa a tarefa e diligência/concentração, sem fundi-las como traços simultâneos. Excluídas passagens médicas, saúde, câncer, dietas e práticas.\"\n ]\n },\n \"7\": {\n \"pt\": \"você pode querer independência para explorar diferentes facetas da vida e também buscar segurança, valorizando alguém que compreenda seus interesses fora da relação. pode projetar Júpiter no parceiro e procurar alguém que prometa o mundo, sentindo-se muito desapontado quando recebe apenas algo limitado.\",\n \"en\": \"you may want independence to explore different facets of life while also seeking security, valuing someone who understands your interests outside the relationship. you may project Jupiter onto a partner and look for someone who promises the world, feeling very disappointed when you receive only something limited.\",\n \"keywords\": {\n \"pt\": [\n \"independência\",\n \"explorar facetas da vida\",\n \"segurança\",\n \"interesses fora da relação\",\n \"projetar Júpiter no parceiro\",\n \"prometer o mundo\",\n \"desapontamento\"\n ],\n \"en\": [\n \"independence\",\n \"exploring facets of life\",\n \"security\",\n \"interests outside the relationship\",\n \"projecting Jupiter onto a partner\",\n \"promising the world\",\n \"disappointment\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1632,\n \"to\": 1637\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1638,\n \"to\": 1640\n }\n ],\n \"reviewNotes\": [\n \"A tensão entre independência e segurança foi mantida, assim como o ideal de interesses fora da relação. O segundo enunciado descreve a projeção e o desapontamento da fonte, sem promessa de parceiro benéfico, casamento ou ganhos materiais. Abertura mitológica sobre truques/disfarces (1619–1631) e afirmações positivas de resultado (1641–1651) não foram adotadas.\"\n ]\n },\n \"8\": {\n \"pt\": \"você pode buscar expansão e maior significado ao compartilhar e trocar o que tem, acredita e valoriza com outras pessoas. também pode procurar sentido no que está oculto, em tabus e mistérios.\",\n \"en\": \"you may seek expansion and greater meaning by sharing and exchanging what you have, believe, and value with other people. you may also seek meaning in what is hidden, in taboos, and in mysteries.\",\n \"keywords\": {\n \"pt\": [\n \"expansão\",\n \"maior significado\",\n \"compartilhar\",\n \"trocar\",\n \"crenças\",\n \"valores\",\n \"oculto\",\n \"tabus\",\n \"mistérios\"\n ],\n \"en\": [\n \"expansion\",\n \"greater meaning\",\n \"sharing\",\n \"exchanging\",\n \"beliefs\",\n \"values\",\n \"hidden\",\n \"taboos\",\n \"mysteries\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1668,\n \"to\": 1673\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1683,\n \"to\": 1686\n }\n ],\n \"reviewNotes\": [\n \"Mantidos o compartilhamento/troca de valores e a busca de significado no oculto/tabu/misterioso. Omitidas especulação e intuição de mercado, heranças, prosperidade, resultados sexuais e práticas ocultas. Também omitidos os trechos sobre expectativas e desapontamentos sexuais (1677–1682), cuja condição envolve maus/aspectos difíceis e não é necessária para as afirmações adotadas.\"\n ]\n },\n \"9\": {\n \"pt\": \"você pode buscar leis e verdades básicas que deem sentido à sua passagem pela vida. em casos extremos, você pode pensar que sabe tudo e justificar o que deseja fazer como se seus pensamentos tivessem aprovação divina.\",\n \"en\": \"you may seek basic laws and truths that give meaning to your passage through life. in extreme cases, you may think you know everything and justify what you want to do as though your thoughts had divine approval.\",\n \"keywords\": {\n \"pt\": [\n \"busca de leis e verdades\",\n \"sentido da vida\",\n \"pretensão de saber tudo em casos extremos\",\n \"justificação divina\"\n ],\n \"en\": [\n \"search for laws and truths\",\n \"meaning of life\",\n \"claims to know everything in extreme cases\",\n \"divine justification\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1715,\n \"to\": 1718\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1706,\n \"to\": 1709\n }\n ],\n \"reviewNotes\": [\n \"A pretensão de saber tudo e a justificação divina preservam explicitamente “em casos extremos” (1706–1709); não foi inventada condição de maus aspectos. A linha 1709 inicia um exemplo nomeado, não adotado.\",\n \"A frase de 1705–1706 sobre conhecimento integrado ser perigoso é gramaticalmente suspeita; omitida sem acrescentar um “não” ausente. Omitidos mito e exemplos criminais, sem atribuir identidade criminosa.\",\n \"A inspiração de outros em 1718–1721 depende de não se isolar em abstrações e de aplicar o aprendido; o tema foi omitido por inteiro, sem transformar a condição em instrução. Omitidas recomendações de viagem/estudo, profissões e benefícios familiares condicionados a bons aspectos.\",\n \"Livro inspecionado em 48720–49070, não adotado. A tolerância e a abertura a perspectivas em 48764–48770 não foram combinadas mecanicamente com o risco extremo descrito na aula; a identidade da casa 9 é explícita no corpo em 48771–48778, mas há interleaving com casa 10 e OCR “Casa 2” em 48724.\"\n ]\n },\n \"10\": {\n \"pt\": \"você quer ser visto por seu poder, brilhantismo e capacidade de liderança, buscando significado na carreira, no status e no reconhecimento. você pode trazer energia, entusiasmo e visão ao trabalho e organizar outras pessoas, preferindo ter autoridade e espaço para agir.\",\n \"en\": \"you want to be seen for your power, brilliance and leadership ability, seeking meaning in career, status and recognition. you may bring energy, enthusiasm and vision to work and organize other people, preferring to have authority and room to act.\",\n \"keywords\": {\n \"pt\": [\n \"desejo de reconhecimento\",\n \"liderança\",\n \"energia e entusiasmo\",\n \"visão\",\n \"autoridade e autonomia\"\n ],\n \"en\": [\n \"desire for recognition\",\n \"leadership\",\n \"energy and enthusiasm\",\n \"vision\",\n \"authority and autonomy\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1735,\n \"to\": 1739\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1743,\n \"to\": 1745\n }\n ],\n \"reviewNotes\": [\n \"Reconhecimento e liderança são desejos e capacidades possíveis, não fama ou sucesso alcançado. A linha 1739 inicia alegação de boas posições profissionais, não adotada.\",\n \"Omitidos profissões, exemplos nomeados, projeções maternas e a comparação de Sagitário no Meio do Céu/casa 10 em 1760–1761; não há alias de signo/ângulo para Júpiter natal na casa.\",\n \"Livro inspecionado em 48720–49070; casa 10 explícita no corpo em 48726, 48758, 48842 e 48845–48846. Promessas de ascensão/sucesso e integridade profissional não foram adotadas; colunas intercalam casa 9.\"\n ]\n },\n \"11\": {\n \"pt\": \"seus horizontes e sua compreensão do sentido da vida podem se ampliar pelo intercâmbio social; você pode ser visto como guia pelo grupo ou esperar que ele lhe ofereça proteção e salvação. seu envolvimento excessivo em atividades sociais ou na vida dos amigos pode dissipar sua energia e afastar você de outras áreas da vida.\",\n \"en\": \"your horizons and understanding of life’s meaning may expand through social exchange; you may be seen as a guide by the group or expect it to offer you protection and salvation. your excessive involvement in social activities or friends’ lives may dissipate your energy and draw you away from other areas of life.\",\n \"keywords\": {\n \"pt\": [\n \"intercâmbio social\",\n \"ampliação de horizontes\",\n \"projeção de guia e proteção\",\n \"envolvimento excessivo\",\n \"dispersão de energia\"\n ],\n \"en\": [\n \"social exchange\",\n \"broadening horizons\",\n \"projection of guidance and protection\",\n \"excessive involvement\",\n \"dissipation of energy\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1770,\n \"to\": 1773\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1784,\n \"to\": 1786\n }\n ],\n \"reviewNotes\": [\n \"O papel de guia e a expectativa de proteção são projeções ou expectativas alternativas, não promessa de salvação ou proteção efetiva.\",\n \"Grandes expectativas e desapontamento quando o grupo falha em resolver problemas (1776–1780) dependem de aspectos difíceis de Júpiter; o tema foi omitido inteiramente, sem universalizar a condição. O excesso de envolvimento e a dispersão em 1784–1786 não recebem essa condição.\",\n \"Omitidos número crescente de amigos, causas, metas múltiplas (1787–1792), conselhos de seleção de metas e realização favorecida por amigos; sem inventar quantidades ou prometer êxito.\",\n \"Livro inspecionado em 48720–49070, não adotado. Identidade da casa 11 explícita no corpo em 48908 e 48958–48974; amizade benéfica, apoio e realização de metas não foram importados. Há interleaving com casa 12.\"\n ]\n },\n \"12\": {\n \"pt\": \"você pode ter uma fé profunda na benevolência e no significado da vida e buscar a verdade dentro de si. você também pode procurar realização em toda parte, menos em si, e agir de modo temerário ou imprudente.\",\n \"en\": \"you may have deep faith in the benevolence and meaning of life and seek truth within yourself. you may also seek fulfillment everywhere except within yourself and act recklessly or imprudently.\",\n \"keywords\": {\n \"pt\": [\n \"fé na benevolência da vida\",\n \"sentido da vida\",\n \"verdade interior\",\n \"busca externa de realização\",\n \"imprudência\"\n ],\n \"en\": [\n \"faith in life’s benevolence\",\n \"meaning of life\",\n \"inner truth\",\n \"external pursuit of fulfillment\",\n \"recklessness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1803,\n \"to\": 1804\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1810,\n \"to\": 1811\n },\n {\n \"file\": \"modulo 4/aula 9 modulo 4/aula-9.md\",\n \"from\": 1819,\n \"to\": 1822\n }\n ],\n \"reviewNotes\": [\n \"A fé é descrita sem afirmar resgate, anjo da guarda, sorte ou resultado positivo garantido. A busca interior usa somente a localização da verdade em 1810–1811, sem adotar as práticas parentéticas ou instruções que seguem.\",\n \"A cláusula negativa sobre eventos externos em 1805–1807 é ambígua; omitida sem reconstruir seu sentido. Não se promete transformar obstáculos em bênçãos.\",\n \"A procura de realização fora de si e a imprudência em 1819–1822 permanecem possibilidades; omitidos rótulos diagnósticos, álcool/drogas e o desfecho de autoesfacelamento, sem nexo causal adicional inventado.\",\n \"Omitidas práticas de 1811–1817, afirmações físicas/psíquicas, cura, hospitais, profissões e resultados de internação em 1823–1830. Livro inspecionado em 48720–49070, não adotado; casa 12 explícita no corpo em 48911, 48947 e 49015–49022, com colunas intercaladas de casa 11.\"\n ]\n }\n },\n \"saturn\": {\n \"1\": {\n \"pt\": \"você pode encarar a vida com relutância e cautela, esperar o pior e se preocupar em não alcançar a meta; a autocrítica pode pesar mais que o julgamento dos outros. outras pessoas podem interpretar sua insegurança ou reserva como frieza, enquanto você desenvolve responsabilidade, disposição para trabalhar e determinação ambiciosa.\",\n \"en\": \"you may approach life reluctantly and cautiously, expect the worst, and worry about missing the goal; self-criticism may weigh more heavily than other people’s judgment. others may interpret your insecurity or reserve as coldness, while you develop responsibility, willingness to work, and determined ambition.\",\n \"keywords\": {\n \"pt\": [\n \"relutância e cautela\",\n \"esperar o pior\",\n \"preocupação em não atingir metas\",\n \"autocrítica\",\n \"insegurança ou reserva interpretada por outros como frieza\",\n \"responsabilidade e trabalho\",\n \"determinação ambiciosa\"\n ],\n \"en\": [\n \"reluctance and caution\",\n \"expecting the worst\",\n \"worry about missing goals\",\n \"self-criticism\",\n \"insecurity or reserve interpreted by others as coldness\",\n \"responsibility and work\",\n \"determined ambition\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 4,\n \"to\": 20\n }\n ],\n \"reviewNotes\": [\n \"A atribuição de maior problema à autocrítica, em vez do julgamento alheio, vem das linhas 7–9. Reserva/insegurança percebida como frieza e desenvolvimento de responsabilidade/ambição estão nas linhas 10–20.\",\n \"Não foram adotadas alegações sobre infância, restrições, espontaneidade futura, características físicas, parto ou resultados de vida nas linhas 21–30.\",\n \"O livro foi inspecionado em 51811–52200; os blocos/cabeçalhos das casas 1–4 são intercalados e não foram adotados.\"\n ]\n },\n \"2\": {\n \"pt\": \"você pode sentir insegurança e inadequação em relação a dinheiro, posses, valores e recursos, e procurar construir segurança e valor por conta própria, mesmo quando há dinheiro herdado ou disponível. cautela planejada, tato, perseverança e paciência podem ser recursos internos, embora a ansiedade sobre segurança possa persistir mesmo com muitas posses.\",\n \"en\": \"you may feel insecure and inadequate about money, possessions, values, and material resources, and try to build security and worth on your own even when inherited or available money is present. planned caution, tact, perseverance, and patience may be inner resources, though anxiety about security may persist even with many possessions.\",\n \"keywords\": {\n \"pt\": [\n \"insegurança material e sensação de inadequação\",\n \"construir segurança e valor por conta própria\",\n \"satisfação no que se ganha por si\",\n \"cautela planejada\",\n \"tato\",\n \"perseverança e paciência\",\n \"ansiedade persistente apesar de posses\"\n ],\n \"en\": [\n \"material insecurity and inadequacy\",\n \"building security and worth independently\",\n \"satisfaction in what one earns oneself\",\n \"planned caution\",\n \"tact\",\n \"perseverance and patience\",\n \"persistent anxiety despite possessions\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 33,\n \"to\": 37\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 43,\n \"to\": 57\n }\n ],\n \"reviewNotes\": [\n \"A fonte distingue a insegurança/necessidade de prover por si (33–37) dos recursos internos de cautela, tato, perseverança e paciência (53–57). Também mantém a tensão de acúmulo de posses com ansiedade de segurança (43–45).\",\n \"A menção a quebra financeira, exemplo de pessoa nomeada, sucesso monetário, acumulação extrema e sinais convencionais de sucesso foi inspecionada, mas não transformada em previsão pessoal.\",\n \"O livro foi inspecionado em 51811–52200; as passagens de casa 2 estão intercaladas com as de casa 1 e não foram adotadas.\"\n ]\n },\n \"3\": {\n \"pt\": \"você pode esconder pensamentos e sentimentos por receio de ser mal interpretado e ter dificuldade para se expressar de modo que os outros entendam. seu raciocínio pode ser sério, ordenado, lógico e preciso, mas você também pode ter dificuldade com conversas triviais ou falar sem parar para não revelar o que realmente pensa.\",\n \"en\": \"you may hide thoughts and feelings for fear of being misunderstood and find it difficult to express yourself so others understand. your reasoning may be serious, orderly, logical, and precise, but you may also struggle with small talk or talk nonstop to keep from revealing what you really think.\",\n \"keywords\": {\n \"pt\": [\n \"medo de ser mal interpretado\",\n \"ocultar pensamentos e sentimentos\",\n \"dificuldade de comunicação\",\n \"raciocínio sério e ordenado\",\n \"conversas triviais difíceis\",\n \"tagarelar para ocultar pensamentos\"\n ],\n \"en\": [\n \"fear of being misunderstood\",\n \"hiding thoughts and feelings\",\n \"communication difficulty\",\n \"serious and orderly reasoning\",\n \"difficulty with small talk\",\n \"talking to conceal thoughts\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 63,\n \"to\": 78\n }\n ],\n \"reviewNotes\": [\n \"As frases refletem as possibilidades descritas na seção sem converter a hipótese de ambiente infantil pouco amigável/perigoso em biografia certa; as linhas 64–68 contextualizam a insegurança e o receio de interpretação hostil.\",\n \"A precisão verbal/mental e raciocínio lógico/ordenado vêm de 71–76; dificuldade com conversa trivial e tagarelice para evitar revelar pensamentos vêm de 76–78.\",\n \"O livro foi inspecionado em 51811–52200; apesar do título de casa 3, os textos próximos de casas 3 e 4 estão intercalados. Não adotado.\"\n ]\n },\n \"4\": {\n \"pt\": \"você pode encontrar dificuldades e restrições ligadas ao lar, às raízes e ao ambiente familiar, com responsabilidades domésticas ou problemas para estabelecer um lar. pode também se sentir inadequado e desconfiar dos outros, enquanto anseia por algo permanente e estável na vida.\",\n \"en\": \"you may face difficulties and restrictions related to home, roots, and family environment, with domestic responsibilities or problems establishing a home. you may also feel inadequate and distrust others while longing for something permanent and stable in life.\",\n \"keywords\": {\n \"pt\": [\n \"dificuldades e restrições no lar e raízes\",\n \"responsabilidades domésticas\",\n \"problemas para estabelecer um lar\",\n \"sensação de inadequação\",\n \"desconfiança dos outros\",\n \"anseio por estabilidade\"\n ],\n \"en\": [\n \"difficulties and restrictions at home and in one's roots\",\n \"domestic responsibilities\",\n \"problems establishing a home\",\n \"feeling inadequate\",\n \"distrust of others\",\n \"longing for stability\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 109,\n \"to\": 111\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 152,\n \"to\": 157\n }\n ],\n \"reviewNotes\": [\n \"A seção descreve explicitamente dificuldades/restrições nas áreas do lar, ambiente familiar e raízes (109–111), e possíveis inadequação/desconfiança, anseio por estabilidade, deveres domésticos e dificuldade de estabelecer lar (152–157).\",\n \"Os relatos extensos sobre infância, pai, rejeição, culpa e família nas linhas 112–151 não foram convertidos em biografia universal nem adotados no texto do registro.\",\n \"Capricórnio no Fundo do Céu, linhas 163–166, permaneceu separado de Saturno na casa 4.\",\n \"O livro foi inspecionado em 51811–52200; corpo de casas 3 e 4 intercalado, sem conteúdo suplementar adotado.\"\n ]\n },\n \"5\": {\n \"pt\": \"você pode ter dificuldade para expressar livremente sua individualidade e criatividade, querendo ser amado por sua originalidade e ao mesmo tempo temendo que ser diferente afaste os outros. o medo de rejeição pode levar você a se resguardar demais e a não conseguir ficar à vontade no romance ou na alegria.\",\n \"en\": \"you may struggle to express your individuality and creativity freely, wanting to be loved for your originality while fearing that being different will push others away. fear of rejection may lead you to guard yourself too much and feel unable to relax in romance or joy.\",\n \"keywords\": {\n \"pt\": [\n \"dificuldade de expressão\",\n \"individualidade\",\n \"criatividade\",\n \"originalidade\",\n \"temor de afastar os outros\",\n \"medo de rejeição\",\n \"resguardar-se demais\",\n \"dificuldade de relaxar no romance e na alegria\"\n ],\n \"en\": [\n \"difficulty expressing\",\n \"individuality\",\n \"creativity\",\n \"originality\",\n \"fear of pushing others away\",\n \"fear of rejection\",\n \"guarding oneself too much\",\n \"difficulty relaxing in romance and joy\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 178,\n \"to\": 181\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 198,\n \"to\": 202\n }\n ],\n \"reviewNotes\": [\n \"A passagem longa 182–198 descreve possíveis explicações desenvolvimentais e inclui admoestação para se dar permissão; não foi transformada em causalidade universal nem conselho. Foram omitidos filhos e carreira.\"\n ]\n },\n \"6\": {\n \"pt\": \"você pode ter habilidade para organizar, administrar e prestar atenção aos detalhes, mas também uma necessidade compulsiva de pôr tudo de determinada maneira ligada a uma desconfiança mais profunda da vida. a rotina diária pode parecer opressiva, e mesmo precisando de estrutura você pode sentir-se frustrado e preso pelas estruturas que criou.\",\n \"en\": \"you may be skilled at organizing, managing, and attending to details, while also having a compulsive need to arrange everything in a particular way linked to a deeper distrust of life. daily routine may feel oppressive, and even while needing structure you may feel frustrated and trapped by the structures you created.\",\n \"keywords\": {\n \"pt\": [\n \"organização\",\n \"administração\",\n \"atenção aos detalhes\",\n \"necessidade compulsiva de ordem\",\n \"desconfiança da vida\",\n \"rotina opressiva\",\n \"frustração\",\n \"sentir-se preso às próprias estruturas\"\n ],\n \"en\": [\n \"organization\",\n \"management\",\n \"attention to detail\",\n \"compulsive need for order\",\n \"distrust of life\",\n \"oppressive routine\",\n \"frustration\",\n \"feeling trapped by one’s own structures\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 215,\n \"to\": 223\n }\n ],\n \"reviewNotes\": [\n \"O cabeçalho 213 identifica corretamente Saturno na casa 6. Foram omitidas as alegações sobre saúde e corpo, doenças, dieta, exercícios e tratamentos. A tensão entre precisar de rotina e sentir-se preso pelas estruturas próprias foi preservada.\"\n ]\n },\n \"7\": {\n \"pt\": \"você pode temer a dedicação e a dependência que uma relação exige e sentir-se aterrorizado diante da vulnerabilidade necessária à intimidade. por medo de ser ferido, pode evitar se abrir e escolher parceiros que considera inadequados ou ausentes em certos aspectos.\",\n \"en\": \"you may fear the commitment and dependence a relationship requires and feel terrified of the vulnerability intimacy involves. for fear of being hurt, you may avoid opening up and choose partners you consider unsuitable or absent in certain respects.\",\n \"keywords\": {\n \"pt\": [\n \"medo de dedicação\",\n \"medo de dependência\",\n \"vulnerabilidade\",\n \"intimidade\",\n \"medo de ser ferido\",\n \"evitar se abrir\",\n \"parceiros inadequados ou ausentes em certos aspectos\"\n ],\n \"en\": [\n \"fear of commitment\",\n \"fear of dependence\",\n \"vulnerability\",\n \"intimacy\",\n \"fear of being hurt\",\n \"avoiding openness\",\n \"partners unsuitable or absent in certain respects\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 258,\n \"to\": 263\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 279,\n \"to\": 284\n }\n ],\n \"reviewNotes\": [\n \"A seção atribui dificuldade e medo aos relacionamentos, mas não determina que toda parceria seja abusiva ou fracassada. Foram omitidas interpretações sobre infância, prescrições para examinar-se, idades/casamento tardio e aconselhamento jurídico.\"\n ]\n },\n \"8\": {\n \"pt\": \"você pode sentir insegurança sobre o que deve dar e dificuldade para receber o que os outros oferecem, temendo que a união apague seu senso de si como indivíduo separado. pode desejar intensamente intimidade e, ao mesmo tempo, afastar-se por medo de ser tomado por raiva, ciúme, inveja ou outras paixões instintivas.\",\n \"en\": \"you may feel unsure about what to give and have difficulty receiving what others offer, fearing that union will erase your sense of self as a separate individual. you may intensely desire intimacy while also withdrawing for fear of being overtaken by anger, jealousy, envy, or other instinctive passions.\",\n \"keywords\": {\n \"pt\": [\n \"insegurança sobre o que dar\",\n \"dificuldade de receber\",\n \"medo de perder o eu separado\",\n \"desejo de intimidade\",\n \"afastar-se\",\n \"medo de ser tomado\",\n \"raiva\",\n \"ciúme\",\n \"inveja\",\n \"paixões instintivas\"\n ],\n \"en\": [\n \"insecurity about what to give\",\n \"difficulty receiving\",\n \"fear of losing separate self\",\n \"desire for intimacy\",\n \"withdrawing\",\n \"fear of being overtaken\",\n \"anger\",\n \"jealousy\",\n \"envy\",\n \"instinctive passions\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 296,\n \"to\": 304\n }\n ],\n \"reviewNotes\": [\n \"A tensão entre desejo intenso de união e afastamento por medo de ser tomado por emoções está expressa na própria passagem. Omitidos os temas sexuais, bens, heranças, contratos, morte e pessoas nomeadas.\"\n ]\n },\n \"9\": {\n \"pt\": \"você pode buscar respostas definitivas sobre o significado e as regras da existência e se prender à observância religiosa, perdendo de vista seu sentido interior. ou você pode reagir ao medo de princípios mais elevados com ceticismo e cinismo, acreditando apenas no que consegue ver, testar ou provar.\",\n \"en\": \"you may seek definitive answers about the meaning and rules of existence and become attached to religious observance, losing sight of its inner meaning. or you may react to fear of higher principles with skepticism and cynicism, believing only what you can see, test or prove.\",\n \"keywords\": {\n \"pt\": [\n \"respostas definitivas\",\n \"observância religiosa\",\n \"perda do sentido interior\",\n \"ceticismo e cinismo\",\n \"exigência de provas\"\n ],\n \"en\": [\n \"definitive answers\",\n \"religious observance\",\n \"loss of inner meaning\",\n \"skepticism and cynicism\",\n \"demand for proof\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 327,\n \"to\": 330\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 336,\n \"to\": 341\n }\n ],\n \"reviewNotes\": [\n \"A busca por respostas definitivas vem de 327–330; apego à observância com perda de sentido interior é possibilidade atribuída a alguns em 336–338, preservada como “pode”. O ceticismo/cinismo em 339–341 é explicitamente inverso/alternativo; mantido como “ou”, sem exigir coexistência.\",\n \"Não há condição de maus aspectos nas alegações adotadas. Omitidos história de educação religiosa, deuses punitivos, exemplos profissionais, relações familiares, medo do potencial, viagens, crescimento e a chegada final de 354–356; sem conselho ou promessa de superação.\",\n \"Livro inspecionado em 52500–52914; corpo da casa 9 confirmado em 52600–52601, 52632–52635 e 52671–52673. Abordagem metódica e compromisso ético não foram combinados mecanicamente como compensação positiva para apego exterior/cinismo da aula. Nenhuma alegação suplementar adotada.\"\n ]\n },\n \"10\": {\n \"pt\": \"você quer ser visto como forte, sólido e duradouro; quando sente que precisa limitar suas ambições aos padrões sociais, pode julgar com raiva e inveja quem não aceita esses limites. se Saturno estiver mal aspectado, você pode encontrar muitos atrasos e obstáculos na busca do reconhecimento e da posição que deseja.\",\n \"en\": \"you want to be seen as strong, solid and enduring; when you feel you must limit your ambitions to social standards, you may judge with anger and envy those who do not accept those limits. if Saturn is poorly aspected, you may encounter many delays and obstacles in pursuing the recognition and standing you desire.\",\n \"keywords\": {\n \"pt\": [\n \"desejo de solidez e reconhecimento\",\n \"valores sociais estritos\",\n \"julgamento\",\n \"raiva e inveja\",\n \"atrasos e obstáculos sob maus aspectos\"\n ],\n \"en\": [\n \"desire for solidity and recognition\",\n \"strict social values\",\n \"judgment\",\n \"anger and envy\",\n \"delays and obstacles under difficult aspects\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 365,\n \"to\": 373\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 374,\n \"to\": 376\n }\n ],\n \"reviewNotes\": [\n \"O desejo de imagem forte/sólida/duradoura e julgamento social com raiva/inveja vêm de 365–373; o segundo enunciado conserva a condição explícita de Saturno mal aspectado para atrasos/obstáculos (376). Não promete sucesso nem torna os obstáculos universais.\",\n \"A possibilidade de realização profissional sob bons aspectos em 374–376 foi omitida junto com seu resultado, não convertida em compensação positiva. Omitidos usar outros, quedas profissionais, crimes e exemplos nomeados, rebelião, histórias maternas e profissões.\",\n \"Capricórnio no Meio do Céu em 363 e 407–409 permanece analogia distinta, sem alias para Saturno na casa 10. Livro inspecionado em 52500–52914; casa 10 confirmada no corpo em 52604–52605, 52639–52643, 52685 e 52719–52723. Integridade, progresso sustentável e harmonia de vida/trabalho do livro não foram importados nem usados para neutralizar a aula.\",\n \"Correção da raiz: raiva/inveja preservam a condição de a própria pessoa sentir que limita suas ambições aos padrões sociais (371–373), sem universalizar esse julgamento.\"\n ]\n },\n \"11\": {\n \"pt\": \"você pode querer fazer parte de um grupo ou círculo de amigos e, ao mesmo tempo, sentir-se sem jeito ou retraído nessas situações. você pode agir com rigidez e formalidade por medo de um passo em falso ou de que tirem vantagem de você, sentir amizades como um fardo e temer rejeição ou crítica.\",\n \"en\": \"you may want to belong to a group or circle of friends while feeling awkward or withdrawn in those situations. you may act rigidly and formally for fear of a misstep or of others taking advantage of you, experience friendships as a burden and fear rejection or criticism.\",\n \"keywords\": {\n \"pt\": [\n \"desejo de pertencer\",\n \"retraimento social\",\n \"rigidez e formalidade\",\n \"medo de exploração\",\n \"amizade como fardo\",\n \"medo de rejeição ou crítica\"\n ],\n \"en\": [\n \"desire to belong\",\n \"social withdrawal\",\n \"rigidity and formality\",\n \"fear of exploitation\",\n \"friendship as a burden\",\n \"fear of rejection or criticism\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 416,\n \"to\": 419\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 428,\n \"to\": 433\n }\n ],\n \"reviewNotes\": [\n \"Desejo de pertença e retraimento coexistem em 416–419; rigidez/formalidade, medo de exploração, fardo e receio de rejeição/crítica são possibilidades em 428–433. Sem transformar receios em comportamentos efetivos dos amigos.\",\n \"Amizades leais/duradouras em 436–437 dependem de encarar/examinar dificuldades; resultado omitido por inteiro, sem perder a condição ou prometer amizade. A condição de aspectos difíceis em 443–444 pertence ao conselho de aprender a trabalhar com outros, também omitido; não é anexada indevidamente ao retraimento anterior.\",\n \"Omitidos exemplo privado narrado pela fonte, sócios mais velhos, deveres em grupos, revisão de metas e promessa de chegar ao objetivo. Livro inspecionado em 52500–52914; casa 11 confirmada corporalmente pelos fragmentos 52885 e 52891, com amizades em 52873–52879 e lealdade em 52864. Não se inferiu que os blocos de grupo sob o título da casa 12 fossem casa 12; continuidade de colunas é insegura. Lealdade/respeito mútuo do livro não substituem os receios da aula; nada adotado.\"\n ]\n },\n \"12\": {\n \"pt\": \"você pode temer o que está abaixo da consciência e recear ser tomado por emoções intensas se afrouxar o controle sobre si. em alguns casos, você pode sentir terror diante da intimidade por medo de perder sua individualidade e acreditar que só mantém a autonomia afastando-se das pessoas.\",\n \"en\": \"you may fear what lies beneath consciousness and worry about being overwhelmed by intense emotions if you loosen your control over yourself. in some cases, you may feel terror at intimacy for fear of losing your individuality and believe you can preserve autonomy only by distancing yourself from people.\",\n \"keywords\": {\n \"pt\": [\n \"medo do inconsciente\",\n \"controle sobre si\",\n \"medo de emoções intensas\",\n \"terror da intimidade em alguns casos\",\n \"medo de perder individualidade\",\n \"distanciamento para preservar autonomia\"\n ],\n \"en\": [\n \"fear of the unconscious\",\n \"self-control\",\n \"fear of intense emotions\",\n \"terror of intimacy in some cases\",\n \"fear of losing individuality\",\n \"distancing to preserve autonomy\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 456,\n \"to\": 458\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 492,\n \"to\": 495\n }\n ],\n \"reviewNotes\": [\n \"456–458 sustenta medo do que está sob a consciência e de ser engolfado por emoções ao relaxar controles. 492–495 limita o terror da intimidade a alguns e o liga ao medo de engolfamento/perda da identidade; preservado como “em alguns casos”. O afastamento é descrito como crença de preservação de autonomia, não recomendado nem garantido.\",\n \"Omitidos rótulos diagnósticos, culpa/desespero, hipótese pré-natal e história dos pais, prisões/hospitais, promessas de paz/sono, serviço como pagamento de dívida e crises de socorro. Não há resultado de saúde ou relacionamento.\",\n \"Qualidades de apoio e sabedoria em 500–503 não foram usadas como balanço positivo inventado. Práticas, prescrições de autoexploração e promessa de recompensa/reconexão em 514–519 foram omitidas, sem uma frase genérica de maturidade/crescimento.\",\n \"Livro inspecionado em 52500–52914; título de casa 12 em 52754, corpo explícito em 52813, 52818–52822, 52824–52830, 52842–52856. Limites psíquicos, karma passado, terapia, disciplina espiritual e trabalho nos bastidores não foram adotados. Blocos de amizade/grupo se intercalam; nada foi reconstruído.\"\n ]\n }\n },\n \"uranus\": {\n \"1\": {\n \"pt\": \"você tende a seguir suas próprias ideias e criar caminhos quando não encontra um que sirva, com originalidade e inventividade; com aspectos difíceis, pode se tornar obstinado e discordar apenas para ser diferente. você precisa de liberdade para se encontrar, mas pode ter dificuldade em estabelecer uma identidade definitiva, enquanto outras pessoas podem achar sua maneira de agir surpreendente ou irritante.\",\n \"en\": \"you tend to follow your own ideas and make paths when you find none that fit, with originality and inventiveness; with difficult aspects, you may become stubborn and disagree just to be different. you need freedom to find yourself, but may have difficulty establishing a definitive identity, while other people may find your way of acting surprising or irritating.\",\n \"keywords\": {\n \"pt\": [\n \"caminhos próprios\",\n \"originalidade e inventividade\",\n \"obstinação com aspectos difíceis\",\n \"discordar para ser diferente\",\n \"necessidade de liberdade\",\n \"dificuldade de identidade definitiva\"\n ],\n \"en\": [\n \"own paths\",\n \"originality and inventiveness\",\n \"stubbornness with difficult aspects\",\n \"disagreeing to be different\",\n \"need for freedom\",\n \"difficulty with a definitive identity\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 522,\n \"to\": 546\n }\n ],\n \"reviewNotes\": [\n \"A seção primária completa 520–552 foi lida; 522–546 fundamenta os caminhos próprios, originalidade, inventividade, condição de aspectos difíceis, obstinação, necessidade de liberdade e dificuldade de identidade. A janela 547–552 foi lida, mas não adotada: contém condição de proximidade ao Ascendente, alegações de nascimento/infância e exemplo extremo.\",\n \"O livro foi inspecionado somente em 55773–56300. Os fragmentos de resumo em 55845–55846 atribuem o corpo à casa 1, mas não foram adotados; o título de casas aparece deslocado em 55880–55881. Nenhuma alegação do livro foi adotada.\"\n ]\n },\n \"2\": {\n \"pt\": \"você tende a tratar dinheiro, posses e recursos de maneira distinta dos valores materiais convencionais, e pode dar mais valor à liberdade que o dinheiro oferece do que à segurança material. suas formas de ganhar dinheiro podem ser incomuns, e os recursos financeiros podem ter altas e baixas repentinas; mudanças ou rupturas podem abalar sua segurança pessoal e levá-lo a reavaliar essa área da vida.\",\n \"en\": \"you tend to approach money, possessions, and resources differently from conventional material values, and may value the freedom money offers more than material security. your ways of earning money may be unusual, and financial resources may rise and fall suddenly; changes or disruptions may unsettle your personal security and lead you to reassess this area of life.\",\n \"keywords\": {\n \"pt\": [\n \"dinheiro e recursos fora dos padrões convencionais\",\n \"liberdade acima da segurança material\",\n \"formas incomuns de ganhar dinheiro\",\n \"altas e baixas financeiras repentinas\",\n \"rupturas na segurança pessoal\",\n \"reavaliação dos recursos\"\n ],\n \"en\": [\n \"money and resources outside conventional patterns\",\n \"freedom over material security\",\n \"unusual ways of earning money\",\n \"sudden financial rises and falls\",\n \"disruptions to personal security\",\n \"reassessment of resources\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 555,\n \"to\": 580\n }\n ],\n \"reviewNotes\": [\n \"A seção primária completa 553–591 foi lida; 555–580 sustenta valores materiais não convencionais, liberdade, formas incomuns de renda, flutuações e rupturas possíveis na segurança. A janela 581–591 foi lida, mas não adotada: inclui crenças sobre mente e matéria, fontes a desenvolver, exemplos de figuras nomeadas e referência à cúspide.\",\n \"O livro foi inspecionado somente em 55773–56300. O resumo em 55780–55783 identifica a casa 2 no próprio corpo, e fragmentos em 55920 e 56030–56121 também a nomeiam; não foram adotados por serem resumos/colunas intercaladas. Nenhuma alegação do livro foi adotada.\"\n ]\n },\n \"3\": {\n \"pt\": \"você tende a buscar seus próprios caminhos para compreender o que acontece, com pensamento inventivo, original e intuitivo; suas conexões rápidas podem mudar o rumo da conversa e deixar outras pessoas confusas, pois sua maneira de pensar pode ser não linear. você pode ser inquieto e nervoso, com necessidade de movimento, exploração e variedade.\",\n \"en\": \"you tend to seek your own ways of understanding what happens, with inventive, original, and intuitive thinking; your quick connections may shift the direction of a conversation and leave other people confused, as your way of thinking can be nonlinear. you may be restless and nervous, with a need for movement, exploration, and variety.\",\n \"keywords\": {\n \"pt\": [\n \"caminhos próprios de compreensão\",\n \"pensamento inventivo e intuitivo\",\n \"conexões rápidas\",\n \"pensamento não linear\",\n \"inquietação e nervosismo\",\n \"movimento, exploração e variedade\"\n ],\n \"en\": [\n \"own ways of understanding\",\n \"inventive and intuitive thinking\",\n \"quick connections\",\n \"nonlinear thinking\",\n \"restlessness and nervousness\",\n \"movement, exploration, and variety\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 594,\n \"to\": 612\n }\n ],\n \"reviewNotes\": [\n \"A seção primária completa 592–626 foi lida; 594–612 fundamenta compreensão independente, pensamento original/intuitivo, conexões rápidas, pensamento não linear, inquietação e variedade. 613–626 foi lido, mas não adotado: contém ambiente de primeira infância e parentes, educação, comunicação, viagens e exemplo nomeado.\",\n \"O livro foi inspecionado somente em 55773–56300. O fragmento 55800 e a continuação em 55804–55808 identificam a casa 3 no corpo; fragmentos em 56143–56221 também a nomeiam, embora intercalados com casa 4. Nada do livro foi adotado.\"\n ]\n },\n \"4\": {\n \"pt\": \"você pode se sentir estranho ou como alguém de fora na família de origem, e as raízes familiares talvez não lhe deem a compreensão ou o pertencimento que procura. temendo perder alternativas, pode relutar em criar raízes; em alguns casos, acontecimentos externos podem impelir você a se mudar ou a romper com esse enraizamento.\",\n \"en\": \"you may feel like a stranger or an outsider in your family of origin, and family roots may not give you the understanding or belonging you seek. fearing the loss of alternatives, you may hesitate to put down roots; in some cases, external events may impel you to move or break from those roots.\",\n \"keywords\": {\n \"pt\": [\n \"estranhamento na família de origem\",\n \"busca de pertencimento\",\n \"raízes sem compreensão\",\n \"temor de perder alternativas\",\n \"relutância em criar raízes\",\n \"ruptura ou mudança impelida externamente\"\n ],\n \"en\": [\n \"feeling like an outsider in the family of origin\",\n \"search for belonging\",\n \"roots without understanding\",\n \"fear of losing alternatives\",\n \"hesitation to put down roots\",\n \"externally impelled disruption or move\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 629,\n \"to\": 642\n }\n ],\n \"reviewNotes\": [\n \"A seção primária completa 627–659 foi lida; 629–642 sustenta o possível estranhamento, a busca de pertencimento, a relutância em criar raízes e a possibilidade de rupturas externas. A janela 643–659 foi lida, mas não adotada: contém formas alternativas de lar, hipóteses sobre pai/mãe e exemplos extremos, mudanças associadas a idade/oposição e semelhança declarada com Aquário no Fundo do Céu.\",\n \"O livro foi inspecionado somente em 55773–56300. O fragmento 55812–55815 nomeia casa 4 no próprio corpo, com título de casas deslocado em 55880–55881; fragmentos em 56143–56290 têm interleaving explícito entre casas 3 e 4. Nenhuma alegação do livro foi adotada. Aquário no Fundo do Céu não foi usado como equivalente de Urano na casa 4.\"\n ]\n },\n \"5\": {\n \"pt\": \"você pode inovar na autoexpressão e sentir-se insatisfeito com o que cria, achando que poderia ter feito melhor. a inspiração criativa pode surgir num lampejo; mais tarde na vida, seus hobbies podem ser fora do comum, enquanto romances podem ser não convencionais e ter começos ou fins repentinos.\",\n \"en\": \"you may innovate in self-expression and feel dissatisfied with what you create, thinking you could have done better. creative inspiration may arrive in a flash; later in life, your hobbies may be unusual, while romances may be unconventional and have sudden beginnings or endings.\",\n \"keywords\": {\n \"pt\": [\n \"autoexpressão inovadora\",\n \"insatisfação com o que cria\",\n \"inspiração criativa em lampejo\",\n \"mais tarde na vida\",\n \"hobbies fora do comum\",\n \"romances não convencionais\",\n \"começos ou fins repentinos\"\n ],\n \"en\": [\n \"innovative self-expression\",\n \"dissatisfaction with creations\",\n \"creative inspiration in a flash\",\n \"later in life\",\n \"unusual hobbies\",\n \"unconventional romances\",\n \"sudden beginnings or endings\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 662,\n \"to\": 668\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 677,\n \"to\": 681\n }\n ],\n \"reviewNotes\": [\n \"A abertura da fonte recomenda deixar a individualidade irradiar; não foi convertida em instrução. Foram omitidas biografia/nomeados e afirmações sobre filhos, maternidade ou custódia. Romances foram mantidos como possibilidade não convencional, sem prever separação inevitável.\"\n ]\n },\n \"6\": {\n \"pt\": \"você pode ter dificuldade com rotinas fixas de trabalho e precisar que a mente permaneça ocupada e interessada nas tarefas, com espaço para variação, inventividade e movimento. pode ser difícil permanecer num emprego apenas por dever ou segurança, e você pode provocar mudanças para tornar o cotidiano mais interessante.\",\n \"en\": \"you may struggle with fixed work routines and need your mind to stay occupied and interested in tasks, with room for variation, inventiveness, and movement. staying in a job only from duty or for security may be difficult, and you may bring about changes to make daily life more interesting.\",\n \"keywords\": {\n \"pt\": [\n \"dificuldade com rotina fixa\",\n \"mente ocupada e interessada\",\n \"variação\",\n \"inventividade\",\n \"movimento\",\n \"emprego por dever ou segurança\",\n \"provocar mudanças\"\n ],\n \"en\": [\n \"difficulty with fixed routines\",\n \"mind occupied and interested\",\n \"variation\",\n \"inventiveness\",\n \"movement\",\n \"job from duty or security\",\n \"bringing about changes\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 706,\n \"to\": 710\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 714,\n \"to\": 718\n }\n ],\n \"reviewNotes\": [\n \"A seção primária 693–733 identifica Urano na casa 6 no cabeçalho e no corpo. Foram excluídos problemas corporais, doenças, alergias e prescrições/práticas de saúde. A descrição de mudança refere-se à tendência de alterar rotinas para torná-las mais interessantes, não a um evento específico garantido.\"\n ]\n },\n \"7\": {\n \"pt\": \"você pode ter dificuldade em suportar uma relação sem vida e buscar mais espaço, liberdade e interesses próprios além da parceria. se não é você quem manifesta a inquietação, pode atrair alguém que o faça; se não reconhece sua necessidade de uma estrutura menos convencional, pode pressionar a outra pessoa a mudar a situação.\",\n \"en\": \"you may struggle to tolerate a lifeless relationship and seek more space, freedom, and interests of your own beyond the partnership. if you are not the one expressing the restlessness, you may attract someone who does; if you do not recognize your need for a less conventional structure, you may pressure the other person to change the situation.\",\n \"keywords\": {\n \"pt\": [\n \"dificuldade em suportar relação sem vida\",\n \"espaço\",\n \"liberdade\",\n \"interesses próprios\",\n \"inquietações não reconhecidas\",\n \"estrutura menos convencional\",\n \"atrair alguém que as manifeste\",\n \"pressionar outra pessoa a mudar\"\n ],\n \"en\": [\n \"difficulty tolerating a lifeless relationship\",\n \"space\",\n \"freedom\",\n \"independent interests\",\n \"unrecognized restlessness\",\n \"less conventional structure\",\n \"attracting someone who expresses it\",\n \"pressuring another person to change\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 736,\n \"to\": 743\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 744,\n \"to\": 749\n }\n ],\n \"reviewNotes\": [\n \"A fonte apresenta duas condições distintas: se você não é quem manifesta primeiro a inquietação, pode atrair/selecionar alguém que o faça (744–745); se não reconhece a inquietação ou necessidade de estrutura menos convencional, pode pressionar a outra pessoa a alterar a situação (745–747). As duas cláusulas condicionais são mantidas separadas. Omitidas previsão de rompimento, casamento, pessoa nomeada e promessa de relacionamento melhor.\"\n ]\n },\n \"8\": {\n \"pt\": \"você pode alternar, em alguns casos, entre paixão excessiva e frieza desumana. pode sentir-se compelido a sondar além da superfície da existência em busca das leis mais sutis da natureza.\",\n \"en\": \"in some cases, you may swing between excessive passion and inhuman coldness. you may feel compelled to probe beneath the surface of existence in search of nature’s subtler laws.\",\n \"keywords\": {\n \"pt\": [\n \"em alguns casos\",\n \"paixão excessiva\",\n \"frieza desumana\",\n \"sondar além da superfície\",\n \"leis sutis da natureza\"\n ],\n \"en\": [\n \"in some cases\",\n \"excessive passion\",\n \"inhuman coldness\",\n \"probing beneath the surface\",\n \"subtle laws of nature\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 802,\n \"to\": 807\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 808,\n \"to\": 810\n }\n ],\n \"reviewNotes\": [\n \"A fonte limita a alternância extrema a “alguns casos”; a qualificação foi mantida. O exemplo de violência política extrema e pessoas nomeadas nas linhas 802–807 não foi reproduzido. Referências a curiosidade sexual, morte, experiências psíquicas/telepáticas, viradas de destino e mudanças conjugais foram omitidas.\"\n ]\n },\n \"9\": {\n \"pt\": \"você pode formar suas crenças e sua filosofia de maneira independente, mas continuar desfazendo os sistemas que criou para experimentar outros mais amplos ou completos. você pode ter ideias progressistas sobre educação e preferir um caminho de estudo independente à estrutura acadêmica tradicional.\",\n \"en\": \"you may form your beliefs and philosophy independently yet keep dismantling the systems you created to try others that are broader or more complete. you may hold progressive ideas about education and prefer an independent course of study to a traditional academic structure.\",\n \"keywords\": {\n \"pt\": [\n \"crenças independentes\",\n \"revisão dos próprios sistemas\",\n \"busca de sistemas mais amplos\",\n \"educação progressista\",\n \"estudo independente\"\n ],\n \"en\": [\n \"independent beliefs\",\n \"dismantling one’s own systems\",\n \"search for broader systems\",\n \"progressive education\",\n \"independent study\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 823,\n \"to\": 827\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 846,\n \"to\": 848\n }\n ],\n \"reviewNotes\": [\n \"A independência de crenças e o desfazer contínuo dos próprios sistemas vêm de 823–827; não se inventou estabilidade ou benefício compensatório. Educação progressista e estudo independente são possibilidades em 846–848, não recomendações.\",\n \"Omitidos deuses, exemplos nomeados, cultos excêntricos sob maus aspectos em 831–832, abstração, vislumbres e experiências em viagem/trabalho. A visão de tendências futuras em 853–856 depende de Urano não estar muito mal aspectado; omitida por inteiro, sem generalizar intuição preditiva.\",\n \"Livro inspecionado em 56600–57047, não adotado. Apesar do cabeçalho da casa 10 em 56727, corpo de casa 9 explícito em 56728–56732; inovação educacional e tolerância cultural não foram combinadas mecanicamente com a aula. Colunas de 9/10 se intercalam; nada reconstruído.\"\n ]\n },\n \"10\": {\n \"pt\": \"você quer contribuir com algo original e progressista para a sociedade e ser visto como uma força de mudança, rebelião e inovação. você pode sentir vontade de deixar um trabalho por discordar de como as coisas são feitas ou buscar repetidamente algo mais significativo para fazer.\",\n \"en\": \"you want to contribute something original and progressive to society and be seen as a force for change, rebellion and innovation. you may feel like leaving a job because you disagree with how things are done or repeatedly seek something more meaningful to do.\",\n \"keywords\": {\n \"pt\": [\n \"contribuição original e progressista\",\n \"desejo de reconhecimento como inovador\",\n \"rebelião\",\n \"discordância no trabalho\",\n \"busca de trabalho significativo\"\n ],\n \"en\": [\n \"original and progressive contribution\",\n \"desire to be seen as an innovator\",\n \"rebellion\",\n \"disagreement at work\",\n \"search for meaningful work\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 859,\n \"to\": 861\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 868,\n \"to\": 870\n }\n ],\n \"reviewNotes\": [\n \"859–861 sustenta contribuição original/progressista e desejo de imagem de mudança/rebelião/inovação; não garante reconhecimento, realização ou profissão. 868–870 sustenta discordância e procura recorrente de trabalho significativo; formuladas como disposição possível, sem prever demissão inevitável ou evento externo.\",\n \"Omitidos exemplos nomeados, política específica, empregos estranhos, revelações e acontecimentos externos que rompem carreiras, história materna/familiar e resultados de criação de filhos. Aquário no Meio do Céu/casa 10 em 857 e 896–898 permanece distinto de Urano natal na casa 10, sem alias.\",\n \"Livro inspecionado em 56600–57047, não adotado. Casa 10 confirmada no corpo em 56769–56773 e 56797–56803. Reputação alcançada e mudanças que levam a sucesso no livro não foram convertidas em promessas; a prioridade da aula é desejo/contribuição e possível insatisfação. Interleaving com casa 9 em 56728–56838.\"\n ]\n },\n \"11\": {\n \"pt\": \"você pode gostar de compartilhar e pertencer a algo maior, mas sentir sua individualidade e liberdade ameaçadas nesse processo. você pode provocar debates com ideias radicais ou desafiadoras; se Urano estiver mal aspectado, pode defender ideias revolucionárias duras demais ou drásticas.\",\n \"en\": \"you may enjoy sharing and belonging to something larger yet feel that your individuality and freedom are threatened in the process. you may provoke debate with radical or challenging ideas; if Uranus is poorly aspected, you may advocate revolutionary ideas that are excessively harsh or drastic.\",\n \"keywords\": {\n \"pt\": [\n \"pertencimento e liberdade\",\n \"individualidade ameaçada\",\n \"debate provocador\",\n \"ideias radicais\",\n \"ideias drásticas sob maus aspectos\"\n ],\n \"en\": [\n \"belonging and freedom\",\n \"threatened individuality\",\n \"provocative debate\",\n \"radical ideas\",\n \"drastic ideas under difficult aspects\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 918,\n \"to\": 925\n }\n ],\n \"reviewNotes\": [\n \"A provocação de debate/ideias radicais em 918–921 é distinta da condição explícita de Urano mal aspectado para ideias revolucionárias duras/drásticas em 921–922. A condição permanece somente na segunda cláusula, sem generalizar extremismo.\",\n \"Compartilhar/pertencer versus ameaça à individualidade/liberdade vem de 923–925; mantida a ambivalência, sem inventar solução positiva. Não foram adotadas saída do grupo, metas que mudam radicalmente, amigos catalisadores, idealização da amizade ou identidades de grupos específicos.\",\n \"Imperativos e tarefa de incluir todas as criaturas em 901–915 foram omitidos, sem converter em conselho ou universalizar afinidade humana; a própria aula limita essa possibilidade em 916–917. Livro inspecionado em 56600–57047; título 56866–56867 e corpo explícito em 56871. Liderança ativista, redes digitais e contribuições positivas do livro não foram adotadas; colunas de 11/12 intercaladas.\"\n ]\n },\n \"12\": {\n \"pt\": \"você pode abordar o inconsciente de maneira inventiva, original e intuitiva. sua relutância em abrir mão da independência pode dificultar criar raízes; mesmo desejando intimidade e segurança, você pode acabar impedindo que elas se estabeleçam.\",\n \"en\": \"you may approach the unconscious in an inventive, original and intuitive way. your reluctance to give up independence may make it difficult to put down roots; even while wanting intimacy and security, you may end up preventing them from taking hold.\",\n \"keywords\": {\n \"pt\": [\n \"abordagem inventiva do inconsciente\",\n \"originalidade e intuição\",\n \"relutância em ceder independência\",\n \"dificuldade de criar raízes\",\n \"desejo de intimidade e segurança\",\n \"impedir a aproximação desejada\"\n ],\n \"en\": [\n \"inventive approach to the unconscious\",\n \"originality and intuition\",\n \"reluctance to give up independence\",\n \"difficulty putting down roots\",\n \"desire for intimacy and security\",\n \"blocking desired closeness\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 945,\n \"to\": 945\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 983,\n \"to\": 985\n }\n ],\n \"reviewNotes\": [\n \"945 sustenta somente a maneira inventiva/original/intuitiva de abordar o inconsciente, não poderes psíquicos ou acesso garantido a sabedoria ancestral. 983–985 sustenta relutância em ceder independência, dificuldade de criar raízes e a tensão de desejar intimidade/segurança enquanto impede sua concretização; não prevê fracasso relacional inevitável.\",\n \"Omitidos práticas/drogas/meditação/artes, pessoas nomeadas, teorias clínicas e promessas terapêuticas, percepção antecipada coletiva, exemplos políticos, instituições, acidentes/doenças/confinamento e hipótese gestacional. Exploração de motivações e alívio da solidão em 985–987 não foram adotados como prática ou resultado.\",\n \"Conselhos a outros dependem de bons aspectos em 976–977; prejuízo da visão depende de muitos maus aspectos em 978–980. Ambos os temas foram omitidos com suas condições, sem uma frase genérica de intuição sempre correta ou maturidade. A intuição de 945 não recebeu condição inventada.\",\n \"Livro inspecionado em 56600–57047, não adotado; casa 12 confirmada no corpo em 56955–56970, além do título 56869. Compaixão coletiva, liberdade interior, práticas e crescimento do livro não foram usados como balanço positivo da tensão de independência na aula; corpo inicial fortemente fragmentado em 56993–57008.\"\n ]\n }\n },\n \"neptune\": {\n \"1\": {\n \"pt\": \"você pode ter limites pouco nítidos entre seu sentido de si e as outras pessoas, com grande sensibilidade a elas, mas dificuldade em definir a própria identidade e direção. em alguns casos, você pode assumir o papel de mártir e se ressentir quando os outros se aproveitam disso.\",\n \"en\": \"you may have blurred boundaries between your sense of self and other people, with great sensitivity to them but difficulty defining your own identity and direction. in some cases, you may take on the role of a martyr and resent it when others take advantage of that.\",\n \"keywords\": {\n \"pt\": [\n \"limites pouco nítidos entre si e os outros\",\n \"sensibilidade aos outros\",\n \"dificuldade de definir identidade e direção\",\n \"assumir o papel de mártir\",\n \"ressentimento quando outros se aproveitam disso\"\n ],\n \"en\": [\n \"blurred boundaries between self and others\",\n \"sensitivity to others\",\n \"difficulty defining identity and direction\",\n \"taking on the role of a martyr\",\n \"resentment when others take advantage of that\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1001,\n \"to\": 1010\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1038,\n \"to\": 1043\n }\n ],\n \"reviewNotes\": [\n \"A seção primária completa 999–1060 foi lida. As faixas adotadas 1001–1010 sustentam limites difusos, sensibilidade, identidade e direção pouco definidas; 1038–1043 sustenta, como possibilidade, assumir o papel de mártir e ressentir-se quando outros se aproveitam disso.\",\n \"Lidas, mas não adotadas: 1011–1018 sobre dissolução do self e sacrifício; 1019–1037 com explicações causais sobre vínculos maternos, infância e sugestão de terapia/autoexploração; 1044–1050 sobre mediunidade artística, inspiração, cura e redenção; 1051–1060 sobre proximidade ao Ascendente, nascimento, infância e saúde.\",\n \"Livro inspecionado somente em 60115–60500. Os blocos da casa 1 nomeiam o corpo em 60154–60162, 60168–60199 e 60227–60236, mas a composição é intercalada; nenhum claim ou keyword do livro foi adotado.\"\n ]\n },\n \"2\": {\n \"pt\": \"você pode sentir culpa por ganhar dinheiro ou acumular posses, ou, em sentido inverso, achar que o mundo lhe deve uma vida; você pode lidar com finanças e investimentos com confusão e nebulosidade. sua generosidade pode levá-lo a dar dinheiro a quem conta histórias tristes, enquanto talvez você permaneça insatisfeito mesmo depois de alcançar o status material que buscava.\",\n \"en\": \"you may feel guilty about earning money or accumulating possessions, or, conversely, feel that the world owes you a living; you may handle finances and investments with confusion and lack of clarity. your generosity may lead you to give money to people with sad stories, while you may remain dissatisfied even after reaching the material status you sought.\",\n \"keywords\": {\n \"pt\": [\n \"culpa por ganhar ou acumular\",\n \"sensação inversa de que o mundo deve sustento\",\n \"confusão e nebulosidade ao lidar com finanças e investimentos\",\n \"generosidade com histórias tristes\",\n \"insatisfação após alcançar status material\"\n ],\n \"en\": [\n \"guilt about earning or accumulating\",\n \"opposite feeling that the world owes support\",\n \"confusion and lack of clarity in handling finances and investments\",\n \"generosity toward sad stories\",\n \"dissatisfaction after reaching material status\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1063,\n \"to\": 1076\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1077,\n \"to\": 1082\n }\n ],\n \"reviewNotes\": [\n \"A seção primária completa 1061–1096 foi lida. As faixas 1063–1076 sustentam culpa por dinheiro/posses ou a possibilidade inversa, confusão financeira e generosidade diante de histórias tristes; 1077–1082 sustenta insatisfação possível mesmo após status material.\",\n \"Lidas, mas não adotadas: 1083–1087 com explicação espiritual, perda deliberada e redenção; 1088–1093 com dons, cura e listas de profissões; 1094–1096 sobre valor simbólico e emocional de objetos. Não se transformou flutuação possível ou exemplos da fonte em previsão individual de fraude, roubo ou perda.\",\n \"Livro inspecionado somente em 60115–60500. O cabeçalho deslocado 60249–60250 confirma a casa 2 para o corpo nomeado em 60251–60301, mas esse material não foi adotado. O resumo financeiro anterior em 60124–60126 não tem casa identificável no corpo com segurança.\"\n ]\n },\n \"3\": {\n \"pt\": \"você pode alternar entre pensamentos vagos e confusos e uma percepção excepcional das sutilezas do ambiente, percebendo nuances e significados por trás do que é dito. o desejo de ver o belo e o divino pode levar você a ignorar o que não se encaixa nessa visão, enquanto a abertura às opiniões alheias pode fazê-las parecer pensamentos próprios.\",\n \"en\": \"you may alternate between vague, confused thoughts and an exceptional perception of subtle features in your surroundings, sensing nuances and meanings behind what is said. the desire to see the beautiful and divine may lead you to overlook what does not fit that view, while openness to other people’s opinions may make them seem like your own thoughts.\",\n \"keywords\": {\n \"pt\": [\n \"pensamentos vagos e confusos\",\n \"percepção de sutilezas\",\n \"nuances e significados implícitos\",\n \"desejo de ver o belo e o divino\",\n \"ignorar o que não se encaixa nessa visão\",\n \"abertura às opiniões alheias\",\n \"opiniões alheias tomadas como próprias\"\n ],\n \"en\": [\n \"vague and confused thoughts\",\n \"perception of subtle features\",\n \"implicit nuances and meanings\",\n \"desire to see the beautiful and divine\",\n \"overlooking what does not fit that view\",\n \"openness to other people’s opinions\",\n \"taking others’ opinions as one’s own\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1105,\n \"to\": 1117\n }\n ],\n \"reviewNotes\": [\n \"A seção primária completa 1097–1145 foi lida. 1105–1109 sustenta a alternativa entre pensamento vago/confuso e percepção de sutilezas; 1110–1117 sustenta seletividade e abertura às opiniões alheias. O texto mantém os contrastes e possibilidades da fonte.\",\n \"Lidas, mas não adotadas: 1099–1104 com enquadramento metafísico; 1118–1126 com comunicação, escola, dislexia e alegações clínicas; 1127–1142 com narrativa biográfica envolvendo irmãos, morte, adoção, solidão e educação; 1143–1145 sobre ensino e crianças com dificuldades de aprendizagem.\",\n \"Livro inspecionado somente em 60115–60500. Fragmentos de comunicação e casa 3 em 60324–60327 e 60331–60381 estão intercalados com blocos de casa 4; os fragmentos incompletos não permitem atribuição segura. Nada do livro foi adotado.\"\n ]\n },\n \"4\": {\n \"pt\": \"você pode absorver e refletir as influências emocionais do ambiente ao redor e, em alguns casos, sua família pode ser tão envolvente que sua liberdade e identidade pessoal ficam comprometidas. com aspectos difíceis, Netuno pode indicar famílias que se separaram ou se dissolveram de alguma maneira.\",\n \"en\": \"you may absorb and reflect the emotional influences of your surroundings and, in some cases, your family may be so enmeshing that your freedom and personal identity are compromised. with difficult aspects, Neptune may indicate families that separated or dissolved in some way.\",\n \"keywords\": {\n \"pt\": [\n \"absorver e refletir influências do ambiente\",\n \"família envolvente\",\n \"liberdade e identidade pessoal comprometidas\",\n \"separação ou dissolução familiar com aspectos difíceis\"\n ],\n \"en\": [\n \"absorbing and reflecting environmental influences\",\n \"enmeshing family\",\n \"compromised freedom and personal identity\",\n \"family separation or dissolution with difficult aspects\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1148,\n \"to\": 1165\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1181,\n \"to\": 1185\n }\n ],\n \"reviewNotes\": [\n \"A seção primária completa 1146–1218 foi lida. 1148–1151 sustenta absorver/refletir o ambiente; 1152–1165 contém relatos contrastantes e a possibilidade de família envolvente com custo à liberdade/identidade; 1181–1185 mantém a condição explícita de aspectos difíceis para separação/dissolução familiar.\",\n \"Lidas, mas não adotadas: 1166–1180 com histórias biográficas e exemplos familiares; 1186–1205 com lares espirituais, atividades, alegações sobre pai/parente, dependência, saúde mental e paternidade; 1206–1215 com ansiedades espirituais, velhice, regressão e instruções; 1216–1218 com equivalência de Peixes na cúspide/Fundo do Céu, explicitamente não usada como equivalente de Netuno na casa 4.\",\n \"Livro inspecionado somente em 60115–60500. O cabeçalho deslocado de casa 4 aparece em 60329–60333; blocos identificados como casa 4 em 60383–60425 e 60445–60500 estão intercalados com casa 3 e fragmentos incompletos, sem atribuição confiável para adoção. Nenhuma alegação suplementar foi adotada.\"\n ]\n },\n \"5\": {\n \"pt\": \"você pode ter imaginação viva e gosto criativo, mas nem sempre encontra espaço para buscar o prazer que deseja. no amor, pode idealizar alguém ou se apaixonar por quem está distante; se houver aspectos difíceis, pode se sentir martirizado ao ser pai ou mãe.\",\n \"en\": \"you may have a vivid imagination and creative taste, yet not always find room to pursue the pleasure you want. in love, you may idealize someone or fall for someone out of reach; with difficult aspects, you may feel martyred by parenthood.\",\n \"keywords\": {\n \"pt\": [\n \"imaginação\",\n \"expressão criativa\",\n \"dificuldade em alcançar prazer\",\n \"idealização amorosa\",\n \"sentir-se martirizado ao ser pai ou mãe\"\n ],\n \"en\": [\n \"imagination\",\n \"creative expression\",\n \"difficulty attaining pleasure\",\n \"romantic idealization\",\n \"feeling martyred by parenthood\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1221,\n \"to\": 1227\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1237,\n \"to\": 1243\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1250,\n \"to\": 1254\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1258,\n \"to\": 1262\n }\n ],\n \"reviewNotes\": [\n \"Primary carries the adopted claims. House 5’s promised joy at 1225-1227 is framed as conditional on what the person wants to give matching what others need; wording does not promise a relationship or children outcome.\",\n \"Primary says that if difficult aspects are present, the person may feel martyred by parenthood (1258-1259). The entry preserves this as a subjective feeling and does not predict an outcome for parent or child. It omits claims about a child’s abilities, illness, loss, or healing.\",\n \"Inspected supplemental family 60538-60596. OCR/body broadly echoes creative imagination and idealized romance, but adds unsupported exceptional-arts, recreational mysticism, aura, therapy, and altered-state claims; none adopted. Its child-aura/parenting material at 60563-60570 was not adopted.\"\n ]\n },\n \"6\": {\n \"pt\": \"você pode sentir tensão entre a necessidade de ordem e o desejo de fluir sem limites, além de perceber com sensibilidade a atmosfera do trabalho. tarefas práticas podem parecer pouco atraentes ou virar foco excessivo, e no trabalho você pode se sacrificar, ser tratado como bode expiatório ou receber pedidos de salvação.\",\n \"en\": \"you may feel tension between the need for order and the wish to flow without limits, and you may be sensitive to the atmosphere at work. practical tasks may seem unappealing or become an excessive focus, and at work you may sacrifice yourself, be treated as a scapegoat, or receive pleas for rescue.\",\n \"keywords\": {\n \"pt\": [\n \"ordem e fluidez\",\n \"sensibilidade ao ambiente de trabalho\",\n \"tarefas práticas\",\n \"sacrifício no trabalho\",\n \"bode expiatório\"\n ],\n \"en\": [\n \"order and flow\",\n \"workplace sensitivity\",\n \"practical tasks\",\n \"work sacrifice\",\n \"scapegoating\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1274,\n \"to\": 1283\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1316,\n \"to\": 1323\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1324,\n \"to\": 1334\n }\n ],\n \"reviewNotes\": [\n \"Primary carries the adopted claims. Kept the house 6 contrast as a tension, not a resolution or generic positive balance.\",\n \"Inspected supplemental family 60597-60677. Body describes idealizing work, sensitivity to its emotional atmosphere, helping colleagues, self-sacrifice and possible exploitation, plus health-related material and spiritually meaningful routines. Only work-atmosphere sensitivity and sacrifice overlap; the primary wording is more specific, so supplemental claims were not adopted.\",\n \"Primary 1284-1315 makes medical, disease, diagnosis, and treatment claims, some internally qualified or explicitly rejecting planetary attribution. All health claims, exercises, treatments, and the disease analogy are omitted.\"\n ]\n },\n \"7\": {\n \"pt\": \"você pode idealizar o parceiro, depender dele para se sentir completo ou assumir o papel de quem vai salvá-lo. pode haver muito sacrifício nos vínculos, mas a fronteira entre altruísmo e aceitar ser tratado como capacho é difícil de definir.\",\n \"en\": \"you may idealize a partner, depend on them to feel complete, or take on the role of rescuing them. relationships may involve considerable sacrifice, but the boundary between altruism and letting yourself be treated as a doormat is hard to define.\",\n \"keywords\": {\n \"pt\": [\n \"idealização do parceiro\",\n \"dependência\",\n \"papel de salvador\",\n \"sacrifício\",\n \"limites do altruísmo\"\n ],\n \"en\": [\n \"partner idealization\",\n \"dependency\",\n \"rescuer role\",\n \"sacrifice\",\n \"limits of altruism\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1346,\n \"to\": 1356\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1358,\n \"to\": 1364\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1371,\n \"to\": 1376\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1378,\n \"to\": 1388\n }\n ],\n \"reviewNotes\": [\n \"Primary carries the adopted claims. It gives several distinct expressions, so the entry says 'may' and does not imply all patterns occur together.\",\n \"Inspected supplemental family 60678-60891. The OCR heading at 60678 says house 08, while interleaved body includes house 7 partner-idealization material and house 8 finances/intimacy. The later displaced heading at 60872 says house 07. Treated headings as unreliable and used body only for audit; no supplemental claims adopted.\",\n \"The primary's idealized romance, dependency, rescuing, sacrifice, and difficult altruism/doormat boundary are retained. Did not adopt its unsupported promise of spiritual harmony or imply a guaranteed relationship outcome.\"\n ]\n },\n \"8\": {\n \"pt\": \"você pode buscar na intimidade uma fusão que alivie a sensação de isolamento, e o sexo pode servir a necessidades psicológicas além do prazer físico. nas finanças compartilhadas, podem surgir complicações ou decepção; a forma construtiva ou destrutiva de vivenciar o intangível depende dos aspectos de Netuno.\",\n \"en\": \"you may seek a merging in intimacy that eases isolation, and sex may serve psychological needs beyond physical pleasure. shared finances may bring complications or disappointment; whether intangible experiences are constructive or destructive depends on Neptune’s aspects.\",\n \"keywords\": {\n \"pt\": [\n \"fusão na intimidade\",\n \"necessidades psicológicas\",\n \"complicações ou decepção nas finanças compartilhadas\",\n \"qualidade da experiência intangível conforme os aspectos\"\n ],\n \"en\": [\n \"merging in intimacy\",\n \"psychological needs\",\n \"shared-finance complications or disappointment\",\n \"quality of intangible experience by aspect\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1414,\n \"to\": 1428\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1441,\n \"to\": 1453\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1454,\n \"to\": 1465\n }\n ],\n \"reviewNotes\": [\n \"Primary carries the adopted claims. It describes sex as serving varied psychological purposes, including easing isolation or escaping other problems; the entry keeps this conditional and does not promise intimacy or relationship outcomes.\",\n \"Inspected supplemental family 60805-60891. OCR body interleaves house 7 and house 8 material: visible house 8 fragments concern shared resources and intimacy. The house 8 heading itself is displaced to 60678 and appears among house 7 content; the house 7 heading appears later at 60872. No supplemental claims adopted.\",\n \"Primary 1454-1456 describes sensitivity to feelings and hidden trends, then says the experience of intangible and non-material forces can be constructive or destructive depending on Neptune’s aspects. The entry preserves that condition on the quality of experience; it does not claim psychic ability, guidance, or premonition.\",\n \"Primary 1467-1473 includes self-destruction, substance misuse, death, and a cusp example. These are omitted as unsafe/unneeded; no Pisces cusp analogy is carried into the house placement.\",\n \"Applicability check: course-relative source modulo 4/aula 8 modulo 4/aula-8.md, lines 877-885, identifies the VIII house as fixed Water (884-885). This supports applying A10 1454-1456 to house 8; no cusp-sign-element prerequisite is being added, and this verification is not used as generic house description text.\"\n ]\n },\n \"9\": {\n \"pt\": \"você pode buscar salvação numa crença e desejar se unir a algo maior por devoção a uma filosofia, religião ou figura de mestre. se procura uma única resposta para tudo, você pode se desapontar com o sistema filosófico em que depositou essa esperança.\",\n \"en\": \"you may seek salvation in a belief and wish to unite with something greater through devotion to a philosophy, religion or teacher figure. if you seek a single answer to everything, you may be disappointed by the philosophical system in which you placed that hope.\",\n \"keywords\": {\n \"pt\": [\n \"salvação pela crença\",\n \"devoção filosófica ou religiosa\",\n \"união com algo maior\",\n \"busca de resposta única\",\n \"desapontamento condicionado à expectativa\"\n ],\n \"en\": [\n \"salvation through belief\",\n \"philosophical or religious devotion\",\n \"union with something greater\",\n \"search for a single answer\",\n \"disappointment conditioned by expectation\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1477,\n \"to\": 1480\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1492,\n \"to\": 1494\n }\n ],\n \"reviewNotes\": [\n \"A salvação é objeto de busca, não resultado prometido. Desapontamento conserva a condição de procurar uma única resposta para tudo (1492–1494); não foi inventada condição de maus aspectos para esse tema.\",\n \"A inflação espiritual em 1489–1491 exige maus aspectos, especialmente da casa 12; tema omitido inteiro, sem universalizar monopólio da verdade. Omitidos imitação do guru, rótulo de doença, exemplo privado da fonte, benefícios de doutrinas, fama, exemplos nomeados, viagens e parentes.\",\n \"Livro inspecionado em 60850–61282, não adotado; casa 9 explícita no corpo em 60901–60905, 60951 e 60989–60991. Inspiração filosófica/tolerância de crenças e compaixão jurídica do livro não foram combinadas mecanicamente com a busca de salvação e possível desapontamento da aula. Colunas 9/10 intercaladas.\"\n ]\n },\n \"10\": {\n \"pt\": \"você pode sentir incerteza sobre qual carreira seguir e ficar insatisfeito com um trabalho que não absorva nem inspire você por inteiro. você pode acreditar que sua salvação depende de encontrar o trabalho certo ou de servir às necessidades dos outros.\",\n \"en\": \"you may feel uncertain about which career to pursue and dissatisfied with work that does not fully absorb or inspire you. you may believe your salvation depends on finding the right work or serving other people’s needs.\",\n \"keywords\": {\n \"pt\": [\n \"incerteza profissional\",\n \"insatisfação com trabalho pouco absorvente\",\n \"busca de inspiração no trabalho\",\n \"salvação projetada no trabalho\",\n \"serviço às necessidades dos outros\"\n ],\n \"en\": [\n \"career uncertainty\",\n \"dissatisfaction with work that is not absorbing\",\n \"search for inspiration at work\",\n \"salvation projected onto work\",\n \"service to other people’s needs\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1545,\n \"to\": 1546\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1550,\n \"to\": 1550\n }\n ],\n \"reviewNotes\": [\n \"1545–1546 sustenta incerteza e insatisfação se o trabalho não for inteiramente absorvente/inspirador. 1550 sustenta crença em salvação pelo trabalho certo ou serviço, não garantia de redenção ou sucesso.\",\n \"Omitidas idealização pública, glamour, escândalo, carreiras, reconhecimento/remuneração insuficientes, exemplo privado de condenação, abandono de carreira por influências externas e promessa de expansão espiritual por sacrifício. Hipóteses maternas/familiares de 1555–1570 não foram convertidas em biografia.\",\n \"O título Peixes no Meio do Céu em 1527 é analogia distinta de Netuno natal na casa 10, sem alias. Livro inspecionado em 60850–61282, não adotado; casa 10 explícita no corpo em 60903–60907 e 60994–60996. Inspiração/idealização se aproximam parcialmente da aula, mas liderança compassiva e profissões de cura não foram importadas como atributos ou resultados.\"\n ]\n },\n \"11\": {\n \"pt\": \"você pode encontrar sentido em ajudar os outros por solidariedade e desejar participar de grupos que expressem seus ideais de verdade, justiça ou beleza. se Netuno tiver aspectos difíceis, você pode sofrer decepções com amigos e sentir que seus ideais de companheirismo foram traídos.\",\n \"en\": \"you may find meaning in helping others out of solidarity and wish to join groups that express your ideals of truth, justice or beauty. if Neptune has difficult aspects, you may experience disappointment through friends and feel that your ideals of companionship have been betrayed.\",\n \"keywords\": {\n \"pt\": [\n \"ajuda por solidariedade\",\n \"sentido no serviço\",\n \"ideais de verdade justiça ou beleza\",\n \"participação em grupos\",\n \"decepção com amigos sob aspectos difíceis\",\n \"sensação de ideais traídos\"\n ],\n \"en\": [\n \"helping out of solidarity\",\n \"meaning through service\",\n \"ideals of truth justice or beauty\",\n \"group participation\",\n \"disappointment through friends under difficult aspects\",\n \"feeling that ideals were betrayed\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1574,\n \"to\": 1579\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1582,\n \"to\": 1584\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1601,\n \"to\": 1602\n }\n ],\n \"reviewNotes\": [\n \"Altruísmo é descrito sem reduzir o servir a culpa infantil, conforme 1574–1579. O desejo de participar de grupos vem de 1582–1584; a citação normativa que termina em 1582 não foi adotada como instrução.\",\n \"Decepção e sensação de traição em 1601–1602 permanecem explicitamente condicionadas a aspectos difíceis. O bom ideal grupal que não se manifesta em 1591–1592 exige muitos maus aspectos, e amigos carinhosos em 1599 exige bons aspectos; ambos os temas foram omitidos com suas condições, sem promessa relacional.\",\n \"Omitidos exemplos nomeados, capacidade de cura, grupos psíquicos, autossacrifício, fuga social, manipulação para causar pena, conselhos de discriminação/definição de metas e responsabilidade abdicada. Nenhum resultado grupal positivo é garantido.\",\n \"Livro inspecionado em 60850–61282; casa 11 explícita no corpo em 61158–61165 e 61193–61194, apesar do cabeçalho deslocado em 61200–61203. Desafio de expectativas em grupos no livro não substitui ou remove a condição da decepção com amigos na aula. Nenhuma alegação suplementar adotada.\"\n ]\n },\n \"12\": {\n \"pt\": \"você pode se sentir inundado e sufocado por emoções e sentimentos que outras pessoas conseguem controlar com mais facilidade. você também pode se perder em sonhos acordados e fantasias, afastando-se da vida para habitar pequenos mundos que cria para si.\",\n \"en\": \"you may feel flooded and overwhelmed by emotions and feelings that other people can control more easily. you may also lose yourself in daydreams and fantasies, withdrawing from life to inhabit little worlds you create for yourself.\",\n \"keywords\": {\n \"pt\": [\n \"emoções avassaladoras\",\n \"dificuldade de conter sentimentos\",\n \"escapismo\",\n \"sonhos acordados e fantasias\",\n \"mundos próprios\"\n ],\n \"en\": [\n \"overwhelming emotions\",\n \"difficulty containing feelings\",\n \"escapism\",\n \"daydreams and fantasies\",\n \"self-created worlds\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1624,\n \"to\": 1625\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1645,\n \"to\": 1647\n }\n ],\n \"reviewNotes\": [\n \"1624–1625 limita a inundação emocional a alguns; a descrição preserva possibilidade com “pode”. Não se adota diagnóstico, depressão, drogas, exemplo nomeado ou incapacidade universal de controle.\",\n \"1645–1647 sustenta escapismo e fantasias que absorvem a pessoa em mundos próprios; a necessidade de reclusão que começa em 1647 e sua explicação de poeira psíquica em 1648–1649 não foram adotadas como prática ou fato energético.\",\n \"A orientação/inspiração pelo inconsciente em 1633–1639 depende de Netuno não estar muito mal aspectado; omitida junto com a condição, sem transformar sensibilidade em poder comprovado. Também omitidos memória ancestral e vidas passadas como fatos, visões ocultas, fronteiras dissolvidas, controle externo, rótulos clínicos, cura pela beleza, práticas e serviço como alívio da dor.\",\n \"Livro inspecionado em 60850–61282, não adotado; casa 12 confirmada no corpo em 61104–61110, 61130, 61186–61189 e 61236, com título em 61196 deslocado depois de grande parte do corpo. Intuição, cura espiritual e práticas do livro não foram usadas como compensação positiva para excesso emocional e escapismo da aula.\"\n ]\n }\n },\n \"pluto\": {\n \"1\": {\n \"pt\": \"quando sente seu progresso bloqueado, você pode remover estruturas da vida para abrir novas possibilidades; se não reconhece essa frustração e evita agir construtivamente sobre ela, pode levar outras pessoas a fazer esse rompimento por você. você também pode se proteger de modo discreto e usar sua forte vontade de modo construtivo ou destrutivo.\",\n \"en\": \"when you feel your progress is blocked, you may remove structures from your life to make room for new possibilities; if you do not acknowledge this frustration and avoid acting constructively on it, you may lead other people to make that break for you. you may also protect yourself discreetly and use your strong will constructively or destructively.\",\n \"keywords\": {\n \"pt\": [\n \"remover estruturas quando o progresso parece bloqueado\",\n \"agir indiretamente sem reconhecer a frustração\",\n \"proteção discreta\",\n \"vontade usada de modo construtivo ou destrutivo\"\n ],\n \"en\": [\n \"removing structures when progress seems blocked\",\n \"acting indirectly without recognizing frustration\",\n \"discreet self-protection\",\n \"will used constructively or destructively\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1695,\n \"to\": 1700\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1737,\n \"to\": 1740\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1748,\n \"to\": 1750\n }\n ],\n \"reviewNotes\": [\n \"A seção primária completa 1685–1752 foi lida. 1695–1700 sustenta remover estruturas quando o progresso parece bloqueado e, se a frustração não é reconhecida e uma ação construtiva é evitada, agir de modo a levar outra pessoa a fazer o rompimento; 1737–1740 sustenta proteção discreta; 1748–1750 sustenta a alternativa construtiva/destrutiva da vontade. A vulnerabilidade/ameaça e a resposta rude de 1703–1706 foram inspecionadas, mas não adotadas.\",\n \"Lidas, mas não adotadas: 1687–1694 com linguagem de criador/destruidor e motivações ocultas; 1707–1711 com identificação com o mal e alegoria religiosa; 1712–1736 com exemplos extremos, aparência, trânsitos/progressões, nascimento, traumas de infância e afirmações psicológicas; 1744–1747 com intensidade emocional, Ascendente e sexualidade; 1751–1752 com altos e baixos de vida.\",\n \"Livro inspecionado somente em 64352–64700. O bloco detalhado de casa 1 em 64436–64448 tem corpo nomeado como Plutão na Casa 1, mas está intercalado com casa 2; nenhum claim ou keyword suplementar foi adotado.\"\n ]\n },\n \"2\": {\n \"pt\": \"você pode sentir emoções fortes e apaixonadas em torno de dinheiro e segurança, usando recursos ou poder como forma de controlar outras pessoas ou de se proteger de um mundo percebido como ameaçador. pode acumular dinheiro por medo de que algo dissipe seus recursos e posses, e, se ficar excessivamente identificado com eles, pode inconscientemente provocar uma catástrofe que rompa esses vínculos externos.\",\n \"en\": \"you may feel strong, passionate emotions around money and security, using resources or power to control other people or protect yourself from a world perceived as threatening. you may accumulate money out of fear that something will dissipate your resources and possessions, and, if you become overly identified with them, may unconsciously bring about a catastrophe that breaks those external ties.\",\n \"keywords\": {\n \"pt\": [\n \"emoções fortes sobre dinheiro e segurança\",\n \"recursos ou poder como controle\",\n \"proteção contra ameaça percebida\",\n \"acumular por medo de perder recursos\",\n \"identificação excessiva com posses\",\n \"rompimento inconsciente de vínculos externos\"\n ],\n \"en\": [\n \"strong feelings about money and security\",\n \"resources or power as control\",\n \"protection against perceived threat\",\n \"accumulating from fear of losing resources\",\n \"overidentification with possessions\",\n \"unconscious rupture of external ties\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1760,\n \"to\": 1776\n }\n ],\n \"reviewNotes\": [\n \"A seção primária completa 1753–1786 foi lida. 1760–1767 sustenta emoções apaixonadas, motivações possíveis para dinheiro/poder, controle e segurança; 1768–1776 sustenta o temor de dissipação, acumulação e a possibilidade condicional de provocar inconscientemente uma catástrofe quando há identificação excessiva com posses.\",\n \"Lidas, mas não adotadas: 1755–1759 sobre profundidade da esfera material; 1777–1786 sobre contribuição social, talentos, transformação de objetos e lista de profissões. Não se converteu em alegação de vida passada de maus-tratos nem em previsão de pobreza/riqueza.\",\n \"Livro inspecionado somente em 64352–64700. O cabeçalho de casa 2 está ausente ou deslocado no início do corpo; a faixa 64438–64576 contém blocos intercalados e não sustenta reconstrução segura. Nada do livro foi adotado.\"\n ]\n },\n \"3\": {\n \"pt\": \"você pode ter uma mente profunda, penetrante e incisiva, com interesse em pesquisa e temas que outras pessoas consideram tabu; pode também usar o conhecimento para obter poder ou superioridade. sua fala pode atingir os pontos fracos dos outros; pensamentos obsessivos ou destrutivos podem fazer você temer o que dirá, enquanto o receio de se expor pode levá-lo a esconder o que se passa por dentro.\",\n \"en\": \"you may have a deep, penetrating, incisive mind, with an interest in research and topics other people consider taboo; you may also use knowledge to gain power or superiority. your speech may strike at others’ weak points; obsessive or destructive thoughts may make you fear what you will say, while fear of exposing yourself may lead you to hide what is going on inside.\",\n \"keywords\": {\n \"pt\": [\n \"mente profunda e penetrante\",\n \"pesquisa e temas tabu\",\n \"conhecimento como poder ou superioridade\",\n \"fala afiada\",\n \"sensibilidade às fraquezas alheias\",\n \"pensamentos obsessivos ou destrutivos\",\n \"medo de falar ou exposição\"\n ],\n \"en\": [\n \"deep and penetrating mind\",\n \"research and taboo topics\",\n \"knowledge as power or superiority\",\n \"sharp speech\",\n \"sensitivity to others’ weaknesses\",\n \"obsessive or destructive thoughts\",\n \"fear of speaking or exposure\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1789,\n \"to\": 1806\n }\n ],\n \"reviewNotes\": [\n \"A seção primária completa 1787–1838 foi lida. 1789–1793 sustenta mente profunda/penetrante, pesquisa e tabu; 1793–1797 limita a busca de poder/superioridade a alguns; 1801–1803 sustenta fala afiada e percepção de fraquezas; 1803–1806 distingue pensamentos obsessivos/destrutivos que podem gerar medo de falar do receio de exposição que pode levar à ocultação. Essas causas são mantidas separadas.\",\n \"Lidas, mas não adotadas: 1794–1801 com exemplos nomeados, ideias de impacto e poder das palavras; 1807–1825 com infância, culpa e vergonha, suicídio e tentativa de suicídio de pessoas nomeadas, saúde mental e orientação parental; 1826–1838 com narrativa ambiental, relação com irmãos/vizinhos/escola, viagens e influência sobre outras pessoas.\",\n \"Livro inspecionado somente em 64352–64700. O bloco identificado como casa 3 começa em 64578, mas suas linhas se entrelaçam explicitamente com alegações de casa 4 em 64580–64647; nada foi adotado.\"\n ]\n },\n \"4\": {\n \"pt\": \"você pode reprimir sentimentos profundos para se proteger, mas acabar dominado pelo que tenta manter escondido. ao se sentir vulnerável em casa, pode tentar controlar as pessoas ao redor; depois de um colapso, pode encontrar recursos inesperados para se reconstruir.\",\n \"en\": \"you may suppress deep feelings to protect yourself, but end up dominated by what you try to keep hidden. when you feel vulnerable at home, you may try to control those around you; after a collapse, you may find unexpected resources to rebuild yourself.\",\n \"keywords\": {\n \"pt\": [\n \"reprimir sentimentos profundos para se proteger\",\n \"ser dominado pelo que fica escondido\",\n \"tentar controlar os outros ao sentir vulnerabilidade em casa\",\n \"recursos inesperados para se reconstruir após um colapso\"\n ],\n \"en\": [\n \"suppressing deep feelings for self-protection\",\n \"being dominated by what remains hidden\",\n \"trying to control others when feeling vulnerable at home\",\n \"unexpected resources to rebuild after a collapse\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1841,\n \"to\": 1847\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1852,\n \"to\": 1855\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1861,\n \"to\": 1866\n }\n ],\n \"reviewNotes\": [\n \"A seção designada completa 1839–1889 foi lida. Embora o cabeçalho 1839 diga '(ESCORPIÃO NO MEIO DO CÉU)', o corpo em 1841–1866 nomeia repetidamente Plutão na casa 4 e descreve os temas como pertencentes à casa 4; a identidade do corpo, não o rótulo angular errado, fundamenta esta entrada.\",\n \"1841–1847 sustenta reprimir sentimentos profundos como defesa e ser dominado pelo que se tenta manter oculto. 1852–1855 trata separadamente da possibilidade de controle/manipulação diante de vulnerabilidade no lar; 1861–1866 descreve separadamente reorganização ou colapso e recursos de reconstrução. A redação não apresenta controle como causa de colapso nem afirma colapso familiar como evento.\",\n \"Lidas, mas não adotadas: 1848–1851 com linguagem de mergulho/transmutação; 1856–1860 com regras familiares, temor e metáforas; 1867–1871 com pai como figura; 1872–1880 com finais, exemplo biográfico, natureza e interesses; 1881–1887 com exemplos, depressão/doença, práticas, conselho e orientação; 1888–1889 com analogia de Escorpião no Fundo do Céu.\",\n \"Livro inspecionado somente em 64352–64700. Fragmentos de casa 4 em 64578–64647 e 64684–64700 estão intercalados com casa 3, sem continuidade segura; nenhuma alegação suplementar foi adotada.\"\n ]\n },\n \"5\": {\n \"pt\": \"você pode sentir uma necessidade obsessiva de ser importante, e tanto o orgulho inflado quanto a dúvida sobre o próprio valor podem levar a gestos extremos para provar sua força. nos romances, pode temer desejos intensos e tentar inibi-los ou buscar força por meio de conquistas e conflitos de poder.\",\n \"en\": \"you may feel an obsessive need to matter, and both inflated pride and doubt about your own worth can lead to extreme gestures to prove your strength. in romance, you may fear intense desires and try to inhibit them or seek strength through conquests and power conflicts.\",\n \"keywords\": {\n \"pt\": [\n \"necessidade obsessiva de importância\",\n \"valor próprio\",\n \"gestos extremos\",\n \"compulsão de poder nos romances\"\n ],\n \"en\": [\n \"obsessive need for importance\",\n \"self-worth\",\n \"extreme gestures\",\n \"power compulsion in romance\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1892,\n \"to\": 1898\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1948,\n \"to\": 1952\n }\n ],\n \"reviewNotes\": [\n \"The primary describes importance as potentially obsessive, with both inflated pride and weak self-worth as difficulties; extreme gestures to prove strength are a possibility, not an inevitable act.\",\n \"The adopted second sentence is limited to the primary’s romance passage at 1948-1952: desire may be feared and inhibited, or strength may be sought through sexual conquests and power conflicts. Creative trauma/blocks at 1920-1923 begin “later in life” and are excluded from this concise entry.\",\n \"Inspected supplemental family 64786-64841. The visible heading labels house 5 and the adjacent body largely discusses creative expression, control, romance, children, and self-transformation. Its claims are broad embellishments and were not adopted; primary is sufficient.\",\n \"Primary 1929-1947 contains claims about conception, pregnancy, abortion, trauma, and controlling children, plus a celebrity-specific family account at 1900-1909. These are omitted rather than generalized into a universal family biography or reproductive/medical prediction.\"\n ]\n },\n \"6\": {\n \"pt\": \"você pode trabalhar com dedicação intensa, mas a responsabilidade e a produtividade podem se tornar obsessões e dificultar a convivência com colegas. podem surgir irritação com quem não acompanha seu empenho, conflitos de poder com colegas ou autoridades e uma busca compulsiva por mudar métodos de trabalho.\",\n \"en\": \"you may work with intense dedication, but responsibility and productivity can become obsessions and make it harder to work alongside colleagues. irritation with people who do not share your effort, power conflicts with coworkers or authorities, and a compulsive drive to change work methods may arise.\",\n \"keywords\": {\n \"pt\": [\n \"dedicação intensa\",\n \"obsessão por produtividade\",\n \"irritação com colegas\",\n \"conflitos de poder\",\n \"mudança compulsiva de métodos\"\n ],\n \"en\": [\n \"intense dedication\",\n \"productivity obsession\",\n \"irritation with colleagues\",\n \"power conflicts\",\n \"compulsive change of methods\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 1987,\n \"to\": 2001\n }\n ],\n \"reviewNotes\": [\n \"The primary's work description supports both focused dedication and the uncomfortable possibility that conscientiousness/productivity become obsessive, with irritability and workplace power struggles. The wording presents tendencies, not guaranteed events.\",\n \"Primary 1958-1980 makes medical and psychosomatic claims; 1981-1986 describes anxiety and compulsive daily rituals; 2002-2007 includes losing/creating job departure situations and illness used to escape unwanted work; 2013-2017 includes irreversible injury/disability and moralized responsibility. These are not adopted as medical facts, practices, or universal predictions.\",\n \"Inspected supplemental family 64842-64895 under a visible house 6 heading. It discusses work intensity, transformation, career fields, health investigation, power dynamics and process improvement, but adds generic positive transformation themes; none is needed or adopted.\"\n ]\n },\n \"7\": {\n \"pt\": \"você pode encontrar nos vínculos íntimos complexos emocionais profundos e projetar no parceiro traços difíceis que não reconhece em si, enquanto teme ruptura e pode tentar controlar a relação. o poder pode ficar desequilibrado, e deixar o vínculo pode ser difícil por lealdade ou porque sua identidade está muito ligada a ele.\",\n \"en\": \"you may encounter deep emotional complexes in close relationships and project difficult traits you do not recognize in yourself onto a partner, while fearing a rupture and trying to control the relationship. power may become unequal, and leaving the bond may be difficult through loyalty or because your identity is closely tied to it.\",\n \"keywords\": {\n \"pt\": [\n \"complexos emocionais nos vínculos\",\n \"projeção\",\n \"medo de ruptura\",\n \"controle\",\n \"desequilíbrio de poder\",\n \"dificuldade de deixar o vínculo\"\n ],\n \"en\": [\n \"emotional complexes in relationships\",\n \"projection\",\n \"fear of rupture\",\n \"control\",\n \"unequal power\",\n \"difficulty leaving the bond\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2029,\n \"to\": 2039\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2040,\n \"to\": 2047\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2064,\n \"to\": 2074\n }\n ],\n \"reviewNotes\": [\n \"The primary describes possible projection, fear and control (2029-2051), unequal power (2064-2070), and difficulty leaving through loyalty or identity entanglement (2071-2074). Removed the generic end-versus-survival outcome contrast; no particular relationship outcome is promised.\",\n \"Inspected supplemental family 64896-65025. House 7 and house 8 labels are adjacent and their bodies interleave: e.g. the 64900 heading/body begins with house 7 wording, then house 8 themes, and later explicitly labels more house 7 dynamics. No supplemental claim is adopted because house identity is not reliably recoverable throughout this window.\",\n \"Primary 2052-2063 discusses provoking a partner to end a relationship and partner death/bereavement. Omitted to avoid treating rare events or bereavement as expected outcomes. Also omitted source imperatives and advice at 2048-2051 and 2061-2063.\"\n ]\n },\n \"8\": {\n \"pt\": \"você pode sentir tensão entre conter impulsos sexuais e agressivos e temer que eles passem a controlá-lo; quando negados, podem irromper de modo compulsivo, enquanto algumas pessoas conseguem dirigir a energia sexual para realizações. nos vínculos íntimos podem surgir disputas de poder; nas finanças compartilhadas, as complicações podem durar muito tempo, especialmente se Plutão estiver mal aspectado.\",\n \"en\": \"you may feel tension between restraining sexual and aggressive impulses and fearing they will control you; when denied, they may erupt compulsively, while some people can direct sexual energy into accomplishments. power struggles may arise in intimate bonds; shared-finance complications may last a long time, especially if Pluto is badly aspected.\",\n \"keywords\": {\n \"pt\": [\n \"impulsos sexuais e agressivos\",\n \"medo de perder o controle\",\n \"expressão compulsiva\",\n \"canalização em realizações\",\n \"disputas de poder\",\n \"complicações financeiras condicionadas\"\n ],\n \"en\": [\n \"sexual and aggressive impulses\",\n \"fear of losing control\",\n \"compulsive expression\",\n \"directing energy into accomplishments\",\n \"power struggles\",\n \"aspect-qualified financial complications\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2096,\n \"to\": 2102\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2111,\n \"to\": 2112\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2135,\n \"to\": 2143\n }\n ],\n \"reviewNotes\": [\n \"The primary frames restraint and denial of sex/aggression as possible routes to compulsive eruption (2096-2102), while 2111-2112 specifically says some people direct libido into accomplishments. It does not establish criminality, violence, or a guaranteed crisis.\",\n \"The primary frames restraint and denial of sex/aggression as possible routes to compulsive eruption, while some people direct energy into accomplishments. It does not establish criminality, violence, or a guaranteed crisis.\",\n \"The primary describes power struggles in relationships at 2135-2136 without an aspect condition. It separately says long-lasting complications may arise around shared money/inheritance/taxes/business/divorce, especially if Pluto is badly aspected (2140-2143); the description attaches that qualification only to the financial complications.\",\n \"Inspected supplemental family 64896-65025, but house 7/8 heading and body order is interleaved and OCR-damaged. Fragments that may concern house 8 include shared resources, emotional intensity, regeneration, and occult interests; none was adopted because identity/mapping is unreliable and primary support is sufficient.\",\n \"Primary 2119-2134 includes criminal examples and graphic violence; 2144-2168 includes death-risk, supernatural, and occult power claims. These were not adopted. No supernatural ability or dangerous outcome is asserted.\"\n ]\n },\n \"9\": {\n \"pt\": \"você pode buscar respostas religiosas ou filosóficas com voracidade, como se sua sobrevivência dependesse de compreender a existência. por medo de que outras ideias obriguem você a questionar suas crenças, pode agir com dogmatismo e tentar controlar aquilo em que os outros acreditam.\",\n \"en\": \"you may seek religious or philosophical answers voraciously, as though your survival depended on understanding existence. for fear that other ideas might force you to question your beliefs, you may act dogmatically and try to control what other people believe.\",\n \"keywords\": {\n \"pt\": [\n \"busca voraz de respostas\",\n \"crenças ligadas à sobrevivência\",\n \"medo de questionar crenças\",\n \"dogmatismo\",\n \"controle das crenças alheias\"\n ],\n \"en\": [\n \"voracious search for answers\",\n \"beliefs tied to survival\",\n \"fear of questioning beliefs\",\n \"dogmatism\",\n \"control of others’ beliefs\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2179,\n \"to\": 2184\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2194,\n \"to\": 2197\n }\n ],\n \"reviewNotes\": [\n \"A voracidade de respostas e o peso de sobrevivência vêm de 2179–2184. Dogmatismo e tentativa de controlar/converter outros em 2194–2197 conservam o motivo possível: medo de que contradições obriguem a questionar as próprias crenças. Não há condição de maus aspectos nesse trecho.\",\n \"Omitidas transformação genérica, crenças destruídas/reconstruídas, perseguição religiosa, diagnósticos/desespero, imagem divina, exemplos nomeados, benefícios do sofrimento e instruções filosóficas. O padrão inverso de desalento/niilismo em 2210–2221 foi omitido, sem apresentá-lo como simultâneo à busca voraz.\",\n \"Omitidos educação/viagens e eventos associados, doenças, projeção sobre outras culturas e familiares. A condição de aspecto difícil com a Lua em 2243 qualifica percepção de parentes, tema inteiro omitido.\",\n \"Livro inspecionado em 64970–65358, não adotado. Casa 9 explícita no corpo em 65100–65111 e 65162–65163; o título está em 65096. Busca de justiça/ética e transformação por conhecimento/viagens do livro não foram usadas para compensar a voracidade e o controle da aula; nada reconstruído.\"\n ]\n },\n \"10\": {\n \"pt\": \"você pode procurar uma carreira profundamente envolvente, significativa e estimulante. mesmo dizendo que não tem ambição, você pode se sentir pequeno diante de um mundo poderoso e frustrado com sua pouca influência ou com um trabalho entediante.\",\n \"en\": \"you may seek a deeply engaging, meaningful and stimulating career. even while saying you have no ambition, you may feel small before a powerful world and frustrated by your limited influence or a tedious job.\",\n \"keywords\": {\n \"pt\": [\n \"carreira envolvente\",\n \"trabalho significativo e estimulante\",\n \"ambição negada\",\n \"sensação de pequenez diante do mundo\",\n \"frustração com pouca influência ou tédio\"\n ],\n \"en\": [\n \"engaging career\",\n \"meaningful and stimulating work\",\n \"denied ambition\",\n \"feeling small before the world\",\n \"frustration with limited influence or boredom\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2286,\n \"to\": 2288\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2296,\n \"to\": 2299\n }\n ],\n \"reviewNotes\": [\n \"A busca de carreira envolvente/significativa vem de 2286–2288, sem promessa de realização. O segundo enunciado conserva o escopo do padrão ocasional de 2296–2299, pessoas que dizem não ter ambição mas se veem pequenas e frustradas com influência limitada/empregos chatos.\",\n \"Omitida a narrativa materna de 2247–2276: a própria fonte explicita projeção negativa unilateral em 2268 e alternativa positiva em seguida. Não se transformou mãe ameaçadora em biografia universal nem se generalizou controle/poder derivado dessa hipótese.\",\n \"Omitidos perda/mudança de carreira como eventos, exemplos nomeados, profissões, crime, segredo profissional e condição de vocação ligada ao uso dos poderes pelo grupo. Escorpião no Meio do Céu em 2245/2302 permanece analogia distinta, não alias de Plutão na casa 10.\",\n \"Livro inspecionado em 64970–65358, não adotado; corpo da casa 10 explícito em 65168–65172, 65181–65183 e 65191–65194. Resiliência garantida, reconhecimento e transformações genéricas não foram acrescentados como balanço positivo à frustração da aula.\"\n ]\n },\n \"11\": {\n \"pt\": \"você pode se sentir pouco à vontade em grupos e perceber o grupo como se ele estivesse tentando destruir você. se Plutão tiver um aspecto difícil, você pode abraçar compulsivamente uma causa após outra.\",\n \"en\": \"you may feel uncomfortable in groups and perceive the group as though it were trying to destroy you. if Pluto has a difficult aspect, you may compulsively embrace one cause after another.\",\n \"keywords\": {\n \"pt\": [\n \"desconforto em grupos\",\n \"percepção de ameaça pelo grupo\",\n \"aspecto difícil de Plutão\",\n \"adesão compulsiva a causas sucessivas\"\n ],\n \"en\": [\n \"discomfort in groups\",\n \"perceived threat from the group\",\n \"difficult Pluto aspect\",\n \"compulsive commitment to successive causes\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2311,\n \"to\": 2314\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2331,\n \"to\": 2335\n }\n ],\n \"reviewNotes\": [\n \"2311–2314 descreve desconforto e projeção de ameaça destrutiva sobre o grupo; o texto mantém percepção subjetiva, não afirma que o grupo efetivamente queira destruir a pessoa. Não foi adotado diagnóstico.\",\n \"A adesão compulsiva a causas sucessivas em 2331–2335 conserva a condição explícita de um aspecto difícil de Plutão. O convite a examinar motivos e a hipótese de mascarar medo de falta de propósito foram omitidos, sem transformar em conselho ou causa universal.\",\n \"Omitidos terapia de grupo, bode expiatório, infiltração, exemplos, promessas de amizade duradoura, traição e morte de amigos, rivalidade, conselhos e reorientação de metas. Confusão/isolamento no coletivo em 2358–2364 exige muitos maus aspectos; esse tema foi omitido junto com sua condição, não confundido com a condição singular do ativismo.\",\n \"Livro inspecionado em 64970–65358, não adotado. Casa 11 explícita no corpo em 65219–65231 e 65275–65291; título em 65211 se intercala com título de 12 em 65213. Liderança transformadora e influência positiva comunitária não foram usadas para neutralizar a ameaça percebida/compulsão da aula.\"\n ]\n },\n \"12\": {\n \"pt\": \"por medo de ser tomado pela intensidade de seus desejos mais profundos, você pode exercer um controle rígido que também reprime impulsos positivos e suas possibilidades de realização. você pode desejar crescer e, ao mesmo tempo, temer mudanças por senti-las como a dissolução de quem já sabe ser.\",\n \"en\": \"for fear of being overwhelmed by the intensity of your deepest desires, you may exert rigid control that also suppresses positive impulses and your possibilities for fulfillment. you may want to grow while fearing change because it feels like the dissolution of who you already know yourself to be.\",\n \"keywords\": {\n \"pt\": [\n \"medo da intensidade dos desejos\",\n \"controle rígido\",\n \"repressão de impulsos positivos\",\n \"possibilidades de realização inibidas\",\n \"desejo de crescer e medo de mudar\"\n ],\n \"en\": [\n \"fear of intense desires\",\n \"rigid control\",\n \"suppression of positive impulses\",\n \"inhibited possibilities for fulfillment\",\n \"desire to grow and fear of change\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2367,\n \"to\": 2378\n },\n {\n \"file\": \"modulo 4/aula 10 modulo 4/aula-10.md\",\n \"from\": 2379,\n \"to\": 2385\n }\n ],\n \"reviewNotes\": [\n \"O medo de desejos intensos e o controle que também suprime impulsos positivos vêm de 2367–2378. O segundo enunciado preserva desejo de crescimento versus ansiedade pela dissolução do conhecido em 2379–2385; crescimento é explicitamente mencionado aqui, não um complemento genérico positivo.\",\n \"A comparação da mudança à morte é explicação existencial da fonte; não virou previsão de morte ou diagnóstico. Omitidos rótulos clínicos, exemplos e a exigência de reconhecer medo da morte para viver plenamente.\",\n \"Omitidas práticas/terapia/exercícios e promessas de integração em 2387–2401. A capacidade investigativa de 2396–2398 depende de lidar com ansiedade da morte, e foi omitida com a condição, sem garantir autoconhecimento. Omitidos autodestruição, metáfora médica, família/doença/violência, energias coletivas como fato, reformas institucionais, cárcere e fortalecimento pelo sofrimento.\",\n \"Escorpião na cúspide em 2456–2457 não foi usado como alias. Livro inspecionado em 64970–65358, não adotado; casa 12 explícita no corpo em 65221–65233, 65285–65302 e 65339–65342. Cura, karma, purificação energética e renascimento espiritual do livro não foram adicionados como resultados ou poderes verificados; colunas 11/12 intercaladas.\"\n ]\n }\n }\n },\n \"houses\": {\n \"1\": {\n \"pt\": \"na casa 1, você encontra os temas da autoimagem e da imagem que os outros têm de você. essa área também abrange identidade, independência, iniciativa e corpo físico.\",\n \"en\": \"in house 1, you find the themes of self-image and the image others have of you. this area also covers identity, independence, initiative and the physical body.\",\n \"keywords\": {\n \"pt\": [\n \"autoimagem\",\n \"imagem que os outros têm de você\",\n \"identidade\",\n \"independência\",\n \"iniciativa\",\n \"corpo físico\"\n ],\n \"en\": [\n \"self-image\",\n \"image others have of you\",\n \"identity\",\n \"independence\",\n \"initiative\",\n \"physical body\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 6 modulo 4/aula-6.md\",\n \"from\": 6,\n \"to\": 8\n }\n ],\n \"reviewNotes\": [\n \"modulo 4/aula 6 modulo 4/aula-6.md:6-8 supports self-image, the image others have of you, identity, independence, initiative and body as domains. The conditional negative self-assertion branch at modulo 4/aula 8 modulo 4/aula-8.md:832-833,837-840 was inspected but is not adopted; no excessive behavior is inferred.\",\n \"Livro inspecionado apenas em 21562–21639. O OCR atribui alguns blocos à casa 1 no corpo, mas intercala frases e rótulos, inclusive a associação com Ascendente em 21562–21565. Nenhum detalhe do livro foi adotado nem Ascendente foi tratado como sinônimo automático da casa 1.\"\n ]\n },\n \"2\": {\n \"pt\": \"na casa 2, você encontra temas de segurança financeira, dinheiro, bens pessoais, recompensa pelo esforço, valor pessoal e bens emocionais ou sentimentais. sob aflição e má aspectação dos planetas regentes, essa área pode expressar obstinação e cobiça.\",\n \"en\": \"in the second house, you find themes of financial security, money, personal possessions, reward for effort, personal value, and emotional or sentimental belongings. under affliction and poor aspects to the ruling planets, this area may express stubbornness and greed.\",\n \"keywords\": {\n \"pt\": [\n \"segurança financeira e dinheiro\",\n \"bens pessoais\",\n \"recompensa pelo esforço\",\n \"sentido de valor\",\n \"bens emocionais e sentimentais\",\n \"obstinação e cobiça sob aflição dos regentes\"\n ],\n \"en\": [\n \"financial security and money\",\n \"personal possessions\",\n \"reward for effort\",\n \"sense of value\",\n \"emotional and sentimental belongings\",\n \"stubbornness and greed under affliction to rulers\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 6 modulo 4/aula-6.md\",\n \"from\": 9,\n \"to\": 11\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 832,\n \"to\": 833\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 848,\n \"to\": 851\n }\n ],\n \"reviewNotes\": [\n \"A6:9–11 foi lido; adotados segurança financeira, dinheiro, bens pessoais, recompensa pelo esforço, sentido de valor e bens emocionais/sentimentais. A6 chama a palavra-chave de 'Herança Genética e Finanças'; herança genética não foi transformada em alegação causal ou corporal. A8:832–833 qualifica expressões negativas pela aflição e má aspectação dos regentes; A8:848–851 sustenta trabalho/produção, relações materiais/financeiras, bens de sustentação e, sob condição negativa, obstinação/cobiça.\",\n \"Livro inspecionado apenas em 21719–21792. Os trechos financeiros e de recursos são amplamente intercalados e corrompidos pelo OCR; nenhum claim foi adotado.\"\n ]\n },\n \"3\": {\n \"pt\": \"na casa 3, você encontra temas de comunicação com o ambiente próximo, interesses mentais, instrução, viagens curtas, irmãos, irmãs e vizinhos. sob aflição e má aspectação dos planetas regentes, essa área pode expressar inconstância e superficialidade.\",\n \"en\": \"in the third house, you find themes of communication with the immediate environment, mental interests, instruction, short journeys, siblings, and neighbors. under affliction and poor aspects to the ruling planets, this area may express inconsistency and superficiality.\",\n \"keywords\": {\n \"pt\": [\n \"comunicação com o ambiente próximo\",\n \"interesses mentais e instrução\",\n \"viagens curtas\",\n \"irmãos, irmãs e vizinhos\",\n \"inconstância e superficialidade sob aflição dos regentes\"\n ],\n \"en\": [\n \"communication with the immediate environment\",\n \"mental interests and instruction\",\n \"short journeys\",\n \"siblings and neighbors\",\n \"inconsistency and superficiality under affliction to rulers\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 6 modulo 4/aula-6.md\",\n \"from\": 12,\n \"to\": 15\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 832,\n \"to\": 833\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 862,\n \"to\": 866\n }\n ],\n \"reviewNotes\": [\n \"A6:12–15 foi lido; adotados comunicação com o ambiente próximo, interesses mentais, instrução, viagens curtas, irmãos/irmãs e vizinhos. A8:832–833 qualifica expressões negativas pela aflição e má aspectação dos regentes; A8:862–866 sustenta entendimento, interação cotidiana, mente concreta, estudos básicos, comunicação, parentes e viagens curtas, com inconstância/superficialidade condicionais.\",\n \"A8 repete o parágrafo da casa 3 em 873–876; foi inspecionado como duplicata, sem ampliar a faixa adotada. Livro inspecionado apenas em 21868–21940; o corpo identifica casa 3, mas as colunas e frases aparecem intercaladas. Nenhum claim suplementar foi adotado.\"\n ]\n },\n \"4\": {\n \"pt\": \"na casa 4, você encontra os temas do lar, da família, dos clãs e da segurança. essa área também abrange raízes ancestrais e raciais e condicionamentos psicológicos.\",\n \"en\": \"in house 4, you find the themes of home, family, clans and security. this area also covers ancestral and racial roots and psychological conditioning.\",\n \"keywords\": {\n \"pt\": [\n \"lar\",\n \"família e clãs\",\n \"segurança\",\n \"raízes ancestrais e raciais\",\n \"condicionamentos psicológicos\"\n ],\n \"en\": [\n \"home\",\n \"family and clans\",\n \"security\",\n \"ancestral and racial roots\",\n \"psychological conditioning\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 6 modulo 4/aula-6.md\",\n \"from\": 17,\n \"to\": 19\n }\n ],\n \"reviewNotes\": [\n \"modulo 4/aula 6 modulo 4/aula-6.md:17-19 supports home, family, clans and security, with roots and conditioning as secondary domains. Family is broad and is not restricted to blood relations. The opposite-sex parent at line 18 and mother at modulo 4/aula 8 modulo 4/aula-8.md:882 remain unadopted pending Mat’s parental convention. The conditional negative branch at 832-833,883 is inspected but omitted.\",\n \"Livro inspecionado apenas em 22001–22040. Os blocos nomeiam casa 4 no próprio corpo, mas estão intercalados/corrompidos; títulos a associam a IC/Fundo do Céu. Nenhum claim suplementar foi adotado e não se fez alias automático entre casa 4 e IC.\"\n ]\n },\n \"5\": {\n \"pt\": \"no seu mapa, a casa 5 reúne os temas dos hobbies, dos prazeres e do lazer. também abrange autoexpressão criativa, artes, romance, filhos, jogos, riscos e especulações.\",\n \"en\": \"in your chart, house 5 brings together the themes of hobbies, pleasures and leisure. it also covers creative self-expression, arts, romance, children, games, risks and speculation.\",\n \"keywords\": {\n \"pt\": [\n \"lazer e hobbies\",\n \"autoexpressão criativa\",\n \"artes\",\n \"romance\",\n \"filhos\",\n \"jogos e especulações\"\n ],\n \"en\": [\n \"leisure and hobbies\",\n \"creative self-expression\",\n \"arts\",\n \"romance\",\n \"children\",\n \"games and speculation\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 6 modulo 4/aula-6.md\",\n \"from\": 20,\n \"to\": 22\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 841,\n \"to\": 842\n }\n ],\n \"reviewNotes\": [\n \"This is the house's thematic domain, not a claim that a person with planets here necessarily has children, a romance, or a particular creative outcome.\",\n \"Inspected supplemental family 22134-22210. OCR fragments under the house 5 body identify creativity, self-expression, romance, children/fertility, hobbies/leisure, and games/speculation. These overlap the primary but add no necessary claims; no supplemental source adopted.\"\n ]\n },\n \"6\": {\n \"pt\": \"no seu mapa, a casa 6 reúne os temas da saúde e da dieta, da rotina e do trabalho. também abrange tarefas, deveres, emprego, serviço, empregados, dependentes e animais de estimação.\",\n \"en\": \"in your chart, house 6 brings together the themes of health and diet, routine and work. it also covers tasks, duties, employment, service, employees, dependents and pets.\",\n \"keywords\": {\n \"pt\": [\n \"saúde e dieta\",\n \"trabalho e emprego\",\n \"tarefas e deveres\",\n \"serviço\",\n \"animais de estimação\",\n \"empregados e dependentes\",\n \"rotina\"\n ],\n \"en\": [\n \"health and diet\",\n \"work and employment\",\n \"tasks and duties\",\n \"service\",\n \"pets\",\n \"employees and dependents\",\n \"routine\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 6 modulo 4/aula-6.md\",\n \"from\": 23,\n \"to\": 25\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 852,\n \"to\": 855\n }\n ],\n \"reviewNotes\": [\n \"Health and diet are named as house topics, not health predictions, diagnoses, or instructions. The source's negative expression at 854-855 is conditional on negative cases, governed by A8's general qualification at 832-833 (affliction and poor aspect of ruling planets); no negative personal trait was adopted.\",\n \"Inspected supplemental family 22356-22425. The visible CASA 06 block/body covers work, health, daily habits, service, routine, pets, adaptation and analysis/criticism; fragments are interrupted and interleaved. No supplemental material is needed or adopted, and its advice about exercise/prevention is not carried over.\"\n ]\n },\n \"7\": {\n \"pt\": \"no seu mapa, a casa 7 reúne seus vínculos íntimos e parcerias, incluindo casamento, cooperação e sociedades comerciais. também abrange conflitos abertos e inimigos declarados, ao lado de harmonias e acordos.\",\n \"en\": \"in your chart, the seventh house brings together your intimate bonds and partnerships, including marriage, cooperation and business partnerships. it also covers open conflicts and declared enemies, alongside harmony and agreements.\",\n \"keywords\": {\n \"pt\": [\n \"relações íntimas\",\n \"casamento\",\n \"cooperação\",\n \"sociedades comerciais\",\n \"inimigos declarados\",\n \"harmonias e conflitos\"\n ],\n \"en\": [\n \"intimate relationships\",\n \"marriage\",\n \"cooperation\",\n \"business partnerships\",\n \"declared enemies\",\n \"harmony and conflict\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 6 modulo 4/aula-6.md\",\n \"from\": 26,\n \"to\": 28\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 867,\n \"to\": 869\n }\n ],\n \"reviewNotes\": [\n \"These are general house topics, not predictions of a marriage, partnership, enemy, legal issue, or relationship outcome. A8's negative-case legal issues and levity are conditional under 832-833; they were omitted.\",\n \"Inspected supplemental family 22433-22505. The body is recognizably house 7 and covers intimate relations, marriage, business partnerships, contracts, cooperation, declared enemies and projection. Only the primary-supported thematic core was adopted; advice and unsupported additions were excluded.\"\n ]\n },\n \"8\": {\n \"pt\": \"no seu mapa, a casa 8 reúne os temas da sexualidade, das iniciações e do envolvimento profundo com outras pessoas, suas emoções e seus recursos. também abrange legados, investimentos, seguros, nascimento, morte e renascimento, mudanças de consciência, sonhos e psicologia profunda.\",\n \"en\": \"in your chart, house 8 brings together the themes of sexuality, initiations and deep involvement with other people, their emotions and their resources. it also covers legacies, investments, insurance, birth, death and rebirth, changes in consciousness, dreams and depth psychology.\",\n \"keywords\": {\n \"pt\": [\n \"vínculos profundos\",\n \"iniciações\",\n \"sexualidade\",\n \"emoções e recursos compartilhados\",\n \"legados e investimentos\",\n \"seguros\",\n \"nascimento, morte e renascimento\",\n \"consciência e sonhos\",\n \"psicologia profunda\"\n ],\n \"en\": [\n \"deep bonds\",\n \"initiations\",\n \"sexuality\",\n \"shared emotions and resources\",\n \"legacies and investments\",\n \"insurance\",\n \"birth, death and rebirth\",\n \"consciousness and dreams\",\n \"depth psychology\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 6 modulo 4/aula-6.md\",\n \"from\": 29,\n \"to\": 33\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 884,\n \"to\": 885\n }\n ],\n \"reviewNotes\": [\n \"Birth, death and rebirth are neutral thematic domains in the primary list, not mortality or reproductive predictions. A8 also names transformation, changed states of consciousness and dreams at 884-885; its negative expression of sadism/death is conditional under 832-833 and is not included.\",\n \"Inspected supplemental family 22518-22585. Body text under the visible house 8 heading includes death/rebirth, sexuality, shared resources, crises, transformation, psychology and occult topics, but OCR columns interleave and fragment clauses. No supplemental claims adopted; primary is sufficient.\"\n ]\n },\n \"9\": {\n \"pt\": \"na casa 9, você encontra os temas das viagens longas, dos contatos com outros países e dos estudos aprofundados. essa área também abrange filosofia, religião, ideais e o sentido das leis.\",\n \"en\": \"in house 9, you find the themes of long journeys, contact with other countries and advanced studies. this area also covers philosophy, religion, ideals and the meaning of laws.\",\n \"keywords\": {\n \"pt\": [\n \"viagens longas\",\n \"estudos aprofundados\",\n \"filosofia\",\n \"religião\",\n \"ideais\",\n \"leis\"\n ],\n \"en\": [\n \"long journeys\",\n \"advanced studies\",\n \"philosophy\",\n \"religion\",\n \"ideals\",\n \"laws\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 6 modulo 4/aula-6.md\",\n \"from\": 34,\n \"to\": 36\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 843,\n \"to\": 844\n }\n ],\n \"reviewNotes\": [\n \"Aula 6:34-37 and aula 8:843-845 inspected; adopted only the thematic domains at modulo 4/aula 6 modulo 4/aula-6.md:34-36 and modulo 4/aula 8 modulo 4/aula-8.md:843-844, not a personal disposition or prediction.\",\n \"modulo 4/aula 8 modulo 4/aula-8.md:832-833 conditions negative expressions on afflicted and poorly-aspected ruling planets; the negative expressions at 844-845 are not adopted.\",\n \"books/astrologia-hermetica/astrologia-hermetica.md:22600-22690 inspected only, not adopted or cited in src. Body lines 22600-22614 explicitly identify house 9; later text is interleaved, including 22629-22640 and 22642-22658. No OCR reconstruction or supplemental expansion.\"\n ]\n },\n \"10\": {\n \"pt\": \"na casa 10, você encontra os temas da profissão, da carreira e da realização profissional. essa área também abrange projeção social, status, contribuição à sociedade, vocações e aptidões.\",\n \"en\": \"in house 10, you find the themes of profession, career and professional fulfillment. this area also covers social visibility, status, contribution to society, vocations and aptitudes.\",\n \"keywords\": {\n \"pt\": [\n \"profissão\",\n \"carreira\",\n \"realização profissional\",\n \"projeção social\",\n \"contribuição social\",\n \"vocações e aptidões\"\n ],\n \"en\": [\n \"profession\",\n \"career\",\n \"professional fulfillment\",\n \"social visibility\",\n \"social contribution\",\n \"vocations and aptitudes\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 6 modulo 4/aula-6.md\",\n \"from\": 38,\n \"to\": 40\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 857,\n \"to\": 858\n }\n ],\n \"reviewNotes\": [\n \"modulo 4/aula 6 modulo 4/aula-6.md:38-40 and modulo 4/aula 8 modulo 4/aula-8.md:857-859 inspected; only career, social and vocation domains adopted. Mission, future and destiny are not converted into promised outcomes.\",\n \"Parent convention pending Mat reply: same-sex parent at modulo 4/aula 6 modulo 4/aula-6.md:39 is omitted. No parental gender assignment selected; the supplied A6 house 4 versus A8 house 4 disagreement remains unresolved and outside this assigned reading.\",\n \"modulo 4/aula 8 modulo 4/aula-8.md:832-833 conditions negative expressions on afflicted and poorly-aspected ruling planets; the negative expressions at 858-859 are not adopted.\",\n \"books/astrologia-hermetica/astrologia-hermetica.md:22712-22790 inspected only, not adopted or cited in src. Body 22716-22726 explicitly identifies house 10. The isolated IC at 22714, Meio do Céu label at 22718-22720 and damaged text at 22774-22790 establish no angle alias. Father attribution at 22748-22753 is unadopted pending the parental convention.\"\n ]\n },\n \"11\": {\n \"pt\": \"na casa 11, você encontra os temas das amizades, dos grupos, das associações e da fraternidade. essa área também abrange projetos, esperanças, objetivos amplos e interesses altruístas.\",\n \"en\": \"in house 11, you find the themes of friendships, groups, associations and fellowship. this area also covers projects, hopes, broad goals and altruistic interests.\",\n \"keywords\": {\n \"pt\": [\n \"amizades\",\n \"grupos\",\n \"associações\",\n \"fraternidade\",\n \"projetos\",\n \"esperanças\",\n \"altruísmo\"\n ],\n \"en\": [\n \"friendships\",\n \"groups\",\n \"associations\",\n \"fellowship\",\n \"projects\",\n \"hopes\",\n \"altruism\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 6 modulo 4/aula-6.md\",\n \"from\": 41,\n \"to\": 42\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 870,\n \"to\": 871\n }\n ],\n \"reviewNotes\": [\n \"modulo 4/aula 6 modulo 4/aula-6.md:41-43 and modulo 4/aula 8 modulo 4/aula-8.md:870-872 inspected; only thematic domains adopted, not claims about the reader having particular friends or outcomes.\",\n \"Exaltações at modulo 4/aula 6 modulo 4/aula-6.md:43 is ambiguous and unadopted; it supplies no dignity convention. Protections and teachers at modulo 4/aula 8 modulo 4/aula-8.md:871 are unadopted for concision.\",\n \"modulo 4/aula 8 modulo 4/aula-8.md:832-833 conditions negative expressions on afflicted and poorly-aspected ruling planets; the negative expressions at 871-872 are not adopted.\",\n \"books/astrologia-hermetica/astrologia-hermetica.md:22863-22945 inspected only, not adopted or cited in src. Body 22863-22872 explicitly identifies house 11; text is interleaved at 22885-22915 and 22922-22941. No reconstruction, technology expansion or promised network rewards adopted.\"\n ]\n },\n \"12\": {\n \"pt\": \"na casa 12, você encontra os temas das vidas passadas, da memória ancestral e da vida interior, com contemplação e misticismo. essa área também abrange trabalho solitário, sacrifício, renúncia, relações ocultas e instituições como hospitais, prisões e abrigos.\",\n \"en\": \"in house 12, you find the themes of past lives, ancestral memory and inner life, with contemplation and mysticism. this area also covers solitary work, sacrifice, renunciation, hidden relationships and institutions such as hospitals, prisons and shelters.\",\n \"keywords\": {\n \"pt\": [\n \"vidas passadas\",\n \"vida interior\",\n \"contemplação\",\n \"misticismo\",\n \"memória ancestral\",\n \"trabalho solitário\",\n \"renúncia\",\n \"instituições\"\n ],\n \"en\": [\n \"past lives\",\n \"inner life\",\n \"contemplation\",\n \"mysticism\",\n \"ancestral memory\",\n \"solitary work\",\n \"renunciation\",\n \"institutions\"\n ]\n },\n \"src\": [\n {\n \"file\": \"modulo 4/aula 6 modulo 4/aula-6.md\",\n \"from\": 44,\n \"to\": 49\n },\n {\n \"file\": \"modulo 4/aula 8 modulo 4/aula-8.md\",\n \"from\": 886,\n \"to\": 887\n }\n ],\n \"reviewNotes\": [\n \"modulo 4/aula 6 modulo 4/aula-6.md:44-49 and modulo 4/aula 8 modulo 4/aula-8.md:877-879,886-888 inspected; only the stated domains adopted. Institutional themes describe no personal confinement, illness or relationship outcome.\",\n \"modulo 4/aula 6 modulo 4/aula-6.md:48-49 explicitly names past lives and conscious, subconscious and unconscious mind as source themes. Past lives is adopted strictly as a house domain, not literal personal history. The mind-level list is omitted and is not a clinical model. Repressions and neuroses at line 46 are not adopted as diagnoses.\",\n \"modulo 4/aula 8 modulo 4/aula-8.md:832-833 conditions negative expressions on afflicted and poorly-aspected ruling planets; self-abandonment, isolation and illusion at 887-888 are not adopted. Water-house grouping at 877-879 supplies no generic element profile here.\",\n \"books/astrologia-hermetica/astrologia-hermetica.md:22981-23106 inspected only, not adopted or cited in src. Body 22981-22990 explicitly identifies house 12; broken or interleaved material at 23006-23055 and 23073-23106 is not reconstructed. Healing and therapy claims at 22995-22998,23065-23071 are unadopted; no advice, clinical model or promised health outcome.\"\n ]\n }\n }\n}\n","import raw from \"./descriptions.json\";\nimport type { Sign } from \"./dignity\";\n\n/** Lowercase chart planet keys; authored coverage varies by factor kind. */\nexport type DescriptionPlanet =\n | \"sun\" | \"moon\" | \"mercury\" | \"venus\" | \"mars\"\n | \"jupiter\" | \"saturn\" | \"uranus\" | \"neptune\" | \"pluto\";\n\nexport interface PlanetSignDescriptionEntry {\n readonly pt: string;\n readonly en: string;\n readonly keywords: {\n readonly pt: readonly string[];\n readonly en: readonly string[];\n };\n readonly src: readonly {\n readonly file: string;\n readonly from: number;\n readonly to: number;\n }[];\n readonly reviewNotes: readonly string[];\n}\n\nexport type DescriptionHouseNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport type PlanetHouseDescriptionEntry = PlanetSignDescriptionEntry;\nexport type HouseDescriptionEntry = PlanetSignDescriptionEntry;\n\nexport interface AstrologyDescriptions {\n readonly planetSigns: Readonly<\n Partial<Record<DescriptionPlanet, Readonly<Partial<Record<Sign, PlanetSignDescriptionEntry>>>>>\n >;\n readonly planetHouses: Readonly<\n Partial<Record<DescriptionPlanet, Readonly<Partial<Record<DescriptionHouseNumber, PlanetHouseDescriptionEntry>>>>>\n >;\n readonly houses?: Readonly<Partial<Record<DescriptionHouseNumber, HouseDescriptionEntry>>>;\n}\n\n/** Imported JSON is shared process-wide, including all nested metadata. */\nfunction freeze<T>(value: T): T {\n if (value !== null && typeof value === \"object\") {\n for (const child of Object.values(value)) freeze(child);\n Object.freeze(value);\n }\n return value;\n}\n\nexport const ASTROLOGY_DESCRIPTIONS: AstrologyDescriptions = freeze(raw);\n\n/** Return the immutable authored entry; inherited keys are never descriptions. */\nexport function getPlanetSignDescriptionEntry(\n planet: DescriptionPlanet,\n sign: Sign,\n): PlanetSignDescriptionEntry | undefined {\n const planets = ASTROLOGY_DESCRIPTIONS.planetSigns;\n if (!Object.prototype.hasOwnProperty.call(planets, planet)) return undefined;\n const signs = planets[planet];\n if (!signs) return undefined;\n if (!Object.prototype.hasOwnProperty.call(signs, sign)) return undefined;\n return signs[sign];\n}\n\n/** English by default; Portuguese for locale strings starting with `pt`. */\nexport function getPlanetSignDescription(\n planet: DescriptionPlanet,\n sign: Sign,\n language?: string,\n): string | undefined {\n const entry = getPlanetSignDescriptionEntry(planet, sign);\n return language?.startsWith(\"pt\") ? entry?.pt : entry?.en;\n}\n\n/** Chart house numbers are one-based; missing placements have no profile fallback. */\nexport function getPlanetHouseDescriptionEntry(\n planet: DescriptionPlanet,\n house: number,\n): PlanetHouseDescriptionEntry | undefined {\n if (!Number.isInteger(house) || house < 1 || house > 12) return undefined;\n const planets = ASTROLOGY_DESCRIPTIONS.planetHouses;\n if (!Object.prototype.hasOwnProperty.call(planets, planet)) return undefined;\n const houses = planets[planet];\n if (!houses || !Object.prototype.hasOwnProperty.call(houses, house)) return undefined;\n return houses[house as DescriptionHouseNumber];\n}\n\n/** English by default; Portuguese for locale strings starting with `pt`. */\nexport function getPlanetHouseDescription(\n planet: DescriptionPlanet,\n house: number,\n language?: string,\n): string | undefined {\n const entry = getPlanetHouseDescriptionEntry(planet, house);\n return language?.startsWith(\"pt\") ? entry?.pt : entry?.en;\n}\n\n/** Numbered house themes, independent of planet placements and angle identities. */\nexport function getHouseDescriptionEntry(house: number): HouseDescriptionEntry | undefined {\n if (!Number.isInteger(house) || house < 1 || house > 12) return undefined;\n const houses = ASTROLOGY_DESCRIPTIONS.houses;\n if (!houses || !Object.prototype.hasOwnProperty.call(houses, house)) return undefined;\n return houses[house as DescriptionHouseNumber];\n}\n\n/** English by default; Portuguese for locale strings starting with `pt`. */\nexport function getHouseDescription(house: number, language?: string): string | undefined {\n const entry = getHouseDescriptionEntry(house);\n return language?.startsWith(\"pt\") ? entry?.pt : entry?.en;\n}\n","/**\n * Dodecatemoria (12th parts) — traditional Hellenistic technique.\n * Pure math, no WASM dependency.\n */\n\nimport { normalizeAngle } from \"./swisseph\";\nimport { SIGNS } from \"./index\";\n\nexport interface DodecatemoriaResult {\n originalSign: string;\n originalDegree: number;\n dodecatemoriaSign: string;\n dodecatemoriaIndex: number;\n}\n\nexport function getDodecatemoria(longitude: number): DodecatemoriaResult {\n const L = normalizeAngle(longitude);\n const signIndex = Math.floor(L / 30) % 12;\n const degreeWithinSign = L - signIndex * 30;\n const index = Math.min(Math.floor(degreeWithinSign / 2.5), 11);\n const dodecatemoriaSignIndex = (signIndex + index) % 12;\n\n return {\n originalSign: SIGNS[signIndex],\n originalDegree: degreeWithinSign,\n dodecatemoriaSign: SIGNS[dodecatemoriaSignIndex],\n dodecatemoriaIndex: index,\n };\n}\n","/**\n * Firdaria — traditional planetary period system.\n * Pure math, no WASM dependency.\n */\n\nexport type TimelineErrorCode =\n | \"INVALID_RANGE\"\n | \"RANGE_TOO_LARGE\"\n | \"UNBOUNDED_INPUT\"\n | \"INVALID_INPUT\"\n | \"UNAVAILABLE_INPUT\";\n\n/** Typed error of the bounded timeline functions (profections, firdaria, return passes). */\nexport class TimelineError extends Error {\n readonly code: TimelineErrorCode;\n constructor(code: TimelineErrorCode, message: string) {\n super(message);\n this.name = \"TimelineError\";\n this.code = code;\n }\n}\n\nexport type FirdariaPlanet =\n | \"Sun\"\n | \"Moon\"\n | \"Mercury\"\n | \"Venus\"\n | \"Mars\"\n | \"Jupiter\"\n | \"Saturn\"\n | \"NorthNode\"\n | \"SouthNode\";\n\nexport interface FirdariaSubPeriod {\n planet: FirdariaPlanet;\n startDate: Date;\n endDate: Date;\n}\n\nexport interface FirdariaMajorPeriod {\n planet: FirdariaPlanet;\n years: number;\n startDate: Date;\n endDate: Date;\n subPeriods: FirdariaSubPeriod[];\n}\n\nexport interface FirdariaResult {\n sect: \"diurnal\" | \"nocturnal\";\n currentMajor: FirdariaMajorPeriod;\n currentSub: FirdariaSubPeriod;\n allPeriods: FirdariaMajorPeriod[];\n}\n\nexport interface FirdariaOptions {\n nodeSubPeriodStart?: \"jupiter-saturn\" | \"sun-mars\";\n}\n\ninterface SequenceEntry {\n planet: FirdariaPlanet;\n years: number;\n}\n\nconst DAY_SEQUENCE: SequenceEntry[] = [\n { planet: \"Sun\", years: 10 },\n { planet: \"Venus\", years: 8 },\n { planet: \"Mercury\", years: 13 },\n { planet: \"Moon\", years: 9 },\n { planet: \"Saturn\", years: 11 },\n { planet: \"Jupiter\", years: 12 },\n { planet: \"Mars\", years: 7 },\n { planet: \"NorthNode\", years: 3 },\n { planet: \"SouthNode\", years: 2 },\n];\n\nconst NIGHT_SEQUENCE: SequenceEntry[] = [\n { planet: \"Moon\", years: 9 },\n { planet: \"Saturn\", years: 11 },\n { planet: \"Jupiter\", years: 12 },\n { planet: \"Mars\", years: 7 },\n { planet: \"NorthNode\", years: 3 },\n { planet: \"SouthNode\", years: 2 },\n { planet: \"Sun\", years: 10 },\n { planet: \"Venus\", years: 8 },\n { planet: \"Mercury\", years: 13 },\n];\n\nconst CHALDEAN_ORDER: FirdariaPlanet[] = [\n \"Saturn\", \"Jupiter\", \"Mars\", \"Sun\", \"Venus\", \"Mercury\", \"Moon\",\n];\n\nfunction addYears(date: Date, years: number): Date {\n const ms = years * 365.25 * 24 * 60 * 60 * 1000;\n return new Date(date.getTime() + ms);\n}\n\nfunction getSubPeriodStart(\n planet: FirdariaPlanet,\n options?: FirdariaOptions\n): number {\n const mode = options?.nodeSubPeriodStart ?? \"jupiter-saturn\";\n\n if (planet === \"NorthNode\") {\n if (mode === \"sun-mars\") {\n return CHALDEAN_ORDER.indexOf(\"Sun\");\n }\n return CHALDEAN_ORDER.indexOf(\"Jupiter\");\n }\n if (planet === \"SouthNode\") {\n if (mode === \"sun-mars\") {\n return CHALDEAN_ORDER.indexOf(\"Mars\");\n }\n return CHALDEAN_ORDER.indexOf(\"Saturn\");\n }\n\n // For regular planets, find position in Chaldean order\n return CHALDEAN_ORDER.indexOf(planet);\n}\n\nfunction buildSubPeriods(\n major: SequenceEntry,\n majorStart: Date,\n majorEnd: Date,\n options?: FirdariaOptions\n): FirdariaSubPeriod[] {\n const startIdx = getSubPeriodStart(major.planet, options);\n const totalMs = majorEnd.getTime() - majorStart.getTime();\n const subMs = totalMs / 7;\n\n const subs: FirdariaSubPeriod[] = [];\n for (let i = 0; i < 7; i++) {\n const subPlanet = CHALDEAN_ORDER[(startIdx + i) % 7];\n const subStart = new Date(majorStart.getTime() + i * subMs);\n const subEnd = new Date(majorStart.getTime() + (i + 1) * subMs);\n subs.push({ planet: subPlanet, startDate: subStart, endDate: subEnd });\n }\n return subs;\n}\n\nexport function getFirdaria(\n birthDate: Date,\n isDiurnal: boolean,\n targetDate?: Date,\n options?: FirdariaOptions\n): FirdariaResult {\n const target = targetDate ?? new Date();\n const sequence = isDiurnal ? DAY_SEQUENCE : NIGHT_SEQUENCE;\n const sect = isDiurnal ? \"diurnal\" : \"nocturnal\";\n\n // Build periods, cycling the 75-year sequence\n const allPeriods: FirdariaMajorPeriod[] = [];\n let cursor = new Date(birthDate.getTime());\n let foundCurrent = false;\n\n // Generate enough cycles to cover target date (max 3 cycles = 225 years)\n for (let cycle = 0; cycle < 3 && !foundCurrent; cycle++) {\n for (const entry of sequence) {\n const start = new Date(cursor.getTime());\n const end = addYears(start, entry.years);\n const subPeriods = buildSubPeriods(entry, start, end, options);\n allPeriods.push({\n planet: entry.planet,\n years: entry.years,\n startDate: start,\n endDate: end,\n subPeriods,\n });\n cursor = end;\n\n if (target.getTime() >= start.getTime() && target.getTime() < end.getTime()) {\n foundCurrent = true;\n }\n }\n }\n\n // Find current major and sub\n const currentMajor = allPeriods.find(\n (p) => target.getTime() >= p.startDate.getTime() && target.getTime() < p.endDate.getTime()\n ) ?? allPeriods[0];\n\n const currentSub = currentMajor.subPeriods.find(\n (s) => target.getTime() >= s.startDate.getTime() && target.getTime() < s.endDate.getTime()\n ) ?? currentMajor.subPeriods[0];\n\n return { sect, currentMajor, currentSub, allPeriods };\n}\n\n// ── Bounded firdaria timeline (additive) ────────────────────────────────────\n\n/** Hard caps: at most 3 repeats of the 75-year sequence, and a window of at most 225 years. */\nexport const MAX_FIRDARIA_CYCLES = 3;\nexport const MAX_FIRDARIA_WINDOW_YEARS = 225;\n/** Years of one full firdaria sequence. */\nexport const FIRDARIA_CYCLE_YEARS = 75;\n\n/** All major periods (with sub-periods) of `cycles` repeats of the 75-year sequence, from birth. */\nexport function getFirdariaPeriods(\n birthDate: Date,\n isDiurnal: boolean,\n cycles = 1,\n options?: FirdariaOptions\n): FirdariaMajorPeriod[] {\n if (!Number.isInteger(cycles) || cycles < 1 || cycles > MAX_FIRDARIA_CYCLES) {\n throw new TimelineError(\"RANGE_TOO_LARGE\", `cycles must be an integer in 1..${MAX_FIRDARIA_CYCLES}`);\n }\n if (!Number.isFinite(birthDate.getTime())) throw new TimelineError(\"INVALID_INPUT\", \"birthDate is not a valid date\");\n const sequence = isDiurnal ? DAY_SEQUENCE : NIGHT_SEQUENCE;\n const periods: FirdariaMajorPeriod[] = [];\n let cursor = new Date(birthDate.getTime());\n for (let cycle = 0; cycle < cycles; cycle++) {\n for (const entry of sequence) {\n const start = new Date(cursor.getTime());\n const end = addYears(start, entry.years);\n periods.push({\n planet: entry.planet,\n years: entry.years,\n startDate: start,\n endDate: end,\n subPeriods: buildSubPeriods(entry, start, end, options),\n });\n cursor = end;\n }\n }\n return periods;\n}\n\nexport interface FirdariaTimelineOptions extends FirdariaOptions {\n /** Window start (inclusive). Default: birth. */\n from?: Date;\n /** Window end (exclusive). Required: unbounded timelines are refused. */\n to: Date;\n /** Include the 7 sub-periods of each major (default true). */\n includeSubPeriods?: boolean;\n}\n\nexport interface FirdariaTimelineSub {\n planet: FirdariaPlanet;\n /** Clipped start (inclusive). */\n start: Date;\n /** Clipped end (exclusive). */\n endExclusive: Date;\n nominalStart: Date;\n nominalEnd: Date;\n clippedStart: boolean;\n clippedEnd: boolean;\n}\n\nexport interface FirdariaTimelineEntry {\n planet: FirdariaPlanet;\n years: number;\n /** 0-based repeat of the 75-year sequence. */\n cycle: number;\n start: Date;\n endExclusive: Date;\n nominalStart: Date;\n nominalEnd: Date;\n clippedStart: boolean;\n clippedEnd: boolean;\n subPeriods: FirdariaTimelineSub[];\n}\n\nexport interface FirdariaTimelineResult {\n sect: \"diurnal\" | \"nocturnal\";\n window: { from: Date; toExclusive: Date };\n entries: FirdariaTimelineEntry[];\n method: {\n yearLengthDays: 365.25;\n intervals: \"half-open [start, endExclusive); consecutive periods share the boundary instant\";\n subPeriods: string;\n sequence: string;\n };\n}\n\n/**\n * Major and sub periods intersecting a bounded window, clipped to it (nominal ends are kept).\n * Reuses the firdaria sequence, year length (365.25 d) and sub-period rules of `getFirdaria`.\n */\nexport function getFirdariaTimeline(\n birthDate: Date,\n isDiurnal: boolean,\n options: FirdariaTimelineOptions\n): FirdariaTimelineResult {\n const to = options?.to;\n if (!(to instanceof Date) || !Number.isFinite(to.getTime())) {\n throw new TimelineError(\"UNBOUNDED_INPUT\", \"a finite `to` date is required\");\n }\n if (!Number.isFinite(birthDate.getTime())) throw new TimelineError(\"INVALID_INPUT\", \"birthDate is not a valid date\");\n const from = options.from ?? birthDate;\n if (!Number.isFinite(from.getTime())) throw new TimelineError(\"UNBOUNDED_INPUT\", \"`from` is not a valid date\");\n if (to.getTime() <= from.getTime()) throw new TimelineError(\"INVALID_RANGE\", \"`to` must be after `from`\");\n const windowYears = (to.getTime() - from.getTime()) / (365.25 * 86_400_000);\n if (windowYears > MAX_FIRDARIA_WINDOW_YEARS) {\n throw new TimelineError(\"RANGE_TOO_LARGE\", `window of ${windowYears.toFixed(1)} years exceeds ${MAX_FIRDARIA_WINDOW_YEARS}`);\n }\n const yearsFromBirth = (to.getTime() - birthDate.getTime()) / (365.25 * 86_400_000);\n const cycles = Math.max(1, Math.ceil(yearsFromBirth / FIRDARIA_CYCLE_YEARS));\n if (cycles > MAX_FIRDARIA_CYCLES) {\n throw new TimelineError(\"RANGE_TOO_LARGE\", `window reaches beyond ${MAX_FIRDARIA_CYCLES} firdaria cycles from birth`);\n }\n const periods = getFirdariaPeriods(birthDate, isDiurnal, cycles, options);\n const w0 = Math.max(from.getTime(), birthDate.getTime());\n const w1 = to.getTime();\n const clip = (s: Date, e: Date) => {\n const st = Math.max(s.getTime(), w0);\n const en = Math.min(e.getTime(), w1);\n return { st, en, clippedStart: st > s.getTime(), clippedEnd: en < e.getTime() };\n };\n const entries: FirdariaTimelineEntry[] = [];\n periods.forEach((p, i) => {\n const c = clip(p.startDate, p.endDate);\n if (c.en <= c.st) return;\n const subs: FirdariaTimelineSub[] = [];\n if (options.includeSubPeriods !== false) {\n for (const s of p.subPeriods) {\n const sc = clip(s.startDate, s.endDate);\n if (sc.en <= sc.st) continue;\n subs.push({\n planet: s.planet,\n start: new Date(sc.st),\n endExclusive: new Date(sc.en),\n nominalStart: s.startDate,\n nominalEnd: s.endDate,\n clippedStart: sc.clippedStart,\n clippedEnd: sc.clippedEnd,\n });\n }\n }\n entries.push({\n planet: p.planet,\n years: p.years,\n cycle: Math.floor(i / 9),\n start: new Date(c.st),\n endExclusive: new Date(c.en),\n nominalStart: p.startDate,\n nominalEnd: p.endDate,\n clippedStart: c.clippedStart,\n clippedEnd: c.clippedEnd,\n subPeriods: subs,\n });\n });\n return {\n sect: isDiurnal ? \"diurnal\" : \"nocturnal\",\n window: { from: new Date(w0), toExclusive: new Date(w1) },\n entries,\n method: {\n yearLengthDays: 365.25,\n intervals: \"half-open [start, endExclusive); consecutive periods share the boundary instant\",\n subPeriods: \"each major is split into 7 equal sub-periods in Chaldean order from the major lord (nodes per nodeSubPeriodStart)\",\n sequence: isDiurnal ? \"day sequence starting with the Sun\" : \"night sequence starting with the Moon\",\n },\n };\n}\n","/**\n * Annual & Monthly Profections — traditional Hellenistic time-lord technique.\n * Pure math. Requires a whole-sign BirthChart for house sign lookup.\n */\n\nimport type { BirthChart } from \"./index\";\nimport { getDomicileRuler, type Sign, type TraditionalPlanet } from \"./dignity\";\nimport { SIGNS } from \"./index\";\nimport { TimelineError } from \"./firdaria\";\nimport {\n anniversaryInYear,\n civilDateFromLocalDate,\n compareCivilDates,\n completedYears,\n isValidCivilDate,\n type CivilDate,\n} from \"../civil-date\";\n\nexport interface AnnualProfection {\n age: number;\n house: number;\n sign: string;\n ruler: TraditionalPlanet;\n targetYear: number;\n}\n\nexport interface MonthlyProfection {\n month: number;\n startDate: Date;\n sign: string;\n ruler: TraditionalPlanet;\n}\n\nexport interface MonthlyProfectionsResult {\n annualProfection: AnnualProfection;\n months: MonthlyProfection[];\n}\n\nexport function getAnnualProfection(\n natalChart: BirthChart,\n birthDate: Date,\n targetYear?: number\n): AnnualProfection {\n const year = targetYear ?? new Date().getFullYear();\n const birthYear = birthDate.getFullYear();\n const age = year - birthYear;\n if (age < 0) {\n throw new Error(`Target year (${year}) is before birth year (${birthYear}).`);\n }\n const house = (age % 12) + 1;\n const sign = natalChart.houses.houses[house - 1].sign as Sign;\n const ruler = getDomicileRuler(sign);\n\n return { age, house, sign, ruler, targetYear: year };\n}\n\nexport function getMonthlyProfections(\n natalChart: BirthChart,\n birthDate: Date,\n targetYear?: number\n): MonthlyProfectionsResult {\n const annualProfection = getAnnualProfection(natalChart, birthDate, targetYear);\n const annualSignIndex = SIGNS.indexOf(annualProfection.sign as Sign);\n\n const bdMonth = birthDate.getMonth();\n const bdDay = birthDate.getDate();\n const year = annualProfection.targetYear;\n\n const months: MonthlyProfection[] = [];\n for (let i = 0; i < 12; i++) {\n const monthDate = new Date(year, bdMonth + i, bdDay);\n // Handle day overflow (e.g. Feb 29 → Mar 1)\n if (monthDate.getDate() !== bdDay) {\n monthDate.setDate(0); // last day of previous month\n }\n const signIndex = (annualSignIndex + i) % 12;\n const sign = SIGNS[signIndex] as Sign;\n\n months.push({\n month: i + 1,\n startDate: monthDate,\n sign,\n ruler: getDomicileRuler(sign),\n });\n }\n\n return { annualProfection, months };\n}\n\n// ── Bounded annual profection timeline (additive) ───────────────────────────\n\n/** Hard cap on profection years per timeline call. */\nexport const MAX_PROFECTION_TIMELINE_YEARS = 150;\n\nexport interface ProfectionForAge {\n age: number;\n house: number;\n sign: string;\n ruler: TraditionalPlanet;\n}\n\n/**\n * Whole-sign annual profection for an age: house = age mod 12 + 1 and the profected\n * sign counted from the natal ASCENDANT sign (whole-sign houses by definition, so it\n * is correct for any recorded house system). Agrees with `getAnnualProfection` for\n * whole-sign charts.\n */\nexport function getProfectionForAge(natalChart: BirthChart, age: number): ProfectionForAge {\n if (!Number.isInteger(age) || age < 0) {\n throw new TimelineError(\"INVALID_INPUT\", `age must be a non-negative integer (got ${age})`);\n }\n const ascSign = natalChart.houses.ascendant.sign;\n const ascIndex = SIGNS.indexOf(ascSign as (typeof SIGNS)[number]);\n if (ascIndex < 0) throw new TimelineError(\"UNAVAILABLE_INPUT\", \"natal chart has no ascendant sign (untimed chart?)\");\n const sign = SIGNS[(ascIndex + age) % 12] as Sign;\n return { age, house: (age % 12) + 1, sign, ruler: getDomicileRuler(sign) };\n}\n\nexport interface ProfectionTimelineEntry extends ProfectionForAge {\n /** Birthday that starts this profection year (civil date; 29 Feb births use 1 Mar in non-leap years). */\n start: CivilDate;\n /** Next birthday: the half-open end of the year [start, endExclusive). */\n endExclusive: CivilDate;\n}\n\nexport type ProfectionTimelineRange =\n | { fromAge: number; toAge: number }\n | { from: CivilDate | Date; to: CivilDate | Date };\n\nexport interface ProfectionTimelineResult {\n entries: ProfectionTimelineEntry[];\n birth: CivilDate;\n method: {\n houses: \"whole-sign from the natal ascendant sign\";\n yearBoundary: \"birthday to next birthday, half-open [start, endExclusive); 29 Feb births roll to 1 Mar in non-leap years\";\n selection: string;\n };\n}\n\nfunction asCivil(d: CivilDate | Date): CivilDate {\n return d instanceof Date ? civilDateFromLocalDate(d) : d;\n}\n\n/**\n * One entry per annual profection year for a bounded age range or civil-date range\n * (a year is included when [start, endExclusive) overlaps [from, to] of the date\n * range). Dates are civil dates; `Date` inputs are read with local calendar getters.\n */\nexport function getAnnualProfectionTimeline(\n natalChart: BirthChart,\n birth: CivilDate | Date,\n range: ProfectionTimelineRange\n): ProfectionTimelineResult {\n const b = asCivil(birth);\n if (!isValidCivilDate(b)) throw new TimelineError(\"INVALID_INPUT\", \"birth must be a valid civil date\");\n let firstAge: number;\n let lastAge: number;\n let selection: string;\n if (\"fromAge\" in range) {\n if (!Number.isFinite(range.fromAge) || !Number.isFinite(range.toAge)) {\n throw new TimelineError(\"UNBOUNDED_INPUT\", \"fromAge and toAge must be finite\");\n }\n firstAge = Math.max(0, Math.floor(range.fromAge));\n lastAge = Math.floor(range.toAge);\n selection = `ages ${firstAge}..${lastAge} inclusive`;\n } else {\n const from = asCivil(range.from);\n const to = asCivil(range.to);\n if (!isValidCivilDate(from) || !isValidCivilDate(to)) {\n throw new TimelineError(\"UNBOUNDED_INPUT\", \"from and to must be valid civil dates\");\n }\n if (compareCivilDates(to, from) < 0) throw new TimelineError(\"INVALID_RANGE\", \"to is before from\");\n // Age whose year contains `from` (clamped at 0) and age whose year contains `to`.\n firstAge = Math.max(0, completedYears(b, from));\n lastAge = completedYears(b, to);\n selection = \"years whose [birthday, next birthday) overlaps the date range\";\n }\n if (lastAge < firstAge) throw new TimelineError(\"INVALID_RANGE\", \"range selects no profection year\");\n if (lastAge - firstAge + 1 > MAX_PROFECTION_TIMELINE_YEARS) {\n throw new TimelineError(\n \"RANGE_TOO_LARGE\",\n `range spans ${lastAge - firstAge + 1} profection years; the cap is ${MAX_PROFECTION_TIMELINE_YEARS}`\n );\n }\n const entries: ProfectionTimelineEntry[] = [];\n for (let age = firstAge; age <= lastAge; age++) {\n entries.push({\n ...getProfectionForAge(natalChart, age),\n start: anniversaryInYear(b, b.year + age),\n endExclusive: anniversaryInYear(b, b.year + age + 1),\n });\n }\n return {\n entries,\n birth: b,\n method: {\n houses: \"whole-sign from the natal ascendant sign\",\n yearBoundary:\n \"birthday to next birthday, half-open [start, endExclusive); 29 Feb births roll to 1 Mar in non-leap years\",\n selection,\n },\n };\n}\n","/**\n * Ephemeris-agnostic, station-aware search for exact angular crossings.\n *\n * The solver finds every time `t` in a window at which an angular function\n * `longitude(t)` equals a target angle, using the SIGNED angular difference\n * normalised to (-180, 180]. It never minimises an orb: a \"closest approach\"\n * is a different result kind and is never labelled exact.\n *\n * Three concepts are kept separate throughout:\n * - display orb: a caller concern (not used by the solver),\n * - root angular residual: `|signedAngle(longitude(t) - target)|` at the emitted instant,\n * - time tolerance: width of the final bracket (seconds).\n *\n * Time values are Julian Days (UT) when the solver is used with an ephemeris,\n * but any monotone day-valued coordinate works for pure/analytic functions.\n *\n * Coverage qualification: roots are found on a finite grid refined with\n * velocity-zero stations (sign changes of the longitude speed between grid\n * points). Two stations hidden entirely inside one grid step are not formally\n * excluded; this is a station-aware numerical search, not a symbolic proof of\n * completeness.\n */\n\nconst MS_PER_DAY = 86_400_000;\nconst UNIX_EPOCH_JD = 2440587.5;\n\nexport function jdToDate(jd: number): Date {\n return new Date(Math.round((jd - UNIX_EPOCH_JD) * MS_PER_DAY));\n}\n\nexport function dateToJd(date: Date): number {\n return date.getTime() / MS_PER_DAY + UNIX_EPOCH_JD;\n}\n\n/** Signed angular difference normalised to (-180, 180]. */\nexport function signedAngleDifference(value: number): number {\n let d = ((value % 360) + 360) % 360; // [0, 360)\n if (d > 180) d -= 360;\n return d;\n}\n\nexport type RootDirection = \"direct\" | \"retrograde\" | \"stationary\";\n\nexport interface AngularRootSearchOptions {\n /** Longitude in degrees (any real value; wrapped internally) at time `t`. */\n longitude: (t: number) => number;\n /** Optional longitude speed in degrees/day. Defaults to a central difference of `longitude`. */\n speed?: (t: number) => number;\n /** Target angle in degrees. */\n target: number;\n /** Window start/end (Julian Days or any day-valued coordinate); both ends are inclusive. */\n start: number;\n end: number;\n /** Coarse grid step in days. Default 1. */\n stepDays?: number;\n /** Final bracket width in seconds. Default 0.001. */\n timeToleranceSeconds?: number;\n /** Maximum accepted |residual| in degrees for an emitted root. Default 1e-6. */\n residualToleranceDegrees?: number;\n /** Also return stationary closest approaches that do not reach the target. Default false. */\n includeClosestApproaches?: boolean;\n /** Only keep closest approaches with separation <= this (degrees). Default: unlimited. */\n maxClosestSeparationDegrees?: number;\n}\n\nexport interface AngularRoot {\n kind: \"exact\";\n /** Root instant as Julian Day (the solver's time coordinate). */\n jd: number;\n /** Root instant as a UTC Date (millisecond rounded; assumes `t` is a UT Julian Day). */\n instant: Date;\n /** |signed angular difference| at `jd`, degrees. */\n residualDegrees: number;\n /** Signed difference longitude - target at `jd`, degrees in (-180, 180]. */\n signedResidualDegrees: number;\n /** Width of the final bracket in seconds (0 when the root is a sampled/analytic point). */\n bracketWidthSeconds: number;\n /** Requested time tolerance in seconds. */\n timeToleranceSeconds: number;\n /** Function evaluations spent refining this root's bracket. */\n iterations: number;\n /** Motion at the root. `stationary` for tangencies at a velocity-zero station. */\n direction: RootDirection;\n /** Longitude speed at the root (deg/day). */\n speedDegreesPerDay: number;\n /** True when the root coincides with a velocity-zero station (tangent touch). */\n tangent: boolean;\n /** How the root was found. */\n method: \"bracket-bisection\" | \"sample\" | \"station-tangent\";\n /** True when the root is exactly at the window start or end. */\n boundary: boolean;\n}\n\nexport interface AngularClosestApproach {\n kind: \"closest-approach\";\n jd: number;\n instant: Date;\n /** Minimum |signed difference| in degrees; > 0 and never an exact crossing. */\n separationDegrees: number;\n signedSeparationDegrees: number;\n direction: \"stationary\";\n}\n\nexport interface RootSearchCoverage {\n scope: \"finite-grid\";\n stepDays: number;\n gridPoints: number;\n stationsFound: number;\n /** Fixed wording: no symbolic all-pass completeness is claimed. */\n note: string;\n}\n\nexport interface AngularRootSearchResult {\n target: number;\n start: number;\n end: number;\n roots: AngularRoot[];\n closestApproaches: AngularClosestApproach[];\n /** Bracketed crossings dropped because the residual check failed (should be empty). */\n rejected: { jd: number; residualDegrees: number }[];\n coverage: RootSearchCoverage;\n residualToleranceDegrees: number;\n}\n\nexport const ROOT_SEARCH_COVERAGE_NOTE =\n \"Finite-grid, station-aware numerical search: stations are located from speed sign changes on the scan grid. \" +\n \"A pair of velocity-zero crossings hidden inside one grid step is not formally excluded; \" +\n \"this is not a symbolic proof that all passes were found.\";\n\n/** Floor on the representable bracket (relative to magnitude of t) to stop bisection at float limits. */\nfunction canSplit(l: number, r: number): boolean {\n const m = (l + r) / 2;\n return m > l && m < r;\n}\n\ninterface Bisected {\n t: number;\n width: number;\n iterations: number;\n}\n\n/**\n * Bisect a sign-change bracket of `g` until the width is <= `tol` and `accept(t)` holds\n * (or the bracket can no longer be split in floating point).\n */\nfunction bisect(\n g: (t: number) => number,\n left: number,\n right: number,\n tol: number,\n accept: (t: number) => boolean = () => true\n): Bisected {\n let gl = g(left);\n let iterations = 0;\n for (let i = 0; i < 200; i++) {\n if (!canSplit(left, right)) break;\n if (right - left <= tol) {\n const mid = (left + right) / 2;\n if (accept(mid)) {\n return { t: mid, width: right - left, iterations };\n }\n }\n const mid = (left + right) / 2;\n const gm = g(mid);\n iterations++;\n if (gm === 0) return { t: mid, width: 0, iterations };\n if ((gl < 0 && gm > 0) || (gl > 0 && gm < 0)) {\n right = mid;\n } else {\n left = mid;\n gl = gm;\n }\n }\n return { t: (left + right) / 2, width: right - left, iterations };\n}\n\n/**\n * Find all exact crossings of `target` by `longitude(t)` inside [start, end].\n * Pure: depends only on the supplied functions.\n */\nexport function findAngularRoots(options: AngularRootSearchOptions): AngularRootSearchResult {\n const {\n longitude,\n target,\n start,\n end,\n stepDays = 1,\n timeToleranceSeconds = 0.001,\n residualToleranceDegrees = 1e-6,\n includeClosestApproaches = false,\n maxClosestSeparationDegrees = Infinity,\n } = options;\n\n for (const [name, value] of Object.entries({\n target,\n start,\n end,\n stepDays,\n timeToleranceSeconds,\n residualToleranceDegrees,\n })) {\n if (!Number.isFinite(value)) throw new Error(`${name} must be finite`);\n }\n if (stepDays <= 0) throw new Error(\"stepDays must be greater than 0\");\n if (timeToleranceSeconds <= 0) throw new Error(\"timeToleranceSeconds must be greater than 0\");\n if (residualToleranceDegrees <= 0) throw new Error(\"residualToleranceDegrees must be greater than 0\");\n\n const targetAngle = ((target % 360) + 360) % 360;\n const timeTol = timeToleranceSeconds / 86400;\n const dedupeTolEarly = Math.max(2 * timeTol, 1e-7);\n\n const emptyCoverage = (gridPoints: number, stationsFound: number): RootSearchCoverage => ({\n scope: \"finite-grid\",\n stepDays,\n gridPoints,\n stationsFound,\n note: ROOT_SEARCH_COVERAGE_NOTE,\n });\n\n if (end < start) {\n return {\n target: targetAngle,\n start,\n end,\n roots: [],\n closestApproaches: [],\n rejected: [],\n coverage: emptyCoverage(0, 0),\n residualToleranceDegrees,\n };\n }\n\n const lonCache = new Map<number, number>();\n const lon = (t: number): number => {\n let v = lonCache.get(t);\n if (v === undefined) {\n v = longitude(t);\n lonCache.set(t, v);\n }\n return v;\n };\n const residual = (t: number): number => signedAngleDifference(lon(t) - targetAngle);\n\n const speedCache = new Map<number, number>();\n const derivStep = 1e-4;\n const speed = (t: number): number => {\n let v = speedCache.get(t);\n if (v === undefined) {\n v = options.speed\n ? options.speed(t)\n : signedAngleDifference(longitude(t + derivStep) - longitude(t - derivStep)) / (2 * derivStep);\n speedCache.set(t, v);\n }\n return v;\n };\n\n // ── Grid ────────────────────────────────────────────────────────────────\n const n = Math.max(1, Math.ceil((end - start) / stepDays));\n const gridSet: number[] = [];\n for (let k = 0; k <= n; k++) gridSet.push(Math.min(start + k * stepDays, end));\n const grid = uniqueSorted(gridSet, 0);\n\n // ── Stations (velocity zeros) ───────────────────────────────────────────\n const stations: number[] = [];\n for (let i = 0; i < grid.length; i++) {\n const v = speed(grid[i]);\n if (v === 0) stations.push(grid[i]);\n if (i + 1 < grid.length) {\n const vr = speed(grid[i + 1]);\n if ((v < 0 && vr > 0) || (v > 0 && vr < 0)) {\n stations.push(bisect(speed, grid[i], grid[i + 1], timeTol).t);\n }\n }\n }\n const stationList = uniqueSorted(stations, timeTol);\n const anchors = uniqueSorted([...grid, ...stationList], 0);\n\n // Equality at a stationary point needs a much stricter check than the final\n // residual bound, otherwise a nearby minimum could be mislabelled as exact.\n // It also canonicalises flat-extremum jitter into a single tangent root.\n const tangentEquality = Math.min(residualToleranceDegrees, 1e-10);\n const exactStations = new Set(stationList.filter((s) => Math.abs(residual(s)) <= tangentEquality));\n\n type Candidate = {\n jd: number;\n method: AngularRoot[\"method\"];\n iterations: number;\n width: number;\n tangent: boolean;\n };\n const candidates: Candidate[] = [];\n const rejected: { jd: number; residualDegrees: number }[] = [];\n\n for (const s of exactStations) {\n candidates.push({ jd: s, method: \"station-tangent\", iterations: 0, width: 0, tangent: true });\n }\n\n // Exactly-zero samples (including window boundaries) are roots.\n for (const a of anchors) {\n if (!exactStations.has(a) && residual(a) === 0) {\n candidates.push({ jd: a, method: \"sample\", iterations: 0, width: 0, tangent: false });\n }\n }\n if (anchors.length === 1 && Math.abs(residual(anchors[0])) <= residualToleranceDegrees) {\n candidates.push({ jd: anchors[0], method: \"sample\", iterations: 0, width: 0, tangent: false });\n }\n\n for (let i = 0; i < anchors.length; i++) {\n const left = anchors[i];\n const fl = exactStations.has(left) ? 0 : residual(left);\n if (i + 1 >= anchors.length) continue;\n const right = anchors[i + 1];\n const fr = exactStations.has(right) ? 0 : residual(right);\n if (fl * fr < 0) {\n // A sign flip with a ~180 degree jump is the wrap discontinuity at the\n // antipode, not a crossing.\n if (Math.abs(fr - fl) >= 180) continue;\n const refined = bisect(residual, left, right, timeTol, (t) => Math.abs(residual(t)) <= residualToleranceDegrees);\n const r = Math.abs(residual(refined.t));\n if (r <= residualToleranceDegrees) {\n candidates.push({\n jd: refined.t,\n method: \"bracket-bisection\",\n iterations: refined.iterations,\n width: refined.width,\n tangent: false,\n });\n } else {\n rejected.push({ jd: refined.t, residualDegrees: r });\n }\n }\n }\n\n // Window boundaries within the residual tolerance of the target are retained\n // (a root exactly at the window start/end), unless a bracketed root already\n // accounts for it.\n for (const edge of uniqueSorted([start, end], 0)) {\n if (Math.abs(residual(edge)) > residualToleranceDegrees) continue;\n const v = Math.abs(speed(edge));\n const reach = Math.min(stepDays, v > 0 ? residualToleranceDegrees / v : stepDays);\n if (candidates.some((c) => Math.abs(c.jd - edge) <= Math.max(reach, dedupeTolEarly))) continue;\n candidates.push({ jd: edge, method: \"sample\", iterations: 0, width: 0, tangent: false });\n }\n\n // ── Dedupe and verify ───────────────────────────────────────────────────\n const dedupeTol = dedupeTolEarly;\n candidates.sort((a, b) => a.jd - b.jd);\n const merged: Candidate[] = [];\n for (const c of candidates) {\n const last = merged[merged.length - 1];\n if (last && c.jd - last.jd <= dedupeTol) {\n if (Math.abs(residual(c.jd)) < Math.abs(residual(last.jd)) || (c.tangent && !last.tangent)) {\n merged[merged.length - 1] = c;\n }\n } else {\n merged.push(c);\n }\n }\n\n const roots: AngularRoot[] = [];\n for (const c of merged) {\n const signed = residual(c.jd);\n if (Math.abs(signed) > residualToleranceDegrees) {\n rejected.push({ jd: c.jd, residualDegrees: Math.abs(signed) });\n continue;\n }\n const v = speed(c.jd);\n const stationaryHere = c.tangent || stationList.some((s) => Math.abs(s - c.jd) <= dedupeTol);\n roots.push({\n kind: \"exact\",\n jd: c.jd,\n instant: jdToDate(c.jd),\n residualDegrees: Math.abs(signed),\n signedResidualDegrees: signed,\n bracketWidthSeconds: c.width * 86400,\n timeToleranceSeconds,\n iterations: c.iterations,\n direction: stationaryHere ? \"stationary\" : v > 0 ? \"direct\" : v < 0 ? \"retrograde\" : \"stationary\",\n speedDegreesPerDay: v,\n tangent: c.tangent,\n method: c.method,\n boundary: Math.abs(c.jd - start) <= dedupeTol || Math.abs(c.jd - end) <= dedupeTol,\n });\n }\n\n // ── Optional closest approaches (stationary |f| local minima, no crossing) ─\n const closestApproaches: AngularClosestApproach[] = [];\n if (includeClosestApproaches) {\n for (const s of stationList) {\n if (roots.some((r) => Math.abs(r.jd - s) <= dedupeTol)) continue;\n const idx = anchors.indexOf(s);\n if (idx <= 0 || idx >= anchors.length - 1) continue;\n const fp = residual(anchors[idx - 1]);\n const fs = residual(s);\n const fn = residual(anchors[idx + 1]);\n if (Math.abs(fp - fs) >= 180 || Math.abs(fn - fs) >= 180) continue;\n const sameSign = Math.sign(fp) === Math.sign(fs) && Math.sign(fn) === Math.sign(fs);\n if (!sameSign || fs === 0) continue;\n if (!(Math.abs(fs) < Math.abs(fp) && Math.abs(fs) < Math.abs(fn))) continue;\n if (Math.abs(fs) > maxClosestSeparationDegrees) continue;\n closestApproaches.push({\n kind: \"closest-approach\",\n jd: s,\n instant: jdToDate(s),\n separationDegrees: Math.abs(fs),\n signedSeparationDegrees: fs,\n direction: \"stationary\",\n });\n }\n }\n\n return {\n target: targetAngle,\n start,\n end,\n roots,\n closestApproaches,\n rejected,\n coverage: emptyCoverage(grid.length, stationList.length),\n residualToleranceDegrees,\n };\n}\n\nfunction uniqueSorted(values: number[], tolerance: number): number[] {\n const sorted = [...values].sort((a, b) => a - b);\n const out: number[] = [];\n for (const v of sorted) {\n if (out.length === 0 || v - out[out.length - 1] > tolerance) out.push(v);\n }\n return out;\n}\n","/**\n * Exact longitude crossings and planetary returns built on the shared\n * station-aware root solver (see ./root-solver).\n *\n * All functions are synchronous and require the Swiss Ephemeris to be\n * initialised (`await getSwissEph(...)`). Solved instants are UTC.\n *\n * Time coordinate: UT Julian Day, passed to the ephemeris exactly (the Julian Day is\n * never rebuilt from a whole-second Date, so no sub-second information is lost).\n */\n\nimport {\n calculateBodyAtJulianDay,\n CalcFlag,\n Planet,\n PLANET_AND_NODE_NAMES,\n} from \"./swisseph\";\nimport {\n dateToJd,\n findAngularRoots,\n type AngularClosestApproach,\n type AngularRoot,\n type RootSearchCoverage,\n} from \"./root-solver\";\n\nconst EPH_FLAGS = CalcFlag.SWISS_EPH | CalcFlag.SPEED;\n\n/** Largest scan step allowed for ephemeris-backed searches (days). */\nexport const MAX_BODY_SCAN_STEP_DAYS = 2;\n\nexport interface BodyLongitudeSample {\n longitude: number;\n speed: number;\n}\n\n/** Longitude (deg, [0,360)) and speed (deg/day) of `body` at an exact UT Julian Day. */\nexport function sampleBodyAtJd(body: Planet, jd: number): BodyLongitudeSample {\n const p = calculateBodyAtJulianDay(jd, body, EPH_FLAGS);\n return { longitude: (((p.longitude % 360) + 360) % 360), speed: p.longitudeSpeed ?? 0 };\n}\n\nexport interface BodyLongitudeFunctions {\n longitude: (jd: number) => number;\n speed: (jd: number) => number;\n}\n\n/** Cached longitude/speed functions for one body (shared by every search over that body). */\nexport function createBodyLongitudeFunctions(body: Planet): BodyLongitudeFunctions {\n const cache = new Map<number, BodyLongitudeSample>();\n const get = (jd: number): BodyLongitudeSample => {\n let s = cache.get(jd);\n if (!s) {\n s = sampleBodyAtJd(body, jd);\n cache.set(jd, s);\n }\n return s;\n };\n return { longitude: (jd) => get(jd).longitude, speed: (jd) => get(jd).speed };\n}\n\nexport interface RootSolverMethodMetadata {\n solver: \"signed-angle-bracketing+station-insertion+bisection\";\n timeScale: \"UT Julian Day\";\n ephemeris: \"Swiss Ephemeris (SWISS_EPH, SPEED)\";\n subSecondEvaluation: \"exact Julian Day evaluation (no sub-second truncation or extrapolation)\";\n}\n\nexport const ROOT_SOLVER_METHOD: RootSolverMethodMetadata = {\n solver: \"signed-angle-bracketing+station-insertion+bisection\",\n timeScale: \"UT Julian Day\",\n ephemeris: \"Swiss Ephemeris (SWISS_EPH, SPEED)\",\n subSecondEvaluation: \"exact Julian Day evaluation (no sub-second truncation or extrapolation)\",\n};\n\nexport interface BodyCrossingOptions {\n body: Planet;\n /** Tropical target longitude in degrees. */\n targetLongitude: number;\n /** Window (inclusive). Dates are absolute UTC instants. */\n from: Date;\n to: Date;\n /** Scan step in days (default 1, capped at 2). */\n stepDays?: number;\n /** Final bracket width in seconds (default 0.001). */\n timeToleranceSeconds?: number;\n /** Max accepted residual in degrees (default 1e-6). */\n residualToleranceDegrees?: number;\n includeClosestApproaches?: boolean;\n maxClosestSeparationDegrees?: number;\n}\n\nexport interface BodyCrossing extends AngularRoot {\n /** 1-based index among the passes in the window. */\n passIndex: number;\n /** Total passes found in the window. */\n passCount: number;\n}\n\nexport interface BodyCrossingResult {\n body: Planet;\n bodyName: string;\n targetLongitude: number;\n from: Date;\n to: Date;\n crossings: BodyCrossing[];\n closestApproaches: AngularClosestApproach[];\n rejected: { jd: number; residualDegrees: number }[];\n coverage: RootSearchCoverage;\n residualToleranceDegrees: number;\n timeToleranceSeconds: number;\n method: RootSolverMethodMetadata;\n}\n\n/** All exact passes of `body` over a tropical longitude in [from, to]. */\nexport function findBodyLongitudeCrossings(options: BodyCrossingOptions): BodyCrossingResult {\n const fns = createBodyLongitudeFunctions(options.body);\n return findBodyLongitudeCrossingsWith(fns, options);\n}\n\n/** Same as {@link findBodyLongitudeCrossings} with caller-supplied (cacheable) sampling functions. */\nexport function findBodyLongitudeCrossingsWith(\n fns: BodyLongitudeFunctions,\n options: BodyCrossingOptions\n): BodyCrossingResult {\n const stepDays = Math.min(options.stepDays ?? 1, MAX_BODY_SCAN_STEP_DAYS);\n const timeToleranceSeconds = options.timeToleranceSeconds ?? 0.001;\n const result = findAngularRoots({\n longitude: fns.longitude,\n speed: fns.speed,\n target: options.targetLongitude,\n start: dateToJd(options.from),\n end: dateToJd(options.to),\n stepDays,\n timeToleranceSeconds,\n residualToleranceDegrees: options.residualToleranceDegrees,\n includeClosestApproaches: options.includeClosestApproaches,\n maxClosestSeparationDegrees: options.maxClosestSeparationDegrees,\n });\n const crossings: BodyCrossing[] = result.roots.map((r, i) => ({\n ...r,\n passIndex: i + 1,\n passCount: result.roots.length,\n }));\n return {\n body: options.body,\n bodyName: PLANET_AND_NODE_NAMES[options.body],\n targetLongitude: result.target,\n from: options.from,\n to: options.to,\n crossings,\n closestApproaches: result.closestApproaches,\n rejected: result.rejected,\n coverage: result.coverage,\n residualToleranceDegrees: result.residualToleranceDegrees,\n timeToleranceSeconds,\n method: ROOT_SOLVER_METHOD,\n };\n}\n\n// ── Returns ───────────────────────────────────────────────────────────────\n\n/** Minimal structural view of a natal chart (compatible with `BirthChart`). */\nexport interface NatalLongitudeSource {\n planets: Record<string, { longitude: number }>;\n}\n\nexport interface PlanetaryReturnOptions {\n /** Body whose crossing is searched (natal position of the same body unless `natalBody` is set). */\n body: Planet;\n /** Natal longitude to return to. Takes precedence over `natalChart`. */\n natalLongitude?: number;\n /** Natal chart used to look up the natal longitude of `natalBody ?? body`. */\n natalChart?: NatalLongitudeSource;\n natalBody?: Planet;\n /** Angular offset from the natal longitude (0 = return, 180 = opposition). */\n offsetDegrees?: number;\n from: Date;\n to: Date;\n stepDays?: number;\n timeToleranceSeconds?: number;\n residualToleranceDegrees?: number;\n includeClosestApproaches?: boolean;\n maxClosestSeparationDegrees?: number;\n}\n\nexport interface PlanetaryReturnResult extends BodyCrossingResult {\n natalLongitude: number;\n offsetDegrees: number;\n /** \"return\" for offset 0, \"opposition\" for 180, otherwise \"offset-aspect\". */\n eventKind: \"return\" | \"opposition\" | \"offset-aspect\";\n}\n\nfunction resolveNatalLongitude(options: PlanetaryReturnOptions): number {\n if (options.natalLongitude !== undefined) {\n if (!Number.isFinite(options.natalLongitude)) throw new Error(\"natalLongitude must be finite\");\n return options.natalLongitude;\n }\n if (!options.natalChart) throw new Error(\"Provide natalLongitude or natalChart\");\n const key = PLANET_AND_NODE_NAMES[options.natalBody ?? options.body].toLowerCase();\n const found = options.natalChart.planets[key];\n if (!found) throw new Error(`Natal chart has no body \"${key}\"`);\n return found.longitude;\n}\n\n/** All passes of `body` over its (offset) natal longitude in the window. */\nexport function findPlanetaryReturns(options: PlanetaryReturnOptions): PlanetaryReturnResult {\n const natalLongitude = resolveNatalLongitude(options);\n const offsetDegrees = options.offsetDegrees ?? 0;\n const target = (((natalLongitude + offsetDegrees) % 360) + 360) % 360;\n const result = findBodyLongitudeCrossings({\n body: options.body,\n targetLongitude: target,\n from: options.from,\n to: options.to,\n stepDays: options.stepDays,\n timeToleranceSeconds: options.timeToleranceSeconds,\n residualToleranceDegrees: options.residualToleranceDegrees,\n includeClosestApproaches: options.includeClosestApproaches,\n maxClosestSeparationDegrees: options.maxClosestSeparationDegrees,\n });\n const norm = ((offsetDegrees % 360) + 360) % 360;\n return {\n ...result,\n natalLongitude,\n offsetDegrees,\n eventKind: norm === 0 ? \"return\" : norm === 180 ? \"opposition\" : \"offset-aspect\",\n };\n}\n\ntype ReturnWrapperOptions = Omit<PlanetaryReturnOptions, \"body\" | \"offsetDegrees\" | \"natalBody\">;\n\n/** Solar returns (Sun to natal Sun). Usually one pass per year. */\nexport function findSolarReturns(options: ReturnWrapperOptions): PlanetaryReturnResult {\n return findPlanetaryReturns({ ...options, body: Planet.SUN });\n}\n\n/** Lunar returns (Moon to natal Moon); default step 0.5 day. */\nexport function findLunarReturns(options: ReturnWrapperOptions): PlanetaryReturnResult {\n return findPlanetaryReturns({ stepDays: 0.5, ...options, body: Planet.MOON });\n}\n\n/** Jupiter returns; returns ALL passes (up to three, due to retrograde). */\nexport function findJupiterReturns(options: ReturnWrapperOptions): PlanetaryReturnResult {\n return findPlanetaryReturns({ ...options, body: Planet.JUPITER });\n}\n\n/** Saturn returns; returns ALL passes (up to three, due to retrograde). */\nexport function findSaturnReturns(options: ReturnWrapperOptions): PlanetaryReturnResult {\n return findPlanetaryReturns({ ...options, body: Planet.SATURN });\n}\n\n/** Nodal returns (mean node by default; pass `node: \"true\"` for the true node). */\nexport function findNodalReturns(\n options: ReturnWrapperOptions & { node?: \"mean\" | \"true\" }\n): PlanetaryReturnResult {\n const { node, ...rest } = options;\n return findPlanetaryReturns({ ...rest, body: node === \"true\" ? Planet.TRUE_NODE : Planet.MEAN_NODE });\n}\n\n/** Uranus opposition to its natal longitude (half-cycle); returns all passes. */\nexport function findUranusOppositions(options: ReturnWrapperOptions): PlanetaryReturnResult {\n return findPlanetaryReturns({ ...options, body: Planet.URANUS, offsetDegrees: 180 });\n}\n","/**\n * Exact transit-to-natal aspect events built on the shared root solver.\n *\n * Natal targets are fixed points (zero velocity). Only verified crossings are\n * reported as exact; local minima that never reach the aspect are optional,\n * separate \"closest approach\" records.\n */\n\nimport { DEFAULT_ASPECT_SPECS, SLOW_PLANETS, type AspectName, type AspectSpec } from \"./aspects\";\nimport {\n createBodyLongitudeFunctions,\n MAX_BODY_SCAN_STEP_DAYS,\n ROOT_SOLVER_METHOD,\n type BodyLongitudeFunctions,\n type RootSolverMethodMetadata,\n} from \"./returns\";\nimport { dateToJd, findAngularRoots, type RootDirection, type RootSearchCoverage } from \"./root-solver\";\nimport { Planet, PLANET_AND_NODE_NAMES } from \"./swisseph\";\n\n/** Solver metadata attached to every exact transit perfection. */\nexport interface PerfectionSolverMetadata {\n /** Angular root residual in degrees (separate from the display orb). */\n residualDegrees: number;\n /** Final bracket width in seconds. */\n bracketWidthSeconds: number;\n /** Requested time tolerance in seconds. */\n timeToleranceSeconds: number;\n iterations: number;\n direction: RootDirection;\n tangent: boolean;\n /** Scan step actually used for the transiting body (days). */\n scanStepDays: number;\n /** Signed target longitude solved (natal longitude +/- aspect angle). */\n targetLongitude: number;\n coverage: RootSearchCoverage;\n method: RootSolverMethodMetadata;\n}\n\nexport interface TransitPerfectionEvent {\n kind: \"exact\";\n transitPlanet: string;\n natalPlanet: string;\n aspect: AspectName;\n /** Verified root instant (UTC). */\n exactDate: Date;\n exactJd: number;\n /** Equals the angular root residual (~0); not the display orb. */\n exactOrb: number;\n retrograde: boolean;\n category: \"slow\" | \"fast\";\n solver: PerfectionSolverMetadata;\n}\n\nexport interface TransitClosestApproach {\n kind: \"closest-approach\";\n transitPlanet: string;\n natalPlanet: string;\n aspect: AspectName;\n /** Instant of minimum separation (UTC) - NOT an exact aspect. */\n date: Date;\n jd: number;\n /** Minimum angular separation from the exact aspect in degrees (> 0). */\n separationDegrees: number;\n /** Display orb of the aspect spec the separation was compared with. */\n displayOrb: number;\n category: \"slow\" | \"fast\";\n}\n\nexport interface FindTransitPerfectionsOptions {\n /** Fixed natal targets (longitude in degrees). */\n natalPoints: Record<string, { longitude: number }>;\n /** Lowercase transit body names to search; undefined = all bodies. */\n transitPlanets?: string[];\n fromUtc: Date;\n toUtc: Date;\n stepDays: number;\n aspectSpecs?: AspectSpec[];\n timeToleranceSeconds?: number;\n residualToleranceDegrees?: number;\n includeClosestApproaches?: boolean;\n}\n\nexport interface FindTransitPerfectionsResult {\n perfections: TransitPerfectionEvent[];\n closestApproaches: TransitClosestApproach[];\n}\n\nconst FAST_PLANET_MAX_STEP_DAYS = 0.25;\n\nfunction transitBodies(filter?: string[]): { key: string; planet: Planet }[] {\n const allowed = filter && filter.length > 0 ? new Set(filter.map((n) => n.toLowerCase())) : null;\n const out: { key: string; planet: Planet }[] = [];\n for (const [id, name] of Object.entries(PLANET_AND_NODE_NAMES)) {\n const numeric = Number(id);\n if (Number.isNaN(numeric)) continue; // virtual points (e.g. Wheel of Fortune)\n const key = name.toLowerCase();\n if (allowed && !allowed.has(key)) continue;\n out.push({ key, planet: numeric as Planet });\n }\n return out;\n}\n\nexport function findTransitPerfections(options: FindTransitPerfectionsOptions): FindTransitPerfectionsResult {\n const specs = options.aspectSpecs ?? DEFAULT_ASPECT_SPECS;\n const timeToleranceSeconds = options.timeToleranceSeconds ?? 0.001;\n const startJd = dateToJd(options.fromUtc);\n const endJd = dateToJd(options.toUtc);\n const perfections: TransitPerfectionEvent[] = [];\n const closestApproaches: TransitClosestApproach[] = [];\n\n for (const { key: tKey, planet } of transitBodies(options.transitPlanets)) {\n const category: \"slow\" | \"fast\" = SLOW_PLANETS.has(tKey) ? \"slow\" : \"fast\";\n // One shared, cached sampler per transiting body for every natal point/aspect.\n const fns: BodyLongitudeFunctions = createBodyLongitudeFunctions(planet);\n const bodyStep = Math.min(\n options.stepDays,\n MAX_BODY_SCAN_STEP_DAYS,\n category === \"fast\" ? FAST_PLANET_MAX_STEP_DAYS : Infinity\n );\n\n for (const [nKey, nPoint] of Object.entries(options.natalPoints)) {\n for (const spec of specs) {\n const offsets = spec.angle === 0 || spec.angle === 180 ? [spec.angle] : [spec.angle, -spec.angle];\n for (const offset of offsets) {\n const target = (((nPoint.longitude + offset) % 360) + 360) % 360;\n const result = findAngularRoots({\n longitude: fns.longitude,\n speed: fns.speed,\n target,\n start: startJd,\n end: endJd,\n stepDays: bodyStep,\n timeToleranceSeconds,\n residualToleranceDegrees: options.residualToleranceDegrees,\n includeClosestApproaches: options.includeClosestApproaches,\n maxClosestSeparationDegrees: spec.orb,\n });\n for (const r of result.roots) {\n perfections.push({\n kind: \"exact\",\n transitPlanet: tKey,\n natalPlanet: nKey,\n aspect: spec.name,\n exactDate: r.instant,\n exactJd: r.jd,\n exactOrb: r.residualDegrees,\n retrograde: r.direction === \"retrograde\" || (r.direction === \"stationary\" && r.speedDegreesPerDay < 0),\n category,\n solver: {\n residualDegrees: r.residualDegrees,\n bracketWidthSeconds: r.bracketWidthSeconds,\n timeToleranceSeconds: r.timeToleranceSeconds,\n iterations: r.iterations,\n direction: r.direction,\n tangent: r.tangent,\n scanStepDays: bodyStep,\n targetLongitude: result.target,\n coverage: result.coverage,\n method: ROOT_SOLVER_METHOD,\n },\n });\n }\n for (const c of result.closestApproaches) {\n closestApproaches.push({\n kind: \"closest-approach\",\n transitPlanet: tKey,\n natalPlanet: nKey,\n aspect: spec.name,\n date: c.instant,\n jd: c.jd,\n separationDegrees: c.separationDegrees,\n displayOrb: spec.orb,\n category,\n });\n }\n }\n }\n }\n }\n\n perfections.sort((a, b) => a.exactJd - b.exactJd);\n closestApproaches.sort((a, b) => a.jd - b.jd);\n return { perfections, closestApproaches };\n}\n","/**\n * Sect (diurnal / nocturnal) from the physical horizon.\n *\n * Sect is a property of the sky, not of the house system: a chart is diurnal\n * when the Sun is above the horizon at the birth place and nocturnal otherwise.\n * The legacy `getSect(sunHouse)` approximation (in `./index`) only matches this\n * when the quadrant house cusps coincide with the horizon (Placidus-like\n * systems); in whole-sign houses it can be wrong by up to a whole sign.\n */\n\nimport type { Sect } from \"./index\";\nimport { calculateAzalt } from \"./swisseph\";\n\n/** Which Sun altitude decides the sect. */\nexport type SectAltitudeBasis =\n /** True (unrefracted) altitude of the Sun's centre of disc. Default. */\n | \"geometric\"\n /** Altitude including standard atmospheric refraction (1013.25 mbar, 15 C). */\n | \"apparent\";\n\nexport interface SectOptions {\n /** Altitude basis; default `\"geometric\"`. */\n basis?: SectAltitudeBasis;\n /**\n * Sun altitude threshold in degrees (default 0, the mathematical horizon).\n * Sect is diurnal when altitude is strictly greater than the threshold.\n */\n horizonAltitude?: number;\n}\n\nexport interface SectResult {\n sect: Sect;\n /** True (geometric) altitude of the Sun's centre, degrees. */\n sunGeometricAltitude: number;\n /** Refraction-corrected altitude, degrees. */\n sunApparentAltitude: number;\n /** Altitude actually compared against the threshold. */\n altitudeUsed: number;\n method: {\n basis: SectAltitudeBasis;\n horizonAltitude: number;\n /** Exact-horizon convention. */\n exactHorizon: \"nocturnal\";\n description: string;\n };\n}\n\n/**\n * Exact-horizon convention: sect is `\"diurnal\"` only when the altitude is\n * strictly greater than the threshold; an altitude exactly equal to the\n * threshold (0 by default) is `\"nocturnal\"`. Callers wanting the opposite\n * convention can use `sunGeometricAltitude` from the result.\n */\nexport function getSectFromAltitude(altitude: number, horizonAltitude = 0): Sect {\n if (!Number.isFinite(altitude)) {\n throw new Error(\"Sun altitude must be a finite number\");\n }\n return altitude > horizonAltitude ? \"diurnal\" : \"nocturnal\";\n}\n\n/**\n * Compute sect from the Sun's position at the birth place. Requires an\n * initialised Swiss Ephemeris (it calls swe_azalt with default pressure and\n * temperature for the apparent altitude).\n *\n * @param dateUtc instant of birth (UTC)\n * @param sun ecliptic longitude/latitude of the Sun (degrees)\n */\nexport function computeSect(\n dateUtc: Date,\n latitude: number,\n longitude: number,\n sun: { longitude: number; latitude?: number; distance?: number },\n options: SectOptions = {}\n): SectResult {\n const basis = options.basis ?? \"geometric\";\n const horizonAltitude = options.horizonAltitude ?? 0;\n const az = calculateAzalt(\n dateUtc,\n latitude,\n longitude,\n sun.longitude,\n sun.latitude ?? 0,\n sun.distance ?? 1\n );\n const altitudeUsed = basis === \"geometric\" ? az.trueAltitude : az.apparentAltitude;\n return {\n sect: getSectFromAltitude(altitudeUsed, horizonAltitude),\n sunGeometricAltitude: az.trueAltitude,\n sunApparentAltitude: az.apparentAltitude,\n altitudeUsed,\n method: {\n basis,\n horizonAltitude,\n exactHorizon: \"nocturnal\",\n description:\n \"diurnal when the Sun's \" +\n (basis === \"geometric\" ? \"geometric (unrefracted) centre-of-disc\" : \"apparent (refracted)\") +\n ` altitude is strictly above ${horizonAltitude} degrees; exactly on the threshold counts as nocturnal; independent of house system`,\n },\n };\n}\n","/**\n * Hellenistic lots of Fortune and Spirit (sect-reversed counterparts).\n * Pure arithmetic, no WASM dependency.\n *\n * Fortune: day ASC + Moon - Sun night ASC + Sun - Moon\n * Spirit : day ASC + Sun - Moon night ASC + Moon - Sun\n *\n * Hence Fortune + Spirit = 2 * ASC (mod 360) in either sect.\n */\n\nimport { normalizeAngle } from \"./swisseph\";\n\nexport interface LotsResult {\n fortune: number;\n spirit: number;\n method: {\n sectUsed: \"diurnal\" | \"nocturnal\";\n fortune: string;\n spirit: string;\n };\n}\n\nexport function calcLotOfFortune(asc: number, sun: number, moon: number, diurnal: boolean): number {\n return normalizeAngle(diurnal ? asc + moon - sun : asc + sun - moon);\n}\n\nexport function calcLotOfSpirit(asc: number, sun: number, moon: number, diurnal: boolean): number {\n return normalizeAngle(diurnal ? asc + sun - moon : asc + moon - sun);\n}\n\nexport function computeLots(\n asc: number,\n sun: number,\n moon: number,\n sect: \"diurnal\" | \"nocturnal\"\n): LotsResult {\n const diurnal = sect === \"diurnal\";\n return {\n fortune: calcLotOfFortune(asc, sun, moon, diurnal),\n spirit: calcLotOfSpirit(asc, sun, moon, diurnal),\n method: {\n sectUsed: sect,\n fortune: diurnal ? \"ASC + Moon - Sun\" : \"ASC + Sun - Moon\",\n spirit: diurnal ? \"ASC + Sun - Moon\" : \"ASC + Moon - Sun\",\n },\n };\n}\n","/**\n * Moon phase from ecliptic longitudes. Pure arithmetic, no WASM dependency.\n *\n * Phase names use the 8-phase convention with 45 degree sectors centred on the\n * principal phases, i.e. boundaries at 22.5, 67.5, ... degrees of elongation\n * (lower boundary inclusive, upper exclusive):\n * [337.5, 22.5) new, [22.5, 67.5) waxing crescent, [67.5, 112.5) first quarter,\n * [112.5, 157.5) waxing gibbous, [157.5, 202.5) full, [202.5, 247.5) waning gibbous,\n * [247.5, 292.5) last quarter, [292.5, 337.5) waning crescent.\n * Waxing: elongation in [0, 180); waning: [180, 360). Exactly 0 is \"new\"/waxing,\n * exactly 180 is \"full\"/waning.\n */\n\nimport { normalizeAngle } from \"./swisseph\";\n\nexport type MoonPhaseName =\n | \"new\"\n | \"waxing_crescent\"\n | \"first_quarter\"\n | \"waxing_gibbous\"\n | \"full\"\n | \"waning_gibbous\"\n | \"last_quarter\"\n | \"waning_crescent\";\n\nexport const MOON_PHASE_NAMES: readonly MoonPhaseName[] = [\n \"new\",\n \"waxing_crescent\",\n \"first_quarter\",\n \"waxing_gibbous\",\n \"full\",\n \"waning_gibbous\",\n \"last_quarter\",\n \"waning_crescent\",\n];\n\nexport interface MoonPhaseResult {\n /** (Moon - Sun) ecliptic longitude, 0 <= x < 360. */\n elongation: number;\n phase: MoonPhaseName;\n /** Index 0..7 into the 8-phase cycle. */\n phaseIndex: number;\n waxing: boolean;\n /** Illuminated fraction of the lunar disc, 0..1. */\n illuminatedFraction: number;\n illumination: {\n method: \"approximate\" | \"exact\";\n description: string;\n };\n}\n\nexport function computeMoonPhase(sunLongitude: number, moonLongitude: number): MoonPhaseResult {\n const elongation = normalizeAngle(moonLongitude - sunLongitude);\n const phaseIndex = Math.floor(normalizeAngle(elongation + 22.5) / 45) % 8;\n return {\n elongation,\n phase: MOON_PHASE_NAMES[phaseIndex],\n phaseIndex,\n waxing: elongation < 180,\n illuminatedFraction: (1 - Math.cos((elongation * Math.PI) / 180)) / 2,\n illumination: {\n method: \"approximate\",\n description:\n \"(1 - cos(elongation)) / 2 using the ecliptic-longitude difference; ignores Moon ecliptic latitude and the Sun/Moon distance ratio, so it differs from the true phase-angle illumination by well under one percent of the disc\",\n },\n };\n}\n","/**\n * Composite-chart geometry: midpoints, angles and house cusps.\n * Pure math, no WASM dependency.\n *\n * Conventions (all reported back in `CompositeMethod`):\n *\n * - Midpoint: shorter-arc midpoint of two ecliptic longitudes.\n * - Antipodal policy: two points exactly (within `antipodalEpsilon`, default\n * 0.001 degree) opposite each other have two equally valid midpoints. The\n * rule is deterministic and symmetric in its arguments: the ARITHMETIC mean\n * of the two normalised longitudes in [0, 360) is used (i.e. the midpoint of\n * the arc that does not cross 0 Aries). Such a pair is flagged in\n * `notices` (`type: \"antipodal\"`).\n * - Angles: composite ASC = midpoint(ASC_A, ASC_B). The composite MC is the\n * midpoint(MC_A, MC_B) or its opposite, whichever puts the MC 0-180 degrees\n * behind the composite ASC (as in every real chart), so ASC/MC stay\n * consistent with each other. DSC = ASC + 180, IC = MC + 180.\n * - Whole-sign houses: house 1 starts at 0 degrees of the composite ASC's sign\n * and each following house is 30 degrees further on.\n * - Quadrant / other systems: cusp i = midpoint of cusp i of both charts. Cusp\n * 1 is anchored to the composite ASC when both charts' cusp 1 equals their\n * ASC. Cusps are then walked in order; for each, if the shorter-arc midpoint\n * falls on the opposite side (forward gap from the previous cusp not within\n * (0, 180)), the opposite point is used and the house is listed in\n * `correctedCusps`. If the result still is not strictly increasing mod 360\n * (should not happen below polar latitudes) equal houses from the composite\n * ASC are used and `fallback` is set to \"equal\".\n */\n\nimport { normalizeAngle } from \"./swisseph\";\n\nexport const DEFAULT_ANTIPODAL_EPSILON = 1e-3;\n\nexport interface CompositeMidpoint {\n longitude: number;\n /** True when the two inputs are within epsilon of exact opposition. */\n antipodal: boolean;\n}\n\n/** Midpoint of two longitudes, symmetric, with the antipodal policy above. */\nexport function compositeMidpoint(\n a: number,\n b: number,\n epsilon = DEFAULT_ANTIPODAL_EPSILON\n): CompositeMidpoint {\n const na = normalizeAngle(a);\n const nb = normalizeAngle(b);\n const sep = Math.abs(na - nb);\n const arc = sep > 180 ? 360 - sep : sep;\n if (Math.abs(arc - 180) <= epsilon) {\n return { longitude: normalizeAngle((na + nb) / 2), antipodal: true };\n }\n let diff = nb - na;\n if (diff > 180) diff -= 360;\n if (diff < -180) diff += 360;\n return { longitude: normalizeAngle(na + diff / 2), antipodal: false };\n}\n\n/** Forward (zodiacal-order) gap from `from` to `to`, in [0, 360). */\nfunction forwardGap(from: number, to: number): number {\n return normalizeAngle(to - from);\n}\n\n/** True when the cusps run strictly forward through exactly one full turn. */\nexport function cuspsStrictlyIncreasing(cusps: number[]): boolean {\n if (cusps.length < 2) return true;\n let total = 0;\n for (let i = 0; i < cusps.length; i++) {\n const gap = forwardGap(cusps[i], cusps[(i + 1) % cusps.length]);\n if (gap <= 0) return false;\n total += gap;\n }\n return Math.abs(total - 360) < 1e-9;\n}\n\nexport type CompositeNotice =\n | { type: \"antipodal\"; point: string; longitudeA: number; longitudeB: number }\n | { type: \"mc_flipped\"; reason: string }\n | { type: \"cusp_corrected\"; house: number }\n | { type: \"equal_house_fallback\"; reason: string }\n | { type: \"mixed_house_systems\"; reason: string };\n\nexport interface CompositeMethod {\n midpoint: \"shorter arc\";\n antipodalPolicy: string;\n antipodalEpsilon: number;\n houses: \"whole-sign\" | \"midpoint-of-corresponding-cusps\";\n fallback: \"equal\" | null;\n correctedCusps: number[];\n}\n\nexport interface CompositeAngles {\n ascendant: number;\n mc: number;\n descendant: number;\n ic: number;\n}\n\nexport function computeCompositeAngles(\n a: { ascendant: number; mc: number },\n b: { ascendant: number; mc: number },\n epsilon = DEFAULT_ANTIPODAL_EPSILON\n): { angles: CompositeAngles; notices: CompositeNotice[] } {\n const notices: CompositeNotice[] = [];\n const asc = compositeMidpoint(a.ascendant, b.ascendant, epsilon);\n if (asc.antipodal) {\n notices.push({ type: \"antipodal\", point: \"ascendant\", longitudeA: a.ascendant, longitudeB: b.ascendant });\n }\n const mcMid = compositeMidpoint(a.mc, b.mc, epsilon);\n if (mcMid.antipodal) {\n notices.push({ type: \"antipodal\", point: \"mc\", longitudeA: a.mc, longitudeB: b.mc });\n }\n let mc = mcMid.longitude;\n // A real MC lies 0-180 degrees behind the ASC: ASC - MC in (0, 180).\n const lead = forwardGap(mc, asc.longitude);\n if (!(lead > 0 && lead < 180)) {\n const flipped = normalizeAngle(mc + 180);\n const flippedLead = forwardGap(flipped, asc.longitude);\n if (flippedLead > 0 && flippedLead < 180) {\n mc = flipped;\n notices.push({\n type: \"mc_flipped\",\n reason: \"midpoint MC was on the wrong side of the composite ASC; the opposite midpoint was used\",\n });\n }\n }\n return {\n angles: {\n ascendant: asc.longitude,\n mc,\n descendant: normalizeAngle(asc.longitude + 180),\n ic: normalizeAngle(mc + 180),\n },\n notices,\n };\n}\n\nexport interface CompositeCuspInput {\n cuspsA: number[];\n cuspsB: number[];\n ascA: number;\n ascB: number;\n /** Use whole-sign houses from the composite ASC (both charts whole-sign). */\n wholeSign: boolean;\n compositeAsc: number;\n epsilon?: number;\n}\n\nexport function computeCompositeCusps(input: CompositeCuspInput): {\n cusps: number[];\n method: Pick<CompositeMethod, \"houses\" | \"fallback\" | \"correctedCusps\">;\n notices: CompositeNotice[];\n} {\n const { cuspsA, cuspsB, compositeAsc } = input;\n const epsilon = input.epsilon ?? DEFAULT_ANTIPODAL_EPSILON;\n const notices: CompositeNotice[] = [];\n\n const equalFrom = (start: number) => Array.from({ length: 12 }, (_, i) => normalizeAngle(start + i * 30));\n\n if (input.wholeSign) {\n const signStart = Math.floor(normalizeAngle(compositeAsc) / 30) * 30;\n return {\n cusps: equalFrom(signStart),\n method: { houses: \"whole-sign\", fallback: null, correctedCusps: [] },\n notices,\n };\n }\n\n const n = Math.min(cuspsA.length, cuspsB.length);\n const cusps: number[] = [];\n const corrected: number[] = [];\n const anchored =\n Math.abs(compositeAngleDiff(cuspsA[0], input.ascA)) < 1e-6 &&\n Math.abs(compositeAngleDiff(cuspsB[0], input.ascB)) < 1e-6;\n for (let i = 0; i < n; i++) {\n const mid = compositeMidpoint(cuspsA[i], cuspsB[i], epsilon);\n if (mid.antipodal) {\n notices.push({ type: \"antipodal\", point: `house${i + 1}`, longitudeA: cuspsA[i], longitudeB: cuspsB[i] });\n }\n if (i === 0) {\n cusps.push(anchored ? normalizeAngle(compositeAsc) : mid.longitude);\n continue;\n }\n const prev = cusps[i - 1];\n const gap = forwardGap(prev, mid.longitude);\n if (gap > 0 && gap < 180) {\n cusps.push(mid.longitude);\n } else {\n const flipped = normalizeAngle(mid.longitude + 180);\n const flippedGap = forwardGap(prev, flipped);\n if (flippedGap > 0 && flippedGap < 180) {\n cusps.push(flipped);\n corrected.push(i + 1);\n notices.push({ type: \"cusp_corrected\", house: i + 1 });\n } else {\n cusps.push(mid.longitude);\n }\n }\n }\n\n if (n === 12 && !cuspsStrictlyIncreasing(cusps)) {\n notices.push({\n type: \"equal_house_fallback\",\n reason: \"midpoint cusps could not be ordered strictly increasing; equal houses from the composite ASC\",\n });\n return {\n cusps: equalFrom(compositeAsc),\n method: { houses: \"midpoint-of-corresponding-cusps\", fallback: \"equal\", correctedCusps: corrected },\n notices,\n };\n }\n return {\n cusps,\n method: { houses: \"midpoint-of-corresponding-cusps\", fallback: null, correctedCusps: corrected },\n notices,\n };\n}\n\nfunction compositeAngleDiff(a: number, b: number): number {\n let d = normalizeAngle(a) - normalizeAngle(b);\n if (d > 180) d -= 360;\n if (d < -180) d += 360;\n return d;\n}\n\nexport const ANTIPODAL_POLICY_TEXT =\n \"points within epsilon of exact opposition use the arithmetic mean of the normalised longitudes (arc not crossing 0 Aries); flagged in notices\";\n","/**\n * Celestial-frame mathematics for the Dhruva (equatorial) nakshatra method.\n *\n * Pure, browser-safe, no ephemeris dependency. Ports exactly what Astropy\n * (checked against 8.0.2 / pyerfa 2.0.1.5) does for\n *\n * SkyCoord(ra, dec, frame=ICRS()).transform_to(FK5(equinox=Time(jd, format=\"jd\", scale=\"utc\")))\n *\n * which is NOT the IAU 1976 precession and includes no nutation, aberration\n * or proper motion:\n *\n * 1. ICRS -> FK5 J2000: the three-rotation frame-bias matrix of USNO\n * Circular 179 (eta0 = -19.9 mas, xi0 = 9.1 mas, da0 = -22.9 mas),\n * `Rx(-eta0) Ry(xi0) Rz(da0)`.\n * 2. FK5 J2000 -> FK5 of date: the bias-free IAU 2006 (Capitaine et al.)\n * precession matrix, `erfa.bp06(...)[1]` = Fukushima-Williams matrix of\n * date times the transpose of the Fukushima-Williams matrix at J2000.\n * Result is the MEAN equator and equinox of date.\n * 3. The epoch of date is the supplied Julian date read on the UTC scale and\n * converted UTC -> TAI -> TT (leap seconds, then +32.184 s).\n *\n * All angles are degrees unless a name says radians.\n */\n\nconst DEG = Math.PI / 180;\nconst ARCSEC = DEG / 3600;\nconst MAS = ARCSEC / 1000;\n\nexport const JD_J2000 = 2451545.0;\nexport const JULIAN_CENTURY_DAYS = 36525;\nexport const TT_MINUS_TAI_SECONDS = 32.184;\n\nexport function normalizeDegrees(value: number): number {\n const v = value % 360;\n return v < 0 ? v + 360 : v;\n}\n\n/** Signed smallest difference a - b in (-180, 180]. */\nexport function signedAngleBetween(a: number, b: number): number {\n const d = normalizeDegrees(a - b);\n return d > 180 ? d - 360 : d;\n}\n\n// ---------------------------------------------------------------------------\n// UTC -> TT\n// ---------------------------------------------------------------------------\n\n// [year, month, TAI-UTC seconds] from 1972 (integer leap seconds). Matches the\n// ERFA `eraDat` table up to the 2017 step; later dates hold 37 s, as ERFA does.\nconst LEAP_SECONDS: ReadonlyArray<readonly [number, number, number]> = [\n [1972, 1, 10], [1972, 7, 11], [1973, 1, 12], [1974, 1, 13], [1975, 1, 14],\n [1976, 1, 15], [1977, 1, 16], [1978, 1, 17], [1979, 1, 18], [1980, 1, 19],\n [1981, 7, 20], [1982, 7, 21], [1983, 7, 22], [1985, 7, 23], [1988, 1, 24],\n [1990, 1, 25], [1991, 1, 26], [1992, 7, 27], [1993, 7, 28], [1994, 7, 29],\n [1996, 1, 30], [1997, 7, 31], [1999, 1, 32], [2006, 1, 33], [2009, 1, 34],\n [2012, 7, 35], [2015, 7, 36], [2017, 1, 37],\n];\n\n// Pre-1972 rubber-second UTC: [year, month, base seconds, reference MJD, rate s/day].\nconst PRE_1972: ReadonlyArray<readonly [number, number, number, number, number]> = [\n [1960, 1, 1.417818, 37300, 0.001296],\n [1961, 1, 1.422818, 37300, 0.001296],\n [1961, 8, 1.372818, 37300, 0.001296],\n [1962, 1, 1.845858, 37665, 0.0011232],\n [1963, 11, 1.945858, 37665, 0.0011232],\n [1964, 1, 3.24013, 38761, 0.001296],\n [1964, 4, 3.34013, 38761, 0.001296],\n [1964, 9, 3.44013, 38761, 0.001296],\n [1965, 1, 3.54013, 38761, 0.001296],\n [1965, 3, 3.64013, 38761, 0.001296],\n [1965, 7, 3.74013, 38761, 0.001296],\n [1965, 9, 3.84013, 38761, 0.001296],\n [1966, 1, 4.31317, 39126, 0.002592],\n [1968, 2, 4.21317, 39126, 0.002592],\n];\n\n/** Gregorian calendar (year, month) of a Julian date (Fliegel-Van Flandern style, valid for the Gregorian era). */\nfunction yearMonthOfJd(jd: number): [number, number] {\n let l = Math.floor(jd + 0.5) + 68569;\n const n = Math.floor((4 * l) / 146097);\n l = l - Math.floor((146097 * n + 3) / 4);\n const i = Math.floor((4000 * (l + 1)) / 1461001);\n l = l - Math.floor((1461 * i) / 4) + 31;\n const j = Math.floor((80 * l) / 2447);\n const month = j + 2 - 12 * Math.floor(j / 11);\n const year = 100 * (n - 49) + i + Math.floor(j / 11);\n return [year, month];\n}\n\n/**\n * TAI - UTC in seconds for a UTC Julian date, reproducing ERFA `eraDat`:\n * 0 before 1960 (ERFA flags this as \"dubious year\" but returns 0), drifting\n * rubber-second offsets 1960-1971, integer leap seconds after, held at the last\n * tabulated value for later dates.\n */\nexport function taiMinusUtcSeconds(jdUtc: number): number {\n const [year, month] = yearMonthOfJd(jdUtc);\n const key = year * 12 + (month - 1);\n if (key < 1960 * 12) return 0;\n if (key >= 1972 * 12) {\n let value = LEAP_SECONDS[0][2];\n for (const [y, m, s] of LEAP_SECONDS) {\n if (key >= y * 12 + (m - 1)) value = s;\n else break;\n }\n return value;\n }\n let row = PRE_1972[0];\n for (const r of PRE_1972) {\n if (key >= r[0] * 12 + (r[1] - 1)) row = r;\n else break;\n }\n const mjd = jdUtc - 2400000.5;\n return row[2] + (mjd - row[3]) * row[4];\n}\n\n/** Julian date on the TT scale for a Julian date read on the UTC scale (Astropy `Time(jd, format=\"jd\", scale=\"utc\")`). */\nexport function utcJdToTtJd(jdUtc: number): number {\n return jdUtc + (taiMinusUtcSeconds(jdUtc) + TT_MINUS_TAI_SECONDS) / 86400;\n}\n\n// ---------------------------------------------------------------------------\n// IAU 2006 precession (Fukushima-Williams)\n// ---------------------------------------------------------------------------\n\ntype Matrix3 = [number, number, number, number, number, number, number, number, number];\n\nfunction mul(a: Matrix3, b: Matrix3): Matrix3 {\n const r = new Array(9) as Matrix3;\n for (let i = 0; i < 3; i++) {\n for (let j = 0; j < 3; j++) {\n r[i * 3 + j] = a[i * 3] * b[j] + a[i * 3 + 1] * b[3 + j] + a[i * 3 + 2] * b[6 + j];\n }\n }\n return r;\n}\n\nfunction transpose(a: Matrix3): Matrix3 {\n return [a[0], a[3], a[6], a[1], a[4], a[7], a[2], a[5], a[8]];\n}\n\n// ERFA-style rotation matrices (rotation of the coordinate frame by `phi`).\nfunction rotX(phi: number): Matrix3 {\n const s = Math.sin(phi);\n const c = Math.cos(phi);\n return [1, 0, 0, 0, c, s, 0, -s, c];\n}\nfunction rotY(phi: number): Matrix3 {\n const s = Math.sin(phi);\n const c = Math.cos(phi);\n return [c, 0, -s, 0, 1, 0, s, 0, c];\n}\nfunction rotZ(phi: number): Matrix3 {\n const s = Math.sin(phi);\n const c = Math.cos(phi);\n return [c, s, 0, -s, c, 0, 0, 0, 1];\n}\n\nfunction poly(t: number, c: readonly number[]): number {\n let v = 0;\n for (let i = c.length - 1; i >= 0; i--) v = v * t + c[i];\n return v;\n}\n\n/** `eraPfw06` angles at TT Julian date: gamma_bar, phi_bar, psi_bar, eps_A (radians). */\nfunction fukushimaWilliamsAngles(jdTt: number): [number, number, number, number] {\n const t = (jdTt - JD_J2000) / JULIAN_CENTURY_DAYS;\n const gamb = poly(t, [-0.052928, 10.556378, 0.4932044, -0.00031238, -0.000002788, 0.000000026]) * ARCSEC;\n const phib = poly(t, [84381.412819, -46.811016, 0.0511268, 0.00053289, -0.00000044, -0.0000000176]) * ARCSEC;\n const psib = poly(t, [-0.041775, 5038.481484, 1.5584175, -0.00018522, -0.000026452, -0.0000000148]) * ARCSEC;\n const epsa = poly(t, [84381.406, -46.836769, -0.0001831, 0.0020034, -0.000000576, -0.0000000434]) * ARCSEC;\n return [gamb, phib, psib, epsa];\n}\n\n/** `eraFw2m`: R = Rx(-eps) Rz(-psi) Rx(phi) Rz(gamma). */\nfunction fw2m(gamb: number, phib: number, psib: number, epsa: number): Matrix3 {\n return mul(rotX(-epsa), mul(rotZ(-psib), mul(rotX(phib), rotZ(gamb))));\n}\n\n/**\n * Bias-free IAU 2006 precession matrix J2000 -> mean equator/equinox of date\n * (`erfa.bp06(jd1, jd2)[1]`), for a TT Julian date.\n */\nexport function precessionMatrixJ2000ToDate(jdTt: number): Matrix3 {\n const [g0, p0, s0, e0] = fukushimaWilliamsAngles(JD_J2000);\n const bias = fw2m(g0, p0, s0, e0);\n const [g, p, s, e] = fukushimaWilliamsAngles(jdTt);\n return mul(fw2m(g, p, s, e), transpose(bias));\n}\n\n/** USNO Circular 179 ICRS -> FK5 J2000 frame-bias matrix, as in Astropy `_icrs_to_fk5_matrix`. */\nexport function icrsToFk5J2000Matrix(): Matrix3 {\n const eta0 = -19.9 * MAS;\n const xi0 = 9.1 * MAS;\n const da0 = -22.9 * MAS;\n // Astropy `rotation_matrix(angle, axis)` uses the same frame-rotation convention as ERFA Rx/Ry/Rz.\n return mul(rotX(-eta0), mul(rotY(xi0), rotZ(da0)));\n}\n\nexport interface EquatorialCoordinate {\n /** Right ascension, degrees in [0, 360). */\n rightAscension: number;\n /** Declination, degrees. */\n declination: number;\n}\n\nfunction toUnit(ra: number, dec: number): [number, number, number] {\n const a = ra * DEG;\n const d = dec * DEG;\n return [Math.cos(d) * Math.cos(a), Math.cos(d) * Math.sin(a), Math.sin(d)];\n}\n\nfunction fromUnit(v: readonly [number, number, number]): EquatorialCoordinate {\n const [x, y, z] = v;\n return {\n rightAscension: normalizeDegrees(Math.atan2(y, x) / DEG),\n declination: Math.atan2(z, Math.hypot(x, y)) / DEG,\n };\n}\n\nfunction apply(m: Matrix3, v: readonly [number, number, number]): [number, number, number] {\n return [\n m[0] * v[0] + m[1] * v[1] + m[2] * v[2],\n m[3] * v[0] + m[4] * v[1] + m[5] * v[2],\n m[6] * v[0] + m[7] * v[1] + m[8] * v[2],\n ];\n}\n\n/**\n * ICRS -> FK5 mean equator and equinox of date. `jdUtc` is the Julian date read\n * on the UTC scale (the reference passes the UT Julian day; UT1-UTC < 0.9 s is\n * ignored exactly as the reference ignores it).\n */\nexport function icrsToFk5OfDate(\n rightAscensionIcrs: number,\n declinationIcrs: number,\n jdUtc: number\n): EquatorialCoordinate {\n const bias = icrsToFk5J2000Matrix();\n const prec = precessionMatrixJ2000ToDate(utcJdToTtJd(jdUtc));\n return fromUnit(apply(mul(prec, bias), toUnit(rightAscensionIcrs, declinationIcrs)));\n}\n\n/** Right ascension (degrees) of an ecliptic point on the ecliptic (beta = 0) of obliquity `obliquityDegrees`. */\nexport function ecliptic0ToRightAscension(longitude: number, obliquityDegrees: number): number {\n const l = longitude * DEG;\n const e = obliquityDegrees * DEG;\n return normalizeDegrees(Math.atan2(Math.sin(l) * Math.cos(e), Math.cos(l)) / DEG);\n}\n\n/** Declination (degrees) of an ecliptic point at beta = 0. */\nexport function ecliptic0ToDeclination(longitude: number, obliquityDegrees: number): number {\n const l = longitude * DEG;\n const e = obliquityDegrees * DEG;\n return Math.asin(Math.sin(l) * Math.sin(e)) / DEG;\n}\n","/**\n * Thin ephemeris access for the Jyotish module: geocentric body positions\n * (ecliptic + equatorial), true obliquity and the tropical ascendant at an\n * explicit UT Julian day. Everything here is tropical; sidereal conversion is\n * in `lahiri.ts`.\n */\n\nimport {\n CalcFlag,\n HouseSystem,\n Planet,\n SWISS_ECL_NUT,\n calculateBodyAtJulianDay,\n calculateBodyAtJulianDayDetailed,\n calculateHousesAtJulianDay,\n getJulianDay,\n type PlanetPosition,\n type SwissEphemerisKind,\n} from \"../swisseph\";\nimport { normalizeDegrees } from \"./frames\";\n\nexport type JyotishEphemeris = \"swiss\" | \"moshier\";\n\n/** Bodies that carry nakshatras and dashas in both frames (nodes handled separately). */\nexport const JYOTISH_BODY_IDS = [\"sun\", \"moon\", \"mercury\", \"venus\", \"mars\", \"jupiter\", \"saturn\"] as const;\nexport type JyotishBodyId = (typeof JYOTISH_BODY_IDS)[number];\n\nconst PLANET_BY_ID: Record<JyotishBodyId, Planet> = {\n sun: Planet.SUN,\n moon: Planet.MOON,\n mercury: Planet.MERCURY,\n venus: Planet.VENUS,\n mars: Planet.MARS,\n jupiter: Planet.JUPITER,\n saturn: Planet.SATURN,\n};\n\nexport type NodeConvention = \"mean\" | \"true\";\n\n/** Swiss flags: ephemeris source + speed. Always geocentric, tropical, apparent, of date. */\nexport function ephemerisFlags(ephemeris: JyotishEphemeris): number {\n return (ephemeris === \"moshier\" ? CalcFlag.MOSHIER : CalcFlag.SWISS_EPH) | CalcFlag.SPEED;\n}\n\n/**\n * Which Swiss ephemeris actually produced the numbers. Swiss Ephemeris silently falls back to\n * Moshier when the .se1 files are missing or the date is outside their range; this records it.\n */\nexport interface EphemerisUsage {\n requested: JyotishEphemeris;\n /** Distinct ephemerides actually used across every body evaluation of the chart. */\n used: SwissEphemerisKind[];\n /** True when any evaluation used a different ephemeris than requested. */\n substituted: boolean;\n /** Distinct non-fatal Swiss notices (for example the Moshier fallback text). */\n warnings: string[];\n}\n\n/** Options shared by the Jyotish calculators. */\nexport interface EphemerisCheckOptions {\n /** Throw `SwissEphEphemerisMismatchError` instead of returning substituted (e.g. Moshier) output. */\n strictEphemeris?: boolean;\n}\n\n/** Collects provenance across body evaluations; threaded through the calculators. */\nexport class EphemerisTracker {\n private readonly kinds = new Set<SwissEphemerisKind>();\n private readonly notes = new Set<string>();\n private anySubstituted = false;\n constructor(readonly requested: JyotishEphemeris, readonly strictEphemeris?: boolean) {}\n\n /** Evaluate a body (ecliptic, equatorial or sidereal flags) and record its provenance. */\n calc(julianDayUt: number, planet: number, flags: number): PlanetPosition {\n if (planet === SWISS_ECL_NUT) return calculateBodyAtJulianDay(julianDayUt, planet, flags);\n const d = calculateBodyAtJulianDayDetailed(julianDayUt, planet, flags, {\n strictEphemeris: this.strictEphemeris,\n });\n if (d.ephemeris) this.kinds.add(d.ephemeris);\n if (d.substituted) this.anySubstituted = true;\n if (d.warning) this.notes.add(d.warning.trim());\n return d.position;\n }\n\n usage(): EphemerisUsage {\n return {\n requested: this.requested,\n used: [...this.kinds].sort(),\n substituted: this.anySubstituted,\n warnings: [...this.notes],\n };\n }\n}\n\n/** Combine several usages (e.g. Dhruva + Lahiri) into one chart-level record. */\nexport function mergeEphemerisUsage(...usages: EphemerisUsage[]): EphemerisUsage {\n return {\n requested: usages[0].requested,\n used: [...new Set(usages.flatMap((u) => u.used))].sort(),\n substituted: usages.some((u) => u.substituted),\n warnings: [...new Set(usages.flatMap((u) => u.warnings))],\n };\n}\n\nexport interface GeocentricBody {\n /** Apparent tropical ecliptic longitude of date (degrees). */\n longitude: number;\n /** Ecliptic latitude (degrees); retained for the equatorial transformation. */\n latitude: number;\n /** Apparent right ascension, true equator and equinox of date (Swiss `SEFLG_EQUATORIAL`). */\n rightAscension: number;\n declination: number;\n}\n\nfunction body(julianDayUt: number, planet: number, flags: number, tracker: EphemerisTracker): GeocentricBody {\n const ecl = tracker.calc(julianDayUt, planet, flags);\n const equ = tracker.calc(julianDayUt, planet, flags | CalcFlag.EQUATORIAL);\n return {\n longitude: normalizeDegrees(ecl.longitude),\n latitude: ecl.latitude,\n rightAscension: normalizeDegrees(equ.longitude),\n declination: equ.latitude,\n };\n}\n\nexport interface GeocentricBodies {\n planets: Record<JyotishBodyId, GeocentricBody>;\n meanNode: GeocentricBody;\n trueNode: GeocentricBody;\n}\n\n/** Fetch Sun..Saturn and both nodes at a UT Julian day. */\nexport function calculateGeocentricBodies(\n julianDayUt: number,\n ephemeris: JyotishEphemeris,\n tracker: EphemerisTracker = new EphemerisTracker(ephemeris)\n): GeocentricBodies {\n const flags = ephemerisFlags(ephemeris);\n const planets = {} as Record<JyotishBodyId, GeocentricBody>;\n for (const id of JYOTISH_BODY_IDS) planets[id] = body(julianDayUt, PLANET_BY_ID[id], flags, tracker);\n return {\n planets,\n meanNode: body(julianDayUt, Planet.MEAN_NODE, flags, tracker),\n trueNode: body(julianDayUt, Planet.TRUE_NODE, flags, tracker),\n };\n}\n\n/** Planet by id, used by the Lahiri module (which needs sidereal flags). */\nexport function planetIdFor(id: JyotishBodyId): Planet {\n return PLANET_BY_ID[id];\n}\n\n/** True obliquity of date in degrees (`SE_ECL_NUT`, first value). */\nexport function trueObliquity(\n julianDayUt: number,\n ephemeris: JyotishEphemeris,\n tracker: EphemerisTracker = new EphemerisTracker(ephemeris)\n): number {\n return tracker.calc(julianDayUt, SWISS_ECL_NUT, ephemerisFlags(ephemeris)).longitude;\n}\n\n/** Tropical ascendant (degrees) at a UT Julian day (computed with Equal houses, which never fail at polar latitudes; the ASC is house-system independent). */\nexport function tropicalAscendant(julianDayUt: number, latitude: number, longitude: number): number {\n return normalizeDegrees(\n calculateHousesAtJulianDay(julianDayUt, latitude, longitude, HouseSystem.EQUAL).ascendant\n );\n}\n\n/** UT Julian day of a Date (Swiss `swe_julday`, whole seconds). */\nexport function julianDayOf(date: Date): number {\n return getJulianDay(date);\n}\n\nexport function assertFiniteGeo(julianDayUt: number, latitude: number, longitude: number): void {\n if (![julianDayUt, latitude, longitude].every(Number.isFinite)) {\n throw new Error(\"Finite instant, latitude and longitude are required\");\n }\n if (latitude < -90 || latitude > 90 || longitude < -180 || longitude > 180) {\n throw new Error(\"Invalid geographic coordinates\");\n }\n}\n","/**\n * Nakshatra sector arithmetic shared by the Dhruva (equatorial) and Lahiri\n * (ecliptic sidereal) frames. Pure functions, no ephemeris.\n */\n\nimport { normalizeDegrees } from \"./frames\";\n\n/** Width of one nakshatra: 360 / 27 degrees. */\nexport const NAKSHATRA_WIDTH_DEGREES = 40 / 3;\n/** Width of one pada: a quarter nakshatra. */\nexport const PADA_WIDTH_DEGREES = 10 / 3;\n\n/** Stable ids as used by the reference implementation (underscored). */\nexport const NAKSHATRA_IDS = [\n \"Ashwini\", \"Bharani\", \"Krittika\", \"Rohini\", \"Mrigashira\", \"Ardra\",\n \"Punarvasu\", \"Pushya\", \"Ashlesha\", \"Magha\", \"Purva_Phalguni\", \"Uttara_Phalguni\",\n \"Hasta\", \"Chitra\", \"Swati\", \"Vishakha\", \"Anuradha\", \"Jyeshtha\",\n \"Mula\", \"Purva_Ashadha\", \"Uttara_Ashadha\", \"Shravana\", \"Dhanishtha\", \"Shatabhisha\",\n \"Purva_Bhadrapada\", \"Uttara_Bhadrapada\", \"Revati\",\n] as const;\n\nexport type NakshatraId = (typeof NAKSHATRA_IDS)[number];\n\n/** Vimshottari lord sequence; nakshatra index i is ruled by `VIMSHOTTARI_LORDS[i % 9]`. */\nexport const VIMSHOTTARI_LORDS = [\n \"ketu\", \"venus\", \"sun\", \"moon\", \"mars\", \"rahu\", \"jupiter\", \"saturn\", \"mercury\",\n] as const;\nexport type VimshottariLord = (typeof VIMSHOTTARI_LORDS)[number];\n\n/** Vimshottari years per lord, aligned with {@link VIMSHOTTARI_LORDS} (sum 120). */\nexport const VIMSHOTTARI_YEARS: readonly number[] = [7, 20, 6, 10, 7, 18, 16, 19, 17];\n\nexport const TROPICAL_SIGNS = [\n \"Aries\", \"Taurus\", \"Gemini\", \"Cancer\", \"Leo\", \"Virgo\",\n \"Libra\", \"Scorpio\", \"Sagittarius\", \"Capricorn\", \"Aquarius\", \"Pisces\",\n] as const;\nexport type SignName = (typeof TROPICAL_SIGNS)[number];\n\nexport interface SignPlacement {\n /** 0 = Aries ... 11 = Pisces (of the frame the longitude is in). */\n signIndex: number;\n sign: SignName;\n /** Degrees within the sign, [0, 30). */\n degreeInSign: number;\n}\n\nexport function signPlacement(longitude: number): SignPlacement {\n const lon = normalizeDegrees(longitude);\n const signIndex = Math.min(11, Math.floor(lon / 30));\n return { signIndex, sign: TROPICAL_SIGNS[signIndex], degreeInSign: lon - signIndex * 30 };\n}\n\nexport interface NakshatraPlacement {\n /** Position measured from the frame's zero point, [0, 360). */\n nakPos: number;\n /** 0-based nakshatra index, 0..26. */\n nakshatraIndex: number;\n /** 1-based nakshatra number, 1..27. */\n nakshatraNumber: number;\n /** Underscored id, e.g. `Purva_Phalguni`. */\n nakshatraId: NakshatraId;\n /** Display name, e.g. `Purva Phalguni`. */\n nakshatra: string;\n /** Pada 1..4. */\n pada: number;\n /** Fraction of the nakshatra already elapsed, [0, 1). */\n elapsedFraction: number;\n /** Vimshottari lord of the nakshatra. */\n lord: VimshottariLord;\n}\n\n/**\n * Classify a position that is already measured from the zero point. Mirrors the\n * reference: `index = min(26, floor(pos / (40/3)))`, `pada = min(4, floor(4 *\n * fraction) + 1)` with `fraction = pos/(40/3) - index`.\n */\nexport function nakshatraFromPosition(nakPosition: number): NakshatraPlacement {\n const nakPos = normalizeDegrees(nakPosition);\n const quotient = nakPos / NAKSHATRA_WIDTH_DEGREES;\n const nakshatraIndex = Math.min(26, Math.floor(quotient));\n const elapsedFraction = quotient - nakshatraIndex;\n const nakshatraId = NAKSHATRA_IDS[nakshatraIndex];\n return {\n nakPos,\n nakshatraIndex,\n nakshatraNumber: nakshatraIndex + 1,\n nakshatraId,\n nakshatra: nakshatraId.replace(/_/g, \" \"),\n pada: Math.min(4, Math.floor(elapsedFraction * 4) + 1),\n elapsedFraction,\n lord: VIMSHOTTARI_LORDS[nakshatraIndex % 9],\n };\n}\n","/**\n * Ernst Wilhelm / Kala \"Dhruva\" (System 1) equatorial nakshatras.\n *\n * Ports the user-supplied, confirmed reference implementation. The method:\n *\n * - Anchor: Galactic Center (Sgr A*) ICRS RA 266.40499 deg, Dec -28.93617 deg,\n * taken to the FK5 mean equator/equinox of date (Astropy-equivalent, see\n * `frames.ts`).\n * - `zeroRA = (GC_RA_of_date - (246 + 2/3)) mod 360`.\n * - `nakPos = (actual RA of date - zeroRA) mod 360`; 27 equal sectors of\n * 40/3 deg, 4 padas of 10/3 deg each.\n * - Bodies use their actual geocentric apparent right ascension from Swiss\n * (`SEFLG_EQUATORIAL`: true equator and equinox of date, i.e. nutation,\n * aberration and light-time included) with their actual ecliptic latitude.\n * The GC anchor is the mean FK5 of date (no nutation); this mixture is what the\n * reference does and is reproduced as-is (difference <= ~0.005 deg).\n * - Lagna: RA of the tropical ASC at ecliptic latitude 0 with true obliquity.\n * - Rahu is the latitude-0 node point (mean primary, true as a variant); Ketu is\n * the antipode of the corresponding Rahu.\n *\n * It is NOT ecliptic longitude minus Lahiri and NOT Swiss ayanamsa mode 36.\n * Tropical rasis and tropical houses are reported separately and unchanged.\n */\n\nimport {\n EphemerisTracker,\n type EphemerisCheckOptions,\n type EphemerisUsage,\n GeocentricBody,\n JyotishBodyId,\n JyotishEphemeris,\n NodeConvention,\n assertFiniteGeo,\n calculateGeocentricBodies,\n julianDayOf,\n trueObliquity,\n tropicalAscendant,\n JYOTISH_BODY_IDS,\n} from \"./bodies\";\nimport {\n ecliptic0ToDeclination,\n ecliptic0ToRightAscension,\n icrsToFk5OfDate,\n normalizeDegrees,\n} from \"./frames\";\nimport {\n NAKSHATRA_WIDTH_DEGREES,\n NakshatraPlacement,\n SignPlacement,\n nakshatraFromPosition,\n signPlacement,\n} from \"./nakshatra\";\n\n/** Explicit, named method constants. Never fitted to any fixture. */\nexport interface DhruvaConstants {\n /** Sgr A* ICRS right ascension, degrees. */\n gcIcrsRightAscension: number;\n /** Sgr A* ICRS declination, degrees. */\n gcIcrsDeclination: number;\n /** Degrees subtracted from the GC RA of date to get the RA origin (246 + 2/3). */\n anchorOffsetDegrees: number;\n /** Nakshatra width (40/3 deg). */\n sectorWidthDegrees: number;\n /** Default dasha year length for this method, days. */\n yearLengthDays: number;\n}\n\nexport const DHRUVA_CONSTANTS: Readonly<DhruvaConstants> = Object.freeze({\n gcIcrsRightAscension: 266.40499,\n gcIcrsDeclination: -28.93617,\n anchorOffsetDegrees: 246 + 2 / 3,\n sectorWidthDegrees: NAKSHATRA_WIDTH_DEGREES,\n yearLengthDays: 365.2422,\n});\n\nexport interface DhruvaOrigin {\n /** UT Julian day read on the UTC scale (as the reference does). */\n julianDayUt: number;\n /** GC right ascension, FK5 mean equator/equinox of date, degrees. */\n gcRightAscensionOfDate: number;\n gcDeclinationOfDate: number;\n /** `(gcRightAscensionOfDate - anchorOffsetDegrees) mod 360`. */\n zeroRightAscension: number;\n constants: DhruvaConstants;\n}\n\n/** Date-specific GC anchor and RA origin. */\nexport function getDhruvaOrigin(julianDayUt: number, constants: DhruvaConstants = DHRUVA_CONSTANTS): DhruvaOrigin {\n if (!Number.isFinite(julianDayUt)) throw new Error(\"Finite Julian day required\");\n const gc = icrsToFk5OfDate(constants.gcIcrsRightAscension, constants.gcIcrsDeclination, julianDayUt);\n return {\n julianDayUt,\n gcRightAscensionOfDate: gc.rightAscension,\n gcDeclinationOfDate: gc.declination,\n zeroRightAscension: normalizeDegrees(gc.rightAscension - constants.anchorOffsetDegrees),\n constants,\n };\n}\n\nexport interface DhruvaPoint extends NakshatraPlacement {\n /** Actual right ascension used (degrees, [0, 360)). */\n rightAscension: number;\n declination: number;\n /** Tropical ecliptic longitude of date (unchanged by the nakshatra frame). */\n longitude: number;\n /** Ecliptic latitude (0 for lagna and nodes). */\n latitude: number;\n /** Tropical rasi (sign of the tropical longitude); independent of nakshatra frame. */\n tropical: SignPlacement;\n /** Set for derived points (Ketu). */\n derivedFrom?: string;\n}\n\n/** Nakshatra placement for an actual RA against an origin. Mirrors the reference `nakshatra_position`. */\nexport function dhruvaPlacementFromRightAscension(\n rightAscension: number,\n origin: Pick<DhruvaOrigin, \"zeroRightAscension\">\n): NakshatraPlacement & { rightAscension: number } {\n const ra = normalizeDegrees(rightAscension);\n return { rightAscension: ra, ...nakshatraFromPosition(ra - origin.zeroRightAscension) };\n}\n\nfunction point(\n rightAscension: number,\n declination: number,\n longitude: number,\n latitude: number,\n origin: DhruvaOrigin,\n derivedFrom?: string\n): DhruvaPoint {\n const lon = normalizeDegrees(longitude);\n return {\n ...dhruvaPlacementFromRightAscension(rightAscension, origin),\n declination,\n longitude: lon,\n latitude,\n tropical: signPlacement(lon),\n ...(derivedFrom ? { derivedFrom } : {}),\n };\n}\n\n/** Build a Dhruva point from an already-computed geocentric body (actual latitude retained in its RA). */\nexport function dhruvaPointFromBody(body: GeocentricBody, origin: DhruvaOrigin): DhruvaPoint {\n return point(body.rightAscension, body.declination, body.longitude, body.latitude, origin);\n}\n\n/** Ketu as the antipode of a Rahu point: RA + 180, declination negated, longitude + 180. */\nexport function dhruvaKetuFromRahu(rahu: DhruvaPoint, origin: DhruvaOrigin, convention: NodeConvention): DhruvaPoint {\n return point(\n rahu.rightAscension + 180,\n -rahu.declination,\n rahu.longitude + 180,\n -rahu.latitude,\n origin,\n `${convention}_node antipode`\n );\n}\n\n/** Lagna point from a tropical ASC longitude and the true obliquity (ecliptic latitude 0). */\nexport function dhruvaLagnaFromAscendant(\n ascendantLongitude: number,\n trueObliquityDegrees: number,\n origin: DhruvaOrigin\n): DhruvaPoint {\n return point(\n ecliptic0ToRightAscension(ascendantLongitude, trueObliquityDegrees),\n ecliptic0ToDeclination(ascendantLongitude, trueObliquityDegrees),\n ascendantLongitude,\n 0,\n origin\n );\n}\n\nexport type DhruvaPointId = JyotishBodyId | \"rahu\" | \"ketu\" | \"lagna\";\n\nexport interface DhruvaChart {\n origin: DhruvaOrigin;\n nodeConvention: NodeConvention;\n /** Sun..Saturn, Rahu/Ketu (selected node convention) and, when timed, Moon and lagna. */\n points: Partial<Record<DhruvaPointId, DhruvaPoint>>;\n /** Both node conventions side by side. */\n nodeVariants: Record<NodeConvention, { rahu: DhruvaPoint; ketu: DhruvaPoint }>;\n trueObliquity?: number;\n timed: boolean;\n ephemeris: JyotishEphemeris;\n /** Ephemeris that actually produced the numbers (detects a silent Moshier substitution). */\n ephemerisUsage: EphemerisUsage;\n}\n\nexport interface DhruvaChartInput extends EphemerisCheckOptions {\n /** UT instant. */\n date: Date;\n /** Overrides `date` with an explicit UT Julian day (sub-second precision). */\n julianDayUt?: number;\n latitude: number;\n longitude: number;\n /** Mean node is primary (default); true node is exposed as a variant either way. */\n node?: NodeConvention;\n /** `false` excludes Moon and lagna (untimed births). Default `true`. */\n timed?: boolean;\n /** Swiss files (default) or Moshier. Moshier exists to reproduce the reference fixtures. */\n ephemeris?: JyotishEphemeris;\n constants?: DhruvaConstants;\n}\n\n/** Compute the Dhruva chart through the Swiss ephemeris. */\nexport function calculateDhruvaChart(input: DhruvaChartInput): DhruvaChart {\n const jd = input.julianDayUt ?? julianDayOf(input.date);\n assertFiniteGeo(jd, input.latitude, input.longitude);\n const timed = input.timed !== false;\n const ephemeris = input.ephemeris ?? \"swiss\";\n const node = input.node ?? \"mean\";\n const origin = getDhruvaOrigin(jd, input.constants ?? DHRUVA_CONSTANTS);\n const tracker = new EphemerisTracker(ephemeris, input.strictEphemeris);\n const bodies = calculateGeocentricBodies(jd, ephemeris, tracker);\n\n const points: DhruvaChart[\"points\"] = {};\n for (const id of JYOTISH_BODY_IDS) {\n if (!timed && id === \"moon\") continue;\n points[id] = dhruvaPointFromBody(bodies.planets[id], origin);\n }\n\n const meanRahu = dhruvaPointFromBody(bodies.meanNode, origin);\n const trueRahu = dhruvaPointFromBody(bodies.trueNode, origin);\n const nodeVariants = {\n mean: { rahu: meanRahu, ketu: dhruvaKetuFromRahu(meanRahu, origin, \"mean\") },\n true: { rahu: trueRahu, ketu: dhruvaKetuFromRahu(trueRahu, origin, \"true\") },\n };\n points.rahu = nodeVariants[node].rahu;\n points.ketu = nodeVariants[node].ketu;\n\n let obliquity: number | undefined;\n if (timed) {\n obliquity = trueObliquity(jd, ephemeris, tracker);\n points.lagna = dhruvaLagnaFromAscendant(tropicalAscendant(jd, input.latitude, input.longitude), obliquity, origin);\n }\n return { origin, nodeConvention: node, points, nodeVariants, trueObliquity: obliquity, timed, ephemeris, ephemerisUsage: tracker.usage() };\n}\n","/**\n * Conventional Lahiri (Chitrapaksha) sidereal comparison chart.\n *\n * Separate from the Dhruva equatorial method: here nakshatras and padas come\n * from the ECLIPTIC sidereal longitude, `longitude_sidereal / (40/3)`.\n *\n * Frames and houses:\n * - Planets are computed by Swiss in sidereal mode 1 (Lahiri) with\n * `SEFLG_SIDEREAL`, apparent, nutation included.\n * - The ayanamsa is read back from the same engine as\n * `tropical longitude - sidereal longitude` of the Sun at the same instant and\n * flags, i.e. the true (nutation-included) ayanamsa Swiss itself subtracts. The\n * sidereal ascendant is `tropical ASC - that ayanamsa`. This is exactly what\n * Swiss `swe_houses_ex(SEFLG_SIDEREAL)` does (it subtracts the same ayanamsa\n * from the tropical ASC computed from the true obliquity), so planets and\n * ascendant are in the same nutated frame. It is NOT the mean ayanamsa\n * (without nutation) subtracted from a nutated ASC, which would shift the\n * ascendant relative to the planets by up to ~0.005 deg.\n * - The Swiss sidereal mode is global mutable state; it is set, used and reset\n * synchronously inside `withSiderealMode`, so tropical calculations are never\n * affected.\n */\n\nimport {\n CalcFlag,\n SWISS_SIDM_LAHIRI,\n withSiderealMode,\n} from \"../swisseph\";\nimport {\n EphemerisTracker,\n type EphemerisCheckOptions,\n type EphemerisUsage,\n JYOTISH_BODY_IDS,\n JyotishBodyId,\n JyotishEphemeris,\n NodeConvention,\n assertFiniteGeo,\n ephemerisFlags,\n julianDayOf,\n planetIdFor,\n tropicalAscendant,\n} from \"./bodies\";\nimport { normalizeDegrees, signedAngleBetween } from \"./frames\";\nimport { NakshatraPlacement, SignPlacement, nakshatraFromPosition, signPlacement } from \"./nakshatra\";\nimport { Planet } from \"../swisseph\";\n\nexport interface LahiriPoint extends NakshatraPlacement {\n /** Sidereal (Lahiri) ecliptic longitude, [0, 360). */\n longitude: number;\n /** Ecliptic latitude (0 for ascendant and nodes). */\n latitude: number;\n /** Tropical longitude of the same point. */\n tropicalLongitude: number;\n /** Sidereal rasi. */\n sidereal: SignPlacement;\n /** Whole-sign house 1..12 counted from the sidereal ascendant's sign (absent when untimed). */\n wholeSignHouse?: number;\n longitudeSpeed?: number;\n retrograde?: boolean;\n derivedFrom?: string;\n}\n\nexport type LahiriPointId = JyotishBodyId | \"rahu\" | \"ketu\" | \"lagna\";\n\nexport interface LahiriChart {\n /** Swiss sidereal mode id used (SE_SIDM_LAHIRI = 1). */\n siderealMode: number;\n /** True (nutation-included) ayanamsa in degrees at the instant. */\n ayanamsa: number;\n ayanamsaKind: \"true-nutated, tropical minus sidereal of the same body and flags\";\n nodeConvention: NodeConvention;\n timed: boolean;\n ephemeris: JyotishEphemeris;\n /** Ephemeris that actually produced the numbers (detects a silent Moshier substitution). */\n ephemerisUsage: EphemerisUsage;\n /** Sidereal ascendant (undefined if untimed). */\n ascendant?: LahiriPoint;\n points: Partial<Record<LahiriPointId, LahiriPoint>>;\n nodeVariants: Record<NodeConvention, { rahu: LahiriPoint; ketu: LahiriPoint }>;\n /** Whole-sign houses: house number -> sidereal sign index of its sign (empty if untimed). */\n wholeSignHouses: Array<{ house: number; signIndex: number; sign: string }>;\n}\n\nexport interface LahiriChartInput extends EphemerisCheckOptions {\n date: Date;\n julianDayUt?: number;\n latitude: number;\n longitude: number;\n node?: NodeConvention;\n timed?: boolean;\n ephemeris?: JyotishEphemeris;\n}\n\nexport function wholeSignHouseOf(longitude: number, ascendantLongitude: number): number {\n const sign = Math.floor(normalizeDegrees(longitude) / 30);\n const ascSign = Math.floor(normalizeDegrees(ascendantLongitude) / 30);\n return ((sign - ascSign + 12) % 12) + 1;\n}\n\ninterface RawSidereal {\n longitude: number;\n latitude: number;\n speed?: number;\n}\n\n/**\n * Sidereal ecliptic positions for several Swiss bodies, computed with the\n * Lahiri mode selected only for the duration of the (synchronous) call.\n */\nexport function calculateSiderealPositions(\n julianDayUt: number,\n bodies: readonly number[],\n ephemeris: JyotishEphemeris = \"swiss\",\n tracker: EphemerisTracker = new EphemerisTracker(ephemeris)\n): RawSidereal[] {\n const flags = ephemerisFlags(ephemeris) | CalcFlag.SIDEREAL;\n return withSiderealMode(SWISS_SIDM_LAHIRI, () =>\n bodies.map((b) => {\n const p = tracker.calc(julianDayUt, b, flags);\n return { longitude: normalizeDegrees(p.longitude), latitude: p.latitude, speed: p.longitudeSpeed };\n })\n );\n}\n\n/** True ayanamsa (degrees) in the same flag frame as sidereal planets. */\nexport function calculateLahiriAyanamsa(\n julianDayUt: number,\n ephemeris: JyotishEphemeris = \"swiss\",\n tracker: EphemerisTracker = new EphemerisTracker(ephemeris)\n): number {\n const [sid] = calculateSiderealPositions(julianDayUt, [Planet.SUN], ephemeris, tracker);\n const trop = tracker.calc(julianDayUt, Planet.SUN, ephemerisFlags(ephemeris));\n return signedAngleBetween(trop.longitude, sid.longitude);\n}\n\nfunction lahiriPoint(\n siderealLongitude: number,\n latitude: number,\n ayanamsa: number,\n ascendant: number | undefined,\n extra: Partial<Pick<LahiriPoint, \"longitudeSpeed\" | \"retrograde\" | \"derivedFrom\">> = {}\n): LahiriPoint {\n const longitude = normalizeDegrees(siderealLongitude);\n return {\n ...nakshatraFromPosition(longitude),\n longitude,\n latitude,\n tropicalLongitude: normalizeDegrees(longitude + ayanamsa),\n sidereal: signPlacement(longitude),\n ...(ascendant === undefined ? {} : { wholeSignHouse: wholeSignHouseOf(longitude, ascendant) }),\n ...extra,\n };\n}\n\nexport function calculateLahiriChart(input: LahiriChartInput): LahiriChart {\n const jd = input.julianDayUt ?? julianDayOf(input.date);\n assertFiniteGeo(jd, input.latitude, input.longitude);\n const timed = input.timed !== false;\n const ephemeris = input.ephemeris ?? \"swiss\";\n const node = input.node ?? \"mean\";\n\n const ids = [...JYOTISH_BODY_IDS];\n const swissIds = [...ids.map(planetIdFor), Planet.MEAN_NODE, Planet.TRUE_NODE];\n const tracker = new EphemerisTracker(ephemeris, input.strictEphemeris);\n const raw = calculateSiderealPositions(jd, swissIds, ephemeris, tracker);\n const ayanamsa = calculateLahiriAyanamsa(jd, ephemeris, tracker);\n\n const ascendantSidereal = timed\n ? normalizeDegrees(tropicalAscendant(jd, input.latitude, input.longitude) - ayanamsa)\n : undefined;\n\n const points: LahiriChart[\"points\"] = {};\n ids.forEach((id, i) => {\n if (!timed && id === \"moon\") return;\n const r = raw[i];\n points[id] = lahiriPoint(r.longitude, r.latitude, ayanamsa, ascendantSidereal, {\n longitudeSpeed: r.speed,\n retrograde: r.speed === undefined ? undefined : r.speed < 0,\n });\n });\n const meanRaw = raw[ids.length];\n const trueRaw = raw[ids.length + 1];\n const mk = (r: RawSidereal, convention: NodeConvention) => {\n const rahu = lahiriPoint(r.longitude, r.latitude, ayanamsa, ascendantSidereal);\n const ketu = lahiriPoint(r.longitude + 180, -r.latitude, ayanamsa, ascendantSidereal, {\n derivedFrom: `${convention}_node antipode`,\n });\n return { rahu, ketu };\n };\n const nodeVariants = { mean: mk(meanRaw, \"mean\"), true: mk(trueRaw, \"true\") };\n points.rahu = nodeVariants[node].rahu;\n points.ketu = nodeVariants[node].ketu;\n\n let ascendant: LahiriPoint | undefined;\n const wholeSignHouses: LahiriChart[\"wholeSignHouses\"] = [];\n if (timed && ascendantSidereal !== undefined) {\n ascendant = lahiriPoint(ascendantSidereal, 0, ayanamsa, ascendantSidereal);\n const ascSign = Math.floor(ascendantSidereal / 30);\n for (let h = 1; h <= 12; h++) {\n const signIndex = (ascSign + h - 1) % 12;\n wholeSignHouses.push({ house: h, signIndex, sign: signPlacement(signIndex * 30).sign });\n }\n }\n\n return {\n siderealMode: SWISS_SIDM_LAHIRI,\n ayanamsa,\n ayanamsaKind: \"true-nutated, tropical minus sidereal of the same body and flags\",\n nodeConvention: node,\n timed,\n ephemeris,\n ephemerisUsage: tracker.usage(),\n ascendant,\n points,\n nodeVariants,\n wholeSignHouses,\n };\n}\n","/**\n * Jaimini chara karakas (7- and 8-karaka schemes).\n *\n * Ranking value = degree within sign, descending: the highest degree is the\n * Atmakaraka. The frame of the degree (tropical or sidereal) is an explicit\n * input and echoed in the result. The reference dataset ranked TROPICAL\n * degrees with Rahu excluded (7 scheme); the traditional practice is sidereal.\n *\n * 8-karaka scheme: Rahu joins with ranking value `30 - degreeInSign` (it moves\n * retrograde). Mean or true node is the caller's choice and is echoed.\n *\n * Ties: bodies whose ranking values differ by no more than\n * `tieToleranceDegrees` are tied; they are ordered by the fixed canonical order\n * Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn, Rahu and flagged\n * `tied: true`, with each group listed in `tieGroups`, so callers can apply their\n * own tradition (e.g. compare minutes/seconds, then nakshatra).\n */\n\nexport type KarakaBody = \"sun\" | \"moon\" | \"mars\" | \"mercury\" | \"jupiter\" | \"venus\" | \"saturn\" | \"rahu\";\nexport type KarakaScheme = 7 | 8;\n\nexport const KARAKA_NAMES_7 = [\n \"Atmakaraka\", \"Amatyakaraka\", \"Bhratrukaraka\", \"Matrukaraka\", \"Putrakaraka\", \"Gnatikaraka\", \"Darakaraka\",\n] as const;\nexport const KARAKA_NAMES_8 = [\n \"Atmakaraka\", \"Amatyakaraka\", \"Bhratrukaraka\", \"Matrukaraka\", \"Pitrukaraka\", \"Putrakaraka\", \"Gnatikaraka\", \"Darakaraka\",\n] as const;\nexport const KARAKA_ABBREVIATIONS_7 = [\"AK\", \"AmK\", \"BK\", \"MK\", \"PK\", \"GK\", \"DK\"] as const;\nexport const KARAKA_ABBREVIATIONS_8 = [\"AK\", \"AmK\", \"BK\", \"MK\", \"PiK\", \"PK\", \"GK\", \"DK\"] as const;\n\nconst CANONICAL_ORDER: readonly KarakaBody[] = [\"sun\", \"moon\", \"mars\", \"mercury\", \"jupiter\", \"venus\", \"saturn\", \"rahu\"];\n\nexport type KarakaDegreeFrame = \"tropical\" | \"sidereal\";\n\nexport interface KarakaInput {\n body: KarakaBody;\n /** Degrees within the sign in the chosen frame, [0, 30). */\n degreeInSign: number;\n}\n\nexport interface KarakaEntry {\n /** 1-based rank. */\n rank: number;\n karaka: string;\n abbreviation: string;\n body: KarakaBody;\n degreeInSign: number;\n /** Value actually ranked: `degreeInSign`, or `30 - degreeInSign` for Rahu in the 8 scheme. */\n rankingValue: number;\n tied: boolean;\n}\n\nexport interface KarakaOptions {\n scheme: KarakaScheme;\n /** Frame of the supplied degrees; echoed, not interpreted. */\n degreeFrame: KarakaDegreeFrame;\n /** Node used for Rahu in the 8 scheme; echoed, not interpreted. */\n node?: \"mean\" | \"true\";\n /** Default 1e-9 degrees. */\n tieToleranceDegrees?: number;\n}\n\nexport interface KarakaResult {\n scheme: KarakaScheme;\n degreeFrame: KarakaDegreeFrame;\n rahuConvention?: { node: \"mean\" | \"true\"; rankingValue: \"30 - degreeInSign\" };\n tieToleranceDegrees: number;\n entries: KarakaEntry[];\n tieGroups: KarakaBody[][];\n}\n\nexport function calculateCharaKarakas(inputs: readonly KarakaInput[], options: KarakaOptions): KarakaResult {\n const { scheme } = options;\n if (scheme !== 7 && scheme !== 8) throw new Error(\"karaka scheme must be 7 or 8\");\n const tol = options.tieToleranceDegrees ?? 1e-9;\n const wanted = CANONICAL_ORDER.filter((b) => (scheme === 8 ? true : b !== \"rahu\"));\n const rows = wanted.map((body) => {\n const found = inputs.find((i) => i.body === body);\n if (!found || !Number.isFinite(found.degreeInSign)) throw new Error(`Missing degreeInSign for ${body}`);\n if (found.degreeInSign < 0 || found.degreeInSign >= 30) throw new Error(`degreeInSign out of range for ${body}`);\n const rankingValue = body === \"rahu\" ? 30 - found.degreeInSign : found.degreeInSign;\n return { body, degreeInSign: found.degreeInSign, rankingValue };\n });\n // Descending by value; canonical order breaks ties (Array.sort is stable).\n rows.sort((a, b) => (Math.abs(a.rankingValue - b.rankingValue) <= tol ? 0 : b.rankingValue - a.rankingValue));\n\n const names = scheme === 8 ? KARAKA_NAMES_8 : KARAKA_NAMES_7;\n const abbr = scheme === 8 ? KARAKA_ABBREVIATIONS_8 : KARAKA_ABBREVIATIONS_7;\n const tiedFlags = rows.map(\n (r, i) =>\n (i > 0 && Math.abs(rows[i - 1].rankingValue - r.rankingValue) <= tol) ||\n (i < rows.length - 1 && Math.abs(rows[i + 1].rankingValue - r.rankingValue) <= tol)\n );\n const tieGroups: KarakaBody[][] = [];\n rows.forEach((r, i) => {\n if (!tiedFlags[i]) return;\n if (i > 0 && tiedFlags[i - 1] && Math.abs(rows[i - 1].rankingValue - r.rankingValue) <= tol) {\n tieGroups[tieGroups.length - 1].push(r.body);\n } else {\n tieGroups.push([r.body]);\n }\n });\n return {\n scheme,\n degreeFrame: options.degreeFrame,\n ...(scheme === 8\n ? { rahuConvention: { node: options.node ?? \"mean\", rankingValue: \"30 - degreeInSign\" as const } }\n : {}),\n tieToleranceDegrees: tol,\n entries: rows.map((r, i) => ({\n rank: i + 1,\n karaka: names[i],\n abbreviation: abbr[i],\n body: r.body,\n degreeInSign: r.degreeInSign,\n rankingValue: r.rankingValue,\n tied: tiedFlags[i],\n })),\n tieGroups,\n };\n}\n","/**\n * Vimshottari (120-year) and Yogini (36-year) maha + antar dashas.\n *\n * Pure arithmetic, no ephemeris. Conventions (all explicit, none fitted):\n *\n * - Birth balance: the Moon's nakshatra lord's maha began\n * `elapsedFraction * mahaYears * yearLengthDays` days BEFORE birth. That\n * pre-birth start is kept as the first maha's `start` (`startsBeforeBirth`).\n * - `yearLengthDays` is mandatory per call. Documented reference\n * configurations: {@link DASHA_YEAR_LENGTH_REFERENCES} (Dhruva timelines used\n * 365.2422; the saved Lahiri comparison used 365.25, a reference\n * configuration and not a claim about every Lahiri practitioner).\n * - Antar lengths are proportional: `mahaLength * antarLordYears / totalYears`,\n * starting from the maha lord and continuing in sequence order.\n * - Intervals are half-open `[start, end)`; a boundary instant belongs to the\n * period that STARTS there.\n * - By default antars that ended on or before birth are omitted from the first\n * maha (`includePreBirthAntars` keeps them); the surviving first antar may\n * start before birth.\n * - Yogini: lords Mangala(1) .. Sankata(8), start index\n * `(nakshatraNumber + 3 - 1) mod 8`, i.e. the common \"(number + 3) mod 8\"\n * rule. This convention is chosen and implemented; it was NOT matched to a\n * Kala Yogini export.\n * - Generation is bounded by `through` (default: one full cycle after birth)\n * and `maxMahaPeriods`.\n */\n\nimport { NAKSHATRA_IDS, VIMSHOTTARI_LORDS, VIMSHOTTARI_YEARS } from \"./nakshatra\";\n\nexport type DashaSystem = \"vimshottari\" | \"yogini\";\n\nexport const YOGINI_LORDS = [\"mangala\", \"pingala\", \"dhanya\", \"bhramari\", \"bhadrika\", \"ulka\", \"siddha\", \"sankata\"] as const;\nexport const YOGINI_YEARS: readonly number[] = [1, 2, 3, 4, 5, 6, 7, 8];\n\n/** Named year-length reference configurations. */\nexport const DASHA_YEAR_LENGTH_REFERENCES = Object.freeze({\n /** Dhruva (System 1) timelines in the source session. */\n dhruva: 365.2422,\n /** The saved Lahiri comparison. A reference configuration, not a universal claim. */\n lahiriReference: 365.25,\n});\n\nconst MS_PER_DAY = 86400000;\nconst UNIX_EPOCH_JD = 2440587.5;\n\nexport function dateToJulianDay(date: Date): number {\n return date.getTime() / MS_PER_DAY + UNIX_EPOCH_JD;\n}\nexport function julianDayToDate(jd: number): Date {\n return new Date(Math.round((jd - UNIX_EPOCH_JD) * MS_PER_DAY));\n}\n\ninterface SystemDefinition {\n lords: readonly string[];\n years: readonly number[];\n totalYears: number;\n startIndex(nakshatraIndex: number): number;\n}\n\nconst SYSTEMS: Record<DashaSystem, SystemDefinition> = {\n vimshottari: {\n lords: VIMSHOTTARI_LORDS,\n years: VIMSHOTTARI_YEARS,\n totalYears: 120,\n startIndex: (n) => n % 9,\n },\n yogini: {\n lords: YOGINI_LORDS,\n years: YOGINI_YEARS,\n totalYears: 36,\n startIndex: (n) => (n + 1 + 3 - 1) % 8,\n },\n};\n\nexport interface DashaPeriod {\n level: \"maha\" | \"antar\";\n lord: string;\n /** Julian day (UT) of the inclusive start. */\n startJd: number;\n /** Julian day (UT) of the exclusive end. */\n endJd: number;\n start: Date;\n end: Date;\n /** True when the period began before the birth instant. */\n startsBeforeBirth: boolean;\n /** Nominal length in the schedule's years. */\n years: number;\n /** Antars (maha only). */\n antars?: DashaPeriod[];\n}\n\nexport interface DashaBalance {\n /** Lord of the birth maha. */\n lord: string;\n mahaYears: number;\n /** Fraction of the birth maha already elapsed at birth (the Moon's elapsed fraction). */\n elapsedFraction: number;\n remainingFraction: number;\n elapsedDays: number;\n remainingDays: number;\n /** Remaining time expressed in `yearLengthDays` years. */\n remainingYears: number;\n}\n\nexport interface DashaScheduleInput {\n system: DashaSystem;\n /** Birth instant. */\n birth: Date;\n /** Overrides `birth` with an explicit UT Julian day (sub-millisecond precision). */\n birthJulianDayUt?: number;\n /** 0-based nakshatra index of the Moon in the SELECTED frame (Dhruva or Lahiri). */\n moonNakshatraIndex: number;\n /** Moon's elapsed fraction in that nakshatra, [0, 1). */\n moonElapsedFraction: number;\n /** Mandatory length of a dasha year in days. */\n yearLengthDays: number;\n /** Exclusive end of generation. Default: birth + one full cycle (120 / 36 years). */\n through?: Date;\n /** Keep antars of the first maha that ended on/before birth. Default false. */\n includePreBirthAntars?: boolean;\n /** Hard cap on generated mahas. Default 200. */\n maxMahaPeriods?: number;\n}\n\nexport interface DashaSchedule {\n system: DashaSystem;\n yearLengthDays: number;\n totalYears: number;\n birthJd: number;\n moonNakshatra: { index: number; id: string; elapsedFraction: number };\n balance: DashaBalance;\n mahas: DashaPeriod[];\n /** Exclusive generation horizon (JD UT). */\n throughJd: number;\n /** True if `maxMahaPeriods` stopped generation before the horizon. */\n truncated: boolean;\n intervalConvention: \"half-open [start, end)\";\n}\n\nfunction makePeriod(\n level: \"maha\" | \"antar\",\n lord: string,\n startJd: number,\n endJd: number,\n birthJd: number,\n years: number\n): DashaPeriod {\n return {\n level,\n lord,\n startJd,\n endJd,\n start: julianDayToDate(startJd),\n end: julianDayToDate(endJd),\n startsBeforeBirth: startJd < birthJd,\n years,\n };\n}\n\nexport function generateDashaSchedule(input: DashaScheduleInput): DashaSchedule {\n const def = SYSTEMS[input.system];\n if (!def) throw new Error(`Unknown dasha system: ${String(input.system)}`);\n const { yearLengthDays } = input;\n if (!Number.isFinite(yearLengthDays) || yearLengthDays <= 0) throw new Error(\"yearLengthDays must be a positive number\");\n if (!Number.isInteger(input.moonNakshatraIndex) || input.moonNakshatraIndex < 0 || input.moonNakshatraIndex > 26) {\n throw new Error(\"moonNakshatraIndex must be an integer 0..26\");\n }\n if (!(input.moonElapsedFraction >= 0 && input.moonElapsedFraction < 1)) {\n throw new Error(\"moonElapsedFraction must be in [0, 1)\");\n }\n const birthJd = input.birthJulianDayUt ?? dateToJulianDay(input.birth);\n if (!Number.isFinite(birthJd)) throw new Error(\"Invalid birth instant\");\n const throughJd = input.through ? dateToJulianDay(input.through) : birthJd + def.totalYears * yearLengthDays;\n const maxMahas = input.maxMahaPeriods ?? 200;\n\n let idx = def.startIndex(input.moonNakshatraIndex);\n const firstYears = def.years[idx];\n const elapsedDays = input.moonElapsedFraction * firstYears * yearLengthDays;\n let cursor = birthJd - elapsedDays;\n\n const balance: DashaBalance = {\n lord: def.lords[idx],\n mahaYears: firstYears,\n elapsedFraction: input.moonElapsedFraction,\n remainingFraction: 1 - input.moonElapsedFraction,\n elapsedDays,\n remainingDays: (1 - input.moonElapsedFraction) * firstYears * yearLengthDays,\n remainingYears: (1 - input.moonElapsedFraction) * firstYears,\n };\n\n const mahas: DashaPeriod[] = [];\n let truncated = false;\n let first = true;\n while (cursor < throughJd) {\n if (mahas.length >= maxMahas) {\n truncated = true;\n break;\n }\n const mahaYears = def.years[idx];\n const length = mahaYears * yearLengthDays;\n const stop = cursor + length;\n const maha = makePeriod(\"maha\", def.lords[idx], cursor, stop, birthJd, mahaYears);\n const antars: DashaPeriod[] = [];\n let sub = cursor;\n for (let q = 0; q < def.lords.length; q++) {\n const ai = (idx + q) % def.lords.length;\n const subEnd = sub + (length * def.years[ai]) / def.totalYears;\n if (!first || input.includePreBirthAntars || subEnd > birthJd) {\n antars.push(makePeriod(\"antar\", def.lords[ai], sub, subEnd, birthJd, (mahaYears * def.years[ai]) / def.totalYears));\n }\n sub = subEnd;\n }\n maha.antars = antars;\n mahas.push(maha);\n cursor = stop;\n idx = (idx + 1) % def.lords.length;\n first = false;\n }\n\n return {\n system: input.system,\n yearLengthDays,\n totalYears: def.totalYears,\n birthJd,\n moonNakshatra: {\n index: input.moonNakshatraIndex,\n id: NAKSHATRA_IDS[input.moonNakshatraIndex],\n elapsedFraction: input.moonElapsedFraction,\n },\n balance,\n mahas,\n throughJd,\n truncated,\n intervalConvention: \"half-open [start, end)\",\n };\n}\n\n/** Convenience wrappers. */\nexport function generateVimshottariDasha(input: Omit<DashaScheduleInput, \"system\">): DashaSchedule {\n return generateDashaSchedule({ ...input, system: \"vimshottari\" });\n}\nexport function generateYoginiDasha(input: Omit<DashaScheduleInput, \"system\">): DashaSchedule {\n return generateDashaSchedule({ ...input, system: \"yogini\" });\n}\n\nexport interface ActiveDasha {\n maha: DashaPeriod;\n antar?: DashaPeriod;\n}\n\n/**\n * Active maha and antar at `asOf`, half-open `[start, end)`. Returns\n * `undefined` outside the generated range. Instants before birth that fall in\n * the first maha's pre-birth portion are returned as-is (inspect\n * `startsBeforeBirth`); callers wanting \"life only\" should check `asOf >= birth`.\n */\nexport function findActiveDasha(schedule: DashaSchedule, asOf: Date | number): ActiveDasha | undefined {\n const jd = typeof asOf === \"number\" ? asOf : dateToJulianDay(asOf);\n const maha = schedule.mahas.find((m) => jd >= m.startJd && jd < m.endJd);\n if (!maha) return undefined;\n const antar = maha.antars?.find((a) => jd >= a.startJd && jd < a.endJd);\n return { maha, antar };\n}\n","/**\n * Jyotish: Dhruva (equatorial) and Lahiri (ecliptic sidereal) nakshatras,\n * chara karakas, Vimshottari and Yogini dashas. Calculation data and method\n * metadata only; no interpretation text.\n */\n\nimport {\n DHRUVA_CONSTANTS,\n DhruvaChart,\n DhruvaPoint,\n calculateDhruvaChart,\n} from \"./dhruva\";\nimport { LahiriChart, LahiriPoint, calculateLahiriChart } from \"./lahiri\";\nimport {\n KarakaBody,\n KarakaDegreeFrame,\n KarakaInput,\n KarakaResult,\n KarakaScheme,\n calculateCharaKarakas,\n} from \"./karakas\";\nimport { DASHA_YEAR_LENGTH_REFERENCES, DashaSchedule, generateDashaSchedule } from \"./dasha\";\nimport { mergeEphemerisUsage, type EphemerisUsage, type JyotishEphemeris, type NodeConvention } from \"./bodies\";\n\nexport * from \"./frames\";\nexport * from \"./nakshatra\";\nexport * from \"./dhruva\";\nexport * from \"./lahiri\";\nexport * from \"./karakas\";\nexport * from \"./dasha\";\nexport {\n JYOTISH_BODY_IDS,\n EphemerisTracker,\n mergeEphemerisUsage,\n type EphemerisCheckOptions,\n type EphemerisUsage,\n type GeocentricBodies,\n type GeocentricBody,\n type JyotishBodyId,\n type JyotishEphemeris,\n type NodeConvention,\n} from \"./bodies\";\n\n/**\n * Method, provenance and validation statement. Contains no private data.\n */\nexport const JYOTISH_METHODS = Object.freeze({\n version: \"1.0.0\",\n dhruva: {\n name: \"Ernst Wilhelm / Kala Dhruva (System 1) equatorial nakshatras\",\n provenance:\n \"User-supplied, confirmed algorithm ported from a reference implementation; constants are the supplied ones and are never calibrated against any chart.\",\n anchor: \"Galactic Center Sgr A*, ICRS RA 266.40499 deg, Dec -28.93617 deg\",\n anchorFrame:\n \"FK5 mean equator and equinox of date: ICRS->FK5J2000 frame bias (USNO Circular 179) then bias-free IAU 2006 (Capitaine) precession; no nutation. Equivalent to Astropy ICRS->FK5(equinox=Time(jd, format='jd', scale='utc')).\",\n equinoxTimeScale: \"Input Julian date read on the UTC scale, converted UTC->TAI->TT (leap seconds, +32.184 s).\",\n origin: \"zeroRA = (GC_RA_of_date - (246 + 2/3)) mod 360\",\n bodyFrame:\n \"Swiss geocentric apparent equatorial RA (SEFLG_EQUATORIAL: true equator/equinox of date, nutation, aberration, light-time) with actual ecliptic latitude retained.\",\n lagna: \"RA of the tropical ASC at ecliptic latitude 0 using true obliquity.\",\n nodes: \"Latitude-0 node point; mean node primary, true node variant; Ketu = antipode of the corresponding Rahu.\",\n sectors: \"27 equal sectors of 40/3 degrees; pada = floor(4 * elapsedFraction) + 1.\",\n notEquivalentTo: [\"ecliptic longitude minus Lahiri ayanamsa\", \"Swiss sidereal mode 36\"],\n defaultYearLengthDays: DHRUVA_CONSTANTS.yearLengthDays,\n },\n lahiri: {\n name: \"Lahiri (Chitrapaksha) sidereal comparison\",\n frame: \"Swiss sidereal mode 1, apparent, nutation included; ascendant = tropical ASC minus the same true ayanamsa.\",\n nakshatras: \"Ecliptic sidereal longitude / (40/3).\",\n wholeSign: \"Houses counted from the sidereal ascendant's sign.\",\n referenceYearLengthDays: DASHA_YEAR_LENGTH_REFERENCES.lahiriReference,\n },\n karakas: \"Degree-in-sign ranking, 7 or 8 scheme; Rahu ranks by 30 - degree in the 8 scheme.\",\n dashas: {\n vimshottari: \"120 years; lord sequence ketu venus sun moon mars rahu jupiter saturn mercury.\",\n yogini: \"36 years; chosen '(nakshatraNumber + 3) mod 8' convention; not matched to a Kala Yogini export.\",\n intervals: \"half-open [start, end); first maha keeps its pre-birth start\",\n },\n validation: {\n layers: [\n \"Unit/invariant tests (synthetic): sector/pada boundaries, RA wrap, Ketu antipode, durations, half-open boundaries.\",\n \"Independent numerical reference (synthetic fixtures generated by the reference Python implementation: Astropy 8.0.2, pyerfa 2.0.1.5, pyswisseph 2.10.3.2).\",\n \"Private user-transcribed fixtures (local only, never committed): placement labels reproduced; first-major start dates retain residuals under the reference Moshier settings (-2.368444 and -11.501848 days); the same comparison run with the production Swiss ephemeris files gives -2.379069 and -11.429322 days, with identical placement labels. No constant was fitted and exact Kala date parity is NOT claimed. The source PDFs were not inspected.\",\n ],\n residualStatement:\n \"Placement labels and calendar dates are validated separately. Frame mathematics matches the reference to well under 1e-6 degrees; ephemeris differences (Swiss files vs Moshier) are recorded separately.\",\n },\n});\n\nexport type NakshatraFrame = \"dhruva\" | \"lahiri\";\n\nexport interface JyotishChartInput {\n /** UT instant of birth. */\n date: Date;\n latitude: number;\n longitude: number;\n /** Frame for nakshatras/dashas. Default \"dhruva\". */\n nakshatraFrame?: NakshatraFrame;\n /** Node convention for Rahu/Ketu and the 8-karaka scheme. Default \"mean\". */\n node?: NodeConvention;\n /** Dasha year length in days. Default 365.2422 (dhruva) or 365.25 (lahiri reference). */\n yearLengthDays?: number;\n /** 7 (default) or 8. */\n karakaScheme?: KarakaScheme;\n /** Frame of the karaka degrees. Default: tropical for dhruva, sidereal for lahiri. */\n karakaDegreeFrame?: KarakaDegreeFrame;\n /** Default true. Untimed: no Moon, lagna, karakas, or dashas. */\n timed?: boolean;\n ephemeris?: JyotishEphemeris;\n /**\n * Throw `SwissEphEphemerisMismatchError` if Swiss Ephemeris substitutes another ephemeris\n * (for example Moshier outside the installed .se1 range). Default false: the substitution is\n * then reported in `ephemerisUsage` instead of being silent.\n */\n strictEphemeris?: boolean;\n /** Exclusive end of dasha generation; default one full cycle. */\n through?: Date;\n}\n\nexport interface JyotishChart {\n method: typeof JYOTISH_METHODS;\n nakshatraFrame: NakshatraFrame;\n node: NodeConvention;\n /** Always computed: tropical rasis/longitudes live on each point (`tropical`). */\n dhruva: DhruvaChart;\n lahiri: LahiriChart;\n karakas?: KarakaResult;\n vimshottari?: DashaSchedule;\n yogini?: DashaSchedule;\n yearLengthDays: number;\n /** Ephemeris actually used by both frames combined (see `EphemerisUsage`). */\n ephemerisUsage: EphemerisUsage;\n}\n\n/** Top-level convenience: both frames are computed, dashas/karakas follow the selected one. */\nexport function getJyotishChart(input: JyotishChartInput): JyotishChart {\n const nakshatraFrame = input.nakshatraFrame ?? \"dhruva\";\n const node = input.node ?? \"mean\";\n const timed = input.timed !== false;\n const ephemeris = input.ephemeris ?? \"swiss\";\n const yearLengthDays =\n input.yearLengthDays ??\n (nakshatraFrame === \"dhruva\" ? DASHA_YEAR_LENGTH_REFERENCES.dhruva : DASHA_YEAR_LENGTH_REFERENCES.lahiriReference);\n const base = {\n date: input.date,\n latitude: input.latitude,\n longitude: input.longitude,\n node,\n timed,\n ephemeris,\n strictEphemeris: input.strictEphemeris,\n };\n const dhruva = calculateDhruvaChart(base);\n const lahiri = calculateLahiriChart(base);\n\n const result: JyotishChart = {\n method: JYOTISH_METHODS,\n nakshatraFrame,\n node,\n dhruva,\n lahiri,\n yearLengthDays,\n ephemerisUsage: mergeEphemerisUsage(dhruva.ephemerisUsage, lahiri.ephemerisUsage),\n };\n if (!timed) return result;\n\n const karakaFrame: KarakaDegreeFrame = input.karakaDegreeFrame ?? (nakshatraFrame === \"dhruva\" ? \"tropical\" : \"sidereal\");\n const bodies: KarakaBody[] = [\"sun\", \"moon\", \"mars\", \"mercury\", \"jupiter\", \"venus\", \"saturn\", \"rahu\"];\n const karakaInputs: KarakaInput[] = bodies.map((body) => {\n const p: DhruvaPoint | LahiriPoint | undefined =\n karakaFrame === \"tropical\" ? dhruva.points[body] : lahiri.points[body];\n if (!p) throw new Error(`Missing point ${body}`);\n const degreeInSign = karakaFrame === \"tropical\" ? (p as DhruvaPoint).tropical.degreeInSign : (p as LahiriPoint).sidereal.degreeInSign;\n return { body, degreeInSign };\n });\n const scheme = input.karakaScheme ?? 7;\n result.karakas = calculateCharaKarakas(karakaInputs, { scheme, degreeFrame: karakaFrame, node });\n\n const moon = nakshatraFrame === \"dhruva\" ? dhruva.points.moon : lahiri.points.moon;\n if (moon) {\n const common = {\n birth: input.date,\n moonNakshatraIndex: moon.nakshatraIndex,\n moonElapsedFraction: moon.elapsedFraction,\n yearLengthDays,\n through: input.through,\n };\n result.vimshottari = generateDashaSchedule({ ...common, system: \"vimshottari\" });\n result.yogini = generateDashaSchedule({ ...common, system: \"yogini\" });\n }\n return result;\n}\n","/**\n * Stable, language-independent point identifiers and an adapter over the legacy\n * spaced-key chart dictionaries (`chart.planets`, `chart.nodes`, `chart.houses`,\n * `chart.lots`). The legacy dictionaries are read, never modified.\n *\n * Pure data: no Swiss Ephemeris dependency (types only).\n */\n\nimport type { BirthChart } from \"./index\";\nimport { normalizeAngle, Planet, type PlanetPosition } from \"./swisseph\";\n\nexport type PointClass = \"luminary\" | \"planet\" | \"node\" | \"angle\" | \"lot\" | \"point\";\n\nexport type PointId =\n | \"sun\"\n | \"moon\"\n | \"mercury\"\n | \"venus\"\n | \"mars\"\n | \"jupiter\"\n | \"saturn\"\n | \"uranus\"\n | \"neptune\"\n | \"pluto\"\n | \"mean-node\"\n | \"true-node\"\n | \"south-node-mean\"\n | \"south-node-true\"\n | \"mean-lilith\"\n | \"true-lilith\"\n | \"chiron\"\n | \"asc\"\n | \"mc\"\n | \"dsc\"\n | \"ic\"\n | \"vertex\"\n | \"lot-fortune\"\n | \"lot-spirit\";\n\n/** Where the legacy value lives on a `BirthChart`. */\nexport type LegacySource = \"planets\" | \"houses\" | \"lots\" | \"derived\";\n\nexport interface PointDefinition {\n id: PointId;\n kind: PointClass;\n /** Key in the legacy aspect/planet dictionaries (`\"mean node\"`, `\"ascendant\"`, ...). */\n legacyKey: string;\n legacySource: LegacySource;\n /** Longitude depends on the exact birth time (Moon degree, angles, vertex, lots). */\n timeDependent: boolean;\n /** Axis membership: the two ends of an axis are geometrically complementary. */\n axis?: { id: string; end: 0 | 1 };\n}\n\nconst DEFS: PointDefinition[] = [\n { id: \"sun\", kind: \"luminary\", legacyKey: \"sun\", legacySource: \"planets\", timeDependent: false },\n { id: \"moon\", kind: \"luminary\", legacyKey: \"moon\", legacySource: \"planets\", timeDependent: true },\n { id: \"mercury\", kind: \"planet\", legacyKey: \"mercury\", legacySource: \"planets\", timeDependent: false },\n { id: \"venus\", kind: \"planet\", legacyKey: \"venus\", legacySource: \"planets\", timeDependent: false },\n { id: \"mars\", kind: \"planet\", legacyKey: \"mars\", legacySource: \"planets\", timeDependent: false },\n { id: \"jupiter\", kind: \"planet\", legacyKey: \"jupiter\", legacySource: \"planets\", timeDependent: false },\n { id: \"saturn\", kind: \"planet\", legacyKey: \"saturn\", legacySource: \"planets\", timeDependent: false },\n { id: \"uranus\", kind: \"planet\", legacyKey: \"uranus\", legacySource: \"planets\", timeDependent: false },\n { id: \"neptune\", kind: \"planet\", legacyKey: \"neptune\", legacySource: \"planets\", timeDependent: false },\n { id: \"pluto\", kind: \"planet\", legacyKey: \"pluto\", legacySource: \"planets\", timeDependent: false },\n {\n id: \"mean-node\", kind: \"node\", legacyKey: \"mean node\", legacySource: \"planets\", timeDependent: false,\n axis: { id: \"axis:mean-node\", end: 0 },\n },\n {\n id: \"true-node\", kind: \"node\", legacyKey: \"true node\", legacySource: \"planets\", timeDependent: false,\n axis: { id: \"axis:true-node\", end: 0 },\n },\n {\n id: \"south-node-mean\", kind: \"node\", legacyKey: \"south node mean\", legacySource: \"derived\", timeDependent: false,\n axis: { id: \"axis:mean-node\", end: 1 },\n },\n {\n id: \"south-node-true\", kind: \"node\", legacyKey: \"south node true\", legacySource: \"derived\", timeDependent: false,\n axis: { id: \"axis:true-node\", end: 1 },\n },\n { id: \"mean-lilith\", kind: \"point\", legacyKey: \"lilith mean\", legacySource: \"planets\", timeDependent: false },\n { id: \"true-lilith\", kind: \"point\", legacyKey: \"lilith true\", legacySource: \"planets\", timeDependent: false },\n { id: \"chiron\", kind: \"point\", legacyKey: \"chiron\", legacySource: \"planets\", timeDependent: false },\n {\n id: \"asc\", kind: \"angle\", legacyKey: \"ascendant\", legacySource: \"houses\", timeDependent: true,\n axis: { id: \"axis:asc-dsc\", end: 0 },\n },\n {\n id: \"mc\", kind: \"angle\", legacyKey: \"mc\", legacySource: \"houses\", timeDependent: true,\n axis: { id: \"axis:mc-ic\", end: 0 },\n },\n {\n id: \"dsc\", kind: \"angle\", legacyKey: \"dc\", legacySource: \"houses\", timeDependent: true,\n axis: { id: \"axis:asc-dsc\", end: 1 },\n },\n {\n id: \"ic\", kind: \"angle\", legacyKey: \"ic\", legacySource: \"houses\", timeDependent: true,\n axis: { id: \"axis:mc-ic\", end: 1 },\n },\n { id: \"vertex\", kind: \"angle\", legacyKey: \"vertex\", legacySource: \"houses\", timeDependent: true },\n { id: \"lot-fortune\", kind: \"lot\", legacyKey: \"fortune\", legacySource: \"lots\", timeDependent: true },\n { id: \"lot-spirit\", kind: \"lot\", legacyKey: \"spirit\", legacySource: \"lots\", timeDependent: true },\n];\n\nexport const POINT_DEFINITIONS: Readonly<Record<PointId, PointDefinition>> = Object.freeze(\n Object.fromEntries(DEFS.map((d) => [d.id, d])) as Record<PointId, PointDefinition>\n);\n\nexport const POINT_IDS: readonly PointId[] = DEFS.map((d) => d.id);\n\nexport const POINT_CLASSES: readonly PointClass[] = [\"luminary\", \"planet\", \"node\", \"angle\", \"lot\", \"point\"];\n\nexport function isPointId(value: unknown): value is PointId {\n return typeof value === \"string\" && Object.prototype.hasOwnProperty.call(POINT_DEFINITIONS, value);\n}\n\n/** Per-point provenance flags. `placeholder` and `rectified` are set by `quality.ts`. */\nexport interface ChartPointFlags {\n /** Computed from other points (south nodes, DSC, IC, lots) rather than read from the ephemeris. */\n derived: boolean;\n /** Longitude depends on the exact birth time. */\n timeDependent: boolean;\n /** Position computed at a placeholder instant (untimed chart, local noon). */\n placeholder?: boolean;\n /** Time-dependent value that comes from a rectified (estimated) birth time. */\n rectified?: boolean;\n}\n\nexport interface ChartPoint {\n id: PointId;\n kind: PointClass;\n longitude: number;\n latitude?: number;\n /** Degrees per day; `null` = explicitly unavailable (angles, lots, hand-built points). */\n speed: number | null;\n legacyKey: string;\n legacySource: LegacySource;\n flags: ChartPointFlags;\n}\n\n/** Minimum shape the policy-based aspect functions need. `ChartPoint` satisfies it. */\nexport interface ChartPointLike {\n id: PointId;\n kind: PointClass;\n longitude: number;\n speed?: number | null;\n}\n\nexport interface ChartPointsOptions {\n /** Keep only these IDs (applied before `exclude`). */\n include?: readonly PointId[];\n exclude?: readonly PointId[];\n classes?: readonly PointClass[];\n}\n\nexport function getPointDefinition(id: PointId): PointDefinition {\n return POINT_DEFINITIONS[id];\n}\n\nfunction normKey(key: string): string {\n return key.trim().toLowerCase().replace(/[_-]+/g, \" \").replace(/\\s+/g, \" \");\n}\n\nconst LEGACY_ALIASES: Record<string, PointId> = {\n \"ascendant\": \"asc\",\n \"asc\": \"asc\",\n \"descendant\": \"dsc\",\n \"dc\": \"dsc\",\n \"dsc\": \"dsc\",\n \"midheaven\": \"mc\",\n \"mc\": \"mc\",\n \"ic\": \"ic\",\n \"imum coeli\": \"ic\",\n \"vertex\": \"vertex\",\n \"fortune\": \"lot-fortune\",\n \"lot fortune\": \"lot-fortune\",\n \"spirit\": \"lot-spirit\",\n \"lot spirit\": \"lot-spirit\",\n \"mean lilith\": \"mean-lilith\",\n \"true lilith\": \"true-lilith\",\n \"south node\": \"south-node-mean\",\n \"south node mean\": \"south-node-mean\",\n \"south node true\": \"south-node-true\",\n};\n\n/** Reverse lookup: legacy spaced key (case/underscore tolerant) -> stable ID, or `null`. */\nexport function pointIdFromLegacyKey(key: string): PointId | null {\n const k = normKey(key);\n if (LEGACY_ALIASES[k]) return LEGACY_ALIASES[k];\n for (const def of DEFS) {\n if (def.legacyKey === k) return def.id;\n }\n if (isPointId(k.replace(/ /g, \"-\"))) return k.replace(/ /g, \"-\") as PointId;\n return null;\n}\n\n/** Forward lookup: stable ID -> legacy key. */\nexport function legacyKeyFromPointId(id: PointId): string {\n return POINT_DEFINITIONS[id].legacyKey;\n}\n\nfunction make(\n id: PointId,\n longitude: number,\n extra: { latitude?: number; speed?: number | null; derived?: boolean }\n): ChartPoint {\n const def = POINT_DEFINITIONS[id];\n const point: ChartPoint = {\n id,\n kind: def.kind,\n longitude: normalizeAngle(longitude),\n speed: extra.speed ?? null,\n legacyKey: def.legacyKey,\n legacySource: def.legacySource,\n flags: { derived: extra.derived ?? false, timeDependent: def.timeDependent },\n };\n if (extra.latitude !== undefined) point.latitude = extra.latitude;\n return point;\n}\n\nconst PLANET_ENUM_TO_ID: Record<number, PointId> = {\n [Planet.SUN]: \"sun\",\n [Planet.MOON]: \"moon\",\n [Planet.MERCURY]: \"mercury\",\n [Planet.VENUS]: \"venus\",\n [Planet.MARS]: \"mars\",\n [Planet.JUPITER]: \"jupiter\",\n [Planet.SATURN]: \"saturn\",\n [Planet.URANUS]: \"uranus\",\n [Planet.NEPTUNE]: \"neptune\",\n [Planet.PLUTO]: \"pluto\",\n [Planet.MEAN_NODE]: \"mean-node\",\n [Planet.TRUE_NODE]: \"true-node\",\n [Planet.LILITH_MEAN]: \"mean-lilith\",\n [Planet.LILITH_TRUE]: \"true-lilith\",\n [Planet.CHIRON]: \"chiron\",\n};\n\nfunction applySelection(points: ChartPoint[], options?: ChartPointsOptions): ChartPoint[] {\n if (!options) return points;\n const include = options.include ? new Set<PointId>(options.include) : null;\n const exclude = options.exclude ? new Set<PointId>(options.exclude) : null;\n const classes = options.classes ? new Set<PointClass>(options.classes) : null;\n return points.filter(\n (p) =>\n (!include || include.has(p.id)) &&\n (!exclude || !exclude.has(p.id)) &&\n (!classes || classes.has(p.kind))\n );\n}\n\n/** Add the derived south nodes for any north node present. */\nfunction withSouthNodes(points: ChartPoint[]): ChartPoint[] {\n const out = [...points];\n const pairs: Array<[PointId, PointId]> = [\n [\"mean-node\", \"south-node-mean\"],\n [\"true-node\", \"south-node-true\"],\n ];\n for (const [north, south] of pairs) {\n const n = points.find((p) => p.id === north);\n if (!n) continue;\n out.push(\n make(south, n.longitude + 180, {\n latitude: n.latitude !== undefined ? -n.latitude : undefined,\n speed: n.speed,\n derived: true,\n })\n );\n }\n return out;\n}\n\n/**\n * Points from raw Swiss positions keyed by `Planet` enum (no chart needed; used for\n * untimed charts and one-ephemeris-call multi-house-system computations). Includes the\n * derived south nodes. Speeds come from `longitudeSpeed` (`null` when absent).\n */\nexport function chartPointsFromPlanetPositions(\n positions: Partial<Record<number, PlanetPosition>>,\n options?: ChartPointsOptions\n): ChartPoint[] {\n const pts: ChartPoint[] = [];\n for (const [key, id] of Object.entries(PLANET_ENUM_TO_ID)) {\n const pos = positions[Number(key)];\n if (!pos) continue;\n pts.push(make(id, pos.longitude, { latitude: pos.latitude, speed: pos.longitudeSpeed ?? null }));\n }\n return applySelection(withSouthNodes(pts), options);\n}\n\n/**\n * Map a legacy `BirthChart` to typed points. `chart.planets`, `chart.nodes`, `chart.houses`\n * and `chart.lots` are only read. South nodes are derived (longitude + 180, same speed);\n * DSC/IC come from `chart.houses.dc/ic`. Angles and lots have `speed: null`.\n */\nexport function getChartPoints(chart: BirthChart, options?: ChartPointsOptions): ChartPoint[] {\n const pts: ChartPoint[] = [];\n for (const def of DEFS) {\n if (def.legacySource !== \"planets\") continue;\n const p = chart.planets?.[def.legacyKey];\n if (!p) continue;\n pts.push(make(def.id, p.longitude, { latitude: p.latitude, speed: p.longitudeSpeed ?? null }));\n }\n const withSouth = withSouthNodes(pts);\n\n const h = chart.houses;\n if (h) {\n const angles: Array<[PointId, number | undefined]> = [\n [\"asc\", h.ascendant?.longitude],\n [\"mc\", h.mc?.longitude],\n [\"dsc\", h.dc?.longitude],\n [\"ic\", h.ic?.longitude],\n [\"vertex\", h.ascmc?.vertex?.longitude],\n ];\n for (const [id, lon] of angles) {\n if (typeof lon === \"number\") withSouth.push(make(id, lon, { derived: id === \"dsc\" || id === \"ic\" }));\n }\n }\n if (chart.lots) {\n withSouth.push(make(\"lot-fortune\", chart.lots.fortune, { derived: true }));\n withSouth.push(make(\"lot-spirit\", chart.lots.spirit, { derived: true }));\n }\n return applySelection(withSouth, options);\n}\n\n/**\n * Re-key points to the legacy dictionary shape accepted by `computeAspects` and friends\n * (`{ [legacyKey]: { longitude, longitudeSpeed? } }`).\n */\nexport function toLegacyPointRecord(\n points: readonly ChartPoint[]\n): Record<string, { longitude: number; longitudeSpeed?: number }> {\n const out: Record<string, { longitude: number; longitudeSpeed?: number }> = {};\n for (const p of points) {\n out[p.legacyKey] =\n p.speed === null ? { longitude: p.longitude } : { longitude: p.longitude, longitudeSpeed: p.speed };\n }\n return out;\n}\n","/**\n * Orb policies resolved at aspect GENERATION time.\n *\n * Legacy `computeAspects` uses one orb per aspect (`AspectSpec.orb`) and a CLI `--max-orb`\n * can only filter edges that were already generated, so it can never recover a contact the\n * generation orb omitted (e.g. a 5.5 degree sextile with the default 5 degree sextile orb).\n * An `OrbPolicy` is consulted for every pair BEFORE an edge exists, with per-body-class\n * rules, so wider (or narrower) windows are honoured exactly.\n *\n * Pair resolution (documented and echoed in every result's `policy` metadata). The orb\n * limit for aspect A between points P and Q is the first rule that applies:\n * 1. `pointPairOrbs[\"idP|idQ\"]` (IDs sorted alphabetically);\n * 2. `classPairOrbs[\"classP|classQ\"]` (classes sorted alphabetically);\n * 3. the `classOrbs` entry of the FIRST class in `classPrecedence` that is the class of P\n * or Q and has an entry (so a pair of different classes resolves to the higher-priority\n * class, not to an average or maximum);\n * 4. the aspect's own base orb (`aspects[i].orb`).\n * With `combine: \"min\"` the result of 1-3 is additionally capped by the aspect's base orb.\n * This reproduces the reference rule \"points/angles 3, else luminaries 8, else planets 6\":\n * `PTOLEMAIC_PLUS_QUINCUNX.classPrecedence` lists angle/node/point/lot before luminary\n * before planet, so Sun-Mercury is 8, Mercury-Mars is 6 and anything involving an\n * angle/node/point/lot is 3 (a luminary paired with a point is therefore 3, not 8).\n *\n * Pure arithmetic, no WASM dependency.\n */\n\nimport { type AspectName, type AspectSpec } from \"./aspects\";\nimport {\n type ChartPointLike,\n isPointId,\n POINT_CLASSES,\n POINT_DEFINITIONS,\n type PointClass,\n type PointId,\n} from \"./points\";\nimport { normalizeAngle } from \"./swisseph\";\n\n// ── Typed errors ────────────────────────────────────────────────────────\n\nexport type AspectConfigErrorCode =\n | \"UNKNOWN_ASPECT_NAME\"\n | \"INVALID_ASPECT_ANGLE\"\n | \"ASPECT_ANGLE_MISMATCH\"\n | \"DUPLICATE_ASPECT\"\n | \"EMPTY_ASPECT_LIST\"\n | \"INVALID_ORB\"\n | \"UNKNOWN_POINT_CLASS\"\n | \"UNKNOWN_POINT_ID\"\n | \"INVALID_POINT\"\n | \"DUPLICATE_POINT_ID\"\n | \"INVALID_OPTION\";\n\nexport class AspectConfigError extends Error {\n readonly code: AspectConfigErrorCode;\n readonly details?: Record<string, unknown>;\n constructor(code: AspectConfigErrorCode, message: string, details?: Record<string, unknown>) {\n super(message);\n this.name = \"AspectConfigError\";\n this.code = code;\n this.details = details;\n }\n}\n\n// ── Aspect spec validation ──────────────────────────────────────────────\n\nexport const ASPECT_CANONICAL_ANGLES: Readonly<Record<AspectName, number>> = Object.freeze({\n conjunction: 0,\n duodecile: 30,\n octile: 45,\n sextile: 60,\n square: 90,\n trine: 120,\n trioctile: 135,\n quincunx: 150,\n opposition: 180,\n});\n\nexport const KNOWN_ASPECT_NAMES: readonly AspectName[] = Object.keys(ASPECT_CANONICAL_ANGLES) as AspectName[];\n\n/**\n * Throws `AspectConfigError` for unknown names, angles outside [0,180], an angle that\n * disagrees with the name's canonical angle, orbs that are not finite numbers in [0,180],\n * duplicates or an empty list. Does not mutate or normalise.\n */\nexport function validateAspectSpecs(specs: readonly AspectSpec[]): void {\n if (!Array.isArray(specs) || specs.length === 0) {\n throw new AspectConfigError(\"EMPTY_ASPECT_LIST\", \"At least one aspect spec is required\");\n }\n const seen = new Set<string>();\n for (const spec of specs as readonly AspectSpec[]) {\n if (!spec || !Object.prototype.hasOwnProperty.call(ASPECT_CANONICAL_ANGLES, spec.name)) {\n throw new AspectConfigError(\n \"UNKNOWN_ASPECT_NAME\",\n `Unknown aspect name \"${String(spec?.name)}\"; expected one of ${KNOWN_ASPECT_NAMES.join(\", \")}`,\n { name: spec?.name }\n );\n }\n if (typeof spec.angle !== \"number\" || !Number.isFinite(spec.angle) || spec.angle < 0 || spec.angle > 180) {\n throw new AspectConfigError(\n \"INVALID_ASPECT_ANGLE\",\n `Aspect \"${spec.name}\" angle must be a finite number in [0, 180], got ${String(spec.angle)}`,\n { name: spec.name, angle: spec.angle }\n );\n }\n const canonical = ASPECT_CANONICAL_ANGLES[spec.name as AspectName];\n if (spec.angle !== canonical) {\n throw new AspectConfigError(\n \"ASPECT_ANGLE_MISMATCH\",\n `Aspect \"${spec.name}\" has angle ${spec.angle} but its canonical angle is ${canonical}`,\n { name: spec.name, angle: spec.angle }\n );\n }\n if (typeof spec.orb !== \"number\" || !Number.isFinite(spec.orb) || spec.orb < 0 || spec.orb > 180) {\n throw new AspectConfigError(\n \"INVALID_ORB\",\n `Aspect \"${spec.name}\" orb must be a finite number in [0, 180], got ${String(spec.orb)}`,\n { name: spec.name, orb: spec.orb }\n );\n }\n if (seen.has(spec.name)) {\n throw new AspectConfigError(\"DUPLICATE_ASPECT\", `Aspect \"${spec.name}\" listed more than once`, {\n name: spec.name,\n });\n }\n seen.add(spec.name);\n }\n}\n\n// ── Policy ──────────────────────────────────────────────────────────────\n\nexport interface OrbPolicy {\n /** Stable identifier echoed in results. */\n id: string;\n /** Aspects to generate with their base orbs (the fallback when no class rule applies). */\n aspects: readonly AspectSpec[];\n /** Orb limit (degrees) per body class. */\n classOrbs?: Partial<Record<PointClass, number>>;\n /** Highest priority first. Default: angle, node, point, lot, luminary, planet. */\n classPrecedence?: readonly PointClass[];\n /** Overrides for a class pair, keyed `\"classA|classB\"` with classes sorted alphabetically. */\n classPairOrbs?: Record<string, number>;\n /** Overrides for a point pair, keyed `\"idA|idB\"` with IDs sorted alphabetically. */\n pointPairOrbs?: Record<string, number>;\n /**\n * `\"class-replaces-aspect\"` (default): a matching class/pair rule REPLACES the aspect base\n * orb. `\"min\"`: the class/pair limit is capped by the aspect base orb.\n */\n combine?: \"class-replaces-aspect\" | \"min\";\n}\n\nexport const DEFAULT_CLASS_PRECEDENCE: readonly PointClass[] = Object.freeze([\n \"angle\",\n \"node\",\n \"point\",\n \"lot\",\n \"luminary\",\n \"planet\",\n] as PointClass[]);\n\nexport type OrbRuleSource = \"point-pair\" | \"class-pair\" | \"class\" | \"aspect\";\n\nexport interface ResolvedOrb {\n limit: number;\n rule: OrbRuleSource;\n /** The class whose rule decided the limit (`rule: \"class\"`). */\n decidingClass?: PointClass;\n}\n\nfunction checkOrbValue(value: unknown, where: string): void {\n if (typeof value !== \"number\" || !Number.isFinite(value) || value < 0 || value > 180) {\n throw new AspectConfigError(\"INVALID_ORB\", `${where} must be a finite number in [0, 180], got ${String(value)}`, {\n where,\n value,\n });\n }\n}\n\nfunction checkClass(value: string, where: string): asserts value is PointClass {\n if (!(POINT_CLASSES as readonly string[]).includes(value)) {\n throw new AspectConfigError(\"UNKNOWN_POINT_CLASS\", `${where}: unknown point class \"${value}\"`, { where, value });\n }\n}\n\n/** Validate a policy (aspect specs, orbs, class names, point IDs). Throws `AspectConfigError`. */\nexport function validateOrbPolicy(policy: OrbPolicy): void {\n validateAspectSpecs(policy.aspects);\n for (const [cls, orb] of Object.entries(policy.classOrbs ?? {})) {\n checkClass(cls, \"classOrbs\");\n checkOrbValue(orb, `classOrbs.${cls}`);\n }\n for (const cls of policy.classPrecedence ?? []) checkClass(cls, \"classPrecedence\");\n for (const [key, orb] of Object.entries(policy.classPairOrbs ?? {})) {\n const parts = key.split(\"|\");\n if (parts.length !== 2) {\n throw new AspectConfigError(\"INVALID_OPTION\", `classPairOrbs key \"${key}\" must be \"classA|classB\"`);\n }\n parts.forEach((c) => checkClass(c, \"classPairOrbs\"));\n checkOrbValue(orb, `classPairOrbs.${key}`);\n }\n for (const [key, orb] of Object.entries(policy.pointPairOrbs ?? {})) {\n const parts = key.split(\"|\");\n if (parts.length !== 2) {\n throw new AspectConfigError(\"INVALID_OPTION\", `pointPairOrbs key \"${key}\" must be \"idA|idB\"`);\n }\n for (const p of parts) {\n if (!isPointId(p)) {\n throw new AspectConfigError(\"UNKNOWN_POINT_ID\", `pointPairOrbs: unknown point id \"${p}\"`, { id: p });\n }\n }\n checkOrbValue(orb, `pointPairOrbs.${key}`);\n }\n if (policy.combine !== undefined && policy.combine !== \"class-replaces-aspect\" && policy.combine !== \"min\") {\n throw new AspectConfigError(\"INVALID_OPTION\", `Unknown combine mode \"${String(policy.combine)}\"`);\n }\n}\n\n/** Build and validate a policy, filling defaults (`classPrecedence`, `combine`). */\nexport function defineOrbPolicy(policy: OrbPolicy): OrbPolicy {\n validateOrbPolicy(policy);\n return {\n ...policy,\n aspects: policy.aspects.map((a) => ({ ...a })),\n classPrecedence: [...(policy.classPrecedence ?? DEFAULT_CLASS_PRECEDENCE)],\n combine: policy.combine ?? \"class-replaces-aspect\",\n };\n}\n\nconst sortedKey = (a: string, b: string) => (a <= b ? `${a}|${b}` : `${b}|${a}`);\n\n/**\n * Resolve the orb limit for `spec` between two points under `policy`\n * (precedence in the module header).\n */\nexport function resolveOrbLimit(\n policy: OrbPolicy,\n a: Pick<ChartPointLike, \"id\" | \"kind\">,\n b: Pick<ChartPointLike, \"id\" | \"kind\">,\n spec: AspectSpec\n): ResolvedOrb {\n const combine = policy.combine ?? \"class-replaces-aspect\";\n const finish = (limit: number, rule: OrbRuleSource, decidingClass?: PointClass): ResolvedOrb => {\n const capped = combine === \"min\" && rule !== \"aspect\" ? Math.min(limit, spec.orb) : limit;\n return decidingClass ? { limit: capped, rule, decidingClass } : { limit: capped, rule };\n };\n\n const pointKey = sortedKey(a.id, b.id);\n if (policy.pointPairOrbs && pointKey in policy.pointPairOrbs) {\n return finish(policy.pointPairOrbs[pointKey], \"point-pair\");\n }\n const classKey = sortedKey(a.kind, b.kind);\n if (policy.classPairOrbs && classKey in policy.classPairOrbs) {\n return finish(policy.classPairOrbs[classKey], \"class-pair\");\n }\n if (policy.classOrbs) {\n const precedence = policy.classPrecedence ?? DEFAULT_CLASS_PRECEDENCE;\n for (const cls of precedence) {\n if ((a.kind === cls || b.kind === cls) && policy.classOrbs[cls] !== undefined) {\n return finish(policy.classOrbs[cls] as number, \"class\", cls);\n }\n }\n }\n return { limit: spec.orb, rule: \"aspect\" };\n}\n\n/**\n * Named, OPT-IN profile (not a default): Ptolemaic aspects plus quincunx; luminaries 8,\n * planets 6, and 3 whenever either participant is an angle, node, point (Lilith, Chiron) or\n * lot. Mirrors the reference rule (points/angles 3 > luminaries 8 > planets 6).\n */\nexport const PTOLEMAIC_PLUS_QUINCUNX: Readonly<OrbPolicy> = Object.freeze(\n defineOrbPolicy({\n id: \"ptolemaic-plus-quincunx\",\n aspects: [\n { name: \"conjunction\", angle: 0, orb: 6 },\n { name: \"sextile\", angle: 60, orb: 6 },\n { name: \"square\", angle: 90, orb: 6 },\n { name: \"trine\", angle: 120, orb: 6 },\n { name: \"quincunx\", angle: 150, orb: 6 },\n { name: \"opposition\", angle: 180, orb: 6 },\n ],\n classOrbs: { luminary: 8, planet: 6, angle: 3, node: 3, point: 3, lot: 3 },\n classPrecedence: [\"angle\", \"node\", \"point\", \"lot\", \"luminary\", \"planet\"],\n combine: \"class-replaces-aspect\",\n })\n);\n\nexport const ORB_POLICY_PROFILES: Readonly<Record<string, Readonly<OrbPolicy>>> = Object.freeze({\n [PTOLEMAIC_PLUS_QUINCUNX.id]: PTOLEMAIC_PLUS_QUINCUNX,\n});\n\n// ── Motion ──────────────────────────────────────────────────────────────\n\nexport type AspectMotion = \"applying\" | \"separating\" | \"exact\" | null;\n\nexport type MotionUnavailableReason = \"speed-unknown\" | \"zero-relative-speed\";\n\nexport interface AspectMotionResult {\n motion: AspectMotion;\n /** d(orb)/dt in degrees per day (positive = widening); `null` when unavailable. */\n orbRate: number | null;\n reason?: MotionUnavailableReason;\n}\n\n/** Orb at or below this (degrees) is reported as `\"exact\"`. */\nexport const DEFAULT_EXACT_TOLERANCE_DEGREES = 1e-6;\n\n/**\n * Instantaneous applying/separating convention (analytic derivative, not a projected\n * future orb): with d = signed longitude difference B - A wrapped to (-180, 180],\n * separation s = |d|, orb = |s - angle|:\n * d(orb)/dt = sign(s - angle) * sign(d) * (speedB - speedA).\n * Negative -> `\"applying\"`, positive -> `\"separating\"`. `\"exact\"` when orb <= tolerance.\n * `null` when either speed is unknown (`null`/`undefined`/non-finite), or when the relative\n * speed is exactly zero away from exactness (`reason` says which). Speeds are degrees/day\n * (retrograde negative); wrap across 0 degrees is handled by the signed difference.\n */\nexport function getAspectMotion(\n lonA: number,\n speedA: number | null | undefined,\n lonB: number,\n speedB: number | null | undefined,\n aspectAngle: number,\n exactToleranceDegrees = DEFAULT_EXACT_TOLERANCE_DEGREES\n): AspectMotionResult {\n let d = normalizeAngle(lonB - lonA);\n if (d > 180) d -= 360;\n const s = Math.abs(d);\n const signedOrb = s - aspectAngle;\n if (Math.abs(signedOrb) <= exactToleranceDegrees) {\n return { motion: \"exact\", orbRate: null };\n }\n if (!isFiniteNumber(speedA) || !isFiniteNumber(speedB)) {\n return { motion: null, orbRate: null, reason: \"speed-unknown\" };\n }\n const dsdt = (d >= 0 ? 1 : -1) * (speedB - speedA);\n const orbRate = (signedOrb >= 0 ? 1 : -1) * dsdt;\n if (orbRate === 0) return { motion: null, orbRate: 0, reason: \"zero-relative-speed\" };\n return { motion: orbRate < 0 ? \"applying\" : \"separating\", orbRate };\n}\n\nfunction isFiniteNumber(v: unknown): v is number {\n return typeof v === \"number\" && Number.isFinite(v);\n}\n\n// ── Aspect generation ───────────────────────────────────────────────────\n\nexport interface PolicyAspectEdge {\n /** Stable IDs; for two-set calls `a` belongs to the first set, `b` to the second. */\n a: PointId;\n b: PointId;\n aKind: PointClass;\n bKind: PointClass;\n longitudeA: number;\n longitudeB: number;\n aspect: AspectName;\n aspectAngle: number;\n /** Exact angular separation in [0, 180]. */\n separation: number;\n /** |separation - aspectAngle|. */\n orb: number;\n /** The generation-time orb limit that admitted this contact. */\n orbLimit: number;\n orbRule: OrbRuleSource;\n decidingClass?: PointClass;\n motion: AspectMotion;\n /** d(orb)/dt, degrees/day; `null` when unavailable. */\n orbRate: number | null;\n motionUnavailableReason?: MotionUnavailableReason;\n /** Equivalence key: opposite ends of one axis (ASC/DSC, MC/IC, node/south node) share it. */\n axisKey: string;\n}\n\nexport interface ComputePolicyAspectsOptions {\n include?: readonly PointId[];\n exclude?: readonly PointId[];\n /**\n * Additional POST-filter (like the CLI `--max-orb`): can only narrow the policy's limits.\n */\n maxOrb?: number;\n exactToleranceDegrees?: number;\n /** Same-set pairs on one axis (ASC-DSC, node-south node) are trivial; skipped unless true. */\n includeSameAxisPairs?: boolean;\n /**\n * Two-set calls only: ignore the second set's speeds (treat them as 0). Use for\n * transit-to-natal so natal targets stay fixed, and motion is then available even for\n * natal angles.\n */\n fixedTargets?: boolean;\n}\n\nexport interface AspectCounts {\n /** Edges as generated; ASC and DSC (etc.) count separately. */\n raw: number;\n /** One per axis-equivalence group. */\n grouped: number;\n byAspect: Partial<Record<AspectName, { raw: number; grouped: number }>>;\n}\n\nexport interface AxisAspectGroup {\n key: string;\n /** Tightest-orb member. */\n representative: PolicyAspectEdge;\n members: PolicyAspectEdge[];\n}\n\nexport interface OrbPolicyMetadata {\n policyId: string;\n aspects: Array<{ name: AspectName; angle: number; baseOrb: number }>;\n classOrbs: Partial<Record<PointClass, number>>;\n classPrecedence: PointClass[];\n combine: \"class-replaces-aspect\" | \"min\";\n pairResolution: string;\n generation: \"orb limits resolved per pair before an edge is created\";\n motionConvention: string;\n axisEquivalence: string;\n}\n\nexport interface PolicyAspectResult {\n edges: PolicyAspectEdge[];\n counts: AspectCounts;\n axisGroups: AxisAspectGroup[];\n policy: OrbPolicyMetadata;\n}\n\nconst MOTION_CONVENTION =\n \"instantaneous d(orb)/dt = sign(separation-angle)*sign(signedDiff(B-A))*(speedB-speedA), deg/day; \" +\n \"negative=applying, positive=separating, orb<=tolerance=exact; null when either speed is unknown \" +\n \"(angles, lots) or relative speed is zero; fixedTargets treats set B speeds as 0\";\n\nconst AXIS_EQUIVALENCE =\n \"an aspect at angle t to one end of an axis (ASC/DSC, MC/IC, mean/true node vs south node) equals \" +\n \"angle 180-t to the other end; edges whose canonical (axis-collapsed, flip-corrected) form coincide are one group\";\n\nconst PAIR_RESOLUTION =\n \"limit = pointPairOrbs[idA|idB] (sorted) > classPairOrbs[classA|classB] (sorted) > classOrbs of the first class in \" +\n \"classPrecedence held by either participant > aspect base orb; combine 'min' additionally caps by the aspect base orb\";\n\nexport function describeOrbPolicy(policy: OrbPolicy): OrbPolicyMetadata {\n return {\n policyId: policy.id,\n aspects: policy.aspects.map((a) => ({ name: a.name, angle: a.angle, baseOrb: a.orb })),\n classOrbs: { ...(policy.classOrbs ?? {}) },\n classPrecedence: [...(policy.classPrecedence ?? DEFAULT_CLASS_PRECEDENCE)],\n combine: policy.combine ?? \"class-replaces-aspect\",\n pairResolution: PAIR_RESOLUTION,\n generation: \"orb limits resolved per pair before an edge is created\",\n motionConvention: MOTION_CONVENTION,\n axisEquivalence: AXIS_EQUIVALENCE,\n };\n}\n\nfunction validatePoints(points: readonly ChartPointLike[], label: string): void {\n const seen = new Set<string>();\n for (const p of points) {\n if (!p || !isPointId(p.id)) {\n throw new AspectConfigError(\"UNKNOWN_POINT_ID\", `${label}: unknown point id \"${String((p as any)?.id)}\"`, {\n id: (p as any)?.id,\n });\n }\n if (!(POINT_CLASSES as readonly string[]).includes(p.kind)) {\n throw new AspectConfigError(\"UNKNOWN_POINT_CLASS\", `${label}: point \"${p.id}\" has unknown class \"${p.kind}\"`, {\n id: p.id,\n kind: p.kind,\n });\n }\n if (!isFiniteNumber(p.longitude)) {\n throw new AspectConfigError(\"INVALID_POINT\", `${label}: point \"${p.id}\" needs a finite longitude`, { id: p.id });\n }\n if (p.speed !== undefined && p.speed !== null && !isFiniteNumber(p.speed)) {\n throw new AspectConfigError(\"INVALID_POINT\", `${label}: point \"${p.id}\" speed must be a finite number or null`, {\n id: p.id,\n });\n }\n if (seen.has(p.id)) {\n throw new AspectConfigError(\"DUPLICATE_POINT_ID\", `${label}: duplicate point id \"${p.id}\"`, { id: p.id });\n }\n seen.add(p.id);\n }\n}\n\nfunction validateOptions(options: ComputePolicyAspectsOptions): void {\n if (options.maxOrb !== undefined && (!isFiniteNumber(options.maxOrb) || options.maxOrb < 0)) {\n throw new AspectConfigError(\"INVALID_OPTION\", `maxOrb must be a finite number >= 0, got ${String(options.maxOrb)}`);\n }\n if (\n options.exactToleranceDegrees !== undefined &&\n (!isFiniteNumber(options.exactToleranceDegrees) || options.exactToleranceDegrees < 0)\n ) {\n throw new AspectConfigError(\"INVALID_OPTION\", \"exactToleranceDegrees must be a finite number >= 0\");\n }\n for (const list of [options.include, options.exclude]) {\n for (const id of list ?? []) {\n if (!isPointId(id)) throw new AspectConfigError(\"UNKNOWN_POINT_ID\", `Unknown point id \"${String(id)}\"`, { id });\n }\n }\n}\n\nfunction select<T extends ChartPointLike>(points: readonly T[], options: ComputePolicyAspectsOptions): T[] {\n const include = options.include ? new Set<string>(options.include) : null;\n const exclude = options.exclude ? new Set<string>(options.exclude) : null;\n return points.filter((p) => (!include || include.has(p.id)) && (!exclude || !exclude.has(p.id)));\n}\n\n/** Axis-equivalence key; see `AXIS_EQUIVALENCE`. `sideA`/`sideB` separate the two sets of a two-set call. */\nfunction axisKeyOf(a: PointId, sideA: string, b: PointId, sideB: string, angle: number): string {\n const tok = (id: PointId, side: string) => {\n const ax = POINT_DEFINITIONS[id].axis;\n return { token: `${side}${ax ? ax.id : id}`, flip: ax ? ax.end : 0 };\n };\n const ta = tok(a, sideA);\n const tb = tok(b, sideB);\n const flips = ta.flip + tb.flip;\n const canonical = flips % 2 === 1 ? 180 - angle : angle;\n const [t1, t2] = ta.token <= tb.token ? [ta.token, tb.token] : [tb.token, ta.token];\n return `${t1}~${t2}@${canonical}`;\n}\n\nfunction sameAxis(a: PointId, b: PointId): boolean {\n const x = POINT_DEFINITIONS[a].axis;\n const y = POINT_DEFINITIONS[b].axis;\n return !!x && !!y && x.id === y.id;\n}\n\nfunction edgesForPair(\n pa: ChartPointLike,\n pb: ChartPointLike,\n policy: OrbPolicy,\n options: ComputePolicyAspectsOptions,\n sideA: string,\n sideB: string,\n speedBOverride: number | null | undefined\n): PolicyAspectEdge[] {\n const out: PolicyAspectEdge[] = [];\n const a = normalizeAngle(pa.longitude);\n const b = normalizeAngle(pb.longitude);\n const separation = Math.min(normalizeAngle(b - a), normalizeAngle(a - b));\n const tolerance = options.exactToleranceDegrees ?? DEFAULT_EXACT_TOLERANCE_DEGREES;\n for (const spec of policy.aspects) {\n const resolved = resolveOrbLimit(policy, pa, pb, spec);\n const orb = Math.abs(separation - spec.angle);\n if (orb > resolved.limit + 1e-10) continue;\n if (options.maxOrb !== undefined && orb > options.maxOrb + 1e-10) continue;\n const speedB = speedBOverride !== undefined ? speedBOverride : pb.speed;\n const m = getAspectMotion(a, pa.speed, b, speedB, spec.angle, tolerance);\n const edge: PolicyAspectEdge = {\n a: pa.id,\n b: pb.id,\n aKind: pa.kind,\n bKind: pb.kind,\n longitudeA: a,\n longitudeB: b,\n aspect: spec.name,\n aspectAngle: spec.angle,\n separation,\n orb,\n orbLimit: resolved.limit,\n orbRule: resolved.rule,\n motion: m.motion,\n orbRate: m.orbRate,\n axisKey: axisKeyOf(pa.id, sideA, pb.id, sideB, spec.angle),\n };\n if (resolved.decidingClass) edge.decidingClass = resolved.decidingClass;\n if (m.reason) edge.motionUnavailableReason = m.reason;\n out.push(edge);\n }\n return out;\n}\n\n/** Tight-first ordering: orb, then IDs, then aspect angle (deterministic). */\nexport function sortTightContacts(\n edges: readonly PolicyAspectEdge[],\n options: { maxOrb?: number; limit?: number } = {}\n): PolicyAspectEdge[] {\n let list = [...edges];\n if (options.maxOrb !== undefined) list = list.filter((e) => e.orb <= options.maxOrb! + 1e-10);\n list.sort(\n (x, y) =>\n x.orb - y.orb ||\n (x.a < y.a ? -1 : x.a > y.a ? 1 : 0) ||\n (x.b < y.b ? -1 : x.b > y.b ? 1 : 0) ||\n x.aspectAngle - y.aspectAngle\n );\n return options.limit !== undefined ? list.slice(0, options.limit) : list;\n}\n\n/** Group edges that are the same observation seen from opposite ends of an axis. */\nexport function groupAspectsByAxis(edges: readonly PolicyAspectEdge[]): AxisAspectGroup[] {\n const groups = new Map<string, AxisAspectGroup>();\n for (const e of edges) {\n const g = groups.get(e.axisKey);\n if (!g) {\n groups.set(e.axisKey, { key: e.axisKey, representative: e, members: [e] });\n } else {\n g.members.push(e);\n if (e.orb < g.representative.orb) g.representative = e;\n }\n }\n return [...groups.values()];\n}\n\n/** Raw and axis-grouped counts, overall and per aspect (grouped uses each group's representative). */\nexport function countAspects(edges: readonly PolicyAspectEdge[]): AspectCounts {\n const groups = groupAspectsByAxis(edges);\n const byAspect: AspectCounts[\"byAspect\"] = {};\n for (const e of edges) {\n const slot = (byAspect[e.aspect] ??= { raw: 0, grouped: 0 });\n slot.raw++;\n }\n for (const g of groups) {\n const slot = (byAspect[g.representative.aspect] ??= { raw: 0, grouped: 0 });\n slot.grouped++;\n }\n return { raw: edges.length, grouped: groups.length, byAspect };\n}\n\nfunction finish(edges: PolicyAspectEdge[], policy: OrbPolicy): PolicyAspectResult {\n const sorted = sortTightContacts(edges);\n return {\n edges: sorted,\n counts: countAspects(sorted),\n axisGroups: groupAspectsByAxis(sorted),\n policy: describeOrbPolicy(policy),\n };\n}\n\n/**\n * Aspects among one set of points under an orb policy (orb limits resolved at generation).\n * Throws `AspectConfigError` for invalid policies, options or points. Edges are sorted tight-first.\n */\nexport function computeAspectsWithPolicy(\n points: readonly ChartPointLike[],\n policy: OrbPolicy,\n options: ComputePolicyAspectsOptions = {}\n): PolicyAspectResult {\n validateOrbPolicy(policy);\n validateOptions(options);\n validatePoints(points, \"points\");\n const pts = select(points, options);\n const edges: PolicyAspectEdge[] = [];\n for (let i = 0; i < pts.length; i++) {\n for (let j = i + 1; j < pts.length; j++) {\n if (!options.includeSameAxisPairs && sameAxis(pts[i].id, pts[j].id)) continue;\n edges.push(...edgesForPair(pts[i], pts[j], policy, options, \"\", \"\", undefined));\n }\n }\n return finish(edges, policy);\n}\n\n/**\n * Two-set (synastry / transit-to-natal) variant: `a` ids come from `setA`, `b` ids from `setB`.\n * With `fixedTargets: true` set B is treated as stationary (natal targets), so motion is\n * available even for set-B angles.\n */\nexport function computeAspectsBetweenSetsWithPolicy(\n setA: readonly ChartPointLike[],\n setB: readonly ChartPointLike[],\n policy: OrbPolicy,\n options: ComputePolicyAspectsOptions = {}\n): PolicyAspectResult {\n validateOrbPolicy(policy);\n validateOptions(options);\n validatePoints(setA, \"setA\");\n validatePoints(setB, \"setB\");\n const A = select(setA, options);\n const B = select(setB, options);\n const edges: PolicyAspectEdge[] = [];\n for (const pa of A) {\n for (const pb of B) {\n edges.push(...edgesForPair(pa, pb, policy, options, \"A:\", \"B:\", options.fixedTargets ? 0 : undefined));\n }\n }\n return finish(edges, policy);\n}\n\n/** Transit-to-natal: `computeAspectsBetweenSetsWithPolicy` with `fixedTargets` defaulting to true. */\nexport function computeTransitAspectsWithPolicy(\n transitPoints: readonly ChartPointLike[],\n natalPoints: readonly ChartPointLike[],\n policy: OrbPolicy,\n options: ComputePolicyAspectsOptions = {}\n): PolicyAspectResult {\n return computeAspectsBetweenSetsWithPolicy(transitPoints, natalPoints, policy, {\n ...options,\n fixedTargets: options.fixedTargets ?? true,\n });\n}\n","/**\n * Quality-aware chart input: recorded / rectified / untimed / partial.\n *\n * - recorded : full chart from a documented birth time.\n * - rectified: full chart, but every time-dependent value (Moon degree, angles, vertex,\n * lots) is flagged `rectified: true`; analysis selectors can drop rectified angles.\n * - untimed : positions at LOCAL NOON, every point flagged `placeholder: true`. The\n * normalized analysis set omits the Moon degree, angles, houses, lots, sect and\n * time-dependent techniques, each with a structured `unavailable` reason. The\n * whole-day Moon sign range (local 00:00 to the next local 00:00) and any other\n * body changing sign that day are reported instead.\n * - partial : no full date; no chart is invented, only structured unavailability.\n *\n * Time and place assumptions are returned as `TimeProvenance`. Wall-clock input reuses\n * `LocalDateTimeParts` / `TimeZoneOptions` from `./swisseph` (no second representation).\n *\n * `getBirthChart` lives in `./index`, which re-exports this module, so it is loaded lazily\n * (or injected through `computeChart`) to avoid an import cycle at evaluation time.\n */\n\nimport { addCivilDays } from \"../civil-date\";\nimport type { BirthChartOptions, ComputedBirthChart } from \"./index\";\nimport {\n type ChartPoint,\n chartPointsFromPlanetPositions,\n getChartPoints,\n type PointClass,\n type PointId,\n} from \"./points\";\nimport {\n calculatePlanetaryPositions,\n calculateSinglePlanetPosition,\n type HouseSystem,\n type LocalDateTimeParts,\n normalizeAngle,\n Planet,\n type TimeZoneOptions,\n toUtcDate,\n} from \"./swisseph\";\n\nexport type InputQuality = \"recorded\" | \"rectified\" | \"untimed\" | \"partial\";\nexport type PlaceRole = \"birthplace\" | \"residence\" | \"event\" | \"unknown\";\n\nexport interface PartialDateParts {\n year?: number;\n month?: number;\n day?: number;\n}\n\nexport const ZODIAC_SIGN_KEYS = [\n \"aries\",\n \"taurus\",\n \"gemini\",\n \"cancer\",\n \"leo\",\n \"virgo\",\n \"libra\",\n \"scorpio\",\n \"sagittarius\",\n \"capricorn\",\n \"aquarius\",\n \"pisces\",\n] as const;\nexport type ZodiacSignKey = (typeof ZODIAC_SIGN_KEYS)[number];\n\nexport type InputQualityErrorCode =\n | \"INVALID_QUALITY\"\n | \"INCOMPLETE_DATE\"\n | \"MISSING_TIME\"\n | \"MISSING_LOCATION\"\n | \"INVALID_DATE\";\n\nexport class InputQualityError extends Error {\n readonly code: InputQualityErrorCode;\n constructor(code: InputQualityErrorCode, message: string) {\n super(message);\n this.name = \"InputQualityError\";\n this.code = code;\n }\n}\n\nexport type ChartUnavailableReason = \"birth-time-unknown\" | \"date-incomplete\" | \"excluded-by-selector\";\n\nexport interface UnavailableItem {\n item:\n | \"chart\"\n | \"moon-degree\"\n | \"angles\"\n | \"houses\"\n | \"lots\"\n | \"sect\"\n | \"time-dependent-techniques\"\n | \"rectified-angles\";\n reason: ChartUnavailableReason;\n message: string;\n pointIds?: PointId[];\n /** For `time-dependent-techniques`: the techniques that cannot be run. */\n techniques?: string[];\n}\n\nexport interface SignIngress {\n fromSign: ZodiacSignKey;\n toSign: ZodiacSignKey;\n atUtc: Date;\n}\n\nexport interface MoonDayRange {\n /** One sign, or two in order when the Moon changes sign during the day. */\n signs: ZodiacSignKey[];\n changesSign: boolean;\n /** First ingress during the interval, when the sign changes. */\n ingress?: SignIngress;\n startUtc: Date;\n endUtc: Date;\n /** Interval is local 00:00 of the date to local 00:00 of the next date (zone rules applied). */\n interval: \"local-midnight-to-local-midnight\";\n degreesExcluded: true;\n}\n\nexport interface BodySignChange {\n id: PointId;\n signs: ZodiacSignKey[];\n ingresses: SignIngress[];\n}\n\nexport type TimeBasis =\n | \"iana-zone\"\n | \"utc-offset\"\n | \"auto-from-coordinates\"\n | \"utc-instant\"\n | \"local-mean-time\"\n | \"unknown-place\";\n\nexport interface TimeProvenance {\n basis: TimeBasis;\n /** IANA zone when known (explicit, resolver, or tz-lookup); undefined for offsets, UTC, LMT. */\n ianaZone?: string;\n /** Resolved offset of the reference instant, minutes east of UTC (fractional for LMT); null if unknown. */\n utcOffsetMinutes: number | null;\n /** DST in effect at the reference instant; null when it cannot be determined. */\n dst: boolean | null;\n /** The input was already a UTC instant (`treatAsUTC`). */\n alreadyUtc: boolean;\n /** Longitude-based local mean time was chosen instead of a zone's civil time. */\n localMeanTime: boolean;\n /** Reference instant: the given time (timed) or local noon (untimed). `null` for partial dates. */\n referenceInstantUtc: Date | null;\n placeRole: PlaceRole;\n /** Latitude/longitude were supplied. */\n placeKnown: boolean;\n notes: string[];\n}\n\nexport interface AnalysisSelection {\n include?: readonly PointId[];\n exclude?: readonly PointId[];\n classes?: readonly PointClass[];\n /** Drop angles (ASC/MC/DSC/IC/Vertex) that came from a rectified time. */\n excludeRectifiedAngles?: boolean;\n}\n\nexport interface QualifiedChartInput {\n quality: InputQuality;\n date: Date | LocalDateTimeParts | PartialDateParts;\n latitude?: number;\n longitude?: number;\n houseSystem?: HouseSystem;\n timeZoneSettings?: TimeZoneOptions;\n /**\n * Read the wall-clock parts as local mean time of `longitude` (4 minutes per degree east\n * of Greenwich), for pre-standard-time records. Overrides `timeZoneSettings`.\n */\n localMeanTime?: boolean;\n placeRole?: PlaceRole;\n analysis?: AnalysisSelection;\n /** Injected chart function (defaults to `getBirthChart` from `./index`, loaded lazily). */\n computeChart?: (options: BirthChartOptions) => Promise<ComputedBirthChart>;\n}\n\nexport interface QualifiedChart {\n quality: InputQuality;\n /** `complete`: everything computed; `limited`: untimed; `unavailable`: partial. */\n status: \"complete\" | \"limited\" | \"unavailable\";\n /** Full chart for recorded/rectified; always `null` for untimed and partial. */\n chart: ComputedBirthChart | null;\n /** Every computed point with provenance flags (placeholder / rectified). */\n points: ChartPoint[];\n /** Normalized point set to feed analysis (untimed: no Moon, angles, lots; selectors applied). */\n analysisPoints: ChartPoint[];\n unavailable: UnavailableItem[];\n /** Untimed only. */\n moonDayRange?: MoonDayRange;\n /** Untimed only: other bodies that change sign during the local day. */\n signChanges?: BodySignChange[];\n provenance: TimeProvenance;\n}\n\n// ── Helpers ─────────────────────────────────────────────────────────────\n\nconst MS_PER_MIN = 60_000;\nconst ANGLE_IDS: PointId[] = [\"asc\", \"mc\", \"dsc\", \"ic\", \"vertex\"];\n\nfunction hasFullDate(d: unknown): d is Date | LocalDateTimeParts {\n if (d instanceof Date) return !Number.isNaN(d.getTime());\n const p = d as PartialDateParts;\n return !!p && Number.isInteger(p.year) && Number.isInteger(p.month) && Number.isInteger(p.day);\n}\n\nfunction partsOf(date: Date | LocalDateTimeParts): LocalDateTimeParts {\n if (date instanceof Date) {\n return {\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate(),\n hour: date.getHours(),\n minute: date.getMinutes(),\n second: date.getSeconds(),\n };\n }\n return date;\n}\n\nfunction utcFromParts(p: LocalDateTimeParts): number {\n const d = new Date(0);\n d.setUTCFullYear(p.year, p.month - 1, p.day);\n d.setUTCHours(p.hour ?? 0, p.minute ?? 0, p.second ?? 0, 0);\n return d.getTime();\n}\n\nfunction hasPlace(input: QualifiedChartInput): boolean {\n return typeof input.latitude === \"number\" && typeof input.longitude === \"number\";\n}\n\nfunction hasExplicitZone(tz: TimeZoneOptions): boolean {\n return (\n tz.treatAsUTC === true ||\n (typeof tz.utcOffsetMinutes === \"number\" && Number.isFinite(tz.utcOffsetMinutes)) ||\n !!tz.timeZone\n );\n}\n\ninterface ResolvedInstant {\n instant: Date;\n basis: TimeBasis;\n}\n\n/** Resolve wall-clock parts to a UTC instant following the same rules as `getBirthChart`. */\nasync function resolveInstant(parts: LocalDateTimeParts, input: QualifiedChartInput): Promise<ResolvedInstant> {\n const tz = input.timeZoneSettings ?? { autoTimeZone: true };\n if (input.localMeanTime) {\n if (typeof input.longitude !== \"number\") {\n throw new InputQualityError(\"MISSING_LOCATION\", \"localMeanTime requires a longitude\");\n }\n return {\n instant: new Date(utcFromParts(parts) - input.longitude * 4 * MS_PER_MIN),\n basis: \"local-mean-time\",\n };\n }\n if (tz.treatAsUTC === true) {\n return { instant: new Date(utcFromParts(parts)), basis: \"utc-instant\" };\n }\n if (!hasPlace(input) && !hasExplicitZone(tz)) {\n // Unknown place and no zone: the only defensible approximation is UTC.\n return { instant: new Date(utcFromParts(parts)), basis: \"unknown-place\" };\n }\n const instant = await toUtcDate(parts, input.latitude, input.longitude, tz);\n const basis: TimeBasis =\n typeof tz.utcOffsetMinutes === \"number\" && Number.isFinite(tz.utcOffsetMinutes)\n ? \"utc-offset\"\n : tz.timeZone\n ? \"iana-zone\"\n : \"auto-from-coordinates\";\n return { instant, basis };\n}\n\nasync function lookupZone(input: QualifiedChartInput, parts: LocalDateTimeParts): Promise<string | undefined> {\n const tz = input.timeZoneSettings ?? { autoTimeZone: true };\n if (tz.timeZone) return tz.timeZone;\n if (!hasPlace(input)) return undefined;\n const lat = input.latitude as number;\n const lon = input.longitude as number;\n const fromResolver = tz.resolveTimeZone?.(lat, lon, parts);\n if (fromResolver) return fromResolver;\n if (tz.autoTimeZone === false) return undefined;\n try {\n const mod: any = await import(\"tz-lookup\");\n const lookup = mod.default ?? mod;\n return lookup(lat, lon) || undefined;\n } catch {\n return undefined;\n }\n}\n\nasync function offsetMinutesAt(parts: LocalDateTimeParts, zone: string): Promise<number> {\n const instant = await toUtcDate(parts, undefined, undefined, { timeZone: zone });\n return Math.round((utcFromParts(parts) - instant.getTime()) / MS_PER_MIN);\n}\n\n/**\n * Describe how the reference instant was obtained: IANA zone and resolved DST offset,\n * already-UTC input, historical local-mean-time choice, birthplace vs residence, unknown place.\n * `reference` is the full local date-time to resolve (use noon for untimed charts).\n */\nexport async function resolveTimeProvenance(\n input: QualifiedChartInput,\n reference: LocalDateTimeParts | null\n): Promise<TimeProvenance> {\n const placeRole = input.placeRole ?? \"unknown\";\n const placeKnown = hasPlace(input);\n const notes: string[] = [];\n if (placeRole === \"residence\") {\n notes.push(\"place is a residence: returns computed here differ from birthplace returns\");\n } else if (placeRole === \"birthplace\") {\n notes.push(\"place is the birthplace\");\n }\n if (!placeKnown) notes.push(\"no coordinates supplied: houses, angles and zone lookup unavailable\");\n\n if (!reference) {\n return {\n basis: hasExplicitZone(input.timeZoneSettings ?? {}) ? \"iana-zone\" : \"unknown-place\",\n utcOffsetMinutes: null,\n dst: null,\n alreadyUtc: false,\n localMeanTime: false,\n referenceInstantUtc: null,\n placeRole,\n placeKnown,\n notes: [...notes, \"date incomplete: no reference instant\"],\n };\n }\n\n const { instant, basis } = await resolveInstant(reference, input);\n const offsetMinutes =\n basis === \"utc-instant\"\n ? 0\n : basis === \"unknown-place\"\n ? 0\n : (utcFromParts(reference) - instant.getTime()) / MS_PER_MIN;\n\n let ianaZone: string | undefined;\n let dst: boolean | null = null;\n if (basis === \"iana-zone\" || basis === \"auto-from-coordinates\") {\n ianaZone = await lookupZone(input, reference);\n if (ianaZone) {\n const year = reference.year;\n const jan = await offsetMinutesAt({ year, month: 1, day: 1, hour: 12 }, ianaZone);\n const jul = await offsetMinutesAt({ year, month: 7, day: 1, hour: 12 }, ianaZone);\n dst = jan === jul ? false : offsetMinutes > Math.min(jan, jul);\n }\n }\n if (basis === \"utc-offset\") notes.push(\"explicit UTC offset: DST state not determinable\");\n if (basis === \"unknown-place\") notes.push(\"unknown place: wall-clock read as UTC\");\n if (basis === \"local-mean-time\") notes.push(\"local mean time = longitude / 15 hours from UT (no standard-time zone)\");\n if (basis === \"utc-instant\") notes.push(\"input already a UTC instant: no zone conversion\");\n\n return {\n basis,\n ...(ianaZone ? { ianaZone } : {}),\n utcOffsetMinutes: basis === \"unknown-place\" ? null : offsetMinutes,\n dst,\n alreadyUtc: basis === \"utc-instant\",\n localMeanTime: basis === \"local-mean-time\",\n referenceInstantUtc: instant,\n placeRole,\n placeKnown,\n notes,\n };\n}\n\n// ── Sign scanning ───────────────────────────────────────────────────────\n\nconst signIndex = (lon: number) => Math.floor(normalizeAngle(lon) / 30) % 12;\n\nfunction scanSignPath(planet: Planet, startMs: number, endMs: number) {\n const steps = 24;\n const lon = (ms: number) => calculateSinglePlanetPosition(new Date(ms), planet).longitude;\n const path: number[] = [signIndex(lon(startMs))];\n const ingresses: Array<{ from: number; to: number; atMs: number }> = [];\n let prevMs = startMs;\n let prevSign = path[0];\n for (let i = 1; i <= steps; i++) {\n const ms = startMs + ((endMs - startMs) * i) / steps;\n const sign = signIndex(lon(ms));\n if (sign !== prevSign) {\n let lo = prevMs;\n let hi = ms;\n for (let k = 0; k < 40; k++) {\n const mid = (lo + hi) / 2;\n if (signIndex(lon(mid)) === prevSign) lo = mid;\n else hi = mid;\n }\n ingresses.push({ from: prevSign, to: sign, atMs: hi });\n path.push(sign);\n }\n prevMs = ms;\n prevSign = sign;\n }\n return { path, ingresses };\n}\n\nconst toIngress = (i: { from: number; to: number; atMs: number }): SignIngress => ({\n fromSign: ZODIAC_SIGN_KEYS[i.from],\n toSign: ZODIAC_SIGN_KEYS[i.to],\n atUtc: new Date(i.atMs),\n});\n\n/** Moon sign(s) between two instants plus the first ingress (Moon never stations, so at most one per day). */\nexport function getMoonSignRange(startUtc: Date, endUtc: Date): MoonDayRange {\n const { path, ingresses } = scanSignPath(Planet.MOON, startUtc.getTime(), endUtc.getTime());\n return {\n signs: [...new Set(path)].map((s) => ZODIAC_SIGN_KEYS[s]),\n changesSign: ingresses.length > 0,\n ...(ingresses.length ? { ingress: toIngress(ingresses[0]) } : {}),\n startUtc,\n endUtc,\n interval: \"local-midnight-to-local-midnight\",\n degreesExcluded: true,\n };\n}\n\nconst SIGN_SCAN_BODIES: Array<[PointId, Planet]> = [\n [\"sun\", Planet.SUN],\n [\"mercury\", Planet.MERCURY],\n [\"venus\", Planet.VENUS],\n [\"mars\", Planet.MARS],\n [\"jupiter\", Planet.JUPITER],\n [\"saturn\", Planet.SATURN],\n [\"uranus\", Planet.URANUS],\n [\"neptune\", Planet.NEPTUNE],\n [\"pluto\", Planet.PLUTO],\n [\"mean-node\", Planet.MEAN_NODE],\n [\"true-node\", Planet.TRUE_NODE],\n [\"mean-lilith\", Planet.LILITH_MEAN],\n [\"true-lilith\", Planet.LILITH_TRUE],\n [\"chiron\", Planet.CHIRON],\n];\n\n/** Bodies other than the Moon that change sign between two instants (south nodes mirror their north node). */\nexport function getSignChangesBetween(startUtc: Date, endUtc: Date): BodySignChange[] {\n const out: BodySignChange[] = [];\n for (const [id, planet] of SIGN_SCAN_BODIES) {\n const { path, ingresses } = scanSignPath(planet, startUtc.getTime(), endUtc.getTime());\n if (ingresses.length === 0) continue;\n out.push({\n id,\n signs: [...new Set(path)].map((s) => ZODIAC_SIGN_KEYS[s]),\n ingresses: ingresses.map(toIngress),\n });\n const south: PointId | null = id === \"mean-node\" ? \"south-node-mean\" : id === \"true-node\" ? \"south-node-true\" : null;\n if (south) {\n const shift = (s: number) => (s + 6) % 12;\n out.push({\n id: south,\n signs: [...new Set(path)].map((s) => ZODIAC_SIGN_KEYS[shift(s)]),\n ingresses: ingresses.map((i) => toIngress({ from: shift(i.from), to: shift(i.to), atMs: i.atMs })),\n });\n }\n }\n return out;\n}\n\n// ── Analysis selection ──────────────────────────────────────────────────\n\n/** Apply include/exclude/classes and the rectified-angle selector to a point list. */\nexport function selectAnalysisPoints(points: readonly ChartPoint[], selection: AnalysisSelection = {}): ChartPoint[] {\n const include = selection.include ? new Set<PointId>(selection.include) : null;\n const exclude = selection.exclude ? new Set<PointId>(selection.exclude) : null;\n const classes = selection.classes ? new Set<PointClass>(selection.classes) : null;\n return points.filter(\n (p) =>\n (!include || include.has(p.id)) &&\n (!exclude || !exclude.has(p.id)) &&\n (!classes || classes.has(p.kind)) &&\n !(selection.excludeRectifiedAngles && p.kind === \"angle\" && p.flags.rectified)\n );\n}\n\n// ── Main entry ──────────────────────────────────────────────────────────\n\nconst UNTIMED_TECHNIQUES = [\n \"profections\",\n \"sect-based-firdaria\",\n \"exact-returns\",\n \"progressed-angles\",\n \"house-overlays\",\n \"dashas-from-moon\",\n];\n\n/**\n * Quality-aware chart. Opt-in; does not change `getBirthChart`.\n * Throws `InputQualityError` for an unknown quality, an incomplete date where a full date is\n * required, a missing time (recorded/rectified given `LocalDateTimeParts` without `hour`) or\n * missing coordinates (recorded/rectified).\n */\nexport async function getQualifiedChart(input: QualifiedChartInput): Promise<QualifiedChart> {\n const { quality } = input;\n if (![\"recorded\", \"rectified\", \"untimed\", \"partial\"].includes(quality)) {\n throw new InputQualityError(\"INVALID_QUALITY\", `Unknown input quality \"${String(quality)}\"`);\n }\n\n if (quality === \"partial\") {\n const provenance = await resolveTimeProvenance(input, null);\n const known = Object.entries((input.date ?? {}) as PartialDateParts)\n .filter(([, v]) => v !== undefined)\n .map(([k]) => k);\n return {\n quality,\n status: \"unavailable\",\n chart: null,\n points: [],\n analysisPoints: [],\n unavailable: [\n {\n item: \"chart\",\n reason: \"date-incomplete\",\n message: `partial date (known: ${known.join(\", \") || \"none\"}): no chart is invented`,\n },\n ],\n provenance,\n };\n }\n\n if (!hasFullDate(input.date)) {\n throw new InputQualityError(\"INCOMPLETE_DATE\", `quality \"${quality}\" requires a full year, month and day`);\n }\n const full = partsOf(input.date);\n if (\n full.month < 1 ||\n full.month > 12 ||\n full.day < 1 ||\n full.day > 31 ||\n new Date(utcFromParts({ ...full, hour: 12 })).getUTCDate() !== full.day\n ) {\n throw new InputQualityError(\"INVALID_DATE\", \"Invalid calendar date\");\n }\n\n if (quality === \"untimed\") return untimedChart(input, full);\n\n // recorded / rectified\n if (!(input.date instanceof Date) && (input.date as LocalDateTimeParts).hour === undefined) {\n throw new InputQualityError(\"MISSING_TIME\", `quality \"${quality}\" requires an explicit hour`);\n }\n if (!hasPlace(input)) {\n throw new InputQualityError(\"MISSING_LOCATION\", `quality \"${quality}\" requires latitude and longitude`);\n }\n const provenance = await resolveTimeProvenance(input, full);\n const computeChart =\n input.computeChart ?? (async (options: BirthChartOptions) => (await import(\"./index\")).getBirthChart(options));\n const chart = await computeChart({\n date: provenance.referenceInstantUtc as Date,\n latitude: input.latitude as number,\n longitude: input.longitude as number,\n houseSystem: input.houseSystem,\n timeZoneSettings: { treatAsUTC: true },\n });\n const rectified = quality === \"rectified\";\n const points = getChartPoints(chart).map((p) => {\n if (rectified && p.flags.timeDependent) p.flags.rectified = true;\n return p;\n });\n const analysisPoints = selectAnalysisPoints(points, input.analysis);\n const unavailable: UnavailableItem[] = [];\n if (rectified && input.analysis?.excludeRectifiedAngles) {\n unavailable.push({\n item: \"rectified-angles\",\n reason: \"excluded-by-selector\",\n message: \"angles come from a rectified birth time and were excluded from the analysis set\",\n pointIds: ANGLE_IDS,\n });\n }\n return { quality, status: \"complete\", chart, points, analysisPoints, unavailable, provenance };\n}\n\nasync function untimedChart(input: QualifiedChartInput, full: LocalDateTimeParts): Promise<QualifiedChart> {\n const day = { year: full.year, month: full.month, day: full.day };\n const next = addCivilDays(day, 1);\n const noonParts = { ...day, hour: 12 };\n const provenance = await resolveTimeProvenance(input, noonParts);\n const noon = provenance.referenceInstantUtc as Date;\n const start = (await resolveInstant({ ...day, hour: 0 }, input)).instant;\n const end = (await resolveInstant({ ...next, hour: 0 }, input)).instant;\n\n const positions = await calculatePlanetaryPositions(noon);\n const points = chartPointsFromPlanetPositions(positions as unknown as Record<number, any>).map((p) => {\n p.flags.placeholder = true;\n return p;\n });\n const analysisPoints = selectAnalysisPoints(\n points.filter((p) => !p.flags.timeDependent),\n input.analysis\n );\n\n const reason: ChartUnavailableReason = \"birth-time-unknown\";\n const unavailable: UnavailableItem[] = [\n {\n item: \"moon-degree\",\n reason,\n message: \"Moon moves about 13 degrees per day; only the whole-day sign range is given\",\n pointIds: [\"moon\"],\n },\n { item: \"angles\", reason, message: \"angles need the birth time\", pointIds: ANGLE_IDS },\n { item: \"houses\", reason, message: \"house cusps need the birth time\" },\n { item: \"lots\", reason, message: \"lots use the Ascendant and Moon\", pointIds: [\"lot-fortune\", \"lot-spirit\"] },\n { item: \"sect\", reason, message: \"sect needs the Sun's altitude at the birth time\" },\n {\n item: \"time-dependent-techniques\",\n reason,\n message: \"techniques that read angles, houses, Moon degree or sect are not run\",\n techniques: UNTIMED_TECHNIQUES,\n },\n ];\n\n return {\n quality: \"untimed\",\n status: \"limited\",\n chart: null,\n points,\n analysisPoints,\n unavailable,\n moonDayRange: getMoonSignRange(start, end),\n signChanges: getSignChangesBetween(start, end),\n provenance,\n };\n}\n","/**\n * Several house systems from ONE ephemeris calculation.\n *\n * Planetary positions, sect and the Lots of Fortune/Spirit do not depend on the house\n * system (sect comes from the Sun's altitude at the place; Fortune/Spirit use the Ascendant,\n * which Swiss returns identically for every system), so they are computed once. Only the\n * cusps, the descendant/IC and each point's house placement are produced per system.\n */\n\nimport { computeLots, type LotsResult } from \"./lots\";\nimport { findHouseOf } from \"./index\";\nimport {\n type ChartPoint,\n chartPointsFromPlanetPositions,\n type PointId,\n POINT_DEFINITIONS,\n} from \"./points\";\nimport { computeSect, type SectResult } from \"./sect\";\nimport {\n calculateBodyAtJulianDay,\n calculateHousesAtJulianDay,\n CalcFlag,\n type HouseSystem,\n type LocalDateTimeParts,\n normalizeAngle,\n Planet,\n type PlanetPosition,\n type TimeZoneOptions,\n toUtcDate,\n} from \"./swisseph\";\n\nexport interface HousesForSystemsDateInput {\n /** Local civil time (interpreted via `timeZoneSettings`) or a UTC instant with `treatAsUTC`. */\n date: Date | LocalDateTimeParts;\n latitude: number;\n longitude: number;\n timeZoneSettings?: TimeZoneOptions;\n}\n\nexport interface HousesForSystemsJulianInput {\n julianDayUt: number;\n latitude: number;\n longitude: number;\n}\n\nexport type HousesForSystemsInput = HousesForSystemsDateInput | HousesForSystemsJulianInput;\n\nexport interface SystemHouses {\n system: HouseSystem;\n /** 12 cusp longitudes, house 1 first, normalised to [0, 360). */\n cusps: number[];\n ascendant: number;\n mc: number;\n descendant: number;\n ic: number;\n vertex?: number;\n /** House number (1-12) of each point under THIS system (planets, nodes, Lilith, Chiron, lots). */\n placements: Partial<Record<PointId, number>>;\n}\n\nexport interface HouseSystemFailure {\n system: HouseSystem;\n message: string;\n}\n\nexport interface HousesForSystemsResult {\n julianDayUt: number;\n dateUtc: Date;\n latitude: number;\n longitude: number;\n /** Positions computed once (shared by every system). */\n points: ChartPoint[];\n /** House-system independent. */\n sect: SectResult;\n lots: LotsResult;\n systems: Partial<Record<HouseSystem, SystemHouses>>;\n /** Systems Swiss could not compute (for example Placidus/Koch at polar latitudes). */\n failures: HouseSystemFailure[];\n method: {\n ephemerisCalculations: \"planets and sect computed once; houses computed once per system\";\n flags: number;\n };\n}\n\nconst JD_UNIX_EPOCH = 2440587.5;\nconst MS_PER_DAY = 86_400_000;\nconst FLAGS = CalcFlag.SWISS_EPH | CalcFlag.SPEED;\n\nconst PLANET_ENUMS: Planet[] = [\n Planet.SUN,\n Planet.MOON,\n Planet.MERCURY,\n Planet.VENUS,\n Planet.MARS,\n Planet.JUPITER,\n Planet.SATURN,\n Planet.URANUS,\n Planet.NEPTUNE,\n Planet.PLUTO,\n Planet.MEAN_NODE,\n Planet.TRUE_NODE,\n Planet.LILITH_MEAN,\n Planet.LILITH_TRUE,\n Planet.CHIRON,\n];\n\nfunction isJulianInput(input: HousesForSystemsInput): input is HousesForSystemsJulianInput {\n return typeof (input as HousesForSystemsJulianInput).julianDayUt === \"number\";\n}\n\n/**\n * Compute `systems` (deduplicated, order preserved) for one moment and place.\n * Throws if `systems` is empty. A system Swiss cannot compute is reported in `failures`\n * instead of aborting the others.\n */\nexport async function getHousesForSystems(\n input: HousesForSystemsInput,\n systems: readonly HouseSystem[]\n): Promise<HousesForSystemsResult> {\n if (!Array.isArray(systems) || systems.length === 0) {\n throw new Error(\"getHousesForSystems requires at least one house system\");\n }\n const { latitude, longitude } = input;\n\n let julianDayUt: number;\n let dateUtc: Date;\n if (isJulianInput(input)) {\n julianDayUt = input.julianDayUt;\n dateUtc = new Date((julianDayUt - JD_UNIX_EPOCH) * MS_PER_DAY);\n } else {\n dateUtc = await toUtcDate(input.date, latitude, longitude, input.timeZoneSettings ?? { autoTimeZone: true });\n julianDayUt = dateUtc.getTime() / MS_PER_DAY + JD_UNIX_EPOCH;\n }\n\n const positions: Partial<Record<number, PlanetPosition>> = {};\n for (const p of PLANET_ENUMS) positions[p] = calculateBodyAtJulianDay(julianDayUt, p, FLAGS);\n const planetPoints = chartPointsFromPlanetPositions(positions);\n const sun = positions[Planet.SUN] as PlanetPosition;\n const moon = positions[Planet.MOON] as PlanetPosition;\n const sect = computeSect(dateUtc, latitude, longitude, sun);\n\n const uniqueSystems = [...new Set(systems)];\n const raw: Array<{ system: HouseSystem; houses: ReturnType<typeof calculateHousesAtJulianDay> }> = [];\n const failures: HouseSystemFailure[] = [];\n for (const system of uniqueSystems) {\n try {\n raw.push({ system, houses: calculateHousesAtJulianDay(julianDayUt, latitude, longitude, system) });\n } catch (error) {\n failures.push({ system, message: error instanceof Error ? error.message : String(error) });\n }\n }\n if (raw.length === 0) {\n throw new Error(`No house system could be computed: ${failures.map((f) => `${f.system}: ${f.message}`).join(\"; \")}`);\n }\n\n // The Ascendant is the same for every house system; take it from the first one that worked.\n const asc = normalizeAngle(raw[0].houses.ascendant);\n const lots = computeLots(asc, sun.longitude, moon.longitude, sect.sect);\n const lotPoints: ChartPoint[] = ([\"lot-fortune\", \"lot-spirit\"] as const).map((id) => {\n const def = POINT_DEFINITIONS[id];\n return {\n id,\n kind: def.kind,\n longitude: id === \"lot-fortune\" ? lots.fortune : lots.spirit,\n speed: null,\n legacyKey: def.legacyKey,\n legacySource: def.legacySource,\n flags: { derived: true, timeDependent: true },\n };\n });\n const points = [...planetPoints, ...lotPoints];\n\n const bySystem: Partial<Record<HouseSystem, SystemHouses>> = {};\n for (const { system, houses } of raw) {\n const cusps = houses.houses.slice(1, 13).map(normalizeAngle);\n const placements: Partial<Record<PointId, number>> = {};\n for (const p of points) placements[p.id] = findHouseOf(p.longitude, cusps);\n bySystem[system] = {\n system,\n cusps,\n ascendant: normalizeAngle(houses.ascendant),\n mc: normalizeAngle(houses.mc),\n descendant: normalizeAngle(houses.ascendant + 180),\n ic: normalizeAngle(houses.mc + 180),\n vertex: houses.ascmc ? normalizeAngle(houses.ascmc.vertex) : undefined,\n placements,\n };\n }\n\n return {\n julianDayUt,\n dateUtc,\n latitude,\n longitude,\n points,\n sect,\n lots,\n systems: bySystem,\n failures,\n method: {\n ephemerisCalculations: \"planets and sect computed once; houses computed once per system\",\n flags: FLAGS,\n },\n };\n}\n","/**\n * Both-direction house overlays and aspect-point extraction for derived charts.\n *\n * Pure math (no ephemeris access).\n *\n * Overlay convention: the house of a longitude is `findHouseOf(longitude, cusps)`,\n * i.e. the house whose cusp interval [cusp_i, cusp_i+1) contains it; a point on\n * a cusp belongs to the house that starts there. A chart without a complete set\n * of 12 cusps (untimed/partial) cannot receive overlays: that direction is\n * reported with `available: false` and a reason, never guessed.\n */\n\nimport { findHouseOf, type BirthChart, type CompositeChart, type CompositeChartSummary } from \"./index\";\nimport type { HouseSystem } from \"./swisseph\";\nimport type { TransitAspectPoint } from \"./aspects\";\n\n/** Structural view of a chart for overlays: bodies plus (optional) house cusps. */\nexport interface OverlayChartLike {\n planets: Record<string, { longitude: number }>;\n houses?: {\n ascendant?: { longitude: number };\n mc?: { longitude: number };\n dc?: { longitude: number };\n ic?: { longitude: number };\n houses?: { longitude: number }[];\n } | null;\n houseSystem?: HouseSystem;\n}\n\nexport interface HouseOverlayPlacement {\n point: string;\n longitude: number;\n /** House (1-12) of the receiving chart. */\n house: number;\n}\n\nexport interface HouseOverlayDirection {\n /** Chart whose points are placed. */\n from: \"A\" | \"B\";\n /** Chart whose houses receive them. */\n into: \"A\" | \"B\";\n available: boolean;\n /** Present when `available` is false. */\n reason?: string;\n /** Cusps of the receiving chart that were used. */\n cusps?: number[];\n houseSystem?: HouseSystem | null;\n houseSystemSource?: \"chart\" | \"option\" | \"unknown\";\n placements: HouseOverlayPlacement[];\n}\n\nexport interface HouseOverlays {\n aInB: HouseOverlayDirection;\n bInA: HouseOverlayDirection;\n method: {\n rule: string;\n points: string;\n angles: boolean;\n };\n}\n\nexport interface HouseOverlayOptions {\n /** Point keys to place (default: every key of `planets`, then angles if `includeAngles`). */\n points?: string[];\n /** Also place ascendant/mc/descendant/ic of the sending chart (default true). */\n includeAngles?: boolean;\n /** Used only when the chart does not record `houseSystem`. */\n houseSystemA?: HouseSystem;\n houseSystemB?: HouseSystem;\n}\n\nconst ANGLE_KEYS: [string, \"ascendant\" | \"mc\" | \"dc\" | \"ic\"][] = [\n [\"ascendant\", \"ascendant\"],\n [\"mc\", \"mc\"],\n [\"descendant\", \"dc\"],\n [\"ic\", \"ic\"],\n];\n\nfunction sendingPoints(\n chart: OverlayChartLike,\n options: HouseOverlayOptions\n): Record<string, number> {\n const all: Record<string, number> = {};\n for (const [k, p] of Object.entries(chart.planets)) all[k] = p.longitude;\n if (options.includeAngles !== false && chart.houses) {\n for (const [key, field] of ANGLE_KEYS) {\n const a = chart.houses[field];\n if (a) all[key] = a.longitude;\n }\n }\n if (!options.points) return all;\n const picked: Record<string, number> = {};\n for (const name of options.points) {\n const key = name.toLowerCase();\n if (key in all) picked[key] = all[key];\n }\n return picked;\n}\n\nfunction overlayDirection(\n from: \"A\" | \"B\",\n sender: OverlayChartLike,\n receiver: OverlayChartLike,\n receiverHouseSystemOption: HouseSystem | undefined,\n options: HouseOverlayOptions\n): HouseOverlayDirection {\n const into = from === \"A\" ? \"B\" : \"A\";\n const cuspObjs = receiver.houses?.houses;\n const system = receiver.houseSystem ?? receiverHouseSystemOption ?? null;\n const source = receiver.houseSystem !== undefined ? \"chart\" : receiverHouseSystemOption !== undefined ? \"option\" : \"unknown\";\n if (!cuspObjs || cuspObjs.length !== 12 || cuspObjs.some((c) => !Number.isFinite(c.longitude))) {\n return {\n from,\n into,\n available: false,\n reason: `chart ${into} has no complete set of 12 house cusps (untimed or partial)`,\n houseSystem: system,\n houseSystemSource: source,\n placements: [],\n };\n }\n const cusps = cuspObjs.map((c) => c.longitude);\n const placements = Object.entries(sendingPoints(sender, options)).map(([point, longitude]) => ({\n point,\n longitude,\n house: findHouseOf(longitude, cusps),\n }));\n return { from, into, available: true, cusps, houseSystem: system, houseSystemSource: source, placements };\n}\n\n/**\n * House overlays in both directions: A's points in B's houses and B's points in A's houses.\n * The house system of each receiving chart is noted (`BirthChart.houseSystem`, else the option, else null).\n */\nexport function getHouseOverlays(\n chartA: OverlayChartLike,\n chartB: OverlayChartLike,\n options: HouseOverlayOptions = {}\n): HouseOverlays {\n return {\n aInB: overlayDirection(\"A\", chartA, chartB, options.houseSystemB, options),\n bInA: overlayDirection(\"B\", chartB, chartA, options.houseSystemA, options),\n method: {\n rule: \"house = findHouseOf(longitude, receiving cusps): [cusp_i, cusp_i+1) contains the point; a point on a cusp is in the house starting there\",\n points: options.points ? `selected: ${options.points.join(\", \")}` : \"all bodies of the sending chart\",\n angles: options.includeAngles !== false,\n },\n };\n}\n\n/**\n * Aspect-ready point record (`{ longitude, longitudeSpeed? }`) of any chart-like\n * source: a `BirthChart` (natal, Davison, progressed, solar return), a composite\n * result, or a bare `planets` record. Angles `ascendant` and `mc` (plus\n * `descendant`, `ic` with `includeAllAngles`) are included. The result is accepted by\n * `computeAspects`, `computeSynastryAspects` and `computeTransitAspects`.\n */\nexport function derivedChartAspectPoints(\n source: BirthChart | CompositeChart | CompositeChartSummary | { planets: Record<string, { longitude: number; longitudeSpeed?: number }> },\n options: { includeAngles?: boolean; includeAllAngles?: boolean } = {}\n): Record<string, TransitAspectPoint> {\n const out: Record<string, TransitAspectPoint> = {};\n const includeAngles = options.includeAngles !== false;\n if (\"compositePlanets\" in source) {\n for (const [k, p] of Object.entries(source.compositePlanets)) out[k] = { longitude: p.longitude };\n if (includeAngles) {\n out.ascendant = { longitude: source.compositeAngles.ascendant.longitude };\n out.mc = { longitude: source.compositeAngles.mc.longitude };\n if (options.includeAllAngles) {\n out.descendant = { longitude: source.compositeAngles.descendant.longitude };\n out.ic = { longitude: source.compositeAngles.ic.longitude };\n }\n }\n return out;\n }\n for (const [k, p] of Object.entries(source.planets)) {\n out[k] = { longitude: p.longitude, longitudeSpeed: p.longitudeSpeed };\n }\n if (includeAngles && \"houses\" in source && source.houses) {\n out.ascendant = { longitude: source.houses.ascendant.longitude };\n out.mc = { longitude: source.houses.mc.longitude };\n if (options.includeAllAngles) {\n out.descendant = { longitude: source.houses.dc.longitude };\n out.ic = { longitude: source.houses.ic.longitude };\n }\n }\n return out;\n}\n","/**\n * Secondary progressions, solar-arc directions and a chart-at-Julian-Day builder.\n *\n * Synchronous; require an initialised Swiss Ephemeris. All instants are UTC; the\n * time coordinate is the UT Julian Day, passed to the ephemeris WITHOUT\n * millisecond loss (unlike `getJulianDay(date)`).\n *\n * Conventions (every one is echoed in the result `method`):\n *\n * - Secondary progression (\"a day for a year\"): progressed JD = natal JD + age,\n * age = (target JD - natal JD) / year length, in \"years\". The year length is\n * explicit: `\"julian\"` 365.25 d (default, the family reference),\n * `\"tropical\"` 365.2422 d, a number of days, or `\"solar-return\"` (actual\n * years: completed solar returns + the fraction through the current\n * return-to-return interval).\n * - Progressed angles are NOT a single convention. All of these are returned:\n * `quotidian` (houses/angles computed at the progressed JD for the natal\n * place; the family reference convention; the progressed chart's `houses`),\n * `solar-arc` (natal angles + the true solar arc) and `naibod` (natal RAMC +\n * 0.985647 deg per year of age; MC/ASC derived with the natal-date true\n * obliquity and the natal latitude, angles only, no cusps).\n * - Solar arc (true): arc = progressed Sun - natal Sun, forward-normalised to\n * [0, 360), added to every target. Targets are explicit (`targetSet`). A\n * Naibod mean arc (0.985647 deg/yr x age) is an option.\n *\n * Passing derived charts to aspect functions: `result.points` (and\n * `derivedChartAspectPoints` for any chart) is a `Record<string, {longitude,\n * longitudeSpeed?}>`, accepted directly by `computeAspects`,\n * `computeSynastryAspects(natalPoints, progressed.points)` and\n * `computeTransitAspects`.\n */\n\nimport { julianDayToDate } from \"./jyotish/dasha\";\nimport {\n calcParsFortunae,\n calculateBodyAtJulianDay,\n calculateHousesAtJulianDay,\n CalcFlag,\n HouseSystem,\n normalizeAngle,\n Planet,\n PLANET_AND_NODE_NAMES,\n SWISS_ECL_NUT,\n VirtualNodes,\n} from \"./swisseph\";\nimport type { PlanetPosition } from \"./swisseph\";\nimport {\n getZodiacPosition,\n planHouseSystemFallback,\n type HouseSystemFallback,\n type HouseSystemSubstitution,\n type BirthChart,\n type ComputedBirthChart,\n type HydratedNode,\n type HydratedPlanet,\n type ZodiacPosition,\n} from \"./index\";\nimport { computeAspects, type TransitAspectPoint } from \"./aspects\";\nimport { computeLots } from \"./lots\";\nimport { computeMoonPhase } from \"./moon-phase\";\nimport { computeSect } from \"./sect\";\nimport { dateToJd } from \"./root-solver\";\nimport { findSolarReturns } from \"./returns\";\n\nconst MS_PER_DAY = 86_400_000;\nconst UNIX_EPOCH_JD = 2440587.5;\nconst EPH_FLAGS = CalcFlag.SWISS_EPH | CalcFlag.SPEED;\n\nexport const JULIAN_YEAR_DAYS = 365.25;\nexport const TROPICAL_YEAR_DAYS = 365.2422;\n/** Naibod rate: 59'08.33\" of arc per year (mean solar motion), in degrees. */\nexport const NAIBOD_RATE_DEGREES_PER_YEAR = 59 / 60 + 8.33 / 3600;\n/** Hard cap on the age (years) accepted by the progression functions. */\nexport const MAX_PROGRESSION_AGE_YEARS = 200;\n\nexport type DerivedChartErrorCode =\n | \"INVALID_INPUT\"\n | \"TARGET_BEFORE_BIRTH\"\n | \"AGE_LIMIT_EXCEEDED\"\n | \"SOLAR_RETURN_NOT_FOUND\"\n | \"ANGLE_UNAVAILABLE\";\n\n/** Typed error of the derived-chart functions (Davison, progressions). */\nexport class DerivedChartError extends Error {\n readonly code: DerivedChartErrorCode;\n constructor(code: DerivedChartErrorCode, message: string) {\n super(message);\n this.name = \"DerivedChartError\";\n this.code = code;\n }\n}\n\n\n// ── Chart at an explicit Julian Day ────────────────────────────────────────\n\nexport interface ChartAtJulianDayOptions {\n /** UT Julian Day (full sub-second precision is kept). */\n julianDayUt: number;\n latitude: number;\n longitude: number;\n houseSystem?: HouseSystem;\n /** Opt-in recorded substitute when the house system is unavailable at this latitude (see `BirthChartOptions`). */\n houseSystemFallback?: HouseSystemFallback;\n}\n\nconst CHART_BODY_IDS: Planet[] = [\n Planet.SUN,\n Planet.MOON,\n Planet.MERCURY,\n Planet.VENUS,\n Planet.MARS,\n Planet.JUPITER,\n Planet.SATURN,\n Planet.URANUS,\n Planet.NEPTUNE,\n Planet.PLUTO,\n Planet.MEAN_NODE,\n Planet.TRUE_NODE,\n Planet.LILITH_MEAN,\n Planet.LILITH_TRUE,\n Planet.CHIRON,\n];\n\n/**\n * Full chart (same shape and fields as `getBirthChart`) cast for an exact UT Julian\n * Day and place, with no time-zone handling and no millisecond truncation. At a\n * whole-second instant it equals `getBirthChart({ date, timeZoneSettings: { treatAsUTC: true } })`.\n * `dateUtc` is the Julian Day rounded to the millisecond.\n */\nexport function getChartAtJulianDay(options: ChartAtJulianDayOptions): ComputedBirthChart {\n const { julianDayUt: jd, latitude, longitude } = options;\n if (![jd, latitude, longitude].every(Number.isFinite)) {\n throw new DerivedChartError(\"INVALID_INPUT\", \"julianDayUt, latitude and longitude must be finite numbers\");\n }\n const requestedHouseSystem = options.houseSystem || HouseSystem.PLACIDUS;\n let houseSystem = requestedHouseSystem;\n let houseSystemSubstitution: HouseSystemSubstitution | undefined;\n const dateUtc = julianDayToDate(jd);\n\n let housesPositions;\n try {\n housesPositions = calculateHousesAtJulianDay(jd, latitude, longitude, requestedHouseSystem);\n } catch (error) {\n houseSystemSubstitution = planHouseSystemFallback(requestedHouseSystem, options.houseSystemFallback, latitude, error);\n if (!houseSystemSubstitution) throw error;\n houseSystem = houseSystemSubstitution.used;\n housesPositions = calculateHousesAtJulianDay(jd, latitude, longitude, houseSystem);\n }\n const houseCusps = housesPositions.houses.slice(1, 13).map(normalizeAngle);\n\n const planets: Record<string, HydratedPlanet> = {};\n for (const id of [...CHART_BODY_IDS].sort((a, b) => a - b)) {\n const position: PlanetPosition = calculateBodyAtJulianDay(jd, id, EPH_FLAGS);\n const hydrated: HydratedPlanet = {\n ...position,\n id,\n name: PLANET_AND_NODE_NAMES[id],\n zodiacPosition: getZodiacPosition(position.longitude, houseCusps),\n };\n planets[hydrated.name.toLocaleLowerCase()] = hydrated;\n }\n\n const houseCuspsPositions = houseCusps.map((lon) => getZodiacPosition(lon, houseCusps));\n const descendant = normalizeAngle(housesPositions.ascendant + 180);\n const imumCoeli = normalizeAngle(housesPositions.mc + 180);\n const asc = getZodiacPosition(housesPositions.ascendant, houseCusps);\n const mc = getZodiacPosition(housesPositions.mc, houseCusps);\n const ascmc = housesPositions.ascmc;\n const houses: BirthChart[\"houses\"] = {\n ascendant: asc,\n mc,\n dc: getZodiacPosition(descendant, houseCusps),\n ic: getZodiacPosition(imumCoeli, houseCusps),\n houses: houseCuspsPositions,\n ascmc: {\n armc: ascmc ? getZodiacPosition(ascmc.armc, houseCusps) : undefined,\n vertex: ascmc ? getZodiacPosition(ascmc.vertex, houseCusps) : undefined,\n equasc: ascmc ? getZodiacPosition(ascmc.equasc, houseCusps) : undefined,\n coasc1: ascmc ? getZodiacPosition(ascmc.coasc1, houseCusps) : undefined,\n coasc2: ascmc ? getZodiacPosition(ascmc.coasc2, houseCusps) : undefined,\n polasc: ascmc ? getZodiacPosition(ascmc.polasc, houseCusps) : undefined,\n },\n };\n\n const sectDetails = computeSect(dateUtc, latitude, longitude, planets.sun);\n const sect = sectDetails.sect;\n const lotsResult = computeLots(asc.longitude, planets.sun.longitude, planets.moon.longitude, sect);\n const lots = {\n ...lotsResult,\n fortunePosition: getZodiacPosition(lotsResult.fortune, houseCusps),\n spiritPosition: getZodiacPosition(lotsResult.spirit, houseCusps),\n };\n const moonPhase = computeMoonPhase(planets.sun.longitude, planets.moon.longitude);\n const wheelOfFortune = getZodiacPosition(\n calcParsFortunae(asc.longitude, planets.sun.longitude, planets.moon.longitude, sect === \"diurnal\"),\n houseCusps\n );\n const nodes: Record<string, HydratedNode> = {\n [VirtualNodes.PARS_FORTUNAE]: {\n ...wheelOfFortune,\n id: VirtualNodes.PARS_FORTUNAE,\n name: PLANET_AND_NODE_NAMES[VirtualNodes.PARS_FORTUNAE],\n },\n };\n const aspects = computeAspects({\n ...planets,\n ascendant: { longitude: asc.longitude },\n mc: { longitude: mc.longitude },\n });\n\n return { dateUtc, houseSystem, ...(houseSystemSubstitution ? { houseSystemSubstitution } : {}), planets, houses, nodes, aspects, sect, sectDetails, lots, moonPhase };\n}\n\n// ── Time key ───────────────────────────────────────────────────────────────\n\nexport type YearLengthSpec = number | \"julian\" | \"tropical\" | \"solar-return\";\n\nexport interface ProgressionTimeKey {\n /** What the progressed JD is: natal JD + `ageYears` (one ephemeris day per year of life). */\n rule: \"progressed JD = natal JD + age in years (a day for a year)\";\n yearLength: { spec: string; days: number | null };\n natalJd: number;\n targetJd: number;\n ageYears: number;\n progressedJd: number;\n}\n\nfunction resolveTimeKey(\n natalJd: number,\n targetJd: number,\n yearLength: YearLengthSpec | undefined,\n natalSunLongitude: number\n): ProgressionTimeKey {\n if (!Number.isFinite(natalJd) || !Number.isFinite(targetJd)) {\n throw new DerivedChartError(\"INVALID_INPUT\", \"natal and target instants must be valid dates\");\n }\n if (targetJd < natalJd) {\n throw new DerivedChartError(\"TARGET_BEFORE_BIRTH\", \"target is before the natal instant\");\n }\n const spec = yearLength ?? \"julian\";\n let ageYears: number;\n let days: number | null;\n let specLabel: string;\n if (spec === \"solar-return\") {\n specLabel = \"solar-return (actual years: completed solar returns + fraction of the current interval)\";\n days = null;\n // Natal instant counts as return 0; returns are searched through target + 400 days.\n const from = julianDayToDate(natalJd + 10);\n const to = julianDayToDate(targetJd + 400);\n const found = findSolarReturns({ natalLongitude: natalSunLongitude, from, to });\n const instants = [natalJd, ...found.crossings.map((c) => c.jd)].sort((a, b) => a - b);\n let k = -1;\n for (let i = 0; i + 1 < instants.length; i++) {\n if (targetJd >= instants[i] && targetJd < instants[i + 1]) {\n k = i;\n break;\n }\n }\n if (k < 0) {\n throw new DerivedChartError(\n \"SOLAR_RETURN_NOT_FOUND\",\n \"could not bracket the target between two solar returns\"\n );\n }\n ageYears = k + (targetJd - instants[k]) / (instants[k + 1] - instants[k]);\n } else {\n if (spec === \"julian\") {\n days = JULIAN_YEAR_DAYS;\n specLabel = \"julian (365.25 days)\";\n } else if (spec === \"tropical\") {\n days = TROPICAL_YEAR_DAYS;\n specLabel = \"tropical (365.2422 days)\";\n } else if (typeof spec === \"number\" && Number.isFinite(spec) && spec > 0) {\n days = spec;\n specLabel = `custom (${spec} days)`;\n } else {\n throw new DerivedChartError(\"INVALID_INPUT\", \"yearLength must be a positive number, 'julian', 'tropical' or 'solar-return'\");\n }\n ageYears = (targetJd - natalJd) / days;\n }\n if (ageYears > MAX_PROGRESSION_AGE_YEARS) {\n throw new DerivedChartError(\"AGE_LIMIT_EXCEEDED\", `age ${ageYears.toFixed(1)} exceeds ${MAX_PROGRESSION_AGE_YEARS} years`);\n }\n return {\n rule: \"progressed JD = natal JD + age in years (a day for a year)\",\n yearLength: { spec: specLabel, days },\n natalJd,\n targetJd,\n ageYears,\n progressedJd: natalJd + ageYears,\n };\n}\n\n// ── Shared inputs ──────────────────────────────────────────────────────────\n\nexport interface ProgressionOptions {\n /** Natal chart (from `getBirthChart`); only its planets, angles, house system and `dateUtc` are used. */\n natalChart: BirthChart;\n /** Natal place: a `BirthChart` does not store it, and quotidian/Naibod angles need it. */\n natalLatitude: number;\n natalLongitude: number;\n /** Absolute UTC instant the progression is computed for. */\n target: Date;\n /** Year-length convention of the time key (default \"julian\" = 365.25 days, the reference). */\n yearLength?: YearLengthSpec;\n /** House system of the quotidian progressed chart (default: the natal chart's recorded system, else Placidus). */\n houseSystem?: HouseSystem;\n}\n\nfunction pointsOf(\n planets: Record<string, { longitude: number; longitudeSpeed?: number }>,\n angles: { ascendant: number; mc: number; descendant: number; ic: number }\n): Record<string, TransitAspectPoint> {\n const out: Record<string, TransitAspectPoint> = {};\n for (const [k, p] of Object.entries(planets)) out[k] = { longitude: p.longitude, longitudeSpeed: p.longitudeSpeed };\n out.ascendant = { longitude: angles.ascendant };\n out.mc = { longitude: angles.mc };\n out.descendant = { longitude: angles.descendant };\n out.ic = { longitude: angles.ic };\n return out;\n}\n\nexport interface ProgressedAngles {\n convention: ProgressedAngleConvention;\n ascendant: number;\n mc: number;\n descendant: number;\n ic: number;\n /** 12 cusps when the convention provides them (quotidian, solar-arc); undefined for naibod. */\n cusps?: number[];\n}\n\nexport type ProgressedAngleConvention = \"quotidian\" | \"solar-arc\" | \"naibod\";\n\nexport const PROGRESSED_ANGLE_CONVENTIONS: ProgressedAngleConvention[] = [\"quotidian\", \"solar-arc\", \"naibod\"];\n\nfunction trueObliquity(jd: number): number {\n return calculateBodyAtJulianDay(jd, SWISS_ECL_NUT, EPH_FLAGS).longitude;\n}\n\nconst RAD = Math.PI / 180;\n\n/** Ecliptic MC and ASC from the right ascension of the MC (ARMC), obliquity and latitude (degrees). */\nexport function anglesFromArmc(\n armc: number,\n obliquity: number,\n latitude: number\n): { mc: number; ascendant: number } {\n const th = armc * RAD;\n const eps = obliquity * RAD;\n const mc = normalizeAngle(Math.atan2(Math.sin(th), Math.cos(th) * Math.cos(eps)) / RAD);\n const ascendant = normalizeAngle(\n Math.atan2(Math.cos(th), -(Math.sin(th) * Math.cos(eps) + Math.tan(latitude * RAD) * Math.sin(eps))) / RAD\n );\n return { mc, ascendant };\n}\n\nexport interface ProgressionMethodBase {\n timeKey: ProgressionTimeKey;\n ephemeris: \"Swiss Ephemeris (SWISS_EPH, SPEED), UT Julian Day without millisecond truncation\";\n}\n\n// ── Secondary progressions ─────────────────────────────────────────────────\n\nexport interface SecondaryProgressionOptions extends ProgressionOptions {\n /** Which progressed-angle conventions to compute (default: all three). */\n angleConventions?: ProgressedAngleConvention[];\n}\n\nexport interface SecondaryProgressionMethod extends ProgressionMethodBase {\n technique: \"secondary progression\";\n /** The convention behind `chart.houses` (always quotidian). */\n chartHousesConvention: \"quotidian\";\n angleConventions: ProgressedAngleConvention[];\n angleConventionNotes: Record<ProgressedAngleConvention, string>;\n /** Progressed longitude speeds are degrees per EPHEMERIS day (i.e. per progressed year of life). */\n speedUnits: \"degrees per ephemeris day\";\n targetSet: \"all bodies of the progressed chart + angles\";\n}\n\nexport interface SecondaryProgressionResult {\n /** Progressed planets at `progressedJd`; houses/angles follow the quotidian convention. */\n chart: ComputedBirthChart;\n /** Progressed bodies + angles (quotidian) ready for the aspect functions. */\n points: Record<string, TransitAspectPoint>;\n /** Angles under each requested convention. */\n angles: Partial<Record<ProgressedAngleConvention, ProgressedAngles>>;\n /** Progressed Sun minus natal Sun, forward-normalised to [0, 360). */\n solarArcDegrees: number;\n natalSunLongitude: number;\n progressedJd: number;\n ageYears: number;\n method: SecondaryProgressionMethod;\n}\n\nconst ANGLE_NOTES: Record<ProgressedAngleConvention, string> = {\n quotidian: \"houses and angles computed at the progressed JD for the natal place (reference convention)\",\n \"solar-arc\": \"natal angles and cusps advanced by the true solar arc (progressed Sun - natal Sun)\",\n naibod:\n \"natal ARMC advanced by 0.985647 degrees per year of age; MC/ASC from the natal-date true obliquity and natal latitude; angles only\",\n};\n\nfunction natalAnglesOf(chart: BirthChart): { ascendant: number; mc: number } {\n return { ascendant: chart.houses.ascendant.longitude, mc: chart.houses.mc.longitude };\n}\n\n/** Secondary progressions (\"a day for a year\") with a declared time key and angle conventions. */\nexport function getSecondaryProgressions(options: SecondaryProgressionOptions): SecondaryProgressionResult {\n const { natalChart } = options;\n const natalJd = dateToJd(natalChart.dateUtc);\n const targetJd = dateToJd(options.target);\n const natalSun = natalChart.planets.sun?.longitude;\n if (natalSun === undefined) throw new DerivedChartError(\"INVALID_INPUT\", \"natal chart has no Sun\");\n const timeKey = resolveTimeKey(natalJd, targetJd, options.yearLength, natalSun);\n const houseSystem = options.houseSystem ?? natalChart.houseSystem ?? HouseSystem.PLACIDUS;\n\n const chart = getChartAtJulianDay({\n julianDayUt: timeKey.progressedJd,\n latitude: options.natalLatitude,\n longitude: options.natalLongitude,\n houseSystem,\n });\n const solarArc = normalizeAngle(chart.planets.sun.longitude - natalSun);\n const conventions = options.angleConventions ?? PROGRESSED_ANGLE_CONVENTIONS;\n const natalAngles = natalAnglesOf(natalChart);\n const natalCusps = natalChart.houses.houses.map((h) => h.longitude);\n\n const angles: Partial<Record<ProgressedAngleConvention, ProgressedAngles>> = {};\n for (const conv of conventions) {\n if (conv === \"quotidian\") {\n const asc = chart.houses.ascendant.longitude;\n const mc = chart.houses.mc.longitude;\n angles.quotidian = {\n convention: conv,\n ascendant: asc,\n mc,\n descendant: normalizeAngle(asc + 180),\n ic: normalizeAngle(mc + 180),\n cusps: chart.houses.houses.map((h) => h.longitude),\n };\n } else if (conv === \"solar-arc\") {\n const asc = normalizeAngle(natalAngles.ascendant + solarArc);\n const mc = normalizeAngle(natalAngles.mc + solarArc);\n angles[\"solar-arc\"] = {\n convention: conv,\n ascendant: asc,\n mc,\n descendant: normalizeAngle(asc + 180),\n ic: normalizeAngle(mc + 180),\n cusps: natalCusps.map((c) => normalizeAngle(c + solarArc)),\n };\n } else if (conv === \"naibod\") {\n const armc = natalChart.houses.ascmc?.armc?.longitude;\n if (armc === undefined) {\n throw new DerivedChartError(\"ANGLE_UNAVAILABLE\", \"naibod angles need the natal ARMC (houses.ascmc.armc)\");\n }\n const progressedArmc = normalizeAngle(armc + NAIBOD_RATE_DEGREES_PER_YEAR * timeKey.ageYears);\n const { mc, ascendant } = anglesFromArmc(progressedArmc, trueObliquity(natalJd), options.natalLatitude);\n angles.naibod = {\n convention: conv,\n ascendant,\n mc,\n descendant: normalizeAngle(ascendant + 180),\n ic: normalizeAngle(mc + 180),\n };\n }\n }\n\n const q = angles.quotidian ?? {\n ascendant: chart.houses.ascendant.longitude,\n mc: chart.houses.mc.longitude,\n descendant: chart.houses.dc.longitude,\n ic: chart.houses.ic.longitude,\n };\n return {\n chart,\n points: pointsOf(chart.planets, q),\n angles,\n solarArcDegrees: solarArc,\n natalSunLongitude: natalSun,\n progressedJd: timeKey.progressedJd,\n ageYears: timeKey.ageYears,\n method: {\n technique: \"secondary progression\",\n timeKey,\n ephemeris: \"Swiss Ephemeris (SWISS_EPH, SPEED), UT Julian Day without millisecond truncation\",\n chartHousesConvention: \"quotidian\",\n angleConventions: conventions,\n angleConventionNotes: ANGLE_NOTES,\n speedUnits: \"degrees per ephemeris day\",\n targetSet: \"all bodies of the progressed chart + angles\",\n },\n };\n}\n\n// ── Solar-arc directions ───────────────────────────────────────────────────\n\nexport interface SolarArcOptions extends ProgressionOptions {\n /** \"true\" = progressed Sun - natal Sun (default); \"naibod\" = 0.985647 deg x age. */\n arcKind?: \"true\" | \"naibod\";\n /**\n * Natal points to direct, by key: planet keys as in `chart.planets` plus\n * `ascendant`, `mc`, `descendant`, `ic`. Default: every planet/body plus the four angles.\n */\n targets?: string[];\n}\n\nexport interface DirectedPoint {\n name: string;\n natalLongitude: number;\n longitude: number;\n zodiacPosition: ZodiacPosition;\n}\n\nexport interface SolarArcMethod extends ProgressionMethodBase {\n technique: \"solar arc directions\";\n arcKind: \"true\" | \"naibod\";\n arcRule: string;\n /** The exact target keys that were directed. */\n targetSet: string[];\n houses: \"natal cusps advanced by the same arc\";\n}\n\nexport interface SolarArcResult {\n arcDegrees: number;\n directed: Record<string, DirectedPoint>;\n directedCusps: number[];\n /** Directed points ready for the aspect functions. */\n points: Record<string, TransitAspectPoint>;\n progressedSunLongitude: number | null;\n method: SolarArcMethod;\n}\n\nconst ANGLE_KEYS = [\"ascendant\", \"mc\", \"descendant\", \"ic\"] as const;\n\n/** Solar-arc directions: one arc added uniformly to an explicit set of natal points. */\nexport function getSolarArcDirections(options: SolarArcOptions): SolarArcResult {\n const { natalChart } = options;\n const natalJd = dateToJd(natalChart.dateUtc);\n const targetJd = dateToJd(options.target);\n const natalSun = natalChart.planets.sun?.longitude;\n if (natalSun === undefined) throw new DerivedChartError(\"INVALID_INPUT\", \"natal chart has no Sun\");\n const timeKey = resolveTimeKey(natalJd, targetJd, options.yearLength, natalSun);\n const arcKind = options.arcKind ?? \"true\";\n\n let arc: number;\n let progressedSun: number | null = null;\n if (arcKind === \"naibod\") {\n arc = normalizeAngle(NAIBOD_RATE_DEGREES_PER_YEAR * timeKey.ageYears);\n } else {\n progressedSun = calculateBodyAtJulianDay(timeKey.progressedJd, Planet.SUN, EPH_FLAGS).longitude;\n arc = normalizeAngle(progressedSun - natalSun);\n }\n\n const natalPoints: Record<string, number> = {};\n for (const [k, p] of Object.entries(natalChart.planets)) natalPoints[k] = p.longitude;\n natalPoints.ascendant = natalChart.houses.ascendant.longitude;\n natalPoints.mc = natalChart.houses.mc.longitude;\n natalPoints.descendant = natalChart.houses.dc.longitude;\n natalPoints.ic = natalChart.houses.ic.longitude;\n\n const targetSet = options.targets\n ? options.targets.map((t) => t.toLowerCase())\n : [...Object.keys(natalChart.planets), ...ANGLE_KEYS];\n for (const t of targetSet) {\n if (!(t in natalPoints)) throw new DerivedChartError(\"INVALID_INPUT\", `unknown target point \"${t}\"`);\n }\n\n const directedCusps = natalChart.houses.houses.map((h) => normalizeAngle(h.longitude + arc));\n const directed: Record<string, DirectedPoint> = {};\n const points: Record<string, TransitAspectPoint> = {};\n for (const t of targetSet) {\n const lon = normalizeAngle(natalPoints[t] + arc);\n directed[t] = {\n name: t,\n natalLongitude: natalPoints[t],\n longitude: lon,\n zodiacPosition: getZodiacPosition(lon, directedCusps),\n };\n points[t] = { longitude: lon };\n }\n\n return {\n arcDegrees: arc,\n directed,\n directedCusps,\n points,\n progressedSunLongitude: progressedSun,\n method: {\n technique: \"solar arc directions\",\n timeKey,\n ephemeris: \"Swiss Ephemeris (SWISS_EPH, SPEED), UT Julian Day without millisecond truncation\",\n arcKind,\n arcRule:\n arcKind === \"true\"\n ? \"arc = progressed Sun - natal Sun (forward-normalised to [0,360)), added to every target; directed speeds are undefined\"\n : \"arc = 0.985647 deg per year x age, added to every target; directed speeds are undefined\",\n targetSet,\n houses: \"natal cusps advanced by the same arc\",\n },\n };\n}\n","/**\n * Davison relationship chart: a REAL chart cast for the midpoint in TIME and\n * the midpoint in PLACE of two births.\n *\n * Davison and the midpoint composite (`getCompositeChart`) are DIFFERENT\n * methods: the composite averages the two charts' longitudes point by point and\n * has no time or place of its own; the Davison chart is an actual sky at an\n * actual instant, so planets stay physically consistent (e.g. Mercury within\n * 28 degrees of the Sun) and the two can differ by many degrees.\n *\n * Conventions (echoed in `method`):\n * - Time: arithmetic mean of the two UTC Julian Days (= the exact UTC instant\n * midpoint). The chart is cast at that JD without millisecond truncation.\n * - Place, default `\"arithmetic-shorter-arc\"` (the family reference): latitude =\n * arithmetic mean of the two latitudes; longitude = midpoint along the SHORTER\n * longitude arc (a + shortestDelta(b - a) / 2). Result normalised to (-180, 180].\n * Antimeridian: 179 E and 179 W give 180, not 0. Longitudes exactly 180 degrees\n * apart have two equally short arcs: the result is then symmetric in A/B (the\n * arithmetic mean of the two longitudes normalised to [-180, 180)) and a notice\n * is added.\n * - Place, `\"great-circle\"`: the normalised mean of the two unit vectors on the\n * sphere (true surface midpoint). Antipodal places have no unique midpoint: the\n * arithmetic convention is used instead and a notice is added.\n */\n\nimport { HouseSystem, toUtcDate } from \"./swisseph\";\nimport type { BirthChartOptions, ComputedBirthChart } from \"./index\";\nimport { dateToJd } from \"./root-solver\";\nimport { DerivedChartError, getChartAtJulianDay } from \"./progressions\";\nimport { julianDayToDate } from \"./jyotish/dasha\";\n\nexport type GeographicMidpointConvention = \"arithmetic-shorter-arc\" | \"great-circle\";\n\nexport interface DavisonPersonInput {\n /** Absolute UTC instant of the birth. */\n dateUtc: Date;\n latitude: number;\n longitude: number;\n}\n\nexport interface DavisonOptions {\n a: DavisonPersonInput;\n b: DavisonPersonInput;\n houseSystem?: HouseSystem;\n /** Default \"arithmetic-shorter-arc\". */\n geographicMidpoint?: GeographicMidpointConvention;\n}\n\nexport type DavisonNotice =\n | { type: \"antipodal_longitudes\"; reason: string }\n | { type: \"antipodal_places\"; reason: string };\n\nexport interface DavisonMethod {\n name: \"davison\";\n time: \"arithmetic mean of the two UTC Julian Days (exact UTC instant midpoint)\";\n geographicMidpoint: GeographicMidpointConvention;\n geographicMidpointRule: string;\n antimeridian: string;\n longitudeRange: \"(-180, 180]\";\n houseSystem: HouseSystem;\n distinctFromComposite: string;\n referenceConvention: string;\n}\n\nexport interface DavisonResult {\n chart: ComputedBirthChart;\n midpointJd: number;\n /** Midpoint instant rounded to the millisecond (`midpointJd` is exact). */\n midpointDateUtc: Date;\n location: { latitude: number; longitude: number };\n inputs: { a: DavisonPersonInput; b: DavisonPersonInput };\n notices: DavisonNotice[];\n method: DavisonMethod;\n}\n\nfunction normalizeLongitudeHalfOpen(lon: number): number {\n return ((((lon + 180) % 360) + 360) % 360) - 180; // [-180, 180)\n}\n\n/** Shortest signed delta of two longitudes, in [-180, 180). */\nfunction shortestDelta(delta: number): number {\n return normalizeLongitudeHalfOpen(delta);\n}\n\nexport interface GeographicMidpoint {\n latitude: number;\n longitude: number;\n notices: DavisonNotice[];\n}\n\n/** Geographic midpoint of two places under the named convention (see module doc). */\nexport function geographicMidpoint(\n a: { latitude: number; longitude: number },\n b: { latitude: number; longitude: number },\n convention: GeographicMidpointConvention = \"arithmetic-shorter-arc\"\n): GeographicMidpoint {\n for (const v of [a.latitude, a.longitude, b.latitude, b.longitude]) {\n if (!Number.isFinite(v)) throw new DerivedChartError(\"INVALID_INPUT\", \"coordinates must be finite\");\n }\n if (Math.abs(a.latitude) > 90 || Math.abs(b.latitude) > 90) {\n throw new DerivedChartError(\"INVALID_INPUT\", \"latitude must be within [-90, 90]\");\n }\n const notices: DavisonNotice[] = [];\n\n const arithmetic = (): { latitude: number; longitude: number } => {\n const latitude = (a.latitude + b.latitude) / 2;\n const rawDelta = b.longitude - a.longitude;\n const delta = shortestDelta(rawDelta);\n let lon: number;\n if (Math.abs(Math.abs(delta) - 180) < 1e-9) {\n // Two equally short arcs: make the choice symmetric in (a, b).\n notices.push({\n type: \"antipodal_longitudes\",\n reason: \"longitudes are 180 degrees apart; the arithmetic mean of the normalised longitudes was used\",\n });\n lon = (normalizeLongitudeHalfOpen(a.longitude) + normalizeLongitudeHalfOpen(b.longitude)) / 2;\n } else {\n lon = a.longitude + delta / 2;\n }\n lon = normalizeLongitudeHalfOpen(lon);\n if (lon === -180) lon = 180; // report on (-180, 180]\n return { latitude, longitude: lon };\n };\n\n if (convention === \"great-circle\") {\n const toVec = (p: { latitude: number; longitude: number }) => {\n const la = (p.latitude * Math.PI) / 180;\n const lo = (p.longitude * Math.PI) / 180;\n return [Math.cos(la) * Math.cos(lo), Math.cos(la) * Math.sin(lo), Math.sin(la)];\n };\n const va = toVec(a);\n const vb = toVec(b);\n const m = [va[0] + vb[0], va[1] + vb[1], va[2] + vb[2]];\n const norm = Math.hypot(m[0], m[1], m[2]);\n if (norm < 1e-9) {\n notices.push({\n type: \"antipodal_places\",\n reason: \"places are antipodal: no unique great-circle midpoint; the arithmetic convention was used\",\n });\n return { ...arithmetic(), notices };\n }\n const latitude = (Math.asin(m[2] / norm) * 180) / Math.PI;\n let longitude = (Math.atan2(m[1], m[0]) * 180) / Math.PI;\n longitude = normalizeLongitudeHalfOpen(longitude);\n if (longitude === -180) longitude = 180;\n return { latitude, longitude, notices };\n }\n return { ...arithmetic(), notices };\n}\n\n/** Davison chart from two UTC instants and places. */\nexport function getDavisonChart(options: DavisonOptions): DavisonResult {\n const { a, b } = options;\n const jdA = dateToJd(a.dateUtc);\n const jdB = dateToJd(b.dateUtc);\n if (!Number.isFinite(jdA) || !Number.isFinite(jdB)) {\n throw new DerivedChartError(\"INVALID_INPUT\", \"birth instants must be valid dates\");\n }\n const convention = options.geographicMidpoint ?? \"arithmetic-shorter-arc\";\n const houseSystem = options.houseSystem ?? HouseSystem.PLACIDUS;\n const place = geographicMidpoint(a, b, convention);\n const midpointJd = (jdA + jdB) / 2;\n const chart = getChartAtJulianDay({\n julianDayUt: midpointJd,\n latitude: place.latitude,\n longitude: place.longitude,\n houseSystem,\n });\n return {\n chart,\n midpointJd,\n midpointDateUtc: julianDayToDate(midpointJd),\n location: { latitude: place.latitude, longitude: place.longitude },\n inputs: { a, b },\n notices: place.notices,\n method: {\n name: \"davison\",\n time: \"arithmetic mean of the two UTC Julian Days (exact UTC instant midpoint)\",\n geographicMidpoint: convention,\n geographicMidpointRule:\n convention === \"arithmetic-shorter-arc\"\n ? \"latitude = mean of latitudes; longitude = midpoint along the shorter longitude arc (family reference convention)\"\n : \"normalised mean of the two unit vectors (great-circle surface midpoint)\",\n antimeridian:\n \"the shorter arc is taken across the antimeridian (179 E and 179 W give 180); exactly antipodal longitudes use the arithmetic mean of the normalised longitudes and add a notice\",\n longitudeRange: \"(-180, 180]\",\n houseSystem,\n distinctFromComposite:\n \"A Davison chart is a real chart cast for the midpoint time and place; the midpoint composite averages the two charts' longitudes point by point. They are different methods and can differ substantially.\",\n referenceConvention: \"UTC Julian-date midpoint; arithmetic latitude and shortest-arc longitude midpoint (uncorrected Davison)\",\n },\n };\n}\n\n/** Davison chart from the same options as `getBirthChart` (local date-times are resolved to UTC first). */\nexport async function getDavisonChartFromOptions(\n a: BirthChartOptions,\n b: BirthChartOptions,\n options: { houseSystem?: HouseSystem; geographicMidpoint?: GeographicMidpointConvention } = {}\n): Promise<DavisonResult> {\n const resolve = async (o: BirthChartOptions): Promise<DavisonPersonInput> => ({\n dateUtc: await toUtcDate(o.date, o.latitude, o.longitude, o.timeZoneSettings ?? { autoTimeZone: true }),\n latitude: o.latitude,\n longitude: o.longitude,\n });\n const [pa, pb] = await Promise.all([resolve(a), resolve(b)]);\n return getDavisonChart({\n a: pa,\n b: pb,\n houseSystem: options.houseSystem ?? a.houseSystem,\n geographicMidpoint: options.geographicMidpoint,\n });\n}\n","/**\n * Bounded return-pass timelines: thin wrappers over `./returns` that run several\n * return/opposition searches for one natal chart and merge every pass into one\n * chronologically sorted list, each pass carrying its solver metadata.\n *\n * Bounded by hard caps (window length, number of kinds, number of passes);\n * violations throw `TimelineError` (typed `code`). Annual profection and firdaria\n * timelines live next to their logic: `getAnnualProfectionTimeline`\n * (./profections) and `getFirdariaTimeline` (./firdaria).\n *\n * Synchronous; require an initialised Swiss Ephemeris.\n */\n\nimport { TimelineError } from \"./firdaria\";\nimport {\n findJupiterReturns,\n findNodalReturns,\n findSaturnReturns,\n findSolarReturns,\n findUranusOppositions,\n type NatalLongitudeSource,\n type PlanetaryReturnResult,\n type RootSolverMethodMetadata,\n} from \"./returns\";\nimport type { RootDirection, RootSearchCoverage } from \"./root-solver\";\n\nexport const MAX_RETURN_TIMELINE_YEARS = 150;\nexport const MAX_RETURN_TIMELINE_PASSES = 2000;\n\nexport type ReturnPassKind =\n | \"saturn-return\"\n | \"jupiter-return\"\n | \"uranus-opposition\"\n | \"mean-nodal-return\"\n | \"true-nodal-return\"\n | \"solar-return\";\n\nexport const DEFAULT_RETURN_PASS_KINDS: ReturnPassKind[] = [\n \"saturn-return\",\n \"jupiter-return\",\n \"uranus-opposition\",\n \"mean-nodal-return\",\n \"true-nodal-return\",\n];\n\nexport interface ReturnTimelineOptions {\n /** Natal chart (or any `{ planets: { [key]: { longitude } } }` source). */\n natalChart: NatalLongitudeSource;\n /** Window (inclusive), absolute UTC instants. */\n from: Date;\n to: Date;\n /** Kinds to search (default: Saturn, Jupiter, Uranus opposition, mean and true nodal returns). */\n kinds?: ReturnPassKind[];\n stepDays?: number;\n timeToleranceSeconds?: number;\n residualToleranceDegrees?: number;\n /**\n * The natal instant is itself a trivial zero-offset \"pass\" when the window includes it.\n * When the natal source has a `dateUtc` (a `BirthChart`), passes within 12 hours of it are\n * dropped and counted in `excludedNatalInstantPasses` unless this is set to false.\n */\n excludeNatalInstant?: boolean;\n}\n\nexport interface ReturnPassEntry {\n kind: ReturnPassKind;\n body: string;\n eventKind: \"return\" | \"opposition\" | \"offset-aspect\";\n /** 1-based pass index within this kind and window, and the number of passes of that kind. */\n passIndex: number;\n passCount: number;\n instant: Date;\n jd: number;\n natalLongitude: number;\n targetLongitude: number;\n residualDegrees: number;\n direction: RootDirection;\n speedDegreesPerDay: number;\n tangent: boolean;\n solver: {\n bracketWidthSeconds: number;\n timeToleranceSeconds: number;\n iterations: number;\n method: RootSolverMethodMetadata;\n };\n}\n\nexport interface ReturnTimelineResult {\n window: { from: Date; to: Date };\n /** Passes of all kinds, sorted by `jd` (ties by kind order). */\n entries: ReturnPassEntry[];\n /** Number of trivial passes at the natal instant that were dropped (see `excludeNatalInstant`). */\n excludedNatalInstantPasses: number;\n /** Per-kind search metadata (coverage, tolerances, unrecovered roots). */\n searches: Record<\n string,\n {\n coverage: RootSearchCoverage;\n residualToleranceDegrees: number;\n timeToleranceSeconds: number;\n rejectedCount: number;\n }\n >;\n method: { solver: RootSolverMethodMetadata; note: string };\n}\n\nfunction runKind(kind: ReturnPassKind, o: ReturnTimelineOptions): PlanetaryReturnResult {\n const common = {\n natalChart: o.natalChart,\n from: o.from,\n to: o.to,\n stepDays: o.stepDays,\n timeToleranceSeconds: o.timeToleranceSeconds,\n residualToleranceDegrees: o.residualToleranceDegrees,\n };\n switch (kind) {\n case \"saturn-return\":\n return findSaturnReturns(common);\n case \"jupiter-return\":\n return findJupiterReturns(common);\n case \"uranus-opposition\":\n return findUranusOppositions(common);\n case \"mean-nodal-return\":\n return findNodalReturns({ ...common, node: \"mean\" });\n case \"true-nodal-return\":\n return findNodalReturns({ ...common, node: \"true\" });\n case \"solar-return\":\n return findSolarReturns(common);\n default:\n throw new TimelineError(\"INVALID_INPUT\", `unknown return kind \"${String(kind)}\"`);\n }\n}\n\n/** Every return/opposition pass of the requested kinds between two dates, merged and sorted. */\nexport function getReturnPassTimeline(options: ReturnTimelineOptions): ReturnTimelineResult {\n const { from, to } = options;\n if (!(from instanceof Date) || !(to instanceof Date) || !Number.isFinite(from.getTime()) || !Number.isFinite(to.getTime())) {\n throw new TimelineError(\"UNBOUNDED_INPUT\", \"finite `from` and `to` dates are required\");\n }\n if (to.getTime() <= from.getTime()) throw new TimelineError(\"INVALID_RANGE\", \"`to` must be after `from`\");\n const years = (to.getTime() - from.getTime()) / (365.25 * 86_400_000);\n if (years > MAX_RETURN_TIMELINE_YEARS) {\n throw new TimelineError(\"RANGE_TOO_LARGE\", `window of ${years.toFixed(1)} years exceeds ${MAX_RETURN_TIMELINE_YEARS}`);\n }\n const kinds = [...new Set(options.kinds ?? DEFAULT_RETURN_PASS_KINDS)];\n if (kinds.length === 0) throw new TimelineError(\"INVALID_INPUT\", \"kinds must not be empty\");\n\n const natalInstant = (options.natalChart as { dateUtc?: unknown }).dateUtc;\n const natalMs =\n options.excludeNatalInstant !== false && natalInstant instanceof Date ? natalInstant.getTime() : null;\n let excluded = 0;\n const entries: (ReturnPassEntry & { order: number })[] = [];\n const searches: ReturnTimelineResult[\"searches\"] = {};\n let solverMethod: RootSolverMethodMetadata | undefined;\n kinds.forEach((kind, order) => {\n const r = runKind(kind, options);\n solverMethod = r.method;\n searches[kind] = {\n coverage: r.coverage,\n residualToleranceDegrees: r.residualToleranceDegrees,\n timeToleranceSeconds: r.timeToleranceSeconds,\n rejectedCount: r.rejected.length,\n };\n const kept = r.crossings.filter((c) => {\n const trivial = natalMs !== null && Math.abs(c.instant.getTime() - natalMs) <= 12 * 3_600_000;\n if (trivial) excluded++;\n return !trivial;\n });\n kept.forEach((c, i) => {\n entries.push({\n order,\n kind,\n body: r.bodyName,\n eventKind: r.eventKind,\n passIndex: i + 1,\n passCount: kept.length,\n instant: c.instant,\n jd: c.jd,\n natalLongitude: r.natalLongitude,\n targetLongitude: r.targetLongitude,\n residualDegrees: c.residualDegrees,\n direction: c.direction,\n speedDegreesPerDay: c.speedDegreesPerDay,\n tangent: c.tangent,\n solver: {\n bracketWidthSeconds: c.bracketWidthSeconds,\n timeToleranceSeconds: c.timeToleranceSeconds,\n iterations: c.iterations,\n method: r.method,\n },\n });\n });\n if (entries.length > MAX_RETURN_TIMELINE_PASSES) {\n throw new TimelineError(\"RANGE_TOO_LARGE\", `more than ${MAX_RETURN_TIMELINE_PASSES} passes; narrow the window or kinds`);\n }\n });\n entries.sort((a, b) => a.jd - b.jd || a.order - b.order);\n return {\n window: { from, to },\n entries: entries.map(({ order: _order, ...e }) => e),\n excludedNatalInstantPasses: excluded,\n searches,\n method: {\n solver: solverMethod!,\n note: \"all crossings found on a finite scan grid with station insertion; see each search's coverage\",\n },\n };\n}\n","/**\n * Bulk / collection computation: structured manifests of people, events and pair selections.\n *\n * Guarantees\n * - Each person's natal chart is computed exactly ONCE (or never, for a precomputed chart),\n * no matter how many of the N(N-1)/2 pairs it takes part in.\n * - User IDs are preserved verbatim; the library never invents or rewrites them. Manifests\n * are name-free by design (an ID is the only identifier).\n * - Output order is deterministic: people and events in manifest order, pairs ordered by\n * manifest index (i < j), whatever order tasks actually finish in.\n * - One person's failure becomes `{ ok: false, error }` for that person; pairs that involve\n * a failed person are reported as unavailable with the reason, never dropped silently.\n * - Hard caps and typed `CollectionError`s reject duplicate IDs, unknown pair IDs,\n * self-pairs and oversized manifests before any chart is computed.\n *\n * Concurrency, honestly: Swiss Ephemeris runs as SYNCHRONOUS WebAssembly calls on the JS\n * thread. `concurrency` bounds how many async tasks are in flight and how far results may\n * run ahead of the consumer (backpressure); it does not make the ephemeris parallel. The\n * scheduler yields to the event loop on a small time budget so progress callbacks, timers\n * and abort signals stay responsive. The default pair computation is pure tropical\n * longitude geometry and this module owns no mutable engine state, so sidereal/Jyotish\n * frames cannot leak between items (callers that inject a Jyotish-aware `computeChart`\n * must keep Swiss state changes inside synchronous `withSwissEphState`-style scopes).\n *\n * Library-only: it accepts a standard `AbortSignal` and does not import CLI code.\n */\n\nimport { type AspectEdge, type AspectSpec, computeSynastryAspects } from \"./aspects\";\nimport type { BirthChart, BirthChartOptions } from \"./index\";\nimport type { LocalDateTimeParts, TimeZoneOptions } from \"./swisseph\";\n\nexport const COLLECTION_METHOD_VERSION = \"kaabalah-collection/1\";\n\n// ---------------------------------------------------------------------------\n// Limits and errors\n// ---------------------------------------------------------------------------\n\nexport interface CollectionLimits {\n maxPeople: number;\n maxEvents: number;\n maxPairs: number;\n maxConcurrency: number;\n}\n\n/** Hard caps; `options.limits` may only lower them. 500 people allow every pair (124,750). */\nexport const COLLECTION_HARD_LIMITS: Readonly<CollectionLimits> = Object.freeze({\n maxPeople: 500,\n maxEvents: 1000,\n maxPairs: 125_000,\n maxConcurrency: 64,\n});\n\nexport const DEFAULT_COLLECTION_CONCURRENCY = 4;\n\nexport type CollectionErrorCode =\n | \"INVALID_MANIFEST\"\n | \"DUPLICATE_ID\"\n | \"UNKNOWN_PAIR_ID\"\n | \"SELF_PAIR\"\n | \"MANIFEST_TOO_LARGE\"\n | \"INVALID_OPTION\"\n | \"ABORTED\";\n\n/** Typed error for manifest/option problems and cancellation. `code` is stable API. */\nexport class CollectionError extends Error {\n readonly code: CollectionErrorCode;\n readonly details: Record<string, unknown>;\n\n constructor(code: CollectionErrorCode, message: string, details: Record<string, unknown> = {}) {\n super(message);\n this.name = \"CollectionError\";\n this.code = code;\n this.details = details;\n }\n}\n\n/** AbortError-style error (`name === \"AbortError\"`, `code === \"ABORTED\"`) raised on cancellation. */\nexport class CollectionAbortError extends CollectionError {\n constructor(reason?: unknown) {\n super(\"ABORTED\", \"Collection computation was aborted.\", { reason: describeReason(reason) });\n this.name = \"AbortError\";\n }\n}\n\nfunction describeReason(reason: unknown): string | null {\n if (reason === undefined || reason === null) return null;\n if (reason instanceof Error) return reason.message;\n return String(reason);\n}\n\n// ---------------------------------------------------------------------------\n// Manifest types\n// ---------------------------------------------------------------------------\n\n/** How trustworthy/complete the birth time is. Untimed and partial people omit Moon and angles from pair aspects. */\nexport type CollectionInputQuality = \"recorded\" | \"rectified\" | \"untimed\" | \"partial\";\n\nexport interface CollectionPersonInput {\n /** Caller-owned identifier, preserved verbatim. Must be unique among people. */\n id: string;\n /** Chart input; the chart is computed once. Exactly one of `chart` / `precomputed`. */\n chart?: BirthChartOptions;\n /** An already computed chart (no computation happens). */\n precomputed?: BirthChart;\n /** Default \"recorded\". Untimed/partial: Moon and angles excluded from pair aspects and flagged. */\n quality?: CollectionInputQuality;\n}\n\nexport interface CollectionEventInput {\n id: string;\n date: Date | LocalDateTimeParts;\n /** Default 0. */\n latitude?: number;\n /** Default 0. */\n longitude?: number;\n /** Default `{ treatAsUTC: true }`. */\n timeZoneSettings?: TimeZoneOptions;\n}\n\nexport type PairSelection =\n | { mode: \"all\" }\n | { mode: \"pairs\"; pairs: ReadonlyArray<readonly [string, string]> }\n /** All pairs among people whose quality is \"recorded\" or \"rectified\" (a supplied time). */\n | { mode: \"timed-only\" };\n\nexport interface CollectionManifest {\n people: readonly CollectionPersonInput[];\n events?: readonly CollectionEventInput[];\n /** Default `{ mode: \"all\" }`. */\n pairs?: PairSelection;\n}\n\n/** A person's chart prepared for pair computation. */\nexport interface PreparedPerson {\n id: string;\n /** Manifest index. */\n index: number;\n quality: CollectionInputQuality;\n /** True when Moon degree and angles are trustworthy (recorded / rectified). */\n timed: boolean;\n chart: BirthChart;\n}\n\nexport interface PairComputation {\n aspects: AspectEdge[];\n /** True when points were withheld or the result is otherwise incomplete. */\n partial?: boolean;\n excludedPoints?: { a: string[]; b: string[] };\n /** Method metadata supplied by an injected computation; copied to the pair record. */\n metadata?: Record<string, unknown>;\n}\n\nexport interface PairComputeContext {\n aspectSpecs?: AspectSpec[];\n signal?: AbortSignal;\n}\n\nexport type ChartComputer = (\n input: BirthChartOptions,\n context: { id: string; kind: \"person\" | \"event\" }\n) => Promise<BirthChart>;\n\nexport type PairComputer = (\n a: PreparedPerson,\n b: PreparedPerson,\n context: PairComputeContext\n) => PairComputation | Promise<PairComputation>;\n\nexport interface CollectionProgress {\n phase: \"people\" | \"events\" | \"pairs\";\n /** Items finished in this phase, counted in deterministic emission order (1..total). */\n completed: number;\n total: number;\n /** Person/event id, or `${idA}~${idB}` for pairs (see `ids`). */\n id: string;\n ids?: [string, string];\n}\n\nexport interface CollectionOptions {\n /** Async tasks in flight and ahead-of-consumer window. Default 4, max 64. */\n concurrency?: number;\n signal?: AbortSignal;\n onProgress?: (progress: CollectionProgress) => void;\n /** Embed full charts in person/event records. Default false (lightweight records). */\n includeCharts?: boolean;\n aspectSpecs?: AspectSpec[];\n /** Replace the chart function (default `getBirthChart`). */\n computeChart?: ChartComputer;\n /** Replace the pair function (default tropical synastry aspects over eligible points). */\n computePair?: PairComputer;\n /** Lower the hard caps. */\n limits?: Partial<CollectionLimits>;\n /** Event-loop yield budget in milliseconds (default 8). `0` yields after every item. */\n yieldBudgetMs?: number;\n}\n\n// ---------------------------------------------------------------------------\n// Records\n// ---------------------------------------------------------------------------\n\nexport interface ItemError {\n code: string;\n message: string;\n}\n\nexport interface PersonRecordOk {\n type: \"person\";\n id: string;\n index: number;\n ok: true;\n quality: CollectionInputQuality;\n timed: boolean;\n /** Eligible point longitudes (degrees). Untimed/partial: Moon excluded. */\n points: Record<string, number>;\n /** Ascendant / MC longitudes; absent when untimed or partial. */\n angles?: { ascendant: number; mc: number };\n /** Points withheld because the time is not trustworthy. */\n excludedPoints: string[];\n chart?: BirthChart;\n}\nexport interface PersonRecordFailed {\n type: \"person\";\n id: string;\n index: number;\n ok: false;\n quality: CollectionInputQuality;\n error: ItemError;\n}\nexport type PersonRecord = PersonRecordOk | PersonRecordFailed;\n\nexport interface EventRecordOk {\n type: \"event\";\n id: string;\n index: number;\n ok: true;\n points: Record<string, number>;\n chart?: BirthChart;\n}\nexport interface EventRecordFailed {\n type: \"event\";\n id: string;\n index: number;\n ok: false;\n error: ItemError;\n}\nexport type EventRecord = EventRecordOk | EventRecordFailed;\n\nexport interface PairRecordOk {\n type: \"pair\";\n idA: string;\n idB: string;\n indexA: number;\n indexB: number;\n ok: true;\n partial: boolean;\n excludedPoints: { a: string[]; b: string[] };\n aspectCount: number;\n aspects: AspectEdge[];\n metadata?: Record<string, unknown>;\n}\nexport interface PairRecordUnavailable {\n type: \"pair\";\n idA: string;\n idB: string;\n indexA: number;\n indexB: number;\n ok: false;\n error: ItemError;\n /** Ids of the people whose charts are unavailable. */\n unavailablePeople: string[];\n}\nexport type PairRecord = PairRecordOk | PairRecordUnavailable;\n\nexport interface CollectionSummary {\n type: \"summary\";\n method: {\n id: string;\n pairComputation: \"default-tropical-synastry\" | \"custom\";\n chartComputation: \"getBirthChart\" | \"custom\";\n aspectSpecs: \"default\" | \"custom\";\n ordering: string;\n executionModel: string;\n };\n selection: { mode: PairSelection[\"mode\"]; pairCount: number };\n people: { total: number; ok: number; failed: number };\n events: { total: number; ok: number; failed: number };\n pairs: { total: number; ok: number; unavailable: number; partial: number; aspects: number };\n /** People left out of pair selection by the selection mode itself (for example untimed in \"timed-only\"). */\n skippedPeople: { id: string; reason: string }[];\n options: { concurrency: number; includeCharts: boolean };\n}\n\nexport type CollectionRecord = PersonRecord | EventRecord | PairRecord | CollectionSummary;\n\nexport interface CollectionResult {\n method: typeof COLLECTION_METHOD_VERSION;\n people: PersonRecord[];\n events: EventRecord[];\n pairs: PairRecord[];\n summary: CollectionSummary;\n}\n\n// ---------------------------------------------------------------------------\n// Validation\n// ---------------------------------------------------------------------------\n\nconst QUALITIES: readonly CollectionInputQuality[] = [\"recorded\", \"rectified\", \"untimed\", \"partial\"];\n\ninterface Plan {\n people: CollectionPersonInput[];\n events: CollectionEventInput[];\n pairs: Array<[number, number]>;\n mode: PairSelection[\"mode\"];\n skippedPeople: { id: string; reason: string }[];\n concurrency: number;\n limits: CollectionLimits;\n}\n\nfunction resolveLimits(partial: Partial<CollectionLimits> | undefined): CollectionLimits {\n const limits = { ...COLLECTION_HARD_LIMITS };\n if (!partial) return limits;\n for (const key of Object.keys(COLLECTION_HARD_LIMITS) as (keyof CollectionLimits)[]) {\n const value = partial[key];\n if (value === undefined) continue;\n if (!Number.isInteger(value) || value < 1 || value > COLLECTION_HARD_LIMITS[key]) {\n throw new CollectionError(\n \"INVALID_OPTION\",\n `limits.${key} must be an integer between 1 and the hard cap ${COLLECTION_HARD_LIMITS[key]}.`,\n { option: `limits.${key}`, value }\n );\n }\n limits[key] = value;\n }\n return limits;\n}\n\nfunction checkId(id: unknown, where: string): string {\n if (typeof id !== \"string\" || id.length === 0) {\n throw new CollectionError(\"INVALID_MANIFEST\", `${where} must have a non-empty string id.`, { where });\n }\n return id;\n}\n\nfunction isTimedQuality(quality: CollectionInputQuality): boolean {\n return quality === \"recorded\" || quality === \"rectified\";\n}\n\nfunction planCollection(manifest: CollectionManifest, options: CollectionOptions): Plan {\n if (manifest === null || typeof manifest !== \"object\" || !Array.isArray(manifest.people)) {\n throw new CollectionError(\"INVALID_MANIFEST\", \"Manifest must be an object with a `people` array.\");\n }\n const limits = resolveLimits(options.limits);\n const concurrency = options.concurrency ?? DEFAULT_COLLECTION_CONCURRENCY;\n if (!Number.isInteger(concurrency) || concurrency < 1 || concurrency > limits.maxConcurrency) {\n throw new CollectionError(\n \"INVALID_OPTION\",\n `concurrency must be an integer between 1 and ${limits.maxConcurrency}.`,\n { option: \"concurrency\", value: concurrency }\n );\n }\n const people = [...manifest.people];\n const events = [...(manifest.events ?? [])];\n if (people.length > limits.maxPeople) {\n throw new CollectionError(\n \"MANIFEST_TOO_LARGE\",\n `Manifest has ${people.length} people; the limit is ${limits.maxPeople}.`,\n { what: \"people\", count: people.length, limit: limits.maxPeople }\n );\n }\n if (events.length > limits.maxEvents) {\n throw new CollectionError(\n \"MANIFEST_TOO_LARGE\",\n `Manifest has ${events.length} events; the limit is ${limits.maxEvents}.`,\n { what: \"events\", count: events.length, limit: limits.maxEvents }\n );\n }\n\n const indexById = new Map<string, number>();\n people.forEach((person, index) => {\n const id = checkId(person?.id, `people[${index}]`);\n if (indexById.has(id)) {\n throw new CollectionError(\"DUPLICATE_ID\", `Duplicate person id \"${id}\".`, { id });\n }\n indexById.set(id, index);\n const hasChart = person.chart !== undefined;\n const hasPre = person.precomputed !== undefined;\n if (hasChart === hasPre) {\n throw new CollectionError(\n \"INVALID_MANIFEST\",\n `Person \"${id}\" must provide exactly one of \\`chart\\` or \\`precomputed\\`.`,\n { id }\n );\n }\n if (person.quality !== undefined && !QUALITIES.includes(person.quality)) {\n throw new CollectionError(\"INVALID_MANIFEST\", `Person \"${id}\" has unknown quality \"${String(person.quality)}\".`, {\n id,\n quality: person.quality,\n });\n }\n });\n const eventIds = new Set<string>();\n events.forEach((event, index) => {\n const id = checkId(event?.id, `events[${index}]`);\n if (eventIds.has(id)) {\n throw new CollectionError(\"DUPLICATE_ID\", `Duplicate event id \"${id}\".`, { id });\n }\n eventIds.add(id);\n if (event.date === undefined) {\n throw new CollectionError(\"INVALID_MANIFEST\", `Event \"${id}\" needs a date.`, { id });\n }\n });\n\n const selection: PairSelection = manifest.pairs ?? { mode: \"all\" };\n const n = people.length;\n const qualityOf = (i: number) => people[i].quality ?? \"recorded\";\n const pairs: Array<[number, number]> = [];\n const skippedPeople: { id: string; reason: string }[] = [];\n const guardCount = (count: number) => {\n if (count > limits.maxPairs) {\n throw new CollectionError(\n \"MANIFEST_TOO_LARGE\",\n `Pair selection has ${count} pairs; the limit is ${limits.maxPairs}.`,\n { what: \"pairs\", count, limit: limits.maxPairs }\n );\n }\n };\n\n switch (selection.mode) {\n case \"all\": {\n guardCount((n * (n - 1)) / 2);\n for (let i = 0; i < n; i++) for (let j = i + 1; j < n; j++) pairs.push([i, j]);\n break;\n }\n case \"timed-only\": {\n const eligible: number[] = [];\n for (let i = 0; i < n; i++) {\n if (isTimedQuality(qualityOf(i))) eligible.push(i);\n else skippedPeople.push({ id: people[i].id, reason: `quality \"${qualityOf(i)}\" has no supplied birth time` });\n }\n guardCount((eligible.length * (eligible.length - 1)) / 2);\n for (let a = 0; a < eligible.length; a++) {\n for (let b = a + 1; b < eligible.length; b++) pairs.push([eligible[a], eligible[b]]);\n }\n break;\n }\n case \"pairs\": {\n if (!Array.isArray(selection.pairs)) {\n throw new CollectionError(\"INVALID_MANIFEST\", \"pairs.pairs must be an array of [idA, idB].\");\n }\n guardCount(selection.pairs.length);\n const seen = new Set<number>();\n for (const pair of selection.pairs) {\n if (!Array.isArray(pair) || pair.length !== 2) {\n throw new CollectionError(\"INVALID_MANIFEST\", \"Each pair must be [idA, idB].\");\n }\n const [idA, idB] = pair as [string, string];\n const ia = indexById.get(idA);\n const ib = indexById.get(idB);\n if (ia === undefined || ib === undefined) {\n throw new CollectionError(\n \"UNKNOWN_PAIR_ID\",\n `Pair references unknown person id \"${ia === undefined ? idA : idB}\".`,\n { id: ia === undefined ? idA : idB }\n );\n }\n if (ia === ib) {\n throw new CollectionError(\"SELF_PAIR\", `Pair [${idA}, ${idB}] pairs a person with themselves.`, { id: idA });\n }\n const lo = Math.min(ia, ib);\n const hi = Math.max(ia, ib);\n const code = lo * Math.max(n, 1) + hi;\n if (seen.has(code)) continue; // the same unordered pair listed twice is computed once\n seen.add(code);\n pairs.push([lo, hi]);\n }\n pairs.sort((x, y) => x[0] - y[0] || x[1] - y[1]);\n break;\n }\n default:\n throw new CollectionError(\n \"INVALID_MANIFEST\",\n `Unknown pair selection mode \"${String((selection as { mode: unknown }).mode)}\".`\n );\n }\n\n return { people, events, pairs, mode: selection.mode, skippedPeople, concurrency, limits };\n}\n\n// ---------------------------------------------------------------------------\n// Scheduling helpers\n// ---------------------------------------------------------------------------\n\nfunction raceAbort<T>(promise: Promise<T>, signal: AbortSignal | undefined): Promise<T> {\n if (!signal) return promise;\n return new Promise<T>((resolve, reject) => {\n if (signal.aborted) {\n reject(new CollectionAbortError(signal.reason));\n return;\n }\n const onAbort = () => reject(new CollectionAbortError(signal.reason));\n signal.addEventListener(\"abort\", onAbort, { once: true });\n promise.then(\n (value) => {\n signal.removeEventListener(\"abort\", onAbort);\n resolve(value);\n },\n (error) => {\n signal.removeEventListener(\"abort\", onAbort);\n reject(error);\n }\n );\n });\n}\n\nfunction throwIfAborted(signal: AbortSignal | undefined): void {\n if (signal?.aborted) throw new CollectionAbortError(signal.reason);\n}\n\nfunction createYielder(budgetMs: number): () => Promise<void> {\n let last = Date.now();\n return async () => {\n const now = Date.now();\n if (budgetMs > 0 && now - last < budgetMs) return;\n await new Promise<void>((resolve) => setTimeout(resolve, 0));\n last = Date.now();\n };\n}\n\n/**\n * Run `fn` over `items` with at most `concurrency` tasks started ahead of the consumer, and\n * yield results strictly in item order. A task is only started when the consumer has pulled\n * within `concurrency` of it, which is the backpressure. `fn` must not reject for item-level\n * failures (it returns failure records); only aborts propagate.\n */\nasync function* orderedBounded<T, R>(\n items: readonly T[],\n concurrency: number,\n fn: (item: T, index: number) => Promise<R>,\n signal: AbortSignal | undefined,\n yieldToLoop: () => Promise<void>\n): AsyncGenerator<R, void, void> {\n const pending = new Map<number, Promise<R>>();\n let next = 0;\n let emitted = 0;\n while (emitted < items.length) {\n throwIfAborted(signal);\n while (next < items.length && next - emitted < concurrency) {\n const index = next++;\n const task = (async () => {\n throwIfAborted(signal);\n return fn(items[index], index);\n })();\n task.catch(() => undefined); // never an unhandled rejection if we stop early\n pending.set(index, task);\n }\n const result = await raceAbort(pending.get(emitted) as Promise<R>, signal);\n pending.delete(emitted);\n emitted += 1;\n yield result;\n await yieldToLoop();\n }\n}\n\nfunction toItemError(error: unknown, fallbackCode: string): ItemError {\n const code = (error as { code?: unknown } | null)?.code;\n return {\n code: typeof code === \"string\" ? code : fallbackCode,\n message: error instanceof Error ? error.message : String(error),\n };\n}\n\nlet defaultChartPromise: Promise<ChartComputer> | null = null;\nfunction defaultChartComputer(): Promise<ChartComputer> {\n // Dynamic import: avoids a load-time cycle with \"./index\" (which re-exports this module).\n defaultChartPromise ??= import(\"./index\").then((mod) => (input: BirthChartOptions) => mod.getBirthChart(input));\n return defaultChartPromise;\n}\n\n// ---------------------------------------------------------------------------\n// Default pair computation\n// ---------------------------------------------------------------------------\n\n/**\n * Pair-eligible points of a person: all chart planets plus ascendant and MC. Untimed and\n * partial people lose the Moon (noon placeholder) and both angles; withheld keys are listed.\n */\nexport function getEligiblePairPoints(person: PreparedPerson): {\n points: Record<string, { longitude: number }>;\n excluded: string[];\n} {\n const points: Record<string, { longitude: number }> = {};\n const excluded: string[] = [];\n for (const [key, planet] of Object.entries(person.chart.planets ?? {})) {\n if (!person.timed && key === \"moon\") excluded.push(key);\n else points[key] = { longitude: planet.longitude };\n }\n const asc = person.chart.houses?.ascendant?.longitude;\n const mc = person.chart.houses?.mc?.longitude;\n if (person.timed && asc !== undefined && mc !== undefined) {\n points.ascendant = { longitude: asc };\n points.mc = { longitude: mc };\n } else {\n excluded.push(\"ascendant\", \"mc\");\n }\n return { points, excluded };\n}\n\n/** Default pair function: inter-chart aspects over the eligible points (tropical longitudes, no shared state). */\nexport const defaultPairComputer: PairComputer = (a, b, context) => {\n const ea = getEligiblePairPoints(a);\n const eb = getEligiblePairPoints(b);\n const aspects = computeSynastryAspects(ea.points, eb.points, context.aspectSpecs);\n const partial = !a.timed || !b.timed;\n return { aspects, partial, excludedPoints: { a: ea.excluded, b: eb.excluded } };\n};\n\n// ---------------------------------------------------------------------------\n// Public API\n// ---------------------------------------------------------------------------\n\nfunction pointLongitudes(chart: BirthChart): Record<string, number> {\n const out: Record<string, number> = {};\n for (const [key, planet] of Object.entries(chart.planets ?? {})) out[key] = planet.longitude;\n return out;\n}\n\n/**\n * Stream a collection as deterministic records: all people, then all events, then all\n * pairs, then one summary. Validation errors throw synchronously from this call; abort\n * rejects the iterator with `CollectionAbortError`. Pull-based: nothing runs ahead of the\n * consumer by more than `concurrency` items (backpressure), so it suits NDJSON streaming.\n */\nexport function iterateCollection(\n manifest: CollectionManifest,\n options: CollectionOptions = {}\n): AsyncGenerator<CollectionRecord, void, void> {\n const plan = planCollection(manifest, options);\n return runCollection(plan, options);\n}\n\nasync function* runCollection(\n plan: Plan,\n options: CollectionOptions\n): AsyncGenerator<CollectionRecord, void, void> {\n const { signal } = options;\n const includeCharts = options.includeCharts === true;\n const yieldToLoop = createYielder(options.yieldBudgetMs ?? 8);\n const computeChart = options.computeChart ?? (await defaultChartComputer());\n const computePair = options.computePair ?? defaultPairComputer;\n const progress = (p: CollectionProgress) => options.onProgress?.(p);\n\n const prepared: Array<PreparedPerson | null> = new Array(plan.people.length).fill(null);\n const failedPeople = new Map<number, ItemError>();\n const summary = {\n people: { total: plan.people.length, ok: 0, failed: 0 },\n events: { total: plan.events.length, ok: 0, failed: 0 },\n pairs: { total: plan.pairs.length, ok: 0, unavailable: 0, partial: 0, aspects: 0 },\n };\n\n throwIfAborted(signal);\n\n // People ------------------------------------------------------------------\n let completed = 0;\n for await (const record of orderedBounded(\n plan.people,\n plan.concurrency,\n async (person, index): Promise<PersonRecord> => {\n const quality = person.quality ?? \"recorded\";\n const timed = isTimedQuality(quality);\n try {\n const chart = person.precomputed ?? (await computeChart(person.chart as BirthChartOptions, { id: person.id, kind: \"person\" }));\n if (!chart || typeof chart !== \"object\" || !chart.planets) {\n throw new CollectionError(\"INVALID_MANIFEST\", `Chart for \"${person.id}\" has no planets.`);\n }\n const preparedPerson: PreparedPerson = { id: person.id, index, quality, timed, chart };\n prepared[index] = preparedPerson;\n const eligible = getEligiblePairPoints(preparedPerson);\n const points: Record<string, number> = {};\n for (const [key, p] of Object.entries(eligible.points)) {\n if (key !== \"ascendant\" && key !== \"mc\") points[key] = p.longitude;\n }\n const rec: PersonRecordOk = {\n type: \"person\",\n id: person.id,\n index,\n ok: true,\n quality,\n timed,\n points,\n excludedPoints: eligible.excluded,\n };\n if (timed && eligible.points.ascendant && eligible.points.mc) {\n rec.angles = { ascendant: eligible.points.ascendant.longitude, mc: eligible.points.mc.longitude };\n }\n if (includeCharts) rec.chart = chart;\n return rec;\n } catch (error) {\n if (signal?.aborted) throw new CollectionAbortError(signal.reason);\n const itemError = toItemError(error, \"CHART_FAILED\");\n failedPeople.set(index, itemError);\n return { type: \"person\", id: person.id, index, ok: false, quality, error: itemError };\n }\n },\n signal,\n yieldToLoop\n )) {\n completed += 1;\n if (record.ok) summary.people.ok += 1;\n else summary.people.failed += 1;\n progress({ phase: \"people\", completed, total: plan.people.length, id: record.id });\n yield record;\n }\n\n // Events ------------------------------------------------------------------\n completed = 0;\n for await (const record of orderedBounded(\n plan.events,\n plan.concurrency,\n async (event, index): Promise<EventRecord> => {\n try {\n const input: BirthChartOptions = {\n date: event.date,\n latitude: event.latitude ?? 0,\n longitude: event.longitude ?? 0,\n timeZoneSettings: event.timeZoneSettings ?? { treatAsUTC: true },\n };\n const chart = await computeChart(input, { id: event.id, kind: \"event\" });\n const rec: EventRecordOk = { type: \"event\", id: event.id, index, ok: true, points: pointLongitudes(chart) };\n if (includeCharts) rec.chart = chart;\n return rec;\n } catch (error) {\n if (signal?.aborted) throw new CollectionAbortError(signal.reason);\n return { type: \"event\", id: event.id, index, ok: false, error: toItemError(error, \"CHART_FAILED\") };\n }\n },\n signal,\n yieldToLoop\n )) {\n completed += 1;\n if (record.ok) summary.events.ok += 1;\n else summary.events.failed += 1;\n progress({ phase: \"events\", completed, total: plan.events.length, id: record.id });\n yield record;\n }\n\n // Pairs -------------------------------------------------------------------\n completed = 0;\n for await (const record of orderedBounded(\n plan.pairs,\n plan.concurrency,\n async ([ia, ib]): Promise<PairRecord> => {\n const idA = plan.people[ia].id;\n const idB = plan.people[ib].id;\n const a = prepared[ia];\n const b = prepared[ib];\n if (!a || !b) {\n const unavailablePeople = [a ? null : idA, b ? null : idB].filter((x): x is string => x !== null);\n const reasons = unavailablePeople.map((id) => {\n const idx = id === idA ? ia : ib;\n return `${id}: ${failedPeople.get(idx)?.message ?? \"chart unavailable\"}`;\n });\n return {\n type: \"pair\",\n idA,\n idB,\n indexA: ia,\n indexB: ib,\n ok: false,\n error: { code: \"PERSON_UNAVAILABLE\", message: `Pair unavailable (${reasons.join(\"; \")}).` },\n unavailablePeople,\n };\n }\n try {\n const result = await computePair(a, b, { aspectSpecs: options.aspectSpecs, signal });\n const rec: PairRecordOk = {\n type: \"pair\",\n idA,\n idB,\n indexA: ia,\n indexB: ib,\n ok: true,\n partial: result.partial ?? false,\n excludedPoints: result.excludedPoints ?? { a: [], b: [] },\n aspectCount: result.aspects.length,\n aspects: result.aspects,\n };\n if (result.metadata) rec.metadata = result.metadata;\n return rec;\n } catch (error) {\n if (signal?.aborted) throw new CollectionAbortError(signal.reason);\n return {\n type: \"pair\",\n idA,\n idB,\n indexA: ia,\n indexB: ib,\n ok: false,\n error: toItemError(error, \"PAIR_FAILED\"),\n unavailablePeople: [],\n };\n }\n },\n signal,\n yieldToLoop\n )) {\n completed += 1;\n if (record.ok) {\n summary.pairs.ok += 1;\n summary.pairs.aspects += record.aspectCount;\n if (record.partial) summary.pairs.partial += 1;\n } else {\n summary.pairs.unavailable += 1;\n }\n progress({\n phase: \"pairs\",\n completed,\n total: plan.pairs.length,\n id: `${record.idA}~${record.idB}`,\n ids: [record.idA, record.idB],\n });\n yield record;\n }\n\n throwIfAborted(signal);\n yield {\n type: \"summary\",\n method: {\n id: COLLECTION_METHOD_VERSION,\n pairComputation: options.computePair ? \"custom\" : \"default-tropical-synastry\",\n chartComputation: options.computeChart ? \"custom\" : \"getBirthChart\",\n aspectSpecs: options.aspectSpecs ? \"custom\" : \"default\",\n ordering: \"people and events in manifest order; pairs by manifest index (i<j)\",\n executionModel:\n \"async scheduling over synchronous WASM calls; concurrency bounds in-flight tasks, not ephemeris parallelism\",\n },\n selection: { mode: plan.mode, pairCount: plan.pairs.length },\n ...summary,\n skippedPeople: plan.skippedPeople,\n options: { concurrency: plan.concurrency, includeCharts },\n };\n}\n\n/** Aggregate variant (the default): runs `iterateCollection` to completion and groups the records. */\nexport async function computeCollection(\n manifest: CollectionManifest,\n options: CollectionOptions = {}\n): Promise<CollectionResult> {\n const people: PersonRecord[] = [];\n const events: EventRecord[] = [];\n const pairs: PairRecord[] = [];\n let summary: CollectionSummary | null = null;\n for await (const record of iterateCollection(manifest, options)) {\n if (record.type === \"person\") people.push(record);\n else if (record.type === \"event\") events.push(record);\n else if (record.type === \"pair\") pairs.push(record);\n else summary = record;\n }\n return { method: COLLECTION_METHOD_VERSION, people, events, pairs, summary: summary as CollectionSummary };\n}\n","{\n \"name\": \"kaabalah\",\n \"version\": \"6.17.0\",\n \"description\": \"The de-facto library for any esoteric calculations and tooling\",\n \"engines\": {\n \"node\": \">=18.18.0\"\n },\n \"bin\": {\n \"kaabalah\": \"dist/cli.js\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/mdnm/kaabalah.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/mdnm/kaabalah/issues\"\n },\n \"homepage\": \"https://github.com/mdnm/kaabalah#readme\",\n \"main\": \"dist/index.js\",\n \"module\": \"dist/index.mjs\",\n \"types\": \"dist/index.d.ts\",\n \"exports\": {\n \"./swisseph-runtime\": {\n \"node\": \"./wasm/build/swisseph.node.js\",\n \"default\": \"./wasm/build/swisseph.web.js\"\n },\n \"./swisseph-wasm\": {\n \"node\": \"./wasm/build/swisseph.node.wasm\",\n \"default\": \"./wasm/build/swisseph.web.wasm\"\n },\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"require\": \"./dist/index.js\",\n \"import\": \"./dist/index.mjs\"\n },\n \"./core\": {\n \"types\": \"./dist/core/index.d.ts\",\n \"require\": \"./dist/core/index.js\",\n \"import\": \"./dist/core/index.mjs\"\n },\n \"./numerology\": {\n \"types\": \"./dist/numerology/index.d.ts\",\n \"require\": \"./dist/numerology/index.js\",\n \"import\": \"./dist/numerology/index.mjs\"\n },\n \"./astrology\": {\n \"types\": \"./dist/astrology/index.d.ts\",\n \"require\": \"./dist/astrology/index.js\",\n \"import\": \"./dist/astrology/index.mjs\"\n },\n \"./gematria\": {\n \"types\": \"./dist/gematria/index.d.ts\",\n \"require\": \"./dist/gematria/index.js\",\n \"import\": \"./dist/gematria/index.mjs\"\n },\n \"./tarot\": {\n \"types\": \"./dist/tarot/index.d.ts\",\n \"require\": \"./dist/tarot/index.js\",\n \"import\": \"./dist/tarot/index.mjs\"\n },\n \"./ifa\": {\n \"types\": \"./dist/ifa/index.d.ts\",\n \"require\": \"./dist/ifa/index.js\",\n \"import\": \"./dist/ifa/index.mjs\"\n },\n \"./semantic\": {\n \"types\": \"./dist/semantic/index.d.ts\",\n \"require\": \"./dist/semantic/index.js\",\n \"import\": \"./dist/semantic/index.mjs\"\n },\n \"./visual\": {\n \"types\": \"./dist/visual/index.d.ts\",\n \"require\": \"./dist/visual/index.js\",\n \"import\": \"./dist/visual/index.mjs\"\n },\n \"./iching\": {\n \"types\": \"./dist/iching/index.d.ts\",\n \"require\": \"./dist/iching/index.js\",\n \"import\": \"./dist/iching/index.mjs\"\n }\n },\n \"files\": [\n \"dist\",\n \"wasm/build\",\n \"ephe\",\n \"dist/cli.js\"\n ],\n \"scripts\": {\n \"build\": \"tsup\",\n \"dev\": \"tsup --watch\",\n \"typecheck\": \"tsc --noEmit\",\n \"test\": \"vitest run --silent\",\n \"test:watch\": \"vitest watch --silent\",\n \"test:coverage\": \"vitest run --coverage --silent\",\n \"test:ui\": \"vitest --ui --silent\",\n \"test:package\": \"npm run build && node scripts/smoke-packed.mjs\",\n \"test:browser\": \"npm run build && node scripts/smoke-browser.mjs\",\n \"prepare-browser-test\": \"cp wasm/build/swisseph.web.wasm wasm/build/swisseph.web.js examples/ && cp -RL ephe examples/\",\n \"generate:trees\": \"npx tsx examples/generate-tree-svg.ts\",\n \"generate:wheel\": \"npx tsx examples/generate-astro-wheel-svgs.ts\",\n \"generate:wheels\": \"npx tsx examples/generate-astro-wheel-svgs.ts\",\n \"generate:archeometer\": \"npx tsx examples/generate-archeometer-svg.ts\",\n \"generate:svgs\": \"npm run generate:trees && npm run generate:wheels && npm run generate:archeometer\",\n \"prepublishOnly\": \"npm run build && mkdir -p dist/wasm/build/ && cp dist/swisseph* dist/wasm/build/ && npm run generate:svgs\"\n },\n \"keywords\": [\n \"numerology\",\n \"astrology\",\n \"kabbalah\",\n \"mayan\",\n \"tzolkin\",\n \"hunab ku\",\n \"iching\",\n \"fengshui\",\n \"bagua\",\n \"gematria\",\n \"enneagram\",\n \"qabalah\",\n \"cabala\",\n \"tarot\",\n \"esoteric\",\n \"mysticism\"\n ],\n \"author\": \"Mat Moura <matmoura@kaabalah.com>\",\n \"license\": \"AGPL-3.0\",\n \"directories\": {\n \"doc\": \"docs\",\n \"example\": \"examples\"\n },\n \"dependencies\": {\n \"dotenv\": \"^17.3.1\",\n \"tz-lookup\": \"^6.1.25\"\n },\n \"devDependencies\": {\n \"@types/node\": \"20.11.5\",\n \"@vitest/coverage-v8\": \"1.3.1\",\n \"ts-node\": \"10.9.2\",\n \"tsup\": \"8.0.1\",\n \"typescript\": \"5.3.3\",\n \"vitest\": \"1.3.1\"\n }\n}\n","/**\n * Deterministic cache keys for chart-level calculations, plus a small bounded LRU memo.\n *\n * A key is the canonical JSON (sorted keys, normalised numbers) of EVERY input that can\n * change a result: the complete chart input, civil-time semantics, timezone and resolved\n * offset, coordinates, input quality, house system(s), point selection, orb policy,\n * method/frame, node convention, year length, GC constants, ephemeris identity, package\n * version and any extra configuration. A person's ID is never a key by itself; it is not\n * even an accepted component. A required component that is `undefined` throws a typed\n * `CacheKeyError`; `null` is an explicit \"not applicable\" (for example no GC constants in\n * a tropical calculation).\n *\n * Pure and browser-safe: no ephemeris access, no shared mutable state other than the memo\n * instance you create.\n */\n\nimport packageJson from \"../../package.json\";\nimport type { LocalDateTimeParts } from \"./swisseph\";\n\nexport const CACHE_KEY_VERSION = 1;\n\nexport type CacheKeyErrorCode =\n | \"MISSING_COMPONENT\"\n | \"INVALID_COMPONENT\"\n | \"INVALID_CACHE_OPTION\";\n\n/** Typed error raised by the cache-key builder and memo. `code` is stable API. */\nexport class CacheKeyError extends Error {\n readonly code: CacheKeyErrorCode;\n readonly component: string | null;\n\n constructor(code: CacheKeyErrorCode, message: string, component: string | null = null) {\n super(message);\n this.name = \"CacheKeyError\";\n this.code = code;\n this.component = component;\n }\n}\n\n// ---------------------------------------------------------------------------\n// Canonical JSON\n// ---------------------------------------------------------------------------\n\n/** Normalise a finite number: -0 becomes 0 and float noise beyond 15 significant digits is dropped. */\nexport function normalizeKeyNumber(value: number): number {\n if (!Number.isFinite(value)) {\n throw new CacheKeyError(\"INVALID_COMPONENT\", `Non-finite number cannot be part of a cache key: ${value}`);\n }\n if (value === 0) return 0;\n return Number(value.toPrecision(15));\n}\n\nfunction canonicalize(value: unknown, path: string): unknown {\n if (value === null) return null;\n switch (typeof value) {\n case \"string\":\n case \"boolean\":\n return value;\n case \"number\":\n return normalizeKeyNumber(value);\n case \"undefined\":\n throw new CacheKeyError(\"MISSING_COMPONENT\", `Cache key component \"${path}\" is undefined.`, path);\n case \"object\": {\n if (value instanceof Date) {\n const time = value.getTime();\n if (Number.isNaN(time)) {\n throw new CacheKeyError(\"INVALID_COMPONENT\", `Invalid Date at \"${path}\".`, path);\n }\n return { $date: value.toISOString() };\n }\n if (Array.isArray(value)) {\n return value.map((item, index) => canonicalize(item, `${path}[${index}]`));\n }\n const out: Record<string, unknown> = {};\n for (const key of Object.keys(value as object).sort()) {\n out[key] = canonicalize((value as Record<string, unknown>)[key], `${path}.${key}`);\n }\n return out;\n }\n default:\n throw new CacheKeyError(\n \"INVALID_COMPONENT\",\n `Unsupported value of type ${typeof value} at \"${path}\".`,\n path\n );\n }\n}\n\n/** Stable JSON: object keys sorted recursively, numbers normalised, Dates tagged. No whitespace. */\nexport function canonicalJson(value: unknown): string {\n return JSON.stringify(canonicalize(value, \"$\"));\n}\n\n// ---------------------------------------------------------------------------\n// Chart cache key\n// ---------------------------------------------------------------------------\n\nexport type CacheInputQuality = \"recorded\" | \"rectified\" | \"untimed\" | \"partial\";\n\nexport type CivilTimeSemantics =\n | \"utc-instant\"\n | \"civil-iana\"\n | \"civil-fixed-offset\"\n | \"local-mean-time\";\n\nexport type CacheKeyChartDate =\n | { kind: \"utc\"; iso: string }\n | {\n kind: \"local\";\n year: number;\n month: number;\n day: number;\n hour: number;\n minute: number;\n second: number;\n };\n\nexport interface CacheEphemerisIdentity {\n /** \"swiss\" | \"moshier\" | \"jpl\" (as reported by Swiss Ephemeris) or \"none\" for ephemeris-free math. */\n kind: string;\n /** Swiss Ephemeris version when known, else null. */\n swissEphemerisVersion: string | null;\n /** Free-form data-set identity (for example the file set); null when not tracked. */\n dataSet: string | null;\n}\n\nexport interface ChartCacheKeyComponents {\n /** Normalised date (see `normalizeChartDate`). */\n date: CacheKeyChartDate;\n timeSemantics: CivilTimeSemantics;\n /** IANA zone used, or null when an explicit offset / UTC was used. */\n timeZone: string | null;\n /** Offset in minutes (east positive) that was actually applied; null only for `utc-instant`. */\n resolvedUtcOffsetMinutes: number | null;\n latitude: number;\n longitude: number;\n quality: CacheInputQuality;\n /** House system codes (\"P\", \"W\", ...); treated as a set. Empty array = houses not computed. */\n houseSystems: readonly string[];\n /** Point selection (chart point keys); treated as a set. */\n points: readonly string[];\n /** Orb policy object or identifier; use `null` only for \"no aspects computed\". */\n orbPolicy: unknown;\n /** Zodiac / nakshatra frame: \"tropical\" | \"lahiri\" | \"dhruva\" | other identifier. */\n frame: string;\n nodeConvention: \"mean\" | \"true\" | null;\n yearLengthDays: number | null;\n /** Dhruva GC constants (or null when not applicable). */\n gcConstants: unknown;\n ephemeris: CacheEphemerisIdentity;\n /** Defaults to this package's version; override only to key by a different producer. */\n packageVersion?: string;\n /** Any other configuration that can change the result. */\n extra?: Record<string, unknown>;\n}\n\nconst REQUIRED_COMPONENTS = [\n \"date\",\n \"timeSemantics\",\n \"timeZone\",\n \"resolvedUtcOffsetMinutes\",\n \"latitude\",\n \"longitude\",\n \"quality\",\n \"houseSystems\",\n \"points\",\n \"orbPolicy\",\n \"frame\",\n \"nodeConvention\",\n \"yearLengthDays\",\n \"gcConstants\",\n \"ephemeris\",\n] as const satisfies readonly (keyof ChartCacheKeyComponents)[];\n\n/** Names of the components `buildChartCacheKey` requires (explicit `null` is allowed where documented). */\nexport const CHART_CACHE_KEY_REQUIRED_COMPONENTS: readonly string[] = REQUIRED_COMPONENTS;\n\nexport const PACKAGE_VERSION: string = packageJson.version;\n\nfunction normalizeSet(name: string, value: readonly string[]): string[] {\n if (!Array.isArray(value)) {\n throw new CacheKeyError(\"INVALID_COMPONENT\", `\"${name}\" must be an array of strings.`, name);\n }\n for (const item of value) {\n if (typeof item !== \"string\") {\n throw new CacheKeyError(\"INVALID_COMPONENT\", `\"${name}\" must contain only strings.`, name);\n }\n }\n return [...new Set(value)].sort();\n}\n\n/**\n * Normalise a `BirthChartOptions.date` to its canonical key form. A `Date` is read with local\n * getters (the same convention `getBirthChart` uses), so the key matches the calculation.\n */\nexport function normalizeChartDate(date: Date | LocalDateTimeParts): CacheKeyChartDate {\n if (date instanceof Date) {\n if (Number.isNaN(date.getTime())) {\n throw new CacheKeyError(\"INVALID_COMPONENT\", \"Invalid Date.\", \"date\");\n }\n return {\n kind: \"local\",\n year: date.getFullYear(),\n month: date.getMonth() + 1,\n day: date.getDate(),\n hour: date.getHours(),\n minute: date.getMinutes(),\n second: date.getSeconds(),\n };\n }\n return {\n kind: \"local\",\n year: date.year,\n month: date.month,\n day: date.day,\n hour: date.hour ?? 0,\n minute: date.minute ?? 0,\n second: date.second ?? 0,\n };\n}\n\n/** Canonical form of an already-UTC instant. */\nexport function normalizeUtcInstant(instant: Date | string): CacheKeyChartDate {\n const date = instant instanceof Date ? instant : new Date(instant);\n if (Number.isNaN(date.getTime())) {\n throw new CacheKeyError(\"INVALID_COMPONENT\", \"Invalid UTC instant.\", \"date\");\n }\n return { kind: \"utc\", iso: date.toISOString() };\n}\n\n/**\n * Offset (minutes, east positive) between local wall-clock parts and the UTC instant they\n * resolved to, for example `resolveUtcOffsetMinutes(localParts, chart.dateUtc)`.\n */\nexport function resolveUtcOffsetMinutes(\n local: LocalDateTimeParts,\n dateUtc: Date\n): number {\n const asUtc = Date.UTC(\n local.year,\n local.month - 1,\n local.day,\n local.hour ?? 0,\n local.minute ?? 0,\n local.second ?? 0\n );\n return normalizeKeyNumber((asUtc - dateUtc.getTime()) / 60000);\n}\n\n/** Ephemeris identity read from the running engine (pass `getSwissEphInfo()`); `kind` falls back to \"unknown\". */\nexport function ephemerisIdentityFromInfo(info: {\n probe: { ephemeris: string | null } | null;\n swissEphemerisVersion: string | null;\n ephemerisFiles: { found: string[] };\n}): CacheEphemerisIdentity {\n return {\n kind: info.probe?.ephemeris ?? \"unknown\",\n swissEphemerisVersion: info.swissEphemerisVersion,\n dataSet: info.ephemerisFiles.found.length ? [...info.ephemerisFiles.found].sort().join(\",\") : null,\n };\n}\n\n/**\n * Build the cache key for a chart-level result. Throws `CacheKeyError(\"MISSING_COMPONENT\")`\n * when any required component is `undefined`.\n */\nexport function buildChartCacheKey(components: ChartCacheKeyComponents): string {\n if (components === null || typeof components !== \"object\") {\n throw new CacheKeyError(\"INVALID_COMPONENT\", \"Cache key components must be an object.\");\n }\n const record = components as unknown as Record<string, unknown>;\n const missing = REQUIRED_COMPONENTS.filter((name) => record[name] === undefined);\n if (missing.length > 0) {\n throw new CacheKeyError(\n \"MISSING_COMPONENT\",\n `Missing required cache key component(s): ${missing.join(\", \")}. Use null where a component does not apply.`,\n missing[0]\n );\n }\n const eph = components.ephemeris;\n if (eph === null || typeof eph !== \"object\" || eph.kind === undefined || eph.swissEphemerisVersion === undefined || eph.dataSet === undefined) {\n throw new CacheKeyError(\n \"MISSING_COMPONENT\",\n \"ephemeris must provide kind, swissEphemerisVersion and dataSet (null when unknown).\",\n \"ephemeris\"\n );\n }\n const body = {\n keyVersion: CACHE_KEY_VERSION,\n kind: \"chart\",\n packageVersion: components.packageVersion ?? PACKAGE_VERSION,\n date: components.date,\n timeSemantics: components.timeSemantics,\n timeZone: components.timeZone,\n resolvedUtcOffsetMinutes: components.resolvedUtcOffsetMinutes,\n latitude: components.latitude,\n longitude: components.longitude,\n quality: components.quality,\n houseSystems: normalizeSet(\"houseSystems\", components.houseSystems),\n points: normalizeSet(\"points\", components.points),\n orbPolicy: components.orbPolicy,\n frame: components.frame,\n nodeConvention: components.nodeConvention,\n yearLengthDays: components.yearLengthDays,\n gcConstants: components.gcConstants,\n ephemeris: components.ephemeris,\n extra: components.extra ?? {},\n };\n return `kaabalah:chart:v${CACHE_KEY_VERSION}:${canonicalJson(body)}`;\n}\n\n// ---------------------------------------------------------------------------\n// Bounded LRU memo\n// ---------------------------------------------------------------------------\n\nexport interface BoundedMemoOptions {\n /** Maximum number of entries (>= 1). Least recently used entries are evicted first. */\n maxEntries: number;\n}\n\nexport interface BoundedMemoStats {\n size: number;\n maxEntries: number;\n hits: number;\n misses: number;\n evictions: number;\n}\n\nexport interface BoundedMemo<T> {\n get(key: string): T | undefined;\n has(key: string): boolean;\n set(key: string, value: T): void;\n /** Return the cached value or compute, store and return it. Concurrent calls share one computation; failures are not cached. */\n getOrCompute(key: string, compute: () => T | Promise<T>): T | Promise<T>;\n delete(key: string): boolean;\n clear(): void;\n readonly size: number;\n stats(): BoundedMemoStats;\n}\n\n/**\n * Small LRU memo keyed by strings from `buildChartCacheKey`. Because keys embed the full\n * configuration, two incompatible configurations can never share an entry.\n */\nexport function createBoundedMemo<T>(options: BoundedMemoOptions): BoundedMemo<T> {\n const max = options?.maxEntries;\n if (!Number.isInteger(max) || max < 1) {\n throw new CacheKeyError(\"INVALID_CACHE_OPTION\", \"maxEntries must be an integer >= 1.\");\n }\n const map = new Map<string, T>();\n let hits = 0;\n let misses = 0;\n let evictions = 0;\n\n const touch = (key: string, value: T) => {\n map.delete(key);\n map.set(key, value);\n };\n const store = (key: string, value: T) => {\n touch(key, value);\n while (map.size > max) {\n const oldest = map.keys().next().value as string;\n map.delete(oldest);\n evictions += 1;\n }\n };\n\n return {\n get(key) {\n if (!map.has(key)) return undefined;\n const value = map.get(key) as T;\n touch(key, value);\n return value;\n },\n has: (key) => map.has(key),\n set: store,\n getOrCompute(key, compute) {\n if (map.has(key)) {\n hits += 1;\n const value = map.get(key) as T;\n touch(key, value);\n return value;\n }\n misses += 1;\n const result = compute();\n if (result instanceof Promise) {\n // Store the in-flight promise so concurrent callers share it; drop it on failure.\n store(key, result as unknown as T);\n result.catch(() => {\n if (map.get(key) === (result as unknown as T)) map.delete(key);\n });\n return result;\n }\n store(key, result);\n return result;\n },\n delete: (key) => map.delete(key),\n clear() {\n map.clear();\n },\n get size() {\n return map.size;\n },\n stats: () => ({ size: map.size, maxEntries: max, hits, misses, evictions }),\n };\n}\n","/**\n * Capability discovery: a versioned, JSON-serialisable description of what this build of\n * kaabalah can compute, with the limits it enforces. Lets callers (and agents) check support\n * instead of inspecting bundles or catching failures.\n *\n * `getCapabilities()` never throws and never initialises the engine; ephemeris coverage is\n * taken from `getSwissEphInfo()` when the engine is initialised and otherwise reported as the\n * static shipped range, flagged `source: \"static\"`.\n *\n * `assertEphemerisReady()` turns a missing runtime or missing data into an actionable\n * `SwissEphError` (existing codes; no competing error hierarchy).\n */\n\nimport { DEFAULT_ASPECT_SPECS } from \"./aspects\";\nimport { COLLECTION_HARD_LIMITS, COLLECTION_METHOD_VERSION } from \"./collection\";\nimport { CACHE_KEY_VERSION, PACKAGE_VERSION } from \"./cache-key\";\nimport { DHRUVA_CONSTANTS, JYOTISH_METHODS } from \"./jyotish\";\nimport {\n HouseSystem,\n PLANET_AND_NODE_NAMES,\n Planet,\n REQUIRED_EPHE_FILES,\n SwissEphError,\n getSwissEphInfo,\n} from \"./swisseph\";\nimport {\n MAX_CANDIDATE_DATES,\n MAX_SCHEDULE_YEAR,\n MAX_TIMELINE_INTERVALS_HARD_CAP,\n MAX_TIMELINE_RANGE_DAYS,\n SCHEDULE_METHOD_VERSION,\n type LifePathMethod,\n type MasterPolicy,\n type ShortMonthPolicy,\n} from \"../numerology/schedule-types\";\nimport { TIMELINE_LAYERS } from \"../numerology/schedule\";\n\nexport const CAPABILITIES_SCHEMA_VERSION = 1;\n\nexport const KAABALAH_MODULES = [\n \"core\",\n \"numerology\",\n \"astrology\",\n \"gematria\",\n \"tarot\",\n \"iching\",\n \"ifa\",\n \"semantic\",\n \"visual\",\n] as const;\n\nexport const INPUT_QUALITY_KINDS = [\n {\n id: \"recorded\",\n timed: true,\n description: \"Birth time recorded by a source; angles, houses and Moon degree are used.\",\n },\n {\n id: \"rectified\",\n timed: true,\n description: \"Birth time derived by rectification; angles are marked and may be excluded by analysis selectors.\",\n },\n {\n id: \"untimed\",\n timed: false,\n description: \"Birth time unknown; noon positions are placeholders; Moon degree, angles, houses and lots are withheld.\",\n },\n {\n id: \"partial\",\n timed: false,\n description: \"Date or time only partly known; treated like untimed for time-dependent points.\",\n },\n] as const;\n\nexport interface CapabilityPoint {\n /** Key used in `BirthChart.planets` (lower-cased display name). */\n key: string;\n name: string;\n swissId: number | null;\n}\n\nexport interface Capabilities {\n schemaVersion: number;\n kind: \"kaabalah-capabilities\";\n packageVersion: string;\n modules: string[];\n astrology: {\n houseSystems: { id: string; name: string }[];\n /** Points available from the ephemeris (chart planets/nodes/asteroids) plus derived chart angles. */\n points: CapabilityPoint[];\n derivedPoints: string[];\n virtualPoints: string[];\n aspects: { name: string; angle: number; defaultOrb: number }[];\n zodiacFrames: { id: \"tropical\" | \"lahiri\" | \"dhruva\"; kind: \"zodiac\" | \"nakshatra\"; description: string }[];\n nodeConventions: (\"mean\" | \"true\")[];\n defaults: {\n houseSystem: string;\n nodeConvention: \"mean\" | \"true\";\n nakshatraFrame: \"dhruva\" | \"lahiri\";\n yearLengthDays: { dhruva: number; lahiri: number };\n };\n gcConstants: { dhruva: Record<string, number> };\n methods: { jyotish: string; collection: string; cacheKey: number };\n inputQualities: { id: string; timed: boolean; description: string }[];\n ephemeris: {\n initialized: boolean;\n /** \"runtime\" when read from the initialised engine, \"static\" when only the shipped range is known. */\n coverageSource: \"runtime\" | \"static\";\n coverage: { fromYear: number; toYearExclusive: number; note: string };\n requiredFiles: string[];\n missingFiles: string[];\n swissEphemerisVersion: string | null;\n strictEphemeris: boolean;\n substitutionNote: string;\n };\n };\n numerology: {\n methodVersion: string;\n layers: string[];\n lifePathMethods: LifePathMethod[];\n masterPolicies: MasterPolicy[];\n shortMonthPolicies: ShortMonthPolicy[];\n };\n limits: {\n collection: { maxPeople: number; maxEvents: number; maxPairs: number; maxConcurrency: number };\n numerology: {\n maxScheduleYear: number;\n maxTimelineRangeDays: number;\n maxTimelineIntervals: number;\n maxCandidateDates: number;\n };\n };\n errors: { swissEph: string[]; collection: string[]; cacheKey: string[] };\n}\n\nconst LIFE_PATH_METHODS: LifePathMethod[] = [\"kaabalistic\", \"straight-across\"];\nconst MASTER_POLICIES: MasterPolicy[] = [\"preserve\", \"reduce\"];\nconst SHORT_MONTH_POLICIES: ShortMonthPolicy[] = [\"next-month-first\", \"clamp\", \"overflow\"];\n\nconst SWISS_ERROR_CODES = [\n \"SWISSEPH_NOT_INITIALIZED\",\n \"SWISSEPH_ASSET_NOT_FOUND\",\n \"SWISSEPH_NODE_BUILTINS_UNAVAILABLE\",\n \"SWISSEPH_EPHEMERIS_FILES_UNAVAILABLE\",\n \"SWISSEPH_EPHEMERIS_FILE_UNAVAILABLE\",\n \"SWISSEPH_DATE_OUT_OF_RANGE\",\n \"SWISSEPH_EPHEMERIS_MISMATCH\",\n \"SWISSEPH_CALCULATION_FAILED\",\n \"SWISSEPH_STATE_MISUSE\",\n] as const;\n\nconst COLLECTION_ERROR_CODES = [\n \"INVALID_MANIFEST\",\n \"DUPLICATE_ID\",\n \"UNKNOWN_PAIR_ID\",\n \"SELF_PAIR\",\n \"MANIFEST_TOO_LARGE\",\n \"INVALID_OPTION\",\n \"ABORTED\",\n] as const;\n\nconst CACHE_KEY_ERROR_CODES = [\"MISSING_COMPONENT\", \"INVALID_COMPONENT\", \"INVALID_CACHE_OPTION\"] as const;\n\nfunction listPoints(): CapabilityPoint[] {\n const points: CapabilityPoint[] = [];\n for (const [id, name] of Object.entries(PLANET_AND_NODE_NAMES)) {\n const numeric = Number(id);\n const swissId = Number.isInteger(numeric) && Planet[numeric] !== undefined ? numeric : null;\n if (swissId === null) continue; // virtual points are listed separately\n points.push({ key: name.toLowerCase(), name, swissId });\n }\n return points;\n}\n\n/** Describe what this build supports. Pure and cheap; the result is a fresh JSON-serialisable object. */\nexport function getCapabilities(): Capabilities {\n const info = getSwissEphInfo();\n const virtualPoints = Object.entries(PLANET_AND_NODE_NAMES)\n .filter(([id]) => !Number.isInteger(Number(id)))\n .map(([, name]) => name.toLowerCase());\n\n return {\n schemaVersion: CAPABILITIES_SCHEMA_VERSION,\n kind: \"kaabalah-capabilities\",\n packageVersion: PACKAGE_VERSION,\n modules: [...KAABALAH_MODULES],\n astrology: {\n houseSystems: (Object.entries(HouseSystem) as [string, string][]).map(([name, id]) => ({ id, name })),\n points: listPoints(),\n derivedPoints: [\"ascendant\", \"mc\", \"descendant\", \"ic\"],\n virtualPoints,\n aspects: DEFAULT_ASPECT_SPECS.map((s) => ({ name: s.name, angle: s.angle, defaultOrb: s.orb })),\n zodiacFrames: [\n { id: \"tropical\", kind: \"zodiac\", description: \"Tropical ecliptic longitude of date (default for charts).\" },\n { id: \"lahiri\", kind: \"nakshatra\", description: JYOTISH_METHODS.lahiri.name },\n { id: \"dhruva\", kind: \"nakshatra\", description: JYOTISH_METHODS.dhruva.name },\n ],\n nodeConventions: [\"mean\", \"true\"],\n defaults: {\n houseSystem: HouseSystem.PLACIDUS,\n nodeConvention: \"mean\",\n nakshatraFrame: \"dhruva\",\n yearLengthDays: {\n dhruva: DHRUVA_CONSTANTS.yearLengthDays,\n lahiri: JYOTISH_METHODS.lahiri.referenceYearLengthDays,\n },\n },\n gcConstants: { dhruva: { ...DHRUVA_CONSTANTS } },\n methods: {\n jyotish: JYOTISH_METHODS.version,\n collection: COLLECTION_METHOD_VERSION,\n cacheKey: CACHE_KEY_VERSION,\n },\n inputQualities: INPUT_QUALITY_KINDS.map((q) => ({ ...q })),\n ephemeris: {\n initialized: info.initialized,\n coverageSource: info.initialized ? \"runtime\" : \"static\",\n coverage: { ...info.shippedCoverage },\n requiredFiles: [...REQUIRED_EPHE_FILES],\n missingFiles: info.initialized ? [...info.ephemerisFiles.missing] : [...REQUIRED_EPHE_FILES],\n swissEphemerisVersion: info.swissEphemerisVersion,\n strictEphemeris: info.strictEphemeris,\n substitutionNote: info.shippedCoverage.note,\n },\n },\n numerology: {\n methodVersion: SCHEDULE_METHOD_VERSION,\n layers: [...TIMELINE_LAYERS],\n lifePathMethods: [...LIFE_PATH_METHODS],\n masterPolicies: [...MASTER_POLICIES],\n shortMonthPolicies: [...SHORT_MONTH_POLICIES],\n },\n limits: {\n collection: { ...COLLECTION_HARD_LIMITS },\n numerology: {\n maxScheduleYear: MAX_SCHEDULE_YEAR,\n maxTimelineRangeDays: MAX_TIMELINE_RANGE_DAYS,\n maxTimelineIntervals: MAX_TIMELINE_INTERVALS_HARD_CAP,\n maxCandidateDates: MAX_CANDIDATE_DATES,\n },\n },\n errors: {\n swissEph: [...SWISS_ERROR_CODES],\n collection: [...COLLECTION_ERROR_CODES],\n cacheKey: [...CACHE_KEY_ERROR_CODES],\n },\n };\n}\n\nexport interface EphemerisReadinessOptions {\n /** Require coverage of this civil year (Swiss files cover [fromYear, toYearExclusive)). */\n year?: number;\n}\n\n/**\n * Throw an actionable `SwissEphError` unless the engine is initialised, the required\n * ephemeris files are visible and (optionally) the requested year is covered.\n */\nexport function assertEphemerisReady(options: EphemerisReadinessOptions = {}): void {\n const info = getSwissEphInfo();\n if (!info.initialized) {\n throw new SwissEphError(\n \"SWISSEPH_NOT_INITIALIZED\",\n \"Swiss Ephemeris is not initialised. Call `await getSwissEph({ wasmPath, ephePath })` once before computing charts \" +\n \"(set WASM_PATH / EPHE_PATH, or use the packaged wasm/ and ephe/ directories).\",\n { required: [...REQUIRED_EPHE_FILES] }\n );\n }\n if (info.ephemerisFiles.missing.length > 0) {\n throw new SwissEphError(\n \"SWISSEPH_EPHEMERIS_FILES_UNAVAILABLE\",\n `Swiss Ephemeris data files are missing: ${info.ephemerisFiles.missing.join(\", \")}. ` +\n `Place them in the ephemeris path (${info.ephePath ?? \"unset\"}); without them calculations fall back to Moshier or fail in strict mode.`,\n { missing: [...info.ephemerisFiles.missing], ephePath: info.ephePath }\n );\n }\n if (options.year !== undefined) {\n const { fromYear, toYearExclusive } = info.shippedCoverage;\n if (!Number.isFinite(options.year) || options.year < fromYear || options.year >= toYearExclusive) {\n throw new SwissEphError(\n \"SWISSEPH_DATE_OUT_OF_RANGE\",\n `Year ${options.year} is outside the shipped ephemeris coverage ${fromYear}-${toYearExclusive - 1}. ` +\n \"Provide ephemeris files that cover it, or accept Moshier fallback outside strict mode.\",\n { year: options.year, fromYear, toYearExclusive }\n );\n }\n }\n}\n","{\n \"Aries\": {\n \"en\": \"Aries\",\n \"pt\": \"Áries\"\n },\n \"Taurus\": {\n \"en\": \"Taurus\",\n \"pt\": \"Touro\"\n },\n \"Gemini\": {\n \"en\": \"Gemini\",\n \"pt\": \"Gêmeos\"\n },\n \"Cancer\": {\n \"en\": \"Cancer\",\n \"pt\": \"Câncer\"\n },\n \"Leo\": {\n \"en\": \"Leo\",\n \"pt\": \"Leão\"\n },\n \"Virgo\": {\n \"en\": \"Virgo\",\n \"pt\": \"Virgem\"\n },\n \"Libra\": {\n \"en\": \"Libra\",\n \"pt\": \"Libra\"\n },\n \"Scorpio\": {\n \"en\": \"Scorpio\",\n \"pt\": \"Escorpião\"\n },\n \"Sagittarius\": {\n \"en\": \"Sagittarius\",\n \"pt\": \"Sagitário\"\n },\n \"Capricorn\": {\n \"en\": \"Capricorn\",\n \"pt\": \"Capricórnio\"\n },\n \"Aquarius\": {\n \"en\": \"Aquarius\",\n \"pt\": \"Aquário\"\n },\n \"Pisces\": {\n \"en\": \"Pisces\",\n \"pt\": \"Peixes\"\n },\n \"Sun\": {\n \"en\": \"Sun\",\n \"pt\": \"Sol\"\n },\n \"Moon\": {\n \"en\": \"Moon\",\n \"pt\": \"Lua\"\n },\n \"Mercury\": {\n \"en\": \"Mercury\",\n \"pt\": \"Mercúrio\"\n },\n \"Venus\": {\n \"en\": \"Venus\",\n \"pt\": \"Vênus\"\n },\n \"Mars\": {\n \"en\": \"Mars\",\n \"pt\": \"Marte\"\n },\n \"Jupiter\": {\n \"en\": \"Jupiter\",\n \"pt\": \"Júpiter\"\n },\n \"Saturn\": {\n \"en\": \"Saturn\",\n \"pt\": \"Saturno\"\n },\n \"Uranus\": {\n \"en\": \"Uranus\",\n \"pt\": \"Urano\"\n },\n \"Neptune\": {\n \"en\": \"Neptune\",\n \"pt\": \"Netuno\"\n },\n \"Pluto\": {\n \"en\": \"Pluto\",\n \"pt\": \"Plutão\"\n },\n \"Earth\": {\n \"en\": \"Earth\",\n \"pt\": \"Terra\"\n },\n \"Chiron\": {\n \"en\": \"Chiron\",\n \"pt\": \"Quíron\"\n },\n \"ASC\": {\n \"en\": \"ASC\",\n \"pt\": \"ASC\"\n },\n \"MC\": {\n \"en\": \"MC\",\n \"pt\": \"MC\"\n },\n \"DC\": {\n \"en\": \"DC\",\n \"pt\": \"DC\"\n },\n \"IC\": {\n \"en\": \"IC\",\n \"pt\": \"IC\"\n },\n \"Vertex\": {\n \"en\": \"Vertex\",\n \"pt\": \"Vértice\"\n },\n \"Wheel of Fortune\": {\n \"en\": \"Wheel of Fortune\",\n \"pt\": \"Roda da Fortuna\"\n },\n \"Mean Node\": {\n \"en\": \"Mean Node\",\n \"pt\": \"Nodo médio\"\n },\n \"True Node\": {\n \"en\": \"True Node\",\n \"pt\": \"Nodo verdadeiro\"\n },\n \"Lilith Mean\": {\n \"en\": \"Lilith Mean\",\n \"pt\": \"Lilith média\"\n },\n \"Lilith True\": {\n \"en\": \"Lilith True\",\n \"pt\": \"Lilith verdadeira\"\n },\n \"Conjunction\": {\n \"en\": \"Conjunction\",\n \"pt\": \"Conjunção\"\n },\n \"Duodecile\": {\n \"en\": \"Duodecile\",\n \"pt\": \"Semissextil\"\n },\n \"Octile\": {\n \"en\": \"Octile\",\n \"pt\": \"Semiquadratura\"\n },\n \"Sextile\": {\n \"en\": \"Sextile\",\n \"pt\": \"Sextil\"\n },\n \"Square\": {\n \"en\": \"Square\",\n \"pt\": \"Quadratura\"\n },\n \"Trine\": {\n \"en\": \"Trine\",\n \"pt\": \"Trígono\"\n },\n \"Trioctile\": {\n \"en\": \"Trioctile\",\n \"pt\": \"Sesquiquadratura\"\n },\n \"Quincunx\": {\n \"en\": \"Quincunx\",\n \"pt\": \"Quincúncio\"\n },\n \"Opposition\": {\n \"en\": \"Opposition\",\n \"pt\": \"Oposição\"\n },\n \"NorthNode\": {\n \"en\": \"NorthNode\",\n \"pt\": \"Nodo norte\"\n },\n \"SouthNode\": {\n \"en\": \"SouthNode\",\n \"pt\": \"Nodo sul\"\n },\n \"diurnal\": {\n \"en\": \"diurnal\",\n \"pt\": \"Diurna\"\n },\n \"nocturnal\": {\n \"en\": \"nocturnal\",\n \"pt\": \"Noturna\"\n },\n \"domicile\": {\n \"en\": \"domicile\",\n \"pt\": \"Domicílio\"\n },\n \"exaltation\": {\n \"en\": \"exaltation\",\n \"pt\": \"Exaltação\"\n },\n \"detriment\": {\n \"en\": \"detriment\",\n \"pt\": \"Detrimento\"\n },\n \"fall\": {\n \"en\": \"fall\",\n \"pt\": \"Queda\"\n },\n \"peregrine\": {\n \"en\": \"peregrine\",\n \"pt\": \"Peregrino\"\n },\n \"Fire\": {\n \"en\": \"Fire\",\n \"pt\": \"Fogo\"\n },\n \"Air\": {\n \"en\": \"Air\",\n \"pt\": \"Ar\"\n },\n \"Water\": {\n \"en\": \"Water\",\n \"pt\": \"Água\"\n },\n \"Ether\": {\n \"en\": \"Ether\",\n \"pt\": \"Éter\"\n },\n \"Cardinal\": {\n \"en\": \"Cardinal\",\n \"pt\": \"Cardinal\"\n },\n \"Fixed\": {\n \"en\": \"Fixed\",\n \"pt\": \"Fixo\"\n },\n \"Mutable\": {\n \"en\": \"Mutable\",\n \"pt\": \"Mutável\"\n },\n \"Ascendant\": {\n \"en\": \"Ascendant\",\n \"pt\": \"Ascendente\"\n },\n \"Midheaven\": {\n \"en\": \"Midheaven\",\n \"pt\": \"Meio do céu\"\n },\n \"Descendant\": {\n \"en\": \"Descendant\",\n \"pt\": \"Descendente\"\n },\n \"Imum Coeli\": {\n \"en\": \"Imum Coeli\",\n \"pt\": \"Fundo do céu\"\n },\n \"conjunction\": {\n \"en\": \"conjunction\",\n \"pt\": \"conjunção\"\n },\n \"duodecile\": {\n \"en\": \"duodecile\",\n \"pt\": \"semissextil\"\n },\n \"octile\": {\n \"en\": \"octile\",\n \"pt\": \"semiquadratura\"\n },\n \"sextile\": {\n \"en\": \"sextile\",\n \"pt\": \"sextil\"\n },\n \"square\": {\n \"en\": \"square\",\n \"pt\": \"quadratura\"\n },\n \"trine\": {\n \"en\": \"trine\",\n \"pt\": \"trígono\"\n },\n \"trioctile\": {\n \"en\": \"trioctile\",\n \"pt\": \"sesquiquadratura\"\n },\n \"quincunx\": {\n \"en\": \"quincunx\",\n \"pt\": \"quincúncio\"\n },\n \"opposition\": {\n \"en\": \"opposition\",\n \"pt\": \"oposição\"\n }\n}\n","import raw from \"./labels.json\";\nimport { TAROT_CONTENT } from \"../core/tarot-content\";\nimport { freezeTextData } from \"../localization\";\n\n/** Names used by astrology calculations, including dignity, sect and lunar nodes. */\nexport const ASTROLOGY_LABELS: Readonly<Record<string, Readonly<{ en: string; pt: string }>>> = freezeTextData(raw);\nconst tarotNames = new Map(Object.values(TAROT_CONTENT).map(row => [row.en.PAPUS_KAABALISTIC.name, row.pt.PAPUS_KAABALISTIC.name]));\n\n/**\n * Display a sign, planet, node, dignity, sect, aspect or decan card name in the requested language.\n * English is the default. Calculation identifiers remain unchanged. Unknown names pass through.\n */\nexport function getAstrologyLabel(label: string, language?: string): string {\n if (!language?.startsWith(\"pt\")) return label;\n return ASTROLOGY_LABELS[label]?.pt ?? tarotNames.get(label) ?? label;\n}\n","/**\n * Astrological calculations using Swiss Ephemeris\n */\n\nimport {\n type AzaltResult,\n CalcFlag,\n calcParsFortunae,\n calculateHouses,\n calculatePlanetaryPositions,\n calculateSinglePlanetPosition,\n closeSwissEph,\n getSwissEph,\n resolveSwissEphRuntimeAssets,\n HouseSystem,\n normalizeAngle,\n Planet,\n PLANET_AND_NODE_NAMES,\n PlanetPosition,\n type LocalDateTimeParts,\n type ResolveSwissEphRuntimeAssetsOptions,\n RiseTransitFlag,\n SwissEphError,\n type SwissEphRuntimeAssetPaths,\n TimeZoneOptions,\n toUtcDate,\n VirtualNodes,\n} from \"./swisseph\";\n\nexport {\n type AzaltResult,\n type LocalDateTimeParts,\n CalcFlag,\n closeSwissEph,\n getSwissEph,\n type ResolveSwissEphRuntimeAssetsOptions,\n type SwissEphRuntimeAssetPaths,\n resolveSwissEphRuntimeAssets,\n HouseSystem,\n normalizeAngle,\n Planet,\n PLANET_AND_NODE_NAMES,\n RiseTransitFlag,\n VirtualNodes\n};\n\nexport * from \"./astrocartography\";\nexport * from \"./aspects\";\nexport * from \"./dignity\";\nexport * from \"./descriptions\";\nexport * from \"./decans\";\nexport * from \"./dodecatemoria\";\nexport * from \"./profections\";\nexport * from \"./firdaria\";\nexport * from \"./root-solver\";\nexport * from \"./returns\";\nexport * from \"./transit-events\";\nexport * from \"./sect\";\nexport * from \"./lots\";\nexport * from \"./moon-phase\";\nexport * from \"./composite\";\nexport * from \"./jyotish\";\nexport * from \"./points\";\nexport * from \"./orb-policy\";\nexport * from \"./quality\";\nexport * from \"./house-systems\";\nexport * from \"./overlays\";\nexport * from \"./davison\";\nexport * from \"./progressions\";\nexport * from \"./timelines\";\nexport * from \"./collection\";\nexport * from \"./cache-key\";\nexport * from \"./capabilities\";\nexport {\n getSwissEphInfo,\n setSwissEphStrictEphemeris,\n calculatePlanetPositionDetailed,\n withSwissEphState,\n SwissEphError,\n SwissEphEphemerisMismatchError,\n ephemerisFromFlags,\n resolveSwissEphRuntimeAssetsAsync,\n type SwissEphInfo,\n type PlanetPositionDetailed,\n type SwissEphemerisKind,\n type SwissEphErrorCode,\n type GetSwissEphOptions,\n} from \"./swisseph\";\nimport {\n computeCompositeAngles,\n computeCompositeCusps,\n compositeMidpoint,\n ANTIPODAL_POLICY_TEXT,\n DEFAULT_ANTIPODAL_EPSILON,\n type CompositeAngles,\n type CompositeMethod,\n type CompositeNotice,\n} from \"./composite\";\nimport { computeLots, type LotsResult } from \"./lots\";\nimport { computeMoonPhase, type MoonPhaseResult } from \"./moon-phase\";\nimport { computeSect, type SectResult } from \"./sect\";\nimport { findTransitPerfections, type PerfectionSolverMetadata, type TransitClosestApproach } from \"./transit-events\";\nimport { getChartAtJulianDay } from \"./progressions\";\nimport { findPlanetaryReturns, type RootSolverMethodMetadata } from \"./returns\";\nimport { dateToJd, type RootDirection, type RootSearchCoverage } from \"./root-solver\";\nimport {\n computeAspects,\n computeSynastryAspects,\n computeTransitAspects,\n DEFAULT_ASPECT_SPECS,\n SLOW_PLANETS,\n type AspectEdge,\n type AspectName,\n type AspectSpec,\n type TransitAspectEdge,\n type TransitAspectPoint,\n} from \"./aspects\";\n\nexport interface BirthChartOptions {\n /**\n * Local civil date-time for the chart moment.\n * Prefer `LocalDateTimeParts` when the source data comes from separate\n * date/time inputs so callers do not have to encode wall-clock parts into a\n * browser-local `Date`.\n */\n date: Date | LocalDateTimeParts;\n latitude: number;\n longitude: number;\n houseSystem?: HouseSystem;\n /**\n * OPT-IN substitute used only when the requested house system cannot be computed at this\n * latitude (Placidus and Koch are undefined beyond the polar circle, |latitude| >= ~66.56).\n * Default: off, and `getBirthChart` then throws a `SwissEphError` with code\n * `SWISSEPH_HOUSES_UNAVAILABLE`. When a substitution happens it is never silent:\n * `BirthChart.houseSystem` is the system actually used and\n * `BirthChart.houseSystemSubstitution` records the request, the reason and a notice.\n */\n houseSystemFallback?: HouseSystemFallback;\n timeZoneSettings?: TimeZoneOptions;\n}\n\n/** Latitude-independent house systems accepted as an explicit fallback. */\nexport type HouseSystemFallback = \"whole-sign\" | \"equal\" | \"porphyry\";\n\nconst HOUSE_FALLBACK_SYSTEMS: Record<HouseSystemFallback, HouseSystem> = {\n \"whole-sign\": HouseSystem.WHOLE_SIGN,\n equal: HouseSystem.EQUAL,\n porphyry: HouseSystem.PORPHYRIUS,\n};\n\n/** Recorded on a chart when `houseSystemFallback` replaced the requested house system. */\nexport interface HouseSystemSubstitution {\n requested: HouseSystem;\n used: HouseSystem;\n latitude: number;\n reason: string;\n notice: string;\n}\n\n/**\n * Decide the fallback for a failed house computation. Returns undefined when no fallback is\n * configured or the error is not a \"house system unavailable\" error (the caller rethrows).\n */\nexport function planHouseSystemFallback(\n requested: HouseSystem,\n fallback: HouseSystemFallback | undefined,\n latitude: number,\n error: unknown\n): HouseSystemSubstitution | undefined {\n if (!fallback || !(error instanceof SwissEphError) || error.code !== \"SWISSEPH_HOUSES_UNAVAILABLE\") {\n return undefined;\n }\n const used = HOUSE_FALLBACK_SYSTEMS[fallback];\n if (!used || used === requested) return undefined;\n const reason = error.message;\n return {\n requested,\n used,\n latitude,\n reason,\n notice:\n `House system \"${requested}\" is unavailable at latitude ${latitude}; ` +\n `substituted \"${used}\" because houseSystemFallback=\"${fallback}\" was requested.`,\n };\n}\n\nexport type ZodiacPosition = {\n sign: string;\n decimalDegrees: number; // degrees within the sign (0–30)\n traditionalFormat: string; // \"D°MM'\"\n decimal: string; // \"D.dd°\"\n longitude: number;\n house: number;\n};\nexport type HydratedNode = ZodiacPosition & { id: VirtualNodes; name: string };\nexport type HydratedPlanet = PlanetPosition & {\n id: Planet;\n name: string;\n zodiacPosition: ZodiacPosition;\n};\nexport type Sect = \"diurnal\" | \"nocturnal\";\n\nexport interface BirthChart {\n dateUtc: Date;\n /** House system the cusps were computed with (set by `getBirthChart`; optional for hand-built fixtures). */\n houseSystem?: HouseSystem;\n /** Present only when `houseSystemFallback` replaced the requested system (never a silent substitution). */\n houseSystemSubstitution?: HouseSystemSubstitution;\n planets: Record<string, HydratedPlanet>;\n nodes: Record<string, HydratedNode>;\n houses: {\n ascendant: ZodiacPosition;\n mc: ZodiacPosition;\n dc: ZodiacPosition;\n ic: ZodiacPosition;\n houses: ZodiacPosition[];\n ascmc?: {\n armc?: ZodiacPosition;\n vertex?: ZodiacPosition;\n equasc?: ZodiacPosition;\n coasc1?: ZodiacPosition;\n coasc2?: ZodiacPosition;\n polasc?: ZodiacPosition;\n };\n };\n aspects: AspectEdge[];\n /** Diurnal/nocturnal from the Sun's geometric altitude (independent of house system). */\n sect: Sect;\n /** Sun altitudes and the exact-horizon convention behind `sect` (always set by `getBirthChart`; optional so hand-built fixtures still type-check). */\n sectDetails?: SectResult;\n /** Lots of Fortune and Spirit (sect-reversed counterparts) with formulas used. */\n lots?: LotsResult & { fortunePosition: ZodiacPosition; spiritPosition: ZodiacPosition };\n /** Sun-Moon elongation, phase name and illumination (labelled approximate). */\n moonPhase?: MoonPhaseResult;\n}\n\n/** Chart as returned by `getBirthChart`: the additive fields are always present. */\nexport type ComputedBirthChart = BirthChart &\n Required<Pick<BirthChart, \"sectDetails\" | \"lots\" | \"moonPhase\">>;\n\n/**\n * Determines chart sect from the Sun's house position.\n * Houses 7-12 place the Sun above the horizon.\n *\n * @deprecated House-based approximation: it is only right when the house\n * cusps follow the horizon (Placidus-like systems) and is wrong for\n * whole-sign and equal houses near sunrise/sunset. `getBirthChart` no longer\n * uses it; use `computeSect` / `getSectFromAltitude` (physical horizon).\n */\nexport function getSect(sunHouse: number): Sect {\n return sunHouse >= 7 && sunHouse <= 12 ? \"diurnal\" : \"nocturnal\";\n}\n\nfunction isValidLocalDateTimeParts(date: LocalDateTimeParts): boolean {\n const hour = date.hour ?? 0;\n const minute = date.minute ?? 0;\n const second = date.second ?? 0;\n\n if (\n !Number.isInteger(date.year) ||\n !Number.isInteger(date.month) ||\n !Number.isInteger(date.day) ||\n !Number.isInteger(hour) ||\n !Number.isInteger(minute) ||\n !Number.isInteger(second)\n ) {\n return false;\n }\n\n if (\n date.month < 1 || date.month > 12 ||\n date.day < 1 || date.day > 31 ||\n hour < 0 || hour > 23 ||\n minute < 0 || minute > 59 ||\n second < 0 || second > 59\n ) {\n return false;\n }\n\n const utcDate = new Date(Date.UTC(date.year, date.month - 1, date.day, hour, minute, second));\n return (\n !Number.isNaN(utcDate.getTime()) &&\n utcDate.getUTCFullYear() === date.year &&\n utcDate.getUTCMonth() === date.month - 1 &&\n utcDate.getUTCDate() === date.day &&\n utcDate.getUTCHours() === hour &&\n utcDate.getUTCMinutes() === minute &&\n utcDate.getUTCSeconds() === second\n );\n}\n\nfunction validateInputs(options: BirthChartOptions): void {\n const { date } = options;\n\n if (date instanceof Date) {\n if (Number.isNaN(date.getTime())) {\n throw new Error(\"Invalid date provided\");\n }\n } else if (!isValidLocalDateTimeParts(date)) {\n throw new Error(\"Invalid date provided\");\n }\n\n if (\n typeof options.latitude !== \"number\" ||\n options.latitude < -90 ||\n options.latitude > 90\n ) {\n throw new Error(\"Invalid latitude: must be between -90 and 90 degrees\");\n }\n\n if (\n typeof options.longitude !== \"number\" ||\n options.longitude < -180 ||\n options.longitude > 180\n ) {\n throw new Error(\"Invalid longitude: must be between -180 and 180 degrees\");\n }\n}\n\nfunction hydratePlanet(\n id: Planet,\n position: PlanetPosition,\n houseCusps: number[]\n): HydratedPlanet {\n return {\n ...position,\n id,\n name: PLANET_AND_NODE_NAMES[id],\n zodiacPosition: getZodiacPosition(position.longitude, houseCusps),\n };\n}\n\n/**\n * Calculate a birth chart using Swiss Ephemeris\n *\n * @param options Chart calculation options\n * @returns Birth chart data\n */\nexport async function getBirthChart(\n options: BirthChartOptions\n): Promise<ComputedBirthChart> {\n try {\n // Validate inputs\n validateInputs(options);\n\n // Determine time zone strategy: default to auto from lat/lon\n const tzOptions: TimeZoneOptions = options.timeZoneSettings ?? { autoTimeZone: true };\n const utcDate = await toUtcDate(options.date, options.latitude, options.longitude, tzOptions);\n\n // Calculate planetary positions\n const planetPositions = await calculatePlanetaryPositions(utcDate);\n if (!planetPositions) {\n throw new Error(\"Failed to calculate planetary positions\");\n }\n\n // Calculate houses (explicit, recorded fallback only when the caller opted in)\n const requestedHouseSystem = options.houseSystem || HouseSystem.PLACIDUS;\n let usedHouseSystem = requestedHouseSystem;\n let houseSystemSubstitution: HouseSystemSubstitution | undefined;\n let housesPositions;\n try {\n housesPositions = await calculateHouses(\n utcDate,\n options.latitude,\n options.longitude,\n requestedHouseSystem,\n { treatAsUTC: true }\n );\n } catch (error) {\n houseSystemSubstitution = planHouseSystemFallback(\n requestedHouseSystem,\n options.houseSystemFallback,\n options.latitude,\n error\n );\n if (!houseSystemSubstitution) throw error;\n usedHouseSystem = houseSystemSubstitution.used;\n housesPositions = await calculateHouses(\n utcDate,\n options.latitude,\n options.longitude,\n usedHouseSystem,\n { treatAsUTC: true }\n );\n }\n if (!housesPositions) {\n throw new Error(\"Failed to calculate houses\");\n }\n\n // skipping the first house since swisseph uses it as dummy 0deg aries\n const houseCusps = housesPositions.houses.slice(1, 13).map(normalizeAngle);\n\n const planets: Record<string, HydratedPlanet> = {};\n for (const [planetId, position] of Object.entries(planetPositions)) {\n const id = planetId as unknown as Planet;\n const hydratedPlanet = hydratePlanet(id, position, houseCusps);\n planets[hydratedPlanet.name.toLocaleLowerCase()] = hydratedPlanet;\n }\n\n const houseCuspsPositions = houseCusps.map((lon) =>\n getZodiacPosition(lon, houseCusps)\n );\n\n const descendant = normalizeAngle(housesPositions.ascendant + 180);\n const imumCoeli = normalizeAngle(housesPositions.mc + 180);\n\n const ascendantSign = getZodiacPosition(\n housesPositions.ascendant,\n houseCusps\n );\n const midheavenSign = getZodiacPosition(housesPositions.mc, houseCusps);\n const descendantSign = getZodiacPosition(descendant, houseCusps);\n const imumCoeliSign = getZodiacPosition(imumCoeli, houseCusps);\n\n const houses: BirthChart[\"houses\"] = {\n ascendant: ascendantSign,\n mc: midheavenSign,\n dc: descendantSign,\n ic: imumCoeliSign,\n houses: houseCuspsPositions,\n ascmc: {\n armc: housesPositions.ascmc\n ? getZodiacPosition(housesPositions.ascmc.armc, houseCusps)\n : undefined,\n vertex: housesPositions.ascmc\n ? getZodiacPosition(housesPositions.ascmc.vertex, houseCusps)\n : undefined,\n equasc: housesPositions.ascmc\n ? getZodiacPosition(housesPositions.ascmc.equasc, houseCusps)\n : undefined,\n coasc1: housesPositions.ascmc\n ? getZodiacPosition(housesPositions.ascmc.coasc1, houseCusps)\n : undefined,\n coasc2: housesPositions.ascmc\n ? getZodiacPosition(housesPositions.ascmc.coasc2, houseCusps)\n : undefined,\n polasc: housesPositions.ascmc\n ? getZodiacPosition(housesPositions.ascmc.polasc, houseCusps)\n : undefined,\n },\n };\n\n // Sect from the physical horizon (Sun's geometric altitude), never from houses.\n const sectDetails = computeSect(\n utcDate,\n options.latitude,\n options.longitude,\n planets.sun\n );\n const sect = sectDetails.sect;\n const isDiurnal = sect === \"diurnal\";\n const wheelOfFortuneLongitude = calcParsFortunae(\n houses.ascendant.longitude,\n planets.sun.longitude,\n planets.moon.longitude,\n isDiurnal\n );\n const lotsResult = computeLots(\n houses.ascendant.longitude,\n planets.sun.longitude,\n planets.moon.longitude,\n sect\n );\n const lots = {\n ...lotsResult,\n fortunePosition: getZodiacPosition(lotsResult.fortune, houseCusps),\n spiritPosition: getZodiacPosition(lotsResult.spirit, houseCusps),\n };\n const moonPhase = computeMoonPhase(planets.sun.longitude, planets.moon.longitude);\n\n const wheelOfFortune = getZodiacPosition(\n wheelOfFortuneLongitude,\n houseCusps\n );\n\n const nodes: Record<string, HydratedNode> = {\n [VirtualNodes.PARS_FORTUNAE]: {\n ...wheelOfFortune,\n id: VirtualNodes.PARS_FORTUNAE,\n name: PLANET_AND_NODE_NAMES[VirtualNodes.PARS_FORTUNAE],\n },\n };\n\n const aspects = computeAspects(getAspectPoints(planets, houses.ascendant.longitude, houses.mc.longitude));\n\n return {\n dateUtc: utcDate,\n houseSystem: usedHouseSystem,\n ...(houseSystemSubstitution ? { houseSystemSubstitution } : {}),\n planets,\n houses,\n nodes,\n aspects,\n sect,\n sectDetails,\n lots,\n moonPhase,\n };\n } catch (error) {\n throw error;\n }\n}\n\nexport const SIGNS = [\n \"Aries\",\n \"Taurus\",\n \"Gemini\",\n \"Cancer\",\n \"Leo\",\n \"Virgo\",\n \"Libra\",\n \"Scorpio\",\n \"Sagittarius\",\n \"Capricorn\",\n \"Aquarius\",\n \"Pisces\",\n] as const;\n\n/**\n * Convert decimal degrees to degrees and minutes format\n *\n * @param decimalDegrees Decimal degrees (e.g., 9.8)\n * @returns Formatted string (e.g., \"9°48'\")\n */\nexport function formatDegreeMinutes(decimalDegrees: number): string {\n let deg = Math.floor(decimalDegrees);\n let min = Math.round((decimalDegrees - deg) * 60);\n if (min === 60) {\n min = 0;\n deg += 1;\n } // carry\n return `${deg}°${String(min).padStart(2, \"0\")}'`;\n}\n\n/**\n * Convert decimal degrees to zodiac position (sign and degrees)\n *\n * @param longitude Longitude in decimal degrees (0-360)\n * @returns Formatted zodiac position with both decimal and traditional format\n */\nexport function getZodiacPosition(\n longitude: number,\n houseCusps: number[]\n): ZodiacPosition {\n const L = normalizeAngle(longitude);\n const signIndex = Math.floor(L / 30) % 12;\n const within = L - signIndex * 30; // 0–<30\n const house = findHouseOf(L, houseCusps);\n\n return {\n sign: SIGNS[signIndex],\n decimalDegrees: within,\n traditionalFormat: formatDegreeMinutes(within),\n decimal: within.toFixed(2) + \"°\",\n longitude: L,\n house,\n };\n}\n\n// Find the house of a longitude (0–360) given the array of cusps (0–360)\nexport function findHouseOf(\n longitude: number,\n housePositions: number[]\n): number {\n const L = normalizeAngle(longitude);\n\n if (!housePositions || housePositions.length === 0) {\n throw new Error(\"House positions are required\");\n }\n\n const H = housePositions\n .map((c, i) => ({ i: i + 1, L: normalizeAngle(c) }))\n .sort((a, b) => a.L - b.L);\n for (let k = 0; k < H.length; k++) {\n const cur = H[k],\n nxt = H[(k + 1) % H.length];\n if (nxt.L < cur.L) {\n // wrap 360->0\n if (L >= cur.L || L < nxt.L) return cur.i;\n } else {\n if (L >= cur.L && L < nxt.L) return cur.i;\n }\n }\n return 1;\n}\n\nfunction getAspectPoints(\n planets: Record<string, { longitude: number }>,\n ascLon: number,\n mcLon: number\n): Record<string, { longitude: number }> {\n return { ...planets, ascendant: { longitude: ascLon }, mc: { longitude: mcLon } };\n}\n\n// ── Two-chart (synastry / composite) ──────────────────────────────────\n\nexport interface TwoChartOptions {\n chartA: BirthChartOptions;\n chartB: BirthChartOptions;\n aspectSpecs?: AspectSpec[];\n /** Omit the embedded full charts from the result (see `SynastryChartSummary`). Default false. */\n omitCharts?: boolean;\n}\nexport type SynastryChartOptions = TwoChartOptions;\nexport type CompositeChartOptions = TwoChartOptions;\n\n/** Options for the already-computed-chart variants (`getSynastryFromCharts`, `getCompositeFromCharts`). */\nexport interface TwoChartFromChartsOptions {\n aspectSpecs?: AspectSpec[];\n /** Omit the embedded full charts from the result; the result then carries `charts` references only. */\n omitCharts?: boolean;\n /** Caller ids echoed into the lightweight `charts` references. */\n ids?: { a?: string; b?: string };\n /**\n * House system of chart A / B. Only used when the chart does not record its own\n * (`BirthChart.houseSystem`); the chart's recorded value always wins.\n */\n houseSystemA?: HouseSystem;\n houseSystemB?: HouseSystem;\n}\n\n/** Metadata-only reference to a chart used in a two-chart result. */\nexport interface ChartReference {\n id?: string;\n dateUtc: Date;\n houseSystem?: HouseSystem;\n}\n\nexport interface SynastryChart {\n chartA: BirthChart;\n chartB: BirthChart;\n aspects: AspectEdge[];\n}\n\n/** Synastry result without the embedded charts (`omitCharts: true`). */\nexport interface SynastryChartSummary {\n charts: { a: ChartReference; b: ChartReference };\n aspects: AspectEdge[];\n}\n\nexport interface CompositeChart {\n chartA: BirthChart;\n chartB: BirthChart;\n compositePlanets: Record<\n string,\n { name: string; longitude: number; zodiacPosition: ZodiacPosition }\n >;\n compositeHouses: ZodiacPosition[];\n /** Composite ASC / MC / DSC / IC midpoint angles (see `./composite` conventions). */\n compositeAngles: Record<keyof CompositeAngles, ZodiacPosition>;\n /** Conventions used for midpoints, houses and the antipodal policy. */\n compositeMethod: CompositeMethod;\n /** Antipodal pairs, MC/cusp corrections and fallbacks encountered. */\n notices: CompositeNotice[];\n /** Aspects among `compositePlanets` only (the final point set). */\n aspects: AspectEdge[];\n /** House system of each input chart and where it came from. */\n houseSystems: {\n a: { system: HouseSystem; source: \"chart\" | \"option\" | \"assumed-default\" };\n b: { system: HouseSystem; source: \"chart\" | \"option\" | \"assumed-default\" };\n };\n}\n\n/** Composite result without the embedded charts (`omitCharts: true`). */\nexport type CompositeChartSummary = Omit<CompositeChart, \"chartA\" | \"chartB\"> & {\n charts: { a: ChartReference; b: ChartReference };\n};\n\nfunction chartReference(chart: BirthChart, id?: string): ChartReference {\n const ref: ChartReference = { dateUtc: chart.dateUtc, houseSystem: chart.houseSystem };\n if (id !== undefined) ref.id = id;\n return ref;\n}\n\nexport function getSynastryFromCharts(\n chartA: BirthChart,\n chartB: BirthChart,\n options: TwoChartFromChartsOptions & { omitCharts: true }\n): SynastryChartSummary;\nexport function getSynastryFromCharts(\n chartA: BirthChart,\n chartB: BirthChart,\n options?: TwoChartFromChartsOptions & { omitCharts?: false }\n): SynastryChart;\nexport function getSynastryFromCharts(\n chartA: BirthChart,\n chartB: BirthChart,\n options?: TwoChartFromChartsOptions\n): SynastryChart | SynastryChartSummary;\n/**\n * Synastry between two already-computed charts: no ephemeris recomputation, so N\n * people need N `getBirthChart` calls rather than N(N-1)/2.\n * `getSynastryChart` delegates here.\n */\nexport function getSynastryFromCharts(\n chartA: BirthChart,\n chartB: BirthChart,\n options: TwoChartFromChartsOptions = {}\n): SynastryChart | SynastryChartSummary {\n const aspects = computeSynastryAspects(\n getAspectPoints(chartA.planets, chartA.houses.ascendant.longitude, chartA.houses.mc.longitude),\n getAspectPoints(chartB.planets, chartB.houses.ascendant.longitude, chartB.houses.mc.longitude),\n options.aspectSpecs\n );\n if (options.omitCharts) {\n return {\n charts: { a: chartReference(chartA, options.ids?.a), b: chartReference(chartB, options.ids?.b) },\n aspects,\n };\n }\n return { chartA, chartB, aspects };\n}\n\nexport async function getSynastryChart(\n options: SynastryChartOptions & { omitCharts: true }\n): Promise<SynastryChartSummary>;\nexport async function getSynastryChart(\n options: SynastryChartOptions & { omitCharts?: false }\n): Promise<SynastryChart>;\nexport async function getSynastryChart(\n options: SynastryChartOptions\n): Promise<SynastryChart | SynastryChartSummary>;\nexport async function getSynastryChart(\n options: SynastryChartOptions\n): Promise<SynastryChart | SynastryChartSummary> {\n const [chartA, chartB] = await Promise.all([\n getBirthChart(options.chartA),\n getBirthChart(options.chartB),\n ]);\n return getSynastryFromCharts(chartA, chartB, {\n aspectSpecs: options.aspectSpecs,\n omitCharts: options.omitCharts,\n });\n}\n\nfunction resolveChartHouseSystem(\n chart: BirthChart,\n fallback: HouseSystem | undefined\n): { system: HouseSystem; source: \"chart\" | \"option\" | \"assumed-default\" } {\n if (chart.houseSystem !== undefined) return { system: chart.houseSystem, source: \"chart\" };\n if (fallback !== undefined) return { system: fallback, source: \"option\" };\n return { system: HouseSystem.PLACIDUS, source: \"assumed-default\" };\n}\n\nexport function getCompositeFromCharts(\n chartA: BirthChart,\n chartB: BirthChart,\n options: TwoChartFromChartsOptions & { omitCharts: true }\n): CompositeChartSummary;\nexport function getCompositeFromCharts(\n chartA: BirthChart,\n chartB: BirthChart,\n options?: TwoChartFromChartsOptions & { omitCharts?: false }\n): CompositeChart;\nexport function getCompositeFromCharts(\n chartA: BirthChart,\n chartB: BirthChart,\n options?: TwoChartFromChartsOptions\n): CompositeChart | CompositeChartSummary;\n/**\n * Midpoint composite of two already-computed charts. Each chart's house system is\n * taken from `BirthChart.houseSystem`; for hand-built charts without it, from\n * `options.houseSystemA/B`, else non-whole-sign (Placidus-like) is assumed and\n * reported in `houseSystems[..].source === \"assumed-default\"`.\n * `getCompositeChart` delegates here.\n */\nexport function getCompositeFromCharts(\n chartA: BirthChart,\n chartB: BirthChart,\n options: TwoChartFromChartsOptions = {}\n): CompositeChart | CompositeChartSummary {\n const epsilon = DEFAULT_ANTIPODAL_EPSILON;\n const notices: CompositeNotice[] = [];\n\n // Angles: midpoints with ASC/MC consistency\n const angleResult = computeCompositeAngles(\n { ascendant: chartA.houses.ascendant.longitude, mc: chartA.houses.mc.longitude },\n { ascendant: chartB.houses.ascendant.longitude, mc: chartB.houses.mc.longitude },\n epsilon\n );\n notices.push(...angleResult.notices);\n\n // Houses: whole-sign composites start at the composite ASC sign; otherwise\n // midpoints of corresponding cusps validated for zodiacal order.\n const hsA = resolveChartHouseSystem(chartA, options.houseSystemA);\n const hsB = resolveChartHouseSystem(chartB, options.houseSystemB);\n const wholeA = hsA.system === HouseSystem.WHOLE_SIGN;\n const wholeB = hsB.system === HouseSystem.WHOLE_SIGN;\n if (wholeA !== wholeB) {\n notices.push({\n type: \"mixed_house_systems\",\n reason: \"only one chart uses whole-sign houses; corresponding cusps were midpointed\",\n });\n }\n const cuspResult = computeCompositeCusps({\n cuspsA: chartA.houses.houses.map((h) => h.longitude),\n cuspsB: chartB.houses.houses.map((h) => h.longitude),\n ascA: chartA.houses.ascendant.longitude,\n ascB: chartB.houses.ascendant.longitude,\n wholeSign: wholeA && wholeB,\n compositeAsc: angleResult.angles.ascendant,\n epsilon,\n });\n notices.push(...cuspResult.notices);\n const compositeCusps = cuspResult.cusps;\n\n // Midpoint planets (only points present in both charts)\n const compositePlanets: CompositeChart[\"compositePlanets\"] = {};\n for (const key of Object.keys(chartA.planets)) {\n if (!(key in chartB.planets)) continue;\n const mid = compositeMidpoint(chartA.planets[key].longitude, chartB.planets[key].longitude, epsilon);\n if (mid.antipodal) {\n notices.push({\n type: \"antipodal\",\n point: key,\n longitudeA: chartA.planets[key].longitude,\n longitudeB: chartB.planets[key].longitude,\n });\n }\n compositePlanets[key] = {\n name: key,\n longitude: mid.longitude,\n zodiacPosition: getZodiacPosition(mid.longitude, compositeCusps),\n };\n }\n\n const compositeHouses = compositeCusps.map((lon) =>\n getZodiacPosition(lon, compositeCusps)\n );\n\n const compositeAngles = {\n ascendant: getZodiacPosition(angleResult.angles.ascendant, compositeCusps),\n mc: getZodiacPosition(angleResult.angles.mc, compositeCusps),\n descendant: getZodiacPosition(angleResult.angles.descendant, compositeCusps),\n ic: getZodiacPosition(angleResult.angles.ic, compositeCusps),\n };\n\n // Aspects are computed from the final point set only.\n const aspects = computeAspects(compositePlanets, options.aspectSpecs);\n\n const compositeMethod: CompositeMethod = {\n midpoint: \"shorter arc\",\n antipodalPolicy: ANTIPODAL_POLICY_TEXT,\n antipodalEpsilon: epsilon,\n ...cuspResult.method,\n };\n\n const body = {\n compositePlanets,\n compositeHouses,\n compositeAngles,\n compositeMethod,\n notices,\n aspects,\n houseSystems: { a: hsA, b: hsB },\n };\n if (options.omitCharts) {\n return {\n charts: { a: chartReference(chartA, options.ids?.a), b: chartReference(chartB, options.ids?.b) },\n ...body,\n };\n }\n return { chartA, chartB, ...body };\n}\n\nexport async function getCompositeChart(\n options: CompositeChartOptions & { omitCharts: true }\n): Promise<CompositeChartSummary>;\nexport async function getCompositeChart(\n options: CompositeChartOptions & { omitCharts?: false }\n): Promise<CompositeChart>;\nexport async function getCompositeChart(\n options: CompositeChartOptions\n): Promise<CompositeChart | CompositeChartSummary>;\nexport async function getCompositeChart(\n options: CompositeChartOptions\n): Promise<CompositeChart | CompositeChartSummary> {\n const [chartA, chartB] = await Promise.all([\n getBirthChart(options.chartA),\n getBirthChart(options.chartB),\n ]);\n return getCompositeFromCharts(chartA, chartB, {\n aspectSpecs: options.aspectSpecs,\n omitCharts: options.omitCharts,\n houseSystemA: options.chartA.houseSystem,\n houseSystemB: options.chartB.houseSystem,\n });\n}\n\n// ── Transits ────────────────────────────────────────────────────────────\n\nexport interface TransitChartOptions {\n natal: BirthChartOptions;\n transitDate: Date;\n transitLatitude?: number;\n transitLongitude?: number;\n transitTimeZoneSettings?: TimeZoneOptions;\n aspectSpecs?: AspectSpec[];\n maxOrb?: number;\n transitPlanets?: string[];\n natalPlanets?: string[];\n aspectFilter?: AspectName[];\n}\n\nexport interface TransitPlanet extends HydratedPlanet {\n retrograde: boolean;\n natalHouse: number;\n}\n\nexport interface TransitChart {\n natalChart: BirthChart;\n transitDateUtc: Date;\n transitPlanets: Record<string, TransitPlanet>;\n aspects: TransitAspectEdge[];\n}\n\nexport interface TransitRangeOptions extends Omit<TransitChartOptions, \"transitDate\"> {\n /**\n * Window start. Two forms, both resolved to an absolute UTC instant (`TransitRangeResult.fromUtc`)\n * through `transitTimeZoneSettings` at the transit location (default: auto time zone from lat/lon):\n *\n * - `LocalDateTimeParts` (recommended): the wall-clock date/time at the transit location.\n * Independent of the host machine's time zone.\n * - `Date` (legacy, behaviour unchanged): read with the HOST-local getters\n * (`getFullYear()`, `getHours()`, ...) and reinterpreted as wall-clock time in the transit\n * location's zone, so the result depends on the host time zone. Pass\n * `transitTimeZoneSettings: { treatAsUTC: true }` to use the Date's own UTC instant instead.\n */\n from: Date | LocalDateTimeParts;\n /** Window end (inclusive); same two forms and semantics as `from`. */\n to: Date | LocalDateTimeParts;\n stepDays?: number;\n /** Final bracket width for each exact event, in seconds (default 0.001). */\n timeToleranceSeconds?: number;\n /** Max accepted angular residual of an exact event, in degrees (default 1e-6). */\n residualToleranceDegrees?: number;\n /** Also report stationary near-misses that never reach exactness (default false). */\n includeClosestApproaches?: boolean;\n}\n\n/**\n * A verified exact crossing of a transit aspect. `exactDate` is the UTC instant\n * of the root; `exactOrb` equals the angular residual (~0), not the display orb.\n */\nexport interface AspectPerfection {\n transitPlanet: string;\n natalPlanet: string;\n aspect: AspectName;\n exactDate: Date;\n exactOrb: number;\n retrograde: boolean;\n category: \"slow\" | \"fast\";\n kind?: \"exact\";\n exactJd?: number;\n solver?: PerfectionSolverMetadata;\n}\n\nexport interface TransitRangeResult {\n natalChart: BirthChart;\n /** The `from` Date as passed; for `LocalDateTimeParts` input it is the resolved UTC instant (= `fromUtc`). */\n from: Date;\n /** The `to` Date as passed; for `LocalDateTimeParts` input it is the resolved UTC instant (= `toUtc`). */\n to: Date;\n /** `from`/`to` resolved to absolute UTC instants (via the transit location's time zone settings). */\n fromUtc?: Date;\n toUtc?: Date;\n perfections: AspectPerfection[];\n /** Present only when `includeClosestApproaches` was requested. Never exact. */\n closestApproaches?: TransitClosestApproach[];\n}\n\nfunction getTransitAspectPoints(\n planets: Record<string, HydratedPlanet>\n): Record<string, TransitAspectPoint> {\n const points: Record<string, TransitAspectPoint> = {};\n for (const [key, p] of Object.entries(planets)) {\n points[key] = { longitude: p.longitude, longitudeSpeed: p.longitudeSpeed };\n }\n return points;\n}\n\nfunction getNatalAspectPoints(\n planets: Record<string, HydratedPlanet>,\n ascLon: number,\n mcLon: number\n): Record<string, TransitAspectPoint> {\n // Natal positions are fixed targets — zero out speeds so applying/separating\n // is computed solely from transit planet motion.\n const points: Record<string, TransitAspectPoint> = {};\n for (const [key, p] of Object.entries(planets)) {\n points[key] = { longitude: p.longitude, longitudeSpeed: 0 };\n }\n points.ascendant = { longitude: ascLon, longitudeSpeed: 0 };\n points.mc = { longitude: mcLon, longitudeSpeed: 0 };\n return points;\n}\n\nfunction filterByNames(\n points: Record<string, TransitAspectPoint>,\n names?: string[]\n): Record<string, TransitAspectPoint> {\n if (!names || names.length === 0) return points;\n const allowed = new Set(names.map((n) => n.toLowerCase()));\n const result: Record<string, TransitAspectPoint> = {};\n for (const [key, val] of Object.entries(points)) {\n if (allowed.has(key)) result[key] = val;\n }\n return result;\n}\n\n/**\n * Options for transits to an already-computed natal chart. A `BirthChart` does not\n * store its geographic location, so the transit location is explicit.\n */\nexport interface TransitFromChartOptions\n extends Omit<TransitChartOptions, \"natal\" | \"transitLatitude\" | \"transitLongitude\"> {\n transitLatitude: number;\n transitLongitude: number;\n /** House system for the transit chart; defaults to the natal chart's recorded system. */\n houseSystem?: HouseSystem;\n}\n\nexport async function getTransitChart(\n options: TransitChartOptions\n): Promise<TransitChart> {\n const natalChart = await getBirthChart(options.natal);\n return getTransitChartFromChart(natalChart, {\n ...options,\n transitLatitude: options.transitLatitude ?? options.natal.latitude,\n transitLongitude: options.transitLongitude ?? options.natal.longitude,\n houseSystem: options.natal.houseSystem,\n });\n}\n\n/**\n * Transits over an already-computed natal chart (no natal recomputation). The\n * natal chart can be a natal `BirthChart` or any derived chart exposing the same\n * `planets` / `houses` shape. `getTransitChart` delegates here.\n */\nexport async function getTransitChartFromChart(\n natalChart: BirthChart,\n options: TransitFromChartOptions\n): Promise<TransitChart> {\n const transitChart = await getBirthChart({\n date: options.transitDate,\n latitude: options.transitLatitude,\n longitude: options.transitLongitude,\n houseSystem: options.houseSystem ?? natalChart.houseSystem,\n timeZoneSettings: options.transitTimeZoneSettings ?? { autoTimeZone: true },\n });\n\n const natalCusps = natalChart.houses.houses.map((h) => h.longitude);\n\n // Place transit planets in natal houses\n const transitPlanets: Record<string, TransitPlanet> = {};\n for (const [key, planet] of Object.entries(transitChart.planets)) {\n const natalZodiac = getZodiacPosition(planet.longitude, natalCusps);\n transitPlanets[key] = {\n ...planet,\n retrograde: (planet.longitudeSpeed ?? 0) < 0,\n natalHouse: natalZodiac.house,\n zodiacPosition: {\n ...planet.zodiacPosition,\n house: natalZodiac.house,\n },\n };\n }\n\n // Build aspect points with filters\n let tPoints = getTransitAspectPoints(transitChart.planets);\n let nPoints = getNatalAspectPoints(\n natalChart.planets,\n natalChart.houses.ascendant.longitude,\n natalChart.houses.mc.longitude\n );\n tPoints = filterByNames(tPoints, options.transitPlanets);\n nPoints = filterByNames(nPoints, options.natalPlanets);\n\n let aspects = computeTransitAspects(tPoints, nPoints, options.aspectSpecs);\n\n if (options.maxOrb != null) {\n aspects = aspects.filter((a) => a.orb <= options.maxOrb!);\n }\n if (options.aspectFilter && options.aspectFilter.length > 0) {\n const allowed = new Set(options.aspectFilter);\n aspects = aspects.filter((a) => allowed.has(a.aspect));\n }\n\n return {\n natalChart,\n transitDateUtc: transitChart.dateUtc,\n transitPlanets,\n aspects,\n };\n}\n\nexport async function getTransitRange(\n options: TransitRangeOptions\n): Promise<TransitRangeResult> {\n const natalChart = await getBirthChart(options.natal);\n\n const nPoints = filterByNames(\n getNatalAspectPoints(\n natalChart.planets,\n natalChart.houses.ascendant.longitude,\n natalChart.houses.mc.longitude\n ),\n options.natalPlanets\n );\n\n const rawStep = options.stepDays ?? 1;\n if (rawStep <= 0) throw new Error(\"stepDays must be greater than 0\");\n\n const transitLat = options.transitLatitude ?? options.natal.latitude;\n const transitLon = options.transitLongitude ?? options.natal.longitude;\n const transitTz = options.transitTimeZoneSettings ?? { autoTimeZone: true };\n const fromUtc = await toUtcDate(options.from, transitLat, transitLon, transitTz);\n const toUtc = await toUtcDate(options.to, transitLat, transitLon, transitTz);\n\n const found = findTransitPerfections({\n natalPoints: nPoints,\n transitPlanets: options.transitPlanets,\n fromUtc,\n toUtc,\n stepDays: rawStep,\n aspectSpecs: options.aspectSpecs,\n timeToleranceSeconds: options.timeToleranceSeconds,\n residualToleranceDegrees: options.residualToleranceDegrees,\n includeClosestApproaches: options.includeClosestApproaches,\n });\n\n const allowedAspects =\n options.aspectFilter && options.aspectFilter.length > 0 ? new Set(options.aspectFilter) : null;\n let perfections: AspectPerfection[] = found.perfections;\n if (options.maxOrb != null) {\n perfections = perfections.filter((p) => p.exactOrb <= options.maxOrb!);\n }\n if (allowedAspects) {\n perfections = perfections.filter((p) => allowedAspects.has(p.aspect));\n }\n\n const result: TransitRangeResult = {\n natalChart,\n from: options.from instanceof Date ? options.from : fromUtc,\n to: options.to instanceof Date ? options.to : toUtc,\n fromUtc,\n toUtc,\n perfections,\n };\n if (options.includeClosestApproaches) {\n result.closestApproaches = found.closestApproaches.filter(\n (c) =>\n (!allowedAspects || allowedAspects.has(c.aspect)) &&\n (options.maxOrb == null || c.separationDegrees <= options.maxOrb)\n );\n }\n return result;\n}\n\n// ── Solar Return ─────────────────────────────────────────────────────────\n\nexport interface SolarReturnOptions {\n natal: BirthChartOptions;\n /**\n * Which return: the calendar year of the natal LOCAL civil birthday. The solved return is the one\n * whose instant is nearest the UTC instant of that anniversary (the natal local civil date and\n * clock time moved to `year`, expressed with the natal zone's UTC offset). Consequently the\n * returned UTC instant can fall on Dec 31 of `year - 1` or Jan 1 of `year + 1` for births near\n * a year boundary or in extreme UTC offsets, but it is never the return of a neighbouring year.\n * For Feb 29 births in non-leap years the anniversary is Mar 1.\n */\n year: number;\n solarReturnLatitude?: number;\n solarReturnLongitude?: number;\n solarReturnHouseSystem?: HouseSystem;\n /** Opt-in recorded house-system substitute for the return chart (defaults to `natal.houseSystemFallback`). */\n solarReturnHouseSystemFallback?: HouseSystemFallback;\n /** Final bracket width of the solved return instant, in seconds (default 0.001). */\n returnPrecisionSeconds?: number;\n /** Max accepted angular residual of the return, in degrees (default 1e-6). */\n residualToleranceDegrees?: number;\n}\n\nexport interface SolarReturnChart {\n natalChart: BirthChart;\n /** Cast at the solved root's exact Julian Day (no sub-second truncation), so its Sun equals the natal Sun to ~1e-9 degrees. */\n solarReturnChart: BirthChart;\n /** Verified UTC instant at which the Sun reaches its natal longitude. */\n exactReturnDate: Date;\n natalSunLongitude: number;\n year: number;\n /** Julian Day (UT) of the solved return. */\n exactReturnJd?: number;\n /** Angular residual (degrees) of the Sun against the natal longitude at `exactReturnDate`'s solved root. */\n residualDegrees?: number;\n /** Final bracket width and tolerance, iterations, direction and coverage of the root search. */\n solver?: {\n bracketWidthSeconds: number;\n timeToleranceSeconds: number;\n iterations: number;\n direction: RootDirection;\n coverage: RootSearchCoverage;\n method: RootSolverMethodMetadata;\n };\n}\n\n/** Half-widths (days) tried in turn around the anniversary until a crossing is bracketed. */\nconst SOLAR_RETURN_WINDOW_HALF_WIDTHS_DAYS = [2, 4, 8];\n\n/**\n * Calculate a Solar Return chart: the moment the transiting Sun returns to its natal longitude\n * in the given `year` (see {@link SolarReturnOptions.year} for the exact convention).\n *\n * The search is centred on the natal birth instant moved to `year` (anchored on the natal UTC\n * instant, not on a UTC-noon calendar date), widened and retried if no crossing is bracketed.\n */\nexport async function getSolarReturnChart(\n options: SolarReturnOptions\n): Promise<SolarReturnChart> {\n // 1. Compute natal chart to get natal Sun longitude and the natal UTC instant\n const natalChart = await getBirthChart(options.natal);\n const natalSunLongitude = natalChart.planets.sun.longitude;\n\n // 2. Anniversary of the natal local civil moment in the target year, as a UTC instant.\n // offset = natal UTC instant - natal local wall clock read as UTC (the natal zone's offset).\n const localParts = options.natal.date instanceof Date\n ? {\n year: options.natal.date.getFullYear(),\n month: options.natal.date.getMonth() + 1,\n day: options.natal.date.getDate(),\n hour: options.natal.date.getHours(),\n minute: options.natal.date.getMinutes(),\n second: options.natal.date.getSeconds(),\n }\n : options.natal.date;\n const naiveNatalMs = Date.UTC(\n localParts.year, localParts.month - 1, localParts.day,\n localParts.hour ?? 0, localParts.minute ?? 0, localParts.second ?? 0\n );\n const natalOffsetMs = natalChart.dateUtc.getTime() - naiveNatalMs;\n const anniversary = new Date(\n Date.UTC(\n options.year, localParts.month - 1, localParts.day,\n localParts.hour ?? 0, localParts.minute ?? 0, localParts.second ?? 0\n ) + natalOffsetMs\n );\n const approxJd = dateToJd(anniversary);\n\n // 3. Signed-angle root search (verified residual, configurable precision), widening if needed\n let search: ReturnType<typeof findPlanetaryReturns> | undefined;\n for (const halfWidth of SOLAR_RETURN_WINDOW_HALF_WIDTHS_DAYS) {\n search = findPlanetaryReturns({\n body: Planet.SUN,\n natalLongitude: natalSunLongitude,\n from: new Date(anniversary.getTime() - halfWidth * 86400000),\n to: new Date(anniversary.getTime() + halfWidth * 86400000),\n stepDays: 0.5,\n timeToleranceSeconds: options.returnPrecisionSeconds,\n residualToleranceDegrees: options.residualToleranceDegrees,\n });\n if (search.crossings.length > 0) break;\n }\n if (!search || search.crossings.length === 0) {\n throw new Error(\"Failed to locate the solar return within the search window\");\n }\n const root = search.crossings.reduce((best, c) =>\n Math.abs(c.jd - approxJd) < Math.abs(best.jd - approxJd) ? c : best\n );\n const exactReturnDate = root.instant;\n\n // 4. Cast the full chart at the solved root's exact Julian Day (UT, no time-zone handling and\n // no millisecond truncation), using the SR location.\n const srLatitude = options.solarReturnLatitude ?? options.natal.latitude;\n const srLongitude = options.solarReturnLongitude ?? options.natal.longitude;\n validateInputs({ date: exactReturnDate, latitude: srLatitude, longitude: srLongitude });\n const solarReturnChart = getChartAtJulianDay({\n julianDayUt: root.jd,\n latitude: srLatitude,\n longitude: srLongitude,\n houseSystem: options.solarReturnHouseSystem ?? options.natal.houseSystem,\n houseSystemFallback: options.solarReturnHouseSystemFallback ?? options.natal.houseSystemFallback,\n });\n\n return {\n natalChart,\n solarReturnChart,\n exactReturnDate,\n natalSunLongitude,\n year: options.year,\n exactReturnJd: root.jd,\n residualDegrees: root.residualDegrees,\n solver: {\n bracketWidthSeconds: root.bracketWidthSeconds,\n timeToleranceSeconds: root.timeToleranceSeconds,\n iterations: root.iterations,\n direction: root.direction,\n coverage: search.coverage,\n method: search.method,\n },\n };\n}\n\nexport * from \"./labels\";\n"]}
|