@roxyapi/ui 0.19.2 → 0.19.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/components-catalog.json +109 -109
  2. package/dist/cdn/components/aspects-table.js +3 -3
  3. package/dist/cdn/components/aspects-table.js.map +3 -3
  4. package/dist/cdn/components/compatibility-card.js +4 -4
  5. package/dist/cdn/components/compatibility-card.js.map +3 -3
  6. package/dist/cdn/components/endpoint-form.js +1 -1
  7. package/dist/cdn/components/endpoint-form.js.map +1 -1
  8. package/dist/cdn/components/synastry-chart.js +5 -5
  9. package/dist/cdn/components/synastry-chart.js.map +3 -3
  10. package/dist/cdn/roxy-ui.js +20 -20
  11. package/dist/cdn/roxy-ui.js.map +3 -3
  12. package/dist/components/aspects-table.js +1 -1
  13. package/dist/components/aspects-table.js.map +3 -3
  14. package/dist/components/compatibility-card.d.ts.map +1 -1
  15. package/dist/components/compatibility-card.js +1 -1
  16. package/dist/components/compatibility-card.js.map +3 -3
  17. package/dist/components/endpoint-form.js +1 -1
  18. package/dist/components/endpoint-form.js.map +1 -1
  19. package/dist/components/synastry-chart.d.ts +3 -13
  20. package/dist/components/synastry-chart.d.ts.map +1 -1
  21. package/dist/components/synastry-chart.js +2 -2
  22. package/dist/components/synastry-chart.js.map +3 -3
  23. package/dist/index.cjs +17 -17
  24. package/dist/index.cjs.map +3 -3
  25. package/dist/index.js +31 -31
  26. package/dist/index.js.map +3 -3
  27. package/dist/schemas/post--vedic-astrology-panchang-detailed.json +1 -1
  28. package/dist/types/types.gen.d.ts +72 -6
  29. package/dist/types/types.gen.d.ts.map +1 -1
  30. package/dist/version.d.ts +1 -1
  31. package/package.json +1 -1
  32. package/src/components/aspects-table.ts +1 -1
  33. package/src/components/compatibility-card.ts +4 -3
  34. package/src/components/synastry-chart.ts +16 -23
  35. package/src/types/types.gen.ts +72 -6
  36. package/src/version.ts +1 -1
@@ -1,4 +1,4 @@
1
- var RoxyUI_compatibility_card=(()=>{var B=Object.defineProperty;var ye=Object.getOwnPropertyDescriptor;var Fe=Object.getOwnPropertyNames;var Ge=Object.prototype.hasOwnProperty;var Ve=(s,e)=>{for(var t in e)B(s,t,{get:e[t],enumerable:!0})},Ye=(s,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Fe(e))!Ge.call(s,o)&&o!==t&&B(s,o,{get:()=>e[o],enumerable:!(r=ye(e,o))||r.enumerable});return s};var We=s=>Ye(B({},"__esModule",{value:!0}),s),m=(s,e,t,r)=>{for(var o=r>1?void 0:r?ye(e,t):e,n=s.length-1,i;n>=0;n--)(i=s[n])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&B(e,t,o),o};var ft={};Ve(ft,{ROXY_UI_TOKENS_STYLE_ID:()=>q,RoxyCompatibilityCard:()=>C,injectRoxyTokens:()=>K});var fe=`/**
1
+ var RoxyUI_compatibility_card=(()=>{var B=Object.defineProperty;var fe=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var Ve=Object.prototype.hasOwnProperty;var Ye=(s,e)=>{for(var t in e)B(s,t,{get:e[t],enumerable:!0})},We=(s,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ge(e))!Ve.call(s,o)&&o!==t&&B(s,o,{get:()=>e[o],enumerable:!(r=fe(e,o))||r.enumerable});return s};var Je=s=>We(B({},"__esModule",{value:!0}),s),m=(s,e,t,r)=>{for(var o=r>1?void 0:r?fe(e,t):e,n=s.length-1,i;n>=0;n--)(i=s[n])&&(o=(r?i(e,t,o):i(o))||o);return r&&o&&B(e,t,o),o};var gt={};Ye(gt,{ROXY_UI_TOKENS_STYLE_ID:()=>q,RoxyCompatibilityCard:()=>C,injectRoxyTokens:()=>K});var ge=`/**
2
2
  * Roxy UI design tokens. 47 CSS custom properties that every component reads. Light + dark defaults. Host page overrides at :root or per element. No Tailwind, no class-name overrides, no JS theme switcher.
3
3
  *
4
4
  * Delivery model: this file ships as a global light-DOM stylesheet (linked, or auto-injected by the CDN bundle). Custom properties inherit through the shadow boundary, so tokens set on a light-DOM ancestor reach every component shadow. The explicit theme blocks therefore target light-DOM selectors (:root, .dark, [data-theme="dark"], a wrapper element), NOT :host (a :host rule in a global sheet matches nothing). The :host([data-theme]) selectors are kept only for the case where this CSS is ever adopted directly into a shadow root; they are inert in global delivery.
@@ -259,9 +259,9 @@ var RoxyUI_compatibility_card=(()=>{var B=Object.defineProperty;var ye=Object.ge
259
259
  --roxy-motion-duration: 0ms;
260
260
  }
261
261
  }
262
- `;var q="roxy-ui-tokens";function K(){if(typeof document>"u")return null;let s=document.getElementById(q);if(s)return s;let e=document.createElement("style");return e.id=q,e.textContent=fe,document.head.prepend(e),e}var F=globalThis,G=F.ShadowRoot&&(F.ShadyCSS===void 0||F.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,re=Symbol(),ge=new WeakMap,N=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==re)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(G&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=ge.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&ge.set(t,e))}return e}toString(){return this.cssText}},xe=s=>new N(typeof s=="string"?s:s+"",void 0,re),b=(s,...e)=>{let t=s.length===1?s[0]:e.reduce((r,o,n)=>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)+s[n+1],s[0]);return new N(t,s,re)},be=(s,e)=>{if(G)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),o=F.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,s.appendChild(r)}},oe=G?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return xe(t)})(s):s;var{is:Je,defineProperty:Ze,getOwnPropertyDescriptor:Xe,getOwnPropertyNames:Qe,getOwnPropertySymbols:et,getPrototypeOf:tt}=Object,V=globalThis,ve=V.trustedTypes,rt=ve?ve.emptyScript:"",ot=V.reactiveElementPolyfillSupport,U=(s,e)=>s,O={toAttribute(s,e){switch(e){case Boolean:s=s?rt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},Y=(s,e)=>!Je(s,e),$e={attribute:!0,type:String,converter:O,reflect:!1,useDefault:!1,hasChanged:Y};Symbol.metadata??=Symbol("metadata"),V.litPropertyMetadata??=new WeakMap;var v=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=$e){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Ze(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){let{get:o,set:n}=Xe(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get:o,set(i){let l=o?.call(this);n?.call(this,i),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??$e}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;let e=tt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(U("properties"))){let t=this.properties,r=[...Qe(t),...et(t)];for(let o of r)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(oe(o))}else e!==void 0&&t.push(oe(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return be(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){let n=(r.converter?.toAttribute!==void 0?r.converter:O).toAttribute(t,r.type);this._$Em=e,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,t){let r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let n=r.getPropertyOptions(o),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:O;this._$Em=o;let l=i.fromAttribute(t,n.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(e,t,r,o=!1,n){if(e!==void 0){let i=this.constructor;if(o===!1&&(n=this[e]),r??=i.getPropertyOptions(e),!((r.hasChanged??Y)(n,t)||r.useDefault&&r.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:n},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),n!==!0||i!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,n]of r){let{wrapped:i}=n,l=this[o];i!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,n,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[U("elementProperties")]=new Map,v[U("finalized")]=new Map,ot?.({ReactiveElement:v}),(V.reactiveElementVersions??=[]).push("2.1.2");var de=globalThis,we=s=>s,W=de.trustedTypes,Ae=W?W.createPolicy("lit-html",{createHTML:s=>s}):void 0,Te="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,Re="?"+$,st=`<${Re}>`,k=document,L=()=>k.createComment(""),H=s=>s===null||typeof s!="object"&&typeof s!="function",pe=Array.isArray,nt=s=>pe(s)||typeof s?.[Symbol.iterator]=="function",se=`[
263
- \f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Se=/-->/g,_e=/>/g,S=RegExp(`>|${se}(?:([^\\s"'>=/]+)(${se}*=${se}*(?:[^
264
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ke=/'/g,Ee=/"/g,Pe=/^(?:script|style|textarea|title)$/i,he=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),d=he(1),_t=he(2),kt=he(3),E=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),Ce=new WeakMap,_=k.createTreeWalker(k,129);function Ne(s,e){if(!pe(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ae!==void 0?Ae.createHTML(e):e}var it=(s,e)=>{let t=s.length-1,r=[],o,n=e===2?"<svg>":e===3?"<math>":"",i=M;for(let l=0;l<t;l++){let a=s[l],h,u,p=-1,x=0;for(;x<a.length&&(i.lastIndex=x,u=i.exec(a),u!==null);)x=i.lastIndex,i===M?u[1]==="!--"?i=Se:u[1]!==void 0?i=_e:u[2]!==void 0?(Pe.test(u[2])&&(o=RegExp("</"+u[2],"g")),i=S):u[3]!==void 0&&(i=S):i===S?u[0]===">"?(i=o??M,p=-1):u[1]===void 0?p=-2:(p=i.lastIndex-u[2].length,h=u[1],i=u[3]===void 0?S:u[3]==='"'?Ee:ke):i===Ee||i===ke?i=S:i===Se||i===_e?i=M:(i=S,o=void 0);let f=i===S&&s[l+1].startsWith("/>")?" ":"";n+=i===M?a+st:p>=0?(r.push(h),a.slice(0,p)+Te+a.slice(p)+$+f):a+$+(p===-2?l:f)}return[Ne(s,n+(s[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},I=class s{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,i=0,l=e.length-1,a=this.parts,[h,u]=it(e,t);if(this.el=s.createElement(h,r),_.currentNode=this.el.content,t===2||t===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=_.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Te)){let x=u[i++],f=o.getAttribute(p).split($),A=/([.?@])?(.*)/.exec(x);a.push({type:1,index:n,name:A[2],strings:f,ctor:A[1]==="."?ie:A[1]==="?"?ae:A[1]==="@"?le:R}),o.removeAttribute(p)}else p.startsWith($)&&(a.push({type:6,index:n}),o.removeAttribute(p));if(Pe.test(o.tagName)){let p=o.textContent.split($),x=p.length-1;if(x>0){o.textContent=W?W.emptyScript:"";for(let f=0;f<x;f++)o.append(p[f],L()),_.nextNode(),a.push({type:2,index:++n});o.append(p[x],L())}}}else if(o.nodeType===8)if(o.data===Re)a.push({type:2,index:n});else{let p=-1;for(;(p=o.data.indexOf($,p+1))!==-1;)a.push({type:7,index:n}),p+=$.length-1}n++}}static createElement(e,t){let r=k.createElement("template");return r.innerHTML=e,r}};function T(s,e,t=s,r){if(e===E)return e;let o=r!==void 0?t._$Co?.[r]:t._$Cl,n=H(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(s),o._$AT(s,t,r)),r!==void 0?(t._$Co??=[])[r]=o:t._$Cl=o),o!==void 0&&(e=T(s,o._$AS(s,e.values),o,r)),e}var ne=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??k).importNode(t,!0);_.currentNode=o;let n=_.nextNode(),i=0,l=0,a=r[0];for(;a!==void 0;){if(i===a.index){let h;a.type===2?h=new D(n,n.nextSibling,this,e):a.type===1?h=new a.ctor(n,a.name,a.strings,this,e):a.type===6&&(h=new ce(n,this,e)),this._$AV.push(h),a=r[++l]}i!==a?.index&&(n=_.nextNode(),i++)}return _.currentNode=k,o}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},D=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=T(this,e,t),H(e)?e===c||e==null||e===""?(this._$AH!==c&&this._$AR(),this._$AH=c):e!==this._$AH&&e!==E&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):nt(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==c&&H(this._$AH)?this._$AA.nextSibling.data=e:this.T(k.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=I.createElement(Ne(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{let n=new ne(o,this),i=n.u(this.options);n.p(t),this.T(i),this._$AH=n}}_$AC(e){let t=Ce.get(e.strings);return t===void 0&&Ce.set(e.strings,t=new I(e)),t}k(e){pe(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,o=0;for(let n of e)o===t.length?t.push(r=new s(this.O(L()),this.O(L()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=we(e).nextSibling;we(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},R=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=c,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=c}_$AI(e,t=this,r,o){let n=this.strings,i=!1;if(n===void 0)e=T(this,e,t,0),i=!H(e)||e!==this._$AH&&e!==E,i&&(this._$AH=e);else{let l=e,a,h;for(e=n[0],a=0;a<n.length-1;a++)h=T(this,l[r+a],t,a),h===E&&(h=this._$AH[a]),i||=!H(h)||h!==this._$AH[a],h===c?e=c:e!==c&&(e+=(h??"")+n[a+1]),this._$AH[a]=h}i&&!o&&this.j(e)}j(e){e===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ie=class extends R{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===c?void 0:e}},ae=class extends R{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==c)}},le=class extends R{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){if((e=T(this,e,t,0)??c)===E)return;let r=this._$AH,o=e===c&&r!==c||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==c&&(r===c||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ce=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){T(this,e)}};var at=de.litHtmlPolyfillSupport;at?.(I,D),(de.litHtmlVersions??=[]).push("3.3.3");var Ue=(s,e,t)=>{let r=t?.renderBefore??e,o=r._$litPart$;if(o===void 0){let n=t?.renderBefore??null;r._$litPart$=o=new D(e.insertBefore(L(),n),n,void 0,t??{})}return o._$AI(s),o};var ue=globalThis,w=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ue(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return E}};w._$litElement$=!0,w.finalized=!0,ue.litElementHydrateSupport?.({LitElement:w});var lt=ue.litElementPolyfillSupport;lt?.({LitElement:w});(ue.litElementVersions??=[]).push("4.2.2");var Oe=s=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(s,e)}):customElements.define(s,e)};var ct={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:Y},dt=(s=ct,e,t)=>{let{kind:r,metadata:o}=t,n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),r==="setter"&&((s=Object.create(s)).wrapped=!0),n.set(t.name,s),r==="accessor"){let{name:i}=t;return{set(l){let a=e.get.call(this);e.set.call(this,l),this.requestUpdate(i,a,s,!0,l)},init(l){return l!==void 0&&this.C(i,void 0,s,l),l}}}if(r==="setter"){let{name:i}=t;return function(l){let a=this[i];e.call(this,l),this.requestUpdate(i,a,s,!0,l)}}throw Error("Unsupported decorator location: "+r)};function g(s){return(e,t)=>typeof t=="object"?dt(s,e,t):((r,o,n)=>{let i=o.hasOwnProperty(n);return o.constructor.createProperty(n,r),i?Object.getOwnPropertyDescriptor(o,n):void 0})(s,e,t)}function P(s){return g({...s,state:!0,attribute:!1})}var Me={Sun:"\u2609",Moon:"\u263D",Mercury:"\u263F",Venus:"\u2640",Earth:"\u2641",Mars:"\u2642",Jupiter:"\u2643",Saturn:"\u2644",Uranus:"\u2645",Neptune:"\u2646",Pluto:"\u2647",Rahu:"\u260A",Ketu:"\u260B",Ascendant:"Asc",Lagna:"La",NorthNode:"\u260A",SouthNode:"\u260B","North node":"\u260A","South node":"\u260B",Chiron:"\u26B7",Lilith:"\u26B8","Black moon lilith":"\u26B8"};var Le={Aries:"\u2648",Taurus:"\u2649",Gemini:"\u264A",Cancer:"\u264B",Leo:"\u264C",Virgo:"\u264D",Libra:"\u264E",Scorpio:"\u264F",Sagittarius:"\u2650",Capricorn:"\u2651",Aquarius:"\u2652",Pisces:"\u2653"};var j=s=>s??c;var Z=b`:host{font-family:var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);line-height:var(--roxy-leading-normal,1.5);animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1)) both;background:0 0;display:block;container-type:inline-size}: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,var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif))}@keyframes roxy-fade-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border,#e4e4e7) 0%, color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent) 50%, var(--roxy-border,#e4e4e7) 100%);border-radius:var(--roxy-radius-md,8px);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,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}.roxy-error{gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-lg,1.5rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}.roxy-surface{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a)}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-attribution{margin-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink,#b45309);text-decoration:underline}.roxy-attribution a:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm,.5rem);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent,#f59e0b);color:var(--roxy-accent-ink,#b45309)}.roxy-edit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;var X="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function He(s){return!!s&&!s.startsWith("pk_")}function Ie(s,e={}){e.warn&&console.warn(X),s.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:X},bubbles:!0,composed:!0}))}var pt="https://roxyapi.com/api/v2",Q=class{constructor(e){this.baseUrl=pt;this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){if(!this.submitUrl&&this.secretKeyRefused())return;this.abort?.abort();let t=new AbortController;this.abort=t,this.host.loading=!0,this.host.error=null;try{let r=this.submitUrl?await fetch(this.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e),signal:t.signal}):await this.callApi(e,t.signal);if(!r.ok)throw new Error(await this.readError(r));let o=await r.json();if(t.signal.aborted)return;this.host.data=o}catch(r){if(r?.name==="AbortError")return;this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===t&&(this.abort=void 0),t.signal.aborted||(this.host.loading=!1)}}callApi(e,t){let r=new URL(`${this.baseUrl}${e.path}`);for(let[n,i]of Object.entries(e.query??{}))i!=null&&r.searchParams.set(n,String(i));let o={Accept:"application/json"};return this.publishableKey&&(o["X-API-Key"]=this.publishableKey),e.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:e.method??"GET",headers:o,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}secretKeyRefused(){return He(this.publishableKey)?(this.host.error=X,Ie(this.host),!0):!1}async readError(e){try{let t=await e.json();if(t?.error)return t.error}catch{}return`Request failed (${e.status})`}};function De(s,e,t,r=[]){let o={...t},n=`/${s.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(h,u)=>{let p=o[u];return delete o[u],encodeURIComponent(String(p??""))}),i=new Set(r),l={},a={};for(let[h,u]of Object.entries(o))u===void 0||u===""||(e==="GET"||i.has(h)?l[h]=u:a[h]=u);return{path:n,method:e,query:l,body:e==="POST"?a:void 0}}var ht="roxy-data";function ut(s){return s.nodeName==="SCRIPT"&&s.getAttribute("type")==="application/json"}var ee=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){if(this.host.data!=null)return;let e=this.read();e!==void 0&&(this.host.data=e,this.host.requestUpdate())}read(){let e=this.findInlineScript();return e?this.parse(e.textContent):void 0}findInlineScript(){for(let e of Array.from(this.host.children))if(ut(e)&&e.classList.contains(ht))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var y=class extends w{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.onEdit=()=>{this.editing=!0};this.onFormSubmit=t=>{let r=t.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetcher.run(De(this.endpoint,this.method,r.values,r.queryKeys??[]))};new ee(this),this.fetcher=new Q(this)}static{this.styles=[Z]}willUpdate(t){t.has("publishableKey")&&(this.fetcher.publishableKey=this.publishableKey),t.has("baseUrl")&&this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),t.has("submitUrl")&&(this.fetcher.submitUrl=this.submitUrl)}render(){return 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()?d`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderResult(t){let r=this.sticky?d`${this.renderForm()}${this.renderData(t)}`:d`<div class="roxy-edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">Edit query</button></div>${this.renderData(t)}`;return this.showAttribution()?d`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return d`<div class="roxy-attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">Spiritual data by RoxyAPI</a></div>`}renderNoData(){return this.endpoint?this.renderForm():this.renderEmpty()}renderForm(){return d`<roxy-endpoint-form data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${j(this.specUrl)}" publishable-key="${j(this.publishableKey)}" submit-label="${j(this.submitLabel)}" lang="${j(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}effectiveLang(){return this.lang||void 0}rememberKey(){return`roxy-ui:form:${this.endpoint}`}readRemembered(){try{let t=sessionStorage.getItem(this.rememberKey());return t?JSON.parse(t):void 0}catch{return}}writeRemembered(t){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(t))}catch{}}renderEmpty(){return d`<div class="roxy-empty" role="status">No data</div>`}renderLoading(){return d`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="Loading"></div>`}renderError(t){let r=d`<div class="roxy-error" role="alert">${t}</div>`;return this.endpoint?d`${r}${this.renderForm()}`:r}};m([g({attribute:!1})],y.prototype,"data",2),m([g({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),m([g({type:String})],y.prototype,"method",2),m([g({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),m([g({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),m([g({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),m([g({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),m([g({type:Boolean})],y.prototype,"remember",2),m([g({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),m([g({type:String})],y.prototype,"attribution",2),m([P()],y.prototype,"loading",2),m([P()],y.prototype,"error",2),m([P()],y.prototype,"selfFetched",2),m([P()],y.prototype,"editing",2),m([P()],y.prototype,"sticky",2);function je(){return d`<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 ze=b`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:14px;height:14px;color:var(--roxy-muted,#71717a);transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;function z(s){return s?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():""}function Be(s){return s.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,e=>e.toUpperCase())}function te(s,e=1){if(typeof s!="number"||!Number.isFinite(s))return"";let t=s.toFixed(e);return t.includes(".")?t.replace(/\.?0+$/,""):t}var qe=b`.block{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.block h3{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.interp-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.interp-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:var(--roxy-space-sm,.5rem);font-weight:500;font-size:var(--roxy-text-sm,.875rem);display:flex}.interp-card summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:var(--roxy-radius-sm,4px)}.interp-lead{flex-wrap:wrap;flex:auto;order:1;align-items:baseline;gap:.4rem;min-width:0;display:inline-flex}.interp-aside{flex-shrink:0;order:2;align-items:center;gap:.5rem;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted,#71717a);white-space:nowrap;font-weight:400}@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,.5rem);gap:var(--roxy-space-sm,.5rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);overflow-wrap:anywhere;line-height:1.6;display:grid}.interp-body p{margin:0}`;function me(s,e,t="Reading"){let r=s.filter(o=>!!o.body);return r.length===0?c:d`<section class="block"><h3>${t}</h3>${r.map((o,n)=>d`<details class="interp-card" name="${e}" ?open="${n===0}"><summary><span class="interp-lead">${o.label}</span> ${je()} ${o.aside?d`<span class="interp-aside"><small>${o.aside}</small></span>`:c}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??c}</div></details>`)}</section>`}var mt=["sun","moon","venus","mars"],Ke=["fire","earth","air","water"],C=class extends y{constructor(){super(...arguments);this.mode="astrology"}getBreakdown(){let t=this.data;if(!t)return{};if("categories"in t&&t.categories){let r={};for(let[o,n]of Object.entries(t.categories))typeof n=="number"&&Number.isFinite(n)&&(r[o]=n);return r}return{}}renderEmpty(){return d`<div class="roxy-empty" role="status">No compatibility data</div>`}renderData(t){let r=t.overallScore,o=this.getBreakdown(),n="rating"in t?t.rating:void 0,i="archetype"in t?t.archetype:void 0,l="advice"in t?t.advice:void 0,a="summary"in t?t.summary:void 0,h="interpretation"in t?t.interpretation:void 0,u="strengths"in t?t.strengths:void 0,p="challenges"in t?t.challenges:void 0,x="keyAspects"in t?t.keyAspects:void 0;return d`<article class="card" aria-label="${`Compatibility (${this.mode})`}"><div class="head"><h2>${Be(`${this.mode} compatibility`)}</h2><div>${typeof r=="number"?d`<div class="score">${Math.round(r)}</div>`:c} ${n?d`<div class="rating">${n}</div>`:c}</div></div>${Object.keys(o).length>0?d`<div role="list">${Object.entries(o).map(([f,A])=>d`<div class="bar-row" role="listitem"><span style="text-transform:capitalize">${f}</span> <span class="bar"><span style="width:${Math.max(0,Math.min(100,A))}%"></span></span> <span>${Math.round(A)}</span></div>`)}</div>`:c} ${i?d`<p><span class="archetype">${i.label}</span> ${i.description?d`· ${i.description}`:c}</p>`:c} ${a?d`<p class="lead">${a}</p>`:c} ${h?d`<p class="body">${h}</p>`:c} ${l?d`<p class="body">${l}</p>`:c} ${this.renderAspectBreakdown()} ${this.renderSignCompatibility()} ${this.renderElementBalance()} ${this.renderSubScores()} ${(u?.length??0)>0||(p?.length??0)>0?d`<div class="lists">${u?.length?d`<div><h3>Strengths</h3><ul>${u.map(f=>d`<li>${f}</li>`)}</ul></div>`:c} ${p?.length?d`<div><h3>Challenges</h3><ul>${p.map(f=>d`<li>${f}</li>`)}</ul></div>`:c}</div>`:c} ${x?.length?d`<div class="lists"><div><h3>Key aspects</h3><ul class="key-aspects">${x.slice(0,6).map(f=>d`<li>${yt(f)}</li>`)}</ul></div></div>`:c}</article>`}renderAspectBreakdown(){let t=this.astro()?.aspectBreakdown;return t?d`<div class="pills" role="region" aria-label="Aspect breakdown">${typeof t.total=="number"?d`<span class="pill">Total: ${t.total}</span>`:c} <span class="pill pill--success">Harmonious: ${t.harmonious}</span> <span class="pill pill--danger">Challenging: ${t.challenging}</span> <span class="pill">Neutral: ${t.neutral}</span></div>`:c}renderSignCompatibility(){let t=this.astro(),r=t?.signCompatibility;if(!r)return c;let o=t?.persons,n=mt.map(i=>{let l=r[i];if(!l)return null;let a=h=>{let u=z((h==="person1"?l.person1Sign:l.person2Sign)??""),p=o?.[h]?.[i]?.degree,x=Le[u]??"",f=typeof p=="number"?` ${Math.round(p)}\xB0`:"";return`${x} ${u}${f}`.trim()};return{label:`${Me[z(i)]??""} ${z(i)}`.trim(),aside:`${a("person1")} and ${a("person2")}`,body:l.description??""}}).filter(i=>i!==null);return me(n,"compat-signs","Sign compatibility")}renderElementBalance(){let t=this.astro()?.elementBalance;if(!t)return c;let r=t.person1,o=t.person2,n=Math.max(1,...Ke.map(l=>Math.max(r?.[l]??0,o?.[l]??0))),i=t.sharedElement?.toLowerCase();return d`<section class="block"><h3>Element balance</h3><div class="elements"><div class="el-row head"><span></span> <span>Person 1</span> <span>Person 2</span></div>${Ke.map(l=>{let a=r?.[l]??0,h=o?.[l]??0;return d`<div class="${l===i?"el-row shared":"el-row"}"><span class="el-name">${l}</span> <span class="el-bar p1"><span>${a}</span> <span class="track"><span style="width:${a/n*100}%"></span></span> </span><span class="el-bar p2"><span class="track"><span style="width:${h/n*100}%"></span></span> <span>${h}</span></span></div>`})}</div>${t.description?d`<p class="shared-note">${t.description}</p>`:c}</section>`}renderSubScores(){let t=this.data;if(!t)return c;let r=[];if("lifePath"in t){let o=[["Life Path",t.lifePath],["Expression",t.expression],["Soul Urge",t.soulUrge]];for(let[n,i]of o)i&&r.push({label:n,aside:`${i.person1} and ${i.person2} \xB7 ${te(i.compatibility,0)}%`,body:i.description??""})}if("cycles"in t&&t.cycles)for(let[o,n]of Object.entries(t.cycles))n&&r.push({label:z(o),aside:`${te(n.alignment,0)}% in step \xB7 ${n.phase?.replace(/_/g," ")}`,body:n.description??""});return me(r,"compat-sub-scores","Breakdown")}astro(){let t=this.data;return t&&"signCompatibility"in t?t:void 0}};C.styles=[Z,ze,qe,b`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:center;gap:var(--roxy-space-md,1rem);grid-template-columns:1fr auto;display:grid}.head h2{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;margin:0}.score{font-variant-numeric:tabular-nums;font-size:2rem;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);line-height:1}.rating{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-sm,.875rem)}.bar-row{gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:8rem 1fr 3.5rem;align-items:center;display:grid}.bar{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);height:8px;overflow:hidden}.bar>span{background:var(--roxy-accent,#f59e0b);height:100%;transition:width var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.bar-row>span:last-child{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a);text-align:right}.archetype{color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.lists h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.lists ul{padding-left:var(--roxy-space-md,1rem);margin:0}.lead{color:var(--roxy-fg,#0a0a0a);margin:0;font-weight:500}p.body{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.6}.pills{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.pill{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 8px}.pill--success{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.pill--danger{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.elements{gap:var(--roxy-space-sm,.5rem);display:grid}.el-row{align-items:center;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:4rem 1fr 1fr;display:grid}.el-row .el-name{text-transform:capitalize;color:var(--roxy-fg,#0a0a0a)}.el-row.head span{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600)}.el-row.head span:nth-child(2){text-align:right}.el-bar{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);align-items:center;gap:.4rem;display:flex}.el-bar.p1{flex-direction:row-reverse}.el-bar .track{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);flex:auto;height:8px;display:flex;overflow:hidden}.el-bar.p1 .track{justify-content:flex-end}.el-bar .track>span{background:var(--roxy-accent,#f59e0b);height:100%;display:block}.el-bar.p2 .track>span{background:var(--roxy-info,#0284c7)}.el-row.shared .el-name{font-weight:var(--roxy-weight-bold,600)}.shared-note{margin:var(--roxy-space-sm,.5rem) 0 0;font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.key-aspects{padding-left:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);margin:0}`],m([g({type:String,reflect:!0})],C.prototype,"mode",2),C=m([Oe("roxy-compatibility-card")],C);function yt(s){let e=s.type.toLowerCase().replace(/_/g,"-"),t=typeof s.orb=="number"?` (orb ${te(s.orb,1)}\xB0)`:"",r=[s.planet1,e,s.planet2].filter(Boolean).join(" ");return s.description?`${r}${t} \xB7 ${s.description}`:`${r}${t}`}K();return We(ft);})();
262
+ `;var q="roxy-ui-tokens";function K(){if(typeof document>"u")return null;let s=document.getElementById(q);if(s)return s;let e=document.createElement("style");return e.id=q,e.textContent=ge,document.head.prepend(e),e}var F=globalThis,G=F.ShadowRoot&&(F.ShadyCSS===void 0||F.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,re=Symbol(),xe=new WeakMap,N=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==re)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(G&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=xe.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&xe.set(t,e))}return e}toString(){return this.cssText}},be=s=>new N(typeof s=="string"?s:s+"",void 0,re),b=(s,...e)=>{let t=s.length===1?s[0]:e.reduce((r,o,n)=>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)+s[n+1],s[0]);return new N(t,s,re)},ve=(s,e)=>{if(G)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let r=document.createElement("style"),o=F.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,s.appendChild(r)}},oe=G?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return be(t)})(s):s;var{is:Ze,defineProperty:Xe,getOwnPropertyDescriptor:Qe,getOwnPropertyNames:et,getOwnPropertySymbols:tt,getPrototypeOf:rt}=Object,V=globalThis,$e=V.trustedTypes,ot=$e?$e.emptyScript:"",st=V.reactiveElementPolyfillSupport,U=(s,e)=>s,O={toAttribute(s,e){switch(e){case Boolean:s=s?ot:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},Y=(s,e)=>!Ze(s,e),we={attribute:!0,type:String,converter:O,reflect:!1,useDefault:!1,hasChanged:Y};Symbol.metadata??=Symbol("metadata"),V.litPropertyMetadata??=new WeakMap;var v=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=we){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Xe(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){let{get:o,set:n}=Qe(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get:o,set(i){let l=o?.call(this);n?.call(this,i),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??we}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;let e=rt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(U("properties"))){let t=this.properties,r=[...et(t),...tt(t)];for(let o of r)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(let[t,r]of this.elementProperties){let o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let o of r)t.unshift(oe(o))}else e!==void 0&&t.push(oe(e));return t}static _$Eu(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ve(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){let r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){let n=(r.converter?.toAttribute!==void 0?r.converter:O).toAttribute(t,r.type);this._$Em=e,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,t){let r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let n=r.getPropertyOptions(o),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:O;this._$Em=o;let l=i.fromAttribute(t,n.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(e,t,r,o=!1,n){if(e!==void 0){let i=this.constructor;if(o===!1&&(n=this[e]),r??=i.getPropertyOptions(e),!((r.hasChanged??Y)(n,t)||r.useDefault&&r.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:n},i){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),n!==!0||i!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,n]of this._$Ep)this[o]=n;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[o,n]of r){let{wrapped:i}=n,l=this[o];i!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,n,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[U("elementProperties")]=new Map,v[U("finalized")]=new Map,st?.({ReactiveElement:v}),(V.reactiveElementVersions??=[]).push("2.1.2");var de=globalThis,Ae=s=>s,W=de.trustedTypes,Se=W?W.createPolicy("lit-html",{createHTML:s=>s}):void 0,Re="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,Pe="?"+$,nt=`<${Pe}>`,k=document,L=()=>k.createComment(""),H=s=>s===null||typeof s!="object"&&typeof s!="function",pe=Array.isArray,it=s=>pe(s)||typeof s?.[Symbol.iterator]=="function",se=`[
263
+ \f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_e=/-->/g,ke=/>/g,S=RegExp(`>|${se}(?:([^\\s"'>=/]+)(${se}*=${se}*(?:[^
264
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ee=/'/g,Ce=/"/g,Ne=/^(?:script|style|textarea|title)$/i,he=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),d=he(1),kt=he(2),Et=he(3),E=Symbol.for("lit-noChange"),c=Symbol.for("lit-nothing"),Te=new WeakMap,_=k.createTreeWalker(k,129);function Ue(s,e){if(!pe(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Se!==void 0?Se.createHTML(e):e}var at=(s,e)=>{let t=s.length-1,r=[],o,n=e===2?"<svg>":e===3?"<math>":"",i=M;for(let l=0;l<t;l++){let a=s[l],h,u,p=-1,x=0;for(;x<a.length&&(i.lastIndex=x,u=i.exec(a),u!==null);)x=i.lastIndex,i===M?u[1]==="!--"?i=_e:u[1]!==void 0?i=ke:u[2]!==void 0?(Ne.test(u[2])&&(o=RegExp("</"+u[2],"g")),i=S):u[3]!==void 0&&(i=S):i===S?u[0]===">"?(i=o??M,p=-1):u[1]===void 0?p=-2:(p=i.lastIndex-u[2].length,h=u[1],i=u[3]===void 0?S:u[3]==='"'?Ce:Ee):i===Ce||i===Ee?i=S:i===_e||i===ke?i=M:(i=S,o=void 0);let f=i===S&&s[l+1].startsWith("/>")?" ":"";n+=i===M?a+nt:p>=0?(r.push(h),a.slice(0,p)+Re+a.slice(p)+$+f):a+$+(p===-2?l:f)}return[Ue(s,n+(s[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},I=class s{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let n=0,i=0,l=e.length-1,a=this.parts,[h,u]=at(e,t);if(this.el=s.createElement(h,r),_.currentNode=this.el.content,t===2||t===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=_.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Re)){let x=u[i++],f=o.getAttribute(p).split($),A=/([.?@])?(.*)/.exec(x);a.push({type:1,index:n,name:A[2],strings:f,ctor:A[1]==="."?ie:A[1]==="?"?ae:A[1]==="@"?le:R}),o.removeAttribute(p)}else p.startsWith($)&&(a.push({type:6,index:n}),o.removeAttribute(p));if(Ne.test(o.tagName)){let p=o.textContent.split($),x=p.length-1;if(x>0){o.textContent=W?W.emptyScript:"";for(let f=0;f<x;f++)o.append(p[f],L()),_.nextNode(),a.push({type:2,index:++n});o.append(p[x],L())}}}else if(o.nodeType===8)if(o.data===Pe)a.push({type:2,index:n});else{let p=-1;for(;(p=o.data.indexOf($,p+1))!==-1;)a.push({type:7,index:n}),p+=$.length-1}n++}}static createElement(e,t){let r=k.createElement("template");return r.innerHTML=e,r}};function T(s,e,t=s,r){if(e===E)return e;let o=r!==void 0?t._$Co?.[r]:t._$Cl,n=H(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(s),o._$AT(s,t,r)),r!==void 0?(t._$Co??=[])[r]=o:t._$Cl=o),o!==void 0&&(e=T(s,o._$AS(s,e.values),o,r)),e}var ne=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??k).importNode(t,!0);_.currentNode=o;let n=_.nextNode(),i=0,l=0,a=r[0];for(;a!==void 0;){if(i===a.index){let h;a.type===2?h=new D(n,n.nextSibling,this,e):a.type===1?h=new a.ctor(n,a.name,a.strings,this,e):a.type===6&&(h=new ce(n,this,e)),this._$AV.push(h),a=r[++l]}i!==a?.index&&(n=_.nextNode(),i++)}return _.currentNode=k,o}p(e){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},D=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=c,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=T(this,e,t),H(e)?e===c||e==null||e===""?(this._$AH!==c&&this._$AR(),this._$AH=c):e!==this._$AH&&e!==E&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):it(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==c&&H(this._$AH)?this._$AA.nextSibling.data=e:this.T(k.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=I.createElement(Ue(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{let n=new ne(o,this),i=n.u(this.options);n.p(t),this.T(i),this._$AH=n}}_$AC(e){let t=Te.get(e.strings);return t===void 0&&Te.set(e.strings,t=new I(e)),t}k(e){pe(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,o=0;for(let n of e)o===t.length?t.push(r=new s(this.O(L()),this.O(L()),this,this.options)):r=t[o],r._$AI(n),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let r=Ae(e).nextSibling;Ae(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},R=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,n){this.type=1,this._$AH=c,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=c}_$AI(e,t=this,r,o){let n=this.strings,i=!1;if(n===void 0)e=T(this,e,t,0),i=!H(e)||e!==this._$AH&&e!==E,i&&(this._$AH=e);else{let l=e,a,h;for(e=n[0],a=0;a<n.length-1;a++)h=T(this,l[r+a],t,a),h===E&&(h=this._$AH[a]),i||=!H(h)||h!==this._$AH[a],h===c?e=c:e!==c&&(e+=(h??"")+n[a+1]),this._$AH[a]=h}i&&!o&&this.j(e)}j(e){e===c?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ie=class extends R{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===c?void 0:e}},ae=class extends R{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==c)}},le=class extends R{constructor(e,t,r,o,n){super(e,t,r,o,n),this.type=5}_$AI(e,t=this){if((e=T(this,e,t,0)??c)===E)return;let r=this._$AH,o=e===c&&r!==c||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,n=e!==c&&(r===c||o);o&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ce=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){T(this,e)}};var lt=de.litHtmlPolyfillSupport;lt?.(I,D),(de.litHtmlVersions??=[]).push("3.3.3");var Oe=(s,e,t)=>{let r=t?.renderBefore??e,o=r._$litPart$;if(o===void 0){let n=t?.renderBefore??null;r._$litPart$=o=new D(e.insertBefore(L(),n),n,void 0,t??{})}return o._$AI(s),o};var ue=globalThis,w=class extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Oe(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return E}};w._$litElement$=!0,w.finalized=!0,ue.litElementHydrateSupport?.({LitElement:w});var ct=ue.litElementPolyfillSupport;ct?.({LitElement:w});(ue.litElementVersions??=[]).push("4.2.2");var Me=s=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(s,e)}):customElements.define(s,e)};var dt={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:Y},pt=(s=dt,e,t)=>{let{kind:r,metadata:o}=t,n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),r==="setter"&&((s=Object.create(s)).wrapped=!0),n.set(t.name,s),r==="accessor"){let{name:i}=t;return{set(l){let a=e.get.call(this);e.set.call(this,l),this.requestUpdate(i,a,s,!0,l)},init(l){return l!==void 0&&this.C(i,void 0,s,l),l}}}if(r==="setter"){let{name:i}=t;return function(l){let a=this[i];e.call(this,l),this.requestUpdate(i,a,s,!0,l)}}throw Error("Unsupported decorator location: "+r)};function g(s){return(e,t)=>typeof t=="object"?pt(s,e,t):((r,o,n)=>{let i=o.hasOwnProperty(n);return o.constructor.createProperty(n,r),i?Object.getOwnPropertyDescriptor(o,n):void 0})(s,e,t)}function P(s){return g({...s,state:!0,attribute:!1})}var Le={Sun:"\u2609",Moon:"\u263D",Mercury:"\u263F",Venus:"\u2640",Earth:"\u2641",Mars:"\u2642",Jupiter:"\u2643",Saturn:"\u2644",Uranus:"\u2645",Neptune:"\u2646",Pluto:"\u2647",Rahu:"\u260A",Ketu:"\u260B",Ascendant:"Asc",Lagna:"La",NorthNode:"\u260A",SouthNode:"\u260B","North node":"\u260A","South node":"\u260B",Chiron:"\u26B7",Lilith:"\u26B8","Black moon lilith":"\u26B8"};var He={Aries:"\u2648",Taurus:"\u2649",Gemini:"\u264A",Cancer:"\u264B",Leo:"\u264C",Virgo:"\u264D",Libra:"\u264E",Scorpio:"\u264F",Sagittarius:"\u2650",Capricorn:"\u2651",Aquarius:"\u2652",Pisces:"\u2653"};var z=s=>s??c;var Z=b`:host{font-family:var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);line-height:var(--roxy-leading-normal,1.5);animation:roxy-fade-in var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1)) both;background:0 0;display:block;container-type:inline-size}: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,var(--roxy-font-sans,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif))}@keyframes roxy-fade-in{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border,#e4e4e7) 0%, color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent) 50%, var(--roxy-border,#e4e4e7) 100%);border-radius:var(--roxy-radius-md,8px);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,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}.roxy-error{gap:var(--roxy-space-sm,.5rem);padding:var(--roxy-space-lg,1.5rem);background:var(--roxy-surface,#fff);border:1px solid var(--roxy-danger,#dc2626);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-danger-fg,#991b1b);font-size:var(--roxy-text-sm,.875rem);justify-items:start;display:grid}.roxy-surface{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a)}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-attribution{margin-top:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink,#b45309);text-decoration:underline}.roxy-attribution a:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm,.5rem);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs,.25rem) var(--roxy-space-md,1rem);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);color:var(--roxy-fg,#0a0a0a);font-family:inherit;font-size:var(--roxy-text-sm,.875rem);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent,#f59e0b);color:var(--roxy-accent-ink,#b45309)}.roxy-edit:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;var X="Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side.";function Ie(s){return!!s&&!s.startsWith("pk_")}function De(s,e={}){e.warn&&console.warn(X),s.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:"possible-secret-key",message:X},bubbles:!0,composed:!0}))}var ht="https://roxyapi.com/api/v2",Q=class{constructor(e){this.baseUrl=ht;this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){if(!this.submitUrl&&this.secretKeyRefused())return;this.abort?.abort();let t=new AbortController;this.abort=t,this.host.loading=!0,this.host.error=null;try{let r=this.submitUrl?await fetch(this.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e),signal:t.signal}):await this.callApi(e,t.signal);if(!r.ok)throw new Error(await this.readError(r));let o=await r.json();if(t.signal.aborted)return;this.host.data=o}catch(r){if(r?.name==="AbortError")return;this.host.error=r instanceof Error?r.message:String(r)}finally{this.abort===t&&(this.abort=void 0),t.signal.aborted||(this.host.loading=!1)}}callApi(e,t){let r=new URL(`${this.baseUrl}${e.path}`);for(let[n,i]of Object.entries(e.query??{}))i!=null&&r.searchParams.set(n,String(i));let o={Accept:"application/json"};return this.publishableKey&&(o["X-API-Key"]=this.publishableKey),e.body!=null&&(o["Content-Type"]="application/json"),fetch(r,{method:e.method??"GET",headers:o,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}secretKeyRefused(){return Ie(this.publishableKey)?(this.host.error=X,De(this.host),!0):!1}async readError(e){try{let t=await e.json();if(t?.error)return t.error}catch{}return`Request failed (${e.status})`}};function ze(s,e,t,r=[]){let o={...t},n=`/${s.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(h,u)=>{let p=o[u];return delete o[u],encodeURIComponent(String(p??""))}),i=new Set(r),l={},a={};for(let[h,u]of Object.entries(o))u===void 0||u===""||(e==="GET"||i.has(h)?l[h]=u:a[h]=u);return{path:n,method:e,query:l,body:e==="POST"?a:void 0}}var ut="roxy-data";function mt(s){return s.nodeName==="SCRIPT"&&s.getAttribute("type")==="application/json"}var ee=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){if(this.host.data!=null)return;let e=this.read();e!==void 0&&(this.host.data=e,this.host.requestUpdate())}read(){let e=this.findInlineScript();return e?this.parse(e.textContent):void 0}findInlineScript(){for(let e of Array.from(this.host.children))if(mt(e)&&e.classList.contains(ut))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var y=class extends w{constructor(){super();this.data=null;this.endpoint="";this.method="POST";this.remember=!1;this.loading=!1;this.error=null;this.selfFetched=!1;this.editing=!1;this.sticky=!1;this.onEdit=()=>{this.editing=!0};this.onFormSubmit=t=>{let r=t.detail;this.lastValues=r.values,this.sticky=!!r.sticky,this.selfFetched=!0,this.editing=!1,this.remember&&this.writeRemembered(r.values),this.fetcher.run(ze(this.endpoint,this.method,r.values,r.queryKeys??[]))};new ee(this),this.fetcher=new Q(this)}static{this.styles=[Z]}willUpdate(t){t.has("publishableKey")&&(this.fetcher.publishableKey=this.publishableKey),t.has("baseUrl")&&this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),t.has("submitUrl")&&(this.fetcher.submitUrl=this.submitUrl)}render(){return 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()?d`${this.renderData(this.data)}${this.renderAttribution()}`:this.renderData(this.data):this.renderNoData()}renderResult(t){let r=this.sticky?d`${this.renderForm()}${this.renderData(t)}`:d`<div class="roxy-edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">Edit query</button></div>${this.renderData(t)}`;return this.showAttribution()?d`${r}${this.renderAttribution()}`:r}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return d`<div class="roxy-attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">Spiritual data by RoxyAPI</a></div>`}renderNoData(){return this.endpoint?this.renderForm():this.renderEmpty()}renderForm(){return d`<roxy-endpoint-form data-endpoint="${this.endpoint}" method="${this.method}" spec-url="${z(this.specUrl)}" publishable-key="${z(this.publishableKey)}" submit-label="${z(this.submitLabel)}" lang="${z(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}effectiveLang(){return this.lang||void 0}rememberKey(){return`roxy-ui:form:${this.endpoint}`}readRemembered(){try{let t=sessionStorage.getItem(this.rememberKey());return t?JSON.parse(t):void 0}catch{return}}writeRemembered(t){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(t))}catch{}}renderEmpty(){return d`<div class="roxy-empty" role="status">No data</div>`}renderLoading(){return d`<div class="roxy-skeleton" style="height:8rem" role="status" aria-label="Loading"></div>`}renderError(t){let r=d`<div class="roxy-error" role="alert">${t}</div>`;return this.endpoint?d`${r}${this.renderForm()}`:r}};m([g({attribute:!1})],y.prototype,"data",2),m([g({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),m([g({type:String})],y.prototype,"method",2),m([g({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),m([g({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),m([g({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),m([g({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),m([g({type:Boolean})],y.prototype,"remember",2),m([g({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),m([g({type:String})],y.prototype,"attribution",2),m([P()],y.prototype,"loading",2),m([P()],y.prototype,"error",2),m([P()],y.prototype,"selfFetched",2),m([P()],y.prototype,"editing",2),m([P()],y.prototype,"sticky",2);function je(){return d`<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 Be=b`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:14px;height:14px;color:var(--roxy-muted,#71717a);transition:transform var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,ease);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;function j(s){return s?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():""}function me(s){return s.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,e=>e.toUpperCase())}function te(s,e=1){if(typeof s!="number"||!Number.isFinite(s))return"";let t=s.toFixed(e);return t.includes(".")?t.replace(/\.?0+$/,""):t}function qe(s){return(s.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}var Ke=b`.block{border-top:1px solid var(--roxy-border,#e4e4e7);padding-top:var(--roxy-space-md,1rem)}.block h3{margin:0 0 var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);font-weight:var(--roxy-weight-bold,600);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.interp-card{border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-sm,.5rem) var(--roxy-space-md,1rem);margin-bottom:var(--roxy-space-xs,.25rem)}.interp-card summary{cursor:pointer;color:var(--roxy-fg,#0a0a0a);align-items:center;gap:var(--roxy-space-sm,.5rem);font-weight:500;font-size:var(--roxy-text-sm,.875rem);display:flex}.interp-card summary:focus-visible{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px;border-radius:var(--roxy-radius-sm,4px)}.interp-lead{flex-wrap:wrap;flex:auto;order:1;align-items:baseline;gap:.4rem;min-width:0;display:inline-flex}.interp-aside{flex-shrink:0;order:2;align-items:center;gap:.5rem;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted,#71717a);white-space:nowrap;font-weight:400}@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,.5rem);gap:var(--roxy-space-sm,.5rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);overflow-wrap:anywhere;line-height:1.6;display:grid}.interp-body p{margin:0}`;function ye(s,e,t="Reading"){let r=s.filter(o=>!!o.body);return r.length===0?c:d`<section class="block"><h3>${t}</h3>${r.map((o,n)=>d`<details class="interp-card" name="${e}" ?open="${n===0}"><summary><span class="interp-lead">${o.label}</span> ${je()} ${o.aside?d`<span class="interp-aside"><small>${o.aside}</small></span>`:c}</summary><div class="interp-body"><p>${o.body}</p>${o.extra??c}</div></details>`)}</section>`}var yt=["sun","moon","venus","mars"],Fe=["fire","earth","air","water"],C=class extends y{constructor(){super(...arguments);this.mode="astrology"}getBreakdown(){let t=this.data;if(!t)return{};if("categories"in t&&t.categories){let r={};for(let[o,n]of Object.entries(t.categories))typeof n=="number"&&Number.isFinite(n)&&(r[o]=n);return r}return{}}renderEmpty(){return d`<div class="roxy-empty" role="status">No compatibility data</div>`}renderData(t){let r=t.overallScore,o=this.getBreakdown(),n="rating"in t?t.rating:void 0,i="archetype"in t?t.archetype:void 0,l="advice"in t?t.advice:void 0,a="summary"in t?t.summary:void 0,h="interpretation"in t?t.interpretation:void 0,u="strengths"in t?t.strengths:void 0,p="challenges"in t?t.challenges:void 0,x="keyAspects"in t?t.keyAspects:void 0;return d`<article class="card" aria-label="${`Compatibility (${this.mode})`}"><div class="head"><h2>${me(`${this.mode} compatibility`)}</h2><div>${typeof r=="number"?d`<div class="score">${Math.round(r)}</div>`:c} ${n?d`<div class="rating">${n}</div>`:c}</div></div>${Object.keys(o).length>0?d`<div role="list">${Object.entries(o).map(([f,A])=>d`<div class="bar-row" role="listitem"><span style="text-transform:capitalize">${f}</span> <span class="bar"><span style="width:${Math.max(0,Math.min(100,A))}%"></span></span> <span>${Math.round(A)}</span></div>`)}</div>`:c} ${i?d`<p><span class="archetype">${i.label}</span> ${i.description?d`· ${i.description}`:c}</p>`:c} ${a?d`<p class="lead">${a}</p>`:c} ${h?d`<p class="body">${h}</p>`:c} ${l?d`<p class="body">${l}</p>`:c} ${this.renderAspectBreakdown()} ${this.renderSignCompatibility()} ${this.renderElementBalance()} ${this.renderSubScores()} ${(u?.length??0)>0||(p?.length??0)>0?d`<div class="lists">${u?.length?d`<div><h3>Strengths</h3><ul>${u.map(f=>d`<li>${f}</li>`)}</ul></div>`:c} ${p?.length?d`<div><h3>Challenges</h3><ul>${p.map(f=>d`<li>${f}</li>`)}</ul></div>`:c}</div>`:c} ${x?.length?d`<div class="lists"><div><h3>Key aspects</h3><ul class="key-aspects">${x.slice(0,6).map(f=>d`<li>${ft(f)}</li>`)}</ul></div></div>`:c}</article>`}renderAspectBreakdown(){let t=this.astro()?.aspectBreakdown;return t?d`<div class="pills" role="region" aria-label="Aspect breakdown">${typeof t.total=="number"?d`<span class="pill">Total: ${t.total}</span>`:c} <span class="pill pill--success">Harmonious: ${t.harmonious}</span> <span class="pill pill--danger">Challenging: ${t.challenging}</span> <span class="pill">Neutral: ${t.neutral}</span></div>`:c}renderSignCompatibility(){let t=this.astro(),r=t?.signCompatibility;if(!r)return c;let o=t?.persons,n=yt.map(i=>{let l=r[i];if(!l)return null;let a=h=>{let u=j((h==="person1"?l.person1Sign:l.person2Sign)??""),p=o?.[h]?.[i]?.degree,x=He[u]??"",f=typeof p=="number"?` ${Math.round(p)}\xB0`:"";return`${x} ${u}${f}`.trim()};return{label:`${Le[j(i)]??""} ${j(i)}`.trim(),aside:`${a("person1")} and ${a("person2")}`,body:l.description??""}}).filter(i=>i!==null);return ye(n,"compat-signs","Sign compatibility")}renderElementBalance(){let t=this.astro()?.elementBalance;if(!t)return c;let r=t.person1,o=t.person2,n=Math.max(1,...Fe.map(l=>Math.max(r?.[l]??0,o?.[l]??0))),i=t.sharedElement?.toLowerCase();return d`<section class="block"><h3>Element balance</h3><div class="elements"><div class="el-row head"><span></span> <span>Person 1</span> <span>Person 2</span></div>${Fe.map(l=>{let a=r?.[l]??0,h=o?.[l]??0;return d`<div class="${l===i?"el-row shared":"el-row"}"><span class="el-name">${l}</span> <span class="el-bar p1"><span>${a}</span> <span class="track"><span style="width:${a/n*100}%"></span></span> </span><span class="el-bar p2"><span class="track"><span style="width:${h/n*100}%"></span></span> <span>${h}</span></span></div>`})}</div>${t.description?d`<p class="shared-note">${t.description}</p>`:c}</section>`}renderSubScores(){let t=this.data;if(!t)return c;let r=[];if("lifePath"in t){let o=[["Life Path",t.lifePath],["Expression",t.expression],["Soul Urge",t.soulUrge]];for(let[n,i]of o)i&&r.push({label:n,aside:`${i.person1} and ${i.person2} \xB7 ${te(i.compatibility,0)}%`,body:i.description??""})}if("cycles"in t&&t.cycles)for(let[o,n]of Object.entries(t.cycles))n&&r.push({label:j(o),aside:`${te(n.alignment,0)}% in step \xB7 ${me(n.phase??"")}`,body:n.description??""});return ye(r,"compat-sub-scores","Breakdown")}astro(){let t=this.data;return t&&"signCompatibility"in t?t:void 0}};C.styles=[Z,Be,Ke,b`.card{background:var(--roxy-surface,#fff);color:var(--roxy-fg,#0a0a0a);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-lg,1.5rem);box-shadow:var(--roxy-shadow-sm);gap:var(--roxy-space-md,1rem);grid-template-columns:minmax(0,1fr);display:grid}.head{align-items:center;gap:var(--roxy-space-md,1rem);grid-template-columns:1fr auto;display:grid}.head h2{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);text-transform:capitalize;margin:0}.score{font-variant-numeric:tabular-nums;font-size:2rem;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-ink,#b45309);line-height:1}.rating{color:var(--roxy-secondary,#475569);font-size:var(--roxy-text-sm,.875rem)}.bar-row{gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:8rem 1fr 3.5rem;align-items:center;display:grid}.bar{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);height:8px;overflow:hidden}.bar>span{background:var(--roxy-accent,#f59e0b);height:100%;transition:width var(--roxy-motion-duration,.2s) var(--roxy-motion-easing,cubic-bezier(.4, 0, .2, 1));display:block}.bar-row>span:last-child{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a);text-align:right}.archetype{color:var(--roxy-accent-ink,#b45309);font-weight:var(--roxy-weight-bold,600)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));display:grid}.lists h3{margin:0 0 var(--roxy-space-xs,.25rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);text-transform:uppercase;letter-spacing:.06em}.lists ul{padding-left:var(--roxy-space-md,1rem);margin:0}.lead{color:var(--roxy-fg,#0a0a0a);margin:0;font-weight:500}p.body{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);margin:0;line-height:1.6}.pills{gap:var(--roxy-space-xs,.25rem);flex-wrap:wrap;display:flex}.pill{border-radius:var(--roxy-radius-full,9999px);font-size:var(--roxy-text-xs,.75rem);font-weight:var(--roxy-weight-bold,600);background:color-mix(in srgb, var(--roxy-border,#e4e4e7) 60%, transparent);color:var(--roxy-fg,#0a0a0a);padding:2px 8px}.pill--success{background:color-mix(in srgb, var(--roxy-success,#16a34a) 12%, transparent);color:var(--roxy-success-fg,#166534)}.pill--danger{background:color-mix(in srgb, var(--roxy-danger,#dc2626) 12%, transparent);color:var(--roxy-danger-fg,#991b1b)}.elements{gap:var(--roxy-space-sm,.5rem);display:grid}.el-row{align-items:center;gap:var(--roxy-space-sm,.5rem);font-size:var(--roxy-text-sm,.875rem);grid-template-columns:4rem 1fr 1fr;display:grid}.el-row .el-name{text-transform:capitalize;color:var(--roxy-fg,#0a0a0a)}.el-row.head span{color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);text-transform:uppercase;letter-spacing:.06em;font-weight:var(--roxy-weight-bold,600)}.el-row.head span:nth-child(2){text-align:right}.el-bar{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a);font-size:var(--roxy-text-xs,.75rem);align-items:center;gap:.4rem;display:flex}.el-bar.p1{flex-direction:row-reverse}.el-bar .track{background:var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-full,9999px);flex:auto;height:8px;display:flex;overflow:hidden}.el-bar.p1 .track{justify-content:flex-end}.el-bar .track>span{background:var(--roxy-accent,#f59e0b);height:100%;display:block}.el-bar.p2 .track>span{background:var(--roxy-info,#0284c7)}.el-row.shared .el-name{font-weight:var(--roxy-weight-bold,600)}.shared-note{margin:var(--roxy-space-sm,.5rem) 0 0;font-size:var(--roxy-text-sm,.875rem);color:var(--roxy-fg,#0a0a0a)}.key-aspects{padding-left:var(--roxy-space-md,1rem);font-size:var(--roxy-text-sm,.875rem);margin:0}`],m([g({type:String,reflect:!0})],C.prototype,"mode",2),C=m([Me("roxy-compatibility-card")],C);function ft(s){let e=qe(s),t=typeof s.orb=="number"?` (orb ${te(s.orb,1)}\xB0)`:"",r=[s.planet1,e,s.planet2].filter(Boolean).join(" ");return s.description?`${r}${t} \xB7 ${s.description}`:`${r}${t}`}K();return Je(gt);})();
265
265
  /*! Bundled license information:
266
266
 
267
267
  @lit/reactive-element/css-tag.js: