@roxyapi/ui 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/components-catalog.json +1 -1
  2. package/dist/cdn/components/almanac-day.js +1 -1
  3. package/dist/cdn/components/angel-number-card.js +1 -1
  4. package/dist/cdn/components/angel-number-lookup.js +1 -1
  5. package/dist/cdn/components/arudha-padas.js +1 -1
  6. package/dist/cdn/components/ashtakavarga-grid.js +1 -1
  7. package/dist/cdn/components/aspects-table.js +1 -1
  8. package/dist/cdn/components/astrocartography-map.js +1 -1
  9. package/dist/cdn/components/bazi-chart.js +1 -1
  10. package/dist/cdn/components/bhav-chalit-table.js +1 -1
  11. package/dist/cdn/components/bhava-bala-table.js +1 -1
  12. package/dist/cdn/components/biorhythm-chart.js +1 -1
  13. package/dist/cdn/components/bodygraph.js +1 -1
  14. package/dist/cdn/components/chara-karakas.js +1 -1
  15. package/dist/cdn/components/choghadiya-grid.js +1 -1
  16. package/dist/cdn/components/compatibility-card.js +1 -1
  17. package/dist/cdn/components/compound-number.js +1 -1
  18. package/dist/cdn/components/crystal-card.js +1 -1
  19. package/dist/cdn/components/crystal-grid.js +1 -1
  20. package/dist/cdn/components/dasha-timeline.js +1 -1
  21. package/dist/cdn/components/data.js +1 -1
  22. package/dist/cdn/components/divisional-chart.js +1 -1
  23. package/dist/cdn/components/dosha-card.js +1 -1
  24. package/dist/cdn/components/dosha-constitution.js +1 -1
  25. package/dist/cdn/components/dream-card.js +1 -1
  26. package/dist/cdn/components/dream-search.js +1 -1
  27. package/dist/cdn/components/endpoint-form.js +1 -1
  28. package/dist/cdn/components/ephemeris-table.js +1 -1
  29. package/dist/cdn/components/fixed-stars.js +1 -1
  30. package/dist/cdn/components/flying-star-chart.js +1 -1
  31. package/dist/cdn/components/forecast-digest.js +1 -1
  32. package/dist/cdn/components/forecast-timeline.js +1 -1
  33. package/dist/cdn/components/gematria.js +1 -1
  34. package/dist/cdn/components/gochara-table.js +1 -1
  35. package/dist/cdn/components/guna-milan.js +1 -1
  36. package/dist/cdn/components/hd-connection.js +1 -1
  37. package/dist/cdn/components/hd-penta.js +1 -1
  38. package/dist/cdn/components/hd-type-card.js +1 -1
  39. package/dist/cdn/components/hd-variables.js +1 -1
  40. package/dist/cdn/components/heliacal-table.js +1 -1
  41. package/dist/cdn/components/hexagram.js +1 -1
  42. package/dist/cdn/components/hora-table.js +1 -1
  43. package/dist/cdn/components/horoscope-card.js +1 -1
  44. package/dist/cdn/components/kp-chart.js +1 -1
  45. package/dist/cdn/components/kp-finance-card.js +1 -1
  46. package/dist/cdn/components/kp-planets-table.js +1 -1
  47. package/dist/cdn/components/kp-ruling-planets.js +1 -1
  48. package/dist/cdn/components/kua-card.js +1 -1
  49. package/dist/cdn/components/local-space-compass.js +1 -1
  50. package/dist/cdn/components/location-search.js +1 -1
  51. package/dist/cdn/components/luck-pillars.js +1 -1
  52. package/dist/cdn/components/mayan-day-sign.js +1 -1
  53. package/dist/cdn/components/moon-phase.js +1 -1
  54. package/dist/cdn/components/nakshatra-card.js +1 -1
  55. package/dist/cdn/components/natal-chart.js +17 -17
  56. package/dist/cdn/components/numerology-card.js +1 -1
  57. package/dist/cdn/components/panchang-table.js +1 -1
  58. package/dist/cdn/components/positions-table.js +1 -1
  59. package/dist/cdn/components/profection-card.js +1 -1
  60. package/dist/cdn/components/reference-card.js +1 -1
  61. package/dist/cdn/components/relocation-wheel.js +14 -14
  62. package/dist/cdn/components/report.js +1 -1
  63. package/dist/cdn/components/shadbala-table.js +1 -1
  64. package/dist/cdn/components/synastry-chart.js +1 -1
  65. package/dist/cdn/components/tarot-card.js +1 -1
  66. package/dist/cdn/components/tarot-catalog.js +1 -1
  67. package/dist/cdn/components/tarot-spread.js +1 -1
  68. package/dist/cdn/components/transit-wheel.js +1 -1
  69. package/dist/cdn/components/transits-table.js +1 -1
  70. package/dist/cdn/components/upagraha-table.js +1 -1
  71. package/dist/cdn/components/vastu-mandala.js +1 -1
  72. package/dist/cdn/components/vedic-aspects.js +1 -1
  73. package/dist/cdn/components/vedic-daily.js +1 -1
  74. package/dist/cdn/components/vedic-kundli.js +1 -1
  75. package/dist/cdn/components/vedic-planets-table.js +2 -2
  76. package/dist/cdn/components/western-planets-table.js +1 -1
  77. package/dist/cdn/components/yoga-list.js +1 -1
  78. package/dist/cdn/components/zodiac-card.js +1 -1
  79. package/dist/cdn/locales/de.js +1 -1
  80. package/dist/cdn/locales/es.js +1 -1
  81. package/dist/cdn/locales/fr.js +1 -1
  82. package/dist/cdn/locales/hi.js +1 -1
  83. package/dist/cdn/locales/pt.js +1 -1
  84. package/dist/cdn/locales/ru.js +1 -1
  85. package/dist/cdn/locales/tr.js +1 -1
  86. package/dist/cdn/roxy-ui.js +76 -76
  87. package/dist/components/almanac-day.js +1 -1
  88. package/dist/components/angel-number-card.js +1 -1
  89. package/dist/components/angel-number-lookup.js +1 -1
  90. package/dist/components/arudha-padas.js +1 -1
  91. package/dist/components/ashtakavarga-grid.js +1 -1
  92. package/dist/components/aspects-table.js +1 -1
  93. package/dist/components/astrocartography-map.js +1 -1
  94. package/dist/components/bazi-chart.js +1 -1
  95. package/dist/components/bhav-chalit-table.js +1 -1
  96. package/dist/components/bhava-bala-table.js +1 -1
  97. package/dist/components/biorhythm-chart.js +1 -1
  98. package/dist/components/bodygraph.js +1 -1
  99. package/dist/components/chara-karakas.js +1 -1
  100. package/dist/components/choghadiya-grid.js +1 -1
  101. package/dist/components/compatibility-card.js +1 -1
  102. package/dist/components/compound-number.js +1 -1
  103. package/dist/components/crystal-card.js +1 -1
  104. package/dist/components/crystal-grid.js +1 -1
  105. package/dist/components/dasha-timeline.js +1 -1
  106. package/dist/components/data.js +1 -1
  107. package/dist/components/divisional-chart.js +1 -1
  108. package/dist/components/dosha-card.js +1 -1
  109. package/dist/components/dosha-constitution.js +1 -1
  110. package/dist/components/dream-card.js +1 -1
  111. package/dist/components/dream-search.js +1 -1
  112. package/dist/components/endpoint-form.js +1 -1
  113. package/dist/components/ephemeris-table.js +1 -1
  114. package/dist/components/fixed-stars.js +1 -1
  115. package/dist/components/flying-star-chart.js +1 -1
  116. package/dist/components/forecast-digest.js +1 -1
  117. package/dist/components/forecast-timeline.js +1 -1
  118. package/dist/components/gematria.js +1 -1
  119. package/dist/components/gochara-table.js +1 -1
  120. package/dist/components/guna-milan.js +1 -1
  121. package/dist/components/hd-connection.js +1 -1
  122. package/dist/components/hd-penta.js +1 -1
  123. package/dist/components/hd-type-card.js +1 -1
  124. package/dist/components/hd-variables.js +1 -1
  125. package/dist/components/heliacal-table.js +1 -1
  126. package/dist/components/hexagram.js +1 -1
  127. package/dist/components/hora-table.js +1 -1
  128. package/dist/components/horoscope-card.js +1 -1
  129. package/dist/components/kp-chart.js +1 -1
  130. package/dist/components/kp-finance-card.js +1 -1
  131. package/dist/components/kp-planets-table.js +1 -1
  132. package/dist/components/kp-ruling-planets.js +1 -1
  133. package/dist/components/kua-card.js +1 -1
  134. package/dist/components/local-space-compass.js +1 -1
  135. package/dist/components/location-search.js +1 -1
  136. package/dist/components/luck-pillars.js +1 -1
  137. package/dist/components/mayan-day-sign.js +1 -1
  138. package/dist/components/moon-phase.js +1 -1
  139. package/dist/components/nakshatra-card.js +1 -1
  140. package/dist/components/natal-chart.js +12 -12
  141. package/dist/components/numerology-card.js +1 -1
  142. package/dist/components/panchang-table.js +1 -1
  143. package/dist/components/positions-table.js +1 -1
  144. package/dist/components/profection-card.js +1 -1
  145. package/dist/components/reference-card.js +1 -1
  146. package/dist/components/relocation-wheel.js +12 -12
  147. package/dist/components/report.js +1 -1
  148. package/dist/components/shadbala-table.js +1 -1
  149. package/dist/components/synastry-chart.js +1 -1
  150. package/dist/components/tarot-card.js +1 -1
  151. package/dist/components/tarot-catalog.js +1 -1
  152. package/dist/components/tarot-spread.js +1 -1
  153. package/dist/components/transit-wheel.js +1 -1
  154. package/dist/components/transits-table.js +1 -1
  155. package/dist/components/upagraha-table.js +1 -1
  156. package/dist/components/vastu-mandala.js +1 -1
  157. package/dist/components/vedic-aspects.js +1 -1
  158. package/dist/components/vedic-daily.js +1 -1
  159. package/dist/components/vedic-kundli.d.ts +2 -0
  160. package/dist/components/vedic-kundli.js +1 -1
  161. package/dist/components/vedic-planets-table.d.ts +9 -7
  162. package/dist/components/vedic-planets-table.js +1 -1
  163. package/dist/components/western-planets-table.js +1 -1
  164. package/dist/components/yoga-list.js +1 -1
  165. package/dist/components/zodiac-card.js +1 -1
  166. package/dist/i18n/chrome-strings.d.ts +1 -1
  167. package/dist/index.cjs +78 -78
  168. package/dist/index.js +81 -81
  169. package/dist/locales/de.js +1 -1
  170. package/dist/locales/es.js +1 -1
  171. package/dist/locales/fr.js +1 -1
  172. package/dist/locales/hi.js +1 -1
  173. package/dist/locales/pt.js +1 -1
  174. package/dist/locales/ru.js +1 -1
  175. package/dist/locales/tr.js +1 -1
  176. package/dist/types/types.gen.d.ts +23 -10
  177. package/dist/utils/summary-prose.d.ts +6 -0
  178. package/dist/version.d.ts +1 -1
  179. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  var RoxyUI_synastry_chart=(()=>{var ie=Object.defineProperty;var lt=Object.getOwnPropertyDescriptor;var Ur=Object.getOwnPropertyNames;var Nr=Object.prototype.hasOwnProperty;var zr=(r,e)=>{for(var t in e)ie(r,t,{get:e[t],enumerable:true})},Ir=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ur(e))!Nr.call(r,o)&&o!==t&&ie(r,o,{get:()=>e[o],enumerable:!(n=lt(e,o))||n.enumerable});return r};var Dr=r=>Ir(ie({},"__esModule",{value:true}),r),m=(r,e,t,n)=>{for(var o=n>1?void 0:n?lt(e,t):e,s=r.length-1,i;s>=0;s--)(i=r[s])&&(o=(n?i(e,t,o):i(o))||o);return n&&o&&ie(e,t,o),o};var Bn={};zr(Bn,{ROXY_UI_TOKENS_STYLE_ID:()=>ve,RoxySynastryChart:()=>N,SYNASTRY_TYPE_SIZES:()=>B,injectRoxyTokens:()=>we});var ae=globalThis,le=ae.ShadowRoot&&(ae.ShadyCSS===void 0||ae.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ze=Symbol(),dt=new WeakMap,W=class{constructor(e,t,n){if(this._$cssResult$=true,n!==ze)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(le&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=dt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&dt.set(t,e))}return e}toString(){return this.cssText}},ct=r=>new W(typeof r=="string"?r:r+"",void 0,ze),f=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((n,o,s)=>n+(i=>{if(i._$cssResult$===true)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)+r[s+1],r[0]);return new W(t,r,ze)},pt=(r,e)=>{if(le)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let n=document.createElement("style"),o=ae.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=t.cssText,r.appendChild(n)}},Ie=le?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return ct(t)})(r):r;var{is:Hr,defineProperty:Gr,getOwnPropertyDescriptor:jr,getOwnPropertyNames:Kr,getOwnPropertySymbols:Br,getPrototypeOf:qr}=Object,de=globalThis,ht=de.trustedTypes,Yr=ht?ht.emptyScript:"",Wr=de.reactiveElementPolyfillSupport,V=(r,e)=>r,Z={toAttribute(r,e){switch(e){case Boolean:r=r?Yr:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},ce=(r,e)=>!Hr(r,e),ut={attribute:true,type:String,converter:Z,reflect:false,useDefault:false,hasChanged:ce};Symbol.metadata??=Symbol("metadata"),de.litPropertyMetadata??=new WeakMap;var A=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=ut){if(t.state&&(t.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=true),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(e,n,t);o!==void 0&&Gr(this.prototype,e,o)}}static getPropertyDescriptor(e,t,n){let{get:o,set:s}=jr(this.prototype,e)??{get(){return this[t]},set(i){this[t]=i}};return{get:o,set(i){let l=o?.call(this);s?.call(this,i),this.requestUpdate(e,l,n)},configurable:true,enumerable:true}}static getPropertyOptions(e){return this.elementProperties.get(e)??ut}static _$Ei(){if(this.hasOwnProperty(V("elementProperties")))return;let e=qr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(V("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(V("properties"))){let t=this.properties,n=[...Kr(t),...Br(t)];for(let o of n)this.createProperty(o,t[o])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[n,o]of t)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[t,n]of this.elementProperties){let o=this._$Eu(t,n);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let o of n)t.unshift(Ie(o))}else e!==void 0&&t.push(Ie(e));return t}static _$Eu(e,t){let n=t.attribute;return n===false?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(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 n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return pt(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(o!==void 0&&n.reflect===true){let s=(n.converter?.toAttribute!==void 0?n.converter:Z).toAttribute(t,n.type);this._$Em=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,t){let n=this.constructor,o=n._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let s=n.getPropertyOptions(o),i=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Z;this._$Em=o;let l=i.fromAttribute(t,s.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(e,t,n,o=false,s){if(e!==void 0){let i=this.constructor;if(o===false&&(s=this[e]),n??=i.getPropertyOptions(e),!((n.hasChanged??ce)(s,t)||n.useDefault&&n.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(i._$Eu(e,n))))return;this.C(e,t,n)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:o,wrapped:s},i){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,i??t??this[e]),s!==true||i!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),o===true&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=true;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,s]of this._$Ep)this[o]=s;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,s]of n){let{wrapped:i}=s,l=this[o];i!==true||this._$AL.has(o)||l===void 0||this.C(o,void 0,s,l)}}let e=false,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$EM()}catch(n){throw e=false,this._$EM(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return true}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[V("elementProperties")]=new Map,A[V("finalized")]=new Map,Wr?.({ReactiveElement:A}),(de.reactiveElementVersions??=[]).push("2.1.2");var qe=globalThis,yt=r=>r,pe=qe.trustedTypes,mt=pe?pe.createPolicy("lit-html",{createHTML:r=>r}):void 0,wt="$lit$",R=`lit$${Math.random().toFixed(9).slice(2)}$`,St="?"+R,Vr=`<${St}>`,L=document,X=()=>L.createComment(""),Q=r=>r===null||typeof r!="object"&&typeof r!="function",Ye=Array.isArray,Zr=r=>Ye(r)||typeof r?.[Symbol.iterator]=="function",De=`[
2
2
  \f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gt=/-->/g,ft=/>/g,O=RegExp(`>|${De}(?:([^\\s"'>=/]+)(${De}*=${De}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),xt=/'/g,bt=/"/g,$t=/^(?:script|style|textarea|title)$/i,We=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),c=We(1),Jn=We(2),Xn=We(3),_=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),vt=new WeakMap,F=L.createTreeWalker(L,129);function kt(r,e){if(!Ye(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return mt!==void 0?mt.createHTML(e):e}var Jr=(r,e)=>{let t=r.length-1,n=[],o,s=e===2?"<svg>":e===3?"<math>":"",i=J;for(let l=0;l<t;l++){let a=r[l],h,d,u=-1,x=0;for(;x<a.length&&(i.lastIndex=x,d=i.exec(a),d!==null);)x=i.lastIndex,i===J?d[1]==="!--"?i=gt:d[1]!==void 0?i=ft:d[2]!==void 0?($t.test(d[2])&&(o=RegExp("</"+d[2],"g")),i=O):d[3]!==void 0&&(i=O):i===O?d[0]===">"?(i=o??J,u=-1):d[1]===void 0?u=-2:(u=i.lastIndex-d[2].length,h=d[1],i=d[3]===void 0?O:d[3]==='"'?bt:xt):i===bt||i===xt?i=O:i===gt||i===ft?i=J:(i=O,o=void 0);let v=i===O&&r[l+1].startsWith("/>")?" ":"";s+=i===J?a+Vr:u>=0?(n.push(h),a.slice(0,u)+wt+a.slice(u)+R+v):a+R+(u===-2?l:v)}return[kt(r,s+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},ee=class r{constructor({strings:e,_$litType$:t},n){let o;this.parts=[];let s=0,i=0,l=e.length-1,a=this.parts,[h,d]=Jr(e,t);if(this.el=r.createElement(h,n),F.currentNode=this.el.content,t===2||t===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=F.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let u of o.getAttributeNames())if(u.endsWith(wt)){let x=d[i++],v=o.getAttribute(u).split(R),T=/([.?@])?(.*)/.exec(x);a.push({type:1,index:s,name:T[2],strings:v,ctor:T[1]==="."?Ge:T[1]==="?"?je:T[1]==="@"?Ke:D}),o.removeAttribute(u)}else u.startsWith(R)&&(a.push({type:6,index:s}),o.removeAttribute(u));if($t.test(o.tagName)){let u=o.textContent.split(R),x=u.length-1;if(x>0){o.textContent=pe?pe.emptyScript:"";for(let v=0;v<x;v++)o.append(u[v],X()),F.nextNode(),a.push({type:2,index:++s});o.append(u[x],X())}}}else if(o.nodeType===8)if(o.data===St)a.push({type:2,index:s});else{let u=-1;for(;(u=o.data.indexOf(R,u+1))!==-1;)a.push({type:7,index:s}),u+=R.length-1}s++}}static createElement(e,t){let n=L.createElement("template");return n.innerHTML=e,n}};function I(r,e,t=r,n){if(e===_)return e;let o=n!==void 0?t._$Co?.[n]:t._$Cl,s=Q(e)?void 0:e._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(false),s===void 0?o=void 0:(o=new s(r),o._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=o:t._$Cl=o),o!==void 0&&(e=I(r,o._$AS(r,e.values),o,n)),e}var He=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:n}=this._$AD,o=(e?.creationScope??L).importNode(t,true);F.currentNode=o;let s=F.nextNode(),i=0,l=0,a=n[0];for(;a!==void 0;){if(i===a.index){let h;a.type===2?h=new te(s,s.nextSibling,this,e):a.type===1?h=new a.ctor(s,a.name,a.strings,this,e):a.type===6&&(h=new Be(s,this,e)),this._$AV.push(h),a=n[++l]}i!==a?.index&&(s=F.nextNode(),i++)}return F.currentNode=L,o}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},te=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,o){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??true}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=I(this,e,t),Q(e)?e===p||e==null||e===""?(this._$AH!==p&&this._$AR(),this._$AH=p):e!==this._$AH&&e!==_&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Zr(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!==p&&Q(this._$AH)?this._$AA.nextSibling.data=e:this.T(L.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=ee.createElement(kt(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(t);else{let s=new He(o,this),i=s.u(this.options);s.p(t),this.T(i),this._$AH=s}}_$AC(e){let t=vt.get(e.strings);return t===void 0&&vt.set(e.strings,t=new ee(e)),t}k(e){Ye(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,o=0;for(let s of e)o===t.length?t.push(n=new r(this.O(X()),this.O(X()),this,this.options)):n=t[o],n._$AI(s),o++;o<t.length&&(this._$AR(n&&n._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(false,true,t);e!==this._$AB;){let n=yt(e).nextSibling;yt(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},D=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,o,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=p}_$AI(e,t=this,n,o){let s=this.strings,i=false;if(s===void 0)e=I(this,e,t,0),i=!Q(e)||e!==this._$AH&&e!==_,i&&(this._$AH=e);else{let l=e,a,h;for(e=s[0],a=0;a<s.length-1;a++)h=I(this,l[n+a],t,a),h===_&&(h=this._$AH[a]),i||=!Q(h)||h!==this._$AH[a],h===p?e=p:e!==p&&(e+=(h??"")+s[a+1]),this._$AH[a]=h}i&&!o&&this.j(e)}j(e){e===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ge=class extends D{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===p?void 0:e}},je=class extends D{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==p)}},Ke=class extends D{constructor(e,t,n,o,s){super(e,t,n,o,s),this.type=5}_$AI(e,t=this){if((e=I(this,e,t,0)??p)===_)return;let n=this._$AH,o=e===p&&n!==p||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==p&&(n===p||o);o&&this.element.removeEventListener(this.name,this,n),s&&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)}},Be=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){I(this,e)}};var Xr=qe.litHtmlPolyfillSupport;Xr?.(ee,te),(qe.litHtmlVersions??=[]).push("3.3.3");var Et=(r,e,t)=>{let n=t?.renderBefore??e,o=n._$litPart$;if(o===void 0){let s=t?.renderBefore??null;n._$litPart$=o=new te(e.insertBefore(X(),s),s,void 0,t??{})}return o._$AI(r),o};var Ve=globalThis,P=class extends A{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=Et(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};P._$litElement$=true,P.finalized=true,Ve.litElementHydrateSupport?.({LitElement:P});var Qr=Ve.litElementPolyfillSupport;Qr?.({LitElement:P});(Ve.litElementVersions??=[]).push("4.2.2");var Tt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},At=r=>(...e)=>({_$litDirective$:r,values:e}),he=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var re=class extends he{constructor(e){if(super(e),this.it=p,e.type!==Tt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===p||e==null)return this._t=void 0,this.it=e;if(e===_)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};re.directiveName="unsafeHTML",re.resultType=1;var _t=At(re);var Rt=[{endpoint:"astrology/synastry",method:"POST"}];function ue(r){return r.toLowerCase().replace(/[\s_-]+/g," ").trim()}function ne(r){return r?r.charAt(0).toUpperCase()+r.slice(1).toLowerCase():""}var en=new RegExp("(?![\\d#*])\\p{Emoji}","gu"),tn=r=>r.replace(en,"$&\uFE0E"),ye=r=>Object.fromEntries(Object.entries(r).map(([e,t])=>[e,tn(t)])),Pt=(r,e)=>e?r[ue(e)]:void 0,rn=ye({sun:"\u2609",moon:"\u263D",mercury:"\u263F",venus:"\u2640",earth:"\u2641",mars:"\u2642",jupiter:"\u2643",saturn:"\u2644",uranus:"\u2645",neptune:"\u2646",pluto:"\u2BD3",rahu:"\u260A",ketu:"\u260B",ascendant:"Asc",midheaven:"MC","part of fortune":"\u2297",vertex:"Vx",lagna:"La","north node":"\u260A","south node":"\u260B",chiron:"\u26B7",lilith:"\u26B8","black moon lilith":"\u26B8"}),H=r=>Pt(rn,r);var nn=ye({aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"}),oe=r=>Pt(nn,r);var se=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],wo=ye({conjunction:"\u260C",semisextile:"\u26BA","semi sextile":"\u26BA",semisquare:"\u2220","semi square":"\u2220",sextile:"\u26B9",square:"\u25A1",trine:"\u25B3",sesquiquadrate:"\u26BC",quincunx:"\u26BB",opposition:"\u260D"});var So=ye({heaven:"\u2630",lake:"\u2631",fire:"\u2632",thunder:"\u2633",wind:"\u2634",water:"\u2635",mountain:"\u2636",earth:"\u2637"});var me="\u211E";var Ct=new Map;function on(r){if(!r)return["en"];let e=Ct.get(r);if(e)return[e,"en"];let t="en";try{t=Intl.getCanonicalLocales(r)[0]??"en"}catch{t="en"}return Ct.set(r,t),[t,"en"]}function M(r,e,t=1){return typeof e!="number"||!Number.isFinite(e)?"":e.toLocaleString(on(r),{maximumFractionDigits:t})}function ge(r){return(r.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}function G(r){return ne(ge(r))}var sn=new Set(["conjunction","sextile","square","trine","opposition"]);function Lt(r){return sn.has(ge(r))}function fe(r){return`aspect-${ge(r)}`}var Ot=.3,an=.9,Ft=.5,ln=1.8;function Mt(r){let{strength:e}=r;if(typeof e!="number"||!Number.isFinite(e))return;let t=Math.min(1,Math.max(0,e/100)),n=Ot+t*(an-Ot),o=Ft+t*(ln-Ft);return`opacity:${n.toFixed(3)};stroke-width:${o.toFixed(3)}`}var dn=f`.aspect-trine,.aspect-sextile{--_aspect:var(--roxy-info);--_aspect-ink:var(--roxy-info-fg)}.aspect-square,.aspect-opposition{--_aspect:var(--roxy-danger);--_aspect-ink:var(--roxy-danger-fg)}.aspect-quincunx,.aspect-semi-sextile{--_aspect:var(--roxy-success);--_aspect-ink:var(--roxy-success-fg)}.aspect-conjunction{--_aspect:var(--roxy-accent-ink);--_aspect-ink:var(--roxy-accent-ink)}:is(.aspect-trine,.aspect-sextile,.aspect-square,.aspect-opposition,.aspect-quincunx,.aspect-semi-sextile,.aspect-conjunction){color:var(--_aspect-ink);stroke-opacity:1}.aspect-swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);background:var(--_aspect);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}`,Ut=[f`.aspect{stroke:var(--_aspect,var(--roxy-muted));stroke-width:.8px;fill:none;opacity:.55;stroke-opacity:.7}`,dn];var cn={attribute:true,type:String,converter:Z,reflect:false,hasChanged:ce},pn=(r=cn,e,t)=>{let{kind:n,metadata:o}=t,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),n==="setter"&&((r=Object.create(r)).wrapped=true),s.set(t.name,r),n==="accessor"){let{name:i}=t;return{set(l){let a=e.get.call(this);e.set.call(this,l),this.requestUpdate(i,a,r,true,l)},init(l){return l!==void 0&&this.C(i,void 0,r,l),l}}}if(n==="setter"){let{name:i}=t;return function(l){let a=this[i];e.call(this,l),this.requestUpdate(i,a,r,true,l)}}throw Error("Unsupported decorator location: "+n)};function b(r){return(e,t)=>typeof t=="object"?pn(r,e,t):((n,o,s)=>{let i=o.hasOwnProperty(s);return o.constructor.createProperty(s,n),i?Object.getOwnPropertyDescriptor(o,s):void 0})(r,e,t)}function $(r){return b({...r,state:true,attribute:false})}var U=r=>r??p;var Nt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Je(r){if(r.lang)return r.lang;if(typeof document>"u")return;let e=r.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}var hn={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Ze(r,e){let t=r.toLowerCase();return e.find(n=>n.toLowerCase()===t)}function zt(r,e=Nt){let t=Je(r);if(!t)return;let n=Ze(t,e);if(n)return n;let o=t.toLowerCase().split("-"),s=o[0];if(s==="zh"){let i=o.find(l=>l==="hans"||l==="hant")??hn[o[1]??""];return i?Ze(`zh-${i}`,e):void 0}return Ze(s,e)}var Ht="symbols";var un={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},Xe='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',It='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Dt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',be={"fraunces-jost":{name:"Fraunces with Jost",sans:Xe,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:Xe,display:Xe},geist:{name:"Geist",sans:It,display:It},system:{name:"System",sans:Dt,display:Dt}};function Gt(r){let{sans:e,display:t}=be[r];return Object.keys(un).filter(n=>`${e} ${t}`.includes(`"${n}"`))}var jt="1.8.0";var yn=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,mn=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Kt(r,e){if(!e)return;let t=new URL(e);if(t.protocol!=="https:"&&t.protocol!=="http:")return;let n=(yn.exec(t.pathname)??mn.exec(t.pathname))?.[1];if(n!==void 0)return t.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${r}/dist`:`${t.origin}${n}`}var bn={},gn="color-mix(in oklab, var(--roxy-accent) 70%, black)",fn="var(--roxy-accent)",xn="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Bt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function qt(r){return r!==void 0&&Object.hasOwn(be,r)}function Yt(r){let e=[];return r.brandColor&&Bt.test(r.brandColor)&&e.push(`--roxy-primary:${r.brandColor}`),r.brandAccent&&Bt.test(r.brandAccent)&&e.push(`--roxy-accent:${r.brandAccent}`,`--roxy-accent-ink:light-dark(${gn},${fn})`,`--roxy-ring:${xn}`),e.join(";")}function Wt(r,e){if(qt(e))return e;let t=r.getRootNode();if(("host"in t?t.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=r.shadowRoot?.firstElementChild,s=o?.localName==="style"?o:null;s?.sheet&&(s.sheet.disabled=true);let i,l,a;try{let h=globalThis.getComputedStyle(r),d=u=>h.getPropertyValue(u).trim();i=d("--roxy-font-sans"),l=d("--roxy-font-display"),a=d("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||l))return qt(a)?a:void 0}function Vt(r){let{sans:e,display:t}=be[r];return`--roxy-font:${r};--roxy-font-sans:${e};--roxy-font-display:${t}`}var Zt=Kt(jt,globalThis.document?.currentScript?.src||bn.url);function Jt(r,e){if(typeof document>"u"||e===void 0)return;let t=`roxy-ui-font-${r}`;if(document.getElementById(t))return;let n=document.createElement("link");n.id=t,n.rel="stylesheet",n.href=`${e}/styles/fonts/${r}.css`,document.head.append(n)}function Xt(r,e=Zt){Gt(r).length>0&&Jt(r,e)}function Qt(r=Zt){Jt(Ht,r)}var er='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var ve="roxy-ui-tokens";function we(){if(typeof document>"u")return null;let r=document.getElementById(ve);if(r)return r;let e=document.createElement("style");return e.id=ve,e.textContent=er,document.head.prepend(e),e}var tr="__ROXY_UI_I18N__";function rr(){let r=globalThis,e=r[tr];if(e)return e;let t={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return r[tr]=t,t}function vn(r,e){return e?r.replace(/\{\{(\w+)\}\}/g,(t,n)=>n in e?String(e[n]??""):t):r}function Se(r,e,t){return vn(wn(r,e)??e,t)}function wn(r,e){if(!r)return;let{catalogs:t}=rr(),n=r.toLowerCase();return(t[n]??t[n.split("-")[0]])?.[ue(e)]}function nr(r){let{listeners:e}=rr();return e.add(r),()=>{e.delete(r)}}var $e=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=nr(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var ke=class extends P{constructor(){super();this.translator=(t,n)=>this.t(t,n);new $e(this)}connectedCallback(){super.connectedCallback(),we()}updated(t){super.updated(t),this.renderRoot.querySelector(".roxy-glyph")&&Qt()}fontDeclarations(t){let n=Wt(this,t);return n?(Xt(n),Vt(n)):""}renderFontStyle(){let t=this.fontDeclarations();return t?c`<style>:host{${t}}</style>`:p}t(t,n){return Se(this.effectiveLang(),t,n)}effectiveLang(){return Je(this)}};var or=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function sr(r){return r?c`<span class="roxy-glyph" aria-hidden="true">${r}</span>`:p}var ir=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var Sn=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,Ee=[Sn,ir,or];var $n="__cols",kn="__rows";function En(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Te(r){if(Array.isArray(r)){let s=false,i=r.map(l=>{let a=Te(l);return a!==l&&(s=true),a});return s?i:r}if(!En(r))return r;let e=r[$n],t=r[kn];if(Array.isArray(e)&&Array.isArray(t)&&Object.keys(r).length===2)return t.map(s=>{let i={};return e.forEach((l,a)=>{i[l]=Te(s[a])}),i});let n=false,o={};for(let[s,i]of Object.entries(r)){let l=Te(i);l!==i&&(n=true),o[s]=l}return n?o:r}function ar(r){return Te(r)}function lr(r,e){return r.find(t=>t.attrs&&Object.entries(t.attrs).every(([n,o])=>e[n]===o))??r[0]}var Tn="pk_live_YOUR_KEY",dr={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function cr(r){if(r)return r===Tn?dr.sample:r.startsWith("pk_")?void 0:dr.secret}function pr(r,e,t={}){t.warn&&console.warn(e.message),r.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:e.reason,message:e.message},bubbles:true,composed:true}))}var hr="https://roxyapi.com/api/v2";async function An(r){try{let e=await r.json();if(e?.error){let t=e.code==="validation_error"&&Array.isArray(e.issues)?e.issues.filter(n=>typeof n.path=="string"&&typeof n.message=="string").map(n=>({path:n.path,message:n.message})):null;return{message:e.error,issues:t?.length?t:null,worded:true,...e.code?{code:e.code}:{}}}}catch{}return{message:`Request failed (${r.status})`,issues:null,worded:false}}var ur={fromAttribute:r=>{if(r!=null){try{let e=JSON.parse(r);if(e&&typeof e=="object"&&!Array.isArray(e))return e}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},j=class extends Error{constructor(t,n=null,o=true,s,i){super(t);this.issues=n;this.worded=o;this.status=s;this.code=i}};function yr(r){return r.submitUrl?void 0:cr(r.publishableKey)}async function Qe(r,e,t){let n=yr(r);if(n)throw new j(n.message);let o=r.submitUrl?await fetch(r.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:_n(e,r.submitContext),signal:t}):await Rn(r,e,t);if(!o.ok){let s=await An(o);throw new j(s.message,s.issues,s.worded,o.status,s.code)}return await o.json()}function _n(r,e){return JSON.stringify(e?{...r,context:e}:r)}function Rn(r,e,t){let n=new URL(`${r.baseUrl??hr}${e.path}`,document.baseURI);for(let[s,i]of Object.entries(e.query??{}))i!=null&&n.searchParams.set(s,String(i));let o={Accept:"application/json"};return r.publishableKey&&(o["X-API-Key"]=r.publishableKey),e.body!=null&&(o["Content-Type"]="application/json"),fetch(n,{method:e.method??"GET",headers:o,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}var Ae=class{constructor(e){this.baseUrl=hr;this.worded=true;this.failure={};this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){this.worded=true,this.failure={};let t=yr(this);if(t){this.host.error=t.message,pr(this.host,t);return}this.abort?.abort();let n=new AbortController;this.abort=n,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let o=await Qe(this,e,n.signal);if(n.signal.aborted)return;this.host.data=o}catch(o){if(n.signal.aborted||o?.name==="AbortError")return;o instanceof j&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof j&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===n&&(this.abort=void 0),n.signal.aborted||(this.host.loading=false)}}};function mr(r,e,t,n=[]){let o={...t},s=`/${r.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(h,d)=>{let u=o[d];return delete o[d],encodeURIComponent(String(u??""))}),i=new Set(n),l={},a={};for(let[h,d]of Object.entries(o))d===void 0||d===""||(e==="GET"||i.has(h)?l[h]=d:a[h]=d);return{path:s,method:e,query:l,body:e==="POST"?a:void 0}}function K(){return c`<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 gr=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var fr=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function xr(r){return r?.length?c`<div class="interp-keywords roxy-chips">${r.map(e=>c`<span class="roxy-chip">${e}</span>`)}</div>`:p}function br(r,e,t,n=false){let o=r.filter(s=>!!s.body);return o.length===0?p:c`<section class="block" part="section readings"><h3>${t}</h3>${o.map((s,i)=>c`<details class="interp-card" part="reading" name="${e}" ?open="${i===0&&!n}"><summary><span class="interp-lead">${sr(s.glyph)} ${s.label}</span> ${K()} ${s.aside?c`<span class="interp-aside"><small>${s.aside}</small></span>`:p}</summary><div class="interp-body"><p>${s.body}</p>${s.extra??p}</div></details>`)}</section>`}var Pn="roxy-data";function Cn(r){return r.nodeName==="SCRIPT"&&r.getAttribute("type")==="application/json"}var _e=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(Cn(e)&&e.classList.contains(Pn))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var y=class extends ke{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let t=this.lastRequest,n=this.listKey,o=this.listRows();if(!(!t||!n||!o)){this.moreLoading=true,this.moreError=null;try{let s=await Qe(this.fetcher,{...t,query:{...t.query,offset:o.length}});if(this.lastRequest!==t)return;let i=s[n];this.data={...this.data,...s,[n]:[...o,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===t&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=t=>{let n=this.selfFetch();if(!n)return;let o=t.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(mr(n.endpoint,n.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new _e(this),this.fetcher=new Ae(this)}static{this.styles=[Ee]}static{this.endpoints=[]}willUpdate(t){if(t.has("data")&&this.data!=null){let n=ar(this.data);n!==this.data&&(this.data=n)}(t.has("publishableKey")||t.has("baseUrl")||t.has("submitUrl")||t.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let t=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:lr(this.constructor.endpoints,this);return t&&{endpoint:t.endpoint,method:this.method??t.method}}render(){return c`${this.hostStyle()}${this.renderState()}`}drawn(t){try{return this.renderData(t)}catch(n){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,n),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:n},bubbles:true,composed:true})),customElements.get("roxy-data")?c`<roxy-data .data="${t}" lang="${U(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let t=this.hideSections.split(",").map(s=>s.trim().toLowerCase()).filter(s=>/^[a-z][a-z0-9-]*$/.test(s)),n=[Yt(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(t.length===0&&!n)return p;let o=(n?`:host{${n}}`:"")+t.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){display:none!important}`).join("");return c`<style>${o}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(t,n,o,s=false){return this.hideReadings?p:br(t,n,this.t(o??"Reading"),s)}renderResult(t){let n=c`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(t)}`;return this.showAttribution()?c`${n}${this.renderAttribution()}`:n}renderWithForm(t){return c`${this.renderForm()}${t}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?p:this.renderErrorBanner(this.error):this.data==null?p:this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let t=this.listRows(),n=this.data?.total;return!this.lastRequest||!t||typeof n!="number"?p:t.length>=n?p:c`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?c`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:p}</div>`}listRows(){let t=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(t)?t:void 0}fetchFresh(t){return this.lastRequest=t,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(t)}load(t){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(t)}pickRow(t){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:t,bubbles:true,composed:true})),this.openRow(t.id)}openRow(t){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let n=this.openedRow??document.createElement(this.rowDetail.tag);n.publishableKey=this.publishableKey,n.baseUrl=this.baseUrl,n.submitUrl=this.submitUrl,n.submitContext=this.submitContext,n.hideReadings=this.hideReadings,n.hideSections=this.hideSections;let o=this.effectiveLang();o&&n.setAttribute("lang",o),this.openedRow=n,this.openedRowId=t,n.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(t))}`,method:"GET",query:{lang:zt(this)}}).then(()=>n.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return c`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(p):this.renderEmpty()}renderForm(){let t=this.selfFetch();return c`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${t?.endpoint??""}" method="${t?.method??"POST"}" spec-url="${U(this.specUrl)}" publishable-key="${U(this.publishableKey)}" location-url="${U(this.locationUrl)}" submit-label="${U(this.submitLabel)}" lang="${U(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let 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 c`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return c`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let n=!!this.selfFetch();if(n&&this.issues)return this.renderForm();let o=this.renderErrorBanner(t);return n?c`${o}${this.renderForm()}`:o}renderErrorBanner(t){return c`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(t)}</div>`}};m([b({attribute:false})],y.prototype,"data",2),m([b({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),m([b({type:String})],y.prototype,"method",2),m([b({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),m([b({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),m([b({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),m([b({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),m([b({attribute:"submit-context",converter:ur})],y.prototype,"submitContext",2),m([b({type:String,attribute:"location-url"})],y.prototype,"locationUrl",2),m([b({type:Boolean})],y.prototype,"remember",2),m([b({type:Boolean,attribute:"hide-readings",reflect:true})],y.prototype,"hideReadings",2),m([b({type:String,attribute:"hide-sections",reflect:true})],y.prototype,"hideSections",2),m([b({type:String,attribute:"brand-color"})],y.prototype,"brandColor",2),m([b({type:String,attribute:"brand-accent"})],y.prototype,"brandAccent",2),m([b({type:String})],y.prototype,"font",2),m([b({type:String})],y.prototype,"hemisphere",2),m([b({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),m([b({type:String,attribute:"error-message"})],y.prototype,"errorMessage",2),m([b({type:String})],y.prototype,"attribution",2),m([$()],y.prototype,"loading",2),m([$()],y.prototype,"error",2),m([$()],y.prototype,"issues",2),m([$()],y.prototype,"selfFetched",2),m([$()],y.prototype,"editing",2),m([$()],y.prototype,"sticky",2),m([$()],y.prototype,"openedRow",2),m([$()],y.prototype,"openedRowId",2),m([$()],y.prototype,"moreLoading",2),m([$()],y.prototype,"moreError",2);var ui=f`:where(.natal-wheel) .wheel-line,:where(.natal-wheel) .tick{fill:none;stroke:var(--roxy-border)}:where(.natal-wheel) .tick-major{stroke:var(--roxy-secondary)}:where(.natal-wheel) .sign-glyph{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}:where(.natal-wheel) .planet-glyph{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold)}:where(.natal-wheel) .planet-deg{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .4375)}:where(.natal-wheel) .planet-deg .retro{fill:var(--roxy-danger-fg)}:where(.natal-wheel) .planet-leader{stroke:var(--roxy-accent);stroke-width:.5px;opacity:.55}:where(.natal-wheel) .house-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .5625)}:where(.natal-wheel) .cusp-deg{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .375)}:where(.natal-wheel) .angle-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold)}:where(.natal-wheel) .angle-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}@container (width<=480px){:where(.natal-wheel) .sign-glyph,:where(.natal-wheel) .planet-glyph{font-size:calc(var(--roxy-text-base) * 1.5)}:where(.natal-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .8125)}:where(.natal-wheel) .house-num{font-size:calc(var(--roxy-text-base) * .75)}}`,vr=f`:where(.synastry-wheel) .wheel-line{fill:none;stroke:var(--roxy-border)}:where(.synastry-wheel) .p1{--_person:var(--roxy-accent-ink)}:where(.synastry-wheel) .p2{--_person:var(--roxy-fg)}:where(.synastry-wheel) .sign{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}:where(.synastry-wheel) text.p1,:where(.synastry-wheel) text.p2{fill:var(--_person);font-size:calc(var(--roxy-text-base) * 1.125);font-weight:var(--roxy-weight-bold)}:where(.synastry-wheel) .person-tag,:where(.synastry-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .625)}:where(.synastry-wheel) .planet-deg{fill:var(--roxy-muted)}:where(.synastry-wheel) .planet-deg .retro{fill:var(--roxy-danger-fg)}:where(.synastry-wheel) .leader{stroke:var(--_person);stroke-width:.5px;opacity:.7}@container (width<=480px){:where(.synastry-wheel) .sign,:where(.synastry-wheel) text.p1,:where(.synastry-wheel) text.p2{font-size:calc(var(--roxy-text-base) * 1.75)}:where(.synastry-wheel) .person-tag,:where(.synastry-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .9375)}}:where(.synastry-wheel) .asc-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}:where(.synastry-wheel) .asc-label{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .5625);font-weight:var(--roxy-weight-bold)}`,yi=f`:where(.kundli) .line{fill:#0000;stroke:var(--roxy-border)}:where(.kundli) .sign-text{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans);text-transform:uppercase}:where(.kundli) .rashi-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .75);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans)}:where(.kundli) .house-num{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .planet-text{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .centre-label{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .lagna-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans);text-transform:uppercase}:where(.kundli) .lagna-bg{fill:color-mix(in srgb, var(--roxy-accent) 14%, transparent)}:where(.kundli) .lagna-slash{stroke:var(--roxy-accent);stroke-linecap:round;opacity:.7}`,mi=f`:where(.bodygraph) .bg-body{fill:color-mix(in srgb, var(--roxy-secondary) 8%, transparent);stroke:var(--roxy-border);stroke-width:1px}:where(.bodygraph) .bg-channel{stroke:var(--roxy-border);stroke-width:5px;stroke-linecap:round}:where(.bodygraph) .bg-half{stroke-width:5px;stroke-linecap:round}:where(.bodygraph) .bg-half.stripe{stroke-linecap:butt;stroke-dasharray:7 7}:where(.bodygraph) .bg-center{fill:var(--_mask,var(--roxy-bg));stroke:var(--roxy-secondary);stroke-width:1.8px}:where(.bodygraph) .bg-center.defined{stroke:color-mix(in srgb, var(--roxy-fg) 45%, transparent)}:where(.bodygraph){--_gold:color-mix(in oklch, var(--roxy-warning) 60%, var(--roxy-success));--_gold-ink:color-mix(in oklch, var(--roxy-warning-fg) 60%, var(--roxy-success-fg));--_center-gold:light-dark(color-mix(in oklab, var(--_gold) 40%, var(--roxy-bg)),color-mix(in oklab, var(--_gold) 50%, var(--_gold-ink)));--_center-green:light-dark(color-mix(in oklab, var(--roxy-success) 40%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-success) 50%, var(--roxy-success-fg)));--_center-red:light-dark(color-mix(in oklab, var(--roxy-danger) 40%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-danger) 50%, var(--roxy-danger-fg)));--_center-brown:light-dark(color-mix(in oklab, color-mix(in oklab, var(--roxy-warning-fg) 75%, var(--roxy-fg)) 45%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-warning-fg) 50%, var(--roxy-secondary)))}:where(.bodygraph) .bg-center.bg-gold.defined,:where(.bodygraph) .legend .swatch.bg-gold{fill:var(--_center-gold);background:var(--_center-gold)}:where(.bodygraph) .bg-center.bg-green.defined,:where(.bodygraph) .legend .swatch.bg-green{fill:var(--_center-green);background:var(--_center-green)}:where(.bodygraph) .bg-center.bg-red.defined,:where(.bodygraph) .legend .swatch.bg-red{fill:var(--_center-red);background:var(--_center-red)}:where(.bodygraph) .bg-center.bg-brown.defined,:where(.bodygraph) .legend .swatch.bg-brown{fill:var(--_center-brown);background:var(--_center-brown)}:where(.bodygraph) .bg-gate-dot{fill:var(--_mask,var(--roxy-bg));stroke:var(--roxy-border);stroke-width:1px}:where(.bodygraph) .bg-gate-dot.on{stroke:var(--_mask,var(--roxy-bg))}:where(.bodygraph) .bg-center-name{color:var(--roxy-muted);fill:currentColor;font-weight:var(--roxy-weight-bold);text-transform:uppercase;pointer-events:none}:where(.bodygraph) .bg-center-name.defined{color:light-dark(var(--roxy-fg),var(--roxy-bg))}:where(.bodygraph) .bg-gate{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .50625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.bodygraph) .bg-gate.on{fill:var(--src-ink,var(--_mask,var(--roxy-bg)))}:where(.bodygraph) .bg-half.src-left{stroke:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .bg-half.src-right{stroke:var(--src-right,var(--roxy-fg))}:where(.bodygraph) .bg-gate-dot.on.src-left{fill:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .bg-gate-dot.on.src-right{fill:var(--src-right,var(--roxy-fg))}:where(.bodygraph) .legend .swatch.src-left{background:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .legend .swatch.src-right{background:var(--src-right,var(--roxy-fg))}`,gi=f`:where(.roxy-moon) .moon-shade{fill:var(--roxy-moon-shade)}:where(.roxy-moon) .moon-earthshine{fill:var(--roxy-moon-lit);opacity:.05}:where(.roxy-moon) .moon-soft{fill:var(--roxy-moon-lit)}:where(.roxy-moon) .moon-soft-1{opacity:.18}:where(.roxy-moon) .moon-soft-2{opacity:.34}:where(.roxy-moon) .moon-lit{fill:var(--roxy-moon-lit)}:where(.roxy-moon) .moon-limb{fill:none;stroke:var(--roxy-moon-mare)}:where(.roxy-moon) .moon-limb-1{stroke-width:.1px;opacity:.18}:where(.roxy-moon) .moon-limb-2{stroke-width:.03px;opacity:.3}:where(.roxy-moon) .moon-halo{fill:var(--roxy-moon-mare);opacity:.22}:where(.roxy-moon) .moon-mare{fill:var(--roxy-moon-mare);opacity:.38}:where(.roxy-moon) .moon-crater{fill:none;stroke:var(--roxy-moon-mare);stroke-width:.012px}:where(.roxy-moon) .moon-copper{fill:var(--roxy-moon-eclipse)}:where(.roxy-moon) .moon-copper-limb .moon-limb{stroke:var(--roxy-moon-shade)}:where(.roxy-moon) .moon-copper-mare{fill:var(--roxy-moon-shade);opacity:.3}:where(.roxy-moon) .moon-corona{fill:none;stroke:var(--roxy-moon-corona);stroke-width:.05px}:where(.roxy-moon) .moon-corona-outer{stroke-width:.02px;opacity:.45}:where(.roxy-moon) .moon-rim{fill:none;stroke:var(--roxy-moon-rim);stroke-width:.012px}:where(.roxy-moon) .moon-rim-small{stroke-width:.04px}`;var Re=class{constructor(e){this.host=e;this.state="closed";this.zoom=1;this.pressedBy="";this.press=e2=>{this.pressedBy=e2.pointerType};this.openOnMouse=e2=>{let t=this.pressedBy==="mouse";this.pressedBy="",t&&(e2.target?.closest?.("a, button, summary, input, select, textarea")||getSelection()?.toString()||this.open())};e.addController(this)}hostUpdated(){let e=this.host.renderRoot.querySelector(".roxy-chart-dialog");if(!e)this.reset();else if(e.isConnected&&this.state!=="closed"){this.state==="opening"&&(this.state="open",e.open||e.showModal());let t=e.querySelector(".roxy-chart-scroll");e.open&&t&&this.position&&(t.scrollLeft=t.scrollWidth*this.position.x-t.clientWidth/2,t.scrollTop=t.scrollHeight*this.position.y-t.clientHeight/2,this.position=void 0)}}hostDisconnected(){this.reset(),this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}open(){this.state="opening",this.position={x:.5,y:0},this.host.requestUpdate()}reset(){this.state="closed",this.zoom=1,this.position=void 0}resize(e){let t=this.host.renderRoot.querySelector(".roxy-chart-scroll");this.position=e===0?{x:.5,y:0}:t?{x:(t.scrollLeft+t.clientWidth/2)/t.scrollWidth,y:(t.scrollTop+t.clientHeight/2)/t.scrollHeight}:void 0,this.zoom=e===0?1:Math.min(3,Math.max(1,this.zoom+e)),this.host.requestUpdate()}renderChartViewport(e,t,n){return c`<div class="roxy-chart-view"><div class="roxy-chart-hit" @pointerdown="${this.press}" @click="${this.openOnMouse}">${e}</div><div class="roxy-chart-tools" part="chart-controls"><button type="button" @click="${()=>this.open()}">${n("Enlarge chart")}</button></div><dialog class="roxy-chart-dialog" part="chart-dialog" aria-label="${t}" @close="${()=>{this.reset(),this.host.requestUpdate()}}">${this.state!=="closed"?c`<div class="roxy-chart-bar"><strong>${t}</strong><div class="roxy-chart-tools"><button type="button" aria-label="${n("Zoom out")}" ?disabled="${this.zoom===1}" @click="${()=>this.resize(-.5)}">−</button> <button type="button" @click="${()=>this.resize(0)}">${n("Reset zoom")}</button> <button type="button" aria-label="${n("Zoom in")}" ?disabled="${this.zoom===3}" @click="${()=>this.resize(.5)}">+</button> <button type="button" @click="${()=>this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}">${n("Close")}</button></div></div><div class="roxy-chart-scroll" role="region" tabindex="0" aria-label="${t}"><div class="roxy-chart-expanded" style="${`--chart-zoom:${this.zoom}`}">${e}</div></div>`:p}</dialog></div>`}},wr=f`.roxy-chart-view{min-width:0}@media (hover:hover) and (pointer:fine){.roxy-chart-hit{cursor:zoom-in}}.roxy-chart-tools{gap:var(--roxy-space-sm);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.roxy-chart-tools button{font-size:var(--roxy-text-sm);color:var(--roxy-secondary);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);min-width:2lh;min-height:2lh;padding:var(--roxy-space-xs) var(--roxy-space-sm);cursor:pointer;background:0 0}.roxy-chart-tools button:hover:not(:disabled){border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-chart-tools button:disabled{color:var(--roxy-muted);cursor:default}.roxy-chart-dialog{--roxy-surface:var(--roxy-bg);width:calc(100% - 2 * var(--roxy-space-md));max-width:calc(var(--roxy-chart-expanded-width,60rem) * 1.2);max-height:calc(100% - 2 * var(--roxy-space-md));padding:var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);color:var(--roxy-fg);background:var(--roxy-bg);box-shadow:var(--roxy-shadow-lg);margin:auto}.roxy-chart-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.roxy-chart-dialog::backdrop{background:color-mix(in oklab, var(--roxy-bg) 85%, transparent)}.roxy-chart-bar{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);margin-bottom:var(--roxy-space-md);flex-wrap:wrap;flex-shrink:0;display:flex}.roxy-chart-bar>strong{overflow-wrap:anywhere;min-width:0}.roxy-chart-scroll{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.roxy-chart-expanded{width:max(100%, calc(var(--roxy-chart-expanded-width,60rem) * var(--chart-zoom)));padding:var(--roxy-space-sm)}.roxy-chart-expanded>svg{width:100%;max-width:none;height:auto;margin:0}`;var Sr=r=>e=>{customElements.get(r)||customElements.define(r,e)};function Pe(r){let e=r%360;return e<0?e+360:e}function $r(r){let e=Pe(r),t=Math.floor(e/30)%12,n=e%30,o=Math.floor(n),s=(n-o)*60,i=Math.floor(s),l=Math.round((s-i)*60);return{sign:se[t]??"Aries",signIndex:t,degree:o,minute:i,second:l}}function kr(r){return Ce(Pe(r)%30)}function On(r){let e=Math.floor(r);return{degree:e,minute:Math.floor((r-e)*60)}}function Ce(r){let{degree:e,minute:t}=On(r);return`${e}\xB0${String(t).padStart(2,"0")}'`}function et(r,e,t){let n=r.filter(h=>Number.isFinite(e(h))).map(h=>{let d=Pe(e(h));return{item:h,longitude:d,displayLongitude:d}}).sort((h,d)=>h.longitude-d.longitude),o=n.length;if(o<2)return n;let s=0,i=-1;for(let h=0;h<o;h++){let d=n[(h+o-1)%o],x=(n[h].longitude-d.longitude+360)%360;x>i&&(i=x,s=h)}let l=n[s],a=l.longitude;for(let h=1;h<o;h++){let d=n[(s+h)%o],u=typeof t=="function"?t(l.item,d.item):t,x=d.longitude+(s+h>=o?360:0);a=Math.max(x,a+u),d.displayLongitude=Pe(a),l=d}return n}var tt=2;function rt(r,e,t,n){let o=r*Math.PI/180,s=(i,l)=>l>1e-9?(i+n)/l:Number.POSITIVE_INFINITY;return Math.min(s((e.width+t.width)/2,Math.abs(Math.cos(o))),s((e.height+t.height)/2,Math.abs(Math.sin(o))))}var Oe={minute:3.4,whole:1.85,retrograde:1.25,ink:.9};function Fe(r,e){return e>0?r/e*(180/Math.PI):0}function S(r,e,t,n){let o=n*Math.PI/180;return{x:r+t*Math.cos(o),y:e+t*Math.sin(o)}}var Fn="Localized";function w(r,e,t){let n=r,o=n?.[`${e}${Fn}`];if(typeof o=="string"&&o!=="")return o;if(t!==void 0)return t;let s=n?.[e];return typeof s=="string"?s:""}var Er="http://www.w3.org/2000/svg",Le=class{constructor(e){this.markup=e}};function Ln(r){return String(r).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function nt(r){return r==null?"":r instanceof Le?r.markup:typeof r=="string"||typeof r=="number"?Ln(r):r.map(nt).join("")}function E(r,...e){let t=r[0]??"";return e.forEach((n,o)=>{t+=t.endsWith("=")?`"${nt(n)}"`:nt(n),t+=r[o+1]??""}),new Le(t)}function Tr(r){return(e,t)=>Se(r,e,t)}function Or(r){let e=r?.ascendant;if(!e)return;let t=se.findIndex(n=>n.toLowerCase()===e.sign.toLowerCase());return t<0?void 0:t*30+e.degree}var st=680,g=st/2,Me=204,Mn=186,Ar=160,_r=258,Un=212,ot=224,Ue=86,B={glyph:18,degree:10},Nn=1.3,zn=.95,Rr=8,Pr=4;function C(r,e){return 180+r.ascendant-e}function Fr(r,e={}){let t={t:Tr(e.lang),locale:e.lang,size:e.typeSize??B,ascendant:Or(r.person1)??0},n=r.person1?.planets??[],o=r.person2?.planets??[];return E`<svg class="synastry-wheel" xmlns=${Er} viewBox=${`0 0 ${st} ${st}`} part="chart" role="img" aria-label=${t.t("Dual chart wheel comparing two natal charts")}><title>${t.t("Synastry dual wheel")}</title>
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),xt=/'/g,bt=/"/g,$t=/^(?:script|style|textarea|title)$/i,We=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),c=We(1),Jn=We(2),Xn=We(3),_=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),vt=new WeakMap,F=L.createTreeWalker(L,129);function kt(r,e){if(!Ye(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return mt!==void 0?mt.createHTML(e):e}var Jr=(r,e)=>{let t=r.length-1,n=[],o,s=e===2?"<svg>":e===3?"<math>":"",i=J;for(let l=0;l<t;l++){let a=r[l],h,d,u=-1,x=0;for(;x<a.length&&(i.lastIndex=x,d=i.exec(a),d!==null);)x=i.lastIndex,i===J?d[1]==="!--"?i=gt:d[1]!==void 0?i=ft:d[2]!==void 0?($t.test(d[2])&&(o=RegExp("</"+d[2],"g")),i=O):d[3]!==void 0&&(i=O):i===O?d[0]===">"?(i=o??J,u=-1):d[1]===void 0?u=-2:(u=i.lastIndex-d[2].length,h=d[1],i=d[3]===void 0?O:d[3]==='"'?bt:xt):i===bt||i===xt?i=O:i===gt||i===ft?i=J:(i=O,o=void 0);let v=i===O&&r[l+1].startsWith("/>")?" ":"";s+=i===J?a+Vr:u>=0?(n.push(h),a.slice(0,u)+wt+a.slice(u)+R+v):a+R+(u===-2?l:v)}return[kt(r,s+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},ee=class r{constructor({strings:e,_$litType$:t},n){let o;this.parts=[];let s=0,i=0,l=e.length-1,a=this.parts,[h,d]=Jr(e,t);if(this.el=r.createElement(h,n),F.currentNode=this.el.content,t===2||t===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=F.nextNode())!==null&&a.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let u of o.getAttributeNames())if(u.endsWith(wt)){let x=d[i++],v=o.getAttribute(u).split(R),T=/([.?@])?(.*)/.exec(x);a.push({type:1,index:s,name:T[2],strings:v,ctor:T[1]==="."?Ge:T[1]==="?"?je:T[1]==="@"?Ke:D}),o.removeAttribute(u)}else u.startsWith(R)&&(a.push({type:6,index:s}),o.removeAttribute(u));if($t.test(o.tagName)){let u=o.textContent.split(R),x=u.length-1;if(x>0){o.textContent=pe?pe.emptyScript:"";for(let v=0;v<x;v++)o.append(u[v],X()),F.nextNode(),a.push({type:2,index:++s});o.append(u[x],X())}}}else if(o.nodeType===8)if(o.data===St)a.push({type:2,index:s});else{let u=-1;for(;(u=o.data.indexOf(R,u+1))!==-1;)a.push({type:7,index:s}),u+=R.length-1}s++}}static createElement(e,t){let n=L.createElement("template");return n.innerHTML=e,n}};function I(r,e,t=r,n){if(e===_)return e;let o=n!==void 0?t._$Co?.[n]:t._$Cl,s=Q(e)?void 0:e._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(false),s===void 0?o=void 0:(o=new s(r),o._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=o:t._$Cl=o),o!==void 0&&(e=I(r,o._$AS(r,e.values),o,n)),e}var He=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:n}=this._$AD,o=(e?.creationScope??L).importNode(t,true);F.currentNode=o;let s=F.nextNode(),i=0,l=0,a=n[0];for(;a!==void 0;){if(i===a.index){let h;a.type===2?h=new te(s,s.nextSibling,this,e):a.type===1?h=new a.ctor(s,a.name,a.strings,this,e):a.type===6&&(h=new Be(s,this,e)),this._$AV.push(h),a=n[++l]}i!==a?.index&&(s=F.nextNode(),i++)}return F.currentNode=L,o}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},te=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,o){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??true}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=I(this,e,t),Q(e)?e===p||e==null||e===""?(this._$AH!==p&&this._$AR(),this._$AH=p):e!==this._$AH&&e!==_&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Zr(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!==p&&Q(this._$AH)?this._$AA.nextSibling.data=e:this.T(L.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=ee.createElement(kt(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(t);else{let s=new He(o,this),i=s.u(this.options);s.p(t),this.T(i),this._$AH=s}}_$AC(e){let t=vt.get(e.strings);return t===void 0&&vt.set(e.strings,t=new ee(e)),t}k(e){Ye(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,n,o=0;for(let s of e)o===t.length?t.push(n=new r(this.O(X()),this.O(X()),this,this.options)):n=t[o],n._$AI(s),o++;o<t.length&&(this._$AR(n&&n._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(false,true,t);e!==this._$AB;){let n=yt(e).nextSibling;yt(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},D=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,o,s){this.type=1,this._$AH=p,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=p}_$AI(e,t=this,n,o){let s=this.strings,i=false;if(s===void 0)e=I(this,e,t,0),i=!Q(e)||e!==this._$AH&&e!==_,i&&(this._$AH=e);else{let l=e,a,h;for(e=s[0],a=0;a<s.length-1;a++)h=I(this,l[n+a],t,a),h===_&&(h=this._$AH[a]),i||=!Q(h)||h!==this._$AH[a],h===p?e=p:e!==p&&(e+=(h??"")+s[a+1]),this._$AH[a]=h}i&&!o&&this.j(e)}j(e){e===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ge=class extends D{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===p?void 0:e}},je=class extends D{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==p)}},Ke=class extends D{constructor(e,t,n,o,s){super(e,t,n,o,s),this.type=5}_$AI(e,t=this){if((e=I(this,e,t,0)??p)===_)return;let n=this._$AH,o=e===p&&n!==p||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==p&&(n===p||o);o&&this.element.removeEventListener(this.name,this,n),s&&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)}},Be=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){I(this,e)}};var Xr=qe.litHtmlPolyfillSupport;Xr?.(ee,te),(qe.litHtmlVersions??=[]).push("3.3.3");var Et=(r,e,t)=>{let n=t?.renderBefore??e,o=n._$litPart$;if(o===void 0){let s=t?.renderBefore??null;n._$litPart$=o=new te(e.insertBefore(X(),s),s,void 0,t??{})}return o._$AI(r),o};var Ve=globalThis,P=class extends A{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=Et(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};P._$litElement$=true,P.finalized=true,Ve.litElementHydrateSupport?.({LitElement:P});var Qr=Ve.litElementPolyfillSupport;Qr?.({LitElement:P});(Ve.litElementVersions??=[]).push("4.2.2");var Tt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},At=r=>(...e)=>({_$litDirective$:r,values:e}),he=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var re=class extends he{constructor(e){if(super(e),this.it=p,e.type!==Tt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===p||e==null)return this._t=void 0,this.it=e;if(e===_)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};re.directiveName="unsafeHTML",re.resultType=1;var _t=At(re);var Rt=[{endpoint:"astrology/synastry",method:"POST"}];function ue(r){return r.toLowerCase().replace(/[\s_-]+/g," ").trim()}function ne(r){return r?r.charAt(0).toUpperCase()+r.slice(1).toLowerCase():""}var en=new RegExp("(?![\\d#*])\\p{Emoji}","gu"),tn=r=>r.replace(en,"$&\uFE0E"),ye=r=>Object.fromEntries(Object.entries(r).map(([e,t])=>[e,tn(t)])),Pt=(r,e)=>e?r[ue(e)]:void 0,rn=ye({sun:"\u2609",moon:"\u263D",mercury:"\u263F",venus:"\u2640",earth:"\u2641",mars:"\u2642",jupiter:"\u2643",saturn:"\u2644",uranus:"\u2645",neptune:"\u2646",pluto:"\u2BD3",rahu:"\u260A",ketu:"\u260B",ascendant:"Asc",midheaven:"MC","part of fortune":"\u2297",vertex:"Vx",lagna:"La","north node":"\u260A","south node":"\u260B",chiron:"\u26B7",lilith:"\u26B8","black moon lilith":"\u26B8"}),H=r=>Pt(rn,r);var nn=ye({aries:"\u2648",taurus:"\u2649",gemini:"\u264A",cancer:"\u264B",leo:"\u264C",virgo:"\u264D",libra:"\u264E",scorpio:"\u264F",sagittarius:"\u2650",capricorn:"\u2651",aquarius:"\u2652",pisces:"\u2653"}),oe=r=>Pt(nn,r);var se=["Aries","Taurus","Gemini","Cancer","Leo","Virgo","Libra","Scorpio","Sagittarius","Capricorn","Aquarius","Pisces"],wo=ye({conjunction:"\u260C",semisextile:"\u26BA","semi sextile":"\u26BA",semisquare:"\u2220","semi square":"\u2220",sextile:"\u26B9",square:"\u25A1",trine:"\u25B3",sesquiquadrate:"\u26BC",quincunx:"\u26BB",opposition:"\u260D"});var So=ye({heaven:"\u2630",lake:"\u2631",fire:"\u2632",thunder:"\u2633",wind:"\u2634",water:"\u2635",mountain:"\u2636",earth:"\u2637"});var me="\u211E";var Ct=new Map;function on(r){if(!r)return["en"];let e=Ct.get(r);if(e)return[e,"en"];let t="en";try{t=Intl.getCanonicalLocales(r)[0]??"en"}catch{t="en"}return Ct.set(r,t),[t,"en"]}function M(r,e,t=1){return typeof e!="number"||!Number.isFinite(e)?"":e.toLocaleString(on(r),{maximumFractionDigits:t})}function ge(r){return(r.type??"").toLowerCase().trim().replace(/[\s_]+/g,"-")}function G(r){return ne(ge(r))}var sn=new Set(["conjunction","sextile","square","trine","opposition"]);function Lt(r){return sn.has(ge(r))}function fe(r){return`aspect-${ge(r)}`}var Ot=.3,an=.9,Ft=.5,ln=1.8;function Mt(r){let{strength:e}=r;if(typeof e!="number"||!Number.isFinite(e))return;let t=Math.min(1,Math.max(0,e/100)),n=Ot+t*(an-Ot),o=Ft+t*(ln-Ft);return`opacity:${n.toFixed(3)};stroke-width:${o.toFixed(3)}`}var dn=f`.aspect-trine,.aspect-sextile{--_aspect:var(--roxy-info);--_aspect-ink:var(--roxy-info-fg)}.aspect-square,.aspect-opposition{--_aspect:var(--roxy-danger);--_aspect-ink:var(--roxy-danger-fg)}.aspect-quincunx,.aspect-semi-sextile{--_aspect:var(--roxy-success);--_aspect-ink:var(--roxy-success-fg)}.aspect-conjunction{--_aspect:var(--roxy-accent-ink);--_aspect-ink:var(--roxy-accent-ink)}:is(.aspect-trine,.aspect-sextile,.aspect-square,.aspect-opposition,.aspect-quincunx,.aspect-semi-sextile,.aspect-conjunction){color:var(--_aspect-ink);stroke-opacity:1}.aspect-swatch{inline-size:var(--roxy-space-sm);block-size:var(--roxy-space-sm);border-radius:var(--roxy-radius-full);background:var(--_aspect);vertical-align:middle;margin-inline-end:var(--roxy-space-xs);display:inline-block}`,Ut=[f`.aspect{stroke:var(--_aspect,var(--roxy-muted));stroke-width:.8px;fill:none;opacity:.55;stroke-opacity:.7}`,dn];var cn={attribute:true,type:String,converter:Z,reflect:false,hasChanged:ce},pn=(r=cn,e,t)=>{let{kind:n,metadata:o}=t,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),n==="setter"&&((r=Object.create(r)).wrapped=true),s.set(t.name,r),n==="accessor"){let{name:i}=t;return{set(l){let a=e.get.call(this);e.set.call(this,l),this.requestUpdate(i,a,r,true,l)},init(l){return l!==void 0&&this.C(i,void 0,r,l),l}}}if(n==="setter"){let{name:i}=t;return function(l){let a=this[i];e.call(this,l),this.requestUpdate(i,a,r,true,l)}}throw Error("Unsupported decorator location: "+n)};function b(r){return(e,t)=>typeof t=="object"?pn(r,e,t):((n,o,s)=>{let i=o.hasOwnProperty(s);return o.constructor.createProperty(s,n),i?Object.getOwnPropertyDescriptor(o,s):void 0})(r,e,t)}function $(r){return b({...r,state:true,attribute:false})}var U=r=>r??p;var Nt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function Je(r){if(r.lang)return r.lang;if(typeof document>"u")return;let e=r.closest?.("[lang]")?.getAttribute("lang");return e||document.documentElement.lang||void 0}var hn={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function Ze(r,e){let t=r.toLowerCase();return e.find(n=>n.toLowerCase()===t)}function zt(r,e=Nt){let t=Je(r);if(!t)return;let n=Ze(t,e);if(n)return n;let o=t.toLowerCase().split("-"),s=o[0];if(s==="zh"){let i=o.find(l=>l==="hans"||l==="hant")??hn[o[1]??""];return i?Ze(`zh-${i}`,e):void 0}return Ze(s,e)}var Ht="symbols";var un={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},Xe='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',It='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Dt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',be={"fraunces-jost":{name:"Fraunces with Jost",sans:Xe,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:Xe,display:Xe},geist:{name:"Geist",sans:It,display:It},system:{name:"System",sans:Dt,display:Dt}};function Gt(r){let{sans:e,display:t}=be[r];return Object.keys(un).filter(n=>`${e} ${t}`.includes(`"${n}"`))}var jt="1.9.0";var yn=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,mn=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Kt(r,e){if(!e)return;let t=new URL(e);if(t.protocol!=="https:"&&t.protocol!=="http:")return;let n=(yn.exec(t.pathname)??mn.exec(t.pathname))?.[1];if(n!==void 0)return t.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${r}/dist`:`${t.origin}${n}`}var bn={},gn="color-mix(in oklab, var(--roxy-accent) 70%, black)",fn="var(--roxy-accent)",xn="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Bt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function qt(r){return r!==void 0&&Object.hasOwn(be,r)}function Yt(r){let e=[];return r.brandColor&&Bt.test(r.brandColor)&&e.push(`--roxy-primary:${r.brandColor}`),r.brandAccent&&Bt.test(r.brandAccent)&&e.push(`--roxy-accent:${r.brandAccent}`,`--roxy-accent-ink:light-dark(${gn},${fn})`,`--roxy-ring:${xn}`),e.join(";")}function Wt(r,e){if(qt(e))return e;let t=r.getRootNode();if(("host"in t?t.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let o=r.shadowRoot?.firstElementChild,s=o?.localName==="style"?o:null;s?.sheet&&(s.sheet.disabled=true);let i,l,a;try{let h=globalThis.getComputedStyle(r),d=u=>h.getPropertyValue(u).trim();i=d("--roxy-font-sans"),l=d("--roxy-font-display"),a=d("--roxy-font")}finally{s?.sheet&&(s.sheet.disabled=false)}if(!(i||l))return qt(a)?a:void 0}function Vt(r){let{sans:e,display:t}=be[r];return`--roxy-font:${r};--roxy-font-sans:${e};--roxy-font-display:${t}`}var Zt=Kt(jt,globalThis.document?.currentScript?.src||bn.url);function Jt(r,e){if(typeof document>"u"||e===void 0)return;let t=`roxy-ui-font-${r}`;if(document.getElementById(t))return;let n=document.createElement("link");n.id=t,n.rel="stylesheet",n.href=`${e}/styles/fonts/${r}.css`,document.head.append(n)}function Xt(r,e=Zt){Gt(r).length>0&&Jt(r,e)}function Qt(r=Zt){Jt(Ht,r)}var er='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var ve="roxy-ui-tokens";function we(){if(typeof document>"u")return null;let r=document.getElementById(ve);if(r)return r;let e=document.createElement("style");return e.id=ve,e.textContent=er,document.head.prepend(e),e}var tr="__ROXY_UI_I18N__";function rr(){let r=globalThis,e=r[tr];if(e)return e;let t={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return r[tr]=t,t}function vn(r,e){return e?r.replace(/\{\{(\w+)\}\}/g,(t,n)=>n in e?String(e[n]??""):t):r}function Se(r,e,t){return vn(wn(r,e)??e,t)}function wn(r,e){if(!r)return;let{catalogs:t}=rr(),n=r.toLowerCase();return(t[n]??t[n.split("-")[0]])?.[ue(e)]}function nr(r){let{listeners:e}=rr();return e.add(r),()=>{e.delete(r)}}var $e=class{constructor(e){this.host=e,e.addController(this)}hostConnected(){this.unsubscribe=nr(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var ke=class extends P{constructor(){super();this.translator=(t,n)=>this.t(t,n);new $e(this)}connectedCallback(){super.connectedCallback(),we()}updated(t){super.updated(t),this.renderRoot.querySelector(".roxy-glyph")&&Qt()}fontDeclarations(t){let n=Wt(this,t);return n?(Xt(n),Vt(n)):""}renderFontStyle(){let t=this.fontDeclarations();return t?c`<style>:host{${t}}</style>`:p}t(t,n){return Se(this.effectiveLang(),t,n)}effectiveLang(){return Je(this)}};var or=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function sr(r){return r?c`<span class="roxy-glyph" aria-hidden="true">${r}</span>`:p}var ir=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var Sn=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,Ee=[Sn,ir,or];var $n="__cols",kn="__rows";function En(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Te(r){if(Array.isArray(r)){let s=false,i=r.map(l=>{let a=Te(l);return a!==l&&(s=true),a});return s?i:r}if(!En(r))return r;let e=r[$n],t=r[kn];if(Array.isArray(e)&&Array.isArray(t)&&Object.keys(r).length===2)return t.map(s=>{let i={};return e.forEach((l,a)=>{i[l]=Te(s[a])}),i});let n=false,o={};for(let[s,i]of Object.entries(r)){let l=Te(i);l!==i&&(n=true),o[s]=l}return n?o:r}function ar(r){return Te(r)}function lr(r,e){return r.find(t=>t.attrs&&Object.entries(t.attrs).every(([n,o])=>e[n]===o))??r[0]}var Tn="pk_live_YOUR_KEY",dr={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function cr(r){if(r)return r===Tn?dr.sample:r.startsWith("pk_")?void 0:dr.secret}function pr(r,e,t={}){t.warn&&console.warn(e.message),r.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:e.reason,message:e.message},bubbles:true,composed:true}))}var hr="https://roxyapi.com/api/v2";async function An(r){try{let e=await r.json();if(e?.error){let t=e.code==="validation_error"&&Array.isArray(e.issues)?e.issues.filter(n=>typeof n.path=="string"&&typeof n.message=="string").map(n=>({path:n.path,message:n.message})):null;return{message:e.error,issues:t?.length?t:null,worded:true,...e.code?{code:e.code}:{}}}}catch{}return{message:`Request failed (${r.status})`,issues:null,worded:false}}var ur={fromAttribute:r=>{if(r!=null){try{let e=JSON.parse(r);if(e&&typeof e=="object"&&!Array.isArray(e))return e}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},j=class extends Error{constructor(t,n=null,o=true,s,i){super(t);this.issues=n;this.worded=o;this.status=s;this.code=i}};function yr(r){return r.submitUrl?void 0:cr(r.publishableKey)}async function Qe(r,e,t){let n=yr(r);if(n)throw new j(n.message);let o=r.submitUrl?await fetch(r.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:_n(e,r.submitContext),signal:t}):await Rn(r,e,t);if(!o.ok){let s=await An(o);throw new j(s.message,s.issues,s.worded,o.status,s.code)}return await o.json()}function _n(r,e){return JSON.stringify(e?{...r,context:e}:r)}function Rn(r,e,t){let n=new URL(`${r.baseUrl??hr}${e.path}`,document.baseURI);for(let[s,i]of Object.entries(e.query??{}))i!=null&&n.searchParams.set(s,String(i));let o={Accept:"application/json"};return r.publishableKey&&(o["X-API-Key"]=r.publishableKey),e.body!=null&&(o["Content-Type"]="application/json"),fetch(n,{method:e.method??"GET",headers:o,body:e.body!=null?JSON.stringify(e.body):void 0,signal:t})}var Ae=class{constructor(e){this.baseUrl=hr;this.worded=true;this.failure={};this.host=e,e.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(e){this.worded=true,this.failure={};let t=yr(this);if(t){this.host.error=t.message,pr(this.host,t);return}this.abort?.abort();let n=new AbortController;this.abort=n,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let o=await Qe(this,e,n.signal);if(n.signal.aborted)return;this.host.data=o}catch(o){if(n.signal.aborted||o?.name==="AbortError")return;o instanceof j&&(this.host.issues=o.issues,this.failure={status:o.status,code:o.code}),this.worded=o instanceof j&&o.worded,this.host.error=o instanceof Error?o.message:String(o)}finally{this.abort===n&&(this.abort=void 0),n.signal.aborted||(this.host.loading=false)}}};function mr(r,e,t,n=[]){let o={...t},s=`/${r.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(h,d)=>{let u=o[d];return delete o[d],encodeURIComponent(String(u??""))}),i=new Set(n),l={},a={};for(let[h,d]of Object.entries(o))d===void 0||d===""||(e==="GET"||i.has(h)?l[h]=d:a[h]=d);return{path:s,method:e,query:l,body:e==="POST"?a:void 0}}function K(){return c`<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 gr=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var fr=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function xr(r){return r?.length?c`<div class="interp-keywords roxy-chips">${r.map(e=>c`<span class="roxy-chip">${e}</span>`)}</div>`:p}function br(r,e,t,n=false){let o=r.filter(s=>!!s.body);return o.length===0?p:c`<section class="block" part="section readings"><h3>${t}</h3>${o.map((s,i)=>c`<details class="interp-card" part="reading" name="${e}" ?open="${i===0&&!n}"><summary><span class="interp-lead">${sr(s.glyph)} ${s.label}</span> ${K()} ${s.aside?c`<span class="interp-aside"><small>${s.aside}</small></span>`:p}</summary><div class="interp-body"><p>${s.body}</p>${s.extra??p}</div></details>`)}</section>`}var Pn="roxy-data";function Cn(r){return r.nodeName==="SCRIPT"&&r.getAttribute("type")==="application/json"}var _e=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(Cn(e)&&e.classList.contains(Pn))return e;return null}parse(e){if(e?.trim())try{return JSON.parse(e)}catch{return}}};var y=class extends ke{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let t=this.lastRequest,n=this.listKey,o=this.listRows();if(!(!t||!n||!o)){this.moreLoading=true,this.moreError=null;try{let s=await Qe(this.fetcher,{...t,query:{...t.query,offset:o.length}});if(this.lastRequest!==t)return;let i=s[n];this.data={...this.data,...s,[n]:[...o,...Array.isArray(i)?i:[]]}}catch(s){this.lastRequest===t&&(this.moreError=s instanceof Error?s.message:String(s))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=t=>{let n=this.selfFetch();if(!n)return;let o=t.detail;this.lastValues=o.values,this.sticky=!!o.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(o.values),this.fetchFresh(mr(n.endpoint,n.method,{...o.values,...this.ownRequest()},o.queryKeys??[]))};new _e(this),this.fetcher=new Ae(this)}static{this.styles=[Ee]}static{this.endpoints=[]}willUpdate(t){if(t.has("data")&&this.data!=null){let n=ar(this.data);n!==this.data&&(this.data=n)}(t.has("publishableKey")||t.has("baseUrl")||t.has("submitUrl")||t.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let t=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:lr(this.constructor.endpoints,this);return t&&{endpoint:t.endpoint,method:this.method??t.method}}render(){return c`${this.hostStyle()}${this.renderState()}`}drawn(t){try{return this.renderData(t)}catch(n){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,n),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:n},bubbles:true,composed:true})),customElements.get("roxy-data")?c`<roxy-data .data="${t}" lang="${U(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let t=this.hideSections.split(",").map(s=>s.trim().toLowerCase()).filter(s=>/^[a-z][a-z0-9-]*$/.test(s)),n=[Yt(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(t.length===0&&!n)return p;let o=(n?`:host{${n}}`:"")+t.map(s=>`[part~="${s}"],roxy-endpoint-form::part(${s}){display:none!important}`).join("");return c`<style>${o}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(t,n,o,s=false){return this.hideReadings?p:br(t,n,this.t(o??"Reading"),s)}renderResult(t){let n=c`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(t)}`;return this.showAttribution()?c`${n}${this.renderAttribution()}`:n}renderWithForm(t){return c`${this.renderForm()}${t}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?p:this.renderErrorBanner(this.error):this.data==null?p:this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let t=this.listRows(),n=this.data?.total;return!this.lastRequest||!t||typeof n!="number"?p:t.length>=n?p:c`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?c`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:p}</div>`}listRows(){let t=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(t)?t:void 0}fetchFresh(t){return this.lastRequest=t,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(t)}load(t){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(t)}pickRow(t){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:t,bubbles:true,composed:true})),this.openRow(t.id)}openRow(t){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let n=this.openedRow??document.createElement(this.rowDetail.tag);n.publishableKey=this.publishableKey,n.baseUrl=this.baseUrl,n.submitUrl=this.submitUrl,n.submitContext=this.submitContext,n.hideReadings=this.hideReadings,n.hideSections=this.hideSections;let o=this.effectiveLang();o&&n.setAttribute("lang",o),this.openedRow=n,this.openedRowId=t,n.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(t))}`,method:"GET",query:{lang:zt(this)}}).then(()=>n.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return c`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(p):this.renderEmpty()}renderForm(){let t=this.selfFetch();return c`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${t?.endpoint??""}" method="${t?.method??"POST"}" spec-url="${U(this.specUrl)}" publishable-key="${U(this.publishableKey)}" location-url="${U(this.locationUrl)}" submit-label="${U(this.submitLabel)}" lang="${U(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let 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 c`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return c`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(t){let n=!!this.selfFetch();if(n&&this.issues)return this.renderForm();let o=this.renderErrorBanner(t);return n?c`${o}${this.renderForm()}`:o}renderErrorBanner(t){return c`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(t)}</div>`}};m([b({attribute:false})],y.prototype,"data",2),m([b({type:String,attribute:"data-endpoint"})],y.prototype,"endpoint",2),m([b({type:String})],y.prototype,"method",2),m([b({type:String,attribute:"publishable-key"})],y.prototype,"publishableKey",2),m([b({type:String,attribute:"base-url"})],y.prototype,"baseUrl",2),m([b({type:String,attribute:"spec-url"})],y.prototype,"specUrl",2),m([b({type:String,attribute:"submit-url"})],y.prototype,"submitUrl",2),m([b({attribute:"submit-context",converter:ur})],y.prototype,"submitContext",2),m([b({type:String,attribute:"location-url"})],y.prototype,"locationUrl",2),m([b({type:Boolean})],y.prototype,"remember",2),m([b({type:Boolean,attribute:"hide-readings",reflect:true})],y.prototype,"hideReadings",2),m([b({type:String,attribute:"hide-sections",reflect:true})],y.prototype,"hideSections",2),m([b({type:String,attribute:"brand-color"})],y.prototype,"brandColor",2),m([b({type:String,attribute:"brand-accent"})],y.prototype,"brandAccent",2),m([b({type:String})],y.prototype,"font",2),m([b({type:String})],y.prototype,"hemisphere",2),m([b({type:String,attribute:"submit-label"})],y.prototype,"submitLabel",2),m([b({type:String,attribute:"error-message"})],y.prototype,"errorMessage",2),m([b({type:String})],y.prototype,"attribution",2),m([$()],y.prototype,"loading",2),m([$()],y.prototype,"error",2),m([$()],y.prototype,"issues",2),m([$()],y.prototype,"selfFetched",2),m([$()],y.prototype,"editing",2),m([$()],y.prototype,"sticky",2),m([$()],y.prototype,"openedRow",2),m([$()],y.prototype,"openedRowId",2),m([$()],y.prototype,"moreLoading",2),m([$()],y.prototype,"moreError",2);var ui=f`:where(.natal-wheel) .wheel-line,:where(.natal-wheel) .tick{fill:none;stroke:var(--roxy-border)}:where(.natal-wheel) .tick-major{stroke:var(--roxy-secondary)}:where(.natal-wheel) .sign-glyph{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}:where(.natal-wheel) .planet-glyph{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold)}:where(.natal-wheel) .planet-deg{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .4375)}:where(.natal-wheel) .planet-deg .retro{fill:var(--roxy-danger-fg)}:where(.natal-wheel) .planet-leader{stroke:var(--roxy-accent);stroke-width:.5px;opacity:.55}:where(.natal-wheel) .house-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .5625)}:where(.natal-wheel) .cusp-deg{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .375)}:where(.natal-wheel) .angle-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold)}:where(.natal-wheel) .angle-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}@container (width<=480px){:where(.natal-wheel) .sign-glyph,:where(.natal-wheel) .planet-glyph{font-size:calc(var(--roxy-text-base) * 1.5)}:where(.natal-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .8125)}:where(.natal-wheel) .house-num{font-size:calc(var(--roxy-text-base) * .75)}}`,vr=f`:where(.synastry-wheel) .wheel-line{fill:none;stroke:var(--roxy-border)}:where(.synastry-wheel) .p1{--_person:var(--roxy-accent-ink)}:where(.synastry-wheel) .p2{--_person:var(--roxy-fg)}:where(.synastry-wheel) .sign{fill:var(--roxy-secondary);font-size:calc(var(--roxy-text-base) * .875)}:where(.synastry-wheel) text.p1,:where(.synastry-wheel) text.p2{fill:var(--_person);font-size:calc(var(--roxy-text-base) * 1.125);font-weight:var(--roxy-weight-bold)}:where(.synastry-wheel) .person-tag,:where(.synastry-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .625)}:where(.synastry-wheel) .planet-deg{fill:var(--roxy-muted)}:where(.synastry-wheel) .planet-deg .retro{fill:var(--roxy-danger-fg)}:where(.synastry-wheel) .leader{stroke:var(--_person);stroke-width:.5px;opacity:.7}@container (width<=480px){:where(.synastry-wheel) .sign,:where(.synastry-wheel) text.p1,:where(.synastry-wheel) text.p2{font-size:calc(var(--roxy-text-base) * 1.75)}:where(.synastry-wheel) .person-tag,:where(.synastry-wheel) .planet-deg{font-size:calc(var(--roxy-text-base) * .9375)}}:where(.synastry-wheel) .asc-tick{stroke:var(--roxy-accent-ink);stroke-width:1.5px}:where(.synastry-wheel) .asc-label{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .5625);font-weight:var(--roxy-weight-bold)}`,yi=f`:where(.kundli) .line{fill:#0000;stroke:var(--roxy-border)}:where(.kundli) .sign-text{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans);text-transform:uppercase}:where(.kundli) .rashi-num{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .75);font-weight:var(--roxy-weight-normal);font-family:var(--roxy-font-sans)}:where(.kundli) .house-num{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .6875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .planet-text{fill:var(--roxy-fg);font-size:calc(var(--roxy-text-base) * .8125);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .centre-label{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .875);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.kundli) .lagna-marker{fill:var(--roxy-accent-ink);font-size:calc(var(--roxy-text-base) * .625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans);text-transform:uppercase}:where(.kundli) .lagna-bg{fill:color-mix(in srgb, var(--roxy-accent) 14%, transparent)}:where(.kundli) .lagna-slash{stroke:var(--roxy-accent);stroke-linecap:round;opacity:.7}`,mi=f`:where(.bodygraph) .bg-body{fill:color-mix(in srgb, var(--roxy-secondary) 8%, transparent);stroke:var(--roxy-border);stroke-width:1px}:where(.bodygraph) .bg-channel{stroke:var(--roxy-border);stroke-width:5px;stroke-linecap:round}:where(.bodygraph) .bg-half{stroke-width:5px;stroke-linecap:round}:where(.bodygraph) .bg-half.stripe{stroke-linecap:butt;stroke-dasharray:7 7}:where(.bodygraph) .bg-center{fill:var(--_mask,var(--roxy-bg));stroke:var(--roxy-secondary);stroke-width:1.8px}:where(.bodygraph) .bg-center.defined{stroke:color-mix(in srgb, var(--roxy-fg) 45%, transparent)}:where(.bodygraph){--_gold:color-mix(in oklch, var(--roxy-warning) 60%, var(--roxy-success));--_gold-ink:color-mix(in oklch, var(--roxy-warning-fg) 60%, var(--roxy-success-fg));--_center-gold:light-dark(color-mix(in oklab, var(--_gold) 40%, var(--roxy-bg)),color-mix(in oklab, var(--_gold) 50%, var(--_gold-ink)));--_center-green:light-dark(color-mix(in oklab, var(--roxy-success) 40%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-success) 50%, var(--roxy-success-fg)));--_center-red:light-dark(color-mix(in oklab, var(--roxy-danger) 40%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-danger) 50%, var(--roxy-danger-fg)));--_center-brown:light-dark(color-mix(in oklab, color-mix(in oklab, var(--roxy-warning-fg) 75%, var(--roxy-fg)) 45%, var(--roxy-bg)),color-mix(in oklab, var(--roxy-warning-fg) 50%, var(--roxy-secondary)))}:where(.bodygraph) .bg-center.bg-gold.defined,:where(.bodygraph) .legend .swatch.bg-gold{fill:var(--_center-gold);background:var(--_center-gold)}:where(.bodygraph) .bg-center.bg-green.defined,:where(.bodygraph) .legend .swatch.bg-green{fill:var(--_center-green);background:var(--_center-green)}:where(.bodygraph) .bg-center.bg-red.defined,:where(.bodygraph) .legend .swatch.bg-red{fill:var(--_center-red);background:var(--_center-red)}:where(.bodygraph) .bg-center.bg-brown.defined,:where(.bodygraph) .legend .swatch.bg-brown{fill:var(--_center-brown);background:var(--_center-brown)}:where(.bodygraph) .bg-gate-dot{fill:var(--_mask,var(--roxy-bg));stroke:var(--roxy-border);stroke-width:1px}:where(.bodygraph) .bg-gate-dot.on{stroke:var(--_mask,var(--roxy-bg))}:where(.bodygraph) .bg-center-name{color:var(--roxy-muted);fill:currentColor;font-weight:var(--roxy-weight-bold);text-transform:uppercase;pointer-events:none}:where(.bodygraph) .bg-center-name.defined{color:light-dark(var(--roxy-fg),var(--roxy-bg))}:where(.bodygraph) .bg-gate{fill:var(--roxy-muted);font-size:calc(var(--roxy-text-base) * .50625);font-weight:var(--roxy-weight-bold);font-family:var(--roxy-font-sans)}:where(.bodygraph) .bg-gate.on{fill:var(--src-ink,var(--_mask,var(--roxy-bg)))}:where(.bodygraph) .bg-half.src-left{stroke:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .bg-half.src-right{stroke:var(--src-right,var(--roxy-fg))}:where(.bodygraph) .bg-gate-dot.on.src-left{fill:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .bg-gate-dot.on.src-right{fill:var(--src-right,var(--roxy-fg))}:where(.bodygraph) .legend .swatch.src-left{background:var(--src-left,var(--roxy-danger))}:where(.bodygraph) .legend .swatch.src-right{background:var(--src-right,var(--roxy-fg))}`,gi=f`:where(.roxy-moon) .moon-shade{fill:var(--roxy-moon-shade)}:where(.roxy-moon) .moon-earthshine{fill:var(--roxy-moon-lit);opacity:.05}:where(.roxy-moon) .moon-soft{fill:var(--roxy-moon-lit)}:where(.roxy-moon) .moon-soft-1{opacity:.18}:where(.roxy-moon) .moon-soft-2{opacity:.34}:where(.roxy-moon) .moon-lit{fill:var(--roxy-moon-lit)}:where(.roxy-moon) .moon-limb{fill:none;stroke:var(--roxy-moon-mare)}:where(.roxy-moon) .moon-limb-1{stroke-width:.1px;opacity:.18}:where(.roxy-moon) .moon-limb-2{stroke-width:.03px;opacity:.3}:where(.roxy-moon) .moon-halo{fill:var(--roxy-moon-mare);opacity:.22}:where(.roxy-moon) .moon-mare{fill:var(--roxy-moon-mare);opacity:.38}:where(.roxy-moon) .moon-crater{fill:none;stroke:var(--roxy-moon-mare);stroke-width:.012px}:where(.roxy-moon) .moon-copper{fill:var(--roxy-moon-eclipse)}:where(.roxy-moon) .moon-copper-limb .moon-limb{stroke:var(--roxy-moon-shade)}:where(.roxy-moon) .moon-copper-mare{fill:var(--roxy-moon-shade);opacity:.3}:where(.roxy-moon) .moon-corona{fill:none;stroke:var(--roxy-moon-corona);stroke-width:.05px}:where(.roxy-moon) .moon-corona-outer{stroke-width:.02px;opacity:.45}:where(.roxy-moon) .moon-rim{fill:none;stroke:var(--roxy-moon-rim);stroke-width:.012px}:where(.roxy-moon) .moon-rim-small{stroke-width:.04px}`;var Re=class{constructor(e){this.host=e;this.state="closed";this.zoom=1;this.pressedBy="";this.press=e2=>{this.pressedBy=e2.pointerType};this.openOnMouse=e2=>{let t=this.pressedBy==="mouse";this.pressedBy="",t&&(e2.target?.closest?.("a, button, summary, input, select, textarea")||getSelection()?.toString()||this.open())};e.addController(this)}hostUpdated(){let e=this.host.renderRoot.querySelector(".roxy-chart-dialog");if(!e)this.reset();else if(e.isConnected&&this.state!=="closed"){this.state==="opening"&&(this.state="open",e.open||e.showModal());let t=e.querySelector(".roxy-chart-scroll");e.open&&t&&this.position&&(t.scrollLeft=t.scrollWidth*this.position.x-t.clientWidth/2,t.scrollTop=t.scrollHeight*this.position.y-t.clientHeight/2,this.position=void 0)}}hostDisconnected(){this.reset(),this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}open(){this.state="opening",this.position={x:.5,y:0},this.host.requestUpdate()}reset(){this.state="closed",this.zoom=1,this.position=void 0}resize(e){let t=this.host.renderRoot.querySelector(".roxy-chart-scroll");this.position=e===0?{x:.5,y:0}:t?{x:(t.scrollLeft+t.clientWidth/2)/t.scrollWidth,y:(t.scrollTop+t.clientHeight/2)/t.scrollHeight}:void 0,this.zoom=e===0?1:Math.min(3,Math.max(1,this.zoom+e)),this.host.requestUpdate()}renderChartViewport(e,t,n){return c`<div class="roxy-chart-view"><div class="roxy-chart-hit" @pointerdown="${this.press}" @click="${this.openOnMouse}">${e}</div><div class="roxy-chart-tools" part="chart-controls"><button type="button" @click="${()=>this.open()}">${n("Enlarge chart")}</button></div><dialog class="roxy-chart-dialog" part="chart-dialog" aria-label="${t}" @close="${()=>{this.reset(),this.host.requestUpdate()}}">${this.state!=="closed"?c`<div class="roxy-chart-bar"><strong>${t}</strong><div class="roxy-chart-tools"><button type="button" aria-label="${n("Zoom out")}" ?disabled="${this.zoom===1}" @click="${()=>this.resize(-.5)}">−</button> <button type="button" @click="${()=>this.resize(0)}">${n("Reset zoom")}</button> <button type="button" aria-label="${n("Zoom in")}" ?disabled="${this.zoom===3}" @click="${()=>this.resize(.5)}">+</button> <button type="button" @click="${()=>this.host.renderRoot.querySelector(".roxy-chart-dialog")?.close()}">${n("Close")}</button></div></div><div class="roxy-chart-scroll" role="region" tabindex="0" aria-label="${t}"><div class="roxy-chart-expanded" style="${`--chart-zoom:${this.zoom}`}">${e}</div></div>`:p}</dialog></div>`}},wr=f`.roxy-chart-view{min-width:0}@media (hover:hover) and (pointer:fine){.roxy-chart-hit{cursor:zoom-in}}.roxy-chart-tools{gap:var(--roxy-space-sm);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.roxy-chart-tools button{font-size:var(--roxy-text-sm);color:var(--roxy-secondary);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);min-width:2lh;min-height:2lh;padding:var(--roxy-space-xs) var(--roxy-space-sm);cursor:pointer;background:0 0}.roxy-chart-tools button:hover:not(:disabled){border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-chart-tools button:disabled{color:var(--roxy-muted);cursor:default}.roxy-chart-dialog{--roxy-surface:var(--roxy-bg);width:calc(100% - 2 * var(--roxy-space-md));max-width:calc(var(--roxy-chart-expanded-width,60rem) * 1.2);max-height:calc(100% - 2 * var(--roxy-space-md));padding:var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);color:var(--roxy-fg);background:var(--roxy-bg);box-shadow:var(--roxy-shadow-lg);margin:auto}.roxy-chart-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.roxy-chart-dialog::backdrop{background:color-mix(in oklab, var(--roxy-bg) 85%, transparent)}.roxy-chart-bar{justify-content:space-between;align-items:center;gap:var(--roxy-space-md);margin-bottom:var(--roxy-space-md);flex-wrap:wrap;flex-shrink:0;display:flex}.roxy-chart-bar>strong{overflow-wrap:anywhere;min-width:0}.roxy-chart-scroll{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.roxy-chart-expanded{width:max(100%, calc(var(--roxy-chart-expanded-width,60rem) * var(--chart-zoom)));padding:var(--roxy-space-sm)}.roxy-chart-expanded>svg{width:100%;max-width:none;height:auto;margin:0}`;var Sr=r=>e=>{customElements.get(r)||customElements.define(r,e)};function Pe(r){let e=r%360;return e<0?e+360:e}function $r(r){let e=Pe(r),t=Math.floor(e/30)%12,n=e%30,o=Math.floor(n),s=(n-o)*60,i=Math.floor(s),l=Math.round((s-i)*60);return{sign:se[t]??"Aries",signIndex:t,degree:o,minute:i,second:l}}function kr(r){return Ce(Pe(r)%30)}function On(r){let e=Math.floor(r);return{degree:e,minute:Math.floor((r-e)*60)}}function Ce(r){let{degree:e,minute:t}=On(r);return`${e}\xB0${String(t).padStart(2,"0")}'`}function et(r,e,t){let n=r.filter(h=>Number.isFinite(e(h))).map(h=>{let d=Pe(e(h));return{item:h,longitude:d,displayLongitude:d}}).sort((h,d)=>h.longitude-d.longitude),o=n.length;if(o<2)return n;let s=0,i=-1;for(let h=0;h<o;h++){let d=n[(h+o-1)%o],x=(n[h].longitude-d.longitude+360)%360;x>i&&(i=x,s=h)}let l=n[s],a=l.longitude;for(let h=1;h<o;h++){let d=n[(s+h)%o],u=typeof t=="function"?t(l.item,d.item):t,x=d.longitude+(s+h>=o?360:0);a=Math.max(x,a+u),d.displayLongitude=Pe(a),l=d}return n}var tt=2;function rt(r,e,t,n){let o=r*Math.PI/180,s=(i,l)=>l>1e-9?(i+n)/l:Number.POSITIVE_INFINITY;return Math.min(s((e.width+t.width)/2,Math.abs(Math.cos(o))),s((e.height+t.height)/2,Math.abs(Math.sin(o))))}var Oe={minute:3.4,whole:1.85,retrograde:1.25,ink:.9};function Fe(r,e){return e>0?r/e*(180/Math.PI):0}function S(r,e,t,n){let o=n*Math.PI/180;return{x:r+t*Math.cos(o),y:e+t*Math.sin(o)}}var Fn="Localized";function w(r,e,t){let n=r,o=n?.[`${e}${Fn}`];if(typeof o=="string"&&o!=="")return o;if(t!==void 0)return t;let s=n?.[e];return typeof s=="string"?s:""}var Er="http://www.w3.org/2000/svg",Le=class{constructor(e){this.markup=e}};function Ln(r){return String(r).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function nt(r){return r==null?"":r instanceof Le?r.markup:typeof r=="string"||typeof r=="number"?Ln(r):r.map(nt).join("")}function E(r,...e){let t=r[0]??"";return e.forEach((n,o)=>{t+=t.endsWith("=")?`"${nt(n)}"`:nt(n),t+=r[o+1]??""}),new Le(t)}function Tr(r){return(e,t)=>Se(r,e,t)}function Or(r){let e=r?.ascendant;if(!e)return;let t=se.findIndex(n=>n.toLowerCase()===e.sign.toLowerCase());return t<0?void 0:t*30+e.degree}var st=680,g=st/2,Me=204,Mn=186,Ar=160,_r=258,Un=212,ot=224,Ue=86,B={glyph:18,degree:10},Nn=1.3,zn=.95,Rr=8,Pr=4;function C(r,e){return 180+r.ascendant-e}function Fr(r,e={}){let t={t:Tr(e.lang),locale:e.lang,size:e.typeSize??B,ascendant:Or(r.person1)??0},n=r.person1?.planets??[],o=r.person2?.planets??[];return E`<svg class="synastry-wheel" xmlns=${Er} viewBox=${`0 0 ${st} ${st}`} part="chart" role="img" aria-label=${t.t("Dual chart wheel comparing two natal charts")}><title>${t.t("Synastry dual wheel")}</title>
4
4
  <circle class="wheel-line" cx=${g} cy=${g} r=${Me} stroke-width="1.5" />
5
5
  <circle class="wheel-line" cx=${g} cy=${g} r=${Me-32} stroke-width="0.8" />
6
6
  <circle class="wheel-line" cx=${g} cy=${g} r=${Ue} stroke-width="0.6" />
@@ -1,3 +1,3 @@
1
1
  var RoxyUI_tarot_card=(()=>{var H=Object.defineProperty;var Tt=Object.getOwnPropertyDescriptor;var Le=Object.getOwnPropertyNames;var Ie=Object.prototype.hasOwnProperty;var Ge=(o,t)=>{for(var e in t)H(o,e,{get:t[e],enumerable:true})},Ke=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Le(t))!Ie.call(o,n)&&n!==e&&H(o,n,{get:()=>t[n],enumerable:!(r=Tt(t,n))||r.enumerable});return o};var Ne=o=>Ke(H({},"__esModule",{value:true}),o),p=(o,t,e,r)=>{for(var n=r>1?void 0:r?Tt(t,e):t,i=o.length-1,s;i>=0;i--)(s=o[i])&&(n=(r?s(t,e,n):s(n))||n);return r&&n&&H(t,e,n),n};var Er={};Ge(Er,{ROXY_UI_TOKENS_STYLE_ID:()=>J,RoxyTarotCard:()=>$,injectRoxyTokens:()=>X});var z=globalThis,D=z.ShadowRoot&&(z.ShadyCSS===void 0||z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nt=Symbol(),kt=new WeakMap,F=class{constructor(t,e,r){if(this._$cssResult$=true,r!==nt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(D&&t===void 0){let r=e!==void 0&&e.length===1;r&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&kt.set(e,t))}return t}toString(){return this.cssText}},At=o=>new F(typeof o=="string"?o:o+"",void 0,nt),f=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((r,n,i)=>r+(s=>{if(s._$cssResult$===true)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[i+1],o[0]);return new F(e,o,nt)},_t=(o,t)=>{if(D)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let r=document.createElement("style"),n=z.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=e.cssText,o.appendChild(r)}},it=D?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let r of t.cssRules)e+=r.cssText;return At(e)})(o):o;var{is:je,defineProperty:Me,getOwnPropertyDescriptor:He,getOwnPropertyNames:ze,getOwnPropertySymbols:De,getPrototypeOf:Be}=Object,B=globalThis,Rt=B.trustedTypes,qe=Rt?Rt.emptyScript:"",Ye=B.reactiveElementPolyfillSupport,U=(o,t)=>o,L={toAttribute(o,t){switch(t){case Boolean:o=o?qe:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},q=(o,t)=>!je(o,t),Pt={attribute:true,type:String,converter:L,reflect:false,useDefault:false,hasChanged:q};Symbol.metadata??=Symbol("metadata"),B.litPropertyMetadata??=new WeakMap;var S=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=Pt){if(e.state&&(e.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=true),this.elementProperties.set(t,e),!e.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(t,r,e);n!==void 0&&Me(this.prototype,t,n)}}static getPropertyDescriptor(t,e,r){let{get:n,set:i}=He(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get:n,set(s){let d=n?.call(this);i?.call(this,s),this.requestUpdate(t,d,r)},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??Pt}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;let t=Be(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(U("properties"))){let e=this.properties,r=[...ze(e),...De(e)];for(let n of r)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[r,n]of e)this.elementProperties.set(r,n)}this._$Eh=new Map;for(let[e,r]of this.elementProperties){let n=this._$Eu(e,r);n!==void 0&&this._$Eh.set(n,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 n of r)e.unshift(it(n))}else t!==void 0&&e.push(it(t));return e}static _$Eu(t,e){let r=e.attribute;return r===false?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(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(true),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),n=this.constructor._$Eu(t,r);if(n!==void 0&&r.reflect===true){let i=(r.converter?.toAttribute!==void 0?r.converter:L).toAttribute(e,r.type);this._$Em=t,i==null?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(t,e){let r=this.constructor,n=r._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let i=r.getPropertyOptions(n),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:L;this._$Em=n;let d=s.fromAttribute(e,i.type);this[n]=d??this._$Ej?.get(n)??d,this._$Em=null}}requestUpdate(t,e,r,n=false,i){if(t!==void 0){let s=this.constructor;if(n===false&&(i=this[t]),r??=s.getPropertyOptions(t),!((r.hasChanged??q)(i,e)||r.useDefault&&r.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,r))))return;this.C(t,e,r)}this.isUpdatePending===false&&(this._$ES=this._$EP())}C(t,e,{useDefault:r,reflect:n,wrapped:i},s){r&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??e??this[t]),i!==true||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||r||(e=void 0),this._$AL.set(t,e)),n===true&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=true;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[n,i]of this._$Ep)this[n]=i;this._$Ep=void 0}let r=this.constructor.elementProperties;if(r.size>0)for(let[n,i]of r){let{wrapped:s}=i,d=this[n];s!==true||this._$AL.has(n)||d===void 0||this.C(n,void 0,i,d)}}let t=false,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=false,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=false}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[U("elementProperties")]=new Map,S[U("finalized")]=new Map,Ye?.({ReactiveElement:S}),(B.reactiveElementVersions??=[]).push("2.1.2");var ht=globalThis,Ct=o=>o,Y=ht.trustedTypes,Ot=Y?Y.createPolicy("lit-html",{createHTML:o=>o}):void 0,Kt="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,Nt="?"+E,Ve=`<${Nt}>`,A=document,G=()=>A.createComment(""),K=o=>o===null||typeof o!="object"&&typeof o!="function",ut=Array.isArray,We=o=>ut(o)||typeof o?.[Symbol.iterator]=="function",st=`[
2
2
  \f\r]`,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ft=/-->/g,Ut=/>/g,T=RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Lt=/'/g,It=/"/g,jt=/^(?:script|style|textarea|title)$/i,yt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),c=yt(1),_r=yt(2),Rr=yt(3),_=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),Gt=new WeakMap,k=A.createTreeWalker(A,129);function Mt(o,t){if(!ut(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ot!==void 0?Ot.createHTML(t):t}var Je=(o,t)=>{let e=o.length-1,r=[],n,i=t===2?"<svg>":t===3?"<math>":"",s=I;for(let d=0;d<e;d++){let a=o[d],y,m,u=-1,b=0;for(;b<a.length&&(s.lastIndex=b,m=s.exec(a),m!==null);)b=s.lastIndex,s===I?m[1]==="!--"?s=Ft:m[1]!==void 0?s=Ut:m[2]!==void 0?(jt.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=T):m[3]!==void 0&&(s=T):s===T?m[0]===">"?(s=n??I,u=-1):m[1]===void 0?u=-2:(u=s.lastIndex-m[2].length,y=m[1],s=m[3]===void 0?T:m[3]==='"'?It:Lt):s===It||s===Lt?s=T:s===Ft||s===Ut?s=I:(s=T,n=void 0);let v=s===T&&o[d+1].startsWith("/>")?" ":"";i+=s===I?a+Ve:u>=0?(r.push(y),a.slice(0,u)+Kt+a.slice(u)+E+v):a+E+(u===-2?d:v)}return[Mt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},N=class o{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let i=0,s=0,d=t.length-1,a=this.parts,[y,m]=Je(t,e);if(this.el=o.createElement(y,r),k.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=k.nextNode())!==null&&a.length<d;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(Kt)){let b=m[s++],v=n.getAttribute(u).split(E),M=/([.?@])?(.*)/.exec(b);a.push({type:1,index:i,name:M[2],strings:v,ctor:M[1]==="."?dt:M[1]==="?"?lt:M[1]==="@"?ct:C}),n.removeAttribute(u)}else u.startsWith(E)&&(a.push({type:6,index:i}),n.removeAttribute(u));if(jt.test(n.tagName)){let u=n.textContent.split(E),b=u.length-1;if(b>0){n.textContent=Y?Y.emptyScript:"";for(let v=0;v<b;v++)n.append(u[v],G()),k.nextNode(),a.push({type:2,index:++i});n.append(u[b],G())}}}else if(n.nodeType===8)if(n.data===Nt)a.push({type:2,index:i});else{let u=-1;for(;(u=n.data.indexOf(E,u+1))!==-1;)a.push({type:7,index:i}),u+=E.length-1}i++}}static createElement(t,e){let r=A.createElement("template");return r.innerHTML=t,r}};function P(o,t,e=o,r){if(t===_)return t;let n=r!==void 0?e._$Co?.[r]:e._$Cl,i=K(t)?void 0:t._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(false),i===void 0?n=void 0:(n=new i(o),n._$AT(o,e,r)),r!==void 0?(e._$Co??=[])[r]=n:e._$Cl=n),n!==void 0&&(t=P(o,n._$AS(o,t.values),n,r)),t}var at=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,n=(t?.creationScope??A).importNode(e,true);k.currentNode=n;let i=k.nextNode(),s=0,d=0,a=r[0];for(;a!==void 0;){if(s===a.index){let y;a.type===2?y=new j(i,i.nextSibling,this,t):a.type===1?y=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(y=new pt(i,this,t)),this._$AV.push(y),a=r[++d]}s!==a?.index&&(i=k.nextNode(),s++)}return k.currentNode=A,n}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++}},j=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??true}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=P(this,t,e),K(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):We(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!==l&&K(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,n=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=N.createElement(Mt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{let i=new at(n,this),s=i.u(this.options);i.p(e),this.T(s),this._$AH=i}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new N(t)),e}k(t){ut(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,n=0;for(let i of t)n===e.length?e.push(r=new o(this.O(G()),this.O(G()),this,this.options)):r=e[n],r._$AI(i),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=Ct(t).nextSibling;Ct(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},C=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,i){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(t,e=this,r,n){let i=this.strings,s=false;if(i===void 0)t=P(this,t,e,0),s=!K(t)||t!==this._$AH&&t!==_,s&&(this._$AH=t);else{let d=t,a,y;for(t=i[0],a=0;a<i.length-1;a++)y=P(this,d[r+a],e,a),y===_&&(y=this._$AH[a]),s||=!K(y)||y!==this._$AH[a],y===l?t=l:t!==l&&(t+=(y??"")+i[a+1]),this._$AH[a]=y}s&&!n&&this.j(t)}j(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends C{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===l?void 0:t}},lt=class extends C{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}},ct=class extends C{constructor(t,e,r,n,i){super(t,e,r,n,i),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??l)===_)return;let r=this._$AH,n=t===l&&r!==l||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==l&&(r===l||n);n&&this.element.removeEventListener(this.name,this,r),i&&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)}},pt=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){P(this,t)}};var Xe=ht.litHtmlPolyfillSupport;Xe?.(N,j),(ht.litHtmlVersions??=[]).push("3.3.3");var Ht=(o,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let i=e?.renderBefore??null;r._$litPart$=n=new j(t.insertBefore(G(),i),i,void 0,e??{})}return n._$AI(o),n};var mt=globalThis,w=class extends S{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=Ht(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};w._$litElement$=true,w.finalized=true,mt.litElementHydrateSupport?.({LitElement:w});var Ze=mt.litElementPolyfillSupport;Ze?.({LitElement:w});(mt.litElementVersions??=[]).push("4.2.2");var Qe={attribute:true,type:String,converter:L,reflect:false,hasChanged:q},tr=(o=Qe,t,e)=>{let{kind:r,metadata:n}=e,i=globalThis.litPropertyMetadata.get(n);if(i===void 0&&globalThis.litPropertyMetadata.set(n,i=new Map),r==="setter"&&((o=Object.create(o)).wrapped=true),i.set(e.name,o),r==="accessor"){let{name:s}=e;return{set(d){let a=t.get.call(this);t.set.call(this,d),this.requestUpdate(s,a,o,true,d)},init(d){return d!==void 0&&this.C(s,void 0,o,d),d}}}if(r==="setter"){let{name:s}=e;return function(d){let a=this[s];t.call(this,d),this.requestUpdate(s,a,o,true,d)}}throw Error("Unsupported decorator location: "+r)};function g(o){return(t,e)=>typeof e=="object"?tr(o,t,e):((r,n,i)=>{let s=n.hasOwnProperty(i);return n.constructor.createProperty(i,r),s?Object.getOwnPropertyDescriptor(n,i):void 0})(o,t,e)}function x(o){return g({...o,state:true,attribute:false})}var zt=[{endpoint:"tarot/daily",method:"POST"},{endpoint:"tarot/cards/{id}",method:"GET"}];var R=o=>o??l;var Dt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function ft(o){if(o.lang)return o.lang;if(typeof document>"u")return;let t=o.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var er={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function gt(o,t){let e=o.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function Bt(o,t=Dt){let e=ft(o);if(!e)return;let r=gt(e,t);if(r)return r;let n=e.toLowerCase().split("-"),i=n[0];if(i==="zh"){let s=n.find(d=>d==="hans"||d==="hant")??er[n[1]??""];return s?gt(`zh-${s}`,t):void 0}return gt(i,t)}var Vt="symbols";var rr={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},xt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',qt='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Yt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',W={"fraunces-jost":{name:"Fraunces with Jost",sans:xt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:xt,display:xt},geist:{name:"Geist",sans:qt,display:qt},system:{name:"System",sans:Yt,display:Yt}};function Wt(o){let{sans:t,display:e}=W[o];return Object.keys(rr).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var Jt="1.8.0";var or=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,nr=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Xt(o,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(or.exec(e.pathname)??nr.exec(e.pathname))?.[1];if(r!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${o}/dist`:`${e.origin}${r}`}var dr={},ir="color-mix(in oklab, var(--roxy-accent) 70%, black)",sr="var(--roxy-accent)",ar="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Zt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Qt(o){return o!==void 0&&Object.hasOwn(W,o)}function te(o){let t=[];return o.brandColor&&Zt.test(o.brandColor)&&t.push(`--roxy-primary:${o.brandColor}`),o.brandAccent&&Zt.test(o.brandAccent)&&t.push(`--roxy-accent:${o.brandAccent}`,`--roxy-accent-ink:light-dark(${ir},${sr})`,`--roxy-ring:${ar}`),t.join(";")}function ee(o,t){if(Qt(t))return t;let e=o.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let n=o.shadowRoot?.firstElementChild,i=n?.localName==="style"?n:null;i?.sheet&&(i.sheet.disabled=true);let s,d,a;try{let y=globalThis.getComputedStyle(o),m=u=>y.getPropertyValue(u).trim();s=m("--roxy-font-sans"),d=m("--roxy-font-display"),a=m("--roxy-font")}finally{i?.sheet&&(i.sheet.disabled=false)}if(!(s||d))return Qt(a)?a:void 0}function re(o){let{sans:t,display:e}=W[o];return`--roxy-font:${o};--roxy-font-sans:${t};--roxy-font-display:${e}`}var oe=Xt(Jt,globalThis.document?.currentScript?.src||dr.url);function ne(o,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${o}`;if(document.getElementById(e))return;let r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=`${t}/styles/fonts/${o}.css`,document.head.append(r)}function ie(o,t=oe){Wt(o).length>0&&ne(o,t)}function se(o=oe){ne(Vt,o)}var ae='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var J="roxy-ui-tokens";function X(){if(typeof document>"u")return null;let o=document.getElementById(J);if(o)return o;let t=document.createElement("style");return t.id=J,t.textContent=ae,document.head.prepend(t),t}function de(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}function bt(o){return o?o.charAt(0).toUpperCase()+o.slice(1).toLowerCase():""}function le(o){return o.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var ce="__ROXY_UI_I18N__";function vt(){let o=globalThis,t=o[ce];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[ce]=e,e}function lr(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):o}function pe(o,t,e){return lr(cr(o,t)??t,e)}function cr(o,t){if(!o)return;let{catalogs:e}=vt(),r=o.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[de(t)]}function pr(o){if(!o)return;let{fieldLabels:t}=vt(),e=o.toLowerCase();return t[e]??t[e.split("-")[0]]}function he(o,t,e){return pr(o)?.enums[`${t}.${e}`]}function ue(o){let{listeners:t}=vt();return t.add(o),()=>{t.delete(o)}}var Z=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=ue(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var Q=class extends w{constructor(){super();this.translator=(e,r)=>this.t(e,r);new Z(this)}connectedCallback(){super.connectedCallback(),X()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&se()}fontDeclarations(e){let r=ee(this,e);return r?(ie(r),re(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?c`<style>:host{${e}}</style>`:l}t(e,r){return pe(this.effectiveLang(),e,r)}effectiveLang(){return ft(this)}};var ye=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function me(o){return o?c`<span class="roxy-glyph" aria-hidden="true">${o}</span>`:l}var ge=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var hr=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,tt=[hr,ge,ye];var ur="__cols",yr="__rows";function mr(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function et(o){if(Array.isArray(o)){let i=false,s=o.map(d=>{let a=et(d);return a!==d&&(i=true),a});return i?s:o}if(!mr(o))return o;let t=o[ur],e=o[yr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(o).length===2)return e.map(i=>{let s={};return t.forEach((d,a)=>{s[d]=et(i[a])}),s});let r=false,n={};for(let[i,s]of Object.entries(o)){let d=et(s);d!==s&&(r=true),n[i]=d}return r?n:o}function fe(o){return et(o)}function xe(o,t){return o.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,n])=>t[r]===n))??o[0]}var gr="pk_live_YOUR_KEY",be={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function ve(o){if(o)return o===gr?be.sample:o.startsWith("pk_")?void 0:be.secret}function Se(o,t,e={}){e.warn&&console.warn(t.message),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var Ee="https://roxyapi.com/api/v2";async function fr(o){try{let t=await o.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${o.status})`,issues:null,worded:false}}var we={fromAttribute:o=>{if(o!=null){try{let t=JSON.parse(o);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},O=class extends Error{constructor(e,r=null,n=true,i,s){super(e);this.issues=r;this.worded=n;this.status=i;this.code=s}};function $e(o){return o.submitUrl?void 0:ve(o.publishableKey)}async function St(o,t,e){let r=$e(o);if(r)throw new O(r.message);let n=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:xr(t,o.submitContext),signal:e}):await br(o,t,e);if(!n.ok){let i=await fr(n);throw new O(i.message,i.issues,i.worded,n.status,i.code)}return await n.json()}function xr(o,t){return JSON.stringify(t?{...o,context:t}:o)}function br(o,t,e){let r=new URL(`${o.baseUrl??Ee}${t.path}`,document.baseURI);for(let[i,s]of Object.entries(t.query??{}))s!=null&&r.searchParams.set(i,String(s));let n={Accept:"application/json"};return o.publishableKey&&(n["X-API-Key"]=o.publishableKey),t.body!=null&&(n["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:n,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var rt=class{constructor(t){this.baseUrl=Ee;this.worded=true;this.failure={};this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=true,this.failure={};let e=$e(this);if(e){this.host.error=e.message,Se(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let n=await St(this,t,r.signal);if(r.signal.aborted)return;this.host.data=n}catch(n){if(r.signal.aborted||n?.name==="AbortError")return;n instanceof O&&(this.host.issues=n.issues,this.failure={status:n.status,code:n.code}),this.worded=n instanceof O&&n.worded,this.host.error=n instanceof Error?n.message:String(n)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=false)}}};function Te(o,t,e,r=[]){let n={...e},i=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(y,m)=>{let u=n[m];return delete n[m],encodeURIComponent(String(u??""))}),s=new Set(r),d={},a={};for(let[y,m]of Object.entries(n))m===void 0||m===""||(t==="GET"||s.has(y)?d[y]=m:a[y]=m);return{path:i,method:t,query:d,body:t==="POST"?a:void 0}}function ke(){return c`<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 Ae=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var _e=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function Re(o,t,e,r=false){let n=o.filter(i=>!!i.body);return n.length===0?l:c`<section class="block" part="section readings"><h3>${e}</h3>${n.map((i,s)=>c`<details class="interp-card" part="reading" name="${t}" ?open="${s===0&&!r}"><summary><span class="interp-lead">${me(i.glyph)} ${i.label}</span> ${ke()} ${i.aside?c`<span class="interp-aside"><small>${i.aside}</small></span>`:l}</summary><div class="interp-body"><p>${i.body}</p>${i.extra??l}</div></details>`)}</section>`}var vr="roxy-data";function Sr(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var ot=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(Sr(t)&&t.classList.contains(vr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var h=class extends Q{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,n=this.listRows();if(!(!e||!r||!n)){this.moreLoading=true,this.moreError=null;try{let i=await St(this.fetcher,{...e,query:{...e.query,offset:n.length}});if(this.lastRequest!==e)return;let s=i[r];this.data={...this.data,...i,[r]:[...n,...Array.isArray(s)?s:[]]}}catch(i){this.lastRequest===e&&(this.moreError=i instanceof Error?i.message:String(i))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let n=e.detail;this.lastValues=n.values,this.sticky=!!n.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(n.values),this.fetchFresh(Te(r.endpoint,r.method,{...n.values,...this.ownRequest()},n.queryKeys??[]))};new ot(this),this.fetcher=new rt(this)}static{this.styles=[tt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=fe(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:xe(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return c`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:true,composed:true})),customElements.get("roxy-data")?c`<roxy-data .data="${e}" lang="${R(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^[a-z][a-z0-9-]*$/.test(i)),r=[te(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return l;let n=(r?`:host{${r}}`:"")+e.map(i=>`[part~="${i}"],roxy-endpoint-form::part(${i}){display:none!important}`).join("");return c`<style>${n}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,n,i=false){return this.hideReadings?l:Re(e,r,this.t(n??"Reading"),i)}renderResult(e){let r=c`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?c`${r}${this.renderAttribution()}`:r}renderWithForm(e){return c`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?l:this.renderErrorBanner(this.error):this.data==null?l:this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?l:e.length>=r?l:c`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?c`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:l}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let n=this.effectiveLang();n&&r.setAttribute("lang",n),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:Bt(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return c`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(l):this.renderEmpty()}renderForm(){let e=this.selfFetch();return c`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${R(this.specUrl)}" publishable-key="${R(this.publishableKey)}" location-url="${R(this.locationUrl)}" submit-label="${R(this.submitLabel)}" lang="${R(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return c`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return c`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let n=this.renderErrorBanner(e);return r?c`${n}${this.renderForm()}`:n}renderErrorBanner(e){return c`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};p([g({attribute:false})],h.prototype,"data",2),p([g({type:String,attribute:"data-endpoint"})],h.prototype,"endpoint",2),p([g({type:String})],h.prototype,"method",2),p([g({type:String,attribute:"publishable-key"})],h.prototype,"publishableKey",2),p([g({type:String,attribute:"base-url"})],h.prototype,"baseUrl",2),p([g({type:String,attribute:"spec-url"})],h.prototype,"specUrl",2),p([g({type:String,attribute:"submit-url"})],h.prototype,"submitUrl",2),p([g({attribute:"submit-context",converter:we})],h.prototype,"submitContext",2),p([g({type:String,attribute:"location-url"})],h.prototype,"locationUrl",2),p([g({type:Boolean})],h.prototype,"remember",2),p([g({type:Boolean,attribute:"hide-readings",reflect:true})],h.prototype,"hideReadings",2),p([g({type:String,attribute:"hide-sections",reflect:true})],h.prototype,"hideSections",2),p([g({type:String,attribute:"brand-color"})],h.prototype,"brandColor",2),p([g({type:String,attribute:"brand-accent"})],h.prototype,"brandAccent",2),p([g({type:String})],h.prototype,"font",2),p([g({type:String})],h.prototype,"hemisphere",2),p([g({type:String,attribute:"submit-label"})],h.prototype,"submitLabel",2),p([g({type:String,attribute:"error-message"})],h.prototype,"errorMessage",2),p([g({type:String})],h.prototype,"attribution",2),p([x()],h.prototype,"loading",2),p([x()],h.prototype,"error",2),p([x()],h.prototype,"issues",2),p([x()],h.prototype,"selfFetched",2),p([x()],h.prototype,"editing",2),p([x()],h.prototype,"sticky",2),p([x()],h.prototype,"openedRow",2),p([x()],h.prototype,"openedRowId",2),p([x()],h.prototype,"moreLoading",2),p([x()],h.prototype,"moreError",2);var Pe=o=>t=>{customElements.get(o)||customElements.define(o,t)};var Ce=f`.roxy-tablist{gap:var(--roxy-space-xs);box-shadow:inset 0 calc(var(--roxy-line-thick) * -1) 0 var(--roxy-border);scrollbar-width:thin;min-width:0;display:flex;overflow-x:auto}.roxy-tab{padding:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);border:none;border-bottom:var(--roxy-line-thick) solid transparent;cursor:pointer;color:var(--roxy-muted);transition:color var(--roxy-motion-duration) var(--roxy-motion-easing);background:0 0;flex-shrink:0}.roxy-tab[aria-selected=true]{color:var(--roxy-accent-ink);border-bottom-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}.roxy-tab:hover:not([aria-selected=true]){color:var(--roxy-fg)}.roxy-tab:focus-visible{outline-offset:calc(var(--roxy-line-thick) * -1);border-radius:var(--roxy-radius-sm)}`;function Oe(o){let{items:t,active:e,onSelect:r,label:n,idPrefix:i,controls:s=false}=o;return c`<div class="roxy-tablist" part="tablist" role="tablist" aria-label="${n}" @keydown="${a=>{if(a.key!=="ArrowRight"&&a.key!=="ArrowLeft")return;a.preventDefault();let y=t.findIndex(v=>v.id===e);if(y===-1)return;let m=a.key==="ArrowRight"?1:-1,u=t[(y+m+t.length)%t.length];if(!u)return;r(u.id);let b=a.currentTarget.getRootNode();requestAnimationFrame(()=>{b.querySelector(`#${i}-tab-${u.id}`)?.focus()})}}">${t.map(a=>c`<button type="button" class="roxy-tab" part="tab" role="tab" id="${i}-tab-${a.id}" aria-selected="${e===a.id?"true":"false"}" aria-controls="${s?`${i}-panel-${a.id}`:l}" tabindex="${e===a.id?"0":"-1"}" @click="${()=>r(a.id)}">${a.label}</button>`)}</div>${s?t.filter(a=>a.id!==e).map(a=>c`<div role="tabpanel" id="${i}-panel-${a.id}" aria-labelledby="${i}-tab-${a.id}" hidden></div>`):l}`}function Et(o,t,e,r){return he(o,t,e)??r??le(e)}function wt(o,t){return Et(o,"arcana",t,`${bt(t)} Arcana`)}function $t(o,t){return Et(o,"suit",t,bt(t))}var Fe=[["love","Love"],["career","Career"],["finances","Finance"],["health","Health"],["spirituality","Spiritual"]],Ue=f`.card-art{aspect-ratio:600/1072}`;var $=class extends h{constructor(){super(...arguments);this.orientation="upright"}renderData(e){return"card"in e?this.renderDailyCard(e):this.renderFullCard(e)}renderDailyCard(e){let r=e.card,n=!!r.reversed,i=r.keywords??[],s=this.effectiveLang(),d=[r.arcana?wt(s,r.arcana):"",r.suit?$t(s,r.suit):""].filter(Boolean).join(" \xB7 "),a=!this.hideReadings;return c`<article class="card" part="card" aria-label="${r.name??this.t("Tarot card")}">${this.renderImage(r.imageUrl,r.name,n)}<div part="header"><div class="meta roxy-label">${d?`${d} \xB7 `:""}<span class="drawn">${n?this.t("drawn reversed"):this.t("drawn upright")}</span></div><h2>${r.name??this.t("Tarot card")}</h2>${e.dailyMessage&&a?c`<p class="message">${e.dailyMessage}</p>`:l} ${r.meaning&&a?c`<p class="reading">${r.meaning}</p>`:l} ${i.length>0&&a?c`<ul class="roxy-chips">${i.map(y=>c`<li>${y}</li>`)}</ul>`:l} ${this.renderGuidance(r,"tarot-daily-guidance")}</div></article>`}renderFullCard(e){let r=this.orientation==="reversed",n=r?e.reversed:e.upright,i=(r?e.keywords?.reversed:e.keywords?.upright)??n?.keywords??[],s=!this.hideReadings;return c`<article class="card" part="card" aria-label="${e.name??this.t("Tarot card")}">${this.renderImage(e.imageUrl,e.name,r)}<div part="header"><div class="meta roxy-label">${[e.arcana?wt(this.effectiveLang(),e.arcana):"",e.suit?$t(this.effectiveLang(),e.suit):"",e.number!==void 0&&e.number!==null?this.t("no. {{number}}",{number:e.number}):""].filter(Boolean).join(" \xB7 ")}</div><h2>${e.name??this.t("Tarot card")}</h2>${Oe({items:[{id:"upright",label:this.t("Upright")},{id:"reversed",label:this.t("Reversed")}],active:this.orientation,onSelect:d=>{this.orientation=d},label:this.t("Card orientation"),idPrefix:"tarot",controls:true})}<div id="tarot-panel-${this.orientation}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="tarot-tab-${this.orientation}">${n?.description&&s?c`<p class="reading">${n.description}</p>`:l} ${i.length>0&&s?c`<ul class="roxy-chips">${i.map(d=>c`<li>${d}</li>`)}</ul>`:l} ${this.renderGuidance(n,`tarot-${this.orientation}-guidance`)}</div></div></article>`}renderImage(e,r,n){let i=`image ${n?"reversed":""}`;return e?c`<img class="${i}" part="chart" src="${e}" alt="${r??this.t("Tarot card")}">`:c`<div class="${i} card-art" part="chart" style="display:flex;align-items:center;justify-content:center;color:var(--roxy-muted)">${r??"?"}</div>`}renderGuidance(e,r){if(!e)return l;let n=Fe.map(([i,s])=>({label:this.t(s),body:e[i]??""}));return this.renderInterpretation(n,r,"Guidance")}};$.endpoints=zt,$.styles=[tt,Ue,Ae,_e,Ce,f`.card{align-items:start;gap:var(--roxy-space-lg);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,6lh) minmax(0,1fr);display:grid}@container (width<=480px){.card{grid-template-columns:minmax(0,1fr)}}h2,p{margin:0}.image{border-radius:var(--roxy-radius-md);background:var(--roxy-border);width:100%;height:auto;transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.image.reversed{transform:rotate(180deg)}.meta{margin-block-end:var(--roxy-space-sm)}.drawn{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.message{margin-block:var(--roxy-space-sm) var(--roxy-space-md)}.reading{white-space:pre-line;margin-block-end:var(--roxy-space-md)}.roxy-tablist{margin-block:var(--roxy-space-sm)}.roxy-chips{margin-block-start:var(--roxy-space-sm)}`],p([x()],$.prototype,"orientation",2),$=p([Pe("roxy-tarot-card")],$);return Ne(Er)})();
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Lt=/'/g,It=/"/g,jt=/^(?:script|style|textarea|title)$/i,yt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),c=yt(1),_r=yt(2),Rr=yt(3),_=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),Gt=new WeakMap,k=A.createTreeWalker(A,129);function Mt(o,t){if(!ut(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ot!==void 0?Ot.createHTML(t):t}var Je=(o,t)=>{let e=o.length-1,r=[],n,i=t===2?"<svg>":t===3?"<math>":"",s=I;for(let d=0;d<e;d++){let a=o[d],y,m,u=-1,b=0;for(;b<a.length&&(s.lastIndex=b,m=s.exec(a),m!==null);)b=s.lastIndex,s===I?m[1]==="!--"?s=Ft:m[1]!==void 0?s=Ut:m[2]!==void 0?(jt.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=T):m[3]!==void 0&&(s=T):s===T?m[0]===">"?(s=n??I,u=-1):m[1]===void 0?u=-2:(u=s.lastIndex-m[2].length,y=m[1],s=m[3]===void 0?T:m[3]==='"'?It:Lt):s===It||s===Lt?s=T:s===Ft||s===Ut?s=I:(s=T,n=void 0);let v=s===T&&o[d+1].startsWith("/>")?" ":"";i+=s===I?a+Ve:u>=0?(r.push(y),a.slice(0,u)+Kt+a.slice(u)+E+v):a+E+(u===-2?d:v)}return[Mt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),r]},N=class o{constructor({strings:t,_$litType$:e},r){let n;this.parts=[];let i=0,s=0,d=t.length-1,a=this.parts,[y,m]=Je(t,e);if(this.el=o.createElement(y,r),k.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=k.nextNode())!==null&&a.length<d;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(Kt)){let b=m[s++],v=n.getAttribute(u).split(E),M=/([.?@])?(.*)/.exec(b);a.push({type:1,index:i,name:M[2],strings:v,ctor:M[1]==="."?dt:M[1]==="?"?lt:M[1]==="@"?ct:C}),n.removeAttribute(u)}else u.startsWith(E)&&(a.push({type:6,index:i}),n.removeAttribute(u));if(jt.test(n.tagName)){let u=n.textContent.split(E),b=u.length-1;if(b>0){n.textContent=Y?Y.emptyScript:"";for(let v=0;v<b;v++)n.append(u[v],G()),k.nextNode(),a.push({type:2,index:++i});n.append(u[b],G())}}}else if(n.nodeType===8)if(n.data===Nt)a.push({type:2,index:i});else{let u=-1;for(;(u=n.data.indexOf(E,u+1))!==-1;)a.push({type:7,index:i}),u+=E.length-1}i++}}static createElement(t,e){let r=A.createElement("template");return r.innerHTML=t,r}};function P(o,t,e=o,r){if(t===_)return t;let n=r!==void 0?e._$Co?.[r]:e._$Cl,i=K(t)?void 0:t._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(false),i===void 0?n=void 0:(n=new i(o),n._$AT(o,e,r)),r!==void 0?(e._$Co??=[])[r]=n:e._$Cl=n),n!==void 0&&(t=P(o,n._$AS(o,t.values),n,r)),t}var at=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,n=(t?.creationScope??A).importNode(e,true);k.currentNode=n;let i=k.nextNode(),s=0,d=0,a=r[0];for(;a!==void 0;){if(s===a.index){let y;a.type===2?y=new j(i,i.nextSibling,this,t):a.type===1?y=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(y=new pt(i,this,t)),this._$AV.push(y),a=r[++d]}s!==a?.index&&(i=k.nextNode(),s++)}return k.currentNode=A,n}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++}},j=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,n){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??true}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=P(this,t,e),K(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==_&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):We(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!==l&&K(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:r}=t,n=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=N.createElement(Mt(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(e);else{let i=new at(n,this),s=i.u(this.options);i.p(e),this.T(s),this._$AH=i}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new N(t)),e}k(t){ut(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,r,n=0;for(let i of t)n===e.length?e.push(r=new o(this.O(G()),this.O(G()),this,this.options)):r=e[n],r._$AI(i),n++;n<e.length&&(this._$AR(r&&r._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(false,true,e);t!==this._$AB;){let r=Ct(t).nextSibling;Ct(t).remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},C=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,n,i){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=l}_$AI(t,e=this,r,n){let i=this.strings,s=false;if(i===void 0)t=P(this,t,e,0),s=!K(t)||t!==this._$AH&&t!==_,s&&(this._$AH=t);else{let d=t,a,y;for(t=i[0],a=0;a<i.length-1;a++)y=P(this,d[r+a],e,a),y===_&&(y=this._$AH[a]),s||=!K(y)||y!==this._$AH[a],y===l?t=l:t!==l&&(t+=(y??"")+i[a+1]),this._$AH[a]=y}s&&!n&&this.j(t)}j(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends C{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===l?void 0:t}},lt=class extends C{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}},ct=class extends C{constructor(t,e,r,n,i){super(t,e,r,n,i),this.type=5}_$AI(t,e=this){if((t=P(this,t,e,0)??l)===_)return;let r=this._$AH,n=t===l&&r!==l||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,i=t!==l&&(r===l||n);n&&this.element.removeEventListener(this.name,this,r),i&&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)}},pt=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){P(this,t)}};var Xe=ht.litHtmlPolyfillSupport;Xe?.(N,j),(ht.litHtmlVersions??=[]).push("3.3.3");var Ht=(o,t,e)=>{let r=e?.renderBefore??t,n=r._$litPart$;if(n===void 0){let i=e?.renderBefore??null;r._$litPart$=n=new j(t.insertBefore(G(),i),i,void 0,e??{})}return n._$AI(o),n};var mt=globalThis,w=class extends S{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=Ht(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false)}render(){return _}};w._$litElement$=true,w.finalized=true,mt.litElementHydrateSupport?.({LitElement:w});var Ze=mt.litElementPolyfillSupport;Ze?.({LitElement:w});(mt.litElementVersions??=[]).push("4.2.2");var Qe={attribute:true,type:String,converter:L,reflect:false,hasChanged:q},tr=(o=Qe,t,e)=>{let{kind:r,metadata:n}=e,i=globalThis.litPropertyMetadata.get(n);if(i===void 0&&globalThis.litPropertyMetadata.set(n,i=new Map),r==="setter"&&((o=Object.create(o)).wrapped=true),i.set(e.name,o),r==="accessor"){let{name:s}=e;return{set(d){let a=t.get.call(this);t.set.call(this,d),this.requestUpdate(s,a,o,true,d)},init(d){return d!==void 0&&this.C(s,void 0,o,d),d}}}if(r==="setter"){let{name:s}=e;return function(d){let a=this[s];t.call(this,d),this.requestUpdate(s,a,o,true,d)}}throw Error("Unsupported decorator location: "+r)};function g(o){return(t,e)=>typeof e=="object"?tr(o,t,e):((r,n,i)=>{let s=n.hasOwnProperty(i);return n.constructor.createProperty(i,r),s?Object.getOwnPropertyDescriptor(n,i):void 0})(o,t,e)}function x(o){return g({...o,state:true,attribute:false})}var zt=[{endpoint:"tarot/daily",method:"POST"},{endpoint:"tarot/cards/{id}",method:"GET"}];var R=o=>o??l;var Dt=["de","en","es","fr","hi","pt","ru","tr","zh-Hans","zh-Hant"];function ft(o){if(o.lang)return o.lang;if(typeof document>"u")return;let t=o.closest?.("[lang]")?.getAttribute("lang");return t||document.documentElement.lang||void 0}var er={tw:"hant",hk:"hant",mo:"hant",cn:"hans",sg:"hans",my:"hans"};function gt(o,t){let e=o.toLowerCase();return t.find(r=>r.toLowerCase()===e)}function Bt(o,t=Dt){let e=ft(o);if(!e)return;let r=gt(e,t);if(r)return r;let n=e.toLowerCase().split("-"),i=n[0];if(i==="zh"){let s=n.find(d=>d==="hans"||d==="hant")??er[n[1]??""];return s?gt(`zh-${s}`,t):void 0}return gt(i,t)}var Vt="symbols";var rr={Fraunces:["latin","latin-ext"],Jost:["latin","latin-ext","cyrillic"],Geist:["latin","latin-ext","cyrillic"]},xt='"Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',qt='"Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',Yt='system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',W={"fraunces-jost":{name:"Fraunces with Jost",sans:xt,display:'"Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif'},jost:{name:"Jost",sans:xt,display:xt},geist:{name:"Geist",sans:qt,display:qt},system:{name:"System",sans:Yt,display:Yt}};function Wt(o){let{sans:t,display:e}=W[o];return Object.keys(rr).filter(r=>`${t} ${e}`.includes(`"${r}"`))}var Jt="1.9.0";var or=/^(.*)\/cdn\/(?:roxy-ui|components\/[\w-]+)\.js$/,nr=/^(.*\/dist)\/(?:index|components\/[\w-]+)\.js$/;function Xt(o,t){if(!t)return;let e=new URL(t);if(e.protocol!=="https:"&&e.protocol!=="http:")return;let r=(or.exec(e.pathname)??nr.exec(e.pathname))?.[1];if(r!==void 0)return e.hostname==="cdn.jsdelivr.net"?`https://cdn.jsdelivr.net/npm/@roxyapi/ui@${o}/dist`:`${e.origin}${r}`}var dr={},ir="color-mix(in oklab, var(--roxy-accent) 70%, black)",sr="var(--roxy-accent)",ar="color-mix(in srgb, var(--roxy-accent) 40%, transparent)",Zt=/^#(?:[\da-f]{3}|[\da-f]{6})$/i;function Qt(o){return o!==void 0&&Object.hasOwn(W,o)}function te(o){let t=[];return o.brandColor&&Zt.test(o.brandColor)&&t.push(`--roxy-primary:${o.brandColor}`),o.brandAccent&&Zt.test(o.brandAccent)&&t.push(`--roxy-accent:${o.brandAccent}`,`--roxy-accent-ink:light-dark(${ir},${sr})`,`--roxy-ring:${ar}`),t.join(";")}function ee(o,t){if(Qt(t))return t;let e=o.getRootNode();if(("host"in e?e.host:null)?.localName.startsWith("roxy-")||!globalThis.getComputedStyle)return;let n=o.shadowRoot?.firstElementChild,i=n?.localName==="style"?n:null;i?.sheet&&(i.sheet.disabled=true);let s,d,a;try{let y=globalThis.getComputedStyle(o),m=u=>y.getPropertyValue(u).trim();s=m("--roxy-font-sans"),d=m("--roxy-font-display"),a=m("--roxy-font")}finally{i?.sheet&&(i.sheet.disabled=false)}if(!(s||d))return Qt(a)?a:void 0}function re(o){let{sans:t,display:e}=W[o];return`--roxy-font:${o};--roxy-font-sans:${t};--roxy-font-display:${e}`}var oe=Xt(Jt,globalThis.document?.currentScript?.src||dr.url);function ne(o,t){if(typeof document>"u"||t===void 0)return;let e=`roxy-ui-font-${o}`;if(document.getElementById(e))return;let r=document.createElement("link");r.id=e,r.rel="stylesheet",r.href=`${t}/styles/fonts/${o}.css`,document.head.append(r)}function ie(o,t=oe){Wt(o).length>0&&ne(o,t)}function se(o=oe){ne(Vt,o)}var ae='@layer roxy.tokens,roxy.theme;@layer roxy.tokens{:where(:root,:host){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-font: initial;--roxy-font-sans: initial;--roxy-font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;--roxy-font-symbol: "Roxy Symbols", ui-sans-serif, system-ui, sans-serif;--roxy-text-base: 1rem;--roxy-text-scale: 1.15;--roxy-weight-normal: 400;--roxy-weight-bold: 600;--roxy-leading-tight: 1.25;--roxy-leading-normal: 1.5;--roxy-tracking-tight: -0.01em;--roxy-tracking-normal: 0em;--roxy-space-unit: 0.25rem;--roxy-radius: 6px;--roxy-motion-duration: 200ms;--roxy-motion-easing: cubic-bezier(0.4, 0, 0.2, 1)}:where(:root,:host,[data-theme],.light,.dark){--roxy-surface: var(--roxy-bg);--roxy-primary: var(--roxy-fg);--roxy-secondary: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg));--roxy-muted: color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg));--roxy-border: color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg));--roxy-ring: color-mix(in srgb, var(--roxy-accent) 40%, transparent);--roxy-heat: var(--roxy-danger);--roxy-moon-lit: color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf);--roxy-moon-mare: color-mix( in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade) );--roxy-moon-rim: color-mix( in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg) );--roxy-moon-eclipse: color-mix( in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade) );--roxy-moon-corona: color-mix( in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit) );--roxy-font-display: var(--roxy-font-sans);--roxy-text-sm: calc(var(--roxy-text-base) / var(--roxy-text-scale));--roxy-text-xs: calc(var(--roxy-text-sm) / var(--roxy-text-scale));--roxy-text-lg: calc(var(--roxy-text-base) * var(--roxy-text-scale));--roxy-text-xl: calc( var(--roxy-text-lg) * var(--roxy-text-scale) * var(--roxy-text-scale) );--roxy-space-xs: var(--roxy-space-unit);--roxy-space-sm: calc(var(--roxy-space-unit) * 2);--roxy-space-md: calc(var(--roxy-space-unit) * 4);--roxy-space-lg: calc(var(--roxy-space-unit) * 6);--roxy-space-xl: calc(var(--roxy-space-unit) * 10);--roxy-line-thick: calc(var(--roxy-space-unit) / 2);--roxy-touch: calc(var(--roxy-space-unit) * 11);--roxy-radius-sm: calc(var(--roxy-radius) / 2);--roxy-radius-md: var(--roxy-radius);--roxy-radius-lg: calc(var(--roxy-radius) * 5 / 3);--roxy-radius-full: 9999px;--roxy-shadow-sm: none;--roxy-shadow-md: 0 4px 12px color-mix(in srgb, black 10%, transparent);--roxy-shadow-lg: 0 12px 32px color-mix(in srgb, black 18%, transparent)}@media(prefers-color-scheme:dark){:where(:root,:host){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix( in oklab, var(--roxy-fg) 10%, var(--roxy-bg) )}}:where(:root[data-theme=light],[data-theme=light],:root.light,.light,:host([data-theme="light"])){color-scheme:light;--roxy-bg: #ffffff;--roxy-fg: #0a0a0a;--roxy-accent: #4a6297;--roxy-success: #16a34a;--roxy-warning: #ea580c;--roxy-danger: #dc2626;--roxy-info: #0284c7;--roxy-accent-ink: color-mix(in oklab, var(--roxy-accent) 70%, black);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, black);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, black);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, black);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, black);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))}:where(:root[data-theme=dark],[data-theme=dark],:root.dark,.dark,:host([data-theme="dark"])){color-scheme:dark;--roxy-bg: #0a0a0a;--roxy-fg: #fafafa;--roxy-accent: #92aade;--roxy-success: #22c55e;--roxy-warning: #fb923c;--roxy-danger: #ef4444;--roxy-info: #38bdf8;--roxy-accent-ink: var(--roxy-accent);--roxy-success-fg: color-mix(in oklab, var(--roxy-success) 70%, white);--roxy-warning-fg: color-mix(in oklab, var(--roxy-warning) 70%, white);--roxy-danger-fg: color-mix(in oklab, var(--roxy-danger) 70%, white);--roxy-info-fg: color-mix(in oklab, var(--roxy-info) 70%, white);--roxy-moon-shade: color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))}@media(prefers-reduced-motion:reduce){:where(:root,:host){--roxy-motion-duration: 0ms}}}';var J="roxy-ui-tokens";function X(){if(typeof document>"u")return null;let o=document.getElementById(J);if(o)return o;let t=document.createElement("style");return t.id=J,t.textContent=ae,document.head.prepend(t),t}function de(o){return o.toLowerCase().replace(/[\s_-]+/g," ").trim()}function bt(o){return o?o.charAt(0).toUpperCase()+o.slice(1).toLowerCase():""}function le(o){return o.replace(/[_-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([a-z])([0-9])/g,"$1 $2").replace(/^\w/,t=>t.toUpperCase())}var ce="__ROXY_UI_I18N__";function vt(){let o=globalThis,t=o[ce];if(t)return t;let e={catalogs:{},fieldLabels:{},requested:new Set,listeners:new Set};return o[ce]=e,e}function lr(o,t){return t?o.replace(/\{\{(\w+)\}\}/g,(e,r)=>r in t?String(t[r]??""):e):o}function pe(o,t,e){return lr(cr(o,t)??t,e)}function cr(o,t){if(!o)return;let{catalogs:e}=vt(),r=o.toLowerCase();return(e[r]??e[r.split("-")[0]])?.[de(t)]}function pr(o){if(!o)return;let{fieldLabels:t}=vt(),e=o.toLowerCase();return t[e]??t[e.split("-")[0]]}function he(o,t,e){return pr(o)?.enums[`${t}.${e}`]}function ue(o){let{listeners:t}=vt();return t.add(o),()=>{t.delete(o)}}var Z=class{constructor(t){this.host=t,t.addController(this)}hostConnected(){this.unsubscribe=ue(()=>this.host.requestUpdate())}hostDisconnected(){this.unsubscribe?.(),this.unsubscribe=void 0}};var Q=class extends w{constructor(){super();this.translator=(e,r)=>this.t(e,r);new Z(this)}connectedCallback(){super.connectedCallback(),X()}updated(e){super.updated(e),this.renderRoot.querySelector(".roxy-glyph")&&se()}fontDeclarations(e){let r=ee(this,e);return r?(ie(r),re(r)):""}renderFontStyle(){let e=this.fontDeclarations();return e?c`<style>:host{${e}}</style>`:l}t(e,r){return pe(this.effectiveLang(),e,r)}effectiveLang(){return ft(this)}};var ye=f`:where(.roxy-glyph){font-family:var(--roxy-font-symbol)}`;function me(o){return o?c`<span class="roxy-glyph" aria-hidden="true">${o}</span>`:l}var ge=f`:where([part~=card]){background:var(--roxy-surface);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-lg);box-shadow:var(--roxy-shadow-sm)}:where([part~=card] [part~=card],[part~=card] [part~=reading],[part~=card] .roxy-card){border:0;border-block-start:1px solid var(--roxy-border);box-shadow:none;background:0 0;border-radius:0;padding-inline:0}:host([bare]) [part~=card]{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}:where(h1,h2){color:var(--roxy-fg);font-size:var(--roxy-text-lg);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-tight);text-wrap:balance}:where(h3,h4,h5,h6){color:var(--roxy-fg);font-size:var(--roxy-text-base);font-weight:var(--roxy-weight-bold);line-height:var(--roxy-leading-tight);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-label,th,dt){color:var(--roxy-muted);font-size:var(--roxy-text-sm);font-weight:var(--roxy-weight-normal);letter-spacing:var(--roxy-tracking-normal);text-transform:none}:where(.roxy-chips){gap:var(--roxy-space-xs);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}:where(.roxy-chip,.roxy-chips>li){align-items:center;gap:var(--roxy-space-xs);padding:calc(var(--roxy-space-unit) / 2) var(--roxy-space-sm);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-sm);color:var(--roxy-secondary);font-size:var(--roxy-text-xs);line-height:var(--roxy-leading-tight);overflow-wrap:anywhere;background:0 0;max-inline-size:100%;display:inline-flex}:where(.roxy-chip[data-tone=success],.roxy-chips>li[data-tone=success]){color:var(--roxy-success-fg)}:where(.roxy-chip[data-tone=warning],.roxy-chips>li[data-tone=warning]){color:var(--roxy-warning-fg)}:where(.roxy-chip[data-tone=danger],.roxy-chips>li[data-tone=danger]){color:var(--roxy-danger-fg)}:where(.roxy-chip[data-tone=info],.roxy-chips>li[data-tone=info]){color:var(--roxy-info-fg)}:where(table){border-collapse:collapse;font-size:var(--roxy-text-sm);font-variant-numeric:tabular-nums}:where(th,td){padding:var(--roxy-space-xs) var(--roxy-space-sm);border-block-end:1px solid var(--roxy-border);text-align:start;vertical-align:top}:where(summary){cursor:pointer}:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}:where(summary:focus-visible){border-radius:var(--roxy-radius-sm)}:where(input,select,textarea,button){font:inherit}:where(input:not([type=checkbox],[type=radio],[type=range]),select,textarea){padding:var(--roxy-space-xs) var(--roxy-space-sm);background:var(--roxy-bg);color:var(--roxy-fg);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md)}`;var hr=f`:host{--roxy-label-col:minmax(0, 25%);--_mask:var(--roxy-surface);font-family:var(--roxy-font-sans);color:var(--roxy-fg);font-size:var(--roxy-text-base);line-height:var(--roxy-leading-normal);letter-spacing:var(--roxy-tracking-normal);word-spacing:normal;animation:roxy-fade-in var(--roxy-motion-duration) var(--roxy-motion-easing) both;background:0 0;display:block;container-type:inline-size}:host([bare]){--_mask:var(--roxy-bg)}:host(:focus){outline:none!important}:host([hidden]){display:none}:host([bare]){--roxy-surface:transparent;--roxy-shadow-sm:none;--roxy-shadow-md:none}*,:before,:after{box-sizing:border-box}h1,h2,h3,h4{font-family:var(--roxy-font-display)}@keyframes roxy-fade-in{0%{transform:translateY(calc(var(--roxy-space-unit) / 2))}to{transform:translateY(0)}}@media (prefers-reduced-motion:reduce){:host{animation:none}}.roxy-skeleton{background:linear-gradient(90deg, var(--roxy-border) 0%, color-mix(in srgb, var(--roxy-border) 60%, transparent) 50%, var(--roxy-border) 100%);border-radius:var(--roxy-radius-md);background-size:200% 100%;animation:1.4s ease-in-out infinite roxy-shimmer}@keyframes roxy-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.roxy-skeleton{animation:none}}.roxy-sr-only{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:0;padding:0;position:absolute;overflow:hidden}.roxy-empty{padding:var(--roxy-space-lg);color:var(--roxy-muted);text-align:center;font-size:var(--roxy-text-sm)}.roxy-error{gap:var(--roxy-space-sm);padding:var(--roxy-space-lg);background:var(--roxy-surface);border:1px solid var(--roxy-danger);border-radius:var(--roxy-radius-md);color:var(--roxy-danger-fg);font-size:var(--roxy-text-sm);justify-items:start;display:grid}:host(:focus-within) .roxy-card{outline:var(--roxy-line-thick) solid var(--roxy-ring);outline-offset:var(--roxy-line-thick)}.roxy-attribution{margin-top:var(--roxy-space-sm);font-size:var(--roxy-text-xs);color:var(--roxy-muted);text-align:right}.roxy-attribution a{color:inherit;text-decoration:none}.roxy-attribution a:hover{color:var(--roxy-accent-ink);text-decoration:underline}.roxy-edit-bar{margin-bottom:var(--roxy-space-sm);justify-content:flex-end;display:flex}.roxy-edit{padding:var(--roxy-space-xs) var(--roxy-space-md);border:1px solid var(--roxy-border);border-radius:var(--roxy-radius-md);color:var(--roxy-fg);font-family:inherit;font-size:var(--roxy-text-sm);cursor:pointer;background:0 0}.roxy-edit:hover{border-color:var(--roxy-accent);color:var(--roxy-accent-ink)}.roxy-edit:disabled{cursor:progress;color:var(--roxy-muted)}roxy-endpoint-form+*{margin-top:var(--roxy-space-md)}.roxy-more{justify-items:center;gap:var(--roxy-space-sm);margin-top:var(--roxy-space-md);display:grid}.roxy-more .roxy-edit{min-height:var(--roxy-touch)}:host{font-variant-emoji:text}`,tt=[hr,ge,ye];var ur="__cols",yr="__rows";function mr(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function et(o){if(Array.isArray(o)){let i=false,s=o.map(d=>{let a=et(d);return a!==d&&(i=true),a});return i?s:o}if(!mr(o))return o;let t=o[ur],e=o[yr];if(Array.isArray(t)&&Array.isArray(e)&&Object.keys(o).length===2)return e.map(i=>{let s={};return t.forEach((d,a)=>{s[d]=et(i[a])}),s});let r=false,n={};for(let[i,s]of Object.entries(o)){let d=et(s);d!==s&&(r=true),n[i]=d}return r?n:o}function fe(o){return et(o)}function xe(o,t){return o.find(e=>e.attrs&&Object.entries(e.attrs).every(([r,n])=>t[r]===n))??o[0]}var gr="pk_live_YOUR_KEY",be={secret:{reason:"possible-secret-key",message:"Client-side components accept a pk_ publishable key only. Use a publishable key with an origin allowlist, or render server-side."},sample:{reason:"sample-key",message:"Replace the sample key with your own publishable key from your RoxyAPI account."}};function ve(o){if(o)return o===gr?be.sample:o.startsWith("pk_")?void 0:be.secret}function Se(o,t,e={}){e.warn&&console.warn(t.message),o.dispatchEvent(new CustomEvent("roxy-validation-error",{detail:{reason:t.reason,message:t.message},bubbles:true,composed:true}))}var Ee="https://roxyapi.com/api/v2";async function fr(o){try{let t=await o.json();if(t?.error){let e=t.code==="validation_error"&&Array.isArray(t.issues)?t.issues.filter(r=>typeof r.path=="string"&&typeof r.message=="string").map(r=>({path:r.path,message:r.message})):null;return{message:t.error,issues:e?.length?e:null,worded:true,...t.code?{code:t.code}:{}}}}catch{}return{message:`Request failed (${o.status})`,issues:null,worded:false}}var we={fromAttribute:o=>{if(o!=null){try{let t=JSON.parse(o);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{}console.warn("[roxy-ui] submit-context must be a JSON object; sending the request without it.")}}},O=class extends Error{constructor(e,r=null,n=true,i,s){super(e);this.issues=r;this.worded=n;this.status=i;this.code=s}};function $e(o){return o.submitUrl?void 0:ve(o.publishableKey)}async function St(o,t,e){let r=$e(o);if(r)throw new O(r.message);let n=o.submitUrl?await fetch(o.submitUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:xr(t,o.submitContext),signal:e}):await br(o,t,e);if(!n.ok){let i=await fr(n);throw new O(i.message,i.issues,i.worded,n.status,i.code)}return await n.json()}function xr(o,t){return JSON.stringify(t?{...o,context:t}:o)}function br(o,t,e){let r=new URL(`${o.baseUrl??Ee}${t.path}`,document.baseURI);for(let[i,s]of Object.entries(t.query??{}))s!=null&&r.searchParams.set(i,String(s));let n={Accept:"application/json"};return o.publishableKey&&(n["X-API-Key"]=o.publishableKey),t.body!=null&&(n["Content-Type"]="application/json"),fetch(r,{method:t.method??"GET",headers:n,body:t.body!=null?JSON.stringify(t.body):void 0,signal:e})}var rt=class{constructor(t){this.baseUrl=Ee;this.worded=true;this.failure={};this.host=t,t.addController(this)}hostDisconnected(){this.abort?.abort(),this.abort=void 0}async run(t){this.worded=true,this.failure={};let e=$e(this);if(e){this.host.error=e.message,Se(this.host,e);return}this.abort?.abort();let r=new AbortController;this.abort=r,this.host.loading=true,this.host.error=null,this.host.issues=null;try{let n=await St(this,t,r.signal);if(r.signal.aborted)return;this.host.data=n}catch(n){if(r.signal.aborted||n?.name==="AbortError")return;n instanceof O&&(this.host.issues=n.issues,this.failure={status:n.status,code:n.code}),this.worded=n instanceof O&&n.worded,this.host.error=n instanceof Error?n.message:String(n)}finally{this.abort===r&&(this.abort=void 0),r.signal.aborted||(this.host.loading=false)}}};function Te(o,t,e,r=[]){let n={...e},i=`/${o.replace(/^\//,"")}`.replace(/\{([^}]+)\}/g,(y,m)=>{let u=n[m];return delete n[m],encodeURIComponent(String(u??""))}),s=new Set(r),d={},a={};for(let[y,m]of Object.entries(n))m===void 0||m===""||(t==="GET"||s.has(y)?d[y]=m:a[y]=m);return{path:i,method:t,query:d,body:t==="POST"?a:void 0}}function ke(){return c`<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 Ae=f`summary{list-style:none}summary::-webkit-details-marker{display:none}.roxy-chevron{aspect-ratio:auto;width:.7lh;height:.7lh;color:var(--roxy-muted);transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);flex-shrink:0}details[open]>summary .roxy-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.roxy-chevron{transition:none}}`;var _e=f`.block{border-top:1px solid var(--roxy-border);padding-top:var(--roxy-space-md)}.block h3{margin:0 0 var(--roxy-space-sm)}.interp-card{padding-block:var(--roxy-space-sm)}.interp-card summary{font-weight:var(--roxy-weight-bold);color:var(--roxy-fg);align-items:center;gap:var(--roxy-space-sm);font-size:var(--roxy-text-sm);display:flex}.interp-lead{align-items:baseline;gap:var(--roxy-space-sm);flex-wrap:wrap;flex:auto;order:1;min-width:0;display:inline-flex}.interp-aside{align-items:center;gap:var(--roxy-space-sm);flex-shrink:0;order:2;display:inline-flex}.roxy-chevron{order:3}.interp-aside small{color:var(--roxy-muted);font-weight:var(--roxy-weight-normal);white-space:nowrap}@container (width<=26rem){.interp-card summary{flex-wrap:wrap}.roxy-chevron{order:2}.interp-aside{flex-basis:100%;order:3;justify-content:flex-end}}.interp-body{margin-top:var(--roxy-space-sm);gap:var(--roxy-space-sm);color:var(--roxy-fg);font-size:var(--roxy-text-sm);line-height:var(--roxy-leading-normal);overflow-wrap:anywhere;display:grid}.interp-body p{margin:0}`;function Re(o,t,e,r=false){let n=o.filter(i=>!!i.body);return n.length===0?l:c`<section class="block" part="section readings"><h3>${e}</h3>${n.map((i,s)=>c`<details class="interp-card" part="reading" name="${t}" ?open="${s===0&&!r}"><summary><span class="interp-lead">${me(i.glyph)} ${i.label}</span> ${ke()} ${i.aside?c`<span class="interp-aside"><small>${i.aside}</small></span>`:l}</summary><div class="interp-body"><p>${i.body}</p>${i.extra??l}</div></details>`)}</section>`}var vr="roxy-data";function Sr(o){return o.nodeName==="SCRIPT"&&o.getAttribute("type")==="application/json"}var ot=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(Sr(t)&&t.classList.contains(vr))return t;return null}parse(t){if(t?.trim())try{return JSON.parse(t)}catch{return}}};var h=class extends Q{constructor(){super();this.data=null;this.endpoint="";this.remember=false;this.hideReadings=false;this.hideSections="";this.loading=false;this.error=null;this.issues=null;this.selfFetched=false;this.editing=false;this.sticky=false;this.hostLoaded=false;this.moreLoading=false;this.moreError=null;this.onMore=async()=>{let e=this.lastRequest,r=this.listKey,n=this.listRows();if(!(!e||!r||!n)){this.moreLoading=true,this.moreError=null;try{let i=await St(this.fetcher,{...e,query:{...e.query,offset:n.length}});if(this.lastRequest!==e)return;let s=i[r];this.data={...this.data,...i,[r]:[...n,...Array.isArray(s)?s:[]]}}catch(i){this.lastRequest===e&&(this.moreError=i instanceof Error?i.message:String(i))}finally{this.moreLoading=false}}};this.onEdit=()=>{this.editing=true};this.onFormSubmit=e=>{let r=this.selfFetch();if(!r)return;let n=e.detail;this.lastValues=n.values,this.sticky=!!n.sticky,this.selfFetched=true,this.editing=false,this.remember&&this.writeRemembered(n.values),this.fetchFresh(Te(r.endpoint,r.method,{...n.values,...this.ownRequest()},n.queryKeys??[]))};new ot(this),this.fetcher=new rt(this)}static{this.styles=[tt]}static{this.endpoints=[]}willUpdate(e){if(e.has("data")&&this.data!=null){let r=fe(this.data);r!==this.data&&(this.data=r)}(e.has("publishableKey")||e.has("baseUrl")||e.has("submitUrl")||e.has("submitContext"))&&this.syncFetcher()}syncFetcher(){this.fetcher.publishableKey=this.publishableKey,this.baseUrl&&(this.fetcher.baseUrl=this.baseUrl),this.fetcher.submitUrl=this.submitUrl,this.fetcher.submitContext=this.submitContext}selfFetch(){let e=this.endpoint?{endpoint:this.endpoint,method:"POST"}:this.hostLoaded||!(this.publishableKey||this.submitUrl)?void 0:xe(this.constructor.endpoints,this);return e&&{endpoint:e.endpoint,method:this.method??e.method}}render(){return c`${this.hostStyle()}${this.renderState()}`}drawn(e){try{return this.renderData(e)}catch(r){return console.warn(`[roxy-ui] ${this.localName} could not draw its response`,r),this.dispatchEvent(new CustomEvent("roxy-render-error",{detail:{error:r},bubbles:true,composed:true})),customElements.get("roxy-data")?c`<roxy-data .data="${e}" lang="${R(this.effectiveLang())}"></roxy-data>`:this.renderEmpty()}}hostStyle(){let e=this.hideSections.split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^[a-z][a-z0-9-]*$/.test(i)),r=[te(this),this.fontDeclarations(this.font)].filter(Boolean).join(";");if(e.length===0&&!r)return l;let n=(r?`:host{${r}}`:"")+e.map(i=>`[part~="${i}"],roxy-endpoint-form::part(${i}){display:none!important}`).join("");return c`<style>${n}</style>`}ownRequest(){return{}}get failure(){return this.fetcher.failure}renderState(){return this.selfFetch()&&this.sticky&&this.selfFetched&&!this.editing?this.renderWithForm(this.stickyBody()):this.loading?this.renderLoading():this.error!=null?this.renderError(this.error):this.data!=null?this.selfFetched?this.editing?this.renderForm():this.renderResult(this.data):this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data):this.renderNoData()}renderInterpretation(e,r,n,i=false){return this.hideReadings?l:Re(e,r,this.t(n??"Reading"),i)}renderResult(e){let r=c`<div class="roxy-edit-bar" part="edit-bar"><button type="button" class="roxy-edit" @click="${this.onEdit}">${this.t("Edit query")}</button></div>${this.drawn(e)}`;return this.showAttribution()?c`${r}${this.renderAttribution()}`:r}renderWithForm(e){return c`${this.renderForm()}${e}`}stickyBody(){return this.loading?this.renderLoading():this.error!=null?this.issues?l:this.renderErrorBanner(this.error):this.data==null?l:this.showAttribution()?c`${this.drawn(this.data)}${this.renderAttribution()}`:this.drawn(this.data)}renderMore(){let e=this.listRows(),r=this.data?.total;return!this.lastRequest||!e||typeof r!="number"?l:e.length>=r?l:c`<div class="roxy-more" part="more"><button type="button" class="roxy-edit" ?disabled="${this.moreLoading}" aria-busy="${this.moreLoading?"true":"false"}" @click="${this.onMore}">${this.t("Show more")}</button> ${this.moreError?c`<p class="roxy-error" role="alert">${this.t(this.moreError)}</p>`:l}</div>`}listRows(){let e=this.listKey?this.data?.[this.listKey]:void 0;return Array.isArray(e)?e:void 0}fetchFresh(e){return this.lastRequest=e,this.openedRow=void 0,this.openedRowId=void 0,this.moreError=null,this.fetcher.run(e)}load(e){return this.hostLoaded=true,this.syncFetcher(),this.fetchFresh(e)}pickRow(e){this.dispatchEvent(new CustomEvent("roxy-symbol-select",{detail:e,bubbles:true,composed:true})),this.openRow(e.id)}openRow(e){if(!this.rowDetail||!(this.publishableKey||this.submitUrl))return;let r=this.openedRow??document.createElement(this.rowDetail.tag);r.publishableKey=this.publishableKey,r.baseUrl=this.baseUrl,r.submitUrl=this.submitUrl,r.submitContext=this.submitContext,r.hideReadings=this.hideReadings,r.hideSections=this.hideSections;let n=this.effectiveLang();n&&r.setAttribute("lang",n),this.openedRow=r,this.openedRowId=e,r.load({path:`/${this.rowDetail.path.replace("{id}",encodeURIComponent(e))}`,method:"GET",query:{lang:Bt(this)}}).then(()=>r.scrollIntoView?.({block:"nearest"}))}showAttribution(){return this.attribution!=null&&this.attribution!=="off"&&this.attribution!=="false"}renderAttribution(){return c`<div class="roxy-attribution" part="attribution"><a href="https://roxyapi.com/?utm_source=widget&utm_medium=embed" target="_blank" rel="noopener">${this.t("Spiritual data by RoxyAPI")}</a></div>`}renderNoData(){return this.selfFetch()?this.renderWithForm(l):this.renderEmpty()}renderForm(){let e=this.selfFetch();return c`<roxy-endpoint-form part="form" exportparts="hint" data-endpoint="${e?.endpoint??""}" method="${e?.method??"POST"}" spec-url="${R(this.specUrl)}" publishable-key="${R(this.publishableKey)}" location-url="${R(this.locationUrl)}" submit-label="${R(this.submitLabel)}" lang="${R(this.effectiveLang())}" .initialValues="${this.formInitialValues()}" .serverIssues="${this.issues}" .apiRoute="${this.fetcher}" .autoload="${!this.selfFetched}" .fullPages="${!!this.listKey}" @roxy-submit="${this.onFormSubmit}"></roxy-endpoint-form>`}formInitialValues(){return this.lastValues??(this.remember?this.readRemembered():void 0)}rememberKey(){return`roxy-ui:form:${this.selfFetch()?.endpoint??""}`}readRemembered(){try{let e=sessionStorage.getItem(this.rememberKey());return e?JSON.parse(e):void 0}catch{return}}writeRemembered(e){try{sessionStorage.setItem(this.rememberKey(),JSON.stringify(e))}catch{}}renderEmpty(){return c`<div class="roxy-empty" role="status" part="empty">${this.t("No data")}</div>`}renderLoading(){return c`<div class="roxy-skeleton" style="height:5lh" role="status" aria-label="${this.t("Loading")}" part="loading"></div>`}renderError(e){let r=!!this.selfFetch();if(r&&this.issues)return this.renderForm();let n=this.renderErrorBanner(e);return r?c`${n}${this.renderForm()}`:n}renderErrorBanner(e){return c`<div class="roxy-error" role="alert" part="error">${!this.fetcher.worded&&this.errorMessage||this.t(e)}</div>`}};p([g({attribute:false})],h.prototype,"data",2),p([g({type:String,attribute:"data-endpoint"})],h.prototype,"endpoint",2),p([g({type:String})],h.prototype,"method",2),p([g({type:String,attribute:"publishable-key"})],h.prototype,"publishableKey",2),p([g({type:String,attribute:"base-url"})],h.prototype,"baseUrl",2),p([g({type:String,attribute:"spec-url"})],h.prototype,"specUrl",2),p([g({type:String,attribute:"submit-url"})],h.prototype,"submitUrl",2),p([g({attribute:"submit-context",converter:we})],h.prototype,"submitContext",2),p([g({type:String,attribute:"location-url"})],h.prototype,"locationUrl",2),p([g({type:Boolean})],h.prototype,"remember",2),p([g({type:Boolean,attribute:"hide-readings",reflect:true})],h.prototype,"hideReadings",2),p([g({type:String,attribute:"hide-sections",reflect:true})],h.prototype,"hideSections",2),p([g({type:String,attribute:"brand-color"})],h.prototype,"brandColor",2),p([g({type:String,attribute:"brand-accent"})],h.prototype,"brandAccent",2),p([g({type:String})],h.prototype,"font",2),p([g({type:String})],h.prototype,"hemisphere",2),p([g({type:String,attribute:"submit-label"})],h.prototype,"submitLabel",2),p([g({type:String,attribute:"error-message"})],h.prototype,"errorMessage",2),p([g({type:String})],h.prototype,"attribution",2),p([x()],h.prototype,"loading",2),p([x()],h.prototype,"error",2),p([x()],h.prototype,"issues",2),p([x()],h.prototype,"selfFetched",2),p([x()],h.prototype,"editing",2),p([x()],h.prototype,"sticky",2),p([x()],h.prototype,"openedRow",2),p([x()],h.prototype,"openedRowId",2),p([x()],h.prototype,"moreLoading",2),p([x()],h.prototype,"moreError",2);var Pe=o=>t=>{customElements.get(o)||customElements.define(o,t)};var Ce=f`.roxy-tablist{gap:var(--roxy-space-xs);box-shadow:inset 0 calc(var(--roxy-line-thick) * -1) 0 var(--roxy-border);scrollbar-width:thin;min-width:0;display:flex;overflow-x:auto}.roxy-tab{padding:var(--roxy-space-xs) var(--roxy-space-md);font-size:var(--roxy-text-sm);border:none;border-bottom:var(--roxy-line-thick) solid transparent;cursor:pointer;color:var(--roxy-muted);transition:color var(--roxy-motion-duration) var(--roxy-motion-easing);background:0 0;flex-shrink:0}.roxy-tab[aria-selected=true]{color:var(--roxy-accent-ink);border-bottom-color:var(--roxy-accent);font-weight:var(--roxy-weight-bold)}.roxy-tab:hover:not([aria-selected=true]){color:var(--roxy-fg)}.roxy-tab:focus-visible{outline-offset:calc(var(--roxy-line-thick) * -1);border-radius:var(--roxy-radius-sm)}`;function Oe(o){let{items:t,active:e,onSelect:r,label:n,idPrefix:i,controls:s=false}=o;return c`<div class="roxy-tablist" part="tablist" role="tablist" aria-label="${n}" @keydown="${a=>{if(a.key!=="ArrowRight"&&a.key!=="ArrowLeft")return;a.preventDefault();let y=t.findIndex(v=>v.id===e);if(y===-1)return;let m=a.key==="ArrowRight"?1:-1,u=t[(y+m+t.length)%t.length];if(!u)return;r(u.id);let b=a.currentTarget.getRootNode();requestAnimationFrame(()=>{b.querySelector(`#${i}-tab-${u.id}`)?.focus()})}}">${t.map(a=>c`<button type="button" class="roxy-tab" part="tab" role="tab" id="${i}-tab-${a.id}" aria-selected="${e===a.id?"true":"false"}" aria-controls="${s?`${i}-panel-${a.id}`:l}" tabindex="${e===a.id?"0":"-1"}" @click="${()=>r(a.id)}">${a.label}</button>`)}</div>${s?t.filter(a=>a.id!==e).map(a=>c`<div role="tabpanel" id="${i}-panel-${a.id}" aria-labelledby="${i}-tab-${a.id}" hidden></div>`):l}`}function Et(o,t,e,r){return he(o,t,e)??r??le(e)}function wt(o,t){return Et(o,"arcana",t,`${bt(t)} Arcana`)}function $t(o,t){return Et(o,"suit",t,bt(t))}var Fe=[["love","Love"],["career","Career"],["finances","Finance"],["health","Health"],["spirituality","Spiritual"]],Ue=f`.card-art{aspect-ratio:600/1072}`;var $=class extends h{constructor(){super(...arguments);this.orientation="upright"}renderData(e){return"card"in e?this.renderDailyCard(e):this.renderFullCard(e)}renderDailyCard(e){let r=e.card,n=!!r.reversed,i=r.keywords??[],s=this.effectiveLang(),d=[r.arcana?wt(s,r.arcana):"",r.suit?$t(s,r.suit):""].filter(Boolean).join(" \xB7 "),a=!this.hideReadings;return c`<article class="card" part="card" aria-label="${r.name??this.t("Tarot card")}">${this.renderImage(r.imageUrl,r.name,n)}<div part="header"><div class="meta roxy-label">${d?`${d} \xB7 `:""}<span class="drawn">${n?this.t("drawn reversed"):this.t("drawn upright")}</span></div><h2>${r.name??this.t("Tarot card")}</h2>${e.dailyMessage&&a?c`<p class="message">${e.dailyMessage}</p>`:l} ${r.meaning&&a?c`<p class="reading">${r.meaning}</p>`:l} ${i.length>0&&a?c`<ul class="roxy-chips">${i.map(y=>c`<li>${y}</li>`)}</ul>`:l} ${this.renderGuidance(r,"tarot-daily-guidance")}</div></article>`}renderFullCard(e){let r=this.orientation==="reversed",n=r?e.reversed:e.upright,i=(r?e.keywords?.reversed:e.keywords?.upright)??n?.keywords??[],s=!this.hideReadings;return c`<article class="card" part="card" aria-label="${e.name??this.t("Tarot card")}">${this.renderImage(e.imageUrl,e.name,r)}<div part="header"><div class="meta roxy-label">${[e.arcana?wt(this.effectiveLang(),e.arcana):"",e.suit?$t(this.effectiveLang(),e.suit):"",e.number!==void 0&&e.number!==null?this.t("no. {{number}}",{number:e.number}):""].filter(Boolean).join(" \xB7 ")}</div><h2>${e.name??this.t("Tarot card")}</h2>${Oe({items:[{id:"upright",label:this.t("Upright")},{id:"reversed",label:this.t("Reversed")}],active:this.orientation,onSelect:d=>{this.orientation=d},label:this.t("Card orientation"),idPrefix:"tarot",controls:true})}<div id="tarot-panel-${this.orientation}" part="panel" role="tabpanel" tabindex="0" aria-labelledby="tarot-tab-${this.orientation}">${n?.description&&s?c`<p class="reading">${n.description}</p>`:l} ${i.length>0&&s?c`<ul class="roxy-chips">${i.map(d=>c`<li>${d}</li>`)}</ul>`:l} ${this.renderGuidance(n,`tarot-${this.orientation}-guidance`)}</div></div></article>`}renderImage(e,r,n){let i=`image ${n?"reversed":""}`;return e?c`<img class="${i}" part="chart" src="${e}" alt="${r??this.t("Tarot card")}">`:c`<div class="${i} card-art" part="chart" style="display:flex;align-items:center;justify-content:center;color:var(--roxy-muted)">${r??"?"}</div>`}renderGuidance(e,r){if(!e)return l;let n=Fe.map(([i,s])=>({label:this.t(s),body:e[i]??""}));return this.renderInterpretation(n,r,"Guidance")}};$.endpoints=zt,$.styles=[tt,Ue,Ae,_e,Ce,f`.card{align-items:start;gap:var(--roxy-space-lg);padding:var(--roxy-space-lg);grid-template-columns:minmax(0,6lh) minmax(0,1fr);display:grid}@container (width<=480px){.card{grid-template-columns:minmax(0,1fr)}}h2,p{margin:0}.image{border-radius:var(--roxy-radius-md);background:var(--roxy-border);width:100%;height:auto;transition:transform var(--roxy-motion-duration) var(--roxy-motion-easing);display:block}.image.reversed{transform:rotate(180deg)}.meta{margin-block-end:var(--roxy-space-sm)}.drawn{color:var(--roxy-fg);font-weight:var(--roxy-weight-bold)}.message{margin-block:var(--roxy-space-sm) var(--roxy-space-md)}.reading{white-space:pre-line;margin-block-end:var(--roxy-space-md)}.roxy-tablist{margin-block:var(--roxy-space-sm)}.roxy-chips{margin-block-start:var(--roxy-space-sm)}`],p([x()],$.prototype,"orientation",2),$=p([Pe("roxy-tarot-card")],$);return Ne(Er)})();