@roxyapi/ui 0.6.0 → 0.6.1
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/dist/cdn/components/biorhythm-chart.js +1 -1
- package/dist/cdn/components/biorhythm-chart.js.map +2 -2
- package/dist/cdn/components/dasha-timeline.js +3 -3
- package/dist/cdn/components/dasha-timeline.js.map +4 -4
- package/dist/cdn/components/divisional-chart.js +67 -1
- package/dist/cdn/components/divisional-chart.js.map +2 -2
- package/dist/cdn/components/natal-chart.js +10 -1
- package/dist/cdn/components/natal-chart.js.map +2 -2
- package/dist/cdn/components/synastry-chart.js +7 -1
- package/dist/cdn/components/synastry-chart.js.map +2 -2
- package/dist/cdn/components/vedic-kundli.js +67 -1
- package/dist/cdn/components/vedic-kundli.js.map +2 -2
- package/dist/cdn/roxy-ui.js +84 -3
- package/dist/cdn/roxy-ui.js.map +4 -4
- package/dist/components/biorhythm-chart.js +1 -1
- package/dist/components/biorhythm-chart.js.map +2 -2
- package/dist/components/dasha-timeline.d.ts.map +1 -1
- package/dist/components/dasha-timeline.js +1 -1
- package/dist/components/dasha-timeline.js.map +4 -4
- package/dist/components/divisional-chart.js +67 -1
- package/dist/components/divisional-chart.js.map +2 -2
- package/dist/components/natal-chart.js +10 -1
- package/dist/components/natal-chart.js.map +2 -2
- package/dist/components/synastry-chart.js +7 -1
- package/dist/components/synastry-chart.js.map +2 -2
- package/dist/components/vedic-kundli.js +67 -1
- package/dist/components/vedic-kundli.js.map +2 -2
- package/dist/index.cjs +82 -1
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +82 -1
- package/dist/index.js.map +4 -4
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/dasha-timeline.ts +7 -16
- package/src/version.ts +1 -1
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";var RoxyUI_synastry_chart=(()=>{var q=Object.defineProperty;var gt=Object.getOwnPropertyDescriptor;var Dt=Object.getOwnPropertyNames;var qt=Object.prototype.hasOwnProperty;var jt=(n,t)=>{for(var e in t)q(n,e,{get:t[e],enumerable:!0})},Bt=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Dt(t))!qt.call(n,s)&&s!==e&&q(n,s,{get:()=>t[s],enumerable:!(r=gt(t,s))||r.enumerable});return n};var Gt=n=>Bt(q({},"__esModule",{value:!0}),n),K=(n,t,e,r)=>{for(var s=r>1?void 0:r?gt(t,e):t,o=n.length-1,i;o>=0;o--)(i=n[o])&&(s=(r?i(t,e,s):i(s))||s);return r&&s&&q(t,e,s),s};var he={};jt(he,{RoxySynastryChart:()=>P});var j=globalThis,B=j.ShadowRoot&&(j.ShadyCSS===void 0||j.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Z=Symbol(),ft=new WeakMap,M=class{constructor(t,e,r){if(this._$cssResult$=!0,r!==Z)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(B&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=ft.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ft.set(e,t))}return t}toString(){return this.cssText}},yt=n=>new M(typeof n=="string"?n:n+"",void 0,Z),k=(n,...t)=>{let e=n.length===1?n[0]:t.reduce((r,s,o)=>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.")})(s)+n[o+1],n[0]);return new M(e,n,Z)},$t=(n,t)=>{if(B)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),s=j.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,n.appendChild(r)}},X=B?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return yt(e)})(n):n;var{is:Vt,defineProperty:Wt,getOwnPropertyDescriptor:Ft,getOwnPropertyNames:Yt,getOwnPropertySymbols:Jt,getPrototypeOf:Kt}=Object,G=globalThis,xt=G.trustedTypes,Zt=xt?xt.emptyScript:"",Xt=G.reactiveElementPolyfillSupport,L=(n,t)=>n,O={toAttribute(n,t){switch(t){case Boolean:n=n?Zt: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}},V=(n,t)=>!Vt(n,t),vt={attribute:!0,type:String,converter:O,reflect:!1,useDefault:!1,hasChanged:V};Symbol.metadata??=Symbol("metadata"),G.litPropertyMetadata??=new WeakMap;var x=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=vt){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(),s=this.getPropertyDescriptor(t,r,e);s!==void 0&&Wt(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){let{get:s,set:o}=Ft(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:s,set(i){let l=s?.call(this);o?.call(this,i),this.requestUpdate(t,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??vt}static _$Ei(){if(this.hasOwnProperty(L("elementProperties")))return;let t=Kt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(L("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(L("properties"))){let e=this.properties,r=[...Yt(e),...Jt(e)];for(let s of r)this.createProperty(s,e[s])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,s]of e)this.elementProperties.set(r,s)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let s=this._$Eu(e,r);s!==void 0&&this._$Eh.set(s,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 s of r)e.unshift(X(s))}else t!==void 0&&e.push(X(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 $t(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),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){let o=(r.converter?.toAttribute!==void 0?r.converter:O).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){let r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let o=r.getPropertyOptions(s),i=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:O;this._$Em=s;let l=i.fromAttribute(e,o.type);this[s]=l??this._$Ej?.get(s)??l,this._$Em=null}}requestUpdate(t,e,r,s=!1,o){if(t!==void 0){let i=this.constructor;if(s===!1&&(o=this[t]),r??=i.getPropertyOptions(t),!((r.hasChanged??V)(o,e)||r.useDefault&&r.reflect&&o===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:s,wrapped:o},i){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),o!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),s===!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[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[s,o]of r){let{wrapped:i}=o,l=this[s];i!==!0||this._$AL.has(s)||l===void 0||this.C(s,void 0,o,l)}}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){}};x.elementStyles=[],x.shadowRootOptions={mode:"open"},x[L("elementProperties")]=new Map,x[L("finalized")]=new Map,Xt?.({ReactiveElement:x}),(G.reactiveElementVersions??=[]).push("2.1.2");var ot=globalThis,bt=n=>n,W=ot.trustedTypes,_t=W?W.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ct="$lit$",v=`lit$${Math.random().toFixed(9).slice(2)}$`,Rt="?"+v,Qt=`<${Rt}>`,S=document,H=()=>S.createComment(""),z=n=>n===null||typeof n!="object"&&typeof n!="function",it=Array.isArray,te=n=>it(n)||typeof n?.[Symbol.iterator]=="function",Q=`[
|
|
2
2
|
\f\r]`,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,At=/-->/g,St=/>/g,_=RegExp(`>|${Q}(?:([^\\s"'>=/]+)(${Q}*=${Q}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),wt=/'/g,Et=/"/g,Tt=/^(?:script|style|textarea|title)$/i,at=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),g=at(1),E=at(2),ye=at(3),w=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),Pt=new WeakMap,A=S.createTreeWalker(S,129);function Nt(n,t){if(!it(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return _t!==void 0?_t.createHTML(t):t}var ee=(n,t)=>{let e=n.length-1,r=[],s,o=t===2?"<svg>":t===3?"<math>":"",i=U;for(let l=0;l<e;l++){let a=n[l],d,p,c=-1,u=0;for(;u<a.length&&(i.lastIndex=u,p=i.exec(a),p!==null);)u=i.lastIndex,i===U?p[1]==="!--"?i=At:p[1]!==void 0?i=St:p[2]!==void 0?(Tt.test(p[2])&&(s=RegExp("</"+p[2],"g")),i=_):p[3]!==void 0&&(i=_):i===_?p[0]===">"?(i=s??U,c=-1):p[1]===void 0?c=-2:(c=i.lastIndex-p[2].length,d=p[1],i=p[3]===void 0?_:p[3]==='"'?Et:wt):i===Et||i===wt?i=_:i===At||i===St?i=U:(i=_,s=void 0);let f=i===_&&n[l+1].startsWith("/>")?" ":"";o+=i===U?a+Qt:c>=0?(r.push(d),a.slice(0,c)+Ct+a.slice(c)+v+f):a+v+(c===-2?l:f)}return[Nt(n,o+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},I=class n{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let o=0,i=0,l=t.length-1,a=this.parts,[d,p]=ee(t,e);if(this.el=n.createElement(d,r),A.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(s=A.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes())for(let c of s.getAttributeNames())if(c.endsWith(Ct)){let u=p[i++],f=s.getAttribute(c).split(v),y=/([.?@])?(.*)/.exec(u);a.push({type:1,index:o,name:y[2],strings:f,ctor:y[1]==="."?et:y[1]==="?"?rt:y[1]==="@"?st:R}),s.removeAttribute(c)}else c.startsWith(v)&&(a.push({type:6,index:o}),s.removeAttribute(c));if(Tt.test(s.tagName)){let c=s.textContent.split(v),u=c.length-1;if(u>0){s.textContent=W?W.emptyScript:"";for(let f=0;f<u;f++)s.append(c[f],H()),A.nextNode(),a.push({type:2,index:++o});s.append(c[u],H())}}}else if(s.nodeType===8)if(s.data===Rt)a.push({type:2,index:o});else{let c=-1;for(;(c=s.data.indexOf(v,c+1))!==-1;)a.push({type:7,index:o}),c+=v.length-1}o++}}static createElement(t,e){let r=S.createElement("template");return r.innerHTML=t,r}};function C(n,t,e=n,r){if(t===w)return t;let s=r!==void 0?e._$Co?.[r]:e._$Cl,o=z(t)?void 0:t._$litDirective$;return s?.constructor!==o&&(s?._$AO?.(!1),o===void 0?s=void 0:(s=new o(n),s._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=s:e._$Cl=s),s!==void 0&&(t=C(n,s._$AS(n,t.values),s,r)),t}var tt=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,s=(t?.creationScope??S).importNode(e,!0);A.currentNode=s;let o=A.nextNode(),i=0,l=0,a=r[0];for(;a!==void 0;){if(i===a.index){let d;a.type===2?d=new D(o,o.nextSibling,this,t):a.type===1?d=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(d=new nt(o,this,t)),this._$AV.push(d),a=r[++l]}i!==a?.index&&(o=A.nextNode(),i++)}return A.currentNode=S,s}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++}},D=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,s){this.type=2,this._$AH=h,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cv=s?.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=C(this,t,e),z(t)?t===h||t==null||t===""?(this._$AH!==h&&this._$AR(),this._$AH=h):t!==this._$AH&&t!==w&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):te(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!==h&&z(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=I.createElement(Nt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===s)this._$AH.p(e);else{let o=new tt(s,this),i=o.u(this.options);o.p(e),this.T(i),this._$AH=o}}_$AC(t){let e=Pt.get(t.strings);return e===void 0&&Pt.set(t.strings,e=new I(t)),e}k(t){it(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,s=0;for(let o of t)s===e.length?e.push(r=new n(this.O(H()),this.O(H()),this,this.options)):r=e[s],r._$AI(o),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=bt(t).nextSibling;bt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},R=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,o){this.type=1,this._$AH=h,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=h}_$AI(t,e=this,r,s){let o=this.strings,i=!1;if(o===void 0)t=C(this,t,e,0),i=!z(t)||t!==this._$AH&&t!==w,i&&(this._$AH=t);else{let l=t,a,d;for(t=o[0],a=0;a<o.length-1;a++)d=C(this,l[r+a],e,a),d===w&&(d=this._$AH[a]),i||=!z(d)||d!==this._$AH[a],d===h?t=h:t!==h&&(t+=(d??"")+o[a+1]),this._$AH[a]=d}i&&!s&&this.j(t)}j(t){t===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},et=class extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===h?void 0:t}},rt=class extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==h)}},st=class extends R{constructor(t,e,r,s,o){super(t,e,r,s,o),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??h)===w)return;let r=this._$AH,s=t===h&&r!==h||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==h&&(r===h||s);s&&this.element.removeEventListener(this.name,this,r),o&&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)}},nt=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){C(this,t)}};var re=ot.litHtmlPolyfillSupport;re?.(I,D),(ot.litHtmlVersions??=[]).push("3.3.2");var Mt=(n,t,e)=>{let r=e?.renderBefore??t,s=r._$litPart$;if(s===void 0){let o=e?.renderBefore??null;r._$litPart$=s=new D(t.insertBefore(H(),o),o,void 0,e??{})}return s._$AI(n),s};var lt=globalThis,b=class extends x{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=Mt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return w}};b._$litElement$=!0,b.finalized=!0,lt.litElementHydrateSupport?.({LitElement:b});var se=lt.litElementPolyfillSupport;se?.({LitElement:b});(lt.litElementVersions??=[]).push("4.2.2");var kt=n=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(n,t)}):customElements.define(n,t)};var ne={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:V},oe=(n=ne,t,e)=>{let{kind:r,metadata:s}=e,o=globalThis.litPropertyMetadata.get(s);if(o===void 0&&globalThis.litPropertyMetadata.set(s,o=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),o.set(e.name,n),r==="accessor"){let{name:i}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(i,a,n,!0,l)},init(l){return l!==void 0&&this.C(i,void 0,n,l),l}}}if(r==="setter"){let{name:i}=e;return function(l){let a=this[i];t.call(this,l),this.requestUpdate(i,a,n,!0,l)}}throw Error("Unsupported decorator location: "+r)};function ct(n){return(t,e)=>typeof e=="object"?oe(n,t,e):((r,s,o)=>{let i=s.hasOwnProperty(o);return s.constructor.createProperty(o,r),i?Object.getOwnPropertyDescriptor(s,o):void 0})(n,t,e)}var Lt={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 Ot={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 T=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],sr=T.map(n=>n.toLowerCase());var Ut=k`: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}*,:before,:after{box-sizing:border-box}@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-empty{padding:var(--roxy-space-lg,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;function ie(n){let t=n%360;return t<0?t+360:t}function Ht(n){let t=ie(n),e=Math.floor(t/30)%12,r=t%30,s=Math.floor(r),o=(r-s)*60,i=Math.floor(o),l=Math.round((o-i)*60);return{sign:T[e]??"Aries",signIndex:e,degree:s,minute:i,second:l}}function $(n,t,e,r){let s=r*Math.PI/180;return{x:n+e*Math.cos(s),y:t+e*Math.sin(s)}}function dt(n,t=1){return typeof n!="number"||!Number.isFinite(n)?"":n.toFixed(t).replace(/\.?0+$/,"")}var zt={conjunction:"aspect-conjunction",sextile:"aspect-sextile",square:"aspect-square",trine:"aspect-trine",opposition:"aspect-opposition"};function ht(n){return(n.type??"").toLowerCase().replace(/_/g,"-")}var ae="roxy-data";function le(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var Y=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(le(t)&&t.classList.contains(ae))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};function J(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}var mt=360,m=mt/2,pt=170,ce=154,ut=124,N=96,P=class extends b{constructor(){super();this.data=null;new Y(this)}render(){if(!this.data)return g`<div class="roxy-empty" role="status">No synastry data</div>`;let{person1:e,person2:r,compatibilityScore:s,analysis:o}=this.data,i=this.data.interAspects??[],l=e?.planets??[],a=r?.planets??[],d=typeof s=="number"?Math.round(s):void 0,p=o?.overall,c=o?.strengths??[],u=o?.challenges??[];return l.length>0&&a.length>0?g`<div class="wrap" aria-label="Synastry compatibility chart"><div class="head"><h2 class="title">Synastry</h2>${typeof d=="number"?g`<span class="score" aria-label="${`Score ${d} of 100`}">${d} / 100</span>`:h}</div><svg viewBox="0 0 ${mt} ${mt}" role="img" aria-label="Dual chart wheel comparing two natal charts"><title>Synastry dual wheel</title><circle class="wheel-line" cx="${m}" cy="${m}" r="${pt}" stroke-width="1.5"/><circle class="wheel-line" cx="${m}" cy="${m}" r="${N+14}" stroke-width="0.8"/><circle class="wheel-line" cx="${m}" cy="${m}" r="${N-14}" stroke-width="0.6"/>${this.renderSpokes()} ${this.renderSigns()} ${this.renderInterAspectLines(l,a,i)} ${this.renderRing(l,ut,"p1",1)} ${this.renderRing(a,N,"p2",2)} ${this.renderAscendants(this.data)}</svg><div class="legend-row"><span><span class="swatch" style="background:var(--roxy-accent)"></span>Person 1</span> <span><span class="swatch" style="background:var(--roxy-info)"></span>Person 2</span> <span><span class="swatch" style="background:var(--roxy-success)"></span>harmonious</span> <span><span class="swatch" style="background:var(--roxy-danger)"></span>challenging</span></div>${p?g`<p class="summary">${p}</p>`:h} ${i.length>0?this.renderAspects(i):h} ${c.length>0||u.length>0?g`<div class="lists">${c.length?g`<div><h3>Strengths</h3><ul>${c.map(y=>g`<li>${y}</li>`)}</ul></div>`:h} ${u.length?g`<div><h3>Challenges</h3><ul>${u.map(y=>g`<li>${y}</li>`)}</ul></div>`:h}</div>`:h}</div>`:g`<div class="wrap" aria-label="Synastry compatibility chart"><div class="head"><h2 class="title">Synastry</h2>${typeof d=="number"?g`<span class="score" aria-label="${`Score ${d} of 100`}">${d} / 100</span>`:h}</div><div class="missing-planets" role="status">Synastry response missing planet positions. Pass <code>data</code> with <code>person1.planets</code> and <code>person2.planets</code> arrays from the natal-chart endpoint, or use the <code><roxy-data></code> fallback.</div>${p?g`<p class="summary">${p}</p>`:h} ${i.length>0?this.renderAspects(i):h} ${c.length>0||u.length>0?g`<div class="lists">${c.length?g`<div><h3>Strengths</h3><ul>${c.map(y=>g`<li>${y}</li>`)}</ul></div>`:h} ${u.length?g`<div><h3>Challenges</h3><ul>${u.map(y=>g`<li>${y}</li>`)}</ul></div>`:h}</div>`:h}</div>`}toAngle(e){return 180-e}renderSpokes(){return Array.from({length:12},(e,r)=>{let s=this.toAngle(r*30),o=$(m,m,N-14,s),i=$(m,m,pt,s);return E`<line class="wheel-line" x1="${o.x}" y1="${o.y}" x2="${i.x}" y2="${i.y}" stroke-width="0.6">`})}renderSigns(){return T.map((e,r)=>{let s=this.toAngle(r*30+15),o=$(m,m,ce,s);return E`<text class="sign" x="${o.x}" y="${o.y}" text-anchor="middle" dominant-baseline="central">${Ot[e]}</text>`})}renderRing(e,r,s,o){return e.map(i=>{if(!Number.isFinite(i.longitude))return h;let l=this.toAngle(i.longitude),a=$(m,m,r,l),p=$(m,m,r+(o===1?-12:-10),l),c=Lt[J(i.name)]??i.name.slice(0,2),u=Ht(i.longitude),f=i.isRetrograde===!0,y=`${u.degree}\xB0${String(u.minute).padStart(2,"0")}'`,It=`${i.name}${f?" retrograde":""} - ${y} ${u.sign}`;return E`<g><text class="${s}" x="${a.x}" y="${a.y}" text-anchor="middle" dominant-baseline="central"><title>${It}</title>${c}<tspan class="person-tag" dy="-0.55em" dx="0.15em">${o}</tspan></text><text class="planet-deg" x="${p.x}" y="${p.y}" text-anchor="middle" dominant-baseline="central">${u.degree}°${f?E`<tspan class="retro">℞</tspan>`:h}</text></g>`})}renderAscendants(e){let r=[],s=(o,i)=>{if(!o)return;let l=T.findIndex(f=>f.toLowerCase()===o.sign.toLowerCase());if(l===-1)return;let a=l*30+o.degree,d=this.toAngle(a),p=i===1?ut+14:N+14,c=$(m,m,p,d),u=$(m,m,pt+14,d);r.push(E`<g><line class="asc-tick" x1="${c.x}" y1="${c.y}" x2="${u.x}" y2="${u.y}"><text class="asc-label" x="${u.x}" y="${u.y}" text-anchor="middle" dominant-baseline="central">Asc${i}</text></g>`)};return s(e.person1?.ascendant,1),s(e.person2?.ascendant,2),r}renderInterAspectLines(e,r,s){let o=(i,l)=>{let a=J(l);for(let d of i)if(J(d.name)===a&&typeof d.longitude=="number")return d.longitude};return s.map(i=>{let l=o(e,i.planet1),a=o(r,i.planet2);if(l===void 0||a===void 0)return h;let d=$(m,m,ut-12,this.toAngle(l)),p=$(m,m,N+8,this.toAngle(a)),c=ht(i),u=zt[c]??"aspect-other",f=dt(i.orb,1);return E`<line class="${`aspect ${u}`}" x1="${d.x}" y1="${d.y}" x2="${p.x}" y2="${p.y}"><title>${i.planet1} ${c} ${i.planet2}${f?` (orb ${f}\xB0)`:""}</title></line>`})}renderAspects(e){return g`<table><thead><tr><th>Planet 1</th><th>Planet 2</th><th>Aspect</th><th>Orb</th><th>Strength</th></tr></thead><tbody>${e.slice(0,12).map(r=>g`<tr><td>${r.planet1}</td><td>${r.planet2}</td><td>${ht(r)||""}</td><td class="orb">${dt(r.orb,1)}</td><td>${de(r.strength)}</td></tr>`)}</tbody></table>`}};P.styles=[Ut,k`.wrap{gap:var(--roxy-space-md,1rem);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.score{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-fg,#b45309);font-size:var(--roxy-text-xl,1.5rem)}svg{aspect-ratio:1;width:100%;max-width:560px;height:auto;margin:0 auto;display:block}.wheel-line{fill:none;stroke:var(--roxy-border,#e4e4e7)}.sign{fill:var(--roxy-secondary,#475569);font-size:14px}.p1{fill:var(--roxy-accent,#f59e0b);font-size:13px;font-weight:600}.p2{fill:var(--roxy-info,#0284c7);font-size:13px;font-weight:600}.person-tag{opacity:.85;font-size:7px;font-weight:700}.planet-deg{fill:var(--roxy-muted,#71717a);font-size:7px;font-family:var(--roxy-font-sans)}.planet-deg .retro{fill:var(--roxy-danger,#dc2626)}.asc-tick{stroke:var(--roxy-accent-fg,#b45309);stroke-width:1px;opacity:.75}.asc-label{fill:var(--roxy-accent-fg,#b45309);font-size:9px;font-weight:700;font-family:var(--roxy-font-sans);letter-spacing:.04em}.aspect{stroke-width:.8px;fill:none;opacity:.5}.aspect-trine,.aspect-sextile{stroke:var(--roxy-success,#16a34a)}.aspect-square,.aspect-opposition{stroke:var(--roxy-danger,#dc2626)}.aspect-conjunction{stroke:var(--roxy-accent-fg,#b45309)}.aspect-other{stroke:var(--roxy-muted,#71717a);opacity:.35}.legend-row{gap:var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin-top:calc(var(--roxy-space-xs,.25rem) * -1);flex-wrap:wrap;display:flex}.legend-row .swatch{vertical-align:middle;border-radius:50%;width:8px;height:8px;margin-right:4px;display:inline-block}.summary{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);margin:0}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}td.orb{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));display:grid}.lists h3{margin:0 0 var(--roxy-space-xs,.25rem) 0;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);font-size:var(--roxy-text-sm,.875rem);margin:0}.missing-planets{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);line-height:1.5}.missing-planets code{font-family:var(--roxy-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);background:color-mix(in srgb, var(--roxy-fg,#0a0a0a) 6%, transparent);border-radius:4px;padding:0 4px;font-size:.95em}`],K([ct({attribute:!1})],P.prototype,"data",2),P=K([kt("roxy-synastry-chart")],P);function de(n){return typeof n=="number"?Math.round(n).toString():""}return Gt(he);})();
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),wt=/'/g,Et=/"/g,Tt=/^(?:script|style|textarea|title)$/i,at=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),g=at(1),E=at(2),ye=at(3),w=Symbol.for("lit-noChange"),h=Symbol.for("lit-nothing"),Pt=new WeakMap,A=S.createTreeWalker(S,129);function Nt(n,t){if(!it(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return _t!==void 0?_t.createHTML(t):t}var ee=(n,t)=>{let e=n.length-1,r=[],s,o=t===2?"<svg>":t===3?"<math>":"",i=U;for(let l=0;l<e;l++){let a=n[l],d,p,c=-1,u=0;for(;u<a.length&&(i.lastIndex=u,p=i.exec(a),p!==null);)u=i.lastIndex,i===U?p[1]==="!--"?i=At:p[1]!==void 0?i=St:p[2]!==void 0?(Tt.test(p[2])&&(s=RegExp("</"+p[2],"g")),i=_):p[3]!==void 0&&(i=_):i===_?p[0]===">"?(i=s??U,c=-1):p[1]===void 0?c=-2:(c=i.lastIndex-p[2].length,d=p[1],i=p[3]===void 0?_:p[3]==='"'?Et:wt):i===Et||i===wt?i=_:i===At||i===St?i=U:(i=_,s=void 0);let f=i===_&&n[l+1].startsWith("/>")?" ":"";o+=i===U?a+Qt:c>=0?(r.push(d),a.slice(0,c)+Ct+a.slice(c)+v+f):a+v+(c===-2?l:f)}return[Nt(n,o+(n[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},I=class n{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let o=0,i=0,l=t.length-1,a=this.parts,[d,p]=ee(t,e);if(this.el=n.createElement(d,r),A.currentNode=this.el.content,e===2||e===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(s=A.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes())for(let c of s.getAttributeNames())if(c.endsWith(Ct)){let u=p[i++],f=s.getAttribute(c).split(v),y=/([.?@])?(.*)/.exec(u);a.push({type:1,index:o,name:y[2],strings:f,ctor:y[1]==="."?et:y[1]==="?"?rt:y[1]==="@"?st:R}),s.removeAttribute(c)}else c.startsWith(v)&&(a.push({type:6,index:o}),s.removeAttribute(c));if(Tt.test(s.tagName)){let c=s.textContent.split(v),u=c.length-1;if(u>0){s.textContent=W?W.emptyScript:"";for(let f=0;f<u;f++)s.append(c[f],H()),A.nextNode(),a.push({type:2,index:++o});s.append(c[u],H())}}}else if(s.nodeType===8)if(s.data===Rt)a.push({type:2,index:o});else{let c=-1;for(;(c=s.data.indexOf(v,c+1))!==-1;)a.push({type:7,index:o}),c+=v.length-1}o++}}static createElement(t,e){let r=S.createElement("template");return r.innerHTML=t,r}};function C(n,t,e=n,r){if(t===w)return t;let s=r!==void 0?e._$Co?.[r]:e._$Cl,o=z(t)?void 0:t._$litDirective$;return s?.constructor!==o&&(s?._$AO?.(!1),o===void 0?s=void 0:(s=new o(n),s._$AT(n,e,r)),r!==void 0?(e._$Co??=[])[r]=s:e._$Cl=s),s!==void 0&&(t=C(n,s._$AS(n,t.values),s,r)),t}var tt=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,s=(t?.creationScope??S).importNode(e,!0);A.currentNode=s;let o=A.nextNode(),i=0,l=0,a=r[0];for(;a!==void 0;){if(i===a.index){let d;a.type===2?d=new D(o,o.nextSibling,this,t):a.type===1?d=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(d=new nt(o,this,t)),this._$AV.push(d),a=r[++l]}i!==a?.index&&(o=A.nextNode(),i++)}return A.currentNode=S,s}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++}},D=class n{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,s){this.type=2,this._$AH=h,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cv=s?.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=C(this,t,e),z(t)?t===h||t==null||t===""?(this._$AH!==h&&this._$AR(),this._$AH=h):t!==this._$AH&&t!==w&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):te(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!==h&&z(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=I.createElement(Nt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===s)this._$AH.p(e);else{let o=new tt(s,this),i=o.u(this.options);o.p(e),this.T(i),this._$AH=o}}_$AC(t){let e=Pt.get(t.strings);return e===void 0&&Pt.set(t.strings,e=new I(t)),e}k(t){it(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,s=0;for(let o of t)s===e.length?e.push(r=new n(this.O(H()),this.O(H()),this,this.options)):r=e[s],r._$AI(o),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let r=bt(t).nextSibling;bt(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},R=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,o){this.type=1,this._$AH=h,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=h}_$AI(t,e=this,r,s){let o=this.strings,i=!1;if(o===void 0)t=C(this,t,e,0),i=!z(t)||t!==this._$AH&&t!==w,i&&(this._$AH=t);else{let l=t,a,d;for(t=o[0],a=0;a<o.length-1;a++)d=C(this,l[r+a],e,a),d===w&&(d=this._$AH[a]),i||=!z(d)||d!==this._$AH[a],d===h?t=h:t!==h&&(t+=(d??"")+o[a+1]),this._$AH[a]=d}i&&!s&&this.j(t)}j(t){t===h?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},et=class extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===h?void 0:t}},rt=class extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==h)}},st=class extends R{constructor(t,e,r,s,o){super(t,e,r,s,o),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??h)===w)return;let r=this._$AH,s=t===h&&r!==h||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==h&&(r===h||s);s&&this.element.removeEventListener(this.name,this,r),o&&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)}},nt=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){C(this,t)}};var re=ot.litHtmlPolyfillSupport;re?.(I,D),(ot.litHtmlVersions??=[]).push("3.3.2");var Mt=(n,t,e)=>{let r=e?.renderBefore??t,s=r._$litPart$;if(s===void 0){let o=e?.renderBefore??null;r._$litPart$=s=new D(t.insertBefore(H(),o),o,void 0,e??{})}return s._$AI(n),s};var lt=globalThis,b=class extends x{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=Mt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return w}};b._$litElement$=!0,b.finalized=!0,lt.litElementHydrateSupport?.({LitElement:b});var se=lt.litElementPolyfillSupport;se?.({LitElement:b});(lt.litElementVersions??=[]).push("4.2.2");var kt=n=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(n,t)}):customElements.define(n,t)};var ne={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:V},oe=(n=ne,t,e)=>{let{kind:r,metadata:s}=e,o=globalThis.litPropertyMetadata.get(s);if(o===void 0&&globalThis.litPropertyMetadata.set(s,o=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),o.set(e.name,n),r==="accessor"){let{name:i}=e;return{set(l){let a=t.get.call(this);t.set.call(this,l),this.requestUpdate(i,a,n,!0,l)},init(l){return l!==void 0&&this.C(i,void 0,n,l),l}}}if(r==="setter"){let{name:i}=e;return function(l){let a=this[i];t.call(this,l),this.requestUpdate(i,a,n,!0,l)}}throw Error("Unsupported decorator location: "+r)};function ct(n){return(t,e)=>typeof e=="object"?oe(n,t,e):((r,s,o)=>{let i=s.hasOwnProperty(o);return s.constructor.createProperty(o,r),i?Object.getOwnPropertyDescriptor(s,o):void 0})(n,t,e)}var Lt={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 Ot={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 T=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],sr=T.map(n=>n.toLowerCase());var Ut=k`: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}*,:before,:after{box-sizing:border-box}@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-empty{padding:var(--roxy-space-lg,1.5rem);color:var(--roxy-muted,#71717a);text-align:center;font-size:var(--roxy-text-sm,.875rem)}:host(:focus-within) .roxy-card{outline:2px solid var(--roxy-ring,#f59e0b66);outline-offset:2px}:host{font-variant-emoji:text}`;function ie(n){let t=n%360;return t<0?t+360:t}function Ht(n){let t=ie(n),e=Math.floor(t/30)%12,r=t%30,s=Math.floor(r),o=(r-s)*60,i=Math.floor(o),l=Math.round((o-i)*60);return{sign:T[e]??"Aries",signIndex:e,degree:s,minute:i,second:l}}function $(n,t,e,r){let s=r*Math.PI/180;return{x:n+e*Math.cos(s),y:t+e*Math.sin(s)}}function dt(n,t=1){return typeof n!="number"||!Number.isFinite(n)?"":n.toFixed(t).replace(/\.?0+$/,"")}var zt={conjunction:"aspect-conjunction",sextile:"aspect-sextile",square:"aspect-square",trine:"aspect-trine",opposition:"aspect-opposition"};function ht(n){return(n.type??"").toLowerCase().replace(/_/g,"-")}var ae="roxy-data";function le(n){return n.nodeName==="SCRIPT"&&n.getAttribute("type")==="application/json"}var Y=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(le(t)&&t.classList.contains(ae))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};function J(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}var mt=360,m=mt/2,pt=170,ce=154,ut=124,N=96,P=class extends b{constructor(){super();this.data=null;new Y(this)}render(){if(!this.data)return g`<div class="roxy-empty" role="status">No synastry data</div>`;let{person1:e,person2:r,compatibilityScore:s,analysis:o}=this.data,i=this.data.interAspects??[],l=e?.planets??[],a=r?.planets??[],d=typeof s=="number"?Math.round(s):void 0,p=o?.overall,c=o?.strengths??[],u=o?.challenges??[];return l.length>0&&a.length>0?g`<div class="wrap" aria-label="Synastry compatibility chart"><div class="head"><h2 class="title">Synastry</h2>${typeof d=="number"?g`<span class="score" aria-label="${`Score ${d} of 100`}">${d} / 100</span>`:h}</div><svg viewBox="0 0 ${mt} ${mt}" role="img" aria-label="Dual chart wheel comparing two natal charts"><title>Synastry dual wheel</title><circle class="wheel-line" cx="${m}" cy="${m}" r="${pt}" stroke-width="1.5"/><circle class="wheel-line" cx="${m}" cy="${m}" r="${N+14}" stroke-width="0.8"/><circle class="wheel-line" cx="${m}" cy="${m}" r="${N-14}" stroke-width="0.6"/>${this.renderSpokes()} ${this.renderSigns()} ${this.renderInterAspectLines(l,a,i)} ${this.renderRing(l,ut,"p1",1)} ${this.renderRing(a,N,"p2",2)} ${this.renderAscendants(this.data)}</svg><div class="legend-row"><span><span class="swatch" style="background:var(--roxy-accent)"></span>Person 1</span> <span><span class="swatch" style="background:var(--roxy-info)"></span>Person 2</span> <span><span class="swatch" style="background:var(--roxy-success)"></span>harmonious</span> <span><span class="swatch" style="background:var(--roxy-danger)"></span>challenging</span></div>${p?g`<p class="summary">${p}</p>`:h} ${i.length>0?this.renderAspects(i):h} ${c.length>0||u.length>0?g`<div class="lists">${c.length?g`<div><h3>Strengths</h3><ul>${c.map(y=>g`<li>${y}</li>`)}</ul></div>`:h} ${u.length?g`<div><h3>Challenges</h3><ul>${u.map(y=>g`<li>${y}</li>`)}</ul></div>`:h}</div>`:h}</div>`:g`<div class="wrap" aria-label="Synastry compatibility chart"><div class="head"><h2 class="title">Synastry</h2>${typeof d=="number"?g`<span class="score" aria-label="${`Score ${d} of 100`}">${d} / 100</span>`:h}</div><div class="missing-planets" role="status">Synastry response missing planet positions. Pass <code>data</code> with <code>person1.planets</code> and <code>person2.planets</code> arrays from the natal-chart endpoint, or use the <code><roxy-data></code> fallback.</div>${p?g`<p class="summary">${p}</p>`:h} ${i.length>0?this.renderAspects(i):h} ${c.length>0||u.length>0?g`<div class="lists">${c.length?g`<div><h3>Strengths</h3><ul>${c.map(y=>g`<li>${y}</li>`)}</ul></div>`:h} ${u.length?g`<div><h3>Challenges</h3><ul>${u.map(y=>g`<li>${y}</li>`)}</ul></div>`:h}</div>`:h}</div>`}toAngle(e){return 180-e}renderSpokes(){return Array.from({length:12},(e,r)=>{let s=this.toAngle(r*30),o=$(m,m,N-14,s),i=$(m,m,pt,s);return E`<line class="wheel-line" x1=${o.x} y1=${o.y} x2=${i.x} y2=${i.y} stroke-width="0.6" />`})}renderSigns(){return T.map((e,r)=>{let s=this.toAngle(r*30+15),o=$(m,m,ce,s);return E`<text class="sign" x=${o.x} y=${o.y} text-anchor="middle" dominant-baseline="central">${Ot[e]}</text>`})}renderRing(e,r,s,o){return e.map(i=>{if(!Number.isFinite(i.longitude))return h;let l=this.toAngle(i.longitude),a=$(m,m,r,l),p=$(m,m,r+(o===1?-12:-10),l),c=Lt[J(i.name)]??i.name.slice(0,2),u=Ht(i.longitude),f=i.isRetrograde===!0,y=`${u.degree}\xB0${String(u.minute).padStart(2,"0")}'`,It=`${i.name}${f?" retrograde":""} - ${y} ${u.sign}`;return E`<g>
|
|
4
|
+
<text class=${s} x=${a.x} y=${a.y} text-anchor="middle" dominant-baseline="central"><title>${It}</title>${c}<tspan class="person-tag" dy="-0.55em" dx="0.15em">${o}</tspan></text>
|
|
5
|
+
<text class="planet-deg" x=${p.x} y=${p.y} text-anchor="middle" dominant-baseline="central">${u.degree}°${f?E`<tspan class="retro"> ℞</tspan>`:h}</text>
|
|
6
|
+
</g>`})}renderAscendants(e){let r=[],s=(o,i)=>{if(!o)return;let l=T.findIndex(f=>f.toLowerCase()===o.sign.toLowerCase());if(l===-1)return;let a=l*30+o.degree,d=this.toAngle(a),p=i===1?ut+14:N+14,c=$(m,m,p,d),u=$(m,m,pt+14,d);r.push(E`<g>
|
|
7
|
+
<line class="asc-tick" x1=${c.x} y1=${c.y} x2=${u.x} y2=${u.y} />
|
|
8
|
+
<text class="asc-label" x=${u.x} y=${u.y} text-anchor="middle" dominant-baseline="central">Asc${i}</text>
|
|
9
|
+
</g>`)};return s(e.person1?.ascendant,1),s(e.person2?.ascendant,2),r}renderInterAspectLines(e,r,s){let o=(i,l)=>{let a=J(l);for(let d of i)if(J(d.name)===a&&typeof d.longitude=="number")return d.longitude};return s.map(i=>{let l=o(e,i.planet1),a=o(r,i.planet2);if(l===void 0||a===void 0)return h;let d=$(m,m,ut-12,this.toAngle(l)),p=$(m,m,N+8,this.toAngle(a)),c=ht(i),u=zt[c]??"aspect-other",f=dt(i.orb,1);return E`<line class=${`aspect ${u}`} x1=${d.x} y1=${d.y} x2=${p.x} y2=${p.y}><title>${i.planet1} ${c} ${i.planet2}${f?` (orb ${f}\xB0)`:""}</title></line>`})}renderAspects(e){return g`<table><thead><tr><th>Planet 1</th><th>Planet 2</th><th>Aspect</th><th>Orb</th><th>Strength</th></tr></thead><tbody>${e.slice(0,12).map(r=>g`<tr><td>${r.planet1}</td><td>${r.planet2}</td><td>${ht(r)||""}</td><td class="orb">${dt(r.orb,1)}</td><td>${de(r.strength)}</td></tr>`)}</tbody></table>`}};P.styles=[Ut,k`.wrap{gap:var(--roxy-space-md,1rem);display:grid}.head{justify-content:space-between;align-items:center;gap:var(--roxy-space-md,1rem);flex-wrap:wrap;display:flex}.title{font-size:var(--roxy-text-lg,1.125rem);font-weight:var(--roxy-weight-bold,600);margin:0}.score{font-variant-numeric:tabular-nums;font-weight:var(--roxy-weight-bold,600);color:var(--roxy-accent-fg,#b45309);font-size:var(--roxy-text-xl,1.5rem)}svg{aspect-ratio:1;width:100%;max-width:560px;height:auto;margin:0 auto;display:block}.wheel-line{fill:none;stroke:var(--roxy-border,#e4e4e7)}.sign{fill:var(--roxy-secondary,#475569);font-size:14px}.p1{fill:var(--roxy-accent,#f59e0b);font-size:13px;font-weight:600}.p2{fill:var(--roxy-info,#0284c7);font-size:13px;font-weight:600}.person-tag{opacity:.85;font-size:7px;font-weight:700}.planet-deg{fill:var(--roxy-muted,#71717a);font-size:7px;font-family:var(--roxy-font-sans)}.planet-deg .retro{fill:var(--roxy-danger,#dc2626)}.asc-tick{stroke:var(--roxy-accent-fg,#b45309);stroke-width:1px;opacity:.75}.asc-label{fill:var(--roxy-accent-fg,#b45309);font-size:9px;font-weight:700;font-family:var(--roxy-font-sans);letter-spacing:.04em}.aspect{stroke-width:.8px;fill:none;opacity:.5}.aspect-trine,.aspect-sextile{stroke:var(--roxy-success,#16a34a)}.aspect-square,.aspect-opposition{stroke:var(--roxy-danger,#dc2626)}.aspect-conjunction{stroke:var(--roxy-accent-fg,#b45309)}.aspect-other{stroke:var(--roxy-muted,#71717a);opacity:.35}.legend-row{gap:var(--roxy-space-md,1rem);font-size:var(--roxy-text-xs,.75rem);color:var(--roxy-muted,#71717a);margin-top:calc(var(--roxy-space-xs,.25rem) * -1);flex-wrap:wrap;display:flex}.legend-row .swatch{vertical-align:middle;border-radius:50%;width:8px;height:8px;margin-right:4px;display:inline-block}.summary{color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-base,1rem);margin:0}table{border-collapse:collapse;width:100%;font-size:var(--roxy-text-sm,.875rem)}th,td{padding:var(--roxy-space-sm,.5rem);border-bottom:1px solid var(--roxy-border,#e4e4e7);text-align:left}th{color:var(--roxy-muted,#71717a);font-weight:var(--roxy-weight-bold,600);text-transform:uppercase;font-size:var(--roxy-text-xs,.75rem);letter-spacing:.06em}td.orb{font-variant-numeric:tabular-nums;color:var(--roxy-muted,#71717a)}.lists{gap:var(--roxy-space-md,1rem);grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));display:grid}.lists h3{margin:0 0 var(--roxy-space-xs,.25rem) 0;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);font-size:var(--roxy-text-sm,.875rem);margin:0}.missing-planets{background:color-mix(in srgb, var(--roxy-accent,#f59e0b) 8%, transparent);border:1px solid var(--roxy-border,#e4e4e7);border-radius:var(--roxy-radius-md,8px);padding:var(--roxy-space-md,1rem);color:var(--roxy-fg,#0a0a0a);font-size:var(--roxy-text-sm,.875rem);line-height:1.5}.missing-planets code{font-family:var(--roxy-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);background:color-mix(in srgb, var(--roxy-fg,#0a0a0a) 6%, transparent);border-radius:4px;padding:0 4px;font-size:.95em}`],K([ct({attribute:!1})],P.prototype,"data",2),P=K([kt("roxy-synastry-chart")],P);function de(n){return typeof n=="number"?Math.round(n).toString():""}return Gt(he);})();
|
|
4
10
|
/*! Bundled license information:
|
|
5
11
|
|
|
6
12
|
@lit/reactive-element/css-tag.js:
|