@roxyapi/ui 1.1.1 → 1.1.2
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/AGENTS.md +5 -5
- package/README.md +3 -3
- package/THEMING.md +3 -3
- package/components-catalog.json +258 -158
- package/dist/cdn/components/almanac-day.js +3 -205
- package/dist/cdn/components/angel-number-card.js +3 -205
- package/dist/cdn/components/angel-number-lookup.js +3 -205
- package/dist/cdn/components/arudha-padas.js +3 -205
- package/dist/cdn/components/ashtakavarga-grid.js +3 -205
- package/dist/cdn/components/aspects-table.js +3 -205
- package/dist/cdn/components/astrocartography-map.js +3 -205
- package/dist/cdn/components/bazi-chart.js +3 -205
- package/dist/cdn/components/bhav-chalit-table.js +2 -204
- package/dist/cdn/components/bhava-bala-table.js +3 -205
- package/dist/cdn/components/biorhythm-chart.js +3 -205
- package/dist/cdn/components/bodygraph.js +7 -209
- package/dist/cdn/components/chara-karakas.js +3 -205
- package/dist/cdn/components/choghadiya-grid.js +3 -205
- package/dist/cdn/components/compatibility-card.js +2 -204
- package/dist/cdn/components/compound-number.js +3 -205
- package/dist/cdn/components/crystal-card.js +3 -205
- package/dist/cdn/components/crystal-grid.js +3 -205
- package/dist/cdn/components/dasha-timeline.js +3 -205
- package/dist/cdn/components/data.js +3 -205
- package/dist/cdn/components/divisional-chart.js +13 -215
- package/dist/cdn/components/dosha-card.js +3 -205
- package/dist/cdn/components/dosha-constitution.js +3 -205
- package/dist/cdn/components/dream-card.js +3 -205
- package/dist/cdn/components/dream-search.js +3 -205
- package/dist/cdn/components/endpoint-form.js +3 -205
- package/dist/cdn/components/ephemeris-table.js +2 -204
- package/dist/cdn/components/fixed-stars.js +2 -204
- package/dist/cdn/components/flying-star-chart.js +2 -204
- package/dist/cdn/components/forecast-digest.js +3 -205
- package/dist/cdn/components/forecast-timeline.js +3 -205
- package/dist/cdn/components/gematria.js +3 -205
- package/dist/cdn/components/gochara-table.js +3 -205
- package/dist/cdn/components/guna-milan.js +3 -205
- package/dist/cdn/components/hd-connection.js +5 -207
- package/dist/cdn/components/hd-penta.js +5 -207
- package/dist/cdn/components/hd-type-card.js +3 -205
- package/dist/cdn/components/hd-variables.js +3 -205
- package/dist/cdn/components/heliacal-table.js +3 -205
- package/dist/cdn/components/hexagram.js +3 -205
- package/dist/cdn/components/hora-table.js +3 -205
- package/dist/cdn/components/horoscope-card.js +3 -205
- package/dist/cdn/components/kp-chart.js +3 -205
- package/dist/cdn/components/kp-finance-card.js +3 -205
- package/dist/cdn/components/kp-planets-table.js +3 -205
- package/dist/cdn/components/kp-ruling-planets.js +3 -205
- package/dist/cdn/components/kua-card.js +3 -205
- package/dist/cdn/components/local-space-compass.js +8 -210
- package/dist/cdn/components/location-search.js +3 -205
- package/dist/cdn/components/luck-pillars.js +3 -205
- package/dist/cdn/components/mayan-day-sign.js +3 -205
- package/dist/cdn/components/moon-phase.js +3 -205
- package/dist/cdn/components/nakshatra-card.js +3 -205
- package/dist/cdn/components/natal-chart.js +6 -208
- package/dist/cdn/components/numerology-card.js +3 -205
- package/dist/cdn/components/panchang-table.js +3 -205
- package/dist/cdn/components/positions-table.js +3 -205
- package/dist/cdn/components/profection-card.js +3 -205
- package/dist/cdn/components/reference-card.js +3 -205
- package/dist/cdn/components/relocation-wheel.js +6 -208
- package/dist/cdn/components/shadbala-table.js +3 -205
- package/dist/cdn/components/synastry-chart.js +7 -209
- package/dist/cdn/components/tarot-card.js +3 -205
- package/dist/cdn/components/tarot-catalog.js +3 -205
- package/dist/cdn/components/tarot-spread.js +3 -205
- package/dist/cdn/components/transit-wheel.js +8 -210
- package/dist/cdn/components/transits-table.js +3 -205
- package/dist/cdn/components/upagraha-table.js +2 -204
- package/dist/cdn/components/vastu-mandala.js +4 -206
- package/dist/cdn/components/vedic-aspects.js +2 -204
- package/dist/cdn/components/vedic-daily.js +3 -205
- package/dist/cdn/components/vedic-kundli.js +10 -212
- package/dist/cdn/components/vedic-planets-table.js +3 -205
- package/dist/cdn/components/western-planets-table.js +2 -204
- package/dist/cdn/components/yoga-list.js +3 -205
- package/dist/cdn/components/zodiac-card.js +2 -204
- package/dist/cdn/locales/de.js +1 -1
- package/dist/cdn/roxy-ui.js +49 -251
- package/dist/components/almanac-day.js +1 -203
- package/dist/components/angel-number-card.js +1 -203
- package/dist/components/angel-number-lookup.js +1 -203
- package/dist/components/arudha-padas.js +1 -203
- package/dist/components/ashtakavarga-grid.js +1 -203
- package/dist/components/aspects-table.js +1 -203
- package/dist/components/astrocartography-map.js +6 -208
- package/dist/components/bazi-chart.js +1 -203
- package/dist/components/bhav-chalit-table.js +1 -203
- package/dist/components/bhava-bala-table.js +1 -203
- package/dist/components/biorhythm-chart.js +1 -203
- package/dist/components/bodygraph.js +3 -205
- package/dist/components/chara-karakas.js +1 -203
- package/dist/components/choghadiya-grid.js +1 -203
- package/dist/components/compatibility-card.js +1 -203
- package/dist/components/compound-number.js +1 -203
- package/dist/components/crystal-card.js +1 -203
- package/dist/components/crystal-grid.js +1 -203
- package/dist/components/dasha-timeline.js +1 -203
- package/dist/components/data.js +1 -203
- package/dist/components/divisional-chart.js +45 -247
- package/dist/components/dosha-card.js +1 -203
- package/dist/components/dosha-constitution.js +1 -203
- package/dist/components/dream-card.js +1 -203
- package/dist/components/dream-search.js +1 -203
- package/dist/components/endpoint-form.js +1 -203
- package/dist/components/ephemeris-table.js +1 -203
- package/dist/components/fixed-stars.js +1 -203
- package/dist/components/flying-star-chart.js +1 -203
- package/dist/components/forecast-digest.js +1 -203
- package/dist/components/forecast-timeline.js +1 -203
- package/dist/components/gematria.js +1 -203
- package/dist/components/gochara-table.js +1 -203
- package/dist/components/guna-milan.js +1 -203
- package/dist/components/hd-connection.js +3 -205
- package/dist/components/hd-penta.js +5 -207
- package/dist/components/hd-type-card.js +1 -203
- package/dist/components/hd-variables.js +1 -203
- package/dist/components/heliacal-table.js +1 -203
- package/dist/components/hexagram.d.ts +1 -1
- package/dist/components/hexagram.js +1 -203
- package/dist/components/hora-table.js +1 -203
- package/dist/components/horoscope-card.js +1 -203
- package/dist/components/kp-chart.js +1 -203
- package/dist/components/kp-finance-card.js +1 -203
- package/dist/components/kp-planets-table.js +1 -203
- package/dist/components/kp-ruling-planets.js +1 -203
- package/dist/components/kua-card.js +1 -203
- package/dist/components/local-space-compass.js +4 -206
- package/dist/components/location-search.js +1 -203
- package/dist/components/luck-pillars.js +1 -203
- package/dist/components/mayan-day-sign.js +1 -203
- package/dist/components/moon-phase.js +1 -203
- package/dist/components/nakshatra-card.js +1 -203
- package/dist/components/natal-chart.d.ts +1 -1
- package/dist/components/natal-chart.js +5 -207
- package/dist/components/numerology-card.js +1 -203
- package/dist/components/panchang-table.js +1 -203
- package/dist/components/positions-table.js +1 -203
- package/dist/components/profection-card.js +1 -203
- package/dist/components/reference-card.js +1 -203
- package/dist/components/relocation-wheel.js +3 -205
- package/dist/components/shadbala-table.js +1 -203
- package/dist/components/synastry-chart.js +6 -208
- package/dist/components/tarot-card.js +1 -203
- package/dist/components/tarot-catalog.js +1 -203
- package/dist/components/tarot-spread.js +1 -203
- package/dist/components/transit-wheel.js +8 -210
- package/dist/components/transits-table.js +1 -203
- package/dist/components/upagraha-table.js +1 -203
- package/dist/components/vastu-mandala.js +6 -208
- package/dist/components/vedic-aspects.js +1 -203
- package/dist/components/vedic-daily.js +1 -203
- package/dist/components/vedic-kundli.js +15 -217
- package/dist/components/vedic-planets-table.js +1 -203
- package/dist/components/western-planets-table.js +1 -203
- package/dist/components/yoga-list.js +1 -203
- package/dist/components/zodiac-card.js +1 -203
- package/dist/forms.json +1 -1
- package/dist/index.cjs +49 -251
- package/dist/index.js +50 -252
- package/dist/locales/de.js +1 -1
- package/dist/schemas/post--astrology-lilith.json +1 -1
- package/dist/schemas/post--astrology-progressions.json +1 -1
- package/dist/schemas/post--kabbalah-birth-profile.json +1 -1
- package/dist/schemas/post--numerology-chart.json +1 -1
- package/dist/schemas/post--vedic-astrology-daily.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-current.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-major.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha-antardasha-pratyantardasha-sookshma.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha-antardasha-pratyantardasha.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha-antardasha.json +1 -1
- package/dist/schemas/post--vedic-astrology-dasha-sub-mahadasha.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-chart.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-cusps.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-daily-finance.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-horary.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-planets.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-ruling-planets-interval.json +1 -1
- package/dist/schemas/post--vedic-astrology-kp-ruling-planets.json +1 -1
- package/dist/schemas/post--vedic-astrology-transit.json +1 -1
- package/dist/styles/palettes.d.ts +4 -0
- package/dist/styles/themes/celeste.css +1 -115
- package/dist/styles/themes/eucalyptus.css +1 -121
- package/dist/styles/themes/kiln.css +1 -121
- package/dist/styles/themes/moonlit.css +1 -121
- package/dist/styles/themes/practitioner.css +1 -170
- package/dist/styles/tokens-css.d.ts +1 -1
- package/dist/styles/tokens.css +1 -202
- package/dist/types/types.gen.d.ts +48 -36
- package/dist/utils/string.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,218 +1,16 @@
|
|
|
1
|
-
var RoxyUI_transit_wheel=(()=>{var pt=Object.defineProperty;var fe=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Rr=Object.prototype.hasOwnProperty;var _r=(n,t)=>{for(var e in t)pt(n,e,{get:t[e],enumerable:!0})},Cr=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ar(t))!Rr.call(n,o)&&o!==e&&pt(n,o,{get:()=>t[o],enumerable:!(r=fe(t,o))||r.enumerable});return n};var Pr=n=>Cr(pt({},"__esModule",{value:!0}),n),g=(n,t,e,r)=>{for(var o=r>1?void 0:r?fe(t,e):t,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(t,e,o):i(o))||o);return r&&o&&pt(t,e,o),o};var Pn={};_r(Pn,{ROXY_UI_TOKENS_STYLE_ID:()=>vt,RoxyTransitWheel:()=>C,TRANSIT_TYPE_SIZES:()=>le,injectRoxyTokens:()=>$t});var ht=globalThis,ut=ht.ShadowRoot&&(ht.ShadyCSS===void 0||ht.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nt=Symbol(),xe=new WeakMap,X=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Nt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(ut&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=xe.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&xe.set(e,t))}return t}toString(){return this.cssText}},be=n=>new X(typeof n=="string"?n:n+"",void 0,Nt),b=(n,...t)=>{let e=n.length===1?n[0]:t.reduce((r,o,s)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[s+1],n[0]);return new X(e,n,Nt)},ve=(n,t)=>{if(ut)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=ht.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,n.appendChild(r)}},Ft=ut?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return be(e)})(n):n;var{is:
|
|
2
|
-
\f\r]`,et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ae=/'/g,Re=/"/g,Oe=/^(?:script|style|textarea|title)$/i,jt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),l=jt(1),A=jt(2),zn=jt(3),U=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),_e=new WeakMap,z=D.createTreeWalker(D,129);function Le(n,t){if(!Bt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ee!==void 0?Ee.createHTML(t):t}var Gr=(n,t)=>{let e=n.length-1,r=[],o,s=t===2?"<svg>":t===3?"<math>":"",i=et;for(let a=0;a<e;a++){let c=n[a],p,h,u=-1,$=0;for(;$<c.length&&(i.lastIndex=$,h=i.exec(c),h!==null);)$=i.lastIndex,i===et?h[1]==="!--"?i=ke:h[1]!==void 0?i=Te:h[2]!==void 0?(Oe.test(h[2])&&(o=RegExp("</"+h[2],"g")),i=M):h[3]!==void 0&&(i=M):i===M?h[0]===">"?(i=o??et,u=-1):h[1]===void 0?u=-2:(u=i.lastIndex-h[2].length,p=h[1],i=h[3]===void 0?M:h[3]==='"'?Re:Ae):i===Re||i===Ae?i=M:i===ke||i===Te?i=et:(i=M,o=void 0);let f=i===M&&n[a+1].startsWith("/>")?" ":"";s+=i===et?c+Ir:u>=0?(r.push(p),c.slice(0,u)+Ce+c.slice(u)+L+f):c+L+(u===-2?a:f)}return[Le(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},ot=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let s=0,i=0,a=t.length-1,c=this.parts,[p,h]=Gr(t,e);if(this.el=n.createElement(p,r),z.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=z.nextNode())!==null&&c.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let u of o.getAttributeNames())if(u.endsWith(Ce)){let $=h[i++],f=o.getAttribute(u).split(L),E=/([.?@])?(.*)/.exec($);c.push({type:1,index:s,name:E[2],strings:f,ctor:E[1]==="."?Dt:E[1]==="?"?Ut:E[1]==="@"?It:B}),o.removeAttribute(u)}else u.startsWith(L)&&(c.push({type:6,index:s}),o.removeAttribute(u));if(Oe.test(o.tagName)){let u=o.textContent.split(L),$=u.length-1;if($>0){o.textContent=yt?yt.emptyScript:"";for(let f=0;f<$;f++)o.append(u[f],rt()),z.nextNode(),c.push({type:2,index:++s});o.append(u[$],rt())}}}else if(o.nodeType===8)if(o.data===Pe)c.push({type:2,index:s});else{let u=-1;for(;(u=o.data.indexOf(L,u+1))!==-1;)c.push({type:7,index:s}),u+=L.length-1}s++}}static createElement(t,e){let r=D.createElement("template");return r.innerHTML=t,r}};function G(n,t,e=n,r){if(t===U)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,s=nt(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(n),o._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=G(n,o._$AS(n,t.values),o,r)),t}var zt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??D).importNode(e,!0);z.currentNode=o;let s=z.nextNode(),i=0,a=0,c=r[0];for(;c!==void 0;){if(i===c.index){let p;c.type===2?p=new st(s,s.nextSibling,this,t):c.type===1?p=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(p=new Ht(s,this,t)),this._$AV.push(p),c=r[++a]}i!==c?.index&&(s=z.nextNode(),i++)}return z.currentNode=D,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},st=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),nt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Hr(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&nt(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=ot.createElement(Le(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let s=new zt(o,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=_e.get(t.strings);return e===void 0&&_e.set(t.strings,e=new ot(t)),e}k(t){Bt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let s of t)o===e.length?e.push(r=new n(this.O(rt()),this.O(rt()),this,this.options)):r=e[o],r._$AI(s),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=Se(t).nextSibling;Se(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},B=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(t,e=this,r,o){let s=this.strings,i=!1;if(s===void 0)t=G(this,t,e,0),i=!nt(t)||t!==this._$AH&&t!==U,i&&(this._$AH=t);else{let a=t,c,p;for(t=s[0],c=0;c<s.length-1;c++)p=G(this,a[r+c],e,c),p===U&&(p=this._$AH[c]),i||=!nt(p)||p!==this._$AH[c],p===d?t=d:t!==d&&(t+=(p??"")+s[c+1]),this._$AH[c]=p}i&&!o&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Dt=class extends B{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},Ut=class extends B{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},It=class extends B{constructor(t,e,r,o,s){super(t,e,r,o,s),this.type=5}_$AI(t,e=this){if((t=G(this,t,e,0)??d)===U)return;let r=this._$AH,o=t===d&&r!==d||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==d&&(r===d||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ht=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}};var Br=Gt.litHtmlPolyfillSupport;Br?.(ot,st),(Gt.litHtmlVersions??=[]).push("3.3.3");var Ne=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let s=e?.renderBefore??null;r._$litPart$=o=new st(t.insertBefore(rt(),s),s,void 0,e??{})}return o._$AI(n),o};var Kt=globalThis,N=class extends P{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ne(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return U}};N._$litElement$=!0,N.finalized=!0,Kt.litElementHydrateSupport?.({LitElement:N});var jr=Kt.litElementPolyfillSupport;jr?.({LitElement:N});(Kt.litElementVersions??=[]).push("4.2.2");var Fe=[{endpoint:"astrology/aspects",method:"POST"},{endpoint:"astrology/transit-aspects",method:"POST"},{endpoint:"astrology/aspect-patterns",method:"POST"}];var Me=[{endpoint:"astrology/transit-aspects",method:"POST"}];var ze=[{endpoint:"astrology/natal-chart",method:"POST"}];function ft(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function O(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}function xt(n){return n.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var De=(n,t)=>t?n[ft(t)]:void 0,Kr={sun:"☉",moon:"☽",mercury:"☿",venus:"♀",earth:"♁",mars:"♂",jupiter:"♃",saturn:"♄",uranus:"♅",neptune:"♆",pluto:"♇",rahu:"☊",ketu:"☋",ascendant:"Asc",midheaven:"MC","part of fortune":"⊗",vertex:"Vx",lagna:"La","north node":"☊","south node":"☋",chiron:"⚷",lilith:"⚸","black moon lilith":"⚸"},R=n=>De(Kr,n);var qr={aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpio:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓"},it=n=>De(qr,n);var at=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"];var qt=/^\d{4}-\d{2}-\d{2}$/,Vr=/^\d{4}-\d{2}$/,He=/^\d{2}:\d{2}(:\d{2})?$/,Yr=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,Ue=new Map;function j(n){if(!n)return["en"];let t=Ue.get(n);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return Ue.set(n,e),[e,"en"]}var Ie=new Map;function Zr(n){let t=n??"",e=Ie.get(t);if(e)return e;let o={hour:new Intl.DateTimeFormat(j(n),{timeStyle:"short",timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2e3,0,1,1))).find(s=>s.type==="hour")?.value?.length===2?"2-digit":"numeric",minute:"2-digit"};return Ie.set(t,o),o}function Ge(n){let t=He.test(n)?`1970-01-01T${n}`:qt.test(n)?`${n}T00:00:00`:Vr.test(n)?`${n}-01T00:00:00`:Yr.test(n)?n.replace(" ","T"):null;return t?{d:new Date(`${t}Z`),timeZone:"UTC"}:{d:new Date(n)}}function Wr(n,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:r}=Ge(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(j(n),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function Be(n,t){let e=t.filter(Boolean);return e.length<2?e[0]??"":new Intl.ListFormat(j(n),{style:"long",type:"conjunction"}).format(e)}function S(n,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(j(n),{maximumFractionDigits:e})}function je(n,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":(t/100).toLocaleString(j(n),{style:"percent",maximumFractionDigits:e})}function K(n){return(n.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}function I(n){return O(K(n))}function q(n,t,e,r=!1){let o=typeof t=="string"&&qt.test(t)&&typeof e=="string"&&He.test(e)?`${t}T${e}`:t;if(typeof o!="string"||o.length===0)return"";if(qt.test(o))return Wr(n,o);let{d:s,timeZone:i}=Ge(o);return Number.isNaN(s.getTime())?o:s.toLocaleString(j(n),{month:"short",day:"numeric",year:"numeric",...Zr(n),...r?{second:"2-digit"}:{},timeZone:i})}var Vt=b`.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}`,Ve=[b`.aspect{stroke:var(--_aspect,var(--roxy-muted));stroke-width:.8px;fill:none;opacity:.55;stroke-opacity:.7}`,Vt],Jr=new Set(["conjunction","sextile","square","trine","opposition"]);function Yt(n){return Jr.has(K(n))}function V(n){return`aspect-${K(n)}`}var Ke=.3,Xr=.9,qe=.5,Qr=1.8;function Ye(n){let{strength:t}=n;if(typeof t!="number"||!Number.isFinite(t))return;let e=Math.min(1,Math.max(0,t/100)),r=Ke+e*(Xr-Ke),o=qe+e*(Qr-qe);return`opacity:${r.toFixed(3)};stroke-width:${o.toFixed(3)}`}var tn={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:gt},en=(n=tn,t,e)=>{let{kind:r,metadata:o}=e,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),s.set(e.name,n),r==="accessor"){let{name:i}=e;return{set(a){let c=t.get.call(this);t.set.call(this,a),this.requestUpdate(i,c,n,!0,a)},init(a){return a!==void 0&&this.C(i,void 0,n,a),a}}}if(r==="setter"){let{name:i}=e;return function(a){let c=this[i];t.call(this,a),this.requestUpdate(i,c,n,!0,a)}}throw Error("Unsupported decorator location: "+r)};function v(n){return(t,e)=>typeof e=="object"?en(n,t,e):((r,o,s)=>{let i=o.hasOwnProperty(s);return o.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(o,s):void 0})(n,t,e)}function k(n){return v({...n,state:!0,attribute:!1})}var T=n=>n??d;var Ze=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Wt(n){if(n.lang)return n.lang;if(typeof document>"u")return;let t=n.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var rn={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Zt(n){let t=n.toLowerCase();return Ze.find(e=>e.toLowerCase()===t)}function We(n){let t=Wt(n);if(!t)return;let e=Zt(t);if(e)return e;let r=t.toLowerCase().split("-"),o=r[0];if(o==="zh"){let s=r.find(i=>i==="hans"||i==="hant")??rn[r[1]??""];return s?Zt(`zh-${s}`):void 0}return Zt(o)}var Je=`/**
|
|
4
|
-
* Roxy UI design tokens: every colour, size, space, radius, font and duration a component reads.
|
|
5
|
-
*
|
|
6
|
-
* Two tiers. BASES are the few values a host tunes: fonts, base text size and its scale ratio, the
|
|
7
|
-
* space unit, the base radius, motion, and the colour bases (bg, fg, accent and the four status
|
|
8
|
-
* colours). Every other token DERIVES from them with calc() or color-mix(), so dark mode reassigns
|
|
9
|
-
* the colour bases only and one font token restyles every heading. A host may still set any
|
|
10
|
-
* derived token directly, and its value wins.
|
|
11
|
-
*
|
|
12
|
-
* Delivery: a global light-DOM stylesheet (linked, or injected by the CDN bundle). Custom properties
|
|
13
|
-
* inherit through the shadow boundary, so a token set on any light-DOM ancestor reaches every
|
|
14
|
-
* component. The :host selectors apply only if this sheet is adopted into a shadow root.
|
|
15
|
-
*
|
|
16
|
-
* Light is the default. Dark applies under prefers-color-scheme: dark, or [data-theme="dark"] or
|
|
17
|
-
* .dark on the element or any ancestor; [data-theme="light"] or .light opts back into light. An
|
|
18
|
-
* explicit choice wins over the OS because those blocks come later in source order.
|
|
19
|
-
*
|
|
20
|
-
* A derivation is computed where it is declared, so the derived block also matches every theme
|
|
21
|
-
* trigger: a base reassigned on :root or on an element carrying data-theme, .light or .dark
|
|
22
|
-
* re-derives everything below it.
|
|
23
|
-
*
|
|
24
|
-
* Font: --roxy-font-sans is unset by default, so every component inherits the host page font; any
|
|
25
|
-
* value set by the host or a preset replaces it, and --roxy-font-display follows it until set.
|
|
26
|
-
*
|
|
27
|
-
* Motion: --roxy-motion-duration defaults to 200ms and prefers-reduced-motion forces 0ms.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* Two mechanisms keep the host page in charge of every token, and both are load bearing.
|
|
32
|
-
*
|
|
33
|
-
* Every rule sits in the roxy.tokens cascade layer, and an unlayered declaration beats a layered
|
|
34
|
-
* one at ANY specificity, so a plain \`:root { --roxy-accent: #8b5cf6 }\` on the host page wins, and
|
|
35
|
-
* so does the same line inside a layer of its own, because this statement registers ours first
|
|
36
|
-
* and the CDN bundle injects this sheet at the top of <head>. A host that links this file after its
|
|
37
|
-
* own CSS orders the layers itself: \`@layer roxy, base, components, utilities;\` before either sheet.
|
|
38
|
-
*
|
|
39
|
-
* Every selector is ALSO wrapped in :where(), which has ZERO specificity, so a host declaration
|
|
40
|
-
* still wins wherever a layer cannot decide it, under every dark signal alike.
|
|
41
|
-
*
|
|
42
|
-
* The theme presets in styles/themes/*.css write into roxy.theme; both files declare this order,
|
|
43
|
-
* so either one loading alone still ranks a preset above these defaults.
|
|
44
|
-
*/
|
|
45
|
-
@layer roxy.tokens, roxy.theme;
|
|
46
|
-
|
|
47
|
-
@layer roxy.tokens {
|
|
48
|
-
/* Bases, light. Also the mode-specific derivations: accent ink and status inks mix toward black. */
|
|
49
|
-
:where(:root, :host) {
|
|
50
|
-
/* A real inherited property: native controls, popups and scrollbars follow it. */
|
|
51
|
-
color-scheme: light;
|
|
52
|
-
|
|
53
|
-
--roxy-bg: #ffffff;
|
|
54
|
-
--roxy-fg: #0a0a0a;
|
|
55
|
-
--roxy-accent: #4a6297;
|
|
56
|
-
--roxy-success: #16a34a;
|
|
57
|
-
--roxy-warning: #ea580c;
|
|
58
|
-
--roxy-danger: #dc2626;
|
|
59
|
-
--roxy-info: #0284c7;
|
|
60
|
-
|
|
61
|
-
/* Accent and status inks: 70 percent toward black reads at AA on the card and on a tint of the base. */
|
|
62
|
-
--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);
|
|
63
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);
|
|
64
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);
|
|
65
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);
|
|
66
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);
|
|
67
|
-
|
|
68
|
-
/* Unset on purpose: a component inherits the host page font until a host or preset sets one. */
|
|
69
|
-
--roxy-font-sans: initial;
|
|
70
|
-
--roxy-font-mono:
|
|
71
|
-
ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas,
|
|
72
|
-
"Liberation Mono", monospace;
|
|
73
|
-
|
|
74
|
-
--roxy-text-base: 1rem;
|
|
75
|
-
--roxy-text-scale: 1.15;
|
|
76
|
-
--roxy-weight-normal: 400;
|
|
77
|
-
--roxy-weight-bold: 600;
|
|
78
|
-
--roxy-leading-tight: 1.25;
|
|
79
|
-
--roxy-leading-normal: 1.5;
|
|
80
|
-
--roxy-tracking-tight: -0.01em;
|
|
81
|
-
--roxy-tracking-normal: 0em;
|
|
82
|
-
|
|
83
|
-
--roxy-space-unit: 0.25rem;
|
|
84
|
-
--roxy-radius: 6px;
|
|
85
|
-
|
|
86
|
-
--roxy-motion-duration: 200ms;
|
|
87
|
-
--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* Derived roles, identical in every mode, restated on every theme trigger so they follow its bases. */
|
|
91
|
-
:where(:root, :host, [data-theme], .light, .dark) {
|
|
92
|
-
/* Flat: the card is the page colour, separated by a hairline. */
|
|
93
|
-
--roxy-surface: var(--roxy-bg);
|
|
94
|
-
--roxy-primary: var(--roxy-fg);
|
|
95
|
-
--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));
|
|
96
|
-
--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));
|
|
97
|
-
--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));
|
|
98
|
-
--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);
|
|
99
|
-
--roxy-heat: var(--roxy-danger);
|
|
100
|
-
|
|
101
|
-
--roxy-font-display: var(--roxy-font-sans);
|
|
102
|
-
|
|
103
|
-
--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));
|
|
104
|
-
--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));
|
|
105
|
-
--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));
|
|
106
|
-
--roxy-text-xl: calc(
|
|
107
|
-
var(--roxy-text-lg) *
|
|
108
|
-
var(--roxy-text-scale) *
|
|
109
|
-
var(--roxy-text-scale)
|
|
110
|
-
);
|
|
111
|
-
|
|
112
|
-
--roxy-space-xs: var(--roxy-space-unit);
|
|
113
|
-
--roxy-space-sm: calc(var(--roxy-space-unit) * 2);
|
|
114
|
-
--roxy-space-md: calc(var(--roxy-space-unit) * 4);
|
|
115
|
-
--roxy-space-lg: calc(var(--roxy-space-unit) * 6);
|
|
116
|
-
--roxy-space-xl: calc(var(--roxy-space-unit) * 10);
|
|
117
|
-
--roxy-line-thick: calc(var(--roxy-space-unit) / 2);
|
|
118
|
-
--roxy-touch: calc(var(--roxy-space-unit) * 11);
|
|
119
|
-
|
|
120
|
-
--roxy-radius-sm: calc(var(--roxy-radius) / 2);
|
|
121
|
-
--roxy-radius-md: var(--roxy-radius);
|
|
122
|
-
--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);
|
|
123
|
-
--roxy-radius-full: 9999px;
|
|
124
|
-
|
|
125
|
-
/* Flat surfaces cast nothing; only a floating layer (a popup, an enlarged chart) lifts. */
|
|
126
|
-
--roxy-shadow-sm: none;
|
|
127
|
-
--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);
|
|
128
|
-
--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* Bases, dark, by system preference. Inks mix toward white so they read on a dark card. */
|
|
132
|
-
@media (prefers-color-scheme: dark) {
|
|
133
|
-
:where(:root, :host) {
|
|
134
|
-
color-scheme: dark;
|
|
135
|
-
--roxy-bg: #0a0a0a;
|
|
136
|
-
--roxy-fg: #fafafa;
|
|
137
|
-
--roxy-accent: #92aade;
|
|
138
|
-
--roxy-success: #22c55e;
|
|
139
|
-
--roxy-warning: #fb923c;
|
|
140
|
-
--roxy-danger: #ef4444;
|
|
141
|
-
--roxy-info: #38bdf8;
|
|
142
|
-
|
|
143
|
-
--roxy-accent-ink: var(--roxy-accent);
|
|
144
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);
|
|
145
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);
|
|
146
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);
|
|
147
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/* Explicit light: beats the OS dark block when the host chooses light. */
|
|
152
|
-
:where(
|
|
153
|
-
:root[data-theme="light"],
|
|
154
|
-
[data-theme="light"],
|
|
155
|
-
:root.light,
|
|
156
|
-
.light,
|
|
157
|
-
:host([data-theme="light"])
|
|
158
|
-
) {
|
|
159
|
-
color-scheme: light;
|
|
160
|
-
--roxy-bg: #ffffff;
|
|
161
|
-
--roxy-fg: #0a0a0a;
|
|
162
|
-
--roxy-accent: #4a6297;
|
|
163
|
-
--roxy-success: #16a34a;
|
|
164
|
-
--roxy-warning: #ea580c;
|
|
165
|
-
--roxy-danger: #dc2626;
|
|
166
|
-
--roxy-info: #0284c7;
|
|
167
|
-
|
|
168
|
-
--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);
|
|
169
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);
|
|
170
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);
|
|
171
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);
|
|
172
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/* Explicit dark: a .dark class or data-theme="dark" on any ancestor themes every component below it. */
|
|
176
|
-
:where(
|
|
177
|
-
:root[data-theme="dark"],
|
|
178
|
-
[data-theme="dark"],
|
|
179
|
-
:root.dark,
|
|
180
|
-
.dark,
|
|
181
|
-
:host([data-theme="dark"])
|
|
182
|
-
) {
|
|
183
|
-
color-scheme: dark;
|
|
184
|
-
--roxy-bg: #0a0a0a;
|
|
185
|
-
--roxy-fg: #fafafa;
|
|
186
|
-
--roxy-accent: #92aade;
|
|
187
|
-
--roxy-success: #22c55e;
|
|
188
|
-
--roxy-warning: #fb923c;
|
|
189
|
-
--roxy-danger: #ef4444;
|
|
190
|
-
--roxy-info: #38bdf8;
|
|
191
|
-
|
|
192
|
-
--roxy-accent-ink: var(--roxy-accent);
|
|
193
|
-
--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);
|
|
194
|
-
--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);
|
|
195
|
-
--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);
|
|
196
|
-
--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
@media (prefers-reduced-motion: reduce) {
|
|
200
|
-
:where(:root, :host) {
|
|
201
|
-
--roxy-motion-duration: 0ms;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
`;var vt="roxy-ui-tokens";function $t(){if(typeof document>"u")return null;let n=document.getElementById(vt);if(n)return n;let t=document.createElement("style");return t.id=vt,t.textContent=Je,document.head.prepend(t),t}var Xe="__ROXY_UI_I18N__";function Jt(){let n=globalThis,t=n[Xe];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[Xe]=e,e}function nn(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function Qe(n,t,e){return nn(on(n,t)??t,e)}function on(n,t){if(!n)return;let{catalogs:e}=Jt(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[ft(t)]}function tr(n){if(!n)return;let{fieldLabels:t}=Jt(),e=n.toLowerCase();return t[e]??t[e.split("-")[0]]}function er(n,t){return tr(n)?.fields[t]}function rr(n,t,e){return tr(n)?.enums[`${t}.${e}`]}function nr(n){let{listeners:t}=Jt();return t.add(n),()=>{t.delete(n)}}var wt=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=nr(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var St=class extends N{constructor(){super();this.translator=(e,r)=>this.t(e,r);new wt(this)}connectedCallback(){super.connectedCallback(),$t()}t(e,r){return Qe(this.effectiveLang(),e,r)}effectiveLang(){return Wt(this)}};var or=b`: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 sn=b`: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);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([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}`,F=[sn,or];var an="__cols",dn="__rows";function ln(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Et(n){if(Array.isArray(n)){let s=!1,i=n.map(a=>{let c=Et(a);return c!==a&&(s=!0),c});return s?i:n}if(!ln(n))return n;let t=n[an],e=n[dn];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(s=>{let i={};return t.forEach((a,c)=>{i[a]=Et(s[c])}),i});let r=!1,o={};for(let[s,i]of Object.entries(n)){let a=Et(i);a!==i&&(r=!0),o[s]=a}return r?o:n}function sr(n){return Et(n)}function ir(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var cn="pk_live_YOUR_KEY",ar={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 dr(n){if(n)return n===cn?ar.sample:n.startsWith("pk_")?void 0:ar.secret}function lr(n,t,e={}){e.warn&&console.warn(t.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:!0,composed:!0}))}var cr="https://roxyapi.com/api/v2";async function pn(n){try{let t=await n.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:!0}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:!1}}var pr={fromAttribute:n=>{if(n!=null){try{let t=JSON.parse(n);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},Y=class extends Error{constructor(e,r=null,o=!0){super(e);this.issues=r;this.worded=o}};function hr(n){return n.submitUrl?void 0:dr(n.publishableKey)}async function Xt(n,t,e){let r=hr(n);if(r)throw new Y(r.message);let o=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:hn(t,n.submitContext),signal:e}):await un(n,t,e);if(!o.ok){let s=await pn(o);throw new Y(s.message,s.issues,s.worded)}return await o.json()}function hn(n,t){return JSON.stringify(t?{...n,context:t}:n)}function un(n,t,e){let r=new URL(`${n.baseUrl??cr}${t.path}`,document.baseURI);for(let[s,i]of Object.entries(t.query??{}))i!=null&&r.searchParams.set(s,String(i));let o={Accept:"application/json"};return n.publishableKey&&(o["X-API-Key"]=n.publishableKey),t.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:o,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var kt=class{constructor(t){this.baseUrl=cr;this.worded=!0;this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=!0;let e=hr(this);if(e){this.host.error=e.message,lr(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=!0,this.host.error=null,this.host.issues=null;try{let o=await Xt(this,t,r.signal);if(r.signal.aborted)return;this.host.data=o}catch(o){if(r.signal.aborted||o?.name==="AbortError")return;o instanceof Y&&(this.host.issues=o.issues),this.worded=o instanceof Y&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=!1)}}};function ur(n,t,e,r=[]){let o={...e},s=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,h)=>{let u=o[h];return delete o[h],encodeURIComponent(String(u??""))}),i=new Set(r),a={},c={};for(let[p,h]of Object.entries(o))h===void 0||h===""||(t==="GET"||i.has(p)?a[p]=h:c[p]=h);return{path:s,method:t,query:a,body:t==="POST"?c:void 0}}function Tt(){return l`<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 At=b`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 mr=b`.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 Qt(n){return n?.length?l`<div class="interp-keywords roxy-chips">${n.map(t=>l`<span class="roxy-chip">${t}</span>`)}</div>`:d}function te(n,t){if(!n)return d;let e=(r,o)=>o?l`<p><strong>${t(r)}</strong> ${o}</p>`:d;return l`${n.summary?l`<p>${n.summary}</p>`:d} ${e("Impact:",n.impact)}${e("Timing:",n.timing)}${e("Guidance:",n.guidance)} ${Qt(n.keywords)}`}function gr(n,t,e){let r=n.filter(o=>!!o.body);return r.length===0?d:l`<section class="block" part="section readings"><h3>${e}</h3>${r.map((o,s)=>l`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${o.label}</span> ${Tt()} ${o.aside?l`<span class="interp-aside"><small>${o.aside}</small></span>`:d}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??d}</div></details>`)}</section>`}var mn="roxy-data";function gn(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var Rt=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(gn(t)&&t.classList.contains(mn))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var y=class extends St{constructor(){super();this.data=null;this.endpoint="";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.issues=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.hostLoaded=!1;this.moreLoading=!1;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,o=this.listRows();if(!(!e||!r||!o)){this.moreLoading=!0,this.moreError=null;try{let s=await Xt(this.fetcher,{...e,query:{...e.query,offset:o.length}});if(this.lastRequest!==e)return;let i=s[r];this.data={...this.data,...s,[r]:[...o,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===e&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=!1}}};this.onEdit=()=>{this.editing=!0};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(o.values),this.fetchFresh(ur(r.endpoint,r.method,o.values,o.queryKeys??[]))};new Rt(this),this.fetcher=new kt(this)}static{this.styles=[F]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=sr(this.data);r!==this.data&&(this.data=r)}(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:ir(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return l`${this.hiddenSectionsStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:!0,composed:!0})),customElements.get("roxy-data")?l`<roxy-data .data="${e}" lang="${T(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hiddenSectionsStyle(){let e=this.hideSections.split(",").map(o=>o.trim().toLowerCase()).filter(o=>/^[a-z][a-z0-9-]*$/.test(o));if(e.length===0)return d;let r=e.map(o=>`[part~="${o}"],roxy-endpoint-form::part(${o}){display:none!important}`).join("");return l`<style>${r}</style>`}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()?l`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,o){return this.hideReadings?d:gr(e,r,this.t(o??"Reading"))}renderResult(e){let r=l`<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()?l`${r}${this.renderAttribution()}`:r}renderWithForm(e){return l`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?d:this.renderErrorBanner(this.error):this.data==null?d:this.showAttribution()?l`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?d:e.length>=r?d:l`<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?l`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:d}</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=!0,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:!0,composed:!0})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let o=this.effectiveLang();o&&r.setAttribute("lang",o),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:We(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return l`<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(d):this.renderEmpty()}renderForm(){let e=this.selfFetch();return l`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${T(this.specUrl)}" publishable-key="${T(this.publishableKey)}" location-url="${T(this.locationUrl)}" submit-label="${T(this.submitLabel)}" lang="${T(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 l`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return l`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return r?l`${o}${this.renderForm()}`:o}renderErrorBanner(e){return l`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};g([v({attribute:!1})],y.prototype,"data",2),g([v({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),g([v({type:String})],y.prototype,"method",2),g([v({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),g([v({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),g([v({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),g([v({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),g([v({attribute:"submit-context",converter:pr})],y.prototype,"submitContext",2),g([v({type:String,attribute:"location-url"})],y.prototype,"locationUrl",2),g([v({type:Boolean})],y.prototype,"remember",2),g([v({type:Boolean,attribute:"hide-readings",reflect:!0})],y.prototype,"hideReadings",2),g([v({type:String,attribute:"hide-sections",reflect:!0})],y.prototype,"hideSections",2),g([v({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),g([v({type:String,attribute:"error-message"})],y.prototype,"errorMessage",2),g([v({type:String})],y.prototype,"attribution",2),g([k()],y.prototype,"loading",2),g([k()],y.prototype,"error",2),g([k()],y.prototype,"issues",2),g([k()],y.prototype,"selfFetched",2),g([k()],y.prototype,"editing",2),g([k()],y.prototype,"sticky",2),g([k()],y.prototype,"openedRow",2),g([k()],y.prototype,"openedRowId",2),g([k()],y.prototype,"moreLoading",2),g([k()],y.prototype,"moreError",2);var Z=n=>t=>{customElements.get(n)||customElements.define(n,t)};var _t=b`.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}`;function H(n,t,e){return er(n,t)??e??xt(t)}function yr(n,t,e,r){return rr(n,t,e)??r??xt(e)}var yn="Localized";function x(n,t,e){let r=n,o=r?.[`${t}${yn}`];if(typeof o=="string"&&o!=="")return o;if(e!==void 0)return e;let s=r?.[t];return typeof s=="string"?s:""}function fn(n,t,e){if(n.include?.length){let r={bodies:Be(t,n.include)};return n.strictOrbs?e("Detected with strict orbs, including {{bodies}}.",r):e("Detected with industry-standard orbs, including {{bodies}}.",r)}return n.strictOrbs?e("Detected with strict orbs, classical bodies only."):e("Detected with industry-standard orbs, classical bodies only.")}var fr={GRAND_CROSS:0,GRAND_TRINE:1,KITE:2,T_SQUARE:3,YOD:4,MYSTIC_RECTANGLE:5,STELLIUM:6},W=class extends y{renderData(t){let e="aspects"in t?t.aspects??[]:[],r="patterns"in t?t.patterns??[]:[],o="summary"in t?t.summary:void 0;if(e.length===0&&r.length===0)return this.renderEmpty();let s=q(this.effectiveLang(),"transitDate"in t?t.transitDate:"date"in t?t.date:"","time"in t?t.time:void 0,!0),i="timezone"in t?t.timezone:void 0,a="options"in t?t.options:void 0;return l`<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||s?l`<p class="subtitle roxy-label">${[e.length===1?this.t("1 aspect"):e.length>1?this.t("{{count}} aspects",{count:e.length}):"",s].filter(Boolean).join(" · ")}</p>`:d} ${typeof i=="number"&&Number.isFinite(i)?l`<dl class="roxy-facts" part="details"><div><dt>${H(this.effectiveLang(),"timezone")}</dt><dd>${S(this.effectiveLang(),i,5)}</dd></div></dl>`:d}</div>${o?this.renderSummary(o):d} ${o&&"strongest"in o&&o.strongest?this.renderStrongest(o.strongest):d} ${e.length>0?l`<div role="list" part="section aspects" aria-label="${this.t("Aspect list")}">${e.map((c,p)=>l`<div role="listitem">${this.renderAspect(c,p)}</div>`)}</div>`:d} ${r.length>0?l`<section class="patterns" part="section patterns"><h3>${this.t("Chart patterns")}</h3>${[...r].sort((c,p)=>(fr[c.kind]??9)-(fr[p.kind]??9)||(p.tightness??0)-(c.tightness??0)).map(c=>this.renderPattern(c))}</section>`:d} ${a?l`<p class="provenance">${fn(a,this.effectiveLang(),this.translator)}</p>`:d}</div>`}renderSummary(t){let e="totalAspects"in t?t.totalAspects:t.total,r=Object.entries(t.byType??{}).sort((o,s)=>s[1]-o[1]);return l`<p class="counts" part="details" role="region" aria-label="${this.t("Aspect summary")}">${typeof e=="number"?l`<span>${this.t("Total")}: ${e}</span>`:d} <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> ${r.map(([o,s])=>l`<span>${I({type:o})}: ${s}</span>`)}</p>`}renderStrongest(t){let e=R(t.planet1)??"",r=R(t.planet2)??"";return l`<div class="strongest" part="details strongest"><span class="roxy-label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph">${e}</span>${x(t,"planet1")} <span class="asp-name ${V(t)}">${x(t,"type",I(t))}</span> <span aria-hidden="true" class="glyph">${r}</span>${x(t,"planet2")} <span class="meta">${this.t("{{status}} · orb {{orb}}° · str {{strength}}",{status:t.isApplying?this.t("Applying"):this.t("Separating"),orb:S(this.effectiveLang(),t.orb,2),strength:S(this.effectiveLang(),t.strength,0)})}</span></div>`}renderAspect(t,e){let r=R(t.planet1)??"",o=R(t.planet2)??"",s=I(t),i=t.isApplying?this.t("Applying"):this.t("Separating"),a="meaning"in t?t.meaning:void 0,c="transitInterpretation"in t?t.transitInterpretation:void 0,p="aspectInterpretation"in t?t.aspectInterpretation:void 0,h=!!(a||c||p),u=l`<span aria-hidden="true" class="glyph">${r}</span>${x(t,"planet1")} <span class="asp-name ${V(t)}">${x(t,"type",s)}</span> <span aria-hidden="true" class="glyph">${o}</span>${x(t,"planet2")} <span class="meta">${this.t("{{status}} · orb {{orb}}° · str {{strength}}",{status:i,orb:S(this.effectiveLang(),t.orb,2),strength:S(this.effectiveLang(),t.strength,0)})}</span>`;return!h||this.hideReadings?l`<div class="interp-card" part="reading"><div class="static-head">${u}</div></div>`:l`<details class="interp-card" part="reading" name="aspects" ?open="${e===0}"><summary>${u}${Tt()}</summary><div class="interp-body" part="readings">${a?this.renderMeaning(a):d} ${c?this.renderTransit(c):d} ${p?te(p,this.translator):d}</div></details>`}renderMeaning(t){return l`${t.description?.short?l`<p>${t.description.short}</p>`:d} ${t.description?.long&&t.description.long!==t.description.short?l`<p>${t.description.long}</p>`:d} ${Qt(t.keywords)}`}renderTransit(t){return te(t,this.translator)}renderPattern(t){let e=t.planets??[],r=t.apex?[...e].sort((o,s)=>+(s===t.apex)-+(o===t.apex)):e;return l`<div class="pattern" part="pattern"><div class="pattern-head"><span class="pattern-name">${t.name??t.kind??this.t("Pattern")}</span> ${t.element?l`<span class="roxy-chip">${t.element}</span>`:d} ${t.modality?l`<span class="roxy-chip">${t.modality}</span>`:d} ${t.dissociate?l`<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>`:d} ${typeof t.tightness=="number"?l`<span class="pattern-tight roxy-label">${this.t("{{percent}} tight",{percent:je(this.effectiveLang(),t.tightness,0)})}</span>`:d}</div>${r.length?l`<ul class="roxy-chips">${r.map(o=>{let s=R(o),i=!!t.apex&&o===t.apex;return l`<li class="${i?"roxy-chip apex":"roxy-chip"}">${s?l`<span aria-hidden="true">${s}</span>`:d}${o}${i?l`<span>${this.t("apex")}</span>`:d}</li>`})}</ul>`:d} ${t.interpretation&&!this.hideReadings?l`<p class="pattern-interp">${t.interpretation}</p>`:d}</div>`}};W.endpoints=Fe,W.styles=[F,_t,At,mr,Vt,b`.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)}`],W=g([Z("roxy-aspects-table")],W);function _(n){let t=n%360;return t<0?t+360:t}function ee(n){let t=_(n),e=Math.floor(t/30)%12,r=t%30,o=Math.floor(r),s=(r-o)*60,i=Math.floor(s),a=Math.round((s-i)*60);return{sign:at[e]??"Aries",signIndex:e,degree:o,minute:i,second:a}}function re(n,t){let{sign:e,degree:r,minute:o}=ee(n);return`${r}° ${t||e} ${String(o).padStart(2,"0")}'`}function ne(n){return bn(_(n)%30)}function xn(n){let t=Math.floor(n);return{degree:t,minute:Math.floor((n-t)*60)}}function bn(n){let{degree:t,minute:e}=xn(n);return`${t}°${String(e).padStart(2,"0")}'`}function xr(n){return _(n+180)}function br(n,t){let e=_(n),r=_(t)-e;return r<0&&(r+=360),_(e+r/2)}function vr(n,t,e){let r=n.filter(p=>Number.isFinite(t(p))).map(p=>{let h=_(t(p));return{item:p,longitude:h,displayLongitude:h}}).sort((p,h)=>p.longitude-h.longitude),o=r.length;if(o<2)return r;let s=0,i=-1;for(let p=0;p<o;p++){let h=r[(p+o-1)%o],$=(r[p].longitude-h.longitude+360)%360;$>i&&(i=$,s=p)}let a=r[s],c=a.longitude;for(let p=1;p<o;p++){let h=r[(s+p)%o],u=typeof e=="function"?e(a.item,h.item):e,$=h.longitude+(s+p>=o?360:0);c=Math.max($,c+u),h.displayLongitude=_(c),a=h}return r}var oe=2;function se(n,t,e,r){let o=n*Math.PI/180,s=(i,a)=>a>1e-9?(i+r)/a:Number.POSITIVE_INFINITY;return Math.min(s((t.width+e.width)/2,Math.abs(Math.cos(o))),s((t.height+e.height)/2,Math.abs(Math.sin(o))))}function ie(n,t){return t>0?n/t*(180/Math.PI):0}function w(n,t,e,r){let o=r*Math.PI/180;return{x:n+e*Math.cos(o),y:t+e*Math.sin(o)}}var J=class extends y{rows(){let t=this.data;if(!t)return[];let e=(t.planets??[]).map(o=>({name:o.name,label:x(o,"name"),sign:o.sign,signLabel:x(o,"sign"),longitude:o.longitude,latitude:o.latitude,house:o.house,speed:o.speed,isRetrograde:o.isRetrograde,dignity:o.dignity})),r=[["Ascendant",t.ascendant],["Midheaven",t.midheaven],["Part of Fortune",t.partOfFortune],["Vertex",t.vertex]];for(let[o,s]of r)s&&e.push({name:o,label:this.t(o),sign:s.sign,signLabel:x(s,"sign"),longitude:s.longitude,house:"house"in s?s.house:void 0,sect:"sect"in s?s.sect:void 0,isPoint:!0});return e}renderData(t){if(!t.planets)return this.renderEmpty();let e=this.rows(),r=t.birthDetails,o=e.some(a=>Number.isFinite(a.latitude)),s=e.some(a=>a.sect),i=["latitude","longitude","timezone"];return l`<div class="wrap" part="card"><header part="header"><h2>${this.t("Planetary positions")}</h2>${r?l`<div part="details"><p class="roxy-label">${q(this.effectiveLang(),r.date,r.time,!0)}</p><dl class="roxy-facts">${i.map(a=>l`<div><dt>${H(this.effectiveLang(),a)}</dt><dd>${S(this.effectiveLang(),r[a],5)}</dd></div>`)}</dl></div>`:d}</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>${o?l`<th scope="col">${H(this.effectiveLang(),"latitude")}</th>`:d}<th scope="col">${this.t("House")}</th><th scope="col">${this.t("Dignity")}</th><th scope="col">${this.t("Motion")}</th>${s?l`<th scope="col">${this.t("Sect")}</th>`:d}</tr></thead><tbody>${e.map(a=>{let c=R(a.name)??"",p=a.sect==="day"?this.t("Daytime"):a.sect==="night"?this.t("Night"):"",h=it(a.sign)??"",u=typeof a.speed=="number"?S(this.effectiveLang(),a.speed,6):"";return l`<tr class="${a.isPoint?"point":""}"><td class="body">${c?l`<span class="glyph">${c}</span>`:d}${a.label}</td><td>${h?l`<span class="glyph">${h}</span>`:d}${a.signLabel??""}</td><td>${typeof a.longitude=="number"?re(a.longitude,a.signLabel):""}</td><td>${typeof a.longitude=="number"?`${S(this.effectiveLang(),a.longitude,5)}°`:d}</td>${o?l`<td>${typeof a.latitude=="number"?`${S(this.effectiveLang(),a.latitude,5)}°`:d}</td>`:d}<td>${typeof a.house=="number"?a.house:""}</td><td class="dignity">${a.dignity?O(a.dignity):""}</td><td>${u?l`${u}${this.t("°/day")}`:d} ${a.isRetrograde?l`<span class="retro">℞</span>`:d}</td>${s?l`<td>${p}</td>`:d}</tr>`})}</tbody></table></div>${t.houses?.length?l`<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>${t.houses.map(a=>l`<tr><th scope="row">${S(this.effectiveLang(),a.number,0)}</th><td>${x(a,"sign")}</td><td>${re(a.longitude,x(a,"sign"))}</td><td>${S(this.effectiveLang(),a.longitude,5)}°</td></tr>`)}</tbody></table></div></details>`:d}</div>`}};J.endpoints=ze,J.styles=[F,_t,b`.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)}`],J=g([Z("roxy-western-planets-table")],J);var Ct=class{constructor(t){this.host=t;this.state="closed";this.zoom=1;this.pressedBy="";this.press=t=>{this.pressedBy=t.pointerType};this.openOnMouse=t=>{let e=this.pressedBy==="mouse";this.pressedBy="",e&&(t.target?.closest?.("a, button, summary, input, select, textarea")||getSelection()?.toString()||this.open())};t.addController(this)}hostUpdated(){let t=this.host.renderRoot.querySelector(".roxy-chart-dialog");if(!t)this.reset();else if(t.isConnected&&this.state!=="closed"){this.state==="opening"&&(this.state="open",t.open||t.showModal());let e=t.querySelector(".roxy-chart-scroll");t.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(t){let e=this.host.renderRoot.querySelector(".roxy-chart-scroll");this.position=t===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=t===0?1:Math.min(3,Math.max(1,this.zoom+t)),this.host.requestUpdate()}renderChartViewport(t,e,r){return l`<div class="roxy-chart-view"><div class="roxy-chart-hit" @pointerdown="${this.press}" @click="${this.openOnMouse}">${t}</div><div class="roxy-chart-tools" part="chart-controls"><button type="button" @click="${()=>this.open()}">${r("Enlarge chart")}</button></div><dialog class="roxy-chart-dialog" part="chart-dialog" aria-label="${e}" @close="${()=>{this.reset(),this.host.requestUpdate()}}">${this.state!=="closed"?l`<div class="roxy-chart-bar"><strong>${e}</strong><div class="roxy-chart-tools"><button type="button" aria-label="${r("Zoom out")}" ?disabled="${this.zoom===1}" @click="${()=>this.resize(-.5)}">−</button> <button type="button" @click="${()=>this.resize(0)}">${r("Reset zoom")}</button> <button type="button" aria-label="${r("Zoom in")}" ?disabled="${this.zoom===3}" @click="${()=>this.resize(.5)}">+</button> <button type="button" @click="${()=>this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}">${r("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}`}">${t}</div></div>`:d}</dialog></div>`}},$r=b`.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}`;var Pt=class{constructor(t,e){this.host=t,this.marks=e,this.size=Object.fromEntries(Object.keys(e).map(r=>[r,e[r][1]])),t.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 t=!1;for(let e of Object.keys(this.marks)){let[r]=this.marks[e],o=vn(this.host.renderRoot,r,this.size[e]);o!==this.size[e]&&(this.size[e]=o,t=!0)}t&&this.host.requestUpdate()}};function vn(n,t,e){let r=n?.querySelector(t);if(!r||typeof getComputedStyle!="function")return e;let o=Number.parseFloat(getComputedStyle(r).fontSize);return Number.isFinite(o)&&o>0?o:e}var de=640,m=de/2,$n=212,wn=226,dt=204,Sn=186,ae=168,wr=250,Sr=142,lt=78,En=166,le={glyph:18,degree:10},kn=.95,Tn=1.85,An=1.25,Rn=.9,_n=8,Cn=4,Ot=(n,t)=>R(n)??t,Lt=n=>{let t=new Map;for(let e of n)t.set(O(e.name),e);return t},C=class extends y{constructor(){super(...arguments);this.viewport=new Ct(this);this.heading="Transits";this.type=new Pt(this,{glyph:[".natal-glyph",le.glyph],degree:[".planet-deg",le.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 r=e.map((s,i)=>typeof s=="number"?{number:i+1,longitude:s}:{number:Number(s?.number),longitude:Number(s?.longitude)}).sort((s,i)=>s.number-i.number);return r.every((s,i)=>s.number===i+1&&Number.isFinite(s.longitude))?r:null}toAngle(e){return 180+(this.effectiveAscendant??this.cusps?.[0]?.longitude??0)-e}renderData(e){let r=e.natalPlanets??[],o=e.transitPlanets??[],s=e.aspects??[],i=q(this.effectiveLang(),e.transitDate),a=s.length>0?this.t("Aspects to the natal chart: {{count}}",{count:s.length}):"",c=[...r,...o].some(p=>Number.isFinite(p.house));return l`<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>${i||a?l`<p class="roxy-label">${[i,a].filter(Boolean).join(" · ")}</p>`:d}</div>${this.renderWheel(r,o,s)} ${this.renderLegend(r,o,s,c?e.houseSystem:void 0)} ${this.renderSummary(e.summary)} ${this.renderPositions(r,o,c)} ${this.renderPositionDetails(e)} ${this.renderAspectDetails(s)}</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° 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,r,o){return this.viewport.renderChartViewport(l`<svg viewBox="0 0 ${de} ${de}" 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="${m}" cy="${m}" r="${dt}" stroke-width="1.5"/><circle class="wheel-line" cx="${m}" cy="${m}" r="${ae}" stroke-width="0.8"/><circle class="wheel-line" cx="${m}" cy="${m}" r="${lt}" stroke-width="0.5"/>${this.renderTicks()} ${this.renderSpokes()} ${this.renderSigns()} ${this.renderHouses()} ${this.renderAspectLines(e,r,o)} ${this.renderRing(e,Sr,(s,i,a)=>Sr-se(s,i,a,oe),"natal-glyph",this.t("Natal"),1)} ${this.renderRing(r,wr,(s,i,a)=>wr+se(s,i,a,oe),"transit-glyph",this.t("Transiting"),-1)} ${this.renderAxis()}</svg>`,this.t("Natal and transit bi-wheel"),this.translator)}renderTicks(){let e=[];for(let r=0;r<360;r+=5){let o=this.toAngle(r),s=r%30===0,i=w(m,m,s?ae:dt-5,o),a=w(m,m,dt,o);e.push(A`<line class=${s?"tick tick-major":"tick"} x1=${i.x} y1=${i.y} x2=${a.x} y2=${a.y} stroke-width=${s?1:.5} />`)}return e}renderSpokes(){return at.map((e,r)=>{let o=this.toAngle(r*30),s=w(m,m,lt,o),i=w(m,m,dt,o);return A`<line class="wheel-line" x1=${s.x} y1=${s.y} x2=${i.x} y2=${i.y} stroke-width="0.6" />`})}renderHouses(){let e=this.cusps;return e?e.map((r,o)=>{let s=e[(o+1)%12],i=this.toAngle(r.longitude),a=w(m,m,lt,i),c=w(m,m,ae,i),p=w(m,m,En,this.toAngle(br(r.longitude,s?.longitude??r.longitude+30)));return A`<g>
|
|
1
|
+
var RoxyUI_transit_wheel=(()=>{var pt=Object.defineProperty;var fe=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Rr=Object.prototype.hasOwnProperty;var _r=(n,t)=>{for(var e in t)pt(n,e,{get:t[e],enumerable:!0})},Cr=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ar(t))!Rr.call(n,o)&&o!==e&&pt(n,o,{get:()=>t[o],enumerable:!(r=fe(t,o))||r.enumerable});return n};var Pr=n=>Cr(pt({},"__esModule",{value:!0}),n),g=(n,t,e,r)=>{for(var o=r>1?void 0:r?fe(t,e):t,s=n.length-1,i;s>=0;s--)(i=n[s])&&(o=(r?i(t,e,o):i(o))||o);return r&&o&&pt(t,e,o),o};var Pn={};_r(Pn,{ROXY_UI_TOKENS_STYLE_ID:()=>vt,RoxyTransitWheel:()=>C,TRANSIT_TYPE_SIZES:()=>le,injectRoxyTokens:()=>$t});var ht=globalThis,ut=ht.ShadowRoot&&(ht.ShadyCSS===void 0||ht.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Nt=Symbol(),xe=new WeakMap,X=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Nt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(ut&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=xe.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&xe.set(e,t))}return t}toString(){return this.cssText}},be=n=>new X(typeof n=="string"?n:n+"",void 0,Nt),b=(n,...t)=>{let e=n.length===1?n[0]:t.reduce((r,o,s)=>r+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[s+1],n[0]);return new X(e,n,Nt)},ve=(n,t)=>{if(ut)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),o=ht.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=e.cssText,n.appendChild(r)}},Ft=ut?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return be(e)})(n):n;var{is:Lr,defineProperty:Or,getOwnPropertyDescriptor:Nr,getOwnPropertyNames:Fr,getOwnPropertySymbols:Mr,getPrototypeOf:zr}=Object,mt=globalThis,$e=mt.trustedTypes,Dr=$e?$e.emptyScript:"",Ur=mt.reactiveElementPolyfillSupport,Q=(n,t)=>n,tt={toAttribute(n,t){switch(t){case Boolean:n=n?Dr:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){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}},gt=(n,t)=>!Lr(n,t),we={attribute:!0,type:String,converter:tt,reflect:!1,useDefault:!1,hasChanged:gt};Symbol.metadata??=Symbol("metadata"),mt.litPropertyMetadata??=new WeakMap;var P=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=we){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(t,r,e);o!==void 0&&Or(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){let{get:o,set:s}=Nr(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:o,set(i){let a=o?.call(this);s?.call(this,i),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??we}static _$Ei(){if(this.hasOwnProperty(Q("elementProperties")))return;let t=zr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Q("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Q("properties"))){let e=this.properties,r=[...Fr(e),...Mr(e)];for(let o of r)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,o]of e)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let o=this._$Eu(e,r);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let r=new Set(t.flat(1/0).reverse());for(let o of r)e.unshift(Ft(o))}else t!==void 0&&e.push(Ft(t));return e}static _$Eu(t,e){let r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ve(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$ET(t,e){let r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(o!==void 0&&r.reflect===!0){let s=(r.converter?.toAttribute!==void 0?r.converter:tt).toAttribute(e,r.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){let r=this.constructor,o=r._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=r.getPropertyOptions(o),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:tt;this._$Em=o;let a=i.fromAttribute(e,s.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,e,r,o=!1,s){if(t!==void 0){let i=this.constructor;if(o===!1&&(s=this[t]),r??=i.getPropertyOptions(t),!((r.hasChanged??gt)(s,e)||r.useDefault&&r.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:o,wrapped:s},i){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),s!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,s]of r){let{wrapped:i}=s,a=this[o];i!==!0||this._$AL.has(o)||a===void 0||this.C(o,void 0,s,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};P.elementStyles=[],P.shadowRootOptions={mode:"open"},P[Q("elementProperties")]=new Map,P[Q("finalized")]=new Map,Ur?.({ReactiveElement:P}),(mt.reactiveElementVersions??=[]).push("2.1.2");var Gt=globalThis,Se=n=>n,yt=Gt.trustedTypes,Ee=yt?yt.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ce="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,Pe="?"+O,Ir=`<${Pe}>`,D=document,rt=()=>D.createComment(""),nt=n=>n===null||typeof n!="object"&&typeof n!="function",Bt=Array.isArray,Hr=n=>Bt(n)||typeof n?.[Symbol.iterator]=="function",Mt=`[
|
|
2
|
+
\f\r]`,et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Te=/-->/g,ke=/>/g,M=RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ae=/'/g,Re=/"/g,Le=/^(?:script|style|textarea|title)$/i,jt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),l=jt(1),A=jt(2),zn=jt(3),U=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),_e=new WeakMap,z=D.createTreeWalker(D,129);function Oe(n,t){if(!Bt(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ee!==void 0?Ee.createHTML(t):t}var Gr=(n,t)=>{let e=n.length-1,r=[],o,s=t===2?"<svg>":t===3?"<math>":"",i=et;for(let a=0;a<e;a++){let c=n[a],p,h,u=-1,$=0;for(;$<c.length&&(i.lastIndex=$,h=i.exec(c),h!==null);)$=i.lastIndex,i===et?h[1]==="!--"?i=Te:h[1]!==void 0?i=ke:h[2]!==void 0?(Le.test(h[2])&&(o=RegExp("</"+h[2],"g")),i=M):h[3]!==void 0&&(i=M):i===M?h[0]===">"?(i=o??et,u=-1):h[1]===void 0?u=-2:(u=i.lastIndex-h[2].length,p=h[1],i=h[3]===void 0?M:h[3]==='"'?Re:Ae):i===Re||i===Ae?i=M:i===Te||i===ke?i=et:(i=M,o=void 0);let f=i===M&&n[a+1].startsWith("/>")?" ":"";s+=i===et?c+Ir:u>=0?(r.push(p),c.slice(0,u)+Ce+c.slice(u)+O+f):c+O+(u===-2?a:f)}return[Oe(n,s+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},ot=class n{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let s=0,i=0,a=t.length-1,c=this.parts,[p,h]=Gr(t,e);if(this.el=n.createElement(p,r),z.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=z.nextNode())!==null&&c.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let u of o.getAttributeNames())if(u.endsWith(Ce)){let $=h[i++],f=o.getAttribute(u).split(O),E=/([.?@])?(.*)/.exec($);c.push({type:1,index:s,name:E[2],strings:f,ctor:E[1]==="."?Dt:E[1]==="?"?Ut:E[1]==="@"?It:B}),o.removeAttribute(u)}else u.startsWith(O)&&(c.push({type:6,index:s}),o.removeAttribute(u));if(Le.test(o.tagName)){let u=o.textContent.split(O),$=u.length-1;if($>0){o.textContent=yt?yt.emptyScript:"";for(let f=0;f<$;f++)o.append(u[f],rt()),z.nextNode(),c.push({type:2,index:++s});o.append(u[$],rt())}}}else if(o.nodeType===8)if(o.data===Pe)c.push({type:2,index:s});else{let u=-1;for(;(u=o.data.indexOf(O,u+1))!==-1;)c.push({type:7,index:s}),u+=O.length-1}s++}}static createElement(t,e){let r=D.createElement("template");return r.innerHTML=t,r}};function G(n,t,e=n,r){if(t===U)return t;let o=r!==void 0?e._$Co?.[r]:e._$Cl,s=nt(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(n),o._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=o:e._$Cl=o),o!==void 0&&(t=G(n,o._$AS(n,t.values),o,r)),t}var zt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??D).importNode(e,!0);z.currentNode=o;let s=z.nextNode(),i=0,a=0,c=r[0];for(;c!==void 0;){if(i===c.index){let p;c.type===2?p=new st(s,s.nextSibling,this,t):c.type===1?p=new c.ctor(s,c.name,c.strings,this,t):c.type===6&&(p=new Ht(s,this,t)),this._$AV.push(p),c=r[++a]}i!==c?.index&&(s=z.nextNode(),i++)}return z.currentNode=D,o}p(t){let e=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}},st=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),nt(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Hr(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&nt(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,o=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=ot.createElement(Oe(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{let s=new zt(o,this),i=s.u(this.options);s.p(e),this.T(i),this._$AH=s}}_$AC(t){let e=_e.get(t.strings);return e===void 0&&_e.set(t.strings,e=new ot(t)),e}k(t){Bt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,o=0;for(let s of t)o===e.length?e.push(r=new n(this.O(rt()),this.O(rt()),this,this.options)):r=e[o],r._$AI(s),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=Se(t).nextSibling;Se(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},B=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,s){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=d}_$AI(t,e=this,r,o){let s=this.strings,i=!1;if(s===void 0)t=G(this,t,e,0),i=!nt(t)||t!==this._$AH&&t!==U,i&&(this._$AH=t);else{let a=t,c,p;for(t=s[0],c=0;c<s.length-1;c++)p=G(this,a[r+c],e,c),p===U&&(p=this._$AH[c]),i||=!nt(p)||p!==this._$AH[c],p===d?t=d:t!==d&&(t+=(p??"")+s[c+1]),this._$AH[c]=p}i&&!o&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Dt=class extends B{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},Ut=class extends B{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},It=class extends B{constructor(t,e,r,o,s){super(t,e,r,o,s),this.type=5}_$AI(t,e=this){if((t=G(this,t,e,0)??d)===U)return;let r=this._$AH,o=t===d&&r!==d||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==d&&(r===d||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Ht=class{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}};var Br=Gt.litHtmlPolyfillSupport;Br?.(ot,st),(Gt.litHtmlVersions??=[]).push("3.3.3");var Ne=(n,t,e)=>{let r=e?.renderBefore??t,o=r._$litPart$;if(o===void 0){let s=e?.renderBefore??null;r._$litPart$=o=new st(t.insertBefore(rt(),s),s,void 0,e??{})}return o._$AI(n),o};var Kt=globalThis,N=class extends P{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ne(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return U}};N._$litElement$=!0,N.finalized=!0,Kt.litElementHydrateSupport?.({LitElement:N});var jr=Kt.litElementPolyfillSupport;jr?.({LitElement:N});(Kt.litElementVersions??=[]).push("4.2.2");var Fe=[{endpoint:"astrology/aspects",method:"POST"},{endpoint:"astrology/transit-aspects",method:"POST"},{endpoint:"astrology/aspect-patterns",method:"POST"}];var Me=[{endpoint:"astrology/transit-aspects",method:"POST"}];var ze=[{endpoint:"astrology/natal-chart",method:"POST"}];function ft(n){return n.toLowerCase().replace(/[\s_-]+/g," ").trim()}function L(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}function xt(n){return n.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var De=(n,t)=>t?n[ft(t)]:void 0,Kr={sun:"☉",moon:"☽",mercury:"☿",venus:"♀",earth:"♁",mars:"♂",jupiter:"♃",saturn:"♄",uranus:"♅",neptune:"♆",pluto:"♇",rahu:"☊",ketu:"☋",ascendant:"Asc",midheaven:"MC","part of fortune":"⊗",vertex:"Vx",lagna:"La","north node":"☊","south node":"☋",chiron:"⚷",lilith:"⚸","black moon lilith":"⚸"},R=n=>De(Kr,n);var qr={aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpio:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓"},it=n=>De(qr,n);var at=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"];var qt=/^\d{4}-\d{2}-\d{2}$/,Vr=/^\d{4}-\d{2}$/,He=/^\d{2}:\d{2}(:\d{2})?$/,Yr=/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/,Ue=new Map;function j(n){if(!n)return["en"];let t=Ue.get(n);if(t)return[t,"en"];let e="en";try{e=Intl.getCanonicalLocales(n)[0]??"en"}catch{e="en"}return Ue.set(n,e),[e,"en"]}var Ie=new Map;function Wr(n){let t=n??"",e=Ie.get(t);if(e)return e;let o={hour:new Intl.DateTimeFormat(j(n),{timeStyle:"short",timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2e3,0,1,1))).find(s=>s.type==="hour")?.value?.length===2?"2-digit":"numeric",minute:"2-digit"};return Ie.set(t,o),o}function Ge(n){let t=He.test(n)?`1970-01-01T${n}`:qt.test(n)?`${n}T00:00:00`:Vr.test(n)?`${n}-01T00:00:00`:Yr.test(n)?n.replace(" ","T"):null;return t?{d:new Date(`${t}Z`),timeZone:"UTC"}:{d:new Date(n)}}function Zr(n,t){if(typeof t!="string"||t.length===0)return"";let{d:e,timeZone:r}=Ge(t);return Number.isNaN(e.getTime())?t:e.toLocaleDateString(j(n),{month:"short",day:"numeric",year:"numeric",timeZone:r})}function Be(n,t){let e=t.filter(Boolean);return e.length<2?e[0]??"":new Intl.ListFormat(j(n),{style:"long",type:"conjunction"}).format(e)}function S(n,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":t.toLocaleString(j(n),{maximumFractionDigits:e})}function je(n,t,e=1){return typeof t!="number"||!Number.isFinite(t)?"":(t/100).toLocaleString(j(n),{style:"percent",maximumFractionDigits:e})}function K(n){return(n.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}function I(n){return L(K(n))}function q(n,t,e,r=!1){let o=typeof t=="string"&&qt.test(t)&&typeof e=="string"&&He.test(e)?`${t}T${e}`:t;if(typeof o!="string"||o.length===0)return"";if(qt.test(o))return Zr(n,o);let{d:s,timeZone:i}=Ge(o);return Number.isNaN(s.getTime())?o:s.toLocaleString(j(n),{month:"short",day:"numeric",year:"numeric",...Wr(n),...r?{second:"2-digit"}:{},timeZone:i})}var Vt=b`.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}`,Ve=[b`.aspect{stroke:var(--_aspect,var(--roxy-muted));stroke-width:.8px;fill:none;opacity:.55;stroke-opacity:.7}`,Vt],Jr=new Set(["conjunction","sextile","square","trine","opposition"]);function Yt(n){return Jr.has(K(n))}function V(n){return`aspect-${K(n)}`}var Ke=.3,Xr=.9,qe=.5,Qr=1.8;function Ye(n){let{strength:t}=n;if(typeof t!="number"||!Number.isFinite(t))return;let e=Math.min(1,Math.max(0,t/100)),r=Ke+e*(Xr-Ke),o=qe+e*(Qr-qe);return`opacity:${r.toFixed(3)};stroke-width:${o.toFixed(3)}`}var tn={attribute:!0,type:String,converter:tt,reflect:!1,hasChanged:gt},en=(n=tn,t,e)=>{let{kind:r,metadata:o}=e,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),s.set(e.name,n),r==="accessor"){let{name:i}=e;return{set(a){let c=t.get.call(this);t.set.call(this,a),this.requestUpdate(i,c,n,!0,a)},init(a){return a!==void 0&&this.C(i,void 0,n,a),a}}}if(r==="setter"){let{name:i}=e;return function(a){let c=this[i];t.call(this,a),this.requestUpdate(i,c,n,!0,a)}}throw Error("Unsupported decorator location: "+r)};function v(n){return(t,e)=>typeof e=="object"?en(n,t,e):((r,o,s)=>{let i=o.hasOwnProperty(s);return o.constructor.createProperty(s,r),i?Object.getOwnPropertyDescriptor(o,s):void 0})(n,t,e)}function T(n){return v({...n,state:!0,attribute:!1})}var k=n=>n??d;var We=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Zt(n){if(n.lang)return n.lang;if(typeof document>"u")return;let t=n.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var rn={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Wt(n){let t=n.toLowerCase();return We.find(e=>e.toLowerCase()===t)}function Ze(n){let t=Zt(n);if(!t)return;let e=Wt(t);if(e)return e;let r=t.toLowerCase().split("-"),o=r[0];if(o==="zh"){let s=r.find(i=>i==="hans"||i==="hant")??rn[r[1]??""];return s?Wt(`zh-${s}`):void 0}return Wt(o)}var Je='@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-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--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-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)}}: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)}: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)}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var vt="roxy-ui-tokens";function $t(){if(typeof document>"u")return null;let n=document.getElementById(vt);if(n)return n;let t=document.createElement("style");return t.id=vt,t.textContent=Je,document.head.prepend(t),t}var Xe="__ROXY_UI_I18N__";function Jt(){let n=globalThis,t=n[Xe];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return n[Xe]=e,e}function nn(n,t){return t?n.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):n}function Qe(n,t,e){return nn(on(n,t)??t,e)}function on(n,t){if(!n)return;let{catalogs:e}=Jt(),r=n.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[ft(t)]}function tr(n){if(!n)return;let{fieldLabels:t}=Jt(),e=n.toLowerCase();return t[e]??t[e.split("-")[0]]}function er(n,t){return tr(n)?.fields[t]}function rr(n,t,e){return tr(n)?.enums[`${t}.${e}`]}function nr(n){let{listeners:t}=Jt();return t.add(n),()=>{t.delete(n)}}var wt=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=nr(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var St=class extends N{constructor(){super();this.translator=(e,r)=>this.t(e,r);new wt(this)}connectedCallback(){super.connectedCallback(),$t()}t(e,r){return Qe(this.effectiveLang(),e,r)}effectiveLang(){return Zt(this)}};var or=b`: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 sn=b`: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);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([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}`,F=[sn,or];var an="__cols",dn="__rows";function ln(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Et(n){if(Array.isArray(n)){let s=!1,i=n.map(a=>{let c=Et(a);return c!==a&&(s=!0),c});return s?i:n}if(!ln(n))return n;let t=n[an],e=n[dn];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(n).length===2)return e.map(s=>{let i={};return t.forEach((a,c)=>{i[a]=Et(s[c])}),i});let r=!1,o={};for(let[s,i]of Object.entries(n)){let a=Et(i);a!==i&&(r=!0),o[s]=a}return r?o:n}function sr(n){return Et(n)}function ir(n,t){return n.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,o])=>t[r]===o))??n[0]}var cn="pk_live_YOUR_KEY",ar={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 dr(n){if(n)return n===cn?ar.sample:n.startsWith("pk_")?void 0:ar.secret}function lr(n,t,e={}){e.warn&&console.warn(t.message),n.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:!0,composed:!0}))}var cr="https://roxyapi.com/api/v2";async function pn(n){try{let t=await n.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:!0}}}catch{}return{message:`Request failed (${n.status})`,issues:null,worded:!1}}var pr={fromAttribute:n=>{if(n!=null){try{let t=JSON.parse(n);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},Y=class extends Error{constructor(e,r=null,o=!0){super(e);this.issues=r;this.worded=o}};function hr(n){return n.submitUrl?void 0:dr(n.publishableKey)}async function Xt(n,t,e){let r=hr(n);if(r)throw new Y(r.message);let o=n.submitUrl?await fetch(n.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:hn(t,n.submitContext),signal:e}):await un(n,t,e);if(!o.ok){let s=await pn(o);throw new Y(s.message,s.issues,s.worded)}return await o.json()}function hn(n,t){return JSON.stringify(t?{...n,context:t}:n)}function un(n,t,e){let r=new URL(`${n.baseUrl??cr}${t.path}`,document.baseURI);for(let[s,i]of Object.entries(t.query??{}))i!=null&&r.searchParams.set(s,String(i));let o={Accept:"application/json"};return n.publishableKey&&(o["X-API-Key"]=n.publishableKey),t.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:o,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var Tt=class{constructor(t){this.baseUrl=cr;this.worded=!0;this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=!0;let e=hr(this);if(e){this.host.error=e.message,lr(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=!0,this.host.error=null,this.host.issues=null;try{let o=await Xt(this,t,r.signal);if(r.signal.aborted)return;this.host.data=o}catch(o){if(r.signal.aborted||o?.name==="AbortError")return;o instanceof Y&&(this.host.issues=o.issues),this.worded=o instanceof Y&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=!1)}}};function ur(n,t,e,r=[]){let o={...e},s=`/${n.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(p,h)=>{let u=o[h];return delete o[h],encodeURIComponent(String(u??""))}),i=new Set(r),a={},c={};for(let[p,h]of Object.entries(o))h===void 0||h===""||(t==="GET"||i.has(p)?a[p]=h:c[p]=h);return{path:s,method:t,query:a,body:t==="POST"?c:void 0}}function kt(){return l`<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 At=b`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 mr=b`.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 Qt(n){return n?.length?l`<div class="interp-keywords roxy-chips">${n.map(t=>l`<span class="roxy-chip">${t}</span>`)}</div>`:d}function te(n,t){if(!n)return d;let e=(r,o)=>o?l`<p><strong>${t(r)}</strong> ${o}</p>`:d;return l`${n.summary?l`<p>${n.summary}</p>`:d} ${e("Impact:",n.impact)}${e("Timing:",n.timing)}${e("Guidance:",n.guidance)} ${Qt(n.keywords)}`}function gr(n,t,e){let r=n.filter(o=>!!o.body);return r.length===0?d:l`<section class="block" part="section readings"><h3>${e}</h3>${r.map((o,s)=>l`<details class="interp-card" part="reading" name="${t}" ?open="${s===0}"><summary><span class="interp-lead">${o.label}</span> ${kt()} ${o.aside?l`<span class="interp-aside"><small>${o.aside}</small></span>`:d}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??d}</div></details>`)}</section>`}var mn="roxy-data";function gn(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var Rt=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){if(this.host.data!=null)return;let t=this.read();t!==void 0&&(this.host.data=t,this.host.requestUpdate())}read(){let t=this.findInlineScript();return t?this.parse(t.textContent):void 0}findInlineScript(){for(let t of Array.from(this.host.children))if(gn(t)&&t.classList.contains(mn))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var y=class extends St{constructor(){super();this.data=null;this.endpoint="";this.remember=!1;this.hideReadings=!1;this.hideSections="";this.loading=!1;this.error=null;this.issues=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.hostLoaded=!1;this.moreLoading=!1;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,o=this.listRows();if(!(!e||!r||!o)){this.moreLoading=!0,this.moreError=null;try{let s=await Xt(this.fetcher,{...e,query:{...e.query,offset:o.length}});if(this.lastRequest!==e)return;let i=s[r];this.data={...this.data,...s,[r]:[...o,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===e&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=!1}}};this.onEdit=()=>{this.editing=!0};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let o=e.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(o.values),this.fetchFresh(ur(r.endpoint,r.method,o.values,o.queryKeys??[]))};new Rt(this),this.fetcher=new Tt(this)}static{this.styles=[F]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=sr(this.data);r!==this.data&&(this.data=r)}(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:ir(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return l`${this.hiddenSectionsStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:!0,composed:!0})),customElements.get("roxy-data")?l`<roxy-data .data="${e}" lang="${k(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hiddenSectionsStyle(){let e=this.hideSections.split(",").map(o=>o.trim().toLowerCase()).filter(o=>/^[a-z][a-z0-9-]*$/.test(o));if(e.length===0)return d;let r=e.map(o=>`[part~="${o}"],roxy-endpoint-form::part(${o}){display:none!important}`).join("");return l`<style>${r}</style>`}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()?l`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,o){return this.hideReadings?d:gr(e,r,this.t(o??"Reading"))}renderResult(e){let r=l`<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()?l`${r}${this.renderAttribution()}`:r}renderWithForm(e){return l`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?d:this.renderErrorBanner(this.error):this.data==null?d:this.showAttribution()?l`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?d:e.length>=r?d:l`<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?l`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:d}</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=!0,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:!0,composed:!0})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let o=this.effectiveLang();o&&r.setAttribute("lang",o),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:Ze(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return l`<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(d):this.renderEmpty()}renderForm(){let e=this.selfFetch();return l`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${k(this.specUrl)}" publishable-key="${k(this.publishableKey)}" location-url="${k(this.locationUrl)}" submit-label="${k(this.submitLabel)}" lang="${k(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 l`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return l`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let o=this.renderErrorBanner(e);return r?l`${o}${this.renderForm()}`:o}renderErrorBanner(e){return l`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};g([v({attribute:!1})],y.prototype,"data",2),g([v({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),g([v({type:String})],y.prototype,"method",2),g([v({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),g([v({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),g([v({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),g([v({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),g([v({attribute:"submit-context",converter:pr})],y.prototype,"submitContext",2),g([v({type:String,attribute:"location-url"})],y.prototype,"locationUrl",2),g([v({type:Boolean})],y.prototype,"remember",2),g([v({type:Boolean,attribute:"hide-readings",reflect:!0})],y.prototype,"hideReadings",2),g([v({type:String,attribute:"hide-sections",reflect:!0})],y.prototype,"hideSections",2),g([v({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),g([v({type:String,attribute:"error-message"})],y.prototype,"errorMessage",2),g([v({type:String})],y.prototype,"attribution",2),g([T()],y.prototype,"loading",2),g([T()],y.prototype,"error",2),g([T()],y.prototype,"issues",2),g([T()],y.prototype,"selfFetched",2),g([T()],y.prototype,"editing",2),g([T()],y.prototype,"sticky",2),g([T()],y.prototype,"openedRow",2),g([T()],y.prototype,"openedRowId",2),g([T()],y.prototype,"moreLoading",2),g([T()],y.prototype,"moreError",2);var W=n=>t=>{customElements.get(n)||customElements.define(n,t)};var _t=b`.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}`;function H(n,t,e){return er(n,t)??e??xt(t)}function yr(n,t,e,r){return rr(n,t,e)??r??xt(e)}var yn="Localized";function x(n,t,e){let r=n,o=r?.[`${t}${yn}`];if(typeof o=="string"&&o!=="")return o;if(e!==void 0)return e;let s=r?.[t];return typeof s=="string"?s:""}function fn(n,t,e){if(n.include?.length){let r={bodies:Be(t,n.include)};return n.strictOrbs?e("Detected with strict orbs, including {{bodies}}.",r):e("Detected with industry-standard orbs, including {{bodies}}.",r)}return n.strictOrbs?e("Detected with strict orbs, classical bodies only."):e("Detected with industry-standard orbs, classical bodies only.")}var fr={GRAND_CROSS:0,GRAND_TRINE:1,KITE:2,T_SQUARE:3,YOD:4,MYSTIC_RECTANGLE:5,STELLIUM:6},Z=class extends y{renderData(t){let e="aspects"in t?t.aspects??[]:[],r="patterns"in t?t.patterns??[]:[],o="summary"in t?t.summary:void 0;if(e.length===0&&r.length===0)return this.renderEmpty();let s=q(this.effectiveLang(),"transitDate"in t?t.transitDate:"date"in t?t.date:"","time"in t?t.time:void 0,!0),i="timezone"in t?t.timezone:void 0,a="options"in t?t.options:void 0;return l`<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||s?l`<p class="subtitle roxy-label">${[e.length===1?this.t("1 aspect"):e.length>1?this.t("{{count}} aspects",{count:e.length}):"",s].filter(Boolean).join(" · ")}</p>`:d} ${typeof i=="number"&&Number.isFinite(i)?l`<dl class="roxy-facts" part="details"><div><dt>${H(this.effectiveLang(),"timezone")}</dt><dd>${S(this.effectiveLang(),i,5)}</dd></div></dl>`:d}</div>${o?this.renderSummary(o):d} ${o&&"strongest"in o&&o.strongest?this.renderStrongest(o.strongest):d} ${e.length>0?l`<div role="list" part="section aspects" aria-label="${this.t("Aspect list")}">${e.map((c,p)=>l`<div role="listitem">${this.renderAspect(c,p)}</div>`)}</div>`:d} ${r.length>0?l`<section class="patterns" part="section patterns"><h3>${this.t("Chart patterns")}</h3>${[...r].sort((c,p)=>(fr[c.kind]??9)-(fr[p.kind]??9)||(p.tightness??0)-(c.tightness??0)).map(c=>this.renderPattern(c))}</section>`:d} ${a?l`<p class="provenance">${fn(a,this.effectiveLang(),this.translator)}</p>`:d}</div>`}renderSummary(t){let e="totalAspects"in t?t.totalAspects:t.total,r=Object.entries(t.byType??{}).sort((o,s)=>s[1]-o[1]);return l`<p class="counts" part="details" role="region" aria-label="${this.t("Aspect summary")}">${typeof e=="number"?l`<span>${this.t("Total")}: ${e}</span>`:d} <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> ${r.map(([o,s])=>l`<span>${I({type:o})}: ${s}</span>`)}</p>`}renderStrongest(t){let e=R(t.planet1)??"",r=R(t.planet2)??"";return l`<div class="strongest" part="details strongest"><span class="roxy-label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph">${e}</span>${x(t,"planet1")} <span class="asp-name ${V(t)}">${x(t,"type",I(t))}</span> <span aria-hidden="true" class="glyph">${r}</span>${x(t,"planet2")} <span class="meta">${this.t("{{status}} · orb {{orb}}° · str {{strength}}",{status:t.isApplying?this.t("Applying"):this.t("Separating"),orb:S(this.effectiveLang(),t.orb,2),strength:S(this.effectiveLang(),t.strength,0)})}</span></div>`}renderAspect(t,e){let r=R(t.planet1)??"",o=R(t.planet2)??"",s=I(t),i=t.isApplying?this.t("Applying"):this.t("Separating"),a="meaning"in t?t.meaning:void 0,c="transitInterpretation"in t?t.transitInterpretation:void 0,p="aspectInterpretation"in t?t.aspectInterpretation:void 0,h=!!(a||c||p),u=l`<span aria-hidden="true" class="glyph">${r}</span>${x(t,"planet1")} <span class="asp-name ${V(t)}">${x(t,"type",s)}</span> <span aria-hidden="true" class="glyph">${o}</span>${x(t,"planet2")} <span class="meta">${this.t("{{status}} · orb {{orb}}° · str {{strength}}",{status:i,orb:S(this.effectiveLang(),t.orb,2),strength:S(this.effectiveLang(),t.strength,0)})}</span>`;return!h||this.hideReadings?l`<div class="interp-card" part="reading"><div class="static-head">${u}</div></div>`:l`<details class="interp-card" part="reading" name="aspects" ?open="${e===0}"><summary>${u}${kt()}</summary><div class="interp-body" part="readings">${a?this.renderMeaning(a):d} ${c?this.renderTransit(c):d} ${p?te(p,this.translator):d}</div></details>`}renderMeaning(t){return l`${t.description?.short?l`<p>${t.description.short}</p>`:d} ${t.description?.long&&t.description.long!==t.description.short?l`<p>${t.description.long}</p>`:d} ${Qt(t.keywords)}`}renderTransit(t){return te(t,this.translator)}renderPattern(t){let e=t.planets??[],r=t.apex?[...e].sort((o,s)=>+(s===t.apex)-+(o===t.apex)):e;return l`<div class="pattern" part="pattern"><div class="pattern-head"><span class="pattern-name">${t.name??t.kind??this.t("Pattern")}</span> ${t.element?l`<span class="roxy-chip">${t.element}</span>`:d} ${t.modality?l`<span class="roxy-chip">${t.modality}</span>`:d} ${t.dissociate?l`<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>`:d} ${typeof t.tightness=="number"?l`<span class="pattern-tight roxy-label">${this.t("{{percent}} tight",{percent:je(this.effectiveLang(),t.tightness,0)})}</span>`:d}</div>${r.length?l`<ul class="roxy-chips">${r.map(o=>{let s=R(o),i=!!t.apex&&o===t.apex;return l`<li class="${i?"roxy-chip apex":"roxy-chip"}">${s?l`<span aria-hidden="true">${s}</span>`:d}${o}${i?l`<span>${this.t("apex")}</span>`:d}</li>`})}</ul>`:d} ${t.interpretation&&!this.hideReadings?l`<p class="pattern-interp">${t.interpretation}</p>`:d}</div>`}};Z.endpoints=Fe,Z.styles=[F,_t,At,mr,Vt,b`.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)}`],Z=g([W("roxy-aspects-table")],Z);function _(n){let t=n%360;return t<0?t+360:t}function ee(n){let t=_(n),e=Math.floor(t/30)%12,r=t%30,o=Math.floor(r),s=(r-o)*60,i=Math.floor(s),a=Math.round((s-i)*60);return{sign:at[e]??"Aries",signIndex:e,degree:o,minute:i,second:a}}function re(n,t){let{sign:e,degree:r,minute:o}=ee(n);return`${r}° ${t||e} ${String(o).padStart(2,"0")}'`}function ne(n){return bn(_(n)%30)}function xn(n){let t=Math.floor(n);return{degree:t,minute:Math.floor((n-t)*60)}}function bn(n){let{degree:t,minute:e}=xn(n);return`${t}°${String(e).padStart(2,"0")}'`}function xr(n){return _(n+180)}function br(n,t){let e=_(n),r=_(t)-e;return r<0&&(r+=360),_(e+r/2)}function vr(n,t,e){let r=n.filter(p=>Number.isFinite(t(p))).map(p=>{let h=_(t(p));return{item:p,longitude:h,displayLongitude:h}}).sort((p,h)=>p.longitude-h.longitude),o=r.length;if(o<2)return r;let s=0,i=-1;for(let p=0;p<o;p++){let h=r[(p+o-1)%o],$=(r[p].longitude-h.longitude+360)%360;$>i&&(i=$,s=p)}let a=r[s],c=a.longitude;for(let p=1;p<o;p++){let h=r[(s+p)%o],u=typeof e=="function"?e(a.item,h.item):e,$=h.longitude+(s+p>=o?360:0);c=Math.max($,c+u),h.displayLongitude=_(c),a=h}return r}var oe=2;function se(n,t,e,r){let o=n*Math.PI/180,s=(i,a)=>a>1e-9?(i+r)/a:Number.POSITIVE_INFINITY;return Math.min(s((t.width+e.width)/2,Math.abs(Math.cos(o))),s((t.height+e.height)/2,Math.abs(Math.sin(o))))}function ie(n,t){return t>0?n/t*(180/Math.PI):0}function w(n,t,e,r){let o=r*Math.PI/180;return{x:n+e*Math.cos(o),y:t+e*Math.sin(o)}}var J=class extends y{rows(){let t=this.data;if(!t)return[];let e=(t.planets??[]).map(o=>({name:o.name,label:x(o,"name"),sign:o.sign,signLabel:x(o,"sign"),longitude:o.longitude,latitude:o.latitude,house:o.house,speed:o.speed,isRetrograde:o.isRetrograde,dignity:o.dignity})),r=[["Ascendant",t.ascendant],["Midheaven",t.midheaven],["Part of Fortune",t.partOfFortune],["Vertex",t.vertex]];for(let[o,s]of r)s&&e.push({name:o,label:this.t(o),sign:s.sign,signLabel:x(s,"sign"),longitude:s.longitude,house:"house"in s?s.house:void 0,sect:"sect"in s?s.sect:void 0,isPoint:!0});return e}renderData(t){if(!t.planets)return this.renderEmpty();let e=this.rows(),r=t.birthDetails,o=e.some(a=>Number.isFinite(a.latitude)),s=e.some(a=>a.sect),i=["latitude","longitude","timezone"];return l`<div class="wrap" part="card"><header part="header"><h2>${this.t("Planetary positions")}</h2>${r?l`<div part="details"><p class="roxy-label">${q(this.effectiveLang(),r.date,r.time,!0)}</p><dl class="roxy-facts">${i.map(a=>l`<div><dt>${H(this.effectiveLang(),a)}</dt><dd>${S(this.effectiveLang(),r[a],5)}</dd></div>`)}</dl></div>`:d}</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>${o?l`<th scope="col">${H(this.effectiveLang(),"latitude")}</th>`:d}<th scope="col">${this.t("House")}</th><th scope="col">${this.t("Dignity")}</th><th scope="col">${this.t("Motion")}</th>${s?l`<th scope="col">${this.t("Sect")}</th>`:d}</tr></thead><tbody>${e.map(a=>{let c=R(a.name)??"",p=a.sect==="day"?this.t("Daytime"):a.sect==="night"?this.t("Night"):"",h=it(a.sign)??"",u=typeof a.speed=="number"?S(this.effectiveLang(),a.speed,6):"";return l`<tr class="${a.isPoint?"point":""}"><td class="body">${c?l`<span class="glyph">${c}</span>`:d}${a.label}</td><td>${h?l`<span class="glyph">${h}</span>`:d}${a.signLabel??""}</td><td>${typeof a.longitude=="number"?re(a.longitude,a.signLabel):""}</td><td>${typeof a.longitude=="number"?`${S(this.effectiveLang(),a.longitude,5)}°`:d}</td>${o?l`<td>${typeof a.latitude=="number"?`${S(this.effectiveLang(),a.latitude,5)}°`:d}</td>`:d}<td>${typeof a.house=="number"?a.house:""}</td><td class="dignity">${a.dignity?L(a.dignity):""}</td><td>${u?l`${u}${this.t("°/day")}`:d} ${a.isRetrograde?l`<span class="retro">℞</span>`:d}</td>${s?l`<td>${p}</td>`:d}</tr>`})}</tbody></table></div>${t.houses?.length?l`<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>${t.houses.map(a=>l`<tr><th scope="row">${S(this.effectiveLang(),a.number,0)}</th><td>${x(a,"sign")}</td><td>${re(a.longitude,x(a,"sign"))}</td><td>${S(this.effectiveLang(),a.longitude,5)}°</td></tr>`)}</tbody></table></div></details>`:d}</div>`}};J.endpoints=ze,J.styles=[F,_t,b`.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)}`],J=g([W("roxy-western-planets-table")],J);var Ct=class{constructor(t){this.host=t;this.state="closed";this.zoom=1;this.pressedBy="";this.press=t=>{this.pressedBy=t.pointerType};this.openOnMouse=t=>{let e=this.pressedBy==="mouse";this.pressedBy="",e&&(t.target?.closest?.("a, button, summary, input, select, textarea")||getSelection()?.toString()||this.open())};t.addController(this)}hostUpdated(){let t=this.host.renderRoot.querySelector(".roxy-chart-dialog");if(!t)this.reset();else if(t.isConnected&&this.state!=="closed"){this.state==="opening"&&(this.state="open",t.open||t.showModal());let e=t.querySelector(".roxy-chart-scroll");t.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(t){let e=this.host.renderRoot.querySelector(".roxy-chart-scroll");this.position=t===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=t===0?1:Math.min(3,Math.max(1,this.zoom+t)),this.host.requestUpdate()}renderChartViewport(t,e,r){return l`<div class="roxy-chart-view"><div class="roxy-chart-hit" @pointerdown="${this.press}" @click="${this.openOnMouse}">${t}</div><div class="roxy-chart-tools" part="chart-controls"><button type="button" @click="${()=>this.open()}">${r("Enlarge chart")}</button></div><dialog class="roxy-chart-dialog" part="chart-dialog" aria-label="${e}" @close="${()=>{this.reset(),this.host.requestUpdate()}}">${this.state!=="closed"?l`<div class="roxy-chart-bar"><strong>${e}</strong><div class="roxy-chart-tools"><button type="button" aria-label="${r("Zoom out")}" ?disabled="${this.zoom===1}" @click="${()=>this.resize(-.5)}">−</button> <button type="button" @click="${()=>this.resize(0)}">${r("Reset zoom")}</button> <button type="button" aria-label="${r("Zoom in")}" ?disabled="${this.zoom===3}" @click="${()=>this.resize(.5)}">+</button> <button type="button" @click="${()=>this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}">${r("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}`}">${t}</div></div>`:d}</dialog></div>`}},$r=b`.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}`;var Pt=class{constructor(t,e){this.host=t,this.marks=e,this.size=Object.fromEntries(Object.keys(e).map(r=>[r,e[r][1]])),t.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 t=!1;for(let e of Object.keys(this.marks)){let[r]=this.marks[e],o=vn(this.host.renderRoot,r,this.size[e]);o!==this.size[e]&&(this.size[e]=o,t=!0)}t&&this.host.requestUpdate()}};function vn(n,t,e){let r=n?.querySelector(t);if(!r||typeof getComputedStyle!="function")return e;let o=Number.parseFloat(getComputedStyle(r).fontSize);return Number.isFinite(o)&&o>0?o:e}var de=640,m=de/2,$n=212,wn=226,dt=204,Sn=186,ae=168,wr=250,Sr=142,lt=78,En=166,le={glyph:18,degree:10},Tn=.95,kn=1.85,An=1.25,Rn=.9,_n=8,Cn=4,Lt=(n,t)=>R(n)??t,Ot=n=>{let t=new Map;for(let e of n)t.set(L(e.name),e);return t},C=class extends y{constructor(){super(...arguments);this.viewport=new Ct(this);this.heading="Transits";this.type=new Pt(this,{glyph:[".natal-glyph",le.glyph],degree:[".planet-deg",le.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 r=e.map((s,i)=>typeof s=="number"?{number:i+1,longitude:s}:{number:Number(s?.number),longitude:Number(s?.longitude)}).sort((s,i)=>s.number-i.number);return r.every((s,i)=>s.number===i+1&&Number.isFinite(s.longitude))?r:null}toAngle(e){return 180+(this.effectiveAscendant??this.cusps?.[0]?.longitude??0)-e}renderData(e){let r=e.natalPlanets??[],o=e.transitPlanets??[],s=e.aspects??[],i=q(this.effectiveLang(),e.transitDate),a=s.length>0?this.t("Aspects to the natal chart: {{count}}",{count:s.length}):"",c=[...r,...o].some(p=>Number.isFinite(p.house));return l`<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>${i||a?l`<p class="roxy-label">${[i,a].filter(Boolean).join(" · ")}</p>`:d}</div>${this.renderWheel(r,o,s)} ${this.renderLegend(r,o,s,c?e.houseSystem:void 0)} ${this.renderSummary(e.summary)} ${this.renderPositions(r,o,c)} ${this.renderPositionDetails(e)} ${this.renderAspectDetails(s)}</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° 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,r,o){return this.viewport.renderChartViewport(l`<svg viewBox="0 0 ${de} ${de}" 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="${m}" cy="${m}" r="${dt}" stroke-width="1.5"/><circle class="wheel-line" cx="${m}" cy="${m}" r="${ae}" stroke-width="0.8"/><circle class="wheel-line" cx="${m}" cy="${m}" r="${lt}" stroke-width="0.5"/>${this.renderTicks()} ${this.renderSpokes()} ${this.renderSigns()} ${this.renderHouses()} ${this.renderAspectLines(e,r,o)} ${this.renderRing(e,Sr,(s,i,a)=>Sr-se(s,i,a,oe),"natal-glyph",this.t("Natal"),1)} ${this.renderRing(r,wr,(s,i,a)=>wr+se(s,i,a,oe),"transit-glyph",this.t("Transiting"),-1)} ${this.renderAxis()}</svg>`,this.t("Natal and transit bi-wheel"),this.translator)}renderTicks(){let e=[];for(let r=0;r<360;r+=5){let o=this.toAngle(r),s=r%30===0,i=w(m,m,s?ae:dt-5,o),a=w(m,m,dt,o);e.push(A`<line class=${s?"tick tick-major":"tick"} x1=${i.x} y1=${i.y} x2=${a.x} y2=${a.y} stroke-width=${s?1:.5} />`)}return e}renderSpokes(){return at.map((e,r)=>{let o=this.toAngle(r*30),s=w(m,m,lt,o),i=w(m,m,dt,o);return A`<line class="wheel-line" x1=${s.x} y1=${s.y} x2=${i.x} y2=${i.y} stroke-width="0.6" />`})}renderHouses(){let e=this.cusps;return e?e.map((r,o)=>{let s=e[(o+1)%12],i=this.toAngle(r.longitude),a=w(m,m,lt,i),c=w(m,m,ae,i),p=w(m,m,En,this.toAngle(br(r.longitude,s?.longitude??r.longitude+30)));return A`<g>
|
|
206
4
|
<line class="house-cusp" x1=${a.x} y1=${a.y} x2=${c.x} y2=${c.y} />
|
|
207
5
|
<text class="house-num" x=${p.x} y=${p.y} text-anchor="middle" dominant-baseline="central">${r.number}</text>
|
|
208
|
-
</g>`}):d}renderSigns(){return at.map((e,r)=>{let o=w(m,m,Sn,this.toAngle(r*30+15));return A`<text class="sign-glyph" x=${o.x} y=${o.y} text-anchor="middle" dominant-baseline="central">${it(e)}</text>`})}renderRing(e,r,o,s,i,a){let c=
|
|
209
|
-
${
|
|
210
|
-
<text class=${s} x=${pe.x} y=${pe.y} text-anchor="middle" dominant-baseline="central"><title>${
|
|
6
|
+
</g>`}):d}renderSigns(){return at.map((e,r)=>{let o=w(m,m,Sn,this.toAngle(r*30+15));return A`<text class="sign-glyph" x=${o.x} y=${o.y} text-anchor="middle" dominant-baseline="central">${it(e)}</text>`})}renderRing(e,r,o,s,i,a){let c=Tn*this.type.size.glyph,p={width:c,height:c},h=f=>({width:(kn+(f.isRetrograde===!0?An:0))*this.type.size.degree,height:Rn*this.type.size.degree}),u=ie(c,r);return vr(e,f=>f.longitude,(f,E)=>Math.max(u,ie((h(f).width+h(E).width)/2,o(90,p,h(f))))).map(({item:f,longitude:E,displayLongitude:ce})=>{let ct=this.toAngle(ce),pe=w(m,m,r,ct),he=w(m,m,o(ct,p,h(f)),ct),ue=f.isRetrograde===!0,Er=`${ee(E).degree}°`,me=x(f,"name"),Tr=`${i} ${me}${ue?` ${this.t("retrograde")}`:""} - ${ne(E)} ${x(f,"sign")}`,kr=Math.abs(ce-E)>.5,ge=w(m,m,r+a*_n,this.toAngle(E)),ye=w(m,m,r+a*Cn,ct);return A`<g>
|
|
7
|
+
${kr?A`<line class=${`leader ${s}`} x1=${ge.x} y1=${ge.y} x2=${ye.x} y2=${ye.y} />`:d}
|
|
8
|
+
<text class=${s} x=${pe.x} y=${pe.y} text-anchor="middle" dominant-baseline="central"><title>${Tr}</title>${Lt(f.name,me)}</text>
|
|
211
9
|
<text class="planet-deg" x=${he.x} y=${he.y} text-anchor="middle" dominant-baseline="central">${Er}${ue?A`<tspan class="retro"> ℞</tspan>`:d}</text>
|
|
212
|
-
</g>`})}renderAspectLines(e,r,o){let s=
|
|
10
|
+
</g>`})}renderAspectLines(e,r,o){let s=Ot(e),i=Ot(r);return o.filter(Yt).map(a=>{let c=i.get(L(a.planet1)),p=s.get(L(a.planet2));if(!c||!p||!Number.isFinite(c.longitude)||!Number.isFinite(p.longitude))return d;let h=w(m,m,lt-2,this.toAngle(c.longitude)),u=w(m,m,lt-2,this.toAngle(p.longitude)),$=K(a),f=S(this.effectiveLang(),a.orb,1);return A`<line class=${`aspect ${V(a)}`} style=${Ye(a)} x1=${h.x} y1=${h.y} x2=${u.x} y2=${u.y}><title>${this.t("Transiting")} ${x(a,"planet1")} ${x(a,"type",$)} ${this.t("Natal")} ${x(a,"planet2")}${f?` (${this.t("Orb")} ${f}°)`:""}</title></line>`})}renderAxis(){let e=this.effectiveAscendant;if(e===void 0)return d;let r=_(e);return[r,xr(r)].map((o,s)=>{let i=this.toAngle(o),a=w(m,m,dt,i),c=w(m,m,$n,i),p=w(m,m,wn,i);return A`<g>
|
|
213
11
|
<line class="axis-tick" x1=${a.x} y1=${a.y} x2=${c.x} y2=${c.y} />
|
|
214
12
|
<text class="axis-label" x=${p.x} y=${p.y} text-anchor="middle" dominant-baseline="central">${s===0?this.t("ASC"):this.t("DSC")}</text>
|
|
215
|
-
</g>`})}renderLegend(e,r,o,s){return l`<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:r.length})}</span> ${o.length>0?l`<span>${this.t("{{count}} aspects",{count:o.filter(Yt).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>`:d} ${s?l`<span>${H(this.effectiveLang(),"houseSystem")}: ${yr(this.effectiveLang(),"houseSystem",s)}</span>`:d} <span>${this.orientationCaption}</span> <span>${this.cuspCaption}</span></div>`}renderSummary(e){if(!e)return d;let r=Object.entries(e.byType??{}).sort((o,s)=>s[1]-o[1]);return l`<div part="details"><p class="counts" role="region" aria-label="${this.t("Transit aspect summary")}">${typeof e.total=="number"?l`<span>${this.t("Total")}: ${e.total}</span>`:d} <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> ${r.map(([o,s])=>l`<span>${I({type:o})}: ${s}</span>`)}</p>${e.strongest?this.renderStrongest(e.strongest):d}</div>`}renderStrongest(e){let r=x(e,"planet1"),o=x(e,"planet2");return l`<div class="strongest" part="details strongest"><span class="roxy-label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph">${
|
|
13
|
+
</g>`})}renderLegend(e,r,o,s){return l`<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:r.length})}</span> ${o.length>0?l`<span>${this.t("{{count}} aspects",{count:o.filter(Yt).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>`:d} ${s?l`<span>${H(this.effectiveLang(),"houseSystem")}: ${yr(this.effectiveLang(),"houseSystem",s)}</span>`:d} <span>${this.orientationCaption}</span> <span>${this.cuspCaption}</span></div>`}renderSummary(e){if(!e)return d;let r=Object.entries(e.byType??{}).sort((o,s)=>s[1]-o[1]);return l`<div part="details"><p class="counts" role="region" aria-label="${this.t("Transit aspect summary")}">${typeof e.total=="number"?l`<span>${this.t("Total")}: ${e.total}</span>`:d} <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> ${r.map(([o,s])=>l`<span>${I({type:o})}: ${s}</span>`)}</p>${e.strongest?this.renderStrongest(e.strongest):d}</div>`}renderStrongest(e){let r=x(e,"planet1"),o=x(e,"planet2");return l`<div class="strongest" part="details strongest"><span class="roxy-label">${this.t("Strongest")}</span> <span aria-hidden="true" class="glyph">${Lt(e.planet1,r)}</span>${this.t("Transiting")} ${r} <span class="asp-name ${V(e)}">${x(e,"type",I(e))}</span> <span aria-hidden="true" class="glyph">${Lt(e.planet2,o)}</span>${this.t("Natal")} ${o} <span class="meta">${e.isApplying?this.t("Applying"):this.t("Separating")} · ${this.t("Orb")} ${S(this.effectiveLang(),e.orb,2)}° · ${this.t("Strength")} ${S(this.effectiveLang(),e.strength,0)}</span></div>`}renderPositions(e,r,o){if(e.length===0&&r.length===0)return d;let s=Ot(e),i=Ot(r),a=e.length>0?e:r,c=h=>h?l`${it(h.sign)??""} ${ne(h.longitude)} ${x(h,"sign")}${h.isRetrograde?l`<span class="retro-badge" aria-label="${this.t("retrograde")}">℞</span>`:d}`:d,p=h=>o?l`<td>${h&&Number.isFinite(h.house)?h.house:d}</td>`:d;return l`<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.")} ${o?this.t("Both house numbers are read against the natal house cusps."):d}</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>${o?l`<th scope="col">${this.t("Natal house")}</th>`:d}<th scope="col"><span class="swatch swatch--transit" aria-hidden="true"></span>${this.t("Transiting")}</th>${o?l`<th scope="col">${this.t("Transiting house")}</th>`:d}</tr></thead><tbody>${a.map(h=>{let u=L(h.name),$=x(h,"name");return l`<tr><th scope="row"><span aria-hidden="true" class="glyph">${Lt(h.name,$)}</span> ${$}</th><td>${c(s.get(u))}</td>${p(s.get(u))}<td>${c(i.get(u))}</td>${p(i.get(u))}</tr>`})}</tbody></table></div>`}renderPositionDetails(e){return l`<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="${k(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="${k(this.effectiveLang())}" exportparts="card, header, table, details, section, houses" .data="${{planets:e.transitPlanets}}"></roxy-western-planets-table></details>`}renderAspectDetails(e){return e.length===0?d:l`<details class="block" part="section aspects"><summary>${this.t("Aspects ({{count}})",{count:e.length})}</summary><roxy-aspects-table bare hide-sections="header" lang="${k(this.effectiveLang())}" ?hide-readings="${this.hideReadings}" exportparts="card, header, section, aspects, details, reading, readings, pattern, patterns, strongest" .data="${{aspects:e}}"></roxy-aspects-table></details>`}};C.endpoints=Me,C.styles=[F,$r,Ve,At,b`.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)}`],g([v({type:String})],C.prototype,"heading",2),g([v({type:Number})],C.prototype,"ascendant",2),g([v({type:Array})],C.prototype,"houses",2),C=g([W("roxy-transit-wheel")],C);return Pr(Pn);})();
|
|
216
14
|
/*! Bundled license information:
|
|
217
15
|
|
|
218
16
|
@lit/reactive-element/css-tag.js:
|