@roxyapi/ui 1.7.0 → 1.8.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/components-catalog.json +1 -1
- package/dist/cdn/components/almanac-day.js +2 -2
- package/dist/cdn/components/angel-number-card.js +3 -3
- package/dist/cdn/components/angel-number-lookup.js +2 -2
- package/dist/cdn/components/arudha-padas.js +1 -1
- package/dist/cdn/components/ashtakavarga-grid.js +2 -2
- package/dist/cdn/components/aspects-table.js +2 -2
- package/dist/cdn/components/astrocartography-map.js +3 -3
- package/dist/cdn/components/bazi-chart.js +2 -2
- package/dist/cdn/components/bhav-chalit-table.js +2 -2
- package/dist/cdn/components/bhava-bala-table.js +1 -1
- package/dist/cdn/components/biorhythm-chart.js +2 -2
- package/dist/cdn/components/bodygraph.js +3 -3
- package/dist/cdn/components/chara-karakas.js +1 -1
- package/dist/cdn/components/choghadiya-grid.js +1 -1
- package/dist/cdn/components/compatibility-card.js +1 -1
- package/dist/cdn/components/compound-number.js +1 -1
- package/dist/cdn/components/crystal-card.js +1 -1
- package/dist/cdn/components/crystal-grid.js +1 -1
- package/dist/cdn/components/dasha-timeline.js +2 -2
- package/dist/cdn/components/data.js +1 -1
- package/dist/cdn/components/divisional-chart.js +1 -1
- package/dist/cdn/components/dosha-card.js +1 -1
- package/dist/cdn/components/dosha-constitution.js +1 -1
- package/dist/cdn/components/dream-card.js +1 -1
- package/dist/cdn/components/dream-search.js +1 -1
- package/dist/cdn/components/endpoint-form.js +1 -1
- package/dist/cdn/components/ephemeris-table.js +1 -1
- package/dist/cdn/components/fixed-stars.js +1 -1
- package/dist/cdn/components/flying-star-chart.js +1 -1
- package/dist/cdn/components/forecast-digest.js +1 -1
- package/dist/cdn/components/forecast-timeline.js +2 -2
- package/dist/cdn/components/gematria.js +1 -1
- package/dist/cdn/components/gochara-table.js +1 -1
- package/dist/cdn/components/guna-milan.js +1 -1
- package/dist/cdn/components/hd-connection.js +1 -1
- package/dist/cdn/components/hd-penta.js +1 -1
- package/dist/cdn/components/hd-type-card.js +1 -1
- package/dist/cdn/components/hd-variables.js +1 -1
- package/dist/cdn/components/heliacal-table.js +2 -2
- package/dist/cdn/components/hexagram.js +1 -1
- package/dist/cdn/components/hora-table.js +1 -1
- package/dist/cdn/components/horoscope-card.js +2 -2
- package/dist/cdn/components/kp-chart.js +1 -1
- package/dist/cdn/components/kp-finance-card.js +2 -2
- package/dist/cdn/components/kp-planets-table.js +3 -3
- package/dist/cdn/components/kp-ruling-planets.js +1 -1
- package/dist/cdn/components/kua-card.js +1 -1
- package/dist/cdn/components/local-space-compass.js +1 -1
- package/dist/cdn/components/location-search.js +1 -1
- package/dist/cdn/components/luck-pillars.js +1 -1
- package/dist/cdn/components/mayan-day-sign.js +1 -1
- package/dist/cdn/components/moon-phase.js +1 -1
- package/dist/cdn/components/nakshatra-card.js +1 -1
- package/dist/cdn/components/natal-chart.js +17 -17
- package/dist/cdn/components/numerology-card.js +1 -1
- package/dist/cdn/components/panchang-table.js +1 -1
- package/dist/cdn/components/positions-table.js +1 -1
- package/dist/cdn/components/profection-card.js +2 -2
- package/dist/cdn/components/reference-card.js +1 -1
- package/dist/cdn/components/relocation-wheel.js +17 -17
- package/dist/cdn/components/report.js +1 -1
- package/dist/cdn/components/shadbala-table.js +1 -1
- package/dist/cdn/components/synastry-chart.js +1 -1
- package/dist/cdn/components/tarot-card.js +2 -2
- package/dist/cdn/components/tarot-catalog.js +2 -2
- package/dist/cdn/components/tarot-spread.js +1 -1
- package/dist/cdn/components/transit-wheel.js +1 -1
- package/dist/cdn/components/transits-table.js +1 -1
- package/dist/cdn/components/upagraha-table.js +1 -1
- package/dist/cdn/components/vastu-mandala.js +1 -1
- package/dist/cdn/components/vedic-aspects.js +1 -1
- package/dist/cdn/components/vedic-daily.js +1 -1
- package/dist/cdn/components/vedic-kundli.js +1 -1
- package/dist/cdn/components/vedic-planets-table.js +1 -1
- package/dist/cdn/components/western-planets-table.js +1 -1
- package/dist/cdn/components/yoga-list.js +2 -2
- package/dist/cdn/components/zodiac-card.js +1 -1
- package/dist/cdn/locales/de.js +1 -1
- package/dist/cdn/locales/es.js +1 -1
- package/dist/cdn/locales/fr.js +1 -1
- package/dist/cdn/locales/hi.js +1 -1
- package/dist/cdn/locales/pt.js +1 -1
- package/dist/cdn/locales/ru.js +1 -1
- package/dist/cdn/locales/tr.js +1 -1
- package/dist/cdn/roxy-ui.js +79 -79
- package/dist/components/almanac-day.js +1 -1
- package/dist/components/angel-number-card.js +1 -1
- package/dist/components/angel-number-lookup.js +1 -1
- package/dist/components/arudha-padas.js +1 -1
- package/dist/components/ashtakavarga-grid.js +1 -1
- package/dist/components/aspects-table.js +1 -1
- package/dist/components/astrocartography-map.js +1 -1
- package/dist/components/bazi-chart.js +1 -1
- package/dist/components/bhav-chalit-table.js +1 -1
- package/dist/components/bhava-bala-table.js +1 -1
- package/dist/components/biorhythm-chart.js +1 -1
- package/dist/components/bodygraph.js +1 -1
- package/dist/components/chara-karakas.js +1 -1
- package/dist/components/choghadiya-grid.js +1 -1
- package/dist/components/compatibility-card.js +1 -1
- package/dist/components/compound-number.js +1 -1
- package/dist/components/crystal-card.js +1 -1
- package/dist/components/crystal-grid.js +1 -1
- package/dist/components/dasha-timeline.js +1 -1
- package/dist/components/data.js +1 -1
- package/dist/components/divisional-chart.js +1 -1
- package/dist/components/dosha-card.js +1 -1
- package/dist/components/dosha-constitution.js +1 -1
- package/dist/components/dream-card.js +1 -1
- package/dist/components/dream-search.js +1 -1
- package/dist/components/endpoint-form.js +1 -1
- package/dist/components/ephemeris-table.js +1 -1
- package/dist/components/fixed-stars.js +1 -1
- package/dist/components/flying-star-chart.js +1 -1
- package/dist/components/forecast-digest.js +1 -1
- package/dist/components/forecast-timeline.js +1 -1
- package/dist/components/gematria.js +1 -1
- package/dist/components/gochara-table.js +1 -1
- package/dist/components/guna-milan.js +1 -1
- package/dist/components/hd-connection.js +1 -1
- package/dist/components/hd-penta.js +1 -1
- package/dist/components/hd-type-card.js +1 -1
- package/dist/components/hd-variables.js +1 -1
- package/dist/components/heliacal-table.js +1 -1
- package/dist/components/hexagram.js +1 -1
- package/dist/components/hora-table.js +1 -1
- package/dist/components/horoscope-card.js +1 -1
- package/dist/components/kp-chart.js +1 -1
- package/dist/components/kp-finance-card.js +1 -1
- package/dist/components/kp-planets-table.js +1 -1
- package/dist/components/kp-ruling-planets.js +1 -1
- package/dist/components/kua-card.js +1 -1
- package/dist/components/local-space-compass.js +1 -1
- package/dist/components/location-search.js +1 -1
- package/dist/components/luck-pillars.js +1 -1
- package/dist/components/mayan-day-sign.js +1 -1
- package/dist/components/moon-phase.js +1 -1
- package/dist/components/nakshatra-card.js +1 -1
- package/dist/components/natal-chart.d.ts +5 -0
- package/dist/components/natal-chart.js +14 -14
- package/dist/components/numerology-card.js +1 -1
- package/dist/components/panchang-table.js +1 -1
- package/dist/components/positions-table.js +1 -1
- package/dist/components/profection-card.js +1 -1
- package/dist/components/reference-card.js +1 -1
- package/dist/components/relocation-wheel.js +15 -15
- package/dist/components/report.js +1 -1
- package/dist/components/shadbala-table.js +1 -1
- package/dist/components/synastry-chart.js +1 -1
- package/dist/components/tarot-card.js +1 -1
- package/dist/components/tarot-catalog.js +1 -1
- package/dist/components/tarot-spread.js +1 -1
- package/dist/components/transit-wheel.js +1 -1
- package/dist/components/transits-table.js +1 -1
- package/dist/components/upagraha-table.js +1 -1
- package/dist/components/vastu-mandala.js +1 -1
- package/dist/components/vedic-aspects.js +1 -1
- package/dist/components/vedic-daily.js +1 -1
- package/dist/components/vedic-kundli.js +1 -1
- package/dist/components/vedic-planets-table.js +1 -1
- package/dist/components/western-planets-table.d.ts +1 -0
- package/dist/components/western-planets-table.js +1 -1
- package/dist/components/yoga-list.js +1 -1
- package/dist/components/zodiac-card.js +1 -1
- package/dist/forms.json +1 -1
- package/dist/i18n/chrome-strings.d.ts +1 -1
- package/dist/index.cjs +78 -78
- package/dist/index.js +83 -83
- package/dist/locales/de.js +1 -1
- package/dist/locales/es.js +1 -1
- package/dist/locales/fr.js +1 -1
- package/dist/locales/hi.js +1 -1
- package/dist/locales/pt.js +1 -1
- package/dist/locales/ru.js +1 -1
- package/dist/locales/tr.js +1 -1
- package/dist/schemas/post--astrology-aspect-patterns.json +1 -1
- package/dist/types/types.gen.d.ts +63 -12
- package/dist/utils/string.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/cdn/roxy-ui.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use strict";var RoxyUI=(()=>{var Qr=Object.defineProperty;var so=Object.getOwnPropertyDescriptor;var Zp=Object.getOwnPropertyNames;var Xp=Object.prototype.hasOwnProperty;var Jp=(n,a)=>{for(var e in a)Qr(n,e,{get:a[e],enumerable:true})},Qp=(n,a,e,t)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of Zp(a))!Xp.call(n,r)&&r!==e&&Qr(n,r,{get:()=>a[r],enumerable:!(t=so(a,r))||t.enumerable});return n};var eh=n=>Qp(Qr({},"__esModule",{value:true}),n),y=(n,a,e,t)=>{for(var r=t>1?void 0:t?so(a,e):a,i=n.length-1,l;i>=0;i--)(l=n[i])&&(r=(t?l(a,e,r):l(r))||r);return t&&r&&Qr(a,e,r),r};var Ju={};Jp(Ju,{ROXY_COMPONENTS:()=>Pn,ROXY_UI_COMPONENTS:()=>Xu,ROXY_UI_TOKENS_STYLE_ID:()=>ys,ROXY_UI_VERSION:()=>sr,RoxyAlmanacDay:()=>nt,RoxyAngelNumberCard:()=>Bt,RoxyAngelNumberLookup:()=>Ht,RoxyArudhaPadas:()=>Ut,RoxyAshtakavargaGrid:()=>it,RoxyAspectsTable:()=>Vt,RoxyAstrocartographyMap:()=>qt,RoxyBaziChart:()=>Yt,RoxyBhavChalitTable:()=>Wt,RoxyBhavaBalaTable:()=>Zt,RoxyBiorhythmChart:()=>dt,RoxyBodygraph:()=>ht,RoxyCharaKarakas:()=>ea,RoxyChoghadiyaGrid:()=>ta,RoxyCompatibilityCard:()=>mt,RoxyCompoundNumber:()=>aa,RoxyCrystalCard:()=>ra,RoxyCrystalGrid:()=>gt,RoxyDashaTimeline:()=>Xe,RoxyData:()=>sa,RoxyDivisionalChart:()=>yt,RoxyDoshaCard:()=>ut,RoxyDoshaConstitution:()=>ia,RoxyDreamCard:()=>oa,RoxyDreamSearch:()=>la,RoxyEndpointForm:()=>ee,RoxyEphemerisTable:()=>xt,RoxyFixedStars:()=>da,RoxyFlyingStarChart:()=>bt,RoxyForecastDigest:()=>pa,RoxyForecastTimeline:()=>ha,RoxyGematria:()=>ma,RoxyGocharaTable:()=>ga,RoxyGunaMilan:()=>ya,RoxyHdConnection:()=>ua,RoxyHdPenta:()=>fa,RoxyHdTypeCard:()=>xa,RoxyHdVariables:()=>ba,RoxyHeliacalTable:()=>va,RoxyHexagram:()=>La,RoxyHoraTable:()=>$a,RoxyHoroscopeCard:()=>Je,RoxyKpChart:()=>vt,RoxyKpFinanceCard:()=>wa,RoxyKpPlanetsTable:()=>ka,RoxyKpRulingPlanets:()=>Sa,RoxyKuaCard:()=>Lt,RoxyLocalSpaceCompass:()=>Ra,RoxyLocationSearch:()=>oe,RoxyLuckPillars:()=>Ca,RoxyMayanDaySign:()=>kt,RoxyMoonPhase:()=>St,RoxyNakshatraCard:()=>Ta,RoxyNatalChart:()=>Qe,RoxyNumerologyCard:()=>Rt,RoxyPanchangTable:()=>Ct,RoxyPositionsTable:()=>Tt,RoxyProfectionCard:()=>Da,RoxyReferenceCard:()=>Pa,RoxyRelocationWheel:()=>_a,RoxyReport:()=>Ce,RoxyShadbalaTable:()=>Ma,RoxySynastryChart:()=>za,RoxyTarotCard:()=>Et,RoxyTarotCatalog:()=>At,RoxyTarotSpread:()=>Dt,RoxyTransitWheel:()=>Be,RoxyTransitsTable:()=>Pt,RoxyUpagrahaTable:()=>Oa,RoxyVastuMandala:()=>_t,RoxyVedicAspects:()=>Ia,RoxyVedicDaily:()=>Ga,RoxyVedicKundli:()=>He,RoxyVedicPlanetsTable:()=>Fa,RoxyWesternPlanetsTable:()=>Ea,RoxyYogaList:()=>Mt,RoxyZodiacCard:()=>Nt,componentForTool:()=>ao,expandCompact:()=>_r,injectRoxyTokens:()=>us,roxyDataScript:()=>bc,serializeRoxyData:()=>Xn});var es=globalThis,ts=es.ShadowRoot&&(es.ShadyCSS===void 0||es.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_n=Symbol(),no=new WeakMap,Sr=class{constructor(a,e,t){if(this._$cssResult$=true,t!==_n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=a,this.t=e}get styleSheet(){let a=this.o,e=this.t;if(ts&&a===void 0){let t=e!==void 0&&e.length===1;t&&(a=no.get(e)),a===void 0&&((this.o=a=new CSSStyleSheet).replaceSync(this.cssText),t&&no.set(e,a))}return a}toString(){return this.cssText}},io=n=>new Sr(typeof n=="string"?n:n+"",void 0,_n),u=(n,...a)=>{let e=n.length===1?n[0]:a.reduce((t,r,i)=>t+(l=>{if(l._$cssResult$===true)return l.cssText;if(typeof l=="number")return l;throw Error("Value passed to 'css' function must be a 'css' function result: "+l+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+n[i+1],n[0]);return new Sr(e,n,_n)},oo=(n,a)=>{if(ts)n.adoptedStyleSheets=a.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of a){let t=document.createElement("style"),r=es.litNonce;r!==void 0&&t.setAttribute("nonce",r),t.textContent=e.cssText,n.appendChild(t)}},Mn=ts?n=>n:n=>n instanceof CSSStyleSheet?(a=>{let e="";for(let t of a.cssRules)e+=t.cssText;return io(e)})(n):n;var{is:th,defineProperty:ah,getOwnPropertyDescriptor:rh,getOwnPropertyNames:sh,getOwnPropertySymbols:nh,getPrototypeOf:ih}=Object,as=globalThis,lo=as.trustedTypes,oh=lo?lo.emptyScript:"",lh=as.reactiveElementPolyfillSupport,Rr=(n,a)=>n,Cr={toAttribute(n,a){switch(a){case Boolean:n=n?oh:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,a){let e=n;switch(a){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},rs=(n,a)=>!th(n,a),co={attribute:true,type:String,converter:Cr,reflect:false,useDefault:false,hasChanged:rs};Symbol.metadata??=Symbol("metadata"),as.litPropertyMetadata??=new WeakMap;var tt=class extends HTMLElement{static addInitializer(a){this._$Ei(),(this.l??=[]).push(a)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(a,e=co){if(e.state&&(e.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(a)&&((e=Object.create(e)).wrapped=true),this.elementProperties.set(a,e),!e.noAccessor){let t=Symbol(),r=this.getPropertyDescriptor(a,t,e);r!==void 0&&ah(this.prototype,a,r)}}static getPropertyDescriptor(a,e,t){let{get:r,set:i}=rh(this.prototype,a)??{get(){return this[e]},set(l){this[e]=l}};return{get:r,set(l){let c=r?.call(this);i?.call(this,l),this.requestUpdate(a,c,t)},configurable:true,enumerable:true}}static getPropertyOptions(a){return this.elementProperties.get(a)??co}static _$Ei(){if(this.hasOwnProperty(Rr("elementProperties")))return;let a=ih(this);a.finalize(),a.l!==void 0&&(this.l=[...a.l]),this.elementProperties=new Map(a.elementProperties)}static finalize(){if(this.hasOwnProperty(Rr("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(Rr("properties"))){let e=this.properties,t=[...sh(e),...nh(e)];for(let r of t)this.createProperty(r,e[r])}let a=this[Symbol.metadata];if(a!==null){let e=litPropertyMetadata.get(a);if(e!==void 0)for(let[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let r=this._$Eu(e,t);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(a){let e=[];if(Array.isArray(a)){let t=new Set(a.flat(1/0).reverse());for(let r of t)e.unshift(Mn(r))}else a!==void 0&&e.push(Mn(a));return e}static _$Eu(a,e){let t=e.attribute;return t===false?void 0:typeof t=="string"?t:typeof a=="string"?a.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(a=>this.enableUpdating=a),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(a=>a(this))}addController(a){(this._$EO??=new Set).add(a),this.renderRoot!==void 0&&this.isConnected&&a.hostConnected?.()}removeController(a){this._$EO?.delete(a)}_$E_(){let a=new Map,e=this.constructor.elementProperties;for(let t of e.keys())this.hasOwnProperty(t)&&(a.set(t,this[t]),delete this[t]);a.size>0&&(this._$Ep=a)}createRenderRoot(){let a=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return oo(a,this.constructor.elementStyles),a}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach(a=>a.hostConnected?.())}enableUpdating(a){}disconnectedCallback(){this._$EO?.forEach(a=>a.hostDisconnected?.())}attributeChangedCallback(a,e,t){this._$AK(a,t)}_$ET(a,e){let t=this.constructor.elementProperties.get(a),r=this.constructor._$Eu(a,t);if(r!==void 0&&t.reflect===true){let i=(t.converter?.toAttribute!==void 0?t.converter:Cr).toAttribute(e,t.type);this._$Em=a,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(a,e){let t=this.constructor,r=t._$Eh.get(a);if(r!==void 0&&this._$Em!==r){let i=t.getPropertyOptions(r),l=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:Cr;this._$Em=r;let c=l.fromAttribute(e,i.type);this[r]=c??this._$Ej?.get(r)??c,this._$Em=null}}requestUpdate(a,e,t,r=false,i){if(a!==void 0){let l=this.constructor;if(r===false&&(i=this[a]),t??=l.getPropertyOptions(a),!((t.hasChanged??rs)(i,e)||t.useDefault&&t.reflect&&i===this._$Ej?.get(a)&&!this.hasAttribute(l._$Eu(a,t))))return;this.C(a,e,t)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(a,e,{useDefault:t,reflect:r,wrapped:i},l){t&&!(this._$Ej??=new Map).has(a)&&(this._$Ej.set(a,l??e??this[a]),i!==true||l!==void 0)||(this._$AL.has(a)||(this.hasUpdated||t||(e=void 0),this._$AL.set(a,e)),r===true&&this._$Em!==a&&(this._$Eq??=new Set).add(a))}async _$EP(){this.isUpdatePending=true;try{await this._$ES}catch(e){Promise.reject(e)}let a=this.scheduleUpdate();return a!=null&&await a,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let t=this.constructor.elementProperties;if(t.size>0)for(let[r,i]of t){let{wrapped:l}=i,c=this[r];l!==true||this._$AL.has(r)||c===void 0||this.C(r,void 0,i,c)}}let a=false,e=this._$AL;try{a=this.shouldUpdate(e),a?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(t){throw a=false,this._$EM(),t}a&&this._$AE(e)}willUpdate(a){}_$AE(a){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(a)),this.updated(a)}_$EM(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(a){return true}update(a){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(a){}firstUpdated(a){}};tt.elementStyles=[],tt.shadowRootOptions={mode:"open"},tt[Rr("elementProperties")]=new Map,tt[Rr("finalized")]=new Map,lh?.({ReactiveElement:tt}),(as.reactiveElementVersions??=[]).push("2.1.2");var zn=globalThis,po=n=>n,ss=zn.trustedTypes,ho=ss?ss.createPolicy("lit-html",{createHTML:n=>n}):void 0,On="$lit$",at=`lit$${Math.random().toFixed(9).slice(2)}$`,In="?"+at,ch=`<${In}>`,ja=document,Er=()=>ja.createComment(""),Ar=n=>n===null||typeof n!="object"&&typeof n!="function",Gn=Array.isArray,xo=n=>Gn(n)||typeof n?.[Symbol.iterator]=="function",Nn=`[
|
|
2
|
-
\f\r]`,Tr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),yo=/'/g,uo=/"/g,bo=/^(?:script|style|textarea|title)$/i,Fn=n=>(a,...e)=>({_$litType$:n,strings:a,values:e}),s=Fn(1),F=Fn(2),sf=Fn(3),$e=Symbol.for("lit-noChange"),o=Symbol.for("lit-nothing"),fo=new WeakMap,Ha=ja.createTreeWalker(ja,129);function vo(n,a){if(!Gn(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return ho!==void 0?ho.createHTML(a):a}var Lo=(n,a)=>{let e=n.length-1,t=[],r,i=a===2?"<svg>":a===3?"<math>":"",l=Tr;for(let c=0;c<e;c++){let d=n[c],p,h,m=-1,g=0;for(;g<d.length&&(l.lastIndex=g,h=l.exec(d),h!==null);)g=l.lastIndex,l===Tr?h[1]==="!--"?l=mo:h[1]!==void 0?l=go:h[2]!==void 0?(bo.test(h[2])&&(r=RegExp("</"+h[2],"g")),l=Ba):h[3]!==void 0&&(l=Ba):l===Ba?h[0]===">"?(l=r??Tr,m=-1):h[1]===void 0?m=-2:(m=l.lastIndex-h[2].length,p=h[1],l=h[3]===void 0?Ba:h[3]==='"'?uo:yo):l===uo||l===yo?l=Ba:l===mo||l===go?l=Tr:(l=Ba,r=void 0);let b=l===Ba&&n[c+1].startsWith("/>")?" ":"";i+=l===Tr?d+ch:m>=0?(t.push(p),d.slice(0,m)+On+d.slice(m)+at+b):d+at+(m===-2?c:b)}return[vo(n,i+(n[e]||"<?>")+(a===2?"</svg>":a===3?"</math>":"")),t]},Dr=class n{constructor({strings:a,_$litType$:e},t){let r;this.parts=[];let i=0,l=0,c=a.length-1,d=this.parts,[p,h]=Lo(a,e);if(this.el=n.createElement(p,t),Ha.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(r=Ha.nextNode())!==null&&d.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(let m of r.getAttributeNames())if(m.endsWith(On)){let g=h[l++],b=r.getAttribute(m).split(at),w=/([.?@])?(.*)/.exec(g);d.push({type:1,index:i,name:w[2],strings:b,ctor:w[1]==="."?is:w[1]==="?"?os:w[1]==="@"?ls:Ua}),r.removeAttribute(m)}else m.startsWith(at)&&(d.push({type:6,index:i}),r.removeAttribute(m));if(bo.test(r.tagName)){let m=r.textContent.split(at),g=m.length-1;if(g>0){r.textContent=ss?ss.emptyScript:"";for(let b=0;b<g;b++)r.append(m[b],Er()),Ha.nextNode(),d.push({type:2,index:++i});r.append(m[g],Er())}}}else if(r.nodeType===8)if(r.data===In)d.push({type:2,index:i});else{let m=-1;for(;(m=r.data.indexOf(at,m+1))!==-1;)d.push({type:7,index:i}),m+=at.length-1}i++}}static createElement(a,e){let t=ja.createElement("template");return t.innerHTML=a,t}};function Ka(n,a,e=n,t){if(a===$e)return a;let r=t!==void 0?e._$Co?.[t]:e._$Cl,i=Ar(a)?void 0:a._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(false),i===void 0?r=void 0:(r=new i(n),r._$AT(n,e,t)),t!==void 0?(e._$Co??=[])[t]=r:e._$Cl=r),r!==void 0&&(a=Ka(n,r._$AS(n,a.values),r,t)),a}var ns=class{constructor(a,e){this._$AV=[],this._$AN=void 0,this._$AD=a,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(a){let{el:{content:e},parts:t}=this._$AD,r=(a?.creationScope??ja).importNode(e,true);Ha.currentNode=r;let i=Ha.nextNode(),l=0,c=0,d=t[0];for(;d!==void 0;){if(l===d.index){let p;d.type===2?p=new rr(i,i.nextSibling,this,a):d.type===1?p=new d.ctor(i,d.name,d.strings,this,a):d.type===6&&(p=new cs(i,this,a)),this._$AV.push(p),d=t[++c]}l!==d?.index&&(i=Ha.nextNode(),l++)}return Ha.currentNode=ja,r}p(a){let e=0;for(let t of this._$AV)t!==void 0&&(t.strings!==void 0?(t._$AI(a,t,e),e+=t.strings.length-2):t._$AI(a[e])),e++}},rr=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(a,e,t,r){this.type=2,this._$AH=o,this._$AN=void 0,this._$AA=a,this._$AB=e,this._$AM=t,this.options=r,this._$Cv=r?.isConnected??true}get parentNode(){let a=this._$AA.parentNode,e=this._$AM;return e!==void 0&&a?.nodeType===11&&(a=e.parentNode),a}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(a,e=this){a=Ka(this,a,e),Ar(a)?a===o||a==null||a===""?(this._$AH!==o&&this._$AR(),this._$AH=o):a!==this._$AH&&a!==$e&&this._(a):a._$litType$!==void 0?this.$(a):a.nodeType!==void 0?this.T(a):xo(a)?this.k(a):this._(a)}O(a){return this._$AA.parentNode.insertBefore(a,this._$AB)}T(a){this._$AH!==a&&(this._$AR(),this._$AH=this.O(a))}_(a){this._$AH!==o&&Ar(this._$AH)?this._$AA.nextSibling.data=a:this.T(ja.createTextNode(a)),this._$AH=a}$(a){let{values:e,_$litType$:t}=a,r=typeof t=="number"?this._$AC(a):(t.el===void 0&&(t.el=Dr.createElement(vo(t.h,t.h[0]),this.options)),t);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new ns(r,this),l=i.u(this.options);i.p(e),this.T(l),this._$AH=i}}_$AC(a){let e=fo.get(a.strings);return e===void 0&&fo.set(a.strings,e=new Dr(a)),e}k(a){Gn(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,t,r=0;for(let i of a)r===e.length?e.push(t=new n(this.O(Er()),this.O(Er()),this,this.options)):t=e[r],t._$AI(i),r++;r<e.length&&(this._$AR(t&&t._$AB.nextSibling,r),e.length=r)}_$AR(a=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);a!==this._$AB;){let t=po(a).nextSibling;po(a).remove(),a=t}}setConnected(a){this._$AM===void 0&&(this._$Cv=a,this._$AP?.(a))}},Ua=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(a,e,t,r,i){this.type=1,this._$AH=o,this._$AN=void 0,this.element=a,this.name=e,this._$AM=r,this.options=i,t.length>2||t[0]!==""||t[1]!==""?(this._$AH=Array(t.length-1).fill(new String),this.strings=t):this._$AH=o}_$AI(a,e=this,t,r){let i=this.strings,l=false;if(i===void 0)a=Ka(this,a,e,0),l=!Ar(a)||a!==this._$AH&&a!==$e,l&&(this._$AH=a);else{let c=a,d,p;for(a=i[0],d=0;d<i.length-1;d++)p=Ka(this,c[t+d],e,d),p===$e&&(p=this._$AH[d]),l||=!Ar(p)||p!==this._$AH[d],p===o?a=o:a!==o&&(a+=(p??"")+i[d+1]),this._$AH[d]=p}l&&!r&&this.j(a)}j(a){a===o?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,a??"")}},is=class extends Ua{constructor(){super(...arguments),this.type=3}j(a){this.element[this.name]=a===o?void 0:a}},os=class extends Ua{constructor(){super(...arguments),this.type=4}j(a){this.element.toggleAttribute(this.name,!!a&&a!==o)}},ls=class extends Ua{constructor(a,e,t,r,i){super(a,e,t,r,i),this.type=5}_$AI(a,e=this){if((a=Ka(this,a,e,0)??o)===$e)return;let t=this._$AH,r=a===o&&t!==o||a.capture!==t.capture||a.once!==t.once||a.passive!==t.passive,i=a!==o&&(t===o||r);r&&this.element.removeEventListener(this.name,this,t),i&&this.element.addEventListener(this.name,this,a),this._$AH=a}handleEvent(a){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,a):this._$AH.handleEvent(a)}},cs=class{constructor(a,e,t){this.element=a,this.type=6,this._$AN=void 0,this._$AM=e,this.options=t}get _$AU(){return this._$AM._$AU}_$AI(a){Ka(this,a)}},$o={M:On,P:at,A:In,C:1,L:Lo,R:ns,D:xo,V:Ka,I:rr,H:Ua,N:os,U:ls,B:is,F:cs},dh=zn.litHtmlPolyfillSupport;dh?.(Dr,rr),(zn.litHtmlVersions??=[]).push("3.3.3");var wo=(n,a,e)=>{let t=e?.renderBefore??a,r=t._$litPart$;if(r===void 0){let i=e?.renderBefore??null;t._$litPart$=r=new rr(a.insertBefore(Er(),i),i,void 0,e??{})}return r._$AI(n),r};var Bn=globalThis,zt=class extends tt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let a=super.createRenderRoot();return this.renderOptions.renderBefore??=a.firstChild,a}update(a){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(a),this._$Do=wo(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return $e}};zt._$litElement$=true,zt.finalized=true,Bn.litElementHydrateSupport?.({LitElement:zt});var ph=Bn.litElementPolyfillSupport;ph?.({LitElement:zt});(Bn.litElementVersions??=[]).push("4.2.2");var hh={attribute:true,type:String,converter:Cr,reflect:false,hasChanged:rs},mh=(n=hh,a,e)=>{let{kind:t,metadata:r}=e,i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),t==="setter"&&((n=Object.create(n)).wrapped=true),i.set(e.name,n),t==="accessor"){let{name:l}=e;return{set(c){let d=a.get.call(this);a.set.call(this,c),this.requestUpdate(l,d,n,true,c)},init(c){return c!==void 0&&this.C(l,void 0,n,c),c}}}if(t==="setter"){let{name:l}=e;return function(c){let d=this[l];a.call(this,c),this.requestUpdate(l,d,n,true,c)}}throw Error("Unsupported decorator location: "+t)};function k(n){return(a,e)=>typeof e=="object"?mh(n,a,e):((t,r,i)=>{let l=r.hasOwnProperty(i);return r.constructor.createProperty(i,t),l?Object.getOwnPropertyDescriptor(r,i):void 0})(n,a,e)}function I(n){return k({...n,state:true,attribute:false})}var ko=[{endpoint:"chinese-astrology/calendar/day/{date}",method:"GET",attrs:{mode:"day"}},{endpoint:"chinese-astrology/calendar/monthly",method:"GET",attrs:{mode:"month"}},{endpoint:"chinese-astrology/calendar/auspicious-days",method:"POST",attrs:{mode:"auspicious"}}],So=[{endpoint:"angel-numbers/numbers/{number}",method:"GET"},{endpoint:"angel-numbers/daily",method:"POST"}],Ro=[{endpoint:"angel-numbers/lookup",method:"GET"}],Co=[{endpoint:"vedic-astrology/arudha",method:"POST"}],To=[{endpoint:"vedic-astrology/ashtakavarga",method:"POST"}],Eo=[{endpoint:"astrology/aspects",method:"POST"},{endpoint:"astrology/transit-aspects",method:"POST"},{endpoint:"astrology/aspect-patterns",method:"POST"}],Ao=[{endpoint:"astrology/astrocartography",method:"POST"}],Do=[{endpoint:"chinese-astrology/bazi/chart",method:"POST"}],Po=[{endpoint:"vedic-astrology/bhav-chalit",method:"POST"}],_o=[{endpoint:"vedic-astrology/bhava-bala",method:"POST"}],Mo=[{endpoint:"biorhythm/daily",method:"POST",attrs:{mode:"daily"}},{endpoint:"biorhythm/forecast",method:"POST",attrs:{mode:"forecast"}},{endpoint:"biorhythm/critical-days",method:"POST",attrs:{mode:"critical-days"}}],No=[{endpoint:"human-design/bodygraph",method:"POST"}],zo=[{endpoint:"vedic-astrology/chara-karakas",method:"POST"}],Oo=[{endpoint:"vedic-astrology/panchang/choghadiya",method:"POST"}],Io=[{endpoint:"astrology/compatibility-score",method:"POST",attrs:{mode:"astrology"}},{endpoint:"numerology/compatibility",method:"POST",attrs:{mode:"numerology"}},{endpoint:"biorhythm/compatibility",method:"POST",attrs:{mode:"biorhythm"}}],Go=[{endpoint:"numerology/compound-number/{number}",method:"GET"}],Fo=[{endpoint:"crystals/{id}",method:"GET"}],Bo=[{endpoint:"crystals",method:"GET"},{endpoint:"crystals/chakra/{chakra}",method:"GET"},{endpoint:"crystals/element/{element}",method:"GET"},{endpoint:"crystals/zodiac/{sign}",method:"GET"},{endpoint:"crystals/birthstone/{month}",method:"GET"},{endpoint:"crystals/search",method:"GET"}],Ho=[{endpoint:"vedic-astrology/dasha/major",method:"POST",attrs:{period:"major"}},{endpoint:"vedic-astrology/dasha/current",method:"POST",attrs:{period:"current"}},{endpoint:"vedic-astrology/dasha/sub/{mahadasha}",method:"POST",attrs:{period:"sub"}},{endpoint:"vedic-astrology/dasha/sub/{mahadasha}/{antardasha}",method:"POST",attrs:{period:"antara"}},{endpoint:"vedic-astrology/dasha/sub/{mahadasha}/{antardasha}/{pratyantardasha}",method:"POST",attrs:{period:"sookshma"}},{endpoint:"vedic-astrology/dasha/sub/{mahadasha}/{antardasha}/{pratyantardasha}/{sookshma}",method:"POST",attrs:{period:"prana"}}],jo=[{endpoint:"vedic-astrology/divisional-chart",method:"POST"},{endpoint:"vedic-astrology/navamsa",method:"POST"}],Ko=[{endpoint:"vedic-astrology/dosha/manglik",method:"POST",attrs:{type:"manglik"}},{endpoint:"vedic-astrology/dosha/kalsarpa",method:"POST",attrs:{type:"kalsarpa"}},{endpoint:"vedic-astrology/dosha/sadhesati",method:"POST",attrs:{type:"sadhesati"}}],Uo=[{endpoint:"ayurveda/constitution",method:"POST"}],Vo=[{endpoint:"dreams/symbols/{id}",method:"GET"}],qo=[{endpoint:"dreams/symbols",method:"GET"}],Yo=[{endpoint:"astrology/planets/monthly",method:"POST"},{endpoint:"vedic-astrology/planetary-positions/monthly",method:"POST"}],Wo=[{endpoint:"astrology/fixed-stars",method:"POST"}],Zo=[{endpoint:"feng-shui/flying-stars/natal",method:"POST",attrs:{mode:"natal"}},{endpoint:"feng-shui/flying-stars/annual/{year}",method:"GET",attrs:{mode:"annual"}}],Xo=[{endpoint:"forecast/digest",method:"POST"}],Jo=[{endpoint:"forecast/timeline",method:"POST"},{endpoint:"forecast/significant-dates",method:"POST"},{endpoint:"forecast/transits",method:"POST"}],Qo=[{endpoint:"kabbalah/gematria",method:"POST"}],el=[{endpoint:"vedic-astrology/transit",method:"POST"}],tl=[{endpoint:"vedic-astrology/compatibility",method:"POST"}],al=[{endpoint:"human-design/connection",method:"POST"}],rl=[{endpoint:"human-design/penta",method:"POST"}],sl=[{endpoint:"human-design/type",method:"POST"},{endpoint:"human-design/profile",method:"POST"}],nl=[{endpoint:"human-design/variables",method:"POST"}],il=[{endpoint:"vedic-astrology/heliacal",method:"POST"}],ol=[{endpoint:"iching/hexagrams/random",method:"GET"},{endpoint:"iching/hexagrams/{number}",method:"GET"},{endpoint:"iching/hexagrams/lookup",method:"GET"},{endpoint:"iching/cast",method:"GET"},{endpoint:"iching/daily",method:"POST"},{endpoint:"iching/daily/cast",method:"POST"}],ll=[{endpoint:"vedic-astrology/panchang/hora",method:"POST"}],cl=[{endpoint:"astrology/horoscope/{sign}/daily",method:"GET",attrs:{period:"daily"}},{endpoint:"astrology/horoscope/{sign}/weekly",method:"GET",attrs:{period:"weekly"}},{endpoint:"astrology/horoscope/{sign}/monthly",method:"GET",attrs:{period:"monthly"}},{endpoint:"astrology/horoscope/{sign}/yearly",method:"GET",attrs:{period:"yearly"}}],dl=[{endpoint:"vedic-astrology/kp/chart",method:"POST"}],pl=[{endpoint:"vedic-astrology/kp/daily-finance",method:"POST"}],hl=[{endpoint:"vedic-astrology/kp/planets",method:"POST"}],ml=[{endpoint:"vedic-astrology/kp/ruling-planets",method:"POST"}],gl=[{endpoint:"feng-shui/kua",method:"POST",attrs:{mode:"kua"}},{endpoint:"feng-shui/eight-mansions",method:"POST",attrs:{mode:"mansions"}}],yl=[{endpoint:"astrology/local-space",method:"POST"}],ul=[{endpoint:"chinese-astrology/bazi/luck-pillars",method:"POST"}],fl=[{endpoint:"mesoamerican-astrology/mayan/tzolkin",method:"POST",attrs:{mode:"day"}},{endpoint:"mesoamerican-astrology/mayan/chart",method:"POST",attrs:{mode:"chart"}}],xl=[{endpoint:"astrology/moon-phase/current",method:"GET",attrs:{mode:"current"}},{endpoint:"astrology/moon-phase/upcoming",method:"GET",attrs:{mode:"upcoming"}},{endpoint:"astrology/moon-phase/calendar/{year}/{month}",method:"GET",attrs:{mode:"calendar"}}],bl=[{endpoint:"vedic-astrology/nakshatras/{id}",method:"GET"}],vl=[{endpoint:"astrology/natal-chart",method:"POST"}],Ll=[{endpoint:"numerology/life-path",method:"POST",attrs:{type:"life-path"}},{endpoint:"numerology/expression",method:"POST",attrs:{type:"expression"}},{endpoint:"numerology/soul-urge",method:"POST",attrs:{type:"soul-urge"}},{endpoint:"numerology/personality",method:"POST",attrs:{type:"personality"}},{endpoint:"numerology/birth-day",method:"POST",attrs:{type:"birth-day"}},{endpoint:"numerology/maturity",method:"POST",attrs:{type:"maturity"}},{endpoint:"numerology/daily",method:"POST",attrs:{type:"daily"}},{endpoint:"numerology/personal-day",method:"POST",attrs:{type:"personal-day"}},{endpoint:"numerology/personal-month",method:"POST",attrs:{type:"personal-month"}},{endpoint:"numerology/personal-year",method:"POST",attrs:{type:"personal-year"}},{endpoint:"numerology/chart",method:"POST",attrs:{type:"chart"}}],$l=[{endpoint:"vedic-astrology/panchang/detailed",method:"POST",attrs:{detail:"detailed"}},{endpoint:"vedic-astrology/panchang/basic",method:"POST",attrs:{detail:"basic"}}],wl=[{endpoint:"astrology/asteroids",method:"POST"},{endpoint:"astrology/lilith",method:"POST"},{endpoint:"astrology/progressions",method:"POST"},{endpoint:"astrology/solar-arc",method:"POST"},{endpoint:"astrology/arabic-lots",method:"POST"}],kl=[{endpoint:"astrology/profections",method:"POST"}],Sl=[{endpoint:"astrology/signs/{id}",method:"GET"},{endpoint:"astrology/planet-meanings/{id}",method:"GET"},{endpoint:"vedic-astrology/rashis/{id}",method:"GET"},{endpoint:"iching/trigrams/{id}",method:"GET"},{endpoint:"human-design/gates/{number}",method:"GET"},{endpoint:"human-design/centers/{id}",method:"GET"},{endpoint:"numerology/meanings/{number}",method:"GET"},{endpoint:"vedic-astrology/avasthas/{id}",method:"GET"}],Rl=[{endpoint:"astrology/relocation-chart",method:"POST"}],Cl=[{endpoint:"reports/natal",method:"POST",attrs:{report:"natal"}},{endpoint:"reports/synastry",method:"POST",attrs:{report:"synastry"}},{endpoint:"reports/kundli",method:"POST",attrs:{report:"kundli"}},{endpoint:"reports/matchmaking",method:"POST",attrs:{report:"matchmaking"}},{endpoint:"reports/yearly-forecast",method:"POST",attrs:{report:"yearly-forecast"}},{endpoint:"reports/human-design",method:"POST",attrs:{report:"human-design"}},{endpoint:"reports/bazi",method:"POST",attrs:{report:"bazi"}},{endpoint:"reports/numerology",method:"POST",attrs:{report:"numerology"}},{endpoint:"reports/tarot",method:"POST",attrs:{report:"tarot"}}],Tl=[{endpoint:"vedic-astrology/shadbala",method:"POST"}],El=[{endpoint:"astrology/synastry",method:"POST"}],Al=[{endpoint:"tarot/daily",method:"POST"},{endpoint:"tarot/cards/{id}",method:"GET"}],Dl=[{endpoint:"tarot/cards",method:"GET"}],Pl=[{endpoint:"tarot/spreads/three-card",method:"POST",attrs:{spread:"three-card"}},{endpoint:"tarot/spreads/celtic-cross",method:"POST",attrs:{spread:"celtic-cross"}},{endpoint:"tarot/spreads/love",method:"POST",attrs:{spread:"love"}},{endpoint:"tarot/spreads/career",method:"POST",attrs:{spread:"career"}},{endpoint:"tarot/spreads/custom",method:"POST",attrs:{spread:"custom"}},{endpoint:"tarot/yes-no",method:"POST",attrs:{spread:"yes-no"}},{endpoint:"tarot/draw",method:"POST",attrs:{spread:"draw"}}],_l=[{endpoint:"astrology/transit-aspects",method:"POST"}],Ml=[{endpoint:"astrology/transits",method:"POST"}],Nl=[{endpoint:"vedic-astrology/upagraha",method:"POST"}],zl=[{endpoint:"vastu/mandala",method:"POST",attrs:{mode:"mandala"}},{endpoint:"vastu/entrance",method:"POST",attrs:{mode:"entrance"}}],Ol=[{endpoint:"vedic-astrology/aspects",method:"POST"}],Il=[{endpoint:"vedic-astrology/daily",method:"POST"}],Gl=[{endpoint:"vedic-astrology/birth-chart",method:"POST"}],Fl=[{endpoint:"vedic-astrology/birth-chart",method:"POST"}],Bl=[{endpoint:"astrology/natal-chart",method:"POST"}],Hl=[{endpoint:"vedic-astrology/yoga",method:"GET"},{endpoint:"vedic-astrology/yoga/detect",method:"POST"},{endpoint:"vedic-astrology/yoga/{id}",method:"GET"}],jl=[{endpoint:"chinese-astrology/zodiac/sign",method:"POST",attrs:{mode:"sign"}},{endpoint:"chinese-astrology/zodiac/animals/{id}",method:"GET",attrs:{mode:"animal"}},{endpoint:"chinese-astrology/zodiac/{id}/daily",method:"GET",attrs:{mode:"daily"}},{endpoint:"chinese-astrology/zodiac/compatibility/{sign1}/{sign2}",method:"GET",attrs:{mode:"compatibility"}}];var U=n=>n??o;var Kl=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Pr(n){if(n.lang)return n.lang;if(typeof document>"u")return;let a=n.closest?.("[lang]")?.getAttribute("lang");return a||document.documentElement.lang||void 0}function Ul(n){return!n||n.toLowerCase().split("-")[0]==="en"}var gh={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Hn(n,a){let e=n.toLowerCase();return a.find(t=>t.toLowerCase()===e)}function ps(n,a=Kl){let e=Pr(n);if(!e)return;let t=Hn(e,a);if(t)return t;let r=e.toLowerCase().split("-"),i=r[0];if(i==="zh"){let l=r.find(c=>c==="hans"||c==="hant")??gh[r[1]??""];return l?Hn(`zh-${l}`,a):void 0}return Hn(i,a)}var Yl="symbols";var yh={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},jn='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Vl='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',ql='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',hs={"fraunces-jost":{name:"Fraunces with Jost",sans:jn,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:jn,display:jn},geist:{name:"Geist",sans:Vl,display:Vl},system:{name:"System",sans:ql,display:ql}};function Wl(n){let{sans:a,display:e}=hs[n];return Object.keys(yh).filter(t=>`${a} ${e}`.includes(`"${t}"`))}var Zl=["practitioner","eucalyptus","kiln","moonlit","celeste"];var sr="1.7.0";var uh=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,fh=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function ms(n,a){if(!a)return;let e=new URL(a);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let t=(uh.exec(e.pathname)??fh.exec(e.pathname))?.[1];if(t!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${n}/dist`:`${e.origin}${t}`}var Lh={},xh="color-mix(in oklab, var(--roxy-accent) 70%, black)",bh="var(--roxy-accent)",vh="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Kn=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Un(n){if(!n||!Kn.test(n))return;let a=n.slice(1).toLowerCase();return`#${a.length===3?a.replace(/./g,"$&$&"):a}`}function gs(n){return n!==void 0&&Object.hasOwn(hs,n)}function Xl(n){return Zl.includes(n)}function Jl(n){let a=[];return n.brandColor&&Kn.test(n.brandColor)&&a.push(`--roxy-primary:${n.brandColor}`),n.brandAccent&&Kn.test(n.brandAccent)&&a.push(`--roxy-accent:${n.brandAccent}`,`--roxy-accent-ink:light-dark(${xh},${bh})`,`--roxy-ring:${vh}`),a.join(";")}function Ql(n,a){if(gs(a))return a;let e=n.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let r=n.shadowRoot?.firstElementChild,i=r?.localName==="style"?r:null;i?.sheet&&(i.sheet.disabled=true);let l,c,d;try{let p=globalThis.getComputedStyle(n),h=m=>p.getPropertyValue(m).trim();l=h("--roxy-font-sans"),c=h("--roxy-font-display"),d=h("--roxy-font")}finally{i?.sheet&&(i.sheet.disabled=false)}if(!(l||c))return gs(d)?d:void 0}function ec(n){let{sans:a,display:e}=hs[n];return`--roxy-font:${n};--roxy-font-sans:${a};--roxy-font-display:${e}`}var tc=ms(sr,globalThis.document?.currentScript?.src||Lh.url);function ac(n,a){if(typeof document>"u"||a===void 0)return;let e=`roxy-ui-font-${n}`;if(document.getElementById(e))return;let t=document.createElement("link");t.id=e,t.rel="stylesheet",t.href=`${a}/styles/fonts/${n}.css`,document.head.append(t)}function rc(n,a=tc){Wl(n).length>0&&ac(n,a)}function sc(n=tc){ac(Yl,n)}var nc='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var ys="roxy-ui-tokens";function us(){if(typeof document>"u")return null;let n=document.getElementById(ys);if(n)return n;let a=document.createElement("style");return a.id=ys,a.textContent=nc,document.head.prepend(a),a}function xe(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function D(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}function E(n){return n.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,a=>a.toUpperCase())}function fs(n){return typeof n=="string"&&/^https?:\/\//.test(n)}var ic="__ROXY_UI_I18N__";function Vn(){let n=globalThis,a=n[ic];if(a)return a;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[ic]=e,e}function qn(n,a){return a?n.replace(/\{\{(\w+)\}\}/g,(e,t)=>t in a?String(a[t]??""):e):n}function xs(n,a,e){return qn(Yn(n,a)??a,e)}function Yn(n,a){if(!n)return;let{catalogs:e}=Vn(),t=n.toLowerCase();return(e[t]??e[t.split("-")[0]])?.[xe(a)]}function oc(n){if(!n)return;let{fieldLabels:a}=Vn(),e=n.toLowerCase();return a[e]??a[e.split("-")[0]]}function nr(n,a){return oc(n)?.fields[a]}function lc(n,a,e){return oc(n)?.enums[`${a}.${e}`]}function cc(n){let{listeners:a}=Vn();return a.add(n),()=>{a.delete(n)}}var bs=class{constructor(a){this.host=a,a.addController(this)}hostConnected(){this.unsubscribe=cc(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var Ot=class extends zt{constructor(){super();this.translator=(e,t)=>this.t(e,t);new bs(this)}connectedCallback(){super.connectedCallback(),us()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&sc()}fontDeclarations(e){let t=Ql(this,e);return t?(rc(t),ec(t)):""}renderFontStyle(){let e=this.fontDeclarations();return e?s`<style>:host{${e}}</style>`:o}t(e,t){return xs(this.effectiveLang(),e,t)}effectiveLang(){return Pr(this)}};var dc=u`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function ce(n){return n?s`<span class="roxy-glyph" aria-hidden="true">${n}</span>`:o}var pc=u`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var $h=u`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,v=[$h,pc,dc];var wh="__cols",kh="__rows";function Sh(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function vs(n){if(Array.isArray(n)){let i=false,l=n.map(c=>{let d=vs(c);return d!==c&&(i=true),d});return i?l:n}if(!Sh(n))return n;let a=n[wh],e=n[kh];if(Array.isArray(a)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(i=>{let l={};return a.forEach((c,d)=>{l[c]=vs(i[d])}),l});let t=false,r={};for(let[i,l]of Object.entries(n)){let c=vs(l);c!==l&&(t=true),r[i]=c}return t?r:n}function _r(n){return vs(n)}function hc(n,a){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([t,r])=>a[t]===r))??n[0]}var Rh="pk_live_YOUR_KEY",mc={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function Va(n){if(n)return n===Rh?mc.sample:n.startsWith("pk_")?void 0:mc.secret}function ir(n,a,e={}){e.warn&&console.warn(a.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:a.reason,message:a.message},bubbles:true,composed:true}))}var lr="https://roxyapi.com/api/v2";async function gc(n){return(await yc(n)).message}async function yc(n){try{let a=await n.json();if(a?.error){let e=a.code==="validation_error"&&Array.isArray(a.issues)?a.issues.filter(t=>typeof t.path=="string"&&typeof t.message=="string").map(t=>({path:t.path,message:t.message})):null;return{message:a.error,issues:e?.length?e:null,worded:true,...a.code?{code:a.code}:{}}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:false}}var $s={fromAttribute:n=>{if(n!=null){try{let a=JSON.parse(n);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},or=class extends Error{constructor(e,t=null,r=true,i,l){super(e);this.issues=t;this.worded=r;this.status=i;this.code=l}};function Wn(n){return n.submitUrl?void 0:Va(n.publishableKey)}function Zn(n){return!!(n.submitUrl||n.publishableKey&&!Wn(n))}async function It(n,a,e){let t=Wn(n);if(t)throw new or(t.message);let r=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:Ch(a,n.submitContext),signal:e}):await Th(n,a,e);if(!r.ok){let i=await yc(r);throw new or(i.message,i.issues,i.worded,r.status,i.code)}return await r.json()}function Ch(n,a){return JSON.stringify(a?{...n,context:a}:n)}function Th(n,a,e){let t=new URL(`${n.baseUrl??lr}${a.path}`,document.baseURI);for(let[i,l]of Object.entries(a.query??{}))l!=null&&t.searchParams.set(i,String(l));let r={Accept:"application/json"};return n.publishableKey&&(r["X-API-Key"]=n.publishableKey),a.body!=null&&(r["Content-Type"]="application/json"),fetch(t,{method:a.method??"GET",headers:r,body:a.body!=null?JSON.stringify(a.body):void 0,signal:e})}var Ls=class{constructor(a){this.baseUrl=lr;this.worded=true;this.failure={};this.host=a,a.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(a){this.worded=true,this.failure={};let e=Wn(this);if(e){this.host.error=e.message,ir(this.host,e);return}this.abort?.abort();let t=new AbortController;this.abort=t,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let r=await It(this,a,t.signal);if(t.signal.aborted)return;this.host.data=r}catch(r){if(t.signal.aborted||r?.name==="AbortError")return;r instanceof or&&(this.host.issues=r.issues,this.failure={status:r.status,code:r.code}),this.worded=r instanceof or&&r.worded,this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===t&&(this.abort=void 0),t.signal.aborted||(this.host.loading=false)}}};function uc(n,a,e,t=[]){let r={...e},i=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,h)=>{let m=r[h];return delete r[h],encodeURIComponent(String(m??""))}),l=new Set(t),c={},d={};for(let[p,h]of Object.entries(r))h===void 0||h===""||(a==="GET"||l.has(p)?c[p]=h:d[p]=h);return{path:i,method:a,query:c,body:a==="POST"?d:void 0}}function V(){return s`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var O=u`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var H=u`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function rt(n){return n?.length?s`<div class="interp-keywords roxy-chips">${n.map(a=>s`<span class="roxy-chip">${a}</span>`)}</div>`:o}function Mr(n,a){if(!n)return o;let e=(t,r)=>r?s`<p><strong>${a(t)}</strong> ${r}</p>`:o;return s`${n.summary?s`<p>${n.summary}</p>`:o} ${e("Impact:",n.impact)}${e("Timing:",n.timing)}${e("Guidance:",n.guidance)} ${rt(n.keywords)}`}function fc(n,a,e,t=false){let r=n.filter(i=>!!i.body);return r.length===0?o:s`<section class="block" part="section readings"><h3>${e}</h3>${r.map((i,l)=>s`<details class="interp-card" part="reading" name="${a}" ?open="${l===0&&!t}"><summary><span class="interp-lead">${ce(i.glyph)} ${i.label}</span> ${V()} ${i.aside?s`<span class="interp-aside"><small>${i.aside}</small></span>`:o}</summary><div class="interp-body"><p>${i.body}</p>${i.extra??o}</div></details>`)}</section>`}var xc="roxy-data";function Xn(n){return JSON.stringify(n).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function bc(n){return`<script type="application/json" class="${xc}">${Xn(n)}<\/script>`}function Eh(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var ws=class{constructor(a){this.host=a,a.addController(this)}hostConnected(){if(this.host.data!=null)return;let a=this.read();a!==void 0&&(this.host.data=a,this.host.requestUpdate())}read(){let a=this.findInlineScript();return a?this.parse(a.textContent):void 0}findInlineScript(){for(let a of Array.from(this.host.children))if(Eh(a)&&a.classList.contains(xc))return a;return null}parse(a){if(a?.trim())try{return JSON.parse(a)}catch{return}}};var f=class extends Ot{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,t=this.listKey,r=this.listRows();if(!(!e||!t||!r)){this.moreLoading=true,this.moreError=null;try{let i=await It(this.fetcher,{...e,query:{...e.query,offset:r.length}});if(this.lastRequest!==e)return;let l=i[t];this.data={...this.data,...i,[t]:[...r,...Array.isArray(l)?l:[]]}}catch(i){this.lastRequest===e&&(this.moreError=i instanceof Error?i.message:String(i))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let t=this.selfFetch();if(!t)return;let r=e.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(r.values),this.fetchFresh(uc(t.endpoint,t.method,{...r.values,...this.ownRequest()},r.queryKeys??[]))};new ws(this),this.fetcher=new Ls(this)}static{this.styles=[v]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let t=_r(this.data);t!==this.data&&(this.data=t)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:hc(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return s`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(t){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,t),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:t},bubbles:true,composed:true})),customElements.get("roxy-data")?s`<roxy-data .data="${e}" lang="${U(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^[a-z][a-z0-9-]*$/.test(i)),t=[Jl(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!t)return o;let r=(t?`:host{${t}}`:"")+e.map(i=>`[part~="${i}"],roxy-endpoint-form::part(${i}){display:none!important}`).join("");return s`<style>${r}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?s`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,t,r,i=false){return this.hideReadings?o:fc(e,t,this.t(r??"Reading"),i)}renderResult(e){let t=s`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?s`${t}${this.renderAttribution()}`:t}renderWithForm(e){return s`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?o:this.renderErrorBanner(this.error):this.data==null?o:this.showAttribution()?s`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),t=this.data?.total;return!this.lastRequest||!e||typeof t!="number"?o:e.length>=t?o:s`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?s`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:o}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let t=this.openedRow??document.createElement(this.rowDetail.tag);t.publishableKey=this.publishableKey,t.baseUrl=this.baseUrl,t.submitUrl=this.submitUrl,t.submitContext=this.submitContext,t.hideReadings=this.hideReadings,t.hideSections=this.hideSections;let r=this.effectiveLang();r&&t.setAttribute("lang",r),this.openedRow=t,this.openedRowId=e,t.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:ps(this)}}).then(()=>t.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return s`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(o):this.renderEmpty()}renderForm(){let e=this.selfFetch();return s`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${U(this.specUrl)}" publishable-key="${U(this.publishableKey)}" location-url="${U(this.locationUrl)}" submit-label="${U(this.submitLabel)}" lang="${U(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return s`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return s`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let t=!!this.selfFetch();if(t&&this.issues)return this.renderForm();let r=this.renderErrorBanner(e);return t?s`${r}${this.renderForm()}`:r}renderErrorBanner(e){return s`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};y([k({attribute:false})],f.prototype,"data",2),y([k({type:String,attribute:"data-endpoint"})],f.prototype,"endpoint",2),y([k({type:String})],f.prototype,"method",2),y([k({type:String,attribute:"publishable-key"})],f.prototype,"publishableKey",2),y([k({type:String,attribute:"base-url"})],f.prototype,"baseUrl",2),y([k({type:String,attribute:"spec-url"})],f.prototype,"specUrl",2),y([k({type:String,attribute:"submit-url"})],f.prototype,"submitUrl",2),y([k({attribute:"submit-context",converter:$s})],f.prototype,"submitContext",2),y([k({type:String,attribute:"location-url"})],f.prototype,"locationUrl",2),y([k({type:Boolean})],f.prototype,"remember",2),y([k({type:Boolean,attribute:"hide-readings",reflect:true})],f.prototype,"hideReadings",2),y([k({type:String,attribute:"hide-sections",reflect:true})],f.prototype,"hideSections",2),y([k({type:String,attribute:"brand-color"})],f.prototype,"brandColor",2),y([k({type:String,attribute:"brand-accent"})],f.prototype,"brandAccent",2),y([k({type:String})],f.prototype,"font",2),y([k({type:String})],f.prototype,"hemisphere",2),y([k({type:String,attribute:"submit-label"})],f.prototype,"submitLabel",2),y([k({type:String,attribute:"error-message"})],f.prototype,"errorMessage",2),y([k({type:String})],f.prototype,"attribution",2),y([I()],f.prototype,"loading",2),y([I()],f.prototype,"error",2),y([I()],f.prototype,"issues",2),y([I()],f.prototype,"selfFetched",2),y([I()],f.prototype,"editing",2),y([I()],f.prototype,"sticky",2),y([I()],f.prototype,"openedRow",2),y([I()],f.prototype,"openedRowId",2),y([I()],f.prototype,"moreLoading",2),y([I()],f.prototype,"moreError",2);var L=n=>a=>{customElements.get(n)||customElements.define(n,a)};var ks=/^\d{4}-\d{2}-\d{2}$/,Ah=/^\d{4}-\d{2}$/,$c=/^\d{2}:\d{2}(:\d{2})?$/,Dh=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,vc=new Map;function be(n){if(!n)return["en"];let a=vc.get(n);if(a)return[a,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return vc.set(n,e),[e,"en"]}var Lc=new Map;function Ss(n){let a=n??"",e=Lc.get(a);if(e)return e;let r={hour:new Intl.DateTimeFormat(be(n),{timeStyle:"short",timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2e3,0,1,1))).find(i=>i.type==="hour")?.value?.length===2?"2-digit":"numeric",minute:"2-digit"};return Lc.set(a,r),r}function Nr(n,a){return n&&a?`${n} - ${a}`:n||a}function Ya(n){let a=$c.test(n)?`1970-01-01T${n}`:ks.test(n)?`${n}T00:00:00`:Ah.test(n)?`${n}-01T00:00:00`:Dh.test(n)?n.replace(" ","T"):null;return a?{d:new Date(`${a}Z`),timeZone:"UTC"}:{d:new Date(n)}}var Ph=/^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)(?:Z|[+-]\d{2}:?\d{2})$/;function cr(n){return n?.match(Ph)?.[1]??n}function Te(n,a){if(typeof a!="string"||a.length===0||ks.test(a))return"";let{d:e,timeZone:t}=Ya(a);return Number.isNaN(e.getTime())?a:e.toLocaleTimeString(be(n),{...Ss(n),timeZone:t})}function A(n,a){if(typeof a!="string"||a.length===0)return"";let{d:e,timeZone:t}=Ya(a);return Number.isNaN(e.getTime())?a:e.toLocaleDateString(be(n),{month:"short",day:"numeric",year:"numeric",timeZone:t})}function Ke(n,a){return a?Nr(Te(n,a.start),Te(n,a.end)):""}function ve(n,a,e){return Nr(A(n,a),A(n,e))}function Gt(n,a,e){if(typeof a!="string"||a.length===0)return"";if(e==="year")return a.match(/^(\d{4})/)?.[1]??a;let{d:t,timeZone:r}=Ya(a);return Number.isNaN(t.getTime())?a:t.toLocaleString(be(n),{day:e==="month"?void 0:"numeric",month:"short",year:"numeric",...e==="time"?Ss(n):{},timeZone:r})}function wc(n,a,e,t){return Nr(Gt(n,a,t),Gt(n,e,t))}function qa(n,a){if(typeof a!="string"||a.length===0)return"";let{d:e,timeZone:t}=Ya(a);return Number.isNaN(e.getTime())?a:e.toLocaleDateString(be(n),{month:"short",day:"numeric",timeZone:t})}function kc(n,a,e){let t=qa(n,a),r=qa(n,e);return t===r?t:Nr(t,r)}function Sc(n,a){if(typeof a!="string"||a.length===0)return"";let{d:e,timeZone:t}=Ya(a);return Number.isNaN(e.getTime())?a:e.toLocaleDateString(be(n),{weekday:"short",day:"numeric",timeZone:t})}function dr(n,a,e){return typeof a!="number"||!Number.isFinite(a)||typeof e!="number"||!Number.isInteger(e)||e<1||e>12?"":new Date(Date.UTC(a,e-1,1,12)).toLocaleDateString(be(n),{month:"long",year:"numeric",timeZone:"UTC"})}function Rs(n,a){return typeof a!="number"||!Number.isInteger(a)||a<1||a>12?"":new Date(Date.UTC(2e3,a-1,1,12)).toLocaleDateString(be(n),{month:"long",timeZone:"UTC"})}function N(n,a){return typeof a!="number"||!Number.isFinite(a)?"":a.toLocaleString(be(n),{maximumFractionDigits:0})}function me(n,a){let e=a.filter(Boolean);return e.length<2?e[0]??"":new Intl.ListFormat(be(n),{style:"long",type:"conjunction"}).format(e)}function $(n,a,e=1){return typeof a!="number"||!Number.isFinite(a)?"":a.toLocaleString(be(n),{maximumFractionDigits:e})}function te(n,a,e=1){return typeof a!="number"||!Number.isFinite(a)?"":(a/100).toLocaleString(be(n),{style:"percent",maximumFractionDigits:e})}function we(n){return(n.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}function se(n){return D(we(n))}var _h={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function Wa(n,a,e){let t=typeof a=="string"?_h[a]??E(a):"",r=typeof e=="number"?`${$(n,e,2)}\xB0`:"";return t&&r?`${t} (${r})`:t||r}function Y(n,a,e,t=false){let r=typeof a=="string"&&ks.test(a)&&typeof e=="string"&&$c.test(e)?`${a}T${e}`:a;if(typeof r!="string"||r.length===0)return"";if(ks.test(r))return A(n,r);let{d:i,timeZone:l}=Ya(r);return Number.isNaN(i.getTime())?r:i.toLocaleString(be(n),{month:"short",day:"numeric",year:"numeric",...Ss(n),...t?{second:"2-digit"}:{},timeZone:l})}function pr(n,a,e){return Nr(Y(n,a),Y(n,e))}function Rc(n,a){if(typeof a!="string"||a.length===0)return"";let{d:e}=Ya(a);return Number.isNaN(e.getTime())?a:e.toLocaleString(be(n),{month:"short",day:"numeric",year:"numeric",...Ss(n),timeZone:"UTC",timeZoneName:"short"})}function Cc(){try{return new Intl.DateTimeFormat(be(void 0)).resolvedOptions().timeZone}catch{return}}function Jn(n,a){if(!(typeof a!="string"||!a))return a===n?void 0:a}function zr(n,a){let e=typeof n=="string"?n:"",t=Jn(e,a);return e?t?`${e} (${t})`:e:t??""}function X(n,a,e){return nr(n,a)??e??E(a)}function j(n,a,e,t){return lc(n,a,e)??t??E(e)}var Cs="Localized";function x(n,a,e){let t=n,r=t?.[`${a}${Cs}`];if(typeof r=="string"&&r!=="")return r;if(e!==void 0)return e;let i=t?.[a];return typeof i=="string"?i:""}function Ts(n,a){let e=n,t=e?.[a];if(!Array.isArray(t))return[];let r=e?.[`${a}${Cs}`],i=Array.isArray(r)?r:[];return t.map((l,c)=>{let d=i[c];return{value:String(l),label:typeof d=="string"&&d!==""?d:String(l)}})}function hr(n){let a;for(let e of Object.keys(n)){if(!e.endsWith(Cs))continue;let t=e.slice(0,-Cs.length);if(t===""||!(t in n))continue;a??={...n};let r=n[e];r!=null&&r!==""&&(a[t]=r),delete a[e]}return a??n}var Ue="http://www.w3.org/2000/svg",Es=class{constructor(a){this.markup=a}};function Mh(n){return String(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function Qn(n){return n==null?"":n instanceof Es?n.markup:typeof n=="string"||typeof n=="number"?Mh(n):n.map(Qn).join("")}function T(n,...a){let e=n[0]??"";return a.forEach((t,r)=>{e+=e.endsWith("=")?`"${Qn(t)}"`:Qn(t),e+=n[r+1]??""}),new Es(e)}function Ve(n){return(a,e)=>xs(n,a,e)}var Nh=24,mr=29.530588853,zh=Date.UTC(2e3,0,6,18,14),Oh=864e5,Ih=n=>(1-Math.cos(n*Math.PI/180))/2*100,Ec=n=>({illumination:Ih(n),waxing:n<180});function Or(n){if(!(typeof n!="number"||!Number.isInteger(n)||n<1||n>30))return Ec(12*(n-.5))}function Ac(n){let a=Date.parse(`${n}T12:00:00Z`);return!n||Number.isNaN(a)?void 0:((a-zh)/Oh%mr+mr)%mr/mr*360}function ai(n){let a=Ac(n);return a===void 0?void 0:a<180}function Dc(n){let a=Ac(n);return a===void 0?void 0:Ec(Math.round(a/90)%4*90)}function Gh(n){let a=n;return()=>(a=(a*9301+49297)%233280,a/233280)}function Pc(n,a,e,t,r,i){let c=Gh(i),d=Math.cos(r),p=Math.sin(r),h=Array.from({length:14},(w,S)=>{let R=S/14*Math.PI*2,_=.9+c()*.16,q=Math.cos(R)*e*_,le=Math.sin(R)*t*_;return[n+q*d-le*p,a+q*p+le*d]}),m=w=>h[(w+14)%14],g=w=>w.toFixed(3),b=`M${g(m(0)[0])} ${g(m(0)[1])}`;for(let w=0;w<14;w++){let[S,R,_,q]=[m(w-1),m(w),m(w+1),m(w+2)];b+=`C${g(R[0]+(_[0]-S[0])/6)} ${g(R[1]+(_[1]-S[1])/6)} ${g(_[0]-(q[0]-R[0])/6)} ${g(_[1]-(q[1]-R[1])/6)} ${g(_[0])} ${g(_[1])}`}return`${b}Z`}var _c=[[-.36,-.42,.27,.21,.3,11],[-.6,-.02,.2,.42,.15,23],[.04,-.44,.16,.15,0,37],[.26,-.14,.2,.16,-.4,41],[.66,-.34,.1,.08,.2,53],[.52,.12,.11,.17,.1,67],[-.24,.36,.18,.12,-.2,71],[-.52,.34,.08,.08,0,83],[.33,.26,.07,.07,0,97],[-.08,-.12,.12,.08,.5,101]],ei=_c.map(([n,a,e,t,r,i])=>Pc(n,a,e,t,r,i)).join(""),Mc=T`<circle class="moon-limb moon-limb-1" r="0.95"></circle><circle class="moon-limb moon-limb-2" r="0.985"></circle>`,Fh=_c.map(([n,a,e,t,r,i])=>Pc(n,a,e*1.22,t*1.22,r,i+3)).join("");function ti(n,a){let e=Math.abs(1-2*n).toFixed(4),t=n<.5;return a?`M0 -1A1 1 0 0 1 0 1A${e} 1 0 0 ${t?0:1} 0 -1Z`:`M0 -1A1 1 0 0 0 0 1A${e} 1 0 0 ${t?1:0} 0 -1Z`}var Tc=.004;function Bh(n,a,e,t){let r=a>Tc,i=t&&r&&a<1-Tc?[.012,.006].map((l,c)=>T`<path class="moon-soft moon-soft-${c+1}" d=${ti(Math.min(1,a+l),e)}></path>`):[];return T`<circle class="moon-shade" r="1"></circle>${t?T`<path class="moon-earthshine" d=${ei} clip-path=${`url(#${n}-disc)`}></path>`:""}${i}${r?T`<path class="moon-lit" d=${ti(a,e)}></path>`:""}${t&&r?T`<g clip-path=${`url(#${n}-lit)`}><path class="moon-halo" d=${Fh}></path><path class="moon-mare" d=${ei}></path><circle class="moon-crater" cx="-0.16" cy="0.72" r="0.035"></circle>${Mc}</g>`:""}`}function Hh(n,a,e){return a==="solar"?T`<circle class="moon-corona" r="1.1"></circle><circle class="moon-corona moon-corona-outer" r="1.18"></circle><circle class="moon-shade" r="1"></circle>`:T`<circle class="moon-copper" r="1"></circle>${e?T`<path class="moon-copper-mare" d=${ei} clip-path=${`url(#${n}-disc)`}></path><g class="moon-copper-limb">${Mc}</g>`:""}`}function jh(n,a){let e=Ve(n.lang);if(n.eclipse==="lunar")return e("Lunar eclipse");if(n.eclipse==="solar")return e("Solar eclipse");let t=n.lang,r=te(t,a,0);return n.waxing?e("{{percent}} illuminated, waxing",{percent:r}):e("{{percent}} illuminated, waning",{percent:r})}function Nc(n){let a=Math.min(1,Math.max(0,n.illumination/100)),e=n.size>=Nh,t=`roxy-moon-${Math.round(a*1e4)}${n.waxing?"x":"n"}${n.eclipse??""}${e?"d":""}`,r=[e?T`<clipPath id=${`${t}-disc`}><circle r="1"></circle></clipPath>`:"",e&&!n.eclipse?T`<clipPath id=${`${t}-lit`}><path d=${ti(a,n.waxing)}></path></clipPath>`:""],i=n.eclipse?Hh(t,n.eclipse,e):Bh(t,a,n.waxing,e);return T`<svg xmlns=${Ue} class="roxy-moon" viewBox="-1.2 -1.2 2.4 2.4" width=${n.size} height=${n.size} role="img" aria-label=${jh(n,a*100)}><defs>${r}</defs>${n.hemisphere==="south"?T`<g transform="rotate(180)">`:T`<g>`}${i}<circle class=${e?"moon-rim":"moon-rim moon-rim-small"} r="1"></circle></g></svg>`.markup}var st={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},As=n=>(...a)=>({_$litDirective$:n,values:a}),gr=class{constructor(a){}get _$AU(){return this._$AM._$AU}_$AT(a,e,t){this._$Ct=a,this._$AM=e,this._$Ci=t}_$AS(a,e){return this.update(a,e)}update(a,e){return this.render(...e)}};var Ir=class extends gr{constructor(a){if(super(a),this.it=o,a.type!==st.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(a){if(a===o||a==null)return this._t=void 0,this.it=a;if(a===$e)return a;if(typeof a!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(a===this.it)return this._t;this.it=a;let e=[a];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Ir.directiveName="unsafeHTML",Ir.resultType=1;var ke=As(Ir);var zc=u`:where(.natal-wheel) .wheel-line,:where(.natal-wheel) .tick{fill:none;stroke:var(--roxy-border)}:where(.natal-wheel) .tick-major{stroke:var(--roxy-secondary)}:where(.natal-wheel) .sign-glyph{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}:where(.natal-wheel) .planet-glyph{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold)}:where(.natal-wheel) .planet-deg{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .4375)}:where(.natal-wheel) .planet-deg .retro{fill:var(--roxy-danger-fg)}:where(.natal-wheel) .planet-leader{stroke:var(--roxy-accent);stroke-width:.5px;opacity:.55}:where(.natal-wheel) .house-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .5625)}:where(.natal-wheel) .cusp-deg{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .375)}:where(.natal-wheel) .angle-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold)}:where(.natal-wheel) .angle-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}@container (width<=480px){:where(.natal-wheel) .sign-glyph,:where(.natal-wheel) .planet-glyph{font-size:calc(var(--roxy-text-base) * 1.5)}:where(.natal-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .8125)}:where(.natal-wheel) .house-num{font-size:calc(var(--roxy-text-base) * .75)}}`,Oc=u`:where(.synastry-wheel) .wheel-line{fill:none;stroke:var(--roxy-border)}:where(.synastry-wheel) .p1{--_person:var(--roxy-accent-ink)}:where(.synastry-wheel) .p2{--_person:var(--roxy-fg)}:where(.synastry-wheel) .sign{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}:where(.synastry-wheel) text.p1,:where(.synastry-wheel) text.p2{fill:var(--_person);font-size:calc(var(--roxy-text-base) * 1.125);font-weight:var(--roxy-weight-bold)}:where(.synastry-wheel) .person-tag,:where(.synastry-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .625)}:where(.synastry-wheel) .planet-deg{fill:var(--roxy-muted)}:where(.synastry-wheel) .planet-deg .retro{fill:var(--roxy-danger-fg)}:where(.synastry-wheel) .leader{stroke:var(--_person);stroke-width:.5px;opacity:.7}@container (width<=480px){:where(.synastry-wheel) .sign,:where(.synastry-wheel) text.p1,:where(.synastry-wheel) text.p2{font-size:calc(var(--roxy-text-base) * 1.75)}:where(.synastry-wheel) .person-tag,:where(.synastry-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .9375)}}:where(.synastry-wheel) .asc-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}:where(.synastry-wheel) .asc-label{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .5625);font-weight:var(--roxy-weight-bold)}`,Ds=u`:where(.kundli) .line{fill:#0000;stroke:var(--roxy-border)}:where(.kundli) .sign-text{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans);text-transform:uppercase}:where(.kundli) .rashi-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .75);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans)}:where(.kundli) .house-num{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .planet-text{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .centre-label{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .lagna-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans);text-transform:uppercase}:where(.kundli) .lagna-bg{fill:color-mix(in srgb, var(--roxy-accent) 14%, transparent)}:where(.kundli) .lagna-slash{stroke:var(--roxy-accent);stroke-linecap:round;opacity:.7}`,Ps=u`:where(.bodygraph) .bg-body{fill:color-mix(in srgb, var(--roxy-secondary) 8%, transparent);stroke:var(--roxy-border);stroke-width:1px}:where(.bodygraph) .bg-channel{stroke:var(--roxy-border);stroke-width:5px;stroke-linecap:round}:where(.bodygraph) .bg-half{stroke-width:5px;stroke-linecap:round}:where(.bodygraph) .bg-half.stripe{stroke-linecap:butt;stroke-dasharray:7 7}:where(.bodygraph) .bg-center{fill:var(--_mask,var(--roxy-bg));stroke:var(--roxy-secondary);stroke-width:1.8px}:where(.bodygraph) .bg-center.defined{stroke:color-mix(in srgb, var(--roxy-fg) 45%, transparent)}:where(.bodygraph){--_gold:color-mix(in oklch, var(--roxy-warning) 60%, var(--roxy-success));--_gold-ink:color-mix(in oklch, var(--roxy-warning-fg) 60%, var(--roxy-success-fg));--_center-gold:light-dark(color-mix(in oklab, var(--_gold) 40%, var(--roxy-bg)),color-mix(in oklab, var(--_gold) 50%, var(--_gold-ink)));--_center-green:light-dark(color-mix(in oklab, var(--roxy-success) 40%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-success) 50%, var(--roxy-success-fg)));--_center-red:light-dark(color-mix(in oklab, var(--roxy-danger) 40%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-danger) 50%, var(--roxy-danger-fg)));--_center-brown:light-dark(color-mix(in oklab, color-mix(in oklab, var(--roxy-warning-fg) 75%, var(--roxy-fg)) 45%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-warning-fg) 50%, var(--roxy-secondary)))}:where(.bodygraph) .bg-center.bg-gold.defined,:where(.bodygraph) .legend .swatch.bg-gold{fill:var(--_center-gold);background:var(--_center-gold)}:where(.bodygraph) .bg-center.bg-green.defined,:where(.bodygraph) .legend .swatch.bg-green{fill:var(--_center-green);background:var(--_center-green)}:where(.bodygraph) .bg-center.bg-red.defined,:where(.bodygraph) .legend .swatch.bg-red{fill:var(--_center-red);background:var(--_center-red)}:where(.bodygraph) .bg-center.bg-brown.defined,:where(.bodygraph) .legend .swatch.bg-brown{fill:var(--_center-brown);background:var(--_center-brown)}:where(.bodygraph) .bg-gate-dot{fill:var(--_mask,var(--roxy-bg));stroke:var(--roxy-border);stroke-width:1px}:where(.bodygraph) .bg-gate-dot.on{stroke:var(--_mask,var(--roxy-bg))}:where(.bodygraph) .bg-center-name{color:var(--roxy-muted);fill:currentColor;font-weight:var(--roxy-weight-bold);text-transform:uppercase;pointer-events:none}:where(.bodygraph) .bg-center-name.defined{color:light-dark(var(--roxy-fg),var(--roxy-bg))}:where(.bodygraph) .bg-gate{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .50625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.bodygraph) .bg-gate.on{fill:var(--src-ink,var(--_mask,var(--roxy-bg)))}:where(.bodygraph) .bg-half.src-left{stroke:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .bg-half.src-right{stroke:var(--src-right,var(--roxy-fg))}:where(.bodygraph) .bg-gate-dot.on.src-left{fill:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .bg-gate-dot.on.src-right{fill:var(--src-right,var(--roxy-fg))}:where(.bodygraph) .legend .swatch.src-left{background:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .legend .swatch.src-right{background:var(--src-right,var(--roxy-fg))}`,Ic=u`:where(.roxy-moon) .moon-shade{fill:var(--roxy-moon-shade)}:where(.roxy-moon) .moon-earthshine{fill:var(--roxy-moon-lit);opacity:.05}:where(.roxy-moon) .moon-soft{fill:var(--roxy-moon-lit)}:where(.roxy-moon) .moon-soft-1{opacity:.18}:where(.roxy-moon) .moon-soft-2{opacity:.34}:where(.roxy-moon) .moon-lit{fill:var(--roxy-moon-lit)}:where(.roxy-moon) .moon-limb{fill:none;stroke:var(--roxy-moon-mare)}:where(.roxy-moon) .moon-limb-1{stroke-width:.1px;opacity:.18}:where(.roxy-moon) .moon-limb-2{stroke-width:.03px;opacity:.3}:where(.roxy-moon) .moon-halo{fill:var(--roxy-moon-mare);opacity:.22}:where(.roxy-moon) .moon-mare{fill:var(--roxy-moon-mare);opacity:.38}:where(.roxy-moon) .moon-crater{fill:none;stroke:var(--roxy-moon-mare);stroke-width:.012px}:where(.roxy-moon) .moon-copper{fill:var(--roxy-moon-eclipse)}:where(.roxy-moon) .moon-copper-limb .moon-limb{stroke:var(--roxy-moon-shade)}:where(.roxy-moon) .moon-copper-mare{fill:var(--roxy-moon-shade);opacity:.3}:where(.roxy-moon) .moon-corona{fill:none;stroke:var(--roxy-moon-corona);stroke-width:.05px}:where(.roxy-moon) .moon-corona-outer{stroke-width:.02px;opacity:.45}:where(.roxy-moon) .moon-rim{fill:none;stroke:var(--roxy-moon-rim);stroke-width:.012px}:where(.roxy-moon) .moon-rim-small{stroke-width:.04px}`;var Ft=[Ic,u`.moon-mark{vertical-align:middle;flex-shrink:0;display:inline-flex}`];function Ge(n,a,e,t){return s`<span class="moon-mark">${ke(Nc({...a,size:e,eclipse:t,hemisphere:n.hemisphere,lang:Pr(n)}))}</span>`}var Kh=28,Uh=20;function Gc(n){return!("days"in n)}var nt=class extends f{constructor(){super(...arguments);this.mode="day"}renderData(e){let t=this.effectiveLang();return this.mode==="day"&&Gc(e)?s`<article class="card" part="card" aria-labelledby="almanac-title">${this.renderDayCard(e,t)}</article>`:Gc(e)?o:s`<article class="card" part="card" aria-labelledby="almanac-title"><header class="head" part="header"><h2 class="title" id="almanac-title">${"activityLabel"in e&&e.activityLabel?e.activityLabel:this.t("Almanac")}</h2>${"startDate"in e&&e.startDate?s`<span class="lunar">${ve(t,e.startDate,e.endDate)}</span>`:o} ${"year"in e&&typeof e.year=="number"?s`<span class="lunar">${dr(t,e.year,e.month)||e.year}</span>`:o} ${typeof e.total=="number"?s`<span class="lunar">${this.t("{{count}} days",{count:N(t,e.total)})}</span>`:o}</header>${"avoidAnimal"in e&&e.avoidAnimal?s`<div class="facts" part="details"><span><span class="roxy-label">${this.t("Avoiding")}</span><b>${E(x(e,"avoidAnimal"))}</b></span></div>`:o} ${this.renderSolarTerms(e,t)}<section part="section days"><ul class="days">${(e.days??[]).map(r=>this.renderDayRow(r,t))}</ul></section></article>`}renderDayCard(e,t){let r=e.dayOfficer,i=Or(e.lunar?.day);return s`<header class="head" part="header"><h2 class="title" id="almanac-title">${A(t,e.date)}</h2>${e.lunar?s`<span class="lunar">${i?Ge(this,i,Kh):o}${e.lunar.isLeapMonth?this.t("Lunar {{month}}/{{day}} (leap)",{month:String(e.lunar.month??""),day:String(e.lunar.day??"")}):this.t("Lunar {{month}}/{{day}}",{month:String(e.lunar.month??""),day:String(e.lunar.day??"")})}</span>`:o} ${r?.name?s`<span class="roxy-chip tag tag-${r.quality??"neutral"}">${x(r,"name")} <span lang="zh">${r.chinese??""}</span></span>`:o}</header>${this.renderPillars(e)} ${this.renderLists(e,t)} ${r?.meaning&&!this.hideReadings?s`<p class="meaning" part="reading">${r.meaning}</p>`:o} ${this.renderMansion(e)}`}renderPillars(e){let r=[["Year",e.yearPillar],["Month",e.monthPillar],["Day",e.dayPillar]].filter(([,i])=>i?.chinese||i?.stem);return r.length===0&&!e.clashAnimal?o:s`<div class="facts" part="details">${r.map(([i,l])=>s`<span><span class="roxy-label">${this.t(i)}</span> <b lang="zh">${l?.chinese??""}</b> ${l?.naYin??""}</span>`)} ${e.clashAnimal?s`<span><span class="roxy-label">${this.t("Clash")}</span><b>${x(e,"clashAnimal")}</b></span>`:o}</div>`}renderLists(e,t){let r=e.favours??[],i=e.avoids??[];return r.length===0&&i.length===0?o:s`<div class="lists" part="section activities">${r.length?s`<div class="list"><h3>${this.t("Favours")}</h3><div class="roxy-chips chips-favour">${r.map(l=>s`<span class="roxy-chip">${j(t,"activity",l)}</span>`)}</div></div>`:o} ${i.length?s`<div class="list"><h3>${this.t("Avoids")}</h3><div class="roxy-chips chips-avoid">${i.map(l=>s`<span class="roxy-chip">${j(t,"activity",l)}</span>`)}</div></div>`:o}</div>`}renderMansion(e){let t=e.mansion;return t?.name?s`<div class="facts" part="details"><span><span class="roxy-label">${this.t("Mansion")}</span><b>${x(t,"name")}</b> <span lang="zh">${t.chinese??""}</span></span> ${t.palace?s`<span>${E(t.palace)}</span>`:o} ${t.planet?s`<span>${t.planet}</span>`:o} ${t.animal?s`<span>${x(t,"animal")}</span>`:o}</div>`:o}renderSolarTerms(e,t){let r="solarTerms"in e?e.solarTerms??[]:[];return r.length===0?o:s`<div class="terms" part="details">${r.map(i=>s`<span>${qa(t,i.date)} ${i.name??""}</span>`)}</div>`}renderDayRow(e,t){let r=e.dayOfficer,i=e.favours??[],l=Or(e.lunar?.day);return s`<li class="day" part="label-track"><span class="day-date">${qa(t,e.date)}</span><div class="day-body">${l?Ge(this,l,Uh):o} <span lang="zh">${e.dayPillar?.chinese??""}</span> ${r?.name?s`<span class="roxy-chip tag tag-${r.quality??"neutral"}">${x(r,"name")}</span>`:o} ${i.length?s`<span class="roxy-chips chips-favour">${i.map(c=>s`<span class="roxy-chip">${j(t,"activity",c)}</span>`)}</span>`:o} ${e.clashAnimal?s`<span class="roxy-label">${this.t("Clash")} ${x(e,"clashAnimal")}</span>`:o}</div></li>`}};nt.endpoints=ko,nt.styles=[v,Ft,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.list h3{margin:0}.list h3{margin-block-end:var(--roxy-space-xs)}.lunar{color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.lunar .moon-mark{margin-inline-end:var(--roxy-space-xs)}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.facts .roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b{color:var(--roxy-fg)}:is(.tag-auspicious,.chips-favour>*){color:var(--roxy-success-fg)}:is(.tag-inauspicious,.chips-avoid>*){color:var(--roxy-danger-fg)}.tag-neutral{color:var(--roxy-info-fg)}.lists{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,24ch),1fr));display:grid}.meaning{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);margin:0;padding-block-start:var(--roxy-space-md)}.days{margin:0;padding:0;list-style:none;display:grid}.day{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);align-items:baseline;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);display:grid}.day:first-child{border-block-start:0;padding-block-start:0}.day-date{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.day-body{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}.terms{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}`],y([k({type:String,reflect:true})],nt.prototype,"mode",2),nt=y([L("roxy-almanac-day")],nt);var Vh=[{key:"spiritual",source:"Spiritual"},{key:"love",source:"Love"},{key:"career",source:"Career"},{key:"money",source:"Money"},{key:"twinFlame",source:"Twin flame"}];function _s(n,a,e,t){let r=[];if(a)for(let i of Vh){let l=a[i.key];l&&r.push({label:n(i.source),body:l})}return e&&r.push({label:n("Biblical"),body:e}),t&&r.push({label:n("Shadow"),body:t}),r}var qh={positive:"success",cautionary:"danger",neutral:"info"},Bt=class extends f{renderData(a){let e=(a.energy??"").toLowerCase(),t=a.keywords??[],r=a.actionSteps??[];return s`<article class="card" part="card" aria-label="${`${this.t("Angel number")} ${a.number??""}`}"><div class="hero" part="header">${a.number?s`<div class="numeral">${a.number}</div>`:o}<div><p class="roxy-label">${this.t("Angel number")}</p>${a.title?s`<h2>${a.title}</h2>`:o}</div></div>${a.coreMessage&&!this.hideReadings?s`<p>${a.coreMessage}</p>`:o}<ul class="badges roxy-chips" part="details">${a.type?s`<li>${a.type}</li>`:o} ${typeof a.digitRoot=="number"?s`<li>${this.t("Digit root")} ${a.digitRoot}</li>`:o} ${a.energy?s`<li class="roxy-chip" data-tone="${qh[e]??o}">${a.energy}</li>`:o}</ul>${t.length>0&&!this.hideReadings?s`<ul class="roxy-chips">${t.map(i=>s`<li>${i}</li>`)}</ul>`:o} ${this.renderSections(a)} ${a.affirmation&&!this.hideReadings?s`<p class="affirmation">${a.affirmation}</p>`:o} ${r.length>0&&!this.hideReadings?s`<div class="steps" part="section action-steps"><h3>${this.t("Action steps")}</h3><ul>${r.map(i=>s`<li>${i}</li>`)}</ul></div>`:o}</article>`}renderSections(a){return this.renderInterpretation(_s(this.translator,a.meaning,a.biblical,a.shadow),"angel-meaning","Reading")}};Bt.endpoints=So,Bt.styles=[v,H,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.numeral{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1}.hero>div:not(.numeral){min-width:0}@container (width<=24rem){.hero{justify-items:start;gap:var(--roxy-space-sm);grid-template-columns:minmax(0,1fr);display:grid}}.badges>li{text-transform:capitalize}.affirmation{border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);padding-inline-start:var(--roxy-space-md);font-style:italic}.steps h3{margin-block-end:var(--roxy-space-xs)}.steps ul{gap:calc(var(--roxy-space-unit) / 2);font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}`],Bt=y([L("roxy-angel-number-card")],Bt);var Yh={positive:"Positive energy",neutral:"Neutral energy",cautionary:"Cautionary energy"},Wh={positive:"success",cautionary:"warning"},Ht=class extends f{renderData(a){let e=a.knownMeaning,t=a.digitRootMeaning,r=e?.title??this.t("Number analysis"),i=e?.actionSteps??[];return s`<article class="card" part="card" aria-label="${this.t("Angel number {{number}}",{number:a.number??""})}"><div class="hero" part="header">${a.number?s`<div class="numeral">${a.number}</div>`:o}<div>${e?.title?s`<p class="roxy-label">${this.t("Number analysis")}</p>`:o}<h2>${r}</h2></div></div><ul class="badges roxy-chips" part="details">${a.type?s`<li>${a.type}</li>`:o} ${typeof a.digits=="number"?s`<li>${this.t("{{count}} digits",{count:a.digits})}</li>`:o} ${typeof a.uniqueDigits=="number"?s`<li>${this.t("{{count}} unique",{count:a.uniqueDigits})}</li>`:o} ${typeof a.digitRoot=="number"?s`<li>${this.t("Digit root {{n}}",{n:a.digitRoot})}</li>`:o} ${a.isPalindrome?s`<li class="roxy-chip" data-tone="info">${this.t("Palindrome")}</li>`:o} ${a.isRepeating?s`<li class="roxy-chip" data-tone="info">${this.t("Repeating")}</li>`:o} ${e?.energy?s`<li class="roxy-chip" data-tone="${Wh[e.energy]??o}">${this.t(Yh[e.energy]??"Neutral energy")}</li>`:o}</ul>${a.contextNote?s`<div class="context" part="section context"><p class="roxy-label">${this.t("Where you saw it")}</p><p>${a.contextNote}</p></div>`:o} ${e&&!this.hideReadings?s`<div class="section" part="section known-meaning"><p class="roxy-label">${this.t("Known angel number")}</p>${e.coreMessage?s`<p>${e.coreMessage}</p>`:o} ${e.keywords&&e.keywords.length>0?s`<ul class="roxy-chips">${e.keywords.map(l=>s`<li>${l}</li>`)}</ul>`:o} ${this.renderMeaning(e.meaning,"lookup-known",e.biblical,e.shadow)} ${e.affirmation?s`<p><em>${e.affirmation}</em></p>`:o} ${i.length>0?s`<p class="roxy-label">${this.t("What to do next")}</p><ol class="steps">${i.map(l=>s`<li>${l}</li>`)}</ol>`:o}</div>`:o} ${t&&!this.hideReadings?s`<div class="section" part="section digit-root"><p class="roxy-label">${t.number?this.t("Foundational digit root ({{n}})",{n:t.number}):this.t("Foundational digit root")}</p>${t.title?s`<h3>${t.title}</h3>`:o} ${t.coreMessage?s`<p>${t.coreMessage}</p>`:o} ${e?o:this.renderRootMeaning(t)}</div>`:o}</article>`}renderMeaning(a,e,t,r){return this.renderInterpretation(_s(this.translator,a,t,r),e,"Reading")}renderRootMeaning(a){return s`${a.keywords&&a.keywords.length>0?s`<ul class="roxy-chips">${a.keywords.map(e=>s`<li>${e}</li>`)}</ul>`:o}${this.renderMeaning(a.meaning,"lookup-root")}${a.affirmation?s`<p><em>${a.affirmation}</em></p>`:o}`}};Ht.endpoints=Ro,Ht.styles=[v,O,H,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.numeral{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1}.hero>div:not(.numeral){min-width:0}@container (width<=24rem){.hero{justify-items:start;gap:var(--roxy-space-sm);grid-template-columns:minmax(0,1fr);display:grid}}.badges>li{text-transform:capitalize}.context{gap:var(--roxy-space-xs);border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);padding-inline-start:var(--roxy-space-md);display:grid}.steps{gap:var(--roxy-space-xs);font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}.section{gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md);display:grid}.section p{font-size:var(--roxy-text-sm)}`],Ht=y([L("roxy-angel-number-lookup")],Ht);var Zh=new RegExp("(?![\\d#*])\\p{Emoji}","gu"),Xh=n=>n.replace(Zh,"$&\uFE0E"),Ms=n=>Object.fromEntries(Object.entries(n).map(([a,e])=>[a,Xh(e)])),yr=(n,a)=>a?n[xe(a)]:void 0,Jh=Ms({sun:"\u2609",moon:"\u263D",mercury:"\u263F",venus:"\u2640",earth:"\u2641",mars:"\u2642",jupiter:"\u2643",saturn:"\u2644",uranus:"\u2645",neptune:"\u2646",pluto:"\u2BD3",rahu:"\u260A",ketu:"\u260B",ascendant:"Asc",midheaven:"MC","part of fortune":"\u2297",vertex:"Vx",lagna:"La","north node":"\u260A","south node":"\u260B",chiron:"\u26B7",lilith:"\u26B8","black moon lilith":"\u26B8"}),C=n=>yr(Jh,n),Qh={sun:"Su",moon:"Mo",mercury:"Me",venus:"Ve",mars:"Ma",jupiter:"Ju",saturn:"Sa",uranus:"Ur",neptune:"Ne",pluto:"Pl",rahu:"Ra",ketu:"Ke",ascendant:"Asc",lagna:"La"},Fc=n=>yr(Qh,n),em=Ms({aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"}),z=n=>yr(em,n),tm={aries:"Ar",taurus:"Ta",gemini:"Ge",cancer:"Cn",leo:"Le",virgo:"Vi",libra:"Li",scorpio:"Sc",sagittarius:"Sg",capricorn:"Cp",aquarius:"Aq",pisces:"Pi"},Ns=n=>yr(tm,n),re=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],am=Ms({conjunction:"\u260C",semisextile:"\u26BA","semi sextile":"\u26BA",semisquare:"\u2220","semi square":"\u2220",sextile:"\u26B9",square:"\u25A1",trine:"\u25B3",sesquiquadrate:"\u26BC",quincunx:"\u26BB",opposition:"\u260D"}),ur=n=>yr(am,n),rm=Ms({heaven:"\u2630",lake:"\u2631",fire:"\u2632",thunder:"\u2633",wind:"\u2634",water:"\u2635",mountain:"\u2636",earth:"\u2637"}),jt=n=>yr(rm,n),sm=19904,nm=64,Bc=n=>typeof n=="number"&&Number.isInteger(n)&&n>=1&&n<=nm?String.fromCodePoint(sm+n-1):void 0,ae="\u211E",Hc="\u27F7",jc="\u2605";var J=u`.roxy-facts{gap:var(--roxy-space-sm) var(--roxy-space-lg);margin:var(--roxy-space-sm) 0 0;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;flex-wrap:wrap;display:flex}.roxy-facts>div{min-width:0}.roxy-facts dd{overflow-wrap:anywhere;margin:0}`;var B=u`.roxy-frame{color:var(--roxy-muted);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-normal);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function W(n,a,e){if(!a?.ayanamsa)return o;let t=Wa(n,a.ayanamsa);if(!t)return o;let r=typeof a.ayanamsaDegrees=="number"?$(n,a.ayanamsaDegrees,4):void 0;return s`<p class="roxy-frame">${r===void 0?e("Sidereal frame: {{frame}}",{frame:t}):e("Sidereal frame: {{frame}}, {{degrees}}\xB0 subtracted",{frame:t,degrees:r})}</p>`}function Kt(n,a,e){let t=[];return n?.yearBoundary&&t.push(["Year boundary","yearBoundary",n.yearBoundary]),n?.dayBoundary&&t.push(["Day boundary","dayBoundary",n.dayBoundary]),n?.hourClock&&t.push(["Hour clock","hourClock",n.hourClock]),t.length===0?o:s`<p class="roxy-frame">${t.map(([r,i,l],c)=>s`${c>0?" \xB7 ":""}${a(r)}: <span class="roxy-frame-deg" title="${l}">${j(e,i,l)}</span>`)}</p>`}function Kc(n,a,e){let t=Object.values(a??{}).filter(r=>!!r?.ayanamsa);return t.length===0?o:s`<div class="roxy-frame">${t.map(r=>{let i=Wa(n,r.ayanamsa),l=typeof r.ayanamsaDegrees=="number"?$(n,r.ayanamsaDegrees,4):void 0,c=r.governs?.length?r.governs.join(", "):"";return s`<p class="roxy-frame">${l===void 0?e("Sidereal frame: {{frame}}",{frame:i}):e("Sidereal frame: {{frame}}, {{degrees}}\xB0 subtracted",{frame:i,degrees:l})}${c?e(", governs {{sections}}",{sections:c}):""}</p>`})}</div>`}var qe=u`@container (width<=30rem){table.stacked,table.stacked caption,table.stacked tbody,table.stacked tr,table.stacked td{width:100%;min-width:0;display:block}table.stacked thead{display:none}table.stacked tr{border-bottom:1px solid var(--roxy-border);padding-block:var(--roxy-space-sm)}table.stacked tr:last-child{border-bottom:0}table.stacked td{padding:calc(var(--roxy-space-unit) / 2) 0;white-space:normal;border:0}table.stacked td:empty{display:none}table.stacked td[data-inline]{width:auto;margin-inline-end:var(--roxy-space-md);display:inline-block}table.stacked td[data-label]:before{content:attr(data-label) " ";color:var(--roxy-muted)}}`;var zs=[qe,u`.scroll{min-width:0;overflow-x:auto}table{width:100%}:is(th,td):first-child{padding-inline-start:var(--roxy-space-md)}:is(th,td):last-child{padding-inline-end:var(--roxy-space-md)}tbody tr.lead-row td:first-child{box-shadow:inset var(--roxy-line-thick) 0 0 var(--roxy-accent)}td.name{font-weight:var(--roxy-weight-bold)}.abbr{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);margin-inline-start:var(--roxy-space-xs)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}tbody tr.lead-row :is(.abbr,.glyph){color:var(--roxy-accent-ink)}.meaning{min-width:24ch}.meaning strong{display:block}.meaning p{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}@container (width<=30rem){table.stacked tr{padding-inline:var(--roxy-space-md)}table.stacked tbody tr.lead-row{box-shadow:inset var(--roxy-line-thick) 0 0 var(--roxy-accent)}table.stacked tbody tr.lead-row td:first-child{box-shadow:none}}`];var im=new Set(["a1","a12"]),Ut=class extends f{renderData(a){let e=a.padas??[];if(!e.length)return this.renderEmpty();let t=e.filter(r=>r.exceptionApplied).length;return s`<div class="wrap" part="card" aria-label="${this.t("Arudha padas")}"><header class="head" part="header"><h2>${this.t("Arudha padas")}</h2>${W(this.effectiveLang(),a.frame,this.translator)}</header><dl class="roxy-facts" part="details"><div><dt>${this.t("Lagna")}</dt><dd>${a.lagnaRashi??""}</dd></div><div><dt>${this.t("Arudha Lagna")}</dt><dd>${a.arudhaLagna??""}</dd></div><div><dt>${this.t("Upapada")}</dt><dd>${a.upapada??""}</dd></div></dl><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Arudha padas")}"><table class="stacked" role="table"><caption class="roxy-sr-only">${this.t("The twelve Arudha padas: each pada with its bhava, the bhava sign and its lord, the sign the lord occupies, the sign the pada falls in, which house from the Lagna that is, whether the classical exception was applied, and what the pada is read for.")}</caption><thead><tr><th scope="col">${this.t("Pada")}</th><th scope="col">${this.t("Bhava")}</th><th scope="col">${this.t("Bhava rashi")}</th><th scope="col">${this.t("Lord")}</th><th scope="col">${this.t("Lord rashi")}</th><th scope="col">${this.t("Pada rashi")}</th><th scope="col">${this.t("From Lagna")}</th><th scope="col">${this.t("Read for")}</th></tr></thead><tbody>${e.map(r=>this.renderRow(r))}</tbody></table></div>${t>0?s`<p class="note" part="legend"><span class="exception">${this.t("Moved")}</span> ${this.t("marks a pada that fell in its own bhava or the seventh from it and was moved to the tenth from there, as the classical rule requires. {{count}} of {{total}} padas here.",{count:t,total:e.length})}</p>`:o}</div>`}renderRow(a){let e=r=>z(r)??"",t=r=>{let i=e(r);return s`${i?s`<span class="glyph roxy-glyph">${i}</span>`:o}${r??""}`};return s`<tr class="${im.has(a.id)?"lead-row":""}"><td class="name">${a.name??""}${a.abbreviation?s`<span class="abbr">${a.abbreviation}</span>`:o}</td><td data-inline data-label="${this.t("Bhava")}">${a.house??""}</td><td data-inline data-label="${this.t("Bhava rashi")}">${t(a.bhavaRashi)}</td><td data-inline data-label="${this.t("Lord")}">${a.lord??""}</td><td data-inline data-label="${this.t("Lord rashi")}">${t(a.lordRashi)}</td><td data-inline data-label="${this.t("Pada rashi")}">${t(a.rashi)} ${a.exceptionApplied?s`<span class="exception">${this.t("Moved")}</span>`:o}</td><td data-inline data-label="${this.t("From Lagna")}">${a.houseFromLagna??""}</td><td class="meaning"><strong>${a.meaning??""}</strong> ${a.significations?s`<p>${a.significations}</p>`:o}</td></tr>`}};Ut.endpoints=Co,Ut.styles=[v,B,J,...zs,u`.wrap{overflow:hidden}.head{padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border)}h2,p{margin:0}.roxy-facts{padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border);margin:0}.roxy-facts dd{font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold)}.exception{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}.note{padding:var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs)}`],Ut=y([L("roxy-arudha-padas")],Ut);var ge=u`.roxy-tablist{gap:var(--roxy-space-xs);box-shadow:inset 0 calc(var(--roxy-line-thick) * -1) 0 var(--roxy-border);scrollbar-width:thin;min-width:0;display:flex;overflow-x:auto}.roxy-tab{padding:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);border:none;border-bottom:var(--roxy-line-thick) solid transparent;cursor:pointer;color:var(--roxy-muted);transition:color var(--roxy-motion-duration) var(--roxy-motion-easing);background:0 0;flex-shrink:0}.roxy-tab[aria-selected=true]{color:var(--roxy-accent-ink);border-bottom-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}.roxy-tab:hover:not([aria-selected=true]){color:var(--roxy-fg)}.roxy-tab:focus-visible{outline-offset:calc(var(--roxy-line-thick) * -1);border-radius:var(--roxy-radius-sm)}`;function ue(n){let{items:a,active:e,onSelect:t,label:r,idPrefix:i,controls:l=false}=n;return s`<div class="roxy-tablist" part="tablist" role="tablist" aria-label="${r}" @keydown="${d=>{if(d.key!=="ArrowRight"&&d.key!=="ArrowLeft")return;d.preventDefault();let p=a.findIndex(b=>b.id===e);if(p===-1)return;let h=d.key==="ArrowRight"?1:-1,m=a[(p+h+a.length)%a.length];if(!m)return;t(m.id);let g=d.currentTarget.getRootNode();requestAnimationFrame(()=>{g.querySelector(`#${i}-tab-${m.id}`)?.focus()})}}">${a.map(d=>s`<button type="button" class="roxy-tab" part="tab" role="tab" id="${i}-tab-${d.id}" aria-selected="${e===d.id?"true":"false"}" aria-controls="${l?`${i}-panel-${d.id}`:o}" tabindex="${e===d.id?"0":"-1"}" @click="${()=>t(d.id)}">${d.label}</button>`)}</div>${l?a.filter(d=>d.id!==e).map(d=>s`<div role="tabpanel" id="${i}-panel-${d.id}" aria-labelledby="${i}-tab-${d.id}" hidden></div>`):o}`}var om=[{id:"sarva",source:"Sarvashtakavarga"},{id:"bhinna",source:"Bhinnashtakavarga"},{id:"reduced",source:"Reduced"},{id:"pinda",source:"Shodhya Pinda"}],it=class extends f{constructor(){super(...arguments);this.activeTab="sarva"}renderData(e){let t=e.signs??[];return s`<div class="wrap" part="card" aria-label="${this.t("Ashtakavarga grid")}"><div class="head" part="header"><h2 class="title">${this.t("Ashtakavarga")}</h2>${t.length?s`<p class="subtitle">${this.t("{{count}} signs",{count:t.length})}</p>`:o} ${W(this.effectiveLang(),e.frame,this.translator)}</div>${ue({items:om.map(({id:r,source:i})=>({id:r,label:this.t(i)})),active:this.activeTab,onSelect:r=>{this.activeTab=r},label:this.t("Ashtakavarga views"),idPrefix:"ashtakavarga",controls:true})}<div id="ashtakavarga-panel-${this.activeTab}" part="panel" role="tabpanel" aria-labelledby="ashtakavarga-tab-${this.activeTab}">${this.activeTab==="sarva"?this.renderSarva(t):this.activeTab==="bhinna"?this.renderBhinna(t):this.activeTab==="reduced"?this.renderReduced(t):this.renderPinda()}</div></div>`}bhinnaTier(e){return e<=1?"tier-1":e<=2?"tier-2":e<=3?"tier-3":e<=4?"tier-4":e<=5?"tier-5":e<=6?"tier-6":"tier-7"}sarvaTier(e){return e<=20?"tier-1":e<=24?"tier-2":e<=27?"tier-3":e<=29?"tier-4":e<=32?"tier-5":e<=36?"tier-6":"tier-7"}renderLegend(e){return s`<div class="legend" part="legend"><span>${this.t("Fewer bindus")}</span> <span class="legend-scale" aria-hidden="true">${[1,2,3,4,5,6,7].map(t=>s`<span class="legend-swatch tier-${t}"></span>`)} </span><span>${this.t("More bindus")}</span> <span class="legend-note">${e}</span></div>`}renderSarva(e){let t=this.data?.sarvashtakavarga;return t?s`<div class="overflow-scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Sarvashtakavarga")}"><table><caption class="roxy-sr-only">${this.t("Sarvashtakavarga: each of the twelve signs and the bindus all planets contribute to it, with a grand total.")}</caption><thead><tr><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Bindus")}</th></tr></thead><tbody>${e.map((r,i)=>{let l=t.bindus[i]??0;return s`<tr><td><div class="planet-cell"><span class="glyph roxy-glyph" aria-hidden="true">${z(r)??""}</span> ${r}</div></td><td class="${`bindu-cell ${this.sarvaTier(l)}`}">${l}</td></tr>`})}</tbody><tfoot><tr class="total-row"><td>${this.t("Total")}</td><td>${t.total}</td></tr></tfoot></table></div>${this.renderLegend("Under 25 is a weak sign, 25 to 29 average, 30 and above strong. The 12 signs always total 337.")}`:s`<p class="roxy-empty">${this.t("No sarvashtakavarga data")}</p>`}renderBhinna(e){let t=this.data?.bhinnashtakavarga;return t?.length?s`${this.renderBinduGrid(e,t,"Bhinnashtakavarga: the bindus each planet scores in every one of the twelve signs, with a row total.","Bhinnashtakavarga")} ${this.renderLegend("Each planet scores 0 to 8 bindus per sign. 4 is the mid, 5 and above is strong support for that planet in that sign.")}`:s`<p class="roxy-empty">${this.t("No bhinnashtakavarga data")}</p>`}renderReduced(e){let t=this.data?.reducedBhinnashtakavarga,r=this.data?.reducedSarvashtakavarga;return!t?.length&&!r?s`<p class="roxy-empty">${this.t("No reduced ashtakavarga data")}</p>`:s`${this.renderBinduGrid(e,t??[],"Reduced Bhinnashtakavarga after Shodhana: the bindus each planet keeps in every one of the twelve signs, with a row total and a Reduced Sarvashtakavarga totals row.","Reduced",r)} ${this.renderLegend("Bindus left after Trikona and Ekadipati Shodhana, the input to Shodhya Pinda. The Reduced SAV row totals the seven planets only, so it does not include the Lagna row above it.")}`}renderBinduGrid(e,t,r,i,l){return t.length?s`<div class="overflow-scroll" part="table" tabindex="0" role="region" aria-label="${this.t(i)}"><table class="bhinna-table"><caption class="roxy-sr-only">${r}</caption><thead><tr><th scope="col">${this.t("Planet")}</th>${e.map(c=>s`<th scope="col" class="roxy-glyph" title="${c}">${z(c)??c}</th>`)}<th scope="col">${this.t("Total")}</th></tr></thead><tbody>${t.map(c=>s`<tr><td>${c.planet}</td>${c.bindus.map(d=>s`<td class="${`bindu-cell ${this.bhinnaTier(d)}`}">${d}</td>`)}<td>${c.total}</td></tr>`)}</tbody>${l?s`<tfoot><tr class="total-row"><td>${this.t("Reduced SAV")}</td>${e.map((c,d)=>s`<td>${l.bindus[d]??0}</td>`)}<td>${l.total}</td></tr></tfoot>`:o}</table></div>`:s`<p class="roxy-empty">${this.t("No bindu data")}</p>`}renderPinda(){let e=this.data?.shodhyaPinda;return e?.length?s`<div class="overflow-scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Shodhya Pinda")}"><table><caption class="roxy-sr-only">${this.t("Shodhya Pinda: each planet with its Rashi Pinda, Graha Pinda and Shodhya Pinda strength scores.")}</caption><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Rashi Pinda")}</th><th scope="col">${this.t("Graha Pinda")}</th><th scope="col">${this.t("Shodhya Pinda")}</th></tr></thead><tbody>${e.map(t=>s`<tr><td>${t.planet}</td><td>${t.rashiPinda}</td><td>${t.grahaPinda}</td><td>${t.shodhyaPinda}</td></tr>`)}</tbody></table></div>`:s`<p class="roxy-empty">${this.t("No shodhya pinda data")}</p>`}};it.endpoints=To,it.styles=[v,B,ge,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.subtitle{margin:0}.subtitle{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}[role=tabpanel]:not([hidden]){gap:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.overflow-scroll{min-width:0;overflow-x:auto}table{width:100%}:is(th,td){text-align:center}:is(th,td):first-child{text-align:start}.glyph{font-size:var(--roxy-text-base);line-height:1}.planet-cell{align-items:center;gap:var(--roxy-space-xs);white-space:nowrap;display:flex}.total-row td{font-weight:var(--roxy-weight-bold);border-block-start:var(--roxy-line-thick) solid var(--roxy-border);border-block-end:0}.bindu-cell{min-width:3ch;font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;color:var(--roxy-fg)}.tier-1{background:color-mix(in srgb, var(--roxy-heat) 30%, transparent)}.tier-2{background:color-mix(in srgb, var(--roxy-heat) 17%, transparent)}.tier-3{background:color-mix(in srgb, var(--roxy-heat) 7%, transparent)}.tier-4{background:color-mix(in srgb, var(--roxy-border) 45%, transparent)}.tier-5{background:color-mix(in srgb, var(--roxy-success) 16%, transparent)}.tier-6{background:color-mix(in srgb, var(--roxy-success) 32%, transparent)}.tier-7{background:color-mix(in srgb, var(--roxy-success) 50%, transparent)}.legend{align-items:center;gap:var(--roxy-space-xs) var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);flex-wrap:wrap;display:flex}.legend-scale{gap:1px;display:flex}.legend-swatch{block-size:.75lh;inline-size:2ch}.legend-note{flex:24ch}.bhinna-table :is(th,td):first-child{min-width:8ch}@container (width<=480px){.bhinna-table :is(th,td){padding:var(--roxy-space-xs);font-size:var(--roxy-text-xs)}.bhinna-table :is(th,td):first-child{min-width:6ch}.bindu-cell{min-width:2ch}}`],y([I()],it.prototype,"activeTab",2),it=y([L("roxy-ashtakavarga-grid")],it);var lm=new Set(["conjunction","sextile","square","trine","opposition"]);function ot(n){return lm.has(we(n))}function de(n){return`aspect-${we(n)}`}var Uc=.3,cm=.9,Vc=.5,dm=1.8;function fr(n){let{strength:a}=n;if(typeof a!="number"||!Number.isFinite(a))return;let e=Math.min(1,Math.max(0,a/100)),t=Uc+e*(cm-Uc),r=Vc+e*(dm-Vc);return`opacity:${t.toFixed(3)};stroke-width:${r.toFixed(3)}`}var lt=u`.aspect-trine,.aspect-sextile{--_aspect:var(--roxy-info);--_aspect-ink:var(--roxy-info-fg)}.aspect-square,.aspect-opposition{--_aspect:var(--roxy-danger);--_aspect-ink:var(--roxy-danger-fg)}.aspect-quincunx,.aspect-semi-sextile{--_aspect:var(--roxy-success);--_aspect-ink:var(--roxy-success-fg)}.aspect-conjunction{--_aspect:var(--roxy-accent-ink);--_aspect-ink:var(--roxy-accent-ink)}:is(.aspect-trine,.aspect-sextile,.aspect-square,.aspect-opposition,.aspect-quincunx,.aspect-semi-sextile,.aspect-conjunction){color:var(--_aspect-ink);stroke-opacity:1}.aspect-swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);background:var(--_aspect);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}`,xr=[u`.aspect{stroke:var(--_aspect,var(--roxy-muted));stroke-width:.8px;fill:none;opacity:.55;stroke-opacity:.7}`,lt];function pm(n,a,e){if(n.include?.length){let t={bodies:me(a,n.include)};return n.strictOrbs?e("Detected with strict orbs, including {{bodies}}.",t):e("Detected with industry-standard orbs, including {{bodies}}.",t)}return n.strictOrbs?e("Detected with strict orbs, classical bodies only."):e("Detected with industry-standard orbs, classical bodies only.")}var qc={GRAND_CROSS:0,GRAND_TRINE:1,KITE:2,T_SQUARE:3,YOD:4,MYSTIC_RECTANGLE:5,STELLIUM:6},Vt=class extends f{renderData(a){let e="aspects"in a?a.aspects??[]:[],t="patterns"in a?a.patterns??[]:[],r="summary"in a?a.summary:void 0;if(e.length===0&&t.length===0)return this.renderEmpty();let i=Y(this.effectiveLang(),"transitDate"in a?a.transitDate:"date"in a?a.date:"","time"in a?a.time:void 0,true),l="timezone"in a?a.timezone:void 0,c="options"in a?a.options:void 0;return s`<div class="wrap" part="card" aria-label="${this.t("Aspects")}"><div class="head" part="header"><h2>${e.length===0?this.t("Chart patterns"):this.t("Aspects")}</h2>${e.length>0||i?s`<p class="subtitle roxy-label">${[e.length===1?this.t("1 aspect"):e.length>1?this.t("{{count}} aspects",{count:e.length}):"",i].filter(Boolean).join(" \xB7 ")}</p>`:o} ${typeof l=="number"&&Number.isFinite(l)?s`<dl class="roxy-facts" part="details"><div><dt>${X(this.effectiveLang(),"timezone")}</dt><dd>${$(this.effectiveLang(),l,5)}</dd></div></dl>`:o}</div>${r?this.renderSummary(r):o} ${r&&"strongest"in r&&r.strongest?this.renderStrongest(r.strongest):o} ${e.length>0?s`<div role="list" part="section aspects" aria-label="${this.t("Aspect list")}">${e.map((d,p)=>s`<div role="listitem">${this.renderAspect(d,p)}</div>`)}</div>`:o} ${t.length>0?s`<section class="patterns" part="section patterns"><h3>${this.t("Chart patterns")}</h3>${[...t].sort((d,p)=>(qc[d.kind]??9)-(qc[p.kind]??9)||(p.tightness??0)-(d.tightness??0)).map(d=>this.renderPattern(d))}</section>`:o} ${c?s`<p class="provenance">${pm(c,this.effectiveLang(),this.translator)}</p>`:o}</div>`}renderSummary(a){let e="totalAspects"in a?a.totalAspects:a.total,t=Object.entries(a.byType??{}).sort((r,i)=>i[1]-r[1]);return s`<p class="counts" part="details" role="region" aria-label="${this.t("Aspect summary")}">${typeof e=="number"?s`<span>${this.t("{{label}}: {{value}}",{label:this.t("Total"),value:e})}</span>`:o} <span class="harmonious">${this.t("Harmonious: {{count}}",{count:a.harmonious})}</span> <span class="challenging">${this.t("Challenging: {{count}}",{count:a.challenging})}</span> <span>${this.t("Neutral: {{count}}",{count:a.neutral})}</span> ${t.map(([r,i])=>s`<span>${this.t("{{label}}: {{value}}",{label:se({type:r}),value:i})}</span>`)}</p>`}renderStrongest(a){let e=C(a.planet1)??"",t=C(a.planet2)??"";return s`<div class="strongest" part="details strongest"><span class="roxy-label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph roxy-glyph">${e}</span>${x(a,"planet1")} <span class="asp-name ${de(a)}">${x(a,"type",se(a))}</span> <span aria-hidden="true" class="glyph roxy-glyph">${t}</span>${x(a,"planet2")} <span class="meta">${this.t("{{status}} \xB7 orb {{orb}}\xB0 \xB7 str {{strength}}",{status:a.isApplying?this.t("Applying"):this.t("Separating"),orb:$(this.effectiveLang(),a.orb,2),strength:$(this.effectiveLang(),a.strength,0)})}</span></div>`}renderAspect(a,e){let t=C(a.planet1)??"",r=C(a.planet2)??"",i=se(a),l=a.isApplying?this.t("Applying"):this.t("Separating"),c="meaning"in a?a.meaning:void 0,d="transitInterpretation"in a?a.transitInterpretation:void 0,p="aspectInterpretation"in a?a.aspectInterpretation:void 0,h=!!(c||d||p),m=s`<span aria-hidden="true" class="glyph roxy-glyph">${t}</span>${x(a,"planet1")} <span class="asp-name ${de(a)}">${x(a,"type",i)}</span> <span aria-hidden="true" class="glyph roxy-glyph">${r}</span>${x(a,"planet2")} <span class="meta">${this.t("{{status}} \xB7 orb {{orb}}\xB0 \xB7 str {{strength}}",{status:l,orb:$(this.effectiveLang(),a.orb,2),strength:$(this.effectiveLang(),a.strength,0)})}</span>`;return!h||this.hideReadings?s`<div class="interp-card" part="reading"><div class="static-head">${m}</div></div>`:s`<details class="interp-card" part="reading" name="aspects" ?open="${e===0}"><summary>${m}${V()}</summary><div class="interp-body" part="readings">${c?this.renderMeaning(c):o} ${d?this.renderTransit(d):o} ${p?Mr(p,this.translator):o}</div></details>`}renderMeaning(a){return s`${a.description?.short?s`<p>${a.description.short}</p>`:o} ${a.description?.long&&a.description.long!==a.description.short?s`<p>${a.description.long}</p>`:o} ${rt(a.keywords)}`}renderTransit(a){return Mr(a,this.translator)}renderPattern(a){let e=a.planets??[],t=a.apex?[...e].sort((r,i)=>+(i===a.apex)-+(r===a.apex)):e;return s`<div class="pattern" part="pattern"><div class="pattern-head"><span class="pattern-name">${a.name??a.kind??this.t("Pattern")}</span> ${a.element?s`<span class="roxy-chip">${a.element}</span>`:o} ${a.modality?s`<span class="roxy-chip">${a.modality}</span>`:o} ${a.dissociate?s`<span class="roxy-chip" title="${this.t("Out of sign: one or more planets sit outside the pattern element or modality, so the theme holds but runs weaker.")}">${this.t("Dissociate")}</span>`:o} ${typeof a.tightness=="number"?s`<span class="pattern-tight roxy-label">${this.t("{{percent}} tight",{percent:te(this.effectiveLang(),a.tightness,0)})}</span>`:o}</div>${t.length?s`<ul class="roxy-chips">${t.map(r=>{let i=C(r),l=!!a.apex&&r===a.apex;return s`<li class="${l?"roxy-chip apex":"roxy-chip"}">${i?s`<span class="roxy-glyph" aria-hidden="true">${i}</span>`:o}${r}${l?s`<span>${this.t("apex")}</span>`:o}</li>`})}</ul>`:o} ${a.interpretation&&!this.hideReadings?s`<p class="pattern-interp">${a.interpretation}</p>`:o}</div>`}};Vt.endpoints=Eo,Vt.styles=[v,J,O,H,lt,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.head{gap:var(--roxy-space-xs);display:grid}.counts{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.harmonious{color:var(--roxy-info-fg)}.challenging{color:var(--roxy-danger-fg)}.interp-card summary,.static-head{align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.static-head{font-size:var(--roxy-text-sm)}.meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-normal);font-variant-numeric:tabular-nums;margin-inline-start:auto}.glyph{line-height:1}.asp-name{font-weight:var(--roxy-weight-bold)}.strongest,.pattern{padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border)}.strongest{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.pattern{gap:var(--roxy-space-xs);display:grid}.pattern-head{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.pattern-name{font-weight:var(--roxy-weight-bold)}.pattern-tight{font-variant-numeric:tabular-nums;margin-inline-start:auto}.roxy-chip.apex{color:var(--roxy-fg);border-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}.pattern-interp{font-size:var(--roxy-text-sm)}.provenance{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}`],Vt=y([L("roxy-aspects-table")],Vt);var ne=class{constructor(a){this.host=a;this.state="closed";this.zoom=1;this.pressedBy="";this.press=a2=>{this.pressedBy=a2.pointerType};this.openOnMouse=a2=>{let e=this.pressedBy==="mouse";this.pressedBy="",e&&(a2.target?.closest?.("a, button, summary, input, select, textarea")||getSelection()?.toString()||this.open())};a.addController(this)}hostUpdated(){let a=this.host.renderRoot.querySelector(".roxy-chart-dialog");if(!a)this.reset();else if(a.isConnected&&this.state!=="closed"){this.state==="opening"&&(this.state="open",a.open||a.showModal());let e=a.querySelector(".roxy-chart-scroll");a.open&&e&&this.position&&(e.scrollLeft=e.scrollWidth*this.position.x-e.clientWidth/2,e.scrollTop=e.scrollHeight*this.position.y-e.clientHeight/2,this.position=void 0)}}hostDisconnected(){this.reset(),this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}open(){this.state="opening",this.position={x:.5,y:0},this.host.requestUpdate()}reset(){this.state="closed",this.zoom=1,this.position=void 0}resize(a){let e=this.host.renderRoot.querySelector(".roxy-chart-scroll");this.position=a===0?{x:.5,y:0}:e?{x:(e.scrollLeft+e.clientWidth/2)/e.scrollWidth,y:(e.scrollTop+e.clientHeight/2)/e.scrollHeight}:void 0,this.zoom=a===0?1:Math.min(3,Math.max(1,this.zoom+a)),this.host.requestUpdate()}renderChartViewport(a,e,t){return s`<div class="roxy-chart-view"><div class="roxy-chart-hit" @pointerdown="${this.press}" @click="${this.openOnMouse}">${a}</div><div class="roxy-chart-tools" part="chart-controls"><button type="button" @click="${()=>this.open()}">${t("Enlarge chart")}</button></div><dialog class="roxy-chart-dialog" part="chart-dialog" aria-label="${e}" @close="${()=>{this.reset(),this.host.requestUpdate()}}">${this.state!=="closed"?s`<div class="roxy-chart-bar"><strong>${e}</strong><div class="roxy-chart-tools"><button type="button" aria-label="${t("Zoom out")}" ?disabled="${this.zoom===1}" @click="${()=>this.resize(-.5)}">−</button> <button type="button" @click="${()=>this.resize(0)}">${t("Reset zoom")}</button> <button type="button" aria-label="${t("Zoom in")}" ?disabled="${this.zoom===3}" @click="${()=>this.resize(.5)}">+</button> <button type="button" @click="${()=>this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}">${t("Close")}</button></div></div><div class="roxy-chart-scroll" role="region" tabindex="0" aria-label="${e}"><div class="roxy-chart-expanded" style="${`--chart-zoom:${this.zoom}`}">${a}</div></div>`:o}</dialog></div>`}},pe=u`.roxy-chart-view{min-width:0}@media (hover:hover) and (pointer:fine){.roxy-chart-hit{cursor:zoom-in}}.roxy-chart-tools{gap:var(--roxy-space-sm);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.roxy-chart-tools button{font-size:var(--roxy-text-sm);color:var(--roxy-secondary);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);min-width:2lh;min-height:2lh;padding:var(--roxy-space-xs) var(--roxy-space-sm);cursor:pointer;background:0 0}.roxy-chart-tools button:hover:not(:disabled){border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-chart-tools button:disabled{color:var(--roxy-muted);cursor:default}.roxy-chart-dialog{--roxy-surface:var(--roxy-bg);width:calc(100% - 2 * var(--roxy-space-md));max-width:calc(var(--roxy-chart-expanded-width,60rem) * 1.2);max-height:calc(100% - 2 * var(--roxy-space-md));padding:var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);color:var(--roxy-fg);background:var(--roxy-bg);box-shadow:var(--roxy-shadow-lg);margin:auto}.roxy-chart-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.roxy-chart-dialog::backdrop{background:color-mix(in oklab, var(--roxy-bg) 85%, transparent)}.roxy-chart-bar{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);margin-bottom:var(--roxy-space-md);flex-wrap:wrap;flex-shrink:0;display:flex}.roxy-chart-bar>strong{overflow-wrap:anywhere;min-width:0}.roxy-chart-scroll{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.roxy-chart-expanded{width:max(100%, calc(var(--roxy-chart-expanded-width,60rem) * var(--chart-zoom)));padding:var(--roxy-space-sm)}.roxy-chart-expanded>svg{width:100%;max-width:none;height:auto;margin:0}`;function Ee(n){let a=n%360;return a<0?a+360:a}function Me(n){let a=Ee(n),e=Math.floor(a/30)%12,t=a%30,r=Math.floor(t),i=(t-r)*60,l=Math.floor(i),c=Math.round((i-l)*60);return{sign:re[e]??"Aries",signIndex:e,degree:r,minute:l,second:c}}function ye(n,a){let{sign:e,degree:t,minute:r}=Me(n);return`${t}\xB0 ${a||e} ${String(r).padStart(2,"0")}'`}function Ne(n){return Fe(Ee(n)%30)}function ri(n){let a=Math.floor(n);return{degree:a,minute:Math.floor((n-a)*60)}}function Fe(n){let{degree:a,minute:e}=ri(n);return`${a}\xB0${String(e).padStart(2,"0")}'`}function Gr(n){return Ee(n+180)}function Os(n,a){let e=Ee(n),t=Ee(a)-e;return t<0&&(t+=360),Ee(e+t/2)}function ze(n,a,e){let t=n.filter(p=>Number.isFinite(a(p))).map(p=>{let h=Ee(a(p));return{item:p,longitude:h,displayLongitude:h}}).sort((p,h)=>p.longitude-h.longitude),r=t.length;if(r<2)return t;let i=0,l=-1;for(let p=0;p<r;p++){let h=t[(p+r-1)%r],g=(t[p].longitude-h.longitude+360)%360;g>l&&(l=g,i=p)}let c=t[i],d=c.longitude;for(let p=1;p<r;p++){let h=t[(i+p)%r],m=typeof e=="function"?e(c.item,h.item):e,g=h.longitude+(i+p>=r?360:0);d=Math.max(g,d+m),h.displayLongitude=Ee(d),c=h}return t}var Ye=2;function Yc(n,a){let e=n*Math.PI/180;return a.width/2*Math.abs(Math.cos(e))+a.height/2*Math.abs(Math.sin(e))}function ct(n,a,e,t){let r=n*Math.PI/180,i=(l,c)=>c>1e-9?(l+t)/c:Number.POSITIVE_INFINITY;return Math.min(i((a.width+e.width)/2,Math.abs(Math.cos(r))),i((a.height+e.height)/2,Math.abs(Math.sin(r))))}var hm=(n,a)=>Math.abs(n.x-a.x)<(n.width+a.width)/2&&Math.abs(n.y-a.y)<(n.height+a.height)/2;function Wc(n,a){let e=[],t=r=>e.reduce((i,l)=>hm(r,l)?Math.max(i,Math.min((r.width+l.width)/2-Math.abs(r.x-l.x),(r.height+l.height)/2-Math.abs(r.y-l.y))):i,0);return[...n].map((r,i)=>({point:r,index:i})).sort((r,i)=>r.point.displayLongitude-i.point.displayLongitude).reduce((r,{point:i,index:l})=>{let c=a(i,0),d=a(i,1),p=t(c)===0||t(c)<=t(d)?0:1;return e.push(p===0?c:d),r[l]=p,r},[])}var Ae={minute:3.4,whole:1.85,retrograde:1.25,ink:.9};function De(n,a){return a>0?n/a*(180/Math.PI):0}function P(n,a,e,t){let r=t*Math.PI/180;return{x:n+e*Math.cos(r),y:a+e*Math.sin(r)}}var mm={Sun:"var(--roxy-accent)",Moon:"var(--roxy-secondary)",Mercury:"var(--roxy-info)",Venus:"var(--roxy-success)",Mars:"var(--roxy-danger)",Jupiter:"var(--roxy-warning)",Saturn:"var(--roxy-muted)",Uranus:"var(--roxy-info-fg)",Neptune:"var(--roxy-success-fg)",Pluto:"var(--roxy-danger-fg)"},Zc=["var(--roxy-accent)","var(--roxy-info)","var(--roxy-success)","var(--roxy-danger)","var(--roxy-warning)","var(--roxy-secondary)","var(--roxy-info-fg)","var(--roxy-success-fg)","var(--roxy-danger-fg)","var(--roxy-accent-ink)","var(--roxy-warning-fg)","var(--roxy-primary)"];function Za(n,a=0){return mm[D(n)]??Zc[a%Zc.length]??"var(--roxy-accent)"}var Xc="M120 170L120 171L118 171L116 171L114 171L114 170L116 170L118 170L119 170L120 170ZM21 169L19 170L18 169L17 169L16 169L17 168L19 168L20 169L21 169ZM135 168L136 168L137 169L137 170L135 170L133 171L132 171L130 171L127 171L126 171L126 170L128 170L129 170L130 169L131 168L132 168L133 168L135 168ZM59 164L60 164L61 163L61 164L60 164L58 164L57 164L58 163L59 164ZM54 163L56 164L55 164L54 164L53 163L54 163ZM81 162L82 162L83 162L84 163L83 162L82 162L81 162L79 163L78 162L80 162L81 162ZM112 161L111 162L110 162L109 163L108 162L107 162L106 162L105 162L106 161L107 161L108 161L108 160L109 159L110 159L111 160L111 161L112 161ZM121 154L120 154L119 154L119 155L118 155L117 155L117 156L118 156L117 156L116 157L115 157L114 158L115 158L115 159L116 159L117 159L117 160L118 160L118 161L119 162L119 163L119 164L118 164L117 165L116 165L114 166L113 166L112 166L110 166L109 167L108 167L106 167L104 167L103 167L105 167L106 168L105 168L104 168L102 168L102 169L103 170L105 170L107 170L109 171L110 171L112 171L114 171L117 172L118 172L120 172L121 173L122 173L123 173L125 173L126 172L128 172L130 172L133 172L135 172L137 172L138 172L139 171L142 171L144 171L146 171L148 171L150 171L151 170L150 170L150 169L148 169L146 169L144 169L144 168L145 168L146 168L148 168L149 167L150 167L151 167L152 166L154 166L155 166L156 166L158 166L159 166L160 166L161 165L162 165L163 165L164 164L165 164L164 164L164 163L165 163L166 163L167 163L168 162L169 162L170 161L171 161L171 162L173 162L173 161L174 161L176 161L177 161L178 161L179 161L180 162L181 161L182 161L183 161L184 161L185 161L186 160L187 160L188 160L190 160L191 161L192 161L192 160L193 160L195 160L196 160L197 160L198 160L199 160L200 160L201 160L202 160L203 161L204 161L205 160L206 160L207 160L208 160L209 160L210 160L211 160L212 160L213 159L214 159L215 159L216 159L217 159L218 160L219 160L220 160L220 159L221 159L222 159L223 158L224 158L225 158L226 158L227 158L228 157L229 157L230 157L231 157L232 156L233 156L234 156L235 156L236 156L237 156L237 157L238 157L239 157L240 157L241 158L242 158L243 158L244 157L245 158L246 158L247 158L248 158L249 158L250 159L250 160L249 160L248 160L248 161L249 161L248 161L248 162L249 162L250 162L251 162L252 162L252 161L253 161L253 160L254 160L256 160L257 160L258 159L259 158L260 158L261 158L262 157L263 157L264 157L265 157L266 157L267 157L268 156L269 157L270 157L271 157L272 157L273 157L274 157L275 157L276 157L277 157L278 157L279 157L280 157L281 157L282 156L283 156L284 156L285 156L286 157L287 157L288 157L289 157L290 157L291 156L292 156L293 156L294 156L295 156L296 157L297 157L299 157L300 157L301 157L302 157L303 156L304 157L305 157L306 157L307 157L308 157L309 157L310 157L311 156L312 156L313 156L314 156L315 156L315 155L316 156L317 157L319 157L320 157L321 157L322 157L323 157L324 157L325 157L326 157L326 158L327 158L328 158L329 158L330 159L331 159L333 159L334 159L335 159L336 159L337 159L338 159L339 160L340 160L341 160L342 161L343 161L344 161L345 161L346 161L347 161L348 161L349 161L351 161L351 162L350 163L349 164L348 164L347 164L346 164L346 165L345 165L344 165L344 166L343 167L344 167L344 168L345 168L347 168L347 169L345 169L344 169L342 169L341 170L340 171L341 171L342 172L344 172L345 173L347 173L349 173L349 174L352 174L353 174L356 174L358 174L360 175L360 180L0 180L0 175L1 174L3 174L4 174L6 175L7 174L10 174L11 174L13 175L16 175L18 175L22 175L25 175L29 175L31 176L34 175L37 175L33 175L30 174L29 174L26 174L27 173L27 172L25 172L25 171L23 171L26 171L28 171L29 171L31 171L33 171L34 170L33 170L32 170L30 169L28 169L27 169L25 169L24 169L23 168L22 168L22 167L23 167L25 167L26 167L27 167L29 167L30 167L31 167L32 167L34 166L34 165L35 165L36 166L37 165L38 165L40 165L41 165L42 165L44 165L45 164L46 164L48 164L49 164L50 164L52 164L53 164L55 165L56 164L57 164L59 165L60 164L61 164L63 164L64 164L65 164L66 164L67 164L68 165L69 164L70 165L71 165L72 165L74 165L75 165L77 165L78 165L79 165L80 165L79 165L79 164L77 164L77 163L76 163L77 163L78 163L80 163L81 163L82 163L82 164L84 164L85 163L86 163L88 163L89 163L90 163L91 163L92 163L93 163L94 163L95 163L96 164L97 164L99 164L99 163L100 163L101 164L102 163L103 164L104 164L105 164L106 164L107 163L108 163L110 163L111 163L112 163L113 162L112 161L112 160L111 160L112 159L113 158L112 158L112 157L113 157L114 156L115 156L116 155L117 155L118 155L119 154L120 154L121 154L121 153L122 153L123 154L122 154L121 154ZM112 144L114 144L115 145L114 145L113 145L112 146L111 145L110 145L109 145L108 144L107 144L105 143L106 143L108 144L109 144L110 143L111 143L112 143L112 144ZM121 141L122 142L121 142L120 142L119 142L120 141L121 142L121 141ZM250 140L249 140L249 139L250 139L251 139L250 140ZM325 131L326 131L327 131L328 131L328 132L328 133L327 134L326 134L325 133L325 132L325 131ZM353 131L354 131L354 132L353 133L353 134L352 134L351 134L351 135L351 136L350 136L349 137L348 137L348 136L347 136L347 135L348 134L349 134L350 134L351 133L352 132L352 131L353 130L353 131ZM355 126L355 127L356 127L356 128L357 128L358 128L359 128L358 129L357 129L357 130L357 131L356 131L355 132L355 131L355 130L354 130L354 129L355 129L355 128L355 127L354 127L354 126L353 125L353 124L354 125L355 126ZM347 112L346 112L345 112L345 111L344 110L345 110L345 111L346 111L347 112ZM358 107L359 108L358 108L357 108L358 107L358 108L358 107ZM359 107L359 106L360 106L360 107L359 107ZM230 104L230 105L230 106L230 105L230 106L230 107L229 107L229 108L229 109L229 110L228 112L228 114L227 115L226 115L225 116L225 115L224 115L224 114L223 113L223 112L223 111L224 111L224 110L224 109L224 108L224 107L224 106L225 106L226 106L227 105L228 105L228 104L229 103L229 102L230 102L230 103L230 104ZM324 104L324 105L325 104L325 105L325 106L326 107L326 108L326 109L327 109L328 110L329 110L329 111L330 112L330 113L331 112L331 113L332 114L333 115L333 116L333 117L334 118L334 119L333 119L333 120L333 121L333 122L332 123L331 124L331 125L330 126L330 127L329 128L328 128L327 128L327 129L326 129L325 129L325 128L324 128L324 129L323 129L322 128L321 128L320 127L320 126L319 126L318 126L318 125L318 124L318 125L317 125L318 124L318 123L317 124L316 124L316 125L315 124L315 123L314 123L313 122L312 122L311 121L310 122L308 122L307 122L306 122L305 123L304 123L304 124L303 124L302 124L301 124L300 124L299 125L299 124L299 125L298 125L297 125L296 124L295 124L296 123L296 122L295 121L295 120L295 119L294 118L294 117L293 117L293 116L294 117L293 116L294 116L294 115L293 114L294 114L294 113L294 112L294 113L295 112L295 111L296 111L297 111L298 110L299 110L300 110L301 110L301 109L302 109L302 108L302 107L303 106L303 107L304 107L304 106L305 105L306 105L306 104L307 104L308 104L308 105L309 105L310 105L309 104L310 104L310 103L311 103L311 102L312 102L313 102L312 101L313 101L314 102L315 102L316 102L317 102L317 103L316 103L316 104L315 105L316 105L316 106L317 106L318 106L318 107L319 107L320 108L321 107L321 106L322 105L322 104L322 103L322 102L322 101L323 101L323 102L324 103L324 104ZM301 100L300 100L299 100L300 99L300 100L301 100ZM341 100L340 100L340 99L341 100ZM342 100L341 99L341 98L341 99L342 100ZM304 100L303 100L304 100L304 99L305 99L306 98L307 98L307 99L306 99L305 99L304 100ZM298 98L299 98L299 99L298 99L297 99L297 98L298 98ZM303 98L303 99L301 99L300 99L300 98L301 98L301 99L302 98L303 98ZM340 98L340 99L339 98L338 97L339 98L340 98ZM289 97L291 97L291 96L293 97L293 98L294 98L296 98L295 99L293 98L292 98L291 98L289 98L288 98L286 97L285 97L286 96L287 96L288 96L289 97ZM315 96L314 97L314 96L314 95L315 96ZM336 97L335 97L335 96L335 95L335 96L336 96L336 97ZM332 95L331 96L330 96L329 96L328 96L328 95L329 96L330 96L330 95L330 96L331 95L332 95L332 94L332 95ZM307 93L307 94L306 94L306 93L307 93ZM310 93L311 94L310 93L309 93L308 93L309 93L310 93ZM333 94L333 95L333 94L332 94L332 93L331 93L332 93L333 94ZM314 91L314 93L315 93L316 92L317 92L318 92L319 92L320 92L321 93L323 93L325 94L326 95L328 96L328 97L327 97L328 98L329 99L329 100L330 100L331 100L331 101L330 101L330 100L329 100L328 100L327 99L326 98L325 98L324 98L323 98L323 99L322 99L321 99L320 98L319 98L318 98L319 97L318 96L318 95L316 95L315 94L314 94L313 94L313 93L312 93L313 92L314 92L312 92L311 91L312 91L312 90L314 91ZM305 89L304 90L303 90L301 90L300 90L300 91L301 91L303 91L302 92L302 93L302 94L303 95L303 96L302 95L303 94L302 95L301 95L302 94L301 94L301 93L300 93L300 94L300 96L299 95L300 94L299 93L299 92L299 91L300 90L300 89L301 89L302 89L303 89L304 89L305 88L305 89ZM309 89L309 90L308 90L308 91L308 90L307 89L308 88L309 88L309 89ZM286 96L285 96L284 95L283 94L282 94L281 93L281 92L280 91L279 90L279 89L279 88L278 88L277 87L276 86L275 85L276 85L277 85L278 86L279 86L280 87L281 88L282 88L282 89L283 89L284 90L283 91L284 91L285 92L286 92L286 93L286 94L286 96ZM298 88L299 89L298 89L297 90L298 91L297 91L297 92L296 94L295 94L294 93L293 93L292 93L291 93L290 93L290 92L290 91L289 90L289 89L290 88L291 88L291 87L292 87L293 87L294 86L294 85L295 85L296 84L297 83L298 84L299 85L298 85L299 86L298 86L297 87L298 88ZM306 82L307 83L306 84L306 83L305 83L306 84L305 84L304 84L304 83L304 82L303 83L302 83L302 82L303 82L303 81L304 82L305 81L305 80L306 81L306 82ZM261 84L260 84L260 83L260 82L260 80L261 81L262 82L262 84L261 84ZM304 80L303 81L302 80L303 80L303 79L303 80L304 79L304 80ZM299 81L297 82L298 81L298 80L299 80L300 79L299 80L299 81ZM302 78L303 78L303 79L302 80L302 79L302 78ZM306 78L306 79L305 79L305 80L305 79L304 79L305 79L305 78L304 77L305 77L306 78ZM302 77L301 78L301 77L300 77L301 77L302 77ZM301 71L302 72L303 73L302 74L302 75L302 76L303 76L304 76L304 77L303 77L303 76L303 77L302 76L301 76L301 75L301 76L300 75L300 74L300 72L301 71ZM114 72L113 72L113 71L114 71L114 72ZM103 72L102 72L102 71L102 72L103 72L104 72L103 72ZM107 70L108 70L109 70L110 70L110 71L111 71L112 71L111 72L110 72L109 72L108 72L107 72L106 72L106 71L107 71L107 72L108 71L107 71L107 70ZM290 71L289 72L289 71L289 70L290 70L291 70L291 71L290 71ZM24 71L24 70L25 70L25 71L24 71ZM100 67L101 68L102 67L102 68L103 68L103 69L104 69L105 69L106 70L105 70L104 70L102 70L103 70L103 69L102 69L101 68L100 68L99 68L98 68L98 67L97 67L97 68L96 68L95 68L96 68L96 67L97 67L98 67L99 67L100 67ZM102 66L102 65L102 66ZM301 67L301 68L300 67L300 66L301 65L302 65L302 66L301 67ZM315 56L314 57L314 56L313 57L312 57L313 56L314 56L315 56ZM215 54L214 55L213 55L212 55L213 55L214 55L215 54ZM204 54L204 55L205 55L206 55L205 55L204 55L204 54ZM196 52L195 53L194 53L192 52L193 52L194 52L195 52L196 52ZM189 49L190 49L190 51L189 51L188 51L188 50L188 49L189 49ZM321 53L321 54L320 55L319 55L317 55L316 57L315 56L315 55L313 56L312 56L311 56L312 57L311 59L310 59L310 58L310 57L309 57L310 56L311 56L312 55L313 55L315 54L316 54L317 53L319 52L320 51L320 49L321 49L322 50L322 51L321 52L321 53ZM190 48L189 49L189 48L189 47L190 48ZM324 46L325 46L326 47L324 47L323 48L322 47L321 48L320 48L320 47L321 47L322 45L322 44L323 45L324 46ZM116 43L117 44L118 44L117 44L116 44L116 43ZM118 41L116 41L115 40L116 40L117 40L118 41ZM56 41L56 42L54 41L53 40L52 40L52 39L53 39L53 40L54 40L55 40L55 41L56 41ZM124 39L123 40L124 40L125 40L124 40L125 41L126 40L127 41L126 41L127 41L127 42L127 43L126 43L126 42L125 43L124 43L125 43L124 42L123 42L121 42L121 41L122 41L123 39L124 38L125 38L124 39ZM47 36L48 36L48 37L49 38L48 38L48 37L47 37L47 36ZM324 39L325 41L323 41L323 42L324 43L324 44L323 43L322 44L322 43L322 42L322 41L322 40L322 39L322 38L322 37L323 36L322 36L323 36L323 37L323 38L324 39ZM173 38L171 38L170 38L171 37L170 36L172 35L173 35L174 35L174 36L174 37L173 38ZM193 34L192 35L191 35L191 34L192 34L193 34ZM27 33L26 33L25 33L26 32L27 32L28 32L27 33ZM177 31L176 32L177 32L178 32L178 33L177 34L178 34L179 35L180 36L180 37L182 37L182 38L181 38L181 39L179 39L178 39L177 39L176 40L175 40L174 40L176 39L177 39L175 38L176 38L175 37L177 37L177 36L176 35L175 35L175 34L174 35L174 34L174 33L174 32L175 31L176 31L177 31ZM14 30L13 30L14 30ZM98 27L97 28L96 28L97 27L98 27ZM8 26L9 26L10 26L10 27L11 27L10 27L9 27L8 27L8 26ZM95 24L95 25L96 25L97 25L98 26L99 26L100 26L99 27L97 26L96 26L94 27L94 26L93 26L94 26L94 25L94 24L95 24ZM165 24L166 25L165 26L162 26L161 27L160 26L157 26L158 26L156 25L158 25L156 24L158 24L159 24L161 24L162 24L164 23L165 24ZM104 23L103 23L103 22L104 22L105 22L105 23L104 23ZM5 23L6 24L5 23L8 23L10 24L9 24L7 25L7 26L6 26L5 25L4 25L3 24L2 25L1 24L0 24L1 25L0 25L0 21L2 22L5 23ZM84 21L82 21L80 21L81 20L82 20L83 20L84 21ZM360 19L359 19L360 18L360 19ZM1 19L0 19L0 18L1 18L2 19L1 19ZM89 21L89 22L91 21L92 21L92 22L93 23L94 22L94 21L94 20L96 20L97 20L99 21L98 22L99 22L99 23L97 24L95 24L94 23L94 24L93 25L92 26L90 26L89 26L89 27L88 27L87 28L86 29L85 30L85 31L87 31L87 32L88 33L89 33L91 33L92 34L93 34L94 34L95 35L97 35L98 35L98 36L98 37L99 38L100 39L101 38L101 37L101 36L100 35L102 35L103 34L103 33L103 32L101 31L103 30L102 29L102 28L103 27L104 28L105 28L106 28L107 28L108 28L109 29L110 29L110 30L111 31L112 31L112 32L114 31L115 30L116 31L117 32L119 33L118 34L120 34L120 35L122 35L123 35L123 36L124 36L124 37L124 38L123 39L121 39L120 40L118 40L116 40L115 40L114 40L113 40L111 41L110 42L109 43L110 43L111 42L113 41L115 41L116 41L115 42L115 43L116 44L117 44L118 44L119 43L120 44L119 45L117 45L116 46L115 46L114 46L116 45L114 45L113 45L112 46L111 46L110 46L109 47L109 48L110 48L109 49L108 49L107 49L106 49L108 49L107 49L106 49L106 50L105 51L104 51L105 51L105 52L104 53L104 52L104 51L103 51L104 52L103 52L104 52L104 53L104 54L104 55L103 55L102 56L101 56L101 57L100 57L99 58L99 59L99 60L99 61L99 62L100 63L100 64L100 65L99 65L99 64L98 64L98 63L97 63L97 62L97 61L96 60L95 60L94 60L92 60L91 60L90 60L91 60L91 61L90 61L89 61L88 60L87 60L86 60L85 61L84 61L83 62L83 63L83 64L82 65L82 66L82 67L82 68L83 69L83 70L84 71L85 71L86 72L87 71L88 71L89 71L89 70L90 69L91 69L92 69L93 68L93 69L93 70L92 70L93 71L92 71L92 72L92 71L92 72L92 73L91 74L92 74L93 74L94 74L95 74L96 74L96 75L97 75L97 76L96 76L96 77L97 77L97 78L96 78L96 79L97 80L98 81L99 81L100 81L100 80L101 80L101 81L102 81L103 81L104 81L104 80L105 79L106 79L107 79L107 78L108 78L109 78L108 79L108 80L108 81L109 81L109 80L109 79L110 79L110 78L110 79L111 79L112 79L113 79L114 79L114 80L115 80L116 80L116 79L117 79L118 79L117 80L118 80L119 81L120 81L120 82L121 82L122 83L122 84L123 84L124 84L125 84L126 84L127 85L128 85L128 86L129 86L129 88L130 88L130 89L129 90L130 90L131 90L131 91L132 91L133 91L135 92L136 92L135 93L137 92L139 93L140 93L141 94L143 95L144 95L145 95L145 97L145 99L144 100L143 101L142 102L142 103L141 103L141 104L141 106L141 107L141 108L140 108L140 110L139 111L139 112L138 112L138 113L137 113L135 113L135 114L134 114L132 115L132 116L131 117L132 117L131 118L131 119L130 119L129 121L128 122L127 123L127 124L126 124L125 125L124 125L123 124L122 124L123 125L123 126L123 127L122 128L121 129L119 129L118 129L118 130L118 131L117 131L116 131L115 131L115 132L116 132L117 133L116 133L115 133L115 135L114 135L113 135L113 136L112 136L113 137L114 137L114 138L113 139L112 140L111 140L111 141L111 142L112 142L111 142L110 143L109 143L109 144L107 144L106 143L105 142L105 141L105 140L104 139L105 138L106 137L104 137L105 136L106 134L107 134L107 132L106 133L106 132L106 130L107 129L106 128L106 127L107 127L107 126L108 124L109 122L108 121L109 120L109 119L109 118L109 116L110 114L110 111L110 110L110 108L109 108L109 107L107 106L105 105L104 105L104 104L103 102L102 100L101 98L100 97L99 97L99 96L99 95L99 94L100 93L100 92L100 93L99 92L99 91L100 90L100 89L101 89L101 88L102 87L103 86L103 85L102 84L103 84L103 83L102 83L102 82L101 81L100 81L100 82L100 83L99 83L99 82L98 82L97 82L96 82L96 81L95 80L94 80L94 79L93 78L92 77L93 77L92 77L91 77L90 76L89 76L88 76L88 75L87 74L86 74L85 74L84 74L83 74L82 74L81 73L80 73L79 73L78 72L76 72L76 71L75 71L75 70L74 70L75 69L74 69L75 69L74 68L74 67L73 66L72 65L71 64L70 63L69 62L68 62L68 61L67 60L67 59L66 58L65 58L65 59L65 60L66 60L66 61L67 61L67 62L68 62L68 63L69 64L69 65L69 66L70 66L71 67L70 67L69 66L68 66L68 65L68 64L67 64L67 63L66 63L65 62L66 62L66 61L65 61L64 60L64 59L63 58L63 57L62 56L61 56L60 56L59 55L58 54L57 52L56 51L56 50L56 49L56 48L55 47L56 46L56 44L56 43L56 42L55 42L57 42L57 43L58 43L58 42L57 41L55 40L54 40L53 39L52 38L51 37L51 36L49 36L49 35L48 35L48 34L46 33L46 32L45 32L43 32L42 31L40 30L39 30L37 30L36 30L34 30L33 29L32 29L32 30L31 30L30 30L29 31L28 31L28 30L29 29L30 29L29 29L28 29L27 30L26 31L27 31L26 32L25 32L24 33L23 33L22 34L20 34L19 35L18 35L17 35L15 36L15 35L16 35L17 35L18 34L19 34L20 34L21 33L22 33L22 32L23 31L22 31L21 31L21 32L20 31L19 31L18 31L18 30L17 30L16 30L15 30L15 29L14 28L15 27L16 27L17 27L18 26L18 27L19 26L18 26L19 25L18 25L17 26L16 25L15 26L14 25L13 25L12 24L13 24L16 23L16 24L18 24L18 23L16 23L16 22L15 22L13 22L14 21L16 21L17 21L17 20L18 20L19 20L21 19L22 19L23 19L25 19L26 19L28 19L29 20L30 19L32 20L34 20L35 20L36 20L38 20L39 20L41 21L42 21L43 21L44 21L46 20L47 20L49 20L50 20L51 20L52 20L53 20L54 21L56 20L56 21L57 20L59 20L60 21L62 21L64 21L65 21L66 22L65 22L67 22L69 22L70 22L71 23L72 22L71 22L72 21L73 21L74 21L75 21L76 22L77 22L79 22L80 22L82 22L81 22L82 21L84 22L84 23L85 22L86 21L85 20L84 20L84 19L85 18L86 18L87 19L88 20L89 21ZM66 17L65 17L68 17L69 18L70 17L71 17L72 18L72 17L73 17L75 17L75 18L76 19L77 20L79 20L77 20L78 21L76 21L74 21L73 21L71 21L68 21L67 21L66 21L65 21L64 21L63 20L65 20L66 20L68 20L66 19L64 19L62 19L64 19L62 19L61 18L62 17L65 17L66 17ZM76 17L75 17L73 17L73 16L75 16L76 17ZM104 17L103 17L102 17L101 17L100 17L99 17L99 16L100 16L102 16L104 17ZM93 17L94 17L95 17L98 16L99 17L99 18L101 18L102 17L104 18L106 18L106 19L108 18L109 19L111 19L112 20L113 21L111 21L114 22L115 22L117 23L118 23L118 24L116 25L115 25L113 24L112 24L113 25L114 25L115 26L115 27L114 27L111 26L113 27L114 28L111 28L109 27L108 27L108 26L107 26L105 25L105 26L102 26L101 25L102 25L104 25L106 25L106 24L107 23L107 22L105 21L103 21L104 21L103 20L102 20L101 20L99 20L95 20L93 20L91 20L90 19L92 19L90 19L90 18L91 17L92 16L94 16L93 17ZM80 16L81 16L83 16L83 17L82 17L83 17L83 18L82 19L81 19L80 18L78 17L80 17L78 17L80 16ZM324 17L322 17L320 17L321 16L322 16L323 17L324 17ZM87 17L86 18L85 18L84 17L85 16L88 16L89 16L88 17L87 17ZM60 19L57 19L56 19L54 18L55 17L56 16L55 16L58 16L60 16L62 16L63 16L64 17L63 17L61 17L60 18L60 19ZM331 15L330 15L328 15L326 15L328 15L331 15ZM86 15L84 15L83 15L84 15L85 14L86 15ZM325 14L324 15L321 15L319 15L317 15L318 14L319 14L321 14L325 14ZM82 13L82 14L82 15L80 15L79 15L79 14L77 14L79 14L80 13L81 13L82 13ZM72 14L73 14L74 14L74 15L70 15L68 16L66 16L66 15L68 15L64 15L62 15L64 14L65 14L67 14L69 14L71 15L70 14L70 13L71 13L72 14ZM238 19L237 19L234 19L233 19L232 19L231 18L232 18L232 17L234 16L236 15L238 14L241 14L244 14L246 13L248 13L249 13L248 14L245 14L242 15L238 16L237 17L235 18L236 18L238 19ZM85 13L86 13L88 13L89 14L90 14L91 14L92 14L94 15L95 14L97 14L99 14L100 15L98 16L97 15L94 16L92 16L90 15L88 15L87 15L87 14L86 14L84 14L83 13L85 13ZM64 12L64 13L63 13L62 14L60 14L59 14L57 14L59 13L61 12L62 13L64 12ZM287 13L287 14L288 13L291 13L293 14L294 14L294 15L293 15L290 16L289 16L291 16L292 16L293 16L294 17L294 16L296 16L299 16L299 17L303 17L303 16L305 16L307 16L309 17L309 18L308 18L310 19L311 19L312 18L314 19L316 18L317 19L318 18L320 19L319 18L320 17L330 18L333 19L337 19L339 19L340 20L341 21L342 20L344 20L346 21L348 20L350 21L351 21L350 20L354 20L356 20L359 21L360 21L360 25L359 25L357 25L358 26L359 27L359 28L357 27L355 28L354 28L352 29L351 30L350 30L349 29L346 30L345 30L344 30L343 31L342 32L343 32L343 34L342 34L342 35L340 36L340 37L339 37L338 38L337 39L336 38L336 37L335 35L336 33L337 33L337 32L338 32L340 31L342 30L344 29L344 27L343 28L340 29L339 28L337 29L334 30L335 31L333 31L331 31L331 30L330 30L329 31L325 31L322 31L319 33L315 35L317 35L317 36L318 36L319 36L320 36L321 37L321 38L321 39L321 40L320 42L319 43L318 44L317 45L316 46L315 47L314 47L313 47L312 47L311 47L311 48L310 48L310 49L309 49L309 50L308 50L308 51L307 51L308 51L309 53L309 54L309 55L308 55L307 56L306 56L306 55L307 54L306 53L307 53L306 52L305 52L305 51L305 50L304 50L303 50L302 51L301 51L302 51L301 50L302 50L302 49L301 49L300 50L299 51L298 51L298 52L299 52L299 53L300 53L301 52L302 53L303 53L301 53L301 54L300 54L299 55L300 56L301 57L301 58L302 58L302 59L301 59L302 60L302 61L302 62L301 62L300 63L300 64L299 65L297 66L296 67L295 67L294 68L294 67L293 68L292 68L291 69L290 70L290 69L289 68L288 68L287 69L286 70L286 71L286 72L287 73L288 74L289 75L289 77L289 78L288 79L287 80L286 80L285 81L285 80L284 80L283 79L283 78L282 77L281 77L280 77L280 78L279 79L279 80L279 81L280 81L280 82L280 83L281 83L282 83L282 84L283 84L283 85L283 86L283 87L284 87L284 88L284 89L283 88L281 87L281 86L281 85L280 85L280 84L280 83L279 82L278 82L278 81L279 80L278 79L279 79L278 78L279 77L278 76L278 75L278 74L277 73L277 74L275 74L274 74L275 73L274 72L274 71L274 70L273 70L272 69L272 68L271 67L270 67L271 68L270 68L269 68L268 68L267 69L266 70L265 71L264 72L263 72L262 73L262 74L261 74L260 74L260 75L260 76L260 77L260 78L260 80L259 80L259 81L258 81L258 82L257 81L256 80L256 79L255 78L255 77L255 76L254 75L254 74L253 72L253 71L253 70L253 69L251 69L250 69L249 68L250 68L249 67L248 66L247 66L247 65L246 65L245 65L243 65L241 65L240 65L239 64L237 64L237 63L236 63L235 64L233 63L232 62L231 61L230 60L229 60L228 60L228 61L229 62L229 63L230 63L230 64L231 65L231 64L232 64L232 65L231 65L232 66L233 66L234 66L235 65L236 64L236 65L237 66L238 66L239 66L239 67L240 67L240 68L239 68L239 69L238 70L238 71L237 71L237 72L236 72L235 72L235 73L234 73L233 73L232 74L231 75L230 75L229 76L228 76L227 76L227 77L226 77L225 77L224 77L223 77L223 76L223 75L223 74L223 73L222 73L222 72L221 71L220 70L219 69L219 68L219 67L218 66L217 66L217 65L217 64L216 63L215 62L215 61L215 60L215 61L214 62L213 62L212 60L213 61L213 62L214 64L215 65L216 66L215 66L216 67L217 68L217 69L217 70L217 71L218 72L219 73L219 74L220 75L221 76L222 76L222 77L223 77L223 78L223 79L224 79L224 80L225 80L226 79L227 79L228 79L229 79L230 78L231 78L231 79L231 80L231 81L230 82L229 83L229 85L228 86L227 87L226 88L224 89L223 90L222 91L222 92L221 92L220 93L220 94L219 95L219 96L219 97L219 98L220 99L220 100L220 101L220 102L221 103L221 104L221 105L220 105L220 106L219 107L217 108L216 109L215 110L215 111L215 112L216 112L216 113L215 114L216 114L215 114L214 115L213 115L213 116L213 117L212 118L212 119L211 119L211 120L210 121L209 122L208 123L207 123L206 124L205 124L204 124L203 124L202 124L201 124L200 125L199 124L198 124L198 123L198 122L198 121L197 120L196 119L196 118L195 117L195 116L195 115L194 114L194 113L194 112L193 111L193 110L193 109L192 108L192 107L192 106L192 105L192 104L193 104L193 103L193 102L194 102L194 101L193 100L193 99L193 98L193 97L192 96L192 95L191 94L190 93L189 92L189 91L189 90L189 89L190 88L190 87L189 86L188 86L189 85L187 86L186 86L185 85L185 84L184 84L183 84L182 84L181 84L179 85L178 85L177 85L176 85L175 85L174 85L173 85L172 86L171 85L170 84L169 84L169 83L168 83L167 82L167 81L166 81L166 80L165 80L165 79L164 79L164 78L163 78L163 77L163 76L162 75L163 75L163 74L164 74L163 73L164 73L164 72L164 71L164 70L163 69L163 68L164 67L164 66L165 66L165 65L165 64L166 64L166 63L167 62L168 62L169 61L170 61L170 60L170 59L171 58L171 57L172 56L173 56L174 55L174 54L175 54L175 55L176 55L177 55L178 55L179 54L180 54L181 54L181 53L183 53L185 53L186 53L187 53L188 53L190 53L191 53L191 54L191 55L190 56L191 56L191 57L193 57L194 57L195 58L196 59L197 59L198 59L199 60L200 59L200 58L201 57L202 57L203 57L203 58L204 58L205 58L206 58L207 59L208 59L209 59L210 59L211 58L212 59L213 59L214 59L215 58L214 58L215 58L215 57L215 56L216 55L216 54L216 53L215 53L214 54L213 54L212 53L211 53L210 54L209 53L208 53L207 52L206 52L207 51L206 51L207 50L209 50L209 49L211 49L212 48L214 48L215 48L217 49L218 49L220 49L222 48L221 47L220 47L219 46L218 45L217 45L218 44L218 43L219 43L218 43L217 43L216 43L215 44L216 45L217 45L216 45L215 45L214 46L213 45L214 45L212 45L213 44L214 44L213 44L212 44L212 43L211 43L210 44L210 45L209 45L209 46L208 47L208 48L209 49L208 49L207 49L206 50L206 49L205 49L204 49L204 50L203 50L203 51L204 51L204 52L203 52L203 53L203 54L202 54L202 53L201 52L201 51L200 51L200 50L199 50L199 49L200 48L199 48L198 48L198 47L197 47L196 46L195 46L195 45L194 45L194 44L193 44L192 45L193 46L194 46L194 47L195 48L196 48L197 49L198 49L198 50L197 50L196 50L197 51L196 52L196 51L196 50L195 50L195 49L194 49L193 49L192 48L191 48L191 47L190 46L189 46L188 46L187 46L187 47L185 47L183 47L183 48L182 49L181 49L180 50L180 51L180 52L179 52L179 53L178 53L177 53L176 53L175 54L174 54L173 53L172 53L171 53L171 52L170 51L171 51L171 50L171 49L171 48L171 47L172 46L173 46L175 46L176 47L178 47L179 46L179 44L178 43L177 42L176 42L175 41L177 41L178 41L178 40L179 41L181 40L182 39L183 39L184 38L185 37L186 36L187 37L187 36L188 36L189 36L189 35L188 34L188 33L189 33L190 33L191 32L191 33L190 33L191 34L190 34L190 35L191 36L192 36L193 36L194 36L195 36L196 35L198 35L199 35L199 36L200 36L200 35L201 35L201 34L201 33L202 33L203 32L203 33L204 33L204 32L203 31L205 31L206 30L207 31L208 31L209 30L208 29L206 30L204 30L203 30L202 30L201 29L202 28L201 27L202 27L202 26L205 25L205 24L204 24L202 24L201 25L201 26L200 26L198 27L197 29L198 29L199 30L198 31L197 31L196 33L196 34L195 34L194 35L193 35L193 34L192 33L191 31L190 31L188 32L187 32L186 31L185 30L185 28L186 27L189 27L191 26L192 24L195 22L196 21L199 20L201 20L203 20L205 19L206 19L208 19L211 20L210 20L211 20L212 20L214 21L217 21L220 22L221 23L220 24L218 24L214 23L213 23L215 24L215 26L216 26L217 26L217 25L220 25L222 24L223 24L224 24L225 23L224 23L224 22L223 21L226 22L227 22L226 22L226 23L228 23L228 22L230 22L234 21L233 22L235 22L237 22L239 21L240 22L241 21L240 20L241 20L244 20L245 21L249 22L249 21L248 21L247 21L247 20L247 19L249 18L249 17L250 17L253 17L253 18L252 19L253 20L253 21L254 22L253 22L251 24L252 24L253 23L254 23L255 22L254 22L255 21L254 21L254 20L254 19L253 19L255 18L255 17L256 18L255 19L256 19L256 18L258 18L260 18L262 18L261 17L261 16L262 16L265 16L267 16L266 16L267 15L268 15L270 14L273 14L276 14L277 14L279 14L281 14L281 13L282 13L284 12L286 13L285 13L287 13ZM229 49L230 49L230 50L229 51L229 52L230 53L231 53L232 53L234 53L234 52L234 51L233 51L233 50L233 49L234 49L235 49L234 48L233 48L233 49L233 48L232 48L233 48L233 47L231 47L231 46L230 46L230 45L231 45L232 45L233 45L233 44L233 43L232 43L231 43L230 43L229 44L228 44L227 45L228 46L227 47L229 48L229 49ZM86 12L86 13L84 12L86 12ZM70 12L68 13L66 12L67 12L69 12L70 12ZM205 12L202 13L201 12L203 12L205 12ZM70 11L69 12L67 12L67 11L68 11L69 11L70 11ZM84 12L83 12L82 12L81 12L81 11L83 11L84 12ZM80 12L79 12L77 12L75 12L76 11L75 11L76 11L79 11L80 12ZM285 12L279 12L281 11L282 11L283 11L285 11L285 12ZM198 10L202 11L199 11L198 12L197 13L196 13L194 13L195 12L193 12L191 11L190 10L193 10L194 10L195 10L196 10L197 10L198 10ZM205 10L207 10L206 10L203 11L200 10L198 10L197 10L200 9L202 10L203 9L205 10ZM231 9L230 10L229 10L228 10L227 10L227 9L225 9L227 9L228 9L229 9L230 9L232 9L231 9ZM280 11L278 11L275 11L273 11L273 10L271 10L274 9L276 9L278 9L280 10L280 11ZM93 10L94 11L93 11L91 12L89 12L87 12L86 11L87 11L85 11L84 10L83 10L84 9L85 9L86 9L85 9L88 9L89 9L91 9L92 10L93 10ZM112 7L114 7L116 7L118 7L118 8L116 8L113 8L112 8L115 8L112 9L111 9L109 10L107 10L106 11L103 11L104 11L105 11L104 12L102 12L100 13L102 13L99 14L97 14L94 14L92 14L91 14L90 13L92 13L92 12L95 12L94 12L92 12L93 11L95 11L93 10L96 10L97 10L98 10L96 9L92 9L91 9L90 9L89 8L88 8L90 8L91 8L93 8L95 7L96 7L97 8L98 7L99 7L101 7L104 7L107 7L109 7L112 7ZM153 6L159 7L157 8L153 8L148 8L149 8L152 8L155 8L157 8L158 8L157 9L159 8L164 8L167 8L168 9L164 9L163 10L160 10L162 10L161 11L160 11L160 12L162 13L160 13L158 13L160 14L160 15L159 15L161 16L158 16L160 16L159 17L158 17L156 17L158 17L158 18L156 17L155 18L157 18L158 19L156 20L156 19L154 19L155 19L154 20L156 20L158 20L155 21L152 22L149 22L148 22L147 22L146 23L144 24L143 24L142 24L140 25L139 25L139 26L139 27L137 27L138 28L137 29L137 30L135 30L134 29L132 29L131 29L130 28L128 26L128 25L126 24L127 23L126 23L127 22L129 21L129 20L128 20L127 21L125 20L126 19L127 19L129 19L127 19L126 18L125 19L124 18L125 17L124 16L123 15L121 15L121 14L119 14L117 14L114 14L111 14L110 14L109 13L111 13L113 13L109 12L107 12L111 11L114 11L115 10L112 10L113 9L116 9L118 9L117 8L120 8L123 8L126 8L127 8L130 8L132 8L133 8L135 8L133 8L133 7L137 7L140 7L141 6L145 6L153 6Z";var Is=360,br=180,vr=n=>n+180,Lr=n=>90-n,gm=9,Jc=23.44,Qc=66.56,ed=n=>n===0?"0":`${Math.abs(n)}\xB0${n>0?"E":"W"}`,td=n=>n===0?"0":`${Math.abs(n)}\xB0${n>0?"N":"S"}`;function ym(n){let a=[],e=[],t=null;for(let r of n)t!==null&&Math.abs(r.longitude-t)>180&&(e.length&&a.push(e),e=[]),e.push(`${vr(r.longitude)},${Lr(r.latitude)}`),t=r.longitude;return e.length&&a.push(e),a.filter(r=>r.length>1).map(r=>r.join(" "))}var ad={mc:"MC",ic:"IC",ascendant:"ASC",descendant:"DSC"},qt=class extends f{constructor(){super(...arguments);this.chartViewport=new ne(this)}updated(e){super.updated(e);for(let t of this.renderRoot.querySelectorAll('svg[part="chart"]')){if(typeof t.getBBox!="function")continue;let{x:r,y:i,width:l,height:c}=t.getBBox();t.setAttribute("viewBox",[r-1,i-1,l+2,c+2].join(" "))}}renderData(e){let t=e.lines??[],r=e.birthDetails;return s`<div class="wrap" part="card"><header part="header"><h2>${this.t("Astrocartography")}</h2>${r?s`<p class="roxy-label">${Y(this.effectiveLang(),r.date,r.time)} · ${td(Math.round(r.latitude))} ${ed(Math.round(r.longitude))}</p>`:o}</header>${this.chartViewport.renderChartViewport(this.renderMap(t,r),this.t("Astrocartography"),this.translator)} ${this.renderLegend(t)} ${e.summary&&!this.hideReadings?s`<p class="summary">${e.summary}</p>`:o} ${this.renderInterpretations(t)}</div>`}renderMap(e,t){return s`<svg viewBox="0 0 ${Is} ${br}" part="chart" role="img" aria-label="${this.t("World map of planetary astrocartography lines")}"><title>${this.t("Astrocartography world map")}</title><desc>${this.t("Equirectangular world map. Each body has a Midheaven and Imum Coeli meridian and a curved Ascendant and Descendant line, colored per body.")}</desc><rect class="map-frame" x="0" y="0" width="${Is}" height="${br}"/><path class="land" d="${Xc}" fill-rule="evenodd"/>${this.renderGraticule()} ${this.renderBodyLines(e)} ${t?F`<text class="birthplace roxy-glyph" x=${vr(t.longitude)} y=${Lr(t.latitude)} text-anchor="middle" dominant-baseline="central"><title>${this.t("Birth location")}</title>${jc}</text>`:o}</svg>`}renderGraticule(){let e=[];for(let i=-150;i<=150;i+=30){let l=vr(i),c=i===0;e.push(F`<line class=${c?"grat-axis":"grat"} x1=${l} y1="0" x2=${l} y2=${br} />`),e.push(F`<text class="axis-label" x=${l} y=${br-2} text-anchor="middle">${ed(i)}</text>`)}let t=[];for(let i=-60;i<=60;i+=30){let l=Lr(i),c=i===0;t.push(F`<line class=${c?"grat-axis":"grat"} x1="0" y1=${l} x2=${Is} y2=${l} />`),t.push(F`<text class="axis-label" x="2" y=${l-1}>${td(i)}</text>`)}let r=[Jc,-Jc,Qc,-Qc].map(i=>F`<line class="grat-ref" x1="0" y1=${Lr(i)} x2=${Is} y2=${Lr(i)} />`);return F`${e}${t}${r}`}renderBodyLines(e){let t=e.map((h,m)=>{let g=x(h,"planet");return{line:h,name:g,color:Za(h.planet,m),glyph:C(h.planet)??g}}),r=h=>h.reduce((m,g)=>Math.abs(g.latitude)<Math.abs(m.latitude)?g:m,h[0]??{latitude:0,longitude:0}),i=h=>new Map(ze(t,m=>h(m)+180,gm).map(({item:m,displayLongitude:g})=>[m,g-180])),l=i(h=>h.line.mc.longitude),c=i(h=>h.line.ic.longitude),d=i(h=>r(h.line.ascendant.points??[]).longitude),p=i(h=>r(h.line.descendant.points??[]).longitude);return t.map(h=>{let{line:m,name:g,color:b,glyph:w}=h,S=R=>R.get(h)??0;return F`${[this.renderMeridian(m.mc.longitude,S(l),b,w,g,"mc",false),this.renderMeridian(m.ic.longitude,S(c),b,w,g,"ic",true),this.renderCurve(m.ascendant.points,{longitude:S(d),latitude:r(m.ascendant.points??[]).latitude},b,w,g,"ascendant",false),this.renderCurve(m.descendant.points,{longitude:S(p),latitude:r(m.descendant.points??[]).latitude},b,w,g,"descendant",true)]}`})}renderMeridian(e,t,r,i,l,c,d){let p=vr(e),h=c==="ic"?br-16:9;return F`<g>
|
|
4
|
-
<line class=${`acg-line${d?" dashed":""}`} stroke=${r} x1=${p} y1="0" x2=${p} y2=${br}><title>${this.t("{{planet}} {{angle}} line",{planet:l,angle:this.t(
|
|
1
|
+
"use strict";var RoxyUI=(()=>{var ts=Object.defineProperty;var io=Object.getOwnPropertyDescriptor;var Jp=Object.getOwnPropertyNames;var Qp=Object.prototype.hasOwnProperty;var eh=(n,a)=>{for(var e in a)ts(n,e,{get:a[e],enumerable:true})},th=(n,a,e,t)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of Jp(a))!Qp.call(n,r)&&r!==e&&ts(n,r,{get:()=>a[r],enumerable:!(t=io(a,r))||t.enumerable});return n};var ah=n=>th(ts({},"__esModule",{value:true}),n),y=(n,a,e,t)=>{for(var r=t>1?void 0:t?io(a,e):a,i=n.length-1,l;i>=0;i--)(l=n[i])&&(r=(t?l(a,e,r):l(r))||r);return t&&r&&ts(a,e,r),r};var ef={};eh(ef,{ROXY_COMPONENTS:()=>Mn,ROXY_UI_COMPONENTS:()=>Qu,ROXY_UI_TOKENS_STYLE_ID:()=>fs,ROXY_UI_VERSION:()=>sr,RoxyAlmanacDay:()=>nt,RoxyAngelNumberCard:()=>Bt,RoxyAngelNumberLookup:()=>Ht,RoxyArudhaPadas:()=>Ut,RoxyAshtakavargaGrid:()=>it,RoxyAspectsTable:()=>Vt,RoxyAstrocartographyMap:()=>qt,RoxyBaziChart:()=>Yt,RoxyBhavChalitTable:()=>Wt,RoxyBhavaBalaTable:()=>Zt,RoxyBiorhythmChart:()=>dt,RoxyBodygraph:()=>ht,RoxyCharaKarakas:()=>ea,RoxyChoghadiyaGrid:()=>ta,RoxyCompatibilityCard:()=>mt,RoxyCompoundNumber:()=>aa,RoxyCrystalCard:()=>ra,RoxyCrystalGrid:()=>gt,RoxyDashaTimeline:()=>Xe,RoxyData:()=>sa,RoxyDivisionalChart:()=>yt,RoxyDoshaCard:()=>ut,RoxyDoshaConstitution:()=>ia,RoxyDreamCard:()=>oa,RoxyDreamSearch:()=>la,RoxyEndpointForm:()=>ee,RoxyEphemerisTable:()=>xt,RoxyFixedStars:()=>da,RoxyFlyingStarChart:()=>bt,RoxyForecastDigest:()=>pa,RoxyForecastTimeline:()=>ha,RoxyGematria:()=>ma,RoxyGocharaTable:()=>ga,RoxyGunaMilan:()=>ya,RoxyHdConnection:()=>ua,RoxyHdPenta:()=>fa,RoxyHdTypeCard:()=>xa,RoxyHdVariables:()=>ba,RoxyHeliacalTable:()=>va,RoxyHexagram:()=>La,RoxyHoraTable:()=>$a,RoxyHoroscopeCard:()=>Je,RoxyKpChart:()=>vt,RoxyKpFinanceCard:()=>wa,RoxyKpPlanetsTable:()=>ka,RoxyKpRulingPlanets:()=>Sa,RoxyKuaCard:()=>Lt,RoxyLocalSpaceCompass:()=>Ra,RoxyLocationSearch:()=>oe,RoxyLuckPillars:()=>Ca,RoxyMayanDaySign:()=>kt,RoxyMoonPhase:()=>St,RoxyNakshatraCard:()=>Ta,RoxyNatalChart:()=>Qe,RoxyNumerologyCard:()=>Rt,RoxyPanchangTable:()=>Ct,RoxyPositionsTable:()=>Tt,RoxyProfectionCard:()=>Da,RoxyReferenceCard:()=>Pa,RoxyRelocationWheel:()=>_a,RoxyReport:()=>Ce,RoxyShadbalaTable:()=>Ma,RoxySynastryChart:()=>za,RoxyTarotCard:()=>Et,RoxyTarotCatalog:()=>At,RoxyTarotSpread:()=>Dt,RoxyTransitWheel:()=>Be,RoxyTransitsTable:()=>Pt,RoxyUpagrahaTable:()=>Oa,RoxyVastuMandala:()=>_t,RoxyVedicAspects:()=>Ia,RoxyVedicDaily:()=>Ga,RoxyVedicKundli:()=>He,RoxyVedicPlanetsTable:()=>Fa,RoxyWesternPlanetsTable:()=>Ea,RoxyYogaList:()=>Mt,RoxyZodiacCard:()=>Nt,componentForTool:()=>so,expandCompact:()=>Mr,injectRoxyTokens:()=>xs,roxyDataScript:()=>Lc,serializeRoxyData:()=>Qn});var as=globalThis,rs=as.ShadowRoot&&(as.ShadyCSS===void 0||as.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nn=Symbol(),oo=new WeakMap,Sr=class{constructor(a,e,t){if(this._$cssResult$=true,t!==Nn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=a,this.t=e}get styleSheet(){let a=this.o,e=this.t;if(rs&&a===void 0){let t=e!==void 0&&e.length===1;t&&(a=oo.get(e)),a===void 0&&((this.o=a=new CSSStyleSheet).replaceSync(this.cssText),t&&oo.set(e,a))}return a}toString(){return this.cssText}},lo=n=>new Sr(typeof n=="string"?n:n+"",void 0,Nn),u=(n,...a)=>{let e=n.length===1?n[0]:a.reduce((t,r,i)=>t+(l=>{if(l._$cssResult$===true)return l.cssText;if(typeof l=="number")return l;throw Error("Value passed to 'css' function must be a 'css' function result: "+l+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+n[i+1],n[0]);return new Sr(e,n,Nn)},co=(n,a)=>{if(rs)n.adoptedStyleSheets=a.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of a){let t=document.createElement("style"),r=as.litNonce;r!==void 0&&t.setAttribute("nonce",r),t.textContent=e.cssText,n.appendChild(t)}},zn=rs?n=>n:n=>n instanceof CSSStyleSheet?(a=>{let e="";for(let t of a.cssRules)e+=t.cssText;return lo(e)})(n):n;var{is:rh,defineProperty:sh,getOwnPropertyDescriptor:nh,getOwnPropertyNames:ih,getOwnPropertySymbols:oh,getPrototypeOf:lh}=Object,ss=globalThis,po=ss.trustedTypes,ch=po?po.emptyScript:"",dh=ss.reactiveElementPolyfillSupport,Rr=(n,a)=>n,Cr={toAttribute(n,a){switch(a){case Boolean:n=n?ch:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,a){let e=n;switch(a){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},ns=(n,a)=>!rh(n,a),ho={attribute:true,type:String,converter:Cr,reflect:false,useDefault:false,hasChanged:ns};Symbol.metadata??=Symbol("metadata"),ss.litPropertyMetadata??=new WeakMap;var tt=class extends HTMLElement{static addInitializer(a){this._$Ei(),(this.l??=[]).push(a)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(a,e=ho){if(e.state&&(e.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(a)&&((e=Object.create(e)).wrapped=true),this.elementProperties.set(a,e),!e.noAccessor){let t=Symbol(),r=this.getPropertyDescriptor(a,t,e);r!==void 0&&sh(this.prototype,a,r)}}static getPropertyDescriptor(a,e,t){let{get:r,set:i}=nh(this.prototype,a)??{get(){return this[e]},set(l){this[e]=l}};return{get:r,set(l){let c=r?.call(this);i?.call(this,l),this.requestUpdate(a,c,t)},configurable:true,enumerable:true}}static getPropertyOptions(a){return this.elementProperties.get(a)??ho}static _$Ei(){if(this.hasOwnProperty(Rr("elementProperties")))return;let a=lh(this);a.finalize(),a.l!==void 0&&(this.l=[...a.l]),this.elementProperties=new Map(a.elementProperties)}static finalize(){if(this.hasOwnProperty(Rr("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(Rr("properties"))){let e=this.properties,t=[...ih(e),...oh(e)];for(let r of t)this.createProperty(r,e[r])}let a=this[Symbol.metadata];if(a!==null){let e=litPropertyMetadata.get(a);if(e!==void 0)for(let[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let r=this._$Eu(e,t);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(a){let e=[];if(Array.isArray(a)){let t=new Set(a.flat(1/0).reverse());for(let r of t)e.unshift(zn(r))}else a!==void 0&&e.push(zn(a));return e}static _$Eu(a,e){let t=e.attribute;return t===false?void 0:typeof t=="string"?t:typeof a=="string"?a.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(a=>this.enableUpdating=a),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(a=>a(this))}addController(a){(this._$EO??=new Set).add(a),this.renderRoot!==void 0&&this.isConnected&&a.hostConnected?.()}removeController(a){this._$EO?.delete(a)}_$E_(){let a=new Map,e=this.constructor.elementProperties;for(let t of e.keys())this.hasOwnProperty(t)&&(a.set(t,this[t]),delete this[t]);a.size>0&&(this._$Ep=a)}createRenderRoot(){let a=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return co(a,this.constructor.elementStyles),a}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach(a=>a.hostConnected?.())}enableUpdating(a){}disconnectedCallback(){this._$EO?.forEach(a=>a.hostDisconnected?.())}attributeChangedCallback(a,e,t){this._$AK(a,t)}_$ET(a,e){let t=this.constructor.elementProperties.get(a),r=this.constructor._$Eu(a,t);if(r!==void 0&&t.reflect===true){let i=(t.converter?.toAttribute!==void 0?t.converter:Cr).toAttribute(e,t.type);this._$Em=a,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(a,e){let t=this.constructor,r=t._$Eh.get(a);if(r!==void 0&&this._$Em!==r){let i=t.getPropertyOptions(r),l=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:Cr;this._$Em=r;let c=l.fromAttribute(e,i.type);this[r]=c??this._$Ej?.get(r)??c,this._$Em=null}}requestUpdate(a,e,t,r=false,i){if(a!==void 0){let l=this.constructor;if(r===false&&(i=this[a]),t??=l.getPropertyOptions(a),!((t.hasChanged??ns)(i,e)||t.useDefault&&t.reflect&&i===this._$Ej?.get(a)&&!this.hasAttribute(l._$Eu(a,t))))return;this.C(a,e,t)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(a,e,{useDefault:t,reflect:r,wrapped:i},l){t&&!(this._$Ej??=new Map).has(a)&&(this._$Ej.set(a,l??e??this[a]),i!==true||l!==void 0)||(this._$AL.has(a)||(this.hasUpdated||t||(e=void 0),this._$AL.set(a,e)),r===true&&this._$Em!==a&&(this._$Eq??=new Set).add(a))}async _$EP(){this.isUpdatePending=true;try{await this._$ES}catch(e){Promise.reject(e)}let a=this.scheduleUpdate();return a!=null&&await a,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let t=this.constructor.elementProperties;if(t.size>0)for(let[r,i]of t){let{wrapped:l}=i,c=this[r];l!==true||this._$AL.has(r)||c===void 0||this.C(r,void 0,i,c)}}let a=false,e=this._$AL;try{a=this.shouldUpdate(e),a?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(t){throw a=false,this._$EM(),t}a&&this._$AE(e)}willUpdate(a){}_$AE(a){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(a)),this.updated(a)}_$EM(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(a){return true}update(a){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(a){}firstUpdated(a){}};tt.elementStyles=[],tt.shadowRootOptions={mode:"open"},tt[Rr("elementProperties")]=new Map,tt[Rr("finalized")]=new Map,dh?.({ReactiveElement:tt}),(ss.reactiveElementVersions??=[]).push("2.1.2");var In=globalThis,mo=n=>n,is=In.trustedTypes,go=is?is.createPolicy("lit-html",{createHTML:n=>n}):void 0,Gn="$lit$",at=`lit$${Math.random().toFixed(9).slice(2)}$`,Fn="?"+at,ph=`<${Fn}>`,ja=document,Er=()=>ja.createComment(""),Ar=n=>n===null||typeof n!="object"&&typeof n!="function",Bn=Array.isArray,vo=n=>Bn(n)||typeof n?.[Symbol.iterator]=="function",On=`[
|
|
2
|
+
\f\r]`,Tr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yo=/-->/g,uo=/>/g,Ba=RegExp(`>|${On}(?:([^\\s"'>=/]+)(${On}*=${On}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),fo=/'/g,xo=/"/g,Lo=/^(?:script|style|textarea|title)$/i,Hn=n=>(a,...e)=>({_$litType$:n,strings:a,values:e}),s=Hn(1),F=Hn(2),of=Hn(3),$e=Symbol.for("lit-noChange"),o=Symbol.for("lit-nothing"),bo=new WeakMap,Ha=ja.createTreeWalker(ja,129);function $o(n,a){if(!Bn(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return go!==void 0?go.createHTML(a):a}var wo=(n,a)=>{let e=n.length-1,t=[],r,i=a===2?"<svg>":a===3?"<math>":"",l=Tr;for(let c=0;c<e;c++){let d=n[c],p,h,m=-1,g=0;for(;g<d.length&&(l.lastIndex=g,h=l.exec(d),h!==null);)g=l.lastIndex,l===Tr?h[1]==="!--"?l=yo:h[1]!==void 0?l=uo:h[2]!==void 0?(Lo.test(h[2])&&(r=RegExp("</"+h[2],"g")),l=Ba):h[3]!==void 0&&(l=Ba):l===Ba?h[0]===">"?(l=r??Tr,m=-1):h[1]===void 0?m=-2:(m=l.lastIndex-h[2].length,p=h[1],l=h[3]===void 0?Ba:h[3]==='"'?xo:fo):l===xo||l===fo?l=Ba:l===yo||l===uo?l=Tr:(l=Ba,r=void 0);let b=l===Ba&&n[c+1].startsWith("/>")?" ":"";i+=l===Tr?d+ph:m>=0?(t.push(p),d.slice(0,m)+Gn+d.slice(m)+at+b):d+at+(m===-2?c:b)}return[$o(n,i+(n[e]||"<?>")+(a===2?"</svg>":a===3?"</math>":"")),t]},Dr=class n{constructor({strings:a,_$litType$:e},t){let r;this.parts=[];let i=0,l=0,c=a.length-1,d=this.parts,[p,h]=wo(a,e);if(this.el=n.createElement(p,t),Ha.currentNode=this.el.content,e===2||e===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(r=Ha.nextNode())!==null&&d.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(let m of r.getAttributeNames())if(m.endsWith(Gn)){let g=h[l++],b=r.getAttribute(m).split(at),w=/([.?@])?(.*)/.exec(g);d.push({type:1,index:i,name:w[2],strings:b,ctor:w[1]==="."?ls:w[1]==="?"?cs:w[1]==="@"?ds:Ua}),r.removeAttribute(m)}else m.startsWith(at)&&(d.push({type:6,index:i}),r.removeAttribute(m));if(Lo.test(r.tagName)){let m=r.textContent.split(at),g=m.length-1;if(g>0){r.textContent=is?is.emptyScript:"";for(let b=0;b<g;b++)r.append(m[b],Er()),Ha.nextNode(),d.push({type:2,index:++i});r.append(m[g],Er())}}}else if(r.nodeType===8)if(r.data===Fn)d.push({type:2,index:i});else{let m=-1;for(;(m=r.data.indexOf(at,m+1))!==-1;)d.push({type:7,index:i}),m+=at.length-1}i++}}static createElement(a,e){let t=ja.createElement("template");return t.innerHTML=a,t}};function Ka(n,a,e=n,t){if(a===$e)return a;let r=t!==void 0?e._$Co?.[t]:e._$Cl,i=Ar(a)?void 0:a._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(false),i===void 0?r=void 0:(r=new i(n),r._$AT(n,e,t)),t!==void 0?(e._$Co??=[])[t]=r:e._$Cl=r),r!==void 0&&(a=Ka(n,r._$AS(n,a.values),r,t)),a}var os=class{constructor(a,e){this._$AV=[],this._$AN=void 0,this._$AD=a,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(a){let{el:{content:e},parts:t}=this._$AD,r=(a?.creationScope??ja).importNode(e,true);Ha.currentNode=r;let i=Ha.nextNode(),l=0,c=0,d=t[0];for(;d!==void 0;){if(l===d.index){let p;d.type===2?p=new rr(i,i.nextSibling,this,a):d.type===1?p=new d.ctor(i,d.name,d.strings,this,a):d.type===6&&(p=new ps(i,this,a)),this._$AV.push(p),d=t[++c]}l!==d?.index&&(i=Ha.nextNode(),l++)}return Ha.currentNode=ja,r}p(a){let e=0;for(let t of this._$AV)t!==void 0&&(t.strings!==void 0?(t._$AI(a,t,e),e+=t.strings.length-2):t._$AI(a[e])),e++}},rr=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(a,e,t,r){this.type=2,this._$AH=o,this._$AN=void 0,this._$AA=a,this._$AB=e,this._$AM=t,this.options=r,this._$Cv=r?.isConnected??true}get parentNode(){let a=this._$AA.parentNode,e=this._$AM;return e!==void 0&&a?.nodeType===11&&(a=e.parentNode),a}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(a,e=this){a=Ka(this,a,e),Ar(a)?a===o||a==null||a===""?(this._$AH!==o&&this._$AR(),this._$AH=o):a!==this._$AH&&a!==$e&&this._(a):a._$litType$!==void 0?this.$(a):a.nodeType!==void 0?this.T(a):vo(a)?this.k(a):this._(a)}O(a){return this._$AA.parentNode.insertBefore(a,this._$AB)}T(a){this._$AH!==a&&(this._$AR(),this._$AH=this.O(a))}_(a){this._$AH!==o&&Ar(this._$AH)?this._$AA.nextSibling.data=a:this.T(ja.createTextNode(a)),this._$AH=a}$(a){let{values:e,_$litType$:t}=a,r=typeof t=="number"?this._$AC(a):(t.el===void 0&&(t.el=Dr.createElement($o(t.h,t.h[0]),this.options)),t);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new os(r,this),l=i.u(this.options);i.p(e),this.T(l),this._$AH=i}}_$AC(a){let e=bo.get(a.strings);return e===void 0&&bo.set(a.strings,e=new Dr(a)),e}k(a){Bn(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,t,r=0;for(let i of a)r===e.length?e.push(t=new n(this.O(Er()),this.O(Er()),this,this.options)):t=e[r],t._$AI(i),r++;r<e.length&&(this._$AR(t&&t._$AB.nextSibling,r),e.length=r)}_$AR(a=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);a!==this._$AB;){let t=mo(a).nextSibling;mo(a).remove(),a=t}}setConnected(a){this._$AM===void 0&&(this._$Cv=a,this._$AP?.(a))}},Ua=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(a,e,t,r,i){this.type=1,this._$AH=o,this._$AN=void 0,this.element=a,this.name=e,this._$AM=r,this.options=i,t.length>2||t[0]!==""||t[1]!==""?(this._$AH=Array(t.length-1).fill(new String),this.strings=t):this._$AH=o}_$AI(a,e=this,t,r){let i=this.strings,l=false;if(i===void 0)a=Ka(this,a,e,0),l=!Ar(a)||a!==this._$AH&&a!==$e,l&&(this._$AH=a);else{let c=a,d,p;for(a=i[0],d=0;d<i.length-1;d++)p=Ka(this,c[t+d],e,d),p===$e&&(p=this._$AH[d]),l||=!Ar(p)||p!==this._$AH[d],p===o?a=o:a!==o&&(a+=(p??"")+i[d+1]),this._$AH[d]=p}l&&!r&&this.j(a)}j(a){a===o?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,a??"")}},ls=class extends Ua{constructor(){super(...arguments),this.type=3}j(a){this.element[this.name]=a===o?void 0:a}},cs=class extends Ua{constructor(){super(...arguments),this.type=4}j(a){this.element.toggleAttribute(this.name,!!a&&a!==o)}},ds=class extends Ua{constructor(a,e,t,r,i){super(a,e,t,r,i),this.type=5}_$AI(a,e=this){if((a=Ka(this,a,e,0)??o)===$e)return;let t=this._$AH,r=a===o&&t!==o||a.capture!==t.capture||a.once!==t.once||a.passive!==t.passive,i=a!==o&&(t===o||r);r&&this.element.removeEventListener(this.name,this,t),i&&this.element.addEventListener(this.name,this,a),this._$AH=a}handleEvent(a){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,a):this._$AH.handleEvent(a)}},ps=class{constructor(a,e,t){this.element=a,this.type=6,this._$AN=void 0,this._$AM=e,this.options=t}get _$AU(){return this._$AM._$AU}_$AI(a){Ka(this,a)}},ko={M:Gn,P:at,A:Fn,C:1,L:wo,R:os,D:vo,V:Ka,I:rr,H:Ua,N:cs,U:ds,B:ls,F:ps},hh=In.litHtmlPolyfillSupport;hh?.(Dr,rr),(In.litHtmlVersions??=[]).push("3.3.3");var So=(n,a,e)=>{let t=e?.renderBefore??a,r=t._$litPart$;if(r===void 0){let i=e?.renderBefore??null;t._$litPart$=r=new rr(a.insertBefore(Er(),i),i,void 0,e??{})}return r._$AI(n),r};var jn=globalThis,zt=class extends tt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let a=super.createRenderRoot();return this.renderOptions.renderBefore??=a.firstChild,a}update(a){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(a),this._$Do=So(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return $e}};zt._$litElement$=true,zt.finalized=true,jn.litElementHydrateSupport?.({LitElement:zt});var mh=jn.litElementPolyfillSupport;mh?.({LitElement:zt});(jn.litElementVersions??=[]).push("4.2.2");var gh={attribute:true,type:String,converter:Cr,reflect:false,hasChanged:ns},yh=(n=gh,a,e)=>{let{kind:t,metadata:r}=e,i=globalThis.litPropertyMetadata.get(r);if(i===void 0&&globalThis.litPropertyMetadata.set(r,i=new Map),t==="setter"&&((n=Object.create(n)).wrapped=true),i.set(e.name,n),t==="accessor"){let{name:l}=e;return{set(c){let d=a.get.call(this);a.set.call(this,c),this.requestUpdate(l,d,n,true,c)},init(c){return c!==void 0&&this.C(l,void 0,n,c),c}}}if(t==="setter"){let{name:l}=e;return function(c){let d=this[l];a.call(this,c),this.requestUpdate(l,d,n,true,c)}}throw Error("Unsupported decorator location: "+t)};function k(n){return(a,e)=>typeof e=="object"?yh(n,a,e):((t,r,i)=>{let l=r.hasOwnProperty(i);return r.constructor.createProperty(i,t),l?Object.getOwnPropertyDescriptor(r,i):void 0})(n,a,e)}function I(n){return k({...n,state:true,attribute:false})}var Ro=[{endpoint:"chinese-astrology/calendar/day/{date}",method:"GET",attrs:{mode:"day"}},{endpoint:"chinese-astrology/calendar/monthly",method:"GET",attrs:{mode:"month"}},{endpoint:"chinese-astrology/calendar/auspicious-days",method:"POST",attrs:{mode:"auspicious"}}],Co=[{endpoint:"angel-numbers/numbers/{number}",method:"GET"},{endpoint:"angel-numbers/daily",method:"POST"}],To=[{endpoint:"angel-numbers/lookup",method:"GET"}],Eo=[{endpoint:"vedic-astrology/arudha",method:"POST"}],Ao=[{endpoint:"vedic-astrology/ashtakavarga",method:"POST"}],Do=[{endpoint:"astrology/aspects",method:"POST"},{endpoint:"astrology/transit-aspects",method:"POST"},{endpoint:"astrology/aspect-patterns",method:"POST"}],Po=[{endpoint:"astrology/astrocartography",method:"POST"}],_o=[{endpoint:"chinese-astrology/bazi/chart",method:"POST"}],Mo=[{endpoint:"vedic-astrology/bhav-chalit",method:"POST"}],No=[{endpoint:"vedic-astrology/bhava-bala",method:"POST"}],zo=[{endpoint:"biorhythm/daily",method:"POST",attrs:{mode:"daily"}},{endpoint:"biorhythm/forecast",method:"POST",attrs:{mode:"forecast"}},{endpoint:"biorhythm/critical-days",method:"POST",attrs:{mode:"critical-days"}}],Oo=[{endpoint:"human-design/bodygraph",method:"POST"}],Io=[{endpoint:"vedic-astrology/chara-karakas",method:"POST"}],Go=[{endpoint:"vedic-astrology/panchang/choghadiya",method:"POST"}],Fo=[{endpoint:"astrology/compatibility-score",method:"POST",attrs:{mode:"astrology"}},{endpoint:"numerology/compatibility",method:"POST",attrs:{mode:"numerology"}},{endpoint:"biorhythm/compatibility",method:"POST",attrs:{mode:"biorhythm"}}],Bo=[{endpoint:"numerology/compound-number/{number}",method:"GET"}],Ho=[{endpoint:"crystals/{id}",method:"GET"}],jo=[{endpoint:"crystals",method:"GET"},{endpoint:"crystals/chakra/{chakra}",method:"GET"},{endpoint:"crystals/element/{element}",method:"GET"},{endpoint:"crystals/zodiac/{sign}",method:"GET"},{endpoint:"crystals/birthstone/{month}",method:"GET"},{endpoint:"crystals/search",method:"GET"}],Ko=[{endpoint:"vedic-astrology/dasha/major",method:"POST",attrs:{period:"major"}},{endpoint:"vedic-astrology/dasha/current",method:"POST",attrs:{period:"current"}},{endpoint:"vedic-astrology/dasha/sub/{mahadasha}",method:"POST",attrs:{period:"sub"}},{endpoint:"vedic-astrology/dasha/sub/{mahadasha}/{antardasha}",method:"POST",attrs:{period:"antara"}},{endpoint:"vedic-astrology/dasha/sub/{mahadasha}/{antardasha}/{pratyantardasha}",method:"POST",attrs:{period:"sookshma"}},{endpoint:"vedic-astrology/dasha/sub/{mahadasha}/{antardasha}/{pratyantardasha}/{sookshma}",method:"POST",attrs:{period:"prana"}}],Uo=[{endpoint:"vedic-astrology/divisional-chart",method:"POST"},{endpoint:"vedic-astrology/navamsa",method:"POST"}],Vo=[{endpoint:"vedic-astrology/dosha/manglik",method:"POST",attrs:{type:"manglik"}},{endpoint:"vedic-astrology/dosha/kalsarpa",method:"POST",attrs:{type:"kalsarpa"}},{endpoint:"vedic-astrology/dosha/sadhesati",method:"POST",attrs:{type:"sadhesati"}}],qo=[{endpoint:"ayurveda/constitution",method:"POST"}],Yo=[{endpoint:"dreams/symbols/{id}",method:"GET"}],Wo=[{endpoint:"dreams/symbols",method:"GET"}],Zo=[{endpoint:"astrology/planets/monthly",method:"POST"},{endpoint:"vedic-astrology/planetary-positions/monthly",method:"POST"}],Xo=[{endpoint:"astrology/fixed-stars",method:"POST"}],Jo=[{endpoint:"feng-shui/flying-stars/natal",method:"POST",attrs:{mode:"natal"}},{endpoint:"feng-shui/flying-stars/annual/{year}",method:"GET",attrs:{mode:"annual"}}],Qo=[{endpoint:"forecast/digest",method:"POST"}],el=[{endpoint:"forecast/timeline",method:"POST"},{endpoint:"forecast/significant-dates",method:"POST"},{endpoint:"forecast/transits",method:"POST"}],tl=[{endpoint:"kabbalah/gematria",method:"POST"}],al=[{endpoint:"vedic-astrology/transit",method:"POST"}],rl=[{endpoint:"vedic-astrology/compatibility",method:"POST"}],sl=[{endpoint:"human-design/connection",method:"POST"}],nl=[{endpoint:"human-design/penta",method:"POST"}],il=[{endpoint:"human-design/type",method:"POST"},{endpoint:"human-design/profile",method:"POST"}],ol=[{endpoint:"human-design/variables",method:"POST"}],ll=[{endpoint:"vedic-astrology/heliacal",method:"POST"}],cl=[{endpoint:"iching/hexagrams/random",method:"GET"},{endpoint:"iching/hexagrams/{number}",method:"GET"},{endpoint:"iching/hexagrams/lookup",method:"GET"},{endpoint:"iching/cast",method:"GET"},{endpoint:"iching/daily",method:"POST"},{endpoint:"iching/daily/cast",method:"POST"}],dl=[{endpoint:"vedic-astrology/panchang/hora",method:"POST"}],pl=[{endpoint:"astrology/horoscope/{sign}/daily",method:"GET",attrs:{period:"daily"}},{endpoint:"astrology/horoscope/{sign}/weekly",method:"GET",attrs:{period:"weekly"}},{endpoint:"astrology/horoscope/{sign}/monthly",method:"GET",attrs:{period:"monthly"}},{endpoint:"astrology/horoscope/{sign}/yearly",method:"GET",attrs:{period:"yearly"}}],hl=[{endpoint:"vedic-astrology/kp/chart",method:"POST"}],ml=[{endpoint:"vedic-astrology/kp/daily-finance",method:"POST"}],gl=[{endpoint:"vedic-astrology/kp/planets",method:"POST"}],yl=[{endpoint:"vedic-astrology/kp/ruling-planets",method:"POST"}],ul=[{endpoint:"feng-shui/kua",method:"POST",attrs:{mode:"kua"}},{endpoint:"feng-shui/eight-mansions",method:"POST",attrs:{mode:"mansions"}}],fl=[{endpoint:"astrology/local-space",method:"POST"}],xl=[{endpoint:"chinese-astrology/bazi/luck-pillars",method:"POST"}],bl=[{endpoint:"mesoamerican-astrology/mayan/tzolkin",method:"POST",attrs:{mode:"day"}},{endpoint:"mesoamerican-astrology/mayan/chart",method:"POST",attrs:{mode:"chart"}}],vl=[{endpoint:"astrology/moon-phase/current",method:"GET",attrs:{mode:"current"}},{endpoint:"astrology/moon-phase/upcoming",method:"GET",attrs:{mode:"upcoming"}},{endpoint:"astrology/moon-phase/calendar/{year}/{month}",method:"GET",attrs:{mode:"calendar"}}],Ll=[{endpoint:"vedic-astrology/nakshatras/{id}",method:"GET"}],$l=[{endpoint:"astrology/natal-chart",method:"POST"}],wl=[{endpoint:"numerology/life-path",method:"POST",attrs:{type:"life-path"}},{endpoint:"numerology/expression",method:"POST",attrs:{type:"expression"}},{endpoint:"numerology/soul-urge",method:"POST",attrs:{type:"soul-urge"}},{endpoint:"numerology/personality",method:"POST",attrs:{type:"personality"}},{endpoint:"numerology/birth-day",method:"POST",attrs:{type:"birth-day"}},{endpoint:"numerology/maturity",method:"POST",attrs:{type:"maturity"}},{endpoint:"numerology/daily",method:"POST",attrs:{type:"daily"}},{endpoint:"numerology/personal-day",method:"POST",attrs:{type:"personal-day"}},{endpoint:"numerology/personal-month",method:"POST",attrs:{type:"personal-month"}},{endpoint:"numerology/personal-year",method:"POST",attrs:{type:"personal-year"}},{endpoint:"numerology/chart",method:"POST",attrs:{type:"chart"}}],kl=[{endpoint:"vedic-astrology/panchang/detailed",method:"POST",attrs:{detail:"detailed"}},{endpoint:"vedic-astrology/panchang/basic",method:"POST",attrs:{detail:"basic"}}],Sl=[{endpoint:"astrology/asteroids",method:"POST"},{endpoint:"astrology/lilith",method:"POST"},{endpoint:"astrology/progressions",method:"POST"},{endpoint:"astrology/solar-arc",method:"POST"},{endpoint:"astrology/arabic-lots",method:"POST"}],Rl=[{endpoint:"astrology/profections",method:"POST"}],Cl=[{endpoint:"astrology/signs/{id}",method:"GET"},{endpoint:"astrology/planet-meanings/{id}",method:"GET"},{endpoint:"vedic-astrology/rashis/{id}",method:"GET"},{endpoint:"iching/trigrams/{id}",method:"GET"},{endpoint:"human-design/gates/{number}",method:"GET"},{endpoint:"human-design/centers/{id}",method:"GET"},{endpoint:"numerology/meanings/{number}",method:"GET"},{endpoint:"vedic-astrology/avasthas/{id}",method:"GET"}],Tl=[{endpoint:"astrology/relocation-chart",method:"POST"}],El=[{endpoint:"reports/natal",method:"POST",attrs:{report:"natal"}},{endpoint:"reports/synastry",method:"POST",attrs:{report:"synastry"}},{endpoint:"reports/kundli",method:"POST",attrs:{report:"kundli"}},{endpoint:"reports/matchmaking",method:"POST",attrs:{report:"matchmaking"}},{endpoint:"reports/yearly-forecast",method:"POST",attrs:{report:"yearly-forecast"}},{endpoint:"reports/human-design",method:"POST",attrs:{report:"human-design"}},{endpoint:"reports/bazi",method:"POST",attrs:{report:"bazi"}},{endpoint:"reports/numerology",method:"POST",attrs:{report:"numerology"}},{endpoint:"reports/tarot",method:"POST",attrs:{report:"tarot"}}],Al=[{endpoint:"vedic-astrology/shadbala",method:"POST"}],Dl=[{endpoint:"astrology/synastry",method:"POST"}],Pl=[{endpoint:"tarot/daily",method:"POST"},{endpoint:"tarot/cards/{id}",method:"GET"}],_l=[{endpoint:"tarot/cards",method:"GET"}],Ml=[{endpoint:"tarot/spreads/three-card",method:"POST",attrs:{spread:"three-card"}},{endpoint:"tarot/spreads/celtic-cross",method:"POST",attrs:{spread:"celtic-cross"}},{endpoint:"tarot/spreads/love",method:"POST",attrs:{spread:"love"}},{endpoint:"tarot/spreads/career",method:"POST",attrs:{spread:"career"}},{endpoint:"tarot/spreads/custom",method:"POST",attrs:{spread:"custom"}},{endpoint:"tarot/yes-no",method:"POST",attrs:{spread:"yes-no"}},{endpoint:"tarot/draw",method:"POST",attrs:{spread:"draw"}}],Nl=[{endpoint:"astrology/transit-aspects",method:"POST"}],zl=[{endpoint:"astrology/transits",method:"POST"}],Ol=[{endpoint:"vedic-astrology/upagraha",method:"POST"}],Il=[{endpoint:"vastu/mandala",method:"POST",attrs:{mode:"mandala"}},{endpoint:"vastu/entrance",method:"POST",attrs:{mode:"entrance"}}],Gl=[{endpoint:"vedic-astrology/aspects",method:"POST"}],Fl=[{endpoint:"vedic-astrology/daily",method:"POST"}],Bl=[{endpoint:"vedic-astrology/birth-chart",method:"POST"}],Hl=[{endpoint:"vedic-astrology/birth-chart",method:"POST"}],jl=[{endpoint:"astrology/natal-chart",method:"POST"}],Kl=[{endpoint:"vedic-astrology/yoga",method:"GET"},{endpoint:"vedic-astrology/yoga/detect",method:"POST"},{endpoint:"vedic-astrology/yoga/{id}",method:"GET"}],Ul=[{endpoint:"chinese-astrology/zodiac/sign",method:"POST",attrs:{mode:"sign"}},{endpoint:"chinese-astrology/zodiac/animals/{id}",method:"GET",attrs:{mode:"animal"}},{endpoint:"chinese-astrology/zodiac/{id}/daily",method:"GET",attrs:{mode:"daily"}},{endpoint:"chinese-astrology/zodiac/compatibility/{sign1}/{sign2}",method:"GET",attrs:{mode:"compatibility"}}];var U=n=>n??o;var Vl=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Pr(n){if(n.lang)return n.lang;if(typeof document>"u")return;let a=n.closest?.("[lang]")?.getAttribute("lang");return a||document.documentElement.lang||void 0}function ql(n){return!n||n.toLowerCase().split("-")[0]==="en"}var uh={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Kn(n,a){let e=n.toLowerCase();return a.find(t=>t.toLowerCase()===e)}function ms(n,a=Vl){let e=Pr(n);if(!e)return;let t=Kn(e,a);if(t)return t;let r=e.toLowerCase().split("-"),i=r[0];if(i==="zh"){let l=r.find(c=>c==="hans"||c==="hant")??uh[r[1]??""];return l?Kn(`zh-${l}`,a):void 0}return Kn(i,a)}var Zl="symbols";var fh={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},Un='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Yl='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Wl='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',gs={"fraunces-jost":{name:"Fraunces with Jost",sans:Un,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:Un,display:Un},geist:{name:"Geist",sans:Yl,display:Yl},system:{name:"System",sans:Wl,display:Wl}};function Xl(n){let{sans:a,display:e}=gs[n];return Object.keys(fh).filter(t=>`${a} ${e}`.includes(`"${t}"`))}var Jl=["practitioner","eucalyptus","kiln","moonlit","celeste"];var sr="1.8.0";var xh=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,bh=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function ys(n,a){if(!a)return;let e=new URL(a);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let t=(xh.exec(e.pathname)??bh.exec(e.pathname))?.[1];if(t!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${n}/dist`:`${e.origin}${t}`}var wh={},vh="color-mix(in oklab, var(--roxy-accent) 70%, black)",Lh="var(--roxy-accent)",$h="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Vn=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function qn(n){if(!n||!Vn.test(n))return;let a=n.slice(1).toLowerCase();return`#${a.length===3?a.replace(/./g,"$&$&"):a}`}function us(n){return n!==void 0&&Object.hasOwn(gs,n)}function Ql(n){return Jl.includes(n)}function ec(n){let a=[];return n.brandColor&&Vn.test(n.brandColor)&&a.push(`--roxy-primary:${n.brandColor}`),n.brandAccent&&Vn.test(n.brandAccent)&&a.push(`--roxy-accent:${n.brandAccent}`,`--roxy-accent-ink:light-dark(${vh},${Lh})`,`--roxy-ring:${$h}`),a.join(";")}function tc(n,a){if(us(a))return a;let e=n.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let r=n.shadowRoot?.firstElementChild,i=r?.localName==="style"?r:null;i?.sheet&&(i.sheet.disabled=true);let l,c,d;try{let p=globalThis.getComputedStyle(n),h=m=>p.getPropertyValue(m).trim();l=h("--roxy-font-sans"),c=h("--roxy-font-display"),d=h("--roxy-font")}finally{i?.sheet&&(i.sheet.disabled=false)}if(!(l||c))return us(d)?d:void 0}function ac(n){let{sans:a,display:e}=gs[n];return`--roxy-font:${n};--roxy-font-sans:${a};--roxy-font-display:${e}`}var rc=ys(sr,globalThis.document?.currentScript?.src||wh.url);function sc(n,a){if(typeof document>"u"||a===void 0)return;let e=`roxy-ui-font-${n}`;if(document.getElementById(e))return;let t=document.createElement("link");t.id=e,t.rel="stylesheet",t.href=`${a}/styles/fonts/${n}.css`,document.head.append(t)}function nc(n,a=rc){Xl(n).length>0&&sc(n,a)}function ic(n=rc){sc(Zl,n)}var oc='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var fs="roxy-ui-tokens";function xs(){if(typeof document>"u")return null;let n=document.getElementById(fs);if(n)return n;let a=document.createElement("style");return a.id=fs,a.textContent=oc,document.head.prepend(a),a}function xe(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function D(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}function E(n){return n.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,a=>a.toUpperCase())}function _r(n){return(n??"").split(/\n\s*\n/).map(a=>a.trim()).filter(Boolean)}function bs(n){return typeof n=="string"&&/^https?:\/\//.test(n)}var lc="__ROXY_UI_I18N__";function Yn(){let n=globalThis,a=n[lc];if(a)return a;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[lc]=e,e}function Wn(n,a){return a?n.replace(/\{\{(\w+)\}\}/g,(e,t)=>t in a?String(a[t]??""):e):n}function vs(n,a,e){return Wn(Zn(n,a)??a,e)}function Zn(n,a){if(!n)return;let{catalogs:e}=Yn(),t=n.toLowerCase();return(e[t]??e[t.split("-")[0]])?.[xe(a)]}function cc(n){if(!n)return;let{fieldLabels:a}=Yn(),e=n.toLowerCase();return a[e]??a[e.split("-")[0]]}function nr(n,a){return cc(n)?.fields[a]}function dc(n,a,e){return cc(n)?.enums[`${a}.${e}`]}function pc(n){let{listeners:a}=Yn();return a.add(n),()=>{a.delete(n)}}var Ls=class{constructor(a){this.host=a,a.addController(this)}hostConnected(){this.unsubscribe=pc(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var Ot=class extends zt{constructor(){super();this.translator=(e,t)=>this.t(e,t);new Ls(this)}connectedCallback(){super.connectedCallback(),xs()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&ic()}fontDeclarations(e){let t=tc(this,e);return t?(nc(t),ac(t)):""}renderFontStyle(){let e=this.fontDeclarations();return e?s`<style>:host{${e}}</style>`:o}t(e,t){return vs(this.effectiveLang(),e,t)}effectiveLang(){return Pr(this)}};var hc=u`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function ce(n){return n?s`<span class="roxy-glyph" aria-hidden="true">${n}</span>`:o}var mc=u`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var kh=u`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,v=[kh,mc,hc];var Sh="__cols",Rh="__rows";function Ch(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function $s(n){if(Array.isArray(n)){let i=false,l=n.map(c=>{let d=$s(c);return d!==c&&(i=true),d});return i?l:n}if(!Ch(n))return n;let a=n[Sh],e=n[Rh];if(Array.isArray(a)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(i=>{let l={};return a.forEach((c,d)=>{l[c]=$s(i[d])}),l});let t=false,r={};for(let[i,l]of Object.entries(n)){let c=$s(l);c!==l&&(t=true),r[i]=c}return t?r:n}function Mr(n){return $s(n)}function gc(n,a){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([t,r])=>a[t]===r))??n[0]}var Th="pk_live_YOUR_KEY",yc={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function Va(n){if(n)return n===Th?yc.sample:n.startsWith("pk_")?void 0:yc.secret}function ir(n,a,e={}){e.warn&&console.warn(a.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:a.reason,message:a.message},bubbles:true,composed:true}))}var lr="https://roxyapi.com/api/v2";async function uc(n){return(await fc(n)).message}async function fc(n){try{let a=await n.json();if(a?.error){let e=a.code==="validation_error"&&Array.isArray(a.issues)?a.issues.filter(t=>typeof t.path=="string"&&typeof t.message=="string").map(t=>({path:t.path,message:t.message})):null;return{message:a.error,issues:e?.length?e:null,worded:true,...a.code?{code:a.code}:{}}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:false}}var ks={fromAttribute:n=>{if(n!=null){try{let a=JSON.parse(n);if(a&&typeof a=="object"&&!Array.isArray(a))return a}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},or=class extends Error{constructor(e,t=null,r=true,i,l){super(e);this.issues=t;this.worded=r;this.status=i;this.code=l}};function Xn(n){return n.submitUrl?void 0:Va(n.publishableKey)}function Jn(n){return!!(n.submitUrl||n.publishableKey&&!Xn(n))}async function It(n,a,e){let t=Xn(n);if(t)throw new or(t.message);let r=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:Eh(a,n.submitContext),signal:e}):await Ah(n,a,e);if(!r.ok){let i=await fc(r);throw new or(i.message,i.issues,i.worded,r.status,i.code)}return await r.json()}function Eh(n,a){return JSON.stringify(a?{...n,context:a}:n)}function Ah(n,a,e){let t=new URL(`${n.baseUrl??lr}${a.path}`,document.baseURI);for(let[i,l]of Object.entries(a.query??{}))l!=null&&t.searchParams.set(i,String(l));let r={Accept:"application/json"};return n.publishableKey&&(r["X-API-Key"]=n.publishableKey),a.body!=null&&(r["Content-Type"]="application/json"),fetch(t,{method:a.method??"GET",headers:r,body:a.body!=null?JSON.stringify(a.body):void 0,signal:e})}var ws=class{constructor(a){this.baseUrl=lr;this.worded=true;this.failure={};this.host=a,a.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(a){this.worded=true,this.failure={};let e=Xn(this);if(e){this.host.error=e.message,ir(this.host,e);return}this.abort?.abort();let t=new AbortController;this.abort=t,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let r=await It(this,a,t.signal);if(t.signal.aborted)return;this.host.data=r}catch(r){if(t.signal.aborted||r?.name==="AbortError")return;r instanceof or&&(this.host.issues=r.issues,this.failure={status:r.status,code:r.code}),this.worded=r instanceof or&&r.worded,this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===t&&(this.abort=void 0),t.signal.aborted||(this.host.loading=false)}}};function xc(n,a,e,t=[]){let r={...e},i=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,h)=>{let m=r[h];return delete r[h],encodeURIComponent(String(m??""))}),l=new Set(t),c={},d={};for(let[p,h]of Object.entries(r))h===void 0||h===""||(a==="GET"||l.has(p)?c[p]=h:d[p]=h);return{path:i,method:a,query:c,body:a==="POST"?d:void 0}}function V(){return s`<svg class="roxy-chevron" viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M4 6l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`}var O=u`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var H=u`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function rt(n){return n?.length?s`<div class="interp-keywords roxy-chips">${n.map(a=>s`<span class="roxy-chip">${a}</span>`)}</div>`:o}function Nr(n,a){if(!n)return o;let e=(t,r)=>r?s`<p><strong>${a(t)}</strong> ${r}</p>`:o;return s`${n.summary?s`<p>${n.summary}</p>`:o} ${e("Impact:",n.impact)}${e("Timing:",n.timing)}${e("Guidance:",n.guidance)} ${rt(n.keywords)}`}function bc(n,a,e,t=false){let r=n.filter(i=>!!i.body);return r.length===0?o:s`<section class="block" part="section readings"><h3>${e}</h3>${r.map((i,l)=>s`<details class="interp-card" part="reading" name="${a}" ?open="${l===0&&!t}"><summary><span class="interp-lead">${ce(i.glyph)} ${i.label}</span> ${V()} ${i.aside?s`<span class="interp-aside"><small>${i.aside}</small></span>`:o}</summary><div class="interp-body"><p>${i.body}</p>${i.extra??o}</div></details>`)}</section>`}var vc="roxy-data";function Qn(n){return JSON.stringify(n).replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function Lc(n){return`<script type="application/json" class="${vc}">${Qn(n)}<\/script>`}function Dh(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var Ss=class{constructor(a){this.host=a,a.addController(this)}hostConnected(){if(this.host.data!=null)return;let a=this.read();a!==void 0&&(this.host.data=a,this.host.requestUpdate())}read(){let a=this.findInlineScript();return a?this.parse(a.textContent):void 0}findInlineScript(){for(let a of Array.from(this.host.children))if(Dh(a)&&a.classList.contains(vc))return a;return null}parse(a){if(a?.trim())try{return JSON.parse(a)}catch{return}}};var f=class extends Ot{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,t=this.listKey,r=this.listRows();if(!(!e||!t||!r)){this.moreLoading=true,this.moreError=null;try{let i=await It(this.fetcher,{...e,query:{...e.query,offset:r.length}});if(this.lastRequest!==e)return;let l=i[t];this.data={...this.data,...i,[t]:[...r,...Array.isArray(l)?l:[]]}}catch(i){this.lastRequest===e&&(this.moreError=i instanceof Error?i.message:String(i))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let t=this.selfFetch();if(!t)return;let r=e.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(r.values),this.fetchFresh(xc(t.endpoint,t.method,{...r.values,...this.ownRequest()},r.queryKeys??[]))};new Ss(this),this.fetcher=new ws(this)}static{this.styles=[v]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let t=Mr(this.data);t!==this.data&&(this.data=t)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:gc(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return s`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(t){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,t),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:t},bubbles:true,composed:true})),customElements.get("roxy-data")?s`<roxy-data .data="${e}" lang="${U(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^[a-z][a-z0-9-]*$/.test(i)),t=[ec(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!t)return o;let r=(t?`:host{${t}}`:"")+e.map(i=>`[part~="${i}"],roxy-endpoint-form::part(${i}){display:none!important}`).join("");return s`<style>${r}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?s`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,t,r,i=false){return this.hideReadings?o:bc(e,t,this.t(r??"Reading"),i)}renderResult(e){let t=s`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?s`${t}${this.renderAttribution()}`:t}renderWithForm(e){return s`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?o:this.renderErrorBanner(this.error):this.data==null?o:this.showAttribution()?s`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),t=this.data?.total;return!this.lastRequest||!e||typeof t!="number"?o:e.length>=t?o:s`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?s`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:o}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let t=this.openedRow??document.createElement(this.rowDetail.tag);t.publishableKey=this.publishableKey,t.baseUrl=this.baseUrl,t.submitUrl=this.submitUrl,t.submitContext=this.submitContext,t.hideReadings=this.hideReadings,t.hideSections=this.hideSections;let r=this.effectiveLang();r&&t.setAttribute("lang",r),this.openedRow=t,this.openedRowId=e,t.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:ms(this)}}).then(()=>t.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return s`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(o):this.renderEmpty()}renderForm(){let e=this.selfFetch();return s`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${U(this.specUrl)}" publishable-key="${U(this.publishableKey)}" location-url="${U(this.locationUrl)}" submit-label="${U(this.submitLabel)}" lang="${U(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return s`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return s`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let t=!!this.selfFetch();if(t&&this.issues)return this.renderForm();let r=this.renderErrorBanner(e);return t?s`${r}${this.renderForm()}`:r}renderErrorBanner(e){return s`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};y([k({attribute:false})],f.prototype,"data",2),y([k({type:String,attribute:"data-endpoint"})],f.prototype,"endpoint",2),y([k({type:String})],f.prototype,"method",2),y([k({type:String,attribute:"publishable-key"})],f.prototype,"publishableKey",2),y([k({type:String,attribute:"base-url"})],f.prototype,"baseUrl",2),y([k({type:String,attribute:"spec-url"})],f.prototype,"specUrl",2),y([k({type:String,attribute:"submit-url"})],f.prototype,"submitUrl",2),y([k({attribute:"submit-context",converter:ks})],f.prototype,"submitContext",2),y([k({type:String,attribute:"location-url"})],f.prototype,"locationUrl",2),y([k({type:Boolean})],f.prototype,"remember",2),y([k({type:Boolean,attribute:"hide-readings",reflect:true})],f.prototype,"hideReadings",2),y([k({type:String,attribute:"hide-sections",reflect:true})],f.prototype,"hideSections",2),y([k({type:String,attribute:"brand-color"})],f.prototype,"brandColor",2),y([k({type:String,attribute:"brand-accent"})],f.prototype,"brandAccent",2),y([k({type:String})],f.prototype,"font",2),y([k({type:String})],f.prototype,"hemisphere",2),y([k({type:String,attribute:"submit-label"})],f.prototype,"submitLabel",2),y([k({type:String,attribute:"error-message"})],f.prototype,"errorMessage",2),y([k({type:String})],f.prototype,"attribution",2),y([I()],f.prototype,"loading",2),y([I()],f.prototype,"error",2),y([I()],f.prototype,"issues",2),y([I()],f.prototype,"selfFetched",2),y([I()],f.prototype,"editing",2),y([I()],f.prototype,"sticky",2),y([I()],f.prototype,"openedRow",2),y([I()],f.prototype,"openedRowId",2),y([I()],f.prototype,"moreLoading",2),y([I()],f.prototype,"moreError",2);var L=n=>a=>{customElements.get(n)||customElements.define(n,a)};var Rs=/^\d{4}-\d{2}-\d{2}$/,Ph=/^\d{4}-\d{2}$/,kc=/^\d{2}:\d{2}(:\d{2})?$/,_h=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,$c=new Map;function be(n){if(!n)return["en"];let a=$c.get(n);if(a)return[a,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return $c.set(n,e),[e,"en"]}var wc=new Map;function Cs(n){let a=n??"",e=wc.get(a);if(e)return e;let r={hour:new Intl.DateTimeFormat(be(n),{timeStyle:"short",timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2e3,0,1,1))).find(i=>i.type==="hour")?.value?.length===2?"2-digit":"numeric",minute:"2-digit"};return wc.set(a,r),r}function zr(n,a){return n&&a?`${n} - ${a}`:n||a}function Ya(n){let a=kc.test(n)?`1970-01-01T${n}`:Rs.test(n)?`${n}T00:00:00`:Ph.test(n)?`${n}-01T00:00:00`:_h.test(n)?n.replace(" ","T"):null;return a?{d:new Date(`${a}Z`),timeZone:"UTC"}:{d:new Date(n)}}var Mh=/^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)(?:Z|[+-]\d{2}:?\d{2})$/;function cr(n){return n?.match(Mh)?.[1]??n}function Te(n,a){if(typeof a!="string"||a.length===0||Rs.test(a))return"";let{d:e,timeZone:t}=Ya(a);return Number.isNaN(e.getTime())?a:e.toLocaleTimeString(be(n),{...Cs(n),timeZone:t})}function A(n,a){if(typeof a!="string"||a.length===0)return"";let{d:e,timeZone:t}=Ya(a);return Number.isNaN(e.getTime())?a:e.toLocaleDateString(be(n),{month:"short",day:"numeric",year:"numeric",timeZone:t})}function Ke(n,a){return a?zr(Te(n,a.start),Te(n,a.end)):""}function ve(n,a,e){return zr(A(n,a),A(n,e))}function Gt(n,a,e){if(typeof a!="string"||a.length===0)return"";if(e==="year")return a.match(/^(\d{4})/)?.[1]??a;let{d:t,timeZone:r}=Ya(a);return Number.isNaN(t.getTime())?a:t.toLocaleString(be(n),{day:e==="month"?void 0:"numeric",month:"short",year:"numeric",...e==="time"?Cs(n):{},timeZone:r})}function Sc(n,a,e,t){return zr(Gt(n,a,t),Gt(n,e,t))}function qa(n,a){if(typeof a!="string"||a.length===0)return"";let{d:e,timeZone:t}=Ya(a);return Number.isNaN(e.getTime())?a:e.toLocaleDateString(be(n),{month:"short",day:"numeric",timeZone:t})}function Rc(n,a,e){let t=qa(n,a),r=qa(n,e);return t===r?t:zr(t,r)}function Cc(n,a){if(typeof a!="string"||a.length===0)return"";let{d:e,timeZone:t}=Ya(a);return Number.isNaN(e.getTime())?a:e.toLocaleDateString(be(n),{weekday:"short",day:"numeric",timeZone:t})}function dr(n,a,e){return typeof a!="number"||!Number.isFinite(a)||typeof e!="number"||!Number.isInteger(e)||e<1||e>12?"":new Date(Date.UTC(a,e-1,1,12)).toLocaleDateString(be(n),{month:"long",year:"numeric",timeZone:"UTC"})}function Ts(n,a){return typeof a!="number"||!Number.isInteger(a)||a<1||a>12?"":new Date(Date.UTC(2e3,a-1,1,12)).toLocaleDateString(be(n),{month:"long",timeZone:"UTC"})}function N(n,a){return typeof a!="number"||!Number.isFinite(a)?"":a.toLocaleString(be(n),{maximumFractionDigits:0})}function me(n,a){let e=a.filter(Boolean);return e.length<2?e[0]??"":new Intl.ListFormat(be(n),{style:"long",type:"conjunction"}).format(e)}function $(n,a,e=1){return typeof a!="number"||!Number.isFinite(a)?"":a.toLocaleString(be(n),{maximumFractionDigits:e})}function te(n,a,e=1){return typeof a!="number"||!Number.isFinite(a)?"":(a/100).toLocaleString(be(n),{style:"percent",maximumFractionDigits:e})}function we(n){return(n.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}function se(n){return D(we(n))}var Nh={"kp-newcomb":"KP Newcomb","kp-old":"KP Old",lahiri:"Lahiri",raman:"B.V. Raman",custom:"Custom"};function Wa(n,a,e){let t=typeof a=="string"?Nh[a]??E(a):"",r=typeof e=="number"?`${$(n,e,2)}\xB0`:"";return t&&r?`${t} (${r})`:t||r}function Y(n,a,e,t=false){let r=typeof a=="string"&&Rs.test(a)&&typeof e=="string"&&kc.test(e)?`${a}T${e}`:a;if(typeof r!="string"||r.length===0)return"";if(Rs.test(r))return A(n,r);let{d:i,timeZone:l}=Ya(r);return Number.isNaN(i.getTime())?r:i.toLocaleString(be(n),{month:"short",day:"numeric",year:"numeric",...Cs(n),...t?{second:"2-digit"}:{},timeZone:l})}function pr(n,a,e){return zr(Y(n,a),Y(n,e))}function Tc(n,a){if(typeof a!="string"||a.length===0)return"";let{d:e}=Ya(a);return Number.isNaN(e.getTime())?a:e.toLocaleString(be(n),{month:"short",day:"numeric",year:"numeric",...Cs(n),timeZone:"UTC",timeZoneName:"short"})}function Ec(){try{return new Intl.DateTimeFormat(be(void 0)).resolvedOptions().timeZone}catch{return}}function ei(n,a){if(!(typeof a!="string"||!a))return a===n?void 0:a}function Or(n,a){let e=typeof n=="string"?n:"",t=ei(e,a);return e?t?`${e} (${t})`:e:t??""}function X(n,a,e){return nr(n,a)??e??E(a)}function j(n,a,e,t){return dc(n,a,e)??t??E(e)}var Es="Localized";function x(n,a,e){let t=n,r=t?.[`${a}${Es}`];if(typeof r=="string"&&r!=="")return r;if(e!==void 0)return e;let i=t?.[a];return typeof i=="string"?i:""}function As(n,a){let e=n,t=e?.[a];if(!Array.isArray(t))return[];let r=e?.[`${a}${Es}`],i=Array.isArray(r)?r:[];return t.map((l,c)=>{let d=i[c];return{value:String(l),label:typeof d=="string"&&d!==""?d:String(l)}})}function hr(n){let a;for(let e of Object.keys(n)){if(!e.endsWith(Es))continue;let t=e.slice(0,-Es.length);if(t===""||!(t in n))continue;a??={...n};let r=n[e];r!=null&&r!==""&&(a[t]=r),delete a[e]}return a??n}var Ue="http://www.w3.org/2000/svg",Ds=class{constructor(a){this.markup=a}};function zh(n){return String(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function ti(n){return n==null?"":n instanceof Ds?n.markup:typeof n=="string"||typeof n=="number"?zh(n):n.map(ti).join("")}function T(n,...a){let e=n[0]??"";return a.forEach((t,r)=>{e+=e.endsWith("=")?`"${ti(t)}"`:ti(t),e+=n[r+1]??""}),new Ds(e)}function Ve(n){return(a,e)=>vs(n,a,e)}var Oh=24,mr=29.530588853,Ih=Date.UTC(2e3,0,6,18,14),Gh=864e5,Fh=n=>(1-Math.cos(n*Math.PI/180))/2*100,Dc=n=>({illumination:Fh(n),waxing:n<180});function Ir(n){if(!(typeof n!="number"||!Number.isInteger(n)||n<1||n>30))return Dc(12*(n-.5))}function Pc(n){let a=Date.parse(`${n}T12:00:00Z`);return!n||Number.isNaN(a)?void 0:((a-Ih)/Gh%mr+mr)%mr/mr*360}function si(n){let a=Pc(n);return a===void 0?void 0:a<180}function _c(n){let a=Pc(n);return a===void 0?void 0:Dc(Math.round(a/90)%4*90)}function Bh(n){let a=n;return()=>(a=(a*9301+49297)%233280,a/233280)}function Mc(n,a,e,t,r,i){let c=Bh(i),d=Math.cos(r),p=Math.sin(r),h=Array.from({length:14},(w,S)=>{let R=S/14*Math.PI*2,_=.9+c()*.16,q=Math.cos(R)*e*_,le=Math.sin(R)*t*_;return[n+q*d-le*p,a+q*p+le*d]}),m=w=>h[(w+14)%14],g=w=>w.toFixed(3),b=`M${g(m(0)[0])} ${g(m(0)[1])}`;for(let w=0;w<14;w++){let[S,R,_,q]=[m(w-1),m(w),m(w+1),m(w+2)];b+=`C${g(R[0]+(_[0]-S[0])/6)} ${g(R[1]+(_[1]-S[1])/6)} ${g(_[0]-(q[0]-R[0])/6)} ${g(_[1]-(q[1]-R[1])/6)} ${g(_[0])} ${g(_[1])}`}return`${b}Z`}var Nc=[[-.36,-.42,.27,.21,.3,11],[-.6,-.02,.2,.42,.15,23],[.04,-.44,.16,.15,0,37],[.26,-.14,.2,.16,-.4,41],[.66,-.34,.1,.08,.2,53],[.52,.12,.11,.17,.1,67],[-.24,.36,.18,.12,-.2,71],[-.52,.34,.08,.08,0,83],[.33,.26,.07,.07,0,97],[-.08,-.12,.12,.08,.5,101]],ai=Nc.map(([n,a,e,t,r,i])=>Mc(n,a,e,t,r,i)).join(""),zc=T`<circle class="moon-limb moon-limb-1" r="0.95"></circle><circle class="moon-limb moon-limb-2" r="0.985"></circle>`,Hh=Nc.map(([n,a,e,t,r,i])=>Mc(n,a,e*1.22,t*1.22,r,i+3)).join("");function ri(n,a){let e=Math.abs(1-2*n).toFixed(4),t=n<.5;return a?`M0 -1A1 1 0 0 1 0 1A${e} 1 0 0 ${t?0:1} 0 -1Z`:`M0 -1A1 1 0 0 0 0 1A${e} 1 0 0 ${t?1:0} 0 -1Z`}var Ac=.004;function jh(n,a,e,t){let r=a>Ac,i=t&&r&&a<1-Ac?[.012,.006].map((l,c)=>T`<path class="moon-soft moon-soft-${c+1}" d=${ri(Math.min(1,a+l),e)}></path>`):[];return T`<circle class="moon-shade" r="1"></circle>${t?T`<path class="moon-earthshine" d=${ai} clip-path=${`url(#${n}-disc)`}></path>`:""}${i}${r?T`<path class="moon-lit" d=${ri(a,e)}></path>`:""}${t&&r?T`<g clip-path=${`url(#${n}-lit)`}><path class="moon-halo" d=${Hh}></path><path class="moon-mare" d=${ai}></path><circle class="moon-crater" cx="-0.16" cy="0.72" r="0.035"></circle>${zc}</g>`:""}`}function Kh(n,a,e){return a==="solar"?T`<circle class="moon-corona" r="1.1"></circle><circle class="moon-corona moon-corona-outer" r="1.18"></circle><circle class="moon-shade" r="1"></circle>`:T`<circle class="moon-copper" r="1"></circle>${e?T`<path class="moon-copper-mare" d=${ai} clip-path=${`url(#${n}-disc)`}></path><g class="moon-copper-limb">${zc}</g>`:""}`}function Uh(n,a){let e=Ve(n.lang);if(n.eclipse==="lunar")return e("Lunar eclipse");if(n.eclipse==="solar")return e("Solar eclipse");let t=n.lang,r=te(t,a,0);return n.waxing?e("{{percent}} illuminated, waxing",{percent:r}):e("{{percent}} illuminated, waning",{percent:r})}function Oc(n){let a=Math.min(1,Math.max(0,n.illumination/100)),e=n.size>=Oh,t=`roxy-moon-${Math.round(a*1e4)}${n.waxing?"x":"n"}${n.eclipse??""}${e?"d":""}`,r=[e?T`<clipPath id=${`${t}-disc`}><circle r="1"></circle></clipPath>`:"",e&&!n.eclipse?T`<clipPath id=${`${t}-lit`}><path d=${ri(a,n.waxing)}></path></clipPath>`:""],i=n.eclipse?Kh(t,n.eclipse,e):jh(t,a,n.waxing,e);return T`<svg xmlns=${Ue} class="roxy-moon" viewBox="-1.2 -1.2 2.4 2.4" width=${n.size} height=${n.size} role="img" aria-label=${Uh(n,a*100)}><defs>${r}</defs>${n.hemisphere==="south"?T`<g transform="rotate(180)">`:T`<g>`}${i}<circle class=${e?"moon-rim":"moon-rim moon-rim-small"} r="1"></circle></g></svg>`.markup}var st={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ps=n=>(...a)=>({_$litDirective$:n,values:a}),gr=class{constructor(a){}get _$AU(){return this._$AM._$AU}_$AT(a,e,t){this._$Ct=a,this._$AM=e,this._$Ci=t}_$AS(a,e){return this.update(a,e)}update(a,e){return this.render(...e)}};var Gr=class extends gr{constructor(a){if(super(a),this.it=o,a.type!==st.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(a){if(a===o||a==null)return this._t=void 0,this.it=a;if(a===$e)return a;if(typeof a!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(a===this.it)return this._t;this.it=a;let e=[a];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Gr.directiveName="unsafeHTML",Gr.resultType=1;var ke=Ps(Gr);var Ic=u`:where(.natal-wheel) .wheel-line,:where(.natal-wheel) .tick{fill:none;stroke:var(--roxy-border)}:where(.natal-wheel) .tick-major{stroke:var(--roxy-secondary)}:where(.natal-wheel) .sign-glyph{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}:where(.natal-wheel) .planet-glyph{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold)}:where(.natal-wheel) .planet-deg{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .4375)}:where(.natal-wheel) .planet-deg .retro{fill:var(--roxy-danger-fg)}:where(.natal-wheel) .planet-leader{stroke:var(--roxy-accent);stroke-width:.5px;opacity:.55}:where(.natal-wheel) .house-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .5625)}:where(.natal-wheel) .cusp-deg{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .375)}:where(.natal-wheel) .angle-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold)}:where(.natal-wheel) .angle-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}@container (width<=480px){:where(.natal-wheel) .sign-glyph,:where(.natal-wheel) .planet-glyph{font-size:calc(var(--roxy-text-base) * 1.5)}:where(.natal-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .8125)}:where(.natal-wheel) .house-num{font-size:calc(var(--roxy-text-base) * .75)}}`,Gc=u`:where(.synastry-wheel) .wheel-line{fill:none;stroke:var(--roxy-border)}:where(.synastry-wheel) .p1{--_person:var(--roxy-accent-ink)}:where(.synastry-wheel) .p2{--_person:var(--roxy-fg)}:where(.synastry-wheel) .sign{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}:where(.synastry-wheel) text.p1,:where(.synastry-wheel) text.p2{fill:var(--_person);font-size:calc(var(--roxy-text-base) * 1.125);font-weight:var(--roxy-weight-bold)}:where(.synastry-wheel) .person-tag,:where(.synastry-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .625)}:where(.synastry-wheel) .planet-deg{fill:var(--roxy-muted)}:where(.synastry-wheel) .planet-deg .retro{fill:var(--roxy-danger-fg)}:where(.synastry-wheel) .leader{stroke:var(--_person);stroke-width:.5px;opacity:.7}@container (width<=480px){:where(.synastry-wheel) .sign,:where(.synastry-wheel) text.p1,:where(.synastry-wheel) text.p2{font-size:calc(var(--roxy-text-base) * 1.75)}:where(.synastry-wheel) .person-tag,:where(.synastry-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .9375)}}:where(.synastry-wheel) .asc-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}:where(.synastry-wheel) .asc-label{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .5625);font-weight:var(--roxy-weight-bold)}`,_s=u`:where(.kundli) .line{fill:#0000;stroke:var(--roxy-border)}:where(.kundli) .sign-text{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans);text-transform:uppercase}:where(.kundli) .rashi-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .75);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans)}:where(.kundli) .house-num{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .planet-text{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .centre-label{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .lagna-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans);text-transform:uppercase}:where(.kundli) .lagna-bg{fill:color-mix(in srgb, var(--roxy-accent) 14%, transparent)}:where(.kundli) .lagna-slash{stroke:var(--roxy-accent);stroke-linecap:round;opacity:.7}`,Ms=u`:where(.bodygraph) .bg-body{fill:color-mix(in srgb, var(--roxy-secondary) 8%, transparent);stroke:var(--roxy-border);stroke-width:1px}:where(.bodygraph) .bg-channel{stroke:var(--roxy-border);stroke-width:5px;stroke-linecap:round}:where(.bodygraph) .bg-half{stroke-width:5px;stroke-linecap:round}:where(.bodygraph) .bg-half.stripe{stroke-linecap:butt;stroke-dasharray:7 7}:where(.bodygraph) .bg-center{fill:var(--_mask,var(--roxy-bg));stroke:var(--roxy-secondary);stroke-width:1.8px}:where(.bodygraph) .bg-center.defined{stroke:color-mix(in srgb, var(--roxy-fg) 45%, transparent)}:where(.bodygraph){--_gold:color-mix(in oklch, var(--roxy-warning) 60%, var(--roxy-success));--_gold-ink:color-mix(in oklch, var(--roxy-warning-fg) 60%, var(--roxy-success-fg));--_center-gold:light-dark(color-mix(in oklab, var(--_gold) 40%, var(--roxy-bg)),color-mix(in oklab, var(--_gold) 50%, var(--_gold-ink)));--_center-green:light-dark(color-mix(in oklab, var(--roxy-success) 40%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-success) 50%, var(--roxy-success-fg)));--_center-red:light-dark(color-mix(in oklab, var(--roxy-danger) 40%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-danger) 50%, var(--roxy-danger-fg)));--_center-brown:light-dark(color-mix(in oklab, color-mix(in oklab, var(--roxy-warning-fg) 75%, var(--roxy-fg)) 45%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-warning-fg) 50%, var(--roxy-secondary)))}:where(.bodygraph) .bg-center.bg-gold.defined,:where(.bodygraph) .legend .swatch.bg-gold{fill:var(--_center-gold);background:var(--_center-gold)}:where(.bodygraph) .bg-center.bg-green.defined,:where(.bodygraph) .legend .swatch.bg-green{fill:var(--_center-green);background:var(--_center-green)}:where(.bodygraph) .bg-center.bg-red.defined,:where(.bodygraph) .legend .swatch.bg-red{fill:var(--_center-red);background:var(--_center-red)}:where(.bodygraph) .bg-center.bg-brown.defined,:where(.bodygraph) .legend .swatch.bg-brown{fill:var(--_center-brown);background:var(--_center-brown)}:where(.bodygraph) .bg-gate-dot{fill:var(--_mask,var(--roxy-bg));stroke:var(--roxy-border);stroke-width:1px}:where(.bodygraph) .bg-gate-dot.on{stroke:var(--_mask,var(--roxy-bg))}:where(.bodygraph) .bg-center-name{color:var(--roxy-muted);fill:currentColor;font-weight:var(--roxy-weight-bold);text-transform:uppercase;pointer-events:none}:where(.bodygraph) .bg-center-name.defined{color:light-dark(var(--roxy-fg),var(--roxy-bg))}:where(.bodygraph) .bg-gate{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .50625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.bodygraph) .bg-gate.on{fill:var(--src-ink,var(--_mask,var(--roxy-bg)))}:where(.bodygraph) .bg-half.src-left{stroke:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .bg-half.src-right{stroke:var(--src-right,var(--roxy-fg))}:where(.bodygraph) .bg-gate-dot.on.src-left{fill:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .bg-gate-dot.on.src-right{fill:var(--src-right,var(--roxy-fg))}:where(.bodygraph) .legend .swatch.src-left{background:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .legend .swatch.src-right{background:var(--src-right,var(--roxy-fg))}`,Fc=u`:where(.roxy-moon) .moon-shade{fill:var(--roxy-moon-shade)}:where(.roxy-moon) .moon-earthshine{fill:var(--roxy-moon-lit);opacity:.05}:where(.roxy-moon) .moon-soft{fill:var(--roxy-moon-lit)}:where(.roxy-moon) .moon-soft-1{opacity:.18}:where(.roxy-moon) .moon-soft-2{opacity:.34}:where(.roxy-moon) .moon-lit{fill:var(--roxy-moon-lit)}:where(.roxy-moon) .moon-limb{fill:none;stroke:var(--roxy-moon-mare)}:where(.roxy-moon) .moon-limb-1{stroke-width:.1px;opacity:.18}:where(.roxy-moon) .moon-limb-2{stroke-width:.03px;opacity:.3}:where(.roxy-moon) .moon-halo{fill:var(--roxy-moon-mare);opacity:.22}:where(.roxy-moon) .moon-mare{fill:var(--roxy-moon-mare);opacity:.38}:where(.roxy-moon) .moon-crater{fill:none;stroke:var(--roxy-moon-mare);stroke-width:.012px}:where(.roxy-moon) .moon-copper{fill:var(--roxy-moon-eclipse)}:where(.roxy-moon) .moon-copper-limb .moon-limb{stroke:var(--roxy-moon-shade)}:where(.roxy-moon) .moon-copper-mare{fill:var(--roxy-moon-shade);opacity:.3}:where(.roxy-moon) .moon-corona{fill:none;stroke:var(--roxy-moon-corona);stroke-width:.05px}:where(.roxy-moon) .moon-corona-outer{stroke-width:.02px;opacity:.45}:where(.roxy-moon) .moon-rim{fill:none;stroke:var(--roxy-moon-rim);stroke-width:.012px}:where(.roxy-moon) .moon-rim-small{stroke-width:.04px}`;var Ft=[Fc,u`.moon-mark{vertical-align:middle;flex-shrink:0;display:inline-flex}`];function Ge(n,a,e,t){return s`<span class="moon-mark">${ke(Oc({...a,size:e,eclipse:t,hemisphere:n.hemisphere,lang:Pr(n)}))}</span>`}var Vh=28,qh=20;function Bc(n){return!("days"in n)}var nt=class extends f{constructor(){super(...arguments);this.mode="day"}renderData(e){let t=this.effectiveLang();return this.mode==="day"&&Bc(e)?s`<article class="card" part="card" aria-labelledby="almanac-title">${this.renderDayCard(e,t)}</article>`:Bc(e)?o:s`<article class="card" part="card" aria-labelledby="almanac-title"><header class="head" part="header"><h2 class="title" id="almanac-title">${"activityLabel"in e&&e.activityLabel?e.activityLabel:this.t("Almanac")}</h2>${"startDate"in e&&e.startDate?s`<span class="lunar">${ve(t,e.startDate,e.endDate)}</span>`:o} ${"year"in e&&typeof e.year=="number"?s`<span class="lunar">${dr(t,e.year,e.month)||e.year}</span>`:o} ${typeof e.total=="number"?s`<span class="lunar">${this.t("{{count}} days",{count:N(t,e.total)})}</span>`:o}</header>${"avoidAnimal"in e&&e.avoidAnimal?s`<div class="facts" part="details"><span><span class="roxy-label">${this.t("Avoiding")}</span><b>${E(x(e,"avoidAnimal"))}</b></span></div>`:o} ${this.renderSolarTerms(e,t)}<section part="section days"><ul class="days">${(e.days??[]).map(r=>this.renderDayRow(r,t))}</ul></section></article>`}renderDayCard(e,t){let r=e.dayOfficer,i=Ir(e.lunar?.day);return s`<header class="head" part="header"><h2 class="title" id="almanac-title">${A(t,e.date)}</h2>${e.lunar?s`<span class="lunar">${i?Ge(this,i,Vh):o}${e.lunar.isLeapMonth?this.t("Lunar {{month}}/{{day}} (leap)",{month:String(e.lunar.month??""),day:String(e.lunar.day??"")}):this.t("Lunar {{month}}/{{day}}",{month:String(e.lunar.month??""),day:String(e.lunar.day??"")})}</span>`:o} ${r?.name?s`<span class="roxy-chip tag tag-${r.quality??"neutral"}">${x(r,"name")} <span lang="zh">${r.chinese??""}</span></span>`:o}</header>${this.renderPillars(e)} ${this.renderLists(e,t)} ${r?.meaning&&!this.hideReadings?s`<p class="meaning" part="reading">${r.meaning}</p>`:o} ${this.renderMansion(e)}`}renderPillars(e){let r=[["Year",e.yearPillar],["Month",e.monthPillar],["Day",e.dayPillar]].filter(([,i])=>i?.chinese||i?.stem);return r.length===0&&!e.clashAnimal?o:s`<div class="facts" part="details">${r.map(([i,l])=>s`<span><span class="roxy-label">${this.t(i)}</span> <b lang="zh">${l?.chinese??""}</b> ${l?.naYin??""}</span>`)} ${e.clashAnimal?s`<span><span class="roxy-label">${this.t("Clash")}</span><b>${x(e,"clashAnimal")}</b></span>`:o}</div>`}renderLists(e,t){let r=e.favours??[],i=e.avoids??[];return r.length===0&&i.length===0?o:s`<div class="lists" part="section activities">${r.length?s`<div class="list"><h3>${this.t("Favours")}</h3><div class="roxy-chips chips-favour">${r.map(l=>s`<span class="roxy-chip">${j(t,"activity",l)}</span>`)}</div></div>`:o} ${i.length?s`<div class="list"><h3>${this.t("Avoids")}</h3><div class="roxy-chips chips-avoid">${i.map(l=>s`<span class="roxy-chip">${j(t,"activity",l)}</span>`)}</div></div>`:o}</div>`}renderMansion(e){let t=e.mansion;return t?.name?s`<div class="facts" part="details"><span><span class="roxy-label">${this.t("Mansion")}</span><b>${x(t,"name")}</b> <span lang="zh">${t.chinese??""}</span></span> ${t.palace?s`<span>${E(t.palace)}</span>`:o} ${t.planet?s`<span>${t.planet}</span>`:o} ${t.animal?s`<span>${x(t,"animal")}</span>`:o}</div>`:o}renderSolarTerms(e,t){let r="solarTerms"in e?e.solarTerms??[]:[];return r.length===0?o:s`<div class="terms" part="details">${r.map(i=>s`<span>${qa(t,i.date)} ${i.name??""}</span>`)}</div>`}renderDayRow(e,t){let r=e.dayOfficer,i=e.favours??[],l=Ir(e.lunar?.day);return s`<li class="day" part="label-track"><span class="day-date">${qa(t,e.date)}</span><div class="day-body">${l?Ge(this,l,qh):o} <span lang="zh">${e.dayPillar?.chinese??""}</span> ${r?.name?s`<span class="roxy-chip tag tag-${r.quality??"neutral"}">${x(r,"name")}</span>`:o} ${i.length?s`<span class="roxy-chips chips-favour">${i.map(c=>s`<span class="roxy-chip">${j(t,"activity",c)}</span>`)}</span>`:o} ${e.clashAnimal?s`<span class="roxy-label">${this.t("Clash")} ${x(e,"clashAnimal")}</span>`:o}</div></li>`}};nt.endpoints=Ro,nt.styles=[v,Ft,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.list h3{margin:0}.list h3{margin-block-end:var(--roxy-space-xs)}.lunar{color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.lunar .moon-mark{margin-inline-end:var(--roxy-space-xs)}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.facts .roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b{color:var(--roxy-fg)}:is(.tag-auspicious,.chips-favour>*){color:var(--roxy-success-fg)}:is(.tag-inauspicious,.chips-avoid>*){color:var(--roxy-danger-fg)}.tag-neutral{color:var(--roxy-info-fg)}.lists{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,24ch),1fr));display:grid}.meaning{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);margin:0;padding-block-start:var(--roxy-space-md)}.days{margin:0;padding:0;list-style:none;display:grid}.day{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);align-items:baseline;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);display:grid}.day:first-child{border-block-start:0;padding-block-start:0}.day-date{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.day-body{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}.terms{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}`],y([k({type:String,reflect:true})],nt.prototype,"mode",2),nt=y([L("roxy-almanac-day")],nt);var Yh=[{key:"spiritual",source:"Spiritual"},{key:"love",source:"Love"},{key:"career",source:"Career"},{key:"money",source:"Money"},{key:"twinFlame",source:"Twin flame"}];function Ns(n,a,e,t){let r=[];if(a)for(let i of Yh){let l=a[i.key];l&&r.push({label:n(i.source),body:l})}return e&&r.push({label:n("Biblical"),body:e}),t&&r.push({label:n("Shadow"),body:t}),r}var Wh={positive:"success",cautionary:"danger",neutral:"info"},Bt=class extends f{renderData(a){let e=(a.energy??"").toLowerCase(),t=a.keywords??[],r=a.actionSteps??[];return s`<article class="card" part="card" aria-label="${`${this.t("Angel number")} ${a.number??""}`}"><div class="hero" part="header">${a.number?s`<div class="numeral">${a.number}</div>`:o}<div><p class="roxy-label">${this.t("Angel number")}</p>${a.title?s`<h2>${a.title}</h2>`:o}</div></div>${a.coreMessage&&!this.hideReadings?s`<p>${a.coreMessage}</p>`:o}<ul class="badges roxy-chips" part="details">${a.type?s`<li>${a.type}</li>`:o} ${typeof a.digitRoot=="number"?s`<li>${this.t("Digit root")} ${a.digitRoot}</li>`:o} ${a.energy?s`<li class="roxy-chip" data-tone="${Wh[e]??o}">${a.energy}</li>`:o}</ul>${t.length>0&&!this.hideReadings?s`<ul class="roxy-chips">${t.map(i=>s`<li>${i}</li>`)}</ul>`:o} ${this.renderSections(a)} ${a.affirmation&&!this.hideReadings?s`<p class="affirmation">${a.affirmation}</p>`:o} ${r.length>0&&!this.hideReadings?s`<div class="steps" part="section action-steps"><h3>${this.t("Action steps")}</h3><ul>${r.map(i=>s`<li>${i}</li>`)}</ul></div>`:o}</article>`}renderSections(a){return this.renderInterpretation(Ns(this.translator,a.meaning,a.biblical,a.shadow),"angel-meaning","Reading")}};Bt.endpoints=Co,Bt.styles=[v,H,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.numeral{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1}.hero>div:not(.numeral){min-width:0}@container (width<=24rem){.hero{justify-items:start;gap:var(--roxy-space-sm);grid-template-columns:minmax(0,1fr);display:grid}}.badges>li{text-transform:capitalize}.affirmation{border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);padding-inline-start:var(--roxy-space-md);font-style:italic}.steps h3{margin-block-end:var(--roxy-space-xs)}.steps ul{gap:calc(var(--roxy-space-unit) / 2);font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}`],Bt=y([L("roxy-angel-number-card")],Bt);var Zh={positive:"Positive energy",neutral:"Neutral energy",cautionary:"Cautionary energy"},Xh={positive:"success",cautionary:"warning"},Ht=class extends f{renderData(a){let e=a.knownMeaning,t=a.digitRootMeaning,r=e?.title??this.t("Number analysis"),i=e?.actionSteps??[];return s`<article class="card" part="card" aria-label="${this.t("Angel number {{number}}",{number:a.number??""})}"><div class="hero" part="header">${a.number?s`<div class="numeral">${a.number}</div>`:o}<div>${e?.title?s`<p class="roxy-label">${this.t("Number analysis")}</p>`:o}<h2>${r}</h2></div></div><ul class="badges roxy-chips" part="details">${a.type?s`<li>${a.type}</li>`:o} ${typeof a.digits=="number"?s`<li>${this.t("{{count}} digits",{count:a.digits})}</li>`:o} ${typeof a.uniqueDigits=="number"?s`<li>${this.t("{{count}} unique",{count:a.uniqueDigits})}</li>`:o} ${typeof a.digitRoot=="number"?s`<li>${this.t("Digit root {{n}}",{n:a.digitRoot})}</li>`:o} ${a.isPalindrome?s`<li class="roxy-chip" data-tone="info">${this.t("Palindrome")}</li>`:o} ${a.isRepeating?s`<li class="roxy-chip" data-tone="info">${this.t("Repeating")}</li>`:o} ${e?.energy?s`<li class="roxy-chip" data-tone="${Xh[e.energy]??o}">${this.t(Zh[e.energy]??"Neutral energy")}</li>`:o}</ul>${a.contextNote?s`<div class="context" part="section context"><p class="roxy-label">${this.t("Where you saw it")}</p><p>${a.contextNote}</p></div>`:o} ${e&&!this.hideReadings?s`<div class="section" part="section known-meaning"><p class="roxy-label">${this.t("Known angel number")}</p>${e.coreMessage?s`<p>${e.coreMessage}</p>`:o} ${e.keywords&&e.keywords.length>0?s`<ul class="roxy-chips">${e.keywords.map(l=>s`<li>${l}</li>`)}</ul>`:o} ${this.renderMeaning(e.meaning,"lookup-known",e.biblical,e.shadow)} ${e.affirmation?s`<p><em>${e.affirmation}</em></p>`:o} ${i.length>0?s`<p class="roxy-label">${this.t("What to do next")}</p><ol class="steps">${i.map(l=>s`<li>${l}</li>`)}</ol>`:o}</div>`:o} ${t&&!this.hideReadings?s`<div class="section" part="section digit-root"><p class="roxy-label">${t.number?this.t("Foundational digit root ({{n}})",{n:t.number}):this.t("Foundational digit root")}</p>${t.title?s`<h3>${t.title}</h3>`:o} ${t.coreMessage?s`<p>${t.coreMessage}</p>`:o} ${e?o:this.renderRootMeaning(t)}</div>`:o}</article>`}renderMeaning(a,e,t,r){return this.renderInterpretation(Ns(this.translator,a,t,r),e,"Reading")}renderRootMeaning(a){return s`${a.keywords&&a.keywords.length>0?s`<ul class="roxy-chips">${a.keywords.map(e=>s`<li>${e}</li>`)}</ul>`:o}${this.renderMeaning(a.meaning,"lookup-root")}${a.affirmation?s`<p><em>${a.affirmation}</em></p>`:o}`}};Ht.endpoints=To,Ht.styles=[v,O,H,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.numeral{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1}.hero>div:not(.numeral){min-width:0}@container (width<=24rem){.hero{justify-items:start;gap:var(--roxy-space-sm);grid-template-columns:minmax(0,1fr);display:grid}}.badges>li{text-transform:capitalize}.context{gap:var(--roxy-space-xs);border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);padding-inline-start:var(--roxy-space-md);display:grid}.steps{gap:var(--roxy-space-xs);font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}.section{gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md);display:grid}.section p{font-size:var(--roxy-text-sm)}`],Ht=y([L("roxy-angel-number-lookup")],Ht);var Jh=new RegExp("(?![\\d#*])\\p{Emoji}","gu"),Qh=n=>n.replace(Jh,"$&\uFE0E"),zs=n=>Object.fromEntries(Object.entries(n).map(([a,e])=>[a,Qh(e)])),yr=(n,a)=>a?n[xe(a)]:void 0,em=zs({sun:"\u2609",moon:"\u263D",mercury:"\u263F",venus:"\u2640",earth:"\u2641",mars:"\u2642",jupiter:"\u2643",saturn:"\u2644",uranus:"\u2645",neptune:"\u2646",pluto:"\u2BD3",rahu:"\u260A",ketu:"\u260B",ascendant:"Asc",midheaven:"MC","part of fortune":"\u2297",vertex:"Vx",lagna:"La","north node":"\u260A","south node":"\u260B",chiron:"\u26B7",lilith:"\u26B8","black moon lilith":"\u26B8"}),C=n=>yr(em,n),tm={sun:"Su",moon:"Mo",mercury:"Me",venus:"Ve",mars:"Ma",jupiter:"Ju",saturn:"Sa",uranus:"Ur",neptune:"Ne",pluto:"Pl",rahu:"Ra",ketu:"Ke",ascendant:"Asc",lagna:"La"},Hc=n=>yr(tm,n),am=zs({aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"}),z=n=>yr(am,n),rm={aries:"Ar",taurus:"Ta",gemini:"Ge",cancer:"Cn",leo:"Le",virgo:"Vi",libra:"Li",scorpio:"Sc",sagittarius:"Sg",capricorn:"Cp",aquarius:"Aq",pisces:"Pi"},Os=n=>yr(rm,n),re=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],sm=zs({conjunction:"\u260C",semisextile:"\u26BA","semi sextile":"\u26BA",semisquare:"\u2220","semi square":"\u2220",sextile:"\u26B9",square:"\u25A1",trine:"\u25B3",sesquiquadrate:"\u26BC",quincunx:"\u26BB",opposition:"\u260D"}),ur=n=>yr(sm,n),nm=zs({heaven:"\u2630",lake:"\u2631",fire:"\u2632",thunder:"\u2633",wind:"\u2634",water:"\u2635",mountain:"\u2636",earth:"\u2637"}),jt=n=>yr(nm,n),im=19904,om=64,jc=n=>typeof n=="number"&&Number.isInteger(n)&&n>=1&&n<=om?String.fromCodePoint(im+n-1):void 0,ae="\u211E",Kc="\u27F7",Uc="\u2605";var J=u`.roxy-facts{gap:var(--roxy-space-sm) var(--roxy-space-lg);margin:var(--roxy-space-sm) 0 0;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;flex-wrap:wrap;display:flex}.roxy-facts>div{min-width:0}.roxy-facts dd{overflow-wrap:anywhere;margin:0}`;var B=u`.roxy-frame{color:var(--roxy-muted);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-normal);margin:0}.roxy-frame .roxy-frame-deg{font-variant-numeric:tabular-nums}`;function W(n,a,e){if(!a?.ayanamsa)return o;let t=Wa(n,a.ayanamsa);if(!t)return o;let r=typeof a.ayanamsaDegrees=="number"?$(n,a.ayanamsaDegrees,4):void 0;return s`<p class="roxy-frame">${r===void 0?e("Sidereal frame: {{frame}}",{frame:t}):e("Sidereal frame: {{frame}}, {{degrees}}\xB0 subtracted",{frame:t,degrees:r})}</p>`}function Kt(n,a,e){let t=[];return n?.yearBoundary&&t.push(["Year boundary","yearBoundary",n.yearBoundary]),n?.dayBoundary&&t.push(["Day boundary","dayBoundary",n.dayBoundary]),n?.hourClock&&t.push(["Hour clock","hourClock",n.hourClock]),t.length===0?o:s`<p class="roxy-frame">${t.map(([r,i,l],c)=>s`${c>0?" \xB7 ":""}${a(r)}: <span class="roxy-frame-deg" title="${l}">${j(e,i,l)}</span>`)}</p>`}function Vc(n,a,e){let t=Object.values(a??{}).filter(r=>!!r?.ayanamsa);return t.length===0?o:s`<div class="roxy-frame">${t.map(r=>{let i=Wa(n,r.ayanamsa),l=typeof r.ayanamsaDegrees=="number"?$(n,r.ayanamsaDegrees,4):void 0,c=r.governs?.length?r.governs.join(", "):"";return s`<p class="roxy-frame">${l===void 0?e("Sidereal frame: {{frame}}",{frame:i}):e("Sidereal frame: {{frame}}, {{degrees}}\xB0 subtracted",{frame:i,degrees:l})}${c?e(", governs {{sections}}",{sections:c}):""}</p>`})}</div>`}var qe=u`@container (width<=30rem){table.stacked,table.stacked caption,table.stacked tbody,table.stacked tr,table.stacked td{width:100%;min-width:0;display:block}table.stacked thead{display:none}table.stacked tr{border-bottom:1px solid var(--roxy-border);padding-block:var(--roxy-space-sm)}table.stacked tr:last-child{border-bottom:0}table.stacked td{padding:calc(var(--roxy-space-unit) / 2) 0;white-space:normal;border:0}table.stacked td:empty{display:none}table.stacked td[data-inline]{width:auto;margin-inline-end:var(--roxy-space-md);display:inline-block}table.stacked td[data-label]:before{content:attr(data-label) " ";color:var(--roxy-muted)}}`;var Is=[qe,u`.scroll{min-width:0;overflow-x:auto}table{width:100%}:is(th,td):first-child{padding-inline-start:var(--roxy-space-md)}:is(th,td):last-child{padding-inline-end:var(--roxy-space-md)}tbody tr.lead-row td:first-child{box-shadow:inset var(--roxy-line-thick) 0 0 var(--roxy-accent)}td.name{font-weight:var(--roxy-weight-bold)}.abbr{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);margin-inline-start:var(--roxy-space-xs)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}tbody tr.lead-row :is(.abbr,.glyph){color:var(--roxy-accent-ink)}.meaning{min-width:24ch}.meaning strong{display:block}.meaning p{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}@container (width<=30rem){table.stacked tr{padding-inline:var(--roxy-space-md)}table.stacked tbody tr.lead-row{box-shadow:inset var(--roxy-line-thick) 0 0 var(--roxy-accent)}table.stacked tbody tr.lead-row td:first-child{box-shadow:none}}`];var lm=new Set(["a1","a12"]),Ut=class extends f{renderData(a){let e=a.padas??[];if(!e.length)return this.renderEmpty();let t=e.filter(r=>r.exceptionApplied).length;return s`<div class="wrap" part="card" aria-label="${this.t("Arudha padas")}"><header class="head" part="header"><h2>${this.t("Arudha padas")}</h2>${W(this.effectiveLang(),a.frame,this.translator)}</header><dl class="roxy-facts" part="details"><div><dt>${this.t("Lagna")}</dt><dd>${a.lagnaRashi??""}</dd></div><div><dt>${this.t("Arudha Lagna")}</dt><dd>${a.arudhaLagna??""}</dd></div><div><dt>${this.t("Upapada")}</dt><dd>${a.upapada??""}</dd></div></dl><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Arudha padas")}"><table class="stacked" role="table"><caption class="roxy-sr-only">${this.t("The twelve Arudha padas: each pada with its bhava, the bhava sign and its lord, the sign the lord occupies, the sign the pada falls in, which house from the Lagna that is, whether the classical exception was applied, and what the pada is read for.")}</caption><thead><tr><th scope="col">${this.t("Pada")}</th><th scope="col">${this.t("Bhava")}</th><th scope="col">${this.t("Bhava rashi")}</th><th scope="col">${this.t("Lord")}</th><th scope="col">${this.t("Lord rashi")}</th><th scope="col">${this.t("Pada rashi")}</th><th scope="col">${this.t("From Lagna")}</th><th scope="col">${this.t("Read for")}</th></tr></thead><tbody>${e.map(r=>this.renderRow(r))}</tbody></table></div>${t>0?s`<p class="note" part="legend"><span class="exception">${this.t("Moved")}</span> ${this.t("marks a pada that fell in its own bhava or the seventh from it and was moved to the tenth from there, as the classical rule requires. {{count}} of {{total}} padas here.",{count:t,total:e.length})}</p>`:o}</div>`}renderRow(a){let e=r=>z(r)??"",t=r=>{let i=e(r);return s`${i?s`<span class="glyph roxy-glyph">${i}</span>`:o}${r??""}`};return s`<tr class="${lm.has(a.id)?"lead-row":""}"><td class="name">${a.name??""}${a.abbreviation?s`<span class="abbr">${a.abbreviation}</span>`:o}</td><td data-inline data-label="${this.t("Bhava")}">${a.house??""}</td><td data-inline data-label="${this.t("Bhava rashi")}">${t(a.bhavaRashi)}</td><td data-inline data-label="${this.t("Lord")}">${a.lord??""}</td><td data-inline data-label="${this.t("Lord rashi")}">${t(a.lordRashi)}</td><td data-inline data-label="${this.t("Pada rashi")}">${t(a.rashi)} ${a.exceptionApplied?s`<span class="exception">${this.t("Moved")}</span>`:o}</td><td data-inline data-label="${this.t("From Lagna")}">${a.houseFromLagna??""}</td><td class="meaning"><strong>${a.meaning??""}</strong> ${a.significations?s`<p>${a.significations}</p>`:o}</td></tr>`}};Ut.endpoints=Eo,Ut.styles=[v,B,J,...Is,u`.wrap{overflow:hidden}.head{padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border)}h2,p{margin:0}.roxy-facts{padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border);margin:0}.roxy-facts dd{font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold)}.exception{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}.note{padding:var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs)}`],Ut=y([L("roxy-arudha-padas")],Ut);var ge=u`.roxy-tablist{gap:var(--roxy-space-xs);box-shadow:inset 0 calc(var(--roxy-line-thick) * -1) 0 var(--roxy-border);scrollbar-width:thin;min-width:0;display:flex;overflow-x:auto}.roxy-tab{padding:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);border:none;border-bottom:var(--roxy-line-thick) solid transparent;cursor:pointer;color:var(--roxy-muted);transition:color var(--roxy-motion-duration) var(--roxy-motion-easing);background:0 0;flex-shrink:0}.roxy-tab[aria-selected=true]{color:var(--roxy-accent-ink);border-bottom-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}.roxy-tab:hover:not([aria-selected=true]){color:var(--roxy-fg)}.roxy-tab:focus-visible{outline-offset:calc(var(--roxy-line-thick) * -1);border-radius:var(--roxy-radius-sm)}`;function ue(n){let{items:a,active:e,onSelect:t,label:r,idPrefix:i,controls:l=false}=n;return s`<div class="roxy-tablist" part="tablist" role="tablist" aria-label="${r}" @keydown="${d=>{if(d.key!=="ArrowRight"&&d.key!=="ArrowLeft")return;d.preventDefault();let p=a.findIndex(b=>b.id===e);if(p===-1)return;let h=d.key==="ArrowRight"?1:-1,m=a[(p+h+a.length)%a.length];if(!m)return;t(m.id);let g=d.currentTarget.getRootNode();requestAnimationFrame(()=>{g.querySelector(`#${i}-tab-${m.id}`)?.focus()})}}">${a.map(d=>s`<button type="button" class="roxy-tab" part="tab" role="tab" id="${i}-tab-${d.id}" aria-selected="${e===d.id?"true":"false"}" aria-controls="${l?`${i}-panel-${d.id}`:o}" tabindex="${e===d.id?"0":"-1"}" @click="${()=>t(d.id)}">${d.label}</button>`)}</div>${l?a.filter(d=>d.id!==e).map(d=>s`<div role="tabpanel" id="${i}-panel-${d.id}" aria-labelledby="${i}-tab-${d.id}" hidden></div>`):o}`}var cm=[{id:"sarva",source:"Sarvashtakavarga"},{id:"bhinna",source:"Bhinnashtakavarga"},{id:"reduced",source:"Reduced"},{id:"pinda",source:"Shodhya Pinda"}],it=class extends f{constructor(){super(...arguments);this.activeTab="sarva"}renderData(e){let t=e.signs??[];return s`<div class="wrap" part="card" aria-label="${this.t("Ashtakavarga grid")}"><div class="head" part="header"><h2 class="title">${this.t("Ashtakavarga")}</h2>${t.length?s`<p class="subtitle">${this.t("{{count}} signs",{count:t.length})}</p>`:o} ${W(this.effectiveLang(),e.frame,this.translator)}</div>${ue({items:cm.map(({id:r,source:i})=>({id:r,label:this.t(i)})),active:this.activeTab,onSelect:r=>{this.activeTab=r},label:this.t("Ashtakavarga views"),idPrefix:"ashtakavarga",controls:true})}<div id="ashtakavarga-panel-${this.activeTab}" part="panel" role="tabpanel" aria-labelledby="ashtakavarga-tab-${this.activeTab}">${this.activeTab==="sarva"?this.renderSarva(t):this.activeTab==="bhinna"?this.renderBhinna(t):this.activeTab==="reduced"?this.renderReduced(t):this.renderPinda()}</div></div>`}bhinnaTier(e){return e<=1?"tier-1":e<=2?"tier-2":e<=3?"tier-3":e<=4?"tier-4":e<=5?"tier-5":e<=6?"tier-6":"tier-7"}sarvaTier(e){return e<=20?"tier-1":e<=24?"tier-2":e<=27?"tier-3":e<=29?"tier-4":e<=32?"tier-5":e<=36?"tier-6":"tier-7"}renderLegend(e){return s`<div class="legend" part="legend"><span>${this.t("Fewer bindus")}</span> <span class="legend-scale" aria-hidden="true">${[1,2,3,4,5,6,7].map(t=>s`<span class="legend-swatch tier-${t}"></span>`)} </span><span>${this.t("More bindus")}</span> <span class="legend-note">${e}</span></div>`}renderSarva(e){let t=this.data?.sarvashtakavarga;return t?s`<div class="overflow-scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Sarvashtakavarga")}"><table><caption class="roxy-sr-only">${this.t("Sarvashtakavarga: each of the twelve signs and the bindus all planets contribute to it, with a grand total.")}</caption><thead><tr><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Bindus")}</th></tr></thead><tbody>${e.map((r,i)=>{let l=t.bindus[i]??0;return s`<tr><td><div class="planet-cell"><span class="glyph roxy-glyph" aria-hidden="true">${z(r)??""}</span> ${r}</div></td><td class="${`bindu-cell ${this.sarvaTier(l)}`}">${l}</td></tr>`})}</tbody><tfoot><tr class="total-row"><td>${this.t("Total")}</td><td>${t.total}</td></tr></tfoot></table></div>${this.renderLegend("Under 25 is a weak sign, 25 to 29 average, 30 and above strong. The 12 signs always total 337.")}`:s`<p class="roxy-empty">${this.t("No sarvashtakavarga data")}</p>`}renderBhinna(e){let t=this.data?.bhinnashtakavarga;return t?.length?s`${this.renderBinduGrid(e,t,"Bhinnashtakavarga: the bindus each planet scores in every one of the twelve signs, with a row total.","Bhinnashtakavarga")} ${this.renderLegend("Each planet scores 0 to 8 bindus per sign. 4 is the mid, 5 and above is strong support for that planet in that sign.")}`:s`<p class="roxy-empty">${this.t("No bhinnashtakavarga data")}</p>`}renderReduced(e){let t=this.data?.reducedBhinnashtakavarga,r=this.data?.reducedSarvashtakavarga;return!t?.length&&!r?s`<p class="roxy-empty">${this.t("No reduced ashtakavarga data")}</p>`:s`${this.renderBinduGrid(e,t??[],"Reduced Bhinnashtakavarga after Shodhana: the bindus each planet keeps in every one of the twelve signs, with a row total and a Reduced Sarvashtakavarga totals row.","Reduced",r)} ${this.renderLegend("Bindus left after Trikona and Ekadipati Shodhana, the input to Shodhya Pinda. The Reduced SAV row totals the seven planets only, so it does not include the Lagna row above it.")}`}renderBinduGrid(e,t,r,i,l){return t.length?s`<div class="overflow-scroll" part="table" tabindex="0" role="region" aria-label="${this.t(i)}"><table class="bhinna-table"><caption class="roxy-sr-only">${r}</caption><thead><tr><th scope="col">${this.t("Planet")}</th>${e.map(c=>s`<th scope="col" class="roxy-glyph" title="${c}">${z(c)??c}</th>`)}<th scope="col">${this.t("Total")}</th></tr></thead><tbody>${t.map(c=>s`<tr><td>${c.planet}</td>${c.bindus.map(d=>s`<td class="${`bindu-cell ${this.bhinnaTier(d)}`}">${d}</td>`)}<td>${c.total}</td></tr>`)}</tbody>${l?s`<tfoot><tr class="total-row"><td>${this.t("Reduced SAV")}</td>${e.map((c,d)=>s`<td>${l.bindus[d]??0}</td>`)}<td>${l.total}</td></tr></tfoot>`:o}</table></div>`:s`<p class="roxy-empty">${this.t("No bindu data")}</p>`}renderPinda(){let e=this.data?.shodhyaPinda;return e?.length?s`<div class="overflow-scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Shodhya Pinda")}"><table><caption class="roxy-sr-only">${this.t("Shodhya Pinda: each planet with its Rashi Pinda, Graha Pinda and Shodhya Pinda strength scores.")}</caption><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Rashi Pinda")}</th><th scope="col">${this.t("Graha Pinda")}</th><th scope="col">${this.t("Shodhya Pinda")}</th></tr></thead><tbody>${e.map(t=>s`<tr><td>${t.planet}</td><td>${t.rashiPinda}</td><td>${t.grahaPinda}</td><td>${t.shodhyaPinda}</td></tr>`)}</tbody></table></div>`:s`<p class="roxy-empty">${this.t("No shodhya pinda data")}</p>`}};it.endpoints=Ao,it.styles=[v,B,ge,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.subtitle{margin:0}.subtitle{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}[role=tabpanel]:not([hidden]){gap:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.overflow-scroll{min-width:0;overflow-x:auto}table{width:100%}:is(th,td){text-align:center}:is(th,td):first-child{text-align:start}.glyph{font-size:var(--roxy-text-base);line-height:1}.planet-cell{align-items:center;gap:var(--roxy-space-xs);white-space:nowrap;display:flex}.total-row td{font-weight:var(--roxy-weight-bold);border-block-start:var(--roxy-line-thick) solid var(--roxy-border);border-block-end:0}.bindu-cell{min-width:3ch;font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;color:var(--roxy-fg)}.tier-1{background:color-mix(in srgb, var(--roxy-heat) 30%, transparent)}.tier-2{background:color-mix(in srgb, var(--roxy-heat) 17%, transparent)}.tier-3{background:color-mix(in srgb, var(--roxy-heat) 7%, transparent)}.tier-4{background:color-mix(in srgb, var(--roxy-border) 45%, transparent)}.tier-5{background:color-mix(in srgb, var(--roxy-success) 16%, transparent)}.tier-6{background:color-mix(in srgb, var(--roxy-success) 32%, transparent)}.tier-7{background:color-mix(in srgb, var(--roxy-success) 50%, transparent)}.legend{align-items:center;gap:var(--roxy-space-xs) var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);flex-wrap:wrap;display:flex}.legend-scale{gap:1px;display:flex}.legend-swatch{block-size:.75lh;inline-size:2ch}.legend-note{flex:24ch}.bhinna-table :is(th,td):first-child{min-width:8ch}@container (width<=480px){.bhinna-table :is(th,td){padding:var(--roxy-space-xs);font-size:var(--roxy-text-xs)}.bhinna-table :is(th,td):first-child{min-width:6ch}.bindu-cell{min-width:2ch}}`],y([I()],it.prototype,"activeTab",2),it=y([L("roxy-ashtakavarga-grid")],it);var dm=new Set(["conjunction","sextile","square","trine","opposition"]);function ot(n){return dm.has(we(n))}function de(n){return`aspect-${we(n)}`}var qc=.3,pm=.9,Yc=.5,hm=1.8;function fr(n){let{strength:a}=n;if(typeof a!="number"||!Number.isFinite(a))return;let e=Math.min(1,Math.max(0,a/100)),t=qc+e*(pm-qc),r=Yc+e*(hm-Yc);return`opacity:${t.toFixed(3)};stroke-width:${r.toFixed(3)}`}var lt=u`.aspect-trine,.aspect-sextile{--_aspect:var(--roxy-info);--_aspect-ink:var(--roxy-info-fg)}.aspect-square,.aspect-opposition{--_aspect:var(--roxy-danger);--_aspect-ink:var(--roxy-danger-fg)}.aspect-quincunx,.aspect-semi-sextile{--_aspect:var(--roxy-success);--_aspect-ink:var(--roxy-success-fg)}.aspect-conjunction{--_aspect:var(--roxy-accent-ink);--_aspect-ink:var(--roxy-accent-ink)}:is(.aspect-trine,.aspect-sextile,.aspect-square,.aspect-opposition,.aspect-quincunx,.aspect-semi-sextile,.aspect-conjunction){color:var(--_aspect-ink);stroke-opacity:1}.aspect-swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);background:var(--_aspect);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}`,xr=[u`.aspect{stroke:var(--_aspect,var(--roxy-muted));stroke-width:.8px;fill:none;opacity:.55;stroke-opacity:.7}`,lt];function mm(n,a,e){if(n.include?.length){let t={bodies:me(a,n.include)};return n.strictOrbs?e("Detected with strict orbs, including {{bodies}}.",t):e("Detected with industry-standard orbs, including {{bodies}}.",t)}return n.strictOrbs?e("Detected with strict orbs, classical bodies only."):e("Detected with industry-standard orbs, classical bodies only.")}var Wc={GRAND_CROSS:0,GRAND_TRINE:1,KITE:2,T_SQUARE:3,YOD:4,MYSTIC_RECTANGLE:5,STELLIUM:6},Vt=class extends f{renderData(a){let e="aspects"in a?a.aspects??[]:[],t="patterns"in a?a.patterns??[]:[],r="summary"in a?a.summary:void 0;if(e.length===0&&t.length===0)return this.renderEmpty();let i=Y(this.effectiveLang(),"transitDate"in a?a.transitDate:"date"in a?a.date:"","time"in a?a.time:void 0,true),l="timezone"in a?a.timezone:void 0,c="options"in a?a.options:void 0;return s`<div class="wrap" part="card" aria-label="${this.t("Aspects")}"><div class="head" part="header"><h2>${e.length===0?this.t("Chart patterns"):this.t("Aspects")}</h2>${e.length>0||i?s`<p class="subtitle roxy-label">${[e.length===1?this.t("1 aspect"):e.length>1?this.t("{{count}} aspects",{count:e.length}):"",i].filter(Boolean).join(" \xB7 ")}</p>`:o} ${typeof l=="number"&&Number.isFinite(l)?s`<dl class="roxy-facts" part="details"><div><dt>${X(this.effectiveLang(),"timezone")}</dt><dd>${$(this.effectiveLang(),l,5)}</dd></div></dl>`:o}</div>${r?this.renderSummary(r):o} ${r&&"strongest"in r&&r.strongest?this.renderStrongest(r.strongest):o} ${e.length>0?s`<div role="list" part="section aspects" aria-label="${this.t("Aspect list")}">${e.map((d,p)=>s`<div role="listitem">${this.renderAspect(d,p)}</div>`)}</div>`:o} ${t.length>0?s`<section class="patterns" part="section patterns"><h3>${this.t("Chart patterns")}</h3>${[...t].sort((d,p)=>(Wc[d.kind]??9)-(Wc[p.kind]??9)||(p.tightness??0)-(d.tightness??0)).map(d=>this.renderPattern(d))}</section>`:o} ${c?s`<p class="provenance">${mm(c,this.effectiveLang(),this.translator)}</p>`:o}</div>`}renderSummary(a){let e="totalAspects"in a?a.totalAspects:a.total,t=Object.entries(a.byType??{}).sort((r,i)=>i[1]-r[1]);return s`<p class="counts" part="details" role="region" aria-label="${this.t("Aspect summary")}">${typeof e=="number"?s`<span>${this.t("{{label}}: {{value}}",{label:this.t("Total"),value:e})}</span>`:o} <span class="harmonious">${this.t("Harmonious: {{count}}",{count:a.harmonious})}</span> <span class="challenging">${this.t("Challenging: {{count}}",{count:a.challenging})}</span> <span>${this.t("Neutral: {{count}}",{count:a.neutral})}</span> ${t.map(([r,i])=>s`<span>${this.t("{{label}}: {{value}}",{label:se({type:r}),value:i})}</span>`)}</p>`}renderStrongest(a){let e=C(a.planet1)??"",t=C(a.planet2)??"";return s`<div class="strongest" part="details strongest"><span class="roxy-label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph roxy-glyph">${e}</span>${x(a,"planet1")} <span class="asp-name ${de(a)}">${x(a,"type",se(a))}</span> <span aria-hidden="true" class="glyph roxy-glyph">${t}</span>${x(a,"planet2")} <span class="meta">${this.t("{{status}} \xB7 orb {{orb}}\xB0 \xB7 str {{strength}}",{status:a.isApplying?this.t("Applying"):this.t("Separating"),orb:$(this.effectiveLang(),a.orb,2),strength:$(this.effectiveLang(),a.strength,0)})}</span></div>`}renderAspect(a,e){let t=C(a.planet1)??"",r=C(a.planet2)??"",i=se(a),l=a.isApplying?this.t("Applying"):this.t("Separating"),c="meaning"in a?a.meaning:void 0,d="transitInterpretation"in a?a.transitInterpretation:void 0,p="aspectInterpretation"in a?a.aspectInterpretation:void 0,h=!!(c||d||p),m=s`<span aria-hidden="true" class="glyph roxy-glyph">${t}</span>${x(a,"planet1")} <span class="asp-name ${de(a)}">${x(a,"type",i)}</span> <span aria-hidden="true" class="glyph roxy-glyph">${r}</span>${x(a,"planet2")} <span class="meta">${this.t("{{status}} \xB7 orb {{orb}}\xB0 \xB7 str {{strength}}",{status:l,orb:$(this.effectiveLang(),a.orb,2),strength:$(this.effectiveLang(),a.strength,0)})}</span>`;return!h||this.hideReadings?s`<div class="interp-card" part="reading"><div class="static-head">${m}</div></div>`:s`<details class="interp-card" part="reading" name="aspects" ?open="${e===0}"><summary>${m}${V()}</summary><div class="interp-body" part="readings">${c?this.renderMeaning(c):o} ${d?this.renderTransit(d):o} ${p?Nr(p,this.translator):o}</div></details>`}renderMeaning(a){return s`${a.description?.short?s`<p>${a.description.short}</p>`:o} ${a.description?.long&&a.description.long!==a.description.short?s`<p>${a.description.long}</p>`:o} ${rt(a.keywords)}`}renderTransit(a){return Nr(a,this.translator)}renderPattern(a){let e=a.planets??[],t=a.apex?[...e].sort((r,i)=>+(i===a.apex)-+(r===a.apex)):e;return s`<div class="pattern" part="pattern"><div class="pattern-head"><span class="pattern-name">${a.name??a.kind??this.t("Pattern")}</span> ${a.element?s`<span class="roxy-chip">${a.element}</span>`:o} ${a.modality?s`<span class="roxy-chip">${a.modality}</span>`:o} ${a.dissociate?s`<span class="roxy-chip" title="${this.t("Out of sign: one or more planets sit outside the pattern element or modality, so the theme holds but runs weaker.")}">${this.t("Dissociate")}</span>`:o} ${typeof a.tightness=="number"?s`<span class="pattern-tight roxy-label">${this.t("{{percent}} tight",{percent:te(this.effectiveLang(),a.tightness,0)})}</span>`:o}</div>${t.length?s`<ul class="roxy-chips">${t.map(r=>{let i=C(r),l=!!a.apex&&r===a.apex;return s`<li class="${l?"roxy-chip apex":"roxy-chip"}">${i?s`<span class="roxy-glyph" aria-hidden="true">${i}</span>`:o}${r}${l?s`<span>${this.t("apex")}</span>`:o}</li>`})}</ul>`:o} ${a.interpretation&&!this.hideReadings?s`<p class="pattern-interp">${a.interpretation}</p>`:o}</div>`}};Vt.endpoints=Do,Vt.styles=[v,J,O,H,lt,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.head{gap:var(--roxy-space-xs);display:grid}.counts{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.harmonious{color:var(--roxy-info-fg)}.challenging{color:var(--roxy-danger-fg)}.interp-card summary,.static-head{align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.static-head{font-size:var(--roxy-text-sm)}.meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-normal);font-variant-numeric:tabular-nums;margin-inline-start:auto}.glyph{line-height:1}.asp-name{font-weight:var(--roxy-weight-bold)}.strongest,.pattern{padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border)}.strongest{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.pattern{gap:var(--roxy-space-xs);display:grid}.pattern-head{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.pattern-name{font-weight:var(--roxy-weight-bold)}.pattern-tight{font-variant-numeric:tabular-nums;margin-inline-start:auto}.roxy-chip.apex{color:var(--roxy-fg);border-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}.pattern-interp{font-size:var(--roxy-text-sm)}.provenance{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}`],Vt=y([L("roxy-aspects-table")],Vt);var ne=class{constructor(a){this.host=a;this.state="closed";this.zoom=1;this.pressedBy="";this.press=a2=>{this.pressedBy=a2.pointerType};this.openOnMouse=a2=>{let e=this.pressedBy==="mouse";this.pressedBy="",e&&(a2.target?.closest?.("a, button, summary, input, select, textarea")||getSelection()?.toString()||this.open())};a.addController(this)}hostUpdated(){let a=this.host.renderRoot.querySelector(".roxy-chart-dialog");if(!a)this.reset();else if(a.isConnected&&this.state!=="closed"){this.state==="opening"&&(this.state="open",a.open||a.showModal());let e=a.querySelector(".roxy-chart-scroll");a.open&&e&&this.position&&(e.scrollLeft=e.scrollWidth*this.position.x-e.clientWidth/2,e.scrollTop=e.scrollHeight*this.position.y-e.clientHeight/2,this.position=void 0)}}hostDisconnected(){this.reset(),this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}open(){this.state="opening",this.position={x:.5,y:0},this.host.requestUpdate()}reset(){this.state="closed",this.zoom=1,this.position=void 0}resize(a){let e=this.host.renderRoot.querySelector(".roxy-chart-scroll");this.position=a===0?{x:.5,y:0}:e?{x:(e.scrollLeft+e.clientWidth/2)/e.scrollWidth,y:(e.scrollTop+e.clientHeight/2)/e.scrollHeight}:void 0,this.zoom=a===0?1:Math.min(3,Math.max(1,this.zoom+a)),this.host.requestUpdate()}renderChartViewport(a,e,t){return s`<div class="roxy-chart-view"><div class="roxy-chart-hit" @pointerdown="${this.press}" @click="${this.openOnMouse}">${a}</div><div class="roxy-chart-tools" part="chart-controls"><button type="button" @click="${()=>this.open()}">${t("Enlarge chart")}</button></div><dialog class="roxy-chart-dialog" part="chart-dialog" aria-label="${e}" @close="${()=>{this.reset(),this.host.requestUpdate()}}">${this.state!=="closed"?s`<div class="roxy-chart-bar"><strong>${e}</strong><div class="roxy-chart-tools"><button type="button" aria-label="${t("Zoom out")}" ?disabled="${this.zoom===1}" @click="${()=>this.resize(-.5)}">−</button> <button type="button" @click="${()=>this.resize(0)}">${t("Reset zoom")}</button> <button type="button" aria-label="${t("Zoom in")}" ?disabled="${this.zoom===3}" @click="${()=>this.resize(.5)}">+</button> <button type="button" @click="${()=>this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}">${t("Close")}</button></div></div><div class="roxy-chart-scroll" role="region" tabindex="0" aria-label="${e}"><div class="roxy-chart-expanded" style="${`--chart-zoom:${this.zoom}`}">${a}</div></div>`:o}</dialog></div>`}},pe=u`.roxy-chart-view{min-width:0}@media (hover:hover) and (pointer:fine){.roxy-chart-hit{cursor:zoom-in}}.roxy-chart-tools{gap:var(--roxy-space-sm);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.roxy-chart-tools button{font-size:var(--roxy-text-sm);color:var(--roxy-secondary);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);min-width:2lh;min-height:2lh;padding:var(--roxy-space-xs) var(--roxy-space-sm);cursor:pointer;background:0 0}.roxy-chart-tools button:hover:not(:disabled){border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-chart-tools button:disabled{color:var(--roxy-muted);cursor:default}.roxy-chart-dialog{--roxy-surface:var(--roxy-bg);width:calc(100% - 2 * var(--roxy-space-md));max-width:calc(var(--roxy-chart-expanded-width,60rem) * 1.2);max-height:calc(100% - 2 * var(--roxy-space-md));padding:var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);color:var(--roxy-fg);background:var(--roxy-bg);box-shadow:var(--roxy-shadow-lg);margin:auto}.roxy-chart-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.roxy-chart-dialog::backdrop{background:color-mix(in oklab, var(--roxy-bg) 85%, transparent)}.roxy-chart-bar{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);margin-bottom:var(--roxy-space-md);flex-wrap:wrap;flex-shrink:0;display:flex}.roxy-chart-bar>strong{overflow-wrap:anywhere;min-width:0}.roxy-chart-scroll{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.roxy-chart-expanded{width:max(100%, calc(var(--roxy-chart-expanded-width,60rem) * var(--chart-zoom)));padding:var(--roxy-space-sm)}.roxy-chart-expanded>svg{width:100%;max-width:none;height:auto;margin:0}`;function Ee(n){let a=n%360;return a<0?a+360:a}function Ne(n){let a=Ee(n),e=Math.floor(a/30)%12,t=a%30,r=Math.floor(t),i=(t-r)*60,l=Math.floor(i),c=Math.round((i-l)*60);return{sign:re[e]??"Aries",signIndex:e,degree:r,minute:l,second:c}}function ye(n,a){let{sign:e,degree:t,minute:r}=Ne(n);return`${t}\xB0 ${a||e} ${String(r).padStart(2,"0")}'`}function Ae(n){return Fe(Ee(n)%30)}function ni(n){let a=Math.floor(n);return{degree:a,minute:Math.floor((n-a)*60)}}function Fe(n){let{degree:a,minute:e}=ni(n);return`${a}\xB0${String(e).padStart(2,"0")}'`}function Fr(n){return Ee(n+180)}function Gs(n,a){let e=Ee(n),t=Ee(a)-e;return t<0&&(t+=360),Ee(e+t/2)}function ze(n,a,e){let t=n.filter(p=>Number.isFinite(a(p))).map(p=>{let h=Ee(a(p));return{item:p,longitude:h,displayLongitude:h}}).sort((p,h)=>p.longitude-h.longitude),r=t.length;if(r<2)return t;let i=0,l=-1;for(let p=0;p<r;p++){let h=t[(p+r-1)%r],g=(t[p].longitude-h.longitude+360)%360;g>l&&(l=g,i=p)}let c=t[i],d=c.longitude;for(let p=1;p<r;p++){let h=t[(i+p)%r],m=typeof e=="function"?e(c.item,h.item):e,g=h.longitude+(i+p>=r?360:0);d=Math.max(g,d+m),h.displayLongitude=Ee(d),c=h}return t}var Ye=2;function Zc(n,a){let e=n*Math.PI/180;return a.width/2*Math.abs(Math.cos(e))+a.height/2*Math.abs(Math.sin(e))}function ct(n,a,e,t){let r=n*Math.PI/180,i=(l,c)=>c>1e-9?(l+t)/c:Number.POSITIVE_INFINITY;return Math.min(i((a.width+e.width)/2,Math.abs(Math.cos(r))),i((a.height+e.height)/2,Math.abs(Math.sin(r))))}var gm=(n,a)=>Math.abs(n.x-a.x)<(n.width+a.width)/2&&Math.abs(n.y-a.y)<(n.height+a.height)/2;function Xc(n,a){let e=[],t=r=>e.reduce((i,l)=>gm(r,l)?Math.max(i,Math.min((r.width+l.width)/2-Math.abs(r.x-l.x),(r.height+l.height)/2-Math.abs(r.y-l.y))):i,0);return[...n].map((r,i)=>({point:r,index:i})).sort((r,i)=>r.point.displayLongitude-i.point.displayLongitude).reduce((r,{point:i,index:l})=>{let c=a(i,0),d=a(i,1),p=t(c)===0||t(c)<=t(d)?0:1;return e.push(p===0?c:d),r[l]=p,r},[])}var De={minute:3.4,whole:1.85,retrograde:1.25,ink:.9};function Pe(n,a){return a>0?n/a*(180/Math.PI):0}function P(n,a,e,t){let r=t*Math.PI/180;return{x:n+e*Math.cos(r),y:a+e*Math.sin(r)}}var ym={Sun:"var(--roxy-accent)",Moon:"var(--roxy-secondary)",Mercury:"var(--roxy-info)",Venus:"var(--roxy-success)",Mars:"var(--roxy-danger)",Jupiter:"var(--roxy-warning)",Saturn:"var(--roxy-muted)",Uranus:"var(--roxy-info-fg)",Neptune:"var(--roxy-success-fg)",Pluto:"var(--roxy-danger-fg)"},Jc=["var(--roxy-accent)","var(--roxy-info)","var(--roxy-success)","var(--roxy-danger)","var(--roxy-warning)","var(--roxy-secondary)","var(--roxy-info-fg)","var(--roxy-success-fg)","var(--roxy-danger-fg)","var(--roxy-accent-ink)","var(--roxy-warning-fg)","var(--roxy-primary)"];function Za(n,a=0){return ym[D(n)]??Jc[a%Jc.length]??"var(--roxy-accent)"}var Qc="M120 170L120 171L118 171L116 171L114 171L114 170L116 170L118 170L119 170L120 170ZM21 169L19 170L18 169L17 169L16 169L17 168L19 168L20 169L21 169ZM135 168L136 168L137 169L137 170L135 170L133 171L132 171L130 171L127 171L126 171L126 170L128 170L129 170L130 169L131 168L132 168L133 168L135 168ZM59 164L60 164L61 163L61 164L60 164L58 164L57 164L58 163L59 164ZM54 163L56 164L55 164L54 164L53 163L54 163ZM81 162L82 162L83 162L84 163L83 162L82 162L81 162L79 163L78 162L80 162L81 162ZM112 161L111 162L110 162L109 163L108 162L107 162L106 162L105 162L106 161L107 161L108 161L108 160L109 159L110 159L111 160L111 161L112 161ZM121 154L120 154L119 154L119 155L118 155L117 155L117 156L118 156L117 156L116 157L115 157L114 158L115 158L115 159L116 159L117 159L117 160L118 160L118 161L119 162L119 163L119 164L118 164L117 165L116 165L114 166L113 166L112 166L110 166L109 167L108 167L106 167L104 167L103 167L105 167L106 168L105 168L104 168L102 168L102 169L103 170L105 170L107 170L109 171L110 171L112 171L114 171L117 172L118 172L120 172L121 173L122 173L123 173L125 173L126 172L128 172L130 172L133 172L135 172L137 172L138 172L139 171L142 171L144 171L146 171L148 171L150 171L151 170L150 170L150 169L148 169L146 169L144 169L144 168L145 168L146 168L148 168L149 167L150 167L151 167L152 166L154 166L155 166L156 166L158 166L159 166L160 166L161 165L162 165L163 165L164 164L165 164L164 164L164 163L165 163L166 163L167 163L168 162L169 162L170 161L171 161L171 162L173 162L173 161L174 161L176 161L177 161L178 161L179 161L180 162L181 161L182 161L183 161L184 161L185 161L186 160L187 160L188 160L190 160L191 161L192 161L192 160L193 160L195 160L196 160L197 160L198 160L199 160L200 160L201 160L202 160L203 161L204 161L205 160L206 160L207 160L208 160L209 160L210 160L211 160L212 160L213 159L214 159L215 159L216 159L217 159L218 160L219 160L220 160L220 159L221 159L222 159L223 158L224 158L225 158L226 158L227 158L228 157L229 157L230 157L231 157L232 156L233 156L234 156L235 156L236 156L237 156L237 157L238 157L239 157L240 157L241 158L242 158L243 158L244 157L245 158L246 158L247 158L248 158L249 158L250 159L250 160L249 160L248 160L248 161L249 161L248 161L248 162L249 162L250 162L251 162L252 162L252 161L253 161L253 160L254 160L256 160L257 160L258 159L259 158L260 158L261 158L262 157L263 157L264 157L265 157L266 157L267 157L268 156L269 157L270 157L271 157L272 157L273 157L274 157L275 157L276 157L277 157L278 157L279 157L280 157L281 157L282 156L283 156L284 156L285 156L286 157L287 157L288 157L289 157L290 157L291 156L292 156L293 156L294 156L295 156L296 157L297 157L299 157L300 157L301 157L302 157L303 156L304 157L305 157L306 157L307 157L308 157L309 157L310 157L311 156L312 156L313 156L314 156L315 156L315 155L316 156L317 157L319 157L320 157L321 157L322 157L323 157L324 157L325 157L326 157L326 158L327 158L328 158L329 158L330 159L331 159L333 159L334 159L335 159L336 159L337 159L338 159L339 160L340 160L341 160L342 161L343 161L344 161L345 161L346 161L347 161L348 161L349 161L351 161L351 162L350 163L349 164L348 164L347 164L346 164L346 165L345 165L344 165L344 166L343 167L344 167L344 168L345 168L347 168L347 169L345 169L344 169L342 169L341 170L340 171L341 171L342 172L344 172L345 173L347 173L349 173L349 174L352 174L353 174L356 174L358 174L360 175L360 180L0 180L0 175L1 174L3 174L4 174L6 175L7 174L10 174L11 174L13 175L16 175L18 175L22 175L25 175L29 175L31 176L34 175L37 175L33 175L30 174L29 174L26 174L27 173L27 172L25 172L25 171L23 171L26 171L28 171L29 171L31 171L33 171L34 170L33 170L32 170L30 169L28 169L27 169L25 169L24 169L23 168L22 168L22 167L23 167L25 167L26 167L27 167L29 167L30 167L31 167L32 167L34 166L34 165L35 165L36 166L37 165L38 165L40 165L41 165L42 165L44 165L45 164L46 164L48 164L49 164L50 164L52 164L53 164L55 165L56 164L57 164L59 165L60 164L61 164L63 164L64 164L65 164L66 164L67 164L68 165L69 164L70 165L71 165L72 165L74 165L75 165L77 165L78 165L79 165L80 165L79 165L79 164L77 164L77 163L76 163L77 163L78 163L80 163L81 163L82 163L82 164L84 164L85 163L86 163L88 163L89 163L90 163L91 163L92 163L93 163L94 163L95 163L96 164L97 164L99 164L99 163L100 163L101 164L102 163L103 164L104 164L105 164L106 164L107 163L108 163L110 163L111 163L112 163L113 162L112 161L112 160L111 160L112 159L113 158L112 158L112 157L113 157L114 156L115 156L116 155L117 155L118 155L119 154L120 154L121 154L121 153L122 153L123 154L122 154L121 154ZM112 144L114 144L115 145L114 145L113 145L112 146L111 145L110 145L109 145L108 144L107 144L105 143L106 143L108 144L109 144L110 143L111 143L112 143L112 144ZM121 141L122 142L121 142L120 142L119 142L120 141L121 142L121 141ZM250 140L249 140L249 139L250 139L251 139L250 140ZM325 131L326 131L327 131L328 131L328 132L328 133L327 134L326 134L325 133L325 132L325 131ZM353 131L354 131L354 132L353 133L353 134L352 134L351 134L351 135L351 136L350 136L349 137L348 137L348 136L347 136L347 135L348 134L349 134L350 134L351 133L352 132L352 131L353 130L353 131ZM355 126L355 127L356 127L356 128L357 128L358 128L359 128L358 129L357 129L357 130L357 131L356 131L355 132L355 131L355 130L354 130L354 129L355 129L355 128L355 127L354 127L354 126L353 125L353 124L354 125L355 126ZM347 112L346 112L345 112L345 111L344 110L345 110L345 111L346 111L347 112ZM358 107L359 108L358 108L357 108L358 107L358 108L358 107ZM359 107L359 106L360 106L360 107L359 107ZM230 104L230 105L230 106L230 105L230 106L230 107L229 107L229 108L229 109L229 110L228 112L228 114L227 115L226 115L225 116L225 115L224 115L224 114L223 113L223 112L223 111L224 111L224 110L224 109L224 108L224 107L224 106L225 106L226 106L227 105L228 105L228 104L229 103L229 102L230 102L230 103L230 104ZM324 104L324 105L325 104L325 105L325 106L326 107L326 108L326 109L327 109L328 110L329 110L329 111L330 112L330 113L331 112L331 113L332 114L333 115L333 116L333 117L334 118L334 119L333 119L333 120L333 121L333 122L332 123L331 124L331 125L330 126L330 127L329 128L328 128L327 128L327 129L326 129L325 129L325 128L324 128L324 129L323 129L322 128L321 128L320 127L320 126L319 126L318 126L318 125L318 124L318 125L317 125L318 124L318 123L317 124L316 124L316 125L315 124L315 123L314 123L313 122L312 122L311 121L310 122L308 122L307 122L306 122L305 123L304 123L304 124L303 124L302 124L301 124L300 124L299 125L299 124L299 125L298 125L297 125L296 124L295 124L296 123L296 122L295 121L295 120L295 119L294 118L294 117L293 117L293 116L294 117L293 116L294 116L294 115L293 114L294 114L294 113L294 112L294 113L295 112L295 111L296 111L297 111L298 110L299 110L300 110L301 110L301 109L302 109L302 108L302 107L303 106L303 107L304 107L304 106L305 105L306 105L306 104L307 104L308 104L308 105L309 105L310 105L309 104L310 104L310 103L311 103L311 102L312 102L313 102L312 101L313 101L314 102L315 102L316 102L317 102L317 103L316 103L316 104L315 105L316 105L316 106L317 106L318 106L318 107L319 107L320 108L321 107L321 106L322 105L322 104L322 103L322 102L322 101L323 101L323 102L324 103L324 104ZM301 100L300 100L299 100L300 99L300 100L301 100ZM341 100L340 100L340 99L341 100ZM342 100L341 99L341 98L341 99L342 100ZM304 100L303 100L304 100L304 99L305 99L306 98L307 98L307 99L306 99L305 99L304 100ZM298 98L299 98L299 99L298 99L297 99L297 98L298 98ZM303 98L303 99L301 99L300 99L300 98L301 98L301 99L302 98L303 98ZM340 98L340 99L339 98L338 97L339 98L340 98ZM289 97L291 97L291 96L293 97L293 98L294 98L296 98L295 99L293 98L292 98L291 98L289 98L288 98L286 97L285 97L286 96L287 96L288 96L289 97ZM315 96L314 97L314 96L314 95L315 96ZM336 97L335 97L335 96L335 95L335 96L336 96L336 97ZM332 95L331 96L330 96L329 96L328 96L328 95L329 96L330 96L330 95L330 96L331 95L332 95L332 94L332 95ZM307 93L307 94L306 94L306 93L307 93ZM310 93L311 94L310 93L309 93L308 93L309 93L310 93ZM333 94L333 95L333 94L332 94L332 93L331 93L332 93L333 94ZM314 91L314 93L315 93L316 92L317 92L318 92L319 92L320 92L321 93L323 93L325 94L326 95L328 96L328 97L327 97L328 98L329 99L329 100L330 100L331 100L331 101L330 101L330 100L329 100L328 100L327 99L326 98L325 98L324 98L323 98L323 99L322 99L321 99L320 98L319 98L318 98L319 97L318 96L318 95L316 95L315 94L314 94L313 94L313 93L312 93L313 92L314 92L312 92L311 91L312 91L312 90L314 91ZM305 89L304 90L303 90L301 90L300 90L300 91L301 91L303 91L302 92L302 93L302 94L303 95L303 96L302 95L303 94L302 95L301 95L302 94L301 94L301 93L300 93L300 94L300 96L299 95L300 94L299 93L299 92L299 91L300 90L300 89L301 89L302 89L303 89L304 89L305 88L305 89ZM309 89L309 90L308 90L308 91L308 90L307 89L308 88L309 88L309 89ZM286 96L285 96L284 95L283 94L282 94L281 93L281 92L280 91L279 90L279 89L279 88L278 88L277 87L276 86L275 85L276 85L277 85L278 86L279 86L280 87L281 88L282 88L282 89L283 89L284 90L283 91L284 91L285 92L286 92L286 93L286 94L286 96ZM298 88L299 89L298 89L297 90L298 91L297 91L297 92L296 94L295 94L294 93L293 93L292 93L291 93L290 93L290 92L290 91L289 90L289 89L290 88L291 88L291 87L292 87L293 87L294 86L294 85L295 85L296 84L297 83L298 84L299 85L298 85L299 86L298 86L297 87L298 88ZM306 82L307 83L306 84L306 83L305 83L306 84L305 84L304 84L304 83L304 82L303 83L302 83L302 82L303 82L303 81L304 82L305 81L305 80L306 81L306 82ZM261 84L260 84L260 83L260 82L260 80L261 81L262 82L262 84L261 84ZM304 80L303 81L302 80L303 80L303 79L303 80L304 79L304 80ZM299 81L297 82L298 81L298 80L299 80L300 79L299 80L299 81ZM302 78L303 78L303 79L302 80L302 79L302 78ZM306 78L306 79L305 79L305 80L305 79L304 79L305 79L305 78L304 77L305 77L306 78ZM302 77L301 78L301 77L300 77L301 77L302 77ZM301 71L302 72L303 73L302 74L302 75L302 76L303 76L304 76L304 77L303 77L303 76L303 77L302 76L301 76L301 75L301 76L300 75L300 74L300 72L301 71ZM114 72L113 72L113 71L114 71L114 72ZM103 72L102 72L102 71L102 72L103 72L104 72L103 72ZM107 70L108 70L109 70L110 70L110 71L111 71L112 71L111 72L110 72L109 72L108 72L107 72L106 72L106 71L107 71L107 72L108 71L107 71L107 70ZM290 71L289 72L289 71L289 70L290 70L291 70L291 71L290 71ZM24 71L24 70L25 70L25 71L24 71ZM100 67L101 68L102 67L102 68L103 68L103 69L104 69L105 69L106 70L105 70L104 70L102 70L103 70L103 69L102 69L101 68L100 68L99 68L98 68L98 67L97 67L97 68L96 68L95 68L96 68L96 67L97 67L98 67L99 67L100 67ZM102 66L102 65L102 66ZM301 67L301 68L300 67L300 66L301 65L302 65L302 66L301 67ZM315 56L314 57L314 56L313 57L312 57L313 56L314 56L315 56ZM215 54L214 55L213 55L212 55L213 55L214 55L215 54ZM204 54L204 55L205 55L206 55L205 55L204 55L204 54ZM196 52L195 53L194 53L192 52L193 52L194 52L195 52L196 52ZM189 49L190 49L190 51L189 51L188 51L188 50L188 49L189 49ZM321 53L321 54L320 55L319 55L317 55L316 57L315 56L315 55L313 56L312 56L311 56L312 57L311 59L310 59L310 58L310 57L309 57L310 56L311 56L312 55L313 55L315 54L316 54L317 53L319 52L320 51L320 49L321 49L322 50L322 51L321 52L321 53ZM190 48L189 49L189 48L189 47L190 48ZM324 46L325 46L326 47L324 47L323 48L322 47L321 48L320 48L320 47L321 47L322 45L322 44L323 45L324 46ZM116 43L117 44L118 44L117 44L116 44L116 43ZM118 41L116 41L115 40L116 40L117 40L118 41ZM56 41L56 42L54 41L53 40L52 40L52 39L53 39L53 40L54 40L55 40L55 41L56 41ZM124 39L123 40L124 40L125 40L124 40L125 41L126 40L127 41L126 41L127 41L127 42L127 43L126 43L126 42L125 43L124 43L125 43L124 42L123 42L121 42L121 41L122 41L123 39L124 38L125 38L124 39ZM47 36L48 36L48 37L49 38L48 38L48 37L47 37L47 36ZM324 39L325 41L323 41L323 42L324 43L324 44L323 43L322 44L322 43L322 42L322 41L322 40L322 39L322 38L322 37L323 36L322 36L323 36L323 37L323 38L324 39ZM173 38L171 38L170 38L171 37L170 36L172 35L173 35L174 35L174 36L174 37L173 38ZM193 34L192 35L191 35L191 34L192 34L193 34ZM27 33L26 33L25 33L26 32L27 32L28 32L27 33ZM177 31L176 32L177 32L178 32L178 33L177 34L178 34L179 35L180 36L180 37L182 37L182 38L181 38L181 39L179 39L178 39L177 39L176 40L175 40L174 40L176 39L177 39L175 38L176 38L175 37L177 37L177 36L176 35L175 35L175 34L174 35L174 34L174 33L174 32L175 31L176 31L177 31ZM14 30L13 30L14 30ZM98 27L97 28L96 28L97 27L98 27ZM8 26L9 26L10 26L10 27L11 27L10 27L9 27L8 27L8 26ZM95 24L95 25L96 25L97 25L98 26L99 26L100 26L99 27L97 26L96 26L94 27L94 26L93 26L94 26L94 25L94 24L95 24ZM165 24L166 25L165 26L162 26L161 27L160 26L157 26L158 26L156 25L158 25L156 24L158 24L159 24L161 24L162 24L164 23L165 24ZM104 23L103 23L103 22L104 22L105 22L105 23L104 23ZM5 23L6 24L5 23L8 23L10 24L9 24L7 25L7 26L6 26L5 25L4 25L3 24L2 25L1 24L0 24L1 25L0 25L0 21L2 22L5 23ZM84 21L82 21L80 21L81 20L82 20L83 20L84 21ZM360 19L359 19L360 18L360 19ZM1 19L0 19L0 18L1 18L2 19L1 19ZM89 21L89 22L91 21L92 21L92 22L93 23L94 22L94 21L94 20L96 20L97 20L99 21L98 22L99 22L99 23L97 24L95 24L94 23L94 24L93 25L92 26L90 26L89 26L89 27L88 27L87 28L86 29L85 30L85 31L87 31L87 32L88 33L89 33L91 33L92 34L93 34L94 34L95 35L97 35L98 35L98 36L98 37L99 38L100 39L101 38L101 37L101 36L100 35L102 35L103 34L103 33L103 32L101 31L103 30L102 29L102 28L103 27L104 28L105 28L106 28L107 28L108 28L109 29L110 29L110 30L111 31L112 31L112 32L114 31L115 30L116 31L117 32L119 33L118 34L120 34L120 35L122 35L123 35L123 36L124 36L124 37L124 38L123 39L121 39L120 40L118 40L116 40L115 40L114 40L113 40L111 41L110 42L109 43L110 43L111 42L113 41L115 41L116 41L115 42L115 43L116 44L117 44L118 44L119 43L120 44L119 45L117 45L116 46L115 46L114 46L116 45L114 45L113 45L112 46L111 46L110 46L109 47L109 48L110 48L109 49L108 49L107 49L106 49L108 49L107 49L106 49L106 50L105 51L104 51L105 51L105 52L104 53L104 52L104 51L103 51L104 52L103 52L104 52L104 53L104 54L104 55L103 55L102 56L101 56L101 57L100 57L99 58L99 59L99 60L99 61L99 62L100 63L100 64L100 65L99 65L99 64L98 64L98 63L97 63L97 62L97 61L96 60L95 60L94 60L92 60L91 60L90 60L91 60L91 61L90 61L89 61L88 60L87 60L86 60L85 61L84 61L83 62L83 63L83 64L82 65L82 66L82 67L82 68L83 69L83 70L84 71L85 71L86 72L87 71L88 71L89 71L89 70L90 69L91 69L92 69L93 68L93 69L93 70L92 70L93 71L92 71L92 72L92 71L92 72L92 73L91 74L92 74L93 74L94 74L95 74L96 74L96 75L97 75L97 76L96 76L96 77L97 77L97 78L96 78L96 79L97 80L98 81L99 81L100 81L100 80L101 80L101 81L102 81L103 81L104 81L104 80L105 79L106 79L107 79L107 78L108 78L109 78L108 79L108 80L108 81L109 81L109 80L109 79L110 79L110 78L110 79L111 79L112 79L113 79L114 79L114 80L115 80L116 80L116 79L117 79L118 79L117 80L118 80L119 81L120 81L120 82L121 82L122 83L122 84L123 84L124 84L125 84L126 84L127 85L128 85L128 86L129 86L129 88L130 88L130 89L129 90L130 90L131 90L131 91L132 91L133 91L135 92L136 92L135 93L137 92L139 93L140 93L141 94L143 95L144 95L145 95L145 97L145 99L144 100L143 101L142 102L142 103L141 103L141 104L141 106L141 107L141 108L140 108L140 110L139 111L139 112L138 112L138 113L137 113L135 113L135 114L134 114L132 115L132 116L131 117L132 117L131 118L131 119L130 119L129 121L128 122L127 123L127 124L126 124L125 125L124 125L123 124L122 124L123 125L123 126L123 127L122 128L121 129L119 129L118 129L118 130L118 131L117 131L116 131L115 131L115 132L116 132L117 133L116 133L115 133L115 135L114 135L113 135L113 136L112 136L113 137L114 137L114 138L113 139L112 140L111 140L111 141L111 142L112 142L111 142L110 143L109 143L109 144L107 144L106 143L105 142L105 141L105 140L104 139L105 138L106 137L104 137L105 136L106 134L107 134L107 132L106 133L106 132L106 130L107 129L106 128L106 127L107 127L107 126L108 124L109 122L108 121L109 120L109 119L109 118L109 116L110 114L110 111L110 110L110 108L109 108L109 107L107 106L105 105L104 105L104 104L103 102L102 100L101 98L100 97L99 97L99 96L99 95L99 94L100 93L100 92L100 93L99 92L99 91L100 90L100 89L101 89L101 88L102 87L103 86L103 85L102 84L103 84L103 83L102 83L102 82L101 81L100 81L100 82L100 83L99 83L99 82L98 82L97 82L96 82L96 81L95 80L94 80L94 79L93 78L92 77L93 77L92 77L91 77L90 76L89 76L88 76L88 75L87 74L86 74L85 74L84 74L83 74L82 74L81 73L80 73L79 73L78 72L76 72L76 71L75 71L75 70L74 70L75 69L74 69L75 69L74 68L74 67L73 66L72 65L71 64L70 63L69 62L68 62L68 61L67 60L67 59L66 58L65 58L65 59L65 60L66 60L66 61L67 61L67 62L68 62L68 63L69 64L69 65L69 66L70 66L71 67L70 67L69 66L68 66L68 65L68 64L67 64L67 63L66 63L65 62L66 62L66 61L65 61L64 60L64 59L63 58L63 57L62 56L61 56L60 56L59 55L58 54L57 52L56 51L56 50L56 49L56 48L55 47L56 46L56 44L56 43L56 42L55 42L57 42L57 43L58 43L58 42L57 41L55 40L54 40L53 39L52 38L51 37L51 36L49 36L49 35L48 35L48 34L46 33L46 32L45 32L43 32L42 31L40 30L39 30L37 30L36 30L34 30L33 29L32 29L32 30L31 30L30 30L29 31L28 31L28 30L29 29L30 29L29 29L28 29L27 30L26 31L27 31L26 32L25 32L24 33L23 33L22 34L20 34L19 35L18 35L17 35L15 36L15 35L16 35L17 35L18 34L19 34L20 34L21 33L22 33L22 32L23 31L22 31L21 31L21 32L20 31L19 31L18 31L18 30L17 30L16 30L15 30L15 29L14 28L15 27L16 27L17 27L18 26L18 27L19 26L18 26L19 25L18 25L17 26L16 25L15 26L14 25L13 25L12 24L13 24L16 23L16 24L18 24L18 23L16 23L16 22L15 22L13 22L14 21L16 21L17 21L17 20L18 20L19 20L21 19L22 19L23 19L25 19L26 19L28 19L29 20L30 19L32 20L34 20L35 20L36 20L38 20L39 20L41 21L42 21L43 21L44 21L46 20L47 20L49 20L50 20L51 20L52 20L53 20L54 21L56 20L56 21L57 20L59 20L60 21L62 21L64 21L65 21L66 22L65 22L67 22L69 22L70 22L71 23L72 22L71 22L72 21L73 21L74 21L75 21L76 22L77 22L79 22L80 22L82 22L81 22L82 21L84 22L84 23L85 22L86 21L85 20L84 20L84 19L85 18L86 18L87 19L88 20L89 21ZM66 17L65 17L68 17L69 18L70 17L71 17L72 18L72 17L73 17L75 17L75 18L76 19L77 20L79 20L77 20L78 21L76 21L74 21L73 21L71 21L68 21L67 21L66 21L65 21L64 21L63 20L65 20L66 20L68 20L66 19L64 19L62 19L64 19L62 19L61 18L62 17L65 17L66 17ZM76 17L75 17L73 17L73 16L75 16L76 17ZM104 17L103 17L102 17L101 17L100 17L99 17L99 16L100 16L102 16L104 17ZM93 17L94 17L95 17L98 16L99 17L99 18L101 18L102 17L104 18L106 18L106 19L108 18L109 19L111 19L112 20L113 21L111 21L114 22L115 22L117 23L118 23L118 24L116 25L115 25L113 24L112 24L113 25L114 25L115 26L115 27L114 27L111 26L113 27L114 28L111 28L109 27L108 27L108 26L107 26L105 25L105 26L102 26L101 25L102 25L104 25L106 25L106 24L107 23L107 22L105 21L103 21L104 21L103 20L102 20L101 20L99 20L95 20L93 20L91 20L90 19L92 19L90 19L90 18L91 17L92 16L94 16L93 17ZM80 16L81 16L83 16L83 17L82 17L83 17L83 18L82 19L81 19L80 18L78 17L80 17L78 17L80 16ZM324 17L322 17L320 17L321 16L322 16L323 17L324 17ZM87 17L86 18L85 18L84 17L85 16L88 16L89 16L88 17L87 17ZM60 19L57 19L56 19L54 18L55 17L56 16L55 16L58 16L60 16L62 16L63 16L64 17L63 17L61 17L60 18L60 19ZM331 15L330 15L328 15L326 15L328 15L331 15ZM86 15L84 15L83 15L84 15L85 14L86 15ZM325 14L324 15L321 15L319 15L317 15L318 14L319 14L321 14L325 14ZM82 13L82 14L82 15L80 15L79 15L79 14L77 14L79 14L80 13L81 13L82 13ZM72 14L73 14L74 14L74 15L70 15L68 16L66 16L66 15L68 15L64 15L62 15L64 14L65 14L67 14L69 14L71 15L70 14L70 13L71 13L72 14ZM238 19L237 19L234 19L233 19L232 19L231 18L232 18L232 17L234 16L236 15L238 14L241 14L244 14L246 13L248 13L249 13L248 14L245 14L242 15L238 16L237 17L235 18L236 18L238 19ZM85 13L86 13L88 13L89 14L90 14L91 14L92 14L94 15L95 14L97 14L99 14L100 15L98 16L97 15L94 16L92 16L90 15L88 15L87 15L87 14L86 14L84 14L83 13L85 13ZM64 12L64 13L63 13L62 14L60 14L59 14L57 14L59 13L61 12L62 13L64 12ZM287 13L287 14L288 13L291 13L293 14L294 14L294 15L293 15L290 16L289 16L291 16L292 16L293 16L294 17L294 16L296 16L299 16L299 17L303 17L303 16L305 16L307 16L309 17L309 18L308 18L310 19L311 19L312 18L314 19L316 18L317 19L318 18L320 19L319 18L320 17L330 18L333 19L337 19L339 19L340 20L341 21L342 20L344 20L346 21L348 20L350 21L351 21L350 20L354 20L356 20L359 21L360 21L360 25L359 25L357 25L358 26L359 27L359 28L357 27L355 28L354 28L352 29L351 30L350 30L349 29L346 30L345 30L344 30L343 31L342 32L343 32L343 34L342 34L342 35L340 36L340 37L339 37L338 38L337 39L336 38L336 37L335 35L336 33L337 33L337 32L338 32L340 31L342 30L344 29L344 27L343 28L340 29L339 28L337 29L334 30L335 31L333 31L331 31L331 30L330 30L329 31L325 31L322 31L319 33L315 35L317 35L317 36L318 36L319 36L320 36L321 37L321 38L321 39L321 40L320 42L319 43L318 44L317 45L316 46L315 47L314 47L313 47L312 47L311 47L311 48L310 48L310 49L309 49L309 50L308 50L308 51L307 51L308 51L309 53L309 54L309 55L308 55L307 56L306 56L306 55L307 54L306 53L307 53L306 52L305 52L305 51L305 50L304 50L303 50L302 51L301 51L302 51L301 50L302 50L302 49L301 49L300 50L299 51L298 51L298 52L299 52L299 53L300 53L301 52L302 53L303 53L301 53L301 54L300 54L299 55L300 56L301 57L301 58L302 58L302 59L301 59L302 60L302 61L302 62L301 62L300 63L300 64L299 65L297 66L296 67L295 67L294 68L294 67L293 68L292 68L291 69L290 70L290 69L289 68L288 68L287 69L286 70L286 71L286 72L287 73L288 74L289 75L289 77L289 78L288 79L287 80L286 80L285 81L285 80L284 80L283 79L283 78L282 77L281 77L280 77L280 78L279 79L279 80L279 81L280 81L280 82L280 83L281 83L282 83L282 84L283 84L283 85L283 86L283 87L284 87L284 88L284 89L283 88L281 87L281 86L281 85L280 85L280 84L280 83L279 82L278 82L278 81L279 80L278 79L279 79L278 78L279 77L278 76L278 75L278 74L277 73L277 74L275 74L274 74L275 73L274 72L274 71L274 70L273 70L272 69L272 68L271 67L270 67L271 68L270 68L269 68L268 68L267 69L266 70L265 71L264 72L263 72L262 73L262 74L261 74L260 74L260 75L260 76L260 77L260 78L260 80L259 80L259 81L258 81L258 82L257 81L256 80L256 79L255 78L255 77L255 76L254 75L254 74L253 72L253 71L253 70L253 69L251 69L250 69L249 68L250 68L249 67L248 66L247 66L247 65L246 65L245 65L243 65L241 65L240 65L239 64L237 64L237 63L236 63L235 64L233 63L232 62L231 61L230 60L229 60L228 60L228 61L229 62L229 63L230 63L230 64L231 65L231 64L232 64L232 65L231 65L232 66L233 66L234 66L235 65L236 64L236 65L237 66L238 66L239 66L239 67L240 67L240 68L239 68L239 69L238 70L238 71L237 71L237 72L236 72L235 72L235 73L234 73L233 73L232 74L231 75L230 75L229 76L228 76L227 76L227 77L226 77L225 77L224 77L223 77L223 76L223 75L223 74L223 73L222 73L222 72L221 71L220 70L219 69L219 68L219 67L218 66L217 66L217 65L217 64L216 63L215 62L215 61L215 60L215 61L214 62L213 62L212 60L213 61L213 62L214 64L215 65L216 66L215 66L216 67L217 68L217 69L217 70L217 71L218 72L219 73L219 74L220 75L221 76L222 76L222 77L223 77L223 78L223 79L224 79L224 80L225 80L226 79L227 79L228 79L229 79L230 78L231 78L231 79L231 80L231 81L230 82L229 83L229 85L228 86L227 87L226 88L224 89L223 90L222 91L222 92L221 92L220 93L220 94L219 95L219 96L219 97L219 98L220 99L220 100L220 101L220 102L221 103L221 104L221 105L220 105L220 106L219 107L217 108L216 109L215 110L215 111L215 112L216 112L216 113L215 114L216 114L215 114L214 115L213 115L213 116L213 117L212 118L212 119L211 119L211 120L210 121L209 122L208 123L207 123L206 124L205 124L204 124L203 124L202 124L201 124L200 125L199 124L198 124L198 123L198 122L198 121L197 120L196 119L196 118L195 117L195 116L195 115L194 114L194 113L194 112L193 111L193 110L193 109L192 108L192 107L192 106L192 105L192 104L193 104L193 103L193 102L194 102L194 101L193 100L193 99L193 98L193 97L192 96L192 95L191 94L190 93L189 92L189 91L189 90L189 89L190 88L190 87L189 86L188 86L189 85L187 86L186 86L185 85L185 84L184 84L183 84L182 84L181 84L179 85L178 85L177 85L176 85L175 85L174 85L173 85L172 86L171 85L170 84L169 84L169 83L168 83L167 82L167 81L166 81L166 80L165 80L165 79L164 79L164 78L163 78L163 77L163 76L162 75L163 75L163 74L164 74L163 73L164 73L164 72L164 71L164 70L163 69L163 68L164 67L164 66L165 66L165 65L165 64L166 64L166 63L167 62L168 62L169 61L170 61L170 60L170 59L171 58L171 57L172 56L173 56L174 55L174 54L175 54L175 55L176 55L177 55L178 55L179 54L180 54L181 54L181 53L183 53L185 53L186 53L187 53L188 53L190 53L191 53L191 54L191 55L190 56L191 56L191 57L193 57L194 57L195 58L196 59L197 59L198 59L199 60L200 59L200 58L201 57L202 57L203 57L203 58L204 58L205 58L206 58L207 59L208 59L209 59L210 59L211 58L212 59L213 59L214 59L215 58L214 58L215 58L215 57L215 56L216 55L216 54L216 53L215 53L214 54L213 54L212 53L211 53L210 54L209 53L208 53L207 52L206 52L207 51L206 51L207 50L209 50L209 49L211 49L212 48L214 48L215 48L217 49L218 49L220 49L222 48L221 47L220 47L219 46L218 45L217 45L218 44L218 43L219 43L218 43L217 43L216 43L215 44L216 45L217 45L216 45L215 45L214 46L213 45L214 45L212 45L213 44L214 44L213 44L212 44L212 43L211 43L210 44L210 45L209 45L209 46L208 47L208 48L209 49L208 49L207 49L206 50L206 49L205 49L204 49L204 50L203 50L203 51L204 51L204 52L203 52L203 53L203 54L202 54L202 53L201 52L201 51L200 51L200 50L199 50L199 49L200 48L199 48L198 48L198 47L197 47L196 46L195 46L195 45L194 45L194 44L193 44L192 45L193 46L194 46L194 47L195 48L196 48L197 49L198 49L198 50L197 50L196 50L197 51L196 52L196 51L196 50L195 50L195 49L194 49L193 49L192 48L191 48L191 47L190 46L189 46L188 46L187 46L187 47L185 47L183 47L183 48L182 49L181 49L180 50L180 51L180 52L179 52L179 53L178 53L177 53L176 53L175 54L174 54L173 53L172 53L171 53L171 52L170 51L171 51L171 50L171 49L171 48L171 47L172 46L173 46L175 46L176 47L178 47L179 46L179 44L178 43L177 42L176 42L175 41L177 41L178 41L178 40L179 41L181 40L182 39L183 39L184 38L185 37L186 36L187 37L187 36L188 36L189 36L189 35L188 34L188 33L189 33L190 33L191 32L191 33L190 33L191 34L190 34L190 35L191 36L192 36L193 36L194 36L195 36L196 35L198 35L199 35L199 36L200 36L200 35L201 35L201 34L201 33L202 33L203 32L203 33L204 33L204 32L203 31L205 31L206 30L207 31L208 31L209 30L208 29L206 30L204 30L203 30L202 30L201 29L202 28L201 27L202 27L202 26L205 25L205 24L204 24L202 24L201 25L201 26L200 26L198 27L197 29L198 29L199 30L198 31L197 31L196 33L196 34L195 34L194 35L193 35L193 34L192 33L191 31L190 31L188 32L187 32L186 31L185 30L185 28L186 27L189 27L191 26L192 24L195 22L196 21L199 20L201 20L203 20L205 19L206 19L208 19L211 20L210 20L211 20L212 20L214 21L217 21L220 22L221 23L220 24L218 24L214 23L213 23L215 24L215 26L216 26L217 26L217 25L220 25L222 24L223 24L224 24L225 23L224 23L224 22L223 21L226 22L227 22L226 22L226 23L228 23L228 22L230 22L234 21L233 22L235 22L237 22L239 21L240 22L241 21L240 20L241 20L244 20L245 21L249 22L249 21L248 21L247 21L247 20L247 19L249 18L249 17L250 17L253 17L253 18L252 19L253 20L253 21L254 22L253 22L251 24L252 24L253 23L254 23L255 22L254 22L255 21L254 21L254 20L254 19L253 19L255 18L255 17L256 18L255 19L256 19L256 18L258 18L260 18L262 18L261 17L261 16L262 16L265 16L267 16L266 16L267 15L268 15L270 14L273 14L276 14L277 14L279 14L281 14L281 13L282 13L284 12L286 13L285 13L287 13ZM229 49L230 49L230 50L229 51L229 52L230 53L231 53L232 53L234 53L234 52L234 51L233 51L233 50L233 49L234 49L235 49L234 48L233 48L233 49L233 48L232 48L233 48L233 47L231 47L231 46L230 46L230 45L231 45L232 45L233 45L233 44L233 43L232 43L231 43L230 43L229 44L228 44L227 45L228 46L227 47L229 48L229 49ZM86 12L86 13L84 12L86 12ZM70 12L68 13L66 12L67 12L69 12L70 12ZM205 12L202 13L201 12L203 12L205 12ZM70 11L69 12L67 12L67 11L68 11L69 11L70 11ZM84 12L83 12L82 12L81 12L81 11L83 11L84 12ZM80 12L79 12L77 12L75 12L76 11L75 11L76 11L79 11L80 12ZM285 12L279 12L281 11L282 11L283 11L285 11L285 12ZM198 10L202 11L199 11L198 12L197 13L196 13L194 13L195 12L193 12L191 11L190 10L193 10L194 10L195 10L196 10L197 10L198 10ZM205 10L207 10L206 10L203 11L200 10L198 10L197 10L200 9L202 10L203 9L205 10ZM231 9L230 10L229 10L228 10L227 10L227 9L225 9L227 9L228 9L229 9L230 9L232 9L231 9ZM280 11L278 11L275 11L273 11L273 10L271 10L274 9L276 9L278 9L280 10L280 11ZM93 10L94 11L93 11L91 12L89 12L87 12L86 11L87 11L85 11L84 10L83 10L84 9L85 9L86 9L85 9L88 9L89 9L91 9L92 10L93 10ZM112 7L114 7L116 7L118 7L118 8L116 8L113 8L112 8L115 8L112 9L111 9L109 10L107 10L106 11L103 11L104 11L105 11L104 12L102 12L100 13L102 13L99 14L97 14L94 14L92 14L91 14L90 13L92 13L92 12L95 12L94 12L92 12L93 11L95 11L93 10L96 10L97 10L98 10L96 9L92 9L91 9L90 9L89 8L88 8L90 8L91 8L93 8L95 7L96 7L97 8L98 7L99 7L101 7L104 7L107 7L109 7L112 7ZM153 6L159 7L157 8L153 8L148 8L149 8L152 8L155 8L157 8L158 8L157 9L159 8L164 8L167 8L168 9L164 9L163 10L160 10L162 10L161 11L160 11L160 12L162 13L160 13L158 13L160 14L160 15L159 15L161 16L158 16L160 16L159 17L158 17L156 17L158 17L158 18L156 17L155 18L157 18L158 19L156 20L156 19L154 19L155 19L154 20L156 20L158 20L155 21L152 22L149 22L148 22L147 22L146 23L144 24L143 24L142 24L140 25L139 25L139 26L139 27L137 27L138 28L137 29L137 30L135 30L134 29L132 29L131 29L130 28L128 26L128 25L126 24L127 23L126 23L127 22L129 21L129 20L128 20L127 21L125 20L126 19L127 19L129 19L127 19L126 18L125 19L124 18L125 17L124 16L123 15L121 15L121 14L119 14L117 14L114 14L111 14L110 14L109 13L111 13L113 13L109 12L107 12L111 11L114 11L115 10L112 10L113 9L116 9L118 9L117 8L120 8L123 8L126 8L127 8L130 8L132 8L133 8L135 8L133 8L133 7L137 7L140 7L141 6L145 6L153 6Z";var Fs=360,br=180,vr=n=>n+180,Lr=n=>90-n,um=9,ed=23.44,td=66.56,ad=n=>n===0?"0":`${Math.abs(n)}\xB0${n>0?"E":"W"}`,rd=n=>n===0?"0":`${Math.abs(n)}\xB0${n>0?"N":"S"}`;function fm(n){let a=[],e=[],t=null;for(let r of n)t!==null&&Math.abs(r.longitude-t)>180&&(e.length&&a.push(e),e=[]),e.push(`${vr(r.longitude)},${Lr(r.latitude)}`),t=r.longitude;return e.length&&a.push(e),a.filter(r=>r.length>1).map(r=>r.join(" "))}var sd={mc:"MC",ic:"IC",ascendant:"ASC",descendant:"DSC"},qt=class extends f{constructor(){super(...arguments);this.chartViewport=new ne(this)}updated(e){super.updated(e);for(let t of this.renderRoot.querySelectorAll('svg[part="chart"]')){if(typeof t.getBBox!="function")continue;let{x:r,y:i,width:l,height:c}=t.getBBox();t.setAttribute("viewBox",[r-1,i-1,l+2,c+2].join(" "))}}renderData(e){let t=e.lines??[],r=e.birthDetails;return s`<div class="wrap" part="card"><header part="header"><h2>${this.t("Astrocartography")}</h2>${r?s`<p class="roxy-label">${Y(this.effectiveLang(),r.date,r.time)} · ${rd(Math.round(r.latitude))} ${ad(Math.round(r.longitude))}</p>`:o}</header>${this.chartViewport.renderChartViewport(this.renderMap(t,r),this.t("Astrocartography"),this.translator)} ${this.renderLegend(t)} ${e.summary&&!this.hideReadings?s`<p class="summary">${e.summary}</p>`:o} ${this.renderInterpretations(t)}</div>`}renderMap(e,t){return s`<svg viewBox="0 0 ${Fs} ${br}" part="chart" role="img" aria-label="${this.t("World map of planetary astrocartography lines")}"><title>${this.t("Astrocartography world map")}</title><desc>${this.t("Equirectangular world map. Each body has a Midheaven and Imum Coeli meridian and a curved Ascendant and Descendant line, colored per body.")}</desc><rect class="map-frame" x="0" y="0" width="${Fs}" height="${br}"/><path class="land" d="${Qc}" fill-rule="evenodd"/>${this.renderGraticule()} ${this.renderBodyLines(e)} ${t?F`<text class="birthplace roxy-glyph" x=${vr(t.longitude)} y=${Lr(t.latitude)} text-anchor="middle" dominant-baseline="central"><title>${this.t("Birth location")}</title>${Uc}</text>`:o}</svg>`}renderGraticule(){let e=[];for(let i=-150;i<=150;i+=30){let l=vr(i),c=i===0;e.push(F`<line class=${c?"grat-axis":"grat"} x1=${l} y1="0" x2=${l} y2=${br} />`),e.push(F`<text class="axis-label" x=${l} y=${br-2} text-anchor="middle">${ad(i)}</text>`)}let t=[];for(let i=-60;i<=60;i+=30){let l=Lr(i),c=i===0;t.push(F`<line class=${c?"grat-axis":"grat"} x1="0" y1=${l} x2=${Fs} y2=${l} />`),t.push(F`<text class="axis-label" x="2" y=${l-1}>${rd(i)}</text>`)}let r=[ed,-ed,td,-td].map(i=>F`<line class="grat-ref" x1="0" y1=${Lr(i)} x2=${Fs} y2=${Lr(i)} />`);return F`${e}${t}${r}`}renderBodyLines(e){let t=e.map((h,m)=>{let g=x(h,"planet");return{line:h,name:g,color:Za(h.planet,m),glyph:C(h.planet)??g}}),r=h=>h.reduce((m,g)=>Math.abs(g.latitude)<Math.abs(m.latitude)?g:m,h[0]??{latitude:0,longitude:0}),i=h=>new Map(ze(t,m=>h(m)+180,um).map(({item:m,displayLongitude:g})=>[m,g-180])),l=i(h=>h.line.mc.longitude),c=i(h=>h.line.ic.longitude),d=i(h=>r(h.line.ascendant.points??[]).longitude),p=i(h=>r(h.line.descendant.points??[]).longitude);return t.map(h=>{let{line:m,name:g,color:b,glyph:w}=h,S=R=>R.get(h)??0;return F`${[this.renderMeridian(m.mc.longitude,S(l),b,w,g,"mc",false),this.renderMeridian(m.ic.longitude,S(c),b,w,g,"ic",true),this.renderCurve(m.ascendant.points,{longitude:S(d),latitude:r(m.ascendant.points??[]).latitude},b,w,g,"ascendant",false),this.renderCurve(m.descendant.points,{longitude:S(p),latitude:r(m.descendant.points??[]).latitude},b,w,g,"descendant",true)]}`})}renderMeridian(e,t,r,i,l,c,d){let p=vr(e),h=c==="ic"?br-16:9;return F`<g>
|
|
4
|
+
<line class=${`acg-line${d?" dashed":""}`} stroke=${r} x1=${p} y1="0" x2=${p} y2=${br}><title>${this.t("{{planet}} {{angle}} line",{planet:l,angle:this.t(sd[c]??"MC")})}</title></line>
|
|
5
5
|
<text class="acg-glyph roxy-glyph" fill=${r} x=${vr(t)} y=${h} text-anchor="middle" dominant-baseline="central">${i}</text>
|
|
6
|
-
</g>`}renderCurve(e,t,r,i,l,c,d){let p=
|
|
7
|
-
${p.map(h=>F`<polyline class=${`acg-line${d?" dashed":""}`} stroke=${r} points=${h}><title>${this.t("{{planet}} {{angle}} line",{planet:l,angle:this.t(
|
|
6
|
+
</g>`}renderCurve(e,t,r,i,l,c,d){let p=fm(e??[]);return p.length===0?o:F`<g>
|
|
7
|
+
${p.map(h=>F`<polyline class=${`acg-line${d?" dashed":""}`} stroke=${r} points=${h}><title>${this.t("{{planet}} {{angle}} line",{planet:l,angle:this.t(sd[c]??"MC")})}</title></polyline>`)}
|
|
8
8
|
<text class="acg-glyph roxy-glyph" fill=${r} x=${vr(t.longitude)} y=${Lr(t.latitude)} text-anchor="middle" dominant-baseline="central">${i}</text>
|
|
9
|
-
</g>`}renderLegend(e){return e.length===0?o:s`<div class="legend" part="legend">${e.map((t,r)=>{let i=Za(t.planet,r);return s`<span class="legend-item"><span class="legend-swatch" style="${`border-block-start-color: ${i}`}"></span> ${ce(C(t.planet))}${x(t,"planet")}</span>`})} <span class="legend-note">${this.t("Solid lines are the Ascendant and Midheaven, dashed are the Descendant and IC.")}</span></div>`}renderInterpretations(e){return e.length===0||this.hideReadings?o:s`<section class="block" part="section readings"><h3>${this.t("Planetary lines")}</h3>${e.map((t,r)=>{let i=Za(t.planet,r),l=[["MC",t.mc.interpretation],["IC",t.ic.interpretation],["AC",t.ascendant.interpretation],["DC",t.descendant.interpretation]];return s`<details class="interp-card" part="reading" name="acg-lines" ?open="${r===0}"><summary><span class="interp-lead"><span class="interp-dot" style="${`background: ${i}`}"></span> ${ce(C(t.planet))}${x(t,"planet")} </span>${V()}</summary><div class="interp-body">${l.filter(([,c])=>c).map(([c,d])=>s`<p class="interp-line"><span class="code">${c}</span>${d}</p>`)}</div></details>`})}</section>`}};qt.endpoints=Ao,qt.styles=[v,pe,O,H,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}header{gap:var(--roxy-space-xs);display:grid}svg{border-radius:var(--roxy-radius-sm);width:100%;height:auto;display:block}.map-frame{fill:color-mix(in srgb, var(--roxy-border) 12%, transparent);stroke:var(--roxy-border);stroke-width:.8px}.land{fill:var(--roxy-secondary);opacity:.13}.grat{stroke:var(--roxy-border);stroke-width:.4px;fill:none}.grat-axis{stroke:var(--roxy-muted);stroke-width:.6px;opacity:.6}.grat-ref{stroke:var(--roxy-secondary);stroke-width:.4px;stroke-dasharray:2 2;opacity:.5;fill:none}.axis-label{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .3125)}.acg-line{fill:none;stroke-width:1px;opacity:.95}.acg-line.dashed{stroke-dasharray:4 2.5}.acg-glyph{font-size:calc(var(--roxy-text-base) * .5);font-weight:var(--roxy-weight-bold)}.birthplace{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .5625)}.legend{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.legend-item{align-items:center;gap:var(--roxy-space-xs);display:inline-flex}.legend-swatch{inline-size:var(--roxy-space-md);border-block-start:var(--roxy-line-thick) solid;block-size:0}.legend-note{width:100%}.summary,.interp-line{font-size:var(--roxy-text-sm)}.interp-dot{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);flex-shrink:0;align-self:center}.interp-line .code{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold);margin-inline-end:var(--roxy-space-xs)}`],qt=y([L("roxy-astrocartography-map")],qt);var um=new Set(["wood","fire","earth","metal","water"]);function Se(n){let a=xe(n??"");return um.has(a)?`element-${a}`:""}var We=u`.element-wood{--_element:var(--roxy-success);--_element-ink:var(--roxy-success-fg)}.element-fire{--_element:var(--roxy-danger);--_element-ink:var(--roxy-danger-fg)}.element-earth{--_element:var(--roxy-warning);--_element-ink:var(--roxy-warning-fg)}.element-metal{--_element:var(--roxy-secondary);--_element-ink:var(--roxy-secondary)}.element-water{--_element:var(--roxy-info);--_element-ink:var(--roxy-info-fg)}.element-word{color:var(--_element-ink)}`;var fm={year:"Year",month:"Month",day:"Day",hour:"Hour"},rd={harmonious:"Harmonious",challenging:"Challenging"},sd={"stem-combination":"Stem combination","six-combination":"Six combination",trine:"Trine",clash:"Clash",harm:"Harm",punishment:"Punishment","stem-clash":"Stem clash"},nd={deficient:"Deficient",balanced:"Balanced",excess:"Excess"},Yt=class extends f{renderData(a){let e=this.effectiveLang(),t=Y(e,a.birthData?.date,a.birthData?.time);return s`<article class="card" part="card" aria-labelledby="bazi-title"><header class="head" part="header"><h2 class="title" id="bazi-title">${this.t("Four pillars")}</h2>${t?s`<span class="born">${t}</span>`:o} ${a.zodiacAnimal?s`<span class="roxy-chip animal">${x(a,"zodiacAnimal")}</span>`:o}</header><div class="pillars-wrap" part="chart" role="region" tabindex="0" aria-label="${this.t("Four pillars")}"><div class="pillars">${(a.pillars??[]).map(r=>this.renderPillar(r))}</div></div>${this.renderDayMaster(a)} ${this.renderElements(a)} ${this.renderInteractions(a)} ${a.summary&&!this.hideReadings?s`<p class="summary" part="section summary">${a.summary}</p>`:o} ${Kt(a.conventions,this.translator,this.effectiveLang())}</article>`}renderPillar(a){let e=fm[a.position],t=a.position==="day";return s`<div class="pillar ${t?"pillar-self":""}" part="pillar"><span class="pos roxy-label">${e?this.t(e):E(a.position)}</span> <span class="god">${x(a.tenGod,"name")}</span> <span class="hanzi" lang="zh">${a.stem?.chinese??""}</span> <span class="romanised">${a.stem?.pinyin??""} <span class="element-word ${Se(a.stem?.element)}">${x(a.stem,"element")}</span></span> <span class="hanzi hanzi-branch" lang="zh">${a.branch?.chinese??""}</span> <span class="romanised">${a.branch?.pinyin??""} ${x(a.branch,"animal")}</span> ${a.hiddenStems?.length?s`<hr class="rule"><ul class="hidden" aria-label="${this.t("Hidden stems")}">${a.hiddenStems.map(r=>s`<li><span lang="zh">${r.stem?.chinese??""}</span> <span class="role">${r.role}</span> ${x(r.tenGod,"name")}</li>`)}</ul>`:o} ${a.naYin?s`<hr class="rule"><span class="nayin" title="${this.t("Na Yin")}">${a.naYin}</span>`:o}</div>`}renderDayMaster(a){let e=a.dayMaster;return e?s`<section part="section day-master"><h3 class="block-title">${this.t("Day Master")}</h3><div class="master"><span class="hanzi" lang="zh">${e.chinese??""}</span> <span><b class="element-word ${Se(e.element)}">${x(e,"element")}</b> ${e.polarity??""} ${e.pinyin??""}</span> ${e.nature&&!this.hideReadings?s`<p part="reading">${e.nature}</p>`:o}</div></section>`:o}renderElements(a){let e=a.fiveElements??[];if(e.length===0)return o;let t=this.effectiveLang(),r=e.reduce((i,l)=>i+(l.count??0),0)||1;return s`<section part="section elements"><h3 class="block-title">${this.t("Elements")}</h3><div class="elements">${e.map(i=>s`<div class="element ${Se(i.element)}" part="label-track"><span class="element-word">${x(i,"element")}</span> <span class="element-track"><span class="element-fill" style="width:${(i.count??0)/r*100}%"></span></span> <span class="element-count">${N(t,i.count??0)} ${i.level&&nd[i.level]?this.t(nd[i.level]):i.level??""}</span> ${i.reading&&!this.hideReadings?s`<p class="element-reading" part="reading">${i.reading}</p>`:o}</div>`)}</div></section>`}renderInteractions(a){let e=a.interactions??[];return e.length===0?o:s`<section part="section interactions"><h3 class="block-title">${this.t("Interactions")}</h3><ul class="interactions">${e.map(t=>s`<li class="interaction"><div class="interaction-line"><span lang="zh">${t.chinese??""}</span> <b>${t.type&&sd[t.type]?this.t(sd[t.type]):E(t.type??"")}</b> ${t.quality?s`<span class="roxy-chip tag tag-${t.quality}">${t.quality&&rd[t.quality]?this.t(rd[t.quality]):t.quality}</span>`:o} <span>${(t.positions??[]).join(" ")}</span> ${t.transformsTo?s`<span>${t.transformsTo}</span>`:o} ${t.variety?s`<span>${t.variety}</span>`:o} ${t.type==="punishment"&&typeof t.complete=="boolean"?s`<span class="completeness">${t.complete?this.t("Complete"):this.t("Partial")}</span>`:o}</div>${t.meaning&&!this.hideReadings?s`<p class="interaction-meaning" part="reading">${t.meaning}</p>`:o}</li>`)}</ul></section>`}};Yt.endpoints=Do,Yt.styles=[v,B,We,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-sm) var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.block-title{margin:0}.block-title{margin-block-end:var(--roxy-space-sm)}.born{color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.animal{margin-inline-start:auto}.pillars-wrap{min-width:0;overflow-x:auto}.pillars{grid-template-columns:repeat(4,minmax(12ch,1fr));display:grid}.pillar{gap:var(--roxy-space-xs);padding:var(--roxy-space-sm);border-block-start:var(--roxy-line-thick) solid transparent;text-align:center;align-content:start;display:grid}.pillar+.pillar{border-inline-start:1px solid var(--roxy-border)}.pillar-self{border-block-start-color:var(--roxy-accent)}.pillar-self .pos{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.god{min-block-size:1lh;color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.hanzi{font-size:calc(var(--roxy-text-base) * 2);line-height:var(--roxy-leading-tight)}.hanzi-branch{color:var(--roxy-accent-ink)}.romanised,.nayin,.hidden .role{color:var(--roxy-muted)}.romanised,.nayin{font-size:var(--roxy-text-xs)}.rule{inline-size:100%;margin:calc(var(--roxy-space-unit) / 2) 0;border:0;border-block-start:1px solid var(--roxy-border)}.hidden{gap:calc(var(--roxy-space-unit) / 2);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);text-align:start;margin:0;padding:0;list-style:none;display:grid}.nayin{text-align:start}.master{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.master .hanzi{font-size:calc(var(--roxy-text-base) * 1.5)}.master p{color:var(--roxy-secondary);flex-basis:100%;margin:0}.elements{gap:var(--roxy-space-xs);display:grid}.element{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr) max-content;align-items:center;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:grid}.element-track{background:var(--roxy-border);border-radius:var(--roxy-radius-full);block-size:.25lh;overflow:hidden}:where(.element){--_element:var(--roxy-accent)}.element-fill{background:var(--_element);height:100%;display:block}.element-count{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}.element-reading,.interaction-meaning{color:var(--roxy-secondary);font-size:var(--roxy-text-xs);margin:0}.element-reading{grid-column:1/-1}:is(.master p,.element-reading,.interaction-meaning){border-block-start:0}.interactions{margin:0;padding:0;list-style:none;display:grid}.interaction{gap:calc(var(--roxy-space-unit) / 2);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);display:grid}.interaction:first-child{border-block-start:0;padding-block-start:0}.interaction-line{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.tag-harmonious{color:var(--roxy-success-fg)}.tag-challenging{color:var(--roxy-danger-fg)}.summary{margin:0}`],Yt=y([L("roxy-bazi-chart")],Yt);function Ze(n,a){return!a||!n?.length?"":n.map(e=>a[String(e)]?.[0]).filter(Boolean).join(", ")}function si(n,a){return!a||typeof n!="number"?"":(a[String(n)]??[]).join(", ")}var Wt=class extends f{renderData(a){let e=a.grahas??[],t=a.bhavas??[];if(!e.length&&!t.length)return this.renderEmpty();let r=e.filter(l=>l.moved),i=a.movedCount??r.length;return s`<div class="wrap" part="card" aria-label="${this.t("Bhav Chalit")}"><header class="head" part="header"><h2 class="title">${this.t("Bhav Chalit")}</h2><p class="lede">${i===0?this.t("No graha changes house. The Rashi chart and the Chalit chart agree, which is a normal result rather than a missing reading."):this.t("{{count}} of {{total}} grahas change house between the Rashi chart and the unequal Sripati cusps.",{count:i,total:e.length})}</p>${W(this.effectiveLang(),a.frame,this.translator)}</header>${r.length?s`<div class="moved-list" part="table moved">${r.map(l=>this.renderMoved(l,a.houseThemes))}</div>`:o} ${t.length?s`<details part="details"><summary>${this.t("Bhava cusps and occupants")}</summary><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Bhava cusps and occupants")}"><table part="table"><thead><tr><th>${this.t("Bhava")}</th><th>${this.t("Rashi")}</th><th>${this.t("Start")}</th><th>${this.t("Madhya")}</th><th>${this.t("End")}</th><th>${this.t("Span")}</th><th>${this.t("Grahas")}</th></tr></thead><tbody>${t.map(l=>this.renderBhavaRow(l))}</tbody></table></div></details>`:o}</div>`}renderMoved(a,e){let t=C(a.graha)??"",r=typeof a.bhava=="number"?Ze([a.bhava],e):"";return s`<div class="moved-row"><span class="graha">${t?s`<span class="glyph roxy-glyph">${t}</span>`:o}${a.graha} </span><span class="shift">${this.t("house {{from}} in the Rashi chart, house {{to}} here",{from:a.rashiHouse??"",to:a.bhava??""})} </span>${r?s`<span class="themes">${r}</span>`:o}</div>`}renderBhavaRow(a){let e=(a.grahas??[]).join(", ");return s`<tr><td class="num">${a.house}</td><td>${a.rashi}</td><td class="num">${$(this.effectiveLang(),a.start,2)}°</td><td class="num">${$(this.effectiveLang(),a.madhya,2)}°</td><td class="num">${$(this.effectiveLang(),a.end,2)}°</td><td class="num">${$(this.effectiveLang(),a.span,2)}°</td><td class="occupants">${e}</td></tr>`}};Wt.endpoints=Po,Wt.styles=[v,B,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{gap:var(--roxy-space-xs);display:grid}.title,.lede{margin:0}.lede{font-size:var(--roxy-text-sm)}.moved-row{align-items:baseline;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.shift{font-variant-numeric:tabular-nums}.themes{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.scroll{min-width:0;margin-block-start:var(--roxy-space-sm);overflow-x:auto}table{width:100%}th,td{white-space:nowrap}td.num{font-variant-numeric:tabular-nums}td.occupants{white-space:normal;color:var(--roxy-secondary)}summary{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}`],Wt=y([L("roxy-bhav-chalit-table")],Wt);var id=[{key:"bhavadhipatiBala",source:"Bhavadhipati",color:"var(--roxy-accent)"},{key:"digBala",source:"Dig",color:"var(--roxy-info)"},{key:"drishtiBala",source:"Drishti",color:"var(--roxy-success)"}],Zt=class extends f{renderData(a){let e=a.bhavas??[];if(!e.length)return this.renderEmpty();let t=Math.max(...e.map(r=>r.totalVirupas??0),1);return s`<div class="wrap" part="card" aria-label="${this.t("Bhava Bala")}"><header class="head" part="header"><h2 class="title">${this.t("Bhava Bala")}</h2><p class="subtitle">${a.houseSystem?this.t("Twelve houses ranked by strength on the {{system}} frame",{system:a.houseSystem}):this.t("Twelve houses ranked by strength")}</p>${W(this.effectiveLang(),a.frame,this.translator)}</header><div class="rows" part="table" role="list">${e.map(r=>this.renderBhava(r,t,a.houseThemes))}</div><div class="legend" part="legend" aria-label="${this.t("Component legend")}">${id.map(r=>s`<div class="legend-row"><span class="swatch" style="background:${r.color}" aria-hidden="true"></span> ${this.t("{{component}} Bala",{component:this.t(r.source)})}</div>`)}</div></div>`}renderBhava(a,e,t){let r=typeof a.house=="number"?Ze([a.house],t):"";return s`<article class="row" role="listitem"><div class="row-top"><span class="house">${this.t("House {{n}}",{n:a.house})}</span> <span class="rashi">${a.rashi}</span> ${a.lord?s`<span class="lord">${this.t("lord {{graha}}",{graha:a.lord})}</span>`:o} <span class="total">${this.t("{{value}} rupas",{value:$(this.effectiveLang(),a.totalRupas,2)})} ${typeof a.rank=="number"?s`<span class="rank">#${a.rank}</span>`:o}</span></div><div class="bar" role="img" aria-label="${this.t("Bhava Bala {{value}} virupas",{value:$(this.effectiveLang(),a.totalVirupas,1)})}">${id.map(i=>{let l=Math.max(0,a[i.key]??0);return l>0?s`<span class="seg" style="width:${l/e*100}%;background:${i.color}" title="${this.t("{{component}} {{value}} virupas",{component:this.t(i.source),value:$(this.effectiveLang(),l,1)})}"></span>`:o})}</div>${r?s`<p class="themes">${r}</p>`:o}</article>`}};Zt.endpoints=_o,Zt.styles=[v,B,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{gap:var(--roxy-space-xs);display:grid}.title,.subtitle,.themes{margin:0}.subtitle{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.row{gap:var(--roxy-space-xs);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);grid-template-columns:minmax(0,1fr);display:grid}.row:last-child{border-block-end:0}.row-top{align-items:baseline;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.house{min-width:9ch;font-weight:var(--roxy-weight-bold)}.rashi{color:var(--roxy-secondary)}.lord{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.total{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold);margin-inline-start:auto}.rank{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;margin-inline-start:var(--roxy-space-xs)}.bar{border-radius:var(--roxy-radius-full);background:color-mix(in srgb, var(--roxy-border) 55%, transparent);block-size:.5lh;display:flex;overflow:hidden}.seg{height:100%}.themes{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.legend{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-xs);color:var(--roxy-muted);flex-wrap:wrap;display:flex}.legend-row{align-items:center;gap:var(--roxy-space-xs);display:flex}.swatch{border-radius:var(--roxy-radius-sm);block-size:.6lh;inline-size:1.5ch}`],Zt=y([L("roxy-bhava-bala-table")],Zt);var Fr=["physical","emotional","intellectual","intuitive"],Gs={physical:"Physical",emotional:"Emotional",intellectual:"Intellectual",intuitive:"Intuitive"};function Xt(n,a){let e=Gs[n];return e?a(e):E(n)}var Fs={physical:"var(--roxy-danger)",emotional:"var(--roxy-info)",intellectual:"var(--roxy-success)",intuitive:"color-mix(in oklab, var(--roxy-info) 50%, var(--roxy-danger))",aesthetic:"var(--roxy-warning)",awareness:"color-mix(in oklab, var(--roxy-danger) 70%, var(--roxy-info))",spiritual:"color-mix(in oklab, var(--roxy-success) 50%, var(--roxy-info))",passion:"color-mix(in oklab, var(--roxy-danger) 50%, var(--roxy-warning))",mastery:"var(--roxy-accent)",wisdom:"var(--roxy-muted)"},xm={ascending:"ascending through zero",descending:"descending through zero"},bm={double:"Double day",triple:"Triple day"},dt=class extends f{constructor(){super(...arguments);this.mode="daily"}renderData(e){return this.mode==="critical-days"&&"criticalDays"in e?this.renderCritical(e):this.mode==="forecast"&&"days"in e?this.renderForecast(e):this.renderDaily(e)}renderDaily(e){let t=e.quickRead??{},r=Object.entries(t).map(([l,c])=>{let d=typeof c=="number"?c:0,p=Math.abs(d)>1?d/100:d;return[l,p]}),i=e.spotlight;return s`<section class="wrap" part="card" aria-label="${this.t("Daily biorhythm")}"><header class="head" part="header"><h2>${this.t("Biorhythm")}</h2><div class="head-meta">${e.overallPhase?s`<span class="roxy-chip">${E(e.overallPhase)}</span>`:o} ${typeof e.energyRating=="number"?s`<span class="energy">${this.t("Energy {{value}}/10",{value:e.energyRating})}</span>`:o}</div></header>${i?s`<div class="spotlight" part="details spotlight" style="${`border-inline-start-color: ${Fs[i.cycle]??"var(--roxy-accent)"}`}"><p class="roxy-label">${this.t("Spotlight cycle")}</p><div class="lead"><strong>${Xt(i.cycle,l=>this.t(l))}</strong> ${typeof i.value=="number"?s`<span class="energy">${te(this.effectiveLang(),i.value,0)}</span>`:o} ${i.phase?s`<span class="roxy-chip">${E(i.phase)}</span>`:o}</div>${i.message&&!this.hideReadings?s`<p>${i.message}</p>`:o}</div>`:o}<div class="bars" part="chart bars" role="list">${r.map(([l,c])=>{let d=Math.abs(c)*50,p=Fs[l]??"var(--roxy-accent)";return s`<div class="bar" role="listitem"><span>${Xt(l,h=>this.t(h))}</span> <span class="track"><span class="fill ${c<0?"low":"high"}" style="width:${d}%;background:${p}"></span> </span><span class="value">${te(this.effectiveLang(),c*100,0)}</span></div>`})}</div>${this.hideReadings?o:s`${e.dailyMessage?s`<p>${e.dailyMessage}</p>`:o} ${e.advice?s`<p>${e.advice}</p>`:o}`}</section>`}renderForecast(e){let t=e.days??[];if(t.length===0)return s`<div class="roxy-empty" role="status">${this.t("No forecast")}</div>`;let r=600,i=160,l=r/Math.max(t.length-1,1),c=e.summary;return s`<section class="wrap" part="card" aria-label="${this.t("Biorhythm forecast")}"><header class="head" part="header"><h2>${this.t("Forecast")}</h2><span class="energy">${ve(this.effectiveLang(),e.startDate,e.endDate)}</span></header><svg viewBox="0 0 ${r} ${i}" part="chart" role="img" aria-label="${this.t("Biorhythm cycle lines across the forecast window")}"><title>${this.t("Biorhythm forecast")}</title><line x1="0" y1="${i/2}" x2="${r}" y2="${i/2}" stroke="var(--roxy-border)" stroke-width="1"/>${Fr.map(d=>{let p=t.map((m,g)=>{let b=m[d]??0,w=g*l,S=i/2-b/100*(i/2-8);return`${w.toFixed(2)},${S.toFixed(2)}`}).join(" "),h=Fs[d]??"var(--roxy-secondary)";return F`<polyline points=${p} fill="none" stroke=${h} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />`})} ${t.map((d,p)=>d.isCritical?F`<circle cx=${(p*l).toFixed(2)} cy=${i/2} r="3" fill="var(--roxy-danger)"><title>${[A(this.effectiveLang(),d.date),me(this.effectiveLang(),(d.criticalCycles??[]).map(h=>Xt(h,m=>this.t(m)))),this.t("critical day"),typeof d.energyRating=="number"?this.t("Energy {{value}}/10",{value:d.energyRating}):""].filter(Boolean).join(" \xB7 ")}</title></circle>`:o)}</svg><div class="forecast-axis" part="legend"><span>${A(this.effectiveLang(),t[0]?.date)}</span><span>${A(this.effectiveLang(),t.at(-1)?.date)}</span></div><div class="legend" part="legend">${Fr.map(d=>s`<span class="key"><span class="dot" style="${`background: ${Fs[d]}`}"></span>${this.t(Gs[d])}</span>`)} <span class="key"><span class="dot critical"></span>${this.t("critical day")}</span></div>${c?s`<dl class="roxy-facts" part="details">${this.stat(this.t("Best day"),A(this.effectiveLang(),c.bestDay))} ${this.stat(this.t("Worst day"),A(this.effectiveLang(),c.worstDay))} ${this.stat(this.t("Average energy"),typeof c.averageEnergy=="number"?`${c.averageEnergy}/10`:"")} ${this.stat(this.t("Critical days"),typeof c.criticalDayCount=="number"?`${c.criticalDayCount}`:"")}</dl>`:o} ${this.renderForecastData(e)} ${c?.periodAdvice&&!this.hideReadings?s`<p>${c.periodAdvice}</p>`:o}</section>`}renderForecastData(e){let t=this.effectiveLang();return s`<details class="forecast-data" part="section days"><summary>${this.t("Daily values")}${V()}</summary><div class="forecast-scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Biorhythm forecast")}"><table class="forecast-table"><caption class="roxy-sr-only">${this.t("Biorhythm forecast")}</caption><thead><tr><th scope="col">${this.t("Date")}</th>${Fr.map(r=>s`<th scope="col">${this.t(Gs[r])}</th>`)}<th scope="col">${this.t("Energy rating")}</th><th scope="col">${this.t("Days since birth")}</th><th scope="col">${this.t("Critical days")}</th></tr></thead><tbody>${e.days.map(r=>s`<tr><th scope="row"><time datetime="${r.date}">${A(t,r.date)}</time></th>${Fr.map(i=>s`<td>${te(t,r[i],2)}</td>`)}<td>${this.t("Energy {{value}}/10",{value:r.energyRating})}</td><td>${$(t,r.daysSinceBirth,0)}</td><td>${r.isCritical?me(t,r.criticalCycles.map(i=>Xt(i,l=>this.t(l))))||this.t("critical day"):this.t("None")}</td></tr>`)}</tbody></table></div></details>`}renderCritical(e){let t=e.criticalDays??[],r=e.doubleCriticalDays??[],i=t.map(l=>({label:A(this.effectiveLang(),l.date)||l.date,aside:[l.cycle?Xt(l.cycle,c=>this.t(c)):"",this.severityName(l.severity)].filter(Boolean).join(" \xB7 "),body:l.advisory??"",extra:s`<p class="crit-meta">${[l.direction?this.t(xm[l.direction]):"",typeof l.period=="number"?this.t("{{period}}-day cycle",{period:l.period}):""].filter(Boolean).join(" \xB7 ")}</p>`}));return s`<section class="wrap" part="card" aria-label="${this.t("Critical days")}"><header class="head" part="header"><h2>${this.t("Critical days")}</h2><span class="energy">${ve(this.effectiveLang(),e.startDate,e.endDate)}</span></header><dl class="roxy-facts" part="details">${this.stat(this.t("Events"),typeof e.totalCriticalDays=="number"?`${e.totalCriticalDays}`:"")} ${this.stat(this.t("Double days"),r.length?`${r.length}`:"0")} ${this.stat(this.t("Triple day"),e.tripleCriticalDay?A(this.effectiveLang(),e.tripleCriticalDay):this.t("None"))}</dl>${r.length>0?s`<p class="crit-note">${this.t("Two or more cycles cross zero on {{dates}}. Take extra care on these dates.",{dates:me(this.effectiveLang(),r.map(l=>A(this.effectiveLang(),l)||l))})}</p>`:o} ${this.renderInterpretation(i,"biorhythm-critical","Advisories")}</section>`}severityName(e){let t=bm[e];return t?this.t(t):""}stat(e,t){return t?s`<div><dt>${e}</dt><dd>${t}</dd></div>`:o}};dt.endpoints=Mo,dt.styles=[v,O,J,H,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.head-meta{align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.energy{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.spotlight{gap:var(--roxy-space-xs);border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);padding-inline-start:var(--roxy-space-md);display:grid}.spotlight .lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.spotlight strong{text-transform:capitalize}.spotlight p{font-size:var(--roxy-text-sm)}.bars{gap:var(--roxy-space-xs);display:grid}.bar{align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);grid-template-columns:minmax(0,16ch) minmax(0,1fr) 7ch;display:grid}.track{border-radius:var(--roxy-radius-full);background:var(--roxy-border);block-size:.7lh;position:relative;overflow:hidden}.track:after{content:"";background:var(--roxy-surface);width:1px;position:absolute;top:0;bottom:0;left:50%}.fill{height:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);position:absolute;top:0}.fill.high{left:50%}.fill.low{right:50%}.value{color:var(--roxy-muted);text-align:end;font-variant-numeric:tabular-nums}svg{width:100%;max-width:var(--roxy-chart-max-width,37.5rem);height:auto;display:block}.legend{gap:var(--roxy-space-md);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.key{align-items:center;gap:var(--roxy-space-xs);text-transform:capitalize;display:inline-flex}.dot{border-radius:var(--roxy-radius-full);block-size:.6lh;inline-size:.6lh}.dot.critical{background:var(--roxy-danger)}.roxy-facts{margin:0}.roxy-facts dd{font-weight:var(--roxy-weight-bold)}.forecast-data>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);display:flex}.forecast-scroll{min-width:0;margin-block-start:var(--roxy-space-sm);overflow-x:auto}.forecast-table{width:100%}.forecast-table th,.forecast-table td{text-align:end;white-space:nowrap}.forecast-table th:first-child,.forecast-table td:first-child{text-align:start}.forecast-axis{justify-content:space-between;gap:var(--roxy-space-sm);width:100%;max-width:var(--roxy-chart-max-width,37.5rem);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);display:flex}.crit-note{border-inline-start:var(--roxy-line-thick) solid var(--roxy-danger);font-size:var(--roxy-text-sm);padding-inline-start:var(--roxy-space-md)}.crit-meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}`],y([k({type:String,reflect:true})],dt.prototype,"mode",2),dt=y([L("roxy-biorhythm-chart")],dt);var md=14,vm=86,gd=0,Lm=102,Jt=6,yd=(vm-md)*Jt,$m=(Lm-gd)*Jt;function Ja(n,a){return{x:(n-md)*Jt,y:(a-gd)*Jt}}var M=50,js=n=>2*M-n,Br=1.02*Jt,wm=1.15*Jt,he=2.87,Re=4.4,od=5.65,ni={head:{64:[M-he,11.2],61:[M,11.2],63:[M+he,11.2]},ajna:{47:[M-he,18],24:[M,18],4:[M+he,18],17:[M-he,20.6],11:[M+he,20.6],43:[M,25.3]},throat:{62:[M-he,32.4],23:[M,32.4],56:[M+he,32.4],16:[M-Re,34.7],35:[M+Re,34.7],20:[M-Re,37.3],12:[M+Re,37.3],45:[M+Re,39.6],31:[M-he,41.9],8:[M,41.9],33:[M+he,41.9]},g:{1:[M,47.7],7:[M-he,50.3],13:[M+he,50.3],10:[M-od,53.4],25:[M+od,53.4],15:[M-he,56.8],46:[M+he,56.8],2:[M,59.2]},heart:{21:[63.9,59.5],51:[62.1,61.3],26:[60.1,63.3],40:[66.6,63.3]},spleen:{48:[20,70.8],57:[22.5,72.4],44:[25,73.8],50:[27.7,75.3],32:[25,76.6],28:[22.5,78],18:[20,79.5]},sacral:{5:[M-he,72.7],14:[M,72.7],29:[M+he,72.7],34:[M-Re,75.4],27:[M-Re,79],59:[M+Re,79],42:[M-he,81.7],3:[M,81.7],9:[M+he,81.7]},"solar-plexus":{},root:{53:[M-he,90.2],60:[M,90.2],52:[M+he,90.2],54:[M-Re,92.6],19:[M+Re,92.6],38:[M-Re,95.3],39:[M+Re,95.3],58:[M-Re,98.1],41:[M+Re,98.1]}},km={48:36,57:22,44:37,50:6,32:49,28:55,18:30};function Sm(){let n={},a={};for(let[e,[t,r]]of Object.entries(ni.spleen))ni["solar-plexus"][km[Number(e)]]=[js(t),r];for(let[e,t]of Object.entries(ni))for(let[r,[i,l]]of Object.entries(t))n[Number(r)]=Ja(i,l),a[Number(r)]=e;return{points:n,centerOf:a}}var{points:ci,centerOf:Hr}=Sm(),NL=yd/2;function Xa(n){return n.map(([a,e])=>Ja(a,e))}function ii(n,a,e){return Xa([[M-n,a],[M+n,a],[M+n,e],[M-n,e]])}var oi=5.9,ld=[[18.3,68.3],[18.3,82],[30.3,75.15]],li=[20,84.4],cd=12*Jt,Rm=[63.2,67.9],Cm=13.1*Jt,di=[{id:"head",label:"Head",color:"gold",points:Xa([[43.55,12.5],[56.45,12.5],[50,1.7]])},{id:"ajna",label:"Ajna",color:"green",points:Xa([[43.55,16.5],[56.45,16.5],[50,27.7]])},{id:"throat",label:"Throat",color:"brown",points:ii(oi,31,43.3)},{id:"g",label:"G",color:"gold",points:Xa([[50,45.8],[57.7,53.6],[50,61.4],[42.3,53.6]])},{id:"heart",label:"Heart",color:"red",points:Xa([[56.65,65.23],[64.2,56.74],[69.75,65.23]]),caption:{at:Ja(...Rm),room:Cm}},{id:"spleen",label:"Spleen",color:"brown",points:Xa(ld),caption:{at:Ja(...li),room:cd}},{id:"sacral",label:"Sacral",color:"red",points:ii(oi,71.3,83.1)},{id:"solar-plexus",label:"Solar Plexus",color:"brown",points:Xa(ld.map(([n,a])=>[js(n),a])),caption:{at:Ja(js(li[0]),li[1]),room:cd}},{id:"root",label:"Root",color:"brown",points:ii(oi,88.5,99.8)}],Tm=[[64,47],[61,24],[63,4],[17,62],[11,56],[43,23],[16,48],[20,34],[20,10],[7,31],[1,8],[13,33],[21,45],[12,22],[35,36],[57,20],[15,5],[2,14],[46,29],[34,10],[10,57],[25,51],[27,50],[57,34],[26,44],[18,58],[28,38],[32,54],[3,60],[9,52],[42,53],[59,6],[19,49],[39,55],[41,30],[37,40]],Em=Am();function Am(){let n=js,a=[[50,3],[58,3],[60,10],[57,17.5],[56.5,20.5],[53.5,23.5],[51.5,27],[54,28],[64,30],[79,35],[83,42],[84,58],[83,74],[83,86],[76,93],[68,97],[64,99],[62,100.5],[60,100.5]],e=[`M ${Bs(a[0])}`];for(let t=1;t+2<a.length;t+=3)e.push(`C ${Bs(a[t])} ${Bs(a[t+1])} ${Bs(a[t+2])}`);e.push(`L ${Hs(a[a.length-1],n)}`);for(let t=a.length-3;t>=1;t-=3)e.push(`C ${Hs(a[t+1],n)} ${Hs(a[t],n)} ${Hs(a[t-1],n)}`);return e.push("Z"),e.join(" ")}function Bs([n,a]){let e=Ja(n,a);return`${e.x} ${e.y}`}function Hs([n,a],e){let t=Ja(e(n),a);return`${t.x} ${t.y}`}function Dm(n){return n.map(a=>`${a.x},${a.y}`).join(" ")}function ud(n){return n.left&&n.right?"both":n.left?"src-left":"src-right"}function Pm(){return T`<path class="bg-body" d=${Em} />`}function _m(n){let a=[];for(let[e,t]of Tm){let r=ci[e],i=ci[t];if(!r||!i)continue;a.push(T`<line class="bg-channel" x1=${r.x} y1=${r.y} x2=${i.x} y2=${i.y} />`);let l={x:(r.x+i.x)/2,y:(r.y+i.y)/2};for(let[c,d]of[[e,r],[t,i]]){let p=n.get(c);if(!p)continue;let h=ud(p);a.push(T`<line class="bg-half ${h==="both"?"src-left":h}" x1=${d.x} y1=${d.y} x2=${l.x} y2=${l.y} />`),h==="both"&&a.push(T`<line class="bg-half src-right stripe" x1=${d.x} y1=${d.y} x2=${l.x} y2=${l.y} />`)}}return a}function Mm(n,a,e){return di.flatMap(t=>{let r=n.has(t.id),i=`bg-center bg-${t.color}${r?" defined":""}`,l=a?.get(t.id)||t.label;return[T`<polygon class=${i} points=${Dm(t.points)}><title>${l}: ${r?e.defined:e.open}</title></polygon>`,t.caption?dd(l,t.caption.at,"bg-caption",t.caption.room):dd(l,pd(t.points),r?`defined bg-${t.color}`:"",zm(t.points,pd(t.points).y)*.86)]})}function dd(n,a,e,t){let r=n.split(/\s+/).filter(Boolean),i=r.reduce((p,h)=>Math.max(p,h.length),0),l=Math.min(wm,t/Math.max(1,i*Nm)),c=l*1.05,d=a.y-c*(r.length-1)/2;return T`<text class="bg-center-name ${e}" style=${`font-size:${l}px`} x=${a.x} y=${a.y} text-anchor="middle" dominant-baseline="central" aria-hidden="true">${r.map((p,h)=>T`<tspan x=${a.x} y=${d+h*c}>${p}</tspan>`)}</text>`}var Nm=.66;function zm(n,a){let e=[];for(let t=0;t<n.length;t++){let r=n[t],i=n[(t+1)%n.length];if(r.y===i.y)continue;let l=Math.min(r.y,i.y),c=Math.max(r.y,i.y);a<l||a>c||e.push(r.x+(a-r.y)/(i.y-r.y)*(i.x-r.x))}return e.length<2?0:Math.max(...e)-Math.min(...e)}function pd(n){let a=n.length||1;return{x:n.reduce((e,t)=>e+t.x,0)/a,y:n.reduce((e,t)=>e+t.y,0)/a}}function hd(n,a){return`M ${n.x} ${n.y-Br} A ${Br} ${Br} 0 0 ${a} ${n.x} ${n.y+Br} Z`}function Om(n,a){let e=[];for(let[t,r]of Object.entries(ci)){let i=Number(t),l=n.get(i),c=l?ud(l):"",d=a.get(i);e.push(T`<g class="bg-gate-node">
|
|
10
|
-
${c==="both"?[T`<path class="bg-gate-dot on src-left" d=${
|
|
9
|
+
</g>`}renderLegend(e){return e.length===0?o:s`<div class="legend" part="legend">${e.map((t,r)=>{let i=Za(t.planet,r);return s`<span class="legend-item"><span class="legend-swatch" style="${`border-block-start-color: ${i}`}"></span> ${ce(C(t.planet))}${x(t,"planet")}</span>`})} <span class="legend-note">${this.t("Solid lines are the Ascendant and Midheaven, dashed are the Descendant and IC.")}</span></div>`}renderInterpretations(e){return e.length===0||this.hideReadings?o:s`<section class="block" part="section readings"><h3>${this.t("Planetary lines")}</h3>${e.map((t,r)=>{let i=Za(t.planet,r),l=[["MC",t.mc.interpretation],["IC",t.ic.interpretation],["AC",t.ascendant.interpretation],["DC",t.descendant.interpretation]];return s`<details class="interp-card" part="reading" name="acg-lines" ?open="${r===0}"><summary><span class="interp-lead"><span class="interp-dot" style="${`background: ${i}`}"></span> ${ce(C(t.planet))}${x(t,"planet")} </span>${V()}</summary><div class="interp-body">${l.filter(([,c])=>c).map(([c,d])=>s`<p class="interp-line"><span class="code">${c}</span>${d}</p>`)}</div></details>`})}</section>`}};qt.endpoints=Po,qt.styles=[v,pe,O,H,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}header{gap:var(--roxy-space-xs);display:grid}svg{border-radius:var(--roxy-radius-sm);width:100%;height:auto;display:block}.map-frame{fill:color-mix(in srgb, var(--roxy-border) 12%, transparent);stroke:var(--roxy-border);stroke-width:.8px}.land{fill:var(--roxy-secondary);opacity:.13}.grat{stroke:var(--roxy-border);stroke-width:.4px;fill:none}.grat-axis{stroke:var(--roxy-muted);stroke-width:.6px;opacity:.6}.grat-ref{stroke:var(--roxy-secondary);stroke-width:.4px;stroke-dasharray:2 2;opacity:.5;fill:none}.axis-label{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .3125)}.acg-line{fill:none;stroke-width:1px;opacity:.95}.acg-line.dashed{stroke-dasharray:4 2.5}.acg-glyph{font-size:calc(var(--roxy-text-base) * .5);font-weight:var(--roxy-weight-bold)}.birthplace{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .5625)}.legend{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.legend-item{align-items:center;gap:var(--roxy-space-xs);display:inline-flex}.legend-swatch{inline-size:var(--roxy-space-md);border-block-start:var(--roxy-line-thick) solid;block-size:0}.legend-note{width:100%}.summary,.interp-line{font-size:var(--roxy-text-sm)}.interp-dot{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);flex-shrink:0;align-self:center}.interp-line .code{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold);margin-inline-end:var(--roxy-space-xs)}`],qt=y([L("roxy-astrocartography-map")],qt);var xm=new Set(["wood","fire","earth","metal","water"]);function Se(n){let a=xe(n??"");return xm.has(a)?`element-${a}`:""}var We=u`.element-wood{--_element:var(--roxy-success);--_element-ink:var(--roxy-success-fg)}.element-fire{--_element:var(--roxy-danger);--_element-ink:var(--roxy-danger-fg)}.element-earth{--_element:var(--roxy-warning);--_element-ink:var(--roxy-warning-fg)}.element-metal{--_element:var(--roxy-secondary);--_element-ink:var(--roxy-secondary)}.element-water{--_element:var(--roxy-info);--_element-ink:var(--roxy-info-fg)}.element-word{color:var(--_element-ink)}`;var bm={year:"Year",month:"Month",day:"Day",hour:"Hour"},nd={harmonious:"Harmonious",challenging:"Challenging"},id={"stem-combination":"Stem combination","six-combination":"Six combination",trine:"Trine",clash:"Clash",harm:"Harm",punishment:"Punishment","stem-clash":"Stem clash"},od={deficient:"Deficient",balanced:"Balanced",excess:"Excess"},Yt=class extends f{renderData(a){let e=this.effectiveLang(),t=Y(e,a.birthData?.date,a.birthData?.time);return s`<article class="card" part="card" aria-labelledby="bazi-title"><header class="head" part="header"><h2 class="title" id="bazi-title">${this.t("Four pillars")}</h2>${t?s`<span class="born">${t}</span>`:o} ${a.zodiacAnimal?s`<span class="roxy-chip animal">${x(a,"zodiacAnimal")}</span>`:o}</header><div class="pillars-wrap" part="chart" role="region" tabindex="0" aria-label="${this.t("Four pillars")}"><div class="pillars">${(a.pillars??[]).map(r=>this.renderPillar(r))}</div></div>${this.renderDayMaster(a)} ${this.renderElements(a)} ${this.renderInteractions(a)} ${a.summary&&!this.hideReadings?s`<p class="summary" part="section summary">${a.summary}</p>`:o} ${Kt(a.conventions,this.translator,this.effectiveLang())}</article>`}renderPillar(a){let e=bm[a.position],t=a.position==="day";return s`<div class="pillar ${t?"pillar-self":""}" part="pillar"><span class="pos roxy-label">${e?this.t(e):E(a.position)}</span> <span class="god">${x(a.tenGod,"name")}</span> <span class="hanzi" lang="zh">${a.stem?.chinese??""}</span> <span class="romanised">${a.stem?.pinyin??""} <span class="element-word ${Se(a.stem?.element)}">${x(a.stem,"element")}</span></span> <span class="hanzi hanzi-branch" lang="zh">${a.branch?.chinese??""}</span> <span class="romanised">${a.branch?.pinyin??""} ${x(a.branch,"animal")}</span> ${a.hiddenStems?.length?s`<hr class="rule"><ul class="hidden" aria-label="${this.t("Hidden stems")}">${a.hiddenStems.map(r=>s`<li><span lang="zh">${r.stem?.chinese??""}</span> <span class="role">${r.role}</span> ${x(r.tenGod,"name")}</li>`)}</ul>`:o} ${a.naYin?s`<hr class="rule"><span class="nayin" title="${this.t("Na Yin")}">${a.naYin}</span>`:o}</div>`}renderDayMaster(a){let e=a.dayMaster;return e?s`<section part="section day-master"><h3 class="block-title">${this.t("Day Master")}</h3><div class="master"><span class="hanzi" lang="zh">${e.chinese??""}</span> <span><b class="element-word ${Se(e.element)}">${x(e,"element")}</b> ${e.polarity??""} ${e.pinyin??""}</span> ${e.nature&&!this.hideReadings?s`<p part="reading">${e.nature}</p>`:o}</div></section>`:o}renderElements(a){let e=a.fiveElements??[];if(e.length===0)return o;let t=this.effectiveLang(),r=e.reduce((i,l)=>i+(l.count??0),0)||1;return s`<section part="section elements"><h3 class="block-title">${this.t("Elements")}</h3><div class="elements">${e.map(i=>s`<div class="element ${Se(i.element)}" part="label-track"><span class="element-word">${x(i,"element")}</span> <span class="element-track"><span class="element-fill" style="width:${(i.count??0)/r*100}%"></span></span> <span class="element-count">${N(t,i.count??0)} ${i.level&&od[i.level]?this.t(od[i.level]):i.level??""}</span> ${i.reading&&!this.hideReadings?s`<p class="element-reading" part="reading">${i.reading}</p>`:o}</div>`)}</div></section>`}renderInteractions(a){let e=a.interactions??[];return e.length===0?o:s`<section part="section interactions"><h3 class="block-title">${this.t("Interactions")}</h3><ul class="interactions">${e.map(t=>s`<li class="interaction"><div class="interaction-line"><span lang="zh">${t.chinese??""}</span> <b>${t.type&&id[t.type]?this.t(id[t.type]):E(t.type??"")}</b> ${t.quality?s`<span class="roxy-chip tag tag-${t.quality}">${t.quality&&nd[t.quality]?this.t(nd[t.quality]):t.quality}</span>`:o} <span>${(t.positions??[]).join(" ")}</span> ${t.transformsTo?s`<span>${t.transformsTo}</span>`:o} ${t.variety?s`<span>${t.variety}</span>`:o} ${t.type==="punishment"&&typeof t.complete=="boolean"?s`<span class="completeness">${t.complete?this.t("Complete"):this.t("Partial")}</span>`:o}</div>${t.meaning&&!this.hideReadings?s`<p class="interaction-meaning" part="reading">${t.meaning}</p>`:o}</li>`)}</ul></section>`}};Yt.endpoints=_o,Yt.styles=[v,B,We,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-sm) var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.block-title{margin:0}.block-title{margin-block-end:var(--roxy-space-sm)}.born{color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.animal{margin-inline-start:auto}.pillars-wrap{min-width:0;overflow-x:auto}.pillars{grid-template-columns:repeat(4,minmax(12ch,1fr));display:grid}.pillar{gap:var(--roxy-space-xs);padding:var(--roxy-space-sm);border-block-start:var(--roxy-line-thick) solid transparent;text-align:center;align-content:start;display:grid}.pillar+.pillar{border-inline-start:1px solid var(--roxy-border)}.pillar-self{border-block-start-color:var(--roxy-accent)}.pillar-self .pos{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.god{min-block-size:1lh;color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.hanzi{font-size:calc(var(--roxy-text-base) * 2);line-height:var(--roxy-leading-tight)}.hanzi-branch{color:var(--roxy-accent-ink)}.romanised,.nayin,.hidden .role{color:var(--roxy-muted)}.romanised,.nayin{font-size:var(--roxy-text-xs)}.rule{inline-size:100%;margin:calc(var(--roxy-space-unit) / 2) 0;border:0;border-block-start:1px solid var(--roxy-border)}.hidden{gap:calc(var(--roxy-space-unit) / 2);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);text-align:start;margin:0;padding:0;list-style:none;display:grid}.nayin{text-align:start}.master{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.master .hanzi{font-size:calc(var(--roxy-text-base) * 1.5)}.master p{color:var(--roxy-secondary);flex-basis:100%;margin:0}.elements{gap:var(--roxy-space-xs);display:grid}.element{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr) max-content;align-items:center;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:grid}.element-track{background:var(--roxy-border);border-radius:var(--roxy-radius-full);block-size:.25lh;overflow:hidden}:where(.element){--_element:var(--roxy-accent)}.element-fill{background:var(--_element);height:100%;display:block}.element-count{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}.element-reading,.interaction-meaning{color:var(--roxy-secondary);font-size:var(--roxy-text-xs);margin:0}.element-reading{grid-column:1/-1}:is(.master p,.element-reading,.interaction-meaning){border-block-start:0}.interactions{margin:0;padding:0;list-style:none;display:grid}.interaction{gap:calc(var(--roxy-space-unit) / 2);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);display:grid}.interaction:first-child{border-block-start:0;padding-block-start:0}.interaction-line{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.tag-harmonious{color:var(--roxy-success-fg)}.tag-challenging{color:var(--roxy-danger-fg)}.summary{margin:0}`],Yt=y([L("roxy-bazi-chart")],Yt);function Ze(n,a){return!a||!n?.length?"":n.map(e=>a[String(e)]?.[0]).filter(Boolean).join(", ")}function ii(n,a){return!a||typeof n!="number"?"":(a[String(n)]??[]).join(", ")}var Wt=class extends f{renderData(a){let e=a.grahas??[],t=a.bhavas??[];if(!e.length&&!t.length)return this.renderEmpty();let r=e.filter(l=>l.moved),i=a.movedCount??r.length;return s`<div class="wrap" part="card" aria-label="${this.t("Bhav Chalit")}"><header class="head" part="header"><h2 class="title">${this.t("Bhav Chalit")}</h2><p class="lede">${i===0?this.t("No graha changes house. The Rashi chart and the Chalit chart agree, which is a normal result rather than a missing reading."):this.t("{{count}} of {{total}} grahas change house between the Rashi chart and the unequal Sripati cusps.",{count:i,total:e.length})}</p>${W(this.effectiveLang(),a.frame,this.translator)}</header>${r.length?s`<div class="moved-list" part="table moved">${r.map(l=>this.renderMoved(l,a.houseThemes))}</div>`:o} ${t.length?s`<details part="details"><summary>${this.t("Bhava cusps and occupants")}</summary><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Bhava cusps and occupants")}"><table part="table"><thead><tr><th>${this.t("Bhava")}</th><th>${this.t("Rashi")}</th><th>${this.t("Start")}</th><th>${this.t("Madhya")}</th><th>${this.t("End")}</th><th>${this.t("Span")}</th><th>${this.t("Grahas")}</th></tr></thead><tbody>${t.map(l=>this.renderBhavaRow(l))}</tbody></table></div></details>`:o}</div>`}renderMoved(a,e){let t=C(a.graha)??"",r=typeof a.bhava=="number"?Ze([a.bhava],e):"";return s`<div class="moved-row"><span class="graha">${t?s`<span class="glyph roxy-glyph">${t}</span>`:o}${a.graha} </span><span class="shift">${this.t("house {{from}} in the Rashi chart, house {{to}} here",{from:a.rashiHouse??"",to:a.bhava??""})} </span>${r?s`<span class="themes">${r}</span>`:o}</div>`}renderBhavaRow(a){let e=(a.grahas??[]).join(", ");return s`<tr><td class="num">${a.house}</td><td>${a.rashi}</td><td class="num">${$(this.effectiveLang(),a.start,2)}°</td><td class="num">${$(this.effectiveLang(),a.madhya,2)}°</td><td class="num">${$(this.effectiveLang(),a.end,2)}°</td><td class="num">${$(this.effectiveLang(),a.span,2)}°</td><td class="occupants">${e}</td></tr>`}};Wt.endpoints=Mo,Wt.styles=[v,B,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{gap:var(--roxy-space-xs);display:grid}.title,.lede{margin:0}.lede{font-size:var(--roxy-text-sm)}.moved-row{align-items:baseline;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.shift{font-variant-numeric:tabular-nums}.themes{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.scroll{min-width:0;margin-block-start:var(--roxy-space-sm);overflow-x:auto}table{width:100%}th,td{white-space:nowrap}td.num{font-variant-numeric:tabular-nums}td.occupants{white-space:normal;color:var(--roxy-secondary)}summary{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}`],Wt=y([L("roxy-bhav-chalit-table")],Wt);var ld=[{key:"bhavadhipatiBala",source:"Bhavadhipati",color:"var(--roxy-accent)"},{key:"digBala",source:"Dig",color:"var(--roxy-info)"},{key:"drishtiBala",source:"Drishti",color:"var(--roxy-success)"}],Zt=class extends f{renderData(a){let e=a.bhavas??[];if(!e.length)return this.renderEmpty();let t=Math.max(...e.map(r=>r.totalVirupas??0),1);return s`<div class="wrap" part="card" aria-label="${this.t("Bhava Bala")}"><header class="head" part="header"><h2 class="title">${this.t("Bhava Bala")}</h2><p class="subtitle">${a.houseSystem?this.t("Twelve houses ranked by strength on the {{system}} frame",{system:a.houseSystem}):this.t("Twelve houses ranked by strength")}</p>${W(this.effectiveLang(),a.frame,this.translator)}</header><div class="rows" part="table" role="list">${e.map(r=>this.renderBhava(r,t,a.houseThemes))}</div><div class="legend" part="legend" aria-label="${this.t("Component legend")}">${ld.map(r=>s`<div class="legend-row"><span class="swatch" style="background:${r.color}" aria-hidden="true"></span> ${this.t("{{component}} Bala",{component:this.t(r.source)})}</div>`)}</div></div>`}renderBhava(a,e,t){let r=typeof a.house=="number"?Ze([a.house],t):"";return s`<article class="row" role="listitem"><div class="row-top"><span class="house">${this.t("House {{n}}",{n:a.house})}</span> <span class="rashi">${a.rashi}</span> ${a.lord?s`<span class="lord">${this.t("lord {{graha}}",{graha:a.lord})}</span>`:o} <span class="total">${this.t("{{value}} rupas",{value:$(this.effectiveLang(),a.totalRupas,2)})} ${typeof a.rank=="number"?s`<span class="rank">#${a.rank}</span>`:o}</span></div><div class="bar" role="img" aria-label="${this.t("Bhava Bala {{value}} virupas",{value:$(this.effectiveLang(),a.totalVirupas,1)})}">${ld.map(i=>{let l=Math.max(0,a[i.key]??0);return l>0?s`<span class="seg" style="width:${l/e*100}%;background:${i.color}" title="${this.t("{{component}} {{value}} virupas",{component:this.t(i.source),value:$(this.effectiveLang(),l,1)})}"></span>`:o})}</div>${r?s`<p class="themes">${r}</p>`:o}</article>`}};Zt.endpoints=No,Zt.styles=[v,B,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{gap:var(--roxy-space-xs);display:grid}.title,.subtitle,.themes{margin:0}.subtitle{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.row{gap:var(--roxy-space-xs);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);grid-template-columns:minmax(0,1fr);display:grid}.row:last-child{border-block-end:0}.row-top{align-items:baseline;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.house{min-width:9ch;font-weight:var(--roxy-weight-bold)}.rashi{color:var(--roxy-secondary)}.lord{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.total{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold);margin-inline-start:auto}.rank{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;margin-inline-start:var(--roxy-space-xs)}.bar{border-radius:var(--roxy-radius-full);background:color-mix(in srgb, var(--roxy-border) 55%, transparent);block-size:.5lh;display:flex;overflow:hidden}.seg{height:100%}.themes{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.legend{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-xs);color:var(--roxy-muted);flex-wrap:wrap;display:flex}.legend-row{align-items:center;gap:var(--roxy-space-xs);display:flex}.swatch{border-radius:var(--roxy-radius-sm);block-size:.6lh;inline-size:1.5ch}`],Zt=y([L("roxy-bhava-bala-table")],Zt);var Br=["physical","emotional","intellectual","intuitive"],Bs={physical:"Physical",emotional:"Emotional",intellectual:"Intellectual",intuitive:"Intuitive"};function Xt(n,a){let e=Bs[n];return e?a(e):E(n)}var Hs={physical:"var(--roxy-danger)",emotional:"var(--roxy-info)",intellectual:"var(--roxy-success)",intuitive:"color-mix(in oklab, var(--roxy-info) 50%, var(--roxy-danger))",aesthetic:"var(--roxy-warning)",awareness:"color-mix(in oklab, var(--roxy-danger) 70%, var(--roxy-info))",spiritual:"color-mix(in oklab, var(--roxy-success) 50%, var(--roxy-info))",passion:"color-mix(in oklab, var(--roxy-danger) 50%, var(--roxy-warning))",mastery:"var(--roxy-accent)",wisdom:"var(--roxy-muted)"},vm={ascending:"ascending through zero",descending:"descending through zero"},Lm={double:"Double day",triple:"Triple day"},dt=class extends f{constructor(){super(...arguments);this.mode="daily"}renderData(e){return this.mode==="critical-days"&&"criticalDays"in e?this.renderCritical(e):this.mode==="forecast"&&"days"in e?this.renderForecast(e):this.renderDaily(e)}renderDaily(e){let t=e.quickRead??{},r=Object.entries(t).map(([l,c])=>{let d=typeof c=="number"?c:0,p=Math.abs(d)>1?d/100:d;return[l,p]}),i=e.spotlight;return s`<section class="wrap" part="card" aria-label="${this.t("Daily biorhythm")}"><header class="head" part="header"><h2>${this.t("Biorhythm")}</h2><div class="head-meta">${e.overallPhase?s`<span class="roxy-chip">${E(e.overallPhase)}</span>`:o} ${typeof e.energyRating=="number"?s`<span class="energy">${this.t("Energy {{value}}/10",{value:e.energyRating})}</span>`:o}</div></header>${i?s`<div class="spotlight" part="details spotlight" style="${`border-inline-start-color: ${Hs[i.cycle]??"var(--roxy-accent)"}`}"><p class="roxy-label">${this.t("Spotlight cycle")}</p><div class="lead"><strong>${Xt(i.cycle,l=>this.t(l))}</strong> ${typeof i.value=="number"?s`<span class="energy">${te(this.effectiveLang(),i.value,0)}</span>`:o} ${i.phase?s`<span class="roxy-chip">${E(i.phase)}</span>`:o}</div>${i.message&&!this.hideReadings?s`<p>${i.message}</p>`:o}</div>`:o}<div class="bars" part="chart bars" role="list">${r.map(([l,c])=>{let d=Math.abs(c)*50,p=Hs[l]??"var(--roxy-accent)";return s`<div class="bar" role="listitem"><span>${Xt(l,h=>this.t(h))}</span> <span class="track"><span class="fill ${c<0?"low":"high"}" style="width:${d}%;background:${p}"></span> </span><span class="value">${te(this.effectiveLang(),c*100,0)}</span></div>`})}</div>${this.hideReadings?o:s`${e.dailyMessage?s`<p>${e.dailyMessage}</p>`:o} ${e.advice?s`<p>${e.advice}</p>`:o}`}</section>`}renderForecast(e){let t=e.days??[];if(t.length===0)return s`<div class="roxy-empty" role="status">${this.t("No forecast")}</div>`;let r=600,i=160,l=r/Math.max(t.length-1,1),c=e.summary;return s`<section class="wrap" part="card" aria-label="${this.t("Biorhythm forecast")}"><header class="head" part="header"><h2>${this.t("Forecast")}</h2><span class="energy">${ve(this.effectiveLang(),e.startDate,e.endDate)}</span></header><svg viewBox="0 0 ${r} ${i}" part="chart" role="img" aria-label="${this.t("Biorhythm cycle lines across the forecast window")}"><title>${this.t("Biorhythm forecast")}</title><line x1="0" y1="${i/2}" x2="${r}" y2="${i/2}" stroke="var(--roxy-border)" stroke-width="1"/>${Br.map(d=>{let p=t.map((m,g)=>{let b=m[d]??0,w=g*l,S=i/2-b/100*(i/2-8);return`${w.toFixed(2)},${S.toFixed(2)}`}).join(" "),h=Hs[d]??"var(--roxy-secondary)";return F`<polyline points=${p} fill="none" stroke=${h} stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />`})} ${t.map((d,p)=>d.isCritical?F`<circle cx=${(p*l).toFixed(2)} cy=${i/2} r="3" fill="var(--roxy-danger)"><title>${[A(this.effectiveLang(),d.date),me(this.effectiveLang(),(d.criticalCycles??[]).map(h=>Xt(h,m=>this.t(m)))),this.t("critical day"),typeof d.energyRating=="number"?this.t("Energy {{value}}/10",{value:d.energyRating}):""].filter(Boolean).join(" \xB7 ")}</title></circle>`:o)}</svg><div class="forecast-axis" part="legend"><span>${A(this.effectiveLang(),t[0]?.date)}</span><span>${A(this.effectiveLang(),t.at(-1)?.date)}</span></div><div class="legend" part="legend">${Br.map(d=>s`<span class="key"><span class="dot" style="${`background: ${Hs[d]}`}"></span>${this.t(Bs[d])}</span>`)} <span class="key"><span class="dot critical"></span>${this.t("critical day")}</span></div>${c?s`<dl class="roxy-facts" part="details">${this.stat(this.t("Best day"),A(this.effectiveLang(),c.bestDay))} ${this.stat(this.t("Worst day"),A(this.effectiveLang(),c.worstDay))} ${this.stat(this.t("Average energy"),typeof c.averageEnergy=="number"?`${c.averageEnergy}/10`:"")} ${this.stat(this.t("Critical days"),typeof c.criticalDayCount=="number"?`${c.criticalDayCount}`:"")}</dl>`:o} ${this.renderForecastData(e)} ${c?.periodAdvice&&!this.hideReadings?s`<p>${c.periodAdvice}</p>`:o}</section>`}renderForecastData(e){let t=this.effectiveLang();return s`<details class="forecast-data" part="section days"><summary>${this.t("Daily values")}${V()}</summary><div class="forecast-scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Biorhythm forecast")}"><table class="forecast-table"><caption class="roxy-sr-only">${this.t("Biorhythm forecast")}</caption><thead><tr><th scope="col">${this.t("Date")}</th>${Br.map(r=>s`<th scope="col">${this.t(Bs[r])}</th>`)}<th scope="col">${this.t("Energy rating")}</th><th scope="col">${this.t("Days since birth")}</th><th scope="col">${this.t("Critical days")}</th></tr></thead><tbody>${e.days.map(r=>s`<tr><th scope="row"><time datetime="${r.date}">${A(t,r.date)}</time></th>${Br.map(i=>s`<td>${te(t,r[i],2)}</td>`)}<td>${this.t("Energy {{value}}/10",{value:r.energyRating})}</td><td>${$(t,r.daysSinceBirth,0)}</td><td>${r.isCritical?me(t,r.criticalCycles.map(i=>Xt(i,l=>this.t(l))))||this.t("critical day"):this.t("None")}</td></tr>`)}</tbody></table></div></details>`}renderCritical(e){let t=e.criticalDays??[],r=e.doubleCriticalDays??[],i=t.map(l=>({label:A(this.effectiveLang(),l.date)||l.date,aside:[l.cycle?Xt(l.cycle,c=>this.t(c)):"",this.severityName(l.severity)].filter(Boolean).join(" \xB7 "),body:l.advisory??"",extra:s`<p class="crit-meta">${[l.direction?this.t(vm[l.direction]):"",typeof l.period=="number"?this.t("{{period}}-day cycle",{period:l.period}):""].filter(Boolean).join(" \xB7 ")}</p>`}));return s`<section class="wrap" part="card" aria-label="${this.t("Critical days")}"><header class="head" part="header"><h2>${this.t("Critical days")}</h2><span class="energy">${ve(this.effectiveLang(),e.startDate,e.endDate)}</span></header><dl class="roxy-facts" part="details">${this.stat(this.t("Events"),typeof e.totalCriticalDays=="number"?`${e.totalCriticalDays}`:"")} ${this.stat(this.t("Double days"),r.length?`${r.length}`:"0")} ${this.stat(this.t("Triple day"),e.tripleCriticalDay?A(this.effectiveLang(),e.tripleCriticalDay):this.t("None"))}</dl>${r.length>0?s`<p class="crit-note">${this.t("Two or more cycles cross zero on {{dates}}. Take extra care on these dates.",{dates:me(this.effectiveLang(),r.map(l=>A(this.effectiveLang(),l)||l))})}</p>`:o} ${this.renderInterpretation(i,"biorhythm-critical","Advisories")}</section>`}severityName(e){let t=Lm[e];return t?this.t(t):""}stat(e,t){return t?s`<div><dt>${e}</dt><dd>${t}</dd></div>`:o}};dt.endpoints=zo,dt.styles=[v,O,J,H,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.head-meta{align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.energy{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.spotlight{gap:var(--roxy-space-xs);border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);padding-inline-start:var(--roxy-space-md);display:grid}.spotlight .lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.spotlight strong{text-transform:capitalize}.spotlight p{font-size:var(--roxy-text-sm)}.bars{gap:var(--roxy-space-xs);display:grid}.bar{align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);grid-template-columns:minmax(0,16ch) minmax(0,1fr) 7ch;display:grid}.track{border-radius:var(--roxy-radius-full);background:var(--roxy-border);block-size:.7lh;position:relative;overflow:hidden}.track:after{content:"";background:var(--roxy-surface);width:1px;position:absolute;top:0;bottom:0;left:50%}.fill{height:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);position:absolute;top:0}.fill.high{left:50%}.fill.low{right:50%}.value{color:var(--roxy-muted);text-align:end;font-variant-numeric:tabular-nums}svg{width:100%;max-width:var(--roxy-chart-max-width,37.5rem);height:auto;display:block}.legend{gap:var(--roxy-space-md);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.key{align-items:center;gap:var(--roxy-space-xs);text-transform:capitalize;display:inline-flex}.dot{border-radius:var(--roxy-radius-full);block-size:.6lh;inline-size:.6lh}.dot.critical{background:var(--roxy-danger)}.roxy-facts{margin:0}.roxy-facts dd{font-weight:var(--roxy-weight-bold)}.forecast-data>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);display:flex}.forecast-scroll{min-width:0;margin-block-start:var(--roxy-space-sm);overflow-x:auto}.forecast-table{width:100%}.forecast-table th,.forecast-table td{text-align:end;white-space:nowrap}.forecast-table th:first-child,.forecast-table td:first-child{text-align:start}.forecast-axis{justify-content:space-between;gap:var(--roxy-space-sm);width:100%;max-width:var(--roxy-chart-max-width,37.5rem);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);display:flex}.crit-note{border-inline-start:var(--roxy-line-thick) solid var(--roxy-danger);font-size:var(--roxy-text-sm);padding-inline-start:var(--roxy-space-md)}.crit-meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}`],y([k({type:String,reflect:true})],dt.prototype,"mode",2),dt=y([L("roxy-biorhythm-chart")],dt);var yd=14,$m=86,ud=0,wm=102,Jt=6,fd=($m-yd)*Jt,km=(wm-ud)*Jt;function Ja(n,a){return{x:(n-yd)*Jt,y:(a-ud)*Jt}}var M=50,Us=n=>2*M-n,Hr=1.02*Jt,Sm=1.15*Jt,he=2.87,Re=4.4,cd=5.65,oi={head:{64:[M-he,11.2],61:[M,11.2],63:[M+he,11.2]},ajna:{47:[M-he,18],24:[M,18],4:[M+he,18],17:[M-he,20.6],11:[M+he,20.6],43:[M,25.3]},throat:{62:[M-he,32.4],23:[M,32.4],56:[M+he,32.4],16:[M-Re,34.7],35:[M+Re,34.7],20:[M-Re,37.3],12:[M+Re,37.3],45:[M+Re,39.6],31:[M-he,41.9],8:[M,41.9],33:[M+he,41.9]},g:{1:[M,47.7],7:[M-he,50.3],13:[M+he,50.3],10:[M-cd,53.4],25:[M+cd,53.4],15:[M-he,56.8],46:[M+he,56.8],2:[M,59.2]},heart:{21:[63.9,59.5],51:[62.1,61.3],26:[60.1,63.3],40:[66.6,63.3]},spleen:{48:[20,70.8],57:[22.5,72.4],44:[25,73.8],50:[27.7,75.3],32:[25,76.6],28:[22.5,78],18:[20,79.5]},sacral:{5:[M-he,72.7],14:[M,72.7],29:[M+he,72.7],34:[M-Re,75.4],27:[M-Re,79],59:[M+Re,79],42:[M-he,81.7],3:[M,81.7],9:[M+he,81.7]},"solar-plexus":{},root:{53:[M-he,90.2],60:[M,90.2],52:[M+he,90.2],54:[M-Re,92.6],19:[M+Re,92.6],38:[M-Re,95.3],39:[M+Re,95.3],58:[M-Re,98.1],41:[M+Re,98.1]}},Rm={48:36,57:22,44:37,50:6,32:49,28:55,18:30};function Cm(){let n={},a={};for(let[e,[t,r]]of Object.entries(oi.spleen))oi["solar-plexus"][Rm[Number(e)]]=[Us(t),r];for(let[e,t]of Object.entries(oi))for(let[r,[i,l]]of Object.entries(t))n[Number(r)]=Ja(i,l),a[Number(r)]=e;return{points:n,centerOf:a}}var{points:pi,centerOf:jr}=Cm(),OL=fd/2;function Xa(n){return n.map(([a,e])=>Ja(a,e))}function li(n,a,e){return Xa([[M-n,a],[M+n,a],[M+n,e],[M-n,e]])}var ci=5.9,dd=[[18.3,68.3],[18.3,82],[30.3,75.15]],di=[20,84.4],pd=12*Jt,Tm=[63.2,67.9],Em=13.1*Jt,hi=[{id:"head",label:"Head",color:"gold",points:Xa([[43.55,12.5],[56.45,12.5],[50,1.7]])},{id:"ajna",label:"Ajna",color:"green",points:Xa([[43.55,16.5],[56.45,16.5],[50,27.7]])},{id:"throat",label:"Throat",color:"brown",points:li(ci,31,43.3)},{id:"g",label:"G",color:"gold",points:Xa([[50,45.8],[57.7,53.6],[50,61.4],[42.3,53.6]])},{id:"heart",label:"Heart",color:"red",points:Xa([[56.65,65.23],[64.2,56.74],[69.75,65.23]]),caption:{at:Ja(...Tm),room:Em}},{id:"spleen",label:"Spleen",color:"brown",points:Xa(dd),caption:{at:Ja(...di),room:pd}},{id:"sacral",label:"Sacral",color:"red",points:li(ci,71.3,83.1)},{id:"solar-plexus",label:"Solar Plexus",color:"brown",points:Xa(dd.map(([n,a])=>[Us(n),a])),caption:{at:Ja(Us(di[0]),di[1]),room:pd}},{id:"root",label:"Root",color:"brown",points:li(ci,88.5,99.8)}],Am=[[64,47],[61,24],[63,4],[17,62],[11,56],[43,23],[16,48],[20,34],[20,10],[7,31],[1,8],[13,33],[21,45],[12,22],[35,36],[57,20],[15,5],[2,14],[46,29],[34,10],[10,57],[25,51],[27,50],[57,34],[26,44],[18,58],[28,38],[32,54],[3,60],[9,52],[42,53],[59,6],[19,49],[39,55],[41,30],[37,40]],Dm=Pm();function Pm(){let n=Us,a=[[50,3],[58,3],[60,10],[57,17.5],[56.5,20.5],[53.5,23.5],[51.5,27],[54,28],[64,30],[79,35],[83,42],[84,58],[83,74],[83,86],[76,93],[68,97],[64,99],[62,100.5],[60,100.5]],e=[`M ${js(a[0])}`];for(let t=1;t+2<a.length;t+=3)e.push(`C ${js(a[t])} ${js(a[t+1])} ${js(a[t+2])}`);e.push(`L ${Ks(a[a.length-1],n)}`);for(let t=a.length-3;t>=1;t-=3)e.push(`C ${Ks(a[t+1],n)} ${Ks(a[t],n)} ${Ks(a[t-1],n)}`);return e.push("Z"),e.join(" ")}function js([n,a]){let e=Ja(n,a);return`${e.x} ${e.y}`}function Ks([n,a],e){let t=Ja(e(n),a);return`${t.x} ${t.y}`}function _m(n){return n.map(a=>`${a.x},${a.y}`).join(" ")}function xd(n){return n.left&&n.right?"both":n.left?"src-left":"src-right"}function Mm(){return T`<path class="bg-body" d=${Dm} />`}function Nm(n){let a=[];for(let[e,t]of Am){let r=pi[e],i=pi[t];if(!r||!i)continue;a.push(T`<line class="bg-channel" x1=${r.x} y1=${r.y} x2=${i.x} y2=${i.y} />`);let l={x:(r.x+i.x)/2,y:(r.y+i.y)/2};for(let[c,d]of[[e,r],[t,i]]){let p=n.get(c);if(!p)continue;let h=xd(p);a.push(T`<line class="bg-half ${h==="both"?"src-left":h}" x1=${d.x} y1=${d.y} x2=${l.x} y2=${l.y} />`),h==="both"&&a.push(T`<line class="bg-half src-right stripe" x1=${d.x} y1=${d.y} x2=${l.x} y2=${l.y} />`)}}return a}function zm(n,a,e){return hi.flatMap(t=>{let r=n.has(t.id),i=`bg-center bg-${t.color}${r?" defined":""}`,l=a?.get(t.id)||t.label;return[T`<polygon class=${i} points=${_m(t.points)}><title>${l}: ${r?e.defined:e.open}</title></polygon>`,t.caption?hd(l,t.caption.at,"bg-caption",t.caption.room):hd(l,md(t.points),r?`defined bg-${t.color}`:"",Im(t.points,md(t.points).y)*.86)]})}function hd(n,a,e,t){let r=n.split(/\s+/).filter(Boolean),i=r.reduce((p,h)=>Math.max(p,h.length),0),l=Math.min(Sm,t/Math.max(1,i*Om)),c=l*1.05,d=a.y-c*(r.length-1)/2;return T`<text class="bg-center-name ${e}" style=${`font-size:${l}px`} x=${a.x} y=${a.y} text-anchor="middle" dominant-baseline="central" aria-hidden="true">${r.map((p,h)=>T`<tspan x=${a.x} y=${d+h*c}>${p}</tspan>`)}</text>`}var Om=.66;function Im(n,a){let e=[];for(let t=0;t<n.length;t++){let r=n[t],i=n[(t+1)%n.length];if(r.y===i.y)continue;let l=Math.min(r.y,i.y),c=Math.max(r.y,i.y);a<l||a>c||e.push(r.x+(a-r.y)/(i.y-r.y)*(i.x-r.x))}return e.length<2?0:Math.max(...e)-Math.min(...e)}function md(n){let a=n.length||1;return{x:n.reduce((e,t)=>e+t.x,0)/a,y:n.reduce((e,t)=>e+t.y,0)/a}}function gd(n,a){return`M ${n.x} ${n.y-Hr} A ${Hr} ${Hr} 0 0 ${a} ${n.x} ${n.y+Hr} Z`}function Gm(n,a){let e=[];for(let[t,r]of Object.entries(pi)){let i=Number(t),l=n.get(i),c=l?xd(l):"",d=a.get(i);e.push(T`<g class="bg-gate-node">
|
|
10
|
+
${c==="both"?[T`<path class="bg-gate-dot on src-left" d=${gd(r,0)} />`,T`<path class="bg-gate-dot on src-right" d=${gd(r,1)} />`]:T`<circle class="bg-gate-dot ${c&&`on ${c}`}" cx=${r.x} cy=${r.y} r=${Hr} />`}
|
|
11
11
|
<text class="bg-gate ${l?"on":""}" x=${r.x} y=${r.y} text-anchor="middle" dominant-baseline="central">${i}</text>
|
|
12
12
|
${d?T`<title>${d}</title>`:""}
|
|
13
|
-
</g>`)}return e}var
|
|
14
|
-
${
|
|
15
|
-
${
|
|
16
|
-
${
|
|
17
|
-
${
|
|
18
|
-
`}function mi(n,a){return n==="design"?a("Design"):n==="personality"?a("Personality"):n??""}function Im(n){let a=new Map;for(let e of n){if(e.gate==null)continue;let t=a.get(e.gate);t?t.push(e):a.set(e.gate,[e])}return a}function gi(n){return n.planet?C(n.planet)??x(n,"planet"):""}function Gm(n,a){let e=new Map;for(let[t,r]of n){let i=r.map(l=>[gi(l),`${t}${l.line!=null?`.${l.line}`:""}`,mi(l.side,a)].filter(Boolean).join(" "));e.set(t,[a("Gate {{gate}}",{gate:t}),x(r[0],"gateName"),...i].filter(Boolean).join(" \xB7 "))}return e}function yi(n){return new Map(n.map(a=>[a.id,x(a,"name")]))}function fd(n,a={}){let e=Ve(a.lang),t=n.centers??[],r=Im(n.gates??[]);return T`<svg class="chart bodygraph" xmlns=${Ue} part="chart" viewBox=${pi} preserveAspectRatio="xMidYMid meet" role="img" aria-label=${e("Human Design bodygraph with nine centers, channels, and activated gates overlaid on a human silhouette")}><title>${e("Human Design bodygraph")}</title><desc>${e("Nine energy centers in their canonical positions over a human silhouette, each filled with its traditional color when defined and outlined when open, wired by channels between activated gates.")}</desc>${hi({definedCenters:new Set(t.filter(i=>i.defined).map(i=>i.id)),gateSources:new Map([...r].map(([i,l])=>[i,{left:l.some(c=>c.side==="design"),right:l.some(c=>c.side==="personality")}])),gateTitles:Gm(r,e),centerNames:yi(t),stateWords:{defined:e("Defined"),open:e("Open")}})}</svg>`.markup}var Ks=u`.chart{width:100%;max-width:var(--roxy-chart-max-width,30rem);height:auto;margin:0 auto;display:block}@container (width<=26rem){.chart{width:calc(100% + 2 * var(--roxy-space-lg));margin-inline:calc(-1 * var(--roxy-space-lg))}}.legend{gap:var(--roxy-space-sm) var(--roxy-space-md);font-size:var(--roxy-text-xs);color:var(--roxy-muted);flex-wrap:wrap;display:flex}.legend .swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border:1px solid var(--roxy-secondary);border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.legend .swatch.source{border-radius:var(--roxy-radius-full);border-color:#0000}`;var Qt=[J,u`.roxy-facts{margin:0}.lead{font-size:var(--roxy-text-sm);margin:0}.keynotes{gap:var(--roxy-space-xs);margin:0;display:grid}.keynotes dd{margin:0}`];function pt(n){let a=n.filter(e=>!!e.value);return a.length===0?o:s`<dl class="roxy-facts" part="facts">${a.map(e=>s`<div part="fact"><dt>${e.label}</dt><dd>${e.value}</dd></div>`)}</dl>`}function Us(n,a,e){return!n&&!a?o:s`<div class="themes roxy-chips" part="themes">${n?s`<span class="roxy-chip" data-tone="success">${e("Signature: {{value}}",{value:n})}</span>`:o} ${a?s`<span class="roxy-chip" data-tone="danger">${e("Not-self: {{value}}",{value:a})}</span>`:o}</div>`}function Vs(n,a){return!n?.personality&&!n?.design?o:s`<dl class="keynotes" part="keynotes">${n.personality?s`<dt>${a("Line {{line}} \xB7 Personality",{line:n.personalityLine??""})}</dt><dd>${n.personality}</dd>`:o} ${n.design?s`<dt>${a("Line {{line}} \xB7 Design",{line:n.designLine??""})}</dt><dd>${n.design}</dd>`:o}</dl>`}var Fm=["gold","green","brown","red"],ht=class extends f{constructor(){super(...arguments);this.viewport=new ne(this);this.side="personality"}renderData(e){let t=e.centers??[],r=yi(t);return s`<div class="wrap bodygraph" part="card"><header class="head" part="header"><div><h2>${this.t("Bodygraph")}</h2>${e.designInstantUtc?s`<div class="meta">${this.t("Design")} <time datetime="${e.designInstantUtc}">${Rc(this.effectiveLang(),e.designInstantUtc)}</time></div>`:o}</div>${e.type||e.profile?s`<div class="type-line">${[x(e,"type"),e.profile?this.t("Profile {{profile}}",{profile:e.profile}):""].filter(Boolean).join(" \xB7 ")}</div>`:o}</header><div class="layout" part="layout">${this.viewport.renderChartViewport(ke(fd(e,{lang:this.effectiveLang()})),this.t("Human Design bodygraph"),this.translator)} ${this.renderSummary(e,r)}</div>${this.renderReading(e)} ${this.renderChannels(e.channels??[],r)} ${this.renderCenters(t)} ${this.renderActivations(e)}</div>`}renderSummary(e,t){let r=e.incarnationCross;return s`<div class="summary" part="details">${pt([{label:this.t("Type"),value:x(e,"type")},{label:this.t("Strategy"),value:x(e,"strategy")},{label:this.t("Authority"),value:x(e,"authority")},{label:this.t("Profile"),value:e.profile},{label:this.t("Definition"),value:x(e,"definition")}])} ${e.typeDescription&&!this.hideReadings?s`<p class="lead">${e.typeDescription}</p>`:o} ${r?.name?s`<p class="cross">${r.name} ${r.gates?.length?s`<span class="gates">(${r.gates.join(", ")})</span>`:o}</p>`:o} ${Us(e.signature?x(e,"signature"):void 0,e.notSelf?x(e,"notSelf"):void 0,this.translator)} ${this.renderLegend(t)}</div>`}renderLegend(e){let t=Fm.map(r=>[r,di.filter(i=>i.color===r).map(i=>e.get(i.id)||i.label).join(", ")]);return s`<div class="legend" part="legend"><span class="legend-row"><span class="swatch source src-left"></span>${this.t("Design")} <span class="swatch source src-right"></span>${this.t("Personality")} </span><span class="legend-row">${this.t("Center colors when defined. Open centers are outlined.")}</span> ${t.map(([r,i])=>s`<span><span class="swatch bg-${r} defined"></span>${i}</span>`)} <span><span class="swatch"></span>${this.t("Open center")}</span></div>`}renderReading(e){let t=e.incarnationCross,r=[{label:this.t("Strategy"),aside:x(e,"strategy"),body:e.strategyDescription},{label:this.t("Authority"),aside:x(e,"authority"),body:e.authorityDescription},{label:this.t("Profile"),aside:e.profile,body:e.profileDescription,extra:Vs(e.profileKeynotes,this.translator)},{label:this.t("Definition"),aside:x(e,"definition"),body:e.definitionDescription},{label:this.t("Aura"),body:e.aura},{label:this.t("Incarnation cross"),aside:t?x(t,"angle"):void 0,body:t?.description??""}];return this.renderInterpretation(r,"hd-reading")}renderChannels(e,t){if(e.length===0||this.hideReadings)return o;let r=new Map;for(let l of e){let c=l.circuit??"",d=r.get(c);d?d.push(l):r.set(c,[l])}let i=0;return s`<section class="block" part="section channels"><h3>${this.t("Defined channels ({{count}})",{count:e.length})}</h3>${[...r].map(([l,c])=>s`<div class="group">${l?s`<p class="group-head">${this.t("{{circuit}} circuit",{circuit:x(c[0],"circuit")})}</p>`:o} ${c[0]?.circuitDescription?s`<p class="group-note">${c[0].circuitDescription}</p>`:o} ${c.map(d=>s`<details class="interp-card" part="reading" name="hd-channel" ?open="${i++===0}"><summary><span class="interp-lead"><span class="chan-gates">${d.gateA}-${d.gateB}</span> <span>${x(d,"name")}</span> </span>${V()} <span class="interp-aside"><span class="roxy-chips">${(d.centers??[]).map(p=>s`<span class="roxy-chip">${t.get(p)||p}</span>`)}</span></span></summary><div class="interp-body">${d.description?s`<p>${d.description}</p>`:o}</div></details>`)}</div>`)}</section>`}renderCenters(e){if(e.length===0||this.hideReadings)return o;let t=e.filter(r=>r.defined).length;return s`<section class="block" part="section centers"><h3>${this.t("Centers ({{defined}} defined, {{open}} open)",{defined:t,open:e.length-t})}</h3>${e.map((r,i)=>s`<details class="interp-card" part="reading" name="hd-center" ?open="${i===0}"><summary><span class="interp-lead">${x(r,"name")}</span> ${V()} <span class="interp-aside"><span class="roxy-chips"><span class="roxy-chip ${r.defined?"on":""}">${r.defined?this.t("Defined"):this.t("Open")}</span> ${r.motor?s`<span class="roxy-chip">${this.t("Motor")}</span>`:o} ${r.awareness?s`<span class="roxy-chip">${this.t("Awareness")}</span>`:o}</span></span></summary><div class="interp-body">${r.theme?s`<p>${r.theme}</p>`:o} ${!r.defined&&r.notSelfQuestion?s`<dl class="keynotes"><dt>${this.t("Not-self question")}</dt><dd>${r.notSelfQuestion}</dd></dl>`:o} ${r.biology?s`<p class="footnote">${this.t("Biology")}. ${r.biology}</p>`:o} ${r.gates?.length?s`<p class="footnote">${this.t("Gates {{gates}}",{gates:r.gates.join(", ")})}</p>`:o}</div></details>`)}</section>`}renderActivations(e){let t=e.gates??[];if(t.length===0||this.hideReadings)return o;let r=t.filter(h=>h.side==="personality"),i=t.filter(h=>h.side==="design"),l=r.length>0&&i.length>0,c=this.side,d=l?c==="design"?i:r:t,p=l?e.sides?.[c]:void 0;return s`<section class="block" part="section activations"><h3>${this.t("Activations ({{count}})",{count:t.length})}</h3>${l?ue({items:[{id:"personality",label:`${this.t("Personality")} (${r.length})`},{id:"design",label:`${this.t("Design")} (${i.length})`}],active:c,onSelect:h=>{this.side=h},label:this.t("Chart sides"),idPrefix:"hd",controls:true}):o}<div id="${l?`hd-panel-${c}`:o}" part="panel" role="${l?"tabpanel":o}" aria-labelledby="${l?`hd-tab-${c}`:o}">${p?s`<p class="side-note">${p}</p>`:o} ${d.map((h,m)=>this.renderGate(h,m===0))}</div></section>`}renderGate(e,t){let r=gi(e),i=x(e,"planet"),l=e.ichingHexagram;return s`<details class="interp-card" part="reading" name="hd-gate" ?open="${t}"><summary><span class="interp-lead">${r?s`<span class="glyph roxy-glyph" aria-hidden="true">${r}</span>`:o} <span class="gate-id">${e.gate}${e.line!=null?`.${e.line}`:""}</span> <span>${x(e,"gateName")}</span> </span>${V()} ${i?s`<span class="interp-aside"><small>${i}</small></span>`:o}</summary><div class="interp-body">${e.gateDescription?s`<p>${e.gateDescription}</p>`:o} ${e.lineMeaning?s`<dl class="keynotes"><dt>${this.t("Line {{line}}",{line:e.line??""})}</dt><dd>${e.lineMeaning}</dd></dl>`:o} ${e.planetDescription?s`<p class="footnote">${i}. ${e.planetDescription}</p>`:o} ${l?.number?s`<p class="footnote">${this.t("I Ching hexagram {{number}}",{number:l.number})}${l.english?`, ${l.english}`:""}</p>`:o}</div></details>`}};ht.endpoints=No,ht.styles=[v,pe,ge,O,H,Qt,Ps,Ks,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.type-line,.meta{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.layout{align-items:start;gap:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.summary{gap:var(--roxy-space-md);display:grid}.cross{border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);font-size:var(--roxy-text-sm);padding-inline-start:var(--roxy-space-sm)}.cross .gates{color:var(--roxy-muted);font-variant-numeric:tabular-nums}.legend-row{flex-basis:100%}.legend-row .swatch:not(:first-child){margin-inline-start:var(--roxy-space-md)}.legend .swatch.defined{border-color:color-mix(in srgb, var(--roxy-fg) 45%, transparent)}.group+.group{margin-block-start:var(--roxy-space-md)}.group-head{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.group-note,.side-note,.footnote{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.group-note,.side-note{margin-block-end:var(--roxy-space-sm)}.side-note{padding-block-start:var(--roxy-space-sm)}.roxy-chip.on{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.gate-id,.chan-gates{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold);color:var(--roxy-accent-ink)}.glyph{color:var(--roxy-accent-ink)}`],y([I()],ht.prototype,"side",2),ht=y([L("roxy-bodygraph")],ht);var Bm={eight:"Eight karaka scheme, Rahu included and ranked from the end of its sign.",seven:"Seven karaka scheme, Rahu excluded and the Pitrikaraka office not assigned."},ea=class extends f{renderData(a){let e=a.karakas??[];return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Chara karakas")}"><header class="head" part="header"><h2>${this.t("Chara karakas")}</h2><p class="scheme"><span class="scheme-chip roxy-chip">${a.scheme??""}</span> ${a.scheme?Bm[a.scheme]??"":""}</p>${W(this.effectiveLang(),a.frame,this.translator)}</header><dl class="roxy-facts" part="details"><div><dt>${this.t("Atmakaraka")}</dt><dd>${a.atmakaraka??""}</dd></div><div><dt>${this.t("Darakaraka")}</dt><dd>${a.darakaraka??""}</dd></div></dl><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Chara karakas")}"><table class="stacked" role="table"><caption class="roxy-sr-only">${this.t("Chara karakas in descending rank: each office, the graha holding it, its rashi, the degree it holds, the degree that earned the office, and what the office is read for.")}</caption><thead><tr><th scope="col">${this.t("Office")}</th><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Ranked on")}</th><th scope="col">${this.t("Read for")}</th></tr></thead><tbody>${e.map((t,r)=>this.renderRow(t,r===0))}</tbody></table></div></div>`:this.renderEmpty()}renderRow(a,e){let t=C(a.graha)??"",r=z(a.rashi)??"";return s`<tr class="${e?"lead-row":""}"><td class="name">${a.name??""}${a.abbreviation?s`<span class="abbr">${a.abbreviation}</span>`:o}</td><td data-inline data-label="${this.t("Graha")}">${t?s`<span class="glyph roxy-glyph">${t}</span>`:o}${a.graha??""}</td><td data-inline data-label="${this.t("Rashi")}">${r?s`<span class="glyph roxy-glyph">${r}</span>`:o}${a.rashi??""}</td><td data-inline data-label="${this.t("Degree")}">${$(this.effectiveLang(),a.degreeInRashi,2)}</td><td data-inline data-label="${this.t("Ranked on")}">${$(this.effectiveLang(),a.rankingDegree,2)} ${a.isReversed?s`<span class="reversed">${this.t("measured from the end of the sign")}</span>`:o}</td><td class="meaning"><strong>${a.meaning??""}</strong> ${a.significations?s`<p>${a.significations}</p>`:o}</td></tr>`}};ea.endpoints=zo,ea.styles=[v,B,J,...zs,u`.wrap{overflow:hidden}.head{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border);display:grid}h2,p{margin:0}.scheme{align-items:baseline;gap:var(--roxy-space-sm);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.scheme-chip{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.roxy-facts{padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border);margin:0}.roxy-facts dd{font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold)}.reversed{color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:block}`],ea=y([L("roxy-chara-karakas")],ea);var ta=class extends f{isCurrent(a){let e=Date.now(),t=Date.parse(a.start),r=Date.parse(a.end);return Number.isNaN(t)||Number.isNaN(r)?false:e>=t&&e<r}renderTile(a){let e=a.effect==="Good"?"good":a.effect==="Bad"?"bad":"neutral",t=this.isCurrent(a),r=C(a.lord)??"",i=Ke(this.effectiveLang(),a),l=e==="good"?this.t("Favourable"):e==="bad"?this.t("Unfavourable"):"";return s`<div class="cho-tile ${e}${t?" now":""}" role="listitem" aria-current="${t?"time":"false"}"><span class="tile-name">${a.name}${t?s`<span class="now-badge">${this.t("Now")}</span>`:o} </span><span class="tile-time" aria-label="${this.t("Time range")}">${i}</span> <span class="tile-lord">${r?s`<span class="roxy-glyph" aria-hidden="true">${r}</span>`:o} ${a.lord} ${l?s`<span aria-hidden="true">·</span><span class="tile-effect">${l}</span>`:o}</span></div>`}renderData(a){let{date:e,dayChoghadiya:t,nightChoghadiya:r}=a;return s`<div class="wrap" part="card"><div class="header" part="header"><h2>${this.t("Choghadiya")}</h2>${e?s`<p class="roxy-label">${A(this.effectiveLang(),e)}</p>`:o}</div><div class="cho-grid" part="table"><section class="period-col" aria-label="${this.t("Day muhurta periods")}"><h3 class="period-heading">${this.t("Daytime")}</h3><div role="list" aria-label="${this.t("Daytime choghadiya")}">${t&&t.length>0?t.map(i=>this.renderTile(i)):s`<p class="roxy-empty" role="status">${this.t("No daytime periods")}</p>`}</div></section><section class="period-col" aria-label="${this.t("Night muhurta periods")}"><h3 class="period-heading">${this.t("Night")}</h3><div role="list" aria-label="${this.t("Nighttime choghadiya")}">${r&&r.length>0?r.map(i=>this.renderTile(i)):s`<p class="roxy-empty" role="status">${this.t("No nighttime periods")}</p>`}</div></section></div></div>`}};ta.endpoints=Oo,ta.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.header{gap:var(--roxy-space-xs);display:grid}h2,h3,p{margin:0}.cho-grid{gap:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}@container (width>=40rem){.cho-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.period-heading{margin-block-end:var(--roxy-space-xs)}.cho-tile{align-items:center;gap:0 var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);grid-template-columns:minmax(0,1fr) auto;display:grid}.cho-tile:last-child{border-block-end:0}.cho-tile.now{border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);padding-inline-start:var(--roxy-space-sm)}.now-badge{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);margin-inline-start:var(--roxy-space-sm)}.tile-name{min-width:0;font-weight:var(--roxy-weight-bold);overflow-wrap:anywhere;grid-column:1}.good :is(.tile-name,.tile-effect){color:var(--roxy-success-fg)}.bad :is(.tile-name,.tile-effect){color:var(--roxy-danger-fg)}.tile-time{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap;grid-area:1/2/3;align-self:center}.tile-lord{align-items:center;gap:var(--roxy-space-xs);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;grid-column:1;display:flex}`],ta=y([L("roxy-choghadiya-grid")],ta);var Hm=["sun","moon","venus","mars"],xd=["fire","earth","air","water"],bd={astrology:"Astrology compatibility",numerology:"Numerology compatibility",biorhythm:"Biorhythm compatibility"},jm={in_sync:"In sync",complementary:"Complementary",neutral:"Neutral",opposing:"Opposing"},mt=class extends f{constructor(){super(...arguments);this.mode="astrology"}getBreakdown(){let e=this.data;if(!e)return{};if("categories"in e&&e.categories){let t={};for(let[r,i]of Object.entries(e.categories))typeof i=="number"&&Number.isFinite(i)&&(t[r]=i);return t}return{}}renderData(e){let t=e.overallScore,r=this.getBreakdown(),i="rating"in e?e.rating:void 0,l="archetype"in e?e.archetype:void 0,c="advice"in e?e.advice:void 0,d="summary"in e?e.summary:void 0,p="interpretation"in e?e.interpretation:void 0,h="strengths"in e?e.strengths:void 0,m="challenges"in e?e.challenges:void 0,g="keyAspects"in e?e.keyAspects:void 0,b=!this.hideReadings,w=this.t(bd[this.mode]??bd.astrology);return s`<article class="card" part="card" aria-label="${w}"><div class="head" part="header"><h2>${w}</h2><div>${typeof t=="number"?s`<div class="score">${Math.round(t)}</div>`:o} ${i?s`<div class="rating">${i}</div>`:o}</div></div>${Object.keys(r).length>0?s`<div role="list" part="details breakdown">${Object.entries(r).map(([S,R])=>s`<div class="bar-row" role="listitem"><span style="text-transform:capitalize">${S}</span> <span class="bar"><span style="width:${Math.max(0,Math.min(100,R))}%"></span></span> <span>${Math.round(R)}</span></div>`)}</div>`:o} ${l?s`<p><span class="archetype">${l.label}</span> ${l.description&&b?s`· ${l.description}`:o}</p>`:o} ${d&&b?s`<p>${d}</p>`:o} ${p&&b?s`<p class="body">${p}</p>`:o} ${c&&b?s`<p class="body">${c}</p>`:o} ${this.renderAspectBreakdown()} ${this.renderSignCompatibility()} ${this.renderElementBalance()} ${this.renderSubScores()} ${b&&((h?.length??0)>0||(m?.length??0)>0)?s`<div class="lists" part="section strengths-challenges">${h?.length?s`<div><h3>${this.t("Strengths")}</h3><ul>${h.map(S=>s`<li>${S}</li>`)}</ul></div>`:o} ${m?.length?s`<div><h3>${this.t("Challenges")}</h3><ul>${m.map(S=>s`<li>${S}</li>`)}</ul></div>`:o}</div>`:o} ${g?.length?s`<div class="lists" part="section key-aspects"><div><h3>${this.t("Key aspects")}</h3><ul>${g.slice(0,6).map(S=>s`<li>${Km(this.effectiveLang(),S,b)}</li>`)}</ul></div></div>`:o}</article>`}renderAspectBreakdown(){let e=this.astro()?.aspectBreakdown;return e?s`<p class="counts" part="details aspect-breakdown" role="region" aria-label="${this.t("Aspect breakdown")}">${typeof e.total=="number"?s`<span>${this.t("{{label}}: {{value}}",{label:this.t("Total"),value:e.total})}</span>`:o} <span class="harmonious">${this.t("Harmonious: {{count}}",{count:e.harmonious})}</span> <span class="challenging">${this.t("Challenging: {{count}}",{count:e.challenging})}</span> <span>${this.t("Neutral: {{count}}",{count:e.neutral})}</span></p>`:o}renderSignCompatibility(){let e=this.astro(),t=e?.signCompatibility;if(!t)return o;let r=e?.persons,i=Hm.map(l=>{let c=t[l];if(!c)return null;let d=p=>{let h=D((p==="person1"?c.person1Sign:c.person2Sign)??""),m=r?.[p]?.[l]?.degree,g=typeof m=="number"?` ${Math.round(m)}\xB0`:"";return`${h}${g}`};return{glyph:C(l),label:D(l),aside:me(this.effectiveLang(),[d("person1"),d("person2")]),body:c.description??""}}).filter(l=>l!==null);return this.renderInterpretation(i,"compat-signs","Sign compatibility")}renderElementBalance(){let e=this.astro()?.elementBalance;if(!e)return o;let t=e.person1,r=e.person2,i=Math.max(1,...xd.map(c=>Math.max(t?.[c]??0,r?.[c]??0))),l=e.sharedElement?.toLowerCase();return s`<section class="block" part="section element-balance"><h3>${this.t("Element balance")}</h3><div class="elements"><div class="el-row el-head"><span></span> <span class="roxy-label">${this.t("Person 1")}</span> <span class="roxy-label">${this.t("Person 2")}</span></div>${xd.map(c=>{let d=t?.[c]??0,p=r?.[c]??0;return s`<div class="${c===l?"el-row shared":"el-row"}"><span class="el-name">${c}</span> <span class="el-bar p1"><span>${d}</span> <span class="track"><span style="width:${d/i*100}%"></span></span> </span><span class="el-bar p2"><span class="track"><span style="width:${p/i*100}%"></span></span> <span>${p}</span></span></div>`})}</div>${e.description&&!this.hideReadings?s`<p class="shared-note">${e.description}</p>`:o}</section>`}renderSubScores(){let e=this.data;if(!e)return o;let t=[];if("lifePath"in e){let r=[["Life Path",e.lifePath],["Expression",e.expression],["Soul Urge",e.soulUrge]];for(let[i,l]of r)l&&t.push({label:this.t(i),aside:[me(this.effectiveLang(),[String(l.person1),String(l.person2)]),te(this.effectiveLang(),l.compatibility,0)].filter(Boolean).join(" \xB7 "),body:l.description??""})}if("cycles"in e&&e.cycles)for(let[r,i]of Object.entries(e.cycles))i&&t.push({label:Xt(r,l=>this.t(l)),aside:[typeof i.alignment=="number"?this.t("{{percent}} in step",{percent:te(this.effectiveLang(),i.alignment,0)}):"",i.phase?this.t(jm[i.phase]):""].filter(Boolean).join(" \xB7 "),body:i.description??""});return this.renderInterpretation(t,"compat-sub-scores","Breakdown")}astro(){let e=this.data;return e&&"signCompatibility"in e?e:void 0}};mt.endpoints=Io,mt.styles=[v,O,H,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.head{align-items:center;gap:var(--roxy-space-md);grid-template-columns:minmax(0,1fr) auto;display:grid}.head h2{text-transform:capitalize}.score{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xl);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);font-variant-numeric:tabular-nums}.rating{color:var(--roxy-secondary);font-size:var(--roxy-text-sm)}.bar-row{align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);grid-template-columns:14ch minmax(0,1fr) 4ch;display:grid}.bar,.el-bar .track{block-size:var(--roxy-space-sm);background:var(--roxy-border);border-radius:var(--roxy-radius-full);overflow:hidden}.bar>span{background:var(--roxy-accent);height:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.bar-row>span:last-child{color:var(--roxy-muted);text-align:end;font-variant-numeric:tabular-nums}.archetype{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.lists{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,24ch),1fr));display:grid}.lists h3{margin-block-end:var(--roxy-space-xs)}.lists ul{font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md)}p.body{font-size:var(--roxy-text-sm)}.counts{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.harmonious{color:var(--roxy-info-fg)}.challenging{color:var(--roxy-danger-fg)}.block>h3{margin-block-end:var(--roxy-space-sm)}.elements{gap:var(--roxy-space-sm);display:grid}.el-row{align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);grid-template-columns:8ch minmax(0,1fr) minmax(0,1fr);display:grid}.el-row .el-name{text-transform:capitalize}.el-row.shared .el-name{font-weight:var(--roxy-weight-bold)}.el-head span:nth-child(2){text-align:end}.el-bar{align-items:center;gap:var(--roxy-space-xs);color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;display:flex}.el-bar.p1{flex-direction:row-reverse}.el-bar .track{flex:auto;display:flex}.el-bar.p1 .track{justify-content:flex-end}.el-bar .track>span{background:var(--roxy-accent);height:100%;display:block}.el-bar.p2 .track>span{background:var(--roxy-secondary)}.shared-note{font-size:var(--roxy-text-sm);margin-block-start:var(--roxy-space-sm)}`],y([k({type:String,reflect:true})],mt.prototype,"mode",2),mt=y([L("roxy-compatibility-card")],mt);function Km(n,a,e){let t=we(a),r=typeof a.orb=="number"?` (orb ${$(n,a.orb,1)}\xB0)`:"",i=[a.planet1,t,a.planet2].filter(Boolean).join(" ");return a.description&&e?`${i}${r} \xB7 ${a.description}`:`${i}${r}`}var vd={fortunate:"Fortunate",unfortunate:"Unfortunate",mixed:"Mixed fortune"},Um={fortunate:"success",unfortunate:"danger",mixed:"warning"},aa=class extends f{renderData(a){let e=N(this.effectiveLang(),a.number);return s`<article class="card" part="card" aria-label="${`${this.t("Compound number")} ${e}`}"><header class="hero" part="header"><div class="numeral">${e}</div><div><p class="roxy-label">${this.t("Compound number")}</p>${a.name?s`<h2>${a.name}</h2>`:o}</div></header><ul class="badges roxy-chips" part="details"><li>${this.t("Root number {{n}}",{n:N(this.effectiveLang(),a.root)})}</li><li class="roxy-chip" data-tone="${Um[a.nature]??o}">${vd[a.nature]?this.t(vd[a.nature]):E(a.nature)}</li>${typeof a.sameAs=="number"?s`<li>${this.t("Same meaning as {{n}}",{n:N(this.effectiveLang(),a.sameAs)})}</li>`:o}</ul>${a.meaning&&!this.hideReadings?s`<p part="section readings">${a.meaning}</p>`:o}</article>`}};aa.endpoints=Go,aa.styles=[v,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.hero>div{min-width:0}.numeral{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1}.badges>li{font-variant-numeric:tabular-nums}`],aa=y([L("roxy-compound-number")],aa);var Vm={apple:"#8db600",azure:"#007fff",blackish:"black",bluish:"blue",bottle:"#006a4e",brass:"#b5a642",brick:"#b22222",brownish:"brown",browns:"brown",burgundy:"#800020",clear:"#eef2f6",colorless:"#eef2f6",colourless:"#eef2f6",cream:"#fffdd0",creamy:"#fffdd0",emerald:"#50c878",golden:"gold",greenish:"green",lilac:"#c8a2c8",mauve:"#e0b0ff",peach:"peachpuff",pinkish:"pink",reddish:"red",rose:"#f4a6b7",royal:"royalblue",silvery:"silver",sky:"skyblue",yellowish:"yellow"},qm=new Set(["beige","black","blue","brown","crimson","cyan","gold","gray","green","grey","indigo","lavender","magenta","maroon","navy","olive","orange","pink","purple","red","salmon","silver","tan","teal","turquoise","violet","white","yellow"]),Ym={bright:["white",85],dark:["black",60],deep:["black",70],faintly:["white",30],light:["white",55],pale:["white",45],rich:["black",80]};function qs(n){let a=[],e=[];for(let l of n.toLowerCase().split(/[\s-]+/)){let c=Ym[l];if(c){e.push(c);continue}let d=Vm[l]??(qm.has(l)?l:"");d&&a.push(d)}let[t,r]=a;if(!t)return"var(--roxy-border, #e4e4e7)";let i=r?`color-mix(in srgb, ${t}, ${r})`:t;for(let[l,c]of e)i=`color-mix(in srgb, ${i} ${c}%, ${l})`;return i}var ra=class extends f{renderData(a){let e=a.colors??[],t=a.keywords??[],r=a.pairsWith??[],i=Rs(this.effectiveLang(),a.birthMonth)||void 0,l=a.name??this.t("Crystal");return s`<article class="wrap" part="card" aria-label="${l}"><div class="hero" part="header">${a.imageUrl?s`<img class="photo" part="chart" src="${a.imageUrl}" alt="${l}" loading="lazy">`:o}<div><h2>${a.name}</h2>${a.description&&!this.hideReadings?s`<p class="desc">${a.description}</p>`:o}</div></div><dl class="roxy-facts" part="details">${this.attr(this.t("Planet"),a.planet)} ${this.attr(this.t("Hardness"),typeof a.hardness=="number"?this.t("{{value}} Mohs",{value:$(this.effectiveLang(),a.hardness)}):void 0)} ${this.attr(this.t("Vibration"),a.numericalVibration)} ${this.attr(this.t("Birthstone"),i)} ${this.list(this.t("Chakras"),a.chakras)} ${this.list(this.t("Zodiac"),a.zodiacSigns)} ${this.list(this.t("Elements"),a.elements)} ${e.length?s`<div><dt>${this.t("Colors")}</dt><dd><div class="colors">${e.map(c=>s`<span class="color"><span class="dot" style="${`background:${qs(c)}`}"></span>${c}</span>`)}</div></dd></div>`:o}</dl>${this.renderMeaning(a.meaning)} ${t.length&&!this.hideReadings?s`<section part="section keywords"><h3>${this.t("Keywords")}</h3><ul class="chips roxy-chips">${t.map(c=>s`<li>${c}</li>`)}</ul></section>`:o} ${a.affirmation&&!this.hideReadings?s`<p class="affirmation">${a.affirmation}</p>`:o} ${r.length?s`<section part="section pairs-with"><h3>${this.t("Pairs with")}</h3><ul class="chips roxy-chips">${r.map(c=>s`<li>${String(c).replace(/-/g," ")}</li>`)}</ul></section>`:o}</article>`}attr(a,e){return e==null||e===""?o:s`<div><dt>${a}</dt><dd>${e}</dd></div>`}list(a,e){return e?.length?s`<div><dt>${a}</dt><dd>${e.join(", ")}</dd></div>`:o}renderMeaning(a){if(!a||this.hideReadings)return o;let t=[[this.t("Spiritual"),a.spiritual],[this.t("Emotional"),a.emotional],[this.t("Physical"),a.physical]].filter(([,r])=>!!r);return t.length===0?o:s`<div class="meaning" part="section meaning">${t.map(([r,i])=>s`<h3>${r}</h3><p>${i}</p>`)}</div>`}};ra.endpoints=Fo,ra.styles=[v,J,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.hero{align-items:flex-start;gap:var(--roxy-space-md);display:flex}.photo{border-radius:var(--roxy-radius-md);object-fit:cover;background:var(--roxy-border);flex:none;block-size:4lh;inline-size:4lh}.hero h2{margin-block-end:var(--roxy-space-xs)}.desc,.meaning p{font-size:var(--roxy-text-sm)}.colors{gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}.color{align-items:center;gap:var(--roxy-space-xs);font-size:var(--roxy-text-xs);text-transform:capitalize;display:inline-flex}.dot{border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-full);block-size:.6lh;inline-size:.6lh}.meaning h3,section>h3{margin-block-end:var(--roxy-space-xs)}.meaning p{margin-block-end:var(--roxy-space-sm)}.chips>li{text-transform:capitalize}.affirmation{border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);font-size:var(--roxy-text-sm);padding-inline-start:var(--roxy-space-md);font-style:italic}`],ra=y([L("roxy-crystal-card")],ra);var gt=class extends f{constructor(){super(...arguments);this.heading="";this.rowDetail={tag:"roxy-crystal-card",path:"crystals/{id}"};this.listKey="crystals"}renderData(e){let t=e.crystals??[];if(t.length===0)return this.renderEmpty();let r=this.heading||this.deriveHeading(e),i="total"in e&&typeof e.total=="number"?e.total:t.length;return s`<section class="wrap" part="card" aria-label="${r}"><header class="head" part="header"><h2>${r}</h2><span class="count">${i===1?this.t("1 crystal"):this.t("{{count}} crystals",{count:i})}</span></header><ul class="grid" part="section crystals">${t.map(l=>s`<li><button type="button" class="tile" aria-pressed="${this.openedRowId===l.id?"true":"false"}" @click="${()=>this.pickRow({id:l.id,name:l.name})}">${l.imageUrl?s`<img class="photo" src="${l.imageUrl}" alt="${l.name??this.t("Crystal")}" loading="lazy">`:s`<div class="photo" aria-hidden="true"></div>`}<p class="name">${l.name}</p>${l.colors&&l.colors.length>0?s`<div class="colors" aria-label="${this.t("Colors: {{list}}",{list:me(this.effectiveLang(),l.colors)})}">${l.colors.map(c=>s`<span class="swatch" style="${`background:${qs(c)}`}" title="${c}"></span>`)}</div>`:o}</button></li>`)}</ul>${this.renderMore()} ${this.openedRow?s`<div class="detail" part="detail">${this.openedRow}</div>`:o}</section>`}deriveHeading(e){return"chakra"in e&&e.chakra?this.t("{{chakra}} chakra crystals",{chakra:e.chakra}):"element"in e&&e.element?this.t("{{element}} element crystals",{element:e.element}):"sign"in e&&e.sign?this.t("Crystals for {{sign}}",{sign:e.sign}):"month"in e&&typeof e.month=="number"?this.t("{{month}} birthstones",{month:Rs(this.effectiveLang(),e.month)}):this.t("Crystals")}};gt.endpoints=Bo,gt.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.count{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.grid{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fill,minmax(min(100%,16ch),1fr));margin:0;padding:0;list-style:none;display:grid}.tile{gap:var(--roxy-space-xs);width:100%;padding:var(--roxy-space-xs);color:inherit;border-radius:var(--roxy-radius-md);text-align:start;cursor:pointer;transition:border-color var(--roxy-motion-duration) var(--roxy-motion-easing);background:0 0;border:1px solid #0000;display:grid}.tile[aria-pressed=true],.tile:hover{border-color:var(--roxy-accent)}.detail{margin-block-start:var(--roxy-space-md)}.photo{aspect-ratio:1;border-radius:var(--roxy-radius-sm);object-fit:cover;background:var(--roxy-border);width:100%}.name{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.colors{gap:var(--roxy-space-xs);flex-wrap:wrap;display:flex}.swatch{border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-full);block-size:.4lh;inline-size:.4lh}`],y([k({type:String,reflect:true})],gt.prototype,"heading",2),gt=y([L("roxy-crystal-grid")],gt);function Ld(n){return"pranaDashas"in n?"Prana":"sookshmaDashas"in n?"Sookshma":"pratyantardashas"in n?"Pratyantardasha":"antardashas"in n?"Antardasha":"Mahadasha"}function ui(n){if("sookshmaPeriod"in n&&n.sookshmaPeriod)return{source:"Sookshma",period:n.sookshmaPeriod};if("pratyantardashaPeriod"in n&&n.pratyantardashaPeriod)return{source:"Pratyantardasha",period:n.pratyantardashaPeriod};if("antardashaPeriod"in n&&n.antardashaPeriod)return{source:"Antardasha",period:n.antardashaPeriod};if("mahadashaPeriod"in n&&n.mahadashaPeriod)return{source:"Mahadasha",period:n.mahadashaPeriod}}function fi(n){if(!n)return"";let a=[];return n.years&&a.push(`${n.years}y`),n.months&&a.push(`${n.months}m`),n.days&&a.push(`${n.days}d`),a.length?a.join(" "):"0d"}function $d(n,a){return Ze(n?.strongHouses?.length?n.strongHouses:n?.signifiedHouses,a)}function Ys(n,a){let e=A(n,a.startDate);return e&&e===A(n,a.endDate)?pr(n,a.startDate,a.endDate):ve(n,a.startDate,a.endDate)}var Xe=class extends f{constructor(){super(...arguments);this.period="current";this.view="timeline"}renderData(e){let t=this.collectPeriods(e),r=t.length?Math.max(...t.map(h=>h.durationYears)):0,i=Zm(t.length?Math.min(...t.map(h=>h.durationYears)):0),l=this.hideReadings?[]:this.readings(e,t),c=this.frameRows(e),d=[{id:"timeline",label:this.t("Timeline")},...l.length?[{id:"readings",label:this.t("Readings ({{count}})",{count:l.length})}]:[],...c.length?[{id:"frame",label:this.t("Chart details")}]:[]],p=d.some(h=>h.id===this.view)?this.view:"timeline";return s`<div class="wrap" part="card" aria-label="${this.t("Dasha timeline")}"><header class="head" part="header"><h2 class="title">${this.heading(e)}</h2>${this.renderLordChain(e)}</header>${this.renderParentMahadasha(e)} ${d.length>1?ue({items:d,active:p,onSelect:h=>{this.view=h},label:this.t("Dasha views"),idPrefix:"roxy-dasha",controls:true}):o}<div id="roxy-dasha-panel-${p}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="${d.length>1?`roxy-dasha-tab-${p}`:o}">${p==="timeline"?s`${this.period==="current"?this.renderCurrent(e):o} ${t.length>0?s`<div class="timeline" part="chart timeline" role="list">${t.map(h=>this.renderBar(h,r,i,e.houseThemes))}</div>`:o}`:o} ${p==="readings"?this.renderReadings(l):o} ${p==="frame"?this.renderFrame(c):o}</div></div>`}renderLordChain(e){let t=["mahadashaLord"in e?e.mahadashaLord:void 0,"antardashaLord"in e?e.antardashaLord:void 0,"pratyantardashaLord"in e?e.pratyantardashaLord:void 0,"sookshmaLord"in e?e.sookshmaLord:void 0].filter(Boolean);return t.length>1?s`<div class="nakshatra">${t.join(" \u203A ")}</div>`:"nakshatraName"in e&&e.nakshatraName?s`<div class="nakshatra">${"nakshatraLord"in e&&e.nakshatraLord?this.t("Moon nakshatra: {{name}} (lord {{lord}})",{name:e.nakshatraName,lord:e.nakshatraLord}):this.t("Moon nakshatra: {{name}}",{name:e.nakshatraName})}</div>`:o}frameRows(e){let t=[];if("nakshatraName"in e&&e.nakshatraName){let r="moonNakshatra"in e&&e.moonNakshatra?` (${e.moonNakshatra} of 27)`:"";t.push(["Moon nakshatra",`${e.nakshatraName}${r}`])}if("nakshatraLord"in e&&e.nakshatraLord&&t.push(["Nakshatra lord",e.nakshatraLord]),"moonLongitude"in e&&typeof e.moonLongitude=="number"&&t.push(["Moon longitude",`${$(this.effectiveLang(),e.moonLongitude,3)}\xB0 sidereal`]),"ayanamsaType"in e&&e.ayanamsaType&&t.push(["Ayanamsa",Wa(this.effectiveLang(),e.ayanamsaType,"ayanamsa"in e?e.ayanamsa:void 0)]),"birthDashaBalance"in e&&e.birthDashaBalance){let r="nakshatraLord"in e&&e.nakshatraLord?`${e.nakshatraLord} `:"";t.push(["Balance at birth",`${fi(e.birthDashaBalance)} of the opening ${r}mahadasha`])}return"totalYears"in e&&typeof e.totalYears=="number"&&t.push(["Cycle length",`${e.totalYears} years`]),t}renderFrame(e){return s`<dl class="roxy-facts" part="details frame">${e.map(([t,r])=>s`<div><dt>${t}</dt><dd>${r}</dd></div>`)}</dl>`}renderReadings(e){return this.renderInterpretation(e,"roxy-dasha",e.length===1?"Reading":"Readings")}heading(e){let t=ui(e);return t?this.t("{{level}} periods in {{planet}} {{parent}}",{level:this.t(Ld(e)),planet:t.period.planet,parent:this.t(t.source)}):"mahadashas"in e?this.t("Vimshottari Mahadasha"):"mahadasha"in e?this.t("Active dashas"):this.period==="major"?this.t("Vimshottari Mahadasha"):this.t("Active dashas")}renderParentMahadasha(e){let t=ui(e);if(!t)return o;let r=t.period,i=Ys(this.effectiveLang(),r),l=r.nominalStartDate?A(this.effectiveLang(),r.nominalStartDate):"";return s`<p class="parent">${this.t("Inside the {{planet}} {{level}}{{span}}{{duration}}.",{planet:r.planet,level:this.t(t.source),span:i?`, ${i}`:"",duration:typeof r.durationYears=="number"?` (${Wm(this.effectiveLang(),r.durationYears)})`:""})} ${l?s`<br>${this.t("It began {{date}}, before birth, so only the sub-periods running after the birth date are listed.",{date:l})}`:o}</p>`}readings(e,t){let r=[],i=ui(e);if(i?.period.interpretation&&r.push({label:this.t("{{planet}} {{level}}",{planet:i.period.planet,level:this.t(i.source)}),aside:Ys(this.effectiveLang(),i.period),body:i.period.interpretation}),"mahadasha"in e){let c=[["Mahadasha",e.mahadasha,e.remainingInMahadasha],["Antardasha",e.antardasha,e.remainingInAntardasha],["Pratyantardasha",e.pratyantardasha,e.remainingInPratyantardasha],["Sookshma",e.sookshmaDasha,e.remainingInSookshma],["Prana",e.pranaDasha,e.remainingInPrana]];for(let[d,p,h]of c){if(!p?.interpretation)continue;let m=fi(h);r.push({label:this.t("{{planet}} {{level}}",{planet:p.planet,level:this.t(d)}),aside:m?this.t("{{balance}} left",{balance:m}):Ys(this.effectiveLang(),p),body:p.interpretation})}}let l=t.find(c=>this.isCurrent(c));return l?.interpretation&&r.push({label:`${l.planet} ${Ld(e)}`,aside:Ys(this.effectiveLang(),l),body:l.interpretation}),r}renderCurrent(e){if(!("mahadasha"in e))return o;let t=[["Mahadasha",e.mahadasha,e.remainingInMahadasha],["Antardasha",e.antardasha,e.remainingInAntardasha],["Pratyantardasha",e.pratyantardasha,e.remainingInPratyantardasha],["Sookshma",e.sookshmaDasha,e.remainingInSookshma],["Prana",e.pranaDasha,e.remainingInPrana]];return s`<div class="current" part="details current">${t.map(([r,i,l])=>{if(!i)return o;let c=fi(l),d=$d(i.significators,e.houseThemes);return s`<div><span class="roxy-label">${this.t(r)}</span> <strong>${i.planet}</strong> ${c?s`<small>${this.t("{{balance}} left",{balance:c})}</small>`:o} ${d?s`<small class="houses">${this.t("Signifies {{houses}}",{houses:d})}</small>`:o}</div>`})}</div>`}collectPeriods(e){return"mahadashas"in e&&e.mahadashas?.length?e.mahadashas:"antardashas"in e&&e.antardashas?.length?e.antardashas:"pratyantardashas"in e&&e.pratyantardashas?.length?e.pratyantardashas:"sookshmaDashas"in e&&e.sookshmaDashas?.length?e.sookshmaDashas:"pranaDashas"in e&&e.pranaDashas?.length?e.pranaDashas:[]}isCurrent(e){if(!e.startDate||!e.endDate)return false;let t=Date.now(),r=Date.parse(e.startDate),i=Date.parse(e.endDate);return Number.isNaN(r)||Number.isNaN(i)?false:t>=r&&t<i}progressIn(e){if(!e.startDate||!e.endDate)return-1;let t=Date.parse(e.startDate),r=Date.parse(e.endDate),i=Date.now();return Number.isNaN(t)||Number.isNaN(r)||i<t||i>=r||r<=t?-1:(i-t)/(r-t)}renderBar(e,t,r,i){let l=e.durationYears,c=t>0?l/t*100:0,d=this.isCurrent(e),p=d?this.progressIn(e):-1,h=d?"bar-track bar-now":"bar-track",m=$d(e.significators,i),g=["bar",d?"now":"",r==="time"?"fine":""].filter(Boolean).join(" ");return s`<div class="${g}" part="label-track" role="listitem" aria-current="${d?"time":"false"}"><span><strong>${e.planet}</strong>${d?s`<span class="now-badge">${this.t("Now")}</span>`:o} </span><span class="${h}"><span class="bar-fill" style="width:${c}%"></span> ${p>=0?s`<span class="bar-progress" style="left:${p*c}%" aria-hidden="true"></span>`:o} </span><span class="dates">${wc(this.effectiveLang(),e.startDate,e.endDate,r)} </span>${m?s`<span class="houses">${this.t("Signifies {{houses}}",{houses:m})}</span>`:o}</div>`}};Xe.endpoints=Ho,Xe.styles=[v,O,J,H,ge,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.title{margin:0}.nakshatra{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.current{gap:var(--roxy-space-md) var(--roxy-space-lg);border-block-end:1px solid var(--roxy-border);flex-wrap:wrap;margin-block-end:var(--roxy-space-md);padding-block-end:var(--roxy-space-md);display:flex}.current>div{align-content:start;min-width:0;display:grid}.current small{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.parent{border-inline-start:var(--roxy-line-thick) solid var(--roxy-border);font-size:var(--roxy-text-sm);color:var(--roxy-muted);margin:0;padding-inline-start:var(--roxy-space-sm)}.timeline{gap:var(--roxy-space-xs);display:grid}.bar{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr) 16ch;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);align-items:center;row-gap:0;display:grid}.bar.now strong,.now-badge{color:var(--roxy-accent-ink)}.now-badge{font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);margin-inline-start:var(--roxy-space-xs)}.bar-track{background:var(--roxy-border);border-radius:var(--roxy-radius-full);block-size:.6lh;position:relative;overflow:hidden}.bar-fill{background:var(--roxy-accent);opacity:.45;height:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.bar-now .bar-fill{opacity:1}.bar-progress{inline-size:var(--roxy-line-thick);background:var(--roxy-accent-ink);position:absolute;inset-block:0}.dates{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;text-align:end}.bar.fine{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr)}.bar.fine .dates{text-align:start;grid-column:1/-1;min-width:0}.bar .houses{min-width:0;color:var(--roxy-muted);font-size:var(--roxy-text-xs);grid-column:1/-1}[role=tabpanel]{padding-top:var(--roxy-space-md)}`],y([k({type:String,reflect:true})],Xe.prototype,"period",2),y([I()],Xe.prototype,"view",2),Xe=y([L("roxy-dasha-timeline")],Xe);var xi=365.25;function Wm(n,a){if(a>=1)return`${$(n,a,1)} years`;let e=a*xi;if(e>=1)return`${$(n,e,e>=10?0:1)} days`;let t=e*24;return t>=1?`${$(n,t,1)} hours`:`${$(n,t*60,0)} minutes`}function Zm(n){return n>=2?"year":n>=60/xi?"month":n>=1/xi?"day":"time"}var wd=["title","name","label","heading","overview","summary"],Xm=80,Jm=80,Qm=3,eg=["imageUrl","image","icon","symbol"],tg=["imageUrl","image"],ag=["affirmation","mantra","motto","quote"],rg=new Set(["seed"]),sg=new Set(["id","slug","key"]),ng=new Set(["calculation","calculations","type","position","count","totalcount","total","limit","offset","page","pagesize","perpage"]),ig=(n,a)=>n==="symbol"&&typeof a=="string"&&!new RegExp("\\p{L}","u").test(a),og=8,kd=1,lg=12,cg=n=>n.toLowerCase().replace(/[_-]/g,""),Sd=n=>/^(has|is)([A-Z_]|$)/.test(n),dg=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?)?$/,pg=/^[A-Z0-9]+(_[A-Z0-9]+)+$/,hg=6;function mg(n,a){if(!Number.isInteger(a))return false;let e=n.replace(/([a-z])([A-Z])/g,"$1 $2").split(/[\s_-]+/);return e[e.length-1].toLowerCase()==="year"}function Qa(n){return n===null||["string","number","boolean"].includes(typeof n)}function bi(n){return n!==null&&typeof n=="object"&&!(Array.isArray(n)&&n.every(Qa))}function Rd(n){if(n==null)return true;if(Array.isArray(n))return n.length===0;if(typeof n!="object")return false;let a=Object.values(n);return a.length===0||a.every(Rd)}var sa=class extends f{constructor(){super(...arguments);this.depth=0}renderData(e){return this.depth>=hg?s`<div class="roxy-empty" role="status">${this.t("Nested data omitted")}</div>`:s`<div class="roxy-card" part="card" aria-label="${this.t("Generic data display")}">${this.renderValue(e)}</div>`}renderValue(e){return e==null?o:Qa(e)?s`<p>${this.scalarTemplate(e)}</p>`:Array.isArray(e)?this.renderArray(e):this.renderObject(e)}renderArray(e){return e.length===0?s`<div class="roxy-empty" role="status">${this.t("Empty list")}</div>`:e.every(Qa)?this.renderChips(e):e.every(r=>r!==null&&typeof r=="object"&&!Array.isArray(r))?this.renderObjectArray(e):s`<ol>${e.map(r=>s`<li>${this.renderValue(r)}</li>`)}</ol>`}renderChips(e){return s`<ul class="roxy-chips">${e.filter(t=>t!==null).map(t=>s`<li>${this.formatScalar(t)}</li>`)}</ul>`}renderObjectArray(e){let t=e.map(g=>this.suppress(g)),r=this.collectKeys(t),i=new Set(r.filter(g=>t.some(b=>typeof b[g]=="string"&&Array.from(b[g]).length>Jm))),l=new Set(r.filter(g=>i.has(g)||t.some(b=>bi(b[g]??null)))),c=i.size>0||l.size>0&&l.size<r.length,d=g=>c?l.has(g)?"col-wide":"col-tight":"",p=l.size>0&&r.length>Qm,h=t.length>lg;return s`<div class="${p?"roxy-collection":h&&!p?"roxy-collection compact long":"roxy-collection compact"}" part="table" role="${p?"list":"group"}" aria-label="${p?this.t("{{count}} rows",{count:t.length}):this.t("Data table")}" tabindex="${p?o:"0"}">${p?s`${h?s`<p>${this.t("{{count}} rows",{count:t.length})}</p>`:o} ${t.map(g=>s`<div class="roxy-record" role="listitem">${this.renderField(g)}</div>`)}`:s`<table class="${i.size?"roxy-table stacked prose":l.size?"roxy-table stacked":"roxy-table"}" role="table">${h?s`<caption>${this.t("{{count}} rows",{count:t.length})}</caption>`:o}<thead><tr>${r.map(g=>s`<th class="${d(g)}">${X(this.effectiveLang(),g)}</th>`)}</tr></thead><tbody>${t.map(g=>s`<tr>${r.map(b=>s`<td class="${d(b)}" data-label="${X(this.effectiveLang(),b)}">${this.renderCell(g[b],b)}</td>`)}</tr>`)}</tbody></table>`}</div>`}suppress(e){let t=hr(e),r=wd.some(i=>typeof t[i]=="string");return Object.fromEntries(Object.entries(t).filter(([i,l])=>{let c=cg(i);return rg.has(c)||ig(i,l)||r&&sg.has(c)?false:!ng.has(c)}))}renderObject(e){let t=this.suppress(e),r=wd.find(m=>typeof t[m]=="string"&&t[m].length<=Xm),i=eg.find(m=>typeof t[m]=="string"&&t[m].startsWith("http")),l=r!=="summary"&&typeof t.summary=="string"?"summary":null,c=ag.find(m=>typeof t[m]=="string"),d=Object.entries(t).filter(([m,g])=>m!==r&&m!==l&&m!==c&&!tg.includes(m)&&!Rd(g)),p=d.filter(([,m])=>!bi(m)),h=d.filter(([,m])=>bi(m));return s`${i?s`<img class="roxy-image" src="${String(t[i])}" alt="${r?String(t[r]):this.t("illustration")}" loading="lazy">`:o} ${r?this.depth===0?s`<h2 class="roxy-title" part="header">${t[r]}</h2>`:s`<h3 class="roxy-title" part="header">${t[r]}</h3>`:o} ${l?s`<p class="roxy-summary">${t[l]}</p>`:o} ${c?s`<blockquote class="roxy-quote">${t[c]}</blockquote>`:o} ${p.length>0?s`<dl class="roxy-rows" part="details label-track">${p.map(([m,g])=>s`<dt>${X(this.effectiveLang(),m)}</dt><dd>${this.renderField(g,m)}</dd>`)}</dl>`:o} ${h.map(([m,g])=>this.renderSection(m,g))}`}renderSection(e,t){let r=t!==null&&typeof t=="object"?Array.isArray(t)?t.length:Object.keys(t).length:0,i=this.renderField(t,e),l=X(this.effectiveLang(),e);return r>og||this.depth>=kd?s`<details class="roxy-section" ?open="${this.depth<kd}"><summary>${l}</summary>${i}</details>`:s`<div class="roxy-section">${this.depth===0?s`<h3>${l}</h3>`:s`<h4>${l}</h4>`} ${i}</div>`}renderField(e,t){return e==null?"":e===true&&t!==void 0&&Sd(t)?s`<span class="roxy-chip">${this.t("Yes")}</span>`:Qa(e)?s`${this.scalarTemplate(e,t)}`:Array.isArray(e)&&e.every(Qa)?this.renderChips(e):s`<roxy-data bare lang="${U(this.effectiveLang())}" .data="${e}" .depth="${this.depth+1}"></roxy-data>`}renderCell(e,t){return e==null?"":e===true&&t!==void 0&&Sd(t)?s`<span class="roxy-chip">${this.t("Yes")}</span>`:Qa(e)?this.scalarTemplate(e,t):Array.isArray(e)&&e.every(Qa)?e.filter(r=>r!==null).map(r=>this.formatScalar(r)).join(", "):s`<roxy-data bare lang="${U(this.effectiveLang())}" .data="${e}" .depth="${this.depth+1}"></roxy-data>`}scalarTemplate(e,t){return fs(e)?s`<a href="${e}" target="_blank" rel="noopener noreferrer">${e}</a>`:this.formatScalar(e,t)}formatScalar(e,t){return typeof e=="number"?t!==void 0&&mg(t,e)?String(e):$(this.effectiveLang(),e,2)||String(e):typeof e=="boolean"?e?this.t("Yes"):this.t("No"):dg.test(e)?Y(this.effectiveLang(),e):pg.test(e)?E(e.toLowerCase()):e}collectKeys(e){let t=new Set;for(let r of e)for(let i of Object.keys(r))t.add(i);return Array.from(t)}};sa.styles=[v,u`.roxy-card{padding:var(--roxy-space-md)}.roxy-card a{color:var(--roxy-accent-ink)}:is(h2,h3,h4,p,dl){margin:0}:is(h2,h3).roxy-title{margin-block-end:var(--roxy-space-sm)}.roxy-summary{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);margin-block-end:var(--roxy-space-md)}dl.roxy-rows{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);grid-template-columns:fit-content(25%) minmax(0,1fr);display:grid}dl.roxy-rows dd{word-break:break-word;margin:0}.roxy-collection{min-width:0}.roxy-collection.compact{overflow-x:auto}.roxy-collection.long{max-block-size:20lh}.roxy-record+.roxy-record{margin-block-start:var(--roxy-space-sm)}table.roxy-table{width:100%}table.roxy-table caption{text-align:start}table.roxy-table th{white-space:nowrap}:where(table.roxy-table) :is(th,td).col-tight{white-space:nowrap;width:1%}:where(table.roxy-table.prose) :is(th,td).col-wide{min-width:40ch}.roxy-image{max-width:100%;height:auto;border-radius:var(--roxy-radius-md);margin-block-end:var(--roxy-space-md)}.roxy-section{margin-block-start:var(--roxy-space-md)}.roxy-section>:is(h3,h4,summary){font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);margin-block-end:var(--roxy-space-xs)}blockquote.roxy-quote{margin:var(--roxy-space-md) 0;border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);font-size:var(--roxy-text-sm);padding-inline-start:var(--roxy-space-md);font-style:italic}`,qe],y([k({attribute:false})],sa.prototype,"depth",2),sa=y([L("roxy-data")],sa);var Pe=400,Q=20,fe=Pe-2*Q,ie=Pe/2,Cd=Object.fromEntries(re.map(n=>[n.toLowerCase(),n])),Li="\u02B3",$i="\u1D9C",wi="\u02B7";function vi(n){return re.indexOf(n)}function gg(n){let a=Fc(n.graha)??n.graha,e=`${n.isRetrograde?Li:""}${n.combust?$i:""}${n.war?wi:""}`;if(typeof n.longitude!="number"||!Number.isFinite(n.longitude)||n.natalReference)return`${a}${e}`;let{degree:t}=Me(n.longitude);return`${a} ${t}\xB0${e}`}function yg(n,a,e){let t=[D(n.graha)],r=n.natalReference===true;if(r&&t.push(e("in {{sign}}",{sign:a})),typeof n.longitude=="number"&&Number.isFinite(n.longitude)){let i=Me(n.longitude),l=String(i.minute).padStart(2,"0");t.push(r?`D1: ${i.degree}\xB0${l}' ${i.sign}`:`${i.degree}\xB0${l}' ${i.sign}`)}if(n.nakshatra?.name){let i=n.nakshatra.pada?` ${e("pada {{n}}",{n:n.nakshatra.pada})}`:"";t.push(`${r?"D1: ":""}${n.nakshatra.name}${i}`)}return n.nakshatra?.lord&&t.push(e("nakshatra lord {{graha}}",{graha:n.nakshatra.lord})),n.awastha&&t.push(n.awastha),n.deeptadi&&t.push(n.deeptadi),n.combust&&t.push(e("combust")),n.war&&t.push(n.war.winner?e("planetary war with {{graha}}, won by {{winner}}",{graha:n.war.opponent,winner:n.war.winner}):e("planetary war with {{graha}}",{graha:n.war.opponent})),n.isRetrograde&&t.push(e("retrograde")),t.join(" \xB7 ")}function ki(n,a,e,t,r,i){let l=t-(n.length-1)*r/2;return n.map((c,d)=>{let p=l+d*r;return T`<text class="planet-text" x=${e} y=${p} text-anchor="middle" dominant-baseline="central">${gg(c)}<title>${yg(c,a,i)}</title></text>`})}function Zs(n,a={}){let{divisionLabel:e,lagnaOverride:t,states:r,natalReference:i}=a,l=new Set((r?.combustion??[]).map(m=>(m.planet??"").toLowerCase())),c=new Map;for(let m of r?.planetaryWar??[])!m.planet1||!m.planet2||(c.set(m.planet1.toLowerCase(),{opponent:m.planet2,winner:m.winner}),c.set(m.planet2.toLowerCase(),{opponent:m.planet1,winner:m.winner}));let d={};for(let m of re)d[m.toLowerCase()]=[];let p=t?Cd[t.toLowerCase()]??"":"",h=p;for(let[m,g]of Object.entries(n??{})){let b=(g?.rashi??"").toLowerCase();if(m==="Lagna"||g?.graha==="Lagna"){p||(h=Cd[b]??"");continue}if(!b||!(b in d))continue;let w=g.graha??m,S=w.toLowerCase();d[b]?.push({graha:w,natalReference:i,longitude:g.longitude,nakshatra:g.nakshatra,isRetrograde:g.isRetrograde,awastha:g.awastha,deeptadi:g.deeptadi,combust:l.has(S)||void 0,war:c.get(S)})}return{lagnaSign:h,placements:d,divisionLabel:e}}var er=fe/4,ug={Pisces:{col:0,row:0},Aries:{col:1,row:0},Taurus:{col:2,row:0},Gemini:{col:3,row:0},Cancer:{col:3,row:1},Leo:{col:3,row:2},Virgo:{col:3,row:3},Libra:{col:2,row:3},Scorpio:{col:1,row:3},Sagittarius:{col:0,row:3},Capricorn:{col:0,row:2},Aquarius:{col:0,row:1}};function fg(n){let a=ug[n]??{col:0,row:0};return{x:Q+a.col*er,y:Q+a.row*er,w:er,h:er}}function xg(n){let a=Q,e=Q+er,t=Q+2*er,r=Q+3*er,i=Pe-Q;return T`
|
|
13
|
+
</g>`)}return e}var mi=`0 0 ${fd} ${km}`;function gi(n){return T`
|
|
14
|
+
${Mm()}
|
|
15
|
+
${Nm(n.gateSources)}
|
|
16
|
+
${zm(n.definedCenters,n.centerNames,n.stateWords??{defined:"defined",open:"open"})}
|
|
17
|
+
${Gm(n.gateSources,n.gateTitles)}
|
|
18
|
+
`}function yi(n,a){return n==="design"?a("Design"):n==="personality"?a("Personality"):n??""}function Fm(n){let a=new Map;for(let e of n){if(e.gate==null)continue;let t=a.get(e.gate);t?t.push(e):a.set(e.gate,[e])}return a}function ui(n){return n.planet?C(n.planet)??x(n,"planet"):""}function Bm(n,a){let e=new Map;for(let[t,r]of n){let i=r.map(l=>[ui(l),`${t}${l.line!=null?`.${l.line}`:""}`,yi(l.side,a)].filter(Boolean).join(" "));e.set(t,[a("Gate {{gate}}",{gate:t}),x(r[0],"gateName"),...i].filter(Boolean).join(" \xB7 "))}return e}function fi(n){return new Map(n.map(a=>[a.id,x(a,"name")]))}function bd(n,a={}){let e=Ve(a.lang),t=n.centers??[],r=Fm(n.gates??[]);return T`<svg class="chart bodygraph" xmlns=${Ue} part="chart" viewBox=${mi} preserveAspectRatio="xMidYMid meet" role="img" aria-label=${e("Human Design bodygraph with nine centers, channels, and activated gates overlaid on a human silhouette")}><title>${e("Human Design bodygraph")}</title><desc>${e("Nine energy centers in their canonical positions over a human silhouette, each filled with its traditional color when defined and outlined when open, wired by channels between activated gates.")}</desc>${gi({definedCenters:new Set(t.filter(i=>i.defined).map(i=>i.id)),gateSources:new Map([...r].map(([i,l])=>[i,{left:l.some(c=>c.side==="design"),right:l.some(c=>c.side==="personality")}])),gateTitles:Bm(r,e),centerNames:fi(t),stateWords:{defined:e("Defined"),open:e("Open")}})}</svg>`.markup}var Vs=u`.chart{width:100%;max-width:var(--roxy-chart-max-width,30rem);height:auto;margin:0 auto;display:block}@container (width<=26rem){.chart{width:calc(100% + 2 * var(--roxy-space-lg));margin-inline:calc(-1 * var(--roxy-space-lg))}}.legend{gap:var(--roxy-space-sm) var(--roxy-space-md);font-size:var(--roxy-text-xs);color:var(--roxy-muted);flex-wrap:wrap;display:flex}.legend .swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border:1px solid var(--roxy-secondary);border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.legend .swatch.source{border-radius:var(--roxy-radius-full);border-color:#0000}`;var Qt=[J,u`.roxy-facts{margin:0}.lead{font-size:var(--roxy-text-sm);margin:0}.keynotes{gap:var(--roxy-space-xs);margin:0;display:grid}.keynotes dd{margin:0}`];function pt(n){let a=n.filter(e=>!!e.value);return a.length===0?o:s`<dl class="roxy-facts" part="facts">${a.map(e=>s`<div part="fact"><dt>${e.label}</dt><dd>${e.value}</dd></div>`)}</dl>`}function qs(n,a,e){return!n&&!a?o:s`<div class="themes roxy-chips" part="themes">${n?s`<span class="roxy-chip" data-tone="success">${e("Signature: {{value}}",{value:n})}</span>`:o} ${a?s`<span class="roxy-chip" data-tone="danger">${e("Not-self: {{value}}",{value:a})}</span>`:o}</div>`}function Ys(n,a){return!n?.personality&&!n?.design?o:s`<dl class="keynotes" part="keynotes">${n.personality?s`<dt>${a("Line {{line}} \xB7 Personality",{line:n.personalityLine??""})}</dt><dd>${n.personality}</dd>`:o} ${n.design?s`<dt>${a("Line {{line}} \xB7 Design",{line:n.designLine??""})}</dt><dd>${n.design}</dd>`:o}</dl>`}var Hm=["gold","green","brown","red"],ht=class extends f{constructor(){super(...arguments);this.viewport=new ne(this);this.side="personality"}renderData(e){let t=e.centers??[],r=fi(t);return s`<div class="wrap bodygraph" part="card"><header class="head" part="header"><div><h2>${this.t("Bodygraph")}</h2>${e.designInstantUtc?s`<div class="meta">${this.t("Design")} <time datetime="${e.designInstantUtc}">${Tc(this.effectiveLang(),e.designInstantUtc)}</time></div>`:o}</div>${e.type||e.profile?s`<div class="type-line">${[x(e,"type"),e.profile?this.t("Profile {{profile}}",{profile:e.profile}):""].filter(Boolean).join(" \xB7 ")}</div>`:o}</header><div class="layout" part="layout">${this.viewport.renderChartViewport(ke(bd(e,{lang:this.effectiveLang()})),this.t("Human Design bodygraph"),this.translator)} ${this.renderSummary(e,r)}</div>${this.renderReading(e)} ${this.renderChannels(e.channels??[],r)} ${this.renderCenters(t)} ${this.renderActivations(e)}</div>`}renderSummary(e,t){let r=e.incarnationCross;return s`<div class="summary" part="details">${pt([{label:this.t("Type"),value:x(e,"type")},{label:this.t("Strategy"),value:x(e,"strategy")},{label:this.t("Authority"),value:x(e,"authority")},{label:this.t("Profile"),value:e.profile},{label:this.t("Definition"),value:x(e,"definition")}])} ${e.typeDescription&&!this.hideReadings?s`<p class="lead">${e.typeDescription}</p>`:o} ${r?.name?s`<p class="cross">${r.name} ${r.gates?.length?s`<span class="gates">(${r.gates.join(", ")})</span>`:o}</p>`:o} ${qs(e.signature?x(e,"signature"):void 0,e.notSelf?x(e,"notSelf"):void 0,this.translator)} ${this.renderLegend(t)}</div>`}renderLegend(e){let t=Hm.map(r=>[r,hi.filter(i=>i.color===r).map(i=>e.get(i.id)||i.label).join(", ")]);return s`<div class="legend" part="legend"><span class="legend-row"><span class="swatch source src-left"></span>${this.t("Design")} <span class="swatch source src-right"></span>${this.t("Personality")} </span><span class="legend-row">${this.t("Center colors when defined. Open centers are outlined.")}</span> ${t.map(([r,i])=>s`<span><span class="swatch bg-${r} defined"></span>${i}</span>`)} <span><span class="swatch"></span>${this.t("Open center")}</span></div>`}renderReading(e){let t=e.incarnationCross,r=[{label:this.t("Strategy"),aside:x(e,"strategy"),body:e.strategyDescription},{label:this.t("Authority"),aside:x(e,"authority"),body:e.authorityDescription},{label:this.t("Profile"),aside:e.profile,body:e.profileDescription,extra:Ys(e.profileKeynotes,this.translator)},{label:this.t("Definition"),aside:x(e,"definition"),body:e.definitionDescription},{label:this.t("Aura"),body:e.aura},{label:this.t("Incarnation cross"),aside:t?x(t,"angle"):void 0,body:t?.description??""}];return this.renderInterpretation(r,"hd-reading")}renderChannels(e,t){if(e.length===0||this.hideReadings)return o;let r=new Map;for(let l of e){let c=l.circuit??"",d=r.get(c);d?d.push(l):r.set(c,[l])}let i=0;return s`<section class="block" part="section channels"><h3>${this.t("Defined channels ({{count}})",{count:e.length})}</h3>${[...r].map(([l,c])=>s`<div class="group">${l?s`<p class="group-head">${this.t("{{circuit}} circuit",{circuit:x(c[0],"circuit")})}</p>`:o} ${c[0]?.circuitDescription?s`<p class="group-note">${c[0].circuitDescription}</p>`:o} ${c.map(d=>s`<details class="interp-card" part="reading" name="hd-channel" ?open="${i++===0}"><summary><span class="interp-lead"><span class="chan-gates">${d.gateA}-${d.gateB}</span> <span>${x(d,"name")}</span> </span>${V()} <span class="interp-aside"><span class="roxy-chips">${(d.centers??[]).map(p=>s`<span class="roxy-chip">${t.get(p)||p}</span>`)}</span></span></summary><div class="interp-body">${d.description?s`<p>${d.description}</p>`:o}</div></details>`)}</div>`)}</section>`}renderCenters(e){if(e.length===0||this.hideReadings)return o;let t=e.filter(r=>r.defined).length;return s`<section class="block" part="section centers"><h3>${this.t("Centers ({{defined}} defined, {{open}} open)",{defined:t,open:e.length-t})}</h3>${e.map((r,i)=>s`<details class="interp-card" part="reading" name="hd-center" ?open="${i===0}"><summary><span class="interp-lead">${x(r,"name")}</span> ${V()} <span class="interp-aside"><span class="roxy-chips"><span class="roxy-chip ${r.defined?"on":""}">${r.defined?this.t("Defined"):this.t("Open")}</span> ${r.motor?s`<span class="roxy-chip">${this.t("Motor")}</span>`:o} ${r.awareness?s`<span class="roxy-chip">${this.t("Awareness")}</span>`:o}</span></span></summary><div class="interp-body">${r.theme?s`<p>${r.theme}</p>`:o} ${!r.defined&&r.notSelfQuestion?s`<dl class="keynotes"><dt>${this.t("Not-self question")}</dt><dd>${r.notSelfQuestion}</dd></dl>`:o} ${r.biology?s`<p class="footnote">${this.t("Biology")}. ${r.biology}</p>`:o} ${r.gates?.length?s`<p class="footnote">${this.t("Gates {{gates}}",{gates:r.gates.join(", ")})}</p>`:o}</div></details>`)}</section>`}renderActivations(e){let t=e.gates??[];if(t.length===0||this.hideReadings)return o;let r=t.filter(h=>h.side==="personality"),i=t.filter(h=>h.side==="design"),l=r.length>0&&i.length>0,c=this.side,d=l?c==="design"?i:r:t,p=l?e.sides?.[c]:void 0;return s`<section class="block" part="section activations"><h3>${this.t("Activations ({{count}})",{count:t.length})}</h3>${l?ue({items:[{id:"personality",label:`${this.t("Personality")} (${r.length})`},{id:"design",label:`${this.t("Design")} (${i.length})`}],active:c,onSelect:h=>{this.side=h},label:this.t("Chart sides"),idPrefix:"hd",controls:true}):o}<div id="${l?`hd-panel-${c}`:o}" part="panel" role="${l?"tabpanel":o}" aria-labelledby="${l?`hd-tab-${c}`:o}">${p?s`<p class="side-note">${p}</p>`:o} ${d.map((h,m)=>this.renderGate(h,m===0))}</div></section>`}renderGate(e,t){let r=ui(e),i=x(e,"planet"),l=e.ichingHexagram;return s`<details class="interp-card" part="reading" name="hd-gate" ?open="${t}"><summary><span class="interp-lead">${r?s`<span class="glyph roxy-glyph" aria-hidden="true">${r}</span>`:o} <span class="gate-id">${e.gate}${e.line!=null?`.${e.line}`:""}</span> <span>${x(e,"gateName")}</span> </span>${V()} ${i?s`<span class="interp-aside"><small>${i}</small></span>`:o}</summary><div class="interp-body">${e.gateDescription?s`<p>${e.gateDescription}</p>`:o} ${e.lineMeaning?s`<dl class="keynotes"><dt>${this.t("Line {{line}}",{line:e.line??""})}</dt><dd>${e.lineMeaning}</dd></dl>`:o} ${e.planetDescription?s`<p class="footnote">${i}. ${e.planetDescription}</p>`:o} ${l?.number?s`<p class="footnote">${this.t("I Ching hexagram {{number}}",{number:l.number})}${l.english?`, ${l.english}`:""}</p>`:o}</div></details>`}};ht.endpoints=Oo,ht.styles=[v,pe,ge,O,H,Qt,Ms,Vs,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.type-line,.meta{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.layout{align-items:start;gap:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.summary{gap:var(--roxy-space-md);display:grid}.cross{border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);font-size:var(--roxy-text-sm);padding-inline-start:var(--roxy-space-sm)}.cross .gates{color:var(--roxy-muted);font-variant-numeric:tabular-nums}.legend-row{flex-basis:100%}.legend-row .swatch:not(:first-child){margin-inline-start:var(--roxy-space-md)}.legend .swatch.defined{border-color:color-mix(in srgb, var(--roxy-fg) 45%, transparent)}.group+.group{margin-block-start:var(--roxy-space-md)}.group-head{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.group-note,.side-note,.footnote{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.group-note,.side-note{margin-block-end:var(--roxy-space-sm)}.side-note{padding-block-start:var(--roxy-space-sm)}.roxy-chip.on{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.gate-id,.chan-gates{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold);color:var(--roxy-accent-ink)}.glyph{color:var(--roxy-accent-ink)}`],y([I()],ht.prototype,"side",2),ht=y([L("roxy-bodygraph")],ht);var jm={eight:"Eight karaka scheme, Rahu included and ranked from the end of its sign.",seven:"Seven karaka scheme, Rahu excluded and the Pitrikaraka office not assigned."},ea=class extends f{renderData(a){let e=a.karakas??[];return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Chara karakas")}"><header class="head" part="header"><h2>${this.t("Chara karakas")}</h2><p class="scheme"><span class="scheme-chip roxy-chip">${a.scheme??""}</span> ${a.scheme?jm[a.scheme]??"":""}</p>${W(this.effectiveLang(),a.frame,this.translator)}</header><dl class="roxy-facts" part="details"><div><dt>${this.t("Atmakaraka")}</dt><dd>${a.atmakaraka??""}</dd></div><div><dt>${this.t("Darakaraka")}</dt><dd>${a.darakaraka??""}</dd></div></dl><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Chara karakas")}"><table class="stacked" role="table"><caption class="roxy-sr-only">${this.t("Chara karakas in descending rank: each office, the graha holding it, its rashi, the degree it holds, the degree that earned the office, and what the office is read for.")}</caption><thead><tr><th scope="col">${this.t("Office")}</th><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Ranked on")}</th><th scope="col">${this.t("Read for")}</th></tr></thead><tbody>${e.map((t,r)=>this.renderRow(t,r===0))}</tbody></table></div></div>`:this.renderEmpty()}renderRow(a,e){let t=C(a.graha)??"",r=z(a.rashi)??"";return s`<tr class="${e?"lead-row":""}"><td class="name">${a.name??""}${a.abbreviation?s`<span class="abbr">${a.abbreviation}</span>`:o}</td><td data-inline data-label="${this.t("Graha")}">${t?s`<span class="glyph roxy-glyph">${t}</span>`:o}${a.graha??""}</td><td data-inline data-label="${this.t("Rashi")}">${r?s`<span class="glyph roxy-glyph">${r}</span>`:o}${a.rashi??""}</td><td data-inline data-label="${this.t("Degree")}">${$(this.effectiveLang(),a.degreeInRashi,2)}</td><td data-inline data-label="${this.t("Ranked on")}">${$(this.effectiveLang(),a.rankingDegree,2)} ${a.isReversed?s`<span class="reversed">${this.t("measured from the end of the sign")}</span>`:o}</td><td class="meaning"><strong>${a.meaning??""}</strong> ${a.significations?s`<p>${a.significations}</p>`:o}</td></tr>`}};ea.endpoints=Io,ea.styles=[v,B,J,...Is,u`.wrap{overflow:hidden}.head{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border);display:grid}h2,p{margin:0}.scheme{align-items:baseline;gap:var(--roxy-space-sm);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.scheme-chip{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.roxy-facts{padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border);margin:0}.roxy-facts dd{font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold)}.reversed{color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:block}`],ea=y([L("roxy-chara-karakas")],ea);var ta=class extends f{isCurrent(a){let e=Date.now(),t=Date.parse(a.start),r=Date.parse(a.end);return Number.isNaN(t)||Number.isNaN(r)?false:e>=t&&e<r}renderTile(a){let e=a.effect==="Good"?"good":a.effect==="Bad"?"bad":"neutral",t=this.isCurrent(a),r=C(a.lord)??"",i=Ke(this.effectiveLang(),a),l=e==="good"?this.t("Favourable"):e==="bad"?this.t("Unfavourable"):"";return s`<div class="cho-tile ${e}${t?" now":""}" role="listitem" aria-current="${t?"time":"false"}"><span class="tile-name">${a.name}${t?s`<span class="now-badge">${this.t("Now")}</span>`:o} </span><span class="tile-time" aria-label="${this.t("Time range")}">${i}</span> <span class="tile-lord">${r?s`<span class="roxy-glyph" aria-hidden="true">${r}</span>`:o} ${a.lord} ${l?s`<span aria-hidden="true">·</span><span class="tile-effect">${l}</span>`:o}</span></div>`}renderData(a){let{date:e,dayChoghadiya:t,nightChoghadiya:r}=a;return s`<div class="wrap" part="card"><div class="header" part="header"><h2>${this.t("Choghadiya")}</h2>${e?s`<p class="roxy-label">${A(this.effectiveLang(),e)}</p>`:o}</div><div class="cho-grid" part="table"><section class="period-col" aria-label="${this.t("Day muhurta periods")}"><h3 class="period-heading">${this.t("Daytime")}</h3><div role="list" aria-label="${this.t("Daytime choghadiya")}">${t&&t.length>0?t.map(i=>this.renderTile(i)):s`<p class="roxy-empty" role="status">${this.t("No daytime periods")}</p>`}</div></section><section class="period-col" aria-label="${this.t("Night muhurta periods")}"><h3 class="period-heading">${this.t("Night")}</h3><div role="list" aria-label="${this.t("Nighttime choghadiya")}">${r&&r.length>0?r.map(i=>this.renderTile(i)):s`<p class="roxy-empty" role="status">${this.t("No nighttime periods")}</p>`}</div></section></div></div>`}};ta.endpoints=Go,ta.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.header{gap:var(--roxy-space-xs);display:grid}h2,h3,p{margin:0}.cho-grid{gap:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}@container (width>=40rem){.cho-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.period-heading{margin-block-end:var(--roxy-space-xs)}.cho-tile{align-items:center;gap:0 var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);grid-template-columns:minmax(0,1fr) auto;display:grid}.cho-tile:last-child{border-block-end:0}.cho-tile.now{border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);padding-inline-start:var(--roxy-space-sm)}.now-badge{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);margin-inline-start:var(--roxy-space-sm)}.tile-name{min-width:0;font-weight:var(--roxy-weight-bold);overflow-wrap:anywhere;grid-column:1}.good :is(.tile-name,.tile-effect){color:var(--roxy-success-fg)}.bad :is(.tile-name,.tile-effect){color:var(--roxy-danger-fg)}.tile-time{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap;grid-area:1/2/3;align-self:center}.tile-lord{align-items:center;gap:var(--roxy-space-xs);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;grid-column:1;display:flex}`],ta=y([L("roxy-choghadiya-grid")],ta);var Km=["sun","moon","venus","mars"],vd=["fire","earth","air","water"],Ld={astrology:"Astrology compatibility",numerology:"Numerology compatibility",biorhythm:"Biorhythm compatibility"},Um={in_sync:"In sync",complementary:"Complementary",neutral:"Neutral",opposing:"Opposing"},mt=class extends f{constructor(){super(...arguments);this.mode="astrology"}getBreakdown(){let e=this.data;if(!e)return{};if("categories"in e&&e.categories){let t={};for(let[r,i]of Object.entries(e.categories))typeof i=="number"&&Number.isFinite(i)&&(t[r]=i);return t}return{}}renderData(e){let t=e.overallScore,r=this.getBreakdown(),i="rating"in e?e.rating:void 0,l="archetype"in e?e.archetype:void 0,c="advice"in e?e.advice:void 0,d="summary"in e?e.summary:void 0,p="interpretation"in e?e.interpretation:void 0,h="strengths"in e?e.strengths:void 0,m="challenges"in e?e.challenges:void 0,g="keyAspects"in e?e.keyAspects:void 0,b=!this.hideReadings,w=this.t(Ld[this.mode]??Ld.astrology);return s`<article class="card" part="card" aria-label="${w}"><div class="head" part="header"><h2>${w}</h2><div>${typeof t=="number"?s`<div class="score">${Math.round(t)}</div>`:o} ${i?s`<div class="rating">${i}</div>`:o}</div></div>${Object.keys(r).length>0?s`<div role="list" part="details breakdown">${Object.entries(r).map(([S,R])=>s`<div class="bar-row" role="listitem"><span style="text-transform:capitalize">${S}</span> <span class="bar"><span style="width:${Math.max(0,Math.min(100,R))}%"></span></span> <span>${Math.round(R)}</span></div>`)}</div>`:o} ${l?s`<p><span class="archetype">${l.label}</span> ${l.description&&b?s`· ${l.description}`:o}</p>`:o} ${d&&b?s`<p>${d}</p>`:o} ${p&&b?s`<p class="body">${p}</p>`:o} ${c&&b?s`<p class="body">${c}</p>`:o} ${this.renderAspectBreakdown()} ${this.renderSignCompatibility()} ${this.renderElementBalance()} ${this.renderSubScores()} ${b&&((h?.length??0)>0||(m?.length??0)>0)?s`<div class="lists" part="section strengths-challenges">${h?.length?s`<div><h3>${this.t("Strengths")}</h3><ul>${h.map(S=>s`<li>${S}</li>`)}</ul></div>`:o} ${m?.length?s`<div><h3>${this.t("Challenges")}</h3><ul>${m.map(S=>s`<li>${S}</li>`)}</ul></div>`:o}</div>`:o} ${g?.length?s`<div class="lists" part="section key-aspects"><div><h3>${this.t("Key aspects")}</h3><ul>${g.slice(0,6).map(S=>s`<li>${Vm(this.effectiveLang(),S,b)}</li>`)}</ul></div></div>`:o}</article>`}renderAspectBreakdown(){let e=this.astro()?.aspectBreakdown;return e?s`<p class="counts" part="details aspect-breakdown" role="region" aria-label="${this.t("Aspect breakdown")}">${typeof e.total=="number"?s`<span>${this.t("{{label}}: {{value}}",{label:this.t("Total"),value:e.total})}</span>`:o} <span class="harmonious">${this.t("Harmonious: {{count}}",{count:e.harmonious})}</span> <span class="challenging">${this.t("Challenging: {{count}}",{count:e.challenging})}</span> <span>${this.t("Neutral: {{count}}",{count:e.neutral})}</span></p>`:o}renderSignCompatibility(){let e=this.astro(),t=e?.signCompatibility;if(!t)return o;let r=e?.persons,i=Km.map(l=>{let c=t[l];if(!c)return null;let d=p=>{let h=D((p==="person1"?c.person1Sign:c.person2Sign)??""),m=r?.[p]?.[l]?.degree,g=typeof m=="number"?` ${Math.round(m)}\xB0`:"";return`${h}${g}`};return{glyph:C(l),label:D(l),aside:me(this.effectiveLang(),[d("person1"),d("person2")]),body:c.description??""}}).filter(l=>l!==null);return this.renderInterpretation(i,"compat-signs","Sign compatibility")}renderElementBalance(){let e=this.astro()?.elementBalance;if(!e)return o;let t=e.person1,r=e.person2,i=Math.max(1,...vd.map(c=>Math.max(t?.[c]??0,r?.[c]??0))),l=e.sharedElement?.toLowerCase();return s`<section class="block" part="section element-balance"><h3>${this.t("Element balance")}</h3><div class="elements"><div class="el-row el-head"><span></span> <span class="roxy-label">${this.t("Person 1")}</span> <span class="roxy-label">${this.t("Person 2")}</span></div>${vd.map(c=>{let d=t?.[c]??0,p=r?.[c]??0;return s`<div class="${c===l?"el-row shared":"el-row"}"><span class="el-name">${c}</span> <span class="el-bar p1"><span>${d}</span> <span class="track"><span style="width:${d/i*100}%"></span></span> </span><span class="el-bar p2"><span class="track"><span style="width:${p/i*100}%"></span></span> <span>${p}</span></span></div>`})}</div>${e.description&&!this.hideReadings?s`<p class="shared-note">${e.description}</p>`:o}</section>`}renderSubScores(){let e=this.data;if(!e)return o;let t=[];if("lifePath"in e){let r=[["Life Path",e.lifePath],["Expression",e.expression],["Soul Urge",e.soulUrge]];for(let[i,l]of r)l&&t.push({label:this.t(i),aside:[me(this.effectiveLang(),[String(l.person1),String(l.person2)]),te(this.effectiveLang(),l.compatibility,0)].filter(Boolean).join(" \xB7 "),body:l.description??""})}if("cycles"in e&&e.cycles)for(let[r,i]of Object.entries(e.cycles))i&&t.push({label:Xt(r,l=>this.t(l)),aside:[typeof i.alignment=="number"?this.t("{{percent}} in step",{percent:te(this.effectiveLang(),i.alignment,0)}):"",i.phase?this.t(Um[i.phase]):""].filter(Boolean).join(" \xB7 "),body:i.description??""});return this.renderInterpretation(t,"compat-sub-scores","Breakdown")}astro(){let e=this.data;return e&&"signCompatibility"in e?e:void 0}};mt.endpoints=Fo,mt.styles=[v,O,H,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.head{align-items:center;gap:var(--roxy-space-md);grid-template-columns:minmax(0,1fr) auto;display:grid}.head h2{text-transform:capitalize}.score{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xl);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);font-variant-numeric:tabular-nums}.rating{color:var(--roxy-secondary);font-size:var(--roxy-text-sm)}.bar-row{align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);grid-template-columns:14ch minmax(0,1fr) 4ch;display:grid}.bar,.el-bar .track{block-size:var(--roxy-space-sm);background:var(--roxy-border);border-radius:var(--roxy-radius-full);overflow:hidden}.bar>span{background:var(--roxy-accent);height:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.bar-row>span:last-child{color:var(--roxy-muted);text-align:end;font-variant-numeric:tabular-nums}.archetype{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.lists{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,24ch),1fr));display:grid}.lists h3{margin-block-end:var(--roxy-space-xs)}.lists ul{font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md)}p.body{font-size:var(--roxy-text-sm)}.counts{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.harmonious{color:var(--roxy-info-fg)}.challenging{color:var(--roxy-danger-fg)}.block>h3{margin-block-end:var(--roxy-space-sm)}.elements{gap:var(--roxy-space-sm);display:grid}.el-row{align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);grid-template-columns:8ch minmax(0,1fr) minmax(0,1fr);display:grid}.el-row .el-name{text-transform:capitalize}.el-row.shared .el-name{font-weight:var(--roxy-weight-bold)}.el-head span:nth-child(2){text-align:end}.el-bar{align-items:center;gap:var(--roxy-space-xs);color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;display:flex}.el-bar.p1{flex-direction:row-reverse}.el-bar .track{flex:auto;display:flex}.el-bar.p1 .track{justify-content:flex-end}.el-bar .track>span{background:var(--roxy-accent);height:100%;display:block}.el-bar.p2 .track>span{background:var(--roxy-secondary)}.shared-note{font-size:var(--roxy-text-sm);margin-block-start:var(--roxy-space-sm)}`],y([k({type:String,reflect:true})],mt.prototype,"mode",2),mt=y([L("roxy-compatibility-card")],mt);function Vm(n,a,e){let t=we(a),r=typeof a.orb=="number"?` (orb ${$(n,a.orb,1)}\xB0)`:"",i=[a.planet1,t,a.planet2].filter(Boolean).join(" ");return a.description&&e?`${i}${r} \xB7 ${a.description}`:`${i}${r}`}var $d={fortunate:"Fortunate",unfortunate:"Unfortunate",mixed:"Mixed fortune"},qm={fortunate:"success",unfortunate:"danger",mixed:"warning"},aa=class extends f{renderData(a){let e=N(this.effectiveLang(),a.number);return s`<article class="card" part="card" aria-label="${`${this.t("Compound number")} ${e}`}"><header class="hero" part="header"><div class="numeral">${e}</div><div><p class="roxy-label">${this.t("Compound number")}</p>${a.name?s`<h2>${a.name}</h2>`:o}</div></header><ul class="badges roxy-chips" part="details"><li>${this.t("Root number {{n}}",{n:N(this.effectiveLang(),a.root)})}</li><li class="roxy-chip" data-tone="${qm[a.nature]??o}">${$d[a.nature]?this.t($d[a.nature]):E(a.nature)}</li>${typeof a.sameAs=="number"?s`<li>${this.t("Same meaning as {{n}}",{n:N(this.effectiveLang(),a.sameAs)})}</li>`:o}</ul>${a.meaning&&!this.hideReadings?s`<p part="section readings">${a.meaning}</p>`:o}</article>`}};aa.endpoints=Bo,aa.styles=[v,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.hero>div{min-width:0}.numeral{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1}.badges>li{font-variant-numeric:tabular-nums}`],aa=y([L("roxy-compound-number")],aa);var Ym={apple:"#8db600",azure:"#007fff",blackish:"black",bluish:"blue",bottle:"#006a4e",brass:"#b5a642",brick:"#b22222",brownish:"brown",browns:"brown",burgundy:"#800020",clear:"#eef2f6",colorless:"#eef2f6",colourless:"#eef2f6",cream:"#fffdd0",creamy:"#fffdd0",emerald:"#50c878",golden:"gold",greenish:"green",lilac:"#c8a2c8",mauve:"#e0b0ff",peach:"peachpuff",pinkish:"pink",reddish:"red",rose:"#f4a6b7",royal:"royalblue",silvery:"silver",sky:"skyblue",yellowish:"yellow"},Wm=new Set(["beige","black","blue","brown","crimson","cyan","gold","gray","green","grey","indigo","lavender","magenta","maroon","navy","olive","orange","pink","purple","red","salmon","silver","tan","teal","turquoise","violet","white","yellow"]),Zm={bright:["white",85],dark:["black",60],deep:["black",70],faintly:["white",30],light:["white",55],pale:["white",45],rich:["black",80]};function Ws(n){let a=[],e=[];for(let l of n.toLowerCase().split(/[\s-]+/)){let c=Zm[l];if(c){e.push(c);continue}let d=Ym[l]??(Wm.has(l)?l:"");d&&a.push(d)}let[t,r]=a;if(!t)return"var(--roxy-border, #e4e4e7)";let i=r?`color-mix(in srgb, ${t}, ${r})`:t;for(let[l,c]of e)i=`color-mix(in srgb, ${i} ${c}%, ${l})`;return i}var ra=class extends f{renderData(a){let e=a.colors??[],t=a.keywords??[],r=a.pairsWith??[],i=Ts(this.effectiveLang(),a.birthMonth)||void 0,l=a.name??this.t("Crystal");return s`<article class="wrap" part="card" aria-label="${l}"><div class="hero" part="header">${a.imageUrl?s`<img class="photo" part="chart" src="${a.imageUrl}" alt="${l}" loading="lazy">`:o}<div><h2>${a.name}</h2>${a.description&&!this.hideReadings?s`<p class="desc">${a.description}</p>`:o}</div></div><dl class="roxy-facts" part="details">${this.attr(this.t("Planet"),a.planet)} ${this.attr(this.t("Hardness"),typeof a.hardness=="number"?this.t("{{value}} Mohs",{value:$(this.effectiveLang(),a.hardness)}):void 0)} ${this.attr(this.t("Vibration"),a.numericalVibration)} ${this.attr(this.t("Birthstone"),i)} ${this.list(this.t("Chakras"),a.chakras)} ${this.list(this.t("Zodiac"),a.zodiacSigns)} ${this.list(this.t("Elements"),a.elements)} ${e.length?s`<div><dt>${this.t("Colors")}</dt><dd><div class="colors">${e.map(c=>s`<span class="color"><span class="dot" style="${`background:${Ws(c)}`}"></span>${c}</span>`)}</div></dd></div>`:o}</dl>${this.renderMeaning(a.meaning)} ${t.length&&!this.hideReadings?s`<section part="section keywords"><h3>${this.t("Keywords")}</h3><ul class="chips roxy-chips">${t.map(c=>s`<li>${c}</li>`)}</ul></section>`:o} ${a.affirmation&&!this.hideReadings?s`<p class="affirmation">${a.affirmation}</p>`:o} ${r.length?s`<section part="section pairs-with"><h3>${this.t("Pairs with")}</h3><ul class="chips roxy-chips">${r.map(c=>s`<li>${String(c).replace(/-/g," ")}</li>`)}</ul></section>`:o}</article>`}attr(a,e){return e==null||e===""?o:s`<div><dt>${a}</dt><dd>${e}</dd></div>`}list(a,e){return e?.length?s`<div><dt>${a}</dt><dd>${e.join(", ")}</dd></div>`:o}renderMeaning(a){if(!a||this.hideReadings)return o;let t=[[this.t("Spiritual"),a.spiritual],[this.t("Emotional"),a.emotional],[this.t("Physical"),a.physical]].filter(([,r])=>!!r);return t.length===0?o:s`<div class="meaning" part="section meaning">${t.map(([r,i])=>s`<h3>${r}</h3><p>${i}</p>`)}</div>`}};ra.endpoints=Ho,ra.styles=[v,J,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.hero{align-items:flex-start;gap:var(--roxy-space-md);display:flex}.photo{border-radius:var(--roxy-radius-md);object-fit:cover;background:var(--roxy-border);flex:none;block-size:4lh;inline-size:4lh}.hero h2{margin-block-end:var(--roxy-space-xs)}.desc,.meaning p{font-size:var(--roxy-text-sm)}.colors{gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}.color{align-items:center;gap:var(--roxy-space-xs);font-size:var(--roxy-text-xs);text-transform:capitalize;display:inline-flex}.dot{border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-full);block-size:.6lh;inline-size:.6lh}.meaning h3,section>h3{margin-block-end:var(--roxy-space-xs)}.meaning p{margin-block-end:var(--roxy-space-sm)}.chips>li{text-transform:capitalize}.affirmation{border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);font-size:var(--roxy-text-sm);padding-inline-start:var(--roxy-space-md);font-style:italic}`],ra=y([L("roxy-crystal-card")],ra);var gt=class extends f{constructor(){super(...arguments);this.heading="";this.rowDetail={tag:"roxy-crystal-card",path:"crystals/{id}"};this.listKey="crystals"}renderData(e){let t=e.crystals??[];if(t.length===0)return this.renderEmpty();let r=this.heading||this.deriveHeading(e),i="total"in e&&typeof e.total=="number"?e.total:t.length;return s`<section class="wrap" part="card" aria-label="${r}"><header class="head" part="header"><h2>${r}</h2><span class="count">${i===1?this.t("1 crystal"):this.t("{{count}} crystals",{count:i})}</span></header><ul class="grid" part="section crystals">${t.map(l=>s`<li><button type="button" class="tile" aria-pressed="${this.openedRowId===l.id?"true":"false"}" @click="${()=>this.pickRow({id:l.id,name:l.name})}">${l.imageUrl?s`<img class="photo" src="${l.imageUrl}" alt="${l.name??this.t("Crystal")}" loading="lazy">`:s`<div class="photo" aria-hidden="true"></div>`}<p class="name">${l.name}</p>${l.colors&&l.colors.length>0?s`<div class="colors" aria-label="${this.t("Colors: {{list}}",{list:me(this.effectiveLang(),l.colors)})}">${l.colors.map(c=>s`<span class="swatch" style="${`background:${Ws(c)}`}" title="${c}"></span>`)}</div>`:o}</button></li>`)}</ul>${this.renderMore()} ${this.openedRow?s`<div class="detail" part="detail">${this.openedRow}</div>`:o}</section>`}deriveHeading(e){return"chakra"in e&&e.chakra?this.t("{{chakra}} chakra crystals",{chakra:e.chakra}):"element"in e&&e.element?this.t("{{element}} element crystals",{element:e.element}):"sign"in e&&e.sign?this.t("Crystals for {{sign}}",{sign:e.sign}):"month"in e&&typeof e.month=="number"?this.t("{{month}} birthstones",{month:Ts(this.effectiveLang(),e.month)}):this.t("Crystals")}};gt.endpoints=jo,gt.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.count{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.grid{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fill,minmax(min(100%,16ch),1fr));margin:0;padding:0;list-style:none;display:grid}.tile{gap:var(--roxy-space-xs);width:100%;padding:var(--roxy-space-xs);color:inherit;border-radius:var(--roxy-radius-md);text-align:start;cursor:pointer;transition:border-color var(--roxy-motion-duration) var(--roxy-motion-easing);background:0 0;border:1px solid #0000;display:grid}.tile[aria-pressed=true],.tile:hover{border-color:var(--roxy-accent)}.detail{margin-block-start:var(--roxy-space-md)}.photo{aspect-ratio:1;border-radius:var(--roxy-radius-sm);object-fit:cover;background:var(--roxy-border);width:100%}.name{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.colors{gap:var(--roxy-space-xs);flex-wrap:wrap;display:flex}.swatch{border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-full);block-size:.4lh;inline-size:.4lh}`],y([k({type:String,reflect:true})],gt.prototype,"heading",2),gt=y([L("roxy-crystal-grid")],gt);function wd(n){return"pranaDashas"in n?"Prana":"sookshmaDashas"in n?"Sookshma":"pratyantardashas"in n?"Pratyantardasha":"antardashas"in n?"Antardasha":"Mahadasha"}function xi(n){if("sookshmaPeriod"in n&&n.sookshmaPeriod)return{source:"Sookshma",period:n.sookshmaPeriod};if("pratyantardashaPeriod"in n&&n.pratyantardashaPeriod)return{source:"Pratyantardasha",period:n.pratyantardashaPeriod};if("antardashaPeriod"in n&&n.antardashaPeriod)return{source:"Antardasha",period:n.antardashaPeriod};if("mahadashaPeriod"in n&&n.mahadashaPeriod)return{source:"Mahadasha",period:n.mahadashaPeriod}}function bi(n){if(!n)return"";let a=[];return n.years&&a.push(`${n.years}y`),n.months&&a.push(`${n.months}m`),n.days&&a.push(`${n.days}d`),a.length?a.join(" "):"0d"}function kd(n,a){return Ze(n?.strongHouses?.length?n.strongHouses:n?.signifiedHouses,a)}function Zs(n,a){let e=A(n,a.startDate);return e&&e===A(n,a.endDate)?pr(n,a.startDate,a.endDate):ve(n,a.startDate,a.endDate)}var Xe=class extends f{constructor(){super(...arguments);this.period="current";this.view="timeline"}renderData(e){let t=this.collectPeriods(e),r=t.length?Math.max(...t.map(h=>h.durationYears)):0,i=Jm(t.length?Math.min(...t.map(h=>h.durationYears)):0),l=this.hideReadings?[]:this.readings(e,t),c=this.frameRows(e),d=[{id:"timeline",label:this.t("Timeline")},...l.length?[{id:"readings",label:this.t("Readings ({{count}})",{count:l.length})}]:[],...c.length?[{id:"frame",label:this.t("Chart details")}]:[]],p=d.some(h=>h.id===this.view)?this.view:"timeline";return s`<div class="wrap" part="card" aria-label="${this.t("Dasha timeline")}"><header class="head" part="header"><h2 class="title">${this.heading(e)}</h2>${this.renderLordChain(e)}</header>${this.renderParentMahadasha(e)} ${d.length>1?ue({items:d,active:p,onSelect:h=>{this.view=h},label:this.t("Dasha views"),idPrefix:"roxy-dasha",controls:true}):o}<div id="roxy-dasha-panel-${p}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="${d.length>1?`roxy-dasha-tab-${p}`:o}">${p==="timeline"?s`${this.period==="current"?this.renderCurrent(e):o} ${t.length>0?s`<div class="timeline" part="chart timeline" role="list">${t.map(h=>this.renderBar(h,r,i,e.houseThemes))}</div>`:o}`:o} ${p==="readings"?this.renderReadings(l):o} ${p==="frame"?this.renderFrame(c):o}</div></div>`}renderLordChain(e){let t=["mahadashaLord"in e?e.mahadashaLord:void 0,"antardashaLord"in e?e.antardashaLord:void 0,"pratyantardashaLord"in e?e.pratyantardashaLord:void 0,"sookshmaLord"in e?e.sookshmaLord:void 0].filter(Boolean);return t.length>1?s`<div class="nakshatra">${t.join(" \u203A ")}</div>`:"nakshatraName"in e&&e.nakshatraName?s`<div class="nakshatra">${"nakshatraLord"in e&&e.nakshatraLord?this.t("Moon nakshatra: {{name}} (lord {{lord}})",{name:e.nakshatraName,lord:e.nakshatraLord}):this.t("Moon nakshatra: {{name}}",{name:e.nakshatraName})}</div>`:o}frameRows(e){let t=[];if("nakshatraName"in e&&e.nakshatraName){let r="moonNakshatra"in e&&e.moonNakshatra?` (${e.moonNakshatra} of 27)`:"";t.push(["Moon nakshatra",`${e.nakshatraName}${r}`])}if("nakshatraLord"in e&&e.nakshatraLord&&t.push(["Nakshatra lord",e.nakshatraLord]),"moonLongitude"in e&&typeof e.moonLongitude=="number"&&t.push(["Moon longitude",`${$(this.effectiveLang(),e.moonLongitude,3)}\xB0 sidereal`]),"ayanamsaType"in e&&e.ayanamsaType&&t.push(["Ayanamsa",Wa(this.effectiveLang(),e.ayanamsaType,"ayanamsa"in e?e.ayanamsa:void 0)]),"birthDashaBalance"in e&&e.birthDashaBalance){let r="nakshatraLord"in e&&e.nakshatraLord?`${e.nakshatraLord} `:"";t.push(["Balance at birth",`${bi(e.birthDashaBalance)} of the opening ${r}mahadasha`])}return"totalYears"in e&&typeof e.totalYears=="number"&&t.push(["Cycle length",`${e.totalYears} years`]),t}renderFrame(e){return s`<dl class="roxy-facts" part="details frame">${e.map(([t,r])=>s`<div><dt>${t}</dt><dd>${r}</dd></div>`)}</dl>`}renderReadings(e){return this.renderInterpretation(e,"roxy-dasha",e.length===1?"Reading":"Readings")}heading(e){let t=xi(e);return t?this.t("{{level}} periods in {{planet}} {{parent}}",{level:this.t(wd(e)),planet:t.period.planet,parent:this.t(t.source)}):"mahadashas"in e?this.t("Vimshottari Mahadasha"):"mahadasha"in e?this.t("Active dashas"):this.period==="major"?this.t("Vimshottari Mahadasha"):this.t("Active dashas")}renderParentMahadasha(e){let t=xi(e);if(!t)return o;let r=t.period,i=Zs(this.effectiveLang(),r),l=r.nominalStartDate?A(this.effectiveLang(),r.nominalStartDate):"";return s`<p class="parent">${this.t("Inside the {{planet}} {{level}}{{span}}{{duration}}.",{planet:r.planet,level:this.t(t.source),span:i?`, ${i}`:"",duration:typeof r.durationYears=="number"?` (${Xm(this.effectiveLang(),r.durationYears)})`:""})} ${l?s`<br>${this.t("It began {{date}}, before birth, so only the sub-periods running after the birth date are listed.",{date:l})}`:o}</p>`}readings(e,t){let r=[],i=xi(e);if(i?.period.interpretation&&r.push({label:this.t("{{planet}} {{level}}",{planet:i.period.planet,level:this.t(i.source)}),aside:Zs(this.effectiveLang(),i.period),body:i.period.interpretation}),"mahadasha"in e){let c=[["Mahadasha",e.mahadasha,e.remainingInMahadasha],["Antardasha",e.antardasha,e.remainingInAntardasha],["Pratyantardasha",e.pratyantardasha,e.remainingInPratyantardasha],["Sookshma",e.sookshmaDasha,e.remainingInSookshma],["Prana",e.pranaDasha,e.remainingInPrana]];for(let[d,p,h]of c){if(!p?.interpretation)continue;let m=bi(h);r.push({label:this.t("{{planet}} {{level}}",{planet:p.planet,level:this.t(d)}),aside:m?this.t("{{balance}} left",{balance:m}):Zs(this.effectiveLang(),p),body:p.interpretation})}}let l=t.find(c=>this.isCurrent(c));return l?.interpretation&&r.push({label:`${l.planet} ${wd(e)}`,aside:Zs(this.effectiveLang(),l),body:l.interpretation}),r}renderCurrent(e){if(!("mahadasha"in e))return o;let t=[["Mahadasha",e.mahadasha,e.remainingInMahadasha],["Antardasha",e.antardasha,e.remainingInAntardasha],["Pratyantardasha",e.pratyantardasha,e.remainingInPratyantardasha],["Sookshma",e.sookshmaDasha,e.remainingInSookshma],["Prana",e.pranaDasha,e.remainingInPrana]];return s`<div class="current" part="details current">${t.map(([r,i,l])=>{if(!i)return o;let c=bi(l),d=kd(i.significators,e.houseThemes);return s`<div><span class="roxy-label">${this.t(r)}</span> <strong>${i.planet}</strong> ${c?s`<small>${this.t("{{balance}} left",{balance:c})}</small>`:o} ${d?s`<small class="houses">${this.t("Signifies {{houses}}",{houses:d})}</small>`:o}</div>`})}</div>`}collectPeriods(e){return"mahadashas"in e&&e.mahadashas?.length?e.mahadashas:"antardashas"in e&&e.antardashas?.length?e.antardashas:"pratyantardashas"in e&&e.pratyantardashas?.length?e.pratyantardashas:"sookshmaDashas"in e&&e.sookshmaDashas?.length?e.sookshmaDashas:"pranaDashas"in e&&e.pranaDashas?.length?e.pranaDashas:[]}isCurrent(e){if(!e.startDate||!e.endDate)return false;let t=Date.now(),r=Date.parse(e.startDate),i=Date.parse(e.endDate);return Number.isNaN(r)||Number.isNaN(i)?false:t>=r&&t<i}progressIn(e){if(!e.startDate||!e.endDate)return-1;let t=Date.parse(e.startDate),r=Date.parse(e.endDate),i=Date.now();return Number.isNaN(t)||Number.isNaN(r)||i<t||i>=r||r<=t?-1:(i-t)/(r-t)}renderBar(e,t,r,i){let l=e.durationYears,c=t>0?l/t*100:0,d=this.isCurrent(e),p=d?this.progressIn(e):-1,h=d?"bar-track bar-now":"bar-track",m=kd(e.significators,i),g=["bar",d?"now":"",r==="time"?"fine":""].filter(Boolean).join(" ");return s`<div class="${g}" part="label-track" role="listitem" aria-current="${d?"time":"false"}"><span><strong>${e.planet}</strong>${d?s`<span class="now-badge">${this.t("Now")}</span>`:o} </span><span class="${h}"><span class="bar-fill" style="width:${c}%"></span> ${p>=0?s`<span class="bar-progress" style="left:${p*c}%" aria-hidden="true"></span>`:o} </span><span class="dates">${Sc(this.effectiveLang(),e.startDate,e.endDate,r)} </span>${m?s`<span class="houses">${this.t("Signifies {{houses}}",{houses:m})}</span>`:o}</div>`}};Xe.endpoints=Ko,Xe.styles=[v,O,J,H,ge,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.title{margin:0}.nakshatra{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.current{gap:var(--roxy-space-md) var(--roxy-space-lg);border-block-end:1px solid var(--roxy-border);flex-wrap:wrap;margin-block-end:var(--roxy-space-md);padding-block-end:var(--roxy-space-md);display:flex}.current>div{align-content:start;min-width:0;display:grid}.current small{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.parent{border-inline-start:var(--roxy-line-thick) solid var(--roxy-border);font-size:var(--roxy-text-sm);color:var(--roxy-muted);margin:0;padding-inline-start:var(--roxy-space-sm)}.timeline{gap:var(--roxy-space-xs);display:grid}.bar{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr) 16ch;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);align-items:center;row-gap:0;display:grid}.bar.now strong,.now-badge{color:var(--roxy-accent-ink)}.now-badge{font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);margin-inline-start:var(--roxy-space-xs)}.bar-track{background:var(--roxy-border);border-radius:var(--roxy-radius-full);block-size:.6lh;position:relative;overflow:hidden}.bar-fill{background:var(--roxy-accent);opacity:.45;height:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.bar-now .bar-fill{opacity:1}.bar-progress{inline-size:var(--roxy-line-thick);background:var(--roxy-accent-ink);position:absolute;inset-block:0}.dates{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;text-align:end}.bar.fine{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr)}.bar.fine .dates{text-align:start;grid-column:1/-1;min-width:0}.bar .houses{min-width:0;color:var(--roxy-muted);font-size:var(--roxy-text-xs);grid-column:1/-1}[role=tabpanel]{padding-top:var(--roxy-space-md)}`],y([k({type:String,reflect:true})],Xe.prototype,"period",2),y([I()],Xe.prototype,"view",2),Xe=y([L("roxy-dasha-timeline")],Xe);var vi=365.25;function Xm(n,a){if(a>=1)return`${$(n,a,1)} years`;let e=a*vi;if(e>=1)return`${$(n,e,e>=10?0:1)} days`;let t=e*24;return t>=1?`${$(n,t,1)} hours`:`${$(n,t*60,0)} minutes`}function Jm(n){return n>=2?"year":n>=60/vi?"month":n>=1/vi?"day":"time"}var Sd=["title","name","label","heading","overview","summary"],Qm=80,eg=80,tg=3,ag=["imageUrl","image","icon","symbol"],rg=["imageUrl","image"],sg=["affirmation","mantra","motto","quote"],ng=new Set(["seed"]),ig=new Set(["id","slug","key"]),og=new Set(["calculation","calculations","type","position","count","totalcount","total","limit","offset","page","pagesize","perpage"]),lg=(n,a)=>n==="symbol"&&typeof a=="string"&&!new RegExp("\\p{L}","u").test(a),cg=8,Rd=1,dg=12,pg=n=>n.toLowerCase().replace(/[_-]/g,""),Cd=n=>/^(has|is)([A-Z_]|$)/.test(n),hg=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?)?$/,mg=/^[A-Z0-9]+(_[A-Z0-9]+)+$/,gg=6;function yg(n,a){if(!Number.isInteger(a))return false;let e=n.replace(/([a-z])([A-Z])/g,"$1 $2").split(/[\s_-]+/);return e[e.length-1].toLowerCase()==="year"}function Qa(n){return n===null||["string","number","boolean"].includes(typeof n)}function Li(n){return n!==null&&typeof n=="object"&&!(Array.isArray(n)&&n.every(Qa))}function Td(n){if(n==null)return true;if(Array.isArray(n))return n.length===0;if(typeof n!="object")return false;let a=Object.values(n);return a.length===0||a.every(Td)}var sa=class extends f{constructor(){super(...arguments);this.depth=0}renderData(e){return this.depth>=gg?s`<div class="roxy-empty" role="status">${this.t("Nested data omitted")}</div>`:s`<div class="roxy-card" part="card" aria-label="${this.t("Generic data display")}">${this.renderValue(e)}</div>`}renderValue(e){return e==null?o:Qa(e)?s`<p>${this.scalarTemplate(e)}</p>`:Array.isArray(e)?this.renderArray(e):this.renderObject(e)}renderArray(e){return e.length===0?s`<div class="roxy-empty" role="status">${this.t("Empty list")}</div>`:e.every(Qa)?this.renderChips(e):e.every(r=>r!==null&&typeof r=="object"&&!Array.isArray(r))?this.renderObjectArray(e):s`<ol>${e.map(r=>s`<li>${this.renderValue(r)}</li>`)}</ol>`}renderChips(e){return s`<ul class="roxy-chips">${e.filter(t=>t!==null).map(t=>s`<li>${this.formatScalar(t)}</li>`)}</ul>`}renderObjectArray(e){let t=e.map(g=>this.suppress(g)),r=this.collectKeys(t),i=new Set(r.filter(g=>t.some(b=>typeof b[g]=="string"&&Array.from(b[g]).length>eg))),l=new Set(r.filter(g=>i.has(g)||t.some(b=>Li(b[g]??null)))),c=i.size>0||l.size>0&&l.size<r.length,d=g=>c?l.has(g)?"col-wide":"col-tight":"",p=l.size>0&&r.length>tg,h=t.length>dg;return s`<div class="${p?"roxy-collection":h&&!p?"roxy-collection compact long":"roxy-collection compact"}" part="table" role="${p?"list":"group"}" aria-label="${p?this.t("{{count}} rows",{count:t.length}):this.t("Data table")}" tabindex="${p?o:"0"}">${p?s`${h?s`<p>${this.t("{{count}} rows",{count:t.length})}</p>`:o} ${t.map(g=>s`<div class="roxy-record" role="listitem">${this.renderField(g)}</div>`)}`:s`<table class="${i.size?"roxy-table stacked prose":l.size?"roxy-table stacked":"roxy-table"}" role="table">${h?s`<caption>${this.t("{{count}} rows",{count:t.length})}</caption>`:o}<thead><tr>${r.map(g=>s`<th class="${d(g)}">${X(this.effectiveLang(),g)}</th>`)}</tr></thead><tbody>${t.map(g=>s`<tr>${r.map(b=>s`<td class="${d(b)}" data-label="${X(this.effectiveLang(),b)}">${this.renderCell(g[b],b)}</td>`)}</tr>`)}</tbody></table>`}</div>`}suppress(e){let t=hr(e),r=Sd.some(i=>typeof t[i]=="string");return Object.fromEntries(Object.entries(t).filter(([i,l])=>{let c=pg(i);return ng.has(c)||lg(i,l)||r&&ig.has(c)?false:!og.has(c)}))}renderObject(e){let t=this.suppress(e),r=Sd.find(m=>typeof t[m]=="string"&&t[m].length<=Qm),i=ag.find(m=>typeof t[m]=="string"&&t[m].startsWith("http")),l=r!=="summary"&&typeof t.summary=="string"?"summary":null,c=sg.find(m=>typeof t[m]=="string"),d=Object.entries(t).filter(([m,g])=>m!==r&&m!==l&&m!==c&&!rg.includes(m)&&!Td(g)),p=d.filter(([,m])=>!Li(m)),h=d.filter(([,m])=>Li(m));return s`${i?s`<img class="roxy-image" src="${String(t[i])}" alt="${r?String(t[r]):this.t("illustration")}" loading="lazy">`:o} ${r?this.depth===0?s`<h2 class="roxy-title" part="header">${t[r]}</h2>`:s`<h3 class="roxy-title" part="header">${t[r]}</h3>`:o} ${l?s`<p class="roxy-summary">${t[l]}</p>`:o} ${c?s`<blockquote class="roxy-quote">${t[c]}</blockquote>`:o} ${p.length>0?s`<dl class="roxy-rows" part="details label-track">${p.map(([m,g])=>s`<dt>${X(this.effectiveLang(),m)}</dt><dd>${this.renderField(g,m)}</dd>`)}</dl>`:o} ${h.map(([m,g])=>this.renderSection(m,g))}`}renderSection(e,t){let r=t!==null&&typeof t=="object"?Array.isArray(t)?t.length:Object.keys(t).length:0,i=this.renderField(t,e),l=X(this.effectiveLang(),e);return r>cg||this.depth>=Rd?s`<details class="roxy-section" ?open="${this.depth<Rd}"><summary>${l}</summary>${i}</details>`:s`<div class="roxy-section">${this.depth===0?s`<h3>${l}</h3>`:s`<h4>${l}</h4>`} ${i}</div>`}renderField(e,t){return e==null?"":e===true&&t!==void 0&&Cd(t)?s`<span class="roxy-chip">${this.t("Yes")}</span>`:Qa(e)?s`${this.scalarTemplate(e,t)}`:Array.isArray(e)&&e.every(Qa)?this.renderChips(e):s`<roxy-data bare lang="${U(this.effectiveLang())}" .data="${e}" .depth="${this.depth+1}"></roxy-data>`}renderCell(e,t){return e==null?"":e===true&&t!==void 0&&Cd(t)?s`<span class="roxy-chip">${this.t("Yes")}</span>`:Qa(e)?this.scalarTemplate(e,t):Array.isArray(e)&&e.every(Qa)?e.filter(r=>r!==null).map(r=>this.formatScalar(r)).join(", "):s`<roxy-data bare lang="${U(this.effectiveLang())}" .data="${e}" .depth="${this.depth+1}"></roxy-data>`}scalarTemplate(e,t){return bs(e)?s`<a href="${e}" target="_blank" rel="noopener noreferrer">${e}</a>`:this.formatScalar(e,t)}formatScalar(e,t){return typeof e=="number"?t!==void 0&&yg(t,e)?String(e):$(this.effectiveLang(),e,2)||String(e):typeof e=="boolean"?e?this.t("Yes"):this.t("No"):hg.test(e)?Y(this.effectiveLang(),e):mg.test(e)?E(e.toLowerCase()):e}collectKeys(e){let t=new Set;for(let r of e)for(let i of Object.keys(r))t.add(i);return Array.from(t)}};sa.styles=[v,u`.roxy-card{padding:var(--roxy-space-md)}.roxy-card a{color:var(--roxy-accent-ink)}:is(h2,h3,h4,p,dl){margin:0}:is(h2,h3).roxy-title{margin-block-end:var(--roxy-space-sm)}.roxy-summary{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);margin-block-end:var(--roxy-space-md)}dl.roxy-rows{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);grid-template-columns:fit-content(25%) minmax(0,1fr);display:grid}dl.roxy-rows dd{word-break:break-word;margin:0}.roxy-collection{min-width:0}.roxy-collection.compact{overflow-x:auto}.roxy-collection.long{max-block-size:20lh}.roxy-record+.roxy-record{margin-block-start:var(--roxy-space-sm)}table.roxy-table{width:100%}table.roxy-table caption{text-align:start}table.roxy-table th{white-space:nowrap}:where(table.roxy-table) :is(th,td).col-tight{white-space:nowrap;width:1%}:where(table.roxy-table.prose) :is(th,td).col-wide{min-width:40ch}.roxy-image{max-width:100%;height:auto;border-radius:var(--roxy-radius-md);margin-block-end:var(--roxy-space-md)}.roxy-section{margin-block-start:var(--roxy-space-md)}.roxy-section>:is(h3,h4,summary){font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);margin-block-end:var(--roxy-space-xs)}blockquote.roxy-quote{margin:var(--roxy-space-md) 0;border-inline-start:var(--roxy-line-thick) solid var(--roxy-accent);font-size:var(--roxy-text-sm);padding-inline-start:var(--roxy-space-md);font-style:italic}`,qe],y([k({attribute:false})],sa.prototype,"depth",2),sa=y([L("roxy-data")],sa);var _e=400,Q=20,fe=_e-2*Q,ie=_e/2,Ed=Object.fromEntries(re.map(n=>[n.toLowerCase(),n])),wi="\u02B3",ki="\u1D9C",Si="\u02B7";function $i(n){return re.indexOf(n)}function ug(n){let a=Hc(n.graha)??n.graha,e=`${n.isRetrograde?wi:""}${n.combust?ki:""}${n.war?Si:""}`;if(typeof n.longitude!="number"||!Number.isFinite(n.longitude)||n.natalReference)return`${a}${e}`;let{degree:t}=Ne(n.longitude);return`${a} ${t}\xB0${e}`}function fg(n,a,e){let t=[D(n.graha)],r=n.natalReference===true;if(r&&t.push(e("in {{sign}}",{sign:a})),typeof n.longitude=="number"&&Number.isFinite(n.longitude)){let i=Ne(n.longitude),l=String(i.minute).padStart(2,"0");t.push(r?`D1: ${i.degree}\xB0${l}' ${i.sign}`:`${i.degree}\xB0${l}' ${i.sign}`)}if(n.nakshatra?.name){let i=n.nakshatra.pada?` ${e("pada {{n}}",{n:n.nakshatra.pada})}`:"";t.push(`${r?"D1: ":""}${n.nakshatra.name}${i}`)}return n.nakshatra?.lord&&t.push(e("nakshatra lord {{graha}}",{graha:n.nakshatra.lord})),n.awastha&&t.push(n.awastha),n.deeptadi&&t.push(n.deeptadi),n.combust&&t.push(e("combust")),n.war&&t.push(n.war.winner?e("planetary war with {{graha}}, won by {{winner}}",{graha:n.war.opponent,winner:n.war.winner}):e("planetary war with {{graha}}",{graha:n.war.opponent})),n.isRetrograde&&t.push(e("retrograde")),t.join(" \xB7 ")}function Ri(n,a,e,t,r,i){let l=t-(n.length-1)*r/2;return n.map((c,d)=>{let p=l+d*r;return T`<text class="planet-text" x=${e} y=${p} text-anchor="middle" dominant-baseline="central">${ug(c)}<title>${fg(c,a,i)}</title></text>`})}function Js(n,a={}){let{divisionLabel:e,lagnaOverride:t,states:r,natalReference:i}=a,l=new Set((r?.combustion??[]).map(m=>(m.planet??"").toLowerCase())),c=new Map;for(let m of r?.planetaryWar??[])!m.planet1||!m.planet2||(c.set(m.planet1.toLowerCase(),{opponent:m.planet2,winner:m.winner}),c.set(m.planet2.toLowerCase(),{opponent:m.planet1,winner:m.winner}));let d={};for(let m of re)d[m.toLowerCase()]=[];let p=t?Ed[t.toLowerCase()]??"":"",h=p;for(let[m,g]of Object.entries(n??{})){let b=(g?.rashi??"").toLowerCase();if(m==="Lagna"||g?.graha==="Lagna"){p||(h=Ed[b]??"");continue}if(!b||!(b in d))continue;let w=g.graha??m,S=w.toLowerCase();d[b]?.push({graha:w,natalReference:i,longitude:g.longitude,nakshatra:g.nakshatra,isRetrograde:g.isRetrograde,awastha:g.awastha,deeptadi:g.deeptadi,combust:l.has(S)||void 0,war:c.get(S)})}return{lagnaSign:h,placements:d,divisionLabel:e}}var er=fe/4,xg={Pisces:{col:0,row:0},Aries:{col:1,row:0},Taurus:{col:2,row:0},Gemini:{col:3,row:0},Cancer:{col:3,row:1},Leo:{col:3,row:2},Virgo:{col:3,row:3},Libra:{col:2,row:3},Scorpio:{col:1,row:3},Sagittarius:{col:0,row:3},Capricorn:{col:0,row:2},Aquarius:{col:0,row:1}};function bg(n){let a=xg[n]??{col:0,row:0};return{x:Q+a.col*er,y:Q+a.row*er,w:er,h:er}}function vg(n){let a=Q,e=Q+er,t=Q+2*er,r=Q+3*er,i=_e-Q;return T`
|
|
19
19
|
<rect class="line" x=${a} y=${a} width=${fe} height=${fe} stroke-width="1.5" fill="none" />
|
|
20
20
|
<line class="line" x1=${a} y1=${e} x2=${i} y2=${e} stroke-width="1" />
|
|
21
21
|
<line class="line" x1=${a} y1=${r} x2=${i} y2=${r} stroke-width="1" />
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<line class="line" x1=${t} y1=${a} x2=${t} y2=${e} stroke-width="1" />
|
|
27
27
|
<line class="line" x1=${t} y1=${r} x2=${t} y2=${i} stroke-width="1" />
|
|
28
28
|
${n?T`<text class="centre-label" x=${ie} y=${ie} text-anchor="middle" dominant-baseline="central">${n}</text>`:""}
|
|
29
|
-
`}function
|
|
29
|
+
`}function Ci(n,a){let e=$i(a),t=$i(n);return e===-1||t===-1?0:(t-e+12)%12+1}function Lg(n,a,e,t,r){let i=bg(n),l=i.x+i.w/2,c=i.y+i.h/2,d=Os(n)??n,p=14;return T`
|
|
30
30
|
<g class=${e?"cell lagna":"cell"}>
|
|
31
31
|
${e?T`
|
|
32
32
|
<rect class="lagna-bg" x=${i.x} y=${i.y} width=${i.w} height=${i.h} />
|
|
@@ -35,27 +35,27 @@
|
|
|
35
35
|
<text class="sign-text" x=${i.x+6} y=${i.y+12} text-anchor="start" dominant-baseline="central">${d}</text>
|
|
36
36
|
${t>0?T`<text class="house-num" x=${i.x+i.w-6} y=${i.y+12} text-anchor="end" dominant-baseline="central">${t}</text>`:""}
|
|
37
37
|
${e?T`<text class="lagna-marker" x=${l} y=${i.y+26} text-anchor="middle" dominant-baseline="central">${r("ASC")}</text>`:""}
|
|
38
|
-
${a.length?
|
|
38
|
+
${a.length?Ri(a,n,l,c+4,14,r):""}
|
|
39
39
|
</g>
|
|
40
|
-
`}function
|
|
41
|
-
${
|
|
42
|
-
${re.map(t=>
|
|
43
|
-
`}var
|
|
40
|
+
`}function Ad(n,a){let e=n.lagnaSign.toLowerCase();return T`
|
|
41
|
+
${vg(n.divisionLabel)}
|
|
42
|
+
${re.map(t=>Lg(t,n.placements[t.toLowerCase()]??[],t.toLowerCase()===e,Ci(t,n.lagnaSign),a))}
|
|
43
|
+
`}var Pd={tl:{x:Q,y:Q},tr:{x:_e-Q,y:Q},br:{x:_e-Q,y:_e-Q},bl:{x:Q,y:_e-Q},top:{x:ie,y:Q},right:{x:_e-Q,y:ie},bottom:{x:ie,y:_e-Q},left:{x:Q,y:ie},tlMid:{x:ie-fe/4,y:ie-fe/4},trMid:{x:ie+fe/4,y:ie-fe/4},brMid:{x:ie+fe/4,y:ie+fe/4},blMid:{x:ie-fe/4,y:ie+fe/4}};function _d(n){let a=n.reduce((t,r)=>t+r.x,0)/n.length,e=n.reduce((t,r)=>t+r.y,0)/n.length;return{x:a,y:e}}var $g=Object.fromEntries(Object.entries({1:["top","trMid","centre","tlMid"],2:["tl","top","tlMid"],3:["tl","left","tlMid"],4:["left","tlMid","centre","blMid"],5:["bl","left","blMid"],6:["bl","bottom","blMid"],7:["bottom","blMid","centre","brMid"],8:["br","bottom","brMid"],9:["br","right","brMid"],10:["right","brMid","centre","trMid"],11:["tr","right","trMid"],12:["tr","top","trMid"]}).map(([n,a])=>{let e=a.map(t=>t==="centre"?{x:ie,y:ie}:Pd[t]);return[n,{centre:_d(e),floor:Math.max(...e.map(t=>t.y))}]})),Dd=12,wg=16,kg=8;function Sg(n){let{tl:a,tr:e,br:t,bl:r,top:i,right:l,bottom:c,left:d}=Pd;return T`
|
|
44
44
|
<rect class="line" x=${a.x} y=${a.y} width=${fe} height=${fe} stroke-width="1.5" fill="none" />
|
|
45
45
|
<polygon class="line" points="${i.x},${i.y} ${l.x},${l.y} ${c.x},${c.y} ${d.x},${d.y}" stroke-width="1" fill="none" />
|
|
46
46
|
<line class="line" x1=${a.x} y1=${a.y} x2=${t.x} y2=${t.y} stroke-width="1" />
|
|
47
47
|
<line class="line" x1=${e.x} y1=${e.y} x2=${r.x} y2=${r.y} stroke-width="1" />
|
|
48
48
|
${n?T`<text class="centre-label" x=${ie} y=${ie} text-anchor="middle" dominant-baseline="central">${n}</text>`:""}
|
|
49
|
-
`}function
|
|
49
|
+
`}function Rg(n,a,e,t,r,i){let l=$g[n];if(!l)return T``;let c=l.centre,d=Math.min(14,Math.abs(c.y-ie)*.45+6),p=(t.length-1)*Dd,h=Math.max(c.y+8-p/2,c.y-d+wg),m=Math.max(0,h+p-(l.floor-kg)),g=c.y-d-m,b=h-m+p/2,w=r?`${a} \xB7 ${Os(e)??e}`:`${a}`;return T`
|
|
50
50
|
<g class=${r?"cell lagna":"cell"}>
|
|
51
51
|
<text class="rashi-num" x=${c.x} y=${g} text-anchor="middle" dominant-baseline="central">${w}</text>
|
|
52
52
|
${r?T`<text class="lagna-marker" x=${c.x} y=${g-12} text-anchor="middle" dominant-baseline="central">${i("ASC")}</text>`:""}
|
|
53
|
-
${t.length?
|
|
53
|
+
${t.length?Ri(t,e,c.x,b,Dd,i):""}
|
|
54
54
|
</g>
|
|
55
|
-
`}function
|
|
56
|
-
${
|
|
57
|
-
${re.map((e,t)=>{let r=
|
|
58
|
-
`}var
|
|
55
|
+
`}function Cg(n,a){return T`
|
|
56
|
+
${Sg(n.divisionLabel)}
|
|
57
|
+
${re.map((e,t)=>{let r=Ci(e,n.lagnaSign);return Rg(r,t+1,e,n.placements[e.toLowerCase()]??[],r===1,a)})}
|
|
58
|
+
`}var Xs=fe/3;function Tg(){let n=Q,a=Q+Xs,e=Q+2*Xs,t=_e-Q,R={Aries:[{x:a,y:n},{x:e,y:n},{x:e,y:a},{x:a,y:a}],Taurus:[{x:n,y:n},{x:a,y:n},{x:a,y:a}],Gemini:[{x:n,y:n},{x:a,y:a},{x:n,y:a}],Cancer:[{x:n,y:a},{x:a,y:a},{x:a,y:e},{x:n,y:e}],Leo:[{x:n,y:e},{x:a,y:e},{x:n,y:t}],Virgo:[{x:a,y:e},{x:a,y:t},{x:n,y:t}],Libra:[{x:a,y:e},{x:e,y:e},{x:e,y:t},{x:a,y:t}],Scorpio:[{x:e,y:e},{x:e,y:t},{x:t,y:t}],Sagittarius:[{x:e,y:e},{x:t,y:t},{x:t,y:e}],Capricorn:[{x:e,y:a},{x:t,y:a},{x:t,y:e},{x:e,y:e}],Aquarius:[{x:t,y:n},{x:t,y:a},{x:e,y:a}],Pisces:[{x:e,y:n},{x:t,y:n},{x:e,y:a}]},_={};for(let[q,le]of Object.entries(R))_[q]={points:[...le],centroid:_d(le)};return _}var Eg=Tg();function Ag(n){let a=Q,e=Q+Xs,t=Q+2*Xs,r=_e-Q;return T`
|
|
59
59
|
<rect class="line" x=${a} y=${a} width=${fe} height=${fe} stroke-width="1.5" fill="none" />
|
|
60
60
|
<line class="line" x1=${a} y1=${e} x2=${e} y2=${e} stroke-width="1" />
|
|
61
61
|
<line class="line" x1=${t} y1=${e} x2=${r} y2=${e} stroke-width="1" />
|
|
@@ -70,85 +70,85 @@
|
|
|
70
70
|
<line class="line" x1=${r} y1=${r} x2=${t} y2=${t} stroke-width="1" />
|
|
71
71
|
<line class="line" x1=${a} y1=${r} x2=${e} y2=${t} stroke-width="1" />
|
|
72
72
|
${n?T`<text class="centre-label" x=${ie} y=${ie} text-anchor="middle" dominant-baseline="central">${n}</text>`:""}
|
|
73
|
-
`}function
|
|
73
|
+
`}function Dg(n,a,e,t,r){let i=Eg[n];if(!i)return T``;let{centroid:l,points:c}=i,d=Os(n)??n,p=c.map(h=>`${h.x},${h.y}`).join(" ");return T`
|
|
74
74
|
<g class=${e?"cell lagna":"cell"}>
|
|
75
75
|
${e?T`<polygon class="lagna-bg" points=${p} />`:""}
|
|
76
76
|
<text class="sign-text" x=${l.x} y=${l.y-16} text-anchor="middle" dominant-baseline="central">${d}</text>
|
|
77
77
|
${t>0?T`<text class="house-num" x=${l.x+18} y=${l.y-16} text-anchor="start" dominant-baseline="central">${t}</text>`:""}
|
|
78
78
|
${e?T`<text class="lagna-marker" x=${l.x} y=${l.y-30} text-anchor="middle" dominant-baseline="central">${r("ASC")}</text>`:""}
|
|
79
|
-
${a.length?
|
|
79
|
+
${a.length?Ri(a,n,l.x,l.y+4,12,r):""}
|
|
80
80
|
</g>
|
|
81
|
-
`}function
|
|
82
|
-
${
|
|
83
|
-
${re.map(t=>
|
|
84
|
-
`}function Ri(n){return vi(n.lagnaSign)!==-1}function Dg(n,a,e){if(a==="north"&&!Ri(n))return Td(n,e);switch(a){case"north":return Sg(n,e);case"east":return Ag(n,e);default:return Td(n,e)}}function Xs(n,a={}){let e=Ve(a.lang);return T`<svg class="kundli" xmlns=${Ue} viewBox=${`0 0 ${Pe} ${Pe}`} preserveAspectRatio="xMidYMid meet" part="chart" role="img" aria-label=${a.label??e("Vedic birth chart with twelve sign houses")}><title>${a.title??e("Vedic kundli")}</title>${Dg(n,a.style??"north",e)}</svg>`.markup}var Pg=[{id:"north",source:"North"},{id:"south",source:"South"},{id:"east",source:"East"}];function _g(n,a){let e=Object.values(n.placements).flat(),t=[];return e.some(r=>r.isRetrograde)&&t.push(`${Li} ${a("retrograde")}`),e.some(r=>r.combust)&&t.push(`${$i} ${a("combust")}`),e.some(r=>r.war)&&t.push(`${wi} ${a("planetary war")}`),t.length===0?o:s`<p class="roxy-frame">${t.join(" \xB7 ")}</p>`}function Mg(n){return s`<p class="roxy-frame">${n("No ascendant in this chart, so the houses are not numbered.")}</p>`}function Js(n,a){let e=[];Ri(n)||e.push(Mg(a));let t=_g(n,a);return t!==o&&e.push(t),e}function Qs(n,a,e){return ue({items:Pg.map(({id:t,source:r})=>({id:t,label:e(r)})),active:n,onSelect:a,label:e("Kundli style"),idPrefix:"kundli",controls:true})}function Pd(n,a,e,t){return s`<details class="kundli-reference" part="section positions"><summary>${t("Planetary positions")}${V()}</summary><div class="kundli-reference-scroll" part="table" tabindex="0" role="region" aria-label="${t("Planetary positions")}"><table class="kundli-reference-table"><caption class="roxy-sr-only">${t("Planetary positions")}</caption><thead><tr><th scope="col">${t("Body")}</th><th scope="col">D${a} ${t("Sign")}</th><th scope="col">D${a} ${t("House")}</th><th scope="col">D1 ${t("Position")}</th><th scope="col">D1 ${t("Nakshatra")}</th><th scope="col">${t("Pada")}</th><th scope="col">${t("Star lord")}</th><th scope="col">${t("Motion")}</th></tr></thead><tbody>${Object.entries(n).map(([r,i])=>s`<tr><th scope="row">${i.graha??r}</th><td>${i.rashi??""}</td><td>${typeof i.house=="number"?i.house:""}</td><td>${typeof i.longitude=="number"?s`<span>${ye(i.longitude)}</span><small>${$(e,i.longitude,12)}°</small>`:o}</td><td>${i.nakshatra?.name??""}</td><td>${i.nakshatra?.pada??""}</td><td>${i.nakshatra?.lord??""}</td><td>${i.isRetrograde?t("retrograde"):""}</td></tr>`)}</tbody></table></div></details>`}var en=u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.kundli-reference{min-width:0}.kundli-reference>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);display:flex}.kundli-reference-scroll{min-width:0;margin-top:var(--roxy-space-sm);overflow-x:auto}.kundli-reference-table{width:100%}.kundli-reference-table :is(th,td){white-space:nowrap}.kundli-reference-table small{color:var(--roxy-secondary);display:block}.header{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.title{margin:0}svg:where([part~=chart]){width:100%;max-width:var(--roxy-chart-max-width,35rem);aspect-ratio:1;height:auto;margin:0 auto;display:block}`;var Ng={number:9,name:"Navamsa"},_d=n=>"division"in n&&n.division?n.division:Ng,yt=class extends f{constructor(){super(...arguments);this.chartViewport=new ne(this);this.chartStyle="north";this.setStyle=e=>{this.chartStyle=e}}viewModel(){if(!this.data?.chart?.meta)return null;let e=_d(this.data),t=`D${e.number} ${e.name}`;return Zs(this.data.chart.meta,{divisionLabel:t,natalReference:true})}renderData(e){let t=this.viewModel();if(!t)return this.renderEmpty();let r=_d(e),{vargottama:i}=e;return s`<div class="wrap" part="card"><div class="header" part="header"><div><h2 class="title">D${r.number} ${r.name} ${Jn(r.name,r.sanskritName)?s`<span class="division-meta">· ${r.sanskritName}</span>`:o}</h2>${r.significance?s`<p class="significance">${r.significance}</p>`:o} ${W(this.effectiveLang(),e.frame,this.translator)} ${Js(t,this.translator)}</div>${Qs(this.chartStyle,this.setStyle,this.translator)}</div><div id="kundli-panel-${this.chartStyle}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="kundli-tab-${this.chartStyle}">${this.chartViewport.renderChartViewport(ke(Xs(t,{style:this.chartStyle,lang:this.effectiveLang(),label:this.t("{{chart}} divisional chart with twelve sign houses",{chart:`D${r.number} ${r.name}`}),title:`D${r.number} ${r.name}`})),`D${r.number} ${r.name}`,this.translator)}</div>${Pd(e.chart.meta,r.number,this.effectiveLang(),this.translator)} ${i&&i.length>0?s`<div class="vargottama-row" part="details"><span class="roxy-label">${this.t("Vargottama")}:</span><ul class="roxy-chips" aria-label="${this.t("Vargottama planets")}">${i.map(l=>s`<li>${ce(C(l))} ${l}</li>`)}</ul></div>`:o}</div>`}};yt.endpoints=jo,yt.styles=[v,pe,B,Ds,en,O,ge,u`.division-meta{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);color:var(--roxy-muted)}.significance{border-inline-start:var(--roxy-line-thick) solid var(--roxy-border);font-size:var(--roxy-text-sm);color:var(--roxy-muted);margin:0;padding-inline-start:var(--roxy-space-sm)}.vargottama-row{align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}`],y([k({type:String,reflect:true,attribute:"chart-style"})],yt.prototype,"chartStyle",2),yt=y([L("roxy-divisional-chart")],yt);var zg={manglik:"Mangal Dosha",kalsarpa:"Kaal Sarp Dosha",sadhesati:"Sade Sati"},ut=class extends f{constructor(){super(...arguments);this.type="manglik"}renderData(e){let t=!!e.present,r=zg[this.type]??this.type,i=(e.severity??"").toLowerCase(),l=i==="severe"?3:i==="moderate"?2:i==="mild"?1:0,c=l*33;return s`<article class="card" part="card" aria-label="${r}"><header class="head" part="header"><h2>${r}</h2><span class="${`badge roxy-chip ${t?"present":"absent"}`}" data-tone="${t?"danger":"success"}">${t?this.t("Present"):this.t("Absent")} </span>${W(this.effectiveLang(),e.frame,this.translator)}</header>${"type"in e&&e.type?s`<p class="subtype"><span class="subtype-label roxy-label">${this.type==="sadhesati"?this.t("Current phase"):this.t("Type")}</span>${e.type}</p>`:o} ${e.severity?s`<div class="severity-bar" part="details" role="meter" aria-valuemin="0" aria-valuemax="3" aria-valuenow="${l}" aria-label="${this.t("Severity")} ${e.severity}"><span class="severity-fill" data-tier="${l}" style="width:${c}%"></span></div>`:o} ${e.description&&!this.hideReadings?s`<p class="description">${e.description}</p>`:o} ${this.renderEffects(e)} ${e.remedies&&e.remedies.length>0&&!this.hideReadings?s`<div part="section remedies"><h3>${this.t("Remedies")}</h3><ul>${e.remedies.map(d=>s`<li>${d}</li>`)}</ul></div>`:o} ${"exceptions"in e&&e.exceptions&&e.exceptions.length>0&&!this.hideReadings?s`<div part="section exceptions"><h3>${this.t("Exceptions")}</h3><ul>${e.exceptions.map(d=>s`<li>${d}</li>`)}</ul></div>`:o}</article>`}renderEffects(e){if(!e.effects||this.hideReadings)return o;let t=[];for(let[r,i]of Object.entries(e.effects))if(typeof i=="string"&&i.length>0)t.push(s`<div><h3>${r}</h3><p>${i}</p></div>`);else if(i&&typeof i=="object")for(let[l,c]of Object.entries(i))typeof c=="string"&&c.length>0&&t.push(s`<div><h3>${l}</h3><p>${c}</p></div>`);return t.length===0?o:s`<div class="effects" part="section effects">${t}</div>`}};ut.endpoints=Ko,ut.styles=[v,B,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}h2,h3,p{margin:0}h2{text-transform:capitalize}.subtype{font-size:var(--roxy-text-sm)}.subtype-label{margin-inline-end:var(--roxy-space-sm)}.badge{font-weight:var(--roxy-weight-bold)}.severity-bar{border-radius:var(--roxy-radius-full);background:var(--roxy-border);block-size:.35lh;inline-size:100%;overflow:hidden}.severity-fill{background:var(--roxy-warning);block-size:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.severity-fill[data-tier="3"]{background:var(--roxy-danger)}@media (prefers-reduced-motion:reduce){.severity-fill{transition:none}}h3{margin-block-end:var(--roxy-space-xs)}ul{font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md)}.effects{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,24ch),1fr));display:grid}.effects p{font-size:var(--roxy-text-sm)}`],y([k({type:String,reflect:true})],ut.prototype,"type",2),ut=y([L("roxy-dosha-card")],ut);var Og=/^\d+(?:[.,]\d+)*(?:\s*-\s*\d+(?:[.,]\d+)*)?$/;function jr(n){if(!n.text)return"";let a=n.chapter==null?"":String(n.chapter),e=n.verse??"",t=a;e&&(t=a?Og.test(e.trim())?`${a}.${e}`:`${a}, ${e}`:e);let r=n.translation?[n.translation,n.year].filter(Boolean).join(" "):"";return[[E(n.text),t].filter(Boolean).join(" "),r,n.basis].filter(Boolean).join(" \xB7 ")}var na=u`.row{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);display:grid}@container (width<=30rem){.row{grid-template-columns:minmax(0,1fr)}}`;var Ig=["vata","pitta","kapha"],Gg={"lagna-sign":"Lagna","moon-sign":"Moon sign","strongest-planet":"Strongest graha"};function Fg(n){return n.split("-").map(D).join("-")}function Bg(n,a){return me(n,(a??"").split(" ").filter(Boolean).map(D))}var ia=class extends f{renderData(a){let e=this.effectiveLang(),t=a.composite;return s`<article class="card" part="card" aria-labelledby="dosha-title"><header class="head" part="header"><h2 id="dosha-title">${this.t("Ayurvedic constitution")}</h2>${t?.type?s`<span class="type">${Fg(t.type)}</span>`:o}</header>${this.renderBar(e,a)}<div class="facts" part="details">${t?.dominant?s`<span><span class="roxy-label">${this.t("Dominant")}</span><b>${D(t.dominant)}</b></span>`:o} ${t?.secondary?s`<span><span class="roxy-label">${this.t("Secondary")}</span><b>${D(t.secondary)}</b></span>`:o} ${a.lagnaSign?s`<span><span class="roxy-label">${this.t("Lagna")}</span><b>${D(a.lagnaSign)}</b></span>`:o} ${a.moonSign?s`<span><span class="roxy-label">${this.t("Moon sign")}</span><b>${D(a.moonSign)}</b></span>`:o}</div>${this.renderFactors(e,a.factors)} ${this.renderRanking(e,a.strengthRanking)} ${this.renderPlanetDoshas(a.planetDoshas)} ${a.summary&&!this.hideReadings?s`<p class="summary" part="section readings">${a.summary}</p>`:o} ${W(e,a.frame,this.translator)} ${a.meta?.disclaimer?s`<p class="disclaimer" part="disclaimer">${a.meta.disclaimer}</p>`:o}</article>`}renderBar(a,e){let t=e.composite,r=Ig.map(l=>({humour:l,value:t?.[l]??0}));return r.reduce((l,c)=>l+c.value,0)<=0?o:s`<div part="chart"><div class="bar" role="img" aria-label="${r.map(l=>`${D(l.humour)} ${te(a,l.value,0)}`).join(", ")}">${r.filter(l=>l.value>0).map(l=>s`<div class="${`seg seg-${l.humour}`}" style="${`flex: ${l.value} 0 0`}"></div>`)}</div><p class="shares">${r.map(l=>s`<span><span class="${`swatch seg-${l.humour}`}"></span>${D(l.humour)} <b>${te(a,l.value,0)}</b></span>`)}</p></div>`}renderFactors(a,e){let t=e??[];return t.length===0?o:s`<section part="section factors"><h3>${this.t("Factors")}</h3><ul class="rows">${t.map(r=>s`<li class="row" part="label-track"><span class="roxy-label">${this.factorLabel(r.id)}</span><div><span>${Bg(a,r.input)}</span> ${r.doshas?.length?s`· ${r.doshas.map(i=>D(i)).join(", ")}`:o} ${typeof r.weight=="number"?s`· <span class="roxy-label">${this.t("Weight")}</span>${$(a,r.weight,2)}`:o} ${this.renderCitation(r.source)}</div></li>`)}</ul></section>`}factorLabel(a){let e=Gg[a??""];return e?this.t(e):E(a??"")}renderCitation(a){let e=jr(a??{});return e?s`<div class="cite"><p><span class="roxy-label">${this.t("Source")}</span>${e}</p>${a?.note?s`<details class="note"><summary>${this.t("Note on the source")}${V()}</summary><p>${a.note}</p></details>`:o}</div>`:o}renderRanking(a,e){let t=e??[];return t.length===0?o:s`<section part="section ranking"><h3>${this.t("Shadbala")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Shadbala")}"><table><thead><tr><th>${this.t("Rank")}</th><th>${this.t("Graha")}</th><th>${this.t("Strength")}</th><th>${this.t("Strong")}</th></tr></thead><tbody>${t.map(r=>s`<tr class="${r.strong?"is-strong":""}"><td>${N(a,r.rank)}</td><td>${r.graha??""}</td><td>${this.t("{{value}} virupas",{value:$(a,r.totalVirupas,2)})}</td><td>${r.strong?this.t("Yes"):this.t("No")}</td></tr>`)}</tbody></table></div></section>`}renderPlanetDoshas(a){let e=a??[];return e.length===0?o:s`<section part="section planet-humours"><h3>${this.t("Planetary humours")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Planetary humours")}"><table><thead><tr><th>${this.t("Graha")}</th><th>${this.t("Humours")}</th><th>${this.t("Dhatu")}</th></tr></thead><tbody>${e.map(t=>s`<tr><td>${t.graha??""}</td><td>${(t.doshas??[]).map(r=>D(r)).join(", ")}</td><td>${[t.dhatu,t.dhatuSanskrit].filter(Boolean).join(" \xB7 ")}</td></tr>`)}</tbody></table></div>${this.renderTableSources(e)}</section>`}renderTableSources(a){let e=new Set;for(let t of a)for(let r of[t.doshaSource,t.dhatuSource]){let i=jr(r??{});i&&e.add(i)}return e.size===0?o:s`<p class="cite"><span class="roxy-label">${this.t("Source")}</span>${[...e].join(" \xB7 ")}</p>`}};ia.endpoints=Uo,ia.styles=[v,B,O,na,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}section>h3{margin-block-end:var(--roxy-space-sm)}.head{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.type{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xl);font-weight:var(--roxy-weight-bold)}.bar{width:100%;min-width:0;border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);block-size:1lh;display:flex;overflow:hidden}.seg{min-width:0}.seg-vata{background:color-mix(in srgb, var(--roxy-info) 45%, var(--roxy-surface))}.seg-pitta{background:color-mix(in srgb, var(--roxy-danger) 45%, var(--roxy-surface))}.seg-kapha{background:color-mix(in srgb, var(--roxy-success) 45%, var(--roxy-surface))}.shares,.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.swatch{block-size:.5lh;inline-size:.5lh;border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.shares b,.facts b{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.facts .roxy-label,.row>div .roxy-label,.cite .roxy-label{margin-inline-end:var(--roxy-space-xs)}.rows{margin:0;padding:0;list-style:none;display:grid}.row{align-items:baseline;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm)}.row:first-child{border-block-start:0;padding-block-start:0}.cite{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:calc(var(--roxy-space-unit) / 2)}.cite .roxy-label{font-size:inherit}.cite .note summary{align-items:center;gap:var(--roxy-space-xs);width:fit-content;color:var(--roxy-secondary);display:flex}.cite .note p{margin-block-start:calc(var(--roxy-space-unit) / 2)}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}tr.is-strong td{font-weight:var(--roxy-weight-bold)}.summary{font-size:var(--roxy-text-sm)}.disclaimer{border-inline-start:var(--roxy-line-thick) solid var(--roxy-border);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);padding-inline-start:var(--roxy-space-md)}`],ia=y([L("roxy-dosha-constitution")],ia);var oa=class extends f{renderData(a){return s`<article class="card" part="card" aria-label="${a.name??this.t("Dream symbol")}"><header class="head" part="header">${a.letter?s`<span class="letter" aria-hidden="true">${a.letter}</span>`:o}<div><p class="roxy-label">${this.t("Dream symbol")}</p>${a.name?s`<h2>${a.name}</h2>`:o}</div></header>${a.meaning?s`<p>${a.meaning}</p>`:o}</article>`}};oa.endpoints=Vo,oa.styles=[v,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{align-items:center;gap:var(--roxy-space-md);display:flex}.letter{border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-full);block-size:2lh;inline-size:2lh;color:var(--roxy-accent-ink);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);text-transform:uppercase;flex:none;justify-content:center;align-items:center;display:inline-flex}`],oa=y([L("roxy-dream-card")],oa);var la=class extends f{constructor(){super(...arguments);this.rowDetail={tag:"roxy-dream-card",path:"dreams/symbols/{id}"};this.listKey="symbols"}renderData(e){let t=e.symbols??[];if(t.length===0)return this.renderEmpty();let r=typeof e.total=="number"?e.total:t.length;return s`<section class="wrap" part="card" aria-label="${this.t("Dream symbols")}"><header class="head" part="header"><h2>${this.t("Dream symbols")}</h2><span class="count">${r===1?this.t("1 symbol"):this.t("{{count}} symbols",{count:r})}</span></header><ul class="grid" part="section symbols">${t.map(i=>s`<li><button type="button" class="result" aria-pressed="${this.openedRowId===i.id?"true":"false"}" @click="${()=>this.pickRow({id:i.id,name:i.name,letter:i.letter})}">${i.letter?s`<span class="letter" aria-hidden="true">${i.letter}</span>`:o} <span class="name">${i.name}</span></button></li>`)}</ul>${this.renderMore()} ${this.openedRow?s`<div class="detail" part="detail">${this.openedRow}</div>`:o}</section>`}};la.endpoints=qo,la.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.count{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.grid{gap:var(--roxy-space-sm);grid-template-columns:repeat(auto-fill,minmax(min(100%,16ch),1fr));margin:0;padding:0;list-style:none;display:grid}.result{align-items:center;gap:var(--roxy-space-sm);width:100%;padding:var(--roxy-space-sm) var(--roxy-space-md);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);text-align:start;cursor:pointer;transition:border-color var(--roxy-motion-duration) var(--roxy-motion-easing);background:0 0;display:flex}.result[aria-pressed=true],.result:hover{border-color:var(--roxy-accent)}.result[aria-pressed=true] .name{color:var(--roxy-accent-ink)}.detail{margin-block-start:var(--roxy-space-md)}.letter{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);text-transform:uppercase;flex:none}.name{font-size:var(--roxy-text-sm)}`],la=y([L("roxy-dream-search")],la);var{I:pw}=$o;var Md=n=>n.strings===void 0;var Hg={},Nd=(n,a=Hg)=>n._$AH=a;var zd=As(class extends gr{constructor(n){if(super(n),n.type!==st.PROPERTY&&n.type!==st.ATTRIBUTE&&n.type!==st.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Md(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[a]){if(a===$e||a===o)return a;let e=n.element,t=n.name;if(n.type===st.PROPERTY){if(a===e[t])return $e}else if(n.type===st.BOOLEAN_ATTRIBUTE){if(!!a===e.hasAttribute(t))return $e}else if(n.type===st.ATTRIBUTE&&e.getAttribute(t)===a+"")return $e;return Nd(n),a}});var ft={accent:"Accent color",afterSunset:"Born after sunset",allowDuplicates:"Allow duplicate cards",allowReversals:"Allow reversed cards",angelDating:"How the name of the day is dated",annualFromYear:"Annual pillars from year",annualYears:"Years of annual pillars",approximateDate:"Approximate date",aspectTypes:"Aspect types",atbashOutput:"AtBash and Albam output",avasthaInfo:"Include avastha details",avoidAnimal:"Avoid clashes with",ayadiText:"Ayadi text family",ayanamsaValue:"Custom ayanamsa value",birthData:"Birth details",birthDate:"Birth date",birthLatitude:"Birth latitude",birthLongitude:"Birth longitude",birthTime:"Birth time",ciphers:"Ciphers to return",colors:"Brand colors",context:"Where you saw it",coordinateSystem:"Coordinate system",correlation:"Correlation constant",count:"How many",currentYear:"Current year",cuts:"Cut corners",dasha:"Dasha lords",datetime:"Date and time",dayBoundary:"Day boundary",depth:"Depth, north to south",directionScheme:"Direction reading",division:"Divisional chart",domainWeights:"Domain weights",door:"Door coordinates",doorPosition:"Door position along the side",doshaClock:"How the dosha periods are cut",endDate:"End date",endDatetime:"End date and time",expression:"Expression number",extensions:"Extended corners",facing:"Facing direction",facingDegrees:"Facing degrees",family:"Yoga family",firstName:"First name",firstNameHebrew:"First name in Hebrew",font:"Typeface",footer:"Footer line",fullName:"Full name",gainHouses:"Gain houses",grid:"Mandala grid",hastaInches:"Length of one hasta in inches",horaryNumber:"Horary number",hourClock:"Hour clock",houseSystem:"House system",id:"ID",include:"Additional bodies",includeMatches:"Include equal value matches",interpretation:"Position meaning",intervalMinutes:"Interval in minutes",isLeapMonth:"Leap month",iso2:"Country code",kua:"Kua number",lang:"Language",latinCiphers:"Also score the Latin ciphers",leapDayPolicy:"Where 29 February falls",letter:"Starting letter",letterAttribution:"Letter attribution reading",lifePath:"Life Path number",limit:"Results per page",lines:"Line pattern",logo:"Logo URL",lossHouses:"Loss houses",lunarDay:"Lunar day",lunarMonth:"Lunar month",lunarYear:"Lunar year",members:"Group members",minSignificance:"Minimum significance",minStrength:"Minimum strength",misparGadol:"Mispar gadol method",modernPlanets:"Include modern planets",moonWindows:"Moon windows",muhurtaText:"Muhurta text",nameHebrew:"Name in Hebrew",natalChart:"Natal chart",nodeType:"Lunar node type",offset:"Results to skip",polygon:"Outline",positions:"Spread positions",primary:"Primary color",q:"Search",question:"Your question",readings:"Include readings",relocationLatitude:"Relocation latitude",relocationLongitude:"Relocation longitude",returnDate:"Return date",returnYear:"Return year",ritucharyaScheme:"Season division",rituZodiac:"Zodiac the season boundaries are measured in",road:"Road side",rulingPlanets:"Ruling planets",scheme:"Karaka scheme",secondName:"Second name",secondNameHebrew:"Second name in Hebrew",sephirotSystem:"Sephirot reading",sign:"Zodiac sign",sign1:"First animal sign",sign2:"Second animal sign",signDoshaScheme:"Sign humour table",significators:"Include KP significators",size:"Paper size",slopeLowDirection:"Direction the ground falls toward",slopeSchool:"Ground level school",soulUrge:"Soul Urge number",spreadName:"Spread name",startDate:"Start date",startDatetime:"Start date and time",strictOrbs:"Use tighter orbs",system:"Avastha system",targetDate:"Target date",targetMonth:"Target month",text:"Word or name",textHebrew:"Hebrew word or name",top:"Top events per window",transitDate:"Transit date",transitTime:"Transit time",transliteration:"Transliteration scheme",treeVariant:"Tree arrangement",type:"Pattern type",vyayaFormula:"Vyaya formula",water:"Standing water direction",weights:"Layer weights",width:"Width, east to west",x:"Distance east",y:"Distance north",yearBearerSystem:"Year Bearer school",yearBoundary:"Year boundary",yearStart:"Wheel year start",zodiac:"Zodiac sign"};var Od={"GET /angel-numbers/numbers/{number}":{number:{path:"/angel-numbers/numbers",limit:50,lang:true}},"GET /astrology/planet-meanings/{id}":{id:{path:"/astrology/planet-meanings",lang:true}},"GET /astrology/signs/{id}":{id:{path:"/astrology/signs",lang:true}},"GET /crystals":{color:{path:"/crystals/colors",lang:true},planet:{path:"/crystals/planets",lang:true}},"GET /crystals/{id}":{id:{path:"/crystals",limit:100,lang:true}},"GET /dreams/symbols":{letter:{path:"/dreams/symbols/letters"}},"GET /dreams/symbols/{id}":{id:{path:"/dreams/symbols",search:"q",limit:50}},"GET /iching/trigrams/{id}":{id:{path:"/iching/trigrams",lang:true}},"GET /tarot/cards/{id}":{id:{path:"/tarot/cards",limit:100,lang:true}}},Id={"GET /tarot/cards":{suit:{field:"arcana",value:"major"}}};var Oe=(n,a)=>`${n}.${a}`;function an(n){let a=/^(.+)\.(\d+)$/.exec(n);return a?{key:a[1],index:Number(a[2])}:null}function rn(n,a=qn,e=t=>ft[t]??E(t)){let t=an(n);return t?a("{{group}} {{n}}",{group:e(t.key),n:t.index+1}):a(E(n))}function Fd(n,a){let e=a.key??a.name;if(Hd(e))return nr(n,e);if(!a.label)return nr(n,a.name);let t=Object.keys(ft).find(r=>ft[r]===a.label);return Yn(n,a.label)??(t?nr(n,t):void 0)}function Bd(n,a,e){let t=Oe(a,0);return n.filter(r=>r.group===t).map(r=>({...r,key:`${Oe(a,e)}.${r.name}`,group:Oe(a,e)}))}function Ei(n){return n.length<=(sn(n)?30:12)?"tiles":"select"}function sn(n){return n.every(a=>a.length<=2)}var jg=["format","branding","readings"],Kg=["latitude","longitude","timezone"],Gd=["latitude","longitude"];function Hd(n){let a=n.match(/^(.+?)(Latitude|Longitude)$/);return a?{group:a[1],leaf:a[2].toLowerCase()}:null}var Ug=re.map(n=>n.toLowerCase());function ca(n,a){if(n){if("$ref"in n&&n.$ref){let e=n.$ref.split("/").pop();return e?a[e]:void 0}return n}}function jd(n){let a=n.anyOf??n.oneOf;return!a||a.length===0?n:a.find(e=>Array.isArray(e.enum))??a.find(e=>Ti(e)&&Ti(e)!=="null")??a[0]??n}function Ti(n){if(typeof n.type=="string")return n.type;if(!Array.isArray(n.type))return;let a=n.type.filter(e=>e!=="null");return a.length===1?a[0]:void 0}function Vg(n){let a=jd(n),e=Ti(a);return Array.isArray(a.enum)?Ei(a.enum):e==="boolean"?"toggle":a.format==="date"?"date":a.format==="time"?"time":a.format==="date-time"?"datetime":e==="integer"||e==="number"?"number":e==="string"?"text":e==="array"?"array":null}function Kd(n){if(n.length!==12)return false;let a=new Set(n.map(e=>e.toLowerCase()));return Ug.every(e=>a.has(e))}function tn(n,a,e){let t=jd(a);return{key:e.key,name:n,group:e.group,inQuery:e.inQuery,kind:Vg(a)??"text",required:e.required,description:t.description??a.description,enum:t.enum,min:t.minimum??t.exclusiveMinimum,max:t.maximum??t.exclusiveMaximum,default:a.default??t.default,example:a.example??t.example}}function Ci(n){return new Set([...n.required??[],...n["x-required-any-of"]?.[0]??[]])}function Ud(n,a,e,t=n.requestBody?"POST":"GET"){let r=[],i=[],l=false,c,d=n.requestBody?.content?.["application/json"]?.schema,p=ca(d,a),h=p?.["x-required-any-of"],m=(n["x-request-cost"]??1)>1;if(p?.properties){let g=Ci(p);for(let[b,w]of Object.entries(p.properties)){if(m&&jg.includes(b))continue;let S=ca(w,a)??{},R=S.type==="array"?ca(S.items,a):void 0;if(R?.type==="object"&&R.properties){let _=Math.max(1,S.minItems??1),q=Ci(R);i.push({key:b,min:_,max:S.maxItems??_});for(let le=0;le<_;le++)for(let[Le,je]of Object.entries(R.properties)){let et=ca(je,a)??{};r.push(tn(Le,et,{key:`${Oe(b,le)}.${Le}`,group:Oe(b,le),required:g.has(b)&&q.has(Le)}))}}else if(S.type==="object"&&S.properties){let _=Ci(S);for(let[q,le]of Object.entries(S.properties)){let Le=ca(le,a)??{};Le.type==="array"&&ca(Le.items,a)?.type==="object"||r.push(tn(q,Le,{key:`${b}.${q}`,group:b,required:g.has(b)&&_.has(q)}))}}else{let _=Hd(b),q=tn(_?.leaf??b,S,{key:b,group:_?.group,required:g.has(b)});_&&(q.label=`${E(_.group)} ${_.leaf}`),r.push(q)}}}for(let g of n.parameters??[]){if(g.in!=="path"&&g.in!=="query")continue;if(g.name==="lang"&&g.in==="query"){l=true,c=ca(g.schema,a)?.enum?.filter(S=>typeof S=="string");continue}let b=ca(g.schema,a)??{},w=tn(g.name,b,{key:g.name,required:!!g.required,inQuery:g.in==="query"});if(g.in==="path"&&w.enum&&/^(id|identifier|slug)$/i.test(ft[w.name]??E(w.name))){let S=/^([A-Za-z][A-Za-z -]*?)\s+(?:id|identifier|slug)\b/i.exec(g.description??w.description??"")?.[1]?.trim();S&&(w.label=S)}r.push(w)}for(let g of r)!g.group&&!g.label&&r.some(b=>b.group&&b.name===g.name)&&(g.label=qg(g));return Ai({title:Yg(n.summary,e),fields:r,hasLang:l,...c?.length?{langs:c}:{},...i.length>0?{repeats:i}:{},...h?{requiredAnyOf:h}:{}},t,e)}function qg(n){let e=(ft[n.name]??E(n.name)).toLowerCase().replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^(\\p{L}+) ${e}\\b`,"iu").exec(n.description??"")?.[1];return t?ft[t.toLowerCase()+n.name.replace(/^./,r=>r.toUpperCase())]:void 0}function Ai(n,a,e){let t=`${a.toUpperCase()} /${e.replace(/^\//,"")}`,r=Od[t]??{},i=Id[t]??{},l=n.fields.map(g=>{let b={...g};return delete b.role,delete b.city,delete b.viewerZone,delete b.moment,delete b.fold,{...b,...r[g.key]&&{source:r[g.key]},...i[g.key]&&{disabledWhen:i[g.key]}}}),c=[...new Set(l.map(g=>g.group))].map(g=>g===void 0?{}:{key:g,label:rn(g)}),d=c.filter(g=>Gd.every(b=>l.some(w=>w.group===g.key&&w.name===b)));for(let[g,b]of d.entries()){let w=l.filter(R=>R.group===b.key),S=w.find(R=>R.name==="timezone")??(g===0?l.find(R=>!R.group&&R.name==="timezone"):void 0);b.location={fields:[...w.filter(R=>Gd.includes(R.name)).map(R=>R.key),...S?[S.key]:[]],required:w.some(R=>Kg.includes(R.name)&&R.required)}}for(let g of l)g.name==="seed"?g.role="seed":(g.name==="limit"||g.name==="offset")&&!g.required?g.role="hidden-default":d.some(b=>b.location?.fields.includes(g.key))?g.role="location":g.name==="timezone"&&(g.city=true,!g.group&&!g.required&&(g.viewerZone=true));let p=c.filter(g=>g.key!==void 0&&(g.location||l.some(b=>b.group===g.key&&b.required))),h=l.some(g=>!g.group&&!g.role&&g.required)||p.length>0||d.some(g=>g.key===void 0);for(let g of c)g.key!==void 0&&h&&!p.includes(g)&&(g.fold=true);let m=g=>p.length>0&&g.default===void 0&&(g.kind==="date"||g.kind==="time"||g.kind==="datetime");for(let g of l)g.group?c.find(b=>b.key===g.group)?.fold&&(g.fold=true):!g.role&&h&&!g.required?m(g)?g.moment=true:g.fold=true:!g.role&&!h&&g.default!==void 0&&(g.fold=true);return{...n,fields:l,groups:c,opensOnLoad:Wg(n,a)}}function Vd(n,a){let e=n.filter(t=>t.moment);return e.some(t=>t.kind==="time"||t.kind==="datetime")&&e.every(t=>a[t.key]===void 0||a[t.key]==="")}function Yg(n,a){let e=n?.split(" - ")[0]?.trim();return e||E(a.split("/").pop()??"")}function Wg(n,a){return a.toUpperCase()==="GET"&&!n.fields.some(e=>e.required)}function qd(n,a=[]){if(a.some(t=>t.name==="limit"||t.name==="offset"))return"Search";let e=n.toLowerCase();return/compat|synastry|guna|connection|penta|composite/.test(e)?"Compare":/\bcast\b|\/draw|iching|hexagram|tarot/.test(e)?"Cast":/horoscope|dream|angel|nakshatra|crystal|meaning|reference/.test(e)?"Get reading":"Generate"}function Yd(n,a){let e=ms(n,a);return e&&`${e}/schemas`}function Wd(n,a){let e=a.replace(/^\//,"").replace(/[{}]/g,"").replace(/\//g,"-");return`${n.toLowerCase()}--${e}.json`}function Zg(n){if(Array.isArray(n))return n;if(!n||typeof n!="object")return null;let a=Object.values(n),e=a.find(Array.isArray);return e||(a.find(r=>!!r&&typeof r=="object"&&Object.values(r).every(i=>typeof i=="number"))??null)}function Di(n,a="id"){let e=Zg(n);if(!e)return[];if(!Array.isArray(e)){let r=Object.keys(e),i=r.length>0&&r.every(c=>/^[a-z]$/.test(c));return(i?[..."abcdefghijklmnopqrstuvwxyz"]:r).map(c=>({value:c,label:i?c.toUpperCase():c,disabled:!e[c]}))}let t=[];for(let r of e){if(typeof r=="string"){t.push({value:r,label:r});continue}if(!r||typeof r!="object")continue;let i=r,l=i.id??i[a]??i.number;if(l==null)continue;let c=String(l),d=i.name??i.english;t.push({value:c,label:typeof d=="string"?d:c})}return t}function Zd(n){let a=n?.total;return typeof a=="number"?a:void 0}var nn=u`.spinner{inset-inline-end:calc(var(--roxy-space-unit) * 3);border:var(--roxy-line-thick) solid var(--roxy-muted);border-radius:var(--roxy-radius-full);border-top-color:#0000;block-size:.6lh;inline-size:.6lh;animation:.7s linear infinite roxy-spin;position:absolute;top:50%;transform:translateY(-50%)}@keyframes roxy-spin{to{transform:translateY(-50%)rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation:none}}.results{z-index:50;top:calc(100% + var(--roxy-space-xs));padding:var(--roxy-space-xs);background:var(--roxy-bg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);box-shadow:var(--roxy-shadow-md);max-block-size:15lh;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing);margin:0;list-style:none;position:absolute;left:0;right:0;overflow-y:auto}.option{align-items:center;gap:var(--roxy-space-sm);inline-size:100%;min-block-size:var(--roxy-touch);padding:var(--roxy-space-sm) var(--roxy-space-md);border-radius:var(--roxy-radius-sm);text-align:start;font-size:var(--roxy-text-sm);color:var(--roxy-fg);cursor:pointer;transition:background-color var(--roxy-motion-duration);background:0 0;border:0;display:flex}.option:hover,.option[aria-selected=true]{background:color-mix(in srgb, var(--roxy-accent) 10%, transparent)}.empty{padding:var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-sm)}`;function on(n,a){let e,t=((...r)=>{e&&clearTimeout(e),e=setTimeout(()=>{e=void 0,n(...r)},a)});return t.cancel=()=>{e&&(clearTimeout(e),e=void 0)},t}var Xg=10,Jg=10,Pi=new Map;function Xd(n,a,e={}){return{...n.limit?{limit:n.limit}:{},...n.lang&&a?{lang:a}:{},...e}}function Mi(n,a,e,t){let r=JSON.stringify([n.submitUrl??n.baseUrl,a.path,e,t]),i=Pi.get(r);return i||(i=Qg(n,a,e,t).catch(l=>{throw Pi.delete(r),l}),Pi.set(r,i)),i}async function Qg(n,a,e,t){let r=[];for(let i=0;i<Jg;i++){let l=await It(n,{path:a.path,method:"GET",query:Xd(a,t,r.length?{offset:r.length}:{})}),c=Di(l,e);r.push(...c);let d=Zd(l);if(!a.limit||d===void 0||r.length>=d||!c.length)break}return r}var _i=n=>n.normalize("NFD").replace(new RegExp("\\p{M}","gu"),"").toLowerCase(),ln=class{constructor(a,e,t,r,i){this.host=a;this.source=e;this.field=t;this.context=r;this.onPick=i;this.query="";this.options=[];this.open=false;this.highlight=-1;this.loading=false;this.error=null;this.search=on(a2=>{this.searchServer(a2)},250);a.addController(this)}hostDisconnected(){this.search.cancel(),this.abort?.abort()}input(a){this.query=a,this.error=null,this.source.search?a.trim().length<2?this.close():this.search(a):this.filter(a),this.host.requestUpdate()}focus(){!this.source.search&&!this.open&&this.filter(this.query)}close(){this.open=false,this.highlight=-1,this.host.requestUpdate()}pick(a){this.query=a.label,this.close(),this.onPick(a)}keydown(a){let e=this.options.length;if(a.key==="Escape"){this.close();return}if(a.key==="ArrowDown"&&!this.open){a.preventDefault(),this.input(this.query);return}if(!(!this.open||e===0)){if(a.key==="ArrowDown")this.highlight=(this.highlight+1)%e;else if(a.key==="ArrowUp")this.highlight=(this.highlight-1+e)%e;else if(a.key==="Home")this.highlight=0;else if(a.key==="End")this.highlight=e-1;else if(a.key==="Enter"){let t=this.options[this.highlight]??this.options[0];t&&this.pick(t)}else return;a.preventDefault(),this.host.requestUpdate()}}async filter(a){let{route:e,lang:t}=this.context();this.loading=true,this.host.requestUpdate();try{let r=await Mi(e,this.source,this.field,t);if(a!==this.query)return;let i=_i(a.trim());this.show(r.filter(l=>_i(l.label).includes(i)||_i(l.value).includes(i)))}catch(r){this.fail(r)}finally{this.loading=false,this.host.requestUpdate()}}async searchServer(a){let{route:e,lang:t}=this.context(),r=this.source.search;this.abort?.abort();let i=new AbortController;this.abort=i,this.loading=true,this.host.requestUpdate();try{let l=await It(e,{path:this.source.path,method:"GET",query:Xd({...this.source,limit:Xg},t,{[r]:a})},i.signal);if(i.signal.aborted)return;this.show(Di(l,this.field))}catch(l){if(i.signal.aborted)return;this.fail(l)}finally{this.abort===i&&(this.abort=void 0),i.signal.aborted||(this.loading=false,this.host.requestUpdate())}}show(a){this.options=a,this.open=true,this.highlight=a.length?0:-1}fail(a){this.options=[],this.open=false,this.error=a instanceof Error?a.message:String(a)}};function Jd(n,a,e,t={}){let r=`${a}-listbox`;return s`<div class="picker"><input id="${a}" type="text" role="combobox" aria-expanded="${n.open?"true":"false"}" aria-controls="${r}" aria-autocomplete="list" aria-labelledby="${U(t.labelledby)}" aria-describedby="${U(t.describedby)}" aria-invalid="${U(t.invalid?"true":void 0)}" aria-activedescendant="${n.open&&n.highlight>=0?`${a}-opt-${n.highlight}`:""}" autocomplete="off" placeholder="${e.placeholder}" .value="${n.query}" @input="${i=>n.input(i.target.value)}" @keydown="${i=>n.keydown(i)}" @focus="${()=>n.focus()}" @blur="${()=>n.close()}"> ${n.loading?s`<span class="spinner" role="status" aria-label="${e.loading}"></span>`:o} ${n.open?s`<ul id="${r}" class="results" role="listbox">${n.options.length===0?s`<li class="empty" role="status">${e.empty}</li>`:n.options.map((i,l)=>s`<li id="${`${a}-opt-${l}`}" class="option" role="option" aria-selected="${n.highlight===l?"true":"false"}" @mousedown="${c=>c.preventDefault()}" @click="${()=>n.pick(i)}">${i.label}</li>`)}</ul>`:o}</div>${n.error?s`<small class="field-error" role="alert">${n.error}</small>`:o}`}var Qd=[nn,u`.picker{position:relative}`];var ry={};var ep=`${lr}/openapi.json`,tp=Yd(sr,globalThis.document?.currentScript?.src||ry.url),Ni=new Map,cn=class extends Error{constructor(e){super(`HTTP ${e}`);this.status=e}},dn=class extends Error{constructor(e,t){super(`Endpoint ${e} ${t} not found in OpenAPI spec`);this.method=e;this.path=t}};async function ey(n){let a=Ni.get(n);return a||(a=fetch(n).then(async e=>{if(!e.ok)throw new cn(e.status);return await e.json()}).catch(e=>{throw Ni.delete(n),e}),Ni.set(n,a)),a}function ty(){return globalThis.crypto?.randomUUID?.()??Math.random().toString(36).slice(2)}var ap=n=>/\bbirth/i.test(n?.description??""),rp=n=>n.key===`${n.group}.${n.name}`;function ay(n){let a=n.trim();if(!a)return[];try{let e=JSON.parse(a);if(Array.isArray(e))return e}catch{}return a.split(",").map(e=>e.trim()).filter(Boolean)}var ee=class extends Ot{constructor(){super(...arguments);this.endpoint="vedic-astrology/birth-chart";this.method="POST";this.specUrl="";this.submitLabel="";this.serverIssues=null;this.autoload=false;this.fullPages=false;this.choices={};this.pickers=new Map;this.clearedIssues=new Set;this.fields=[];this.groups=[];this.modelOpensOnLoad=false;this.repeats=[];this.formTitle="";this.hasLang=false;this.values={};this.loaded=false;this.specError=null;this.validationErrors=[];this.retryLoadSchema=()=>{this.loaded=false,this.specError=null,this.loadSchema()};this.onSubmit=e=>{e.preventDefault(),this.submit()}}connectedCallback(){super.connectedCallback(),this.loadSchema()}async loadSchema(){this.specError=null;try{this.applyModel(await this.resolveModel())}catch(e){this.specError=this.specErrorMessage(e),this.loaded=true,this.dispatchEvent(new CustomEvent("roxy-spec-error",{detail:{url:this.specUrl||ep,message:e instanceof Error?e.message:String(e)},bubbles:true,composed:true}))}}specErrorMessage(e){return e instanceof cn?this.t("HTTP error {{status}}",{status:e.status}):e instanceof dn?this.t("Endpoint {{method}} {{path}} not found in OpenAPI spec",{method:e.method,path:e.path}):e instanceof Error?e.message:String(e)}async resolveModel(){return this.specUrl?this.modelFromSpec(this.specUrl):await this.tryLoadSlice()??this.modelFromSpec(ep)}async modelFromSpec(e){let t=await ey(e),r=`/${this.endpoint.replace(/^\//,"")}`,i=t.paths?.[r]?.[this.method.toLowerCase()];if(!i)throw new dn(this.method,r);return Ud(i,t.components?.schemas??{},this.endpoint,this.method)}async tryLoadSlice(){if(!tp)return null;try{let e=await fetch(`${tp}/${Wd(this.method,this.endpoint)}`);return e.ok?await e.json():null}catch{return null}}applyModel(e){(!e.groups||e.opensOnLoad===void 0)&&(e=Ai(e,this.method,this.endpoint)),this.fields=e.fields,this.groups=e.groups??[],this.modelOpensOnLoad=e.opensOnLoad??false,this.repeats=e.repeats??[],this.formTitle=e.title,this.hasLang=e.hasLang,this.langs=e.langs;let t={};for(let r of e.fields){let i=r.viewerZone?void 0:this.fullPages&&r.name==="limit"&&this.roleOf(r)==="hidden-default"?r.max??r.default:r.default;i!==void 0&&(t[r.key]=i);let l=r.group&&rp(r)?this.initialValues?.[r.group]?.[r.name]:this.initialValues?.[r.key];l!==void 0&&(t[r.key]=l)}this.values=this.withoutDisabled(t),this.loaded=true,this.loadChoices(),this.autoload&&this.opensOnLoad&&Zn(this.route)&&this.updateComplete.then(()=>this.submit())}get route(){return this.apiRoute??{publishableKey:this.publishableKey}}loadChoices(){for(let t of this.pickers.values())this.removeController(t);if(this.pickers.clear(),!Zn(this.route))return;let e=()=>({route:this.route,lang:this.requestLang()});for(let t of this.fields)if(t.source){if(t.required){let r=new ln(this,t.source,t.name,e,i=>this.pickChoice(t,i.value));r.query=String(this.values[t.key]??""),this.pickers.set(t.key,r);continue}this.choices={...this.choices,[t.key]:"loading"},Mi(this.route,t.source,t.name,this.requestLang()).then(r=>{this.choices={...this.choices,[t.key]:r}},()=>{let{[t.key]:r,...i}=this.choices;this.choices=i})}}setValue(e,t){this.setValues({[e]:t})}setValues(e){this.values=this.withoutDisabled({...this.values,...e});let t=Object.keys(e).filter(r=>this.serverIssues?.some(i=>i.path===r));t.length&&(this.clearedIssues=new Set([...this.clearedIssues,...t]))}isDisabled(e,t=this.values){let r=e.disabledWhen;return!!r&&t[r.field]===r.value}withoutDisabled(e){for(let t of this.fields)this.isDisabled(t,e)&&(e[t.key]=void 0);return e}willUpdate(e){e.has("serverIssues")&&(this.clearedIssues=new Set);let t=e.has("publishableKey")?Va(this.publishableKey):void 0;t&&ir(this,t,{warn:true})}liveIssues(){return(this.serverIssues??[]).filter(e=>!this.clearedIssues.has(e.path))}issueFor(e){return this.liveIssues().find(t=>t.path===e.key)}cityIssues(e){return this.liveIssues().filter(t=>{let r=this.fields.find(i=>i.key===t.path);return!!r&&this.roleOf(r)==="location"&&this.cityGroup(r)===e})}issuesForGroup(e){return this.liveIssues().filter(t=>t.path===e)}fieldLabel(e){return this.roleOf(e)==="location"||e.city?this.locationLabel(this.cityGroup(e)):e.group?`${this.groupName(e.group)} ${this.fieldText(e)}`:this.fieldText(e)}issueLines(e){return e.map(t=>s`<small part="field-error" class="field-error" role="alert">${t.message}</small>`)}fieldIssue(e){let t=this.issueFor(e);return t?s`<small part="field-error" class="field-error" id="${`roxy-form-${e.key}-error`}" role="alert">${t.message}</small>`:o}renderIssueSummary(){let e=this.liveIssues();if(e.length===0)return o;let t=r=>{let i=this.fields.find(c=>c.key===r);if(i)return this.fieldLabel(i);let l=this.groupKeys().find(c=>c===r);return l?this.groupName(l):this.fieldText({name:r.split(".")[0]??r})};return s`<div part="validation-error" class="validation-error" role="alert">${e.map(r=>s`<div><strong>${t(r.path)}</strong> ${r.message}</div>`)}</div>`}roleOf(e){return e.role??"normal"}isRendered(e){return this.roleOf(e)==="normal"}groupKeys(){return this.groups.map(e=>e.key)}groupHasLocation(e){return!!this.groups.find(t=>t.key===e)?.location}cityGroup(e){return this.groups.find(t=>t.location?.fields.includes(e.key))?.key??e.group}placeField(e){let t=this.fields.filter(r=>r.group===e);return t.find(r=>r.name==="latitude")??t.find(r=>r.name==="timezone")}locationRequired(e){return this.groups.find(t=>t.key===e)?.location?.required??false}get soleChoice(){if(this.groupKeys().some(r=>this.groupHasLocation(r))||this.groupKeys().some(r=>r!==void 0))return null;let e=this.fields.filter(r=>r.required&&this.isRendered(r)),t=e[0];return e.length!==1||!t?null:t.kind==="tiles"||t.kind==="select"||this.pickers.has(t.key)?t:null}get opensOnLoad(){return this.modelOpensOnLoad}isFilter(e){return this.opensOnLoad&&!e.required&&!!(e.enum||e.source)}get selfSubmits(){if(this.soleChoice)return true;if(!this.opensOnLoad)return false;let e=this.fields.filter(t=>this.isRendered(t));return e.length>0&&e.every(t=>this.isFilter(t))}choiceKind(e){let t=this.choicesOf(e).map(r=>r.value);return this.isFilter(e)&&!sn(t)?"select":this.choices[e.key]?Ei(t):e.kind}choicesOf(e){let t=this.choices[e.key];return Array.isArray(t)?t:(e.enum??[]).map(r=>({value:r,label:this.optionText(e.name,r)}))}effectiveSubmitLabel(){return this.submitLabel?this.submitLabel:Vd(this.fields,this.values)?this.t("Show right now"):this.t(qd(this.endpoint,this.fields))}requestLang(e){return ps(this,e)}fieldText(e){let t=this.requestLang();return e.label?Fd(t,e)??e.label:X(t,e.name,ft[e.name])}optionText(e,t){return j(this.requestLang(),e,t)}onLocationFor(e){return t=>{let r=this.groups.find(l=>l.key===e)?.location?.fields??[],i={};for(let l of r){let c=this.fields.find(d=>d.key===l)?.name;c&&(i[l]=t[c])}this.setValues(i)}}chooseOption(e,t){if(this.isFilter(e)){this.setFilter(e,this.values[e.key]===t?"":t),this.submit();return}this.pickChoice(e,t)}pickChoice(e,t){this.setValue(e.key,t),this.resend()}resend(){let e=this.soleChoice;e&&this.values[e.key]&&this.submit()}setFilter(e,t){let r={[e.key]:t};for(let i of this.fields)i!==e&&(this.isFilter(i)||this.opensOnLoad&&i.kind==="text"&&this.isRendered(i))&&(r[i.key]=void 0);this.setValues(r)}onTilesKeyDown(e){return t=>{let r=this.choicesOf(e).filter(h=>!h.disabled).map(h=>h.value);if(r.length===0)return;let i=r.indexOf(this.values[e.key]),l;if(t.key==="Home")l=0;else if(t.key==="End")l=r.length-1;else if(t.key==="ArrowRight"||t.key==="ArrowDown")l=i===-1?0:(i+1)%r.length;else if(t.key==="ArrowLeft"||t.key==="ArrowUp")l=i===-1?r.length-1:(i-1+r.length)%r.length;else return;t.preventDefault();let c=r[l];if(c===void 0)return;this.chooseOption(e,c);let d=t.currentTarget,p=this.choicesOf(e).findIndex(h=>h.value===c);requestAnimationFrame(()=>d.querySelector(`[data-tile='${p}']`)?.focus())}}submit(){let e=this.collectMissing();if(e.keys.length>0){this.validationErrors=e.labels,this.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{missing:e.keys},bubbles:true,composed:true}));return}this.validationErrors=[],this.clearedIssues=new Set((this.serverIssues??[]).map(l=>l.path));let t={};for(let l of this.fields){let c=this.values[l.key];if(l.name==="seed"&&(c===void 0||c==="")&&(c=ty()),l.viewerZone&&(c===void 0||c==="")&&(c=Cc()??l.default),c===void 0||c==="")continue;l.kind==="array"&&typeof c=="string"&&(c=ay(c));let d=l.group?an(l.group):null;if(d){let p=t[d.key]??[],h=p[d.index]??{};h[l.name]=c,p[d.index]=h,t[d.key]=p}else if(l.group&&rp(l)){let p=t[l.group]??{};p[l.name]=c,t[l.group]=p}else t[l.key]=c}let r=this.fields.filter(l=>l.inQuery).map(l=>l.name),i=this.requestLang(this.langs);this.hasLang&&i&&(t.lang=i,r.push("lang")),this.dispatchEvent(new CustomEvent("roxy-submit",{detail:{endpoint:this.endpoint,values:t,queryKeys:r,sticky:this.soleChoice!=null||this.opensOnLoad},bubbles:true,composed:true}))}collectMissing(){let e=[],t=[],r=new Set;for(let i of this.fields){if(!i.required)continue;let l=this.roleOf(i)==="location";if(!this.isRendered(i)&&!l)continue;let c=this.values[i.key];if(!(c!==void 0&&c!=="")){if(e.push(i.key),l){r.add(this.cityGroup(i));continue}t.push(this.fieldLabel(i))}}for(let i of r)t.push(this.locationLabel(i));return{keys:e,labels:t}}get readsEnglish(){return Ul(this.effectiveLang())}renderTitle(){return this.readsEnglish?s`<h2 part="title" class="title" id="roxy-form-title">${this.formTitle}</h2>`:o}reqMark(e){return e.required?s`<span class="req" aria-hidden="true">*</span>`:o}description(e){if(!e.description||!this.readsEnglish)return o;if(e.description.length<=120)return s`<small part="hint" class="help">${e.description}</small>`;let t=e.description.split(". ")[0]??e.description;return s`<details part="hint" class="help-details"><summary><span class="help-lead">${t}</span>${V()}</summary><small class="help help-full">${e.description}</small></details>`}renderTiles(e){let t=`roxy-form-${e.key}-label`,r=!!e.enum&&Kd(e.enum),i=this.choicesOf(e),l=sn(i.map(p=>p.value)),c=i.findIndex(p=>p.value===this.values[e.key]),d=c===-1?i.findIndex(p=>!p.disabled):c;return s`<div class="field tiles-field"><span class="label" id="${t}">${this.fieldText(e)}${this.reqMark(e)}</span><div class="${l?"tiles narrow":"tiles"}" role="radiogroup" aria-labelledby="${t}" @keydown="${this.onTilesKeyDown(e)}">${i.map((p,h)=>{let m=this.values[e.key]===p.value,g=r?z(p.value):void 0;return s`<button type="button" class="tile" role="radio" data-tile="${h}" aria-checked="${m?"true":"false"}" tabindex="${h===d?"0":"-1"}" ?disabled="${!!p.disabled||this.isDisabled(e)}" @click="${()=>this.chooseOption(e,p.value)}">${g?s`<span class="tile-glyph roxy-glyph" aria-hidden="true">${g}</span>`:o} <span class="tile-label">${p.label}</span></button>`})}</div>${this.description(e)} ${this.fieldIssue(e)}</div>`}renderSelect(e){let t=`roxy-form-${e.key}`;return s`<div part="field" class="field"><label for="${t}">${this.fieldText(e)}${this.reqMark(e)}</label> <select id="${t}" ?required="${e.required}" ?disabled="${this.isDisabled(e)}" aria-invalid="${U(this.issueFor(e)?"true":void 0)}" aria-describedby="${U(this.issueFor(e)?`${t}-error`:void 0)}" .value="${zd(this.values[e.key]??"")}" @change="${r=>this.chooseOption(e,r.target.value)}"><option value="">${this.t("Choose")}</option>${this.choicesOf(e).map(r=>s`<option value="${r.value}" ?selected="${this.values[e.key]===r.value}" ?disabled="${!!r.disabled}">${r.label}</option>`)}</select> ${this.description(e)} ${this.fieldIssue(e)}</div>`}renderPickerField(e,t){let r=`roxy-form-${e.key}`,i=this.soleChoice?.key===e.key&&this.readsEnglish,l=this.issueFor(e);return s`<div part="field" class="field">${i?o:s`<label for="${r}">${this.fieldText(e)}${this.reqMark(e)}</label>`} ${Jd(t,r,{placeholder:this.t("Type to search"),empty:this.t("{{count}} matches",{count:0}),loading:this.t("Loading")},{labelledby:i?"roxy-form-title":void 0,describedby:l?`${r}-error`:void 0,invalid:!!l})} ${this.fieldIssue(e)}</div>`}renderToggle(e){let t=`roxy-form-${e.key}`,r=this.values[e.key]===true;return s`<div part="field" class="field"><div class="toggle-row"><button type="button" id="${t}" class="toggle" role="switch" aria-checked="${r?"true":"false"}" @click="${()=>this.pickChoice(e,!r)}"><span class="knob"></span></button> <label class="toggle-label" for="${t}">${this.fieldText(e)}${this.reqMark(e)}</label></div>${this.description(e)} ${this.fieldIssue(e)}</div>`}renderInput(e){let t=`roxy-form-${e.key}`,r=e.kind==="datetime"?"datetime-local":e.kind==="number"?"number":e.kind,i=e.example!=null?String(e.example):"",l=e.kind==="array"?this.t("Comma separated"):this.readsEnglish||!new RegExp("\\p{L}","u").test(i)?i:"";return s`<div part="field" class="field"><label for="${t}">${this.fieldText(e)}${this.reqMark(e)}</label> <input id="${t}" type="${e.kind==="array"?"text":r}" ?required="${e.required}" ?disabled="${this.isDisabled(e)}" aria-invalid="${U(this.issueFor(e)?"true":void 0)}" aria-describedby="${U(this.issueFor(e)?`${t}-error`:void 0)}" min="${U(e.min)}" max="${U(e.max)}" step="${e.kind==="number"?"any":o}" placeholder="${l||o}" .value="${this.values[e.key]??""}" @input="${c=>{let d=this.coerce(e.kind,c.target.value);this.opensOnLoad&&e.kind==="text"?this.setFilter(e,d):this.setValue(e.key,d)}}" @change="${()=>this.resend()}"> ${this.description(e)} ${this.fieldIssue(e)}</div>`}renderField(e){if(e.city)return this.renderTimezoneCity(e);let t=this.pickers.get(e.key);if(t)return this.renderPickerField(e,t);let r=this.choices[e.key];return r==="loading"?s`<div class="field"><div class="roxy-skeleton field-skeleton" aria-label="${this.t("Loading")}" role="status"></div></div>`:r||e.kind==="tiles"||e.kind==="select"?this.choiceKind(e)==="tiles"?this.renderTiles(e):this.renderSelect(e):e.kind==="toggle"?this.renderToggle(e):this.renderInput(e)}groupName(e){return rn(e,(t,r)=>this.t(t,r),t=>this.fieldText({name:t}))}repeatCount(e){return new Set(this.fields.map(t=>t.group&&an(t.group)).filter(t=>t&&t.key===e).map(t=>t.index)).size}addRecord(e){let t=this.repeatCount(e),r=Bd(this.fields,e,t),i=this.groups.find(c=>c.key===Oe(e,0));if(i){let c=d=>d.replace(`${Oe(e,0)}.`,`${Oe(e,t)}.`);this.groups=[...this.groups,{...i,key:Oe(e,t),label:rn(Oe(e,t)),...i.location&&{location:{...i.location,fields:i.location.fields.map(c)}}}]}let l={...this.values};for(let c of r)c.default!==void 0&&(l[c.key]=c.default);this.values=l,this.fields=[...this.fields,...r]}removeRecord(e){let t=Oe(e,this.repeatCount(e)-1);this.fields=this.fields.filter(i=>i.group!==t),this.groups=this.groups.filter(i=>i.key!==t);let r={...this.values};for(let i of Object.keys(r))i.startsWith(`${t}.`)&&delete r[i];this.values=r}repeatControls(e){let t=this.repeatCount(e.key);return e.max<=e.min?o:s`<div class="repeat-controls">${t<e.max?s`<button type="button" class="repeat-btn" @click="${()=>this.addRecord(e.key)}"><span aria-hidden="true">+</span> ${this.t("Add")}</button>`:o} ${t>e.min?s`<button type="button" class="repeat-btn" @click="${()=>this.removeRecord(e.key)}"><span aria-hidden="true">−</span> ${this.t("Remove")}</button>`:o}</div>`}locationLabel(e){return e?this.t("{{group}} location",{group:this.groupName(e)}):ap(this.placeField(e))?this.t("Birth location"):this.t("Location")}locationBlock(e){return s`<div class="location-block"><label>${this.locationLabel(e)}${this.locationRequired(e)?s`<span class="req" aria-hidden="true">*</span>`:o}</label> ${this.citySearch(e,this.onLocationFor(e))} ${this.issueLines(this.cityIssues(e))}</div>`}renderTimezoneCity(e){return s`<div part="field" class="field location-block"><label>${this.locationLabel(e.group)}${this.reqMark(e)}</label> ${this.citySearch(e.group,t=>this.pickChoice(e,t.timezone))} ${this.fieldIssue(e)}</div>`}citySearch(e,t){let r=e?this.t("{{group}} city",{group:this.groupName(e)}):ap(this.placeField(e))?this.t("City of birth"):void 0;return s`<roxy-location-search endpoint="${U(this.locationUrl||void 0)}" publishable-key="${U(this.publishableKey)}" .submitUrl="${this.route.submitUrl}" .submitContext="${this.route.submitContext}" lang="${U(this.effectiveLang())}" placeholder="${U(r)}" @roxy-location-select="${i=>t(i.detail)}"></roxy-location-search><small class="help">${this.t("Type a city, then pick it from the list.")}</small>`}groupCard(e){let t=this.fields.filter(r=>r.group===e&&this.isRendered(r));return s`<fieldset part="group" class="person-group"><legend>${this.groupName(e)}</legend>${this.groupHasLocation(e)?this.locationBlock(e):o}<div class="fields">${t.map(r=>this.renderField(r))}</div>${this.issueLines(this.issuesForGroup(e))}</fieldset>`}render(){return s`${this.renderFontStyle()}${this.renderBody()}`}renderBody(){if(!this.loaded)return s`<form><div class="roxy-skeleton form-skeleton"></div></form>`;if(this.specError)return s`<div class="roxy-error" role="alert">${this.t("Schema load failed: {{message}}",{message:this.specError})} <button type="button" class="submit" @click="${this.retryLoadSchema}">${this.t("Retry")}</button></div>`;let e=Va(this.publishableKey);if(e)return s`<form>${this.renderTitle()}<div part="validation-error" class="validation-error" role="alert">${this.t(e.message)}</div></form>`;let t=this.fields.filter(h=>!h.group&&this.isRendered(h)),r=this.groupKeys().filter(h=>h!==void 0),i=t.filter(h=>!h.fold),l=t.filter(h=>h.fold),c=r.filter(h=>!this.groups.find(m=>m.key===h)?.fold),d=r.filter(h=>this.groups.find(m=>m.key===h)?.fold),p=l.length>0||d.length>0;return s`<form @submit="${this.onSubmit}">${this.renderTitle()} ${this.validationErrors.length>0?s`<div part="validation-error" class="validation-error" role="alert"><strong>${this.t("Please complete:")}</strong> ${this.validationErrors.join(", ")}</div>`:o} ${this.renderIssueSummary()}<div class="fields">${i.map(h=>this.renderField(h))}</div>${this.groupHasLocation(void 0)?this.locationBlock(void 0):o} ${c.map(h=>this.groupCard(h))} ${this.repeats.map(h=>this.repeatControls(h))} ${p?s`<details part="advanced" class="advanced" ?open="${this.liveIssues().some(h=>[...l.map(m=>m.key),...d].some(m=>h.path===m||h.path.startsWith(`${m}.`)))}"><summary>${this.t("Advanced")}${V()}</summary><div class="fields">${l.map(h=>this.renderField(h))}</div>${d.map(h=>this.groupCard(h))}</details>`:o} ${this.selfSubmits?o:s`<button part="submit" class="submit" type="submit">${this.effectiveSubmitLabel()}</button>`}</form>`}coerce(e,t){if(t!==""){if(e==="number"){let r=Number(t);return Number.isFinite(r)?r:void 0}return t}}};ee.styles=[v,O,Qd,u`form{gap:var(--roxy-space-md);background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);padding:var(--roxy-space-lg);box-shadow:var(--roxy-shadow-sm);grid-template-columns:minmax(0,1fr);display:grid}.title{margin:0}.fields{align-items:start;gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(22ch,1fr));display:grid}.fields:empty{display:none}.person-group{gap:var(--roxy-space-md);min-inline-size:0;padding:var(--roxy-space-md) 0 0;border:0;border-block-start:1px solid var(--roxy-border);margin:0;display:grid}.person-group legend{float:inline-start;color:var(--roxy-fg);font-weight:var(--roxy-weight-bold);padding:0}.field{gap:var(--roxy-space-xs);flex-direction:column;min-inline-size:0;display:flex}.fields>*{min-inline-size:0}.tiles-field{grid-column:1/-1}label,.label{font-size:var(--roxy-text-sm);color:var(--roxy-secondary)}.req{color:var(--roxy-danger-fg);margin-inline-start:var(--roxy-space-xs)}input,select{inline-size:100%;min-inline-size:0;min-block-size:var(--roxy-touch)}.help{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.field-error{color:var(--roxy-danger-fg);font-size:var(--roxy-text-xs)}input[aria-invalid=true],select[aria-invalid=true]{border-color:var(--roxy-danger)}input:disabled,select:disabled{cursor:default;color:var(--roxy-muted);border-style:dashed}.help-details>summary{align-items:center;gap:var(--roxy-space-xs);color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:flex}.help-details .help-lead{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.help-details .help-full{margin-block-start:var(--roxy-space-xs);display:block}.location-block{gap:var(--roxy-space-xs);grid-column:1/-1;display:grid}.tiles{gap:var(--roxy-space-sm);grid-template-columns:repeat(auto-fit,minmax(10ch,1fr));display:grid}.tiles.narrow{gap:var(--roxy-space-xs);grid-template-columns:repeat(auto-fill,minmax(4ch,1fr))}.tile{justify-content:center;align-items:center;gap:calc(var(--roxy-space-unit) / 2);min-block-size:var(--roxy-touch);padding:var(--roxy-space-sm);background:var(--roxy-bg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-size:var(--roxy-text-sm);cursor:pointer;transition:border-color var(--roxy-motion-duration) var(--roxy-motion-easing), background-color var(--roxy-motion-duration) var(--roxy-motion-easing);flex-direction:column;display:flex}.tile:hover:not(:disabled){border-color:var(--roxy-accent)}.tile:disabled{cursor:default;color:var(--roxy-muted);border-style:dashed}.tile[aria-checked=true]{border-color:var(--roxy-accent);background:color-mix(in srgb, var(--roxy-accent) 12%, transparent);color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.tile-glyph{font-size:var(--roxy-text-lg);line-height:1}.toggle-row{align-items:center;gap:var(--roxy-space-sm);display:flex}.toggle{box-sizing:content-box;block-size:.8lh;inline-size:1.6lh;padding:calc(var(--roxy-space-unit) / 2);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-full);background:var(--roxy-border);cursor:pointer;transition:background-color var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0;display:inline-flex}.toggle[aria-checked=true]{background:var(--roxy-accent);border-color:var(--roxy-accent)}.toggle .knob{border-radius:var(--roxy-radius-full);background:var(--roxy-bg);block-size:.8lh;inline-size:.8lh;transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing)}.toggle[aria-checked=true] .knob{transform:translate(100%)}.toggle-label{cursor:pointer}@media (prefers-reduced-motion:reduce){.tile,.toggle,.toggle .knob{transition:none}}.advanced{border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md)}.advanced>summary{align-items:center;gap:var(--roxy-space-xs);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);display:flex}.advanced[open]>summary{margin-block-end:var(--roxy-space-md)}.repeat-controls{gap:var(--roxy-space-sm);display:flex}.repeat-btn{color:var(--roxy-accent-ink);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);padding:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);cursor:pointer;background:0 0}.repeat-btn:hover{border-color:var(--roxy-accent-ink)}.advanced .fields,.advanced .person-group{margin-block-start:var(--roxy-space-md)}.validation-error{gap:var(--roxy-space-xs);border-inline-start:var(--roxy-line-thick) solid var(--roxy-danger);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);padding-inline-start:var(--roxy-space-sm);display:grid}button.submit{min-block-size:var(--roxy-touch);background:var(--roxy-accent-ink);color:var(--roxy-bg);border-radius:var(--roxy-radius-md);padding:var(--roxy-space-sm) var(--roxy-space-lg);font-weight:var(--roxy-weight-bold);cursor:pointer;transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);border:0;justify-self:start}button.submit:hover{transform:scale(1.02)}@media (prefers-reduced-motion:reduce){button.submit{transition:none}}.field-skeleton{block-size:var(--roxy-touch)}.form-skeleton{block-size:5lh}`],y([k({type:String,attribute:"data-endpoint"})],ee.prototype,"endpoint",2),y([k({type:String})],ee.prototype,"method",2),y([k({type:String,attribute:"spec-url"})],ee.prototype,"specUrl",2),y([k({type:String,attribute:"submit-label"})],ee.prototype,"submitLabel",2),y([k({type:String,attribute:"publishable-key"})],ee.prototype,"publishableKey",2),y([k({type:String,attribute:"location-url"})],ee.prototype,"locationUrl",2),y([k({attribute:false})],ee.prototype,"initialValues",2),y([k({attribute:false})],ee.prototype,"serverIssues",2),y([k({attribute:false})],ee.prototype,"apiRoute",2),y([k({attribute:false})],ee.prototype,"autoload",2),y([k({attribute:false})],ee.prototype,"fullPages",2),y([I()],ee.prototype,"choices",2),y([I()],ee.prototype,"clearedIssues",2),y([I()],ee.prototype,"fields",2),y([I()],ee.prototype,"repeats",2),y([I()],ee.prototype,"formTitle",2),y([I()],ee.prototype,"hasLang",2),y([I()],ee.prototype,"values",2),y([I()],ee.prototype,"loaded",2),y([I()],ee.prototype,"specError",2),y([I()],ee.prototype,"validationErrors",2),ee=y([L("roxy-endpoint-form")],ee);var sy="12:00 UTC",xt=class extends f{constructor(){super(...arguments);this.heading="Ephemeris"}renderData(e){if(!e.days?.length)return this.renderEmpty();let t=this.toViewModel(e),r=this.effectiveLang();return s`<div class="wrap" part="card"><header part="header"><h2>${this.t(this.heading)}</h2><p class="month roxy-label"><span>${dr(r,t.year,t.month)}</span><span>${sy}</span></p></header>${this.renderSignKey(t.signs)}<section part="section changes"><h3>${this.t("Sign changes and retrograde periods")}</h3><div role="list">${t.bodies.map(i=>this.renderTrack(i))}</div></section><section part="section daily"><h3>${this.t("Daily positions")}</h3><div class="scroll" part="table" tabindex="0" aria-label="${this.t("Daily positions")}">${this.renderGrid(t)}</div></section></div>`}renderSignKey(e){return e.length===0?o:s`<section part="section legend"><h3>${this.t("Signs in this month")}</h3><ul class="signkey" role="list">${e.map(t=>s`<li class="signkey-item"><span class="signkey-glyph roxy-glyph" aria-hidden="true">${t.glyph}</span>${t.label}</li>`)}</ul></section>`}renderTrack(e){let t=C(e.name);return s`<div class="track" role="listitem"><span class="body-name">${t?s`<span class="glyph roxy-glyph" aria-hidden="true">${t}</span>`:o}${e.label} </span><span class="span">${this.renderPosition(e.first)}<span class="arrow" aria-hidden="true">→</span>${this.renderPosition(e.last)} </span>${e.ingresses.length||e.retrogrades.length?s`<span class="chips roxy-chips">${e.ingresses.map(r=>this.renderIngressChip(r))} ${e.retrogrades.map(r=>this.renderRetrogradeChip(r))}</span>`:o}</div>`}renderPosition(e){let{degree:t,minute:r}=ri(e.degreeInSign),i=z(e.sign),l=x(e,"sign");return s`<span class="pos" title="${l}">${t}${i?s`<span class="sg roxy-glyph" aria-hidden="true">${i}</span>`:s`<span class="sg">${l}</span>`}${String(r).padStart(2,"0")}</span>`}renderIngressChip(e){let t=z(e.sign),r=qa(this.effectiveLang(),e.date);return s`<span class="roxy-chip chip--ingress" aria-label="${this.t("Enters {{sign}} on {{date}}",{sign:e.signLabel,date:r})}"><span aria-hidden="true">→</span>${ce(t)}${e.signLabel} <span class="chip-date">${r}</span></span>`}renderRetrogradeChip(e){let t=kc(this.effectiveLang(),e.start,e.end);return s`<span class="roxy-chip chip--retro" data-tone="danger"><span class="roxy-glyph" aria-hidden="true">${ae}</span>${this.t("Retrograde {{range}}",{range:t})}</span>`}renderGrid(e){let t=this.effectiveLang();return s`<table><caption class="roxy-sr-only">${this.t("Every body with its position on each day of the month, as a zodiac sign and a degree.")}</caption><thead><tr><th scope="col" class="day">${this.t("Date")}</th>${e.bodies.map(r=>{let i=C(r.name);return s`<th scope="col" title="${r.label}">${i?s`<span class="glyph roxy-glyph" aria-hidden="true">${i}</span><span class="roxy-sr-only">${r.label}</span>`:r.label}</th>`})}</tr></thead><tbody>${e.rows.map(r=>s`<tr><th scope="row" class="day">${Sc(t,r.date)}</th>${r.cells.map((i,l)=>this.renderCell(i,e.bodies[l],r.date))}</tr>`)}</tbody></table>`}renderCell(e,t,r){if(!e)return s`<td>—</td>`;let i=[e.isRetrograde?"retro":"",t?.ingressDates.has(r)?"ingress":"",t?.stationDates.has(r)?"station":""].filter(Boolean).join(" ");return s`<td class="${i}">${this.renderPosition(e)}${e.isRetrograde?s`<span class="retro-mark roxy-glyph" aria-label="${this.t("retrograde")}">${ae}</span>`:o}</td>`}toViewModel(e){let t=[],r=new Map;for(let c of e.days)for(let d of c.positions){let p=r.get(d.planet);p||(p=[],r.set(d.planet,p),t.push(d.planet)),p.push({date:c.date,p:d})}let i=[];for(let c of t){let d=r.get(c),p=d?.[0],h=d?.[d.length-1];if(!d||!p||!h)continue;let m=[],g=[],b=new Set,w=new Set;for(let S=0;S<d.length;S++){let R=d[S],_=d[S-1];if(!R||(_&&R.p.sign!==_.p.sign&&(m.push({date:R.date,sign:R.p.sign,signLabel:x(R.p,"sign")}),b.add(R.date)),_&&R.p.isRetrograde!==_.p.isRetrograde&&w.add(R.date),!R.p.isRetrograde))continue;let q=g[g.length-1];q&&_?.p.isRetrograde?q.end=R.date:g.push({start:R.date,end:R.date})}i.push({name:c,label:x(h.p,"planet"),first:p.p,last:h.p,ingresses:m,retrogrades:g,ingressDates:b,stationDates:w})}let l=e.days.map(c=>{let d=new Map(c.positions.map(p=>[p.planet,p]));return{date:c.date,cells:i.map(p=>d.get(p.name))}});return{year:e.year,month:e.month,bodies:i,rows:l,signs:this.toSignKey(e)}}toSignKey(e){let t=new Map;for(let i of e.days)for(let l of i.positions){let c=String(l.sign??"").toLowerCase();c&&!t.has(c)&&t.set(c,x(l,"sign"))}let r=[];for(let i of re){let l=t.get(i.toLowerCase()),c=z(i);l&&c&&r.push({sign:i,label:l,glyph:c})}return r}};xt.endpoints=Yo,xt.styles=[v,u`:host{overflow-x:clip}.wrap{gap:var(--roxy-space-lg);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.wrap>*{min-width:0}h2,h3,p{margin:0}header,section{gap:var(--roxy-space-sm);display:grid}.month{gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}.signkey{gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.signkey-item{align-items:baseline;gap:var(--roxy-space-xs);color:var(--roxy-muted);font-size:var(--roxy-text-xs);white-space:nowrap;display:inline-flex}.signkey-glyph{color:var(--roxy-fg);font-size:var(--roxy-text-sm)}.track{align-items:center;gap:var(--roxy-space-xs) var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.body-name{align-items:baseline;gap:var(--roxy-space-xs);min-inline-size:16ch;font-weight:var(--roxy-weight-bold);display:inline-flex}.body-name .glyph{color:var(--roxy-accent-ink)}.span{align-items:baseline;gap:var(--roxy-space-xs);color:var(--roxy-secondary);font-variant-numeric:tabular-nums;white-space:nowrap;display:inline-flex}.arrow{color:var(--roxy-muted)}.chips{margin-inline-start:auto}.chip-date{color:var(--roxy-muted)}.scroll{min-width:0;overflow-x:auto}table{font-size:var(--roxy-text-xs)}:is(th,td){white-space:nowrap}thead th .glyph{color:var(--roxy-fg);font-size:var(--roxy-text-sm)}th.day{z-index:1;background:var(--roxy-bg);color:var(--roxy-fg);border-inline-end:1px solid var(--roxy-border);position:sticky;left:0}thead th.day{z-index:2}.sg{margin-inline:calc(var(--roxy-space-unit) / 2);color:var(--roxy-secondary);font-variant-numeric:normal}.retro-mark{font-weight:var(--roxy-weight-bold);margin-inline-start:calc(var(--roxy-space-unit) / 2)}td.retro,td.retro .sg{color:var(--roxy-danger-fg)}td.ingress{box-shadow:inset var(--roxy-line-thick) 0 var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}td.station{border-block-start:var(--roxy-line-thick) solid var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold)}`],y([k({type:String})],xt.prototype,"heading",2),xt=y([L("roxy-ephemeris-table")],xt);var da=class extends f{renderData(a){let e=a.conjunctions??[],t=a.stars??[];return s`<div class="wrap" part="card"><header part="header"><h2>${this.t("Fixed stars")}</h2>${typeof a.orb=="number"?s`<p class="roxy-label">${this.t("Orb")} ${$(this.effectiveLang(),a.orb,1)}°</p>`:o}</header>${a.summary&&!this.hideReadings?s`<p class="summary">${a.summary}</p>`:o} ${e.length?s`<section part="section conjunctions"><h3>${this.t("Conjunctions to the chart")}</h3>${e.map((r,i)=>s`<details class="interp-card" part="reading" name="fixed-star-contacts" ?open="${i===0}"><summary><span class="interp-lead">${this.t("{{point}} conjunct {{star}}",{point:x(r,"point"),star:r.star})}</span> ${V()} <span class="interp-aside"><small>${this.t("orb {{value}}\xB0",{value:$(this.effectiveLang(),r.orb,2)})}</small></span></summary>${r.interpretation&&!this.hideReadings?s`<div class="interp-body"><p>${r.interpretation}</p></div>`:o}</details>`)}</section>`:s`<p class="empty-note">${this.t("No star sits within the orb of a natal point.")}</p>`} ${t.length?this.renderCatalog(t):o}</div>`}renderCatalog(a){return s`<details class="catalog"><summary>${V()} ${this.t("Star catalog ({{count}})",{count:a.length})}</summary><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Precessed positions for the chart date")}"><table><caption class="roxy-label">${this.t("Precessed positions for the chart date")}</caption><thead><tr><th scope="col">${this.t("Star")}</th><th scope="col">${this.t("Position")}</th><th scope="col" class="num">${this.t("Mag")}</th><th scope="col">${this.t("Nature")}</th><th scope="col">${this.t("Keywords")}</th></tr></thead><tbody>${a.map(e=>{let t=z(e.sign);return s`<tr><td>${e.name}</td><td>${t?s`<span class="sg roxy-glyph">${t}</span>`:o}${Fe(e.degree)} ${e.sign}</td><td class="num">${$(this.effectiveLang(),e.magnitude,1)}</td><td>${e.nature}</td><td><ul class="kw roxy-chips">${(e.keywords??[]).map(r=>s`<li>${r}</li>`)}</ul></td></tr>`})}</tbody></table></div></details>`}};da.endpoints=Wo,da.styles=[v,O,H,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}header{gap:var(--roxy-space-xs);display:grid}.summary{font-size:var(--roxy-text-sm)}.empty-note{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}section>h3{margin-block-end:var(--roxy-space-sm)}.interp-lead .point{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.interp-aside small{font-variant-numeric:tabular-nums}.catalog summary{align-items:center;gap:var(--roxy-space-sm);font-weight:var(--roxy-weight-bold);display:flex}.scroll{min-width:0;margin-block-start:var(--roxy-space-sm);overflow-x:auto}table{width:100%}caption{caption-side:top;text-align:start;padding-block-end:var(--roxy-space-xs)}:is(th,td){white-space:nowrap}:is(th,td).num{text-align:end}.sg{color:var(--roxy-secondary);margin-inline-end:var(--roxy-space-xs)}.kw{max-inline-size:32ch}`],da=y([L("roxy-fixed-stars")],da);var pn=["Southeast","South","Southwest","East","Center","West","Northeast","North","Northwest"];var hn=u`.plate-heading{font-size:var(--roxy-text-xs);color:var(--roxy-muted);font-weight:var(--roxy-weight-bold);hyphens:manual}@container (width<=30rem){.plate-heading{font-size:calc(var(--roxy-text-xs) / var(--roxy-text-scale) / var(--roxy-text-scale))}}`;var mn={forward:"Forward",reverse:"Backward"};function tr(n){return"mountainCenterStar"in n}var bt=class extends f{constructor(){super(...arguments);this.mode="natal"}renderData(e){let t=this.effectiveLang(),r=this.mode!=="annual"&&tr(e);return s`<article class="card" part="card" aria-labelledby="flying-star-title"><header class="head" part="header"><h2 class="title" id="flying-star-title">${this.t("Flying star chart")}</h2>${tr(e)?r?s`<span class="period">${this.t("Period {{n}}",{n:N(t,e.period??0)})}</span>`:o:s`<span class="period">${e.year??""}</span>`}</header>${tr(e)?r?this.renderNatalFacts(e,t):o:this.renderAnnualFacts(e,t)}<div class="plate" part="chart plate" role="group" aria-label="${this.t("Flying star chart")}">${pn.map(i=>this.renderPalace(e,i))}</div>${r?s`<div class="legend" part="legend"><span><span class="swatch swatch-mountain"></span>${this.t("Mountain star")}</span> <span><span class="swatch swatch-water"></span>${this.t("Water star")}</span> <span>${this.t("Period star")}</span></div>`:o} ${r&&tr(e)?this.renderStructure(e):o} ${this.renderPalaceRows(e)}</article>`}renderNatalFacts(e,t){return s`<div class="facts" part="details">${e.facing?s`<span><span class="roxy-label">${this.t("Facing")}</span> <b>${j(t,"facing",e.facing.label??"")}</b></span>`:o} ${e.sitting?s`<span><span class="roxy-label">${this.t("Sitting")}</span> <b>${j(t,"facing",e.sitting.label??"")}</b></span>`:o} ${typeof e.facingDegrees=="number"?s`<span>${N(t,e.facingDegrees)}°</span>`:o} ${e.mountainFlight?s`<span><span class="roxy-label">${this.t("Mountain star")}</span> ${mn[e.mountainFlight]?this.t(mn[e.mountainFlight]):e.mountainFlight}</span>`:o} ${e.waterFlight?s`<span><span class="roxy-label">${this.t("Water star")}</span> ${mn[e.waterFlight]?this.t(mn[e.waterFlight]):e.waterFlight}</span>`:o} ${e.straddling?s`<span><b>${this.t("Straddling")}</b></span>`:o}</div>`}renderAnnualFacts(e,t){return!e.changeoverDate&&typeof e.centerStar!="number"?o:s`<div class="facts" part="details">${typeof e.centerStar=="number"?s`<span><span class="roxy-label">${this.t("Center")}</span> <b>${N(t,e.centerStar)}</b></span>`:o} ${e.changeoverDate?s`<span>${A(t,e.changeoverDate)}</span>`:o}</div>`}paletteHeading(e,t){return t==="Center"?this.t("Center"):j(e,"facing",t)}renderPalace(e,t){let r=this.effectiveLang(),i=this.paletteHeading(r,t),l=(e.palaces??[]).find(h=>h.palace===t),c=this.mode!=="annual"&&tr(e);if(!l)return s`<div class="palace"><span class="palace-name plate-heading">${i}</span></div>`;let d=t==="Center";if(c&&tr(e)){let h=l;return s`<div class="palace ${d?"palace-center":""}"><span class="mountain" title="${this.t("Mountain star")}">${h.mountain??""}</span> <span class="water" title="${this.t("Water star")}">${h.water??""}</span> <span class="star" title="${this.t("Period star")}">${h.period??""}</span> <span class="palace-name plate-heading">${i}</span> ${h.combination?s`<span class="combo">${x(h.combination,"name")}</span>`:o}</div>`}let p=l;return s`<div class="palace ${d?"palace-center":""}"><span class="star">${p.star??""}</span> <span class="palace-name plate-heading">${i}</span> <span class="combo">${x(p,"name")}</span></div>`}renderStructure(e){let t=e.structure;return t?.name?s`<section part="section structure"><h3 class="block-title">${t.name}</h3>${t.meaning&&!this.hideReadings?s`<p class="structure" part="reading">${t.meaning}</p>`:o}</section>`:o}renderPalaceRows(e){let t=e.palaces??[];if(t.length===0)return o;let r=this.effectiveLang(),i=this.mode!=="annual"&&tr(e),l=t.map(c=>{let d=this.paletteHeading(r,c.palace??"");if(i){let h=c;return!h.reading&&!h.combination?o:s`<li class="row" part="label-track"><span class="roxy-label">${d}</span><div class="row-body">${h.combination?s`<span>${x(h.combination,"name")}</span>`:o} ${h.reading&&!this.hideReadings?s`<p part="reading">${h.reading}</p>`:o}</div></li>`}let p=c;return s`<li class="row" part="label-track"><span class="roxy-label">${d}</span><div class="row-body"><span>${x(p,"name")}</span> ${p.element?s`<span class="element-word ${Se(p.element)}">${x(p,"element")}</span>`:o}<dl class="star-facts">${p.nature?s`<div><dt>${this.t("Nature")}</dt><dd>${p.nature==="auspicious"?this.t("Favourable"):p.nature==="inauspicious"?this.t("Unfavourable"):p.nature}</dd></div>`:o} ${p.enhancer?s`<div><dt>${this.t("Enhancer")}</dt><dd>${p.enhancer}</dd></div>`:o} ${p.remedy?s`<div><dt>${this.t("Remedy")}</dt><dd>${p.remedy}</dd></div>`:o}</dl>${p.meaning&&!this.hideReadings?s`<p part="reading">${p.meaning}</p>`:o}</div></li>`});return l.every(c=>c===o)?o:s`<section part="section palaces"><ul class="rows">${l}</ul></section>`}};bt.endpoints=Zo,bt.styles=[v,We,hn,na,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.block-title{margin:0}.block-title{margin-block-end:var(--roxy-space-sm)}.period{color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.facts .roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b{color:var(--roxy-fg)}.plate{background:var(--roxy-border);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;display:grid;overflow:hidden}.palace{align-content:start;gap:calc(var(--roxy-space-unit) / 2);min-block-size:3.5lh;padding:var(--roxy-space-sm);background:var(--roxy-surface);grid-template-columns:1fr 1fr;display:grid}.palace-center{background:color-mix(in srgb, var(--roxy-accent) 8%, var(--roxy-surface))}.mountain,.water{font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.mountain{color:var(--roxy-info-fg);text-align:start}.water{color:var(--roxy-accent-ink);text-align:end}.star,.palace-name,.combo{text-align:center;grid-column:1/-1}.star{font-size:calc(var(--roxy-text-base) * 1.75);line-height:var(--roxy-leading-tight);font-variant-numeric:tabular-nums}.combo{color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.legend{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.swatch-mountain{background:var(--roxy-info)}.swatch-water{background:var(--roxy-accent)}.rows{margin:0;padding:0;list-style:none;display:grid}.row{align-items:baseline;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm)}.row:first-child{border-block-start:0;padding-block-start:0}.row-body p{margin:calc(var(--roxy-space-unit) / 2) 0 0;color:var(--roxy-secondary);font-size:var(--roxy-text-xs);border-block-start:0}.star-facts{gap:var(--roxy-space-xs) var(--roxy-space-md);margin:var(--roxy-space-xs) 0 0;font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.star-facts div{gap:var(--roxy-space-xs);display:flex}.star-facts dt{color:var(--roxy-secondary);font-size:inherit}.star-facts dd{margin:0}.structure{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);border-block-start:0;margin:0}`],y([k({type:String,reflect:true})],bt.prototype,"mode",2),bt=y([L("roxy-flying-star-chart")],bt);var pa=class extends f{renderData(a){let e=a.windows??[];if(e.length===0)return this.renderEmpty();let t=ve(this.effectiveLang(),a.startDate,a.endDate);return s`<div class="wrap" part="card" aria-label="${this.t("Forecast digest")}"><div class="head" part="header"><h2>${this.t("Forecast digest")}</h2>${t?s`<p class="subtitle">${t}</p>`:o}</div>${e.map(r=>this.renderWindow(r))}</div>`}windowLabel(a){return a===1?this.t("Next 24 hours"):typeof a=="number"?this.t("Next {{count}} days",{count:a}):this.t("Window")}renderWindow(a){let e=[...a.top??[]].sort((i,l)=>(l.significance??0)-(i.significance??0)),t=a.byDomain??{},r=Object.entries(t);return s`<section class="window" part="section window"><div class="window-head" part="details"><h3>${this.windowLabel(a.days)}</h3><span class="window-count">${this.t("{{count}} events",{count:a.count??0})}</span></div>${r.length>0?s`<div class="domains" part="legend">${r.map(([i,l])=>s`<span class="domain-chip"><span class="swatch sw-${i}"></span>${E(i)} ${l}</span>`)}</div>`:o} ${e.length>0?s`<div role="list">${e.map(i=>this.renderEvent(i))}</div>`:s`<p class="quiet">${this.t("No notable events.")}</p>`}</section>`}renderEvent(a){let e=typeof a.significance=="number"?a.significance:0,t=this.hideReadings||a.description==null?E(a.type??""):a.description;return s`<div class="event" part="label-track" role="listitem"><span class="event-date">${A(this.effectiveLang(),a.date)}</span> <span class="event-desc">${t}</span> <span class="sig" role="img" aria-label="${this.t("significance {{value}} of 100",{value:$(this.effectiveLang(),e,0)})}"><span class="sig-fill ${a.domain}" style="width:${Math.max(0,Math.min(100,e))}%"></span></span></div>`}};pa.endpoints=Xo,pa.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.subtitle{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.window{gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md);display:grid}.window:first-of-type{border-block-start:0;padding-block-start:0}.window-head{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.window-count{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;margin-inline-start:auto}.domains{gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}.domain-chip{align-items:center;gap:var(--roxy-space-xs);color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:inline-flex}.swatch{border-radius:var(--roxy-radius-sm);block-size:.6lh;inline-size:.6lh;display:inline-block}.sw-western,.sig-fill.western{background:var(--roxy-accent)}.sw-vedic,.sig-fill.vedic{background:var(--roxy-info)}.sw-biorhythm,.sig-fill.biorhythm{background:var(--roxy-success)}.event{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);display:grid}.event-date{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}.event-desc{font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-tight)}.sig{block-size:calc(var(--roxy-line-thick) * 2);border-radius:var(--roxy-radius-full);background:var(--roxy-border);grid-column:2;overflow:hidden}.sig-fill{height:100%;display:block}.quiet{color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-style:italic}`],pa=y([L("roxy-forecast-digest")],pa);var ny={western:"Western",vedic:"Vedic",biorhythm:"Biorhythm"},sp=20,iy=["western","vedic","biorhythm"],ha=class extends f{renderData(a){let e=a.events??[],t=this.groupByDate(e),r=iy.filter(i=>e.some(l=>l.domain===i));return s`<div class="wrap" part="card" aria-label="${this.t("Forecast timeline")}"><header class="head" part="header"><h2>${this.t("Forecast timeline")}</h2>${a.startDate&&a.endDate?s`<div class="range">${ve(this.effectiveLang(),a.startDate,a.endDate)} · ${this.t("{{count}} events",{count:a.count??e.length})}</div>`:o}</header>${r.length?s`<div class="legend" part="legend">${r.map(i=>s`<span><span class="swatch swatch-${i}"></span>${ny[i]}</span>`)}</div>`:o} ${t.length?s`<div class="days" part="section events" role="list">${t.map(([i,l])=>this.renderDay(i,l))}</div>`:s`<p class="roxy-empty" role="status">${this.t("No events in this window")}</p>`}</div>`}groupByDate(a){let e=new Map;for(let t of a){let r=t.date??"",i=e.get(r)??[];i.push(t),e.set(r,i)}return[...e.entries()]}renderDay(a,e){return s`<div class="day" role="listitem"><div class="day-date">${A(this.effectiveLang(),a)}</div><div class="events">${e.map(t=>this.renderEvent(t))}</div></div>`}renderEvent(a){let e=typeof a.significance=="number"?a.significance:0,t=Math.max(0,Math.min(100,e));return s`<div class="event"><span class="dot dot-${a.domain}" aria-hidden="true"></span><div class="event-body"><div class="event-line">${this.renderMoon(a)}${this.renderHeadline(a)}</div>${a.description&&!this.hideReadings?s`<p class="event-desc">${a.description}</p>`:o}<div class="sig" title="${this.t("significance {{value}} of 100",{value:t})}"><span class="sig-track"><span class="sig-fill sig-fill-${a.domain}" style="width:${t}%"></span> </span><span class="sig-val">${t}</span></div></div></div>`}renderHeadline(a){let e=a.body?E(a.body):"",t=a.target?E(a.target):"",r=we({type:a.aspect}),i=r?ur(a.aspect)??se({type:a.aspect}):"",l=typeof a.orb=="number"?$(this.effectiveLang(),a.orb,1):"",c=this.typeQualifier(a);return r&&t?s`<strong>${e}</strong> <span class="${`${de({type:a.aspect})} roxy-glyph`}">${i}</span> <strong>${t}</strong>${l?s`<span class="kind">${this.t("orb {{value}}\xB0",{value:l})}</span>`:o}`:s`<strong>${e||E(a.type??"")}</strong>${c?s`<span class="kind">${c}</span>`:o}`}renderMoon(a){if(a.type==="lunar-phase"&&a.phase)return Ge(this,{illumination:a.phase==="full-moon"?100:0,waxing:true},sp);if(a.type!=="eclipse")return o;let e=xe(a.body)==="sun";return Ge(this,{illumination:e?0:100,waxing:true},sp,e?"solar":"lunar")}typeQualifier(a){return a.type==="sign-ingress"&&a.target?`enters ${E(a.target)}`:a.type==="retrograde-station"&&a.station?a.station:a.type==="eclipse"?[a.kind,"eclipse"].filter(Boolean).join(" "):a.type==="critical-day"?"critical day":a.type==="dasha-change"&&a.target?`dasha ${E(a.target)}`:E(a.type??"")}};ha.endpoints=Jo,ha.styles=[v,lt,Ft,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.range{color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.legend{gap:var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.legend .swatch{block-size:.6lh;inline-size:.6lh;border-radius:var(--roxy-radius-full);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.swatch-western,.dot-western,.sig-fill-western{background:var(--roxy-accent)}.swatch-vedic,.dot-vedic,.sig-fill-vedic{background:var(--roxy-info)}.swatch-biorhythm,.dot-biorhythm,.sig-fill-biorhythm{background:var(--roxy-success)}.day{gap:var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);grid-template-columns:9ch minmax(0,1fr);display:grid}.day:first-of-type{border-block-start:0}@container (width<=30rem){.day{grid-template-columns:minmax(0,1fr)}}.day-date{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;padding-block-start:calc(var(--roxy-space-unit) / 2)}.events{gap:var(--roxy-space-sm);display:grid}.event{align-items:start;gap:var(--roxy-space-sm);grid-template-columns:.4lh minmax(0,1fr);display:grid}.dot{block-size:.4lh;inline-size:.4lh;border-radius:var(--roxy-radius-full);margin-block-start:var(--roxy-space-xs)}.event-body{min-width:0}.event-line{font-size:var(--roxy-text-sm)}.event-line .moon-mark{margin-inline-end:var(--roxy-space-xs)}.event-line .kind{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-inline-start:var(--roxy-space-xs)}.event-desc{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:calc(var(--roxy-space-unit) / 2)}.sig{align-items:center;gap:var(--roxy-space-xs);margin-block-start:var(--roxy-space-xs);display:flex}.sig-track{max-inline-size:16ch;block-size:calc(var(--roxy-line-thick) * 2);border-radius:var(--roxy-radius-full);background:var(--roxy-border);flex:1;overflow:hidden}.sig-fill{height:100%;display:block}.sig-val{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}`],ha=y([L("roxy-forecast-timeline")],ha);var ma=class extends f{renderData(a){let e=this.effectiveLang(),t=a.chosen,r=a.input?.text??a.input?.textHebrew??"";return s`<article class="card" part="card" aria-labelledby="gematria-title"><header class="head" part="header"><h2 id="gematria-title">${r?`${this.t("Gematria")} \xB7 ${r}`:this.t("Gematria")}</h2>${t?.hebrew?s`<span class="hebrew" lang="he" dir="rtl">${t.hebrew}</span>`:o} ${this.chosenForm(a)?.romanization?s`<span class="roman">${this.chosenForm(a)?.romanization}</span>`:o} ${t?.rule?s`<p class="rule">${t.rule}</p>`:o}</header>${this.renderLetters(e,this.chosenForm(a)?.letters)} ${this.renderValues(e,a.values,this.t("Cipher values"))} ${this.renderForms(e,a)} ${this.renderTransformations(e,a.transformations)} ${this.renderLatin(e,a.latinValues)} ${this.renderMatches(e,a.matches)} ${this.renderConventions(a.conventions)}</article>`}chosenForm(a){let e=a.hebrewForms??[];return e.find(t=>t.hebrew===a.chosen?.hebrew)??e[0]}renderLetters(a,e){let t=e??[];return t.length===0?o:s`<section part="section letters"><h3>${this.t("Letters")}</h3><div class="letters" part="chart" dir="rtl">${t.map(r=>s`<div class="${`letter${r.isFinal?" is-final":""}`}" dir="ltr" title="${U(r.isFinal?this.t("Final form"):void 0)}"><span class="glyph" lang="he">${r.glyph??""}</span> <span class="name">${r.name??""}</span> <span class="num">${N(a,r.value)}</span></div>`)}</div>${t.some(r=>r.isFinal)?s`<p class="legend" part="legend"><span class="swatch"></span>${this.t("Final form")}</p>`:o}</section>`}renderValues(a,e,t){let r=(e??[]).filter(l=>typeof l.value=="number");if(r.length===0)return o;let i=r.some(l=>(l.alternateValues??[]).length>0);return s`<section part="section values"><h3>${t}</h3><div class="scroll" tabindex="0" role="region" aria-label="${t}"><table><thead><tr><th>${this.t("Cipher")}</th><th>${this.t("Value")}</th>${i?s`<th>${this.t("Also published")}</th>`:o}</tr></thead><tbody>${r.map(l=>s`<tr><td>${E(l.id??"")}</td><td class="num">${N(a,l.value)}</td>${i?s`<td class="num">${(l.alternateValues??[]).map(c=>N(a,c)).join(", ")}</td>`:o}</tr>`)}</tbody></table></div>${this.renderProvenance(r)}</section>`}renderProvenance(a){let e=new Map;for(let t of a)t.tradition&&!e.has(t.tradition)&&e.set(t.tradition,t.source);return e.size===0?o:s`<p class="provenance"><span class="roxy-label">${this.t("Tradition")}</span> ${[...e].map(([t,r],i)=>s`${i>0?" \xB7 ":""}${E(t)}${fs(r)?s`<a class="src" href="${r}" target="_blank" rel="noopener noreferrer">${this.t("Source")}</a>`:o}`)}</p>`}renderForms(a,e){let t=e.hebrewForms??[];return t.length<2?o:s`<section part="section spellings"><h3>${this.t("Spellings")}</h3><ul class="forms">${t.map(r=>s`<li class="form"><div><span class="hebrew" lang="he" dir="rtl">${r.hebrew??""}</span> ${r.hebrew===e.chosen?.hebrew?s`<span class="chosen roxy-chip" data-tone="success">${this.t("Chosen")}</span>`:o}</div><span class="roman">${r.romanization??""}</span> ${r.rule?s`<p class="rule">${r.rule}</p>`:o} ${this.renderFormTotals(a,r)}</li>`)}</ul></section>`}renderFormTotals(a,e){let t=(e.values??[]).find(r=>typeof r.value=="number");return t?s`<p class="rule"><span class="roxy-label">${E(t.id??"")}</span> ${N(a,t.value)}</p>`:o}renderTransformations(a,e){let t=e??[];return t.length===0?o:s`<section part="section substitutions"><h3>${this.t("Substitutions")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Substitutions")}"><table><thead><tr><th>${this.t("Cipher")}</th><th>${this.t("Output")}</th><th>${this.t("Value")}</th></tr></thead><tbody>${t.map(r=>s`<tr><td>${E(r.id??"")}</td><td>${r.output?s`<span lang="he" dir="rtl">${r.output}</span>`:o} ${r.outputRomanization?s`<span class="roman">${r.outputRomanization}</span>`:o}</td><td class="num">${N(a,r.value)}</td></tr>`)}</tbody></table></div></section>`}renderLatin(a,e){let t=e??[];return t.length===0?o:s`<section part="section latin-ciphers"><h3>${this.t("Latin ciphers")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Latin ciphers")}"><table class="stacked"><thead><tr><th>${this.t("Cipher")}</th><th>${this.t("Value")}</th><th>${this.t("Tradition")}</th></tr></thead><tbody>${t.map(r=>s`<tr><td data-label="${this.t("Cipher")}">${E(r.id??"")} ${r.lineage?s`<p class="lineage">${r.lineage}</p>`:o}</td><td class="num" data-label="${this.t("Value")}">${N(a,r.value)}</td><td data-label="${this.t("Tradition")}">${E(r.tradition??"")}</td></tr>`)}</tbody></table></div></section>`}renderMatches(a,e){let t=e??[];return t.length===0?o:s`<section part="section matches"><h3>${this.t("Equal values")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Equal values")}"><table class="stacked"><thead><tr><th>${this.t("Word")}</th><th>${this.t("Meaning")}</th><th>${this.t("Value")}</th></tr></thead><tbody>${t.map(r=>s`<tr><td data-label="${this.t("Word")}"><span lang="he" dir="rtl">${r.hebrew??""}</span> <span class="roman">${r.romanization??""}</span></td><td data-label="${this.t("Meaning")}">${r.meaning??""} ${r.note&&!this.hideReadings?s`<p class="match-note" part="reading">${r.note}</p>`:o}</td><td class="num" data-label="${this.t("Value")}">${N(a,r.value)}</td></tr>`)}</tbody></table></div></section>`}renderConventions(a){let e=this.effectiveLang(),t=[];for(let r of["transliteration","misparGadol"]){let i=a?.[r];i&&t.push([X(e,r),j(e,r,i)])}return t.length===0?o:s`<p class="provenance">${t.map(([r,i],l)=>s`${l>0?" \xB7 ":""}<span class="roxy-label">${r}</span>${i}`)}</p>`}};ma.endpoints=Qo,ma.styles=[v,qe,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}section>h3{margin-block-end:var(--roxy-space-sm)}.head{justify-items:start;gap:calc(var(--roxy-space-unit) / 2);min-width:0;display:grid}.hebrew{font-size:calc(var(--roxy-text-xl) * 1.3);font-weight:var(--roxy-weight-bold);line-height:1.4}.roman{color:var(--roxy-secondary);font-size:var(--roxy-text-sm)}.rule{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.provenance .roxy-label,.rule .roxy-label{font-size:inherit;margin-inline-end:var(--roxy-space-xs)}.src{margin-inline-start:var(--roxy-space-xs)}.letters{gap:var(--roxy-space-xs);flex-wrap:wrap;display:flex}.letter{justify-items:center;gap:calc(var(--roxy-space-unit) / 2);min-inline-size:5ch;padding:var(--roxy-space-xs) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);display:grid}.letter .glyph{font-size:var(--roxy-text-lg);line-height:1.3}.letter .name{color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.letter .num{font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.letter.is-final{border-color:var(--roxy-accent)}.legend{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:var(--roxy-space-sm)}.legend .swatch{block-size:.6lh;inline-size:.6lh;border:1px solid var(--roxy-accent);border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td.num{white-space:nowrap}.provenance{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:var(--roxy-space-sm)}.lineage,.match-note{color:var(--roxy-secondary);font-size:var(--roxy-text-xs);white-space:normal;margin-block-start:calc(var(--roxy-space-unit) / 2)}a{color:var(--roxy-accent-ink)}.forms{gap:var(--roxy-space-md);margin:0;padding:0;list-style:none;display:grid}.form{gap:var(--roxy-space-xs);min-width:0;border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm);display:grid}.form:first-child{border-block-start:0;padding-block-start:0}`],ma=y([L("roxy-gematria")],ma);var np=8,ga=class extends f{renderData(a){let e=a.transitingPlanets??[];if(!e.length)return this.renderEmpty();let t=a.keyTransits??[],r=a.natalPlanets?.find(i=>i.name==="Moon")?.sign;return s`<div class="wrap" part="card" aria-label="${this.t("Gochara transits")}"><header class="head" part="header"><h2>${this.t("Gochara")}</h2><p class="sub">${this.t("Where each graha transits at {{when}}, read against the natal chart of {{birth}}.",{when:Y(this.effectiveLang(),a.transitDatetime),birth:Y(this.effectiveLang(),a.birthDatetime)})}</p>${r?s`<p class="sub">${this.t("Gochara houses are counted from the natal Moon in {{sign}}.",{sign:r})}</p>`:o} ${W(this.effectiveLang(),a.frame,this.translator)}</header><div part="table">${e.map(i=>this.renderPlanet(i))}</div>${t.length&&!this.hideReadings?s`<section class="key" part="section key-transits"><h3>${this.t("Key transits")}</h3>${t.map(i=>s`<p class="key-item">${i.description}</p>`)}</section>`:o}</div>`}renderPlanet(a){let e=C(a.name)??"",t=typeof a.longitude=="number"?Ne(a.longitude):void 0;return s`<article class="row"><div class="row-top"><span class="graha">${e?s`<span class="glyph roxy-glyph">${e}</span>`:o}${a.name} </span><span class="pos">${t?`${a.sign} ${t}`:a.sign} </span>${typeof a.houseFromMoon=="number"?s`<span class="house moon roxy-chip">${this.t("house {{n}} from the Moon",{n:a.houseFromMoon})}</span>`:o} ${typeof a.natalHouse=="number"?s`<span class="house lagna roxy-chip">${this.t("house {{n}} from the Lagna",{n:a.natalHouse})}</span>`:o}</div>${this.renderKaksha(a.kaksha)} ${this.renderContacts(this.t("Drishti"),a.drishtiToNatal)} ${this.renderContacts(this.t("Aspects"),a.aspectsToNatal)}</article>`}renderContacts(a,e){return e?.length?s`<p class="aspects"><span class="contact-label">${a}</span> ${e.map(t=>typeof t.orb=="number"?this.t("{{aspect}} natal {{planet}} ({{orb}}\xB0)",{aspect:se({type:t.aspectType}),planet:t.natalPlanet,orb:$(this.effectiveLang(),t.orb,1)}):this.t("{{aspect}} natal {{planet}}",{aspect:se({type:t.aspectType}),planet:t.natalPlanet})).join(" \xB7 ")}</p>`:o}renderKaksha(a){if(!a||typeof a.number!="number")return o;let e=a.number,t=a.bindu===true?"yes":a.bindu===false?"no":"",r=np,i=a.lord&&typeof a.startDegree=="number"&&typeof a.endDegree=="number"?this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}, spanning {{start}}\xB0 to {{end}}\xB0 of the sign",{n:e,total:r,graha:a.lord,start:$(this.effectiveLang(),a.startDegree,2),end:$(this.effectiveLang(),a.endDegree,2)}):a.lord?this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}",{n:e,total:r,graha:a.lord}):typeof a.startDegree=="number"&&typeof a.endDegree=="number"?this.t("Kaksha {{n}} of {{total}}, spanning {{start}}\xB0 to {{end}}\xB0 of the sign",{n:e,total:r,start:$(this.effectiveLang(),a.startDegree,2),end:$(this.effectiveLang(),a.endDegree,2)}):this.t("Kaksha {{n}} of {{total}}",{n:e,total:r}),l=a.bindu===null||a.bindu===void 0?"":typeof a.binduCount=="number"?a.bindu?this.t("this kaksha lord gave bindu, {{count}} of {{total}} in this sign",{count:a.binduCount,total:r}):this.t("this kaksha lord gave no bindu, {{count}} of {{total}} in this sign",{count:a.binduCount,total:r}):a.bindu?this.t("this kaksha lord gave bindu"):this.t("this kaksha lord gave no bindu");return s`<div class="kaksha-bar" part="chart" role="img" aria-label="${this.t("Kaksha {{n}} of {{total}} within the current sign",{n:e,total:r})}">${Array.from({length:np},(c,d)=>s`<span class="seg ${d+1===e?`here ${t}`:""}"></span>`)}</div><p class="meta">${l?`${i} \xB7 ${l}`:i}</p>`}};ga.endpoints=el,ga.styles=[v,B,u`.wrap{grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}.head{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);display:grid}h2,h3,p{margin:0}.sub,.meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.row{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);grid-template-columns:minmax(0,1fr);display:grid}.row-top{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.pos{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.house.moon{border-color:var(--roxy-accent);color:var(--roxy-fg)}.contact-label{font-weight:var(--roxy-weight-bold);margin-inline-end:var(--roxy-space-xs)}.kaksha-bar{block-size:.4lh;margin-block:var(--roxy-space-xs);grid-template-columns:repeat(8,minmax(0,1fr));gap:1px;display:grid}.seg{background:var(--roxy-border);border-radius:var(--roxy-radius-sm)}.seg.here{background:var(--roxy-muted)}.seg.here.yes{background:var(--roxy-success)}.seg.here.no{background:var(--roxy-warning)}.aspects{color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.key{gap:var(--roxy-space-sm);padding:var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);display:grid}.key-item{font-size:var(--roxy-text-sm)}`],ga=y([L("roxy-gochara-table")],ga);var oy={varna:1,vashya:2,tara:3,yoni:4,"graha maitri":5,gana:6,bhakoot:7,nadi:8},ya=class extends f{renderData(a){let e=(a.breakdown??[]).filter(p=>p?.category!==void 0),t=a.total??0,r=a.maxScore??36,i=t/r*100,l=i>=70?"high":i>=50?"mid":"low",c=i*2.827,d=(100-i)*2.827;return s`<article class="card" part="card" aria-label="${this.t("Guna Milan score")}"><div class="score-header" part="header"><div class="score-info"><div class="score-bar" part="details"><div><span class="total">${$(this.effectiveLang(),a.total,1)}</span> <span class="over">/ ${a.maxScore}</span> ${typeof a.percentage=="number"?s`<small class="pct">${te(this.effectiveLang(),a.percentage,1)}</small>`:o}</div><div class="verdict-wrap">${typeof a.isCompatible=="boolean"?s`<span class="verdict roxy-chip ${a.isCompatible?"yes":"no"}" data-tone="${a.isCompatible?"success":"danger"}">${a.isCompatible?this.t("Compatible"):this.t("Not compatible")}</span>`:o} ${a.recommendation&&!this.hideReadings?s`<span class="recommendation">${a.recommendation}</span>`:o}</div></div></div><div class="score-ring" part="chart" role="meter" aria-label="${this.t("Guna Milan score")}" aria-valuemin="0" aria-valuemax="${r}" aria-valuenow="${t}"><svg viewBox="0 0 100 100" aria-hidden="true"><circle class="ring-track" cx="50" cy="50" r="45"/><circle class="ring-fill" data-band="${l}" cx="50" cy="50" r="45" stroke-dasharray="${c},${d}" transform="rotate(-90 50 50)"/></svg></div></div>${e.length>0?s`<div class="table-scroll" part="table"><table class="stacked"><caption class="roxy-sr-only">${this.t("Guna Milan breakdown: each koota with the classification of person 1 and person 2, and the score it earned out of its maximum.")}</caption><thead><tr><th scope="col">${this.t("Koota")}</th><th scope="col">${this.t("Person 1")}</th><th scope="col">${this.t("Person 2")}</th><th scope="col" class="bar-col">${this.t("Progress")}</th><th scope="col" class="score">${this.t("Points")}</th></tr></thead><tbody>${e.map(p=>{let h=p.score??0,m=p.maxScore??ly(p.category),g=m?h/m*100:0;return s`<tr><td>${p.category} ${p.description?s`<small>${p.description}</small>`:o}</td><td class="classification" data-label="${this.t("Person 1")}">${p.person1??""}</td><td class="classification" data-label="${this.t("Person 2")}">${p.person2??""}</td><td class="bar-cell bar-col"><div class="mini-bar"><span style="width:${g}%"></span></div></td><td class="score" data-label="${this.t("Points")}">${$(this.effectiveLang(),h,1)} / ${m}</td></tr>`})}</tbody></table></div>`:o} ${(a.doshas?.length??0)>0||(a.doshaCancellations?.length??0)>0?s`<ul class="tags roxy-chips" part="details">${a.doshas?.map(p=>s`<li class="dosha roxy-chip" data-tone="danger">${p}</li>`)} ${a.doshaCancellations?.map(p=>s`<li class="cancel roxy-chip" data-tone="success" title="${p.reason}">${this.t("{{dosha}} cancelled",{dosha:p.dosha})}</li>`)}</ul>`:o} ${W(this.effectiveLang(),a.frame,this.translator)}</article>`}};ya.endpoints=tl,ya.styles=[v,B,qe,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.card>*{min-width:0}.score-header{align-items:center;gap:var(--roxy-space-md);display:flex}.score-info{flex:1;min-width:0}.table-scroll{min-width:0;overflow-x:auto}.score-bar{align-items:center;gap:var(--roxy-space-md);grid-template-columns:minmax(0,1fr) auto;display:grid}.total{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 1.5);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;line-height:1}.over,.pct{color:var(--roxy-muted)}.pct{font-size:var(--roxy-text-sm);margin-inline-start:var(--roxy-space-sm)}.verdict-wrap{justify-items:end;gap:var(--roxy-space-xs);text-align:end;display:grid}.verdict{font-weight:var(--roxy-weight-bold)}.recommendation{color:var(--roxy-secondary);font-size:var(--roxy-text-sm)}.score-ring{flex-shrink:0;block-size:5lh;inline-size:5lh}.score-ring svg{block-size:100%;inline-size:100%;display:block}.ring-track,.ring-fill{fill:none;stroke-width:8px}.ring-track{stroke:var(--roxy-border)}.ring-fill{stroke:var(--roxy-danger);stroke-linecap:round}.ring-fill[data-band=mid]{stroke:var(--roxy-warning)}.ring-fill[data-band=high]{stroke:var(--roxy-success)}table{width:100%}td small{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:calc(var(--roxy-space-unit) / 2);display:block}td.classification{color:var(--roxy-secondary);white-space:nowrap}:is(th,td).score{text-align:end}td.score{font-weight:var(--roxy-weight-bold)}td.bar-cell{width:22%}@container (width<=32rem){.bar-col{display:none}}@container (width<=26rem){.score-header{flex-direction:column-reverse;align-items:stretch}.score-ring{align-self:center}.score-bar{gap:var(--roxy-space-xs);grid-template-columns:minmax(0,1fr)}.verdict-wrap{text-align:start;justify-items:start}}.mini-bar{border-radius:var(--roxy-radius-full);background:var(--roxy-border);block-size:.35lh;overflow:hidden}.mini-bar>span{background:var(--roxy-accent);block-size:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}`],ya=y([L("roxy-guna-milan")],ya);function ly(n){return n&&oy[n.toLowerCase()]||1}var ua=class extends f{constructor(){super(...arguments);this.chartViewport=new ne(this)}renderChart(e,t,r){let i=new Set(r?e.personAGates:(e.channels??[]).flatMap(g=>g.personAGates??[])),l=new Set(r?e.personBGates:(e.channels??[]).flatMap(g=>g.personBGates??[])),c=new Map;for(let g of new Set([...i,...l]))c.set(g,{left:i.has(g),right:l.has(g)});let d=new Set((e.centers??[]).filter(g=>g.defined).map(g=>g.id)),p=new Map((e.centers??[]).map(g=>[g.id,g.name])),h=new Map;for(let g of e.channels??[])h.set(g.gateA,g.name),h.set(g.gateB,g.name);let m=new Map;for(let[g,b]of c){let w=[b.left&&"A",b.right&&"B"].filter(Boolean).join(" + ");m.set(g,[`Gate ${g}`,h.get(g),w].filter(Boolean).join(" \xB7 "))}return s`${ke(T`<svg class="chart bodygraph" part="chart" viewBox=${pi} preserveAspectRatio="xMidYMid meet" role="img" aria-label=${t}><title>${t}</title>${hi({definedCenters:d,gateSources:c,gateTitles:m,centerNames:p,stateWords:{defined:"Defined",open:"Open"}})}</svg>`.markup)} ${r?o:s`<p class="note">${t}</p>`}<div class="legend" part="legend"><span><span class="swatch source src-left"></span>Person A</span> <span><span class="swatch source src-right"></span>Person B</span> <span><span class="swatch"></span>Open center</span></div>`}renderData(e){let t=Array.isArray(e.personAGates)&&Array.isArray(e.personBGates),r=t?this.t("Combined bodygraph"):this.t("Defined channels"),i=e.channels??[],l=e.centers??[],c=l.filter(d=>d.defined).length;return s`<div class="wrap bodygraph" part="card" aria-label="Human Design connection"><header class="head" part="header"><h2>Connection</h2>${typeof e.totalChannels=="number"?s`<span class="count">${e.totalChannels} channels</span>`:o}</header>${this.chartViewport.renderChartViewport(this.renderChart(e,r,t),r,this.translator)} ${pt([{label:"Channels",value:e.totalChannels?.toString()},{label:"Combined definition",value:e.combinedDefinition?E(String(e.combinedDefinition)):void 0},{label:"Centers defined",value:l.length>0?`${c}/${l.length}`:void 0}])} ${this.hideReadings?o:s`<p class="lead">A connection chart reads the two charts as one bodygraph. Wherever the two of them together hold both gates of a channel, that channel is defined between them, and the centers it joins are defined in the connection whether or not either person defines them alone.</p>`} ${this.renderDynamics(e.summary)} ${this.renderCenters(l)} ${this.renderChannels(i,l)}</div>`}renderDynamics(e){if(!e)return o;let t=[{label:"Electromagnetic",aside:gn(e.electromagnetic),body:"Each person holds one of the two gates, so the channel completes only when they are together. The classic point of attraction."},{label:"Dominance",aside:gn(e.dominance),body:"One person holds both gates and the other holds neither, so the conditioning runs one way, from the person who carries the channel to the person who does not."},{label:"Compromise",aside:gn(e.compromise),body:"One person holds both gates and the other holds a single hanging gate of the same channel, so the channel is complete for one of them and half open for the other."},{label:"Companionship",aside:gn(e.companionship),body:"Both people independently hold both gates, so neither needs the other to complete it. A shared and familiar frequency rather than an attraction."}];return this.renderInterpretation(t,"hd-connection-dynamic","Dynamics")}renderCenters(e){return e.length===0?o:s`<section class="block" part="section centers"><h3>Centers</h3>${this.hideReadings?o:s`<p class="note">Defined is the state of the combined chart. Beside it is who already defines that center in their own chart. A center defined only together is what the connection itself creates: it is there when the two are together and gone when they are apart. The combined definition counts how the defined centers hang together, so Single is one connected piece and a split is more than one.</p>`} ${e.map(t=>{let r=t.definedBy??[],i=r.includes("A"),l=r.includes("B"),c=!!t.defined&&!i&&!l;return s`<div class="row"><span class="cname">${t.name??E(String(t.id??""))}</span> <span class="roxy-chip ${c?"together":""}" data-tone="${t.defined&&!c?"success":o}">${t.defined?c?"Only together":"Defined":"Open"} </span><span class="who">${cy(!!t.defined,i,l)}</span></div>`})}</section>`}renderChannels(e,t){if(e.length===0)return o;let r=new Map(t.map(l=>[String(l.id??""),l.name??""])),i=l=>r.get(l)||E(l);return s`<section class="block" part="section channels"><h3>Channels</h3><div class="scroll" part="table" tabindex="0" role="region" aria-label="Connection channels"><table role="table"><caption class="roxy-sr-only">Connection channels: each channel with its gates, the centers it links, its circuit and dynamic, and the gates person A and person B each hold.</caption><thead><tr><th scope="col">Channel</th><th scope="col">Gates</th><th scope="col">Centers</th><th scope="col">Circuit</th><th scope="col">Dynamic</th><th scope="col">Person A holds</th><th scope="col">Person B holds</th></tr></thead><tbody>${e.map(l=>s`<tr><td>${l.name??""}</td><td class="gates">${l.gateA}-${l.gateB}</td><td>${(l.centers??[]).map(i).join(" to ")}</td><td>${l.circuit??""}</td><td>${l.dynamic?s`<span class="roxy-chip">${l.dynamic}</span>`:o}</td><td class="held">${ip(l.personAGates)}</td><td class="held">${ip(l.personBGates)}</td></tr>`)}</tbody></table></div></section>`}};ua.endpoints=al,ua.styles=[v,O,H,Qt,Ps,Ks,pe,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.count{color:var(--roxy-accent-ink);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.note{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-end:var(--roxy-space-sm)}.row{align-items:center;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.row:last-child{border-block-end:0}.cname{flex:1;min-width:16ch}.roxy-chip.together{color:var(--roxy-accent-ink);border-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}.who{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}table{width:100%}th,td{white-space:nowrap}tbody tr:last-child td{border-block-end:0}.gates{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold);color:var(--roxy-accent-ink)}.held{font-variant-numeric:tabular-nums}.scroll{min-width:0;overflow-x:auto}.wrap{--src-left:var(--roxy-info-fg);--src-right:var(--roxy-warning-fg);--src-ink:var(--roxy-bg)}`],ua=y([L("roxy-hd-connection")],ua);function gn(n){if(typeof n=="number")return n===0?"None":n===1?"1 channel":`${n} channels`}function ip(n){let a=n??[];return a.length>0?a.join(", "):"Neither"}function cy(n,a,e){return a&&e?"Defined in both charts":a?"Defined by A":e?"Defined by B":n?"Defined by neither alone, only by the connection":"Open in both charts"}var Oi=360,dy=470,Ii=8,cp=Oi-Ii*2,un=48,Kr=15,zi=7,op=16,yn=[{id:"throat",label:"Throat",y:0},{id:"g",label:"G",y:211},{id:"sacral",label:"Sacral",y:422}],dp=`0 0 ${Oi} ${dy}`;function py(n,a){return Ii+cp*(n*2+1)/(a*2)}function pp(n){return Hr[n.gateA]==="throat"||Hr[n.gateB]==="throat"}function hy(n){return(pp(n)?Hr[n.gateA]==="throat":Hr[n.gateA]==="g")?n.gateA:n.gateB}function my(){return yn.map(n=>F`<g>
|
|
85
|
-
<rect class="pn-bar" x=${
|
|
86
|
-
<text class="pn-bar-label" x=${
|
|
87
|
-
</g>`)}function
|
|
88
|
-
<circle class="pn-badge" cx=${n+(i-(e.length-1)/2)*
|
|
89
|
-
<text class="pn-badge-text" x=${n+(i-(e.length-1)/2)*
|
|
90
|
-
</g>`)}function
|
|
91
|
-
<circle class="pn-gate-dot ${l?"on":""}" cx=${n} cy=${a} r=${
|
|
81
|
+
`}function Pg(n,a){let e=n.lagnaSign.toLowerCase();return T`
|
|
82
|
+
${Ag(n.divisionLabel)}
|
|
83
|
+
${re.map(t=>Dg(t,n.placements[t.toLowerCase()]??[],t.toLowerCase()===e,Ci(t,n.lagnaSign),a))}
|
|
84
|
+
`}function Ti(n){return $i(n.lagnaSign)!==-1}function _g(n,a,e){if(a==="north"&&!Ti(n))return Ad(n,e);switch(a){case"north":return Cg(n,e);case"east":return Pg(n,e);default:return Ad(n,e)}}function Qs(n,a={}){let e=Ve(a.lang);return T`<svg class="kundli" xmlns=${Ue} viewBox=${`0 0 ${_e} ${_e}`} preserveAspectRatio="xMidYMid meet" part="chart" role="img" aria-label=${a.label??e("Vedic birth chart with twelve sign houses")}><title>${a.title??e("Vedic kundli")}</title>${_g(n,a.style??"north",e)}</svg>`.markup}var Mg=[{id:"north",source:"North"},{id:"south",source:"South"},{id:"east",source:"East"}];function Ng(n,a){let e=Object.values(n.placements).flat(),t=[];return e.some(r=>r.isRetrograde)&&t.push(`${wi} ${a("retrograde")}`),e.some(r=>r.combust)&&t.push(`${ki} ${a("combust")}`),e.some(r=>r.war)&&t.push(`${Si} ${a("planetary war")}`),t.length===0?o:s`<p class="roxy-frame">${t.join(" \xB7 ")}</p>`}function zg(n){return s`<p class="roxy-frame">${n("No ascendant in this chart, so the houses are not numbered.")}</p>`}function en(n,a){let e=[];Ti(n)||e.push(zg(a));let t=Ng(n,a);return t!==o&&e.push(t),e}function tn(n,a,e){return ue({items:Mg.map(({id:t,source:r})=>({id:t,label:e(r)})),active:n,onSelect:a,label:e("Kundli style"),idPrefix:"kundli",controls:true})}function Md(n,a,e,t){return s`<details class="kundli-reference" part="section positions"><summary>${t("Planetary positions")}${V()}</summary><div class="kundli-reference-scroll" part="table" tabindex="0" role="region" aria-label="${t("Planetary positions")}"><table class="kundli-reference-table"><caption class="roxy-sr-only">${t("Planetary positions")}</caption><thead><tr><th scope="col">${t("Body")}</th><th scope="col">D${a} ${t("Sign")}</th><th scope="col">D${a} ${t("House")}</th><th scope="col">D1 ${t("Position")}</th><th scope="col">D1 ${t("Nakshatra")}</th><th scope="col">${t("Pada")}</th><th scope="col">${t("Star lord")}</th><th scope="col">${t("Motion")}</th></tr></thead><tbody>${Object.entries(n).map(([r,i])=>s`<tr><th scope="row">${i.graha??r}</th><td>${i.rashi??""}</td><td>${typeof i.house=="number"?i.house:""}</td><td>${typeof i.longitude=="number"?s`<span>${ye(i.longitude)}</span><small>${$(e,i.longitude,12)}°</small>`:o}</td><td>${i.nakshatra?.name??""}</td><td>${i.nakshatra?.pada??""}</td><td>${i.nakshatra?.lord??""}</td><td>${i.isRetrograde?t("retrograde"):""}</td></tr>`)}</tbody></table></div></details>`}var an=u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.kundli-reference{min-width:0}.kundli-reference>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);display:flex}.kundli-reference-scroll{min-width:0;margin-top:var(--roxy-space-sm);overflow-x:auto}.kundli-reference-table{width:100%}.kundli-reference-table :is(th,td){white-space:nowrap}.kundli-reference-table small{color:var(--roxy-secondary);display:block}.header{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.title{margin:0}svg:where([part~=chart]){width:100%;max-width:var(--roxy-chart-max-width,35rem);aspect-ratio:1;height:auto;margin:0 auto;display:block}`;var Og={number:9,name:"Navamsa"},Nd=n=>"division"in n&&n.division?n.division:Og,yt=class extends f{constructor(){super(...arguments);this.chartViewport=new ne(this);this.chartStyle="north";this.setStyle=e=>{this.chartStyle=e}}viewModel(){if(!this.data?.chart?.meta)return null;let e=Nd(this.data),t=`D${e.number} ${e.name}`;return Js(this.data.chart.meta,{divisionLabel:t,natalReference:true})}renderData(e){let t=this.viewModel();if(!t)return this.renderEmpty();let r=Nd(e),{vargottama:i}=e;return s`<div class="wrap" part="card"><div class="header" part="header"><div><h2 class="title">D${r.number} ${r.name} ${ei(r.name,r.sanskritName)?s`<span class="division-meta">· ${r.sanskritName}</span>`:o}</h2>${r.significance?s`<p class="significance">${r.significance}</p>`:o} ${W(this.effectiveLang(),e.frame,this.translator)} ${en(t,this.translator)}</div>${tn(this.chartStyle,this.setStyle,this.translator)}</div><div id="kundli-panel-${this.chartStyle}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="kundli-tab-${this.chartStyle}">${this.chartViewport.renderChartViewport(ke(Qs(t,{style:this.chartStyle,lang:this.effectiveLang(),label:this.t("{{chart}} divisional chart with twelve sign houses",{chart:`D${r.number} ${r.name}`}),title:`D${r.number} ${r.name}`})),`D${r.number} ${r.name}`,this.translator)}</div>${Md(e.chart.meta,r.number,this.effectiveLang(),this.translator)} ${i&&i.length>0?s`<div class="vargottama-row" part="details"><span class="roxy-label">${this.t("Vargottama")}:</span><ul class="roxy-chips" aria-label="${this.t("Vargottama planets")}">${i.map(l=>s`<li>${ce(C(l))} ${l}</li>`)}</ul></div>`:o}</div>`}};yt.endpoints=Uo,yt.styles=[v,pe,B,_s,an,O,ge,u`.division-meta{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);color:var(--roxy-muted)}.significance{border-inline-start:var(--roxy-line-thick) solid var(--roxy-border);font-size:var(--roxy-text-sm);color:var(--roxy-muted);margin:0;padding-inline-start:var(--roxy-space-sm)}.vargottama-row{align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}`],y([k({type:String,reflect:true,attribute:"chart-style"})],yt.prototype,"chartStyle",2),yt=y([L("roxy-divisional-chart")],yt);var Ig={manglik:"Mangal Dosha",kalsarpa:"Kaal Sarp Dosha",sadhesati:"Sade Sati"},ut=class extends f{constructor(){super(...arguments);this.type="manglik"}renderData(e){let t=!!e.present,r=Ig[this.type]??this.type,i=(e.severity??"").toLowerCase(),l=i==="severe"?3:i==="moderate"?2:i==="mild"?1:0,c=l*33;return s`<article class="card" part="card" aria-label="${r}"><header class="head" part="header"><h2>${r}</h2><span class="${`badge roxy-chip ${t?"present":"absent"}`}" data-tone="${t?"danger":"success"}">${t?this.t("Present"):this.t("Absent")} </span>${W(this.effectiveLang(),e.frame,this.translator)}</header>${"type"in e&&e.type?s`<p class="subtype"><span class="subtype-label roxy-label">${this.type==="sadhesati"?this.t("Current phase"):this.t("Type")}</span>${e.type}</p>`:o} ${e.severity?s`<div class="severity-bar" part="details" role="meter" aria-valuemin="0" aria-valuemax="3" aria-valuenow="${l}" aria-label="${this.t("Severity")} ${e.severity}"><span class="severity-fill" data-tier="${l}" style="width:${c}%"></span></div>`:o} ${e.description&&!this.hideReadings?s`<p class="description">${e.description}</p>`:o} ${this.renderEffects(e)} ${e.remedies&&e.remedies.length>0&&!this.hideReadings?s`<div part="section remedies"><h3>${this.t("Remedies")}</h3><ul>${e.remedies.map(d=>s`<li>${d}</li>`)}</ul></div>`:o} ${"exceptions"in e&&e.exceptions&&e.exceptions.length>0&&!this.hideReadings?s`<div part="section exceptions"><h3>${this.t("Exceptions")}</h3><ul>${e.exceptions.map(d=>s`<li>${d}</li>`)}</ul></div>`:o}</article>`}renderEffects(e){if(!e.effects||this.hideReadings)return o;let t=[];for(let[r,i]of Object.entries(e.effects))if(typeof i=="string"&&i.length>0)t.push(s`<div><h3>${r}</h3><p>${i}</p></div>`);else if(i&&typeof i=="object")for(let[l,c]of Object.entries(i))typeof c=="string"&&c.length>0&&t.push(s`<div><h3>${l}</h3><p>${c}</p></div>`);return t.length===0?o:s`<div class="effects" part="section effects">${t}</div>`}};ut.endpoints=Vo,ut.styles=[v,B,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}h2,h3,p{margin:0}h2{text-transform:capitalize}.subtype{font-size:var(--roxy-text-sm)}.subtype-label{margin-inline-end:var(--roxy-space-sm)}.badge{font-weight:var(--roxy-weight-bold)}.severity-bar{border-radius:var(--roxy-radius-full);background:var(--roxy-border);block-size:.35lh;inline-size:100%;overflow:hidden}.severity-fill{background:var(--roxy-warning);block-size:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.severity-fill[data-tier="3"]{background:var(--roxy-danger)}@media (prefers-reduced-motion:reduce){.severity-fill{transition:none}}h3{margin-block-end:var(--roxy-space-xs)}ul{font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md)}.effects{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,24ch),1fr));display:grid}.effects p{font-size:var(--roxy-text-sm)}`],y([k({type:String,reflect:true})],ut.prototype,"type",2),ut=y([L("roxy-dosha-card")],ut);var Gg=/^\d+(?:[.,]\d+)*(?:\s*-\s*\d+(?:[.,]\d+)*)?$/;function Kr(n){if(!n.text)return"";let a=n.chapter==null?"":String(n.chapter),e=n.verse??"",t=a;e&&(t=a?Gg.test(e.trim())?`${a}.${e}`:`${a}, ${e}`:e);let r=n.translation?[n.translation,n.year].filter(Boolean).join(" "):"";return[[E(n.text),t].filter(Boolean).join(" "),r,n.basis].filter(Boolean).join(" \xB7 ")}var na=u`.row{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);display:grid}@container (width<=30rem){.row{grid-template-columns:minmax(0,1fr)}}`;var Fg=["vata","pitta","kapha"],Bg={"lagna-sign":"Lagna","moon-sign":"Moon sign","strongest-planet":"Strongest graha"};function Hg(n){return n.split("-").map(D).join("-")}function jg(n,a){return me(n,(a??"").split(" ").filter(Boolean).map(D))}var ia=class extends f{renderData(a){let e=this.effectiveLang(),t=a.composite;return s`<article class="card" part="card" aria-labelledby="dosha-title"><header class="head" part="header"><h2 id="dosha-title">${this.t("Ayurvedic constitution")}</h2>${t?.type?s`<span class="type">${Hg(t.type)}</span>`:o}</header>${this.renderBar(e,a)}<div class="facts" part="details">${t?.dominant?s`<span><span class="roxy-label">${this.t("Dominant")}</span><b>${D(t.dominant)}</b></span>`:o} ${t?.secondary?s`<span><span class="roxy-label">${this.t("Secondary")}</span><b>${D(t.secondary)}</b></span>`:o} ${a.lagnaSign?s`<span><span class="roxy-label">${this.t("Lagna")}</span><b>${D(a.lagnaSign)}</b></span>`:o} ${a.moonSign?s`<span><span class="roxy-label">${this.t("Moon sign")}</span><b>${D(a.moonSign)}</b></span>`:o}</div>${this.renderFactors(e,a.factors)} ${this.renderRanking(e,a.strengthRanking)} ${this.renderPlanetDoshas(a.planetDoshas)} ${a.summary&&!this.hideReadings?s`<p class="summary" part="section readings">${a.summary}</p>`:o} ${W(e,a.frame,this.translator)} ${a.meta?.disclaimer?s`<p class="disclaimer" part="disclaimer">${a.meta.disclaimer}</p>`:o}</article>`}renderBar(a,e){let t=e.composite,r=Fg.map(l=>({humour:l,value:t?.[l]??0}));return r.reduce((l,c)=>l+c.value,0)<=0?o:s`<div part="chart"><div class="bar" role="img" aria-label="${r.map(l=>`${D(l.humour)} ${te(a,l.value,0)}`).join(", ")}">${r.filter(l=>l.value>0).map(l=>s`<div class="${`seg seg-${l.humour}`}" style="${`flex: ${l.value} 0 0`}"></div>`)}</div><p class="shares">${r.map(l=>s`<span><span class="${`swatch seg-${l.humour}`}"></span>${D(l.humour)} <b>${te(a,l.value,0)}</b></span>`)}</p></div>`}renderFactors(a,e){let t=e??[];return t.length===0?o:s`<section part="section factors"><h3>${this.t("Factors")}</h3><ul class="rows">${t.map(r=>s`<li class="row" part="label-track"><span class="roxy-label">${this.factorLabel(r.id)}</span><div><span>${jg(a,r.input)}</span> ${r.doshas?.length?s`· ${r.doshas.map(i=>D(i)).join(", ")}`:o} ${typeof r.weight=="number"?s`· <span class="roxy-label">${this.t("Weight")}</span>${$(a,r.weight,2)}`:o} ${this.renderCitation(r.source)}</div></li>`)}</ul></section>`}factorLabel(a){let e=Bg[a??""];return e?this.t(e):E(a??"")}renderCitation(a){let e=Kr(a??{});return e?s`<div class="cite"><p><span class="roxy-label">${this.t("Source")}</span>${e}</p>${a?.note?s`<details class="note"><summary>${this.t("Note on the source")}${V()}</summary><p>${a.note}</p></details>`:o}</div>`:o}renderRanking(a,e){let t=e??[];return t.length===0?o:s`<section part="section ranking"><h3>${this.t("Shadbala")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Shadbala")}"><table><thead><tr><th>${this.t("Rank")}</th><th>${this.t("Graha")}</th><th>${this.t("Strength")}</th><th>${this.t("Strong")}</th></tr></thead><tbody>${t.map(r=>s`<tr class="${r.strong?"is-strong":""}"><td>${N(a,r.rank)}</td><td>${r.graha??""}</td><td>${this.t("{{value}} virupas",{value:$(a,r.totalVirupas,2)})}</td><td>${r.strong?this.t("Yes"):this.t("No")}</td></tr>`)}</tbody></table></div></section>`}renderPlanetDoshas(a){let e=a??[];return e.length===0?o:s`<section part="section planet-humours"><h3>${this.t("Planetary humours")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Planetary humours")}"><table><thead><tr><th>${this.t("Graha")}</th><th>${this.t("Humours")}</th><th>${this.t("Dhatu")}</th></tr></thead><tbody>${e.map(t=>s`<tr><td>${t.graha??""}</td><td>${(t.doshas??[]).map(r=>D(r)).join(", ")}</td><td>${[t.dhatu,t.dhatuSanskrit].filter(Boolean).join(" \xB7 ")}</td></tr>`)}</tbody></table></div>${this.renderTableSources(e)}</section>`}renderTableSources(a){let e=new Set;for(let t of a)for(let r of[t.doshaSource,t.dhatuSource]){let i=Kr(r??{});i&&e.add(i)}return e.size===0?o:s`<p class="cite"><span class="roxy-label">${this.t("Source")}</span>${[...e].join(" \xB7 ")}</p>`}};ia.endpoints=qo,ia.styles=[v,B,O,na,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}section>h3{margin-block-end:var(--roxy-space-sm)}.head{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.type{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xl);font-weight:var(--roxy-weight-bold)}.bar{width:100%;min-width:0;border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);block-size:1lh;display:flex;overflow:hidden}.seg{min-width:0}.seg-vata{background:color-mix(in srgb, var(--roxy-info) 45%, var(--roxy-surface))}.seg-pitta{background:color-mix(in srgb, var(--roxy-danger) 45%, var(--roxy-surface))}.seg-kapha{background:color-mix(in srgb, var(--roxy-success) 45%, var(--roxy-surface))}.shares,.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.swatch{block-size:.5lh;inline-size:.5lh;border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.shares b,.facts b{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.facts .roxy-label,.row>div .roxy-label,.cite .roxy-label{margin-inline-end:var(--roxy-space-xs)}.rows{margin:0;padding:0;list-style:none;display:grid}.row{align-items:baseline;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm)}.row:first-child{border-block-start:0;padding-block-start:0}.cite{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:calc(var(--roxy-space-unit) / 2)}.cite .roxy-label{font-size:inherit}.cite .note summary{align-items:center;gap:var(--roxy-space-xs);width:fit-content;color:var(--roxy-secondary);display:flex}.cite .note p{margin-block-start:calc(var(--roxy-space-unit) / 2)}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}tr.is-strong td{font-weight:var(--roxy-weight-bold)}.summary{font-size:var(--roxy-text-sm)}.disclaimer{border-inline-start:var(--roxy-line-thick) solid var(--roxy-border);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);padding-inline-start:var(--roxy-space-md)}`],ia=y([L("roxy-dosha-constitution")],ia);var oa=class extends f{renderData(a){return s`<article class="card" part="card" aria-label="${a.name??this.t("Dream symbol")}"><header class="head" part="header">${a.letter?s`<span class="letter" aria-hidden="true">${a.letter}</span>`:o}<div><p class="roxy-label">${this.t("Dream symbol")}</p>${a.name?s`<h2>${a.name}</h2>`:o}</div></header>${a.meaning?s`<p>${a.meaning}</p>`:o}</article>`}};oa.endpoints=Yo,oa.styles=[v,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{align-items:center;gap:var(--roxy-space-md);display:flex}.letter{border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-full);block-size:2lh;inline-size:2lh;color:var(--roxy-accent-ink);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);text-transform:uppercase;flex:none;justify-content:center;align-items:center;display:inline-flex}`],oa=y([L("roxy-dream-card")],oa);var la=class extends f{constructor(){super(...arguments);this.rowDetail={tag:"roxy-dream-card",path:"dreams/symbols/{id}"};this.listKey="symbols"}renderData(e){let t=e.symbols??[];if(t.length===0)return this.renderEmpty();let r=typeof e.total=="number"?e.total:t.length;return s`<section class="wrap" part="card" aria-label="${this.t("Dream symbols")}"><header class="head" part="header"><h2>${this.t("Dream symbols")}</h2><span class="count">${r===1?this.t("1 symbol"):this.t("{{count}} symbols",{count:r})}</span></header><ul class="grid" part="section symbols">${t.map(i=>s`<li><button type="button" class="result" aria-pressed="${this.openedRowId===i.id?"true":"false"}" @click="${()=>this.pickRow({id:i.id,name:i.name,letter:i.letter})}">${i.letter?s`<span class="letter" aria-hidden="true">${i.letter}</span>`:o} <span class="name">${i.name}</span></button></li>`)}</ul>${this.renderMore()} ${this.openedRow?s`<div class="detail" part="detail">${this.openedRow}</div>`:o}</section>`}};la.endpoints=Wo,la.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.count{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.grid{gap:var(--roxy-space-sm);grid-template-columns:repeat(auto-fill,minmax(min(100%,16ch),1fr));margin:0;padding:0;list-style:none;display:grid}.result{align-items:center;gap:var(--roxy-space-sm);width:100%;padding:var(--roxy-space-sm) var(--roxy-space-md);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);text-align:start;cursor:pointer;transition:border-color var(--roxy-motion-duration) var(--roxy-motion-easing);background:0 0;display:flex}.result[aria-pressed=true],.result:hover{border-color:var(--roxy-accent)}.result[aria-pressed=true] .name{color:var(--roxy-accent-ink)}.detail{margin-block-start:var(--roxy-space-md)}.letter{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);text-transform:uppercase;flex:none}.name{font-size:var(--roxy-text-sm)}`],la=y([L("roxy-dream-search")],la);var{I:mw}=ko;var zd=n=>n.strings===void 0;var Kg={},Od=(n,a=Kg)=>n._$AH=a;var Id=Ps(class extends gr{constructor(n){if(super(n),n.type!==st.PROPERTY&&n.type!==st.ATTRIBUTE&&n.type!==st.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!zd(n))throw Error("`live` bindings can only contain a single expression")}render(n){return n}update(n,[a]){if(a===$e||a===o)return a;let e=n.element,t=n.name;if(n.type===st.PROPERTY){if(a===e[t])return $e}else if(n.type===st.BOOLEAN_ATTRIBUTE){if(!!a===e.hasAttribute(t))return $e}else if(n.type===st.ATTRIBUTE&&e.getAttribute(t)===a+"")return $e;return Od(n),a}});var ft={accent:"Accent color",afterSunset:"Born after sunset",allowDuplicates:"Allow duplicate cards",allowReversals:"Allow reversed cards",angelDating:"How the name of the day is dated",annualFromYear:"Annual pillars from year",annualYears:"Years of annual pillars",approximateDate:"Approximate date",aspectTypes:"Aspect types",atbashOutput:"AtBash and Albam output",avasthaInfo:"Include avastha details",avoidAnimal:"Avoid clashes with",ayadiText:"Ayadi text family",ayanamsaValue:"Custom ayanamsa value",birthData:"Birth details",birthDate:"Birth date",birthLatitude:"Birth latitude",birthLongitude:"Birth longitude",birthTime:"Birth time",ciphers:"Ciphers to return",colors:"Brand colors",context:"Where you saw it",coordinateSystem:"Coordinate system",correlation:"Correlation constant",count:"How many",currentYear:"Current year",cuts:"Cut corners",dasha:"Dasha lords",datetime:"Date and time",dayBoundary:"Day boundary",depth:"Depth, north to south",directionScheme:"Direction reading",division:"Divisional chart",domainWeights:"Domain weights",door:"Door coordinates",doorPosition:"Door position along the side",doshaClock:"How the dosha periods are cut",endDate:"End date",endDatetime:"End date and time",expression:"Expression number",extensions:"Extended corners",facing:"Facing direction",facingDegrees:"Facing degrees",family:"Yoga family",firstName:"First name",firstNameHebrew:"First name in Hebrew",font:"Typeface",footer:"Footer line",fullName:"Full name",gainHouses:"Gain houses",grid:"Mandala grid",hastaInches:"Length of one hasta in inches",horaryNumber:"Horary number",hourClock:"Hour clock",houseSystem:"House system",id:"ID",include:"Additional bodies",includeMatches:"Include equal value matches",interpretation:"Position meaning",intervalMinutes:"Interval in minutes",isLeapMonth:"Leap month",iso2:"Country code",kua:"Kua number",lang:"Language",latinCiphers:"Also score the Latin ciphers",leapDayPolicy:"Where 29 February falls",letter:"Starting letter",letterAttribution:"Letter attribution reading",lifePath:"Life Path number",limit:"Results per page",lines:"Line pattern",logo:"Logo URL",lossHouses:"Loss houses",lunarDay:"Lunar day",lunarMonth:"Lunar month",lunarYear:"Lunar year",members:"Group members",minSignificance:"Minimum significance",minStrength:"Minimum strength",misparGadol:"Mispar gadol method",modernPlanets:"Include modern planets",moonWindows:"Moon windows",muhurtaText:"Muhurta text",nameHebrew:"Name in Hebrew",natalChart:"Natal chart",nodeType:"Lunar node type",offset:"Results to skip",polygon:"Outline",positions:"Spread positions",primary:"Primary color",q:"Search",question:"Your question",readings:"Include readings",relocationLatitude:"Relocation latitude",relocationLongitude:"Relocation longitude",returnDate:"Return date",returnYear:"Return year",ritucharyaScheme:"Season division",rituZodiac:"Zodiac the season boundaries are measured in",road:"Road side",rulingPlanets:"Ruling planets",scheme:"Karaka scheme",secondName:"Second name",secondNameHebrew:"Second name in Hebrew",sephirotSystem:"Sephirot reading",sign:"Zodiac sign",sign1:"First animal sign",sign2:"Second animal sign",signDoshaScheme:"Sign humour table",significators:"Include KP significators",size:"Paper size",slopeLowDirection:"Direction the ground falls toward",slopeSchool:"Ground level school",soulUrge:"Soul Urge number",spreadName:"Spread name",startDate:"Start date",startDatetime:"Start date and time",strictOrbs:"Use tighter orbs",system:"Avastha system",targetDate:"Target date",targetMonth:"Target month",text:"Word or name",textHebrew:"Hebrew word or name",top:"Top events per window",transitDate:"Transit date",transitTime:"Transit time",transliteration:"Transliteration scheme",treeVariant:"Tree arrangement",type:"Pattern type",vyayaFormula:"Vyaya formula",water:"Standing water direction",weights:"Layer weights",width:"Width, east to west",x:"Distance east",y:"Distance north",yearBearerSystem:"Year Bearer school",yearBoundary:"Year boundary",yearStart:"Wheel year start",zodiac:"Zodiac sign"};var Gd={"GET /angel-numbers/numbers/{number}":{number:{path:"/angel-numbers/numbers",limit:50,lang:true}},"GET /astrology/planet-meanings/{id}":{id:{path:"/astrology/planet-meanings",lang:true}},"GET /astrology/signs/{id}":{id:{path:"/astrology/signs",lang:true}},"GET /crystals":{color:{path:"/crystals/colors",lang:true},planet:{path:"/crystals/planets",lang:true}},"GET /crystals/{id}":{id:{path:"/crystals",limit:100,lang:true}},"GET /dreams/symbols":{letter:{path:"/dreams/symbols/letters"}},"GET /dreams/symbols/{id}":{id:{path:"/dreams/symbols",search:"q",limit:50}},"GET /iching/trigrams/{id}":{id:{path:"/iching/trigrams",lang:true}},"GET /tarot/cards/{id}":{id:{path:"/tarot/cards",limit:100,lang:true}}},Fd={"GET /tarot/cards":{suit:{field:"arcana",value:"major"}}};var Oe=(n,a)=>`${n}.${a}`;function sn(n){let a=/^(.+)\.(\d+)$/.exec(n);return a?{key:a[1],index:Number(a[2])}:null}function nn(n,a=Wn,e=t=>ft[t]??E(t)){let t=sn(n);return t?a("{{group}} {{n}}",{group:e(t.key),n:t.index+1}):a(E(n))}function Hd(n,a){let e=a.key??a.name;if(Kd(e))return nr(n,e);if(!a.label)return nr(n,a.name);let t=Object.keys(ft).find(r=>ft[r]===a.label);return Zn(n,a.label)??(t?nr(n,t):void 0)}function jd(n,a,e){let t=Oe(a,0);return n.filter(r=>r.group===t).map(r=>({...r,key:`${Oe(a,e)}.${r.name}`,group:Oe(a,e)}))}function Di(n){return n.length<=(on(n)?30:12)?"tiles":"select"}function on(n){return n.every(a=>a.length<=2)}var Ug=["format","branding","readings"],Vg=["latitude","longitude","timezone"],Bd=["latitude","longitude"];function Kd(n){let a=n.match(/^(.+?)(Latitude|Longitude)$/);return a?{group:a[1],leaf:a[2].toLowerCase()}:null}var qg=re.map(n=>n.toLowerCase());function ca(n,a){if(n){if("$ref"in n&&n.$ref){let e=n.$ref.split("/").pop();return e?a[e]:void 0}return n}}function Ud(n){let a=n.anyOf??n.oneOf;return!a||a.length===0?n:a.find(e=>Array.isArray(e.enum))??a.find(e=>Ai(e)&&Ai(e)!=="null")??a[0]??n}function Ai(n){if(typeof n.type=="string")return n.type;if(!Array.isArray(n.type))return;let a=n.type.filter(e=>e!=="null");return a.length===1?a[0]:void 0}function Yg(n){let a=Ud(n),e=Ai(a);return Array.isArray(a.enum)?Di(a.enum):e==="boolean"?"toggle":a.format==="date"?"date":a.format==="time"?"time":a.format==="date-time"?"datetime":e==="integer"||e==="number"?"number":e==="string"?"text":e==="array"?"array":null}function Vd(n){if(n.length!==12)return false;let a=new Set(n.map(e=>e.toLowerCase()));return qg.every(e=>a.has(e))}function rn(n,a,e){let t=Ud(a);return{key:e.key,name:n,group:e.group,inQuery:e.inQuery,kind:Yg(a)??"text",required:e.required,description:t.description??a.description,enum:t.enum,min:t.minimum??t.exclusiveMinimum,max:t.maximum??t.exclusiveMaximum,default:a.default??t.default,example:a.example??t.example}}function Ei(n){return new Set([...n.required??[],...n["x-required-any-of"]?.[0]??[]])}function qd(n,a,e,t=n.requestBody?"POST":"GET"){let r=[],i=[],l=false,c,d=n.requestBody?.content?.["application/json"]?.schema,p=ca(d,a),h=p?.["x-required-any-of"],m=(n["x-request-cost"]??1)>1;if(p?.properties){let g=Ei(p);for(let[b,w]of Object.entries(p.properties)){if(m&&Ug.includes(b))continue;let S=ca(w,a)??{},R=S.type==="array"?ca(S.items,a):void 0;if(R?.type==="object"&&R.properties){let _=Math.max(1,S.minItems??1),q=Ei(R);i.push({key:b,min:_,max:S.maxItems??_});for(let le=0;le<_;le++)for(let[Le,je]of Object.entries(R.properties)){let et=ca(je,a)??{};r.push(rn(Le,et,{key:`${Oe(b,le)}.${Le}`,group:Oe(b,le),required:g.has(b)&&q.has(Le)}))}}else if(S.type==="object"&&S.properties){let _=Ei(S);for(let[q,le]of Object.entries(S.properties)){let Le=ca(le,a)??{};Le.type==="array"&&ca(Le.items,a)?.type==="object"||r.push(rn(q,Le,{key:`${b}.${q}`,group:b,required:g.has(b)&&_.has(q)}))}}else{let _=Kd(b),q=rn(_?.leaf??b,S,{key:b,group:_?.group,required:g.has(b)});_&&(q.label=`${E(_.group)} ${_.leaf}`),r.push(q)}}}for(let g of n.parameters??[]){if(g.in!=="path"&&g.in!=="query")continue;if(g.name==="lang"&&g.in==="query"){l=true,c=ca(g.schema,a)?.enum?.filter(S=>typeof S=="string");continue}let b=ca(g.schema,a)??{},w=rn(g.name,b,{key:g.name,required:!!g.required,inQuery:g.in==="query"});if(g.in==="path"&&w.enum&&/^(id|identifier|slug)$/i.test(ft[w.name]??E(w.name))){let S=/^([A-Za-z][A-Za-z -]*?)\s+(?:id|identifier|slug)\b/i.exec(g.description??w.description??"")?.[1]?.trim();S&&(w.label=S)}r.push(w)}for(let g of r)!g.group&&!g.label&&r.some(b=>b.group&&b.name===g.name)&&(g.label=Wg(g));return Pi({title:Zg(n.summary,e),fields:r,hasLang:l,...c?.length?{langs:c}:{},...i.length>0?{repeats:i}:{},...h?{requiredAnyOf:h}:{}},t,e)}function Wg(n){let e=(ft[n.name]??E(n.name)).toLowerCase().replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^(\\p{L}+) ${e}\\b`,"iu").exec(n.description??"")?.[1];return t?ft[t.toLowerCase()+n.name.replace(/^./,r=>r.toUpperCase())]:void 0}function Pi(n,a,e){let t=`${a.toUpperCase()} /${e.replace(/^\//,"")}`,r=Gd[t]??{},i=Fd[t]??{},l=n.fields.map(g=>{let b={...g};return delete b.role,delete b.city,delete b.viewerZone,delete b.moment,delete b.fold,{...b,...r[g.key]&&{source:r[g.key]},...i[g.key]&&{disabledWhen:i[g.key]}}}),c=[...new Set(l.map(g=>g.group))].map(g=>g===void 0?{}:{key:g,label:nn(g)}),d=c.filter(g=>Bd.every(b=>l.some(w=>w.group===g.key&&w.name===b)));for(let[g,b]of d.entries()){let w=l.filter(R=>R.group===b.key),S=w.find(R=>R.name==="timezone")??(g===0?l.find(R=>!R.group&&R.name==="timezone"):void 0);b.location={fields:[...w.filter(R=>Bd.includes(R.name)).map(R=>R.key),...S?[S.key]:[]],required:w.some(R=>Vg.includes(R.name)&&R.required)}}for(let g of l)g.name==="seed"?g.role="seed":(g.name==="limit"||g.name==="offset")&&!g.required?g.role="hidden-default":d.some(b=>b.location?.fields.includes(g.key))?g.role="location":g.name==="timezone"&&(g.city=true,!g.group&&!g.required&&(g.viewerZone=true));let p=c.filter(g=>g.key!==void 0&&(g.location||l.some(b=>b.group===g.key&&b.required))),h=l.some(g=>!g.group&&!g.role&&g.required)||p.length>0||d.some(g=>g.key===void 0);for(let g of c)g.key!==void 0&&h&&!p.includes(g)&&(g.fold=true);let m=g=>p.length>0&&g.default===void 0&&(g.kind==="date"||g.kind==="time"||g.kind==="datetime");for(let g of l)g.group?c.find(b=>b.key===g.group)?.fold&&(g.fold=true):!g.role&&h&&!g.required?m(g)?g.moment=true:g.fold=true:!g.role&&!h&&g.default!==void 0&&(g.fold=true);return{...n,fields:l,groups:c,opensOnLoad:Xg(n,a)}}function Yd(n,a){let e=n.filter(t=>t.moment);return e.some(t=>t.kind==="time"||t.kind==="datetime")&&e.every(t=>a[t.key]===void 0||a[t.key]==="")}function Zg(n,a){let e=n?.split(" - ")[0]?.trim();return e||E(a.split("/").pop()??"")}function Xg(n,a){return a.toUpperCase()==="GET"&&!n.fields.some(e=>e.required)}function Wd(n,a=[]){if(a.some(t=>t.name==="limit"||t.name==="offset"))return"Search";let e=n.toLowerCase();return/compat|synastry|guna|connection|penta|composite/.test(e)?"Compare":/\bcast\b|\/draw|iching|hexagram|tarot/.test(e)?"Cast":/horoscope|dream|angel|nakshatra|crystal|meaning|reference/.test(e)?"Get reading":"Generate"}function Zd(n,a){let e=ys(n,a);return e&&`${e}/schemas`}function Xd(n,a){let e=a.replace(/^\//,"").replace(/[{}]/g,"").replace(/\//g,"-");return`${n.toLowerCase()}--${e}.json`}function Jg(n){if(Array.isArray(n))return n;if(!n||typeof n!="object")return null;let a=Object.values(n),e=a.find(Array.isArray);return e||(a.find(r=>!!r&&typeof r=="object"&&Object.values(r).every(i=>typeof i=="number"))??null)}function _i(n,a="id"){let e=Jg(n);if(!e)return[];if(!Array.isArray(e)){let r=Object.keys(e),i=r.length>0&&r.every(c=>/^[a-z]$/.test(c));return(i?[..."abcdefghijklmnopqrstuvwxyz"]:r).map(c=>({value:c,label:i?c.toUpperCase():c,disabled:!e[c]}))}let t=[];for(let r of e){if(typeof r=="string"){t.push({value:r,label:r});continue}if(!r||typeof r!="object")continue;let i=r,l=i.id??i[a]??i.number;if(l==null)continue;let c=String(l),d=i.name??i.english;t.push({value:c,label:typeof d=="string"?d:c})}return t}function Jd(n){let a=n?.total;return typeof a=="number"?a:void 0}var ln=u`.spinner{inset-inline-end:calc(var(--roxy-space-unit) * 3);border:var(--roxy-line-thick) solid var(--roxy-muted);border-radius:var(--roxy-radius-full);border-top-color:#0000;block-size:.6lh;inline-size:.6lh;animation:.7s linear infinite roxy-spin;position:absolute;top:50%;transform:translateY(-50%)}@keyframes roxy-spin{to{transform:translateY(-50%)rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation:none}}.results{z-index:50;top:calc(100% + var(--roxy-space-xs));padding:var(--roxy-space-xs);background:var(--roxy-bg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);box-shadow:var(--roxy-shadow-md);max-block-size:15lh;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing);margin:0;list-style:none;position:absolute;left:0;right:0;overflow-y:auto}.option{align-items:center;gap:var(--roxy-space-sm);inline-size:100%;min-block-size:var(--roxy-touch);padding:var(--roxy-space-sm) var(--roxy-space-md);border-radius:var(--roxy-radius-sm);text-align:start;font-size:var(--roxy-text-sm);color:var(--roxy-fg);cursor:pointer;transition:background-color var(--roxy-motion-duration);background:0 0;border:0;display:flex}.option:hover,.option[aria-selected=true]{background:color-mix(in srgb, var(--roxy-accent) 10%, transparent)}.empty{padding:var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-sm)}`;function cn(n,a){let e,t=((...r)=>{e&&clearTimeout(e),e=setTimeout(()=>{e=void 0,n(...r)},a)});return t.cancel=()=>{e&&(clearTimeout(e),e=void 0)},t}var Qg=10,ey=10,Mi=new Map;function Qd(n,a,e={}){return{...n.limit?{limit:n.limit}:{},...n.lang&&a?{lang:a}:{},...e}}function zi(n,a,e,t){let r=JSON.stringify([n.submitUrl??n.baseUrl,a.path,e,t]),i=Mi.get(r);return i||(i=ty(n,a,e,t).catch(l=>{throw Mi.delete(r),l}),Mi.set(r,i)),i}async function ty(n,a,e,t){let r=[];for(let i=0;i<ey;i++){let l=await It(n,{path:a.path,method:"GET",query:Qd(a,t,r.length?{offset:r.length}:{})}),c=_i(l,e);r.push(...c);let d=Jd(l);if(!a.limit||d===void 0||r.length>=d||!c.length)break}return r}var Ni=n=>n.normalize("NFD").replace(new RegExp("\\p{M}","gu"),"").toLowerCase(),dn=class{constructor(a,e,t,r,i){this.host=a;this.source=e;this.field=t;this.context=r;this.onPick=i;this.query="";this.options=[];this.open=false;this.highlight=-1;this.loading=false;this.error=null;this.search=cn(a2=>{this.searchServer(a2)},250);a.addController(this)}hostDisconnected(){this.search.cancel(),this.abort?.abort()}input(a){this.query=a,this.error=null,this.source.search?a.trim().length<2?this.close():this.search(a):this.filter(a),this.host.requestUpdate()}focus(){!this.source.search&&!this.open&&this.filter(this.query)}close(){this.open=false,this.highlight=-1,this.host.requestUpdate()}pick(a){this.query=a.label,this.close(),this.onPick(a)}keydown(a){let e=this.options.length;if(a.key==="Escape"){this.close();return}if(a.key==="ArrowDown"&&!this.open){a.preventDefault(),this.input(this.query);return}if(!(!this.open||e===0)){if(a.key==="ArrowDown")this.highlight=(this.highlight+1)%e;else if(a.key==="ArrowUp")this.highlight=(this.highlight-1+e)%e;else if(a.key==="Home")this.highlight=0;else if(a.key==="End")this.highlight=e-1;else if(a.key==="Enter"){let t=this.options[this.highlight]??this.options[0];t&&this.pick(t)}else return;a.preventDefault(),this.host.requestUpdate()}}async filter(a){let{route:e,lang:t}=this.context();this.loading=true,this.host.requestUpdate();try{let r=await zi(e,this.source,this.field,t);if(a!==this.query)return;let i=Ni(a.trim());this.show(r.filter(l=>Ni(l.label).includes(i)||Ni(l.value).includes(i)))}catch(r){this.fail(r)}finally{this.loading=false,this.host.requestUpdate()}}async searchServer(a){let{route:e,lang:t}=this.context(),r=this.source.search;this.abort?.abort();let i=new AbortController;this.abort=i,this.loading=true,this.host.requestUpdate();try{let l=await It(e,{path:this.source.path,method:"GET",query:Qd({...this.source,limit:Qg},t,{[r]:a})},i.signal);if(i.signal.aborted)return;this.show(_i(l,this.field))}catch(l){if(i.signal.aborted)return;this.fail(l)}finally{this.abort===i&&(this.abort=void 0),i.signal.aborted||(this.loading=false,this.host.requestUpdate())}}show(a){this.options=a,this.open=true,this.highlight=a.length?0:-1}fail(a){this.options=[],this.open=false,this.error=a instanceof Error?a.message:String(a)}};function ep(n,a,e,t={}){let r=`${a}-listbox`;return s`<div class="picker"><input id="${a}" type="text" role="combobox" aria-expanded="${n.open?"true":"false"}" aria-controls="${r}" aria-autocomplete="list" aria-labelledby="${U(t.labelledby)}" aria-describedby="${U(t.describedby)}" aria-invalid="${U(t.invalid?"true":void 0)}" aria-activedescendant="${n.open&&n.highlight>=0?`${a}-opt-${n.highlight}`:""}" autocomplete="off" placeholder="${e.placeholder}" .value="${n.query}" @input="${i=>n.input(i.target.value)}" @keydown="${i=>n.keydown(i)}" @focus="${()=>n.focus()}" @blur="${()=>n.close()}"> ${n.loading?s`<span class="spinner" role="status" aria-label="${e.loading}"></span>`:o} ${n.open?s`<ul id="${r}" class="results" role="listbox">${n.options.length===0?s`<li class="empty" role="status">${e.empty}</li>`:n.options.map((i,l)=>s`<li id="${`${a}-opt-${l}`}" class="option" role="option" aria-selected="${n.highlight===l?"true":"false"}" @mousedown="${c=>c.preventDefault()}" @click="${()=>n.pick(i)}">${i.label}</li>`)}</ul>`:o}</div>${n.error?s`<small class="field-error" role="alert">${n.error}</small>`:o}`}var tp=[ln,u`.picker{position:relative}`];var ny={};var ap=`${lr}/openapi.json`,rp=Zd(sr,globalThis.document?.currentScript?.src||ny.url),Oi=new Map,pn=class extends Error{constructor(e){super(`HTTP ${e}`);this.status=e}},hn=class extends Error{constructor(e,t){super(`Endpoint ${e} ${t} not found in OpenAPI spec`);this.method=e;this.path=t}};async function ay(n){let a=Oi.get(n);return a||(a=fetch(n).then(async e=>{if(!e.ok)throw new pn(e.status);return await e.json()}).catch(e=>{throw Oi.delete(n),e}),Oi.set(n,a)),a}function ry(){return globalThis.crypto?.randomUUID?.()??Math.random().toString(36).slice(2)}var sp=n=>/\bbirth/i.test(n?.description??""),np=n=>n.key===`${n.group}.${n.name}`;function sy(n){let a=n.trim();if(!a)return[];try{let e=JSON.parse(a);if(Array.isArray(e))return e}catch{}return a.split(",").map(e=>e.trim()).filter(Boolean)}var ee=class extends Ot{constructor(){super(...arguments);this.endpoint="vedic-astrology/birth-chart";this.method="POST";this.specUrl="";this.submitLabel="";this.serverIssues=null;this.autoload=false;this.fullPages=false;this.choices={};this.pickers=new Map;this.clearedIssues=new Set;this.fields=[];this.groups=[];this.modelOpensOnLoad=false;this.repeats=[];this.formTitle="";this.hasLang=false;this.values={};this.loaded=false;this.specError=null;this.validationErrors=[];this.retryLoadSchema=()=>{this.loaded=false,this.specError=null,this.loadSchema()};this.onSubmit=e=>{e.preventDefault(),this.submit()}}connectedCallback(){super.connectedCallback(),this.loadSchema()}async loadSchema(){this.specError=null;try{this.applyModel(await this.resolveModel())}catch(e){this.specError=this.specErrorMessage(e),this.loaded=true,this.dispatchEvent(new CustomEvent("roxy-spec-error",{detail:{url:this.specUrl||ap,message:e instanceof Error?e.message:String(e)},bubbles:true,composed:true}))}}specErrorMessage(e){return e instanceof pn?this.t("HTTP error {{status}}",{status:e.status}):e instanceof hn?this.t("Endpoint {{method}} {{path}} not found in OpenAPI spec",{method:e.method,path:e.path}):e instanceof Error?e.message:String(e)}async resolveModel(){return this.specUrl?this.modelFromSpec(this.specUrl):await this.tryLoadSlice()??this.modelFromSpec(ap)}async modelFromSpec(e){let t=await ay(e),r=`/${this.endpoint.replace(/^\//,"")}`,i=t.paths?.[r]?.[this.method.toLowerCase()];if(!i)throw new hn(this.method,r);return qd(i,t.components?.schemas??{},this.endpoint,this.method)}async tryLoadSlice(){if(!rp)return null;try{let e=await fetch(`${rp}/${Xd(this.method,this.endpoint)}`);return e.ok?await e.json():null}catch{return null}}applyModel(e){(!e.groups||e.opensOnLoad===void 0)&&(e=Pi(e,this.method,this.endpoint)),this.fields=e.fields,this.groups=e.groups??[],this.modelOpensOnLoad=e.opensOnLoad??false,this.repeats=e.repeats??[],this.formTitle=e.title,this.hasLang=e.hasLang,this.langs=e.langs;let t={};for(let r of e.fields){let i=r.viewerZone?void 0:this.fullPages&&r.name==="limit"&&this.roleOf(r)==="hidden-default"?r.max??r.default:r.default;i!==void 0&&(t[r.key]=i);let l=r.group&&np(r)?this.initialValues?.[r.group]?.[r.name]:this.initialValues?.[r.key];l!==void 0&&(t[r.key]=l)}this.values=this.withoutDisabled(t),this.loaded=true,this.loadChoices(),this.autoload&&this.opensOnLoad&&Jn(this.route)&&this.updateComplete.then(()=>this.submit())}get route(){return this.apiRoute??{publishableKey:this.publishableKey}}loadChoices(){for(let t of this.pickers.values())this.removeController(t);if(this.pickers.clear(),!Jn(this.route))return;let e=()=>({route:this.route,lang:this.requestLang()});for(let t of this.fields)if(t.source){if(t.required){let r=new dn(this,t.source,t.name,e,i=>this.pickChoice(t,i.value));r.query=String(this.values[t.key]??""),this.pickers.set(t.key,r);continue}this.choices={...this.choices,[t.key]:"loading"},zi(this.route,t.source,t.name,this.requestLang()).then(r=>{this.choices={...this.choices,[t.key]:r}},()=>{let{[t.key]:r,...i}=this.choices;this.choices=i})}}setValue(e,t){this.setValues({[e]:t})}setValues(e){this.values=this.withoutDisabled({...this.values,...e});let t=Object.keys(e).filter(r=>this.serverIssues?.some(i=>i.path===r));t.length&&(this.clearedIssues=new Set([...this.clearedIssues,...t]))}isDisabled(e,t=this.values){let r=e.disabledWhen;return!!r&&t[r.field]===r.value}withoutDisabled(e){for(let t of this.fields)this.isDisabled(t,e)&&(e[t.key]=void 0);return e}willUpdate(e){e.has("serverIssues")&&(this.clearedIssues=new Set);let t=e.has("publishableKey")?Va(this.publishableKey):void 0;t&&ir(this,t,{warn:true})}liveIssues(){return(this.serverIssues??[]).filter(e=>!this.clearedIssues.has(e.path))}issueFor(e){return this.liveIssues().find(t=>t.path===e.key)}cityIssues(e){return this.liveIssues().filter(t=>{let r=this.fields.find(i=>i.key===t.path);return!!r&&this.roleOf(r)==="location"&&this.cityGroup(r)===e})}issuesForGroup(e){return this.liveIssues().filter(t=>t.path===e)}fieldLabel(e){return this.roleOf(e)==="location"||e.city?this.locationLabel(this.cityGroup(e)):e.group?`${this.groupName(e.group)} ${this.fieldText(e)}`:this.fieldText(e)}issueLines(e){return e.map(t=>s`<small part="field-error" class="field-error" role="alert">${t.message}</small>`)}fieldIssue(e){let t=this.issueFor(e);return t?s`<small part="field-error" class="field-error" id="${`roxy-form-${e.key}-error`}" role="alert">${t.message}</small>`:o}renderIssueSummary(){let e=this.liveIssues();if(e.length===0)return o;let t=r=>{let i=this.fields.find(c=>c.key===r);if(i)return this.fieldLabel(i);let l=this.groupKeys().find(c=>c===r);return l?this.groupName(l):this.fieldText({name:r.split(".")[0]??r})};return s`<div part="validation-error" class="validation-error" role="alert">${e.map(r=>s`<div><strong>${t(r.path)}</strong> ${r.message}</div>`)}</div>`}roleOf(e){return e.role??"normal"}isRendered(e){return this.roleOf(e)==="normal"}groupKeys(){return this.groups.map(e=>e.key)}groupHasLocation(e){return!!this.groups.find(t=>t.key===e)?.location}cityGroup(e){return this.groups.find(t=>t.location?.fields.includes(e.key))?.key??e.group}placeField(e){let t=this.fields.filter(r=>r.group===e);return t.find(r=>r.name==="latitude")??t.find(r=>r.name==="timezone")}locationRequired(e){return this.groups.find(t=>t.key===e)?.location?.required??false}get soleChoice(){if(this.groupKeys().some(r=>this.groupHasLocation(r))||this.groupKeys().some(r=>r!==void 0))return null;let e=this.fields.filter(r=>r.required&&this.isRendered(r)),t=e[0];return e.length!==1||!t?null:t.kind==="tiles"||t.kind==="select"||this.pickers.has(t.key)?t:null}get opensOnLoad(){return this.modelOpensOnLoad}isFilter(e){return this.opensOnLoad&&!e.required&&!!(e.enum||e.source)}get selfSubmits(){if(this.soleChoice)return true;if(!this.opensOnLoad)return false;let e=this.fields.filter(t=>this.isRendered(t));return e.length>0&&e.every(t=>this.isFilter(t))}choiceKind(e){let t=this.choicesOf(e).map(r=>r.value);return this.isFilter(e)&&!on(t)?"select":this.choices[e.key]?Di(t):e.kind}choicesOf(e){let t=this.choices[e.key];return Array.isArray(t)?t:(e.enum??[]).map(r=>({value:r,label:this.optionText(e.name,r)}))}effectiveSubmitLabel(){return this.submitLabel?this.submitLabel:Yd(this.fields,this.values)?this.t("Show right now"):this.t(Wd(this.endpoint,this.fields))}requestLang(e){return ms(this,e)}fieldText(e){let t=this.requestLang();return e.label?Hd(t,e)??e.label:X(t,e.name,ft[e.name])}optionText(e,t){return j(this.requestLang(),e,t)}onLocationFor(e){return t=>{let r=this.groups.find(l=>l.key===e)?.location?.fields??[],i={};for(let l of r){let c=this.fields.find(d=>d.key===l)?.name;c&&(i[l]=t[c])}this.setValues(i)}}chooseOption(e,t){if(this.isFilter(e)){this.setFilter(e,this.values[e.key]===t?"":t),this.submit();return}this.pickChoice(e,t)}pickChoice(e,t){this.setValue(e.key,t),this.resend()}resend(){let e=this.soleChoice;e&&this.values[e.key]&&this.submit()}setFilter(e,t){let r={[e.key]:t};for(let i of this.fields)i!==e&&(this.isFilter(i)||this.opensOnLoad&&i.kind==="text"&&this.isRendered(i))&&(r[i.key]=void 0);this.setValues(r)}onTilesKeyDown(e){return t=>{let r=this.choicesOf(e).filter(h=>!h.disabled).map(h=>h.value);if(r.length===0)return;let i=r.indexOf(this.values[e.key]),l;if(t.key==="Home")l=0;else if(t.key==="End")l=r.length-1;else if(t.key==="ArrowRight"||t.key==="ArrowDown")l=i===-1?0:(i+1)%r.length;else if(t.key==="ArrowLeft"||t.key==="ArrowUp")l=i===-1?r.length-1:(i-1+r.length)%r.length;else return;t.preventDefault();let c=r[l];if(c===void 0)return;this.chooseOption(e,c);let d=t.currentTarget,p=this.choicesOf(e).findIndex(h=>h.value===c);requestAnimationFrame(()=>d.querySelector(`[data-tile='${p}']`)?.focus())}}submit(){let e=this.collectMissing();if(e.keys.length>0){this.validationErrors=e.labels,this.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{missing:e.keys},bubbles:true,composed:true}));return}this.validationErrors=[],this.clearedIssues=new Set((this.serverIssues??[]).map(l=>l.path));let t={};for(let l of this.fields){let c=this.values[l.key];if(l.name==="seed"&&(c===void 0||c==="")&&(c=ry()),l.viewerZone&&(c===void 0||c==="")&&(c=Ec()??l.default),c===void 0||c==="")continue;l.kind==="array"&&typeof c=="string"&&(c=sy(c));let d=l.group?sn(l.group):null;if(d){let p=t[d.key]??[],h=p[d.index]??{};h[l.name]=c,p[d.index]=h,t[d.key]=p}else if(l.group&&np(l)){let p=t[l.group]??{};p[l.name]=c,t[l.group]=p}else t[l.key]=c}let r=this.fields.filter(l=>l.inQuery).map(l=>l.name),i=this.requestLang(this.langs);this.hasLang&&i&&(t.lang=i,r.push("lang")),this.dispatchEvent(new CustomEvent("roxy-submit",{detail:{endpoint:this.endpoint,values:t,queryKeys:r,sticky:this.soleChoice!=null||this.opensOnLoad},bubbles:true,composed:true}))}collectMissing(){let e=[],t=[],r=new Set;for(let i of this.fields){if(!i.required)continue;let l=this.roleOf(i)==="location";if(!this.isRendered(i)&&!l)continue;let c=this.values[i.key];if(!(c!==void 0&&c!=="")){if(e.push(i.key),l){r.add(this.cityGroup(i));continue}t.push(this.fieldLabel(i))}}for(let i of r)t.push(this.locationLabel(i));return{keys:e,labels:t}}get readsEnglish(){return ql(this.effectiveLang())}renderTitle(){return this.readsEnglish?s`<h2 part="title" class="title" id="roxy-form-title">${this.formTitle}</h2>`:o}reqMark(e){return e.required?s`<span class="req" aria-hidden="true">*</span>`:o}description(e){if(!e.description||!this.readsEnglish)return o;if(e.description.length<=120)return s`<small part="hint" class="help">${e.description}</small>`;let t=e.description.split(". ")[0]??e.description;return s`<details part="hint" class="help-details"><summary><span class="help-lead">${t}</span>${V()}</summary><small class="help help-full">${e.description}</small></details>`}renderTiles(e){let t=`roxy-form-${e.key}-label`,r=!!e.enum&&Vd(e.enum),i=this.choicesOf(e),l=on(i.map(p=>p.value)),c=i.findIndex(p=>p.value===this.values[e.key]),d=c===-1?i.findIndex(p=>!p.disabled):c;return s`<div class="field tiles-field"><span class="label" id="${t}">${this.fieldText(e)}${this.reqMark(e)}</span><div class="${l?"tiles narrow":"tiles"}" role="radiogroup" aria-labelledby="${t}" @keydown="${this.onTilesKeyDown(e)}">${i.map((p,h)=>{let m=this.values[e.key]===p.value,g=r?z(p.value):void 0;return s`<button type="button" class="tile" role="radio" data-tile="${h}" aria-checked="${m?"true":"false"}" tabindex="${h===d?"0":"-1"}" ?disabled="${!!p.disabled||this.isDisabled(e)}" @click="${()=>this.chooseOption(e,p.value)}">${g?s`<span class="tile-glyph roxy-glyph" aria-hidden="true">${g}</span>`:o} <span class="tile-label">${p.label}</span></button>`})}</div>${this.description(e)} ${this.fieldIssue(e)}</div>`}renderSelect(e){let t=`roxy-form-${e.key}`;return s`<div part="field" class="field"><label for="${t}">${this.fieldText(e)}${this.reqMark(e)}</label> <select id="${t}" ?required="${e.required}" ?disabled="${this.isDisabled(e)}" aria-invalid="${U(this.issueFor(e)?"true":void 0)}" aria-describedby="${U(this.issueFor(e)?`${t}-error`:void 0)}" .value="${Id(this.values[e.key]??"")}" @change="${r=>this.chooseOption(e,r.target.value)}"><option value="">${this.t("Choose")}</option>${this.choicesOf(e).map(r=>s`<option value="${r.value}" ?selected="${this.values[e.key]===r.value}" ?disabled="${!!r.disabled}">${r.label}</option>`)}</select> ${this.description(e)} ${this.fieldIssue(e)}</div>`}renderPickerField(e,t){let r=`roxy-form-${e.key}`,i=this.soleChoice?.key===e.key&&this.readsEnglish,l=this.issueFor(e);return s`<div part="field" class="field">${i?o:s`<label for="${r}">${this.fieldText(e)}${this.reqMark(e)}</label>`} ${ep(t,r,{placeholder:this.t("Type to search"),empty:this.t("{{count}} matches",{count:0}),loading:this.t("Loading")},{labelledby:i?"roxy-form-title":void 0,describedby:l?`${r}-error`:void 0,invalid:!!l})} ${this.fieldIssue(e)}</div>`}renderToggle(e){let t=`roxy-form-${e.key}`,r=this.values[e.key]===true;return s`<div part="field" class="field"><div class="toggle-row"><button type="button" id="${t}" class="toggle" role="switch" aria-checked="${r?"true":"false"}" @click="${()=>this.pickChoice(e,!r)}"><span class="knob"></span></button> <label class="toggle-label" for="${t}">${this.fieldText(e)}${this.reqMark(e)}</label></div>${this.description(e)} ${this.fieldIssue(e)}</div>`}renderInput(e){let t=`roxy-form-${e.key}`,r=e.kind==="datetime"?"datetime-local":e.kind==="number"?"number":e.kind,i=e.example!=null?String(e.example):"",l=e.kind==="array"?this.t("Comma separated"):this.readsEnglish||!new RegExp("\\p{L}","u").test(i)?i:"";return s`<div part="field" class="field"><label for="${t}">${this.fieldText(e)}${this.reqMark(e)}</label> <input id="${t}" type="${e.kind==="array"?"text":r}" ?required="${e.required}" ?disabled="${this.isDisabled(e)}" aria-invalid="${U(this.issueFor(e)?"true":void 0)}" aria-describedby="${U(this.issueFor(e)?`${t}-error`:void 0)}" min="${U(e.min)}" max="${U(e.max)}" step="${e.kind==="number"?"any":o}" placeholder="${l||o}" .value="${this.values[e.key]??""}" @input="${c=>{let d=this.coerce(e.kind,c.target.value);this.opensOnLoad&&e.kind==="text"?this.setFilter(e,d):this.setValue(e.key,d)}}" @change="${()=>this.resend()}"> ${this.description(e)} ${this.fieldIssue(e)}</div>`}renderField(e){if(e.city)return this.renderTimezoneCity(e);let t=this.pickers.get(e.key);if(t)return this.renderPickerField(e,t);let r=this.choices[e.key];return r==="loading"?s`<div class="field"><div class="roxy-skeleton field-skeleton" aria-label="${this.t("Loading")}" role="status"></div></div>`:r||e.kind==="tiles"||e.kind==="select"?this.choiceKind(e)==="tiles"?this.renderTiles(e):this.renderSelect(e):e.kind==="toggle"?this.renderToggle(e):this.renderInput(e)}groupName(e){return nn(e,(t,r)=>this.t(t,r),t=>this.fieldText({name:t}))}repeatCount(e){return new Set(this.fields.map(t=>t.group&&sn(t.group)).filter(t=>t&&t.key===e).map(t=>t.index)).size}addRecord(e){let t=this.repeatCount(e),r=jd(this.fields,e,t),i=this.groups.find(c=>c.key===Oe(e,0));if(i){let c=d=>d.replace(`${Oe(e,0)}.`,`${Oe(e,t)}.`);this.groups=[...this.groups,{...i,key:Oe(e,t),label:nn(Oe(e,t)),...i.location&&{location:{...i.location,fields:i.location.fields.map(c)}}}]}let l={...this.values};for(let c of r)c.default!==void 0&&(l[c.key]=c.default);this.values=l,this.fields=[...this.fields,...r]}removeRecord(e){let t=Oe(e,this.repeatCount(e)-1);this.fields=this.fields.filter(i=>i.group!==t),this.groups=this.groups.filter(i=>i.key!==t);let r={...this.values};for(let i of Object.keys(r))i.startsWith(`${t}.`)&&delete r[i];this.values=r}repeatControls(e){let t=this.repeatCount(e.key);return e.max<=e.min?o:s`<div class="repeat-controls">${t<e.max?s`<button type="button" class="repeat-btn" @click="${()=>this.addRecord(e.key)}"><span aria-hidden="true">+</span> ${this.t("Add")}</button>`:o} ${t>e.min?s`<button type="button" class="repeat-btn" @click="${()=>this.removeRecord(e.key)}"><span aria-hidden="true">−</span> ${this.t("Remove")}</button>`:o}</div>`}locationLabel(e){return e?this.t("{{group}} location",{group:this.groupName(e)}):sp(this.placeField(e))?this.t("Birth location"):this.t("Location")}locationBlock(e){return s`<div class="location-block"><label>${this.locationLabel(e)}${this.locationRequired(e)?s`<span class="req" aria-hidden="true">*</span>`:o}</label> ${this.citySearch(e,this.onLocationFor(e))} ${this.issueLines(this.cityIssues(e))}</div>`}renderTimezoneCity(e){return s`<div part="field" class="field location-block"><label>${this.locationLabel(e.group)}${this.reqMark(e)}</label> ${this.citySearch(e.group,t=>this.pickChoice(e,t.timezone))} ${this.fieldIssue(e)}</div>`}citySearch(e,t){let r=e?this.t("{{group}} city",{group:this.groupName(e)}):sp(this.placeField(e))?this.t("City of birth"):void 0;return s`<roxy-location-search endpoint="${U(this.locationUrl||void 0)}" publishable-key="${U(this.publishableKey)}" .submitUrl="${this.route.submitUrl}" .submitContext="${this.route.submitContext}" lang="${U(this.effectiveLang())}" placeholder="${U(r)}" @roxy-location-select="${i=>t(i.detail)}"></roxy-location-search><small class="help">${this.t("Type a city, then pick it from the list.")}</small>`}groupCard(e){let t=this.fields.filter(r=>r.group===e&&this.isRendered(r));return s`<fieldset part="group" class="person-group"><legend>${this.groupName(e)}</legend>${this.groupHasLocation(e)?this.locationBlock(e):o}<div class="fields">${t.map(r=>this.renderField(r))}</div>${this.issueLines(this.issuesForGroup(e))}</fieldset>`}render(){return s`${this.renderFontStyle()}${this.renderBody()}`}renderBody(){if(!this.loaded)return s`<form><div class="roxy-skeleton form-skeleton"></div></form>`;if(this.specError)return s`<div class="roxy-error" role="alert">${this.t("Schema load failed: {{message}}",{message:this.specError})} <button type="button" class="submit" @click="${this.retryLoadSchema}">${this.t("Retry")}</button></div>`;let e=Va(this.publishableKey);if(e)return s`<form>${this.renderTitle()}<div part="validation-error" class="validation-error" role="alert">${this.t(e.message)}</div></form>`;let t=this.fields.filter(h=>!h.group&&this.isRendered(h)),r=this.groupKeys().filter(h=>h!==void 0),i=t.filter(h=>!h.fold),l=t.filter(h=>h.fold),c=r.filter(h=>!this.groups.find(m=>m.key===h)?.fold),d=r.filter(h=>this.groups.find(m=>m.key===h)?.fold),p=l.length>0||d.length>0;return s`<form @submit="${this.onSubmit}">${this.renderTitle()} ${this.validationErrors.length>0?s`<div part="validation-error" class="validation-error" role="alert"><strong>${this.t("Please complete:")}</strong> ${this.validationErrors.join(", ")}</div>`:o} ${this.renderIssueSummary()}<div class="fields">${i.map(h=>this.renderField(h))}</div>${this.groupHasLocation(void 0)?this.locationBlock(void 0):o} ${c.map(h=>this.groupCard(h))} ${this.repeats.map(h=>this.repeatControls(h))} ${p?s`<details part="advanced" class="advanced" ?open="${this.liveIssues().some(h=>[...l.map(m=>m.key),...d].some(m=>h.path===m||h.path.startsWith(`${m}.`)))}"><summary>${this.t("Advanced")}${V()}</summary><div class="fields">${l.map(h=>this.renderField(h))}</div>${d.map(h=>this.groupCard(h))}</details>`:o} ${this.selfSubmits?o:s`<button part="submit" class="submit" type="submit">${this.effectiveSubmitLabel()}</button>`}</form>`}coerce(e,t){if(t!==""){if(e==="number"){let r=Number(t);return Number.isFinite(r)?r:void 0}return t}}};ee.styles=[v,O,tp,u`form{gap:var(--roxy-space-md);background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);padding:var(--roxy-space-lg);box-shadow:var(--roxy-shadow-sm);grid-template-columns:minmax(0,1fr);display:grid}.title{margin:0}.fields{align-items:start;gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(22ch,1fr));display:grid}.fields:empty{display:none}.person-group{gap:var(--roxy-space-md);min-inline-size:0;padding:var(--roxy-space-md) 0 0;border:0;border-block-start:1px solid var(--roxy-border);margin:0;display:grid}.person-group legend{float:inline-start;color:var(--roxy-fg);font-weight:var(--roxy-weight-bold);padding:0}.field{gap:var(--roxy-space-xs);flex-direction:column;min-inline-size:0;display:flex}.fields>*{min-inline-size:0}.tiles-field{grid-column:1/-1}label,.label{font-size:var(--roxy-text-sm);color:var(--roxy-secondary)}.req{color:var(--roxy-danger-fg);margin-inline-start:var(--roxy-space-xs)}input,select{inline-size:100%;min-inline-size:0;min-block-size:var(--roxy-touch)}.help{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.field-error{color:var(--roxy-danger-fg);font-size:var(--roxy-text-xs)}input[aria-invalid=true],select[aria-invalid=true]{border-color:var(--roxy-danger)}input:disabled,select:disabled{cursor:default;color:var(--roxy-muted);border-style:dashed}.help-details>summary{align-items:center;gap:var(--roxy-space-xs);color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:flex}.help-details .help-lead{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.help-details .help-full{margin-block-start:var(--roxy-space-xs);display:block}.location-block{gap:var(--roxy-space-xs);grid-column:1/-1;display:grid}.tiles{gap:var(--roxy-space-sm);grid-template-columns:repeat(auto-fit,minmax(10ch,1fr));display:grid}.tiles.narrow{gap:var(--roxy-space-xs);grid-template-columns:repeat(auto-fill,minmax(4ch,1fr))}.tile{justify-content:center;align-items:center;gap:calc(var(--roxy-space-unit) / 2);min-block-size:var(--roxy-touch);padding:var(--roxy-space-sm);background:var(--roxy-bg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-size:var(--roxy-text-sm);cursor:pointer;transition:border-color var(--roxy-motion-duration) var(--roxy-motion-easing), background-color var(--roxy-motion-duration) var(--roxy-motion-easing);flex-direction:column;display:flex}.tile:hover:not(:disabled){border-color:var(--roxy-accent)}.tile:disabled{cursor:default;color:var(--roxy-muted);border-style:dashed}.tile[aria-checked=true]{border-color:var(--roxy-accent);background:color-mix(in srgb, var(--roxy-accent) 12%, transparent);color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.tile-glyph{font-size:var(--roxy-text-lg);line-height:1}.toggle-row{align-items:center;gap:var(--roxy-space-sm);display:flex}.toggle{box-sizing:content-box;block-size:.8lh;inline-size:1.6lh;padding:calc(var(--roxy-space-unit) / 2);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-full);background:var(--roxy-border);cursor:pointer;transition:background-color var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0;display:inline-flex}.toggle[aria-checked=true]{background:var(--roxy-accent);border-color:var(--roxy-accent)}.toggle .knob{border-radius:var(--roxy-radius-full);background:var(--roxy-bg);block-size:.8lh;inline-size:.8lh;transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing)}.toggle[aria-checked=true] .knob{transform:translate(100%)}.toggle-label{cursor:pointer}@media (prefers-reduced-motion:reduce){.tile,.toggle,.toggle .knob{transition:none}}.advanced{border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md)}.advanced>summary{align-items:center;gap:var(--roxy-space-xs);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);display:flex}.advanced[open]>summary{margin-block-end:var(--roxy-space-md)}.repeat-controls{gap:var(--roxy-space-sm);display:flex}.repeat-btn{color:var(--roxy-accent-ink);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);padding:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);cursor:pointer;background:0 0}.repeat-btn:hover{border-color:var(--roxy-accent-ink)}.advanced .fields,.advanced .person-group{margin-block-start:var(--roxy-space-md)}.validation-error{gap:var(--roxy-space-xs);border-inline-start:var(--roxy-line-thick) solid var(--roxy-danger);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);padding-inline-start:var(--roxy-space-sm);display:grid}button.submit{min-block-size:var(--roxy-touch);background:var(--roxy-accent-ink);color:var(--roxy-bg);border-radius:var(--roxy-radius-md);padding:var(--roxy-space-sm) var(--roxy-space-lg);font-weight:var(--roxy-weight-bold);cursor:pointer;transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);border:0;justify-self:start}button.submit:hover{transform:scale(1.02)}@media (prefers-reduced-motion:reduce){button.submit{transition:none}}.field-skeleton{block-size:var(--roxy-touch)}.form-skeleton{block-size:5lh}`],y([k({type:String,attribute:"data-endpoint"})],ee.prototype,"endpoint",2),y([k({type:String})],ee.prototype,"method",2),y([k({type:String,attribute:"spec-url"})],ee.prototype,"specUrl",2),y([k({type:String,attribute:"submit-label"})],ee.prototype,"submitLabel",2),y([k({type:String,attribute:"publishable-key"})],ee.prototype,"publishableKey",2),y([k({type:String,attribute:"location-url"})],ee.prototype,"locationUrl",2),y([k({attribute:false})],ee.prototype,"initialValues",2),y([k({attribute:false})],ee.prototype,"serverIssues",2),y([k({attribute:false})],ee.prototype,"apiRoute",2),y([k({attribute:false})],ee.prototype,"autoload",2),y([k({attribute:false})],ee.prototype,"fullPages",2),y([I()],ee.prototype,"choices",2),y([I()],ee.prototype,"clearedIssues",2),y([I()],ee.prototype,"fields",2),y([I()],ee.prototype,"repeats",2),y([I()],ee.prototype,"formTitle",2),y([I()],ee.prototype,"hasLang",2),y([I()],ee.prototype,"values",2),y([I()],ee.prototype,"loaded",2),y([I()],ee.prototype,"specError",2),y([I()],ee.prototype,"validationErrors",2),ee=y([L("roxy-endpoint-form")],ee);var iy="12:00 UTC",xt=class extends f{constructor(){super(...arguments);this.heading="Ephemeris"}renderData(e){if(!e.days?.length)return this.renderEmpty();let t=this.toViewModel(e),r=this.effectiveLang();return s`<div class="wrap" part="card"><header part="header"><h2>${this.t(this.heading)}</h2><p class="month roxy-label"><span>${dr(r,t.year,t.month)}</span><span>${iy}</span></p></header>${this.renderSignKey(t.signs)}<section part="section changes"><h3>${this.t("Sign changes and retrograde periods")}</h3><div role="list">${t.bodies.map(i=>this.renderTrack(i))}</div></section><section part="section daily"><h3>${this.t("Daily positions")}</h3><div class="scroll" part="table" tabindex="0" aria-label="${this.t("Daily positions")}">${this.renderGrid(t)}</div></section></div>`}renderSignKey(e){return e.length===0?o:s`<section part="section legend"><h3>${this.t("Signs in this month")}</h3><ul class="signkey" role="list">${e.map(t=>s`<li class="signkey-item"><span class="signkey-glyph roxy-glyph" aria-hidden="true">${t.glyph}</span>${t.label}</li>`)}</ul></section>`}renderTrack(e){let t=C(e.name);return s`<div class="track" role="listitem"><span class="body-name">${t?s`<span class="glyph roxy-glyph" aria-hidden="true">${t}</span>`:o}${e.label} </span><span class="span">${this.renderPosition(e.first)}<span class="arrow" aria-hidden="true">→</span>${this.renderPosition(e.last)} </span>${e.ingresses.length||e.retrogrades.length?s`<span class="chips roxy-chips">${e.ingresses.map(r=>this.renderIngressChip(r))} ${e.retrogrades.map(r=>this.renderRetrogradeChip(r))}</span>`:o}</div>`}renderPosition(e){let{degree:t,minute:r}=ni(e.degreeInSign),i=z(e.sign),l=x(e,"sign");return s`<span class="pos" title="${l}">${t}${i?s`<span class="sg roxy-glyph" aria-hidden="true">${i}</span>`:s`<span class="sg">${l}</span>`}${String(r).padStart(2,"0")}</span>`}renderIngressChip(e){let t=z(e.sign),r=qa(this.effectiveLang(),e.date);return s`<span class="roxy-chip chip--ingress" aria-label="${this.t("Enters {{sign}} on {{date}}",{sign:e.signLabel,date:r})}"><span aria-hidden="true">→</span>${ce(t)}${e.signLabel} <span class="chip-date">${r}</span></span>`}renderRetrogradeChip(e){let t=Rc(this.effectiveLang(),e.start,e.end);return s`<span class="roxy-chip chip--retro" data-tone="danger"><span class="roxy-glyph" aria-hidden="true">${ae}</span>${this.t("Retrograde {{range}}",{range:t})}</span>`}renderGrid(e){let t=this.effectiveLang();return s`<table><caption class="roxy-sr-only">${this.t("Every body with its position on each day of the month, as a zodiac sign and a degree.")}</caption><thead><tr><th scope="col" class="day">${this.t("Date")}</th>${e.bodies.map(r=>{let i=C(r.name);return s`<th scope="col" title="${r.label}">${i?s`<span class="glyph roxy-glyph" aria-hidden="true">${i}</span><span class="roxy-sr-only">${r.label}</span>`:r.label}</th>`})}</tr></thead><tbody>${e.rows.map(r=>s`<tr><th scope="row" class="day">${Cc(t,r.date)}</th>${r.cells.map((i,l)=>this.renderCell(i,e.bodies[l],r.date))}</tr>`)}</tbody></table>`}renderCell(e,t,r){if(!e)return s`<td>—</td>`;let i=[e.isRetrograde?"retro":"",t?.ingressDates.has(r)?"ingress":"",t?.stationDates.has(r)?"station":""].filter(Boolean).join(" ");return s`<td class="${i}">${this.renderPosition(e)}${e.isRetrograde?s`<span class="retro-mark roxy-glyph" aria-label="${this.t("retrograde")}">${ae}</span>`:o}</td>`}toViewModel(e){let t=[],r=new Map;for(let c of e.days)for(let d of c.positions){let p=r.get(d.planet);p||(p=[],r.set(d.planet,p),t.push(d.planet)),p.push({date:c.date,p:d})}let i=[];for(let c of t){let d=r.get(c),p=d?.[0],h=d?.[d.length-1];if(!d||!p||!h)continue;let m=[],g=[],b=new Set,w=new Set;for(let S=0;S<d.length;S++){let R=d[S],_=d[S-1];if(!R||(_&&R.p.sign!==_.p.sign&&(m.push({date:R.date,sign:R.p.sign,signLabel:x(R.p,"sign")}),b.add(R.date)),_&&R.p.isRetrograde!==_.p.isRetrograde&&w.add(R.date),!R.p.isRetrograde))continue;let q=g[g.length-1];q&&_?.p.isRetrograde?q.end=R.date:g.push({start:R.date,end:R.date})}i.push({name:c,label:x(h.p,"planet"),first:p.p,last:h.p,ingresses:m,retrogrades:g,ingressDates:b,stationDates:w})}let l=e.days.map(c=>{let d=new Map(c.positions.map(p=>[p.planet,p]));return{date:c.date,cells:i.map(p=>d.get(p.name))}});return{year:e.year,month:e.month,bodies:i,rows:l,signs:this.toSignKey(e)}}toSignKey(e){let t=new Map;for(let i of e.days)for(let l of i.positions){let c=String(l.sign??"").toLowerCase();c&&!t.has(c)&&t.set(c,x(l,"sign"))}let r=[];for(let i of re){let l=t.get(i.toLowerCase()),c=z(i);l&&c&&r.push({sign:i,label:l,glyph:c})}return r}};xt.endpoints=Zo,xt.styles=[v,u`:host{overflow-x:clip}.wrap{gap:var(--roxy-space-lg);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.wrap>*{min-width:0}h2,h3,p{margin:0}header,section{gap:var(--roxy-space-sm);display:grid}.month{gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}.signkey{gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.signkey-item{align-items:baseline;gap:var(--roxy-space-xs);color:var(--roxy-muted);font-size:var(--roxy-text-xs);white-space:nowrap;display:inline-flex}.signkey-glyph{color:var(--roxy-fg);font-size:var(--roxy-text-sm)}.track{align-items:center;gap:var(--roxy-space-xs) var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.body-name{align-items:baseline;gap:var(--roxy-space-xs);min-inline-size:16ch;font-weight:var(--roxy-weight-bold);display:inline-flex}.body-name .glyph{color:var(--roxy-accent-ink)}.span{align-items:baseline;gap:var(--roxy-space-xs);color:var(--roxy-secondary);font-variant-numeric:tabular-nums;white-space:nowrap;display:inline-flex}.arrow{color:var(--roxy-muted)}.chips{margin-inline-start:auto}.chip-date{color:var(--roxy-muted)}.scroll{min-width:0;overflow-x:auto}table{font-size:var(--roxy-text-xs)}:is(th,td){white-space:nowrap}thead th .glyph{color:var(--roxy-fg);font-size:var(--roxy-text-sm)}th.day{z-index:1;background:var(--roxy-bg);color:var(--roxy-fg);border-inline-end:1px solid var(--roxy-border);position:sticky;left:0}thead th.day{z-index:2}.sg{margin-inline:calc(var(--roxy-space-unit) / 2);color:var(--roxy-secondary);font-variant-numeric:normal}.retro-mark{font-weight:var(--roxy-weight-bold);margin-inline-start:calc(var(--roxy-space-unit) / 2)}td.retro,td.retro .sg{color:var(--roxy-danger-fg)}td.ingress{box-shadow:inset var(--roxy-line-thick) 0 var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}td.station{border-block-start:var(--roxy-line-thick) solid var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold)}`],y([k({type:String})],xt.prototype,"heading",2),xt=y([L("roxy-ephemeris-table")],xt);var da=class extends f{renderData(a){let e=a.conjunctions??[],t=a.stars??[];return s`<div class="wrap" part="card"><header part="header"><h2>${this.t("Fixed stars")}</h2>${typeof a.orb=="number"?s`<p class="roxy-label">${this.t("Orb")} ${$(this.effectiveLang(),a.orb,1)}°</p>`:o}</header>${a.summary&&!this.hideReadings?s`<p class="summary">${a.summary}</p>`:o} ${e.length?s`<section part="section conjunctions"><h3>${this.t("Conjunctions to the chart")}</h3>${e.map((r,i)=>s`<details class="interp-card" part="reading" name="fixed-star-contacts" ?open="${i===0}"><summary><span class="interp-lead">${this.t("{{point}} conjunct {{star}}",{point:x(r,"point"),star:r.star})}</span> ${V()} <span class="interp-aside"><small>${this.t("orb {{value}}\xB0",{value:$(this.effectiveLang(),r.orb,2)})}</small></span></summary>${r.interpretation&&!this.hideReadings?s`<div class="interp-body"><p>${r.interpretation}</p></div>`:o}</details>`)}</section>`:s`<p class="empty-note">${this.t("No star sits within the orb of a natal point.")}</p>`} ${t.length?this.renderCatalog(t):o}</div>`}renderCatalog(a){return s`<details class="catalog"><summary>${V()} ${this.t("Star catalog ({{count}})",{count:a.length})}</summary><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Precessed positions for the chart date")}"><table><caption class="roxy-label">${this.t("Precessed positions for the chart date")}</caption><thead><tr><th scope="col">${this.t("Star")}</th><th scope="col">${this.t("Position")}</th><th scope="col" class="num">${this.t("Mag")}</th><th scope="col">${this.t("Nature")}</th><th scope="col">${this.t("Keywords")}</th></tr></thead><tbody>${a.map(e=>{let t=z(e.sign);return s`<tr><td>${e.name}</td><td>${t?s`<span class="sg roxy-glyph">${t}</span>`:o}${Fe(e.degree)} ${e.sign}</td><td class="num">${$(this.effectiveLang(),e.magnitude,1)}</td><td>${e.nature}</td><td><ul class="kw roxy-chips">${(e.keywords??[]).map(r=>s`<li>${r}</li>`)}</ul></td></tr>`})}</tbody></table></div></details>`}};da.endpoints=Xo,da.styles=[v,O,H,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}header{gap:var(--roxy-space-xs);display:grid}.summary{font-size:var(--roxy-text-sm)}.empty-note{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}section>h3{margin-block-end:var(--roxy-space-sm)}.interp-lead .point{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.interp-aside small{font-variant-numeric:tabular-nums}.catalog summary{align-items:center;gap:var(--roxy-space-sm);font-weight:var(--roxy-weight-bold);display:flex}.scroll{min-width:0;margin-block-start:var(--roxy-space-sm);overflow-x:auto}table{width:100%}caption{caption-side:top;text-align:start;padding-block-end:var(--roxy-space-xs)}:is(th,td){white-space:nowrap}:is(th,td).num{text-align:end}.sg{color:var(--roxy-secondary);margin-inline-end:var(--roxy-space-xs)}.kw{max-inline-size:32ch}`],da=y([L("roxy-fixed-stars")],da);var mn=["Southeast","South","Southwest","East","Center","West","Northeast","North","Northwest"];var gn=u`.plate-heading{font-size:var(--roxy-text-xs);color:var(--roxy-muted);font-weight:var(--roxy-weight-bold);hyphens:manual}@container (width<=30rem){.plate-heading{font-size:calc(var(--roxy-text-xs) / var(--roxy-text-scale) / var(--roxy-text-scale))}}`;var yn={forward:"Forward",reverse:"Backward"};function tr(n){return"mountainCenterStar"in n}var bt=class extends f{constructor(){super(...arguments);this.mode="natal"}renderData(e){let t=this.effectiveLang(),r=this.mode!=="annual"&&tr(e);return s`<article class="card" part="card" aria-labelledby="flying-star-title"><header class="head" part="header"><h2 class="title" id="flying-star-title">${this.t("Flying star chart")}</h2>${tr(e)?r?s`<span class="period">${this.t("Period {{n}}",{n:N(t,e.period??0)})}</span>`:o:s`<span class="period">${e.year??""}</span>`}</header>${tr(e)?r?this.renderNatalFacts(e,t):o:this.renderAnnualFacts(e,t)}<div class="plate" part="chart plate" role="group" aria-label="${this.t("Flying star chart")}">${mn.map(i=>this.renderPalace(e,i))}</div>${r?s`<div class="legend" part="legend"><span><span class="swatch swatch-mountain"></span>${this.t("Mountain star")}</span> <span><span class="swatch swatch-water"></span>${this.t("Water star")}</span> <span>${this.t("Period star")}</span></div>`:o} ${r&&tr(e)?this.renderStructure(e):o} ${this.renderPalaceRows(e)}</article>`}renderNatalFacts(e,t){return s`<div class="facts" part="details">${e.facing?s`<span><span class="roxy-label">${this.t("Facing")}</span> <b>${j(t,"facing",e.facing.label??"")}</b></span>`:o} ${e.sitting?s`<span><span class="roxy-label">${this.t("Sitting")}</span> <b>${j(t,"facing",e.sitting.label??"")}</b></span>`:o} ${typeof e.facingDegrees=="number"?s`<span>${N(t,e.facingDegrees)}°</span>`:o} ${e.mountainFlight?s`<span><span class="roxy-label">${this.t("Mountain star")}</span> ${yn[e.mountainFlight]?this.t(yn[e.mountainFlight]):e.mountainFlight}</span>`:o} ${e.waterFlight?s`<span><span class="roxy-label">${this.t("Water star")}</span> ${yn[e.waterFlight]?this.t(yn[e.waterFlight]):e.waterFlight}</span>`:o} ${e.straddling?s`<span><b>${this.t("Straddling")}</b></span>`:o}</div>`}renderAnnualFacts(e,t){return!e.changeoverDate&&typeof e.centerStar!="number"?o:s`<div class="facts" part="details">${typeof e.centerStar=="number"?s`<span><span class="roxy-label">${this.t("Center")}</span> <b>${N(t,e.centerStar)}</b></span>`:o} ${e.changeoverDate?s`<span>${A(t,e.changeoverDate)}</span>`:o}</div>`}paletteHeading(e,t){return t==="Center"?this.t("Center"):j(e,"facing",t)}renderPalace(e,t){let r=this.effectiveLang(),i=this.paletteHeading(r,t),l=(e.palaces??[]).find(h=>h.palace===t),c=this.mode!=="annual"&&tr(e);if(!l)return s`<div class="palace"><span class="palace-name plate-heading">${i}</span></div>`;let d=t==="Center";if(c&&tr(e)){let h=l;return s`<div class="palace ${d?"palace-center":""}"><span class="mountain" title="${this.t("Mountain star")}">${h.mountain??""}</span> <span class="water" title="${this.t("Water star")}">${h.water??""}</span> <span class="star" title="${this.t("Period star")}">${h.period??""}</span> <span class="palace-name plate-heading">${i}</span> ${h.combination?s`<span class="combo">${x(h.combination,"name")}</span>`:o}</div>`}let p=l;return s`<div class="palace ${d?"palace-center":""}"><span class="star">${p.star??""}</span> <span class="palace-name plate-heading">${i}</span> <span class="combo">${x(p,"name")}</span></div>`}renderStructure(e){let t=e.structure;return t?.name?s`<section part="section structure"><h3 class="block-title">${t.name}</h3>${t.meaning&&!this.hideReadings?s`<p class="structure" part="reading">${t.meaning}</p>`:o}</section>`:o}renderPalaceRows(e){let t=e.palaces??[];if(t.length===0)return o;let r=this.effectiveLang(),i=this.mode!=="annual"&&tr(e),l=t.map(c=>{let d=this.paletteHeading(r,c.palace??"");if(i){let h=c;return!h.reading&&!h.combination?o:s`<li class="row" part="label-track"><span class="roxy-label">${d}</span><div class="row-body">${h.combination?s`<span>${x(h.combination,"name")}</span>`:o} ${h.reading&&!this.hideReadings?s`<p part="reading">${h.reading}</p>`:o}</div></li>`}let p=c;return s`<li class="row" part="label-track"><span class="roxy-label">${d}</span><div class="row-body"><span>${x(p,"name")}</span> ${p.element?s`<span class="element-word ${Se(p.element)}">${x(p,"element")}</span>`:o}<dl class="star-facts">${p.nature?s`<div><dt>${this.t("Nature")}</dt><dd>${p.nature==="auspicious"?this.t("Favourable"):p.nature==="inauspicious"?this.t("Unfavourable"):p.nature}</dd></div>`:o} ${p.enhancer?s`<div><dt>${this.t("Enhancer")}</dt><dd>${p.enhancer}</dd></div>`:o} ${p.remedy?s`<div><dt>${this.t("Remedy")}</dt><dd>${p.remedy}</dd></div>`:o}</dl>${p.meaning&&!this.hideReadings?s`<p part="reading">${p.meaning}</p>`:o}</div></li>`});return l.every(c=>c===o)?o:s`<section part="section palaces"><ul class="rows">${l}</ul></section>`}};bt.endpoints=Jo,bt.styles=[v,We,gn,na,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.block-title{margin:0}.block-title{margin-block-end:var(--roxy-space-sm)}.period{color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.facts .roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b{color:var(--roxy-fg)}.plate{background:var(--roxy-border);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;display:grid;overflow:hidden}.palace{align-content:start;gap:calc(var(--roxy-space-unit) / 2);min-block-size:3.5lh;padding:var(--roxy-space-sm);background:var(--roxy-surface);grid-template-columns:1fr 1fr;display:grid}.palace-center{background:color-mix(in srgb, var(--roxy-accent) 8%, var(--roxy-surface))}.mountain,.water{font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.mountain{color:var(--roxy-info-fg);text-align:start}.water{color:var(--roxy-accent-ink);text-align:end}.star,.palace-name,.combo{text-align:center;grid-column:1/-1}.star{font-size:calc(var(--roxy-text-base) * 1.75);line-height:var(--roxy-leading-tight);font-variant-numeric:tabular-nums}.combo{color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.legend{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.swatch-mountain{background:var(--roxy-info)}.swatch-water{background:var(--roxy-accent)}.rows{margin:0;padding:0;list-style:none;display:grid}.row{align-items:baseline;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm)}.row:first-child{border-block-start:0;padding-block-start:0}.row-body p{margin:calc(var(--roxy-space-unit) / 2) 0 0;color:var(--roxy-secondary);font-size:var(--roxy-text-xs);border-block-start:0}.star-facts{gap:var(--roxy-space-xs) var(--roxy-space-md);margin:var(--roxy-space-xs) 0 0;font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.star-facts div{gap:var(--roxy-space-xs);display:flex}.star-facts dt{color:var(--roxy-secondary);font-size:inherit}.star-facts dd{margin:0}.structure{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);border-block-start:0;margin:0}`],y([k({type:String,reflect:true})],bt.prototype,"mode",2),bt=y([L("roxy-flying-star-chart")],bt);var pa=class extends f{renderData(a){let e=a.windows??[];if(e.length===0)return this.renderEmpty();let t=ve(this.effectiveLang(),a.startDate,a.endDate);return s`<div class="wrap" part="card" aria-label="${this.t("Forecast digest")}"><div class="head" part="header"><h2>${this.t("Forecast digest")}</h2>${t?s`<p class="subtitle">${t}</p>`:o}</div>${e.map(r=>this.renderWindow(r))}</div>`}windowLabel(a){return a===1?this.t("Next 24 hours"):typeof a=="number"?this.t("Next {{count}} days",{count:a}):this.t("Window")}renderWindow(a){let e=[...a.top??[]].sort((i,l)=>(l.significance??0)-(i.significance??0)),t=a.byDomain??{},r=Object.entries(t);return s`<section class="window" part="section window"><div class="window-head" part="details"><h3>${this.windowLabel(a.days)}</h3><span class="window-count">${this.t("{{count}} events",{count:a.count??0})}</span></div>${r.length>0?s`<div class="domains" part="legend">${r.map(([i,l])=>s`<span class="domain-chip"><span class="swatch sw-${i}"></span>${E(i)} ${l}</span>`)}</div>`:o} ${e.length>0?s`<div role="list">${e.map(i=>this.renderEvent(i))}</div>`:s`<p class="quiet">${this.t("No notable events.")}</p>`}</section>`}renderEvent(a){let e=typeof a.significance=="number"?a.significance:0,t=this.hideReadings||a.description==null?E(a.type??""):a.description;return s`<div class="event" part="label-track" role="listitem"><span class="event-date">${A(this.effectiveLang(),a.date)}</span> <span class="event-desc">${t}</span> <span class="sig" role="img" aria-label="${this.t("significance {{value}} of 100",{value:$(this.effectiveLang(),e,0)})}"><span class="sig-fill ${a.domain}" style="width:${Math.max(0,Math.min(100,e))}%"></span></span></div>`}};pa.endpoints=Qo,pa.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.subtitle{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.window{gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md);display:grid}.window:first-of-type{border-block-start:0;padding-block-start:0}.window-head{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.window-count{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;margin-inline-start:auto}.domains{gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}.domain-chip{align-items:center;gap:var(--roxy-space-xs);color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:inline-flex}.swatch{border-radius:var(--roxy-radius-sm);block-size:.6lh;inline-size:.6lh;display:inline-block}.sw-western,.sig-fill.western{background:var(--roxy-accent)}.sw-vedic,.sig-fill.vedic{background:var(--roxy-info)}.sw-biorhythm,.sig-fill.biorhythm{background:var(--roxy-success)}.event{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);display:grid}.event-date{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}.event-desc{font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-tight)}.sig{block-size:calc(var(--roxy-line-thick) * 2);border-radius:var(--roxy-radius-full);background:var(--roxy-border);grid-column:2;overflow:hidden}.sig-fill{height:100%;display:block}.quiet{color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-style:italic}`],pa=y([L("roxy-forecast-digest")],pa);var oy={western:"Western",vedic:"Vedic",biorhythm:"Biorhythm"},ip=20,ly=["western","vedic","biorhythm"],ha=class extends f{renderData(a){let e=a.events??[],t=this.groupByDate(e),r=ly.filter(i=>e.some(l=>l.domain===i));return s`<div class="wrap" part="card" aria-label="${this.t("Forecast timeline")}"><header class="head" part="header"><h2>${this.t("Forecast timeline")}</h2>${a.startDate&&a.endDate?s`<div class="range">${ve(this.effectiveLang(),a.startDate,a.endDate)} · ${this.t("{{count}} events",{count:a.count??e.length})}</div>`:o}</header>${r.length?s`<div class="legend" part="legend">${r.map(i=>s`<span><span class="swatch swatch-${i}"></span>${oy[i]}</span>`)}</div>`:o} ${t.length?s`<div class="days" part="section events" role="list">${t.map(([i,l])=>this.renderDay(i,l))}</div>`:s`<p class="roxy-empty" role="status">${this.t("No events in this window")}</p>`}</div>`}groupByDate(a){let e=new Map;for(let t of a){let r=t.date??"",i=e.get(r)??[];i.push(t),e.set(r,i)}return[...e.entries()]}renderDay(a,e){return s`<div class="day" role="listitem"><div class="day-date">${A(this.effectiveLang(),a)}</div><div class="events">${e.map(t=>this.renderEvent(t))}</div></div>`}renderEvent(a){let e=typeof a.significance=="number"?a.significance:0,t=Math.max(0,Math.min(100,e));return s`<div class="event"><span class="dot dot-${a.domain}" aria-hidden="true"></span><div class="event-body"><div class="event-line">${this.renderMoon(a)}${this.renderHeadline(a)}</div>${a.description&&!this.hideReadings?s`<p class="event-desc">${a.description}</p>`:o}<div class="sig" title="${this.t("significance {{value}} of 100",{value:t})}"><span class="sig-track"><span class="sig-fill sig-fill-${a.domain}" style="width:${t}%"></span> </span><span class="sig-val">${t}</span></div></div></div>`}renderHeadline(a){let e=a.body?E(a.body):"",t=a.target?E(a.target):"",r=we({type:a.aspect}),i=r?ur(a.aspect)??se({type:a.aspect}):"",l=typeof a.orb=="number"?$(this.effectiveLang(),a.orb,1):"",c=this.typeQualifier(a);return r&&t?s`<strong>${e}</strong> <span class="${`${de({type:a.aspect})} roxy-glyph`}">${i}</span> <strong>${t}</strong>${l?s`<span class="kind">${this.t("orb {{value}}\xB0",{value:l})}</span>`:o}`:s`<strong>${e||E(a.type??"")}</strong>${c?s`<span class="kind">${c}</span>`:o}`}renderMoon(a){if(a.type==="lunar-phase"&&a.phase)return Ge(this,{illumination:a.phase==="full-moon"?100:0,waxing:true},ip);if(a.type!=="eclipse")return o;let e=xe(a.body)==="sun";return Ge(this,{illumination:e?0:100,waxing:true},ip,e?"solar":"lunar")}typeQualifier(a){return a.type==="sign-ingress"&&a.target?`enters ${E(a.target)}`:a.type==="retrograde-station"&&a.station?a.station:a.type==="eclipse"?[a.kind,"eclipse"].filter(Boolean).join(" "):a.type==="critical-day"?"critical day":a.type==="dasha-change"&&a.target?`dasha ${E(a.target)}`:E(a.type??"")}};ha.endpoints=el,ha.styles=[v,lt,Ft,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.range{color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.legend{gap:var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.legend .swatch{block-size:.6lh;inline-size:.6lh;border-radius:var(--roxy-radius-full);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.swatch-western,.dot-western,.sig-fill-western{background:var(--roxy-accent)}.swatch-vedic,.dot-vedic,.sig-fill-vedic{background:var(--roxy-info)}.swatch-biorhythm,.dot-biorhythm,.sig-fill-biorhythm{background:var(--roxy-success)}.day{gap:var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);grid-template-columns:9ch minmax(0,1fr);display:grid}.day:first-of-type{border-block-start:0}@container (width<=30rem){.day{grid-template-columns:minmax(0,1fr)}}.day-date{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;padding-block-start:calc(var(--roxy-space-unit) / 2)}.events{gap:var(--roxy-space-sm);display:grid}.event{align-items:start;gap:var(--roxy-space-sm);grid-template-columns:.4lh minmax(0,1fr);display:grid}.dot{block-size:.4lh;inline-size:.4lh;border-radius:var(--roxy-radius-full);margin-block-start:var(--roxy-space-xs)}.event-body{min-width:0}.event-line{font-size:var(--roxy-text-sm)}.event-line .moon-mark{margin-inline-end:var(--roxy-space-xs)}.event-line .kind{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-inline-start:var(--roxy-space-xs)}.event-desc{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:calc(var(--roxy-space-unit) / 2)}.sig{align-items:center;gap:var(--roxy-space-xs);margin-block-start:var(--roxy-space-xs);display:flex}.sig-track{max-inline-size:16ch;block-size:calc(var(--roxy-line-thick) * 2);border-radius:var(--roxy-radius-full);background:var(--roxy-border);flex:1;overflow:hidden}.sig-fill{height:100%;display:block}.sig-val{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}`],ha=y([L("roxy-forecast-timeline")],ha);var ma=class extends f{renderData(a){let e=this.effectiveLang(),t=a.chosen,r=a.input?.text??a.input?.textHebrew??"";return s`<article class="card" part="card" aria-labelledby="gematria-title"><header class="head" part="header"><h2 id="gematria-title">${r?`${this.t("Gematria")} \xB7 ${r}`:this.t("Gematria")}</h2>${t?.hebrew?s`<span class="hebrew" lang="he" dir="rtl">${t.hebrew}</span>`:o} ${this.chosenForm(a)?.romanization?s`<span class="roman">${this.chosenForm(a)?.romanization}</span>`:o} ${t?.rule?s`<p class="rule">${t.rule}</p>`:o}</header>${this.renderLetters(e,this.chosenForm(a)?.letters)} ${this.renderValues(e,a.values,this.t("Cipher values"))} ${this.renderForms(e,a)} ${this.renderTransformations(e,a.transformations)} ${this.renderLatin(e,a.latinValues)} ${this.renderMatches(e,a.matches)} ${this.renderConventions(a.conventions)}</article>`}chosenForm(a){let e=a.hebrewForms??[];return e.find(t=>t.hebrew===a.chosen?.hebrew)??e[0]}renderLetters(a,e){let t=e??[];return t.length===0?o:s`<section part="section letters"><h3>${this.t("Letters")}</h3><div class="letters" part="chart" dir="rtl">${t.map(r=>s`<div class="${`letter${r.isFinal?" is-final":""}`}" dir="ltr" title="${U(r.isFinal?this.t("Final form"):void 0)}"><span class="glyph" lang="he">${r.glyph??""}</span> <span class="name">${r.name??""}</span> <span class="num">${N(a,r.value)}</span></div>`)}</div>${t.some(r=>r.isFinal)?s`<p class="legend" part="legend"><span class="swatch"></span>${this.t("Final form")}</p>`:o}</section>`}renderValues(a,e,t){let r=(e??[]).filter(l=>typeof l.value=="number");if(r.length===0)return o;let i=r.some(l=>(l.alternateValues??[]).length>0);return s`<section part="section values"><h3>${t}</h3><div class="scroll" tabindex="0" role="region" aria-label="${t}"><table><thead><tr><th>${this.t("Cipher")}</th><th>${this.t("Value")}</th>${i?s`<th>${this.t("Also published")}</th>`:o}</tr></thead><tbody>${r.map(l=>s`<tr><td>${E(l.id??"")}</td><td class="num">${N(a,l.value)}</td>${i?s`<td class="num">${(l.alternateValues??[]).map(c=>N(a,c)).join(", ")}</td>`:o}</tr>`)}</tbody></table></div>${this.renderProvenance(r)}</section>`}renderProvenance(a){let e=new Map;for(let t of a)t.tradition&&!e.has(t.tradition)&&e.set(t.tradition,t.source);return e.size===0?o:s`<p class="provenance"><span class="roxy-label">${this.t("Tradition")}</span> ${[...e].map(([t,r],i)=>s`${i>0?" \xB7 ":""}${E(t)}${bs(r)?s`<a class="src" href="${r}" target="_blank" rel="noopener noreferrer">${this.t("Source")}</a>`:o}`)}</p>`}renderForms(a,e){let t=e.hebrewForms??[];return t.length<2?o:s`<section part="section spellings"><h3>${this.t("Spellings")}</h3><ul class="forms">${t.map(r=>s`<li class="form"><div><span class="hebrew" lang="he" dir="rtl">${r.hebrew??""}</span> ${r.hebrew===e.chosen?.hebrew?s`<span class="chosen roxy-chip" data-tone="success">${this.t("Chosen")}</span>`:o}</div><span class="roman">${r.romanization??""}</span> ${r.rule?s`<p class="rule">${r.rule}</p>`:o} ${this.renderFormTotals(a,r)}</li>`)}</ul></section>`}renderFormTotals(a,e){let t=(e.values??[]).find(r=>typeof r.value=="number");return t?s`<p class="rule"><span class="roxy-label">${E(t.id??"")}</span> ${N(a,t.value)}</p>`:o}renderTransformations(a,e){let t=e??[];return t.length===0?o:s`<section part="section substitutions"><h3>${this.t("Substitutions")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Substitutions")}"><table><thead><tr><th>${this.t("Cipher")}</th><th>${this.t("Output")}</th><th>${this.t("Value")}</th></tr></thead><tbody>${t.map(r=>s`<tr><td>${E(r.id??"")}</td><td>${r.output?s`<span lang="he" dir="rtl">${r.output}</span>`:o} ${r.outputRomanization?s`<span class="roman">${r.outputRomanization}</span>`:o}</td><td class="num">${N(a,r.value)}</td></tr>`)}</tbody></table></div></section>`}renderLatin(a,e){let t=e??[];return t.length===0?o:s`<section part="section latin-ciphers"><h3>${this.t("Latin ciphers")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Latin ciphers")}"><table class="stacked"><thead><tr><th>${this.t("Cipher")}</th><th>${this.t("Value")}</th><th>${this.t("Tradition")}</th></tr></thead><tbody>${t.map(r=>s`<tr><td data-label="${this.t("Cipher")}">${E(r.id??"")} ${r.lineage?s`<p class="lineage">${r.lineage}</p>`:o}</td><td class="num" data-label="${this.t("Value")}">${N(a,r.value)}</td><td data-label="${this.t("Tradition")}">${E(r.tradition??"")}</td></tr>`)}</tbody></table></div></section>`}renderMatches(a,e){let t=e??[];return t.length===0?o:s`<section part="section matches"><h3>${this.t("Equal values")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Equal values")}"><table class="stacked"><thead><tr><th>${this.t("Word")}</th><th>${this.t("Meaning")}</th><th>${this.t("Value")}</th></tr></thead><tbody>${t.map(r=>s`<tr><td data-label="${this.t("Word")}"><span lang="he" dir="rtl">${r.hebrew??""}</span> <span class="roman">${r.romanization??""}</span></td><td data-label="${this.t("Meaning")}">${r.meaning??""} ${r.note&&!this.hideReadings?s`<p class="match-note" part="reading">${r.note}</p>`:o}</td><td class="num" data-label="${this.t("Value")}">${N(a,r.value)}</td></tr>`)}</tbody></table></div></section>`}renderConventions(a){let e=this.effectiveLang(),t=[];for(let r of["transliteration","misparGadol"]){let i=a?.[r];i&&t.push([X(e,r),j(e,r,i)])}return t.length===0?o:s`<p class="provenance">${t.map(([r,i],l)=>s`${l>0?" \xB7 ":""}<span class="roxy-label">${r}</span>${i}`)}</p>`}};ma.endpoints=tl,ma.styles=[v,qe,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}section>h3{margin-block-end:var(--roxy-space-sm)}.head{justify-items:start;gap:calc(var(--roxy-space-unit) / 2);min-width:0;display:grid}.hebrew{font-size:calc(var(--roxy-text-xl) * 1.3);font-weight:var(--roxy-weight-bold);line-height:1.4}.roman{color:var(--roxy-secondary);font-size:var(--roxy-text-sm)}.rule{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.provenance .roxy-label,.rule .roxy-label{font-size:inherit;margin-inline-end:var(--roxy-space-xs)}.src{margin-inline-start:var(--roxy-space-xs)}.letters{gap:var(--roxy-space-xs);flex-wrap:wrap;display:flex}.letter{justify-items:center;gap:calc(var(--roxy-space-unit) / 2);min-inline-size:5ch;padding:var(--roxy-space-xs) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);display:grid}.letter .glyph{font-size:var(--roxy-text-lg);line-height:1.3}.letter .name{color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.letter .num{font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.letter.is-final{border-color:var(--roxy-accent)}.legend{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:var(--roxy-space-sm)}.legend .swatch{block-size:.6lh;inline-size:.6lh;border:1px solid var(--roxy-accent);border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td.num{white-space:nowrap}.provenance{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:var(--roxy-space-sm)}.lineage,.match-note{color:var(--roxy-secondary);font-size:var(--roxy-text-xs);white-space:normal;margin-block-start:calc(var(--roxy-space-unit) / 2)}a{color:var(--roxy-accent-ink)}.forms{gap:var(--roxy-space-md);margin:0;padding:0;list-style:none;display:grid}.form{gap:var(--roxy-space-xs);min-width:0;border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm);display:grid}.form:first-child{border-block-start:0;padding-block-start:0}`],ma=y([L("roxy-gematria")],ma);var op=8,ga=class extends f{renderData(a){let e=a.transitingPlanets??[];if(!e.length)return this.renderEmpty();let t=a.keyTransits??[],r=a.natalPlanets?.find(i=>i.name==="Moon")?.sign;return s`<div class="wrap" part="card" aria-label="${this.t("Gochara transits")}"><header class="head" part="header"><h2>${this.t("Gochara")}</h2><p class="sub">${this.t("Where each graha transits at {{when}}, read against the natal chart of {{birth}}.",{when:Y(this.effectiveLang(),a.transitDatetime),birth:Y(this.effectiveLang(),a.birthDatetime)})}</p>${r?s`<p class="sub">${this.t("Gochara houses are counted from the natal Moon in {{sign}}.",{sign:r})}</p>`:o} ${W(this.effectiveLang(),a.frame,this.translator)}</header><div part="table">${e.map(i=>this.renderPlanet(i))}</div>${t.length&&!this.hideReadings?s`<section class="key" part="section key-transits"><h3>${this.t("Key transits")}</h3>${t.map(i=>s`<p class="key-item">${i.description}</p>`)}</section>`:o}</div>`}renderPlanet(a){let e=C(a.name)??"",t=typeof a.longitude=="number"?Ae(a.longitude):void 0;return s`<article class="row"><div class="row-top"><span class="graha">${e?s`<span class="glyph roxy-glyph">${e}</span>`:o}${a.name} </span><span class="pos">${t?`${a.sign} ${t}`:a.sign} </span>${typeof a.houseFromMoon=="number"?s`<span class="house moon roxy-chip">${this.t("house {{n}} from the Moon",{n:a.houseFromMoon})}</span>`:o} ${typeof a.natalHouse=="number"?s`<span class="house lagna roxy-chip">${this.t("house {{n}} from the Lagna",{n:a.natalHouse})}</span>`:o}</div>${this.renderKaksha(a.kaksha)} ${this.renderContacts(this.t("Drishti"),a.drishtiToNatal)} ${this.renderContacts(this.t("Aspects"),a.aspectsToNatal)}</article>`}renderContacts(a,e){return e?.length?s`<p class="aspects"><span class="contact-label">${a}</span> ${e.map(t=>typeof t.orb=="number"?this.t("{{aspect}} natal {{planet}} ({{orb}}\xB0)",{aspect:se({type:t.aspectType}),planet:t.natalPlanet,orb:$(this.effectiveLang(),t.orb,1)}):this.t("{{aspect}} natal {{planet}}",{aspect:se({type:t.aspectType}),planet:t.natalPlanet})).join(" \xB7 ")}</p>`:o}renderKaksha(a){if(!a||typeof a.number!="number")return o;let e=a.number,t=a.bindu===true?"yes":a.bindu===false?"no":"",r=op,i=a.lord&&typeof a.startDegree=="number"&&typeof a.endDegree=="number"?this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}, spanning {{start}}\xB0 to {{end}}\xB0 of the sign",{n:e,total:r,graha:a.lord,start:$(this.effectiveLang(),a.startDegree,2),end:$(this.effectiveLang(),a.endDegree,2)}):a.lord?this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}",{n:e,total:r,graha:a.lord}):typeof a.startDegree=="number"&&typeof a.endDegree=="number"?this.t("Kaksha {{n}} of {{total}}, spanning {{start}}\xB0 to {{end}}\xB0 of the sign",{n:e,total:r,start:$(this.effectiveLang(),a.startDegree,2),end:$(this.effectiveLang(),a.endDegree,2)}):this.t("Kaksha {{n}} of {{total}}",{n:e,total:r}),l=a.bindu===null||a.bindu===void 0?"":typeof a.binduCount=="number"?a.bindu?this.t("this kaksha lord gave bindu, {{count}} of {{total}} in this sign",{count:a.binduCount,total:r}):this.t("this kaksha lord gave no bindu, {{count}} of {{total}} in this sign",{count:a.binduCount,total:r}):a.bindu?this.t("this kaksha lord gave bindu"):this.t("this kaksha lord gave no bindu");return s`<div class="kaksha-bar" part="chart" role="img" aria-label="${this.t("Kaksha {{n}} of {{total}} within the current sign",{n:e,total:r})}">${Array.from({length:op},(c,d)=>s`<span class="seg ${d+1===e?`here ${t}`:""}"></span>`)}</div><p class="meta">${l?`${i} \xB7 ${l}`:i}</p>`}};ga.endpoints=al,ga.styles=[v,B,u`.wrap{grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}.head{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);display:grid}h2,h3,p{margin:0}.sub,.meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.row{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);grid-template-columns:minmax(0,1fr);display:grid}.row-top{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.pos{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.house.moon{border-color:var(--roxy-accent);color:var(--roxy-fg)}.contact-label{font-weight:var(--roxy-weight-bold);margin-inline-end:var(--roxy-space-xs)}.kaksha-bar{block-size:.4lh;margin-block:var(--roxy-space-xs);grid-template-columns:repeat(8,minmax(0,1fr));gap:1px;display:grid}.seg{background:var(--roxy-border);border-radius:var(--roxy-radius-sm)}.seg.here{background:var(--roxy-muted)}.seg.here.yes{background:var(--roxy-success)}.seg.here.no{background:var(--roxy-warning)}.aspects{color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.key{gap:var(--roxy-space-sm);padding:var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);display:grid}.key-item{font-size:var(--roxy-text-sm)}`],ga=y([L("roxy-gochara-table")],ga);var cy={varna:1,vashya:2,tara:3,yoni:4,"graha maitri":5,gana:6,bhakoot:7,nadi:8},ya=class extends f{renderData(a){let e=(a.breakdown??[]).filter(p=>p?.category!==void 0),t=a.total??0,r=a.maxScore??36,i=t/r*100,l=i>=70?"high":i>=50?"mid":"low",c=i*2.827,d=(100-i)*2.827;return s`<article class="card" part="card" aria-label="${this.t("Guna Milan score")}"><div class="score-header" part="header"><div class="score-info"><div class="score-bar" part="details"><div><span class="total">${$(this.effectiveLang(),a.total,1)}</span> <span class="over">/ ${a.maxScore}</span> ${typeof a.percentage=="number"?s`<small class="pct">${te(this.effectiveLang(),a.percentage,1)}</small>`:o}</div><div class="verdict-wrap">${typeof a.isCompatible=="boolean"?s`<span class="verdict roxy-chip ${a.isCompatible?"yes":"no"}" data-tone="${a.isCompatible?"success":"danger"}">${a.isCompatible?this.t("Compatible"):this.t("Not compatible")}</span>`:o} ${a.recommendation&&!this.hideReadings?s`<span class="recommendation">${a.recommendation}</span>`:o}</div></div></div><div class="score-ring" part="chart" role="meter" aria-label="${this.t("Guna Milan score")}" aria-valuemin="0" aria-valuemax="${r}" aria-valuenow="${t}"><svg viewBox="0 0 100 100" aria-hidden="true"><circle class="ring-track" cx="50" cy="50" r="45"/><circle class="ring-fill" data-band="${l}" cx="50" cy="50" r="45" stroke-dasharray="${c},${d}" transform="rotate(-90 50 50)"/></svg></div></div>${e.length>0?s`<div class="table-scroll" part="table"><table class="stacked"><caption class="roxy-sr-only">${this.t("Guna Milan breakdown: each koota with the classification of person 1 and person 2, and the score it earned out of its maximum.")}</caption><thead><tr><th scope="col">${this.t("Koota")}</th><th scope="col">${this.t("Person 1")}</th><th scope="col">${this.t("Person 2")}</th><th scope="col" class="bar-col">${this.t("Progress")}</th><th scope="col" class="score">${this.t("Points")}</th></tr></thead><tbody>${e.map(p=>{let h=p.score??0,m=p.maxScore??dy(p.category),g=m?h/m*100:0;return s`<tr><td>${p.category} ${p.description?s`<small>${p.description}</small>`:o}</td><td class="classification" data-label="${this.t("Person 1")}">${p.person1??""}</td><td class="classification" data-label="${this.t("Person 2")}">${p.person2??""}</td><td class="bar-cell bar-col"><div class="mini-bar"><span style="width:${g}%"></span></div></td><td class="score" data-label="${this.t("Points")}">${$(this.effectiveLang(),h,1)} / ${m}</td></tr>`})}</tbody></table></div>`:o} ${(a.doshas?.length??0)>0||(a.doshaCancellations?.length??0)>0?s`<ul class="tags roxy-chips" part="details">${a.doshas?.map(p=>s`<li class="dosha roxy-chip" data-tone="danger">${p}</li>`)} ${a.doshaCancellations?.map(p=>s`<li class="cancel roxy-chip" data-tone="success" title="${p.reason}">${this.t("{{dosha}} cancelled",{dosha:p.dosha})}</li>`)}</ul>`:o} ${W(this.effectiveLang(),a.frame,this.translator)}</article>`}};ya.endpoints=rl,ya.styles=[v,B,qe,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.card>*{min-width:0}.score-header{align-items:center;gap:var(--roxy-space-md);display:flex}.score-info{flex:1;min-width:0}.table-scroll{min-width:0;overflow-x:auto}.score-bar{align-items:center;gap:var(--roxy-space-md);grid-template-columns:minmax(0,1fr) auto;display:grid}.total{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 1.5);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;line-height:1}.over,.pct{color:var(--roxy-muted)}.pct{font-size:var(--roxy-text-sm);margin-inline-start:var(--roxy-space-sm)}.verdict-wrap{justify-items:end;gap:var(--roxy-space-xs);text-align:end;display:grid}.verdict{font-weight:var(--roxy-weight-bold)}.recommendation{color:var(--roxy-secondary);font-size:var(--roxy-text-sm)}.score-ring{flex-shrink:0;block-size:5lh;inline-size:5lh}.score-ring svg{block-size:100%;inline-size:100%;display:block}.ring-track,.ring-fill{fill:none;stroke-width:8px}.ring-track{stroke:var(--roxy-border)}.ring-fill{stroke:var(--roxy-danger);stroke-linecap:round}.ring-fill[data-band=mid]{stroke:var(--roxy-warning)}.ring-fill[data-band=high]{stroke:var(--roxy-success)}table{width:100%}td small{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-start:calc(var(--roxy-space-unit) / 2);display:block}td.classification{color:var(--roxy-secondary);white-space:nowrap}:is(th,td).score{text-align:end}td.score{font-weight:var(--roxy-weight-bold)}td.bar-cell{width:22%}@container (width<=32rem){.bar-col{display:none}}@container (width<=26rem){.score-header{flex-direction:column-reverse;align-items:stretch}.score-ring{align-self:center}.score-bar{gap:var(--roxy-space-xs);grid-template-columns:minmax(0,1fr)}.verdict-wrap{text-align:start;justify-items:start}}.mini-bar{border-radius:var(--roxy-radius-full);background:var(--roxy-border);block-size:.35lh;overflow:hidden}.mini-bar>span{background:var(--roxy-accent);block-size:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}`],ya=y([L("roxy-guna-milan")],ya);function dy(n){return n&&cy[n.toLowerCase()]||1}var ua=class extends f{constructor(){super(...arguments);this.chartViewport=new ne(this)}renderChart(e,t,r){let i=new Set(r?e.personAGates:(e.channels??[]).flatMap(g=>g.personAGates??[])),l=new Set(r?e.personBGates:(e.channels??[]).flatMap(g=>g.personBGates??[])),c=new Map;for(let g of new Set([...i,...l]))c.set(g,{left:i.has(g),right:l.has(g)});let d=new Set((e.centers??[]).filter(g=>g.defined).map(g=>g.id)),p=new Map((e.centers??[]).map(g=>[g.id,g.name])),h=new Map;for(let g of e.channels??[])h.set(g.gateA,g.name),h.set(g.gateB,g.name);let m=new Map;for(let[g,b]of c){let w=[b.left&&"A",b.right&&"B"].filter(Boolean).join(" + ");m.set(g,[`Gate ${g}`,h.get(g),w].filter(Boolean).join(" \xB7 "))}return s`${ke(T`<svg class="chart bodygraph" part="chart" viewBox=${mi} preserveAspectRatio="xMidYMid meet" role="img" aria-label=${t}><title>${t}</title>${gi({definedCenters:d,gateSources:c,gateTitles:m,centerNames:p,stateWords:{defined:"Defined",open:"Open"}})}</svg>`.markup)} ${r?o:s`<p class="note">${t}</p>`}<div class="legend" part="legend"><span><span class="swatch source src-left"></span>Person A</span> <span><span class="swatch source src-right"></span>Person B</span> <span><span class="swatch"></span>Open center</span></div>`}renderData(e){let t=Array.isArray(e.personAGates)&&Array.isArray(e.personBGates),r=t?this.t("Combined bodygraph"):this.t("Defined channels"),i=e.channels??[],l=e.centers??[],c=l.filter(d=>d.defined).length;return s`<div class="wrap bodygraph" part="card" aria-label="Human Design connection"><header class="head" part="header"><h2>Connection</h2>${typeof e.totalChannels=="number"?s`<span class="count">${e.totalChannels} channels</span>`:o}</header>${this.chartViewport.renderChartViewport(this.renderChart(e,r,t),r,this.translator)} ${pt([{label:"Channels",value:e.totalChannels?.toString()},{label:"Combined definition",value:e.combinedDefinition?E(String(e.combinedDefinition)):void 0},{label:"Centers defined",value:l.length>0?`${c}/${l.length}`:void 0}])} ${this.hideReadings?o:s`<p class="lead">A connection chart reads the two charts as one bodygraph. Wherever the two of them together hold both gates of a channel, that channel is defined between them, and the centers it joins are defined in the connection whether or not either person defines them alone.</p>`} ${this.renderDynamics(e.summary)} ${this.renderCenters(l)} ${this.renderChannels(i,l)}</div>`}renderDynamics(e){if(!e)return o;let t=[{label:"Electromagnetic",aside:un(e.electromagnetic),body:"Each person holds one of the two gates, so the channel completes only when they are together. The classic point of attraction."},{label:"Dominance",aside:un(e.dominance),body:"One person holds both gates and the other holds neither, so the conditioning runs one way, from the person who carries the channel to the person who does not."},{label:"Compromise",aside:un(e.compromise),body:"One person holds both gates and the other holds a single hanging gate of the same channel, so the channel is complete for one of them and half open for the other."},{label:"Companionship",aside:un(e.companionship),body:"Both people independently hold both gates, so neither needs the other to complete it. A shared and familiar frequency rather than an attraction."}];return this.renderInterpretation(t,"hd-connection-dynamic","Dynamics")}renderCenters(e){return e.length===0?o:s`<section class="block" part="section centers"><h3>Centers</h3>${this.hideReadings?o:s`<p class="note">Defined is the state of the combined chart. Beside it is who already defines that center in their own chart. A center defined only together is what the connection itself creates: it is there when the two are together and gone when they are apart. The combined definition counts how the defined centers hang together, so Single is one connected piece and a split is more than one.</p>`} ${e.map(t=>{let r=t.definedBy??[],i=r.includes("A"),l=r.includes("B"),c=!!t.defined&&!i&&!l;return s`<div class="row"><span class="cname">${t.name??E(String(t.id??""))}</span> <span class="roxy-chip ${c?"together":""}" data-tone="${t.defined&&!c?"success":o}">${t.defined?c?"Only together":"Defined":"Open"} </span><span class="who">${py(!!t.defined,i,l)}</span></div>`})}</section>`}renderChannels(e,t){if(e.length===0)return o;let r=new Map(t.map(l=>[String(l.id??""),l.name??""])),i=l=>r.get(l)||E(l);return s`<section class="block" part="section channels"><h3>Channels</h3><div class="scroll" part="table" tabindex="0" role="region" aria-label="Connection channels"><table role="table"><caption class="roxy-sr-only">Connection channels: each channel with its gates, the centers it links, its circuit and dynamic, and the gates person A and person B each hold.</caption><thead><tr><th scope="col">Channel</th><th scope="col">Gates</th><th scope="col">Centers</th><th scope="col">Circuit</th><th scope="col">Dynamic</th><th scope="col">Person A holds</th><th scope="col">Person B holds</th></tr></thead><tbody>${e.map(l=>s`<tr><td>${l.name??""}</td><td class="gates">${l.gateA}-${l.gateB}</td><td>${(l.centers??[]).map(i).join(" to ")}</td><td>${l.circuit??""}</td><td>${l.dynamic?s`<span class="roxy-chip">${l.dynamic}</span>`:o}</td><td class="held">${lp(l.personAGates)}</td><td class="held">${lp(l.personBGates)}</td></tr>`)}</tbody></table></div></section>`}};ua.endpoints=sl,ua.styles=[v,O,H,Qt,Ms,Vs,pe,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.count{color:var(--roxy-accent-ink);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.note{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-block-end:var(--roxy-space-sm)}.row{align-items:center;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.row:last-child{border-block-end:0}.cname{flex:1;min-width:16ch}.roxy-chip.together{color:var(--roxy-accent-ink);border-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}.who{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}table{width:100%}th,td{white-space:nowrap}tbody tr:last-child td{border-block-end:0}.gates{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold);color:var(--roxy-accent-ink)}.held{font-variant-numeric:tabular-nums}.scroll{min-width:0;overflow-x:auto}.wrap{--src-left:var(--roxy-info-fg);--src-right:var(--roxy-warning-fg);--src-ink:var(--roxy-bg)}`],ua=y([L("roxy-hd-connection")],ua);function un(n){if(typeof n=="number")return n===0?"None":n===1?"1 channel":`${n} channels`}function lp(n){let a=n??[];return a.length>0?a.join(", "):"Neither"}function py(n,a,e){return a&&e?"Defined in both charts":a?"Defined by A":e?"Defined by B":n?"Defined by neither alone, only by the connection":"Open in both charts"}var Gi=360,hy=470,Fi=8,pp=Gi-Fi*2,xn=48,Ur=15,Ii=7,cp=16,fn=[{id:"throat",label:"Throat",y:0},{id:"g",label:"G",y:211},{id:"sacral",label:"Sacral",y:422}],hp=`0 0 ${Gi} ${hy}`;function my(n,a){return Fi+pp*(n*2+1)/(a*2)}function mp(n){return jr[n.gateA]==="throat"||jr[n.gateB]==="throat"}function gy(n){return(mp(n)?jr[n.gateA]==="throat":jr[n.gateA]==="g")?n.gateA:n.gateB}function yy(){return fn.map(n=>F`<g>
|
|
85
|
+
<rect class="pn-bar" x=${Fi} y=${n.y} width=${pp} height=${xn} rx="10" />
|
|
86
|
+
<text class="pn-bar-label" x=${Gi/2} y=${n.y+xn/2} text-anchor="middle" dominant-baseline="central">${n.label}</text>
|
|
87
|
+
</g>`)}function uy(n,a,e,t){return e.map((r,i)=>F`<g>
|
|
88
|
+
<circle class="pn-badge" cx=${n+(i-(e.length-1)/2)*cp} cy=${a} r=${Ii} />
|
|
89
|
+
<text class="pn-badge-text" x=${n+(i-(e.length-1)/2)*cp} y=${a} text-anchor="middle" dominant-baseline="central">${t(r)}</text>
|
|
90
|
+
</g>`)}function dp(n,a,e,t,r,i){let l=t.length>0;return F`<g>
|
|
91
|
+
<circle class="pn-gate-dot ${l?"on":""}" cx=${n} cy=${a} r=${Ur} />
|
|
92
92
|
<text class="pn-gate ${l?"on":""}" x=${n} y=${a} text-anchor="middle" dominant-baseline="central">${e}</text>
|
|
93
|
-
${
|
|
94
|
-
</g>`}function
|
|
95
|
-
<line class=${w} x1=${m} y1=${l+
|
|
96
|
-
<line class=${w} x1=${m} y1=${d+13} x2=${m} y2=${c-
|
|
93
|
+
${uy(n,a+i,t,r)}
|
|
94
|
+
</g>`}function gp(n){let a=[];for(let e of[true,false]){let t=n.rungs.filter(p=>mp(p)===e),r=e?xn:fn[1].y+xn,i=e?fn[1].y:fn[2].y,l=r+26,c=i-26,d=(l+c)/2;t.forEach((p,h)=>{let m=my(h,t.length),g=gy(p),b=g===p.gateA?p.gateB:p.gateA,w=`pn-rung ${p.defined?"on":""} ${p.isCore?"core":""}`;a.push(F`<g>
|
|
95
|
+
<line class=${w} x1=${m} y1=${l+Ur} x2=${m} y2=${d-13} />
|
|
96
|
+
<line class=${w} x1=${m} y1=${d+13} x2=${m} y2=${c-Ur} />
|
|
97
97
|
<text class="pn-name ${p.defined?"on":""}" x=${m} y=${d} text-anchor="middle" dominant-baseline="central">${p.name}</text>
|
|
98
|
-
${
|
|
99
|
-
${
|
|
100
|
-
</g>`)})}return F`${my()}${a.length>0?a:o}`}var fa=class extends f{constructor(){super(...arguments);this.chartViewport=new ne(this)}renderChart(e){let t=(e.channels??[]).filter(i=>i.gateA!=null&&i.gateB!=null).map(i=>({gateA:i.gateA,gateB:i.gateB,name:i.name??"",defined:i.defined===true,isCore:i.isCore===true}));if(t.length===0)return o;let r=new Map((e.gates??[]).filter(i=>i.gate!=null).map(i=>[i.gate,i.heldBy??[]]));return s`<svg class="chart" part="chart" viewBox="${dp}" preserveAspectRatio="xMidYMid meet" role="img" aria-label="Penta ladder: the Throat, G and Sacral with the six penta channels between them, each marked defined or open and lettered with the members holding its gates"><title>Penta</title>${hp({rungs:t,holders:r,letterFor:mp})}</svg>`}renderData(e){let t=e.channels??[],r=e.gates??[],i=e.summary,l=i?.gapGates??[],c=t.some(d=>d.isCore);return s`<div class="wrap" part="card" aria-label="Human Design penta"><header class="head" part="header"><h2>Penta</h2>${typeof e.memberCount=="number"?s`<span class="count">${e.memberCount} members</span>`:o}</header>${this.chartViewport.renderChartViewport(this.renderChart(e),"Penta",this.translator)} ${pt([{label:"Members",value:e.memberCount?.toString()},{label:"Defined channels",value:typeof i?.definedChannels=="number"&&t.length>0?`${i.definedChannels} of ${t.length}`:void 0},{label:"Filled gates",value:typeof i?.filledGates=="number"&&r.length>0?`${i.filledGates} of ${r.length}`:void 0},{label:"Core",value:typeof i?.coreDefined=="boolean"?i.coreDefined?"Defined":"Open":void 0},{label:"Gap gates",value:l.length>0?l.join(", "):void 0}])} ${this.hideReadings?o:s`<p class="lead">A penta is the field three to five people form when they work as a group. It is read from the twelve penta gates the members bring between them: a channel with both of its gates held somewhere in the group is a defined Strength, and a gate no member holds is a gap the group has to compensate for.</p>`} ${this.renderGroup("Upper (direction)",t.filter(d=>d.position==="upper"),"Upper channels run from the G Center to the Throat. They carry the leadership of the group and how it presents itself.")} ${this.renderGroup("Lower (execution)",t.filter(d=>d.position==="lower"),"Lower channels run from the G Center to the Sacral. They carry the managed, generative, resource work.")} ${this.renderGroup("Channels",t.filter(d=>d.position!=="upper"&&d.position!=="lower"))} ${c&&!this.hideReadings?s`<p class="footnote">Core is the 2/14 Channel of the Beat, the material core of the penta: gate 2 sets the direction for resources, gate 14 is the resources themselves.</p>`:o} ${this.renderGates(r)} ${t.length>0||r.length>0?s`<p class="footnote" part="legend">Members are lettered in the order they were sent, so A is the first member of the group.</p>`:o}</div>`}renderGroup(e,t,r){return t.length===0?o:s`<div class="section" part="section channels"><h3>${e}</h3>${r&&!this.hideReadings?s`<p class="note">${r}</p>`:o} ${t.map(i=>s`<div class="row"><span class="gates">${i.gateA}-${i.gateB}</span> <span class="cname">${i.name??""} ${i.circuit?s`<span class="circuit">${i.circuit} circuit</span>`:o} </span><span class="roxy-chip" data-tone="${i.defined?"success":o}">${i.defined?"Defined":"Open"}</span> ${i.isCore?s`<span class="roxy-chip core">Core</span>`:o} <span class="held">Gate ${i.gateA} held by ${Gi(i.gateAHeldBy)}. Gate ${i.gateB} held by ${Gi(i.gateBHeldBy)}.</span></div>`)}</div>`}renderGates(e){if(e.length===0)return o;let t=e.filter(r=>r.filled).length;return s`<div class="section" part="section gates"><h3>Gates (${t} of ${e.length} filled)</h3>${this.hideReadings?o:s`<p class="note">The role each gate brings to the group, and who carries it. A gap is a role no member holds, so the group compensates for it.</p>`} ${e.map(r=>s`<div class="row"><span class="gate-id">${r.gate}</span> <span class="cname">${r.gateName??""}</span> ${r.filled?s`<span class="who">Held by ${Gi(r.heldBy)}</span>`:s`<span class="roxy-chip" data-tone="danger">Gap</span>`}</div>`)}</div>`}};fa.endpoints=rl,fa.styles=[v,pe,Qt,u`.chart{width:100%;max-width:var(--roxy-chart-max-width,22rem);height:auto;margin:0 auto;display:block}.pn-bar{fill:color-mix(in srgb, var(--roxy-accent) 12%, transparent);stroke:var(--roxy-accent-ink);stroke-width:1.5px}.pn-bar-label{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .9375);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.pn-rung{stroke:var(--roxy-border);stroke-width:6px;stroke-dasharray:6 6}.pn-rung.on{stroke:var(--roxy-accent-ink);stroke-dasharray:none}.pn-rung.on.core{stroke-width:9px}.pn-name{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .75);font-family:var(--roxy-font-sans)}.pn-name.on{fill:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.pn-gate-dot{fill:var(--_mask);stroke:var(--roxy-border);stroke-width:1.5px;stroke-dasharray:4 4}.pn-gate-dot.on{stroke:var(--roxy-accent-ink);stroke-dasharray:none}.pn-gate{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.pn-gate.on{fill:var(--roxy-fg)}.pn-badge{fill:var(--roxy-accent-ink)}.pn-badge-text{fill:var(--roxy-bg);font-size:calc(var(--roxy-text-base) * .5625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.count{color:var(--roxy-accent-ink);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.section{border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md)}.note{margin-block-start:var(--roxy-space-xs)}.note,.held,.who,.footnote{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.row{align-items:center;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.row:last-child{border-block-end:0}.gates,.gate-id{font-variant-numeric:tabular-nums;min-width:5ch;font-weight:var(--roxy-weight-bold);color:var(--roxy-accent-ink)}.cname{flex:1;min-width:16ch}.circuit{color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:block}.held{flex-basis:100%}.roxy-chip.core{color:var(--roxy-accent-ink);border-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}`],fa=y([L("roxy-hd-penta")],fa);var yy="ABCDE",mp=n=>yy[n]??String(n+1);function Gi(n){let a=(n??[]).map(mp);return a.length>0?a.join(", "):"nobody"}var xa=class extends f{renderData(a){return uy(a)?this.renderType(a):this.renderProfile(a)}renderType(a){return s`<div class="wrap" part="card"><header class="head" part="header"><h2>${this.t("Type")}</h2>${a.type||a.profile?s`<div class="type-line">${[x(a,"type"),a.profile?this.t("Profile {{profile}}",{profile:a.profile}):""].filter(Boolean).join(" \xB7 ")}</div>`:o}</header>${pt([{label:this.t("Type"),value:x(a,"type")},{label:this.t("Strategy"),value:x(a,"strategy")},{label:this.t("Authority"),value:x(a,"authority")},{label:this.t("Profile"),value:a.profile}])} ${a.typeDescription&&!this.hideReadings?s`<p class="lead">${a.typeDescription}</p>`:o} ${Us(a.signature?x(a,"signature"):void 0,a.notSelf?x(a,"notSelf"):void 0,this.translator)} ${this.renderInterpretation([{label:this.t("Strategy"),aside:x(a,"strategy"),body:a.strategyDescription},{label:this.t("Authority"),aside:x(a,"authority"),body:a.authorityDescription},{label:this.t("Aura"),body:a.aura}],"hd-type-reading")}</div>`}renderProfile(a){return s`<div class="wrap" part="card"><header class="head" part="header"><h2>${this.t("Profile")}</h2>${a.profile?s`<div class="type-line">${a.profile}</div>`:o}</header>${pt([{label:this.t("Profile"),value:a.profile},{label:this.t("Personality line"),value:a.personalityLine?.toString()},{label:this.t("Design line"),value:a.designLine?.toString()}])} ${this.hideReadings?o:s`<section class="block" part="section lines"><h3>${this.t("Lines")}</h3>${Vs({personality:a.personalityKeynote,personalityLine:a.personalityLine,design:a.designKeynote,designLine:a.designLine},this.translator)}</section>`}</div>`}};xa.endpoints=sl,xa.styles=[v,O,H,Qt,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.type-line{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}`],xa=y([L("roxy-hd-type-card")],xa);function uy(n){return typeof n.type=="string"}var ba=class extends f{renderData(a){let e=[...a.arrows??[]].sort((t,r)=>gp(t.position)-gp(r.position));return s`<div class="wrap" part="card" aria-label="${this.t("Human Design variables")}"><h2 part="header">${this.t("Variables")}</h2><div class="grid" part="details arrows">${e.map(t=>this.renderArrow(t))}</div>${a.confident===false?s`<p class="note" role="note">${typeof a.confidenceMarginDeg=="number"?this.t("Low confidence: a birth time near a color or tone boundary (within {{margin}}\xB0). Verify the exact birth time.",{margin:a.confidenceMarginDeg}):this.t("Low confidence: a birth time near a color or tone boundary. Verify the exact birth time.")}</p>`:o} ${this.renderReading(e,a.baseDescription)}</div>`}renderArrow(a){let e=a.direction==="left"?"\u2190":"\u2192",t=x(a,"baseName");return s`<div class="arrow"><div class="arrow-head"><span class="glyph ${a.activation?.side??""}" aria-hidden="true">${e}</span> <span class="name">${x(a,"name")}</span></div>${a.layer?s`<span class="layer">${x(a,"layer")}</span>`:o} <span class="labels">${[x(a,"directionLabel"),x(a,"colorLabel")].filter(Boolean).join(" \xB7 ")} </span>${typeof a.color=="number"?s`<span class="ctb">${this.t("Color {{color}} \xB7 Tone {{tone}} \xB7 Base {{base}}",{color:a.color,tone:a.tone??"",base:a.base??""})}${t?`, ${t}`:""}</span>`:o} ${a.activation?.planet?s`<span class="ctb">${[x(a.activation,"planet"),mi(a.activation.side,this.translator)].filter(Boolean).join(" \xB7 ")}</span>`:o} ${a.confident===false?s`<span class="note" role="note">${this.t("Knife-edge: could flip with a more precise birth time.")}</span>`:o}</div>`}renderReading(a,e){let t=a.filter(l=>l.description||l.colorMeaning);if(t.length===0||this.hideReadings)return o;let r=new Map;for(let l of t){let c=l.layer??"",d=r.get(c);d?d.push(l):r.set(c,[l])}let i=0;return s`<section class="block" part="section readings"><h3>${this.t("Reading")}</h3>${[...r].map(([l,c])=>s`<div class="group">${l?s`<p class="group-head">${x(c[0],"layer")}</p>`:o} ${c[0]?.layerDescription?s`<p class="group-note">${c[0].layerDescription}</p>`:o} ${c.map(d=>this.renderArrowReading(d,i++===0))}</div>`)} ${e?s`<p class="footnote">${this.t("Base")}. ${e}</p>`:o}</section>`}renderArrowReading(a,e){let t=a.cognition,r=t?x(t,"label"):"",i=[{label:this.t("Color"),body:a.colorMeaning},{label:this.t("Tone"),body:a.toneMeaning},{label:this.t("Direction"),body:a.directionMeaning},{label:r?`${this.t("Cognition")} \xB7 ${r}`:this.t("Cognition"),body:t?.description}].filter(l=>!!l.body);return s`<details class="interp-card" part="reading" name="hd-variable" ?open="${e}"><summary><span class="interp-lead">${x(a,"name")}</span> ${V()} ${a.position?s`<span class="interp-aside"><small>${x(a,"position")}</small></span>`:o}</summary><div class="interp-body">${a.description?s`<p>${a.description}</p>`:o} ${i.length>0?s`<dl class="facets">${i.map(l=>s`<dt>${l.label}</dt><dd>${l.body}</dd>`)}</dl>`:o}</div></details>`}};ba.endpoints=nl,ba.styles=[v,O,H,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.grid{gap:0 var(--roxy-space-lg);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.arrow{align-content:start;gap:var(--roxy-space-xs);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);display:grid}.arrow-head{align-items:center;gap:var(--roxy-space-sm);display:flex}.glyph{font-size:var(--roxy-text-xl);color:var(--roxy-accent-ink);line-height:1}.glyph.design{color:var(--roxy-danger-fg)}.glyph.personality{color:var(--roxy-fg)}.name{font-weight:var(--roxy-weight-bold)}.layer,.ctb{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.ctb{font-variant-numeric:tabular-nums}.labels{font-size:var(--roxy-text-sm)}.note{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs)}@container (width<=28rem){.grid{grid-template-columns:minmax(0,1fr)}}.group+.group{margin-block-start:var(--roxy-space-md)}.group-head{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.group-note,.footnote{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.group-note{margin-block-end:var(--roxy-space-sm)}.facets{gap:var(--roxy-space-xs);margin:0;display:grid}.facets dd{margin:0}`],ba=y([L("roxy-hd-variables")],ba);function gp(n){switch(n){case"Top left":return 0;case"Top right":return 1;case"Bottom left":return 2;case"Bottom right":return 3;default:return 99}}var fy={udaya:"Rose",asta:"Set"},xy={udaya:"rises",asta:"sets"},va=class extends f{renderData(a){let e=a.grahas??[];return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Heliacal visibility")}"><header class="head" part="header"><h2>${this.t("Heliacal rising and setting")}</h2><p class="sub">${this.t("Whether each graha stands far enough from the Sun to be seen, for {{date}}. The Sun and the nodes never appear here: they have no heliacal event.",{date:a.date})}</p></header><div part="table">${e.map(t=>this.renderGraha(t))}</div></div>`:this.renderEmpty()}renderGraha(a){let e=C(a.graha)??"";return s`<article class="row"><div class="row-top"><span class="graha">${e?s`<span class="glyph roxy-glyph">${e}</span>`:o}${a.graha} </span><span class="state roxy-chip ${a.visible?"visible":"invisible"}" data-tone="${a.visible?o:"warning"}">${a.visible?this.t("Visible"):this.t("Invisible")} </span>${a.retrograde?s`<span class="retro" title="${this.t("retrograde")}">R</span>`:o}</div><p class="window" part="window">${this.windowLine(a)}</p><p class="meta" part="details">${this.metaLine(a)}</p></article>`}windowLine(a){let e=a.nextEvent,t=a.lastEvent;if(e){let r={event:this.t(xy[e.type]),where:e.horizon==="east"?this.t("in the east"):this.t("in the west"),when:Y(this.effectiveLang(),e.datetime)};return s`${a.visible?this.t("Visible until it {{event}} {{where}} on {{when}}",r):this.t("Invisible until it {{event}} {{where}} on {{when}}",r)}`}return t?s`${this.t("{{event}} {{where}} on {{when}}, with no further event inside the search window",{event:this.t(fy[t.type]),where:t.horizon==="east"?this.t("in the east"):this.t("in the west"),when:Y(this.effectiveLang(),t.datetime)})}`:s`${this.t("No rising or setting inside the search window, which is normal for a graha far from the Sun")}`}metaLine(a){let e=a.horizon==="east"?this.t("a morning graha, read before sunrise"):this.t("an evening graha, read after sunset"),t=a.nextEvent??a.lastEvent,r=t&&t.kalamsa!==a.kalamsa,i={degrees:$(this.effectiveLang(),a.timeDegrees,2),limit:$(this.effectiveLang(),a.kalamsa,0),shifted:r?$(this.effectiveLang(),t.kalamsa,0):""};return s`${r?this.t("{{degrees}}\xB0 of time from the Sun against a limit of {{limit}}\xB0, becoming {{shifted}}\xB0 at that event",i):this.t("{{degrees}}\xB0 of time from the Sun against a limit of {{limit}}\xB0",i)} · ${e}`}};va.endpoints=il,va.styles=[v,u`.wrap{overflow:hidden}.head{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);display:grid}h2,p{margin:0}.sub,.meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.row{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);grid-template-columns:minmax(0,1fr);display:grid}.row-top{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.retro{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}.window{font-size:var(--roxy-text-sm)}`],va=y([L("roxy-heliacal-table")],va);var La=class extends f{resolveHexagram(){let a=this.data;if(!a)return null;if("hexagram"in a&&a.hexagram){if("lines"in a){let i=a,l=i.hexagram;return{hex:l,lines:i.lines,date:i.date,changingLinePositions:i.changingLinePositions,changingLines:i.changingLines??l.changingLines,resultingHexagram:i.resultingHexagram}}let t=a,r=t.hexagram;return{hex:r,changingLines:r.changingLines,dailyMessage:t.dailyMessage,date:t.date}}let e=a;return{hex:e,changingLines:e.changingLines}}renderData(){let a=this.resolveHexagram();if(!a)return this.renderEmpty();let{hex:e,lines:t,changingLinePositions:r,changingLines:i,dailyMessage:l,date:c,resultingHexagram:d}=a;return s`<article class="card" part="card" aria-label="${this.t("I Ching hexagram")}">${this.renderHexagram("hexagram",e,t,r,i,l,c)} ${d?s`<details class="result" part="section resulting-hexagram"><summary>${this.t("Becomes hexagram {{number}} {{name}}.",{number:d.number,name:d.english??d.chinese??""})}${V()}</summary><div class="result-chart">${this.renderHexagram("result",d)}</div></details>`:o}</article>`}renderHexagram(a,e,t,r,i,l,c){let d=t??this.derivedLines(e),p=Bc(e.number),h=new Set(r??[]),m=!this.hideReadings;return s`<div class="glyphs" part="chart">${p?s`<div class="symbol roxy-glyph">${p}</div>`:o} ${d.length>0?s`<div class="lines" aria-hidden="true">${d.slice().reverse().map((g,b)=>{let w=d.length-1-b+1,S=h.has(w),R=g===6||g===8;return s`<div class="line ${`${R?"broken":"solid"}${S?" changing":""}`}">${R?s`<span class="seg"></span><span class="seg"></span>`:s`<span class="seg"></span>`}</div>`})}</div>`:o}</div><div part="header"><h2>${[e.number!=null?`${e.number}.`:"",e.english??e.chinese??this.t("I Ching hexagram")].filter(Boolean).join(" ")}</h2>${c?s`<time class="daily-date" part="details" datetime="${c}">${A(this.effectiveLang(),c)}</time>`:o}<p class="subtitle">${e.chinese?s`${e.chinese}`:o} ${e.pinyin?s`· ${e.pinyin}`:o}</p><div class="trigrams roxy-label" part="details">${e.upperTrigram?s`<div>${this.t("Upper")} <span class="tri-glyph roxy-glyph">${jt(e.upperTrigram)??""}</span>${e.upperTrigram}</div>`:o} ${e.lowerTrigram?s`<div>${this.t("Lower")} <span class="tri-glyph roxy-glyph">${jt(e.lowerTrigram)??""}</span>${e.lowerTrigram}</div>`:o}</div>${e.judgment&&m?s`<p class="judgment">${e.judgment}</p>`:o} ${e.image&&m?s`<p class="image">${e.image}</p>`:o} ${l&&m?s`<p class="message">${l}</p>`:o} ${e.interpretation?.general&&m?s`<p>${e.interpretation.general}</p>`:o} ${h.size>0?s`<div class="changes" part="section changing-lines">${this.t("Changing lines: {{lines}}.",{lines:Array.from(h).sort((g,b)=>g-b).join(", ")})}</div>`:o} ${this.renderTopics(e,a)} ${this.renderLines(i??e.changingLines,h,`${a}-lines`)}</div>`}renderTopics(a,e){let t=a.interpretation;return t?this.renderInterpretation([{label:this.t("Love"),body:t.love??""},{label:this.t("Career"),body:t.career??""},{label:this.t("Decision"),body:t.decision??""},{label:this.t("Advice"),body:t.advice??""}].filter(r=>r.body),`${e}-topics`,"Readings"):o}renderLines(a,e,t){let r=a??[];if(r.length===0)return o;let i=e.size>0,l=i?r.filter(d=>e.has(d.position)):r;if(l.length===0)return o;let c=l.map(d=>({label:`Line ${d.position}`,body:d.text??"",extra:d.meaning?s`<p class="line-meaning">${d.meaning}</p>`:o}));return this.renderInterpretation(c,t,i?"Changing lines":"Lines")}derivedLines(a){let e=a.binary??"";return/^[01]{6}$/.test(e)?Array.from(e,t=>t==="1"?7:8):[]}};La.endpoints=ol,La.styles=[v,O,H,u`.card{gap:var(--roxy-space-lg);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,4lh) minmax(0,1fr);display:grid}.result-chart{gap:var(--roxy-space-lg);grid-template-columns:minmax(0,4lh) minmax(0,1fr);padding-block-start:var(--roxy-space-md);display:grid}.result{border-block-start:1px solid var(--roxy-border);grid-column:1/-1;padding-block-start:var(--roxy-space-md)}.result>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);display:flex}@container (width<=480px){.card,.result-chart{grid-template-columns:minmax(0,1fr)}}h2,p{margin:0}.glyphs{align-content:start;align-self:start;justify-items:center;gap:var(--roxy-space-md);display:grid}.symbol{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2);line-height:1}.lines{gap:calc(var(--roxy-space-unit) * 1.5);inline-size:2lh;display:grid}.line{gap:var(--roxy-space-xs);grid-template-columns:1fr 1fr;display:grid}.seg{block-size:calc(var(--roxy-line-thick) * 3);background:var(--roxy-fg);display:block}.line.solid .seg{grid-column:1/-1}.line.changing .seg{background:var(--roxy-accent)}.subtitle{color:var(--roxy-muted);font-size:var(--roxy-text-sm);margin-block-end:var(--roxy-space-sm)}.daily-date{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);margin-block-end:var(--roxy-space-sm);display:block}.trigrams{gap:var(--roxy-space-md);flex-wrap:wrap;margin-block-end:var(--roxy-space-sm);display:flex}.tri-glyph{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xl);vertical-align:middle;margin-inline-end:var(--roxy-space-xs)}.judgment,.image,.message{font-size:var(--roxy-text-sm);margin-block-end:var(--roxy-space-sm)}.judgment:before{content:"Judgment. ";color:var(--roxy-secondary);font-weight:var(--roxy-weight-bold)}.image:before{content:"Image. ";color:var(--roxy-secondary);font-weight:var(--roxy-weight-bold)}.line-meaning{border-inline-start:var(--roxy-line-thick) solid var(--roxy-border);color:var(--roxy-muted);padding-inline-start:var(--roxy-space-sm)}.changes{border-block-start:1px solid var(--roxy-border);color:var(--roxy-accent-ink);font-size:var(--roxy-text-sm);margin-block-start:var(--roxy-space-md);padding-block-start:var(--roxy-space-md)}`],La=y([L("roxy-hexagram")],La);var $a=class extends f{renderData(a){let e=a.dayHoras??[],t=a.nightHoras??[];return e.length===0&&t.length===0?this.renderEmpty():s`<div class="wrap" part="card" aria-label="${this.t("Hora periods")}"><div class="head" part="header"><h2>${this.t("Hora")}</h2>${a.date?s`<p class="roxy-label">${A(this.effectiveLang(),a.date)}</p>`:o}</div><div class="cols" part="table">${this.renderColumn(this.t("Daytime"),e)} ${this.renderColumn(this.t("Night"),t)}</div></div>`}renderColumn(a,e){return e.length===0?o:s`<div class="col"><h3 class="section-label">${a}</h3>${e.map(t=>s`<div class="row"><span class="glyph roxy-glyph" aria-hidden="true">${C(t.planet)??"\xB7"}</span> <span class="planet">${t.planet}</span> <span class="time">${Ke(this.effectiveLang(),t)}</span> ${typeof t.number=="number"?s`<span class="num">${t.number}</span>`:o}</div>`)}</div>`}};$a.endpoints=ll,$a.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}h2,h3,p{margin:0}.cols{gap:var(--roxy-space-md);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.section-label{margin-block-end:var(--roxy-space-xs)}.row{align-items:center;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-xs);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;display:flex}.row:last-child{border-block-end:0}.glyph{inline-size:2ch;color:var(--roxy-accent-ink);font-size:var(--roxy-text-base);text-align:center;line-height:1}.planet{flex:1}.time{color:var(--roxy-muted);white-space:nowrap}.num{inline-size:3ch;color:var(--roxy-muted);font-size:var(--roxy-text-xs);text-align:end}@container (width<=30rem){.cols{grid-template-columns:minmax(0,1fr)}}`],$a=y([L("roxy-hora-table")],$a);var by={daily:"Daily",weekly:"Weekly",monthly:"Monthly",yearly:"Yearly"},vy={aspect:"Aspect","sign-ingress":"Sign ingress","retrograde-station":"Retrograde station","lunar-phase":"Lunar phase",eclipse:"Eclipse","solar-season":"Solar season"},Ly={"new-moon":"New Moon","first-quarter":"First Quarter","full-moon":"Full Moon","last-quarter":"Last Quarter"},yp={penumbral:"Penumbral eclipse",partial:"Partial eclipse",annular:"Annular eclipse",total:"Total eclipse"},up={retrograde:"Turns retrograde",direct:"Turns direct"},$y=[["love","Love"],["career","Career"],["health","Health"],["finance","Finance"],["advice","Advice"]];function fn(n,a){return a!==void 0&&Object.hasOwn(n,a)?n[a]:void 0}var wy=[["love","Love"],["career","Career"],["health","Health"],["finance","Finance"]],Je=class extends f{constructor(){super(...arguments);this.period="daily";this.layout="auto";this.rowDetail={tag:"roxy-crystal-card",path:"crystals/{id}"}}renderData(e){let t=e.sign??"",r=z(t)??"",i="energyRating"in e&&typeof e.energyRating=="number"?e.energyRating:null,l=this.effectiveLang(),c="date"in e&&e.date&&A(l,e.date)||"week"in e&&e.week&&A(l,e.week)||"month"in e&&e.month&&Gt(l,e.month,"month")||("year"in e&&e.year?String(e.year):"")||"";return s`<article class="card" part="card" aria-labelledby="horoscope-title"><header class="head" part="header"><span class="glyph roxy-glyph" aria-hidden="true">${r}</span><div><h2 class="title" id="horoscope-title">${t} ${this.t(by[this.period])}</h2>${c?s`<p class="date roxy-label">${c}</p>`:o}</div>${i!==null?s`<span class="energy" part="details" aria-label="${this.t("Energy {{value}} of 10",{value:i})}">${this.t("Energy {{value}}/10",{value:i})} <span class="energy-bar"><span style="width:${i/10*100}%"></span></span></span>`:o}</header>${this.renderReading(e)} ${this.renderSky(e)} ${this.renderEvents(e.events)} ${this.renderPositions(e.positions)} ${this.renderYear(e)} ${this.renderMonth(e)} ${(()=>{let d="luckyNumber"in e&&e.luckyNumber!==void 0?e.luckyNumber:void 0,p="luckyColor"in e&&e.luckyColor?e.luckyColor:"",h="crystal"in e?e.crystal:void 0,m="luckyNumbers"in e&&e.luckyNumbers?e.luckyNumbers:[],g="luckyDays"in e&&e.luckyDays?e.luckyDays:[],b=e.compatibleSigns??[];return d===void 0&&!p&&!h&&m.length===0&&g.length===0&&b.length===0?o:s`<div class="lucky" part="details">${d!==void 0?s`<span>${this.t("Lucky number")} <strong>${d}</strong></span>`:o} ${p?s`<span>${this.t("Lucky color")} <strong>${p}</strong></span>`:o} ${h?s`<span>${this.t("Crystal")} <button type="button" class="crystal" aria-pressed="${this.openedRowId===h.id?"true":"false"}" @click="${()=>this.pickRow({id:h.id,name:h.name})}">${h.name}</button></span>`:o} ${m.length?s`<span>${this.t("Lucky numbers")} <strong>${m.join(", ")}</strong></span>`:o} ${g.length?s`<span>${this.t("Lucky days")} <strong>${g.join(", ")}</strong></span>`:o} ${b.length?s`<span class="compat-wrap">${this.t("Best with")}<ul class="compat roxy-chips">${b.map(w=>s`<li>${w}</li>`)}</ul></span>`:o}</div>`})()} ${this.openedRow?s`<div class="detail" part="detail">${this.openedRow}</div>`:o}</article>`}renderReading(e){if(this.hideReadings)return o;if(this.layout==="column"||this.layout==="auto"&&!!e.column)return e.column?this.renderColumn(e.column):o;let r=this.paragraphs(e.overview);return s`${r.length?s`<div class="overview" part="section overview">${r}</div>`:o}<div class="sections" part="section outlook">${$y.map(([i,l])=>{let c=this.paragraphs(e[i]);return c.length?s`<div class="section"><h3>${this.t(l)}</h3>${c}</div>`:o})}</div>`}renderColumn(e){let t=this.paragraphs(e);return t.length===0?o:s`<div class="column" part="section column">${t}</div>`}paragraphs(e){return(e??"").split(/\n\s*\n/).map(t=>t.trim()).filter(Boolean).map(t=>s`<p>${t}</p>`)}renderEvents(e){if(!e?.length)return o;let t=this.effectiveLang();return s`<section part="section events"><h3>${this.t("Events")}</h3><ul class="rows" aria-label="${this.t("Events")}">${e.map(r=>{let i=!!r.placements?.length;return this.renderRow(s`<time class="row-when" datetime="${r.at}">${Gt(t,cr(r.at),"time")}</time>`,this.renderEventBodies(r),s`<span class="kind">${this.t(fn(Ly,r.phase)??fn(yp,r.kind)??fn(up,r.direction)??vy[r.type])}</span> ${i?o:s`<span>${this.t("House")} ${r.house}</span>`} ${!i&&r.sign?s`<span>${this.glyphName(z(r.sign),D(r.sign))}</span>`:o} ${r.through&&r.through!==r.at?s`<span>${this.t("through {{date}}",{date:A(t,cr(r.through))})}</span>`:o}`,{when:"element"})})}</ul></section>`}renderEventBodies(e){let t=(e.bodies??[]).map((r,i)=>{let l=e.placements?.[i];return s`${this.glyphName(C(r),r)}${l?this.renderPlace(l):o}`});return t.length===2&&e.aspect?s`${t[0]} <span class="${`${de({type:e.aspect})} roxy-glyph`}">${ur(e.aspect)??e.aspect}</span> ${t[1]}`:s`${t}`}renderPlace(e){return s`<span class="place">${this.glyphName(z(e.sign),D(e.sign))}<span>${this.t("House {{n}}",{n:e.house})}</span></span>`}renderPositions(e){if(!e?.length)return o;let t=this.effectiveLang();return s`<section part="section positions"><h3>${this.t("Positions")}</h3><ul class="rows" aria-label="${this.t("Positions")}">${e.map(r=>this.renderRow(this.stay(t,r),s`${this.glyphName(C(r.name),r.name)}${r.isRetrograde?s`<span class="retro roxy-glyph" aria-label="${this.t("retrograde")}">${ae}</span>`:o}${this.renderPlace(r)}`,s`<span>${D(r.dignity)}</span> ${r.turnsDirectAt?s`<span class="turn"><span class="roxy-glyph" aria-hidden="true">${ae}</span>${this.t("through {{date}}",{date:A(t,cr(r.turnsDirectAt))})}</span>`:o}`))}</ul></section>`}stay(e,t){let r=cr(t.enteredAt),i=cr(t.leavesAt);return r&&i?ve(e,r,i):i?this.t("through {{date}}",{date:A(e,i)}):r?this.t("since {{date}}",{date:A(e,r)}):""}renderYear(e){if(!("themes"in e))return o;let t=this.effectiveLang();return s`${e.themes.length?s`<section part="section themes"><h3>${this.t("Themes")}</h3><ul class="rows">${e.themes.map(r=>this.renderRow(ve(t,r.from,r.to),s`${this.glyphName(C(r.body),r.body)} ${this.glyphName(z(r.sign),D(r.sign))}`,s`<span>${this.t("House")} ${r.house}</span><span>${r.theme}</span>`))}</ul></section>`:o} ${e.keyPeriods.length?s`<section part="section key-periods"><h3>${this.t("Key periods")}</h3><ul class="rows">${e.keyPeriods.map(r=>this.renderRow(ve(t,r.from,r.to),this.glyphName(C(r.body),r.body),s`<span>${this.t("House")} ${r.house}</span><span>${r.focus}</span>`))}</ul></section>`:o} ${e.eclipses.length?s`<section part="section eclipses"><h3>${this.t("Eclipses")}</h3><ul class="rows">${e.eclipses.map(r=>this.renderRow(A(t,r.date),s`<span class="name">${this.wireLabel(yp,r.kind)}</span>`,s`<span>${this.t("House")} ${r.house}</span><span>${r.theme}</span>`))}</ul></section>`:o} ${e.retrogrades.length?s`<section part="section retrogrades"><h3>${this.t("Retrogrades")}</h3><ul class="rows">${e.retrogrades.map(r=>this.renderRow(A(t,r.date),s`${this.glyphName(C(r.body),r.body)} <span>${this.wireLabel(up,r.direction)}</span>`,s`<span>${this.t("House")} ${r.house}</span><span>${r.theme}</span>`))}</ul></section>`:o} ${this.renderBestPeriods(e.bestPeriods)}`}renderBestPeriods(e){if(!e)return o;let t=this.effectiveLang(),r=wy.filter(([i])=>e[i]);return r.length===0?o:s`<section part="section best-periods"><h3>${this.t("Best months")}</h3><div class="tiles" part="details">${r.map(([i,l])=>{let c=e[i];return c?s`<div class="tile"><span class="roxy-label">${this.t(l)}</span> <span class="tile-value">${Gt(t,c.from,"month")}</span> <span class="tile-note">${this.t("{{count}} harmonious aspects",{count:c.count})}</span></div>`:o})}</div></section>`}renderRow(e,t,r,i){return s`<li class="row" part="label-track">${i?.when==="element"?e:s`<span class="row-when">${e}</span>`} <span class="row-what">${t}</span> <span class="row-meta">${r}</span></li>`}wireLabel(e,t){let r=fn(e,t);return r?this.t(r):t}glyphName(e,t){return s`<span class="roxy-glyph" aria-hidden="true">${e??""}</span> <span class="name">${t}</span>`}renderSky(e){let t="moonSign"in e?e.moonSign:"",r="moonPhase"in e?e.moonPhase:"",i=("activeTransits"in e?e.activeTransits:[])??[];if(!t&&!r&&i.length===0)return o;let l=z(t)??"";return s`<div class="sky" part="section sky">${t||r?s`<div class="moon-line">${t?s`<span><span class="roxy-label">${this.t("Moon")}</span> <span class="roxy-glyph" aria-hidden="true">${l}</span> <b>${t}</b></span>`:o} ${r?s`<span><span class="roxy-label">${this.t("Phase")}</span> <b>${r}</b></span>`:o}</div>`:o} ${i.length?s`<ul class="transits" aria-label="${this.t("Active transits")}">${i.map(c=>s`<li>${c}</li>`)}</ul>`:o}</div>`}renderMonth(e){let t=("weekByWeek"in e?e.weekByWeek:[])??[],r=("keyDates"in e?e.keyDates:[])??[];return t.length===0&&r.length===0?o:s`${t.length&&!this.hideReadings?s`<section part="section week-by-week"><h3>${this.t("Week by week")}</h3><div class="weeks">${t.map(i=>s`<div class="week"><span class="roxy-label">${this.t("Week {{n}}",{n:i.week})}</span><div><div class="week-focus">${i.focus}</div>${i.advice?s`<p class="week-advice">${i.advice}</p>`:o}</div></div>`)}</div></section>`:o} ${r.length?s`<section part="section key-dates"><h3>${this.t("Key dates")}</h3><dl class="dates" part="label-track">${r.map(i=>s`<div class="date-row"><dt>${A(this.effectiveLang(),i.date)||i.date}</dt><dd>${i.event}</dd></div>`)}</dl></section>`:o}`}};Je.endpoints=cl,Je.styles=[v,lt,na,u`.card{gap:var(--roxy-space-lg);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}section>h3{margin-block-end:var(--roxy-space-sm)}.head{align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.glyph{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 1.5);line-height:1}.title{text-transform:capitalize;white-space:nowrap}.energy{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;margin-inline-start:auto}.energy-bar{inline-size:10ch;block-size:var(--roxy-space-sm);background:var(--roxy-border);border-radius:var(--roxy-radius-full);vertical-align:middle;margin-inline-start:var(--roxy-space-xs);display:inline-block;overflow:hidden}.energy-bar>span{background:var(--roxy-accent);height:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.column p,.overview p,.section p{line-height:1.7}.overview,.column,.section{align-content:start;gap:var(--roxy-space-sm);display:grid}.column{gap:var(--roxy-space-md)}.sections{gap:var(--roxy-space-lg) var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,48ch),1fr));display:grid}.section p{font-size:var(--roxy-text-sm)}.sky,.lucky{border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);padding-block-start:var(--roxy-space-md)}.sky{gap:var(--roxy-space-sm);display:grid}.lucky{gap:var(--roxy-space-sm) var(--roxy-space-md);color:var(--roxy-secondary);flex-wrap:wrap;display:flex}.lucky strong{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.crystal{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold);cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}.detail{margin-block-start:var(--roxy-space-md)}.compat-wrap{align-items:center;gap:var(--roxy-space-xs);flex-wrap:wrap;width:100%;display:flex}.compat>li{text-transform:capitalize}.moon-line{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.moon-line b{font-weight:var(--roxy-weight-bold)}.moon-line .roxy-label{margin-inline-end:var(--roxy-space-xs)}.transits{gap:var(--roxy-space-xs);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}.transits li::marker{color:var(--roxy-accent)}.weeks{gap:var(--roxy-space-sm);display:grid}.week{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);align-items:baseline;gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm);display:grid}.week:first-child{border-block-start:0;padding-block-start:0}.week-focus{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.week-advice{font-size:var(--roxy-text-sm);margin-block-start:calc(var(--roxy-space-unit) / 2)}.dates{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);margin:0;display:grid}.date-row{display:contents}.date-row dt{color:var(--roxy-accent-ink);font-size:inherit;font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.date-row dd{margin:0}.rows{margin:0;padding:0;list-style:none;display:grid}.row{align-items:baseline;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border)}.row:first-child{border-block-start:0;padding-block-start:0}.row-when{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.row-what{font-size:var(--roxy-text-sm)}.row-what .name,.row-meta .kind{font-weight:var(--roxy-weight-bold)}.place{gap:var(--roxy-space-xs);margin-inline:var(--roxy-space-xs) var(--roxy-space-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:inline-flex}.row-what .place .name{font-weight:inherit}.turn{gap:var(--roxy-space-xs);display:inline-flex}.row-what .retro{margin-inline-start:var(--roxy-space-xs)}.row-meta{gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;grid-column:2;display:flex}@container (width<=30rem){.row-meta{grid-column:1}}.tiles{gap:var(--roxy-space-sm) var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,16ch),1fr));display:grid}.tile{gap:calc(var(--roxy-space-unit) / 2);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm);display:grid}.tile-value{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.tile-note{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}`],y([k({type:String,reflect:true})],Je.prototype,"period",2),y([k({type:String,reflect:true})],Je.prototype,"layout",2),Je=y([L("roxy-horoscope-card")],Je);var ky=[{id:"planets",label:"Planets"},{id:"cusps",label:"Cusps"},{id:"significators",label:"Significators"}],xn=[1,2,3,4];function Fi(n,a){return n?typeof a=="number"?`${n} ${a}`:n:""}function fp(n){return[...new Set(n.map(String))].join(" > ")}function Sy(n){return[...new Set(n??[])]}var vt=class extends f{constructor(){super(...arguments);this.activeTab="planets"}bodies(){let e=this.data;if(!e)return[];let t=(e.planets??[]).map(i=>({name:i.planet,longitude:i.longitude,house:i.house,nakshatra:i.nakshatra,pada:i.pada,starLord:i.starLord,subLord:i.subLord,subSubLord:i.subSubLord,kpNumber:i.kpNumber,retrograde:i.retrograde})),r=e.nodes;for(let[i,l]of[["Rahu",r?.rahu],["Ketu",r?.ketu]])l&&t.push({name:i,longitude:l.longitude,house:l.house,nakshatra:l.nakshatra,pada:l.pada,starLord:l.starLord,subLord:l.subLord,subSubLord:l.subSubLord,kpNumber:l.kpNumber,retrograde:true});return t}renderData(e){let t=e.ascendant;return s`<div class="wrap" part="card" aria-label="KP chart"><header class="head" part="header"><h2 class="title">KP chart</h2>${t?s`<div class="asc">Ascendant: <strong>${typeof t.longitude=="number"?ye(t.longitude):t.sign??""} </strong>${t.nakshatra?s`· ${Fi(t.nakshatra,t.pada)}`:o} ${t.subLord?s`· sub lord ${t.subLord}`:o} ${typeof t.kpNumber=="number"?s`· KP ${t.kpNumber}`:o}</div>`:o} ${typeof e.meta?.ayanamsa=="number"?s`<div class="ayan">Ayanamsa: ${Wa(this.effectiveLang(),e.meta.ayanamsaType,e.meta.ayanamsa)} ${e.meta.houseSystem?s`· ${e.meta.houseSystem} houses`:o}</div>`:o}</header>${ue({items:ky,active:this.activeTab,onSelect:r=>{this.activeTab=r},label:"KP chart views",idPrefix:"kp",controls:true})}<div id="kp-panel-${this.activeTab}" part="panel" role="tabpanel" aria-labelledby="kp-tab-${this.activeTab}">${this.activeTab==="planets"?this.renderPlanets():this.activeTab==="cusps"?this.renderCusps():this.renderSignificators()}</div></div>`}renderPlanets(){let e=this.bodies();return e.length?this.scrollBox(s`<table part="table" role="table"><caption id="kp-planets-caption" class="roxy-sr-only">KP planets and nodes: each body with its position, house, nakshatra and pada, star lord, sub lord, sub sub lord and KP number.</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">Position</th><th scope="col">House</th><th scope="col">Nakshatra, pada</th><th scope="col">Star lord</th><th scope="col">Sub lord</th><th scope="col">Sub-sub lord</th><th scope="col">KP no.</th></tr></thead><tbody>${e.map(t=>s`<tr><td class="body">${t.name}${t.retrograde?s`<span class="retro">R</span>`:o}</td><td class="num">${typeof t.longitude=="number"?ye(t.longitude):""}</td><td class="num">${typeof t.house=="number"?t.house:""}</td><td>${Fi(t.nakshatra,t.pada)}</td><td>${t.starLord??""}</td><td>${t.subLord??""}</td><td>${t.subSubLord??""}</td><td class="num">${typeof t.kpNumber=="number"?t.kpNumber:""}</td></tr>`)}</tbody></table>`,"kp-planets-caption"):s`<p class="roxy-empty" role="status">No planets</p>`}renderCusps(){let e=this.data?.cusps??[],t=this.data?.houseThemes;return e.length?this.scrollBox(s`<table part="table" role="table"><caption id="kp-cusps-caption" class="roxy-sr-only">KP Placidus cusps: each house cusp with what it signifies, its position, sign lord, nakshatra and pada, star lord, sub lord, sub sub lord and KP number.</caption><thead><tr><th scope="col">House</th><th scope="col">Position</th><th scope="col">Sign lord</th><th scope="col">Nakshatra, pada</th><th scope="col">Star lord</th><th scope="col">Sub lord</th><th scope="col">Sub-sub lord</th><th scope="col">KP no.</th></tr></thead><tbody>${e.map(r=>s`<tr><td class="body num">${r.house}${this.renderThemes(si(r.house,t))}</td><td class="num">${typeof r.longitude=="number"?ye(r.longitude):r.sign??""}</td><td>${r.signLord??""}</td><td>${Fi(r.nakshatra,r.pada)}</td><td>${r.starLord??""}</td><td>${r.subLord??""}</td><td>${r.subSubLord??""}</td><td class="num">${typeof r.kpNumber=="number"?r.kpNumber:""}</td></tr>`)}</tbody></table>`,"kp-cusps-caption"):s`<p class="roxy-empty" role="status">No cusps</p>`}renderSignificators(){let e=this.data?.significators,t=this.data?.houseThemes,r=e?.houseWise??[],i=e?.planetWise??[];return!r.length&&!i.length?s`<p class="roxy-empty" role="status">No significators</p>`:s`${this.renderLevelLegend(r)} ${r.length?s`<div class="sig-head"><h3 class="sig-title">House-wise significators</h3><p class="sig-note">Planets that signify each house, strongest level first.</p></div>${this.scrollBox(s`<table part="table" role="table"><caption id="kp-house-sig-caption" class="roxy-sr-only">KP house-wise significators: each house, the planets that signify it at levels 1 to 4, and the full strength order.</caption><thead><tr><th scope="col">House</th>${xn.map(l=>s`<th scope="col">L${l}</th>`)}<th scope="col">Strength order</th></tr></thead><tbody>${r.map(l=>s`<tr><td class="body num">${l.house}${this.renderThemes(si(l.house,t))}</td>${xn.map(c=>this.renderCell(this.planetsAtLevel(l,c).join(", ")))}<td class="chain">${fp(l.all??[])}</td></tr>`)}</tbody></table>`,"kp-house-sig-caption")}`:o} ${i.length?s`<div class="sig-head"><h3 class="sig-title">Planet-wise significators</h3><p class="sig-note">Houses each planet signifies, strongest level first.</p></div>${this.scrollBox(s`<table part="table" role="table"><caption id="kp-planet-sig-caption" class="roxy-sr-only">KP planet-wise significators: each planet, the houses it signifies at levels 1 to 4, and the full strength order.</caption><thead><tr><th scope="col">Planet</th>${xn.map(l=>s`<th scope="col">L${l}</th>`)}<th scope="col">Strength order</th></tr></thead><tbody>${i.map(l=>s`<tr><td class="body">${l.planet}</td>${xn.map(c=>this.renderCell(this.housesAtLevel(l,c).join(", ")))}<td class="chain">${fp(l.allHouses??[])}${this.renderThemes(Ze(Sy(l.allHouses),t))}</td></tr>`)}</tbody></table>`,"kp-planet-sig-caption")}`:o}`}scrollBox(e,t){return s`<div class="scroll" tabindex="0" role="region" aria-labelledby="${t}">${e}</div>`}renderThemes(e){return e?s`<span class="themes">${e}</span>`:o}renderCell(e){return e?s`<td>${e}</td>`:s`<td class="empty-cell">none</td>`}planetsAtLevel(e,t){return(e.significators??[]).filter(r=>r.level===t).flatMap(r=>r.planets??[])}housesAtLevel(e,t){return(e.signifies??[]).filter(r=>r.level===t).flatMap(r=>r.houses??[])}renderLevelLegend(e){let t=new Map;for(let r of e)for(let i of r.significators??[])i.description&&!t.has(i.level)&&t.set(i.level,i.description);return t.size===0?o:s`<ul class="legend" part="legend" aria-label="Significator levels">${[...t.entries()].sort((r,i)=>r[0]-i[0]).map(([r,i])=>s`<li><b>L${r}</b>${i}</li>`)}</ul>`}};vt.endpoints=dl,vt.styles=[v,ge,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.head{gap:var(--roxy-space-xs);display:grid}.title,.sig-title,.sig-note{margin:0}.asc,.ayan{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.asc strong{color:var(--roxy-fg)}[role=tabpanel]:not([hidden]){gap:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}td.body{font-weight:var(--roxy-weight-bold)}.retro{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);margin-inline-start:var(--roxy-space-xs)}.num{font-variant-numeric:tabular-nums}.sig-head{gap:var(--roxy-space-xs);display:grid}.sig-note{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.legend{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.legend b{color:var(--roxy-accent-ink);margin-inline-end:var(--roxy-space-xs)}.chain,.empty-cell{color:var(--roxy-muted)}.themes{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-normal);display:block}`],y([I()],vt.prototype,"activeTab",2),vt=y([L("roxy-kp-chart")],vt);var Ry={strong:"Strong",favourable:"Favourable",mixed:"Mixed",caution:"Caution",unfavourable:"Unfavourable"},Cy={favourable:"Favourable",mixed:"Mixed",unfavourable:"Unfavourable",neutral:"Neutral"},xp={cusps:"Cusps",dasha:"Dasha",rulingPlanets:"Ruling planets",moonWindows:"Moon windows"},Ty={gain:"Gain",loss:"Loss"},Ey={mahadasha:"Mahadasha",antardasha:"Antardasha",pratyantardasha:"Pratyantardasha",sookshmaDasha:"Sookshma"},wa=class extends f{renderData(a){return a.layers?s`<div class="wrap" part="card" aria-label="${this.t("KP daily finance")}">${this.renderHead(a)} ${this.renderSignificators(a)}<section class="block" part="section cusps">${this.renderLayer("cusps",a.layers.cusps,this.renderCuspRows(a.layers.cusps.rows))}</section><section class="block" part="section dasha">${this.renderLayer("dasha",a.layers.dasha,this.renderDashaRows(a.layers.dasha.rows))}</section><section class="block" part="section ruling-planets">${this.renderLayer("rulingPlanets",a.layers.rulingPlanets,this.renderRulingRows(a.layers.rulingPlanets.rows))}</section><section class="block" part="section moon-windows">${this.renderLayer("moonWindows",a.layers.moonWindows,this.renderWindowRows(a.layers.moonWindows.rows))}</section>${this.renderWindows(a)}<section class="block" part="section frame">${W(this.effectiveLang(),{ayanamsa:a.ayanamsa,ayanamsaDegrees:a.ayanamsaDegrees},this.translator)}</section></div>`:this.renderEmpty()}renderHead(a){let e=this.effectiveLang();return s`<header class="head" part="header"><div class="title-row"><h2 class="title">${this.t("KP daily finance")}</h2><span class="when">${Y(e,a.date)}</span></div><div class="verdict-row"><span class="verdict ${a.band}">${this.t(Ry[a.band])}</span> <span class="evidence">${$(e,a.score,1)}</span></div><dl class="roxy-facts" part="details"><div class="fact"><dt>${this.t("Reading moment")}</dt><dd>${Y(e,a.readingAt)}</dd></div><div class="fact"><dt>${this.t("Gain houses")}</dt><dd>${me(e,a.houses.gain.map(String))}</dd></div><div class="fact"><dt>${this.t("Loss houses")}</dt><dd>${me(e,a.houses.loss.map(String))}</dd></div></dl></header>`}renderSignificators(a){let e=a.significators,t=this.effectiveLang(),r=i=>s`<div class="roxy-chips">${i.map(l=>s`<span class="chip roxy-chip">${this.glyphName(l)}</span>`)}</div>`;return s`<section class="block" part="section significators"><h3>${this.t("Significators")}</h3><dl class="roxy-facts"><div class="fact"><dt>${this.t("Gain")}</dt><dd>${r(e.gain)}</dd></div><div class="fact"><dt>${this.t("Loss")}</dt><dd>${r(e.loss)}</dd></div></dl>${e.byHouse.length?s`<div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Significators")}"><table><thead><tr><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Significators")}</th></tr></thead><tbody>${e.byHouse.map(i=>s`<tr><td class="num">${i.house} ${this.groupChip(i.group)}</td><td class="names">${me(t,[...new Set(i.significators)])}</td></tr>`)}</tbody></table></div>`:o}</section>`}renderLayer(a,e,t){let r=this.effectiveLang();return s`<div class="block-head"><h3>${this.t(xp[a])}</h3><span class="evidence">${this.t("Weight")} ${te(r,e.weight,0)} · ${this.t("Score")} ${$(r,e.score,1)}</span></div><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t(xp[a])}">${t}</div>`}renderCuspRows(a){return s`<table><thead><tr><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Sub lord")}</th><th scope="col">${this.t("Star lord")}</th><th scope="col">${this.t("Sign lord")}</th><th scope="col">${this.t("Verdict")}</th><th scope="col">${this.t("Score")}</th></tr></thead><tbody>${a.map(e=>s`<tr><td class="num">${e.house} ${this.groupChip(e.inverted?"loss":"gain")}</td><td>${this.glyphName(e.subLord)}</td><td>${this.glyphName(e.starLord)}</td><td>${this.glyphName(e.signLord)}</td><td>${this.verdictChip(e.verdict)}</td><td class="num">${$(this.effectiveLang(),e.score,0)}</td></tr>`)}</tbody></table>`}renderDashaRows(a){let e=this.effectiveLang();return s`<table><thead><tr><th scope="col">${this.t("Level")}</th><th scope="col">${this.t("Lord")}</th><th scope="col">${this.t("Start")}</th><th scope="col">${this.t("End")}</th><th scope="col">${this.t("Verdict")}</th><th scope="col">${this.t("Score")}</th><th scope="col">${this.t("Weight")}</th></tr></thead><tbody>${a.map(t=>s`<tr><td>${this.t(Ey[t.level])}</td><td>${this.glyphName(t.lord,t.retrograde)}</td><td>${Y(e,t.startDate)}</td><td>${Y(e,t.endDate)}</td><td>${this.verdictChip(t.verdict)}</td><td class="num">${$(e,t.score,0)}</td><td class="num">${te(e,t.weight,0)}</td></tr>`)}</tbody></table>`}renderRulingRows(a){return s`<table><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Verdict")}</th><th scope="col">${this.t("Score")}</th></tr></thead><tbody>${a.map(e=>s`<tr><td>${this.glyphName(e.planet,e.retrograde)}</td><td>${this.verdictChip(e.verdict)}</td><td class="num">${$(this.effectiveLang(),e.score,0)}</td></tr>`)}</tbody></table>`}renderWindowRows(a){let e=this.effectiveLang();return s`<table><thead><tr><th scope="col">${this.t("Start")}</th><th scope="col">${this.t("End")}</th><th scope="col">${this.t("Sub lord")}</th><th scope="col">${this.t("Verdict")}</th><th scope="col">${this.t("Score")}</th></tr></thead><tbody>${a.map(t=>s`<tr><td>${Te(e,t.from)}</td><td>${Te(e,t.to)}</td><td>${this.glyphName(t.subLord)}</td><td>${this.verdictChip(t.verdict)}</td><td class="num">${$(e,t.score,0)}</td></tr>`)}</tbody></table>`}renderWindows(a){let e=this.effectiveLang(),t=a.bestWindow,r=a.worstWindows??[];if(!t&&!r.length)return o;let i=(l,c)=>s`<span class="window roxy-chip ${c}" data-tone="${c==="best"?"success":"danger"}"><span>${this.glyphName(l.subLord)}</span> <small>${Ke(e,{start:l.from,end:l.to})}</small></span>`;return s`<section class="block" part="section windows"><dl class="roxy-facts">${t?s`<div class="fact"><dt>${this.t("Best window")}</dt><dd><div class="roxy-chips">${i(t,"best")}</div></dd></div>`:o} ${r.length?s`<div class="fact"><dt>${this.t("Worst windows")}</dt><dd><div class="roxy-chips">${r.map(l=>i(l,"worst"))}</div></dd></div>`:o}</dl></section>`}glyphName(a,e=false){let t=C(a);return s`${t?s`<span class="glyph roxy-glyph" aria-hidden="true">${t}</span>`:o}${a}${e?s`<span class="retro roxy-glyph" aria-label="${this.t("retrograde")}">${ae}</span>`:o}`}verdictChip(a){return s`<span class="state ${a}">${this.t(Cy[a])}</span>`}groupChip(a){return s`<span class="chip roxy-chip">${this.t(Ty[a])}</span>`}};wa.endpoints=pl,wa.styles=[v,J,B,u`.wrap{grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}.head,.block{gap:var(--roxy-space-sm);padding:var(--roxy-space-md);display:grid}.block{border-block-start:1px solid var(--roxy-border)}.title-row,.block-head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.title,.block h3{margin:0}.when{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.verdict-row{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.verdict{font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold)}.evidence{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:is(.verdict,.state):is(.strong,.favourable){color:var(--roxy-success-fg)}:is(.verdict,.state):is(.mixed,.caution){color:var(--roxy-warning-fg)}:is(.verdict,.state).unfavourable{color:var(--roxy-danger-fg)}.state.neutral{color:var(--roxy-secondary)}.state{font-weight:var(--roxy-weight-bold)}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}td.num{font-variant-numeric:tabular-nums}td.names{white-space:normal}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.retro{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-inline-start:var(--roxy-space-xs)}.window small{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}`],wa=y([L("roxy-kp-finance-card")],wa);var ka=class extends f{renderData(a){let e=a.planets??[];return s`<div class="wrap" part="card" aria-label="KP planets table"><header class="head" part="header"><h2 class="title">KP planets</h2>${typeof a.ayanamsa=="number"?s`<span class="ayanamsa">Ayanamsa: ${$(this.effectiveLang(),a.ayanamsa,2)}°</span>`:o}</header><div class="scroll" tabindex="0" role="region" aria-labelledby="kp-planets-table-caption"><table part="table" role="table"><caption id="kp-planets-table-caption" class="roxy-sr-only">KP planets: each planet with its sign, sign lord, nakshatra, star lord, sub lord, sub sub lord and KP number.</caption><thead><tr><th scope="col">Planet</th><th scope="col">Sign</th><th scope="col">Sign lord</th><th scope="col">Nakshatra</th><th scope="col">Star lord</th><th scope="col">Sub lord</th><th scope="col">Sub-sub lord</th><th scope="col">KP no.</th></tr></thead><tbody>${e.map(t=>s`<tr><td class="planet">${t.planet} ${t.retrograde?s`<span class="retro">R</span>`:o}</td><td>${t.sign??""}</td><td>${t.signLord??""}</td><td>${t.nakshatra??""}</td><td>${t.nakshatraLord??""}</td><td>${t.subLord??""}</td><td>${t.subSubLord??""}</td><td>${t.kpNumber??""}</td></tr>`)}</tbody></table></div></div>`}};ka.endpoints=hl,ka.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.title{margin:0}.ayanamsa{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}td.planet{font-weight:var(--roxy-weight-bold)}.retro{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs);margin-inline-start:var(--roxy-space-xs)}`],ka=y([L("roxy-kp-planets-table")],ka);var Sa=class extends f{renderData(a){let e=a.significators??[];return s`<div class="wrap" part="card" aria-label="KP ruling planets"><header part="header"><h2 class="title">KP ruling planets</h2>${a.dayLord?s`<div class="day-lord">Day lord: <strong>${a.dayLord}</strong></div>`:o}</header><div class="groups" part="details"><div class="group"><h3>Moon</h3><dl part="label-track"><dt>Sign lord</dt><dd>${a.moonSignLord??""}</dd><dt>Star lord</dt><dd>${a.moonStarLord??""}</dd><dt>Sub lord</dt><dd>${a.moonSublord??""}</dd><dt>Sub-sub lord</dt><dd>${a.moonSubSublord??""}</dd></dl></div><div class="group"><h3>Lagna</h3><dl part="label-track"><dt>Sign lord</dt><dd>${a.lagnaSignLord??""}</dd><dt>Star lord</dt><dd>${a.lagnaStarLord??""}</dd><dt>Sub lord</dt><dd>${a.lagnaSublord??""}</dd><dt>Sub-sub lord</dt><dd>${a.lagnaSubSublord??""}</dd></dl></div></div>${a.rulingPlanets?.length?s`<div class="rp-list" part="details"><span class="roxy-label">Ruling planets</span><ol class="roxy-chips" aria-label="Ruling planets by strength">${a.rulingPlanets.map((t,r)=>s`<li class="rp"><span class="rank">${r+1}</span> ${t}</li>`)}</ol></div>`:o} ${e.length?s`<table part="table"><caption class="roxy-sr-only">House significators: each ruling planet, the houses it signifies, and what those houses stand for.</caption><thead><tr><th scope="col">Planet</th><th scope="col">Signifies houses</th></tr></thead><tbody>${e.map(t=>{let r=Ze(t.signifies,a.houseThemes);return s`<tr><td>${t.planet}</td><td><span class="num">${(t.signifies??[]).join(", ")}</span> ${r?s`<span class="themes">${r}</span>`:o}</td></tr>`})}</tbody></table>`:o}</div>`}};Sa.endpoints=ml,Sa.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.title,.group h3{margin:0}.day-lord{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.day-lord strong{color:var(--roxy-fg)}.groups{gap:var(--roxy-space-md) var(--roxy-space-xl);flex-wrap:wrap;display:flex}.group{gap:var(--roxy-space-xs);flex:1 1 0;min-width:min(100%,22ch);display:grid}.group dl{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);gap:var(--roxy-space-xs) var(--roxy-space-sm);font-size:var(--roxy-text-sm);margin:0;display:grid}.group dd{font-weight:var(--roxy-weight-bold);margin:0}.rp-list{align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.rp .rank{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.num{font-variant-numeric:tabular-nums}.themes{color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:block}`],Sa=y([L("roxy-kp-ruling-planets")],Sa);var Lt=class extends f{constructor(){super(...arguments);this.mode="kua"}renderData(e){let t=this.effectiveLang(),r=e.trigram;return s`<article class="card" part="card" aria-labelledby="kua-title"><header class="head" part="header"><h2 class="title" id="kua-title">${this.t("Kua")} ${e.kua??""}</h2>${e.group?s`<span class="group">${this.t("{{direction}} group",{direction:j(t,"facing",D(e.group))})}</span>`:o}</header><div class="facts" part="details">${r?s`<span><span class="roxy-label">${this.t("Trigram")}</span> <span lang="zh">${r.chinese??""}</span> ${ce(jt(r.english))} <b>${r.english??""}</b> <span class="element-word ${Se(r.element)}">${x(r,"element")}</span></span>`:o} ${r?.familyMember?s`<span><span class="roxy-label">${this.t("Role")}</span>${r.familyMember}</span>`:o} ${"solarYear"in e&&typeof e.solarYear=="number"?s`<span class="solar-year"><span class="roxy-label">${this.t("Year")}</span><b>${Gt(t,String(e.solarYear),"year")}</b></span>`:o} ${"gender"in e&&e.gender?s`<span class="formula-gender"><span class="roxy-label">${X(t,"gender")}</span>${j(t,"gender",e.gender)}</span>`:o} ${"boundaryDate"in e&&e.boundaryDate?s`<span>${this.t("Year boundary")} ${A(t,e.boundaryDate)}</span>`:o} ${"reassigned"in e&&e.reassigned?s`<span>${this.t("Reassigned from {{value}}",{value:String("rawKua"in e?e.rawKua??"":"")})}</span>`:o} ${this.renderBestWorst(e)}</div><div class="plate" part="chart plate" role="group" aria-label="${this.t("Eight mansions")}">${pn.map(i=>this.renderSector(e,i))}</div><div class="legend" part="legend"><span><span class="swatch swatch-good"></span>${this.t("Favourable")}</span> <span><span class="swatch swatch-bad"></span>${this.t("Unfavourable")}</span></div>${this.renderSectorRows(e)} ${"conventions"in e?Kt(e.conventions,this.translator,this.effectiveLang()):o}</article>`}renderBestWorst(e){if(this.mode!=="mansions"||!("bestSector"in e))return o;let t=this.effectiveLang();return s`${e.bestSector?s`<span><span class="roxy-label">${this.t("Best")}</span><b>${j(t,"facing",e.bestSector)}</b></span>`:o} ${e.worstSector?s`<span><span class="roxy-label">${this.t("Worst")}</span><b>${j(t,"facing",e.worstSector)}</b></span>`:o}`}sectorHeading(e,t){return t==="Center"?this.t("Center"):j(e,"facing",t)}renderSector(e,t){let r=this.effectiveLang(),i=this.sectorHeading(r,t);if(t==="Center")return s`<div class="sector sector-self centre"><span class="kua-number">${e.kua??""}</span> <span class="trigram-symbol roxy-glyph">${jt(e.trigram?.english)??""}</span> <span class="sector-name plate-heading">${e.trigram?.english??""}</span></div>`;let l=(e.sectors??[]).find(d=>d.direction===t);if(!l)return s`<div class="sector"><span class="sector-name plate-heading">${i}</span></div>`;let c=l.nature==="auspicious";return s`<div class="sector ${c?"sector-good":"sector-bad"}"><span class="sector-name plate-heading">${i}</span> <span class="star-name">${x(l,"starName")}</span> ${"chinese"in l&&l.chinese?s`<span class="star-hanzi" lang="zh">${l.chinese}</span>`:o} <span class="domain">${l.domain??""}</span> ${typeof l.rank=="number"?s`<span class="rank">${c?this.t("Rank"):this.t("Severity")} ${l.rank}</span>`:o}</div>`}renderSectorRows(e){let t=e.sectors??[];if(t.length===0)return o;let r=this.effectiveLang(),i=t.map(l=>{let c=this.mode==="mansions"&&"reading"in l?l.reading:void 0;return!c||this.hideReadings?o:s`<li class="row" part="label-track"><span class="roxy-label">${this.sectorHeading(r,l.direction??"")}</span><div class="row-body"><span>${x(l,"starName")}</span><p part="reading">${c}</p></div></li>`});return i.every(l=>l===o)?o:s`<section part="section sectors"><h3 class="block-title">${this.t("Sectors")}</h3><ul class="rows">${i}</ul></section>`}};Lt.endpoints=gl,Lt.styles=[v,We,B,hn,na,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.block-title{margin:0}.block-title{margin-block-end:var(--roxy-space-sm)}.group{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.facts .roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b{color:var(--roxy-fg)}.plate{background:var(--roxy-border);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;display:grid;overflow:hidden}.sector{align-content:start;gap:calc(var(--roxy-space-unit) / 2);min-block-size:3.5lh;padding:var(--roxy-space-sm);background:var(--roxy-surface);text-align:center;display:grid}.sector-good{background:color-mix(in srgb, var(--roxy-success) 10%, var(--roxy-surface))}.sector-bad{background:color-mix(in srgb, var(--roxy-danger) 10%, var(--roxy-surface))}.sector-self{background:color-mix(in srgb, var(--roxy-accent) 10%, var(--roxy-surface))}:is(.sector-good,.sector-bad,.sector-self) .sector-name,:is(.sector-good,.sector-bad) .rank{color:var(--roxy-secondary)}.star-name{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.star-hanzi,.trigram-symbol{color:var(--roxy-accent-ink)}:is(.sector-good,.sector-bad) .star-hanzi{color:var(--roxy-fg)}.domain{color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.rank{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}.centre{align-content:center}.kua-number{font-size:calc(var(--roxy-text-base) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;line-height:1}.trigram-symbol{font-size:calc(var(--roxy-text-base) * 1.5);line-height:var(--roxy-leading-tight)}@container (width<=30rem){.plate{background:var(--roxy-surface);display:block}.sector.centre{display:none}.sector{column-gap:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name rank""star hanzi""domain domain";min-block-size:auto}.sector:last-child{border-block-end:0}.sector-name{grid-area:name;align-self:center}.rank{text-align:end;white-space:nowrap;grid-area:rank;align-self:center}.star-name{grid-area:star}.star-hanzi{text-align:end;grid-area:hanzi}.domain{grid-area:domain}}.legend{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.swatch-good{background:var(--roxy-success)}.swatch-bad{background:var(--roxy-danger)}.rows{margin:0;padding:0;list-style:none;display:grid}.row{align-items:baseline;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm)}.row:first-child{border-block-start:0;padding-block-start:0}.row-body p{margin:calc(var(--roxy-space-unit) / 2) 0 0;color:var(--roxy-secondary);font-size:var(--roxy-text-xs);border-block-start:0}`],y([k({type:String,reflect:true})],Lt.prototype,"mode",2),Lt=y([L("roxy-kua-card")],Lt);var Bi=320,Ie=Bi/2,$t=128,Ay=118,bp=137,Dy=152,Py=.95,_y={glyph:11},My=_y.glyph;function wt(n,a){let e=n*Math.PI/180;return{x:Ie+a*Math.sin(e),y:Ie-a*Math.cos(e)}}var Ny=[{az:0,source:"N"},{az:45,source:"NE"},{az:90,source:"E"},{az:135,source:"SE"},{az:180,source:"S"},{az:225,source:"SW"},{az:270,source:"W"},{az:315,source:"NW"}],Ra=class extends f{constructor(){super(...arguments);this.chartViewport=new ne(this)}renderData(e){let t=e.bodies??[],r=e.birthDetails;return s`<div class="wrap" part="card"><header part="header"><h2>${this.t("Local space")}</h2>${r?s`<p class="roxy-label">${Y(this.effectiveLang(),r.date,r.time)}</p>`:o}</header>${this.chartViewport.renderChartViewport(this.renderDial(t),this.t("Local space"),this.translator)} ${e.summary&&!this.hideReadings?s`<p class="summary">${e.summary}</p>`:o} ${this.renderList(t)}</div>`}renderDial(e){return s`<svg viewBox="0 0 ${Bi} ${Bi}" part="chart" role="img" aria-label="${this.t("Local space compass of planetary directions from the birthplace")}"><title>${this.t("Local space compass")}</title><desc>${this.t("A compass centered on the birthplace. Each body is a line pointing to its azimuth, clockwise from north. Bodies below the horizon are dimmed.")}</desc><circle class="dial-fill" cx="${Ie}" cy="${Ie}" r="${$t}"/><circle class="dial" cx="${Ie}" cy="${Ie}" r="${$t*.66}" stroke-width="0.5"/><circle class="dial" cx="${Ie}" cy="${Ie}" r="${$t*.33}" stroke-width="0.5"/>${this.renderCompassRing()} ${this.renderSpokes(e)}<circle class="center-dot" cx="${Ie}" cy="${Ie}" r="2.5"/></svg>`}renderCompassRing(){let e=[];for(let d=0;d<360;d+=22.5){let p=wt(d,$t),h=wt(d,$t-(d%45===0?8:4));e.push(F`<line class="tick" x1=${h.x} y1=${h.y} x2=${p.x} y2=${p.y} />`)}let t=wt(0,$t),r=wt(180,$t),i=wt(90,$t),l=wt(270,$t),c=Ny.map(({az:d,source:p})=>{let h=wt(d,Dy),m=d%90===0;return F`<text class=${`compass-label${m?" cardinal":""}`} x=${h.x} y=${h.y} text-anchor="middle" dominant-baseline="central">${this.t(p)}</text>`});return F`
|
|
98
|
+
${dp(m,l,g,n.holders.get(g)??[],n.letterFor,Ur+Ii+7)}
|
|
99
|
+
${dp(m,c,b,n.holders.get(b)??[],n.letterFor,-(Ur+Ii+7))}
|
|
100
|
+
</g>`)})}return F`${yy()}${a.length>0?a:o}`}var fa=class extends f{constructor(){super(...arguments);this.chartViewport=new ne(this)}renderChart(e){let t=(e.channels??[]).filter(i=>i.gateA!=null&&i.gateB!=null).map(i=>({gateA:i.gateA,gateB:i.gateB,name:i.name??"",defined:i.defined===true,isCore:i.isCore===true}));if(t.length===0)return o;let r=new Map((e.gates??[]).filter(i=>i.gate!=null).map(i=>[i.gate,i.heldBy??[]]));return s`<svg class="chart" part="chart" viewBox="${hp}" preserveAspectRatio="xMidYMid meet" role="img" aria-label="Penta ladder: the Throat, G and Sacral with the six penta channels between them, each marked defined or open and lettered with the members holding its gates"><title>Penta</title>${gp({rungs:t,holders:r,letterFor:yp})}</svg>`}renderData(e){let t=e.channels??[],r=e.gates??[],i=e.summary,l=i?.gapGates??[],c=t.some(d=>d.isCore);return s`<div class="wrap" part="card" aria-label="Human Design penta"><header class="head" part="header"><h2>Penta</h2>${typeof e.memberCount=="number"?s`<span class="count">${e.memberCount} members</span>`:o}</header>${this.chartViewport.renderChartViewport(this.renderChart(e),"Penta",this.translator)} ${pt([{label:"Members",value:e.memberCount?.toString()},{label:"Defined channels",value:typeof i?.definedChannels=="number"&&t.length>0?`${i.definedChannels} of ${t.length}`:void 0},{label:"Filled gates",value:typeof i?.filledGates=="number"&&r.length>0?`${i.filledGates} of ${r.length}`:void 0},{label:"Core",value:typeof i?.coreDefined=="boolean"?i.coreDefined?"Defined":"Open":void 0},{label:"Gap gates",value:l.length>0?l.join(", "):void 0}])} ${this.hideReadings?o:s`<p class="lead">A penta is the field three to five people form when they work as a group. It is read from the twelve penta gates the members bring between them: a channel with both of its gates held somewhere in the group is a defined Strength, and a gate no member holds is a gap the group has to compensate for.</p>`} ${this.renderGroup("Upper (direction)",t.filter(d=>d.position==="upper"),"Upper channels run from the G Center to the Throat. They carry the leadership of the group and how it presents itself.")} ${this.renderGroup("Lower (execution)",t.filter(d=>d.position==="lower"),"Lower channels run from the G Center to the Sacral. They carry the managed, generative, resource work.")} ${this.renderGroup("Channels",t.filter(d=>d.position!=="upper"&&d.position!=="lower"))} ${c&&!this.hideReadings?s`<p class="footnote">Core is the 2/14 Channel of the Beat, the material core of the penta: gate 2 sets the direction for resources, gate 14 is the resources themselves.</p>`:o} ${this.renderGates(r)} ${t.length>0||r.length>0?s`<p class="footnote" part="legend">Members are lettered in the order they were sent, so A is the first member of the group.</p>`:o}</div>`}renderGroup(e,t,r){return t.length===0?o:s`<div class="section" part="section channels"><h3>${e}</h3>${r&&!this.hideReadings?s`<p class="note">${r}</p>`:o} ${t.map(i=>s`<div class="row"><span class="gates">${i.gateA}-${i.gateB}</span> <span class="cname">${i.name??""} ${i.circuit?s`<span class="circuit">${i.circuit} circuit</span>`:o} </span><span class="roxy-chip" data-tone="${i.defined?"success":o}">${i.defined?"Defined":"Open"}</span> ${i.isCore?s`<span class="roxy-chip core">Core</span>`:o} <span class="held">Gate ${i.gateA} held by ${Bi(i.gateAHeldBy)}. Gate ${i.gateB} held by ${Bi(i.gateBHeldBy)}.</span></div>`)}</div>`}renderGates(e){if(e.length===0)return o;let t=e.filter(r=>r.filled).length;return s`<div class="section" part="section gates"><h3>Gates (${t} of ${e.length} filled)</h3>${this.hideReadings?o:s`<p class="note">The role each gate brings to the group, and who carries it. A gap is a role no member holds, so the group compensates for it.</p>`} ${e.map(r=>s`<div class="row"><span class="gate-id">${r.gate}</span> <span class="cname">${r.gateName??""}</span> ${r.filled?s`<span class="who">Held by ${Bi(r.heldBy)}</span>`:s`<span class="roxy-chip" data-tone="danger">Gap</span>`}</div>`)}</div>`}};fa.endpoints=nl,fa.styles=[v,pe,Qt,u`.chart{width:100%;max-width:var(--roxy-chart-max-width,22rem);height:auto;margin:0 auto;display:block}.pn-bar{fill:color-mix(in srgb, var(--roxy-accent) 12%, transparent);stroke:var(--roxy-accent-ink);stroke-width:1.5px}.pn-bar-label{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .9375);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.pn-rung{stroke:var(--roxy-border);stroke-width:6px;stroke-dasharray:6 6}.pn-rung.on{stroke:var(--roxy-accent-ink);stroke-dasharray:none}.pn-rung.on.core{stroke-width:9px}.pn-name{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .75);font-family:var(--roxy-font-sans)}.pn-name.on{fill:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.pn-gate-dot{fill:var(--_mask);stroke:var(--roxy-border);stroke-width:1.5px;stroke-dasharray:4 4}.pn-gate-dot.on{stroke:var(--roxy-accent-ink);stroke-dasharray:none}.pn-gate{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.pn-gate.on{fill:var(--roxy-fg)}.pn-badge{fill:var(--roxy-accent-ink)}.pn-badge-text{fill:var(--roxy-bg);font-size:calc(var(--roxy-text-base) * .5625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.count{color:var(--roxy-accent-ink);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.section{border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md)}.note{margin-block-start:var(--roxy-space-xs)}.note,.held,.who,.footnote{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.row{align-items:center;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.row:last-child{border-block-end:0}.gates,.gate-id{font-variant-numeric:tabular-nums;min-width:5ch;font-weight:var(--roxy-weight-bold);color:var(--roxy-accent-ink)}.cname{flex:1;min-width:16ch}.circuit{color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:block}.held{flex-basis:100%}.roxy-chip.core{color:var(--roxy-accent-ink);border-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}`],fa=y([L("roxy-hd-penta")],fa);var fy="ABCDE",yp=n=>fy[n]??String(n+1);function Bi(n){let a=(n??[]).map(yp);return a.length>0?a.join(", "):"nobody"}var xa=class extends f{renderData(a){return xy(a)?this.renderType(a):this.renderProfile(a)}renderType(a){return s`<div class="wrap" part="card"><header class="head" part="header"><h2>${this.t("Type")}</h2>${a.type||a.profile?s`<div class="type-line">${[x(a,"type"),a.profile?this.t("Profile {{profile}}",{profile:a.profile}):""].filter(Boolean).join(" \xB7 ")}</div>`:o}</header>${pt([{label:this.t("Type"),value:x(a,"type")},{label:this.t("Strategy"),value:x(a,"strategy")},{label:this.t("Authority"),value:x(a,"authority")},{label:this.t("Profile"),value:a.profile}])} ${a.typeDescription&&!this.hideReadings?s`<p class="lead">${a.typeDescription}</p>`:o} ${qs(a.signature?x(a,"signature"):void 0,a.notSelf?x(a,"notSelf"):void 0,this.translator)} ${this.renderInterpretation([{label:this.t("Strategy"),aside:x(a,"strategy"),body:a.strategyDescription},{label:this.t("Authority"),aside:x(a,"authority"),body:a.authorityDescription},{label:this.t("Aura"),body:a.aura}],"hd-type-reading")}</div>`}renderProfile(a){return s`<div class="wrap" part="card"><header class="head" part="header"><h2>${this.t("Profile")}</h2>${a.profile?s`<div class="type-line">${a.profile}</div>`:o}</header>${pt([{label:this.t("Profile"),value:a.profile},{label:this.t("Personality line"),value:a.personalityLine?.toString()},{label:this.t("Design line"),value:a.designLine?.toString()}])} ${this.hideReadings?o:s`<section class="block" part="section lines"><h3>${this.t("Lines")}</h3>${Ys({personality:a.personalityKeynote,personalityLine:a.personalityLine,design:a.designKeynote,designLine:a.designLine},this.translator)}</section>`}</div>`}};xa.endpoints=il,xa.styles=[v,O,H,Qt,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.type-line{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}`],xa=y([L("roxy-hd-type-card")],xa);function xy(n){return typeof n.type=="string"}var ba=class extends f{renderData(a){let e=[...a.arrows??[]].sort((t,r)=>up(t.position)-up(r.position));return s`<div class="wrap" part="card" aria-label="${this.t("Human Design variables")}"><h2 part="header">${this.t("Variables")}</h2><div class="grid" part="details arrows">${e.map(t=>this.renderArrow(t))}</div>${a.confident===false?s`<p class="note" role="note">${typeof a.confidenceMarginDeg=="number"?this.t("Low confidence: a birth time near a color or tone boundary (within {{margin}}\xB0). Verify the exact birth time.",{margin:a.confidenceMarginDeg}):this.t("Low confidence: a birth time near a color or tone boundary. Verify the exact birth time.")}</p>`:o} ${this.renderReading(e,a.baseDescription)}</div>`}renderArrow(a){let e=a.direction==="left"?"\u2190":"\u2192",t=x(a,"baseName");return s`<div class="arrow"><div class="arrow-head"><span class="glyph ${a.activation?.side??""}" aria-hidden="true">${e}</span> <span class="name">${x(a,"name")}</span></div>${a.layer?s`<span class="layer">${x(a,"layer")}</span>`:o} <span class="labels">${[x(a,"directionLabel"),x(a,"colorLabel")].filter(Boolean).join(" \xB7 ")} </span>${typeof a.color=="number"?s`<span class="ctb">${this.t("Color {{color}} \xB7 Tone {{tone}} \xB7 Base {{base}}",{color:a.color,tone:a.tone??"",base:a.base??""})}${t?`, ${t}`:""}</span>`:o} ${a.activation?.planet?s`<span class="ctb">${[x(a.activation,"planet"),yi(a.activation.side,this.translator)].filter(Boolean).join(" \xB7 ")}</span>`:o} ${a.confident===false?s`<span class="note" role="note">${this.t("Knife-edge: could flip with a more precise birth time.")}</span>`:o}</div>`}renderReading(a,e){let t=a.filter(l=>l.description||l.colorMeaning);if(t.length===0||this.hideReadings)return o;let r=new Map;for(let l of t){let c=l.layer??"",d=r.get(c);d?d.push(l):r.set(c,[l])}let i=0;return s`<section class="block" part="section readings"><h3>${this.t("Reading")}</h3>${[...r].map(([l,c])=>s`<div class="group">${l?s`<p class="group-head">${x(c[0],"layer")}</p>`:o} ${c[0]?.layerDescription?s`<p class="group-note">${c[0].layerDescription}</p>`:o} ${c.map(d=>this.renderArrowReading(d,i++===0))}</div>`)} ${e?s`<p class="footnote">${this.t("Base")}. ${e}</p>`:o}</section>`}renderArrowReading(a,e){let t=a.cognition,r=t?x(t,"label"):"",i=[{label:this.t("Color"),body:a.colorMeaning},{label:this.t("Tone"),body:a.toneMeaning},{label:this.t("Direction"),body:a.directionMeaning},{label:r?`${this.t("Cognition")} \xB7 ${r}`:this.t("Cognition"),body:t?.description}].filter(l=>!!l.body);return s`<details class="interp-card" part="reading" name="hd-variable" ?open="${e}"><summary><span class="interp-lead">${x(a,"name")}</span> ${V()} ${a.position?s`<span class="interp-aside"><small>${x(a,"position")}</small></span>`:o}</summary><div class="interp-body">${a.description?s`<p>${a.description}</p>`:o} ${i.length>0?s`<dl class="facets">${i.map(l=>s`<dt>${l.label}</dt><dd>${l.body}</dd>`)}</dl>`:o}</div></details>`}};ba.endpoints=ol,ba.styles=[v,O,H,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.grid{gap:0 var(--roxy-space-lg);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.arrow{align-content:start;gap:var(--roxy-space-xs);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);display:grid}.arrow-head{align-items:center;gap:var(--roxy-space-sm);display:flex}.glyph{font-size:var(--roxy-text-xl);color:var(--roxy-accent-ink);line-height:1}.glyph.design{color:var(--roxy-danger-fg)}.glyph.personality{color:var(--roxy-fg)}.name{font-weight:var(--roxy-weight-bold)}.layer,.ctb{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.ctb{font-variant-numeric:tabular-nums}.labels{font-size:var(--roxy-text-sm)}.note{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs)}@container (width<=28rem){.grid{grid-template-columns:minmax(0,1fr)}}.group+.group{margin-block-start:var(--roxy-space-md)}.group-head{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.group-note,.footnote{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.group-note{margin-block-end:var(--roxy-space-sm)}.facets{gap:var(--roxy-space-xs);margin:0;display:grid}.facets dd{margin:0}`],ba=y([L("roxy-hd-variables")],ba);function up(n){switch(n){case"Top left":return 0;case"Top right":return 1;case"Bottom left":return 2;case"Bottom right":return 3;default:return 99}}var by={udaya:"Rose",asta:"Set"},vy={udaya:"rises",asta:"sets"},va=class extends f{renderData(a){let e=a.grahas??[];return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Heliacal visibility")}"><header class="head" part="header"><h2>${this.t("Heliacal rising and setting")}</h2><p class="sub">${this.t("Whether each graha stands far enough from the Sun to be seen, for {{date}}. The Sun and the nodes never appear here: they have no heliacal event.",{date:a.date})}</p></header><div part="table">${e.map(t=>this.renderGraha(t))}</div></div>`:this.renderEmpty()}renderGraha(a){let e=C(a.graha)??"";return s`<article class="row"><div class="row-top"><span class="graha">${e?s`<span class="glyph roxy-glyph">${e}</span>`:o}${a.graha} </span><span class="state roxy-chip ${a.visible?"visible":"invisible"}" data-tone="${a.visible?o:"warning"}">${a.visible?this.t("Visible"):this.t("Invisible")} </span>${a.retrograde?s`<span class="retro" title="${this.t("retrograde")}">R</span>`:o}</div><p class="window" part="window">${this.windowLine(a)}</p><p class="meta" part="details">${this.metaLine(a)}</p></article>`}windowLine(a){let e=a.nextEvent,t=a.lastEvent;if(e){let r={event:this.t(vy[e.type]),where:e.horizon==="east"?this.t("in the east"):this.t("in the west"),when:Y(this.effectiveLang(),e.datetime)};return s`${a.visible?this.t("Visible until it {{event}} {{where}} on {{when}}",r):this.t("Invisible until it {{event}} {{where}} on {{when}}",r)}`}return t?s`${this.t("{{event}} {{where}} on {{when}}, with no further event inside the search window",{event:this.t(by[t.type]),where:t.horizon==="east"?this.t("in the east"):this.t("in the west"),when:Y(this.effectiveLang(),t.datetime)})}`:s`${this.t("No rising or setting inside the search window, which is normal for a graha far from the Sun")}`}metaLine(a){let e=a.horizon==="east"?this.t("a morning graha, read before sunrise"):this.t("an evening graha, read after sunset"),t=a.nextEvent??a.lastEvent,r=t&&t.kalamsa!==a.kalamsa,i={degrees:$(this.effectiveLang(),a.timeDegrees,2),limit:$(this.effectiveLang(),a.kalamsa,0),shifted:r?$(this.effectiveLang(),t.kalamsa,0):""};return s`${r?this.t("{{degrees}}\xB0 of time from the Sun against a limit of {{limit}}\xB0, becoming {{shifted}}\xB0 at that event",i):this.t("{{degrees}}\xB0 of time from the Sun against a limit of {{limit}}\xB0",i)} · ${e}`}};va.endpoints=ll,va.styles=[v,u`.wrap{overflow:hidden}.head{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);display:grid}h2,p{margin:0}.sub,.meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.row{gap:var(--roxy-space-xs);padding:var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);grid-template-columns:minmax(0,1fr);display:grid}.row-top{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.graha{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.retro{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}.window{font-size:var(--roxy-text-sm)}`],va=y([L("roxy-heliacal-table")],va);var La=class extends f{resolveHexagram(){let a=this.data;if(!a)return null;if("hexagram"in a&&a.hexagram){if("lines"in a){let i=a,l=i.hexagram;return{hex:l,lines:i.lines,date:i.date,changingLinePositions:i.changingLinePositions,changingLines:i.changingLines??l.changingLines,resultingHexagram:i.resultingHexagram}}let t=a,r=t.hexagram;return{hex:r,changingLines:r.changingLines,dailyMessage:t.dailyMessage,date:t.date}}let e=a;return{hex:e,changingLines:e.changingLines}}renderData(){let a=this.resolveHexagram();if(!a)return this.renderEmpty();let{hex:e,lines:t,changingLinePositions:r,changingLines:i,dailyMessage:l,date:c,resultingHexagram:d}=a;return s`<article class="card" part="card" aria-label="${this.t("I Ching hexagram")}">${this.renderHexagram("hexagram",e,t,r,i,l,c)} ${d?s`<details class="result" part="section resulting-hexagram"><summary>${this.t("Becomes hexagram {{number}} {{name}}.",{number:d.number,name:d.english??d.chinese??""})}${V()}</summary><div class="result-chart">${this.renderHexagram("result",d)}</div></details>`:o}</article>`}renderHexagram(a,e,t,r,i,l,c){let d=t??this.derivedLines(e),p=jc(e.number),h=new Set(r??[]),m=!this.hideReadings;return s`<div class="glyphs" part="chart">${p?s`<div class="symbol roxy-glyph">${p}</div>`:o} ${d.length>0?s`<div class="lines" aria-hidden="true">${d.slice().reverse().map((g,b)=>{let w=d.length-1-b+1,S=h.has(w),R=g===6||g===8;return s`<div class="line ${`${R?"broken":"solid"}${S?" changing":""}`}">${R?s`<span class="seg"></span><span class="seg"></span>`:s`<span class="seg"></span>`}</div>`})}</div>`:o}</div><div part="header"><h2>${[e.number!=null?`${e.number}.`:"",e.english??e.chinese??this.t("I Ching hexagram")].filter(Boolean).join(" ")}</h2>${c?s`<time class="daily-date" part="details" datetime="${c}">${A(this.effectiveLang(),c)}</time>`:o}<p class="subtitle">${e.chinese?s`${e.chinese}`:o} ${e.pinyin?s`· ${e.pinyin}`:o}</p><div class="trigrams roxy-label" part="details">${e.upperTrigram?s`<div>${this.t("Upper")} <span class="tri-glyph roxy-glyph">${jt(e.upperTrigram)??""}</span>${e.upperTrigram}</div>`:o} ${e.lowerTrigram?s`<div>${this.t("Lower")} <span class="tri-glyph roxy-glyph">${jt(e.lowerTrigram)??""}</span>${e.lowerTrigram}</div>`:o}</div>${e.judgment&&m?s`<p class="judgment">${e.judgment}</p>`:o} ${e.image&&m?s`<p class="image">${e.image}</p>`:o} ${l&&m?s`<p class="message">${l}</p>`:o} ${e.interpretation?.general&&m?s`<p>${e.interpretation.general}</p>`:o} ${h.size>0?s`<div class="changes" part="section changing-lines">${this.t("Changing lines: {{lines}}.",{lines:Array.from(h).sort((g,b)=>g-b).join(", ")})}</div>`:o} ${this.renderTopics(e,a)} ${this.renderLines(i??e.changingLines,h,`${a}-lines`)}</div>`}renderTopics(a,e){let t=a.interpretation;return t?this.renderInterpretation([{label:this.t("Love"),body:t.love??""},{label:this.t("Career"),body:t.career??""},{label:this.t("Decision"),body:t.decision??""},{label:this.t("Advice"),body:t.advice??""}].filter(r=>r.body),`${e}-topics`,"Readings"):o}renderLines(a,e,t){let r=a??[];if(r.length===0)return o;let i=e.size>0,l=i?r.filter(d=>e.has(d.position)):r;if(l.length===0)return o;let c=l.map(d=>({label:`Line ${d.position}`,body:d.text??"",extra:d.meaning?s`<p class="line-meaning">${d.meaning}</p>`:o}));return this.renderInterpretation(c,t,i?"Changing lines":"Lines")}derivedLines(a){let e=a.binary??"";return/^[01]{6}$/.test(e)?Array.from(e,t=>t==="1"?7:8):[]}};La.endpoints=cl,La.styles=[v,O,H,u`.card{gap:var(--roxy-space-lg);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,4lh) minmax(0,1fr);display:grid}.result-chart{gap:var(--roxy-space-lg);grid-template-columns:minmax(0,4lh) minmax(0,1fr);padding-block-start:var(--roxy-space-md);display:grid}.result{border-block-start:1px solid var(--roxy-border);grid-column:1/-1;padding-block-start:var(--roxy-space-md)}.result>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);display:flex}@container (width<=480px){.card,.result-chart{grid-template-columns:minmax(0,1fr)}}h2,p{margin:0}.glyphs{align-content:start;align-self:start;justify-items:center;gap:var(--roxy-space-md);display:grid}.symbol{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2);line-height:1}.lines{gap:calc(var(--roxy-space-unit) * 1.5);inline-size:2lh;display:grid}.line{gap:var(--roxy-space-xs);grid-template-columns:1fr 1fr;display:grid}.seg{block-size:calc(var(--roxy-line-thick) * 3);background:var(--roxy-fg);display:block}.line.solid .seg{grid-column:1/-1}.line.changing .seg{background:var(--roxy-accent)}.subtitle{color:var(--roxy-muted);font-size:var(--roxy-text-sm);margin-block-end:var(--roxy-space-sm)}.daily-date{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);margin-block-end:var(--roxy-space-sm);display:block}.trigrams{gap:var(--roxy-space-md);flex-wrap:wrap;margin-block-end:var(--roxy-space-sm);display:flex}.tri-glyph{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xl);vertical-align:middle;margin-inline-end:var(--roxy-space-xs)}.judgment,.image,.message{font-size:var(--roxy-text-sm);margin-block-end:var(--roxy-space-sm)}.judgment:before{content:"Judgment. ";color:var(--roxy-secondary);font-weight:var(--roxy-weight-bold)}.image:before{content:"Image. ";color:var(--roxy-secondary);font-weight:var(--roxy-weight-bold)}.line-meaning{border-inline-start:var(--roxy-line-thick) solid var(--roxy-border);color:var(--roxy-muted);padding-inline-start:var(--roxy-space-sm)}.changes{border-block-start:1px solid var(--roxy-border);color:var(--roxy-accent-ink);font-size:var(--roxy-text-sm);margin-block-start:var(--roxy-space-md);padding-block-start:var(--roxy-space-md)}`],La=y([L("roxy-hexagram")],La);var $a=class extends f{renderData(a){let e=a.dayHoras??[],t=a.nightHoras??[];return e.length===0&&t.length===0?this.renderEmpty():s`<div class="wrap" part="card" aria-label="${this.t("Hora periods")}"><div class="head" part="header"><h2>${this.t("Hora")}</h2>${a.date?s`<p class="roxy-label">${A(this.effectiveLang(),a.date)}</p>`:o}</div><div class="cols" part="table">${this.renderColumn(this.t("Daytime"),e)} ${this.renderColumn(this.t("Night"),t)}</div></div>`}renderColumn(a,e){return e.length===0?o:s`<div class="col"><h3 class="section-label">${a}</h3>${e.map(t=>s`<div class="row"><span class="glyph roxy-glyph" aria-hidden="true">${C(t.planet)??"\xB7"}</span> <span class="planet">${t.planet}</span> <span class="time">${Ke(this.effectiveLang(),t)}</span> ${typeof t.number=="number"?s`<span class="num">${t.number}</span>`:o}</div>`)}</div>`}};$a.endpoints=dl,$a.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}h2,h3,p{margin:0}.cols{gap:var(--roxy-space-md);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.section-label{margin-block-end:var(--roxy-space-xs)}.row{align-items:center;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-xs);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;display:flex}.row:last-child{border-block-end:0}.glyph{inline-size:2ch;color:var(--roxy-accent-ink);font-size:var(--roxy-text-base);text-align:center;line-height:1}.planet{flex:1}.time{color:var(--roxy-muted);white-space:nowrap}.num{inline-size:3ch;color:var(--roxy-muted);font-size:var(--roxy-text-xs);text-align:end}@container (width<=30rem){.cols{grid-template-columns:minmax(0,1fr)}}`],$a=y([L("roxy-hora-table")],$a);var Ly={daily:"Daily",weekly:"Weekly",monthly:"Monthly",yearly:"Yearly"},$y={aspect:"Aspect","sign-ingress":"Sign ingress","retrograde-station":"Retrograde station","lunar-phase":"Lunar phase",eclipse:"Eclipse","solar-season":"Solar season"},wy={"new-moon":"New Moon","first-quarter":"First Quarter","full-moon":"Full Moon","last-quarter":"Last Quarter"},fp={penumbral:"Penumbral eclipse",partial:"Partial eclipse",annular:"Annular eclipse",total:"Total eclipse"},xp={retrograde:"Turns retrograde",direct:"Turns direct"},ky=[["love","Love"],["career","Career"],["health","Health"],["finance","Finance"],["advice","Advice"]];function bn(n,a){return a!==void 0&&Object.hasOwn(n,a)?n[a]:void 0}var Sy=[["love","Love"],["career","Career"],["health","Health"],["finance","Finance"]],Je=class extends f{constructor(){super(...arguments);this.period="daily";this.layout="auto";this.rowDetail={tag:"roxy-crystal-card",path:"crystals/{id}"}}renderData(e){let t=e.sign??"",r=z(t)??"",i="energyRating"in e&&typeof e.energyRating=="number"?e.energyRating:null,l=this.effectiveLang(),c="date"in e&&e.date&&A(l,e.date)||"week"in e&&e.week&&A(l,e.week)||"month"in e&&e.month&&Gt(l,e.month,"month")||("year"in e&&e.year?String(e.year):"")||"";return s`<article class="card" part="card" aria-labelledby="horoscope-title"><header class="head" part="header"><span class="glyph roxy-glyph" aria-hidden="true">${r}</span><div><h2 class="title" id="horoscope-title">${t} ${this.t(Ly[this.period])}</h2>${c?s`<p class="date roxy-label">${c}</p>`:o}</div>${i!==null?s`<span class="energy" part="details" aria-label="${this.t("Energy {{value}} of 10",{value:i})}">${this.t("Energy {{value}}/10",{value:i})} <span class="energy-bar"><span style="width:${i/10*100}%"></span></span></span>`:o}</header>${this.renderReading(e)} ${this.renderSky(e)} ${this.renderEvents(e.events)} ${this.renderPositions(e.positions)} ${this.renderYear(e)} ${this.renderMonth(e)} ${(()=>{let d="luckyNumber"in e&&e.luckyNumber!==void 0?e.luckyNumber:void 0,p="luckyColor"in e&&e.luckyColor?e.luckyColor:"",h="crystal"in e?e.crystal:void 0,m="luckyNumbers"in e&&e.luckyNumbers?e.luckyNumbers:[],g="luckyDays"in e&&e.luckyDays?e.luckyDays:[],b=e.compatibleSigns??[];return d===void 0&&!p&&!h&&m.length===0&&g.length===0&&b.length===0?o:s`<div class="lucky" part="details">${d!==void 0?s`<span>${this.t("Lucky number")} <strong>${d}</strong></span>`:o} ${p?s`<span>${this.t("Lucky color")} <strong>${p}</strong></span>`:o} ${h?s`<span>${this.t("Crystal")} <button type="button" class="crystal" aria-pressed="${this.openedRowId===h.id?"true":"false"}" @click="${()=>this.pickRow({id:h.id,name:h.name})}">${h.name}</button></span>`:o} ${m.length?s`<span>${this.t("Lucky numbers")} <strong>${m.join(", ")}</strong></span>`:o} ${g.length?s`<span>${this.t("Lucky days")} <strong>${g.join(", ")}</strong></span>`:o} ${b.length?s`<span class="compat-wrap">${this.t("Best with")}<ul class="compat roxy-chips">${b.map(w=>s`<li>${w}</li>`)}</ul></span>`:o}</div>`})()} ${this.openedRow?s`<div class="detail" part="detail">${this.openedRow}</div>`:o}</article>`}renderReading(e){if(this.hideReadings)return o;if(this.layout==="column"||this.layout==="auto"&&!!e.column)return e.column?this.renderColumn(e.column):o;let r=this.paragraphs(e.overview);return s`${r.length?s`<div class="overview" part="section overview">${r}</div>`:o}<div class="sections" part="section outlook">${ky.map(([i,l])=>{let c=this.paragraphs(e[i]);return c.length?s`<div class="section"><h3>${this.t(l)}</h3>${c}</div>`:o})}</div>`}renderColumn(e){let t=this.paragraphs(e);return t.length===0?o:s`<div class="column" part="section column">${t}</div>`}paragraphs(e){return _r(e).map(t=>s`<p>${t}</p>`)}renderEvents(e){if(!e?.length)return o;let t=this.effectiveLang();return s`<section part="section events"><h3>${this.t("Events")}</h3><ul class="rows" aria-label="${this.t("Events")}">${e.map(r=>{let i=!!r.placements?.length;return this.renderRow(s`<time class="row-when" datetime="${r.at}">${Gt(t,cr(r.at),"time")}</time>`,this.renderEventBodies(r),s`<span class="kind">${this.t(bn(wy,r.phase)??bn(fp,r.kind)??bn(xp,r.direction)??$y[r.type])}</span> ${i?o:s`<span>${this.t("House")} ${r.house}</span>`} ${!i&&r.sign?s`<span>${this.glyphName(z(r.sign),D(r.sign))}</span>`:o} ${r.through&&r.through!==r.at?s`<span>${this.t("through {{date}}",{date:A(t,cr(r.through))})}</span>`:o}`,{when:"element"})})}</ul></section>`}renderEventBodies(e){let t=(e.bodies??[]).map((r,i)=>{let l=e.placements?.[i];return s`${this.glyphName(C(r),r)}${l?this.renderPlace(l):o}`});return t.length===2&&e.aspect?s`${t[0]} <span class="${`${de({type:e.aspect})} roxy-glyph`}">${ur(e.aspect)??e.aspect}</span> ${t[1]}`:s`${t}`}renderPlace(e){return s`<span class="place">${this.glyphName(z(e.sign),D(e.sign))}<span>${this.t("House {{n}}",{n:e.house})}</span></span>`}renderPositions(e){if(!e?.length)return o;let t=this.effectiveLang();return s`<section part="section positions"><h3>${this.t("Positions")}</h3><ul class="rows" aria-label="${this.t("Positions")}">${e.map(r=>this.renderRow(this.stay(t,r),s`${this.glyphName(C(r.name),r.name)}${r.isRetrograde?s`<span class="retro roxy-glyph" aria-label="${this.t("retrograde")}">${ae}</span>`:o}${this.renderPlace(r)}`,s`<span>${D(r.dignity)}</span> ${r.turnsDirectAt?s`<span class="turn"><span class="roxy-glyph" aria-hidden="true">${ae}</span>${this.t("through {{date}}",{date:A(t,cr(r.turnsDirectAt))})}</span>`:o}`))}</ul></section>`}stay(e,t){let r=cr(t.enteredAt),i=cr(t.leavesAt);return r&&i?ve(e,r,i):i?this.t("through {{date}}",{date:A(e,i)}):r?this.t("since {{date}}",{date:A(e,r)}):""}renderYear(e){if(!("themes"in e))return o;let t=this.effectiveLang();return s`${e.themes.length?s`<section part="section themes"><h3>${this.t("Themes")}</h3><ul class="rows">${e.themes.map(r=>this.renderRow(ve(t,r.from,r.to),s`${this.glyphName(C(r.body),r.body)} ${this.glyphName(z(r.sign),D(r.sign))}`,s`<span>${this.t("House")} ${r.house}</span><span>${r.theme}</span>`))}</ul></section>`:o} ${e.keyPeriods.length?s`<section part="section key-periods"><h3>${this.t("Key periods")}</h3><ul class="rows">${e.keyPeriods.map(r=>this.renderRow(ve(t,r.from,r.to),this.glyphName(C(r.body),r.body),s`<span>${this.t("House")} ${r.house}</span><span>${r.focus}</span>`))}</ul></section>`:o} ${e.eclipses.length?s`<section part="section eclipses"><h3>${this.t("Eclipses")}</h3><ul class="rows">${e.eclipses.map(r=>this.renderRow(A(t,r.date),s`<span class="name">${this.wireLabel(fp,r.kind)}</span>`,s`<span>${this.t("House")} ${r.house}</span><span>${r.theme}</span>`))}</ul></section>`:o} ${e.retrogrades.length?s`<section part="section retrogrades"><h3>${this.t("Retrogrades")}</h3><ul class="rows">${e.retrogrades.map(r=>this.renderRow(A(t,r.date),s`${this.glyphName(C(r.body),r.body)} <span>${this.wireLabel(xp,r.direction)}</span>`,s`<span>${this.t("House")} ${r.house}</span><span>${r.theme}</span>`))}</ul></section>`:o} ${this.renderBestPeriods(e.bestPeriods)}`}renderBestPeriods(e){if(!e)return o;let t=this.effectiveLang(),r=Sy.filter(([i])=>e[i]);return r.length===0?o:s`<section part="section best-periods"><h3>${this.t("Best months")}</h3><div class="tiles" part="details">${r.map(([i,l])=>{let c=e[i];return c?s`<div class="tile"><span class="roxy-label">${this.t(l)}</span> <span class="tile-value">${Gt(t,c.from,"month")}</span> <span class="tile-note">${this.t("{{count}} harmonious aspects",{count:c.count})}</span></div>`:o})}</div></section>`}renderRow(e,t,r,i){return s`<li class="row" part="label-track">${i?.when==="element"?e:s`<span class="row-when">${e}</span>`} <span class="row-what">${t}</span> <span class="row-meta">${r}</span></li>`}wireLabel(e,t){let r=bn(e,t);return r?this.t(r):t}glyphName(e,t){return s`<span class="roxy-glyph" aria-hidden="true">${e??""}</span> <span class="name">${t}</span>`}renderSky(e){let t="moonSign"in e?e.moonSign:"",r="moonPhase"in e?e.moonPhase:"",i=("activeTransits"in e?e.activeTransits:[])??[];if(!t&&!r&&i.length===0)return o;let l=z(t)??"";return s`<div class="sky" part="section sky">${t||r?s`<div class="moon-line">${t?s`<span><span class="roxy-label">${this.t("Moon")}</span> <span class="roxy-glyph" aria-hidden="true">${l}</span> <b>${t}</b></span>`:o} ${r?s`<span><span class="roxy-label">${this.t("Phase")}</span> <b>${r}</b></span>`:o}</div>`:o} ${i.length?s`<ul class="transits" aria-label="${this.t("Active transits")}">${i.map(c=>s`<li>${c}</li>`)}</ul>`:o}</div>`}renderMonth(e){let t=("weekByWeek"in e?e.weekByWeek:[])??[],r=("keyDates"in e?e.keyDates:[])??[];return t.length===0&&r.length===0?o:s`${t.length&&!this.hideReadings?s`<section part="section week-by-week"><h3>${this.t("Week by week")}</h3><div class="weeks">${t.map(i=>s`<div class="week"><span class="roxy-label">${this.t("Week {{n}}",{n:i.week})}</span><div><div class="week-focus">${i.focus}</div>${i.advice?s`<p class="week-advice">${i.advice}</p>`:o}</div></div>`)}</div></section>`:o} ${r.length?s`<section part="section key-dates"><h3>${this.t("Key dates")}</h3><dl class="dates" part="label-track">${r.map(i=>s`<div class="date-row"><dt>${A(this.effectiveLang(),i.date)||i.date}</dt><dd>${i.event}</dd></div>`)}</dl></section>`:o}`}};Je.endpoints=pl,Je.styles=[v,lt,na,u`.card{gap:var(--roxy-space-lg);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}section>h3{margin-block-end:var(--roxy-space-sm)}.head{align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.glyph{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 1.5);line-height:1}.title{text-transform:capitalize;white-space:nowrap}.energy{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;margin-inline-start:auto}.energy-bar{inline-size:10ch;block-size:var(--roxy-space-sm);background:var(--roxy-border);border-radius:var(--roxy-radius-full);vertical-align:middle;margin-inline-start:var(--roxy-space-xs);display:inline-block;overflow:hidden}.energy-bar>span{background:var(--roxy-accent);height:100%;transition:width var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.column p,.overview p,.section p{line-height:1.7}.overview,.column,.section{align-content:start;gap:var(--roxy-space-sm);display:grid}.column{gap:var(--roxy-space-md)}.sections{gap:var(--roxy-space-lg) var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,48ch),1fr));display:grid}.section p{font-size:var(--roxy-text-sm)}.sky,.lucky{border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);padding-block-start:var(--roxy-space-md)}.sky{gap:var(--roxy-space-sm);display:grid}.lucky{gap:var(--roxy-space-sm) var(--roxy-space-md);color:var(--roxy-secondary);flex-wrap:wrap;display:flex}.lucky strong{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.crystal{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold);cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}.detail{margin-block-start:var(--roxy-space-md)}.compat-wrap{align-items:center;gap:var(--roxy-space-xs);flex-wrap:wrap;width:100%;display:flex}.compat>li{text-transform:capitalize}.moon-line{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.moon-line b{font-weight:var(--roxy-weight-bold)}.moon-line .roxy-label{margin-inline-end:var(--roxy-space-xs)}.transits{gap:var(--roxy-space-xs);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}.transits li::marker{color:var(--roxy-accent)}.weeks{gap:var(--roxy-space-sm);display:grid}.week{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);align-items:baseline;gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm);display:grid}.week:first-child{border-block-start:0;padding-block-start:0}.week-focus{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.week-advice{font-size:var(--roxy-text-sm);margin-block-start:calc(var(--roxy-space-unit) / 2)}.dates{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);margin:0;display:grid}.date-row{display:contents}.date-row dt{color:var(--roxy-accent-ink);font-size:inherit;font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.date-row dd{margin:0}.rows{margin:0;padding:0;list-style:none;display:grid}.row{align-items:baseline;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border)}.row:first-child{border-block-start:0;padding-block-start:0}.row-when{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.row-what{font-size:var(--roxy-text-sm)}.row-what .name,.row-meta .kind{font-weight:var(--roxy-weight-bold)}.place{gap:var(--roxy-space-xs);margin-inline:var(--roxy-space-xs) var(--roxy-space-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:inline-flex}.row-what .place .name{font-weight:inherit}.turn{gap:var(--roxy-space-xs);display:inline-flex}.row-what .retro{margin-inline-start:var(--roxy-space-xs)}.row-meta{gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;grid-column:2;display:flex}@container (width<=30rem){.row-meta{grid-column:1}}.tiles{gap:var(--roxy-space-sm) var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,16ch),1fr));display:grid}.tile{gap:calc(var(--roxy-space-unit) / 2);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm);display:grid}.tile-value{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.tile-note{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}`],y([k({type:String,reflect:true})],Je.prototype,"period",2),y([k({type:String,reflect:true})],Je.prototype,"layout",2),Je=y([L("roxy-horoscope-card")],Je);var Ry=[{id:"planets",label:"Planets"},{id:"cusps",label:"Cusps"},{id:"significators",label:"Significators"}],vn=[1,2,3,4];function Hi(n,a){return n?typeof a=="number"?`${n} ${a}`:n:""}function bp(n){return[...new Set(n.map(String))].join(" > ")}function Cy(n){return[...new Set(n??[])]}var vt=class extends f{constructor(){super(...arguments);this.activeTab="planets"}bodies(){let e=this.data;if(!e)return[];let t=(e.planets??[]).map(i=>({name:i.planet,longitude:i.longitude,house:i.house,nakshatra:i.nakshatra,pada:i.pada,starLord:i.starLord,subLord:i.subLord,subSubLord:i.subSubLord,kpNumber:i.kpNumber,retrograde:i.retrograde})),r=e.nodes;for(let[i,l]of[["Rahu",r?.rahu],["Ketu",r?.ketu]])l&&t.push({name:i,longitude:l.longitude,house:l.house,nakshatra:l.nakshatra,pada:l.pada,starLord:l.starLord,subLord:l.subLord,subSubLord:l.subSubLord,kpNumber:l.kpNumber,retrograde:true});return t}renderData(e){let t=e.ascendant;return s`<div class="wrap" part="card" aria-label="KP chart"><header class="head" part="header"><h2 class="title">KP chart</h2>${t?s`<div class="asc">Ascendant: <strong>${typeof t.longitude=="number"?ye(t.longitude):t.sign??""} </strong>${t.nakshatra?s`· ${Hi(t.nakshatra,t.pada)}`:o} ${t.subLord?s`· sub lord ${t.subLord}`:o} ${typeof t.kpNumber=="number"?s`· KP ${t.kpNumber}`:o}</div>`:o} ${typeof e.meta?.ayanamsa=="number"?s`<div class="ayan">Ayanamsa: ${Wa(this.effectiveLang(),e.meta.ayanamsaType,e.meta.ayanamsa)} ${e.meta.houseSystem?s`· ${e.meta.houseSystem} houses`:o}</div>`:o}</header>${ue({items:Ry,active:this.activeTab,onSelect:r=>{this.activeTab=r},label:"KP chart views",idPrefix:"kp",controls:true})}<div id="kp-panel-${this.activeTab}" part="panel" role="tabpanel" aria-labelledby="kp-tab-${this.activeTab}">${this.activeTab==="planets"?this.renderPlanets():this.activeTab==="cusps"?this.renderCusps():this.renderSignificators()}</div></div>`}renderPlanets(){let e=this.bodies();return e.length?this.scrollBox(s`<table part="table" role="table"><caption id="kp-planets-caption" class="roxy-sr-only">KP planets and nodes: each body with its position, house, nakshatra and pada, star lord, sub lord, sub sub lord and KP number.</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">Position</th><th scope="col">House</th><th scope="col">Nakshatra, pada</th><th scope="col">Star lord</th><th scope="col">Sub lord</th><th scope="col">Sub-sub lord</th><th scope="col">KP no.</th></tr></thead><tbody>${e.map(t=>s`<tr><td class="body">${t.name}${t.retrograde?s`<span class="retro">R</span>`:o}</td><td class="num">${typeof t.longitude=="number"?ye(t.longitude):""}</td><td class="num">${typeof t.house=="number"?t.house:""}</td><td>${Hi(t.nakshatra,t.pada)}</td><td>${t.starLord??""}</td><td>${t.subLord??""}</td><td>${t.subSubLord??""}</td><td class="num">${typeof t.kpNumber=="number"?t.kpNumber:""}</td></tr>`)}</tbody></table>`,"kp-planets-caption"):s`<p class="roxy-empty" role="status">No planets</p>`}renderCusps(){let e=this.data?.cusps??[],t=this.data?.houseThemes;return e.length?this.scrollBox(s`<table part="table" role="table"><caption id="kp-cusps-caption" class="roxy-sr-only">KP Placidus cusps: each house cusp with what it signifies, its position, sign lord, nakshatra and pada, star lord, sub lord, sub sub lord and KP number.</caption><thead><tr><th scope="col">House</th><th scope="col">Position</th><th scope="col">Sign lord</th><th scope="col">Nakshatra, pada</th><th scope="col">Star lord</th><th scope="col">Sub lord</th><th scope="col">Sub-sub lord</th><th scope="col">KP no.</th></tr></thead><tbody>${e.map(r=>s`<tr><td class="body num">${r.house}${this.renderThemes(ii(r.house,t))}</td><td class="num">${typeof r.longitude=="number"?ye(r.longitude):r.sign??""}</td><td>${r.signLord??""}</td><td>${Hi(r.nakshatra,r.pada)}</td><td>${r.starLord??""}</td><td>${r.subLord??""}</td><td>${r.subSubLord??""}</td><td class="num">${typeof r.kpNumber=="number"?r.kpNumber:""}</td></tr>`)}</tbody></table>`,"kp-cusps-caption"):s`<p class="roxy-empty" role="status">No cusps</p>`}renderSignificators(){let e=this.data?.significators,t=this.data?.houseThemes,r=e?.houseWise??[],i=e?.planetWise??[];return!r.length&&!i.length?s`<p class="roxy-empty" role="status">No significators</p>`:s`${this.renderLevelLegend(r)} ${r.length?s`<div class="sig-head"><h3 class="sig-title">House-wise significators</h3><p class="sig-note">Planets that signify each house, strongest level first.</p></div>${this.scrollBox(s`<table part="table" role="table"><caption id="kp-house-sig-caption" class="roxy-sr-only">KP house-wise significators: each house, the planets that signify it at levels 1 to 4, and the full strength order.</caption><thead><tr><th scope="col">House</th>${vn.map(l=>s`<th scope="col">L${l}</th>`)}<th scope="col">Strength order</th></tr></thead><tbody>${r.map(l=>s`<tr><td class="body num">${l.house}${this.renderThemes(ii(l.house,t))}</td>${vn.map(c=>this.renderCell(this.planetsAtLevel(l,c).join(", ")))}<td class="chain">${bp(l.all??[])}</td></tr>`)}</tbody></table>`,"kp-house-sig-caption")}`:o} ${i.length?s`<div class="sig-head"><h3 class="sig-title">Planet-wise significators</h3><p class="sig-note">Houses each planet signifies, strongest level first.</p></div>${this.scrollBox(s`<table part="table" role="table"><caption id="kp-planet-sig-caption" class="roxy-sr-only">KP planet-wise significators: each planet, the houses it signifies at levels 1 to 4, and the full strength order.</caption><thead><tr><th scope="col">Planet</th>${vn.map(l=>s`<th scope="col">L${l}</th>`)}<th scope="col">Strength order</th></tr></thead><tbody>${i.map(l=>s`<tr><td class="body">${l.planet}</td>${vn.map(c=>this.renderCell(this.housesAtLevel(l,c).join(", ")))}<td class="chain">${bp(l.allHouses??[])}${this.renderThemes(Ze(Cy(l.allHouses),t))}</td></tr>`)}</tbody></table>`,"kp-planet-sig-caption")}`:o}`}scrollBox(e,t){return s`<div class="scroll" tabindex="0" role="region" aria-labelledby="${t}">${e}</div>`}renderThemes(e){return e?s`<span class="themes">${e}</span>`:o}renderCell(e){return e?s`<td>${e}</td>`:s`<td class="empty-cell">none</td>`}planetsAtLevel(e,t){return(e.significators??[]).filter(r=>r.level===t).flatMap(r=>r.planets??[])}housesAtLevel(e,t){return(e.signifies??[]).filter(r=>r.level===t).flatMap(r=>r.houses??[])}renderLevelLegend(e){let t=new Map;for(let r of e)for(let i of r.significators??[])i.description&&!t.has(i.level)&&t.set(i.level,i.description);return t.size===0?o:s`<ul class="legend" part="legend" aria-label="Significator levels">${[...t.entries()].sort((r,i)=>r[0]-i[0]).map(([r,i])=>s`<li><b>L${r}</b>${i}</li>`)}</ul>`}};vt.endpoints=hl,vt.styles=[v,ge,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.head{gap:var(--roxy-space-xs);display:grid}.title,.sig-title,.sig-note{margin:0}.asc,.ayan{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.asc strong{color:var(--roxy-fg)}[role=tabpanel]:not([hidden]){gap:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}td.body{font-weight:var(--roxy-weight-bold)}.retro{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold);margin-inline-start:var(--roxy-space-xs)}.num{font-variant-numeric:tabular-nums}.sig-head{gap:var(--roxy-space-xs);display:grid}.sig-note{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.legend{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.legend b{color:var(--roxy-accent-ink);margin-inline-end:var(--roxy-space-xs)}.chain,.empty-cell{color:var(--roxy-muted)}.themes{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-normal);display:block}`],y([I()],vt.prototype,"activeTab",2),vt=y([L("roxy-kp-chart")],vt);var Ty={strong:"Strong",favourable:"Favourable",mixed:"Mixed",caution:"Caution",unfavourable:"Unfavourable"},Ey={favourable:"Favourable",mixed:"Mixed",unfavourable:"Unfavourable",neutral:"Neutral"},vp={cusps:"Cusps",dasha:"Dasha",rulingPlanets:"Ruling planets",moonWindows:"Moon windows"},Ay={gain:"Gain",loss:"Loss"},Dy={mahadasha:"Mahadasha",antardasha:"Antardasha",pratyantardasha:"Pratyantardasha",sookshmaDasha:"Sookshma"},wa=class extends f{renderData(a){return a.layers?s`<div class="wrap" part="card" aria-label="${this.t("KP daily finance")}">${this.renderHead(a)} ${this.renderSignificators(a)}<section class="block" part="section cusps">${this.renderLayer("cusps",a.layers.cusps,this.renderCuspRows(a.layers.cusps.rows))}</section><section class="block" part="section dasha">${this.renderLayer("dasha",a.layers.dasha,this.renderDashaRows(a.layers.dasha.rows))}</section><section class="block" part="section ruling-planets">${this.renderLayer("rulingPlanets",a.layers.rulingPlanets,this.renderRulingRows(a.layers.rulingPlanets.rows))}</section><section class="block" part="section moon-windows">${this.renderLayer("moonWindows",a.layers.moonWindows,this.renderWindowRows(a.layers.moonWindows.rows))}</section>${this.renderWindows(a)}<section class="block" part="section frame">${W(this.effectiveLang(),{ayanamsa:a.ayanamsa,ayanamsaDegrees:a.ayanamsaDegrees},this.translator)}</section></div>`:this.renderEmpty()}renderHead(a){let e=this.effectiveLang();return s`<header class="head" part="header"><div class="title-row"><h2 class="title">${this.t("KP daily finance")}</h2><span class="when">${Y(e,a.date)}</span></div><div class="verdict-row"><span class="verdict ${a.band}">${this.t(Ty[a.band])}</span> <span class="evidence">${$(e,a.score,1)}</span></div><dl class="roxy-facts" part="details"><div class="fact"><dt>${this.t("Reading moment")}</dt><dd>${Y(e,a.readingAt)}</dd></div><div class="fact"><dt>${this.t("Gain houses")}</dt><dd>${me(e,a.houses.gain.map(String))}</dd></div><div class="fact"><dt>${this.t("Loss houses")}</dt><dd>${me(e,a.houses.loss.map(String))}</dd></div></dl></header>`}renderSignificators(a){let e=a.significators,t=this.effectiveLang(),r=i=>s`<div class="roxy-chips">${i.map(l=>s`<span class="chip roxy-chip">${this.glyphName(l)}</span>`)}</div>`;return s`<section class="block" part="section significators"><h3>${this.t("Significators")}</h3><dl class="roxy-facts"><div class="fact"><dt>${this.t("Gain")}</dt><dd>${r(e.gain)}</dd></div><div class="fact"><dt>${this.t("Loss")}</dt><dd>${r(e.loss)}</dd></div></dl>${e.byHouse.length?s`<div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Significators")}"><table><thead><tr><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Significators")}</th></tr></thead><tbody>${e.byHouse.map(i=>s`<tr><td class="num">${i.house} ${this.groupChip(i.group)}</td><td class="names">${me(t,[...new Set(i.significators)])}</td></tr>`)}</tbody></table></div>`:o}</section>`}renderLayer(a,e,t){let r=this.effectiveLang();return s`<div class="block-head"><h3>${this.t(vp[a])}</h3><span class="evidence">${this.t("Weight")} ${te(r,e.weight,0)} · ${this.t("Score")} ${$(r,e.score,1)}</span></div><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t(vp[a])}">${t}</div>`}renderCuspRows(a){return s`<table><thead><tr><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Sub lord")}</th><th scope="col">${this.t("Star lord")}</th><th scope="col">${this.t("Sign lord")}</th><th scope="col">${this.t("Verdict")}</th><th scope="col">${this.t("Score")}</th></tr></thead><tbody>${a.map(e=>s`<tr><td class="num">${e.house} ${this.groupChip(e.inverted?"loss":"gain")}</td><td>${this.glyphName(e.subLord)}</td><td>${this.glyphName(e.starLord)}</td><td>${this.glyphName(e.signLord)}</td><td>${this.verdictChip(e.verdict)}</td><td class="num">${$(this.effectiveLang(),e.score,0)}</td></tr>`)}</tbody></table>`}renderDashaRows(a){let e=this.effectiveLang();return s`<table><thead><tr><th scope="col">${this.t("Level")}</th><th scope="col">${this.t("Lord")}</th><th scope="col">${this.t("Start")}</th><th scope="col">${this.t("End")}</th><th scope="col">${this.t("Verdict")}</th><th scope="col">${this.t("Score")}</th><th scope="col">${this.t("Weight")}</th></tr></thead><tbody>${a.map(t=>s`<tr><td>${this.t(Dy[t.level])}</td><td>${this.glyphName(t.lord,t.retrograde)}</td><td>${Y(e,t.startDate)}</td><td>${Y(e,t.endDate)}</td><td>${this.verdictChip(t.verdict)}</td><td class="num">${$(e,t.score,0)}</td><td class="num">${te(e,t.weight,0)}</td></tr>`)}</tbody></table>`}renderRulingRows(a){return s`<table><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Verdict")}</th><th scope="col">${this.t("Score")}</th></tr></thead><tbody>${a.map(e=>s`<tr><td>${this.glyphName(e.planet,e.retrograde)}</td><td>${this.verdictChip(e.verdict)}</td><td class="num">${$(this.effectiveLang(),e.score,0)}</td></tr>`)}</tbody></table>`}renderWindowRows(a){let e=this.effectiveLang();return s`<table><thead><tr><th scope="col">${this.t("Start")}</th><th scope="col">${this.t("End")}</th><th scope="col">${this.t("Sub lord")}</th><th scope="col">${this.t("Verdict")}</th><th scope="col">${this.t("Score")}</th></tr></thead><tbody>${a.map(t=>s`<tr><td>${Te(e,t.from)}</td><td>${Te(e,t.to)}</td><td>${this.glyphName(t.subLord)}</td><td>${this.verdictChip(t.verdict)}</td><td class="num">${$(e,t.score,0)}</td></tr>`)}</tbody></table>`}renderWindows(a){let e=this.effectiveLang(),t=a.bestWindow,r=a.worstWindows??[];if(!t&&!r.length)return o;let i=(l,c)=>s`<span class="window roxy-chip ${c}" data-tone="${c==="best"?"success":"danger"}"><span>${this.glyphName(l.subLord)}</span> <small>${Ke(e,{start:l.from,end:l.to})}</small></span>`;return s`<section class="block" part="section windows"><dl class="roxy-facts">${t?s`<div class="fact"><dt>${this.t("Best window")}</dt><dd><div class="roxy-chips">${i(t,"best")}</div></dd></div>`:o} ${r.length?s`<div class="fact"><dt>${this.t("Worst windows")}</dt><dd><div class="roxy-chips">${r.map(l=>i(l,"worst"))}</div></dd></div>`:o}</dl></section>`}glyphName(a,e=false){let t=C(a);return s`${t?s`<span class="glyph roxy-glyph" aria-hidden="true">${t}</span>`:o}${a}${e?s`<span class="retro roxy-glyph" aria-label="${this.t("retrograde")}">${ae}</span>`:o}`}verdictChip(a){return s`<span class="state ${a}">${this.t(Ey[a])}</span>`}groupChip(a){return s`<span class="chip roxy-chip">${this.t(Ay[a])}</span>`}};wa.endpoints=ml,wa.styles=[v,J,B,u`.wrap{grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}.head,.block{gap:var(--roxy-space-sm);padding:var(--roxy-space-md);display:grid}.block{border-block-start:1px solid var(--roxy-border)}.title-row,.block-head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.title,.block h3{margin:0}.when{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.verdict-row{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.verdict{font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold)}.evidence{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:is(.verdict,.state):is(.strong,.favourable){color:var(--roxy-success-fg)}:is(.verdict,.state):is(.mixed,.caution){color:var(--roxy-warning-fg)}:is(.verdict,.state).unfavourable{color:var(--roxy-danger-fg)}.state.neutral{color:var(--roxy-secondary)}.state{font-weight:var(--roxy-weight-bold)}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}td.num{font-variant-numeric:tabular-nums}td.names{white-space:normal}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.retro{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin-inline-start:var(--roxy-space-xs)}.window small{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}`],wa=y([L("roxy-kp-finance-card")],wa);var ka=class extends f{renderData(a){let e=a.planets??[];return s`<div class="wrap" part="card" aria-label="KP planets table"><header class="head" part="header"><h2 class="title">KP planets</h2>${typeof a.ayanamsa=="number"?s`<span class="ayanamsa">Ayanamsa: ${$(this.effectiveLang(),a.ayanamsa,2)}°</span>`:o}</header><div class="scroll" tabindex="0" role="region" aria-labelledby="kp-planets-table-caption"><table part="table" role="table"><caption id="kp-planets-table-caption" class="roxy-sr-only">KP planets: each planet with its sign, sign lord, nakshatra, star lord, sub lord, sub sub lord and KP number.</caption><thead><tr><th scope="col">Planet</th><th scope="col">Sign</th><th scope="col">Sign lord</th><th scope="col">Nakshatra</th><th scope="col">Star lord</th><th scope="col">Sub lord</th><th scope="col">Sub-sub lord</th><th scope="col">KP no.</th></tr></thead><tbody>${e.map(t=>s`<tr><td class="planet">${t.planet} ${t.retrograde?s`<span class="retro">R</span>`:o}</td><td>${t.sign??""}</td><td>${t.signLord??""}</td><td>${t.nakshatra??""}</td><td>${t.nakshatraLord??""}</td><td>${t.subLord??""}</td><td>${t.subSubLord??""}</td><td>${t.kpNumber??""}</td></tr>`)}</tbody></table></div></div>`}};ka.endpoints=gl,ka.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.title{margin:0}.ayanamsa{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}td.planet{font-weight:var(--roxy-weight-bold)}.retro{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs);margin-inline-start:var(--roxy-space-xs)}`],ka=y([L("roxy-kp-planets-table")],ka);var Sa=class extends f{renderData(a){let e=a.significators??[];return s`<div class="wrap" part="card" aria-label="KP ruling planets"><header part="header"><h2 class="title">KP ruling planets</h2>${a.dayLord?s`<div class="day-lord">Day lord: <strong>${a.dayLord}</strong></div>`:o}</header><div class="groups" part="details"><div class="group"><h3>Moon</h3><dl part="label-track"><dt>Sign lord</dt><dd>${a.moonSignLord??""}</dd><dt>Star lord</dt><dd>${a.moonStarLord??""}</dd><dt>Sub lord</dt><dd>${a.moonSublord??""}</dd><dt>Sub-sub lord</dt><dd>${a.moonSubSublord??""}</dd></dl></div><div class="group"><h3>Lagna</h3><dl part="label-track"><dt>Sign lord</dt><dd>${a.lagnaSignLord??""}</dd><dt>Star lord</dt><dd>${a.lagnaStarLord??""}</dd><dt>Sub lord</dt><dd>${a.lagnaSublord??""}</dd><dt>Sub-sub lord</dt><dd>${a.lagnaSubSublord??""}</dd></dl></div></div>${a.rulingPlanets?.length?s`<div class="rp-list" part="details"><span class="roxy-label">Ruling planets</span><ol class="roxy-chips" aria-label="Ruling planets by strength">${a.rulingPlanets.map((t,r)=>s`<li class="rp"><span class="rank">${r+1}</span> ${t}</li>`)}</ol></div>`:o} ${e.length?s`<table part="table"><caption class="roxy-sr-only">House significators: each ruling planet, the houses it signifies, and what those houses stand for.</caption><thead><tr><th scope="col">Planet</th><th scope="col">Signifies houses</th></tr></thead><tbody>${e.map(t=>{let r=Ze(t.signifies,a.houseThemes);return s`<tr><td>${t.planet}</td><td><span class="num">${(t.signifies??[]).join(", ")}</span> ${r?s`<span class="themes">${r}</span>`:o}</td></tr>`})}</tbody></table>`:o}</div>`}};Sa.endpoints=yl,Sa.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.title,.group h3{margin:0}.day-lord{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.day-lord strong{color:var(--roxy-fg)}.groups{gap:var(--roxy-space-md) var(--roxy-space-xl);flex-wrap:wrap;display:flex}.group{gap:var(--roxy-space-xs);flex:1 1 0;min-width:min(100%,22ch);display:grid}.group dl{grid-template-columns:var(--roxy-label-col) minmax(0, 1fr);gap:var(--roxy-space-xs) var(--roxy-space-sm);font-size:var(--roxy-text-sm);margin:0;display:grid}.group dd{font-weight:var(--roxy-weight-bold);margin:0}.rp-list{align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.rp .rank{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.num{font-variant-numeric:tabular-nums}.themes{color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:block}`],Sa=y([L("roxy-kp-ruling-planets")],Sa);var Lt=class extends f{constructor(){super(...arguments);this.mode="kua"}renderData(e){let t=this.effectiveLang(),r=e.trigram;return s`<article class="card" part="card" aria-labelledby="kua-title"><header class="head" part="header"><h2 class="title" id="kua-title">${this.t("Kua")} ${e.kua??""}</h2>${e.group?s`<span class="group">${this.t("{{direction}} group",{direction:j(t,"facing",D(e.group))})}</span>`:o}</header><div class="facts" part="details">${r?s`<span><span class="roxy-label">${this.t("Trigram")}</span> <span lang="zh">${r.chinese??""}</span> ${ce(jt(r.english))} <b>${r.english??""}</b> <span class="element-word ${Se(r.element)}">${x(r,"element")}</span></span>`:o} ${r?.familyMember?s`<span><span class="roxy-label">${this.t("Role")}</span>${r.familyMember}</span>`:o} ${"solarYear"in e&&typeof e.solarYear=="number"?s`<span class="solar-year"><span class="roxy-label">${this.t("Year")}</span><b>${Gt(t,String(e.solarYear),"year")}</b></span>`:o} ${"gender"in e&&e.gender?s`<span class="formula-gender"><span class="roxy-label">${X(t,"gender")}</span>${j(t,"gender",e.gender)}</span>`:o} ${"boundaryDate"in e&&e.boundaryDate?s`<span>${this.t("Year boundary")} ${A(t,e.boundaryDate)}</span>`:o} ${"reassigned"in e&&e.reassigned?s`<span>${this.t("Reassigned from {{value}}",{value:String("rawKua"in e?e.rawKua??"":"")})}</span>`:o} ${this.renderBestWorst(e)}</div><div class="plate" part="chart plate" role="group" aria-label="${this.t("Eight mansions")}">${mn.map(i=>this.renderSector(e,i))}</div><div class="legend" part="legend"><span><span class="swatch swatch-good"></span>${this.t("Favourable")}</span> <span><span class="swatch swatch-bad"></span>${this.t("Unfavourable")}</span></div>${this.renderSectorRows(e)} ${"conventions"in e?Kt(e.conventions,this.translator,this.effectiveLang()):o}</article>`}renderBestWorst(e){if(this.mode!=="mansions"||!("bestSector"in e))return o;let t=this.effectiveLang();return s`${e.bestSector?s`<span><span class="roxy-label">${this.t("Best")}</span><b>${j(t,"facing",e.bestSector)}</b></span>`:o} ${e.worstSector?s`<span><span class="roxy-label">${this.t("Worst")}</span><b>${j(t,"facing",e.worstSector)}</b></span>`:o}`}sectorHeading(e,t){return t==="Center"?this.t("Center"):j(e,"facing",t)}renderSector(e,t){let r=this.effectiveLang(),i=this.sectorHeading(r,t);if(t==="Center")return s`<div class="sector sector-self centre"><span class="kua-number">${e.kua??""}</span> <span class="trigram-symbol roxy-glyph">${jt(e.trigram?.english)??""}</span> <span class="sector-name plate-heading">${e.trigram?.english??""}</span></div>`;let l=(e.sectors??[]).find(d=>d.direction===t);if(!l)return s`<div class="sector"><span class="sector-name plate-heading">${i}</span></div>`;let c=l.nature==="auspicious";return s`<div class="sector ${c?"sector-good":"sector-bad"}"><span class="sector-name plate-heading">${i}</span> <span class="star-name">${x(l,"starName")}</span> ${"chinese"in l&&l.chinese?s`<span class="star-hanzi" lang="zh">${l.chinese}</span>`:o} <span class="domain">${l.domain??""}</span> ${typeof l.rank=="number"?s`<span class="rank">${c?this.t("Rank"):this.t("Severity")} ${l.rank}</span>`:o}</div>`}renderSectorRows(e){let t=e.sectors??[];if(t.length===0)return o;let r=this.effectiveLang(),i=t.map(l=>{let c=this.mode==="mansions"&&"reading"in l?l.reading:void 0;return!c||this.hideReadings?o:s`<li class="row" part="label-track"><span class="roxy-label">${this.sectorHeading(r,l.direction??"")}</span><div class="row-body"><span>${x(l,"starName")}</span><p part="reading">${c}</p></div></li>`});return i.every(l=>l===o)?o:s`<section part="section sectors"><h3 class="block-title">${this.t("Sectors")}</h3><ul class="rows">${i}</ul></section>`}};Lt.endpoints=ul,Lt.styles=[v,We,B,gn,na,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.block-title{margin:0}.block-title{margin-block-end:var(--roxy-space-sm)}.group{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.facts .roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b{color:var(--roxy-fg)}.plate{background:var(--roxy-border);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;display:grid;overflow:hidden}.sector{align-content:start;gap:calc(var(--roxy-space-unit) / 2);min-block-size:3.5lh;padding:var(--roxy-space-sm);background:var(--roxy-surface);text-align:center;display:grid}.sector-good{background:color-mix(in srgb, var(--roxy-success) 10%, var(--roxy-surface))}.sector-bad{background:color-mix(in srgb, var(--roxy-danger) 10%, var(--roxy-surface))}.sector-self{background:color-mix(in srgb, var(--roxy-accent) 10%, var(--roxy-surface))}:is(.sector-good,.sector-bad,.sector-self) .sector-name,:is(.sector-good,.sector-bad) .rank{color:var(--roxy-secondary)}.star-name{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.star-hanzi,.trigram-symbol{color:var(--roxy-accent-ink)}:is(.sector-good,.sector-bad) .star-hanzi{color:var(--roxy-fg)}.domain{color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.rank{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}.centre{align-content:center}.kua-number{font-size:calc(var(--roxy-text-base) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;line-height:1}.trigram-symbol{font-size:calc(var(--roxy-text-base) * 1.5);line-height:var(--roxy-leading-tight)}@container (width<=30rem){.plate{background:var(--roxy-surface);display:block}.sector.centre{display:none}.sector{column-gap:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name rank""star hanzi""domain domain";min-block-size:auto}.sector:last-child{border-block-end:0}.sector-name{grid-area:name;align-self:center}.rank{text-align:end;white-space:nowrap;grid-area:rank;align-self:center}.star-name{grid-area:star}.star-hanzi{text-align:end;grid-area:hanzi}.domain{grid-area:domain}}.legend{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.swatch-good{background:var(--roxy-success)}.swatch-bad{background:var(--roxy-danger)}.rows{margin:0;padding:0;list-style:none;display:grid}.row{align-items:baseline;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm)}.row:first-child{border-block-start:0;padding-block-start:0}.row-body p{margin:calc(var(--roxy-space-unit) / 2) 0 0;color:var(--roxy-secondary);font-size:var(--roxy-text-xs);border-block-start:0}`],y([k({type:String,reflect:true})],Lt.prototype,"mode",2),Lt=y([L("roxy-kua-card")],Lt);var ji=320,Ie=ji/2,$t=128,Py=118,Lp=137,_y=152,My=.95,Ny={glyph:11},zy=Ny.glyph;function wt(n,a){let e=n*Math.PI/180;return{x:Ie+a*Math.sin(e),y:Ie-a*Math.cos(e)}}var Oy=[{az:0,source:"N"},{az:45,source:"NE"},{az:90,source:"E"},{az:135,source:"SE"},{az:180,source:"S"},{az:225,source:"SW"},{az:270,source:"W"},{az:315,source:"NW"}],Ra=class extends f{constructor(){super(...arguments);this.chartViewport=new ne(this)}renderData(e){let t=e.bodies??[],r=e.birthDetails;return s`<div class="wrap" part="card"><header part="header"><h2>${this.t("Local space")}</h2>${r?s`<p class="roxy-label">${Y(this.effectiveLang(),r.date,r.time)}</p>`:o}</header>${this.chartViewport.renderChartViewport(this.renderDial(t),this.t("Local space"),this.translator)} ${e.summary&&!this.hideReadings?s`<p class="summary">${e.summary}</p>`:o} ${this.renderList(t)}</div>`}renderDial(e){return s`<svg viewBox="0 0 ${ji} ${ji}" part="chart" role="img" aria-label="${this.t("Local space compass of planetary directions from the birthplace")}"><title>${this.t("Local space compass")}</title><desc>${this.t("A compass centered on the birthplace. Each body is a line pointing to its azimuth, clockwise from north. Bodies below the horizon are dimmed.")}</desc><circle class="dial-fill" cx="${Ie}" cy="${Ie}" r="${$t}"/><circle class="dial" cx="${Ie}" cy="${Ie}" r="${$t*.66}" stroke-width="0.5"/><circle class="dial" cx="${Ie}" cy="${Ie}" r="${$t*.33}" stroke-width="0.5"/>${this.renderCompassRing()} ${this.renderSpokes(e)}<circle class="center-dot" cx="${Ie}" cy="${Ie}" r="2.5"/></svg>`}renderCompassRing(){let e=[];for(let d=0;d<360;d+=22.5){let p=wt(d,$t),h=wt(d,$t-(d%45===0?8:4));e.push(F`<line class="tick" x1=${h.x} y1=${h.y} x2=${p.x} y2=${p.y} />`)}let t=wt(0,$t),r=wt(180,$t),i=wt(90,$t),l=wt(270,$t),c=Oy.map(({az:d,source:p})=>{let h=wt(d,_y),m=d%90===0;return F`<text class=${`compass-label${m?" cardinal":""}`} x=${h.x} y=${h.y} text-anchor="middle" dominant-baseline="central">${this.t(p)}</text>`});return F`
|
|
101
101
|
<line class="cardinal-axis" x1=${t.x} y1=${t.y} x2=${r.x} y2=${r.y} />
|
|
102
102
|
<line class="cardinal-axis" x1=${i.x} y1=${i.y} x2=${l.x} y2=${l.y} />
|
|
103
|
-
${e}${c}`}renderSpokes(e){let t=e.map((i,l)=>({b:i,i:l})),r=
|
|
103
|
+
${e}${c}`}renderSpokes(e){let t=e.map((i,l)=>({b:i,i:l})),r=Pe(My*zy,Lp);return ze(t,({b:i})=>i.azimuth,r).map(({item:i,displayLongitude:l})=>{let{b:c,i:d}=i,p=Za(c.planet,d),h=c.aboveHorizon===false,m=wt(c.azimuth,Py),g=wt(l,Lp),b=C(c.planet)??x(c,"planet"),w=`${c.altitude>0?"+":""}${Math.round(c.altitude)}\xB0`;return F`<g>
|
|
104
104
|
<line class=${`spoke${h?" below":""}`} stroke=${p} x1=${Ie} y1=${Ie} x2=${m.x} y2=${m.y}><title>${this.t("{{planet}} {{direction}} {{azimuth}}\xB0 altitude {{altitude}}",{planet:x(c,"planet"),direction:c.compassDirection,azimuth:Math.round(c.azimuth),altitude:w})}</title></line>
|
|
105
105
|
<text class=${`body-glyph roxy-glyph${h?" below":""}`} fill=${p} x=${g.x} y=${g.y} text-anchor="middle" dominant-baseline="central">${b}</text>
|
|
106
|
-
</g>`})}renderList(e){if(e.length===0)return o;let t=this.t("Local space directions: each body with its compass direction, azimuth, altitude and whether it sits above or below the horizon.");return s`<div class="scroll" part="table" tabindex="0" role="region" aria-label="${t}"><table><caption class="roxy-sr-only">${t}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Direction")}</th><th scope="col" class="num">${this.t("Azimuth")}</th><th scope="col" class="num">${this.t("Altitude")}</th><th scope="col">${this.t("Horizon")}</th></tr></thead><tbody>${e.map((r,i)=>{let l=Za(r.planet,i),c=r.aboveHorizon===false;return s`<tr><td><span class="body-cell"><span class="body-dot" style="${`background: ${l}`}"></span> ${ce(C(r.planet))}${x(r,"planet")}</span></td><td>${r.compassDirection}</td><td class="num">${Math.round(r.azimuth)}°</td><td class="num">${r.altitude>0?"+":""}${Math.round(r.altitude)}°</td><td><span class="${`horizon ${c?"down":"up"}`}">${c?this.t("Below"):this.t("Above")}</span></td></tr>`})}</tbody></table></div>`}};Ra.endpoints=yl,Ra.styles=[v,pe,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.wrap>*{min-width:0}h2,p{margin:0}header{gap:var(--roxy-space-xs);display:grid}svg:where([part~=chart]){width:100%;max-width:var(--roxy-chart-max-width,30rem);aspect-ratio:1;height:auto;margin:0 auto;display:block}.dial{fill:none;stroke:var(--roxy-border)}.dial-fill{fill:color-mix(in srgb, var(--roxy-border) 10%, transparent);stroke:var(--roxy-border);stroke-width:1px}.cardinal-axis{stroke:var(--roxy-border);stroke-width:.5px}.tick{stroke:var(--roxy-secondary);stroke-width:.6px;opacity:.5}.compass-label{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .5625);font-weight:var(--roxy-weight-bold)}.compass-label.cardinal,.center-dot{fill:var(--roxy-fg)}.spoke{stroke-width:1.4px}.spoke.below{stroke-dasharray:3 3;opacity:.4}.body-glyph{font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-bold)}.body-glyph.below{opacity:.45}.scroll{min-width:0;overflow-x:auto}table{width:100%}:is(th,td).num{text-align:end}.body-cell{align-items:center;gap:var(--roxy-space-xs);display:inline-flex}.body-dot{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);flex-shrink:0}.horizon.up{color:var(--roxy-success-fg)}.horizon.down{color:var(--roxy-muted)}.summary{font-size:var(--roxy-text-sm)}`],Ra=y([L("roxy-local-space-compass")],Ra);var oe=class extends Ot{constructor(){super(...arguments);this.placeholder="Search city";this.defaultValue="";this.query="";this.results=[];this.isOpen=false;this.isLoading=false;this.highlight=-1;this.error=null;this.debouncedFetch=on(e=>{this.fetchResults(e)},300);this.onInput=e=>{let t=e.target.value;if(this.query=t,t.length<2){this.results=[],this.isOpen=false,this.highlight=-1,this.error=null;return}this.debouncedFetch(t)};this.onKeyDown=e=>{if(!this.isOpen||this.results.length===0){e.key==="ArrowDown"&&this.query.length>=2&&(this.fetchResults(this.query),e.preventDefault());return}if(e.key==="ArrowDown")e.preventDefault(),this.highlight=(this.highlight+1)%this.results.length;else if(e.key==="ArrowUp")e.preventDefault(),this.highlight=(this.highlight-1+this.results.length)%this.results.length;else if(e.key==="Enter"){e.preventDefault();let t=this.results[this.highlight]??this.results[0];t&&this.select(t)}else e.key==="Escape"&&(this.isOpen=false)}}connectedCallback(){super.connectedCallback(),this.query=this.defaultValue,this.clickOutsideHandler=e=>{e.composedPath().includes(this)||(this.isOpen=false)},document.addEventListener("mousedown",this.clickOutsideHandler)}willUpdate(e){if(e.has("publishableKey")||e.has("apiKey")){let t=Va(this.publishableKey??this.apiKey);t&&!this.refusal&&ir(this,t,{warn:true}),this.refusal=t}}disconnectedCallback(){super.disconnectedCallback(),this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler),this.debouncedFetch.cancel(),this.abortController&&(this.abortController.abort(),this.abortController=void 0)}async fetchResults(e){if(this.refusal)return;this.abortController&&this.abortController.abort();let t=new AbortController;this.abortController=t,this.isLoading=true;try{let r=await this.search(e,t.signal);if(t.signal.aborted)return;this.error=null,this.results=r.cities??[],this.isOpen=true,this.highlight=this.results.length>0?0:-1}catch(r){if(r?.name==="AbortError")return;this.results=[],this.isOpen=false,this.highlight=-1,this.error=r instanceof Error?r.message:String(r)}finally{this.abortController===t&&(this.abortController=void 0),t.signal.aborted||(this.isLoading=false)}}async search(e,t){if(!this.endpoint&&this.submitUrl)return It({submitUrl:this.submitUrl,submitContext:this.submitContext},{path:"/location/search",method:"GET",query:{q:e,limit:8}},t);let r=new URL(this.endpoint||`${lr}/location/search`,document.baseURI);r.searchParams.set("q",e),r.searchParams.set("limit","8");let i={Accept:"application/json"};this.apiKey&&this.publishableKey&&console.warn("[roxy-location-search] both api-key and publishable-key set; using publishable-key. Remove api-key from your widget markup.");let l=this.publishableKey??this.apiKey;l&&(i["X-API-Key"]=l);let c=await fetch(r,{headers:i,signal:t});if(!c.ok)throw new Error(await gc(c));return await c.json()}select(e){this.query=`${e.city}${e.province?`, ${e.province}`:""}, ${e.country}`,this.isOpen=false,this.results=[],this.dispatchEvent(new CustomEvent("roxy-location-select",{detail:e,bubbles:true,composed:true}))}render(){return s`${this.renderFontStyle()}${this.renderBody()}`}renderBody(){return this.refusal?s`<div class="roxy-error" role="alert">${this.t(this.refusal.message)}</div>`:s`<div class="field"><input part="input" type="text" role="combobox" aria-expanded="${this.isOpen?"true":"false"}" aria-controls="roxy-location-listbox" aria-activedescendant="${this.isOpen&&this.highlight>=0?`roxy-location-option-${this.highlight}`:""}" aria-autocomplete="list" autocomplete="off" placeholder="${this.t(this.placeholder)}" .value="${this.query}" @input="${this.onInput}" @keydown="${this.onKeyDown}" @focus="${()=>{this.results.length>0&&(this.isOpen=true)}}"> ${this.isLoading?s`<span class="spinner" role="status" aria-label="${this.t("Loading")}"></span>`:o} ${this.isOpen?s`<ul id="roxy-location-listbox" part="results" class="results" role="listbox">${this.results.length===0?s`<li class="empty" role="status">${this.t("No cities found")}</li>`:this.results.map((e,t)=>s`<li role="presentation"><button type="button" part="option" class="option" role="option" id="${`roxy-location-option-${t}`}" aria-selected="${this.highlight===t?"true":"false"}" @click="${()=>this.select(e)}" @mouseenter="${()=>{this.highlight=t}}"><span class="city">${e.city}</span> <span class="where">${e.province?s`${e.province},`:""}${e.country}</span> <span class="tz">UTC${e.utcOffset>=0?"+":""}${e.utcOffset}</span></button></li>`)}</ul>`:o}</div>${this.error?s`<p class="search-error" role="alert">${this.t(this.error)}</p>`:o}`}};oe.styles=[v,nn,u`:host{display:block;position:relative}.field{position:relative}input{inline-size:100%;min-block-size:var(--roxy-touch)}.option .city{font-weight:var(--roxy-weight-bold)}.option .where{color:var(--roxy-muted);flex-grow:1}.option .tz{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}.search-error{margin:var(--roxy-space-xs) 0 0;color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm)}`],y([k({type:String,attribute:"api-key"})],oe.prototype,"apiKey",2),y([k({type:String,attribute:"publishable-key"})],oe.prototype,"publishableKey",2),y([k({type:String})],oe.prototype,"endpoint",2),y([k({type:String,attribute:"submit-url"})],oe.prototype,"submitUrl",2),y([k({attribute:"submit-context",converter:$s})],oe.prototype,"submitContext",2),y([k({type:String})],oe.prototype,"placeholder",2),y([k({type:String,attribute:"default-value"})],oe.prototype,"defaultValue",2),y([I()],oe.prototype,"query",2),y([I()],oe.prototype,"results",2),y([I()],oe.prototype,"isOpen",2),y([I()],oe.prototype,"isLoading",2),y([I()],oe.prototype,"highlight",2),y([I()],oe.prototype,"refusal",2),y([I()],oe.prototype,"error",2),oe=y([L("roxy-location-search")],oe);var vp={forward:"Forward",reverse:"Backward"},Ca=class extends f{renderData(a){let e=this.effectiveLang();return s`<article class="card" part="card" aria-labelledby="luck-title"><header class="head" part="header"><h2 class="title" id="luck-title">${this.t("Luck pillars")}</h2></header><div class="facts" part="details">${a.direction?s`<span><span class="roxy-label">${this.t("Direction")}</span><b>${vp[a.direction]?this.t(vp[a.direction]):a.direction}</b></span>`:o} ${typeof a.startAge=="number"?s`<span><span class="roxy-label">${this.t("Starts")}</span><b>${this.ageLabel(e,a.startAge,a.startAgeMonths)}</b></span>`:o} ${a.boundaryTerm?s`<span><span class="roxy-label">${this.t("Counted to")}</span>${j(e,"boundaryTerm",a.boundaryTerm)}</span>`:o} ${typeof a.daysToTerm=="number"?s`<span><span class="roxy-label">${this.t("Days")}</span>${N(e,a.daysToTerm)}</span>`:o} ${a.gender?s`<span><span class="roxy-label">${this.t("Formula")}</span>${j(e,"gender",a.gender)}</span>`:o}</div>${this.renderStrip(a,e)} ${this.renderAnnuals(a)} ${a.summary&&!this.hideReadings?s`<p class="summary" part="section summary">${a.summary}</p>`:o} ${Kt(a.conventions,this.translator,this.effectiveLang())}</article>`}ageLabel(a,e,t){let r=N(a,e);return typeof t=="number"&&t>0?this.t("{{years}}y {{months}}m",{years:r,months:N(a,t)}):this.t("{{years}} yrs",{years:r})}renderStrip(a,e){let t=a.luckPillars??[];return t.length===0?o:s`<div class="strip-wrap" part="chart" role="region" tabindex="0" aria-label="${this.t("Luck pillars")}"><div class="strip">${t.map(r=>s`<div class="pillar" part="pillar"><span class="ages roxy-label">${this.t("{{start}} to {{end}}",{start:N(e,r.startAge??0),end:N(e,r.endAge??0)})}</span> <span class="god">${x(r.tenGod,"name")}</span> <span class="hanzi" lang="zh">${r.stem?.chinese??""}</span> <span class="romanised">${r.stem?.pinyin??""} <span class="element-word ${Se(r.stem?.element)}">${x(r.stem,"element")}</span></span> <span class="hanzi hanzi-branch" lang="zh">${r.branch?.chinese??""}</span> <span class="romanised">${r.branch?.pinyin??""} ${x(r.branch,"animal")}</span> <span class="years">${this.t("{{start}} to {{end}}",{start:String(r.startYear??""),end:String(r.endYear??"")})}</span></div>`)}</div></div>`}renderAnnuals(a){let e=a.annualPillars??[];return e.length===0?o:s`<section part="section annual-pillars"><h3 class="block-title">${this.t("Annual pillars")}</h3><ul class="roxy-chips annuals">${e.map(t=>s`<li class="annual"><span class="yr">${t.year??""}</span> <span lang="zh">${t.tenGod?.chinese??""}</span> <span>${x(t.tenGod,"name")}</span></li>`)}</ul></section>`}};Ca.endpoints=ul,Ca.styles=[v,B,We,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.title,.block-title{margin:0}.block-title{margin-block-end:var(--roxy-space-sm)}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.facts .roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b{color:var(--roxy-fg)}.strip-wrap{min-width:0;overflow-x:auto}.strip{min-width:min-content;display:flex}.pillar{gap:calc(var(--roxy-space-unit) / 2);min-inline-size:12ch;padding:var(--roxy-space-sm);text-align:center;flex:none;align-content:start;display:grid}.pillar+.pillar{border-inline-start:1px solid var(--roxy-border)}.ages,.years{font-variant-numeric:tabular-nums}.ages{font-weight:var(--roxy-weight-bold)}.god{min-block-size:1lh;color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.hanzi{font-size:calc(var(--roxy-text-base) * 1.75);line-height:var(--roxy-leading-tight)}.hanzi-branch{color:var(--roxy-accent-ink)}.romanised,.years{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.annual .yr{font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.summary{margin:0}`],Ca=y([L("roxy-luck-pillars")],Ca);var zy={gentle:"Gentle",indifferent:"Indifferent",violent:"Violent"},Oy={center:"Center",conception:"Conception arm",destiny:"Destiny arm",left:"Left arm",right:"Right arm"},Iy=13;function Lp(n){return"tzolkin"in n}var kt=class extends f{constructor(){super(...arguments);this.mode="day"}renderData(e){let t=this.effectiveLang(),r=this.mode==="chart"&&Lp(e)?e:void 0,i=Lp(e)?e.tzolkin:e,l=i?.reading,c=l?.numberBand?zy[l.numberBand]:void 0;return s`<article class="card" part="card" aria-labelledby="mayan-title"><header class="hero" part="header">${typeof i?.number=="number"?s`<div class="coefficient">${N(t,i.number)}</div>`:o}<div><p class="roxy-label">${this.t("Mayan day sign")}</p><h2 class="title" id="mayan-title">${i?.daySignName??""}</h2><p class="spellings">${i?.daySignClassic?s`<span><span class="roxy-label">${this.t("Classic spelling")}</span>${i.daySignClassic}</span>`:o} ${i?.daySignKiche?s`<span><span class="roxy-label">${this.t("Highland spelling")}</span>${i.daySignKiche}</span>`:o}</p></div></header><div class="facts" part="details">${e.date?s`<span><span class="roxy-label">${this.t("Date")}</span><b>${A(t,e.date)}</b></span>`:o} ${this.renderTrecena(t,i?.trecena)} ${r?this.renderHaabFact(t,r.haab):o} ${r?.longCount?.formatted?s`<span><span class="roxy-label">${this.t("Long Count")}</span><b>${r.longCount.formatted}</b></span>`:o} ${r?.calendarRound?s`<span><span class="roxy-label">${this.t("Calendar Round")}</span><b>${r.calendarRound}</b></span>`:o} ${r?.yearBearer?.daySignName?s`<span><span class="roxy-label">${this.t("Year Bearer")}</span><b>${N(t,r.yearBearer.number)} ${r.yearBearer.daySignName}</b></span>`:o} ${r?.lordOfNight?.label?s`<span><span class="roxy-label">${this.t("Lord of the Night")}</span><b>${r.lordOfNight.label}</b></span>`:o} ${c?s`<span><span class="roxy-label">${this.t("Character of the number")}</span><b class="band">${this.t(c)}</b></span>`:o} ${e.conventions?.correlation?s`<span><span class="roxy-label">${this.t("Correlation")}</span><span title="${e.conventions.correlation}">${j(t,"correlation",e.conventions.correlation,e.conventions.correlation)}</span></span>`:o}</div>${l?.keynote&&!this.hideReadings?s`<p class="keynote" part="reading">${l.keynote}</p>`:o} ${this.renderLists(l)} ${this.renderInterpretation(this.sections(r,l),"mayan-day")} ${this.renderCross(t,r?.cross)} ${r?.summary&&!this.hideReadings?s`<p class="summary" part="reading">${r.summary}</p>`:o}</article>`}renderTrecena(e,t){return t?s`<span><span class="roxy-label">${this.t("Trecena")}</span><b>${N(e,t.number)}</b> ${typeof t.dayOfTrecena=="number"?this.t("Day {{n}} of {{total}}",{n:N(e,t.dayOfTrecena),total:N(e,Iy)}):o} ${t.rulingSignName?s`· <span class="roxy-label">${this.t("Ruling sign")}</span>${t.rulingSignName}`:o}</span>`:o}renderHaabFact(e,t){return t?.monthName?s`<span><span class="roxy-label">${this.t("Haab")}</span><b>${N(e,t.day)} ${t.monthName}</b> ${t.monthClassic?s`(${t.monthClassic})`:o} ${typeof t.dayOfYear=="number"?s`· <span class="roxy-label">${this.t("Day of year")}</span>${N(e,t.dayOfYear)}`:o}</span>`:o}renderLists(e){let t=e?.strengths??[],r=e?.challenges??[];return this.hideReadings||t.length===0&&r.length===0?o:s`<div class="lists" part="section readings">${t.length>0?s`<div><h3 class="block-title">${this.t("Strengths")}</h3><ul class="plain">${t.map(i=>s`<li>${i}</li>`)}</ul></div>`:o} ${r.length>0?s`<div><h3 class="block-title">${this.t("Challenges")}</h3><ul class="plain">${r.map(i=>s`<li>${i}</li>`)}</ul></div>`:o}</div>`}sections(e,t){let r=[];return t?.numberReading&&r.push({label:this.t("Coefficient"),body:t.numberReading}),t?.guidance&&r.push({label:this.t("Guidance"),body:t.guidance}),e?.haab?.reading&&r.push({label:this.t("Haab"),body:e.haab.reading}),e?.lordOfNight?.reading&&r.push({label:this.t("Lord of the Night"),body:e.lordOfNight.reading}),e?.yearBearer?.reading&&r.push({label:this.t("Year Bearer"),body:e.yearBearer.reading}),r}crossLabel(e){let t=Oy[e??""];return t?this.t(t):E(e??"")}renderCross(e,t){let r=t??[];return r.length===0?o:s`<section part="section cross"><h3 class="block-title">${this.t("Mayan cross")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Mayan cross")}"><table class="stacked"><thead><tr><th>${this.t("Position")}</th><th>${this.t("Offset in days")}</th><th>${this.t("Day sign")}</th></tr></thead><tbody>${r.map(i=>s`<tr><td data-label="${this.t("Position")}">${this.crossLabel(i.position)}</td><td class="num" data-label="${this.t("Offset in days")}">${N(e,i.offsetDays)}</td><td data-label="${this.t("Day sign")}">${N(e,i.number)} ${i.daySignName??""} ${i.daySignKiche?s`(${i.daySignKiche})`:o} ${i.reading&&!this.hideReadings?s`<p part="reading">${i.reading}</p>`:o}</td></tr>`)}</tbody></table></div></section>`}};kt.endpoints=fl,kt.styles=[v,H,qe,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.coefficient{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * 2.75);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1}.hero>div:not(.coefficient){min-width:0}.title,.block-title,p.roxy-label{margin:0}.title{font-size:var(--roxy-text-xl)}.block-title{margin-block-end:var(--roxy-space-sm)}.spellings{gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);margin:calc(var(--roxy-space-unit) / 2) 0 0;color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}span>.roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b{color:var(--roxy-fg)}.keynote,.summary{margin:0;padding-block-start:var(--roxy-space-md)}.summary{color:var(--roxy-secondary);font-size:var(--roxy-text-sm)}.lists{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,28ch),1fr));display:grid}ul.plain{font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-lg)}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td.num{white-space:nowrap}td.num{font-variant-numeric:tabular-nums}td p{margin:calc(var(--roxy-space-unit) / 2) 0 0;color:var(--roxy-secondary);font-size:var(--roxy-text-xs);border-block-start:0}`],y([k({type:String,reflect:true})],kt.prototype,"mode",2),kt=y([L("roxy-mayan-day-sign")],kt);var Gy=88,Fy=28,St=class extends f{constructor(){super(...arguments);this.mode="current"}renderData(e){let t="phases"in e?e.phases:"calendar"in e?e.calendar:[];if(this.mode!=="current"&&t.length>0){let r=dr(this.effectiveLang(),"year"in e?e.year:void 0,"month"in e?e.month:void 0);return s`<article class="card" part="card" aria-label="${this.t("Moon phase calendar")}"><h2 class="label" part="header">${r||this.t("Moon phase calendar")}</h2><div part="table" role="list">${t.map(i=>this.renderListItem(i))}</div></article>`}return"phase"in e?this.renderSingle(e):o}renderSingle(e){let t=e.meaning?.energy,r=t==="waxing"||t==="waning"?t==="waxing":typeof e.age=="number"?e.age<mr/2:ai(e.date);return s`<article class="card" part="card" aria-label="${this.t("Current moon phase")}"><div class="hero" part="header">${typeof e.illumination=="number"&&r!==void 0?Ge(this,{illumination:e.illumination,waxing:r},Gy):o}<div><h2 class="label">${e.phase??this.t("Current moon phase")}</h2>${e.date?s`<p class="roxy-label">${A(this.effectiveLang(),e.date)}</p>`:o}</div></div><div class="stats" part="details">${typeof e.illumination=="number"?s`<div><span class="roxy-label">${this.t("Illumination")}</span> <strong>${te(this.effectiveLang(),e.illumination,0)}</strong></div>`:o} ${typeof e.age=="number"?s`<div><span class="roxy-label">${this.t("Age")}</span> <strong>${this.t("{{count}} days",{count:$(this.effectiveLang(),e.age,1)})}</strong></div>`:o} ${e.sign?s`<div><span class="roxy-label">${this.t("Sign")}</span> <strong>${e.sign}</strong></div>`:o} ${typeof e.distance=="number"?s`<div><span class="roxy-label">${this.t("Distance")}</span> <strong>${this.t("{{value}}k km",{value:$(this.effectiveLang(),e.distance/1e3,0)})}</strong></div>`:o}</div>${e.meaning?.description&&!this.hideReadings?s`<p>${e.meaning.description}</p>`:o} ${e.meaning?.keywords?.length&&!this.hideReadings?s`<ul class="roxy-chips">${e.meaning.keywords.map(i=>s`<li>${i}</li>`)}</ul>`:o}</article>`}renderListItem(e){let t=ai(e.date),r="illumination"in e&&t!==void 0?{illumination:e.illumination,waxing:t}:Dc(e.date);return s`<div class="list-item" role="listitem">${r?Ge(this,r,Fy):s`<span></span>`} <span>${e.phase}</span> <span>${A(this.effectiveLang(),e.date)}</span> ${"sign"in e?this.renderSign(e.sign):o}</div>`}renderSign(e){let t=z(e);return t?s`<span class="roxy-glyph" role="img" lang="en" aria-label="${e}">${t}</span>`:s`<span lang="en">${e}</span>`}};St.endpoints=xl,St.styles=[v,Ft,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.label{text-transform:capitalize}.stats{gap:var(--roxy-space-md);font-size:var(--roxy-text-sm);grid-template-columns:repeat(auto-fit,minmax(min(100%,14ch),1fr));display:grid}.stats .roxy-label{display:block}.stats strong{font-variant-numeric:tabular-nums}.list-item{align-items:center;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);grid-template-columns:auto minmax(0,1fr);grid-auto-columns:auto;grid-auto-flow:column;display:grid}.list-item:last-child{border-block-end:0}`],y([k({type:String,reflect:true})],St.prototype,"mode",2),St=y([L("roxy-moon-phase")],St);var Ta=class extends f{renderData(a){let e=a.remedies;return s`<article class="wrap" part="card" aria-label="${this.t("Nakshatra {{name}}",{name:a.name})}"><header class="head" part="header"><h2>${a.name}</h2>${typeof a.number=="number"?s`<span class="number">${this.t("Nakshatra {{number}} of 27",{number:a.number})}</span>`:o} ${a.range?s`<span class="range">${a.range}</span>`:o}</header><dl class="roxy-facts" part="details">${a.lord?s`<div><dt>${this.t("Lord")}</dt><dd>${a.lord}</dd></div>`:o} ${a.deity?s`<div><dt>${this.t("Deity")}</dt><dd>${a.deity}</dd></div>`:o} ${a.symbol?s`<div><dt>${this.t("Symbol")}</dt><dd>${a.symbol}</dd></div>`:o}</dl>${a.characteristics&&!this.hideReadings?s`<div class="section" part="section characteristics"><h3>${this.t("Characteristics")}</h3><p>${a.characteristics}</p></div>`:o} ${e&&!this.hideReadings?s`<div class="section" part="section remedies"><h3>${this.t("Remedies")}</h3><div class="remedies">${e.mantras?s`<div class="remedy"><strong>${this.t("Mantras:")}</strong> ${e.mantras}</div>`:o} ${e.gemstones?s`<div class="remedy"><strong>${this.t("Gemstones:")}</strong> ${e.gemstones}</div>`:o} ${e.rituals?s`<div class="remedy"><strong>${this.t("Rituals:")}</strong> ${e.rituals}</div>`:o}</div></div>`:o}</article>`}};Ta.endpoints=bl,Ta.styles=[v,J,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}h2,h3,p{margin:0}.number{color:var(--roxy-accent-ink);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.range{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.roxy-facts{margin:0}.section h3{margin-block-end:var(--roxy-space-xs)}.section p,.remedy{font-size:var(--roxy-text-sm)}.remedies{gap:var(--roxy-space-xs);display:grid}.remedy strong{color:var(--roxy-secondary)}`],Ta=y([L("roxy-nakshatra-card")],Ta);var Ea=class extends f{rows(){let a=this.data;if(!a)return[];let e=(a.planets??[]).map(r=>({name:r.name,label:x(r,"name"),sign:r.sign,signLabel:x(r,"sign"),longitude:r.longitude,latitude:r.latitude,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,dignity:r.dignity})),t=[["Ascendant",a.ascendant],["Midheaven",a.midheaven],["Part of Fortune",a.partOfFortune],["Vertex",a.vertex]];for(let[r,i]of t)i&&e.push({name:r,label:this.t(r),sign:i.sign,signLabel:x(i,"sign"),longitude:i.longitude,house:"house"in i?i.house:void 0,sect:"sect"in i?i.sect:void 0,isPoint:true});return e}renderData(a){if(!a.planets)return this.renderEmpty();let e=this.rows(),t=a.birthDetails,r=e.some(c=>Number.isFinite(c.latitude)),i=e.some(c=>c.sect),l=["latitude","longitude","timezone"];return s`<div class="wrap" part="card"><header part="header"><h2>${this.t("Planetary positions")}</h2>${t?s`<div part="details"><p class="roxy-label">${Y(this.effectiveLang(),t.date,t.time,true)}</p><dl class="roxy-facts">${l.map(c=>s`<div><dt>${X(this.effectiveLang(),c)}</dt><dd>${$(this.effectiveLang(),t[c],5)}</dd></div>`)}</dl></div>`:o}</header><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Western planetary positions")}"><table part="table"><caption class="roxy-sr-only">${this.t("Western planetary positions: each body with its sign, degree, house, essential dignity and motion. The dignity cell is blank for the lunar nodes, Chiron and Lilith, which rule no sign and therefore hold no dignity at all.")}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Longitude")}</th>${r?s`<th scope="col">${X(this.effectiveLang(),"latitude")}</th>`:o}<th scope="col">${this.t("House")}</th><th scope="col">${this.t("Dignity")}</th><th scope="col">${this.t("Motion")}</th>${i?s`<th scope="col">${this.t("Sect")}</th>`:o}</tr></thead><tbody>${e.map(c=>{let d=C(c.name)??"",p=c.sect==="day"?this.t("Daytime"):c.sect==="night"?this.t("Night"):"",h=z(c.sign)??"",m=typeof c.speed=="number"?$(this.effectiveLang(),c.speed,6):"";return s`<tr class="${c.isPoint?"point":""}"><td class="body">${d?s`<span class="glyph roxy-glyph">${d}</span>`:o}${c.label}</td><td>${h?s`<span class="glyph roxy-glyph">${h}</span>`:o}${c.signLabel??""}</td><td>${typeof c.longitude=="number"?ye(c.longitude,c.signLabel):""}</td><td>${typeof c.longitude=="number"?`${$(this.effectiveLang(),c.longitude,5)}\xB0`:o}</td>${r?s`<td>${typeof c.latitude=="number"?`${$(this.effectiveLang(),c.latitude,5)}\xB0`:o}</td>`:o}<td>${typeof c.house=="number"?c.house:""}</td><td class="dignity">${c.dignity?D(c.dignity):""}</td><td>${m?s`${m}${this.t("\xB0/day")}`:o} ${c.isRetrograde?s`<span class="retro roxy-glyph">${ae}</span>`:o}</td>${i?s`<td>${p}</td>`:o}</tr>`})}</tbody></table></div>${a.houses?.length?s`<details part="section houses"><summary>${this.t("Houses")}</summary><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Houses")}"><table part="table"><thead><tr><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Longitude")}</th></tr></thead><tbody>${a.houses.map(c=>s`<tr><th scope="row">${$(this.effectiveLang(),c.number,0)}</th><td>${x(c,"sign")}</td><td>${ye(c.longitude,x(c,"sign"))}</td><td>${$(this.effectiveLang(),c.longitude,5)}°</td></tr>`)}</tbody></table></div></details>`:o}</div>`}};Ea.endpoints=Bl,Ea.styles=[v,J,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}h2{overflow-wrap:anywhere}.scroll{min-width:0;overflow-x:auto}table{width:100%}:is(th,td){white-space:nowrap}tr:not(.point)+tr.point>*{border-block-start:1px solid var(--roxy-secondary)}td.body{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.retro{color:var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold)}details>summary{font-weight:var(--roxy-weight-bold)}details>.scroll{margin-block-start:var(--roxy-space-sm)}`],Ea=y([L("roxy-western-planets-table")],Ea);var Hi=540,G=Hi/2,$r=220,Ki=202,Vr=174,Ur=144,By=232,ji=249,qr={glyph:14,degree:7},Hy=.95,jy=28,Ky=13,bn=84;function Ui(n){return(n.houses??[]).length===12}function Uy(n){let a=n.midheaven?.longitude;return typeof a=="number"?a:null}function _e(n,a){return 180+n.ascendant-a}function $p(n,a={}){let e={data:n,t:Ve(a.lang),locale:a.lang,size:a.typeSize??qr,ascendant:n.ascendant?.longitude??0,hasCusps:Ui(n)},t=n.planets??[];return T`<svg class="natal-wheel" xmlns=${Ue} viewBox=${`0 0 ${Hi} ${Hi}`} part="chart" role="img" aria-label=${e.hasCusps?e.t("Natal chart wheel with twelve houses, planets, and aspects"):e.t("Natal chart wheel with planets and aspects, houses shown as equal sectors from the Ascendant")}><title>${e.t("Natal chart wheel")}</title><desc>${e.t("Twelve zodiac sign segments around a circular wheel. Planet glyphs are placed at their ecliptic longitudes. Aspect lines connect related planets.")}</desc>
|
|
106
|
+
</g>`})}renderList(e){if(e.length===0)return o;let t=this.t("Local space directions: each body with its compass direction, azimuth, altitude and whether it sits above or below the horizon.");return s`<div class="scroll" part="table" tabindex="0" role="region" aria-label="${t}"><table><caption class="roxy-sr-only">${t}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Direction")}</th><th scope="col" class="num">${this.t("Azimuth")}</th><th scope="col" class="num">${this.t("Altitude")}</th><th scope="col">${this.t("Horizon")}</th></tr></thead><tbody>${e.map((r,i)=>{let l=Za(r.planet,i),c=r.aboveHorizon===false;return s`<tr><td><span class="body-cell"><span class="body-dot" style="${`background: ${l}`}"></span> ${ce(C(r.planet))}${x(r,"planet")}</span></td><td>${r.compassDirection}</td><td class="num">${Math.round(r.azimuth)}°</td><td class="num">${r.altitude>0?"+":""}${Math.round(r.altitude)}°</td><td><span class="${`horizon ${c?"down":"up"}`}">${c?this.t("Below"):this.t("Above")}</span></td></tr>`})}</tbody></table></div>`}};Ra.endpoints=fl,Ra.styles=[v,pe,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.wrap>*{min-width:0}h2,p{margin:0}header{gap:var(--roxy-space-xs);display:grid}svg:where([part~=chart]){width:100%;max-width:var(--roxy-chart-max-width,30rem);aspect-ratio:1;height:auto;margin:0 auto;display:block}.dial{fill:none;stroke:var(--roxy-border)}.dial-fill{fill:color-mix(in srgb, var(--roxy-border) 10%, transparent);stroke:var(--roxy-border);stroke-width:1px}.cardinal-axis{stroke:var(--roxy-border);stroke-width:.5px}.tick{stroke:var(--roxy-secondary);stroke-width:.6px;opacity:.5}.compass-label{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .5625);font-weight:var(--roxy-weight-bold)}.compass-label.cardinal,.center-dot{fill:var(--roxy-fg)}.spoke{stroke-width:1.4px}.spoke.below{stroke-dasharray:3 3;opacity:.4}.body-glyph{font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-bold)}.body-glyph.below{opacity:.45}.scroll{min-width:0;overflow-x:auto}table{width:100%}:is(th,td).num{text-align:end}.body-cell{align-items:center;gap:var(--roxy-space-xs);display:inline-flex}.body-dot{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);flex-shrink:0}.horizon.up{color:var(--roxy-success-fg)}.horizon.down{color:var(--roxy-muted)}.summary{font-size:var(--roxy-text-sm)}`],Ra=y([L("roxy-local-space-compass")],Ra);var oe=class extends Ot{constructor(){super(...arguments);this.placeholder="Search city";this.defaultValue="";this.query="";this.results=[];this.isOpen=false;this.isLoading=false;this.highlight=-1;this.error=null;this.debouncedFetch=cn(e=>{this.fetchResults(e)},300);this.onInput=e=>{let t=e.target.value;if(this.query=t,t.length<2){this.results=[],this.isOpen=false,this.highlight=-1,this.error=null;return}this.debouncedFetch(t)};this.onKeyDown=e=>{if(!this.isOpen||this.results.length===0){e.key==="ArrowDown"&&this.query.length>=2&&(this.fetchResults(this.query),e.preventDefault());return}if(e.key==="ArrowDown")e.preventDefault(),this.highlight=(this.highlight+1)%this.results.length;else if(e.key==="ArrowUp")e.preventDefault(),this.highlight=(this.highlight-1+this.results.length)%this.results.length;else if(e.key==="Enter"){e.preventDefault();let t=this.results[this.highlight]??this.results[0];t&&this.select(t)}else e.key==="Escape"&&(this.isOpen=false)}}connectedCallback(){super.connectedCallback(),this.query=this.defaultValue,this.clickOutsideHandler=e=>{e.composedPath().includes(this)||(this.isOpen=false)},document.addEventListener("mousedown",this.clickOutsideHandler)}willUpdate(e){if(e.has("publishableKey")||e.has("apiKey")){let t=Va(this.publishableKey??this.apiKey);t&&!this.refusal&&ir(this,t,{warn:true}),this.refusal=t}}disconnectedCallback(){super.disconnectedCallback(),this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler),this.debouncedFetch.cancel(),this.abortController&&(this.abortController.abort(),this.abortController=void 0)}async fetchResults(e){if(this.refusal)return;this.abortController&&this.abortController.abort();let t=new AbortController;this.abortController=t,this.isLoading=true;try{let r=await this.search(e,t.signal);if(t.signal.aborted)return;this.error=null,this.results=r.cities??[],this.isOpen=true,this.highlight=this.results.length>0?0:-1}catch(r){if(r?.name==="AbortError")return;this.results=[],this.isOpen=false,this.highlight=-1,this.error=r instanceof Error?r.message:String(r)}finally{this.abortController===t&&(this.abortController=void 0),t.signal.aborted||(this.isLoading=false)}}async search(e,t){if(!this.endpoint&&this.submitUrl)return It({submitUrl:this.submitUrl,submitContext:this.submitContext},{path:"/location/search",method:"GET",query:{q:e,limit:8}},t);let r=new URL(this.endpoint||`${lr}/location/search`,document.baseURI);r.searchParams.set("q",e),r.searchParams.set("limit","8");let i={Accept:"application/json"};this.apiKey&&this.publishableKey&&console.warn("[roxy-location-search] both api-key and publishable-key set; using publishable-key. Remove api-key from your widget markup.");let l=this.publishableKey??this.apiKey;l&&(i["X-API-Key"]=l);let c=await fetch(r,{headers:i,signal:t});if(!c.ok)throw new Error(await uc(c));return await c.json()}select(e){this.query=`${e.city}${e.province?`, ${e.province}`:""}, ${e.country}`,this.isOpen=false,this.results=[],this.dispatchEvent(new CustomEvent("roxy-location-select",{detail:e,bubbles:true,composed:true}))}render(){return s`${this.renderFontStyle()}${this.renderBody()}`}renderBody(){return this.refusal?s`<div class="roxy-error" role="alert">${this.t(this.refusal.message)}</div>`:s`<div class="field"><input part="input" type="text" role="combobox" aria-expanded="${this.isOpen?"true":"false"}" aria-controls="roxy-location-listbox" aria-activedescendant="${this.isOpen&&this.highlight>=0?`roxy-location-option-${this.highlight}`:""}" aria-autocomplete="list" autocomplete="off" placeholder="${this.t(this.placeholder)}" .value="${this.query}" @input="${this.onInput}" @keydown="${this.onKeyDown}" @focus="${()=>{this.results.length>0&&(this.isOpen=true)}}"> ${this.isLoading?s`<span class="spinner" role="status" aria-label="${this.t("Loading")}"></span>`:o} ${this.isOpen?s`<ul id="roxy-location-listbox" part="results" class="results" role="listbox">${this.results.length===0?s`<li class="empty" role="status">${this.t("No cities found")}</li>`:this.results.map((e,t)=>s`<li role="presentation"><button type="button" part="option" class="option" role="option" id="${`roxy-location-option-${t}`}" aria-selected="${this.highlight===t?"true":"false"}" @click="${()=>this.select(e)}" @mouseenter="${()=>{this.highlight=t}}"><span class="city">${e.city}</span> <span class="where">${e.province?s`${e.province},`:""}${e.country}</span> <span class="tz">UTC${e.utcOffset>=0?"+":""}${e.utcOffset}</span></button></li>`)}</ul>`:o}</div>${this.error?s`<p class="search-error" role="alert">${this.t(this.error)}</p>`:o}`}};oe.styles=[v,ln,u`:host{display:block;position:relative}.field{position:relative}input{inline-size:100%;min-block-size:var(--roxy-touch)}.option .city{font-weight:var(--roxy-weight-bold)}.option .where{color:var(--roxy-muted);flex-grow:1}.option .tz{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}.search-error{margin:var(--roxy-space-xs) 0 0;color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm)}`],y([k({type:String,attribute:"api-key"})],oe.prototype,"apiKey",2),y([k({type:String,attribute:"publishable-key"})],oe.prototype,"publishableKey",2),y([k({type:String})],oe.prototype,"endpoint",2),y([k({type:String,attribute:"submit-url"})],oe.prototype,"submitUrl",2),y([k({attribute:"submit-context",converter:ks})],oe.prototype,"submitContext",2),y([k({type:String})],oe.prototype,"placeholder",2),y([k({type:String,attribute:"default-value"})],oe.prototype,"defaultValue",2),y([I()],oe.prototype,"query",2),y([I()],oe.prototype,"results",2),y([I()],oe.prototype,"isOpen",2),y([I()],oe.prototype,"isLoading",2),y([I()],oe.prototype,"highlight",2),y([I()],oe.prototype,"refusal",2),y([I()],oe.prototype,"error",2),oe=y([L("roxy-location-search")],oe);var $p={forward:"Forward",reverse:"Backward"},Ca=class extends f{renderData(a){let e=this.effectiveLang();return s`<article class="card" part="card" aria-labelledby="luck-title"><header class="head" part="header"><h2 class="title" id="luck-title">${this.t("Luck pillars")}</h2></header><div class="facts" part="details">${a.direction?s`<span><span class="roxy-label">${this.t("Direction")}</span><b>${$p[a.direction]?this.t($p[a.direction]):a.direction}</b></span>`:o} ${typeof a.startAge=="number"?s`<span><span class="roxy-label">${this.t("Starts")}</span><b>${this.ageLabel(e,a.startAge,a.startAgeMonths)}</b></span>`:o} ${a.boundaryTerm?s`<span><span class="roxy-label">${this.t("Counted to")}</span>${j(e,"boundaryTerm",a.boundaryTerm)}</span>`:o} ${typeof a.daysToTerm=="number"?s`<span><span class="roxy-label">${this.t("Days")}</span>${N(e,a.daysToTerm)}</span>`:o} ${a.gender?s`<span><span class="roxy-label">${this.t("Formula")}</span>${j(e,"gender",a.gender)}</span>`:o}</div>${this.renderStrip(a,e)} ${this.renderAnnuals(a)} ${a.summary&&!this.hideReadings?s`<p class="summary" part="section summary">${a.summary}</p>`:o} ${Kt(a.conventions,this.translator,this.effectiveLang())}</article>`}ageLabel(a,e,t){let r=N(a,e);return typeof t=="number"&&t>0?this.t("{{years}}y {{months}}m",{years:r,months:N(a,t)}):this.t("{{years}} yrs",{years:r})}renderStrip(a,e){let t=a.luckPillars??[];return t.length===0?o:s`<div class="strip-wrap" part="chart" role="region" tabindex="0" aria-label="${this.t("Luck pillars")}"><div class="strip">${t.map(r=>s`<div class="pillar" part="pillar"><span class="ages roxy-label">${this.t("{{start}} to {{end}}",{start:N(e,r.startAge??0),end:N(e,r.endAge??0)})}</span> <span class="god">${x(r.tenGod,"name")}</span> <span class="hanzi" lang="zh">${r.stem?.chinese??""}</span> <span class="romanised">${r.stem?.pinyin??""} <span class="element-word ${Se(r.stem?.element)}">${x(r.stem,"element")}</span></span> <span class="hanzi hanzi-branch" lang="zh">${r.branch?.chinese??""}</span> <span class="romanised">${r.branch?.pinyin??""} ${x(r.branch,"animal")}</span> <span class="years">${this.t("{{start}} to {{end}}",{start:String(r.startYear??""),end:String(r.endYear??"")})}</span></div>`)}</div></div>`}renderAnnuals(a){let e=a.annualPillars??[];return e.length===0?o:s`<section part="section annual-pillars"><h3 class="block-title">${this.t("Annual pillars")}</h3><ul class="roxy-chips annuals">${e.map(t=>s`<li class="annual"><span class="yr">${t.year??""}</span> <span lang="zh">${t.tenGod?.chinese??""}</span> <span>${x(t.tenGod,"name")}</span></li>`)}</ul></section>`}};Ca.endpoints=xl,Ca.styles=[v,B,We,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.title,.block-title{margin:0}.block-title{margin-block-end:var(--roxy-space-sm)}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.facts .roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b{color:var(--roxy-fg)}.strip-wrap{min-width:0;overflow-x:auto}.strip{min-width:min-content;display:flex}.pillar{gap:calc(var(--roxy-space-unit) / 2);min-inline-size:12ch;padding:var(--roxy-space-sm);text-align:center;flex:none;align-content:start;display:grid}.pillar+.pillar{border-inline-start:1px solid var(--roxy-border)}.ages,.years{font-variant-numeric:tabular-nums}.ages{font-weight:var(--roxy-weight-bold)}.god{min-block-size:1lh;color:var(--roxy-secondary);font-size:var(--roxy-text-xs)}.hanzi{font-size:calc(var(--roxy-text-base) * 1.75);line-height:var(--roxy-leading-tight)}.hanzi-branch{color:var(--roxy-accent-ink)}.romanised,.years{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.annual .yr{font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.summary{margin:0}`],Ca=y([L("roxy-luck-pillars")],Ca);var Iy={gentle:"Gentle",indifferent:"Indifferent",violent:"Violent"},Gy={center:"Center",conception:"Conception arm",destiny:"Destiny arm",left:"Left arm",right:"Right arm"},Fy=13;function wp(n){return"tzolkin"in n}var kt=class extends f{constructor(){super(...arguments);this.mode="day"}renderData(e){let t=this.effectiveLang(),r=this.mode==="chart"&&wp(e)?e:void 0,i=wp(e)?e.tzolkin:e,l=i?.reading,c=l?.numberBand?Iy[l.numberBand]:void 0;return s`<article class="card" part="card" aria-labelledby="mayan-title"><header class="hero" part="header">${typeof i?.number=="number"?s`<div class="coefficient">${N(t,i.number)}</div>`:o}<div><p class="roxy-label">${this.t("Mayan day sign")}</p><h2 class="title" id="mayan-title">${i?.daySignName??""}</h2><p class="spellings">${i?.daySignClassic?s`<span><span class="roxy-label">${this.t("Classic spelling")}</span>${i.daySignClassic}</span>`:o} ${i?.daySignKiche?s`<span><span class="roxy-label">${this.t("Highland spelling")}</span>${i.daySignKiche}</span>`:o}</p></div></header><div class="facts" part="details">${e.date?s`<span><span class="roxy-label">${this.t("Date")}</span><b>${A(t,e.date)}</b></span>`:o} ${this.renderTrecena(t,i?.trecena)} ${r?this.renderHaabFact(t,r.haab):o} ${r?.longCount?.formatted?s`<span><span class="roxy-label">${this.t("Long Count")}</span><b>${r.longCount.formatted}</b></span>`:o} ${r?.calendarRound?s`<span><span class="roxy-label">${this.t("Calendar Round")}</span><b>${r.calendarRound}</b></span>`:o} ${r?.yearBearer?.daySignName?s`<span><span class="roxy-label">${this.t("Year Bearer")}</span><b>${N(t,r.yearBearer.number)} ${r.yearBearer.daySignName}</b></span>`:o} ${r?.lordOfNight?.label?s`<span><span class="roxy-label">${this.t("Lord of the Night")}</span><b>${r.lordOfNight.label}</b></span>`:o} ${c?s`<span><span class="roxy-label">${this.t("Character of the number")}</span><b class="band">${this.t(c)}</b></span>`:o} ${e.conventions?.correlation?s`<span><span class="roxy-label">${this.t("Correlation")}</span><span title="${e.conventions.correlation}">${j(t,"correlation",e.conventions.correlation,e.conventions.correlation)}</span></span>`:o}</div>${l?.keynote&&!this.hideReadings?s`<p class="keynote" part="reading">${l.keynote}</p>`:o} ${this.renderLists(l)} ${this.renderInterpretation(this.sections(r,l),"mayan-day")} ${this.renderCross(t,r?.cross)} ${r?.summary&&!this.hideReadings?s`<p class="summary" part="reading">${r.summary}</p>`:o}</article>`}renderTrecena(e,t){return t?s`<span><span class="roxy-label">${this.t("Trecena")}</span><b>${N(e,t.number)}</b> ${typeof t.dayOfTrecena=="number"?this.t("Day {{n}} of {{total}}",{n:N(e,t.dayOfTrecena),total:N(e,Fy)}):o} ${t.rulingSignName?s`· <span class="roxy-label">${this.t("Ruling sign")}</span>${t.rulingSignName}`:o}</span>`:o}renderHaabFact(e,t){return t?.monthName?s`<span><span class="roxy-label">${this.t("Haab")}</span><b>${N(e,t.day)} ${t.monthName}</b> ${t.monthClassic?s`(${t.monthClassic})`:o} ${typeof t.dayOfYear=="number"?s`· <span class="roxy-label">${this.t("Day of year")}</span>${N(e,t.dayOfYear)}`:o}</span>`:o}renderLists(e){let t=e?.strengths??[],r=e?.challenges??[];return this.hideReadings||t.length===0&&r.length===0?o:s`<div class="lists" part="section readings">${t.length>0?s`<div><h3 class="block-title">${this.t("Strengths")}</h3><ul class="plain">${t.map(i=>s`<li>${i}</li>`)}</ul></div>`:o} ${r.length>0?s`<div><h3 class="block-title">${this.t("Challenges")}</h3><ul class="plain">${r.map(i=>s`<li>${i}</li>`)}</ul></div>`:o}</div>`}sections(e,t){let r=[];return t?.numberReading&&r.push({label:this.t("Coefficient"),body:t.numberReading}),t?.guidance&&r.push({label:this.t("Guidance"),body:t.guidance}),e?.haab?.reading&&r.push({label:this.t("Haab"),body:e.haab.reading}),e?.lordOfNight?.reading&&r.push({label:this.t("Lord of the Night"),body:e.lordOfNight.reading}),e?.yearBearer?.reading&&r.push({label:this.t("Year Bearer"),body:e.yearBearer.reading}),r}crossLabel(e){let t=Gy[e??""];return t?this.t(t):E(e??"")}renderCross(e,t){let r=t??[];return r.length===0?o:s`<section part="section cross"><h3 class="block-title">${this.t("Mayan cross")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Mayan cross")}"><table class="stacked"><thead><tr><th>${this.t("Position")}</th><th>${this.t("Offset in days")}</th><th>${this.t("Day sign")}</th></tr></thead><tbody>${r.map(i=>s`<tr><td data-label="${this.t("Position")}">${this.crossLabel(i.position)}</td><td class="num" data-label="${this.t("Offset in days")}">${N(e,i.offsetDays)}</td><td data-label="${this.t("Day sign")}">${N(e,i.number)} ${i.daySignName??""} ${i.daySignKiche?s`(${i.daySignKiche})`:o} ${i.reading&&!this.hideReadings?s`<p part="reading">${i.reading}</p>`:o}</td></tr>`)}</tbody></table></div></section>`}};kt.endpoints=bl,kt.styles=[v,H,qe,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.coefficient{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * 2.75);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;flex-shrink:0;line-height:1}.hero>div:not(.coefficient){min-width:0}.title,.block-title,p.roxy-label{margin:0}.title{font-size:var(--roxy-text-xl)}.block-title{margin-block-end:var(--roxy-space-sm)}.spellings{gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-md);margin:calc(var(--roxy-space-unit) / 2) 0 0;color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}span>.roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b{color:var(--roxy-fg)}.keynote,.summary{margin:0;padding-block-start:var(--roxy-space-md)}.summary{color:var(--roxy-secondary);font-size:var(--roxy-text-sm)}.lists{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,28ch),1fr));display:grid}ul.plain{font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-lg)}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td.num{white-space:nowrap}td.num{font-variant-numeric:tabular-nums}td p{margin:calc(var(--roxy-space-unit) / 2) 0 0;color:var(--roxy-secondary);font-size:var(--roxy-text-xs);border-block-start:0}`],y([k({type:String,reflect:true})],kt.prototype,"mode",2),kt=y([L("roxy-mayan-day-sign")],kt);var By=88,Hy=28,St=class extends f{constructor(){super(...arguments);this.mode="current"}renderData(e){let t="phases"in e?e.phases:"calendar"in e?e.calendar:[];if(this.mode!=="current"&&t.length>0){let r=dr(this.effectiveLang(),"year"in e?e.year:void 0,"month"in e?e.month:void 0);return s`<article class="card" part="card" aria-label="${this.t("Moon phase calendar")}"><h2 class="label" part="header">${r||this.t("Moon phase calendar")}</h2><div part="table" role="list">${t.map(i=>this.renderListItem(i))}</div></article>`}return"phase"in e?this.renderSingle(e):o}renderSingle(e){let t=e.meaning?.energy,r=t==="waxing"||t==="waning"?t==="waxing":typeof e.age=="number"?e.age<mr/2:si(e.date);return s`<article class="card" part="card" aria-label="${this.t("Current moon phase")}"><div class="hero" part="header">${typeof e.illumination=="number"&&r!==void 0?Ge(this,{illumination:e.illumination,waxing:r},By):o}<div><h2 class="label">${e.phase??this.t("Current moon phase")}</h2>${e.date?s`<p class="roxy-label">${A(this.effectiveLang(),e.date)}</p>`:o}</div></div><div class="stats" part="details">${typeof e.illumination=="number"?s`<div><span class="roxy-label">${this.t("Illumination")}</span> <strong>${te(this.effectiveLang(),e.illumination,0)}</strong></div>`:o} ${typeof e.age=="number"?s`<div><span class="roxy-label">${this.t("Age")}</span> <strong>${this.t("{{count}} days",{count:$(this.effectiveLang(),e.age,1)})}</strong></div>`:o} ${e.sign?s`<div><span class="roxy-label">${this.t("Sign")}</span> <strong>${e.sign}</strong></div>`:o} ${typeof e.distance=="number"?s`<div><span class="roxy-label">${this.t("Distance")}</span> <strong>${this.t("{{value}}k km",{value:$(this.effectiveLang(),e.distance/1e3,0)})}</strong></div>`:o}</div>${e.meaning?.description&&!this.hideReadings?s`<p>${e.meaning.description}</p>`:o} ${e.meaning?.keywords?.length&&!this.hideReadings?s`<ul class="roxy-chips">${e.meaning.keywords.map(i=>s`<li>${i}</li>`)}</ul>`:o}</article>`}renderListItem(e){let t=si(e.date),r="illumination"in e&&t!==void 0?{illumination:e.illumination,waxing:t}:_c(e.date);return s`<div class="list-item" role="listitem">${r?Ge(this,r,Hy):s`<span></span>`} <span>${e.phase}</span> <span>${A(this.effectiveLang(),e.date)}</span> ${"sign"in e?this.renderSign(e.sign):o}</div>`}renderSign(e){let t=z(e);return t?s`<span class="roxy-glyph" role="img" lang="en" aria-label="${e}">${t}</span>`:s`<span lang="en">${e}</span>`}};St.endpoints=vl,St.styles=[v,Ft,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.label{text-transform:capitalize}.stats{gap:var(--roxy-space-md);font-size:var(--roxy-text-sm);grid-template-columns:repeat(auto-fit,minmax(min(100%,14ch),1fr));display:grid}.stats .roxy-label{display:block}.stats strong{font-variant-numeric:tabular-nums}.list-item{align-items:center;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);grid-template-columns:auto minmax(0,1fr);grid-auto-columns:auto;grid-auto-flow:column;display:grid}.list-item:last-child{border-block-end:0}`],y([k({type:String,reflect:true})],St.prototype,"mode",2),St=y([L("roxy-moon-phase")],St);var Ta=class extends f{renderData(a){let e=a.remedies;return s`<article class="wrap" part="card" aria-label="${this.t("Nakshatra {{name}}",{name:a.name})}"><header class="head" part="header"><h2>${a.name}</h2>${typeof a.number=="number"?s`<span class="number">${this.t("Nakshatra {{number}} of 27",{number:a.number})}</span>`:o} ${a.range?s`<span class="range">${a.range}</span>`:o}</header><dl class="roxy-facts" part="details">${a.lord?s`<div><dt>${this.t("Lord")}</dt><dd>${a.lord}</dd></div>`:o} ${a.deity?s`<div><dt>${this.t("Deity")}</dt><dd>${a.deity}</dd></div>`:o} ${a.symbol?s`<div><dt>${this.t("Symbol")}</dt><dd>${a.symbol}</dd></div>`:o}</dl>${a.characteristics&&!this.hideReadings?s`<div class="section" part="section characteristics"><h3>${this.t("Characteristics")}</h3><p>${a.characteristics}</p></div>`:o} ${e&&!this.hideReadings?s`<div class="section" part="section remedies"><h3>${this.t("Remedies")}</h3><div class="remedies">${e.mantras?s`<div class="remedy"><strong>${this.t("Mantras:")}</strong> ${e.mantras}</div>`:o} ${e.gemstones?s`<div class="remedy"><strong>${this.t("Gemstones:")}</strong> ${e.gemstones}</div>`:o} ${e.rituals?s`<div class="remedy"><strong>${this.t("Rituals:")}</strong> ${e.rituals}</div>`:o}</div></div>`:o}</article>`}};Ta.endpoints=Ll,Ta.styles=[v,J,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}h2,h3,p{margin:0}.number{color:var(--roxy-accent-ink);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.range{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.roxy-facts{margin:0}.section h3{margin-block-end:var(--roxy-space-xs)}.section p,.remedy{font-size:var(--roxy-text-sm)}.remedies{gap:var(--roxy-space-xs);display:grid}.remedy strong{color:var(--roxy-secondary)}`],Ta=y([L("roxy-nakshatra-card")],Ta);var Ea=class extends f{rows(){let a=this.data;if(!a)return[];let e=(a.planets??[]).map(r=>({name:r.name,label:x(r,"name"),sign:r.sign,signLabel:x(r,"sign"),longitude:r.longitude,latitude:r.latitude,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,dignity:r.dignity})),t=[["Ascendant",a.ascendant],["Midheaven",a.midheaven],["Part of Fortune",a.partOfFortune],["Vertex",a.vertex]];for(let[r,i]of t)i&&e.push({name:r,label:this.t(r),sign:i.sign,signLabel:x(i,"sign"),longitude:i.longitude,house:"house"in i?i.house:void 0,sect:"sect"in i?i.sect:void 0,isPoint:true});return e}renderData(a){if(!a.planets)return this.renderEmpty();let e=this.rows(),t=a.birthDetails,r=e.some(c=>Number.isFinite(c.latitude)),i=e.some(c=>c.sect),l=["latitude","longitude","timezone"];return s`<div class="wrap" part="card"><header part="header"><h2>${this.t("Planetary positions")}</h2>${t?s`<div part="details"><p class="roxy-label">${Y(this.effectiveLang(),t.date,t.time,true)}</p><dl class="roxy-facts">${l.map(c=>s`<div><dt>${X(this.effectiveLang(),c)}</dt><dd>${$(this.effectiveLang(),t[c],5)}</dd></div>`)}</dl></div>`:o}</header><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Western planetary positions")}"><table part="table"><caption class="roxy-sr-only">${this.t("Western planetary positions: each body with its sign, degree, house, essential dignity and motion. The dignity cell is blank for the lunar nodes, Chiron and Lilith, which rule no sign and therefore hold no dignity at all.")}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Longitude")}</th>${r?s`<th scope="col">${X(this.effectiveLang(),"latitude")}</th>`:o}<th scope="col">${this.t("House")}</th><th scope="col">${this.t("Dignity")}</th><th scope="col">${this.t("Motion")}</th>${i?s`<th scope="col">${this.t("Sect")}</th>`:o}</tr></thead><tbody>${e.map(c=>{let d=C(c.name)??"",p=c.sect==="day"?this.t("Daytime"):c.sect==="night"?this.t("Night"):"",h=z(c.sign)??"",m=typeof c.speed=="number"?$(this.effectiveLang(),c.speed,6):"";return s`<tr class="${c.isPoint?"point":""}"><td class="body">${d?s`<span class="glyph roxy-glyph">${d}</span>`:o}${c.label}</td><td>${h?s`<span class="glyph roxy-glyph">${h}</span>`:o}${c.signLabel??""}</td><td>${typeof c.longitude=="number"?ye(c.longitude,c.signLabel):""}</td><td>${typeof c.longitude=="number"?`${$(this.effectiveLang(),c.longitude,5)}\xB0`:o}</td>${r?s`<td>${typeof c.latitude=="number"?`${$(this.effectiveLang(),c.latitude,5)}\xB0`:o}</td>`:o}<td>${typeof c.house=="number"?c.house:""}</td><td class="dignity">${c.dignity?D(c.dignity):""}</td><td>${m?s`${m}${this.t("\xB0/day")}`:o} ${c.isRetrograde?s`<span class="retro roxy-glyph">${ae}</span>`:o}</td>${i?s`<td>${p}</td>`:o}</tr>`})}</tbody></table></div>${a.houses?.length?s`<details part="section houses"><summary>${this.t("Houses")}</summary><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Houses")}"><table part="table"><thead><tr><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Longitude")}</th></tr></thead><tbody>${a.houses.map(c=>s`<tr><th scope="row">${$(this.effectiveLang(),c.number,0)}</th><td>${x(c,"sign")}</td><td>${ye(c.longitude,x(c,"sign"))}</td><td>${$(this.effectiveLang(),c.longitude,5)}°</td></tr>`)}</tbody></table></div></details>`:o}</div>`}};Ea.endpoints=jl,Ea.styles=[v,J,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}h2{overflow-wrap:anywhere}.scroll{min-width:0;overflow-x:auto}table{width:100%}:is(th,td){white-space:nowrap}tr:not(.point)+tr.point>*{border-block-start:1px solid var(--roxy-secondary)}td.body{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.retro{color:var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold)}details>summary{font-weight:var(--roxy-weight-bold)}details>.scroll{margin-block-start:var(--roxy-space-sm)}`],Ea=y([L("roxy-western-planets-table")],Ea);var Ki=540,G=Ki/2,$r=220,Vi=202,qr=174,Vr=144,jy=232,Ui=249,Yr={glyph:14,degree:7},Ky=.95,Uy=28,Vy=13,Ln=84;function qi(n){return(n.houses??[]).length===12}function qy(n){let a=n.midheaven?.longitude;return typeof a=="number"?a:null}function Me(n,a){return 180+n.ascendant-a}function kp(n,a={}){let e={data:n,t:Ve(a.lang),locale:a.lang,size:a.typeSize??Yr,ascendant:n.ascendant?.longitude??0,hasCusps:qi(n)},t=n.planets??[];return T`<svg class="natal-wheel" xmlns=${Ue} viewBox=${`0 0 ${Ki} ${Ki}`} part="chart" role="img" aria-label=${e.hasCusps?e.t("Natal chart wheel with twelve houses, planets, and aspects"):e.t("Natal chart wheel with planets and aspects, houses shown as equal sectors from the Ascendant")}><title>${e.t("Natal chart wheel")}</title><desc>${e.t("Twelve zodiac sign segments around a circular wheel. Planet glyphs are placed at their ecliptic longitudes. Aspect lines connect related planets.")}</desc>
|
|
107
107
|
<circle class="wheel-line" cx=${G} cy=${G} r=${$r} stroke-width="1.5" />
|
|
108
|
-
<circle class="wheel-line" cx=${G} cy=${G} r=${
|
|
109
|
-
<circle class="wheel-line" cx=${G} cy=${G} r=${
|
|
110
|
-
<circle class="wheel-line" cx=${G} cy=${G} r=${
|
|
111
|
-
${
|
|
112
|
-
${
|
|
113
|
-
${
|
|
114
|
-
${
|
|
115
|
-
</svg>`.markup}function
|
|
108
|
+
<circle class="wheel-line" cx=${G} cy=${G} r=${Vi-14} stroke-width="0.8" />
|
|
109
|
+
<circle class="wheel-line" cx=${G} cy=${G} r=${qr} stroke-width="1" />
|
|
110
|
+
<circle class="wheel-line" cx=${G} cy=${G} r=${Ln} stroke-width="0.5" />
|
|
111
|
+
${Qy(e)} ${Zy(e)} ${Xy(e)}
|
|
112
|
+
${Jy(e)} ${eu(e)}
|
|
113
|
+
${au(e,t,n.aspects??[])} ${tu(e,t)}
|
|
114
|
+
${Yy(e)}
|
|
115
|
+
</svg>`.markup}function Yy(n){let a=n.ascendant,e=qy(n.data),t=[{longitude:a,label:n.t("ASC")},{longitude:Fr(a),label:n.t("DSC")}];e!==null&&(t.push({longitude:e,label:n.t("MC")}),t.push({longitude:Fr(e),label:n.t("IC")}));let r=n.data?.partOfFortune?.longitude;typeof r=="number"&&t.push({longitude:Ee(r),label:n.t("PoF")});let i=n.data?.vertex?.longitude;return typeof i=="number"&&t.push({longitude:Ee(i),label:n.t("Vtx")}),ze(t,l=>l.longitude,Pe(Uy,Ui)).map(({item:l,longitude:c,displayLongitude:d})=>Wy(n,c,d,l.label))}function Wy(n,a,e,t){let r=Me(n,a),i=Me(n,e),l=P(G,G,$r,r),c=P(G,G,jy,r),d=P(G,G,Ui,i),p=Math.abs(e-a)>.5,h=P(G,G,Ui-8,i);return T`
|
|
116
116
|
<g>
|
|
117
117
|
<line class="angle-tick" x1=${l.x} y1=${l.y} x2=${c.x} y2=${c.y} />
|
|
118
118
|
${p?T`<line class="angle-tick" x1=${c.x} y1=${c.y} x2=${h.x} y2=${h.y} />`:""}
|
|
119
119
|
<text class="angle-marker" x=${d.x} y=${d.y} text-anchor="middle" dominant-baseline="central">${t}</text>
|
|
120
120
|
</g>
|
|
121
|
-
`}function
|
|
122
|
-
${
|
|
123
|
-
<text class="planet-glyph roxy-glyph" x=${le.x} y=${le.y} text-anchor="middle" dominant-baseline="central"><title>${
|
|
124
|
-
<text class="planet-deg" x=${Le.x} y=${Le.y} text-anchor="middle" dominant-baseline="central">${
|
|
125
|
-
</g>`})}function eu(n,a,e){let t=new Map;for(let r of a){if(typeof r.longitude!="number")continue;let i=xe(r.name);i&&t.set(i,r.longitude)}return e.filter(ot).map(r=>{let i=t.get(xe(r.planet1)),l=t.get(xe(r.planet2));if(i===void 0||l===void 0)return"";let c=P(G,G,bn-2,_e(n,i)),d=P(G,G,bn-2,_e(n,l)),p=we(r),{locale:h}=n,m=$(h,r.orb,1);return T`<line class=${`aspect ${de(r)}`} style=${fr(r)} x1=${c.x} y1=${c.y} x2=${d.x} y2=${d.y}><title>${x(r,"planet1")} ${x(r,"type",p)} ${x(r,"planet2")}${m?` (${n.t("Orb")} ${m}\xB0)`:""}</title></line>`})}var Aa=class{constructor(a,e){this.host=a,this.marks=e,this.size=Object.fromEntries(Object.keys(e).map(t=>[t,e[t][1]])),a.addController(this)}hostConnected(){typeof ResizeObserver>"u"||(this.observer=new ResizeObserver(()=>this.host.requestUpdate()),this.observer.observe(this.host))}hostDisconnected(){this.observer?.disconnect(),this.observer=void 0}hostUpdated(){let a=false;for(let e of Object.keys(this.marks)){let[t]=this.marks[e],r=tu(this.host.renderRoot,t,this.size[e]);r!==this.size[e]&&(this.size[e]=r,a=true)}a&&this.host.requestUpdate()}};function tu(n,a,e){let t=n?.querySelector(a);if(!t||typeof getComputedStyle!="function")return e;let r=Number.parseFloat(getComputedStyle(t).fontSize);return Number.isFinite(r)&&r>0?r:e}var wp={GRAND_CROSS:0,GRAND_TRINE:1,KITE:2,T_SQUARE:3,YOD:4,MYSTIC_RECTANGLE:5,STELLIUM:6},Qe=class extends f{constructor(){super(...arguments);this.viewport=new ne(this);this.heading="Natal chart";this.view="wheel";this.type=new Aa(this,{glyph:[".planet-glyph",qr.glyph],degree:[".planet-deg",qr.degree]})}getPlanets(){return this.data?.planets??[]}renderData(e){let t=this.getPlanets(),r=e.aspects??[],i=this.view;return s`<div class="wrap" part="card"><header part="header"><h2>${this.t(this.heading)}</h2>${e.birthDetails?s`<p class="roxy-label">${Y(this.effectiveLang(),e.birthDetails.date,e.birthDetails.time)}</p>`:o}</header>${r.length>0?s`${ue({items:[{id:"wheel",label:this.t("Wheel")},{id:"grid",label:this.t("Aspect grid")}],active:i,onSelect:l=>{this.view=l},label:this.t("Natal chart views"),idPrefix:"natal",controls:true})}<div id="natal-panel-${i}" part="panel" role="tabpanel" aria-labelledby="natal-tab-${i}">${i==="wheel"?this.renderWheel(e):this.renderAspectGrid(t,r)}</div>`:this.renderWheel(e)}<div class="legend" part="legend"><span>${this.t("{{label}}: {{value}}",{label:this.t("Positions"),value:$(this.effectiveLang(),t.length,0)})}</span> ${r.length>0?s`<span>${this.t("{{count}} aspects",{count:i==="grid"?r.length:r.filter(ot).length})}</span>`:o} ${Ui(e)&&e.houseSystem?s`<span>${this.t("{{label}}: {{value}}",{label:X(this.effectiveLang(),"houseSystem"),value:j(this.effectiveLang(),"houseSystem",e.houseSystem)})}</span>`:s`<span class="caveat">${this.t("Equal sectors from the Ascendant, no house cusps in this response")}</span>`} ${r.length>0?s`<span><span class="aspect-swatch aspect-trine"></span>${this.t("Harmonious aspects")}</span> <span><span class="aspect-swatch aspect-square"></span>${this.t("Challenging aspects")}</span>`:o}</div>${this.renderPositionDetails(e)} ${this.renderDetails()} ${this.renderPatterns()} ${this.renderAspectDetails(r)} ${this.renderInterpretations()}</div>`}renderWheel(e){return this.viewport.renderChartViewport(ke($p(e,{lang:this.effectiveLang(),typeSize:this.type.size})),this.t(this.heading),this.translator)}renderAspectGrid(e,t){let r=e.map(c=>({name:c.name,label:x(c,"name")})),i=(c,d)=>[xe(c),xe(d)].sort().join("|"),l=new Map;for(let c of t)l.set(i(c.planet1,c.planet2),c);return r.length===0?s`<p class="roxy-empty" role="status">${this.t("No planets to grid")}</p>`:s`<div class="scroll" part="section aspects table aspect-grid" tabindex="0" role="region" aria-label="${this.t("Aspect grid")}"><table class="aspect-grid"><caption class="roxy-sr-only">${this.t("Planet by planet aspect grid: the aspect each pair of planets forms, read from the planet naming the row across to the planet naming the column.")}</caption><thead><tr><td></td>${r.slice(0,-1).map(c=>{let d=C(c.name)??c.label;return s`<th scope="col" class="roxy-glyph" title="${c.label}">${d}</th>`})}</tr></thead><tbody>${r.slice(1).map((c,d)=>{let p=C(c.name)??c.label;return s`<tr><th scope="row" class="roxy-glyph" title="${c.label}">${p}</th>${r.slice(0,d+1).map(h=>{let m=l.get(i(c.name,h.name));if(!m)return s`<td></td>`;let g=we(m),b=ur(g)??x(m,"type",se(m)),w=$(this.effectiveLang(),m.orb,1);return s`<td class="${`cell ${de(m)}`}" title="${`${c.label} ${x(m,"type",g)} ${h.label}${w?` (${this.t("Orb")} ${w}\xB0)`:""}`}"><span class="asp roxy-glyph">${b}</span></td>`})} ${r.slice(d+1,-1).map(()=>s`<td></td>`)}</tr>`})}</tbody></table></div>`}renderPositionDetails(e){return s`<details class="block" part="section positions"><summary>${this.t("Chart details")}</summary><roxy-western-planets-table bare lang="${U(this.effectiveLang())}" exportparts="card, header, table, details, section, houses" .data="${e}"></roxy-western-planets-table></details>`}renderDetails(){let e=this.data?.summary,t=this.data?.aspectsInterpretation;if(!e&&!t)return o;let r=Ts(e,"retrogradePlanets");return s`<div class="facts" part="details">${e?.dominantElement||e?.dominantModality?s`<ul class="roxy-chips">${e.dominantElement?s`<li>${this.t("{{label}}: {{value}}",{label:this.t("Dominant element"),value:x(e,"dominantElement")})}</li>`:o} ${e.dominantModality?s`<li>${this.t("{{label}}: {{value}}",{label:this.t("Dominant modality"),value:x(e,"dominantModality")})}</li>`:o}</ul>`:o} ${t?s`<p class="counts"><span class="harmonious">${this.t("Harmonious: {{count}}",{count:t.harmonious})}</span> <span class="challenging">${this.t("Challenging: {{count}}",{count:t.challenging})}</span> <span>${this.t("Neutral: {{count}}",{count:t.neutral})}</span></p>`:o} ${r.length>0?s`<ul class="roxy-chips">${r.map(({value:i,label:l})=>{let c=C(i);return s`<li>${ce(c)} ${l} <span class="roxy-glyph">${ae}</span></li>`})}</ul>`:o} ${t?.summary&&!this.hideReadings?s`<p>${t.summary}</p>`:o} ${this.renderElementModalityGrid()}</div>`}renderElementModalityGrid(){let e=this.getPlanets();if(e.length===0)return o;let t=["Fire","Earth","Air","Water"],r=["Cardinal","Fixed","Mutable"],i={Fire:this.t("Fire"),Earth:this.t("Earth"),Air:this.t("Air"),Water:this.t("Water")},l={Cardinal:{abbr:this.t("Car"),full:this.t("Cardinal")},Fixed:{abbr:this.t("Fix"),full:this.t("Fixed")},Mutable:{abbr:this.t("Mut"),full:this.t("Mutable")}},c=re,d=this.data?.summary,p={};for(let w of t)p[w]={Cardinal:[],Fixed:[],Mutable:[]};let h=0;for(let w of e){let S=c.indexOf(D(w.sign??""));if(S<0)continue;let R=t[S%4],_=r[S%3],q=C(w.name)??x(w,"name");p[R]?.[_]?.push(q),h++}if(h===0)return o;let m=w=>t.reduce((S,R)=>S+(p[R]?.[w]?.length??0),0),g=[...Object.entries(d?.elementDistribution??{}).map(([w,S])=>({label:i[D(w)]??w,count:S})),...Object.entries(d?.modalityDistribution??{}).map(([w,S])=>({label:l[D(w)]?.full??w,count:S}))],b=Object.values(d?.elementDistribution??{}).reduce((w,S)=>w+S,0);return s`${g.length?s`<section class="block distribution" part="section distribution"><h3>${this.t("Element and modality distribution")}</h3><p class="counts"><span class="roxy-label">${this.t("{{count}} planets",{count:b})}</span> ${g.map(({label:w,count:S})=>s`<span>${this.t("{{label}}: {{value}}",{label:w,value:$(this.effectiveLang(),S,0)})}</span>`)}</p></section>`:o}<div class="scroll" tabindex="0" role="region" aria-label="${this.t("Element and modality distribution")}"><table class="em-grid" part="table element-modality" aria-label="${this.t("Element and modality distribution")}"><caption class="roxy-label">${this.t("All {{count}} bodies in the chart, placed by sign",{count:h})}</caption><thead><tr><td></td>${r.map(w=>s`<th scope="col" title="${l[w]?.full??w}">${l[w]?.abbr??w}</th>`)}<th scope="col">${this.t("Total")}</th></tr></thead><tbody>${t.map(w=>{let S=r.reduce((R,_)=>R+(p[w]?.[_]?.length??0),0);return s`<tr><th scope="row">${i[w]??w}</th>${r.map(R=>s`<td class="roxy-glyph">${(p[w]?.[R]??[]).join(" ")}</td>`)}<td class="em-total">${S}</td></tr>`})}<tr><th scope="row">${this.t("Total")}</th>${r.map(w=>s`<td class="em-total">${m(w)}</td>`)}<td class="em-total">${h}</td></tr></tbody></table></div>`}renderPatterns(){let e=this.data?.patterns??[];if(e.length===0)return o;let t=[...e].sort((r,i)=>(wp[r.kind]??9)-(wp[i.kind]??9)||(i.tightness??0)-(r.tightness??0));return s`<section class="block patterns" part="section patterns"><h3>${this.t("Chart patterns")}</h3>${t.map(r=>this.renderPattern(r))}</section>`}renderPattern(e){let t=e.planets??[],r=e.apex?[...t].sort((i,l)=>+(l===e.apex)-+(i===e.apex)):t;return s`<div class="pattern" part="pattern"><div class="pattern-head"><span class="pattern-name">${e.name}</span> ${e.element?s`<span class="roxy-chip">${e.element}</span>`:o} ${e.modality?s`<span class="roxy-chip">${e.modality}</span>`:o} ${e.dissociate?s`<span class="roxy-chip" title="${this.t("Out of sign: one or more planets sit outside the pattern element or modality, so the theme holds but runs weaker.")}">${this.t("Dissociate")}</span>`:o} ${typeof e.tightness=="number"?s`<span class="pattern-tight roxy-label">${this.t("{{percent}} tight",{percent:te(this.effectiveLang(),e.tightness,0)})}</span>`:o}</div><ul class="roxy-chips">${r.map(i=>{let l=C(i),c=!!e.apex&&i===e.apex;return s`<li class="${c?"roxy-chip apex":"roxy-chip"}">${l?s`<span class="roxy-glyph" aria-hidden="true">${l}</span>`:o}${i}${c?s`<span>${this.t("apex")}</span>`:o}</li>`})}</ul>${e.interpretation&&!this.hideReadings?s`<p class="pattern-interp">${e.interpretation}</p>`:o}</div>`}renderAspectDetails(e){return e.length===0?o:s`<details class="block" part="section aspects"><summary>${this.t("Aspects ({{count}})",{count:e.length})}</summary><roxy-aspects-table bare hide-sections="header" lang="${U(this.effectiveLang())}" ?hide-readings="${this.hideReadings}" exportparts="card, header, section, aspects, details, reading, readings, pattern, patterns, strongest" .data="${{aspects:e}}"></roxy-aspects-table></details>`}renderInterpretations(){let e=this.getPlanets().filter(t=>t.interpretation).map(t=>{let r=t.interpretation,i=C(t.name)??"",l=x(t,"name"),c=r.summary||r.detailed||"",d=r.summary?r.detailed:void 0;return{glyph:i,label:l,aside:`${x(t,"sign")} ${Ne(t.longitude)}`,body:c,extra:s`${d?s`<p>${d}</p>`:o} ${rt(r.keywords)}`}});return this.renderInterpretation(e,"natal-planet-readings","Planet readings")}};Qe.endpoints=vl,Qe.styles=[v,pe,xr,ge,O,H,zc,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}h2{overflow-wrap:anywhere}details.block>summary{font-weight:var(--roxy-weight-bold)}svg:where([part~=chart]){width:100%;max-width:var(--roxy-chart-max-width,42.5rem);aspect-ratio:1;height:auto;margin:0 auto;display:block}.legend,.counts{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-xs);color:var(--roxy-muted);flex-wrap:wrap;display:flex}.counts{font-size:var(--roxy-text-sm);color:var(--roxy-fg)}.legend .caveat{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.harmonious{color:var(--roxy-info-fg)}.challenging{color:var(--roxy-danger-fg)}.scroll{min-width:0;overflow-x:auto}.aspect-grid{margin:0 auto}.aspect-grid :is(th,td){inline-size:var(--roxy-space-lg);block-size:var(--roxy-space-lg);text-align:center;vertical-align:middle;border:1px solid var(--roxy-border);padding:0}.aspect-grid .asp{color:var(--_aspect-ink,var(--roxy-muted))}.facts,.distribution,.patterns{gap:var(--roxy-space-sm);display:grid}.em-grid{width:100%}.em-grid caption{caption-side:top;text-align:start}.em-grid :is(th,td){text-align:center}.em-grid th[scope=row]{text-align:start}.em-grid td{color:var(--roxy-accent-ink)}.em-grid .em-total{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.pattern{gap:var(--roxy-space-xs);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);display:grid}.pattern-head{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.pattern-name{font-weight:var(--roxy-weight-bold)}.pattern-tight{font-variant-numeric:tabular-nums;margin-inline-start:auto}.roxy-chip.apex{color:var(--roxy-fg);border-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}.pattern-interp{font-size:var(--roxy-text-sm)}`],y([k({type:String})],Qe.prototype,"heading",2),y([I()],Qe.prototype,"view",2),Qe=y([L("roxy-natal-chart")],Qe);var au=new Set([11,22,33]),ru=[["career","Career"],["relationships","Relationships"],["spirituality","Spirituality"]],Rt=class extends f{constructor(){super(...arguments);this.type="life-path"}renderData(e){let t=this.t(su[this.type]??this.type);return"coreNumbers"in e?this.renderChart(e,t):"personalDay"in e?this.renderPersonalDay(e,t):"personalMonth"in e?this.renderPersonalMonth(e,t):"personalYear"in e?this.renderPersonalYear(e,t):"dailyMessage"in e?this.renderDailyNumber(e,t):this.renderNumberCard(e,t)}renderNumberCard(e,t){let r=!this.hideReadings;return s`<article class="card" part="card" aria-label="${t}">${this.renderHero(t,e.number,e.meaning?.title,vn(e.number,e.type))} ${e.meaning?.description&&r?s`<p>${e.meaning.description}</p>`:o} ${e.calculation?s`<pre class="calc" part="calculation">${e.calculation}</pre>`:o} ${e.hasKarmicDebt&&e.karmicDebtNumber?s`<div class="karmic" part="section karmic-debt"><strong>${this.t("Karmic debt")} ${e.karmicDebtNumber}.</strong> ${r?nu(e.karmicDebtMeaning):""}</div>`:o} ${this.renderReading(e.meaning,"numerology-guidance")}</article>`}renderDailyNumber(e,t){let r=!this.hideReadings;return s`<article class="card" part="card" aria-label="${t}">${this.renderHero(t,e.number,e.meaning?.title,vn(e.number,e.type))} ${e.dailyMessage&&r?s`<p>${e.dailyMessage}</p>`:o} ${e.meaning?.description&&r?s`<p>${e.meaning.description}</p>`:o} ${this.renderReading(e.meaning,"numerology-daily-guidance")}</article>`}renderPersonalDay(e,t){return s`<article class="card" part="card" aria-label="${t}">${this.renderHero(t,e.personalDay,e.theme)} ${e.guidance&&!this.hideReadings?s`<p>${e.guidance}</p>`:o}<dl class="roxy-facts" part="details">${this.attr(this.t("Date"),A(this.effectiveLang(),e.targetDate))} ${this.attr(this.t("Personal month"),Vi(e.personalMonth,e.personalMonthTheme))} ${this.attr(this.t("Personal year"),Vi(e.personalYear,e.personalYearTheme))}</dl></article>`}renderPersonalMonth(e,t){return s`<article class="card" part="card" aria-label="${t}">${this.renderHero(t,e.personalMonth,e.theme)} ${e.focus&&!this.hideReadings?s`<p>${e.focus}</p>`:o}<dl class="roxy-facts" part="details">${this.attr(this.t("Calendar month"),e.calendarMonth)} ${this.attr(this.t("Personal year"),Vi(e.personalYear,e.personalYearTheme))}</dl></article>`}renderPersonalYear(e,t){let r=!this.hideReadings;return s`<article class="card" part="card" aria-label="${t}">${this.renderHero(t,e.personalYear,e.theme)} ${e.cycle?s`<p class="roxy-label">${e.cycle}</p>`:o} ${e.forecast&&r?s`<p>${e.forecast}</p>`:o} ${r?this.renderLists(["Opportunities",e.opportunities],["Challenges",e.challenges]):o} ${e.advice&&r?s`<p>${e.advice}</p>`:o}</article>`}renderChart(e,t){let r=Object.entries(e.coreNumbers??{}).filter(([,h])=>h),i=e.additionalInsights,l=e.luckyAssociations,c=e.birthDayProfile,d=e.maturityStatus,p=!this.hideReadings;return s`<article class="card" part="card" aria-label="${t}"><div part="header"><p class="roxy-label">${t}</p>${e.profile?.name?s`<h2>${e.profile.name}</h2>`:o} ${e.profile?.birthdate?s`<p class="roxy-label">${A(this.effectiveLang(),e.profile.birthdate)}</p>`:o}</div>${e.summary&&p?s`<p>${e.summary}</p>`:o} ${r.length>0?s`<div class="cores" part="details cores">${r.map(([h,m])=>s`<div class="item"><div class="core-head"><span class="core-key">${E(h)}</span> <strong>${m.number??""}</strong></div>${m.meaning?.title?s`<span class="core-title">${m.meaning.title}</span>`:o} ${vn(m.number,m.type)?s`<span class="master roxy-chip">${this.t("Master")} ${m.number}</span>`:o}</div>`)}</div>`:o} ${this.renderInterpretation(r.map(([h,m])=>({label:E(h),aside:[m.number!=null?`${m.number}`:"",vn(m.number,m.type)?"master":"",m.hasKarmicDebt&&m.karmicDebtNumber?`karmic debt ${m.karmicDebtNumber}`:""].filter(Boolean).join(" \xB7 "),body:m.meaning?.description??"",extra:this.renderReading(m.meaning,`numerology-core-${h}`)})),"numerology-cores","Core numbers")} ${d?s`<dl class="roxy-facts" part="details maturity">${this.attr(this.t("Maturity"),d.isActive?this.t("Active"):this.t("Not yet active"))} ${this.attr(this.t("Current age"),d.currentAge)} ${this.attr(this.t("Activates"),d.activationRange)}</dl>`:o} ${c?s`<section class="sub" part="section birth-day-profile"><h3>${this.t("Birth day profile")}</h3>${c.title?s`<h4>${[c.day?this.t("Day {{day}}",{day:c.day}):"",c.title].filter(Boolean).join(" \xB7 ")}</h4>`:o} ${c.description&&p?s`<p>${c.description}</p>`:o} ${this.renderReading(c,"numerology-birth-day-profile")}</section>`:o} ${i?this.renderInsights(i):o} ${l?s`<section class="sub" part="section lucky-associations"><h3>${this.t("Lucky associations")}</h3><dl class="roxy-facts">${this.attr(this.t("Day"),l.day)} ${this.attr(this.t("Element"),l.element)} ${this.attr(this.t("Ruling planet"),l.rulingPlanet)} ${this.attr(this.t("Colors"),l.colors?.join(", "))} ${this.attr(this.t("Gemstones"),l.gemstones?.join(", "))} ${this.attr(this.t("Compatible"),l.compatibleNumbers?.join(", "))} ${this.attr(this.t("Incompatible"),l.incompatibleNumbers?.join(", "))}</dl></section>`:o}</article>`}renderInsights(e){let t=e.karmicLessons,r=e.karmicDebt,i=e.personalYear,l=e.hiddenPassion,c=e.subconsciousSelf,d=e.nameLetters,p=Object.entries(t?.presentNumbers??{}),h=!this.hideReadings;return s`${t?s`<section class="sub" part="section karmic-lessons"><h3>${this.t("Karmic lessons")}</h3>${t.missingNumbers?.length?s`<ul class="roxy-chips">${t.missingNumbers.map(m=>s`<li>${this.t("Missing")} ${m}</li>`)}</ul>`:s`<p>${this.t("No numbers are missing from the birth name.")}</p>`} ${p.length>0?s`<ul class="roxy-chips">${p.map(([m,g])=>s`<li>${m} x ${g}</li>`)}</ul>`:o} ${this.renderInterpretation((t.lessons??[]).map(m=>({label:m.lesson??`Lesson ${m.number}`,aside:m.number!=null?`${m.number}`:"",body:m.description??"",extra:m.howToOvercome?s`<p><strong>${this.t("How to overcome")}.</strong> ${m.howToOvercome}</p>`:o})),"numerology-karmic-lessons","Lessons")}</section>`:o}${r?.hasKarmicDebt?s`<section class="sub" part="section karmic-debt"><h3>${this.t("Karmic debt")}</h3>${r.debtNumbers?.length?s`<ul class="roxy-chips">${r.debtNumbers.map(m=>s`<li>${this.t("Debt")} ${m}</li>`)}</ul>`:o} ${this.renderInterpretation((r.meanings??[]).map(m=>({label:`${this.t("Karmic debt")} ${m.number}`,body:m.description??"",extra:s`${m.challenge?s`<p><strong>${this.t("Challenge")}.</strong> ${m.challenge}</p>`:o}${m.resolution?s`<p><strong>${this.t("Resolution")}.</strong> ${m.resolution}</p>`:o}`})),"numerology-karmic-debt","Debts")}</section>`:o}${i?s`<section class="sub" part="section personal-year"><h3>${this.t("Personal year")}</h3><h4>${[i.personalYear!=null?`${i.personalYear}`:"",i.theme??"",i.cycle??""].filter(Boolean).join(" \xB7 ")}</h4>${i.forecast&&h?s`<p>${i.forecast}</p>`:o} ${h?this.renderLists(["Opportunities",i.opportunities],["Challenges",i.challenges]):o} ${i.advice&&h?s`<p>${i.advice}</p>`:o} ${i.personalMonth?s`<p><strong>${[i.personalMonth.personalMonth!=null?`${this.t("Personal month")} ${i.personalMonth.personalMonth}`:this.t("Personal month"),i.personalMonth.theme??""].filter(Boolean).join(" \xB7 ")}.</strong> ${h?i.personalMonth.focus??"":""}</p>`:o}</section>`:o}${e.pinnacles?.length&&h?s`<section class="sub" part="section pinnacles"><h3>${this.t("Pinnacles")}</h3>${this.renderInterpretation(e.pinnacles.map(m=>({label:[m.position!=null?`Pinnacle ${m.position}`:"Pinnacle",m.meaning?.title??""].filter(Boolean).join(" \xB7 "),aside:[m.number!=null?`${m.number}`:"",kp(m.startAge,m.endAge)].filter(Boolean).join(" \xB7 "),body:m.meaning?.description??"",extra:this.renderLists(["Opportunities",m.meaning?.opportunities],["Challenges",m.meaning?.challenges])})),"numerology-pinnacles","Life phases")}</section>`:o}${e.challenges?.length&&h?s`<section class="sub" part="section obstacle-periods"><h3>${this.t("Challenges")}</h3>${this.renderInterpretation(e.challenges.map(m=>({label:[m.position!=null?`Challenge ${m.position}`:"Challenge",m.meaning?.title??""].filter(Boolean).join(" \xB7 "),aside:[m.number!=null?`${m.number}`:"",kp(m.startAge,m.endAge)].filter(Boolean).join(" \xB7 "),body:m.meaning?.description??"",extra:s`${m.meaning?.lesson?s`<p><strong>${this.t("Lesson")}.</strong> ${m.meaning.lesson}</p>`:o}${m.meaning?.howToOvercome?s`<p><strong>${this.t("How to overcome")}.</strong> ${m.meaning.howToOvercome}</p>`:o}`})),"numerology-challenges","Obstacle periods")}</section>`:o}${l||c?s`<section class="sub" part="section name-numbers"><h3>${this.t("Name numbers")}</h3>${l?s`<div><h4>${[l.number!=null?this.t("Hidden passion {{number}}",{number:l.number}):this.t("Hidden passion"),l.title??""].filter(Boolean).join(" \xB7 ")}</h4>${l.description&&h?s`<p>${l.description}</p>`:o} ${typeof l.count=="number"?s`<p class="roxy-label">${this.t("Appears {{count}} times in the name",{count:l.count})}</p>`:o}</div>`:o} ${c?s`<div><h4>${[c.number!=null?this.t("Subconscious self {{number}}",{number:c.number}):this.t("Subconscious self"),c.title??""].filter(Boolean).join(" \xB7 ")}</h4>${c.description&&h?s`<p>${c.description}</p>`:o} ${c.uniqueNumbers?.length?s`<p class="roxy-label">${this.t("Numbers present: {{list}}",{list:me(this.effectiveLang(),c.uniqueNumbers.map(String))})}</p>`:o}</div>`:o}</section>`:o}${d&&h?s`<section class="sub" part="section name-letters"><h3>${this.t("Name letters")}</h3>${this.renderInterpretation([{label:this.t("Cornerstone"),aside:qi(d.cornerstone?.letter,d.cornerstone?.number),body:d.cornerstone?.meaning??""},{label:this.t("Capstone"),aside:qi(d.capstone?.letter,d.capstone?.number),body:d.capstone?.meaning??""},{label:this.t("First vowel"),aside:qi(d.firstVowel?.letter),body:d.firstVowel?.meaning??""}],"numerology-name-letters","Letter analysis")}</section>`:o}`}renderHero(e,t,r,i=false){return s`<div class="hero" part="header">${typeof t=="number"?s`<div class="numeral">${t}</div>`:o}<div><p class="roxy-label">${e}</p>${r?s`<h2>${r}</h2>`:o} ${i?s`<span class="master roxy-chip">${this.t("Master number")}</span>`:o}</div></div>`}renderReading(e,t){if(!e||this.hideReadings)return o;let r=ru.map(([i,l])=>({label:l,body:e[i]??""}));return s`${e.keywords?.length?s`<ul class="roxy-chips">${e.keywords.map(i=>s`<li>${i}</li>`)}</ul>`:o}${this.renderLists(["Strengths",e.strengths],["Challenges",e.challenges])}${this.renderInterpretation(r,t,"Guidance")}`}renderLists(...e){let t=e.filter(([,r])=>r&&r.length>0);return t.length===0?o:s`<div class="lists">${t.map(([r,i])=>s`<div><h3>${this.t(r)}</h3><ul>${(i??[]).map(l=>s`<li>${l}</li>`)}</ul></div>`)}</div>`}attr(e,t){return t==null||t===""?o:s`<div><dt>${e}</dt><dd>${t}</dd></div>`}};Rt.endpoints=Ll,Rt.styles=[v,O,J,H,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,h4,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.numeral{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2.5);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;line-height:1}.master{margin-block-start:var(--roxy-space-xs)}.calc{color:var(--roxy-muted);font-family:var(--roxy-font-mono);font-size:var(--roxy-text-xs);white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.cores{gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);grid-template-columns:repeat(auto-fit,minmax(min(100%,16ch),1fr));padding-block-start:var(--roxy-space-md);display:grid}.cores .item{gap:calc(var(--roxy-space-unit) / 2);font-size:var(--roxy-text-sm);display:grid}.cores .item .core-head{align-items:baseline;gap:var(--roxy-space-xs);display:flex}.cores .item .core-key{color:var(--roxy-muted);text-transform:capitalize}.cores .item strong{color:var(--roxy-accent-ink);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.cores .item .core-title{font-size:var(--roxy-text-xs)}.lists{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,28ch),1fr));display:grid}.lists h3{margin-block-end:var(--roxy-space-xs)}.lists ul{gap:var(--roxy-space-xs);font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}.sub{gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md);display:grid}.sub p{font-size:var(--roxy-text-sm)}.roxy-facts{margin:0}.karmic{border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);padding-block-start:var(--roxy-space-md)}.karmic strong{color:var(--roxy-warning-fg);font-weight:var(--roxy-weight-bold)}`],y([k({type:String,reflect:true})],Rt.prototype,"type",2),Rt=y([L("roxy-numerology-card")],Rt);var su={"life-path":"Life Path",expression:"Expression","soul-urge":"Soul Urge",personality:"Personality","birth-day":"Birth Day",maturity:"Maturity",daily:"Daily Number","personal-day":"Personal Day","personal-month":"Personal month","personal-year":"Personal year",chart:"Numerology chart"};function nu(n){return n?[n.description,n.challenge,n.resolution].filter(Boolean).join(" "):""}function vn(n,a){return a==="master"||n!==void 0&&au.has(n)}function Vi(n,a){return[n!=null?`${n}`:"",a??""].filter(Boolean).join(" \xB7 ")}function kp(n,a){return n==null?"":a==null?`ages ${n} onward`:`ages ${n} to ${a}`}function qi(n,a){return[n??"",a!=null?`${a}`:""].filter(Boolean).join(" \xB7 ")}var iu=28;function Yi(...n){return n.filter(Boolean).join(" \xB7 ")}function Wi(...n){return n.filter(Boolean).join(", ")}var Ct=class extends f{constructor(){super(...arguments);this.detail="detailed"}renderData(e){let t="sunrise"in e?e:null,r="sunLongitude"in e?e:null,i=t?[["Brahma Muhurta",t.brahmaMuhurta],["Abhijit Muhurta",t.abhijitMuhurta],["Vijaya Muhurta",t.vijayaMuhurta],["Godhuli Muhurta",t.godhuliMuhurta],["Nishita Muhurta",t.nishitaMuhurta],["Pratah Sandhya",t.pratahSandhya],["Sayahna Sandhya",t.sayahnaSandhya]]:[],l=t?this.expandWindows(this.t("Amrit Kalam"),t.amritKalam):[],c=t?[["Rahu Kaal",t.rahuKaal],["Yamaganda",t.yamaganda],["Gulika",t.gulika]]:[],d=t?[...this.expandWindows(this.t("Dur Muhurta"),t.durMuhurta),...this.expandWindows(this.t("Varjyam"),t.varjyam)]:[],p=this.detail==="detailed"&&t!==null;return s`<div class="wrap" part="card" aria-label="${this.t("Panchang")}"><header class="head" part="header"><h2>${this.t("Panchang")}</h2><span class="roxy-label">${t?A(this.effectiveLang(),t.date):""}</span> ${t?this.renderLocation(t.location):o}</header><table part="table"><tbody>${this.limbs(e,t).map(h=>this.renderLimbRow(h))} ${t?s`${this.renderRow(this.t("Sunrise"),Te(this.effectiveLang(),t.sunrise))} ${this.renderRow(this.t("Sunset"),Te(this.effectiveLang(),t.sunset))} ${this.renderRow(this.t("Moonrise"),Te(this.effectiveLang(),t.moonrise))} ${this.renderRow(this.t("Moonset"),Te(this.effectiveLang(),t.moonset))} ${this.renderRow(this.t("Moon sign"),this.formatRashi(t.moonSign))} ${this.renderRow(this.t("Sun sign"),this.formatRashi(t.sunSign))} ${this.renderRow(this.t("Sun nakshatra"),this.formatSunNakshatra(t.sunNakshatra))} ${this.renderRow(this.t("Hora"),this.formatHora(t.hora))}`:r?s`${this.renderRow(this.t("Sun"),this.formatLongitude(r.sunLongitude))} ${this.renderRow(this.t("Moon"),this.formatLongitude(r.moonLongitude))}`:o}</tbody></table>${t?this.renderTransitions(t.transitions):o} ${p?s`<h3 class="section" part="section auspicious">${this.t("Auspicious muhurtas")}</h3><table part="table auspicious"><tbody>${this.renderPeriodRows([...i.filter(h=>!!h[1]),...l])}</tbody></table><h3 class="section" part="section inauspicious">${this.t("Inauspicious periods")}</h3><table part="table inauspicious"><tbody>${this.renderPeriodRows([...c.filter(h=>!!h[1]),...d])} ${this.renderBhadraRow(t.bhadra)} ${this.renderPanchakaRow(t.panchaka)}</tbody></table>${this.renderBalams(t.chandrabalam,t.tarabalam)}`:o}</div>`}limbs(e,t){let r=e.tithi,i=e.nakshatra,l=e.yoga,c=e.karana,d=[{label:this.t("Tithi"),value:Wi(r?.name,r?.paksha?`${r.paksha} paksha`:void 0),moon:Or(r?.number),meta:Yi(r?.rulingPlanet?`Ruled by ${r.rulingPlanet}`:void 0,r?.deity?`Deity ${r.deity}`:void 0,r?.element,typeof r?.percent=="number"?`${te(this.effectiveLang(),r.percent,0)} elapsed`:void 0)},{label:this.t("Nakshatra"),value:Wi(i?.name,typeof i?.pada=="number"?`pada ${i.pada}`:void 0),meta:Yi(i?.lord?`Lord ${i.lord}`:void 0,i?.deity?`Deity ${i.deity}`:void 0,i?.symbol?`Symbol ${i.symbol}`:void 0,i?.characteristics)},{label:this.t("Yoga"),value:l?.name??"",meta:l?.characteristics??""},{label:this.t("Karana"),value:Wi(c?.name,c?.type),meta:c?.characteristics??""}];return t?.vara&&d.push({label:this.t("Vara"),value:zr(t.vara.name,t.vara.sanskritName),meta:t.vara.lord?`Lord ${t.vara.lord}`:""}),d.filter(p=>!!p.value)}renderLimbRow(e){return s`<tr><th>${e.label}</th><td>${e.moon?Ge(this,e.moon,iu):o}${e.value}${e.meta?s`<small>${e.meta}</small>`:o}</td></tr>`}renderRow(e,t){return t?s`<tr><th>${e}</th><td>${t}</td></tr>`:o}renderTransitions(e){return e?s`<h3 class="section" part="section transitions">${this.t("Next transitions")}</h3><table part="table transitions"><tbody>${this.renderTransitionRow(this.t("Tithi"),e.tithi)} ${this.renderTransitionRow(this.t("Nakshatra"),e.nakshatra)} ${this.renderTransitionRow(this.t("Yoga"),e.yoga)} ${this.renderTransitionRow(this.t("Karana"),e.karana)} ${this.renderMoonSignRow(e.moonSign)}</tbody></table>`:o}renderPeriodRows(e){return e.map(([t,r])=>{let i=Ke(this.effectiveLang(),r);return i?s`<tr><th>${t}</th><td>${i}</td></tr>`:o})}expandWindows(e,t){return!t||t.length===0?[]:t.map((r,i)=>[t.length>1?`${e} ${i+1}`:e,r])}renderBhadraRow(e){if(!e)return o;let t=this.formatSpan(e.startsAt,e.endsAt);return s`<tr><th>${this.t("Bhadra (Vishti)")}</th><td>${e.active&&t?t:s`<span class="quiet">${this.t("None today")}</span>`}</td></tr>`}renderPanchakaRow(e){if(!e)return o;let t=this.formatSpan(e.startsAt,e.endsAt);return s`<tr><th>${this.t("Panchaka")}</th><td>${e.active?s`${e.type?this.t("{{type}} Panchaka",{type:e.type}):this.t("Panchaka")}${t?s`<small>${t}</small>`:o}`:s`<span class="quiet">${this.t("None today")}</span>`}</td></tr>`}renderBalams(e,t){return!e&&!t?o:s`<h3 class="section" part="section balams">${this.t("Chandrabalam and Tarabalam")}</h3><table part="table balams"><tbody>${e?s`<tr><th>${this.t("Favorable Moon signs")}</th><td>${this.renderChips(e.favorableRashis,"success")}</td></tr>${this.renderRow(this.t("Ashtama Chandra rashi"),e.ashtamaChandraRashi??"")}`:o} ${t?s`<tr><th>${this.t("Favorable birth nakshatras")}</th><td>${this.renderChips(t.favorableNakshatras,"success")}</td></tr><tr><th>${this.t("Unfavorable birth nakshatras")}</th><td>${this.renderChips(t.unfavorableNakshatras,"danger")}</td></tr>`:o}</tbody></table>`}renderChips(e,t){return e?.length?s`<ul class="roxy-chips">${e.map(r=>s`<li class="roxy-chip" data-tone="${t}">${r}</li>`)}</ul>`:s`<span class="quiet">${this.t("None")}</span>`}renderLocation(e){return e?s`<dl class="roxy-facts">${["latitude","longitude","timezone"].map(r=>s`<div><dt>${X(this.effectiveLang(),r)}</dt><dd>${$(this.effectiveLang(),e[r],5)}</dd></div>`)}</dl>`:o}clock(e){let t=this.data?.date;return t&&e.slice(0,10)!==t.slice(0,10)?Y(this.effectiveLang(),e):Te(this.effectiveLang(),e)}renderTransitionRow(e,t){if(!t?.endsAt)return o;let r=this.clock(t.endsAt),i=t.next?typeof t.nextPada=="number"?this.t("ends {{time}} to {{next}} pada {{pada}}",{time:r,next:t.next,pada:t.nextPada}):this.t("ends {{time}} to {{next}}",{time:r,next:t.next}):this.t("ends {{time}}",{time:r});return s`<tr><th>${e}</th><td>${i}</td></tr>`}renderMoonSignRow(e){return e?.changesAt?s`<tr><th>${this.t("Moon sign")}</th><td>${e.next?this.t("{{sign}} until {{time}}, then {{next}}",{sign:e.current??"",time:this.clock(e.changesAt),next:e.next}):this.t("{{sign}} until {{time}}",{sign:e.current??"",time:this.clock(e.changesAt)})}</td></tr>`:o}formatSpan(e,t){let r=Ke(this.effectiveLang(),{start:e??void 0,end:t??void 0});return!r||!e||!t||e.slice(0,10)===t.slice(0,10)?r:this.t("{{range}} (ends {{date}})",{range:r,date:A(this.effectiveLang(),t)})}formatRashi(e){return zr(e?.name,e?.sanskritName)}formatSunNakshatra(e){return e?.name?Yi(e.name,typeof e.pada=="number"?`pada ${e.pada}`:void 0,e.lord?`lord ${e.lord}`:void 0):""}formatHora(e){if(!e?.current)return"";let t=Ke(this.effectiveLang(),e);return t?`${e.current} (${t})`:e.current}formatLongitude(e){return typeof e=="number"?ye(e):""}};Ct.endpoints=$l,Ct.styles=[v,J,Ft,u`.wrap{overflow:hidden}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border);flex-wrap:wrap;display:flex}h2,h3{margin:0}.head .roxy-facts{flex-basis:100%;margin:0}table{width:100%}th,td{padding-inline:var(--roxy-space-md)}th{width:38%}tbody tr:last-child :is(th,td){border-block-end:0}td>.moon-mark{margin-inline-end:var(--roxy-space-sm)}td small{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:normal;margin-block-start:calc(var(--roxy-space-unit) / 2);display:block}.section{padding:var(--roxy-space-sm) var(--roxy-space-md);border-block-start:1px solid var(--roxy-border)}.quiet{color:var(--roxy-muted)}.roxy-chips{margin-block-start:var(--roxy-space-xs)}`],y([k({type:String,reflect:true})],Ct.prototype,"detail",2),Ct=y([L("roxy-panchang-table")],Ct);var Tt=class extends f{constructor(){super(...arguments);this.heading=""}renderData(e){let t=this.toViewModel(e),r=t.cols;return s`<div class="wrap" part="card"><header part="header"><h2>${this.heading||t.title}</h2>${t.badges.length?s`<ul class="roxy-chips" part="details">${t.badges.map(i=>s`<li>${this.t("{{label}}: {{value}}",{label:i.label,value:i.value})}</li>`)}</ul>`:o}</header>${t.summary&&!this.hideReadings?s`<p class="summary">${t.summary}</p>`:o}<div class="scroll" part="table" tabindex="0" role="region" aria-label="${t.title}"><table><caption class="roxy-label">${t.title}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Position")}</th>${r.natal?s`<th scope="col">${this.t("Natal")}</th>`:o} ${r.house?s`<th scope="col" class="num">${this.t("House")}</th>`:o} ${r.motion?s`<th scope="col">${this.t("Motion")}</th>`:o} ${r.formula?s`<th scope="col">${this.t("Formula")}</th>`:o}</tr></thead><tbody>${t.rows.map(i=>this.renderRow(i,r))}</tbody></table></div>${this.renderReadings(t.rows)}</div>`}renderRow(e,t){let r=C(e.body??e.label);return s`<tr class="${e.isAngle?"angle":""}"><td class="body-cell">${r?s`<span class="glyph roxy-glyph">${r}</span>`:o}${e.label}</td><td>${this.signCell(e.sign,e.degree,e.signLabel)}</td>${t.natal?s`<td>${e.natalLongitude!=null?this.signFromLongitude(e.natalLongitude):s`—`}</td>`:o} ${t.house?s`<td class="num">${e.house!=null?e.house:s`—`}</td>`:o} ${t.motion?s`<td>${e.speed!=null?s`${$(this.effectiveLang(),e.speed,3)}${this.t("\xB0/day")}${e.isRetrograde?s`<span class="retro roxy-glyph">${ae}</span>`:o}`:s`—`}</td>`:o} ${t.formula?s`<td class="formula">${e.formula??s`—`}</td>`:o}</tr>`}signCell(e,t,r=e){let i=z(e);return s`<span class="sign">${i?s`<span class="sg roxy-glyph">${i}</span>`:o}${Fe(t)} ${r}</span>`}signFromLongitude(e){let t=Me(e);return this.signCell(t.sign,t.degree+t.minute/60)}renderReadings(e){let t=e.filter(r=>r.interpretation).map(r=>({glyph:C(r.body??r.label)??"",label:r.label,aside:`${r.signLabel??r.sign} ${Fe(r.degree)}`.trim(),body:r.interpretation??""}));return this.renderInterpretation(t,"positions-readings","Readings")}toViewModel(e){if("asteroids"in e)return{title:this.t("Asteroids"),badges:e.houseSystem?[{label:this.t("Houses"),value:e.houseSystem}]:[],summary:e.summary,cols:{house:true,motion:true,formula:false,natal:false},rows:e.asteroids.map(r=>({body:r.name,label:x(r,"name"),sign:r.sign,signLabel:x(r,"sign"),degree:r.degree,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,interpretation:r.interpretation}))};if("lilith"in e)return{title:this.t("Black Moon Lilith"),badges:e.houseSystem?[{label:this.t("Houses"),value:e.houseSystem}]:[],summary:e.summary,cols:{house:true,motion:true,formula:false,natal:false},rows:e.lilith.map(r=>({label:this.t("{{variant}} apogee",{variant:x(r,"variant",D(r.variant))}),sign:r.sign,signLabel:x(r,"sign"),degree:r.degree,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,interpretation:r.interpretation}))};if("directed"in e)return{title:this.t("Solar arc directions"),badges:[{label:this.t("Arc"),value:`${$(this.effectiveLang(),e.solarArc,2)}\xB0`},{label:this.t("Directed to"),value:A(this.effectiveLang(),e.targetDate)}],summary:e.summary,cols:{house:false,motion:false,formula:false,natal:true},rows:e.directed.map(r=>({body:r.name,label:x(r,"name"),sign:r.sign,signLabel:x(r,"sign"),degree:r.degree,natalLongitude:r.natalLongitude,interpretation:r.interpretation}))};if("lots"in e)return{title:this.t("Arabic lots"),badges:e.sect?[{label:this.t("Sect"),value:D(e.sect)}]:[],summary:e.summary,cols:{house:false,motion:false,formula:true,natal:false},rows:e.lots.map(r=>({body:r.name,label:x(r,"name"),sign:r.sign,signLabel:x(r,"sign"),degree:r.degree,formula:r.formula,interpretation:r.interpretation}))};let t=[];return e.ascendant&&t.push({label:this.t("Ascendant"),sign:e.ascendant.sign,signLabel:x(e.ascendant,"sign"),degree:e.ascendant.degree,isAngle:true}),e.midheaven&&t.push({label:this.t("Midheaven"),sign:e.midheaven.sign,signLabel:x(e.midheaven,"sign"),degree:e.midheaven.degree,isAngle:true}),{title:this.t("Secondary progressions"),badges:[{label:this.t("Progressed to"),value:A(this.effectiveLang(),e.targetDate)},{label:this.t("Elapsed"),value:this.t("{{years}} yrs",{years:$(this.effectiveLang(),e.elapsedYears,1)})}],summary:e.summary,cols:{house:true,motion:true,formula:false,natal:false},rows:[...t,...e.planets.map(r=>({body:r.name,label:x(r,"name"),sign:r.sign,signLabel:x(r,"sign"),degree:r.degree,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,interpretation:r.interpretation}))]}}};Tt.endpoints=wl,Tt.styles=[v,O,H,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}header{gap:var(--roxy-space-sm);display:grid}.summary{font-size:var(--roxy-text-sm)}.scroll{min-width:0;overflow-x:auto}table{width:100%}caption{caption-side:top;text-align:start;padding-block-end:var(--roxy-space-xs)}:is(th,td){white-space:nowrap}:is(th,td).num{text-align:end}.body-cell{font-weight:var(--roxy-weight-bold)}.body-cell .glyph{color:var(--roxy-accent-ink);margin-inline-end:var(--roxy-space-xs)}tr.angle td{color:var(--roxy-secondary)}.sign{align-items:baseline;gap:var(--roxy-space-xs);display:inline-flex}.sign .sg{color:var(--roxy-secondary)}.retro{color:var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold);margin-inline-start:var(--roxy-space-xs)}.formula{color:var(--roxy-muted);white-space:normal}`],y([k({type:String})],Tt.prototype,"heading",2),Tt=y([L("roxy-positions-table")],Tt);var Da=class extends f{renderData(a){let e=z(a.profectedSign),t=C(a.lordOfYear),r=z(a.lordNatalPosition?.sign);return s`<div class="wrap" part="card"><header part="header"><h2>${this.t("Annual profection")}</h2>${a.targetDate?s`<p class="roxy-label">${this.t("For")} ${A(this.effectiveLang(),a.targetDate)}</p>`:o}</header><div class="focus" part="details"><div class="age"><span class="n">${a.age}</span> <span class="roxy-label">${this.t("Age")}</span></div><span class="arrow">${this.t("Activates")}</span><div class="house"><span class="h">${this.t("House")} ${a.profectedHouse}</span> <span class="sign">${e?s`<span class="sg roxy-glyph">${e}</span>`:o}${a.profectedSign}</span></div></div><div class="lord" part="details"><span class="roxy-label">${this.t("Lord of the year")}</span> <span class="value">${t?s`<span class="sg roxy-glyph" aria-hidden="true">${t}</span>`:o}${a.lordOfYear}</span> ${a.lordNatalPosition?s`<span class="sub">${this.t("Natal")} ${r?s`<span class="sg roxy-glyph" aria-hidden="true">${r}</span>`:o}${this.t("{{sign}} \xB7 house {{house}}",{sign:a.lordNatalPosition.sign,house:a.lordNatalPosition.house})}</span>`:o}</div>${a.interpretation&&!this.hideReadings?s`<p class="interp">${a.interpretation}</p>`:o}</div>`}};Da.endpoints=kl,Da.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}header{gap:var(--roxy-space-xs);display:grid}.focus{align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.age,.house{gap:calc(var(--roxy-space-unit) / 2);display:grid}.age{justify-items:center}.age .n{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xl);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);font-variant-numeric:tabular-nums}.arrow{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.house .h{font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold)}.house .sign{color:var(--roxy-secondary);font-size:var(--roxy-text-sm)}.sg{margin-inline-end:var(--roxy-space-xs)}.lord{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;padding-block-start:var(--roxy-space-sm);display:flex}.lord .value{font-weight:var(--roxy-weight-bold)}.lord .sub{color:var(--roxy-muted)}.interp{font-size:var(--roxy-text-sm)}`],Da=y([L("roxy-profection-card")],Da);var Rp=["name","english","title"],ou=new Set(["description","meaning","characteristics","tagline","definedMeaning","undefinedMeaning","motto"]);function lu(n){let a=e=>typeof e=="string"?e:void 0;return z(a(n.id))??C(a(n.id))??jt(a(n.english))}var cu=new Set(["id","symbol",...Rp]),Sp=48;function du(n){return E(n).toLowerCase().replace(/\s+/g,"-")}function pu(n){return Object.values(hr(n)).filter(a=>typeof a=="string"||typeof a=="number").map(String).join(" \xB7 ")}var Pa=class extends f{renderData(a){let e=hr(a),t=this.deriveTitle(e),r=lu(e),i=typeof e.symbol=="string"&&new RegExp("\\p{L}","u").test(e.symbol)?e.symbol:void 0,l=Array.isArray(e.keywords)?e.keywords.map(String):[],c=[],d=[],p=[],h=(g,b,w)=>{if(b!=null){if(Array.isArray(b)){let S=b.filter(R=>R!=null).map(R=>typeof R=="object"?pu(R):String(R)).filter(R=>R.length>0);S.length>0&&d.push([g,S,S.some(R=>R.length>Sp)])}else if(typeof b=="string")ou.has(g)||b.length>Sp?c.push([g,b]):p.push([g,b]);else if(typeof b=="number"||typeof b=="boolean")p.push([g,String(b)]);else if(typeof b=="object"&&w<2)for(let[S,R]of Object.entries(hr(b)))h(`${g} ${S}`,R,w+1)}};for(let[g,b]of Object.entries(e))cu.has(g)||g==="keywords"&&Array.isArray(b)||h(g,b,0);let m=!this.hideReadings;return s`<article class="card" part="card" aria-label="${t}"><header class="head" part="header">${r?s`<span class="symbol roxy-glyph" aria-hidden="true">${r}</span>`:i?s`<span class="symbol" aria-hidden="true">${i}</span>`:o}<div><p class="roxy-label">${this.t("Reference")}</p><h2>${t}</h2></div></header>${l.length>0&&m?s`<ul class="roxy-chips">${l.map(g=>s`<li>${g}</li>`)}</ul>`:o} ${m?c.map(([g,b])=>s`<p class="prose"><span class="roxy-label">${X(this.effectiveLang(),g)}</span>${b}</p>`):o} ${p.length>0?s`<div part="details"><dl class="roxy-facts">${p.map(([g,b])=>s`<div><dt>${X(this.effectiveLang(),g)}</dt><dd>${b}</dd></div>`)}</dl></div>`:o} ${d.map(([g,b,w])=>w&&!m?o:s`<div class="list" part="section ${du(g)}"><h3>${X(this.effectiveLang(),g)}</h3><ul class="roxy-chips">${b.map(S=>s`<li>${S}</li>`)}</ul></div>`)}</article>`}deriveTitle(a){for(let r of Rp)if(typeof a[r]=="string")return a[r];let e=typeof a.type=="string"?E(a.type):"",t=a.number;return t!=null?`${e} ${t}`.trim():this.t("Reference")}};Pa.endpoints=Sl,Pa.styles=[v,J,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.head{align-items:center;gap:var(--roxy-space-md);display:flex}.symbol{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 1.5);flex:none;line-height:1}.prose .roxy-label{margin-block-end:calc(var(--roxy-space-unit) / 2);display:block}.list h3{margin-block-end:var(--roxy-space-xs)}.roxy-facts{margin:0}`],Pa=y([L("roxy-reference-card")],Pa);var Cp=n=>C(n)??"",_a=class extends f{renderData(a){let e=a.changes,t=["latitude","longitude"];return s`<div class="stack" part="stack"><roxy-natal-chart heading="Relocation chart" lang="${U(this.effectiveLang())}" exportparts="chart-controls, chart-dialog, card, header, tablist, tab, panel, chart, table, aspects, aspect-grid, element-modality, legend, details, section, patterns, pattern, readings, reading, positions, distribution, houses, strongest" ?hide-readings="${this.hideReadings}" .data="${a}"></roxy-natal-chart><section class="changes" part="card changes"><h2>${this.t("What changes at this location")}</h2>${a.relocation?s`<dl class="roxy-facts" part="details">${t.map(r=>s`<div><dt>${X(this.effectiveLang(),r==="latitude"?"relocationLatitude":"relocationLongitude")}</dt><dd>${$(this.effectiveLang(),a.relocation[r],5)}</dd></div>`)}</dl>`:o}<div class="move" part="details">${typeof e?.distanceKm=="number"?s`<span>${Math.round(e.distanceKm)===0?this.t("Same location as birth"):this.t("{{distance}} km {{direction}} of birthplace",{distance:N(this.effectiveLang(),e.distanceKm),direction:e.direction?j(this.effectiveLang(),"direction",D(e.direction),e.direction):""})}</span>`:o} ${e?s`<span>${a.ascendant?.sign?e.ascendantSignChanged?this.t("Ascendant moves to {{sign}}",{sign:x(a.ascendant,"sign")}):this.t("Ascendant stays in {{sign}}",{sign:x(a.ascendant,"sign")}):e.ascendantSignChanged?this.t("Ascendant changes sign"):this.t("Ascendant keeps its sign")}</span>`:o}</div>${a.interpretation?.summary&&!this.hideReadings?s`<p class="summary">${a.interpretation.summary}</p>`:o} ${e?.angularPlanets?.length?s`<section part="section angular-planets"><h3>${this.t("Angular planets here")}</h3><ul class="roxy-chips">${Ts(e,"angularPlanets").map(({value:r,label:i})=>s`<li>${Cp(r)} ${i}</li>`)}</ul></section>`:o}<section part="section house-changes"><h3>${this.t("Planets that change house")}</h3>${e?.planetsChangedHouse?.length?s`<ul class="moves-list">${e.planetsChangedHouse.map(r=>s`<li>${Cp(r.planet)} ${this.t("{{planet}}: house {{from}} to {{to}}",{planet:x(r,"planet"),from:r.natalHouse,to:r.relocatedHouse})}</li>`)}</ul>`:s`<p class="empty-note">${this.t("No planet changes house at this location.")}</p>`}</section></section></div>`}};_a.endpoints=Rl,_a.styles=[v,J,u`.stack{gap:var(--roxy-space-md);display:grid}.changes{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.changes section{gap:var(--roxy-space-xs);display:grid}.move{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.summary,.moves-list{font-size:var(--roxy-text-sm)}.moves-list{gap:calc(var(--roxy-space-unit) / 2);margin:0;padding:0;list-style:none;display:grid}.empty-note{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}`],_a=y([L("roxy-relocation-wheel")],_a);function hu(n,a){let e=atob(n),t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return new Blob([t],{type:a})}var Ln=class{constructor(a,e){this.host=a;this.type=e;this.revokedOnDisconnect=false;a.addController(this)}urlFor(a){return this.url&&this.source===a?this.url:(this.revoke(),this.url=URL.createObjectURL(hu(a,this.type)),this.source=a,this.url)}hostConnected(){this.revokedOnDisconnect&&(this.revokedOnDisconnect=false,this.host.requestUpdate())}hostDisconnected(){this.revokedOnDisconnect=this.url!==void 0,this.revoke()}revoke(){this.url&&URL.revokeObjectURL(this.url),this.url=void 0,this.source=void 0}};var mu=/[\\/:*?"<>|]+/g;function gu(n){switch(n.status){case 400:return"Check the details and try again.";case 403:return n.code==="origin_not_allowed"?"This website is not allowed to use this key.":void 0;case 429:return"Too many requests. Try again shortly.";case 503:return"Busy right now. Try again in a moment.";default:return}}function yu(n){let a=Un(n.color),e=Un(n.accent),t={...n.name?{name:n.name}:{},...n.logo?{logo:n.logo}:{},...n.footer?{footer:n.footer}:{},...a||e?{colors:{...a?{primary:a}:{},...e?{accent:e}:{}}}:{},...gs(n.font)?{font:n.font}:{},...Xl(n.theme)?{theme:n.theme}:{}};return Object.keys(t).length>0?t:void 0}var Ce=class extends f{constructor(){super(...arguments);this.format="pdf";this.pdfUrl=new Ln(this,"application/pdf");this.fitFrame=e=>{let t=e.currentTarget,r=t.contentDocument?.documentElement;if(!r)return;let i=()=>{let l=t.offsetHeight-t.clientHeight;t.style.blockSize=`${Math.ceil(r.getBoundingClientRect().height)+l}px`};i(),this.frameObserver?.disconnect(),this.frameObserver=new ResizeObserver(i),this.frameObserver.observe(r)}}ownRequest(){return{format:this.format==="html"?"html":"pdf",branding:yu({name:this.brandName,logo:this.brandLogo,footer:this.brandFooter,color:this.brandColor,accent:this.brandAccent,font:this.font,theme:this.theme}),readings:this.hideReadings?false:void 0}}disconnectedCallback(){super.disconnectedCallback(),this.frameObserver?.disconnect(),this.frameObserver=void 0}renderData(e){if(e.html)return this.renderDocument(e.html,e.title);if(!e.pdf)return this.renderEmpty();let t=(e.title||this.report||e.template).replace(mu," ");return s`<article class="card" part="card"><h2 part="header">${e.title}</h2><a class="download" part="download" href="${this.pdfUrl.urlFor(e.pdf)}" download="${`${t}.pdf`}">${this.t("Download PDF")}</a></article>`}renderDocument(e,t){return s`<iframe class="document" part="document" title="${t}" sandbox="allow-same-origin" srcdoc="${e}" @load="${this.fitFrame}"></iframe>`}renderLoading(){return s`<div class="busy" role="status" aria-busy="true" part="loading"><span class="roxy-skeleton"></span><p>${this.t("Preparing your report")}</p></div>`}renderError(e){let t=gu(this.failure);return t?s`<p class="lead" role="alert">${this.t(t)}</p>${super.renderError(e)}`:super.renderError(e)}};Ce.endpoints=Cl,Ce.styles=[v,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);justify-items:start;display:grid}h2{margin:0}.download{min-block-size:var(--roxy-touch);padding:var(--roxy-space-sm) var(--roxy-space-lg);background:var(--roxy-accent-ink);color:var(--roxy-bg);border-radius:var(--roxy-radius-md);font-weight:var(--roxy-weight-bold);align-items:center;text-decoration:none;display:inline-flex}.document{border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);background:var(--roxy-surface);inline-size:100%;display:block}.busy{gap:var(--roxy-space-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);display:grid}.busy .roxy-skeleton{block-size:2lh}.busy p,.lead{margin:0}.lead{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold);margin-block-end:var(--roxy-space-sm)}`],y([k({type:String})],Ce.prototype,"report",2),y([k({type:String})],Ce.prototype,"format",2),y([k({type:String,attribute:"brand-name"})],Ce.prototype,"brandName",2),y([k({type:String,attribute:"brand-logo"})],Ce.prototype,"brandLogo",2),y([k({type:String,attribute:"brand-footer"})],Ce.prototype,"brandFooter",2),y([k({type:String})],Ce.prototype,"theme",2),Ce=y([L("roxy-report")],Ce);var Zi=[{key:"sthanaBala",source:"Sthana",color:"var(--roxy-info)"},{key:"digBala",source:"Dig",color:"var(--roxy-success)"},{key:"kalaBala",source:"Kala",color:"var(--roxy-warning)"},{key:"chestaBala",source:"Chesta",color:"var(--roxy-accent)"},{key:"naisargikaBala",source:"Naisargika",color:"var(--roxy-secondary)"},{key:"drikBala",source:"Drik",color:"var(--roxy-danger)"}],Ma=class extends f{renderData(a){if(!a.planets?.length)return this.renderEmpty();let e=[...a.planets].sort((t,r)=>t.relativeRank-r.relativeRank);return s`<div class="wrap" part="card" aria-label="${this.t("Shadbala planetary strength")}"><div class="head" part="header"><h2 class="title">${this.t("Shadbala")}</h2><p class="subtitle">${this.t("{{count}} planets ranked by strength",{count:e.length})}</p>${W(this.effectiveLang(),a.frame,this.translator)}</div><div role="list" part="chart bars" aria-label="${this.t("Planet strength bars")}">${e.map(t=>this.renderPlanetRow(t))}</div><div class="legend" part="legend" aria-label="${this.t("Strength component legend")}">${Zi.map(t=>s`<div class="legend-row"><span class="legend-swatch" style="background:${t.color}" aria-hidden="true"></span> ${this.t("{{component}} Bala",{component:this.t(t.source)})}</div>`)}</div><p class="footnote" part="legend">${this.t("Ishta Phala is the capacity to give benefic results, Kashta Phala the capacity to give malefic ones. Both are in virupas and are read together, since a planet can be strong and still deliver hardship.")}</p></div>`}renderPlanetRow(a){let e=C(a.planet)??"",t=Zi.map(p=>Math.max(0,a[p.key])),r=t.reduce((p,h)=>p+h,0),i=typeof a.strengthRatio=="number"&&a.strengthRatio>=1,l=i?"adequacy-badge--adequate":"adequacy-badge--weak",c=i?this.t("Adequate"):this.t("Weak"),d=$(this.effectiveLang(),a.totalRupas,2)&&$(this.effectiveLang(),a.minRequired,2)?`${$(this.effectiveLang(),a.totalRupas,2)} / ${$(this.effectiveLang(),a.minRequired,2)} R`:"";return s`<div class="planet-row" role="listitem" aria-label="${this.t("{{planet}} Shadbala",{planet:a.planet})}"><div class="planet-label"><span class="glyph roxy-glyph" aria-hidden="true">${e}</span> ${a.planet} <span class="rank-badge" aria-label="${this.t("rank {{n}}",{n:a.relativeRank})}">#${a.relativeRank}</span></div><div class="bar-wrap"><div class="bar" role="img" aria-label="${this.t("Strength components for {{planet}}",{planet:a.planet})}">${r>0?Zi.map((p,h)=>{let m=t[h];if(m<=0)return o;let g=m/r*100;return s`<div class="bar-segment" style="flex-grow:${g};background:${p.color}" title="${this.t("{{component}} {{value}} virupas",{component:this.t(p.source),value:$(this.effectiveLang(),m,1)})}"></div>`}):o}</div>${this.renderPhala(a)}</div><div class="pills">${d?s`<span class="rupas-label">${d}</span>`:o} <span class="${`adequacy-badge ${l}`}">${c}</span></div></div>`}renderPhala(a){let e=typeof a.ishtaPhala=="number"?a.ishtaPhala:0,t=typeof a.kashtaPhala=="number"?a.kashtaPhala:0;if(e+t<=0)return o;let r=$(this.effectiveLang(),e,1)||"0",i=$(this.effectiveLang(),t,1)||"0";return s`<div class="phala" role="img" aria-label="${this.t("Ishta Phala {{ishta}}, Kashta Phala {{kashta}} virupas",{ishta:r,kashta:i})}"><span class="phala-ishta" style="flex-grow:${e}"></span> <span class="phala-kashta" style="flex-grow:${t}"></span></div><div class="phala-label"><span>${this.t("Ishta {{value}}",{value:r})}</span> <span>${this.t("Kashta {{value}}",{value:i})}</span></div>`}};Ma.endpoints=Tl,Ma.styles=[v,B,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.subtitle,.footnote{margin:0}.subtitle{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.planet-row{align-items:center;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);grid-template-columns:14ch minmax(0,1fr) auto;display:grid}.planet-row:last-of-type{border-block-end:0}.planet-label{align-items:center;gap:var(--roxy-space-xs);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);display:flex}.glyph{font-size:var(--roxy-text-base);line-height:1}.bar-wrap,.pills{gap:var(--roxy-space-xs);flex-direction:column;display:flex}.pills{align-items:flex-end}.bar{border-radius:var(--roxy-radius-sm);background:var(--roxy-border);block-size:.5lh;display:flex;overflow:hidden}.bar-segment{height:100%;transition:flex-grow var(--roxy-motion-duration) var(--roxy-motion-easing)}.rupas-label{font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;color:var(--roxy-muted);white-space:nowrap}.phala{border-radius:var(--roxy-radius-full);background:var(--roxy-border);block-size:.25lh;display:flex;overflow:hidden}.phala-ishta{background:var(--roxy-success)}.phala-kashta{background:var(--roxy-danger)}.phala-label{justify-content:space-between;gap:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);font-variant-numeric:tabular-nums;display:flex}.footnote{font-size:var(--roxy-text-xs);color:var(--roxy-muted)}.adequacy-badge{font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}.adequacy-badge--adequate{color:var(--roxy-success-fg)}.adequacy-badge--weak{color:var(--roxy-danger-fg)}.rank-badge{font-size:var(--roxy-text-xs);color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.legend{gap:var(--roxy-space-sm) var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);flex-wrap:wrap;padding-block-start:var(--roxy-space-sm);display:flex}.legend-row{align-items:center;gap:var(--roxy-space-xs);font-size:var(--roxy-text-xs);color:var(--roxy-muted);display:flex}.legend-swatch{aspect-ratio:1;border-radius:var(--roxy-radius-sm);flex-shrink:0;block-size:.6lh;display:inline-block}@container (width<=480px){.planet-row{grid-template-rows:auto auto;grid-template-columns:12ch minmax(0,1fr)}.pills{flex-direction:row;grid-column:1/-1;justify-content:flex-start;align-items:center}}`],Ma=y([L("roxy-shadbala-table")],Ma);function _p(n){let a=n?.ascendant;if(!a)return;let e=re.findIndex(t=>t.toLowerCase()===a.sign.toLowerCase());return e<0?void 0:e*30+a.degree}var Ji=680,Z=Ji/2,$n=204,uu=186,Tp=160,Ep=258,fu=212,Xi=224,wn=86,kn={glyph:18,degree:10},xu=1.3,bu=.95,Ap=8,Dp=4;function Na(n,a){return 180+n.ascendant-a}function Mp(n,a={}){let e={t:Ve(a.lang),locale:a.lang,size:a.typeSize??kn,ascendant:_p(n.person1)??0},t=n.person1?.planets??[],r=n.person2?.planets??[];return T`<svg class="synastry-wheel" xmlns=${Ue} viewBox=${`0 0 ${Ji} ${Ji}`} part="chart" role="img" aria-label=${e.t("Dual chart wheel comparing two natal charts")}><title>${e.t("Synastry dual wheel")}</title>
|
|
126
|
-
<circle class="wheel-line" cx=${Z} cy=${Z} r=${
|
|
127
|
-
<circle class="wheel-line" cx=${Z} cy=${Z} r=${
|
|
128
|
-
<circle class="wheel-line" cx=${Z} cy=${Z} r=${
|
|
129
|
-
${
|
|
130
|
-
${
|
|
131
|
-
${
|
|
132
|
-
${
|
|
133
|
-
</svg>`.markup}function
|
|
121
|
+
`}function Zy(n){let a=n.data?.houses??[];return(n.hasCusps?a.map(t=>t.longitude):Array.from({length:12},(t,r)=>n.ascendant+r*30)).map(t=>{let r=Me(n,t),i=P(G,G,qr,r),l=P(G,G,$r,r);return T`<line class="wheel-line" x1=${i.x} y1=${i.y} x2=${l.x} y2=${l.y} stroke-width="0.8" />`})}function Xy(n){return re.map((a,e)=>{let t=Me(n,e*30+15),r=P(G,G,Vi,t);return T`<text class="sign-glyph roxy-glyph" x=${r.x} y=${r.y} text-anchor="middle" dominant-baseline="central">${z(a)??""}</text>`})}function Jy(n){let a=n.data?.houses??[];if(n.hasCusps)return a.map((t,r)=>{let i=a[(r+1)%12],l=Gs(t.longitude,i?i.longitude:t.longitude+30),c=P(G,G,qr-12,Me(n,l));return T`<text class="house-num" x=${c.x} y=${c.y} text-anchor="middle" dominant-baseline="central">${t.number}</text>`});let e=n.ascendant;return Array.from({length:12},(t,r)=>{let i=Me(n,e+r*30+15),l=P(G,G,qr-12,i),c=r+1;return T`<text class="house-num" x=${l.x} y=${l.y} text-anchor="middle" dominant-baseline="central">${c}</text>`})}function Qy(n){let a=[];for(let e=0;e<360;e+=5){let t=Me(n,e),r=e%30===0,i=r?Vi-14:$r-5,l=P(G,G,i,t),c=P(G,G,$r,t);a.push(T`<line class=${r?"tick tick-major":"tick"} x1=${l.x} y1=${l.y} x2=${c.x} y2=${c.y} stroke-width=${r?1:.5} />`)}return a}function eu(n){let a=n.data?.houses??[];return n.hasCusps?a.map(e=>{let t=Me(n,e.longitude),r=P(G,G,qr+9,t);return T`<text class="cusp-deg" x=${r.x} y=${r.y} text-anchor="middle" dominant-baseline="central">${Ae(e.longitude)}</text>`}):""}function tu(n,a){let e=n.size.degree>Yr.degree,t=Ky*n.size.glyph,r={width:t,height:t},i=g=>({width:((e?De.whole:De.minute)+(g?De.retrograde:0))*n.size.degree,height:De.ink*n.size.degree}),l=(g,b,w)=>{let S=i(g.isRetrograde===true),R=Vr-ct(b,r,S,Ye);return w===0?R:Math.min(R,Math.max(R-Vy,Ln+Ye+Zc(b,S)))},c=Pe(t,Vr),d=i(true),p=Math.max(c,Pe(d.width,Vr-ct(90,r,d,Ye))/2),h=ze(a,g=>g.longitude,p),m=Xc(h,({item:g,displayLongitude:b},w)=>{let S=Me(n,b);return{...P(G,G,l(g,S,w),S),...i(g.isRetrograde===true)}});return h.map((g,b)=>{let{item:w,longitude:S,displayLongitude:R}=g,_=Me(n,S),q=Me(n,R),le=P(G,G,Vr,q),Le=P(G,G,l(w,q,m[b]??0),q),je=P(G,G,$r-4,_),et=P(G,G,Vr+8,q),Qr=x(w,"name"),es=C(w.name)??Qr,kr=w.isRetrograde===true,no=Ae(w.longitude),Zp=e?`${Ne(w.longitude).degree}\xB0`:no,Xp=Math.abs(R-S)>.5;return T`<g>
|
|
122
|
+
${Xp?T`<line class="planet-leader" x1=${je.x} y1=${je.y} x2=${et.x} y2=${et.y} />`:""}
|
|
123
|
+
<text class="planet-glyph roxy-glyph" x=${le.x} y=${le.y} text-anchor="middle" dominant-baseline="central"><title>${Qr}${kr?` ${n.t("retrograde")}`:""} - ${no} ${x(w,"sign")}</title>${es}</text>
|
|
124
|
+
<text class="planet-deg" x=${Le.x} y=${Le.y} text-anchor="middle" dominant-baseline="central">${Zp}${kr?T`<tspan class="retro roxy-glyph"> ${ae}</tspan>`:""}</text>
|
|
125
|
+
</g>`})}function au(n,a,e){let t=new Map;for(let r of a){if(typeof r.longitude!="number")continue;let i=xe(r.name);i&&t.set(i,r.longitude)}return e.filter(ot).map(r=>{let i=t.get(xe(r.planet1)),l=t.get(xe(r.planet2));if(i===void 0||l===void 0)return"";let c=P(G,G,Ln-2,Me(n,i)),d=P(G,G,Ln-2,Me(n,l)),p=we(r),{locale:h}=n,m=$(h,r.orb,1);return T`<line class=${`aspect ${de(r)}`} style=${fr(r)} x1=${c.x} y1=${c.y} x2=${d.x} y2=${d.y}><title>${x(r,"planet1")} ${x(r,"type",p)} ${x(r,"planet2")}${m?` (${n.t("Orb")} ${m}\xB0)`:""}</title></line>`})}var Aa=class{constructor(a,e){this.host=a,this.marks=e,this.size=Object.fromEntries(Object.keys(e).map(t=>[t,e[t][1]])),a.addController(this)}hostConnected(){typeof ResizeObserver>"u"||(this.observer=new ResizeObserver(()=>this.host.requestUpdate()),this.observer.observe(this.host))}hostDisconnected(){this.observer?.disconnect(),this.observer=void 0}hostUpdated(){let a=false;for(let e of Object.keys(this.marks)){let[t]=this.marks[e],r=ru(this.host.renderRoot,t,this.size[e]);r!==this.size[e]&&(this.size[e]=r,a=true)}a&&this.host.requestUpdate()}};function ru(n,a,e){let t=n?.querySelector(a);if(!t||typeof getComputedStyle!="function")return e;let r=Number.parseFloat(getComputedStyle(t).fontSize);return Number.isFinite(r)&&r>0?r:e}function Wr(n){let[a="",...e]=_r(n);return{body:a,extra:e.map(t=>s`<p>${t}</p>`)}}var Sp={GRAND_CROSS:0,GRAND_TRINE:1,KITE:2,T_SQUARE:3,YOD:4,MYSTIC_RECTANGLE:5,STELLIUM:6},Qe=class extends f{constructor(){super(...arguments);this.viewport=new ne(this);this.heading="Natal chart";this.view="wheel";this.type=new Aa(this,{glyph:[".planet-glyph",Yr.glyph],degree:[".planet-deg",Yr.degree]})}getPlanets(){return this.data?.planets??[]}renderData(e){let t=this.getPlanets(),r=e.aspects??[],i=this.view;return s`<div class="wrap" part="card"><header part="header"><h2>${this.t(this.heading)}</h2>${e.birthDetails?s`<p class="roxy-label">${Y(this.effectiveLang(),e.birthDetails.date,e.birthDetails.time)}</p>`:o}</header>${r.length>0?s`${ue({items:[{id:"wheel",label:this.t("Wheel")},{id:"grid",label:this.t("Aspect grid")}],active:i,onSelect:l=>{this.view=l},label:this.t("Natal chart views"),idPrefix:"natal",controls:true})}<div id="natal-panel-${i}" part="panel" role="tabpanel" aria-labelledby="natal-tab-${i}">${i==="wheel"?this.renderWheel(e):this.renderAspectGrid(t,r)}</div>`:this.renderWheel(e)}<div class="legend" part="legend"><span>${this.t("{{label}}: {{value}}",{label:this.t("Positions"),value:$(this.effectiveLang(),t.length,0)})}</span> ${r.length>0?s`<span>${this.t("{{count}} aspects",{count:i==="grid"?r.length:r.filter(ot).length})}</span>`:o} ${qi(e)&&e.houseSystem?s`<span>${this.t("{{label}}: {{value}}",{label:X(this.effectiveLang(),"houseSystem"),value:j(this.effectiveLang(),"houseSystem",e.houseSystem)})}</span>`:s`<span class="caveat">${this.t("Equal sectors from the Ascendant, no house cusps in this response")}</span>`} ${r.length>0?s`<span><span class="aspect-swatch aspect-trine"></span>${this.t("Harmonious aspects")}</span> <span><span class="aspect-swatch aspect-square"></span>${this.t("Challenging aspects")}</span>`:o}</div>${this.renderPositionDetails(e)} ${this.renderDetails()} ${this.renderPatterns()} ${this.renderAspectDetails(r)} ${this.renderChartReading()} ${this.renderInterpretations()}</div>`}renderWheel(e){return this.viewport.renderChartViewport(ke(kp(e,{lang:this.effectiveLang(),typeSize:this.type.size})),this.t(this.heading),this.translator)}renderAspectGrid(e,t){let r=e.map(c=>({name:c.name,label:x(c,"name")})),i=(c,d)=>[xe(c),xe(d)].sort().join("|"),l=new Map;for(let c of t)l.set(i(c.planet1,c.planet2),c);return r.length===0?s`<p class="roxy-empty" role="status">${this.t("No planets to grid")}</p>`:s`<div class="scroll" part="section aspects table aspect-grid" tabindex="0" role="region" aria-label="${this.t("Aspect grid")}"><table class="aspect-grid"><caption class="roxy-sr-only">${this.t("Planet by planet aspect grid: the aspect each pair of planets forms, read from the planet naming the row across to the planet naming the column.")}</caption><thead><tr><td></td>${r.slice(0,-1).map(c=>{let d=C(c.name)??c.label;return s`<th scope="col" class="roxy-glyph" title="${c.label}">${d}</th>`})}</tr></thead><tbody>${r.slice(1).map((c,d)=>{let p=C(c.name)??c.label;return s`<tr><th scope="row" class="roxy-glyph" title="${c.label}">${p}</th>${r.slice(0,d+1).map(h=>{let m=l.get(i(c.name,h.name));if(!m)return s`<td></td>`;let g=we(m),b=ur(g)??x(m,"type",se(m)),w=$(this.effectiveLang(),m.orb,1);return s`<td class="${`cell ${de(m)}`}" title="${`${c.label} ${x(m,"type",g)} ${h.label}${w?` (${this.t("Orb")} ${w}\xB0)`:""}`}"><span class="asp roxy-glyph">${b}</span></td>`})} ${r.slice(d+1,-1).map(()=>s`<td></td>`)}</tr>`})}</tbody></table></div>`}renderPositionDetails(e){return s`<details class="block" part="section positions"><summary>${this.t("Chart details")}</summary><roxy-western-planets-table bare lang="${U(this.effectiveLang())}" exportparts="card, header, table, details, section, houses" .data="${e}"></roxy-western-planets-table></details>`}renderDetails(){let e=this.data?.summary,t=this.data?.aspectsInterpretation;if(!e&&!t)return o;let r=As(e,"retrogradePlanets");return s`<div class="facts" part="details">${e?.dominantElement||e?.dominantModality?s`<ul class="roxy-chips">${e.dominantElement?s`<li>${this.t("{{label}}: {{value}}",{label:this.t("Dominant element"),value:x(e,"dominantElement")})}</li>`:o} ${e.dominantModality?s`<li>${this.t("{{label}}: {{value}}",{label:this.t("Dominant modality"),value:x(e,"dominantModality")})}</li>`:o}</ul>`:o} ${t?s`<p class="counts"><span class="harmonious">${this.t("Harmonious: {{count}}",{count:t.harmonious})}</span> <span class="challenging">${this.t("Challenging: {{count}}",{count:t.challenging})}</span> <span>${this.t("Neutral: {{count}}",{count:t.neutral})}</span></p>`:o} ${r.length>0?s`<ul class="roxy-chips">${r.map(({value:i,label:l})=>{let c=C(i);return s`<li>${ce(c)} ${l} <span class="roxy-glyph">${ae}</span></li>`})}</ul>`:o} ${t?.summary&&!this.hideReadings?s`<p>${t.summary}</p>`:o} ${this.renderElementModalityGrid()}</div>`}renderElementModalityGrid(){let e=this.getPlanets();if(e.length===0)return o;let t=["Fire","Earth","Air","Water"],r=["Cardinal","Fixed","Mutable"],i={Fire:this.t("Fire"),Earth:this.t("Earth"),Air:this.t("Air"),Water:this.t("Water")},l={Cardinal:{abbr:this.t("Car"),full:this.t("Cardinal")},Fixed:{abbr:this.t("Fix"),full:this.t("Fixed")},Mutable:{abbr:this.t("Mut"),full:this.t("Mutable")}},c=re,d=this.data?.summary,p={};for(let w of t)p[w]={Cardinal:[],Fixed:[],Mutable:[]};let h=0;for(let w of e){let S=c.indexOf(D(w.sign??""));if(S<0)continue;let R=t[S%4],_=r[S%3],q=C(w.name)??x(w,"name");p[R]?.[_]?.push(q),h++}if(h===0)return o;let m=w=>t.reduce((S,R)=>S+(p[R]?.[w]?.length??0),0),g=[...Object.entries(d?.elementDistribution??{}).map(([w,S])=>({label:i[D(w)]??w,count:S})),...Object.entries(d?.modalityDistribution??{}).map(([w,S])=>({label:l[D(w)]?.full??w,count:S}))],b=Object.values(d?.elementDistribution??{}).reduce((w,S)=>w+S,0);return s`${g.length?s`<section class="block distribution" part="section distribution"><h3>${this.t("Element and modality distribution")}</h3><p class="counts"><span class="roxy-label">${this.t("{{count}} planets",{count:b})}</span> ${g.map(({label:w,count:S})=>s`<span>${this.t("{{label}}: {{value}}",{label:w,value:$(this.effectiveLang(),S,0)})}</span>`)}</p></section>`:o}<div class="scroll" tabindex="0" role="region" aria-label="${this.t("Element and modality distribution")}"><table class="em-grid" part="table element-modality" aria-label="${this.t("Element and modality distribution")}"><caption class="roxy-label">${this.t("All {{count}} bodies in the chart, placed by sign",{count:h})}</caption><thead><tr><td></td>${r.map(w=>s`<th scope="col" title="${l[w]?.full??w}">${l[w]?.abbr??w}</th>`)}<th scope="col">${this.t("Total")}</th></tr></thead><tbody>${t.map(w=>{let S=r.reduce((R,_)=>R+(p[w]?.[_]?.length??0),0);return s`<tr><th scope="row">${i[w]??w}</th>${r.map(R=>s`<td class="roxy-glyph">${(p[w]?.[R]??[]).join(" ")}</td>`)}<td class="em-total">${S}</td></tr>`})}<tr><th scope="row">${this.t("Total")}</th>${r.map(w=>s`<td class="em-total">${m(w)}</td>`)}<td class="em-total">${h}</td></tr></tbody></table></div>`}renderPatterns(){let e=this.data?.patterns??[];if(e.length===0)return o;let t=[...e].sort((r,i)=>(Sp[r.kind]??9)-(Sp[i.kind]??9)||(i.tightness??0)-(r.tightness??0));return s`<section class="block patterns" part="section patterns"><h3>${this.t("Chart patterns")}</h3>${t.map(r=>this.renderPattern(r))}</section>`}renderPattern(e){let t=e.planets??[],r=e.apex?[...t].sort((i,l)=>+(l===e.apex)-+(i===e.apex)):t;return s`<div class="pattern" part="pattern"><div class="pattern-head"><span class="pattern-name">${e.name}</span> ${e.element?s`<span class="roxy-chip">${e.element}</span>`:o} ${e.modality?s`<span class="roxy-chip">${e.modality}</span>`:o} ${e.dissociate?s`<span class="roxy-chip" title="${this.t("Out of sign: one or more planets sit outside the pattern element or modality, so the theme holds but runs weaker.")}">${this.t("Dissociate")}</span>`:o} ${typeof e.tightness=="number"?s`<span class="pattern-tight roxy-label">${this.t("{{percent}} tight",{percent:te(this.effectiveLang(),e.tightness,0)})}</span>`:o}</div><ul class="roxy-chips">${r.map(i=>{let l=C(i),c=!!e.apex&&i===e.apex;return s`<li class="${c?"roxy-chip apex":"roxy-chip"}">${l?s`<span class="roxy-glyph" aria-hidden="true">${l}</span>`:o}${i}${c?s`<span>${this.t("apex")}</span>`:o}</li>`})}</ul>${e.interpretation&&!this.hideReadings?s`<p class="pattern-interp">${e.interpretation}</p>`:o}</div>`}renderAspectDetails(e){return e.length===0?o:s`<details class="block" part="section aspects"><summary>${this.t("Aspects ({{count}})",{count:e.length})}</summary><roxy-aspects-table bare hide-sections="header" lang="${U(this.effectiveLang())}" ?hide-readings="${this.hideReadings}" exportparts="card, header, section, aspects, details, reading, readings, pattern, patterns, strongest" .data="${{aspects:e}}"></roxy-aspects-table></details>`}renderChartReading(){let e=this.data?.interpretation;if(!e)return o;let t=this.renderInterpretation([{label:this.t("Your birth chart"),...Wr(e.opening)},{label:this.t("Love"),...Wr(e.love)},{label:this.t("Career"),...Wr(e.career)},{label:this.t("Home"),...Wr(e.home)},{label:this.t("Your chart in perspective"),...Wr(e.closing)}],"natal-chart-reading","Reading");return t===o?o:s`<div part="section interpretation">${t}</div>`}angleReading(e,t){let r=t?.interpretation;return{label:e,aside:t?`${x(t,"sign")} ${Ae(t.longitude)}`:void 0,body:r?.summary??"",extra:_r(r?.detailed).map(i=>s`<p>${i}</p>`)}}renderInterpretations(){let e=this.getPlanets().filter(t=>t.interpretation).map(t=>{let r=t.interpretation,i=C(t.name)??"",l=x(t,"name"),c=r.summary||r.detailed||"",d=r.summary?r.detailed:void 0;return{glyph:i,label:l,aside:`${x(t,"sign")} ${Ae(t.longitude)}`,body:c,extra:s`${d?s`<p>${d}</p>`:o} ${rt(r.keywords)}`}});return e.splice(2,0,this.angleReading(this.t("Ascendant"),this.data?.ascendant),this.angleReading(this.t("Midheaven"),this.data?.midheaven)),this.renderInterpretation(e,"natal-planet-readings","Planet readings")}};Qe.endpoints=$l,Qe.styles=[v,pe,xr,ge,O,H,Ic,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}h2{overflow-wrap:anywhere}details.block>summary{font-weight:var(--roxy-weight-bold)}svg:where([part~=chart]){width:100%;max-width:var(--roxy-chart-max-width,42.5rem);aspect-ratio:1;height:auto;margin:0 auto;display:block}.legend,.counts{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-xs);color:var(--roxy-muted);flex-wrap:wrap;display:flex}.counts{font-size:var(--roxy-text-sm);color:var(--roxy-fg)}.legend .caveat{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.harmonious{color:var(--roxy-info-fg)}.challenging{color:var(--roxy-danger-fg)}.scroll{min-width:0;overflow-x:auto}.aspect-grid{margin:0 auto}.aspect-grid :is(th,td){inline-size:var(--roxy-space-lg);block-size:var(--roxy-space-lg);text-align:center;vertical-align:middle;border:1px solid var(--roxy-border);padding:0}.aspect-grid .asp{color:var(--_aspect-ink,var(--roxy-muted))}.facts,.distribution,.patterns{gap:var(--roxy-space-sm);display:grid}.em-grid{width:100%}.em-grid caption{caption-side:top;text-align:start}.em-grid :is(th,td){text-align:center}.em-grid th[scope=row]{text-align:start}.em-grid td{color:var(--roxy-accent-ink)}.em-grid .em-total{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.pattern{gap:var(--roxy-space-xs);padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);display:grid}.pattern-head{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.pattern-name{font-weight:var(--roxy-weight-bold)}.pattern-tight{font-variant-numeric:tabular-nums;margin-inline-start:auto}.roxy-chip.apex{color:var(--roxy-fg);border-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}.pattern-interp{font-size:var(--roxy-text-sm)}`],y([k({type:String})],Qe.prototype,"heading",2),y([I()],Qe.prototype,"view",2),Qe=y([L("roxy-natal-chart")],Qe);var su=new Set([11,22,33]),nu=[["career","Career"],["relationships","Relationships"],["spirituality","Spirituality"]],Rt=class extends f{constructor(){super(...arguments);this.type="life-path"}renderData(e){let t=this.t(iu[this.type]??this.type);return"coreNumbers"in e?this.renderChart(e,t):"personalDay"in e?this.renderPersonalDay(e,t):"personalMonth"in e?this.renderPersonalMonth(e,t):"personalYear"in e?this.renderPersonalYear(e,t):"dailyMessage"in e?this.renderDailyNumber(e,t):this.renderNumberCard(e,t)}renderNumberCard(e,t){let r=!this.hideReadings;return s`<article class="card" part="card" aria-label="${t}">${this.renderHero(t,e.number,e.meaning?.title,$n(e.number,e.type))} ${e.meaning?.description&&r?s`<p>${e.meaning.description}</p>`:o} ${e.calculation?s`<pre class="calc" part="calculation">${e.calculation}</pre>`:o} ${e.hasKarmicDebt&&e.karmicDebtNumber?s`<div class="karmic" part="section karmic-debt"><strong>${this.t("Karmic debt")} ${e.karmicDebtNumber}.</strong> ${r?ou(e.karmicDebtMeaning):""}</div>`:o} ${this.renderReading(e.meaning,"numerology-guidance")}</article>`}renderDailyNumber(e,t){let r=!this.hideReadings;return s`<article class="card" part="card" aria-label="${t}">${this.renderHero(t,e.number,e.meaning?.title,$n(e.number,e.type))} ${e.dailyMessage&&r?s`<p>${e.dailyMessage}</p>`:o} ${e.meaning?.description&&r?s`<p>${e.meaning.description}</p>`:o} ${this.renderReading(e.meaning,"numerology-daily-guidance")}</article>`}renderPersonalDay(e,t){return s`<article class="card" part="card" aria-label="${t}">${this.renderHero(t,e.personalDay,e.theme)} ${e.guidance&&!this.hideReadings?s`<p>${e.guidance}</p>`:o}<dl class="roxy-facts" part="details">${this.attr(this.t("Date"),A(this.effectiveLang(),e.targetDate))} ${this.attr(this.t("Personal month"),Yi(e.personalMonth,e.personalMonthTheme))} ${this.attr(this.t("Personal year"),Yi(e.personalYear,e.personalYearTheme))}</dl></article>`}renderPersonalMonth(e,t){return s`<article class="card" part="card" aria-label="${t}">${this.renderHero(t,e.personalMonth,e.theme)} ${e.focus&&!this.hideReadings?s`<p>${e.focus}</p>`:o}<dl class="roxy-facts" part="details">${this.attr(this.t("Calendar month"),e.calendarMonth)} ${this.attr(this.t("Personal year"),Yi(e.personalYear,e.personalYearTheme))}</dl></article>`}renderPersonalYear(e,t){let r=!this.hideReadings;return s`<article class="card" part="card" aria-label="${t}">${this.renderHero(t,e.personalYear,e.theme)} ${e.cycle?s`<p class="roxy-label">${e.cycle}</p>`:o} ${e.forecast&&r?s`<p>${e.forecast}</p>`:o} ${r?this.renderLists(["Opportunities",e.opportunities],["Challenges",e.challenges]):o} ${e.advice&&r?s`<p>${e.advice}</p>`:o}</article>`}renderChart(e,t){let r=Object.entries(e.coreNumbers??{}).filter(([,h])=>h),i=e.additionalInsights,l=e.luckyAssociations,c=e.birthDayProfile,d=e.maturityStatus,p=!this.hideReadings;return s`<article class="card" part="card" aria-label="${t}"><div part="header"><p class="roxy-label">${t}</p>${e.profile?.name?s`<h2>${e.profile.name}</h2>`:o} ${e.profile?.birthdate?s`<p class="roxy-label">${A(this.effectiveLang(),e.profile.birthdate)}</p>`:o}</div>${e.summary&&p?s`<p>${e.summary}</p>`:o} ${r.length>0?s`<div class="cores" part="details cores">${r.map(([h,m])=>s`<div class="item"><div class="core-head"><span class="core-key">${E(h)}</span> <strong>${m.number??""}</strong></div>${m.meaning?.title?s`<span class="core-title">${m.meaning.title}</span>`:o} ${$n(m.number,m.type)?s`<span class="master roxy-chip">${this.t("Master")} ${m.number}</span>`:o}</div>`)}</div>`:o} ${this.renderInterpretation(r.map(([h,m])=>({label:E(h),aside:[m.number!=null?`${m.number}`:"",$n(m.number,m.type)?"master":"",m.hasKarmicDebt&&m.karmicDebtNumber?`karmic debt ${m.karmicDebtNumber}`:""].filter(Boolean).join(" \xB7 "),body:m.meaning?.description??"",extra:this.renderReading(m.meaning,`numerology-core-${h}`)})),"numerology-cores","Core numbers")} ${d?s`<dl class="roxy-facts" part="details maturity">${this.attr(this.t("Maturity"),d.isActive?this.t("Active"):this.t("Not yet active"))} ${this.attr(this.t("Current age"),d.currentAge)} ${this.attr(this.t("Activates"),d.activationRange)}</dl>`:o} ${c?s`<section class="sub" part="section birth-day-profile"><h3>${this.t("Birth day profile")}</h3>${c.title?s`<h4>${[c.day?this.t("Day {{day}}",{day:c.day}):"",c.title].filter(Boolean).join(" \xB7 ")}</h4>`:o} ${c.description&&p?s`<p>${c.description}</p>`:o} ${this.renderReading(c,"numerology-birth-day-profile")}</section>`:o} ${i?this.renderInsights(i):o} ${l?s`<section class="sub" part="section lucky-associations"><h3>${this.t("Lucky associations")}</h3><dl class="roxy-facts">${this.attr(this.t("Day"),l.day)} ${this.attr(this.t("Element"),l.element)} ${this.attr(this.t("Ruling planet"),l.rulingPlanet)} ${this.attr(this.t("Colors"),l.colors?.join(", "))} ${this.attr(this.t("Gemstones"),l.gemstones?.join(", "))} ${this.attr(this.t("Compatible"),l.compatibleNumbers?.join(", "))} ${this.attr(this.t("Incompatible"),l.incompatibleNumbers?.join(", "))}</dl></section>`:o}</article>`}renderInsights(e){let t=e.karmicLessons,r=e.karmicDebt,i=e.personalYear,l=e.hiddenPassion,c=e.subconsciousSelf,d=e.nameLetters,p=Object.entries(t?.presentNumbers??{}),h=!this.hideReadings;return s`${t?s`<section class="sub" part="section karmic-lessons"><h3>${this.t("Karmic lessons")}</h3>${t.missingNumbers?.length?s`<ul class="roxy-chips">${t.missingNumbers.map(m=>s`<li>${this.t("Missing")} ${m}</li>`)}</ul>`:s`<p>${this.t("No numbers are missing from the birth name.")}</p>`} ${p.length>0?s`<ul class="roxy-chips">${p.map(([m,g])=>s`<li>${m} x ${g}</li>`)}</ul>`:o} ${this.renderInterpretation((t.lessons??[]).map(m=>({label:m.lesson??`Lesson ${m.number}`,aside:m.number!=null?`${m.number}`:"",body:m.description??"",extra:m.howToOvercome?s`<p><strong>${this.t("How to overcome")}.</strong> ${m.howToOvercome}</p>`:o})),"numerology-karmic-lessons","Lessons")}</section>`:o}${r?.hasKarmicDebt?s`<section class="sub" part="section karmic-debt"><h3>${this.t("Karmic debt")}</h3>${r.debtNumbers?.length?s`<ul class="roxy-chips">${r.debtNumbers.map(m=>s`<li>${this.t("Debt")} ${m}</li>`)}</ul>`:o} ${this.renderInterpretation((r.meanings??[]).map(m=>({label:`${this.t("Karmic debt")} ${m.number}`,body:m.description??"",extra:s`${m.challenge?s`<p><strong>${this.t("Challenge")}.</strong> ${m.challenge}</p>`:o}${m.resolution?s`<p><strong>${this.t("Resolution")}.</strong> ${m.resolution}</p>`:o}`})),"numerology-karmic-debt","Debts")}</section>`:o}${i?s`<section class="sub" part="section personal-year"><h3>${this.t("Personal year")}</h3><h4>${[i.personalYear!=null?`${i.personalYear}`:"",i.theme??"",i.cycle??""].filter(Boolean).join(" \xB7 ")}</h4>${i.forecast&&h?s`<p>${i.forecast}</p>`:o} ${h?this.renderLists(["Opportunities",i.opportunities],["Challenges",i.challenges]):o} ${i.advice&&h?s`<p>${i.advice}</p>`:o} ${i.personalMonth?s`<p><strong>${[i.personalMonth.personalMonth!=null?`${this.t("Personal month")} ${i.personalMonth.personalMonth}`:this.t("Personal month"),i.personalMonth.theme??""].filter(Boolean).join(" \xB7 ")}.</strong> ${h?i.personalMonth.focus??"":""}</p>`:o}</section>`:o}${e.pinnacles?.length&&h?s`<section class="sub" part="section pinnacles"><h3>${this.t("Pinnacles")}</h3>${this.renderInterpretation(e.pinnacles.map(m=>({label:[m.position!=null?`Pinnacle ${m.position}`:"Pinnacle",m.meaning?.title??""].filter(Boolean).join(" \xB7 "),aside:[m.number!=null?`${m.number}`:"",Rp(m.startAge,m.endAge)].filter(Boolean).join(" \xB7 "),body:m.meaning?.description??"",extra:this.renderLists(["Opportunities",m.meaning?.opportunities],["Challenges",m.meaning?.challenges])})),"numerology-pinnacles","Life phases")}</section>`:o}${e.challenges?.length&&h?s`<section class="sub" part="section obstacle-periods"><h3>${this.t("Challenges")}</h3>${this.renderInterpretation(e.challenges.map(m=>({label:[m.position!=null?`Challenge ${m.position}`:"Challenge",m.meaning?.title??""].filter(Boolean).join(" \xB7 "),aside:[m.number!=null?`${m.number}`:"",Rp(m.startAge,m.endAge)].filter(Boolean).join(" \xB7 "),body:m.meaning?.description??"",extra:s`${m.meaning?.lesson?s`<p><strong>${this.t("Lesson")}.</strong> ${m.meaning.lesson}</p>`:o}${m.meaning?.howToOvercome?s`<p><strong>${this.t("How to overcome")}.</strong> ${m.meaning.howToOvercome}</p>`:o}`})),"numerology-challenges","Obstacle periods")}</section>`:o}${l||c?s`<section class="sub" part="section name-numbers"><h3>${this.t("Name numbers")}</h3>${l?s`<div><h4>${[l.number!=null?this.t("Hidden passion {{number}}",{number:l.number}):this.t("Hidden passion"),l.title??""].filter(Boolean).join(" \xB7 ")}</h4>${l.description&&h?s`<p>${l.description}</p>`:o} ${typeof l.count=="number"?s`<p class="roxy-label">${this.t("Appears {{count}} times in the name",{count:l.count})}</p>`:o}</div>`:o} ${c?s`<div><h4>${[c.number!=null?this.t("Subconscious self {{number}}",{number:c.number}):this.t("Subconscious self"),c.title??""].filter(Boolean).join(" \xB7 ")}</h4>${c.description&&h?s`<p>${c.description}</p>`:o} ${c.uniqueNumbers?.length?s`<p class="roxy-label">${this.t("Numbers present: {{list}}",{list:me(this.effectiveLang(),c.uniqueNumbers.map(String))})}</p>`:o}</div>`:o}</section>`:o}${d&&h?s`<section class="sub" part="section name-letters"><h3>${this.t("Name letters")}</h3>${this.renderInterpretation([{label:this.t("Cornerstone"),aside:Wi(d.cornerstone?.letter,d.cornerstone?.number),body:d.cornerstone?.meaning??""},{label:this.t("Capstone"),aside:Wi(d.capstone?.letter,d.capstone?.number),body:d.capstone?.meaning??""},{label:this.t("First vowel"),aside:Wi(d.firstVowel?.letter),body:d.firstVowel?.meaning??""}],"numerology-name-letters","Letter analysis")}</section>`:o}`}renderHero(e,t,r,i=false){return s`<div class="hero" part="header">${typeof t=="number"?s`<div class="numeral">${t}</div>`:o}<div><p class="roxy-label">${e}</p>${r?s`<h2>${r}</h2>`:o} ${i?s`<span class="master roxy-chip">${this.t("Master number")}</span>`:o}</div></div>`}renderReading(e,t){if(!e||this.hideReadings)return o;let r=nu.map(([i,l])=>({label:l,body:e[i]??""}));return s`${e.keywords?.length?s`<ul class="roxy-chips">${e.keywords.map(i=>s`<li>${i}</li>`)}</ul>`:o}${this.renderLists(["Strengths",e.strengths],["Challenges",e.challenges])}${this.renderInterpretation(r,t,"Guidance")}`}renderLists(...e){let t=e.filter(([,r])=>r&&r.length>0);return t.length===0?o:s`<div class="lists">${t.map(([r,i])=>s`<div><h3>${this.t(r)}</h3><ul>${(i??[]).map(l=>s`<li>${l}</li>`)}</ul></div>`)}</div>`}attr(e,t){return t==null||t===""?o:s`<div><dt>${e}</dt><dd>${t}</dd></div>`}};Rt.endpoints=wl,Rt.styles=[v,O,J,H,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,h4,p{margin:0}.hero{align-items:center;gap:var(--roxy-space-md);display:flex}.numeral{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 2.5);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;line-height:1}.master{margin-block-start:var(--roxy-space-xs)}.calc{color:var(--roxy-muted);font-family:var(--roxy-font-mono);font-size:var(--roxy-text-xs);white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.cores{gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);grid-template-columns:repeat(auto-fit,minmax(min(100%,16ch),1fr));padding-block-start:var(--roxy-space-md);display:grid}.cores .item{gap:calc(var(--roxy-space-unit) / 2);font-size:var(--roxy-text-sm);display:grid}.cores .item .core-head{align-items:baseline;gap:var(--roxy-space-xs);display:flex}.cores .item .core-key{color:var(--roxy-muted);text-transform:capitalize}.cores .item strong{color:var(--roxy-accent-ink);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}.cores .item .core-title{font-size:var(--roxy-text-xs)}.lists{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,28ch),1fr));display:grid}.lists h3{margin-block-end:var(--roxy-space-xs)}.lists ul{gap:var(--roxy-space-xs);font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md);display:grid}.sub{gap:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md);display:grid}.sub p{font-size:var(--roxy-text-sm)}.roxy-facts{margin:0}.karmic{border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);padding-block-start:var(--roxy-space-md)}.karmic strong{color:var(--roxy-warning-fg);font-weight:var(--roxy-weight-bold)}`],y([k({type:String,reflect:true})],Rt.prototype,"type",2),Rt=y([L("roxy-numerology-card")],Rt);var iu={"life-path":"Life Path",expression:"Expression","soul-urge":"Soul Urge",personality:"Personality","birth-day":"Birth Day",maturity:"Maturity",daily:"Daily Number","personal-day":"Personal Day","personal-month":"Personal month","personal-year":"Personal year",chart:"Numerology chart"};function ou(n){return n?[n.description,n.challenge,n.resolution].filter(Boolean).join(" "):""}function $n(n,a){return a==="master"||n!==void 0&&su.has(n)}function Yi(n,a){return[n!=null?`${n}`:"",a??""].filter(Boolean).join(" \xB7 ")}function Rp(n,a){return n==null?"":a==null?`ages ${n} onward`:`ages ${n} to ${a}`}function Wi(n,a){return[n??"",a!=null?`${a}`:""].filter(Boolean).join(" \xB7 ")}var lu=28;function Zi(...n){return n.filter(Boolean).join(" \xB7 ")}function Xi(...n){return n.filter(Boolean).join(", ")}var Ct=class extends f{constructor(){super(...arguments);this.detail="detailed"}renderData(e){let t="sunrise"in e?e:null,r="sunLongitude"in e?e:null,i=t?[["Brahma Muhurta",t.brahmaMuhurta],["Abhijit Muhurta",t.abhijitMuhurta],["Vijaya Muhurta",t.vijayaMuhurta],["Godhuli Muhurta",t.godhuliMuhurta],["Nishita Muhurta",t.nishitaMuhurta],["Pratah Sandhya",t.pratahSandhya],["Sayahna Sandhya",t.sayahnaSandhya]]:[],l=t?this.expandWindows(this.t("Amrit Kalam"),t.amritKalam):[],c=t?[["Rahu Kaal",t.rahuKaal],["Yamaganda",t.yamaganda],["Gulika",t.gulika]]:[],d=t?[...this.expandWindows(this.t("Dur Muhurta"),t.durMuhurta),...this.expandWindows(this.t("Varjyam"),t.varjyam)]:[],p=this.detail==="detailed"&&t!==null;return s`<div class="wrap" part="card" aria-label="${this.t("Panchang")}"><header class="head" part="header"><h2>${this.t("Panchang")}</h2><span class="roxy-label">${t?A(this.effectiveLang(),t.date):""}</span> ${t?this.renderLocation(t.location):o}</header><table part="table"><tbody>${this.limbs(e,t).map(h=>this.renderLimbRow(h))} ${t?s`${this.renderRow(this.t("Sunrise"),Te(this.effectiveLang(),t.sunrise))} ${this.renderRow(this.t("Sunset"),Te(this.effectiveLang(),t.sunset))} ${this.renderRow(this.t("Moonrise"),Te(this.effectiveLang(),t.moonrise))} ${this.renderRow(this.t("Moonset"),Te(this.effectiveLang(),t.moonset))} ${this.renderRow(this.t("Moon sign"),this.formatRashi(t.moonSign))} ${this.renderRow(this.t("Sun sign"),this.formatRashi(t.sunSign))} ${this.renderRow(this.t("Sun nakshatra"),this.formatSunNakshatra(t.sunNakshatra))} ${this.renderRow(this.t("Hora"),this.formatHora(t.hora))}`:r?s`${this.renderRow(this.t("Sun"),this.formatLongitude(r.sunLongitude))} ${this.renderRow(this.t("Moon"),this.formatLongitude(r.moonLongitude))}`:o}</tbody></table>${t?this.renderTransitions(t.transitions):o} ${p?s`<h3 class="section" part="section auspicious">${this.t("Auspicious muhurtas")}</h3><table part="table auspicious"><tbody>${this.renderPeriodRows([...i.filter(h=>!!h[1]),...l])}</tbody></table><h3 class="section" part="section inauspicious">${this.t("Inauspicious periods")}</h3><table part="table inauspicious"><tbody>${this.renderPeriodRows([...c.filter(h=>!!h[1]),...d])} ${this.renderBhadraRow(t.bhadra)} ${this.renderPanchakaRow(t.panchaka)}</tbody></table>${this.renderBalams(t.chandrabalam,t.tarabalam)}`:o}</div>`}limbs(e,t){let r=e.tithi,i=e.nakshatra,l=e.yoga,c=e.karana,d=[{label:this.t("Tithi"),value:Xi(r?.name,r?.paksha?`${r.paksha} paksha`:void 0),moon:Ir(r?.number),meta:Zi(r?.rulingPlanet?`Ruled by ${r.rulingPlanet}`:void 0,r?.deity?`Deity ${r.deity}`:void 0,r?.element,typeof r?.percent=="number"?`${te(this.effectiveLang(),r.percent,0)} elapsed`:void 0)},{label:this.t("Nakshatra"),value:Xi(i?.name,typeof i?.pada=="number"?`pada ${i.pada}`:void 0),meta:Zi(i?.lord?`Lord ${i.lord}`:void 0,i?.deity?`Deity ${i.deity}`:void 0,i?.symbol?`Symbol ${i.symbol}`:void 0,i?.characteristics)},{label:this.t("Yoga"),value:l?.name??"",meta:l?.characteristics??""},{label:this.t("Karana"),value:Xi(c?.name,c?.type),meta:c?.characteristics??""}];return t?.vara&&d.push({label:this.t("Vara"),value:Or(t.vara.name,t.vara.sanskritName),meta:t.vara.lord?`Lord ${t.vara.lord}`:""}),d.filter(p=>!!p.value)}renderLimbRow(e){return s`<tr><th>${e.label}</th><td>${e.moon?Ge(this,e.moon,lu):o}${e.value}${e.meta?s`<small>${e.meta}</small>`:o}</td></tr>`}renderRow(e,t){return t?s`<tr><th>${e}</th><td>${t}</td></tr>`:o}renderTransitions(e){return e?s`<h3 class="section" part="section transitions">${this.t("Next transitions")}</h3><table part="table transitions"><tbody>${this.renderTransitionRow(this.t("Tithi"),e.tithi)} ${this.renderTransitionRow(this.t("Nakshatra"),e.nakshatra)} ${this.renderTransitionRow(this.t("Yoga"),e.yoga)} ${this.renderTransitionRow(this.t("Karana"),e.karana)} ${this.renderMoonSignRow(e.moonSign)}</tbody></table>`:o}renderPeriodRows(e){return e.map(([t,r])=>{let i=Ke(this.effectiveLang(),r);return i?s`<tr><th>${t}</th><td>${i}</td></tr>`:o})}expandWindows(e,t){return!t||t.length===0?[]:t.map((r,i)=>[t.length>1?`${e} ${i+1}`:e,r])}renderBhadraRow(e){if(!e)return o;let t=this.formatSpan(e.startsAt,e.endsAt);return s`<tr><th>${this.t("Bhadra (Vishti)")}</th><td>${e.active&&t?t:s`<span class="quiet">${this.t("None today")}</span>`}</td></tr>`}renderPanchakaRow(e){if(!e)return o;let t=this.formatSpan(e.startsAt,e.endsAt);return s`<tr><th>${this.t("Panchaka")}</th><td>${e.active?s`${e.type?this.t("{{type}} Panchaka",{type:e.type}):this.t("Panchaka")}${t?s`<small>${t}</small>`:o}`:s`<span class="quiet">${this.t("None today")}</span>`}</td></tr>`}renderBalams(e,t){return!e&&!t?o:s`<h3 class="section" part="section balams">${this.t("Chandrabalam and Tarabalam")}</h3><table part="table balams"><tbody>${e?s`<tr><th>${this.t("Favorable Moon signs")}</th><td>${this.renderChips(e.favorableRashis,"success")}</td></tr>${this.renderRow(this.t("Ashtama Chandra rashi"),e.ashtamaChandraRashi??"")}`:o} ${t?s`<tr><th>${this.t("Favorable birth nakshatras")}</th><td>${this.renderChips(t.favorableNakshatras,"success")}</td></tr><tr><th>${this.t("Unfavorable birth nakshatras")}</th><td>${this.renderChips(t.unfavorableNakshatras,"danger")}</td></tr>`:o}</tbody></table>`}renderChips(e,t){return e?.length?s`<ul class="roxy-chips">${e.map(r=>s`<li class="roxy-chip" data-tone="${t}">${r}</li>`)}</ul>`:s`<span class="quiet">${this.t("None")}</span>`}renderLocation(e){return e?s`<dl class="roxy-facts">${["latitude","longitude","timezone"].map(r=>s`<div><dt>${X(this.effectiveLang(),r)}</dt><dd>${$(this.effectiveLang(),e[r],5)}</dd></div>`)}</dl>`:o}clock(e){let t=this.data?.date;return t&&e.slice(0,10)!==t.slice(0,10)?Y(this.effectiveLang(),e):Te(this.effectiveLang(),e)}renderTransitionRow(e,t){if(!t?.endsAt)return o;let r=this.clock(t.endsAt),i=t.next?typeof t.nextPada=="number"?this.t("ends {{time}} to {{next}} pada {{pada}}",{time:r,next:t.next,pada:t.nextPada}):this.t("ends {{time}} to {{next}}",{time:r,next:t.next}):this.t("ends {{time}}",{time:r});return s`<tr><th>${e}</th><td>${i}</td></tr>`}renderMoonSignRow(e){return e?.changesAt?s`<tr><th>${this.t("Moon sign")}</th><td>${e.next?this.t("{{sign}} until {{time}}, then {{next}}",{sign:e.current??"",time:this.clock(e.changesAt),next:e.next}):this.t("{{sign}} until {{time}}",{sign:e.current??"",time:this.clock(e.changesAt)})}</td></tr>`:o}formatSpan(e,t){let r=Ke(this.effectiveLang(),{start:e??void 0,end:t??void 0});return!r||!e||!t||e.slice(0,10)===t.slice(0,10)?r:this.t("{{range}} (ends {{date}})",{range:r,date:A(this.effectiveLang(),t)})}formatRashi(e){return Or(e?.name,e?.sanskritName)}formatSunNakshatra(e){return e?.name?Zi(e.name,typeof e.pada=="number"?`pada ${e.pada}`:void 0,e.lord?`lord ${e.lord}`:void 0):""}formatHora(e){if(!e?.current)return"";let t=Ke(this.effectiveLang(),e);return t?`${e.current} (${t})`:e.current}formatLongitude(e){return typeof e=="number"?ye(e):""}};Ct.endpoints=kl,Ct.styles=[v,J,Ft,u`.wrap{overflow:hidden}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border);flex-wrap:wrap;display:flex}h2,h3{margin:0}.head .roxy-facts{flex-basis:100%;margin:0}table{width:100%}th,td{padding-inline:var(--roxy-space-md)}th{width:38%}tbody tr:last-child :is(th,td){border-block-end:0}td>.moon-mark{margin-inline-end:var(--roxy-space-sm)}td small{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:normal;margin-block-start:calc(var(--roxy-space-unit) / 2);display:block}.section{padding:var(--roxy-space-sm) var(--roxy-space-md);border-block-start:1px solid var(--roxy-border)}.quiet{color:var(--roxy-muted)}.roxy-chips{margin-block-start:var(--roxy-space-xs)}`],y([k({type:String,reflect:true})],Ct.prototype,"detail",2),Ct=y([L("roxy-panchang-table")],Ct);var Tt=class extends f{constructor(){super(...arguments);this.heading=""}renderData(e){let t=this.toViewModel(e),r=t.cols;return s`<div class="wrap" part="card"><header part="header"><h2>${this.heading||t.title}</h2>${t.badges.length?s`<ul class="roxy-chips" part="details">${t.badges.map(i=>s`<li>${this.t("{{label}}: {{value}}",{label:i.label,value:i.value})}</li>`)}</ul>`:o}</header>${t.summary&&!this.hideReadings?s`<p class="summary">${t.summary}</p>`:o}<div class="scroll" part="table" tabindex="0" role="region" aria-label="${t.title}"><table><caption class="roxy-label">${t.title}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col">${this.t("Position")}</th>${r.natal?s`<th scope="col">${this.t("Natal")}</th>`:o} ${r.house?s`<th scope="col" class="num">${this.t("House")}</th>`:o} ${r.motion?s`<th scope="col">${this.t("Motion")}</th>`:o} ${r.formula?s`<th scope="col">${this.t("Formula")}</th>`:o}</tr></thead><tbody>${t.rows.map(i=>this.renderRow(i,r))}</tbody></table></div>${this.renderReadings(t.rows)}</div>`}renderRow(e,t){let r=C(e.body??e.label);return s`<tr class="${e.isAngle?"angle":""}"><td class="body-cell">${r?s`<span class="glyph roxy-glyph">${r}</span>`:o}${e.label}</td><td>${this.signCell(e.sign,e.degree,e.signLabel)}</td>${t.natal?s`<td>${e.natalLongitude!=null?this.signFromLongitude(e.natalLongitude):s`—`}</td>`:o} ${t.house?s`<td class="num">${e.house!=null?e.house:s`—`}</td>`:o} ${t.motion?s`<td>${e.speed!=null?s`${$(this.effectiveLang(),e.speed,3)}${this.t("\xB0/day")}${e.isRetrograde?s`<span class="retro roxy-glyph">${ae}</span>`:o}`:s`—`}</td>`:o} ${t.formula?s`<td class="formula">${e.formula??s`—`}</td>`:o}</tr>`}signCell(e,t,r=e){let i=z(e);return s`<span class="sign">${i?s`<span class="sg roxy-glyph">${i}</span>`:o}${Fe(t)} ${r}</span>`}signFromLongitude(e){let t=Ne(e);return this.signCell(t.sign,t.degree+t.minute/60)}renderReadings(e){let t=e.filter(r=>r.interpretation).map(r=>({glyph:C(r.body??r.label)??"",label:r.label,aside:`${r.signLabel??r.sign} ${Fe(r.degree)}`.trim(),body:r.interpretation??""}));return this.renderInterpretation(t,"positions-readings","Readings")}toViewModel(e){if("asteroids"in e)return{title:this.t("Asteroids"),badges:e.houseSystem?[{label:this.t("Houses"),value:e.houseSystem}]:[],summary:e.summary,cols:{house:true,motion:true,formula:false,natal:false},rows:e.asteroids.map(r=>({body:r.name,label:x(r,"name"),sign:r.sign,signLabel:x(r,"sign"),degree:r.degree,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,interpretation:r.interpretation}))};if("lilith"in e)return{title:this.t("Black Moon Lilith"),badges:e.houseSystem?[{label:this.t("Houses"),value:e.houseSystem}]:[],summary:e.summary,cols:{house:true,motion:true,formula:false,natal:false},rows:e.lilith.map(r=>({label:this.t("{{variant}} apogee",{variant:x(r,"variant",D(r.variant))}),sign:r.sign,signLabel:x(r,"sign"),degree:r.degree,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,interpretation:r.interpretation}))};if("directed"in e)return{title:this.t("Solar arc directions"),badges:[{label:this.t("Arc"),value:`${$(this.effectiveLang(),e.solarArc,2)}\xB0`},{label:this.t("Directed to"),value:A(this.effectiveLang(),e.targetDate)}],summary:e.summary,cols:{house:false,motion:false,formula:false,natal:true},rows:e.directed.map(r=>({body:r.name,label:x(r,"name"),sign:r.sign,signLabel:x(r,"sign"),degree:r.degree,natalLongitude:r.natalLongitude,interpretation:r.interpretation}))};if("lots"in e)return{title:this.t("Arabic lots"),badges:e.sect?[{label:this.t("Sect"),value:D(e.sect)}]:[],summary:e.summary,cols:{house:false,motion:false,formula:true,natal:false},rows:e.lots.map(r=>({body:r.name,label:x(r,"name"),sign:r.sign,signLabel:x(r,"sign"),degree:r.degree,formula:r.formula,interpretation:r.interpretation}))};let t=[];return e.ascendant&&t.push({label:this.t("Ascendant"),sign:e.ascendant.sign,signLabel:x(e.ascendant,"sign"),degree:e.ascendant.degree,isAngle:true}),e.midheaven&&t.push({label:this.t("Midheaven"),sign:e.midheaven.sign,signLabel:x(e.midheaven,"sign"),degree:e.midheaven.degree,isAngle:true}),{title:this.t("Secondary progressions"),badges:[{label:this.t("Progressed to"),value:A(this.effectiveLang(),e.targetDate)},{label:this.t("Elapsed"),value:this.t("{{years}} yrs",{years:$(this.effectiveLang(),e.elapsedYears,1)})}],summary:e.summary,cols:{house:true,motion:true,formula:false,natal:false},rows:[...t,...e.planets.map(r=>({body:r.name,label:x(r,"name"),sign:r.sign,signLabel:x(r,"sign"),degree:r.degree,house:r.house,speed:r.speed,isRetrograde:r.isRetrograde,interpretation:r.interpretation}))]}}};Tt.endpoints=Sl,Tt.styles=[v,O,H,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}header{gap:var(--roxy-space-sm);display:grid}.summary{font-size:var(--roxy-text-sm)}.scroll{min-width:0;overflow-x:auto}table{width:100%}caption{caption-side:top;text-align:start;padding-block-end:var(--roxy-space-xs)}:is(th,td){white-space:nowrap}:is(th,td).num{text-align:end}.body-cell{font-weight:var(--roxy-weight-bold)}.body-cell .glyph{color:var(--roxy-accent-ink);margin-inline-end:var(--roxy-space-xs)}tr.angle td{color:var(--roxy-secondary)}.sign{align-items:baseline;gap:var(--roxy-space-xs);display:inline-flex}.sign .sg{color:var(--roxy-secondary)}.retro{color:var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold);margin-inline-start:var(--roxy-space-xs)}.formula{color:var(--roxy-muted);white-space:normal}`],y([k({type:String})],Tt.prototype,"heading",2),Tt=y([L("roxy-positions-table")],Tt);var Da=class extends f{renderData(a){let e=z(a.profectedSign),t=C(a.lordOfYear),r=z(a.lordNatalPosition?.sign);return s`<div class="wrap" part="card"><header part="header"><h2>${this.t("Annual profection")}</h2>${a.targetDate?s`<p class="roxy-label">${this.t("For")} ${A(this.effectiveLang(),a.targetDate)}</p>`:o}</header><div class="focus" part="details"><div class="age"><span class="n">${a.age}</span> <span class="roxy-label">${this.t("Age")}</span></div><span class="arrow">${this.t("Activates")}</span><div class="house"><span class="h">${this.t("House")} ${a.profectedHouse}</span> <span class="sign">${e?s`<span class="sg roxy-glyph">${e}</span>`:o}${a.profectedSign}</span></div></div><div class="lord" part="details"><span class="roxy-label">${this.t("Lord of the year")}</span> <span class="value">${t?s`<span class="sg roxy-glyph" aria-hidden="true">${t}</span>`:o}${a.lordOfYear}</span> ${a.lordNatalPosition?s`<span class="sub">${this.t("Natal")} ${r?s`<span class="sg roxy-glyph" aria-hidden="true">${r}</span>`:o}${this.t("{{sign}} \xB7 house {{house}}",{sign:a.lordNatalPosition.sign,house:a.lordNatalPosition.house})}</span>`:o}</div>${a.interpretation&&!this.hideReadings?s`<p class="interp">${a.interpretation}</p>`:o}</div>`}};Da.endpoints=Rl,Da.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}header{gap:var(--roxy-space-xs);display:grid}.focus{align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.age,.house{gap:calc(var(--roxy-space-unit) / 2);display:grid}.age{justify-items:center}.age .n{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xl);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);font-variant-numeric:tabular-nums}.arrow{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.house .h{font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold)}.house .sign{color:var(--roxy-secondary);font-size:var(--roxy-text-sm)}.sg{margin-inline-end:var(--roxy-space-xs)}.lord{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;padding-block-start:var(--roxy-space-sm);display:flex}.lord .value{font-weight:var(--roxy-weight-bold)}.lord .sub{color:var(--roxy-muted)}.interp{font-size:var(--roxy-text-sm)}`],Da=y([L("roxy-profection-card")],Da);var Tp=["name","english","title"],cu=new Set(["description","meaning","characteristics","tagline","definedMeaning","undefinedMeaning","motto"]);function du(n){let a=e=>typeof e=="string"?e:void 0;return z(a(n.id))??C(a(n.id))??jt(a(n.english))}var pu=new Set(["id","symbol",...Tp]),Cp=48;function hu(n){return E(n).toLowerCase().replace(/\s+/g,"-")}function mu(n){return Object.values(hr(n)).filter(a=>typeof a=="string"||typeof a=="number").map(String).join(" \xB7 ")}var Pa=class extends f{renderData(a){let e=hr(a),t=this.deriveTitle(e),r=du(e),i=typeof e.symbol=="string"&&new RegExp("\\p{L}","u").test(e.symbol)?e.symbol:void 0,l=Array.isArray(e.keywords)?e.keywords.map(String):[],c=[],d=[],p=[],h=(g,b,w)=>{if(b!=null){if(Array.isArray(b)){let S=b.filter(R=>R!=null).map(R=>typeof R=="object"?mu(R):String(R)).filter(R=>R.length>0);S.length>0&&d.push([g,S,S.some(R=>R.length>Cp)])}else if(typeof b=="string")cu.has(g)||b.length>Cp?c.push([g,b]):p.push([g,b]);else if(typeof b=="number"||typeof b=="boolean")p.push([g,String(b)]);else if(typeof b=="object"&&w<2)for(let[S,R]of Object.entries(hr(b)))h(`${g} ${S}`,R,w+1)}};for(let[g,b]of Object.entries(e))pu.has(g)||g==="keywords"&&Array.isArray(b)||h(g,b,0);let m=!this.hideReadings;return s`<article class="card" part="card" aria-label="${t}"><header class="head" part="header">${r?s`<span class="symbol roxy-glyph" aria-hidden="true">${r}</span>`:i?s`<span class="symbol" aria-hidden="true">${i}</span>`:o}<div><p class="roxy-label">${this.t("Reference")}</p><h2>${t}</h2></div></header>${l.length>0&&m?s`<ul class="roxy-chips">${l.map(g=>s`<li>${g}</li>`)}</ul>`:o} ${m?c.map(([g,b])=>s`<p class="prose"><span class="roxy-label">${X(this.effectiveLang(),g)}</span>${b}</p>`):o} ${p.length>0?s`<div part="details"><dl class="roxy-facts">${p.map(([g,b])=>s`<div><dt>${X(this.effectiveLang(),g)}</dt><dd>${b}</dd></div>`)}</dl></div>`:o} ${d.map(([g,b,w])=>w&&!m?o:s`<div class="list" part="section ${hu(g)}"><h3>${X(this.effectiveLang(),g)}</h3><ul class="roxy-chips">${b.map(S=>s`<li>${S}</li>`)}</ul></div>`)}</article>`}deriveTitle(a){for(let r of Tp)if(typeof a[r]=="string")return a[r];let e=typeof a.type=="string"?E(a.type):"",t=a.number;return t!=null?`${e} ${t}`.trim():this.t("Reference")}};Pa.endpoints=Cl,Pa.styles=[v,J,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.head{align-items:center;gap:var(--roxy-space-md);display:flex}.symbol{color:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-xl) * 1.5);flex:none;line-height:1}.prose .roxy-label{margin-block-end:calc(var(--roxy-space-unit) / 2);display:block}.list h3{margin-block-end:var(--roxy-space-xs)}.roxy-facts{margin:0}`],Pa=y([L("roxy-reference-card")],Pa);var Ep=n=>C(n)??"",_a=class extends f{renderData(a){let e=a.changes,t=["latitude","longitude"];return s`<div class="stack" part="stack"><roxy-natal-chart heading="Relocation chart" lang="${U(this.effectiveLang())}" exportparts="chart-controls, chart-dialog, card, header, tablist, tab, panel, chart, table, aspects, aspect-grid, element-modality, legend, details, section, patterns, pattern, interpretation, readings, reading, positions, distribution, houses, strongest" ?hide-readings="${this.hideReadings}" .data="${a}"></roxy-natal-chart><section class="changes" part="card changes"><h2>${this.t("What changes at this location")}</h2>${a.relocation?s`<dl class="roxy-facts" part="details">${t.map(r=>s`<div><dt>${X(this.effectiveLang(),r==="latitude"?"relocationLatitude":"relocationLongitude")}</dt><dd>${$(this.effectiveLang(),a.relocation[r],5)}</dd></div>`)}</dl>`:o}<div class="move" part="details">${typeof e?.distanceKm=="number"?s`<span>${Math.round(e.distanceKm)===0?this.t("Same location as birth"):this.t("{{distance}} km {{direction}} of birthplace",{distance:N(this.effectiveLang(),e.distanceKm),direction:e.direction?j(this.effectiveLang(),"direction",D(e.direction),e.direction):""})}</span>`:o} ${e?s`<span>${a.ascendant?.sign?e.ascendantSignChanged?this.t("Ascendant moves to {{sign}}",{sign:x(a.ascendant,"sign")}):this.t("Ascendant stays in {{sign}}",{sign:x(a.ascendant,"sign")}):e.ascendantSignChanged?this.t("Ascendant changes sign"):this.t("Ascendant keeps its sign")}</span>`:o}</div>${a.interpretation?.summary&&!this.hideReadings?s`<p class="summary">${a.interpretation.summary}</p>`:o} ${e?.angularPlanets?.length?s`<section part="section angular-planets"><h3>${this.t("Angular planets here")}</h3><ul class="roxy-chips">${As(e,"angularPlanets").map(({value:r,label:i})=>s`<li>${Ep(r)} ${i}</li>`)}</ul></section>`:o}<section part="section house-changes"><h3>${this.t("Planets that change house")}</h3>${e?.planetsChangedHouse?.length?s`<ul class="moves-list">${e.planetsChangedHouse.map(r=>s`<li>${Ep(r.planet)} ${this.t("{{planet}}: house {{from}} to {{to}}",{planet:x(r,"planet"),from:r.natalHouse,to:r.relocatedHouse})}</li>`)}</ul>`:s`<p class="empty-note">${this.t("No planet changes house at this location.")}</p>`}</section></section></div>`}};_a.endpoints=Tl,_a.styles=[v,J,u`.stack{gap:var(--roxy-space-md);display:grid}.changes{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,p{margin:0}.changes section{gap:var(--roxy-space-xs);display:grid}.move{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.summary,.moves-list{font-size:var(--roxy-text-sm)}.moves-list{gap:calc(var(--roxy-space-unit) / 2);margin:0;padding:0;list-style:none;display:grid}.empty-note{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}`],_a=y([L("roxy-relocation-wheel")],_a);function gu(n,a){let e=atob(n),t=new Uint8Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return new Blob([t],{type:a})}var wn=class{constructor(a,e){this.host=a;this.type=e;this.revokedOnDisconnect=false;a.addController(this)}urlFor(a){return this.url&&this.source===a?this.url:(this.revoke(),this.url=URL.createObjectURL(gu(a,this.type)),this.source=a,this.url)}hostConnected(){this.revokedOnDisconnect&&(this.revokedOnDisconnect=false,this.host.requestUpdate())}hostDisconnected(){this.revokedOnDisconnect=this.url!==void 0,this.revoke()}revoke(){this.url&&URL.revokeObjectURL(this.url),this.url=void 0,this.source=void 0}};var yu=/[\\/:*?"<>|]+/g;function uu(n){switch(n.status){case 400:return"Check the details and try again.";case 403:return n.code==="origin_not_allowed"?"This website is not allowed to use this key.":void 0;case 429:return"Too many requests. Try again shortly.";case 503:return"Busy right now. Try again in a moment.";default:return}}function fu(n){let a=qn(n.color),e=qn(n.accent),t={...n.name?{name:n.name}:{},...n.logo?{logo:n.logo}:{},...n.footer?{footer:n.footer}:{},...a||e?{colors:{...a?{primary:a}:{},...e?{accent:e}:{}}}:{},...us(n.font)?{font:n.font}:{},...Ql(n.theme)?{theme:n.theme}:{}};return Object.keys(t).length>0?t:void 0}var Ce=class extends f{constructor(){super(...arguments);this.format="pdf";this.pdfUrl=new wn(this,"application/pdf");this.fitFrame=e=>{let t=e.currentTarget,r=t.contentDocument?.documentElement;if(!r)return;let i=()=>{let l=t.offsetHeight-t.clientHeight;t.style.blockSize=`${Math.ceil(r.getBoundingClientRect().height)+l}px`};i(),this.frameObserver?.disconnect(),this.frameObserver=new ResizeObserver(i),this.frameObserver.observe(r)}}ownRequest(){return{format:this.format==="html"?"html":"pdf",branding:fu({name:this.brandName,logo:this.brandLogo,footer:this.brandFooter,color:this.brandColor,accent:this.brandAccent,font:this.font,theme:this.theme}),readings:this.hideReadings?false:void 0}}disconnectedCallback(){super.disconnectedCallback(),this.frameObserver?.disconnect(),this.frameObserver=void 0}renderData(e){if(e.html)return this.renderDocument(e.html,e.title);if(!e.pdf)return this.renderEmpty();let t=(e.title||this.report||e.template).replace(yu," ");return s`<article class="card" part="card"><h2 part="header">${e.title}</h2><a class="download" part="download" href="${this.pdfUrl.urlFor(e.pdf)}" download="${`${t}.pdf`}">${this.t("Download PDF")}</a></article>`}renderDocument(e,t){return s`<iframe class="document" part="document" title="${t}" sandbox="allow-same-origin" srcdoc="${e}" @load="${this.fitFrame}"></iframe>`}renderLoading(){return s`<div class="busy" role="status" aria-busy="true" part="loading"><span class="roxy-skeleton"></span><p>${this.t("Preparing your report")}</p></div>`}renderError(e){let t=uu(this.failure);return t?s`<p class="lead" role="alert">${this.t(t)}</p>${super.renderError(e)}`:super.renderError(e)}};Ce.endpoints=El,Ce.styles=[v,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);justify-items:start;display:grid}h2{margin:0}.download{min-block-size:var(--roxy-touch);padding:var(--roxy-space-sm) var(--roxy-space-lg);background:var(--roxy-accent-ink);color:var(--roxy-bg);border-radius:var(--roxy-radius-md);font-weight:var(--roxy-weight-bold);align-items:center;text-decoration:none;display:inline-flex}.document{border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);background:var(--roxy-surface);inline-size:100%;display:block}.busy{gap:var(--roxy-space-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);display:grid}.busy .roxy-skeleton{block-size:2lh}.busy p,.lead{margin:0}.lead{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold);margin-block-end:var(--roxy-space-sm)}`],y([k({type:String})],Ce.prototype,"report",2),y([k({type:String})],Ce.prototype,"format",2),y([k({type:String,attribute:"brand-name"})],Ce.prototype,"brandName",2),y([k({type:String,attribute:"brand-logo"})],Ce.prototype,"brandLogo",2),y([k({type:String,attribute:"brand-footer"})],Ce.prototype,"brandFooter",2),y([k({type:String})],Ce.prototype,"theme",2),Ce=y([L("roxy-report")],Ce);var Ji=[{key:"sthanaBala",source:"Sthana",color:"var(--roxy-info)"},{key:"digBala",source:"Dig",color:"var(--roxy-success)"},{key:"kalaBala",source:"Kala",color:"var(--roxy-warning)"},{key:"chestaBala",source:"Chesta",color:"var(--roxy-accent)"},{key:"naisargikaBala",source:"Naisargika",color:"var(--roxy-secondary)"},{key:"drikBala",source:"Drik",color:"var(--roxy-danger)"}],Ma=class extends f{renderData(a){if(!a.planets?.length)return this.renderEmpty();let e=[...a.planets].sort((t,r)=>t.relativeRank-r.relativeRank);return s`<div class="wrap" part="card" aria-label="${this.t("Shadbala planetary strength")}"><div class="head" part="header"><h2 class="title">${this.t("Shadbala")}</h2><p class="subtitle">${this.t("{{count}} planets ranked by strength",{count:e.length})}</p>${W(this.effectiveLang(),a.frame,this.translator)}</div><div role="list" part="chart bars" aria-label="${this.t("Planet strength bars")}">${e.map(t=>this.renderPlanetRow(t))}</div><div class="legend" part="legend" aria-label="${this.t("Strength component legend")}">${Ji.map(t=>s`<div class="legend-row"><span class="legend-swatch" style="background:${t.color}" aria-hidden="true"></span> ${this.t("{{component}} Bala",{component:this.t(t.source)})}</div>`)}</div><p class="footnote" part="legend">${this.t("Ishta Phala is the capacity to give benefic results, Kashta Phala the capacity to give malefic ones. Both are in virupas and are read together, since a planet can be strong and still deliver hardship.")}</p></div>`}renderPlanetRow(a){let e=C(a.planet)??"",t=Ji.map(p=>Math.max(0,a[p.key])),r=t.reduce((p,h)=>p+h,0),i=typeof a.strengthRatio=="number"&&a.strengthRatio>=1,l=i?"adequacy-badge--adequate":"adequacy-badge--weak",c=i?this.t("Adequate"):this.t("Weak"),d=$(this.effectiveLang(),a.totalRupas,2)&&$(this.effectiveLang(),a.minRequired,2)?`${$(this.effectiveLang(),a.totalRupas,2)} / ${$(this.effectiveLang(),a.minRequired,2)} R`:"";return s`<div class="planet-row" role="listitem" aria-label="${this.t("{{planet}} Shadbala",{planet:a.planet})}"><div class="planet-label"><span class="glyph roxy-glyph" aria-hidden="true">${e}</span> ${a.planet} <span class="rank-badge" aria-label="${this.t("rank {{n}}",{n:a.relativeRank})}">#${a.relativeRank}</span></div><div class="bar-wrap"><div class="bar" role="img" aria-label="${this.t("Strength components for {{planet}}",{planet:a.planet})}">${r>0?Ji.map((p,h)=>{let m=t[h];if(m<=0)return o;let g=m/r*100;return s`<div class="bar-segment" style="flex-grow:${g};background:${p.color}" title="${this.t("{{component}} {{value}} virupas",{component:this.t(p.source),value:$(this.effectiveLang(),m,1)})}"></div>`}):o}</div>${this.renderPhala(a)}</div><div class="pills">${d?s`<span class="rupas-label">${d}</span>`:o} <span class="${`adequacy-badge ${l}`}">${c}</span></div></div>`}renderPhala(a){let e=typeof a.ishtaPhala=="number"?a.ishtaPhala:0,t=typeof a.kashtaPhala=="number"?a.kashtaPhala:0;if(e+t<=0)return o;let r=$(this.effectiveLang(),e,1)||"0",i=$(this.effectiveLang(),t,1)||"0";return s`<div class="phala" role="img" aria-label="${this.t("Ishta Phala {{ishta}}, Kashta Phala {{kashta}} virupas",{ishta:r,kashta:i})}"><span class="phala-ishta" style="flex-grow:${e}"></span> <span class="phala-kashta" style="flex-grow:${t}"></span></div><div class="phala-label"><span>${this.t("Ishta {{value}}",{value:r})}</span> <span>${this.t("Kashta {{value}}",{value:i})}</span></div>`}};Ma.endpoints=Al,Ma.styles=[v,B,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.subtitle,.footnote{margin:0}.subtitle{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.planet-row{align-items:center;gap:var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);grid-template-columns:14ch minmax(0,1fr) auto;display:grid}.planet-row:last-of-type{border-block-end:0}.planet-label{align-items:center;gap:var(--roxy-space-xs);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);display:flex}.glyph{font-size:var(--roxy-text-base);line-height:1}.bar-wrap,.pills{gap:var(--roxy-space-xs);flex-direction:column;display:flex}.pills{align-items:flex-end}.bar{border-radius:var(--roxy-radius-sm);background:var(--roxy-border);block-size:.5lh;display:flex;overflow:hidden}.bar-segment{height:100%;transition:flex-grow var(--roxy-motion-duration) var(--roxy-motion-easing)}.rupas-label{font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;color:var(--roxy-muted);white-space:nowrap}.phala{border-radius:var(--roxy-radius-full);background:var(--roxy-border);block-size:.25lh;display:flex;overflow:hidden}.phala-ishta{background:var(--roxy-success)}.phala-kashta{background:var(--roxy-danger)}.phala-label{justify-content:space-between;gap:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);font-variant-numeric:tabular-nums;display:flex}.footnote{font-size:var(--roxy-text-xs);color:var(--roxy-muted)}.adequacy-badge{font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}.adequacy-badge--adequate{color:var(--roxy-success-fg)}.adequacy-badge--weak{color:var(--roxy-danger-fg)}.rank-badge{font-size:var(--roxy-text-xs);color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.legend{gap:var(--roxy-space-sm) var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);flex-wrap:wrap;padding-block-start:var(--roxy-space-sm);display:flex}.legend-row{align-items:center;gap:var(--roxy-space-xs);font-size:var(--roxy-text-xs);color:var(--roxy-muted);display:flex}.legend-swatch{aspect-ratio:1;border-radius:var(--roxy-radius-sm);flex-shrink:0;block-size:.6lh;display:inline-block}@container (width<=480px){.planet-row{grid-template-rows:auto auto;grid-template-columns:12ch minmax(0,1fr)}.pills{flex-direction:row;grid-column:1/-1;justify-content:flex-start;align-items:center}}`],Ma=y([L("roxy-shadbala-table")],Ma);function Np(n){let a=n?.ascendant;if(!a)return;let e=re.findIndex(t=>t.toLowerCase()===a.sign.toLowerCase());return e<0?void 0:e*30+a.degree}var eo=680,Z=eo/2,kn=204,xu=186,Ap=160,Dp=258,bu=212,Qi=224,Sn=86,Rn={glyph:18,degree:10},vu=1.3,Lu=.95,Pp=8,_p=4;function Na(n,a){return 180+n.ascendant-a}function zp(n,a={}){let e={t:Ve(a.lang),locale:a.lang,size:a.typeSize??Rn,ascendant:Np(n.person1)??0},t=n.person1?.planets??[],r=n.person2?.planets??[];return T`<svg class="synastry-wheel" xmlns=${Ue} viewBox=${`0 0 ${eo} ${eo}`} part="chart" role="img" aria-label=${e.t("Dual chart wheel comparing two natal charts")}><title>${e.t("Synastry dual wheel")}</title>
|
|
126
|
+
<circle class="wheel-line" cx=${Z} cy=${Z} r=${kn} stroke-width="1.5" />
|
|
127
|
+
<circle class="wheel-line" cx=${Z} cy=${Z} r=${kn-32} stroke-width="0.8" />
|
|
128
|
+
<circle class="wheel-line" cx=${Z} cy=${Z} r=${Sn} stroke-width="0.6" />
|
|
129
|
+
${$u(e)} ${wu(e)}
|
|
130
|
+
${Su(e,t,r,n.interAspects??[])}
|
|
131
|
+
${Mp(e,t,Ap,(i,l,c)=>Ap-ct(i,l,c,Ye),"p1",1)} ${Mp(e,r,Dp,(i,l,c)=>Dp+ct(i,l,c,Ye),"p2",2)}
|
|
132
|
+
${ku(e,n)}
|
|
133
|
+
</svg>`.markup}function $u(n){return Array.from({length:12},(a,e)=>{let t=Na(n,e*30),r=P(Z,Z,Sn,t),i=P(Z,Z,kn,t);return T`<line class="wheel-line" x1=${r.x} y1=${r.y} x2=${i.x} y2=${i.y} stroke-width="0.6" />`})}function wu(n){return re.map((a,e)=>{let t=Na(n,e*30+15),r=P(Z,Z,xu,t);return T`<text class="sign roxy-glyph" x=${r.x} y=${r.y} text-anchor="middle" dominant-baseline="central">${z(a)}</text>`})}function Mp(n,a,e,t,r,i){let l={width:vu*n.size.glyph,height:Lu*n.size.glyph},c=h=>({width:(De.whole+(h.isRetrograde===true?De.retrograde:0))*n.size.degree,height:De.ink*n.size.degree}),d=Pe(l.width,e);return ze(a,h=>h.longitude,(h,m)=>Math.max(d,Pe((c(h).width+c(m).width)/2,t(90,l,c(h))))).map(({item:h,longitude:m,displayLongitude:g})=>{let b=Na(n,g),w=P(Z,Z,e,b),S=P(Z,Z,t(b,l,c(h)),b),R=C(h.name)??x(h,"name"),_=h.isRetrograde===true,q=typeof h.house=="number"?` \xB7 ${n.t("House {{n}}",{n:h.house})}`:"",le=`${x(h,"name")}${_?` ${n.t("retrograde")}`:""} - ${Ae(m)} ${x(h,"sign")}${q}`,Le=Math.abs(g-m)>.5,je=P(Z,Z,e+(i===1?Pp:-Pp),Na(n,m)),et=P(Z,Z,e+(i===1?_p:-_p),b);return T`<g>
|
|
134
134
|
${Le?T`<line class=${`leader ${r}`} x1=${je.x} y1=${je.y} x2=${et.x} y2=${et.y} />`:""}
|
|
135
135
|
<text class=${r} x=${w.x} y=${w.y} text-anchor="middle" dominant-baseline="central"><title>${le}</title><tspan class="roxy-glyph">${R}</tspan><tspan class="person-tag" dy="-0.55em" dx="0.15em">${i}</tspan></text>
|
|
136
|
-
<text class="planet-deg" x=${S.x} y=${S.y} text-anchor="middle" dominant-baseline="central">${
|
|
137
|
-
</g>`})}function
|
|
136
|
+
<text class="planet-deg" x=${S.x} y=${S.y} text-anchor="middle" dominant-baseline="central">${Ne(m).degree}°${_?T`<tspan class="retro roxy-glyph"> ${ae}</tspan>`:""}</text>
|
|
137
|
+
</g>`})}function ku(n,a){let e=[a.person1,a.person2].flatMap((t,r)=>{let i=Np(t);return i===void 0?[]:[{longitude:i,index:r+1}]});return ze(e,t=>t.longitude,Pe(34,Qi)).map(({item:t,longitude:r,displayLongitude:i})=>{let l=Na(n,r),c=Na(n,i),d=P(Z,Z,kn,l),p=P(Z,Z,bu,l),h=P(Z,Z,Qi,c),m=P(Z,Z,Qi-7,c);return T`<g>
|
|
138
138
|
<line class="asc-tick" x1=${d.x} y1=${d.y} x2=${p.x} y2=${p.y} />
|
|
139
139
|
${Math.abs(i-r)>.5?T`<line class="asc-tick" x1=${p.x} y1=${p.y} x2=${m.x} y2=${m.y} />`:""}
|
|
140
140
|
<text class="asc-label" x=${h.x} y=${h.y} text-anchor="middle" dominant-baseline="central">${n.t("ASC{{n}}",{n:t.index})}</text>
|
|
141
|
-
</g>`})}function wu(n,a,e,t){let r=(i,l)=>{let c=D(l);for(let d of i)if(D(d.name)===c&&typeof d.longitude=="number")return d.longitude};return t.filter(ot).map(i=>{let l=r(a,i.planet1),c=r(e,i.planet2);if(l===void 0||c===void 0)return"";let d=P(Z,Z,wn-2,Na(n,l)),p=P(Z,Z,wn-2,Na(n,c)),{locale:h}=n,m=$(h,i.orb,1);return T`<line class=${`aspect ${de(i)}`} style=${fr(i)} x1=${d.x} y1=${d.y} x2=${p.x} y2=${p.y}><title>${x(i,"planet1")} ${x(i,"type",se(i))} ${x(i,"planet2")}${m?` (${n.t("Orb")} ${m}\xB0)`:""}</title></line>`})}var ku=12,za=class extends f{constructor(){super(...arguments);this.viewport=new ne(this);this.type=new Aa(this,{glyph:[".p1",kn.glyph],degree:[".planet-deg",kn.degree]})}renderData(e){let{person1:t,person2:r,compatibilityScore:i,analysis:l}=e,c=e.interAspects??[],d=t?.planets??[],p=r?.planets??[],h=typeof i=="number"?Math.round(i):void 0,m=l?.overall,g=l?.strengths??[],b=l?.challenges??[],w=d.length>0&&p.length>0,S=[...c].sort((_,q)=>(q.strength??0)-(_.strength??0)),R=S.slice(0,ku);return s`<div class="wrap synastry-wheel" part="card" aria-label="${this.t("Synastry compatibility chart")}"><div class="head" part="header"><h2>${this.t("Synastry")}</h2>${typeof h=="number"?s`<span class="score" aria-label="${this.t("Score {{score}} of 100",{score:h})}">${h} / 100</span>`:o}</div>${this.renderPeople(t,r)} ${w?s`${this.viewport.renderChartViewport(ke(Mp(e,{lang:this.effectiveLang(),typeSize:this.type.size})),this.t("Synastry dual wheel"),this.translator)}<div class="legend" part="legend"><span><span class="person-dot p1"></span>${this.t("Person 1")}</span> <span><span class="person-dot p2"></span>${this.t("Person 2")}</span> <span><span class="aspect-swatch aspect-trine"></span>${this.t("Harmonious aspects")}</span> <span><span class="aspect-swatch aspect-square"></span>${this.t("Challenging aspects")}</span> <span>${this.t("Sign sectors, not houses")}</span></div>`:s`<p role="status">${this.t("Synastry response missing planet positions.")} ${this.t("A current {{endpoint}} response carries {{first}} and {{second}}, and the inter-aspect readings below still work without them.",{endpoint:"/astrology/synastry",first:"person1.planets",second:"person2.planets"})}</p>`} ${this.renderOverlay(t,r)} ${this.renderSummaryCounts(e.summary)} ${m&&!this.hideReadings?s`<p class="summary">${m}</p>`:o} ${R.length>0?s`<section class="block" part="section inter-aspects"><h3>${this.t("Inter-aspects")}</h3>${R.map((_,q)=>this.renderAspectCard(_,q))}</section>`:o} ${S.length>R.length?this.renderCatalog(S):o} ${!this.hideReadings&&(g.length>0||b.length>0)?s`<div class="lists" part="section strengths-challenges">${g.length?s`<div><h3>${this.t("Strengths")}</h3><ul>${g.map(_=>s`<li>${_}</li>`)}</ul></div>`:o} ${b.length?s`<div><h3>${this.t("Challenges")}</h3><ul>${b.map(_=>s`<li>${_}</li>`)}</ul></div>`:o}</div>`:o}</div>`}renderPeople(e,t){let r=(l,c)=>{if(!l)return o;let d=l.ascendant,h=[["Sun",l.sunSign??"",x(l,"sunSign")],["Moon",l.moonSign??"",x(l,"moonSign")],["ASC",d?.sign??"",d?`${x(d,"sign")} ${Fe(d.degree)}`:""]].filter(([,,m])=>m);return h.length===0?o:s`<div class="person"><span class="person-name"><span class="person-dot p${c}" aria-hidden="true"></span>${l.name||this.t("Person {{n}}",{n:c})}</span><div class="big-three">${h.map(([m,g,b])=>s`<span><span class="roxy-label">${this.t(m)}</span> <span class="roxy-glyph" aria-hidden="true">${z(g)??""}</span> ${b}</span>`)}</div></div>`},i=[r(e,1),r(t,2)].filter(l=>l!==o);return i.length===0?o:s`<div class="people" part="details">${i}</div>`}renderOverlay(e,t){if(!e?.planets?.length||!t?.planets?.length)return o;let r=(c,d)=>c?.name||this.t("Person {{n}}",{n:d}),i=r(e,1),l=r(t,2);return s`<section class="block" part="section house-overlay"><h3>${this.t("Houses")}</h3>${this.renderOverlayTable(e.planets,i,l,1)} ${this.renderOverlayTable(t.planets,l,i,2)}</section>`}renderOverlayTable(e,t,r,i){let l=e.filter(d=>typeof d.houseInOtherChart=="number");if(l.length===0)return o;let c=`overlay-${i}`;return s`<div class="overlay-dir"><h4 id="${c}"><span class="person-dot p${i}" aria-hidden="true"></span>${this.t("{{first}} in the houses of {{second}}",{first:t,second:r})}</h4><div class="scroll" part="table" tabindex="0" role="region" aria-labelledby="${c}"><table aria-labelledby="${c}"><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Own house")}</th></tr></thead><tbody>${l.map(d=>s`<tr><td><span class="roxy-glyph" aria-hidden="true">${C(d.name)??""}</span> ${x(d,"name")}${d.isRetrograde?s`<span class="retro roxy-glyph" title="${this.t("retrograde")}">${ae}</span>`:o}</td><td><span class="roxy-glyph" aria-hidden="true">${z(d.sign)??""}</span> ${x(d,"sign")}</td><td>${Fe(d.degree)}</td><td class="overlay-house">${d.houseInOtherChart}</td><td class="own-house">${d.house??""}</td></tr>`)}</tbody></table></div></div>`}renderSummaryCounts(e){if(!e||typeof e!="object")return o;let t=Object.entries(e.byType??{}).sort((r,i)=>i[1]-r[1]);return typeof e.total!="number"&&t.length===0?o:s`<p class="counts" part="details" role="region" aria-label="${this.t("Inter-aspect summary")}">${typeof e.total=="number"?s`<span>${this.t("{{label}}: {{value}}",{label:this.t("Total"),value:e.total})}</span>`:o} <span class="harmonious">${this.t("Harmonious: {{count}}",{count:e.harmonious})}</span> <span class="challenging">${this.t("Challenging: {{count}}",{count:e.challenging})}</span> <span>${this.t("Neutral: {{count}}",{count:e.neutral})}</span> ${t.map(([r,i])=>s`<span>${this.t("{{label}}: {{value}}",{label:se({type:r}),value:i})}</span>`)}</p>`}renderAspectCard(e,t){let r=C(e.planet1)??"",i=C(e.planet2)??"",l=e.meaning,c=s`<span class="interp-lead"><span aria-hidden="true" class="glyph roxy-glyph">${r}</span>${x(e,"planet1")} <span class="asp-name ${de(e)}">${x(e,"type",se(e))}</span> <span aria-hidden="true" class="glyph roxy-glyph">${i}</span>${x(e,"planet2")}</span>`,d=s`<span class="interp-aside"><small>${this.t("orb {{orb}}\xB0 \xB7 str {{strength}}",{orb:$(this.effectiveLang(),e.orb,2),strength:$(this.effectiveLang(),e.strength,0)})}</small></span>`;return this.hideReadings||!l?.relationshipContext&&!l?.description?.short&&!l?.description?.long&&!l?.keywords?.length?s`<div class="interp-card" part="reading"><div class="static-head">${c}${d}</div></div>`:s`<details class="interp-card" part="reading" name="synastry-aspects" ?open="${t===0}"><summary>${c}${V()}${d}</summary>${this.renderAspectMeaning(l)}</details>`}renderAspectMeaning(e){return s`<div class="interp-body">${e.relationshipContext?s`<p><span class="context">${this.t("In this pairing")}</span> ${e.relationshipContext}</p>`:o} ${e.description?.short?s`<p>${e.description.short}</p>`:o} ${e.description?.long&&e.description.long!==e.description.short?s`<p>${e.description.long}</p>`:o} ${rt(e.keywords)}</div>`}renderCatalog(e){return s`<details class="catalog" part="section aspects inter-aspects"><summary>${V()} ${this.t("All {{count}} inter-aspects",{count:e.length})}</summary><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Inter-aspects")}">${this.renderAspects(e)}</div></details>`}renderAspects(e){return s`<table><caption class="roxy-sr-only">${this.t("Inter-chart aspects: the planet from chart 1, the planet from chart 2, the aspect between them, the orb in degrees and the strength.")}</caption><thead><tr><th scope="col">${this.t("Planet 1")}</th><th scope="col">${this.t("Planet 2")}</th><th scope="col">${this.t("Aspect")}</th><th scope="col">${this.t("Orb")}</th><th scope="col">${this.t("Strength")}</th>${this.hideReadings?o:s`<th scope="col">${this.t("Reading")}</th>`}</tr></thead><tbody>${e.map(t=>s`<tr><td>${x(t,"planet1")}</td><td>${x(t,"planet2")}</td><td>${x(t,"type",se(t))}</td><td class="orb">${$(this.effectiveLang(),t.orb,1)}</td><td>${$(this.effectiveLang(),t.strength,0)}</td>${this.hideReadings?o:s`<td>${t.meaning?s`<details part="reading"><summary>${V()} ${this.t("Reading")}</summary>${this.renderAspectMeaning(t.meaning)}</details>`:o}</td>`}</tr>`)}</tbody></table>`}};za.endpoints=El,za.styles=[v,pe,xr,O,H,Oc,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,h4,p,ul{margin:0}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.score{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xl);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}svg:where([part~=chart]){width:100%;max-width:var(--roxy-chart-max-width,50rem);aspect-ratio:1;height:auto;margin:0 auto;display:block}.legend,.counts{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-xs);color:var(--roxy-muted);flex-wrap:wrap;display:flex}.counts{font-size:var(--roxy-text-sm);color:var(--roxy-fg)}.person-dot{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);background:var(--_person);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.harmonious{color:var(--roxy-info-fg)}.challenging{color:var(--roxy-danger-fg)}.people,.lists{gap:var(--roxy-space-sm) var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,28ch),1fr));display:grid}.person,.lists>div{gap:var(--roxy-space-xs);align-content:start;display:grid}.person-name{font-weight:var(--roxy-weight-bold)}.big-three{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.lists ul{font-size:var(--roxy-text-sm);padding-inline-start:var(--roxy-space-md)}.overlay-dir{gap:var(--roxy-space-xs);display:grid}.overlay-dir+.overlay-dir{margin-block-start:var(--roxy-space-md)}.overlay-house{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.own-house,.retro{color:var(--roxy-muted)}.retro{margin-inline-start:var(--roxy-space-xs)}.glyph{line-height:1}.static-head{align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.asp-name,.context{font-weight:var(--roxy-weight-bold)}.catalog>summary{align-items:center;gap:var(--roxy-space-sm);font-weight:var(--roxy-weight-bold);font-size:var(--roxy-text-sm);display:flex}.scroll{min-width:0;overflow-x:auto}.catalog .scroll{margin-block-start:var(--roxy-space-sm)}table{width:100%}td.orb{color:var(--roxy-muted)}td .interp-body{white-space:normal;min-width:32ch}`],za=y([L("roxy-synastry-chart")],za);function ar(n,a){return j(n,"arcana",a,`${D(a)} Arcana`)}function Yr(n,a){return j(n,"suit",a,D(a))}var Sn=[["love","Love"],["career","Career"],["finances","Finance"],["health","Health"],["spirituality","Spiritual"]],wr=u`.card-art{aspect-ratio:600/1072}`;var Et=class extends f{constructor(){super(...arguments);this.orientation="upright"}renderData(e){return"card"in e?this.renderDailyCard(e):this.renderFullCard(e)}renderDailyCard(e){let t=e.card,r=!!t.reversed,i=t.keywords??[],l=this.effectiveLang(),c=[t.arcana?ar(l,t.arcana):"",t.suit?Yr(l,t.suit):""].filter(Boolean).join(" \xB7 "),d=!this.hideReadings;return s`<article class="card" part="card" aria-label="${t.name??this.t("Tarot card")}">${this.renderImage(t.imageUrl,t.name,r)}<div part="header"><div class="meta roxy-label">${c?`${c} \xB7 `:""}<span class="drawn">${r?this.t("drawn reversed"):this.t("drawn upright")}</span></div><h2>${t.name??this.t("Tarot card")}</h2>${e.dailyMessage&&d?s`<p class="message">${e.dailyMessage}</p>`:o} ${t.meaning&&d?s`<p class="reading">${t.meaning}</p>`:o} ${i.length>0&&d?s`<ul class="roxy-chips">${i.map(p=>s`<li>${p}</li>`)}</ul>`:o} ${this.renderGuidance(t,"tarot-daily-guidance")}</div></article>`}renderFullCard(e){let t=this.orientation==="reversed",r=t?e.reversed:e.upright,i=(t?e.keywords?.reversed:e.keywords?.upright)??r?.keywords??[],l=!this.hideReadings;return s`<article class="card" part="card" aria-label="${e.name??this.t("Tarot card")}">${this.renderImage(e.imageUrl,e.name,t)}<div part="header"><div class="meta roxy-label">${[e.arcana?ar(this.effectiveLang(),e.arcana):"",e.suit?Yr(this.effectiveLang(),e.suit):"",e.number!==void 0&&e.number!==null?this.t("no. {{number}}",{number:e.number}):""].filter(Boolean).join(" \xB7 ")}</div><h2>${e.name??this.t("Tarot card")}</h2>${ue({items:[{id:"upright",label:this.t("Upright")},{id:"reversed",label:this.t("Reversed")}],active:this.orientation,onSelect:c=>{this.orientation=c},label:this.t("Card orientation"),idPrefix:"tarot",controls:true})}<div id="tarot-panel-${this.orientation}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="tarot-tab-${this.orientation}">${r?.description&&l?s`<p class="reading">${r.description}</p>`:o} ${i.length>0&&l?s`<ul class="roxy-chips">${i.map(c=>s`<li>${c}</li>`)}</ul>`:o} ${this.renderGuidance(r,`tarot-${this.orientation}-guidance`)}</div></div></article>`}renderImage(e,t,r){let i=`image ${r?"reversed":""}`;return e?s`<img class="${i}" part="chart" src="${e}" alt="${t??this.t("Tarot card")}">`:s`<div class="${i} card-art" part="chart" style="display:flex;align-items:center;justify-content:center;color:var(--roxy-muted)">${t??"?"}</div>`}renderGuidance(e,t){if(!e)return o;let r=Sn.map(([i,l])=>({label:this.t(l),body:e[i]??""}));return this.renderInterpretation(r,t,"Guidance")}};Et.endpoints=Al,Et.styles=[v,wr,O,H,ge,u`.card{align-items:start;gap:var(--roxy-space-lg);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,6lh) minmax(0,1fr);display:grid}@container (width<=480px){.card{grid-template-columns:minmax(0,1fr)}}h2,p{margin:0}.image{border-radius:var(--roxy-radius-md);background:var(--roxy-border);width:100%;height:auto;transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.image.reversed{transform:rotate(180deg)}.meta{margin-block-end:var(--roxy-space-sm)}.drawn{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.message{margin-block:var(--roxy-space-sm) var(--roxy-space-md)}.reading{white-space:pre-line;margin-block-end:var(--roxy-space-md)}.roxy-tablist{margin-block:var(--roxy-space-sm)}.roxy-chips{margin-block-start:var(--roxy-space-sm)}`],y([I()],Et.prototype,"orientation",2),Et=y([L("roxy-tarot-card")],Et);var At=class extends f{constructor(){super(...arguments);this.heading="";this.rowDetail={tag:"roxy-tarot-card",path:"tarot/cards/{id}"};this.listKey="cards"}renderData(e){let t=e.cards??[];if(t.length===0)return this.renderEmpty();let r=this.heading||this.t("Tarot deck"),i=typeof e.total=="number"?e.total:t.length,l=this.effectiveLang();return s`<section class="wrap" part="card" aria-label="${r}"><header class="head" part="header"><h2>${r}</h2><span class="count">${i===1?this.t("1 card"):this.t("{{count}} cards",{count:i})}</span></header><ul class="grid" part="section cards">${t.map(c=>s`<li><button type="button" class="tile" aria-pressed="${this.openedRowId===c.id?"true":"false"}" @click="${()=>this.pickRow({id:c.id,name:c.name})}">${c.imageUrl?s`<img class="art card-art" src="${c.imageUrl}" alt="${c.name??this.t("Tarot card")}" loading="lazy">`:s`<div class="art card-art" aria-hidden="true"></div>`}<p class="name">${c.name}</p><p class="meta">${Su(l,c)}</p></button></li>`)}</ul>${this.renderMore()} ${this.openedRow?s`<div class="detail" part="detail">${this.openedRow}</div>`:o}</section>`}};At.endpoints=Dl,At.styles=[v,wr,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.count{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.grid{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fill,minmax(min(100%,14ch),1fr));margin:0;padding:0;list-style:none;display:grid}.tile{gap:var(--roxy-space-xs);width:100%;padding:var(--roxy-space-xs);color:inherit;border-radius:var(--roxy-radius-md);text-align:start;cursor:pointer;transition:border-color var(--roxy-motion-duration) var(--roxy-motion-easing);background:0 0;border:1px solid #0000;display:grid}.tile[aria-pressed=true],.tile:hover{border-color:var(--roxy-accent)}.detail{margin-block-start:var(--roxy-space-md)}.art{border-radius:var(--roxy-radius-sm);object-fit:cover;background:var(--roxy-border);width:100%}.name{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}`],y([k({type:String,reflect:true})],At.prototype,"heading",2),At=y([L("roxy-tarot-catalog")],At);function Su(n,a){let e=ar(n,a.arcana);return a.suit?`${e} \xB7 ${Yr(n,a.suit)}`:e}var Ru={love:"love",career:"career"};function Cu(n){return(n??"").split(/\n\s*\n/).map(a=>a.trim()).filter(Boolean)}function Tu(n){return n&&n.charAt(0).toUpperCase()+n.slice(1)}var Dt=class extends f{constructor(){super(...arguments);this.spread="three-card"}renderData(e){let t="answer"in e,r="cards"in e&&!("spread"in e),i=r?[]:"positions"in e?e.positions??[]:[],l=r&&"cards"in e?e.cards:[],c=t?e:void 0,d=x(c,"strength"),p=c?.card,h=t?this.t("Yes or no"):r?this.t("Card draw"):Tu(("spread"in e?e.spread:"")||this.spread.replace(/-/g," ")),m="question"in e?e.question:void 0,g="summary"in e?e.summary:void 0,b=c?.interpretation,w=c?.answer?c.answer.toLowerCase():"";return s`<article class="wrap" part="card" aria-label="${this.t("Tarot spread")}"><header class="head" part="header"><h2 class="title">${h}</h2>${m?s`<span class="question">"${m}"</span>`:o}</header>${t?s`<div class="verdict" part="section verdict"><div class="card"><div class="image card-art" part="chart">${p?.imageUrl?s`<img src="${p.imageUrl}" alt="${p.name??this.t("Tarot card")}" class="${p.reversed?"reversed":""}">`:s`${p?.name??"?"}`}</div><p class="name">${p?.name??""} ${p?.reversed?s`<small>${this.t("(reversed)")}</small>`:o}</p>${p?.arcana?s`<p class="roxy-label">${ar(this.effectiveLang(),p.arcana)}</p>`:o}</div><div class="meta" part="details"><div><span class="${`answer ${w}`}">${x(c,"answer")}</span> ${d?s`<small>· ${d}</small>`:o}</div>${p?.keywords&&p.keywords.length>0&&!this.hideReadings?s`<ul class="roxy-chips">${p.keywords.map(S=>s`<li>${S}</li>`)}</ul>`:o}</div></div>`:o} ${i.length>0?s`<ul class="${this.hideReadings?"rows cast":"rows"}" part="section positions">${i.map(S=>this.renderDrawn(S.card,S.name,S.interpretation))}</ul>`:o} ${l.length>0?s`<ul class="${this.hideReadings?"rows cast":"rows"}" part="section cards">${l.map(S=>this.renderDrawn(S))}</ul>`:o} ${g&&!this.hideReadings?s`<p class="summary">${g}</p>`:o} ${b&&!this.hideReadings?s`<p>${b}</p>`:o}</article>`}renderDrawn(e,t,r){let i=Ru[this.spread],l=Cu(e.meaning),c=l.length>1?1:0,d=i?e[i]:l[c],p=i?l:l.filter((m,g)=>g!==c),h=[{label:this.t("Card meaning"),body:p[0]??"",extra:p.slice(1).map(m=>s`<p>${m}</p>`)},...Sn.filter(([m])=>m!==i).map(([m,g])=>({label:this.t(g),body:e[m]??""}))];return s`<li class="row"><div class="image card-art" part="chart">${e.imageUrl?s`<img src="${e.imageUrl}" alt="${e.name??this.t("Tarot card")}" class="${e.reversed?"reversed":""}">`:s`${e.name??"?"}`}</div><div class="row-head">${t?s`<p class="roxy-label">${t}</p>`:o}<h3>${e.name??""} ${e.reversed?s`<small>${this.t("(reversed)")}</small>`:o}</h3>${this.hideReadings?o:rt(e.keywords)}</div>${this.hideReadings?o:s`<div class="row-read">${r?s`<p class="ask">${r}</p>`:o} ${d?s`<p class="lead">${d}</p>`:o} ${this.renderInterpretation(h,`tarot-${e.id}`,"Guidance",true)}</div>`}</li>`}};Dt.endpoints=Pl,Dt.styles=[v,wr,O,H,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.title{text-transform:capitalize}.question{color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-style:italic}.answer{font-size:var(--roxy-text-xl);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight)}.answer.yes{color:var(--roxy-success-fg)}.answer.no{color:var(--roxy-danger-fg)}.answer.maybe{color:var(--roxy-warning-fg)}.verdict{align-items:start;gap:var(--roxy-space-md);grid-template-columns:minmax(0,6lh) minmax(0,1fr);display:grid}@container (width<=26rem){.verdict{grid-template-columns:minmax(0,1fr)}}.verdict .meta{justify-items:start;gap:var(--roxy-space-sm);display:grid}.rows{margin:0;padding:0;list-style:none;display:grid}.row{align-content:start;gap:var(--roxy-space-sm) var(--roxy-space-lg);padding-block:var(--roxy-space-lg);border-block-start:1px solid var(--roxy-border);grid-template-columns:minmax(0,8lh) minmax(0,1fr);grid-template-areas:"art head""art read";display:grid}.row:first-child{border-block-start:0;padding-block-start:0}.row .image{grid-area:art;align-self:start}.row-head{align-content:start;gap:var(--roxy-space-xs);overflow-wrap:anywhere;grid-area:head;display:grid}.row-read{align-content:start;gap:var(--roxy-space-sm);grid-area:read;display:grid}@container (width<=30rem){.row{gap:var(--roxy-space-sm) var(--roxy-space-md);grid-template-columns:minmax(0,5lh) minmax(0,1fr);grid-template-areas:"art head""read read"}}.rows.cast{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,16ch),1fr))}.cast .row{border-block-start:0;grid-template-columns:minmax(0,1fr);grid-template-areas:"art""head";padding-block:0}.row-head h3{font-size:var(--roxy-text-lg);line-height:var(--roxy-leading-tight);margin:0}.ask{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-style:italic}.lead{line-height:1.7}.row-read .block{padding-top:var(--roxy-space-sm)}.summary{border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md);line-height:1.7}.card{align-content:start;gap:var(--roxy-space-xs);grid-template-columns:minmax(0,1fr);display:grid}.image{border-radius:var(--roxy-radius-sm);background:var(--roxy-border);width:100%;color:var(--roxy-muted);font-size:var(--roxy-text-xs);justify-content:center;align-items:center;display:flex;overflow:hidden}.image img{object-fit:cover;width:100%;height:100%;transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing)}.image img.reversed{transform:rotate(180deg)}.name{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}`],y([k({type:String,reflect:true})],Dt.prototype,"spread",2),Dt=y([L("roxy-tarot-spread")],Dt);var eo=640,K=eo/2,Eu=212,Au=226,Wr=204,Du=186,Qi=168,Np=250,zp=142,Zr=78,Pu=166,Op={glyph:18,degree:10},_u=.95,Mu=8,Nu=4,Rn=(n,a)=>C(n)??a,Cn=n=>{let a=new Map;for(let e of n)a.set(D(e.name),e);return a},Be=class extends f{constructor(){super(...arguments);this.viewport=new ne(this);this.heading="Transits";this.type=new Aa(this,{glyph:[".natal-glyph",Op.glyph],degree:[".planet-deg",Op.degree]})}get effectiveAscendant(){for(let e of[this.ascendant,this.data?.ascendant?.longitude])if(typeof e=="number"&&Number.isFinite(e))return e}get ascendantGiven(){return this.effectiveAscendant!==void 0}get cuspsFromPage(){return Array.isArray(this.houses)}get cusps(){let e=this.houses??this.data?.houses;if(!Array.isArray(e)||e.length!==12)return null;let t=e.map((i,l)=>typeof i=="number"?{number:l+1,longitude:i}:{number:Number(i?.number),longitude:Number(i?.longitude)}).sort((i,l)=>i.number-l.number);return t.every((i,l)=>i.number===l+1&&Number.isFinite(i.longitude))?t:null}toAngle(e){return 180+(this.effectiveAscendant??this.cusps?.[0]?.longitude??0)-e}renderData(e){let t=e.natalPlanets??[],r=e.transitPlanets??[],i=e.aspects??[],l=Y(this.effectiveLang(),e.transitDate),c=i.length>0?this.t("Aspects to the natal chart: {{count}}",{count:i.length}):"",d=[...t,...r].some(p=>Number.isFinite(p.house));return s`<div class="wrap" part="card" aria-label="${this.t("Natal and transit bi-wheel")}"><div class="head" part="header"><h2>${this.t(this.heading)}</h2>${l||c?s`<p class="roxy-label">${[l,c].filter(Boolean).join(" \xB7 ")}</p>`:o}</div>${this.renderWheel(t,r,i)} ${this.renderLegend(t,r,i,d?e.houseSystem:void 0)} ${this.renderSummary(e.summary)} ${this.renderPositions(t,r,d)} ${this.renderPositionDetails(e)} ${this.renderAspectDetails(i)}</div>`}get orientationCaption(){return this.ascendantGiven?this.t("Ascendant on the left horizon"):this.cusps?this.t("First house cusp on the left horizon"):this.t("Sign wheel, 0\xB0 Aries on the left")}get cuspCaption(){return this.cusps?this.cuspsFromPage?this.t("House cusps supplied by the page"):this.t("House cusps from the response"):this.t("No house cusps")}renderWheel(e,t,r){return this.viewport.renderChartViewport(s`<svg viewBox="0 0 ${eo} ${eo}" part="chart" role="img" aria-label="${this.t("Bi-wheel with natal bodies on the inner ring and transiting bodies on the outer ring")}"><title>${this.t("Natal and transit bi-wheel")}</title><desc>${this.t("Twelve zodiac sign segments around a circular wheel. Natal bodies sit at their ecliptic longitudes on the inner ring and transiting bodies on the outer ring, and each line joins a transiting body to the natal body it aspects.")} ${this.orientationCaption}. ${this.cuspCaption}.</desc><circle class="wheel-line" cx="${K}" cy="${K}" r="${Wr}" stroke-width="1.5"/><circle class="wheel-line" cx="${K}" cy="${K}" r="${Qi}" stroke-width="0.8"/><circle class="wheel-line" cx="${K}" cy="${K}" r="${Zr}" stroke-width="0.5"/>${this.renderTicks()} ${this.renderSpokes()} ${this.renderSigns()} ${this.renderHouses()} ${this.renderAspectLines(e,t,r)} ${this.renderRing(e,zp,(i,l,c)=>zp-ct(i,l,c,Ye),"natal-glyph",this.t("Natal"),1)} ${this.renderRing(t,Np,(i,l,c)=>Np+ct(i,l,c,Ye),"transit-glyph",this.t("Transiting"),-1)} ${this.renderAxis()}</svg>`,this.t("Natal and transit bi-wheel"),this.translator)}renderTicks(){let e=[];for(let t=0;t<360;t+=5){let r=this.toAngle(t),i=t%30===0,l=P(K,K,i?Qi:Wr-5,r),c=P(K,K,Wr,r);e.push(F`<line class=${i?"tick tick-major":"tick"} x1=${l.x} y1=${l.y} x2=${c.x} y2=${c.y} stroke-width=${i?1:.5} />`)}return e}renderSpokes(){return re.map((e,t)=>{let r=this.toAngle(t*30),i=P(K,K,Zr,r),l=P(K,K,Wr,r);return F`<line class="wheel-line" x1=${i.x} y1=${i.y} x2=${l.x} y2=${l.y} stroke-width="0.6" />`})}renderHouses(){let e=this.cusps;return e?e.map((t,r)=>{let i=e[(r+1)%12],l=this.toAngle(t.longitude),c=P(K,K,Zr,l),d=P(K,K,Qi,l),p=P(K,K,Pu,this.toAngle(Os(t.longitude,i?.longitude??t.longitude+30)));return F`<g>
|
|
141
|
+
</g>`})}function Su(n,a,e,t){let r=(i,l)=>{let c=D(l);for(let d of i)if(D(d.name)===c&&typeof d.longitude=="number")return d.longitude};return t.filter(ot).map(i=>{let l=r(a,i.planet1),c=r(e,i.planet2);if(l===void 0||c===void 0)return"";let d=P(Z,Z,Sn-2,Na(n,l)),p=P(Z,Z,Sn-2,Na(n,c)),{locale:h}=n,m=$(h,i.orb,1);return T`<line class=${`aspect ${de(i)}`} style=${fr(i)} x1=${d.x} y1=${d.y} x2=${p.x} y2=${p.y}><title>${x(i,"planet1")} ${x(i,"type",se(i))} ${x(i,"planet2")}${m?` (${n.t("Orb")} ${m}\xB0)`:""}</title></line>`})}var Ru=12,za=class extends f{constructor(){super(...arguments);this.viewport=new ne(this);this.type=new Aa(this,{glyph:[".p1",Rn.glyph],degree:[".planet-deg",Rn.degree]})}renderData(e){let{person1:t,person2:r,compatibilityScore:i,analysis:l}=e,c=e.interAspects??[],d=t?.planets??[],p=r?.planets??[],h=typeof i=="number"?Math.round(i):void 0,m=l?.overall,g=l?.strengths??[],b=l?.challenges??[],w=d.length>0&&p.length>0,S=[...c].sort((_,q)=>(q.strength??0)-(_.strength??0)),R=S.slice(0,Ru);return s`<div class="wrap synastry-wheel" part="card" aria-label="${this.t("Synastry compatibility chart")}"><div class="head" part="header"><h2>${this.t("Synastry")}</h2>${typeof h=="number"?s`<span class="score" aria-label="${this.t("Score {{score}} of 100",{score:h})}">${h} / 100</span>`:o}</div>${this.renderPeople(t,r)} ${w?s`${this.viewport.renderChartViewport(ke(zp(e,{lang:this.effectiveLang(),typeSize:this.type.size})),this.t("Synastry dual wheel"),this.translator)}<div class="legend" part="legend"><span><span class="person-dot p1"></span>${this.t("Person 1")}</span> <span><span class="person-dot p2"></span>${this.t("Person 2")}</span> <span><span class="aspect-swatch aspect-trine"></span>${this.t("Harmonious aspects")}</span> <span><span class="aspect-swatch aspect-square"></span>${this.t("Challenging aspects")}</span> <span>${this.t("Sign sectors, not houses")}</span></div>`:s`<p role="status">${this.t("Synastry response missing planet positions.")} ${this.t("A current {{endpoint}} response carries {{first}} and {{second}}, and the inter-aspect readings below still work without them.",{endpoint:"/astrology/synastry",first:"person1.planets",second:"person2.planets"})}</p>`} ${this.renderOverlay(t,r)} ${this.renderSummaryCounts(e.summary)} ${m&&!this.hideReadings?s`<p class="summary">${m}</p>`:o} ${R.length>0?s`<section class="block" part="section inter-aspects"><h3>${this.t("Inter-aspects")}</h3>${R.map((_,q)=>this.renderAspectCard(_,q))}</section>`:o} ${S.length>R.length?this.renderCatalog(S):o} ${!this.hideReadings&&(g.length>0||b.length>0)?s`<div class="lists" part="section strengths-challenges">${g.length?s`<div><h3>${this.t("Strengths")}</h3><ul>${g.map(_=>s`<li>${_}</li>`)}</ul></div>`:o} ${b.length?s`<div><h3>${this.t("Challenges")}</h3><ul>${b.map(_=>s`<li>${_}</li>`)}</ul></div>`:o}</div>`:o}</div>`}renderPeople(e,t){let r=(l,c)=>{if(!l)return o;let d=l.ascendant,h=[["Sun",l.sunSign??"",x(l,"sunSign")],["Moon",l.moonSign??"",x(l,"moonSign")],["ASC",d?.sign??"",d?`${x(d,"sign")} ${Fe(d.degree)}`:""]].filter(([,,m])=>m);return h.length===0?o:s`<div class="person"><span class="person-name"><span class="person-dot p${c}" aria-hidden="true"></span>${l.name||this.t("Person {{n}}",{n:c})}</span><div class="big-three">${h.map(([m,g,b])=>s`<span><span class="roxy-label">${this.t(m)}</span> <span class="roxy-glyph" aria-hidden="true">${z(g)??""}</span> ${b}</span>`)}</div></div>`},i=[r(e,1),r(t,2)].filter(l=>l!==o);return i.length===0?o:s`<div class="people" part="details">${i}</div>`}renderOverlay(e,t){if(!e?.planets?.length||!t?.planets?.length)return o;let r=(c,d)=>c?.name||this.t("Person {{n}}",{n:d}),i=r(e,1),l=r(t,2);return s`<section class="block" part="section house-overlay"><h3>${this.t("Houses")}</h3>${this.renderOverlayTable(e.planets,i,l,1)} ${this.renderOverlayTable(t.planets,l,i,2)}</section>`}renderOverlayTable(e,t,r,i){let l=e.filter(d=>typeof d.houseInOtherChart=="number");if(l.length===0)return o;let c=`overlay-${i}`;return s`<div class="overlay-dir"><h4 id="${c}"><span class="person-dot p${i}" aria-hidden="true"></span>${this.t("{{first}} in the houses of {{second}}",{first:t,second:r})}</h4><div class="scroll" part="table" tabindex="0" role="region" aria-labelledby="${c}"><table aria-labelledby="${c}"><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Own house")}</th></tr></thead><tbody>${l.map(d=>s`<tr><td><span class="roxy-glyph" aria-hidden="true">${C(d.name)??""}</span> ${x(d,"name")}${d.isRetrograde?s`<span class="retro roxy-glyph" title="${this.t("retrograde")}">${ae}</span>`:o}</td><td><span class="roxy-glyph" aria-hidden="true">${z(d.sign)??""}</span> ${x(d,"sign")}</td><td>${Fe(d.degree)}</td><td class="overlay-house">${d.houseInOtherChart}</td><td class="own-house">${d.house??""}</td></tr>`)}</tbody></table></div></div>`}renderSummaryCounts(e){if(!e||typeof e!="object")return o;let t=Object.entries(e.byType??{}).sort((r,i)=>i[1]-r[1]);return typeof e.total!="number"&&t.length===0?o:s`<p class="counts" part="details" role="region" aria-label="${this.t("Inter-aspect summary")}">${typeof e.total=="number"?s`<span>${this.t("{{label}}: {{value}}",{label:this.t("Total"),value:e.total})}</span>`:o} <span class="harmonious">${this.t("Harmonious: {{count}}",{count:e.harmonious})}</span> <span class="challenging">${this.t("Challenging: {{count}}",{count:e.challenging})}</span> <span>${this.t("Neutral: {{count}}",{count:e.neutral})}</span> ${t.map(([r,i])=>s`<span>${this.t("{{label}}: {{value}}",{label:se({type:r}),value:i})}</span>`)}</p>`}renderAspectCard(e,t){let r=C(e.planet1)??"",i=C(e.planet2)??"",l=e.meaning,c=s`<span class="interp-lead"><span aria-hidden="true" class="glyph roxy-glyph">${r}</span>${x(e,"planet1")} <span class="asp-name ${de(e)}">${x(e,"type",se(e))}</span> <span aria-hidden="true" class="glyph roxy-glyph">${i}</span>${x(e,"planet2")}</span>`,d=s`<span class="interp-aside"><small>${this.t("orb {{orb}}\xB0 \xB7 str {{strength}}",{orb:$(this.effectiveLang(),e.orb,2),strength:$(this.effectiveLang(),e.strength,0)})}</small></span>`;return this.hideReadings||!l?.relationshipContext&&!l?.description?.short&&!l?.description?.long&&!l?.keywords?.length?s`<div class="interp-card" part="reading"><div class="static-head">${c}${d}</div></div>`:s`<details class="interp-card" part="reading" name="synastry-aspects" ?open="${t===0}"><summary>${c}${V()}${d}</summary>${this.renderAspectMeaning(l)}</details>`}renderAspectMeaning(e){return s`<div class="interp-body">${e.relationshipContext?s`<p><span class="context">${this.t("In this pairing")}</span> ${e.relationshipContext}</p>`:o} ${e.description?.short?s`<p>${e.description.short}</p>`:o} ${e.description?.long&&e.description.long!==e.description.short?s`<p>${e.description.long}</p>`:o} ${rt(e.keywords)}</div>`}renderCatalog(e){return s`<details class="catalog" part="section aspects inter-aspects"><summary>${V()} ${this.t("All {{count}} inter-aspects",{count:e.length})}</summary><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Inter-aspects")}">${this.renderAspects(e)}</div></details>`}renderAspects(e){return s`<table><caption class="roxy-sr-only">${this.t("Inter-chart aspects: the planet from chart 1, the planet from chart 2, the aspect between them, the orb in degrees and the strength.")}</caption><thead><tr><th scope="col">${this.t("Planet 1")}</th><th scope="col">${this.t("Planet 2")}</th><th scope="col">${this.t("Aspect")}</th><th scope="col">${this.t("Orb")}</th><th scope="col">${this.t("Strength")}</th>${this.hideReadings?o:s`<th scope="col">${this.t("Reading")}</th>`}</tr></thead><tbody>${e.map(t=>s`<tr><td>${x(t,"planet1")}</td><td>${x(t,"planet2")}</td><td>${x(t,"type",se(t))}</td><td class="orb">${$(this.effectiveLang(),t.orb,1)}</td><td>${$(this.effectiveLang(),t.strength,0)}</td>${this.hideReadings?o:s`<td>${t.meaning?s`<details part="reading"><summary>${V()} ${this.t("Reading")}</summary>${this.renderAspectMeaning(t.meaning)}</details>`:o}</td>`}</tr>`)}</tbody></table>`}};za.endpoints=Dl,za.styles=[v,pe,xr,O,H,Gc,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,h3,h4,p,ul{margin:0}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.score{color:var(--roxy-accent-ink);font-size:var(--roxy-text-xl);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums}svg:where([part~=chart]){width:100%;max-width:var(--roxy-chart-max-width,50rem);aspect-ratio:1;height:auto;margin:0 auto;display:block}.legend,.counts{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-xs);color:var(--roxy-muted);flex-wrap:wrap;display:flex}.counts{font-size:var(--roxy-text-sm);color:var(--roxy-fg)}.person-dot{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);background:var(--_person);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.harmonious{color:var(--roxy-info-fg)}.challenging{color:var(--roxy-danger-fg)}.people,.lists{gap:var(--roxy-space-sm) var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,28ch),1fr));display:grid}.person,.lists>div{gap:var(--roxy-space-xs);align-content:start;display:grid}.person-name{font-weight:var(--roxy-weight-bold)}.big-three{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.lists ul{font-size:var(--roxy-text-sm);padding-inline-start:var(--roxy-space-md)}.overlay-dir{gap:var(--roxy-space-xs);display:grid}.overlay-dir+.overlay-dir{margin-block-start:var(--roxy-space-md)}.overlay-house{color:var(--roxy-accent-ink);font-weight:var(--roxy-weight-bold)}.own-house,.retro{color:var(--roxy-muted)}.retro{margin-inline-start:var(--roxy-space-xs)}.glyph{line-height:1}.static-head{align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.asp-name,.context{font-weight:var(--roxy-weight-bold)}.catalog>summary{align-items:center;gap:var(--roxy-space-sm);font-weight:var(--roxy-weight-bold);font-size:var(--roxy-text-sm);display:flex}.scroll{min-width:0;overflow-x:auto}.catalog .scroll{margin-block-start:var(--roxy-space-sm)}table{width:100%}td.orb{color:var(--roxy-muted)}td .interp-body{white-space:normal;min-width:32ch}`],za=y([L("roxy-synastry-chart")],za);function ar(n,a){return j(n,"arcana",a,`${D(a)} Arcana`)}function Zr(n,a){return j(n,"suit",a,D(a))}var Cn=[["love","Love"],["career","Career"],["finances","Finance"],["health","Health"],["spirituality","Spiritual"]],wr=u`.card-art{aspect-ratio:600/1072}`;var Et=class extends f{constructor(){super(...arguments);this.orientation="upright"}renderData(e){return"card"in e?this.renderDailyCard(e):this.renderFullCard(e)}renderDailyCard(e){let t=e.card,r=!!t.reversed,i=t.keywords??[],l=this.effectiveLang(),c=[t.arcana?ar(l,t.arcana):"",t.suit?Zr(l,t.suit):""].filter(Boolean).join(" \xB7 "),d=!this.hideReadings;return s`<article class="card" part="card" aria-label="${t.name??this.t("Tarot card")}">${this.renderImage(t.imageUrl,t.name,r)}<div part="header"><div class="meta roxy-label">${c?`${c} \xB7 `:""}<span class="drawn">${r?this.t("drawn reversed"):this.t("drawn upright")}</span></div><h2>${t.name??this.t("Tarot card")}</h2>${e.dailyMessage&&d?s`<p class="message">${e.dailyMessage}</p>`:o} ${t.meaning&&d?s`<p class="reading">${t.meaning}</p>`:o} ${i.length>0&&d?s`<ul class="roxy-chips">${i.map(p=>s`<li>${p}</li>`)}</ul>`:o} ${this.renderGuidance(t,"tarot-daily-guidance")}</div></article>`}renderFullCard(e){let t=this.orientation==="reversed",r=t?e.reversed:e.upright,i=(t?e.keywords?.reversed:e.keywords?.upright)??r?.keywords??[],l=!this.hideReadings;return s`<article class="card" part="card" aria-label="${e.name??this.t("Tarot card")}">${this.renderImage(e.imageUrl,e.name,t)}<div part="header"><div class="meta roxy-label">${[e.arcana?ar(this.effectiveLang(),e.arcana):"",e.suit?Zr(this.effectiveLang(),e.suit):"",e.number!==void 0&&e.number!==null?this.t("no. {{number}}",{number:e.number}):""].filter(Boolean).join(" \xB7 ")}</div><h2>${e.name??this.t("Tarot card")}</h2>${ue({items:[{id:"upright",label:this.t("Upright")},{id:"reversed",label:this.t("Reversed")}],active:this.orientation,onSelect:c=>{this.orientation=c},label:this.t("Card orientation"),idPrefix:"tarot",controls:true})}<div id="tarot-panel-${this.orientation}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="tarot-tab-${this.orientation}">${r?.description&&l?s`<p class="reading">${r.description}</p>`:o} ${i.length>0&&l?s`<ul class="roxy-chips">${i.map(c=>s`<li>${c}</li>`)}</ul>`:o} ${this.renderGuidance(r,`tarot-${this.orientation}-guidance`)}</div></div></article>`}renderImage(e,t,r){let i=`image ${r?"reversed":""}`;return e?s`<img class="${i}" part="chart" src="${e}" alt="${t??this.t("Tarot card")}">`:s`<div class="${i} card-art" part="chart" style="display:flex;align-items:center;justify-content:center;color:var(--roxy-muted)">${t??"?"}</div>`}renderGuidance(e,t){if(!e)return o;let r=Cn.map(([i,l])=>({label:this.t(l),body:e[i]??""}));return this.renderInterpretation(r,t,"Guidance")}};Et.endpoints=Pl,Et.styles=[v,wr,O,H,ge,u`.card{align-items:start;gap:var(--roxy-space-lg);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,6lh) minmax(0,1fr);display:grid}@container (width<=480px){.card{grid-template-columns:minmax(0,1fr)}}h2,p{margin:0}.image{border-radius:var(--roxy-radius-md);background:var(--roxy-border);width:100%;height:auto;transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.image.reversed{transform:rotate(180deg)}.meta{margin-block-end:var(--roxy-space-sm)}.drawn{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.message{margin-block:var(--roxy-space-sm) var(--roxy-space-md)}.reading{white-space:pre-line;margin-block-end:var(--roxy-space-md)}.roxy-tablist{margin-block:var(--roxy-space-sm)}.roxy-chips{margin-block-start:var(--roxy-space-sm)}`],y([I()],Et.prototype,"orientation",2),Et=y([L("roxy-tarot-card")],Et);var At=class extends f{constructor(){super(...arguments);this.heading="";this.rowDetail={tag:"roxy-tarot-card",path:"tarot/cards/{id}"};this.listKey="cards"}renderData(e){let t=e.cards??[];if(t.length===0)return this.renderEmpty();let r=this.heading||this.t("Tarot deck"),i=typeof e.total=="number"?e.total:t.length,l=this.effectiveLang();return s`<section class="wrap" part="card" aria-label="${r}"><header class="head" part="header"><h2>${r}</h2><span class="count">${i===1?this.t("1 card"):this.t("{{count}} cards",{count:i})}</span></header><ul class="grid" part="section cards">${t.map(c=>s`<li><button type="button" class="tile" aria-pressed="${this.openedRowId===c.id?"true":"false"}" @click="${()=>this.pickRow({id:c.id,name:c.name})}">${c.imageUrl?s`<img class="art card-art" src="${c.imageUrl}" alt="${c.name??this.t("Tarot card")}" loading="lazy">`:s`<div class="art card-art" aria-hidden="true"></div>`}<p class="name">${c.name}</p><p class="meta">${Cu(l,c)}</p></button></li>`)}</ul>${this.renderMore()} ${this.openedRow?s`<div class="detail" part="detail">${this.openedRow}</div>`:o}</section>`}};At.endpoints=_l,At.styles=[v,wr,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.count{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.grid{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fill,minmax(min(100%,14ch),1fr));margin:0;padding:0;list-style:none;display:grid}.tile{gap:var(--roxy-space-xs);width:100%;padding:var(--roxy-space-xs);color:inherit;border-radius:var(--roxy-radius-md);text-align:start;cursor:pointer;transition:border-color var(--roxy-motion-duration) var(--roxy-motion-easing);background:0 0;border:1px solid #0000;display:grid}.tile[aria-pressed=true],.tile:hover{border-color:var(--roxy-accent)}.detail{margin-block-start:var(--roxy-space-md)}.art{border-radius:var(--roxy-radius-sm);object-fit:cover;background:var(--roxy-border);width:100%}.name{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}`],y([k({type:String,reflect:true})],At.prototype,"heading",2),At=y([L("roxy-tarot-catalog")],At);function Cu(n,a){let e=ar(n,a.arcana);return a.suit?`${e} \xB7 ${Zr(n,a.suit)}`:e}var Tu={love:"love",career:"career"};function Eu(n){return(n??"").split(/\n\s*\n/).map(a=>a.trim()).filter(Boolean)}function Au(n){return n&&n.charAt(0).toUpperCase()+n.slice(1)}var Dt=class extends f{constructor(){super(...arguments);this.spread="three-card"}renderData(e){let t="answer"in e,r="cards"in e&&!("spread"in e),i=r?[]:"positions"in e?e.positions??[]:[],l=r&&"cards"in e?e.cards:[],c=t?e:void 0,d=x(c,"strength"),p=c?.card,h=t?this.t("Yes or no"):r?this.t("Card draw"):Au(("spread"in e?e.spread:"")||this.spread.replace(/-/g," ")),m="question"in e?e.question:void 0,g="summary"in e?e.summary:void 0,b=c?.interpretation,w=c?.answer?c.answer.toLowerCase():"";return s`<article class="wrap" part="card" aria-label="${this.t("Tarot spread")}"><header class="head" part="header"><h2 class="title">${h}</h2>${m?s`<span class="question">"${m}"</span>`:o}</header>${t?s`<div class="verdict" part="section verdict"><div class="card"><div class="image card-art" part="chart">${p?.imageUrl?s`<img src="${p.imageUrl}" alt="${p.name??this.t("Tarot card")}" class="${p.reversed?"reversed":""}">`:s`${p?.name??"?"}`}</div><p class="name">${p?.name??""} ${p?.reversed?s`<small>${this.t("(reversed)")}</small>`:o}</p>${p?.arcana?s`<p class="roxy-label">${ar(this.effectiveLang(),p.arcana)}</p>`:o}</div><div class="meta" part="details"><div><span class="${`answer ${w}`}">${x(c,"answer")}</span> ${d?s`<small>· ${d}</small>`:o}</div>${p?.keywords&&p.keywords.length>0&&!this.hideReadings?s`<ul class="roxy-chips">${p.keywords.map(S=>s`<li>${S}</li>`)}</ul>`:o}</div></div>`:o} ${i.length>0?s`<ul class="${this.hideReadings?"rows cast":"rows"}" part="section positions">${i.map(S=>this.renderDrawn(S.card,S.name,S.interpretation))}</ul>`:o} ${l.length>0?s`<ul class="${this.hideReadings?"rows cast":"rows"}" part="section cards">${l.map(S=>this.renderDrawn(S))}</ul>`:o} ${g&&!this.hideReadings?s`<p class="summary">${g}</p>`:o} ${b&&!this.hideReadings?s`<p>${b}</p>`:o}</article>`}renderDrawn(e,t,r){let i=Tu[this.spread],l=Eu(e.meaning),c=l.length>1?1:0,d=i?e[i]:l[c],p=i?l:l.filter((m,g)=>g!==c),h=[{label:this.t("Card meaning"),body:p[0]??"",extra:p.slice(1).map(m=>s`<p>${m}</p>`)},...Cn.filter(([m])=>m!==i).map(([m,g])=>({label:this.t(g),body:e[m]??""}))];return s`<li class="row"><div class="image card-art" part="chart">${e.imageUrl?s`<img src="${e.imageUrl}" alt="${e.name??this.t("Tarot card")}" class="${e.reversed?"reversed":""}">`:s`${e.name??"?"}`}</div><div class="row-head">${t?s`<p class="roxy-label">${t}</p>`:o}<h3>${e.name??""} ${e.reversed?s`<small>${this.t("(reversed)")}</small>`:o}</h3>${this.hideReadings?o:rt(e.keywords)}</div>${this.hideReadings?o:s`<div class="row-read">${r?s`<p class="ask">${r}</p>`:o} ${d?s`<p class="lead">${d}</p>`:o} ${this.renderInterpretation(h,`tarot-${e.id}`,"Guidance",true)}</div>`}</li>`}};Dt.endpoints=Ml,Dt.styles=[v,wr,O,H,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.title{text-transform:capitalize}.question{color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-style:italic}.answer{font-size:var(--roxy-text-xl);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight)}.answer.yes{color:var(--roxy-success-fg)}.answer.no{color:var(--roxy-danger-fg)}.answer.maybe{color:var(--roxy-warning-fg)}.verdict{align-items:start;gap:var(--roxy-space-md);grid-template-columns:minmax(0,6lh) minmax(0,1fr);display:grid}@container (width<=26rem){.verdict{grid-template-columns:minmax(0,1fr)}}.verdict .meta{justify-items:start;gap:var(--roxy-space-sm);display:grid}.rows{margin:0;padding:0;list-style:none;display:grid}.row{align-content:start;gap:var(--roxy-space-sm) var(--roxy-space-lg);padding-block:var(--roxy-space-lg);border-block-start:1px solid var(--roxy-border);grid-template-columns:minmax(0,8lh) minmax(0,1fr);grid-template-areas:"art head""art read";display:grid}.row:first-child{border-block-start:0;padding-block-start:0}.row .image{grid-area:art;align-self:start}.row-head{align-content:start;gap:var(--roxy-space-xs);overflow-wrap:anywhere;grid-area:head;display:grid}.row-read{align-content:start;gap:var(--roxy-space-sm);grid-area:read;display:grid}@container (width<=30rem){.row{gap:var(--roxy-space-sm) var(--roxy-space-md);grid-template-columns:minmax(0,5lh) minmax(0,1fr);grid-template-areas:"art head""read read"}}.rows.cast{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,16ch),1fr))}.cast .row{border-block-start:0;grid-template-columns:minmax(0,1fr);grid-template-areas:"art""head";padding-block:0}.row-head h3{font-size:var(--roxy-text-lg);line-height:var(--roxy-leading-tight);margin:0}.ask{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-style:italic}.lead{line-height:1.7}.row-read .block{padding-top:var(--roxy-space-sm)}.summary{border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-md);line-height:1.7}.card{align-content:start;gap:var(--roxy-space-xs);grid-template-columns:minmax(0,1fr);display:grid}.image{border-radius:var(--roxy-radius-sm);background:var(--roxy-border);width:100%;color:var(--roxy-muted);font-size:var(--roxy-text-xs);justify-content:center;align-items:center;display:flex;overflow:hidden}.image img{object-fit:cover;width:100%;height:100%;transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing)}.image img.reversed{transform:rotate(180deg)}.name{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}`],y([k({type:String,reflect:true})],Dt.prototype,"spread",2),Dt=y([L("roxy-tarot-spread")],Dt);var ao=640,K=ao/2,Du=212,Pu=226,Xr=204,_u=186,to=168,Op=250,Ip=142,Jr=78,Mu=166,Gp={glyph:18,degree:10},Nu=.95,zu=8,Ou=4,Tn=(n,a)=>C(n)??a,En=n=>{let a=new Map;for(let e of n)a.set(D(e.name),e);return a},Be=class extends f{constructor(){super(...arguments);this.viewport=new ne(this);this.heading="Transits";this.type=new Aa(this,{glyph:[".natal-glyph",Gp.glyph],degree:[".planet-deg",Gp.degree]})}get effectiveAscendant(){for(let e of[this.ascendant,this.data?.ascendant?.longitude])if(typeof e=="number"&&Number.isFinite(e))return e}get ascendantGiven(){return this.effectiveAscendant!==void 0}get cuspsFromPage(){return Array.isArray(this.houses)}get cusps(){let e=this.houses??this.data?.houses;if(!Array.isArray(e)||e.length!==12)return null;let t=e.map((i,l)=>typeof i=="number"?{number:l+1,longitude:i}:{number:Number(i?.number),longitude:Number(i?.longitude)}).sort((i,l)=>i.number-l.number);return t.every((i,l)=>i.number===l+1&&Number.isFinite(i.longitude))?t:null}toAngle(e){return 180+(this.effectiveAscendant??this.cusps?.[0]?.longitude??0)-e}renderData(e){let t=e.natalPlanets??[],r=e.transitPlanets??[],i=e.aspects??[],l=Y(this.effectiveLang(),e.transitDate),c=i.length>0?this.t("Aspects to the natal chart: {{count}}",{count:i.length}):"",d=[...t,...r].some(p=>Number.isFinite(p.house));return s`<div class="wrap" part="card" aria-label="${this.t("Natal and transit bi-wheel")}"><div class="head" part="header"><h2>${this.t(this.heading)}</h2>${l||c?s`<p class="roxy-label">${[l,c].filter(Boolean).join(" \xB7 ")}</p>`:o}</div>${this.renderWheel(t,r,i)} ${this.renderLegend(t,r,i,d?e.houseSystem:void 0)} ${this.renderSummary(e.summary)} ${this.renderPositions(t,r,d)} ${this.renderPositionDetails(e)} ${this.renderAspectDetails(i)}</div>`}get orientationCaption(){return this.ascendantGiven?this.t("Ascendant on the left horizon"):this.cusps?this.t("First house cusp on the left horizon"):this.t("Sign wheel, 0\xB0 Aries on the left")}get cuspCaption(){return this.cusps?this.cuspsFromPage?this.t("House cusps supplied by the page"):this.t("House cusps from the response"):this.t("No house cusps")}renderWheel(e,t,r){return this.viewport.renderChartViewport(s`<svg viewBox="0 0 ${ao} ${ao}" part="chart" role="img" aria-label="${this.t("Bi-wheel with natal bodies on the inner ring and transiting bodies on the outer ring")}"><title>${this.t("Natal and transit bi-wheel")}</title><desc>${this.t("Twelve zodiac sign segments around a circular wheel. Natal bodies sit at their ecliptic longitudes on the inner ring and transiting bodies on the outer ring, and each line joins a transiting body to the natal body it aspects.")} ${this.orientationCaption}. ${this.cuspCaption}.</desc><circle class="wheel-line" cx="${K}" cy="${K}" r="${Xr}" stroke-width="1.5"/><circle class="wheel-line" cx="${K}" cy="${K}" r="${to}" stroke-width="0.8"/><circle class="wheel-line" cx="${K}" cy="${K}" r="${Jr}" stroke-width="0.5"/>${this.renderTicks()} ${this.renderSpokes()} ${this.renderSigns()} ${this.renderHouses()} ${this.renderAspectLines(e,t,r)} ${this.renderRing(e,Ip,(i,l,c)=>Ip-ct(i,l,c,Ye),"natal-glyph",this.t("Natal"),1)} ${this.renderRing(t,Op,(i,l,c)=>Op+ct(i,l,c,Ye),"transit-glyph",this.t("Transiting"),-1)} ${this.renderAxis()}</svg>`,this.t("Natal and transit bi-wheel"),this.translator)}renderTicks(){let e=[];for(let t=0;t<360;t+=5){let r=this.toAngle(t),i=t%30===0,l=P(K,K,i?to:Xr-5,r),c=P(K,K,Xr,r);e.push(F`<line class=${i?"tick tick-major":"tick"} x1=${l.x} y1=${l.y} x2=${c.x} y2=${c.y} stroke-width=${i?1:.5} />`)}return e}renderSpokes(){return re.map((e,t)=>{let r=this.toAngle(t*30),i=P(K,K,Jr,r),l=P(K,K,Xr,r);return F`<line class="wheel-line" x1=${i.x} y1=${i.y} x2=${l.x} y2=${l.y} stroke-width="0.6" />`})}renderHouses(){let e=this.cusps;return e?e.map((t,r)=>{let i=e[(r+1)%12],l=this.toAngle(t.longitude),c=P(K,K,Jr,l),d=P(K,K,to,l),p=P(K,K,Mu,this.toAngle(Gs(t.longitude,i?.longitude??t.longitude+30)));return F`<g>
|
|
142
142
|
<line class="house-cusp" x1=${c.x} y1=${c.y} x2=${d.x} y2=${d.y} />
|
|
143
143
|
<text class="house-num" x=${p.x} y=${p.y} text-anchor="middle" dominant-baseline="central">${t.number}</text>
|
|
144
|
-
</g>`}):o}renderSigns(){return re.map((e,t)=>{let r=P(K,K,
|
|
145
|
-
${
|
|
146
|
-
<text class=${`${i} roxy-glyph`} x=${_.x} y=${_.y} text-anchor="middle" dominant-baseline="central"><title>${et}</title>${
|
|
144
|
+
</g>`}):o}renderSigns(){return re.map((e,t)=>{let r=P(K,K,_u,this.toAngle(t*30+15));return F`<text class="sign-glyph roxy-glyph" x=${r.x} y=${r.y} text-anchor="middle" dominant-baseline="central">${z(e)}</text>`})}renderRing(e,t,r,i,l,c){let d=Nu*this.type.size.glyph,p={width:d,height:d},h=b=>({width:(De.whole+(b.isRetrograde===true?De.retrograde:0))*this.type.size.degree,height:De.ink*this.type.size.degree}),m=Pe(d,t);return ze(e,b=>b.longitude,(b,w)=>Math.max(m,Pe((h(b).width+h(w).width)/2,r(90,p,h(b))))).map(({item:b,longitude:w,displayLongitude:S})=>{let R=this.toAngle(S),_=P(K,K,t,R),q=P(K,K,r(R,p,h(b)),R),le=b.isRetrograde===true,Le=`${Ne(w).degree}\xB0`,je=x(b,"name"),et=`${l} ${je}${le?` ${this.t("retrograde")}`:""} - ${Ae(w)} ${x(b,"sign")}`,Qr=Math.abs(S-w)>.5,es=P(K,K,t+c*zu,this.toAngle(w)),kr=P(K,K,t+c*Ou,R);return F`<g>
|
|
145
|
+
${Qr?F`<line class=${`leader ${i}`} x1=${es.x} y1=${es.y} x2=${kr.x} y2=${kr.y} />`:o}
|
|
146
|
+
<text class=${`${i} roxy-glyph`} x=${_.x} y=${_.y} text-anchor="middle" dominant-baseline="central"><title>${et}</title>${Tn(b.name,je)}</text>
|
|
147
147
|
<text class="planet-deg" x=${q.x} y=${q.y} text-anchor="middle" dominant-baseline="central">${Le}${le?F`<tspan class="retro roxy-glyph"> ${ae}</tspan>`:o}</text>
|
|
148
|
-
</g>`})}renderAspectLines(e,t,r){let i=
|
|
148
|
+
</g>`})}renderAspectLines(e,t,r){let i=En(e),l=En(t);return r.filter(ot).map(c=>{let d=l.get(D(c.planet1)),p=i.get(D(c.planet2));if(!d||!p||!Number.isFinite(d.longitude)||!Number.isFinite(p.longitude))return o;let h=P(K,K,Jr-2,this.toAngle(d.longitude)),m=P(K,K,Jr-2,this.toAngle(p.longitude)),g=we(c),b=$(this.effectiveLang(),c.orb,1);return F`<line class=${`aspect ${de(c)}`} style=${fr(c)} x1=${h.x} y1=${h.y} x2=${m.x} y2=${m.y}><title>${this.t("Transiting")} ${x(c,"planet1")} ${x(c,"type",g)} ${this.t("Natal")} ${x(c,"planet2")}${b?` (${this.t("Orb")} ${b}\xB0)`:""}</title></line>`})}renderAxis(){let e=this.effectiveAscendant;if(e===void 0)return o;let t=Ee(e);return[t,Fr(t)].map((r,i)=>{let l=this.toAngle(r),c=P(K,K,Xr,l),d=P(K,K,Du,l),p=P(K,K,Pu,l);return F`<g>
|
|
149
149
|
<line class="axis-tick" x1=${c.x} y1=${c.y} x2=${d.x} y2=${d.y} />
|
|
150
150
|
<text class="axis-label" x=${p.x} y=${p.y} text-anchor="middle" dominant-baseline="central">${i===0?this.t("ASC"):this.t("DSC")}</text>
|
|
151
|
-
</g>`})}renderLegend(e,t,r,i){return s`<div class="legend" part="legend"><span><span class="swatch swatch--natal"></span>${this.t("{{count}} natal bodies",{count:e.length})}</span> <span><span class="swatch swatch--transit"></span>${this.t("{{count}} transiting bodies",{count:t.length})}</span> ${r.length>0?s`<span>${this.t("{{count}} aspects",{count:r.filter(ot).length})}</span> <span><span class="aspect-swatch aspect-trine"></span>${this.t("Harmonious aspects")}</span> <span><span class="aspect-swatch aspect-square"></span>${this.t("Challenging aspects")}</span>`:o} ${i?s`<span>${this.t("{{label}}: {{value}}",{label:X(this.effectiveLang(),"houseSystem"),value:j(this.effectiveLang(),"houseSystem",i)})}</span>`:o} <span>${this.orientationCaption}</span> <span>${this.cuspCaption}</span></div>`}renderSummary(e){if(!e)return o;let t=Object.entries(e.byType??{}).sort((r,i)=>i[1]-r[1]);return s`<div part="details"><p class="counts" role="region" aria-label="${this.t("Transit aspect summary")}">${typeof e.total=="number"?s`<span>${this.t("{{label}}: {{value}}",{label:this.t("Total"),value:e.total})}</span>`:o} <span class="harmonious">${this.t("Harmonious: {{count}}",{count:e.harmonious})}</span> <span class="challenging">${this.t("Challenging: {{count}}",{count:e.challenging})}</span> <span>${this.t("Neutral: {{count}}",{count:e.neutral})}</span> ${t.map(([r,i])=>s`<span>${this.t("{{label}}: {{value}}",{label:se({type:r}),value:i})}</span>`)}</p>${e.strongest?this.renderStrongest(e.strongest):o}</div>`}renderStrongest(e){let t=x(e,"planet1"),r=x(e,"planet2");return s`<div class="strongest" part="details strongest"><span class="roxy-label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph roxy-glyph">${Rn(e.planet1,t)}</span>${this.t("Transiting")} ${t} <span class="asp-name ${de(e)}">${x(e,"type",se(e))}</span> <span aria-hidden="true" class="glyph roxy-glyph">${Rn(e.planet2,r)}</span>${this.t("Natal")} ${r} <span class="meta">${e.isApplying?this.t("Applying"):this.t("Separating")} · ${this.t("Orb")} ${$(this.effectiveLang(),e.orb,2)}° · ${this.t("Strength")} ${$(this.effectiveLang(),e.strength,0)}</span></div>`}renderPositions(e,t,r){if(e.length===0&&t.length===0)return o;let i=Cn(e),l=Cn(t),c=e.length>0?e:t,d=h=>h?s`${ce(z(h.sign))} ${Ne(h.longitude)} ${x(h,"sign")}${h.isRetrograde?s`<span class="retro-badge roxy-glyph" aria-label="${this.t("retrograde")}">${ae}</span>`:o}`:o,p=h=>r?s`<td>${h&&Number.isFinite(h.house)?h.house:o}</td>`:o;return s`<div class="scroll" part="table" tabindex="0" role="region" aria-labelledby="transit-positions"><table><caption id="transit-positions" class="roxy-sr-only">${this.t("Every body with its natal position and its position on the transit date, each as a zodiac sign and a degree.")} ${r?this.t("Both house numbers are read against the natal house cusps."):o}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col"><span class="swatch swatch--natal" aria-hidden="true"></span>${this.t("Natal")}</th>${r?s`<th scope="col">${this.t("Natal house")}</th>`:o}<th scope="col"><span class="swatch swatch--transit" aria-hidden="true"></span>${this.t("Transiting")}</th>${r?s`<th scope="col">${this.t("Transiting house")}</th>`:o}</tr></thead><tbody>${c.map(h=>{let m=D(h.name),g=x(h,"name");return s`<tr><th scope="row"><span aria-hidden="true" class="glyph roxy-glyph">${Rn(h.name,g)}</span> ${g}</th><td>${d(i.get(m))}</td>${p(i.get(m))}<td>${d(l.get(m))}</td>${p(l.get(m))}</tr>`})}</tbody></table></div>`}renderPositionDetails(e){return s`<details class="block" part="section positions"><summary>${this.t("Chart details")}</summary><p>${this.t("Natal")}</p><roxy-western-planets-table bare hide-sections="header" lang="${U(this.effectiveLang())}" exportparts="card, header, table, details, section, houses" .data="${{planets:e.natalPlanets,houses:e.houses,ascendant:e.ascendant}}"></roxy-western-planets-table><p>${this.t("Transiting")}</p><roxy-western-planets-table bare hide-sections="header" lang="${U(this.effectiveLang())}" exportparts="card, header, table, details, section, houses" .data="${{planets:e.transitPlanets}}"></roxy-western-planets-table></details>`}renderAspectDetails(e){return e.length===0?o:s`<details class="block" part="section aspects"><summary>${this.t("Aspects ({{count}})",{count:e.length})}</summary><roxy-aspects-table bare hide-sections="header" lang="${U(this.effectiveLang())}" ?hide-readings="${this.hideReadings}" exportparts="card, header, section, aspects, details, reading, readings, pattern, patterns, strongest" .data="${{aspects:e}}"></roxy-aspects-table></details>`}};Be.endpoints=_l,Be.styles=[v,pe,xr,O,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{gap:var(--roxy-space-xs);display:grid}details.block>summary{font-weight:var(--roxy-weight-bold)}svg:where([part~=chart]){width:100%;max-width:var(--roxy-chart-max-width,47.5rem);aspect-ratio:1;height:auto;margin:0 auto;display:block}.wheel-line,.tick{fill:none;stroke:var(--roxy-border)}.tick-major{stroke:var(--roxy-secondary)}.natal-glyph,.swatch--natal{--_ring:var(--roxy-accent-ink)}.transit-glyph,.swatch--transit{--_ring:var(--roxy-fg)}.sign-glyph{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}.transit-glyph,.natal-glyph{fill:var(--_ring);font-size:calc(var(--roxy-text-base) * 1.125);font-weight:var(--roxy-weight-bold)}.leader{stroke:var(--_ring);stroke-width:.6px;opacity:.6}.planet-deg{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .625)}.planet-deg .retro{fill:var(--roxy-danger-fg)}.house-cusp{stroke:var(--roxy-secondary);stroke-width:1px;stroke-dasharray:3 3}.house-num{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .5625)}.axis-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}.axis-label{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .625);font-weight:var(--roxy-weight-bold)}@container (width<=480px){.sign-glyph,.natal-glyph,.transit-glyph{font-size:calc(var(--roxy-text-base) * 1.625)}.planet-deg{font-size:calc(var(--roxy-text-base) * .875)}.house-num{font-size:calc(var(--roxy-text-base) * .75)}}.legend,.counts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.counts{color:var(--roxy-fg);font-size:var(--roxy-text-sm)}.swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);background:var(--_ring);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.harmonious{color:var(--roxy-info-fg)}.challenging{color:var(--roxy-danger-fg)}.strongest{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;margin-block-start:var(--roxy-space-sm);display:flex}.strongest .meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;margin-inline-start:auto}.glyph{line-height:1}.asp-name{font-weight:var(--roxy-weight-bold)}.scroll{min-width:0;overflow-x:auto}table{width:100%}:is(th,td){white-space:nowrap}.retro-badge{color:var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold);margin-inline-start:var(--roxy-space-xs)}`],y([k({type:String})],Be.prototype,"heading",2),y([k({type:Number})],Be.prototype,"ascendant",2),y([k({type:Array})],Be.prototype,"houses",2),Be=y([L("roxy-transit-wheel")],Be);var Pt=class extends f{constructor(){super(...arguments);this.tab="positions"}renderData(e){if(!e.transitPlanets?.length)return this.renderEmpty();let{transitDate:t,transitTime:r,transitPlanets:i,transitAspects:l,summary:c}=e,d=[A(this.effectiveLang(),t),Te(this.effectiveLang(),r)].filter(Boolean).join(" "),p=l?.length??0,h=this.tab;return s`<div class="wrap" part="card" aria-label="${this.t("Transits")}"><div class="head" part="header"><h2>${this.t("Transits")}</h2>${d?s`<p class="roxy-label">${d}</p>`:o}</div>${p>0?s`${ue({items:[{id:"positions",label:this.t("Positions")},{id:"aspects",label:this.t("Aspects ({{count}})",{count:p})}],active:h,onSelect:m=>{this.tab=m},label:this.t("Transit views"),idPrefix:"transits",controls:true})}<div id="transits-panel-${h}" part="panel" role="tabpanel" aria-labelledby="transits-tab-${h}">${h==="positions"?this.renderPlanetsTable(i):s`${c?this.renderSummaryCounts(c):o} ${this.renderAspectsList(l??[])}`}</div>`:this.renderPlanetsTable(i)}</div>`}renderSummaryCounts(e){return s`<p class="counts" part="details" role="region" aria-label="${this.t("Aspect summary")}"><span>${this.t("{{label}}: {{value}}",{label:this.t("Total"),value:e.totalAspects})}</span> <span class="harmonious">${this.t("Harmonious: {{count}}",{count:e.harmonious})}</span> <span class="challenging">${this.t("Challenging: {{count}}",{count:e.challenging})}</span> <span>${this.t("Neutral: {{count}}",{count:e.neutral})}</span></p>`}renderPlanetsTable(e){return s`<div class="scroll" tabindex="0" role="region" aria-label="${this.t("Positions")}"><table part="table"><caption class="roxy-sr-only">${this.t("Transiting planets: each planet with its current sign, degree and daily speed.")}</caption><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Speed")}</th></tr></thead><tbody>${e.map(t=>{let r=C(t.name)??"",i=z(t.sign)??"",l=t.speed>=0?"\u2191":"\u2193";return s`<tr><td><div class="planet-cell"><span class="glyph roxy-glyph" aria-hidden="true">${r}</span> ${x(t,"name")} ${t.isRetrograde?s`<span class="retro roxy-glyph" aria-label="${this.t("retrograde")}">${ae}</span>`:o}</div></td><td><div class="planet-cell"><span class="glyph roxy-glyph" aria-hidden="true">${i}</span> ${x(t,"sign")}</div></td><td class="num">${Fe(t.degree)}</td><td class="speed"><span aria-hidden="true">${l}</span> ${$(this.effectiveLang(),Math.abs(t.speed),2)}${this.t("\xB0/day")}</td></tr>`})}</tbody></table></div>`}renderAspectsList(e){return s`<div part="section aspects" role="list" aria-label="${this.t("Transit aspects")}">${e.map((t,r)=>{let i=C(t.transitPlanet)??"",l=C(t.natalPlanet)??"",c=t.interpretation,d=se(t),p=t.isApplying?this.t("Applying"):this.t("Separating");return s`<details class="aspect-card" part="reading" role="listitem" name="transit-aspects" ?open="${r===0}"><summary><span class="roxy-glyph" aria-hidden="true">${i}</span> ${t.transitPlanet} <span class="asp-name ${de(t)}">${d}</span> <span class="roxy-glyph" aria-hidden="true">${l}</span> ${t.natalPlanet} <span class="meta">${this.t("{{status}} \xB7 orb {{orb}}\xB0 \xB7 str {{strength}}",{status:p,orb:$(this.effectiveLang(),t.orb,2),strength:$(this.effectiveLang(),t.strength,1)})} </span>${V()}</summary><div class="interp-body">${Mr(c,this.translator)}</div></details>`})}</div>`}};Pt.endpoints=Ml,Pt.styles=[v,ge,O,lt,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{gap:var(--roxy-space-xs);display:grid}.counts{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);flex-wrap:wrap;margin-block-end:var(--roxy-space-sm);display:flex}.harmonious{color:var(--roxy-info-fg)}.challenging{color:var(--roxy-danger-fg)}.scroll{min-width:0;overflow-x:auto}table{width:100%}.glyph{line-height:1}.planet-cell{align-items:baseline;gap:var(--roxy-space-xs);display:flex}.retro{color:var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold)}td.num,.speed{color:var(--roxy-muted)}.speed{white-space:nowrap}.aspect-card{padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border)}.aspect-card summary{align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.asp-name{font-weight:var(--roxy-weight-bold)}.meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;margin-inline-start:auto}.aspect-card .interp-body{font-size:var(--roxy-text-sm);margin-block-start:var(--roxy-space-xs)}.aspect-card .interp-body p{margin:0 0 var(--roxy-space-xs)}`],y([I()],Pt.prototype,"tab",2),Pt=y([L("roxy-transits-table")],Pt);var zu=[{key:"timeBased",titleSource:"Time based",noteSource:"From the eightfold division of the day or night, so these depend on the birth time, the place and the weekday."},{key:"sunBased",titleSource:"Sun based",noteSource:"The Dhuma group, derived by fixed arc from the Sun. Dhuma is the Sun plus 133 degrees 20 minutes, and each of the rest follows from the one before it."}],Oa=class extends f{renderData(a){let e=zu.filter(t=>a[t.key]?.length);return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Upagraha positions")}"><header class="head" part="header"><h2>${this.t("Upagrahas")}</h2>${W(this.effectiveLang(),a.frame,this.translator)}</header>${e.map(t=>this.renderGroup(t,a[t.key]))}</div>`:this.renderEmpty()}renderGroup(a,e){let t=s`<div class="group-head"><h3>${this.t(a.titleSource)}</h3><p class="group-note">${this.t(a.noteSource)}</p></div><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t(a.titleSource)}"><table role="table"><caption class="roxy-sr-only">${this.t("{{group}} upagrahas: each sub-planet with its rashi, degree in sign, sidereal longitude, and nakshatra with pada.",{group:this.t(a.titleSource)})}</caption><thead><tr><th scope="col">${this.t("Upagraha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Longitude")}</th><th scope="col">${this.t("Nakshatra")}</th><th scope="col">${this.t("Pada")}</th></tr></thead><tbody>${e.map(r=>{let i=z(r.rashi)??"";return s`<tr><td class="name">${r.name}</td><td>${i?s`<span class="glyph roxy-glyph">${i}</span>`:o}${r.rashi??""}</td><td>${typeof r.longitude=="number"?ye(r.longitude):""}</td><td>${$(this.effectiveLang(),r.longitude,2)}</td><td>${r.nakshatra??""}</td><td>${r.nakshatraPada??""}</td></tr>`})}</tbody></table></div>`;return a.key==="timeBased"?s`<section part="section time-based">${t}</section>`:s`<section part="section sun-based">${t}</section>`}};Oa.endpoints=Nl,Oa.styles=[v,B,u`.wrap{overflow:hidden}.head{padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border)}h2,h3,p{margin:0}.group-head{gap:var(--roxy-space-xs);padding:var(--roxy-space-md) var(--roxy-space-md) 0;display:grid}.group-note{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}:is(th,td):first-child{padding-inline-start:var(--roxy-space-md)}:is(th,td):last-child{padding-inline-end:var(--roxy-space-md)}tbody tr:last-child td{border-block-end:0}td.name{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}`],Oa=y([L("roxy-upagraha-table")],Oa);var Ou=["North","East","South","West"],Iu={perimeter:"Perimeter",innerRing:"Inner ring",innerCorner:"Inner corner",center:"Center"},Gu={auspicious:"Favourable",inauspicious:"Unfavourable",mixed:"Mixed"},Fu={feet:"ft\xB2",metres:"m\xB2"},Tn=.04,Bu=8,Hu=.88;function Ip(n){return"cells"in n}function ju(n){let a=n.map(l=>l.center?.x).filter(l=>l!=null),e=n.map(l=>l.center?.y).filter(l=>l!=null),t=Math.max(0,...n.map(l=>l.rowFromNorth??0),...n.map(l=>l.columnFromWest??0));if(t<2||a.length===0||e.length===0)return;let r=(Math.max(...a)-Math.min(...a))/(t-1),i=(Math.max(...e)-Math.min(...e))/(t-1);if(!(!(r>0)||!(i>0)))return{size:t,cellW:r,cellH:i,originX:Math.min(...a)-r/2,originY:Math.min(...e)-i/2}}function En(n,a){let e=((a?.x??0)-n.originX)/n.cellW,t=n.size-((a?.y??0)-n.originY)/n.cellH;return[Gp(e),Gp(t)]}function Gp(n){return Math.round(n*1e3)/1e3}var _t=class extends f{constructor(){super(...arguments);this.mode="mandala"}renderData(e){let t=this.effectiveLang(),r=Ip(e)?e:void 0,i=this.mode==="entrance"&&!Ip(e)?e:void 0,l=r?ju(r.cells??[]):Ku(e.conventions?.grid);return s`<article class="card" part="card" aria-labelledby="vastu-title"><header class="head" part="header"><h2 class="title" id="vastu-title">${i?this.t("Entrance pada"):this.t("Vastu mandala")}</h2>${i?.auspiciousness?s`<span class="${`roxy-chip verdict-${i.auspiciousness}`}">${this.verdictLabel(i.auspiciousness)}</span>`:o}</header>${this.renderGrid(t,l,r,i)} ${this.renderLegend(i,r)} ${this.renderDevatas(t,r?.cells)} ${this.renderFacts(t,e,r,i)} ${i?.effect&&!this.hideReadings?s`<p class="effect" part="reading">${i.effect}</p>`:o} ${i?.reading&&!this.hideReadings?s`<p class="reading" part="reading">${i.reading}</p>`:o} ${this.renderSources(r?.sources??(i?.source?[i.source]:[]))}</article>`}renderGrid(e,t,r,i){if(!t)return o;let l=t.size,c=`${-Tn} ${-Tn} ${l+Tn*2} ${l+Tn*2}`;return s`<div class="frame" part="chart">${Ou.map(d=>s`<span class="${`compass compass-${d[0]?.toLowerCase()}`}">${j(e,"facing",d)}</span>`)} <svg viewBox="${c}" role="img" aria-label="${this.t("Vastu grid, north at the top and west on the left")}">${(r?.cells??[]).map(d=>this.renderCell(e,d))} ${i?this.renderEmptyGrid(l):o} ${i?this.renderDoor(e,i):o} ${this.renderVamsa(t,r?.vamsa)} ${this.renderBrahmasthan(t,r?.brahmasthan?.polygon)} ${this.renderAtimarma(t,r)}</svg></div>`}renderCell(e,t){let r=t.class??t.role??"",i=["pada",r?`pada-${r}`:"",t.withinPlot===false?"pada-outside":""].filter(Boolean).join(" "),l=t.devataName??"";return this.renderPada(e,t.columnFromWest,t.rowFromNorth,i,t.square,l,[l,this.ringLabel(r)].filter(Boolean).join(" \xB7 "))}renderPada(e,t,r,i,l,c,d){let p=(t??1)-1,h=(r??1)-1,m=c.length>Bu;return F`<g>
|
|
151
|
+
</g>`})}renderLegend(e,t,r,i){return s`<div class="legend" part="legend"><span><span class="swatch swatch--natal"></span>${this.t("{{count}} natal bodies",{count:e.length})}</span> <span><span class="swatch swatch--transit"></span>${this.t("{{count}} transiting bodies",{count:t.length})}</span> ${r.length>0?s`<span>${this.t("{{count}} aspects",{count:r.filter(ot).length})}</span> <span><span class="aspect-swatch aspect-trine"></span>${this.t("Harmonious aspects")}</span> <span><span class="aspect-swatch aspect-square"></span>${this.t("Challenging aspects")}</span>`:o} ${i?s`<span>${this.t("{{label}}: {{value}}",{label:X(this.effectiveLang(),"houseSystem"),value:j(this.effectiveLang(),"houseSystem",i)})}</span>`:o} <span>${this.orientationCaption}</span> <span>${this.cuspCaption}</span></div>`}renderSummary(e){if(!e)return o;let t=Object.entries(e.byType??{}).sort((r,i)=>i[1]-r[1]);return s`<div part="details"><p class="counts" role="region" aria-label="${this.t("Transit aspect summary")}">${typeof e.total=="number"?s`<span>${this.t("{{label}}: {{value}}",{label:this.t("Total"),value:e.total})}</span>`:o} <span class="harmonious">${this.t("Harmonious: {{count}}",{count:e.harmonious})}</span> <span class="challenging">${this.t("Challenging: {{count}}",{count:e.challenging})}</span> <span>${this.t("Neutral: {{count}}",{count:e.neutral})}</span> ${t.map(([r,i])=>s`<span>${this.t("{{label}}: {{value}}",{label:se({type:r}),value:i})}</span>`)}</p>${e.strongest?this.renderStrongest(e.strongest):o}</div>`}renderStrongest(e){let t=x(e,"planet1"),r=x(e,"planet2");return s`<div class="strongest" part="details strongest"><span class="roxy-label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph roxy-glyph">${Tn(e.planet1,t)}</span>${this.t("Transiting")} ${t} <span class="asp-name ${de(e)}">${x(e,"type",se(e))}</span> <span aria-hidden="true" class="glyph roxy-glyph">${Tn(e.planet2,r)}</span>${this.t("Natal")} ${r} <span class="meta">${e.isApplying?this.t("Applying"):this.t("Separating")} · ${this.t("Orb")} ${$(this.effectiveLang(),e.orb,2)}° · ${this.t("Strength")} ${$(this.effectiveLang(),e.strength,0)}</span></div>`}renderPositions(e,t,r){if(e.length===0&&t.length===0)return o;let i=En(e),l=En(t),c=e.length>0?e:t,d=h=>h?s`${ce(z(h.sign))} ${Ae(h.longitude)} ${x(h,"sign")}${h.isRetrograde?s`<span class="retro-badge roxy-glyph" aria-label="${this.t("retrograde")}">${ae}</span>`:o}`:o,p=h=>r?s`<td>${h&&Number.isFinite(h.house)?h.house:o}</td>`:o;return s`<div class="scroll" part="table" tabindex="0" role="region" aria-labelledby="transit-positions"><table><caption id="transit-positions" class="roxy-sr-only">${this.t("Every body with its natal position and its position on the transit date, each as a zodiac sign and a degree.")} ${r?this.t("Both house numbers are read against the natal house cusps."):o}</caption><thead><tr><th scope="col">${this.t("Body")}</th><th scope="col"><span class="swatch swatch--natal" aria-hidden="true"></span>${this.t("Natal")}</th>${r?s`<th scope="col">${this.t("Natal house")}</th>`:o}<th scope="col"><span class="swatch swatch--transit" aria-hidden="true"></span>${this.t("Transiting")}</th>${r?s`<th scope="col">${this.t("Transiting house")}</th>`:o}</tr></thead><tbody>${c.map(h=>{let m=D(h.name),g=x(h,"name");return s`<tr><th scope="row"><span aria-hidden="true" class="glyph roxy-glyph">${Tn(h.name,g)}</span> ${g}</th><td>${d(i.get(m))}</td>${p(i.get(m))}<td>${d(l.get(m))}</td>${p(l.get(m))}</tr>`})}</tbody></table></div>`}renderPositionDetails(e){return s`<details class="block" part="section positions"><summary>${this.t("Chart details")}</summary><p>${this.t("Natal")}</p><roxy-western-planets-table bare hide-sections="header" lang="${U(this.effectiveLang())}" exportparts="card, header, table, details, section, houses" .data="${{planets:e.natalPlanets,houses:e.houses,ascendant:e.ascendant}}"></roxy-western-planets-table><p>${this.t("Transiting")}</p><roxy-western-planets-table bare hide-sections="header" lang="${U(this.effectiveLang())}" exportparts="card, header, table, details, section, houses" .data="${{planets:e.transitPlanets}}"></roxy-western-planets-table></details>`}renderAspectDetails(e){return e.length===0?o:s`<details class="block" part="section aspects"><summary>${this.t("Aspects ({{count}})",{count:e.length})}</summary><roxy-aspects-table bare hide-sections="header" lang="${U(this.effectiveLang())}" ?hide-readings="${this.hideReadings}" exportparts="card, header, section, aspects, details, reading, readings, pattern, patterns, strongest" .data="${{aspects:e}}"></roxy-aspects-table></details>`}};Be.endpoints=Nl,Be.styles=[v,pe,xr,O,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{gap:var(--roxy-space-xs);display:grid}details.block>summary{font-weight:var(--roxy-weight-bold)}svg:where([part~=chart]){width:100%;max-width:var(--roxy-chart-max-width,47.5rem);aspect-ratio:1;height:auto;margin:0 auto;display:block}.wheel-line,.tick{fill:none;stroke:var(--roxy-border)}.tick-major{stroke:var(--roxy-secondary)}.natal-glyph,.swatch--natal{--_ring:var(--roxy-accent-ink)}.transit-glyph,.swatch--transit{--_ring:var(--roxy-fg)}.sign-glyph{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}.transit-glyph,.natal-glyph{fill:var(--_ring);font-size:calc(var(--roxy-text-base) * 1.125);font-weight:var(--roxy-weight-bold)}.leader{stroke:var(--_ring);stroke-width:.6px;opacity:.6}.planet-deg{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .625)}.planet-deg .retro{fill:var(--roxy-danger-fg)}.house-cusp{stroke:var(--roxy-secondary);stroke-width:1px;stroke-dasharray:3 3}.house-num{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .5625)}.axis-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}.axis-label{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .625);font-weight:var(--roxy-weight-bold)}@container (width<=480px){.sign-glyph,.natal-glyph,.transit-glyph{font-size:calc(var(--roxy-text-base) * 1.625)}.planet-deg{font-size:calc(var(--roxy-text-base) * .875)}.house-num{font-size:calc(var(--roxy-text-base) * .75)}}.legend,.counts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.counts{color:var(--roxy-fg);font-size:var(--roxy-text-sm)}.swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);background:var(--_ring);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.harmonious{color:var(--roxy-info-fg)}.challenging{color:var(--roxy-danger-fg)}.strongest{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);padding-block:var(--roxy-space-sm);border-block:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);flex-wrap:wrap;margin-block-start:var(--roxy-space-sm);display:flex}.strongest .meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;margin-inline-start:auto}.glyph{line-height:1}.asp-name{font-weight:var(--roxy-weight-bold)}.scroll{min-width:0;overflow-x:auto}table{width:100%}:is(th,td){white-space:nowrap}.retro-badge{color:var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold);margin-inline-start:var(--roxy-space-xs)}`],y([k({type:String})],Be.prototype,"heading",2),y([k({type:Number})],Be.prototype,"ascendant",2),y([k({type:Array})],Be.prototype,"houses",2),Be=y([L("roxy-transit-wheel")],Be);var Pt=class extends f{constructor(){super(...arguments);this.tab="positions"}renderData(e){if(!e.transitPlanets?.length)return this.renderEmpty();let{transitDate:t,transitTime:r,transitPlanets:i,transitAspects:l,summary:c}=e,d=[A(this.effectiveLang(),t),Te(this.effectiveLang(),r)].filter(Boolean).join(" "),p=l?.length??0,h=this.tab;return s`<div class="wrap" part="card" aria-label="${this.t("Transits")}"><div class="head" part="header"><h2>${this.t("Transits")}</h2>${d?s`<p class="roxy-label">${d}</p>`:o}</div>${p>0?s`${ue({items:[{id:"positions",label:this.t("Positions")},{id:"aspects",label:this.t("Aspects ({{count}})",{count:p})}],active:h,onSelect:m=>{this.tab=m},label:this.t("Transit views"),idPrefix:"transits",controls:true})}<div id="transits-panel-${h}" part="panel" role="tabpanel" aria-labelledby="transits-tab-${h}">${h==="positions"?this.renderPlanetsTable(i):s`${c?this.renderSummaryCounts(c):o} ${this.renderAspectsList(l??[])}`}</div>`:this.renderPlanetsTable(i)}</div>`}renderSummaryCounts(e){return s`<p class="counts" part="details" role="region" aria-label="${this.t("Aspect summary")}"><span>${this.t("{{label}}: {{value}}",{label:this.t("Total"),value:e.totalAspects})}</span> <span class="harmonious">${this.t("Harmonious: {{count}}",{count:e.harmonious})}</span> <span class="challenging">${this.t("Challenging: {{count}}",{count:e.challenging})}</span> <span>${this.t("Neutral: {{count}}",{count:e.neutral})}</span></p>`}renderPlanetsTable(e){return s`<div class="scroll" tabindex="0" role="region" aria-label="${this.t("Positions")}"><table part="table"><caption class="roxy-sr-only">${this.t("Transiting planets: each planet with its current sign, degree and daily speed.")}</caption><thead><tr><th scope="col">${this.t("Planet")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Speed")}</th></tr></thead><tbody>${e.map(t=>{let r=C(t.name)??"",i=z(t.sign)??"",l=t.speed>=0?"\u2191":"\u2193";return s`<tr><td><div class="planet-cell"><span class="glyph roxy-glyph" aria-hidden="true">${r}</span> ${x(t,"name")} ${t.isRetrograde?s`<span class="retro roxy-glyph" aria-label="${this.t("retrograde")}">${ae}</span>`:o}</div></td><td><div class="planet-cell"><span class="glyph roxy-glyph" aria-hidden="true">${i}</span> ${x(t,"sign")}</div></td><td class="num">${Fe(t.degree)}</td><td class="speed"><span aria-hidden="true">${l}</span> ${$(this.effectiveLang(),Math.abs(t.speed),2)}${this.t("\xB0/day")}</td></tr>`})}</tbody></table></div>`}renderAspectsList(e){return s`<div part="section aspects" role="list" aria-label="${this.t("Transit aspects")}">${e.map((t,r)=>{let i=C(t.transitPlanet)??"",l=C(t.natalPlanet)??"",c=t.interpretation,d=se(t),p=t.isApplying?this.t("Applying"):this.t("Separating");return s`<details class="aspect-card" part="reading" role="listitem" name="transit-aspects" ?open="${r===0}"><summary><span class="roxy-glyph" aria-hidden="true">${i}</span> ${t.transitPlanet} <span class="asp-name ${de(t)}">${d}</span> <span class="roxy-glyph" aria-hidden="true">${l}</span> ${t.natalPlanet} <span class="meta">${this.t("{{status}} \xB7 orb {{orb}}\xB0 \xB7 str {{strength}}",{status:p,orb:$(this.effectiveLang(),t.orb,2),strength:$(this.effectiveLang(),t.strength,1)})} </span>${V()}</summary><div class="interp-body">${Nr(c,this.translator)}</div></details>`})}</div>`}};Pt.endpoints=zl,Pt.styles=[v,ge,O,lt,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}h2,p{margin:0}.head{gap:var(--roxy-space-xs);display:grid}.counts{gap:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);flex-wrap:wrap;margin-block-end:var(--roxy-space-sm);display:flex}.harmonious{color:var(--roxy-info-fg)}.challenging{color:var(--roxy-danger-fg)}.scroll{min-width:0;overflow-x:auto}table{width:100%}.glyph{line-height:1}.planet-cell{align-items:baseline;gap:var(--roxy-space-xs);display:flex}.retro{color:var(--roxy-danger-fg);font-weight:var(--roxy-weight-bold)}td.num,.speed{color:var(--roxy-muted)}.speed{white-space:nowrap}.aspect-card{padding-block:var(--roxy-space-sm);border-block-start:1px solid var(--roxy-border)}.aspect-card summary{align-items:center;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.asp-name{font-weight:var(--roxy-weight-bold)}.meta{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;margin-inline-start:auto}.aspect-card .interp-body{font-size:var(--roxy-text-sm);margin-block-start:var(--roxy-space-xs)}.aspect-card .interp-body p{margin:0 0 var(--roxy-space-xs)}`],y([I()],Pt.prototype,"tab",2),Pt=y([L("roxy-transits-table")],Pt);var Iu=[{key:"timeBased",titleSource:"Time based",noteSource:"From the eightfold division of the day or night, so these depend on the birth time, the place and the weekday."},{key:"sunBased",titleSource:"Sun based",noteSource:"The Dhuma group, derived by fixed arc from the Sun. Dhuma is the Sun plus 133 degrees 20 minutes, and each of the rest follows from the one before it."}],Oa=class extends f{renderData(a){let e=Iu.filter(t=>a[t.key]?.length);return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Upagraha positions")}"><header class="head" part="header"><h2>${this.t("Upagrahas")}</h2>${W(this.effectiveLang(),a.frame,this.translator)}</header>${e.map(t=>this.renderGroup(t,a[t.key]))}</div>`:this.renderEmpty()}renderGroup(a,e){let t=s`<div class="group-head"><h3>${this.t(a.titleSource)}</h3><p class="group-note">${this.t(a.noteSource)}</p></div><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t(a.titleSource)}"><table role="table"><caption class="roxy-sr-only">${this.t("{{group}} upagrahas: each sub-planet with its rashi, degree in sign, sidereal longitude, and nakshatra with pada.",{group:this.t(a.titleSource)})}</caption><thead><tr><th scope="col">${this.t("Upagraha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Longitude")}</th><th scope="col">${this.t("Nakshatra")}</th><th scope="col">${this.t("Pada")}</th></tr></thead><tbody>${e.map(r=>{let i=z(r.rashi)??"";return s`<tr><td class="name">${r.name}</td><td>${i?s`<span class="glyph roxy-glyph">${i}</span>`:o}${r.rashi??""}</td><td>${typeof r.longitude=="number"?ye(r.longitude):""}</td><td>${$(this.effectiveLang(),r.longitude,2)}</td><td>${r.nakshatra??""}</td><td>${r.nakshatraPada??""}</td></tr>`})}</tbody></table></div>`;return a.key==="timeBased"?s`<section part="section time-based">${t}</section>`:s`<section part="section sun-based">${t}</section>`}};Oa.endpoints=Ol,Oa.styles=[v,B,u`.wrap{overflow:hidden}.head{padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border)}h2,h3,p{margin:0}.group-head{gap:var(--roxy-space-xs);padding:var(--roxy-space-md) var(--roxy-space-md) 0;display:grid}.group-note{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}:is(th,td):first-child{padding-inline-start:var(--roxy-space-md)}:is(th,td):last-child{padding-inline-end:var(--roxy-space-md)}tbody tr:last-child td{border-block-end:0}td.name{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}`],Oa=y([L("roxy-upagraha-table")],Oa);var Gu=["North","East","South","West"],Fu={perimeter:"Perimeter",innerRing:"Inner ring",innerCorner:"Inner corner",center:"Center"},Bu={auspicious:"Favourable",inauspicious:"Unfavourable",mixed:"Mixed"},Hu={feet:"ft\xB2",metres:"m\xB2"},An=.04,ju=8,Ku=.88;function Fp(n){return"cells"in n}function Uu(n){let a=n.map(l=>l.center?.x).filter(l=>l!=null),e=n.map(l=>l.center?.y).filter(l=>l!=null),t=Math.max(0,...n.map(l=>l.rowFromNorth??0),...n.map(l=>l.columnFromWest??0));if(t<2||a.length===0||e.length===0)return;let r=(Math.max(...a)-Math.min(...a))/(t-1),i=(Math.max(...e)-Math.min(...e))/(t-1);if(!(!(r>0)||!(i>0)))return{size:t,cellW:r,cellH:i,originX:Math.min(...a)-r/2,originY:Math.min(...e)-i/2}}function Dn(n,a){let e=((a?.x??0)-n.originX)/n.cellW,t=n.size-((a?.y??0)-n.originY)/n.cellH;return[Bp(e),Bp(t)]}function Bp(n){return Math.round(n*1e3)/1e3}var _t=class extends f{constructor(){super(...arguments);this.mode="mandala"}renderData(e){let t=this.effectiveLang(),r=Fp(e)?e:void 0,i=this.mode==="entrance"&&!Fp(e)?e:void 0,l=r?Uu(r.cells??[]):Vu(e.conventions?.grid);return s`<article class="card" part="card" aria-labelledby="vastu-title"><header class="head" part="header"><h2 class="title" id="vastu-title">${i?this.t("Entrance pada"):this.t("Vastu mandala")}</h2>${i?.auspiciousness?s`<span class="${`roxy-chip verdict-${i.auspiciousness}`}">${this.verdictLabel(i.auspiciousness)}</span>`:o}</header>${this.renderGrid(t,l,r,i)} ${this.renderLegend(i,r)} ${this.renderDevatas(t,r?.cells)} ${this.renderFacts(t,e,r,i)} ${i?.effect&&!this.hideReadings?s`<p class="effect" part="reading">${i.effect}</p>`:o} ${i?.reading&&!this.hideReadings?s`<p class="reading" part="reading">${i.reading}</p>`:o} ${this.renderSources(r?.sources??(i?.source?[i.source]:[]))}</article>`}renderGrid(e,t,r,i){if(!t)return o;let l=t.size,c=`${-An} ${-An} ${l+An*2} ${l+An*2}`;return s`<div class="frame" part="chart">${Gu.map(d=>s`<span class="${`compass compass-${d[0]?.toLowerCase()}`}">${j(e,"facing",d)}</span>`)} <svg viewBox="${c}" role="img" aria-label="${this.t("Vastu grid, north at the top and west on the left")}">${(r?.cells??[]).map(d=>this.renderCell(e,d))} ${i?this.renderEmptyGrid(l):o} ${i?this.renderDoor(e,i):o} ${this.renderVamsa(t,r?.vamsa)} ${this.renderBrahmasthan(t,r?.brahmasthan?.polygon)} ${this.renderAtimarma(t,r)}</svg></div>`}renderCell(e,t){let r=t.class??t.role??"",i=["pada",r?`pada-${r}`:"",t.withinPlot===false?"pada-outside":""].filter(Boolean).join(" "),l=t.devataName??"";return this.renderPada(e,t.columnFromWest,t.rowFromNorth,i,t.square,l,[l,this.ringLabel(r)].filter(Boolean).join(" \xB7 "))}renderPada(e,t,r,i,l,c,d){let p=(t??1)-1,h=(r??1)-1,m=c.length>ju;return F`<g>
|
|
152
152
|
<rect class=${i} x=${p} y=${h} width="1" height="1">
|
|
153
153
|
<title>${d}</title>
|
|
154
154
|
</rect>
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
class="devata"
|
|
158
158
|
x=${p+.5}
|
|
159
159
|
y=${h+.68}
|
|
160
|
-
textLength=${U(m?
|
|
160
|
+
textLength=${U(m?Ku:void 0)}
|
|
161
161
|
lengthAdjust=${U(m?"spacingAndGlyphs":void 0)}
|
|
162
162
|
>${c}</text
|
|
163
163
|
>`:o}
|
|
164
|
-
</g>`}renderEmptyGrid(e){let t=[];for(let r=0;r<e;r++)for(let i=0;i<e;i++)t.push(F`<rect class="pada" x=${i} y=${r} width="1" height="1"></rect>`);return t}renderDoor(e,t){let r=t.devata?.name??"";return this.renderPada(e,t.cell?.columnFromWest,t.cell?.rowFromNorth,"pada pada-door",t.square,r,r)}renderVamsa(e,t){return(t??[]).map(r=>{let[i,l]=En(e,r.from),[c,d]=En(e,r.to);return F`<line class="vamsa" x1=${i} y1=${l} x2=${c} y2=${d}></line>`})}renderBrahmasthan(e,t){let r=t??[];if(r.length<3)return o;let i=r.map(l=>En(e,l).join(",")).join(" ");return F`<polygon class="brahmasthan" points=${i}></polygon>`}renderAtimarma(e,t){let r=new Set(t?.atimarma??[]);return r.size===0?o:(t?.cells??[]).filter(i=>i.square!=null&&r.has(i.square)).map(i=>{let[l,c]=En(e,i.center);return F`<circle class="atimarma" cx=${l} cy=${c} r="0.06"></circle>`})}renderDevatas(e,t){let r=new Map;for(let i of t??[])!i.devataName||i.square==null||r.set(i.devataName,[...r.get(i.devataName)??[],i.square]);return r.size===0?o:s`<section part="section devatas"><h3 class="block-title">${this.t("Devata")}</h3><ul class="devatas">${[...r].map(([i,l])=>s`<li><b>${i}</b> ${l.sort((c,d)=>c-d).map(c=>N(e,c)).join(", ")}</li>`)}</ul></section>`}renderLegend(e,t){if(e)return s`<div class="legend" part="legend"><span><span class="swatch swatch-door"></span>${this.t("Door pada")}</span></div>`;let r=(t?.cells??[]).some(i=>i.withinPlot===false);return s`<div class="legend" part="legend"><span><span class="swatch swatch-brahma"></span>${this.t("Brahmasthan")}</span> ${r?s`<span><span class="swatch swatch-outside"></span>${this.t("Outside the plot")}</span>`:o}</div>`}renderFacts(e,t,r,i){let l=t.conventions?.grid;return s`<div class="facts" part="details">${l?s`<span><span class="roxy-label">${X(e,"grid")}</span><b>${j(e,"grid",l)}</b></span>`:o} ${i?.pada!=null?s`<span><span class="roxy-label">${this.t("Pada")}</span><b>${N(e,i.pada)}</b></span>`:o} ${i?.side?s`<span><span class="roxy-label">${this.t("Side")}</span><b>${j(e,"facing",i.side)}</b></span>`:o} ${i?.startCorner?s`<span><span class="roxy-label">${this.t("Counted from")}</span>${j(e,"facing",i.startCorner)} ${i.ordinalOnSide!=null?s`· ${N(e,i.ordinalOnSide)}`:o}</span>`:o} ${i?.devata?.name?s`<span><span class="roxy-label">${this.t("Devata")}</span><b>${i.devata.name}</b> ${i.devata.padaCount!=null?s`· ${this.t("Pada")} ${N(e,i.devata.padaCount)}`:o}</span>`:o} ${i?.recommendedPadas?.length?s`<span><span class="roxy-label">${this.t("Recommended padas")}</span>${i.recommendedPadas.map(c=>N(e,c)).join(", ")}</span>`:o} ${r?.brahmasthan?.area!=null?s`<span><span class="roxy-label">${this.t("Brahmasthan area")}</span><b>${this.areaLabel(e,r.brahmasthan.area,r.conventions?.unit)}</b></span>`:o} ${r?.marma?.areaEach!=null?s`<span><span class="roxy-label">${this.t("Area of one marma")}</span>${this.areaLabel(e,r.marma.areaEach,r.conventions?.unit)}</span>`:o} ${r?.atimarma?.length?s`<span><span class="roxy-label">${this.t("Crossing points")}</span>${r.atimarma.map(c=>N(e,c)).join(", ")}</span>`:o}</div>`}renderSources(e){return e.length===0?o:s`<section part="section sources"><ul class="cites">${e.map(t=>s`<li>${jr(t)}</li>`)}</ul></section>`}areaLabel(e,t,r){let i=$(e,t,2);if(!r)return i;let l=Fu[r]??`${r}\xB2`;return s`<span title="${j(e,"unit",r)}">${i} ${l}</span>`}ringLabel(e){let t=Iu[e];return t?this.t(t):E(e)}verdictLabel(e){let t=Gu[e];return t?this.t(t):E(e)}};_t.endpoints=zl,_t.styles=[v,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);--_brahma:color-mix(in srgb, var(--roxy-accent) 16%, var(--roxy-surface));--_outside:color-mix(in srgb, var(--roxy-muted) 18%, var(--roxy-surface));--_door:color-mix(in srgb, var(--roxy-success) 26%, var(--roxy-surface));grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.block-title{margin:0}.block-title{margin-block-end:var(--roxy-space-sm)}.verdict-auspicious{color:var(--roxy-success-fg)}.verdict-inauspicious{color:var(--roxy-danger-fg)}.verdict-mixed{color:var(--roxy-warning-fg)}.frame{place-items:center;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-xs);inline-size:100%;max-inline-size:var(--roxy-chart-max-width,32rem);grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:".n.""w plate e"".s.";margin-inline:auto;display:grid}.compass{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.compass-n{grid-area:n}.compass-s{grid-area:s}.compass-w,.compass-e{writing-mode:vertical-rl}.compass-w{grid-area:w;rotate:180deg}.compass-e{grid-area:e}svg{grid-area:plate;width:100%;height:auto;display:block}.pada{fill:var(--roxy-surface);stroke:var(--roxy-border);stroke-width:.012px}.pada-innerRing,.pada-innerCorner,.pada-around-brahma{fill:color-mix(in srgb, var(--roxy-accent) 7%, var(--roxy-surface))}.pada-center,.pada-brahma{fill:var(--_brahma)}.pada-outside{fill:var(--_outside)}.pada-door{fill:var(--_door);stroke:var(--roxy-fg);stroke-width:.03px}.brahmasthan{fill:none;stroke:var(--roxy-accent-ink);stroke-width:.05px}.vamsa{stroke:var(--roxy-secondary);stroke-width:.02px;stroke-dasharray:.12 .1}.atimarma{fill:var(--roxy-accent-ink)}text{fill:var(--roxy-fg);text-anchor:middle}.devata{font-size:calc(var(--roxy-text-base) * .011875)}.square-no{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .00875)}@container (width<=30rem){.devata{display:none}.square-no{font-size:calc(var(--roxy-text-base) * .02125);dominant-baseline:middle;translate:0 .31lh}}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.facts .roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b,.devatas b{color:var(--roxy-fg)}.devatas{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.legend{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.swatch-brahma{background:var(--_brahma)}.swatch-outside{background:var(--_outside)}.swatch-door{background:var(--_door)}.effect{margin:0;padding-block-start:var(--roxy-space-md)}.reading{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);border-block-start:0;margin:0}.cites{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin:0;padding:0;list-style:none}`],y([k({type:String,reflect:true})],_t.prototype,"mode",2),_t=y([L("roxy-vastu-mandala")],_t);function Ku(n){let a=Number.parseInt(n??"",10),e=Math.round(Math.sqrt(a));if(!(!Number.isFinite(e)||e<2||e*e!==a))return{size:e,originX:0,cellW:1,originY:0,cellH:1}}var Ia=class extends f{renderData(a){let e=a.aspects??[],t=a.mutualAspects??[],r=a.planets??[];if(e.length===0&&t.length===0)return this.renderEmpty();let i=a.datetime?Y(this.effectiveLang(),a.datetime):"";return s`<div class="wrap" part="card" aria-label="${this.t("Vedic aspects")}"><div class="head" part="header"><h2>${this.t("Vedic aspects")}</h2>${i?s`<p class="roxy-label">${this.t("Chart time {{when}}",{when:i})}</p>`:o}</div>${r.length>0?s`<div part="section positions"><h3 class="section-label">${this.t("Sidereal positions")}</h3><ul class="roxy-chips">${r.map(l=>s`<li class="position"><strong>${l.name}</strong> ${typeof l.longitude=="number"?ye(l.longitude):l.sign??""}</li>`)}</ul></div>`:o} ${t.length>0?s`<div part="section mutual-aspects"><h3 class="section-label">${this.t("Mutual aspects")}</h3><ul class="roxy-chips">${t.map(l=>s`<li class="mutual-pill">${l.planet1} <span class="roxy-glyph" aria-hidden="true">${Hc}</span> ${l.planet2} ${l.aspectType?s`<span class="rel">${l.aspectType}</span>`:o}</li>`)}</ul></div>`:o} ${e.length>0?s`<div class="overflow-scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Vedic aspects")}"><table><caption class="roxy-sr-only">${this.t("Vedic planetary aspects: aspecting planet, aspect type, aspected planet, strength and orb.")}</caption><thead><tr><th scope="col">${this.t("From")}</th><th scope="col">${this.t("Aspect")}</th><th scope="col">${this.t("To")}</th><th scope="col">${this.t("Strength")}</th><th scope="col">${this.t("Orb")}</th></tr></thead><tbody>${e.map(l=>s`<tr><td>${l.aspectingPlanet}</td><td><span class="kind">${l.aspectType}</span></td><td>${l.aspectedPlanet}</td><td>${typeof l.strength=="number"?s`<span class="bar" style="--_v:${Math.max(10,Math.min(100,l.strength))}"></span><span class="num">${$(this.effectiveLang(),l.strength,0)}</span>`:o}</td><td class="num">${typeof l.orb=="number"?`${$(this.effectiveLang(),l.orb,2)}\xB0`:""}</td></tr>`)}</tbody></table></div>`:o}</div>`}};Ia.endpoints=Ol,Ia.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}h2,h3,p{margin:0}.section-label{margin-block-end:var(--roxy-space-xs)}.position,.mutual-pill{font-variant-numeric:tabular-nums;min-width:0}.position strong,.mutual-pill{color:var(--roxy-fg)}.overflow-scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}tbody tr:last-child td{border-block-end:0}.kind{font-weight:var(--roxy-weight-bold)}.num{color:var(--roxy-muted)}.bar{inline-size:calc(var(--_v) * 5ch / 100);block-size:.3lh;border-radius:var(--roxy-radius-full);background:var(--roxy-accent);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}`],Ia=y([L("roxy-vedic-aspects")],Ia);var to={favourable:"Favourable",underdelivered:"Underdelivered",obstructed:"Obstructed",void:"Void",aggravated:"Aggravated",unfavourable:"Unfavourable"},Uu=Object.keys(to),Vu={favourable:"success",aggravated:"danger",unfavourable:"danger"},Fp=8,An={"very-strong":"Very strong",strong:"Strong",moderate:"Moderate",weak:"Weak"},qu={day:"Day",finance:"Finance",natal:"Natal"},Bp={mahadasha:"Mahadasha",antardasha:"Antardasha",pratyantardasha:"Pratyantardasha"},Ga=class extends f{renderData(a){let e=a.grahas??[];return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Vedic daily reading")}">${this.renderHead(a)} ${this.renderPanchanga(a)} ${this.renderGrahas(e,a.houseThemes)} ${this.renderWindows(a)} ${this.renderFinance(a)} ${this.renderDasha(a)} ${this.renderProvenance(a)}</div>`:this.renderEmpty()}renderHead(a){let e=new Map((a.tally??[]).map(r=>[r.state,r.count])),t=e.get("favourable")??0;return s`<header class="head" part="header"><div class="title-row"><h2>${this.t("Vedic daily")}</h2><span class="roxy-label">${pr(this.effectiveLang(),a.dayStart,a.dayEnd)}</span></div><div class="verdict-row"><span class="verdict ${a.verdict}">${this.t(An[a.verdict])}</span> <span class="evidence">${this.t("{{supportive}} of {{evaluated}} grahas support this day",{supportive:t,evaluated:a.evaluated})}</span></div>${e.size?s`<ul class="tally roxy-chips" part="legend">${Uu.filter(r=>e.get(r)).map(r=>s`<li class="pill">${this.t(to[r])} ${e.get(r)}</li>`)}</ul>`:o} ${a.subject?s`<p class="note">${this.t("Born with the Moon in {{rashi}}, nakshatra {{nakshatra}}",{rashi:a.subject.janmaRashi,nakshatra:a.subject.janmaNakshatra})}</p>`:o} ${(a.degraded??[]).map(r=>s`<p class="note">${this.t("{{component}} unavailable: {{reason}}",{component:r.component,reason:r.reason})}</p>`)}</header>`}renderPanchanga(a){let e=a.panchanga;if(!e)return o;let t=(r,i)=>i?s`<div><dt>${r}</dt><dd>${i.number?`${i.number}. `:""}${i.name} ${i.validTo?s`<span class="until">${this.t("until {{time}}",{time:Y(this.effectiveLang(),i.validTo)})}</span>`:o}</dd></div>`:o;return s`<section class="block" part="section panchanga"><h3>${this.t("Panchang")}</h3><dl class="roxy-facts" part="details"><div><dt>${this.t("Vara")}</dt><dd>${e.vara}</dd></div><div><dt>${this.t("Paksha")}</dt><dd>${e.paksha}</dd></div>${t(this.t("Tithi"),e.tithi)} ${t(this.t("Nakshatra"),e.nakshatra)} ${t(this.t("Yoga"),e.yoga)} ${t(this.t("Karana"),e.karana)}</dl></section>`}theme(a,e){return a?.[String(e)]?.join(", ")??""}renderGrahas(a,e){return s`<section class="block" part="section grahas"><h3>${this.t("Grahas today")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Grahas today")}"><table part="table"><caption class="roxy-sr-only">${this.t("Each transiting graha with its sign, the house it occupies from the natal Moon, its bindus, its kaksha and the state the classical rules give it.")}</caption><thead><tr><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Bindus")}</th><th scope="col">${this.t("Kaksha")}</th><th scope="col">${this.t("State")}</th></tr></thead><tbody>${a.map(t=>{let r=C(t.graha)??"",i=this.theme(e,t.houseFromMoon);return s`<tr><td>${r?s`<span class="glyph roxy-glyph">${r}</span>`:o}${t.graha}</td><td>${t.sign}</td><td title="${i}">${t.houseFromMoon}</td><td>${typeof t.binduCount=="number"?t.binduCount:""}</td><td>${this.renderKaksha(t.kaksha)}</td><td><span class="state roxy-chip ${t.state}" data-tone="${Vu[t.state]??o}" title="${t.stateSource??""}">${this.t(to[t.state])}</span></td></tr>`})}</tbody></table></div></section>`}renderKaksha(a){if(!a||typeof a.number!="number")return o;let e=a.bindu===true?"yes":a.bindu===false?"no":"",t=a.bindu===true?this.t("this kaksha lord gave bindu"):a.bindu===false?this.t("this kaksha lord gave no bindu"):"",r=this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}, spanning {{start}}\xB0 to {{end}}\xB0 of the sign",{n:a.number,total:Fp,graha:a.lord,start:$(this.effectiveLang(),a.startDegree,2),end:$(this.effectiveLang(),a.endDegree,2)});return s`<span class="kaksha" title="${t?`${r} \xB7 ${t}`:r}">${a.number}/${Fp} <span class="dot ${e}" aria-hidden="true"></span></span>`}renderWindows(a){let e=a.tara??[],t=a.chandrabala??[];if(!e.length&&!t.length)return o;let r=(i,l)=>s`<small>${pr(this.effectiveLang(),i,l)}</small>`;return s`<section class="block" part="section windows"><h3>${this.t("Tara and Chandrabala")}</h3>${e.length?s`<div class="chips">${e.map(i=>s`<span class="window"><span>${i.number}. ${i.name}${i.quality?` \xB7 ${i.quality}`:""}</span> ${r(i.validFrom,i.validTo)}</span>`)}</div>`:o} ${t.length?s`<div class="chips">${t.map(i=>s`<span class="window ${i.favourable?"yes":"no"}"><span>${this.t("Moon in {{sign}}, house {{n}}",{sign:i.moonSign,n:i.houseFromMoon})} ${i.ashtamaChandra?s`<span class="mark">· ${this.t("Ashtama Chandra")}</span>`:o} </span>${r(i.validFrom,i.validTo)}</span>`)}</div>`:o}</section>`}renderFinance(a){let e=a.areas?.finance;if(!e)return o;let t=a.houseThemes,r=i=>{let l=this.theme(t,i.house);return s`<li>${i.graha} · ${this.t("House {{n}}",{n:i.house})}${l?` (${l})`:""} · ${this.t("level {{level}} {{grade}}",{level:i.level,grade:i.grade})} ${i.dashaLevels?.length?s`<span class="note">${i.dashaLevels.map(c=>this.t(Bp[c])).join(", ")}</span>`:o}</li>`};return s`<section class="block" part="section finance"><h3>${this.t("Finance")}</h3><div class="verdict-row"><span class="verdict ${e.band??""}">${e.band?this.t(An[e.band]):""}</span> ${typeof e.positive=="number"&&typeof e.negative=="number"?s`<span class="evidence">${this.t("{{positive}} positive against {{negative}} negative",{positive:e.positive,negative:e.negative})}</span>`:o}</div><div class="lists">${e.drivers?.length?s`<div><h3>${this.t("Drivers")}</h3><ul>${e.drivers.map(r)}</ul></div>`:o} ${e.cautions?.length?s`<div><h3>${this.t("Cautions")}</h3><ul>${e.cautions.map(r)}</ul></div>`:o}</div>${this.renderComposite(e.composite)}</section>`}renderComposite(a){return a?s`<div class="composite"><h3>${this.t("Combined score")}</h3><div class="verdict-row"><span class="verdict ${a.band}">${this.t(An[a.band])}</span> <span class="evidence">${a.score}</span></div><ul class="layers">${a.layers.map(e=>s`<li><span>${this.t(qu[e.layer])}</span> <span class="evidence">${e.score}</span> <span class="band">${this.t(An[e.band])}</span></li>`)}</ul></div>`:o}renderDasha(a){let e=a.dasha??[];return e.length?s`<section class="block" part="section dasha"><h3>${this.t("Dasha")}</h3><div class="chips">${e.map(t=>s`<span class="window"><span>${this.t(Bp[t.level])} · ${t.lord}</span> <small>${pr(this.effectiveLang(),t.startDate,t.endDate)}</small></span>`)}</div></section>`:o}renderProvenance(a){return a.frames?s`<section class="block" part="section frame">${Kc(this.effectiveLang(),a.frames,this.translator)}</section>`:o}};Ga.endpoints=Il,Ga.styles=[v,B,J,u`.wrap{grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}.head,.block{gap:var(--roxy-space-sm);padding:var(--roxy-space-md);display:grid}.block{border-block-start:1px solid var(--roxy-border)}h2,h3,p{margin:0}.title-row{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.verdict-row{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.verdict{color:var(--roxy-secondary);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold)}.verdict:is(.very-strong,.strong){color:var(--roxy-success-fg)}.verdict.moderate{color:var(--roxy-accent-ink)}.evidence{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.pill{font-variant-numeric:tabular-nums}.roxy-facts{margin:0}.until{color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:block}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.state{cursor:help}.kaksha{align-items:center;gap:var(--roxy-space-xs);cursor:help;display:inline-flex}.dot{aspect-ratio:1;border-radius:var(--roxy-radius-full);background:var(--roxy-border);inline-size:1ch}.dot.yes{background:var(--roxy-success)}.dot.no{background:var(--roxy-warning)}.chips{gap:var(--roxy-space-sm) var(--roxy-space-lg);flex-wrap:wrap;display:flex}.window{font-size:var(--roxy-text-sm);display:grid}.window small{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}.window.yes>:first-child{color:var(--roxy-success-fg)}.window.no>:first-child,.mark{color:var(--roxy-danger-fg)}.lists{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,24ch),1fr));display:grid}.lists ul{font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md)}.note{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.composite{gap:var(--roxy-space-sm);display:grid}.layers{gap:var(--roxy-space-xs);font-size:var(--roxy-text-sm);margin:0;padding:0;list-style:none;display:grid}.layers li{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}.layers .band{color:var(--roxy-secondary)}`],Ga=y([L("roxy-vedic-daily")],Ga);var He=class extends f{constructor(){super(...arguments);this.chartViewport=new ne(this);this.chartStyle="north";this.chartReference="lagna";this.lagnaOverride="";this.setStyle=e=>{this.chartStyle=e}}resolveReference(){if(this.lagnaOverride)return this.lagnaOverride;if(this.chartReference==="moon")return this.data?.meta?.Moon?.rashi}viewModel(){return this.data?.meta?Zs(this.data.meta,{divisionLabel:"D1 Rashi",lagnaOverride:this.resolveReference(),states:this.data}):null}renderData(e){let t=this.viewModel();if(!t)return this.renderEmpty();let r=this.chartReference==="moon"&&!this.lagnaOverride?this.t("Chandra lagna"):this.t("Vedic kundli");return s`<div class="wrap" part="card"><div class="header" part="header"><div><h2 class="title">${r}</h2>${W(this.effectiveLang(),e.frame,this.translator)} ${Js(t,this.translator)}</div>${Qs(this.chartStyle,this.setStyle,this.translator)}</div><div id="kundli-panel-${this.chartStyle}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="kundli-tab-${this.chartStyle}">${this.chartViewport.renderChartViewport(ke(Xs(t,{style:this.chartStyle,lang:this.effectiveLang()})),r,this.translator)}</div></div>`}};He.endpoints=Gl,He.styles=[v,pe,B,Ds,en,ge],y([k({type:String,reflect:true,attribute:"chart-style"})],He.prototype,"chartStyle",2),y([k({type:String,reflect:true,attribute:"chart-reference"})],He.prototype,"chartReference",2),y([k({type:String,reflect:true,attribute:"lagna-override"})],He.prototype,"lagnaOverride",2),He=y([L("roxy-vedic-kundli")],He);var Yu=["Lagna","Sun","Moon","Mars","Mercury","Jupiter","Venus","Saturn","Rahu","Ketu"],Hp=[["awastha","Baladi."],["jagradadi","Jagradadi."],["deeptadi","Deeptadi."]],Fa=class extends f{orderedRows(){let a=this.data?.meta??{},e=new Set,t=[];for(let r of Yu){let i=a[r];i&&(t.push([r,i]),e.add(r))}for(let[r,i]of Object.entries(a))e.has(r)||t.push([r,i]);return t}renderData(a){if(!a.meta)return this.renderEmpty();let e=this.orderedRows(),t=e.some(([,r])=>r.avasthaInfo);return s`<div class="wrap" part="card" aria-label="${this.t("Vedic planetary positions")}"><header class="head" part="header"><h2>${this.t("Planetary positions")}</h2>${W(this.effectiveLang(),a.frame,this.translator)}</header><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Planetary positions")}"><table role="table"><caption class="roxy-sr-only">${this.t("Vedic planetary positions: each graha with its rashi, degree, nakshatra, pada, nakshatra lord, house, its state in all three avastha systems, and retrograde state. Jagradadi and Deeptadi are read from sign dignity, which the nodes and the Lagna do not have, so those two cells are blank on the Rahu, Ketu and Lagna rows. Uranus, Neptune and Pluto appear only when asked for and rule no sign, so every avastha and house cell is blank on their rows too.")} ${t?this.t("Each avastha state is followed by its meaning."):o}</caption><thead><tr><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Nakshatra")}</th><th scope="col">${this.t("Pada")}</th><th scope="col">${this.t("Nak. lord")}</th><th scope="col">${this.t("House")}</th><th scope="col" title="${this.t("Baladi: the five age states, set by degree within the sign")}">${this.t("Baladi")}</th><th scope="col" title="${this.t("Jagradadi: the three waking states, set by sign dignity. The seven classical grahas only")}">${this.t("Jagradadi")}</th><th scope="col" title="${this.t("Deeptadi: the nine dispositional states, set by sign dignity. The seven classical grahas only")}">${this.t("Deeptadi")}</th><th scope="col">${this.t("Retro")}</th></tr></thead><tbody>${e.map(([r,i])=>{let l=(i.graha??r)==="Lagna",c=C(i.graha??r)??"",d=z(i.rashi)??"";return s`<tr class="${l?"lagna":""}"><td class="graha">${c?s`<span class="glyph roxy-glyph">${c}</span>`:o}${i.graha??r}</td><td>${d?s`<span class="glyph roxy-glyph">${d}</span>`:o}${i.rashi??""}</td><td>${typeof i.longitude=="number"?ye(i.longitude):""}</td><td>${i.nakshatra?.name??""}</td><td>${i.nakshatra?.pada??""}</td><td>${i.nakshatra?.lord??""}</td><td>${typeof i.house=="number"?i.house:""}</td>${Hp.map(([p])=>s`<td>${i[p]??""}${i.avasthaInfo?.[p]?.meaning?s`<span class="gloss">${i.avasthaInfo[p].meaning}</span>`:o}</td>`)}<td>${i.isRetrograde?s`<span class="retro">R</span>`:o}</td></tr>`})} ${this.renderModernRows()}</tbody></table></div>${this.renderCombustion()} ${this.renderPlanetaryWar()} ${this.renderInterpretations()} ${this.renderYogas()} ${this.renderHouses()}</div>`}renderModernRows(){let a=this.data?.modernPlanets??[];return a.length===0?o:a.map((e,t)=>{let r=z(e.rashi)??"";return s`<tr class="modern ${t===0?"modern-first":""}"><td class="graha">${zr(e.planet,e.sanskritName)}</td><td>${r?s`<span class="glyph roxy-glyph">${r}</span>`:o}${e.rashi??""}</td><td>${typeof e.longitude=="number"?ye(e.longitude):""}</td><td>${e.nakshatra?.name??""}</td><td>${e.nakshatra?.pada??""}</td><td>${e.nakshatra?.lord??""}</td><td></td><td></td><td></td><td></td><td>${e.isRetrograde?s`<span class="retro">R</span>`:o}</td></tr>`})}renderCombustion(){let a=this.data?.combustion??[];return a.length===0?o:s`<details class="panel" part="section combustion"><summary>${this.t("Combust grahas")}<span class="summary-count">${a.length}</span>${V()}</summary><div class="panel-body">${a.map(e=>{let t=C(e.planet)??"",r=$(this.effectiveLang(),e.distanceFromSun,2),i=$(this.effectiveLang(),e.orb,1);return s`<div class="condition"><span class="planet">${ce(t)} ${e.planet}</span> <span class="detail">${this.t("{{distance}} deg from Sun, within {{orb}} deg orb",{distance:r,orb:i})}</span></div>`})}</div></details>`}renderPlanetaryWar(){let a=this.data?.planetaryWar??[];return a.length===0?o:s`<details class="panel" part="section planetary-war"><summary>${this.t("Planetary wars")}<span class="summary-count">${a.length}</span>${V()}</summary><div class="panel-body">${a.map(e=>{let t=$(this.effectiveLang(),e.distance,2);return s`<div class="condition"><span class="planet">${this.t("{{first}} vs {{second}}",{first:e.planet1,second:e.planet2})}</span> <span class="detail">${this.t("{{distance}} deg apart",{distance:t})}</span> <span class="winner">${this.t("{{graha}} wins",{graha:e.winner})}</span></div>`})}</div></details>`}renderInterpretations(){if(this.hideReadings)return o;let a=this.data?.interpretations??{},e=this.orderedRows().map(([t,r])=>[r.graha??t,a[r.graha??t],r.avasthaInfo]).filter(([,t,r])=>t!=null||r!=null);return e.length===0?o:s`<details class="panel" part="section readings"><summary>${this.t("Interpretations")}<span class="summary-count">${e.length}</span>${V()}</summary><div class="panel-body">${e.map(([t,r,i])=>{let l=C(t)??"";return s`<div class="interp"><span class="planet">${ce(l)} ${t}</span> ${r?.rashi?s`<p><span class="label">${this.t("Rashi.")}</span> ${r.rashi}</p>`:o} ${r?.nakshatra?s`<p><span class="label">${this.t("Nakshatra.")}</span> ${r.nakshatra}</p>`:o} ${Hp.map(([c,d])=>i?.[c]?.interpretation?s`<p><span class="label">${this.t(d)}</span> ${i[c].interpretation}</p>`:o)}</div>`})}</div></details>`}renderHouses(){let a=(this.data?.houses??[]).filter(e=>e.name||e.description);return a.length===0?o:s`<details class="panel" part="section bhava-significations"><summary>${this.t("Bhava significations")}<span class="summary-count">${a.length}</span>${V()}</summary><div class="panel-body">${a.map(e=>s`<div class="bhava"><span class="name">${e.number}. ${e.name??""}</span> ${e.description?s`<p class="desc">${e.description}</p>`:o}</div>`)}</div></details>`}renderYogas(){let a=(this.data?.yogas??[]).filter(e=>e.present);return a.length===0?o:s`<details class="panel" part="section yogas"><summary>${this.t("Yogas")}<span class="summary-count">${a.length}</span>${V()}</summary><div class="panel-body">${a.map(e=>s`<div class="bhava"><span class="name">${e.name} ${e.quality?s`<span class="quality ${e.quality.toLowerCase()}">${e.quality}</span>`:o}</span> ${e.result?s`<p class="desc">${e.result}</p>`:o}</div>`)}</div></details>`}};Fa.endpoints=Fl,Fa.styles=[v,B,O,u`.wrap{overflow:hidden}.head{padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border)}h2,p{margin:0}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}:is(th,td):first-child{padding-inline-start:var(--roxy-space-md)}:is(th,td):last-child{padding-inline-end:var(--roxy-space-md)}tbody tr.lagna td:first-child{box-shadow:inset var(--roxy-line-thick) 0 0 var(--roxy-accent)}tbody tr.lagna .glyph{color:var(--roxy-accent-ink)}tbody tr.modern-first td{border-block-start:var(--roxy-line-thick) solid var(--roxy-border)}td.graha{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.gloss{color:var(--roxy-secondary);font-size:var(--roxy-text-xs);display:block}.retro{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}details.panel{border-block-start:1px solid var(--roxy-border)}details.panel>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);padding:var(--roxy-space-sm) var(--roxy-space-md);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);display:flex}.summary-count{margin-inline:auto var(--roxy-space-xs);color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);font-variant-numeric:tabular-nums}.panel-body{gap:var(--roxy-space-sm);padding:0 var(--roxy-space-md) var(--roxy-space-md);font-size:var(--roxy-text-sm);grid-template-columns:minmax(0,1fr);display:grid}.condition{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}:is(.condition,.interp) .planet,.bhava .name{font-weight:var(--roxy-weight-bold)}.condition .detail{color:var(--roxy-muted);font-variant-numeric:tabular-nums}.condition .winner{color:var(--roxy-success-fg);font-weight:var(--roxy-weight-bold)}.interp,.bhava{gap:calc(var(--roxy-space-unit) / 2);display:grid}.interp .label{color:var(--roxy-muted);font-weight:var(--roxy-weight-bold)}.bhava .desc{color:var(--roxy-muted)}.quality{font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}.quality.positive{color:var(--roxy-success-fg)}.quality.negative{color:var(--roxy-danger-fg)}.quality.both{color:var(--roxy-muted)}`],Fa=y([L("roxy-vedic-planets-table")],Fa);function jp(n){return n.suppressedBy||void 0}var Kp=["classical","asraya","dala","akriti","sankhya"];function Up(n){let a=Kp.indexOf(n.family);return a===-1?Kp.length:a}var Wu=[{id:"present",source:"Present",open:true,noteSource:"Every classical condition is satisfied by this chart."},{id:"outranked",source:"Outranked",open:true,noteSource:"The rule matched, but a stronger family silences it under the classical precedence norms. Each card names the family that took precedence."},{id:"absent",source:"Not present",open:false,noteSource:"At least one classical condition fails. Read the evidence for which."}],Zu={Positive:"success",Negative:"danger",Both:"warning"},Mt=class extends f{constructor(){super(...arguments);this.filter="";this.handleInput=e=>{this.filter=e.target.value}}verdictOf(e){return e.present?"present":jp(e)?"outranked":"absent"}renderVerdictGroup(e,t){if(!t.length)return o;let r=[...t].sort((i,l)=>Up(i)-Up(l));return s`<details class="group" part="section verdict" ?open="${e.open||!!this.filter}"><summary class="group-summary"><span class="group-label">${this.t(e.source)}</span> <span class="group-count">${t.length}</span></summary><p class="group-note">${this.t(e.noteSource)}</p><div class="detail-grid">${r.map(i=>this.renderDetectCard(i))}</div></details>`}renderQualityChip(e){return s`<span class="quality-chip roxy-chip quality-${e}" data-tone="${Zu[e]??o}">${e}</span>`}renderFamilyChip(e){return e.family?s`<span class="family-chip roxy-chip" title="${this.t("Classical family")}">${D(e.family)}</span>`:o}renderDetailCard(e){return s`<div class="detail-card"><p class="detail-name">${e.name} ${e.quality?this.renderQualityChip(e.quality):o} ${this.renderFamilyChip(e)}</p>${e.description&&!this.hideReadings?s`<p class="description">${e.description}</p>`:o} ${this.renderEffects(e.result)}</div>`}renderEffects(e){return!e||this.hideReadings?o:s`<details part="reading"><summary>${this.t("Effects")}</summary><div class="result-body">${e}</div></details>`}renderDetectCard(e){let t=e.present?void 0:jp(e),[r,i,l]=e.present?["is-present","Present","success"]:t?["is-outranked",`Outranked by ${D(t)}`,"warning"]:["is-absent","Not present",void 0];return s`<div class="detail-card ${e.present?"":t?"outranked":"absent"}"><p class="detail-name">${e.name} ${e.quality?this.renderQualityChip(e.quality):o} ${this.renderFamilyChip(e)} <span class="present-badge roxy-chip ${r}" data-tone="${l??o}">${i}</span></p>${e.description&&!this.hideReadings?s`<p class="description">${e.description}</p>`:o} ${e.present?this.renderEffects(e.result):o} ${e.evidence?s`<p class="evidence">${e.evidence}</p>`:o}</div>`}renderData(e){let t=this.filter.toLowerCase();if("description"in e&&typeof e.description=="string"){let r=e;return s`<div class="wrap" part="card">${this.renderDetailCard(r)}</div>`}if("yogas"in e&&Array.isArray(e.yogas)){let r=e.yogas;if(r.length>0&&"present"in r[0]){let p=r,h=t?p.filter(g=>g.name.toLowerCase().includes(t)):p,m=e.total??p.filter(g=>g.present).length;return s`<div class="wrap" part="card"><div class="head" part="header"><h2>${this.t("Detected yogas")}</h2><span class="count">${this.t("{{count}} of {{total}} present",{count:m,total:p.length})}</span></div>${W(this.effectiveLang(),e.frame,this.translator)}<div class="search-wrap"><input class="search" type="search" placeholder="${this.t("Filter yogas...")}" aria-label="${this.t("Filter detected yogas by name")}" .value="${this.filter}" @input="${this.handleInput}"></div><div class="group-stack" part="section verdicts" role="region" aria-live="polite" aria-label="${this.t("Detected yogas")}">${h.length>0?Wu.map(g=>this.renderVerdictGroup(g,h.filter(b=>this.verdictOf(b)===g.id))):s`<p class="no-results">${this.t("No yogas match your search.")}</p>`}</div></div>`}if(r.length>0&&"description"in r[0]){let p=r,h=t?p.filter(g=>g.name.toLowerCase().includes(t)):p,m=e.total;return s`<div class="wrap" part="card"><div class="head" part="header"><h2>${this.t("Yoga catalog")}</h2>${m!==void 0?s`<span class="count">${this.t("{{count}} total",{count:m})}</span>`:o}</div><div class="search-wrap"><input class="search" type="search" placeholder="${this.t("Filter yogas...")}" aria-label="${this.t("Filter yoga list by name")}" .value="${this.filter}" @input="${this.handleInput}"></div><div class="detail-grid" part="section yogas" role="region" aria-live="polite" aria-label="${this.t("Yoga results")}">${h.length>0?h.map(g=>this.renderDetailCard(g)):s`<p class="no-results">${this.t("No yogas match your search.")}</p>`}</div></div>`}let l=r,c=t?l.filter(p=>p.name.toLowerCase().includes(t)):l,d=e.total;return s`<div class="wrap" part="card"><div class="head" part="header"><h2>${this.t("Yoga catalog")}</h2>${d!==void 0?s`<span class="count">${this.t("{{count}} total",{count:d})}</span>`:o}</div><div class="search-wrap"><input class="search" type="search" placeholder="${this.t("Filter yogas...")}" aria-label="${this.t("Filter yoga list by name")}" .value="${this.filter}" @input="${this.handleInput}"></div><div class="grid" part="section yogas" role="region" aria-live="polite" aria-label="${this.t("Yoga results")}">${c.length>0?c.map(p=>s`<div class="yoga-chip">${p.name}</div>`):s`<p class="no-results">${this.t("No yogas match your search.")}</p>`}</div></div>`}return s`<div class="roxy-empty" role="status">${this.t("No yoga data")}</div>`}};Mt.endpoints=Hl,Mt.styles=[v,B,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}h2,p{margin:0}.count,.no-results{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.search{inline-size:100%;max-inline-size:32ch;font-size:var(--roxy-text-sm)}.search::placeholder{color:var(--roxy-muted)}.grid{gap:0 var(--roxy-space-md);grid-template-columns:repeat(auto-fill,minmax(min(100%,22ch),1fr));display:grid}.yoga-chip{padding-block:var(--roxy-space-xs);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);overflow-wrap:anywhere}.detail-card{gap:var(--roxy-space-sm);display:grid}.detail-grid>.detail-card+.detail-card{border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm)}.detail-name{align-items:center;gap:var(--roxy-space-sm);font-weight:var(--roxy-weight-bold);flex-wrap:wrap;display:flex}.wrap>.detail-card .detail-name{font-size:var(--roxy-text-lg)}.family-chip{color:var(--roxy-fg)}.quality-chip,.present-badge{font-weight:var(--roxy-weight-bold)}.detail-card.absent,.detail-card.outranked{color:var(--roxy-secondary)}.group-stack,.group,.detail-grid{gap:var(--roxy-space-sm);display:grid}.group-stack{gap:var(--roxy-space-md)}.group-summary{align-items:baseline;gap:var(--roxy-space-sm);color:var(--roxy-secondary);list-style:none;display:flex}.group-summary:before,.detail-card details>summary:before{content:"+";font-size:var(--roxy-text-base);line-height:1}.group-summary:before{color:var(--roxy-accent-ink)}.group[open]>.group-summary:before,.detail-card details[open]>summary:before{content:"-"}.group-label{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.group-count{font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}.group-note,.evidence{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.description{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.detail-card details{font-size:var(--roxy-text-sm)}.detail-card details>summary{align-items:center;gap:var(--roxy-space-xs);padding-block:var(--roxy-space-xs);color:var(--roxy-accent-ink);list-style:none;display:flex}.result-body{color:var(--roxy-fg);padding-block-start:var(--roxy-space-xs)}`],y([I()],Mt.prototype,"filter",2),Mt=y([L("roxy-yoga-list")],Mt);var Dn={"secret-friend":"Secret friend",trine:"Trine",same:"Same",neutral:"Neutral",harm:"Harm",clash:"Clash"},Vp={excellent:"Excellent",strong:"Strong",workable:"Workable",challenging:"Challenging",difficult:"Difficult"},Nt=class extends f{constructor(){super(...arguments);this.mode="sign"}renderData(e){if(this.mode==="compatibility"&&"signs"in e)return this.renderCompatibility(e);let t="animal"in e&&e.animal?e.animal:e,r=this.effectiveLang(),i="energyRating"in e&&typeof e.energyRating=="number"?e.energyRating:null,l="date"in e&&e.date?A(r,e.date):"";return s`<article class="card" part="card" aria-labelledby="zodiac-title"><header class="head" part="header"><span class="hanzi" lang="zh">${t.chinese??""}</span><div><h2 class="title" id="zodiac-title">${x(t,"name")}</h2><div class="sub">${t.pinyin??""}${l?` ${l}`:""}</div></div>${i!==null?s`<span class="energy" part="details" aria-label="${this.t("Energy {{value}} of 10",{value:i})}">${this.t("Energy {{value}}/10",{value:N(r,i)})} <span class="energy-bar"><span style="width:${i/10*100}%"></span></span></span>`:o}</header>${this.renderIdentity(e,t)} ${this.renderDaily(e)} ${this.renderReference(e)} ${"interpretation"in e&&e.interpretation&&!this.hideReadings?s`<p class="prose" part="section interpretation">${e.interpretation}</p>`:o} ${"conventions"in e?Kt(e.conventions,this.translator,this.effectiveLang()):o}</article>`}renderIdentity(e,t){let r="yearPillar"in e&&e.yearPillar||"dayPillar"in e&&e.dayPillar||null,i="hours"in e?e.hours:void 0,l="element"in e&&typeof e.element=="string"?e:void 0,c=l?x(l,"element"):x(t,"element"),d=Se(l?.element??t.element),p="polarity"in e&&typeof e.polarity=="string"&&e.polarity||t.polarity||"";return!c&&!p&&!r&&!i&&!t.branch?o:s`<div class="facts" part="details">${c?s`<span><span class="roxy-label">${this.t("Element")}</span><b class="element-word ${d}">${c}</b></span>`:o} ${p?s`<span><span class="roxy-label">${this.t("Polarity")}</span>${p}</span>`:o} ${t.branch?s`<span><span class="roxy-label">${this.t("Branch")}</span>${t.branch}</span>`:o} ${r?s`<span><span class="roxy-label">${this.t("Pillar")}</span> <b>${r.stem??""}</b> ${r.branch??""}</span>`:o} ${i&&typeof i.start=="number"?s`<span><span class="roxy-label">${this.t("Hours")}</span>${this.t("{{start}} to {{end}}",{start:this.hourLabel(i.start),end:this.hourLabel(i.end)})}</span>`:o}</div>`}hourLabel(e){return typeof e=="number"?`${String(e).padStart(2,"0")}:00`:""}renderDaily(e){if(!("relationship"in e)||!("overview"in e))return o;let t="year"in e?e.year:void 0,r="benMingNian"in e?e.benMingNian:false;return s`${s`<div class="facts" part="details"><span><span class="roxy-label">${this.t("Day")}</span><b>${e.relationship&&Dn[e.relationship]?this.t(Dn[e.relationship]):e.relationship??""}</b></span> ${t?s`<span><span class="roxy-label">${this.t("Year")}</span>${t.pillar??""} ${x(t,"animal")} ${t.relationship&&Dn[t.relationship]?this.t(Dn[t.relationship]):t.relationship??""}</span>`:o} ${r?s`<span class="roxy-chip tag">${this.t("Ben Ming Nian")}</span>`:o}</div>`} ${this.hideReadings?o:s`${e.overview?s`<p class="prose" part="section overview">${e.overview}</p>`:o}<div class="sections" part="section outlook">${"love"in e&&e.love?s`<div class="section"><h3 class="block-title">${this.t("Love")}</h3><p>${e.love}</p></div>`:o} ${"career"in e&&e.career?s`<div class="section"><h3 class="block-title">${this.t("Career")}</h3><p>${e.career}</p></div>`:o} ${"advice"in e&&e.advice?s`<div class="section"><h3 class="block-title">${this.t("Advice")}</h3><p>${e.advice}</p></div>`:o}</div>`} ${t?.note&&!this.hideReadings?s`<p class="prose" part="reading">${t.note}</p>`:o}`}renderReference(e){if(!("trine"in e)&&!("secretFriend"in e))return o;let t=e;return s`${t.trine?s`<section part="section trine"><h3 class="block-title">${this.t("Trine")} ${t.trine.number??""}</h3><div class="facts"><span><b lang="zh">${t.trine.chinese??""}</b> <span class="element-word ${Se(t.trine.element)}">${x(t.trine,"element")}</span></span> ${t.trine.members?.length?s`<span class="roxy-chips">${t.trine.members.map(r=>s`<span class="roxy-chip">${r}</span>`)}</span>`:o} ${t.trine.theme?s`<span>${t.trine.theme}</span>`:o}</div></section>`:o} ${this.renderPartners(t)} ${this.hideReadings?o:s`${t.summary?s`<p class="prose" part="section summary">${t.summary}</p>`:o} ${t.traits?.length?s`<section part="section traits"><h3 class="block-title">${this.t("Traits")}</h3><ul class="roxy-chips">${t.traits.map(r=>s`<li>${r}</li>`)}</ul></section>`:o} ${this.bullets(this.t("Strengths"),t.strengths)} ${this.bullets(this.t("Weaknesses"),t.weaknesses)} ${t.compatibilitySummary?s`<p class="prose" part="reading">${t.compatibilitySummary}</p>`:o}`}`}renderPartners(e){let r=[["Secret friend",e.secretFriend],["Clash",e.clashPartner],["Harm",e.harmPartner]].filter(([,i])=>i?.name);return r.length===0?o:s`<section part="section partners"><div class="partners">${r.map(([i,l])=>s`<div class="partner"><span class="role roxy-label">${this.t(i)}</span> <span class="glyph" lang="zh">${l?.chinese??""}</span> <span class="who">${x(l,"name")}</span></div>`)}</div></section>`}bullets(e,t){return t?.length?s`<section part="section list"><h3 class="block-title">${e}</h3><ul class="bullets">${t.map(r=>s`<li>${r}</li>`)}</ul></section>`:o}renderCompatibility(e){let t=e.signs?.first,r=e.signs?.second,i=typeof e.score=="number"?e.score:null;return s`<article class="card" part="card" aria-labelledby="zodiac-title"><header class="head" part="header"><div class="pair"><span class="side"><span class="hanzi" lang="zh">${t?.chinese??""}</span> <span class="sub">${x(t,"name")}</span></span> <span class="side"><span class="hanzi" lang="zh">${r?.chinese??""}</span> <span class="sub">${x(r,"name")}</span></span></div></header><h2 class="title" id="zodiac-title">${x(e,"relationshipName")} <span lang="zh">${e.relationshipChinese??""}</span></h2>${i!==null?s`<div class="score" part="details"><span class="score-value">${i}</span> <span class="score-track"><span class="score-fill" style="width:${Math.max(0,Math.min(100,i))}%"></span></span> ${e.verdict?s`<span class="roxy-chip tag">${Vp[e.verdict]?this.t(Vp[e.verdict]):e.verdict}</span>`:o}</div>`:o} ${e.sharedElement?s`<div class="facts" part="details"><span><span class="roxy-label">${this.t("Shared element")}</span><b class="element-word ${Se(e.sharedElement)}">${x(e,"sharedElement")}</b></span></div>`:o} ${this.hideReadings?o:s`${e.summary?s`<p class="prose" part="section summary">${e.summary}</p>`:o} ${this.bullets(this.t("Strengths"),e.strengths)} ${this.bullets(this.t("Frictions"),e.frictions)} ${e.advice?s`<p class="prose" part="reading">${e.advice}</p>`:o}`}</article>`}};Nt.endpoints=jl,Nt.styles=[v,B,We,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.hanzi{font-size:calc(var(--roxy-text-base) * 2.75);color:var(--roxy-accent-ink);line-height:1}.title,.block-title{margin:0}.title{font-size:var(--roxy-text-xl)}.block-title{margin-block-end:var(--roxy-space-sm)}.sub{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.energy{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;margin-inline-start:auto}.energy-bar,.score-track{background:var(--roxy-border);border-radius:var(--roxy-radius-full);overflow:hidden}.energy-bar{block-size:.25lh;inline-size:12ch;vertical-align:middle;margin-inline-start:var(--roxy-space-xs);display:inline-block}.energy-bar>span,.score-fill{background:var(--roxy-accent);height:100%;display:block}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;padding-block-start:var(--roxy-space-md);display:flex}.facts .roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b{color:var(--roxy-fg)}.prose{margin:0}.prose[part~=reading]{padding-block-start:var(--roxy-space-md)}section .facts{border-block-start:0;padding-block-start:0}.sections{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,24ch),1fr));display:grid}.section p{font-size:var(--roxy-text-sm);margin:0}.bullets{font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-lg)}.partners{gap:var(--roxy-space-sm);grid-template-columns:repeat(auto-fit,minmax(16ch,1fr));display:grid}.partner,.pair .side{gap:calc(var(--roxy-space-unit) / 2);text-align:center;display:grid}.partner .glyph{font-size:calc(var(--roxy-text-base) * 1.5);line-height:var(--roxy-leading-tight);color:var(--roxy-accent-ink)}.partner .who{font-size:var(--roxy-text-sm)}.score{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.score-value{font-size:calc(var(--roxy-text-base) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;line-height:1}.score-track{flex:1;block-size:.35lh;min-inline-size:16ch}.tag{color:var(--roxy-info-fg)}.pair{justify-content:center;align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}`],y([k({type:String,reflect:true})],Nt.prototype,"mode",2),Nt=y([L("roxy-zodiac-card")],Nt);var qp={post_astrology_natal_chart:{tag:"roxy-natal-chart",pascal:"RoxyNatalChart",operationId:"generateNatalChart"},post_astrology_synastry:{tag:"roxy-synastry-chart",pascal:"RoxySynastryChart",operationId:"calculateSynastry"},post_astrology_transits:{tag:"roxy-transits-table",pascal:"RoxyTransitsTable",operationId:"calculateTransits"},post_astrology_transit_aspects:{tag:"roxy-transit-wheel",pascal:"RoxyTransitWheel",operationId:"calculateTransitAspects"},post_astrology_aspects:{tag:"roxy-aspects-table",pascal:"RoxyAspectsTable",operationId:"calculateAspects"},post_astrology_aspect_patterns:{tag:"roxy-aspects-table",pascal:"RoxyAspectsTable",operationId:"detectAspectPatterns"},get_astrology_moon_phase_current:{tag:"roxy-moon-phase",pascal:"RoxyMoonPhase",operationId:"getCurrentMoonPhase",attrs:{mode:"current"}},get_astrology_moon_phase_upcoming:{tag:"roxy-moon-phase",pascal:"RoxyMoonPhase",operationId:"getUpcomingMoonPhases",attrs:{mode:"upcoming"}},get_astrology_moon_phase_calendar_year_month:{tag:"roxy-moon-phase",pascal:"RoxyMoonPhase",operationId:"getMoonCalendar",attrs:{mode:"calendar"}},get_astrology_horoscope_sign_daily:{tag:"roxy-horoscope-card",pascal:"RoxyHoroscopeCard",operationId:"getDailyHoroscope",attrs:{period:"daily"}},get_astrology_horoscope_sign_weekly:{tag:"roxy-horoscope-card",pascal:"RoxyHoroscopeCard",operationId:"getWeeklyHoroscope",attrs:{period:"weekly"}},get_astrology_horoscope_sign_monthly:{tag:"roxy-horoscope-card",pascal:"RoxyHoroscopeCard",operationId:"getMonthlyHoroscope",attrs:{period:"monthly"}},get_astrology_horoscope_sign_yearly:{tag:"roxy-horoscope-card",pascal:"RoxyHoroscopeCard",operationId:"getYearlyHoroscope",attrs:{period:"yearly"}},post_astrology_astrocartography:{tag:"roxy-astrocartography-map",pascal:"RoxyAstrocartographyMap",operationId:"generateAstrocartography"},post_astrology_local_space:{tag:"roxy-local-space-compass",pascal:"RoxyLocalSpaceCompass",operationId:"generateLocalSpace"},post_astrology_relocation_chart:{tag:"roxy-relocation-wheel",pascal:"RoxyRelocationWheel",operationId:"generateRelocationChart"},post_astrology_asteroids:{tag:"roxy-positions-table",pascal:"RoxyPositionsTable",operationId:"generateAsteroids"},post_astrology_lilith:{tag:"roxy-positions-table",pascal:"RoxyPositionsTable",operationId:"generateLilith"},post_astrology_progressions:{tag:"roxy-positions-table",pascal:"RoxyPositionsTable",operationId:"generateProgressions"},post_astrology_solar_arc:{tag:"roxy-positions-table",pascal:"RoxyPositionsTable",operationId:"generateSolarArc"},post_astrology_arabic_lots:{tag:"roxy-positions-table",pascal:"RoxyPositionsTable",operationId:"calculateArabicLots"},post_astrology_planets_monthly:{tag:"roxy-ephemeris-table",pascal:"RoxyEphemerisTable",operationId:"getMonthlyTropicalEphemeris"},post_vedic_astrology_planetary_positions_monthly:{tag:"roxy-ephemeris-table",pascal:"RoxyEphemerisTable",operationId:"getMonthlyEphemeris"},post_astrology_fixed_stars:{tag:"roxy-fixed-stars",pascal:"RoxyFixedStars",operationId:"generateFixedStars"},post_astrology_profections:{tag:"roxy-profection-card",pascal:"RoxyProfectionCard",operationId:"generateProfections"},post_astrology_compatibility_score:{tag:"roxy-compatibility-card",pascal:"RoxyCompatibilityCard",operationId:"calculateCompatibility",attrs:{mode:"astrology"}},post_numerology_compatibility:{tag:"roxy-compatibility-card",pascal:"RoxyCompatibilityCard",operationId:"calculateNumCompatibility",attrs:{mode:"numerology"}},post_biorhythm_compatibility:{tag:"roxy-compatibility-card",pascal:"RoxyCompatibilityCard",operationId:"calculateBioCompatibility",attrs:{mode:"biorhythm"}},post_vedic_astrology_birth_chart:{tag:"roxy-vedic-kundli",pascal:"RoxyVedicKundli",operationId:"generateBirthChart"},post_vedic_astrology_divisional_chart:{tag:"roxy-divisional-chart",pascal:"RoxyDivisionalChart",operationId:"generateDivisionalChart"},post_vedic_astrology_navamsa:{tag:"roxy-divisional-chart",pascal:"RoxyDivisionalChart",operationId:"generateNavamsa"},post_vedic_astrology_kp_chart:{tag:"roxy-kp-chart",pascal:"RoxyKpChart",operationId:"generateKpChart"},post_vedic_astrology_kp_planets:{tag:"roxy-kp-planets-table",pascal:"RoxyKpPlanetsTable",operationId:"getKpPlanets"},post_vedic_astrology_kp_ruling_planets:{tag:"roxy-kp-ruling-planets",pascal:"RoxyKpRulingPlanets",operationId:"getKpRulingPlanets"},post_vedic_astrology_ashtakavarga:{tag:"roxy-ashtakavarga-grid",pascal:"RoxyAshtakavargaGrid",operationId:"calculateAshtakavarga"},post_vedic_astrology_shadbala:{tag:"roxy-shadbala-table",pascal:"RoxyShadbalaTable",operationId:"calculateShadbala"},post_vedic_astrology_dasha_major:{tag:"roxy-dasha-timeline",pascal:"RoxyDashaTimeline",operationId:"getMajorDashas",attrs:{period:"major"}},post_vedic_astrology_dasha_current:{tag:"roxy-dasha-timeline",pascal:"RoxyDashaTimeline",operationId:"getCurrentDasha",attrs:{period:"current"}},post_vedic_astrology_dasha_sub_mahadasha:{tag:"roxy-dasha-timeline",pascal:"RoxyDashaTimeline",operationId:"getSubDashas",attrs:{period:"sub"}},post_vedic_astrology_dasha_sub_mahadasha_antardasha:{tag:"roxy-dasha-timeline",pascal:"RoxyDashaTimeline",operationId:"getPratyantardashas",attrs:{period:"antara"}},post_vedic_astrology_dasha_sub_mahadasha_antardasha_pratyantardasha:{tag:"roxy-dasha-timeline",pascal:"RoxyDashaTimeline",operationId:"getSookshmaDashas",attrs:{period:"sookshma"}},post_vedic_astrology_dasha_sub_mahadasha_antardasha_pratyantardasha_sookshma:{tag:"roxy-dasha-timeline",pascal:"RoxyDashaTimeline",operationId:"getPranaDashas",attrs:{period:"prana"}},post_vedic_astrology_compatibility:{tag:"roxy-guna-milan",pascal:"RoxyGunaMilan",operationId:"calculateGunMilan"},post_vedic_astrology_panchang_detailed:{tag:"roxy-panchang-table",pascal:"RoxyPanchangTable",operationId:"getDetailedPanchang",attrs:{detail:"detailed"}},post_vedic_astrology_panchang_basic:{tag:"roxy-panchang-table",pascal:"RoxyPanchangTable",operationId:"getBasicPanchang",attrs:{detail:"basic"}},post_vedic_astrology_aspects:{tag:"roxy-vedic-aspects",pascal:"RoxyVedicAspects",operationId:"calculateDrishti"},post_vedic_astrology_panchang_hora:{tag:"roxy-hora-table",pascal:"RoxyHoraTable",operationId:"getHora"},post_vedic_astrology_panchang_choghadiya:{tag:"roxy-choghadiya-grid",pascal:"RoxyChoghadiyaGrid",operationId:"getChoghadiya"},post_vedic_astrology_heliacal:{tag:"roxy-heliacal-table",pascal:"RoxyHeliacalTable",operationId:"getHeliacalVisibility"},post_vedic_astrology_daily:{tag:"roxy-vedic-daily",pascal:"RoxyVedicDaily",operationId:"getVedicDailyReading"},post_vedic_astrology_kp_daily_finance:{tag:"roxy-kp-finance-card",pascal:"RoxyKpFinanceCard",operationId:"getKpDailyFinance"},post_vedic_astrology_transit:{tag:"roxy-gochara-table",pascal:"RoxyGocharaTable",operationId:"calculateTransit"},post_vedic_astrology_bhava_bala:{tag:"roxy-bhava-bala-table",pascal:"RoxyBhavaBalaTable",operationId:"calculateBhavaBala"},post_vedic_astrology_bhav_chalit:{tag:"roxy-bhav-chalit-table",pascal:"RoxyBhavChalitTable",operationId:"calculateBhavChalit"},post_vedic_astrology_upagraha:{tag:"roxy-upagraha-table",pascal:"RoxyUpagrahaTable",operationId:"getUpagrahaPositions"},post_vedic_astrology_chara_karakas:{tag:"roxy-chara-karakas",pascal:"RoxyCharaKarakas",operationId:"calculateCharaKarakas"},post_vedic_astrology_arudha:{tag:"roxy-arudha-padas",pascal:"RoxyArudhaPadas",operationId:"calculateArudhaPadas"},get_vedic_astrology_yoga:{tag:"roxy-yoga-list",pascal:"RoxyYogaList",operationId:"listYogas"},post_vedic_astrology_yoga_detect:{tag:"roxy-yoga-list",pascal:"RoxyYogaList",operationId:"detectYogas"},get_vedic_astrology_yoga_id:{tag:"roxy-yoga-list",pascal:"RoxyYogaList",operationId:"getYoga"},get_vedic_astrology_nakshatras_id:{tag:"roxy-nakshatra-card",pascal:"RoxyNakshatraCard",operationId:"getNakshatra"},post_vedic_astrology_dosha_manglik:{tag:"roxy-dosha-card",pascal:"RoxyDoshaCard",operationId:"checkManglikDosha",attrs:{type:"manglik"}},post_vedic_astrology_dosha_kalsarpa:{tag:"roxy-dosha-card",pascal:"RoxyDoshaCard",operationId:"checkKalsarpaDosha",attrs:{type:"kalsarpa"}},post_vedic_astrology_dosha_sadhesati:{tag:"roxy-dosha-card",pascal:"RoxyDoshaCard",operationId:"checkSadhesati",attrs:{type:"sadhesati"}},post_numerology_life_path:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculateLifePath",attrs:{type:"life-path"}},post_numerology_expression:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculateExpression",attrs:{type:"expression"}},post_numerology_soul_urge:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculateSoulUrge",attrs:{type:"soul-urge"}},post_numerology_personality:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculatePersonality",attrs:{type:"personality"}},post_numerology_birth_day:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculateBirthDay",attrs:{type:"birth-day"}},post_numerology_maturity:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculateMaturity",attrs:{type:"maturity"}},post_numerology_daily:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"getDailyNumber",attrs:{type:"daily"}},post_numerology_personal_day:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculatePersonalDay",attrs:{type:"personal-day"}},post_numerology_personal_month:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculatePersonalMonth",attrs:{type:"personal-month"}},post_numerology_personal_year:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculatePersonalYear",attrs:{type:"personal-year"}},post_numerology_chart:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"generateNumerologyChart",attrs:{type:"chart"}},get_numerology_compound_number:{tag:"roxy-compound-number",pascal:"RoxyCompoundNumber",operationId:"getCompoundNumber"},post_kabbalah_gematria:{tag:"roxy-gematria",pascal:"RoxyGematria",operationId:"calculateGematria"},post_tarot_daily:{tag:"roxy-tarot-card",pascal:"RoxyTarotCard",operationId:"getDailyCard"},get_tarot_cards_id:{tag:"roxy-tarot-card",pascal:"RoxyTarotCard",operationId:"getCard"},get_tarot_cards:{tag:"roxy-tarot-catalog",pascal:"RoxyTarotCatalog",operationId:"listCards"},post_tarot_spreads_three_card:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"castThreeCard",attrs:{spread:"three-card"}},post_tarot_spreads_celtic_cross:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"castCelticCross",attrs:{spread:"celtic-cross"}},post_tarot_spreads_love:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"castLoveSpread",attrs:{spread:"love"}},post_tarot_spreads_career:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"castCareerSpread",attrs:{spread:"career"}},post_tarot_spreads_custom:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"castCustomSpread",attrs:{spread:"custom"}},post_tarot_yes_no:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"castYesNo",attrs:{spread:"yes-no"}},post_tarot_draw:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"drawCards",attrs:{spread:"draw"}},post_human_design_bodygraph:{tag:"roxy-bodygraph",pascal:"RoxyBodygraph",operationId:"generateBodygraph"},post_human_design_type:{tag:"roxy-hd-type-card",pascal:"RoxyHdTypeCard",operationId:"calculateType"},post_human_design_profile:{tag:"roxy-hd-type-card",pascal:"RoxyHdTypeCard",operationId:"calculateProfile"},post_human_design_connection:{tag:"roxy-hd-connection",pascal:"RoxyHdConnection",operationId:"calculateConnection"},post_human_design_penta:{tag:"roxy-hd-penta",pascal:"RoxyHdPenta",operationId:"calculatePenta"},post_human_design_variables:{tag:"roxy-hd-variables",pascal:"RoxyHdVariables",operationId:"calculateVariables"},post_forecast_timeline:{tag:"roxy-forecast-timeline",pascal:"RoxyForecastTimeline",operationId:"generateTimeline"},post_forecast_significant_dates:{tag:"roxy-forecast-timeline",pascal:"RoxyForecastTimeline",operationId:"findSignificantDates"},post_forecast_transits:{tag:"roxy-forecast-timeline",pascal:"RoxyForecastTimeline",operationId:"forecastTransits"},post_forecast_digest:{tag:"roxy-forecast-digest",pascal:"RoxyForecastDigest",operationId:"generateDigest"},post_chinese_astrology_bazi_chart:{tag:"roxy-bazi-chart",pascal:"RoxyBaziChart",operationId:"generateBaziChart"},post_chinese_astrology_bazi_luck_pillars:{tag:"roxy-luck-pillars",pascal:"RoxyLuckPillars",operationId:"calculateLuckPillars"},post_chinese_astrology_zodiac_sign:{tag:"roxy-zodiac-card",pascal:"RoxyZodiacCard",operationId:"calculateZodiacAnimal",attrs:{mode:"sign"}},get_chinese_astrology_zodiac_animals_id:{tag:"roxy-zodiac-card",pascal:"RoxyZodiacCard",operationId:"getZodiacAnimal",attrs:{mode:"animal"}},get_chinese_astrology_zodiac_id_daily:{tag:"roxy-zodiac-card",pascal:"RoxyZodiacCard",operationId:"getDailyZodiacReading",attrs:{mode:"daily"}},get_chinese_astrology_zodiac_compatibility_sign1_sign2:{tag:"roxy-zodiac-card",pascal:"RoxyZodiacCard",operationId:"getZodiacCompatibility",attrs:{mode:"compatibility"}},get_chinese_astrology_calendar_day_date:{tag:"roxy-almanac-day",pascal:"RoxyAlmanacDay",operationId:"getAlmanacDay",attrs:{mode:"day"}},get_chinese_astrology_calendar_monthly:{tag:"roxy-almanac-day",pascal:"RoxyAlmanacDay",operationId:"getMonthlyAlmanac",attrs:{mode:"month"}},post_chinese_astrology_calendar_auspicious_days:{tag:"roxy-almanac-day",pascal:"RoxyAlmanacDay",operationId:"lookupAuspiciousDays",attrs:{mode:"auspicious"}},post_feng_shui_flying_stars_natal:{tag:"roxy-flying-star-chart",pascal:"RoxyFlyingStarChart",operationId:"generateFlyingStarChart",attrs:{mode:"natal"}},get_feng_shui_flying_stars_annual_year:{tag:"roxy-flying-star-chart",pascal:"RoxyFlyingStarChart",operationId:"getAnnualFlyingStars",attrs:{mode:"annual"}},post_feng_shui_kua:{tag:"roxy-kua-card",pascal:"RoxyKuaCard",operationId:"calculateKuaNumber",attrs:{mode:"kua"}},post_feng_shui_eight_mansions:{tag:"roxy-kua-card",pascal:"RoxyKuaCard",operationId:"generateEightMansions",attrs:{mode:"mansions"}},post_mesoamerican_astrology_mayan_tzolkin:{tag:"roxy-mayan-day-sign",pascal:"RoxyMayanDaySign",operationId:"calculateTzolkin",attrs:{mode:"day"}},post_mesoamerican_astrology_mayan_chart:{tag:"roxy-mayan-day-sign",pascal:"RoxyMayanDaySign",operationId:"generateMayanChart",attrs:{mode:"chart"}},post_vastu_mandala:{tag:"roxy-vastu-mandala",pascal:"RoxyVastuMandala",operationId:"generateMandala",attrs:{mode:"mandala"}},post_vastu_entrance:{tag:"roxy-vastu-mandala",pascal:"RoxyVastuMandala",operationId:"calculateEntrancePada",attrs:{mode:"entrance"}},post_biorhythm_daily:{tag:"roxy-biorhythm-chart",pascal:"RoxyBiorhythmChart",operationId:"getDailyBiorhythm",attrs:{mode:"daily"}},post_biorhythm_forecast:{tag:"roxy-biorhythm-chart",pascal:"RoxyBiorhythmChart",operationId:"getForecast",attrs:{mode:"forecast"}},post_biorhythm_critical_days:{tag:"roxy-biorhythm-chart",pascal:"RoxyBiorhythmChart",operationId:"getCriticalDays",attrs:{mode:"critical-days"}},post_ayurveda_constitution:{tag:"roxy-dosha-constitution",pascal:"RoxyDoshaConstitution",operationId:"calculateAyurvedicConstitution"},get_iching_hexagrams_random:{tag:"roxy-hexagram",pascal:"RoxyHexagram",operationId:"getRandomHexagram"},get_iching_hexagrams_number:{tag:"roxy-hexagram",pascal:"RoxyHexagram",operationId:"getHexagram"},get_iching_hexagrams_lookup:{tag:"roxy-hexagram",pascal:"RoxyHexagram",operationId:"lookupHexagram"},get_iching_cast:{tag:"roxy-hexagram",pascal:"RoxyHexagram",operationId:"castReading"},post_iching_daily:{tag:"roxy-hexagram",pascal:"RoxyHexagram",operationId:"getDailyHexagram"},post_iching_daily_cast:{tag:"roxy-hexagram",pascal:"RoxyHexagram",operationId:"castDailyReading"},get_crystals_id:{tag:"roxy-crystal-card",pascal:"RoxyCrystalCard",operationId:"getCrystal"},get_crystals:{tag:"roxy-crystal-grid",pascal:"RoxyCrystalGrid",operationId:"listCrystals"},get_crystals_chakra:{tag:"roxy-crystal-grid",pascal:"RoxyCrystalGrid",operationId:"getCrystalsByChakra"},get_crystals_element:{tag:"roxy-crystal-grid",pascal:"RoxyCrystalGrid",operationId:"getCrystalsByElement"},get_crystals_zodiac_sign:{tag:"roxy-crystal-grid",pascal:"RoxyCrystalGrid",operationId:"getCrystalsByZodiac"},get_crystals_birthstone_month:{tag:"roxy-crystal-grid",pascal:"RoxyCrystalGrid",operationId:"getBirthstones"},get_crystals_search:{tag:"roxy-crystal-grid",pascal:"RoxyCrystalGrid",operationId:"searchCrystals"},get_dreams_symbols_id:{tag:"roxy-dream-card",pascal:"RoxyDreamCard",operationId:"getDreamSymbol"},get_dreams_symbols:{tag:"roxy-dream-search",pascal:"RoxyDreamSearch",operationId:"searchDreamSymbols"},get_angel_numbers_number:{tag:"roxy-angel-number-card",pascal:"RoxyAngelNumberCard",operationId:"getAngelNumber"},post_angel_numbers_daily:{tag:"roxy-angel-number-card",pascal:"RoxyAngelNumberCard",operationId:"getDailyAngelNumber"},get_angel_numbers_lookup:{tag:"roxy-angel-number-lookup",pascal:"RoxyAngelNumberLookup",operationId:"analyzeNumberSequence"},post_reports_natal:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateNatalReport",attrs:{report:"natal"}},post_reports_synastry:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateSynastryReport",attrs:{report:"synastry"}},post_reports_kundli:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateKundliReport",attrs:{report:"kundli"}},post_reports_matchmaking:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateMatchmakingReport",attrs:{report:"matchmaking"}},post_reports_yearly_forecast:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateYearlyForecastReport",attrs:{report:"yearly-forecast"}},post_reports_human_design:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateHumanDesignReport",attrs:{report:"human-design"}},post_reports_bazi:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateBaziReport",attrs:{report:"bazi"}},post_reports_numerology:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateNumerologyReport",attrs:{report:"numerology"}},post_reports_tarot:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateTarotReport",attrs:{report:"tarot"}},get_astrology_signs_id:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getZodiacSign"},get_astrology_planet_meanings_id:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getPlanetMeaning"},get_vedic_astrology_rashis_id:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getRashi"},get_iching_trigrams_id:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getTrigram"},get_human_design_gates_number:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getGate"},get_human_design_centers_id:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getCenter"},get_numerology_meanings_number:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getNumberMeaning"},get_vedic_astrology_avasthas_id:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getAvastha"}};function ao(n){let a=n.lastIndexOf(":"),e=a===-1?n:n.slice(a+1),t=qp[e];return t?{...t,toolName:e}:void 0}var Pn=[{pascal:"RoxyNatalChart",tag:"roxy-natal-chart",slug:"natal-chart",heading:"Natal chart",description:"Western natal chart wheel for /astrology/natal-chart responses",docsLabel:"Western",endpointLabel:"POST /astrology/natal-chart",docsSummary:"Natal chart wheel with planet glyphs and aspect lines",topic:"Astrology"},{pascal:"RoxySynastryChart",tag:"roxy-synastry-chart",slug:"synastry-chart",heading:"Synastry",description:"Dual-wheel synastry chart with inter-aspects table",docsLabel:"Western",endpointLabel:"POST /astrology/synastry",docsSummary:"Dual-wheel synastry with inter-aspects table",topic:"Astrology"},{pascal:"RoxyWesternPlanetsTable",tag:"roxy-western-planets-table",slug:"western-planets-table",heading:"Western planets",description:"Western planetary positions table with sign, degree, house, and motion plus the chart angles",docsLabel:"Western",endpointLabel:"POST /astrology/natal-chart",docsSummary:"Sign, degree, house, motion columns plus ASC, MC, PoF, Vertex",topic:"Astrology"},{pascal:"RoxyTransitsTable",tag:"roxy-transits-table",slug:"transits-table",heading:"Transits",description:"Live planet positions plus aspects to a natal chart",docsLabel:"Western",endpointLabel:"POST /astrology/transits",docsSummary:"Transit planet positions plus optional aspects to a natal chart",topic:"Astrology"},{pascal:"RoxyTransitWheel",tag:"roxy-transit-wheel",slug:"transit-wheel",heading:"Transit bi-wheel",description:"Natal and transit bi-wheel with an aspect line for every transit to the natal chart",docsLabel:"Western",endpointLabel:"POST /astrology/transit-aspects",docsSummary:"Natal chart on the inner ring, transiting bodies on the outer ring, aspect lines between them",topic:"Astrology"},{pascal:"RoxyAspectsTable",tag:"roxy-aspects-table",slug:"aspects-table",heading:"Aspects",description:"Natal and transit aspect grid with chart-pattern detection (grand trines, t-squares, stelliums, yods)",docsLabel:"Western",endpointLabel:"POST /astrology/aspects, /astrology/transit-aspects, /astrology/aspect-patterns",docsSummary:"Aspect rows coloured by nature with orb and strength, plus detected chart patterns",topic:"Astrology"},{pascal:"RoxyMoonPhase",tag:"roxy-moon-phase",slug:"moon-phase",heading:"Moon phase",description:"Moon phase card and calendar",docsLabel:"Western",endpointLabel:"GET /astrology/moon-phase/{current,upcoming,calendar/...}",docsSummary:"Moon phase card and calendar",topic:"Astrology"},{pascal:"RoxyHoroscopeCard",tag:"roxy-horoscope-card",slug:"horoscope-card",heading:"Horoscope",description:"Daily, weekly, monthly, or yearly horoscope card for /astrology/horoscope/..., with the column, the dated sky events behind it, and the yearly themes, key periods, eclipses, retrogrades and best months",docsLabel:"Western",endpointLabel:"GET /astrology/horoscope/{sign}/{daily,weekly,monthly,yearly}",docsSummary:"Daily, weekly, monthly, or yearly horoscope card",topic:"Astrology"},{pascal:"RoxyAstrocartographyMap",tag:"roxy-astrocartography-map",slug:"astrocartography-map",heading:"Astrocartography",description:"Astrocartography world map plotting each body Midheaven, IC, Ascendant, and Descendant relocation lines",docsLabel:"Western",endpointLabel:"POST /astrology/astrocartography",docsSummary:"World map of planetary MC, IC, Ascendant, and Descendant lines with per-line interpretations",topic:"Astrology"},{pascal:"RoxyLocalSpaceCompass",tag:"roxy-local-space-compass",slug:"local-space-compass",heading:"Local space",description:"Local space compass plotting each body direction from the birthplace by azimuth and altitude",docsLabel:"Western",endpointLabel:"POST /astrology/local-space",docsSummary:"Compass dial of planetary azimuth lines from the birthplace, dimmed below the horizon",topic:"Astrology"},{pascal:"RoxyRelocationWheel",tag:"roxy-relocation-wheel",slug:"relocation-wheel",heading:"Relocation chart",description:"Relocation chart wheel recomputing houses and angles for a new place, with the planets that change house",docsLabel:"Western",endpointLabel:"POST /astrology/relocation-chart",docsSummary:"Relocated chart wheel plus the move geometry, angular planets, and planets that change house",topic:"Astrology"},{pascal:"RoxyPositionsTable",tag:"roxy-positions-table",slug:"positions-table",heading:"Positions table",description:"Editorial positions table for asteroids, Black Moon Lilith, secondary progressions, solar arc directions, and the Arabic lots",docsLabel:"Western",endpointLabel:"POST /astrology/asteroids, /astrology/lilith, /astrology/progressions, /astrology/solar-arc, /astrology/arabic-lots",docsSummary:"Body, sign, degree, and per-shape columns (house, motion, formula, or natal arc) plus each reading",topic:"Astrology"},{pascal:"RoxyEphemerisTable",tag:"roxy-ephemeris-table",slug:"ephemeris-table",heading:"Ephemeris",description:"Monthly ephemeris: every body day by day, with each sign change and retrograde stretch called out",docsLabel:"Cross",endpointLabel:"POST /astrology/planets/monthly, /vedic-astrology/planetary-positions/monthly",docsSummary:"Per-body sign changes and retrograde windows for the month, over the full daily position grid",topic:"Astrology"},{pascal:"RoxyFixedStars",tag:"roxy-fixed-stars",slug:"fixed-stars",heading:"Fixed stars",description:"Fixed star conjunctions to the natal chart, tightest first, with the precessed star catalog",docsLabel:"Western",endpointLabel:"POST /astrology/fixed-stars",docsSummary:"Star to natal point conjunctions with readings, plus a catalog of position, magnitude, nature, and keywords",topic:"Astrology"},{pascal:"RoxyProfectionCard",tag:"roxy-profection-card",slug:"profection-card",heading:"Annual profection",description:"Annual profection card with the profected house and sign, the lord of the year, and its natal placement",docsLabel:"Western",endpointLabel:"POST /astrology/profections",docsSummary:"Profected house and sign for the year, the lord of the year, its natal placement, and the reading",topic:"Astrology"},{pascal:"RoxyCompatibilityCard",tag:"roxy-compatibility-card",slug:"compatibility-card",heading:"Compatibility score",description:"Cross-domain compatibility score card",docsLabel:"Cross",endpointLabel:"POST /astrology/compatibility-score, /numerology/compatibility, /biorhythm/compatibility",docsSummary:"Score card with category breakdown",topic:"Astrology"},{pascal:"RoxyVedicKundli",tag:"roxy-vedic-kundli",slug:"vedic-kundli",heading:"Vedic kundli",description:"South, North, or East Indian Vedic kundli for /vedic-astrology/birth-chart with per-planet degree and nakshatra detail, plus an optional Chandra Lagna (Moon-as-ascendant) reference view",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/birth-chart",docsSummary:"South, North, or East Indian kundli with degree detail and optional Chandra Lagna view",topic:"Vedic"},{pascal:"RoxyDivisionalChart",tag:"roxy-divisional-chart",slug:"divisional-chart",heading:"Divisional chart",description:"D2 to D60 varga chart wheel with Vargottama markers",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/{divisional-chart,navamsa}",docsSummary:"Generic divisional varga wheel from D2 Hora to D60 Shashtiamsa",topic:"Vedic"},{pascal:"RoxyKpChart",tag:"roxy-kp-chart",slug:"kp-chart",heading:"KP chart",description:"Full KP chart with Ascendant, Placidus cusps, and planets and nodes in tabbed stellar-hierarchy tables",docsLabel:"Vedic (KP)",endpointLabel:"POST /vedic-astrology/kp/chart",docsSummary:"Ascendant, cusps, planets and nodes with KP stellar hierarchy and house meanings",topic:"Vedic"},{pascal:"RoxyVedicPlanetsTable",tag:"roxy-vedic-planets-table",slug:"vedic-planets-table",heading:"Vedic planets",description:"Vedic planetary positions table with degree, nakshatra, pada, nakshatra lord, bhava, and all three avastha systems",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/birth-chart",docsSummary:"Degree, nakshatra, pada, lord, bhava, Baladi, Jagradadi and Deeptadi columns",topic:"Vedic"},{pascal:"RoxyKpPlanetsTable",tag:"roxy-kp-planets-table",slug:"kp-planets-table",heading:"KP planets",description:"KP planets table with sub-lord and sub-sub-lord columns",docsLabel:"Vedic (KP)",endpointLabel:"POST /vedic-astrology/kp/planets",docsSummary:"Sub-lord and sub-sub-lord columns",topic:"Vedic"},{pascal:"RoxyKpRulingPlanets",tag:"roxy-kp-ruling-planets",slug:"kp-ruling-planets",heading:"KP ruling planets",description:"KP ruling planets with day lord, Moon and Lagna stellar hierarchies, and house significators",docsLabel:"Vedic (KP)",endpointLabel:"POST /vedic-astrology/kp/ruling-planets",docsSummary:"Day lord, Moon/Lagna hierarchies, ruling planets, significators with house meanings",topic:"Vedic"},{pascal:"RoxyAshtakavargaGrid",tag:"roxy-ashtakavarga-grid",slug:"ashtakavarga-grid",heading:"Ashtakavarga",description:"Sarva and Bhinna ashtakavarga heatmap with bindu scores",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/ashtakavarga",docsSummary:"Sarva, Bhinna, and Shodhya Pinda views in a tabbed heatmap",topic:"Vedic"},{pascal:"RoxyShadbalaTable",tag:"roxy-shadbala-table",slug:"shadbala-table",heading:"Shadbala",description:"Six-fold planetary strength with adequacy badge per planet",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/shadbala",docsSummary:"Six-fold planetary strength bar plus rupas and adequacy badge",topic:"Vedic"},{pascal:"RoxyDashaTimeline",tag:"roxy-dasha-timeline",slug:"dasha-timeline",heading:"Vimshottari dasha",description:"Vimshottari dasha timeline, mahadasha through prana, with the active period highlighted",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/dasha/{current,major,sub/...}",docsSummary:"Vimshottari mahadasha, antardasha, pratyantardasha, sookshma and prana, drill-down at every level",topic:"Vedic"},{pascal:"RoxyGunaMilan",tag:"roxy-guna-milan",slug:"guna-milan",heading:"Guna milan",description:"36-point Ashtakoota matrimonial compatibility breakdown",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/compatibility",docsSummary:"36-point Ashtakoota with eight sub-scores",topic:"Vedic"},{pascal:"RoxyPanchangTable",tag:"roxy-panchang-table",slug:"panchang-table",heading:"Panchang",description:"Panchang muhurta table with auspicious and inauspicious periods",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/panchang/{basic,detailed}",docsSummary:"15+ muhurtas in detailed mode",topic:"Vedic"},{pascal:"RoxyVedicAspects",tag:"roxy-vedic-aspects",slug:"vedic-aspects",heading:"Vedic aspects",description:"Vedic graha drishti table: which planet aspects which, with mutual aspects surfaced first",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/aspects",docsSummary:"Graha drishti rows with aspect type, strength, and orb, plus mutual aspects",topic:"Vedic"},{pascal:"RoxyHoraTable",tag:"roxy-hora-table",slug:"hora-table",heading:"Hora",description:"Vedic Hora (planetary hours) table: 12 day and 12 night horas by ruling planet for electional timing",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/panchang/hora",docsSummary:"Day and night planetary hours with ruling planet and window",topic:"Vedic"},{pascal:"RoxyChoghadiyaGrid",tag:"roxy-choghadiya-grid",slug:"choghadiya-grid",heading:"Choghadiya",description:"Day and night Choghadiya muhurta tiles for activity timing",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/panchang/choghadiya",docsSummary:"Day and night Choghadiya muhurta tiles colored by effect",topic:"Vedic"},{pascal:"RoxyHeliacalTable",tag:"roxy-heliacal-table",slug:"heliacal-table",heading:"Heliacal rising and setting",description:"Whether each graha stands far enough from the Sun to be seen, with the date it next rises or sets",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/heliacal",docsSummary:"Udaya and asta windows for the six visible grahas, the calculation behind Guru Asta and Shukra Asta",topic:"Vedic"},{pascal:"RoxyVedicDaily",tag:"roxy-vedic-daily",slug:"vedic-daily",heading:"Vedic daily",description:"One native, one day: the verdict band, every graha state behind it, the Moon windows and the finance area",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/daily",docsSummary:"Composed Vedic daily reading with the classical rule behind every graha state, the Tara and Chandrabala windows in full, and all three sidereal frames named",topic:"Vedic"},{pascal:"RoxyKpFinanceCard",tag:"roxy-kp-finance-card",slug:"kp-finance-card",heading:"KP daily finance",description:"One native, one day scored for money: the band, the gain and loss significators, and the four sub lord layers behind the score",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/kp/daily-finance",docsSummary:"KP daily finance reading with the cusp sub lords, the running dasha lords, the ruling planets and the Moon sub lord windows each scored against the gain and loss houses, weighed into one band for the day",topic:"Vedic"},{pascal:"RoxyGocharaTable",tag:"roxy-gochara-table",slug:"gochara-table",heading:"Gochara transits",description:"Where each graha transits now, the natal house it falls in, and the Ashtakavarga-qualified kaksha verdict",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/transit",docsSummary:"Vedic gochara with aspects to the natal chart and the Gochara Kaksha reading drawn as a position within the sign",topic:"Vedic"},{pascal:"RoxyBhavaBalaTable",tag:"roxy-bhava-bala-table",slug:"bhava-bala-table",heading:"Bhava Bala",description:"The twelve houses ranked by strength, with the three classical components that make up each total",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/bhava-bala",docsSummary:"House strength in rupas and virupas, ranked, with Bhavadhipati, Dig and Drishti Bala shown as proportions of the total",topic:"Vedic"},{pascal:"RoxyBhavChalitTable",tag:"roxy-bhav-chalit-table",slug:"bhav-chalit-table",heading:"Bhav Chalit",description:"Which grahas change house once the bhavas are cut at their real cusps instead of at sign boundaries",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/bhav-chalit",docsSummary:"The Chalit chart against the Rashi chart, leading with how many grahas move and which, plus the unequal bhava spans",topic:"Vedic"},{pascal:"RoxyUpagrahaTable",tag:"roxy-upagraha-table",slug:"upagraha-table",heading:"Upagrahas",description:"The eleven upagrahas in their time-based and Sun-based groups, with rashi, degree, and nakshatra",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/upagraha",docsSummary:"Time-based and Sun-based upagrahas with rashi, degree, longitude and nakshatra",topic:"Vedic"},{pascal:"RoxyCharaKarakas",tag:"roxy-chara-karakas",slug:"chara-karakas",heading:"Chara karakas",description:"Jaimini chara karakas ranked Atmakaraka first, with the scheme that produced the ranking",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/chara-karakas",docsSummary:"Karaka offices in rank order with graha, degree, scheme, and what each is read for",topic:"Vedic"},{pascal:"RoxyArudhaPadas",tag:"roxy-arudha-padas",slug:"arudha-padas",heading:"Arudha padas",description:"The twelve Jaimini arudha padas with their derivation, the Arudha Lagna and the Upapada marked",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/arudha",docsSummary:"Twelve padas with bhava, lord, pada rashi, house from Lagna, and the classical exception marked",topic:"Vedic"},{pascal:"RoxyYogaList",tag:"roxy-yoga-list",slug:"yoga-list",heading:"Yoga catalog",description:"Yoga reference cards from the catalog with optional detail mode",docsLabel:"Vedic",endpointLabel:"GET /vedic-astrology/yoga, /vedic-astrology/yoga/{id}, POST /vedic-astrology/yoga/detect",docsSummary:"Filterable yoga cards from the 300 plus yoga catalog, grouped by verdict in detect mode",topic:"Vedic"},{pascal:"RoxyNakshatraCard",tag:"roxy-nakshatra-card",slug:"nakshatra-card",heading:"Nakshatra",description:"Nakshatra reference card with lord, deity, symbol, characteristics, and remedies",docsLabel:"Vedic",endpointLabel:"GET /vedic-astrology/nakshatras/{id}",docsSummary:"Lord, deity, symbol, characteristics, remedies",topic:"Vedic"},{pascal:"RoxyDoshaCard",tag:"roxy-dosha-card",slug:"dosha-card",heading:"Manglik dosha",description:"Manglik, Kaal Sarp, or Sade Sati presence card",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/dosha/{manglik,kalsarpa,sadhesati}",docsSummary:"Presence, severity, remedies, scoped effects",topic:"Vedic"},{pascal:"RoxyNumerologyCard",tag:"roxy-numerology-card",slug:"numerology-card",heading:"Life path number",description:"Numerology card for life path, expression, soul urge, personality, personal year, or full chart",docsLabel:"Numerology",endpointLabel:"POST /numerology/{life-path,expression,soul-urge,personality,birth-day,maturity,daily,personal-day,personal-month,personal-year,chart}",docsSummary:"Life path, expression, soul urge, personality, personal year, full chart",topic:"Numerology"},{pascal:"RoxyCompoundNumber",tag:"roxy-compound-number",slug:"compound-number",heading:"Compound number",description:"Chaldean compound number card with the numeral, its symbolic name, root number, fortunate or unfortunate nature, the lower number it repeats, and the meaning",docsLabel:"Numerology",endpointLabel:"GET /numerology/compound-number/{number}",docsSummary:"Compound 10 to 52 with name, root, nature and meaning",topic:"Numerology"},{pascal:"RoxyGematria",tag:"roxy-gematria",slug:"gematria",heading:"Gematria",description:"Gematria calculator that shows its work: every Hebrew spelling the input can take, the value under each cipher with the ones that are not single valued, the per letter breakdown right to left, the two substitution ciphers, the Latin alphabet ciphers and the curated words of equal value",docsLabel:"Kabbalah",endpointLabel:"POST /kabbalah/gematria",docsSummary:"Values by cipher, every candidate Hebrew spelling with its per letter breakdown, and equal-value words",topic:"Kabbalah"},{pascal:"RoxyTarotCard",tag:"roxy-tarot-card",slug:"tarot-card",heading:"Daily tarot card",description:"Single tarot card with upright/reversed flip animation",docsLabel:"Tarot",endpointLabel:"GET /tarot/cards/{id}, POST /tarot/daily",docsSummary:"Single card with upright and reversed flip",topic:"Tarot"},{pascal:"RoxyTarotCatalog",tag:"roxy-tarot-catalog",slug:"tarot-catalog",heading:"Tarot deck",description:"Responsive tarot deck gallery with card art, name, and an arcana and suit caption; a picked tile opens its tarot card in place, and emits roxy-symbol-select for a host that pairs its own",docsLabel:"Tarot",endpointLabel:"GET /tarot/cards",docsSummary:"Deck gallery tiles with card art, name, and arcana and suit; a pick opens the card in place",topic:"Tarot"},{pascal:"RoxyTarotSpread",tag:"roxy-tarot-spread",slug:"tarot-spread",heading:"Three-card spread",description:"Tarot spread renderer for three-card, Celtic Cross, love, or yes/no",docsLabel:"Tarot",endpointLabel:"POST /tarot/spreads/{three-card,celtic-cross,love,career,custom}, /tarot/yes-no, /tarot/draw",docsSummary:"Spreads with positions and reading",topic:"Tarot"},{pascal:"RoxyBodygraph",tag:"roxy-bodygraph",slug:"bodygraph",heading:"Bodygraph",description:"Human Design bodygraph with nine centers, channels, and activated gates, plus the full reading: type, strategy, authority, profile, definition, incarnation cross, and a gate and line meaning for every activation",docsLabel:"Human Design",endpointLabel:"POST /human-design/bodygraph",docsSummary:"Nine-center chart with defined and open centers, active channels, and gates, plus the type, strategy, authority, profile, and definition readings, the channels by circuit, the centers, and every activation with its gate and line meaning",topic:"Human Design"},{pascal:"RoxyHdTypeCard",tag:"roxy-hd-type-card",slug:"hd-type-card",heading:"HD type",description:"Human Design type reading without the chart: type, strategy, authority, and profile, with the aura mechanic, the signature and not-self themes, and the interpretation behind each label. Also renders the profile response with its two line keynotes",docsLabel:"Human Design",endpointLabel:"POST /human-design/type, /human-design/profile",docsSummary:"Type, strategy, authority, and profile tiles with the aura, signature, and not-self themes, plus the reading behind each label and the profile line keynotes",topic:"Human Design"},{pascal:"RoxyHdConnection",tag:"roxy-hd-connection",slug:"hd-connection",heading:"HD connection",description:"Human Design connection chart: the composite channels two people form, with circuit, dynamic, and which person holds each gate",docsLabel:"Human Design",endpointLabel:"POST /human-design/connection",docsSummary:"Electromagnetic, compromise, and dominance channels between two charts",topic:"Human Design"},{pascal:"RoxyHdPenta",tag:"roxy-hd-penta",slug:"hd-penta",heading:"HD penta",description:"Human Design penta for a 3 to 5 person group: upper and lower triangle channels, defined or open, with core channels and member coverage",docsLabel:"Human Design",endpointLabel:"POST /human-design/penta",docsSummary:"Group penta channels split into upper and lower triangles",topic:"Human Design"},{pascal:"RoxyHdVariables",tag:"roxy-hd-variables",slug:"hd-variables",heading:"HD variables",description:"Human Design variables: the four PHS arrows (determination, environment, perspective, motivation) with left/right direction, color, tone, and base, plus the reading for each arrow and the cognition",docsLabel:"Human Design",endpointLabel:"POST /human-design/variables",docsSummary:"The four transformation arrows with direction, color, tone, and base, plus a reading per arrow grouped by layer and the cognition",topic:"Human Design"},{pascal:"RoxyForecastTimeline",tag:"roxy-forecast-timeline",slug:"forecast-timeline",heading:"Forecast timeline",description:"Cross-domain forecast event strip colored by domain and weighted by significance",docsLabel:"Forecast",endpointLabel:"POST /forecast/{timeline,significant-dates,transits}",docsSummary:"Date-grouped events across Western, Vedic, and biorhythm domains, weighted by significance",topic:"Forecast"},{pascal:"RoxyForecastDigest",tag:"roxy-forecast-digest",slug:"forecast-digest",heading:"Forecast digest",description:"Rolled-up forecast across the next 24 hours, 7, 30, and 90 days with per-domain breakdown and top events",docsLabel:"Forecast",endpointLabel:"POST /forecast/digest",docsSummary:"Per-window event counts, domain breakdown, and the highest-significance events",topic:"Forecast"},{pascal:"RoxyBaziChart",tag:"roxy-bazi-chart",slug:"bazi-chart",heading:"Four pillars",description:"BaZi four pillars chart: stem over branch per pillar with the Ten God relation, the stems each branch stores, the Na Yin, the Day Master, the five-element balance and every interaction the pillars form",docsLabel:"Chinese",endpointLabel:"POST /chinese-astrology/bazi/chart",docsSummary:"Year, month, day and hour pillars in hanzi with hidden stems, Ten Gods, Na Yin, element balance and interactions",topic:"Chinese Astrology"},{pascal:"RoxyLuckPillars",tag:"roxy-luck-pillars",slug:"luck-pillars",heading:"Luck pillars",description:"BaZi luck pillars: the ten-year stretches a chart is read through, each with its stem, branch and Ten God, plus the annual pillars inside them and the direction and starting age the sequence was built from",docsLabel:"Chinese",endpointLabel:"POST /chinese-astrology/bazi/luck-pillars",docsSummary:"Ten-year luck pillars as a strip with ages and years, the annual pillars, and the direction and start age behind them",topic:"Chinese Astrology"},{pascal:"RoxyZodiacCard",tag:"roxy-zodiac-card",slug:"zodiac-card",heading:"Chinese zodiac",description:"Chinese zodiac card: the animal a date falls in, the reference read of one animal with its trine and partner animals, a daily reading, or the compatibility of a pair",docsLabel:"Chinese",endpointLabel:"POST /chinese-astrology/zodiac/sign, GET /chinese-astrology/zodiac/{animals/{id},{id}/daily,compatibility/{sign1}/{sign2}}",docsSummary:"The animal for a date, one animal in full, a daily reading, or a pair scored",topic:"Chinese Astrology"},{pascal:"RoxyAlmanacDay",tag:"roxy-almanac-day",slug:"almanac-day",heading:"Chinese almanac",description:"Chinese almanac (Tong Shu): the day officer, what the day favours and avoids, the animal it clashes with, its three pillars and lunar mansion, for one day, a whole month, or a search for a date to act on",docsLabel:"Chinese",endpointLabel:"GET /chinese-astrology/calendar/{day/{date},monthly}, POST /chinese-astrology/calendar/auspicious-days",docsSummary:"Day officer, favours and avoids, clash animal and pillars, as one day, a month, or a date search",topic:"Chinese Astrology"},{pascal:"RoxyFlyingStarChart",tag:"roxy-flying-star-chart",slug:"flying-star-chart",heading:"Flying star chart",description:"Xuan Kong flying star plate: nine palaces on the compass with the mountain, period and water star of each, the facing and sitting mountains, and the structure the pair produces",docsLabel:"Feng Shui",endpointLabel:"POST /feng-shui/flying-stars/natal, GET /feng-shui/flying-stars/annual/{year}",docsSummary:"Nine-palace flying star plate with the mountain, period and water star per palace, the facing and sitting mountains and the structure",topic:"Feng Shui"},{pascal:"RoxyKuaCard",tag:"roxy-kua-card",slug:"kua-card",heading:"Kua and eight mansions",description:"Kua number with its trigram and the Eight Mansions map: all eight compass sectors on the nine-palace grid, each with its star, nature, rank and life domain, and the best and worst of them named",docsLabel:"Feng Shui",endpointLabel:"POST /feng-shui/kua, POST /feng-shui/eight-mansions",docsSummary:"Kua number and trigram over the eight-sector direction map, favourable and unfavourable sectors ranked",topic:"Feng Shui"},{pascal:"RoxyMayanDaySign",tag:"roxy-mayan-day-sign",slug:"mayan-day-sign",heading:"Mayan day sign",description:"Tzolkin day sign in all three of its spellings with the coefficient beside it, the trecena it sits in, the keynote, strengths, challenges and guidance, and on the full chart the Haab date, the Long Count, the Calendar Round, the year bearer and the four-fold cross",docsLabel:"Mesoamerican",endpointLabel:"POST /mesoamerican-astrology/mayan/tzolkin, POST /mesoamerican-astrology/mayan/chart",docsSummary:"Day sign and coefficient with the trecena, the reading, and the Calendar Round on the fuller response",topic:"Mesoamerican"},{pascal:"RoxyVastuMandala",tag:"roxy-vastu-mandala",slug:"vastu-mandala",heading:"Vastu mandala",description:"Vastu Purusha Mandala projected over a plot: every pada with the devata holding it, the brahmasthan block, the vamsa diagonals and where they cross, and in the entrance read the square the main door falls on with the verse effect for that pada",docsLabel:"Vastu",endpointLabel:"POST /vastu/mandala, POST /vastu/entrance",docsSummary:"Pada grid with a devata per square, the brahmasthan, and the entrance pada lit with its effect",topic:"Vastu"},{pascal:"RoxyBiorhythmChart",tag:"roxy-biorhythm-chart",slug:"biorhythm-chart",heading:"Daily biorhythm",description:"Daily biorhythm bars or multi-day forecast cycle lines",docsLabel:"Biorhythm",endpointLabel:"POST /biorhythm/{daily,forecast,critical-days}",docsSummary:"Daily bars, forecast cycle lines, critical days",topic:"Biorhythm"},{pascal:"RoxyDoshaConstitution",tag:"roxy-dosha-constitution",slug:"dosha-constitution",heading:"Ayurvedic constitution",description:"Ayurvedic constitution read from a birth chart: the three humour shares as one bar, the dominant and secondary humour, the three cited factors behind the blend with their verses, the shadbala ranking the third factor reads, and the scope note the response carries",docsLabel:"Ayurveda",endpointLabel:"POST /ayurveda/constitution",docsSummary:"Vata, pitta and kapha shares as one bar with the dominant humour and the cited factors behind it",topic:"Ayurveda"},{pascal:"RoxyHexagram",tag:"roxy-hexagram",slug:"hexagram",heading:"I Ching hexagram",description:"I Ching hexagram drawn line by line with trigram glyphs, judgment, image, and a reading for every line: the oracle statement and what it asks of the querent. A cast highlights the moving lines and shows only their readings, plus the hexagram it transforms into",docsLabel:"I Ching",endpointLabel:"GET /iching/hexagrams/{number}, /iching/hexagrams/random, /iching/hexagrams/lookup, /iching/cast, POST /iching/daily, /iching/daily/cast",docsSummary:"Hexagram figure with trigrams, judgment, image, and a reading per line (statement plus meaning); a cast highlights the moving lines and the resulting hexagram",topic:"I Ching"},{pascal:"RoxyCrystalCard",tag:"roxy-crystal-card",slug:"crystal-card",heading:"Crystal detail",description:"Single-crystal detail card with photo, spiritual, emotional, and physical meaning, metaphysical attributes, affirmation, and pairings; as a widget the visitor types a crystal name and picks it",docsLabel:"Crystals",endpointLabel:"GET /crystals/{id}",docsSummary:"Photo, meaning sections, chakra, zodiac, element, hardness, keywords, and pairings",topic:"Crystals"},{pascal:"RoxyCrystalGrid",tag:"roxy-crystal-grid",slug:"crystal-grid",heading:"Crystal grid",description:"Responsive crystal gallery with photo, name, and colour swatches from any crystals list response, filterable by chakra, zodiac sign, element, colour, and planet; a picked tile opens its crystal card in place",docsLabel:"Crystals",endpointLabel:"GET /crystals, /crystals/chakra/{chakra}, /crystals/element/{element}, /crystals/zodiac/{sign}, /crystals/birthstone/{month}, /crystals/search",docsSummary:"Crystal gallery with chakra, zodiac, element, colour, and planet filters; a pick opens the card in place",topic:"Crystals"},{pascal:"RoxyDreamCard",tag:"roxy-dream-card",slug:"dream-card",heading:"Dream symbol",description:"Dream symbol card with the symbol name, full interpretation, and dictionary letter; as a widget the visitor types a symbol and picks it",docsLabel:"Dreams",endpointLabel:"GET /dreams/symbols/{id}",docsSummary:"Symbol name, interpretation body, and letter chip",topic:"Dreams"},{pascal:"RoxyDreamSearch",tag:"roxy-dream-search",slug:"dream-search",heading:"Dream search",description:"The dream dictionary as selectable tiles under a search box and an A to Z bar; a picked tile opens its dream card in place, and emits roxy-symbol-select for a host that pairs its own",docsLabel:"Dreams",endpointLabel:"GET /dreams/symbols",docsSummary:"The dream dictionary as tiles, browsed A to Z or searched; a pick opens the card in place",topic:"Dreams"},{pascal:"RoxyAngelNumberCard",tag:"roxy-angel-number-card",slug:"angel-number-card",heading:"Angel number",description:"Angel number card with title, core message, badges, keywords, life-area interpretations, affirmation, and action steps",docsLabel:"Angel Numbers",endpointLabel:"GET /angel-numbers/numbers/{number}, POST /angel-numbers/daily",docsSummary:"Number meaning with spiritual, love, career, money, twin flame, biblical, and shadow sections",topic:"Angel Numbers"},{pascal:"RoxyAngelNumberLookup",tag:"roxy-angel-number-lookup",slug:"angel-number-lookup",heading:"Angel number lookup",description:"Angel number sequence analysis with pattern classification, the known meaning when present, and a digit-root fallback for any number",docsLabel:"Angel Numbers",endpointLabel:"GET /angel-numbers/lookup",docsSummary:"Pattern analysis plus known meaning and digit-root fallback",topic:"Angel Numbers"},{pascal:"RoxyReport",tag:"roxy-report",slug:"report",heading:"Branded report",description:"Branded report for any /reports operation: the visitor fills the form, and the finished document arrives under your name as a PDF download or in place on the page",docsLabel:"Reports",endpointLabel:"POST /reports/...",docsSummary:"Form to finished branded report, as a PDF download or inline HTML",topic:"Reports"},{pascal:"RoxyReferenceCard",tag:"roxy-reference-card",slug:"reference-card",heading:"Reference card",description:"Glossary entry for any reference lookup: zodiac sign, planet meaning, rashi, I Ching trigram, Human Design gate or center, or numerology number",docsLabel:"Reference",endpointLabel:"GET /astrology/{signs,planet-meanings}/{id}, /vedic-astrology/{rashis,avasthas}/{id}, /iching/trigrams/{id}, /human-design/gates/{number}, /human-design/centers/{id}, /numerology/meanings/{number}",docsSummary:"Symbol, name, description, keyword chips, and an attribute grid for any glossary lookup",topic:"Helpers"},{pascal:"RoxyEndpointForm",tag:"roxy-endpoint-form",slug:"endpoint-form",heading:"Schema-driven form",description:"Schema-driven form that emits roxy-submit with a validated payload",docsLabel:"Helper",endpointLabel:"Any endpoint, from the spec",docsSummary:"Schema-driven form, emits roxy-submit",topic:"Helpers",selfFetching:true},{pascal:"RoxyLocationSearch",tag:"roxy-location-search",slug:"location-search",heading:"City search",description:"City search input with debounced /location/search calls",docsLabel:"Helper",endpointLabel:"GET /location/search",docsSummary:"Debounced city search input, emits roxy-location-select",topic:"Helpers",selfFetching:true},{pascal:"RoxyData",tag:"roxy-data",slug:"data",heading:"Generic renderer",description:"Generic fallback renderer for any OpenAPI response shape",docsLabel:"Helper",endpointLabel:"Any response shape",docsSummary:"Generic fallback renderer for unknown shapes",topic:"Helpers",selfFetching:true}];var Xu=Pn.map(n=>n.slug);return eh(Ju)})();
|
|
164
|
+
</g>`}renderEmptyGrid(e){let t=[];for(let r=0;r<e;r++)for(let i=0;i<e;i++)t.push(F`<rect class="pada" x=${i} y=${r} width="1" height="1"></rect>`);return t}renderDoor(e,t){let r=t.devata?.name??"";return this.renderPada(e,t.cell?.columnFromWest,t.cell?.rowFromNorth,"pada pada-door",t.square,r,r)}renderVamsa(e,t){return(t??[]).map(r=>{let[i,l]=Dn(e,r.from),[c,d]=Dn(e,r.to);return F`<line class="vamsa" x1=${i} y1=${l} x2=${c} y2=${d}></line>`})}renderBrahmasthan(e,t){let r=t??[];if(r.length<3)return o;let i=r.map(l=>Dn(e,l).join(",")).join(" ");return F`<polygon class="brahmasthan" points=${i}></polygon>`}renderAtimarma(e,t){let r=new Set(t?.atimarma??[]);return r.size===0?o:(t?.cells??[]).filter(i=>i.square!=null&&r.has(i.square)).map(i=>{let[l,c]=Dn(e,i.center);return F`<circle class="atimarma" cx=${l} cy=${c} r="0.06"></circle>`})}renderDevatas(e,t){let r=new Map;for(let i of t??[])!i.devataName||i.square==null||r.set(i.devataName,[...r.get(i.devataName)??[],i.square]);return r.size===0?o:s`<section part="section devatas"><h3 class="block-title">${this.t("Devata")}</h3><ul class="devatas">${[...r].map(([i,l])=>s`<li><b>${i}</b> ${l.sort((c,d)=>c-d).map(c=>N(e,c)).join(", ")}</li>`)}</ul></section>`}renderLegend(e,t){if(e)return s`<div class="legend" part="legend"><span><span class="swatch swatch-door"></span>${this.t("Door pada")}</span></div>`;let r=(t?.cells??[]).some(i=>i.withinPlot===false);return s`<div class="legend" part="legend"><span><span class="swatch swatch-brahma"></span>${this.t("Brahmasthan")}</span> ${r?s`<span><span class="swatch swatch-outside"></span>${this.t("Outside the plot")}</span>`:o}</div>`}renderFacts(e,t,r,i){let l=t.conventions?.grid;return s`<div class="facts" part="details">${l?s`<span><span class="roxy-label">${X(e,"grid")}</span><b>${j(e,"grid",l)}</b></span>`:o} ${i?.pada!=null?s`<span><span class="roxy-label">${this.t("Pada")}</span><b>${N(e,i.pada)}</b></span>`:o} ${i?.side?s`<span><span class="roxy-label">${this.t("Side")}</span><b>${j(e,"facing",i.side)}</b></span>`:o} ${i?.startCorner?s`<span><span class="roxy-label">${this.t("Counted from")}</span>${j(e,"facing",i.startCorner)} ${i.ordinalOnSide!=null?s`· ${N(e,i.ordinalOnSide)}`:o}</span>`:o} ${i?.devata?.name?s`<span><span class="roxy-label">${this.t("Devata")}</span><b>${i.devata.name}</b> ${i.devata.padaCount!=null?s`· ${this.t("Pada")} ${N(e,i.devata.padaCount)}`:o}</span>`:o} ${i?.recommendedPadas?.length?s`<span><span class="roxy-label">${this.t("Recommended padas")}</span>${i.recommendedPadas.map(c=>N(e,c)).join(", ")}</span>`:o} ${r?.brahmasthan?.area!=null?s`<span><span class="roxy-label">${this.t("Brahmasthan area")}</span><b>${this.areaLabel(e,r.brahmasthan.area,r.conventions?.unit)}</b></span>`:o} ${r?.marma?.areaEach!=null?s`<span><span class="roxy-label">${this.t("Area of one marma")}</span>${this.areaLabel(e,r.marma.areaEach,r.conventions?.unit)}</span>`:o} ${r?.atimarma?.length?s`<span><span class="roxy-label">${this.t("Crossing points")}</span>${r.atimarma.map(c=>N(e,c)).join(", ")}</span>`:o}</div>`}renderSources(e){return e.length===0?o:s`<section part="section sources"><ul class="cites">${e.map(t=>s`<li>${Kr(t)}</li>`)}</ul></section>`}areaLabel(e,t,r){let i=$(e,t,2);if(!r)return i;let l=Hu[r]??`${r}\xB2`;return s`<span title="${j(e,"unit",r)}">${i} ${l}</span>`}ringLabel(e){let t=Fu[e];return t?this.t(t):E(e)}verdictLabel(e){let t=Bu[e];return t?this.t(t):E(e)}};_t.endpoints=Il,_t.styles=[v,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);--_brahma:color-mix(in srgb, var(--roxy-accent) 16%, var(--roxy-surface));--_outside:color-mix(in srgb, var(--roxy-muted) 18%, var(--roxy-surface));--_door:color-mix(in srgb, var(--roxy-success) 26%, var(--roxy-surface));grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-md);flex-wrap:wrap;display:flex}.title,.block-title{margin:0}.block-title{margin-block-end:var(--roxy-space-sm)}.verdict-auspicious{color:var(--roxy-success-fg)}.verdict-inauspicious{color:var(--roxy-danger-fg)}.verdict-mixed{color:var(--roxy-warning-fg)}.frame{place-items:center;gap:calc(var(--roxy-space-unit) / 2) var(--roxy-space-xs);inline-size:100%;max-inline-size:var(--roxy-chart-max-width,32rem);grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:".n.""w plate e"".s.";margin-inline:auto;display:grid}.compass{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.compass-n{grid-area:n}.compass-s{grid-area:s}.compass-w,.compass-e{writing-mode:vertical-rl}.compass-w{grid-area:w;rotate:180deg}.compass-e{grid-area:e}svg{grid-area:plate;width:100%;height:auto;display:block}.pada{fill:var(--roxy-surface);stroke:var(--roxy-border);stroke-width:.012px}.pada-innerRing,.pada-innerCorner,.pada-around-brahma{fill:color-mix(in srgb, var(--roxy-accent) 7%, var(--roxy-surface))}.pada-center,.pada-brahma{fill:var(--_brahma)}.pada-outside{fill:var(--_outside)}.pada-door{fill:var(--_door);stroke:var(--roxy-fg);stroke-width:.03px}.brahmasthan{fill:none;stroke:var(--roxy-accent-ink);stroke-width:.05px}.vamsa{stroke:var(--roxy-secondary);stroke-width:.02px;stroke-dasharray:.12 .1}.atimarma{fill:var(--roxy-accent-ink)}text{fill:var(--roxy-fg);text-anchor:middle}.devata{font-size:calc(var(--roxy-text-base) * .011875)}.square-no{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .00875)}@container (width<=30rem){.devata{display:none}.square-no{font-size:calc(var(--roxy-text-base) * .02125);dominant-baseline:middle;translate:0 .31lh}}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;display:flex}.facts .roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b,.devatas b{color:var(--roxy-fg)}.devatas{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums;flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.legend{gap:var(--roxy-space-xs) var(--roxy-space-md);color:var(--roxy-muted);font-size:var(--roxy-text-xs);flex-wrap:wrap;display:flex}.swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}.swatch-brahma{background:var(--_brahma)}.swatch-outside{background:var(--_outside)}.swatch-door{background:var(--_door)}.effect{margin:0;padding-block-start:var(--roxy-space-md)}.reading{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);border-block-start:0;margin:0}.cites{color:var(--roxy-muted);font-size:var(--roxy-text-xs);margin:0;padding:0;list-style:none}`],y([k({type:String,reflect:true})],_t.prototype,"mode",2),_t=y([L("roxy-vastu-mandala")],_t);function Vu(n){let a=Number.parseInt(n??"",10),e=Math.round(Math.sqrt(a));if(!(!Number.isFinite(e)||e<2||e*e!==a))return{size:e,originX:0,cellW:1,originY:0,cellH:1}}var Ia=class extends f{renderData(a){let e=a.aspects??[],t=a.mutualAspects??[],r=a.planets??[];if(e.length===0&&t.length===0)return this.renderEmpty();let i=a.datetime?Y(this.effectiveLang(),a.datetime):"";return s`<div class="wrap" part="card" aria-label="${this.t("Vedic aspects")}"><div class="head" part="header"><h2>${this.t("Vedic aspects")}</h2>${i?s`<p class="roxy-label">${this.t("Chart time {{when}}",{when:i})}</p>`:o}</div>${r.length>0?s`<div part="section positions"><h3 class="section-label">${this.t("Sidereal positions")}</h3><ul class="roxy-chips">${r.map(l=>s`<li class="position"><strong>${l.name}</strong> ${typeof l.longitude=="number"?ye(l.longitude):l.sign??""}</li>`)}</ul></div>`:o} ${t.length>0?s`<div part="section mutual-aspects"><h3 class="section-label">${this.t("Mutual aspects")}</h3><ul class="roxy-chips">${t.map(l=>s`<li class="mutual-pill">${l.planet1} <span class="roxy-glyph" aria-hidden="true">${Kc}</span> ${l.planet2} ${l.aspectType?s`<span class="rel">${l.aspectType}</span>`:o}</li>`)}</ul></div>`:o} ${e.length>0?s`<div class="overflow-scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Vedic aspects")}"><table><caption class="roxy-sr-only">${this.t("Vedic planetary aspects: aspecting planet, aspect type, aspected planet, strength and orb.")}</caption><thead><tr><th scope="col">${this.t("From")}</th><th scope="col">${this.t("Aspect")}</th><th scope="col">${this.t("To")}</th><th scope="col">${this.t("Strength")}</th><th scope="col">${this.t("Orb")}</th></tr></thead><tbody>${e.map(l=>s`<tr><td>${l.aspectingPlanet}</td><td><span class="kind">${l.aspectType}</span></td><td>${l.aspectedPlanet}</td><td>${typeof l.strength=="number"?s`<span class="bar" style="--_v:${Math.max(10,Math.min(100,l.strength))}"></span><span class="num">${$(this.effectiveLang(),l.strength,0)}</span>`:o}</td><td class="num">${typeof l.orb=="number"?`${$(this.effectiveLang(),l.orb,2)}\xB0`:""}</td></tr>`)}</tbody></table></div>`:o}</div>`}};Ia.endpoints=Gl,Ia.styles=[v,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}h2,h3,p{margin:0}.section-label{margin-block-end:var(--roxy-space-xs)}.position,.mutual-pill{font-variant-numeric:tabular-nums;min-width:0}.position strong,.mutual-pill{color:var(--roxy-fg)}.overflow-scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}tbody tr:last-child td{border-block-end:0}.kind{font-weight:var(--roxy-weight-bold)}.num{color:var(--roxy-muted)}.bar{inline-size:calc(var(--_v) * 5ch / 100);block-size:.3lh;border-radius:var(--roxy-radius-full);background:var(--roxy-accent);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}`],Ia=y([L("roxy-vedic-aspects")],Ia);var ro={favourable:"Favourable",underdelivered:"Underdelivered",obstructed:"Obstructed",void:"Void",aggravated:"Aggravated",unfavourable:"Unfavourable"},qu=Object.keys(ro),Yu={favourable:"success",aggravated:"danger",unfavourable:"danger"},Hp=8,Pn={"very-strong":"Very strong",strong:"Strong",moderate:"Moderate",weak:"Weak"},Wu={day:"Day",finance:"Finance",natal:"Natal"},jp={mahadasha:"Mahadasha",antardasha:"Antardasha",pratyantardasha:"Pratyantardasha"},Ga=class extends f{renderData(a){let e=a.grahas??[];return e.length?s`<div class="wrap" part="card" aria-label="${this.t("Vedic daily reading")}">${this.renderHead(a)} ${this.renderPanchanga(a)} ${this.renderGrahas(e,a.houseThemes)} ${this.renderWindows(a)} ${this.renderFinance(a)} ${this.renderDasha(a)} ${this.renderProvenance(a)}</div>`:this.renderEmpty()}renderHead(a){let e=new Map((a.tally??[]).map(r=>[r.state,r.count])),t=e.get("favourable")??0;return s`<header class="head" part="header"><div class="title-row"><h2>${this.t("Vedic daily")}</h2><span class="roxy-label">${pr(this.effectiveLang(),a.dayStart,a.dayEnd)}</span></div><div class="verdict-row"><span class="verdict ${a.verdict}">${this.t(Pn[a.verdict])}</span> <span class="evidence">${this.t("{{supportive}} of {{evaluated}} grahas support this day",{supportive:t,evaluated:a.evaluated})}</span></div>${e.size?s`<ul class="tally roxy-chips" part="legend">${qu.filter(r=>e.get(r)).map(r=>s`<li class="pill">${this.t(ro[r])} ${e.get(r)}</li>`)}</ul>`:o} ${a.subject?s`<p class="note">${this.t("Born with the Moon in {{rashi}}, nakshatra {{nakshatra}}",{rashi:a.subject.janmaRashi,nakshatra:a.subject.janmaNakshatra})}</p>`:o} ${(a.degraded??[]).map(r=>s`<p class="note">${this.t("{{component}} unavailable: {{reason}}",{component:r.component,reason:r.reason})}</p>`)}</header>`}renderPanchanga(a){let e=a.panchanga;if(!e)return o;let t=(r,i)=>i?s`<div><dt>${r}</dt><dd>${i.number?`${i.number}. `:""}${i.name} ${i.validTo?s`<span class="until">${this.t("until {{time}}",{time:Y(this.effectiveLang(),i.validTo)})}</span>`:o}</dd></div>`:o;return s`<section class="block" part="section panchanga"><h3>${this.t("Panchang")}</h3><dl class="roxy-facts" part="details"><div><dt>${this.t("Vara")}</dt><dd>${e.vara}</dd></div><div><dt>${this.t("Paksha")}</dt><dd>${e.paksha}</dd></div>${t(this.t("Tithi"),e.tithi)} ${t(this.t("Nakshatra"),e.nakshatra)} ${t(this.t("Yoga"),e.yoga)} ${t(this.t("Karana"),e.karana)}</dl></section>`}theme(a,e){return a?.[String(e)]?.join(", ")??""}renderGrahas(a,e){return s`<section class="block" part="section grahas"><h3>${this.t("Grahas today")}</h3><div class="scroll" tabindex="0" role="region" aria-label="${this.t("Grahas today")}"><table part="table"><caption class="roxy-sr-only">${this.t("Each transiting graha with its sign, the house it occupies from the natal Moon, its bindus, its kaksha and the state the classical rules give it.")}</caption><thead><tr><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Sign")}</th><th scope="col">${this.t("House")}</th><th scope="col">${this.t("Bindus")}</th><th scope="col">${this.t("Kaksha")}</th><th scope="col">${this.t("State")}</th></tr></thead><tbody>${a.map(t=>{let r=C(t.graha)??"",i=this.theme(e,t.houseFromMoon);return s`<tr><td>${r?s`<span class="glyph roxy-glyph">${r}</span>`:o}${t.graha}</td><td>${t.sign}</td><td title="${i}">${t.houseFromMoon}</td><td>${typeof t.binduCount=="number"?t.binduCount:""}</td><td>${this.renderKaksha(t.kaksha)}</td><td><span class="state roxy-chip ${t.state}" data-tone="${Yu[t.state]??o}" title="${t.stateSource??""}">${this.t(ro[t.state])}</span></td></tr>`})}</tbody></table></div></section>`}renderKaksha(a){if(!a||typeof a.number!="number")return o;let e=a.bindu===true?"yes":a.bindu===false?"no":"",t=a.bindu===true?this.t("this kaksha lord gave bindu"):a.bindu===false?this.t("this kaksha lord gave no bindu"):"",r=this.t("Kaksha {{n}} of {{total}}, ruled by {{graha}}, spanning {{start}}\xB0 to {{end}}\xB0 of the sign",{n:a.number,total:Hp,graha:a.lord,start:$(this.effectiveLang(),a.startDegree,2),end:$(this.effectiveLang(),a.endDegree,2)});return s`<span class="kaksha" title="${t?`${r} \xB7 ${t}`:r}">${a.number}/${Hp} <span class="dot ${e}" aria-hidden="true"></span></span>`}renderWindows(a){let e=a.tara??[],t=a.chandrabala??[];if(!e.length&&!t.length)return o;let r=(i,l)=>s`<small>${pr(this.effectiveLang(),i,l)}</small>`;return s`<section class="block" part="section windows"><h3>${this.t("Tara and Chandrabala")}</h3>${e.length?s`<div class="chips">${e.map(i=>s`<span class="window"><span>${i.number}. ${i.name}${i.quality?` \xB7 ${i.quality}`:""}</span> ${r(i.validFrom,i.validTo)}</span>`)}</div>`:o} ${t.length?s`<div class="chips">${t.map(i=>s`<span class="window ${i.favourable?"yes":"no"}"><span>${this.t("Moon in {{sign}}, house {{n}}",{sign:i.moonSign,n:i.houseFromMoon})} ${i.ashtamaChandra?s`<span class="mark">· ${this.t("Ashtama Chandra")}</span>`:o} </span>${r(i.validFrom,i.validTo)}</span>`)}</div>`:o}</section>`}renderFinance(a){let e=a.areas?.finance;if(!e)return o;let t=a.houseThemes,r=i=>{let l=this.theme(t,i.house);return s`<li>${i.graha} · ${this.t("House {{n}}",{n:i.house})}${l?` (${l})`:""} · ${this.t("level {{level}} {{grade}}",{level:i.level,grade:i.grade})} ${i.dashaLevels?.length?s`<span class="note">${i.dashaLevels.map(c=>this.t(jp[c])).join(", ")}</span>`:o}</li>`};return s`<section class="block" part="section finance"><h3>${this.t("Finance")}</h3><div class="verdict-row"><span class="verdict ${e.band??""}">${e.band?this.t(Pn[e.band]):""}</span> ${typeof e.positive=="number"&&typeof e.negative=="number"?s`<span class="evidence">${this.t("{{positive}} positive against {{negative}} negative",{positive:e.positive,negative:e.negative})}</span>`:o}</div><div class="lists">${e.drivers?.length?s`<div><h3>${this.t("Drivers")}</h3><ul>${e.drivers.map(r)}</ul></div>`:o} ${e.cautions?.length?s`<div><h3>${this.t("Cautions")}</h3><ul>${e.cautions.map(r)}</ul></div>`:o}</div>${this.renderComposite(e.composite)}</section>`}renderComposite(a){return a?s`<div class="composite"><h3>${this.t("Combined score")}</h3><div class="verdict-row"><span class="verdict ${a.band}">${this.t(Pn[a.band])}</span> <span class="evidence">${a.score}</span></div><ul class="layers">${a.layers.map(e=>s`<li><span>${this.t(Wu[e.layer])}</span> <span class="evidence">${e.score}</span> <span class="band">${this.t(Pn[e.band])}</span></li>`)}</ul></div>`:o}renderDasha(a){let e=a.dasha??[];return e.length?s`<section class="block" part="section dasha"><h3>${this.t("Dasha")}</h3><div class="chips">${e.map(t=>s`<span class="window"><span>${this.t(jp[t.level])} · ${t.lord}</span> <small>${pr(this.effectiveLang(),t.startDate,t.endDate)}</small></span>`)}</div></section>`:o}renderProvenance(a){return a.frames?s`<section class="block" part="section frame">${Vc(this.effectiveLang(),a.frames,this.translator)}</section>`:o}};Ga.endpoints=Fl,Ga.styles=[v,B,J,u`.wrap{grid-template-columns:minmax(0,1fr);display:grid;overflow:hidden}.head,.block{gap:var(--roxy-space-sm);padding:var(--roxy-space-md);display:grid}.block{border-block-start:1px solid var(--roxy-border)}h2,h3,p{margin:0}.title-row{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.verdict-row{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.verdict{color:var(--roxy-secondary);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold)}.verdict:is(.very-strong,.strong){color:var(--roxy-success-fg)}.verdict.moderate{color:var(--roxy-accent-ink)}.evidence{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}.pill{font-variant-numeric:tabular-nums}.roxy-facts{margin:0}.until{color:var(--roxy-muted);font-size:var(--roxy-text-xs);display:block}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.state{cursor:help}.kaksha{align-items:center;gap:var(--roxy-space-xs);cursor:help;display:inline-flex}.dot{aspect-ratio:1;border-radius:var(--roxy-radius-full);background:var(--roxy-border);inline-size:1ch}.dot.yes{background:var(--roxy-success)}.dot.no{background:var(--roxy-warning)}.chips{gap:var(--roxy-space-sm) var(--roxy-space-lg);flex-wrap:wrap;display:flex}.window{font-size:var(--roxy-text-sm);display:grid}.window small{color:var(--roxy-muted);font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}.window.yes>:first-child{color:var(--roxy-success-fg)}.window.no>:first-child,.mark{color:var(--roxy-danger-fg)}.lists{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,24ch),1fr));display:grid}.lists ul{font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-md)}.note{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.composite{gap:var(--roxy-space-sm);display:grid}.layers{gap:var(--roxy-space-xs);font-size:var(--roxy-text-sm);margin:0;padding:0;list-style:none;display:grid}.layers li{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}.layers .band{color:var(--roxy-secondary)}`],Ga=y([L("roxy-vedic-daily")],Ga);var He=class extends f{constructor(){super(...arguments);this.chartViewport=new ne(this);this.chartStyle="north";this.chartReference="lagna";this.lagnaOverride="";this.setStyle=e=>{this.chartStyle=e}}resolveReference(){if(this.lagnaOverride)return this.lagnaOverride;if(this.chartReference==="moon")return this.data?.meta?.Moon?.rashi}viewModel(){return this.data?.meta?Js(this.data.meta,{divisionLabel:"D1 Rashi",lagnaOverride:this.resolveReference(),states:this.data}):null}renderData(e){let t=this.viewModel();if(!t)return this.renderEmpty();let r=this.chartReference==="moon"&&!this.lagnaOverride?this.t("Chandra lagna"):this.t("Vedic kundli");return s`<div class="wrap" part="card"><div class="header" part="header"><div><h2 class="title">${r}</h2>${W(this.effectiveLang(),e.frame,this.translator)} ${en(t,this.translator)}</div>${tn(this.chartStyle,this.setStyle,this.translator)}</div><div id="kundli-panel-${this.chartStyle}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="kundli-tab-${this.chartStyle}">${this.chartViewport.renderChartViewport(ke(Qs(t,{style:this.chartStyle,lang:this.effectiveLang()})),r,this.translator)}</div></div>`}};He.endpoints=Bl,He.styles=[v,pe,B,_s,an,ge],y([k({type:String,reflect:true,attribute:"chart-style"})],He.prototype,"chartStyle",2),y([k({type:String,reflect:true,attribute:"chart-reference"})],He.prototype,"chartReference",2),y([k({type:String,reflect:true,attribute:"lagna-override"})],He.prototype,"lagnaOverride",2),He=y([L("roxy-vedic-kundli")],He);var Zu=["Lagna","Sun","Moon","Mars","Mercury","Jupiter","Venus","Saturn","Rahu","Ketu"],Kp=[["awastha","Baladi."],["jagradadi","Jagradadi."],["deeptadi","Deeptadi."]],Fa=class extends f{orderedRows(){let a=this.data?.meta??{},e=new Set,t=[];for(let r of Zu){let i=a[r];i&&(t.push([r,i]),e.add(r))}for(let[r,i]of Object.entries(a))e.has(r)||t.push([r,i]);return t}renderData(a){if(!a.meta)return this.renderEmpty();let e=this.orderedRows(),t=e.some(([,r])=>r.avasthaInfo);return s`<div class="wrap" part="card" aria-label="${this.t("Vedic planetary positions")}"><header class="head" part="header"><h2>${this.t("Planetary positions")}</h2>${W(this.effectiveLang(),a.frame,this.translator)}</header><div class="scroll" part="table" tabindex="0" role="region" aria-label="${this.t("Planetary positions")}"><table role="table"><caption class="roxy-sr-only">${this.t("Vedic planetary positions: each graha with its rashi, degree, nakshatra, pada, nakshatra lord, house, its state in all three avastha systems, and retrograde state. Jagradadi and Deeptadi are read from sign dignity, which the nodes and the Lagna do not have, so those two cells are blank on the Rahu, Ketu and Lagna rows. Uranus, Neptune and Pluto appear only when asked for and rule no sign, so every avastha and house cell is blank on their rows too.")} ${t?this.t("Each avastha state is followed by its meaning."):o}</caption><thead><tr><th scope="col">${this.t("Graha")}</th><th scope="col">${this.t("Rashi")}</th><th scope="col">${this.t("Degree")}</th><th scope="col">${this.t("Nakshatra")}</th><th scope="col">${this.t("Pada")}</th><th scope="col">${this.t("Nak. lord")}</th><th scope="col">${this.t("House")}</th><th scope="col" title="${this.t("Baladi: the five age states, set by degree within the sign")}">${this.t("Baladi")}</th><th scope="col" title="${this.t("Jagradadi: the three waking states, set by sign dignity. The seven classical grahas only")}">${this.t("Jagradadi")}</th><th scope="col" title="${this.t("Deeptadi: the nine dispositional states, set by sign dignity. The seven classical grahas only")}">${this.t("Deeptadi")}</th><th scope="col">${this.t("Retro")}</th></tr></thead><tbody>${e.map(([r,i])=>{let l=(i.graha??r)==="Lagna",c=C(i.graha??r)??"",d=z(i.rashi)??"";return s`<tr class="${l?"lagna":""}"><td class="graha">${c?s`<span class="glyph roxy-glyph">${c}</span>`:o}${i.graha??r}</td><td>${d?s`<span class="glyph roxy-glyph">${d}</span>`:o}${i.rashi??""}</td><td>${typeof i.longitude=="number"?ye(i.longitude):""}</td><td>${i.nakshatra?.name??""}</td><td>${i.nakshatra?.pada??""}</td><td>${i.nakshatra?.lord??""}</td><td>${typeof i.house=="number"?i.house:""}</td>${Kp.map(([p])=>s`<td>${i[p]??""}${i.avasthaInfo?.[p]?.meaning?s`<span class="gloss">${i.avasthaInfo[p].meaning}</span>`:o}</td>`)}<td>${i.isRetrograde?s`<span class="retro">R</span>`:o}</td></tr>`})} ${this.renderModernRows()}</tbody></table></div>${this.renderCombustion()} ${this.renderPlanetaryWar()} ${this.renderInterpretations()} ${this.renderYogas()} ${this.renderHouses()}</div>`}renderModernRows(){let a=this.data?.modernPlanets??[];return a.length===0?o:a.map((e,t)=>{let r=z(e.rashi)??"";return s`<tr class="modern ${t===0?"modern-first":""}"><td class="graha">${Or(e.planet,e.sanskritName)}</td><td>${r?s`<span class="glyph roxy-glyph">${r}</span>`:o}${e.rashi??""}</td><td>${typeof e.longitude=="number"?ye(e.longitude):""}</td><td>${e.nakshatra?.name??""}</td><td>${e.nakshatra?.pada??""}</td><td>${e.nakshatra?.lord??""}</td><td></td><td></td><td></td><td></td><td>${e.isRetrograde?s`<span class="retro">R</span>`:o}</td></tr>`})}renderCombustion(){let a=this.data?.combustion??[];return a.length===0?o:s`<details class="panel" part="section combustion"><summary>${this.t("Combust grahas")}<span class="summary-count">${a.length}</span>${V()}</summary><div class="panel-body">${a.map(e=>{let t=C(e.planet)??"",r=$(this.effectiveLang(),e.distanceFromSun,2),i=$(this.effectiveLang(),e.orb,1);return s`<div class="condition"><span class="planet">${ce(t)} ${e.planet}</span> <span class="detail">${this.t("{{distance}} deg from Sun, within {{orb}} deg orb",{distance:r,orb:i})}</span></div>`})}</div></details>`}renderPlanetaryWar(){let a=this.data?.planetaryWar??[];return a.length===0?o:s`<details class="panel" part="section planetary-war"><summary>${this.t("Planetary wars")}<span class="summary-count">${a.length}</span>${V()}</summary><div class="panel-body">${a.map(e=>{let t=$(this.effectiveLang(),e.distance,2);return s`<div class="condition"><span class="planet">${this.t("{{first}} vs {{second}}",{first:e.planet1,second:e.planet2})}</span> <span class="detail">${this.t("{{distance}} deg apart",{distance:t})}</span> <span class="winner">${this.t("{{graha}} wins",{graha:e.winner})}</span></div>`})}</div></details>`}renderInterpretations(){if(this.hideReadings)return o;let a=this.data?.interpretations??{},e=this.orderedRows().map(([t,r])=>[r.graha??t,a[r.graha??t],r.avasthaInfo]).filter(([,t,r])=>t!=null||r!=null);return e.length===0?o:s`<details class="panel" part="section readings"><summary>${this.t("Interpretations")}<span class="summary-count">${e.length}</span>${V()}</summary><div class="panel-body">${e.map(([t,r,i])=>{let l=C(t)??"";return s`<div class="interp"><span class="planet">${ce(l)} ${t}</span> ${r?.rashi?s`<p><span class="label">${this.t("Rashi.")}</span> ${r.rashi}</p>`:o} ${r?.nakshatra?s`<p><span class="label">${this.t("Nakshatra.")}</span> ${r.nakshatra}</p>`:o} ${Kp.map(([c,d])=>i?.[c]?.interpretation?s`<p><span class="label">${this.t(d)}</span> ${i[c].interpretation}</p>`:o)}</div>`})}</div></details>`}renderHouses(){let a=(this.data?.houses??[]).filter(e=>e.name||e.description);return a.length===0?o:s`<details class="panel" part="section bhava-significations"><summary>${this.t("Bhava significations")}<span class="summary-count">${a.length}</span>${V()}</summary><div class="panel-body">${a.map(e=>s`<div class="bhava"><span class="name">${e.number}. ${e.name??""}</span> ${e.description?s`<p class="desc">${e.description}</p>`:o}</div>`)}</div></details>`}renderYogas(){let a=(this.data?.yogas??[]).filter(e=>e.present);return a.length===0?o:s`<details class="panel" part="section yogas"><summary>${this.t("Yogas")}<span class="summary-count">${a.length}</span>${V()}</summary><div class="panel-body">${a.map(e=>s`<div class="bhava"><span class="name">${e.name} ${e.quality?s`<span class="quality ${e.quality.toLowerCase()}">${e.quality}</span>`:o}</span> ${e.result?s`<p class="desc">${e.result}</p>`:o}</div>`)}</div></details>`}};Fa.endpoints=Hl,Fa.styles=[v,B,O,u`.wrap{overflow:hidden}.head{padding:var(--roxy-space-md);border-block-end:1px solid var(--roxy-border)}h2,p{margin:0}.scroll{min-width:0;overflow-x:auto}table{width:100%}th,td{white-space:nowrap}:is(th,td):first-child{padding-inline-start:var(--roxy-space-md)}:is(th,td):last-child{padding-inline-end:var(--roxy-space-md)}tbody tr.lagna td:first-child{box-shadow:inset var(--roxy-line-thick) 0 0 var(--roxy-accent)}tbody tr.lagna .glyph{color:var(--roxy-accent-ink)}tbody tr.modern-first td{border-block-start:var(--roxy-line-thick) solid var(--roxy-border)}td.graha{font-weight:var(--roxy-weight-bold)}.glyph{color:var(--roxy-muted);margin-inline-end:var(--roxy-space-xs)}.gloss{color:var(--roxy-secondary);font-size:var(--roxy-text-xs);display:block}.retro{color:var(--roxy-warning-fg);font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}details.panel{border-block-start:1px solid var(--roxy-border)}details.panel>summary{justify-content:space-between;align-items:center;gap:var(--roxy-space-sm);padding:var(--roxy-space-sm) var(--roxy-space-md);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold);display:flex}.summary-count{margin-inline:auto var(--roxy-space-xs);color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);font-variant-numeric:tabular-nums}.panel-body{gap:var(--roxy-space-sm);padding:0 var(--roxy-space-md) var(--roxy-space-md);font-size:var(--roxy-text-sm);grid-template-columns:minmax(0,1fr);display:grid}.condition{align-items:baseline;gap:var(--roxy-space-xs) var(--roxy-space-sm);flex-wrap:wrap;display:flex}:is(.condition,.interp) .planet,.bhava .name{font-weight:var(--roxy-weight-bold)}.condition .detail{color:var(--roxy-muted);font-variant-numeric:tabular-nums}.condition .winner{color:var(--roxy-success-fg);font-weight:var(--roxy-weight-bold)}.interp,.bhava{gap:calc(var(--roxy-space-unit) / 2);display:grid}.interp .label{color:var(--roxy-muted);font-weight:var(--roxy-weight-bold)}.bhava .desc{color:var(--roxy-muted)}.quality{font-size:var(--roxy-text-xs);font-weight:var(--roxy-weight-bold)}.quality.positive{color:var(--roxy-success-fg)}.quality.negative{color:var(--roxy-danger-fg)}.quality.both{color:var(--roxy-muted)}`],Fa=y([L("roxy-vedic-planets-table")],Fa);function Up(n){return n.suppressedBy||void 0}var Vp=["classical","asraya","dala","akriti","sankhya"];function qp(n){let a=Vp.indexOf(n.family);return a===-1?Vp.length:a}var Xu=[{id:"present",source:"Present",open:true,noteSource:"Every classical condition is satisfied by this chart."},{id:"outranked",source:"Outranked",open:true,noteSource:"The rule matched, but a stronger family silences it under the classical precedence norms. Each card names the family that took precedence."},{id:"absent",source:"Not present",open:false,noteSource:"At least one classical condition fails. Read the evidence for which."}],Ju={Positive:"success",Negative:"danger",Both:"warning"},Mt=class extends f{constructor(){super(...arguments);this.filter="";this.handleInput=e=>{this.filter=e.target.value}}verdictOf(e){return e.present?"present":Up(e)?"outranked":"absent"}renderVerdictGroup(e,t){if(!t.length)return o;let r=[...t].sort((i,l)=>qp(i)-qp(l));return s`<details class="group" part="section verdict" ?open="${e.open||!!this.filter}"><summary class="group-summary"><span class="group-label">${this.t(e.source)}</span> <span class="group-count">${t.length}</span></summary><p class="group-note">${this.t(e.noteSource)}</p><div class="detail-grid">${r.map(i=>this.renderDetectCard(i))}</div></details>`}renderQualityChip(e){return s`<span class="quality-chip roxy-chip quality-${e}" data-tone="${Ju[e]??o}">${e}</span>`}renderFamilyChip(e){return e.family?s`<span class="family-chip roxy-chip" title="${this.t("Classical family")}">${D(e.family)}</span>`:o}renderDetailCard(e){return s`<div class="detail-card"><p class="detail-name">${e.name} ${e.quality?this.renderQualityChip(e.quality):o} ${this.renderFamilyChip(e)}</p>${e.description&&!this.hideReadings?s`<p class="description">${e.description}</p>`:o} ${this.renderEffects(e.result)}</div>`}renderEffects(e){return!e||this.hideReadings?o:s`<details part="reading"><summary>${this.t("Effects")}</summary><div class="result-body">${e}</div></details>`}renderDetectCard(e){let t=e.present?void 0:Up(e),[r,i,l]=e.present?["is-present","Present","success"]:t?["is-outranked",`Outranked by ${D(t)}`,"warning"]:["is-absent","Not present",void 0];return s`<div class="detail-card ${e.present?"":t?"outranked":"absent"}"><p class="detail-name">${e.name} ${e.quality?this.renderQualityChip(e.quality):o} ${this.renderFamilyChip(e)} <span class="present-badge roxy-chip ${r}" data-tone="${l??o}">${i}</span></p>${e.description&&!this.hideReadings?s`<p class="description">${e.description}</p>`:o} ${e.present?this.renderEffects(e.result):o} ${e.evidence?s`<p class="evidence">${e.evidence}</p>`:o}</div>`}renderData(e){let t=this.filter.toLowerCase();if("description"in e&&typeof e.description=="string"){let r=e;return s`<div class="wrap" part="card">${this.renderDetailCard(r)}</div>`}if("yogas"in e&&Array.isArray(e.yogas)){let r=e.yogas;if(r.length>0&&"present"in r[0]){let p=r,h=t?p.filter(g=>g.name.toLowerCase().includes(t)):p,m=e.total??p.filter(g=>g.present).length;return s`<div class="wrap" part="card"><div class="head" part="header"><h2>${this.t("Detected yogas")}</h2><span class="count">${this.t("{{count}} of {{total}} present",{count:m,total:p.length})}</span></div>${W(this.effectiveLang(),e.frame,this.translator)}<div class="search-wrap"><input class="search" type="search" placeholder="${this.t("Filter yogas...")}" aria-label="${this.t("Filter detected yogas by name")}" .value="${this.filter}" @input="${this.handleInput}"></div><div class="group-stack" part="section verdicts" role="region" aria-live="polite" aria-label="${this.t("Detected yogas")}">${h.length>0?Xu.map(g=>this.renderVerdictGroup(g,h.filter(b=>this.verdictOf(b)===g.id))):s`<p class="no-results">${this.t("No yogas match your search.")}</p>`}</div></div>`}if(r.length>0&&"description"in r[0]){let p=r,h=t?p.filter(g=>g.name.toLowerCase().includes(t)):p,m=e.total;return s`<div class="wrap" part="card"><div class="head" part="header"><h2>${this.t("Yoga catalog")}</h2>${m!==void 0?s`<span class="count">${this.t("{{count}} total",{count:m})}</span>`:o}</div><div class="search-wrap"><input class="search" type="search" placeholder="${this.t("Filter yogas...")}" aria-label="${this.t("Filter yoga list by name")}" .value="${this.filter}" @input="${this.handleInput}"></div><div class="detail-grid" part="section yogas" role="region" aria-live="polite" aria-label="${this.t("Yoga results")}">${h.length>0?h.map(g=>this.renderDetailCard(g)):s`<p class="no-results">${this.t("No yogas match your search.")}</p>`}</div></div>`}let l=r,c=t?l.filter(p=>p.name.toLowerCase().includes(t)):l,d=e.total;return s`<div class="wrap" part="card"><div class="head" part="header"><h2>${this.t("Yoga catalog")}</h2>${d!==void 0?s`<span class="count">${this.t("{{count}} total",{count:d})}</span>`:o}</div><div class="search-wrap"><input class="search" type="search" placeholder="${this.t("Filter yogas...")}" aria-label="${this.t("Filter yoga list by name")}" .value="${this.filter}" @input="${this.handleInput}"></div><div class="grid" part="section yogas" role="region" aria-live="polite" aria-label="${this.t("Yoga results")}">${c.length>0?c.map(p=>s`<div class="yoga-chip">${p.name}</div>`):s`<p class="no-results">${this.t("No yogas match your search.")}</p>`}</div></div>`}return s`<div class="roxy-empty" role="status">${this.t("No yoga data")}</div>`}};Mt.endpoints=Kl,Mt.styles=[v,B,u`.wrap{gap:var(--roxy-space-md);padding:var(--roxy-space-md);grid-template-columns:minmax(0,1fr);display:grid}.head{justify-content:space-between;align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}h2,p{margin:0}.count,.no-results{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.search{inline-size:100%;max-inline-size:32ch;font-size:var(--roxy-text-sm)}.search::placeholder{color:var(--roxy-muted)}.grid{gap:0 var(--roxy-space-md);grid-template-columns:repeat(auto-fill,minmax(min(100%,22ch),1fr));display:grid}.yoga-chip{padding-block:var(--roxy-space-xs);border-block-end:1px solid var(--roxy-border);font-size:var(--roxy-text-sm);overflow-wrap:anywhere}.detail-card{gap:var(--roxy-space-sm);display:grid}.detail-grid>.detail-card+.detail-card{border-block-start:1px solid var(--roxy-border);padding-block-start:var(--roxy-space-sm)}.detail-name{align-items:center;gap:var(--roxy-space-sm);font-weight:var(--roxy-weight-bold);flex-wrap:wrap;display:flex}.wrap>.detail-card .detail-name{font-size:var(--roxy-text-lg)}.family-chip{color:var(--roxy-fg)}.quality-chip,.present-badge{font-weight:var(--roxy-weight-bold)}.detail-card.absent,.detail-card.outranked{color:var(--roxy-secondary)}.group-stack,.group,.detail-grid{gap:var(--roxy-space-sm);display:grid}.group-stack{gap:var(--roxy-space-md)}.group-summary{align-items:baseline;gap:var(--roxy-space-sm);color:var(--roxy-secondary);list-style:none;display:flex}.group-summary:before,.detail-card details>summary:before{content:"+";font-size:var(--roxy-text-base);line-height:1}.group-summary:before{color:var(--roxy-accent-ink)}.group[open]>.group-summary:before,.detail-card details[open]>summary:before{content:"-"}.group-label{font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-bold)}.group-count{font-size:var(--roxy-text-xs);font-variant-numeric:tabular-nums}.group-note,.evidence{color:var(--roxy-muted);font-size:var(--roxy-text-xs)}.description{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.detail-card details{font-size:var(--roxy-text-sm)}.detail-card details>summary{align-items:center;gap:var(--roxy-space-xs);padding-block:var(--roxy-space-xs);color:var(--roxy-accent-ink);list-style:none;display:flex}.result-body{color:var(--roxy-fg);padding-block-start:var(--roxy-space-xs)}`],y([I()],Mt.prototype,"filter",2),Mt=y([L("roxy-yoga-list")],Mt);var _n={"secret-friend":"Secret friend",trine:"Trine",same:"Same",neutral:"Neutral",harm:"Harm",clash:"Clash"},Yp={excellent:"Excellent",strong:"Strong",workable:"Workable",challenging:"Challenging",difficult:"Difficult"},Nt=class extends f{constructor(){super(...arguments);this.mode="sign"}renderData(e){if(this.mode==="compatibility"&&"signs"in e)return this.renderCompatibility(e);let t="animal"in e&&e.animal?e.animal:e,r=this.effectiveLang(),i="energyRating"in e&&typeof e.energyRating=="number"?e.energyRating:null,l="date"in e&&e.date?A(r,e.date):"";return s`<article class="card" part="card" aria-labelledby="zodiac-title"><header class="head" part="header"><span class="hanzi" lang="zh">${t.chinese??""}</span><div><h2 class="title" id="zodiac-title">${x(t,"name")}</h2><div class="sub">${t.pinyin??""}${l?` ${l}`:""}</div></div>${i!==null?s`<span class="energy" part="details" aria-label="${this.t("Energy {{value}} of 10",{value:i})}">${this.t("Energy {{value}}/10",{value:N(r,i)})} <span class="energy-bar"><span style="width:${i/10*100}%"></span></span></span>`:o}</header>${this.renderIdentity(e,t)} ${this.renderDaily(e)} ${this.renderReference(e)} ${"interpretation"in e&&e.interpretation&&!this.hideReadings?s`<p class="prose" part="section interpretation">${e.interpretation}</p>`:o} ${"conventions"in e?Kt(e.conventions,this.translator,this.effectiveLang()):o}</article>`}renderIdentity(e,t){let r="yearPillar"in e&&e.yearPillar||"dayPillar"in e&&e.dayPillar||null,i="hours"in e?e.hours:void 0,l="element"in e&&typeof e.element=="string"?e:void 0,c=l?x(l,"element"):x(t,"element"),d=Se(l?.element??t.element),p="polarity"in e&&typeof e.polarity=="string"&&e.polarity||t.polarity||"";return!c&&!p&&!r&&!i&&!t.branch?o:s`<div class="facts" part="details">${c?s`<span><span class="roxy-label">${this.t("Element")}</span><b class="element-word ${d}">${c}</b></span>`:o} ${p?s`<span><span class="roxy-label">${this.t("Polarity")}</span>${p}</span>`:o} ${t.branch?s`<span><span class="roxy-label">${this.t("Branch")}</span>${t.branch}</span>`:o} ${r?s`<span><span class="roxy-label">${this.t("Pillar")}</span> <b>${r.stem??""}</b> ${r.branch??""}</span>`:o} ${i&&typeof i.start=="number"?s`<span><span class="roxy-label">${this.t("Hours")}</span>${this.t("{{start}} to {{end}}",{start:this.hourLabel(i.start),end:this.hourLabel(i.end)})}</span>`:o}</div>`}hourLabel(e){return typeof e=="number"?`${String(e).padStart(2,"0")}:00`:""}renderDaily(e){if(!("relationship"in e)||!("overview"in e))return o;let t="year"in e?e.year:void 0,r="benMingNian"in e?e.benMingNian:false;return s`${s`<div class="facts" part="details"><span><span class="roxy-label">${this.t("Day")}</span><b>${e.relationship&&_n[e.relationship]?this.t(_n[e.relationship]):e.relationship??""}</b></span> ${t?s`<span><span class="roxy-label">${this.t("Year")}</span>${t.pillar??""} ${x(t,"animal")} ${t.relationship&&_n[t.relationship]?this.t(_n[t.relationship]):t.relationship??""}</span>`:o} ${r?s`<span class="roxy-chip tag">${this.t("Ben Ming Nian")}</span>`:o}</div>`} ${this.hideReadings?o:s`${e.overview?s`<p class="prose" part="section overview">${e.overview}</p>`:o}<div class="sections" part="section outlook">${"love"in e&&e.love?s`<div class="section"><h3 class="block-title">${this.t("Love")}</h3><p>${e.love}</p></div>`:o} ${"career"in e&&e.career?s`<div class="section"><h3 class="block-title">${this.t("Career")}</h3><p>${e.career}</p></div>`:o} ${"advice"in e&&e.advice?s`<div class="section"><h3 class="block-title">${this.t("Advice")}</h3><p>${e.advice}</p></div>`:o}</div>`} ${t?.note&&!this.hideReadings?s`<p class="prose" part="reading">${t.note}</p>`:o}`}renderReference(e){if(!("trine"in e)&&!("secretFriend"in e))return o;let t=e;return s`${t.trine?s`<section part="section trine"><h3 class="block-title">${this.t("Trine")} ${t.trine.number??""}</h3><div class="facts"><span><b lang="zh">${t.trine.chinese??""}</b> <span class="element-word ${Se(t.trine.element)}">${x(t.trine,"element")}</span></span> ${t.trine.members?.length?s`<span class="roxy-chips">${t.trine.members.map(r=>s`<span class="roxy-chip">${r}</span>`)}</span>`:o} ${t.trine.theme?s`<span>${t.trine.theme}</span>`:o}</div></section>`:o} ${this.renderPartners(t)} ${this.hideReadings?o:s`${t.summary?s`<p class="prose" part="section summary">${t.summary}</p>`:o} ${t.traits?.length?s`<section part="section traits"><h3 class="block-title">${this.t("Traits")}</h3><ul class="roxy-chips">${t.traits.map(r=>s`<li>${r}</li>`)}</ul></section>`:o} ${this.bullets(this.t("Strengths"),t.strengths)} ${this.bullets(this.t("Weaknesses"),t.weaknesses)} ${t.compatibilitySummary?s`<p class="prose" part="reading">${t.compatibilitySummary}</p>`:o}`}`}renderPartners(e){let r=[["Secret friend",e.secretFriend],["Clash",e.clashPartner],["Harm",e.harmPartner]].filter(([,i])=>i?.name);return r.length===0?o:s`<section part="section partners"><div class="partners">${r.map(([i,l])=>s`<div class="partner"><span class="role roxy-label">${this.t(i)}</span> <span class="glyph" lang="zh">${l?.chinese??""}</span> <span class="who">${x(l,"name")}</span></div>`)}</div></section>`}bullets(e,t){return t?.length?s`<section part="section list"><h3 class="block-title">${e}</h3><ul class="bullets">${t.map(r=>s`<li>${r}</li>`)}</ul></section>`:o}renderCompatibility(e){let t=e.signs?.first,r=e.signs?.second,i=typeof e.score=="number"?e.score:null;return s`<article class="card" part="card" aria-labelledby="zodiac-title"><header class="head" part="header"><div class="pair"><span class="side"><span class="hanzi" lang="zh">${t?.chinese??""}</span> <span class="sub">${x(t,"name")}</span></span> <span class="side"><span class="hanzi" lang="zh">${r?.chinese??""}</span> <span class="sub">${x(r,"name")}</span></span></div></header><h2 class="title" id="zodiac-title">${x(e,"relationshipName")} <span lang="zh">${e.relationshipChinese??""}</span></h2>${i!==null?s`<div class="score" part="details"><span class="score-value">${i}</span> <span class="score-track"><span class="score-fill" style="width:${Math.max(0,Math.min(100,i))}%"></span></span> ${e.verdict?s`<span class="roxy-chip tag">${Yp[e.verdict]?this.t(Yp[e.verdict]):e.verdict}</span>`:o}</div>`:o} ${e.sharedElement?s`<div class="facts" part="details"><span><span class="roxy-label">${this.t("Shared element")}</span><b class="element-word ${Se(e.sharedElement)}">${x(e,"sharedElement")}</b></span></div>`:o} ${this.hideReadings?o:s`${e.summary?s`<p class="prose" part="section summary">${e.summary}</p>`:o} ${this.bullets(this.t("Strengths"),e.strengths)} ${this.bullets(this.t("Frictions"),e.frictions)} ${e.advice?s`<p class="prose" part="reading">${e.advice}</p>`:o}`}</article>`}};Nt.endpoints=Ul,Nt.styles=[v,B,We,u`.card{gap:var(--roxy-space-md);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}.hanzi{font-size:calc(var(--roxy-text-base) * 2.75);color:var(--roxy-accent-ink);line-height:1}.title,.block-title{margin:0}.title{font-size:var(--roxy-text-xl)}.block-title{margin-block-end:var(--roxy-space-sm)}.sub{color:var(--roxy-muted);font-size:var(--roxy-text-sm)}.energy{color:var(--roxy-secondary);font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums;margin-inline-start:auto}.energy-bar,.score-track{background:var(--roxy-border);border-radius:var(--roxy-radius-full);overflow:hidden}.energy-bar{block-size:.25lh;inline-size:12ch;vertical-align:middle;margin-inline-start:var(--roxy-space-xs);display:inline-block}.energy-bar>span,.score-fill{background:var(--roxy-accent);height:100%;display:block}.facts{gap:var(--roxy-space-xs) var(--roxy-space-md);border-block-start:1px solid var(--roxy-border);color:var(--roxy-secondary);font-size:var(--roxy-text-sm);flex-wrap:wrap;padding-block-start:var(--roxy-space-md);display:flex}.facts .roxy-label{margin-inline-end:var(--roxy-space-xs)}.facts b{color:var(--roxy-fg)}.prose{margin:0}.prose[part~=reading]{padding-block-start:var(--roxy-space-md)}section .facts{border-block-start:0;padding-block-start:0}.sections{gap:var(--roxy-space-md);grid-template-columns:repeat(auto-fit,minmax(min(100%,24ch),1fr));display:grid}.section p{font-size:var(--roxy-text-sm);margin:0}.bullets{font-size:var(--roxy-text-sm);margin:0;padding-inline-start:var(--roxy-space-lg)}.partners{gap:var(--roxy-space-sm);grid-template-columns:repeat(auto-fit,minmax(16ch,1fr));display:grid}.partner,.pair .side{gap:calc(var(--roxy-space-unit) / 2);text-align:center;display:grid}.partner .glyph{font-size:calc(var(--roxy-text-base) * 1.5);line-height:var(--roxy-leading-tight);color:var(--roxy-accent-ink)}.partner .who{font-size:var(--roxy-text-sm)}.score{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;display:flex}.score-value{font-size:calc(var(--roxy-text-base) * 2);font-weight:var(--roxy-weight-bold);font-variant-numeric:tabular-nums;line-height:1}.score-track{flex:1;block-size:.35lh;min-inline-size:16ch}.tag{color:var(--roxy-info-fg)}.pair{justify-content:center;align-items:center;gap:var(--roxy-space-md);flex-wrap:wrap;display:flex}`],y([k({type:String,reflect:true})],Nt.prototype,"mode",2),Nt=y([L("roxy-zodiac-card")],Nt);var Wp={post_astrology_natal_chart:{tag:"roxy-natal-chart",pascal:"RoxyNatalChart",operationId:"generateNatalChart"},post_astrology_synastry:{tag:"roxy-synastry-chart",pascal:"RoxySynastryChart",operationId:"calculateSynastry"},post_astrology_transits:{tag:"roxy-transits-table",pascal:"RoxyTransitsTable",operationId:"calculateTransits"},post_astrology_transit_aspects:{tag:"roxy-transit-wheel",pascal:"RoxyTransitWheel",operationId:"calculateTransitAspects"},post_astrology_aspects:{tag:"roxy-aspects-table",pascal:"RoxyAspectsTable",operationId:"calculateAspects"},post_astrology_aspect_patterns:{tag:"roxy-aspects-table",pascal:"RoxyAspectsTable",operationId:"detectAspectPatterns"},get_astrology_moon_phase_current:{tag:"roxy-moon-phase",pascal:"RoxyMoonPhase",operationId:"getCurrentMoonPhase",attrs:{mode:"current"}},get_astrology_moon_phase_upcoming:{tag:"roxy-moon-phase",pascal:"RoxyMoonPhase",operationId:"getUpcomingMoonPhases",attrs:{mode:"upcoming"}},get_astrology_moon_phase_calendar_year_month:{tag:"roxy-moon-phase",pascal:"RoxyMoonPhase",operationId:"getMoonCalendar",attrs:{mode:"calendar"}},get_astrology_horoscope_sign_daily:{tag:"roxy-horoscope-card",pascal:"RoxyHoroscopeCard",operationId:"getDailyHoroscope",attrs:{period:"daily"}},get_astrology_horoscope_sign_weekly:{tag:"roxy-horoscope-card",pascal:"RoxyHoroscopeCard",operationId:"getWeeklyHoroscope",attrs:{period:"weekly"}},get_astrology_horoscope_sign_monthly:{tag:"roxy-horoscope-card",pascal:"RoxyHoroscopeCard",operationId:"getMonthlyHoroscope",attrs:{period:"monthly"}},get_astrology_horoscope_sign_yearly:{tag:"roxy-horoscope-card",pascal:"RoxyHoroscopeCard",operationId:"getYearlyHoroscope",attrs:{period:"yearly"}},post_astrology_astrocartography:{tag:"roxy-astrocartography-map",pascal:"RoxyAstrocartographyMap",operationId:"generateAstrocartography"},post_astrology_local_space:{tag:"roxy-local-space-compass",pascal:"RoxyLocalSpaceCompass",operationId:"generateLocalSpace"},post_astrology_relocation_chart:{tag:"roxy-relocation-wheel",pascal:"RoxyRelocationWheel",operationId:"generateRelocationChart"},post_astrology_asteroids:{tag:"roxy-positions-table",pascal:"RoxyPositionsTable",operationId:"generateAsteroids"},post_astrology_lilith:{tag:"roxy-positions-table",pascal:"RoxyPositionsTable",operationId:"generateLilith"},post_astrology_progressions:{tag:"roxy-positions-table",pascal:"RoxyPositionsTable",operationId:"generateProgressions"},post_astrology_solar_arc:{tag:"roxy-positions-table",pascal:"RoxyPositionsTable",operationId:"generateSolarArc"},post_astrology_arabic_lots:{tag:"roxy-positions-table",pascal:"RoxyPositionsTable",operationId:"calculateArabicLots"},post_astrology_planets_monthly:{tag:"roxy-ephemeris-table",pascal:"RoxyEphemerisTable",operationId:"getMonthlyTropicalEphemeris"},post_vedic_astrology_planetary_positions_monthly:{tag:"roxy-ephemeris-table",pascal:"RoxyEphemerisTable",operationId:"getMonthlyEphemeris"},post_astrology_fixed_stars:{tag:"roxy-fixed-stars",pascal:"RoxyFixedStars",operationId:"generateFixedStars"},post_astrology_profections:{tag:"roxy-profection-card",pascal:"RoxyProfectionCard",operationId:"generateProfections"},post_astrology_compatibility_score:{tag:"roxy-compatibility-card",pascal:"RoxyCompatibilityCard",operationId:"calculateCompatibility",attrs:{mode:"astrology"}},post_numerology_compatibility:{tag:"roxy-compatibility-card",pascal:"RoxyCompatibilityCard",operationId:"calculateNumCompatibility",attrs:{mode:"numerology"}},post_biorhythm_compatibility:{tag:"roxy-compatibility-card",pascal:"RoxyCompatibilityCard",operationId:"calculateBioCompatibility",attrs:{mode:"biorhythm"}},post_vedic_astrology_birth_chart:{tag:"roxy-vedic-kundli",pascal:"RoxyVedicKundli",operationId:"generateBirthChart"},post_vedic_astrology_divisional_chart:{tag:"roxy-divisional-chart",pascal:"RoxyDivisionalChart",operationId:"generateDivisionalChart"},post_vedic_astrology_navamsa:{tag:"roxy-divisional-chart",pascal:"RoxyDivisionalChart",operationId:"generateNavamsa"},post_vedic_astrology_kp_chart:{tag:"roxy-kp-chart",pascal:"RoxyKpChart",operationId:"generateKpChart"},post_vedic_astrology_kp_planets:{tag:"roxy-kp-planets-table",pascal:"RoxyKpPlanetsTable",operationId:"getKpPlanets"},post_vedic_astrology_kp_ruling_planets:{tag:"roxy-kp-ruling-planets",pascal:"RoxyKpRulingPlanets",operationId:"getKpRulingPlanets"},post_vedic_astrology_ashtakavarga:{tag:"roxy-ashtakavarga-grid",pascal:"RoxyAshtakavargaGrid",operationId:"calculateAshtakavarga"},post_vedic_astrology_shadbala:{tag:"roxy-shadbala-table",pascal:"RoxyShadbalaTable",operationId:"calculateShadbala"},post_vedic_astrology_dasha_major:{tag:"roxy-dasha-timeline",pascal:"RoxyDashaTimeline",operationId:"getMajorDashas",attrs:{period:"major"}},post_vedic_astrology_dasha_current:{tag:"roxy-dasha-timeline",pascal:"RoxyDashaTimeline",operationId:"getCurrentDasha",attrs:{period:"current"}},post_vedic_astrology_dasha_sub_mahadasha:{tag:"roxy-dasha-timeline",pascal:"RoxyDashaTimeline",operationId:"getSubDashas",attrs:{period:"sub"}},post_vedic_astrology_dasha_sub_mahadasha_antardasha:{tag:"roxy-dasha-timeline",pascal:"RoxyDashaTimeline",operationId:"getPratyantardashas",attrs:{period:"antara"}},post_vedic_astrology_dasha_sub_mahadasha_antardasha_pratyantardasha:{tag:"roxy-dasha-timeline",pascal:"RoxyDashaTimeline",operationId:"getSookshmaDashas",attrs:{period:"sookshma"}},post_vedic_astrology_dasha_sub_mahadasha_antardasha_pratyantardasha_sookshma:{tag:"roxy-dasha-timeline",pascal:"RoxyDashaTimeline",operationId:"getPranaDashas",attrs:{period:"prana"}},post_vedic_astrology_compatibility:{tag:"roxy-guna-milan",pascal:"RoxyGunaMilan",operationId:"calculateGunMilan"},post_vedic_astrology_panchang_detailed:{tag:"roxy-panchang-table",pascal:"RoxyPanchangTable",operationId:"getDetailedPanchang",attrs:{detail:"detailed"}},post_vedic_astrology_panchang_basic:{tag:"roxy-panchang-table",pascal:"RoxyPanchangTable",operationId:"getBasicPanchang",attrs:{detail:"basic"}},post_vedic_astrology_aspects:{tag:"roxy-vedic-aspects",pascal:"RoxyVedicAspects",operationId:"calculateDrishti"},post_vedic_astrology_panchang_hora:{tag:"roxy-hora-table",pascal:"RoxyHoraTable",operationId:"getHora"},post_vedic_astrology_panchang_choghadiya:{tag:"roxy-choghadiya-grid",pascal:"RoxyChoghadiyaGrid",operationId:"getChoghadiya"},post_vedic_astrology_heliacal:{tag:"roxy-heliacal-table",pascal:"RoxyHeliacalTable",operationId:"getHeliacalVisibility"},post_vedic_astrology_daily:{tag:"roxy-vedic-daily",pascal:"RoxyVedicDaily",operationId:"getVedicDailyReading"},post_vedic_astrology_kp_daily_finance:{tag:"roxy-kp-finance-card",pascal:"RoxyKpFinanceCard",operationId:"getKpDailyFinance"},post_vedic_astrology_transit:{tag:"roxy-gochara-table",pascal:"RoxyGocharaTable",operationId:"calculateTransit"},post_vedic_astrology_bhava_bala:{tag:"roxy-bhava-bala-table",pascal:"RoxyBhavaBalaTable",operationId:"calculateBhavaBala"},post_vedic_astrology_bhav_chalit:{tag:"roxy-bhav-chalit-table",pascal:"RoxyBhavChalitTable",operationId:"calculateBhavChalit"},post_vedic_astrology_upagraha:{tag:"roxy-upagraha-table",pascal:"RoxyUpagrahaTable",operationId:"getUpagrahaPositions"},post_vedic_astrology_chara_karakas:{tag:"roxy-chara-karakas",pascal:"RoxyCharaKarakas",operationId:"calculateCharaKarakas"},post_vedic_astrology_arudha:{tag:"roxy-arudha-padas",pascal:"RoxyArudhaPadas",operationId:"calculateArudhaPadas"},get_vedic_astrology_yoga:{tag:"roxy-yoga-list",pascal:"RoxyYogaList",operationId:"listYogas"},post_vedic_astrology_yoga_detect:{tag:"roxy-yoga-list",pascal:"RoxyYogaList",operationId:"detectYogas"},get_vedic_astrology_yoga_id:{tag:"roxy-yoga-list",pascal:"RoxyYogaList",operationId:"getYoga"},get_vedic_astrology_nakshatras_id:{tag:"roxy-nakshatra-card",pascal:"RoxyNakshatraCard",operationId:"getNakshatra"},post_vedic_astrology_dosha_manglik:{tag:"roxy-dosha-card",pascal:"RoxyDoshaCard",operationId:"checkManglikDosha",attrs:{type:"manglik"}},post_vedic_astrology_dosha_kalsarpa:{tag:"roxy-dosha-card",pascal:"RoxyDoshaCard",operationId:"checkKalsarpaDosha",attrs:{type:"kalsarpa"}},post_vedic_astrology_dosha_sadhesati:{tag:"roxy-dosha-card",pascal:"RoxyDoshaCard",operationId:"checkSadhesati",attrs:{type:"sadhesati"}},post_numerology_life_path:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculateLifePath",attrs:{type:"life-path"}},post_numerology_expression:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculateExpression",attrs:{type:"expression"}},post_numerology_soul_urge:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculateSoulUrge",attrs:{type:"soul-urge"}},post_numerology_personality:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculatePersonality",attrs:{type:"personality"}},post_numerology_birth_day:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculateBirthDay",attrs:{type:"birth-day"}},post_numerology_maturity:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculateMaturity",attrs:{type:"maturity"}},post_numerology_daily:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"getDailyNumber",attrs:{type:"daily"}},post_numerology_personal_day:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculatePersonalDay",attrs:{type:"personal-day"}},post_numerology_personal_month:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculatePersonalMonth",attrs:{type:"personal-month"}},post_numerology_personal_year:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"calculatePersonalYear",attrs:{type:"personal-year"}},post_numerology_chart:{tag:"roxy-numerology-card",pascal:"RoxyNumerologyCard",operationId:"generateNumerologyChart",attrs:{type:"chart"}},get_numerology_compound_number:{tag:"roxy-compound-number",pascal:"RoxyCompoundNumber",operationId:"getCompoundNumber"},post_kabbalah_gematria:{tag:"roxy-gematria",pascal:"RoxyGematria",operationId:"calculateGematria"},post_tarot_daily:{tag:"roxy-tarot-card",pascal:"RoxyTarotCard",operationId:"getDailyCard"},get_tarot_cards_id:{tag:"roxy-tarot-card",pascal:"RoxyTarotCard",operationId:"getCard"},get_tarot_cards:{tag:"roxy-tarot-catalog",pascal:"RoxyTarotCatalog",operationId:"listCards"},post_tarot_spreads_three_card:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"castThreeCard",attrs:{spread:"three-card"}},post_tarot_spreads_celtic_cross:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"castCelticCross",attrs:{spread:"celtic-cross"}},post_tarot_spreads_love:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"castLoveSpread",attrs:{spread:"love"}},post_tarot_spreads_career:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"castCareerSpread",attrs:{spread:"career"}},post_tarot_spreads_custom:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"castCustomSpread",attrs:{spread:"custom"}},post_tarot_yes_no:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"castYesNo",attrs:{spread:"yes-no"}},post_tarot_draw:{tag:"roxy-tarot-spread",pascal:"RoxyTarotSpread",operationId:"drawCards",attrs:{spread:"draw"}},post_human_design_bodygraph:{tag:"roxy-bodygraph",pascal:"RoxyBodygraph",operationId:"generateBodygraph"},post_human_design_type:{tag:"roxy-hd-type-card",pascal:"RoxyHdTypeCard",operationId:"calculateType"},post_human_design_profile:{tag:"roxy-hd-type-card",pascal:"RoxyHdTypeCard",operationId:"calculateProfile"},post_human_design_connection:{tag:"roxy-hd-connection",pascal:"RoxyHdConnection",operationId:"calculateConnection"},post_human_design_penta:{tag:"roxy-hd-penta",pascal:"RoxyHdPenta",operationId:"calculatePenta"},post_human_design_variables:{tag:"roxy-hd-variables",pascal:"RoxyHdVariables",operationId:"calculateVariables"},post_forecast_timeline:{tag:"roxy-forecast-timeline",pascal:"RoxyForecastTimeline",operationId:"generateTimeline"},post_forecast_significant_dates:{tag:"roxy-forecast-timeline",pascal:"RoxyForecastTimeline",operationId:"findSignificantDates"},post_forecast_transits:{tag:"roxy-forecast-timeline",pascal:"RoxyForecastTimeline",operationId:"forecastTransits"},post_forecast_digest:{tag:"roxy-forecast-digest",pascal:"RoxyForecastDigest",operationId:"generateDigest"},post_chinese_astrology_bazi_chart:{tag:"roxy-bazi-chart",pascal:"RoxyBaziChart",operationId:"generateBaziChart"},post_chinese_astrology_bazi_luck_pillars:{tag:"roxy-luck-pillars",pascal:"RoxyLuckPillars",operationId:"calculateLuckPillars"},post_chinese_astrology_zodiac_sign:{tag:"roxy-zodiac-card",pascal:"RoxyZodiacCard",operationId:"calculateZodiacAnimal",attrs:{mode:"sign"}},get_chinese_astrology_zodiac_animals_id:{tag:"roxy-zodiac-card",pascal:"RoxyZodiacCard",operationId:"getZodiacAnimal",attrs:{mode:"animal"}},get_chinese_astrology_zodiac_id_daily:{tag:"roxy-zodiac-card",pascal:"RoxyZodiacCard",operationId:"getDailyZodiacReading",attrs:{mode:"daily"}},get_chinese_astrology_zodiac_compatibility_sign1_sign2:{tag:"roxy-zodiac-card",pascal:"RoxyZodiacCard",operationId:"getZodiacCompatibility",attrs:{mode:"compatibility"}},get_chinese_astrology_calendar_day_date:{tag:"roxy-almanac-day",pascal:"RoxyAlmanacDay",operationId:"getAlmanacDay",attrs:{mode:"day"}},get_chinese_astrology_calendar_monthly:{tag:"roxy-almanac-day",pascal:"RoxyAlmanacDay",operationId:"getMonthlyAlmanac",attrs:{mode:"month"}},post_chinese_astrology_calendar_auspicious_days:{tag:"roxy-almanac-day",pascal:"RoxyAlmanacDay",operationId:"lookupAuspiciousDays",attrs:{mode:"auspicious"}},post_feng_shui_flying_stars_natal:{tag:"roxy-flying-star-chart",pascal:"RoxyFlyingStarChart",operationId:"generateFlyingStarChart",attrs:{mode:"natal"}},get_feng_shui_flying_stars_annual_year:{tag:"roxy-flying-star-chart",pascal:"RoxyFlyingStarChart",operationId:"getAnnualFlyingStars",attrs:{mode:"annual"}},post_feng_shui_kua:{tag:"roxy-kua-card",pascal:"RoxyKuaCard",operationId:"calculateKuaNumber",attrs:{mode:"kua"}},post_feng_shui_eight_mansions:{tag:"roxy-kua-card",pascal:"RoxyKuaCard",operationId:"generateEightMansions",attrs:{mode:"mansions"}},post_mesoamerican_astrology_mayan_tzolkin:{tag:"roxy-mayan-day-sign",pascal:"RoxyMayanDaySign",operationId:"calculateTzolkin",attrs:{mode:"day"}},post_mesoamerican_astrology_mayan_chart:{tag:"roxy-mayan-day-sign",pascal:"RoxyMayanDaySign",operationId:"generateMayanChart",attrs:{mode:"chart"}},post_vastu_mandala:{tag:"roxy-vastu-mandala",pascal:"RoxyVastuMandala",operationId:"generateMandala",attrs:{mode:"mandala"}},post_vastu_entrance:{tag:"roxy-vastu-mandala",pascal:"RoxyVastuMandala",operationId:"calculateEntrancePada",attrs:{mode:"entrance"}},post_biorhythm_daily:{tag:"roxy-biorhythm-chart",pascal:"RoxyBiorhythmChart",operationId:"getDailyBiorhythm",attrs:{mode:"daily"}},post_biorhythm_forecast:{tag:"roxy-biorhythm-chart",pascal:"RoxyBiorhythmChart",operationId:"getForecast",attrs:{mode:"forecast"}},post_biorhythm_critical_days:{tag:"roxy-biorhythm-chart",pascal:"RoxyBiorhythmChart",operationId:"getCriticalDays",attrs:{mode:"critical-days"}},post_ayurveda_constitution:{tag:"roxy-dosha-constitution",pascal:"RoxyDoshaConstitution",operationId:"calculateAyurvedicConstitution"},get_iching_hexagrams_random:{tag:"roxy-hexagram",pascal:"RoxyHexagram",operationId:"getRandomHexagram"},get_iching_hexagrams_number:{tag:"roxy-hexagram",pascal:"RoxyHexagram",operationId:"getHexagram"},get_iching_hexagrams_lookup:{tag:"roxy-hexagram",pascal:"RoxyHexagram",operationId:"lookupHexagram"},get_iching_cast:{tag:"roxy-hexagram",pascal:"RoxyHexagram",operationId:"castReading"},post_iching_daily:{tag:"roxy-hexagram",pascal:"RoxyHexagram",operationId:"getDailyHexagram"},post_iching_daily_cast:{tag:"roxy-hexagram",pascal:"RoxyHexagram",operationId:"castDailyReading"},get_crystals_id:{tag:"roxy-crystal-card",pascal:"RoxyCrystalCard",operationId:"getCrystal"},get_crystals:{tag:"roxy-crystal-grid",pascal:"RoxyCrystalGrid",operationId:"listCrystals"},get_crystals_chakra:{tag:"roxy-crystal-grid",pascal:"RoxyCrystalGrid",operationId:"getCrystalsByChakra"},get_crystals_element:{tag:"roxy-crystal-grid",pascal:"RoxyCrystalGrid",operationId:"getCrystalsByElement"},get_crystals_zodiac_sign:{tag:"roxy-crystal-grid",pascal:"RoxyCrystalGrid",operationId:"getCrystalsByZodiac"},get_crystals_birthstone_month:{tag:"roxy-crystal-grid",pascal:"RoxyCrystalGrid",operationId:"getBirthstones"},get_crystals_search:{tag:"roxy-crystal-grid",pascal:"RoxyCrystalGrid",operationId:"searchCrystals"},get_dreams_symbols_id:{tag:"roxy-dream-card",pascal:"RoxyDreamCard",operationId:"getDreamSymbol"},get_dreams_symbols:{tag:"roxy-dream-search",pascal:"RoxyDreamSearch",operationId:"searchDreamSymbols"},get_angel_numbers_number:{tag:"roxy-angel-number-card",pascal:"RoxyAngelNumberCard",operationId:"getAngelNumber"},post_angel_numbers_daily:{tag:"roxy-angel-number-card",pascal:"RoxyAngelNumberCard",operationId:"getDailyAngelNumber"},get_angel_numbers_lookup:{tag:"roxy-angel-number-lookup",pascal:"RoxyAngelNumberLookup",operationId:"analyzeNumberSequence"},post_reports_natal:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateNatalReport",attrs:{report:"natal"}},post_reports_synastry:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateSynastryReport",attrs:{report:"synastry"}},post_reports_kundli:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateKundliReport",attrs:{report:"kundli"}},post_reports_matchmaking:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateMatchmakingReport",attrs:{report:"matchmaking"}},post_reports_yearly_forecast:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateYearlyForecastReport",attrs:{report:"yearly-forecast"}},post_reports_human_design:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateHumanDesignReport",attrs:{report:"human-design"}},post_reports_bazi:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateBaziReport",attrs:{report:"bazi"}},post_reports_numerology:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateNumerologyReport",attrs:{report:"numerology"}},post_reports_tarot:{tag:"roxy-report",pascal:"RoxyReport",operationId:"generateTarotReport",attrs:{report:"tarot"}},get_astrology_signs_id:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getZodiacSign"},get_astrology_planet_meanings_id:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getPlanetMeaning"},get_vedic_astrology_rashis_id:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getRashi"},get_iching_trigrams_id:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getTrigram"},get_human_design_gates_number:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getGate"},get_human_design_centers_id:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getCenter"},get_numerology_meanings_number:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getNumberMeaning"},get_vedic_astrology_avasthas_id:{tag:"roxy-reference-card",pascal:"RoxyReferenceCard",operationId:"getAvastha"}};function so(n){let a=n.lastIndexOf(":"),e=a===-1?n:n.slice(a+1),t=Wp[e];return t?{...t,toolName:e}:void 0}var Mn=[{pascal:"RoxyNatalChart",tag:"roxy-natal-chart",slug:"natal-chart",heading:"Natal chart",description:"Western natal chart wheel for /astrology/natal-chart responses",docsLabel:"Western",endpointLabel:"POST /astrology/natal-chart",docsSummary:"Natal chart wheel with planet glyphs and aspect lines",topic:"Astrology"},{pascal:"RoxySynastryChart",tag:"roxy-synastry-chart",slug:"synastry-chart",heading:"Synastry",description:"Dual-wheel synastry chart with inter-aspects table",docsLabel:"Western",endpointLabel:"POST /astrology/synastry",docsSummary:"Dual-wheel synastry with inter-aspects table",topic:"Astrology"},{pascal:"RoxyWesternPlanetsTable",tag:"roxy-western-planets-table",slug:"western-planets-table",heading:"Western planets",description:"Western planetary positions table with sign, degree, house, and motion plus the chart angles",docsLabel:"Western",endpointLabel:"POST /astrology/natal-chart",docsSummary:"Sign, degree, house, motion columns plus ASC, MC, PoF, Vertex",topic:"Astrology"},{pascal:"RoxyTransitsTable",tag:"roxy-transits-table",slug:"transits-table",heading:"Transits",description:"Live planet positions plus aspects to a natal chart",docsLabel:"Western",endpointLabel:"POST /astrology/transits",docsSummary:"Transit planet positions plus optional aspects to a natal chart",topic:"Astrology"},{pascal:"RoxyTransitWheel",tag:"roxy-transit-wheel",slug:"transit-wheel",heading:"Transit bi-wheel",description:"Natal and transit bi-wheel with an aspect line for every transit to the natal chart",docsLabel:"Western",endpointLabel:"POST /astrology/transit-aspects",docsSummary:"Natal chart on the inner ring, transiting bodies on the outer ring, aspect lines between them",topic:"Astrology"},{pascal:"RoxyAspectsTable",tag:"roxy-aspects-table",slug:"aspects-table",heading:"Aspects",description:"Natal and transit aspect grid with chart-pattern detection (grand trines, t-squares, stelliums, yods)",docsLabel:"Western",endpointLabel:"POST /astrology/aspects, /astrology/transit-aspects, /astrology/aspect-patterns",docsSummary:"Aspect rows coloured by nature with orb and strength, plus detected chart patterns",topic:"Astrology"},{pascal:"RoxyMoonPhase",tag:"roxy-moon-phase",slug:"moon-phase",heading:"Moon phase",description:"Moon phase card and calendar",docsLabel:"Western",endpointLabel:"GET /astrology/moon-phase/{current,upcoming,calendar/...}",docsSummary:"Moon phase card and calendar",topic:"Astrology"},{pascal:"RoxyHoroscopeCard",tag:"roxy-horoscope-card",slug:"horoscope-card",heading:"Horoscope",description:"Daily, weekly, monthly, or yearly horoscope card for /astrology/horoscope/..., with the column, the dated sky events behind it, and the yearly themes, key periods, eclipses, retrogrades and best months",docsLabel:"Western",endpointLabel:"GET /astrology/horoscope/{sign}/{daily,weekly,monthly,yearly}",docsSummary:"Daily, weekly, monthly, or yearly horoscope card",topic:"Astrology"},{pascal:"RoxyAstrocartographyMap",tag:"roxy-astrocartography-map",slug:"astrocartography-map",heading:"Astrocartography",description:"Astrocartography world map plotting each body Midheaven, IC, Ascendant, and Descendant relocation lines",docsLabel:"Western",endpointLabel:"POST /astrology/astrocartography",docsSummary:"World map of planetary MC, IC, Ascendant, and Descendant lines with per-line interpretations",topic:"Astrology"},{pascal:"RoxyLocalSpaceCompass",tag:"roxy-local-space-compass",slug:"local-space-compass",heading:"Local space",description:"Local space compass plotting each body direction from the birthplace by azimuth and altitude",docsLabel:"Western",endpointLabel:"POST /astrology/local-space",docsSummary:"Compass dial of planetary azimuth lines from the birthplace, dimmed below the horizon",topic:"Astrology"},{pascal:"RoxyRelocationWheel",tag:"roxy-relocation-wheel",slug:"relocation-wheel",heading:"Relocation chart",description:"Relocation chart wheel recomputing houses and angles for a new place, with the planets that change house",docsLabel:"Western",endpointLabel:"POST /astrology/relocation-chart",docsSummary:"Relocated chart wheel plus the move geometry, angular planets, and planets that change house",topic:"Astrology"},{pascal:"RoxyPositionsTable",tag:"roxy-positions-table",slug:"positions-table",heading:"Positions table",description:"Editorial positions table for asteroids, Black Moon Lilith, secondary progressions, solar arc directions, and the Arabic lots",docsLabel:"Western",endpointLabel:"POST /astrology/asteroids, /astrology/lilith, /astrology/progressions, /astrology/solar-arc, /astrology/arabic-lots",docsSummary:"Body, sign, degree, and per-shape columns (house, motion, formula, or natal arc) plus each reading",topic:"Astrology"},{pascal:"RoxyEphemerisTable",tag:"roxy-ephemeris-table",slug:"ephemeris-table",heading:"Ephemeris",description:"Monthly ephemeris: every body day by day, with each sign change and retrograde stretch called out",docsLabel:"Cross",endpointLabel:"POST /astrology/planets/monthly, /vedic-astrology/planetary-positions/monthly",docsSummary:"Per-body sign changes and retrograde windows for the month, over the full daily position grid",topic:"Astrology"},{pascal:"RoxyFixedStars",tag:"roxy-fixed-stars",slug:"fixed-stars",heading:"Fixed stars",description:"Fixed star conjunctions to the natal chart, tightest first, with the precessed star catalog",docsLabel:"Western",endpointLabel:"POST /astrology/fixed-stars",docsSummary:"Star to natal point conjunctions with readings, plus a catalog of position, magnitude, nature, and keywords",topic:"Astrology"},{pascal:"RoxyProfectionCard",tag:"roxy-profection-card",slug:"profection-card",heading:"Annual profection",description:"Annual profection card with the profected house and sign, the lord of the year, and its natal placement",docsLabel:"Western",endpointLabel:"POST /astrology/profections",docsSummary:"Profected house and sign for the year, the lord of the year, its natal placement, and the reading",topic:"Astrology"},{pascal:"RoxyCompatibilityCard",tag:"roxy-compatibility-card",slug:"compatibility-card",heading:"Compatibility score",description:"Cross-domain compatibility score card",docsLabel:"Cross",endpointLabel:"POST /astrology/compatibility-score, /numerology/compatibility, /biorhythm/compatibility",docsSummary:"Score card with category breakdown",topic:"Astrology"},{pascal:"RoxyVedicKundli",tag:"roxy-vedic-kundli",slug:"vedic-kundli",heading:"Vedic kundli",description:"South, North, or East Indian Vedic kundli for /vedic-astrology/birth-chart with per-planet degree and nakshatra detail, plus an optional Chandra Lagna (Moon-as-ascendant) reference view",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/birth-chart",docsSummary:"South, North, or East Indian kundli with degree detail and optional Chandra Lagna view",topic:"Vedic"},{pascal:"RoxyDivisionalChart",tag:"roxy-divisional-chart",slug:"divisional-chart",heading:"Divisional chart",description:"D2 to D60 varga chart wheel with Vargottama markers",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/{divisional-chart,navamsa}",docsSummary:"Generic divisional varga wheel from D2 Hora to D60 Shashtiamsa",topic:"Vedic"},{pascal:"RoxyKpChart",tag:"roxy-kp-chart",slug:"kp-chart",heading:"KP chart",description:"Full KP chart with Ascendant, Placidus cusps, and planets and nodes in tabbed stellar-hierarchy tables",docsLabel:"Vedic (KP)",endpointLabel:"POST /vedic-astrology/kp/chart",docsSummary:"Ascendant, cusps, planets and nodes with KP stellar hierarchy and house meanings",topic:"Vedic"},{pascal:"RoxyVedicPlanetsTable",tag:"roxy-vedic-planets-table",slug:"vedic-planets-table",heading:"Vedic planets",description:"Vedic planetary positions table with degree, nakshatra, pada, nakshatra lord, bhava, and all three avastha systems",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/birth-chart",docsSummary:"Degree, nakshatra, pada, lord, bhava, Baladi, Jagradadi and Deeptadi columns",topic:"Vedic"},{pascal:"RoxyKpPlanetsTable",tag:"roxy-kp-planets-table",slug:"kp-planets-table",heading:"KP planets",description:"KP planets table with sub-lord and sub-sub-lord columns",docsLabel:"Vedic (KP)",endpointLabel:"POST /vedic-astrology/kp/planets",docsSummary:"Sub-lord and sub-sub-lord columns",topic:"Vedic"},{pascal:"RoxyKpRulingPlanets",tag:"roxy-kp-ruling-planets",slug:"kp-ruling-planets",heading:"KP ruling planets",description:"KP ruling planets with day lord, Moon and Lagna stellar hierarchies, and house significators",docsLabel:"Vedic (KP)",endpointLabel:"POST /vedic-astrology/kp/ruling-planets",docsSummary:"Day lord, Moon/Lagna hierarchies, ruling planets, significators with house meanings",topic:"Vedic"},{pascal:"RoxyAshtakavargaGrid",tag:"roxy-ashtakavarga-grid",slug:"ashtakavarga-grid",heading:"Ashtakavarga",description:"Sarva and Bhinna ashtakavarga heatmap with bindu scores",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/ashtakavarga",docsSummary:"Sarva, Bhinna, and Shodhya Pinda views in a tabbed heatmap",topic:"Vedic"},{pascal:"RoxyShadbalaTable",tag:"roxy-shadbala-table",slug:"shadbala-table",heading:"Shadbala",description:"Six-fold planetary strength with adequacy badge per planet",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/shadbala",docsSummary:"Six-fold planetary strength bar plus rupas and adequacy badge",topic:"Vedic"},{pascal:"RoxyDashaTimeline",tag:"roxy-dasha-timeline",slug:"dasha-timeline",heading:"Vimshottari dasha",description:"Vimshottari dasha timeline, mahadasha through prana, with the active period highlighted",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/dasha/{current,major,sub/...}",docsSummary:"Vimshottari mahadasha, antardasha, pratyantardasha, sookshma and prana, drill-down at every level",topic:"Vedic"},{pascal:"RoxyGunaMilan",tag:"roxy-guna-milan",slug:"guna-milan",heading:"Guna milan",description:"36-point Ashtakoota matrimonial compatibility breakdown",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/compatibility",docsSummary:"36-point Ashtakoota with eight sub-scores",topic:"Vedic"},{pascal:"RoxyPanchangTable",tag:"roxy-panchang-table",slug:"panchang-table",heading:"Panchang",description:"Panchang muhurta table with auspicious and inauspicious periods",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/panchang/{basic,detailed}",docsSummary:"15+ muhurtas in detailed mode",topic:"Vedic"},{pascal:"RoxyVedicAspects",tag:"roxy-vedic-aspects",slug:"vedic-aspects",heading:"Vedic aspects",description:"Vedic graha drishti table: which planet aspects which, with mutual aspects surfaced first",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/aspects",docsSummary:"Graha drishti rows with aspect type, strength, and orb, plus mutual aspects",topic:"Vedic"},{pascal:"RoxyHoraTable",tag:"roxy-hora-table",slug:"hora-table",heading:"Hora",description:"Vedic Hora (planetary hours) table: 12 day and 12 night horas by ruling planet for electional timing",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/panchang/hora",docsSummary:"Day and night planetary hours with ruling planet and window",topic:"Vedic"},{pascal:"RoxyChoghadiyaGrid",tag:"roxy-choghadiya-grid",slug:"choghadiya-grid",heading:"Choghadiya",description:"Day and night Choghadiya muhurta tiles for activity timing",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/panchang/choghadiya",docsSummary:"Day and night Choghadiya muhurta tiles colored by effect",topic:"Vedic"},{pascal:"RoxyHeliacalTable",tag:"roxy-heliacal-table",slug:"heliacal-table",heading:"Heliacal rising and setting",description:"Whether each graha stands far enough from the Sun to be seen, with the date it next rises or sets",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/heliacal",docsSummary:"Udaya and asta windows for the six visible grahas, the calculation behind Guru Asta and Shukra Asta",topic:"Vedic"},{pascal:"RoxyVedicDaily",tag:"roxy-vedic-daily",slug:"vedic-daily",heading:"Vedic daily",description:"One native, one day: the verdict band, every graha state behind it, the Moon windows and the finance area",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/daily",docsSummary:"Composed Vedic daily reading with the classical rule behind every graha state, the Tara and Chandrabala windows in full, and all three sidereal frames named",topic:"Vedic"},{pascal:"RoxyKpFinanceCard",tag:"roxy-kp-finance-card",slug:"kp-finance-card",heading:"KP daily finance",description:"One native, one day scored for money: the band, the gain and loss significators, and the four sub lord layers behind the score",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/kp/daily-finance",docsSummary:"KP daily finance reading with the cusp sub lords, the running dasha lords, the ruling planets and the Moon sub lord windows each scored against the gain and loss houses, weighed into one band for the day",topic:"Vedic"},{pascal:"RoxyGocharaTable",tag:"roxy-gochara-table",slug:"gochara-table",heading:"Gochara transits",description:"Where each graha transits now, the natal house it falls in, and the Ashtakavarga-qualified kaksha verdict",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/transit",docsSummary:"Vedic gochara with aspects to the natal chart and the Gochara Kaksha reading drawn as a position within the sign",topic:"Vedic"},{pascal:"RoxyBhavaBalaTable",tag:"roxy-bhava-bala-table",slug:"bhava-bala-table",heading:"Bhava Bala",description:"The twelve houses ranked by strength, with the three classical components that make up each total",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/bhava-bala",docsSummary:"House strength in rupas and virupas, ranked, with Bhavadhipati, Dig and Drishti Bala shown as proportions of the total",topic:"Vedic"},{pascal:"RoxyBhavChalitTable",tag:"roxy-bhav-chalit-table",slug:"bhav-chalit-table",heading:"Bhav Chalit",description:"Which grahas change house once the bhavas are cut at their real cusps instead of at sign boundaries",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/bhav-chalit",docsSummary:"The Chalit chart against the Rashi chart, leading with how many grahas move and which, plus the unequal bhava spans",topic:"Vedic"},{pascal:"RoxyUpagrahaTable",tag:"roxy-upagraha-table",slug:"upagraha-table",heading:"Upagrahas",description:"The eleven upagrahas in their time-based and Sun-based groups, with rashi, degree, and nakshatra",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/upagraha",docsSummary:"Time-based and Sun-based upagrahas with rashi, degree, longitude and nakshatra",topic:"Vedic"},{pascal:"RoxyCharaKarakas",tag:"roxy-chara-karakas",slug:"chara-karakas",heading:"Chara karakas",description:"Jaimini chara karakas ranked Atmakaraka first, with the scheme that produced the ranking",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/chara-karakas",docsSummary:"Karaka offices in rank order with graha, degree, scheme, and what each is read for",topic:"Vedic"},{pascal:"RoxyArudhaPadas",tag:"roxy-arudha-padas",slug:"arudha-padas",heading:"Arudha padas",description:"The twelve Jaimini arudha padas with their derivation, the Arudha Lagna and the Upapada marked",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/arudha",docsSummary:"Twelve padas with bhava, lord, pada rashi, house from Lagna, and the classical exception marked",topic:"Vedic"},{pascal:"RoxyYogaList",tag:"roxy-yoga-list",slug:"yoga-list",heading:"Yoga catalog",description:"Yoga reference cards from the catalog with optional detail mode",docsLabel:"Vedic",endpointLabel:"GET /vedic-astrology/yoga, /vedic-astrology/yoga/{id}, POST /vedic-astrology/yoga/detect",docsSummary:"Filterable yoga cards from the 300 plus yoga catalog, grouped by verdict in detect mode",topic:"Vedic"},{pascal:"RoxyNakshatraCard",tag:"roxy-nakshatra-card",slug:"nakshatra-card",heading:"Nakshatra",description:"Nakshatra reference card with lord, deity, symbol, characteristics, and remedies",docsLabel:"Vedic",endpointLabel:"GET /vedic-astrology/nakshatras/{id}",docsSummary:"Lord, deity, symbol, characteristics, remedies",topic:"Vedic"},{pascal:"RoxyDoshaCard",tag:"roxy-dosha-card",slug:"dosha-card",heading:"Manglik dosha",description:"Manglik, Kaal Sarp, or Sade Sati presence card",docsLabel:"Vedic",endpointLabel:"POST /vedic-astrology/dosha/{manglik,kalsarpa,sadhesati}",docsSummary:"Presence, severity, remedies, scoped effects",topic:"Vedic"},{pascal:"RoxyNumerologyCard",tag:"roxy-numerology-card",slug:"numerology-card",heading:"Life path number",description:"Numerology card for life path, expression, soul urge, personality, personal year, or full chart",docsLabel:"Numerology",endpointLabel:"POST /numerology/{life-path,expression,soul-urge,personality,birth-day,maturity,daily,personal-day,personal-month,personal-year,chart}",docsSummary:"Life path, expression, soul urge, personality, personal year, full chart",topic:"Numerology"},{pascal:"RoxyCompoundNumber",tag:"roxy-compound-number",slug:"compound-number",heading:"Compound number",description:"Chaldean compound number card with the numeral, its symbolic name, root number, fortunate or unfortunate nature, the lower number it repeats, and the meaning",docsLabel:"Numerology",endpointLabel:"GET /numerology/compound-number/{number}",docsSummary:"Compound 10 to 52 with name, root, nature and meaning",topic:"Numerology"},{pascal:"RoxyGematria",tag:"roxy-gematria",slug:"gematria",heading:"Gematria",description:"Gematria calculator that shows its work: every Hebrew spelling the input can take, the value under each cipher with the ones that are not single valued, the per letter breakdown right to left, the two substitution ciphers, the Latin alphabet ciphers and the curated words of equal value",docsLabel:"Kabbalah",endpointLabel:"POST /kabbalah/gematria",docsSummary:"Values by cipher, every candidate Hebrew spelling with its per letter breakdown, and equal-value words",topic:"Kabbalah"},{pascal:"RoxyTarotCard",tag:"roxy-tarot-card",slug:"tarot-card",heading:"Daily tarot card",description:"Single tarot card with upright/reversed flip animation",docsLabel:"Tarot",endpointLabel:"GET /tarot/cards/{id}, POST /tarot/daily",docsSummary:"Single card with upright and reversed flip",topic:"Tarot"},{pascal:"RoxyTarotCatalog",tag:"roxy-tarot-catalog",slug:"tarot-catalog",heading:"Tarot deck",description:"Responsive tarot deck gallery with card art, name, and an arcana and suit caption; a picked tile opens its tarot card in place, and emits roxy-symbol-select for a host that pairs its own",docsLabel:"Tarot",endpointLabel:"GET /tarot/cards",docsSummary:"Deck gallery tiles with card art, name, and arcana and suit; a pick opens the card in place",topic:"Tarot"},{pascal:"RoxyTarotSpread",tag:"roxy-tarot-spread",slug:"tarot-spread",heading:"Three-card spread",description:"Tarot spread renderer for three-card, Celtic Cross, love, or yes/no",docsLabel:"Tarot",endpointLabel:"POST /tarot/spreads/{three-card,celtic-cross,love,career,custom}, /tarot/yes-no, /tarot/draw",docsSummary:"Spreads with positions and reading",topic:"Tarot"},{pascal:"RoxyBodygraph",tag:"roxy-bodygraph",slug:"bodygraph",heading:"Bodygraph",description:"Human Design bodygraph with nine centers, channels, and activated gates, plus the full reading: type, strategy, authority, profile, definition, incarnation cross, and a gate and line meaning for every activation",docsLabel:"Human Design",endpointLabel:"POST /human-design/bodygraph",docsSummary:"Nine-center chart with defined and open centers, active channels, and gates, plus the type, strategy, authority, profile, and definition readings, the channels by circuit, the centers, and every activation with its gate and line meaning",topic:"Human Design"},{pascal:"RoxyHdTypeCard",tag:"roxy-hd-type-card",slug:"hd-type-card",heading:"HD type",description:"Human Design type reading without the chart: type, strategy, authority, and profile, with the aura mechanic, the signature and not-self themes, and the interpretation behind each label. Also renders the profile response with its two line keynotes",docsLabel:"Human Design",endpointLabel:"POST /human-design/type, /human-design/profile",docsSummary:"Type, strategy, authority, and profile tiles with the aura, signature, and not-self themes, plus the reading behind each label and the profile line keynotes",topic:"Human Design"},{pascal:"RoxyHdConnection",tag:"roxy-hd-connection",slug:"hd-connection",heading:"HD connection",description:"Human Design connection chart: the composite channels two people form, with circuit, dynamic, and which person holds each gate",docsLabel:"Human Design",endpointLabel:"POST /human-design/connection",docsSummary:"Electromagnetic, compromise, and dominance channels between two charts",topic:"Human Design"},{pascal:"RoxyHdPenta",tag:"roxy-hd-penta",slug:"hd-penta",heading:"HD penta",description:"Human Design penta for a 3 to 5 person group: upper and lower triangle channels, defined or open, with core channels and member coverage",docsLabel:"Human Design",endpointLabel:"POST /human-design/penta",docsSummary:"Group penta channels split into upper and lower triangles",topic:"Human Design"},{pascal:"RoxyHdVariables",tag:"roxy-hd-variables",slug:"hd-variables",heading:"HD variables",description:"Human Design variables: the four PHS arrows (determination, environment, perspective, motivation) with left/right direction, color, tone, and base, plus the reading for each arrow and the cognition",docsLabel:"Human Design",endpointLabel:"POST /human-design/variables",docsSummary:"The four transformation arrows with direction, color, tone, and base, plus a reading per arrow grouped by layer and the cognition",topic:"Human Design"},{pascal:"RoxyForecastTimeline",tag:"roxy-forecast-timeline",slug:"forecast-timeline",heading:"Forecast timeline",description:"Cross-domain forecast event strip colored by domain and weighted by significance",docsLabel:"Forecast",endpointLabel:"POST /forecast/{timeline,significant-dates,transits}",docsSummary:"Date-grouped events across Western, Vedic, and biorhythm domains, weighted by significance",topic:"Forecast"},{pascal:"RoxyForecastDigest",tag:"roxy-forecast-digest",slug:"forecast-digest",heading:"Forecast digest",description:"Rolled-up forecast across the next 24 hours, 7, 30, and 90 days with per-domain breakdown and top events",docsLabel:"Forecast",endpointLabel:"POST /forecast/digest",docsSummary:"Per-window event counts, domain breakdown, and the highest-significance events",topic:"Forecast"},{pascal:"RoxyBaziChart",tag:"roxy-bazi-chart",slug:"bazi-chart",heading:"Four pillars",description:"BaZi four pillars chart: stem over branch per pillar with the Ten God relation, the stems each branch stores, the Na Yin, the Day Master, the five-element balance and every interaction the pillars form",docsLabel:"Chinese",endpointLabel:"POST /chinese-astrology/bazi/chart",docsSummary:"Year, month, day and hour pillars in hanzi with hidden stems, Ten Gods, Na Yin, element balance and interactions",topic:"Chinese Astrology"},{pascal:"RoxyLuckPillars",tag:"roxy-luck-pillars",slug:"luck-pillars",heading:"Luck pillars",description:"BaZi luck pillars: the ten-year stretches a chart is read through, each with its stem, branch and Ten God, plus the annual pillars inside them and the direction and starting age the sequence was built from",docsLabel:"Chinese",endpointLabel:"POST /chinese-astrology/bazi/luck-pillars",docsSummary:"Ten-year luck pillars as a strip with ages and years, the annual pillars, and the direction and start age behind them",topic:"Chinese Astrology"},{pascal:"RoxyZodiacCard",tag:"roxy-zodiac-card",slug:"zodiac-card",heading:"Chinese zodiac",description:"Chinese zodiac card: the animal a date falls in, the reference read of one animal with its trine and partner animals, a daily reading, or the compatibility of a pair",docsLabel:"Chinese",endpointLabel:"POST /chinese-astrology/zodiac/sign, GET /chinese-astrology/zodiac/{animals/{id},{id}/daily,compatibility/{sign1}/{sign2}}",docsSummary:"The animal for a date, one animal in full, a daily reading, or a pair scored",topic:"Chinese Astrology"},{pascal:"RoxyAlmanacDay",tag:"roxy-almanac-day",slug:"almanac-day",heading:"Chinese almanac",description:"Chinese almanac (Tong Shu): the day officer, what the day favours and avoids, the animal it clashes with, its three pillars and lunar mansion, for one day, a whole month, or a search for a date to act on",docsLabel:"Chinese",endpointLabel:"GET /chinese-astrology/calendar/{day/{date},monthly}, POST /chinese-astrology/calendar/auspicious-days",docsSummary:"Day officer, favours and avoids, clash animal and pillars, as one day, a month, or a date search",topic:"Chinese Astrology"},{pascal:"RoxyFlyingStarChart",tag:"roxy-flying-star-chart",slug:"flying-star-chart",heading:"Flying star chart",description:"Xuan Kong flying star plate: nine palaces on the compass with the mountain, period and water star of each, the facing and sitting mountains, and the structure the pair produces",docsLabel:"Feng Shui",endpointLabel:"POST /feng-shui/flying-stars/natal, GET /feng-shui/flying-stars/annual/{year}",docsSummary:"Nine-palace flying star plate with the mountain, period and water star per palace, the facing and sitting mountains and the structure",topic:"Feng Shui"},{pascal:"RoxyKuaCard",tag:"roxy-kua-card",slug:"kua-card",heading:"Kua and eight mansions",description:"Kua number with its trigram and the Eight Mansions map: all eight compass sectors on the nine-palace grid, each with its star, nature, rank and life domain, and the best and worst of them named",docsLabel:"Feng Shui",endpointLabel:"POST /feng-shui/kua, POST /feng-shui/eight-mansions",docsSummary:"Kua number and trigram over the eight-sector direction map, favourable and unfavourable sectors ranked",topic:"Feng Shui"},{pascal:"RoxyMayanDaySign",tag:"roxy-mayan-day-sign",slug:"mayan-day-sign",heading:"Mayan day sign",description:"Tzolkin day sign in all three of its spellings with the coefficient beside it, the trecena it sits in, the keynote, strengths, challenges and guidance, and on the full chart the Haab date, the Long Count, the Calendar Round, the year bearer and the four-fold cross",docsLabel:"Mesoamerican",endpointLabel:"POST /mesoamerican-astrology/mayan/tzolkin, POST /mesoamerican-astrology/mayan/chart",docsSummary:"Day sign and coefficient with the trecena, the reading, and the Calendar Round on the fuller response",topic:"Mesoamerican"},{pascal:"RoxyVastuMandala",tag:"roxy-vastu-mandala",slug:"vastu-mandala",heading:"Vastu mandala",description:"Vastu Purusha Mandala projected over a plot: every pada with the devata holding it, the brahmasthan block, the vamsa diagonals and where they cross, and in the entrance read the square the main door falls on with the verse effect for that pada",docsLabel:"Vastu",endpointLabel:"POST /vastu/mandala, POST /vastu/entrance",docsSummary:"Pada grid with a devata per square, the brahmasthan, and the entrance pada lit with its effect",topic:"Vastu"},{pascal:"RoxyBiorhythmChart",tag:"roxy-biorhythm-chart",slug:"biorhythm-chart",heading:"Daily biorhythm",description:"Daily biorhythm bars or multi-day forecast cycle lines",docsLabel:"Biorhythm",endpointLabel:"POST /biorhythm/{daily,forecast,critical-days}",docsSummary:"Daily bars, forecast cycle lines, critical days",topic:"Biorhythm"},{pascal:"RoxyDoshaConstitution",tag:"roxy-dosha-constitution",slug:"dosha-constitution",heading:"Ayurvedic constitution",description:"Ayurvedic constitution read from a birth chart: the three humour shares as one bar, the dominant and secondary humour, the three cited factors behind the blend with their verses, the shadbala ranking the third factor reads, and the scope note the response carries",docsLabel:"Ayurveda",endpointLabel:"POST /ayurveda/constitution",docsSummary:"Vata, pitta and kapha shares as one bar with the dominant humour and the cited factors behind it",topic:"Ayurveda"},{pascal:"RoxyHexagram",tag:"roxy-hexagram",slug:"hexagram",heading:"I Ching hexagram",description:"I Ching hexagram drawn line by line with trigram glyphs, judgment, image, and a reading for every line: the oracle statement and what it asks of the querent. A cast highlights the moving lines and shows only their readings, plus the hexagram it transforms into",docsLabel:"I Ching",endpointLabel:"GET /iching/hexagrams/{number}, /iching/hexagrams/random, /iching/hexagrams/lookup, /iching/cast, POST /iching/daily, /iching/daily/cast",docsSummary:"Hexagram figure with trigrams, judgment, image, and a reading per line (statement plus meaning); a cast highlights the moving lines and the resulting hexagram",topic:"I Ching"},{pascal:"RoxyCrystalCard",tag:"roxy-crystal-card",slug:"crystal-card",heading:"Crystal detail",description:"Single-crystal detail card with photo, spiritual, emotional, and physical meaning, metaphysical attributes, affirmation, and pairings; as a widget the visitor types a crystal name and picks it",docsLabel:"Crystals",endpointLabel:"GET /crystals/{id}",docsSummary:"Photo, meaning sections, chakra, zodiac, element, hardness, keywords, and pairings",topic:"Crystals"},{pascal:"RoxyCrystalGrid",tag:"roxy-crystal-grid",slug:"crystal-grid",heading:"Crystal grid",description:"Responsive crystal gallery with photo, name, and colour swatches from any crystals list response, filterable by chakra, zodiac sign, element, colour, and planet; a picked tile opens its crystal card in place",docsLabel:"Crystals",endpointLabel:"GET /crystals, /crystals/chakra/{chakra}, /crystals/element/{element}, /crystals/zodiac/{sign}, /crystals/birthstone/{month}, /crystals/search",docsSummary:"Crystal gallery with chakra, zodiac, element, colour, and planet filters; a pick opens the card in place",topic:"Crystals"},{pascal:"RoxyDreamCard",tag:"roxy-dream-card",slug:"dream-card",heading:"Dream symbol",description:"Dream symbol card with the symbol name, full interpretation, and dictionary letter; as a widget the visitor types a symbol and picks it",docsLabel:"Dreams",endpointLabel:"GET /dreams/symbols/{id}",docsSummary:"Symbol name, interpretation body, and letter chip",topic:"Dreams"},{pascal:"RoxyDreamSearch",tag:"roxy-dream-search",slug:"dream-search",heading:"Dream search",description:"The dream dictionary as selectable tiles under a search box and an A to Z bar; a picked tile opens its dream card in place, and emits roxy-symbol-select for a host that pairs its own",docsLabel:"Dreams",endpointLabel:"GET /dreams/symbols",docsSummary:"The dream dictionary as tiles, browsed A to Z or searched; a pick opens the card in place",topic:"Dreams"},{pascal:"RoxyAngelNumberCard",tag:"roxy-angel-number-card",slug:"angel-number-card",heading:"Angel number",description:"Angel number card with title, core message, badges, keywords, life-area interpretations, affirmation, and action steps",docsLabel:"Angel Numbers",endpointLabel:"GET /angel-numbers/numbers/{number}, POST /angel-numbers/daily",docsSummary:"Number meaning with spiritual, love, career, money, twin flame, biblical, and shadow sections",topic:"Angel Numbers"},{pascal:"RoxyAngelNumberLookup",tag:"roxy-angel-number-lookup",slug:"angel-number-lookup",heading:"Angel number lookup",description:"Angel number sequence analysis with pattern classification, the known meaning when present, and a digit-root fallback for any number",docsLabel:"Angel Numbers",endpointLabel:"GET /angel-numbers/lookup",docsSummary:"Pattern analysis plus known meaning and digit-root fallback",topic:"Angel Numbers"},{pascal:"RoxyReport",tag:"roxy-report",slug:"report",heading:"Branded report",description:"Branded report for any /reports operation: the visitor fills the form, and the finished document arrives under your name as a PDF download or in place on the page",docsLabel:"Reports",endpointLabel:"POST /reports/...",docsSummary:"Form to finished branded report, as a PDF download or inline HTML",topic:"Reports"},{pascal:"RoxyReferenceCard",tag:"roxy-reference-card",slug:"reference-card",heading:"Reference card",description:"Glossary entry for any reference lookup: zodiac sign, planet meaning, rashi, I Ching trigram, Human Design gate or center, or numerology number",docsLabel:"Reference",endpointLabel:"GET /astrology/{signs,planet-meanings}/{id}, /vedic-astrology/{rashis,avasthas}/{id}, /iching/trigrams/{id}, /human-design/gates/{number}, /human-design/centers/{id}, /numerology/meanings/{number}",docsSummary:"Symbol, name, description, keyword chips, and an attribute grid for any glossary lookup",topic:"Helpers"},{pascal:"RoxyEndpointForm",tag:"roxy-endpoint-form",slug:"endpoint-form",heading:"Schema-driven form",description:"Schema-driven form that emits roxy-submit with a validated payload",docsLabel:"Helper",endpointLabel:"Any endpoint, from the spec",docsSummary:"Schema-driven form, emits roxy-submit",topic:"Helpers",selfFetching:true},{pascal:"RoxyLocationSearch",tag:"roxy-location-search",slug:"location-search",heading:"City search",description:"City search input with debounced /location/search calls",docsLabel:"Helper",endpointLabel:"GET /location/search",docsSummary:"Debounced city search input, emits roxy-location-select",topic:"Helpers",selfFetching:true},{pascal:"RoxyData",tag:"roxy-data",slug:"data",heading:"Generic renderer",description:"Generic fallback renderer for any OpenAPI response shape",docsLabel:"Helper",endpointLabel:"Any response shape",docsSummary:"Generic fallback renderer for unknown shapes",topic:"Helpers",selfFetching:true}];var Qu=Mn.map(n=>n.slug);return ah(ef)})();
|